File: /var/www/indoadvisory_new/webapp/node_modules/workerd/worker.mjs
var Kht=Object.create;var w7e=Object.defineProperty;var Xht=Object.getOwnPropertyDescriptor;var Yht=Object.getOwnPropertyNames;var Zht=Object.getPrototypeOf,eyt=Object.prototype.hasOwnProperty;var Dye=(Q=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(Q,{get:(M,ge)=>(typeof require<"u"?require:M)[ge]}):Q)(function(Q){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+Q+'" is not supported')});var ZD=(Q,M)=>()=>(M||Q((M={exports:{}}).exports,M),M.exports);var tyt=(Q,M,ge,be)=>{if(M&&typeof M=="object"||typeof M=="function")for(let Le of Yht(M))!eyt.call(Q,Le)&&Le!==ge&&w7e(Q,Le,{get:()=>M[Le],enumerable:!(be=Xht(M,Le))||be.enumerable});return Q};var Yh=(Q,M,ge)=>(ge=Q!=null?Kht(Zht(Q)):{},tyt(M||!Q||!Q.__esModule?w7e(ge,"default",{value:Q,enumerable:!0}):ge,Q));var $5e=ZD(()=>{});var nve=ZD(()=>{});var H5e=ZD(()=>{});var Q5e=ZD(()=>{});var K5e=ZD(()=>{});var X5e=ZD(()=>{});var Y5e=ZD(()=>{});var th=ZD((mbt,gY)=>{var Z5e={};(Q=>{"use strict";var M=Object.defineProperty,ge=Object.getOwnPropertyDescriptor,be=Object.getOwnPropertyNames,Le=Object.prototype.hasOwnProperty,nt=(e,t)=>{for(var n in t)M(e,n,{get:t[n],enumerable:!0})},br=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of be(t))!Le.call(e,s)&&s!==n&&M(e,s,{get:()=>t[s],enumerable:!(i=ge(t,s))||i.enumerable});return e},Cr=e=>e,gi={};nt(gi,{ANONYMOUS:()=>e$,AccessFlags:()=>TZ,AssertionLevel:()=>NY,AssignmentDeclarationKind:()=>EZ,AssignmentKind:()=>rre,Associativity:()=>ure,BreakpointResolver:()=>Y$,BuilderFileEmit:()=>ooe,BuilderProgramKind:()=>moe,BuilderState:()=>Yd,CallHierarchy:()=>uC,CharacterCodes:()=>JZ,CheckFlags:()=>yZ,CheckMode:()=>SU,ClassificationType:()=>lq,ClassificationTypeNames:()=>hce,CommentDirectiveType:()=>nZ,Comparison:()=>Ga,CompletionInfoFlags:()=>uce,CompletionTriggerKind:()=>oq,Completions:()=>mC,ContainerFlags:()=>zse,ContextFlags:()=>uZ,Debug:()=>w,DiagnosticCategory:()=>R8,Diagnostics:()=>p,DocumentHighlights:()=>AL,ElementFlags:()=>SZ,EmitFlags:()=>aB,EmitHint:()=>qZ,EmitOnly:()=>sZ,EndOfLineState:()=>pce,ExitStatus:()=>aZ,ExportKind:()=>lle,Extension:()=>GZ,ExternalEmitHelpers:()=>VZ,FileIncludeKind:()=>KW,FilePreprocessingDiagnosticsKind:()=>iZ,FileSystemEntryKind:()=>tee,FileWatcherEventKind:()=>YZ,FindAllReferences:()=>jo,FlattenLevel:()=>lae,FlowFlags:()=>M8,ForegroundColorEscapeSequences:()=>Xae,FunctionFlags:()=>cre,GeneratedIdentifierFlags:()=>QW,GetLiteralTextFlags:()=>vte,GoToDefinition:()=>aD,HighlightSpanKind:()=>cce,IdentifierNameMap:()=>FI,ImportKind:()=>cle,ImportsNotUsedAsValues:()=>LZ,IndentStyle:()=>lce,IndexFlags:()=>kZ,IndexKind:()=>wZ,InferenceFlags:()=>PZ,InferencePriority:()=>DZ,InlayHintKind:()=>oce,InlayHints:()=>GH,InternalEmitFlags:()=>UZ,InternalNodeBuilderFlags:()=>fZ,InternalSymbolName:()=>vZ,IntersectionFlags:()=>lZ,InvalidatedProjectKind:()=>joe,JSDocParsingMode:()=>XZ,JsDoc:()=>p1,JsTyping:()=>Q0,JsxEmit:()=>OZ,JsxFlags:()=>ZY,JsxReferenceKind:()=>xZ,LanguageFeatureMinimumTarget:()=>zl,LanguageServiceMode:()=>sce,LanguageVariant:()=>BZ,LexicalEnvironmentFlags:()=>HZ,ListFormat:()=>QZ,LogLevel:()=>JY,MapCode:()=>UH,MemberOverrideStatus:()=>oZ,ModifierFlags:()=>$W,ModuleDetectionKind:()=>NZ,ModuleInstanceState:()=>Wse,ModuleKind:()=>kw,ModuleResolutionKind:()=>Tw,ModuleSpecifierEnding:()=>ane,NavigateTo:()=>Mle,NavigationBar:()=>Fle,NewLineKind:()=>jZ,NodeBuilderFlags:()=>_Z,NodeCheckFlags:()=>ZW,NodeFactoryFlags:()=>Fne,NodeFlags:()=>qW,NodeResolutionFeatures:()=>Pse,ObjectFlags:()=>tB,OperationCanceledException:()=>TP,OperatorPrecedence:()=>_re,OrganizeImports:()=>d1,OrganizeImportsMode:()=>aq,OuterExpressionKinds:()=>$Z,OutliningElementsCollector:()=>qH,OutliningSpanKind:()=>_ce,OutputFileType:()=>fce,PackageJsonAutoImportPreference:()=>ice,PackageJsonDependencyGroup:()=>nce,PatternMatchKind:()=>v$,PollingInterval:()=>oB,PollingWatchKind:()=>FZ,PragmaKindFlags:()=>KZ,PredicateSemantics:()=>eZ,PreparePasteEdits:()=>oQ,PrivateIdentifierKind:()=>Vne,ProcessLevel:()=>pae,ProgramUpdateLevel:()=>qae,QuotePreference:()=>Wce,RegularExpressionFlags:()=>tZ,RelationComparisonResult:()=>HW,Rename:()=>pj,ScriptElementKind:()=>mce,ScriptElementKindModifier:()=>gce,ScriptKind:()=>nB,ScriptSnapshot:()=>J5,ScriptTarget:()=>WZ,SemanticClassificationFormat:()=>ace,SemanticMeaning:()=>yce,SemicolonPreference:()=>cq,SignatureCheckMode:()=>TU,SignatureFlags:()=>rB,SignatureHelp:()=>J3,SignatureInfo:()=>aoe,SignatureKind:()=>CZ,SmartSelectionRange:()=>QH,SnippetKind:()=>sB,StatisticType:()=>$oe,StructureIsReused:()=>XW,SymbolAccessibility:()=>mZ,SymbolDisplay:()=>yv,SymbolDisplayPartKind:()=>U5,SymbolFlags:()=>YW,SymbolFormatFlags:()=>dZ,SyntaxKind:()=>VW,Ternary:()=>AZ,ThrottledCancellationToken:()=>Gue,TokenClass:()=>dce,TokenFlags:()=>rZ,TransformFlags:()=>iB,TypeFacts:()=>bU,TypeFlags:()=>eB,TypeFormatFlags:()=>pZ,TypeMapKind:()=>IZ,TypePredicateKind:()=>gZ,TypeReferenceSerializationKind:()=>hZ,UnionReduction:()=>cZ,UpToDateStatusType:()=>Eoe,VarianceFlags:()=>bZ,Version:()=>Wd,VersionRange:()=>N8,WatchDirectoryFlags:()=>zZ,WatchDirectoryKind:()=>RZ,WatchFileKind:()=>MZ,WatchLogLevel:()=>Hae,WatchType:()=>Hl,accessPrivateIdentifier:()=>cae,addEmitFlags:()=>Rm,addEmitHelper:()=>E2,addEmitHelpers:()=>Th,addInternalEmitFlags:()=>bk,addNodeFactoryPatcher:()=>sbe,addObjectAllocatorPatcher:()=>U0e,addRange:()=>jn,addRelatedInfo:()=>Xs,addSyntheticLeadingComment:()=>NS,addSyntheticTrailingComment:()=>FA,addToSeen:()=>nd,advancedAsyncSuperHelper:()=>ZO,affectsDeclarationPathOptionDeclarations:()=>Yie,affectsEmitOptionDeclarations:()=>Xie,allKeysStartWithDot:()=>$7,altDirectorySeparator:()=>j8,and:()=>P8,append:()=>jr,appendIfUnique:()=>Zh,arrayFrom:()=>ps,arrayIsEqualTo:()=>Yf,arrayIsHomogeneous:()=>dne,arrayOf:()=>DY,arrayReverseIterator:()=>CW,arrayToMap:()=>yw,arrayToMultiMap:()=>XN,arrayToNumericMap:()=>AY,assertType:()=>bve,assign:()=>$T,asyncSuperHelper:()=>YO,attachFileToDiagnostics:()=>T2,base64decode:()=>Nre,base64encode:()=>Ere,binarySearch:()=>o0,binarySearchKey:()=>Bx,bindSourceFile:()=>Jse,breakIntoCharacterSpans:()=>Cle,breakIntoWordSpans:()=>wle,buildLinkParts:()=>$ce,buildOpts:()=>dM,buildOverload:()=>V6e,bundlerModuleNameResolver:()=>Ase,canBeConvertedToAsync:()=>C$,canHaveDecorators:()=>JS,canHaveExportModifier:()=>j4,canHaveFlowNode:()=>$w,canHaveIllegalDecorators:()=>PG,canHaveIllegalModifiers:()=>Eie,canHaveIllegalType:()=>Ebe,canHaveIllegalTypeParameters:()=>Aie,canHaveJSDoc:()=>a4,canHaveLocals:()=>Sg,canHaveModifiers:()=>od,canHaveModuleSpecifier:()=>Zte,canHaveSymbol:()=>Jd,canIncludeBindAndCheckDiagnostics:()=>CA,canJsonReportNoInputFiles:()=>bM,canProduceDiagnostics:()=>AM,canUsePropertyAccess:()=>OJ,canWatchAffectingLocation:()=>koe,canWatchAtTypes:()=>Toe,canWatchDirectoryOrFile:()=>kV,canWatchDirectoryOrFilePath:()=>VM,cartesianProduct:()=>BY,cast:()=>Zs,chainBundle:()=>Xd,chainDiagnosticMessages:()=>Ps,changeAnyExtension:()=>i6,changeCompilerHostLikeToUseCache:()=>hE,changeExtension:()=>fy,changeFullExtension:()=>z8,changesAffectModuleResolution:()=>dF,changesAffectingProgramStructure:()=>_te,characterCodeToRegularExpressionFlag:()=>yB,childIsDecorated:()=>KP,classElementOrClassElementParameterIsDecorated:()=>hz,classHasClassThisAssignment:()=>LU,classHasDeclaredOrExplicitlyAssignedName:()=>jU,classHasExplicitlyAssignedName:()=>a5,classOrConstructorParameterIsDecorated:()=>ev,classicNameResolver:()=>Lse,classifier:()=>$ue,cleanExtendedConfigCache:()=>f5,clear:()=>Hp,clearMap:()=>Q_,clearSharedExtendedConfigFileWatcher:()=>YU,climbPastPropertyAccess:()=>$5,clone:()=>EY,cloneCompilerOptions:()=>Dq,closeFileWatcher:()=>kd,closeFileWatcherOf:()=>Op,codefix:()=>Vu,collapseTextChangeRangesAcrossMultipleVersions:()=>xee,collectExternalModuleInfo:()=>MU,combine:()=>Wx,combinePaths:()=>Bn,commandLineOptionOfCustomType:()=>tse,commentPragmas:()=>F8,commonOptionsWithBuild:()=>w7,compact:()=>QN,compareBooleans:()=>wb,compareDataObjects:()=>uJ,compareDiagnostics:()=>yA,compareEmitHelpers:()=>$ne,compareNumberOfDirectorySeparators:()=>F4,comparePaths:()=>ty,comparePathsCaseInsensitive:()=>Uve,comparePathsCaseSensitive:()=>Gve,comparePatternKeys:()=>pU,compareProperties:()=>OY,compareStringsCaseInsensitive:()=>ZN,compareStringsCaseInsensitiveEslintCompatible:()=>MY,compareStringsCaseSensitive:()=>wu,compareStringsCaseSensitiveUI:()=>e6,compareTextSpans:()=>I8,compareValues:()=>Po,compilerOptionsAffectDeclarationPath:()=>ene,compilerOptionsAffectEmit:()=>Zre,compilerOptionsAffectSemanticDiagnostics:()=>Yre,compilerOptionsDidYouMeanDiagnostics:()=>A7,compilerOptionsIndicateEsModules:()=>Rq,computeCommonSourceDirectoryOfFilenames:()=>Qae,computeLineAndCharacterOfPosition:()=>ww,computeLineOfPosition:()=>IP,computeLineStarts:()=>Qx,computePositionOfLineAndCharacter:()=>V8,computeSignatureWithDiagnostics:()=>hV,computeSuggestionDiagnostics:()=>T$,computedOptions:()=>vA,concatenate:()=>Ki,concatenateDiagnosticMessageChains:()=>Vre,consumesNodeCoreModules:()=>SL,contains:()=>Ts,containsIgnoredPath:()=>DA,containsObjectRestOrSpread:()=>uM,containsParseError:()=>s2,containsPath:()=>kp,convertCompilerOptionsForTelemetry:()=>hse,convertCompilerOptionsFromJson:()=>W1e,convertJsonOption:()=>Rk,convertToBase64:()=>Are,convertToJson:()=>hM,convertToObject:()=>use,convertToOptionsWithAbsolutePaths:()=>R7,convertToRelativePath:()=>CP,convertToTSConfig:()=>KG,convertTypeAcquisitionFromJson:()=>B1e,copyComments:()=>Gk,copyEntries:()=>mF,copyLeadingComments:()=>YI,copyProperties:()=>EW,copyTrailingAsLeadingComments:()=>p3,copyTrailingComments:()=>ME,couldStartTrivia:()=>uee,countWhere:()=>Hy,createAbstractBuilder:()=>qTe,createAccessorPropertyBackingField:()=>NG,createAccessorPropertyGetRedirector:()=>Wie,createAccessorPropertySetRedirector:()=>Bie,createBaseNodeFactory:()=>Ane,createBinaryExpressionTrampoline:()=>S7,createBuilderProgram:()=>yV,createBuilderProgramUsingIncrementalBuildInfo:()=>voe,createBuilderStatusReporter:()=>R5,createCacheableExportInfoMap:()=>_$,createCachedDirectoryStructureHost:()=>u5,createClassifier:()=>kxe,createCommentDirectivesMap:()=>hte,createCompilerDiagnostic:()=>cc,createCompilerDiagnosticForInvalidCustomType:()=>rse,createCompilerDiagnosticFromMessageChain:()=>vO,createCompilerHost:()=>Kae,createCompilerHostFromProgramHost:()=>jV,createCompilerHostWorker:()=>p5,createDetachedDiagnostic:()=>S2,createDiagnosticCollection:()=>cA,createDiagnosticForFileFromMessageChain:()=>fz,createDiagnosticForNode:()=>cn,createDiagnosticForNodeArray:()=>Ww,createDiagnosticForNodeArrayFromMessageChain:()=>O6,createDiagnosticForNodeFromMessageChain:()=>fh,createDiagnosticForNodeInSourceFile:()=>Cp,createDiagnosticForRange:()=>Ete,createDiagnosticMessageChainFromDiagnostic:()=>Ate,createDiagnosticReporter:()=>rC,createDocumentPositionMapper:()=>nae,createDocumentRegistry:()=>dle,createDocumentRegistryInternal:()=>g$,createEmitAndSemanticDiagnosticsBuilderProgram:()=>TV,createEmitHelperFactory:()=>qne,createEmptyExports:()=>rM,createEvaluator:()=>xne,createExpressionForJsxElement:()=>xie,createExpressionForJsxFragment:()=>Cie,createExpressionForObjectLiteralElementLike:()=>wie,createExpressionForPropertyName:()=>kG,createExpressionFromEntityName:()=>nM,createExternalHelpersImportDeclarationIfNeeded:()=>wG,createFileDiagnostic:()=>kl,createFileDiagnosticFromMessageChain:()=>CF,createFlowNode:()=>Ag,createForOfBindingStatement:()=>TG,createFutureSourceFile:()=>IL,createGetCanonicalFileName:()=>fu,createGetIsolatedDeclarationErrors:()=>Oae,createGetSourceFile:()=>nV,createGetSymbolAccessibilityDiagnosticForNode:()=>r1,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Fae,createGetSymbolWalker:()=>Gse,createIncrementalCompilerHost:()=>M5,createIncrementalProgram:()=>Aoe,createJsxFactoryExpression:()=>SG,createLanguageService:()=>Uue,createLanguageServiceSourceFile:()=>qL,createMemberAccessForPropertyName:()=>Nk,createModeAwareCache:()=>AI,createModeAwareCacheKey:()=>nE,createModeMismatchDetails:()=>KB,createModuleNotFoundChain:()=>hF,createModuleResolutionCache:()=>EI,createModuleResolutionLoader:()=>lV,createModuleResolutionLoaderUsingGlobalCache:()=>Ioe,createModuleSpecifierResolutionHost:()=>a1,createMultiMap:()=>Kp,createNameResolver:()=>zJ,createNodeConverters:()=>Mne,createNodeFactory:()=>J4,createOptionNameMap:()=>D7,createOverload:()=>lQ,createPackageJsonImportFilter:()=>ZI,createPackageJsonInfo:()=>n$,createParenthesizerRules:()=>Ene,createPatternMatcher:()=>vle,createPrinter:()=>$0,createPrinterWithDefaults:()=>Uae,createPrinterWithRemoveComments:()=>qS,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>Vae,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>XU,createProgram:()=>JM,createProgramDiagnostics:()=>ioe,createProgramHost:()=>WV,createPropertyNameNodeForIdentifierOrLiteral:()=>WO,createQueue:()=>YN,createRange:()=>Dp,createRedirectedBuilderProgram:()=>SV,createResolutionCache:()=>CV,createRuntimeTypeSerializer:()=>yae,createScanner:()=>ah,createSemanticDiagnosticsBuilderProgram:()=>VTe,createSet:()=>NW,createSolutionBuilder:()=>Foe,createSolutionBuilderHost:()=>Moe,createSolutionBuilderWithWatch:()=>Ooe,createSolutionBuilderWithWatchHost:()=>Roe,createSortedArray:()=>xW,createSourceFile:()=>$2,createSourceMapGenerator:()=>Yse,createSourceMapSource:()=>lbe,createSuperAccessVariableStatement:()=>c5,createSymbolTable:()=>ea,createSymlinkCache:()=>bJ,createSyntacticTypeNodeBuilder:()=>ece,createSystemWatchFunctions:()=>ree,createTextChange:()=>s3,createTextChangeFromStartLength:()=>aL,createTextChangeRange:()=>d6,createTextRangeFromNode:()=>Eq,createTextRangeFromSpan:()=>sL,createTextSpan:()=>pu,createTextSpanFromBounds:()=>Uc,createTextSpanFromNode:()=>k_,createTextSpanFromRange:()=>mv,createTextSpanFromStringLiteralLikeContent:()=>Aq,createTextWriter:()=>y4,createTokenRange:()=>sJ,createTypeChecker:()=>Kse,createTypeReferenceDirectiveResolutionCache:()=>U7,createTypeReferenceResolutionLoader:()=>g5,createWatchCompilerHost:()=>rke,createWatchCompilerHostOfConfigFile:()=>BV,createWatchCompilerHostOfFilesAndCompilerOptions:()=>zV,createWatchFactory:()=>LV,createWatchHost:()=>OV,createWatchProgram:()=>JV,createWatchStatusReporter:()=>wV,createWriteFileMeasuringIO:()=>iV,declarationNameToString:()=>Co,decodeMappings:()=>AU,decodedTextSpanIntersectsWith:()=>p6,deduplicate:()=>nS,defaultInitCompilerOptions:()=>GG,defaultMaximumTruncationLength:()=>GP,diagnosticCategoryName:()=>QT,diagnosticToString:()=>YS,diagnosticsEqualityComparer:()=>bO,directoryProbablyExists:()=>Vd,directorySeparator:()=>Fo,displayPart:()=>Y_,displayPartsToString:()=>w3,disposeEmitNodes:()=>KJ,documentSpansEqual:()=>zq,dumpTracingLegend:()=>YY,elementAt:()=>a0,elideNodes:()=>jie,emitDetachedComments:()=>bre,emitFiles:()=>QU,emitFilesAndReportErrors:()=>P5,emitFilesAndReportErrorsAndGetExitStatus:()=>FV,emitModuleKindIsNonNodeESM:()=>E4,emitNewLineBeforeLeadingCommentOfPosition:()=>vre,emitResolverSkipsTypeChecking:()=>HU,emitSkippedWithNoDiagnostics:()=>fV,emptyArray:()=>qe,emptyFileSystemEntries:()=>DJ,emptyMap:()=>Bl,emptyOptions:()=>cd,endsWith:()=>Jo,ensurePathIsNonModuleName:()=>KT,ensureScriptKind:()=>AO,ensureTrailingDirectorySeparator:()=>El,entityNameToString:()=>df,enumerateInsertsAndDeletes:()=>E8,equalOwnProperties:()=>PY,equateStringsCaseInsensitive:()=>_0,equateStringsCaseSensitive:()=>aS,equateValues:()=>u0,escapeJsxAttributeString:()=>zz,escapeLeadingUnderscores:()=>gc,escapeNonAsciiString:()=>YF,escapeSnippetText:()=>ES,escapeString:()=>wg,escapeTemplateSubstitution:()=>Wz,evaluatorResult:()=>Ml,every:()=>Oi,exclusivelyPrefixedNodeCoreModules:()=>qO,executeCommandLine:()=>Fke,expandPreOrPostfixIncrementOrDecrementExpression:()=>g7,explainFiles:()=>AV,explainIfFileIsRedirectAndImpliedFormat:()=>EV,exportAssignmentIsAlias:()=>u4,expressionResultIsUnused:()=>gne,extend:()=>w8,extensionFromPath:()=>kA,extensionIsTS:()=>FO,extensionsNotSupportingExtensionlessResolution:()=>RO,externalHelpersModuleNameText:()=>x0,factory:()=>A,fileExtensionIs:()=>nc,fileExtensionIsOneOf:()=>Gc,fileIncludeReasonToDiagnostics:()=>RV,fileShouldUseJavaScriptRequire:()=>u$,filter:()=>An,filterMutate:()=>vW,filterSemanticDiagnostics:()=>b5,find:()=>On,findAncestor:()=>gr,findBestPatternMatch:()=>jW,findChildOfKind:()=>_o,findComputedPropertyNameCacheAssignment:()=>T7,findConfigFile:()=>tV,findConstructorDeclaration:()=>z4,findContainingList:()=>Y5,findDiagnosticForNode:()=>sle,findFirstNonJsxWhitespaceToken:()=>wce,findIndex:()=>Sc,findLast:()=>rS,findLastIndex:()=>k8,findListItemInfo:()=>Cce,findModifier:()=>QI,findNextToken:()=>KS,findPackageJson:()=>ile,findPackageJsons:()=>r$,findPrecedingMatchingToken:()=>nL,findPrecedingToken:()=>Cl,findSuperStatementIndexPath:()=>r5,findTokenOnLeftOfPosition:()=>wE,findUseStrictPrologue:()=>CG,first:()=>Ea,firstDefined:()=>po,firstDefinedIterator:()=>vm,firstIterator:()=>IW,firstOrOnly:()=>a$,firstOrUndefined:()=>_l,firstOrUndefinedIterator:()=>KN,fixupCompilerOptions:()=>w$,flatMap:()=>ga,flatMapIterator:()=>bW,flatMapToMutable:()=>fP,flatten:()=>Qp,flattenCommaList:()=>zie,flattenDestructuringAssignment:()=>jk,flattenDestructuringBinding:()=>VS,flattenDiagnosticMessageText:()=>Gm,forEach:()=>or,forEachAncestor:()=>fte,forEachAncestorDirectory:()=>wP,forEachAncestorDirectoryStoppingAtGlobalCache:()=>Pg,forEachChild:()=>Es,forEachChildRecursively:()=>q2,forEachDynamicImportOrRequireCall:()=>$O,forEachEmittedFile:()=>UU,forEachEnclosingBlockScopeContainer:()=>Ite,forEachEntry:()=>Nl,forEachExternalModuleToImportFrom:()=>p$,forEachImportClauseDeclaration:()=>ere,forEachKey:()=>uh,forEachLeadingCommentRange:()=>o6,forEachNameInAccessChainWalkingLeft:()=>Bre,forEachNameOfDefaultExport:()=>PL,forEachOptionsSyntaxByName:()=>$J,forEachProjectReference:()=>MA,forEachPropertyAssignment:()=>Jw,forEachResolvedProjectReference:()=>VJ,forEachReturnStatement:()=>D0,forEachRight:()=>rh,forEachTrailingCommentRange:()=>c6,forEachTsConfigPropArray:()=>z6,forEachUnique:()=>Gq,forEachYieldExpression:()=>Fte,formatColorAndReset:()=>$S,formatDiagnostic:()=>sV,formatDiagnostics:()=>vTe,formatDiagnosticsWithColorAndContext:()=>eoe,formatGeneratedName:()=>Xb,formatGeneratedNamePart:()=>wI,formatLocation:()=>aV,formatMessage:()=>k2,formatStringFromArgs:()=>hh,formatting:()=>yl,generateDjb2Hash:()=>kP,generateTSConfig:()=>fse,getAdjustedReferenceLocation:()=>Tq,getAdjustedRenameLocation:()=>eL,getAliasDeclarationFromName:()=>Pz,getAllAccessorDeclarations:()=>wS,getAllDecoratorsOfClass:()=>FU,getAllDecoratorsOfClassElement:()=>i5,getAllJSDocTags:()=>Y8,getAllJSDocTagsOfKind:()=>p0e,getAllKeys:()=>gve,getAllProjectOutputs:()=>l5,getAllSuperTypeNodes:()=>nA,getAllowImportingTsExtensions:()=>$re,getAllowJSCompilerOption:()=>F0,getAllowSyntheticDefaultImports:()=>x2,getAncestor:()=>Lb,getAnyExtensionFromPath:()=>qx,getAreDeclarationMapsEnabled:()=>SO,getAssignedExpandoInitializer:()=>c2,getAssignedName:()=>Q8,getAssignmentDeclarationKind:()=>Vc,getAssignmentDeclarationPropertyAccessKind:()=>e4,getAssignmentTargetKind:()=>P0,getAutomaticTypeDirectiveNames:()=>J7,getBaseFileName:()=>fl,getBinaryOperatorPrecedence:()=>m4,getBuildInfo:()=>KU,getBuildInfoFileVersionMap:()=>bV,getBuildInfoText:()=>Jae,getBuildOrderFromAnyBuildOrder:()=>$M,getBuilderCreationParameters:()=>x5,getBuilderFileEmit:()=>H0,getCanonicalDiagnostic:()=>Nte,getCheckFlags:()=>kc,getClassExtendsHeritageElement:()=>TS,getClassLikeDeclarationOfSymbol:()=>_y,getCombinedLocalAndExportSymbolFlags:()=>rI,getCombinedModifierFlags:()=>Db,getCombinedNodeFlags:()=>ny,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>xB,getCommentRange:()=>Fm,getCommonSourceDirectory:()=>gE,getCommonSourceDirectoryOfConfig:()=>Wk,getCompilerOptionValue:()=>xO,getCompilerOptionsDiffValue:()=>_se,getConditions:()=>U0,getConfigFileParsingDiagnostics:()=>HS,getConstantValue:()=>jne,getContainerFlags:()=>mU,getContainerNode:()=>Jk,getContainingClass:()=>su,getContainingClassExcludingClassDecorators:()=>MF,getContainingClassStaticBlock:()=>Gte,getContainingFunction:()=>ep,getContainingFunctionDeclaration:()=>Jte,getContainingFunctionOrClassStaticBlock:()=>NF,getContainingNodeArray:()=>hne,getContainingObjectLiteralElement:()=>I3,getContextualTypeFromParent:()=>mL,getContextualTypeFromParentOrAncestorTypeNode:()=>Z5,getDeclarationDiagnostics:()=>Lae,getDeclarationEmitExtensionForPath:()=>tO,getDeclarationEmitOutputFilePath:()=>mre,getDeclarationEmitOutputFilePathWorker:()=>eO,getDeclarationFileExtension:()=>x7,getDeclarationFromName:()=>rA,getDeclarationModifierFlagsFromSymbol:()=>Ap,getDeclarationOfKind:()=>Yo,getDeclarationsOfKind:()=>ute,getDeclaredExpandoInitializer:()=>ZP,getDecorators:()=>g0,getDefaultCompilerOptions:()=>VL,getDefaultFormatCodeSettings:()=>G5,getDefaultLibFileName:()=>u6,getDefaultLibFilePath:()=>Vue,getDefaultLikeExportInfo:()=>DL,getDefaultLikeExportNameFromDeclaration:()=>o$,getDefaultResolutionModeForFileWorker:()=>v5,getDiagnosticText:()=>j_,getDiagnosticsWithinSpan:()=>ale,getDirectoryPath:()=>Yn,getDirectoryToWatchFailedLookupLocation:()=>xV,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>Coe,getDocumentPositionMapper:()=>S$,getDocumentSpansEqualityComparer:()=>Jq,getESModuleInterop:()=>yh,getEditsForFileRename:()=>gle,getEffectiveBaseTypeNode:()=>Dm,getEffectiveConstraintOfTypeParameter:()=>Aw,getEffectiveContainerForJSDocTemplateTag:()=>VF,getEffectiveImplementsTypeNodes:()=>Qw,getEffectiveInitializer:()=>X6,getEffectiveJSDocHost:()=>Ob,getEffectiveModifierFlags:()=>r_,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>xre,getEffectiveModifierFlagsNoCache:()=>Cre,getEffectiveReturnTypeNode:()=>Wf,getEffectiveSetAccessorTypeAnnotationNode:()=>Qz,getEffectiveTypeAnnotationNode:()=>pl,getEffectiveTypeParameterDeclarations:()=>y0,getEffectiveTypeRoots:()=>rE,getElementOrPropertyAccessArgumentExpressionOrName:()=>UF,getElementOrPropertyAccessName:()=>ay,getElementsOfBindingOrAssignmentPattern:()=>CI,getEmitDeclarations:()=>K_,getEmitFlags:()=>Na,getEmitHelpers:()=>XJ,getEmitModuleDetectionKind:()=>Hre,getEmitModuleFormatOfFileWorker:()=>bE,getEmitModuleKind:()=>n_,getEmitModuleResolutionKind:()=>Bu,getEmitScriptTarget:()=>wa,getEmitStandardClassFields:()=>yJ,getEnclosingBlockScopeContainer:()=>Gd,getEnclosingContainer:()=>xF,getEncodedSemanticClassifications:()=>d$,getEncodedSyntacticClassifications:()=>m$,getEndLinePosition:()=>E6,getEntityNameFromTypeNode:()=>U6,getEntrypointsFromPackageJsonInfo:()=>uU,getErrorCountForSummary:()=>I5,getErrorSpanForNode:()=>ak,getErrorSummaryText:()=>DV,getEscapedTextOfIdentifierOrLiteral:()=>aA,getEscapedTextOfJsxAttributeName:()=>EA,getEscapedTextOfJsxNamespacedName:()=>D2,getExpandoInitializer:()=>Rb,getExportAssignmentExpression:()=>Az,getExportInfoMap:()=>v3,getExportNeedsImportStarHelper:()=>iae,getExpressionAssociativity:()=>Lz,getExpressionPrecedence:()=>oA,getExternalHelpersModuleName:()=>sM,getExternalModuleImportEqualsDeclarationExpression:()=>XP,getExternalModuleName:()=>u2,getExternalModuleNameFromDeclaration:()=>pre,getExternalModuleNameFromPath:()=>Uz,getExternalModuleNameLiteral:()=>V2,getExternalModuleRequireArgument:()=>vz,getFallbackOptions:()=>WM,getFileEmitOutput:()=>soe,getFileMatcherPatterns:()=>PO,getFileNamesFromConfigSpecs:()=>eE,getFileWatcherEventKind:()=>uB,getFilesInErrorForSummary:()=>D5,getFirstConstructorWithBody:()=>mh,getFirstIdentifier:()=>h_,getFirstNonSpaceCharacterPosition:()=>Kce,getFirstProjectOutput:()=>$U,getFixableErrorSpanExpression:()=>i$,getFormatCodeSettingsForWriting:()=>CL,getFullWidth:()=>P6,getFunctionFlags:()=>Kc,getHeritageClause:()=>_4,getHostSignatureFromJSDoc:()=>Fb,getIdentifierAutoGenerate:()=>fbe,getIdentifierGeneratedImportReference:()=>Une,getIdentifierTypeArguments:()=>Sk,getImmediatelyInvokedFunctionExpression:()=>hS,getImpliedNodeFormatForEmitWorker:()=>Bk,getImpliedNodeFormatForFile:()=>zM,getImpliedNodeFormatForFileWorker:()=>y5,getImportNeedsImportDefaultHelper:()=>NU,getImportNeedsImportStarHelper:()=>e5,getIndentString:()=>ZF,getInferredLibraryNameResolveFrom:()=>h5,getInitializedVariables:()=>mA,getInitializerOfBinaryExpression:()=>kz,getInitializerOfBindingOrAssignmentElement:()=>oM,getInterfaceBaseTypeNodes:()=>iA,getInternalEmitFlags:()=>Sd,getInvokedExpression:()=>OF,getIsFileExcluded:()=>_le,getIsolatedModules:()=>id,getJSDocAugmentsTag:()=>Ree,getJSDocClassTag:()=>IB,getJSDocCommentRanges:()=>dz,getJSDocCommentsAndTags:()=>xz,getJSDocDeprecatedTag:()=>DB,getJSDocDeprecatedTagNoCache:()=>zee,getJSDocEnumTag:()=>PB,getJSDocHost:()=>bS,getJSDocImplementsTags:()=>Fee,getJSDocOverloadTags:()=>wz,getJSDocOverrideTagNoCache:()=>Bee,getJSDocParameterTags:()=>Pw,getJSDocParameterTagsNoCache:()=>Aee,getJSDocPrivateTag:()=>l0e,getJSDocPrivateTagNoCache:()=>Lee,getJSDocProtectedTag:()=>u0e,getJSDocProtectedTagNoCache:()=>jee,getJSDocPublicTag:()=>c0e,getJSDocPublicTagNoCache:()=>Oee,getJSDocReadonlyTag:()=>_0e,getJSDocReadonlyTagNoCache:()=>Wee,getJSDocReturnTag:()=>Jee,getJSDocReturnType:()=>g6,getJSDocRoot:()=>Hw,getJSDocSatisfiesExpressionType:()=>jJ,getJSDocSatisfiesTag:()=>AB,getJSDocTags:()=>Ab,getJSDocTemplateTag:()=>f0e,getJSDocThisTag:()=>K8,getJSDocType:()=>h0,getJSDocTypeAliasName:()=>DG,getJSDocTypeAssertionType:()=>kI,getJSDocTypeParameterDeclarations:()=>aO,getJSDocTypeParameterTags:()=>Eee,getJSDocTypeParameterTagsNoCache:()=>Nee,getJSDocTypeTag:()=>Pb,getJSXImplicitImportBase:()=>N4,getJSXRuntimeImport:()=>wO,getJSXTransformEnabled:()=>CO,getKeyForCompilerOptions:()=>sU,getLanguageVariant:()=>w4,getLastChild:()=>_J,getLeadingCommentRanges:()=>sh,getLeadingCommentRangesOfNode:()=>pz,getLeftmostAccessExpression:()=>nI,getLeftmostExpression:()=>iI,getLibFileNameFromLibReference:()=>UJ,getLibNameFromLibReference:()=>GJ,getLibraryNameFromLibFileName:()=>uV,getLineAndCharacterOfPosition:()=>Qs,getLineInfo:()=>PU,getLineOfLocalPosition:()=>lA,getLineStartPositionForPosition:()=>ld,getLineStarts:()=>nh,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Lre,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Ore,getLinesBetweenPositions:()=>DP,getLinesBetweenRangeEndAndRangeStart:()=>aJ,getLinesBetweenRangeEndPositions:()=>J0e,getLiteralText:()=>bte,getLocalNameForExternalImport:()=>xI,getLocalSymbolForExportDefault:()=>pA,getLocaleSpecificMessage:()=>Is,getLocaleTimeString:()=>qM,getMappedContextSpan:()=>Uq,getMappedDocumentSpan:()=>fL,getMappedLocation:()=>AE,getMatchedFileSpec:()=>NV,getMatchedIncludeSpec:()=>MV,getMeaningFromDeclaration:()=>V5,getMeaningFromLocation:()=>zk,getMembersOfDeclaration:()=>Ote,getModeForFileReference:()=>toe,getModeForResolutionAtIndex:()=>CTe,getModeForUsageLocation:()=>cV,getModifiedTime:()=>Vx,getModifiers:()=>cS,getModuleInstanceState:()=>gy,getModuleNameStringLiteralAt:()=>GM,getModuleSpecifierEndingPreference:()=>one,getModuleSpecifierResolverHost:()=>Fq,getNameForExportedSymbol:()=>TL,getNameFromImportAttribute:()=>GO,getNameFromIndexInfo:()=>Dte,getNameFromPropertyName:()=>o3,getNameOfAccessExpression:()=>pJ,getNameOfCompilerOptionValue:()=>XG,getNameOfDeclaration:()=>vs,getNameOfExpando:()=>bz,getNameOfJSDocTypedef:()=>Pee,getNameOfScriptTarget:()=>kO,getNameOrArgument:()=>Z6,getNameTable:()=>X$,getNamespaceDeclarationNode:()=>qw,getNewLineCharacter:()=>nv,getNewLineKind:()=>y3,getNewLineOrDefaultFromHost:()=>yy,getNewTargetContainer:()=>Vte,getNextJSDocCommentLocation:()=>Cz,getNodeChildren:()=>vG,getNodeForGeneratedName:()=>lM,getNodeId:()=>Ua,getNodeKind:()=>QS,getNodeModifiers:()=>IE,getNodeModulePathParts:()=>BO,getNonAssignedNameOfDeclaration:()=>H8,getNonAssignmentOperatorForCompoundAssignment:()=>uE,getNonAugmentationDeclaration:()=>az,getNonDecoratorTokenPosOfNode:()=>ez,getNonIncrementalBuildInfoRoots:()=>boe,getNonModifierTokenPosOfNode:()=>yte,getNormalizedAbsolutePath:()=>as,getNormalizedAbsolutePathWithoutRoot:()=>dB,getNormalizedPathComponents:()=>B8,getObjectFlags:()=>Mn,getOperatorAssociativity:()=>jz,getOperatorPrecedence:()=>d4,getOptionFromName:()=>VG,getOptionsForLibraryResolution:()=>aU,getOptionsNameMap:()=>DI,getOptionsSyntaxByArrayElementValue:()=>qJ,getOptionsSyntaxByValue:()=>Pne,getOrCreateEmitNode:()=>Au,getOrUpdate:()=>pP,getOriginalNode:()=>ic,getOriginalNodeId:()=>T_,getOutputDeclarationFileName:()=>LI,getOutputDeclarationFileNameWorker:()=>VU,getOutputExtension:()=>OM,getOutputFileNames:()=>hTe,getOutputJSFileNameWorker:()=>qU,getOutputPathsFor:()=>mE,getOwnEmitOutputFilePath:()=>dre,getOwnKeys:()=>bm,getOwnValues:()=>zx,getPackageJsonTypesVersionsPaths:()=>z7,getPackageNameFromTypesPackageName:()=>aE,getPackageScopeForPath:()=>sE,getParameterSymbolFromJSDoc:()=>o4,getParentNodeInSpan:()=>l3,getParseTreeNode:()=>Cs,getParsedCommandLineOfConfigFile:()=>mM,getPathComponents:()=>Iu,getPathFromPathComponents:()=>Ib,getPathUpdater:()=>y$,getPathsBasePath:()=>rO,getPatternFromSpec:()=>kJ,getPendingEmitKindWithSeen:()=>k5,getPositionOfLineAndCharacter:()=>s6,getPossibleGenericSignatures:()=>xq,getPossibleOriginalInputExtensionForExtension:()=>Vz,getPossibleOriginalInputPathWithoutChangingExt:()=>qz,getPossibleTypeArgumentsInfo:()=>Cq,getPreEmitDiagnostics:()=>yTe,getPrecedingNonSpaceCharacterPosition:()=>pL,getPrivateIdentifier:()=>OU,getProperties:()=>RU,getProperty:()=>C8,getPropertyAssignmentAliasLikeExpression:()=>ore,getPropertyNameForPropertyNameNode:()=>dk,getPropertyNameFromType:()=>Np,getPropertyNameOfBindingOrAssignmentElement:()=>IG,getPropertySymbolFromBindingElement:()=>_L,getPropertySymbolsFromContextualType:()=>$L,getQuoteFromPreference:()=>Lq,getQuotePreference:()=>Tf,getRangesWhere:()=>kW,getRefactorContextSpan:()=>aC,getReferencedFileLocation:()=>vE,getRegexFromPattern:()=>iv,getRegularExpressionForWildcard:()=>bA,getRegularExpressionsForWildcards:()=>IO,getRelativePathFromDirectory:()=>Zf,getRelativePathFromFile:()=>Cw,getRelativePathToDirectoryOrUrl:()=>Hx,getRenameLocation:()=>f3,getReplacementSpanForContextToken:()=>Pq,getResolutionDiagnostic:()=>dV,getResolutionModeOverride:()=>jI,getResolveJsonModule:()=>DS,getResolvePackageJsonExports:()=>D4,getResolvePackageJsonImports:()=>P4,getResolvedExternalModuleName:()=>Gz,getResolvedModuleFromResolution:()=>i2,getResolvedTypeReferenceDirectiveFromResolution:()=>gF,getRestIndicatorOfBindingOrAssignmentElement:()=>v7,getRestParameterElementType:()=>mz,getRightMostAssignedExpression:()=>Y6,getRootDeclaration:()=>Am,getRootDirectoryOfResolutionCache:()=>woe,getRootLength:()=>Bd,getScriptKind:()=>Hq,getScriptKindFromFileName:()=>EO,getScriptTargetFeatures:()=>tz,getSelectedEffectiveModifierFlags:()=>g2,getSelectedSyntacticModifierFlags:()=>Tre,getSemanticClassifications:()=>fle,getSemanticJsxChildren:()=>Xw,getSetAccessorTypeAnnotationNode:()=>hre,getSetAccessorValueParameter:()=>uA,getSetExternalModuleIndicator:()=>I4,getShebang:()=>q8,getSingleVariableOfVariableStatement:()=>p2,getSnapshotText:()=>sC,getSnippetElement:()=>YJ,getSourceFileOfModule:()=>A6,getSourceFileOfNode:()=>Fr,getSourceFilePathInNewDir:()=>iO,getSourceFileVersionAsHashFromText:()=>A5,getSourceFilesToEmit:()=>nO,getSourceMapRange:()=>av,getSourceMapper:()=>Dle,getSourceTextOfNodeFromSourceFile:()=>pS,getSpanOfTokenAtPosition:()=>Cm,getSpellingSuggestion:()=>oS,getStartPositionOfLine:()=>C0,getStartPositionOfRange:()=>dA,getStartsOnNewLine:()=>RA,getStaticPropertiesAndClassStaticBlock:()=>n5,getStrictOptionValue:()=>Pu,getStringComparer:()=>bw,getSubPatternFromSpec:()=>DO,getSuperCallFromStatement:()=>t5,getSuperContainer:()=>J6,getSupportedCodeFixes:()=>Q$,getSupportedExtensions:()=>SA,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>R4,getSwitchedType:()=>Zq,getSymbolId:()=>ua,getSymbolNameForPrivateIdentifier:()=>f4,getSymbolTarget:()=>Qq,getSyntacticClassifications:()=>ple,getSyntacticModifierFlags:()=>tv,getSyntacticModifierFlagsNoCache:()=>Yz,getSynthesizedDeepClone:()=>ro,getSynthesizedDeepCloneWithReplacements:()=>_3,getSynthesizedDeepClones:()=>XS,getSynthesizedDeepClonesWithReplacements:()=>Kq,getSyntheticLeadingComments:()=>uI,getSyntheticTrailingComments:()=>q4,getTargetLabel:()=>H5,getTargetOfBindingOrAssignmentElement:()=>J0,getTemporaryModuleResolutionState:()=>iE,getTextOfConstantValue:()=>Ste,getTextOfIdentifierOrLiteral:()=>Ip,getTextOfJSDocComment:()=>h6,getTextOfJsxAttributeName:()=>B4,getTextOfJsxNamespacedName:()=>NA,getTextOfNode:()=>oc,getTextOfNodeFromSourceText:()=>VP,getTextOfPropertyName:()=>o2,getThisContainer:()=>t_,getThisParameter:()=>xS,getTokenAtPosition:()=>ki,getTokenPosOfNode:()=>w0,getTokenSourceMapRange:()=>ube,getTouchingPropertyName:()=>W_,getTouchingToken:()=>$I,getTrailingCommentRanges:()=>m0,getTrailingSemicolonDeferringWriter:()=>Jz,getTransformers:()=>Wae,getTsBuildInfoEmitOutputFilePath:()=>n1,getTsConfigObjectLiteralExpression:()=>QP,getTsConfigPropArrayElementValue:()=>EF,getTypeAnnotationNode:()=>yre,getTypeArgumentOrTypeParameterList:()=>Mce,getTypeKeywordOfTypeOnlyImport:()=>Bq,getTypeNode:()=>Jne,getTypeNodeIfAccessible:()=>FE,getTypeParameterFromJsDoc:()=>tre,getTypeParameterOwner:()=>i0e,getTypesPackageName:()=>H7,getUILocale:()=>RY,getUniqueName:()=>Uk,getUniqueSymbolId:()=>Qce,getUseDefineForClassFields:()=>A4,getWatchErrorSummaryDiagnosticMessage:()=>IV,getWatchFactory:()=>eV,group:()=>vw,groupBy:()=>AW,guessIndentation:()=>cte,handleNoEmitOptions:()=>pV,handleWatchOptionsConfigDirTemplateSubstitution:()=>F7,hasAbstractModifier:()=>IS,hasAccessorModifier:()=>Em,hasAmbientModifier:()=>Xz,hasChangesInResolutions:()=>XB,hasContextSensitiveParameters:()=>jO,hasDecorators:()=>rp,hasDocComment:()=>Ece,hasDynamicName:()=>oy,hasEffectiveModifier:()=>hf,hasEffectiveModifiers:()=>Kz,hasEffectiveReadonlyModifier:()=>gk,hasExtension:()=>xw,hasImplementationTSFileExtension:()=>sne,hasIndexSignature:()=>Yq,hasInferredType:()=>VO,hasInitializer:()=>Yy,hasInvalidEscape:()=>Bz,hasJSDocNodes:()=>Lf,hasJSDocParameterTags:()=>Mee,hasJSFileExtension:()=>vh,hasJsonModuleEmitEnabled:()=>TO,hasOnlyExpressionInitializer:()=>ik,hasOverrideModifier:()=>oO,hasPossibleExternalModuleReference:()=>wte,hasProperty:()=>bo,hasPropertyAccessExpressionWithName:()=>ZM,hasQuestionToken:()=>_2,hasRecordedExternalHelpers:()=>Pie,hasResolutionModeOverride:()=>Tne,hasRestParameter:()=>qB,hasScopeMarker:()=>Zee,hasStaticModifier:()=>Tl,hasSyntacticModifier:()=>ei,hasSyntacticModifiers:()=>Sre,hasTSFileExtension:()=>yk,hasTabstop:()=>vne,hasTrailingDirectorySeparator:()=>p0,hasType:()=>_F,hasTypeArguments:()=>N0e,hasZeroOrOneAsteriskCharacter:()=>vJ,hostGetCanonicalFileName:()=>cy,hostUsesCaseSensitiveFileNames:()=>mk,idText:()=>Ln,identifierIsThisKeyword:()=>Hz,identifierToKeywordKind:()=>YT,identity:()=>Do,identitySourceMapConsumer:()=>EU,ignoreSourceNewlines:()=>eG,ignoredPaths:()=>L8,importFromModuleSpecifier:()=>eA,importSyntaxAffectsModuleResolution:()=>hJ,indexOfAnyCharCode:()=>TY,indexOfNode:()=>Lw,indicesOf:()=>x8,inferredTypesContainingFile:()=>yE,injectClassNamedEvaluationHelperBlockIfMissing:()=>o5,injectClassThisAssignmentIfMissing:()=>fae,insertImports:()=>Wq,insertSorted:()=>s0,insertStatementAfterCustomPrologue:()=>sk,insertStatementAfterStandardPrologue:()=>C0e,insertStatementsAfterCustomPrologue:()=>YB,insertStatementsAfterStandardPrologue:()=>_h,intersperse:()=>HN,intrinsicTagNameToString:()=>WJ,introducesArgumentsExoticObject:()=>Wte,inverseJsxOptionMap:()=>pM,isAbstractConstructorSymbol:()=>jre,isAbstractModifier:()=>eie,isAccessExpression:()=>Oo,isAccessibilityModifier:()=>Iq,isAccessor:()=>T0,isAccessorModifier:()=>rie,isAliasableExpression:()=>qF,isAmbientModule:()=>e_,isAmbientPropertyDeclaration:()=>cz,isAnyDirectorySeparator:()=>_B,isAnyImportOrBareOrAccessedRequire:()=>xte,isAnyImportOrReExport:()=>R6,isAnyImportOrRequireStatement:()=>Cte,isAnyImportSyntax:()=>a2,isAnySupportedFileExtension:()=>rbe,isApplicableVersionedTypesKey:()=>kM,isArgumentExpressionOfElementAccess:()=>gq,isArray:()=>ks,isArrayBindingElement:()=>sF,isArrayBindingOrAssignmentElement:()=>k6,isArrayBindingOrAssignmentPattern:()=>BB,isArrayBindingPattern:()=>uv,isArrayLiteralExpression:()=>gu,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>dv,isArrayTypeNode:()=>X4,isArrowFunction:()=>Lo,isAsExpression:()=>dI,isAssertClause:()=>lie,isAssertEntry:()=>Sbe,isAssertionExpression:()=>fS,isAssertsKeyword:()=>Yne,isAssignmentDeclaration:()=>YP,isAssignmentExpression:()=>ql,isAssignmentOperator:()=>ly,isAssignmentPattern:()=>zP,isAssignmentTarget:()=>A0,isAsteriskToken:()=>H4,isAsyncFunction:()=>sA,isAsyncModifier:()=>jA,isAutoAccessorPropertyDeclaration:()=>N_,isAwaitExpression:()=>B0,isAwaitKeyword:()=>sG,isBigIntLiteral:()=>LA,isBinaryExpression:()=>vn,isBinaryLogicalOperator:()=>v4,isBinaryOperatorToken:()=>Lie,isBindableObjectDefinePropertyCall:()=>uk,isBindableStaticAccessExpression:()=>vS,isBindableStaticElementAccessExpression:()=>GF,isBindableStaticNameExpression:()=>_k,isBindingElement:()=>Da,isBindingElementOfBareOrAccessedRequire:()=>Hte,isBindingName:()=>rk,isBindingOrAssignmentElement:()=>Qee,isBindingOrAssignmentPattern:()=>S6,isBindingPattern:()=>Ws,isBlock:()=>Fs,isBlockLike:()=>oC,isBlockOrCatchScoped:()=>rz,isBlockScope:()=>lz,isBlockScopedContainerTopLevel:()=>kte,isBooleanLiteral:()=>BP,isBreakOrContinueStatement:()=>OP,isBreakStatement:()=>ybe,isBuildCommand:()=>Hoe,isBuildInfoFile:()=>Bae,isBuilderProgram:()=>PV,isBundle:()=>pie,isCallChain:()=>ZT,isCallExpression:()=>qs,isCallExpressionTarget:()=>uq,isCallLikeExpression:()=>_S,isCallLikeOrFunctionLikeExpression:()=>zB,isCallOrNewExpression:()=>km,isCallOrNewExpressionTarget:()=>_q,isCallSignatureDeclaration:()=>O2,isCallToHelper:()=>OA,isCaseBlock:()=>VA,isCaseClause:()=>yI,isCaseKeyword:()=>nie,isCaseOrDefaultClause:()=>lF,isCatchClause:()=>BS,isCatchClauseVariableDeclaration:()=>yne,isCatchClauseVariableDeclarationOrBindingElement:()=>nz,isCheckJsEnabledForFile:()=>xA,isCircularBuildOrder:()=>nC,isClassDeclaration:()=>gl,isClassElement:()=>rl,isClassExpression:()=>ml,isClassInstanceProperty:()=>$ee,isClassLike:()=>ii,isClassMemberModifier:()=>LB,isClassNamedEvaluationHelperBlock:()=>eC,isClassOrTypeElement:()=>iF,isClassStaticBlockDeclaration:()=>Nc,isClassThisAssignmentBlock:()=>fE,isColonToken:()=>Kne,isCommaExpression:()=>iM,isCommaListExpression:()=>GA,isCommaSequence:()=>KA,isCommaToken:()=>Qne,isComment:()=>iL,isCommonJsExportPropertyAssignment:()=>PF,isCommonJsExportedExpression:()=>Lte,isCompoundAssignment:()=>lE,isComputedNonLiteralName:()=>F6,isComputedPropertyName:()=>pa,isConciseBody:()=>oF,isConditionalExpression:()=>wk,isConditionalTypeNode:()=>RS,isConstAssertion:()=>BJ,isConstTypeReference:()=>vd,isConstructSignatureDeclaration:()=>K4,isConstructorDeclaration:()=>lc,isConstructorTypeNode:()=>_I,isContextualKeyword:()=>HF,isContinueStatement:()=>hbe,isCustomPrologue:()=>B6,isDebuggerStatement:()=>vbe,isDeclaration:()=>Ul,isDeclarationBindingElement:()=>b6,isDeclarationFileName:()=>Ll,isDeclarationName:()=>Cg,isDeclarationNameOfEnumOrNamespace:()=>cJ,isDeclarationReadonly:()=>L6,isDeclarationStatement:()=>nte,isDeclarationWithTypeParameterChildren:()=>_z,isDeclarationWithTypeParameters:()=>uz,isDecorator:()=>Rl,isDecoratorTarget:()=>bce,isDefaultClause:()=>qA,isDefaultImport:()=>fk,isDefaultModifier:()=>n7,isDefaultedExpandoInitializer:()=>Qte,isDeleteExpression:()=>sie,isDeleteTarget:()=>Dz,isDeprecatedDeclaration:()=>kL,isDestructuringAssignment:()=>rv,isDiskPathRoot:()=>fB,isDoStatement:()=>gbe,isDocumentRegistryEntry:()=>b3,isDotDotDotToken:()=>t7,isDottedName:()=>S4,isDynamicName:()=>KF,isEffectiveExternalModule:()=>jw,isEffectiveStrictModeSourceFile:()=>oz,isElementAccessChain:()=>EB,isElementAccessExpression:()=>wo,isEmittedFileOfProgram:()=>$ae,isEmptyArrayLiteral:()=>Pre,isEmptyBindingElement:()=>wee,isEmptyBindingPattern:()=>Cee,isEmptyObjectLiteral:()=>nJ,isEmptyStatement:()=>cG,isEmptyStringLiteral:()=>yz,isEntityName:()=>m_,isEntityNameExpression:()=>mo,isEnumConst:()=>Nb,isEnumDeclaration:()=>LS,isEnumMember:()=>_v,isEqualityOperatorKind:()=>gL,isEqualsGreaterThanToken:()=>Xne,isExclamationToken:()=>Q4,isExcludedFile:()=>dse,isExclusivelyTypeOnlyImportOrExport:()=>oV,isExpandoPropertyDeclaration:()=>P2,isExportAssignment:()=>Ho,isExportDeclaration:()=>Xc,isExportModifier:()=>R2,isExportName:()=>h7,isExportNamespaceAsDefaultDeclaration:()=>SF,isExportOrDefaultModifier:()=>cM,isExportSpecifier:()=>zu,isExportsIdentifier:()=>lk,isExportsOrModuleExportsOrAlias:()=>GS,isExpression:()=>gt,isExpressionNode:()=>Ud,isExpressionOfExternalModuleImportEqualsDeclaration:()=>kce,isExpressionOfOptionalChainRoot:()=>eF,isExpressionStatement:()=>$l,isExpressionWithTypeArguments:()=>py,isExpressionWithTypeArgumentsInClassExtendsClause:()=>lO,isExternalModule:()=>xl,isExternalModuleAugmentation:()=>mS,isExternalModuleImportEqualsDeclaration:()=>Mb,isExternalModuleIndicator:()=>C6,isExternalModuleNameRelative:()=>Jl,isExternalModuleReference:()=>dy,isExternalModuleSymbol:()=>r2,isExternalOrCommonJsModule:()=>mf,isFileLevelReservedGeneratedIdentifier:()=>v6,isFileLevelUniqueName:()=>vF,isFileProbablyExternalModule:()=>_M,isFirstDeclarationOfSymbolParameter:()=>Vq,isFixablePromiseHandler:()=>x$,isForInOrOfStatement:()=>nk,isForInStatement:()=>c7,isForInitializer:()=>xp,isForOfStatement:()=>Z4,isForStatement:()=>$b,isFullSourceFile:()=>ph,isFunctionBlock:()=>gS,isFunctionBody:()=>GB,isFunctionDeclaration:()=>jc,isFunctionExpression:()=>Ao,isFunctionExpressionOrArrowFunction:()=>O0,isFunctionLike:()=>Ns,isFunctionLikeDeclaration:()=>xo,isFunctionLikeKind:()=>Yx,isFunctionLikeOrClassStaticBlockDeclaration:()=>Mw,isFunctionOrConstructorTypeNode:()=>Hee,isFunctionOrModuleBlock:()=>jB,isFunctionSymbol:()=>Yte,isFunctionTypeNode:()=>Ig,isGeneratedIdentifier:()=>Ko,isGeneratedPrivateIdentifier:()=>tk,isGetAccessor:()=>ch,isGetAccessorDeclaration:()=>Mp,isGetOrSetAccessorDeclaration:()=>y6,isGlobalScopeAugmentation:()=>xg,isGlobalSourceFile:()=>Zy,isGrammarError:()=>gte,isHeritageClause:()=>vf,isHoistedFunction:()=>IF,isHoistedVariableStatement:()=>DF,isIdentifier:()=>je,isIdentifierANonContextualKeyword:()=>Mz,isIdentifierName:()=>are,isIdentifierOrThisTypeNode:()=>Mie,isIdentifierPart:()=>ry,isIdentifierStart:()=>bg,isIdentifierText:()=>$_,isIdentifierTypePredicate:()=>Bte,isIdentifierTypeReference:()=>pne,isIfStatement:()=>qb,isIgnoredFileFromWildCardWatching:()=>jM,isImplicitGlob:()=>TJ,isImportAttribute:()=>uie,isImportAttributeName:()=>qee,isImportAttributes:()=>Dk,isImportCall:()=>jf,isImportClause:()=>Cd,isImportDeclaration:()=>sc,isImportEqualsDeclaration:()=>Ol,isImportKeyword:()=>BA,isImportMeta:()=>zw,isImportOrExportSpecifier:()=>b0,isImportOrExportSpecifierName:()=>Hce,isImportSpecifier:()=>a_,isImportTypeAssertionContainer:()=>bbe,isImportTypeNode:()=>Om,isImportable:()=>f$,isInComment:()=>pv,isInCompoundLikeAssignment:()=>Iz,isInExpressionContext:()=>LF,isInJSDoc:()=>$6,isInJSFile:()=>un,isInJSXText:()=>Ace,isInJsonFile:()=>WF,isInNonReferenceComment:()=>Oce,isInReferenceComment:()=>Fce,isInRightSideOfInternalImportEqualsDeclaration:()=>q5,isInString:()=>iC,isInTemplateString:()=>kq,isInTopLevelContext:()=>RF,isInTypeQuery:()=>m2,isIncrementalBuildInfo:()=>UM,isIncrementalBundleEmitBuildInfo:()=>doe,isIncrementalCompilation:()=>PS,isIndexSignatureDeclaration:()=>W0,isIndexedAccessTypeNode:()=>FS,isInferTypeNode:()=>kk,isInfinityOrNaNString:()=>PA,isInitializedProperty:()=>DM,isInitializedVariable:()=>C4,isInsideJsxElement:()=>rL,isInsideJsxElementOrAttribute:()=>Pce,isInsideNodeModules:()=>m3,isInsideTemplateLiteral:()=>i3,isInstanceOfExpression:()=>uO,isInstantiatedModule:()=>xU,isInterfaceDeclaration:()=>hu,isInternalDeclaration:()=>lte,isInternalModuleImportEqualsDeclaration:()=>ck,isInternalName:()=>xG,isIntersectionTypeNode:()=>W2,isIntrinsicJsxName:()=>Yw,isIterationStatement:()=>k0,isJSDoc:()=>Kd,isJSDocAllType:()=>gie,isJSDocAugmentsTag:()=>U2,isJSDocAuthorTag:()=>Cbe,isJSDocCallbackTag:()=>fG,isJSDocClassTag:()=>yie,isJSDocCommentContainingNode:()=>uF,isJSDocConstructSignature:()=>f2,isJSDocDeprecatedTag:()=>hG,isJSDocEnumTag:()=>tM,isJSDocFunctionType:()=>bI,isJSDocImplementsTag:()=>d7,isJSDocImportTag:()=>zm,isJSDocIndexSignature:()=>zF,isJSDocLikeText:()=>MG,isJSDocLink:()=>die,isJSDocLinkCode:()=>mie,isJSDocLinkLike:()=>t2,isJSDocLinkPlain:()=>kbe,isJSDocMemberName:()=>Kb,isJSDocNameReference:()=>$A,isJSDocNamepathType:()=>xbe,isJSDocNamespaceBody:()=>y0e,isJSDocNode:()=>Rw,isJSDocNonNullableType:()=>u7,isJSDocNullableType:()=>vI,isJSDocOptionalParameter:()=>zO,isJSDocOptionalType:()=>_G,isJSDocOverloadTag:()=>SI,isJSDocOverrideTag:()=>f7,isJSDocParameterTag:()=>ip,isJSDocPrivateTag:()=>dG,isJSDocPropertyLikeTag:()=>LP,isJSDocPropertyTag:()=>vie,isJSDocProtectedTag:()=>mG,isJSDocPublicTag:()=>pG,isJSDocReadonlyTag:()=>gG,isJSDocReturnTag:()=>p7,isJSDocSatisfiesExpression:()=>LJ,isJSDocSatisfiesTag:()=>m7,isJSDocSeeTag:()=>wbe,isJSDocSignature:()=>fv,isJSDocTag:()=>Fw,isJSDocTemplateTag:()=>ad,isJSDocThisTag:()=>yG,isJSDocThrowsTag:()=>Dbe,isJSDocTypeAlias:()=>td,isJSDocTypeAssertion:()=>zS,isJSDocTypeExpression:()=>Qb,isJSDocTypeLiteral:()=>Ak,isJSDocTypeTag:()=>HA,isJSDocTypedefTag:()=>Ek,isJSDocUnknownTag:()=>Ibe,isJSDocUnknownType:()=>hie,isJSDocVariadicType:()=>_7,isJSXTagName:()=>Uw,isJsonEqual:()=>OO,isJsonSourceFile:()=>wp,isJsxAttribute:()=>Bm,isJsxAttributeLike:()=>cF,isJsxAttributeName:()=>Sne,isJsxAttributes:()=>WS,isJsxCallLike:()=>ote,isJsxChild:()=>D6,isJsxClosingElement:()=>jS,isJsxClosingFragment:()=>fie,isJsxElement:()=>Wm,isJsxExpression:()=>hI,isJsxFragment:()=>Hb,isJsxNamespacedName:()=>Qd,isJsxOpeningElement:()=>Hd,isJsxOpeningFragment:()=>wd,isJsxOpeningLikeElement:()=>Wu,isJsxOpeningLikeElementTagName:()=>Sce,isJsxSelfClosingElement:()=>Pk,isJsxSpreadAttribute:()=>G2,isJsxTagNameExpression:()=>JP,isJsxText:()=>N2,isJumpStatementTarget:()=>e3,isKeyword:()=>F_,isKeywordOrPunctuation:()=>$F,isKnownSymbol:()=>p4,isLabelName:()=>dq,isLabelOfLabeledStatement:()=>pq,isLabeledStatement:()=>z0,isLateVisibilityPaintedStatement:()=>kF,isLeftHandSideExpression:()=>M_,isLet:()=>wF,isLineBreak:()=>Lu,isLiteralComputedPropertyDeclarationName:()=>l4,isLiteralExpression:()=>ek,isLiteralExpressionOfObject:()=>FB,isLiteralImportTypeNode:()=>sy,isLiteralKind:()=>jP,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>Q5,isLiteralTypeLiteral:()=>Yee,isLiteralTypeNode:()=>lv,isLocalName:()=>my,isLogicalOperator:()=>wre,isLogicalOrCoalescingAssignmentExpression:()=>Zz,isLogicalOrCoalescingAssignmentOperator:()=>_A,isLogicalOrCoalescingBinaryExpression:()=>b4,isLogicalOrCoalescingBinaryOperator:()=>cO,isMappedTypeNode:()=>Ck,isMemberName:()=>oh,isMetaProperty:()=>JA,isMethodDeclaration:()=>xc,isMethodOrAccessor:()=>Zx,isMethodSignature:()=>xd,isMinusToken:()=>iG,isMissingDeclaration:()=>Tbe,isMissingPackageJsonInfo:()=>wse,isModifier:()=>la,isModifierKind:()=>S0,isModifierLike:()=>Xo,isModuleAugmentationExternal:()=>sz,isModuleBlock:()=>Lm,isModuleBody:()=>ete,isModuleDeclaration:()=>nl,isModuleExportName:()=>l7,isModuleExportsAccessExpression:()=>dh,isModuleIdentifier:()=>Sz,isModuleName:()=>Oie,isModuleOrEnumDeclaration:()=>w6,isModuleReference:()=>ste,isModuleSpecifierLike:()=>uL,isModuleWithStringLiteralName:()=>TF,isNameOfFunctionDeclaration:()=>yq,isNameOfModuleDeclaration:()=>hq,isNamedDeclaration:()=>Gl,isNamedEvaluation:()=>gf,isNamedEvaluationSource:()=>Rz,isNamedExportBindings:()=>MB,isNamedExports:()=>Fp,isNamedImportBindings:()=>UB,isNamedImports:()=>jm,isNamedImportsOrExports:()=>hO,isNamedTupleMember:()=>fI,isNamespaceBody:()=>h0e,isNamespaceExport:()=>Dg,isNamespaceExportDeclaration:()=>eM,isNamespaceImport:()=>kh,isNamespaceReexportDeclaration:()=>$te,isNewExpression:()=>OS,isNewExpressionTarget:()=>xE,isNewScopeNode:()=>Dne,isNoSubstitutionTemplateLiteral:()=>Tk,isNodeArray:()=>lS,isNodeArrayMultiLine:()=>Fre,isNodeDescendantOf:()=>SS,isNodeKind:()=>rF,isNodeLikeSystem:()=>zW,isNodeModulesDirectory:()=>J8,isNodeWithPossibleHoistedDeclaration:()=>ire,isNonContextualKeyword:()=>Nz,isNonGlobalAmbientModule:()=>iz,isNonNullAccess:()=>bne,isNonNullChain:()=>tF,isNonNullExpression:()=>z2,isNonStaticMethodOrAccessorWithPrivateName:()=>sae,isNotEmittedStatement:()=>_ie,isNullishCoalesce:()=>NB,isNumber:()=>c0,isNumericLiteral:()=>L_,isNumericLiteralName:()=>Sh,isObjectBindingElementWithoutPropertyName:()=>c3,isObjectBindingOrAssignmentElement:()=>T6,isObjectBindingOrAssignmentPattern:()=>WB,isObjectBindingPattern:()=>np,isObjectLiteralElement:()=>VB,isObjectLiteralElementLike:()=>iy,isObjectLiteralExpression:()=>Sa,isObjectLiteralMethod:()=>ed,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>AF,isObjectTypeDeclaration:()=>b2,isOmittedExpression:()=>Fl,isOptionalChain:()=>ju,isOptionalChainRoot:()=>RP,isOptionalDeclaration:()=>I2,isOptionalJSDocPropertyLikeTag:()=>W4,isOptionalTypeNode:()=>i7,isOuterExpression:()=>y7,isOutermostOptionalChain:()=>FP,isOverrideModifier:()=>tie,isPackageJsonInfo:()=>G7,isPackedArrayLiteral:()=>FJ,isParameter:()=>Bi,isParameterPropertyDeclaration:()=>pf,isParameterPropertyModifier:()=>WP,isParenthesizedExpression:()=>b_,isParenthesizedTypeNode:()=>xk,isParseTreeNode:()=>MP,isPartOfParameterDeclaration:()=>jb,isPartOfTypeNode:()=>Im,isPartOfTypeOnlyImportOrExportDeclaration:()=>Vee,isPartOfTypeQuery:()=>jF,isPartiallyEmittedExpression:()=>aie,isPatternMatch:()=>D8,isPinnedComment:()=>bF,isPlainJsFile:()=>UP,isPlusToken:()=>nG,isPossiblyTypeArgumentPosition:()=>n3,isPostfixUnaryExpression:()=>oG,isPrefixUnaryExpression:()=>Vb,isPrimitiveLiteralValue:()=>UO,isPrivateIdentifier:()=>ji,isPrivateIdentifierClassElementDeclaration:()=>Zu,isPrivateIdentifierPropertyAccessExpression:()=>Nw,isPrivateIdentifierSymbol:()=>lre,isProgramUptoDate:()=>_V,isPrologueDirective:()=>wm,isPropertyAccessChain:()=>Z8,isPropertyAccessEntityNameExpression:()=>T4,isPropertyAccessExpression:()=>Nn,isPropertyAccessOrQualifiedName:()=>x6,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Kee,isPropertyAssignment:()=>hl,isPropertyDeclaration:()=>ds,isPropertyName:()=>tl,isPropertyNameLiteral:()=>Pm,isPropertySignature:()=>s_,isPrototypeAccess:()=>M0,isPrototypePropertyAssignment:()=>t4,isPunctuation:()=>Ez,isPushOrUnshiftIdentifier:()=>Fz,isQualifiedName:()=>y_,isQuestionDotToken:()=>r7,isQuestionOrExclamationToken:()=>Nie,isQuestionOrPlusOrMinusToken:()=>Fie,isQuestionToken:()=>j0,isReadonlyKeyword:()=>Zne,isReadonlyKeywordOrPlusOrMinusToken:()=>Rie,isRecognizedTripleSlashComment:()=>ZB,isReferenceFileLocation:()=>WI,isReferencedFile:()=>i1,isRegularExpressionLiteral:()=>tG,isRequireCall:()=>R_,isRequireVariableStatement:()=>Q6,isRestParameter:()=>Tg,isRestTypeNode:()=>s7,isReturnStatement:()=>Bf,isReturnStatementWithFixablePromiseHandler:()=>EL,isRightSideOfAccessExpression:()=>rJ,isRightSideOfInstanceofExpression:()=>Dre,isRightSideOfPropertyAccess:()=>UI,isRightSideOfQualifiedName:()=>Tce,isRightSideOfQualifiedNameOrPropertyAccess:()=>fA,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Ire,isRootedDiskPath:()=>ff,isSameEntityName:()=>Vw,isSatisfiesExpression:()=>mI,isSemicolonClassElement:()=>oie,isSetAccessor:()=>xm,isSetAccessorDeclaration:()=>X_,isShiftOperatorOrHigher:()=>AG,isShorthandAmbientModuleSymbol:()=>M6,isShorthandPropertyAssignment:()=>Eu,isSideEffectImport:()=>JJ,isSignedNumericLiteral:()=>QF,isSimpleCopiableExpression:()=>US,isSimpleInlineableExpression:()=>Jm,isSimpleParameterList:()=>PM,isSingleOrDoubleQuote:()=>K6,isSolutionConfig:()=>eU,isSourceElement:()=>kne,isSourceFile:()=>Mi,isSourceFileFromLibrary:()=>eD,isSourceFileJS:()=>g_,isSourceFileNotJson:()=>BF,isSourceMapping:()=>rae,isSpecialPropertyDeclaration:()=>Xte,isSpreadAssignment:()=>xh,isSpreadElement:()=>Rp,isStatement:()=>Ii,isStatementButNotDeclaration:()=>I6,isStatementOrBlock:()=>ite,isStatementWithLocals:()=>mte,isStatic:()=>Ks,isStaticModifier:()=>F2,isString:()=>ys,isStringANonContextualKeyword:()=>d2,isStringAndEmptyAnonymousObjectIntersection:()=>Rce,isStringDoubleQuoted:()=>JF,isStringLiteral:()=>ya,isStringLiteralLike:()=>Ha,isStringLiteralOrJsxExpression:()=>ate,isStringLiteralOrTemplate:()=>ele,isStringOrNumericLiteralLike:()=>tp,isStringOrRegularExpressionOrTemplateLiteral:()=>wq,isStringTextContainingNode:()=>OB,isSuperCall:()=>ok,isSuperKeyword:()=>WA,isSuperProperty:()=>H_,isSupportedSourceFileName:()=>IJ,isSwitchStatement:()=>UA,isSyntaxList:()=>TI,isSyntheticExpression:()=>mbe,isSyntheticReference:()=>J2,isTagName:()=>mq,isTaggedTemplateExpression:()=>Ub,isTaggedTemplateTag:()=>vce,isTemplateExpression:()=>o7,isTemplateHead:()=>M2,isTemplateLiteral:()=>e2,isTemplateLiteralKind:()=>v0,isTemplateLiteralToken:()=>Gee,isTemplateLiteralTypeNode:()=>iie,isTemplateLiteralTypeSpan:()=>aG,isTemplateMiddle:()=>rG,isTemplateMiddleOrTemplateTail:()=>nF,isTemplateSpan:()=>gI,isTemplateTail:()=>e7,isTextWhiteSpaceLike:()=>Bce,isThis:()=>VI,isThisContainerOrFunctionBlock:()=>Ute,isThisIdentifier:()=>N0,isThisInTypeQuery:()=>CS,isThisInitializedDeclaration:()=>FF,isThisInitializedObjectBindingExpression:()=>qte,isThisProperty:()=>G6,isThisTypeNode:()=>zA,isThisTypeParameter:()=>AA,isThisTypePredicate:()=>zte,isThrowStatement:()=>uG,isToken:()=>Xx,isTokenKind:()=>RB,isTraceEnabled:()=>G0,isTransientSymbol:()=>lh,isTrivia:()=>Kw,isTryStatement:()=>Ik,isTupleTypeNode:()=>j2,isTypeAlias:()=>s4,isTypeAliasDeclaration:()=>sd,isTypeAssertionExpression:()=>a7,isTypeDeclaration:()=>w2,isTypeElement:()=>uS,isTypeKeyword:()=>DE,isTypeKeywordTokenOrIdentifier:()=>oL,isTypeLiteralNode:()=>v_,isTypeNode:()=>di,isTypeNodeKind:()=>fJ,isTypeOfExpression:()=>pI,isTypeOnlyExportDeclaration:()=>Uee,isTypeOnlyImportDeclaration:()=>Ew,isTypeOnlyImportOrExportDeclaration:()=>Xy,isTypeOperatorNode:()=>Gb,isTypeParameterDeclaration:()=>$o,isTypePredicateNode:()=>L2,isTypeQueryNode:()=>MS,isTypeReferenceNode:()=>yf,isTypeReferenceType:()=>fF,isTypeUsableAsPropertyName:()=>Ep,isUMDExportSymbol:()=>gO,isUnaryExpression:()=>JB,isUnaryExpressionWithWrite:()=>Xee,isUnicodeIdentifierStart:()=>U8,isUnionTypeNode:()=>cv,isUrl:()=>iee,isValidBigIntString:()=>LO,isValidESSymbolDeclaration:()=>jte,isValidTypeOnlyAliasUseSite:()=>Bb,isValueSignatureDeclaration:()=>pk,isVarAwaitUsing:()=>j6,isVarConst:()=>Bw,isVarConstLike:()=>Rte,isVarUsing:()=>W6,isVariableDeclaration:()=>oi,isVariableDeclarationInVariableStatement:()=>HP,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>yS,isVariableDeclarationInitializedToRequire:()=>H6,isVariableDeclarationList:()=>au,isVariableLike:()=>$P,isVariableStatement:()=>Lc,isVoidExpression:()=>B2,isWatchSet:()=>lJ,isWhileStatement:()=>lG,isWhiteSpaceLike:()=>ih,isWhiteSpaceSingleLine:()=>Tm,isWithStatement:()=>cie,isWriteAccess:()=>v2,isWriteOnlyAccess:()=>mO,isYieldExpression:()=>Y4,jsxModeNeedsExplicitImport:()=>l$,keywordPart:()=>kf,last:()=>xa,lastOrUndefined:()=>zo,length:()=>Dr,libMap:()=>jG,libs:()=>C7,lineBreakPart:()=>XI,loadModuleFromGlobalCache:()=>jse,loadWithModeAwareCache:()=>BM,makeIdentifierFromModuleName:()=>Tte,makeImport:()=>K0,makeStringLiteral:()=>PE,mangleScopedPackageName:()=>MI,map:()=>hr,mapAllOrFail:()=>SW,mapDefined:()=>Vi,mapDefinedIterator:()=>i0,mapEntries:()=>CY,mapIterator:()=>_P,mapOneOrMany:()=>s$,mapToDisplayParts:()=>o1,matchFiles:()=>xJ,matchPatternOrExact:()=>PJ,matchedText:()=>WY,matchesExclude:()=>j7,matchesExcludeWorker:()=>W7,maxBy:()=>MW,maybeBind:()=>Vs,maybeSetLocalizedDiagnosticMessages:()=>Ure,memoize:()=>Yu,memoizeOne:()=>Sm,min:()=>RW,minAndMax:()=>une,missingFileModifiedTime:()=>_f,modifierToFlag:()=>h2,modifiersToFlags:()=>Nm,moduleExportNameIsDefault:()=>kg,moduleExportNameTextEscaped:()=>dS,moduleExportNameTextUnescaped:()=>I0,moduleOptionDeclaration:()=>Hie,moduleResolutionIsEqualTo:()=>pte,moduleResolutionNameAndModeGetter:()=>m5,moduleResolutionOptionDeclarations:()=>BG,moduleResolutionSupportsPackageJsonExportsAndImports:()=>sI,moduleResolutionUsesNodeModules:()=>cL,moduleSpecifierToValidIdentifier:()=>h3,moduleSpecifiers:()=>hy,moduleSupportsImportAttributes:()=>Xre,moduleSymbolToValidIdentifier:()=>g3,moveEmitHelpers:()=>Bne,moveRangeEnd:()=>pO,moveRangePastDecorators:()=>uy,moveRangePastModifiers:()=>Mm,moveRangePos:()=>Wb,moveSyntheticComments:()=>Lne,mutateMap:()=>hA,mutateMapSkippingNewValues:()=>gh,needsParentheses:()=>dL,needsScopeMarker:()=>aF,newCaseClauseTracker:()=>wL,newPrivateEnvironment:()=>oae,noEmitNotification:()=>MM,noEmitSubstitution:()=>dE,noTransformers:()=>jae,noTruncationMaximumTruncationLength:()=>HB,nodeCanBeDecorated:()=>V6,nodeCoreModules:()=>lI,nodeHasName:()=>m6,nodeIsDecorated:()=>Gw,nodeIsMissing:()=>Tc,nodeIsPresent:()=>Zp,nodeIsSynthesized:()=>So,nodeModuleNameResolver:()=>Ese,nodeModulesPathPart:()=>Ch,nodeNextJsonConfigResolver:()=>Nse,nodeOrChildIsDecorated:()=>q6,nodeOverlapsWithStartEnd:()=>K5,nodePosToString:()=>S0e,nodeSeenTracker:()=>HI,nodeStartsNewLexicalEnvironment:()=>Oz,noop:()=>to,noopFileWatcher:()=>JI,normalizePath:()=>na,normalizeSlashes:()=>iu,normalizeSpans:()=>kB,not:()=>A8,notImplemented:()=>ra,notImplementedResolver:()=>Gae,nullNodeConverters:()=>Rne,nullParenthesizerRules:()=>Nne,nullTransformationContext:()=>FM,objectAllocator:()=>mu,operatorPart:()=>EE,optionDeclarations:()=>Id,optionMapToObject:()=>N7,optionsAffectingProgramStructure:()=>Zie,optionsForBuild:()=>JG,optionsForWatch:()=>Q2,optionsHaveChanges:()=>n2,or:()=>uf,orderedRemoveItem:()=>mP,orderedRemoveItemAt:()=>f0,packageIdToPackageName:()=>yF,packageIdToString:()=>Eb,parameterIsThisKeyword:()=>E0,parameterNamePart:()=>Jce,parseBaseNodeFactory:()=>Jie,parseBigInt:()=>fne,parseBuildCommand:()=>ose,parseCommandLine:()=>sse,parseCommandLineWorker:()=>UG,parseConfigFileTextToJson:()=>qG,parseConfigFileWithSystem:()=>Doe,parseConfigHostFromCompilerHostLike:()=>S5,parseCustomTypeOption:()=>P7,parseIsolatedEntityName:()=>H2,parseIsolatedJSDocComment:()=>Uie,parseJSDocTypeExpressionForTests:()=>Ybe,parseJsonConfigFileContent:()=>I1e,parseJsonSourceFileConfigFileContent:()=>yM,parseJsonText:()=>fM,parseListTypeOption:()=>nse,parseNodeFactory:()=>Yb,parseNodeModuleFromPath:()=>TM,parsePackageName:()=>q7,parsePseudoBigInt:()=>wA,parseValidBigInt:()=>MJ,pasteEdits:()=>cQ,patchWriteFileEnsuringDirectory:()=>nee,pathContainsNodeModules:()=>V0,pathIsAbsolute:()=>xP,pathIsBareSpecifier:()=>pB,pathIsRelative:()=>Of,patternText:()=>jY,performIncrementalCompilation:()=>Poe,performance:()=>$Y,positionBelongsToNode:()=>vq,positionIsASICandidate:()=>hL,positionIsSynthesized:()=>qd,positionsAreOnSameLine:()=>Pp,preProcessFile:()=>Lxe,probablyUsesSemicolons:()=>d3,processCommentPragmas:()=>OG,processPragmasIntoFields:()=>LG,processTaggedTemplateExpression:()=>WU,programContainsEsModules:()=>jce,programContainsModules:()=>Lce,projectReferenceIsEqualTo:()=>QB,propertyNamePart:()=>Gce,pseudoBigIntToString:()=>AS,punctuationPart:()=>Uu,pushIfUnique:()=>Sp,quote:()=>RE,quotePreferenceFromString:()=>Oq,rangeContainsPosition:()=>qI,rangeContainsPositionExclusive:()=>t3,rangeContainsRange:()=>O_,rangeContainsRangeExclusive:()=>xce,rangeContainsStartEnd:()=>r3,rangeEndIsOnSameLineAsRangeStart:()=>x4,rangeEndPositionsAreOnSameLine:()=>Mre,rangeEquals:()=>wW,rangeIsOnSingleLine:()=>hk,rangeOfNode:()=>EJ,rangeOfTypeParameters:()=>NJ,rangeOverlapsWithStartEnd:()=>CE,rangeStartIsOnSameLineAsRangeEnd:()=>Rre,rangeStartPositionsAreOnSameLine:()=>dO,readBuilderProgram:()=>N5,readConfigFile:()=>gM,readJson:()=>tI,readJsonConfigFile:()=>cse,readJsonOrUndefined:()=>iJ,reduceEachLeadingCommentRange:()=>fee,reduceEachTrailingCommentRange:()=>pee,reduceLeft:()=>d_,reduceLeftIterator:()=>hw,reducePathComponents:()=>$x,refactor:()=>lC,regExpEscape:()=>K0e,regularExpressionFlagToCharacterCode:()=>Qve,relativeComplement:()=>wY,removeAllComments:()=>U4,removeEmitHelper:()=>_be,removeExtension:()=>O4,removeFileExtension:()=>i_,removeIgnoredPath:()=>C5,removeMinAndVersionNumbers:()=>LW,removePrefix:()=>gP,removeSuffix:()=>Sw,removeTrailingDirectorySeparator:()=>Ky,repeatString:()=>a3,replaceElement:()=>PW,replaceFirstStar:()=>vk,resolutionExtensionIsTSOrJson:()=>TA,resolveConfigFileProjectName:()=>GV,resolveJSModule:()=>Dse,resolveLibrary:()=>V7,resolveModuleName:()=>Fk,resolveModuleNameFromCache:()=>nSe,resolvePackageNameToPackageJson:()=>iU,resolvePath:()=>d0,resolveProjectReferencePath:()=>tC,resolveTripleslashReference:()=>rV,resolveTypeReferenceDirective:()=>xse,resolvingEmptyArray:()=>$B,returnFalse:()=>ey,returnNoopFileWatcher:()=>SE,returnTrue:()=>iS,returnUndefined:()=>sS,returnsPromise:()=>k$,rewriteModuleSpecifier:()=>Y2,sameFlatMap:()=>kY,sameMap:()=>ul,sameMapping:()=>$Se,scanTokenAtPosition:()=>Mte,scanner:()=>ou,semanticDiagnosticsOptionDeclarations:()=>Kie,serializeCompilerOptions:()=>M7,server:()=>W4e,servicesVersion:()=>wCe,setCommentRange:()=>dl,setConfigFileInOptions:()=>YG,setConstantValue:()=>Wne,setEmitFlags:()=>dn,setGetSourceFileAsHashVersioned:()=>E5,setIdentifierAutoGenerate:()=>$4,setIdentifierGeneratedImportReference:()=>Gne,setIdentifierTypeArguments:()=>ov,setInternalEmitFlags:()=>V4,setLocalizedDiagnosticMessages:()=>Gre,setNodeChildren:()=>bie,setNodeFlags:()=>mne,setObjectAllocator:()=>Jre,setOriginalNode:()=>En,setParent:()=>Xa,setParentRecursive:()=>zb,setPrivateIdentifier:()=>Lk,setSnippetElement:()=>ZJ,setSourceMapRange:()=>Ia,setStackTraceLimit:()=>Nve,setStartsOnNewLine:()=>KO,setSyntheticLeadingComments:()=>Jb,setSyntheticTrailingComments:()=>A2,setSys:()=>jve,setSysLog:()=>eee,setTextRange:()=>dt,setTextRangeEnd:()=>cI,setTextRangePos:()=>IA,setTextRangePosEnd:()=>$d,setTextRangePosWidth:()=>RJ,setTokenSourceMapRange:()=>One,setTypeNode:()=>zne,setUILocale:()=>FY,setValueDeclaration:()=>r4,shouldAllowImportingTsExtension:()=>RI,shouldPreserveConstEnums:()=>R0,shouldRewriteModuleSpecifier:()=>i4,shouldUseUriStyleNodeCoreModules:()=>xL,showModuleSpecifier:()=>Wre,signatureHasRestParameter:()=>Gu,signatureToDisplayParts:()=>$q,single:()=>DW,singleElementArray:()=>Ux,singleIterator:()=>xY,singleOrMany:()=>yg,singleOrUndefined:()=>hg,skipAlias:()=>du,skipConstraint:()=>Mq,skipOuterExpressions:()=>Wc,skipParentheses:()=>Ka,skipPartiallyEmittedExpressions:()=>bd,skipTrivia:()=>ha,skipTypeChecking:()=>oI,skipTypeCheckingIgnoringNoCheck:()=>_ne,skipTypeParentheses:()=>tA,skipWhile:()=>zY,sliceAfter:()=>AJ,some:()=>pt,sortAndDeduplicate:()=>dP,sortAndDeduplicateDiagnostics:()=>Dw,sourceFileAffectingCompilerOptions:()=>zG,sourceFileMayBeEmitted:()=>kS,sourceMapCommentRegExp:()=>IU,sourceMapCommentRegExpDontCareLineStart:()=>Zse,spacePart:()=>Mc,spanMap:()=>TW,startEndContainsRange:()=>oJ,startEndOverlapsWithStartEnd:()=>X5,startOnNewLine:()=>Ju,startTracing:()=>XY,startsWith:()=>Yi,startsWithDirectory:()=>gB,startsWithUnderscore:()=>c$,startsWithUseStrict:()=>Iie,stringContainsAt:()=>ole,stringToToken:()=>XT,stripQuotes:()=>rd,supportedDeclarationExtensions:()=>MO,supportedJSExtensionsFlat:()=>aI,supportedLocaleDirectories:()=>Dee,supportedTSExtensionsFlat:()=>CJ,supportedTSImplementationExtensions:()=>M4,suppressLeadingAndTrailingTrivia:()=>xf,suppressLeadingTrivia:()=>Xq,suppressTrailingTrivia:()=>Xce,symbolEscapedNameNoDefault:()=>lL,symbolName:()=>Oc,symbolNameNoDefault:()=>jq,symbolToDisplayParts:()=>NE,sys:()=>Al,sysLog:()=>n6,tagNamesAreEquivalent:()=>e1,takeWhile:()=>BW,targetOptionDeclaration:()=>WG,targetToLibMap:()=>dee,testFormatSettings:()=>ixe,textChangeRangeIsUnchanged:()=>kee,textChangeRangeNewSpan:()=>NP,textChanges:()=>fn,textOrKeywordPart:()=>qq,textPart:()=>cp,textRangeContainsPositionInclusive:()=>_6,textRangeContainsTextSpan:()=>hee,textRangeIntersectsWithTextSpan:()=>See,textSpanContainsPosition:()=>SB,textSpanContainsTextRange:()=>TB,textSpanContainsTextSpan:()=>gee,textSpanEnd:()=>mc,textSpanIntersection:()=>Tee,textSpanIntersectsWith:()=>f6,textSpanIntersectsWithPosition:()=>bee,textSpanIntersectsWithTextSpan:()=>vee,textSpanIsEmpty:()=>mee,textSpanOverlap:()=>yee,textSpanOverlapsWith:()=>n0e,textSpansEqual:()=>KI,textToKeywordObj:()=>G8,timestamp:()=>To,toArray:()=>Jx,toBuilderFileEmit:()=>hoe,toBuilderStateFileInfoForMultiEmit:()=>goe,toEditorSettings:()=>C3,toFileNameLowerCase:()=>l0,toPath:()=>ko,toProgramEmitPending:()=>yoe,toSorted:()=>lf,tokenIsIdentifierOrKeyword:()=>E_,tokenIsIdentifierOrKeywordOrGreaterThan:()=>aee,tokenToString:()=>sa,trace:()=>us,tracing:()=>_n,tracingEnabled:()=>r6,transferSourceFileChildren:()=>Sie,transform:()=>OCe,transformClassFields:()=>hae,transformDeclarations:()=>GU,transformECMAScriptModule:()=>JU,transformES2015:()=>Eae,transformES2016:()=>Aae,transformES2017:()=>Sae,transformES2018:()=>Tae,transformES2019:()=>kae,transformES2020:()=>xae,transformES2021:()=>Cae,transformESDecorators:()=>bae,transformESNext:()=>wae,transformGenerators:()=>Nae,transformImpliedNodeFormatDependentModule:()=>Rae,transformJsx:()=>Pae,transformLegacyDecorators:()=>vae,transformModule:()=>zU,transformNamedEvaluation:()=>bf,transformNodes:()=>RM,transformSystemModule:()=>Mae,transformTypeScript:()=>gae,transpile:()=>qxe,transpileDeclaration:()=>Uxe,transpileModule:()=>Ale,transpileOptionValueCompilerOptions:()=>ese,tryAddToSet:()=>Qy,tryAndIgnoreErrors:()=>bL,tryCast:()=>Vn,tryDirectoryExists:()=>vL,tryExtractTSExtension:()=>_O,tryFileExists:()=>OE,tryGetClassExtendingExpressionWithTypeArguments:()=>eJ,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>tJ,tryGetDirectories:()=>yL,tryGetExtensionFromPath:()=>bh,tryGetImportFromModuleSpecifier:()=>n4,tryGetJSDocSatisfiesTypeNode:()=>JO,tryGetModuleNameFromFile:()=>aM,tryGetModuleSpecifierFromDeclaration:()=>l2,tryGetNativePerformanceHooks:()=>qY,tryGetPropertyAccessOrIdentifierToString:()=>k4,tryGetPropertyNameOfBindingOrAssignmentElement:()=>b7,tryGetSourceMappingURL:()=>eae,tryGetTextOfPropertyName:()=>qP,tryParseJson:()=>fO,tryParsePattern:()=>C2,tryParsePatterns:()=>L4,tryParseRawSourceMap:()=>tae,tryReadDirectory:()=>t$,tryReadFile:()=>ZA,tryRemoveDirectoryPrefix:()=>SJ,tryRemoveExtension:()=>lne,tryRemovePrefix:()=>WW,tryRemoveSuffix:()=>LY,tscBuildOption:()=>Mk,typeAcquisitionDeclarations:()=>I7,typeAliasNamePart:()=>Uce,typeDirectiveIsEqualTo:()=>dte,typeKeywords:()=>Nq,typeParameterNamePart:()=>Vce,typeToDisplayParts:()=>u3,unchangedPollThresholds:()=>O8,unchangedTextChangeRange:()=>$8,unescapeLeadingUnderscores:()=>Li,unmangleScopedPackageName:()=>xM,unorderedRemoveItem:()=>Gx,unprefixedNodeCoreModules:()=>Ine,unreachableCodeIsError:()=>Qre,unsetNodeChildren:()=>bG,unusedLabelIsError:()=>Kre,unwrapInnermostStatementOfLabel:()=>gz,unwrapParenthesizedExpression:()=>Cne,updateErrorForNoInputFiles:()=>L7,updateLanguageServiceSourceFile:()=>K$,updateMissingFilePathsWatch:()=>ZU,updateResolutionField:()=>PI,updateSharedExtendedConfigFileWatcher:()=>_5,updateSourceFile:()=>RG,updateWatchingWildcardDirectories:()=>LM,usingSingleLineStringWriter:()=>Ow,utf16EncodeAsString:()=>EP,validateLocaleAndSetLanguage:()=>CB,version:()=>Ui,versionMajorMinor:()=>Xi,visitArray:()=>oE,visitCommaListElements:()=>IM,visitEachChild:()=>Ir,visitFunctionBody:()=>op,visitIterationBody:()=>S_,visitLexicalEnvironment:()=>wU,visitNode:()=>et,visitNodes:()=>Ur,visitParameterList:()=>Cc,walkUpBindingElementsAndPatterns:()=>Kx,walkUpOuterExpressions:()=>Die,walkUpParenthesizedExpressions:()=>Td,walkUpParenthesizedTypes:()=>c4,walkUpParenthesizedTypesAndGetParentAndChild:()=>sre,whitespaceOrMapCommentRegExp:()=>DU,writeCommentRange:()=>eI,writeFile:()=>sO,writeFileEnsuringDirectories:()=>$z,zipWith:()=>qT}),Q.exports=Cr(gi);var Xi="5.8",Ui="5.8.3",Ga=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(Ga||{}),qe=[],Bl=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 rh(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 po(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 vm(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 qT(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 HN(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 Oi(e,t){if(e!==void 0){for(let n=0;n<e.length;n++)if(!t(e[n],n))return!1}return!0}function On(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 rS(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 Sc(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 k8(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 Ts(e,t,n=u0){if(e!==void 0){for(let i=0;i<e.length;i++)if(n(e[i],t))return!0}return!1}function TY(e,t,n){for(let i=n??0;i<e.length;i++)if(Ts(t,e.charCodeAt(i)))return i;return-1}function Hy(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 An(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 vW(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 Hp(e){e.length=0}function hr(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*_P(e,t){for(let n of e)yield t(n)}function ul(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 Qp(e){let t=[];for(let n=0;n<e.length;n++){let i=e[n];i&&(ks(i)?jn(t,i):t.push(i))}return t}function ga(e,t){let n;if(e!==void 0)for(let i=0;i<e.length;i++){let s=t(e[i],i);s&&(ks(s)?n=jn(n,s):n=jr(n,s))}return n??qe}function fP(e,t){let n=[];if(e!==void 0)for(let i=0;i<e.length;i++){let s=t(e[i],i);s&&(ks(s)?jn(n,s):n.push(s))}return n}function*bW(e,t){for(let n of e){let i=t(n);i&&(yield*i)}}function kY(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||ks(o))&&(n||(n=e.slice(0,i)),ks(o)?jn(n,o):n.push(o))}return n??e}function SW(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 Vi(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*i0(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 Qy(e,t){return e.has(t)?!1:(e.add(t),!0)}function*xY(e){yield e}function TW(e,t,n){let i;if(e!==void 0){i=[];let s=e.length,o,c,_=0,u=0;for(;_<s;){for(;u<s;){let g=e[u];if(c=t(g,u),u===0)o=c;else if(c!==o)break;u++}if(_<u){let g=n(e.slice(_,u),o,_,u);g&&i.push(g),_=u}o=c,u++}}return i}function CY(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 pt(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 kW(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 Ki(e,t){return t===void 0||t.length===0?e:e===void 0||e.length===0?t:[...e,...t]}function YLe(e,t){return t}function x8(e){return e.map(YLe)}function ZLe(e,t,n){let i=x8(e);rje(e,i,n);let s=e[i[0]],o=[i[0]];for(let c=1;c<i.length;c++){let _=i[c],u=e[_];t(s,u)||(o.push(_),s=u)}return o.sort(),o.map(c=>e[c])}function eje(e,t){let n=[];for(let i=0;i<e.length;i++)Sp(n,e[i],t);return n}function nS(e,t,n){return e.length===0?[]:e.length===1?e.slice():n?ZLe(e,t,n):eje(e,t)}function tje(e,t){if(e.length===0)return qe;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 xW(){return[]}function s0(e,t,n,i,s){if(e.length===0)return e.push(t),!0;let o=o0(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 dP(e,t,n){return tje(lf(e,t),n??t??wu)}function Yf(e,t,n=u0){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 QN(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 wY(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 jr(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function Wx(e,t){return e===void 0?t:t===void 0?e:ks(e)?ks(t)?Ki(e,t):jr(e,t):ks(t)?jr(t,e):[e,t]}function IY(e,t){return t<0?e.length+t:t}function jn(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:IY(t,n),i=i===void 0?t.length:IY(t,i);for(let s=n;s<i&&s<t.length;s++)t[s]!==void 0&&e.push(t[s]);return e}function Sp(e,t,n){return Ts(e,t,n)?!1:(e.push(t),!0)}function Zh(e,t,n){return e!==void 0?(Sp(e,t,n),e):[t]}function rje(e,t,n){t.sort((i,s)=>n(e[i],e[s])||Po(i,s))}function lf(e,t){return e.length===0?qe:e.slice().sort(t)}function*CW(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function wW(e,t,n,i){for(;n<i;){if(e[n]!==t[n])return!1;n++}return!0}var a0=Array.prototype.at?(e,t)=>e?.at(t):(e,t)=>{if(e!==void 0&&(t=IY(e,t),t<e.length))return e[t]};function _l(e){return e===void 0||e.length===0?void 0:e[0]}function KN(e){if(e!==void 0)for(let t of e)return t}function Ea(e){return w.assert(e.length!==0),e[0]}function IW(e){for(let t of e)return t;w.fail("iterator is empty")}function zo(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function xa(e){return w.assert(e.length!==0),e[e.length-1]}function hg(e){return e!==void 0&&e.length===1?e[0]:void 0}function DW(e){return w.checkDefined(hg(e))}function yg(e){return e!==void 0&&e.length===1?e[0]:e}function PW(e,t,n){let i=e.slice(0);return i[t]=n,i}function o0(e,t,n,i,s){return Bx(e,n(t),n,i,s)}function Bx(e,t,n,i,s){if(!pt(e))return-1;let o=s??0,c=e.length-1;for(;o<=c;){let _=o+(c-o>>1),u=n(e[_],_);switch(i(u,t)){case-1:o=_+1;break;case 0:return _;case 1:c=_-1;break}}return~o}function d_(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,_=s===void 0||c+s>o-1?o-1:c+s,u;for(arguments.length<=2?(u=e[c],c++):u=n;c<=_;)u=t(u,e[c],c),c++;return u}}return n}var Cb=Object.prototype.hasOwnProperty;function bo(e,t){return Cb.call(e,t)}function C8(e,t){return Cb.call(e,t)?e[t]:void 0}function bm(e){let t=[];for(let n in e)Cb.call(e,n)&&t.push(n);return t}function gve(e){let t=[];do{let n=Object.getOwnPropertyNames(e);for(let i of n)Sp(t,i)}while(e=Object.getPrototypeOf(e));return t}function zx(e){let t=[];for(let n in e)Cb.call(e,n)&&t.push(e[n]);return t}function DY(e,t){let n=new Array(e);for(let i=0;i<e;i++)n[i]=t(i);return n}function ps(e,t){let n=[];for(let i of e)n.push(t?t(i):i);return n}function $T(e,...t){for(let n of t)if(n!==void 0)for(let i in n)bo(n,i)&&(e[i]=n[i]);return e}function PY(e,t,n=u0){if(e===t)return!0;if(!e||!t)return!1;for(let i in e)if(Cb.call(e,i)&&(!Cb.call(t,i)||!n(e[i],t[i])))return!1;for(let i in t)if(Cb.call(t,i)&&!Cb.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 AY(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 XN(e,t,n=Do){let i=Kp();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 ps(XN(e,t).values(),n)}function AW(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 EY(e){let t={};for(let n in e)Cb.call(e,n)&&(t[n]=e[n]);return t}function w8(e,t){let n={};for(let i in t)Cb.call(t,i)&&(n[i]=t[i]);for(let i in e)Cb.call(e,i)&&(n[i]=e[i]);return n}function EW(e,t){for(let n in t)Cb.call(t,n)&&(e[n]=t[n])}function Vs(e,t){return t?.bind(e)}function Kp(){let e=new Map;return e.add=nje,e.remove=ije,e}function nje(e,t){let n=this.get(e);return n!==void 0?n.push(t):this.set(e,n=[t]),n}function ije(e,t){let n=this.get(e);n!==void 0&&(Gx(n,t),n.length||this.delete(e))}function YN(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 _=t.length-n;t.copyWithin(0,n),t.length=_,n=0}return c}return{enqueue:s,dequeue:o,isEmpty:i}}function NW(e,t){let n=new Map,i=0;function*s(){for(let c of n.values())ks(c)?yield*c:yield c}let o={has(c){let _=e(c);if(!n.has(_))return!1;let u=n.get(_);return ks(u)?Ts(u,c,t):t(u,c)},add(c){let _=e(c);if(n.has(_)){let u=n.get(_);if(ks(u))Ts(u,c,t)||(u.push(c),i++);else{let g=u;t(g,c)||(n.set(_,[g,c]),i++)}}else n.set(_,c),i++;return this},delete(c){let _=e(c);if(!n.has(_))return!1;let u=n.get(_);if(ks(u)){for(let g=0;g<u.length;g++)if(t(u[g],c))return u.length===1?n.delete(_):u.length===2?n.set(_,u[1-g]):vve(u,g),i--,!0}else if(t(u,c))return n.delete(_),i--,!0;return!1},clear(){n.clear(),i=0},get size(){return i},forEach(c){for(let _ of ps(n.values()))if(ks(_))for(let u of _)c(u,u,o);else{let u=_;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 ks(e){return Array.isArray(e)}function Jx(e){return ks(e)?e:[e]}function ys(e){return typeof e=="string"}function c0(e){return typeof e=="number"}function Vn(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 to(e){}function ey(){return!1}function iS(){return!0}function sS(){}function Do(e){return e}function sje(e){return e.toLowerCase()}var hve=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g;function l0(e){return hve.test(e)?e.replace(hve,sje):e}function ra(){throw new Error("Not implemented")}function Yu(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Sm(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 NY=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(NY||{});function u0(e,t){return e===t}function _0(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function aS(e,t){return u0(e,t)}function yve(e,t){return e===t?0:e===void 0?-1:t===void 0?1:e<t?-1:1}function Po(e,t){return yve(e,t)}function I8(e,t){return Po(e?.start,t?.start)||Po(e?.length,t?.length)}function MW(e,t,n){for(let i=0;i<e.length;i++)t=Math.max(t,n(e[i]));return t}function RW(e,t){return d_(e,(n,i)=>t(n,i)===-1?n:i)}function ZN(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 MY(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 wu(e,t){return yve(e,t)}function bw(e){return e?ZN:wu}var aje=(()=>{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)}})(),FW,OW;function RY(){return OW}function FY(e){OW!==e&&(OW=e,FW=void 0)}function e6(e,t){return FW??(FW=aje(OW)),FW(e,t)}function OY(e,t,n,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[n],t[n])}function wb(e,t){return Po(e?1:0,t?1:0)}function oS(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 _=n(c);if(_!==void 0&&Math.abs(_.length-e.length)<=i){if(_===e||_.length<3&&_.toLowerCase()!==e.toLowerCase())continue;let u=oje(e,_,s-.1);if(u===void 0)continue;w.assert(u<s),s=u,o=c}}return o}function oje(e,t,n){let i=new Array(t.length+1),s=new Array(t.length+1),o=n+.01;for(let _=0;_<=t.length;_++)i[_]=_;for(let _=1;_<=e.length;_++){let u=e.charCodeAt(_-1),g=Math.ceil(_>n?_-n:1),m=Math.floor(t.length>n+_?n+_:t.length);s[0]=_;let h=_;for(let T=1;T<g;T++)s[T]=o;for(let T=g;T<=m;T++){let x=e[_-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=m+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 Jo(e,t,n){let i=e.length-t.length;return i>=0&&(n?_0(e.slice(i),t):e.indexOf(t,i)===i)}function Sw(e,t){return Jo(e,t)?e.slice(0,e.length-t.length):e}function LY(e,t){return Jo(e,t)?e.slice(0,e.length-t.length):void 0}function LW(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 mP(e,t){for(let n=0;n<e.length;n++)if(e[n]===t)return f0(e,n),!0;return!1}function f0(e,t){for(let n=t;n<e.length-1;n++)e[n]=e[n+1];e.pop()}function vve(e,t){e[t]=e[e.length-1],e.pop()}function Gx(e,t){return cje(e,n=>n===t)}function cje(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return vve(e,n),!0;return!1}function fu(e){return e?Do:l0}function jY({prefix:e,suffix:t}){return`${e}*${t}`}function WY(e,t){return w.assert(D8(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)}function jW(e,t,n){let i,s=-1;for(let o=0;o<e.length;o++){let c=e[o],_=t(c);_.prefix.length>s&&D8(_,n)&&(s=_.prefix.length,i=c)}return i}function Yi(e,t,n){return n?_0(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function gP(e,t){return Yi(e,t)?e.substr(t.length):e}function WW(e,t,n=Do){return Yi(n(e),n(t))?e.substring(t.length):void 0}function D8({prefix:e,suffix:t},n){return n.length>=e.length+t.length&&Yi(n,e)&&Jo(n,t)}function P8(e,t){return n=>e(n)&&t(n)}function uf(...e){return(...t)=>{let n;for(let i of e)if(n=i(...t),n)return n;return n}}function A8(e){return(...t)=>!e(...t)}function bve(e){}function Ux(e){return e===void 0?void 0:[e]}function E8(e,t,n,i,s,o){o??(o=to);let c=0,_=0,u=e.length,g=t.length,m=!1;for(;c<u&&_<g;){let h=e[c],S=t[_],T=n(h,S);T===-1?(i(h),c++,m=!0):T===1?(s(S),_++,m=!0):(o(S,h),c++,_++)}for(;c<u;)i(e[c++]),m=!0;for(;_<g;)s(t[_++]),m=!0;return m}function BY(e){let t=[];return Sve(e,t,void 0,0),t}function Sve(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):Sve(e,t,o,i+1)}}function BW(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 zY(e,t){if(e!==void 0){let n=e.length,i=0;for(;i<n&&t(e[i]);)i++;return e.slice(i)}}function zW(){return typeof process<"u"&&!!process.nextTick&&!process.browser&&typeof Dye<"u"}var JY=(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))(JY||{}),w;(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function n(Ue){return e.currentLogLevel<=Ue}e.shouldLog=n;function i(Ue,ht){e.loggingHost&&n(Ue)&&e.loggingHost.log(Ue,ht)}function s(Ue){i(3,Ue)}e.log=s,(Ue=>{function ht(Xn){i(1,Xn)}Ue.error=ht;function sr(Xn){i(2,Xn)}Ue.warn=sr;function Zr(Xn){i(3,Xn)}Ue.log=Zr;function Zn(Xn){i(4,Xn)}Ue.trace=Zn})(s=e.log||(e.log={}));let o={};function c(){return t}e.getAssertionLevel=c;function _(Ue){let ht=t;if(t=Ue,Ue>ht)for(let sr of bm(o)){let Zr=o[sr];Zr!==void 0&&e[sr]!==Zr.assertion&&Ue>=Zr.level&&(e[sr]=Zr,o[sr]=void 0)}}e.setAssertionLevel=_;function u(Ue){return t>=Ue}e.shouldAssert=u;function g(Ue,ht){return u(Ue)?!0:(o[ht]={level:Ue,assertion:e[ht]},e[ht]=to,!1)}function m(Ue,ht){debugger;let sr=new Error(Ue?`Debug Failure. ${Ue}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(sr,ht||m),sr}e.fail=m;function h(Ue,ht,sr){return m(`${ht||"Unexpected node."}\r
Node ${ve(Ue.kind)} was unexpected.`,sr||h)}e.failBadSyntaxKind=h;function S(Ue,ht,sr,Zr){Ue||(ht=ht?`False expression: ${ht}`:"False expression.",sr&&(ht+=`\r
Verbose Debug Information: `+(typeof sr=="string"?sr:sr())),m(ht,Zr||S))}e.assert=S;function T(Ue,ht,sr,Zr,Zn){if(Ue!==ht){let Xn=sr?Zr?`${sr} ${Zr}`:sr:"";m(`Expected ${Ue} === ${ht}. ${Xn}`,Zn||T)}}e.assertEqual=T;function x(Ue,ht,sr,Zr){Ue>=ht&&m(`Expected ${Ue} < ${ht}. ${sr||""}`,Zr||x)}e.assertLessThan=x;function I(Ue,ht,sr){Ue>ht&&m(`Expected ${Ue} <= ${ht}`,sr||I)}e.assertLessThanOrEqual=I;function D(Ue,ht,sr){Ue<ht&&m(`Expected ${Ue} >= ${ht}`,sr||D)}e.assertGreaterThanOrEqual=D;function E(Ue,ht,sr){Ue==null&&m(ht,sr||E)}e.assertIsDefined=E;function O(Ue,ht,sr){return E(Ue,ht,sr||O),Ue}e.checkDefined=O;function F(Ue,ht,sr){for(let Zr of Ue)E(Zr,ht,sr||F)}e.assertEachIsDefined=F;function B(Ue,ht,sr){return F(Ue,ht,sr||B),Ue}e.checkEachDefined=B;function G(Ue,ht="Illegal value:",sr){let Zr=typeof Ue=="object"&&bo(Ue,"kind")&&bo(Ue,"pos")?"SyntaxKind: "+ve(Ue.kind):JSON.stringify(Ue);return m(`${ht} ${Zr}`,sr||G)}e.assertNever=G;function $(Ue,ht,sr,Zr){g(1,"assertEachNode")&&S(ht===void 0||Oi(Ue,ht),sr||"Unexpected node.",()=>`Node array did not pass test '${ie(ht)}'.`,Zr||$)}e.assertEachNode=$;function K(Ue,ht,sr,Zr){g(1,"assertNode")&&S(Ue!==void 0&&(ht===void 0||ht(Ue)),sr||"Unexpected node.",()=>`Node ${ve(Ue?.kind)} did not pass test '${ie(ht)}'.`,Zr||K)}e.assertNode=K;function U(Ue,ht,sr,Zr){g(1,"assertNotNode")&&S(Ue===void 0||ht===void 0||!ht(Ue),sr||"Unexpected node.",()=>`Node ${ve(Ue.kind)} should not have passed test '${ie(ht)}'.`,Zr||U)}e.assertNotNode=U;function me(Ue,ht,sr,Zr){g(1,"assertOptionalNode")&&S(ht===void 0||Ue===void 0||ht(Ue),sr||"Unexpected node.",()=>`Node ${ve(Ue?.kind)} did not pass test '${ie(ht)}'.`,Zr||me)}e.assertOptionalNode=me;function te(Ue,ht,sr,Zr){g(1,"assertOptionalToken")&&S(ht===void 0||Ue===void 0||Ue.kind===ht,sr||"Unexpected node.",()=>`Node ${ve(Ue?.kind)} was not a '${ve(ht)}' token.`,Zr||te)}e.assertOptionalToken=te;function V(Ue,ht,sr){g(1,"assertMissingNode")&&S(Ue===void 0,ht||"Unexpected node.",()=>`Node ${ve(Ue.kind)} was unexpected'.`,sr||V)}e.assertMissingNode=V;function ne(Ue){}e.type=ne;function ie(Ue){if(typeof Ue!="function")return"";if(bo(Ue,"name"))return Ue.name;{let ht=Function.prototype.toString.call(Ue),sr=/^function\s+([\w$]+)\s*\(/.exec(ht);return sr?sr[1]:""}}e.getFunctionName=ie;function oe(Ue){return`{ name: ${Li(Ue.escapedName)}; flags: ${le(Ue.flags)}; declarations: ${hr(Ue.declarations,ht=>ve(ht.kind))} }`}e.formatSymbol=oe;function de(Ue=0,ht,sr){let Zr=H(ht);if(Ue===0)return Zr.length>0&&Zr[0][0]===0?Zr[0][1]:"0";if(sr){let Zn=[],Xn=Ue;for(let[Pi,Rs]of Zr){if(Pi>Ue)break;Pi!==0&&Pi&Ue&&(Zn.push(Rs),Xn&=~Pi)}if(Xn===0)return Zn.join("|")}else for(let[Zn,Xn]of Zr)if(Zn===Ue)return Xn;return Ue.toString()}e.formatEnum=de;let ye=new Map;function H(Ue){let ht=ye.get(Ue);if(ht)return ht;let sr=[];for(let Zn in Ue){let Xn=Ue[Zn];typeof Xn=="number"&&sr.push([Xn,Zn])}let Zr=lf(sr,(Zn,Xn)=>Po(Zn[0],Xn[0]));return ye.set(Ue,Zr),Zr}function ve(Ue){return de(Ue,VW,!1)}e.formatSyntaxKind=ve;function Ge(Ue){return de(Ue,sB,!1)}e.formatSnippetKind=Ge;function De(Ue){return de(Ue,nB,!1)}e.formatScriptKind=De;function se(Ue){return de(Ue,qW,!0)}e.formatNodeFlags=se;function xe(Ue){return de(Ue,ZW,!0)}e.formatNodeCheckFlags=xe;function _e(Ue){return de(Ue,$W,!0)}e.formatModifierFlags=_e;function tt(Ue){return de(Ue,iB,!0)}e.formatTransformFlags=tt;function ct(Ue){return de(Ue,aB,!0)}e.formatEmitFlags=ct;function le(Ue){return de(Ue,YW,!0)}e.formatSymbolFlags=le;function Je(Ue){return de(Ue,eB,!0)}e.formatTypeFlags=Je;function ee(Ue){return de(Ue,rB,!0)}e.formatSignatureFlags=ee;function Ne(Ue){return de(Ue,tB,!0)}e.formatObjectFlags=Ne;function Ie(Ue){return de(Ue,M8,!0)}e.formatFlowFlags=Ie;function Ce(Ue){return de(Ue,HW,!0)}e.formatRelationComparisonResult=Ce;function Ve(Ue){return de(Ue,SU,!0)}e.formatCheckMode=Ve;function bt(Ue){return de(Ue,TU,!0)}e.formatSignatureCheckMode=bt;function zt(Ue){return de(Ue,bU,!0)}e.formatTypeFacts=zt;let ur=!1,Or;function _t(Ue){"__debugFlowFlags"in Ue||Object.defineProperties(Ue,{__tsDebuggerDisplay:{value(){let ht=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",sr=this.flags&-2048;return`${ht}${sr?` (${Ie(sr)})`:""}`}},__debugFlowFlags:{get(){return de(this.flags,M8,!0)}},__debugToString:{value(){return ui(this)}}})}function $t(Ue){return ur&&(typeof Object.setPrototypeOf=="function"?(Or||(Or=Object.create(Object.prototype),_t(Or)),Object.setPrototypeOf(Ue,Or)):_t(Ue)),Ue}e.attachFlowNodeDebugInfo=$t;let Hr;function hi(Ue){"__tsDebuggerDisplay"in Ue||Object.defineProperties(Ue,{__tsDebuggerDisplay:{value(ht){return ht=String(ht).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${ht}`}}})}function _s(Ue){ur&&(typeof Object.setPrototypeOf=="function"?(Hr||(Hr=Object.create(Array.prototype),hi(Hr)),Object.setPrototypeOf(Ue,Hr)):hi(Ue))}e.attachNodeArrayDebugInfo=_s;function At(){if(ur)return;let Ue=new WeakMap,ht=new WeakMap;Object.defineProperties(mu.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let Zr=this.flags&33554432?"TransientSymbol":"Symbol",Zn=this.flags&-33554433;return`${Zr} '${Oc(this)}'${Zn?` (${le(Zn)})`:""}`}},__debugFlags:{get(){return le(this.flags)}}}),Object.defineProperties(mu.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let Zr=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",Zn=this.flags&524288?this.objectFlags&-1344:0;return`${Zr}${this.symbol?` '${Oc(this.symbol)}'`:""}${Zn?` (${Ne(Zn)})`:""}`}},__debugFlags:{get(){return Je(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?Ne(this.objectFlags):""}},__debugTypeToString:{value(){let Zr=Ue.get(this);return Zr===void 0&&(Zr=this.checker.typeToString(this),Ue.set(this,Zr)),Zr}}}),Object.defineProperties(mu.getSignatureConstructor().prototype,{__debugFlags:{get(){return ee(this.flags)}},__debugSignatureToString:{value(){var Zr;return(Zr=this.checker)==null?void 0:Zr.signatureToString(this)}}});let sr=[mu.getNodeConstructor(),mu.getIdentifierConstructor(),mu.getTokenConstructor(),mu.getSourceFileConstructor()];for(let Zr of sr)bo(Zr.prototype,"__debugKind")||Object.defineProperties(Zr.prototype,{__tsDebuggerDisplay:{value(){return`${Ko(this)?"GeneratedIdentifier":je(this)?`Identifier '${Ln(this)}'`:ji(this)?`PrivateIdentifier '${Ln(this)}'`:ya(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:L_(this)?`NumericLiteral ${this.text}`:LA(this)?`BigIntLiteral ${this.text}n`:$o(this)?"TypeParameterDeclaration":Bi(this)?"ParameterDeclaration":lc(this)?"ConstructorDeclaration":Mp(this)?"GetAccessorDeclaration":X_(this)?"SetAccessorDeclaration":O2(this)?"CallSignatureDeclaration":K4(this)?"ConstructSignatureDeclaration":W0(this)?"IndexSignatureDeclaration":L2(this)?"TypePredicateNode":yf(this)?"TypeReferenceNode":Ig(this)?"FunctionTypeNode":_I(this)?"ConstructorTypeNode":MS(this)?"TypeQueryNode":v_(this)?"TypeLiteralNode":X4(this)?"ArrayTypeNode":j2(this)?"TupleTypeNode":i7(this)?"OptionalTypeNode":s7(this)?"RestTypeNode":cv(this)?"UnionTypeNode":W2(this)?"IntersectionTypeNode":RS(this)?"ConditionalTypeNode":kk(this)?"InferTypeNode":xk(this)?"ParenthesizedTypeNode":zA(this)?"ThisTypeNode":Gb(this)?"TypeOperatorNode":FS(this)?"IndexedAccessTypeNode":Ck(this)?"MappedTypeNode":lv(this)?"LiteralTypeNode":fI(this)?"NamedTupleMember":Om(this)?"ImportTypeNode":ve(this.kind)}${this.flags?` (${se(this.flags)})`:""}`}},__debugKind:{get(){return ve(this.kind)}},__debugNodeFlags:{get(){return se(this.flags)}},__debugModifierFlags:{get(){return _e(Cre(this))}},__debugTransformFlags:{get(){return tt(this.transformFlags)}},__debugIsParseTreeNode:{get(){return MP(this)}},__debugEmitFlags:{get(){return ct(Na(this))}},__debugGetText:{value(Zn){if(So(this))return"";let Xn=ht.get(this);if(Xn===void 0){let Pi=Cs(this),Rs=Pi&&Fr(Pi);Xn=Rs?pS(Rs,Pi,Zn):"",ht.set(this,Xn)}return Xn}}});ur=!0}e.enableDebugInfo=At;function zn(Ue){let ht=Ue&7,sr=ht===0?"in out":ht===3?"[bivariant]":ht===2?"in":ht===1?"out":ht===4?"[independent]":"";return Ue&8?sr+=" (unmeasurable)":Ue&16&&(sr+=" (unreliable)"),sr}e.formatVariance=zn;class ns{__debugToString(){var ht;switch(this.kind){case 3:return((ht=this.debugInfo)==null?void 0:ht.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return qT(this.sources,this.targets||hr(this.sources,()=>"any"),(sr,Zr)=>`${sr.__debugTypeToString()} -> ${typeof Zr=="string"?Zr:Zr.__debugTypeToString()}`).join(", ");case 2:return qT(this.sources,this.targets,(sr,Zr)=>`${sr.__debugTypeToString()} -> ${Zr().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(`
`).join(`
`)}
m2: ${this.mapper2.__debugToString().split(`
`).join(`
`)}`;default:return G(this)}}}e.DebugTypeMapper=ns;function Rn(Ue){return e.isDebugging?Object.setPrototypeOf(Ue,ns.prototype):Ue}e.attachDebugPrototypeIfDebug=Rn;function hn(Ue){return console.log(ui(Ue))}e.printControlFlowGraph=hn;function ui(Ue){let ht=-1;function sr(q){return q.id||(q.id=ht,ht--),q.id}let Zr;(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"})(Zr||(Zr={}));let Zn;(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"})(Zn||(Zn={}));let Xn=2032,Pi=882,Rs=Object.create(null),oa=[],xr=[],xs=Dt(Ue,new Set);for(let q of oa)q.text=Pe(q.flowNode,q.circular),St(q);let Ye=vt(xs),Nt=Mt(Ye);return Ke(xs,0),kt();function ae(q){return!!(q.flags&128)}function lt(q){return!!(q.flags&12)&&!!q.antecedent}function Y(q){return!!(q.flags&Xn)}function Ae(q){return!!(q.flags&Pi)}function Xe(q){let yt=[];for(let jt of q.edges)jt.source===q&&yt.push(jt.target);return yt}function st(q){let yt=[];for(let jt of q.edges)jt.target===q&&yt.push(jt.source);return yt}function Dt(q,yt){let jt=sr(q),we=Rs[jt];if(we&&yt.has(q))return we.circular=!0,we={id:-1,flowNode:q,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},oa.push(we),we;if(yt.add(q),!we)if(Rs[jt]=we={id:jt,flowNode:q,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},oa.push(we),lt(q))for(let ut of q.antecedent)Fe(we,ut,yt);else Y(q)&&Fe(we,q.antecedent,yt);return yt.delete(q),we}function Fe(q,yt,jt){let we=Dt(yt,jt),ut={source:q,target:we};xr.push(ut),q.edges.push(ut),we.edges.push(ut)}function St(q){if(q.level!==-1)return q.level;let yt=0;for(let jt of st(q))yt=Math.max(yt,St(jt)+1);return q.level=yt}function vt(q){let yt=0;for(let jt of Xe(q))yt=Math.max(yt,vt(jt));return yt+1}function Mt(q){let yt=j(Array(q),0);for(let jt of oa)yt[jt.level]=Math.max(yt[jt.level],jt.text.length);return yt}function Ke(q,yt){if(q.lane===-1){q.lane=yt,q.endLane=yt;let jt=Xe(q);for(let we=0;we<jt.length;we++){we>0&&yt++;let ut=jt[we];Ke(ut,yt),ut.endLane>q.endLane&&(yt=ut.endLane)}q.endLane=yt}}function Vt(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 on(q){let yt=Fr(q);return pS(yt,q,!1)}function Pe(q,yt){let jt=Vt(q.flags);if(yt&&(jt=`${jt}#${sr(q)}`),ae(q)){let we=[],{switchStatement:ut,clauseStart:Qt,clauseEnd:en}=q.node;for(let Pr=Qt;Pr<en;Pr++){let $r=ut.caseBlock.clauses[Pr];qA($r)?we.push("default"):we.push(on($r.expression))}jt+=` (${we.join(", ")})`}else Ae(q)&&q.node&&(jt+=` (${on(q.node)})`);return yt==="circularity"?`Circular(${jt})`:jt}function kt(){let q=Nt.length,yt=MW(oa,0,en=>en.lane)+1,jt=j(Array(yt),""),we=Nt.map(()=>Array(yt)),ut=Nt.map(()=>j(Array(yt),0));for(let en of oa){we[en.level][en.lane]=en;let Pr=Xe(en);for(let it=0;it<Pr.length;it++){let Tt=Pr[it],Ut=8;Tt.lane===en.lane&&(Ut|=4),it>0&&(Ut|=1),it<Pr.length-1&&(Ut|=2),ut[en.level][Tt.lane]|=Ut}Pr.length===0&&(ut[en.level][en.lane]|=16);let $r=st(en);for(let it=0;it<$r.length;it++){let Tt=$r[it],Ut=4;it>0&&(Ut|=1),it<$r.length-1&&(Ut|=2),ut[en.level-1][Tt.lane]|=Ut}}for(let en=0;en<q;en++)for(let Pr=0;Pr<yt;Pr++){let $r=en>0?ut[en-1][Pr]:0,it=Pr>0?ut[en][Pr-1]:0,Tt=ut[en][Pr];Tt||($r&8&&(Tt|=12),it&2&&(Tt|=3),ut[en][Pr]=Tt)}for(let en=0;en<q;en++)for(let Pr=0;Pr<jt.length;Pr++){let $r=ut[en][Pr],it=$r&4?"\u2500":" ",Tt=we[en][Pr];Tt?(Qt(Pr,Tt.text),en<q-1&&(Qt(Pr," "),Qt(Pr,Re(it,Nt[en]-Tt.text.length)))):en<q-1&&Qt(Pr,Re(it,Nt[en]+1)),Qt(Pr,pe($r)),Qt(Pr,$r&8&&en<q-1&&!we[en+1][Pr]?"\u2500":" ")}return`
${jt.join(`
`)}
`;function Qt(en,Pr){jt[en]+=Pr}}function pe(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,yt){if(q.fill)q.fill(yt);else for(let jt=0;jt<q.length;jt++)q[jt]=yt;return q}function Re(q,yt){if(q.repeat)return yt>0?q.repeat(yt):"";let jt="";for(;jt.length<yt;)jt+=q;return jt}}e.formatControlFlowGraph=ui})(w||(w={}));var lje=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,uje=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,_je=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,fje=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,pje=/^[a-z0-9-]+$/i,Tve=/^(?:0|[1-9]\d*)$/,GY=class h8{constructor(t,n=0,i=0,s="",o=""){typeof t=="string"&&({major:t,minor:n,patch:i,prerelease:s,build:o}=w.checkDefined(kve(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?ks(s)?s:s.split("."):qe,_=o?ks(o)?o:o.split("."):qe;w.assert(Oi(c,u=>_je.test(u)),"Invalid argument: prerelease"),w.assert(Oi(_,u=>pje.test(u)),"Invalid argument: build"),this.major=t,this.minor=n,this.patch=i,this.prerelease=c,this.build=_}static tryParse(t){let n=kve(t);if(!n)return;let{major:i,minor:s,patch:o,prerelease:c,build:_}=n;return new h8(i,s,o,c,_)}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)||dje(this.prerelease,t.prerelease)}increment(t){switch(t){case"major":return new h8(this.major+1,0,0);case"minor":return new h8(this.major,this.minor+1,0);case"patch":return new h8(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 h8(n,i,s,o,c)}toString(){let t=`${this.major}.${this.minor}.${this.patch}`;return pt(this.prerelease)&&(t+=`-${this.prerelease.join(".")}`),pt(this.build)&&(t+=`+${this.build.join(".")}`),t}};GY.zero=new GY(0,0,0,["0"]);var Wd=GY;function kve(e){let t=lje.exec(e);if(!t)return;let[,n,i="0",s="0",o="",c=""]=t;if(!(o&&!uje.test(o))&&!(c&&!fje.test(c)))return{major:parseInt(n,10),minor:parseInt(i,10),patch:parseInt(s,10),prerelease:o,build:c}}function dje(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=Tve.test(s),_=Tve.test(o);if(c||_){if(c!==_)return c?-1:1;let u=Po(+s,+o);if(u)return u}else{let u=wu(s,o);if(u)return u}}return Po(e.length,t.length)}var N8=class eLe{constructor(t){this._alternatives=t?w.checkDefined(xve(t),"Invalid range spec."):qe}static tryParse(t){let n=xve(t);if(n){let i=new eLe("");return i._alternatives=n,i}}test(t){return typeof t=="string"&&(t=new Wd(t)),Tje(t,this._alternatives)}toString(){return Cje(this._alternatives)}},mje=/\|\|/,gje=/\s+/,hje=/^([x*0]|[1-9]\d*)(?:\.([x*0]|[1-9]\d*)(?:\.([x*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,yje=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,vje=/^([~^<>=]|<=|>=)?\s*([a-z0-9-+.*]+)$/i;function xve(e){let t=[];for(let n of e.trim().split(mje)){if(!n)continue;let i=[];n=n.trim();let s=yje.exec(n);if(s){if(!bje(s[1],s[2],i))return}else for(let o of n.split(gje)){let c=vje.exec(o.trim());if(!c||!Sje(c[1],c[2],i))return}t.push(i)}return t}function UY(e){let t=hje.exec(e);if(!t)return;let[,n,i="*",s="*",o,c]=t;return{version:new Wd(Xp(n)?0:parseInt(n,10),Xp(n)||Xp(i)?0:parseInt(i,10),Xp(n)||Xp(i)||Xp(s)?0:parseInt(s,10),o,c),major:n,minor:i,patch:s}}function bje(e,t,n){let i=UY(e);if(!i)return!1;let s=UY(t);return s?(Xp(i.major)||n.push(vg(">=",i.version)),Xp(s.major)||n.push(Xp(s.minor)?vg("<",s.version.increment("major")):Xp(s.patch)?vg("<",s.version.increment("minor")):vg("<=",s.version)),!0):!1}function Sje(e,t,n){let i=UY(t);if(!i)return!1;let{version:s,major:o,minor:c,patch:_}=i;if(Xp(o))(e==="<"||e===">")&&n.push(vg("<",Wd.zero));else switch(e){case"~":n.push(vg(">=",s)),n.push(vg("<",s.increment(Xp(c)?"major":"minor")));break;case"^":n.push(vg(">=",s)),n.push(vg("<",s.increment(s.major>0||Xp(c)?"major":s.minor>0||Xp(_)?"minor":"patch")));break;case"<":case">=":n.push(Xp(c)||Xp(_)?vg(e,s.with({prerelease:"0"})):vg(e,s));break;case"<=":case">":n.push(Xp(c)?vg(e==="<="?"<":">=",s.increment("major").with({prerelease:"0"})):Xp(_)?vg(e==="<="?"<":">=",s.increment("minor").with({prerelease:"0"})):vg(e,s));break;case"=":case void 0:Xp(c)||Xp(_)?(n.push(vg(">=",s.with({prerelease:"0"}))),n.push(vg("<",s.increment(Xp(c)?"major":"minor").with({prerelease:"0"})))):n.push(vg("=",s));break;default:return!1}return!0}function Xp(e){return e==="*"||e==="x"||e==="X"}function vg(e,t){return{operator:e,operand:t}}function Tje(e,t){if(t.length===0)return!0;for(let n of t)if(kje(e,n))return!0;return!1}function kje(e,t){for(let n of t)if(!xje(e,n.operator,n.operand))return!1;return!0}function xje(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 Cje(e){return hr(e,wje).join(" || ")||"*"}function wje(e){return hr(e,Ije).join(" ")}function Ije(e){return`${e.operator}${e.operand}`}function Dje(){if(zW())try{let{performance:e}=$5e();if(e)return{shouldWriteNativeEvents:!1,performance:e}}catch{}if(typeof performance=="object")return{shouldWriteNativeEvents:!0,performance}}function Pje(){let e=Dje();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 VY=Pje(),Cve=VY?.performanceTime;function qY(){return VY}var To=Cve?()=>Cve.now():Date.now,$Y={};nt($Y,{clearMarks:()=>Eve,clearMeasures:()=>Ave,createTimer:()=>JW,createTimerIf:()=>wve,disable:()=>KY,enable:()=>UW,forEachMark:()=>Pve,forEachMeasure:()=>GW,getCount:()=>Dve,getDuration:()=>SP,isEnabled:()=>QY,mark:()=>dc,measure:()=>Tp,nullTimer:()=>HY});var hP,HT;function wve(e,t,n,i){return e?JW(t,n,i):HY}function JW(e,t,n){let i=0;return{enter:s,exit:o};function s(){++i===1&&dc(t)}function o(){--i===0?(dc(n),Tp(e,t,n)):i<0&&w.fail("enter/exit count does not match.")}}var HY={enter:to,exit:to},yP=!1,Ive=To(),vP=new Map,t6=new Map,bP=new Map;function dc(e){if(yP){let t=t6.get(e)??0;t6.set(e,t+1),vP.set(e,To()),HT?.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function Tp(e,t,n){if(yP){let i=(n!==void 0?vP.get(n):void 0)??To(),s=(t!==void 0?vP.get(t):void 0)??Ive,o=bP.get(e)||0;bP.set(e,o+(i-s)),HT?.measure(e,t,n)}}function Dve(e){return t6.get(e)||0}function SP(e){return bP.get(e)||0}function GW(e){bP.forEach((t,n)=>e(n,t))}function Pve(e){vP.forEach((t,n)=>e(n))}function Ave(e){e!==void 0?bP.delete(e):bP.clear(),HT?.clearMeasures(e)}function Eve(e){e!==void 0?(t6.delete(e),vP.delete(e)):(t6.clear(),vP.clear()),HT?.clearMarks(e)}function QY(){return yP}function UW(e=Al){var t;return yP||(yP=!0,hP||(hP=qY()),hP?.performance&&(Ive=hP.performance.timeOrigin,(hP.shouldWriteNativeEvents||(t=e?.cpuProfilingEnabled)!=null&&t.call(e)||e?.debugMode)&&(HT=hP.performance))),!0}function KY(){yP&&(vP.clear(),t6.clear(),bP.clear(),HT=void 0,yP=!1)}var _n,r6;(e=>{let t,n=0,i=0,s,o=[],c,_=[];function u(K,U,me){if(w.assert(!_n,"Tracing already started"),t===void 0)try{t=nve()}catch(oe){throw new Error(`tracing requires having fs
(original error: ${oe.message||oe})`)}s=K,o.length=0,c===void 0&&(c=Bn(U,"legend.json")),t.existsSync(U)||t.mkdirSync(U,{recursive:!0});let te=s==="build"?`.${process.pid}-${++n}`:s==="server"?`.${process.pid}`:"",V=Bn(U,`trace${te}.json`),ne=Bn(U,`types${te}.json`);_.push({configFilePath:me,tracePath:V,typesPath:ne}),i=t.openSync(V,"w"),_n=e;let ie={cat:"__metadata",ph:"M",ts:1e3*To(),pid:1,tid:1};t.writeSync(i,`[
`+[{name:"process_name",args:{name:"tsc"},...ie},{name:"thread_name",args:{name:"Main"},...ie},{name:"TracingStartedInBrowser",...ie,cat:"disabled-by-default-devtools.timeline"}].map(oe=>JSON.stringify(oe)).join(`,
`))}e.startTracing=u;function g(){w.assert(_n,"Tracing is not in progress"),w.assert(!!o.length==(s!=="server")),t.writeSync(i,`
]
`),t.closeSync(i),_n=void 0,o.length?G(o):_[_.length-1].typesPath=void 0}e.stopTracing=g;function m(K){s!=="server"&&o.push(K)}e.recordType=m;let h;(K=>{K.Parse="parse",K.Program="program",K.Bind="bind",K.Check="check",K.CheckTypes="checkTypes",K.Emit="emit",K.Session="session"})(h=e.Phase||(e.Phase={}));function S(K,U,me){F("I",K,U,me,'"s":"g"')}e.instant=S;let T=[];function x(K,U,me,te=!1){te&&F("B",K,U,me),T.push({phase:K,name:U,args:me,time:1e3*To(),separateBeginAndEnd:te})}e.push=x;function I(K){w.assert(T.length>0),O(T.length-1,1e3*To(),K),T.length--}e.pop=I;function D(){let K=1e3*To();for(let U=T.length-1;U>=0;U--)O(U,K);T.length=0}e.popAll=D;let E=1e3*10;function O(K,U,me){let{phase:te,name:V,args:ne,time:ie,separateBeginAndEnd:oe}=T[K];oe?(w.assert(!me,"`results` are not supported for events with `separateBeginAndEnd`"),F("E",te,V,ne,void 0,U)):E-ie%E<=U-ie&&F("X",te,V,{...ne,results:me},`"dur":${U-ie}`,ie)}function F(K,U,me,te,V,ne=1e3*To()){s==="server"&&U==="checkTypes"||(dc("beginTracing"),t.writeSync(i,`,
{"pid":1,"tid":1,"ph":"${K}","cat":"${U}","ts":${ne},"name":"${me}"`),V&&t.writeSync(i,`,${V}`),te&&t.writeSync(i,`,"args":${JSON.stringify(te)}`),t.writeSync(i,"}"),dc("endTracing"),Tp("Tracing","beginTracing","endTracing"))}function B(K){let U=Fr(K);return U?{path:U.path,start:me(Qs(U,K.pos)),end:me(Qs(U,K.end))}:void 0;function me(te){return{line:te.line+1,character:te.character+1}}}function G(K){var U,me,te,V,ne,ie,oe,de,ye,H,ve,Ge,De,se,xe,_e,tt,ct,le;dc("beginDumpTypes");let Je=_[_.length-1].typesPath,ee=t.openSync(Je,"w"),Ne=new Map;t.writeSync(ee,"[");let Ie=K.length;for(let Ce=0;Ce<Ie;Ce++){let Ve=K[Ce],bt=Ve.objectFlags,zt=Ve.aliasSymbol??Ve.symbol,ur;if(bt&16|Ve.flags&2944)try{ur=(U=Ve.checker)==null?void 0:U.typeToString(Ve)}catch{ur=void 0}let Or={};if(Ve.flags&8388608){let Rn=Ve;Or={indexedAccessObjectType:(me=Rn.objectType)==null?void 0:me.id,indexedAccessIndexType:(te=Rn.indexType)==null?void 0:te.id}}let _t={};if(bt&4){let Rn=Ve;_t={instantiatedType:(V=Rn.target)==null?void 0:V.id,typeArguments:(ne=Rn.resolvedTypeArguments)==null?void 0:ne.map(hn=>hn.id),referenceLocation:B(Rn.node)}}let $t={};if(Ve.flags&16777216){let Rn=Ve;$t={conditionalCheckType:(ie=Rn.checkType)==null?void 0:ie.id,conditionalExtendsType:(oe=Rn.extendsType)==null?void 0:oe.id,conditionalTrueType:((de=Rn.resolvedTrueType)==null?void 0:de.id)??-1,conditionalFalseType:((ye=Rn.resolvedFalseType)==null?void 0:ye.id)??-1}}let Hr={};if(Ve.flags&33554432){let Rn=Ve;Hr={substitutionBaseType:(H=Rn.baseType)==null?void 0:H.id,constraintType:(ve=Rn.constraint)==null?void 0:ve.id}}let hi={};if(bt&1024){let Rn=Ve;hi={reverseMappedSourceType:(Ge=Rn.source)==null?void 0:Ge.id,reverseMappedMappedType:(De=Rn.mappedType)==null?void 0:De.id,reverseMappedConstraintType:(se=Rn.constraintType)==null?void 0:se.id}}let _s={};if(bt&256){let Rn=Ve;_s={evolvingArrayElementType:Rn.elementType.id,evolvingArrayFinalType:(xe=Rn.finalArrayType)==null?void 0:xe.id}}let At,zn=Ve.checker.getRecursionIdentity(Ve);zn&&(At=Ne.get(zn),At||(At=Ne.size,Ne.set(zn,At)));let ns={id:Ve.id,intrinsicName:Ve.intrinsicName,symbolName:zt?.escapedName&&Li(zt.escapedName),recursionId:At,isTuple:bt&8?!0:void 0,unionTypes:Ve.flags&1048576?(_e=Ve.types)==null?void 0:_e.map(Rn=>Rn.id):void 0,intersectionTypes:Ve.flags&2097152?Ve.types.map(Rn=>Rn.id):void 0,aliasTypeArguments:(tt=Ve.aliasTypeArguments)==null?void 0:tt.map(Rn=>Rn.id),keyofType:Ve.flags&4194304?(ct=Ve.type)==null?void 0:ct.id:void 0,...Or,..._t,...$t,...Hr,...hi,..._s,destructuringPattern:B(Ve.pattern),firstDeclaration:B((le=zt?.declarations)==null?void 0:le[0]),flags:w.formatTypeFlags(Ve.flags).split("|"),display:ur};t.writeSync(ee,JSON.stringify(ns)),Ce<Ie-1&&t.writeSync(ee,`,
`)}t.writeSync(ee,`]
`),t.closeSync(ee),dc("endDumpTypes"),Tp("Dump types","beginDumpTypes","endDumpTypes")}function $(){c&&t.writeFileSync(c,JSON.stringify(_))}e.dumpLegend=$})(r6||(r6={}));var XY=r6.startTracing,YY=r6.dumpLegend,VW=(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.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.SourceFile=307]="SourceFile",e[e.Bundle=308]="Bundle",e[e.JSDocTypeExpression=309]="JSDocTypeExpression",e[e.JSDocNameReference=310]="JSDocNameReference",e[e.JSDocMemberName=311]="JSDocMemberName",e[e.JSDocAllType=312]="JSDocAllType",e[e.JSDocUnknownType=313]="JSDocUnknownType",e[e.JSDocNullableType=314]="JSDocNullableType",e[e.JSDocNonNullableType=315]="JSDocNonNullableType",e[e.JSDocOptionalType=316]="JSDocOptionalType",e[e.JSDocFunctionType=317]="JSDocFunctionType",e[e.JSDocVariadicType=318]="JSDocVariadicType",e[e.JSDocNamepathType=319]="JSDocNamepathType",e[e.JSDoc=320]="JSDoc",e[e.JSDocComment=320]="JSDocComment",e[e.JSDocText=321]="JSDocText",e[e.JSDocTypeLiteral=322]="JSDocTypeLiteral",e[e.JSDocSignature=323]="JSDocSignature",e[e.JSDocLink=324]="JSDocLink",e[e.JSDocLinkCode=325]="JSDocLinkCode",e[e.JSDocLinkPlain=326]="JSDocLinkPlain",e[e.JSDocTag=327]="JSDocTag",e[e.JSDocAugmentsTag=328]="JSDocAugmentsTag",e[e.JSDocImplementsTag=329]="JSDocImplementsTag",e[e.JSDocAuthorTag=330]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=331]="JSDocDeprecatedTag",e[e.JSDocClassTag=332]="JSDocClassTag",e[e.JSDocPublicTag=333]="JSDocPublicTag",e[e.JSDocPrivateTag=334]="JSDocPrivateTag",e[e.JSDocProtectedTag=335]="JSDocProtectedTag",e[e.JSDocReadonlyTag=336]="JSDocReadonlyTag",e[e.JSDocOverrideTag=337]="JSDocOverrideTag",e[e.JSDocCallbackTag=338]="JSDocCallbackTag",e[e.JSDocOverloadTag=339]="JSDocOverloadTag",e[e.JSDocEnumTag=340]="JSDocEnumTag",e[e.JSDocParameterTag=341]="JSDocParameterTag",e[e.JSDocReturnTag=342]="JSDocReturnTag",e[e.JSDocThisTag=343]="JSDocThisTag",e[e.JSDocTypeTag=344]="JSDocTypeTag",e[e.JSDocTemplateTag=345]="JSDocTemplateTag",e[e.JSDocTypedefTag=346]="JSDocTypedefTag",e[e.JSDocSeeTag=347]="JSDocSeeTag",e[e.JSDocPropertyTag=348]="JSDocPropertyTag",e[e.JSDocThrowsTag=349]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=350]="JSDocSatisfiesTag",e[e.JSDocImportTag=351]="JSDocImportTag",e[e.SyntaxList=352]="SyntaxList",e[e.NotEmittedStatement=353]="NotEmittedStatement",e[e.NotEmittedTypeElement=354]="NotEmittedTypeElement",e[e.PartiallyEmittedExpression=355]="PartiallyEmittedExpression",e[e.CommaListExpression=356]="CommaListExpression",e[e.SyntheticReferenceExpression=357]="SyntheticReferenceExpression",e[e.Count=358]="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=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="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=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=309]="FirstJSDocNode",e[e.LastJSDocNode=351]="LastJSDocNode",e[e.FirstJSDocTagNode=327]="FirstJSDocTagNode",e[e.LastJSDocTagNode=351]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(VW||{}),qW=(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))(qW||{}),$W=(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))($W||{}),ZY=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(ZY||{}),HW=(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))(HW||{}),eZ=(e=>(e[e.None=0]="None",e[e.Always=1]="Always",e[e.Never=2]="Never",e[e.Sometimes=3]="Sometimes",e))(eZ||{}),QW=(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))(QW||{}),tZ=(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))(tZ||{}),rZ=(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))(rZ||{}),M8=(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))(M8||{}),nZ=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(nZ||{}),TP=class{},KW=(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))(KW||{}),iZ=(e=>(e[e.FilePreprocessingLibReferenceDiagnostic=0]="FilePreprocessingLibReferenceDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(iZ||{}),sZ=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e[e.BuilderSignature=2]="BuilderSignature",e))(sZ||{}),XW=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(XW||{}),aZ=(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))(aZ||{}),oZ=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(oZ||{}),cZ=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(cZ||{}),lZ=(e=>(e[e.None=0]="None",e[e.NoSupertypeReduction=1]="NoSupertypeReduction",e[e.NoConstraintReduction=2]="NoConstraintReduction",e))(lZ||{}),uZ=(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))(uZ||{}),_Z=(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))(_Z||{}),fZ=(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))(fZ||{}),pZ=(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))(pZ||{}),dZ=(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))(dZ||{}),mZ=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e[e.NotResolved=3]="NotResolved",e))(mZ||{}),gZ=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(gZ||{}),hZ=(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))(hZ||{}),YW=(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))(YW||{}),yZ=(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))(yZ||{}),vZ=(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))(vZ||{}),ZW=(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))(ZW||{}),eB=(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))(eB||{}),tB=(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.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.SingleSignatureType=134217728]="SingleSignatureType",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))(tB||{}),bZ=(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))(bZ||{}),SZ=(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))(SZ||{}),TZ=(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))(TZ||{}),kZ=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(kZ||{}),xZ=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(xZ||{}),CZ=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(CZ||{}),rB=(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))(rB||{}),wZ=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(wZ||{}),IZ=(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))(IZ||{}),DZ=(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))(DZ||{}),PZ=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(PZ||{}),AZ=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(AZ||{}),EZ=(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))(EZ||{}),R8=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(R8||{});function QT(e,t=!0){let n=R8[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||{}),NZ=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(NZ||{}),MZ=(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))(MZ||{}),RZ=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(RZ||{}),FZ=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(FZ||{}),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.NodeNext=199]="NodeNext",e[e.Preserve=200]="Preserve",e))(kw||{}),OZ=(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))(OZ||{}),LZ=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(LZ||{}),jZ=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(jZ||{}),nB=(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))(nB||{}),WZ=(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))(WZ||{}),BZ=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(BZ||{}),zZ=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(zZ||{}),JZ=(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))(JZ||{}),GZ=(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))(GZ||{}),iB=(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))(iB||{}),sB=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(sB||{}),aB=(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))(aB||{}),UZ=(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))(UZ||{}),zl={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},VZ=(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))(VZ||{}),qZ=(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))(qZ||{}),$Z=(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))($Z||{}),HZ=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(HZ||{}),QZ=(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))(QZ||{}),KZ=(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))(KZ||{}),F8={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}},XZ=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(XZ||{});function kP(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n);return t.toString()}function Nve(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}var YZ=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(YZ||{}),oB=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(oB||{}),_f=new Date(0);function Vx(e,t){return e.getModifiedTime(t)||_f}function ZZ(e){return{250:e.Low,500:e.Medium,2e3:e.High}}var cB={Low:32,Medium:64,High:256},lB=ZZ(cB),O8=ZZ(cB);function Aje(e){if(!e.getEnvironmentVariable)return;let t=s("TSC_WATCH_POLLINGINTERVAL",oB);lB=o("TSC_WATCH_POLLINGCHUNKSIZE",cB)||lB,O8=o("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",cB)||O8;function n(c,_){return e.getEnvironmentVariable(`${c}_${_.toUpperCase()}`)}function i(c){let _;return u("Low"),u("Medium"),u("High"),_;function u(g){let m=n(c,g);m&&((_||(_={}))[g]=Number(m))}}function s(c,_){let u=i(c);if(u)return g("Low"),g("Medium"),g("High"),!0;return!1;function g(m){_[m]=u[m]||_[m]}}function o(c,_){let u=i(c);return(t||u)&&ZZ(u?{..._,...u}:_)}}function Mve(e,t,n,i,s){let o=n;for(let _=t.length;i&&_;c(),_--){let u=t[n];if(u){if(u.isClosed){t[n]=void 0;continue}}else continue;i--;let g=Rje(u,Vx(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 Eje(e){let t=[],n=[],i=_(250),s=_(500),o=_(2e3);return c;function c(D,E,O){let F={fileName:D,callback:E,unchangedPolls:0,mtime:Vx(e,D)};return t.push(F),S(F,O),{close:()=>{F.isClosed=!0,Gx(t,F)}}}function _(D){let E=[];return E.pollingInterval=D,E.pollIndex=0,E.pollScheduled=!1,E}function u(D,E){E.pollIndex=m(E,E.pollingInterval,E.pollIndex,lB[E.pollingInterval]),E.length?I(E.pollingInterval):(w.assert(E.pollIndex===0),E.pollScheduled=!1)}function g(D,E){m(n,250,0,n.length),u(D,E),!E.pollScheduled&&n.length&&I(250)}function m(D,E,O,F){return Mve(e,D,O,F,B);function B(G,$,K){K?(G.unchangedPolls=0,D!==n&&(D[$]=void 0,T(G))):G.unchangedPolls!==O8[E]?G.unchangedPolls++:D===n?(G.unchangedPolls=1,D[$]=void 0,S(G,250)):E!==2e3&&(G.unchangedPolls++,D[$]=void 0,S(G,E===250?500:2e3))}}function h(D){switch(D){case 250:return i;case 500:return s;case 2e3:return o}}function S(D,E){h(E).push(D),x(E)}function T(D){n.push(D),x(250)}function x(D){h(D).pollScheduled||I(D)}function I(D){h(D).pollScheduled=e.setTimeout(D===250?g:u,D,D===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",h(D))}}function Nje(e,t,n,i){let s=Kp(),o=i?new Map:void 0,c=new Map,_=fu(t);return u;function u(m,h,S,T){let x=_(m);s.add(x,h).length===1&&o&&o.set(x,n(m)||_f);let I=Yn(x)||".",D=c.get(I)||g(Yn(m)||".",I,T);return D.referenceCount++,{close:()=>{D.referenceCount===1?(D.close(),c.delete(I)):D.referenceCount--,s.remove(x,h)}}}function g(m,h,S){let T=e(m,1,(x,I)=>{if(!ys(I))return;let D=as(I,m),E=_(D),O=D&&s.get(E);if(O){let F,B=1;if(o){let G=o.get(E);if(x==="change"&&(F=n(D)||_f,F.getTime()===G.getTime()))return;F||(F=n(D)||_f),o.set(E,F),G===_f?B=0:F===_f&&(B=2)}for(let G of O)G(D,B,F)}},!1,500,S);return T.referenceCount=0,c.set(h,T),T}}function Mje(e){let t=[],n=0,i;return s;function s(_,u){let g={fileName:_,callback:u,mtime:Vx(e,_)};return t.push(g),c(),{close:()=>{g.isClosed=!0,Gx(t,g)}}}function o(){i=void 0,n=Mve(e,t,n,lB[250]),c()}function c(){!t.length||i||(i=e.setTimeout(o,2e3,"pollQueue"))}}function Rve(e,t,n,i,s){let c=fu(t)(n),_=e.get(c);return _?_.callbacks.push(i):e.set(c,{watcher:s((u,g,m)=>{var h;return(h=e.get(c))==null?void 0:h.callbacks.slice().forEach(S=>S(u,g,m))}),callbacks:[i]}),{close:()=>{let u=e.get(c);u&&(!mP(u.callbacks,i)||u.callbacks.length||(e.delete(c),Op(u)))}}}function Rje(e,t){let n=e.mtime.getTime(),i=t.getTime();return n!==i?(e.mtime=t,e.callback(e.fileName,uB(n,i),t),!0):!1}function uB(e,t){return e===0?0:t===0?2:1}var L8=["/node_modules/.","/.git","/.#"],Fve=to;function n6(e){return Fve(e)}function eee(e){Fve=e}function Fje({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:n,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:s,realpath:o,setTimeout:c,clearTimeout:_}){let u=new Map,g=Kp(),m=new Map,h,S=bw(!t),T=fu(t);return(U,me,te,V)=>te?x(U,V,me):e(U,me,te,V);function x(U,me,te,V){let ne=T(U),ie=u.get(ne);ie?ie.refCount++:(ie={watcher:e(U,de=>{var ye;$(de,me)||(me?.synchronousWatchDirectory?((ye=u.get(ne))!=null&&ye.targetWatcher||I(U,ne,de),G(U,ne,me)):D(U,ne,de,me))},!1,me),refCount:1,childWatches:qe,targetWatcher:void 0,links:void 0},u.set(ne,ie),G(U,ne,me)),V&&(ie.links??(ie.links=new Set)).add(V);let oe=te&&{dirName:U,callback:te};return oe&&g.add(ne,oe),{dirName:U,close:()=>{var de;let ye=w.checkDefined(u.get(ne));oe&&g.remove(ne,oe),V&&((de=ye.links)==null||de.delete(V)),ye.refCount--,!ye.refCount&&(u.delete(ne),ye.links=void 0,Op(ye),B(ye),ye.childWatches.forEach(kd))}}}function I(U,me,te,V){var ne,ie;let oe,de;ys(te)?oe=te:de=te,g.forEach((ye,H)=>{if(!(de&&de.get(H)===!0)&&(H===me||Yi(me,H)&&me[H.length]===Fo))if(de)if(V){let ve=de.get(H);ve?ve.push(...V):de.set(H,V.slice())}else de.set(H,!0);else ye.forEach(({callback:ve})=>ve(oe))}),(ie=(ne=u.get(me))==null?void 0:ne.links)==null||ie.forEach(ye=>{let H=ve=>Bn(ye,Zf(U,ve,T));de?I(ye,T(ye),de,V?.map(H)):I(ye,T(ye),H(oe))})}function D(U,me,te,V){let ne=u.get(me);if(ne&&s(U,1)){E(U,me,te,V);return}I(U,me,te),B(ne),F(ne)}function E(U,me,te,V){let ne=m.get(me);ne?ne.fileNames.push(te):m.set(me,{dirName:U,options:V,fileNames:[te]}),h&&(_(h),h=void 0),h=c(O,1e3,"timerToUpdateChildWatches")}function O(){var U;h=void 0,n6(`sysLog:: onTimerToUpdateChildWatches:: ${m.size}`);let me=To(),te=new Map;for(;!h&&m.size;){let ne=m.entries().next();w.assert(!ne.done);let{value:[ie,{dirName:oe,options:de,fileNames:ye}]}=ne;m.delete(ie);let H=G(oe,ie,de);(U=u.get(ie))!=null&&U.targetWatcher||I(oe,ie,te,H?void 0:ye)}n6(`sysLog:: invokingWatchers:: Elapsed:: ${To()-me}ms:: ${m.size}`),g.forEach((ne,ie)=>{let oe=te.get(ie);oe&&ne.forEach(({callback:de,dirName:ye})=>{ks(oe)?oe.forEach(de):de(ye)})});let V=To()-me;n6(`sysLog:: Elapsed:: ${V}ms:: onTimerToUpdateChildWatches:: ${m.size} ${h}`)}function F(U){if(!U)return;let me=U.childWatches;U.childWatches=qe;for(let te of me)te.close(),F(u.get(T(te.dirName)))}function B(U){U?.targetWatcher&&(U.targetWatcher.close(),U.targetWatcher=void 0)}function G(U,me,te){let V=u.get(me);if(!V)return!1;let ne=na(o(U)),ie,oe;return S(ne,U)===0?ie=E8(s(U,1)?Vi(i(U),H=>{let ve=as(H,U);return!$(ve,te)&&S(ve,na(o(ve)))===0?ve:void 0}):qe,V.childWatches,(H,ve)=>S(H,ve.dirName),de,kd,ye):V.targetWatcher&&S(ne,V.targetWatcher.dirName)===0?(ie=!1,w.assert(V.childWatches===qe)):(B(V),V.targetWatcher=x(ne,te,void 0,U),V.childWatches.forEach(kd),ie=!0),V.childWatches=oe||qe,ie;function de(H){let ve=x(H,te);ye(ve)}function ye(H){(oe||(oe=[])).push(H)}}function $(U,me){return pt(L8,te=>K(U,te))||Ove(U,me,t,n)}function K(U,me){return U.includes(me)?!0:t?!1:T(U).includes(me)}}var tee=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(tee||{});function Oje(e){return(t,n,i)=>e(n===1?"change":"rename","",i)}function Lje(e,t,n){return(i,s,o)=>{i==="rename"?(o||(o=n(e)||_f),t(e,o!==_f?0:2,o)):t(e,1,o)}}function Ove(e,t,n,i){return(t?.excludeDirectories||t?.excludeFiles)&&(j7(e,t?.excludeFiles,n,i())||j7(e,t?.excludeDirectories,n,i()))}function Lve(e,t,n,i,s){return(o,c)=>{if(o==="rename"){let _=c?na(Bn(e,c)):e;(!c||!Ove(_,n,i,s))&&t(_)}}}function ree({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:n,clearTimeout:i,fsWatchWorker:s,fileSystemEntryExists:o,useCaseSensitiveFileNames:c,getCurrentDirectory:_,fsSupportsRecursiveFsWatch:u,getAccessibleSortedChildDirectories:g,realpath:m,tscWatchFile:h,useNonPollingWatchers:S,tscWatchDirectory:T,inodeWatching:x,fsWatchWithTimestamp:I,sysLog:D}){let E=new Map,O=new Map,F=new Map,B,G,$,K,U=!1;return{watchFile:me,watchDirectory:oe};function me(se,xe,_e,tt){tt=ne(tt,S);let ct=w.checkDefined(tt.watchFile);switch(ct){case 0:return H(se,xe,250,void 0);case 1:return H(se,xe,_e,void 0);case 2:return te()(se,xe,_e,void 0);case 3:return V()(se,xe,void 0,void 0);case 4:return ve(se,0,Lje(se,xe,t),!1,_e,WM(tt));case 5:return $||($=Nje(ve,c,t,I)),$(se,xe,_e,WM(tt));default:w.assertNever(ct)}}function te(){return B||(B=Eje({getModifiedTime:t,setTimeout:n}))}function V(){return G||(G=Mje({getModifiedTime:t,setTimeout:n}))}function ne(se,xe){if(se&&se.watchFile!==void 0)return se;switch(h){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return ie(4,1,se);case"UseFsEventsWithFallbackDynamicPolling":return ie(4,2,se);case"UseFsEventsOnParentDirectory":xe=!0;default:return xe?ie(5,1,se):{watchFile:4}}}function ie(se,xe,_e){let tt=_e?.fallbackPolling;return{watchFile:se,fallbackPolling:tt===void 0?xe:tt}}function oe(se,xe,_e,tt){return u?ve(se,1,Lve(se,xe,tt,c,_),_e,500,WM(tt)):(K||(K=Fje({useCaseSensitiveFileNames:c,getCurrentDirectory:_,fileSystemEntryExists:o,getAccessibleSortedChildDirectories:g,watchDirectory:de,realpath:m,setTimeout:n,clearTimeout:i})),K(se,xe,_e,tt))}function de(se,xe,_e,tt){w.assert(!_e);let ct=ye(tt),le=w.checkDefined(ct.watchDirectory);switch(le){case 1:return H(se,()=>xe(se),500,void 0);case 2:return te()(se,()=>xe(se),500,void 0);case 3:return V()(se,()=>xe(se),void 0,void 0);case 0:return ve(se,1,Lve(se,xe,tt,c,_),_e,500,WM(ct));default:w.assertNever(le)}}function ye(se){if(se&&se.watchDirectory!==void 0)return se;switch(T){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:let xe=se?.fallbackPolling;return{watchDirectory:0,fallbackPolling:xe!==void 0?xe:void 0}}}function H(se,xe,_e,tt){return Rve(E,c,se,xe,ct=>e(se,ct,_e,tt))}function ve(se,xe,_e,tt,ct,le){return Rve(tt?F:O,c,se,_e,Je=>Ge(se,xe,Je,tt,ct,le))}function Ge(se,xe,_e,tt,ct,le){let Je,ee;x&&(Je=se.substring(se.lastIndexOf(Fo)),ee=Je.slice(Fo.length));let Ne=o(se,xe)?Ce():zt();return{close:()=>{Ne&&(Ne.close(),Ne=void 0)}};function Ie(ur){Ne&&(D(`sysLog:: ${se}:: Changing watcher to ${ur===Ce?"Present":"Missing"}FileSystemEntryWatcher`),Ne.close(),Ne=ur())}function Ce(){if(U)return D(`sysLog:: ${se}:: Defaulting to watchFile`),bt();try{let ur=(xe===1||!I?s:De)(se,tt,x?Ve:_e);return ur.on("error",()=>{_e("rename",""),Ie(zt)}),ur}catch(ur){return U||(U=ur.code==="ENOSPC"),D(`sysLog:: ${se}:: Changing to watchFile`),bt()}}function Ve(ur,Or){let _t;if(Or&&Jo(Or,"~")&&(_t=Or,Or=Or.slice(0,Or.length-1)),ur==="rename"&&(!Or||Or===ee||Jo(Or,Je))){let $t=t(se)||_f;_t&&_e(ur,_t,$t),_e(ur,Or,$t),x?Ie($t===_f?zt:Ce):$t===_f&&Ie(zt)}else _t&&_e(ur,_t),_e(ur,Or)}function bt(){return me(se,Oje(_e),ct,le)}function zt(){return me(se,(ur,Or,_t)=>{Or===0&&(_t||(_t=t(se)||_f),_t!==_f&&(_e("rename","",_t),Ie(Ce)))},ct,le)}}function De(se,xe,_e){let tt=t(se)||_f;return s(se,xe,(ct,le,Je)=>{ct==="change"&&(Je||(Je=t(se)||_f),Je.getTime()===tt.getTime())||(tt=Je||t(se)||_f,_e(ct,le,tt))})}}function nee(e){let t=e.writeFile;e.writeFile=(n,i,s)=>$z(n,i,!!s,(o,c,_)=>t.call(e,o,c,_),o=>e.createDirectory(o),o=>e.directoryExists(o))}var Al=(()=>{function t(){let i=/^native |^\([^)]+\)$|^(?:internal[\\/]|[\w\s]+(?:\.js)?$)/,s=nve(),o=H5e(),c=Q5e(),_;try{_=K5e()}catch{_=void 0}let u,g="./profile.cpuprofile",m=process.platform==="darwin",h=process.platform==="linux"||m,S={throwIfNoEntry:!1},T=c.platform(),x=te(),I=s.realpathSync.native?process.platform==="win32"?xe:s.realpathSync.native:s.realpathSync,D=__filename.endsWith("sys.js")?o.join(o.dirname(__dirname),"__fake__.js"):__filename,E=process.platform==="win32"||m,O=Yu(()=>process.cwd()),{watchFile:F,watchDirectory:B}=ree({pollingWatchFileWorker:ne,getModifiedTime:tt,setTimeout,clearTimeout,fsWatchWorker:ie,useCaseSensitiveFileNames:x,getCurrentDirectory:O,fileSystemEntryExists:ve,fsSupportsRecursiveFsWatch:E,getAccessibleSortedChildDirectories:ee=>ye(ee).directories,realpath:_e,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:!!process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,inodeWatching:h,fsWatchWithTimestamp:m,sysLog:n6}),G={args:process.argv.slice(2),newLine:c.EOL,useCaseSensitiveFileNames:x,write(ee){process.stdout.write(ee)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:oe,writeFile:de,watchFile:F,watchDirectory:B,preferNonRecursiveWatch:!E,resolvePath:ee=>o.resolve(ee),fileExists:Ge,directoryExists:De,getAccessibleFileSystemEntries:ye,createDirectory(ee){if(!G.directoryExists(ee))try{s.mkdirSync(ee)}catch(Ne){if(Ne.code!=="EEXIST")throw Ne}},getExecutingFilePath(){return D},getCurrentDirectory:O,getDirectories:se,getEnvironmentVariable(ee){return process.env[ee]||""},readDirectory:H,getModifiedTime:tt,setModifiedTime:ct,deleteFile:le,createHash:_?Je:kP,createSHA256Hash:_?Je:void 0,getMemoryUsage(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize(ee){let Ne=$(ee);return Ne?.isFile()?Ne.size:0},exit(ee){me(()=>process.exit(ee))},enableCPUProfiler:K,disableCPUProfiler:me,cpuProfilingEnabled:()=>!!u||Ts(process.execArgv,"--cpu-prof")||Ts(process.execArgv,"--prof"),realpath:_e,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||pt(process.execArgv,ee=>/^--(?:inspect|debug)(?:-brk)?(?:=\d+)?$/i.test(ee))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{X5e().install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1B[2J\x1B[3J\x1B[H")},setBlocking:()=>{var ee;let Ne=(ee=process.stdout)==null?void 0:ee._handle;Ne&&Ne.setBlocking&&Ne.setBlocking(!0)},base64decode:ee=>Buffer.from(ee,"base64").toString("utf8"),base64encode:ee=>Buffer.from(ee).toString("base64"),require:(ee,Ne)=>{try{let Ie=Dse(Ne,ee,G);return{module:Dye(Ie),modulePath:Ie,error:void 0}}catch(Ie){return{module:void 0,modulePath:void 0,error:Ie}}}};return G;function $(ee){try{return s.statSync(ee,S)}catch{return}}function K(ee,Ne){if(u)return Ne(),!1;let Ie=Y5e();if(!Ie||!Ie.Session)return Ne(),!1;let Ce=new Ie.Session;return Ce.connect(),Ce.post("Profiler.enable",()=>{Ce.post("Profiler.start",()=>{u=Ce,g=ee,Ne()})}),!0}function U(ee){let Ne=0,Ie=new Map,Ce=iu(o.dirname(D)),Ve=`file://${Bd(Ce)===1?"":"/"}${Ce}`;for(let bt of ee.nodes)if(bt.callFrame.url){let zt=iu(bt.callFrame.url);kp(Ve,zt,x)?bt.callFrame.url=Hx(Ve,zt,Ve,fu(x),!0):i.test(zt)||(bt.callFrame.url=(Ie.has(zt)?Ie:Ie.set(zt,`external${Ne}.js`)).get(zt),Ne++)}return ee}function me(ee){if(u&&u!=="stopping"){let Ne=u;return u.post("Profiler.stop",(Ie,{profile:Ce})=>{var Ve;if(!Ie){(Ve=$(g))!=null&&Ve.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(Ce)))}u=void 0,Ne.disconnect(),ee()}),u="stopping",!0}else return ee(),!1}function te(){return T==="win32"||T==="win64"?!1:!Ge(V(__filename))}function V(ee){return ee.replace(/\w/g,Ne=>{let Ie=Ne.toUpperCase();return Ne===Ie?Ne.toLowerCase():Ie})}function ne(ee,Ne,Ie){s.watchFile(ee,{persistent:!0,interval:Ie},Ve);let Ce;return{close:()=>s.unwatchFile(ee,Ve)};function Ve(bt,zt){let ur=+zt.mtime==0||Ce===2;if(+bt.mtime==0){if(ur)return;Ce=2}else if(ur)Ce=0;else{if(+bt.mtime==+zt.mtime)return;Ce=1}Ne(ee,Ce,bt.mtime)}}function ie(ee,Ne,Ie){return s.watch(ee,E?{persistent:!0,recursive:!!Ne}:{persistent:!0},Ie)}function oe(ee,Ne){let Ie;try{Ie=s.readFileSync(ee)}catch{return}let Ce=Ie.length;if(Ce>=2&&Ie[0]===254&&Ie[1]===255){Ce&=-2;for(let Ve=0;Ve<Ce;Ve+=2){let bt=Ie[Ve];Ie[Ve]=Ie[Ve+1],Ie[Ve+1]=bt}return Ie.toString("utf16le",2)}return Ce>=2&&Ie[0]===255&&Ie[1]===254?Ie.toString("utf16le",2):Ce>=3&&Ie[0]===239&&Ie[1]===187&&Ie[2]===191?Ie.toString("utf8",3):Ie.toString("utf8")}function de(ee,Ne,Ie){Ie&&(Ne="\uFEFF"+Ne);let Ce;try{Ce=s.openSync(ee,"w"),s.writeSync(Ce,Ne,void 0,"utf8")}finally{Ce!==void 0&&s.closeSync(Ce)}}function ye(ee){try{let Ne=s.readdirSync(ee||".",{withFileTypes:!0}),Ie=[],Ce=[];for(let Ve of Ne){let bt=typeof Ve=="string"?Ve:Ve.name;if(bt==="."||bt==="..")continue;let zt;if(typeof Ve=="string"||Ve.isSymbolicLink()){let ur=Bn(ee,bt);if(zt=$(ur),!zt)continue}else zt=Ve;zt.isFile()?Ie.push(bt):zt.isDirectory()&&Ce.push(bt)}return Ie.sort(),Ce.sort(),{files:Ie,directories:Ce}}catch{return DJ}}function H(ee,Ne,Ie,Ce,Ve){return xJ(ee,Ne,Ie,Ce,x,process.cwd(),Ve,ye,_e)}function ve(ee,Ne){let Ie=$(ee);if(!Ie)return!1;switch(Ne){case 0:return Ie.isFile();case 1:return Ie.isDirectory();default:return!1}}function Ge(ee){return ve(ee,0)}function De(ee){return ve(ee,1)}function se(ee){return ye(ee).directories.slice()}function xe(ee){return ee.length<260?s.realpathSync.native(ee):s.realpathSync(ee)}function _e(ee){try{return I(ee)}catch{return ee}}function tt(ee){var Ne;return(Ne=$(ee))==null?void 0:Ne.mtime}function ct(ee,Ne){try{s.utimesSync(ee,Ne,Ne)}catch{return}}function le(ee){try{return s.unlinkSync(ee)}catch{return}}function Je(ee){let Ne=_.createHash("sha256");return Ne.update(ee),Ne.digest("hex")}}let n;return zW()&&(n=t()),n&&nee(n),n})();function jve(e){Al=e}Al&&Al.getEnvironmentVariable&&(Aje(Al),w.setAssertionLevel(/^development$/i.test(Al.getEnvironmentVariable("NODE_ENV"))?1:0)),Al&&Al.debugMode&&(w.isDebugging=!0);var Fo="/",j8="\\",Wve="://",jje=/\\/g;function _B(e){return e===47||e===92}function iee(e){return W8(e)<0}function ff(e){return W8(e)>0}function fB(e){let t=W8(e);return t>0&&t===e.length}function xP(e){return W8(e)!==0}function Of(e){return/^\.\.?(?:$|[\\/])/.test(e)}function pB(e){return!xP(e)&&!Of(e)}function xw(e){return fl(e).includes(".")}function nc(e,t){return e.length>t.length&&Jo(e,t)}function Gc(e,t){for(let n of t)if(nc(e,n))return!0;return!1}function p0(e){return e.length>0&&_B(e.charCodeAt(e.length-1))}function Bve(e){return e>=97&&e<=122||e>=65&&e<=90}function Wje(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 W8(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?Fo:j8,2);return i<0?e.length:i+1}if(Bve(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(Wve);if(n!==-1){let i=n+Wve.length,s=e.indexOf(Fo,i);if(s!==-1){let o=e.slice(0,n),c=e.slice(i,s);if(o==="file"&&(c===""||c==="localhost")&&Bve(e.charCodeAt(s+1))){let _=Wje(e,s+2);if(_!==-1){if(e.charCodeAt(_)===47)return~(_+1);if(_===e.length)return~_}}return~(s+1)}return~e.length}return 0}function Bd(e){let t=W8(e);return t<0?~t:t}function Yn(e){e=iu(e);let t=Bd(e);return t===e.length?e:(e=Ky(e),e.slice(0,Math.max(t,e.lastIndexOf(Fo))))}function fl(e,t,n){if(e=iu(e),Bd(e)===e.length)return"";e=Ky(e);let s=e.slice(Math.max(Bd(e),e.lastIndexOf(Fo)+1)),o=t!==void 0&&n!==void 0?qx(s,t,n):void 0;return o?s.slice(0,s.length-o.length):s}function zve(e,t,n){if(Yi(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 Bje(e,t,n){if(typeof t=="string")return zve(e,t,n)||"";for(let i of t){let s=zve(e,i,n);if(s)return s}return""}function qx(e,t,n){if(t)return Bje(Ky(e),t,n?_0:aS);let i=fl(e),s=i.lastIndexOf(".");return s>=0?i.substring(s):""}function zje(e,t){let n=e.substring(0,t),i=e.substring(t).split(Fo);return i.length&&!zo(i)&&i.pop(),[n,...i]}function Iu(e,t=""){return e=Bn(t,e),zje(e,Bd(e))}function Ib(e,t){return e.length===0?"":(e[0]&&El(e[0]))+e.slice(1,t).join(Fo)}function iu(e){return e.includes("\\")?e.replace(jje,Fo):e}function $x(e){if(!pt(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 Bn(e,...t){e&&(e=iu(e));for(let n of t)n&&(n=iu(n),!e||Bd(n)!==0?e=n:e=El(e)+n);return e}function d0(e,...t){return na(pt(t)?Bn(e,...t):iu(e))}function B8(e,t){return $x(Iu(e,t))}function as(e,t){let n=Bd(e);n===0&&t?(e=Bn(t,e),n=Bd(e)):e=iu(e);let i=Jve(e);if(i!==void 0)return i.length>n?Ky(i):i;let s=e.length,o=e.substring(0,n),c,_=n,u=_,g=_,m=n!==0;for(;_<s;){u=_;let h=e.charCodeAt(_);for(;h===47&&_+1<s;)_++,h=e.charCodeAt(_);_>u&&(c??(c=e.substring(0,u-1)),u=_);let S=e.indexOf(Fo,_+1);S===-1&&(S=s);let T=S-u;if(T===1&&e.charCodeAt(_)===46)c??(c=e.substring(0,g));else if(T===2&&e.charCodeAt(_)===46&&e.charCodeAt(_+1)===46)if(!m)c!==void 0?c+=c.length===n?"..":"/..":g=_+2;else if(c===void 0)g-2>=0?c=e.substring(0,Math.max(n,e.lastIndexOf(Fo,g-2))):c=e.substring(0,g);else{let x=c.lastIndexOf(Fo);x!==-1?c=c.substring(0,Math.max(n,x)):c=o,c.length===n&&(m=n!==0)}else c!==void 0?(c.length!==n&&(c+=Fo),m=!0,c+=e.substring(u,S)):(m=!0,g=S);_=S+1}return c??(s>n?Ky(e):e)}function na(e){e=iu(e);let t=Jve(e);return t!==void 0?t:(t=as(e,""),t&&p0(e)?El(t):t)}function Jve(e){if(!mB.test(e))return e;let t=e.replace(/\/\.\//g,"/");if(t.startsWith("./")&&(t=t.slice(2)),t!==e&&(e=t,!mB.test(e)))return e}function Jje(e){return e.length===0?"":e.slice(1).join(Fo)}function dB(e,t){return Jje(B8(e,t))}function ko(e,t,n){let i=ff(e)?na(e):as(e,t);return n(i)}function Ky(e){return p0(e)?e.substr(0,e.length-1):e}function El(e){return p0(e)?e:e+Fo}function KT(e){return!xP(e)&&!Of(e)?"./"+e:e}function i6(e,t,n,i){let s=n!==void 0&&i!==void 0?qx(e,n,i):qx(e);return s?e.slice(0,e.length-s.length)+(Yi(t,".")?t:"."+t):e}function z8(e,t){let n=x7(e);return n?e.slice(0,e.length-n.length)+(Yi(t,".")?t:"."+t):i6(e,t)}var mB=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function see(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,Bd(e)),s=t.substring(0,Bd(t)),o=ZN(i,s);if(o!==0)return o;let c=e.substring(i.length),_=t.substring(s.length);if(!mB.test(c)&&!mB.test(_))return n(c,_);let u=$x(Iu(e)),g=$x(Iu(t)),m=Math.min(u.length,g.length);for(let h=1;h<m;h++){let S=n(u[h],g[h]);if(S!==0)return S}return Po(u.length,g.length)}function Gve(e,t){return see(e,t,wu)}function Uve(e,t){return see(e,t,ZN)}function ty(e,t,n,i){return typeof n=="string"?(e=Bn(n,e),t=Bn(n,t)):typeof n=="boolean"&&(i=n),see(e,t,bw(i))}function kp(e,t,n,i){if(typeof n=="string"?(e=Bn(n,e),t=Bn(n,t)):typeof n=="boolean"&&(i=n),e===void 0||t===void 0)return!1;if(e===t)return!0;let s=$x(Iu(e)),o=$x(Iu(t));if(o.length<s.length)return!1;let c=i?_0:aS;for(let _=0;_<s.length;_++)if(!(_===0?_0:c)(s[_],o[_]))return!1;return!0}function gB(e,t,n){let i=n(e),s=n(t);return Yi(i,s+"/")||Yi(i,s+"\\")}function Vve(e,t,n,i){let s=$x(Iu(e)),o=$x(Iu(t)),c;for(c=0;c<s.length&&c<o.length;c++){let g=i(s[c]),m=i(o[c]);if(!(c===0?_0:n)(g,m))break}if(c===0)return o;let _=o.slice(c),u=[];for(;c<s.length;c++)u.push("..");return["",...u,..._]}function Zf(e,t,n){w.assert(Bd(e)>0==Bd(t)>0,"Paths must either both be absolute or both be relative");let o=Vve(e,t,(typeof n=="boolean"?n:!1)?_0:aS,typeof n=="function"?n:Do);return Ib(o)}function CP(e,t,n){return ff(e)?Hx(t,e,t,n,!1):e}function Cw(e,t,n){return KT(Zf(Yn(e),t,n))}function Hx(e,t,n,i,s){let o=Vve(d0(n,e),d0(n,t),aS,i),c=o[0];if(s&&ff(c)){let _=c.charAt(0)===Fo?"file://":"file:///";o[0]=_+c}return Ib(o)}function wP(e,t){for(;;){let n=t(e);if(n!==void 0)return n;let i=Yn(e);if(i===e)return;e=i}}function J8(e){return Jo(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 p={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."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:b(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),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 }'."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve:b(1293,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293","ESM 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."),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_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', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_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', '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_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', 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_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', '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_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', '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}'."),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}'."),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_with_module_0:b(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 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:b(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),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_nodenext_or_preserve:b(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'node18', '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_nodenext_or_preserve:b(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', '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_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', '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'."),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}'."),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'.")};function E_(e){return e>=80}function aee(e){return e===32||E_(e)}var G8={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,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},Gje=new Map(Object.entries(G8)),qve=new Map(Object.entries({...G8,"{":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})),$ve=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),Uje=new Map([[1,zl.RegularExpressionFlagsHasIndices],[16,zl.RegularExpressionFlagsDotAll],[32,zl.RegularExpressionFlagsUnicode],[64,zl.RegularExpressionFlagsUnicodeSets],[128,zl.RegularExpressionFlagsSticky]]),Vje=[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],qje=[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],$je=[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],Hje=[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],Qje=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,Kje=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,Xje=/@(?:see|link)/i;function hB(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 U8(e,t){return t>=2?hB(e,$je):hB(e,Vje)}function Yje(e,t){return t>=2?hB(e,Hje):hB(e,qje)}function Hve(e){let t=[];return e.forEach((n,i)=>{t[n]=i}),t}var Zje=Hve(qve);function sa(e){return Zje[e]}function XT(e){return qve.get(e)}var e9e=Hve($ve);function Qve(e){return e9e[e]}function yB(e){return $ve.get(e)}function Qx(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&&Lu(s)&&(t.push(i),i=n);break}}return t.push(i),t}function s6(e,t,n,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,n,i):V8(nh(e),t,n,e.text,i)}function V8(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?Yf(e,Qx(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 nh(e){return e.lineMap||(e.lineMap=Qx(e.text))}function ww(e,t){let n=IP(e,t);return{line:n,character:t-e[n]}}function IP(e,t,n){let i=o0(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 DP(e,t,n){if(t===n)return 0;let i=nh(e),s=Math.min(t,n),o=s===n,c=o?t:n,_=IP(i,s),u=IP(i,c,_);return o?_-u:u-_}function Qs(e,t){return ww(nh(e),t)}function ih(e){return Tm(e)||Lu(e)}function Tm(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 Lu(e){return e===10||e===13||e===8232||e===8233}function Iw(e){return e>=48&&e<=57}function oee(e){return Iw(e)||e>=65&&e<=70||e>=97&&e<=102}function cee(e){return e>=65&&e<=90||e>=97&&e<=122}function Kve(e){return cee(e)||Iw(e)||e===95}function lee(e){return e>=48&&e<=55}function uee(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(qd(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&&!Lu(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(PP(e,t)){t=a6(e,t),o=!1;continue}break;case 35:if(t===0&&Xve(e,t)){t=Yve(e,t),o=!1;continue}break;case 42:if(o){t++,o=!1;continue}break;default:if(c>127&&ih(c)){t++;continue}break}return t}}var vB=7;function PP(e,t){if(w.assert(t>=0),t===0||Lu(e.charCodeAt(t-1))){let n=e.charCodeAt(t);if(t+vB<e.length){for(let i=0;i<vB;i++)if(e.charCodeAt(t+i)!==n)return!1;return n===61||e.charCodeAt(t+vB)===32}}return!1}function a6(e,t,n){n&&n(p.Merge_conflict_marker_encountered,t,vB);let i=e.charCodeAt(t),s=e.length;if(i===60||i===62)for(;t<s&&!Lu(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&&PP(e,t))break;t++}return t}var _ee=/^#!.*/;function Xve(e,t){return w.assert(t===0),_ee.test(e)}function Yve(e,t){let n=_ee.exec(e)[0];return t=t+n.length,t}function bB(e,t,n,i,s,o,c){let _,u,g,m,h=!1,S=i,T=c;if(n===0){S=!0;let x=q8(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&&(m=!0);continue;case 9:case 11:case 12:case 32:n++;continue;case 47:let I=t.charCodeAt(n+1),D=!1;if(I===47||I===42){let E=I===47?2:3,O=n;if(n+=2,I===47)for(;n<t.length;){if(Lu(t.charCodeAt(n))){D=!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(_,u,g,m,o,T),!e&&T))return T;_=O,u=n,g=E,m=D,h=!0}continue}break e;default:if(x>127&&ih(x)){h&&Lu(x)&&(m=!0),n++;continue}break e}}return h&&(T=s(_,u,g,m,o,T)),T}function o6(e,t,n,i){return bB(!1,e,t,!1,n,i)}function c6(e,t,n,i){return bB(!1,e,t,!0,n,i)}function fee(e,t,n,i,s){return bB(!0,e,t,!1,n,i,s)}function pee(e,t,n,i,s){return bB(!0,e,t,!0,n,i,s)}function Zve(e,t,n,i,s,o=[]){return o.push({kind:n,pos:e,end:t,hasTrailingNewLine:i}),o}function sh(e,t){return fee(e,t,Zve,void 0,void 0)}function m0(e,t){return pee(e,t,Zve,void 0,void 0)}function q8(e){let t=_ee.exec(e);if(t)return t[0]}function bg(e,t){return cee(e)||e===36||e===95||e>127&&U8(e,t)}function ry(e,t,n){return Kve(e)||e===36||(n===1?e===45||e===58:!1)||e>127&&Yje(e,t)}function $_(e,t,n){let i=AP(e,0);if(!bg(i,t))return!1;for(let s=zd(i);s<e.length;s+=zd(i))if(!ry(i=AP(e,s),t,n))return!1;return!0}function ah(e,t,n=0,i,s,o,c){var _=i,u,g,m,h,S,T,x,I,D=0,E=0,O=0;Rs(_,o,c);var F={getTokenFullStart:()=>m,getStartPos:()=>m,getTokenEnd:()=>u,getTextPos:()=>u,getToken:()=>S,getTokenStart:()=>h,getTokenPos:()=>h,getTokenText:()=>_.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:Ce,reScanSlashToken:Ve,reScanTemplateToken:_t,reScanTemplateHeadOrNoSubstitutionTemplate:$t,scanJsxIdentifier:ns,scanJsxAttributeValue:Rn,reScanJsxAttributeValue:hn,reScanJsxToken:Hr,reScanLessThanToken:hi,reScanHashToken:_s,reScanQuestionToken:At,reScanInvalidIdentifier:ee,scanJsxToken:zn,scanJsDocToken:Ue,scanJSDocCommentTextToken:ui,scan:le,getText:Xn,clearCommentDirectives:Pi,setText:Rs,setScriptTarget:xr,setLanguageVariant:xs,setScriptKind:Ye,setJSDocParsingMode:Nt,setOnError:oa,resetTokenState:ae,setTextPos:ae,setSkipJsDocLeadingAsterisks:lt,tryScan:Zn,lookAhead:Zr,scanRange:sr};return w.isDebugging&&Object.defineProperty(F,"__debugShowCurrentPositionInText",{get:()=>{let Y=F.getText();return Y.slice(0,F.getTokenFullStart())+"\u2551"+Y.slice(F.getTokenFullStart())}}),F;function B(Y){return AP(_,Y)}function G(Y){return Y>=0&&Y<g?B(Y):-1}function $(Y){return _.charCodeAt(Y)}function K(Y){return Y>=0&&Y<g?$(Y):-1}function U(Y,Ae=u,Xe,st){if(s){let Dt=u;u=Ae,s(Y,Xe||0,st),u=Dt}}function me(){let Y=u,Ae=!1,Xe=!1,st="";for(;;){let Dt=$(u);if(Dt===95){x|=512,Ae?(Ae=!1,Xe=!0,st+=_.substring(Y,u)):(x|=16384,U(Xe?p.Multiple_consecutive_numeric_separators_are_not_permitted:p.Numeric_separators_are_not_allowed_here,u,1)),u++,Y=u;continue}if(Iw(Dt)){Ae=!0,Xe=!1,u++;continue}break}return $(u-1)===95&&(x|=16384,U(p.Numeric_separators_are_not_allowed_here,u-1,1)),st+_.substring(Y,u)}function te(){let Y=u,Ae;if($(u)===48)if(u++,$(u)===95)x|=16896,U(p.Numeric_separators_are_not_allowed_here,u,1),u--,Ae=me();else if(!ne())x|=8192,Ae=""+ +T;else if(!T)Ae="0";else{T=""+parseInt(T,8),x|=32;let St=S===41,vt=(St?"-":"")+"0o"+(+T).toString(8);return St&&Y--,U(p.Octal_literals_are_not_allowed_Use_the_syntax_0,Y,u-Y,vt),9}else Ae=me();let Xe,st;$(u)===46&&(u++,Xe=me());let Dt=u;if($(u)===69||$(u)===101){u++,x|=16,($(u)===43||$(u)===45)&&u++;let St=u,vt=me();vt?(st=_.substring(Dt,St)+vt,Dt=u):U(p.Digit_expected)}let Fe;if(x&512?(Fe=Ae,Xe&&(Fe+="."+Xe),st&&(Fe+=st)):Fe=_.substring(Y,Dt),x&8192)return U(p.Decimals_with_leading_zeros_are_not_allowed,Y,Dt-Y),T=""+ +Fe,9;if(Xe!==void 0||x&16)return V(Y,Xe===void 0&&!!(x&16)),T=""+ +Fe,9;{T=Fe;let St=ct();return V(Y),St}}function V(Y,Ae){if(!bg(B(u),e))return;let Xe=u,{length:st}=xe();st===1&&_[Xe]==="n"?U(Ae?p.A_bigint_literal_cannot_use_exponential_notation:p.A_bigint_literal_must_be_an_integer,Y,Xe-Y+1):(U(p.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,Xe,st),u=Xe)}function ne(){let Y=u,Ae=!0;for(;Iw(K(u));)lee($(u))||(Ae=!1),u++;return T=_.substring(Y,u),Ae}function ie(Y,Ae){let Xe=de(Y,!1,Ae);return Xe?parseInt(Xe,16):-1}function oe(Y,Ae){return de(Y,!0,Ae)}function de(Y,Ae,Xe){let st=[],Dt=!1,Fe=!1;for(;st.length<Y||Ae;){let St=$(u);if(Xe&&St===95){x|=512,Dt?(Dt=!1,Fe=!0):U(Fe?p.Multiple_consecutive_numeric_separators_are_not_permitted:p.Numeric_separators_are_not_allowed_here,u,1),u++;continue}if(Dt=Xe,St>=65&&St<=70)St+=32;else if(!(St>=48&&St<=57||St>=97&&St<=102))break;st.push(St),u++,Fe=!1}return st.length<Y&&(st=[]),$(u-1)===95&&U(p.Numeric_separators_are_not_allowed_here,u-1,1),String.fromCharCode(...st)}function ye(Y=!1){let Ae=$(u);u++;let Xe="",st=u;for(;;){if(u>=g){Xe+=_.substring(st,u),x|=4,U(p.Unterminated_string_literal);break}let Dt=$(u);if(Dt===Ae){Xe+=_.substring(st,u),u++;break}if(Dt===92&&!Y){Xe+=_.substring(st,u),Xe+=ve(3),st=u;continue}if((Dt===10||Dt===13)&&!Y){Xe+=_.substring(st,u),x|=4,U(p.Unterminated_string_literal);break}u++}return Xe}function H(Y){let Ae=$(u)===96;u++;let Xe=u,st="",Dt;for(;;){if(u>=g){st+=_.substring(Xe,u),x|=4,U(p.Unterminated_template_literal),Dt=Ae?15:18;break}let Fe=$(u);if(Fe===96){st+=_.substring(Xe,u),u++,Dt=Ae?15:18;break}if(Fe===36&&u+1<g&&$(u+1)===123){st+=_.substring(Xe,u),u+=2,Dt=Ae?16:17;break}if(Fe===92){st+=_.substring(Xe,u),st+=ve(1|(Y?2:0)),Xe=u;continue}if(Fe===13){st+=_.substring(Xe,u),u++,u<g&&$(u)===10&&u++,st+=`
`,Xe=u;continue}u++}return w.assert(Dt!==void 0),T=st,Dt}function ve(Y){let Ae=u;if(u++,u>=g)return U(p.Unexpected_end_of_text),"";let Xe=$(u);switch(u++,Xe){case 48:if(u>=g||!Iw($(u)))return"\0";case 49:case 50:case 51:u<g&&lee($(u))&&u++;case 52:case 53:case 54:case 55:if(u<g&&lee($(u))&&u++,x|=2048,Y&6){let Fe=parseInt(_.substring(Ae+1,u),8);return Y&4&&!(Y&32)&&Xe!==48?U(p.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,Ae,u-Ae,"\\x"+Fe.toString(16).padStart(2,"0")):U(p.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0,Ae,u-Ae,"\\x"+Fe.toString(16).padStart(2,"0")),String.fromCharCode(Fe)}return _.substring(Ae,u);case 56:case 57:return x|=2048,Y&6?(Y&4&&!(Y&32)?U(p.Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class,Ae,u-Ae):U(p.Escape_sequence_0_is_not_allowed,Ae,u-Ae,_.substring(Ae,u)),String.fromCharCode(Xe)):_.substring(Ae,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 Fe=Ge(!!(Y&6));return Y&17||(x|=2048,Y&6&&U(p.Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set,Ae,u-Ae)),Fe}for(;u<Ae+6;u++)if(!(u<g&&oee($(u))))return x|=2048,Y&6&&U(p.Hexadecimal_digit_expected),_.substring(Ae,u);x|=1024;let st=parseInt(_.substring(Ae+2,u),16),Dt=String.fromCharCode(st);if(Y&16&&st>=55296&&st<=56319&&u+6<g&&_.substring(u,u+2)==="\\u"&&$(u+2)!==123){let Fe=u,St=u+2;for(;St<Fe+6;St++)if(!oee($(St)))return Dt;let vt=parseInt(_.substring(Fe+2,St),16);if(vt>=56320&&vt<=57343)return u=St,Dt+String.fromCharCode(vt)}return Dt;case 120:for(;u<Ae+4;u++)if(!(u<g&&oee($(u))))return x|=2048,Y&6&&U(p.Hexadecimal_digit_expected),_.substring(Ae,u);return x|=4096,String.fromCharCode(parseInt(_.substring(Ae+2,u),16));case 13:u<g&&$(u)===10&&u++;case 10:case 8232:case 8233:return"";default:return(Y&16||Y&4&&!(Y&8)&&ry(Xe,e))&&U(p.This_character_cannot_be_escaped_in_a_regular_expression,u-2,2),String.fromCharCode(Xe)}}function Ge(Y){let Ae=u;u+=3;let Xe=u,st=oe(1,!1),Dt=st?parseInt(st,16):-1,Fe=!1;return Dt<0?(Y&&U(p.Hexadecimal_digit_expected),Fe=!0):Dt>1114111&&(Y&&U(p.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,Xe,u-Xe),Fe=!0),u>=g?(Y&&U(p.Unexpected_end_of_text),Fe=!0):$(u)===125?u++:(Y&&U(p.Unterminated_Unicode_escape_sequence),Fe=!0),Fe?(x|=2048,_.substring(Ae,u)):(x|=8,EP(Dt))}function De(){if(u+5<g&&$(u+1)===117){let Y=u;u+=2;let Ae=ie(4,!1);return u=Y,Ae}return-1}function se(){if(B(u+1)===117&&B(u+2)===123){let Y=u;u+=3;let Ae=oe(1,!1),Xe=Ae?parseInt(Ae,16):-1;return u=Y,Xe}return-1}function xe(){let Y="",Ae=u;for(;u<g;){let Xe=B(u);if(ry(Xe,e))u+=zd(Xe);else if(Xe===92){if(Xe=se(),Xe>=0&&ry(Xe,e)){Y+=Ge(!0),Ae=u;continue}if(Xe=De(),!(Xe>=0&&ry(Xe,e)))break;x|=1024,Y+=_.substring(Ae,u),Y+=EP(Xe),u+=6,Ae=u}else break}return Y+=_.substring(Ae,u),Y}function _e(){let Y=T.length;if(Y>=2&&Y<=12){let Ae=T.charCodeAt(0);if(Ae>=97&&Ae<=122){let Xe=Gje.get(T);if(Xe!==void 0)return S=Xe}}return S=80}function tt(Y){let Ae="",Xe=!1,st=!1;for(;;){let Dt=$(u);if(Dt===95){x|=512,Xe?(Xe=!1,st=!0):U(st?p.Multiple_consecutive_numeric_separators_are_not_permitted:p.Numeric_separators_are_not_allowed_here,u,1),u++;continue}if(Xe=!0,!Iw(Dt)||Dt-48>=Y)break;Ae+=_[u],u++,st=!1}return $(u-1)===95&&U(p.Numeric_separators_are_not_allowed_here,u-1,1),Ae}function ct(){return $(u)===110?(T+="n",x&384&&(T=wA(T)+"n"),u++,10):(T=""+(x&128?parseInt(T.slice(2),2):x&256?parseInt(T.slice(2),8):+T),9)}function le(){for(m=u,x=0;;){if(h=u,u>=g)return S=1;let Y=B(u);if(u===0&&Y===35&&Xve(_,u)){if(u=Yve(_,u),t)continue;return S=6}switch(Y){case 10:case 13:if(x|=1,t){u++;continue}else return Y===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&&Tm($(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=ye(),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++,D&&(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))?(te(),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&&!Lu($(u));)u++;if(I=ur(I,_.slice(h,u),Qje,h),t)continue;return S=2}if($(u+1)===42){u+=2;let St=$(u)===42&&$(u+1)!==47,vt=!1,Mt=h;for(;u<g;){let Ke=$(u);if(Ke===42&&$(u+1)===47){u+=2,vt=!0;break}u++,Lu(Ke)&&(Mt=u,x|=1)}if(St&&Je()&&(x|=2),I=ur(I,_.slice(Mt,u),Kje,Mt),vt||U(p.Asterisk_Slash_expected),t)continue;return vt||(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=oe(1,!0),T||(U(p.Hexadecimal_digit_expected),T="0"),T="0x"+T,x|=64,S=ct();if(u+2<g&&($(u+1)===66||$(u+1)===98))return u+=2,T=tt(2),T||(U(p.Binary_digit_expected),T="0"),T="0b"+T,x|=128,S=ct();if(u+2<g&&($(u+1)===79||$(u+1)===111))return u+=2,T=tt(8),T||(U(p.Octal_digit_expected),T="0"),T="0o"+T,x|=256,S=ct();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return S=te();case 58:return u++,S=59;case 59:return u++,S=27;case 60:if(PP(_,u)){if(u=a6(_,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(PP(_,u)){if(u=a6(_,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(PP(_,u)){if(u=a6(_,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(PP(_,u)){if(u=a6(_,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 Ae=se();if(Ae>=0&&bg(Ae,e))return T=Ge(!0)+xe(),S=_e();let Xe=De();return Xe>=0&&bg(Xe,e)?(u+=6,x|=1024,T=String.fromCharCode(Xe)+xe(),S=_e()):(U(p.Invalid_character),u++,S=0);case 35:if(u!==0&&_[u+1]==="!")return U(p.can_only_be_used_at_the_start_of_a_file,u,2),u++,S=0;let st=B(u+1);if(st===92){u++;let St=se();if(St>=0&&bg(St,e))return T="#"+Ge(!0)+xe(),S=81;let vt=De();if(vt>=0&&bg(vt,e))return u+=6,x|=1024,T="#"+String.fromCharCode(vt)+xe(),S=81;u--}return bg(st,e)?(u++,Ne(st,e)):(T="#",U(p.Invalid_character,u++,zd(Y))),S=81;case 65533:return U(p.File_appears_to_be_binary,0,0),u=g,S=8;default:let Dt=Ne(Y,e);if(Dt)return S=Dt;if(Tm(Y)){u+=zd(Y);continue}else if(Lu(Y)){x|=1,u+=zd(Y);continue}let Fe=zd(Y);return U(p.Invalid_character,u,Fe),u+=Fe,S=0}}}function Je(){switch(O){case 0:return!0;case 1:return!1}return E!==3&&E!==4?!0:O===3?!1:Xje.test(_.slice(m,u))}function ee(){w.assert(S===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),u=h=m,x=0;let Y=B(u),Ae=Ne(Y,99);return Ae?S=Ae:(u+=zd(Y),S)}function Ne(Y,Ae){let Xe=Y;if(bg(Xe,Ae)){for(u+=zd(Xe);u<g&&ry(Xe=B(u),Ae);)u+=zd(Xe);return T=_.substring(h,u),Xe===92&&(T+=xe()),_e()}}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 Ce(){return w.assert(S===67,"'reScanAsteriskEqualsToken' should only be called on a '*='"),u=h+1,S=64}function Ve(Y){if(S===44||S===69){let Ae=h+1;u=Ae;let Xe=!1,st=!1,Dt=!1;for(;;){let St=K(u);if(St===-1||Lu(St)){x|=4;break}if(Xe)Xe=!1;else{if(St===47&&!Dt)break;St===91?Dt=!0:St===92?Xe=!0:St===93?Dt=!1:!Dt&&St===40&&K(u+1)===63&&K(u+2)===60&&K(u+3)!==61&&K(u+3)!==33&&(st=!0)}u++}let Fe=u;if(x&4){u=Ae,Xe=!1;let St=0,vt=!1,Mt=0;for(;u<Fe;){let Ke=$(u);if(Xe)Xe=!1;else if(Ke===92)Xe=!0;else if(Ke===91)St++;else if(Ke===93&&St)St--;else if(!St){if(Ke===123)vt=!0;else if(Ke===125&&vt)vt=!1;else if(!vt){if(Ke===40)Mt++;else if(Ke===41&&Mt)Mt--;else if(Ke===41||Ke===93||Ke===125)break}}u++}for(;ih(K(u-1))||K(u-1)===59;)u--;U(p.Unterminated_regular_expression_literal,h,u-h)}else{u++;let St=0;for(;;){let vt=G(u);if(vt===-1||!ry(vt,e))break;let Mt=zd(vt);if(Y){let Ke=yB(vt);Ke===void 0?U(p.Unknown_regular_expression_flag,u,Mt):St&Ke?U(p.Duplicate_regular_expression_flag,u,Mt):((St|Ke)&96)===96?U(p.The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously,u,Mt):(St|=Ke,zt(Ke,Mt))}u+=Mt}Y&&sr(Ae,Fe-Ae,()=>{bt(St,!0,st)})}T=_.substring(h,u),S=14}return S}function bt(Y,Ae,Xe){var st=!!(Y&64),Dt=!!(Y&96),Fe=Dt||!Ae,St=!1,vt=0,Mt,Ke,Vt,on=[],Pe;function kt(Gt){for(;;){if(on.push(Pe),Pe=void 0,pe(Gt),Pe=on.pop(),K(u)!==124)return;u++}}function pe(Gt){let dr=!1;for(;;){let Sr=u,kr=K(u);switch(kr){case-1:return;case 94:case 36:u++,dr=!1;break;case 92:switch(u++,K(u)){case 98:case 66:u++,dr=!1;break;default:Re(),dr=!0;break}break;case 40:if(u++,K(u)===63)switch(u++,K(u)){case 61:case 33:u++,dr=!Fe;break;case 60:let zs=u;switch(u++,K(u)){case 61:case 33:u++,dr=!1;break;default:jt(!1),ar(62),e<5&&U(p.Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later,zs,u-zs),vt++,dr=!0;break}break;default:let ta=u,Os=j(0);K(u)===45&&(u++,j(Os),u===ta+1&&U(p.Subpattern_flags_must_be_present_when_there_is_a_minus_sign,ta,u-ta)),ar(58),dr=!0;break}else vt++,dr=!0;kt(!0),ar(41);break;case 123:u++;let tr=u;ne();let si=T;if(!Fe&&!si){dr=!0;break}if(K(u)===44){u++,ne();let zs=T;if(si)zs&&Number.parseInt(si)>Number.parseInt(zs)&&(Fe||K(u)===125)&&U(p.Numbers_out_of_order_in_quantifier,tr,u-tr);else if(zs||K(u)===125)U(p.Incomplete_quantifier_Digit_expected,tr,0);else{U(p.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,Sr,1,String.fromCharCode(kr)),dr=!0;break}}else if(!si){Fe&&U(p.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,Sr,1,String.fromCharCode(kr)),dr=!0;break}if(K(u)!==125)if(Fe)U(p._0_expected,u,0,"}"),u--;else{dr=!0;break}case 42:case 43:case 63:u++,K(u)===63&&u++,dr||U(p.There_is_nothing_available_for_repetition,Sr,u-Sr),dr=!1;break;case 46:u++,dr=!0;break;case 91:u++,st?Qt():ut(),ar(93),dr=!0;break;case 41:if(Gt)return;case 93:case 125:(Fe||kr===41)&&U(p.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,u,1,String.fromCharCode(kr)),u++,dr=!0;break;case 47:case 124:return;default:vr(),dr=!0;break}}}function j(Gt){for(;;){let dr=G(u);if(dr===-1||!ry(dr,e))break;let Sr=zd(dr),kr=yB(dr);kr===void 0?U(p.Unknown_regular_expression_flag,u,Sr):Gt&kr?U(p.Duplicate_regular_expression_flag,u,Sr):kr&28?(Gt|=kr,zt(kr,Sr)):U(p.This_regular_expression_flag_cannot_be_toggled_within_a_subpattern,u,Sr),u+=Sr}return Gt}function Re(){switch(w.assertEqual($(u-1),92),K(u)){case 107:u++,K(u)===60?(u++,jt(!0),ar(62)):(Fe||Xe)&&U(p.k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets,u-2,2);break;case 113:if(st){u++,U(p.q_is_only_available_inside_character_class,u-2,2);break}default:w.assert(Ut()||q()||yt(!0));break}}function q(){w.assertEqual($(u-1),92);let Gt=K(u);if(Gt>=49&&Gt<=57){let dr=u;return ne(),Vt=jr(Vt,{pos:dr,end:u,value:+T}),!0}return!1}function yt(Gt){w.assertEqual($(u-1),92);let dr=K(u);switch(dr){case-1:return U(p.Undetermined_character_escape,u-1,1),"\\";case 99:if(u++,dr=K(u),cee(dr))return u++,String.fromCharCode(dr&31);if(Fe)U(p.c_must_be_followed_by_an_ASCII_letter,u-2,2);else if(Gt)return u--,"\\";return String.fromCharCode(dr);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(dr);default:return u--,ve(4|(Ae?8:0)|(Dt?16:0)|(Gt?32:0))}}function jt(Gt){w.assertEqual($(u-1),60),h=u,Ne(G(u),e),u===h?U(p.Expected_a_capturing_group_name):Gt?Ke=jr(Ke,{pos:h,end:u,name:T}):Pe?.has(T)||on.some(dr=>dr?.has(T))?U(p.Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other,h,u-h):(Pe??(Pe=new Set),Pe.add(T),Mt??(Mt=new Set),Mt.add(T))}function we(Gt){return Gt===93||Gt===-1||u>=g}function ut(){for(w.assertEqual($(u-1),91),K(u)===94&&u++;;){let Gt=K(u);if(we(Gt))return;let dr=u,Sr=Tt();if(K(u)===45){u++;let kr=K(u);if(we(kr))return;!Sr&&Fe&&U(p.A_character_class_range_must_not_be_bounded_by_another_character_class,dr,u-1-dr);let tr=u,si=Tt();if(!si&&Fe){U(p.A_character_class_range_must_not_be_bounded_by_another_character_class,tr,u-tr);continue}if(!Sr)continue;let zs=AP(Sr,0),ta=AP(si,0);Sr.length===zd(zs)&&si.length===zd(ta)&&zs>ta&&U(p.Range_out_of_order_in_character_class,dr,u-dr)}}}function Qt(){w.assertEqual($(u-1),91);let Gt=!1;K(u)===94&&(u++,Gt=!0);let dr=!1,Sr=K(u);if(we(Sr))return;let kr=u,tr;switch(_.slice(u,u+2)){case"--":case"&&":U(p.Expected_a_class_set_operand),St=!1;break;default:tr=Pr();break}switch(K(u)){case 45:if(K(u+1)===45){Gt&&St&&U(p.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,kr,u-kr),dr=St,en(3),St=!Gt&&dr;return}break;case 38:if(K(u+1)===38){en(2),Gt&&St&&U(p.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,kr,u-kr),dr=St,St=!Gt&&dr;return}else U(p.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,u,1,String.fromCharCode(Sr));break;default:Gt&&St&&U(p.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,kr,u-kr),dr=St;break}for(;Sr=K(u),Sr!==-1;){switch(Sr){case 45:if(u++,Sr=K(u),we(Sr)){St=!Gt&&dr;return}if(Sr===45){u++,U(p.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,u-2,2),kr=u-2,tr=_.slice(kr,u);continue}else{tr||U(p.A_character_class_range_must_not_be_bounded_by_another_character_class,kr,u-1-kr);let si=u,zs=Pr();if(Gt&&St&&U(p.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,si,u-si),dr||(dr=St),!zs){U(p.A_character_class_range_must_not_be_bounded_by_another_character_class,si,u-si);break}if(!tr)break;let ta=AP(tr,0),Os=AP(zs,0);tr.length===zd(ta)&&zs.length===zd(Os)&&ta>Os&&U(p.Range_out_of_order_in_character_class,kr,u-kr)}break;case 38:kr=u,u++,K(u)===38?(u++,U(p.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,u-2,2),K(u)===38&&(U(p.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,u,1,String.fromCharCode(Sr)),u++)):U(p.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,u-1,1,String.fromCharCode(Sr)),tr=_.slice(kr,u);continue}if(we(K(u)))break;switch(kr=u,_.slice(u,u+2)){case"--":case"&&":U(p.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,u,2),u+=2,tr=_.slice(kr,u);break;default:tr=Pr();break}}St=!Gt&&dr}function en(Gt){let dr=St;for(;;){let Sr=K(u);if(we(Sr))break;switch(Sr){case 45:u++,K(u)===45?(u++,Gt!==3&&U(p.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,u-2,2)):U(p.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,u-1,1);break;case 38:u++,K(u)===38?(u++,Gt!==2&&U(p.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,u-2,2),K(u)===38&&(U(p.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,u,1,String.fromCharCode(Sr)),u++)):U(p.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,u-1,1,String.fromCharCode(Sr));break;default:switch(Gt){case 3:U(p._0_expected,u,0,"--");break;case 2:U(p._0_expected,u,0,"&&");break;default:break}break}if(Sr=K(u),we(Sr)){U(p.Expected_a_class_set_operand);break}Pr(),dr&&(dr=St)}St=dr}function Pr(){switch(St=!1,K(u)){case-1:return"";case 91:return u++,Qt(),ar(93),"";case 92:if(u++,Ut())return"";if(K(u)===113)return u++,K(u)===123?(u++,$r(),ar(125),""):(U(p.q_must_be_followed_by_string_alternatives_enclosed_in_braces,u-2,2),"q");u--;default:return it()}}function $r(){w.assertEqual($(u-1),123);let Gt=0;for(;;)switch(K(u)){case-1:return;case 125:Gt!==1&&(St=!0);return;case 124:Gt!==1&&(St=!0),u++,o=u,Gt=0;break;default:it(),Gt++;break}}function it(){let Gt=K(u);if(Gt===-1)return"";if(Gt===92){u++;let dr=K(u);switch(dr){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(dr);default:return yt(!1)}}else if(Gt===K(u+1))switch(Gt){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(p.A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash,u,2),u+=2,_.substring(u-2,u)}switch(Gt){case 47:case 40:case 41:case 91:case 93:case 123:case 125:case 45:case 124:return U(p.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,u,1,String.fromCharCode(Gt)),u++,String.fromCharCode(Gt)}return vr()}function Tt(){if(K(u)===92){u++;let Gt=K(u);switch(Gt){case 98:return u++,"\b";case 45:return u++,String.fromCharCode(Gt);default:return Ut()?"":yt(!1)}}else return vr()}function Ut(){w.assertEqual($(u-1),92);let Gt=!1,dr=u-1,Sr=K(u);switch(Sr){case 100:case 68:case 115:case 83:case 119:case 87:return u++,!0;case 80:Gt=!0;case 112:if(u++,K(u)===123){u++;let kr=u,tr=Ot();if(K(u)===61){let si=e0e.get(tr);if(u===kr)U(p.Expected_a_Unicode_property_name);else if(si===void 0){U(p.Unknown_Unicode_property_name,kr,u-kr);let Os=oS(tr,e0e.keys(),Do);Os&&U(p.Did_you_mean_0,kr,u-kr,Os)}u++;let zs=u,ta=Ot();if(u===zs)U(p.Expected_a_Unicode_property_value);else if(si!==void 0&&!l6[si].has(ta)){U(p.Unknown_Unicode_property_value,zs,u-zs);let Os=oS(ta,l6[si],Do);Os&&U(p.Did_you_mean_0,zs,u-zs,Os)}}else if(u===kr)U(p.Expected_a_Unicode_property_name_or_value);else if(r0e.has(tr))st?Gt?U(p.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,kr,u-kr):St=!0:U(p.Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set,kr,u-kr);else if(!l6.General_Category.has(tr)&&!t0e.has(tr)){U(p.Unknown_Unicode_property_name_or_value,kr,u-kr);let si=oS(tr,[...l6.General_Category,...t0e,...r0e],Do);si&&U(p.Did_you_mean_0,kr,u-kr,si)}ar(125),Dt||U(p.Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set,dr,u-dr)}else if(Fe)U(p._0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces,u-2,2,String.fromCharCode(Sr));else return u--,!1;return!0}return!1}function Ot(){let Gt="";for(;;){let dr=K(u);if(dr===-1||!Kve(dr))break;Gt+=String.fromCharCode(dr),u++}return Gt}function vr(){let Gt=Dt?zd(G(u)):1;return u+=Gt,Gt>0?_.substring(u-Gt,u):""}function ar(Gt){K(u)===Gt?u++:U(p._0_expected,u,0,String.fromCharCode(Gt))}kt(!1),or(Ke,Gt=>{if(!Mt?.has(Gt.name)&&(U(p.There_is_no_capturing_group_named_0_in_this_regular_expression,Gt.pos,Gt.end-Gt.pos,Gt.name),Mt)){let dr=oS(Gt.name,Mt,Do);dr&&U(p.Did_you_mean_0,Gt.pos,Gt.end-Gt.pos,dr)}}),or(Vt,Gt=>{Gt.value>vt&&(vt?U(p.This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression,Gt.pos,Gt.end-Gt.pos,vt):U(p.This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression,Gt.pos,Gt.end-Gt.pos))})}function zt(Y,Ae){let Xe=Uje.get(Y);Xe&&e<Xe&&U(p.This_regular_expression_flag_is_only_available_when_targeting_0_or_later,u,Ae,kO(Xe))}function ur(Y,Ae,Xe,st){let Dt=Or(Ae.trimStart(),Xe);return Dt===void 0?Y:jr(Y,{range:{pos:st,end:u},type:Dt})}function Or(Y,Ae){let Xe=Ae.exec(Y);if(Xe)switch(Xe[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}}function _t(Y){return u=h,S=H(!Y)}function $t(){return u=h,S=H(!0)}function Hr(Y=!0){return u=h=m,S=zn(Y)}function hi(){return S===48?(u=h+1,S=30):S}function _s(){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 zn(Y=!0){if(m=h=u,u>=g)return S=1;let Ae=$(u);if(Ae===60)return $(u+1)===47?(u+=2,S=31):(u++,S=30);if(Ae===123)return u++,S=19;let Xe=0;for(;u<g&&(Ae=$(u),Ae!==123);){if(Ae===60){if(PP(_,u))return u=a6(_,u,U),S=7;break}if(Ae===62&&U(p.Unexpected_token_Did_you_mean_or_gt,u,1),Ae===125&&U(p.Unexpected_token_Did_you_mean_or_rbrace,u,1),Lu(Ae)&&Xe===0)Xe=-1;else{if(!Y&&Lu(Ae)&&Xe>0)break;ih(Ae)||(Xe=u)}u++}return T=_.substring(m,u),Xe===-1?13:12}function ns(){if(E_(S)){for(;u<g;){if($(u)===45){T+="-",u++;continue}let Ae=u;if(T+=xe(),u===Ae)break}return _e()}return S}function Rn(){switch(m=u,$(u)){case 34:case 39:return T=ye(!0),S=11;default:return le()}}function hn(){return u=h=m,Rn()}function ui(Y){if(m=h=u,x=0,u>=g)return S=1;for(let Ae=$(u);u<g&&!Lu(Ae)&&Ae!==96;Ae=B(++u))if(!Y){if(Ae===123)break;if(Ae===64&&u-1>=0&&Tm($(u-1))&&!(u+1<g&&ih($(u+1))))break}return u===h?Ue():(T=_.substring(h,u),S=82)}function Ue(){if(m=h=u,x=0,u>=g)return S=1;let Y=B(u);switch(u+=zd(Y),Y){case 9:case 11:case 12:case 32:for(;u<g&&Tm($(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 Ae=se();if(Ae>=0&&bg(Ae,e))return T=Ge(!0)+xe(),S=_e();let Xe=De();return Xe>=0&&bg(Xe,e)?(u+=6,x|=1024,T=String.fromCharCode(Xe)+xe(),S=_e()):(u++,S=0)}if(bg(Y,e)){let Ae=Y;for(;u<g&&ry(Ae=B(u),e)||Ae===45;)u+=zd(Ae);return T=_.substring(h,u),Ae===92&&(T+=xe()),S=_e()}else return S=0}function ht(Y,Ae){let Xe=u,st=m,Dt=h,Fe=S,St=T,vt=x,Mt=Y();return(!Mt||Ae)&&(u=Xe,m=st,h=Dt,S=Fe,T=St,x=vt),Mt}function sr(Y,Ae,Xe){let st=g,Dt=u,Fe=m,St=h,vt=S,Mt=T,Ke=x,Vt=I;Rs(_,Y,Ae);let on=Xe();return g=st,u=Dt,m=Fe,h=St,S=vt,T=Mt,x=Ke,I=Vt,on}function Zr(Y){return ht(Y,!0)}function Zn(Y){return ht(Y,!1)}function Xn(){return _}function Pi(){I=void 0}function Rs(Y,Ae,Xe){_=Y||"",g=Xe===void 0?_.length:Ae+Xe,ae(Ae||0)}function oa(Y){s=Y}function xr(Y){e=Y}function xs(Y){n=Y}function Ye(Y){E=Y}function Nt(Y){O=Y}function ae(Y){w.assert(Y>=0),u=Y,m=Y,h=Y,S=0,T=void 0,x=0}function lt(Y){D+=Y?1:-1}}function AP(e,t){return e.codePointAt(t)}function zd(e){return e>=65536?2:e===-1?0:1}function t9e(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 r9e=String.fromCodePoint?e=>String.fromCodePoint(e):t9e;function EP(e){return r9e(e)}var e0e=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),t0e=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"]),r0e=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"]),l6={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};l6.Script_Extensions=l6.Script;function Jl(e){return Of(e)||ff(e)}function Dw(e){return dP(e,yA,bO)}var dee=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 u6(e){let t=wa(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 dee.get(t);default:return"lib.d.ts"}}function mc(e){return e.start+e.length}function mee(e){return e.length===0}function SB(e,t){return t>=e.start&&t<mc(e)}function _6(e,t){return t>=e.pos&&t<=e.end}function gee(e,t){return t.start>=e.start&&mc(t)<=mc(e)}function TB(e,t){return t.pos>=e.start&&t.end<=mc(e)}function hee(e,t){return t.start>=e.pos&&mc(t)<=e.end}function n0e(e,t){return yee(e,t)!==void 0}function yee(e,t){let n=Tee(e,t);return n&&n.length===0?void 0:n}function vee(e,t){return p6(e.start,e.length,t.start,t.length)}function f6(e,t,n){return p6(e.start,e.length,t,n)}function p6(e,t,n,i){let s=e+t,o=n+i;return n<=s&&o>=e}function bee(e,t){return t<=mc(e)&&t>=e.start}function See(e,t){return f6(t,e.pos,e.end-e.pos)}function Tee(e,t){let n=Math.max(e.start,t.start),i=Math.min(mc(e),mc(t));return n<=i?Uc(n,i):void 0}function kB(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&&vee(i,e[s]);){let o=Math.min(i.start,e[s].start),c=Math.max(mc(i),mc(e[s]));i=Uc(o,c),s++}n=s,t.push(i)}return t}function pu(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function Uc(e,t){return pu(e,t-e)}function NP(e){return pu(e.span.start,e.newLength)}function kee(e){return mee(e.span)&&e.newLength===0}function d6(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}var $8=d6(pu(0,0),0);function xee(e){if(e.length===0)return $8;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],_=n,u=i,g=s,m=c.span.start,h=mc(c.span),S=m+c.newLength;n=Math.min(_,m),i=Math.max(u,u+(h-g)),s=Math.max(S,S+(g-h))}return d6(Uc(n,i),s-n)}function i0e(e){if(e&&e.kind===168){for(let t=e;t;t=t.parent)if(Ns(t)||ii(t)||t.kind===264)return t}}function pf(e,t){return Bi(e)&&ei(e,31)&&t.kind===176}function Cee(e){return Ws(e)?Oi(e.elements,wee):!1}function wee(e){return Fl(e)?!0:Cee(e.name)}function Kx(e){let t=e.parent;for(;Da(t.parent);)t=t.parent.parent;return t.parent}function Iee(e,t){Da(e)&&(e=Kx(e));let n=t(e);return e.kind===260&&(e=e.parent),e&&e.kind===261&&(n|=t(e),e=e.parent),e&&e.kind===243&&(n|=t(e)),n}function Db(e){return Iee(e,r_)}function xB(e){return Iee(e,xre)}function ny(e){return Iee(e,n9e)}function n9e(e){return e.flags}var Dee=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"];function CB(e,t,n){let i=e.toLowerCase(),s=/^([a-z]+)(?:[_-]([a-z]+))?$/.exec(i);if(!s){n&&n.push(cc(p.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];Ts(Dee,i)&&!_(o,c,n)&&_(o,void 0,n),FY(e);function _(u,g,m){let h=na(t.getExecutingFilePath()),S=Yn(h),T=Bn(S,u);if(g&&(T=T+"-"+g),T=t.resolvePath(Bn(T,"diagnosticMessages.generated.json")),!t.fileExists(T))return!1;let x="";try{x=t.readFile(T)}catch{return m&&m.push(cc(p.Unable_to_open_file_0,T)),!1}try{Gre(JSON.parse(x))}catch{return m&&m.push(cc(p.Corrupted_locale_file_0,T)),!1}return!0}}function ic(e,t){if(e)for(;e.original!==void 0;)e=e.original;return!e||!t||t(e)?e:void 0}function gr(e,t){for(;e;){let n=t(e);if(n==="quit")return;if(n)return e;e=e.parent}}function MP(e){return(e.flags&16)===0}function Cs(e,t){if(e===void 0||MP(e))return e;for(e=e.original;e;){if(MP(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 Li(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 Ln(e){return Li(e.escapedText)}function YT(e){let t=XT(e.escapedText);return t?Vn(t,F_):void 0}function Oc(e){return e.valueDeclaration&&Zu(e.valueDeclaration)?Ln(e.valueDeclaration.name):Li(e.escapedName)}function s0e(e){let t=e.parent.parent;if(t){if(Ul(t))return wB(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return wB(t.declarationList.declarations[0]);break;case 244:let n=t.expression;switch(n.kind===226&&n.operatorToken.kind===64&&(n=n.left),n.kind){case 211:return n.name;case 212:let i=n.argumentExpression;if(je(i))return i}break;case 217:return wB(t.expression);case 256:{if(Ul(t.statement)||gt(t.statement))return wB(t.statement);break}}}}function wB(e){let t=vs(e);return t&&je(t)?t:void 0}function m6(e,t){return!!(Gl(e)&&je(e.name)&&Ln(e.name)===Ln(t)||Lc(e)&&pt(e.declarationList.declarations,n=>m6(n,t)))}function Pee(e){return e.name||s0e(e)}function Gl(e){return!!e.name}function H8(e){switch(e.kind){case 80:return e;case 348:case 341:{let{name:n}=e;if(n.kind===166)return n.right;break}case 213:case 226:{let n=e;switch(Vc(n)){case 1:case 4:case 5:case 3:return UF(n.left);case 7:case 8:case 9:return n.arguments[1];default:return}}case 346:return Pee(e);case 340:return s0e(e);case 277:{let{expression:n}=e;return je(n)?n:void 0}case 212:let t=e;if(GF(t))return t.argumentExpression}return e.name}function vs(e){if(e!==void 0)return H8(e)||(Ao(e)||Lo(e)||ml(e)?Q8(e):void 0)}function Q8(e){if(e.parent){if(hl(e.parent)||Da(e.parent))return e.parent.name;if(vn(e.parent)&&e===e.parent.right){if(je(e.parent.left))return e.parent.left;if(Oo(e.parent.left))return UF(e.parent.left)}else if(oi(e.parent)&&je(e.parent.name))return e.parent.name}else return}function g0(e){if(rp(e))return An(e.modifiers,Rl)}function cS(e){if(ei(e,98303))return An(e.modifiers,la)}function a0e(e,t){if(e.name)if(je(e.name)){let n=e.name.escapedText;return X8(e.parent,t).filter(i=>ip(i)&&je(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=X8(e.parent,t).filter(ip);if(n<i.length)return[i[n]]}return qe}function Pw(e){return a0e(e,!1)}function Aee(e){return a0e(e,!0)}function o0e(e,t){let n=e.name.escapedText;return X8(e.parent,t).filter(i=>ad(i)&&i.typeParameters.some(s=>s.name.escapedText===n))}function Eee(e){return o0e(e,!1)}function Nee(e){return o0e(e,!0)}function Mee(e){return!!Yp(e,ip)}function Ree(e){return Yp(e,U2)}function Fee(e){return Y8(e,d7)}function IB(e){return Yp(e,yie)}function c0e(e){return Yp(e,pG)}function Oee(e){return Yp(e,pG,!0)}function l0e(e){return Yp(e,dG)}function Lee(e){return Yp(e,dG,!0)}function u0e(e){return Yp(e,mG)}function jee(e){return Yp(e,mG,!0)}function _0e(e){return Yp(e,gG)}function Wee(e){return Yp(e,gG,!0)}function Bee(e){return Yp(e,f7,!0)}function DB(e){return Yp(e,hG)}function zee(e){return Yp(e,hG,!0)}function PB(e){return Yp(e,tM)}function K8(e){return Yp(e,yG)}function Jee(e){return Yp(e,p7)}function f0e(e){return Yp(e,ad)}function AB(e){return Yp(e,m7)}function Pb(e){let t=Yp(e,HA);if(t&&t.typeExpression&&t.typeExpression.type)return t}function h0(e){let t=Yp(e,HA);return!t&&Bi(e)&&(t=On(Pw(e),n=>!!n.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function g6(e){let t=Jee(e);if(t&&t.typeExpression)return t.typeExpression.type;let n=Pb(e);if(n&&n.typeExpression){let i=n.typeExpression.type;if(v_(i)){let s=On(i.members,O2);return s&&s.type}if(Ig(i)||bI(i))return i.type}}function X8(e,t){var n;if(!a4(e))return qe;let i=(n=e.jsDoc)==null?void 0:n.jsDocCache;if(i===void 0||t){let s=xz(e,t);w.assert(s.length<2||s[0]!==s[1]),i=ga(s,o=>Kd(o)?o.tags:o),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function Ab(e){return X8(e,!1)}function Yp(e,t,n){return On(X8(e,n),t)}function Y8(e,t){return Ab(e).filter(t)}function p0e(e,t){return Ab(e).filter(n=>n.kind===t)}function h6(e){return typeof e=="string"?e:e?.map(t=>t.kind===321?t.text:i9e(t)).join("")}function i9e(e){let t=e.kind===324?"link":e.kind===325?"linkcode":"linkplain",n=e.name?df(e.name):"",i=e.name&&(e.text===""||e.text.startsWith("://"))?"":" ";return`{@${t} ${n}${i}${e.text}}`}function y0(e){if(fv(e)){if(SI(e.parent)){let t=Hw(e.parent);if(t&&Dr(t.tags))return ga(t.tags,n=>ad(n)?n.typeParameters:void 0)}return qe}if(td(e))return w.assert(e.parent.kind===320),ga(e.parent.tags,t=>ad(t)?t.typeParameters:void 0);if(e.typeParameters||Aie(e)&&e.typeParameters)return e.typeParameters;if(un(e)){let t=aO(e);if(t.length)return t;let n=h0(e);if(n&&Ig(n)&&n.typeParameters)return n.typeParameters}return qe}function Aw(e){return e.constraint?e.constraint:ad(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function oh(e){return e.kind===80||e.kind===81}function y6(e){return e.kind===178||e.kind===177}function Z8(e){return Nn(e)&&!!(e.flags&64)}function EB(e){return wo(e)&&!!(e.flags&64)}function ZT(e){return qs(e)&&!!(e.flags&64)}function ju(e){let t=e.kind;return!!(e.flags&64)&&(t===211||t===212||t===213||t===235)}function RP(e){return ju(e)&&!z2(e)&&!!e.questionDotToken}function eF(e){return RP(e.parent)&&e.parent.expression===e}function FP(e){return!ju(e.parent)||RP(e.parent)||e!==e.parent.expression}function NB(e){return e.kind===226&&e.operatorToken.kind===61}function vd(e){return yf(e)&&je(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function bd(e){return Wc(e,8)}function tF(e){return z2(e)&&!!(e.flags&64)}function OP(e){return e.kind===252||e.kind===251}function MB(e){return e.kind===280||e.kind===279}function LP(e){return e.kind===348||e.kind===341}function rF(e){return e>=166}function RB(e){return e>=0&&e<=165}function Xx(e){return RB(e.kind)}function lS(e){return bo(e,"pos")&&bo(e,"end")}function jP(e){return 9<=e&&e<=15}function ek(e){return jP(e.kind)}function FB(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function v0(e){return 15<=e&&e<=18}function Gee(e){return v0(e.kind)}function nF(e){let t=e.kind;return t===17||t===18}function b0(e){return a_(e)||zu(e)}function Ew(e){switch(e.kind){case 276:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 274:return e.parent.isTypeOnly;case 273:case 271:return e.isTypeOnly}return!1}function Uee(e){switch(e.kind){case 281:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 278:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 280:return e.parent.isTypeOnly}return!1}function Xy(e){return Ew(e)||Uee(e)}function Vee(e){return gr(e,Xy)!==void 0}function OB(e){return e.kind===11||v0(e.kind)}function qee(e){return ya(e)||je(e)}function Ko(e){var t;return je(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function tk(e){var t;return ji(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function v6(e){let t=e.emitNode.autoGenerate.flags;return!!(t&32)&&!!(t&16)&&!!(t&8)}function Zu(e){return(ds(e)||Zx(e))&&ji(e.name)}function Nw(e){return Nn(e)&&ji(e.name)}function S0(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 WP(e){return!!(h2(e)&31)}function LB(e){return WP(e)||e===126||e===164||e===129}function la(e){return S0(e.kind)}function m_(e){let t=e.kind;return t===166||t===80}function tl(e){let t=e.kind;return t===80||t===81||t===11||t===9||t===167}function rk(e){let t=e.kind;return t===80||t===206||t===207}function Ns(e){return!!e&&Yx(e.kind)}function Mw(e){return!!e&&(Yx(e.kind)||Nc(e))}function xo(e){return e&&d0e(e.kind)}function BP(e){return e.kind===112||e.kind===97}function d0e(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function Yx(e){switch(e){case 173:case 179:case 323:case 180:case 181:case 184:case 317:case 185:return!0;default:return d0e(e)}}function jB(e){return Mi(e)||Lm(e)||Fs(e)&&Ns(e.parent)}function rl(e){let t=e.kind;return t===176||t===172||t===174||t===177||t===178||t===181||t===175||t===240}function ii(e){return e&&(e.kind===263||e.kind===231)}function T0(e){return e&&(e.kind===177||e.kind===178)}function N_(e){return ds(e)&&Em(e)}function $ee(e){return un(e)&&P2(e)?(!vS(e)||!M0(e.expression))&&!_k(e,!0):e.parent&&ii(e.parent)&&ds(e)&&!Em(e)}function Zx(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function Xo(e){return la(e)||Rl(e)}function uS(e){let t=e.kind;return t===180||t===179||t===171||t===173||t===181||t===177||t===178||t===354}function iF(e){return uS(e)||rl(e)}function iy(e){let t=e.kind;return t===303||t===304||t===305||t===174||t===177||t===178}function di(e){return fJ(e.kind)}function Hee(e){switch(e.kind){case 184:case 185:return!0}return!1}function Ws(e){if(e){let t=e.kind;return t===207||t===206}return!1}function zP(e){let t=e.kind;return t===209||t===210}function sF(e){let t=e.kind;return t===208||t===232}function b6(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function Qee(e){return oi(e)||Bi(e)||T6(e)||k6(e)}function S6(e){return WB(e)||BB(e)}function WB(e){switch(e.kind){case 206:case 210:return!0}return!1}function T6(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function BB(e){switch(e.kind){case 207:case 209:return!0}return!1}function k6(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return ql(e,!0)}function Kee(e){let t=e.kind;return t===211||t===166||t===205}function x6(e){let t=e.kind;return t===211||t===166}function zB(e){return _S(e)||O0(e)}function _S(e){switch(e.kind){case 213:case 214:case 215:case 170:case 286:case 285:case 289:return!0;case 226:return e.operatorToken.kind===104;default:return!1}}function km(e){return e.kind===213||e.kind===214}function e2(e){let t=e.kind;return t===228||t===15}function M_(e){return m0e(bd(e).kind)}function m0e(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function JB(e){return g0e(bd(e).kind)}function g0e(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return m0e(e)}}function Xee(e){switch(e.kind){case 225:return!0;case 224:return e.operator===46||e.operator===47;default:return!1}}function Yee(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return ek(e)}}function gt(e){return s9e(bd(e).kind)}function s9e(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 356:case 355:case 238:return!0;default:return g0e(e)}}function fS(e){let t=e.kind;return t===216||t===234}function k0(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&k0(e.statement,t)}return!1}function a9e(e){return Ho(e)||Xc(e)}function Zee(e){return pt(e,a9e)}function aF(e){return!R6(e)&&!Ho(e)&&!ei(e,32)&&!e_(e)}function C6(e){return R6(e)||Ho(e)||ei(e,32)}function nk(e){return e.kind===249||e.kind===250}function oF(e){return Fs(e)||gt(e)}function GB(e){return Fs(e)}function xp(e){return au(e)||gt(e)}function ete(e){let t=e.kind;return t===268||t===267||t===80}function h0e(e){let t=e.kind;return t===268||t===267}function y0e(e){let t=e.kind;return t===80||t===267}function UB(e){let t=e.kind;return t===275||t===274}function w6(e){return e.kind===267||e.kind===266}function Jd(e){switch(e.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 338:case 340:case 317:case 341:case 348:case 323:case 346:case 322:case 291:case 292:case 293:case 200:case 174:case 173:case 267:case 202:case 280:case 270:case 274:case 214:case 15:case 9:case 210:case 169:case 211:case 303:case 172:case 171:case 178:case 304:case 307:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function Sg(e){switch(e.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 338:case 340:case 317:case 323:case 346:case 200:case 174:case 173:case 267:case 178:case 307:case 265:return!0;default:return!1}}function o9e(e){return e===219||e===208||e===263||e===231||e===175||e===176||e===266||e===306||e===281||e===262||e===218||e===177||e===273||e===271||e===276||e===264||e===291||e===174||e===173||e===267||e===270||e===274||e===280||e===169||e===303||e===172||e===171||e===178||e===304||e===265||e===168||e===260||e===346||e===338||e===348||e===202}function tte(e){return e===262||e===282||e===263||e===264||e===265||e===266||e===267||e===272||e===271||e===278||e===277||e===270}function rte(e){return e===252||e===251||e===259||e===246||e===244||e===242||e===249||e===250||e===248||e===245||e===256||e===253||e===255||e===257||e===258||e===243||e===247||e===254||e===353}function Ul(e){return e.kind===168?e.parent&&e.parent.kind!==345||un(e):o9e(e.kind)}function nte(e){return tte(e.kind)}function I6(e){return rte(e.kind)}function Ii(e){let t=e.kind;return rte(t)||tte(t)||c9e(e)}function c9e(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!gS(e)}function ite(e){let t=e.kind;return rte(t)||tte(t)||t===241}function ste(e){let t=e.kind;return t===283||t===166||t===80}function JP(e){let t=e.kind;return t===110||t===80||t===211||t===295}function D6(e){let t=e.kind;return t===284||t===294||t===285||t===12||t===288}function cF(e){let t=e.kind;return t===291||t===293}function ate(e){let t=e.kind;return t===11||t===294}function Wu(e){let t=e.kind;return t===286||t===285}function ote(e){let t=e.kind;return t===286||t===285||t===289}function lF(e){let t=e.kind;return t===296||t===297}function Rw(e){return e.kind>=309&&e.kind<=351}function uF(e){return e.kind===320||e.kind===319||e.kind===321||t2(e)||Fw(e)||Ak(e)||fv(e)}function Fw(e){return e.kind>=327&&e.kind<=351}function xm(e){return e.kind===178}function ch(e){return e.kind===177}function Lf(e){if(!a4(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function _F(e){return!!e.type}function Yy(e){return!!e.initializer}function ik(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function VB(e){return e.kind===291||e.kind===293||iy(e)}function fF(e){return e.kind===183||e.kind===233}var v0e=1073741823;function cte(e){let t=v0e;for(let n of e){if(!n.length)continue;let i=0;for(;i<n.length&&i<t&&ih(n.charCodeAt(i));i++);if(i<t&&(t=i),t===0)return 0}return t===v0e?void 0:t}function Ha(e){return e.kind===11||e.kind===15}function t2(e){return e.kind===324||e.kind===325||e.kind===326}function qB(e){let t=zo(e.parameters);return!!t&&Tg(t)}function Tg(e){let t=ip(e)?e.typeExpression&&e.typeExpression.type:e.type;return e.dotDotDotToken!==void 0||!!t&&t.kind===318}function b0e(e,t){return t.text.substring(e.pos,e.end).includes("@internal")}function lte(e,t){t??(t=Fr(e));let n=Cs(e);if(n&&n.kind===169){let s=n.parent.parameters.indexOf(n),o=s>0?n.parent.parameters[s-1]:void 0,c=t.text,_=o?Ki(m0(c,ha(c,o.end+1,!1,!0)),sh(c,e.pos)):m0(c,ha(c,e.pos,!1,!0));return pt(_)&&b0e(xa(_),t)}let i=n&&pz(n,t);return!!or(i,s=>b0e(s,t))}var $B=[],x0="tslib",GP=160,HB=1e6;function Yo(e,t){let n=e.declarations;if(n){for(let i of n)if(i.kind===t)return i}}function ute(e,t){return An(e.declarations||qe,n=>n.kind===t)}function ea(e){let t=new Map;if(e)for(let n of e)t.set(n.escapedName,n);return t}function lh(e){return(e.flags&33554432)!==0}function r2(e){return!!(e.flags&1536)&&e.escapedName.charCodeAt(0)===34}var pF=l9e();function l9e(){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&&ih(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:to,decreaseIndent:to,clear:()=>e=""}}function dF(e,t){return e.configFilePath!==t.configFilePath||u9e(e,t)}function u9e(e,t){return n2(e,t,BG)}function _te(e,t){return n2(e,t,Zie)}function n2(e,t,n){return e!==t&&n.some(i=>!OO(xO(e,i),xO(t,i)))}function fte(e,t){for(;;){let n=t(e);if(n==="quit")return;if(n!==void 0)return n;if(Mi(e))return;e=e.parent}}function Nl(e,t){let n=e.entries();for(let[i,s]of n){let o=t(s,i);if(o)return o}}function uh(e,t){let n=e.keys();for(let i of n){let s=t(i);if(s)return s}}function mF(e,t){e.forEach((n,i)=>{t.set(i,n)})}function Ow(e){let t=pF.getText();try{return e(pF),pF.getText()}finally{pF.clear(),pF.writeKeyword(t)}}function P6(e){return e.end-e.pos}function QB(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function pte(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&&_9e(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.alternateResult===t.alternateResult}function i2(e){return e.resolvedModule}function gF(e){return e.resolvedTypeReferenceDirective}function hF(e,t,n,i,s){var o;let c=(o=t.getResolvedModule(e,n,i))==null?void 0:o.alternateResult,_=c&&(Bu(t.getCompilerOptions())===2?[p.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]]:[p.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(Ch+"@types/")?`@types/${MI(s)}`:s]]),u=_?Ps(void 0,_[0],..._[1]):t.typesPackageExists(s)?Ps(void 0,p.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,MI(s)):t.packageBundlesTypes(s)?Ps(void 0,p.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,s,n):Ps(void 0,p.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,n,MI(s));return u&&(u.repopulateInfo=()=>({moduleReference:n,mode:i,packageName:s===n?void 0:s})),u}function KB(e){let t=bh(e.fileName),n=e.packageJsonScope,i=t===".ts"?".mts":t===".js"?".mjs":void 0,s=n&&!n.contents.packageJsonContent.type?i?Ps(void 0,p.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,i,Bn(n.packageDirectory,"package.json")):Ps(void 0,p.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,Bn(n.packageDirectory,"package.json")):i?Ps(void 0,p.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):Ps(void 0,p.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module);return s.repopulateInfo=()=>!0,s}function _9e(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version&&e.peerDependencies===t.peerDependencies}function yF({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function Eb(e){return`${yF(e)}@${e.version}${e.peerDependencies??""}`}function dte(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 XB(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],_=n(c);if(_?!o||!i(_,o):o)return!0}return!1}function s2(e){return f9e(e),(e.flags&1048576)!==0}function f9e(e){e.flags&2097152||(((e.flags&262144)!==0||Es(e,s2))&&(e.flags|=1048576),e.flags|=2097152)}function Fr(e){for(;e&&e.kind!==307;)e=e.parent;return e}function A6(e){return Fr(e.valueDeclaration||az(e))}function UP(e,t){return!!e&&(e.scriptKind===1||e.scriptKind===2)&&!e.checkJsDirective&&t===void 0}function mte(e){switch(e.kind){case 241:case 269:case 248:case 249:case 250:return!0}return!1}function C0(e,t){return w.assert(e>=0),nh(t)[e]}function S0e(e){let t=Fr(e),n=Qs(t,e.pos);return`${t.fileName}(${n.line+1},${n.character+1})`}function E6(e,t){w.assert(e>=0);let n=nh(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(Lu(s.charCodeAt(c)));o<=c&&Lu(s.charCodeAt(c));)c--;return c}}function vF(e,t,n){return!(n&&n(t))&&!e.identifiers.has(t)}function Tc(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function Zp(e){return!Tc(e)}function gte(e,t){return $o(e)?t===e.expression:Nc(e)?t===e.modifiers:s_(e)?t===e.initializer:ds(e)?t===e.questionToken&&N_(e):hl(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||N6(e.modifiers,t,Xo):Eu(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||N6(e.modifiers,t,Xo):xc(e)?t===e.exclamationToken:lc(e)?t===e.typeParameters||t===e.type||N6(e.typeParameters,t,$o):Mp(e)?t===e.typeParameters||N6(e.typeParameters,t,$o):X_(e)?t===e.typeParameters||t===e.type||N6(e.typeParameters,t,$o):eM(e)?t===e.modifiers||N6(e.modifiers,t,Xo):!1}function N6(e,t,n){return!e||ks(t)||!n(t)?!1:Ts(e,t)}function T0e(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 k0e(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 x0e(e){return wm(e)||!!(Na(e)&2097152)}function _h(e,t){return T0e(e,t,wm)}function YB(e,t){return T0e(e,t,x0e)}function C0e(e,t){return k0e(e,t,wm)}function sk(e,t){return k0e(e,t,x0e)}function ZB(e,t,n){if(e.charCodeAt(t+1)===47&&t+2<n&&e.charCodeAt(t+2)===47){let i=e.substring(t,n);return!!(S9e.test(i)||x9e.test(i)||C9e.test(i)||T9e.test(i)||k9e.test(i)||w9e.test(i))}return!1}function bF(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===33}function hte(e,t){let n=new Map(t.map(c=>[`${Qs(e,c.range.end).line}`,c])),i=new Map;return{getUnusedExpectations:s,markUsed:o};function s(){return ps(n.entries()).filter(([c,_])=>_.type===0&&!i.get(c)).map(([c,_])=>_)}function o(c){return n.has(`${c}`)?(i.set(`${c}`,!0),!0):!1}}function w0(e,t,n){if(Tc(e))return e.pos;if(Rw(e)||e.kind===12)return ha((t??Fr(e)).text,e.pos,!1,!0);if(n&&Lf(e))return w0(e.jsDoc[0],t);if(e.kind===352){t??(t=Fr(e));let i=_l(vG(e,t));if(i)return w0(i,t,n)}return ha((t??Fr(e)).text,e.pos,!1,!1,$6(e))}function ez(e,t){let n=!Tc(e)&&od(e)?rS(e.modifiers,Rl):void 0;return n?ha((t||Fr(e)).text,n.end):w0(e,t)}function yte(e,t){let n=!Tc(e)&&od(e)&&e.modifiers?xa(e.modifiers):void 0;return n?ha((t||Fr(e)).text,n.end):w0(e,t)}function pS(e,t,n=!1){return VP(e.text,t,n)}function p9e(e){return!!gr(e,Qb)}function SF(e){return!!(Xc(e)&&e.exportClause&&Dg(e.exportClause)&&kg(e.exportClause.name))}function I0(e){return e.kind===11?e.text:Li(e.escapedText)}function dS(e){return e.kind===11?gc(e.text):e.escapedText}function kg(e){return(e.kind===11?e.text:e.escapedText)==="default"}function VP(e,t,n=!1){if(Tc(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 oc(e,t=!1){return pS(Fr(e),e,t)}function d9e(e){return e.pos}function Lw(e,t){return o0(e,t,d9e,Po)}function Na(e){let t=e.emitNode;return t&&t.flags||0}function Sd(e){let t=e.emitNode;return t&&t.internalFlags||0}var tz=Yu(()=>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:qe})),AsyncIterator:new Map(Object.entries({es2015:qe})),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"]})),SharedArrayBuffer:new Map(Object.entries({es2017:["byteLength","slice"],es2024:["growable","maxByteLength","grow"]})),AsyncIterable:new Map(Object.entries({es2018:qe})),AsyncIterableIterator:new Map(Object.entries({es2018:qe})),AsyncGenerator:new Map(Object.entries({es2018:qe})),AsyncGeneratorFunction:new Map(Object.entries({es2018:qe})),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:qe,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:qe})),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:qe})),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:qe,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigUint64Array:new Map(Object.entries({es2020:qe,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),vte=(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))(vte||{});function bte(e,t,n){if(t&&m9e(e,n))return pS(t,e);switch(e.kind){case 11:{let i=n&2?zz:n&1||Na(e)&16777216?wg:YF;return e.singleQuote?"'"+i(e.text,39)+"'":'"'+i(e.text,34)+'"'}case 15:case 16:case 17:case 18:{let i=n&1||Na(e)&16777216?wg:YF,s=e.rawText??Wz(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 m9e(e,t){if(So(e)||!e.parent||t&4&&e.isUnterminated)return!1;if(L_(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(t&8)}return!LA(e)}function Ste(e){return ys(e)?`"${wg(e)}"`:""+e}function Tte(e){return fl(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function rz(e){return(ny(e)&7)!==0||nz(e)}function nz(e){let t=Am(e);return t.kind===260&&t.parent.kind===299}function e_(e){return nl(e)&&(e.name.kind===11||xg(e))}function TF(e){return nl(e)&&e.name.kind===11}function iz(e){return nl(e)&&ya(e.name)}function g9e(e){return nl(e)||je(e)}function M6(e){return h9e(e.valueDeclaration)}function h9e(e){return!!e&&e.kind===267&&!e.body}function kte(e){return e.kind===307||e.kind===267||Mw(e)}function xg(e){return!!(e.flags&2048)}function mS(e){return e_(e)&&sz(e)}function sz(e){switch(e.parent.kind){case 307:return xl(e.parent);case 268:return e_(e.parent.parent)&&Mi(e.parent.parent.parent)&&!xl(e.parent.parent.parent)}return!1}function az(e){var t;return(t=e.declarations)==null?void 0:t.find(n=>!mS(n)&&!(nl(n)&&xg(n)))}function y9e(e){return e===1||100<=e&&e<=199}function jw(e,t){return xl(e)||y9e(n_(t))&&!!e.commonJsModuleIndicator}function oz(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:!!(Pu(t,"alwaysStrict")||Iie(e.statements)||xl(e)||id(t))}function cz(e){return!!(e.flags&33554432)||ei(e,128)}function lz(e,t){switch(e.kind){case 307:case 269:case 299:case 267:case 248:case 249:case 250:case 176:case 174:case 177:case 178:case 262:case 218:case 219:case 172:case 175:return!0;case 241:return!Mw(t)}return!1}function uz(e){switch(w.type(e),e.kind){case 338:case 346:case 323:return!0;default:return _z(e)}}function _z(e){switch(w.type(e),e.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 317:case 263:case 231:case 264:case 265:case 345:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function a2(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function xte(e){return a2(e)||yS(e)}function Cte(e){return a2(e)||Q6(e)}function kF(e){switch(e.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function wte(e){return R6(e)||nl(e)||Om(e)||jf(e)}function R6(e){return a2(e)||Xc(e)}function xF(e){return gr(e.parent,t=>!!(mU(t)&1))}function Gd(e){return gr(e.parent,t=>lz(t,t.parent))}function Ite(e,t){let n=Gd(e);for(;n;)t(n),n=Gd(n)}function Co(e){return!e||P6(e)===0?"(Missing)":oc(e)}function Dte(e){return e.declaration?Co(e.declaration.parameters[0].name):void 0}function F6(e){return e.kind===167&&!tp(e.expression)}function qP(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 167:return tp(e.expression)?gc(e.expression.text):void 0;case 295:return D2(e);default:return w.assertNever(e)}}function o2(e){return w.checkDefined(qP(e))}function df(e){switch(e.kind){case 110:return"this";case 81:case 80:return P6(e)===0?Ln(e):oc(e);case 166:return df(e.left)+"."+df(e.right);case 211:return je(e.name)||ji(e.name)?df(e.expression)+"."+df(e.name):w.assertNever(e.name);case 311:return df(e.left)+"#"+df(e.right);case 295:return df(e.namespace)+":"+df(e.name);default:return w.assertNever(e)}}function cn(e,t,...n){let i=Fr(e);return Cp(i,e,t,...n)}function Ww(e,t,n,...i){let s=ha(e.text,t.pos);return kl(e,s,t.end-s,n,...i)}function Cp(e,t,n,...i){let s=ak(e,t);return kl(e,s.start,s.length,n,...i)}function fh(e,t,n,i){let s=ak(e,t);return CF(e,s.start,s.length,n,i)}function O6(e,t,n,i){let s=ha(e.text,t.pos);return CF(e,s,t.end-s,n,i)}function Pte(e,t,n){w.assertGreaterThanOrEqual(t,0),w.assertGreaterThanOrEqual(n,0),w.assertLessThanOrEqual(t,e.length),w.assertLessThanOrEqual(t+n,e.length)}function CF(e,t,n,i,s){return Pte(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 fz(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 Ate(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function Ete(e,t,n){return{file:e,start:t.pos,length:t.end-t.pos,code:n.code,category:n.category,messageText:n.message}}function Nte(e,...t){return{code:e.code,messageText:k2(e,...t)}}function Cm(e,t){let n=ah(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);n.scan();let i=n.getTokenStart();return Uc(i,n.getTokenEnd())}function Mte(e,t){let n=ah(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),n.getToken()}function v9e(e,t){let n=ha(e.text,t.pos);if(t.body&&t.body.kind===241){let{line:i}=Qs(e,t.body.pos),{line:s}=Qs(e,t.body.end);if(i<s)return pu(n,E6(i,e)-n+1)}return Uc(n,t.end)}function ak(e,t){let n=t;switch(t.kind){case 307:{let o=ha(e.text,0,!1);return o===e.text.length?pu(0,0):Cm(e,o)}case 260:case 208:case 263:case 231:case 264:case 267:case 266:case 306:case 262:case 218:case 174:case 177:case 178:case 265:case 172:case 171:case 274:n=t.name;break;case 219:return v9e(e,t);case 296:case 297:{let o=ha(e.text,t.pos),c=t.statements.length>0?t.statements[0].pos:t.end;return Uc(o,c)}case 253:case 229:{let o=ha(e.text,t.pos);return Cm(e,o)}case 238:{let o=ha(e.text,t.expression.end);return Cm(e,o)}case 350:{let o=ha(e.text,t.tagName.pos);return Cm(e,o)}case 176:{let o=t,c=ha(e.text,o.pos),_=ah(e.languageVersion,!0,e.languageVariant,e.text,void 0,c),u=_.scan();for(;u!==137&&u!==1;)u=_.scan();let g=_.getTokenEnd();return Uc(c,g)}}if(n===void 0)return Cm(e,t.pos);w.assert(!Kd(n));let i=Tc(n),s=i||N2(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")),Uc(s,n.end)}function Zy(e){return e.kind===307&&!mf(e)}function mf(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function wp(e){return e.scriptKind===6}function Nb(e){return!!(Db(e)&4096)}function L6(e){return!!(Db(e)&8&&!pf(e,e.parent))}function j6(e){return(ny(e)&7)===6}function W6(e){return(ny(e)&7)===4}function Bw(e){return(ny(e)&7)===2}function Rte(e){let t=ny(e)&7;return t===2||t===4||t===6}function wF(e){return(ny(e)&7)===1}function ok(e){return e.kind===213&&e.expression.kind===108}function jf(e){return e.kind===213&&e.expression.kind===102}function zw(e){return JA(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function sy(e){return Om(e)&&lv(e.argument)&&ya(e.argument.literal)}function wm(e){return e.kind===244&&e.expression.kind===11}function B6(e){return!!(Na(e)&2097152)}function IF(e){return B6(e)&&jc(e)}function b9e(e){return je(e.name)&&!e.initializer}function DF(e){return B6(e)&&Lc(e)&&Oi(e.declarationList.declarations,b9e)}function pz(e,t){return e.kind!==12?sh(t.text,e.pos):void 0}function dz(e,t){let n=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?Ki(m0(t,e.pos),sh(t,e.pos)):sh(t,e.pos);return An(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 S9e=/^\/\/\/\s*<reference\s+path\s*=\s*(?:'[^']*'|"[^"]*").*?\/>/,T9e=/^\/\/\/\s*<reference\s+types\s*=\s*(?:'[^']*'|"[^"]*").*?\/>/,k9e=/^\/\/\/\s*<reference\s+lib\s*=\s*(?:'[^']*'|"[^"]*").*?\/>/,x9e=/^\/\/\/\s*<amd-dependency\s+path\s*=\s*(?:'[^']*'|"[^"]*").*?\/>/,C9e=/^\/\/\/\s*<amd-module\s+(?:\S.*?)??\/>/,w9e=/^\/\/\/\s*<reference\s+no-default-lib\s*=\s*(?:'[^']*'|"[^"]*")\s*\/>/;function Im(e){if(182<=e.kind&&e.kind<=205)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!==222;case 233:return w0e(e);case 168:return e.parent.kind===200||e.parent.kind===195;case 80:(e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e)&&(e=e.parent),w.assert(e.kind===80||e.kind===166||e.kind===211,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{let{parent:t}=e;if(t.kind===186)return!1;if(t.kind===205)return!t.isTypeOf;if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 233:return w0e(t);case 168:return e===t.constraint;case 345:return e===t.constraint;case 172:case 171:case 169:case 260:return e===t.type;case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:return e===t.type;case 179:case 180:case 181:return e===t.type;case 216:return e===t.type;case 213:case 214:case 215:return Ts(t.typeArguments,e)}}}return!1}function w0e(e){return d7(e.parent)||U2(e.parent)||vf(e.parent)&&!lO(e)}function D0(e,t){return n(e);function n(i){switch(i.kind){case 253:return t(i);case 269:case 241:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 296:case 297:case 256:case 258:case 299:return Es(i,n)}}}function Fte(e,t){return n(e);function n(i){switch(i.kind){case 229:t(i);let s=i.expression;s&&n(s);return;case 266:case 264:case 267:case 265:return;default:if(Ns(i)){if(i.name&&i.name.kind===167){n(i.name.expression);return}}else Im(i)||Es(i,n)}}}function mz(e){return e&&e.kind===188?e.elementType:e&&e.kind===183?hg(e.typeArguments):void 0}function Ote(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function $P(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function HP(e){return e.parent.kind===261&&e.parent.parent.kind===243}function Lte(e){return un(e)?Sa(e.parent)&&vn(e.parent.parent)&&Vc(e.parent.parent)===2||PF(e.parent):!1}function PF(e){return un(e)?vn(e)&&Vc(e)===1:!1}function jte(e){return(oi(e)?Bw(e)&&je(e.name)&&HP(e):ds(e)?gk(e)&&Tl(e):s_(e)&&gk(e))||PF(e)}function Wte(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function gz(e,t){for(;;){if(t&&t(e),e.statement.kind!==256)return e.statement;e=e.statement}}function gS(e){return e&&e.kind===241&&Ns(e.parent)}function ed(e){return e&&e.kind===174&&e.parent.kind===210}function AF(e){return(e.kind===174||e.kind===177||e.kind===178)&&(e.parent.kind===210||e.parent.kind===231)}function Bte(e){return e&&e.kind===1}function zte(e){return e&&e.kind===0}function Jw(e,t,n,i){return or(e?.properties,s=>{if(!hl(s))return;let o=qP(s.name);return t===o||i&&i===o?n(s):void 0})}function QP(e){if(e&&e.statements.length){let t=e.statements[0].expression;return Vn(t,Sa)}}function EF(e,t,n){return z6(e,t,i=>gu(i.initializer)?On(i.initializer.elements,s=>ya(s)&&s.text===n):void 0)}function z6(e,t,n){return Jw(QP(e),t,n)}function ep(e){return gr(e.parent,Ns)}function Jte(e){return gr(e.parent,xo)}function su(e){return gr(e.parent,ii)}function Gte(e){return gr(e.parent,t=>ii(t)||Ns(t)?"quit":Nc(t))}function NF(e){return gr(e.parent,Mw)}function MF(e){let t=gr(e.parent,n=>ii(n)?"quit":Rl(n));return t&&ii(t.parent)?su(t.parent):su(t??e)}function t_(e,t,n){for(w.assert(e.kind!==307);;){if(e=e.parent,!e)return w.fail();switch(e.kind){case 167:if(n&&ii(e.parent.parent))return e;e=e.parent.parent;break;case 170:e.parent.kind===169&&rl(e.parent.parent)?e=e.parent.parent:rl(e.parent)&&(e=e.parent);break;case 219:if(!t)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 307:return e}}}function Ute(e){switch(e.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(e.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function RF(e){je(e)&&(gl(e.parent)||jc(e.parent))&&e.parent.name===e&&(e=e.parent);let t=t_(e,!0,!1);return Mi(t)}function Vte(e){let t=t_(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function J6(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 167:e=e.parent;break;case 262:case 218:case 219:if(!t)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return e;case 170:e.parent.kind===169&&rl(e.parent.parent)?e=e.parent.parent:rl(e.parent)&&(e=e.parent);break}}}function hS(e){if(e.kind===218||e.kind===219){let t=e,n=e.parent;for(;n.kind===217;)t=n,n=n.parent;if(n.kind===213&&n.expression===t)return n}}function H_(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function G6(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===110}function FF(e){var t;return!!e&&oi(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function qte(e){return!!e&&(Eu(e)||hl(e))&&vn(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function U6(e){switch(e.kind){case 183:return e.typeName;case 233:return mo(e.expression)?e.expression:void 0;case 80:case 166:return e}}function OF(e){switch(e.kind){case 215:return e.tag;case 286:case 285:return e.tagName;case 226:return e.right;case 289:return e;default:return e.expression}}function V6(e,t,n,i){if(e&&Gl(t)&&ji(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return n!==void 0&&(e?gl(n):ii(n)&&!IS(t)&&!Xz(t));case 177:case 178:case 174:return t.body!==void 0&&n!==void 0&&(e?gl(n):ii(n));case 169:return e?n!==void 0&&n.body!==void 0&&(n.kind===176||n.kind===174||n.kind===178)&&xS(n)!==t&&i!==void 0&&i.kind===263:!1}return!1}function Gw(e,t,n,i){return rp(t)&&V6(e,t,n,i)}function q6(e,t,n,i){return Gw(e,t,n,i)||KP(e,t,n)}function KP(e,t,n){switch(t.kind){case 263:return pt(t.members,i=>q6(e,i,t,n));case 231:return!e&&pt(t.members,i=>q6(e,i,t,n));case 174:case 178:case 176:return pt(t.parameters,i=>Gw(e,i,t,n));default:return!1}}function ev(e,t){if(Gw(e,t))return!0;let n=mh(t);return!!n&&KP(e,n,t)}function hz(e,t,n){let i;if(T0(t)){let{firstAccessor:s,secondAccessor:o,setAccessor:c}=wS(n.members,t),_=rp(s)?s:o&&rp(o)?o:void 0;if(!_||t!==_)return!1;i=c?.parameters}else xc(t)&&(i=t.parameters);if(Gw(e,t,n))return!0;if(i){for(let s of i)if(!E0(s)&&Gw(e,s,t,n))return!0}return!1}function yz(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return yz(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function Uw(e){let{parent:t}=e;return t.kind===286||t.kind===285||t.kind===287?t.tagName===e:!1}function Ud(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!vf(e.parent)&&!U2(e.parent);case 166:for(;e.parent.kind===166;)e=e.parent;return e.parent.kind===186||t2(e.parent)||$A(e.parent)||Kb(e.parent)||Uw(e);case 311:for(;Kb(e.parent);)e=e.parent;return e.parent.kind===186||t2(e.parent)||$A(e.parent)||Kb(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===186||t2(e.parent)||$A(e.parent)||Kb(e.parent)||Uw(e))return!0;case 9:case 10:case 11:case 15:case 110:return LF(e);default:return!1}}function LF(e){let{parent:t}=e;switch(t.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return t.initializer===e;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return t.expression===e;case 248:let n=t;return n.initializer===e&&n.initializer.kind!==261||n.condition===e||n.incrementor===e;case 249:case 250:let i=t;return i.initializer===e&&i.initializer.kind!==261||i.expression===e;case 216:case 234:return e===t.expression;case 239:return e===t.expression;case 167:return e===t.expression;case 170:case 294:case 293:case 305:return!0;case 233:return t.expression===e&&!Im(t);case 304:return t.objectAssignmentInitializer===e;case 238:return e===t.expression;default:return Ud(t)}}function jF(e){for(;e.kind===166||e.kind===80;)e=e.parent;return e.kind===186}function $te(e){return Dg(e)&&!!e.parent.moduleSpecifier}function Mb(e){return e.kind===271&&e.moduleReference.kind===283}function XP(e){return w.assert(Mb(e)),e.moduleReference.expression}function vz(e){return yS(e)&&nI(e.initializer).arguments[0]}function ck(e){return e.kind===271&&e.moduleReference.kind!==283}function ph(e){return e?.kind===307}function g_(e){return un(e)}function un(e){return!!e&&!!(e.flags&524288)}function WF(e){return!!e&&!!(e.flags&134217728)}function BF(e){return!wp(e)}function $6(e){return!!e&&!!(e.flags&16777216)}function zF(e){return yf(e)&&je(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function R_(e,t){if(e.kind!==213)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 H6(e){return I0e(e,!1)}function yS(e){return I0e(e,!0)}function Hte(e){return Da(e)&&yS(e.parent.parent)}function I0e(e,t){return oi(e)&&!!e.initializer&&R_(t?nI(e.initializer):e.initializer,!0)}function Q6(e){return Lc(e)&&e.declarationList.declarations.length>0&&Oi(e.declarationList.declarations,t=>H6(t))}function K6(e){return e===39||e===34}function JF(e,t){return pS(t,e).charCodeAt(0)===34}function YP(e){return vn(e)||Oo(e)||je(e)||qs(e)}function X6(e){return un(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 ZP(e){let t=X6(e);return t&&Rb(t,M0(e.name))}function I9e(e,t){return or(e.properties,n=>hl(n)&&je(n.name)&&n.name.escapedText==="value"&&n.initializer&&Rb(n.initializer,t))}function c2(e){if(e&&e.parent&&vn(e.parent)&&e.parent.operatorToken.kind===64){let t=M0(e.parent.left);return Rb(e.parent.right,t)||D9e(e.parent.left,e.parent.right,t)}if(e&&qs(e)&&uk(e)){let t=I9e(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function Rb(e,t){if(qs(e)){let n=Ka(e.expression);return n.kind===218||n.kind===219?e:void 0}if(e.kind===218||e.kind===231||e.kind===219||Sa(e)&&(e.properties.length===0||t))return e}function D9e(e,t,n){let i=vn(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&Rb(t.right,n);if(i&&Vw(e,t.left))return i}function Qte(e){let t=oi(e.parent)?e.parent.name:vn(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&Rb(e.right,M0(t))&&mo(t)&&Vw(t,e.left)}function bz(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&&je(t.left))return t.left}else if(oi(e.parent))return e.parent.name}function Vw(e,t){return Pm(e)&&Pm(t)?Ip(e)===Ip(t):oh(e)&&Kte(t)&&(t.expression.kind===110||je(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?Vw(e,Z6(t)):Kte(e)&&Kte(t)?ay(e)===ay(t)&&Vw(e.expression,t.expression):!1}function Y6(e){for(;ql(e,!0);)e=e.right;return e}function lk(e){return je(e)&&e.escapedText==="exports"}function Sz(e){return je(e)&&e.escapedText==="module"}function dh(e){return(Nn(e)||Tz(e))&&Sz(e.expression)&&ay(e)==="exports"}function Vc(e){let t=P9e(e);return t===5||un(e)?t:0}function uk(e){return Dr(e.arguments)===3&&Nn(e.expression)&&je(e.expression.expression)&&Ln(e.expression.expression)==="Object"&&Ln(e.expression.name)==="defineProperty"&&tp(e.arguments[1])&&_k(e.arguments[0],!0)}function Kte(e){return Nn(e)||Tz(e)}function Tz(e){return wo(e)&&tp(e.argumentExpression)}function vS(e,t){return Nn(e)&&(!t&&e.expression.kind===110||je(e.name)&&_k(e.expression,!0))||GF(e,t)}function GF(e,t){return Tz(e)&&(!t&&e.expression.kind===110||mo(e.expression)||vS(e.expression,!0))}function _k(e,t){return mo(e)||vS(e,t)}function Z6(e){return Nn(e)?e.name:e.argumentExpression}function P9e(e){if(qs(e)){if(!uk(e))return 0;let t=e.arguments[0];return lk(t)||dh(t)?8:vS(t)&&ay(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!Oo(e.left)||A9e(Y6(e))?0:_k(e.left.expression,!0)&&ay(e.left)==="prototype"&&Sa(kz(e))?6:e4(e.left)}function A9e(e){return B2(e)&&L_(e.expression)&&e.expression.text==="0"}function UF(e){if(Nn(e))return e.name;let t=Ka(e.argumentExpression);return L_(t)||Ha(t)?t:e}function ay(e){let t=UF(e);if(t){if(je(t))return t.escapedText;if(Ha(t)||L_(t))return gc(t.text)}}function e4(e){if(e.expression.kind===110)return 4;if(dh(e))return 2;if(_k(e.expression,!0)){if(M0(e.expression))return 3;let t=e;for(;!je(t.expression);)t=t.expression;let n=t.expression;if((n.escapedText==="exports"||n.escapedText==="module"&&ay(t)==="exports")&&vS(e))return 1;if(_k(e,!0)||wo(e)&&KF(e))return 5}return 0}function kz(e){for(;vn(e.right);)e=e.right;return e.right}function t4(e){return vn(e)&&Vc(e)===3}function Xte(e){return un(e)&&e.parent&&e.parent.kind===244&&(!wo(e)||Tz(e))&&!!Pb(e.parent)}function r4(e,t){let{valueDeclaration:n}=e;(!n||!(t.flags&33554432&&!un(t)&&!(n.flags&33554432))&&YP(n)&&!YP(t)||n.kind!==t.kind&&g9e(n))&&(e.valueDeclaration=t)}function Yte(e){if(!e||!e.valueDeclaration)return!1;let t=e.valueDeclaration;return t.kind===262||oi(t)&&t.initializer&&Ns(t.initializer)}function Zte(e){switch(e?.kind){case 260:case 208:case 272:case 278:case 271:case 273:case 280:case 274:case 281:case 276:case 205:return!0}return!1}function l2(e){var t,n;switch(e.kind){case 260:case 208:return(t=gr(e.initializer,i=>R_(i,!0)))==null?void 0:t.arguments[0];case 272:case 278:case 351:return Vn(e.moduleSpecifier,Ha);case 271:return Vn((n=Vn(e.moduleReference,dy))==null?void 0:n.expression,Ha);case 273:case 280:return Vn(e.parent.moduleSpecifier,Ha);case 274:case 281:return Vn(e.parent.parent.moduleSpecifier,Ha);case 276:return Vn(e.parent.parent.parent.moduleSpecifier,Ha);case 205:return sy(e)?e.argument.literal:void 0;default:w.assertNever(e)}}function eA(e){return n4(e)||w.failBadSyntaxKind(e.parent)}function n4(e){switch(e.parent.kind){case 272:case 278:case 351:return e.parent;case 283:return e.parent.parent;case 213:return jf(e.parent)||R_(e.parent,!1)?e.parent:void 0;case 201:if(!ya(e))break;return Vn(e.parent.parent,Om);default:return}}function i4(e,t){return!!t.rewriteRelativeImportExtensions&&Of(e)&&!Ll(e)&&yk(e)}function u2(e){switch(e.kind){case 272:case 278:case 351:return e.moduleSpecifier;case 271:return e.moduleReference.kind===283?e.moduleReference.expression:void 0;case 205:return sy(e)?e.argument.literal:void 0;case 213:return e.arguments[0];case 267:return e.name.kind===11?e.name:void 0;default:return w.assertNever(e)}}function qw(e){switch(e.kind){case 272:return e.importClause&&Vn(e.importClause.namedBindings,kh);case 271:return e;case 278:return e.exportClause&&Vn(e.exportClause,Dg);default:return w.assertNever(e)}}function fk(e){return(e.kind===272||e.kind===351)&&!!e.importClause&&!!e.importClause.name}function ere(e,t){if(e.name){let n=t(e);if(n)return n}if(e.namedBindings){let n=kh(e.namedBindings)?t(e.namedBindings):or(e.namedBindings.elements,t);if(n)return n}}function _2(e){switch(e.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return e.questionToken!==void 0}return!1}function f2(e){let t=bI(e)?_l(e.parameters):void 0,n=Vn(t&&t.name,je);return!!n&&n.escapedText==="new"}function td(e){return e.kind===346||e.kind===338||e.kind===340}function s4(e){return td(e)||sd(e)}function E9e(e){return $l(e)&&vn(e.expression)&&e.expression.operatorToken.kind===64?Y6(e.expression):void 0}function D0e(e){return $l(e)&&vn(e.expression)&&Vc(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 P0e(e){switch(e.kind){case 243:let t=p2(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function p2(e){return Lc(e)?_l(e.declarationList.declarations):void 0}function A0e(e){return nl(e)&&e.body&&e.body.kind===267?e.body:void 0}function $w(e){if(e.kind>=243&&e.kind<=259)return!0;switch(e.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function a4(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 317:case 323:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function xz(e,t){let n;$P(e)&&Yy(e)&&Lf(e.initializer)&&(n=jn(n,E0e(e,e.initializer.jsDoc)));let i=e;for(;i&&i.parent;){if(Lf(i)&&(n=jn(n,E0e(e,i.jsDoc))),i.kind===169){n=jn(n,(t?Aee:Pw)(i));break}if(i.kind===168){n=jn(n,(t?Nee:Eee)(i));break}i=Cz(i)}return n||qe}function E0e(e,t){let n=xa(t);return ga(t,i=>{if(i===n){let s=An(i.tags,o=>N9e(e,o));return i.tags===s?[i]:s}else return An(i.tags,SI)})}function N9e(e,t){return!(HA(t)||m7(t))||!t.parent||!Kd(t.parent)||!b_(t.parent.parent)||t.parent.parent===e}function Cz(e){let t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||A0e(t)||ql(e))return t;if(t.parent&&(p2(t.parent)===e||ql(t)))return t.parent;if(t.parent&&t.parent.parent&&(p2(t.parent.parent)||P0e(t.parent.parent)===e||D0e(t.parent.parent)))return t.parent.parent}function o4(e){if(e.symbol)return e.symbol;if(!je(e.name))return;let t=e.name.escapedText,n=Fb(e);if(!n)return;let i=On(n.parameters,s=>s.name.kind===80&&s.name.escapedText===t);return i&&i.symbol}function VF(e){if(Kd(e.parent)&&e.parent.tags){let t=On(e.parent.tags,td);if(t)return t}return Fb(e)}function wz(e){return Y8(e,SI)}function Fb(e){let t=Ob(e);if(t)return s_(t)&&t.type&&Ns(t.type)?t.type:Ns(t)?t:void 0}function Ob(e){let t=bS(e);if(t)return D0e(t)||E9e(t)||P0e(t)||p2(t)||A0e(t)||t}function bS(e){let t=Hw(e);if(!t)return;let n=t.parent;if(n&&n.jsDoc&&t===zo(n.jsDoc))return n}function Hw(e){return gr(e.parent,Kd)}function tre(e){let t=e.name.escapedText,{typeParameters:n}=e.parent.parent.parent;return n&&On(n,i=>i.name.escapedText===t)}function N0e(e){return!!e.typeArguments}var rre=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(rre||{});function nre(e){let t=e.parent;for(;;){switch(t.kind){case 226:let n=t,i=n.operatorToken.kind;return ly(i)&&n.left===e?n:void 0;case 224:case 225:let s=t,o=s.operator;return o===46||o===47?s:void 0;case 249:case 250:let c=t;return c.initializer===e?c:void 0;case 217:case 209:case 230:case 235:e=t;break;case 305:e=t.parent;break;case 304:if(t.name!==e)return;e=t.parent;break;case 303:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function P0(e){let t=nre(e);if(!t)return 0;switch(t.kind){case 226:let n=t.operatorToken.kind;return n===64||_A(n)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function A0(e){return!!nre(e)}function M9e(e){let t=Ka(e.right);return t.kind===226&&AG(t.operatorToken.kind)}function Iz(e){let t=nre(e);return!!t&&ql(t,!0)&&M9e(t)}function ire(e){switch(e.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function pk(e){return Ao(e)||Lo(e)||Zx(e)||jc(e)||lc(e)}function M0e(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function c4(e){return M0e(e,196)}function Td(e){return M0e(e,217)}function sre(e){let t;for(;e&&e.kind===196;)t=e,e=e.parent;return[t,e]}function tA(e){for(;xk(e);)e=e.type;return e}function Ka(e,t){return Wc(e,t?-2147483647:1)}function Dz(e){return e.kind!==211&&e.kind!==212?!1:(e=Td(e.parent),e&&e.kind===220)}function SS(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function Cg(e){return!Mi(e)&&!Ws(e)&&Ul(e.parent)&&e.parent.name===e}function rA(e){let t=e.parent;switch(e.kind){case 11:case 15:case 9:if(pa(t))return t.parent;case 80:if(Ul(t))return t.name===e?t:void 0;if(y_(t)){let n=t.parent;return ip(n)&&n.name===t?n:void 0}else{let n=t.parent;return vn(n)&&Vc(n)!==0&&(n.left.symbol||n.symbol)&&vs(n)===e?n:void 0}case 81:return Ul(t)&&t.name===e?t:void 0;default:return}}function l4(e){return tp(e)&&e.parent.kind===167&&Ul(e.parent.parent)}function are(e){let t=e.parent;switch(t.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return t.name===e;case 166:return t.right===e;case 208:case 276:return t.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function Pz(e){switch(e.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return e.parent;case 166:do e=e.parent;while(e.parent.kind===166);return Pz(e)}}function qF(e){return mo(e)||ml(e)}function u4(e){let t=Az(e);return qF(t)}function Az(e){return Ho(e)?e.expression:e.right}function ore(e){return e.kind===304?e.name:e.kind===303?e.initializer:e.parent.right}function Dm(e){let t=TS(e);if(t&&un(e)){let n=Ree(e);if(n)return n.class}return t}function TS(e){let t=_4(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function Qw(e){if(un(e))return Fee(e).map(t=>t.class);{let t=_4(e.heritageClauses,119);return t?.types}}function nA(e){return hu(e)?iA(e)||qe:ii(e)&&Ki(Ux(Dm(e)),Qw(e))||qe}function iA(e){let t=_4(e.heritageClauses,96);return t?t.types:void 0}function _4(e,t){if(e){for(let n of e)if(n.token===t)return n}}function Lb(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function F_(e){return 83<=e&&e<=165}function Ez(e){return 19<=e&&e<=79}function $F(e){return F_(e)||Ez(e)}function HF(e){return 128<=e&&e<=165}function Nz(e){return F_(e)&&!HF(e)}function d2(e){let t=XT(e);return t!==void 0&&Nz(t)}function Mz(e){let t=YT(e);return!!t&&!HF(t)}function Kw(e){return 2<=e&&e<=7}var cre=(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))(cre||{});function Kc(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:ei(e,1024)&&(t|=2);break}return e.body||(t|=4),t}function sA(e){switch(e.kind){case 262:case 218:case 219:case 174:return e.body!==void 0&&e.asteriskToken===void 0&&ei(e,1024)}return!1}function tp(e){return Ha(e)||L_(e)}function QF(e){return Vb(e)&&(e.operator===40||e.operator===41)&&L_(e.operand)}function oy(e){let t=vs(e);return!!t&&KF(t)}function KF(e){if(!(e.kind===167||e.kind===212))return!1;let t=wo(e)?Ka(e.argumentExpression):e.expression;return!tp(t)&&!QF(t)}function dk(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:case 10:return gc(e.text);case 167:let t=e.expression;return tp(t)?gc(t.text):QF(t)?t.operator===41?sa(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return D2(e);default:return w.assertNever(e)}}function Pm(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function Ip(e){return oh(e)?Ln(e):Qd(e)?NA(e):e.text}function aA(e){return oh(e)?e.escapedText:Qd(e)?D2(e):gc(e.text)}function f4(e,t){return`__#${ua(e)}@${t}`}function p4(e){return Yi(e.escapedName,"__@")}function lre(e){return Yi(e.escapedName,"__#")}function R9e(e){return je(e)?Ln(e)==="__proto__":ya(e)&&e.text==="__proto__"}function XF(e,t){switch(e=Wc(e),e.kind){case 231:if(jU(e))return!1;break;case 218:if(e.name)return!1;break;case 219:break;default:return!1}return typeof t=="function"?t(e):!0}function Rz(e){switch(e.kind){case 303:return!R9e(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return je(e.name)&&!!e.initializer;case 169:return je(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 208:return je(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 172:return!!e.initializer;case 226:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return je(e.left)}break;case 277:return!0}return!1}function gf(e,t){if(!Rz(e))return!1;switch(e.kind){case 303:return XF(e.initializer,t);case 304:return XF(e.objectAssignmentInitializer,t);case 260:case 169:case 208:case 172:return XF(e.initializer,t);case 226:return XF(e.right,t);case 277:return XF(e.expression,t)}}function Fz(e){return e.escapedText==="push"||e.escapedText==="unshift"}function jb(e){return Am(e).kind===169}function Am(e){for(;e.kind===208;)e=e.parent.parent;return e}function Oz(e){let t=e.kind;return t===176||t===218||t===262||t===219||t===174||t===177||t===178||t===267||t===307}function So(e){return qd(e.pos)||qd(e.end)}var ure=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(ure||{});function Lz(e){let t=R0e(e),n=e.kind===214&&e.arguments!==void 0;return jz(e.kind,t,n)}function jz(e,t,n){switch(e){case 214:return n?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226: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 oA(e){let t=R0e(e),n=e.kind===214&&e.arguments!==void 0;return d4(e.kind,t,n)}function R0e(e){return e.kind===226?e.operatorToken.kind:e.kind===224||e.kind===225?e.operator:e.kind}var _re=(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.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",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))(_re||{});function d4(e,t,n){switch(e){case 356:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226: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 m4(t)}case 216:case 235:case 224:case 221:case 222:case 220:case 223:return 16;case 225:return 17;case 213:return 18;case 214:return n?19:18;case 215:case 211:case 212:case 236:return 19;case 234:case 238:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 209:case 210:case 218:case 219:case 231:case 14:case 15:case 228:case 217:case 232:case 284:case 285:case 288:return 20;default:return-1}}function m4(e){switch(e){case 61:return 4;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 An(e,t=>{switch(t.kind){case 294:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function cA(){let e=[],t=[],n=new Map,i=!1;return{add:o,lookup:s,getGlobalDiagnostics:c,getDiagnostics:_};function s(u){let g;if(u.file?g=n.get(u.file.fileName):g=e,!g)return;let m=o0(g,u,Do,qre);if(m>=0)return g[m];if(~m>0&&bO(u,g[~m-1]))return g[~m-1]}function o(u){let g;u.file?(g=n.get(u.file.fileName),g||(g=[],n.set(u.file.fileName,g),s0(t,u.file.fileName,wu))):(i&&(i=!1,e=e.slice()),g=e),s0(g,u,qre,bO)}function c(){return i=!0,e}function _(u){if(u)return n.get(u)||[];let g=fP(t,m=>n.get(m));return e.length&&g.unshift(...e),g}}var F9e=/\$\{/g;function Wz(e){return e.replace(F9e,"\\${")}function fre(e){return!!((e.templateFlags||0)&2048)}function Bz(e){return e&&!!(Tk(e)?fre(e):fre(e.head)||pt(e.templateSpans,t=>fre(t.literal)))}var O9e=/[\\"\u0000-\u001f\u2028\u2029\u0085]/g,L9e=/[\\'\u0000-\u001f\u2028\u2029\u0085]/g,j9e=/\r\n|[\\`\u0000-\u0009\u000b-\u001f\u2028\u2029\u0085]/g,W9e=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 F0e(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function B9e(e,t,n){if(e.charCodeAt(0)===0){let i=n.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return W9e.get(e)||F0e(e.charCodeAt(0))}function wg(e,t){let n=t===96?j9e:t===39?L9e:O9e;return e.replace(n,B9e)}var O0e=/[^\u0000-\u007F]/g;function YF(e,t){return e=wg(e,t),O0e.test(e)?e.replace(O0e,n=>F0e(n.charCodeAt(0))):e}var z9e=/["\u0000-\u001f\u2028\u2029\u0085]/g,J9e=/['\u0000-\u001f\u2028\u2029\u0085]/g,G9e=new Map(Object.entries({'"':""","'":"'"}));function U9e(e){return"&#x"+e.toString(16).toUpperCase()+";"}function V9e(e){return e.charCodeAt(0)===0?"�":G9e.get(e)||U9e(e.charCodeAt(0))}function zz(e,t){let n=t===39?J9e:z9e;return e.replace(n,V9e)}function rd(e){let t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&q9e(e.charCodeAt(0))?e.substring(1,t-1):e}function q9e(e){return e===39||e===34||e===96}function Yw(e){let t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}var g4=[""," "];function ZF(e){let t=g4[1];for(let n=g4.length;n<=e;n++)g4.push(g4[n-1]+t);return g4[e]}function h4(){return g4[1].length}function y4(e){var t,n,i,s,o,c=!1;function _(I){let D=Qx(I);D.length>1?(s=s+D.length-1,o=t.length-I.length+xa(D),i=o-t.length===0):i=!1}function u(I){I&&I.length&&(i&&(I=ZF(n)+I,i=!1),t+=I,_(I))}function g(I){I&&(c=!1),u(I)}function m(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,_(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*h4():t.length-o,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>c,hasTrailingWhitespace:()=>!!t.length&&ih(t.charCodeAt(t.length-1)),clear:h,writeKeyword:g,writeOperator:g,writeParameter:g,writeProperty:g,writePunctuation:g,writeSpace:g,writeStringLiteral:g,writeSymbol:(I,D)=>g(I),writeTrailingSemicolon:g,writeComment:m}}function Jz(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 mk(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function cy(e){return fu(mk(e))}function Gz(e,t,n){return t.moduleName||Uz(e,t.fileName,n&&n.fileName)}function L0e(e,t){return e.getCanonicalFileName(as(t,e.getCurrentDirectory()))}function pre(e,t,n){let i=t.getExternalModuleFileFromDeclaration(n);if(!i||i.isDeclarationFile)return;let s=u2(n);if(!(s&&Ha(s)&&!Of(s.text)&&!L0e(e,i.path).includes(L0e(e,El(e.getCommonSourceDirectory())))))return Gz(e,i)}function Uz(e,t,n){let i=u=>e.getCanonicalFileName(u),s=ko(n?Yn(n):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),o=as(t,e.getCurrentDirectory()),c=Hx(s,o,s,i,!1),_=i_(c);return n?KT(_):_}function dre(e,t,n){let i=t.getCompilerOptions(),s;return i.outDir?s=i_(iO(e,t,i.outDir)):s=i_(e),s+n}function mre(e,t){return eO(e,t.getCompilerOptions(),t)}function eO(e,t,n){let i=t.declarationDir||t.outDir,s=i?gre(e,i,n.getCurrentDirectory(),n.getCommonSourceDirectory(),c=>n.getCanonicalFileName(c)):e,o=tO(s);return i_(s)+o}function tO(e){return Gc(e,[".mjs",".mts"])?".d.mts":Gc(e,[".cjs",".cts"])?".d.cts":Gc(e,[".json"])?".d.json.ts":".d.ts"}function Vz(e){return Gc(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Gc(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Gc(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function qz(e,t,n,i){return n?d0(i(),Zf(n,e,t)):e}function rO(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 nO(e,t,n){let i=e.getCompilerOptions();if(i.outFile){let s=n_(i),o=i.emitDeclarationOnly||s===2||s===4;return An(e.getSourceFiles(),c=>(o||!xl(c))&&kS(c,e,n))}else{let s=t===void 0?e.getSourceFiles():[t];return An(s,o=>kS(o,e,n))}}function kS(e,t,n){let i=t.getCompilerOptions();if(i.noEmitForJsFiles&&g_(e)||e.isDeclarationFile||t.isSourceFileFromExternalLibrary(e))return!1;if(n)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!wp(e))return!0;if(t.getResolvedProjectReferenceToRedirect(e.fileName))return!1;if(i.outFile)return!0;if(!i.outDir)return!1;if(i.rootDir||i.composite&&i.configFilePath){let s=as(gE(i,()=>[],t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),o=gre(e.fileName,i.outDir,t.getCurrentDirectory(),s,t.getCanonicalFileName);if(ty(e.fileName,o,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0)return!1}return!0}function iO(e,t,n){return gre(e,n,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function gre(e,t,n,i,s){let o=as(e,n);return o=s(o).indexOf(s(i))===0?o.substring(i.length):o,Bn(t,o)}function sO(e,t,n,i,s,o,c){e.writeFile(n,i,s,_=>{t.add(cc(p.Could_not_write_file_0_Colon_1,n,_))},o,c)}function j0e(e,t,n){if(e.length>Bd(e)&&!n(e)){let i=Yn(e);j0e(i,t,n),t(e)}}function $z(e,t,n,i,s,o){try{i(e,t,n)}catch{j0e(Yn(na(e)),s,o),i(e,t,n)}}function lA(e,t){let n=nh(e);return IP(n,t)}function Zw(e,t){return IP(e,t)}function mh(e){return On(e.members,t=>lc(t)&&Zp(t.body))}function uA(e){if(e&&e.parameters.length>0){let t=e.parameters.length===2&&E0(e.parameters[0]);return e.parameters[t?1:0]}}function hre(e){let t=uA(e);return t&&t.type}function xS(e){if(e.parameters.length&&!fv(e)){let t=e.parameters[0];if(E0(t))return t}}function E0(e){return N0(e.name)}function N0(e){return!!e&&e.kind===80&&Hz(e)}function m2(e){return!!gr(e,t=>t.kind===186?!0:t.kind===80||t.kind===166?!1:"quit")}function CS(e){if(!N0(e))return!1;for(;y_(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===186}function Hz(e){return e.escapedText==="this"}function wS(e,t){let n,i,s,o;return oy(t)?(n=t,t.kind===177?s=t:t.kind===178?o=t:w.fail("Accessor has wrong kind")):or(e,c=>{if(T0(c)&&Ks(c)===Ks(t)){let _=dk(c.name),u=dk(t.name);_===u&&(n?i||(i=c):n=c,c.kind===177&&!s&&(s=c),c.kind===178&&!o&&(o=c))}}),{firstAccessor:n,secondAccessor:i,getAccessor:s,setAccessor:o}}function pl(e){if(!un(e)&&jc(e)||sd(e))return;let t=e.type;return t||!un(e)?t:LP(e)?e.typeExpression&&e.typeExpression.type:h0(e)}function yre(e){return e.type}function Wf(e){return fv(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(un(e)?g6(e):void 0)}function aO(e){return ga(Ab(e),t=>$9e(t)?t.typeParameters:void 0)}function $9e(e){return ad(e)&&!(e.parent.kind===320&&(e.parent.tags.some(td)||e.parent.tags.some(SI)))}function Qz(e){let t=uA(e);return t&&pl(t)}function H9e(e,t,n,i){Q9e(e,t,n.pos,i)}function Q9e(e,t,n,i){i&&i.length&&n!==i[0].pos&&Zw(e,n)!==Zw(e,i[0].pos)&&t.writeLine()}function vre(e,t,n,i){n!==i&&Zw(e,n)!==Zw(e,i)&&t.writeLine()}function K9e(e,t,n,i,s,o,c,_){if(i&&i.length>0){s&&n.writeSpace(" ");let u=!1;for(let g of i)u&&(n.writeSpace(" "),u=!1),_(e,t,n,g.pos,g.end,c),g.hasTrailingNewLine?n.writeLine():u=!0;u&&o&&n.writeSpace(" ")}}function bre(e,t,n,i,s,o,c){let _,u;if(c?s.pos===0&&(_=An(sh(e,s.pos),g)):_=sh(e,s.pos),_){let m=[],h;for(let S of _){if(h){let T=Zw(t,h.end);if(Zw(t,S.pos)>=T+2)break}m.push(S),h=S}if(m.length){let S=Zw(t,xa(m).end);Zw(t,ha(e,s.pos))>=S+2&&(H9e(t,n,s,_),K9e(e,t,n,m,!1,!0,o,i),u={nodePos:s.pos,detachedCommentEndPos:xa(m).end})}}return u;function g(m){return bF(e,m.pos)}}function eI(e,t,n,i,s,o){if(e.charCodeAt(i+1)===42){let c=ww(t,i),_=t.length,u;for(let g=i,m=c.line;g<s;m++){let h=m+1===_?e.length+1:t[m+1];if(g!==i){u===void 0&&(u=W0e(e,t[c.line],i));let T=n.getIndent()*h4()-u+W0e(e,g,h);if(T>0){let x=T%h4(),I=ZF((T-x)/h4());for(n.rawWrite(I);x;)n.rawWrite(" "),x--}else n.rawWrite("")}X9e(e,s,n,o,g,h),g=h}}else n.writeComment(e.substring(i,s))}function X9e(e,t,n,i,s,o){let c=Math.min(t,o-1),_=e.substring(s,c).trim();_?(n.writeComment(_),c!==t&&n.writeLine()):n.rawWrite(i)}function W0e(e,t,n){let i=0;for(;t<n&&Tm(e.charCodeAt(t));t++)e.charCodeAt(t)===9?i+=h4()-i%h4():i++;return i}function Kz(e){return r_(e)!==0}function Sre(e){return tv(e)!==0}function hf(e,t){return!!g2(e,t)}function ei(e,t){return!!Tre(e,t)}function Ks(e){return rl(e)&&Tl(e)||Nc(e)}function Tl(e){return ei(e,256)}function oO(e){return hf(e,16)}function IS(e){return ei(e,64)}function Xz(e){return ei(e,128)}function Em(e){return ei(e,512)}function gk(e){return hf(e,8)}function rp(e){return ei(e,32768)}function g2(e,t){return r_(e)&t}function Tre(e,t){return tv(e)&t}function kre(e,t,n){return e.kind>=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=Yz(e)|536870912),n||t&&un(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=B0e(e)|268435456),z0e(e.modifierFlagsCache)):Y9e(e.modifierFlagsCache))}function r_(e){return kre(e,!0)}function xre(e){return kre(e,!0,!0)}function tv(e){return kre(e,!1)}function B0e(e){let t=0;return e.parent&&!Bi(e)&&(un(e)&&(Oee(e)&&(t|=8388608),Lee(e)&&(t|=16777216),jee(e)&&(t|=33554432),Wee(e)&&(t|=67108864),Bee(e)&&(t|=134217728)),zee(e)&&(t|=65536)),t}function Y9e(e){return e&65535}function z0e(e){return e&131071|(e&260046848)>>>23}function Z9e(e){return z0e(B0e(e))}function Cre(e){return Yz(e)|Z9e(e)}function Yz(e){let t=od(e)?Nm(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function Nm(e){let t=0;if(e)for(let n of e)t|=h2(n.kind);return t}function h2(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 170:return 32768}return 0}function v4(e){return e===57||e===56}function wre(e){return v4(e)||e===54}function _A(e){return e===76||e===77||e===78}function Zz(e){return vn(e)&&_A(e.operatorToken.kind)}function cO(e){return v4(e)||e===61}function b4(e){return vn(e)&&cO(e.operatorToken.kind)}function ly(e){return e>=64&&e<=79}function eJ(e){let t=tJ(e);return t&&!t.isImplements?t.class:void 0}function tJ(e){if(py(e)){if(vf(e.parent)&&ii(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(U2(e.parent)){let t=Ob(e.parent);if(t&&ii(t))return{class:t,isImplements:!1}}}}function ql(e,t){return vn(e)&&(t?e.operatorToken.kind===64:ly(e.operatorToken.kind))&&M_(e.left)}function rv(e){if(ql(e,!0)){let t=e.left.kind;return t===210||t===209}return!1}function lO(e){return eJ(e)!==void 0}function mo(e){return e.kind===80||T4(e)}function h_(e){switch(e.kind){case 80:return e;case 166:do e=e.left;while(e.kind!==80);return e;case 211:do e=e.expression;while(e.kind!==80);return e}}function S4(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===236||e.kind===211&&S4(e.expression)||e.kind===217&&S4(e.expression)}function T4(e){return Nn(e)&&je(e.name)&&mo(e.expression)}function k4(e){if(Nn(e)){let t=k4(e.expression);if(t!==void 0)return t+"."+df(e.name)}else if(wo(e)){let t=k4(e.expression);if(t!==void 0&&tl(e.argumentExpression))return t+"."+dk(e.argumentExpression)}else{if(je(e))return Li(e.escapedText);if(Qd(e))return NA(e)}}function M0(e){return vS(e)&&ay(e)==="prototype"}function fA(e){return e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e||e.parent.kind===236&&e.parent.name===e}function rJ(e){return!!e.parent&&(Nn(e.parent)&&e.parent.name===e||wo(e.parent)&&e.parent.argumentExpression===e)}function Ire(e){return y_(e.parent)&&e.parent.right===e||Nn(e.parent)&&e.parent.name===e||Kb(e.parent)&&e.parent.right===e}function uO(e){return vn(e)&&e.operatorToken.kind===104}function Dre(e){return uO(e.parent)&&e===e.parent.right}function nJ(e){return e.kind===210&&e.properties.length===0}function Pre(e){return e.kind===209&&e.elements.length===0}function pA(e){if(!(!eWe(e)||!e.declarations)){for(let t of e.declarations)if(t.localSymbol)return t.localSymbol}}function eWe(e){return e&&Dr(e.declarations)>0&&ei(e.declarations[0],2048)}function _O(e){return On(DWe,t=>nc(e,t))}function tWe(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 y2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Are(e){let t="",n=tWe(e),i=0,s=n.length,o,c,_,u;for(;i<s;)o=n[i]>>2,c=(n[i]&3)<<4|n[i+1]>>4,_=(n[i+1]&15)<<2|n[i+2]>>6,u=n[i+2]&63,i+1>=s?_=u=64:i+2>=s&&(u=64),t+=y2.charAt(o)+y2.charAt(c)+y2.charAt(_)+y2.charAt(u),i+=3;return t}function rWe(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 Ere(e,t){return e&&e.base64encode?e.base64encode(t):Are(t)}function Nre(e,t){if(e&&e.base64decode)return e.base64decode(t);let n=t.length,i=[],s=0;for(;s<n&&t.charCodeAt(s)!==y2.charCodeAt(64);){let o=y2.indexOf(t[s]),c=y2.indexOf(t[s+1]),_=y2.indexOf(t[s+2]),u=y2.indexOf(t[s+3]),g=(o&63)<<2|c>>4&3,m=(c&15)<<4|_>>2&15,h=(_&3)<<6|u&63;m===0&&_!==0?i.push(g):h===0&&u!==0?i.push(g,m):i.push(g,m,h),s+=4}return rWe(i)}function iJ(e,t){let n=ys(t)?t:t.readFile(e);if(!n)return;let i=qG(e,n);return i.error?void 0:i.config}function tI(e,t){return iJ(e,t)||{}}function fO(e){try{return JSON.parse(e)}catch{return}}function Vd(e,t){return!t.directoryExists||t.directoryExists(e)}var nWe=`\r
`,iWe=`
`;function nv(e){switch(e.newLine){case 0:return nWe;case 1:case void 0:return iWe}}function Dp(e,t=e){return w.assert(t>=e||t===-1),{pos:e,end:t}}function pO(e,t){return Dp(e.pos,t)}function Wb(e,t){return Dp(t,e.end)}function uy(e){let t=od(e)?rS(e.modifiers,Rl):void 0;return t&&!qd(t.end)?Wb(e,t.end):e}function Mm(e){if(ds(e)||xc(e))return Wb(e,e.name.pos);let t=od(e)?zo(e.modifiers):void 0;return t&&!qd(t.end)?Wb(e,t.end):uy(e)}function sJ(e,t){return Dp(e,e+sa(t).length)}function hk(e,t){return Rre(e,e,t)}function dO(e,t,n){return Pp(dA(e,n,!1),dA(t,n,!1),n)}function Mre(e,t,n){return Pp(e.end,t.end,n)}function Rre(e,t,n){return Pp(dA(e,n,!1),t.end,n)}function x4(e,t,n){return Pp(e.end,dA(t,n,!1),n)}function aJ(e,t,n,i){let s=dA(t,n,i);return DP(n,e.end,s)}function J0e(e,t,n){return DP(n,e.end,t.end)}function Fre(e,t){return!Pp(e.pos,e.end,t)}function Pp(e,t,n){return DP(n,e,t)===0}function dA(e,t,n){return qd(e.pos)?-1:ha(t.text,e.pos,!1,n)}function Ore(e,t,n,i){let s=ha(n.text,e,!1,i),o=sWe(s,t,n);return DP(n,o??t,s)}function Lre(e,t,n,i){let s=ha(n.text,e,!1,i);return DP(n,e,Math.min(t,s))}function O_(e,t){return oJ(e.pos,e.end,t)}function oJ(e,t,n){return e<=n.pos&&t>=n.end}function sWe(e,t=0,n){for(;e-- >t;)if(!ih(n.text.charCodeAt(e)))return e}function cJ(e){let t=Cs(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function mA(e){return An(e.declarations,C4)}function C4(e){return oi(e)&&e.initializer!==void 0}function lJ(e){return e.watch&&bo(e,"watch")}function kd(e){e.close()}function kc(e){return e.flags&33554432?e.links.checkFlags:0}function Ap(e,t=!1){if(e.valueDeclaration){let n=t&&e.declarations&&On(e.declarations,X_)||e.flags&32768&&On(e.declarations,Mp)||e.valueDeclaration,i=Db(n);return e.parent&&e.parent.flags&32?i:i&-8}if(kc(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 du(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function rI(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function mO(e){return gA(e)===1}function v2(e){return gA(e)!==0}function gA(e){let{parent:t}=e;switch(t?.kind){case 217:return gA(t);case 225:case 224:let{operator:n}=t;return n===46||n===47?2:0;case 226:let{left:i,operatorToken:s}=t;return i===e&&ly(s.kind)?s.kind===64?1:2:0;case 211:return t.name!==e?0:gA(t);case 303:{let o=gA(t.parent);return e===t.name?aWe(o):o}case 304:return e===t.objectAssignmentInitializer?0:gA(t.parent);case 209:return gA(t);case 249:case 250:return e===t.initializer?1:0;default:return 0}}function aWe(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return w.assertNever(e)}}function uJ(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(!uJ(e[n],t[n]))return!1}else if(typeof e[n]!="function"&&e[n]!==t[n])return!1;return!0}function Q_(e,t){e.forEach(t),e.clear()}function gh(e,t,n){let{onDeleteValue:i,onExistingValue:s}=n;e.forEach((o,c)=>{var _;t?.has(c)?s&&s(o,(_=t.get)==null?void 0:_.call(t,c),c):(e.delete(c),i(o,c))})}function hA(e,t,n){gh(e,t,n);let{createNewValue:i}=n;t?.forEach((s,o)=>{e.has(o)||e.set(o,i(o,s))})}function jre(e){if(e.flags&32){let t=_y(e);return!!t&&ei(t,64)}return!1}function _y(e){var t;return(t=e.declarations)==null?void 0:t.find(ii)}function Mn(e){return e.flags&3899393?e.objectFlags:0}function gO(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&eM(e.declarations[0])}function Wre({moduleSpecifier:e}){return ya(e)?e.text:oc(e)}function _J(e){let t;return Es(e,n=>{Zp(n)&&(t=n)},n=>{for(let i=n.length-1;i>=0;i--)if(Zp(n[i])){t=n[i];break}}),t}function nd(e,t){return e.has(t)?!1:(e.add(t),!0)}function b2(e){return ii(e)||hu(e)||v_(e)}function fJ(e){return e>=182&&e<=205||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===233||e===312||e===313||e===314||e===315||e===316||e===317||e===318}function Oo(e){return e.kind===211||e.kind===212}function pJ(e){return e.kind===211?e.name:(w.assert(e.kind===212),e.argumentExpression)}function hO(e){return e.kind===275||e.kind===279}function nI(e){for(;Oo(e);)e=e.expression;return e}function Bre(e,t){if(Oo(e.parent)&&rJ(e))return n(e.parent);function n(i){if(i.kind===211){let s=t(i.name);if(s!==void 0)return s}else if(i.kind===212)if(je(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(je(i.expression))return t(i.expression)}}function iI(e,t){for(;;){switch(e.kind){case 225:e=e.operand;continue;case 226:e=e.left;continue;case 227:e=e.condition;continue;case 215:e=e.tag;continue;case 213:if(t)return e;case 234:case 212:case 211:case 235:case 355:case 238:e=e.expression;continue}return e}}function oWe(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 cWe(e,t){this.flags=t,(w.isDebugging||_n)&&(this.checker=e)}function lWe(e,t){this.flags=t,w.isDebugging&&(this.checker=e)}function zre(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 uWe(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 _We(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 fWe(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(i=>i)}var mu={getNodeConstructor:()=>zre,getTokenConstructor:()=>uWe,getIdentifierConstructor:()=>_We,getPrivateIdentifierConstructor:()=>zre,getSourceFileConstructor:()=>zre,getSymbolConstructor:()=>oWe,getTypeConstructor:()=>cWe,getSignatureConstructor:()=>lWe,getSourceMapSourceConstructor:()=>fWe},G0e=[];function U0e(e){G0e.push(e),e(mu)}function Jre(e){Object.assign(mu,e),or(G0e,t=>t(mu))}function hh(e,t){return e.replace(/\{(\d+)\}/g,(n,i)=>""+w.checkDefined(t[+i]))}var yO;function Gre(e){yO=e}function Ure(e){!yO&&e&&(yO=e())}function Is(e){return yO&&yO[e.key]||e.message}function S2(e,t,n,i,s,...o){n+i>t.length&&(i=t.length-n),Pte(t,n,i);let c=Is(s);return pt(o)&&(c=hh(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 V0e(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(V0e(o,t))):s.relatedInformation.push(o)}return s}function T2(e,t){let n=[];for(let i of e)n.push(V0e(i,t));return n}function kl(e,t,n,i,...s){Pte(e.text,t,n);let o=Is(i);return pt(s)&&(o=hh(o,s)),{file:e,start:t,length:n,messageText:o,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function k2(e,...t){let n=Is(e);return pt(t)&&(n=hh(n,t)),n}function cc(e,...t){let n=Is(e);return pt(t)&&(n=hh(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 vO(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 Ps(e,t,...n){let i=Is(t);return pt(n)&&(i=hh(i,n)),{messageText:i,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function Vre(e,t){let n=e;for(;n.next;)n=n.next[0];n.next=[t]}function dJ(e){return e.file?e.file.path:void 0}function yA(e,t){return qre(e,t)||dWe(e,t)||0}function qre(e,t){let n=mJ(e),i=mJ(t);return wu(dJ(e),dJ(t))||Po(e.start,t.start)||Po(e.length,t.length)||Po(n,i)||mWe(e,t)||0}function dWe(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 yA(n,s)})||0:e.relatedInformation?-1:1}function mWe(e,t){let n=gJ(e),i=gJ(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=wu(n,i);return c||(c=gWe(s,o),c)?c:e.canonicalHead&&!t.canonicalHead?-1:t.canonicalHead&&!e.canonicalHead?1:0}function gWe(e,t){return e===void 0&&t===void 0?0:e===void 0?1:t===void 0?-1:q0e(e,t)||$0e(e,t)}function q0e(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=q0e(e[i].next,t[i].next),n)return n;return 0}function $0e(e,t){let n;for(let i=0;i<t.length;i++){if(n=wu(e[i].messageText,t[i].messageText),n)return n;if(e[i].next!==void 0&&(n=$0e(e[i].next,t[i].next),n))return n}return 0}function bO(e,t){let n=mJ(e),i=mJ(t),s=gJ(e),o=gJ(t);return wu(dJ(e),dJ(t))===0&&Po(e.start,t.start)===0&&Po(e.length,t.length)===0&&Po(n,i)===0&&hWe(s,o)}function mJ(e){var t;return((t=e.canonicalHead)==null?void 0:t.code)||e.code}function gJ(e){var t;return((t=e.canonicalHead)==null?void 0:t.messageText)||e.messageText}function hWe(e,t){let n=typeof e=="string"?e:e.messageText,i=typeof t=="string"?t:t.messageText;return wu(n,i)===0}function w4(e){return e===4||e===2||e===1||e===6?1:0}function H0e(e){if(e.transformFlags&2)return Wu(e)||Hb(e)?e:Es(e,H0e)}function yWe(e){return e.isDeclarationFile?void 0:H0e(e)}function vWe(e,t){return(Bk(e,t)===99||Gc(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function I4(e){switch(Hre(e)){case 3:return s=>{s.externalModuleIndicator=_M(s)||!s.isDeclarationFile||void 0};case 1:return s=>{s.externalModuleIndicator=_M(s)};case 2:let t=[_M];(e.jsx===4||e.jsx===5)&&t.push(yWe),t.push(vWe);let n=uf(...t);return s=>void(s.externalModuleIndicator=n(s,e))}}function hJ(e){let t=Bu(e);return 3<=t&&t<=99||D4(e)||P4(e)}function r0t(e){return e}var Du={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===199&&99||1)},module:{dependencies:["target"],computeValue:e=>typeof e.module=="number"?e.module:Du.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(Du.module.computeValue(e)){case 1:t=2;break;case 100:case 101: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=Du.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(Du.module.computeValue(e)){case 100:case 101:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:Du.esModuleInterop.computeValue(e)||Du.module.computeValue(e)===4||Du.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{let t=Du.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=Du.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}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>e.resolveJsonModule!==void 0?e.resolveJsonModule:Du.moduleResolution.computeValue(e)===100},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||Du.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&Du.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?Du.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>Pu(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>Pu(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>Pu(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>Pu(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>Pu(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>Pu(e,"strictPropertyInitialization")},strictBuiltinIteratorReturn:{dependencies:["strict"],computeValue:e=>Pu(e,"strictBuiltinIteratorReturn")},alwaysStrict:{dependencies:["strict"],computeValue:e=>Pu(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>Pu(e,"useUnknownInCatchVariables")}},vA=Du,$re=Du.allowImportingTsExtensions.computeValue,wa=Du.target.computeValue,n_=Du.module.computeValue,Bu=Du.moduleResolution.computeValue,Hre=Du.moduleDetection.computeValue,id=Du.isolatedModules.computeValue,yh=Du.esModuleInterop.computeValue,x2=Du.allowSyntheticDefaultImports.computeValue,D4=Du.resolvePackageJsonExports.computeValue,P4=Du.resolvePackageJsonImports.computeValue,DS=Du.resolveJsonModule.computeValue,K_=Du.declaration.computeValue,R0=Du.preserveConstEnums.computeValue,PS=Du.incremental.computeValue,SO=Du.declarationMap.computeValue,F0=Du.allowJs.computeValue,A4=Du.useDefineForClassFields.computeValue;function E4(e){return e>=5&&e<=99}function TO(e){switch(n_(e)){case 0:case 4:case 3:return!1}return!0}function Qre(e){return e.allowUnreachableCode===!1}function Kre(e){return e.allowUnusedLabels===!1}function sI(e){return e>=3&&e<=99||e===100}function Xre(e){return 101<=e&&e<=199||e===200||e===99}function Pu(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function kO(e){return Nl(WG.type,(t,n)=>t===e?n:void 0)}function yJ(e){return e.useDefineForClassFields!==!1&&wa(e)>=9}function Yre(e,t){return n2(t,e,Kie)}function Zre(e,t){return n2(t,e,Xie)}function ene(e,t){return n2(t,e,Yie)}function xO(e,t){return t.strictFlag?Pu(e,t.name):t.allowJsFlag?F0(e):e[t.name]}function CO(e){let t=e.jsx;return t===2||t===4||t===5}function N4(e,t){let n=t?.pragmas.get("jsximportsource"),i=ks(n)?n[n.length-1]:n,s=t?.pragmas.get("jsxruntime"),o=ks(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 wO(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function vJ(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 bJ(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 m=ko(u,e,t);DA(m)||(m=El(m),g!==!1&&!n?.has(m)&&(i||(i=Kp())).add(g.realPath,u),(n||(n=new Map)).set(m,g))},setSymlinksFromResolutions(u,g,m){w.assert(!o),o=!0,u(h=>_(this,h.resolvedModule)),g(h=>_(this,h.resolvedTypeReferenceDirective)),m.forEach(h=>_(this,h.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>o,setSymlinksFromResolution(u){_(this,u)},hasAnySymlinks:c};function c(){return!!s?.size||!!n&&!!Nl(n,u=>!!u)}function _(u,g){if(!g||!g.originalPath||!g.resolvedFileName)return;let{resolvedFileName:m,originalPath:h}=g;u.setSymlinkedFile(ko(h,e,t),m);let[S,T]=bWe(m,h,e,t)||qe;S&&T&&u.setSymlinkedDirectory(T,{real:El(S),realPath:El(ko(S,e,t))})}}function bWe(e,t,n,i){let s=Iu(as(e,n)),o=Iu(as(t,n)),c=!1;for(;s.length>=2&&o.length>=2&&!Q0e(s[s.length-2],i)&&!Q0e(o[o.length-2],i)&&i(s[s.length-1])===i(o[o.length-1]);)s.pop(),o.pop(),c=!0;return c?[Ib(s),Ib(o)]:void 0}function Q0e(e,t){return e!==void 0&&(t(e)==="node_modules"||Yi(e,"@"))}function SWe(e){return _B(e.charCodeAt(0))?e.slice(1):void 0}function SJ(e,t,n){let i=WW(e,t,n);return i===void 0?void 0:SWe(i)}var tne=/[^\w\s/]/g;function K0e(e){return e.replace(tne,TWe)}function TWe(e){return"\\"+e}var kWe=[42,63],xWe=["node_modules","bower_components","jspm_packages"],rne=`(?!(${xWe.join("|")})(/|$))`,X0e={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${rne}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>ine(e,X0e.singleAsteriskRegexFragment)},Y0e={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${rne}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>ine(e,Y0e.singleAsteriskRegexFragment)},Z0e={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>ine(e,Z0e.singleAsteriskRegexFragment)},nne={files:X0e,directories:Y0e,exclude:Z0e};function bA(e,t,n){let i=IO(e,t,n);return!i||!i.length?void 0:`^(${i.map(c=>`(${c})`).join("|")})${n==="exclude"?"($|/)":"$"}`}function IO(e,t,n){if(!(e===void 0||e.length===0))return ga(e,i=>i&&DO(i,t,n,nne[n]))}function TJ(e){return!/[.*?]/.test(e)}function kJ(e,t,n){let i=e&&DO(e,t,n,nne[n]);return i&&`^(${i})${n==="exclude"?"($|/)":"$"}`}function DO(e,t,n,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:s,replaceWildcardCharacter:o}=nne[n]){let c="",_=!1,u=B8(e,t),g=xa(u);if(n!=="exclude"&&g==="**")return;u[0]=Ky(u[0]),TJ(g)&&u.push("**","*");let m=0;for(let h of u){if(h==="**")c+=s;else if(n==="directories"&&(c+="(",m++),_&&(c+=Fo),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(tne,o),S!==h&&(c+=rne),c+=S}else c+=h.replace(tne,o);_=!0}for(;m>0;)c+=")?",m--;return c}function ine(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function PO(e,t,n,i,s){e=na(e),s=na(s);let o=Bn(s,e);return{includeFilePatterns:hr(IO(n,o,"files"),c=>`^${c}$`),includeFilePattern:bA(n,o,"files"),includeDirectoryPattern:bA(n,o,"directories"),excludePattern:bA(t,o,"exclude"),basePaths:CWe(e,n,i)}}function iv(e,t){return new RegExp(e,t?"":"i")}function xJ(e,t,n,i,s,o,c,_,u){e=na(e),o=na(o);let g=PO(e,n,i,s,o),m=g.includeFilePatterns&&g.includeFilePatterns.map(E=>iv(E,s)),h=g.includeDirectoryPattern&&iv(g.includeDirectoryPattern,s),S=g.excludePattern&&iv(g.excludePattern,s),T=m?m.map(()=>[]):[[]],x=new Map,I=fu(s);for(let E of g.basePaths)D(E,Bn(o,E),c);return Qp(T);function D(E,O,F){let B=I(u(O));if(x.has(B))return;x.set(B,!0);let{files:G,directories:$}=_(E);for(let K of lf(G,wu)){let U=Bn(E,K),me=Bn(O,K);if(!(t&&!Gc(U,t))&&!(S&&S.test(me)))if(!m)T[0].push(U);else{let te=Sc(m,V=>V.test(me));te!==-1&&T[te].push(U)}}if(!(F!==void 0&&(F--,F===0)))for(let K of lf($,wu)){let U=Bn(E,K),me=Bn(O,K);(!h||h.test(me))&&(!S||!S.test(me))&&D(U,me,F)}}}function CWe(e,t,n){let i=[e];if(t){let s=[];for(let o of t){let c=ff(o)?o:na(Bn(e,o));s.push(wWe(c))}s.sort(bw(!n));for(let o of s)Oi(i,c=>!kp(c,o,e,!n))&&i.push(o)}return i}function wWe(e){let t=TY(e,kWe);return t<0?xw(e)?Ky(Yn(e)):e:e.substring(0,e.lastIndexOf(Fo,t))}function AO(e,t){return t||EO(e)||3}function EO(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 NO=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],CJ=Qp(NO),IWe=[...NO,[".json"]],DWe=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],PWe=[[".js",".jsx"],[".mjs"],[".cjs"]],aI=Qp(PWe),wJ=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],AWe=[...wJ,[".json"]],MO=[".d.ts",".d.cts",".d.mts"],M4=[".ts",".cts",".mts",".tsx"],RO=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"];function SA(e,t){let n=e&&F0(e);if(!t||t.length===0)return n?wJ:NO;let i=n?wJ:NO,s=Qp(i);return[...i,...Vi(t,c=>c.scriptKind===7||n&&EWe(c.scriptKind)&&!s.includes(c.extension)?[c.extension]:void 0)]}function R4(e,t){return!e||!DS(e)?t:t===wJ?AWe:t===NO?IWe:[...t,[".json"]]}function EWe(e){return e===1||e===2}function vh(e){return pt(aI,t=>nc(e,t))}function yk(e){return pt(CJ,t=>nc(e,t))}function sne(e){return pt(M4,t=>nc(e,t))&&!Ll(e)}var ane=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(ane||{});function NWe({imports:e},t=uf(vh,yk)){return po(e,({text:n})=>Of(n)&&!Gc(n,RO)?t(n):void 0)||!1}function one(e,t,n,i){let s=Bu(n),o=3<=s&&s<=99;if(e==="js"||t===99&&o)return RI(n)&&c()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!RI(n))return i&&NWe(i)?2:0;return c();function c(){let _=!1,u=i?.imports.length?i.imports:i&&g_(i)?MWe(i).map(g=>g.arguments[0]):qe;for(let g of u)if(Of(g.text)){if(o&&t===1&&cV(i,g,n)===99||Gc(g.text,RO))continue;if(yk(g.text))return 3;vh(g.text)&&(_=!0)}return _?2:0}}function MWe(e){let t=0,n;for(let i of e.statements){if(t>3)break;Q6(i)?n=Ki(n,i.declarationList.declarations.map(s=>s.initializer)):$l(i)&&R_(i.expression,!0)?n=jr(n,i.expression):t++}return n||qe}function IJ(e,t,n){if(!e)return!1;let i=SA(t,n);for(let s of Qp(R4(t,i)))if(nc(e,s))return!0;return!1}function ebe(e){let t=e.match(/\//g);return t?t.length:0}function F4(e,t){return Po(ebe(e),ebe(t))}var cne=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function i_(e){for(let t of cne){let n=lne(e,t);if(n!==void 0)return n}return e}function lne(e,t){return nc(e,t)?O4(e,t):void 0}function O4(e,t){return e.substring(0,e.length-t.length)}function fy(e,t){return i6(e,t,cne,!1)}function C2(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 tbe=new WeakMap;function L4(e){let t=tbe.get(e);if(t!==void 0)return t;let n,i,s=bm(e);for(let o of s){let c=C2(o);c!==void 0&&(typeof c=="string"?(n??(n=new Set)).add(c):(i??(i=[])).push(c))}return tbe.set(e,t={matchableStringSet:n,patterns:i}),t}function qd(e){return!(e>=0)}function FO(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||Yi(e,".d.")&&Jo(e,".ts")}function TA(e){return FO(e)||e===".json"}function kA(e){let t=bh(e);return t!==void 0?t:w.fail(`File ${e} has unknown extension.`)}function rbe(e){return bh(e)!==void 0}function bh(e){return On(cne,t=>nc(e,t))}function xA(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}var DJ={files:qe,directories:qe};function PJ(e,t){let{matchableStringSet:n,patterns:i}=e;if(n?.has(t))return t;if(!(i===void 0||i.length===0))return jW(i,s=>s,t)}function AJ(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!==qe,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function une(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 EJ(e){return{pos:w0(e),end:e.end}}function NJ(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 nbe(e,t,n,!1)}function _ne(e,t,n){return nbe(e,t,n,!0)}function nbe(e,t,n,i){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||!i&&t.noCheck||n.isSourceOfProjectReferenceRedirect(e.fileName)||!CA(e,t)}function CA(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)&&xA(e,t);return UP(e,t.checkJs)||i||e.scriptKind===7}function OO(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&PY(e,t,OO)}function wA(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,m=0;for(;e.charCodeAt(m)===48;)m++;return e.slice(m,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,m=0;g>=n;g--,m+=t){let h=m>>>4,S=e.charCodeAt(g),x=(S<=57?S-48:10+S-(S<=70?65:97))<<(m&15);o[h]|=x;let I=x>>>16;I&&(o[h+1]|=I)}let c="",_=o.length-1,u=!0;for(;u;){let g=0;u=!1;for(let m=_;m>=0;m--){let h=g<<16|o[m],S=h/10|0;o[m]=S,g=h-S*10,S&&!u&&(_=m,u=!0)}c=g+c}return c}function AS({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function fne(e){if(LO(e,!1))return MJ(e)}function MJ(e){let t=e.startsWith("-"),n=wA(`${t?e.slice(1):e}n`);return{negative:t,base10Value:n}}function LO(e,t){if(e==="")return!1;let n=ah(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===AS({negative:o,base10Value:wA(n.getTokenValue())}))}function Bb(e){return!!(e.flags&33554432)||$6(e)||jF(e)||OWe(e)||FWe(e)||!(Ud(e)||RWe(e))}function RWe(e){return je(e)&&Eu(e.parent)&&e.parent.name===e}function FWe(e){for(;e.kind===80||e.kind===211;)e=e.parent;if(e.kind!==167)return!1;if(ei(e.parent,64))return!0;let t=e.parent.parent.kind;return t===264||t===187}function OWe(e){if(e.kind!==80)return!1;let t=gr(e.parent,n=>{switch(n.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}});return t?.token===119||t?.parent.kind===264}function pne(e){return yf(e)&&je(e.typeName)}function dne(e,t=u0){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 IA(e,t){return e.pos=t,e}function cI(e,t){return e.end=t,e}function $d(e,t,n){return cI(IA(e,t),n)}function RJ(e,t,n){return $d(e,t,t+n)}function mne(e,t){return e&&(e.flags=t),e}function Xa(e,t){return e&&t&&(e.parent=t),e}function zb(e,t){if(!e)return e;return q2(e,Rw(e)?n:s),e;function n(o,c){if(t&&o.parent===c)return"skip";Xa(o,c)}function i(o){if(Lf(o))for(let c of o.jsDoc)n(c,o),q2(c,n)}function s(o,c){return n(o,c)||i(o)}}function LWe(e){return!Fl(e)}function FJ(e){return gu(e)&&Oi(e.elements,LWe)}function gne(e){for(w.assertIsDefined(e.parent);;){let t=e.parent;if(b_(t)){e=t;continue}if($l(t)||B2(t)||$b(t)&&(t.initializer===e||t.incrementor===e))return!0;if(GA(t)){if(e!==xa(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 DA(e){return pt(L8,t=>e.includes(t))}function hne(e){if(!e.parent)return;switch(e.kind){case 168:let{parent:n}=e;return n.kind===195?void 0:n.typeParameters;case 169:return e.parent.parameters;case 204:return e.parent.templateSpans;case 239:return e.parent.templateSpans;case 170:{let{parent:i}=e;return JS(i)?i.modifiers:void 0}case 298:return e.parent.heritageClauses}let{parent:t}=e;if(Fw(e))return Ak(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return uS(e)?t.members:void 0;case 192:case 193:return t.types;case 189:case 209:case 356:case 275:case 279:return t.elements;case 210:case 292:return t.properties;case 213:case 214:return di(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return D6(e)?t.children:void 0;case 286:case 285:return di(e)?t.typeArguments:void 0;case 241:case 296:case 297:case 268:return t.statements;case 269:return t.clauses;case 263:case 231:return rl(e)?t.members:void 0;case 266:return _v(e)?t.members:void 0;case 307:return t.statements}}function jO(e){if(!e.typeParameters){if(pt(e.parameters,t=>!pl(t)))return!0;if(e.kind!==219){let t=_l(e.parameters);if(!(t&&E0(t)))return!0}}return!1}function PA(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function yne(e){return e.kind===260&&e.parent.kind===299}function O0(e){return e.kind===218||e.kind===219}function ES(e){return e.replace(/\$/g,()=>"\\$")}function Sh(e){return(+e).toString()===e}function WO(e,t,n,i,s){let o=s&&e==="new";return!o&&$_(e,t)?A.createIdentifier(e):!i&&!o&&Sh(e)&&+e>=0?A.createNumericLiteral(+e):A.createStringLiteral(e,!!n)}function AA(e){return!!(e.flags&262144&&e.isThisType)}function BO(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,_=0,u=0;for(;_>=0;)switch(c=_,_=e.indexOf("/",c+1),u){case 0:e.indexOf(Ch,c)===c&&(t=c,n=_,u=1);break;case 1:case 2:u===1&&e.charAt(c+1)==="@"?u=2:(i=_,u=3);break;case 3:e.indexOf(Ch,c)===c?u=1:u=3;break}return s=c,u>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:n,packageRootIndex:i,fileNameIndex:s}:void 0}function w2(e){switch(e.kind){case 168:case 263:case 264:case 265:case 266:case 346:case 338:case 340:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}function j4(e){return LS(e)||Lc(e)||jc(e)||gl(e)||hu(e)||w2(e)||nl(e)&&!mS(e)&&!xg(e)}function W4(e){if(!LP(e))return!1;let{isBracketed:t,typeExpression:n}=e;return t||!!n&&n.type.kind===316}function OJ(e,t){if(e.length===0)return!1;let n=e.charCodeAt(0);return n===35?e.length>1&&bg(e.charCodeAt(1),t):bg(n,t)}function vne(e){var t;return((t=YJ(e))==null?void 0:t.kind)===0}function zO(e){return un(e)&&(e.type&&e.type.kind===316||Pw(e).some(W4))}function I2(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||zO(e);case 348:case 341:return W4(e);default:return!1}}function bne(e){let t=e.kind;return(t===211||t===212)&&z2(e.expression)}function LJ(e){return un(e)&&b_(e)&&Lf(e)&&!!AB(e)}function jJ(e){return w.checkDefined(JO(e))}function JO(e){let t=AB(e);return t&&t.typeExpression&&t.typeExpression.type}function EA(e){return je(e)?e.escapedText:D2(e)}function B4(e){return je(e)?Ln(e):NA(e)}function Sne(e){let t=e.kind;return t===80||t===295}function D2(e){return`${e.namespace.escapedText}:${Ln(e.name)}`}function NA(e){return`${Ln(e.namespace)}:${Ln(e.name)}`}function WJ(e){return je(e)?Ln(e):NA(e)}function Ep(e){return!!(e.flags&8576)}function Np(e){return e.flags&8192?e.escapedName:e.flags&384?gc(""+e.value):w.fail()}function P2(e){return!!e&&(Nn(e)||wo(e)||vn(e))}function Tne(e){return e===void 0?!1:!!jI(e.attributes)}var jWe=String.prototype.replace;function vk(e,t){return jWe.call(e,"*",t)}function GO(e){return je(e.name)?e.name.escapedText:gc(e.name.text)}function kne(e){switch(e.kind){case 168:case 169:case 172:case 171:case 185:case 184:case 179:case 180:case 181:case 174:case 173:case 175:case 176:case 177:case 178:case 183:case 182:case 186:case 187:case 188:case 189:case 192:case 193:case 196:case 190:case 191:case 197:case 198:case 194:case 195:case 203:case 205:case 202:case 328:case 329:case 346:case 338:case 340:case 345:case 344:case 324:case 325:case 326:case 341:case 348:case 317:case 315:case 314:case 312:case 313:case 322:case 318:case 309:case 333:case 335:case 334:case 350:case 343:case 199:case 200:case 262:case 241:case 268:case 243: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 260:case 208:case 263:case 264:case 265:case 266:case 267:case 272:case 271:case 278:case 277:case 242:case 259:case 282:return!0}return!1}function Ml(e,t=!1,n=!1,i=!1){return{value:e,isSyntacticallyString:t,resolvedOtherFiles:n,hasExternalReferences:i}}function xne({evaluateElementAccessExpression:e,evaluateEntityNameExpression:t}){function n(s,o){let c=!1,_=!1,u=!1;switch(s=Ka(s),s.kind){case 224:let g=n(s.operand,o);if(_=g.resolvedOtherFiles,u=g.hasExternalReferences,typeof g.value=="number")switch(s.operator){case 40:return Ml(g.value,c,_,u);case 41:return Ml(-g.value,c,_,u);case 55:return Ml(~g.value,c,_,u)}break;case 226:{let m=n(s.left,o),h=n(s.right,o);if(c=(m.isSyntacticallyString||h.isSyntacticallyString)&&s.operatorToken.kind===40,_=m.resolvedOtherFiles||h.resolvedOtherFiles,u=m.hasExternalReferences||h.hasExternalReferences,typeof m.value=="number"&&typeof h.value=="number")switch(s.operatorToken.kind){case 52:return Ml(m.value|h.value,c,_,u);case 51:return Ml(m.value&h.value,c,_,u);case 49:return Ml(m.value>>h.value,c,_,u);case 50:return Ml(m.value>>>h.value,c,_,u);case 48:return Ml(m.value<<h.value,c,_,u);case 53:return Ml(m.value^h.value,c,_,u);case 42:return Ml(m.value*h.value,c,_,u);case 44:return Ml(m.value/h.value,c,_,u);case 40:return Ml(m.value+h.value,c,_,u);case 41:return Ml(m.value-h.value,c,_,u);case 45:return Ml(m.value%h.value,c,_,u);case 43:return Ml(m.value**h.value,c,_,u)}else if((typeof m.value=="string"||typeof m.value=="number")&&(typeof h.value=="string"||typeof h.value=="number")&&s.operatorToken.kind===40)return Ml(""+m.value+h.value,c,_,u);break}case 11:case 15:return Ml(s.text,!0);case 228:return i(s,o);case 9:return Ml(+s.text);case 80:return t(s,o);case 211:if(mo(s))return t(s,o);break;case 212:return e(s,o)}return Ml(void 0,c,_,u)}function i(s,o){let c=s.head.text,_=!1,u=!1;for(let g of s.templateSpans){let m=n(g.expression,o);if(m.value===void 0)return Ml(void 0,!0);c+=m.value,c+=g.literal.text,_||(_=m.resolvedOtherFiles),u||(u=m.hasExternalReferences)}return Ml(c,!0,_,u)}return n}function BJ(e){return fS(e)&&vd(e.type)||HA(e)&&vd(e.typeExpression)}function z4(e){let t=e.members;for(let n of t)if(n.kind===176&&Zp(n.body))return n}function zJ({compilerOptions:e,requireSymbol:t,argumentsSymbol:n,error:i,getSymbolOfDeclaration:s,globals:o,lookup:c,setRequiresScopeChangeCache:_=sS,getRequiresScopeChangeCache:u=sS,onPropertyWithInvalidInitializer:g=ey,onFailedToResolveSymbol:m=sS,onSuccessfullyResolvedSymbol:h=sS}){var S=e.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",T=yJ(e),x=ea();return I;function I(B,G,$,K,U,me){var te,V,ne;let ie=B,oe,de,ye,H,ve,Ge=!1,De,se=ys(G)?G:G.escapedText;e:for(;B;){if(se==="const"&&BJ(B))return;if(w6(B)&&de&&B.name===de&&(de=B,B=B.parent),Sg(B)&&B.locals&&!Zy(B)&&(oe=c(B.locals,se,$))){let xe=!0;if(Ns(B)&&de&&de!==B.body?($&oe.flags&788968&&de.kind!==320&&(xe=oe.flags&262144?!!(de.flags&16)||de===B.type||de.kind===169||de.kind===341||de.kind===342||de.kind===168:!1),$&oe.flags&3&&(D(oe,B,de)?xe=!1:oe.flags&1&&(xe=de.kind===169||!!(de.flags&16)||de===B.type&&!!gr(oe.valueDeclaration,Bi)))):B.kind===194&&(xe=de===B.trueType),xe)break e;oe=void 0}switch(Ge=Ge||E(B,de),B.kind){case 307:if(!mf(B))break;case 267:let xe=((te=s(B))==null?void 0:te.exports)||x;if(B.kind===307||nl(B)&&B.flags&33554432&&!xg(B)){if(oe=xe.get("default")){let ct=pA(oe);if(ct&&oe.flags&$&&ct.escapedName===se)break e;oe=void 0}let tt=xe.get(se);if(tt&&tt.flags===2097152&&(Yo(tt,281)||Yo(tt,280)))break}if(se!=="default"&&(oe=c(xe,se,$&2623475)))if(Mi(B)&&B.commonJsModuleIndicator&&!((V=oe.declarations)!=null&&V.some(td)))oe=void 0;else break e;break;case 266:if(oe=c(((ne=s(B))==null?void 0:ne.exports)||x,se,$&8)){K&&id(e)&&!(B.flags&33554432)&&Fr(B)!==Fr(oe.valueDeclaration)&&i(ie,p.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Li(se),S,`${Li(s(B).escapedName)}.${Li(se)}`);break e}break;case 172:if(!Ks(B)){let tt=z4(B.parent);tt&&tt.locals&&c(tt.locals,se,$&111551)&&(w.assertNode(B,ds),H=B)}break;case 263:case 231:case 264:if(oe=c(s(B).members||x,se,$&788968)){if(!F(oe,B)){oe=void 0;break}if(de&&Ks(de)){K&&i(ie,p.Static_members_cannot_reference_class_type_parameters);return}break e}if(ml(B)&&$&32){let tt=B.name;if(tt&&se===tt.escapedText){oe=B.symbol;break e}}break;case 233:if(de===B.expression&&B.parent.token===96){let tt=B.parent.parent;if(ii(tt)&&(oe=c(s(tt).members,se,$&788968))){K&&i(ie,p.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(De=B.parent.parent,(ii(De)||De.kind===264)&&(oe=c(s(De).members,se,$&788968))){K&&i(ie,p.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(wa(e)>=2)break;case 174:case 176:case 177:case 178:case 262:if($&3&&se==="arguments"){oe=n;break e}break;case 218:if($&3&&se==="arguments"){oe=n;break e}if($&16){let tt=B.name;if(tt&&se===tt.escapedText){oe=B.symbol;break e}}break;case 170:B.parent&&B.parent.kind===169&&(B=B.parent),B.parent&&(rl(B.parent)||B.parent.kind===263)&&(B=B.parent);break;case 346:case 338:case 340:case 351:let _e=Hw(B);_e&&(B=_e.parent);break;case 169:de&&(de===B.initializer||de===B.name&&Ws(de))&&(ve||(ve=B));break;case 208:de&&(de===B.initializer||de===B.name&&Ws(de))&&jb(B)&&!ve&&(ve=B);break;case 195:if($&262144){let tt=B.typeParameter.name;if(tt&&se===tt.escapedText){oe=B.typeParameter.symbol;break e}}break;case 281:de&&de===B.propertyName&&B.parent.parent.moduleSpecifier&&(B=B.parent.parent.parent);break}O(B,de)&&(ye=B),de=B,B=ad(B)?VF(B)||B.parent:(ip(B)||p7(B))&&Fb(B)||B.parent}if(U&&oe&&(!ye||oe!==ye.symbol)&&(oe.isReferenced|=$),!oe){if(de&&(w.assertNode(de,Mi),de.commonJsModuleIndicator&&se==="exports"&&$&de.symbol.flags))return de.symbol;me||(oe=c(o,se,$))}if(!oe&&ie&&un(ie)&&ie.parent&&R_(ie.parent,!1))return t;if(K){if(H&&g(ie,se,H,oe))return;oe?h(ie,oe,$,de,ve,Ge):m(ie,G,$,K)}return oe}function D(B,G,$){let K=wa(e),U=G;if(Bi($)&&U.body&&B.valueDeclaration&&B.valueDeclaration.pos>=U.body.pos&&B.valueDeclaration.end<=U.body.end&&K>=2){let V=u(U);return V===void 0&&(V=or(U.parameters,me)||!1,_(U,V)),!V}return!1;function me(V){return te(V.name)||!!V.initializer&&te(V.initializer)}function te(V){switch(V.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return te(V.name);case 172:return Tl(V)?!T:te(V.name);default:return NB(V)||ju(V)?K<7:Da(V)&&V.dotDotDotToken&&np(V.parent)?K<4:di(V)?!1:Es(V,te)||!1}}}function E(B,G){return B.kind!==219&&B.kind!==218?MS(B)||(xo(B)||B.kind===172&&!Ks(B))&&(!G||G!==B.name):G&&G===B.name?!1:B.asteriskToken||ei(B,1024)?!0:!hS(B)}function O(B,G){switch(B.kind){case 169:return!!G&&G===B.name;case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function F(B,G){if(B.declarations){for(let $ of B.declarations)if($.kind===168&&(ad($.parent)?bS($.parent):$.parent)===G)return!(ad($.parent)&&On($.parent.parent.tags,td))}return!1}}function UO(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 224:return e.operator===41?L_(e.operand)||t&&LA(e.operand):e.operator===40?L_(e.operand):!1;default:return!1}}function Cne(e){for(;e.kind===217;)e=e.expression;return e}function VO(e){switch(w.type(e),e.kind){case 169:case 171:case 172:case 208:case 211:case 212:case 226:case 260:case 277:case 303:case 304:case 341:case 348:return!0;default:return!1}}function JJ(e){let t=gr(e,sc);return!!t&&!t.importClause}var wne=["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"],Ine=new Set(wne),qO=new Set(["node:sea","node:sqlite","node:test","node:test/reporters"]),lI=new Set([...wne,...wne.map(e=>`node:${e}`),...qO]);function $O(e,t,n,i){let s=un(e),o=/import|require/g;for(;o.exec(e.text)!==null;){let c=WWe(e,o.lastIndex,t);if(s&&R_(c,n))i(c,c.arguments[0]);else if(jf(c)&&c.arguments.length>=1&&(!n||Ha(c.arguments[0])))i(c,c.arguments[0]);else if(t&&sy(c))i(c,c.argument.literal);else if(t&&zm(c)){let _=u2(c);_&&ya(_)&&_.text&&i(c,_)}}}function WWe(e,t,n){let i=un(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&&Lf(s)&&or(s.jsDoc,o)||Es(s,o);if(!c)return s;s=c}}function Dne(e){return Ns(e)||fv(e)||Ck(e)}function GJ(e){return l0(e.fileName)}function UJ(e){let t=GJ(e);return jG.get(t)}function VJ(e,t){return MA(void 0,e,(n,i)=>n&&t(n,i))}function MA(e,t,n,i){let s;return o(e,t,void 0);function o(c,_,u){if(i){let m=i(c,u);if(m)return m}let g;return or(_,(m,h)=>{if(m&&s?.has(m.sourceFile.path)){(g??(g=new Set)).add(m);return}let S=n(m,u,h);if(S||!m)return S;(s||(s=new Set)).add(m.sourceFile.path)})||or(_,m=>m&&!g?.has(m)?o(m.commandLine.projectReferences,m.references,m):void 0)}}function qJ(e,t,n){return e&&BWe(e,t,n)}function BWe(e,t,n){return Jw(e,t,i=>gu(i.initializer)?On(i.initializer.elements,s=>ya(s)&&s.text===n):void 0)}function Pne(e,t,n){return $J(e,t,i=>ya(i.initializer)&&i.initializer.text===n?i.initializer:void 0)}function $J(e,t,n){return Jw(e,t,n)}function Ane(){let e,t,n,i,s;return{createBaseSourceFileNode:o,createBaseIdentifierNode:c,createBasePrivateIdentifierNode:_,createBaseTokenNode:u,createBaseNode:g};function o(m){return new(s||(s=mu.getSourceFileConstructor()))(m,-1,-1)}function c(m){return new(n||(n=mu.getIdentifierConstructor()))(m,-1,-1)}function _(m){return new(i||(i=mu.getPrivateIdentifierConstructor()))(m,-1,-1)}function u(m){return new(t||(t=mu.getTokenConstructor()))(m,-1,-1)}function g(m){return new(e||(e=mu.getNodeConstructor()))(m,-1,-1)}}function Ene(e){let t,n;return{getParenthesizeLeftSideOfBinaryForOperator:i,getParenthesizeRightSideOfBinaryForOperator:s,parenthesizeLeftSideOfBinary:g,parenthesizeRightSideOfBinary:m,parenthesizeExpressionOfComputedPropertyName:h,parenthesizeConditionOfConditionalExpression:S,parenthesizeBranchOfConditionalExpression:T,parenthesizeExpressionOfExportDefault:x,parenthesizeExpressionOfNew:I,parenthesizeLeftSideOfAccess:D,parenthesizeOperandOfPostfixUnary:E,parenthesizeOperandOfPrefixUnary:O,parenthesizeExpressionsOfCommaDelimitedList:F,parenthesizeExpressionForDisallowedComma:B,parenthesizeExpressionOfExpressionStatement:G,parenthesizeConciseBodyOfArrowFunction:$,parenthesizeCheckTypeOfConditionalType:K,parenthesizeExtendsTypeOfConditionalType:U,parenthesizeConstituentTypesOfUnionType:te,parenthesizeConstituentTypeOfUnionType:me,parenthesizeConstituentTypesOfIntersectionType:ne,parenthesizeConstituentTypeOfIntersectionType:V,parenthesizeOperandOfTypeOperator:ie,parenthesizeOperandOfReadonlyTypeOperator:oe,parenthesizeNonArrayTypeOfPostfixType:de,parenthesizeElementTypesOfTupleType:ye,parenthesizeElementTypeOfTupleType:H,parenthesizeTypeOfOptionalType:Ge,parenthesizeTypeArguments:xe,parenthesizeLeadingTypeArgument:De};function i(_e){t||(t=new Map);let tt=t.get(_e);return tt||(tt=ct=>g(_e,ct),t.set(_e,tt)),tt}function s(_e){n||(n=new Map);let tt=n.get(_e);return tt||(tt=ct=>m(_e,void 0,ct),n.set(_e,tt)),tt}function o(_e,tt,ct,le){let Je=d4(226,_e),ee=jz(226,_e),Ne=bd(tt);if(!ct&&tt.kind===219&&Je>3)return!0;let Ie=oA(Ne);switch(Po(Ie,Je)){case-1:return!(!ct&&ee===1&&tt.kind===229);case 1:return!1;case 0:if(ct)return ee===1;if(vn(Ne)&&Ne.operatorToken.kind===_e){if(c(_e))return!1;if(_e===40){let Ve=le?_(le):0;if(jP(Ve)&&Ve===_(Ne))return!1}}return Lz(Ne)===0}}function c(_e){return _e===42||_e===52||_e===51||_e===53||_e===28}function _(_e){if(_e=bd(_e),jP(_e.kind))return _e.kind;if(_e.kind===226&&_e.operatorToken.kind===40){if(_e.cachedLiteralKind!==void 0)return _e.cachedLiteralKind;let tt=_(_e.left),ct=jP(tt)&&tt===_(_e.right)?tt:0;return _e.cachedLiteralKind=ct,ct}return 0}function u(_e,tt,ct,le){return bd(tt).kind===217?tt:o(_e,tt,ct,le)?e.createParenthesizedExpression(tt):tt}function g(_e,tt){return u(_e,tt,!0)}function m(_e,tt,ct){return u(_e,ct,!1,tt)}function h(_e){return KA(_e)?e.createParenthesizedExpression(_e):_e}function S(_e){let tt=d4(227,58),ct=bd(_e),le=oA(ct);return Po(le,tt)!==1?e.createParenthesizedExpression(_e):_e}function T(_e){let tt=bd(_e);return KA(tt)?e.createParenthesizedExpression(_e):_e}function x(_e){let tt=bd(_e),ct=KA(tt);if(!ct)switch(iI(tt,!1).kind){case 231:case 218:ct=!0}return ct?e.createParenthesizedExpression(_e):_e}function I(_e){let tt=iI(_e,!0);switch(tt.kind){case 213:return e.createParenthesizedExpression(_e);case 214:return tt.arguments?_e:e.createParenthesizedExpression(_e)}return D(_e)}function D(_e,tt){let ct=bd(_e);return M_(ct)&&(ct.kind!==214||ct.arguments)&&(tt||!ju(ct))?_e:dt(e.createParenthesizedExpression(_e),_e)}function E(_e){return M_(_e)?_e:dt(e.createParenthesizedExpression(_e),_e)}function O(_e){return JB(_e)?_e:dt(e.createParenthesizedExpression(_e),_e)}function F(_e){let tt=ul(_e,B);return dt(e.createNodeArray(tt,_e.hasTrailingComma),_e)}function B(_e){let tt=bd(_e),ct=oA(tt),le=d4(226,28);return ct>le?_e:dt(e.createParenthesizedExpression(_e),_e)}function G(_e){let tt=bd(_e);if(qs(tt)){let le=tt.expression,Je=bd(le).kind;if(Je===218||Je===219){let ee=e.updateCallExpression(tt,dt(e.createParenthesizedExpression(le),le),tt.typeArguments,tt.arguments);return e.restoreOuterExpressions(_e,ee,8)}}let ct=iI(tt,!1).kind;return ct===210||ct===218?dt(e.createParenthesizedExpression(_e),_e):_e}function $(_e){return!Fs(_e)&&(KA(_e)||iI(_e,!1).kind===210)?dt(e.createParenthesizedExpression(_e),_e):_e}function K(_e){switch(_e.kind){case 184:case 185:case 194:return e.createParenthesizedType(_e)}return _e}function U(_e){switch(_e.kind){case 194:return e.createParenthesizedType(_e)}return _e}function me(_e){switch(_e.kind){case 192:case 193:return e.createParenthesizedType(_e)}return K(_e)}function te(_e){return e.createNodeArray(ul(_e,me))}function V(_e){switch(_e.kind){case 192:case 193:return e.createParenthesizedType(_e)}return me(_e)}function ne(_e){return e.createNodeArray(ul(_e,V))}function ie(_e){switch(_e.kind){case 193:return e.createParenthesizedType(_e)}return V(_e)}function oe(_e){switch(_e.kind){case 198:return e.createParenthesizedType(_e)}return ie(_e)}function de(_e){switch(_e.kind){case 195:case 198:case 186:return e.createParenthesizedType(_e)}return ie(_e)}function ye(_e){return e.createNodeArray(ul(_e,H))}function H(_e){return ve(_e)?e.createParenthesizedType(_e):_e}function ve(_e){return vI(_e)?_e.postfix:fI(_e)||Ig(_e)||_I(_e)||Gb(_e)?ve(_e.type):RS(_e)?ve(_e.falseType):cv(_e)||W2(_e)?ve(xa(_e.types)):kk(_e)?!!_e.typeParameter.constraint&&ve(_e.typeParameter.constraint):!1}function Ge(_e){return ve(_e)?e.createParenthesizedType(_e):de(_e)}function De(_e){return Hee(_e)&&_e.typeParameters?e.createParenthesizedType(_e):_e}function se(_e,tt){return tt===0?De(_e):_e}function xe(_e){if(pt(_e))return e.createNodeArray(ul(_e,se))}}var Nne={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,M_),parenthesizeLeftSideOfAccess:e=>Zs(e,M_),parenthesizeOperandOfPostfixUnary:e=>Zs(e,M_),parenthesizeOperandOfPrefixUnary:e=>Zs(e,JB),parenthesizeExpressionsOfCommaDelimitedList:e=>Zs(e,lS),parenthesizeExpressionForDisallowedComma:Do,parenthesizeExpressionOfExpressionStatement:Do,parenthesizeConciseBodyOfArrowFunction:Do,parenthesizeCheckTypeOfConditionalType:Do,parenthesizeExtendsTypeOfConditionalType:Do,parenthesizeConstituentTypesOfUnionType:e=>Zs(e,lS),parenthesizeConstituentTypeOfUnionType:Do,parenthesizeConstituentTypesOfIntersectionType:e=>Zs(e,lS),parenthesizeConstituentTypeOfIntersectionType:Do,parenthesizeOperandOfTypeOperator:Do,parenthesizeOperandOfReadonlyTypeOperator:Do,parenthesizeNonArrayTypeOfPostfixType:Do,parenthesizeElementTypesOfTupleType:e=>Zs(e,lS),parenthesizeElementTypeOfTupleType:Do,parenthesizeTypeOfOptionalType:Do,parenthesizeTypeArguments:e=>e&&Zs(e,lS),parenthesizeLeadingTypeArgument:Do};function Mne(e){return{convertToFunctionBlock:t,convertToFunctionExpression:n,convertToClassExpression:i,convertToArrayAssignmentElement:s,convertToObjectAssignmentElement:o,convertToAssignmentPattern:c,convertToObjectAssignmentPattern:_,convertToArrayAssignmentPattern:u,convertToAssignmentElementTarget:g};function t(m,h){if(Fs(m))return m;let S=e.createReturnStatement(m);dt(S,m);let T=e.createBlock([S],h);return dt(T,m),T}function n(m){var h;if(!m.body)return w.fail("Cannot convert a FunctionDeclaration without a body");let S=e.createFunctionExpression((h=cS(m))==null?void 0:h.filter(T=>!R2(T)&&!n7(T)),m.asteriskToken,m.name,m.typeParameters,m.parameters,m.type,m.body);return En(S,m),dt(S,m),RA(m)&&KO(S,!0),S}function i(m){var h;let S=e.createClassExpression((h=m.modifiers)==null?void 0:h.filter(T=>!R2(T)&&!n7(T)),m.name,m.typeParameters,m.heritageClauses,m.members);return En(S,m),dt(S,m),RA(m)&&KO(S,!0),S}function s(m){if(Da(m)){if(m.dotDotDotToken)return w.assertNode(m.name,je),En(dt(e.createSpreadElement(m.name),m),m);let h=g(m.name);return m.initializer?En(dt(e.createAssignment(h,m.initializer),m),m):h}return Zs(m,gt)}function o(m){if(Da(m)){if(m.dotDotDotToken)return w.assertNode(m.name,je),En(dt(e.createSpreadAssignment(m.name),m),m);if(m.propertyName){let h=g(m.name);return En(dt(e.createPropertyAssignment(m.propertyName,m.initializer?e.createAssignment(h,m.initializer):h),m),m)}return w.assertNode(m.name,je),En(dt(e.createShorthandPropertyAssignment(m.name,m.initializer),m),m)}return Zs(m,iy)}function c(m){switch(m.kind){case 207:case 209:return u(m);case 206:case 210:return _(m)}}function _(m){return np(m)?En(dt(e.createObjectLiteralExpression(hr(m.elements,o)),m),m):Zs(m,Sa)}function u(m){return uv(m)?En(dt(e.createArrayLiteralExpression(hr(m.elements,s)),m),m):Zs(m,gu)}function g(m){return Ws(m)?c(m):Zs(m,gt)}}var Rne={convertToFunctionBlock:ra,convertToFunctionExpression:ra,convertToClassExpression:ra,convertToArrayAssignmentElement:ra,convertToObjectAssignmentElement:ra,convertToAssignmentPattern:ra,convertToObjectAssignmentPattern:ra,convertToArrayAssignmentPattern:ra,convertToAssignmentElementTarget:ra},HJ=0,Fne=(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))(Fne||{}),ibe=[];function sbe(e){ibe.push(e)}function J4(e,t){let n=e&8?Do:En,i=Yu(()=>e&1?Nne:Ene(E)),s=Yu(()=>e&2?Rne:Mne(E)),o=Sm(v=>(P,z)=>Yr(P,v,z)),c=Sm(v=>P=>at(v,P)),_=Sm(v=>P=>Xt(P,v)),u=Sm(v=>()=>ws(v)),g=Sm(v=>P=>nx(v,P)),m=Sm(v=>(P,z)=>gn(v,P,z)),h=Sm(v=>(P,z)=>Ev(v,P,z)),S=Sm(v=>(P,z)=>S1(v,P,z)),T=Sm(v=>(P,z)=>Pc(v,P,z)),x=Sm(v=>(P,z,fe)=>al(v,P,z,fe)),I=Sm(v=>(P,z,fe)=>SD(v,P,z,fe)),D=Sm(v=>(P,z,fe,He)=>Ef(v,P,z,fe,He)),E={get parenthesizer(){return i()},get converters(){return s()},baseFactory:t,flags:e,createNodeArray:O,createNumericLiteral:$,createBigIntLiteral:K,createStringLiteral:me,createStringLiteralFromNode:te,createRegularExpressionLiteral:V,createLiteralLikeNode:ne,createIdentifier:de,createTempVariable:ye,createLoopVariable:H,createUniqueName:ve,getGeneratedNameForNode:Ge,createPrivateIdentifier:se,createUniquePrivateName:_e,getGeneratedPrivateNameForNode:tt,createToken:le,createSuper:Je,createThis:ee,createNull:Ne,createTrue:Ie,createFalse:Ce,createModifier:Ve,createModifiersFromModifierFlags:bt,createQualifiedName:zt,updateQualifiedName:ur,createComputedPropertyName:Or,updateComputedPropertyName:_t,createTypeParameterDeclaration:$t,updateTypeParameterDeclaration:Hr,createParameterDeclaration:hi,updateParameterDeclaration:_s,createDecorator:At,updateDecorator:zn,createPropertySignature:ns,updatePropertySignature:Rn,createPropertyDeclaration:ui,updatePropertyDeclaration:Ue,createMethodSignature:ht,updateMethodSignature:sr,createMethodDeclaration:Zr,updateMethodDeclaration:Zn,createConstructorDeclaration:xr,updateConstructorDeclaration:xs,createGetAccessorDeclaration:Nt,updateGetAccessorDeclaration:ae,createSetAccessorDeclaration:Y,updateSetAccessorDeclaration:Ae,createCallSignature:st,updateCallSignature:Dt,createConstructSignature:Fe,updateConstructSignature:St,createIndexSignature:vt,updateIndexSignature:Mt,createClassStaticBlockDeclaration:Pi,updateClassStaticBlockDeclaration:Rs,createTemplateLiteralTypeSpan:Ke,updateTemplateLiteralTypeSpan:Vt,createKeywordTypeNode:on,createTypePredicateNode:Pe,updateTypePredicateNode:kt,createTypeReferenceNode:pe,updateTypeReferenceNode:j,createFunctionTypeNode:Re,updateFunctionTypeNode:q,createConstructorTypeNode:jt,updateConstructorTypeNode:Qt,createTypeQueryNode:$r,updateTypeQueryNode:it,createTypeLiteralNode:Tt,updateTypeLiteralNode:Ut,createArrayTypeNode:Ot,updateArrayTypeNode:vr,createTupleTypeNode:ar,updateTupleTypeNode:Gt,createNamedTupleMember:dr,updateNamedTupleMember:Sr,createOptionalTypeNode:kr,updateOptionalTypeNode:tr,createRestTypeNode:si,updateRestTypeNode:zs,createUnionTypeNode:qc,updateUnionTypeNode:uc,createIntersectionTypeNode:Bc,updateIntersectionTypeNode:xi,createConditionalTypeNode:bs,updateConditionalTypeNode:il,createInferTypeNode:Qo,updateInferTypeNode:Oa,createImportTypeNode:ms,updateImportTypeNode:Ys,createParenthesizedType:Ba,updateParenthesizedType:La,createThisTypeNode:Ht,createTypeOperatorNode:fo,updateTypeOperatorNode:sl,createIndexedAccessTypeNode:wc,updateIndexedAccessTypeNode:cu,createMappedTypeNode:ec,updateMappedTypeNode:Ic,createLiteralTypeNode:N,updateLiteralTypeNode:Oe,createTemplateLiteralType:Zo,updateTemplateLiteralType:Cf,createObjectBindingPattern:ft,updateObjectBindingPattern:qt,createArrayBindingPattern:Br,updateArrayBindingPattern:Hn,createBindingElement:pn,updateBindingElement:Lr,createArrayLiteralExpression:Ci,updateArrayLiteralExpression:Ai,createObjectLiteralExpression:io,updateObjectLiteralExpression:Ta,createPropertyAccessExpression:e&4?(v,P)=>dn(Dc(v,P),262144):Dc,updatePropertyAccessExpression:$c,createPropertyAccessChain:e&4?(v,P,z)=>dn(Eo(v,P,z),262144):Eo,updatePropertyAccessChain:Hc,createElementAccessExpression:bu,updateElementAccessExpression:up,createElementAccessChain:x_,updateElementAccessChain:Ee,createCallExpression:sn,updateCallExpression:ts,createCallChain:Js,updateCallChain:Ma,createNewExpression:Wo,updateNewExpression:Qc,createTaggedTemplateExpression:hc,updateTaggedTemplateExpression:yc,createTypeAssertion:Yc,updateTypeAssertion:wl,createParenthesizedExpression:Il,updateParenthesizedExpression:If,createFunctionExpression:C_,updateFunctionExpression:Pd,createArrowFunction:zf,updateArrowFunction:Qm,createDeleteExpression:Ih,updateDeleteExpression:_p,createTypeOfExpression:B_,updateTypeOfExpression:o_,createVoidExpression:Km,updateVoidExpression:Jf,createAwaitExpression:Dh,updateAwaitExpression:re,createPrefixUnaryExpression:at,updatePrefixUnaryExpression:Kt,createPostfixUnaryExpression:Xt,updatePostfixUnaryExpression:Ar,createBinaryExpression:Yr,updateBinaryExpression:_i,createConditionalExpression:Ji,updateConditionalExpression:L,createTemplateExpression:ze,updateTemplateExpression:Rt,createTemplateHead:Uo,createTemplateMiddle:_a,createTemplateTail:vl,createNoSubstitutionTemplateLiteral:Df,createTemplateLiteralLikeNode:gs,createYieldExpression:Lp,updateYieldExpression:tm,createSpreadElement:ky,updateSpreadElement:Ph,createClassExpression:Z_,updateClassExpression:rm,createOmittedExpression:Xm,createExpressionWithTypeArguments:_d,updateExpressionWithTypeArguments:Y0,createAsExpression:Gf,updateAsExpression:bv,createNonNullExpression:Z0,updateNonNullExpression:Sv,createSatisfiesExpression:Be,updateSatisfiesExpression:rt,createNonNullChain:Lt,updateNonNullChain:cr,createMetaProperty:qr,updateMetaProperty:Sn,createTemplateSpan:zr,updateTemplateSpan:bn,createSemicolonClassElement:Di,createBlock:fs,updateBlock:ti,createVariableStatement:qi,updateVariableStatement:Ls,createEmptyStatement:Ql,createExpressionStatement:fp,updateExpressionStatement:pp,createIfStatement:Pf,updateIfStatement:Ng,createDoStatement:Ad,updateDoStatement:Mg,createWhileStatement:Tv,updateWhileStatement:Rg,createForStatement:kv,updateForStatement:m1,createForInStatement:sT,updateForInStatement:eN,createForOfStatement:bC,updateForOfStatement:dD,createContinueStatement:aT,updateContinueStatement:mD,createBreakStatement:Kk,updateBreakStatement:SC,createReturnStatement:oT,updateReturnStatement:gD,createWithStatement:Xk,updateWithStatement:TC,createSwitchStatement:Yk,updateSwitchStatement:Ym,createLabeledStatement:xv,updateLabeledStatement:xy,createThrowStatement:Fg,updateThrowStatement:g1,createTryStatement:eb,updateTryStatement:cT,createDebuggerStatement:lT,createVariableDeclaration:Cv,updateVariableDeclaration:za,createVariableDeclarationList:h1,updateVariableDeclarationList:tN,createFunctionDeclaration:tb,updateFunctionDeclaration:Ah,createClassDeclaration:jp,updateClassDeclaration:z_,createInterfaceDeclaration:ef,updateInterfaceDeclaration:Af,createTypeAliasDeclaration:bl,updateTypeAliasDeclaration:wv,createEnumDeclaration:Zk,updateEnumDeclaration:nm,createModuleDeclaration:rb,updateModuleDeclaration:lu,createModuleBlock:Nh,updateModuleBlock:tf,createCaseBlock:Mh,updateCaseBlock:Rh,createNamespaceExportDeclaration:Og,updateNamespaceExportDeclaration:uT,createImportEqualsDeclaration:Iv,updateImportEqualsDeclaration:im,createImportDeclaration:Dv,updateImportDeclaration:kC,createImportClause:Pv,updateImportClause:Cy,createAssertClause:Lg,updateAssertClause:xC,createAssertEntry:da,updateAssertEntry:Kl,createImportTypeAssertionContainer:Fh,updateImportTypeAssertionContainer:Oh,createImportAttributes:nb,updateImportAttributes:y1,createImportAttribute:Zm,updateImportAttribute:wy,createNamespaceImport:ex,updateNamespaceImport:Av,createNamespaceExport:eg,updateNamespaceExport:jg,createNamedImports:ib,updateNamedImports:$i,createImportSpecifier:wn,updateImportSpecifier:c_,createExportAssignment:tx,updateExportAssignment:tg,createExportDeclaration:Io,updateExportDeclaration:v1,createNamedExports:rx,updateNamedExports:CC,createExportSpecifier:sb,updateExportSpecifier:sm,createMissingDeclaration:hD,createExternalModuleReference:Tn,updateExternalModuleReference:$u,get createJSDocAllType(){return u(312)},get createJSDocUnknownType(){return u(313)},get createJSDocNonNullableType(){return h(315)},get updateJSDocNonNullableType(){return S(315)},get createJSDocNullableType(){return h(314)},get updateJSDocNullableType(){return S(314)},get createJSDocOptionalType(){return g(316)},get updateJSDocOptionalType(){return m(316)},get createJSDocVariadicType(){return g(318)},get updateJSDocVariadicType(){return m(318)},get createJSDocNamepathType(){return g(319)},get updateJSDocNamepathType(){return m(319)},createJSDocFunctionType:yD,updateJSDocFunctionType:wC,createJSDocTypeLiteral:l_,updateJSDocTypeLiteral:Wg,createJSDocTypeExpression:Ed,updateJSDocTypeExpression:Nv,createJSDocSignature:dp,updateJSDocSignature:Lh,createJSDocTemplateTag:Bg,updateJSDocTemplateTag:_T,createJSDocTypedefTag:Mv,updateJSDocTypedefTag:IC,createJSDocParameterTag:jh,updateJSDocParameterTag:ix,createJSDocPropertyTag:DC,updateJSDocPropertyTag:ab,createJSDocCallbackTag:Nd,updateJSDocCallbackTag:PC,createJSDocOverloadTag:sx,updateJSDocOverloadTag:Rv,createJSDocAugmentsTag:fT,updateJSDocAugmentsTag:rg,createJSDocImplementsTag:Iy,updateJSDocImplementsTag:ox,createJSDocSeeTag:ng,updateJSDocSeeTag:Fv,createJSDocImportTag:Dy,updateJSDocImportTag:TD,createJSDocNameReference:Xl,updateJSDocNameReference:ax,createJSDocMemberName:Wh,updateJSDocMemberName:pT,createJSDocLink:AC,updateJSDocLink:zg,createJSDocLinkCode:vD,updateJSDocLinkCode:dT,createJSDocLinkPlain:bD,updateJSDocLinkPlain:T1,get createJSDocTypeTag(){return I(344)},get updateJSDocTypeTag(){return D(344)},get createJSDocReturnTag(){return I(342)},get updateJSDocReturnTag(){return D(342)},get createJSDocThisTag(){return I(343)},get updateJSDocThisTag(){return D(343)},get createJSDocAuthorTag(){return T(330)},get updateJSDocAuthorTag(){return x(330)},get createJSDocClassTag(){return T(332)},get updateJSDocClassTag(){return x(332)},get createJSDocPublicTag(){return T(333)},get updateJSDocPublicTag(){return x(333)},get createJSDocPrivateTag(){return T(334)},get updateJSDocPrivateTag(){return x(334)},get createJSDocProtectedTag(){return T(335)},get updateJSDocProtectedTag(){return x(335)},get createJSDocReadonlyTag(){return T(336)},get updateJSDocReadonlyTag(){return x(336)},get createJSDocOverrideTag(){return T(337)},get updateJSDocOverrideTag(){return x(337)},get createJSDocDeprecatedTag(){return T(331)},get updateJSDocDeprecatedTag(){return x(331)},get createJSDocThrowsTag(){return I(349)},get updateJSDocThrowsTag(){return D(349)},get createJSDocSatisfiesTag(){return I(350)},get updateJSDocSatisfiesTag(){return D(350)},createJSDocEnumTag:om,updateJSDocEnumTag:cx,createJSDocUnknownTag:pd,updateJSDocUnknownTag:EC,createJSDocText:lx,updateJSDocText:Ac,createJSDocComment:k1,updateJSDocComment:kD,createJsxElement:mT,updateJsxElement:rN,createJsxSelfClosingElement:u_,updateJsxSelfClosingElement:x1,createJsxOpeningElement:gT,updateJsxOpeningElement:ux,createJsxClosingElement:J_,updateJsxClosingElement:dd,createJsxFragment:Ov,createJsxText:C1,updateJsxText:w1,createJsxOpeningFragment:MC,createJsxJsxClosingFragment:I1,updateJsxFragment:NC,createJsxAttribute:RC,updateJsxAttribute:hT,createJsxAttributes:Jg,updateJsxAttributes:Nf,createJsxSpreadAttribute:Bh,updateJsxSpreadAttribute:_x,createJsxExpression:D1,updateJsxExpression:Va,createJsxNamespacedName:In,updateJsxNamespacedName:Vf,createCaseClause:rf,updateCaseClause:FC,createDefaultClause:ob,updateDefaultClause:fx,createHeritageClause:OC,updateHeritageClause:LC,createCatchClause:mp,updateCatchClause:gp,createPropertyAssignment:nf,updatePropertyAssignment:cm,createShorthandPropertyAssignment:zh,updateShorthandPropertyAssignment:C,createSpreadAssignment:xt,updateSpreadAssignment:_r,createEnumMember:ai,updateEnumMember:wi,createSourceFile:is,updateSourceFile:jC,createRedirectedSourceFile:Ss,createBundle:I_,updateBundle:ig,createSyntheticExpression:cb,createSyntaxList:P1,createNotEmittedStatement:WC,createNotEmittedTypeElement:jv,createPartiallyEmittedExpression:BC,updatePartiallyEmittedExpression:Lv,createCommaListExpression:sg,updateCommaListExpression:zC,createSyntheticReferenceExpression:JC,updateSyntheticReferenceExpression:iR,cloneNode:Qi,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 _(46)},get createPostfixDecrement(){return _(47)},createImmediatelyInvokedFunctionExpression:bT,createImmediatelyInvokedArrowFunction:tn,createVoidZero:A1,createExportDefault:UC,createExternalModuleExport:xD,createTypeCheck:VC,createIsNotTypeCheck:aR,createMethodCall:E1,createGlobalMethodCall:ST,createFunctionBindCall:kj,createFunctionCallCall:N1,createFunctionApplyCall:xj,createArraySliceCall:qC,createArrayConcatCall:oR,createObjectDefinePropertyCall:CD,createObjectGetOwnPropertyDescriptorCall:TT,createReflectGetCall:M1,createReflectSetCall:Ay,createPropertyDescriptor:ag,createCallBinding:ol,createAssignmentTargetWrapper:X,inlineExpressions:Se,getInternalName:wt,getLocalName:Yt,getExportName:wr,getDeclarationName:Un,getNamespaceMemberName:Ei,getExternalModuleOrNamespaceExportName:fi,restoreOuterExpressions:og,restoreEnclosingLabel:F1,createUseStrictPrologue:ho,copyPrologue:mi,copyStandardPrologue:yo,copyCustomPrologue:Ja,ensureUseStrict:Wp,liftToBlock:Gg,mergeLexicalEnvironment:Yl,replaceModifiers:lm,replaceDecoratorsAndModifiers:lb,replacePropertyName:cR};return or(ibe,v=>v(E)),E;function O(v,P){if(v===void 0||v===qe)v=[];else if(lS(v)){if(P===void 0||v.hasTrailingComma===P)return v.transformFlags===void 0&&obe(v),w.attachNodeArrayDebugInfo(v),v;let He=v.slice();return He.pos=v.pos,He.end=v.end,He.hasTrailingComma=P,He.transformFlags=v.transformFlags,w.attachNodeArrayDebugInfo(He),He}let z=v.length,fe=z>=1&&z<=4?v.slice():v;return fe.pos=-1,fe.end=-1,fe.hasTrailingComma=!!P,fe.transformFlags=0,obe(fe),w.attachNodeArrayDebugInfo(fe),fe}function F(v){return t.createBaseNode(v)}function B(v){let P=F(v);return P.symbol=void 0,P.localSymbol=void 0,P}function G(v,P){return v!==P&&(v.typeArguments=P.typeArguments),mn(v,P)}function $(v,P=0){let z=typeof v=="number"?v+"":v;w.assert(z.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let fe=B(9);return fe.text=z,fe.numericLiteralFlags=P,P&384&&(fe.transformFlags|=1024),fe}function K(v){let P=ct(10);return P.text=typeof v=="string"?v:AS(v)+"n",P.transformFlags|=32,P}function U(v,P){let z=B(11);return z.text=v,z.singleQuote=P,z}function me(v,P,z){let fe=U(v,P);return fe.hasExtendedUnicodeEscape=z,z&&(fe.transformFlags|=1024),fe}function te(v){let P=U(Ip(v),void 0);return P.textSourceNode=v,P}function V(v){let P=ct(14);return P.text=v,P}function ne(v,P){switch(v){case 9:return $(P,0);case 10:return K(P);case 11:return me(P,void 0);case 12:return C1(P,!1);case 13:return C1(P,!0);case 14:return V(P);case 15:return gs(v,P,void 0,0)}}function ie(v){let P=t.createBaseIdentifierNode(80);return P.escapedText=v,P.jsDoc=void 0,P.flowNode=void 0,P.symbol=void 0,P}function oe(v,P,z,fe){let He=ie(gc(v));return $4(He,{flags:P,id:HJ,prefix:z,suffix:fe}),HJ++,He}function de(v,P,z){P===void 0&&v&&(P=XT(v)),P===80&&(P=void 0);let fe=ie(gc(v));return z&&(fe.flags|=256),fe.escapedText==="await"&&(fe.transformFlags|=67108864),fe.flags&256&&(fe.transformFlags|=1024),fe}function ye(v,P,z,fe){let He=1;P&&(He|=8);let Zt=oe("",He,z,fe);return v&&v(Zt),Zt}function H(v){let P=2;return v&&(P|=8),oe("",P,void 0,void 0)}function ve(v,P=0,z,fe){return w.assert(!(P&7),"Argument out of range: flags"),w.assert((P&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),oe(v,3|P,z,fe)}function Ge(v,P=0,z,fe){w.assert(!(P&7),"Argument out of range: flags");let He=v?oh(v)?Xb(!1,z,v,fe,Ln):`generated@${Ua(v)}`:"";(z||fe)&&(P|=16);let Zt=oe(He,4|P,z,fe);return Zt.original=v,Zt}function De(v){let P=t.createBasePrivateIdentifierNode(81);return P.escapedText=v,P.transformFlags|=16777216,P}function se(v){return Yi(v,"#")||w.fail("First character of private identifier must be #: "+v),De(gc(v))}function xe(v,P,z,fe){let He=De(gc(v));return $4(He,{flags:P,id:HJ,prefix:z,suffix:fe}),HJ++,He}function _e(v,P,z){v&&!Yi(v,"#")&&w.fail("First character of private identifier must be #: "+v);let fe=8|(v?3:1);return xe(v??"",fe,P,z)}function tt(v,P,z){let fe=oh(v)?Xb(!0,P,v,z,Ln):`#generated@${Ua(v)}`,Zt=xe(fe,4|(P||z?16:0),P,z);return Zt.original=v,Zt}function ct(v){return t.createBaseTokenNode(v)}function le(v){w.assert(v>=0&&v<=165,"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 P=ct(v),z=0;switch(v){case 134:z=384;break;case 160:z=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:z=1;break;case 108:z=134218752,P.flowNode=void 0;break;case 126:z=1024;break;case 129:z=16777216;break;case 110:z=16384,P.flowNode=void 0;break}return z&&(P.transformFlags|=z),P}function Je(){return le(108)}function ee(){return le(110)}function Ne(){return le(106)}function Ie(){return le(112)}function Ce(){return le(97)}function Ve(v){return le(v)}function bt(v){let P=[];return v&32&&P.push(Ve(95)),v&128&&P.push(Ve(138)),v&2048&&P.push(Ve(90)),v&4096&&P.push(Ve(87)),v&1&&P.push(Ve(125)),v&2&&P.push(Ve(123)),v&4&&P.push(Ve(124)),v&64&&P.push(Ve(128)),v&256&&P.push(Ve(126)),v&16&&P.push(Ve(164)),v&8&&P.push(Ve(148)),v&512&&P.push(Ve(129)),v&1024&&P.push(Ve(134)),v&8192&&P.push(Ve(103)),v&16384&&P.push(Ve(147)),P.length?P:void 0}function zt(v,P){let z=F(166);return z.left=v,z.right=Dl(P),z.transformFlags|=Cn(z.left)|G4(z.right),z.flowNode=void 0,z}function ur(v,P,z){return v.left!==P||v.right!==z?mn(zt(P,z),v):v}function Or(v){let P=F(167);return P.expression=i().parenthesizeExpressionOfComputedPropertyName(v),P.transformFlags|=Cn(P.expression)|1024|131072,P}function _t(v,P){return v.expression!==P?mn(Or(P),v):v}function $t(v,P,z,fe){let He=B(168);return He.modifiers=qa(v),He.name=Dl(P),He.constraint=z,He.default=fe,He.transformFlags=1,He.expression=void 0,He.jsDoc=void 0,He}function Hr(v,P,z,fe,He){return v.modifiers!==P||v.name!==z||v.constraint!==fe||v.default!==He?mn($t(P,z,fe,He),v):v}function hi(v,P,z,fe,He,Zt){let kn=B(169);return kn.modifiers=qa(v),kn.dotDotDotToken=P,kn.name=Dl(z),kn.questionToken=fe,kn.type=He,kn.initializer=$C(Zt),N0(kn.name)?kn.transformFlags=1:kn.transformFlags=Wa(kn.modifiers)|Cn(kn.dotDotDotToken)|L0(kn.name)|Cn(kn.questionToken)|Cn(kn.initializer)|(kn.questionToken??kn.type?1:0)|(kn.dotDotDotToken??kn.initializer?1024:0)|(Nm(kn.modifiers)&31?8192:0),kn.jsDoc=void 0,kn}function _s(v,P,z,fe,He,Zt,kn){return v.modifiers!==P||v.dotDotDotToken!==z||v.name!==fe||v.questionToken!==He||v.type!==Zt||v.initializer!==kn?mn(hi(P,z,fe,He,Zt,kn),v):v}function At(v){let P=F(170);return P.expression=i().parenthesizeLeftSideOfAccess(v,!1),P.transformFlags|=Cn(P.expression)|1|8192|33554432,P}function zn(v,P){return v.expression!==P?mn(At(P),v):v}function ns(v,P,z,fe){let He=B(171);return He.modifiers=qa(v),He.name=Dl(P),He.type=fe,He.questionToken=z,He.transformFlags=1,He.initializer=void 0,He.jsDoc=void 0,He}function Rn(v,P,z,fe,He){return v.modifiers!==P||v.name!==z||v.questionToken!==fe||v.type!==He?hn(ns(P,z,fe,He),v):v}function hn(v,P){return v!==P&&(v.initializer=P.initializer),mn(v,P)}function ui(v,P,z,fe,He){let Zt=B(172);Zt.modifiers=qa(v),Zt.name=Dl(P),Zt.questionToken=z&&j0(z)?z:void 0,Zt.exclamationToken=z&&Q4(z)?z:void 0,Zt.type=fe,Zt.initializer=$C(He);let kn=Zt.flags&33554432||Nm(Zt.modifiers)&128;return Zt.transformFlags=Wa(Zt.modifiers)|L0(Zt.name)|Cn(Zt.initializer)|(kn||Zt.questionToken||Zt.exclamationToken||Zt.type?1:0)|(pa(Zt.name)||Nm(Zt.modifiers)&256&&Zt.initializer?8192:0)|16777216,Zt.jsDoc=void 0,Zt}function Ue(v,P,z,fe,He,Zt){return v.modifiers!==P||v.name!==z||v.questionToken!==(fe!==void 0&&j0(fe)?fe:void 0)||v.exclamationToken!==(fe!==void 0&&Q4(fe)?fe:void 0)||v.type!==He||v.initializer!==Zt?mn(ui(P,z,fe,He,Zt),v):v}function ht(v,P,z,fe,He,Zt){let kn=B(173);return kn.modifiers=qa(v),kn.name=Dl(P),kn.questionToken=z,kn.typeParameters=qa(fe),kn.parameters=qa(He),kn.type=Zt,kn.transformFlags=1,kn.jsDoc=void 0,kn.locals=void 0,kn.nextContainer=void 0,kn.typeArguments=void 0,kn}function sr(v,P,z,fe,He,Zt,kn){return v.modifiers!==P||v.name!==z||v.questionToken!==fe||v.typeParameters!==He||v.parameters!==Zt||v.type!==kn?G(ht(P,z,fe,He,Zt,kn),v):v}function Zr(v,P,z,fe,He,Zt,kn,os){let no=B(174);if(no.modifiers=qa(v),no.asteriskToken=P,no.name=Dl(z),no.questionToken=fe,no.exclamationToken=void 0,no.typeParameters=qa(He),no.parameters=O(Zt),no.type=kn,no.body=os,!no.body)no.transformFlags=1;else{let um=Nm(no.modifiers)&1024,Jh=!!no.asteriskToken,Ug=um&&Jh;no.transformFlags=Wa(no.modifiers)|Cn(no.asteriskToken)|L0(no.name)|Cn(no.questionToken)|Wa(no.typeParameters)|Wa(no.parameters)|Cn(no.type)|Cn(no.body)&-67108865|(Ug?128:um?256:Jh?2048:0)|(no.questionToken||no.typeParameters||no.type?1:0)|1024}return no.typeArguments=void 0,no.jsDoc=void 0,no.locals=void 0,no.nextContainer=void 0,no.flowNode=void 0,no.endFlowNode=void 0,no.returnFlowNode=void 0,no}function Zn(v,P,z,fe,He,Zt,kn,os,no){return v.modifiers!==P||v.asteriskToken!==z||v.name!==fe||v.questionToken!==He||v.typeParameters!==Zt||v.parameters!==kn||v.type!==os||v.body!==no?Xn(Zr(P,z,fe,He,Zt,kn,os,no),v):v}function Xn(v,P){return v!==P&&(v.exclamationToken=P.exclamationToken),mn(v,P)}function Pi(v){let P=B(175);return P.body=v,P.transformFlags=Cn(v)|16777216,P.modifiers=void 0,P.jsDoc=void 0,P.locals=void 0,P.nextContainer=void 0,P.endFlowNode=void 0,P.returnFlowNode=void 0,P}function Rs(v,P){return v.body!==P?oa(Pi(P),v):v}function oa(v,P){return v!==P&&(v.modifiers=P.modifiers),mn(v,P)}function xr(v,P,z){let fe=B(176);return fe.modifiers=qa(v),fe.parameters=O(P),fe.body=z,fe.body?fe.transformFlags=Wa(fe.modifiers)|Wa(fe.parameters)|Cn(fe.body)&-67108865|1024:fe.transformFlags=1,fe.typeParameters=void 0,fe.type=void 0,fe.typeArguments=void 0,fe.jsDoc=void 0,fe.locals=void 0,fe.nextContainer=void 0,fe.endFlowNode=void 0,fe.returnFlowNode=void 0,fe}function xs(v,P,z,fe){return v.modifiers!==P||v.parameters!==z||v.body!==fe?Ye(xr(P,z,fe),v):v}function Ye(v,P){return v!==P&&(v.typeParameters=P.typeParameters,v.type=P.type),G(v,P)}function Nt(v,P,z,fe,He){let Zt=B(177);return Zt.modifiers=qa(v),Zt.name=Dl(P),Zt.parameters=O(z),Zt.type=fe,Zt.body=He,Zt.body?Zt.transformFlags=Wa(Zt.modifiers)|L0(Zt.name)|Wa(Zt.parameters)|Cn(Zt.type)|Cn(Zt.body)&-67108865|(Zt.type?1:0):Zt.transformFlags=1,Zt.typeArguments=void 0,Zt.typeParameters=void 0,Zt.jsDoc=void 0,Zt.locals=void 0,Zt.nextContainer=void 0,Zt.flowNode=void 0,Zt.endFlowNode=void 0,Zt.returnFlowNode=void 0,Zt}function ae(v,P,z,fe,He,Zt){return v.modifiers!==P||v.name!==z||v.parameters!==fe||v.type!==He||v.body!==Zt?lt(Nt(P,z,fe,He,Zt),v):v}function lt(v,P){return v!==P&&(v.typeParameters=P.typeParameters),G(v,P)}function Y(v,P,z,fe){let He=B(178);return He.modifiers=qa(v),He.name=Dl(P),He.parameters=O(z),He.body=fe,He.body?He.transformFlags=Wa(He.modifiers)|L0(He.name)|Wa(He.parameters)|Cn(He.body)&-67108865|(He.type?1:0):He.transformFlags=1,He.typeArguments=void 0,He.typeParameters=void 0,He.type=void 0,He.jsDoc=void 0,He.locals=void 0,He.nextContainer=void 0,He.flowNode=void 0,He.endFlowNode=void 0,He.returnFlowNode=void 0,He}function Ae(v,P,z,fe,He){return v.modifiers!==P||v.name!==z||v.parameters!==fe||v.body!==He?Xe(Y(P,z,fe,He),v):v}function Xe(v,P){return v!==P&&(v.typeParameters=P.typeParameters,v.type=P.type),G(v,P)}function st(v,P,z){let fe=B(179);return fe.typeParameters=qa(v),fe.parameters=qa(P),fe.type=z,fe.transformFlags=1,fe.jsDoc=void 0,fe.locals=void 0,fe.nextContainer=void 0,fe.typeArguments=void 0,fe}function Dt(v,P,z,fe){return v.typeParameters!==P||v.parameters!==z||v.type!==fe?G(st(P,z,fe),v):v}function Fe(v,P,z){let fe=B(180);return fe.typeParameters=qa(v),fe.parameters=qa(P),fe.type=z,fe.transformFlags=1,fe.jsDoc=void 0,fe.locals=void 0,fe.nextContainer=void 0,fe.typeArguments=void 0,fe}function St(v,P,z,fe){return v.typeParameters!==P||v.parameters!==z||v.type!==fe?G(Fe(P,z,fe),v):v}function vt(v,P,z){let fe=B(181);return fe.modifiers=qa(v),fe.parameters=qa(P),fe.type=z,fe.transformFlags=1,fe.jsDoc=void 0,fe.locals=void 0,fe.nextContainer=void 0,fe.typeArguments=void 0,fe}function Mt(v,P,z,fe){return v.parameters!==z||v.type!==fe||v.modifiers!==P?G(vt(P,z,fe),v):v}function Ke(v,P){let z=F(204);return z.type=v,z.literal=P,z.transformFlags=1,z}function Vt(v,P,z){return v.type!==P||v.literal!==z?mn(Ke(P,z),v):v}function on(v){return le(v)}function Pe(v,P,z){let fe=F(182);return fe.assertsModifier=v,fe.parameterName=Dl(P),fe.type=z,fe.transformFlags=1,fe}function kt(v,P,z,fe){return v.assertsModifier!==P||v.parameterName!==z||v.type!==fe?mn(Pe(P,z,fe),v):v}function pe(v,P){let z=F(183);return z.typeName=Dl(v),z.typeArguments=P&&i().parenthesizeTypeArguments(O(P)),z.transformFlags=1,z}function j(v,P,z){return v.typeName!==P||v.typeArguments!==z?mn(pe(P,z),v):v}function Re(v,P,z){let fe=B(184);return fe.typeParameters=qa(v),fe.parameters=qa(P),fe.type=z,fe.transformFlags=1,fe.modifiers=void 0,fe.jsDoc=void 0,fe.locals=void 0,fe.nextContainer=void 0,fe.typeArguments=void 0,fe}function q(v,P,z,fe){return v.typeParameters!==P||v.parameters!==z||v.type!==fe?yt(Re(P,z,fe),v):v}function yt(v,P){return v!==P&&(v.modifiers=P.modifiers),G(v,P)}function jt(...v){return v.length===4?we(...v):v.length===3?ut(...v):w.fail("Incorrect number of arguments specified.")}function we(v,P,z,fe){let He=B(185);return He.modifiers=qa(v),He.typeParameters=qa(P),He.parameters=qa(z),He.type=fe,He.transformFlags=1,He.jsDoc=void 0,He.locals=void 0,He.nextContainer=void 0,He.typeArguments=void 0,He}function ut(v,P,z){return we(void 0,v,P,z)}function Qt(...v){return v.length===5?en(...v):v.length===4?Pr(...v):w.fail("Incorrect number of arguments specified.")}function en(v,P,z,fe,He){return v.modifiers!==P||v.typeParameters!==z||v.parameters!==fe||v.type!==He?G(jt(P,z,fe,He),v):v}function Pr(v,P,z,fe){return en(v,v.modifiers,P,z,fe)}function $r(v,P){let z=F(186);return z.exprName=v,z.typeArguments=P&&i().parenthesizeTypeArguments(P),z.transformFlags=1,z}function it(v,P,z){return v.exprName!==P||v.typeArguments!==z?mn($r(P,z),v):v}function Tt(v){let P=B(187);return P.members=O(v),P.transformFlags=1,P}function Ut(v,P){return v.members!==P?mn(Tt(P),v):v}function Ot(v){let P=F(188);return P.elementType=i().parenthesizeNonArrayTypeOfPostfixType(v),P.transformFlags=1,P}function vr(v,P){return v.elementType!==P?mn(Ot(P),v):v}function ar(v){let P=F(189);return P.elements=O(i().parenthesizeElementTypesOfTupleType(v)),P.transformFlags=1,P}function Gt(v,P){return v.elements!==P?mn(ar(P),v):v}function dr(v,P,z,fe){let He=B(202);return He.dotDotDotToken=v,He.name=P,He.questionToken=z,He.type=fe,He.transformFlags=1,He.jsDoc=void 0,He}function Sr(v,P,z,fe,He){return v.dotDotDotToken!==P||v.name!==z||v.questionToken!==fe||v.type!==He?mn(dr(P,z,fe,He),v):v}function kr(v){let P=F(190);return P.type=i().parenthesizeTypeOfOptionalType(v),P.transformFlags=1,P}function tr(v,P){return v.type!==P?mn(kr(P),v):v}function si(v){let P=F(191);return P.type=v,P.transformFlags=1,P}function zs(v,P){return v.type!==P?mn(si(P),v):v}function ta(v,P,z){let fe=F(v);return fe.types=E.createNodeArray(z(P)),fe.transformFlags=1,fe}function Os(v,P,z){return v.types!==P?mn(ta(v.kind,P,z),v):v}function qc(v){return ta(192,v,i().parenthesizeConstituentTypesOfUnionType)}function uc(v,P){return Os(v,P,i().parenthesizeConstituentTypesOfUnionType)}function Bc(v){return ta(193,v,i().parenthesizeConstituentTypesOfIntersectionType)}function xi(v,P){return Os(v,P,i().parenthesizeConstituentTypesOfIntersectionType)}function bs(v,P,z,fe){let He=F(194);return He.checkType=i().parenthesizeCheckTypeOfConditionalType(v),He.extendsType=i().parenthesizeExtendsTypeOfConditionalType(P),He.trueType=z,He.falseType=fe,He.transformFlags=1,He.locals=void 0,He.nextContainer=void 0,He}function il(v,P,z,fe,He){return v.checkType!==P||v.extendsType!==z||v.trueType!==fe||v.falseType!==He?mn(bs(P,z,fe,He),v):v}function Qo(v){let P=F(195);return P.typeParameter=v,P.transformFlags=1,P}function Oa(v,P){return v.typeParameter!==P?mn(Qo(P),v):v}function Zo(v,P){let z=F(203);return z.head=v,z.templateSpans=O(P),z.transformFlags=1,z}function Cf(v,P,z){return v.head!==P||v.templateSpans!==z?mn(Zo(P,z),v):v}function ms(v,P,z,fe,He=!1){let Zt=F(205);return Zt.argument=v,Zt.attributes=P,Zt.assertions&&Zt.assertions.assertClause&&Zt.attributes&&(Zt.assertions.assertClause=Zt.attributes),Zt.qualifier=z,Zt.typeArguments=fe&&i().parenthesizeTypeArguments(fe),Zt.isTypeOf=He,Zt.transformFlags=1,Zt}function Ys(v,P,z,fe,He,Zt=v.isTypeOf){return v.argument!==P||v.attributes!==z||v.qualifier!==fe||v.typeArguments!==He||v.isTypeOf!==Zt?mn(ms(P,z,fe,He,Zt),v):v}function Ba(v){let P=F(196);return P.type=v,P.transformFlags=1,P}function La(v,P){return v.type!==P?mn(Ba(P),v):v}function Ht(){let v=F(197);return v.transformFlags=1,v}function fo(v,P){let z=F(198);return z.operator=v,z.type=v===148?i().parenthesizeOperandOfReadonlyTypeOperator(P):i().parenthesizeOperandOfTypeOperator(P),z.transformFlags=1,z}function sl(v,P){return v.type!==P?mn(fo(v.operator,P),v):v}function wc(v,P){let z=F(199);return z.objectType=i().parenthesizeNonArrayTypeOfPostfixType(v),z.indexType=P,z.transformFlags=1,z}function cu(v,P,z){return v.objectType!==P||v.indexType!==z?mn(wc(P,z),v):v}function ec(v,P,z,fe,He,Zt){let kn=B(200);return kn.readonlyToken=v,kn.typeParameter=P,kn.nameType=z,kn.questionToken=fe,kn.type=He,kn.members=Zt&&O(Zt),kn.transformFlags=1,kn.locals=void 0,kn.nextContainer=void 0,kn}function Ic(v,P,z,fe,He,Zt,kn){return v.readonlyToken!==P||v.typeParameter!==z||v.nameType!==fe||v.questionToken!==He||v.type!==Zt||v.members!==kn?mn(ec(P,z,fe,He,Zt,kn),v):v}function N(v){let P=F(201);return P.literal=v,P.transformFlags=1,P}function Oe(v,P){return v.literal!==P?mn(N(P),v):v}function ft(v){let P=F(206);return P.elements=O(v),P.transformFlags|=Wa(P.elements)|1024|524288,P.transformFlags&32768&&(P.transformFlags|=65664),P}function qt(v,P){return v.elements!==P?mn(ft(P),v):v}function Br(v){let P=F(207);return P.elements=O(v),P.transformFlags|=Wa(P.elements)|1024|524288,P}function Hn(v,P){return v.elements!==P?mn(Br(P),v):v}function pn(v,P,z,fe){let He=B(208);return He.dotDotDotToken=v,He.propertyName=Dl(P),He.name=Dl(z),He.initializer=$C(fe),He.transformFlags|=Cn(He.dotDotDotToken)|L0(He.propertyName)|L0(He.name)|Cn(He.initializer)|(He.dotDotDotToken?32768:0)|1024,He.flowNode=void 0,He}function Lr(v,P,z,fe,He){return v.propertyName!==z||v.dotDotDotToken!==P||v.name!==fe||v.initializer!==He?mn(pn(P,z,fe,He),v):v}function Ci(v,P){let z=F(209),fe=v&&zo(v),He=O(v,fe&&Fl(fe)?!0:void 0);return z.elements=i().parenthesizeExpressionsOfCommaDelimitedList(He),z.multiLine=P,z.transformFlags|=Wa(z.elements),z}function Ai(v,P){return v.elements!==P?mn(Ci(P,v.multiLine),v):v}function io(v,P){let z=B(210);return z.properties=O(v),z.multiLine=P,z.transformFlags|=Wa(z.properties),z.jsDoc=void 0,z}function Ta(v,P){return v.properties!==P?mn(io(P,v.multiLine),v):v}function Go(v,P,z){let fe=B(211);return fe.expression=v,fe.questionDotToken=P,fe.name=z,fe.transformFlags=Cn(fe.expression)|Cn(fe.questionDotToken)|(je(fe.name)?G4(fe.name):Cn(fe.name)|536870912),fe.jsDoc=void 0,fe.flowNode=void 0,fe}function Dc(v,P){let z=Go(i().parenthesizeLeftSideOfAccess(v,!1),void 0,Dl(P));return WA(v)&&(z.transformFlags|=384),z}function $c(v,P,z){return Z8(v)?Hc(v,P,v.questionDotToken,Zs(z,je)):v.expression!==P||v.name!==z?mn(Dc(P,z),v):v}function Eo(v,P,z){let fe=Go(i().parenthesizeLeftSideOfAccess(v,!0),P,Dl(z));return fe.flags|=64,fe.transformFlags|=32,fe}function Hc(v,P,z,fe){return w.assert(!!(v.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),v.expression!==P||v.questionDotToken!==z||v.name!==fe?mn(Eo(P,z,fe),v):v}function wf(v,P,z){let fe=B(212);return fe.expression=v,fe.questionDotToken=P,fe.argumentExpression=z,fe.transformFlags|=Cn(fe.expression)|Cn(fe.questionDotToken)|Cn(fe.argumentExpression),fe.jsDoc=void 0,fe.flowNode=void 0,fe}function bu(v,P){let z=wf(i().parenthesizeLeftSideOfAccess(v,!1),void 0,ub(P));return WA(v)&&(z.transformFlags|=384),z}function up(v,P,z){return EB(v)?Ee(v,P,v.questionDotToken,z):v.expression!==P||v.argumentExpression!==z?mn(bu(P,z),v):v}function x_(v,P,z){let fe=wf(i().parenthesizeLeftSideOfAccess(v,!0),P,ub(z));return fe.flags|=64,fe.transformFlags|=32,fe}function Ee(v,P,z,fe){return w.assert(!!(v.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),v.expression!==P||v.questionDotToken!==z||v.argumentExpression!==fe?mn(x_(P,z,fe),v):v}function Wt(v,P,z,fe){let He=B(213);return He.expression=v,He.questionDotToken=P,He.typeArguments=z,He.arguments=fe,He.transformFlags|=Cn(He.expression)|Cn(He.questionDotToken)|Wa(He.typeArguments)|Wa(He.arguments),He.typeArguments&&(He.transformFlags|=1),H_(He.expression)&&(He.transformFlags|=16384),He}function sn(v,P,z){let fe=Wt(i().parenthesizeLeftSideOfAccess(v,!1),void 0,qa(P),i().parenthesizeExpressionsOfCommaDelimitedList(O(z)));return BA(fe.expression)&&(fe.transformFlags|=8388608),fe}function ts(v,P,z,fe){return ZT(v)?Ma(v,P,v.questionDotToken,z,fe):v.expression!==P||v.typeArguments!==z||v.arguments!==fe?mn(sn(P,z,fe),v):v}function Js(v,P,z,fe){let He=Wt(i().parenthesizeLeftSideOfAccess(v,!0),P,qa(z),i().parenthesizeExpressionsOfCommaDelimitedList(O(fe)));return He.flags|=64,He.transformFlags|=32,He}function Ma(v,P,z,fe,He){return w.assert(!!(v.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),v.expression!==P||v.questionDotToken!==z||v.typeArguments!==fe||v.arguments!==He?mn(Js(P,z,fe,He),v):v}function Wo(v,P,z){let fe=B(214);return fe.expression=i().parenthesizeExpressionOfNew(v),fe.typeArguments=qa(P),fe.arguments=z?i().parenthesizeExpressionsOfCommaDelimitedList(z):void 0,fe.transformFlags|=Cn(fe.expression)|Wa(fe.typeArguments)|Wa(fe.arguments)|32,fe.typeArguments&&(fe.transformFlags|=1),fe}function Qc(v,P,z,fe){return v.expression!==P||v.typeArguments!==z||v.arguments!==fe?mn(Wo(P,z,fe),v):v}function hc(v,P,z){let fe=F(215);return fe.tag=i().parenthesizeLeftSideOfAccess(v,!1),fe.typeArguments=qa(P),fe.template=z,fe.transformFlags|=Cn(fe.tag)|Wa(fe.typeArguments)|Cn(fe.template)|1024,fe.typeArguments&&(fe.transformFlags|=1),Bz(fe.template)&&(fe.transformFlags|=128),fe}function yc(v,P,z,fe){return v.tag!==P||v.typeArguments!==z||v.template!==fe?mn(hc(P,z,fe),v):v}function Yc(v,P){let z=F(216);return z.expression=i().parenthesizeOperandOfPrefixUnary(P),z.type=v,z.transformFlags|=Cn(z.expression)|Cn(z.type)|1,z}function wl(v,P,z){return v.type!==P||v.expression!==z?mn(Yc(P,z),v):v}function Il(v){let P=F(217);return P.expression=v,P.transformFlags=Cn(P.expression),P.jsDoc=void 0,P}function If(v,P){return v.expression!==P?mn(Il(P),v):v}function C_(v,P,z,fe,He,Zt,kn){let os=B(218);os.modifiers=qa(v),os.asteriskToken=P,os.name=Dl(z),os.typeParameters=qa(fe),os.parameters=O(He),os.type=Zt,os.body=kn;let no=Nm(os.modifiers)&1024,um=!!os.asteriskToken,Jh=no&&um;return os.transformFlags=Wa(os.modifiers)|Cn(os.asteriskToken)|L0(os.name)|Wa(os.typeParameters)|Wa(os.parameters)|Cn(os.type)|Cn(os.body)&-67108865|(Jh?128:no?256:um?2048:0)|(os.typeParameters||os.type?1:0)|4194304,os.typeArguments=void 0,os.jsDoc=void 0,os.locals=void 0,os.nextContainer=void 0,os.flowNode=void 0,os.endFlowNode=void 0,os.returnFlowNode=void 0,os}function Pd(v,P,z,fe,He,Zt,kn,os){return v.name!==fe||v.modifiers!==P||v.asteriskToken!==z||v.typeParameters!==He||v.parameters!==Zt||v.type!==kn||v.body!==os?G(C_(P,z,fe,He,Zt,kn,os),v):v}function zf(v,P,z,fe,He,Zt){let kn=B(219);kn.modifiers=qa(v),kn.typeParameters=qa(P),kn.parameters=O(z),kn.type=fe,kn.equalsGreaterThanToken=He??le(39),kn.body=i().parenthesizeConciseBodyOfArrowFunction(Zt);let os=Nm(kn.modifiers)&1024;return kn.transformFlags=Wa(kn.modifiers)|Wa(kn.typeParameters)|Wa(kn.parameters)|Cn(kn.type)|Cn(kn.equalsGreaterThanToken)|Cn(kn.body)&-67108865|(kn.typeParameters||kn.type?1:0)|(os?16640:0)|1024,kn.typeArguments=void 0,kn.jsDoc=void 0,kn.locals=void 0,kn.nextContainer=void 0,kn.flowNode=void 0,kn.endFlowNode=void 0,kn.returnFlowNode=void 0,kn}function Qm(v,P,z,fe,He,Zt,kn){return v.modifiers!==P||v.typeParameters!==z||v.parameters!==fe||v.type!==He||v.equalsGreaterThanToken!==Zt||v.body!==kn?G(zf(P,z,fe,He,Zt,kn),v):v}function Ih(v){let P=F(220);return P.expression=i().parenthesizeOperandOfPrefixUnary(v),P.transformFlags|=Cn(P.expression),P}function _p(v,P){return v.expression!==P?mn(Ih(P),v):v}function B_(v){let P=F(221);return P.expression=i().parenthesizeOperandOfPrefixUnary(v),P.transformFlags|=Cn(P.expression),P}function o_(v,P){return v.expression!==P?mn(B_(P),v):v}function Km(v){let P=F(222);return P.expression=i().parenthesizeOperandOfPrefixUnary(v),P.transformFlags|=Cn(P.expression),P}function Jf(v,P){return v.expression!==P?mn(Km(P),v):v}function Dh(v){let P=F(223);return P.expression=i().parenthesizeOperandOfPrefixUnary(v),P.transformFlags|=Cn(P.expression)|256|128|2097152,P}function re(v,P){return v.expression!==P?mn(Dh(P),v):v}function at(v,P){let z=F(224);return z.operator=v,z.operand=i().parenthesizeOperandOfPrefixUnary(P),z.transformFlags|=Cn(z.operand),(v===46||v===47)&&je(z.operand)&&!Ko(z.operand)&&!my(z.operand)&&(z.transformFlags|=268435456),z}function Kt(v,P){return v.operand!==P?mn(at(v.operator,P),v):v}function Xt(v,P){let z=F(225);return z.operator=P,z.operand=i().parenthesizeOperandOfPostfixUnary(v),z.transformFlags|=Cn(z.operand),je(z.operand)&&!Ko(z.operand)&&!my(z.operand)&&(z.transformFlags|=268435456),z}function Ar(v,P){return v.operand!==P?mn(Xt(P,v.operator),v):v}function Yr(v,P,z){let fe=B(226),He=ID(P),Zt=He.kind;return fe.left=i().parenthesizeLeftSideOfBinary(Zt,v),fe.operatorToken=He,fe.right=i().parenthesizeRightSideOfBinary(Zt,fe.left,z),fe.transformFlags|=Cn(fe.left)|Cn(fe.operatorToken)|Cn(fe.right),Zt===61?fe.transformFlags|=32:Zt===64?Sa(fe.left)?fe.transformFlags|=5248|Gn(fe.left):gu(fe.left)&&(fe.transformFlags|=5120|Gn(fe.left)):Zt===43||Zt===68?fe.transformFlags|=512:_A(Zt)&&(fe.transformFlags|=16),Zt===103&&ji(fe.left)&&(fe.transformFlags|=536870912),fe.jsDoc=void 0,fe}function Gn(v){return uM(v)?65536:0}function _i(v,P,z,fe){return v.left!==P||v.operatorToken!==z||v.right!==fe?mn(Yr(P,z,fe),v):v}function Ji(v,P,z,fe,He){let Zt=F(227);return Zt.condition=i().parenthesizeConditionOfConditionalExpression(v),Zt.questionToken=P??le(58),Zt.whenTrue=i().parenthesizeBranchOfConditionalExpression(z),Zt.colonToken=fe??le(59),Zt.whenFalse=i().parenthesizeBranchOfConditionalExpression(He),Zt.transformFlags|=Cn(Zt.condition)|Cn(Zt.questionToken)|Cn(Zt.whenTrue)|Cn(Zt.colonToken)|Cn(Zt.whenFalse),Zt.flowNodeWhenFalse=void 0,Zt.flowNodeWhenTrue=void 0,Zt}function L(v,P,z,fe,He,Zt){return v.condition!==P||v.questionToken!==z||v.whenTrue!==fe||v.colonToken!==He||v.whenFalse!==Zt?mn(Ji(P,z,fe,He,Zt),v):v}function ze(v,P){let z=F(228);return z.head=v,z.templateSpans=O(P),z.transformFlags|=Cn(z.head)|Wa(z.templateSpans)|1024,z}function Rt(v,P,z){return v.head!==P||v.templateSpans!==z?mn(ze(P,z),v):v}function Er(v,P,z,fe=0){w.assert(!(fe&-7177),"Unsupported template flags.");let He;if(z!==void 0&&z!==P&&(He=zWe(v,z),typeof He=="object"))return w.fail("Invalid raw text");if(P===void 0){if(He===void 0)return w.fail("Arguments 'text' and 'rawText' may not both be undefined.");P=He}else He!==void 0&&w.assert(P===He,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return P}function cs(v){let P=1024;return v&&(P|=128),P}function bi(v,P,z,fe){let He=ct(v);return He.text=P,He.rawText=z,He.templateFlags=fe&7176,He.transformFlags=cs(He.templateFlags),He}function Zi(v,P,z,fe){let He=B(v);return He.text=P,He.rawText=z,He.templateFlags=fe&7176,He.transformFlags=cs(He.templateFlags),He}function gs(v,P,z,fe){return v===15?Zi(v,P,z,fe):bi(v,P,z,fe)}function Uo(v,P,z){return v=Er(16,v,P,z),gs(16,v,P,z)}function _a(v,P,z){return v=Er(16,v,P,z),gs(17,v,P,z)}function vl(v,P,z){return v=Er(16,v,P,z),gs(18,v,P,z)}function Df(v,P,z){return v=Er(16,v,P,z),Zi(15,v,P,z)}function Lp(v,P){w.assert(!v||!!P,"A `YieldExpression` with an asteriskToken must have an expression.");let z=F(229);return z.expression=P&&i().parenthesizeExpressionForDisallowedComma(P),z.asteriskToken=v,z.transformFlags|=Cn(z.expression)|Cn(z.asteriskToken)|1024|128|1048576,z}function tm(v,P,z){return v.expression!==z||v.asteriskToken!==P?mn(Lp(P,z),v):v}function ky(v){let P=F(230);return P.expression=i().parenthesizeExpressionForDisallowedComma(v),P.transformFlags|=Cn(P.expression)|1024|32768,P}function Ph(v,P){return v.expression!==P?mn(ky(P),v):v}function Z_(v,P,z,fe,He){let Zt=B(231);return Zt.modifiers=qa(v),Zt.name=Dl(P),Zt.typeParameters=qa(z),Zt.heritageClauses=qa(fe),Zt.members=O(He),Zt.transformFlags|=Wa(Zt.modifiers)|L0(Zt.name)|Wa(Zt.typeParameters)|Wa(Zt.heritageClauses)|Wa(Zt.members)|(Zt.typeParameters?1:0)|1024,Zt.jsDoc=void 0,Zt}function rm(v,P,z,fe,He,Zt){return v.modifiers!==P||v.name!==z||v.typeParameters!==fe||v.heritageClauses!==He||v.members!==Zt?mn(Z_(P,z,fe,He,Zt),v):v}function Xm(){return F(232)}function _d(v,P){let z=F(233);return z.expression=i().parenthesizeLeftSideOfAccess(v,!1),z.typeArguments=P&&i().parenthesizeTypeArguments(P),z.transformFlags|=Cn(z.expression)|Wa(z.typeArguments)|1024,z}function Y0(v,P,z){return v.expression!==P||v.typeArguments!==z?mn(_d(P,z),v):v}function Gf(v,P){let z=F(234);return z.expression=v,z.type=P,z.transformFlags|=Cn(z.expression)|Cn(z.type)|1,z}function bv(v,P,z){return v.expression!==P||v.type!==z?mn(Gf(P,z),v):v}function Z0(v){let P=F(235);return P.expression=i().parenthesizeLeftSideOfAccess(v,!1),P.transformFlags|=Cn(P.expression)|1,P}function Sv(v,P){return tF(v)?cr(v,P):v.expression!==P?mn(Z0(P),v):v}function Be(v,P){let z=F(238);return z.expression=v,z.type=P,z.transformFlags|=Cn(z.expression)|Cn(z.type)|1,z}function rt(v,P,z){return v.expression!==P||v.type!==z?mn(Be(P,z),v):v}function Lt(v){let P=F(235);return P.flags|=64,P.expression=i().parenthesizeLeftSideOfAccess(v,!0),P.transformFlags|=Cn(P.expression)|1,P}function cr(v,P){return w.assert(!!(v.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),v.expression!==P?mn(Lt(P),v):v}function qr(v,P){let z=F(236);switch(z.keywordToken=v,z.name=P,z.transformFlags|=Cn(z.name),v){case 105:z.transformFlags|=1024;break;case 102:z.transformFlags|=32;break;default:return w.assertNever(v)}return z.flowNode=void 0,z}function Sn(v,P){return v.name!==P?mn(qr(v.keywordToken,P),v):v}function zr(v,P){let z=F(239);return z.expression=v,z.literal=P,z.transformFlags|=Cn(z.expression)|Cn(z.literal)|1024,z}function bn(v,P,z){return v.expression!==P||v.literal!==z?mn(zr(P,z),v):v}function Di(){let v=F(240);return v.transformFlags|=1024,v}function fs(v,P){let z=F(241);return z.statements=O(v),z.multiLine=P,z.transformFlags|=Wa(z.statements),z.jsDoc=void 0,z.locals=void 0,z.nextContainer=void 0,z}function ti(v,P){return v.statements!==P?mn(fs(P,v.multiLine),v):v}function qi(v,P){let z=F(243);return z.modifiers=qa(v),z.declarationList=ks(P)?h1(P):P,z.transformFlags|=Wa(z.modifiers)|Cn(z.declarationList),Nm(z.modifiers)&128&&(z.transformFlags=1),z.jsDoc=void 0,z.flowNode=void 0,z}function Ls(v,P,z){return v.modifiers!==P||v.declarationList!==z?mn(qi(P,z),v):v}function Ql(){let v=F(242);return v.jsDoc=void 0,v}function fp(v){let P=F(244);return P.expression=i().parenthesizeExpressionOfExpressionStatement(v),P.transformFlags|=Cn(P.expression),P.jsDoc=void 0,P.flowNode=void 0,P}function pp(v,P){return v.expression!==P?mn(fp(P),v):v}function Pf(v,P,z){let fe=F(245);return fe.expression=v,fe.thenStatement=G_(P),fe.elseStatement=G_(z),fe.transformFlags|=Cn(fe.expression)|Cn(fe.thenStatement)|Cn(fe.elseStatement),fe.jsDoc=void 0,fe.flowNode=void 0,fe}function Ng(v,P,z,fe){return v.expression!==P||v.thenStatement!==z||v.elseStatement!==fe?mn(Pf(P,z,fe),v):v}function Ad(v,P){let z=F(246);return z.statement=G_(v),z.expression=P,z.transformFlags|=Cn(z.statement)|Cn(z.expression),z.jsDoc=void 0,z.flowNode=void 0,z}function Mg(v,P,z){return v.statement!==P||v.expression!==z?mn(Ad(P,z),v):v}function Tv(v,P){let z=F(247);return z.expression=v,z.statement=G_(P),z.transformFlags|=Cn(z.expression)|Cn(z.statement),z.jsDoc=void 0,z.flowNode=void 0,z}function Rg(v,P,z){return v.expression!==P||v.statement!==z?mn(Tv(P,z),v):v}function kv(v,P,z,fe){let He=F(248);return He.initializer=v,He.condition=P,He.incrementor=z,He.statement=G_(fe),He.transformFlags|=Cn(He.initializer)|Cn(He.condition)|Cn(He.incrementor)|Cn(He.statement),He.jsDoc=void 0,He.locals=void 0,He.nextContainer=void 0,He.flowNode=void 0,He}function m1(v,P,z,fe,He){return v.initializer!==P||v.condition!==z||v.incrementor!==fe||v.statement!==He?mn(kv(P,z,fe,He),v):v}function sT(v,P,z){let fe=F(249);return fe.initializer=v,fe.expression=P,fe.statement=G_(z),fe.transformFlags|=Cn(fe.initializer)|Cn(fe.expression)|Cn(fe.statement),fe.jsDoc=void 0,fe.locals=void 0,fe.nextContainer=void 0,fe.flowNode=void 0,fe}function eN(v,P,z,fe){return v.initializer!==P||v.expression!==z||v.statement!==fe?mn(sT(P,z,fe),v):v}function bC(v,P,z,fe){let He=F(250);return He.awaitModifier=v,He.initializer=P,He.expression=i().parenthesizeExpressionForDisallowedComma(z),He.statement=G_(fe),He.transformFlags|=Cn(He.awaitModifier)|Cn(He.initializer)|Cn(He.expression)|Cn(He.statement)|1024,v&&(He.transformFlags|=128),He.jsDoc=void 0,He.locals=void 0,He.nextContainer=void 0,He.flowNode=void 0,He}function dD(v,P,z,fe,He){return v.awaitModifier!==P||v.initializer!==z||v.expression!==fe||v.statement!==He?mn(bC(P,z,fe,He),v):v}function aT(v){let P=F(251);return P.label=Dl(v),P.transformFlags|=Cn(P.label)|4194304,P.jsDoc=void 0,P.flowNode=void 0,P}function mD(v,P){return v.label!==P?mn(aT(P),v):v}function Kk(v){let P=F(252);return P.label=Dl(v),P.transformFlags|=Cn(P.label)|4194304,P.jsDoc=void 0,P.flowNode=void 0,P}function SC(v,P){return v.label!==P?mn(Kk(P),v):v}function oT(v){let P=F(253);return P.expression=v,P.transformFlags|=Cn(P.expression)|128|4194304,P.jsDoc=void 0,P.flowNode=void 0,P}function gD(v,P){return v.expression!==P?mn(oT(P),v):v}function Xk(v,P){let z=F(254);return z.expression=v,z.statement=G_(P),z.transformFlags|=Cn(z.expression)|Cn(z.statement),z.jsDoc=void 0,z.flowNode=void 0,z}function TC(v,P,z){return v.expression!==P||v.statement!==z?mn(Xk(P,z),v):v}function Yk(v,P){let z=F(255);return z.expression=i().parenthesizeExpressionForDisallowedComma(v),z.caseBlock=P,z.transformFlags|=Cn(z.expression)|Cn(z.caseBlock),z.jsDoc=void 0,z.flowNode=void 0,z.possiblyExhaustive=!1,z}function Ym(v,P,z){return v.expression!==P||v.caseBlock!==z?mn(Yk(P,z),v):v}function xv(v,P){let z=F(256);return z.label=Dl(v),z.statement=G_(P),z.transformFlags|=Cn(z.label)|Cn(z.statement),z.jsDoc=void 0,z.flowNode=void 0,z}function xy(v,P,z){return v.label!==P||v.statement!==z?mn(xv(P,z),v):v}function Fg(v){let P=F(257);return P.expression=v,P.transformFlags|=Cn(P.expression),P.jsDoc=void 0,P.flowNode=void 0,P}function g1(v,P){return v.expression!==P?mn(Fg(P),v):v}function eb(v,P,z){let fe=F(258);return fe.tryBlock=v,fe.catchClause=P,fe.finallyBlock=z,fe.transformFlags|=Cn(fe.tryBlock)|Cn(fe.catchClause)|Cn(fe.finallyBlock),fe.jsDoc=void 0,fe.flowNode=void 0,fe}function cT(v,P,z,fe){return v.tryBlock!==P||v.catchClause!==z||v.finallyBlock!==fe?mn(eb(P,z,fe),v):v}function lT(){let v=F(259);return v.jsDoc=void 0,v.flowNode=void 0,v}function Cv(v,P,z,fe){let He=B(260);return He.name=Dl(v),He.exclamationToken=P,He.type=z,He.initializer=$C(fe),He.transformFlags|=L0(He.name)|Cn(He.initializer)|(He.exclamationToken??He.type?1:0),He.jsDoc=void 0,He}function za(v,P,z,fe,He){return v.name!==P||v.type!==fe||v.exclamationToken!==z||v.initializer!==He?mn(Cv(P,z,fe,He),v):v}function h1(v,P=0){let z=F(261);return z.flags|=P&7,z.declarations=O(v),z.transformFlags|=Wa(z.declarations)|4194304,P&7&&(z.transformFlags|=263168),P&4&&(z.transformFlags|=4),z}function tN(v,P){return v.declarations!==P?mn(h1(P,v.flags),v):v}function tb(v,P,z,fe,He,Zt,kn){let os=B(262);if(os.modifiers=qa(v),os.asteriskToken=P,os.name=Dl(z),os.typeParameters=qa(fe),os.parameters=O(He),os.type=Zt,os.body=kn,!os.body||Nm(os.modifiers)&128)os.transformFlags=1;else{let no=Nm(os.modifiers)&1024,um=!!os.asteriskToken,Jh=no&&um;os.transformFlags=Wa(os.modifiers)|Cn(os.asteriskToken)|L0(os.name)|Wa(os.typeParameters)|Wa(os.parameters)|Cn(os.type)|Cn(os.body)&-67108865|(Jh?128:no?256:um?2048:0)|(os.typeParameters||os.type?1:0)|4194304}return os.typeArguments=void 0,os.jsDoc=void 0,os.locals=void 0,os.nextContainer=void 0,os.endFlowNode=void 0,os.returnFlowNode=void 0,os}function Ah(v,P,z,fe,He,Zt,kn,os){return v.modifiers!==P||v.asteriskToken!==z||v.name!==fe||v.typeParameters!==He||v.parameters!==Zt||v.type!==kn||v.body!==os?Eh(tb(P,z,fe,He,Zt,kn,os),v):v}function Eh(v,P){return v!==P&&v.modifiers===P.modifiers&&(v.modifiers=P.modifiers),G(v,P)}function jp(v,P,z,fe,He){let Zt=B(263);return Zt.modifiers=qa(v),Zt.name=Dl(P),Zt.typeParameters=qa(z),Zt.heritageClauses=qa(fe),Zt.members=O(He),Nm(Zt.modifiers)&128?Zt.transformFlags=1:(Zt.transformFlags|=Wa(Zt.modifiers)|L0(Zt.name)|Wa(Zt.typeParameters)|Wa(Zt.heritageClauses)|Wa(Zt.members)|(Zt.typeParameters?1:0)|1024,Zt.transformFlags&8192&&(Zt.transformFlags|=1)),Zt.jsDoc=void 0,Zt}function z_(v,P,z,fe,He,Zt){return v.modifiers!==P||v.name!==z||v.typeParameters!==fe||v.heritageClauses!==He||v.members!==Zt?mn(jp(P,z,fe,He,Zt),v):v}function ef(v,P,z,fe,He){let Zt=B(264);return Zt.modifiers=qa(v),Zt.name=Dl(P),Zt.typeParameters=qa(z),Zt.heritageClauses=qa(fe),Zt.members=O(He),Zt.transformFlags=1,Zt.jsDoc=void 0,Zt}function Af(v,P,z,fe,He,Zt){return v.modifiers!==P||v.name!==z||v.typeParameters!==fe||v.heritageClauses!==He||v.members!==Zt?mn(ef(P,z,fe,He,Zt),v):v}function bl(v,P,z,fe){let He=B(265);return He.modifiers=qa(v),He.name=Dl(P),He.typeParameters=qa(z),He.type=fe,He.transformFlags=1,He.jsDoc=void 0,He.locals=void 0,He.nextContainer=void 0,He}function wv(v,P,z,fe,He){return v.modifiers!==P||v.name!==z||v.typeParameters!==fe||v.type!==He?mn(bl(P,z,fe,He),v):v}function Zk(v,P,z){let fe=B(266);return fe.modifiers=qa(v),fe.name=Dl(P),fe.members=O(z),fe.transformFlags|=Wa(fe.modifiers)|Cn(fe.name)|Wa(fe.members)|1,fe.transformFlags&=-67108865,fe.jsDoc=void 0,fe}function nm(v,P,z,fe){return v.modifiers!==P||v.name!==z||v.members!==fe?mn(Zk(P,z,fe),v):v}function rb(v,P,z,fe=0){let He=B(267);return He.modifiers=qa(v),He.flags|=fe&2088,He.name=P,He.body=z,Nm(He.modifiers)&128?He.transformFlags=1:He.transformFlags|=Wa(He.modifiers)|Cn(He.name)|Cn(He.body)|1,He.transformFlags&=-67108865,He.jsDoc=void 0,He.locals=void 0,He.nextContainer=void 0,He}function lu(v,P,z,fe){return v.modifiers!==P||v.name!==z||v.body!==fe?mn(rb(P,z,fe,v.flags),v):v}function Nh(v){let P=F(268);return P.statements=O(v),P.transformFlags|=Wa(P.statements),P.jsDoc=void 0,P}function tf(v,P){return v.statements!==P?mn(Nh(P),v):v}function Mh(v){let P=F(269);return P.clauses=O(v),P.transformFlags|=Wa(P.clauses),P.locals=void 0,P.nextContainer=void 0,P}function Rh(v,P){return v.clauses!==P?mn(Mh(P),v):v}function Og(v){let P=B(270);return P.name=Dl(v),P.transformFlags|=G4(P.name)|1,P.modifiers=void 0,P.jsDoc=void 0,P}function uT(v,P){return v.name!==P?$e(Og(P),v):v}function $e(v,P){return v!==P&&(v.modifiers=P.modifiers),mn(v,P)}function Iv(v,P,z,fe){let He=B(271);return He.modifiers=qa(v),He.name=Dl(z),He.isTypeOnly=P,He.moduleReference=fe,He.transformFlags|=Wa(He.modifiers)|G4(He.name)|Cn(He.moduleReference),dy(He.moduleReference)||(He.transformFlags|=1),He.transformFlags&=-67108865,He.jsDoc=void 0,He}function im(v,P,z,fe,He){return v.modifiers!==P||v.isTypeOnly!==z||v.name!==fe||v.moduleReference!==He?mn(Iv(P,z,fe,He),v):v}function Dv(v,P,z,fe){let He=F(272);return He.modifiers=qa(v),He.importClause=P,He.moduleSpecifier=z,He.attributes=He.assertClause=fe,He.transformFlags|=Cn(He.importClause)|Cn(He.moduleSpecifier),He.transformFlags&=-67108865,He.jsDoc=void 0,He}function kC(v,P,z,fe,He){return v.modifiers!==P||v.importClause!==z||v.moduleSpecifier!==fe||v.attributes!==He?mn(Dv(P,z,fe,He),v):v}function Pv(v,P,z){let fe=B(273);return fe.isTypeOnly=v,fe.name=P,fe.namedBindings=z,fe.transformFlags|=Cn(fe.name)|Cn(fe.namedBindings),v&&(fe.transformFlags|=1),fe.transformFlags&=-67108865,fe}function Cy(v,P,z,fe){return v.isTypeOnly!==P||v.name!==z||v.namedBindings!==fe?mn(Pv(P,z,fe),v):v}function Lg(v,P){let z=F(300);return z.elements=O(v),z.multiLine=P,z.token=132,z.transformFlags|=4,z}function xC(v,P,z){return v.elements!==P||v.multiLine!==z?mn(Lg(P,z),v):v}function da(v,P){let z=F(301);return z.name=v,z.value=P,z.transformFlags|=4,z}function Kl(v,P,z){return v.name!==P||v.value!==z?mn(da(P,z),v):v}function Fh(v,P){let z=F(302);return z.assertClause=v,z.multiLine=P,z}function Oh(v,P,z){return v.assertClause!==P||v.multiLine!==z?mn(Fh(P,z),v):v}function nb(v,P,z){let fe=F(300);return fe.token=z??118,fe.elements=O(v),fe.multiLine=P,fe.transformFlags|=4,fe}function y1(v,P,z){return v.elements!==P||v.multiLine!==z?mn(nb(P,z,v.token),v):v}function Zm(v,P){let z=F(301);return z.name=v,z.value=P,z.transformFlags|=4,z}function wy(v,P,z){return v.name!==P||v.value!==z?mn(Zm(P,z),v):v}function ex(v){let P=B(274);return P.name=v,P.transformFlags|=Cn(P.name),P.transformFlags&=-67108865,P}function Av(v,P){return v.name!==P?mn(ex(P),v):v}function eg(v){let P=B(280);return P.name=v,P.transformFlags|=Cn(P.name)|32,P.transformFlags&=-67108865,P}function jg(v,P){return v.name!==P?mn(eg(P),v):v}function ib(v){let P=F(275);return P.elements=O(v),P.transformFlags|=Wa(P.elements),P.transformFlags&=-67108865,P}function $i(v,P){return v.elements!==P?mn(ib(P),v):v}function wn(v,P,z){let fe=B(276);return fe.isTypeOnly=v,fe.propertyName=P,fe.name=z,fe.transformFlags|=Cn(fe.propertyName)|Cn(fe.name),fe.transformFlags&=-67108865,fe}function c_(v,P,z,fe){return v.isTypeOnly!==P||v.propertyName!==z||v.name!==fe?mn(wn(P,z,fe),v):v}function tx(v,P,z){let fe=B(277);return fe.modifiers=qa(v),fe.isExportEquals=P,fe.expression=P?i().parenthesizeRightSideOfBinary(64,void 0,z):i().parenthesizeExpressionOfExportDefault(z),fe.transformFlags|=Wa(fe.modifiers)|Cn(fe.expression),fe.transformFlags&=-67108865,fe.jsDoc=void 0,fe}function tg(v,P,z){return v.modifiers!==P||v.expression!==z?mn(tx(P,v.isExportEquals,z),v):v}function Io(v,P,z,fe,He){let Zt=B(278);return Zt.modifiers=qa(v),Zt.isTypeOnly=P,Zt.exportClause=z,Zt.moduleSpecifier=fe,Zt.attributes=Zt.assertClause=He,Zt.transformFlags|=Wa(Zt.modifiers)|Cn(Zt.exportClause)|Cn(Zt.moduleSpecifier),Zt.transformFlags&=-67108865,Zt.jsDoc=void 0,Zt}function v1(v,P,z,fe,He,Zt){return v.modifiers!==P||v.isTypeOnly!==z||v.exportClause!==fe||v.moduleSpecifier!==He||v.attributes!==Zt?b1(Io(P,z,fe,He,Zt),v):v}function b1(v,P){return v!==P&&v.modifiers===P.modifiers&&(v.modifiers=P.modifiers),mn(v,P)}function rx(v){let P=F(279);return P.elements=O(v),P.transformFlags|=Wa(P.elements),P.transformFlags&=-67108865,P}function CC(v,P){return v.elements!==P?mn(rx(P),v):v}function sb(v,P,z){let fe=F(281);return fe.isTypeOnly=v,fe.propertyName=Dl(P),fe.name=Dl(z),fe.transformFlags|=Cn(fe.propertyName)|Cn(fe.name),fe.transformFlags&=-67108865,fe.jsDoc=void 0,fe}function sm(v,P,z,fe){return v.isTypeOnly!==P||v.propertyName!==z||v.name!==fe?mn(sb(P,z,fe),v):v}function hD(){let v=B(282);return v.jsDoc=void 0,v}function Tn(v){let P=F(283);return P.expression=v,P.transformFlags|=Cn(P.expression),P.transformFlags&=-67108865,P}function $u(v,P){return v.expression!==P?mn(Tn(P),v):v}function ws(v){return F(v)}function Ev(v,P,z=!1){let fe=nx(v,z?P&&i().parenthesizeNonArrayTypeOfPostfixType(P):P);return fe.postfix=z,fe}function nx(v,P){let z=F(v);return z.type=P,z}function S1(v,P,z){return P.type!==z?mn(Ev(v,z,P.postfix),P):P}function gn(v,P,z){return P.type!==z?mn(nx(v,z),P):P}function yD(v,P){let z=B(317);return z.parameters=qa(v),z.type=P,z.transformFlags=Wa(z.parameters)|(z.type?1:0),z.jsDoc=void 0,z.locals=void 0,z.nextContainer=void 0,z.typeArguments=void 0,z}function wC(v,P,z){return v.parameters!==P||v.type!==z?mn(yD(P,z),v):v}function l_(v,P=!1){let z=B(322);return z.jsDocPropertyTags=qa(v),z.isArrayType=P,z}function Wg(v,P,z){return v.jsDocPropertyTags!==P||v.isArrayType!==z?mn(l_(P,z),v):v}function Ed(v){let P=F(309);return P.type=v,P}function Nv(v,P){return v.type!==P?mn(Ed(P),v):v}function dp(v,P,z){let fe=B(323);return fe.typeParameters=qa(v),fe.parameters=O(P),fe.type=z,fe.jsDoc=void 0,fe.locals=void 0,fe.nextContainer=void 0,fe}function Lh(v,P,z,fe){return v.typeParameters!==P||v.parameters!==z||v.type!==fe?mn(dp(P,z,fe),v):v}function Uf(v){let P=QJ(v.kind);return v.tagName.escapedText===gc(P)?v.tagName:de(P)}function am(v,P,z){let fe=F(v);return fe.tagName=P,fe.comment=z,fe}function fd(v,P,z){let fe=B(v);return fe.tagName=P,fe.comment=z,fe}function Bg(v,P,z,fe){let He=am(345,v??de("template"),fe);return He.constraint=P,He.typeParameters=O(z),He}function _T(v,P=Uf(v),z,fe,He){return v.tagName!==P||v.constraint!==z||v.typeParameters!==fe||v.comment!==He?mn(Bg(P,z,fe,He),v):v}function Mv(v,P,z,fe){let He=fd(346,v??de("typedef"),fe);return He.typeExpression=P,He.fullName=z,He.name=DG(z),He.locals=void 0,He.nextContainer=void 0,He}function IC(v,P=Uf(v),z,fe,He){return v.tagName!==P||v.typeExpression!==z||v.fullName!==fe||v.comment!==He?mn(Mv(P,z,fe,He),v):v}function jh(v,P,z,fe,He,Zt){let kn=fd(341,v??de("param"),Zt);return kn.typeExpression=fe,kn.name=P,kn.isNameFirst=!!He,kn.isBracketed=z,kn}function ix(v,P=Uf(v),z,fe,He,Zt,kn){return v.tagName!==P||v.name!==z||v.isBracketed!==fe||v.typeExpression!==He||v.isNameFirst!==Zt||v.comment!==kn?mn(jh(P,z,fe,He,Zt,kn),v):v}function DC(v,P,z,fe,He,Zt){let kn=fd(348,v??de("prop"),Zt);return kn.typeExpression=fe,kn.name=P,kn.isNameFirst=!!He,kn.isBracketed=z,kn}function ab(v,P=Uf(v),z,fe,He,Zt,kn){return v.tagName!==P||v.name!==z||v.isBracketed!==fe||v.typeExpression!==He||v.isNameFirst!==Zt||v.comment!==kn?mn(DC(P,z,fe,He,Zt,kn),v):v}function Nd(v,P,z,fe){let He=fd(338,v??de("callback"),fe);return He.typeExpression=P,He.fullName=z,He.name=DG(z),He.locals=void 0,He.nextContainer=void 0,He}function PC(v,P=Uf(v),z,fe,He){return v.tagName!==P||v.typeExpression!==z||v.fullName!==fe||v.comment!==He?mn(Nd(P,z,fe,He),v):v}function sx(v,P,z){let fe=am(339,v??de("overload"),z);return fe.typeExpression=P,fe}function Rv(v,P=Uf(v),z,fe){return v.tagName!==P||v.typeExpression!==z||v.comment!==fe?mn(sx(P,z,fe),v):v}function fT(v,P,z){let fe=am(328,v??de("augments"),z);return fe.class=P,fe}function rg(v,P=Uf(v),z,fe){return v.tagName!==P||v.class!==z||v.comment!==fe?mn(fT(P,z,fe),v):v}function Iy(v,P,z){let fe=am(329,v??de("implements"),z);return fe.class=P,fe}function ng(v,P,z){let fe=am(347,v??de("see"),z);return fe.name=P,fe}function Fv(v,P,z,fe){return v.tagName!==P||v.name!==z||v.comment!==fe?mn(ng(P,z,fe),v):v}function Xl(v){let P=F(310);return P.name=v,P}function ax(v,P){return v.name!==P?mn(Xl(P),v):v}function Wh(v,P){let z=F(311);return z.left=v,z.right=P,z.transformFlags|=Cn(z.left)|Cn(z.right),z}function pT(v,P,z){return v.left!==P||v.right!==z?mn(Wh(P,z),v):v}function AC(v,P){let z=F(324);return z.name=v,z.text=P,z}function zg(v,P,z){return v.name!==P?mn(AC(P,z),v):v}function vD(v,P){let z=F(325);return z.name=v,z.text=P,z}function dT(v,P,z){return v.name!==P?mn(vD(P,z),v):v}function bD(v,P){let z=F(326);return z.name=v,z.text=P,z}function T1(v,P,z){return v.name!==P?mn(bD(P,z),v):v}function ox(v,P=Uf(v),z,fe){return v.tagName!==P||v.class!==z||v.comment!==fe?mn(Iy(P,z,fe),v):v}function Pc(v,P,z){return am(v,P??de(QJ(v)),z)}function al(v,P,z=Uf(P),fe){return P.tagName!==z||P.comment!==fe?mn(Pc(v,z,fe),P):P}function SD(v,P,z,fe){let He=am(v,P??de(QJ(v)),fe);return He.typeExpression=z,He}function Ef(v,P,z=Uf(P),fe,He){return P.tagName!==z||P.typeExpression!==fe||P.comment!==He?mn(SD(v,z,fe,He),P):P}function pd(v,P){return am(327,v,P)}function EC(v,P,z){return v.tagName!==P||v.comment!==z?mn(pd(P,z),v):v}function om(v,P,z){let fe=fd(340,v??de(QJ(340)),z);return fe.typeExpression=P,fe.locals=void 0,fe.nextContainer=void 0,fe}function cx(v,P=Uf(v),z,fe){return v.tagName!==P||v.typeExpression!==z||v.comment!==fe?mn(om(P,z,fe),v):v}function Dy(v,P,z,fe,He){let Zt=am(351,v??de("import"),He);return Zt.importClause=P,Zt.moduleSpecifier=z,Zt.attributes=fe,Zt.comment=He,Zt}function TD(v,P,z,fe,He,Zt){return v.tagName!==P||v.comment!==Zt||v.importClause!==z||v.moduleSpecifier!==fe||v.attributes!==He?mn(Dy(P,z,fe,He,Zt),v):v}function lx(v){let P=F(321);return P.text=v,P}function Ac(v,P){return v.text!==P?mn(lx(P),v):v}function k1(v,P){let z=F(320);return z.comment=v,z.tags=qa(P),z}function kD(v,P,z){return v.comment!==P||v.tags!==z?mn(k1(P,z),v):v}function mT(v,P,z){let fe=F(284);return fe.openingElement=v,fe.children=O(P),fe.closingElement=z,fe.transformFlags|=Cn(fe.openingElement)|Wa(fe.children)|Cn(fe.closingElement)|2,fe}function rN(v,P,z,fe){return v.openingElement!==P||v.children!==z||v.closingElement!==fe?mn(mT(P,z,fe),v):v}function u_(v,P,z){let fe=F(285);return fe.tagName=v,fe.typeArguments=qa(P),fe.attributes=z,fe.transformFlags|=Cn(fe.tagName)|Wa(fe.typeArguments)|Cn(fe.attributes)|2,fe.typeArguments&&(fe.transformFlags|=1),fe}function x1(v,P,z,fe){return v.tagName!==P||v.typeArguments!==z||v.attributes!==fe?mn(u_(P,z,fe),v):v}function gT(v,P,z){let fe=F(286);return fe.tagName=v,fe.typeArguments=qa(P),fe.attributes=z,fe.transformFlags|=Cn(fe.tagName)|Wa(fe.typeArguments)|Cn(fe.attributes)|2,P&&(fe.transformFlags|=1),fe}function ux(v,P,z,fe){return v.tagName!==P||v.typeArguments!==z||v.attributes!==fe?mn(gT(P,z,fe),v):v}function J_(v){let P=F(287);return P.tagName=v,P.transformFlags|=Cn(P.tagName)|2,P}function dd(v,P){return v.tagName!==P?mn(J_(P),v):v}function Ov(v,P,z){let fe=F(288);return fe.openingFragment=v,fe.children=O(P),fe.closingFragment=z,fe.transformFlags|=Cn(fe.openingFragment)|Wa(fe.children)|Cn(fe.closingFragment)|2,fe}function NC(v,P,z,fe){return v.openingFragment!==P||v.children!==z||v.closingFragment!==fe?mn(Ov(P,z,fe),v):v}function C1(v,P){let z=F(12);return z.text=v,z.containsOnlyTriviaWhiteSpaces=!!P,z.transformFlags|=2,z}function w1(v,P,z){return v.text!==P||v.containsOnlyTriviaWhiteSpaces!==z?mn(C1(P,z),v):v}function MC(){let v=F(289);return v.transformFlags|=2,v}function I1(){let v=F(290);return v.transformFlags|=2,v}function RC(v,P){let z=B(291);return z.name=v,z.initializer=P,z.transformFlags|=Cn(z.name)|Cn(z.initializer)|2,z}function hT(v,P,z){return v.name!==P||v.initializer!==z?mn(RC(P,z),v):v}function Jg(v){let P=B(292);return P.properties=O(v),P.transformFlags|=Wa(P.properties)|2,P}function Nf(v,P){return v.properties!==P?mn(Jg(P),v):v}function Bh(v){let P=F(293);return P.expression=v,P.transformFlags|=Cn(P.expression)|2,P}function _x(v,P){return v.expression!==P?mn(Bh(P),v):v}function D1(v,P){let z=F(294);return z.dotDotDotToken=v,z.expression=P,z.transformFlags|=Cn(z.dotDotDotToken)|Cn(z.expression)|2,z}function Va(v,P){return v.expression!==P?mn(D1(v.dotDotDotToken,P),v):v}function In(v,P){let z=F(295);return z.namespace=v,z.name=P,z.transformFlags|=Cn(z.namespace)|Cn(z.name)|2,z}function Vf(v,P,z){return v.namespace!==P||v.name!==z?mn(In(P,z),v):v}function rf(v,P){let z=F(296);return z.expression=i().parenthesizeExpressionForDisallowedComma(v),z.statements=O(P),z.transformFlags|=Cn(z.expression)|Wa(z.statements),z.jsDoc=void 0,z}function FC(v,P,z){return v.expression!==P||v.statements!==z?mn(rf(P,z),v):v}function ob(v){let P=F(297);return P.statements=O(v),P.transformFlags=Wa(P.statements),P}function fx(v,P){return v.statements!==P?mn(ob(P),v):v}function OC(v,P){let z=F(298);switch(z.token=v,z.types=O(P),z.transformFlags|=Wa(z.types),v){case 96:z.transformFlags|=1024;break;case 119:z.transformFlags|=1;break;default:return w.assertNever(v)}return z}function LC(v,P){return v.types!==P?mn(OC(v.token,P),v):v}function mp(v,P){let z=F(299);return z.variableDeclaration=_b(v),z.block=P,z.transformFlags|=Cn(z.variableDeclaration)|Cn(z.block)|(v?0:64),z.locals=void 0,z.nextContainer=void 0,z}function gp(v,P,z){return v.variableDeclaration!==P||v.block!==z?mn(mp(P,z),v):v}function nf(v,P){let z=B(303);return z.name=Dl(v),z.initializer=i().parenthesizeExpressionForDisallowedComma(P),z.transformFlags|=L0(z.name)|Cn(z.initializer),z.modifiers=void 0,z.questionToken=void 0,z.exclamationToken=void 0,z.jsDoc=void 0,z}function cm(v,P,z){return v.name!==P||v.initializer!==z?Py(nf(P,z),v):v}function Py(v,P){return v!==P&&(v.modifiers=P.modifiers,v.questionToken=P.questionToken,v.exclamationToken=P.exclamationToken),mn(v,P)}function zh(v,P){let z=B(304);return z.name=Dl(v),z.objectAssignmentInitializer=P&&i().parenthesizeExpressionForDisallowedComma(P),z.transformFlags|=G4(z.name)|Cn(z.objectAssignmentInitializer)|1024,z.equalsToken=void 0,z.modifiers=void 0,z.questionToken=void 0,z.exclamationToken=void 0,z.jsDoc=void 0,z}function C(v,P,z){return v.name!==P||v.objectAssignmentInitializer!==z?ue(zh(P,z),v):v}function ue(v,P){return v!==P&&(v.modifiers=P.modifiers,v.questionToken=P.questionToken,v.exclamationToken=P.exclamationToken,v.equalsToken=P.equalsToken),mn(v,P)}function xt(v){let P=B(305);return P.expression=i().parenthesizeExpressionForDisallowedComma(v),P.transformFlags|=Cn(P.expression)|128|65536,P.jsDoc=void 0,P}function _r(v,P){return v.expression!==P?mn(xt(P),v):v}function ai(v,P){let z=B(306);return z.name=Dl(v),z.initializer=P&&i().parenthesizeExpressionForDisallowedComma(P),z.transformFlags|=Cn(z.name)|Cn(z.initializer)|1,z.jsDoc=void 0,z}function wi(v,P,z){return v.name!==P||v.initializer!==z?mn(ai(P,z),v):v}function is(v,P,z){let fe=t.createBaseSourceFileNode(307);return fe.statements=O(v),fe.endOfFileToken=P,fe.flags|=z,fe.text="",fe.fileName="",fe.path="",fe.resolvedPath="",fe.originalFileName="",fe.languageVersion=1,fe.languageVariant=0,fe.scriptKind=0,fe.isDeclarationFile=!1,fe.hasNoDefaultLib=!1,fe.transformFlags|=Wa(fe.statements)|Cn(fe.endOfFileToken),fe.locals=void 0,fe.nextContainer=void 0,fe.endFlowNode=void 0,fe.nodeCount=0,fe.identifierCount=0,fe.symbolCount=0,fe.parseDiagnostics=void 0,fe.bindDiagnostics=void 0,fe.bindSuggestionDiagnostics=void 0,fe.lineMap=void 0,fe.externalModuleIndicator=void 0,fe.setExternalModuleIndicator=void 0,fe.pragmas=void 0,fe.checkJsDirective=void 0,fe.referencedFiles=void 0,fe.typeReferenceDirectives=void 0,fe.libReferenceDirectives=void 0,fe.amdDependencies=void 0,fe.commentDirectives=void 0,fe.identifiers=void 0,fe.packageJsonLocations=void 0,fe.packageJsonScope=void 0,fe.imports=void 0,fe.moduleAugmentations=void 0,fe.ambientModuleNames=void 0,fe.classifiableNames=void 0,fe.impliedNodeFormat=void 0,fe}function Ss(v){let P=Object.create(v.redirectTarget);return Object.defineProperties(P,{id:{get(){return this.redirectInfo.redirectTarget.id},set(z){this.redirectInfo.redirectTarget.id=z}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(z){this.redirectInfo.redirectTarget.symbol=z}}}),P.redirectInfo=v,P}function Ca(v){let P=Ss(v.redirectInfo);return P.flags|=v.flags&-17,P.fileName=v.fileName,P.path=v.path,P.resolvedPath=v.resolvedPath,P.originalFileName=v.originalFileName,P.packageJsonLocations=v.packageJsonLocations,P.packageJsonScope=v.packageJsonScope,P.emitNode=void 0,P}function w_(v){let P=t.createBaseSourceFileNode(307);P.flags|=v.flags&-17;for(let z in v)if(!(bo(P,z)||!bo(v,z))){if(z==="emitNode"){P.emitNode=void 0;continue}P[z]=v[z]}return P}function vc(v){let P=v.redirectInfo?Ca(v):w_(v);return n(P,v),P}function tc(v,P,z,fe,He,Zt,kn){let os=vc(v);return os.statements=O(P),os.isDeclarationFile=z,os.referencedFiles=fe,os.typeReferenceDirectives=He,os.hasNoDefaultLib=Zt,os.libReferenceDirectives=kn,os.transformFlags=Wa(os.statements)|Cn(os.endOfFileToken),os}function jC(v,P,z=v.isDeclarationFile,fe=v.referencedFiles,He=v.typeReferenceDirectives,Zt=v.hasNoDefaultLib,kn=v.libReferenceDirectives){return v.statements!==P||v.isDeclarationFile!==z||v.referencedFiles!==fe||v.typeReferenceDirectives!==He||v.hasNoDefaultLib!==Zt||v.libReferenceDirectives!==kn?mn(tc(v,P,z,fe,He,Zt,kn),v):v}function I_(v){let P=F(308);return P.sourceFiles=v,P.syntheticFileReferences=void 0,P.syntheticTypeReferences=void 0,P.syntheticLibReferences=void 0,P.hasNoDefaultLib=void 0,P}function ig(v,P){return v.sourceFiles!==P?mn(I_(P),v):v}function cb(v,P=!1,z){let fe=F(237);return fe.type=v,fe.isSpread=P,fe.tupleNameSource=z,fe}function P1(v){let P=F(352);return P._children=v,P}function WC(v){let P=F(353);return P.original=v,dt(P,v),P}function BC(v,P){let z=F(355);return z.expression=v,z.original=P,z.transformFlags|=Cn(z.expression)|1,dt(z,P),z}function Lv(v,P){return v.expression!==P?mn(BC(P,v.original),v):v}function jv(){return F(354)}function yT(v){if(So(v)&&!MP(v)&&!v.original&&!v.emitNode&&!v.id){if(GA(v))return v.elements;if(vn(v)&&Qne(v.operatorToken))return[v.left,v.right]}return v}function sg(v){let P=F(356);return P.elements=O(kY(v,yT)),P.transformFlags|=Wa(P.elements),P}function zC(v,P){return v.elements!==P?mn(sg(P),v):v}function JC(v,P){let z=F(357);return z.expression=v,z.thisArg=P,z.transformFlags|=Cn(z.expression)|Cn(z.thisArg),z}function iR(v,P,z){return v.expression!==P||v.thisArg!==z?mn(JC(P,z),v):v}function vT(v){let P=ie(v.escapedText);return P.flags|=v.flags&-17,P.transformFlags=v.transformFlags,n(P,v),$4(P,{...v.emitNode.autoGenerate}),P}function sR(v){let P=ie(v.escapedText);P.flags|=v.flags&-17,P.jsDoc=v.jsDoc,P.flowNode=v.flowNode,P.symbol=v.symbol,P.transformFlags=v.transformFlags,n(P,v);let z=Sk(v);return z&&ov(P,z),P}function nN(v){let P=De(v.escapedText);return P.flags|=v.flags&-17,P.transformFlags=v.transformFlags,n(P,v),$4(P,{...v.emitNode.autoGenerate}),P}function GC(v){let P=De(v.escapedText);return P.flags|=v.flags&-17,P.transformFlags=v.transformFlags,n(P,v),P}function Qi(v){if(v===void 0)return v;if(Mi(v))return vc(v);if(Ko(v))return vT(v);if(je(v))return sR(v);if(tk(v))return nN(v);if(ji(v))return GC(v);let P=rF(v.kind)?t.createBaseNode(v.kind):t.createBaseTokenNode(v.kind);P.flags|=v.flags&-17,P.transformFlags=v.transformFlags,n(P,v);for(let z in v)bo(P,z)||!bo(v,z)||(P[z]=v[z]);return P}function bT(v,P,z){return sn(C_(void 0,void 0,void 0,void 0,P?[P]:[],void 0,fs(v,!0)),void 0,z?[z]:[])}function tn(v,P,z){return sn(zf(void 0,void 0,P?[P]:[],void 0,void 0,fs(v,!0)),void 0,z?[z]:[])}function A1(){return Km($("0"))}function UC(v){return tx(void 0,!1,v)}function xD(v){return Io(void 0,!1,rx([sb(!1,void 0,v)]))}function VC(v,P){return P==="null"?E.createStrictEquality(v,Ne()):P==="undefined"?E.createStrictEquality(v,A1()):E.createStrictEquality(B_(v),me(P))}function aR(v,P){return P==="null"?E.createStrictInequality(v,Ne()):P==="undefined"?E.createStrictInequality(v,A1()):E.createStrictInequality(B_(v),me(P))}function E1(v,P,z){return ZT(v)?Js(Eo(v,void 0,P),void 0,void 0,z):sn(Dc(v,P),void 0,z)}function kj(v,P,z){return E1(v,"bind",[P,...z])}function N1(v,P,z){return E1(v,"call",[P,...z])}function xj(v,P,z){return E1(v,"apply",[P,z])}function ST(v,P,z){return E1(de(v),P,z)}function qC(v,P){return E1(v,"slice",P===void 0?[]:[ub(P)])}function oR(v,P){return E1(v,"concat",P)}function CD(v,P,z){return ST("Object","defineProperty",[v,ub(P),z])}function TT(v,P){return ST("Object","getOwnPropertyDescriptor",[v,ub(P)])}function M1(v,P,z){return ST("Reflect","get",z?[v,P,z]:[v,P])}function Ay(v,P,z,fe){return ST("Reflect","set",fe?[v,P,z,fe]:[v,P,z])}function R1(v,P,z){return z?(v.push(nf(P,z)),!0):!1}function ag(v,P){let z=[];R1(z,"enumerable",ub(v.enumerable)),R1(z,"configurable",ub(v.configurable));let fe=R1(z,"writable",ub(v.writable));fe=R1(z,"value",v.value)||fe;let He=R1(z,"get",v.get);return He=R1(z,"set",v.set)||He,w.assert(!(fe&&He),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),io(z,!P)}function wD(v,P){switch(v.kind){case 217:return If(v,P);case 216:return wl(v,v.type,P);case 234:return bv(v,P,v.type);case 238:return rt(v,P,v.type);case 235:return Sv(v,P);case 233:return Y0(v,P,v.typeArguments);case 355:return Lv(v,P)}}function Cj(v){return b_(v)&&So(v)&&So(av(v))&&So(Fm(v))&&!pt(uI(v))&&!pt(q4(v))}function og(v,P,z=63){return v&&y7(v,z)&&!Cj(v)?wD(v,og(v.expression,P)):P}function F1(v,P,z){if(!P)return v;let fe=xy(P,P.label,z0(P.statement)?F1(v,P.statement):v);return z&&z(P),fe}function iN(v,P){let z=Ka(v);switch(z.kind){case 80:return P;case 110:case 9:case 10:case 11:return!1;case 209:return z.elements.length!==0;case 210:return z.properties.length>0;default:return!0}}function ol(v,P,z,fe=!1){let He=Wc(v,63),Zt,kn;return H_(He)?(Zt=ee(),kn=He):WA(He)?(Zt=ee(),kn=z!==void 0&&z<2?dt(de("_super"),He):He):Na(He)&8192?(Zt=A1(),kn=i().parenthesizeLeftSideOfAccess(He,!1)):Nn(He)?iN(He.expression,fe)?(Zt=ye(P),kn=Dc(dt(E.createAssignment(Zt,He.expression),He.expression),He.name),dt(kn,He)):(Zt=He.expression,kn=He):wo(He)?iN(He.expression,fe)?(Zt=ye(P),kn=bu(dt(E.createAssignment(Zt,He.expression),He.expression),He.argumentExpression),dt(kn,He)):(Zt=He.expression,kn=He):(Zt=A1(),kn=i().parenthesizeLeftSideOfAccess(v,!1)),{target:kn,thisArg:Zt}}function X(v,P){return Dc(Il(io([Y(void 0,"value",[hi(void 0,void 0,v,void 0,void 0,void 0)],fs([fp(P)]))])),"value")}function Se(v){return v.length>10?sg(v):d_(v,E.createComma)}function We(v,P,z,fe=0,He){let Zt=He?v&&H8(v):vs(v);if(Zt&&je(Zt)&&!Ko(Zt)){let kn=Xa(dt(Qi(Zt),Zt),Zt.parent);return fe|=Na(Zt),z||(fe|=96),P||(fe|=3072),fe&&dn(kn,fe),kn}return Ge(v)}function wt(v,P,z){return We(v,P,z,98304)}function Yt(v,P,z,fe){return We(v,P,z,32768,fe)}function wr(v,P,z){return We(v,P,z,16384)}function Un(v,P,z){return We(v,P,z)}function Ei(v,P,z,fe){let He=Dc(v,So(P)?P:Qi(P));dt(He,P);let Zt=0;return fe||(Zt|=96),z||(Zt|=3072),Zt&&dn(He,Zt),He}function fi(v,P,z,fe){return v&&ei(P,32)?Ei(v,We(P),z,fe):wr(P,z,fe)}function mi(v,P,z,fe){let He=yo(v,P,0,z);return Ja(v,P,He,fe)}function es(v){return ya(v.expression)&&v.expression.text==="use strict"}function ho(){return Ju(fp(me("use strict")))}function yo(v,P,z=0,fe){w.assert(P.length===0,"Prologue directives should be at the first statement in the target statements array");let He=!1,Zt=v.length;for(;z<Zt;){let kn=v[z];if(wm(kn))es(kn)&&(He=!0),P.push(kn);else break;z++}return fe&&!He&&P.push(ho()),z}function Ja(v,P,z,fe,He=iS){let Zt=v.length;for(;z!==void 0&&z<Zt;){let kn=v[z];if(Na(kn)&2097152&&He(kn))jr(P,fe?et(kn,fe,Ii):kn);else break;z++}return z}function Wp(v){return CG(v)?v:dt(O([ho(),...v]),v)}function Gg(v){return w.assert(Oi(v,ite),"Cannot lift nodes to a Block."),hg(v)||fs(v)}function md(v,P,z){let fe=z;for(;fe<v.length&&P(v[fe]);)fe++;return fe}function Yl(v,P){if(!pt(P))return v;let z=md(v,wm,0),fe=md(v,IF,z),He=md(v,DF,fe),Zt=md(P,wm,0),kn=md(P,IF,Zt),os=md(P,DF,kn),no=md(P,B6,os);w.assert(no===P.length,"Expected declarations to be valid standard or custom prologues");let um=lS(v)?v.slice():v;if(no>os&&um.splice(He,0,...P.slice(os,no)),os>kn&&um.splice(fe,0,...P.slice(kn,os)),kn>Zt&&um.splice(z,0,...P.slice(Zt,kn)),Zt>0)if(z===0)um.splice(0,0,...P.slice(0,Zt));else{let Jh=new Map;for(let Ug=0;Ug<z;Ug++){let HC=v[Ug];Jh.set(HC.expression.text,!0)}for(let Ug=Zt-1;Ug>=0;Ug--){let HC=P[Ug];Jh.has(HC.expression.text)||um.unshift(HC)}}return lS(v)?dt(O(um,v.hasTrailingComma),v):v}function lm(v,P){let z;return typeof P=="number"?z=bt(P):z=P,$o(v)?Hr(v,z,v.name,v.constraint,v.default):Bi(v)?_s(v,z,v.dotDotDotToken,v.name,v.questionToken,v.type,v.initializer):_I(v)?en(v,z,v.typeParameters,v.parameters,v.type):s_(v)?Rn(v,z,v.name,v.questionToken,v.type):ds(v)?Ue(v,z,v.name,v.questionToken??v.exclamationToken,v.type,v.initializer):xd(v)?sr(v,z,v.name,v.questionToken,v.typeParameters,v.parameters,v.type):xc(v)?Zn(v,z,v.asteriskToken,v.name,v.questionToken,v.typeParameters,v.parameters,v.type,v.body):lc(v)?xs(v,z,v.parameters,v.body):Mp(v)?ae(v,z,v.name,v.parameters,v.type,v.body):X_(v)?Ae(v,z,v.name,v.parameters,v.body):W0(v)?Mt(v,z,v.parameters,v.type):Ao(v)?Pd(v,z,v.asteriskToken,v.name,v.typeParameters,v.parameters,v.type,v.body):Lo(v)?Qm(v,z,v.typeParameters,v.parameters,v.type,v.equalsGreaterThanToken,v.body):ml(v)?rm(v,z,v.name,v.typeParameters,v.heritageClauses,v.members):Lc(v)?Ls(v,z,v.declarationList):jc(v)?Ah(v,z,v.asteriskToken,v.name,v.typeParameters,v.parameters,v.type,v.body):gl(v)?z_(v,z,v.name,v.typeParameters,v.heritageClauses,v.members):hu(v)?Af(v,z,v.name,v.typeParameters,v.heritageClauses,v.members):sd(v)?wv(v,z,v.name,v.typeParameters,v.type):LS(v)?nm(v,z,v.name,v.members):nl(v)?lu(v,z,v.name,v.body):Ol(v)?im(v,z,v.isTypeOnly,v.name,v.moduleReference):sc(v)?kC(v,z,v.importClause,v.moduleSpecifier,v.attributes):Ho(v)?tg(v,z,v.expression):Xc(v)?v1(v,z,v.isTypeOnly,v.exportClause,v.moduleSpecifier,v.attributes):w.assertNever(v)}function lb(v,P){return Bi(v)?_s(v,P,v.dotDotDotToken,v.name,v.questionToken,v.type,v.initializer):ds(v)?Ue(v,P,v.name,v.questionToken??v.exclamationToken,v.type,v.initializer):xc(v)?Zn(v,P,v.asteriskToken,v.name,v.questionToken,v.typeParameters,v.parameters,v.type,v.body):Mp(v)?ae(v,P,v.name,v.parameters,v.type,v.body):X_(v)?Ae(v,P,v.name,v.parameters,v.body):ml(v)?rm(v,P,v.name,v.typeParameters,v.heritageClauses,v.members):gl(v)?z_(v,P,v.name,v.typeParameters,v.heritageClauses,v.members):w.assertNever(v)}function cR(v,P){switch(v.kind){case 177:return ae(v,v.modifiers,P,v.parameters,v.type,v.body);case 178:return Ae(v,v.modifiers,P,v.parameters,v.body);case 174:return Zn(v,v.modifiers,v.asteriskToken,P,v.questionToken,v.typeParameters,v.parameters,v.type,v.body);case 173:return sr(v,v.modifiers,P,v.questionToken,v.typeParameters,v.parameters,v.type);case 172:return Ue(v,v.modifiers,P,v.questionToken??v.exclamationToken,v.type,v.initializer);case 171:return Rn(v,v.modifiers,P,v.questionToken,v.type);case 303:return cm(v,P,v.initializer)}}function qa(v){return v?O(v):void 0}function Dl(v){return typeof v=="string"?de(v):v}function ub(v){return typeof v=="string"?me(v):typeof v=="number"?$(v):typeof v=="boolean"?v?Ie():Ce():v}function $C(v){return v&&i().parenthesizeExpressionForDisallowedComma(v)}function ID(v){return typeof v=="number"?le(v):v}function G_(v){return v&&_ie(v)?dt(n(Ql(),v),v):v}function _b(v){return typeof v=="string"||v&&!oi(v)?Cv(v,void 0,void 0,void 0):v}function mn(v,P){return v!==P&&(n(v,P),dt(v,P)),v}}function QJ(e){switch(e){case 344:return"type";case 342:return"returns";case 343:return"this";case 340:return"enum";case 330:return"author";case 332:return"class";case 333:return"public";case 334:return"private";case 335:return"protected";case 336:return"readonly";case 337:return"override";case 345:return"template";case 346:return"typedef";case 341:return"param";case 348:return"prop";case 338:return"callback";case 339:return"overload";case 328:return"augments";case 329:return"implements";case 351:return"import";default:return w.fail(`Unsupported kind: ${w.formatSyntaxKind(e)}`)}}var sv,abe={};function zWe(e,t){switch(sv||(sv=ah(99,!1,0)),e){case 15:sv.setText("`"+t+"`");break;case 16:sv.setText("`"+t+"${");break;case 17:sv.setText("}"+t+"${");break;case 18:sv.setText("}"+t+"`");break}let n=sv.scan();if(n===20&&(n=sv.reScanTemplateToken(!1)),sv.isUnterminated())return sv.setText(void 0),abe;let i;switch(n){case 15:case 16:case 17:case 18:i=sv.getTokenValue();break}return i===void 0||sv.scan()!==1?(sv.setText(void 0),abe):(sv.setText(void 0),i)}function L0(e){return e&&je(e)?G4(e):Cn(e)}function G4(e){return Cn(e)&-67108865}function JWe(e,t){return t|e.transformFlags&134234112}function Cn(e){if(!e)return 0;let t=e.transformFlags&~GWe(e.kind);return Gl(e)&&tl(e.name)?JWe(e.name,t):t}function Wa(e){return e?e.transformFlags:0}function obe(e){let t=0;for(let n of e)t|=Cn(n);e.transformFlags=t}function GWe(e){if(e>=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:return-2147450880;case 267:return-1941676032;case 169:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112;case 206:case 207:return-2147450880;case 216:case 238:case 234:case 355:case 217:case 108:return-2147483648;case 211:case 212:return-2147483648;default:return-2147483648}}var HO=Ane();function QO(e){return e.flags|=16,e}var UWe={createBaseSourceFileNode:e=>QO(HO.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>QO(HO.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>QO(HO.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>QO(HO.createBaseTokenNode(e)),createBaseNode:e=>QO(HO.createBaseNode(e))},A=J4(4,UWe),cbe;function lbe(e,t,n){return new(cbe||(cbe=mu.getSourceMapSourceConstructor()))(e,t,n)}function En(e,t){if(e.original!==t&&(e.original=t,t)){let n=t.emitNode;n&&(e.emitNode=VWe(n,e.emitNode))}return e}function VWe(e,t){let{flags:n,internalFlags:i,leadingComments:s,trailingComments:o,commentRange:c,sourceMapRange:_,tokenSourceMapRanges:u,constantValue:g,helpers:m,startsOnNewLine:h,snippetElement:S,classThis:T,assignedName:x}=e;if(t||(t={}),n&&(t.flags=n),i&&(t.internalFlags=i&-9),s&&(t.leadingComments=jn(s.slice(),t.leadingComments)),o&&(t.trailingComments=jn(o.slice(),t.trailingComments)),c&&(t.commentRange=c),_&&(t.sourceMapRange=_),u&&(t.tokenSourceMapRanges=qWe(u,t.tokenSourceMapRanges)),g!==void 0&&(t.constantValue=g),m)for(let I of m)t.helpers=Zh(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 qWe(e,t){t||(t=[]);for(let n in e)t[n]=e[n];return t}function Au(e){if(e.emitNode)w.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(MP(e)){if(e.kind===307)return e.emitNode={annotatedNodes:[e]};let t=Fr(Cs(Fr(e)))??w.fail("Could not determine parsed source file.");Au(t).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function KJ(e){var t,n;let i=(n=(t=Fr(Cs(e)))==null?void 0:t.emitNode)==null?void 0:n.annotatedNodes;if(i)for(let s of i)s.emitNode=void 0}function U4(e){let t=Au(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function dn(e,t){return Au(e).flags=t,e}function Rm(e,t){let n=Au(e);return n.flags=n.flags|t,e}function V4(e,t){return Au(e).internalFlags=t,e}function bk(e,t){let n=Au(e);return n.internalFlags=n.internalFlags|t,e}function av(e){var t;return((t=e.emitNode)==null?void 0:t.sourceMapRange)??e}function Ia(e,t){return Au(e).sourceMapRange=t,e}function ube(e,t){var n,i;return(i=(n=e.emitNode)==null?void 0:n.tokenSourceMapRanges)==null?void 0:i[t]}function One(e,t,n){let i=Au(e),s=i.tokenSourceMapRanges??(i.tokenSourceMapRanges=[]);return s[t]=n,e}function RA(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function KO(e,t){return Au(e).startsOnNewLine=t,e}function Fm(e){var t;return((t=e.emitNode)==null?void 0:t.commentRange)??e}function dl(e,t){return Au(e).commentRange=t,e}function uI(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function Jb(e,t){return Au(e).leadingComments=t,e}function NS(e,t,n,i){return Jb(e,jr(uI(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:n}))}function q4(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function A2(e,t){return Au(e).trailingComments=t,e}function FA(e,t,n,i){return A2(e,jr(q4(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:n}))}function Lne(e,t){Jb(e,uI(t)),A2(e,q4(t));let n=Au(t);return n.leadingComments=void 0,n.trailingComments=void 0,e}function jne(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function Wne(e,t){let n=Au(e);return n.constantValue=t,e}function E2(e,t){let n=Au(e);return n.helpers=jr(n.helpers,t),e}function Th(e,t){if(pt(t)){let n=Au(e);for(let i of t)n.helpers=Zh(n.helpers,i)}return e}function _be(e,t){var n;let i=(n=e.emitNode)==null?void 0:n.helpers;return i?mP(i,t):!1}function XJ(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function Bne(e,t,n){let i=e.emitNode,s=i&&i.helpers;if(!pt(s))return;let o=Au(t),c=0;for(let _=0;_<s.length;_++){let u=s[_];n(u)?(c++,o.helpers=Zh(o.helpers,u)):c>0&&(s[_-c]=u)}c>0&&(s.length-=c)}function YJ(e){var t;return(t=e.emitNode)==null?void 0:t.snippetElement}function ZJ(e,t){let n=Au(e);return n.snippetElement=t,e}function eG(e){return Au(e).internalFlags|=4,e}function zne(e,t){let n=Au(e);return n.typeNode=t,e}function Jne(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function ov(e,t){return Au(e).identifierTypeArguments=t,e}function Sk(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function $4(e,t){return Au(e).autoGenerate=t,e}function fbe(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function Gne(e,t){return Au(e).generatedImportReference=t,e}function Une(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var Vne=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(Vne||{});function qne(e){let t=e.factory,n=Yu(()=>V4(t.createTrue(),8)),i=Yu(()=>V4(t.createFalse(),8));return{getUnscopedHelperName:s,createDecorateHelper:o,createMetadataHelper:c,createParamHelper:_,createESDecorateHelper:I,createRunInitializersHelper:D,createAssignHelper:E,createAwaitHelper:O,createAsyncGeneratorHelper:F,createAsyncDelegatorHelper:B,createAsyncValuesHelper:G,createRestHelper:$,createAwaiterHelper:K,createExtendsHelper:U,createTemplateObjectHelper:me,createSpreadArrayHelper:te,createPropKeyHelper:V,createSetFunctionNameHelper:ne,createValuesHelper:ie,createReadHelper:oe,createGeneratorHelper:de,createImportStarHelper:ye,createImportStarCallbackHelper:H,createImportDefaultHelper:ve,createExportStarHelper:Ge,createClassPrivateFieldGetHelper:De,createClassPrivateFieldSetHelper:se,createClassPrivateFieldInHelper:xe,createAddDisposableResourceHelper:_e,createDisposeResourcesHelper:tt,createRewriteRelativeImportExtensionsHelper:ct};function s(le){return dn(t.createIdentifier(le),8196)}function o(le,Je,ee,Ne){e.requestEmitHelper($We);let Ie=[];return Ie.push(t.createArrayLiteralExpression(le,!0)),Ie.push(Je),ee&&(Ie.push(ee),Ne&&Ie.push(Ne)),t.createCallExpression(s("__decorate"),void 0,Ie)}function c(le,Je){return e.requestEmitHelper(HWe),t.createCallExpression(s("__metadata"),void 0,[t.createStringLiteral(le),Je])}function _(le,Je,ee){return e.requestEmitHelper(QWe),dt(t.createCallExpression(s("__param"),void 0,[t.createNumericLiteral(Je+""),le]),ee)}function u(le){let Je=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),le.name),t.createPropertyAssignment(t.createIdentifier("metadata"),le.metadata)];return t.createObjectLiteralExpression(Je)}function g(le){let Je=le.computed?t.createElementAccessExpression(t.createIdentifier("obj"),le.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),le.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,Je))}function m(le){let Je=le.computed?t.createElementAccessExpression(t.createIdentifier("obj"),le.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),le.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(Je,t.createIdentifier("value")))])))}function h(le){let Je=le.computed?le.name:je(le.name)?t.createStringLiteralFromNode(le.name):le.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(Je,103,t.createIdentifier("obj"))))}function S(le,Je){let ee=[];return ee.push(h(le)),Je.get&&ee.push(g(le)),Je.set&&ee.push(m(le)),t.createObjectLiteralExpression(ee)}function T(le){let Je=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(le.kind)),t.createPropertyAssignment(t.createIdentifier("name"),le.name.computed?le.name.name:t.createStringLiteralFromNode(le.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),le.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),le.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),S(le.name,le.access)),t.createPropertyAssignment(t.createIdentifier("metadata"),le.metadata)];return t.createObjectLiteralExpression(Je)}function x(le){return le.kind==="class"?u(le):T(le)}function I(le,Je,ee,Ne,Ie,Ce){return e.requestEmitHelper(KWe),t.createCallExpression(s("__esDecorate"),void 0,[le??t.createNull(),Je??t.createNull(),ee,x(Ne),Ie,Ce])}function D(le,Je,ee){return e.requestEmitHelper(XWe),t.createCallExpression(s("__runInitializers"),void 0,ee?[le,Je,ee]:[le,Je])}function E(le){return wa(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,le):(e.requestEmitHelper(YWe),t.createCallExpression(s("__assign"),void 0,le))}function O(le){return e.requestEmitHelper(XO),t.createCallExpression(s("__await"),void 0,[le])}function F(le,Je){return e.requestEmitHelper(XO),e.requestEmitHelper(ZWe),(le.emitNode||(le.emitNode={})).flags|=1572864,t.createCallExpression(s("__asyncGenerator"),void 0,[Je?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),le])}function B(le){return e.requestEmitHelper(XO),e.requestEmitHelper(eBe),t.createCallExpression(s("__asyncDelegator"),void 0,[le])}function G(le){return e.requestEmitHelper(tBe),t.createCallExpression(s("__asyncValues"),void 0,[le])}function $(le,Je,ee,Ne){e.requestEmitHelper(rBe);let Ie=[],Ce=0;for(let Ve=0;Ve<Je.length-1;Ve++){let bt=IG(Je[Ve]);if(bt)if(pa(bt)){w.assertIsDefined(ee,"Encountered computed property name but 'computedTempVariables' argument was not provided.");let zt=ee[Ce];Ce++,Ie.push(t.createConditionalExpression(t.createTypeCheck(zt,"symbol"),void 0,zt,void 0,t.createAdd(zt,t.createStringLiteral(""))))}else Ie.push(t.createStringLiteralFromNode(bt))}return t.createCallExpression(s("__rest"),void 0,[le,dt(t.createArrayLiteralExpression(Ie),Ne)])}function K(le,Je,ee,Ne,Ie){e.requestEmitHelper(nBe);let Ce=t.createFunctionExpression(void 0,t.createToken(42),void 0,void 0,Ne??[],void 0,Ie);return(Ce.emitNode||(Ce.emitNode={})).flags|=1572864,t.createCallExpression(s("__awaiter"),void 0,[le?t.createThis():t.createVoidZero(),Je??t.createVoidZero(),ee?nM(t,ee):t.createVoidZero(),Ce])}function U(le){return e.requestEmitHelper(iBe),t.createCallExpression(s("__extends"),void 0,[le,t.createUniqueName("_super",48)])}function me(le,Je){return e.requestEmitHelper(sBe),t.createCallExpression(s("__makeTemplateObject"),void 0,[le,Je])}function te(le,Je,ee){return e.requestEmitHelper(oBe),t.createCallExpression(s("__spreadArray"),void 0,[le,Je,ee?n():i()])}function V(le){return e.requestEmitHelper(cBe),t.createCallExpression(s("__propKey"),void 0,[le])}function ne(le,Je,ee){return e.requestEmitHelper(lBe),e.factory.createCallExpression(s("__setFunctionName"),void 0,ee?[le,Je,e.factory.createStringLiteral(ee)]:[le,Je])}function ie(le){return e.requestEmitHelper(uBe),t.createCallExpression(s("__values"),void 0,[le])}function oe(le,Je){return e.requestEmitHelper(aBe),t.createCallExpression(s("__read"),void 0,Je!==void 0?[le,t.createNumericLiteral(Je+"")]:[le])}function de(le){return e.requestEmitHelper(_Be),t.createCallExpression(s("__generator"),void 0,[t.createThis(),le])}function ye(le){return e.requestEmitHelper(dbe),t.createCallExpression(s("__importStar"),void 0,[le])}function H(){return e.requestEmitHelper(dbe),s("__importStar")}function ve(le){return e.requestEmitHelper(pBe),t.createCallExpression(s("__importDefault"),void 0,[le])}function Ge(le,Je=t.createIdentifier("exports")){return e.requestEmitHelper(dBe),e.requestEmitHelper(Hne),t.createCallExpression(s("__exportStar"),void 0,[le,Je])}function De(le,Je,ee,Ne){e.requestEmitHelper(mBe);let Ie;return Ne?Ie=[le,Je,t.createStringLiteral(ee),Ne]:Ie=[le,Je,t.createStringLiteral(ee)],t.createCallExpression(s("__classPrivateFieldGet"),void 0,Ie)}function se(le,Je,ee,Ne,Ie){e.requestEmitHelper(gBe);let Ce;return Ie?Ce=[le,Je,ee,t.createStringLiteral(Ne),Ie]:Ce=[le,Je,ee,t.createStringLiteral(Ne)],t.createCallExpression(s("__classPrivateFieldSet"),void 0,Ce)}function xe(le,Je){return e.requestEmitHelper(hBe),t.createCallExpression(s("__classPrivateFieldIn"),void 0,[le,Je])}function _e(le,Je,ee){return e.requestEmitHelper(yBe),t.createCallExpression(s("__addDisposableResource"),void 0,[le,Je,ee?t.createTrue():t.createFalse()])}function tt(le){return e.requestEmitHelper(vBe),t.createCallExpression(s("__disposeResources"),void 0,[le])}function ct(le){return e.requestEmitHelper(bBe),t.createCallExpression(s("__rewriteRelativeImportExtension"),void 0,e.getCompilerOptions().jsx===1?[le,t.createTrue()]:[le])}}function $ne(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 pbe(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 $We={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;
};`},HWe={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);
};`},QWe={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); }
};`},KWe={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;
};`},XWe={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;
};`},YWe={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);
};`},XO={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); }`},ZWe={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[XO],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]); }
};`},eBe={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[XO],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; }
};`},tBe={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); }
};`},rBe={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;
};`},nBe={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());
});
};`},iBe={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 __());
};
})();`},sBe={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;
};`},aBe={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;
};`},oBe={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);
};`},lBe={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 });
};`},uBe={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.");
};`},_Be={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 };
}
};`},Hne={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];
}));`},fBe={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;
});`},dbe={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[Hne,fBe],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;
};
})();`},pBe={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:`
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};`},dBe={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[Hne],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);
};`},mBe={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);
};`},gBe={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;
};`},hBe={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);
};`},yBe={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;
};`},vBe={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;
});`},bBe={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;
};`},YO={name:"typescript:async-super",scoped:!0,text:pbe`
const ${"_superIndex"} = name => super[name];`},ZO={name:"typescript:advanced-async-super",scoped:!0,text:pbe`
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 OA(e,t){return qs(e)&&je(e.expression)&&(Na(e.expression)&8192)!==0&&e.expression.escapedText===t}function L_(e){return e.kind===9}function LA(e){return e.kind===10}function ya(e){return e.kind===11}function N2(e){return e.kind===12}function tG(e){return e.kind===14}function Tk(e){return e.kind===15}function M2(e){return e.kind===16}function rG(e){return e.kind===17}function e7(e){return e.kind===18}function t7(e){return e.kind===26}function Qne(e){return e.kind===28}function nG(e){return e.kind===40}function iG(e){return e.kind===41}function H4(e){return e.kind===42}function Q4(e){return e.kind===54}function j0(e){return e.kind===58}function Kne(e){return e.kind===59}function r7(e){return e.kind===29}function Xne(e){return e.kind===39}function je(e){return e.kind===80}function ji(e){return e.kind===81}function R2(e){return e.kind===95}function n7(e){return e.kind===90}function jA(e){return e.kind===134}function Yne(e){return e.kind===131}function sG(e){return e.kind===135}function Zne(e){return e.kind===148}function F2(e){return e.kind===126}function eie(e){return e.kind===128}function tie(e){return e.kind===164}function rie(e){return e.kind===129}function WA(e){return e.kind===108}function BA(e){return e.kind===102}function nie(e){return e.kind===84}function y_(e){return e.kind===166}function pa(e){return e.kind===167}function $o(e){return e.kind===168}function Bi(e){return e.kind===169}function Rl(e){return e.kind===170}function s_(e){return e.kind===171}function ds(e){return e.kind===172}function xd(e){return e.kind===173}function xc(e){return e.kind===174}function Nc(e){return e.kind===175}function lc(e){return e.kind===176}function Mp(e){return e.kind===177}function X_(e){return e.kind===178}function O2(e){return e.kind===179}function K4(e){return e.kind===180}function W0(e){return e.kind===181}function L2(e){return e.kind===182}function yf(e){return e.kind===183}function Ig(e){return e.kind===184}function _I(e){return e.kind===185}function MS(e){return e.kind===186}function v_(e){return e.kind===187}function X4(e){return e.kind===188}function j2(e){return e.kind===189}function fI(e){return e.kind===202}function i7(e){return e.kind===190}function s7(e){return e.kind===191}function cv(e){return e.kind===192}function W2(e){return e.kind===193}function RS(e){return e.kind===194}function kk(e){return e.kind===195}function xk(e){return e.kind===196}function zA(e){return e.kind===197}function Gb(e){return e.kind===198}function FS(e){return e.kind===199}function Ck(e){return e.kind===200}function lv(e){return e.kind===201}function Om(e){return e.kind===205}function aG(e){return e.kind===204}function iie(e){return e.kind===203}function np(e){return e.kind===206}function uv(e){return e.kind===207}function Da(e){return e.kind===208}function gu(e){return e.kind===209}function Sa(e){return e.kind===210}function Nn(e){return e.kind===211}function wo(e){return e.kind===212}function qs(e){return e.kind===213}function OS(e){return e.kind===214}function Ub(e){return e.kind===215}function a7(e){return e.kind===216}function b_(e){return e.kind===217}function Ao(e){return e.kind===218}function Lo(e){return e.kind===219}function sie(e){return e.kind===220}function pI(e){return e.kind===221}function B2(e){return e.kind===222}function B0(e){return e.kind===223}function Vb(e){return e.kind===224}function oG(e){return e.kind===225}function vn(e){return e.kind===226}function wk(e){return e.kind===227}function o7(e){return e.kind===228}function Y4(e){return e.kind===229}function Rp(e){return e.kind===230}function ml(e){return e.kind===231}function Fl(e){return e.kind===232}function py(e){return e.kind===233}function dI(e){return e.kind===234}function mI(e){return e.kind===238}function z2(e){return e.kind===235}function JA(e){return e.kind===236}function mbe(e){return e.kind===237}function aie(e){return e.kind===355}function GA(e){return e.kind===356}function gI(e){return e.kind===239}function oie(e){return e.kind===240}function Fs(e){return e.kind===241}function Lc(e){return e.kind===243}function cG(e){return e.kind===242}function $l(e){return e.kind===244}function qb(e){return e.kind===245}function gbe(e){return e.kind===246}function lG(e){return e.kind===247}function $b(e){return e.kind===248}function c7(e){return e.kind===249}function Z4(e){return e.kind===250}function hbe(e){return e.kind===251}function ybe(e){return e.kind===252}function Bf(e){return e.kind===253}function cie(e){return e.kind===254}function UA(e){return e.kind===255}function z0(e){return e.kind===256}function uG(e){return e.kind===257}function Ik(e){return e.kind===258}function vbe(e){return e.kind===259}function oi(e){return e.kind===260}function au(e){return e.kind===261}function jc(e){return e.kind===262}function gl(e){return e.kind===263}function hu(e){return e.kind===264}function sd(e){return e.kind===265}function LS(e){return e.kind===266}function nl(e){return e.kind===267}function Lm(e){return e.kind===268}function VA(e){return e.kind===269}function eM(e){return e.kind===270}function Ol(e){return e.kind===271}function sc(e){return e.kind===272}function Cd(e){return e.kind===273}function bbe(e){return e.kind===302}function lie(e){return e.kind===300}function Sbe(e){return e.kind===301}function Dk(e){return e.kind===300}function uie(e){return e.kind===301}function kh(e){return e.kind===274}function Dg(e){return e.kind===280}function jm(e){return e.kind===275}function a_(e){return e.kind===276}function Ho(e){return e.kind===277}function Xc(e){return e.kind===278}function Fp(e){return e.kind===279}function zu(e){return e.kind===281}function l7(e){return e.kind===80||e.kind===11}function Tbe(e){return e.kind===282}function _ie(e){return e.kind===353}function J2(e){return e.kind===357}function dy(e){return e.kind===283}function Wm(e){return e.kind===284}function Pk(e){return e.kind===285}function Hd(e){return e.kind===286}function jS(e){return e.kind===287}function Hb(e){return e.kind===288}function wd(e){return e.kind===289}function fie(e){return e.kind===290}function Bm(e){return e.kind===291}function WS(e){return e.kind===292}function G2(e){return e.kind===293}function hI(e){return e.kind===294}function Qd(e){return e.kind===295}function yI(e){return e.kind===296}function qA(e){return e.kind===297}function vf(e){return e.kind===298}function BS(e){return e.kind===299}function hl(e){return e.kind===303}function Eu(e){return e.kind===304}function xh(e){return e.kind===305}function _v(e){return e.kind===306}function Mi(e){return e.kind===307}function pie(e){return e.kind===308}function Qb(e){return e.kind===309}function $A(e){return e.kind===310}function Kb(e){return e.kind===311}function die(e){return e.kind===324}function mie(e){return e.kind===325}function kbe(e){return e.kind===326}function gie(e){return e.kind===312}function hie(e){return e.kind===313}function vI(e){return e.kind===314}function u7(e){return e.kind===315}function _G(e){return e.kind===316}function bI(e){return e.kind===317}function _7(e){return e.kind===318}function xbe(e){return e.kind===319}function Kd(e){return e.kind===320}function Ak(e){return e.kind===322}function fv(e){return e.kind===323}function U2(e){return e.kind===328}function Cbe(e){return e.kind===330}function yie(e){return e.kind===332}function fG(e){return e.kind===338}function pG(e){return e.kind===333}function dG(e){return e.kind===334}function mG(e){return e.kind===335}function gG(e){return e.kind===336}function f7(e){return e.kind===337}function SI(e){return e.kind===339}function hG(e){return e.kind===331}function wbe(e){return e.kind===347}function tM(e){return e.kind===340}function ip(e){return e.kind===341}function p7(e){return e.kind===342}function yG(e){return e.kind===343}function HA(e){return e.kind===344}function ad(e){return e.kind===345}function Ek(e){return e.kind===346}function Ibe(e){return e.kind===327}function vie(e){return e.kind===348}function d7(e){return e.kind===329}function m7(e){return e.kind===350}function Dbe(e){return e.kind===349}function zm(e){return e.kind===351}function TI(e){return e.kind===352}var QA=new WeakMap;function vG(e,t){var n;let i=e.kind;return rF(i)?i===352?e._children:(n=QA.get(t))==null?void 0:n.get(e):qe}function bie(e,t,n){e.kind===352&&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 bG(e,t){var n;e.kind===352&&w.fail("Did not expect to unset the children of a SyntaxList."),(n=QA.get(t))==null||n.delete(e)}function Sie(e,t){let n=QA.get(e);n!==void 0&&(QA.delete(e),QA.set(t,n))}function rM(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function Nk(e,t,n,i){if(pa(n))return dt(e.createElementAccessExpression(t,n.expression),i);{let s=dt(oh(n)?e.createPropertyAccessExpression(t,n):e.createElementAccessExpression(t,n),n);return Rm(s,128),s}}function Tie(e,t){let n=Yb.createIdentifier(e||"React");return Xa(n,Cs(t)),n}function kie(e,t,n){if(y_(t)){let i=kie(e,t.left,n),s=e.createIdentifier(Ln(t.right));return s.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,s)}else return Tie(Ln(t),n)}function SG(e,t,n,i){return t?kie(e,t,i):e.createPropertyAccessExpression(Tie(n,i),"createElement")}function SBe(e,t,n,i){return t?kie(e,t,i):e.createPropertyAccessExpression(Tie(n,i),"Fragment")}function xie(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 _ of s)Ju(_),c.push(_);else c.push(s[0]);return dt(e.createCallExpression(t,void 0,c),o)}function Cie(e,t,n,i,s,o,c){let u=[SBe(e,n,i,o),e.createNull()];if(s&&s.length>0)if(s.length>1)for(let g of s)Ju(g),u.push(g);else u.push(s[0]);return dt(e.createCallExpression(SG(e,t,i,o),void 0,u),c)}function TG(e,t,n){if(au(t)){let i=Ea(t.declarations),s=e.updateVariableDeclaration(i,i.name,void 0,void 0,n);return dt(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[s])),t)}else{let i=dt(e.createAssignment(t,n),t);return dt(e.createExpressionStatement(i),t)}}function nM(e,t){if(y_(t)){let n=nM(e,t.left),i=Xa(dt(e.cloneNode(t.right),t.right),t.right.parent);return dt(e.createPropertyAccessExpression(n,i),t)}else return Xa(dt(e.cloneNode(t),t),t.parent)}function kG(e,t){return je(t)?e.createStringLiteralFromNode(t):pa(t)?Xa(dt(e.cloneNode(t.expression),t.expression),t.expression.parent):Xa(dt(e.cloneNode(t),t),t.parent)}function TBe(e,t,n,i,s){let{firstAccessor:o,getAccessor:c,setAccessor:_}=wS(t,n);if(n===o)return dt(e.createObjectDefinePropertyCall(i,kG(e,n.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:c&&dt(En(e.createFunctionExpression(cS(c),void 0,void 0,void 0,c.parameters,void 0,c.body),c),c),set:_&&dt(En(e.createFunctionExpression(cS(_),void 0,void 0,void 0,_.parameters,void 0,_.body),_),_)},!s)),o)}function kBe(e,t,n){return En(dt(e.createAssignment(Nk(e,n,t.name,t.name),t.initializer),t),t)}function xBe(e,t,n){return En(dt(e.createAssignment(Nk(e,n,t.name,t.name),e.cloneNode(t.name)),t),t)}function CBe(e,t,n){return En(dt(e.createAssignment(Nk(e,n,t.name,t.name),En(dt(e.createFunctionExpression(cS(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function wie(e,t,n,i){switch(n.name&&ji(n.name)&&w.failBadSyntaxKind(n.name,"Private identifiers are not allowed in object literals."),n.kind){case 177:case 178:return TBe(e,t.properties,n,i,!!t.multiLine);case 303:return kBe(e,n,i);case 304:return xBe(e,n,i);case 174:return CBe(e,n,i)}}function g7(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),dt(n,t.operand);let _=Vb(t)?e.createPrefixUnaryExpression(o,c):e.createPostfixUnaryExpression(c,o);return dt(_,t),s&&(_=e.createAssignment(s,_),dt(_,t)),n=e.createComma(n,_),dt(n,t),oG(t)&&(n=e.createComma(n,c),dt(n,t)),n}function xG(e){return(Na(e)&65536)!==0}function my(e){return(Na(e)&32768)!==0}function h7(e){return(Na(e)&16384)!==0}function Pbe(e){return ya(e.expression)&&e.expression.text==="use strict"}function CG(e){for(let t of e)if(wm(t)){if(Pbe(t))return t}else break}function Iie(e){let t=_l(e);return t!==void 0&&wm(t)&&Pbe(t)}function iM(e){return e.kind===226&&e.operatorToken.kind===28}function KA(e){return iM(e)||GA(e)}function zS(e){return b_(e)&&un(e)&&!!Pb(e)}function kI(e){let t=h0(e);return w.assertIsDefined(t),t}function y7(e,t=63){switch(e.kind){case 217:return t&-2147483648&&zS(e)?!1:(t&1)!==0;case 216:case 234:return(t&2)!==0;case 238:return(t&34)!==0;case 233:return(t&16)!==0;case 235:return(t&4)!==0;case 355:return(t&8)!==0}return!1}function Wc(e,t=63){for(;y7(e,t);)e=e.expression;return e}function Die(e,t=63){let n=e.parent;for(;y7(n,t);)n=n.parent,w.assert(n);return n}function Ju(e){return KO(e,!0)}function sM(e){let t=ic(e,Mi),n=t&&t.emitNode;return n&&n.externalHelpersModuleName}function Pie(e){let t=ic(e,Mi),n=t&&t.emitNode;return!!n&&(!!n.externalHelpersModuleName||!!n.externalHelpers)}function wG(e,t,n,i,s,o,c){if(i.importHelpers&&jw(n,i)){let _=n_(i),u=Bk(n,i),g=wBe(n);if(_>=5&&_<=99||u===99||u===void 0&&_===200){if(g){let m=[];for(let h of g){let S=h.importName;S&&Sp(m,S)}if(pt(m)){m.sort(wu);let h=e.createNamedImports(hr(m,I=>vF(n,I)?e.createImportSpecifier(!1,void 0,e.createIdentifier(I)):e.createImportSpecifier(!1,e.createIdentifier(I),t.getUnscopedHelperName(I)))),S=ic(n,Mi),T=Au(S);T.externalHelpers=!0;let x=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,h),e.createStringLiteral(x0),void 0);return bk(x,2),x}}}else{let m=IBe(e,n,i,g,s,o||c);if(m){let h=e.createImportEqualsDeclaration(void 0,!1,m,e.createExternalModuleReference(e.createStringLiteral(x0)));return bk(h,2),h}}}}function wBe(e){return An(XJ(e),t=>!t.scoped)}function IBe(e,t,n,i,s,o){let c=sM(t);if(c)return c;if(pt(i)||(s||yh(n)&&o)&&bE(t,n)<4){let u=ic(t,Mi),g=Au(u);return g.externalHelpersModuleName||(g.externalHelpersModuleName=e.createUniqueName(x0))}}function xI(e,t,n){let i=qw(t);if(i&&!fk(t)&&!SF(t)){let s=i.name;return s.kind===11?e.getGeneratedNameForNode(t):Ko(s)?s:e.createIdentifier(pS(n,s)||Ln(s))}if(t.kind===272&&t.importClause||t.kind===278&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function V2(e,t,n,i,s,o){let c=u2(t);if(c&&ya(c))return PBe(t,i,e,s,o)||DBe(e,c,n)||e.cloneNode(c)}function DBe(e,t,n){let i=n.renamedDependencies&&n.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function aM(e,t,n,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&i.outFile)return e.createStringLiteral(Uz(n,t.fileName))}}function PBe(e,t,n,i,s){return aM(n,i.getExternalModuleFileFromDeclaration(e),t,s)}function oM(e){if(b6(e))return e.initializer;if(hl(e)){let t=e.initializer;return ql(t,!0)?t.right:void 0}if(Eu(e))return e.objectAssignmentInitializer;if(ql(e,!0))return e.right;if(Rp(e))return oM(e.expression)}function J0(e){if(b6(e))return e.name;if(iy(e)){switch(e.kind){case 303:return J0(e.initializer);case 304:return e.name;case 305:return J0(e.expression)}return}return ql(e,!0)?J0(e.left):Rp(e)?J0(e.expression):e}function v7(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function IG(e){let t=b7(e);return w.assert(!!t||xh(e),"Invalid property name for binding element."),t}function b7(e){switch(e.kind){case 208:if(e.propertyName){let n=e.propertyName;return ji(n)?w.failBadSyntaxKind(n):pa(n)&&Abe(n.expression)?n.expression:n}break;case 303:if(e.name){let n=e.name;return ji(n)?w.failBadSyntaxKind(n):pa(n)&&Abe(n.expression)?n.expression:n}break;case 305:return e.name&&ji(e.name)?w.failBadSyntaxKind(e.name):e.name}let t=J0(e);if(t&&tl(t))return t}function Abe(e){let t=e.kind;return t===11||t===9}function CI(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function DG(e){if(e){let t=e;for(;;){if(je(t)||!t.body)return je(t)?t:t.name;t=t.body}}}function Ebe(e){let t=e.kind;return t===176||t===178}function Aie(e){let t=e.kind;return t===176||t===177||t===178}function PG(e){let t=e.kind;return t===303||t===304||t===262||t===176||t===181||t===175||t===282||t===243||t===264||t===265||t===266||t===267||t===271||t===272||t===270||t===278||t===277}function Eie(e){let t=e.kind;return t===175||t===303||t===304||t===282||t===270}function Nie(e){return j0(e)||Q4(e)}function Mie(e){return je(e)||zA(e)}function Rie(e){return Zne(e)||nG(e)||iG(e)}function Fie(e){return j0(e)||nG(e)||iG(e)}function Oie(e){return je(e)||ya(e)}function ABe(e){return e===43}function EBe(e){return e===42||e===44||e===45}function NBe(e){return ABe(e)||EBe(e)}function MBe(e){return e===40||e===41}function RBe(e){return MBe(e)||NBe(e)}function FBe(e){return e===48||e===49||e===50}function AG(e){return FBe(e)||RBe(e)}function OBe(e){return e===30||e===33||e===32||e===34||e===104||e===103}function LBe(e){return OBe(e)||AG(e)}function jBe(e){return e===35||e===37||e===36||e===38}function WBe(e){return jBe(e)||LBe(e)}function BBe(e){return e===51||e===52||e===53}function zBe(e){return BBe(e)||WBe(e)}function JBe(e){return e===56||e===57}function GBe(e){return JBe(e)||zBe(e)}function UBe(e){return e===61||GBe(e)||ly(e)}function VBe(e){return UBe(e)||e===28}function Lie(e){return VBe(e.kind)}var EG;(e=>{function t(m,h,S,T,x,I,D){let E=h>0?x[h-1]:void 0;return w.assertEqual(S[h],t),x[h]=m.onEnter(T[h],E,D),S[h]=_(m,t),h}e.enter=t;function n(m,h,S,T,x,I,D){w.assertEqual(S[h],n),w.assertIsDefined(m.onLeft),S[h]=_(m,n);let E=m.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(m,h,S,T,x,I,D){return w.assertEqual(S[h],i),w.assertIsDefined(m.onOperator),S[h]=_(m,i),m.onOperator(T[h].operatorToken,x[h],T[h]),h}e.operator=i;function s(m,h,S,T,x,I,D){w.assertEqual(S[h],s),w.assertIsDefined(m.onRight),S[h]=_(m,s);let E=m.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(m,h,S,T,x,I,D){w.assertEqual(S[h],o),S[h]=_(m,o);let E=m.onExit(T[h],x[h]);if(h>0){if(h--,m.foldState){let O=S[h]===o?"right":"left";x[h]=m.foldState(x[h],E,O)}}else I.value=E;return h}e.exit=o;function c(m,h,S,T,x,I,D){return w.assertEqual(S[h],c),h}e.done=c;function _(m,h){switch(h){case t:if(m.onLeft)return n;case n:if(m.onOperator)return i;case i:if(m.onRight)return s;case s:return o;case o:return c;case c:return c;default:w.fail("Invalid state")}}e.nextState=_;function u(m,h,S,T,x){return m++,h[m]=t,S[m]=x,T[m]=void 0,m}function g(m,h,S){if(w.shouldAssert(2))for(;m>=0;)w.assert(h[m]!==S,"Circular traversal detected."),m--}})(EG||(EG={}));var qBe=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 S7(e,t,n,i,s,o){let c=new qBe(e,t,n,i,s,o);return _;function _(u,g){let m={value:void 0},h=[EG.enter],S=[u],T=[void 0],x=0;for(;h[x]!==EG.done;)x=h[x](c,x,h,S,T,m,g);return w.assertEqual(x,0),m.value}}function $Be(e){return e===95||e===90}function cM(e){let t=e.kind;return $Be(t)}function jie(e,t){if(t!==void 0)return t.length===0?t:dt(e.createNodeArray([],t.hasTrailingComma),t)}function lM(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(oh(s)&&(c===void 0||c.flags&4&&c.id!==i))break;o=s.original}return s}return e}function wI(e,t){return typeof e=="object"?Xb(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function HBe(e,t){return typeof e=="string"?e:QBe(e,w.checkDefined(t))}function QBe(e,t){return tk(e)?t(e).slice(1):Ko(e)?t(e):ji(e)?e.escapedText.slice(1):Ln(e)}function Xb(e,t,n,i,s){return t=wI(t,s),i=wI(i,s),n=HBe(n,s),`${e?"#":""}${t}${n}${i}`}function NG(e,t,n,i){return e.updatePropertyDeclaration(t,n,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function Wie(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 Bie(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 T7(e){let t=e.expression;for(;;){if(t=Wc(t),GA(t)){t=xa(t.elements);continue}if(iM(t)){t=t.right;continue}if(ql(t,!0)&&Ko(t.left))return t;break}}function KBe(e){return b_(e)&&So(e)&&!e.emitNode}function k7(e,t){if(KBe(e))k7(e.expression,t);else if(iM(e))k7(e.left,t),k7(e.right,t);else if(GA(e))for(let n of e.elements)k7(n,t);else t.push(e)}function zie(e){let t=[];return k7(e,t),t}function uM(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of CI(e)){let n=J0(t);if(n&&zP(n)&&(n.transformFlags&65536||n.transformFlags&128&&uM(n)))return!0}return!1}function dt(e,t){return t?$d(e,t.pos,t.end):e}function od(e){let t=e.kind;return t===168||t===169||t===171||t===172||t===173||t===174||t===176||t===177||t===178||t===181||t===185||t===218||t===219||t===231||t===243||t===262||t===263||t===264||t===265||t===266||t===267||t===271||t===272||t===277||t===278}function JS(e){let t=e.kind;return t===169||t===172||t===174||t===177||t===178||t===231||t===263}var Nbe,Mbe,Rbe,Fbe,Obe,Jie={createBaseSourceFileNode:e=>new(Obe||(Obe=mu.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(Rbe||(Rbe=mu.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(Fbe||(Fbe=mu.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(Mbe||(Mbe=mu.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(Nbe||(Nbe=mu.getNodeConstructor()))(e,-1,-1)},Yb=J4(1,Jie);function nr(e,t){return t&&e(t)}function Ri(e,t,n){if(n){if(t)return t(n);for(let i of n){let s=e(i);if(s)return s}}}function MG(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function _M(e){return or(e.statements,XBe)||YBe(e)}function XBe(e){return od(e)&&ZBe(e,95)||Ol(e)&&dy(e.moduleReference)||sc(e)||Ho(e)||Xc(e)?e:void 0}function YBe(e){return e.flags&8388608?Lbe(e):void 0}function Lbe(e){return eze(e)?e:Es(e,Lbe)}function ZBe(e,t){return pt(e.modifiers,n=>n.kind===t)}function eze(e){return JA(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}var tze={166:function(t,n,i){return nr(n,t.left)||nr(n,t.right)},168:function(t,n,i){return Ri(n,i,t.modifiers)||nr(n,t.name)||nr(n,t.constraint)||nr(n,t.default)||nr(n,t.expression)},304:function(t,n,i){return Ri(n,i,t.modifiers)||nr(n,t.name)||nr(n,t.questionToken)||nr(n,t.exclamationToken)||nr(n,t.equalsToken)||nr(n,t.objectAssignmentInitializer)},305:function(t,n,i){return nr(n,t.expression)},169:function(t,n,i){return Ri(n,i,t.modifiers)||nr(n,t.dotDotDotToken)||nr(n,t.name)||nr(n,t.questionToken)||nr(n,t.type)||nr(n,t.initializer)},172:function(t,n,i){return Ri(n,i,t.modifiers)||nr(n,t.name)||nr(n,t.questionToken)||nr(n,t.exclamationToken)||nr(n,t.type)||nr(n,t.initializer)},171:function(t,n,i){return Ri(n,i,t.modifiers)||nr(n,t.name)||nr(n,t.questionToken)||nr(n,t.type)||nr(n,t.initializer)},303:function(t,n,i){return Ri(n,i,t.modifiers)||nr(n,t.name)||nr(n,t.questionToken)||nr(n,t.exclamationToken)||nr(n,t.initializer)},260:function(t,n,i){return nr(n,t.name)||nr(n,t.exclamationToken)||nr(n,t.type)||nr(n,t.initializer)},208:function(t,n,i){return nr(n,t.dotDotDotToken)||nr(n,t.propertyName)||nr(n,t.name)||nr(n,t.initializer)},181:function(t,n,i){return Ri(n,i,t.modifiers)||Ri(n,i,t.typeParameters)||Ri(n,i,t.parameters)||nr(n,t.type)},185:function(t,n,i){return Ri(n,i,t.modifiers)||Ri(n,i,t.typeParameters)||Ri(n,i,t.parameters)||nr(n,t.type)},184:function(t,n,i){return Ri(n,i,t.modifiers)||Ri(n,i,t.typeParameters)||Ri(n,i,t.parameters)||nr(n,t.type)},179:jbe,180:jbe,174:function(t,n,i){return Ri(n,i,t.modifiers)||nr(n,t.asteriskToken)||nr(n,t.name)||nr(n,t.questionToken)||nr(n,t.exclamationToken)||Ri(n,i,t.typeParameters)||Ri(n,i,t.parameters)||nr(n,t.type)||nr(n,t.body)},173:function(t,n,i){return Ri(n,i,t.modifiers)||nr(n,t.name)||nr(n,t.questionToken)||Ri(n,i,t.typeParameters)||Ri(n,i,t.parameters)||nr(n,t.type)},176:function(t,n,i){return Ri(n,i,t.modifiers)||nr(n,t.name)||Ri(n,i,t.typeParameters)||Ri(n,i,t.parameters)||nr(n,t.type)||nr(n,t.body)},177:function(t,n,i){return Ri(n,i,t.modifiers)||nr(n,t.name)||Ri(n,i,t.typeParameters)||Ri(n,i,t.parameters)||nr(n,t.type)||nr(n,t.body)},178:function(t,n,i){return Ri(n,i,t.modifiers)||nr(n,t.name)||Ri(n,i,t.typeParameters)||Ri(n,i,t.parameters)||nr(n,t.type)||nr(n,t.body)},262:function(t,n,i){return Ri(n,i,t.modifiers)||nr(n,t.asteriskToken)||nr(n,t.name)||Ri(n,i,t.typeParameters)||Ri(n,i,t.parameters)||nr(n,t.type)||nr(n,t.body)},218:function(t,n,i){return Ri(n,i,t.modifiers)||nr(n,t.asteriskToken)||nr(n,t.name)||Ri(n,i,t.typeParameters)||Ri(n,i,t.parameters)||nr(n,t.type)||nr(n,t.body)},219:function(t,n,i){return Ri(n,i,t.modifiers)||Ri(n,i,t.typeParameters)||Ri(n,i,t.parameters)||nr(n,t.type)||nr(n,t.equalsGreaterThanToken)||nr(n,t.body)},175:function(t,n,i){return Ri(n,i,t.modifiers)||nr(n,t.body)},183:function(t,n,i){return nr(n,t.typeName)||Ri(n,i,t.typeArguments)},182:function(t,n,i){return nr(n,t.assertsModifier)||nr(n,t.parameterName)||nr(n,t.type)},186:function(t,n,i){return nr(n,t.exprName)||Ri(n,i,t.typeArguments)},187:function(t,n,i){return Ri(n,i,t.members)},188:function(t,n,i){return nr(n,t.elementType)},189:function(t,n,i){return Ri(n,i,t.elements)},192:Wbe,193:Wbe,194:function(t,n,i){return nr(n,t.checkType)||nr(n,t.extendsType)||nr(n,t.trueType)||nr(n,t.falseType)},195:function(t,n,i){return nr(n,t.typeParameter)},205:function(t,n,i){return nr(n,t.argument)||nr(n,t.attributes)||nr(n,t.qualifier)||Ri(n,i,t.typeArguments)},302:function(t,n,i){return nr(n,t.assertClause)},196:Bbe,198:Bbe,199:function(t,n,i){return nr(n,t.objectType)||nr(n,t.indexType)},200: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)||Ri(n,i,t.members)},201:function(t,n,i){return nr(n,t.literal)},202:function(t,n,i){return nr(n,t.dotDotDotToken)||nr(n,t.name)||nr(n,t.questionToken)||nr(n,t.type)},206:zbe,207:zbe,209:function(t,n,i){return Ri(n,i,t.elements)},210:function(t,n,i){return Ri(n,i,t.properties)},211:function(t,n,i){return nr(n,t.expression)||nr(n,t.questionDotToken)||nr(n,t.name)},212:function(t,n,i){return nr(n,t.expression)||nr(n,t.questionDotToken)||nr(n,t.argumentExpression)},213:Jbe,214:Jbe,215:function(t,n,i){return nr(n,t.tag)||nr(n,t.questionDotToken)||Ri(n,i,t.typeArguments)||nr(n,t.template)},216:function(t,n,i){return nr(n,t.type)||nr(n,t.expression)},217:function(t,n,i){return nr(n,t.expression)},220: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)},224:function(t,n,i){return nr(n,t.operand)},229:function(t,n,i){return nr(n,t.asteriskToken)||nr(n,t.expression)},223:function(t,n,i){return nr(n,t.expression)},225:function(t,n,i){return nr(n,t.operand)},226:function(t,n,i){return nr(n,t.left)||nr(n,t.operatorToken)||nr(n,t.right)},234:function(t,n,i){return nr(n,t.expression)||nr(n,t.type)},235:function(t,n,i){return nr(n,t.expression)},238:function(t,n,i){return nr(n,t.expression)||nr(n,t.type)},236:function(t,n,i){return nr(n,t.name)},227: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)},230:function(t,n,i){return nr(n,t.expression)},241:Gbe,268:Gbe,307:function(t,n,i){return Ri(n,i,t.statements)||nr(n,t.endOfFileToken)},243:function(t,n,i){return Ri(n,i,t.modifiers)||nr(n,t.declarationList)},261:function(t,n,i){return Ri(n,i,t.declarations)},244:function(t,n,i){return nr(n,t.expression)},245:function(t,n,i){return nr(n,t.expression)||nr(n,t.thenStatement)||nr(n,t.elseStatement)},246:function(t,n,i){return nr(n,t.statement)||nr(n,t.expression)},247:function(t,n,i){return nr(n,t.expression)||nr(n,t.statement)},248:function(t,n,i){return nr(n,t.initializer)||nr(n,t.condition)||nr(n,t.incrementor)||nr(n,t.statement)},249:function(t,n,i){return nr(n,t.initializer)||nr(n,t.expression)||nr(n,t.statement)},250:function(t,n,i){return nr(n,t.awaitModifier)||nr(n,t.initializer)||nr(n,t.expression)||nr(n,t.statement)},251:Ube,252:Ube,253:function(t,n,i){return nr(n,t.expression)},254:function(t,n,i){return nr(n,t.expression)||nr(n,t.statement)},255:function(t,n,i){return nr(n,t.expression)||nr(n,t.caseBlock)},269:function(t,n,i){return Ri(n,i,t.clauses)},296:function(t,n,i){return nr(n,t.expression)||Ri(n,i,t.statements)},297:function(t,n,i){return Ri(n,i,t.statements)},256:function(t,n,i){return nr(n,t.label)||nr(n,t.statement)},257:function(t,n,i){return nr(n,t.expression)},258:function(t,n,i){return nr(n,t.tryBlock)||nr(n,t.catchClause)||nr(n,t.finallyBlock)},299:function(t,n,i){return nr(n,t.variableDeclaration)||nr(n,t.block)},170:function(t,n,i){return nr(n,t.expression)},263:Vbe,231:Vbe,264:function(t,n,i){return Ri(n,i,t.modifiers)||nr(n,t.name)||Ri(n,i,t.typeParameters)||Ri(n,i,t.heritageClauses)||Ri(n,i,t.members)},265:function(t,n,i){return Ri(n,i,t.modifiers)||nr(n,t.name)||Ri(n,i,t.typeParameters)||nr(n,t.type)},266:function(t,n,i){return Ri(n,i,t.modifiers)||nr(n,t.name)||Ri(n,i,t.members)},306:function(t,n,i){return nr(n,t.name)||nr(n,t.initializer)},267:function(t,n,i){return Ri(n,i,t.modifiers)||nr(n,t.name)||nr(n,t.body)},271:function(t,n,i){return Ri(n,i,t.modifiers)||nr(n,t.name)||nr(n,t.moduleReference)},272:function(t,n,i){return Ri(n,i,t.modifiers)||nr(n,t.importClause)||nr(n,t.moduleSpecifier)||nr(n,t.attributes)},273:function(t,n,i){return nr(n,t.name)||nr(n,t.namedBindings)},300:function(t,n,i){return Ri(n,i,t.elements)},301:function(t,n,i){return nr(n,t.name)||nr(n,t.value)},270:function(t,n,i){return Ri(n,i,t.modifiers)||nr(n,t.name)},274:function(t,n,i){return nr(n,t.name)},280:function(t,n,i){return nr(n,t.name)},275:qbe,279:qbe,278:function(t,n,i){return Ri(n,i,t.modifiers)||nr(n,t.exportClause)||nr(n,t.moduleSpecifier)||nr(n,t.attributes)},276:$be,281:$be,277:function(t,n,i){return Ri(n,i,t.modifiers)||nr(n,t.expression)},228:function(t,n,i){return nr(n,t.head)||Ri(n,i,t.templateSpans)},239:function(t,n,i){return nr(n,t.expression)||nr(n,t.literal)},203:function(t,n,i){return nr(n,t.head)||Ri(n,i,t.templateSpans)},204:function(t,n,i){return nr(n,t.type)||nr(n,t.literal)},167:function(t,n,i){return nr(n,t.expression)},298:function(t,n,i){return Ri(n,i,t.types)},233:function(t,n,i){return nr(n,t.expression)||Ri(n,i,t.typeArguments)},283:function(t,n,i){return nr(n,t.expression)},282:function(t,n,i){return Ri(n,i,t.modifiers)},356:function(t,n,i){return Ri(n,i,t.elements)},284:function(t,n,i){return nr(n,t.openingElement)||Ri(n,i,t.children)||nr(n,t.closingElement)},288:function(t,n,i){return nr(n,t.openingFragment)||Ri(n,i,t.children)||nr(n,t.closingFragment)},285:Hbe,286:Hbe,292:function(t,n,i){return Ri(n,i,t.properties)},291:function(t,n,i){return nr(n,t.name)||nr(n,t.initializer)},293:function(t,n,i){return nr(n,t.expression)},294:function(t,n,i){return nr(n,t.dotDotDotToken)||nr(n,t.expression)},287:function(t,n,i){return nr(n,t.tagName)},295:function(t,n,i){return nr(n,t.namespace)||nr(n,t.name)},190:XA,191:XA,309:XA,315:XA,314:XA,316:XA,318:XA,317:function(t,n,i){return Ri(n,i,t.parameters)||nr(n,t.type)},320:function(t,n,i){return(typeof t.comment=="string"?void 0:Ri(n,i,t.comment))||Ri(n,i,t.tags)},347:function(t,n,i){return nr(n,t.tagName)||nr(n,t.name)||(typeof t.comment=="string"?void 0:Ri(n,i,t.comment))},310:function(t,n,i){return nr(n,t.name)},311:function(t,n,i){return nr(n,t.left)||nr(n,t.right)},341:Qbe,348:Qbe,330:function(t,n,i){return nr(n,t.tagName)||(typeof t.comment=="string"?void 0:Ri(n,i,t.comment))},329:function(t,n,i){return nr(n,t.tagName)||nr(n,t.class)||(typeof t.comment=="string"?void 0:Ri(n,i,t.comment))},328:function(t,n,i){return nr(n,t.tagName)||nr(n,t.class)||(typeof t.comment=="string"?void 0:Ri(n,i,t.comment))},345:function(t,n,i){return nr(n,t.tagName)||nr(n,t.constraint)||Ri(n,i,t.typeParameters)||(typeof t.comment=="string"?void 0:Ri(n,i,t.comment))},346:function(t,n,i){return nr(n,t.tagName)||(t.typeExpression&&t.typeExpression.kind===309?nr(n,t.typeExpression)||nr(n,t.fullName)||(typeof t.comment=="string"?void 0:Ri(n,i,t.comment)):nr(n,t.fullName)||nr(n,t.typeExpression)||(typeof t.comment=="string"?void 0:Ri(n,i,t.comment)))},338:function(t,n,i){return nr(n,t.tagName)||nr(n,t.fullName)||nr(n,t.typeExpression)||(typeof t.comment=="string"?void 0:Ri(n,i,t.comment))},342:YA,344:YA,343:YA,340:YA,350:YA,349:YA,339:YA,323:function(t,n,i){return or(t.typeParameters,n)||or(t.parameters,n)||nr(n,t.type)},324:Gie,325:Gie,326:Gie,322:function(t,n,i){return or(t.jsDocPropertyTags,n)},327:II,332:II,333:II,334:II,335:II,336:II,331:II,337:II,351:rze,355:nze};function jbe(e,t,n){return Ri(t,n,e.typeParameters)||Ri(t,n,e.parameters)||nr(t,e.type)}function Wbe(e,t,n){return Ri(t,n,e.types)}function Bbe(e,t,n){return nr(t,e.type)}function zbe(e,t,n){return Ri(t,n,e.elements)}function Jbe(e,t,n){return nr(t,e.expression)||nr(t,e.questionDotToken)||Ri(t,n,e.typeArguments)||Ri(t,n,e.arguments)}function Gbe(e,t,n){return Ri(t,n,e.statements)}function Ube(e,t,n){return nr(t,e.label)}function Vbe(e,t,n){return Ri(t,n,e.modifiers)||nr(t,e.name)||Ri(t,n,e.typeParameters)||Ri(t,n,e.heritageClauses)||Ri(t,n,e.members)}function qbe(e,t,n){return Ri(t,n,e.elements)}function $be(e,t,n){return nr(t,e.propertyName)||nr(t,e.name)}function Hbe(e,t,n){return nr(t,e.tagName)||Ri(t,n,e.typeArguments)||nr(t,e.attributes)}function XA(e,t,n){return nr(t,e.type)}function Qbe(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:Ri(t,n,e.comment))}function YA(e,t,n){return nr(t,e.tagName)||nr(t,e.typeExpression)||(typeof e.comment=="string"?void 0:Ri(t,n,e.comment))}function Gie(e,t,n){return nr(t,e.name)}function II(e,t,n){return nr(t,e.tagName)||(typeof e.comment=="string"?void 0:Ri(t,n,e.comment))}function rze(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:Ri(t,n,e.comment))}function nze(e,t,n){return nr(t,e.expression)}function Es(e,t,n){if(e===void 0||e.kind<=165)return;let i=tze[e.kind];return i===void 0?void 0:i(e,t,n)}function q2(e,t,n){let i=Kbe(e),s=[];for(;s.length<i.length;)s.push(e);for(;i.length!==0;){let o=i.pop(),c=s.pop();if(ks(o)){if(n){let _=n(o,c);if(_){if(_==="skip")continue;return _}}for(let _=o.length-1;_>=0;--_)i.push(o[_]),s.push(c)}else{let _=t(o,c);if(_){if(_==="skip")continue;return _}if(o.kind>=166)for(let u of Kbe(o))i.push(u),s.push(o)}}}function Kbe(e){let t=[];return Es(e,n,n),t;function n(i){t.unshift(i)}}function Xbe(e){e.externalModuleIndicator=_M(e)}function $2(e,t,n,i=!1,s){var o,c;(o=_n)==null||o.push(_n.Phase.Parse,"createSourceFile",{path:e},!0),dc("beforeParse");let _,{languageVersion:u,setExternalModuleIndicator:g,impliedNodeFormat:m,jsDocParsingMode:h}=typeof n=="object"?n:{languageVersion:n};if(u===100)_=Zb.parseSourceFile(e,t,u,void 0,i,6,to,h);else{let S=m===void 0?g:T=>(T.impliedNodeFormat=m,(g||Xbe)(T));_=Zb.parseSourceFile(e,t,u,void 0,i,s,S,h)}return dc("afterParse"),Tp("Parse","beforeParse","afterParse"),(c=_n)==null||c.pop(),_}function H2(e,t){return Zb.parseIsolatedEntityName(e,t)}function fM(e,t){return Zb.parseJsonText(e,t)}function xl(e){return e.externalModuleIndicator!==void 0}function RG(e,t,n,i=!1){let s=FG.updateSourceFile(e,t,n,i);return s.flags|=e.flags&12582912,s}function Uie(e,t,n){let i=Zb.JSDocParser.parseIsolatedJSDocComment(e,t,n);return i&&i.jsDoc&&Zb.fixupParentReferences(i.jsDoc),i}function Ybe(e,t,n){return Zb.JSDocParser.parseJSDocTypeExpressionForTests(e,t,n)}var Zb;(e=>{var t=ah(99,!0),n=40960,i,s,o,c,_;function u(X){return Ce++,X}var g={createBaseSourceFileNode:X=>u(new _(X,0,0)),createBaseIdentifierNode:X=>u(new o(X,0,0)),createBasePrivateIdentifierNode:X=>u(new c(X,0,0)),createBaseTokenNode:X=>u(new s(X,0,0)),createBaseNode:X=>u(new i(X,0,0))},m=J4(11,g),{createNodeArray:h,createNumericLiteral:S,createStringLiteral:T,createLiteralLikeNode:x,createIdentifier:I,createPrivateIdentifier:D,createToken:E,createArrayLiteralExpression:O,createObjectLiteralExpression:F,createPropertyAccessExpression:B,createPropertyAccessChain:G,createElementAccessExpression:$,createElementAccessChain:K,createCallExpression:U,createCallChain:me,createNewExpression:te,createParenthesizedExpression:V,createBlock:ne,createVariableStatement:ie,createExpressionStatement:oe,createIfStatement:de,createWhileStatement:ye,createForStatement:H,createForOfStatement:ve,createVariableDeclaration:Ge,createVariableDeclarationList:De}=m,se,xe,_e,tt,ct,le,Je,ee,Ne,Ie,Ce,Ve,bt,zt,ur,Or,_t=!0,$t=!1;function Hr(X,Se,We,wt,Yt=!1,wr,Un,Ei=0){var fi;if(wr=AO(X,wr),wr===6){let es=_s(X,Se,We,wt,Yt);return hM(es,(fi=es.statements[0])==null?void 0:fi.expression,es.parseDiagnostics,!1,void 0),es.referencedFiles=qe,es.typeReferenceDirectives=qe,es.libReferenceDirectives=qe,es.amdDependencies=qe,es.hasNoDefaultLib=!1,es.pragmas=Bl,es}At(X,Se,We,wt,wr,Ei);let mi=ns(We,Yt,wr,Un||Xbe,Ei);return zn(),mi}e.parseSourceFile=Hr;function hi(X,Se){At("",X,Se,void 0,1,0),we();let We=at(!0),wt=q()===1&&!Je.length;return zn(),wt?We:void 0}e.parseIsolatedEntityName=hi;function _s(X,Se,We=2,wt,Yt=!1){At(X,Se,We,wt,6,0),xe=Or,we();let wr=j(),Un,Ei;if(q()===1)Un=La([],wr,wr),Ei=Zo();else{let es;for(;q()!==1;){let Ja;switch(q()){case 23:Ja=PC();break;case 112:case 97:case 106:Ja=Zo();break;case 41:Gt(()=>we()===9&&we()!==59)?Ja=wy():Ja=Rv();break;case 9:case 11:if(Gt(()=>we()!==59)){Ja=Rt();break}default:Ja=Rv();break}es&&ks(es)?es.push(Ja):es?es=[es,Ja]:(es=Ja,q()!==1&&Vt(p.Unexpected_token))}let ho=ks(es)?Ht(O(es),wr):w.checkDefined(es),yo=oe(ho);Ht(yo,wr),Un=La([yo],wr),Ei=Qo(1,p.Unexpected_token)}let fi=ht(X,2,6,!1,Un,Ei,xe,to);Yt&&Ue(fi),fi.nodeCount=Ce,fi.identifierCount=bt,fi.identifiers=Ve,fi.parseDiagnostics=T2(Je,fi),ee&&(fi.jsDocDiagnostics=T2(ee,fi));let mi=fi;return zn(),mi}e.parseJsonText=_s;function At(X,Se,We,wt,Yt,wr){switch(i=mu.getNodeConstructor(),s=mu.getTokenConstructor(),o=mu.getIdentifierConstructor(),c=mu.getPrivateIdentifierConstructor(),_=mu.getSourceFileConstructor(),se=na(X),_e=Se,tt=We,Ne=wt,ct=Yt,le=w4(Yt),Je=[],zt=0,Ve=new Map,bt=0,Ce=0,xe=0,_t=!0,ct){case 1:case 2:Or=524288;break;case 6:Or=134742016;break;default:Or=0;break}$t=!1,t.setText(_e),t.setOnError(pe),t.setScriptTarget(tt),t.setLanguageVariant(le),t.setScriptKind(ct),t.setJSDocParsingMode(wr)}function zn(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),_e=void 0,tt=void 0,Ne=void 0,ct=void 0,le=void 0,xe=0,Je=void 0,ee=void 0,zt=0,Ve=void 0,ur=void 0,_t=!0}function ns(X,Se,We,wt,Yt){let wr=Ll(se);wr&&(Or|=33554432),xe=Or,we();let Un=Wo(0,dd);w.assert(q()===1);let Ei=Re(),fi=hn(Zo(),Ei),mi=ht(se,X,We,wr,Un,fi,xe,wt);return OG(mi,_e),LG(mi,es),mi.commentDirectives=t.getCommentDirectives(),mi.nodeCount=Ce,mi.identifierCount=bt,mi.identifiers=Ve,mi.parseDiagnostics=T2(Je,mi),mi.jsDocParsingMode=Yt,ee&&(mi.jsDocDiagnostics=T2(ee,mi)),Se&&Ue(mi),mi;function es(ho,yo,Ja){Je.push(S2(se,_e,ho,yo,Ja))}}let Rn=!1;function hn(X,Se){if(!Se)return X;w.assert(!X.jsDoc);let We=Vi(dz(X,_e),wt=>ol.parseJSDocComment(X,wt.pos,wt.end-wt.pos));return We.length&&(X.jsDoc=We),Rn&&(Rn=!1,X.flags|=536870912),X}function ui(X){let Se=Ne,We=FG.createSyntaxCursor(X);Ne={currentNode:es};let wt=[],Yt=Je;Je=[];let wr=0,Un=fi(X.statements,0);for(;Un!==-1;){let ho=X.statements[wr],yo=X.statements[Un];jn(wt,X.statements,wr,Un),wr=mi(X.statements,Un);let Ja=Sc(Yt,Gg=>Gg.start>=ho.pos),Wp=Ja>=0?Sc(Yt,Gg=>Gg.start>=yo.pos,Ja):-1;Ja>=0&&jn(Je,Yt,Ja,Wp>=0?Wp:void 0),ar(()=>{let Gg=Or;for(Or|=65536,t.resetTokenState(yo.pos),we();q()!==1;){let md=t.getTokenFullStart(),Yl=Qc(0,dd);if(wt.push(Yl),md===t.getTokenFullStart()&&we(),wr>=0){let lm=X.statements[wr];if(Yl.end===lm.pos)break;Yl.end>lm.pos&&(wr=mi(X.statements,wr+1))}}Or=Gg},2),Un=wr>=0?fi(X.statements,wr):-1}if(wr>=0){let ho=X.statements[wr];jn(wt,X.statements,wr);let yo=Sc(Yt,Ja=>Ja.start>=ho.pos);yo>=0&&jn(Je,Yt,yo)}return Ne=Se,m.updateSourceFile(X,dt(h(wt),X.statements));function Ei(ho){return!(ho.flags&65536)&&!!(ho.transformFlags&67108864)}function fi(ho,yo){for(let Ja=yo;Ja<ho.length;Ja++)if(Ei(ho[Ja]))return Ja;return-1}function mi(ho,yo){for(let Ja=yo;Ja<ho.length;Ja++)if(!Ei(ho[Ja]))return Ja;return-1}function es(ho){let yo=We.currentNode(ho);return _t&&yo&&Ei(yo)&&Vie(yo),yo}}function Ue(X){zb(X,!0)}e.fixupParentReferences=Ue;function ht(X,Se,We,wt,Yt,wr,Un,Ei){let fi=m.createSourceFile(Yt,wr,Un);if(RJ(fi,0,_e.length),mi(fi),!wt&&xl(fi)&&fi.transformFlags&67108864){let es=fi;fi=ui(fi),es!==fi&&mi(fi)}return fi;function mi(es){es.text=_e,es.bindDiagnostics=[],es.bindSuggestionDiagnostics=void 0,es.languageVersion=Se,es.fileName=X,es.languageVariant=w4(We),es.isDeclarationFile=wt,es.scriptKind=We,Ei(es),es.setExternalModuleIndicator=Ei}}function sr(X,Se){X?Or|=Se:Or&=~Se}function Zr(X){sr(X,8192)}function Zn(X){sr(X,16384)}function Xn(X){sr(X,32768)}function Pi(X){sr(X,65536)}function Rs(X,Se){let We=X⩔if(We){sr(!1,We);let wt=Se();return sr(!0,We),wt}return Se()}function oa(X,Se){let We=X&~Or;if(We){sr(!0,We);let wt=Se();return sr(!1,We),wt}return Se()}function xr(X){return Rs(8192,X)}function xs(X){return oa(8192,X)}function Ye(X){return Rs(131072,X)}function Nt(X){return oa(131072,X)}function ae(X){return oa(16384,X)}function lt(X){return oa(32768,X)}function Y(X){return oa(65536,X)}function Ae(X){return Rs(65536,X)}function Xe(X){return oa(81920,X)}function st(X){return Rs(81920,X)}function Dt(X){return(Or&X)!==0}function Fe(){return Dt(16384)}function St(){return Dt(8192)}function vt(){return Dt(131072)}function Mt(){return Dt(32768)}function Ke(){return Dt(65536)}function Vt(X,...Se){return Pe(t.getTokenStart(),t.getTokenEnd(),X,...Se)}function on(X,Se,We,...wt){let Yt=zo(Je),wr;return(!Yt||X!==Yt.start)&&(wr=S2(se,_e,X,Se,We,...wt),Je.push(wr)),$t=!0,wr}function Pe(X,Se,We,...wt){return on(X,Se-X,We,...wt)}function kt(X,Se,...We){Pe(X.pos,X.end,Se,...We)}function pe(X,Se,We){on(t.getTokenEnd(),Se,X,We)}function j(){return t.getTokenFullStart()}function Re(){return t.hasPrecedingJSDocComment()}function q(){return Ie}function yt(){return Ie=t.scan()}function jt(X){return we(),X()}function we(){return F_(Ie)&&(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&Pe(t.getTokenStart(),t.getTokenEnd(),p.Keywords_cannot_contain_escape_characters),yt()}function ut(){return Ie=t.scanJsDocToken()}function Qt(X){return Ie=t.scanJSDocCommentTextToken(X)}function en(){return Ie=t.reScanGreaterToken()}function Pr(){return Ie=t.reScanSlashToken()}function $r(X){return Ie=t.reScanTemplateToken(X)}function it(){return Ie=t.reScanLessThanToken()}function Tt(){return Ie=t.reScanHashToken()}function Ut(){return Ie=t.scanJsxIdentifier()}function Ot(){return Ie=t.scanJsxToken()}function vr(){return Ie=t.scanJsxAttributeValue()}function ar(X,Se){let We=Ie,wt=Je.length,Yt=$t,wr=Or,Un=Se!==0?t.lookAhead(X):t.tryScan(X);return w.assert(wr===Or),(!Un||Se!==0)&&(Ie=We,Se!==2&&(Je.length=wt),$t=Yt),Un}function Gt(X){return ar(X,1)}function dr(X){return ar(X,0)}function Sr(){return q()===80?!0:q()>118}function kr(){return q()===80?!0:q()===127&&Fe()||q()===135&&Ke()?!1:q()>118}function tr(X,Se,We=!0){return q()===X?(We&&we(),!0):(Se?Vt(Se):Vt(p._0_expected,sa(X)),!1)}let si=Object.keys(G8).filter(X=>X.length>2);function zs(X){if(Ub(X)){Pe(ha(_e,X.template.pos),X.template.end,p.Module_declaration_names_may_only_use_or_quoted_strings);return}let Se=je(X)?Ln(X):void 0;if(!Se||!$_(Se,tt)){Vt(p._0_expected,sa(27));return}let We=ha(_e,X.pos);switch(Se){case"const":case"let":case"var":Pe(We,X.end,p.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":ta(p.Interface_name_cannot_be_0,p.Interface_must_be_given_a_name,19);return;case"is":Pe(We,t.getTokenStart(),p.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":ta(p.Namespace_name_cannot_be_0,p.Namespace_must_be_given_a_name,19);return;case"type":ta(p.Type_alias_name_cannot_be_0,p.Type_alias_must_be_given_a_name,64);return}let wt=oS(Se,si,Do)??Os(Se);if(wt){Pe(We,X.end,p.Unknown_keyword_or_identifier_Did_you_mean_0,wt);return}q()!==0&&Pe(We,X.end,p.Unexpected_keyword_or_identifier)}function ta(X,Se,We){q()===We?Vt(Se):Vt(X,t.getTokenValue())}function Os(X){for(let Se of si)if(X.length>Se.length+2&&Yi(X,Se))return`${Se} ${X.slice(Se.length)}`}function qc(X,Se,We){if(q()===60&&!t.hasPrecedingLineBreak()){Vt(p.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(q()===21){Vt(p.Cannot_start_a_function_call_in_a_type_annotation),we();return}if(Se&&!ms()){We?Vt(p._0_expected,sa(27)):Vt(p.Expected_for_property_initializer);return}if(!Ys()){if(We){Vt(p._0_expected,sa(27));return}zs(X)}}function uc(X){return q()===X?(ut(),!0):(w.assert($F(X)),Vt(p._0_expected,sa(X)),!1)}function Bc(X,Se,We,wt){if(q()===Se){we();return}let Yt=Vt(p._0_expected,sa(Se));We&&Yt&&Xs(Yt,S2(se,_e,wt,1,p.The_parser_expected_to_find_a_1_to_match_the_0_token_here,sa(X),sa(Se)))}function xi(X){return q()===X?(we(),!0):!1}function bs(X){if(q()===X)return Zo()}function il(X){if(q()===X)return Cf()}function Qo(X,Se,We){return bs(X)||fo(X,!1,Se||p._0_expected,We||sa(X))}function Oa(X){let Se=il(X);return Se||(w.assert($F(X)),fo(X,!1,p._0_expected,sa(X)))}function Zo(){let X=j(),Se=q();return we(),Ht(E(Se),X)}function Cf(){let X=j(),Se=q();return ut(),Ht(E(Se),X)}function ms(){return q()===27?!0:q()===20||q()===1||t.hasPrecedingLineBreak()}function Ys(){return ms()?(q()===27&&we(),!0):!1}function Ba(){return Ys()||tr(27)}function La(X,Se,We,wt){let Yt=h(X,wt);return $d(Yt,Se,We??t.getTokenFullStart()),Yt}function Ht(X,Se,We){return $d(X,Se,We??t.getTokenFullStart()),Or&&(X.flags|=Or),$t&&($t=!1,X.flags|=262144),X}function fo(X,Se,We,...wt){Se?on(t.getTokenFullStart(),0,We,...wt):We&&Vt(We,...wt);let Yt=j(),wr=X===80?I("",void 0):v0(X)?m.createTemplateLiteralLikeNode(X,"","",void 0):X===9?S("",void 0):X===11?T("",void 0):X===282?m.createMissingDeclaration():E(X);return Ht(wr,Yt)}function sl(X){let Se=Ve.get(X);return Se===void 0&&Ve.set(X,Se=X),Se}function wc(X,Se,We){if(X){bt++;let Ei=t.hasPrecedingJSDocLeadingAsterisks()?t.getTokenStart():j(),fi=q(),mi=sl(t.getTokenValue()),es=t.hasExtendedUnicodeEscape();return yt(),Ht(I(mi,fi,es),Ei)}if(q()===81)return Vt(We||p.Private_identifiers_are_not_allowed_outside_class_bodies),wc(!0);if(q()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return wc(!0);bt++;let wt=q()===1,Yt=t.isReservedWord(),wr=t.getTokenText(),Un=Yt?p.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:p.Identifier_expected;return fo(80,wt,Se||Un,wr)}function cu(X){return wc(Sr(),void 0,X)}function ec(X,Se){return wc(kr(),X,Se)}function Ic(X){return wc(E_(q()),X)}function N(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&Vt(p.Unicode_escape_sequence_cannot_appear_here),wc(E_(q()))}function Oe(){return E_(q())||q()===11||q()===9||q()===10}function ft(){return E_(q())||q()===11}function qt(X){if(q()===11||q()===9||q()===10){let Se=Rt();return Se.text=sl(Se.text),Se}return X&&q()===23?Hn():q()===81?pn():Ic()}function Br(){return qt(!0)}function Hn(){let X=j();tr(23);let Se=xr(lu);return tr(24),Ht(m.createComputedPropertyName(Se),X)}function pn(){let X=j(),Se=D(sl(t.getTokenValue()));return we(),Ht(Se,X)}function Lr(X){return q()===X&&dr(Ai)}function Ci(){return we(),t.hasPrecedingLineBreak()?!1:Dc()}function Ai(){switch(q()){case 87:return we()===94;case 95:return we(),q()===90?Gt(Eo):q()===156?Gt(Ta):io();case 90:return Eo();case 126:return we(),Dc();case 139:case 153:return we(),$c();default:return Ci()}}function io(){return q()===60||q()!==42&&q()!==130&&q()!==19&&Dc()}function Ta(){return we(),io()}function Go(){return S0(q())&&dr(Ai)}function Dc(){return q()===23||q()===19||q()===42||q()===26||Oe()}function $c(){return q()===23||Oe()}function Eo(){return we(),q()===86||q()===100||q()===120||q()===60||q()===128&&Gt(Dy)||q()===134&&Gt(TD)}function Hc(X,Se){if(hc(X))return!0;switch(X){case 0:case 1:case 3:return!(q()===27&&Se)&&kD();case 2:return q()===84||q()===90;case 4:return Gt(Ql);case 5:return Gt(Py)||q()===27&&!Se;case 6:return q()===23||Oe();case 12:switch(q()){case 23:case 42:case 26:case 25:return!0;default:return Oe()}case 18:return Oe();case 9:return q()===23||q()===26||Oe();case 24:return ft();case 7:return q()===19?Gt(wf):Se?kr()&&!Ee():Zk()&&!Ee();case 8:return D1();case 10:return q()===28||q()===26||D1();case 19:return q()===103||q()===87||kr();case 15:switch(q()){case 28:case 25:return!0}case 11:return q()===26||nm();case 16:return bv(!1);case 17:return bv(!0);case 20:case 21:return q()===28||Ym();case 22:return WC();case 23:return q()===161&&Gt(MC)?!1:q()===11?!0:E_(q());case 13:return E_(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(X,"Non-exhaustive case in 'isListElement'.")}}function wf(){if(w.assert(q()===19),we()===20){let X=we();return X===28||X===19||X===96||X===119}return!0}function bu(){return we(),kr()}function up(){return we(),E_(q())}function x_(){return we(),aee(q())}function Ee(){return q()===119||q()===96?Gt(Wt):!1}function Wt(){return we(),nm()}function sn(){return we(),Ym()}function ts(X){if(q()===1)return!0;switch(X){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 Js();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&&Gt(Qi);default:return!1}}function Js(){return!!(ms()||Kl(q())||q()===39)}function Ma(){w.assert(zt,"Missing parsing context");for(let X=0;X<26;X++)if(zt&1<<X&&(Hc(X,!0)||ts(X)))return!0;return!1}function Wo(X,Se){let We=zt;zt|=1<<X;let wt=[],Yt=j();for(;!ts(X);){if(Hc(X,!1)){wt.push(Qc(X,Se));continue}if(_p(X))break}return zt=We,La(wt,Yt)}function Qc(X,Se){let We=hc(X);return We?yc(We):Se()}function hc(X,Se){var We;if(!Ne||!Yc(X)||$t)return;let wt=Ne.currentNode(Se??t.getTokenFullStart());if(!(Tc(wt)||sze(wt)||s2(wt)||(wt.flags&101441536)!==Or)&&wl(wt,X))return a4(wt)&&((We=wt.jsDoc)!=null&&We.jsDocCache)&&(wt.jsDoc.jsDocCache=void 0),wt}function yc(X){return t.resetTokenState(X.end),we(),X}function Yc(X){switch(X){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 wl(X,Se){switch(Se){case 5:return Il(X);case 2:return If(X);case 0:case 1:case 3:return C_(X);case 6:return Pd(X);case 4:return zf(X);case 8:return Qm(X);case 17:case 16:return Ih(X)}return!1}function Il(X){if(X)switch(X.kind){case 176:case 181:case 177:case 178:case 172:case 240:return!0;case 174:let Se=X;return!(Se.name.kind===80&&Se.name.escapedText==="constructor")}return!1}function If(X){if(X)switch(X.kind){case 296:case 297:return!0}return!1}function C_(X){if(X)switch(X.kind){case 262:case 243:case 241:case 245:case 244:case 257:case 253:case 255:case 252:case 251:case 249:case 250:case 248:case 247:case 254:case 242:case 258:case 256:case 246:case 259:case 272:case 271:case 278:case 277:case 267:case 263:case 264:case 266:case 265:return!0}return!1}function Pd(X){return X.kind===306}function zf(X){if(X)switch(X.kind){case 180:case 173:case 181:case 171:case 179:return!0}return!1}function Qm(X){return X.kind!==260?!1:X.initializer===void 0}function Ih(X){return X.kind!==169?!1:X.initializer===void 0}function _p(X){return B_(X),Ma()?!0:(we(),!1)}function B_(X){switch(X){case 0:return q()===90?Vt(p._0_expected,sa(95)):Vt(p.Declaration_or_statement_expected);case 1:return Vt(p.Declaration_or_statement_expected);case 2:return Vt(p.case_or_default_expected);case 3:return Vt(p.Statement_expected);case 18:case 4:return Vt(p.Property_or_signature_expected);case 5:return Vt(p.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return Vt(p.Enum_member_expected);case 7:return Vt(p.Expression_expected);case 8:return F_(q())?Vt(p._0_is_not_allowed_as_a_variable_declaration_name,sa(q())):Vt(p.Variable_declaration_expected);case 9:return Vt(p.Property_destructuring_pattern_expected);case 10:return Vt(p.Array_element_destructuring_pattern_expected);case 11:return Vt(p.Argument_expression_expected);case 12:return Vt(p.Property_assignment_expected);case 15:return Vt(p.Expression_or_comma_expected);case 17:return Vt(p.Parameter_declaration_expected);case 16:return F_(q())?Vt(p._0_is_not_allowed_as_a_parameter_name,sa(q())):Vt(p.Parameter_declaration_expected);case 19:return Vt(p.Type_parameter_declaration_expected);case 20:return Vt(p.Type_argument_expected);case 21:return Vt(p.Type_expected);case 22:return Vt(p.Unexpected_token_expected);case 23:return q()===161?Vt(p._0_expected,"}"):Vt(p.Identifier_expected);case 13:return Vt(p.Identifier_expected);case 14:return Vt(p.Identifier_expected);case 24:return Vt(p.Identifier_or_string_literal_expected);case 25:return Vt(p.Identifier_expected);case 26:return w.fail("ParsingContext.Count used as a context");default:w.assertNever(X)}}function o_(X,Se,We){let wt=zt;zt|=1<<X;let Yt=[],wr=j(),Un=-1;for(;;){if(Hc(X,!1)){let Ei=t.getTokenFullStart(),fi=Qc(X,Se);if(!fi){zt=wt;return}if(Yt.push(fi),Un=t.getTokenStart(),xi(28))continue;if(Un=-1,ts(X))break;tr(28,Km(X)),We&&q()===27&&!t.hasPrecedingLineBreak()&&we(),Ei===t.getTokenFullStart()&&we();continue}if(ts(X)||_p(X))break}return zt=wt,La(Yt,wr,void 0,Un>=0)}function Km(X){return X===6?p.An_enum_member_name_must_be_followed_by_a_or:void 0}function Jf(){let X=La([],j());return X.isMissingList=!0,X}function Dh(X){return!!X.isMissingList}function re(X,Se,We,wt){if(tr(We)){let Yt=o_(X,Se);return tr(wt),Yt}return Jf()}function at(X,Se){let We=j(),wt=X?Ic(Se):ec(Se);for(;xi(25)&&q()!==30;)wt=Ht(m.createQualifiedName(wt,Xt(X,!1,!0)),We);return wt}function Kt(X,Se){return Ht(m.createQualifiedName(X,Se),X.pos)}function Xt(X,Se,We){if(t.hasPrecedingLineBreak()&&E_(q())&&Gt(cx))return fo(80,!0,p.Identifier_expected);if(q()===81){let wt=pn();return Se?wt:fo(80,!0,p.Identifier_expected)}return X?We?Ic():N():ec()}function Ar(X){let Se=j(),We=[],wt;do wt=ze(X),We.push(wt);while(wt.literal.kind===17);return La(We,Se)}function Yr(X){let Se=j();return Ht(m.createTemplateExpression(Er(X),Ar(X)),Se)}function Gn(){let X=j();return Ht(m.createTemplateLiteralType(Er(!1),_i()),X)}function _i(){let X=j(),Se=[],We;do We=Ji(),Se.push(We);while(We.literal.kind===17);return La(Se,X)}function Ji(){let X=j();return Ht(m.createTemplateLiteralTypeSpan(bl(),L(!1)),X)}function L(X){return q()===20?($r(X),cs()):Qo(18,p._0_expected,sa(20))}function ze(X){let Se=j();return Ht(m.createTemplateSpan(xr(lu),L(X)),Se)}function Rt(){return Zi(q())}function Er(X){!X&&t.getTokenFlags()&26656&&$r(!1);let Se=Zi(q());return w.assert(Se.kind===16,"Template head has wrong token kind"),Se}function cs(){let X=Zi(q());return w.assert(X.kind===17||X.kind===18,"Template fragment has wrong token kind"),X}function bi(X){let Se=X===15||X===18,We=t.getTokenText();return We.substring(1,We.length-(t.isUnterminated()?0:Se?1:2))}function Zi(X){let Se=j(),We=v0(X)?m.createTemplateLiteralLikeNode(X,t.getTokenValue(),bi(X),t.getTokenFlags()&7176):X===9?S(t.getTokenValue(),t.getNumericLiteralFlags()):X===11?T(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):jP(X)?x(X,t.getTokenValue()):w.fail();return t.hasExtendedUnicodeEscape()&&(We.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(We.isUnterminated=!0),we(),Ht(We,Se)}function gs(){return at(!0,p.Type_expected)}function Uo(){if(!t.hasPrecedingLineBreak()&&it()===30)return re(20,bl,30,32)}function _a(){let X=j();return Ht(m.createTypeReferenceNode(gs(),Uo()),X)}function vl(X){switch(X.kind){case 183:return Tc(X.typeName);case 184:case 185:{let{parameters:Se,type:We}=X;return Dh(Se)||vl(We)}case 196:return vl(X.type);default:return!1}}function Df(X){return we(),Ht(m.createTypePredicateNode(void 0,X,bl()),X.pos)}function Lp(){let X=j();return we(),Ht(m.createThisTypeNode(),X)}function tm(){let X=j();return we(),Ht(m.createJSDocAllType(),X)}function ky(){let X=j();return we(),Ht(m.createJSDocNonNullableType(Yk(),!1),X)}function Ph(){let X=j();return we(),q()===28||q()===20||q()===22||q()===32||q()===64||q()===52?Ht(m.createJSDocUnknownType(),X):Ht(m.createJSDocNullableType(bl(),!1),X)}function Z_(){let X=j(),Se=Re();if(dr(nN)){let We=zr(36),wt=cr(59,!1);return hn(Ht(m.createJSDocFunctionType(We,wt),X),Se)}return Ht(m.createTypeReferenceNode(Ic(),void 0),X)}function rm(){let X=j(),Se;return(q()===110||q()===105)&&(Se=Ic(),tr(59)),Ht(m.createParameterDeclaration(void 0,void 0,Se,void 0,Xm(),void 0),X)}function Xm(){t.setSkipJsDocLeadingAsterisks(!0);let X=j();if(xi(144)){let wt=m.createJSDocNamepathType(void 0);e:for(;;)switch(q()){case 20:case 1:case 28:case 5:break e;default:ut()}return t.setSkipJsDocLeadingAsterisks(!1),Ht(wt,X)}let Se=xi(26),We=z_();return t.setSkipJsDocLeadingAsterisks(!1),Se&&(We=Ht(m.createJSDocVariadicType(We),X)),q()===64?(we(),Ht(m.createJSDocOptionalType(We),X)):We}function _d(){let X=j();tr(114);let Se=at(!0),We=t.hasPrecedingLineBreak()?void 0:P1();return Ht(m.createTypeQueryNode(Se,We),X)}function Y0(){let X=j(),Se=ai(!1,!0),We=ec(),wt,Yt;xi(96)&&(Ym()||!nm()?wt=bl():Yt=$i());let wr=xi(64)?bl():void 0,Un=m.createTypeParameterDeclaration(Se,We,wt,wr);return Un.expression=Yt,Ht(Un,X)}function Gf(){if(q()===30)return re(19,Y0,30,32)}function bv(X){return q()===26||D1()||S0(q())||q()===60||Ym(!X)}function Z0(X){let Se=Va(p.Private_identifiers_cannot_be_used_as_parameters);return P6(Se)===0&&!pt(X)&&S0(q())&&we(),Se}function Sv(){return Sr()||q()===23||q()===19}function Be(X){return Lt(X)}function rt(X){return Lt(X,!1)}function Lt(X,Se=!0){let We=j(),wt=Re(),Yt=X?Y(()=>ai(!0)):Ae(()=>ai(!0));if(q()===110){let fi=m.createParameterDeclaration(Yt,void 0,wc(!0),void 0,wv(),void 0),mi=_l(Yt);return mi&&kt(mi,p.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),hn(Ht(fi,We),wt)}let wr=_t;_t=!1;let Un=bs(26);if(!Se&&!Sv())return;let Ei=hn(Ht(m.createParameterDeclaration(Yt,Un,Z0(Yt),bs(58),wv(),Nh()),We),wt);return _t=wr,Ei}function cr(X,Se){if(qr(X,Se))return Ye(z_)}function qr(X,Se){return X===39?(tr(X),!0):xi(59)?!0:Se&&q()===39?(Vt(p._0_expected,sa(59)),we(),!0):!1}function Sn(X,Se){let We=Fe(),wt=Ke();Zn(!!(X&1)),Pi(!!(X&2));let Yt=X&32?o_(17,rm):o_(16,()=>Se?Be(wt):rt(wt));return Zn(We),Pi(wt),Yt}function zr(X){if(!tr(21))return Jf();let Se=Sn(X,!0);return tr(22),Se}function bn(){xi(28)||Ba()}function Di(X){let Se=j(),We=Re();X===180&&tr(105);let wt=Gf(),Yt=zr(4),wr=cr(59,!0);bn();let Un=X===179?m.createCallSignature(wt,Yt,wr):m.createConstructSignature(wt,Yt,wr);return hn(Ht(Un,Se),We)}function fs(){return q()===23&&Gt(ti)}function ti(){if(we(),q()===26||q()===24)return!0;if(S0(q())){if(we(),kr())return!0}else if(kr())we();else return!1;return q()===59||q()===28?!0:q()!==58?!1:(we(),q()===59||q()===28||q()===24)}function qi(X,Se,We){let wt=re(16,()=>Be(!1),23,24),Yt=wv();bn();let wr=m.createIndexSignature(We,wt,Yt);return hn(Ht(wr,X),Se)}function Ls(X,Se,We){let wt=Br(),Yt=bs(58),wr;if(q()===21||q()===30){let Un=Gf(),Ei=zr(4),fi=cr(59,!0);wr=m.createMethodSignature(We,wt,Yt,Un,Ei,fi)}else{let Un=wv();wr=m.createPropertySignature(We,wt,Yt,Un),q()===64&&(wr.initializer=Nh())}return bn(),hn(Ht(wr,X),Se)}function Ql(){if(q()===21||q()===30||q()===139||q()===153)return!0;let X=!1;for(;S0(q());)X=!0,we();return q()===23?!0:(Oe()&&(X=!0,we()),X?q()===21||q()===30||q()===58||q()===59||q()===28||ms():!1)}function fp(){if(q()===21||q()===30)return Di(179);if(q()===105&&Gt(pp))return Di(180);let X=j(),Se=Re(),We=ai(!1);return Lr(139)?cm(X,Se,We,177,4):Lr(153)?cm(X,Se,We,178,4):fs()?qi(X,Se,We):Ls(X,Se,We)}function pp(){return we(),q()===21||q()===30}function Pf(){return we()===25}function Ng(){switch(we()){case 21:case 30:case 25:return!0}return!1}function Ad(){let X=j();return Ht(m.createTypeLiteralNode(Mg()),X)}function Mg(){let X;return tr(19)?(X=Wo(4,fp),tr(20)):X=Jf(),X}function Tv(){return we(),q()===40||q()===41?we()===148:(q()===148&&we(),q()===23&&bu()&&we()===103)}function Rg(){let X=j(),Se=Ic();tr(103);let We=bl();return Ht(m.createTypeParameterDeclaration(void 0,Se,We,void 0),X)}function kv(){let X=j();tr(19);let Se;(q()===148||q()===40||q()===41)&&(Se=Zo(),Se.kind!==148&&tr(148)),tr(23);let We=Rg(),wt=xi(130)?bl():void 0;tr(24);let Yt;(q()===58||q()===40||q()===41)&&(Yt=Zo(),Yt.kind!==58&&tr(58));let wr=wv();Ba();let Un=Wo(4,fp);return tr(20),Ht(m.createMappedTypeNode(Se,We,wt,Yt,wr,Un),X)}function m1(){let X=j();if(xi(26))return Ht(m.createRestTypeNode(bl()),X);let Se=bl();if(vI(Se)&&Se.pos===Se.type.pos){let We=m.createOptionalTypeNode(Se.type);return dt(We,Se),We.flags=Se.flags,We}return Se}function sT(){return we()===59||q()===58&&we()===59}function eN(){return q()===26?E_(we())&&sT():E_(q())&&sT()}function bC(){if(Gt(eN)){let X=j(),Se=Re(),We=bs(26),wt=Ic(),Yt=bs(58);tr(59);let wr=m1(),Un=m.createNamedTupleMember(We,wt,Yt,wr);return hn(Ht(Un,X),Se)}return m1()}function dD(){let X=j();return Ht(m.createTupleTypeNode(re(21,bC,23,24)),X)}function aT(){let X=j();tr(21);let Se=bl();return tr(22),Ht(m.createParenthesizedType(Se),X)}function mD(){let X;if(q()===128){let Se=j();we();let We=Ht(E(128),Se);X=La([We],Se)}return X}function Kk(){let X=j(),Se=Re(),We=mD(),wt=xi(105);w.assert(!We||wt,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let Yt=Gf(),wr=zr(4),Un=cr(39,!1),Ei=wt?m.createConstructorTypeNode(We,Yt,wr,Un):m.createFunctionTypeNode(Yt,wr,Un);return hn(Ht(Ei,X),Se)}function SC(){let X=Zo();return q()===25?void 0:X}function oT(X){let Se=j();X&&we();let We=q()===112||q()===97||q()===106?Zo():Zi(q());return X&&(We=Ht(m.createPrefixUnaryExpression(41,We),Se)),Ht(m.createLiteralTypeNode(We),Se)}function gD(){return we(),q()===102}function Xk(){xe|=4194304;let X=j(),Se=xi(114);tr(102),tr(21);let We=bl(),wt;if(xi(28)){let Un=t.getTokenStart();tr(19);let Ei=q();if(Ei===118||Ei===132?we():Vt(p._0_expected,sa(118)),tr(59),wt=VC(Ei,!0),!tr(20)){let fi=zo(Je);fi&&fi.code===p._0_expected.code&&Xs(fi,S2(se,_e,Un,1,p.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}tr(22);let Yt=xi(25)?gs():void 0,wr=Uo();return Ht(m.createImportTypeNode(We,wt,Yt,wr,Se),X)}function TC(){return we(),q()===9||q()===10}function Yk(){switch(q()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return dr(SC)||_a();case 67:t.reScanAsteriskEqualsToken();case 42:return tm();case 61:t.reScanQuestionToken();case 58:return Ph();case 100:return Z_();case 54:return ky();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return oT();case 41:return Gt(TC)?oT(!0):_a();case 116:return Zo();case 110:{let X=Lp();return q()===142&&!t.hasPrecedingLineBreak()?Df(X):X}case 114:return Gt(gD)?Xk():_d();case 19:return Gt(Tv)?kv():Ad();case 23:return dD();case 21:return aT();case 102:return Xk();case 131:return Gt(cx)?Af():_a();case 16:return Gn();default:return _a()}}function Ym(X){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!X;case 41:return!X&&Gt(TC);case 21:return!X&&Gt(xv);default:return kr()}}function xv(){return we(),q()===22||bv(!1)||Ym()}function xy(){let X=j(),Se=Yk();for(;!t.hasPrecedingLineBreak();)switch(q()){case 54:we(),Se=Ht(m.createJSDocNonNullableType(Se,!0),X);break;case 58:if(Gt(sn))return Se;we(),Se=Ht(m.createJSDocNullableType(Se,!0),X);break;case 23:if(tr(23),Ym()){let We=bl();tr(24),Se=Ht(m.createIndexedAccessTypeNode(Se,We),X)}else tr(24),Se=Ht(m.createArrayTypeNode(Se),X);break;default:return Se}return Se}function Fg(X){let Se=j();return tr(X),Ht(m.createTypeOperatorNode(X,lT()),Se)}function g1(){if(xi(96)){let X=Nt(bl);if(vt()||q()!==58)return X}}function eb(){let X=j(),Se=ec(),We=dr(g1),wt=m.createTypeParameterDeclaration(void 0,Se,We);return Ht(wt,X)}function cT(){let X=j();return tr(140),Ht(m.createInferTypeNode(eb()),X)}function lT(){let X=q();switch(X){case 143:case 158:case 148:return Fg(X);case 140:return cT()}return Ye(xy)}function Cv(X){if(Ah()){let Se=Kk(),We;return Ig(Se)?We=X?p.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:p.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:We=X?p.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:p.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,kt(Se,We),Se}}function za(X,Se,We){let wt=j(),Yt=X===52,wr=xi(X),Un=wr&&Cv(Yt)||Se();if(q()===X||wr){let Ei=[Un];for(;xi(X);)Ei.push(Cv(Yt)||Se());Un=Ht(We(La(Ei,wt)),wt)}return Un}function h1(){return za(51,lT,m.createIntersectionTypeNode)}function tN(){return za(52,h1,m.createUnionTypeNode)}function tb(){return we(),q()===105}function Ah(){return q()===30||q()===21&&Gt(jp)?!0:q()===105||q()===128&&Gt(tb)}function Eh(){if(S0(q())&&ai(!1),kr()||q()===110)return we(),!0;if(q()===23||q()===19){let X=Je.length;return Va(),X===Je.length}return!1}function jp(){return we(),!!(q()===22||q()===26||Eh()&&(q()===59||q()===28||q()===58||q()===64||q()===22&&(we(),q()===39)))}function z_(){let X=j(),Se=kr()&&dr(ef),We=bl();return Se?Ht(m.createTypePredicateNode(void 0,Se,We),X):We}function ef(){let X=ec();if(q()===142&&!t.hasPrecedingLineBreak())return we(),X}function Af(){let X=j(),Se=Qo(131),We=q()===110?Lp():ec(),wt=xi(142)?bl():void 0;return Ht(m.createTypePredicateNode(Se,We,wt),X)}function bl(){if(Or&81920)return Rs(81920,bl);if(Ah())return Kk();let X=j(),Se=tN();if(!vt()&&!t.hasPrecedingLineBreak()&&xi(96)){let We=Nt(bl);tr(58);let wt=Ye(bl);tr(59);let Yt=Ye(bl);return Ht(m.createConditionalTypeNode(Se,We,wt,Yt),X)}return Se}function wv(){return xi(59)?bl():void 0}function Zk(){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 Gt(Ng);default:return kr()}}function nm(){if(Zk())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 Oh()?!0:kr()}}function rb(){return q()!==19&&q()!==100&&q()!==86&&q()!==60&&nm()}function lu(){let X=Mt();X&&Xn(!1);let Se=j(),We=tf(!0),wt;for(;wt=bs(28);)We=y1(We,wt,tf(!0),Se);return X&&Xn(!0),We}function Nh(){return xi(64)?tf(!0):void 0}function tf(X){if(Mh())return Og();let Se=$e(X)||kC(X);if(Se)return Se;let We=j(),wt=Re(),Yt=da(0);return Yt.kind===80&&q()===39?uT(We,Yt,X,wt,void 0):M_(Yt)&&ly(en())?y1(Yt,Zo(),tf(X),We):xC(Yt,We,X)}function Mh(){return q()===127?Fe()?!0:Gt(lx):!1}function Rh(){return we(),!t.hasPrecedingLineBreak()&&kr()}function Og(){let X=j();return we(),!t.hasPrecedingLineBreak()&&(q()===42||nm())?Ht(m.createYieldExpression(bs(42),tf(!0)),X):Ht(m.createYieldExpression(void 0,void 0),X)}function uT(X,Se,We,wt,Yt){w.assert(q()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let wr=m.createParameterDeclaration(void 0,void 0,Se,void 0,void 0,void 0);Ht(wr,Se.pos);let Un=La([wr],wr.pos,wr.end),Ei=Qo(39),fi=Lg(!!Yt,We),mi=m.createArrowFunction(Yt,void 0,Un,void 0,Ei,fi);return hn(Ht(mi,X),wt)}function $e(X){let Se=Iv();if(Se!==0)return Se===1?Cy(!0,!0):dr(()=>Dv(X))}function Iv(){return q()===21||q()===30||q()===134?Gt(im):q()===39?1:0}function im(){if(q()===134&&(we(),t.hasPrecedingLineBreak()||q()!==21&&q()!==30))return 0;let X=q(),Se=we();if(X===21){if(Se===22)switch(we()){case 39:case 59:case 19:return 1;default:return 0}if(Se===23||Se===19)return 2;if(Se===26)return 1;if(S0(Se)&&Se!==134&&Gt(bu))return we()===130?0:1;if(!kr()&&Se!==110)return 0;switch(we()){case 59:return 1;case 58:return we(),q()===59||q()===28||q()===64||q()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return w.assert(X===30),!kr()&&q()!==87?0:le===1?Gt(()=>{xi(87);let wt=we();if(wt===96)switch(we()){case 64:case 32:case 44:return!1;default:return!0}else if(wt===28||wt===64)return!0;return!1})?1:0:2}function Dv(X){let Se=t.getTokenStart();if(ur?.has(Se))return;let We=Cy(!1,X);return We||(ur||(ur=new Set)).add(Se),We}function kC(X){if(q()===134&&Gt(Pv)===1){let Se=j(),We=Re(),wt=wi(),Yt=da(0);return uT(Se,Yt,X,We,wt)}}function Pv(){if(q()===134){if(we(),t.hasPrecedingLineBreak()||q()===39)return 0;let X=da(0);if(!t.hasPrecedingLineBreak()&&X.kind===80&&q()===39)return 1}return 0}function Cy(X,Se){let We=j(),wt=Re(),Yt=wi(),wr=pt(Yt,jA)?2:0,Un=Gf(),Ei;if(tr(21)){if(X)Ei=Sn(wr,X);else{let md=Sn(wr,X);if(!md)return;Ei=md}if(!tr(22)&&!X)return}else{if(!X)return;Ei=Jf()}let fi=q()===59,mi=cr(59,!1);if(mi&&!X&&vl(mi))return;let es=mi;for(;es?.kind===196;)es=es.type;let ho=es&&bI(es);if(!X&&q()!==39&&(ho||q()!==19))return;let yo=q(),Ja=Qo(39),Wp=yo===39||yo===19?Lg(pt(Yt,jA),Se):ec();if(!Se&&fi&&q()!==59)return;let Gg=m.createArrowFunction(Yt,Un,Ei,mi,Ja,Wp);return hn(Ht(Gg,We),wt)}function Lg(X,Se){if(q()===19)return Fv(X?2:0);if(q()!==27&&q()!==100&&q()!==86&&kD()&&!rb())return Fv(16|(X?2:0));let We=_t;_t=!1;let wt=X?Y(()=>tf(Se)):Ae(()=>tf(Se));return _t=We,wt}function xC(X,Se,We){let wt=bs(58);if(!wt)return X;let Yt;return Ht(m.createConditionalExpression(X,wt,Rs(n,()=>tf(!1)),Yt=Qo(59),Zp(Yt)?tf(We):fo(80,!1,p._0_expected,sa(59))),Se)}function da(X){let Se=j(),We=$i();return Fh(X,We,Se)}function Kl(X){return X===103||X===165}function Fh(X,Se,We){for(;;){en();let wt=m4(q());if(!(q()===43?wt>=X:wt>X)||q()===103&&St())break;if(q()===130||q()===152){if(t.hasPrecedingLineBreak())break;{let wr=q();we(),Se=wr===152?nb(Se,bl()):Zm(Se,bl())}}else Se=y1(Se,Zo(),da(wt),We)}return Se}function Oh(){return St()&&q()===103?!1:m4(q())>0}function nb(X,Se){return Ht(m.createSatisfiesExpression(X,Se),X.pos)}function y1(X,Se,We,wt){return Ht(m.createBinaryExpression(X,Se,We),wt)}function Zm(X,Se){return Ht(m.createAsExpression(X,Se),X.pos)}function wy(){let X=j();return Ht(m.createPrefixUnaryExpression(q(),jt(wn)),X)}function ex(){let X=j();return Ht(m.createDeleteExpression(jt(wn)),X)}function Av(){let X=j();return Ht(m.createTypeOfExpression(jt(wn)),X)}function eg(){let X=j();return Ht(m.createVoidExpression(jt(wn)),X)}function jg(){return q()===135?Ke()?!0:Gt(lx):!1}function ib(){let X=j();return Ht(m.createAwaitExpression(jt(wn)),X)}function $i(){if(c_()){let We=j(),wt=tx();return q()===43?Fh(m4(q()),wt,We):wt}let X=q(),Se=wn();if(q()===43){let We=ha(_e,Se.pos),{end:wt}=Se;Se.kind===216?Pe(We,wt,p.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(w.assert($F(X)),Pe(We,wt,p.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,sa(X)))}return Se}function wn(){switch(q()){case 40:case 41:case 55:case 54:return wy();case 91:return ex();case 114:return Av();case 116:return eg();case 30:return le===1?b1(!0,void 0,void 0,!0):l_();case 135:if(jg())return ib();default:return tx()}}function c_(){switch(q()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(le!==1)return!1;default:return!0}}function tx(){if(q()===46||q()===47){let Se=j();return Ht(m.createPrefixUnaryExpression(q(),jt(tg)),Se)}else if(le===1&&q()===30&&Gt(x_))return b1(!0);let X=tg();if(w.assert(M_(X)),(q()===46||q()===47)&&!t.hasPrecedingLineBreak()){let Se=q();return we(),Ht(m.createPostfixUnaryExpression(X,Se),X.pos)}return X}function tg(){let X=j(),Se;return q()===102?Gt(pp)?(xe|=4194304,Se=Zo()):Gt(Pf)?(we(),we(),Se=Ht(m.createMetaProperty(102,Ic()),X),xe|=8388608):Se=Io():Se=q()===108?v1():Io(),Bg(X,Se)}function Io(){let X=j(),Se=jh();return Uf(X,Se,!0)}function v1(){let X=j(),Se=Zo();if(q()===30){let We=j(),wt=dr(Mv);wt!==void 0&&(Pe(We,j(),p.super_may_not_use_type_arguments),am()||(Se=m.createExpressionWithTypeArguments(Se,wt)))}return q()===21||q()===25||q()===23?Se:(Qo(25,p.super_must_be_followed_by_an_argument_list_or_member_access),Ht(B(Se,Xt(!0,!0,!0)),X))}function b1(X,Se,We,wt=!1){let Yt=j(),wr=hD(X),Un;if(wr.kind===286){let Ei=sb(wr),fi,mi=Ei[Ei.length-1];if(mi?.kind===284&&!e1(mi.openingElement.tagName,mi.closingElement.tagName)&&e1(wr.tagName,mi.closingElement.tagName)){let es=mi.children.end,ho=Ht(m.createJsxElement(mi.openingElement,mi.children,Ht(m.createJsxClosingElement(Ht(I(""),es,es)),es,es)),mi.openingElement.pos,es);Ei=La([...Ei.slice(0,Ei.length-1),ho],Ei.pos,es),fi=mi.closingElement}else fi=yD(wr,X),e1(wr.tagName,fi.tagName)||(We&&Hd(We)&&e1(fi.tagName,We.tagName)?kt(wr.tagName,p.JSX_element_0_has_no_corresponding_closing_tag,VP(_e,wr.tagName)):kt(fi.tagName,p.Expected_corresponding_JSX_closing_tag_for_0,VP(_e,wr.tagName)));Un=Ht(m.createJsxElement(wr,Ei,fi),Yt)}else wr.kind===289?Un=Ht(m.createJsxFragment(wr,sb(wr),wC(X)),Yt):(w.assert(wr.kind===285),Un=wr);if(!wt&&X&&q()===30){let Ei=typeof Se>"u"?Un.pos:Se,fi=dr(()=>b1(!0,Ei));if(fi){let mi=fo(28,!1);return RJ(mi,fi.pos,0),Pe(ha(_e,Ei),fi.end,p.JSX_expressions_must_have_one_parent_element),Ht(m.createBinaryExpression(Un,mi,fi),Yt)}}return Un}function rx(){let X=j(),Se=m.createJsxText(t.getTokenValue(),Ie===13);return Ie=t.scanJsxToken(),Ht(Se,X)}function CC(X,Se){switch(Se){case 1:if(wd(X))kt(X,p.JSX_fragment_has_no_corresponding_closing_tag);else{let We=X.tagName,wt=Math.min(ha(_e,We.pos),We.end);Pe(wt,We.end,p.JSX_element_0_has_no_corresponding_closing_tag,VP(_e,X.tagName))}return;case 31:case 7:return;case 12:case 13:return rx();case 19:return ws(!1);case 30:return b1(!1,void 0,X);default:return w.assertNever(Se)}}function sb(X){let Se=[],We=j(),wt=zt;for(zt|=16384;;){let Yt=CC(X,Ie=t.reScanJsxToken());if(!Yt||(Se.push(Yt),Hd(X)&&Yt?.kind===284&&!e1(Yt.openingElement.tagName,Yt.closingElement.tagName)&&e1(X.tagName,Yt.closingElement.tagName)))break}return zt=wt,La(Se,We)}function sm(){let X=j();return Ht(m.createJsxAttributes(Wo(13,Ev)),X)}function hD(X){let Se=j();if(tr(30),q()===32)return Ot(),Ht(m.createJsxOpeningFragment(),Se);let We=Tn(),wt=(Or&524288)===0?P1():void 0,Yt=sm(),wr;return q()===32?(Ot(),wr=m.createJsxOpeningElement(We,wt,Yt)):(tr(44),tr(32,void 0,!1)&&(X?we():Ot()),wr=m.createJsxSelfClosingElement(We,wt,Yt)),Ht(wr,Se)}function Tn(){let X=j(),Se=$u();if(Qd(Se))return Se;let We=Se;for(;xi(25);)We=Ht(B(We,Xt(!0,!1,!1)),X);return We}function $u(){let X=j();Ut();let Se=q()===110,We=N();return xi(59)?(Ut(),Ht(m.createJsxNamespacedName(We,N()),X)):Se?Ht(m.createToken(110),X):We}function ws(X){let Se=j();if(!tr(19))return;let We,wt;return q()!==20&&(X||(We=bs(26)),wt=lu()),X?tr(20):tr(20,void 0,!1)&&Ot(),Ht(m.createJsxExpression(We,wt),Se)}function Ev(){if(q()===19)return gn();let X=j();return Ht(m.createJsxAttribute(S1(),nx()),X)}function nx(){if(q()===64){if(vr()===11)return Rt();if(q()===19)return ws(!0);if(q()===30)return b1(!0);Vt(p.or_JSX_element_expected)}}function S1(){let X=j();Ut();let Se=N();return xi(59)?(Ut(),Ht(m.createJsxNamespacedName(Se,N()),X)):Se}function gn(){let X=j();tr(19),tr(26);let Se=lu();return tr(20),Ht(m.createJsxSpreadAttribute(Se),X)}function yD(X,Se){let We=j();tr(31);let wt=Tn();return tr(32,void 0,!1)&&(Se||!e1(X.tagName,wt)?we():Ot()),Ht(m.createJsxClosingElement(wt),We)}function wC(X){let Se=j();return tr(31),tr(32,p.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(X?we():Ot()),Ht(m.createJsxJsxClosingFragment(),Se)}function l_(){w.assert(le!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let X=j();tr(30);let Se=bl();tr(32);let We=wn();return Ht(m.createTypeAssertion(Se,We),X)}function Wg(){return we(),E_(q())||q()===23||am()}function Ed(){return q()===29&&Gt(Wg)}function Nv(X){if(X.flags&64)return!0;if(z2(X)){let Se=X.expression;for(;z2(Se)&&!(Se.flags&64);)Se=Se.expression;if(Se.flags&64){for(;z2(X);)X.flags|=64,X=X.expression;return!0}}return!1}function dp(X,Se,We){let wt=Xt(!0,!0,!0),Yt=We||Nv(Se),wr=Yt?G(Se,We,wt):B(Se,wt);if(Yt&&ji(wr.name)&&kt(wr.name,p.An_optional_chain_cannot_contain_private_identifiers),py(Se)&&Se.typeArguments){let Un=Se.typeArguments.pos-1,Ei=ha(_e,Se.typeArguments.end)+1;Pe(Un,Ei,p.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return Ht(wr,X)}function Lh(X,Se,We){let wt;if(q()===24)wt=fo(80,!0,p.An_element_access_expression_should_take_an_argument);else{let wr=xr(lu);tp(wr)&&(wr.text=sl(wr.text)),wt=wr}tr(24);let Yt=We||Nv(Se)?K(Se,We,wt):$(Se,wt);return Ht(Yt,X)}function Uf(X,Se,We){for(;;){let wt,Yt=!1;if(We&&Ed()?(wt=Qo(29),Yt=E_(q())):Yt=xi(25),Yt){Se=dp(X,Se,wt);continue}if((wt||!Mt())&&xi(23)){Se=Lh(X,Se,wt);continue}if(am()){Se=!wt&&Se.kind===233?fd(X,Se.expression,wt,Se.typeArguments):fd(X,Se,wt,void 0);continue}if(!wt){if(q()===54&&!t.hasPrecedingLineBreak()){we(),Se=Ht(m.createNonNullExpression(Se),X);continue}let wr=dr(Mv);if(wr){Se=Ht(m.createExpressionWithTypeArguments(Se,wr),X);continue}}return Se}}function am(){return q()===15||q()===16}function fd(X,Se,We,wt){let Yt=m.createTaggedTemplateExpression(Se,wt,q()===15?($r(!0),Rt()):Yr(!0));return(We||Se.flags&64)&&(Yt.flags|=64),Yt.questionDotToken=We,Ht(Yt,X)}function Bg(X,Se){for(;;){Se=Uf(X,Se,!0);let We,wt=bs(29);if(wt&&(We=dr(Mv),am())){Se=fd(X,Se,wt,We);continue}if(We||q()===21){!wt&&Se.kind===233&&(We=Se.typeArguments,Se=Se.expression);let Yt=_T(),wr=wt||Nv(Se)?me(Se,wt,We,Yt):U(Se,We,Yt);Se=Ht(wr,X);continue}if(wt){let Yt=fo(80,!1,p.Identifier_expected);Se=Ht(G(Se,wt,Yt),X)}break}return Se}function _T(){tr(21);let X=o_(11,Nd);return tr(22),X}function Mv(){if((Or&524288)!==0||it()!==30)return;we();let X=o_(20,bl);if(en()===32)return we(),X&&IC()?X:void 0}function IC(){switch(q()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||Oh()||!nm()}function jh(){switch(q()){case 15:t.getTokenFlags()&26656&&$r(!1);case 9:case 10:case 11:return Rt();case 110:case 108:case 106:case 112:case 97:return Zo();case 21:return ix();case 23:return PC();case 19:return Rv();case 134:if(!Gt(TD))break;return fT();case 60:return Ss();case 86:return Ca();case 100:return fT();case 105:return Iy();case 44:case 69:if(Pr()===14)return Rt();break;case 16:return Yr(!1);case 81:return pn()}return ec(p.Expression_expected)}function ix(){let X=j(),Se=Re();tr(21);let We=xr(lu);return tr(22),hn(Ht(V(We),X),Se)}function DC(){let X=j();tr(26);let Se=tf(!0);return Ht(m.createSpreadElement(Se),X)}function ab(){return q()===26?DC():q()===28?Ht(m.createOmittedExpression(),j()):tf(!0)}function Nd(){return Rs(n,ab)}function PC(){let X=j(),Se=t.getTokenStart(),We=tr(23),wt=t.hasPrecedingLineBreak(),Yt=o_(15,ab);return Bc(23,24,We,Se),Ht(O(Yt,wt),X)}function sx(){let X=j(),Se=Re();if(bs(26)){let es=tf(!0);return hn(Ht(m.createSpreadAssignment(es),X),Se)}let We=ai(!0);if(Lr(139))return cm(X,Se,We,177,0);if(Lr(153))return cm(X,Se,We,178,0);let wt=bs(42),Yt=kr(),wr=Br(),Un=bs(58),Ei=bs(54);if(wt||q()===21||q()===30)return mp(X,Se,We,wt,wr,Un,Ei);let fi;if(Yt&&q()!==59){let es=bs(64),ho=es?xr(()=>tf(!0)):void 0;fi=m.createShorthandPropertyAssignment(wr,ho),fi.equalsToken=es}else{tr(59);let es=xr(()=>tf(!0));fi=m.createPropertyAssignment(wr,es)}return fi.modifiers=We,fi.questionToken=Un,fi.exclamationToken=Ei,hn(Ht(fi,X),Se)}function Rv(){let X=j(),Se=t.getTokenStart(),We=tr(19),wt=t.hasPrecedingLineBreak(),Yt=o_(12,sx,!0);return Bc(19,20,We,Se),Ht(F(Yt,wt),X)}function fT(){let X=Mt();Xn(!1);let Se=j(),We=Re(),wt=ai(!1);tr(100);let Yt=bs(42),wr=Yt?1:0,Un=pt(wt,jA)?2:0,Ei=wr&&Un?Xe(rg):wr?ae(rg):Un?Y(rg):rg(),fi=Gf(),mi=zr(wr|Un),es=cr(59,!1),ho=Fv(wr|Un);Xn(X);let yo=m.createFunctionExpression(wt,Yt,Ei,fi,mi,es,ho);return hn(Ht(yo,Se),We)}function rg(){return Sr()?cu():void 0}function Iy(){let X=j();if(tr(105),xi(25)){let wr=Ic();return Ht(m.createMetaProperty(105,wr),X)}let Se=j(),We=Uf(Se,jh(),!1),wt;We.kind===233&&(wt=We.typeArguments,We=We.expression),q()===29&&Vt(p.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,VP(_e,We));let Yt=q()===21?_T():void 0;return Ht(te(We,wt,Yt),X)}function ng(X,Se){let We=j(),wt=Re(),Yt=t.getTokenStart(),wr=tr(19,Se);if(wr||X){let Un=t.hasPrecedingLineBreak(),Ei=Wo(1,dd);Bc(19,20,wr,Yt);let fi=hn(Ht(ne(Ei,Un),We),wt);return q()===64&&(Vt(p.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),we()),fi}else{let Un=Jf();return hn(Ht(ne(Un,void 0),We),wt)}}function Fv(X,Se){let We=Fe();Zn(!!(X&1));let wt=Ke();Pi(!!(X&2));let Yt=_t;_t=!1;let wr=Mt();wr&&Xn(!1);let Un=ng(!!(X&16),Se);return wr&&Xn(!0),_t=Yt,Zn(We),Pi(wt),Un}function Xl(){let X=j(),Se=Re();return tr(27),hn(Ht(m.createEmptyStatement(),X),Se)}function ax(){let X=j(),Se=Re();tr(101);let We=t.getTokenStart(),wt=tr(21),Yt=xr(lu);Bc(21,22,wt,We);let wr=dd(),Un=xi(93)?dd():void 0;return hn(Ht(de(Yt,wr,Un),X),Se)}function Wh(){let X=j(),Se=Re();tr(92);let We=dd();tr(117);let wt=t.getTokenStart(),Yt=tr(21),wr=xr(lu);return Bc(21,22,Yt,wt),xi(27),hn(Ht(m.createDoStatement(We,wr),X),Se)}function pT(){let X=j(),Se=Re();tr(117);let We=t.getTokenStart(),wt=tr(21),Yt=xr(lu);Bc(21,22,wt,We);let wr=dd();return hn(Ht(ye(Yt,wr),X),Se)}function AC(){let X=j(),Se=Re();tr(99);let We=bs(135);tr(21);let wt;q()!==27&&(q()===115||q()===121||q()===87||q()===160&&Gt(u_)||q()===135&&Gt(ux)?wt=rf(!0):wt=xs(lu));let Yt;if(We?tr(165):xi(165)){let wr=xr(()=>tf(!0));tr(22),Yt=ve(We,wt,wr,dd())}else if(xi(103)){let wr=xr(lu);tr(22),Yt=m.createForInStatement(wt,wr,dd())}else{tr(27);let wr=q()!==27&&q()!==22?xr(lu):void 0;tr(27);let Un=q()!==22?xr(lu):void 0;tr(22),Yt=H(wt,wr,Un,dd())}return hn(Ht(Yt,X),Se)}function zg(X){let Se=j(),We=Re();tr(X===252?83:88);let wt=ms()?void 0:ec();Ba();let Yt=X===252?m.createBreakStatement(wt):m.createContinueStatement(wt);return hn(Ht(Yt,Se),We)}function vD(){let X=j(),Se=Re();tr(107);let We=ms()?void 0:xr(lu);return Ba(),hn(Ht(m.createReturnStatement(We),X),Se)}function dT(){let X=j(),Se=Re();tr(118);let We=t.getTokenStart(),wt=tr(21),Yt=xr(lu);Bc(21,22,wt,We);let wr=oa(67108864,dd);return hn(Ht(m.createWithStatement(Yt,wr),X),Se)}function bD(){let X=j(),Se=Re();tr(84);let We=xr(lu);tr(59);let wt=Wo(3,dd);return hn(Ht(m.createCaseClause(We,wt),X),Se)}function T1(){let X=j();tr(90),tr(59);let Se=Wo(3,dd);return Ht(m.createDefaultClause(Se),X)}function ox(){return q()===84?bD():T1()}function Pc(){let X=j();tr(19);let Se=Wo(2,ox);return tr(20),Ht(m.createCaseBlock(Se),X)}function al(){let X=j(),Se=Re();tr(109),tr(21);let We=xr(lu);tr(22);let wt=Pc();return hn(Ht(m.createSwitchStatement(We,wt),X),Se)}function SD(){let X=j(),Se=Re();tr(111);let We=t.hasPrecedingLineBreak()?void 0:xr(lu);return We===void 0&&(bt++,We=Ht(I(""),j())),Ys()||zs(We),hn(Ht(m.createThrowStatement(We),X),Se)}function Ef(){let X=j(),Se=Re();tr(113);let We=ng(!1),wt=q()===85?pd():void 0,Yt;return(!wt||q()===98)&&(tr(98,p.catch_or_finally_expected),Yt=ng(!1)),hn(Ht(m.createTryStatement(We,wt,Yt),X),Se)}function pd(){let X=j();tr(85);let Se;xi(21)?(Se=Vf(),tr(22)):Se=void 0;let We=ng(!1);return Ht(m.createCatchClause(Se,We),X)}function EC(){let X=j(),Se=Re();return tr(89),Ba(),hn(Ht(m.createDebuggerStatement(),X),Se)}function om(){let X=j(),Se=Re(),We,wt=q()===21,Yt=xr(lu);return je(Yt)&&xi(59)?We=m.createLabeledStatement(Yt,dd()):(Ys()||zs(Yt),We=oe(Yt),wt&&(Se=!1)),hn(Ht(We,X),Se)}function cx(){return we(),E_(q())&&!t.hasPrecedingLineBreak()}function Dy(){return we(),q()===86&&!t.hasPrecedingLineBreak()}function TD(){return we(),q()===100&&!t.hasPrecedingLineBreak()}function lx(){return we(),(E_(q())||q()===9||q()===10||q()===11)&&!t.hasPrecedingLineBreak()}function Ac(){for(;;)switch(q()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return gT();case 135:return J_();case 120:case 156:return Rh();case 144:case 145:return RC();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let X=q();if(we(),t.hasPrecedingLineBreak())return!1;if(X===138&&q()===156)return!0;continue;case 162:return we(),q()===19||q()===80||q()===95;case 102:return we(),q()===11||q()===42||q()===19||E_(q());case 95:let Se=we();if(Se===156&&(Se=Gt(we)),Se===64||Se===42||Se===19||Se===90||Se===130||Se===60)return!0;continue;case 126:we();continue;default:return!1}}function k1(){return Gt(Ac)}function kD(){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 k1()||Gt(Ng);case 87:case 95:return k1();case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return k1()||!Gt(cx);default:return nm()}}function mT(){return we(),Sr()||q()===19||q()===23}function rN(){return Gt(mT)}function u_(){return x1(!0)}function x1(X){return we(),X&&q()===165?!1:(Sr()||q()===19)&&!t.hasPrecedingLineBreak()}function gT(){return Gt(x1)}function ux(X){return we()===160?x1(X):!1}function J_(){return Gt(ux)}function dd(){switch(q()){case 27:return Xl();case 19:return ng(!1);case 115:return ob(j(),Re(),void 0);case 121:if(rN())return ob(j(),Re(),void 0);break;case 135:if(J_())return ob(j(),Re(),void 0);break;case 160:if(gT())return ob(j(),Re(),void 0);break;case 100:return fx(j(),Re(),void 0);case 86:return w_(j(),Re(),void 0);case 101:return ax();case 92:return Wh();case 117:return pT();case 99:return AC();case 88:return zg(251);case 83:return zg(252);case 107:return vD();case 118:return dT();case 109:return al();case 111:return SD();case 113:case 85:case 98:return Ef();case 89:return EC();case 60:return NC();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(k1())return NC();break}return om()}function Ov(X){return X.kind===138}function NC(){let X=j(),Se=Re(),We=ai(!0);if(pt(We,Ov)){let Yt=C1(X);if(Yt)return Yt;for(let wr of We)wr.flags|=33554432;return oa(33554432,()=>w1(X,Se,We))}else return w1(X,Se,We)}function C1(X){return oa(33554432,()=>{let Se=hc(zt,X);if(Se)return yc(Se)})}function w1(X,Se,We){switch(q()){case 115:case 121:case 87:case 160:case 135:return ob(X,Se,We);case 100:return fx(X,Se,We);case 86:return w_(X,Se,We);case 120:return Lv(X,Se,We);case 156:return jv(X,Se,We);case 94:return sg(X,Se,We);case 162:case 144:case 145:return vT(X,Se,We);case 102:return tn(X,Se,We);case 95:switch(we(),q()){case 90:case 64:return og(X,Se,We);case 130:return bT(X,Se,We);default:return Cj(X,Se,We)}default:if(We){let wt=fo(282,!0,p.Declaration_expected);return IA(wt,X),wt.modifiers=We,wt}return}}function MC(){return we()===11}function I1(){return we(),q()===161||q()===64}function RC(){return we(),!t.hasPrecedingLineBreak()&&(kr()||q()===11)}function hT(X,Se){if(q()!==19){if(X&4){bn();return}if(ms()){Ba();return}}return Fv(X,Se)}function Jg(){let X=j();if(q()===28)return Ht(m.createOmittedExpression(),X);let Se=bs(26),We=Va(),wt=Nh();return Ht(m.createBindingElement(Se,void 0,We,wt),X)}function Nf(){let X=j(),Se=bs(26),We=Sr(),wt=Br(),Yt;We&&q()!==59?(Yt=wt,wt=void 0):(tr(59),Yt=Va());let wr=Nh();return Ht(m.createBindingElement(Se,wt,Yt,wr),X)}function Bh(){let X=j();tr(19);let Se=xr(()=>o_(9,Nf));return tr(20),Ht(m.createObjectBindingPattern(Se),X)}function _x(){let X=j();tr(23);let Se=xr(()=>o_(10,Jg));return tr(24),Ht(m.createArrayBindingPattern(Se),X)}function D1(){return q()===19||q()===23||q()===81||Sr()}function Va(X){return q()===23?_x():q()===19?Bh():cu(X)}function In(){return Vf(!0)}function Vf(X){let Se=j(),We=Re(),wt=Va(p.Private_identifiers_are_not_allowed_in_variable_declarations),Yt;X&&wt.kind===80&&q()===54&&!t.hasPrecedingLineBreak()&&(Yt=Zo());let wr=wv(),Un=Kl(q())?void 0:Nh(),Ei=Ge(wt,Yt,wr,Un);return hn(Ht(Ei,Se),We)}function rf(X){let Se=j(),We=0;switch(q()){case 115:break;case 121:We|=1;break;case 87:We|=2;break;case 160:We|=4;break;case 135:w.assert(J_()),We|=6,we();break;default:w.fail()}we();let wt;if(q()===165&&Gt(FC))wt=Jf();else{let Yt=St();Zr(X),wt=o_(8,X?Vf:In),Zr(Yt)}return Ht(De(wt,We),Se)}function FC(){return bu()&&we()===22}function ob(X,Se,We){let wt=rf(!1);Ba();let Yt=ie(We,wt);return hn(Ht(Yt,X),Se)}function fx(X,Se,We){let wt=Ke(),Yt=Nm(We);tr(100);let wr=bs(42),Un=Yt&2048?rg():cu(),Ei=wr?1:0,fi=Yt&1024?2:0,mi=Gf();Yt&32&&Pi(!0);let es=zr(Ei|fi),ho=cr(59,!1),yo=hT(Ei|fi,p.or_expected);Pi(wt);let Ja=m.createFunctionDeclaration(We,wr,Un,mi,es,ho,yo);return hn(Ht(Ja,X),Se)}function OC(){if(q()===137)return tr(137);if(q()===11&&Gt(we)===21)return dr(()=>{let X=Rt();return X.text==="constructor"?X:void 0})}function LC(X,Se,We){return dr(()=>{if(OC()){let wt=Gf(),Yt=zr(0),wr=cr(59,!1),Un=hT(0,p.or_expected),Ei=m.createConstructorDeclaration(We,Yt,Un);return Ei.typeParameters=wt,Ei.type=wr,hn(Ht(Ei,X),Se)}})}function mp(X,Se,We,wt,Yt,wr,Un,Ei){let fi=wt?1:0,mi=pt(We,jA)?2:0,es=Gf(),ho=zr(fi|mi),yo=cr(59,!1),Ja=hT(fi|mi,Ei),Wp=m.createMethodDeclaration(We,wt,Yt,wr,es,ho,yo,Ja);return Wp.exclamationToken=Un,hn(Ht(Wp,X),Se)}function gp(X,Se,We,wt,Yt){let wr=!Yt&&!t.hasPrecedingLineBreak()?bs(54):void 0,Un=wv(),Ei=Rs(90112,Nh);qc(wt,Un,Ei);let fi=m.createPropertyDeclaration(We,wt,Yt||wr,Un,Ei);return hn(Ht(fi,X),Se)}function nf(X,Se,We){let wt=bs(42),Yt=Br(),wr=bs(58);return wt||q()===21||q()===30?mp(X,Se,We,wt,Yt,wr,void 0,p.or_expected):gp(X,Se,We,Yt,wr)}function cm(X,Se,We,wt,Yt){let wr=Br(),Un=Gf(),Ei=zr(0),fi=cr(59,!1),mi=hT(Yt),es=wt===177?m.createGetAccessorDeclaration(We,wr,Ei,fi,mi):m.createSetAccessorDeclaration(We,wr,Ei,mi);return es.typeParameters=Un,X_(es)&&(es.type=fi),hn(Ht(es,X),Se)}function Py(){let X;if(q()===60)return!0;for(;S0(q());){if(X=q(),LB(X))return!0;we()}if(q()===42||(Oe()&&(X=q(),we()),q()===23))return!0;if(X!==void 0){if(!F_(X)||X===153||X===139)return!0;switch(q()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return ms()}}return!1}function zh(X,Se,We){Qo(126);let wt=C(),Yt=hn(Ht(m.createClassStaticBlockDeclaration(wt),X),Se);return Yt.modifiers=We,Yt}function C(){let X=Fe(),Se=Ke();Zn(!1),Pi(!0);let We=ng(!1);return Zn(X),Pi(Se),We}function ue(){if(Ke()&&q()===135){let X=j(),Se=ec(p.Expression_expected);we();let We=Uf(X,Se,!0);return Bg(X,We)}return tg()}function xt(){let X=j();if(!xi(60))return;let Se=lt(ue);return Ht(m.createDecorator(Se),X)}function _r(X,Se,We){let wt=j(),Yt=q();if(q()===87&&Se){if(!dr(Ci))return}else{if(We&&q()===126&&Gt(GC))return;if(X&&q()===126)return;if(!Go())return}return Ht(E(Yt),wt)}function ai(X,Se,We){let wt=j(),Yt,wr,Un,Ei=!1,fi=!1,mi=!1;if(X&&q()===60)for(;wr=xt();)Yt=jr(Yt,wr);for(;Un=_r(Ei,Se,We);)Un.kind===126&&(Ei=!0),Yt=jr(Yt,Un),fi=!0;if(fi&&X&&q()===60)for(;wr=xt();)Yt=jr(Yt,wr),mi=!0;if(mi)for(;Un=_r(Ei,Se,We);)Un.kind===126&&(Ei=!0),Yt=jr(Yt,Un);return Yt&&La(Yt,wt)}function wi(){let X;if(q()===134){let Se=j();we();let We=Ht(E(134),Se);X=La([We],Se)}return X}function is(){let X=j(),Se=Re();if(q()===27)return we(),hn(Ht(m.createSemicolonClassElement(),X),Se);let We=ai(!0,!0,!0);if(q()===126&&Gt(GC))return zh(X,Se,We);if(Lr(139))return cm(X,Se,We,177,0);if(Lr(153))return cm(X,Se,We,178,0);if(q()===137||q()===11){let wt=LC(X,Se,We);if(wt)return wt}if(fs())return qi(X,Se,We);if(E_(q())||q()===11||q()===9||q()===10||q()===42||q()===23)if(pt(We,Ov)){for(let Yt of We)Yt.flags|=33554432;return oa(33554432,()=>nf(X,Se,We))}else return nf(X,Se,We);if(We){let wt=fo(80,!0,p.Declaration_expected);return gp(X,Se,We,wt,void 0)}return w.fail("Should not have attempted to parse class member declaration.")}function Ss(){let X=j(),Se=Re(),We=ai(!0);if(q()===86)return vc(X,Se,We,231);let wt=fo(282,!0,p.Expression_expected);return IA(wt,X),wt.modifiers=We,wt}function Ca(){return vc(j(),Re(),void 0,231)}function w_(X,Se,We){return vc(X,Se,We,263)}function vc(X,Se,We,wt){let Yt=Ke();tr(86);let wr=tc(),Un=Gf();pt(We,R2)&&Pi(!0);let Ei=I_(),fi;tr(19)?(fi=BC(),tr(20)):fi=Jf(),Pi(Yt);let mi=wt===263?m.createClassDeclaration(We,wr,Un,Ei,fi):m.createClassExpression(We,wr,Un,Ei,fi);return hn(Ht(mi,X),Se)}function tc(){return Sr()&&!jC()?wc(Sr()):void 0}function jC(){return q()===119&&Gt(up)}function I_(){if(WC())return Wo(22,ig)}function ig(){let X=j(),Se=q();w.assert(Se===96||Se===119),we();let We=o_(7,cb);return Ht(m.createHeritageClause(Se,We),X)}function cb(){let X=j(),Se=tg();if(Se.kind===233)return Se;let We=P1();return Ht(m.createExpressionWithTypeArguments(Se,We),X)}function P1(){return q()===30?re(20,bl,30,32):void 0}function WC(){return q()===96||q()===119}function BC(){return Wo(5,is)}function Lv(X,Se,We){tr(120);let wt=ec(),Yt=Gf(),wr=I_(),Un=Mg(),Ei=m.createInterfaceDeclaration(We,wt,Yt,wr,Un);return hn(Ht(Ei,X),Se)}function jv(X,Se,We){tr(156),t.hasPrecedingLineBreak()&&Vt(p.Line_break_not_permitted_here);let wt=ec(),Yt=Gf();tr(64);let wr=q()===141&&dr(SC)||bl();Ba();let Un=m.createTypeAliasDeclaration(We,wt,Yt,wr);return hn(Ht(Un,X),Se)}function yT(){let X=j(),Se=Re(),We=Br(),wt=xr(Nh);return hn(Ht(m.createEnumMember(We,wt),X),Se)}function sg(X,Se,We){tr(94);let wt=ec(),Yt;tr(19)?(Yt=st(()=>o_(6,yT)),tr(20)):Yt=Jf();let wr=m.createEnumDeclaration(We,wt,Yt);return hn(Ht(wr,X),Se)}function zC(){let X=j(),Se;return tr(19)?(Se=Wo(1,dd),tr(20)):Se=Jf(),Ht(m.createModuleBlock(Se),X)}function JC(X,Se,We,wt){let Yt=wt&32,wr=wt&8?Ic():ec(),Un=xi(25)?JC(j(),!1,void 0,8|Yt):zC(),Ei=m.createModuleDeclaration(We,wr,Un,wt);return hn(Ht(Ei,X),Se)}function iR(X,Se,We){let wt=0,Yt;q()===162?(Yt=ec(),wt|=2048):(Yt=Rt(),Yt.text=sl(Yt.text));let wr;q()===19?wr=zC():Ba();let Un=m.createModuleDeclaration(We,Yt,wr,wt);return hn(Ht(Un,X),Se)}function vT(X,Se,We){let wt=0;if(q()===162)return iR(X,Se,We);if(xi(145))wt|=32;else if(tr(144),q()===11)return iR(X,Se,We);return JC(X,Se,We,wt)}function sR(){return q()===149&&Gt(nN)}function nN(){return we()===21}function GC(){return we()===19}function Qi(){return we()===44}function bT(X,Se,We){tr(130),tr(145);let wt=ec();Ba();let Yt=m.createNamespaceExportDeclaration(wt);return Yt.modifiers=We,hn(Ht(Yt,X),Se)}function tn(X,Se,We){tr(102);let wt=t.getTokenFullStart(),Yt;kr()&&(Yt=ec());let wr=!1;if(Yt?.escapedText==="type"&&(q()!==161||kr()&&Gt(I1))&&(kr()||aR())&&(wr=!0,Yt=kr()?ec():void 0),Yt&&!E1())return kj(X,Se,We,Yt,wr);let Un=A1(Yt,wt,wr),Ei=qC(),fi=UC();Ba();let mi=m.createImportDeclaration(We,Un,Ei,fi);return hn(Ht(mi,X),Se)}function A1(X,Se,We,wt=!1){let Yt;return(X||q()===42||q()===19)&&(Yt=N1(X,Se,We,wt),tr(161)),Yt}function UC(){let X=q();if((X===118||X===132)&&!t.hasPrecedingLineBreak())return VC(X)}function xD(){let X=j(),Se=E_(q())?Ic():Zi(11);tr(59);let We=tf(!0);return Ht(m.createImportAttribute(Se,We),X)}function VC(X,Se){let We=j();Se||tr(X);let wt=t.getTokenStart();if(tr(19)){let Yt=t.hasPrecedingLineBreak(),wr=o_(24,xD,!0);if(!tr(20)){let Un=zo(Je);Un&&Un.code===p._0_expected.code&&Xs(Un,S2(se,_e,wt,1,p.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Ht(m.createImportAttributes(wr,Yt,X),We)}else{let Yt=La([],j(),void 0,!1);return Ht(m.createImportAttributes(Yt,!1,X),We)}}function aR(){return q()===42||q()===19}function E1(){return q()===28||q()===161}function kj(X,Se,We,wt,Yt){tr(64);let wr=xj();Ba();let Un=m.createImportEqualsDeclaration(We,Yt,wt,wr);return hn(Ht(Un,X),Se)}function N1(X,Se,We,wt){let Yt;return(!X||xi(28))&&(wt&&t.setSkipJsDocLeadingAsterisks(!0),Yt=q()===42?oR():M1(275),wt&&t.setSkipJsDocLeadingAsterisks(!1)),Ht(m.createImportClause(We,X,Yt),Se)}function xj(){return sR()?ST():at(!1)}function ST(){let X=j();tr(149),tr(21);let Se=qC();return tr(22),Ht(m.createExternalModuleReference(Se),X)}function qC(){if(q()===11){let X=Rt();return X.text=sl(X.text),X}else return lu()}function oR(){let X=j();tr(42),tr(130);let Se=ec();return Ht(m.createNamespaceImport(Se),X)}function CD(){return E_(q())||q()===11}function TT(X){return q()===11?Rt():X()}function M1(X){let Se=j(),We=X===275?m.createNamedImports(re(23,R1,19,20)):m.createNamedExports(re(23,Ay,19,20));return Ht(We,Se)}function Ay(){let X=Re();return hn(ag(281),X)}function R1(){return ag(276)}function ag(X){let Se=j(),We=F_(q())&&!kr(),wt=t.getTokenStart(),Yt=t.getTokenEnd(),wr=!1,Un,Ei=!0,fi=TT(Ic);if(fi.kind===80&&fi.escapedText==="type")if(q()===130){let ho=Ic();if(q()===130){let yo=Ic();CD()?(wr=!0,Un=ho,fi=TT(es),Ei=!1):(Un=fi,fi=yo,Ei=!1)}else CD()?(Un=fi,Ei=!1,fi=TT(es)):(wr=!0,fi=ho)}else CD()&&(wr=!0,fi=TT(es));Ei&&q()===130&&(Un=fi,tr(130),fi=TT(es)),X===276&&(fi.kind!==80?(Pe(ha(_e,fi.pos),fi.end,p.Identifier_expected),fi=$d(fo(80,!1),fi.pos,fi.pos)):We&&Pe(wt,Yt,p.Identifier_expected));let mi=X===276?m.createImportSpecifier(wr,Un,fi):m.createExportSpecifier(wr,Un,fi);return Ht(mi,Se);function es(){return We=F_(q())&&!kr(),wt=t.getTokenStart(),Yt=t.getTokenEnd(),Ic()}}function wD(X){return Ht(m.createNamespaceExport(TT(Ic)),X)}function Cj(X,Se,We){let wt=Ke();Pi(!0);let Yt,wr,Un,Ei=xi(156),fi=j();xi(42)?(xi(130)&&(Yt=wD(fi)),tr(161),wr=qC()):(Yt=M1(279),(q()===161||q()===11&&!t.hasPrecedingLineBreak())&&(tr(161),wr=qC()));let mi=q();wr&&(mi===118||mi===132)&&!t.hasPrecedingLineBreak()&&(Un=VC(mi)),Ba(),Pi(wt);let es=m.createExportDeclaration(We,Ei,Yt,wr,Un);return hn(Ht(es,X),Se)}function og(X,Se,We){let wt=Ke();Pi(!0);let Yt;xi(64)?Yt=!0:tr(90);let wr=tf(!0);Ba(),Pi(wt);let Un=m.createExportAssignment(We,Yt,wr);return hn(Ht(Un,X),Se)}let F1;(X=>{X[X.SourceElements=0]="SourceElements",X[X.BlockStatements=1]="BlockStatements",X[X.SwitchClauses=2]="SwitchClauses",X[X.SwitchClauseStatements=3]="SwitchClauseStatements",X[X.TypeMembers=4]="TypeMembers",X[X.ClassMembers=5]="ClassMembers",X[X.EnumMembers=6]="EnumMembers",X[X.HeritageClauseElement=7]="HeritageClauseElement",X[X.VariableDeclarations=8]="VariableDeclarations",X[X.ObjectBindingElements=9]="ObjectBindingElements",X[X.ArrayBindingElements=10]="ArrayBindingElements",X[X.ArgumentExpressions=11]="ArgumentExpressions",X[X.ObjectLiteralMembers=12]="ObjectLiteralMembers",X[X.JsxAttributes=13]="JsxAttributes",X[X.JsxChildren=14]="JsxChildren",X[X.ArrayLiteralMembers=15]="ArrayLiteralMembers",X[X.Parameters=16]="Parameters",X[X.JSDocParameters=17]="JSDocParameters",X[X.RestProperties=18]="RestProperties",X[X.TypeParameters=19]="TypeParameters",X[X.TypeArguments=20]="TypeArguments",X[X.TupleElementTypes=21]="TupleElementTypes",X[X.HeritageClauses=22]="HeritageClauses",X[X.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",X[X.ImportAttributes=24]="ImportAttributes",X[X.JSDocComment=25]="JSDocComment",X[X.Count=26]="Count"})(F1||(F1={}));let iN;(X=>{X[X.False=0]="False",X[X.True=1]="True",X[X.Unknown=2]="Unknown"})(iN||(iN={}));let ol;(X=>{function Se(mi,es,ho){At("file.js",mi,99,void 0,1,0),t.setText(mi,es,ho),Ie=t.scan();let yo=We(),Ja=ht("file.js",99,1,!1,[],E(1),0,to),Wp=T2(Je,Ja);return ee&&(Ja.jsDocDiagnostics=T2(ee,Ja)),zn(),yo?{jsDocTypeExpression:yo,diagnostics:Wp}:void 0}X.parseJSDocTypeExpressionForTests=Se;function We(mi){let es=j(),ho=(mi?xi:tr)(19),yo=oa(16777216,Xm);(!mi||ho)&&uc(20);let Ja=m.createJSDocTypeExpression(yo);return Ue(Ja),Ht(Ja,es)}X.parseJSDocTypeExpression=We;function wt(){let mi=j(),es=xi(19),ho=j(),yo=at(!1);for(;q()===81;)Tt(),ut(),yo=Ht(m.createJSDocMemberName(yo,ec()),ho);es&&uc(20);let Ja=m.createJSDocNameReference(yo);return Ue(Ja),Ht(Ja,mi)}X.parseJSDocNameReference=wt;function Yt(mi,es,ho){At("",mi,99,void 0,1,0);let yo=oa(16777216,()=>fi(es,ho)),Wp=T2(Je,{languageVariant:0,text:mi});return zn(),yo?{jsDoc:yo,diagnostics:Wp}:void 0}X.parseIsolatedJSDocComment=Yt;function wr(mi,es,ho){let yo=Ie,Ja=Je.length,Wp=$t,Gg=oa(16777216,()=>fi(es,ho));return Xa(Gg,mi),Or&524288&&(ee||(ee=[]),jn(ee,Je,Ja)),Ie=yo,Je.length=Ja,$t=Wp,Gg}X.parseJSDocComment=wr;let Un;(mi=>{mi[mi.BeginningOfLine=0]="BeginningOfLine",mi[mi.SawAsterisk=1]="SawAsterisk",mi[mi.SavingComments=2]="SavingComments",mi[mi.SavingBackticks=3]="SavingBackticks"})(Un||(Un={}));let Ei;(mi=>{mi[mi.Property=1]="Property",mi[mi.Parameter=2]="Parameter",mi[mi.CallbackParameter=4]="CallbackParameter"})(Ei||(Ei={}));function fi(mi=0,es){let ho=_e,yo=es===void 0?ho.length:mi+es;if(es=yo-mi,w.assert(mi>=0),w.assert(mi<=yo),w.assert(yo<=ho.length),!MG(ho,mi))return;let Ja,Wp,Gg,md,Yl,lm=[],lb=[],cR=zt;zt|=1<<25;let qa=t.scanRange(mi+3,es-5,Dl);return zt=cR,qa;function Dl(){let Wr=1,Fn,Jn=mi-(ho.lastIndexOf(`
`,mi)+1)+4;function vi(Qa){Fn||(Fn=Jn),lm.push(Qa),Jn+=Qa.length}for(ut();Bv(5););Bv(4)&&(Wr=0,Jn=0);e:for(;;){switch(q()){case 60:$C(lm),Yl||(Yl=j()),os(mn(Jn)),Wr=0,Fn=void 0;break;case 4:lm.push(t.getTokenText()),Wr=0,Jn=0;break;case 42:let Qa=t.getTokenText();Wr===1?(Wr=2,vi(Qa)):(w.assert(Wr===0),Wr=1,Jn+=Qa.length);break;case 5:w.assert(Wr!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let Nu=t.getTokenText();Fn!==void 0&&Jn+Nu.length>Fn&&lm.push(Nu.slice(Fn-Jn)),Jn+=Nu.length;break;case 1:break e;case 82:Wr=2,vi(t.getTokenValue());break;case 19:Wr=2;let lg=t.getTokenFullStart(),Pl=t.getTokenEnd()-1,_m=z(Pl);if(_m){md||ub(lm),lb.push(Ht(m.createJSDocText(lm.join("")),md??mi,lg)),lb.push(_m),lm=[],md=t.getTokenEnd();break}default:Wr=2,vi(t.getTokenText());break}Wr===2?Qt(!1):ut()}let Si=lm.join("").trimEnd();lb.length&&Si.length&&lb.push(Ht(m.createJSDocText(Si),md??mi,Yl)),lb.length&&Ja&&w.assertIsDefined(Yl,"having parsed tags implies that the end of the comment span should be set");let $a=Ja&&La(Ja,Wp,Gg);return Ht(m.createJSDocComment(lb.length?La(lb,mi,Yl):Si.length?Si:void 0,$a),mi,yo)}function ub(Wr){for(;Wr.length&&(Wr[0]===`
`||Wr[0]==="\r");)Wr.shift()}function $C(Wr){for(;Wr.length;){let Fn=Wr[Wr.length-1].trimEnd();if(Fn==="")Wr.pop();else if(Fn.length<Wr[Wr.length-1].length){Wr[Wr.length-1]=Fn;break}else break}}function ID(){for(;;){if(ut(),q()===1)return!0;if(!(q()===5||q()===4))return!1}}function G_(){if(!((q()===5||q()===4)&&Gt(ID)))for(;q()===5||q()===4;)ut()}function _b(){if((q()===5||q()===4)&&Gt(ID))return"";let Wr=t.hasPrecedingLineBreak(),Fn=!1,Jn="";for(;Wr&&q()===42||q()===5||q()===4;)Jn+=t.getTokenText(),q()===4?(Wr=!0,Fn=!0,Jn=""):q()===42&&(Wr=!1),ut();return Fn?Jn:""}function mn(Wr){w.assert(q()===60);let Fn=t.getTokenStart();ut();let Jn=Md(void 0),vi=_b(),Si;switch(Jn.escapedText){case"author":Si=px(Fn,Jn,Wr,vi);break;case"implements":Si=Hde(Fn,Jn,Wr,vi);break;case"augments":case"extends":Si=Qde(Fn,Jn,Wr,vi);break;case"class":case"constructor":Si=QC(Fn,m.createJSDocClassTag,Jn,Wr,vi);break;case"public":Si=QC(Fn,m.createJSDocPublicTag,Jn,Wr,vi);break;case"private":Si=QC(Fn,m.createJSDocPrivateTag,Jn,Wr,vi);break;case"protected":Si=QC(Fn,m.createJSDocProtectedTag,Jn,Wr,vi);break;case"readonly":Si=QC(Fn,m.createJSDocReadonlyTag,Jn,Wr,vi);break;case"override":Si=QC(Fn,m.createJSDocOverrideTag,Jn,Wr,vi);break;case"deprecated":Rn=!0,Si=QC(Fn,m.createJSDocDeprecatedTag,Jn,Wr,vi);break;case"this":Si=Ij(Fn,Jn,Wr,vi);break;case"enum":Si=Kde(Fn,Jn,Wr,vi);break;case"arg":case"argument":case"param":return Ug(Fn,Jn,2,Wr);case"return":case"returns":Si=O1(Fn,Jn,Wr,vi);break;case"template":Si=uR(Fn,Jn,Wr,vi);break;case"type":Si=FQ(Fn,Jn,Wr,vi);break;case"typedef":Si=Xde(Fn,Jn,Wr,vi);break;case"callback":Si=Yde(Fn,Jn,Wr,vi);break;case"overload":Si=Wv(Fn,Jn,Wr,vi);break;case"satisfies":Si=aN(Fn,Jn,Wr,vi);break;case"see":Si=qde(Fn,Jn,Wr,vi);break;case"exception":case"throws":Si=$de(Fn,Jn,Wr,vi);break;case"import":Si=OQ(Fn,Jn,Wr,vi);break;default:Si=kn(Fn,Jn,Wr,vi);break}return Si}function v(Wr,Fn,Jn,vi){return vi||(Jn+=Fn-Wr),P(Jn,vi.slice(Jn))}function P(Wr,Fn){let Jn=j(),vi=[],Si=[],$a,Qa=0,Nu;function lg(zv){Nu||(Nu=Wr),vi.push(zv),Wr+=zv.length}Fn!==void 0&&(Fn!==""&&lg(Fn),Qa=1);let Pl=q();e:for(;;){switch(Pl){case 4:Qa=0,vi.push(t.getTokenText()),Wr=0;break;case 60:t.resetTokenState(t.getTokenEnd()-1);break e;case 1:break e;case 5:w.assert(Qa!==2&&Qa!==3,"whitespace shouldn't come from the scanner while saving comment text");let zv=t.getTokenText();Nu!==void 0&&Wr+zv.length>Nu&&(vi.push(zv.slice(Nu-Wr)),Qa=2),Wr+=zv.length;break;case 19:Qa=2;let _R=t.getTokenFullStart(),L1=t.getTokenEnd()-1,fR=z(L1);fR?(Si.push(Ht(m.createJSDocText(vi.join("")),$a??Jn,_R)),Si.push(fR),vi=[],$a=t.getTokenEnd()):lg(t.getTokenText());break;case 62:Qa===3?Qa=2:Qa=3,lg(t.getTokenText());break;case 82:Qa!==3&&(Qa=2),lg(t.getTokenValue());break;case 42:if(Qa===0){Qa=1,Wr+=1;break}default:Qa!==3&&(Qa=2),lg(t.getTokenText());break}Qa===2||Qa===3?Pl=Qt(Qa===3):Pl=ut()}ub(vi);let _m=vi.join("").trimEnd();if(Si.length)return _m.length&&Si.push(Ht(m.createJSDocText(_m),$a??Jn)),La(Si,Jn,t.getTokenEnd());if(_m.length)return _m}function z(Wr){let Fn=dr(He);if(!Fn)return;ut(),G_();let Jn=fe(),vi=[];for(;q()!==20&&q()!==4&&q()!==1;)vi.push(t.getTokenText()),ut();let Si=Fn==="link"?m.createJSDocLink:Fn==="linkcode"?m.createJSDocLinkCode:m.createJSDocLinkPlain;return Ht(Si(Jn,vi.join("")),Wr,t.getTokenEnd())}function fe(){if(E_(q())){let Wr=j(),Fn=Ic();for(;xi(25);)Fn=Ht(m.createQualifiedName(Fn,q()===81?fo(80,!1):Ic()),Wr);for(;q()===81;)Tt(),ut(),Fn=Ht(m.createJSDocMemberName(Fn,ec()),Wr);return Fn}}function He(){if(_b(),q()===19&&ut()===60&&E_(ut())){let Wr=t.getTokenValue();if(Zt(Wr))return Wr}}function Zt(Wr){return Wr==="link"||Wr==="linkcode"||Wr==="linkplain"}function kn(Wr,Fn,Jn,vi){return Ht(m.createJSDocUnknownTag(Fn,v(Wr,j(),Jn,vi)),Wr)}function os(Wr){Wr&&(Ja?Ja.push(Wr):(Ja=[Wr],Wp=Wr.pos),Gg=Wr.end)}function no(){return _b(),q()===19?We():void 0}function um(){let Wr=Bv(23);Wr&&G_();let Fn=Bv(62),Jn=LQ();return Fn&&Oa(62),Wr&&(G_(),bs(64)&&lu(),tr(24)),{name:Jn,isBracketed:Wr}}function Jh(Wr){switch(Wr.kind){case 151:return!0;case 188:return Jh(Wr.elementType);default:return yf(Wr)&&je(Wr.typeName)&&Wr.typeName.escapedText==="Object"&&!Wr.typeArguments}}function Ug(Wr,Fn,Jn,vi){let Si=no(),$a=!Si;_b();let{name:Qa,isBracketed:Nu}=um(),lg=_b();$a&&!Gt(He)&&(Si=no());let Pl=v(Wr,j(),vi,lg),_m=HC(Si,Qa,Jn,vi);_m&&(Si=_m,$a=!0);let zv=Jn===1?m.createJSDocPropertyTag(Fn,Qa,Nu,Si,$a,Pl):m.createJSDocParameterTag(Fn,Qa,Nu,Si,$a,Pl);return Ht(zv,Wr)}function HC(Wr,Fn,Jn,vi){if(Wr&&Jh(Wr.type)){let Si=j(),$a,Qa;for(;$a=dr(()=>lR(Jn,vi,Fn));)$a.kind===341||$a.kind===348?Qa=jr(Qa,$a):$a.kind===345&&kt($a.tagName,p.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Qa){let Nu=Ht(m.createJSDocTypeLiteral(Qa,Wr.type.kind===188),Si);return Ht(m.createJSDocTypeExpression(Nu),Si)}}}function O1(Wr,Fn,Jn,vi){pt(Ja,p7)&&Pe(Fn.pos,t.getTokenStart(),p._0_tag_already_specified,Li(Fn.escapedText));let Si=no();return Ht(m.createJSDocReturnTag(Fn,Si,v(Wr,j(),Jn,vi)),Wr)}function FQ(Wr,Fn,Jn,vi){pt(Ja,HA)&&Pe(Fn.pos,t.getTokenStart(),p._0_tag_already_specified,Li(Fn.escapedText));let Si=We(!0),$a=Jn!==void 0&&vi!==void 0?v(Wr,j(),Jn,vi):void 0;return Ht(m.createJSDocTypeTag(Fn,Si,$a),Wr)}function qde(Wr,Fn,Jn,vi){let $a=q()===23||Gt(()=>ut()===60&&E_(ut())&&Zt(t.getTokenValue()))?void 0:wt(),Qa=Jn!==void 0&&vi!==void 0?v(Wr,j(),Jn,vi):void 0;return Ht(m.createJSDocSeeTag(Fn,$a,Qa),Wr)}function $de(Wr,Fn,Jn,vi){let Si=no(),$a=v(Wr,j(),Jn,vi);return Ht(m.createJSDocThrowsTag(Fn,Si,$a),Wr)}function px(Wr,Fn,Jn,vi){let Si=j(),$a=sN(),Qa=t.getTokenFullStart(),Nu=v(Wr,Qa,Jn,vi);Nu||(Qa=t.getTokenFullStart());let lg=typeof Nu!="string"?La(Ki([Ht($a,Si,Qa)],Nu),Si):$a.text+Nu;return Ht(m.createJSDocAuthorTag(Fn,lg),Wr)}function sN(){let Wr=[],Fn=!1,Jn=t.getToken();for(;Jn!==1&&Jn!==4;){if(Jn===30)Fn=!0;else{if(Jn===60&&!Fn)break;if(Jn===32&&Fn){Wr.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}Wr.push(t.getTokenText()),Jn=ut()}return m.createJSDocText(Wr.join(""))}function Hde(Wr,Fn,Jn,vi){let Si=wj();return Ht(m.createJSDocImplementsTag(Fn,Si,v(Wr,j(),Jn,vi)),Wr)}function Qde(Wr,Fn,Jn,vi){let Si=wj();return Ht(m.createJSDocAugmentsTag(Fn,Si,v(Wr,j(),Jn,vi)),Wr)}function aN(Wr,Fn,Jn,vi){let Si=We(!1),$a=Jn!==void 0&&vi!==void 0?v(Wr,j(),Jn,vi):void 0;return Ht(m.createJSDocSatisfiesTag(Fn,Si,$a),Wr)}function OQ(Wr,Fn,Jn,vi){let Si=t.getTokenFullStart(),$a;kr()&&($a=ec());let Qa=A1($a,Si,!0,!0),Nu=qC(),lg=UC(),Pl=Jn!==void 0&&vi!==void 0?v(Wr,j(),Jn,vi):void 0;return Ht(m.createJSDocImportTag(Fn,Qa,Nu,lg,Pl),Wr)}function wj(){let Wr=xi(19),Fn=j(),Jn=oN();t.setSkipJsDocLeadingAsterisks(!0);let vi=P1();t.setSkipJsDocLeadingAsterisks(!1);let Si=m.createExpressionWithTypeArguments(Jn,vi),$a=Ht(Si,Fn);return Wr&&(G_(),tr(20)),$a}function oN(){let Wr=j(),Fn=Md();for(;xi(25);){let Jn=Md();Fn=Ht(B(Fn,Jn),Wr)}return Fn}function QC(Wr,Fn,Jn,vi,Si){return Ht(Fn(Jn,v(Wr,j(),vi,Si)),Wr)}function Ij(Wr,Fn,Jn,vi){let Si=We(!0);return G_(),Ht(m.createJSDocThisTag(Fn,Si,v(Wr,j(),Jn,vi)),Wr)}function Kde(Wr,Fn,Jn,vi){let Si=We(!0);return G_(),Ht(m.createJSDocEnumTag(Fn,Si,v(Wr,j(),Jn,vi)),Wr)}function Xde(Wr,Fn,Jn,vi){let Si=no();_b();let $a=Dj();G_();let Qa=P(Jn),Nu;if(!Si||Jh(Si.type)){let Pl,_m,zv,_R=!1;for(;(Pl=dr(()=>fb(Jn)))&&Pl.kind!==345;)if(_R=!0,Pl.kind===344)if(_m){let L1=Vt(p.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);L1&&Xs(L1,S2(se,_e,0,0,p.The_tag_was_first_specified_here));break}else _m=Pl;else zv=jr(zv,Pl);if(_R){let L1=Si&&Si.type.kind===188,fR=m.createJSDocTypeLiteral(zv,L1);Si=_m&&_m.typeExpression&&!Jh(_m.typeExpression.type)?_m.typeExpression:Ht(fR,Wr),Nu=Si.end}}Nu=Nu||Qa!==void 0?j():($a??Si??Fn).end,Qa||(Qa=v(Wr,Nu,Jn,vi));let lg=m.createJSDocTypedefTag(Fn,Si,$a,Qa);return Ht(lg,Wr,Nu)}function Dj(Wr){let Fn=t.getTokenStart();if(!E_(q()))return;let Jn=Md();if(xi(25)){let vi=Dj(!0),Si=m.createModuleDeclaration(void 0,Jn,vi,Wr?8:void 0);return Ht(Si,Fn)}return Wr&&(Jn.flags|=4096),Jn}function DD(Wr){let Fn=j(),Jn,vi;for(;Jn=dr(()=>lR(4,Wr));){if(Jn.kind===345){kt(Jn.tagName,p.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}vi=jr(vi,Jn)}return La(vi||[],Fn)}function Pj(Wr,Fn){let Jn=DD(Fn),vi=dr(()=>{if(Bv(60)){let Si=mn(Fn);if(Si&&Si.kind===342)return Si}});return Ht(m.createJSDocSignature(void 0,Jn,vi),Wr)}function Yde(Wr,Fn,Jn,vi){let Si=Dj();G_();let $a=P(Jn),Qa=Pj(Wr,Jn);$a||($a=v(Wr,j(),Jn,vi));let Nu=$a!==void 0?j():Qa.end;return Ht(m.createJSDocCallbackTag(Fn,Qa,Si,$a),Wr,Nu)}function Wv(Wr,Fn,Jn,vi){G_();let Si=P(Jn),$a=Pj(Wr,Jn);Si||(Si=v(Wr,j(),Jn,vi));let Qa=Si!==void 0?j():$a.end;return Ht(m.createJSDocOverloadTag(Fn,$a,Si),Wr,Qa)}function an(Wr,Fn){for(;!je(Wr)||!je(Fn);)if(!je(Wr)&&!je(Fn)&&Wr.right.escapedText===Fn.right.escapedText)Wr=Wr.left,Fn=Fn.left;else return!1;return Wr.escapedText===Fn.escapedText}function fb(Wr){return lR(1,Wr)}function lR(Wr,Fn,Jn){let vi=!0,Si=!1;for(;;)switch(ut()){case 60:if(vi){let $a=cg(Wr,Fn);return $a&&($a.kind===341||$a.kind===348)&&Jn&&(je($a.name)||!an(Jn,$a.name.left))?!1:$a}Si=!1;break;case 4:vi=!0,Si=!1;break;case 42:Si&&(vi=!1),Si=!0;break;case 80:vi=!1;break;case 1:return!1}}function cg(Wr,Fn){w.assert(q()===60);let Jn=t.getTokenFullStart();ut();let vi=Md(),Si=_b(),$a;switch(vi.escapedText){case"type":return Wr===1&&FQ(Jn,vi);case"prop":case"property":$a=1;break;case"arg":case"argument":case"param":$a=6;break;case"template":return uR(Jn,vi,Fn,Si);case"this":return Ij(Jn,vi,Fn,Si);default:return!1}return Wr&$a?Ug(Jn,vi,Wr,Fn):!1}function PD(){let Wr=j(),Fn=Bv(23);Fn&&G_();let Jn=ai(!1,!0),vi=Md(p.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),Si;if(Fn&&(G_(),tr(64),Si=oa(16777216,Xm),tr(24)),!Tc(vi))return Ht(m.createTypeParameterDeclaration(Jn,vi,void 0,Si),Wr)}function AD(){let Wr=j(),Fn=[];do{G_();let Jn=PD();Jn!==void 0&&Fn.push(Jn),_b()}while(Bv(28));return La(Fn,Wr)}function uR(Wr,Fn,Jn,vi){let Si=q()===19?We():void 0,$a=AD();return Ht(m.createJSDocTemplateTag(Fn,Si,$a,v(Wr,j(),Jn,vi)),Wr)}function Bv(Wr){return q()===Wr?(ut(),!0):!1}function LQ(){let Wr=Md();for(xi(23)&&tr(24);xi(25);){let Fn=Md();xi(23)&&tr(24),Wr=Kt(Wr,Fn)}return Wr}function Md(Wr){if(!E_(q()))return fo(80,!Wr,Wr||p.Identifier_expected);bt++;let Fn=t.getTokenStart(),Jn=t.getTokenEnd(),vi=q(),Si=sl(t.getTokenValue()),$a=Ht(I(Si,vi),Fn,Jn);return ut(),$a}}})(ol=e.JSDocParser||(e.JSDocParser={}))})(Zb||(Zb={}));var Zbe=new WeakSet;function ize(e){Zbe.has(e)&&w.fail("Source file has already been incrementally parsed"),Zbe.add(e)}var e1e=new WeakSet;function sze(e){return e1e.has(e)}function Vie(e){e1e.add(e)}var FG;(e=>{function t(T,x,I,D){if(D=D||w.shouldAssert(2),m(T,x,I,D),kee(I))return T;if(T.statements.length===0)return Zb.parseSourceFile(T.fileName,x,T.languageVersion,void 0,!0,T.scriptKind,T.setExternalModuleIndicator,T.jsDocParsingMode);ize(T),Zb.fixupParentReferences(T);let E=T.text,O=h(T),F=u(T,I);m(T,x,F,D),w.assert(F.span.start<=I.span.start),w.assert(mc(F.span)===mc(I.span)),w.assert(mc(NP(F))===mc(NP(I)));let B=NP(F).length-F.span.length;_(T,F.span.start,mc(F.span),mc(NP(F)),B,E,x,D);let G=Zb.parseSourceFile(T.fileName,x,T.languageVersion,O,!0,T.scriptKind,T.setExternalModuleIndicator,T.jsDocParsingMode);return G.commentDirectives=n(T.commentDirectives,G.commentDirectives,F.span.start,mc(F.span),B,E,x,D),G.impliedNodeFormat=T.impliedNodeFormat,Sie(T,G),G}e.updateSourceFile=t;function n(T,x,I,D,E,O,F,B){if(!T)return x;let G,$=!1;for(let U of T){let{range:me,type:te}=U;if(me.end<I)G=jr(G,U);else if(me.pos>D){K();let V={range:{pos:me.pos+E,end:me.end+E},type:te};G=jr(G,V),B&&w.assert(O.substring(me.pos,me.end)===F.substring(V.range.pos,V.range.end))}}return K(),G;function K(){$||($=!0,G?x&&G.push(...x):G=x)}}function i(T,x,I,D,E,O,F){I?G(T):B(T);return;function B($){let K="";if(F&&s($)&&(K=E.substring($.pos,$.end)),bG($,x),$d($,$.pos+D,$.end+D),F&&s($)&&w.assert(K===O.substring($.pos,$.end)),Es($,B,G),Lf($))for(let U of $.jsDoc)B(U);c($,F)}function G($){$d($,$.pos+D,$.end+D);for(let K of $)B(K)}}function s(T){switch(T.kind){case 11:case 9:case 80:return!0}return!1}function o(T,x,I,D,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 O=Math.min(T.pos,D),F=T.end>=I?T.end+E:Math.min(T.end,D);if(w.assert(O<=F),T.parent){let B=T.parent;w.assertGreaterThanOrEqual(O,B.pos),w.assertLessThanOrEqual(F,B.end)}$d(T,O,F)}function c(T,x){if(x){let I=T.pos,D=E=>{w.assert(E.pos>=I),I=E.end};if(Lf(T))for(let E of T.jsDoc)D(E);Es(T,D),w.assert(I<=T.end)}}function _(T,x,I,D,E,O,F,B){G(T);return;function G(K){if(w.assert(K.pos<=K.end),K.pos>I){i(K,T,!1,E,O,F,B);return}let U=K.end;if(U>=x){if(Vie(K),bG(K,T),o(K,x,I,D,E),Es(K,G,$),Lf(K))for(let me of K.jsDoc)G(me);c(K,B);return}w.assert(U<x)}function $(K){if(w.assert(K.pos<=K.end),K.pos>I){i(K,T,!0,E,O,F,B);return}let U=K.end;if(U>=x){Vie(K),o(K,x,I,D,E);for(let me of K)G(me);return}w.assert(U<x)}}function u(T,x){let D=x.span.start;for(let F=0;D>0&&F<=1;F++){let B=g(T,D);w.assert(B.pos<=D);let G=B.pos;D=Math.max(0,G-1)}let E=Uc(D,mc(x.span)),O=x.newLength+(x.span.start-D);return d6(E,O)}function g(T,x){let I=T,D;if(Es(T,O),D){let F=E(D);F.pos>I.pos&&(I=F)}return I;function E(F){for(;;){let B=_J(F);if(B)F=B;else return F}}function O(F){if(!Tc(F))if(F.pos<=x){if(F.pos>=I.pos&&(I=F),x<F.end)return Es(F,O),!0;w.assert(F.end<=x),D=F}else return w.assert(F.pos>x),!0}}function m(T,x,I,D){let E=T.text;if(I&&(w.assert(E.length-I.span.length+I.newLength===x.length),D||w.shouldAssert(3))){let O=E.substr(0,I.span.start),F=x.substr(0,I.span.start);w.assert(O===F);let B=E.substring(mc(I.span),E.length),G=x.substring(mc(NP(I)),x.length);w.assert(B===G)}}function h(T){let x=T.statements,I=0;w.assert(I<x.length);let D=x[I],E=-1;return{currentNode(F){return F!==E&&(D&&D.end===F&&I<x.length-1&&(I++,D=x[I]),(!D||D.pos!==F)&&O(F)),E=F,w.assert(!D||D.pos===F),D}};function O(F){x=void 0,I=-1,D=void 0,Es(T,B,G);return;function B($){return F>=$.pos&&F<$.end?(Es($,B,G),!0):!1}function G($){if(F>=$.pos&&F<$.end)for(let K=0;K<$.length;K++){let U=$[K];if(U){if(U.pos===F)return x=$,I=K,D=U,!0;if(U.pos<F&&F<U.end)return Es(U,B,G),!0}}return!1}}}e.createSyntaxCursor=h;let S;(T=>{T[T.Value=-1]="Value"})(S||(S={}))})(FG||(FG={}));function Ll(e){return x7(e)!==void 0}function x7(e){let t=qx(e,MO,!1);if(t)return t;if(nc(e,".ts")){let n=fl(e),i=n.lastIndexOf(".d.");if(i>=0)return n.substring(i)}}function aze(e,t,n,i){if(e){if(e==="import")return 99;if(e==="require")return 1;i(t,n-t,p.resolution_mode_should_be_either_require_or_import)}}function OG(e,t){let n=[];for(let i of sh(t,0)||qe){let s=t.substring(i.pos,i.end);uze(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 LG(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(Jx(n),_=>{let{types:u,lib:g,path:m,["resolution-mode"]:h,preserve:S}=_.arguments,T=S==="true"?!0:void 0;if(_.arguments["no-default-lib"]==="true")e.hasNoDefaultLib=!0;else if(u){let x=aze(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}:{}}):m?s.push({pos:m.pos,end:m.end,fileName:m.value,...T?{preserve:T}:{}}):t(_.range.pos,_.range.end-_.range.pos,p.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=hr(Jx(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,p.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(Jx(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 qie=new Map;function oze(e){if(qie.has(e))return qie.get(e);let t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return qie.set(e,t),t}var cze=/^\/\/\/\s*<(\S+)\s.*?\/>/m,lze=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function uze(e,t,n){let i=t.kind===2&&cze.exec(n);if(i){let o=i[1].toLowerCase(),c=F8[o];if(!c||!(c.kind&1))return;if(c.args){let _={};for(let u of c.args){let m=oze(u.name).exec(n);if(!m&&!u.optional)return;if(m){let h=m[2]||m[3];if(u.captureSpan){let S=t.pos+m.index+m[1].length+1;_[u.name]={value:h,pos:S,end:S+h.length}}else _[u.name]=h}}e.push({name:o,args:{arguments:_,range:t}})}else e.push({name:o,args:{arguments:{},range:t}});return}let s=t.kind===2&&lze.exec(n);if(s)return t1e(e,t,2,s);if(t.kind===3){let o=/@(\S+)(\s+(?:\S.*)?)?$/gm,c;for(;c=o.exec(n);)t1e(e,t,4,c)}}function t1e(e,t,n,i){if(!i)return;let s=i[1].toLowerCase(),o=F8[s];if(!o||!(o.kind&n))return;let c=i[2],_=_ze(o,c);_!=="fail"&&e.push({name:s,args:{arguments:_,range:t}})}function _ze(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 e1(e,t){return e.kind!==t.kind?!1:e.kind===80?e.escapedText===t.escapedText:e.kind===110?!0:e.kind===295?e.namespace.escapedText===t.namespace.escapedText&&e.name.escapedText===t.name.escapedText:e.name.escapedText===t.name.escapedText&&e1(e.expression,t.expression)}var $ie={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},r1e=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),pM=new Map(_P(r1e.entries(),([e,t])=>[""+t,e])),n1e=[["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"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],C7=n1e.map(e=>e[0]),jG=new Map(n1e),Q2=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:p.Watch_and_Build_Modes,description:p.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:p.Watch_and_Build_Modes,description:p.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:p.Watch_and_Build_Modes,description:p.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:p.Watch_and_Build_Modes,description:p.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:mse},allowConfigDirTemplateSubstitution:!0,category:p.Watch_and_Build_Modes,description:p.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:mse},allowConfigDirTemplateSubstitution:!0,category:p.Watch_and_Build_Modes,description:p.Remove_a_list_of_files_from_the_watch_mode_s_processing}],w7=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:p.Command_line_Options,description:p.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:p.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:p.Command_line_Options,description:p.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:p.Output_Formatting,description:p.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:p.Compiler_Diagnostics,description:p.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:p.Compiler_Diagnostics,description:p.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:p.Compiler_Diagnostics,description:p.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:p.Output_Formatting,description:p.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:p.Compiler_Diagnostics,description:p.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:p.Compiler_Diagnostics,description:p.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:p.Compiler_Diagnostics,description:p.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:p.FILE_OR_DIRECTORY,category:p.Compiler_Diagnostics,description:p.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,paramType:p.DIRECTORY,category:p.Compiler_Diagnostics,description:p.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:p.Projects,description:p.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:p.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,transpileOptionValue:void 0,description:p.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:p.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,defaultValueDescription:!1,description:p.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,description:p.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,defaultValueDescription:!1,description:p.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:p.Emit,description:p.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"noCheck",type:"boolean",showInSimplifiedHelpView:!1,category:p.Compiler_Diagnostics,description:p.Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:p.Emit,description:p.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:p.Watch_and_Build_Modes,description:p.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:p.Command_line_Options,isCommandLineOnly:!0,description:p.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:p.Platform_specific}],WG={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:p.VERSION,showInSimplifiedHelpView:!0,category:p.Language_and_Environment,description:p.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},Hie={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,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:p.KIND,showInSimplifiedHelpView:!0,category:p.Modules,description:p.Specify_what_module_code_is_generated,defaultValueDescription:void 0},Qie=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:p.Command_line_Options,description:p.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:p.Command_line_Options,description:p.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:p.Command_line_Options,description:p.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:p.Command_line_Options,paramType:p.FILE_OR_DIRECTORY,description:p.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:p.Command_line_Options,isCommandLineOnly:!0,description:p.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:p.Command_line_Options,isCommandLineOnly:!0,description:p.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},WG,Hie,{name:"lib",type:"list",element:{name:"lib",type:jG,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:p.Language_and_Environment,description:p.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:p.JavaScript_Support,description:p.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:p.JavaScript_Support,description:p.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:r1e,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:p.KIND,showInSimplifiedHelpView:!0,category:p.Language_and_Environment,description:p.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:p.FILE,showInSimplifiedHelpView:!0,category:p.Emit,description:p.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:p.DIRECTORY,showInSimplifiedHelpView:!0,category:p.Emit,description:p.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:p.LOCATION,category:p.Modules,description:p.Specify_the_root_folder_within_your_source_files,defaultValueDescription:p.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:p.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:p.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:p.FILE,category:p.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:p.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,defaultValueDescription:!1,description:p.Disable_emitting_comments},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,affectsSourceFile:!0,category:p.Emit,description:p.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:p.Backwards_Compatibility,description:p.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:p.Interop_Constraints,description:p.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:p.Interop_Constraints,description:p.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:p.Interop_Constraints,description:p.Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:"erasableSyntaxOnly",type:"boolean",category:p.Interop_Constraints,description:p.Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:"libReplacement",type:"boolean",affectsProgramStructure:!0,category:p.Language_and_Environment,description:p.Enable_lib_replacement,defaultValueDescription:!0},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Type_Checking,description:p.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:p.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:p.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:p.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:p.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:p.false_unless_strict_is_set},{name:"strictBuiltinIteratorReturn",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any,defaultValueDescription:p.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:p.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:p.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Ensure_use_strict_is_always_emitted,defaultValueDescription:p.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.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:p.Type_Checking,description:p.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.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:p.Type_Checking,description:p.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:p.STRATEGY,category:p.Modules,description:p.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:p.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:p.Modules,description:p.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,isTSConfigOnly:!0,category:p.Modules,description:p.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:p.Modules,description:p.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:p.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:p.Modules,description:p.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:p.Modules,description:p.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:p.Interop_Constraints,description:p.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:p.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Interop_Constraints,description:p.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:p.Interop_Constraints,description:p.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:p.Modules,description:p.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:p.Modules,description:p.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Modules,description:p.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:p.Modules,description:p.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:p.Modules,description:p.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:p.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:p.Modules,description:p.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:p.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:p.Modules,description:p.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"noUncheckedSideEffectImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Modules,description:p.Check_side_effect_imports,defaultValueDescription:!1},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:p.LOCATION,category:p.Emit,description:p.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:p.LOCATION,category:p.Emit,description:p.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Language_and_Environment,description:p.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:p.Language_and_Environment,description:p.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:p.Language_and_Environment,description:p.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:p.Language_and_Environment,description:p.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:p.Language_and_Environment,description:p.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:p.Modules,description:p.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:p.Modules,description:p.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:p.Backwards_Compatibility,paramType:p.FILE,transpileOptionValue:void 0,description:p.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:p.Language_and_Environment,description:p.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:p.Completeness,description:p.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:p.Backwards_Compatibility,description:p.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:p.Emit,description:p.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:p.NEWLINE,category:p.Emit,description:p.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Output_Formatting,description:p.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:p.Language_and_Environment,affectsProgramStructure:!0,description:p.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:p.Modules,description:p.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:p.Emit,description:p.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:p.Editor_Support,description:p.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:p.Projects,description:p.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:p.Projects,description:p.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:p.Projects,description:p.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Backwards_Compatibility,description:p.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,transpileOptionValue:void 0,description:p.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:p.DIRECTORY,category:p.Emit,transpileOptionValue:void 0,description:p.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:p.Completeness,description:p.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Backwards_Compatibility,description:p.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Backwards_Compatibility,description:p.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:p.Interop_Constraints,description:p.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:p.JavaScript_Support,description:p.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:p.Backwards_Compatibility,description:p.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:p.Language_and_Environment,description:p.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:p.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Backwards_Compatibility,description:p.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:p.Backwards_Compatibility,description:p.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:p.Specify_a_list_of_language_service_plugins_to_include,category:p.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:p.Control_what_method_is_used_to_detect_module_format_JS_files,category:p.Language_and_Environment,defaultValueDescription:p.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}],Id=[...w7,...Qie],Kie=Id.filter(e=>!!e.affectsSemanticDiagnostics),Xie=Id.filter(e=>!!e.affectsEmit),Yie=Id.filter(e=>!!e.affectsDeclarationPath),BG=Id.filter(e=>!!e.affectsModuleResolution),zG=Id.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),Zie=Id.filter(e=>!!e.affectsProgramStructure),ese=Id.filter(e=>bo(e,"transpileOptionValue")),fze=Id.filter(e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath),pze=Q2.filter(e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath),tse=Id.filter(dze);function dze(e){return!ys(e.type)}var Mk={name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:p.Command_line_Options,description:p.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},JG=[Mk,{name:"verbose",shortName:"v",category:p.Command_line_Options,description:p.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:p.Command_line_Options,description:p.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:p.Command_line_Options,description:p.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:p.Command_line_Options,description:p.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1},{name:"stopBuildOnErrors",category:p.Command_line_Options,description:p.Skip_building_downstream_projects_on_error_in_upstream_project,type:"boolean",defaultValueDescription:!1}],dM=[...w7,...JG],I7=[{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 D7(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 i1e;function DI(){return i1e||(i1e=D7(Id))}var mze={diagnostic:p.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:l1e},GG={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0};function rse(e){return s1e(e,cc)}function s1e(e,t){let n=ps(e.type.keys()),i=(e.deprecatedKeys?n.filter(s=>!e.deprecatedKeys.has(s)):n).map(s=>`'${s}'`).join(", ");return t(p.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function P7(e,t,n){return U1e(e,(t??"").trim(),n)}function nse(e,t="",n){if(t=t.trim(),Yi(t,"-"))return;if(e.type==="listOrElement"&&!t.includes(","))return K2(e,t,n);if(t==="")return[];let i=t.split(",");switch(e.element.type){case"number":return Vi(i,s=>K2(e.element,parseInt(s),n));case"string":return Vi(i,s=>K2(e.element,s||"",n));case"boolean":case"object":return w.fail(`List of ${e.element.type} is not yet supported.`);default:return Vi(i,s=>P7(e.element,s,n))}}function a1e(e){return e.name}function ise(e,t,n,i,s){var o;let c=(o=t.alternateMode)==null?void 0:o.getOptionsNameMap().optionsNameMap.get(e.toLowerCase());if(c)return t1(s,i,c!==Mk?t.alternateMode.diagnostic:p.Option_build_must_be_the_first_command_line_argument,e);let _=oS(e,t.optionDeclarations,a1e);return _?t1(s,i,t.unknownDidYouMeanDiagnostic,n||e,_.name):t1(s,i,t.unknownOptionDiagnostic,n||e)}function UG(e,t,n){let i={},s,o=[],c=[];return _(t),{options:i,watchOptions:s,fileNames:o,errors:c};function _(g){let m=0;for(;m<g.length;){let h=g[m];if(m++,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=ase(e.getOptionsNameMap,S,!0);if(T)m=o1e(g,m,e,T,i,c);else{let x=ase(HG.getOptionsNameMap,S,!0);x?m=o1e(g,m,HG,x,s||(s={}),c):c.push(ise(S,e,h))}}else o.push(h)}}function u(g){let m=ZA(g,n||(T=>Al.readFile(T)));if(!ys(m)){c.push(m);return}let h=[],S=0;for(;;){for(;S<m.length&&m.charCodeAt(S)<=32;)S++;if(S>=m.length)break;let T=S;if(m.charCodeAt(T)===34){for(S++;S<m.length&&m.charCodeAt(S)!==34;)S++;S<m.length?(h.push(m.substring(T+1,S)),S++):c.push(cc(p.Unterminated_quoted_string_in_response_file_0,g))}else{for(;m.charCodeAt(S)>32;)S++;h.push(m.substring(T,S))}}_(h)}}function o1e(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]=K2(i,!1,o),t++):(c==="true"&&t++,o.push(cc(p.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(o.push(cc(p.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),c&&!Yi(c,"-")&&t++)}else if(!e[t]&&i.type!=="boolean"&&o.push(cc(n.optionTypeMismatchDiagnostic,i.name,QG(i))),e[t]!=="null")switch(i.type){case"number":s[i.name]=K2(i,parseInt(e[t]),o),t++;break;case"boolean":let c=e[t];s[i.name]=K2(i,c!=="false",o),(c==="false"||c==="true")&&t++;break;case"string":s[i.name]=K2(i,e[t]||"",o),t++;break;case"list":let _=nse(i,e[t],o);s[i.name]=_||[],_&&t++;break;case"listOrElement":w.fail("listOrElement not supported here");break;default:s[i.name]=P7(i,e[t],o),t++;break}else s[i.name]=void 0,t++;return t}var A7={alternateMode:mze,getOptionsNameMap:DI,optionDeclarations:Id,unknownOptionDiagnostic:p.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:p.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:p.Compiler_option_0_expects_an_argument};function sse(e,t){return UG(A7,e,t)}function VG(e,t){return ase(DI,e,t)}function ase(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 c1e;function l1e(){return c1e||(c1e=D7(dM))}var gze={diagnostic:p.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:DI},hze={alternateMode:gze,getOptionsNameMap:l1e,optionDeclarations:dM,unknownOptionDiagnostic:p.Unknown_build_option_0,unknownDidYouMeanDiagnostic:p.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:p.Build_option_0_requires_a_value_of_type_1};function ose(e){let{options:t,watchOptions:n,fileNames:i,errors:s}=UG(hze,e),o=t;return i.length===0&&i.push("."),o.clean&&o.force&&s.push(cc(p.Options_0_and_1_cannot_be_combined,"clean","force")),o.clean&&o.verbose&&s.push(cc(p.Options_0_and_1_cannot_be_combined,"clean","verbose")),o.clean&&o.watch&&s.push(cc(p.Options_0_and_1_cannot_be_combined,"clean","watch")),o.watch&&o.dry&&s.push(cc(p.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:o,watchOptions:n,projects:i,errors:s}}function j_(e,...t){return Zs(cc(e,...t).messageText,ys)}function mM(e,t,n,i,s,o){let c=ZA(e,g=>n.readFile(g));if(!ys(c)){n.onUnRecoverableConfigFileDiagnostic(c);return}let _=fM(e,c),u=n.getCurrentDirectory();return _.path=ko(e,u,fu(n.useCaseSensitiveFileNames)),_.resolvedPath=_.path,_.originalFileName=_.fileName,yM(_,n,as(Yn(e),u),t,as(e,u),void 0,o,i,s)}function gM(e,t){let n=ZA(e,t);return ys(n)?qG(e,n):{config:{},error:n}}function qG(e,t){let n=fM(e,t);return{config:T1e(n,n.parseDiagnostics,void 0),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function cse(e,t){let n=ZA(e,t);return ys(n)?fM(e,n):{fileName:e,parseDiagnostics:[n]}}function ZA(e,t){let n;try{n=t(e)}catch(i){return cc(p.Cannot_read_file_0_Colon_1,e,i.message)}return n===void 0?cc(p.Cannot_read_file_0,e):n}function $G(e){return yw(e,a1e)}var u1e={optionDeclarations:I7,unknownOptionDiagnostic:p.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:p.Unknown_type_acquisition_option_0_Did_you_mean_1},_1e;function f1e(){return _1e||(_1e=D7(Q2))}var HG={getOptionsNameMap:f1e,optionDeclarations:Q2,unknownOptionDiagnostic:p.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:p.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:p.Watch_option_0_requires_a_value_of_type_1},p1e;function d1e(){return p1e||(p1e=$G(Id))}var m1e;function g1e(){return m1e||(m1e=$G(Q2))}var h1e;function y1e(){return h1e||(h1e=$G(I7))}var E7={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:p.File_Management,disallowNullOrUndefined:!0},v1e={name:"compilerOptions",type:"object",elementOptions:d1e(),extraKeyDiagnostics:A7},b1e={name:"watchOptions",type:"object",elementOptions:g1e(),extraKeyDiagnostics:HG},S1e={name:"typeAcquisition",type:"object",elementOptions:y1e(),extraKeyDiagnostics:u1e},lse;function yze(){return lse===void 0&&(lse={name:void 0,type:"object",elementOptions:$G([v1e,b1e,S1e,E7,{name:"references",type:"list",element:{name:"references",type:"object"},category:p.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:p.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:p.File_Management,defaultValueDescription:p.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:p.File_Management,defaultValueDescription:p.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},$ie])}),lse}function T1e(e,t,n){var i;let s=(i=e.statements[0])==null?void 0:i.expression;if(s&&s.kind!==210){if(t.push(Cp(e,s,p.The_root_value_of_a_0_file_must_be_an_object,fl(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),gu(s)){let o=On(s.elements,Sa);if(o)return hM(e,o,t,!0,n)}return{}}return hM(e,s,t,!0,n)}function use(e,t){var n;return hM(e,(n=e.statements[0])==null?void 0:n.expression,t,!0,void 0)}function hM(e,t,n,i,s){if(!t)return i?{}:void 0;return _(t,s?.rootOptions);function o(g,m){var h;let S=i?{}:void 0;for(let T of g.properties){if(T.kind!==303){n.push(Cp(e,T,p.Property_assignment_expected));continue}T.questionToken&&n.push(Cp(e,T.questionToken,p.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),u(T.name)||n.push(Cp(e,T.name,p.String_literal_with_double_quotes_expected));let x=F6(T.name)?void 0:o2(T.name),I=x&&Li(x),D=I?(h=m?.elementOptions)==null?void 0:h.get(I):void 0,E=_(T.initializer,D);typeof I<"u"&&(i&&(S[I]=E),s?.onPropertySet(I,E,T,m,D))}return S}function c(g,m){if(!i){g.forEach(h=>_(h,m));return}return An(g.map(h=>_(h,m)),h=>h!==void 0)}function _(g,m){switch(g.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return u(g)||n.push(Cp(e,g,p.String_literal_with_double_quotes_expected)),g.text;case 9:return Number(g.text);case 224:if(g.operator!==41||g.operand.kind!==9)break;return-Number(g.operand.text);case 210:return o(g,m);case 209:return c(g.elements,m&&m.element)}m?n.push(Cp(e,g,p.Compiler_option_0_requires_a_value_of_type_1,m.name,QG(m))):n.push(Cp(e,g,p.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function u(g){return ya(g)&&JF(g,e)}}function QG(e){return e.type==="listOrElement"?`${QG(e.element)} or Array`:e.type==="list"?"Array":ys(e.type)?e.type:"string"}function k1e(e,t){if(e){if(vM(t))return!e.disallowNullOrUndefined;if(e.type==="list")return ks(t);if(e.type==="listOrElement")return ks(t)||k1e(e.element,t);let n=ys(e.type)?e.type:"string";return typeof t===n}return!1}function KG(e,t,n){var i,s,o;let c=fu(n.useCaseSensitiveFileNames),_=hr(An(e.fileNames,(s=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&s.validatedIncludeSpecs?Sze(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,n):iS),x=>Cw(as(t,n.getCurrentDirectory()),as(x,n.getCurrentDirectory()),c)),u={configFilePath:as(t,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames},g=M7(e.options,u),m=e.watchOptions&&Tze(e.watchOptions),h={compilerOptions:{...N7(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:m&&N7(m),references:hr(e.projectReferences,x=>({...x,path:x.originalPath?x.originalPath:"",originalPath:void 0})),files:Dr(_)?_:void 0,...(o=e.options.configFile)!=null&&o.configFileSpecs?{include:bze(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 vA)if(!S.has(x)&&vze(x,S)){let I=vA[x].computeValue(e.options),D=vA[x].computeValue({});I!==D&&(T[x]=vA[x].computeValue(e.options))}return $T(h.compilerOptions,N7(M7(T,u))),h}function vze(e,t){let n=new Set;return i(e);function i(s){var o;return nd(n,s)?pt((o=vA[s])==null?void 0:o.dependencies,c=>t.has(c)||i(c)):!1}}function N7(e){return Object.fromEntries(e)}function bze(e){if(Dr(e)){if(Dr(e)!==1)return e;if(e[0]!==P1e)return e}}function Sze(e,t,n,i){if(!t)return iS;let s=PO(e,n,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),o=s.excludePattern&&iv(s.excludePattern,i.useCaseSensitiveFileNames),c=s.includeFilePattern&&iv(s.includeFilePattern,i.useCaseSensitiveFileNames);return c?o?_=>!(c.test(_)&&!o.test(_)):_=>!c.test(_):o?_=>o.test(_):iS}function x1e(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return x1e(e.element);default:return e.type}}function XG(e,t){return Nl(t,(n,i)=>{if(n===e)return i})}function M7(e,t){return C1e(e,DI(),t)}function Tze(e){return C1e(e,f1e())}function C1e(e,{optionsNameMap:t},n){let i=new Map,s=n&&fu(n.useCaseSensitiveFileNames);for(let o in e)if(bo(e,o)){if(t.has(o)&&(t.get(o).category===p.Command_line_Options||t.get(o).category===p.Output_Formatting))continue;let c=e[o],_=t.get(o.toLowerCase());if(_){w.assert(_.type!=="listOrElement");let u=x1e(_);u?_.type==="list"?i.set(o,c.map(g=>XG(g,u))):i.set(o,XG(c,u)):n&&_.isFilePath?i.set(o,Cw(n.configFilePath,as(c,Yn(n.configFilePath)),s)):n&&_.type==="list"&&_.element.isFilePath?i.set(o,c.map(g=>Cw(n.configFilePath,as(g,Yn(n.configFilePath)),s))):i.set(o,c)}}return i}function _se(e,t){let n=w1e(e);return s();function i(o){return Array(o+1).join(" ")}function s(){let o=[],c=i(2);return Qie.forEach(_=>{if(!n.has(_.name))return;let u=n.get(_.name),g=vse(_);u!==g?o.push(`${c}${_.name}: ${u}`):bo(GG,_.name)&&o.push(`${c}${_.name}: ${g}`)}),o.join(t)+t}}function w1e(e){let t=w8(e,GG);return M7(t)}function fse(e,t,n){let i=w1e(e);return c();function s(_){return Array(_+1).join(" ")}function o({category:_,name:u,isCommandLineOnly:g}){let m=[p.Command_line_Options,p.Editor_Support,p.Compiler_Diagnostics,p.Backwards_Compatibility,p.Watch_and_Build_Modes,p.Output_Formatting];return!g&&_!==void 0&&(!m.includes(_)||i.has(u))}function c(){let _=new Map;_.set(p.Projects,[]),_.set(p.Language_and_Environment,[]),_.set(p.Modules,[]),_.set(p.JavaScript_Support,[]),_.set(p.Emit,[]),_.set(p.Interop_Constraints,[]),_.set(p.Type_Checking,[]),_.set(p.Completeness,[]);for(let T of Id)if(o(T)){let x=_.get(T.category);x||_.set(T.category,x=[]),x.push(T)}let u=0,g=0,m=[];_.forEach((T,x)=>{m.length!==0&&m.push({value:""}),m.push({value:`/* ${Is(x)} */`});for(let I of T){let D;i.has(I.name)?D=`"${I.name}": ${JSON.stringify(i.get(I.name))}${(g+=1)===i.size?"":","}`:D=`// "${I.name}": ${JSON.stringify(vse(I))},`,m.push({value:D,description:`/* ${I.description&&Is(I.description)||I.name} */`}),u=Math.max(D.length,u)}});let h=s(2),S=[];S.push("{"),S.push(`${h}"compilerOptions": {`),S.push(`${h}${h}/* ${Is(p.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),S.push("");for(let T of m){let{value:x,description:I=""}=T;S.push(x&&`${h}${h}${x}${I&&s(u-x.length+2)+I}`)}if(t.length){S.push(`${h}},`),S.push(`${h}"files": [`);for(let T=0;T<t.length;T++)S.push(`${h}${h}${JSON.stringify(t[T])}${T===t.length-1?"":","}`);S.push(`${h}]`)}else S.push(`${h}}`);return S.push("}"),S.join(n)+n}}function R7(e,t){let n={},i=DI().optionsNameMap;for(let s in e)bo(e,s)&&(n[s]=kze(i.get(s.toLowerCase()),e[s],t));return n.configFilePath&&(n.configFilePath=t(n.configFilePath)),n}function kze(e,t,n){if(e&&!vM(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 I1e(e,t,n,i,s,o,c,_,u){return A1e(e,void 0,t,n,i,u,s,o,c,_)}function yM(e,t,n,i,s,o,c,_,u){var g,m;(g=_n)==null||g.push(_n.Phase.Parse,"parseJsonSourceFileConfigFileContent",{path:e.fileName});let h=A1e(void 0,e,t,n,i,u,s,o,c,_);return(m=_n)==null||m.pop(),h}function YG(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function vM(e){return e==null}function D1e(e,t){return Yn(as(e,t))}var P1e="**/*";function A1e(e,t,n,i,s={},o,c,_=[],u=[],g){w.assert(e===void 0&&t!==void 0||e!==void 0&&t===void 0);let m=[],h=O1e(e,t,n,i,c,_,m,g),{raw:S}=h,T=E1e(w8(s,h.options||{}),fze,i),x=F7(o&&h.watchOptions?w8(o,h.watchOptions):h.watchOptions||o,i);T.configFilePath=c&&iu(c);let I=na(c?D1e(c,i):i),D=E();return t&&(t.configFileSpecs=D),YG(T,t),{options:T,watchOptions:x,fileNames:O(I),projectReferences:F(I),typeAcquisition:h.typeAcquisition||tU(),raw:S,errors:m,wildcardDirectories:Fze(D,I,n.useCaseSensitiveFileNames),compileOnSave:!!S.compileOnSave};function E(){let U=$("references",De=>typeof De=="object","object"),me=B(G("files"));if(me){let De=U==="no-prop"||ks(U)&&U.length===0,se=bo(S,"extends");if(me.length===0&&De&&!se)if(t){let xe=c||"tsconfig.json",_e=p.The_files_list_in_config_file_0_is_empty,tt=z6(t,"files",le=>le.initializer),ct=t1(t,tt,_e,xe);m.push(ct)}else K(p.The_files_list_in_config_file_0_is_empty,c||"tsconfig.json")}let te=B(G("include")),V=G("exclude"),ne=!1,ie=B(V);if(V==="no-prop"){let De=T.outDir,se=T.declarationDir;(De||se)&&(ie=An([De,se],xe=>!!xe))}me===void 0&&te===void 0&&(te=[P1e],ne=!0);let oe,de,ye,H;te&&(oe=$1e(te,m,!0,t,"include"),ye=O7(oe,I)||oe),ie&&(de=$1e(ie,m,!1,t,"exclude"),H=O7(de,I)||de);let ve=An(me,ys),Ge=O7(ve,I)||ve;return{filesSpecs:me,includeSpecs:te,excludeSpecs:ie,validatedFilesSpec:Ge,validatedIncludeSpecs:ye,validatedExcludeSpecs:H,validatedFilesSpecBeforeSubstitution:ve,validatedIncludeSpecsBeforeSubstitution:oe,validatedExcludeSpecsBeforeSubstitution:de,isDefaultIncludeSpec:ne}}function O(U){let me=eE(D,U,T,n,u);return F1e(me,bM(S),_)&&m.push(R1e(D,c)),me}function F(U){let me,te=$("references",V=>typeof V=="object","object");if(ks(te))for(let V of te)typeof V.path!="string"?K(p.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(me||(me=[])).push({path:as(V.path,U),originalPath:V.path,prepend:V.prepend,circular:V.circular});return me}function B(U){return ks(U)?U:void 0}function G(U){return $(U,ys,"string")}function $(U,me,te){if(bo(S,U)&&!vM(S[U]))if(ks(S[U])){let V=S[U];return!t&&!Oi(V,me)&&m.push(cc(p.Compiler_option_0_requires_a_value_of_type_1,U,te)),V}else return K(p.Compiler_option_0_requires_a_value_of_type_1,U,"Array"),"not-array";return"no-prop"}function K(U,...me){t||m.push(cc(U,...me))}}function F7(e,t){return E1e(e,pze,t)}function E1e(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),ZG(c)&&s(o,M1e(c,n));break;case"list":w.assert(o.element.isFilePath);let _=O7(c,n);_&&s(o,_);break;case"object":w.assert(o.name==="paths");let u=xze(c,n);u&&s(o,u);break;default:w.fail("option type not supported")}}return i||e;function s(o,c){(i??(i=$T({},e)))[o.name]=c}}var N1e="${configDir}";function ZG(e){return ys(e)&&Yi(e,N1e,!0)}function M1e(e,t){return as(e.replace(N1e,"./"),t)}function O7(e,t){if(!e)return e;let n;return e.forEach((i,s)=>{ZG(i)&&((n??(n=e.slice()))[s]=M1e(i,t))}),n}function xze(e,t){let n;return bm(e).forEach(s=>{if(!ks(e[s]))return;let o=O7(e[s],t);o&&((n??(n=$T({},e)))[s]=o)}),n}function Cze(e){return e.code===p.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function R1e({includeSpecs:e,excludeSpecs:t},n){return cc(p.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 F1e(e,t,n){return e.length===0&&t&&(!n||n.length===0)}function eU(e){return!e.fileNames.length&&bo(e.raw,"references")}function bM(e){return!bo(e,"files")&&!bo(e,"references")}function L7(e,t,n,i,s){let o=i.length;return F1e(e,s)?i.push(R1e(n,t)):vW(i,c=>!Cze(c)),o!==i.length}function wze(e){return!!e.options}function O1e(e,t,n,i,s,o,c,_){var u;i=iu(i);let g=as(s||"",i);if(o.includes(g))return c.push(cc(p.Circularity_detected_while_resolving_configuration_Colon_0,[...o,g].join(" -> "))),{raw:e||use(t,c)};let m=e?Ize(e,n,i,s,c):Dze(t,n,i,s,c);if((u=m.options)!=null&&u.paths&&(m.options.pathsBasePath=i),m.extendedConfigPath){o=o.concat([g]);let T={options:{}};ys(m.extendedConfigPath)?h(T,m.extendedConfigPath):m.extendedConfigPath.forEach(x=>h(T,x)),T.include&&(m.raw.include=T.include),T.exclude&&(m.raw.exclude=T.exclude),T.files&&(m.raw.files=T.files),m.raw.compileOnSave===void 0&&T.compileOnSave&&(m.raw.compileOnSave=T.compileOnSave),t&&T.extendedSourceFiles&&(t.extendedSourceFiles=ps(T.extendedSourceFiles.keys())),m.options=$T(T.options,m.options),m.watchOptions=m.watchOptions&&T.watchOptions?S(T,m.watchOptions):m.watchOptions||T.watchOptions}return m;function h(T,x){let I=Pze(t,x,n,o,c,_,T);if(I&&wze(I)){let D=I.raw,E,O=F=>{m.raw[F]||D[F]&&(T[F]=hr(D[F],B=>ZG(B)||ff(B)?B:Bn(E||(E=CP(Yn(x),i,fu(n.useCaseSensitiveFileNames))),B)))};O("include"),O("exclude"),O("files"),D.compileOnSave!==void 0&&(T.compileOnSave=D.compileOnSave),$T(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?$T(T.watchOptions,x):(T.watchOptionsCopied=!0,$T({},T.watchOptions,x))}}function Ize(e,t,n,i,s){bo(e,"excludes")&&s.push(cc(p.Unknown_option_excludes_Did_you_mean_exclude));let o=J1e(e.compilerOptions,n,s,i),c=G1e(e.typeAcquisition,n,s,i),_=Eze(e.watchOptions,n,s);e.compileOnSave=Aze(e,n,s);let u=e.extends||e.extends===""?L1e(e.extends,t,n,i,s):void 0;return{raw:e,options:o,watchOptions:_,typeAcquisition:c,extendedConfigPath:u}}function L1e(e,t,n,i,s,o,c,_){let u,g=i?D1e(i,n):n;if(ys(e))u=j1e(e,t,g,s,c,_);else if(ks(e)){u=[];for(let m=0;m<e.length;m++){let h=e[m];ys(h)?u=jr(u,j1e(h,t,g,s,c?.elements[m],_)):Rk(E7.element,e,n,s,o,c?.elements[m],_)}}else Rk(E7,e,n,s,o,c,_);return u}function Dze(e,t,n,i,s){let o=z1e(i),c,_,u,g,m=yze(),h=T1e(e,s,{rootOptions:m,onPropertySet:S});return c||(c=tU(i)),g&&h&&h.compilerOptions===void 0&&s.push(Cp(e,g[0],p._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,o2(g[0]))),{raw:h,options:o,watchOptions:_,typeAcquisition:c,extendedConfigPath:u};function S(T,x,I,D,E){if(E&&E!==E7&&(x=Rk(E,x,n,s,I,I.initializer,e)),D?.name)if(E){let O;D===v1e?O=o:D===b1e?O=_??(_={}):D===S1e?O=c??(c=tU(i)):w.fail("Unknown option"),O[E.name]=x}else T&&D?.extraKeyDiagnostics&&(D.elementOptions?s.push(ise(T,D.extraKeyDiagnostics,void 0,I.name,e)):s.push(Cp(e,I.name,D.extraKeyDiagnostics.unknownOptionDiagnostic,T)));else D===m&&(E===E7?u=L1e(x,t,n,i,s,I,I.initializer,e):E||(T==="excludes"&&s.push(Cp(e,I.name,p.Unknown_option_excludes_Did_you_mean_exclude)),On(Qie,O=>O.name===T)&&(g=jr(g,I.name))))}}function j1e(e,t,n,i,s,o){if(e=iu(e),ff(e)||Yi(e,"./")||Yi(e,"../")){let _=as(e,n);if(!t.fileExists(_)&&!Jo(_,".json")&&(_=`${_}.json`,!t.fileExists(_))){i.push(t1(o,s,p.File_0_not_found,e));return}return _}let c=Nse(e,Bn(n,"tsconfig.json"),t);if(c.resolvedModule)return c.resolvedModule.resolvedFileName;e===""?i.push(t1(o,s,p.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(t1(o,s,p.File_0_not_found,e))}function Pze(e,t,n,i,s,o,c){let _=n.useCaseSensitiveFileNames?t:l0(t),u,g,m;if(o&&(u=o.get(_))?{extendedResult:g,extendedConfig:m}=u:(g=cse(t,h=>n.readFile(h)),g.parseDiagnostics.length||(m=O1e(void 0,g,n,Yn(t),fl(t),i,s,o)),o&&o.set(_,{extendedResult:g,extendedConfig:m})),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 m}function Aze(e,t,n){if(!bo(e,$ie.name))return!1;let i=Rk($ie,e.compileOnSave,t,n);return typeof i=="boolean"&&i}function W1e(e,t,n){let i=[];return{options:J1e(e,t,i,n),errors:i}}function B1e(e,t,n){let i=[];return{options:G1e(e,t,i,n),errors:i}}function z1e(e){return e&&fl(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function J1e(e,t,n,i){let s=z1e(i);return pse(d1e(),e,t,s,A7,n),i&&(s.configFilePath=iu(i)),s}function tU(e){return{enable:!!e&&fl(e)==="jsconfig.json",include:[],exclude:[]}}function G1e(e,t,n,i){let s=tU(i);return pse(y1e(),e,t,s,u1e,n),s}function Eze(e,t,n){return pse(g1e(),e,t,void 0,HG,n)}function pse(e,t,n,i,s,o){if(t){for(let c in t){let _=e.get(c);_?(i||(i={}))[_.name]=Rk(_,t[c],n,o):o.push(ise(c,s))}return i}}function t1(e,t,n,...i){return e&&t?Cp(e,t,n,...i):cc(n,...i)}function Rk(e,t,n,i,s,o,c){if(e.isCommandLineOnly){i.push(t1(c,s?.name,p.Option_0_can_only_be_specified_on_command_line,e.name));return}if(k1e(e,t)){let _=e.type;if(_==="list"&&ks(t))return V1e(e,t,n,i,s,o,c);if(_==="listOrElement")return ks(t)?V1e(e,t,n,i,s,o,c):Rk(e.element,t,n,i,s,o,c);if(!ys(e.type))return U1e(e,t,i,o,c);let u=K2(e,t,i,o,c);return vM(u)?u:Nze(e,n,u)}else i.push(t1(c,o,p.Compiler_option_0_requires_a_value_of_type_1,e.name,QG(e)))}function Nze(e,t,n){return e.isFilePath&&(n=iu(n),n=ZG(n)?n:as(n,t),n===""&&(n=".")),n}function K2(e,t,n,i,s){var o;if(vM(t))return;let c=(o=e.extraValidation)==null?void 0:o.call(e,t);if(!c)return t;n.push(t1(s,i,...c))}function U1e(e,t,n,i,s){if(vM(t))return;let o=t.toLowerCase(),c=e.type.get(o);if(c!==void 0)return K2(e,c,n,i,s);n.push(s1e(e,(_,...u)=>t1(s,i,_,...u)))}function V1e(e,t,n,i,s,o,c){return An(hr(t,(_,u)=>Rk(e.element,_,n,i,s,o?.elements[u],c)),_=>e.listPreserveFalsyValues?!0:!!_)}var Mze=/(?:^|\/)\*\*\/?$/,Rze=/^[^*?]*(?=\/[^/]*[*?])/;function eE(e,t,n,i,s=qe){t=na(t);let o=fu(i.useCaseSensitiveFileNames),c=new Map,_=new Map,u=new Map,{validatedFilesSpec:g,validatedIncludeSpecs:m,validatedExcludeSpecs:h}=e,S=SA(n,s),T=R4(n,S);if(g)for(let E of g){let O=as(E,t);c.set(o(O),O)}let x;if(m&&m.length>0)for(let E of i.readDirectory(t,Qp(T),h,m,void 0)){if(nc(E,".json")){if(!x){let B=m.filter($=>Jo($,".json")),G=hr(IO(B,t,"files"),$=>`^${$}$`);x=G?G.map($=>iv($,i.useCaseSensitiveFileNames)):qe}if(Sc(x,B=>B.test(E))!==-1){let B=o(E);!c.has(B)&&!u.has(B)&&u.set(B,E)}continue}if(Lze(E,c,_,S,o))continue;jze(E,_,S,o);let O=o(E);!c.has(O)&&!_.has(O)&&_.set(O,E)}let I=ps(c.values()),D=ps(_.values());return I.concat(D,ps(u.values()))}function dse(e,t,n,i,s){let{validatedFilesSpec:o,validatedIncludeSpecs:c,validatedExcludeSpecs:_}=t;if(!Dr(c)||!Dr(_))return!1;n=na(n);let u=fu(i);if(o){for(let g of o)if(u(as(g,n))===e)return!1}return W7(e,_,i,s,n)}function q1e(e){let t=Yi(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(Jo(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function j7(e,t,n,i){return W7(e,An(t,s=>!q1e(s)),n,i)}function W7(e,t,n,i,s){let o=bA(t,Bn(na(i),s),"exclude"),c=o&&iv(o,n);return c?c.test(e)?!0:!xw(e)&&c.test(El(e)):!1}function $1e(e,t,n,i,s){return e.filter(c=>{if(!ys(c))return!1;let _=mse(c,n);return _!==void 0&&t.push(o(..._)),_===void 0});function o(c,_){let u=EF(i,s,_);return t1(i,u,c,_)}}function mse(e,t){if(w.assert(typeof e=="string"),t&&Mze.test(e))return[p.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(q1e(e))return[p.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function Fze({validatedIncludeSpecs:e,validatedExcludeSpecs:t},n,i){let s=bA(t,n,"exclude"),o=s&&new RegExp(s,i?"":"i"),c={},_=new Map;if(e!==void 0){let u=[];for(let g of e){let m=na(Bn(n,g));if(o&&o.test(m))continue;let h=Oze(m,i);if(h){let{key:S,path:T,flags:x}=h,I=_.get(S),D=I!==void 0?c[I]:void 0;(D===void 0||D<x)&&(c[I!==void 0?I:T]=x,I===void 0&&_.set(S,T),x===1&&u.push(S))}}for(let g in c)if(bo(c,g))for(let m of u){let h=gse(g,i);h!==m&&kp(m,h,n,!i)&&delete c[g]}}return c}function gse(e,t){return t?e:l0(e)}function Oze(e,t){let n=Rze.exec(e);if(n){let i=e.indexOf("?"),s=e.indexOf("*"),o=e.lastIndexOf(Fo);return{key:gse(n[0],t),path:n[0],flags:i!==-1&&i<o||s!==-1&&s<o?1:0}}if(TJ(e.substring(e.lastIndexOf(Fo)+1))){let i=Ky(e);return{key:gse(i,t),path:i,flags:1}}}function Lze(e,t,n,i,s){let o=or(i,c=>Gc(e,c)?c:void 0);if(!o)return!1;for(let c of o){if(nc(e,c)&&(c!==".ts"||!nc(e,".d.ts")))return!1;let _=s(fy(e,c));if(t.has(_)||n.has(_)){if(c===".d.ts"&&(nc(e,".js")||nc(e,".jsx")))continue;return!0}}return!1}function jze(e,t,n,i){let s=or(n,o=>Gc(e,o)?o:void 0);if(s)for(let o=s.length-1;o>=0;o--){let c=s[o];if(nc(e,c))return;let _=i(fy(e,c));t.delete(_)}}function hse(e){let t={};for(let n in e)if(bo(e,n)){let i=VG(n);i!==void 0&&(t[n]=yse(e[n],i))}return t}function yse(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(!ks(e))return yse(e,t.element);case"list":let n=t.element;return ks(e)?Vi(e,i=>yse(i,n)):"";default:return Nl(t.type,(i,s)=>{if(i===e)return s})}}function vse(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":let t=e.defaultValueDescription;return e.isFilePath?`./${t&&typeof t=="string"?t:""}`:"";case"list":return[];case"listOrElement":return vse(e.element);case"object":return{};default:let n=KN(e.type.keys());return n!==void 0?n:w.fail("Expected 'option.type' to have entries.")}}function us(e,t,...n){e.trace(k2(t,...n))}function G0(e,t){return!!e.traceResolution&&t.trace!==void 0}function X2(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+Fo.length),version:s.version,peerDependencies:sJe(e,n)})}return t&&{path:t.path,extension:t.ext,packageId:i,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function rU(e){return X2(void 0,e,void 0)}function H1e(e){if(e)return w.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function B7(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 Wze(e){let t=[];return e&1&&t.push(...M4),e&2&&t.push(...aI),e&4&&t.push(...MO),e&8&&t.push(".json"),t}function bse(e){if(e)return w.assert(FO(e.extension)),{fileName:e.path,packageId:e.packageId}}function Q1e(e,t,n,i,s,o,c,_,u){if(!c.resultFromCache&&!c.compilerOptions.preserveSymlinks&&t&&n&&!t.originalPath&&!Jl(e)){let{resolvedFileName:g,originalPath:m}=Y1e(t.path,c.host,c.traceEnabled);m&&(t={...t,path:g,originalPath:m})}return K1e(t,n,i,s,o,c.resultFromCache,_,u)}function K1e(e,t,n,i,s,o,c,_){return o?c?.isReadonly?{...o,failedLookupLocations:Sse(o.failedLookupLocations,n),affectingLocations:Sse(o.affectingLocations,i),resolutionDiagnostics:Sse(o.resolutionDiagnostics,s)}:(o.failedLookupLocations=PI(o.failedLookupLocations,n),o.affectingLocations=PI(o.affectingLocations,i),o.resolutionDiagnostics=PI(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:_}}function tE(e){return e.length?e:void 0}function PI(e,t){return t?.length?e?.length?(e.push(...t),e):t:e}function Sse(e,t){return e?.length?t.length?[...e,...t]:e.slice():tE(t)}function Tse(e,t,n,i){if(!bo(e,t)){i.traceEnabled&&us(i.host,p.package_json_does_not_have_a_0_field,t);return}let s=e[t];if(typeof s!==n||s===null){i.traceEnabled&&us(i.host,p.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,n,s===null?"null":typeof s);return}return s}function nU(e,t,n,i){let s=Tse(e,t,"string",i);if(s===void 0)return;if(!s){i.traceEnabled&&us(i.host,p.package_json_had_a_falsy_0_field,t);return}let o=na(Bn(n,s));return i.traceEnabled&&us(i.host,p.package_json_has_0_field_1_that_references_2,t,s,o),o}function Bze(e,t,n){return nU(e,"typings",t,n)||nU(e,"types",t,n)}function zze(e,t,n){return nU(e,"tsconfig",t,n)}function Jze(e,t,n){return nU(e,"main",t,n)}function Gze(e,t){let n=Tse(e,"typesVersions","object",t);if(n!==void 0)return t.traceEnabled&&us(t.host,p.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),n}function Uze(e,t){let n=Gze(e,t);if(n===void 0)return;if(t.traceEnabled)for(let c in n)bo(n,c)&&!N8.tryParse(c)&&us(t.host,p.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,c);let i=z7(n);if(!i){t.traceEnabled&&us(t.host,p.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,Xi);return}let{version:s,paths:o}=i;if(typeof o!="object"){t.traceEnabled&&us(t.host,p.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${s}']`,"object",typeof o);return}return i}var kse;function z7(e){kse||(kse=new Wd(Ui));for(let t in e){if(!bo(e,t))continue;let n=N8.tryParse(t);if(n!==void 0&&n.test(kse))return{version:t,paths:e[t]}}}function rE(e,t){if(e.typeRoots)return e.typeRoots;let n;if(e.configFilePath?n=Yn(e.configFilePath):t.getCurrentDirectory&&(n=t.getCurrentDirectory()),n!==void 0)return Vze(n)}function Vze(e){let t;return wP(na(e),n=>{let i=Bn(n,qze);(t??(t=[])).push(i)}),t}var qze=Bn("node_modules","@types");function X1e(e,t,n){let i=typeof n.useCaseSensitiveFileNames=="function"?n.useCaseSensitiveFileNames():n.useCaseSensitiveFileNames;return ty(e,t,!i)===0}function Y1e(e,t,n){let i=oSe(e,t,n),s=X1e(e,i,t);return{resolvedFileName:s?e:i,originalPath:s?void 0:e}}function Z1e(e,t,n){let i=Jo(e,"/node_modules/@types")||Jo(e,"/node_modules/@types/")?bSe(t,n):t;return Bn(e,i)}function xse(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 _=G0(n,i);s&&(n=s.commandLine.options);let u=t?Yn(t):void 0,g=u?o?.getFromDirectoryCache(e,c,u,s):void 0;if(!g&&u&&!Jl(e)&&(g=o?.getFromNonRelativeNameCache(e,c,u,s)),g)return _&&(us(i,p.Resolving_type_reference_directive_0_containing_file_1,e,t),s&&us(i,p.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName),us(i,p.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,u),G(g)),g;let m=rE(n,i);_&&(t===void 0?m===void 0?us(i,p.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):us(i,p.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,m):m===void 0?us(i,p.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):us(i,p.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,m),s&&us(i,p.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));let h=[],S=[],T=Cse(n);c!==void 0&&(T|=30);let x=Bu(n);c===99&&3<=x&&x<=99&&(T|=32);let I=T&8?U0(n,c):[],D=[],E={compilerOptions:n,host:i,traceEnabled:_,failedLookupLocations:h,affectingLocations:S,packageJsonInfoCache:o,features:T,conditions:I,requestContainingDirectory:u,reportDiagnostic:U=>void D.push(U),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},O=$(),F=!0;O||(O=K(),F=!1);let B;if(O){let{fileName:U,packageId:me}=O,te=U,V;n.preserveSymlinks||({resolvedFileName:te,originalPath:V}=Y1e(U,i,_)),B={primary:F,resolvedFileName:te,originalPath:V,packageId:me,isExternalLibraryImport:V0(U)}}return g={resolvedTypeReferenceDirective:B,failedLookupLocations:tE(h),affectingLocations:tE(S),resolutionDiagnostics:tE(D)},u&&o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(u,s).set(e,c,g),Jl(e)||o.getOrCreateCacheForNonRelativeName(e,c,s).set(u,g)),_&&G(g),g;function G(U){var me;(me=U.resolvedTypeReferenceDirective)!=null&&me.resolvedFileName?U.resolvedTypeReferenceDirective.packageId?us(i,p.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,U.resolvedTypeReferenceDirective.resolvedFileName,Eb(U.resolvedTypeReferenceDirective.packageId),U.resolvedTypeReferenceDirective.primary):us(i,p.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,U.resolvedTypeReferenceDirective.resolvedFileName,U.resolvedTypeReferenceDirective.primary):us(i,p.Type_reference_directive_0_was_not_resolved,e)}function $(){if(m&&m.length)return _&&us(i,p.Resolving_with_primary_search_path_0,m.join(", ")),po(m,U=>{let me=Z1e(U,e,E),te=Vd(U,i);if(!te&&_&&us(i,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,U),n.typeRoots){let V=NI(4,me,!te,E);if(V){let ne=TM(V.path),ie=ne?Ok(ne,!1,E):void 0;return bse(X2(ie,V,E))}}return bse(Rse(4,me,!te,E))});_&&us(i,p.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function K(){let U=t&&Yn(t);if(U!==void 0){let me;if(!n.typeRoots||!Jo(t,yE))if(_&&us(i,p.Looking_up_in_node_modules_folder_initial_location_0,U),Jl(e)){let{path:te}=aSe(U,e);me=oU(4,te,!1,E,!0)}else{let te=gSe(4,e,U,E,void 0,void 0);me=te&&te.value}else _&&us(i,p.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return bse(me)}else _&&us(i,p.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function Cse(e){let t=0;switch(Bu(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 U0(e,t){let n=Bu(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"),Ki(i,e.customConditions)}function iU(e,t,n,i,s){let o=iE(s?.getPackageJsonInfoCache(),i,n);return Pg(i,t,c=>{if(fl(c)!=="node_modules"){let _=Bn(c,"node_modules"),u=Bn(_,e);return Ok(u,!1,o)}})}function J7(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=na(o),_=Bn(s,c,"package.json");if(!(t.fileExists(_)&&tI(_,t).typings===null)){let g=fl(c);g.charCodeAt(0)!==46&&n.push(g)}}}}return n}function G7(e){return!!e?.contents}function wse(e){return!!e&&!e.contents}function Ise(e){var t;if(e===null||typeof e!="object")return""+e;if(ks(e))return`[${(t=e.map(i=>Ise(i)))==null?void 0:t.join(",")}]`;let n="{";for(let i in e)bo(e,i)&&(n+=`${i}: ${Ise(e[i])}`);return n+"}"}function sU(e,t){return t.map(n=>Ise(xO(e,n))).join("|")+`|${e.pathsBasePath}`}function eSe(e,t){let n=new Map,i=new Map,s=new Map;return e&&n.set(e,s),{getMapOfCacheRedirects:o,getOrCreateMapOfCacheRedirects:c,update:_,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 _(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=m(h);if(T=i.get(x),!T){if(e){let I=m(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 m(h){let S=t.get(h);return S||t.set(h,S=sU(h,BG)),S}}function $ze(e,t){let n;return{getPackageJsonInfo:i,setPackageJsonInfo:s,clear:o,getInternalMap:c};function i(_){return n?.get(ko(_,e,t))}function s(_,u){(n||(n=new Map)).set(ko(_,e,t),u)}function o(){n=void 0}function c(){return n}}function tSe(e,t,n,i){let s=e.getOrCreateMapOfCacheRedirects(t),o=s.get(n);return o||(o=i(),s.set(n,o)),o}function Hze(e,t,n,i){let s=eSe(n,i);return{getFromDirectoryCache:u,getOrCreateCacheForDirectory:_,clear:o,update:c,directoryToModuleNameMap:s};function o(){s.clear()}function c(g){s.update(g)}function _(g,m){let h=ko(g,e,t);return tSe(s,m,h,()=>AI())}function u(g,m,h,S){var T,x;let I=ko(h,e,t);return(x=(T=s.getMapOfCacheRedirects(S))==null?void 0:T.get(I))==null?void 0:x.get(g,m)}}function nE(e,t){return t===void 0?e:`${t}|${e}`}function AI(){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[_,u]=t.get(c);return s(o,_,u)})},size(){return e.size}};return n;function i(s,o){let c=nE(s,o);return t.set(c,[s,o]),c}}function Qze(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function Kze(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function Xze(e,t,n,i,s){let o=eSe(n,s);return{getFromNonRelativeNameCache:u,getOrCreateCacheForNonRelativeName:g,clear:c,update:_};function c(){o.clear()}function _(h){o.update(h)}function u(h,S,T,x){var I,D;return w.assert(!Jl(h)),(D=(I=o.getMapOfCacheRedirects(x))==null?void 0:I.get(nE(h,S)))==null?void 0:D.get(T)}function g(h,S,T){return w.assert(!Jl(h)),tSe(o,T,nE(h,S),m)}function m(){let h=new Map;return{get:S,set:T};function S(I){return h.get(ko(I,e,t))}function T(I,D){let E=ko(I,e,t);if(h.has(E))return;h.set(E,D);let O=i(D),F=O&&x(E,O),B=E;for(;B!==F;){let G=Yn(B);if(G===B||h.has(G))break;h.set(G,D),B=G}}function x(I,D){let E=ko(Yn(D),e,t),O=0,F=Math.min(I.length,E.length);for(;O<F&&I.charCodeAt(O)===E.charCodeAt(O);)O++;if(O===I.length&&(E.length===O||E[O]===Fo))return I;let B=Bd(I);if(O<B)return;let G=I.lastIndexOf(Fo,O-1);if(G!==-1)return I.substr(0,Math.max(G,B))}}}function rSe(e,t,n,i,s,o){o??(o=new Map);let c=Hze(e,t,n,o),_=Xze(e,t,n,s,o);return i??(i=$ze(e,t)),{...i,...c,..._,clear:u,update:m,getPackageJsonInfoCache:()=>i,clearAllExceptPackageJsonInfoCache:g,optionsToRedirectsKey:o};function u(){g(),i.clear()}function g(){c.clear(),_.clear()}function m(h){c.update(h),_.update(h)}}function EI(e,t,n,i,s){let o=rSe(e,t,n,i,Qze,s);return o.getOrCreateCacheForModuleName=(c,_,u)=>o.getOrCreateCacheForNonRelativeName(c,_,u),o}function U7(e,t,n,i,s){return rSe(e,t,n,i,Kze,s)}function aU(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function V7(e,t,n,i,s){return Fk(e,t,aU(n),i,s)}function nSe(e,t,n,i){let s=Yn(t);return n.getFromDirectoryCache(e,i,s,void 0)}function Fk(e,t,n,i,s,o,c){let _=G0(n,i);o&&(n=o.commandLine.options),_&&(us(i,p.Resolving_module_0_from_1,e,t),o&&us(i,p.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));let u=Yn(t),g=s?.getFromDirectoryCache(e,c,u,o);if(g)_&&us(i,p.Resolution_for_module_0_was_found_in_cache_from_location_1,e,u);else{let m=n.moduleResolution;switch(m===void 0?(m=Bu(n),_&&us(i,p.Module_resolution_kind_is_not_specified_using_0,Tw[m])):_&&us(i,p.Explicitly_specified_module_resolution_kind_Colon_0,Tw[m]),m){case 3:g=tJe(e,t,n,i,s,o,c);break;case 99:g=rJe(e,t,n,i,s,o,c);break;case 2:g=Ese(e,t,n,i,s,o,c?U0(n,c):void 0);break;case 1:g=Lse(e,t,n,i,s,o);break;case 100:g=Ase(e,t,n,i,s,o,c?U0(n,c):void 0);break;default:return w.fail(`Unexpected moduleResolution: ${m}`)}s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(u,o).set(e,c,g),Jl(e)||s.getOrCreateCacheForNonRelativeName(e,c,o).set(u,g))}return _&&(g.resolvedModule?g.resolvedModule.packageId?us(i,p.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,g.resolvedModule.resolvedFileName,Eb(g.resolvedModule.packageId)):us(i,p.Module_name_0_was_successfully_resolved_to_1,e,g.resolvedModule.resolvedFileName):us(i,p.Module_name_0_was_not_resolved,e)),g}function iSe(e,t,n,i,s){let o=Yze(e,t,i,s);return o?o.value:Jl(t)?Zze(e,t,n,i,s):eJe(e,t,i,s)}function Yze(e,t,n,i){let{baseUrl:s,paths:o}=i.compilerOptions;if(o&&!Of(t)){i.traceEnabled&&(s&&us(i.host,p.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,t),us(i.host,p.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));let c=rO(i.compilerOptions,i.host),_=L4(o);return Fse(e,t,c,o,_,n,!1,i)}}function Zze(e,t,n,i,s){if(!s.compilerOptions.rootDirs)return;s.traceEnabled&&us(s.host,p.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);let o=na(Bn(n,t)),c,_;for(let u of s.compilerOptions.rootDirs){let g=na(u);Jo(g,Fo)||(g+=Fo);let m=Yi(o,g)&&(_===void 0||_.length<g.length);s.traceEnabled&&us(s.host,p.Checking_if_0_is_the_longest_matching_prefix_for_1_2,g,o,m),m&&(_=g,c=u)}if(_){s.traceEnabled&&us(s.host,p.Longest_matching_prefix_for_0_is_1,o,_);let u=o.substr(_.length);s.traceEnabled&&us(s.host,p.Loading_0_from_the_root_dir_1_candidate_location_2,u,_,o);let g=i(e,o,!Vd(n,s.host),s);if(g)return g;s.traceEnabled&&us(s.host,p.Trying_other_entries_in_rootDirs);for(let m of s.compilerOptions.rootDirs){if(m===c)continue;let h=Bn(na(m),u);s.traceEnabled&&us(s.host,p.Loading_0_from_the_root_dir_1_candidate_location_2,u,m,h);let S=Yn(h),T=i(e,h,!Vd(S,s.host),s);if(T)return T}s.traceEnabled&&us(s.host,p.Module_resolution_using_rootDirs_has_failed)}}function eJe(e,t,n,i){let{baseUrl:s}=i.compilerOptions;if(!s)return;i.traceEnabled&&us(i.host,p.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,t);let o=na(Bn(s,t));return i.traceEnabled&&us(i.host,p.Resolving_module_name_0_relative_to_base_url_1_2,t,s,o),n(e,o,!Vd(Yn(o),i.host),i)}function Dse(e,t,n){let{resolvedModule:i,failedLookupLocations:s}=nJe(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 Pse=(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))(Pse||{});function tJe(e,t,n,i,s,o,c){return sSe(30,e,t,n,i,s,o,c)}function rJe(e,t,n,i,s,o,c){return sSe(30,e,t,n,i,s,o,c)}function sSe(e,t,n,i,s,o,c,_,u){let g=Yn(n),m=_===99?32:0,h=i.noDtsResolution?3:7;return DS(i)&&(h|=8),SM(e|m,t,g,i,s,o,h,!1,c,u)}function nJe(e,t,n){return SM(0,e,t,{moduleResolution:2,allowJs:!0},n,void 0,2,!1,void 0,void 0)}function Ase(e,t,n,i,s,o,c){let _=Yn(t),u=n.noDtsResolution?3:7;return DS(n)&&(u|=8),SM(Cse(n),e,_,n,i,s,u,!1,o,c)}function Ese(e,t,n,i,s,o,c,_){let u;return _?u=8:n.noDtsResolution?(u=3,DS(n)&&(u|=8)):u=DS(n)?15:7,SM(c?30:0,e,Yn(t),n,i,s,u,!!_,o,c)}function Nse(e,t,n){return SM(30,e,Yn(t),{moduleResolution:99},n,void 0,8,!0,void 0,void 0)}function SM(e,t,n,i,s,o,c,_,u,g){var m,h,S,T,x;let I=G0(i,s),D=[],E=[],O=Bu(i);g??(g=U0(i,O===100||O===2?void 0:e&32?99:1));let F=[],B={compilerOptions:i,host:s,traceEnabled:I,failedLookupLocations:D,affectingLocations:E,packageJsonInfoCache:o,features:e,conditions:g??qe,requestContainingDirectory:n,reportDiagnostic:U=>void F.push(U),isConfigLookup:_,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};I&&sI(O)&&us(s,p.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",B.conditions.map(U=>`'${U}'`).join(", "));let G;if(O===2){let U=c&5,me=c&-6;G=U&&K(U,B)||me&&K(me,B)||void 0}else G=K(c,B);let $;if(B.resolvedPackageDirectory&&!_&&!Jl(t)){let U=G?.value&&c&5&&!pSe(5,G.value.resolved.extension);if((m=G?.value)!=null&&m.isExternalLibraryImport&&U&&e&8&&g?.includes("import")){q0(B,p.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);let me={...B,features:B.features&-9,reportDiagnostic:to},te=K(c&5,me);(h=te?.value)!=null&&h.isExternalLibraryImport&&($=te.value.resolved.path)}else if((!G?.value||U)&&O===2){q0(B,p.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);let me={...B.compilerOptions,moduleResolution:100},te={...B,compilerOptions:me,features:30,conditions:U0(me),reportDiagnostic:to},V=K(c&5,te);(S=V?.value)!=null&&S.isExternalLibraryImport&&($=V.value.resolved.path)}}return Q1e(t,(T=G?.value)==null?void 0:T.resolved,(x=G?.value)==null?void 0:x.isExternalLibraryImport,D,E,F,B,o,$);function K(U,me){let V=iSe(U,t,n,(ne,ie,oe,de)=>oU(ne,ie,oe,de,!0),me);if(V)return sp({resolved:V,isExternalLibraryImport:V0(V.path)});if(Jl(t)){let{path:ne,parts:ie}=aSe(n,t),oe=oU(U,ne,!1,me,!0);return oe&&sp({resolved:oe,isExternalLibraryImport:Ts(ie,"node_modules")})}else{if(e&2&&Yi(t,"#")){let ie=lJe(U,t,n,me,o,u);if(ie)return ie.value&&{value:{resolved:ie.value,isExternalLibraryImport:!1}}}if(e&4){let ie=cJe(U,t,n,me,o,u);if(ie)return ie.value&&{value:{resolved:ie.value,isExternalLibraryImport:!1}}}if(t.includes(":")){I&&us(s,p.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,B7(U));return}I&&us(s,p.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,B7(U));let ne=gSe(U,t,n,me,o,u);return U&4&&(ne??(ne=TSe(t,me))),ne&&{value:ne.value&&{resolved:ne.value,isExternalLibraryImport:!0}}}}}function aSe(e,t){let n=Bn(e,t),i=Iu(n),s=zo(i);return{path:s==="."||s===".."?El(na(n)):na(n),parts:i}}function oSe(e,t,n){if(!t.realpath)return e;let i=na(t.realpath(e));return n&&us(t,p.Resolving_real_path_for_0_result_1,e,i),i}function oU(e,t,n,i,s){if(i.traceEnabled&&us(i.host,p.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,B7(e)),!p0(t)){if(!n){let c=Yn(t);Vd(c,i.host)||(i.traceEnabled&&us(i.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,c),n=!0)}let o=NI(e,t,n,i);if(o){let c=s?TM(o.path):void 0,_=c?Ok(c,!1,i):void 0;return X2(_,o,i)}}if(n||Vd(t,i.host)||(i.traceEnabled&&us(i.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n=!0),!(i.features&32))return Rse(e,t,n,i,s)}var Ch="/node_modules/";function V0(e){return e.includes(Ch)}function TM(e,t){let n=na(e),i=n.lastIndexOf(Ch);if(i===-1)return;let s=i+Ch.length,o=cSe(n,s,t);return n.charCodeAt(s)===64&&(o=cSe(n,o,t)),n.slice(0,o)}function cSe(e,t,n){let i=e.indexOf(Fo,t+1);return i===-1?n?e.length:t:i}function Mse(e,t,n,i){return rU(NI(e,t,n,i))}function NI(e,t,n,i){let s=lSe(e,t,n,i);if(s)return s;if(!(i.features&32)){let o=uSe(t,e,"",n,i);if(o)return o}}function lSe(e,t,n,i){if(!fl(t).includes("."))return;let o=i_(t);o===t&&(o=t.substring(0,t.lastIndexOf(".")));let c=t.substring(o.length);return i.traceEnabled&&us(i.host,p.File_name_0_has_a_1_extension_stripping_it,t,c),uSe(o,e,c,n,i)}function cU(e,t,n,i,s){if(e&1&&Gc(t,M4)||e&4&&Gc(t,MO)){let o=lU(t,i,s),c=_O(t);return o!==void 0?{path:t,ext:c,resolvedUsingTsExtension:n?!Jo(n,c):void 0}:void 0}return s.isConfigLookup&&e===8&&nc(t,".json")?lU(t,i,s)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:lSe(e,t,i,s)}function uSe(e,t,n,i,s){if(!i){let c=Yn(e);c&&(i=!Vd(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&&!Ll(e+n)&&o(`.d${n}.ts`)||void 0}function o(c,_){let u=lU(e+c,i,s);return u===void 0?void 0:{path:u,ext:c,resolvedUsingTsExtension:!s.candidateIsFromPackageJsonField&&_}}}function lU(e,t,n){var i;if(!((i=n.compilerOptions.moduleSuffixes)!=null&&i.length))return _Se(e,t,n);let s=bh(e)??"",o=s?O4(e,s):e;return or(n.compilerOptions.moduleSuffixes,c=>_Se(o+c+s,t,n))}function _Se(e,t,n){var i;if(!t){if(n.host.fileExists(e))return n.traceEnabled&&us(n.host,p.File_0_exists_use_it_as_a_name_resolution_result,e),e;n.traceEnabled&&us(n.host,p.File_0_does_not_exist,e)}(i=n.failedLookupLocations)==null||i.push(e)}function Rse(e,t,n,i,s=!0){let o=s?Ok(t,n,i):void 0;return X2(o,_U(e,t,n,i,o),i)}function uU(e,t,n,i,s){if(!s&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let o,c=5|(s?2:0),_=Cse(t),u=iE(i?.getPackageJsonInfoCache(),n,t);u.conditions=U0(t),u.requestContainingDirectory=e.packageDirectory;let g=_U(c,e.packageDirectory,!1,u,e);if(o=jr(o,g?.path),_&8&&e.contents.packageJsonContent.exports){let m=nS([U0(t,99),U0(t,1)],Yf);for(let h of m){let S={...u,failedLookupLocations:[],conditions:h,host:n},T=iJe(e,e.contents.packageJsonContent.exports,S,c);if(T)for(let x of T)o=Zh(o,x.path)}}return e.contents.resolvedEntrypoints=o||!1}function iJe(e,t,n,i){let s;if(ks(t))for(let c of t)o(c);else if(typeof t=="object"&&t!==null&&$7(t))for(let c in t)o(t[c]);else o(t);return s;function o(c){var _,u;if(typeof c=="string"&&Yi(c,"./"))if(c.includes("*")&&n.host.readDirectory){if(c.indexOf("*")!==c.lastIndexOf("*"))return!1;n.host.readDirectory(e.packageDirectory,Wze(i),void 0,[z8(vk(c,"**/*"),".*")]).forEach(g=>{s=Zh(s,{path:g,ext:qx(g),resolvedUsingTsExtension:void 0})})}else{let g=Iu(c).slice(2);if(g.includes("..")||g.includes(".")||g.includes("node_modules"))return!1;let m=Bn(e.packageDirectory,c),h=as(m,(u=(_=n.host).getCurrentDirectory)==null?void 0:u.call(_)),S=cU(i,h,c,!1,n);if(S)return s=Zh(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(bm(c),g=>{if(g==="default"||Ts(n.conditions,g)||kM(n.conditions,g))return o(c[g]),!0})}}function iE(e,t,n){return{host:t,compilerOptions:n,traceEnabled:G0(n,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:qe,requestContainingDirectory:void 0,reportDiagnostic:to,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function sE(e,t){return Pg(t.host,e,n=>Ok(n,!1,t))}function fSe(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=Uze(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function sJe(e,t){return e.contents.peerDependencies===void 0&&(e.contents.peerDependencies=aJe(e,t)||!1),e.contents.peerDependencies||void 0}function aJe(e,t){let n=Tse(e.contents.packageJsonContent,"peerDependencies","object",t);if(n===void 0)return;t.traceEnabled&&us(t.host,p.package_json_has_a_peerDependencies_field);let i=oSe(e.packageDirectory,t.host,t.traceEnabled),s=i.substring(0,i.lastIndexOf("node_modules")+12)+Fo,o="";for(let c in n)if(bo(n,c)){let _=Ok(s+c,!1,t);if(_){let u=_.contents.packageJsonContent.version;o+=`+${c}@${u}`,t.traceEnabled&&us(t.host,p.Found_peerDependency_0_with_1_version,c,u)}else t.traceEnabled&&us(t.host,p.Failed_to_find_peerDependency_0,c)}return o}function Ok(e,t,n){var i,s,o,c,_,u;let{host:g,traceEnabled:m}=n,h=Bn(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(G7(S))return m&&us(g,p.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&&m&&us(g,p.File_0_does_not_exist_according_to_earlier_cached_lookups,h),(c=n.failedLookupLocations)==null||c.push(h);return}let T=Vd(e,g);if(T&&g.fileExists(h)){let x=tI(h,g);m&&us(g,p.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),(_=n.affectingLocations)==null||_.push(h),I}else T&&m&&us(g,p.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 _U(e,t,n,i,s){let o=s&&fSe(s,i),c;s&&X1e(s?.packageDirectory,t,i.host)&&(i.isConfigLookup?c=zze(s.contents.packageJsonContent,s.packageDirectory,i):c=e&4&&Bze(s.contents.packageJsonContent,s.packageDirectory,i)||e&7&&Jze(s.contents.packageJsonContent,s.packageDirectory,i)||void 0);let _=(S,T,x,I)=>{let D=cU(S,T,void 0,x,I);if(D)return rU(D);let E=S===4?5:S,O=I.features,F=I.candidateIsFromPackageJsonField;I.candidateIsFromPackageJsonField=!0,s?.contents.packageJsonContent.type!=="module"&&(I.features&=-33);let B=oU(E,T,x,I,!1);return I.features=O,I.candidateIsFromPackageJsonField=F,B},u=c?!Vd(Yn(c),i.host):void 0,g=n||!Vd(t,i.host),m=Bn(t,i.isConfigLookup?"tsconfig":"index");if(o&&(!c||kp(t,c))){let S=Zf(t,c||m,!1);i.traceEnabled&&us(i.host,p.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,o.version,Ui,S);let T=L4(o.paths),x=Fse(e,S,t,o.paths,T,_,u||g,i);if(x)return H1e(x.value)}let h=c&&H1e(_(e,c,u,i));if(h)return h;if(!(i.features&32))return NI(e,m,g,i)}function pSe(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 q7(e){let t=e.indexOf(Fo);return e[0]==="@"&&(t=e.indexOf(Fo,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function $7(e){return Oi(bm(e),t=>Yi(t,"."))}function oJe(e){return!pt(bm(e),t=>Yi(t,"."))}function cJe(e,t,n,i,s,o){var c,_;let u=as(n,(_=(c=i.host).getCurrentDirectory)==null?void 0:_.call(c)),g=sE(u,i);if(!g||!g.contents.packageJsonContent.exports||typeof g.contents.packageJsonContent.name!="string")return;let m=Iu(t),h=Iu(g.contents.packageJsonContent.name);if(!Oi(h,(D,E)=>m[E]===D))return;let S=m.slice(h.length),T=Dr(S)?`.${Fo}${S.join(Fo)}`:".";if(F0(i.compilerOptions)&&!V0(n))return fU(g,e,T,i,s,o);let x=e&5,I=e&-6;return fU(g,x,T,i,s,o)||fU(g,I,T,i,s,o)}function fU(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"&&oJe(e.contents.packageJsonContent.exports)?c=e.contents.packageJsonContent.exports:bo(e.contents.packageJsonContent.exports,".")&&(c=e.contents.packageJsonContent.exports["."]),c)return mSe(t,i,s,o,n,e,!1)(c,"",!1,".")}else if($7(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return i.traceEnabled&&us(i.host,p.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),sp(void 0);let c=dSe(t,i,s,o,n,e.contents.packageJsonContent.exports,e,!1);if(c)return c}return i.traceEnabled&&us(i.host,p.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),sp(void 0)}}function lJe(e,t,n,i,s,o){var c,_;if(t==="#"||Yi(t,"#/"))return i.traceEnabled&&us(i.host,p.Invalid_import_specifier_0_has_no_possible_resolutions,t),sp(void 0);let u=as(n,(_=(c=i.host).getCurrentDirectory)==null?void 0:_.call(c)),g=sE(u,i);if(!g)return i.traceEnabled&&us(i.host,p.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,u),sp(void 0);if(!g.contents.packageJsonContent.imports)return i.traceEnabled&&us(i.host,p.package_json_scope_0_has_no_imports_defined,g.packageDirectory),sp(void 0);let m=dSe(e,i,s,o,t,g.contents.packageJsonContent.imports,g,!0);return m||(i.traceEnabled&&us(i.host,p.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,g.packageDirectory),sp(void 0))}function pU(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 dSe(e,t,n,i,s,o,c,_){let u=mSe(e,t,n,i,s,c,_);if(!Jo(s,Fo)&&!s.includes("*")&&bo(o,s)){let h=o[s];return u(h,"",!1,s)}let g=lf(An(bm(o),h=>uJe(h)||Jo(h,"/")),pU);for(let h of g)if(t.features&16&&m(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(Jo(h,"*")&&Yi(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(Yi(s,h)){let S=o[h],T=s.substring(h.length);return u(S,T,!1,h)}function m(h,S){if(Jo(h,"*"))return!1;let T=h.indexOf("*");return T===-1?!1:Yi(S,h.substring(0,T))&&Jo(S,h.substring(T+1))}}function uJe(e){let t=e.indexOf("*");return t!==-1&&t===e.lastIndexOf("*")}function mSe(e,t,n,i,s,o,c){return _;function _(u,g,m,h){var S,T;if(typeof u=="string"){if(!m&&g.length>0&&!Jo(u,"/"))return t.traceEnabled&&us(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),sp(void 0);if(!Yi(u,"./")){if(c&&!Yi(u,"../")&&!Yi(u,"/")&&!ff(u)){let K=m?u.replace(/\*/g,g):u+g;q0(t,p.Using_0_subpath_1_with_target_2,"imports",h,K),q0(t,p.Resolving_module_0_from_1,K,o.packageDirectory+"/");let U=SM(t.features,K,o.packageDirectory+"/",t.compilerOptions,t.host,n,e,!1,i,t.conditions);return(S=t.failedLookupLocations)==null||S.push(...U.failedLookupLocations??qe),(T=t.affectingLocations)==null||T.push(...U.affectingLocations??qe),sp(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&&us(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),sp(void 0)}let O=(Of(u)?Iu(u).slice(1):Iu(u)).slice(1);if(O.includes("..")||O.includes(".")||O.includes("node_modules"))return t.traceEnabled&&us(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),sp(void 0);let F=Bn(o.packageDirectory,u),B=Iu(g);if(B.includes("..")||B.includes(".")||B.includes("node_modules"))return t.traceEnabled&&us(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),sp(void 0);t.traceEnabled&&us(t.host,p.Using_0_subpath_1_with_target_2,c?"imports":"exports",h,m?u.replace(/\*/g,g):u+g);let G=x(m?F.replace(/\*/g,g):F+g),$=D(G,g,Bn(o.packageDirectory,"package.json"),c);return $||sp(X2(o,cU(e,G,u,!1,t),t))}else if(typeof u=="object"&&u!==null)if(Array.isArray(u)){if(!Dr(u))return t.traceEnabled&&us(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),sp(void 0);for(let E of u){let O=_(E,g,m,h);if(O)return O}}else{q0(t,p.Entering_conditional_exports);for(let E of bm(u))if(E==="default"||t.conditions.includes(E)||kM(t.conditions,E)){q0(t,p.Matched_0_condition_1,c?"imports":"exports",E);let O=u[E],F=_(O,g,m,h);if(F)return q0(t,p.Resolved_under_condition_0,E),q0(t,p.Exiting_conditional_exports),F;q0(t,p.Failed_to_resolve_under_condition_0,E)}else q0(t,p.Saw_non_matching_condition_0,E);q0(t,p.Exiting_conditional_exports);return}else if(u===null)return t.traceEnabled&&us(t.host,p.package_json_scope_0_explicitly_maps_specifier_1_to_null,o.packageDirectory,s),sp(void 0);return t.traceEnabled&&us(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),sp(void 0);function x(E){var O,F;return E===void 0?E:as(E,(F=(O=t.host).getCurrentDirectory)==null?void 0:F.call(O))}function I(E,O){return El(Bn(E,O))}function D(E,O,F,B){var G,$,K,U;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!E.includes("/node_modules/")&&(!t.compilerOptions.configFile||kp(o.packageDirectory,x(t.compilerOptions.configFile.fileName),!dU(t)))){let te=cy({useCaseSensitiveFileNames:()=>dU(t)}),V=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){let ne=x(gE(t.compilerOptions,()=>[],(($=(G=t.host).getCurrentDirectory)==null?void 0:$.call(G))||"",te));V.push(ne)}else if(t.requestContainingDirectory){let ne=x(Bn(t.requestContainingDirectory,"index.ts")),ie=x(gE(t.compilerOptions,()=>[ne,x(F)],((U=(K=t.host).getCurrentDirectory)==null?void 0:U.call(K))||"",te));V.push(ie);let oe=El(ie);for(;oe&&oe.length>1;){let de=Iu(oe);de.pop();let ye=Ib(de);V.unshift(ye),oe=El(ye)}}V.length>1&&t.reportDiagnostic(cc(B?p.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:p.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,O===""?".":O,F));for(let ne of V){let ie=me(ne);for(let oe of ie)if(kp(oe,E,!dU(t))){let de=E.slice(oe.length+1),ye=Bn(ne,de),H=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(let ve of H)if(nc(ye,ve)){let Ge=Vz(ye);for(let De of Ge){if(!pSe(e,De))continue;let se=i6(ye,De,ve,!dU(t));if(t.host.fileExists(se))return sp(X2(o,cU(e,se,void 0,!1,t),t))}}}}}return;function me(te){var V,ne;let ie=t.compilerOptions.configFile?((ne=(V=t.host).getCurrentDirectory)==null?void 0:ne.call(V))||"":te,oe=[];return t.compilerOptions.declarationDir&&oe.push(x(I(ie,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&oe.push(x(I(ie,t.compilerOptions.outDir))),oe}}}}function kM(e,t){if(!e.includes("types")||!Yi(t,"types@"))return!1;let n=N8.tryParse(t.substring(6));return n?n.test(Ui):!1}function gSe(e,t,n,i,s,o){return hSe(e,t,n,i,!1,s,o)}function _Je(e,t,n){return hSe(4,e,t,n,!0,void 0,void 0)}function hSe(e,t,n,i,s,o,c){let _=i.features===0?void 0:i.features&32||i.conditions.includes("import")?99:1,u=e&5,g=e&-6;if(u){q0(i,p.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,B7(u));let h=m(u);if(h)return h}if(g&&!s)return q0(i,p.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,B7(g)),m(g);function m(h){return Pg(i.host,iu(n),S=>{if(fl(S)!=="node_modules"){let T=SSe(o,t,_,S,c,i);return T||sp(ySe(h,t,S,i,s,o,c))}})}}function Pg(e,t,n){var i;let s=(i=e?.getGlobalTypingsCacheLocation)==null?void 0:i.call(e);return wP(t,o=>{let c=n(o);if(c!==void 0)return c;if(o===s)return!1})||void 0}function ySe(e,t,n,i,s,o,c){let _=Bn(n,"node_modules"),u=Vd(_,i.host);if(!u&&i.traceEnabled&&us(i.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,_),!s){let g=vSe(e,t,_,u,i,o,c);if(g)return g}if(e&4){let g=Bn(_,"@types"),m=u;return u&&!Vd(g,i.host)&&(i.traceEnabled&&us(i.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,g),m=!1),vSe(4,bSe(t,i),g,m,i,o,c)}}function vSe(e,t,n,i,s,o,c){var _,u;let g=na(Bn(n,t)),{packageName:m,rest:h}=q7(t),S=Bn(n,m),T,x=Ok(g,!i,s);if(h!==""&&x&&(!(s.features&8)||!bo(((_=T=Ok(S,!i,s))==null?void 0:_.contents.packageJsonContent)??qe,"exports"))){let E=NI(e,g,!i,s);if(E)return rU(E);let O=_U(e,g,!i,s,x);return X2(x,O,s)}let I=(E,O,F,B)=>{let G=(h||!(B.features&32))&&NI(E,O,F,B)||_U(E,O,F,B,x);return!G&&!h&&x&&(x.contents.packageJsonContent.exports===void 0||x.contents.packageJsonContent.exports===null)&&B.features&32&&(G=NI(E,Bn(O,"index.js"),F,B)),X2(x,G,B)};if(h!==""&&(x=T??Ok(S,!i,s)),x&&(s.resolvedPackageDirectory=!0),x&&x.contents.packageJsonContent.exports&&s.features&8)return(u=fU(x,e,Bn(".",h),s,o,c))==null?void 0:u.value;let D=h!==""&&x?fSe(x,s):void 0;if(D){s.traceEnabled&&us(s.host,p.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,D.version,Ui,h);let E=i&&Vd(S,s.host),O=L4(D.paths),F=Fse(e,h,S,D.paths,O,I,!E,s);if(F)return F.value}return I(e,g,!i,s)}function Fse(e,t,n,i,s,o,c,_){let u=PJ(s,t);if(u){let g=ys(u)?void 0:WY(u,t),m=ys(u)?u:jY(u);return _.traceEnabled&&us(_.host,p.Module_name_0_matched_pattern_1,t,m),{value:or(i[m],S=>{let T=g?vk(S,g):S,x=na(Bn(n,T));_.traceEnabled&&us(_.host,p.Trying_substitution_0_candidate_module_location_Colon_1,S,T);let I=bh(S);if(I!==void 0){let D=lU(x,c,_);if(D!==void 0)return rU({path:D,ext:I,resolvedUsingTsExtension:void 0})}return o(e,x,c||!Vd(Yn(x),_.host),_)})}}}var Ose="__";function bSe(e,t){let n=MI(e);return t.traceEnabled&&n!==e&&us(t.host,p.Scoped_package_detected_looking_in_0,n),n}function H7(e){return`@types/${MI(e)}`}function MI(e){if(Yi(e,"@")){let t=e.replace(Fo,Ose);if(t!==e)return t.slice(1)}return e}function aE(e){let t=gP(e,"@types/");return t!==e?xM(t):e}function xM(e){return e.includes(Ose)?"@"+e.replace(Ose,Fo):e}function SSe(e,t,n,i,s,o){let c=e&&e.getFromNonRelativeNameCache(t,n,i,s);if(c)return o.traceEnabled&&us(o.host,p.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 Lse(e,t,n,i,s,o){let c=G0(n,i),_=[],u=[],g=Yn(t),m=[],h={compilerOptions:n,host:i,traceEnabled:c,failedLookupLocations:_,affectingLocations:u,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:g,reportDiagnostic:x=>void m.push(x),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},S=T(5)||T(2|(n.resolveJsonModule?8:0));return Q1e(e,S&&S.value,S?.value&&V0(S.value.path),_,u,m,h,s);function T(x){let I=iSe(x,e,g,Mse,h);if(I)return{value:I};if(Jl(e)){let D=na(Bn(g,e));return sp(Mse(x,D,!1,h))}else{let D=Pg(h.host,g,E=>{let O=SSe(s,e,void 0,E,o,h);if(O)return O;let F=na(Bn(E,e));return sp(Mse(x,F,!1,h))});if(D)return D;if(x&5){let E=_Je(e,g,h);return x&4&&(E??(E=TSe(e,h))),E}}}}function TSe(e,t){if(t.compilerOptions.typeRoots)for(let n of t.compilerOptions.typeRoots){let i=Z1e(n,e,t),s=Vd(n,t.host);!s&&t.traceEnabled&&us(t.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,n);let o=NI(4,i,!s,t);if(o){let _=TM(o.path),u=_?Ok(_,!1,t):void 0;return sp(X2(u,o,t))}let c=Rse(4,i,!s,t);if(c)return sp(c)}}function RI(e,t){return $re(e)||!!t&&Ll(t)}function jse(e,t,n,i,s,o){let c=G0(n,i);c&&us(i,p.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,s);let _=[],u=[],g=[],m={compilerOptions:n,host:i,traceEnabled:c,failedLookupLocations:_,affectingLocations:u,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:S=>void g.push(S),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},h=ySe(4,e,s,m,!1,void 0,void 0);return K1e(h,!0,_,u,g,m.resultFromCache,void 0)}function sp(e){return e!==void 0?{value:e}:void 0}function q0(e,t,...n){e.traceEnabled&&us(e.host,t,...n)}function dU(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames=="boolean"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var Wse=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(Wse||{});function gy(e,t){return e.body&&!e.body.parent&&(Xa(e.body,e),zb(e.body,!1)),e.body?Bse(e.body,t):1}function Bse(e,t=new Map){let n=Ua(e);if(t.has(n))return t.get(n)||0;t.set(n,void 0);let i=fJe(e,t);return t.set(n,i),i}function fJe(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(Nb(e))return 2;break;case 272:case 271:if(!ei(e,32))return 0;break;case 278:let n=e;if(!n.moduleSpecifier&&n.exportClause&&n.exportClause.kind===279){let i=0;for(let s of n.exportClause.elements){let o=pJe(s,t);if(o>i&&(i=o),i===1)return i}return i}break;case 268:{let i=0;return Es(e,s=>{let o=Bse(s,t);switch(o){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:w.assertNever(o)}}),i}case 267:return gy(e,t);case 80:if(e.flags&4096)return 0}return 1}function pJe(e,t){let n=e.propertyName||e.name;if(n.kind!==80)return 1;let i=e.parent;for(;i;){if(Fs(i)||Lm(i)||Mi(i)){let s=i.statements,o;for(let c of s)if(m6(c,n)){c.parent||(Xa(c,i),zb(c,!1));let _=Bse(c,t);if((o===void 0||_>o)&&(o=_),o===1)return o;c.kind===271&&(o=1)}if(o!==void 0)return o}i=i.parent}return 1}var zse=(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))(zse||{});function Ag(e,t,n){return w.attachFlowNodeDebugInfo({flags:e,id:0,node:t,antecedent:n})}var dJe=mJe();function Jse(e,t){dc("beforeBind"),dJe(e,t),dc("afterBind"),Tp("Bind","beforeBind","afterBind")}function mJe(){var e,t,n,i,s,o,c,_,u,g,m,h,S,T,x,I,D,E,O,F,B,G,$,K,U,me=!1,te=0,V,ne,ie=Ag(1,void 0,void 0),oe=Ag(1,void 0,void 0),de=j();return H;function ye(L,ze,...Rt){return Cp(Fr(L)||e,L,ze,...Rt)}function H(L,ze){var Rt,Er;e=L,t=ze,n=wa(t),U=ve(e,ze),ne=new Set,te=0,V=mu.getSymbolConstructor(),w.attachFlowNodeDebugInfo(ie),w.attachFlowNodeDebugInfo(oe),e.locals||((Rt=_n)==null||Rt.push(_n.Phase.Bind,"bindSourceFile",{path:e.path},!0),Lr(e),(Er=_n)==null||Er.pop(),e.symbolCount=te,e.classifiableNames=ne,Qo(),Oa()),e=void 0,t=void 0,n=void 0,i=void 0,s=void 0,o=void 0,c=void 0,_=void 0,u=void 0,m=void 0,g=!1,h=void 0,S=void 0,T=void 0,x=void 0,I=void 0,D=void 0,E=void 0,F=void 0,B=!1,G=!1,$=!1,me=!1,K=0}function ve(L,ze){return Pu(ze,"alwaysStrict")&&!L.isDeclarationFile?!0:!!L.externalModuleIndicator}function Ge(L,ze){return te++,new V(L,ze)}function De(L,ze,Rt){L.flags|=Rt,ze.symbol=L,L.declarations=Zh(L.declarations,ze),Rt&1955&&!L.exports&&(L.exports=ea()),Rt&6240&&!L.members&&(L.members=ea()),L.constEnumOnlyModule&&L.flags&304&&(L.constEnumOnlyModule=!1),Rt&111551&&r4(L,ze)}function se(L){if(L.kind===277)return L.isExportEquals?"export=":"default";let ze=vs(L);if(ze){if(e_(L)){let Rt=Ip(ze);return xg(L)?"__global":`"${Rt}"`}if(ze.kind===167){let Rt=ze.expression;if(tp(Rt))return gc(Rt.text);if(QF(Rt))return sa(Rt.operator)+Rt.operand.text;w.fail("Only computed properties with literal names have declaration names")}if(ji(ze)){let Rt=su(L);if(!Rt)return;let Er=Rt.symbol;return f4(Er,ze.escapedText)}return Qd(ze)?D2(ze):Pm(ze)?aA(ze):void 0}switch(L.kind){case 176:return"__constructor";case 184:case 179:case 323:return"__call";case 185:case 180:return"__new";case 181:return"__index";case 278:return"__export";case 307:return"export=";case 226:if(Vc(L)===2)return"export=";w.fail("Unknown binary declaration kind");break;case 317:return f2(L)?"__new":"__call";case 169:return w.assert(L.parent.kind===317,"Impossible parameter parent kind",()=>`parent is: ${w.formatSyntaxKind(L.parent.kind)}, expected JSDocFunctionType`),"arg"+L.parent.parameters.indexOf(L)}}function xe(L){return Gl(L)?Co(L.name):Li(w.checkDefined(se(L)))}function _e(L,ze,Rt,Er,cs,bi,Zi){w.assert(Zi||!oy(Rt));let gs=ei(Rt,2048)||zu(Rt)&&kg(Rt.name),Uo=Zi?"__computed":gs&&ze?"default":se(Rt),_a;if(Uo===void 0)_a=Ge(0,"__missing");else if(_a=L.get(Uo),Er&2885600&&ne.add(Uo),!_a)L.set(Uo,_a=Ge(0,Uo)),bi&&(_a.isReplaceableByMethod=!0);else{if(bi&&!_a.isReplaceableByMethod)return _a;if(_a.flags&cs){if(_a.isReplaceableByMethod)L.set(Uo,_a=Ge(0,Uo));else if(!(Er&3&&_a.flags&67108864)){Gl(Rt)&&Xa(Rt.name,Rt);let vl=_a.flags&2?p.Cannot_redeclare_block_scoped_variable_0:p.Duplicate_identifier_0,Df=!0;(_a.flags&384||Er&384)&&(vl=p.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,Df=!1);let Lp=!1;Dr(_a.declarations)&&(gs||_a.declarations&&_a.declarations.length&&Rt.kind===277&&!Rt.isExportEquals)&&(vl=p.A_module_cannot_have_multiple_default_exports,Df=!1,Lp=!0);let tm=[];sd(Rt)&&Tc(Rt.type)&&ei(Rt,32)&&_a.flags&2887656&&tm.push(ye(Rt,p.Did_you_mean_0,`export type { ${Li(Rt.name.escapedText)} }`));let ky=vs(Rt)||Rt;or(_a.declarations,(Z_,rm)=>{let Xm=vs(Z_)||Z_,_d=Df?ye(Xm,vl,xe(Z_)):ye(Xm,vl);e.bindDiagnostics.push(Lp?Xs(_d,ye(ky,rm===0?p.Another_export_default_is_here:p.and_here)):_d),Lp&&tm.push(ye(Xm,p.The_first_export_default_is_here))});let Ph=Df?ye(ky,vl,xe(Rt)):ye(ky,vl);e.bindDiagnostics.push(Xs(Ph,...tm)),_a=Ge(0,Uo)}}}return De(_a,Rt,Er),_a.parent?w.assert(_a.parent===ze,"Existing symbol parent should match new one"):_a.parent=ze,_a}function tt(L,ze,Rt){let Er=!!(Db(L)&32)||ct(L);if(ze&2097152)return L.kind===281||L.kind===271&&Er?_e(s.symbol.exports,s.symbol,L,ze,Rt):(w.assertNode(s,Sg),_e(s.locals,void 0,L,ze,Rt));if(td(L)&&w.assert(un(L)),!e_(L)&&(Er||s.flags&128)){if(!Sg(s)||!s.locals||ei(L,2048)&&!se(L))return _e(s.symbol.exports,s.symbol,L,ze,Rt);let cs=ze&111551?1048576:0,bi=_e(s.locals,void 0,L,cs,Rt);return bi.exportSymbol=_e(s.symbol.exports,s.symbol,L,ze,Rt),L.localSymbol=bi,bi}else return w.assertNode(s,Sg),_e(s.locals,void 0,L,ze,Rt)}function ct(L){if(L.parent&&nl(L)&&(L=L.parent),!td(L))return!1;if(!tM(L)&&L.fullName)return!0;let ze=vs(L);return ze?!!(T4(ze.parent)&&zf(ze.parent)||Ul(ze.parent)&&Db(ze.parent)&32):!1}function le(L,ze){let Rt=s,Er=o,cs=c,bi=G;if(L.kind===219&&L.body.kind!==241&&(G=!0),ze&1?(L.kind!==219&&(o=s),s=c=L,ze&32&&(s.locals=ea(),dr(s))):ze&2&&(c=L,ze&32&&(c.locals=void 0)),ze&4){let Zi=h,gs=S,Uo=T,_a=x,vl=E,Df=F,Lp=B,tm=ze&16&&!ei(L,1024)&&!L.asteriskToken&&!!hS(L)||L.kind===175;tm||(h=Ag(2,void 0,void 0),ze&144&&(h.node=L)),x=tm||L.kind===176||un(L)&&(L.kind===262||L.kind===218)?$t():void 0,E=void 0,S=void 0,T=void 0,F=void 0,B=!1,Ie(L),L.flags&=-5633,!(h.flags&1)&&ze&8&&Zp(L.body)&&(L.flags|=512,B&&(L.flags|=1024),L.endFlowNode=h),L.kind===307&&(L.flags|=K,L.endFlowNode=h),x&&(At(x,h),h=ui(x),(L.kind===176||L.kind===175||un(L)&&(L.kind===262||L.kind===218))&&(L.returnFlowNode=h)),tm||(h=Zi),S=gs,T=Uo,x=_a,E=vl,F=Df,B=Lp}else ze&64?(g=!1,Ie(L),w.assertNotNode(L,je),L.flags=g?L.flags|256:L.flags&-257):Ie(L);G=bi,s=Rt,o=Er,c=cs}function Je(L){ee(L,ze=>ze.kind===262?Lr(ze):void 0),ee(L,ze=>ze.kind!==262?Lr(ze):void 0)}function ee(L,ze=Lr){L!==void 0&&or(L,ze)}function Ne(L){Es(L,Lr,ee)}function Ie(L){let ze=me;if(me=!1,Ji(L)){$w(L)&&L.flowNode&&(L.flowNode=void 0),Ne(L),Ci(L),me=ze;return}switch(L.kind>=243&&L.kind<=259&&(!t.allowUnreachableCode||L.kind===253)&&(L.flowNode=h),L.kind){case 247:oa(L);break;case 246:xr(L);break;case 248:xs(L);break;case 249:case 250:Ye(L);break;case 245:Nt(L);break;case 253:case 257:ae(L);break;case 252:case 251:Ae(L);break;case 258:Xe(L);break;case 255:st(L);break;case 269:Dt(L);break;case 296:Fe(L);break;case 244:St(L);break;case 256:Mt(L);break;case 224:Pe(L);break;case 225:kt(L);break;case 226:if(rv(L)){me=ze,pe(L);return}de(L);break;case 220:Re(L);break;case 227:q(L);break;case 260:jt(L);break;case 211:case 212:ar(L);break;case 213:Gt(L);break;case 235:vr(L);break;case 346:case 338:case 340:en(L);break;case 351:$r(L);break;case 307:{Je(L.statements),Lr(L.endOfFileToken);break}case 241:case 268:Je(L.statements);break;case 208:we(L);break;case 169:ut(L);break;case 210:case 209:case 303:case 230:me=ze;default:Ne(L);break}Ci(L),me=ze}function Ce(L){switch(L.kind){case 80:case 110:return!0;case 211:case 212:return bt(L);case 213:return zt(L);case 217:if(zS(L))return!1;case 235:return Ce(L.expression);case 226:return Or(L);case 224:return L.operator===54&&Ce(L.operand);case 221:return Ce(L.expression)}return!1}function Ve(L){switch(L.kind){case 80:case 110:case 108:case 236:return!0;case 211:case 217:case 235:return Ve(L.expression);case 212:return(tp(L.argumentExpression)||mo(L.argumentExpression))&&Ve(L.expression);case 226:return L.operatorToken.kind===28&&Ve(L.right)||ly(L.operatorToken.kind)&&M_(L.left)}return!1}function bt(L){return Ve(L)||ju(L)&&bt(L.expression)}function zt(L){if(L.arguments){for(let ze of L.arguments)if(bt(ze))return!0}return!!(L.expression.kind===211&&bt(L.expression.expression))}function ur(L,ze){return pI(L)&&_t(L.expression)&&Ha(ze)}function Or(L){switch(L.operatorToken.kind){case 64:case 76:case 77:case 78:return bt(L.left);case 35:case 36:case 37:case 38:let ze=Ka(L.left),Rt=Ka(L.right);return _t(ze)||_t(Rt)||ur(Rt,ze)||ur(ze,Rt)||BP(Rt)&&Ce(ze)||BP(ze)&&Ce(Rt);case 104:return _t(L.left);case 103:return Ce(L.right);case 28:return Ce(L.right)}return!1}function _t(L){switch(L.kind){case 217:return _t(L.expression);case 226:switch(L.operatorToken.kind){case 64:return _t(L.left);case 28:return _t(L.right)}}return bt(L)}function $t(){return Ag(4,void 0,void 0)}function Hr(){return Ag(8,void 0,void 0)}function hi(L,ze,Rt){return Ag(1024,{target:L,antecedents:ze},Rt)}function _s(L){L.flags|=L.flags&2048?4096:2048}function At(L,ze){!(ze.flags&1)&&!Ts(L.antecedent,ze)&&((L.antecedent||(L.antecedent=[])).push(ze),_s(ze))}function zn(L,ze,Rt){return ze.flags&1?ze:Rt?(Rt.kind===112&&L&64||Rt.kind===97&&L&32)&&!eF(Rt)&&!NB(Rt.parent)?ie:Ce(Rt)?(_s(ze),Ag(L,Rt,ze)):ze:L&32?ze:ie}function ns(L,ze,Rt,Er){return _s(L),Ag(128,{switchStatement:ze,clauseStart:Rt,clauseEnd:Er},L)}function Rn(L,ze,Rt){_s(ze),$=!0;let Er=Ag(L,Rt,ze);return E&&At(E,Er),Er}function hn(L,ze){return _s(L),$=!0,Ag(512,ze,L)}function ui(L){let ze=L.antecedent;return ze?ze.length===1?ze[0]:L:ie}function Ue(L){let ze=L.parent;switch(ze.kind){case 245:case 247:case 246:return ze.expression===L;case 248:case 227:return ze.condition===L}return!1}function ht(L){for(;;)if(L.kind===217)L=L.expression;else if(L.kind===224&&L.operator===54)L=L.operand;else return b4(L)}function sr(L){return Zz(Ka(L))}function Zr(L){for(;b_(L.parent)||Vb(L.parent)&&L.parent.operator===54;)L=L.parent;return!Ue(L)&&!ht(L.parent)&&!(ju(L.parent)&&L.parent.expression===L)}function Zn(L,ze,Rt,Er){let cs=I,bi=D;I=Rt,D=Er,L(ze),I=cs,D=bi}function Xn(L,ze,Rt){Zn(Lr,L,ze,Rt),(!L||!sr(L)&&!ht(L)&&!(ju(L)&&FP(L)))&&(At(ze,zn(32,h,L)),At(Rt,zn(64,h,L)))}function Pi(L,ze,Rt){let Er=S,cs=T;S=ze,T=Rt,Lr(L),S=Er,T=cs}function Rs(L,ze){let Rt=F;for(;Rt&&L.parent.kind===256;)Rt.continueTarget=ze,Rt=Rt.next,L=L.parent;return ze}function oa(L){let ze=Rs(L,Hr()),Rt=$t(),Er=$t();At(ze,h),h=ze,Xn(L.expression,Rt,Er),h=ui(Rt),Pi(L.statement,Er,ze),At(ze,h),h=ui(Er)}function xr(L){let ze=Hr(),Rt=Rs(L,$t()),Er=$t();At(ze,h),h=ze,Pi(L.statement,Er,Rt),At(Rt,h),h=ui(Rt),Xn(L.expression,ze,Er),h=ui(Er)}function xs(L){let ze=Rs(L,Hr()),Rt=$t(),Er=$t(),cs=$t();Lr(L.initializer),At(ze,h),h=ze,Xn(L.condition,Rt,cs),h=ui(Rt),Pi(L.statement,cs,Er),At(Er,h),h=ui(Er),Lr(L.incrementor),At(ze,h),h=ui(cs)}function Ye(L){let ze=Rs(L,Hr()),Rt=$t();Lr(L.expression),At(ze,h),h=ze,L.kind===250&&Lr(L.awaitModifier),At(Rt,h),Lr(L.initializer),L.initializer.kind!==261&&Vt(L.initializer),Pi(L.statement,Rt,ze),At(ze,h),h=ui(Rt)}function Nt(L){let ze=$t(),Rt=$t(),Er=$t();Xn(L.expression,ze,Rt),h=ui(ze),Lr(L.thenStatement),At(Er,h),h=ui(Rt),Lr(L.elseStatement),At(Er,h),h=ui(Er)}function ae(L){let ze=G;G=!0,Lr(L.expression),G=ze,L.kind===253&&(B=!0,x&&At(x,h)),h=ie,$=!0}function lt(L){for(let ze=F;ze;ze=ze.next)if(ze.name===L)return ze}function Y(L,ze,Rt){let Er=L.kind===252?ze:Rt;Er&&(At(Er,h),h=ie,$=!0)}function Ae(L){if(Lr(L.label),L.label){let ze=lt(L.label.escapedText);ze&&(ze.referenced=!0,Y(L,ze.breakTarget,ze.continueTarget))}else Y(L,S,T)}function Xe(L){let ze=x,Rt=E,Er=$t(),cs=$t(),bi=$t();if(L.finallyBlock&&(x=cs),At(bi,h),E=bi,Lr(L.tryBlock),At(Er,h),L.catchClause&&(h=ui(bi),bi=$t(),At(bi,h),E=bi,Lr(L.catchClause),At(Er,h)),x=ze,E=Rt,L.finallyBlock){let Zi=$t();Zi.antecedent=Ki(Ki(Er.antecedent,bi.antecedent),cs.antecedent),h=Zi,Lr(L.finallyBlock),h.flags&1?h=ie:(x&&cs.antecedent&&At(x,hi(Zi,cs.antecedent,h)),E&&bi.antecedent&&At(E,hi(Zi,bi.antecedent,h)),h=Er.antecedent?hi(Zi,Er.antecedent,h):ie)}else h=ui(Er)}function st(L){let ze=$t();Lr(L.expression);let Rt=S,Er=O;S=ze,O=h,Lr(L.caseBlock),At(ze,h);let cs=or(L.caseBlock.clauses,bi=>bi.kind===297);L.possiblyExhaustive=!cs&&!ze.antecedent,cs||At(ze,ns(O,L,0,0)),S=Rt,O=Er,h=ui(ze)}function Dt(L){let ze=L.clauses,Rt=L.parent.expression.kind===112||Ce(L.parent.expression),Er=ie;for(let cs=0;cs<ze.length;cs++){let bi=cs;for(;!ze[cs].statements.length&&cs+1<ze.length;)Er===ie&&(h=O),Lr(ze[cs]),cs++;let Zi=$t();At(Zi,Rt?ns(O,L.parent,bi,cs+1):O),At(Zi,Er),h=ui(Zi);let gs=ze[cs];Lr(gs),Er=h,!(h.flags&1)&&cs!==ze.length-1&&t.noFallthroughCasesInSwitch&&(gs.fallthroughFlowNode=h)}}function Fe(L){let ze=h;h=O,Lr(L.expression),h=ze,ee(L.statements)}function St(L){Lr(L.expression),vt(L.expression)}function vt(L){if(L.kind===213){let ze=L;ze.expression.kind!==108&&S4(ze.expression)&&(h=hn(h,ze))}}function Mt(L){let ze=$t();F={next:F,name:L.label.escapedText,breakTarget:ze,continueTarget:void 0,referenced:!1},Lr(L.label),Lr(L.statement),!F.referenced&&!t.allowUnusedLabels&&Br(Kre(t),L.label,p.Unused_label),F=F.next,At(ze,h),h=ui(ze)}function Ke(L){L.kind===226&&L.operatorToken.kind===64?Vt(L.left):Vt(L)}function Vt(L){if(Ve(L))h=Rn(16,h,L);else if(L.kind===209)for(let ze of L.elements)ze.kind===230?Vt(ze.expression):Ke(ze);else if(L.kind===210)for(let ze of L.properties)ze.kind===303?Ke(ze.initializer):ze.kind===304?Vt(ze.name):ze.kind===305&&Vt(ze.expression)}function on(L,ze,Rt){let Er=$t();L.operatorToken.kind===56||L.operatorToken.kind===77?Xn(L.left,Er,Rt):Xn(L.left,ze,Er),h=ui(Er),Lr(L.operatorToken),_A(L.operatorToken.kind)?(Zn(Lr,L.right,ze,Rt),Vt(L.left),At(ze,zn(32,h,L)),At(Rt,zn(64,h,L))):Xn(L.right,ze,Rt)}function Pe(L){if(L.operator===54){let ze=I;I=D,D=ze,Ne(L),D=I,I=ze}else Ne(L),(L.operator===46||L.operator===47)&&Vt(L.operand)}function kt(L){Ne(L),(L.operator===46||L.operator===47)&&Vt(L.operand)}function pe(L){me?(me=!1,Lr(L.operatorToken),Lr(L.right),me=!0,Lr(L.left)):(me=!0,Lr(L.left),me=!1,Lr(L.operatorToken),Lr(L.right)),Vt(L.left)}function j(){return S7(L,ze,Rt,Er,cs,void 0);function L(Zi,gs){if(gs){gs.stackIndex++,Xa(Zi,i);let _a=U;Ta(Zi);let vl=i;i=Zi,gs.skip=!1,gs.inStrictModeStack[gs.stackIndex]=_a,gs.parentStack[gs.stackIndex]=vl}else gs={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};let Uo=Zi.operatorToken.kind;if(cO(Uo)||_A(Uo)){if(Zr(Zi)){let _a=$t(),vl=h,Df=$;$=!1,on(Zi,_a,_a),h=$?ui(_a):vl,$||($=Df)}else on(Zi,I,D);gs.skip=!0}return gs}function ze(Zi,gs,Uo){if(!gs.skip){let _a=bi(Zi);return Uo.operatorToken.kind===28&&vt(Zi),_a}}function Rt(Zi,gs,Uo){gs.skip||Lr(Zi)}function Er(Zi,gs,Uo){if(!gs.skip){let _a=bi(Zi);return Uo.operatorToken.kind===28&&vt(Zi),_a}}function cs(Zi,gs){if(!gs.skip){let vl=Zi.operatorToken.kind;if(ly(vl)&&!A0(Zi)&&(Vt(Zi.left),vl===64&&Zi.left.kind===212)){let Df=Zi.left;_t(Df.expression)&&(h=Rn(256,h,Zi))}}let Uo=gs.inStrictModeStack[gs.stackIndex],_a=gs.parentStack[gs.stackIndex];Uo!==void 0&&(U=Uo),_a!==void 0&&(i=_a),gs.skip=!1,gs.stackIndex--}function bi(Zi){if(Zi&&vn(Zi)&&!rv(Zi))return Zi;Lr(Zi)}}function Re(L){Ne(L),L.expression.kind===211&&Vt(L.expression)}function q(L){let ze=$t(),Rt=$t(),Er=$t(),cs=h,bi=$;$=!1,Xn(L.condition,ze,Rt),h=ui(ze),G&&(L.flowNodeWhenTrue=h),Lr(L.questionToken),Lr(L.whenTrue),At(Er,h),h=ui(Rt),G&&(L.flowNodeWhenFalse=h),Lr(L.colonToken),Lr(L.whenFalse),At(Er,h),h=$?ui(Er):cs,$||($=bi)}function yt(L){let ze=Fl(L)?void 0:L.name;if(Ws(ze))for(let Rt of ze.elements)yt(Rt);else h=Rn(16,h,L)}function jt(L){Ne(L),(L.initializer||nk(L.parent.parent))&&yt(L)}function we(L){Lr(L.dotDotDotToken),Lr(L.propertyName),Qt(L.initializer),Lr(L.name)}function ut(L){ee(L.modifiers),Lr(L.dotDotDotToken),Lr(L.questionToken),Lr(L.type),Qt(L.initializer),Lr(L.name)}function Qt(L){if(!L)return;let ze=h;if(Lr(L),ze===ie||ze===h)return;let Rt=$t();At(Rt,ze),At(Rt,h),h=ui(Rt)}function en(L){Lr(L.tagName),L.kind!==340&&L.fullName&&(Xa(L.fullName,L),zb(L.fullName,!1)),typeof L.comment!="string"&&ee(L.comment)}function Pr(L){Ne(L);let ze=Fb(L);ze&&ze.kind!==174&&De(ze.symbol,ze,32)}function $r(L){Lr(L.tagName),Lr(L.moduleSpecifier),Lr(L.attributes),typeof L.comment!="string"&&ee(L.comment)}function it(L,ze,Rt){Zn(Lr,L,ze,Rt),(!ju(L)||FP(L))&&(At(ze,zn(32,h,L)),At(Rt,zn(64,h,L)))}function Tt(L){switch(L.kind){case 211:Lr(L.questionDotToken),Lr(L.name);break;case 212:Lr(L.questionDotToken),Lr(L.argumentExpression);break;case 213:Lr(L.questionDotToken),ee(L.typeArguments),ee(L.arguments);break}}function Ut(L,ze,Rt){let Er=RP(L)?$t():void 0;it(L.expression,Er||ze,Rt),Er&&(h=ui(Er)),Zn(Tt,L,ze,Rt),FP(L)&&(At(ze,zn(32,h,L)),At(Rt,zn(64,h,L)))}function Ot(L){if(Zr(L)){let ze=$t(),Rt=h,Er=$;Ut(L,ze,ze),h=$?ui(ze):Rt,$||($=Er)}else Ut(L,I,D)}function vr(L){ju(L)?Ot(L):Ne(L)}function ar(L){ju(L)?Ot(L):Ne(L)}function Gt(L){if(ju(L))Ot(L);else{let ze=Ka(L.expression);ze.kind===218||ze.kind===219?(ee(L.typeArguments),ee(L.arguments),Lr(L.expression)):(Ne(L),L.expression.kind===108&&(h=hn(h,L)))}if(L.expression.kind===211){let ze=L.expression;je(ze.name)&&_t(ze.expression)&&Fz(ze.name)&&(h=Rn(256,h,L))}}function dr(L){_&&(_.nextContainer=L),_=L}function Sr(L,ze,Rt){switch(s.kind){case 267:return tt(L,ze,Rt);case 307:return tr(L,ze,Rt);case 231:case 263:return kr(L,ze,Rt);case 266:return _e(s.symbol.exports,s.symbol,L,ze,Rt);case 187:case 322:case 210:case 264:case 292:return _e(s.symbol.members,s.symbol,L,ze,Rt);case 184:case 185:case 179:case 180:case 323:case 181:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 317:case 175:case 265:case 200:return s.locals&&w.assertNode(s,Sg),_e(s.locals,void 0,L,ze,Rt)}}function kr(L,ze,Rt){return Ks(L)?_e(s.symbol.exports,s.symbol,L,ze,Rt):_e(s.symbol.members,s.symbol,L,ze,Rt)}function tr(L,ze,Rt){return xl(e)?tt(L,ze,Rt):_e(e.locals,void 0,L,ze,Rt)}function si(L){let ze=Mi(L)?L:Vn(L.body,Lm);return!!ze&&ze.statements.some(Rt=>Xc(Rt)||Ho(Rt))}function zs(L){L.flags&33554432&&!si(L)?L.flags|=128:L.flags&=-129}function ta(L){if(zs(L),e_(L))if(ei(L,32)&&qt(L,p.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),sz(L))Os(L);else{let ze;if(L.name.kind===11){let{text:Er}=L.name;ze=C2(Er),ze===void 0&&qt(L.name,p.Pattern_0_can_have_at_most_one_Asterisk_character,Er)}let Rt=Sr(L,512,110735);e.patternAmbientModules=jr(e.patternAmbientModules,ze&&!ys(ze)?{pattern:ze,symbol:Rt}:void 0)}else{let ze=Os(L);if(ze!==0){let{symbol:Rt}=L;Rt.constEnumOnlyModule=!(Rt.flags&304)&&ze===2&&Rt.constEnumOnlyModule!==!1}}}function Os(L){let ze=gy(L),Rt=ze!==0;return Sr(L,Rt?512:1024,Rt?110735:0),ze}function qc(L){let ze=Ge(131072,se(L));De(ze,L,131072);let Rt=Ge(2048,"__type");De(Rt,L,2048),Rt.members=ea(),Rt.members.set(ze.escapedName,ze)}function uc(L){return bs(L,4096,"__object")}function Bc(L){return bs(L,4096,"__jsxAttributes")}function xi(L,ze,Rt){return Sr(L,ze,Rt)}function bs(L,ze,Rt){let Er=Ge(ze,Rt);return ze&106508&&(Er.parent=s.symbol),De(Er,L,ze),Er}function il(L,ze,Rt){switch(c.kind){case 267:tt(L,ze,Rt);break;case 307:if(mf(s)){tt(L,ze,Rt);break}default:w.assertNode(c,Sg),c.locals||(c.locals=ea(),dr(c)),_e(c.locals,void 0,L,ze,Rt)}}function Qo(){if(!u)return;let L=s,ze=_,Rt=c,Er=i,cs=h;for(let bi of u){let Zi=bi.parent.parent;s=xF(Zi)||e,c=Gd(Zi)||e,h=Ag(2,void 0,void 0),i=bi,Lr(bi.typeExpression);let gs=vs(bi);if((tM(bi)||!bi.fullName)&&gs&&T4(gs.parent)){let Uo=zf(gs.parent);if(Uo){C_(e.symbol,gs.parent,Uo,!!gr(gs,vl=>Nn(vl)&&vl.name.escapedText==="prototype"),!1);let _a=s;switch(e4(gs.parent)){case 1:case 2:mf(e)?s=e:s=void 0;break;case 4:s=gs.parent.expression;break;case 3:s=gs.parent.expression.name;break;case 5:s=GS(e,gs.parent.expression)?e:Nn(gs.parent.expression)?gs.parent.expression.name:gs.parent.expression;break;case 0:return w.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}s&&tt(bi,524288,788968),s=_a}}else tM(bi)||!bi.fullName||bi.fullName.kind===80?(i=bi.parent,il(bi,524288,788968)):Lr(bi.fullName)}s=L,_=ze,c=Rt,i=Er,h=cs}function Oa(){if(m===void 0)return;let L=s,ze=_,Rt=c,Er=i,cs=h;for(let bi of m){let Zi=bS(bi),gs=Zi?xF(Zi):void 0,Uo=Zi?Gd(Zi):void 0;s=gs||e,c=Uo||e,h=Ag(2,void 0,void 0),i=bi,Lr(bi.importClause)}s=L,_=ze,c=Rt,i=Er,h=cs}function Zo(L){if(!e.parseDiagnostics.length&&!(L.flags&33554432)&&!(L.flags&16777216)&&!are(L)){let ze=YT(L);if(ze===void 0)return;U&&ze>=119&&ze<=127?e.bindDiagnostics.push(ye(L,Cf(L),Co(L))):ze===135?xl(e)&&RF(L)?e.bindDiagnostics.push(ye(L,p.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,Co(L))):L.flags&65536&&e.bindDiagnostics.push(ye(L,p.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Co(L))):ze===127&&L.flags&16384&&e.bindDiagnostics.push(ye(L,p.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Co(L)))}}function Cf(L){return su(L)?p.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?p.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:p.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function ms(L){L.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(ye(L,p.constructor_is_a_reserved_word,Co(L))))}function Ys(L){U&&M_(L.left)&&ly(L.operatorToken.kind)&&fo(L,L.left)}function Ba(L){U&&L.variableDeclaration&&fo(L,L.variableDeclaration.name)}function La(L){if(U&&L.expression.kind===80){let ze=ak(e,L.expression);e.bindDiagnostics.push(kl(e,ze.start,ze.length,p.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Ht(L){return je(L)&&(L.escapedText==="eval"||L.escapedText==="arguments")}function fo(L,ze){if(ze&&ze.kind===80){let Rt=ze;if(Ht(Rt)){let Er=ak(e,ze);e.bindDiagnostics.push(kl(e,Er.start,Er.length,sl(L),Ln(Rt)))}}}function sl(L){return su(L)?p.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?p.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:p.Invalid_use_of_0_in_strict_mode}function wc(L){U&&!(L.flags&33554432)&&fo(L,L.name)}function cu(L){return su(L)?p.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?p.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:p.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5}function ec(L){if(n<2&&c.kind!==307&&c.kind!==267&&!Mw(c)){let ze=ak(e,L);e.bindDiagnostics.push(kl(e,ze.start,ze.length,cu(L)))}}function Ic(L){U&&fo(L,L.operand)}function N(L){U&&(L.operator===46||L.operator===47)&&fo(L,L.operand)}function Oe(L){U&&qt(L,p.with_statements_are_not_allowed_in_strict_mode)}function ft(L){U&&wa(t)>=2&&(nte(L.statement)||Lc(L.statement))&&qt(L.label,p.A_label_is_not_allowed_here)}function qt(L,ze,...Rt){let Er=Cm(e,L.pos);e.bindDiagnostics.push(kl(e,Er.start,Er.length,ze,...Rt))}function Br(L,ze,Rt){Hn(L,ze,ze,Rt)}function Hn(L,ze,Rt,Er){pn(L,{pos:w0(ze,e),end:Rt.end},Er)}function pn(L,ze,Rt){let Er=kl(e,ze.pos,ze.end-ze.pos,Rt);L?e.bindDiagnostics.push(Er):e.bindSuggestionDiagnostics=jr(e.bindSuggestionDiagnostics,{...Er,category:2})}function Lr(L){if(!L)return;Xa(L,i),_n&&(L.tracingPath=e.path);let ze=U;if(Ta(L),L.kind>165){let Rt=i;i=L;let Er=mU(L);Er===0?Ie(L):le(L,Er),i=Rt}else{let Rt=i;L.kind===1&&(i=L),Ci(L),i=Rt}U=ze}function Ci(L){if(Lf(L))if(un(L))for(let ze of L.jsDoc)Lr(ze);else for(let ze of L.jsDoc)Xa(ze,L),zb(ze,!1)}function Ai(L){if(!U)for(let ze of L){if(!wm(ze))return;if(io(ze)){U=!0;return}}}function io(L){let ze=pS(e,L.expression);return ze==='"use strict"'||ze==="'use strict'"}function Ta(L){switch(L.kind){case 80:if(L.flags&4096){let Zi=L.parent;for(;Zi&&!td(Zi);)Zi=Zi.parent;il(Zi,524288,788968);break}case 110:return h&&(gt(L)||i.kind===304)&&(L.flowNode=h),Zo(L);case 166:h&&jF(L)&&(L.flowNode=h);break;case 236:case 108:L.flowNode=h;break;case 81:return ms(L);case 211:case 212:let ze=L;h&&Ve(ze)&&(ze.flowNode=h),Xte(ze)&&Qc(ze),un(ze)&&e.commonJsModuleIndicator&&dh(ze)&&!Q7(c,"module")&&_e(e.locals,void 0,ze.expression,134217729,111550);break;case 226:switch(Vc(L)){case 1:Wt(L);break;case 2:sn(L);break;case 3:Yc(L.left,L);break;case 6:hc(L);break;case 4:Js(L);break;case 5:let Zi=L.left.expression;if(un(L)&&je(Zi)){let gs=Q7(c,Zi.escapedText);if(FF(gs?.valueDeclaration)){Js(L);break}}Il(L);break;case 0:break;default:w.fail("Unknown binary expression special property assignment kind")}return Ys(L);case 299:return Ba(L);case 220:return La(L);case 225:return Ic(L);case 224:return N(L);case 254:return Oe(L);case 256:return ft(L);case 197:g=!0;return;case 182:break;case 168:return Gn(L);case 169:return at(L);case 260:return re(L);case 208:return L.flowNode=h,re(L);case 172:case 171:return Go(L);case 303:case 304:return Ar(L,4,0);case 306:return Ar(L,8,900095);case 179:case 180:case 181:return Sr(L,131072,0);case 174:case 173:return Ar(L,8192|(L.questionToken?16777216:0),ed(L)?0:103359);case 262:return Kt(L);case 176:return Sr(L,16384,0);case 177:return Ar(L,32768,46015);case 178:return Ar(L,65536,78783);case 184:case 317:case 323:case 185:return qc(L);case 187:case 322:case 200:return Dc(L);case 332:return Pr(L);case 210:return uc(L);case 218:case 219:return Xt(L);case 213:switch(Vc(L)){case 7:return wl(L);case 8:return Ee(L);case 9:return yc(L);case 0:break;default:return w.fail("Unknown call expression assignment declaration kind")}un(L)&&Km(L);break;case 231:case 263:return U=!0,Jf(L);case 264:return il(L,64,788872);case 265:return il(L,524288,788968);case 266:return Dh(L);case 267:return ta(L);case 292:return Bc(L);case 291:return xi(L,4,0);case 271:case 274:case 276:case 281:return Sr(L,2097152,2097152);case 270:return wf(L);case 273:return up(L);case 278:return bu(L);case 277:return Hc(L);case 307:return Ai(L.statements),$c();case 241:if(!Mw(L.parent))return;case 268:return Ai(L.statements);case 341:if(L.parent.kind===323)return at(L);if(L.parent.kind!==322)break;case 348:let cs=L,bi=cs.isBracketed||cs.typeExpression&&cs.typeExpression.type.kind===316?16777220:4;return Sr(cs,bi,0);case 346:case 338:case 340:return(u||(u=[])).push(L);case 339:return Lr(L.typeExpression);case 351:return(m||(m=[])).push(L)}}function Go(L){let ze=N_(L),Rt=ze?98304:4,Er=ze?13247:0;return Ar(L,Rt|(L.questionToken?16777216:0),Er)}function Dc(L){return bs(L,2048,"__type")}function $c(){if(zs(e),xl(e))Eo();else if(wp(e)){Eo();let L=e.symbol;_e(e.symbol.exports,e.symbol,e,4,-1),e.symbol=L}}function Eo(){bs(e,512,`"${i_(e.fileName)}"`)}function Hc(L){if(!s.symbol||!s.symbol.exports)bs(L,111551,se(L));else{let ze=u4(L)?2097152:4,Rt=_e(s.symbol.exports,s.symbol,L,ze,-1);L.isExportEquals&&r4(Rt,L)}}function wf(L){pt(L.modifiers)&&e.bindDiagnostics.push(ye(L,p.Modifiers_cannot_appear_here));let ze=Mi(L.parent)?xl(L.parent)?L.parent.isDeclarationFile?void 0:p.Global_module_exports_may_only_appear_in_declaration_files:p.Global_module_exports_may_only_appear_in_module_files:p.Global_module_exports_may_only_appear_at_top_level;ze?e.bindDiagnostics.push(ye(L,ze)):(e.symbol.globalExports=e.symbol.globalExports||ea(),_e(e.symbol.globalExports,e.symbol,L,2097152,2097152))}function bu(L){!s.symbol||!s.symbol.exports?bs(L,8388608,se(L)):L.exportClause?Dg(L.exportClause)&&(Xa(L.exportClause,L),_e(s.symbol.exports,s.symbol,L.exportClause,2097152,2097152)):_e(s.symbol.exports,s.symbol,L,8388608,0)}function up(L){L.name&&Sr(L,2097152,2097152)}function x_(L){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=L,e.externalModuleIndicator||Eo()),!0)}function Ee(L){if(!x_(L))return;let ze=o_(L.arguments[0],void 0,(Rt,Er)=>(Er&&De(Er,Rt,67110400),Er));ze&&_e(ze.exports,ze,L,1048580,0)}function Wt(L){if(!x_(L))return;let ze=o_(L.left.expression,void 0,(Rt,Er)=>(Er&&De(Er,Rt,67110400),Er));if(ze){let Er=qF(L.right)&&(lk(L.left.expression)||dh(L.left.expression))?2097152:1048580;Xa(L.left,L),_e(ze.exports,ze,L.left,Er,0)}}function sn(L){if(!x_(L))return;let ze=Y6(L.right);if(nJ(ze)||s===e&&GS(e,ze))return;if(Sa(ze)&&Oi(ze.properties,Eu)){or(ze.properties,ts);return}let Rt=u4(L)?2097152:1049092,Er=_e(e.symbol.exports,e.symbol,L,Rt|67108864,0);r4(Er,L)}function ts(L){_e(e.symbol.exports,e.symbol,L,69206016,0)}function Js(L){if(w.assert(un(L)),vn(L)&&Nn(L.left)&&ji(L.left.name)||Nn(L)&&ji(L.name))return;let Rt=t_(L,!1,!1);switch(Rt.kind){case 262:case 218:let Er=Rt.symbol;if(vn(Rt.parent)&&Rt.parent.operatorToken.kind===64){let Zi=Rt.parent.left;vS(Zi)&&M0(Zi.expression)&&(Er=B_(Zi.expression.expression,o))}Er&&Er.valueDeclaration&&(Er.members=Er.members||ea(),oy(L)?Ma(L,Er,Er.members):_e(Er.members,Er,L,67108868,0),De(Er,Er.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:let cs=Rt.parent,bi=Ks(Rt)?cs.symbol.exports:cs.symbol.members;oy(L)?Ma(L,cs.symbol,bi):_e(bi,cs.symbol,L,67108868,0,!0);break;case 307:if(oy(L))break;Rt.commonJsModuleIndicator?_e(Rt.symbol.exports,Rt.symbol,L,1048580,0):Sr(L,1,111550);break;case 267:break;default:w.failBadSyntaxKind(Rt)}}function Ma(L,ze,Rt){_e(Rt,ze,L,4,0,!0,!0),Wo(L,ze)}function Wo(L,ze){ze&&(ze.assignmentDeclarationMembers||(ze.assignmentDeclarationMembers=new Map)).set(Ua(L),L)}function Qc(L){L.expression.kind===110?Js(L):vS(L)&&L.parent.parent.kind===307&&(M0(L.expression)?Yc(L,L.parent):If(L))}function hc(L){Xa(L.left,L),Xa(L.right,L),Qm(L.left.expression,L.left,!1,!0)}function yc(L){let ze=B_(L.arguments[0].expression);ze&&ze.valueDeclaration&&De(ze,ze.valueDeclaration,32),Pd(L,ze,!0)}function Yc(L,ze){let Rt=L.expression,Er=Rt.expression;Xa(Er,Rt),Xa(Rt,L),Xa(L,ze),Qm(Er,L,!0,!0)}function wl(L){let ze=B_(L.arguments[0]),Rt=L.parent.parent.kind===307;ze=C_(ze,L.arguments[0],Rt,!1,!1),Pd(L,ze,!1)}function Il(L){var ze;let Rt=B_(L.left.expression,c)||B_(L.left.expression,s);if(!un(L)&&!Yte(Rt))return;let Er=nI(L.left);if(!(je(Er)&&((ze=Q7(s,Er.escapedText))==null?void 0:ze.flags)&2097152))if(Xa(L.left,L),Xa(L.right,L),je(L.left.expression)&&s===e&&GS(e,L.left.expression))Wt(L);else if(oy(L)){bs(L,67108868,"__computed");let cs=C_(Rt,L.left.expression,zf(L.left),!1,!1);Wo(L,cs)}else If(Zs(L.left,_k))}function If(L){w.assert(!je(L)),Xa(L.expression,L),Qm(L.expression,L,!1,!1)}function C_(L,ze,Rt,Er,cs){return L?.flags&2097152||(Rt&&!Er&&(L=o_(ze,L,(gs,Uo,_a)=>{if(Uo)return De(Uo,gs,67110400),Uo;{let vl=_a?_a.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=ea());return _e(vl,_a,gs,67110400,110735)}})),cs&&L&&L.valueDeclaration&&De(L,L.valueDeclaration,32)),L}function Pd(L,ze,Rt){if(!ze||!Ih(ze))return;let Er=Rt?ze.members||(ze.members=ea()):ze.exports||(ze.exports=ea()),cs=0,bi=0;xo(c2(L))?(cs=8192,bi=103359):qs(L)&&uk(L)&&(pt(L.arguments[2].properties,Zi=>{let gs=vs(Zi);return!!gs&&je(gs)&&Ln(gs)==="set"})&&(cs|=65540,bi|=78783),pt(L.arguments[2].properties,Zi=>{let gs=vs(Zi);return!!gs&&je(gs)&&Ln(gs)==="get"})&&(cs|=32772,bi|=46015)),cs===0&&(cs=4,bi=0),_e(Er,ze,L,cs|67108864,bi&-67108865)}function zf(L){return vn(L.parent)?_p(L.parent).parent.kind===307:L.parent.parent.kind===307}function Qm(L,ze,Rt,Er){let cs=B_(L,c)||B_(L,s),bi=zf(ze);cs=C_(cs,ze.expression,bi,Rt,Er),Pd(ze,cs,Rt)}function Ih(L){if(L.flags&1072)return!0;let ze=L.valueDeclaration;if(ze&&qs(ze))return!!c2(ze);let Rt=ze?oi(ze)?ze.initializer:vn(ze)?ze.right:Nn(ze)&&vn(ze.parent)?ze.parent.right:void 0:void 0;if(Rt=Rt&&Y6(Rt),Rt){let Er=M0(oi(ze)?ze.name:vn(ze)?ze.left:ze);return!!Rb(vn(Rt)&&(Rt.operatorToken.kind===57||Rt.operatorToken.kind===61)?Rt.right:Rt,Er)}return!1}function _p(L){for(;vn(L.parent);)L=L.parent;return L.parent}function B_(L,ze=s){if(je(L))return Q7(ze,L.escapedText);{let Rt=B_(L.expression);return Rt&&Rt.exports&&Rt.exports.get(ay(L))}}function o_(L,ze,Rt){if(GS(e,L))return e.symbol;if(je(L))return Rt(L,B_(L),ze);{let Er=o_(L.expression,ze,Rt),cs=Z6(L);return ji(cs)&&w.fail("unexpected PrivateIdentifier"),Rt(cs,Er&&Er.exports&&Er.exports.get(ay(L)),Er)}}function Km(L){!e.commonJsModuleIndicator&&R_(L,!1)&&x_(L)}function Jf(L){if(L.kind===263)il(L,32,899503);else{let cs=L.name?L.name.escapedText:"__class";bs(L,32,cs),L.name&&ne.add(L.name.escapedText)}let{symbol:ze}=L,Rt=Ge(4194308,"prototype"),Er=ze.exports.get(Rt.escapedName);Er&&(L.name&&Xa(L.name,L),e.bindDiagnostics.push(ye(Er.declarations[0],p.Duplicate_identifier_0,Oc(Rt)))),ze.exports.set(Rt.escapedName,Rt),Rt.parent=ze}function Dh(L){return Nb(L)?il(L,128,899967):il(L,256,899327)}function re(L){if(U&&fo(L,L.name),!Ws(L.name)){let ze=L.kind===260?L:L.parent.parent;un(L)&&yS(ze)&&!Pb(L)&&!(Db(L)&32)?Sr(L,2097152,2097152):rz(L)?il(L,2,111551):jb(L)?Sr(L,1,111551):Sr(L,1,111550)}}function at(L){if(!(L.kind===341&&s.kind!==323)&&(U&&!(L.flags&33554432)&&fo(L,L.name),Ws(L.name)?bs(L,1,"__"+L.parent.parameters.indexOf(L)):Sr(L,1,111551),pf(L,L.parent))){let ze=L.parent.parent;_e(ze.symbol.members,ze.symbol,L,4|(L.questionToken?16777216:0),0)}}function Kt(L){!e.isDeclarationFile&&!(L.flags&33554432)&&sA(L)&&(K|=4096),wc(L),U?(ec(L),il(L,16,110991)):Sr(L,16,110991)}function Xt(L){!e.isDeclarationFile&&!(L.flags&33554432)&&sA(L)&&(K|=4096),h&&(L.flowNode=h),wc(L);let ze=L.name?L.name.escapedText:"__function";return bs(L,16,ze)}function Ar(L,ze,Rt){return!e.isDeclarationFile&&!(L.flags&33554432)&&sA(L)&&(K|=4096),h&&AF(L)&&(L.flowNode=h),oy(L)?bs(L,ze,"__computed"):Sr(L,ze,Rt)}function Yr(L){let ze=gr(L,Rt=>Rt.parent&&RS(Rt.parent)&&Rt.parent.extendsType===Rt);return ze&&ze.parent}function Gn(L){if(ad(L.parent)){let ze=VF(L.parent);ze?(w.assertNode(ze,Sg),ze.locals??(ze.locals=ea()),_e(ze.locals,void 0,L,262144,526824)):Sr(L,262144,526824)}else if(L.parent.kind===195){let ze=Yr(L.parent);ze?(w.assertNode(ze,Sg),ze.locals??(ze.locals=ea()),_e(ze.locals,void 0,L,262144,526824)):bs(L,262144,se(L))}else Sr(L,262144,526824)}function _i(L){let ze=gy(L);return ze===1||ze===2&&R0(t)}function Ji(L){if(!(h.flags&1))return!1;if(h===ie&&(I6(L)&&L.kind!==242||L.kind===263||kSe(L,t)||L.kind===267&&_i(L))&&(h=oe,!t.allowUnreachableCode)){let Rt=Qre(t)&&!(L.flags&33554432)&&(!Lc(L)||!!(ny(L.declarationList)&7)||L.declarationList.declarations.some(Er=>!!Er.initializer));gJe(L,t,(Er,cs)=>Hn(Rt,Er,cs,p.Unreachable_code_detected))}return!0}}function kSe(e,t){return e.kind===266&&(!Nb(e)||R0(t))}function gJe(e,t,n){if(Ii(e)&&i(e)&&Fs(e.parent)){let{statements:o}=e.parent,c=AJ(o,e);kW(c,i,(_,u)=>n(c[_],c[u-1]))}else n(e,e);function i(o){return!jc(o)&&!s(o)&&!(Lc(o)&&!(ny(o)&7)&&o.declarationList.declarations.some(c=>!c.initializer))}function s(o){switch(o.kind){case 264:case 265:return!0;case 267:return gy(o)!==1;case 266:return!kSe(o,t);default:return!1}}}function GS(e,t){let n=0,i=YN();for(i.enqueue(t);!i.isEmpty()&&n<100;){if(n++,t=i.dequeue(),lk(t)||dh(t))return!0;if(je(t)){let s=Q7(e,t.escapedText);if(s&&s.valueDeclaration&&oi(s.valueDeclaration)&&s.valueDeclaration.initializer){let o=s.valueDeclaration.initializer;i.enqueue(o),ql(o,!0)&&(i.enqueue(o.left),i.enqueue(o.right))}}}return!1}function mU(e){switch(e.kind){case 231:case 263:case 266:case 210:case 187:case 322:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 307:return 37;case 177:case 178:case 174:if(AF(e))return 173;case 176:case 262:case 173:case 179:case 323:case 317:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return Ns(e.parent)||Nc(e.parent)?0:34}return 0}function Q7(e,t){var n,i,s,o;let c=(i=(n=Vn(e,Sg))==null?void 0:n.locals)==null?void 0:i.get(t);if(c)return c.exportSymbol??c;if(Mi(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(Jd(e))return(o=(s=e.symbol)==null?void 0:s.exports)==null?void 0:o.get(t)}function Gse(e,t,n,i,s,o,c,_,u,g){return m;function m(h=()=>!0){let S=[],T=[];return{walkType:me=>{try{return x(me),{visitedTypes:zx(S),visitedSymbols:zx(T)}}finally{Hp(S),Hp(T)}},walkSymbol:me=>{try{return U(me),{visitedTypes:zx(S),visitedSymbols:zx(T)}}finally{Hp(S),Hp(T)}}};function x(me){if(!(!me||S[me.id]||(S[me.id]=me,U(me.symbol)))){if(me.flags&524288){let V=me,ne=V.objectFlags;ne&4&&I(me),ne&32&&B(me),ne&3&&$(me),ne&24&&K(V)}me.flags&262144&&D(me),me.flags&3145728&&E(me),me.flags&4194304&&O(me),me.flags&8388608&&F(me)}}function I(me){x(me.target),or(g(me),x)}function D(me){x(_(me))}function E(me){or(me.types,x)}function O(me){x(me.type)}function F(me){x(me.objectType),x(me.indexType),x(me.constraint)}function B(me){x(me.typeParameter),x(me.constraintType),x(me.templateType),x(me.modifiersType)}function G(me){let te=t(me);te&&x(te.type),or(me.typeParameters,x);for(let V of me.parameters)U(V);x(e(me)),x(n(me))}function $(me){K(me),or(me.typeParameters,x),or(i(me),x),x(me.thisType)}function K(me){let te=s(me);for(let V of te.indexInfos)x(V.keyType),x(V.type);for(let V of te.callSignatures)G(V);for(let V of te.constructSignatures)G(V);for(let V of te.properties)U(V)}function U(me){if(!me)return!1;let te=ua(me);if(T[te])return!1;if(T[te]=me,!h(me))return!0;let V=o(me);return x(V),me.exports&&me.exports.forEach(U),or(me.declarations,ne=>{if(ne.type&&ne.type.kind===186){let ie=ne.type,oe=c(u(ie.exprName));U(oe)}}),!1}}}var hy={};nt(hy,{RelativePreference:()=>xSe,countPathComponents:()=>Y7,forEachFileNameOfModule:()=>ASe,getLocalModuleSpecifierBetweenFileNames:()=>TJe,getModuleSpecifier:()=>vJe,getModuleSpecifierPreferences:()=>CM,getModuleSpecifiers:()=>ISe,getModuleSpecifiersWithCacheInfo:()=>DSe,getNodeModulesPackageName:()=>bJe,tryGetJSExtensionForFile:()=>hU,tryGetModuleSpecifiersFromCache:()=>SJe,tryGetRealFileNameForNonJsDeclarationFileName:()=>FSe,updateModuleSpecifier:()=>yJe});var hJe=Sm(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}}),xSe=(e=>(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(xSe||{});function CM({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t,autoImportSpecifierExcludeRegexes:n},i,s,o,c){let _=u();return{excludeRegexes:n,relativePreference:c!==void 0?Jl(c)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:g=>{let m=yU(o,i,s),h=g!==m?u(g):_,S=Bu(s);if((g??m)===99&&3<=S&&S<=99)return RI(s,o.fileName)?[3,2]:[2];if(Bu(s)===1)return h===2?[2,1]:[1,2];let T=RI(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(vh(c))return 2;if(Jo(c,"/index"))return 1}return one(t,g??yU(o,i,s),s,ph(o)?o:void 0)}}function yJe(e,t,n,i,s,o,c={}){let _=CSe(e,t,n,i,s,CM({},s,e,t,o),{},c);if(_!==o)return _}function vJe(e,t,n,i,s,o={}){return CSe(e,t,n,i,s,CM({},s,e,t),{},o)}function bJe(e,t,n,i,s,o={}){let c=X7(t.fileName,i),_=ESe(c,n,i,s,e,o);return po(_,u=>qse(u,c,t,i,e,s,!0,o.overrideImportMode))}function CSe(e,t,n,i,s,o,c,_={}){let u=X7(n,s),g=ESe(u,i,s,c,e,_);return po(g,m=>qse(m,u,t,s,e,c,void 0,_.overrideImportMode))||Use(i,u,e,s,_.overrideImportMode||yU(t,s,e),o)}function SJe(e,t,n,i,s={}){let o=wSe(e,t,n,i,s);return o[1]&&{kind:o[0],moduleSpecifiers:o[1],computedWithoutCache:!1}}function wSe(e,t,n,i,s={}){var o;let c=A6(e);if(!c)return qe;let _=(o=n.getModuleSpecifierCache)==null?void 0:o.call(n),u=_?.get(t.path,c.path,i,s);return[u?.kind,u?.moduleSpecifiers,c,u?.modulePaths,_]}function ISe(e,t,n,i,s,o,c={}){return DSe(e,t,n,i,s,o,c,!1).moduleSpecifiers}function DSe(e,t,n,i,s,o,c={},_){let u=!1,g=IJe(e,t);if(g)return{kind:"ambient",moduleSpecifiers:_&&K7(g,o.autoImportSpecifierExcludeRegexes)?qe:[g],computedWithoutCache:u};let[m,h,S,T,x]=wSe(e,i,s,o,c);if(h)return{kind:m,moduleSpecifiers:h,computedWithoutCache:u};if(!S)return{kind:void 0,moduleSpecifiers:qe,computedWithoutCache:u};u=!0,T||(T=NSe(X7(i.fileName,s),S.originalFileName,s,n,c));let I=kJe(T,n,i,s,o,c,_);return x?.set(i.path,S.path,o,c,I.kind,T,I.moduleSpecifiers),I}function TJe(e,t,n,i,s,o={}){let c=X7(e.fileName,i),_=o.overrideImportMode??e.impliedNodeFormat;return Use(t,c,n,i,_,CM(s,i,n,e))}function kJe(e,t,n,i,s,o={},c){let _=X7(n.fileName,i),u=CM(s,i,t,n),g=ph(n)&&or(e,I=>or(i.getFileIncludeReasons().get(ko(I.path,i.getCurrentDirectory(),_.getCanonicalFileName)),D=>{if(D.kind!==3||D.file!==n.path)return;let E=i.getModeForResolutionAtIndex(n,D.index),O=o.overrideImportMode??i.getDefaultResolutionModeForFile(n);if(E!==O&&E!==void 0&&O!==void 0)return;let F=GM(n,D.index).text;return u.relativePreference!==1||!Of(F)?F:void 0}));if(g)return{kind:void 0,moduleSpecifiers:[g],computedWithoutCache:!0};let m=pt(e,I=>I.isInNodeModules),h,S,T,x;for(let I of e){let D=I.isInNodeModules?qse(I,_,n,i,t,s,void 0,o.overrideImportMode):void 0;if(D&&!(c&&K7(D,u.excludeRegexes))&&(h=jr(h,D),I.isRedirect))return{kind:"node_modules",moduleSpecifiers:h,computedWithoutCache:!0};let E=Use(I.path,_,t,i,o.overrideImportMode||n.impliedNodeFormat,u,I.isRedirect||!!D);!E||c&&K7(E,u.excludeRegexes)||(I.isRedirect?T=jr(T,E):pB(E)?V0(E)?x=jr(x,E):S=jr(S,E):(c||!m||I.isInNodeModules)&&(x=jr(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??qe,computedWithoutCache:!0}}function K7(e,t){return pt(t,n=>{var i;return!!((i=hJe(n))!=null&&i.test(e))})}function X7(e,t){e=as(e,t.getCurrentDirectory());let n=fu(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=Yn(e);return{getCanonicalFileName:n,importingSourceFileName:e,sourceDirectory:i,canonicalSourceDirectory:n(i)}}function Use(e,t,n,i,s,{getAllowedEndingsInPreferredOrder:o,relativePreference:c,excludeRegexes:_},u){let{baseUrl:g,paths:m,rootDirs:h}=n;if(u&&!m)return;let{sourceDirectory:S,canonicalSourceDirectory:T,getCanonicalFileName:x}=t,I=o(s),D=h&&AJe(h,e,S,x,I,n)||wM(KT(Zf(S,e,x)),I,n);if(!g&&!m&&!P4(n)||c===0)return u?void 0:D;let E=as(rO(n,i)||g,i.getCurrentDirectory()),O=$se(e,E,x);if(!O)return u?void 0:D;let F=u?void 0:PJe(e,S,n,i,s,NJe(I)),B=u||F===void 0?m&&MSe(O,m,I,E,x,i,n):void 0;if(u)return B;let G=F??(B===void 0&&g!==void 0?wM(O,I,n):B);if(!G)return D;let $=K7(D,_),K=K7(G,_);if(!$&&K)return D;if($&&!K||c===1&&!Of(G))return G;if(c===3&&!Of(G)){let U=n.configFilePath?ko(Yn(n.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),me=ko(e,U,x),te=Yi(T,U),V=Yi(me,U);if(te&&!V||!te&&V)return G;let ne=Vse(i,Yn(me)),ie=Vse(i,S),oe=!mk(i);return xJe(ne,ie,oe)?D:G}return OSe(G)||Y7(D)<Y7(G)?D:G}function xJe(e,t,n){return e===t?!0:e===void 0||t===void 0?!1:ty(e,t,n)===0}function Y7(e){let t=0;for(let n=Yi(e,"./")?2:0;n<e.length;n++)e.charCodeAt(n)===47&&t++;return t}function PSe(e,t){return wb(t.isRedirect,e.isRedirect)||F4(e.path,t.path)}function Vse(e,t){return e.getNearestAncestorDirectoryWithPackageJson?e.getNearestAncestorDirectoryWithPackageJson(t):Pg(e,t,n=>e.fileExists(Bn(n,"package.json"))?n:void 0)}function ASe(e,t,n,i,s){var o;let c=cy(n),_=n.getCurrentDirectory(),u=n.isSourceOfProjectReferenceRedirect(t)?n.getProjectReferenceRedirect(t):void 0,g=ko(t,_,c),m=n.redirectTargetsMap.get(g)||qe,S=[...u?[u]:qe,t,...m].map(E=>as(E,_)),T=!Oi(S,DA);if(!i){let E=or(S,O=>!(T&&DA(O))&&s(O,u===O));if(E)return E}let x=(o=n.getSymlinkCache)==null?void 0:o.call(n).getSymlinkedDirectoriesByRealpath(),I=as(t,_);return x&&Pg(n,Yn(I),E=>{let O=x.get(El(ko(E,_,c)));if(O)return gB(e,E,c)?!1:or(S,F=>{if(!gB(F,E,c))return;let B=Zf(E,F,c);for(let G of O){let $=d0(G,B),K=s($,F===u);if(T=!0,K)return K}})})||(i?or(S,E=>T&&DA(E)?void 0:s(E,E===u)):void 0)}function ESe(e,t,n,i,s,o={}){var c;let _=ko(e.importingSourceFileName,n.getCurrentDirectory(),cy(n)),u=ko(t,n.getCurrentDirectory(),cy(n)),g=(c=n.getModuleSpecifierCache)==null?void 0:c.call(n);if(g){let h=g.get(_,u,i,o);if(h?.modulePaths)return h.modulePaths}let m=NSe(e,t,n,s,o);return g&&g.setModulePaths(_,u,i,o,m),m}var CJe=["dependencies","peerDependencies","optionalDependencies"];function wJe(e){let t;for(let n of CJe){let i=e[n];i&&typeof i=="object"&&(t=Ki(t,bm(i)))}return t}function NSe(e,t,n,i,s){var o,c;let _=(o=n.getModuleResolutionCache)==null?void 0:o.call(n),u=(c=n.getSymlinkCache)==null?void 0:c.call(n);if(_&&u&&n.readFile&&!V0(e.importingSourceFileName)){w.type(n);let S=iE(_.getPackageJsonInfoCache(),n,{}),T=sE(Yn(e.importingSourceFileName),S);if(T){let x=wJe(T.contents.packageJsonContent);for(let I of x||qe){let D=Fk(I,Bn(T.packageDirectory,"package.json"),i,n,_,void 0,s.overrideImportMode);u.setSymlinksFromResolution(D.resolvedModule)}}}let g=new Map,m=!1;ASe(e.importingSourceFileName,t,n,!0,(S,T)=>{let x=V0(S);g.set(S,{path:e.getCanonicalFileName(S),isRedirect:T,isInNodeModules:x}),m=m||x});let h=[];for(let S=e.canonicalSourceDirectory;g.size!==0;){let T=El(S),x;g.forEach(({path:D,isRedirect:E,isInNodeModules:O},F)=>{Yi(D,T)&&((x||(x=[])).push({path:F,isRedirect:E,isInNodeModules:O}),g.delete(F))}),x&&(x.length>1&&x.sort(PSe),h.push(...x));let I=Yn(S);if(I===S)break;S=I}if(g.size){let S=ps(g.entries(),([T,{isRedirect:x,isInNodeModules:I}])=>({path:T,isRedirect:x,isInNodeModules:I}));S.length>1&&S.sort(PSe),h.push(...S)}return h}function IJe(e,t){var n;let i=(n=e.declarations)==null?void 0:n.find(c=>iz(c)&&(!mS(c)||!Jl(Ip(c.name))));if(i)return i.name.text;let o=Vi(e.declarations,c=>{var _,u,g,m;if(!nl(c))return;let h=I(c);if(!((_=h?.parent)!=null&&_.parent&&Lm(h.parent)&&e_(h.parent.parent)&&Mi(h.parent.parent.parent)))return;let S=(m=(g=(u=h.parent.parent.symbol.exports)==null?void 0:u.get("export="))==null?void 0:g.valueDeclaration)==null?void 0:m.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(D){for(;D.flags&8;)D=D.parent;return D}})[0];if(o)return o.name.text}function MSe(e,t,n,i,s,o,c){for(let u in t)for(let g of t[u]){let m=na(g),h=$se(m,i,s)??m,S=h.indexOf("*"),T=n.map(x=>({ending:x,value:wM(e,[x],c)}));if(bh(h)&&T.push({ending:void 0,value:e}),S!==-1){let x=h.substring(0,S),I=h.substring(S+1);for(let{ending:D,value:E}of T)if(E.length>=x.length+I.length&&Yi(E,x)&&Jo(E,I)&&_({ending:D,value:E})){let O=E.substring(x.length,E.length-I.length);if(!Of(O))return vk(u,O)}}else if(pt(T,x=>x.ending!==0&&h===x.value)||pt(T,x=>x.ending===0&&h===x.value&&_(x)))return u}function _({ending:u,value:g}){return u!==0||g===wM(e,[u],c,o)}}function Z7(e,t,n,i,s,o,c,_,u,g){if(typeof o=="string"){let m=!mk(t),h=()=>t.getCommonSourceDirectory(),S=u&&qU(n,e,m,h),T=u&&VU(n,e,m,h),x=as(Bn(i,o),void 0),I=yk(n)?i_(n)+hU(n,e):void 0,D=g&&sne(n);switch(_){case 0:if(I&&ty(I,x,m)===0||ty(n,x,m)===0||S&&ty(S,x,m)===0||T&&ty(T,x,m)===0)return{moduleFileToTry:s};break;case 1:if(D&&kp(n,x,m)){let B=Zf(x,n,!1);return{moduleFileToTry:as(Bn(Bn(s,o),B),void 0)}}if(I&&kp(x,I,m)){let B=Zf(x,I,!1);return{moduleFileToTry:as(Bn(Bn(s,o),B),void 0)}}if(!D&&kp(x,n,m)){let B=Zf(x,n,!1);return{moduleFileToTry:as(Bn(Bn(s,o),B),void 0)}}if(S&&kp(x,S,m)){let B=Zf(x,S,!1);return{moduleFileToTry:Bn(s,B)}}if(T&&kp(x,T,m)){let B=z8(Zf(x,T,!1),gU(T,e));return{moduleFileToTry:Bn(s,B)}}break;case 2:let E=x.indexOf("*"),O=x.slice(0,E),F=x.slice(E+1);if(D&&Yi(n,O,m)&&Jo(n,F,m)){let B=n.slice(O.length,n.length-F.length);return{moduleFileToTry:vk(s,B)}}if(I&&Yi(I,O,m)&&Jo(I,F,m)){let B=I.slice(O.length,I.length-F.length);return{moduleFileToTry:vk(s,B)}}if(!D&&Yi(n,O,m)&&Jo(n,F,m)){let B=n.slice(O.length,n.length-F.length);return{moduleFileToTry:vk(s,B)}}if(S&&Yi(S,O,m)&&Jo(S,F,m)){let B=S.slice(O.length,S.length-F.length);return{moduleFileToTry:vk(s,B)}}if(T&&Yi(T,O,m)&&Jo(T,F,m)){let B=T.slice(O.length,T.length-F.length),G=vk(s,B),$=hU(T,e);return $?{moduleFileToTry:z8(G,$)}:void 0}break}}else{if(Array.isArray(o))return or(o,m=>Z7(e,t,n,i,s,m,c,_,u,g));if(typeof o=="object"&&o!==null){for(let m of bm(o))if(m==="default"||c.indexOf(m)>=0||kM(c,m)){let h=o[m],S=Z7(e,t,n,i,s,h,c,_,u,g);if(S)return S}}}}function DJe(e,t,n,i,s,o,c){return typeof o=="object"&&o!==null&&!Array.isArray(o)&&$7(o)?or(bm(o),_=>{let u=as(Bn(s,_),void 0),g=Jo(_,"/")?1:_.includes("*")?2:0;return Z7(e,t,n,i,u,o[_],c,g,!1,!1)}):Z7(e,t,n,i,s,o,c,0,!1,!1)}function PJe(e,t,n,i,s,o){var c,_,u;if(!i.readFile||!P4(n))return;let g=Vse(i,t);if(!g)return;let m=Bn(g,"package.json"),h=(_=(c=i.getPackageJsonInfoCache)==null?void 0:c.call(i))==null?void 0:_.getPackageJsonInfo(m);if(wse(h)||!i.fileExists(m))return;let S=h?.contents.packageJsonContent||fO(i.readFile(m)),T=S?.imports;if(!T)return;let x=U0(n,s);return(u=or(bm(T),I=>{if(!Yi(I,"#")||I==="#"||Yi(I,"#/"))return;let D=Jo(I,"/")?1:I.includes("*")?2:0;return Z7(n,i,e,g,I,T[I],x,D,!0,o)}))==null?void 0:u.moduleFileToTry}function AJe(e,t,n,i,s,o){let c=RSe(t,e,i);if(c===void 0)return;let _=RSe(n,e,i),u=ga(_,m=>hr(c,h=>KT(Zf(m,h,i)))),g=RW(u,F4);if(g)return wM(g,s,o)}function qse({path:e,isRedirect:t},{getCanonicalFileName:n,canonicalSourceDirectory:i},s,o,c,_,u,g){if(!o.fileExists||!o.readFile)return;let m=BO(e);if(!m)return;let S=CM(_,o,c,s).getAllowedEndingsInPreferredOrder(),T=e,x=!1;if(!u){let B=m.packageRootIndex,G;for(;;){let{moduleFileToTry:$,packageRootPath:K,blockedByExports:U,verbatimFromExports:me}=F(B);if(Bu(c)!==1){if(U)return;if(me)return $}if(K){T=K,x=!0;break}if(G||(G=$),B=e.indexOf(Fo,B+1),B===-1){T=wM(G,S,c,o);break}}}if(t&&!x)return;let I=o.getGlobalTypingsCacheLocation&&o.getGlobalTypingsCacheLocation(),D=n(T.substring(0,m.topLevelNodeModulesIndex));if(!(Yi(i,D)||I&&Yi(n(I),D)))return;let E=T.substring(m.topLevelPackageNameIndex+1),O=aE(E);return Bu(c)===1&&O===E?void 0:O;function F(B){var G,$;let K=e.substring(0,B),U=Bn(K,"package.json"),me=e,te=!1,V=($=(G=o.getPackageJsonInfoCache)==null?void 0:G.call(o))==null?void 0:$.getPackageJsonInfo(U);if(G7(V)||V===void 0&&o.fileExists(U)){let ne=V?.contents.packageJsonContent||fO(o.readFile(U)),ie=g||yU(s,o,c);if(D4(c)){let ye=K.substring(m.topLevelPackageNameIndex+1),H=aE(ye),ve=U0(c,ie),Ge=ne?.exports?DJe(c,o,e,K,H,ne.exports,ve):void 0;if(Ge)return{...Ge,verbatimFromExports:!0};if(ne?.exports)return{moduleFileToTry:e,blockedByExports:!0}}let oe=ne?.typesVersions?z7(ne.typesVersions):void 0;if(oe){let ye=e.slice(K.length+1),H=MSe(ye,oe.paths,S,K,n,o,c);H===void 0?te=!0:me=Bn(K,H)}let de=ne?.typings||ne?.types||ne?.main||"index.js";if(ys(de)&&!(te&&PJ(L4(oe.paths),de))){let ye=ko(de,K,n),H=n(me);if(i_(ye)===i_(H))return{packageRootPath:K,moduleFileToTry:me};if(ne?.type!=="module"&&!Gc(H,RO)&&Yi(H,ye)&&Yn(H)===Ky(ye)&&i_(fl(H))==="index")return{packageRootPath:K,moduleFileToTry:me}}}else{let ne=n(me.substring(m.packageRootIndex+1));if(ne==="index.d.ts"||ne==="index.js"||ne==="index.ts"||ne==="index.tsx")return{moduleFileToTry:me,packageRootPath:K}}return{moduleFileToTry:me}}}function EJe(e,t){if(!e.fileExists)return;let n=Qp(SA({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 RSe(e,t,n){return Vi(t,i=>{let s=$se(e,i,n);return s!==void 0&&OSe(s)?void 0:s})}function wM(e,t,n,i){if(Gc(e,[".json",".mjs",".cjs"]))return e;let s=i_(e);if(e===s)return e;let o=t.indexOf(2),c=t.indexOf(3);if(Gc(e,[".mts",".cts"])&&c!==-1&&c<o)return e;if(Gc(e,[".d.mts",".mts",".d.cts",".cts"]))return s+gU(e,n);if(!Gc(e,[".d.ts"])&&Gc(e,[".ts"])&&e.includes(".d."))return FSe(e);switch(t[0]){case 0:let _=Sw(s,"/index");return i&&_!==s&&EJe(i,_)?s:_;case 1:return s;case 2:return s+gU(e,n);case 3:if(Ll(e)){let u=t.findIndex(g=>g===0||g===1);return u!==-1&&u<o?s:s+gU(e,n)}return e;default:return w.assertNever(t[0])}}function FSe(e){let t=fl(e);if(!Jo(e,".ts")||!t.includes(".d.")||Gc(t,[".d.ts"]))return;let n=O4(e,".ts"),i=n.substring(n.lastIndexOf("."));return n.substring(0,n.indexOf(".d."))+i}function gU(e,t){return hU(e,t)??w.fail(`Extension ${kA(e)} is unsupported:: FileName:: ${e}`)}function hU(e,t){let n=bh(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 $se(e,t,n){let i=Hx(t,e,t,n,!1);return ff(i)?void 0:i}function OSe(e){return Yi(e,"..")}function yU(e,t,n){return ph(e)?t.getDefaultResolutionModeForFile(e):v5(e,n)}function NJe(e){let t=e.indexOf(3);return t>-1&&t<e.indexOf(2)}var Hse=/^".+"$/,vU="(anonymous)",LSe=1,jSe=1,WSe=1,BSe=1,bU=(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))(bU||{}),Qse=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),SU=(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))(SU||{}),TU=(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))(TU||{}),MJe=P8(JSe,FJe),kU=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),zSe=class{};function RJe(){this.flags=0}function Ua(e){return e.id||(e.id=jSe,jSe++),e.id}function ua(e){return e.id||(e.id=LSe,LSe++),e.id}function xU(e,t){let n=gy(e);return n===1||t&&n===2}function Kse(e){var t=[],n=r=>{t.push(r)},i,s,o=mu.getSymbolConstructor(),c=mu.getTypeConstructor(),_=mu.getSignatureConstructor(),u=0,g=0,m=0,h=0,S=0,T=0,x,I,D=!1,E=ea(),O=[1],F=e.getCompilerOptions(),B=wa(F),G=n_(F),$=!!F.experimentalDecorators,K=A4(F),U=yJ(F),me=x2(F),te=Pu(F,"strictNullChecks"),V=Pu(F,"strictFunctionTypes"),ne=Pu(F,"strictBindCallApply"),ie=Pu(F,"strictPropertyInitialization"),oe=Pu(F,"strictBuiltinIteratorReturn"),de=Pu(F,"noImplicitAny"),ye=Pu(F,"noImplicitThis"),H=Pu(F,"useUnknownInCatchVariables"),ve=F.exactOptionalPropertyTypes,Ge=!!F.noUncheckedSideEffectImports,De=dpt(),se=Qgt(),xe=kj(),_e=ece(F,xe.syntacticBuilderResolver),tt=xne({evaluateElementAccessExpression:Wmt,evaluateEntityNameExpression:BOe}),ct=ea(),le=da(4,"undefined");le.declarations=[];var Je=da(1536,"globalThis",8);Je.exports=ct,Je.declarations=[],ct.set(Je.escapedName,Je);var ee=da(4,"arguments"),Ne=da(4,"require"),Ie=F.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",Ce=!F.verbatimModuleSyntax,Ve,bt,zt=0,ur,Or=0,_t=zJ({compilerOptions:F,requireSymbol:Ne,argumentsSymbol:ee,globals:ct,getSymbolOfDeclaration:In,error:$e,getRequiresScopeChangeCache:Io,setRequiresScopeChangeCache:v1,lookup:c_,onPropertyWithInvalidInitializer:b1,onFailedToResolveSymbol:rx,onSuccessfullyResolvedSymbol:CC}),$t=zJ({compilerOptions:F,requireSymbol:Ne,argumentsSymbol:ee,globals:ct,getSymbolOfDeclaration:In,error:$e,getRequiresScopeChangeCache:Io,setRequiresScopeChangeCache:v1,lookup:F_t});let Hr={getNodeCount:()=>d_(e.getSourceFiles(),(r,a)=>r+a.nodeCount,0),getIdentifierCount:()=>d_(e.getSourceFiles(),(r,a)=>r+a.identifierCount,0),getSymbolCount:()=>d_(e.getSourceFiles(),(r,a)=>r+a.symbolCount,g),getTypeCount:()=>u,getInstantiationCount:()=>m,getRelationCacheSizes:()=>({assignable:z_.size,identity:Af.size,subtype:Eh.size,strictSubtype:jp.size}),isUndefinedSymbol:r=>r===le,isArgumentsSymbol:r=>r===ee,isUnknownSymbol:r=>r===Y,getMergedSymbol:Va,symbolIsValue:cm,getDiagnostics:HOe,getGlobalDiagnostics:ugt,getRecursionIdentity:hK,getUnmatchedProperties:kge,getTypeOfSymbolAtLocation:(r,a)=>{let l=Cs(a);return l?Klt(r,l):Ke},getTypeOfSymbol:an,getSymbolsOfParameterPropertyDeclaration:(r,a)=>{let l=Cs(r,Bi);return l===void 0?w.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(w.assert(pf(l,l.parent)),tx(l,gc(a)))},getDeclaredTypeOfSymbol:Bo,getPropertiesOfType:so,getPropertyOfType:(r,a)=>ca(r,gc(a)),getPrivateIdentifierPropertyOfType:(r,a,l)=>{let f=Cs(l);if(!f)return;let d=gc(a),y=T9(d,f);return y?YK(r,y):void 0},getTypeOfPropertyOfType:(r,a)=>ol(r,gc(a)),getIndexInfoOfType:(r,a)=>Uh(r,a===0?ut:Qt),getIndexInfosOfType:Mu,getIndexInfosOfIndexSymbol:qQ,getSignaturesOfType:Bs,getIndexTypeOfType:(r,a)=>j1(r,a===0?ut:Qt),getIndexType:r=>_g(r),getBaseTypes:Pl,getBaseTypeOfLiteralType:Ly,getWidenedType:Rf,getWidenedLiteralType:U1,fillMissingTypeArguments:Uv,getTypeFromTypeNode:r=>{let a=Cs(r,di);return a?Fi(a):Ke},getParameterType:gm,getParameterIdentifierInfoAtPosition:Pft,getPromisedTypeOfPromise:YR,getAwaitedType:r=>lw(r),getReturnTypeOfSignature:Za,isNullableType:S9,getNullableType:i9,getNonNullableType:jy,getNonOptionalType:SK,getTypeArguments:Vo,typeToTypeNode:xe.typeToTypeNode,typePredicateToTypePredicateNode:xe.typePredicateToTypePredicateNode,indexInfoToIndexSignatureDeclaration:xe.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:xe.signatureToSignatureDeclaration,symbolToEntityName:xe.symbolToEntityName,symbolToExpression:xe.symbolToExpression,symbolToNode:xe.symbolToNode,symbolToTypeParameterDeclarations:xe.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:xe.symbolToParameterDeclaration,typeParameterToDeclaration:xe.typeParameterToDeclaration,getSymbolsInScope:(r,a)=>{let l=Cs(r);return l?_gt(l,a):[]},getSymbolAtLocation:r=>{let a=Cs(r);return a?qp(a,!0):void 0},getIndexInfosAtLocation:r=>{let a=Cs(r);return a?vgt(a):void 0},getShorthandAssignmentValueSymbol:r=>{let a=Cs(r);return a?bgt(a):void 0},getExportSpecifierLocalTargetSymbol:r=>{let a=Cs(r,zu);return a?Sgt(a):void 0},getExportSymbolOfSymbol(r){return Va(r.exportSymbol||r)},getTypeAtLocation:r=>{let a=Cs(r);return a?_w(a):Ke},getTypeOfAssignmentPattern:r=>{let a=Cs(r,zP);return a&&PX(a)||Ke},getPropertySymbolOfDestructuringAssignment:r=>{let a=Cs(r,je);return a?Tgt(a):void 0},signatureToString:(r,a,l,f)=>bT(r,Cs(a),l,f),typeToString:(r,a,l)=>tn(r,Cs(a),l),symbolToString:(r,a,l,f)=>Qi(r,Cs(a),l,f),typePredicateToString:(r,a,l)=>N1(r,Cs(a),l),writeSignature:(r,a,l,f,d)=>bT(r,Cs(a),l,f,d),writeType:(r,a,l,f)=>tn(r,Cs(a),l,f),writeSymbol:(r,a,l,f,d)=>Qi(r,Cs(a),l,f,d),writeTypePredicate:(r,a,l,f)=>N1(r,Cs(a),l,f),getAugmentedPropertiesOfType:pye,getRootSymbols:r7e,getSymbolOfExpando:iX,getContextualType:(r,a)=>{let l=Cs(r,gt);if(l)return a&4?zn(l,()=>P_(l,a)):P_(l,a)},getContextualTypeForObjectLiteralElement:r=>{let a=Cs(r,iy);return a?Zge(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(r,a)=>{let l=Cs(r,_S);return l&&Kge(l,a)},getContextualTypeForJsxAttribute:r=>{let a=Cs(r,cF);return a&&h8e(a,void 0)},isContextSensitive:vp,getTypeOfPropertyOfContextualType:q1,getFullyQualifiedName:Dy,getResolvedSignature:(r,a,l)=>ns(r,a,l,0),getCandidateSignaturesForStringLiteralCompletions:_s,getResolvedSignatureForSignatureHelp:(r,a,l)=>At(r,()=>ns(r,a,l,16)),getExpandedParameters:rMe,hasEffectiveRestParameter:Xg,containsArgumentsReference:gme,getConstantValue:r=>{let a=Cs(r,c7e);return a?mye(a):void 0},isValidPropertyAccess:(r,a)=>{let l=Cs(r,Kee);return!!l&&j_t(l,gc(a))},isValidPropertyAccessForCompletions:(r,a,l)=>{let f=Cs(r,Nn);return!!f&&H8e(f,a,l)},getSignatureFromDeclaration:r=>{let a=Cs(r,Ns);return a?yp(a):void 0},isImplementationOfOverload:r=>{let a=Cs(r,Ns);return a?a7e(a):void 0},getImmediateAliasedSymbol:VK,getAliasedSymbol:al,getEmitResolver:Mh,requiresAddingImplicitUndefined:H9,getExportsOfModule:w1,getExportsAndPropertiesOfModule:MC,forEachExportAndPropertyOfModule:I1,getSymbolWalker:Gse(_at,zp,Za,Pl,pm,an,Hu,D_,h_,Vo),getAmbientModules:Lht,getJsxIntrinsicTagNamesAt:y_t,isOptionalParameter:r=>{let a=Cs(r,Bi);return a?hR(a):!1},tryGetMemberInModuleExports:(r,a)=>RC(gc(r),a),tryGetMemberInModuleExportsAndProperties:(r,a)=>hT(gc(r),a),tryFindAmbientModule:r=>TMe(r,!0),getApparentType:__,getUnionType:ri,isTypeAssignableTo:Hs,createAnonymousType:tc,createSignature:Gh,createSymbol:da,createIndexInfo:Vh,getAnyType:()=>Fe,getStringType:()=>ut,getStringLiteralType:V_,getNumberType:()=>Qt,getNumberLiteralType:Fd,getBigIntType:()=>en,getBigIntLiteralType:Vj,getUnknownType:()=>kt,createPromiseType:N9,createArrayType:Ru,getElementTypeOfArrayType:n9,getBooleanType:()=>Ut,getFalseType:r=>r?Pr:$r,getTrueType:r=>r?it:Tt,getVoidType:()=>vr,getUndefinedType:()=>pe,getNullType:()=>jt,getESSymbolType:()=>Ot,getNeverType:()=>ar,getOptionalType:()=>yt,getPromiseType:()=>Wj(!1),getPromiseLikeType:()=>qMe(!1),getAnyAsyncIterableType:()=>{let r=Bj(!1);if(r!==Ht)return Ny(r,[Fe,Fe,Fe])},isSymbolAccessible:sg,isArrayType:Gp,isTupleType:Pa,isArrayLikeType:$v,isEmptyAnonymousObjectType:Kg,isTypeInvalidDueToUnionDiscriminant:qst,getExactOptionalProperties:xct,getAllPossiblePropertiesOfTypes:$st,getSuggestedSymbolForNonexistentProperty:phe,getSuggestedSymbolForNonexistentJSXAttribute:U8e,getSuggestedSymbolForNonexistentSymbol:(r,a,l)=>q8e(r,gc(a),l),getSuggestedSymbolForNonexistentModule:dhe,getSuggestedSymbolForNonexistentClassMember:G8e,getBaseConstraintOfType:Su,getDefaultFromTypeParameter:r=>r&&r.flags&262144?wT(r):void 0,resolveName(r,a,l,f){return _t(a,gc(r),l,void 0,!1,f)},getJsxNamespace:r=>Li(lu(r)),getJsxFragmentFactory:r=>{let a=vye(r);return a&&Li(h_(a).escapedText)},getAccessibleSymbolChain:cb,getTypePredicateOfSignature:zp,resolveExternalModuleName:r=>{let a=Cs(r,gt);return a&&u_(a,a,!0)},resolveExternalModuleSymbol:J_,tryGetThisTypeAt:(r,a,l)=>{let f=Cs(r);return f&&qge(f,a,l)},getTypeArgumentConstraint:r=>{let a=Cs(r,di);return a&&$pt(a)},getSuggestionDiagnostics:(r,a)=>{let l=Cs(r,Mi)||w.fail("Could not determine parsed source file.");if(oI(l,F,e))return qe;let f;try{return i=a,_ye(l),w.assert(!!(wn(l).flags&1)),f=jn(f,h1.getDiagnostics(l.fileName)),fOe($Oe(l),(d,y,k)=>{!s2(d)&&!qOe(y,!!(d.flags&33554432))&&(f||(f=[])).push({...k,category:2})}),f||qe}finally{i=void 0}},runWithCancellationToken:(r,a)=>{try{return i=r,a(Hr)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Md,isDeclarationVisible:Ay,isPropertyAccessible:ghe,getTypeOnlyAliasDeclaration:om,getMemberOverrideModifierStatus:Dmt,isTypeParameterPossiblyReferenced:Hj,typeHasCallOrConstructSignatures:AX,getSymbolFlags:Ef,getTypeArgumentsForResolvedSignature:hi};function hi(r){if(r.mapper!==void 0)return Qg((r.target||r).typeParameters,r.mapper)}function _s(r,a){let l=new Set,f=[];zn(a,()=>ns(r,f,void 0,0));for(let d of f)l.add(d);f.length=0,At(a,()=>ns(r,f,void 0,0));for(let d of f)l.add(d);return ps(l)}function At(r,a){if(r=gr(r,zB),r){let l=[],f=[];for(;r;){let y=wn(r);if(l.push([y,y.resolvedSignature]),y.resolvedSignature=void 0,O0(r)){let k=$i(In(r)),R=k.type;f.push([k,R]),k.type=void 0}r=gr(r.parent,zB)}let d=a();for(let[y,k]of l)y.resolvedSignature=k;for(let[y,k]of f)y.type=k;return d}return a()}function zn(r,a){let l=gr(r,_S);if(l){let d=r;do wn(d).skipDirectInference=!0,d=d.parent;while(d&&d!==l)}D=!0;let f=At(r,a);if(D=!1,l){let d=r;do wn(d).skipDirectInference=void 0,d=d.parent;while(d&&d!==l)}return f}function ns(r,a,l,f){let d=Cs(r,_S);Ve=l;let y=d?$D(d,a,f):void 0;return Ve=void 0,y}var Rn=new Map,hn=new Map,ui=new Map,Ue=new Map,ht=new Map,sr=new Map,Zr=new Map,Zn=new Map,Xn=new Map,Pi=new Map,Rs=new Map,oa=new Map,xr=new Map,xs=new Map,Ye=new Map,Nt=[],ae=new Map,lt=new Set,Y=da(4,"unknown"),Ae=da(0,"__resolving__"),Xe=new Map,st=new Map,Dt=new Set,Fe=ue(1,"any"),St=ue(1,"any",262144,"auto"),vt=ue(1,"any",void 0,"wildcard"),Mt=ue(1,"any",void 0,"blocked string"),Ke=ue(1,"error"),Vt=ue(1,"unresolved"),on=ue(1,"any",65536,"non-inferrable"),Pe=ue(1,"intrinsic"),kt=ue(2,"unknown"),pe=ue(32768,"undefined"),j=te?pe:ue(32768,"undefined",65536,"widening"),Re=ue(32768,"undefined",void 0,"missing"),q=ve?Re:pe,yt=ue(32768,"undefined",void 0,"optional"),jt=ue(65536,"null"),we=te?jt:ue(65536,"null",65536,"widening"),ut=ue(4,"string"),Qt=ue(8,"number"),en=ue(64,"bigint"),Pr=ue(512,"false",void 0,"fresh"),$r=ue(512,"false"),it=ue(512,"true",void 0,"fresh"),Tt=ue(512,"true");it.regularType=Tt,it.freshType=it,Tt.regularType=Tt,Tt.freshType=it,Pr.regularType=$r,Pr.freshType=Pr,$r.regularType=$r,$r.freshType=Pr;var Ut=ri([$r,Tt]),Ot=ue(4096,"symbol"),vr=ue(16384,"void"),ar=ue(131072,"never"),Gt=ue(131072,"never",262144,"silent"),dr=ue(131072,"never",void 0,"implicit"),Sr=ue(131072,"never",void 0,"unreachable"),kr=ue(67108864,"object"),tr=ri([ut,Qt]),si=ri([ut,Qt,Ot]),zs=ri([Qt,en]),ta=ri([ut,Qt,Ut,en,jt,pe]),Os=hx(["",""],[Qt]),qc=$j(r=>r.flags&262144?Kot(r):r,()=>"(restrictive mapper)"),uc=$j(r=>r.flags&262144?vt:r,()=>"(permissive mapper)"),Bc=ue(131072,"never",void 0,"unique literal"),xi=$j(r=>r.flags&262144?Bc:r,()=>"(unique literal mapper)"),bs,il=$j(r=>(bs&&(r===ec||r===Ic||r===N)&&bs(!0),r),()=>"(unmeasurable reporter)"),Qo=$j(r=>(bs&&(r===ec||r===Ic||r===N)&&bs(!1),r),()=>"(unreliable reporter)"),Oa=tc(void 0,E,qe,qe,qe),Zo=tc(void 0,E,qe,qe,qe);Zo.objectFlags|=2048;var Cf=tc(void 0,E,qe,qe,qe);Cf.objectFlags|=141440;var ms=da(2048,"__type");ms.members=ea();var Ys=tc(ms,E,qe,qe,qe),Ba=tc(void 0,E,qe,qe,qe),La=te?ri([pe,jt,Ba]):kt,Ht=tc(void 0,E,qe,qe,qe);Ht.instantiations=new Map;var fo=tc(void 0,E,qe,qe,qe);fo.objectFlags|=262144;var sl=tc(void 0,E,qe,qe,qe),wc=tc(void 0,E,qe,qe,qe),cu=tc(void 0,E,qe,qe,qe),ec=wi(),Ic=wi();Ic.constraint=ec;var N=wi(),Oe=wi(),ft=wi();ft.constraint=Oe;var qt=yR(1,"<<unresolved>>",0,Fe),Br=Gh(void 0,void 0,void 0,qe,Fe,void 0,0,0),Hn=Gh(void 0,void 0,void 0,qe,Ke,void 0,0,0),pn=Gh(void 0,void 0,void 0,qe,Fe,void 0,0,0),Lr=Gh(void 0,void 0,void 0,qe,Gt,void 0,0,0),Ci=Vh(Qt,ut,!0),Ai=Vh(ut,Fe,!1),io=new Map,Ta={get yieldType(){return w.fail("Not supported")},get returnType(){return w.fail("Not supported")},get nextType(){return w.fail("Not supported")}},Go=H1(Fe,Fe,Fe),Dc={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:Dat,getGlobalIterableType:Bj,getGlobalIterableIteratorType:$Me,getGlobalIteratorObjectType:Aat,getGlobalGeneratorType:Eat,getGlobalBuiltinIteratorTypes:Pat,resolveIterationType:(r,a)=>lw(r,a,p.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:p.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:p.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:p.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},$c={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:Nat,getGlobalIterableType:eK,getGlobalIterableIteratorType:HMe,getGlobalIteratorObjectType:Rat,getGlobalGeneratorType:Fat,getGlobalBuiltinIteratorTypes:Mat,resolveIterationType:(r,a)=>r,mustHaveANextMethodDiagnostic:p.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:p.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:p.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Eo,Hc=new Map,wf=new Map,bu,up,x_,Ee,Wt,sn,ts,Js,Ma,Wo,Qc,hc,yc,Yc,wl,Il,If,C_,Pd,zf,Qm,Ih,_p,B_,o_,Km,Jf,Dh,re,at,Kt,Xt,Ar,Yr,Gn,_i,Ji,L,ze,Rt,Er,cs,bi,Zi,gs,Uo,_a,vl,Df,Lp,tm,ky,Ph,Z_,rm,Xm,_d,Y0,Gf,bv,Z0,Sv=new Map,Be=0,rt=0,Lt=0,cr=!1,qr=0,Sn,zr,bn,Di=[],fs=[],ti=[],qi=0,Ls=[],Ql=[],fp=[],pp=0,Pf=V_(""),Ng=Fd(0),Ad=Vj({negative:!1,base10Value:"0"}),Mg=[],Tv=[],Rg=[],kv=0,m1=!1,sT=0,eN=10,bC=[],dD=[],aT=[],mD=[],Kk=[],SC=[],oT=[],gD=[],Xk=[],TC=[],Yk=[],Ym=[],xv=[],xy=[],Fg=[],g1=[],eb=[],cT=[],lT=[],Cv=0,za=cA(),h1=cA(),tN=ai(),tb,Ah,Eh=new Map,jp=new Map,z_=new Map,ef=new Map,Af=new Map,bl=new Map,wv=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",F.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return Kgt(),Hr;function Zk(r){return!Nn(r)||!je(r.name)||!Nn(r.expression)&&!je(r.expression)?!1:je(r.expression)?Ln(r.expression)==="Symbol"&&Hu(r.expression)===(jD("Symbol",1160127,void 0)||Y):je(r.expression.expression)?Ln(r.expression.name)==="Symbol"&&Ln(r.expression.expression)==="globalThis"&&Hu(r.expression.expression)===Je:!1}function nm(r){return r?Ye.get(r):void 0}function rb(r,a){return r&&Ye.set(r,a),a}function lu(r){if(r){let a=Fr(r);if(a)if(wd(r)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;let l=a.pragmas.get("jsxfrag");if(l){let d=ks(l)?l[0]:l;if(a.localJsxFragmentFactory=H2(d.arguments.factory,B),et(a.localJsxFragmentFactory,tf,m_),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=h_(a.localJsxFragmentFactory).escapedText}let f=vye(r);if(f)return a.localJsxFragmentFactory=f,a.localJsxFragmentNamespace=h_(f).escapedText}else{let l=Nh(a);if(l)return a.localJsxNamespace=l}}return tb||(tb="React",F.jsxFactory?(Ah=H2(F.jsxFactory,B),et(Ah,tf),Ah&&(tb=h_(Ah).escapedText)):F.reactNamespace&&(tb=gc(F.reactNamespace))),Ah||(Ah=A.createQualifiedName(A.createIdentifier(Li(tb)),"createElement")),tb}function Nh(r){if(r.localJsxNamespace)return r.localJsxNamespace;let a=r.pragmas.get("jsx");if(a){let l=ks(a)?a[0]:a;if(r.localJsxFactory=H2(l.arguments.factory,B),et(r.localJsxFactory,tf,m_),r.localJsxFactory)return r.localJsxNamespace=h_(r.localJsxFactory).escapedText}}function tf(r){return $d(r,-1,-1),Ir(r,tf,void 0)}function Mh(r,a,l){return l||HOe(r,a),se}function Rh(r,a,...l){let f=r?cn(r,a,...l):cc(a,...l),d=za.lookup(f);return d||(za.add(f),f)}function Og(r,a,l,...f){let d=$e(a,l,...f);return d.skippedOn=r,d}function uT(r,a,...l){return r?cn(r,a,...l):cc(a,...l)}function $e(r,a,...l){let f=uT(r,a,...l);return za.add(f),f}function Iv(r,a){r?za.add(a):h1.add({...a,category:2})}function im(r,a,l,...f){if(a.pos<0||a.end<0){if(!r)return;let d=Fr(a);Iv(r,"message"in l?kl(d,0,0,l,...f):fz(d,l));return}Iv(r,"message"in l?cn(a,l,...f):fh(Fr(a),a,l))}function Dv(r,a,l,...f){let d=$e(r,l,...f);if(a){let y=cn(r,p.Did_you_forget_to_use_await);Xs(d,y)}return d}function kC(r,a){let l=Array.isArray(r)?or(r,DB):DB(r);return l&&Xs(a,cn(l,p.The_declaration_was_marked_as_deprecated_here)),h1.add(a),a}function Pv(r){let a=rf(r);return a&&Dr(r.declarations)>1?a.flags&64?pt(r.declarations,Cy):Oi(r.declarations,Cy):!!r.valueDeclaration&&Cy(r.valueDeclaration)||Dr(r.declarations)&&Oi(r.declarations,Cy)}function Cy(r){return!!(zT(r)&536870912)}function Lg(r,a,l){let f=cn(r,p._0_is_deprecated,l);return kC(a,f)}function xC(r,a,l,f){let d=l?cn(r,p.The_signature_0_of_1_is_deprecated,f,l):cn(r,p._0_is_deprecated,f);return kC(a,d)}function da(r,a,l){g++;let f=new o(r|33554432,a);return f.links=new zSe,f.links.checkFlags=l||0,f}function Kl(r,a){let l=da(1,r);return l.links.type=a,l}function Fh(r,a){let l=da(4,r);return l.links.type=a,l}function Oh(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 nb(r,a){a.mergeId||(a.mergeId=WSe,WSe++),bC[a.mergeId]=r}function y1(r){let a=da(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)),nb(a,r),a}function Zm(r,a,l=!1){if(!(r.flags&Oh(a.flags))||(a.flags|r.flags)&67108864){if(a===r)return r;if(!(r.flags&33554432)){let y=Pc(r);if(y===Y)return a;if(!(y.flags&Oh(a.flags))||(a.flags|y.flags)&67108864)r=y1(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&&r4(r,a.valueDeclaration),jn(r.declarations,a.declarations),a.members&&(r.members||(r.members=ea()),eg(r.members,a.members,l)),a.exports&&(r.exports||(r.exports=ea()),eg(r.exports,a.exports,l,r)),l||nb(r,a)}else r.flags&1024?r!==Je&&$e(a.declarations&&vs(a.declarations[0]),p.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Qi(r)):f(r,a);return r;function f(y,k){let R=!!(y.flags&384||k.flags&384),W=!!(y.flags&2||k.flags&2),J=R?p.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:W?p.Cannot_redeclare_block_scoped_variable_0:p.Duplicate_identifier_0,Z=k.declarations&&Fr(k.declarations[0]),ke=y.declarations&&Fr(y.declarations[0]),he=UP(Z,F.checkJs),Ze=UP(ke,F.checkJs),mt=Qi(k);if(Z&&ke&&Eo&&!R&&Z!==ke){let Ct=ty(Z.path,ke.path)===-1?Z:ke,lr=Ct===Z?ke:Z,rr=pP(Eo,`${Ct.path}|${lr.path}`,()=>({firstFile:Ct,secondFile:lr,conflictingSymbols:new Map})),rn=pP(rr.conflictingSymbols,mt,()=>({isBlockScoped:W,firstFileLocations:[],secondFileLocations:[]}));he||d(rn.firstFileLocations,k),Ze||d(rn.secondFileLocations,y)}else he||wy(k,J,mt,y),Ze||wy(y,J,mt,k)}function d(y,k){if(k.declarations)for(let R of k.declarations)Sp(y,R)}}function wy(r,a,l,f){or(r.declarations,d=>{ex(d,a,l,f.declarations)})}function ex(r,a,l,f){let d=(Rb(r,!1)?bz(r):vs(r))||r,y=Rh(d,a,l);for(let k of f||qe){let R=(Rb(k,!1)?bz(k):vs(k))||k;if(R===d)continue;y.relatedInformation=y.relatedInformation||[];let W=cn(R,p._0_was_also_declared_here,l),J=cn(R,p.and_here);Dr(y.relatedInformation)>=5||pt(y.relatedInformation,Z=>yA(Z,J)===0||yA(Z,W)===0)||Xs(y,Dr(y.relatedInformation)?J:W)}}function Av(r,a){if(!r?.size)return a;if(!a?.size)return r;let l=ea();return eg(l,r),eg(l,a),l}function eg(r,a,l=!1,f){a.forEach((d,y)=>{let k=r.get(y),R=k?Zm(k,d,l):Va(d);f&&k&&(R.parent=f),r.set(y,R)})}function jg(r){var a,l,f;let d=r.parent;if(((a=d.symbol.declarations)==null?void 0:a[0])!==d){w.assert(d.symbol.declarations.length>1);return}if(xg(d))eg(ct,d.symbol.exports);else{let y=r.parent.parent.flags&33554432?void 0:p.Invalid_module_name_in_augmentation_module_0_cannot_be_found,k=x1(r,r,y,!1,!0);if(!k)return;if(k=J_(k),k.flags&1920)if(pt(up,R=>k===R.symbol)){let R=Zm(d.symbol,k,!0);x_||(x_=new Map),x_.set(r.text,R)}else{if((l=k.exports)!=null&&l.get("__export")&&((f=d.symbol.exports)!=null&&f.size)){let R=tme(k,"resolvedExports");for(let[W,J]of ps(d.symbol.exports.entries()))R.has(W)&&!k.exports.has(W)&&Zm(R.get(W),J)}Zm(k,d.symbol)}else $e(r,p.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,r.text)}}function ib(){let r=le.escapedName,a=ct.get(r);a?or(a.declarations,l=>{w2(l)||za.add(cn(l,p.Declaration_name_conflicts_with_built_in_global_identifier_0,Li(r)))}):ct.set(r,le)}function $i(r){if(r.flags&33554432)return r.links;let a=ua(r);return dD[a]??(dD[a]=new zSe)}function wn(r){let a=Ua(r);return aT[a]||(aT[a]=new RJe)}function c_(r,a,l){if(l){let f=Va(r.get(a));if(f&&(f.flags&l||f.flags&2097152&&Ef(f)&l))return f}}function tx(r,a){let l=r.parent,f=r.parent.parent,d=c_(l.locals,a,111551),y=c_(Vg(f.symbol),a,111551);return d&&y?[d,y]:w.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function tg(r,a){let l=Fr(r),f=Fr(a),d=Gd(r);if(l!==f){if(G&&(l.externalModuleIndicator||f.externalModuleIndicator)||!F.outFile||m2(a)||r.flags&33554432||k(a,r))return!0;let W=e.getSourceFiles();return W.indexOf(l)<=W.indexOf(f)}if(a.flags&16777216||m2(a)||Age(a))return!0;if(r.pos<=a.pos&&!(ds(r)&&G6(a.parent)&&!r.initializer&&!r.exclamationToken)){if(r.kind===208){let W=Lb(a,208);return W?gr(W,Da)!==gr(r,Da)||r.pos<W.pos:tg(Lb(r,260),a)}else{if(r.kind===260)return!y(r,a);if(ii(r)){let W=gr(a,J=>J===r?"quit":pa(J)?J.parent.parent===r:!$&&Rl(J)&&(J.parent===r||xc(J.parent)&&J.parent.parent===r||y6(J.parent)&&J.parent.parent===r||ds(J.parent)&&J.parent.parent===r||Bi(J.parent)&&J.parent.parent.parent===r));return W?!$&&Rl(W)?!!gr(a,J=>J===W?"quit":Ns(J)&&!hS(J)):!1:!0}else{if(ds(r))return!R(r,a,!1);if(pf(r,r.parent))return!(U&&su(r)===su(a)&&k(a,r))}}return!0}if(a.parent.kind===281||a.parent.kind===277&&a.parent.isExportEquals||a.kind===277&&a.isExportEquals)return!0;if(k(a,r))return U&&su(r)&&(ds(r)||pf(r,r.parent))?!R(r,a,!0):!0;return!1;function y(W,J){switch(W.parent.parent.kind){case 243:case 248:case 250:if(Ed(J,W,d))return!0;break}let Z=W.parent.parent;return nk(Z)&&Ed(J,Z.expression,d)}function k(W,J){return!!gr(W,Z=>{if(Z===d)return"quit";if(Ns(Z))return!0;if(Nc(Z))return J.pos<W.pos;let ke=Vn(Z.parent,ds);if(ke&&ke.initializer===Z){if(Ks(Z.parent)){if(J.kind===174)return!0;if(ds(J)&&su(W)===su(J)){let Ze=J.name;if(je(Ze)||ji(Ze)){let mt=an(In(J)),Ct=An(J.parent.members,Nc);if(Rmt(Ze,mt,Ct,J.parent.pos,Z.pos))return!0}}}else if(!(J.kind===172&&!Ks(J))||su(W)!==su(J))return!0}return!1})}function R(W,J,Z){return J.end>W.end?!1:gr(J,he=>{if(he===W)return"quit";switch(he.kind){case 219:return!0;case 172:return Z&&(ds(W)&&he.parent===W.parent||pf(W,W.parent)&&he.parent===W.parent.parent)?"quit":!0;case 241:switch(he.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function Io(r){return wn(r).declarationRequiresScopeChange}function v1(r,a){wn(r).declarationRequiresScopeChange=a}function b1(r,a,l,f){return U?!1:(r&&!f&&hD(r,a,a)||$e(r,r&&l.type&&_6(l.type,r.pos)?p.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:p.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,Co(l.name),sm(a)),!0)}function rx(r,a,l,f){let d=ys(a)?a:a.escapedText;n(()=>{if(!r||r.parent.kind!==324&&!hD(r,d,a)&&!Tn(r)&&!ws(r,d,l)&&!S1(r,d)&&!l_(r,d,l)&&!gn(r,d,l)&&!Ev(r,d,l)){let y,k;if(a&&(k=M_t(a),k&&$e(r,f,sm(a),k)),!k&&sT<eN&&(y=q8e(r,d,l),y?.valueDeclaration&&e_(y.valueDeclaration)&&xg(y.valueDeclaration)&&(y=void 0),y)){let W=Qi(y),J=_he(r,y,!1),Z=l===1920||a&&typeof a!="string"&&So(a)?p.Cannot_find_namespace_0_Did_you_mean_1:J?p.Could_not_find_name_0_Did_you_mean_1:p.Cannot_find_name_0_Did_you_mean_1,ke=uT(r,Z,sm(a),W);ke.canonicalHead=Nte(f,sm(a)),Iv(!J,ke),y.valueDeclaration&&Xs(ke,cn(y.valueDeclaration,p._0_is_declared_here,W))}!y&&!k&&a&&$e(r,f,sm(a)),sT++}})}function CC(r,a,l,f,d,y){n(()=>{var k;let R=a.escapedName,W=f&&Mi(f)&&mf(f);if(r&&(l&2||(l&32||l&384)&&(l&111551)===111551)){let J=nf(a);(J.flags&2||J.flags&32||J.flags&384)&&Wg(J,r)}if(W&&(l&111551)===111551&&!(r.flags&16777216)){let J=Va(a);Dr(J.declarations)&&Oi(J.declarations,Z=>eM(Z)||Mi(Z)&&!!Z.symbol.globalExports)&&im(!F.allowUmdGlobalAccess,r,p._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Li(R))}if(d&&!y&&(l&111551)===111551){let J=Va(WQ(a)),Z=Am(d);J===In(d)?$e(r,p.Parameter_0_cannot_reference_itself,Co(d.name)):J.valueDeclaration&&J.valueDeclaration.pos>d.pos&&Z.parent.locals&&c_(Z.parent.locals,J.escapedName,l)===J&&$e(r,p.Parameter_0_cannot_reference_identifier_1_declared_after_it,Co(d.name),Co(r))}if(r&&l&111551&&a.flags&2097152&&!(a.flags&111551)&&!Bb(r)){let J=om(a,111551);if(J){let Z=J.kind===281||J.kind===278||J.kind===280?p._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:p._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,ke=Li(R);sb($e(r,Z,ke),J,ke)}}if(F.isolatedModules&&a&&W&&(l&111551)===111551){let Z=c_(ct,R,l)===a&&Mi(f)&&f.locals&&c_(f.locals,R,-111552);if(Z){let ke=(k=Z.declarations)==null?void 0:k.find(he=>he.kind===276||he.kind===273||he.kind===274||he.kind===271);ke&&!Ew(ke)&&$e(ke,p.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Li(R))}}})}function sb(r,a,l){return a?Xs(r,cn(a,a.kind===281||a.kind===278||a.kind===280?p._0_was_exported_here:p._0_was_imported_here,l)):r}function sm(r){return ys(r)?Li(r):Co(r)}function hD(r,a,l){if(!je(r)||r.escapedText!==a||QOe(r)||m2(r))return!1;let f=t_(r,!1,!1),d=f;for(;d;){if(ii(d.parent)){let y=In(d.parent);if(!y)break;let k=an(y);if(ca(k,a))return $e(r,p.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,sm(l),Qi(y)),!0;if(d===f&&!Ks(d)){let R=Bo(y).thisType;if(ca(R,a))return $e(r,p.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,sm(l)),!0}}d=d.parent}return!1}function Tn(r){let a=$u(r);return a&&Ac(a,64,!0)?($e(r,p.Cannot_extend_an_interface_0_Did_you_mean_implements,oc(a)),!0):!1}function $u(r){switch(r.kind){case 80:case 211:return r.parent?$u(r.parent):void 0;case 233:if(mo(r.expression))return r.expression;default:return}}function ws(r,a,l){let f=1920|(un(r)?111551:0);if(l===f){let d=Pc(_t(r,a,788968&~f,void 0,!1)),y=r.parent;if(d){if(y_(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(Bo(d),k))return $e(y,p.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,Li(a),Li(k)),!0}return $e(r,p._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Li(a)),!0}}return!1}function Ev(r,a,l){if(l&788584){let f=Pc(_t(r,a,111127,void 0,!1));if(f&&!(f.flags&1920))return $e(r,p._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Li(a)),!0}return!1}function nx(r){return r==="any"||r==="string"||r==="number"||r==="boolean"||r==="never"||r==="unknown"}function S1(r,a){return nx(a)&&r.parent.kind===281?($e(r,p.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function gn(r,a,l){if(l&111551){if(nx(a)){let y=r.parent.parent;if(y&&y.parent&&vf(y)){let k=y.token;y.parent.kind===264&&k===96?$e(r,p.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Li(a)):ii(y.parent)&&k===96?$e(r,p.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Li(a)):ii(y.parent)&&k===119&&$e(r,p.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Li(a))}else $e(r,p._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Li(a));return!0}let f=Pc(_t(r,a,788544,void 0,!1)),d=f&&Ef(f);if(f&&d!==void 0&&!(d&111551)){let y=Li(a);return wC(a)?$e(r,p._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):yD(r,f)?$e(r,p._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,p._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,y),!0}}return!1}function yD(r,a){let l=gr(r.parent,f=>pa(f)||s_(f)?!1:v_(f)||"quit");if(l&&l.members.length===1){let f=Bo(a);return!!(f.flags&1048576)&&HR(f,384,!0)}return!1}function wC(r){switch(r){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function l_(r,a,l){if(l&111127){if(Pc(_t(r,a,1024,void 0,!1)))return $e(r,p.Cannot_use_namespace_0_as_a_value,Li(a)),!0}else if(l&788544&&Pc(_t(r,a,1536,void 0,!1)))return $e(r,p.Cannot_use_namespace_0_as_a_type,Li(a)),!0;return!1}function Wg(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(d=>rz(d)||ii(d)||d.kind===266);if(f===void 0)return w.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(f.flags&33554432)&&!tg(f,a)){let d,y=Co(vs(f));r.flags&2?d=$e(a,p.Block_scoped_variable_0_used_before_its_declaration,y):r.flags&32?d=$e(a,p.Class_0_used_before_its_declaration,y):r.flags&256?d=$e(a,p.Enum_0_used_before_its_declaration,y):(w.assert(!!(r.flags&128)),id(F)&&(d=$e(a,p.Enum_0_used_before_its_declaration,y))),d&&Xs(d,cn(f,p._0_is_declared_here,y))}}function Ed(r,a,l){return!!a&&!!gr(r,f=>f===a||(f===l||Ns(f)&&(!hS(f)||Kc(f)&3)?"quit":!1))}function Nv(r){switch(r.kind){case 271:return r;case 273:return r.parent;case 274:return r.parent.parent;case 276:return r.parent.parent.parent;default:return}}function dp(r){return r.declarations&&rS(r.declarations,Lh)}function Lh(r){return r.kind===271||r.kind===270||r.kind===273&&!!r.name||r.kind===274||r.kind===280||r.kind===276||r.kind===281||r.kind===277&&u4(r)||vn(r)&&Vc(r)===2&&u4(r)||Oo(r)&&vn(r.parent)&&r.parent.left===r&&r.parent.operatorToken.kind===64&&Uf(r.parent.right)||r.kind===304||r.kind===303&&Uf(r.initializer)||r.kind===260&&yS(r)||r.kind===208&&yS(r.parent.parent)}function Uf(r){return qF(r)||Ao(r)&&mg(r)}function am(r,a){let l=pT(r);if(l){let d=nI(l.expression).arguments[0];return je(l.name)?Pc(ca(kMe(d),l.name.escapedText)):void 0}if(oi(r)||r.moduleReference.kind===283){let d=u_(r,vz(r)||XP(r)),y=J_(d);return pd(r,d,y,!1),y}let f=cx(r.moduleReference,a);return fd(r,f),f}function fd(r,a){if(pd(r,void 0,a,!1)&&!r.isTypeOnly){let l=om(In(r)),f=l.kind===281||l.kind===278,d=f?p.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:p.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,y=f?p._0_was_exported_here:p._0_was_imported_here,k=l.kind===278?"*":I0(l.name);Xs($e(r.moduleReference,d),cn(l,y,k))}}function Bg(r,a,l,f){let d=r.exports.get("export="),y=d?ca(an(d),a,!0):r.exports.get(a),k=Pc(y,f);return pd(l,y,k,!1),k}function _T(r){return Ho(r)&&!r.isExportEquals||ei(r,2048)||zu(r)||Dg(r)}function Mv(r){return Ha(r)?e.getEmitSyntaxForUsageLocation(Fr(r),r):void 0}function IC(r,a){return r===99&&a===1}function jh(r,a){if(100<=G&&G<=199&&Mv(r)===99){a??(a=u_(r,r,!0));let f=a&&A6(a);return f&&(wp(f)||x7(f.fileName)===".d.json.ts")}return!1}function ix(r,a,l,f){let d=r&&Mv(f);if(r&&d!==void 0){let y=e.getImpliedNodeFormatForEmit(r);if(d===99&&y===1&&100<=G&&G<=199)return!0;if(d===99&&y===99)return!1}if(!me)return!1;if(!r||r.isDeclarationFile){let y=Bg(a,"default",void 0,!0);return!(y&&pt(y.declarations,_T)||Bg(a,gc("__esModule"),void 0,l))}return g_(r)?typeof r.externalModuleIndicator!="object"&&!Bg(a,gc("__esModule"),void 0,l):C1(a)}function DC(r,a){let l=u_(r,r.parent.moduleSpecifier);if(l)return ab(l,r,a)}function ab(r,a,l){var f;let d;M6(r)?d=r:d=Bg(r,"default",a,l);let y=(f=r.declarations)==null?void 0:f.find(Mi),k=Nd(a);if(!k)return d;let R=jh(k,r),W=ix(y,r,l,k);if(!d&&!W&&!R)if(C1(r)&&!me){let J=G>=5?"allowSyntheticDefaultImports":"esModuleInterop",ke=r.exports.get("export=").valueDeclaration,he=$e(a.name,p.Module_0_can_only_be_default_imported_using_the_1_flag,Qi(r),J);ke&&Xs(he,cn(ke,p.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,J))}else Cd(a)?PC(r,a):Fv(r,r,a,b0(a)&&a.propertyName||a.name);else if(W||R){let J=J_(r,l)||Pc(r,l);return pd(a,r,J,!1),J}return pd(a,d,void 0,!1),d}function Nd(r){switch(r.kind){case 273:return r.parent.moduleSpecifier;case 271:return dy(r.moduleReference)?r.moduleReference.expression:void 0;case 274:return r.parent.parent.moduleSpecifier;case 276:return r.parent.parent.parent.moduleSpecifier;case 281:return r.parent.parent.moduleSpecifier;default:return w.assertNever(r)}}function PC(r,a){var l,f,d;if((l=r.exports)!=null&&l.has(a.symbol.escapedName))$e(a.name,p.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Qi(r),Qi(a.symbol));else{let y=$e(a.name,p.Module_0_has_no_default_export,Qi(r)),k=(f=r.exports)==null?void 0:f.get("__export");if(k){let R=(d=k.declarations)==null?void 0:d.find(W=>{var J,Z;return!!(Xc(W)&&W.moduleSpecifier&&((Z=(J=u_(W,W.moduleSpecifier))==null?void 0:J.exports)!=null&&Z.has("default")))});R&&Xs(y,cn(R,p.export_Asterisk_does_not_re_export_a_default))}}}function sx(r,a){let l=r.parent.parent.moduleSpecifier,f=u_(r,l),d=Ov(f,l,a,!1);return pd(r,f,d,!1),d}function Rv(r,a){let l=r.parent.moduleSpecifier,f=l&&u_(r,l),d=l&&Ov(f,l,a,!1);return pd(r,f,d,!1),d}function fT(r,a){if(r===Y&&a===Y)return Y;if(r.flags&790504)return r;let l=da(r.flags|a.flags,r.escapedName);return w.assert(r.declarations||a.declarations),l.declarations=nS(Ki(r.declarations,a.declarations),u0),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 rg(r,a,l,f){var d;if(r.flags&1536){let y=Nf(r).get(a),k=Pc(y,f),R=(d=$i(r).typeOnlyExportStarMap)==null?void 0:d.get(a);return pd(l,y,k,!1,R,a),k}}function Iy(r,a){if(r.flags&3){let l=r.valueDeclaration.type;if(l)return Pc(ca(Fi(l),a))}}function ng(r,a,l=!1){var f;let d=vz(r)||r.moduleSpecifier,y=u_(r,d),k=!Nn(a)&&a.propertyName||a.name;if(!je(k)&&k.kind!==11)return;let R=dS(k),J=Ov(y,d,!1,R==="default"&&me);if(J&&(R||k.kind===11)){if(M6(y))return y;let Z;y&&y.exports&&y.exports.get("export=")?Z=ca(an(J),R,!0):Z=Iy(J,R),Z=Pc(Z,l);let ke=rg(J,R,a,l);if(ke===void 0&&R==="default"){let Ze=(f=y.declarations)==null?void 0:f.find(Mi);(jh(d,y)||ix(Ze,y,l,d))&&(ke=J_(y,l)||Pc(y,l))}let he=ke&&Z&&ke!==Z?fT(Z,ke):ke||Z;return b0(a)&&jh(d,y)&&R!=="default"?$e(k,p.Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0,kw[G]):he||Fv(y,J,r,k),he}}function Fv(r,a,l,f){var d;let y=Dy(r,l),k=Co(f),R=je(f)?dhe(f,a):void 0;if(R!==void 0){let W=Qi(R),J=$e(f,p._0_has_no_exported_member_named_1_Did_you_mean_2,y,k,W);R.valueDeclaration&&Xs(J,cn(R.valueDeclaration,p._0_is_declared_here,W))}else(d=r.exports)!=null&&d.has("default")?$e(f,p.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,y,k):Xl(l,f,k,r,y)}function Xl(r,a,l,f,d){var y,k;let R=(k=(y=Vn(f.valueDeclaration,Sg))==null?void 0:y.locals)==null?void 0:k.get(dS(a)),W=f.exports;if(R){let J=W?.get("export=");if(J)gp(J,R)?ax(r,a,l,d):$e(a,p.Module_0_has_no_exported_member_1,d,l);else{let Z=W?On(mme(W),he=>!!gp(he,R)):void 0,ke=Z?$e(a,p.Module_0_declares_1_locally_but_it_is_exported_as_2,d,l,Qi(Z)):$e(a,p.Module_0_declares_1_locally_but_it_is_not_exported,d,l);R.declarations&&Xs(ke,...hr(R.declarations,(he,Ze)=>cn(he,Ze===0?p._0_is_declared_here:p.and_here,l)))}}else $e(a,p.Module_0_has_no_exported_member_1,d,l)}function ax(r,a,l,f){if(G>=5){let d=yh(F)?p._0_can_only_be_imported_by_using_a_default_import:p._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;$e(a,d,l)}else if(un(r)){let d=yh(F)?p._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:p._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;$e(a,d,l)}else{let d=yh(F)?p._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:p._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,d,l,l,f)}}function Wh(r,a){if(a_(r)&&kg(r.propertyName||r.name)){let k=Nd(r),R=k&&u_(r,k);if(R)return ab(R,r,a)}let l=Da(r)?Am(r):r.parent.parent.parent,f=pT(l),d=ng(l,f||r,a),y=r.propertyName||r.name;return f&&d&&je(y)?Pc(ca(an(d),y.escapedText),a):(pd(r,void 0,d,!1),d)}function pT(r){if(oi(r)&&r.initializer&&Nn(r.initializer))return r.initializer}function AC(r,a){if(Jd(r.parent)){let l=J_(r.parent.symbol,a);return pd(r,void 0,l,!1),l}}function zg(r,a,l){let f=r.propertyName||r.name;if(kg(f)){let y=Nd(r),k=y&&u_(r,y);if(k)return ab(k,r,!!l)}let d=r.parent.parent.moduleSpecifier?ng(r.parent.parent,r,l):f.kind===11?void 0:Ac(f,a,!1,l);return pd(r,void 0,d,!1),d}function vD(r,a){let l=Ho(r)?r.expression:r.right,f=dT(l,a);return pd(r,void 0,f,!1),f}function dT(r,a){if(ml(r))return Ec(r).symbol;if(!m_(r)&&!mo(r))return;let l=Ac(r,901119,!0,a);return l||(Ec(r),wn(r).resolvedSymbol)}function bD(r,a){if(vn(r.parent)&&r.parent.left===r&&r.parent.operatorToken.kind===64)return dT(r.parent.right,a)}function T1(r,a=!1){switch(r.kind){case 271:case 260:return am(r,a);case 273:return DC(r,a);case 274:return sx(r,a);case 280:return Rv(r,a);case 276:case 208:return Wh(r,a);case 281:return zg(r,901119,a);case 277:case 226:return vD(r,a);case 270:return AC(r,a);case 304:return Ac(r.name,901119,!0,a);case 303:return dT(r.initializer,a);case 212:case 211:return bD(r,a);default:return w.fail()}}function ox(r,a=901119){return r?(r.flags&(2097152|a))===2097152||!!(r.flags&2097152&&r.flags&67108864):!1}function Pc(r,a){return!a&&ox(r)?al(r):r}function al(r){w.assert((r.flags&2097152)!==0,"Should only get Alias here.");let a=$i(r);if(a.aliasTarget)a.aliasTarget===Ae&&(a.aliasTarget=Y);else{a.aliasTarget=Ae;let l=dp(r);if(!l)return w.fail();let f=T1(l);a.aliasTarget===Ae?a.aliasTarget=f||Y:$e(l,p.Circular_definition_of_import_alias_0,Qi(r))}return a.aliasTarget}function SD(r){if($i(r).aliasTarget!==Ae)return al(r)}function Ef(r,a,l){let f=a&&om(r),d=f&&Xc(f),y=f&&(d?u_(f.moduleSpecifier,f.moduleSpecifier,!0):al(f.symbol)),k=d&&y?Bh(y):void 0,R=l?0:r.flags,W;for(;r.flags&2097152;){let J=nf(al(r));if(!d&&J===y||k?.get(J.escapedName)===J)break;if(J===Y)return-1;if(J===r||W?.has(J))break;J.flags&2097152&&(W?W.add(J):W=new Set([r,J])),R|=J.flags,r=J}return R}function pd(r,a,l,f,d,y){if(!r||Nn(r))return!1;let k=In(r);if(Xy(r)){let W=$i(k);return W.typeOnlyDeclaration=r,!0}if(d){let W=$i(k);return W.typeOnlyDeclaration=d,k.escapedName!==y&&(W.typeOnlyExportStarName=y),!0}let R=$i(k);return EC(R,a,f)||EC(R,l,f)}function EC(r,a,l){var f;if(a&&(r.typeOnlyDeclaration===void 0||l&&r.typeOnlyDeclaration===!1)){let d=((f=a.exports)==null?void 0:f.get("export="))??a,y=d.declarations&&On(d.declarations,Xy);r.typeOnlyDeclaration=y??$i(d).typeOnlyDeclaration??!1}return!!r.typeOnlyDeclaration}function om(r,a){var l;if(!(r.flags&2097152))return;let f=$i(r);if(f.typeOnlyDeclaration===void 0){f.typeOnlyDeclaration=!1;let d=Pc(r);pd((l=r.declarations)==null?void 0:l[0],dp(r)&&VK(r),d,!0)}if(a===void 0)return f.typeOnlyDeclaration||void 0;if(f.typeOnlyDeclaration){let d=f.typeOnlyDeclaration.kind===278?Pc(Bh(f.typeOnlyDeclaration.symbol.parent).get(f.typeOnlyExportStarName||r.escapedName)):al(f.typeOnlyDeclaration.symbol);return Ef(d)&a?f.typeOnlyDeclaration:void 0}}function cx(r,a){return r.kind===80&&fA(r)&&(r=r.parent),r.kind===80||r.parent.kind===166?Ac(r,1920,!1,a):(w.assert(r.parent.kind===271),Ac(r,901119,!1,a))}function Dy(r,a){return r.parent?Dy(r.parent,a)+"."+Qi(r):Qi(r,a,void 0,36)}function TD(r){for(;y_(r.parent);)r=r.parent;return r}function lx(r){let a=h_(r),l=_t(a,a,111551,void 0,!0);if(l){for(;y_(a.parent);){let f=an(l);if(l=ca(f,a.parent.right.escapedText),!l)return;a=a.parent}return l}}function Ac(r,a,l,f,d){if(Tc(r))return;let y=1920|(un(r)?a&111551:0),k;if(r.kind===80){let R=a===y||So(r)?p.Cannot_find_namespace_0:SRe(h_(r)),W=un(r)&&!So(r)?k1(r,a):void 0;if(k=Va(_t(d||r,r,a,l||W?void 0:R,!0,!1)),!k)return Va(W)}else if(r.kind===166||r.kind===211){let R=r.kind===166?r.left:r.expression,W=r.kind===166?r.right:r.name,J=Ac(R,y,l,!1,d);if(!J||Tc(W))return;if(J===Y)return J;if(J.valueDeclaration&&un(J.valueDeclaration)&&Bu(F)!==100&&oi(J.valueDeclaration)&&J.valueDeclaration.initializer&&hFe(J.valueDeclaration.initializer)){let Z=J.valueDeclaration.initializer.arguments[0],ke=u_(Z,Z);if(ke){let he=J_(ke);he&&(J=he)}}if(k=Va(c_(Nf(J),W.escapedText,a)),!k&&J.flags&2097152&&(k=Va(c_(Nf(al(J)),W.escapedText,a))),!k){if(!l){let Z=Dy(J),ke=Co(W),he=dhe(W,J);if(he){$e(W,p._0_has_no_exported_member_named_1_Did_you_mean_2,Z,ke,Qi(he));return}let Ze=y_(r)&&TD(r);if(Ee&&a&788968&&Ze&&!pI(Ze.parent)&&lx(Ze)){$e(Ze,p._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,df(Ze));return}if(a&1920&&y_(r.parent)){let Ct=Va(c_(Nf(J),W.escapedText,788968));if(Ct){$e(r.parent.right,p.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,Qi(Ct),Li(r.parent.right.escapedText));return}}$e(W,p.Namespace_0_has_no_exported_member_1,Z,ke)}return}}else w.assertNever(r,"Unknown entity name kind.");return!So(r)&&m_(r)&&(k.flags&2097152||r.parent.kind===277)&&pd(Pz(r),k,void 0,!0),k.flags&a||f?k:al(k)}function k1(r,a){if(XQ(r.parent)){let l=kD(r.parent);if(l)return _t(l,r,a,void 0,!0)}}function kD(r){if(gr(r,d=>Rw(d)||d.flags&16777216?td(d):"quit"))return;let l=bS(r);if(l&&$l(l)&&t4(l.expression)){let d=In(l.expression.left);if(d)return mT(d)}if(l&&Ao(l)&&t4(l.parent)&&$l(l.parent.parent)){let d=In(l.parent.left);if(d)return mT(d)}if(l&&(ed(l)||hl(l))&&vn(l.parent.parent)&&Vc(l.parent.parent)===6){let d=In(l.parent.parent.left);if(d)return mT(d)}let f=Ob(r);if(f&&Ns(f)){let d=In(f);return d&&d.valueDeclaration}}function mT(r){let a=r.parent.valueDeclaration;return a?(YP(a)?c2(a):ik(a)?ZP(a):void 0)||a:void 0}function rN(r){let a=r.valueDeclaration;if(!a||!un(a)||r.flags&524288||Rb(a,!1))return;let l=oi(a)?ZP(a):c2(a);if(l){let f=Vf(l);if(f)return xhe(f,r)}}function u_(r,a,l){let d=Bu(F)===1?p.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:p.Cannot_find_module_0_or_its_corresponding_type_declarations;return x1(r,a,l?void 0:d,l)}function x1(r,a,l,f=!1,d=!1){return Ha(a)?gT(r,a.text,l,f?void 0:a,d):void 0}function gT(r,a,l,f,d=!1){var y,k,R,W,J,Z,ke,he,Ze,mt,Ct;if(f&&Yi(a,"@types/")){let Dn=p.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,hs=gP(a,"@types/");$e(f,Dn,hs,a)}let lr=TMe(a,!0);if(lr)return lr;let rr=Fr(r),rn=Ha(r)?r:((y=nl(r)?r:r.parent&&nl(r.parent)&&r.parent.name===r?r.parent:void 0)==null?void 0:y.name)||((k=sy(r)?r:void 0)==null?void 0:k.argument.literal)||(oi(r)&&r.initializer&&R_(r.initializer,!0)?r.initializer.arguments[0]:void 0)||((R=gr(r,jf))==null?void 0:R.arguments[0])||((W=gr(r,uf(sc,zm,Xc)))==null?void 0:W.moduleSpecifier)||((J=gr(r,Mb))==null?void 0:J.moduleReference.expression),Kr=rn&&Ha(rn)?e.getModeForUsageLocation(rr,rn):e.getDefaultResolutionModeForFile(rr),pr=Bu(F),ir=(Z=e.getResolvedModule(rr,a,Kr))==null?void 0:Z.resolvedModule,yn=f&&ir&&dV(F,ir,rr),Qn=ir&&(!yn||yn===p.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(ir.resolvedFileName);if(Qn){if(yn&&$e(f,yn,a,ir.resolvedFileName),ir.resolvedUsingTsExtension&&Ll(a)){let Dn=((ke=gr(r,sc))==null?void 0:ke.importClause)||gr(r,uf(Ol,Xc));(f&&Dn&&!Dn.isTypeOnly||gr(r,jf))&&$e(f,p.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,Wi(w.checkDefined(_O(a))))}else if(ir.resolvedUsingTsExtension&&!RI(F,rr.fileName)){let Dn=((he=gr(r,sc))==null?void 0:he.importClause)||gr(r,uf(Ol,Xc));if(f&&!(Dn?.isTypeOnly||gr(r,Om))){let hs=w.checkDefined(_O(a));$e(f,p.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,hs)}}else if(F.rewriteRelativeImportExtensions&&!(r.flags&33554432)&&!Ll(a)&&!sy(r)&&!Vee(r)){let Dn=i4(a,F);if(!ir.resolvedUsingTsExtension&&Dn)$e(f,p.This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0,Cw(as(rr.fileName,e.getCurrentDirectory()),ir.resolvedFileName,cy(e)));else if(ir.resolvedUsingTsExtension&&!Dn&&kS(Qn,e))$e(f,p.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,qx(a));else if(ir.resolvedUsingTsExtension&&Dn){let hs=e.getResolvedProjectReferenceToRedirect(Qn.path);if(hs){let Gs=!e.useCaseSensitiveFileNames(),co=e.getCommonSourceDirectory(),As=Wk(hs.commandLine,Gs),Qu=Zf(co,As,Gs),tu=Zf(F.outDir||co,hs.commandLine.options.outDir||As,Gs);Qu!==tu&&$e(f,p.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(Qn.symbol){if(f&&ir.isExternalLibraryImport&&!TA(ir.extension)&&ux(!1,f,rr,Kr,ir,a),f&&(G===100||G===101)){let Dn=rr.impliedNodeFormat===1&&!gr(r,jf)||!!gr(r,Ol),hs=gr(r,Gs=>Om(Gs)||Xc(Gs)||sc(Gs)||zm(Gs));if(Dn&&Qn.impliedNodeFormat===99&&!Tne(hs))if(gr(r,Ol))$e(f,p.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 Gs,co=bh(rr.fileName);(co===".ts"||co===".js"||co===".tsx"||co===".jsx")&&(Gs=KB(rr));let As=hs?.kind===272&&((Ze=hs.importClause)!=null&&Ze.isTypeOnly)?p.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:hs?.kind===205?p.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:p.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;za.add(fh(Fr(f),f,Ps(Gs,As,a)))}}return Va(Qn.symbol)}f&&l&&!JJ(f)&&$e(f,p.File_0_is_not_a_module,Qn.fileName);return}if(up){let Dn=jW(up,hs=>hs.pattern,a);if(Dn){let hs=x_&&x_.get(a);return Va(hs||Dn.symbol)}}if(!f)return;if(ir&&!TA(ir.extension)&&yn===void 0||yn===p.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(d){let Dn=p.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;$e(f,Dn,a,ir.resolvedFileName)}else ux(de&&!!l,f,rr,Kr,ir,a);return}if(l){if(ir){let Dn=e.getProjectReferenceRedirect(ir.resolvedFileName);if(Dn){$e(f,p.Output_file_0_has_not_been_built_from_source_file_1,Dn,ir.resolvedFileName);return}}if(yn)$e(f,yn,a,ir.resolvedFileName);else{let Dn=Of(a)&&!xw(a),hs=pr===3||pr===99;if(!DS(F)&&nc(a,".json")&&pr!==1&&TO(F))$e(f,p.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(Kr===99&&hs&&Dn){let Gs=as(a,Yn(rr.path)),co=(mt=wv.find(([As,Qu])=>e.fileExists(Gs+As)))==null?void 0:mt[1];co?$e(f,p.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+co):$e(f,p.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((Ct=e.getResolvedModule(rr,a,Kr))!=null&&Ct.alternateResult){let Gs=hF(rr,e,a,Kr,a);im(!0,f,Ps(Gs,l,a))}else $e(f,l,a)}}return;function Wi(Dn){let hs=O4(a,Dn);if(E4(G)||Kr===99){let Gs=Ll(a)&&RI(F);return hs+(Dn===".mts"||Dn===".d.mts"?Gs?".mts":".mjs":Dn===".cts"||Dn===".d.mts"?Gs?".cts":".cjs":Gs?".ts":".js")}return hs}}function ux(r,a,l,f,{packageId:d,resolvedFileName:y},k){if(JJ(a))return;let R;!Jl(k)&&d&&(R=hF(l,e,k,f,d.name)),im(r,a,Ps(R,p.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,k,y))}function J_(r,a){if(r?.exports){let l=Pc(r.exports.get("export="),a),f=dd(Va(l),Va(r));return Va(f)||r}}function dd(r,a){if(!r||r===Y||r===a||a.exports.size===1||r.flags&2097152)return r;let l=$i(r);if(l.cjsExportMerged)return l.cjsExportMerged;let f=r.flags&33554432?r:y1(r);return f.flags=f.flags|512,f.exports===void 0&&(f.exports=ea()),a.exports.forEach((d,y)=>{y!=="export="&&f.exports.set(y,f.exports.has(y)?Zm(f.exports.get(y),d):d)}),f===r&&($i(f).resolvedExports=void 0,$i(f).resolvedMembers=void 0),$i(f).cjsExportMerged=f,l.cjsExportMerged=f}function Ov(r,a,l,f){var d;let y=J_(r,l);if(!l&&y){if(!f&&!(y.flags&1539)&&!Yo(y,307)){let R=G>=5?"allowSyntheticDefaultImports":"esModuleInterop";return $e(a,p.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,R),y}let k=a.parent;if(sc(k)&&qw(k)||jf(k)){let R=jf(k)?k.arguments[0]:k.moduleSpecifier,W=an(y),J=mFe(W,y,r,R);if(J)return NC(y,J,k);let Z=(d=r?.declarations)==null?void 0:d.find(Mi),ke=Z&&IC(Mv(R),e.getImpliedNodeFormatForEmit(Z));if(yh(F)||ke){let he=Oj(W,0);if((!he||!he.length)&&(he=Oj(W,1)),he&&he.length||ca(W,"default",!0)||ke){let Ze=W.flags&3670016?gFe(W,y,r,R):Che(y,y.parent);return NC(y,Ze,k)}}}}return y}function NC(r,a,l){let f=da(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 d=pm(a);return f.links.type=tc(f,d.members,qe,qe,d.indexInfos),f}function C1(r){return r.exports.get("export=")!==void 0}function w1(r){return mme(Bh(r))}function MC(r){let a=w1(r),l=J_(r);if(l!==r){let f=an(l);Jg(f)&&jn(a,so(f))}return a}function I1(r,a){Bh(r).forEach((d,y)=>{is(y)||a(d,y)});let f=J_(r);if(f!==r){let d=an(f);Jg(d)&&Vst(d,(y,k)=>{a(y,k)})}}function RC(r,a){let l=Bh(a);if(l)return l.get(r)}function hT(r,a){let l=RC(r,a);if(l)return l;let f=J_(a);if(f===a)return;let d=an(f);return Jg(d)?ca(d,r):void 0}function Jg(r){return!(r.flags&402784252||Mn(r)&1||Gp(r)||Pa(r))}function Nf(r){return r.flags&6256?tme(r,"resolvedExports"):r.flags&1536?Bh(r):r.exports||E}function Bh(r){let a=$i(r);if(!a.resolvedExports){let{exports:l,typeOnlyExportStarMap:f}=D1(r);a.resolvedExports=l,a.typeOnlyExportStarMap=f}return a.resolvedExports}function _x(r,a,l,f){a&&a.forEach((d,y)=>{if(y==="default")return;let k=r.get(y);if(!k)r.set(y,d),l&&f&&l.set(y,{specifierText:oc(f.moduleSpecifier)});else if(l&&f&&k&&Pc(k)!==Pc(d)){let R=l.get(y);R.exportsWithDuplicate?R.exportsWithDuplicate.push(f):R.exportsWithDuplicate=[f]}})}function D1(r){let a=[],l,f=new Set;r=J_(r);let d=y(r)||E;return l&&f.forEach(k=>l.delete(k)),{exports:d,typeOnlyExportStarMap:l};function y(k,R,W){if(!W&&k?.exports&&k.exports.forEach((ke,he)=>f.add(he)),!(k&&k.exports&&Sp(a,k)))return;let J=new Map(k.exports),Z=k.exports.get("__export");if(Z){let ke=ea(),he=new Map;if(Z.declarations)for(let Ze of Z.declarations){let mt=u_(Ze,Ze.moduleSpecifier),Ct=y(mt,Ze,W||Ze.isTypeOnly);_x(ke,Ct,he,Ze)}he.forEach(({exportsWithDuplicate:Ze},mt)=>{if(!(mt==="export="||!(Ze&&Ze.length)||J.has(mt)))for(let Ct of Ze)za.add(cn(Ct,p.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,he.get(mt).specifierText,Li(mt)))}),_x(J,ke)}return R?.isTypeOnly&&(l??(l=new Map),J.forEach((ke,he)=>l.set(he,R))),J}}function Va(r){let a;return r&&r.mergeId&&(a=bC[r.mergeId])?a:r}function In(r){return Va(r.symbol&&WQ(r.symbol))}function Vf(r){return Jd(r)?In(r):void 0}function rf(r){return Va(r.parent&&WQ(r.parent))}function FC(r){var a,l;return(((a=r.valueDeclaration)==null?void 0:a.kind)===219||((l=r.valueDeclaration)==null?void 0:l.kind)===218)&&Vf(r.valueDeclaration.parent)||r}function ob(r,a){let l=Fr(a),f=Ua(l),d=$i(r),y;if(d.extendedContainersByFile&&(y=d.extendedContainersByFile.get(f)))return y;if(l&&l.imports){for(let R of l.imports){if(So(R))continue;let W=u_(a,R,!0);!W||!mp(W,r)||(y=jr(y,W))}if(Dr(y))return(d.extendedContainersByFile||(d.extendedContainersByFile=new Map)).set(f,y),y}if(d.extendedContainers)return d.extendedContainers;let k=e.getSourceFiles();for(let R of k){if(!xl(R))continue;let W=In(R);mp(W,r)&&(y=jr(y,W))}return d.extendedContainers=y||qe}function fx(r,a,l){let f=rf(r);if(f&&!(r.flags&262144))return W(f);let d=Vi(r.declarations,Z=>{if(!e_(Z)&&Z.parent){if(vT(Z.parent))return In(Z.parent);if(Lm(Z.parent)&&Z.parent.parent&&J_(In(Z.parent.parent))===r)return In(Z.parent.parent)}if(ml(Z)&&vn(Z.parent)&&Z.parent.operatorToken.kind===64&&Oo(Z.parent.left)&&mo(Z.parent.left.expression))return dh(Z.parent.left)||lk(Z.parent.left.expression)?In(Fr(Z)):(Ec(Z.parent.left.expression),wn(Z.parent.left.expression).resolvedSymbol)});if(!Dr(d))return;let y=Vi(d,Z=>mp(Z,r)?Z:void 0),k=[],R=[];for(let Z of y){let[ke,...he]=W(Z);k=jr(k,ke),R=jn(R,he)}return Ki(k,R);function W(Z){let ke=Vi(Z.declarations,J),he=a&&ob(r,a),Ze=OC(Z,l);if(a&&Z.flags&ig(l)&&cb(Z,a,1920,!1))return jr(Ki(Ki([Z],ke),he),Ze);let mt=!(Z.flags&ig(l))&&Z.flags&788968&&Bo(Z).flags&524288&&l===111551?I_(a,lr=>Nl(lr,rr=>{if(rr.flags&ig(l)&&an(rr)===Bo(Z))return rr})):void 0,Ct=mt?[mt,...ke,Z]:[...ke,Z];return Ct=jr(Ct,Ze),Ct=jn(Ct,he),Ct}function J(Z){return f&&LC(Z,f)}}function OC(r,a){let l=!!Dr(r.declarations)&&Ea(r.declarations);if(a&111551&&l&&l.parent&&oi(l.parent)&&(Sa(l)&&l===l.parent.initializer||v_(l)&&l===l.parent.type))return In(l.parent)}function LC(r,a){let l=JC(r),f=l&&l.exports&&l.exports.get("export=");return f&&gp(f,a)?l:void 0}function mp(r,a){if(r===rf(a))return a;let l=r.exports&&r.exports.get("export=");if(l&&gp(l,a))return r;let f=Nf(r),d=f.get(a.escapedName);return d&&gp(d,a)?d:Nl(f,y=>{if(gp(y,a))return y})}function gp(r,a){if(Va(Pc(Va(r)))===Va(Pc(Va(a))))return r}function nf(r){return Va(r&&(r.flags&1048576)!==0&&r.exportSymbol||r)}function cm(r,a){return!!(r.flags&111551||r.flags&2097152&&Ef(r,!a)&111551)}function Py(r){var a;let l=new c(Hr,r);return u++,l.id=u,(a=_n)==null||a.recordType(l),l}function zh(r,a){let l=Py(r);return l.symbol=a,l}function C(r){return new c(Hr,r)}function ue(r,a,l=0,f){xt(a,f);let d=Py(r);return d.intrinsicName=a,d.debugIntrinsicName=f,d.objectFlags=l|524288|2097152|33554432|16777216,d}function xt(r,a){let l=`${r},${a??""}`;Dt.has(l)&&w.fail(`Duplicate intrinsic type name ${r}${a?` (${a})`:""}; you may need to pass a name to createIntrinsicType.`),Dt.add(l)}function _r(r,a){let l=zh(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 ai(){return ri(ps(Qse.keys(),V_))}function wi(r){return zh(262144,r)}function is(r){return r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)!==95&&r.charCodeAt(2)!==64&&r.charCodeAt(2)!==35}function Ss(r){let a;return r.forEach((l,f)=>{Ca(l,f)&&(a||(a=[])).push(l)}),a||qe}function Ca(r,a){return!is(a)&&cm(r)}function w_(r){let a=Ss(r),l=VQ(r);return l?Ki(a,[l]):a}function vc(r,a,l,f,d){let y=r;return y.members=a,y.properties=qe,y.callSignatures=l,y.constructSignatures=f,y.indexInfos=d,a!==E&&(y.properties=Ss(a)),y}function tc(r,a,l,f,d){return vc(_r(16,r),a,l,f,d)}function jC(r){if(r.constructSignatures.length===0)return r;if(r.objectTypeWithoutAbstractConstructSignatures)return r.objectTypeWithoutAbstractConstructSignatures;let a=An(r.constructSignatures,f=>!(f.flags&4));if(r.constructSignatures===a)return r;let l=tc(r.symbol,r.members,r.callSignatures,pt(a)?a:qe,r.indexInfos);return r.objectTypeWithoutAbstractConstructSignatures=l,l.objectTypeWithoutAbstractConstructSignatures=l,l}function I_(r,a){let l;for(let f=r;f;f=f.parent){if(Sg(f)&&f.locals&&!Zy(f)&&(l=a(f.locals,void 0,!0,f)))return l;switch(f.kind){case 307:if(!mf(f))break;case 267:let d=In(f);if(l=a(d?.exports||E,void 0,!0,f))return l;break;case 263:case 231:case 264:let y;if((In(f).members||E).forEach((k,R)=>{k.flags&788968&&(y||(y=ea())).set(R,k)}),y&&(l=a(y,void 0,!1,f)))return l;break}}return a(ct,void 0,!0)}function ig(r){return r===111551?111551:1920}function cb(r,a,l,f,d=new Map){if(!(r&&!WC(r)))return;let y=$i(r),k=y.accessibleChainCache||(y.accessibleChainCache=new Map),R=I_(a,(rr,rn,Kr,pr)=>pr),W=`${f?0:1}|${R?Ua(R):0}|${l}`;if(k.has(W))return k.get(W);let J=ua(r),Z=d.get(J);Z||d.set(J,Z=[]);let ke=I_(a,he);return k.set(W,ke),ke;function he(rr,rn,Kr){if(!Sp(Z,rr))return;let pr=Ct(rr,rn,Kr);return Z.pop(),pr}function Ze(rr,rn){return!P1(rr,a,rn)||!!cb(rr.parent,a,ig(rn),f,d)}function mt(rr,rn,Kr){return(r===(rn||rr)||Va(r)===Va(rn||rr))&&!pt(rr.declarations,vT)&&(Kr||Ze(Va(rr),l))}function Ct(rr,rn,Kr){return mt(rr.get(r.escapedName),void 0,rn)?[r]:Nl(rr,ir=>{if(ir.flags&2097152&&ir.escapedName!=="export="&&ir.escapedName!=="default"&&!(gO(ir)&&a&&xl(Fr(a)))&&(!f||pt(ir.declarations,Mb))&&(!Kr||!pt(ir.declarations,$te))&&(rn||!Yo(ir,281))){let yn=al(ir),Qn=lr(ir,yn,rn);if(Qn)return Qn}if(ir.escapedName===r.escapedName&&ir.exportSymbol&&mt(Va(ir.exportSymbol),void 0,rn))return[r]})||(rr===ct?lr(Je,Je,rn):void 0)}function lr(rr,rn,Kr){if(mt(rr,rn,Kr))return[rr];let pr=Nf(rn),ir=pr&&he(pr,!0);if(ir&&Ze(rr,ig(l)))return[rr].concat(ir)}}function P1(r,a,l){let f=!1;return I_(a,d=>{let y=Va(d.get(r.escapedName));if(!y)return!1;if(y===r)return!0;let k=y.flags&2097152&&!Yo(y,281);return y=k?al(y):y,(k?Ef(y):y.flags)&l?(f=!0,!0):!1}),f}function WC(r){if(r.declarations&&r.declarations.length){for(let a of r.declarations)switch(a.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function BC(r,a){return zC(r,a,788968,!1,!0).accessibility===0}function Lv(r,a){return zC(r,a,111551,!1,!0).accessibility===0}function jv(r,a,l){return zC(r,a,l,!1,!1).accessibility===0}function yT(r,a,l,f,d,y){if(!Dr(r))return;let k,R=!1;for(let W of r){let J=cb(W,a,f,!1);if(J){k=W;let he=sR(J[0],d);if(he)return he}if(y&&pt(W.declarations,vT)){if(d){R=!0;continue}return{accessibility:0}}let Z=fx(W,a,f),ke=yT(Z,a,l,l===W?ig(f):f,d,y);if(ke)return ke}if(R)return{accessibility:0};if(k)return{accessibility:1,errorSymbolName:Qi(l,a,f),errorModuleName:k!==l?Qi(k,a,1920):void 0}}function sg(r,a,l,f){return zC(r,a,l,f,!0)}function zC(r,a,l,f,d){if(r&&a){let y=yT([r],a,r,l,f,d);if(y)return y;let k=or(r.declarations,JC);if(k){let R=JC(a);if(k!==R)return{accessibility:2,errorSymbolName:Qi(r,a,l),errorModuleName:Qi(k),errorNode:un(a)?a:void 0}}return{accessibility:1,errorSymbolName:Qi(r,a,l)}}return{accessibility:0}}function JC(r){let a=gr(r,iR);return a&&In(a)}function iR(r){return e_(r)||r.kind===307&&mf(r)}function vT(r){return TF(r)||r.kind===307&&mf(r)}function sR(r,a){let l;if(!Oi(An(r.declarations,y=>y.kind!==80),f))return;return{accessibility:0,aliasesToMakeVisible:l};function f(y){var k,R;if(!Ay(y)){let W=Nv(y);if(W&&!ei(W,32)&&Ay(W.parent))return d(y,W);if(oi(y)&&Lc(y.parent.parent)&&!ei(y.parent.parent,32)&&Ay(y.parent.parent.parent))return d(y,y.parent.parent);if(kF(y)&&!ei(y,32)&&Ay(y.parent))return d(y,y);if(Da(y)){if(r.flags&2097152&&un(y)&&((k=y.parent)!=null&&k.parent)&&oi(y.parent.parent)&&((R=y.parent.parent.parent)!=null&&R.parent)&&Lc(y.parent.parent.parent.parent)&&!ei(y.parent.parent.parent.parent,32)&&y.parent.parent.parent.parent.parent&&Ay(y.parent.parent.parent.parent.parent))return d(y,y.parent.parent.parent.parent);if(r.flags&2){let J=gr(y,Lc);return ei(J,32)?!0:Ay(J.parent)?d(y,J):!1}}return!1}return!0}function d(y,k){return a&&(wn(y).isVisible=!0,l=Zh(l,k)),!0}}function nN(r){let a;return r.parent.kind===186||r.parent.kind===233&&!Im(r.parent)||r.parent.kind===167||r.parent.kind===182&&r.parent.parameterName===r?a=1160127:r.kind===166||r.kind===211||r.parent.kind===271||r.parent.kind===166&&r.parent.left===r||r.parent.kind===211&&r.parent.expression===r||r.parent.kind===212&&r.parent.expression===r?a=1920:a=788968,a}function GC(r,a,l=!0){let f=nN(r),d=h_(r),y=_t(a,d.escapedText,f,void 0,!1);return y&&y.flags&262144&&f&788968?{accessibility:0}:!y&&N0(d)&&sg(In(t_(d,!1,!1)),d,f,!1).accessibility===0?{accessibility:0}:y?sR(y,l)||{accessibility:1,errorSymbolName:oc(d),errorNode:d}:{accessibility:3,errorSymbolName:oc(d),errorNode:d}}function Qi(r,a,l,f=4,d){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 R=f&4?xe.symbolToNode:xe.symbolToEntityName;return d?W(d).getText():Ow(W);function W(J){let Z=R(r,l,a,y,k),ke=a?.kind===307?Vae():qS(),he=a&&Fr(a);return ke.writeNode(4,Z,he,J),J}}function bT(r,a,l=0,f,d){return d?y(d).getText():Ow(y);function y(k){let R;l&262144?R=f===1?185:184:R=f===1?180:179;let W=xe.signatureToSignatureDeclaration(r,R,a,VC(l)|70221824|512),J=XU(),Z=a&&Fr(a);return J.writeNode(4,W,Z,Jz(k)),k}}function tn(r,a,l=1064960,f=y4("")){let d=F.noErrorTruncation||l&1,y=xe.typeToTypeNode(r,a,VC(l)|70221824|(d?1:0),void 0);if(y===void 0)return w.fail("should always get typenode");let k=r!==Vt?qS():Uae(),R=a&&Fr(a);k.writeNode(4,y,R,f);let W=f.getText(),J=d?HB*2:GP*2;return J&&W&&W.length>=J?W.substr(0,J-3)+"...":W}function A1(r,a){let l=xD(r.symbol)?tn(r,r.symbol.valueDeclaration):tn(r),f=xD(a.symbol)?tn(a,a.symbol.valueDeclaration):tn(a);return l===f&&(l=UC(r),f=UC(a)),[l,f]}function UC(r){return tn(r,void 0,64)}function xD(r){return r&&!!r.valueDeclaration&>(r.valueDeclaration)&&!vp(r.valueDeclaration)}function VC(r=0){return r&848330095}function aR(r){return!!r.symbol&&!!(r.symbol.flags&32)&&(r===Bp(r.symbol)||!!(r.flags&524288)&&!!(Mn(r)&16777216))}function E1(r){return Fi(r)}function kj(){return{syntacticBuilderResolver:{evaluateEntityNameExpression:BOe,isExpandoFunctionDeclaration:o7e,hasLateBindableName:ED,shouldRemoveDeclaration(Te,ce){return!(Te.internalFlags&8&&mo(ce.name.expression)&&Od(ce.name).flags&1)},createRecoveryBoundary(Te){return rn(Te)},isDefinitelyReferenceToGlobalSymbolObject:Zk,getAllAccessorDeclarations:hye,requiresAddingImplicitUndefined(Te,ce,Et){var Jt;switch(Te.kind){case 172:case 171:case 348:ce??(ce=In(Te));let mr=an(ce);return!!(ce.flags&4&&ce.flags&16777216&&I2(Te)&&((Jt=ce.links)!=null&&Jt.mappedType)&&bct(mr));case 169:case 341:return H9(Te,Et);default:w.assertNever(Te)}},isOptionalParameter:hR,isUndefinedIdentifierExpression(Te){return w.assert(Ud(Te)),qp(Te)===le},isEntityNameVisible(Te,ce,Et){return GC(ce,Te.enclosingDeclaration,Et)},serializeExistingTypeNode(Te,ce,Et){return nn(Te,ce,!!Et)},serializeReturnTypeForSignature(Te,ce,Et){let Jt=Te,mr=yp(ce);Et??(Et=In(ce));let Jr=Jt.enclosingSymbolTypes.get(ua(Et))??Hi(Za(mr),Jt.mapper);return c8(Jt,mr,Jr)},serializeTypeOfExpression(Te,ce){let Et=Te,Jt=Hi(Rf(ZOe(ce)),Et.mapper);return W(Jt,Et)},serializeTypeOfDeclaration(Te,ce,Et){var Jt;let mr=Te;Et??(Et=In(ce));let Jr=(Jt=mr.enclosingSymbolTypes)==null?void 0:Jt.get(ua(Et));return Jr===void 0&&(Jr=Et.flags&98304&&ce.kind===178?Hi(Wv(Et),mr.mapper):Et&&!(Et.flags&133120)?Hi(U1(an(Et)),mr.mapper):Ke),ce&&(Bi(ce)||ip(ce))&&H9(ce,mr.enclosingDeclaration)&&(Jr=yb(Jr)),XD(Et,mr,Jr)},serializeNameOfParameter(Te,ce){return Gs(In(ce),ce,Te)},serializeEntityName(Te,ce){let Et=Te,Jt=qp(ce,!0);if(Jt&&Lv(Jt,Et.enclosingDeclaration))return ll(Jt,Et,1160127)},serializeTypeName(Te,ce,Et,Jt){return yr(Te,ce,Et,Jt)},getJsDocPropertyOverride(Te,ce,Et){let Jt=Te,mr=je(Et.name)?Et.name:Et.name.right,Jr=ol(a(Jt,ce),mr.escapedText);return Jr&&Et.typeExpression&&a(Jt,Et.typeExpression.type)!==Jr?W(Jr,Jt):void 0},enterNewScope(Te,ce){if(Ns(ce)||fv(ce)){let Et=yp(ce);return Kr(Te,ce,Et.parameters,Et.typeParameters)}else{let Et=RS(ce)?Gme(ce):[kT(In(ce.typeParameter))];return Kr(Te,ce,void 0,Et)}},markNodeReuse(Te,ce,Et){return l(Te,ce,Et)},trackExistingEntityName(Te,ce){return Bt(ce,Te)},trackComputedName(Te,ce){co(ce,Te.enclosingDeclaration,Te)},getModuleSpecifierOverride(Te,ce,Et){let Jt=Te;if(Jt.bundled||Jt.enclosingFile!==Fr(Et)){let mr=Et.text,Jr=mr,Qr=wn(ce).resolvedSymbol,ci=ce.isTypeOf?111551:788968,yi=Qr&&sg(Qr,Jt.enclosingDeclaration,ci,!1).accessibility===0&&As(Qr,Jt,ci,!0)[0];if(yi&&r2(yi))mr=Nr(yi,Jt);else{let Ms=bye(ce);Ms&&(mr=Nr(Ms.symbol,Jt))}if(mr.includes("/node_modules/")&&(Jt.encounteredError=!0,Jt.tracker.reportLikelyUnsafeImportRequiredError&&Jt.tracker.reportLikelyUnsafeImportRequiredError(mr)),mr!==Jr)return mr}},canReuseTypeNode(Te,ce){return Gr(Te,ce)},canReuseTypeNodeAnnotation(Te,ce,Et,Jt,mr){var Jr;let Qr=Te;if(Qr.enclosingDeclaration===void 0)return!1;Jt??(Jt=In(ce));let ci=(Jr=Qr.enclosingSymbolTypes)==null?void 0:Jr.get(ua(Jt));ci===void 0&&(Jt.flags&98304?ci=ce.kind===178?Wv(Jt):aN(Jt):pk(ce)?ci=Za(yp(ce)):ci=an(Jt));let yi=E1(Et);return We(yi)?!0:(mr&&yi&&(yi=Yl(yi,!Bi(ce))),!!yi&&o8(ce,ci,yi)&&el(Et,ci))}},typeToTypeNode:(Te,ce,Et,Jt,mr)=>d(ce,Et,Jt,mr,Jr=>W(Te,Jr)),typePredicateToTypePredicateNode:(Te,ce,Et,Jt,mr)=>d(ce,Et,Jt,mr,Jr=>Wi(Te,Jr)),serializeTypeForExpression:(Te,ce,Et,Jt,mr)=>d(ce,Et,Jt,mr,Jr=>_e.serializeTypeOfExpression(Te,Jr)),serializeTypeForDeclaration:(Te,ce,Et,Jt,mr,Jr)=>d(Et,Jt,mr,Jr,Qr=>_e.serializeTypeOfDeclaration(Te,ce,Qr)),serializeReturnTypeForSignature:(Te,ce,Et,Jt,mr)=>d(ce,Et,Jt,mr,Jr=>_e.serializeReturnTypeForSignature(Te,In(Te),Jr)),indexInfoToIndexSignatureDeclaration:(Te,ce,Et,Jt,mr)=>d(ce,Et,Jt,mr,Jr=>lr(Te,Jr,void 0)),signatureToSignatureDeclaration:(Te,ce,Et,Jt,mr,Jr)=>d(Et,Jt,mr,Jr,Qr=>rr(Te,ce,Qr)),symbolToEntityName:(Te,ce,Et,Jt,mr,Jr)=>d(Et,Jt,mr,Jr,Qr=>No(Te,Qr,ce,!1)),symbolToExpression:(Te,ce,Et,Jt,mr,Jr)=>d(Et,Jt,mr,Jr,Qr=>ll(Te,Qr,ce)),symbolToTypeParameterDeclarations:(Te,ce,Et,Jt,mr)=>d(ce,Et,Jt,mr,Jr=>tu(Te,Jr)),symbolToParameterDeclaration:(Te,ce,Et,Jt,mr)=>d(ce,Et,Jt,mr,Jr=>hs(Te,Jr)),typeParameterToDeclaration:(Te,ce,Et,Jt,mr)=>d(ce,Et,Jt,mr,Jr=>Qn(Te,Jr)),symbolTableToDeclarationStatements:(Te,ce,Et,Jt,mr)=>d(ce,Et,Jt,mr,Jr=>Pn(Te,Jr)),symbolToNode:(Te,ce,Et,Jt,mr,Jr)=>d(Et,Jt,mr,Jr,Qr=>f(Te,Qr,ce))};function a(Te,ce,Et){let Jt=E1(ce);if(!Te.mapper)return Jt;let mr=Hi(Jt,Te.mapper);return Et&&mr!==Jt?void 0:mr}function l(Te,ce,Et){if((!So(ce)||!(ce.flags&16)||!Te.enclosingFile||Te.enclosingFile!==Fr(ic(ce)))&&(ce=A.cloneNode(ce)),ce===Et||!Et)return ce;let Jt=ce.original;for(;Jt&&Jt!==Et;)Jt=Jt.original;return Jt||En(ce,Et),Te.enclosingFile&&Te.enclosingFile===Fr(ic(Et))?dt(ce,Et):ce}function f(Te,ce,Et){if(ce.internalFlags&1){if(Te.valueDeclaration){let mr=vs(Te.valueDeclaration);if(mr&&pa(mr))return mr}let Jt=$i(Te).nameType;if(Jt&&Jt.flags&9216)return ce.enclosingDeclaration=Jt.symbol.valueDeclaration,A.createComputedPropertyName(ll(Jt.symbol,ce,Et))}return ll(Te,ce,Et)}function d(Te,ce,Et,Jt,mr){let Jr=Jt?.trackSymbol?Jt.moduleResolverHost:(Et||0)&4?OJe(e):void 0,Qr={enclosingDeclaration:Te,enclosingFile:Te&&Fr(Te),flags:ce||0,internalFlags:Et||0,tracker:void 0,encounteredError:!1,suppressReportInferenceFallback:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0,bundled:!!F.outFile&&!!Te&&mf(Fr(Te)),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};Qr.tracker=new Xse(Qr,Jt,Jr);let ci=mr(Qr);return Qr.truncating&&Qr.flags&1&&Qr.tracker.reportTruncationError(),Qr.encounteredError?void 0:ci}function y(Te,ce,Et){let Jt=ua(ce),mr=Te.enclosingSymbolTypes.get(Jt);return Te.enclosingSymbolTypes.set(Jt,Et),Jr;function Jr(){mr?Te.enclosingSymbolTypes.set(Jt,mr):Te.enclosingSymbolTypes.delete(Jt)}}function k(Te){let ce=Te.flags,Et=Te.internalFlags;return Jt;function Jt(){Te.flags=ce,Te.internalFlags=Et}}function R(Te){return Te.truncating?Te.truncating:Te.truncating=Te.approximateLength>(Te.flags&1?HB:GP)}function W(Te,ce){let Et=k(ce),Jt=J(Te,ce);return Et(),Jt}function J(Te,ce){var Et,Jt;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let mr=ce.flags&8388608;if(ce.flags&=-8388609,!Te){if(!(ce.flags&262144)){ce.encounteredError=!0;return}return ce.approximateLength+=3,A.createKeywordTypeNode(133)}if(ce.flags&536870912||(Te=Rd(Te)),Te.flags&1)return Te.aliasSymbol?A.createTypeReferenceNode(Ti(Te.aliasSymbol),mt(Te.aliasTypeArguments,ce)):Te===Vt?NS(A.createKeywordTypeNode(133),3,"unresolved"):(ce.approximateLength+=3,A.createKeywordTypeNode(Te===Pe?141:133));if(Te.flags&2)return A.createKeywordTypeNode(159);if(Te.flags&4)return ce.approximateLength+=6,A.createKeywordTypeNode(154);if(Te.flags&8)return ce.approximateLength+=6,A.createKeywordTypeNode(150);if(Te.flags&64)return ce.approximateLength+=6,A.createKeywordTypeNode(163);if(Te.flags&16&&!Te.aliasSymbol)return ce.approximateLength+=7,A.createKeywordTypeNode(136);if(Te.flags&1056){if(Te.symbol.flags&8){let It=rf(Te.symbol),Pt=Xr(It,ce,788968);if(Bo(It)===Te)return Pt;let fr=Oc(Te.symbol);return $_(fr,1)?Qe(Pt,A.createTypeReferenceNode(fr,void 0)):Om(Pt)?(Pt.isTypeOf=!0,A.createIndexedAccessTypeNode(Pt,A.createLiteralTypeNode(A.createStringLiteral(fr)))):yf(Pt)?A.createIndexedAccessTypeNode(A.createTypeQueryNode(Pt.typeName),A.createLiteralTypeNode(A.createStringLiteral(fr))):w.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return Xr(Te.symbol,ce,788968)}if(Te.flags&128)return ce.approximateLength+=Te.value.length+2,A.createLiteralTypeNode(dn(A.createStringLiteral(Te.value,!!(ce.flags&268435456)),16777216));if(Te.flags&256){let It=Te.value;return ce.approximateLength+=(""+It).length,A.createLiteralTypeNode(It<0?A.createPrefixUnaryExpression(41,A.createNumericLiteral(-It)):A.createNumericLiteral(It))}if(Te.flags&2048)return ce.approximateLength+=AS(Te.value).length+1,A.createLiteralTypeNode(A.createBigIntLiteral(Te.value));if(Te.flags&512)return ce.approximateLength+=Te.intrinsicName.length,A.createLiteralTypeNode(Te.intrinsicName==="true"?A.createTrue():A.createFalse());if(Te.flags&8192){if(!(ce.flags&1048576)){if(Lv(Te.symbol,ce.enclosingDeclaration))return ce.approximateLength+=6,Xr(Te.symbol,ce,111551);ce.tracker.reportInaccessibleUniqueSymbolError&&ce.tracker.reportInaccessibleUniqueSymbolError()}return ce.approximateLength+=13,A.createTypeOperatorNode(158,A.createKeywordTypeNode(155))}if(Te.flags&16384)return ce.approximateLength+=4,A.createKeywordTypeNode(116);if(Te.flags&32768)return ce.approximateLength+=9,A.createKeywordTypeNode(157);if(Te.flags&65536)return ce.approximateLength+=4,A.createLiteralTypeNode(A.createNull());if(Te.flags&131072)return ce.approximateLength+=5,A.createKeywordTypeNode(146);if(Te.flags&4096)return ce.approximateLength+=6,A.createKeywordTypeNode(155);if(Te.flags&67108864)return ce.approximateLength+=6,A.createKeywordTypeNode(151);if(AA(Te))return ce.flags&4194304&&(!ce.encounteredError&&!(ce.flags&32768)&&(ce.encounteredError=!0),(Jt=(Et=ce.tracker).reportInaccessibleThisError)==null||Jt.call(Et)),ce.approximateLength+=4,A.createThisTypeNode();if(!mr&&Te.aliasSymbol&&(ce.flags&16384||BC(Te.aliasSymbol,ce.enclosingDeclaration))){let It=mt(Te.aliasTypeArguments,ce);return is(Te.aliasSymbol.escapedName)&&!(Te.aliasSymbol.flags&32)?A.createTypeReferenceNode(A.createIdentifier(""),It):Dr(It)===1&&Te.aliasSymbol===Js.symbol?A.createArrayTypeNode(It[0]):Xr(Te.aliasSymbol,ce,788968,It)}let Jr=Mn(Te);if(Jr&4)return w.assert(!!(Te.flags&524288)),Te.node?va(Te,lo):lo(Te);if(Te.flags&262144||Jr&3){if(Te.flags&262144&&Ts(ce.inferTypeParameters,Te)){ce.approximateLength+=Oc(Te.symbol).length+6;let Pt,fr=D_(Te);if(fr){let Rr=DMe(Te,!0);Rr&&$h(fr,Rr)||(ce.approximateLength+=9,Pt=fr&&W(fr,ce))}return A.createInferTypeNode(ir(Te,ce,Pt))}if(ce.flags&4&&Te.flags&262144){let Pt=Ra(Te,ce);return ce.approximateLength+=Ln(Pt).length,A.createTypeReferenceNode(A.createIdentifier(Ln(Pt)),void 0)}if(Te.symbol)return Xr(Te.symbol,ce,788968);let It=(Te===Oe||Te===ft)&&I&&I.symbol?(Te===ft?"sub-":"super-")+Oc(I.symbol):"?";return A.createTypeReferenceNode(A.createIdentifier(It),void 0)}if(Te.flags&1048576&&Te.origin&&(Te=Te.origin),Te.flags&3145728){let It=Te.flags&1048576?xj(Te.types):Te.types;if(Dr(It)===1)return W(It[0],ce);let Pt=mt(It,ce,!0);if(Pt&&Pt.length>0)return Te.flags&1048576?A.createUnionTypeNode(Pt):A.createIntersectionTypeNode(Pt);!ce.encounteredError&&!(ce.flags&262144)&&(ce.encounteredError=!0);return}if(Jr&48)return w.assert(!!(Te.flags&524288)),ja(Te);if(Te.flags&4194304){let It=Te.type;ce.approximateLength+=6;let Pt=W(It,ce);return A.createTypeOperatorNode(143,Pt)}if(Te.flags&134217728){let It=Te.texts,Pt=Te.types,fr=A.createTemplateHead(It[0]),Rr=A.createNodeArray(hr(Pt,(ln,qn)=>A.createTemplateLiteralTypeSpan(W(ln,ce),(qn<Pt.length-1?A.createTemplateMiddle:A.createTemplateTail)(It[qn+1]))));return ce.approximateLength+=2,A.createTemplateLiteralType(fr,Rr)}if(Te.flags&268435456){let It=W(Te.type,ce);return Xr(Te.symbol,ce,788968,[It])}if(Te.flags&8388608){let It=W(Te.objectType,ce),Pt=W(Te.indexType,ce);return ce.approximateLength+=2,A.createIndexedAccessTypeNode(It,Pt)}if(Te.flags&16777216)return va(Te,It=>Qr(It));if(Te.flags&33554432){let It=W(Te.baseType,ce),Pt=LD(Te)&&xme("NoInfer",!1);return Pt?Xr(Pt,ce,788968,[It]):It}return w.fail("Should be unreachable.");function Qr(It){let Pt=W(It.checkType,ce);if(ce.approximateLength+=15,ce.flags&4&&It.root.isDistributive&&!(It.checkType.flags&262144)){let Ni=wi(da(262144,"T")),ni=Ra(Ni,ce),xn=A.createTypeReferenceNode(ni);ce.approximateLength+=37;let Gi=Sx(It.root.checkType,Ni,It.mapper),Ds=ce.inferTypeParameters;ce.inferTypeParameters=It.root.inferTypeParameters;let Aa=W(Hi(It.root.extendsType,Gi),ce);ce.inferTypeParameters=Ds;let fa=ci(Hi(a(ce,It.root.node.trueType),Gi)),rc=ci(Hi(a(ce,It.root.node.falseType),Gi));return A.createConditionalTypeNode(Pt,A.createInferTypeNode(A.createTypeParameterDeclaration(void 0,A.cloneNode(xn.typeName))),A.createConditionalTypeNode(A.createTypeReferenceNode(A.cloneNode(ni)),W(It.checkType,ce),A.createConditionalTypeNode(xn,Aa,fa,rc),A.createKeywordTypeNode(146)),A.createKeywordTypeNode(146))}let fr=ce.inferTypeParameters;ce.inferTypeParameters=It.root.inferTypeParameters;let Rr=W(It.extendsType,ce);ce.inferTypeParameters=fr;let ln=ci(mb(It)),qn=ci(gb(It));return A.createConditionalTypeNode(Pt,Rr,ln,qn)}function ci(It){var Pt,fr,Rr;return It.flags&1048576?(Pt=ce.visitedTypes)!=null&&Pt.has(Zl(It))?(ce.flags&131072||(ce.encounteredError=!0,(Rr=(fr=ce.tracker)==null?void 0:fr.reportCyclicStructureError)==null||Rr.call(fr)),Z(ce)):va(It,ln=>W(ln,ce)):W(It,ce)}function yi(It){return!!CR(It)}function Ms(It){return!!It.target&&yi(It.target)&&!yi(It)}function ss(It){var Pt;w.assert(!!(It.flags&524288));let fr=It.declaration.readonlyToken?A.createToken(It.declaration.readonlyToken.kind):void 0,Rr=It.declaration.questionToken?A.createToken(It.declaration.questionToken.kind):void 0,ln,qn,Ni=!MD(It)&&!(xT(It).flags&2)&&ce.flags&4&&!(hp(It).flags&262144&&((Pt=D_(hp(It)))==null?void 0:Pt.flags)&4194304);if(MD(It)){if(Ms(It)&&ce.flags&4){let fa=wi(da(262144,"T")),rc=Ra(fa,ce);qn=A.createTypeReferenceNode(rc)}ln=A.createTypeOperatorNode(143,qn||W(xT(It),ce))}else if(Ni){let fa=wi(da(262144,"T")),rc=Ra(fa,ce);qn=A.createTypeReferenceNode(rc),ln=qn}else ln=W(hp(It),ce);let ni=ir(fm(It),ce,ln),xn=It.declaration.nameType?W(Jv(It),ce):void 0,Gi=W(Wy(Ey(It),!!(qg(It)&4)),ce),Ds=A.createMappedTypeNode(fr,ni,xn,Rr,Gi,void 0);ce.approximateLength+=10;let Aa=dn(Ds,1);if(Ms(It)&&ce.flags&4){let fa=Hi(D_(a(ce,It.declaration.typeParameter.constraint.type))||kt,It.mapper);return A.createConditionalTypeNode(W(xT(It),ce),A.createInferTypeNode(A.createTypeParameterDeclaration(void 0,A.cloneNode(qn.typeName),fa.flags&2?void 0:W(fa,ce))),Aa,A.createKeywordTypeNode(146))}else if(Ni)return A.createConditionalTypeNode(W(hp(It),ce),A.createInferTypeNode(A.createTypeParameterDeclaration(void 0,A.cloneNode(qn.typeName),A.createTypeOperatorNode(143,W(xT(It),ce)))),Aa,A.createKeywordTypeNode(146));return Aa}function ja(It){var Pt,fr;let Rr=It.id,ln=It.symbol;if(ln){if(!!(Mn(It)&8388608)){let Gi=It.node;if(MS(Gi)&&a(ce,Gi)===It){let Ds=_e.tryReuseExistingTypeNode(ce,Gi);if(Ds)return Ds}return(Pt=ce.visitedTypes)!=null&&Pt.has(Rr)?Z(ce):va(It,ba)}let ni=aR(It)?788968:111551;if(mg(ln.valueDeclaration))return Xr(ln,ce,ni);if(ln.flags&32&&!wj(ln)&&!(ln.valueDeclaration&&ii(ln.valueDeclaration)&&ce.flags&2048&&(!gl(ln.valueDeclaration)||sg(ln,ce.enclosingDeclaration,ni,!1).accessibility!==0))||ln.flags&896||qn())return Xr(ln,ce,ni);if((fr=ce.visitedTypes)!=null&&fr.has(Rr)){let xn=qC(It);return xn?Xr(xn,ce,788968):Z(ce)}else return va(It,ba)}else return ba(It);function qn(){var Ni;let ni=!!(ln.flags&8192)&&pt(ln.declarations,Gi=>Ks(Gi)&&!Q4e(vs(Gi))),xn=!!(ln.flags&16)&&(ln.parent||or(ln.declarations,Gi=>Gi.parent.kind===307||Gi.parent.kind===268));if(ni||xn)return(!!(ce.flags&4096)||((Ni=ce.visitedTypes)==null?void 0:Ni.has(Rr)))&&(!(ce.flags&8)||Lv(ln,ce.enclosingDeclaration))}}function va(It,Pt){var fr,Rr,ln;let qn=It.id,Ni=Mn(It)&16&&It.symbol&&It.symbol.flags&32,ni=Mn(It)&4&&It.node?"N"+Ua(It.node):It.flags&16777216?"N"+Ua(It.root.node):It.symbol?(Ni?"+":"")+ua(It.symbol):void 0;ce.visitedTypes||(ce.visitedTypes=new Set),ni&&!ce.symbolDepth&&(ce.symbolDepth=new Map);let xn=ce.enclosingDeclaration&&wn(ce.enclosingDeclaration),Gi=`${Zl(It)}|${ce.flags}|${ce.internalFlags}`;xn&&(xn.serializedTypes||(xn.serializedTypes=new Map));let Ds=(fr=xn?.serializedTypes)==null?void 0:fr.get(Gi);if(Ds)return(Rr=Ds.trackedSymbols)==null||Rr.forEach(([Ku,Zv,YD])=>ce.tracker.trackSymbol(Ku,Zv,YD)),Ds.truncating&&(ce.truncating=!0),ce.approximateLength+=Ds.addedLength,Uy(Ds.node);let Aa;if(ni){if(Aa=ce.symbolDepth.get(ni)||0,Aa>10)return Z(ce);ce.symbolDepth.set(ni,Aa+1)}ce.visitedTypes.add(qn);let fa=ce.trackedSymbols;ce.trackedSymbols=void 0;let rc=ce.approximateLength,Ld=Pt(It),Kh=ce.approximateLength-rc;return!ce.reportedDiagnostic&&!ce.encounteredError&&((ln=xn?.serializedTypes)==null||ln.set(Gi,{node:Ld,truncating:ce.truncating,addedLength:Kh,trackedSymbols:ce.trackedSymbols})),ce.visitedTypes.delete(qn),ni&&ce.symbolDepth.set(ni,Aa),ce.trackedSymbols=fa,Ld;function Uy(Ku){return!So(Ku)&&Cs(Ku)===Ku?Ku:l(ce,A.cloneNode(Ir(Ku,Uy,void 0,Yv,Uy)),Ku)}function Yv(Ku,Zv,YD,K1,Yg){return Ku&&Ku.length===0?dt(A.createNodeArray(void 0,Ku.hasTrailingComma),Ku):Ur(Ku,Zv,YD,K1,Yg)}}function ba(It){if(U_(It)||It.containsError)return ss(It);let Pt=pm(It);if(!Pt.properties.length&&!Pt.indexInfos.length){if(!Pt.callSignatures.length&&!Pt.constructSignatures.length)return ce.approximateLength+=2,dn(A.createTypeLiteralNode(void 0),1);if(Pt.callSignatures.length===1&&!Pt.constructSignatures.length){let Ni=Pt.callSignatures[0];return rr(Ni,184,ce)}if(Pt.constructSignatures.length===1&&!Pt.callSignatures.length){let Ni=Pt.constructSignatures[0];return rr(Ni,185,ce)}}let fr=An(Pt.constructSignatures,Ni=>!!(Ni.flags&4));if(pt(fr)){let Ni=hr(fr,xn=>gx(xn));return Pt.callSignatures.length+(Pt.constructSignatures.length-fr.length)+Pt.indexInfos.length+(ce.flags&2048?Hy(Pt.properties,xn=>!(xn.flags&4194304)):Dr(Pt.properties))&&Ni.push(jC(Pt)),W(ma(Ni),ce)}let Rr=k(ce);ce.flags|=4194304;let ln=Vr(Pt);Rr();let qn=A.createTypeLiteralNode(ln);return ce.approximateLength+=2,dn(qn,ce.flags&1024?0:1),qn}function lo(It){let Pt=Vo(It);if(It.target===Js||It.target===Ma){if(ce.flags&2){let ln=W(Pt[0],ce);return A.createTypeReferenceNode(It.target===Js?"Array":"ReadonlyArray",[ln])}let fr=W(Pt[0],ce),Rr=A.createArrayTypeNode(fr);return It.target===Js?Rr:A.createTypeOperatorNode(148,Rr)}else if(It.target.objectFlags&8){if(Pt=ul(Pt,(fr,Rr)=>Wy(fr,!!(It.target.elementFlags[Rr]&2))),Pt.length>0){let fr=Vv(It),Rr=mt(Pt.slice(0,fr),ce);if(Rr){let{labeledElementDeclarations:ln}=It.target;for(let Ni=0;Ni<Rr.length;Ni++){let ni=It.target.elementFlags[Ni],xn=ln?.[Ni];xn?Rr[Ni]=A.createNamedTupleMember(ni&12?A.createToken(26):void 0,A.createIdentifier(Li(Ahe(xn))),ni&2?A.createToken(58):void 0,ni&4?A.createArrayTypeNode(Rr[Ni]):Rr[Ni]):Rr[Ni]=ni&12?A.createRestTypeNode(ni&4?A.createArrayTypeNode(Rr[Ni]):Rr[Ni]):ni&2?A.createOptionalTypeNode(Rr[Ni]):Rr[Ni]}let qn=dn(A.createTupleTypeNode(Rr),1);return It.target.readonly?A.createTypeOperatorNode(148,qn):qn}}if(ce.encounteredError||ce.flags&524288){let fr=dn(A.createTupleTypeNode([]),1);return It.target.readonly?A.createTypeOperatorNode(148,fr):fr}ce.encounteredError=!0;return}else{if(ce.flags&2048&&It.symbol.valueDeclaration&&ii(It.symbol.valueDeclaration)&&!Lv(It.symbol,ce.enclosingDeclaration))return ja(It);{let fr=It.target.outerTypeParameters,Rr=0,ln;if(fr){let xn=fr.length;for(;Rr<xn;){let Gi=Rr,Ds=PMe(fr[Rr]);do Rr++;while(Rr<xn&&PMe(fr[Rr])===Ds);if(!wW(fr,Pt,Gi,Rr)){let Aa=mt(Pt.slice(Gi,Rr),ce),fa=k(ce);ce.flags|=16;let rc=Xr(Ds,ce,788968,Aa);fa(),ln=ln?Qe(ln,rc):rc}}}let qn;if(Pt.length>0){let xn=0;if(It.target.typeParameters&&(xn=Math.min(It.target.typeParameters.length,Pt.length),(cg(It,eK(!1))||cg(It,HMe(!1))||cg(It,Bj(!1))||cg(It,$Me(!1)))&&(!It.node||!yf(It.node)||!It.node.typeArguments||It.node.typeArguments.length<xn)))for(;xn>0;){let Gi=Pt[xn-1],Ds=It.target.typeParameters[xn-1],Aa=wT(Ds);if(!Aa||!$h(Gi,Aa))break;xn--}qn=mt(Pt.slice(Rr,xn),ce)}let Ni=k(ce);ce.flags|=16;let ni=Xr(It.symbol,ce,788968,qn);return Ni(),ln?Qe(ln,ni):ni}}}function Qe(It,Pt){if(Om(It)){let fr=It.typeArguments,Rr=It.qualifier;Rr&&(je(Rr)?fr!==Sk(Rr)&&(Rr=ov(A.cloneNode(Rr),fr)):fr!==Sk(Rr.right)&&(Rr=A.updateQualifiedName(Rr,Rr.left,ov(A.cloneNode(Rr.right),fr)))),fr=Pt.typeArguments;let ln=ot(Pt);for(let qn of ln)Rr=Rr?A.createQualifiedName(Rr,qn):qn;return A.updateImportTypeNode(It,It.argument,It.attributes,Rr,fr,It.isTypeOf)}else{let fr=It.typeArguments,Rr=It.typeName;je(Rr)?fr!==Sk(Rr)&&(Rr=ov(A.cloneNode(Rr),fr)):fr!==Sk(Rr.right)&&(Rr=A.updateQualifiedName(Rr,Rr.left,ov(A.cloneNode(Rr.right),fr))),fr=Pt.typeArguments;let ln=ot(Pt);for(let qn of ln)Rr=A.createQualifiedName(Rr,qn);return A.updateTypeReferenceNode(It,Rr,fr)}}function ot(It){let Pt=It.typeName,fr=[];for(;!je(Pt);)fr.unshift(Pt.right),Pt=Pt.left;return fr.unshift(Pt),fr}function er(It,Pt,fr){if(It.components&&Oi(It.components,ln=>{var qn;return!!(ln.name&&pa(ln.name)&&mo(ln.name.expression)&&Pt.enclosingDeclaration&&((qn=GC(ln.name.expression,Pt.enclosingDeclaration,!1))==null?void 0:qn.accessibility)===0)})){let ln=An(It.components,qn=>!ED(qn));return hr(ln,qn=>(co(qn.name.expression,Pt.enclosingDeclaration,Pt),l(Pt,A.createPropertySignature(It.isReadonly?[A.createModifier(148)]:void 0,qn.name,(s_(qn)||ds(qn)||xd(qn)||xc(qn)||ch(qn)||xm(qn))&&qn.questionToken?A.createToken(58):void 0,fr||W(an(qn.symbol),Pt)),qn)))}return[lr(It,Pt,fr)]}function Vr(It){if(R(ce))return ce.flags&1?[FA(A.createNotEmittedTypeElement(),3,"elided")]:[A.createPropertySignature(void 0,"...",void 0,void 0)];let Pt=[];for(let ln of It.callSignatures)Pt.push(rr(ln,179,ce));for(let ln of It.constructSignatures)ln.flags&4||Pt.push(rr(ln,180,ce));for(let ln of It.indexInfos)Pt.push(...er(ln,ce,It.objectFlags&1024?Z(ce):void 0));let fr=It.properties;if(!fr)return Pt;let Rr=0;for(let ln of fr){if(Rr++,ce.flags&2048){if(ln.flags&4194304)continue;Ap(ln)&6&&ce.tracker.reportPrivateInBaseOfClassExpression&&ce.tracker.reportPrivateInBaseOfClassExpression(Li(ln.escapedName))}if(R(ce)&&Rr+2<fr.length-1){if(ce.flags&1){let qn=Pt.pop();Pt.push(FA(qn,3,`... ${fr.length-Rr} more elided ...`))}else Pt.push(A.createPropertySignature(void 0,`... ${fr.length-Rr} more ...`,void 0,void 0));he(fr[fr.length-1],ce,Pt);break}he(ln,ce,Pt)}return Pt.length?Pt:void 0}}function Z(Te){return Te.approximateLength+=3,Te.flags&1?NS(A.createKeywordTypeNode(133),3,"elided"):A.createTypeReferenceNode(A.createIdentifier("..."),void 0)}function ke(Te,ce){var Et;return!!(kc(Te)&8192)&&(Ts(ce.reverseMappedStack,Te)||((Et=ce.reverseMappedStack)==null?void 0:Et[0])&&!(Mn(xa(ce.reverseMappedStack).links.propertyType)&16)||mr());function mr(){var Jr;if((((Jr=ce.reverseMappedStack)==null?void 0:Jr.length)??0)<3)return!1;for(let Qr=0;Qr<3;Qr++)if(ce.reverseMappedStack[ce.reverseMappedStack.length-1-Qr].links.mappedType.symbol!==Te.links.mappedType.symbol)return!1;return!0}}function he(Te,ce,Et){var Jt;let mr=!!(kc(Te)&8192),Jr=ke(Te,ce)?Fe:fb(Te),Qr=ce.enclosingDeclaration;if(ce.enclosingDeclaration=void 0,ce.tracker.canTrackSymbol&&pR(Te.escapedName))if(Te.declarations){let ba=Ea(Te.declarations);if(ED(ba))if(vn(ba)){let lo=vs(ba);lo&&wo(lo)&&T4(lo.argumentExpression)&&co(lo.argumentExpression,Qr,ce)}else co(ba.name.expression,Qr,ce)}else ce.tracker.reportNonSerializableProperty(Qi(Te));ce.enclosingDeclaration=Te.valueDeclaration||((Jt=Te.declarations)==null?void 0:Jt[0])||Qr;let ci=Zc(Te,ce);if(ce.enclosingDeclaration=Qr,ce.approximateLength+=Oc(Te).length+1,Te.flags&98304){let ba=Wv(Te);if(Jr!==ba&&!We(Jr)&&!We(ba)){let lo=$i(Te).mapper,Qe=Yo(Te,177),ot=yp(Qe);Et.push(Ze(ce,rr(lo?MT(ot,lo):ot,177,ce,{name:ci}),Qe));let er=Yo(Te,178),Vr=yp(er);Et.push(Ze(ce,rr(lo?MT(Vr,lo):Vr,178,ce,{name:ci}),er));return}}let yi=Te.flags&16777216?A.createToken(58):void 0;if(Te.flags&8208&&!Gv(Jr).length&&!ym(Te)){let ba=Bs(cl(Jr,lo=>!(lo.flags&32768)),0);for(let lo of ba){let Qe=rr(lo,173,ce,{name:ci,questionToken:yi});Et.push(va(Qe,lo.declaration||Te.valueDeclaration))}if(ba.length||!yi)return}let Ms;ke(Te,ce)?Ms=Z(ce):(mr&&(ce.reverseMappedStack||(ce.reverseMappedStack=[]),ce.reverseMappedStack.push(Te)),Ms=Jr?Q1(ce,void 0,Jr,Te):A.createKeywordTypeNode(133),mr&&ce.reverseMappedStack.pop());let ss=ym(Te)?[A.createToken(148)]:void 0;ss&&(ce.approximateLength+=9);let ja=A.createPropertySignature(ss,ci,yi,Ms);Et.push(va(ja,Te.valueDeclaration));function va(ba,lo){var Qe;let ot=(Qe=Te.declarations)==null?void 0:Qe.find(er=>er.kind===348);if(ot){let er=h6(ot.comment);er&&Jb(ba,[{kind:3,text:`*
* `+er.replace(/\n/g,`
* `)+`
`,pos:-1,end:-1,hasTrailingNewLine:!0}])}else lo&&Ze(ce,ba,lo);return ba}}function Ze(Te,ce,Et){return Te.enclosingFile&&Te.enclosingFile===Fr(Et)?dl(ce,Et):ce}function mt(Te,ce,Et){if(pt(Te)){if(R(ce))if(Et){if(Te.length>2)return[W(Te[0],ce),ce.flags&1?NS(A.createKeywordTypeNode(133),3,`... ${Te.length-2} more elided ...`):A.createTypeReferenceNode(`... ${Te.length-2} more ...`,void 0),W(Te[Te.length-1],ce)]}else return[ce.flags&1?NS(A.createKeywordTypeNode(133),3,"elided"):A.createTypeReferenceNode("...",void 0)];let mr=!(ce.flags&64)?Kp():void 0,Jr=[],Qr=0;for(let ci of Te){if(Qr++,R(ce)&&Qr+2<Te.length-1){Jr.push(ce.flags&1?NS(A.createKeywordTypeNode(133),3,`... ${Te.length-Qr} more elided ...`):A.createTypeReferenceNode(`... ${Te.length-Qr} more ...`,void 0));let Ms=W(Te[Te.length-1],ce);Ms&&Jr.push(Ms);break}ce.approximateLength+=2;let yi=W(ci,ce);yi&&(Jr.push(yi),mr&&pne(yi)&&mr.add(yi.typeName.escapedText,[ci,Jr.length-1]))}if(mr){let ci=k(ce);ce.flags|=64,mr.forEach(yi=>{if(!dne(yi,([Ms],[ss])=>Ct(Ms,ss)))for(let[Ms,ss]of yi)Jr[ss]=W(Ms,ce)}),ci()}return Jr}}function Ct(Te,ce){return Te===ce||!!Te.symbol&&Te.symbol===ce.symbol||!!Te.aliasSymbol&&Te.aliasSymbol===ce.aliasSymbol}function lr(Te,ce,Et){let Jt=Dte(Te)||"x",mr=W(Te.keyType,ce),Jr=A.createParameterDeclaration(void 0,void 0,Jt,void 0,mr,void 0);return Et||(Et=W(Te.type||Fe,ce)),!Te.type&&!(ce.flags&2097152)&&(ce.encounteredError=!0),ce.approximateLength+=Jt.length+4,A.createIndexSignature(Te.isReadonly?[A.createToken(148)]:void 0,[Jr],Et)}function rr(Te,ce,Et,Jt){var mr;let Jr,Qr,ci=rMe(Te,!0)[0],yi=Kr(Et,Te.declaration,ci,Te.typeParameters,Te.parameters,Te.mapper);Et.approximateLength+=3,Et.flags&32&&Te.target&&Te.mapper&&Te.target.typeParameters?Qr=Te.target.typeParameters.map(Qe=>W(Hi(Qe,Te.mapper),Et)):Jr=Te.typeParameters&&Te.typeParameters.map(Qe=>Qn(Qe,Et));let Ms=k(Et);Et.flags&=-257;let ss=(pt(ci,Qe=>Qe!==ci[ci.length-1]&&!!(kc(Qe)&32768))?Te.parameters:ci).map(Qe=>hs(Qe,Et,ce===176)),ja=Et.flags&33554432?void 0:pr(Te,Et);ja&&ss.unshift(ja),Ms();let va=$f(Et,Te),ba=Jt?.modifiers;if(ce===185&&Te.flags&4){let Qe=Nm(ba);ba=A.createModifiersFromModifierFlags(Qe|64)}let lo=ce===179?A.createCallSignature(Jr,ss,va):ce===180?A.createConstructSignature(Jr,ss,va):ce===173?A.createMethodSignature(ba,Jt?.name??A.createIdentifier(""),Jt?.questionToken,Jr,ss,va):ce===174?A.createMethodDeclaration(ba,void 0,Jt?.name??A.createIdentifier(""),void 0,Jr,ss,va,void 0):ce===176?A.createConstructorDeclaration(ba,ss,void 0):ce===177?A.createGetAccessorDeclaration(ba,Jt?.name??A.createIdentifier(""),ss,va,void 0):ce===178?A.createSetAccessorDeclaration(ba,Jt?.name??A.createIdentifier(""),ss,void 0):ce===181?A.createIndexSignature(ba,ss,va):ce===317?A.createJSDocFunctionType(ss,va):ce===184?A.createFunctionTypeNode(Jr,ss,va??A.createTypeReferenceNode(A.createIdentifier(""))):ce===185?A.createConstructorTypeNode(ba,Jr,ss,va??A.createTypeReferenceNode(A.createIdentifier(""))):ce===262?A.createFunctionDeclaration(ba,void 0,Jt?.name?Zs(Jt.name,je):A.createIdentifier(""),Jr,ss,va,void 0):ce===218?A.createFunctionExpression(ba,void 0,Jt?.name?Zs(Jt.name,je):A.createIdentifier(""),Jr,ss,va,A.createBlock([])):ce===219?A.createArrowFunction(ba,Jr,ss,va,void 0,A.createBlock([])):w.assertNever(ce);if(Qr&&(lo.typeArguments=A.createNodeArray(Qr)),((mr=Te.declaration)==null?void 0:mr.kind)===323&&Te.declaration.parent.kind===339){let Qe=oc(Te.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(ot=>ot.replace(/^\s+/," ")).join(`
`);NS(lo,3,Qe,!0)}return yi?.(),lo}function rn(Te){i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let ce,Et,Jt=!1,mr=Te.tracker,Jr=Te.trackedSymbols;Te.trackedSymbols=void 0;let Qr=Te.encounteredError;return Te.tracker=new Xse(Te,{...mr.inner,reportCyclicStructureError(){ci(()=>mr.reportCyclicStructureError())},reportInaccessibleThisError(){ci(()=>mr.reportInaccessibleThisError())},reportInaccessibleUniqueSymbolError(){ci(()=>mr.reportInaccessibleUniqueSymbolError())},reportLikelyUnsafeImportRequiredError(ss){ci(()=>mr.reportLikelyUnsafeImportRequiredError(ss))},reportNonSerializableProperty(ss){ci(()=>mr.reportNonSerializableProperty(ss))},reportPrivateInBaseOfClassExpression(ss){ci(()=>mr.reportPrivateInBaseOfClassExpression(ss))},trackSymbol(ss,ja,va){return(ce??(ce=[])).push([ss,ja,va]),!1},moduleResolverHost:Te.tracker.moduleResolverHost},Te.tracker.moduleResolverHost),{startRecoveryScope:yi,finalizeBoundary:Ms,markError:ci,hadError:()=>Jt};function ci(ss){Jt=!0,ss&&(Et??(Et=[])).push(ss)}function yi(){let ss=ce?.length??0,ja=Et?.length??0;return()=>{Jt=!1,ce&&(ce.length=ss),Et&&(Et.length=ja)}}function Ms(){return Te.tracker=mr,Te.trackedSymbols=Jr,Te.encounteredError=Qr,Et?.forEach(ss=>ss()),Jt?!1:(ce?.forEach(([ss,ja,va])=>Te.tracker.trackSymbol(ss,ja,va)),!0)}}function Kr(Te,ce,Et,Jt,mr,Jr){let Qr=qf(Te),ci,yi,Ms=Te.enclosingDeclaration,ss=Te.mapper;if(Jr&&(Te.mapper=Jr),Te.enclosingDeclaration&&ce){let va=function(ba,lo){w.assert(Te.enclosingDeclaration);let Qe;wn(Te.enclosingDeclaration).fakeScopeForSignatureDeclaration===ba?Qe=Te.enclosingDeclaration:Te.enclosingDeclaration.parent&&wn(Te.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===ba&&(Qe=Te.enclosingDeclaration.parent),w.assertOptionalNode(Qe,Fs);let ot=Qe?.locals??ea(),er,Vr;if(lo((It,Pt)=>{if(Qe){let fr=ot.get(It);fr?Vr=jr(Vr,{name:It,oldSymbol:fr}):er=jr(er,It)}ot.set(It,Pt)}),Qe)return function(){or(er,Pt=>ot.delete(Pt)),or(Vr,Pt=>ot.set(Pt.name,Pt.oldSymbol))};{let It=A.createBlock(qe);wn(It).fakeScopeForSignatureDeclaration=ba,It.locals=ot,Xa(It,Te.enclosingDeclaration),Te.enclosingDeclaration=It}};var ja=va;ci=pt(Et)?va("params",ba=>{if(Et)for(let lo=0;lo<Et.length;lo++){let Qe=Et[lo],ot=mr?.[lo];mr&&ot!==Qe?(ba(Qe.escapedName,Y),ot&&ba(ot.escapedName,Y)):or(Qe.declarations,er=>{if(Bi(er)&&Ws(er.name))return Vr(er.name),!0;return;function Vr(Pt){or(Pt.elements,fr=>{switch(fr.kind){case 232:return;case 208:return It(fr);default:return w.assertNever(fr)}})}function It(Pt){if(Ws(Pt.name))return Vr(Pt.name);let fr=In(Pt);ba(fr.escapedName,fr)}})||ba(Qe.escapedName,Qe)}}):void 0,Te.flags&4&&pt(Jt)&&(yi=va("typeParams",ba=>{for(let lo of Jt??qe){let Qe=Ra(lo,Te).escapedText;ba(Qe,lo.symbol)}}))}return()=>{ci?.(),yi?.(),Qr(),Te.enclosingDeclaration=Ms,Te.mapper=ss}}function pr(Te,ce){if(Te.thisParameter)return hs(Te.thisParameter,ce);if(Te.declaration&&un(Te.declaration)){let Et=K8(Te.declaration);if(Et&&Et.typeExpression)return A.createParameterDeclaration(void 0,void 0,"this",void 0,W(a(ce,Et.typeExpression),ce))}}function ir(Te,ce,Et){let Jt=k(ce);ce.flags&=-513;let mr=A.createModifiersFromModifierFlags(cge(Te)),Jr=Ra(Te,ce),Qr=wT(Te),ci=Qr&&W(Qr,ce);return Jt(),A.createTypeParameterDeclaration(mr,Jr,Et,ci)}function yn(Te,ce,Et){return ce&&a(Et,ce)===Te&&_e.tryReuseExistingTypeNode(Et,ce)||W(Te,Et)}function Qn(Te,ce,Et=D_(Te)){let Jt=Et&&yn(Et,HQ(Te),ce);return ir(Te,ce,Jt)}function Wi(Te,ce){let Et=Te.kind===2||Te.kind===3?A.createToken(131):void 0,Jt=Te.kind===1||Te.kind===3?dn(A.createIdentifier(Te.parameterName),16777216):A.createThisTypeNode(),mr=Te.type&&W(Te.type,ce);return A.createTypePredicateNode(Et,Jt,mr)}function Dn(Te){let ce=Yo(Te,169);if(ce)return ce;if(!lh(Te))return Yo(Te,341)}function hs(Te,ce,Et){let Jt=Dn(Te),mr=an(Te),Jr=Q1(ce,Jt,mr,Te),Qr=!(ce.flags&8192)&&Et&&Jt&&od(Jt)?hr(cS(Jt),A.cloneNode):void 0,yi=Jt&&Tg(Jt)||kc(Te)&32768?A.createToken(26):void 0,Ms=Gs(Te,Jt,ce),ja=Jt&&hR(Jt)||kc(Te)&16384?A.createToken(58):void 0,va=A.createParameterDeclaration(Qr,yi,Ms,ja,Jr,void 0);return ce.approximateLength+=Oc(Te).length+3,va}function Gs(Te,ce,Et){return ce&&ce.name?ce.name.kind===80?dn(A.cloneNode(ce.name),16777216):ce.name.kind===166?dn(A.cloneNode(ce.name.right),16777216):Jt(ce.name):Oc(Te);function Jt(mr){return Jr(mr);function Jr(Qr){Et.tracker.canTrackSymbol&&pa(Qr)&&eme(Qr)&&co(Qr.expression,Et.enclosingDeclaration,Et);let ci=Ir(Qr,Jr,void 0,void 0,Jr);return Da(ci)&&(ci=A.updateBindingElement(ci,ci.dotDotDotToken,ci.propertyName,ci.name,void 0)),So(ci)||(ci=A.cloneNode(ci)),dn(ci,16777217)}}}function co(Te,ce,Et){if(!Et.tracker.canTrackSymbol)return;let Jt=h_(Te),mr=_t(ce,Jt.escapedText,1160127,void 0,!0);if(mr)Et.tracker.trackSymbol(mr,ce,111551);else{let Jr=_t(Jt,Jt.escapedText,1160127,void 0,!0);Jr&&Et.tracker.trackSymbol(Jr,ce,111551)}}function As(Te,ce,Et,Jt){return ce.tracker.trackSymbol(Te,ce.enclosingDeclaration,Et),Qu(Te,ce,Et,Jt)}function Qu(Te,ce,Et,Jt){let mr;return!(Te.flags&262144)&&(ce.enclosingDeclaration||ce.flags&64)&&!(ce.internalFlags&4)?(mr=w.checkDefined(Qr(Te,Et,!0)),w.assert(mr&&mr.length>0)):mr=[Te],mr;function Qr(ci,yi,Ms){let ss=cb(ci,ce.enclosingDeclaration,yi,!!(ce.flags&128)),ja;if(!ss||P1(ss[0],ce.enclosingDeclaration,ss.length===1?yi:ig(yi))){let ba=fx(ss?ss[0]:ci,ce.enclosingDeclaration,yi);if(Dr(ba)){ja=ba.map(ot=>pt(ot.declarations,vT)?Nr(ot,ce):void 0);let lo=ba.map((ot,er)=>er);lo.sort(va);let Qe=lo.map(ot=>ba[ot]);for(let ot of Qe){let er=Qr(ot,ig(yi),!1);if(er){if(ot.exports&&ot.exports.get("export=")&&gp(ot.exports.get("export="),ci)){ss=er;break}ss=er.concat(ss||[mp(ot,ci)||ci]);break}}}}if(ss)return ss;if(Ms||!(ci.flags&6144))return!Ms&&!Jt&&or(ci.declarations,vT)?void 0:[ci];function va(ba,lo){let Qe=ja[ba],ot=ja[lo];if(Qe&&ot){let er=Of(ot);return Of(Qe)===er?Y7(Qe)-Y7(ot):er?-1:1}return 0}}}function tu(Te,ce){let Et;return KD(Te).flags&524384&&(Et=A.createNodeArray(hr(Md(Te),mr=>Qn(mr,ce)))),Et}function bc(Te,ce,Et){var Jt;w.assert(Te&&0<=ce&&ce<Te.length);let mr=Te[ce],Jr=ua(mr);if((Jt=Et.typeParameterSymbolList)!=null&&Jt.has(Jr))return;Et.mustCreateTypeParameterSymbolList&&(Et.mustCreateTypeParameterSymbolList=!1,Et.typeParameterSymbolList=new Set(Et.typeParameterSymbolList)),Et.typeParameterSymbolList.add(Jr);let Qr;if(Et.flags&512&&ce<Te.length-1){let ci=mr,yi=Te[ce+1];if(kc(yi)&1){let Ms=Wr(ci.flags&2097152?al(ci):ci);Qr=mt(hr(Ms,ss=>qv(ss,yi.links.mapper)),Et)}else Qr=tu(mr,Et)}return Qr}function Mr(Te){return FS(Te.objectType)?Mr(Te.objectType):Te}function Nr(Te,ce,Et){let Jt=Yo(Te,307);if(!Jt){let ja=po(Te.declarations,va=>LC(va,Te));ja&&(Jt=Yo(ja,307))}if(Jt&&Jt.moduleName!==void 0)return Jt.moduleName;if(!Jt&&Hse.test(Te.escapedName))return Te.escapedName.substring(1,Te.escapedName.length-1);if(!ce.enclosingFile||!ce.tracker.moduleResolverHost)return Hse.test(Te.escapedName)?Te.escapedName.substring(1,Te.escapedName.length-1):Fr(az(Te)).fileName;let mr=ic(ce.enclosingDeclaration),Jr=Zte(mr)?l2(mr):void 0,Qr=ce.enclosingFile,ci=Et||Jr&&e.getModeForUsageLocation(Qr,Jr)||Qr&&e.getDefaultResolutionModeForFile(Qr),yi=nE(Qr.path,ci),Ms=$i(Te),ss=Ms.specifierCache&&Ms.specifierCache.get(yi);if(!ss){let ja=!!F.outFile,{moduleResolverHost:va}=ce.tracker,ba=ja?{...F,baseUrl:va.getCommonSourceDirectory()}:F;ss=Ea(ISe(Te,Hr,ba,Qr,va,{importModuleSpecifierPreference:ja?"non-relative":"project-relative",importModuleSpecifierEnding:ja?"minimal":ci===99?"js":void 0},{overrideImportMode:Et})),Ms.specifierCache??(Ms.specifierCache=new Map),Ms.specifierCache.set(yi,ss)}return ss}function Ti(Te){let ce=A.createIdentifier(Li(Te.escapedName));return Te.parent?A.createQualifiedName(Ti(Te.parent),ce):ce}function Xr(Te,ce,Et,Jt){let mr=As(Te,ce,Et,!(ce.flags&16384)),Jr=Et===111551;if(pt(mr[0].declarations,vT)){let yi=mr.length>1?ci(mr,mr.length-1,1):void 0,Ms=Jt||bc(mr,0,ce),ss=Fr(ic(ce.enclosingDeclaration)),ja=A6(mr[0]),va,ba;if((Bu(F)===3||Bu(F)===99)&&ja?.impliedNodeFormat===99&&ja.impliedNodeFormat!==ss?.impliedNodeFormat&&(va=Nr(mr[0],ce,99),ba=A.createImportAttributes(A.createNodeArray([A.createImportAttribute(A.createStringLiteral("resolution-mode"),A.createStringLiteral("import"))]))),va||(va=Nr(mr[0],ce)),!(ce.flags&67108864)&&Bu(F)!==1&&va.includes("/node_modules/")){let Qe=va;if(Bu(F)===3||Bu(F)===99){let ot=ss?.impliedNodeFormat===99?1:99;va=Nr(mr[0],ce,ot),va.includes("/node_modules/")?va=Qe:ba=A.createImportAttributes(A.createNodeArray([A.createImportAttribute(A.createStringLiteral("resolution-mode"),A.createStringLiteral(ot===99?"import":"require"))]))}ba||(ce.encounteredError=!0,ce.tracker.reportLikelyUnsafeImportRequiredError&&ce.tracker.reportLikelyUnsafeImportRequiredError(Qe))}let lo=A.createLiteralTypeNode(A.createStringLiteral(va));if(ce.approximateLength+=va.length+10,!yi||m_(yi)){if(yi){let Qe=je(yi)?yi:yi.right;ov(Qe,void 0)}return A.createImportTypeNode(lo,ba,yi,Ms,Jr)}else{let Qe=Mr(yi),ot=Qe.objectType.typeName;return A.createIndexedAccessTypeNode(A.createImportTypeNode(lo,ba,ot,Ms,Jr),Qe.indexType)}}let Qr=ci(mr,mr.length-1,0);if(FS(Qr))return Qr;if(Jr)return A.createTypeQueryNode(Qr);{let yi=je(Qr)?Qr:Qr.right,Ms=Sk(yi);return ov(yi,void 0),A.createTypeReferenceNode(Qr,Ms)}function ci(yi,Ms,ss){let ja=Ms===yi.length-1?Jt:bc(yi,Ms,ce),va=yi[Ms],ba=yi[Ms-1],lo;if(Ms===0)ce.flags|=16777216,lo=M1(va,ce),ce.approximateLength+=(lo?lo.length:0)+1,ce.flags^=16777216;else if(ba&&Nf(ba)){let ot=Nf(ba);Nl(ot,(er,Vr)=>{if(gp(er,va)&&!pR(Vr)&&Vr!=="export=")return lo=Li(Vr),!0})}if(lo===void 0){let ot=po(va.declarations,vs);if(ot&&pa(ot)&&m_(ot.expression)){let er=ci(yi,Ms-1,ss);return m_(er)?A.createIndexedAccessTypeNode(A.createParenthesizedType(A.createTypeQueryNode(er)),A.createTypeQueryNode(ot.expression)):er}lo=M1(va,ce)}if(ce.approximateLength+=lo.length+1,!(ce.flags&16)&&ba&&Vg(ba)&&Vg(ba).get(va.escapedName)&&gp(Vg(ba).get(va.escapedName),va)){let ot=ci(yi,Ms-1,ss);return FS(ot)?A.createIndexedAccessTypeNode(ot,A.createLiteralTypeNode(A.createStringLiteral(lo))):A.createIndexedAccessTypeNode(A.createTypeReferenceNode(ot,ja),A.createLiteralTypeNode(A.createStringLiteral(lo)))}let Qe=dn(A.createIdentifier(lo),16777216);if(ja&&ov(Qe,A.createNodeArray(ja)),Qe.symbol=va,Ms>ss){let ot=ci(yi,Ms-1,ss);return m_(ot)?A.createQualifiedName(ot,Qe):w.fail("Impossible construct - an export of an indexed access cannot be reachable")}return Qe}}function ls(Te,ce,Et){let Jt=_t(ce.enclosingDeclaration,Te,788968,void 0,!1);return Jt&&Jt.flags&262144?Jt!==Et.symbol:!1}function Ra(Te,ce){var Et,Jt,mr,Jr;if(ce.flags&4&&ce.typeParameterNames){let yi=ce.typeParameterNames.get(Zl(Te));if(yi)return yi}let Qr=No(Te.symbol,ce,788968,!0);if(!(Qr.kind&80))return A.createIdentifier("(Missing type parameter)");let ci=(Jt=(Et=Te.symbol)==null?void 0:Et.declarations)==null?void 0:Jt[0];if(ci&&$o(ci)&&(Qr=l(ce,Qr,ci.name)),ce.flags&4){let yi=Qr.escapedText,Ms=((mr=ce.typeParameterNamesByTextNextNameCount)==null?void 0:mr.get(yi))||0,ss=yi;for(;(Jr=ce.typeParameterNamesByText)!=null&&Jr.has(ss)||ls(ss,ce,Te);)Ms++,ss=`${yi}_${Ms}`;if(ss!==yi){let ja=Sk(Qr);Qr=A.createIdentifier(ss),ov(Qr,ja)}ce.mustCreateTypeParametersNamesLookups&&(ce.mustCreateTypeParametersNamesLookups=!1,ce.typeParameterNames=new Map(ce.typeParameterNames),ce.typeParameterNamesByTextNextNameCount=new Map(ce.typeParameterNamesByTextNextNameCount),ce.typeParameterNamesByText=new Set(ce.typeParameterNamesByText)),ce.typeParameterNamesByTextNextNameCount.set(yi,Ms),ce.typeParameterNames.set(Zl(Te),Qr),ce.typeParameterNamesByText.add(ss)}return Qr}function No(Te,ce,Et,Jt){let mr=As(Te,ce,Et);return Jt&&mr.length!==1&&!ce.encounteredError&&!(ce.flags&65536)&&(ce.encounteredError=!0),Jr(mr,mr.length-1);function Jr(Qr,ci){let yi=bc(Qr,ci,ce),Ms=Qr[ci];ci===0&&(ce.flags|=16777216);let ss=M1(Ms,ce);ci===0&&(ce.flags^=16777216);let ja=dn(A.createIdentifier(ss),16777216);return yi&&ov(ja,A.createNodeArray(yi)),ja.symbol=Ms,ci>0?A.createQualifiedName(Jr(Qr,ci-1),ja):ja}}function ll(Te,ce,Et){let Jt=As(Te,ce,Et);return mr(Jt,Jt.length-1);function mr(Jr,Qr){let ci=bc(Jr,Qr,ce),yi=Jr[Qr];Qr===0&&(ce.flags|=16777216);let Ms=M1(yi,ce);Qr===0&&(ce.flags^=16777216);let ss=Ms.charCodeAt(0);if(K6(ss)&&pt(yi.declarations,vT))return A.createStringLiteral(Nr(yi,ce));if(Qr===0||OJ(Ms,B)){let ja=dn(A.createIdentifier(Ms),16777216);return ci&&ov(ja,A.createNodeArray(ci)),ja.symbol=yi,Qr>0?A.createPropertyAccessExpression(mr(Jr,Qr-1),ja):ja}else{ss===91&&(Ms=Ms.substring(1,Ms.length-1),ss=Ms.charCodeAt(0));let ja;if(K6(ss)&&!(yi.flags&8)?ja=A.createStringLiteral(rd(Ms).replace(/\\./g,va=>va.substring(1)),ss===39):""+ +Ms===Ms&&(ja=A.createNumericLiteral(+Ms)),!ja){let va=dn(A.createIdentifier(Ms),16777216);ci&&ov(va,A.createNodeArray(ci)),va.symbol=yi,ja=va}return A.createElementAccessExpression(mr(Jr,Qr-1),ja)}}}function Fa(Te){let ce=vs(Te);return ce?pa(ce)?!!(rs(ce.expression).flags&402653316):wo(ce)?!!(rs(ce.argumentExpression).flags&402653316):ya(ce):!1}function q_(Te){let ce=vs(Te);return!!(ce&&ya(ce)&&(ce.singleQuote||!So(ce)&&Yi(oc(ce,!1),"'")))}function Zc(Te,ce){let Et=!!Dr(Te.declarations)&&Oi(Te.declarations,Fa),Jt=!!Dr(Te.declarations)&&Oi(Te.declarations,q_),mr=!!(Te.flags&8192),Jr=_c(Te,ce,Jt,Et,mr);if(Jr)return Jr;let Qr=Li(Te.escapedName);return WO(Qr,wa(F),Jt,Et,mr)}function _c(Te,ce,Et,Jt,mr){let Jr=$i(Te).nameType;if(Jr){if(Jr.flags&384){let Qr=""+Jr.value;return!$_(Qr,wa(F))&&(Jt||!Sh(Qr))?A.createStringLiteral(Qr,!!Et):Sh(Qr)&&Yi(Qr,"-")?A.createComputedPropertyName(A.createPrefixUnaryExpression(41,A.createNumericLiteral(-Qr))):WO(Qr,wa(F),Et,Jt,mr)}if(Jr.flags&8192)return A.createComputedPropertyName(ll(Jr.symbol,ce,111551))}}function qf(Te){let ce=Te.mustCreateTypeParameterSymbolList,Et=Te.mustCreateTypeParametersNamesLookups;Te.mustCreateTypeParameterSymbolList=!0,Te.mustCreateTypeParametersNamesLookups=!0;let Jt=Te.typeParameterNames,mr=Te.typeParameterNamesByText,Jr=Te.typeParameterNamesByTextNextNameCount,Qr=Te.typeParameterSymbolList;return()=>{Te.typeParameterNames=Jt,Te.typeParameterNamesByText=mr,Te.typeParameterNamesByTextNextNameCount=Jr,Te.typeParameterSymbolList=Qr,Te.mustCreateTypeParameterSymbolList=ce,Te.mustCreateTypeParametersNamesLookups=Et}}function Jc(Te,ce){return Te.declarations&&On(Te.declarations,Et=>!!l7e(Et)&&(!ce||!!gr(Et,Jt=>Jt===ce)))}function el(Te,ce){if(!(Mn(ce)&4)||!yf(Te))return!0;YQ(Te);let Et=wn(Te).resolvedSymbol,Jt=Et&&Bo(Et);return!Jt||Jt!==ce.target?!0:Dr(Te.typeArguments)>=$g(ce.target.typeParameters)}function Xv(Te){for(;wn(Te).fakeScopeForSignatureDeclaration;)Te=Te.parent;return Te}function XD(Te,ce,Et){return Et.flags&8192&&Et.symbol===Te&&(!ce.enclosingDeclaration||pt(Te.declarations,mr=>Fr(mr)===ce.enclosingFile))&&(ce.flags|=1048576),W(Et,ce)}function Q1(Te,ce,Et,Jt){var mr;let Jr,Qr=ce&&(Bi(ce)||ip(ce))&&H9(ce,Te.enclosingDeclaration),ci=ce??Jt.valueDeclaration??Jc(Jt)??((mr=Jt.declarations)==null?void 0:mr[0]);if(ci){let yi=y(Te,Jt,Et);T0(ci)?Jr=_e.serializeTypeOfAccessor(ci,Jt,Te):VO(ci)&&!So(ci)&&!(Mn(Et)&196608)&&(Jr=_e.serializeTypeOfDeclaration(ci,Jt,Te)),yi()}return Jr||(Qr&&(Et=yb(Et)),Jr=XD(Jt,Te,Et)),Jr??A.createKeywordTypeNode(133)}function o8(Te,ce,Et){return Et===ce?!0:Te&&((s_(Te)||ds(Te))&&Te.questionToken||Bi(Te)&&zQ(Te))?Up(ce,524288)===Et:!1}function $f(Te,ce){let Et=Te.flags&256,Jt=k(Te);Et&&(Te.flags&=-257);let mr,Jr=Za(ce);if(!(Et&&Se(Jr))){if(ce.declaration&&!So(ce.declaration)){let Qr=In(ce.declaration),ci=y(Te,Qr,Jr);mr=_e.serializeReturnTypeForSignature(ce.declaration,Qr,Te),ci()}mr||(mr=c8(Te,ce,Jr))}return!mr&&!Et&&(mr=A.createKeywordTypeNode(133)),Jt(),mr}function c8(Te,ce,Et){let Jt=Te.suppressReportInferenceFallback;Te.suppressReportInferenceFallback=!0;let mr=zp(ce),Jr=mr?Wi(Te.mapper?M3e(mr,Te.mapper):mr,Te):W(Et,Te);return Te.suppressReportInferenceFallback=Jt,Jr}function Bt(Te,ce,Et=ce.enclosingDeclaration){let Jt=!1,mr=h_(Te);if(un(Te)&&(lk(mr)||dh(mr.parent)||y_(mr.parent)&&Sz(mr.parent.left)&&lk(mr.parent.right)))return Jt=!0,{introducesError:Jt,node:Te};let Jr=nN(Te),Qr;if(N0(mr))return Qr=In(t_(mr,!1,!1)),sg(Qr,mr,Jr,!1).accessibility!==0&&(Jt=!0,ce.tracker.reportInaccessibleThisError()),{introducesError:Jt,node:ci(Te)};if(Qr=Ac(mr,Jr,!0,!0),ce.enclosingDeclaration&&!(Qr&&Qr.flags&262144)){Qr=nf(Qr);let yi=Ac(mr,Jr,!0,!0,ce.enclosingDeclaration);if(yi===Y||yi===void 0&&Qr!==void 0||yi&&Qr&&!gp(nf(yi),Qr))return yi!==Y&&ce.tracker.reportInferenceFallback(Te),Jt=!0,{introducesError:Jt,node:Te,sym:Qr};Qr=yi}if(Qr)return Qr.flags&1&&Qr.valueDeclaration&&(jb(Qr.valueDeclaration)||ip(Qr.valueDeclaration))?{introducesError:Jt,node:ci(Te)}:(!(Qr.flags&262144)&&!Cg(Te)&&sg(Qr,Et,Jr,!1).accessibility!==0?(ce.tracker.reportInferenceFallback(Te),Jt=!0):ce.tracker.trackSymbol(Qr,Et,Jr),{introducesError:Jt,node:ci(Te)});return{introducesError:Jt,node:Te};function ci(yi){if(yi===mr){let ss=Bo(Qr),ja=Qr.flags&262144?Ra(ss,ce):A.cloneNode(yi);return ja.symbol=Qr,l(ce,dn(ja,16777216),yi)}let Ms=Ir(yi,ss=>ci(ss),void 0);return l(ce,Ms,yi)}}function yr(Te,ce,Et,Jt){let mr=Et?111551:788968,Jr=Ac(ce,mr,!0);if(!Jr)return;let Qr=Jr.flags&2097152?al(Jr):Jr;if(sg(Jr,Te.enclosingDeclaration,mr,!1).accessibility===0)return Xr(Qr,Te,mr,Jt)}function Gr(Te,ce){let Et=a(Te,ce,!0);if(!Et)return!1;if(un(ce)&&sy(ce)){w3e(ce);let Jt=wn(ce).resolvedSymbol;return!Jt||!(!ce.isTypeOf&&!(Jt.flags&788968)||!(Dr(ce.typeArguments)>=$g(Md(Jt))))}if(yf(ce)){if(vd(ce))return!1;let Jt=wn(ce).resolvedSymbol;if(!Jt)return!1;if(Jt.flags&262144){let mr=Bo(Jt);return!(Te.mapper&&qv(mr,Te.mapper)!==mr)}if($6(ce))return el(ce,Et)&&!LMe(ce)&&!!(Jt.flags&788968)}if(Gb(ce)&&ce.operator===158&&ce.type.kind===155){let Jt=Te.enclosingDeclaration&&Xv(Te.enclosingDeclaration);return!!gr(ce,mr=>mr===Jt)}return!0}function nn(Te,ce,Et){let Jt=a(Te,ce);if(Et&&!Vp(Jt,mr=>!!(mr.flags&32768))&&Gr(Te,ce)){let mr=_e.tryReuseExistingTypeNode(Te,ce);if(mr)return A.createUnionTypeNode([mr,A.createKeywordTypeNode(157)])}return W(Jt,Te)}function Pn(Te,ce){var Et;let Jt=LX(A.createPropertyDeclaration,174,!0),mr=LX((Ft,Wn,pi,li)=>A.createPropertySignature(Ft,Wn,pi,li),173,!1),Jr=ce.enclosingDeclaration,Qr=[],ci=new Set,yi=[],Ms=ce;ce={...Ms,usedSymbolNames:new Set(Ms.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((Et=Ms.remappedSymbolReferences)==null?void 0:Et.entries()),tracker:void 0};let ss={...Ms.tracker.inner,trackSymbol:(Ft,Wn,pi)=>{var li,Kn;if((li=ce.remappedSymbolNames)!=null&&li.has(ua(Ft)))return!1;if(sg(Ft,Wn,pi,!1).accessibility===0){let ia=Qu(Ft,ce,pi);if(!(Ft.flags&4)){let Us=ia[0],js=Fr(Ms.enclosingDeclaration);pt(Us.declarations,ao=>Fr(ao)===js)&&qn(Us)}}else if((Kn=Ms.tracker.inner)!=null&&Kn.trackSymbol)return Ms.tracker.inner.trackSymbol(Ft,Wn,pi);return!1}};ce.tracker=new Xse(ce,ss,Ms.tracker.moduleResolverHost),Nl(Te,(Ft,Wn)=>{let pi=Li(Wn);Zg(Ft,pi)});let ja=!ce.bundled,va=Te.get("export=");return va&&Te.size>1&&va.flags&2098688&&(Te=ea(),Te.set("export=",va)),fr(Te),Vr(Qr);function ba(Ft){return!!Ft&&Ft.kind===80}function lo(Ft){return Lc(Ft)?An(hr(Ft.declarationList.declarations,vs),ba):An([vs(Ft)],ba)}function Qe(Ft){let Wn=On(Ft,Ho),pi=Sc(Ft,nl),li=pi!==-1?Ft[pi]:void 0;if(li&&Wn&&Wn.isExportEquals&&je(Wn.expression)&&je(li.name)&&Ln(li.name)===Ln(Wn.expression)&&li.body&&Lm(li.body)){let Kn=An(Ft,Us=>!!(r_(Us)&32)),uo=li.name,ia=li.body;if(Dr(Kn)&&(li=A.updateModuleDeclaration(li,li.modifiers,li.name,ia=A.updateModuleBlock(ia,A.createNodeArray([...li.body.statements,A.createExportDeclaration(void 0,!1,A.createNamedExports(hr(ga(Kn,Us=>lo(Us)),Us=>A.createExportSpecifier(!1,void 0,Us))),void 0)]))),Ft=[...Ft.slice(0,pi),li,...Ft.slice(pi+1)]),!On(Ft,Us=>Us!==li&&m6(Us,uo))){Qr=[];let Us=!pt(ia.statements,js=>ei(js,32)||Ho(js)||Xc(js));or(ia.statements,js=>{ni(js,Us?32:0)}),Ft=[...An(Ft,js=>js!==li&&js!==Wn),...Qr]}}return Ft}function ot(Ft){let Wn=An(Ft,li=>Xc(li)&&!li.moduleSpecifier&&!!li.exportClause&&Fp(li.exportClause));Dr(Wn)>1&&(Ft=[...An(Ft,Kn=>!Xc(Kn)||!!Kn.moduleSpecifier||!Kn.exportClause),A.createExportDeclaration(void 0,!1,A.createNamedExports(ga(Wn,Kn=>Zs(Kn.exportClause,Fp).elements)),void 0)]);let pi=An(Ft,li=>Xc(li)&&!!li.moduleSpecifier&&!!li.exportClause&&Fp(li.exportClause));if(Dr(pi)>1){let li=vw(pi,Kn=>ya(Kn.moduleSpecifier)?">"+Kn.moduleSpecifier.text:">");if(li.length!==pi.length)for(let Kn of li)Kn.length>1&&(Ft=[...An(Ft,uo=>!Kn.includes(uo)),A.createExportDeclaration(void 0,!1,A.createNamedExports(ga(Kn,uo=>Zs(uo.exportClause,Fp).elements)),Kn[0].moduleSpecifier)])}return Ft}function er(Ft){let Wn=Sc(Ft,pi=>Xc(pi)&&!pi.moduleSpecifier&&!pi.attributes&&!!pi.exportClause&&Fp(pi.exportClause));if(Wn>=0){let pi=Ft[Wn],li=Vi(pi.exportClause.elements,Kn=>{if(!Kn.propertyName&&Kn.name.kind!==11){let uo=Kn.name,ia=x8(Ft),Us=An(ia,js=>m6(Ft[js],uo));if(Dr(Us)&&Oi(Us,js=>j4(Ft[js]))){for(let js of Us)Ft[js]=It(Ft[js]);return}}return Kn});Dr(li)?Ft[Wn]=A.updateExportDeclaration(pi,pi.modifiers,pi.isTypeOnly,A.updateNamedExports(pi.exportClause,li),pi.moduleSpecifier,pi.attributes):f0(Ft,Wn)}return Ft}function Vr(Ft){return Ft=Qe(Ft),Ft=ot(Ft),Ft=er(Ft),Jr&&(Mi(Jr)&&mf(Jr)||nl(Jr))&&(!pt(Ft,C6)||!Zee(Ft)&&pt(Ft,aF))&&Ft.push(rM(A)),Ft}function It(Ft){let Wn=(r_(Ft)|32)&-129;return A.replaceModifiers(Ft,Wn)}function Pt(Ft){let Wn=r_(Ft)&-33;return A.replaceModifiers(Ft,Wn)}function fr(Ft,Wn,pi){Wn||yi.push(new Map),Ft.forEach(li=>{Rr(li,!1,!!pi)}),Wn||(yi[yi.length-1].forEach(li=>{Rr(li,!0,!!pi)}),yi.pop())}function Rr(Ft,Wn,pi){so(an(Ft));let li=Va(Ft);if(ci.has(ua(li)))return;if(ci.add(ua(li)),!Wn||Dr(Ft.declarations)&&pt(Ft.declarations,uo=>!!gr(uo,ia=>ia===Jr))){let uo=qf(ce);ce.tracker.pushErrorFallbackNode(On(Ft.declarations,ia=>Fr(ia)===ce.enclosingFile)),ln(Ft,Wn,pi),ce.tracker.popErrorFallbackNode(),uo()}}function ln(Ft,Wn,pi,li=Ft.escapedName){var Kn,uo,ia,Us,js,ao;let Mo=Li(li),A_=li==="default";if(Wn&&!(ce.flags&131072)&&d2(Mo)&&!A_){ce.encounteredError=!0;return}let Xu=A_&&!!(Ft.flags&-113||Ft.flags&16&&Dr(so(an(Ft))))&&!(Ft.flags&2097152),_u=!Xu&&!Wn&&d2(Mo)&&!A_;(Xu||_u)&&(Wn=!0);let fc=(Wn?0:32)|(A_&&!Xu?2048:0),ru=Ft.flags&1536&&Ft.flags&7&&li!=="export=",Hf=ru&&l8(an(Ft),Ft);if((Ft.flags&8208||Hf)&&Ld(an(Ft),Ft,Zg(Ft,Mo),fc),Ft.flags&524288&&xn(Ft,Mo,fc),Ft.flags&98311&&li!=="export="&&!(Ft.flags&4194304)&&!(Ft.flags&32)&&!(Ft.flags&8192)&&!Hf)if(pi)NN(Ft)&&(_u=!1,Xu=!1);else{let xu=an(Ft),hd=Zg(Ft,Mo);if(xu.symbol&&xu.symbol!==Ft&&xu.symbol.flags&16&&pt(xu.symbol.declarations,O0)&&((Kn=xu.symbol.members)!=null&&Kn.size||(uo=xu.symbol.exports)!=null&&uo.size))ce.remappedSymbolReferences||(ce.remappedSymbolReferences=new Map),ce.remappedSymbolReferences.set(ua(xu.symbol),Ft),ln(xu.symbol,Wn,pi,li),ce.remappedSymbolReferences.delete(ua(xu.symbol));else if(!(Ft.flags&16)&&l8(xu,Ft))Ld(xu,Ft,hd,fc);else{let X1=Ft.flags&2?sw(Ft)?2:1:(ia=Ft.parent)!=null&&ia.valueDeclaration&&Mi((Us=Ft.parent)==null?void 0:Us.valueDeclaration)?2:void 0,Xh=Xu||!(Ft.flags&4)?hd:K9(hd,Ft),eh=Ft.declarations&&On(Ft.declarations,JT=>oi(JT));eh&&au(eh.parent)&&eh.parent.declarations.length===1&&(eh=eh.parent.parent);let Vy=(js=Ft.declarations)==null?void 0:js.find(Nn);if(Vy&&vn(Vy.parent)&&je(Vy.parent.right)&&((ao=xu.symbol)!=null&&ao.valueDeclaration)&&Mi(xu.symbol.valueDeclaration)){let JT=hd===Vy.parent.right.escapedText?void 0:Vy.parent.right;ni(A.createExportDeclaration(void 0,!1,A.createNamedExports([A.createExportSpecifier(!1,JT,hd)])),0),ce.tracker.trackSymbol(xu.symbol,ce.enclosingDeclaration,111551)}else{let JT=l(ce,A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(Xh,void 0,Q1(ce,void 0,xu,Ft))],X1)),eh);ni(JT,Xh!==hd?fc&-33:fc),Xh!==hd&&!Wn&&(ni(A.createExportDeclaration(void 0,!1,A.createNamedExports([A.createExportSpecifier(!1,Xh,hd)])),0),_u=!1,Xu=!1)}}}if(Ft.flags&384&&rc(Ft,Mo,fc),Ft.flags&32&&(Ft.flags&4&&Ft.valueDeclaration&&vn(Ft.valueDeclaration.parent)&&ml(Ft.valueDeclaration.parent.right)?K1(Ft,Zg(Ft,Mo),fc):Zv(Ft,Zg(Ft,Mo),fc)),(Ft.flags&1536&&(!ru||Aa(Ft))||Hf)&&fa(Ft,Mo,fc),Ft.flags&64&&!(Ft.flags&32)&&Gi(Ft,Mo,fc),Ft.flags&2097152&&K1(Ft,Zg(Ft,Mo),fc),Ft.flags&4&&Ft.escapedName==="export="&&NN(Ft),Ft.flags&8388608&&Ft.declarations)for(let xu of Ft.declarations){let hd=u_(xu,xu.moduleSpecifier);hd&&ni(A.createExportDeclaration(void 0,xu.isTypeOnly,void 0,A.createStringLiteral(Nr(hd,ce))),0)}Xu?ni(A.createExportAssignment(void 0,!1,A.createIdentifier(Zg(Ft,Mo))),0):_u&&ni(A.createExportDeclaration(void 0,!1,A.createNamedExports([A.createExportSpecifier(!1,Zg(Ft,Mo),Mo)])),0)}function qn(Ft){if(pt(Ft.declarations,jb))return;w.assertIsDefined(yi[yi.length-1]),K9(Li(Ft.escapedName),Ft);let Wn=!!(Ft.flags&2097152)&&!pt(Ft.declarations,pi=>!!gr(pi,Xc)||Dg(pi)||Ol(pi)&&!dy(pi.moduleReference));yi[Wn?0:yi.length-1].set(ua(Ft),Ft)}function Ni(Ft){return Mi(Ft)&&(mf(Ft)||wp(Ft))||e_(Ft)&&!xg(Ft)}function ni(Ft,Wn){if(od(Ft)){let pi=0,li=ce.enclosingDeclaration&&(td(ce.enclosingDeclaration)?Fr(ce.enclosingDeclaration):ce.enclosingDeclaration);Wn&32&&li&&(Ni(li)||nl(li))&&j4(Ft)&&(pi|=32),ja&&!(pi&32)&&(!li||!(li.flags&33554432))&&(LS(Ft)||Lc(Ft)||jc(Ft)||gl(Ft)||nl(Ft))&&(pi|=128),Wn&2048&&(gl(Ft)||hu(Ft)||jc(Ft))&&(pi|=2048),pi&&(Ft=A.replaceModifiers(Ft,pi|r_(Ft)))}Qr.push(Ft)}function xn(Ft,Wn,pi){var li;let Kn=B4e(Ft),uo=$i(Ft).typeParameters,ia=hr(uo,Xu=>Qn(Xu,ce)),Us=(li=Ft.declarations)==null?void 0:li.find(td),js=h6(Us?Us.comment||Us.parent.comment:void 0),ao=k(ce);ce.flags|=8388608;let Mo=ce.enclosingDeclaration;ce.enclosingDeclaration=Us;let A_=Us&&Us.typeExpression&&Qb(Us.typeExpression)&&_e.tryReuseExistingTypeNode(ce,Us.typeExpression.type)||W(Kn,ce);ni(Jb(A.createTypeAliasDeclaration(void 0,Zg(Ft,Wn),ia,A_),js?[{kind:3,text:`*
* `+js.replace(/\n/g,`
* `)+`
`,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),pi),ao(),ce.enclosingDeclaration=Mo}function Gi(Ft,Wn,pi){let li=Bp(Ft),Kn=Md(Ft),uo=hr(Kn,_u=>Qn(_u,ce)),ia=Pl(li),Us=Dr(ia)?ma(ia):void 0,js=ga(so(li),_u=>jX(_u,Us)),ao=wye(0,li,Us,179),Mo=wye(1,li,Us,180),A_=x7e(li,Us),Xu=Dr(ia)?[A.createHeritageClause(96,Vi(ia,_u=>Iye(_u,111551)))]:void 0;ni(A.createInterfaceDeclaration(void 0,Zg(Ft,Wn),uo,Xu,[...A_,...Mo,...ao,...js]),pi)}function Ds(Ft){let Wn=ps(Nf(Ft).values()),pi=Va(Ft);if(pi!==Ft){let li=new Set(Wn);for(let Kn of Nf(pi).values())Ef(Pc(Kn))&111551||li.add(Kn);Wn=ps(li)}return An(Wn,li=>Yv(li)&&$_(li.escapedName,99))}function Aa(Ft){return Oi(Ds(Ft),Wn=>!(Ef(Pc(Wn))&111551))}function fa(Ft,Wn,pi){let li=Ds(Ft),Kn=XN(li,Us=>Us.parent&&Us.parent===Ft?"real":"merged"),uo=Kn.get("real")||qe,ia=Kn.get("merged")||qe;if(Dr(uo)){let Us=Zg(Ft,Wn);Uy(uo,Us,pi,!!(Ft.flags&67108880))}if(Dr(ia)){let Us=Fr(ce.enclosingDeclaration),js=Zg(Ft,Wn),ao=A.createModuleBlock([A.createExportDeclaration(void 0,!1,A.createNamedExports(Vi(An(ia,Mo=>Mo.escapedName!=="export="),Mo=>{var A_,Xu;let _u=Li(Mo.escapedName),fc=Zg(Mo,_u),ru=Mo.declarations&&dp(Mo);if(Us&&(ru?Us!==Fr(ru):!pt(Mo.declarations,hd=>Fr(hd)===Us))){(Xu=(A_=ce.tracker)==null?void 0:A_.reportNonlocalAugmentation)==null||Xu.call(A_,Us,Ft,Mo);return}let Hf=ru&&T1(ru,!0);qn(Hf||Mo);let xu=Hf?Zg(Hf,Li(Hf.escapedName)):fc;return A.createExportSpecifier(!1,_u===xu?void 0:xu,_u)})))]);ni(A.createModuleDeclaration(void 0,A.createIdentifier(js),ao,32),0)}}function rc(Ft,Wn,pi){ni(A.createEnumDeclaration(A.createModifiersFromModifierFlags(jhe(Ft)?4096:0),Zg(Ft,Wn),hr(An(so(an(Ft)),li=>!!(li.flags&8)),li=>{let Kn=li.declarations&&li.declarations[0]&&_v(li.declarations[0])?mye(li.declarations[0]):void 0;return A.createEnumMember(Li(li.escapedName),Kn===void 0?void 0:typeof Kn=="string"?A.createStringLiteral(Kn):A.createNumericLiteral(Kn))})),pi)}function Ld(Ft,Wn,pi,li){let Kn=Bs(Ft,0);for(let uo of Kn){let ia=rr(uo,262,ce,{name:A.createIdentifier(pi)});ni(l(ce,ia,Kh(uo)),li)}if(!(Wn.flags&1536&&Wn.exports&&Wn.exports.size)){let uo=An(so(Ft),Yv);Uy(uo,pi,li,!0)}}function Kh(Ft){if(Ft.declaration&&Ft.declaration.parent){if(vn(Ft.declaration.parent)&&Vc(Ft.declaration.parent)===5)return Ft.declaration.parent;if(oi(Ft.declaration.parent)&&Ft.declaration.parent.parent)return Ft.declaration.parent.parent}return Ft.declaration}function Uy(Ft,Wn,pi,li){if(Dr(Ft)){let uo=XN(Ft,fc=>!Dr(fc.declarations)||pt(fc.declarations,ru=>Fr(ru)===Fr(ce.enclosingDeclaration))?"local":"remote").get("local")||qe,ia=Yb.createModuleDeclaration(void 0,A.createIdentifier(Wn),A.createModuleBlock([]),32);Xa(ia,Jr),ia.locals=ea(Ft),ia.symbol=Ft[0].parent;let Us=Qr;Qr=[];let js=ja;ja=!1;let ao={...ce,enclosingDeclaration:ia},Mo=ce;ce=ao,fr(ea(uo),li,!0),ce=Mo,ja=js;let A_=Qr;Qr=Us;let Xu=hr(A_,fc=>Ho(fc)&&!fc.isExportEquals&&je(fc.expression)?A.createExportDeclaration(void 0,!1,A.createNamedExports([A.createExportSpecifier(!1,fc.expression,A.createIdentifier("default"))])):fc),_u=Oi(Xu,fc=>ei(fc,32))?hr(Xu,Pt):Xu;ia=A.updateModuleDeclaration(ia,ia.modifiers,ia.name,A.createModuleBlock(_u)),ni(ia,pi)}}function Yv(Ft){return!!(Ft.flags&2887656)||!(Ft.flags&4194304||Ft.escapedName==="prototype"||Ft.valueDeclaration&&Ks(Ft.valueDeclaration)&&ii(Ft.valueDeclaration.parent))}function Ku(Ft){let Wn=Vi(Ft,pi=>{let li=ce.enclosingDeclaration;ce.enclosingDeclaration=pi;let Kn=pi.expression;if(mo(Kn)){if(je(Kn)&&Ln(Kn)==="")return uo(void 0);let ia;if({introducesError:ia,node:Kn}=Bt(Kn,ce),ia)return uo(void 0)}return uo(A.createExpressionWithTypeArguments(Kn,hr(pi.typeArguments,ia=>_e.tryReuseExistingTypeNode(ce,ia)||W(a(ce,ia),ce))));function uo(ia){return ce.enclosingDeclaration=li,ia}});if(Wn.length===Ft.length)return Wn}function Zv(Ft,Wn,pi){var li,Kn;let uo=(li=Ft.declarations)==null?void 0:li.find(ii),ia=ce.enclosingDeclaration;ce.enclosingDeclaration=uo||ia;let Us=Md(Ft),js=hr(Us,gg=>Qn(gg,ce)),ao=Mf(Bp(Ft)),Mo=Pl(ao),A_=uo&&Qw(uo),Xu=A_&&Ku(A_)||Vi(Nu(ao),Hht),_u=an(Ft),fc=!!((Kn=_u.symbol)!=null&&Kn.valueDeclaration)&&ii(_u.symbol.valueDeclaration),ru=fc?Qa(_u):Fe,Hf=[...Dr(Mo)?[A.createHeritageClause(96,hr(Mo,gg=>$ht(gg,ru,Wn)))]:[],...Dr(Xu)?[A.createHeritageClause(119,Xu)]:[]],xu=Emt(ao,Mo,so(ao)),hd=An(xu,gg=>{let MN=gg.valueDeclaration;return!!MN&&!(Gl(MN)&&ji(MN.name))}),Xh=pt(xu,gg=>{let MN=gg.valueDeclaration;return!!MN&&Gl(MN)&&ji(MN.name)})?[A.createPropertyDeclaration(void 0,A.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:qe,eh=ga(hd,gg=>Jt(gg,!1,Mo[0])),Vy=ga(An(so(_u),gg=>!(gg.flags&4194304)&&gg.escapedName!=="prototype"&&!Yv(gg)),gg=>Jt(gg,!0,ru)),X9=!fc&&!!Ft.valueDeclaration&&un(Ft.valueDeclaration)&&!pt(Bs(_u,1))?[A.createConstructorDeclaration(A.createModifiersFromModifierFlags(2),[],void 0)]:wye(1,_u,ru,176),Qht=x7e(ao,Mo[0]);ce.enclosingDeclaration=ia,ni(l(ce,A.createClassDeclaration(void 0,Wn,js,Hf,[...Qht,...Vy,...X9,...eh,...Xh]),Ft.declarations&&An(Ft.declarations,gg=>gl(gg)||ml(gg))[0]),pi)}function YD(Ft){return po(Ft,Wn=>{if(a_(Wn)||zu(Wn))return I0(Wn.propertyName||Wn.name);if(vn(Wn)||Ho(Wn)){let pi=Ho(Wn)?Wn.expression:Wn.right;if(Nn(pi))return Ln(pi.name)}if(Lh(Wn)){let pi=vs(Wn);if(pi&&je(pi))return Ln(pi)}})}function K1(Ft,Wn,pi){var li,Kn,uo,ia,Us;let js=dp(Ft);if(!js)return w.fail();let ao=Va(T1(js,!0));if(!ao)return;let Mo=M6(ao)&&YD(Ft.declarations)||Li(ao.escapedName);Mo==="export="&&me&&(Mo="default");let A_=Zg(ao,Mo);switch(qn(ao),js.kind){case 208:if(((Kn=(li=js.parent)==null?void 0:li.parent)==null?void 0:Kn.kind)===260){let fc=Nr(ao.parent||ao,ce),{propertyName:ru}=js;ni(A.createImportDeclaration(void 0,A.createImportClause(!1,void 0,A.createNamedImports([A.createImportSpecifier(!1,ru&&je(ru)?A.createIdentifier(Ln(ru)):void 0,A.createIdentifier(Wn))])),A.createStringLiteral(fc),void 0),0);break}w.failBadSyntaxKind(((uo=js.parent)==null?void 0:uo.parent)||js,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:((Us=(ia=js.parent)==null?void 0:ia.parent)==null?void 0:Us.kind)===226&&Yg(Li(Ft.escapedName),A_);break;case 260:if(Nn(js.initializer)){let fc=js.initializer,ru=A.createUniqueName(Wn),Hf=Nr(ao.parent||ao,ce);ni(A.createImportEqualsDeclaration(void 0,!1,ru,A.createExternalModuleReference(A.createStringLiteral(Hf))),0),ni(A.createImportEqualsDeclaration(void 0,!1,A.createIdentifier(Wn),A.createQualifiedName(ru,fc.name)),pi);break}case 271:if(ao.escapedName==="export="&&pt(ao.declarations,fc=>Mi(fc)&&wp(fc))){NN(Ft);break}let Xu=!(ao.flags&512)&&!oi(js);ni(A.createImportEqualsDeclaration(void 0,!1,A.createIdentifier(Wn),Xu?No(ao,ce,-1,!1):A.createExternalModuleReference(A.createStringLiteral(Nr(ao,ce)))),Xu?pi:0);break;case 270:ni(A.createNamespaceExportDeclaration(Ln(js.name)),0);break;case 273:{let fc=Nr(ao.parent||ao,ce),ru=ce.bundled?A.createStringLiteral(fc):js.parent.moduleSpecifier,Hf=sc(js.parent)?js.parent.attributes:void 0,xu=zm(js.parent);ni(A.createImportDeclaration(void 0,A.createImportClause(xu,A.createIdentifier(Wn),void 0),ru,Hf),0);break}case 274:{let fc=Nr(ao.parent||ao,ce),ru=ce.bundled?A.createStringLiteral(fc):js.parent.parent.moduleSpecifier,Hf=zm(js.parent.parent);ni(A.createImportDeclaration(void 0,A.createImportClause(Hf,void 0,A.createNamespaceImport(A.createIdentifier(Wn))),ru,js.parent.attributes),0);break}case 280:ni(A.createExportDeclaration(void 0,!1,A.createNamespaceExport(A.createIdentifier(Wn)),A.createStringLiteral(Nr(ao,ce))),0);break;case 276:{let fc=Nr(ao.parent||ao,ce),ru=ce.bundled?A.createStringLiteral(fc):js.parent.parent.parent.moduleSpecifier,Hf=zm(js.parent.parent.parent);ni(A.createImportDeclaration(void 0,A.createImportClause(Hf,void 0,A.createNamedImports([A.createImportSpecifier(!1,Wn!==Mo?A.createIdentifier(Mo):void 0,A.createIdentifier(Wn))])),ru,js.parent.parent.parent.attributes),0);break}case 281:let _u=js.parent.parent.moduleSpecifier;if(_u){let fc=js.propertyName;fc&&kg(fc)&&(Mo="default")}Yg(Li(Ft.escapedName),_u?Mo:A_,_u&&Ha(_u)?A.createStringLiteral(_u.text):void 0);break;case 277:NN(Ft);break;case 226:case 211:case 212:Ft.escapedName==="default"||Ft.escapedName==="export="?NN(Ft):Yg(Wn,A_);break;default:return w.failBadSyntaxKind(js,"Unhandled alias declaration kind in symbol serializer!")}}function Yg(Ft,Wn,pi){ni(A.createExportDeclaration(void 0,!1,A.createNamedExports([A.createExportSpecifier(!1,Ft!==Wn?Wn:void 0,Ft)]),pi),0)}function NN(Ft){var Wn;if(Ft.flags&4194304)return!1;let pi=Li(Ft.escapedName),li=pi==="export=",uo=li||pi==="default",ia=Ft.declarations&&dp(Ft),Us=ia&&T1(ia,!0);if(Us&&Dr(Us.declarations)&&pt(Us.declarations,js=>Fr(js)===Fr(Jr))){let js=ia&&(Ho(ia)||vn(ia)?Az(ia):ore(ia)),ao=js&&mo(js)?qmt(js):void 0,Mo=ao&&Ac(ao,-1,!0,!0,Jr);(Mo||Us)&&qn(Mo||Us);let A_=ce.tracker.disableTrackSymbol;if(ce.tracker.disableTrackSymbol=!0,uo)Qr.push(A.createExportAssignment(void 0,li,ll(Us,ce,-1)));else if(ao===js&&ao)Yg(pi,Ln(ao));else if(js&&ml(js))Yg(pi,Zg(Us,Oc(Us)));else{let Xu=K9(pi,Ft);ni(A.createImportEqualsDeclaration(void 0,!1,A.createIdentifier(Xu),No(Us,ce,-1,!1)),0),Yg(pi,Xu)}return ce.tracker.disableTrackSymbol=A_,!0}else{let js=K9(pi,Ft),ao=Rf(an(Va(Ft)));if(l8(ao,Ft))Ld(ao,Ft,js,uo?0:32);else{let Mo=((Wn=ce.enclosingDeclaration)==null?void 0:Wn.kind)===267&&(!(Ft.flags&98304)||Ft.flags&65536)?1:2,A_=A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(js,void 0,Q1(ce,void 0,ao,Ft))],Mo));ni(A_,Us&&Us.flags&4&&Us.escapedName==="export="?128:pi===js?32:0)}return uo?(Qr.push(A.createExportAssignment(void 0,li,A.createIdentifier(js))),!0):pi!==js?(Yg(pi,js),!0):!1}}function l8(Ft,Wn){var pi;let li=Fr(ce.enclosingDeclaration);return Mn(Ft)&48&&!pt((pi=Ft.symbol)==null?void 0:pi.declarations,di)&&!Dr(Mu(Ft))&&!aR(Ft)&&!!(Dr(An(so(Ft),Yv))||Dr(Bs(Ft,0)))&&!Dr(Bs(Ft,1))&&!Jc(Wn,Jr)&&!(Ft.symbol&&pt(Ft.symbol.declarations,Kn=>Fr(Kn)!==li))&&!pt(so(Ft),Kn=>pR(Kn.escapedName))&&!pt(so(Ft),Kn=>pt(Kn.declarations,uo=>Fr(uo)!==li))&&Oi(so(Ft),Kn=>$_(Oc(Kn),B)?Kn.flags&98304?fb(Kn)===Wv(Kn):!0:!1)}function LX(Ft,Wn,pi){return function(Kn,uo,ia){var Us,js,ao,Mo,A_,Xu;let _u=Ap(Kn),fc=!!(_u&2);if(uo&&Kn.flags&2887656)return[];if(Kn.flags&4194304||Kn.escapedName==="constructor"||ia&&ca(ia,Kn.escapedName)&&ym(ca(ia,Kn.escapedName))===ym(Kn)&&(Kn.flags&16777216)===(ca(ia,Kn.escapedName).flags&16777216)&&$h(an(Kn),ol(ia,Kn.escapedName)))return[];let ru=_u&-1025|(uo?256:0),Hf=Zc(Kn,ce),xu=(Us=Kn.declarations)==null?void 0:Us.find(uf(ds,T0,oi,s_,vn,Nn));if(Kn.flags&98304&&pi){let hd=[];if(Kn.flags&65536){let X1=Kn.declarations&&or(Kn.declarations,Vy=>{if(Vy.kind===178)return Vy;if(qs(Vy)&&uk(Vy))return or(Vy.arguments[2].properties,JT=>{let X9=vs(JT);if(X9&&je(X9)&&Ln(X9)==="set")return JT})});w.assert(!!X1);let Xh=xo(X1)?yp(X1).parameters[0]:void 0,eh=(js=Kn.declarations)==null?void 0:js.find(xm);hd.push(l(ce,A.createSetAccessorDeclaration(A.createModifiersFromModifierFlags(ru),Hf,[A.createParameterDeclaration(void 0,void 0,Xh?Gs(Xh,Dn(Xh),ce):"value",void 0,fc?void 0:Q1(ce,eh,Wv(Kn),Kn))],void 0),eh??xu))}if(Kn.flags&32768){let X1=_u&2,Xh=(ao=Kn.declarations)==null?void 0:ao.find(ch);hd.push(l(ce,A.createGetAccessorDeclaration(A.createModifiersFromModifierFlags(ru),Hf,[],X1?void 0:Q1(ce,Xh,an(Kn),Kn),void 0),Xh??xu))}return hd}else if(Kn.flags&98311)return l(ce,Ft(A.createModifiersFromModifierFlags((ym(Kn)?8:0)|ru),Hf,Kn.flags&16777216?A.createToken(58):void 0,fc?void 0:Q1(ce,(Mo=Kn.declarations)==null?void 0:Mo.find(X_),Wv(Kn),Kn),void 0),((A_=Kn.declarations)==null?void 0:A_.find(uf(ds,oi)))||xu);if(Kn.flags&8208){let hd=an(Kn),X1=Bs(hd,0);if(ru&2)return l(ce,Ft(A.createModifiersFromModifierFlags((ym(Kn)?8:0)|ru),Hf,Kn.flags&16777216?A.createToken(58):void 0,void 0,void 0),((Xu=Kn.declarations)==null?void 0:Xu.find(xo))||X1[0]&&X1[0].declaration||Kn.declarations&&Kn.declarations[0]);let Xh=[];for(let eh of X1){let Vy=rr(eh,Wn,ce,{name:Hf,questionToken:Kn.flags&16777216?A.createToken(58):void 0,modifiers:ru?A.createModifiersFromModifierFlags(ru):void 0}),JT=eh.declaration&&t4(eh.declaration.parent)?eh.declaration.parent:eh.declaration;Xh.push(l(ce,Vy,JT))}return Xh}return w.fail(`Unhandled class member kind! ${Kn.__debugFlags||Kn.flags}`)}}function jX(Ft,Wn){return mr(Ft,!1,Wn)}function wye(Ft,Wn,pi,li){let Kn=Bs(Wn,Ft);if(Ft===1){if(!pi&&Oi(Kn,Us=>Dr(Us.parameters)===0))return[];if(pi){let Us=Bs(pi,1);if(!Dr(Us)&&Oi(Kn,js=>Dr(js.parameters)===0))return[];if(Us.length===Kn.length){let js=!1;for(let ao=0;ao<Us.length;ao++)if(!t9(Kn[ao],Us[ao],!1,!1,!0,IR)){js=!0;break}if(!js)return[]}}let ia=0;for(let Us of Kn)Us.declaration&&(ia|=g2(Us.declaration,6));if(ia)return[l(ce,A.createConstructorDeclaration(A.createModifiersFromModifierFlags(ia),[],void 0),Kn[0].declaration)]}let uo=[];for(let ia of Kn){let Us=rr(ia,li,ce);uo.push(l(ce,Us,ia.declaration))}return uo}function x7e(Ft,Wn){let pi=[];for(let li of Mu(Ft)){if(Wn){let Kn=Uh(Wn,li.keyType);if(Kn&&$h(li.type,Kn.type))continue}pi.push(lr(li,ce,void 0))}return pi}function $ht(Ft,Wn,pi){let li=Iye(Ft,111551);if(li)return li;let Kn=K9(`${pi}_base`),uo=A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(Kn,void 0,W(Wn,ce))],2));return ni(uo,0),A.createExpressionWithTypeArguments(A.createIdentifier(Kn),void 0)}function Iye(Ft,Wn){let pi,li;if(Ft.target&&jv(Ft.target.symbol,Jr,Wn)?(pi=hr(Vo(Ft),Kn=>W(Kn,ce)),li=ll(Ft.target.symbol,ce,788968)):Ft.symbol&&jv(Ft.symbol,Jr,Wn)&&(li=ll(Ft.symbol,ce,788968)),li)return A.createExpressionWithTypeArguments(li,pi)}function Hht(Ft){let Wn=Iye(Ft,788968);if(Wn)return Wn;if(Ft.symbol)return A.createExpressionWithTypeArguments(ll(Ft.symbol,ce,788968),void 0)}function K9(Ft,Wn){var pi,li;let Kn=Wn?ua(Wn):void 0;if(Kn&&ce.remappedSymbolNames.has(Kn))return ce.remappedSymbolNames.get(Kn);Wn&&(Ft=C7e(Wn,Ft));let uo=0,ia=Ft;for(;(pi=ce.usedSymbolNames)!=null&&pi.has(Ft);)uo++,Ft=`${ia}_${uo}`;return(li=ce.usedSymbolNames)==null||li.add(Ft),Kn&&ce.remappedSymbolNames.set(Kn,Ft),Ft}function C7e(Ft,Wn){if(Wn==="default"||Wn==="__class"||Wn==="__function"){let pi=k(ce);ce.flags|=16777216;let li=M1(Ft,ce);pi(),Wn=li.length>0&&K6(li.charCodeAt(0))?rd(li):li}return Wn==="default"?Wn="_default":Wn==="export="&&(Wn="_exports"),Wn=$_(Wn,B)&&!d2(Wn)?Wn:"_"+Wn.replace(/[^a-z0-9]/gi,"_"),Wn}function Zg(Ft,Wn){let pi=ua(Ft);return ce.remappedSymbolNames.has(pi)?ce.remappedSymbolNames.get(pi):(Wn=C7e(Ft,Wn),ce.remappedSymbolNames.set(pi,Wn),Wn)}}}function N1(r,a,l=16384,f){return f?d(f).getText():Ow(d);function d(y){let k=VC(l)|70221824|512,R=xe.typePredicateToTypePredicateNode(r,a,k),W=qS(),J=a&&Fr(a);return W.writeNode(4,R,J,y),y}}function xj(r){let a=[],l=0;for(let f=0;f<r.length;f++){let d=r[f];if(l|=d.flags,!(d.flags&98304)){if(d.flags&1568){let y=d.flags&512?Ut:jQ(d);if(y.flags&1048576){let k=y.types.length;if(f+k<=r.length&&f_(r[f+k-1])===f_(y.types[k-1])){a.push(y),f+=k-1;continue}}}a.push(d)}}return l&65536&&a.push(jt),l&32768&&a.push(pe),a||r}function ST(r){return r===2?"private":r===4?"protected":"public"}function qC(r){if(r.symbol&&r.symbol.flags&2048&&r.symbol.declarations){let a=c4(r.symbol.declarations[0].parent);if(sd(a))return In(a)}}function oR(r){return r&&r.parent&&r.parent.kind===268&&mS(r.parent.parent)}function CD(r){return r.kind===307||e_(r)}function TT(r,a){let l=$i(r).nameType;if(l){if(l.flags&384){let f=""+l.value;return!$_(f,wa(F))&&!Sh(f)?`"${wg(f,34)}"`:Sh(f)&&Yi(f,"-")?`[${f}]`:f}if(l.flags&8192)return`[${M1(l.symbol,a)}]`}}function M1(r,a){var l;if((l=a?.remappedSymbolReferences)!=null&&l.has(ua(r))&&(r=a.remappedSymbolReferences.get(ua(r))),a&&r.escapedName==="default"&&!(a.flags&16384)&&(!(a.flags&16777216)||!r.declarations||a.enclosingDeclaration&&gr(r.declarations[0],CD)!==gr(a.enclosingDeclaration,CD)))return"default";if(r.declarations&&r.declarations.length){let d=po(r.declarations,k=>vs(k)?k:void 0),y=d&&vs(d);if(d&&y){if(qs(d)&&uk(d))return Oc(r);if(pa(y)&&!(kc(r)&4096)){let k=$i(r).nameType;if(k&&k.flags&384){let R=TT(r,a);if(R!==void 0)return R}}return Co(y)}if(d||(d=r.declarations[0]),d.parent&&d.parent.kind===260)return Co(d.parent.name);switch(d.kind){case 231:case 218:case 219:return a&&!a.encounteredError&&!(a.flags&131072)&&(a.encounteredError=!0),d.kind===231?"(Anonymous class)":"(Anonymous function)"}}let f=TT(r,a);return f!==void 0?f:Oc(r)}function Ay(r){if(r){let l=wn(r);return l.isVisible===void 0&&(l.isVisible=!!a()),l.isVisible}return!1;function a(){switch(r.kind){case 338:case 346:case 340:return!!(r.parent&&r.parent.parent&&r.parent.parent.parent&&Mi(r.parent.parent.parent));case 208:return Ay(r.parent.parent);case 260:if(Ws(r.name)&&!r.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(mS(r))return!0;let l=F1(r);return!(OX(r)&32)&&!(r.kind!==271&&l.kind!==307&&l.flags&33554432)?Zy(l):Ay(l);case 172:case 171:case 177:case 178:case 174:case 173:if(hf(r,6))return!1;case 176:case 180:case 179:case 181:case 169:case 268:case 184:case 185:case 187:case 183:case 188:case 189:case 192:case 193:case 196:case 202:return Ay(r.parent);case 273:case 274:case 276:return!1;case 168:case 307:case 270:return!0;case 277:return!1;default:return!1}}}function R1(r,a){let l;r.kind!==11&&r.parent&&r.parent.kind===277?l=_t(r,r,2998271,void 0,!1):r.parent.kind===281&&(l=zg(r.parent,2998271));let f,d;return l&&(d=new Set,d.add(ua(l)),y(l.declarations)),f;function y(k){or(k,R=>{let W=Nv(R)||R;if(a?wn(R).isVisible=!0:(f=f||[],Sp(f,W)),ck(R)){let J=R.moduleReference,Z=h_(J),ke=_t(R,Z.escapedText,901119,void 0,!1);ke&&d&&Qy(d,ua(ke))&&y(ke.declarations)}})}}function ag(r,a){let l=wD(r,a);if(l>=0){let{length:f}=Mg;for(let d=l;d<f;d++)Tv[d]=!1;return!1}return Mg.push(r),Tv.push(!0),Rg.push(a),!0}function wD(r,a){for(let l=Mg.length-1;l>=kv;l--){if(Cj(Mg[l],Rg[l]))return-1;if(Mg[l]===r&&Rg[l]===a)return l}return-1}function Cj(r,a){switch(a){case 0:return!!$i(r).type;case 2:return!!$i(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!!$i(r).writeType;case 8:return wn(r).parameterInitializerContainsUndefined!==void 0}return w.assertNever(a)}function og(){return Mg.pop(),Rg.pop(),Tv.pop()}function F1(r){return gr(Am(r),a=>{switch(a.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}}).parent}function iN(r){let a=Bo(rf(r));return a.typeParameters?Ny(a,hr(a.typeParameters,l=>Fe)):a}function ol(r,a){let l=ca(r,a);return l?an(l):void 0}function X(r,a){var l;let f;return ol(r,a)||(f=(l=XC(r,a))==null?void 0:l.type)&&Yl(f,!0,!0)}function Se(r){return r&&(r.flags&1)!==0}function We(r){return r===Ke||!!(r.flags&1&&r.aliasSymbol)}function wt(r,a){if(a!==0)return lm(r,!1,a);let l=In(r);return l&&$i(l).type||lm(r,!1,a)}function Yt(r,a,l){if(r=cl(r,W=>!(W.flags&98304)),r.flags&131072)return Oa;if(r.flags&1048576)return ac(r,W=>Yt(W,a,l));let f=ri(hr(a,My)),d=[],y=[];for(let W of so(r)){let J=ZC(W,8576);!Hs(J,f)&&!(Ap(W)&6)&&iK(W)?d.push(W):y.push(J)}if(vx(r)||bx(f)){if(y.length&&(f=ri([f,...y])),f.flags&131072)return r;let W=Bat();return W?OD(W,[r,f]):Ke}let k=ea();for(let W of d)k.set(W.escapedName,qme(W,!1));let R=tc(l,k,qe,qe,Mu(r));return R.objectFlags|=4194304,R}function wr(r){return!!(r.flags&465829888)&&zc(Su(r)||kt,32768)}function Un(r){let a=Vp(r,wr)?ac(r,l=>l.flags&465829888?ug(l):l):r;return Up(a,524288)}function Ei(r,a){let l=fi(r);return l?zy(l,a):a}function fi(r){let a=mi(r);if(a&&$w(a)&&a.flowNode){let l=es(r);if(l){let f=dt(Yb.createStringLiteral(l),r),d=M_(a)?a:Yb.createParenthesizedExpression(a),y=dt(Yb.createElementAccessExpression(d,f),r);return Xa(f,y),Xa(y,r),d!==a&&Xa(d,y),y.flowNode=a.flowNode,y}}}function mi(r){let a=r.parent.parent;switch(a.kind){case 208:case 303:return fi(a);case 209:return fi(r.parent);case 260:return a.initializer;case 226:return a.right}}function es(r){let a=r.parent;return r.kind===208&&a.kind===206?ho(r.propertyName||r.name):r.kind===303||r.kind===304?ho(r.name):""+a.elements.indexOf(r)}function ho(r){let a=My(r);return a.flags&384?""+a.value:void 0}function yo(r){let a=r.dotDotDotToken?32:0,l=wt(r.parent.parent,a);return l&&Ja(r,l,!1)}function Ja(r,a,l){if(Se(a))return a;let f=r.parent;te&&r.flags&33554432&&jb(r)?a=jy(a):te&&f.parent.initializer&&!mm(NRe(f.parent.initializer),65536)&&(a=Up(a,524288));let d=32|(l||ow(r)?16:0),y;if(f.kind===206)if(r.dotDotDotToken){if(a=Rd(a),a.flags&2||!y9(a))return $e(r,p.Rest_types_may_only_be_created_from_object_types),Ke;let k=[];for(let R of f.elements)R.dotDotDotToken||k.push(R.propertyName||R.name);y=Yt(a,k,r.symbol)}else{let k=r.propertyName||r.name,R=My(k),W=sf(a,R,d,k);y=Ei(r,W)}else{let k=Qv(65|(r.dotDotDotToken?0:128),a,pe,f),R=f.elements.indexOf(r);if(r.dotDotDotToken){let W=ac(a,J=>J.flags&58982400?ug(J):J);y=of(W,Pa)?ac(W,J=>mN(J,R)):Ru(k)}else if($v(a)){let W=Fd(R),J=db(a,W,d,r.name)||Ke;y=Ei(r,J)}else y=k}return r.initializer?pl(Kx(r))?te&&!mm(xN(r,0),16777216)?Un(y):y:zhe(r,ri([Un(y),xN(r,0)],2)):y}function Wp(r){let a=h0(r);if(a)return Fi(a)}function Gg(r){let a=Ka(r,!0);return a.kind===106||a.kind===80&&Hu(a)===le}function md(r){let a=Ka(r,!0);return a.kind===209&&a.elements.length===0}function Yl(r,a=!1,l=!0){return te&&l?yb(r,a):r}function lm(r,a,l){if(oi(r)&&r.parent.parent.kind===249){let k=_g(che(rs(r.parent.parent.expression,l)));return k.flags&4456448?d3e(k):ut}if(oi(r)&&r.parent.parent.kind===250){let k=r.parent.parent;return G9(k)||Fe}if(Ws(r.parent))return yo(r);let f=ds(r)&&!Em(r)||s_(r)||vie(r),d=a&&I2(r),y=O1(r);if(nz(r))return y?Se(y)||y===kt?y:Ke:H?kt:Fe;if(y)return Yl(y,f,d);if((de||un(r))&&oi(r)&&!Ws(r.name)&&!(OX(r)&32)&&!(r.flags&33554432)){if(!(zT(r)&6)&&(!r.initializer||Gg(r.initializer)))return St;if(r.initializer&&md(r.initializer))return Il}if(Bi(r)){if(!r.symbol)return;let k=r.parent;if(k.kind===178&&ND(k)){let J=Yo(In(r.parent),177);if(J){let Z=yp(J),ke=kye(k);return ke&&r===ke?(w.assert(!ke.type),an(Z.thisParameter)):Za(Z)}}let R=cat(k,r);if(R)return R;let W=r.symbol.escapedName==="this"?$ge(k):l8e(r);if(W)return Yl(W,!1,d)}if(ik(r)&&r.initializer){if(un(r)&&!Bi(r)){let R=_b(r,In(r),ZP(r));if(R)return R}let k=zhe(r,xN(r,l));return Yl(k,f,d)}if(ds(r)&&(de||un(r)))if(Tl(r)){let k=An(r.parent.members,Nc),R=k.length?ub(r.symbol,k):r_(r)&128?gK(r.symbol):void 0;return R&&Yl(R,!0,d)}else{let k=z4(r.parent),R=k?$C(r.symbol,k):r_(r)&128?gK(r.symbol):void 0;return R&&Yl(R,!0,d)}if(Bm(r))return it;if(Ws(r.name))return os(r.name,!1,!0)}function lb(r){if(r.valueDeclaration&&vn(r.valueDeclaration)){let a=$i(r);return a.isConstructorDeclaredProperty===void 0&&(a.isConstructorDeclaredProperty=!1,a.isConstructorDeclaredProperty=!!qa(r)&&Oi(r.declarations,l=>vn(l)&&zK(l)&&(l.left.kind!==212||tp(l.left.argumentExpression))&&!mn(void 0,l,r,l))),a.isConstructorDeclaredProperty}return!1}function cR(r){let a=r.valueDeclaration;return a&&ds(a)&&!pl(a)&&!a.initializer&&(de||un(a))}function qa(r){if(r.declarations)for(let a of r.declarations){let l=t_(a,!1,!1);if(l&&(l.kind===176||mg(l)))return l}}function Dl(r){let a=Fr(r.declarations[0]),l=Li(r.escapedName),f=r.declarations.every(y=>un(y)&&Oo(y)&&dh(y.expression)),d=f?A.createPropertyAccessExpression(A.createPropertyAccessExpression(A.createIdentifier("module"),A.createIdentifier("exports")),l):A.createPropertyAccessExpression(A.createIdentifier("exports"),l);return f&&Xa(d.expression.expression,d.expression),Xa(d.expression,d),Xa(d,a),d.flowNode=a.endFlowNode,zy(d,St,pe)}function ub(r,a){let l=Yi(r.escapedName,"__#")?A.createPrivateIdentifier(r.escapedName.split("@")[1]):Li(r.escapedName);for(let f of a){let d=A.createPropertyAccessExpression(A.createThis(),l);Xa(d.expression,d),Xa(d,f),d.flowNode=f.returnFlowNode;let y=ID(d,r);if(de&&(y===St||y===Il)&&$e(r.valueDeclaration,p.Member_0_implicitly_has_an_1_type,Qi(r),tn(y)),!of(y,S9))return r8(y)}}function $C(r,a){let l=Yi(r.escapedName,"__#")?A.createPrivateIdentifier(r.escapedName.split("@")[1]):Li(r.escapedName),f=A.createPropertyAccessExpression(A.createThis(),l);Xa(f.expression,f),Xa(f,a),f.flowNode=a.returnFlowNode;let d=ID(f,r);return de&&(d===St||d===Il)&&$e(r.valueDeclaration,p.Member_0_implicitly_has_an_1_type,Qi(r),tn(d)),of(d,S9)?void 0:r8(d)}function ID(r,a){let l=a?.valueDeclaration&&(!cR(a)||r_(a.valueDeclaration)&128)&&gK(a)||pe;return zy(r,St,l)}function G_(r,a){let l=c2(r.valueDeclaration);if(l){let R=un(l)?Pb(l):void 0;return R&&R.typeExpression?Fi(R.typeExpression):r.valueDeclaration&&_b(r.valueDeclaration,r,l)||U1(Ec(l))}let f,d=!1,y=!1;if(lb(r)&&(f=$C(r,qa(r))),!f){let R;if(r.declarations){let W;for(let J of r.declarations){let Z=vn(J)||qs(J)?J:Oo(J)?vn(J.parent)?J.parent:J:void 0;if(!Z)continue;let ke=Oo(Z)?e4(Z):Vc(Z);(ke===4||vn(Z)&&zK(Z,ke))&&(z(Z)?d=!0:y=!0),qs(Z)||(W=mn(W,Z,r,J)),W||(R||(R=[])).push(vn(Z)||qs(Z)?v(r,a,Z,ke):ar)}f=W}if(!f){if(!Dr(R))return Ke;let W=d&&r.declarations?fe(R,r.declarations):void 0;if(y){let Z=gK(r);Z&&((W||(W=[])).push(Z),d=!0)}let J=pt(W,Z=>!!(Z.flags&-98305))?W:R;f=ri(J)}}let k=Rf(Yl(f,!1,y&&!d));return r.valueDeclaration&&un(r.valueDeclaration)&&cl(k,R=>!!(R.flags&-98305))===ar?(V1(r.valueDeclaration,Fe),Fe):k}function _b(r,a,l){var f,d;if(!un(r)||!l||!Sa(l)||l.properties.length)return;let y=ea();for(;vn(r)||Nn(r);){let W=Vf(r);(f=W?.exports)!=null&&f.size&&eg(y,W.exports),r=vn(r)?r.parent:r.parent.parent}let k=Vf(r);(d=k?.exports)!=null&&d.size&&eg(y,k.exports);let R=tc(a,y,qe,qe,qe);return R.objectFlags|=4096,R}function mn(r,a,l,f){var d;let y=pl(a.parent);if(y){let k=Rf(Fi(y));if(r)!We(r)&&!We(k)&&!$h(r,k)&&hOe(void 0,r,f,k);else return k}if((d=l.parent)!=null&&d.valueDeclaration){let k=FC(l.parent);if(k.valueDeclaration){let R=pl(k.valueDeclaration);if(R){let W=ca(Fi(R),l.escapedName);if(W)return fb(W)}}}return r}function v(r,a,l,f){if(qs(l)){if(a)return an(a);let k=Ec(l.arguments[2]),R=ol(k,"value");if(R)return R;let W=ol(k,"get");if(W){let Z=Ex(W);if(Z)return Za(Z)}let J=ol(k,"set");if(J){let Z=Ex(J);if(Z)return Ehe(Z)}return Fe}if(P(l.left,l.right))return Fe;let d=f===1&&(Nn(l.left)||wo(l.left))&&(dh(l.left.expression)||je(l.left.expression)&&lk(l.left.expression)),y=a?an(a):d?f_(Ec(l.right)):U1(Ec(l.right));if(y.flags&524288&&f===2&&r.escapedName==="export="){let k=pm(y),R=ea();mF(k.members,R);let W=R.size;a&&!a.exports&&(a.exports=ea()),(a||r).exports.forEach((Z,ke)=>{var he;let Ze=R.get(ke);if(Ze&&Ze!==Z&&!(Z.flags&2097152))if(Z.flags&111551&&Ze.flags&111551){if(Z.valueDeclaration&&Ze.valueDeclaration&&Fr(Z.valueDeclaration)!==Fr(Ze.valueDeclaration)){let Ct=Li(Z.escapedName),lr=((he=Vn(Ze.valueDeclaration,Gl))==null?void 0:he.name)||Ze.valueDeclaration;Xs($e(Z.valueDeclaration,p.Duplicate_identifier_0,Ct),cn(lr,p._0_was_also_declared_here,Ct)),Xs($e(lr,p.Duplicate_identifier_0,Ct),cn(Z.valueDeclaration,p._0_was_also_declared_here,Ct))}let mt=da(Z.flags|Ze.flags,ke);mt.links.type=ri([an(Z),an(Ze)]),mt.valueDeclaration=Ze.valueDeclaration,mt.declarations=Ki(Ze.declarations,Z.declarations),R.set(ke,mt)}else R.set(ke,Zm(Z,Ze));else R.set(ke,Z)});let J=tc(W!==R.size?void 0:k.symbol,R,k.callSignatures,k.constructSignatures,k.indexInfos);if(W===R.size&&(y.aliasSymbol&&(J.aliasSymbol=y.aliasSymbol,J.aliasTypeArguments=y.aliasTypeArguments),Mn(y)&4)){J.aliasSymbol=y.symbol;let Z=Vo(y);J.aliasTypeArguments=Dr(Z)?Z:void 0}return J.objectFlags|=Lj([y])|Mn(y)&20608,J.symbol&&J.symbol.flags&32&&y===Bp(J.symbol)&&(J.objectFlags|=16777216),J}return yK(y)?(V1(l,wl),wl):y}function P(r,a){return Nn(r)&&r.expression.kind===110&&q2(a,l=>uu(r,l))}function z(r){let a=t_(r,!1,!1);return a.kind===176||a.kind===262||a.kind===218&&!t4(a.parent)}function fe(r,a){return w.assert(r.length===a.length),r.filter((l,f)=>{let d=a[f],y=vn(d)?d:vn(d.parent)?d.parent:void 0;return y&&z(y)})}function He(r,a,l){if(r.initializer){let f=Ws(r.name)?os(r.name,!0,!1):kt;return Yl(GFe(r,xN(r,0,f)))}return Ws(r.name)?os(r.name,a,l):(l&&!HC(r)&&V1(r,Fe),a?on:Fe)}function Zt(r,a,l){let f=ea(),d,y=131200;or(r.elements,R=>{let W=R.propertyName||R.name;if(R.dotDotDotToken){d=Vh(ut,Fe,!1);return}let J=My(W);if(!Ep(J)){y|=512;return}let Z=Np(J),ke=4|(R.initializer?16777216:0),he=da(ke,Z);he.links.type=He(R,a,l),f.set(he.escapedName,he)});let k=tc(void 0,f,qe,qe,d?[d]:qe);return k.objectFlags|=y,a&&(k.pattern=r,k.objectFlags|=131072),k}function kn(r,a,l){let f=r.elements,d=zo(f),y=d&&d.kind===208&&d.dotDotDotToken?d:void 0;if(f.length===0||f.length===1&&y)return B>=2?YMe(Fe):wl;let k=hr(f,Z=>Fl(Z)?Fe:He(Z,a,l)),R=k8(f,Z=>!(Z===y||Fl(Z)||ow(Z)),f.length-1)+1,W=hr(f,(Z,ke)=>Z===y?4:ke>=R?2:1),J=Hg(k,W);return a&&(J=AMe(J),J.pattern=r,J.objectFlags|=131072),J}function os(r,a=!1,l=!1){a&&Ls.push(r);let f=r.kind===206?Zt(r,a,l):kn(r,a,l);return a&&Ls.pop(),f}function no(r,a){return Ug(lm(r,!0,0),r,a)}function um(r){let a=wn(r);if(!a.resolvedType){let l=da(4096,"__importAttributes"),f=ea();or(r.elements,y=>{let k=da(4,GO(y));k.parent=l,k.links.type=$mt(y),k.links.target=k,f.set(k.escapedName,k)});let d=tc(l,f,qe,qe,qe);d.objectFlags|=262272,a.resolvedType=d}return a.resolvedType}function Jh(r){let a=Vf(r),l=wat(!1);return l&&a&&a===l}function Ug(r,a,l){return r?(r.flags&4096&&Jh(a.parent)&&(r=$me(a)),l&&wK(a,r),r.flags&8192&&(Da(a)||!a.type)&&r.symbol!==In(a)&&(r=Ot),Rf(r)):(r=Bi(a)&&a.dotDotDotToken?wl:Fe,l&&(HC(a)||V1(a,r)),r)}function HC(r){let a=Am(r),l=a.kind===169?a.parent:a;return L9(l)}function O1(r){let a=pl(r);if(a)return Fi(a)}function FQ(r){let a=r.valueDeclaration;return a?(Da(a)&&(a=Kx(a)),Bi(a)?lK(a.parent):!1):!1}function qde(r){let a=$i(r);if(!a.type){let l=$de(r);return!a.type&&!FQ(r)&&(a.type=l),l}return a.type}function $de(r){if(r.flags&4194304)return iN(r);if(r===Ne)return Fe;if(r.flags&134217728&&r.valueDeclaration){let f=In(Fr(r.valueDeclaration)),d=da(f.flags,"exports");d.declarations=f.declarations?f.declarations.slice():[],d.parent=r,d.links.target=f,f.valueDeclaration&&(d.valueDeclaration=f.valueDeclaration),f.members&&(d.members=new Map(f.members)),f.exports&&(d.exports=new Map(f.exports));let y=ea();return y.set("exports",d),tc(r,y,qe,qe,qe)}w.assertIsDefined(r.valueDeclaration);let a=r.valueDeclaration;if(Mi(a)&&wp(a))return a.statements.length?Rf(U1(rs(a.statements[0].expression))):Oa;if(T0(a))return aN(r);if(!ag(r,0))return r.flags&512&&!(r.flags&67108864)?oN(r):DD(r);let l;if(a.kind===277)l=Ug(O1(a)||Ec(a.expression),a);else if(vn(a)||un(a)&&(qs(a)||(Nn(a)||GF(a))&&vn(a.parent)))l=G_(r);else if(Nn(a)||wo(a)||je(a)||Ha(a)||L_(a)||gl(a)||jc(a)||xc(a)&&!ed(a)||xd(a)||Mi(a)){if(r.flags&9136)return oN(r);l=vn(a.parent)?G_(r):O1(a)||Fe}else if(hl(a))l=O1(a)||UFe(a);else if(Bm(a))l=O1(a)||x8e(a);else if(Eu(a))l=O1(a)||wN(a.name,0);else if(ed(a))l=O1(a)||VFe(a,0);else if(Bi(a)||ds(a)||s_(a)||oi(a)||Da(a)||LP(a))l=no(a,!0);else if(LS(a))l=oN(r);else if(_v(a))l=Ij(r);else return w.fail("Unhandled declaration kind! "+w.formatSyntaxKind(a.kind)+" for "+w.formatSymbol(r));return og()?l:r.flags&512&&!(r.flags&67108864)?oN(r):DD(r)}function px(r){if(r)switch(r.kind){case 177:return Wf(r);case 178:return Qz(r);case 172:return w.assert(Em(r)),pl(r)}}function sN(r){let a=px(r);return a&&Fi(a)}function Hde(r){let a=kye(r);return a&&a.symbol}function Qde(r){return W1(yp(r))}function aN(r){let a=$i(r);if(!a.type){if(!ag(r,0))return Ke;let l=Yo(r,177),f=Yo(r,178),d=Vn(Yo(r,172),N_),y=l&&un(l)&&Wp(l)||sN(l)||sN(f)||sN(d)||l&&l.body&&aX(l)||d&&no(d,!0);y||(f&&!L9(f)?im(de,f,p.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Qi(r)):l&&!L9(l)?im(de,l,p.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Qi(r)):d&&!L9(d)&&im(de,d,p.Member_0_implicitly_has_an_1_type,Qi(r),"any"),y=Fe),og()||(px(l)?$e(l,p._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Qi(r)):px(f)||px(d)?$e(f,p._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Qi(r)):l&&de&&$e(l,p._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,Qi(r)),y=Fe),a.type??(a.type=y)}return a.type}function OQ(r){let a=$i(r);if(!a.writeType){if(!ag(r,7))return Ke;let l=Yo(r,178)??Vn(Yo(r,172),N_),f=sN(l);og()||(px(l)&&$e(l,p._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Qi(r)),f=Fe),a.writeType??(a.writeType=f||aN(r))}return a.writeType}function wj(r){let a=Qa(Bp(r));return a.flags&8650752?a:a.flags&2097152?On(a.types,l=>!!(l.flags&8650752)):void 0}function oN(r){let a=$i(r),l=a;if(!a.type){let f=r.valueDeclaration&&iX(r.valueDeclaration,!1);if(f){let d=xhe(r,f);d&&(r=d,a=d.links)}l.type=a.type=QC(r)}return a.type}function QC(r){let a=r.valueDeclaration;if(r.flags&1536&&M6(r))return Fe;if(a&&(a.kind===226||Oo(a)&&a.parent.kind===226))return G_(r);if(r.flags&512&&a&&Mi(a)&&a.commonJsModuleIndicator){let f=J_(r);if(f!==r){if(!ag(r,0))return Ke;let d=Va(r.exports.get("export=")),y=G_(d,d===f?void 0:f);return og()?y:DD(r)}}let l=_r(16,r);if(r.flags&32){let f=wj(r);return f?ma([l,f]):l}else return te&&r.flags&16777216?yb(l,!0):l}function Ij(r){let a=$i(r);return a.type||(a.type=G4e(r))}function Kde(r){let a=$i(r);if(!a.type){if(!ag(r,0))return Ke;let l=al(r),f=r.declarations&&T1(dp(r),!0),d=po(f?.declarations,y=>Ho(y)?O1(y):void 0);if(a.type??(a.type=f?.declarations&&IX(f.declarations)&&r.declarations.length?Dl(f):IX(r.declarations)?St:d||(Ef(l)&111551?an(l):Ke)),!og())return DD(f??r),a.type??(a.type=Ke)}return a.type}function Xde(r){let a=$i(r);return a.type||(a.type=Hi(an(a.target),a.mapper))}function Dj(r){let a=$i(r);return a.writeType||(a.writeType=Hi(Wv(a.target),a.mapper))}function DD(r){let a=r.valueDeclaration;if(a){if(pl(a))return $e(r.valueDeclaration,p._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Qi(r)),Ke;de&&(a.kind!==169||a.initializer)&&$e(r.valueDeclaration,p._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Qi(r))}else if(r.flags&2097152){let l=dp(r);l&&$e(l,p.Circular_definition_of_import_alias_0,Qi(r))}return Fe}function Pj(r){let a=$i(r);return a.type||(w.assertIsDefined(a.deferralParent),w.assertIsDefined(a.deferralConstituents),a.type=a.deferralParent.flags&1048576?ri(a.deferralConstituents):ma(a.deferralConstituents)),a.type}function Yde(r){let a=$i(r);return!a.writeType&&a.deferralWriteConstituents&&(w.assertIsDefined(a.deferralParent),w.assertIsDefined(a.deferralConstituents),a.writeType=a.deferralParent.flags&1048576?ri(a.deferralWriteConstituents):ma(a.deferralWriteConstituents)),a.writeType}function Wv(r){let a=kc(r);return r.flags&4?a&2?a&65536?Yde(r)||Pj(r):r.links.writeType||r.links.type:Wy(an(r),!!(r.flags&16777216)):r.flags&98304?a&1?Dj(r):OQ(r):an(r)}function an(r){let a=kc(r);return a&65536?Pj(r):a&1?Xde(r):a&262144?Gst(r):a&8192?clt(r):r.flags&7?qde(r):r.flags&9136?oN(r):r.flags&8?Ij(r):r.flags&98304?aN(r):r.flags&2097152?Kde(r):Ke}function fb(r){return Wy(an(r),!!(r.flags&16777216))}function lR(r,a){if(r===void 0||(Mn(r)&4)===0)return!1;for(let l of a)if(r.target===l)return!0;return!1}function cg(r,a){return r!==void 0&&a!==void 0&&(Mn(r)&4)!==0&&r.target===a}function PD(r){return Mn(r)&4?r.target:r}function AD(r,a){return l(r);function l(f){if(Mn(f)&7){let d=PD(f);return d===a||pt(Pl(d),l)}else if(f.flags&2097152)return pt(f.types,l);return!1}}function uR(r,a){for(let l of a)r=Zh(r,kT(In(l)));return r}function Bv(r,a){for(;;){if(r=r.parent,r&&vn(r)){let f=Vc(r);if(f===6||f===3){let d=In(r.left);d&&d.parent&&!gr(d.parent.valueDeclaration,y=>r===y)&&(r=d.parent.valueDeclaration)}}if(!r)return;let l=r.kind;switch(l){case 263:case 231:case 264:case 179:case 180:case 173:case 184:case 185:case 317:case 262:case 174:case 218:case 219:case 265:case 345:case 346:case 340:case 338:case 200:case 194:{let d=Bv(r,a);if((l===218||l===219||ed(r))&&vp(r)){let R=_l(Bs(an(In(r)),0));if(R&&R.typeParameters)return[...d||qe,...R.typeParameters]}if(l===200)return jr(d,kT(In(r.typeParameter)));if(l===194)return Ki(d,Gme(r));let y=uR(d,y0(r)),k=a&&(l===263||l===231||l===264||mg(r))&&Bp(In(r)).thisType;return k?jr(y,k):y}case 341:let f=o4(r);f&&(r=f.valueDeclaration);break;case 320:{let d=Bv(r,a);return r.tags?uR(d,ga(r.tags,y=>ad(y)?y.typeParameters:void 0)):d}}}}function LQ(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===264)return!0;if(f.kind!==260)return!1;let d=f.initializer;return!!d&&(d.kind===218||d.kind===219)});return w.assert(!!l,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Bv(l)}function Md(r){if(!r.declarations)return;let a;for(let l of r.declarations)(l.kind===264||l.kind===263||l.kind===231||mg(l)||s4(l))&&(a=uR(a,y0(l)));return a}function Wr(r){return Ki(LQ(r),Md(r))}function Fn(r){let a=Bs(r,1);if(a.length===1){let l=a[0];if(!l.typeParameters&&l.parameters.length===1&&Gu(l)){let f=P9(l.parameters[0]);return Se(f)||n9(f)===Fe}}return!1}function Jn(r){if(Bs(r,1).length>0)return!0;if(r.flags&8650752){let a=Su(r);return!!a&&Fn(a)}return!1}function vi(r){let a=_y(r.symbol);return a&&Dm(a)}function Si(r,a,l){let f=Dr(a),d=un(l);return An(Bs(r,1),y=>(d||f>=$g(y.typeParameters))&&f<=Dr(y.typeParameters))}function $a(r,a,l){let f=Si(r,a,l),d=hr(a,Fi);return ul(f,y=>pt(y.typeParameters)?vR(y,d,un(l)):y)}function Qa(r){if(!r.resolvedBaseConstructorType){let a=_y(r.symbol),l=a&&Dm(a),f=vi(r);if(!f)return r.resolvedBaseConstructorType=pe;if(!ag(r,1))return Ke;let d=rs(f.expression);if(l&&f!==l&&(w.assert(!l.typeArguments),rs(l.expression)),d.flags&2621440&&pm(d),!og())return $e(r.symbol.valueDeclaration,p._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Qi(r.symbol)),r.resolvedBaseConstructorType??(r.resolvedBaseConstructorType=Ke);if(!(d.flags&1)&&d!==we&&!Jn(d)){let y=$e(f.expression,p.Type_0_is_not_a_constructor_function_type,tn(d));if(d.flags&262144){let k=fN(d),R=kt;if(k){let W=Bs(k,1);W[0]&&(R=Za(W[0]))}d.symbol.declarations&&Xs(y,cn(d.symbol.declarations[0],p.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Qi(d.symbol),tn(R)))}return r.resolvedBaseConstructorType??(r.resolvedBaseConstructorType=Ke)}r.resolvedBaseConstructorType??(r.resolvedBaseConstructorType=d)}return r.resolvedBaseConstructorType}function Nu(r){let a=qe;if(r.symbol.declarations)for(let l of r.symbol.declarations){let f=Qw(l);if(f)for(let d of f){let y=Fi(d);We(y)||(a===qe?a=[y]:a.push(y))}}return a}function lg(r,a){$e(r,p.Type_0_recursively_references_itself_as_a_base_type,tn(a,void 0,2))}function Pl(r){if(!r.baseTypesResolved){if(ag(r,6)&&(r.objectFlags&8?r.resolvedBaseTypes=[_m(r)]:r.symbol.flags&96?(r.symbol.flags&32&&zv(r),r.symbol.flags&64&&fR(r)):w.fail("type must be class or interface"),!og()&&r.symbol.declarations))for(let a of r.symbol.declarations)(a.kind===263||a.kind===264)&&lg(a,r);r.baseTypesResolved=!0}return r.resolvedBaseTypes}function _m(r){let a=ul(r.typeParameters,(l,f)=>r.elementFlags[f]&8?sf(l,Qt):l);return Ru(ri(a||qe),r.readonly)}function zv(r){r.resolvedBaseTypes=$B;let a=__(Qa(r));if(!(a.flags&2621441))return r.resolvedBaseTypes=qe;let l=vi(r),f,d=a.symbol?Bo(a.symbol):void 0;if(a.symbol&&a.symbol.flags&32&&_R(d))f=EMe(l,a.symbol);else if(a.flags&1)f=a;else{let k=$a(a,l.typeArguments,l);if(!k.length)return $e(l.expression,p.No_base_constructor_has_the_specified_number_of_type_arguments),r.resolvedBaseTypes=qe;f=Za(k[0])}if(We(f))return r.resolvedBaseTypes=qe;let y=Rd(f);if(!L1(y)){let k=_me(void 0,f),R=Ps(k,p.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,tn(y));return za.add(fh(Fr(l.expression),l.expression,R)),r.resolvedBaseTypes=qe}return r===y||AD(y,r)?($e(r.symbol.valueDeclaration,p.Type_0_recursively_references_itself_as_a_base_type,tn(r,void 0,2)),r.resolvedBaseTypes=qe):(r.resolvedBaseTypes===$B&&(r.members=void 0),r.resolvedBaseTypes=[y])}function _R(r){let a=r.outerTypeParameters;if(a){let l=a.length-1,f=Vo(r);return a[l].symbol!==f[l].symbol}return!0}function L1(r){if(r.flags&262144){let a=Su(r);if(a)return L1(a)}return!!(r.flags&67633153&&!U_(r)||r.flags&2097152&&Oi(r.types,L1))}function fR(r){if(r.resolvedBaseTypes=r.resolvedBaseTypes||qe,r.symbol.declarations){for(let a of r.symbol.declarations)if(a.kind===264&&iA(a))for(let l of iA(a)){let f=Rd(Fi(l));We(f)||(L1(f)?r!==f&&!AD(f,r)?r.resolvedBaseTypes===qe?r.resolvedBaseTypes=[f]:r.resolvedBaseTypes.push(f):lg(a,r):$e(l,p.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function yst(r){if(!r.declarations)return!0;for(let a of r.declarations)if(a.kind===264){if(a.flags&256)return!1;let l=iA(a);if(l){for(let f of l)if(mo(f.expression)){let d=Ac(f.expression,788968,!0);if(!d||!(d.flags&64)||Bp(d).thisType)return!1}}}return!0}function Bp(r){let a=$i(r),l=a;if(!a.declaredType){let f=r.flags&32?1:2,d=xhe(r,r.valueDeclaration&&hft(r.valueDeclaration));d&&(r=d,a=d.links);let y=l.declaredType=a.declaredType=_r(f,r),k=LQ(r),R=Md(r);(k||R||f===1||!yst(r))&&(y.objectFlags|=4,y.typeParameters=Ki(k,R),y.outerTypeParameters=k,y.localTypeParameters=R,y.instantiations=new Map,y.instantiations.set(gd(y.typeParameters),y),y.target=y,y.resolvedTypeArguments=y.typeParameters,y.thisType=wi(r),y.thisType.isThisType=!0,y.thisType.constraint=y)}return a.declaredType}function B4e(r){var a;let l=$i(r);if(!l.declaredType){if(!ag(r,2))return Ke;let f=w.checkDefined((a=r.declarations)==null?void 0:a.find(s4),"Type alias symbol with no valid declaration found"),d=td(f)?f.typeExpression:f.type,y=d?Fi(d):Ke;if(og()){let k=Md(r);k&&(l.typeParameters=k,l.instantiations=new Map,l.instantiations.set(gd(k),y)),y===Pe&&r.escapedName==="BuiltinIteratorReturn"&&(y=Ime())}else y=Ke,f.kind===340?$e(f.typeExpression.type,p.Type_alias_0_circularly_references_itself,Qi(r)):$e(Gl(f)&&f.name||f,p.Type_alias_0_circularly_references_itself,Qi(r));l.declaredType??(l.declaredType=y)}return l.declaredType}function jQ(r){return r.flags&1056&&r.symbol.flags&8?Bo(rf(r.symbol)):r}function z4e(r){let a=$i(r);if(!a.declaredType){let l=[];if(r.declarations){for(let d of r.declarations)if(d.kind===266){for(let y of d.members)if(ND(y)){let k=In(y),R=Mx(y).value,W=rw(R!==void 0?Jot(R,ua(r),k):J4e(k));$i(k).declaredType=W,l.push(f_(W))}}}let f=l.length?ri(l,1,r,void 0):J4e(r);f.flags&1048576&&(f.flags|=1024,f.symbol=r),a.declaredType=f}return a.declaredType}function J4e(r){let a=zh(32,r),l=zh(32,r);return a.regularType=a,a.freshType=l,l.regularType=a,l.freshType=l,a}function G4e(r){let a=$i(r);if(!a.declaredType){let l=z4e(rf(r));a.declaredType||(a.declaredType=l)}return a.declaredType}function kT(r){let a=$i(r);return a.declaredType||(a.declaredType=wi(r))}function vst(r){let a=$i(r);return a.declaredType||(a.declaredType=Bo(al(r)))}function Bo(r){return U4e(r)||Ke}function U4e(r){if(r.flags&96)return Bp(r);if(r.flags&524288)return B4e(r);if(r.flags&262144)return kT(r);if(r.flags&384)return z4e(r);if(r.flags&8)return G4e(r);if(r.flags&2097152)return vst(r)}function Aj(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 201:return!0;case 188:return Aj(r.elementType);case 183:return!r.typeArguments||r.typeArguments.every(Aj)}return!1}function bst(r){let a=Aw(r);return!a||Aj(a)}function V4e(r){let a=pl(r);return a?Aj(a):!Yy(r)}function Sst(r){let a=Wf(r),l=y0(r);return(r.kind===176||!!a&&Aj(a))&&r.parameters.every(V4e)&&l.every(bst)}function Tst(r){if(r.declarations&&r.declarations.length===1){let a=r.declarations[0];if(a)switch(a.kind){case 172:case 171:return V4e(a);case 174:case 173:case 176:case 177:case 178:return Sst(a)}}return!1}function q4e(r,a,l){let f=ea();for(let d of r)f.set(d.escapedName,l&&Tst(d)?d:Xme(d,a));return f}function $4e(r,a){for(let l of a){if(H4e(l))continue;let f=r.get(l.escapedName);(!f||f.valueDeclaration&&vn(f.valueDeclaration)&&!lb(f)&&!Gte(f.valueDeclaration))&&(r.set(l.escapedName,l),r.set(l.escapedName,l))}}function H4e(r){return!!r.valueDeclaration&&Zu(r.valueDeclaration)&&Ks(r.valueDeclaration)}function Zde(r){if(!r.declaredProperties){let a=r.symbol,l=Vg(a);r.declaredProperties=Ss(l),r.declaredCallSignatures=qe,r.declaredConstructSignatures=qe,r.declaredIndexInfos=qe,r.declaredCallSignatures=IT(l.get("__call")),r.declaredConstructSignatures=IT(l.get("__new")),r.declaredIndexInfos=IMe(a)}return r}function eme(r){return K4e(r)&&Ep(pa(r)?Od(r):Ec(r.argumentExpression))}function Q4e(r){return K4e(r)&&kst(pa(r)?Od(r):Ec(r.argumentExpression))}function K4e(r){if(!pa(r)&&!wo(r))return!1;let a=pa(r)?r.expression:r.argumentExpression;return mo(a)}function kst(r){return Hs(r,si)}function pR(r){return r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)===64}function ED(r){let a=vs(r);return!!a&&eme(a)}function X4e(r){let a=vs(r);return!!a&&Q4e(a)}function ND(r){return!oy(r)||ED(r)}function Y4e(r){return KF(r)&&!eme(r)}function xst(r,a,l){w.assert(!!(kc(r)&4096),"Expected a late-bound symbol."),r.flags|=l,$i(a.symbol).lateSymbol=r,r.declarations?a.symbol.isReplaceableByMethod||r.declarations.push(a):r.declarations=[a],l&111551&&(!r.valueDeclaration||r.valueDeclaration.kind!==a.kind)&&(r.valueDeclaration=a)}function Z4e(r,a,l,f){w.assert(!!f.symbol,"The member is expected to have a symbol.");let d=wn(f);if(!d.resolvedSymbol){d.resolvedSymbol=f.symbol;let y=vn(f)?f.left:f.name,k=wo(y)?Ec(y.argumentExpression):Od(y);if(Ep(k)){let R=Np(k),W=f.symbol.flags,J=l.get(R);J||l.set(R,J=da(0,R,4096));let Z=a&&a.get(R);if(!(r.flags&32)&&J.flags&Oh(W)){let ke=Z?Ki(Z.declarations,J.declarations):J.declarations,he=!(k.flags&8192)&&Li(R)||Co(y);or(ke,Ze=>$e(vs(Ze)||Ze,p.Property_0_was_also_declared_here,he)),$e(y||f,p.Duplicate_property_0,he),J=da(0,R,4096)}return J.links.nameType=k,xst(J,f,W),J.parent?w.assert(J.parent===r,"Existing symbol parent should match new one"):J.parent=r,d.resolvedSymbol=J}}return d.resolvedSymbol}function Cst(r,a,l,f){let d=l.get("__index");if(!d){let y=a?.get("__index");y?(d=y1(y),d.links.checkFlags|=4096):d=da(0,"__index",4096),l.set("__index",d)}d.declarations?f.symbol.isReplaceableByMethod||d.declarations.push(f):d.declarations=[f]}function tme(r,a){let l=$i(r);if(!l[a]){let f=a==="resolvedExports",d=f?r.flags&1536?D1(r).exports:r.exports:r.members;l[a]=d||E;let y=ea();for(let W of r.declarations||qe){let J=Ote(W);if(J)for(let Z of J)f===Tl(Z)&&(ED(Z)?Z4e(r,d,y,Z):X4e(Z)&&Cst(r,d,y,Z))}let k=FC(r).assignmentDeclarationMembers;if(k){let W=ps(k.values());for(let J of W){let Z=Vc(J),ke=Z===3||vn(J)&&zK(J,Z)||Z===9||Z===6;f===!ke&&ED(J)&&Z4e(r,d,y,J)}}let R=Av(d,y);if(r.flags&33554432&&l.cjsExportMerged&&r.declarations)for(let W of r.declarations){let J=$i(W.symbol)[a];if(!R){R=J;continue}J&&J.forEach((Z,ke)=>{let he=R.get(ke);if(!he)R.set(ke,Z);else{if(he===Z)return;R.set(ke,Zm(he,Z))}})}l[a]=R||E}return l[a]}function Vg(r){return r.flags&6256?tme(r,"resolvedMembers"):r.members||E}function WQ(r){if(r.flags&106500&&r.escapedName==="__computed"){let a=$i(r);if(!a.lateSymbol&&pt(r.declarations,ED)){let l=Va(r.parent);pt(r.declarations,Tl)?Nf(l):Vg(l)}return a.lateSymbol||(a.lateSymbol=r)}return r}function Mf(r,a,l){if(Mn(r)&4){let f=r.target,d=Vo(r);return Dr(f.typeParameters)===Dr(d)?Ny(f,Ki(d,[a||f.thisType])):r}else if(r.flags&2097152){let f=ul(r.types,d=>Mf(d,a,l));return f!==r.types?ma(f):r}return l?__(r):r}function eMe(r,a,l,f){let d,y,k,R,W;wW(l,f,0,l.length)?(y=a.symbol?Vg(a.symbol):ea(a.declaredProperties),k=a.declaredCallSignatures,R=a.declaredConstructSignatures,W=a.declaredIndexInfos):(d=af(l,f),y=q4e(a.declaredProperties,d,l.length===1),k=aK(a.declaredCallSignatures,d),R=aK(a.declaredConstructSignatures,d),W=E3e(a.declaredIndexInfos,d));let J=Pl(a);if(J.length){if(a.symbol&&y===Vg(a.symbol)){let ke=ea(a.declaredProperties),he=UQ(a.symbol);he&&ke.set("__index",he),y=ke}vc(r,y,k,R,W);let Z=zo(f);for(let ke of J){let he=Z?Mf(Hi(ke,d),Z):ke;$4e(y,so(he)),k=Ki(k,Bs(he,0)),R=Ki(R,Bs(he,1));let Ze=he!==Fe?Mu(he):[Ai];W=Ki(W,An(Ze,mt=>!uN(W,mt.keyType)))}}vc(r,y,k,R,W)}function wst(r){eMe(r,Zde(r),qe,qe)}function Ist(r){let a=Zde(r.target),l=Ki(a.typeParameters,[a.thisType]),f=Vo(r),d=f.length===l.length?f:Ki(f,[r]);eMe(r,a,l,d)}function Gh(r,a,l,f,d,y,k,R){let W=new _(Hr,R);return W.declaration=r,W.typeParameters=a,W.parameters=f,W.thisParameter=l,W.resolvedReturnType=d,W.resolvedTypePredicate=y,W.minArgumentCount=k,W.resolvedMinArgumentCount=void 0,W.target=void 0,W.mapper=void 0,W.compositeSignatures=void 0,W.compositeKind=void 0,W}function dR(r){let a=Gh(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 tMe(r,a){let l=dR(r);return l.compositeSignatures=a,l.compositeKind=1048576,l.target=void 0,l.mapper=void 0,l}function Dst(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]=Pst(r,a))}function Pst(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=dR(r);return l.flags|=a,l}function rMe(r,a){if(Gu(r)){let d=r.parameters.length-1,y=r.parameters[d],k=an(y);if(Pa(k))return[l(k,d,y)];if(!a&&k.flags&1048576&&Oi(k.types,Pa))return hr(k.types,R=>l(R,d,y))}return[r.parameters];function l(d,y,k){let R=Vo(d),W=f(d,k),J=hr(R,(Z,ke)=>{let he=W&&W[ke]?W[ke]:kN(r,y+ke,d),Ze=d.target.elementFlags[ke],mt=Ze&12?32768:Ze&2?16384:0,Ct=da(1,he,mt);return Ct.links.type=Ze&4?Ru(Z):Z,Ct});return Ki(r.parameters.slice(0,y),J)}function f(d,y){let k=hr(d.target.labeledElementDeclarations,(R,W)=>Ahe(R,W,d.target.elementFlags[W],y));if(k){let R=[],W=new Set;for(let Z=0;Z<k.length;Z++){let ke=k[Z];Qy(W,ke)||R.push(Z)}let J=new Map;for(let Z of R){let ke=J.get(k[Z])??1,he;for(;!Qy(W,he=`${k[Z]}_${ke}`);)ke++;k[Z]=he,J.set(k[Z],ke+1)}}return k}}function Ast(r){let a=Qa(r),l=Bs(a,1),f=_y(r.symbol),d=!!f&&ei(f,64);if(l.length===0)return[Gh(void 0,r.localTypeParameters,void 0,qe,r,void 0,0,d?4:0)];let y=vi(r),k=un(y),R=jj(y),W=Dr(R),J=[];for(let Z of l){let ke=$g(Z.typeParameters),he=Dr(Z.typeParameters);if(k||W>=ke&&W<=he){let Ze=he?GQ(Z,Uv(R,Z.typeParameters,ke,k)):dR(Z);Ze.typeParameters=r.localTypeParameters,Ze.resolvedReturnType=r,Ze.flags=d?Ze.flags|4:Ze.flags&-5,J.push(Ze)}}return J}function BQ(r,a,l,f,d){for(let y of r)if(t9(y,a,l,f,d,l?act:IR))return y}function Est(r,a,l){if(a.typeParameters){if(l>0)return;for(let d=1;d<r.length;d++)if(!BQ(r[d],a,!1,!1,!1))return;return[a]}let f;for(let d=0;d<r.length;d++){let y=d===l?a:BQ(r[d],a,!1,!1,!0)||BQ(r[d],a,!0,!1,!0);if(!y)return;f=Zh(f,y)}return f}function rme(r){let a,l;for(let f=0;f<r.length;f++){if(r[f].length===0)return qe;r[f].length>1&&(l=l===void 0?f:-1);for(let d of r[f])if(!a||!BQ(a,d,!1,!1,!0)){let y=Est(r,d,f);if(y){let k=d;if(y.length>1){let R=d.thisParameter,W=or(y,J=>J.thisParameter);if(W){let J=ma(Vi(y,Z=>Z.thisParameter&&an(Z.thisParameter)));R=kx(W,J)}k=tMe(d,y),k.thisParameter=R}(a||(a=[])).push(k)}}}if(!Dr(a)&&l!==-1){let f=r[l!==void 0?l:0],d=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"),d=k.typeParameters&&pt(d,R=>!!R.typeParameters&&!nMe(k.typeParameters,R.typeParameters))?void 0:hr(d,R=>Rst(R,k)),!d)break}a=d}return a||qe}function nMe(r,a){if(Dr(r)!==Dr(a))return!1;if(!r||!a)return!0;let l=af(a,r);for(let f=0;f<r.length;f++){let d=r[f],y=a[f];if(d!==y&&!$h(fN(d)||kt,Hi(fN(y)||kt,l)))return!1}return!0}function Nst(r,a,l){if(!r||!a)return r||a;let f=ma([an(r),Hi(an(a),l)]);return kx(r,f)}function Mst(r,a,l){let f=cf(r),d=cf(a),y=f>=d?r:a,k=y===r?a:r,R=y===r?f:d,W=Xg(r)||Xg(a),J=W&&!Xg(y),Z=new Array(R+(J?1:0));for(let ke=0;ke<R;ke++){let he=WT(y,ke);y===a&&(he=Hi(he,l));let Ze=WT(k,ke)||kt;k===a&&(Ze=Hi(Ze,l));let mt=ma([he,Ze]),Ct=W&&!J&&ke===R-1,lr=ke>=hm(y)&&ke>=hm(k),rr=ke>=f?void 0:kN(r,ke),rn=ke>=d?void 0:kN(a,ke),Kr=rr===rn?rr:rr?rn?void 0:rr:rn,pr=da(1|(lr&&!Ct?16777216:0),Kr||`arg${ke}`,Ct?32768:lr?16384:0);pr.links.type=Ct?Ru(mt):mt,Z[ke]=pr}if(J){let ke=da(1,"args",32768);ke.links.type=Ru(gm(k,R)),k===a&&(ke.links.type=Hi(ke.links.type,l)),Z[R]=ke}return Z}function Rst(r,a){let l=r.typeParameters||a.typeParameters,f;r.typeParameters&&a.typeParameters&&(f=af(a.typeParameters,r.typeParameters));let d=(r.flags|a.flags)&166,y=r.declaration,k=Mst(r,a,f),R=zo(k);R&&kc(R)&32768&&(d|=1);let W=Nst(r.thisParameter,a.thisParameter,f),J=Math.max(r.minArgumentCount,a.minArgumentCount),Z=Gh(y,l,W,k,void 0,void 0,J,d);return Z.compositeKind=1048576,Z.compositeSignatures=Ki(r.compositeKind!==2097152&&r.compositeSignatures||[r],[a]),f?Z.mapper=r.compositeKind!==2097152&&r.mapper&&r.compositeSignatures?NT(r.mapper,f):f:r.compositeKind!==2097152&&r.mapper&&r.compositeSignatures&&(Z.mapper=r.mapper),Z}function iMe(r){let a=Mu(r[0]);if(a){let l=[];for(let f of a){let d=f.keyType;Oi(r,y=>!!Uh(y,d))&&l.push(Vh(d,ri(hr(r,y=>j1(y,d))),pt(r,y=>Uh(y,d).isReadonly)))}return l}return qe}function Fst(r){let a=rme(hr(r.types,d=>d===Wt?[Hn]:Bs(d,0))),l=rme(hr(r.types,d=>Bs(d,1))),f=iMe(r.types);vc(r,E,a,l,f)}function Ej(r,a){return r?a?ma([r,a]):r:a}function sMe(r){let a=Hy(r,f=>Bs(f,1).length>0),l=hr(r,Fn);if(a>0&&a===Hy(l,f=>f)){let f=l.indexOf(!0);l[f]=!1}return l}function Ost(r,a,l,f){let d=[];for(let y=0;y<a.length;y++)y===f?d.push(r):l[y]&&d.push(Za(Bs(a[y],1)[0]));return ma(d)}function Lst(r){let a,l,f,d=r.types,y=sMe(d),k=Hy(y,R=>R);for(let R=0;R<d.length;R++){let W=r.types[R];if(!y[R]){let J=Bs(W,1);J.length&&k>0&&(J=hr(J,Z=>{let ke=dR(Z);return ke.resolvedReturnType=Ost(Za(Z),d,y,R),ke})),l=aMe(l,J)}a=aMe(a,Bs(W,0)),f=d_(Mu(W),(J,Z)=>oMe(J,Z,!1),f)}vc(r,E,a||qe,l||qe,f||qe)}function aMe(r,a){for(let l of a)(!r||Oi(r,f=>!t9(f,l,!1,!1,!1,IR)))&&(r=jr(r,l));return r}function oMe(r,a,l){if(r)for(let f=0;f<r.length;f++){let d=r[f];if(d.keyType===a.keyType)return r[f]=Vh(d.keyType,l?ri([d.type,a.type]):ma([d.type,a.type]),l?d.isReadonly||a.isReadonly:d.isReadonly&&a.isReadonly),r}return jr(r,a)}function jst(r){if(r.target){vc(r,E,qe,qe,qe);let k=q4e(Gv(r.target),r.mapper,!1),R=aK(Bs(r.target,0),r.mapper),W=aK(Bs(r.target,1),r.mapper),J=E3e(Mu(r.target),r.mapper);vc(r,k,R,W,J);return}let a=Va(r.symbol);if(a.flags&2048){vc(r,E,qe,qe,qe);let k=Vg(a),R=IT(k.get("__call")),W=IT(k.get("__new")),J=IMe(a);vc(r,k,R,W,J);return}let l=Nf(a),f;if(a===Je){let k=new Map;l.forEach(R=>{var W;!(R.flags&418)&&!(R.flags&512&&((W=R.declarations)!=null&&W.length)&&Oi(R.declarations,e_))&&k.set(R.escapedName,R)}),l=k}let d;if(vc(r,l,qe,qe,qe),a.flags&32){let k=Bp(a),R=Qa(k);R.flags&11272192?(l=ea(w_(l)),$4e(l,so(R))):R===Fe&&(d=Ai)}let y=VQ(l);if(y?f=qQ(y,ps(l.values())):(d&&(f=jr(f,d)),a.flags&384&&(Bo(a).flags&32||pt(r.properties,k=>!!(an(k).flags&296)))&&(f=jr(f,Ci))),vc(r,l,qe,qe,f||qe),a.flags&8208&&(r.callSignatures=IT(a)),a.flags&32){let k=Bp(a),R=a.members?IT(a.members.get("__constructor")):qe;a.flags&16&&(R=jn(R.slice(),Vi(r.callSignatures,W=>mg(W.declaration)?Gh(W.declaration,W.typeParameters,W.thisParameter,W.parameters,k,void 0,W.minArgumentCount,W.flags&167):void 0))),R.length||(R=Ast(k)),r.constructSignatures=R}}function Wst(r,a,l){return Hi(r,af([a.indexType,a.objectType],[Fd(0),Hg([l])]))}function Bst(r){let a=hp(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(d=>d!==r.constraintType));return f!==ar?f:void 0}function zst(r){let a=Uh(r.source,ut),l=qg(r.mappedType),f=!(l&1),d=l&4?0:16777216,y=a?[Vh(ut,DK(a.type,r.mappedType,r.constraintType)||kt,f&&a.isReadonly)]:qe,k=ea(),R=Bst(r);for(let W of so(r.source)){if(R){let ke=ZC(W,8576);if(!Hs(ke,R))continue}let J=8192|(f&&ym(W)?8:0),Z=da(4|W.flags&d,W.escapedName,J);if(Z.declarations=W.declarations,Z.links.nameType=$i(W).nameType,Z.links.propertyType=an(W),r.constraintType.type.flags&8388608&&r.constraintType.type.objectType.flags&262144&&r.constraintType.type.indexType.flags&262144){let ke=r.constraintType.type.objectType,he=Wst(r.mappedType,r.constraintType.type,ke);Z.links.mappedType=he,Z.links.constraintType=_g(ke)}else Z.links.mappedType=r.mappedType,Z.links.constraintType=r.constraintType;k.set(W.escapedName,Z)}vc(r,k,qe,qe,y)}function Nj(r){if(r.flags&4194304){let a=__(r.type);return hb(a)?r3e(a):_g(a)}if(r.flags&16777216){if(r.root.isDistributive){let a=r.checkType,l=Nj(a);if(l!==a)return Yme(r,Sx(r.root.checkType,l,r.mapper),!1)}return r}if(r.flags&1048576)return ac(r,Nj,!0);if(r.flags&2097152){let a=r.types;return a.length===2&&a[0].flags&76&&a[1]===Ys?r:ma(ul(r.types,Nj))}return r}function nme(r){return kc(r)&4096}function ime(r,a,l,f){for(let d of so(r))f(ZC(d,a));if(r.flags&1)f(ut);else for(let d of Mu(r))(!l||d.keyType.flags&134217732)&&f(d.keyType)}function Jst(r){let a=ea(),l;vc(r,E,qe,qe,qe);let f=fm(r),d=hp(r),y=r.target||r,k=Jv(y),R=mR(y)!==2,W=Ey(y),J=__(xT(r)),Z=qg(r);MD(r)?ime(J,8576,!1,he):Ix(Nj(d),he),vc(r,a,qe,qe,l||qe);function he(mt){let Ct=k?Hi(k,xR(r.mapper,f,mt)):mt;Ix(Ct,lr=>Ze(mt,lr))}function Ze(mt,Ct){if(Ep(Ct)){let lr=Np(Ct),rr=a.get(lr);if(rr)rr.links.nameType=ri([rr.links.nameType,Ct]),rr.links.keyType=ri([rr.links.keyType,mt]);else{let rn=Ep(mt)?ca(J,Np(mt)):void 0,Kr=!!(Z&4||!(Z&8)&&rn&&rn.flags&16777216),pr=!!(Z&1||!(Z&2)&&rn&&ym(rn)),ir=te&&!Kr&&rn&&rn.flags&16777216,yn=rn?nme(rn):0,Qn=da(4|(Kr?16777216:0),lr,yn|262144|(pr?8:0)|(ir?524288:0));Qn.links.mappedType=r,Qn.links.nameType=Ct,Qn.links.keyType=mt,rn&&(Qn.links.syntheticOrigin=rn,Qn.declarations=R?rn.declarations:void 0),a.set(lr,Qn)}}else if($Q(Ct)||Ct.flags&33){let lr=Ct.flags&5?ut:Ct.flags&40?Qt:Ct,rr=Hi(W,xR(r.mapper,f,mt)),rn=gR(J,Ct),Kr=!!(Z&1||!(Z&2)&&rn?.isReadonly),pr=Vh(lr,rr,Kr);l=oMe(l,pr,!0)}}}function Gst(r){var a;if(!r.links.type){let l=r.links.mappedType;if(!ag(r,0))return l.containsError=!0,Ke;let f=Ey(l.target||l),d=xR(l.mapper,fm(l),r.links.keyType),y=Hi(f,d),k=te&&r.flags&16777216&&!zc(y,49152)?yb(y,!0):r.links.checkFlags&524288?kK(y):y;og()||($e(x,p.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Qi(r),tn(l)),k=Ke),(a=r.links).type??(a.type=k)}return r.links.type}function fm(r){return r.typeParameter||(r.typeParameter=kT(In(r.declaration.typeParameter)))}function hp(r){return r.constraintType||(r.constraintType=D_(fm(r))||Ke)}function Jv(r){return r.declaration.nameType?r.nameType||(r.nameType=Hi(Fi(r.declaration.nameType),r.mapper)):void 0}function Ey(r){return r.templateType||(r.templateType=r.declaration.type?Hi(Yl(Fi(r.declaration.type),!0,!!(qg(r)&4)),r.mapper):Ke)}function cMe(r){return Aw(r.declaration.typeParameter)}function MD(r){let a=cMe(r);return a.kind===198&&a.operator===143}function xT(r){if(!r.modifiersType)if(MD(r))r.modifiersType=Hi(Fi(cMe(r).type),r.mapper);else{let a=zme(r.declaration),l=hp(a),f=l&&l.flags&262144?D_(l):l;r.modifiersType=f&&f.flags&4194304?Hi(f.type,r.mapper):kt}return r.modifiersType}function qg(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 lMe(r){let a=qg(r);return a&8?-1:a&4?1:0}function cN(r){if(Mn(r)&32)return lMe(r)||cN(xT(r));if(r.flags&2097152){let a=cN(r.types[0]);return Oi(r.types,(l,f)=>f===0||cN(l)===a)?a:0}return 0}function Ust(r){return!!(Mn(r)&32&&qg(r)&4)}function U_(r){if(Mn(r)&32){let a=hp(r);if(bx(a))return!0;let l=Jv(r);if(l&&bx(Hi(l,ET(fm(r),a))))return!0}return!1}function mR(r){let a=Jv(r);return a?Hs(a,fm(r))?1:2:0}function pm(r){return r.members||(r.flags&524288?r.objectFlags&4?Ist(r):r.objectFlags&3?wst(r):r.objectFlags&1024?zst(r):r.objectFlags&16?jst(r):r.objectFlags&32?Jst(r):w.fail("Unhandled object type "+w.formatObjectFlags(r.objectFlags)):r.flags&1048576?Fst(r):r.flags&2097152?Lst(r):w.fail("Unhandled type "+w.formatTypeFlags(r.flags))),r}function Gv(r){return r.flags&524288?pm(r).properties:qe}function CT(r,a){if(r.flags&524288){let f=pm(r).members.get(a);if(f&&cm(f))return f}}function Mj(r){if(!r.resolvedProperties){let a=ea();for(let l of r.types){for(let f of so(l))if(!a.has(f.escapedName)){let d=Fj(r,f.escapedName,!!(r.flags&2097152));d&&a.set(f.escapedName,d)}if(r.flags&1048576&&Mu(l).length===0)break}r.resolvedProperties=Ss(a)}return r.resolvedProperties}function so(r){return r=lN(r),r.flags&3145728?Mj(r):Gv(r)}function Vst(r,a){r=lN(r),r.flags&3670016&&pm(r).members.forEach((l,f)=>{Ca(l,f)&&a(l,f)})}function qst(r,a){return a.properties.some(f=>{let d=f.name&&(Qd(f.name)?V_(B4(f.name)):My(f.name)),y=d&&Ep(d)?Np(d):void 0,k=y===void 0?void 0:ol(r,y);return!!k&&AR(k)&&!Hs(_w(f),k)})}function $st(r){let a=ri(r);if(!(a.flags&1048576))return pye(a);let l=ea();for(let f of r)for(let{escapedName:d}of pye(f))if(!l.has(d)){let y=gMe(a,d);y&&l.set(d,y)}return ps(l.values())}function dx(r){return r.flags&262144?D_(r):r.flags&8388608?Qst(r):r.flags&16777216?fMe(r):Su(r)}function D_(r){return Rj(r)?fN(r):void 0}function Hst(r,a){let l=CR(r);return!!l&&mx(l,a)}function mx(r,a=0){var l;return a<5&&!!(r&&(r.flags&262144&&pt((l=r.symbol)==null?void 0:l.declarations,f=>ei(f,4096))||r.flags&3145728&&pt(r.types,f=>mx(f,a))||r.flags&8388608&&mx(r.objectType,a+1)||r.flags&16777216&&mx(fMe(r),a+1)||r.flags&33554432&&mx(r.baseType,a)||Mn(r)&32&&Hst(r,a)||hb(r)&&Sc(DT(r),(f,d)=>!!(r.target.elementFlags[d]&8)&&mx(f,a))>=0))}function Qst(r){return Rj(r)?Kst(r):void 0}function sme(r){let a=Ry(r,!1);return a!==r?a:dx(r)}function Kst(r){if(lme(r))return rK(r.objectType,r.indexType);let a=sme(r.indexType);if(a&&a!==r.indexType){let f=db(r.objectType,a,r.accessFlags);if(f)return f}let l=sme(r.objectType);if(l&&l!==r.objectType)return db(l,r.indexType,r.accessFlags)}function ame(r){if(!r.resolvedDefaultConstraint){let a=Lot(r),l=gb(r);r.resolvedDefaultConstraint=Se(a)?l:Se(l)?a:ri([a,l])}return r.resolvedDefaultConstraint}function uMe(r){if(r.resolvedConstraintOfDistributive!==void 0)return r.resolvedConstraintOfDistributive||void 0;if(r.root.isDistributive&&r.restrictiveInstantiation!==r){let a=Ry(r.checkType,!1),l=a===r.checkType?dx(a):a;if(l&&l!==r.checkType){let f=Yme(r,Sx(r.root.checkType,l,r.mapper),!0);if(!(f.flags&131072))return r.resolvedConstraintOfDistributive=f,f}}r.resolvedConstraintOfDistributive=!1}function _Me(r){return uMe(r)||ame(r)}function fMe(r){return Rj(r)?_Me(r):void 0}function Xst(r,a){let l,f=!1;for(let d of r)if(d.flags&465829888){let y=dx(d);for(;y&&y.flags&21233664;)y=dx(y);y&&(l=jr(l,y),a&&(l=jr(l,d)))}else(d.flags&469892092||Kg(d))&&(f=!0);if(l&&(a||f)){if(f)for(let d of r)(d.flags&469892092||Kg(d))&&(l=jr(l,d));return Yj(ma(l,2),!1)}}function Su(r){if(r.flags&464781312||hb(r)){let a=ome(r);return a!==sl&&a!==wc?a:void 0}return r.flags&4194304?si:void 0}function ug(r){return Su(r)||r}function Rj(r){return ome(r)!==wc}function ome(r){if(r.resolvedBaseConstraint)return r.resolvedBaseConstraint;let a=[];return r.resolvedBaseConstraint=l(r);function l(y){if(!y.immediateBaseConstraint){if(!ag(y,4))return wc;let k,R=hK(y);if((a.length<10||a.length<50&&!Ts(a,R))&&(a.push(R),k=d(Ry(y,!1)),a.pop()),!og()){if(y.flags&262144){let W=HQ(y);if(W){let J=$e(W,p.Type_parameter_0_has_a_circular_constraint,tn(y));x&&!SS(W,x)&&!SS(x,W)&&Xs(J,cn(x,p.Circularity_originates_in_type_at_this_location))}}k=wc}y.immediateBaseConstraint??(y.immediateBaseConstraint=k||sl)}return y.immediateBaseConstraint}function f(y){let k=l(y);return k!==sl&&k!==wc?k:void 0}function d(y){if(y.flags&262144){let k=fN(y);return y.isThisType||!k?k:f(k)}if(y.flags&3145728){let k=y.types,R=[],W=!1;for(let J of k){let Z=f(J);Z?(Z!==J&&(W=!0),R.push(Z)):W=!0}return W?y.flags&1048576&&R.length===k.length?ri(R):y.flags&2097152&&R.length?ma(R):void 0:y}if(y.flags&4194304)return si;if(y.flags&134217728){let k=y.types,R=Vi(k,f);return R.length===k.length?hx(y.texts,R):ut}if(y.flags&268435456){let k=f(y.type);return k&&k!==y.type?ew(y.symbol,k):ut}if(y.flags&8388608){if(lme(y))return f(rK(y.objectType,y.indexType));let k=f(y.objectType),R=f(y.indexType),W=k&&R&&db(k,R,y.accessFlags);return W&&f(W)}if(y.flags&16777216){let k=_Me(y);return k&&f(k)}if(y.flags&33554432)return f(Tme(y));if(hb(y)){let k=hr(DT(y),(R,W)=>{let J=R.flags&262144&&y.target.elementFlags[W]&8&&f(R)||R;return J!==R&&of(J,Z=>G1(Z)&&!hb(Z))?J:R});return Hg(k,y.target.elementFlags,y.target.readonly,y.target.labeledElementDeclarations)}return y}}function Yst(r,a){if(r===a)return r.resolvedApparentType||(r.resolvedApparentType=Mf(r,a,!0));let l=`I${Zl(r)},${Zl(a)}`;return nm(l)??rb(l,Mf(r,a,!0))}function cme(r){if(r.default)r.default===cu&&(r.default=wc);else if(r.target){let a=cme(r.target);r.default=a?Hi(a,r.mapper):sl}else{r.default=cu;let a=r.symbol&&or(r.symbol.declarations,f=>$o(f)&&f.default),l=a?Fi(a):sl;r.default===cu&&(r.default=l)}return r.default}function wT(r){let a=cme(r);return a!==sl&&a!==wc?a:void 0}function Zst(r){return cme(r)!==wc}function pMe(r){return!!(r.symbol&&or(r.symbol.declarations,a=>$o(a)&&a.default))}function dMe(r){return r.resolvedApparentType||(r.resolvedApparentType=eat(r))}function eat(r){let a=r.target??r,l=CR(a);if(l&&!a.declaration.nameType){let f=xT(r),d=U_(f)?dMe(f):Su(f);if(d&&of(d,y=>G1(y)||mMe(y)))return Hi(a,Sx(l,d,r.mapper))}return r}function mMe(r){return!!(r.flags&2097152)&&Oi(r.types,G1)}function lme(r){let a;return!!(r.flags&8388608&&Mn(a=r.objectType)&32&&!U_(a)&&bx(r.indexType)&&!(qg(a)&8)&&!a.declaration.nameType)}function __(r){let a=r.flags&465829888?Su(r)||kt:r,l=Mn(a);return l&32?dMe(a):l&4&&a!==r?Mf(a,r):a.flags&2097152?Yst(a,r):a.flags&402653316?Wo:a.flags&296?Qc:a.flags&2112?zat():a.flags&528?hc:a.flags&12288?VMe():a.flags&67108864?Oa:a.flags&4194304?si:a.flags&2&&!te?Oa:a}function lN(r){return Rd(__(Rd(r)))}function gMe(r,a,l){var f,d,y;let k,R,W,J=r.flags&1048576,Z,ke=4,he=J?0:8,Ze=!1;for(let Qn of r.types){let Wi=__(Qn);if(!(We(Wi)||Wi.flags&131072)){let Dn=ca(Wi,a,l),hs=Dn?Ap(Dn):0;if(Dn){if(Dn.flags&106500&&(Z??(Z=J?0:16777216),J?Z|=Dn.flags&16777216:Z&=Dn.flags),!k)k=Dn;else if(Dn!==k)if((KD(Dn)||Dn)===(KD(k)||k)&&lge(k,Dn,(co,As)=>co===As?-1:0)===-1)Ze=!!k.parent&&!!Dr(Md(k.parent));else{R||(R=new Map,R.set(ua(k),k));let co=ua(Dn);R.has(co)||R.set(co,Dn)}J&&ym(Dn)?he|=8:!J&&!ym(Dn)&&(he&=-9),he|=(hs&6?0:256)|(hs&4?512:0)|(hs&2?1024:0)|(hs&256?2048:0),ahe(Dn)||(ke=2)}else if(J){let Gs=!pR(a)&&XC(Wi,a);Gs?(he|=32|(Gs.isReadonly?8:0),W=jr(W,Pa(Wi)?bK(Wi)||pe:Gs.type)):Hv(Wi)&&!(Mn(Wi)&2097152)?(he|=32,W=jr(W,pe)):he|=16}}}if(!k||J&&(R||he&48)&&he&1536&&!(R&&tat(R.values())))return;if(!R&&!(he&16)&&!W)if(Ze){let Qn=(f=Vn(k,lh))==null?void 0:f.links,Wi=kx(k,Qn?.type);return Wi.parent=(y=(d=k.valueDeclaration)==null?void 0:d.symbol)==null?void 0:y.parent,Wi.links.containingType=r,Wi.links.mapper=Qn?.mapper,Wi.links.writeType=Wv(k),Wi}else return k;let mt=R?ps(R.values()):[k],Ct,lr,rr,rn=[],Kr,pr,ir=!1;for(let Qn of mt){pr?Qn.valueDeclaration&&Qn.valueDeclaration!==pr&&(ir=!0):pr=Qn.valueDeclaration,Ct=jn(Ct,Qn.declarations);let Wi=an(Qn);lr||(lr=Wi,rr=$i(Qn).nameType);let Dn=Wv(Qn);(Kr||Dn!==Wi)&&(Kr=jr(Kr||rn.slice(),Dn)),Wi!==lr&&(he|=64),(AR(Wi)||yx(Wi))&&(he|=128),Wi.flags&131072&&Wi!==Bc&&(he|=131072),rn.push(Wi)}jn(rn,W);let yn=da(4|(Z??0),a,ke|he);return yn.links.containingType=r,!ir&&pr&&(yn.valueDeclaration=pr,pr.symbol.parent&&(yn.parent=pr.symbol.parent)),yn.declarations=Ct,yn.links.nameType=rr,rn.length>2?(yn.links.checkFlags|=65536,yn.links.deferralParent=r,yn.links.deferralConstituents=rn,yn.links.deferralWriteConstituents=Kr):(yn.links.type=J?ri(rn):ma(rn),Kr&&(yn.links.writeType=J?ri(Kr):ma(Kr))),yn}function hMe(r,a,l){var f,d,y;let k=l?(f=r.propertyCacheWithoutObjectFunctionPropertyAugment)==null?void 0:f.get(a):(d=r.propertyCache)==null?void 0:d.get(a);return k||(k=gMe(r,a,l),k&&((l?r.propertyCacheWithoutObjectFunctionPropertyAugment||(r.propertyCacheWithoutObjectFunctionPropertyAugment=ea()):r.propertyCache||(r.propertyCache=ea())).set(a,k),l&&!(kc(k)&48)&&!((y=r.propertyCache)!=null&&y.get(a))&&(r.propertyCache||(r.propertyCache=ea())).set(a,k))),k}function tat(r){let a;for(let l of r){if(!l.declarations)return;if(!a){a=new Set(l.declarations);continue}if(a.forEach(f=>{Ts(l.declarations,f)||a.delete(f)}),a.size===0)return}return a}function Fj(r,a,l){let f=hMe(r,a,l);return f&&!(kc(f)&16)?f:void 0}function Rd(r){return r.flags&1048576&&r.objectFlags&16777216?r.resolvedReducedType||(r.resolvedReducedType=rat(r)):r.flags&2097152?(r.objectFlags&16777216||(r.objectFlags|=16777216|(pt(Mj(r),nat)?33554432:0)),r.objectFlags&33554432?ar:r):r}function rat(r){let a=ul(r.types,Rd);if(a===r.types)return r;let l=ri(a);return l.flags&1048576&&(l.resolvedReducedType=l),l}function nat(r){return yMe(r)||vMe(r)}function yMe(r){return!(r.flags&16777216)&&(kc(r)&131264)===192&&!!(an(r).flags&131072)}function vMe(r){return!r.valueDeclaration&&!!(kc(r)&1024)}function ume(r){return!!(r.flags&1048576&&r.objectFlags&16777216&&pt(r.types,ume)||r.flags&2097152&&iat(r))}function iat(r){let a=r.uniqueLiteralFilledInstantiation||(r.uniqueLiteralFilledInstantiation=Hi(r,xi));return Rd(a)!==a}function _me(r,a){if(a.flags&2097152&&Mn(a)&33554432){let l=On(Mj(a),yMe);if(l)return Ps(r,p.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,tn(a,void 0,536870912),Qi(l));let f=On(Mj(a),vMe);if(f)return Ps(r,p.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,tn(a,void 0,536870912),Qi(f))}return r}function ca(r,a,l,f){var d,y;if(r=lN(r),r.flags&524288){let k=pm(r),R=k.members.get(a);if(R&&!f&&((d=r.symbol)==null?void 0:d.flags)&512&&((y=$i(r.symbol).typeOnlyExportStarMap)!=null&&y.has(a)))return;if(R&&cm(R,f))return R;if(l)return;let W=k===fo?Wt:k.callSignatures.length?sn:k.constructSignatures.length?ts:void 0;if(W){let J=CT(W,a);if(J)return J}return CT(Ee,a)}if(r.flags&2097152){let k=Fj(r,a,!0);return k||(l?void 0:Fj(r,a,l))}if(r.flags&1048576)return Fj(r,a,l)}function Oj(r,a){if(r.flags&3670016){let l=pm(r);return a===0?l.callSignatures:l.constructSignatures}return qe}function Bs(r,a){let l=Oj(lN(r),a);if(a===0&&!Dr(l)&&r.flags&1048576){if(r.arrayFallbackSignatures)return r.arrayFallbackSignatures;let f;if(of(r,d=>{var y;return!!((y=d.symbol)!=null&&y.parent)&&sat(d.symbol.parent)&&(f?f===d.symbol.escapedName:(f=d.symbol.escapedName,!0))})){let d=ac(r,k=>qv((bMe(k.symbol.parent)?Ma:Js).typeParameters[0],k.mapper)),y=Ru(d,Vp(r,k=>bMe(k.symbol.parent)));return r.arrayFallbackSignatures=Bs(ol(y,f),a)}r.arrayFallbackSignatures=l}return l}function sat(r){return!r||!Js.symbol||!Ma.symbol?!1:!!gp(r,Js.symbol)||!!gp(r,Ma.symbol)}function bMe(r){return!r||!Ma.symbol?!1:!!gp(r,Ma.symbol)}function uN(r,a){return On(r,l=>l.keyType===a)}function fme(r,a){let l,f,d;for(let y of r)y.keyType===ut?l=y:KC(a,y.keyType)&&(f?(d||(d=[f])).push(y):f=y);return d?Vh(kt,ma(hr(d,y=>y.type)),d_(d,(y,k)=>y&&k.isReadonly,!0)):f||(l&&KC(a,ut)?l:void 0)}function KC(r,a){return Hs(r,a)||a===ut&&Hs(r,Qt)||a===Qt&&(r===Os||!!(r.flags&128)&&Sh(r.value))}function pme(r){return r.flags&3670016?pm(r).indexInfos:qe}function Mu(r){return pme(lN(r))}function Uh(r,a){return uN(Mu(r),a)}function j1(r,a){var l;return(l=Uh(r,a))==null?void 0:l.type}function dme(r,a){return Mu(r).filter(l=>KC(a,l.keyType))}function gR(r,a){return fme(Mu(r),a)}function XC(r,a){return gR(r,pR(a)?Ot:V_(Li(a)))}function SMe(r){var a;let l;for(let f of y0(r))l=Zh(l,kT(f.symbol));return l?.length?l:jc(r)?(a=_N(r))==null?void 0:a.typeParameters:void 0}function mme(r){let a=[];return r.forEach((l,f)=>{is(f)||a.push(l)}),a}function TMe(r,a){if(Jl(r))return;let l=c_(ct,'"'+r+'"',512);return l&&a?Va(l):l}function zQ(r){return _2(r)||W4(r)||Bi(r)&&zO(r)}function hR(r){if(zQ(r))return!0;if(!Bi(r))return!1;if(r.initializer){let l=yp(r.parent),f=r.parent.parameters.indexOf(r);return w.assert(f>=0),f>=hm(l,3)}let a=hS(r.parent);return a?!r.type&&!r.dotDotDotToken&&r.parent.parameters.indexOf(r)>=rX(a).length:!1}function aat(r){return ds(r)&&!Em(r)&&r.questionToken}function yR(r,a,l,f){return{kind:r,parameterName:a,parameterIndex:l,type:f}}function $g(r){let a=0;if(r)for(let l=0;l<r.length;l++)pMe(r[l])||(a=l+1);return a}function Uv(r,a,l,f){let d=Dr(a);if(!d)return[];let y=Dr(r);if(f||y>=l&&y<=d){let k=r?r.slice():[];for(let W=y;W<d;W++)k[W]=Ke;let R=Dge(f);for(let W=y;W<d;W++){let J=wT(a[W]);f&&J&&($h(J,kt)||$h(J,Oa))&&(J=Fe),k[W]=J?Hi(J,af(a,k)):R}return k.length=a.length,k}return r&&r.slice()}function yp(r){let a=wn(r);if(!a.resolvedSignature){let l=[],f=0,d=0,y,k=un(r)?K8(r):void 0,R=!1,W=hS(r),J=f2(r);!W&&un(r)&&pk(r)&&!Mee(r)&&!h0(r)&&(f|=32);for(let mt=J?1:0;mt<r.parameters.length;mt++){let Ct=r.parameters[mt];if(un(Ct)&&yG(Ct)){k=Ct;continue}let lr=Ct.symbol,rr=ip(Ct)?Ct.typeExpression&&Ct.typeExpression.type:Ct.type;lr&&lr.flags&4&&!Ws(Ct.name)&&(lr=_t(Ct,lr.escapedName,111551,void 0,!1)),mt===0&&lr.escapedName==="this"?(R=!0,y=Ct.symbol):l.push(lr),rr&&rr.kind===201&&(f|=2),zQ(Ct)||Bi(Ct)&&Ct.initializer||Tg(Ct)||W&&l.length>W.arguments.length&&!rr||(d=l.length)}if((r.kind===177||r.kind===178)&&ND(r)&&(!R||!y)){let mt=r.kind===177?178:177,Ct=Yo(In(r),mt);Ct&&(y=Hde(Ct))}k&&k.typeExpression&&(y=kx(da(1,"this"),Fi(k.typeExpression)));let ke=fv(r)?Ob(r):r,he=ke&&lc(ke)?Bp(Va(ke.parent.symbol)):void 0,Ze=he?he.localTypeParameters:SMe(r);(qB(r)||un(r)&&oat(r,l))&&(f|=1),(_I(r)&&ei(r,64)||lc(r)&&ei(r.parent,64))&&(f|=4),a.resolvedSignature=Gh(r,Ze,y,l,void 0,void 0,d,f)}return a.resolvedSignature}function oat(r,a){if(fv(r)||!gme(r))return!1;let l=zo(r.parameters),f=l?Pw(l):Ab(r).filter(ip),d=po(f,k=>k.typeExpression&&_7(k.typeExpression.type)?k.typeExpression.type:void 0),y=da(3,"args",32768);return d?y.links.type=Ru(Fi(d.type)):(y.links.checkFlags|=65536,y.links.deferralParent=ar,y.links.deferralConstituents=[wl],y.links.deferralWriteConstituents=[wl]),d&&a.pop(),a.push(y),!0}function _N(r){if(!(un(r)&&xo(r)))return;let a=Pb(r);return a?.typeExpression&&Ex(Fi(a.typeExpression))}function cat(r,a){let l=_N(r);if(!l)return;let f=r.parameters.indexOf(a);return a.dotDotDotToken?A9(l,f):gm(l,f)}function lat(r){let a=_N(r);return a&&Za(a)}function gme(r){let a=wn(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===ee.escapedName&&s8(f)===ee;case 172:case 174:case 177:case 178:return f.name.kind===167&&l(f.name);case 211:case 212:return l(f.expression);case 303:return l(f.initializer);default:return!Oz(f)&&!Im(f)&&!!Es(f,l)}}}function IT(r){if(!r||!r.declarations)return qe;let a=[];for(let l=0;l<r.declarations.length;l++){let f=r.declarations[l];if(Ns(f)){if(l>0&&f.body){let d=r.declarations[l-1];if(f.parent===d.parent&&f.kind===d.kind&&f.pos===d.end)continue}if(un(f)&&f.jsDoc){let d=wz(f);if(Dr(d)){for(let y of d){let k=y.typeExpression;k.type===void 0&&!lc(f)&&V1(k,Fe),a.push(yp(k))}continue}}a.push(!O0(f)&&!ed(f)&&_N(f)||yp(f))}}return a}function kMe(r){let a=u_(r,r);if(a){let l=J_(a);if(l)return an(l)}return Fe}function W1(r){if(r.thisParameter)return an(r.thisParameter)}function zp(r){if(!r.resolvedTypePredicate){if(r.target){let a=zp(r.target);r.resolvedTypePredicate=a?M3e(a,r.mapper):qt}else if(r.compositeSignatures)r.resolvedTypePredicate=fot(r.compositeSignatures,r.compositeKind)||qt;else{let a=r.declaration&&Wf(r.declaration),l;if(!a){let f=_N(r.declaration);f&&r!==f&&(l=zp(f))}if(a||l)r.resolvedTypePredicate=a&&L2(a)?uat(a,r):l||qt;else if(r.declaration&&xo(r.declaration)&&(!r.resolvedReturnType||r.resolvedReturnType.flags&16)&&cf(r)>0){let{declaration:f}=r;r.resolvedTypePredicate=qt,r.resolvedTypePredicate=Qft(f)||qt}else r.resolvedTypePredicate=qt}w.assert(!!r.resolvedTypePredicate)}return r.resolvedTypePredicate===qt?void 0:r.resolvedTypePredicate}function uat(r,a){let l=r.parameterName,f=r.type&&Fi(r.type);return l.kind===197?yR(r.assertsModifier?2:0,void 0,void 0,f):yR(r.assertsModifier?3:1,l.escapedText,Sc(a.parameters,d=>d.escapedName===l.escapedText),f)}function xMe(r,a,l){return a!==2097152?ri(r,l):ma(r)}function Za(r){if(!r.resolvedReturnType){if(!ag(r,3))return Ke;let a=r.target?Hi(Za(r.target),r.mapper):r.compositeSignatures?Hi(xMe(hr(r.compositeSignatures,Za),r.compositeKind,2),r.mapper):RD(r.declaration)||(Tc(r.declaration.body)?Fe:aX(r.declaration));if(r.flags&8?a=lRe(a):r.flags&16&&(a=yb(a)),!og()){if(r.declaration){let l=Wf(r.declaration);if(l)$e(l,p.Return_type_annotation_circularly_references_itself);else if(de){let f=r.declaration,d=vs(f);d?$e(d,p._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,Co(d)):$e(f,p.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=Fe}r.resolvedReturnType??(r.resolvedReturnType=a)}return r.resolvedReturnType}function RD(r){if(r.kind===176)return Bp(Va(r.parent.symbol));let a=Wf(r);if(fv(r)){let l=Hw(r);if(l&&lc(l.parent)&&!a)return Bp(Va(l.parent.parent.symbol))}if(f2(r))return Fi(r.parameters[0].type);if(a)return Fi(a);if(r.kind===177&&ND(r)){let l=un(r)&&Wp(r);if(l)return l;let f=Yo(In(r),178),d=sN(f);if(d)return d}return lat(r)}function JQ(r){return r.compositeSignatures&&pt(r.compositeSignatures,JQ)||!r.resolvedReturnType&&wD(r,3)>=0}function _at(r){return CMe(r)||Fe}function CMe(r){if(Gu(r)){let a=an(r.parameters[r.parameters.length-1]),l=Pa(a)?bK(a):a;return l&&j1(l,Qt)}}function vR(r,a,l,f){let d=hme(r,Uv(a,r.typeParameters,$g(r.typeParameters),l));if(f){let y=Z8e(Za(d));if(y){let k=dR(y);k.typeParameters=f;let R=dR(d);return R.resolvedReturnType=gx(k),R}}return d}function hme(r,a){let l=r.instantiations||(r.instantiations=new Map),f=gd(a),d=l.get(f);return d||l.set(f,d=GQ(r,a)),d}function GQ(r,a){return MT(r,fat(r,a),!0)}function wMe(r){return ul(r.typeParameters,a=>a.mapper?Hi(a,a.mapper):a)}function fat(r,a){return af(wMe(r),a)}function bR(r){return r.typeParameters?r.erasedSignatureCache||(r.erasedSignatureCache=pat(r)):r}function pat(r){return MT(r,N3e(r.typeParameters),!0)}function dat(r){return r.typeParameters?r.canonicalSignatureCache||(r.canonicalSignatureCache=mat(r)):r}function mat(r){return vR(r,hr(r.typeParameters,a=>a.target&&!D_(a.target)?a.target:a),un(r.declaration))}function gat(r){return r.typeParameters?r.implementationSignatureCache||(r.implementationSignatureCache=hat(r)):r}function hat(r){return r.typeParameters?MT(r,af([],[])):r}function yat(r){let a=r.typeParameters;if(a){if(r.baseSignatureCache)return r.baseSignatureCache;let l=N3e(a),f=af(a,hr(a,y=>D_(y)||kt)),d=hr(a,y=>Hi(y,f)||kt);for(let y=0;y<a.length-1;y++)d=Qg(d,f);return d=Qg(d,l),r.baseSignatureCache=MT(r,af(a,d),!0)}return r}function gx(r,a){var l;if(!r.isolatedSignatureType){let f=(l=r.declaration)==null?void 0:l.kind,d=f===void 0||f===176||f===180||f===185,y=_r(134217744,da(16,"__function"));r.declaration&&!So(r.declaration)&&(y.symbol.declarations=[r.declaration],y.symbol.valueDeclaration=r.declaration),a||(a=r.declaration&&Bv(r.declaration,!0)),y.outerTypeParameters=a,y.members=E,y.properties=qe,y.callSignatures=d?qe:[r],y.constructSignatures=d?[r]:qe,y.indexInfos=qe,r.isolatedSignatureType=y}return r.isolatedSignatureType}function UQ(r){return r.members?VQ(Vg(r)):void 0}function VQ(r){return r.get("__index")}function Vh(r,a,l,f,d){return{keyType:r,type:a,isReadonly:l,declaration:f,components:d}}function IMe(r){let a=UQ(r);return a?qQ(a,ps(Vg(r).values())):qe}function qQ(r,a=r.parent?ps(Vg(r.parent).values()):void 0){if(r.declarations){let l=[],f=!1,d=!0,y=!1,k=!0,R=!1,W=!0,J=[];for(let ke of r.declarations)if(W0(ke)){if(ke.parameters.length===1){let he=ke.parameters[0];he.type&&Ix(Fi(he.type),Ze=>{$Q(Ze)&&!uN(l,Ze)&&l.push(Vh(Ze,ke.type?Fi(ke.type):Fe,hf(ke,8),ke))})}}else if(X4e(ke)){let he=vn(ke)?ke.left:ke.name,Ze=wo(he)?Ec(he.argumentExpression):Od(he);if(uN(l,Ze))continue;Hs(Ze,si)&&(Hs(Ze,Qt)?(f=!0,gk(ke)||(d=!1)):Hs(Ze,Ot)?(y=!0,gk(ke)||(k=!1)):(R=!0,gk(ke)||(W=!1)),J.push(ke.symbol))}let Z=Ki(J,An(a,ke=>ke!==r));return R&&!uN(l,ut)&&l.push(zR(W,0,Z,ut)),f&&!uN(l,Qt)&&l.push(zR(d,0,Z,Qt)),y&&!uN(l,Ot)&&l.push(zR(k,0,Z,Ot)),l}return qe}function $Q(r){return!!(r.flags&4108)||yx(r)||!!(r.flags&2097152)&&!z1(r)&&pt(r.types,$Q)}function HQ(r){return Vi(An(r.symbol&&r.symbol.declarations,$o),Aw)[0]}function DMe(r,a){var l;let f;if((l=r.symbol)!=null&&l.declarations){for(let d of r.symbol.declarations)if(d.parent.kind===195){let[y=d.parent,k]=sre(d.parent.parent);if(k.kind===183&&!a){let R=k,W=qhe(R);if(W){let J=R.typeArguments.indexOf(y);if(J<W.length){let Z=D_(W[J]);if(Z){let ke=Qme(W,W.map((Ze,mt)=>()=>Vpt(R,W,mt))),he=Hi(Z,ke);he!==r&&(f=jr(f,he))}}}}else if(k.kind===169&&k.dotDotDotToken||k.kind===191||k.kind===202&&k.dotDotDotToken)f=jr(f,Ru(kt));else if(k.kind===204)f=jr(f,ut);else if(k.kind===168&&k.parent.kind===200)f=jr(f,si);else if(k.kind===200&&k.type&&Ka(k.type)===d.parent&&k.parent.kind===194&&k.parent.extendsType===k&&k.parent.checkType.kind===200&&k.parent.checkType.type){let R=k.parent.checkType,W=Fi(R.type);f=jr(f,Hi(W,ET(kT(In(R.typeParameter)),R.typeParameter.constraint?Fi(R.typeParameter.constraint):si)))}}}return f&&ma(f)}function fN(r){if(!r.constraint)if(r.target){let a=D_(r.target);r.constraint=a?Hi(a,r.mapper):sl}else{let a=HQ(r);if(!a)r.constraint=DMe(r)||sl;else{let l=Fi(a);l.flags&1&&!We(l)&&(l=a.parent.parent.kind===200?si:kt),r.constraint=l}}return r.constraint===sl?void 0:r.constraint}function PMe(r){let a=Yo(r.symbol,168),l=ad(a.parent)?VF(a.parent):a.parent;return l&&Vf(l)}function gd(r){let a="";if(r){let l=r.length,f=0;for(;f<l;){let d=r[f].id,y=1;for(;f+y<l&&r[f+y].id===d+y;)y++;a.length&&(a+=","),a+=d,y>1&&(a+=":"+y),f+=y}}return a}function YC(r,a){return r?`@${ua(r)}`+(a?`:${gd(a)}`:""):""}function Lj(r,a){let l=0;for(let f of r)(a===void 0||!(f.flags&a))&&(l|=Mn(f));return l&458752}function FD(r,a){return pt(a)&&r===Ht?kt:Ny(r,a)}function Ny(r,a){let l=gd(a),f=r.instantiations.get(l);return f||(f=_r(4,r.symbol),r.instantiations.set(l,f),f.objectFlags|=a?Lj(a):0,f.target=r,f.resolvedTypeArguments=a),f}function AMe(r){let a=zh(r.flags,r.symbol);return a.objectFlags=r.objectFlags,a.target=r.target,a.resolvedTypeArguments=r.resolvedTypeArguments,a}function yme(r,a,l,f,d){if(!f){f=tw(a);let k=WD(f);d=l?Qg(k,l):k}let y=_r(4,r.symbol);return y.target=r,y.node=a,y.mapper=l,y.aliasSymbol=f,y.aliasTypeArguments=d,y}function Vo(r){var a,l;if(!r.resolvedTypeArguments){if(!ag(r,5))return Ki(r.target.outerTypeParameters,(a=r.target.localTypeParameters)==null?void 0:a.map(()=>Ke))||qe;let f=r.node,d=f?f.kind===183?Ki(r.target.outerTypeParameters,pX(f,r.target.localTypeParameters)):f.kind===188?[Fi(f.elementType)]:hr(f.elements,Fi):qe;og()?r.resolvedTypeArguments??(r.resolvedTypeArguments=r.mapper?Qg(d,r.mapper):d):(r.resolvedTypeArguments??(r.resolvedTypeArguments=Ki(r.target.outerTypeParameters,((l=r.target.localTypeParameters)==null?void 0:l.map(()=>Ke))||qe)),$e(r.node||x,r.target.symbol?p.Type_arguments_for_0_circularly_reference_themselves:p.Tuple_type_arguments_circularly_reference_themselves,r.target.symbol&&Qi(r.target.symbol)))}return r.resolvedTypeArguments}function Vv(r){return Dr(r.target.typeParameters)}function EMe(r,a){let l=Bo(Va(a)),f=l.localTypeParameters;if(f){let d=Dr(r.typeArguments),y=$g(f),k=un(r);if(!(!de&&k)&&(d<y||d>f.length)){let J=k&&py(r)&&!U2(r.parent),Z=y===f.length?J?p.Expected_0_type_arguments_provide_these_with_an_extends_tag:p.Generic_type_0_requires_1_type_argument_s:J?p.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:p.Generic_type_0_requires_between_1_and_2_type_arguments,ke=tn(l,void 0,2);if($e(r,Z,ke,y,f.length),!k)return Ke}if(r.kind===183&&e3e(r,Dr(r.typeArguments)!==f.length))return yme(l,r,void 0);let W=Ki(l.outerTypeParameters,Uv(jj(r),f,y,k));return Ny(l,W)}return B1(r,a)?l:Ke}function OD(r,a,l,f){let d=Bo(r);if(d===Pe){let J=kU.get(r.escapedName);if(J!==void 0&&a&&a.length===1)return J===4?vme(a[0]):ew(r,a[0])}let y=$i(r),k=y.typeParameters,R=gd(a)+YC(l,f),W=y.instantiations.get(R);return W||y.instantiations.set(R,W=O3e(d,af(k,Uv(a,k,$g(k),un(r.valueDeclaration))),l,f)),W}function vat(r,a){if(kc(a)&1048576){let d=jj(r),y=YC(a,d),k=st.get(y);return k||(k=ue(1,"error",void 0,`alias ${y}`),k.aliasSymbol=a,k.aliasTypeArguments=d,st.set(y,k)),k}let l=Bo(a),f=$i(a).typeParameters;if(f){let d=Dr(r.typeArguments),y=$g(f);if(d<y||d>f.length)return $e(r,y===f.length?p.Generic_type_0_requires_1_type_argument_s:p.Generic_type_0_requires_between_1_and_2_type_arguments,Qi(a),y,f.length),Ke;let k=tw(r),R=k&&(NMe(a)||!NMe(k))?k:void 0,W;if(R)W=WD(R);else if(fF(r)){let J=pN(r,2097152,!0);if(J&&J!==Y){let Z=al(J);Z&&Z.flags&524288&&(R=Z,W=jj(r)||(f?[]:void 0))}}return OD(a,jj(r),R,W)}return B1(r,a)?l:Ke}function NMe(r){var a;let l=(a=r.declarations)==null?void 0:a.find(s4);return!!(l&&ep(l))}function bat(r){switch(r.kind){case 183:return r.typeName;case 233:let a=r.expression;if(mo(a))return a}}function MMe(r){return r.parent?`${MMe(r.parent)}.${r.escapedName}`:r.escapedName}function QQ(r){let l=(r.kind===166?r.right:r.kind===211?r.name:r).escapedText;if(l){let f=r.kind===166?QQ(r.left):r.kind===211?QQ(r.expression):void 0,d=f?`${MMe(f)}.${l}`:l,y=Xe.get(d);return y||(Xe.set(d,y=da(524288,l,1048576)),y.parent=f,y.links.declaredType=Vt),y}return Y}function pN(r,a,l){let f=bat(r);if(!f)return Y;let d=Ac(f,a,l);return d&&d!==Y?d:l?Y:QQ(f)}function KQ(r,a){if(a===Y)return Ke;if(a=rN(a)||a,a.flags&96)return EMe(r,a);if(a.flags&524288)return vat(r,a);let l=U4e(a);if(l)return B1(r,a)?f_(l):Ke;if(a.flags&111551&&XQ(r)){let f=Sat(r,a);return f||(pN(r,788968),an(a))}return Ke}function Sat(r,a){let l=wn(r);if(!l.resolvedJSDocType){let f=an(a),d=f;if(a.valueDeclaration){let y=r.kind===205&&r.qualifier;f.symbol&&f.symbol!==a&&y&&(d=KQ(r,f.symbol))}l.resolvedJSDocType=d}return l.resolvedJSDocType}function vme(r){return bme(r)?RMe(r,kt):r}function bme(r){return!!(r.flags&3145728&&pt(r.types,bme)||r.flags&33554432&&!LD(r)&&bme(r.baseType)||r.flags&524288&&!Kg(r)||r.flags&432275456&&!yx(r))}function LD(r){return!!(r.flags&33554432&&r.constraint.flags&2)}function Sme(r,a){return a.flags&3||a===r||r.flags&1?r:RMe(r,a)}function RMe(r,a){let l=`${Zl(r)}>${Zl(a)}`,f=oa.get(l);if(f)return f;let d=Py(33554432);return d.baseType=r,d.constraint=a,oa.set(l,d),d}function Tme(r){return LD(r)?r.baseType:ma([r.constraint,r.baseType])}function FMe(r){return r.kind===189&&r.elements.length===1}function OMe(r,a,l){return FMe(a)&&FMe(l)?OMe(r,a.elements[0],l.elements[0]):Fy(Fi(a))===Fy(r)?Fi(l):void 0}function Tat(r,a){let l,f=!0;for(;a&&!Ii(a)&&a.kind!==320;){let d=a.parent;if(d.kind===169&&(f=!f),(f||r.flags&8650752)&&d.kind===194&&a===d.trueType){let y=OMe(r,d.checkType,d.extendsType);y&&(l=jr(l,y))}else if(r.flags&262144&&d.kind===200&&!d.nameType&&a===d.type){let y=Fi(d);if(fm(y)===Fy(r)){let k=CR(y);if(k){let R=D_(k);R&&of(R,G1)&&(l=jr(l,ri([Qt,Os])))}}}a=d}return l?Sme(r,ma(l)):r}function XQ(r){return!!(r.flags&16777216)&&(r.kind===183||r.kind===205)}function B1(r,a){return r.typeArguments?($e(r,p.Type_0_is_not_generic,a?Qi(a):r.typeName?Co(r.typeName):vU),!1):!0}function LMe(r){if(je(r.typeName)){let a=r.typeArguments;switch(r.typeName.escapedText){case"String":return B1(r),ut;case"Number":return B1(r),Qt;case"BigInt":return B1(r),en;case"Boolean":return B1(r),Ut;case"Void":return B1(r),vr;case"Undefined":return B1(r),pe;case"Null":return B1(r),jt;case"Function":case"function":return B1(r),Wt;case"array":return(!a||!a.length)&&!de?wl:void 0;case"promise":return(!a||!a.length)&&!de?N9(Fe):void 0;case"Object":if(a&&a.length===2){if(zF(r)){let l=Fi(a[0]),f=Fi(a[1]),d=l===ut||l===Qt?[Vh(l,f,!1)]:qe;return tc(void 0,E,qe,qe,d)}return Fe}return B1(r),de?void 0:Fe}}}function kat(r){let a=Fi(r.type);return te?i9(a,65536):a}function YQ(r){let a=wn(r);if(!a.resolvedType){if(vd(r)&&fS(r.parent))return a.resolvedSymbol=Y,a.resolvedType=Ec(r.parent.expression);let l,f,d=788968;XQ(r)&&(f=LMe(r),f||(l=pN(r,d,!0),l===Y?l=pN(r,d|111551):pN(r,d),f=KQ(r,l))),f||(l=pN(r,d),f=KQ(r,l)),a.resolvedSymbol=l,a.resolvedType=f}return a.resolvedType}function jj(r){return hr(r.typeArguments,Fi)}function jMe(r){let a=wn(r);if(!a.resolvedType){let l=bFe(r);a.resolvedType=f_(Rf(l))}return a.resolvedType}function WMe(r,a){function l(d){let y=d.declarations;if(y)for(let k of y)switch(k.kind){case 263:case 264:case 266:return k}}if(!r)return a?Ht:Oa;let f=Bo(r);return f.flags&524288?Dr(f.typeParameters)!==a?($e(l(r),p.Global_type_0_must_have_1_type_parameter_s,Oc(r),a),a?Ht:Oa):f:($e(l(r),p.Global_type_0_must_be_a_class_or_interface_type,Oc(r)),a?Ht:Oa)}function kme(r,a){return jD(r,111551,a?p.Cannot_find_global_value_0:void 0)}function xme(r,a){return jD(r,788968,a?p.Cannot_find_global_type_0:void 0)}function ZQ(r,a,l){let f=jD(r,788968,l?p.Cannot_find_global_type_0:void 0);if(f&&(Bo(f),Dr($i(f).typeParameters)!==a)){let d=f.declarations&&On(f.declarations,sd);$e(d,p.Global_type_0_must_have_1_type_parameter_s,Oc(f),a);return}return f}function jD(r,a,l){return _t(void 0,r,a,l,!1,!1)}function Rc(r,a,l){let f=xme(r,l);return f||l?WMe(f,a):void 0}function BMe(r,a){let l;for(let f of r)l=jr(l,Rc(f,a,!1));return l??qe}function xat(){return Ih||(Ih=Rc("TypedPropertyDescriptor",1,!0)||Ht)}function Cat(){return Er||(Er=Rc("TemplateStringsArray",0,!0)||Oa)}function zMe(){return cs||(cs=Rc("ImportMeta",0,!0)||Oa)}function JMe(){if(!bi){let r=da(0,"ImportMetaExpression"),a=zMe(),l=da(4,"meta",8);l.parent=r,l.links.type=a;let f=ea([l]);r.members=f,bi=tc(r,f,qe,qe,qe)}return bi}function GMe(r){return Zi||(Zi=Rc("ImportCallOptions",0,r))||Oa}function Cme(r){return gs||(gs=Rc("ImportAttributes",0,r))||Oa}function UMe(r){return Pd||(Pd=kme("Symbol",r))}function wat(r){return zf||(zf=xme("SymbolConstructor",r))}function VMe(){return Qm||(Qm=Rc("Symbol",0,!1))||Oa}function Wj(r){return _p||(_p=Rc("Promise",1,r))||Ht}function qMe(r){return B_||(B_=Rc("PromiseLike",1,r))||Ht}function wme(r){return o_||(o_=kme("Promise",r))}function Iat(r){return Km||(Km=Rc("PromiseConstructorLike",0,r))||Oa}function Bj(r){return Yr||(Yr=Rc("AsyncIterable",3,r))||Ht}function Dat(r){return Gn||(Gn=Rc("AsyncIterator",3,r))||Ht}function $Me(r){return _i||(_i=Rc("AsyncIterableIterator",3,r))||Ht}function Pat(){return L??(L=BMe(["ReadableStreamAsyncIterator"],1))}function Aat(r){return ze||(ze=Rc("AsyncIteratorObject",3,r))||Ht}function Eat(r){return Rt||(Rt=Rc("AsyncGenerator",3,r))||Ht}function eK(r){return Jf||(Jf=Rc("Iterable",3,r))||Ht}function Nat(r){return Dh||(Dh=Rc("Iterator",3,r))||Ht}function HMe(r){return re||(re=Rc("IterableIterator",3,r))||Ht}function Ime(){return oe?pe:Fe}function Mat(){return Ji??(Ji=BMe(["ArrayIterator","MapIterator","SetIterator","StringIterator"],1))}function Rat(r){return at||(at=Rc("IteratorObject",3,r))||Ht}function Fat(r){return Kt||(Kt=Rc("Generator",3,r))||Ht}function Oat(r){return Xt||(Xt=Rc("IteratorYieldResult",1,r))||Ht}function Lat(r){return Ar||(Ar=Rc("IteratorReturnResult",1,r))||Ht}function QMe(r){return Uo||(Uo=Rc("Disposable",0,r))||Oa}function jat(r){return _a||(_a=Rc("AsyncDisposable",0,r))||Oa}function KMe(r,a=0){let l=jD(r,788968,void 0);return l&&WMe(l,a)}function Wat(){return vl||(vl=ZQ("Extract",2,!0)||Y),vl===Y?void 0:vl}function Bat(){return Df||(Df=ZQ("Omit",2,!0)||Y),Df===Y?void 0:Df}function Dme(r){return Lp||(Lp=ZQ("Awaited",1,r)||(r?Y:void 0)),Lp===Y?void 0:Lp}function zat(){return tm||(tm=Rc("BigInt",0,!1))||Oa}function Jat(r){return Z_??(Z_=Rc("ClassDecoratorContext",1,r))??Ht}function Gat(r){return rm??(rm=Rc("ClassMethodDecoratorContext",2,r))??Ht}function Uat(r){return Xm??(Xm=Rc("ClassGetterDecoratorContext",2,r))??Ht}function Vat(r){return _d??(_d=Rc("ClassSetterDecoratorContext",2,r))??Ht}function qat(r){return Y0??(Y0=Rc("ClassAccessorDecoratorContext",2,r))??Ht}function $at(r){return Gf??(Gf=Rc("ClassAccessorDecoratorTarget",2,r))??Ht}function Hat(r){return bv??(bv=Rc("ClassAccessorDecoratorResult",2,r))??Ht}function Qat(r){return Z0??(Z0=Rc("ClassFieldDecoratorContext",2,r))??Ht}function Kat(){return ky||(ky=kme("NaN",!1))}function Xat(){return Ph||(Ph=ZQ("Record",2,!0)||Y),Ph===Y?void 0:Ph}function dN(r,a){return r!==Ht?Ny(r,a):Oa}function XMe(r){return dN(xat(),[r])}function YMe(r){return dN(eK(!0),[r,vr,pe])}function Ru(r,a){return dN(a?Ma:Js,[r])}function Pme(r){switch(r.kind){case 190:return 2;case 191:return ZMe(r);case 202:return r.questionToken?2:r.dotDotDotToken?ZMe(r):1;default:return 1}}function ZMe(r){return qj(r.type)?4:8}function Yat(r){let a=tot(r.parent);if(qj(r))return a?Ma:Js;let f=hr(r.elements,Pme);return Ame(f,a,hr(r.elements,Zat))}function Zat(r){return fI(r)||Bi(r)?r:void 0}function e3e(r,a){return!!tw(r)||t3e(r)&&(r.kind===188?pb(r.elementType):r.kind===189?pt(r.elements,pb):a||pt(r.typeArguments,pb))}function t3e(r){let a=r.parent;switch(a.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return t3e(a);case 265:return!0}return!1}function pb(r){switch(r.kind){case 183:return XQ(r)||!!(pN(r,788968).flags&524288);case 186:return!0;case 198:return r.operator!==158&&pb(r.type);case 196:case 190:case 202:case 316:case 314:case 315:case 309:return pb(r.type);case 191:return r.type.kind!==188||pb(r.type.elementType);case 192:case 193:return pt(r.types,pb);case 199:return pb(r.objectType)||pb(r.indexType);case 194:return pb(r.checkType)||pb(r.extendsType)||pb(r.trueType)||pb(r.falseType)}return!1}function eot(r){let a=wn(r);if(!a.resolvedType){let l=Yat(r);if(l===Ht)a.resolvedType=Oa;else if(!(r.kind===189&&pt(r.elements,f=>!!(Pme(f)&8)))&&e3e(r))a.resolvedType=r.kind===189&&r.elements.length===0?l:yme(l,r,void 0);else{let f=r.kind===188?[Fi(r.elementType)]:hr(r.elements,Fi);a.resolvedType=Eme(l,f)}}return a.resolvedType}function tot(r){return Gb(r)&&r.operator===148}function Hg(r,a,l=!1,f=[]){let d=Ame(a||hr(r,y=>1),l,f);return d===Ht?Oa:r.length?Eme(d,r):d}function Ame(r,a,l){if(r.length===1&&r[0]&4)return a?Ma:Js;let f=hr(r,y=>y&1?"#":y&2?"?":y&4?".":"*").join()+(a?"R":"")+(pt(l,y=>!!y)?","+hr(l,y=>y?Ua(y):"_").join(","):""),d=Rn.get(f);return d||Rn.set(f,d=rot(r,a,l)),d}function rot(r,a,l){let f=r.length,d=Hy(r,ke=>!!(ke&9)),y,k=[],R=0;if(f){y=new Array(f);for(let ke=0;ke<f;ke++){let he=y[ke]=wi(),Ze=r[ke];if(R|=Ze,!(R&12)){let mt=da(4|(Ze&2?16777216:0),""+ke,a?8:0);mt.links.tupleLabelDeclaration=l?.[ke],mt.links.type=he,k.push(mt)}}}let W=k.length,J=da(4,"length",a?8:0);if(R&12)J.links.type=Qt;else{let ke=[];for(let he=d;he<=f;he++)ke.push(Fd(he));J.links.type=ri(ke)}k.push(J);let Z=_r(12);return Z.typeParameters=y,Z.outerTypeParameters=void 0,Z.localTypeParameters=y,Z.instantiations=new Map,Z.instantiations.set(gd(Z.typeParameters),Z),Z.target=Z,Z.resolvedTypeArguments=Z.typeParameters,Z.thisType=wi(),Z.thisType.isThisType=!0,Z.thisType.constraint=Z,Z.declaredProperties=k,Z.declaredCallSignatures=qe,Z.declaredConstructSignatures=qe,Z.declaredIndexInfos=qe,Z.elementFlags=r,Z.minLength=d,Z.fixedLength=W,Z.hasRestElement=!!(R&12),Z.combinedFlags=R,Z.readonly=a,Z.labeledElementDeclarations=l,Z}function Eme(r,a){return r.objectFlags&8?Nme(r,a):Ny(r,a)}function Nme(r,a){var l,f,d,y;if(!(r.combinedFlags&14))return Ny(r,a);if(r.combinedFlags&8){let mt=Sc(a,(Ct,lr)=>!!(r.elementFlags[lr]&8&&Ct.flags&1179648));if(mt>=0)return Jj(hr(a,(Ct,lr)=>r.elementFlags[lr]&8?Ct:kt))?ac(a[mt],Ct=>Nme(r,PW(a,mt,Ct))):Ke}let k=[],R=[],W=[],J=-1,Z=-1,ke=-1;for(let mt=0;mt<a.length;mt++){let Ct=a[mt],lr=r.elementFlags[mt];if(lr&8)if(Ct.flags&1)Ze(Ct,4,(l=r.labeledElementDeclarations)==null?void 0:l[mt]);else if(Ct.flags&58982400||U_(Ct))Ze(Ct,8,(f=r.labeledElementDeclarations)==null?void 0:f[mt]);else if(Pa(Ct)){let rr=DT(Ct);if(rr.length+k.length>=1e4)return $e(x,Im(x)?p.Type_produces_a_tuple_type_that_is_too_large_to_represent:p.Expression_produces_a_tuple_type_that_is_too_large_to_represent),Ke;or(rr,(rn,Kr)=>{var pr;return Ze(rn,Ct.target.elementFlags[Kr],(pr=Ct.target.labeledElementDeclarations)==null?void 0:pr[Kr])})}else Ze($v(Ct)&&j1(Ct,Qt)||Ke,4,(d=r.labeledElementDeclarations)==null?void 0:d[mt]);else Ze(Ct,lr,(y=r.labeledElementDeclarations)==null?void 0:y[mt])}for(let mt=0;mt<J;mt++)R[mt]&2&&(R[mt]=1);Z>=0&&Z<ke&&(k[Z]=ri(ul(k.slice(Z,ke+1),(mt,Ct)=>R[Z+Ct]&8?sf(mt,Qt):mt)),k.splice(Z+1,ke-Z),R.splice(Z+1,ke-Z),W.splice(Z+1,ke-Z));let he=Ame(R,r.readonly,W);return he===Ht?Oa:R.length?Ny(he,k):he;function Ze(mt,Ct,lr){Ct&1&&(J=R.length),Ct&4&&Z<0&&(Z=R.length),Ct&6&&(ke=R.length),k.push(Ct&2?Yl(mt,!0):mt),R.push(Ct),W.push(lr)}}function mN(r,a,l=0){let f=r.target,d=Vv(r)-l;return a>f.fixedLength?Jct(r)||Hg(qe):Hg(Vo(r).slice(a,d),f.elementFlags.slice(a,d),!1,f.labeledElementDeclarations&&f.labeledElementDeclarations.slice(a,d))}function r3e(r){return ri(jr(DY(r.target.fixedLength,a=>V_(""+a)),_g(r.target.readonly?Ma:Js)))}function not(r,a){let l=Sc(r.elementFlags,f=>!(f&a));return l>=0?l:r.elementFlags.length}function SR(r,a){return r.elementFlags.length-k8(r.elementFlags,l=>!(l&a))-1}function Mme(r){return r.fixedLength+SR(r,3)}function DT(r){let a=Vo(r),l=Vv(r);return a.length===l?a:a.slice(0,l)}function iot(r){return Yl(Fi(r.type),!0)}function Zl(r){return r.id}function qh(r,a){return o0(r,a,Zl,Po)>=0}function zj(r,a){let l=o0(r,a,Zl,Po);return l<0?(r.splice(~l,0,a),!0):!1}function sot(r,a,l){let f=l.flags;if(!(f&131072))if(a|=f&473694207,f&465829888&&(a|=33554432),f&2097152&&Mn(l)&67108864&&(a|=536870912),l===vt&&(a|=8388608),We(l)&&(a|=1073741824),!te&&f&98304)Mn(l)&65536||(a|=4194304);else{let d=r.length,y=d&&l.id>r[d-1].id?~d:o0(r,l,Zl,Po);y<0&&r.splice(~y,0,l)}return a}function n3e(r,a,l){let f;for(let d of l)d!==f&&(a=d.flags&1048576?n3e(r,a|(_ot(d)?1048576:0),d.types):sot(r,a,d),f=d);return a}function aot(r,a){var l;if(r.length<2)return r;let f=gd(r),d=xr.get(f);if(d)return d;let y=a&&pt(r,J=>!!(J.flags&524288)&&!U_(J)&&rge(pm(J))),k=r.length,R=k,W=0;for(;R>0;){R--;let J=r[R];if(y||J.flags&469499904){if(J.flags&262144&&ug(J).flags&1048576){fg(J,ri(hr(r,he=>he===J?ar:he)),jp)&&f0(r,R);continue}let Z=J.flags&61603840?On(so(J),he=>dm(an(he))):void 0,ke=Z&&f_(an(Z));for(let he of r)if(J!==he){if(W===1e5&&W/(k-R)*k>1e6){(l=_n)==null||l.instant(_n.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:r.map(mt=>mt.id)}),$e(x,p.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(W++,Z&&he.flags&61603840){let Ze=ol(he,Z.escapedName);if(Ze&&dm(Ze)&&f_(Ze)!==ke)continue}if(fg(J,he,jp)&&(!(Mn(PD(J))&1)||!(Mn(PD(he))&1)||J1(J,he))){f0(r,R);break}}}}return xr.set(f,r),r}function oot(r,a,l){let f=r.length;for(;f>0;){f--;let d=r[f],y=d.flags;(y&402653312&&a&4||y&256&&a&8||y&2048&&a&64||y&8192&&a&4096||l&&y&32768&&a&16384||AT(d)&&qh(r,d.regularType))&&f0(r,f)}}function cot(r){let a=An(r,yx);if(a.length){let l=r.length;for(;l>0;){l--;let f=r[l];f.flags&128&&pt(a,d=>lot(f,d))&&f0(r,l)}}}function lot(r,a){return a.flags&134217728?AK(r,a):PK(r,a)}function uot(r){let a=[];for(let l of r)if(l.flags&2097152&&Mn(l)&67108864){let f=l.types[0].flags&8650752?0:1;Sp(a,l.types[f])}for(let l of a){let f=[];for(let y of r)if(y.flags&2097152&&Mn(y)&67108864){let k=y.types[0].flags&8650752?0:1;y.types[k]===l&&zj(f,y.types[1-k])}let d=Su(l);if(of(d,y=>qh(f,y))){let y=r.length;for(;y>0;){y--;let k=r[y];if(k.flags&2097152&&Mn(k)&67108864){let R=k.types[0].flags&8650752?0:1;k.types[R]===l&&qh(f,k.types[1-R])&&f0(r,y)}}zj(r,l)}}}function _ot(r){return!!(r.flags&1048576&&(r.aliasSymbol||r.origin))}function i3e(r,a){for(let l of a)if(l.flags&1048576){let f=l.origin;l.aliasSymbol||f&&!(f.flags&1048576)?Sp(r,l):f&&f.flags&1048576&&i3e(r,f.types)}}function Rme(r,a){let l=C(r);return l.types=a,l}function ri(r,a=1,l,f,d){if(r.length===0)return ar;if(r.length===1)return r[0];if(r.length===2&&!d&&(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,R=r[k].id+y+r[1-k].id+YC(l,f),W=ui.get(R);return W||(W=s3e(r,a,l,f,void 0),ui.set(R,W)),W}return s3e(r,a,l,f,d)}function s3e(r,a,l,f,d){let y=[],k=n3e(y,0,r);if(a!==0){if(k&3)return k&1?k&8388608?vt:k&1073741824?Ke:Fe:kt;if(k&32768&&y.length>=2&&y[0]===pe&&y[1]===Re&&f0(y,1),(k&402664352||k&16384&&k&32768)&&oot(y,k,!!(a&2)),k&128&&k&402653184&&cot(y),k&536870912&&uot(y),a===2&&(y=aot(y,!!(k&524288)),!y))return Ke;if(y.length===0)return k&65536?k&4194304?jt:we:k&32768?k&4194304?pe:j:ar}if(!d&&k&1048576){let W=[];i3e(W,r);let J=[];for(let ke of y)pt(W,he=>qh(he.types,ke))||J.push(ke);if(!l&&W.length===1&&J.length===0)return W[0];if(d_(W,(ke,he)=>ke+he.types.length,0)+J.length===y.length){for(let ke of W)zj(J,ke);d=Rme(1048576,J)}}let R=(k&36323331?0:32768)|(k&2097152?16777216:0);return Ome(y,R,l,f,d)}function fot(r,a){let l,f=[];for(let y of r){let k=zp(y);if(k){if(k.kind!==0&&k.kind!==1||l&&!Fme(l,k))return;l=k,f.push(k.type)}else{let R=a!==2097152?Za(y):void 0;if(R!==Pr&&R!==$r)return}}if(!l)return;let d=xMe(f,a);return yR(l.kind,l.parameterName,l.parameterIndex,d)}function Fme(r,a){return r.kind===a.kind&&r.parameterIndex===a.parameterIndex}function Ome(r,a,l,f,d){if(r.length===0)return ar;if(r.length===1)return r[0];let k=(d?d.flags&1048576?`|${gd(d.types)}`:d.flags&2097152?`&${gd(d.types)}`:`#${d.type.id}|${gd(r)}`:gd(r))+YC(l,f),R=hn.get(k);return R||(R=Py(1048576),R.objectFlags=a|Lj(r,98304),R.types=r,R.origin=d,R.aliasSymbol=l,R.aliasTypeArguments=f,r.length===2&&r[0].flags&512&&r[1].flags&512&&(R.flags|=16,R.intrinsicName="boolean"),hn.set(k,R)),R}function pot(r){let a=wn(r);if(!a.resolvedType){let l=tw(r);a.resolvedType=ri(hr(r.types,Fi),1,l,WD(l))}return a.resolvedType}function dot(r,a,l){let f=l.flags;return f&2097152?a3e(r,a,l.types):(Kg(l)?a&16777216||(a|=16777216,r.set(l.id.toString(),l)):(f&3?(l===vt&&(a|=8388608),We(l)&&(a|=1073741824)):(te||!(f&98304))&&(l===Re&&(a|=262144,l=pe),r.has(l.id.toString())||(l.flags&109472&&a&109472&&(a|=67108864),r.set(l.id.toString(),l))),a|=f&473694207),a)}function a3e(r,a,l){for(let f of l)a=dot(r,a,f_(f));return a}function mot(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||Kg(f)&&a&470302716)&&f0(r,l)}}function got(r,a){for(let l of r)if(!qh(l.types,a)){if(a===Re)return qh(l.types,pe);if(a===pe)return qh(l.types,Re);let f=a.flags&128?ut:a.flags&288?Qt:a.flags&2048?en:a.flags&8192?Ot:void 0;if(!f||!qh(l.types,f))return!1}return!0}function hot(r){let a=r.length,l=An(r,f=>!!(f.flags&128));for(;a>0;){a--;let f=r[a];if(f.flags&402653184){for(let d of l)if(RT(d,f)){f0(r,a);break}else if(yx(f))return!0}}return!1}function o3e(r,a){for(let l=0;l<r.length;l++)r[l]=cl(r[l],f=>!(f.flags&a))}function yot(r){let a,l=Sc(r,k=>!!(Mn(k)&32768));if(l<0)return!1;let f=l+1;for(;f<r.length;){let k=r[f];Mn(k)&32768?((a||(a=[r[l]])).push(k),f0(r,f)):f++}if(!a)return!1;let d=[],y=[];for(let k of a)for(let R of k.types)if(zj(d,R)&&got(a,R)){if(R===pe&&y.length&&y[0]===Re)continue;if(R===Re&&y.length&&y[0]===pe){y[0]=Re;continue}zj(y,R)}return r[l]=Ome(y,32768),!0}function vot(r,a,l,f){let d=Py(2097152);return d.objectFlags=a|Lj(r,98304),d.types=r,d.aliasSymbol=l,d.aliasTypeArguments=f,d}function ma(r,a=0,l,f){let d=new Map,y=a3e(d,0,r),k=ps(d.values()),R=0;if(y&131072)return Ts(k,Gt)?Gt:ar;if(te&&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&&hot(k))return ar;if(y&1)return y&8388608?vt:y&1073741824?Ke:Fe;if(!te&&y&98304)return y&16777216?ar:y&32768?pe: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||mot(k,y)),y&262144&&(k[k.indexOf(pe)]=Re),k.length===0)return kt;if(k.length===1)return k[0];if(k.length===2&&!(a&2)){let Z=k[0].flags&8650752?0:1,ke=k[Z],he=k[1-Z];if(ke.flags&8650752&&(he.flags&469893116&&!y3e(he)||y&16777216)){let Ze=Su(ke);if(Ze&&of(Ze,mt=>!!(mt.flags&469893116)||Kg(mt))){if(Qj(Ze,he))return ke;if(!(Ze.flags&1048576&&Vp(Ze,mt=>Qj(mt,he)))&&!Qj(he,Ze))return ar;R=67108864}}}let W=gd(k)+(a&2?"*":YC(l,f)),J=Ue.get(W);if(!J){if(y&1048576)if(yot(k))J=ma(k,a,l,f);else if(Oi(k,Z=>!!(Z.flags&1048576&&Z.types[0].flags&32768))){let Z=pt(k,NR)?Re:pe;o3e(k,32768),J=ri([ma(k,a),Z],1,l,f)}else if(Oi(k,Z=>!!(Z.flags&1048576&&(Z.types[0].flags&65536||Z.types[1].flags&65536))))o3e(k,65536),J=ri([ma(k,a),jt],1,l,f);else if(k.length>=3&&r.length>2){let Z=Math.floor(k.length/2);J=ma([ma(k.slice(0,Z),a),ma(k.slice(Z),a)],a,l,f)}else{if(!Jj(k))return Ke;let Z=bot(k,a),ke=pt(Z,he=>!!(he.flags&2097152))&&Lme(Z)>Lme(k)?Rme(2097152,k):void 0;J=ri(Z,1,l,f,ke)}else J=vot(k,R,l,f);Ue.set(W,J)}return J}function c3e(r){return d_(r,(a,l)=>l.flags&1048576?a*l.types.length:l.flags&131072?0:a,1)}function Jj(r){var a;let l=c3e(r);return l>=1e5?((a=_n)==null||a.instant(_n.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:r.map(f=>f.id),size:l}),$e(x,p.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function bot(r,a){let l=c3e(r),f=[];for(let d=0;d<l;d++){let y=r.slice(),k=d;for(let W=r.length-1;W>=0;W--)if(r[W].flags&1048576){let J=r[W].types,Z=J.length;y[W]=J[k%Z],k=Math.floor(k/Z)}let R=ma(y,a);R.flags&131072||f.push(R)}return f}function l3e(r){return!(r.flags&3145728)||r.aliasSymbol?1:r.flags&1048576&&r.origin?l3e(r.origin):Lme(r.types)}function Lme(r){return d_(r,(a,l)=>a+l3e(l),0)}function Sot(r){let a=wn(r);if(!a.resolvedType){let l=tw(r),f=hr(r.types,Fi),d=f.length===2?f.indexOf(Ys):-1,y=d>=0?f[1-d]:kt,k=!!(y.flags&76||y.flags&134217728&&yx(y));a.resolvedType=ma(f,k?1:0,l,WD(l))}return a.resolvedType}function u3e(r,a){let l=Py(4194304);return l.type=r,l.indexFlags=a,l}function Tot(r){let a=C(4194304);return a.type=r,a}function _3e(r,a){return a&1?r.resolvedStringIndexType||(r.resolvedStringIndexType=u3e(r,1)):r.resolvedIndexType||(r.resolvedIndexType=u3e(r,0))}function f3e(r,a){let l=fm(r),f=hp(r),d=Jv(r.target||r);if(!d&&!(a&2))return f;let y=[];if(bx(f)){if(MD(r))return _3e(r,a);Ix(f,R)}else if(MD(r)){let W=__(xT(r));ime(W,8576,!!(a&1),R)}else Ix(Nj(f),R);let k=a&2?cl(ri(y),W=>!(W.flags&5)):ri(y);if(k.flags&1048576&&f.flags&1048576&&gd(k.types)===gd(f.types))return f;return k;function R(W){let J=d?Hi(d,xR(r.mapper,l,W)):W;y.push(J===ut?tr:J)}}function kot(r){let a=fm(r);return l(Jv(r)||a);function l(f){return f.flags&470810623?!0:f.flags&16777216?f.root.isDistributive&&f.checkType===a:f.flags&137363456?Oi(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 My(r){if(ji(r))return ar;if(L_(r))return f_(rs(r));if(pa(r))return f_(Od(r));let a=dk(r);return a!==void 0?V_(Li(a)):gt(r)?f_(rs(r)):ar}function ZC(r,a,l){if(l||!(Ap(r)&6)){let f=$i(WQ(r)).nameType;if(!f){let d=vs(r.valueDeclaration);f=r.escapedName==="default"?V_("default"):d&&My(d)||(p4(r)?void 0:V_(Oc(r)))}if(f&&f.flags&a)return f}return ar}function p3e(r,a){return!!(r.flags&a||r.flags&2097152&&pt(r.types,l=>p3e(l,a)))}function xot(r,a,l){let f=l&&(Mn(r)&7||r.aliasSymbol)?Tot(r):void 0,d=hr(so(r),k=>ZC(k,a)),y=hr(Mu(r),k=>k!==Ci&&p3e(k.keyType,a)?k.keyType===ut&&a&8?tr:k.keyType:ar);return ri(Ki(d,y),1,void 0,void 0,f)}function jme(r,a=0){return!!(r.flags&58982400||hb(r)||U_(r)&&(!kot(r)||mR(r)===2)||r.flags&1048576&&!(a&4)&&ume(r)||r.flags&2097152&&zc(r,465829888)&&pt(r.types,Kg))}function _g(r,a=0){return r=Rd(r),LD(r)?vme(_g(r.baseType,a)):jme(r,a)?_3e(r,a):r.flags&1048576?ma(hr(r.types,l=>_g(l,a))):r.flags&2097152?ri(hr(r.types,l=>_g(l,a))):Mn(r)&32?f3e(r,a):r===vt?vt:r.flags&2?ar:r.flags&131073?si:xot(r,(a&2?128:402653316)|(a&1?0:12584),a===0)}function d3e(r){let a=Wat();return a?OD(a,[r,ut]):ut}function Cot(r){let a=d3e(_g(r));return a.flags&131072?ut:a}function wot(r){let a=wn(r);if(!a.resolvedType)switch(r.operator){case 143:a.resolvedType=_g(Fi(r.type));break;case 158:a.resolvedType=r.type.kind===155?$me(c4(r.parent)):Ke;break;case 148:a.resolvedType=Fi(r.type);break;default:w.assertNever(r.operator)}return a.resolvedType}function Iot(r){let a=wn(r);return a.resolvedType||(a.resolvedType=hx([r.head.text,...hr(r.templateSpans,l=>l.literal.text)],hr(r.templateSpans,l=>Fi(l.type)))),a.resolvedType}function hx(r,a){let l=Sc(a,J=>!!(J.flags&1179648));if(l>=0)return Jj(a)?ac(a[l],J=>hx(r,PW(a,l,J))):Ke;if(Ts(a,vt))return vt;let f=[],d=[],y=r[0];if(!W(r,a))return ut;if(f.length===0)return V_(y);if(d.push(y),Oi(d,J=>J==="")){if(Oi(f,J=>!!(J.flags&4)))return ut;if(f.length===1&&yx(f[0]))return f[0]}let k=`${gd(f)}|${hr(d,J=>J.length).join(",")}|${d.join("")}`,R=Pi.get(k);return R||Pi.set(k,R=Pot(d,f)),R;function W(J,Z){for(let ke=0;ke<Z.length;ke++){let he=Z[ke];if(he.flags&101248)y+=Dot(he)||"",y+=J[ke+1];else if(he.flags&134217728){if(y+=he.texts[0],!W(he.texts,he.types))return!1;y+=J[ke+1]}else if(bx(he)||Gj(he))f.push(he),d.push(y),y=J[ke+1];else return!1}return!0}}function Dot(r){return r.flags&128?r.value:r.flags&256?""+r.value:r.flags&2048?AS(r.value):r.flags&98816?r.intrinsicName:void 0}function Pot(r,a){let l=Py(134217728);return l.texts=r,l.types=a,l}function ew(r,a){return a.flags&1179648?ac(a,l=>ew(r,l)):a.flags&128?V_(m3e(r,a.value)):a.flags&134217728?hx(...Aot(r,a.texts,a.types)):a.flags&268435456&&r===a.symbol?a:a.flags&268435461||bx(a)?g3e(r,a):Gj(a)?g3e(r,hx(["",""],[a])):a}function m3e(r,a){switch(kU.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 Aot(r,a,l){switch(kU.get(r.escapedName)){case 0:return[a.map(f=>f.toUpperCase()),l.map(f=>ew(r,f))];case 1:return[a.map(f=>f.toLowerCase()),l.map(f=>ew(r,f))];case 2:return[a[0]===""?a:[a[0].charAt(0).toUpperCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[ew(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]===""?[ew(r,l[0]),...l.slice(1)]:l]}return[a,l]}function g3e(r,a){let l=`${ua(r)},${Zl(a)}`,f=Rs.get(l);return f||Rs.set(l,f=Eot(r,a)),f}function Eot(r,a){let l=zh(268435456,r);return l.type=a,l}function Not(r,a,l,f,d){let y=Py(8388608);return y.objectType=r,y.indexType=a,y.accessFlags=l,y.aliasSymbol=f,y.aliasTypeArguments=d,y}function TR(r){if(de)return!1;if(Mn(r)&4096)return!0;if(r.flags&1048576)return Oi(r.types,TR);if(r.flags&2097152)return pt(r.types,TR);if(r.flags&465829888){let a=ome(r);return a!==r&&TR(a)}return!1}function tK(r,a){return Ep(r)?Np(r):a&&tl(a)?dk(a):void 0}function Wme(r,a){if(a.flags&8208){let l=gr(r.parent,f=>!Oo(f))||r.parent;return _S(l)?km(l)&&je(r)&&wRe(l,r):Oi(a.declarations,f=>!Ns(f)||Cy(f))}return!0}function h3e(r,a,l,f,d,y){let k=d&&d.kind===212?d:void 0,R=d&&ji(d)?void 0:tK(l,d);if(R!==void 0){if(y&256)return q1(a,R)||Fe;let J=ca(a,R);if(J){if(y&64&&d&&J.declarations&&Pv(J)&&Wme(d,J)){let ke=k?.argumentExpression??(FS(d)?d.indexType:d);Lg(ke,J.declarations,R)}if(k){if(x9(J,k,$8e(k.expression,a.symbol)),FFe(k,J,P0(k))){$e(k.argumentExpression,p.Cannot_assign_to_0_because_it_is_a_read_only_property,Qi(J));return}if(y&8&&(wn(d).resolvedSymbol=J),W8e(k,J))return St}let Z=y&4?Wv(J):an(J);return k&&P0(k)!==1?zy(k,Z):d&&FS(d)&&NR(Z)?ri([Z,pe]):Z}if(of(a,Pa)&&Sh(R)){let Z=+R;if(d&&of(a,ke=>!(ke.target.combinedFlags&12))&&!(y&16)){let ke=Bme(d);if(Pa(a)){if(Z<0)return $e(ke,p.A_tuple_type_cannot_be_indexed_with_a_negative_value),pe;$e(ke,p.Tuple_type_0_of_length_1_has_no_element_at_index_2,tn(a),Vv(a),Li(R))}else $e(ke,p.Property_0_does_not_exist_on_type_1,Li(R),tn(a))}if(Z>=0)return W(Uh(a,Qt)),aRe(a,Z,y&1?Re:void 0)}}if(!(l.flags&98304)&&Tu(l,402665900)){if(a.flags&131073)return a;let J=gR(a,l)||Uh(a,ut);if(J){if(y&2&&J.keyType!==Qt){k&&(y&4?$e(k,p.Type_0_is_generic_and_can_only_be_indexed_for_reading,tn(r)):$e(k,p.Type_0_cannot_be_used_to_index_type_1,tn(l),tn(r)));return}if(d&&J.keyType===ut&&!Tu(l,12)){let Z=Bme(d);return $e(Z,p.Type_0_cannot_be_used_as_an_index_type,tn(l)),y&1?ri([J.type,Re]):J.type}return W(J),y&1&&!(a.symbol&&a.symbol.flags&384&&l.symbol&&l.flags&1024&&rf(l.symbol)===a.symbol)?ri([J.type,Re]):J.type}if(l.flags&131072)return ar;if(TR(a))return Fe;if(k&&!lX(a)){if(Hv(a)){if(de&&l.flags&384)return za.add(cn(k,p.Property_0_does_not_exist_on_type_1,l.value,tn(a))),pe;if(l.flags&12){let Z=hr(a.properties,ke=>an(ke));return ri(jr(Z,pe))}}if(a.symbol===Je&&R!==void 0&&Je.exports.has(R)&&Je.exports.get(R).flags&418)$e(k,p.Property_0_does_not_exist_on_type_1,Li(R),tn(a));else if(de&&!(y&128))if(R!==void 0&&J8e(R,a)){let Z=tn(a);$e(k,p.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,R,Z,Z+"["+oc(k.argumentExpression)+"]")}else if(j1(a,Qt))$e(k.argumentExpression,p.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let Z;if(R!==void 0&&(Z=V8e(R,a)))Z!==void 0&&$e(k.argumentExpression,p.Property_0_does_not_exist_on_type_1_Did_you_mean_2,R,tn(a),Z);else{let ke=O_t(a,k,l);if(ke!==void 0)$e(k,p.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,tn(a),ke);else{let he;if(l.flags&1024)he=Ps(void 0,p.Property_0_does_not_exist_on_type_1,"["+tn(l)+"]",tn(a));else if(l.flags&8192){let Ze=Dy(l.symbol,k);he=Ps(void 0,p.Property_0_does_not_exist_on_type_1,"["+Ze+"]",tn(a))}else l.flags&128||l.flags&256?he=Ps(void 0,p.Property_0_does_not_exist_on_type_1,l.value,tn(a)):l.flags&12&&(he=Ps(void 0,p.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,tn(l),tn(a)));he=Ps(he,p.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,tn(f),tn(a)),za.add(fh(Fr(k),k,he))}}}return}}if(y&16&&Hv(a))return pe;if(TR(a))return Fe;if(d){let J=Bme(d);if(J.kind!==10&&l.flags&384)$e(J,p.Property_0_does_not_exist_on_type_1,""+l.value,tn(a));else if(l.flags&12)$e(J,p.Type_0_has_no_matching_index_signature_for_type_1,tn(a),tn(l));else{let Z=J.kind===10?"bigint":tn(l);$e(J,p.Type_0_cannot_be_used_as_an_index_type,Z)}}if(Se(l))return l;return;function W(J){J&&J.isReadonly&&k&&(A0(k)||Dz(k))&&$e(k,p.Index_signature_in_type_0_only_permits_reading,tn(a))}}function Bme(r){return r.kind===212?r.argumentExpression:r.kind===199?r.indexType:r.kind===167?r.expression:r}function Gj(r){if(r.flags&2097152){let a=!1;for(let l of r.types)if(l.flags&101248||Gj(l))a=!0;else if(!(l.flags&524288))return!1;return a}return!!(r.flags&77)||yx(r)}function yx(r){return!!(r.flags&134217728)&&Oi(r.types,Gj)||!!(r.flags&268435456)&&Gj(r.type)}function y3e(r){return!!(r.flags&402653184)&&!yx(r)}function z1(r){return!!kR(r)}function vx(r){return!!(kR(r)&4194304)}function bx(r){return!!(kR(r)&8388608)}function kR(r){return r.flags&3145728?(r.objectFlags&2097152||(r.objectFlags|=2097152|d_(r.types,(a,l)=>a|kR(l),0)),r.objectFlags&12582912):r.flags&33554432?(r.objectFlags&2097152||(r.objectFlags|=2097152|kR(r.baseType)|kR(r.constraint)),r.objectFlags&12582912):(r.flags&58982400||U_(r)||hb(r)?4194304:0)|(r.flags&63176704||y3e(r)?8388608:0)}function Ry(r,a){return r.flags&8388608?Rot(r,a):r.flags&16777216?Fot(r,a):r}function v3e(r,a,l){if(r.flags&1048576||r.flags&2097152&&!jme(r)){let f=hr(r.types,d=>Ry(sf(d,a),l));return r.flags&2097152||l?ma(f):ri(f)}}function Mot(r,a,l){if(a.flags&1048576){let f=hr(a.types,d=>Ry(sf(r,d),l));return l?ma(f):ri(f)}}function Rot(r,a){let l=a?"simplifiedForWriting":"simplifiedForReading";if(r[l])return r[l]===wc?r:r[l];r[l]=wc;let f=Ry(r.objectType,a),d=Ry(r.indexType,a),y=Mot(f,d,a);if(y)return r[l]=y;if(!(d.flags&465829888)){let k=v3e(f,d,a);if(k)return r[l]=k}if(hb(f)&&d.flags&296){let k=yN(f,d.flags&8?0:f.target.fixedLength,0,a);if(k)return r[l]=k}return U_(f)&&mR(f)!==2?r[l]=ac(rK(f,r.indexType),k=>Ry(k,a)):r[l]=r}function Fot(r,a){let l=r.checkType,f=r.extendsType,d=mb(r),y=gb(r);if(y.flags&131072&&Fy(d)===Fy(l)){if(l.flags&1||Hs(Tx(l),Tx(f)))return Ry(d,a);if(b3e(l,f))return ar}else if(d.flags&131072&&Fy(y)===Fy(l)){if(!(l.flags&1)&&Hs(Tx(l),Tx(f)))return ar;if(l.flags&1||b3e(l,f))return Ry(y,a)}return r}function b3e(r,a){return!!(ri([Ej(r,a),ar]).flags&131072)}function rK(r,a){let l=af([fm(r)],[a]),f=NT(r.mapper,l),d=Hi(Ey(r.target||r),f),y=lMe(r)>0||(z1(r)?cN(xT(r))>0:Oot(r,a));return Yl(d,!0,y)}function Oot(r,a){let l=Su(a);return!!l&&pt(so(r),f=>!!(f.flags&16777216)&&Hs(ZC(f,8576),l))}function sf(r,a,l=0,f,d,y){return db(r,a,l,f,d,y)||(f?Ke:kt)}function S3e(r,a){return of(r,l=>{if(l.flags&384){let f=Np(l);if(Sh(f)){let d=+f;return d>=0&&d<a}}return!1})}function db(r,a,l=0,f,d,y){if(r===vt||a===vt)return vt;if(r=Rd(r),V3e(r)&&!(a.flags&98304)&&Tu(a,12)&&(a=ut),F.noUncheckedIndexedAccess&&l&32&&(l|=1),bx(a)||(f&&f.kind!==199?hb(r)&&!S3e(a,Mme(r.target)):vx(r)&&!(Pa(r)&&S3e(a,Mme(r.target)))||ume(r))){if(r.flags&3)return r;let R=l&1,W=r.id+","+a.id+","+R+YC(d,y),J=Xn.get(W);return J||Xn.set(W,J=Not(r,a,R,d,y)),J}let k=lN(r);if(a.flags&1048576&&!(a.flags&16)){let R=[],W=!1;for(let J of a.types){let Z=h3e(r,k,J,a,f,l|(W?128:0));if(Z)R.push(Z);else if(f)W=!0;else return}return W?void 0:l&4?ma(R,0,d,y):ri(R,1,d,y)}return h3e(r,k,a,a,f,l|8|64)}function T3e(r){let a=wn(r);if(!a.resolvedType){let l=Fi(r.objectType),f=Fi(r.indexType),d=tw(r);a.resolvedType=sf(l,f,0,r,d,WD(d))}return a.resolvedType}function zme(r){let a=wn(r);if(!a.resolvedType){let l=_r(32,r.symbol);l.declaration=r,l.aliasSymbol=tw(r),l.aliasTypeArguments=WD(l.aliasSymbol),a.resolvedType=l,hp(l)}return a.resolvedType}function Fy(r){return r.flags&33554432?Fy(r.baseType):r.flags&8388608&&(r.objectType.flags&33554432||r.indexType.flags&33554432)?sf(Fy(r.objectType),Fy(r.indexType)):r}function k3e(r){return j2(r)&&Dr(r.elements)>0&&!pt(r.elements,a=>i7(a)||s7(a)||fI(a)&&!!(a.questionToken||a.dotDotDotToken))}function x3e(r,a){return z1(r)||a&&Pa(r)&&pt(DT(r),z1)}function Jme(r,a,l,f,d){let y,k,R=0;for(;;){if(R===1e3)return $e(x,p.Type_instantiation_is_excessively_deep_and_possibly_infinite),Ke;let J=Hi(Fy(r.checkType),a),Z=Hi(r.extendsType,a);if(J===Ke||Z===Ke)return Ke;if(J===vt||Z===vt)return vt;let ke=tA(r.node.checkType),he=tA(r.node.extendsType),Ze=k3e(ke)&&k3e(he)&&Dr(ke.elements)===Dr(he.elements),mt=x3e(J,Ze),Ct;if(r.inferTypeParameters){let rr=RR(r.inferTypeParameters,void 0,0);a&&(rr.nonFixingMapper=NT(rr.nonFixingMapper,a)),mt||By(rr.inferences,J,Z,1536),Ct=a?NT(rr.mapper,a):rr.mapper}let lr=Ct?Hi(r.extendsType,Ct):Z;if(!mt&&!x3e(lr,Ze)){if(!(lr.flags&3)&&(J.flags&1||!Hs(wR(J),wR(lr)))){(J.flags&1||l&&!(lr.flags&131072)&&Vp(wR(lr),rn=>Hs(rn,wR(J))))&&(k||(k=[])).push(Hi(Fi(r.node.trueType),Ct||a));let rr=Fi(r.node.falseType);if(rr.flags&16777216){let rn=rr.root;if(rn.node.parent===r.node&&(!rn.isDistributive||rn.checkType===r.checkType)){r=rn;continue}if(W(rr,a))continue}y=Hi(rr,a);break}if(lr.flags&3||Hs(Tx(J),Tx(lr))){let rr=Fi(r.node.trueType),rn=Ct||a;if(W(rr,rn))continue;y=Hi(rr,rn);break}}y=Py(16777216),y.root=r,y.checkType=Hi(r.checkType,a),y.extendsType=Hi(r.extendsType,a),y.mapper=a,y.combinedMapper=Ct,y.aliasSymbol=f||r.aliasSymbol,y.aliasTypeArguments=f?d:Qg(r.aliasTypeArguments,a);break}return k?ri(jr(k,y)):y;function W(J,Z){if(J.flags&16777216&&Z){let ke=J.root;if(ke.outerTypeParameters){let he=NT(J.mapper,Z),Ze=hr(ke.outerTypeParameters,lr=>qv(lr,he)),mt=af(ke.outerTypeParameters,Ze),Ct=ke.isDistributive?qv(ke.checkType,mt):void 0;if(!Ct||Ct===ke.checkType||!(Ct.flags&1179648))return r=ke,a=mt,f=void 0,d=void 0,ke.aliasSymbol&&R++,!0}}return!1}}function mb(r){return r.resolvedTrueType||(r.resolvedTrueType=Hi(Fi(r.root.node.trueType),r.mapper))}function gb(r){return r.resolvedFalseType||(r.resolvedFalseType=Hi(Fi(r.root.node.falseType),r.mapper))}function Lot(r){return r.resolvedInferredTrueType||(r.resolvedInferredTrueType=r.combinedMapper?Hi(Fi(r.root.node.trueType),r.combinedMapper):mb(r))}function Gme(r){let a;return r.locals&&r.locals.forEach(l=>{l.flags&262144&&(a=jr(a,Bo(l)))}),a}function jot(r){return r.isDistributive&&(Hj(r.checkType,r.node.trueType)||Hj(r.checkType,r.node.falseType))}function Wot(r){let a=wn(r);if(!a.resolvedType){let l=Fi(r.checkType),f=tw(r),d=WD(f),y=Bv(r,!0),k=d?y:An(y,W=>Hj(W,r)),R={node:r,checkType:l,extendsType:Fi(r.extendsType),isDistributive:!!(l.flags&262144),inferTypeParameters:Gme(r),outerTypeParameters:k,instantiations:void 0,aliasSymbol:f,aliasTypeArguments:d};a.resolvedType=Jme(R,void 0,!1),k&&(R.instantiations=new Map,R.instantiations.set(gd(k),a.resolvedType))}return a.resolvedType}function Bot(r){let a=wn(r);return a.resolvedType||(a.resolvedType=kT(In(r.typeParameter))),a.resolvedType}function C3e(r){return je(r)?[r]:jr(C3e(r.left),r.right)}function w3e(r){var a;let l=wn(r);if(!l.resolvedType){if(!sy(r))return $e(r.argument,p.String_literal_expected),l.resolvedSymbol=Y,l.resolvedType=Ke;let f=r.isTypeOf?111551:r.flags&16777216?900095:788968,d=u_(r,r.argument.literal);if(!d)return l.resolvedSymbol=Y,l.resolvedType=Ke;let y=!!((a=d.exports)!=null&&a.get("export=")),k=J_(d,!1);if(Tc(r.qualifier))if(k.flags&f)l.resolvedType=I3e(r,l,k,f);else{let R=f===111551?p.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:p.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;$e(r,R,r.argument.literal.text),l.resolvedSymbol=Y,l.resolvedType=Ke}else{let R=C3e(r.qualifier),W=k,J;for(;J=R.shift();){let Z=R.length?1920:f,ke=Va(Pc(W)),he=r.isTypeOf||un(r)&&y?ca(an(ke),J.escapedText,!1,!0):void 0,mt=(r.isTypeOf?void 0:c_(Nf(ke),J.escapedText,Z))??he;if(!mt)return $e(J,p.Namespace_0_has_no_exported_member_1,Dy(W),Co(J)),l.resolvedType=Ke;wn(J).resolvedSymbol=mt,wn(J.parent).resolvedSymbol=mt,W=mt}l.resolvedType=I3e(r,l,W,f)}}return l.resolvedType}function I3e(r,a,l,f){let d=Pc(l);return a.resolvedSymbol=d,f===111551?SFe(an(l),r):KQ(r,d)}function D3e(r){let a=wn(r);if(!a.resolvedType){let l=tw(r);if(!r.symbol||Vg(r.symbol).size===0&&!l)a.resolvedType=Ys;else{let f=_r(16,r.symbol);f.aliasSymbol=l,f.aliasTypeArguments=WD(l),Ak(r)&&r.isArrayType&&(f=Ru(f)),a.resolvedType=f}}return a.resolvedType}function tw(r){let a=r.parent;for(;xk(a)||Qb(a)||Gb(a)&&a.operator===148;)a=a.parent;return s4(a)?In(a):void 0}function WD(r){return r?Md(r):void 0}function nK(r){return!!(r.flags&524288)&&!U_(r)}function Ume(r){return Oy(r)||!!(r.flags&474058748)}function Vme(r,a){if(!(r.flags&1048576))return r;if(Oi(r.types,Ume))return On(r.types,Oy)||Oa;let l=On(r.types,y=>!Ume(y));if(!l||On(r.types,y=>y!==l&&!Ume(y)))return r;return d(l);function d(y){let k=ea();for(let W of so(y))if(!(Ap(W)&6)){if(iK(W)){let J=W.flags&65536&&!(W.flags&32768),ke=da(16777220,W.escapedName,nme(W)|(a?8:0));ke.links.type=J?pe:Yl(an(W),!0),ke.declarations=W.declarations,ke.links.nameType=$i(W).nameType,ke.links.syntheticOrigin=W,k.set(W.escapedName,ke)}}let R=tc(y.symbol,k,qe,qe,Mu(y));return R.objectFlags|=131200,R}}function PT(r,a,l,f,d){if(r.flags&1||a.flags&1)return Fe;if(r.flags&2||a.flags&2)return kt;if(r.flags&131072)return a;if(a.flags&131072)return r;if(r=Vme(r,d),r.flags&1048576)return Jj([r,a])?ac(r,J=>PT(J,a,l,f,d)):Ke;if(a=Vme(a,d),a.flags&1048576)return Jj([r,a])?ac(a,J=>PT(r,J,l,f,d)):Ke;if(a.flags&473960444)return r;if(vx(r)||vx(a)){if(Oy(r))return a;if(r.flags&2097152){let J=r.types,Z=J[J.length-1];if(nK(Z)&&nK(a))return ma(Ki(J.slice(0,J.length-1),[PT(Z,a,l,f,d)]))}return ma([r,a])}let y=ea(),k=new Set,R=r===Oa?Mu(a):iMe([r,a]);for(let J of so(a))Ap(J)&6?k.add(J.escapedName):iK(J)&&y.set(J.escapedName,qme(J,d));for(let J of so(r))if(!(k.has(J.escapedName)||!iK(J)))if(y.has(J.escapedName)){let Z=y.get(J.escapedName),ke=an(Z);if(Z.flags&16777216){let he=Ki(J.declarations,Z.declarations),Ze=4|J.flags&16777216,mt=da(Ze,J.escapedName),Ct=an(J),lr=kK(Ct),rr=kK(ke);mt.links.type=lr===rr?Ct:ri([Ct,rr],2),mt.links.leftSpread=J,mt.links.rightSpread=Z,mt.declarations=he,mt.links.nameType=$i(J).nameType,y.set(J.escapedName,mt)}}else y.set(J.escapedName,qme(J,d));let W=tc(l,y,qe,qe,ul(R,J=>zot(J,d)));return W.objectFlags|=2228352|f,W}function iK(r){var a;return!pt(r.declarations,Zu)&&(!(r.flags&106496)||!((a=r.declarations)!=null&&a.some(l=>ii(l.parent))))}function qme(r,a){let l=r.flags&65536&&!(r.flags&32768);if(!l&&a===ym(r))return r;let f=4|r.flags&16777216,d=da(f,r.escapedName,nme(r)|(a?8:0));return d.links.type=l?pe:an(r),d.declarations=r.declarations,d.links.nameType=$i(r).nameType,d.links.syntheticOrigin=r,d}function zot(r,a){return r.isReadonly!==a?Vh(r.keyType,r.type,a,r.declaration,r.components):r}function Uj(r,a,l,f){let d=zh(r,l);return d.value=a,d.regularType=f||d,d}function rw(r){if(r.flags&2976){if(!r.freshType){let a=Uj(r.flags,r.value,r.symbol,r);a.freshType=a,r.freshType=a}return r.freshType}return r}function f_(r){return r.flags&2976?r.regularType:r.flags&1048576?r.regularType||(r.regularType=ac(r,f_)):r}function AT(r){return!!(r.flags&2976)&&r.freshType===r}function V_(r){let a;return ht.get(r)||(ht.set(r,a=Uj(128,r)),a)}function Fd(r){let a;return sr.get(r)||(sr.set(r,a=Uj(256,r)),a)}function Vj(r){let a,l=AS(r);return Zr.get(l)||(Zr.set(l,a=Uj(2048,r)),a)}function Jot(r,a,l){let f,d=`${a}${typeof r=="string"?"@":"#"}${r}`,y=1024|(typeof r=="string"?128:256);return Zn.get(d)||(Zn.set(d,f=Uj(y,r,l)),f)}function Got(r){if(r.literal.kind===106)return jt;let a=wn(r);return a.resolvedType||(a.resolvedType=f_(rs(r.literal))),a.resolvedType}function Uot(r){let a=zh(8192,r);return a.escapedName=`__@${a.symbol.escapedName}@${ua(a.symbol)}`,a}function $me(r){if(un(r)&&Qb(r)){let a=bS(r);a&&(r=p2(a)||a)}if(jte(r)){let a=PF(r)?Vf(r.left):Vf(r);if(a){let l=$i(a);return l.uniqueESSymbolType||(l.uniqueESSymbolType=Uot(a))}}return Ot}function Vot(r){let a=t_(r,!1,!1),l=a&&a.parent;if(l&&(ii(l)||l.kind===264)&&!Ks(a)&&(!lc(a)||SS(r,a.body)))return Bp(In(l)).thisType;if(l&&Sa(l)&&vn(l.parent)&&Vc(l.parent)===6)return Bp(Vf(l.parent.left).parent).thisType;let f=r.flags&16777216?Fb(r):void 0;return f&&Ao(f)&&vn(f.parent)&&Vc(f.parent)===3?Bp(Vf(f.parent.left).parent).thisType:mg(a)&&SS(r,a.body)?Bp(In(a)).thisType:($e(r,p.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Ke)}function Hme(r){let a=wn(r);return a.resolvedType||(a.resolvedType=Vot(r)),a.resolvedType}function P3e(r){return Fi(qj(r.type)||r.type)}function qj(r){switch(r.kind){case 196:return qj(r.type);case 189:if(r.elements.length===1&&(r=r.elements[0],r.kind===191||r.kind===202&&r.dotDotDotToken))return qj(r.type);break;case 188:return r.elementType}}function qot(r){let a=wn(r);return a.resolvedType||(a.resolvedType=r.dotDotDotToken?P3e(r):Yl(Fi(r.type),!0,!!r.questionToken))}function Fi(r){return Tat(A3e(r),r)}function A3e(r){switch(r.kind){case 133:case 312:case 313:return Fe;case 159:return kt;case 154:return ut;case 150:return Qt;case 163:return en;case 136:return Ut;case 155:return Ot;case 116:return vr;case 157:return pe;case 106:return jt;case 146:return ar;case 151:return r.flags&524288&&!de?Fe:kr;case 141:return Pe;case 197:case 110:return Hme(r);case 201:return Got(r);case 183:return YQ(r);case 182:return r.assertsModifier?vr:Ut;case 233:return YQ(r);case 186:return jMe(r);case 188:case 189:return eot(r);case 190:return iot(r);case 192:return pot(r);case 193:return Sot(r);case 314:return kat(r);case 316:return Yl(Fi(r.type));case 202:return qot(r);case 196:case 315:case 309:return Fi(r.type);case 191:return P3e(r);case 318:return igt(r);case 184:case 185:case 187:case 322:case 317:case 323:return D3e(r);case 198:return wot(r);case 199:return T3e(r);case 200:return zme(r);case 194:return Wot(r);case 195:return Bot(r);case 203:return Iot(r);case 205:return w3e(r);case 80:case 166:case 211:let a=qp(r);return a?Bo(a):Ke;default:return Ke}}function sK(r,a,l){if(r&&r.length)for(let f=0;f<r.length;f++){let d=r[f],y=l(d,a);if(d!==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 Qg(r,a){return sK(r,a,Hi)}function aK(r,a){return sK(r,a,MT)}function E3e(r,a){return sK(r,a,ict)}function af(r,a){return r.length===1?ET(r[0],a?a[0]:Fe):$ot(r,a)}function qv(r,a){switch(a.kind){case 0:return r===a.source?a.target:r;case 1:{let f=a.sources,d=a.targets;for(let y=0;y<f.length;y++)if(r===f[y])return d?d[y]:Fe;return r}case 2:{let f=a.sources,d=a.targets;for(let y=0;y<f.length;y++)if(r===f[y])return d[y]();return r}case 3:return a.func(r);case 4:case 5:let l=qv(r,a.mapper1);return l!==r&&a.kind===4?Hi(l,a.mapper2):qv(l,a.mapper2)}}function ET(r,a){return w.attachDebugPrototypeIfDebug({kind:0,source:r,target:a})}function $ot(r,a){return w.attachDebugPrototypeIfDebug({kind:1,sources:r,targets:a})}function $j(r,a){return w.attachDebugPrototypeIfDebug({kind:3,func:r,debugInfo:w.isDebugging?a:void 0})}function Qme(r,a){return w.attachDebugPrototypeIfDebug({kind:2,sources:r,targets:a})}function oK(r,a,l){return w.attachDebugPrototypeIfDebug({kind:r,mapper1:a,mapper2:l})}function N3e(r){return af(r,void 0)}function Hot(r,a){let l=r.inferences.slice(a);return af(hr(l,f=>f.typeParameter),hr(l,()=>kt))}function NT(r,a){return r?oK(4,r,a):a}function Qot(r,a){return r?oK(5,r,a):a}function Sx(r,a,l){return l?oK(5,ET(r,a),l):ET(r,a)}function xR(r,a,l){return r?oK(5,r,ET(a,l)):ET(a,l)}function Kot(r){return!r.constraint&&!HQ(r)||r.constraint===sl?r:r.restrictiveInstantiation||(r.restrictiveInstantiation=wi(r.symbol),r.restrictiveInstantiation.constraint=sl,r.restrictiveInstantiation)}function Kme(r){let a=wi(r.symbol);return a.target=r,a}function M3e(r,a){return yR(r.kind,r.parameterName,r.parameterIndex,Hi(r.type,a))}function MT(r,a,l){let f;if(r.typeParameters&&!l){f=hr(r.typeParameters,Kme),a=NT(af(r.typeParameters,f),a);for(let y of f)y.mapper=a}let d=Gh(r.declaration,f,r.thisParameter&&Xme(r.thisParameter,a),sK(r.parameters,a,Xme),void 0,void 0,r.minArgumentCount,r.flags&167);return d.target=r,d.mapper=a,d}function Xme(r,a){let l=$i(r);if(l.type&&!vb(l.type)&&(!(r.flags&65536)||l.writeType&&!vb(l.writeType)))return r;kc(r)&1&&(r=l.target,a=NT(l.mapper,a));let f=da(r.flags,r.escapedName,1|kc(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 Xot(r,a,l,f){let d=r.objectFlags&4||r.objectFlags&8388608?r.node:r.symbol.declarations[0],y=wn(d),k=r.objectFlags&4?y.resolvedType:r.objectFlags&64?r.target:r,R=r.objectFlags&134217728?r.outerTypeParameters:y.outerTypeParameters;if(!R){let W=Bv(d,!0);if(mg(d)){let Z=SMe(d);W=jn(W,Z)}R=W||qe;let J=r.objectFlags&8388612?[d]:r.symbol.declarations;R=(k.objectFlags&8388612||k.symbol.flags&8192||k.symbol.flags&2048)&&!k.aliasTypeArguments?An(R,Z=>pt(J,ke=>Hj(Z,ke))):R,y.outerTypeParameters=R}if(R.length){let W=NT(r.mapper,a),J=hr(R,mt=>qv(mt,W)),Z=l||r.aliasSymbol,ke=l?f:Qg(r.aliasTypeArguments,a),he=(r.objectFlags&134217728?"S":"")+gd(J)+YC(Z,ke);k.instantiations||(k.instantiations=new Map,k.instantiations.set(gd(R)+YC(k.aliasSymbol,k.aliasTypeArguments),k));let Ze=k.instantiations.get(he);if(!Ze){if(r.objectFlags&134217728)return Ze=cK(r,a),k.instantiations.set(he,Ze),Ze;let mt=af(R,J);Ze=k.objectFlags&4?yme(r.target,r.node,mt,Z,ke):k.objectFlags&32?Zot(k,mt,Z,ke):cK(k,mt,Z,ke),k.instantiations.set(he,Ze);let Ct=Mn(Ze);if(Ze.flags&3899393&&!(Ct&524288)){let lr=pt(J,vb);Mn(Ze)&524288||(Ct&52?Ze.objectFlags|=524288|(lr?1048576:0):Ze.objectFlags|=lr?0:524288)}}return Ze}return r}function Yot(r){return!(r.parent.kind===183&&r.parent.typeArguments&&r===r.parent.typeName||r.parent.kind===205&&r.parent.typeArguments&&r===r.parent.qualifier)}function Hj(r,a){if(r.symbol&&r.symbol.declarations&&r.symbol.declarations.length===1){let f=r.symbol.declarations[0].parent;for(let d=a;d!==f;d=d.parent)if(!d||d.kind===241||d.kind===194&&Es(d.extendsType,l))return!0;return l(a)}return!0;function l(f){switch(f.kind){case 197:return!!r.isThisType;case 80:return!r.isThisType&&Im(f)&&Yot(f)&&A3e(f)===r;case 186:let d=f.exprName,y=h_(d);if(!N0(y)){let k=Hu(y),R=r.symbol.declarations[0],W=R.kind===168?R.parent:r.isThisType?R:void 0;if(k.declarations&&W)return pt(k.declarations,J=>SS(J,W))||pt(f.typeArguments,l)}return!0;case 174:case 173:return!f.type&&!!f.body||pt(f.typeParameters,l)||pt(f.parameters,l)||!!f.type&&l(f.type)}return!!Es(f,l)}}function CR(r){let a=hp(r);if(a.flags&4194304){let l=Fy(a.type);if(l.flags&262144)return l}}function Zot(r,a,l,f){let d=CR(r);if(d){let k=Hi(d,a);if(d!==k)return ORe(Rd(k),y,l,f)}return Hi(hp(r),a)===vt?vt:cK(r,a,l,f);function y(k){if(k.flags&61603843&&k!==vt&&!We(k)){if(!r.declaration.nameType){let R;if(Gp(k)||k.flags&1&&wD(d,4)<0&&(R=D_(d))&&of(R,G1))return tct(k,r,Sx(d,k,a));if(Pa(k))return ect(k,r,d,a);if(mMe(k))return ma(hr(k.types,y))}return cK(r,Sx(d,k,a))}return k}}function R3e(r,a){return a&1?!0:a&2?!1:r}function ect(r,a,l,f){let d=r.target.elementFlags,y=r.target.fixedLength,k=y?Sx(l,r,f):f,R=hr(DT(r),(ke,he)=>{let Ze=d[he];return he<y?F3e(a,V_(""+he),!!(Ze&2),k):Ze&8?Hi(a,Sx(l,ke,f)):n9(Hi(a,Sx(l,Ru(ke),f)))??kt}),W=qg(a),J=W&4?hr(d,ke=>ke&1?2:ke):W&8?hr(d,ke=>ke&2?1:ke):d,Z=R3e(r.target.readonly,qg(a));return Ts(R,Ke)?Ke:Hg(R,J,Z,r.target.labeledElementDeclarations)}function tct(r,a,l){let f=F3e(a,Qt,!0,l);return We(f)?Ke:Ru(f,R3e(gN(r),qg(a)))}function F3e(r,a,l,f){let d=xR(f,fm(r),a),y=Hi(Ey(r.target||r),d),k=qg(r);return te&&k&4&&!zc(y,49152)?yb(y,!0):te&&k&8&&l?Up(y,524288):y}function cK(r,a,l,f){w.assert(r.symbol,"anonymous type must have symbol to be instantiated");let d=_r(r.objectFlags&-1572865|64,r.symbol);if(r.objectFlags&32){d.declaration=r.declaration;let y=fm(r),k=Kme(y);d.typeParameter=k,a=NT(ET(y,k),a),k.mapper=a}return r.objectFlags&8388608&&(d.node=r.node),r.objectFlags&134217728&&(d.outerTypeParameters=r.outerTypeParameters),d.target=r,d.mapper=a,d.aliasSymbol=l||r.aliasSymbol,d.aliasTypeArguments=l?f:Qg(r.aliasTypeArguments,a),d.objectFlags|=d.aliasTypeArguments?Lj(d.aliasTypeArguments):0,d}function Yme(r,a,l,f,d){let y=r.root;if(y.outerTypeParameters){let k=hr(y.outerTypeParameters,J=>qv(J,a)),R=(l?"C":"")+gd(k)+YC(f,d),W=y.instantiations.get(R);if(!W){let J=af(y.outerTypeParameters,k),Z=y.checkType,ke=y.isDistributive?Rd(qv(Z,J)):void 0;W=ke&&Z!==ke&&ke.flags&1179648?ORe(ke,he=>Jme(y,Sx(Z,he,J),l),f,d):Jme(y,J,l,f,d),y.instantiations.set(R,W)}return W}return r}function Hi(r,a){return r&&a?O3e(r,a,void 0,void 0):r}function O3e(r,a,l,f){var d;if(!vb(r))return r;if(S===100||h>=5e6)return(d=_n)==null||d.instant(_n.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:r.id,instantiationDepth:S,instantiationCount:h}),$e(x,p.Type_instantiation_is_excessively_deep_and_possibly_infinite),Ke;m++,h++,S++;let y=rct(r,a,l,f);return S--,y}function rct(r,a,l,f){let d=r.flags;if(d&262144)return qv(r,a);if(d&524288){let y=r.objectFlags;if(y&52){if(y&4&&!r.node){let k=r.resolvedTypeArguments,R=Qg(k,a);return R!==k?Eme(r.target,R):r}return y&1024?nct(r,a):Xot(r,a,l,f)}return r}if(d&3145728){let y=r.flags&1048576?r.origin:void 0,k=y&&y.flags&3145728?y.types:r.types,R=Qg(k,a);if(R===k&&l===r.aliasSymbol)return r;let W=l||r.aliasSymbol,J=l?f:Qg(r.aliasTypeArguments,a);return d&2097152||y&&y.flags&2097152?ma(R,0,W,J):ri(R,1,W,J)}if(d&4194304)return _g(Hi(r.type,a));if(d&134217728)return hx(r.texts,Qg(r.types,a));if(d&268435456)return ew(r.symbol,Hi(r.type,a));if(d&8388608){let y=l||r.aliasSymbol,k=l?f:Qg(r.aliasTypeArguments,a);return sf(Hi(r.objectType,a),Hi(r.indexType,a),r.accessFlags,void 0,y,k)}if(d&16777216)return Yme(r,NT(r.mapper,a),!1,l,f);if(d&33554432){let y=Hi(r.baseType,a);if(LD(r))return vme(y);let k=Hi(r.constraint,a);return y.flags&8650752&&z1(k)?Sme(y,k):k.flags&3||Hs(Tx(y),Tx(k))?y:y.flags&8650752?Sme(y,k):ma([k,y])}return r}function nct(r,a){let l=Hi(r.mappedType,a);if(!(Mn(l)&32))return r;let f=Hi(r.constraintType,a);if(!(f.flags&4194304))return r;let d=dRe(Hi(r.source,a),l,f);return d||r}function wR(r){return r.flags&402915327?r:r.permissiveInstantiation||(r.permissiveInstantiation=Hi(r,uc))}function Tx(r){return r.flags&402915327?r:(r.restrictiveInstantiation||(r.restrictiveInstantiation=Hi(r,qc),r.restrictiveInstantiation.restrictiveInstantiation=r.restrictiveInstantiation),r.restrictiveInstantiation)}function ict(r,a){return Vh(r.keyType,Hi(r.type,a),r.isReadonly,r.declaration,r.components)}function vp(r){switch(w.assert(r.kind!==174||ed(r)),r.kind){case 218:case 219:case 174:case 262:return L3e(r);case 210:return pt(r.properties,vp);case 209:return pt(r.elements,vp);case 227:return vp(r.whenTrue)||vp(r.whenFalse);case 226:return(r.operatorToken.kind===57||r.operatorToken.kind===61)&&(vp(r.left)||vp(r.right));case 303:return vp(r.initializer);case 217:return vp(r.expression);case 292:return pt(r.properties,vp)||Hd(r.parent)&&pt(r.parent.parent.children,vp);case 291:{let{initializer:a}=r;return!!a&&vp(a)}case 294:{let{expression:a}=r;return!!a&&vp(a)}}return!1}function L3e(r){return jO(r)||sct(r)}function sct(r){return r.typeParameters||Wf(r)||!r.body?!1:r.body.kind!==241?vp(r.body):!!D0(r.body,a=>!!a.expression&&vp(a.expression))}function lK(r){return(O0(r)||ed(r))&&L3e(r)}function j3e(r){if(r.flags&524288){let a=pm(r);if(a.constructSignatures.length||a.callSignatures.length){let l=_r(16,r.symbol);return l.members=a.members,l.properties=a.properties,l.callSignatures=qe,l.constructSignatures=qe,l.indexInfos=qe,l}}else if(r.flags&2097152)return ma(hr(r.types,j3e));return r}function $h(r,a){return fg(r,a,Af)}function IR(r,a){return fg(r,a,Af)?-1:0}function Zme(r,a){return fg(r,a,z_)?-1:0}function act(r,a){return fg(r,a,Eh)?-1:0}function RT(r,a){return fg(r,a,Eh)}function Qj(r,a){return fg(r,a,jp)}function Hs(r,a){return fg(r,a,z_)}function J1(r,a){return r.flags&1048576?Oi(r.types,l=>J1(l,a)):a.flags&1048576?pt(a.types,l=>J1(r,l)):r.flags&2097152?pt(r.types,l=>J1(l,a)):r.flags&58982400?J1(Su(r)||kt,a):Kg(a)?!!(r.flags&67633152):a===Ee?!!(r.flags&67633152)&&!Kg(r):a===Wt?!!(r.flags&524288)&&Mge(r):AD(r,PD(a))||Gp(a)&&!gN(a)&&J1(r,Ma)}function uK(r,a){return fg(r,a,ef)}function Kj(r,a){return uK(r,a)||uK(a,r)}function Fu(r,a,l,f,d,y){return Jp(r,a,z_,l,f,d,y)}function FT(r,a,l,f,d,y){return ege(r,a,z_,l,f,d,y,void 0)}function ege(r,a,l,f,d,y,k,R){return fg(r,a,l)?!0:!f||!DR(d,r,a,l,y,k,R)?Jp(r,a,l,f,y,k,R):!1}function W3e(r){return!!(r.flags&16777216||r.flags&2097152&&pt(r.types,W3e))}function DR(r,a,l,f,d,y,k){if(!r||W3e(l))return!1;if(!Jp(a,l,f,void 0)&&oct(r,a,l,f,d,y,k))return!0;switch(r.kind){case 234:if(!BJ(r))break;case 294:case 217:return DR(r.expression,a,l,f,d,y,k);case 226:switch(r.operatorToken.kind){case 64:case 28:return DR(r.right,a,l,f,d,y,k)}break;case 210:return mct(r,a,l,f,y,k);case 209:return pct(r,a,l,f,y,k);case 292:return fct(r,a,l,f,y,k);case 219:return cct(r,a,l,f,y,k)}return!1}function oct(r,a,l,f,d,y,k){let R=Bs(a,0),W=Bs(a,1);for(let J of[W,R])if(pt(J,Z=>{let ke=Za(Z);return!(ke.flags&131073)&&Jp(ke,l,f,void 0)})){let Z=k||{};Fu(a,l,r,d,y,Z);let ke=Z.errors[Z.errors.length-1];return Xs(ke,cn(r,J===W?p.Did_you_mean_to_use_new_with_this_expression:p.Did_you_mean_to_call_this_expression)),!0}return!1}function cct(r,a,l,f,d,y){if(Fs(r.body)||pt(r.parameters,_F))return!1;let k=Ex(a);if(!k)return!1;let R=Bs(l,0);if(!Dr(R))return!1;let W=r.body,J=Za(k),Z=ri(hr(R,Za));if(!Jp(J,Z,f,void 0)){let ke=W&&DR(W,J,Z,f,void 0,d,y);if(ke)return ke;let he=y||{};if(Jp(J,Z,f,W,void 0,d,he),he.errors)return l.symbol&&Dr(l.symbol.declarations)&&Xs(he.errors[he.errors.length-1],cn(l.symbol.declarations[0],p.The_expected_type_comes_from_the_return_type_of_this_signature)),(Kc(r)&2)===0&&!ol(J,"then")&&Jp(N9(J),Z,f,void 0)&&Xs(he.errors[he.errors.length-1],cn(r,p.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function B3e(r,a,l){let f=db(a,l);if(f)return f;if(a.flags&1048576){let d=H3e(r,a);if(d)return db(d,l)}}function z3e(r,a){h9(r,a,!1);let l=wN(r,1);return WR(),l}function Xj(r,a,l,f,d,y){let k=!1;for(let R of r){let{errorNode:W,innerExpression:J,nameType:Z,errorMessage:ke}=R,he=B3e(a,l,Z);if(!he||he.flags&8388608)continue;let Ze=db(a,Z);if(!Ze)continue;let mt=tK(Z,void 0);if(!Jp(Ze,he,f,void 0)){let Ct=J&&DR(J,Ze,he,f,void 0,d,y);if(k=!0,!Ct){let lr=y||{},rr=J?z3e(J,Ze):Ze;if(ve&&fK(rr,he)){let rn=cn(W,p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,tn(rr),tn(he));za.add(rn),lr.errors=[rn]}else{let rn=!!(mt&&(ca(l,mt)||Y).flags&16777216),Kr=!!(mt&&(ca(a,mt)||Y).flags&16777216);he=Wy(he,rn),Ze=Wy(Ze,rn&&Kr),Jp(rr,he,f,W,ke,d,lr)&&rr!==Ze&&Jp(Ze,he,f,W,ke,d,lr)}if(lr.errors){let rn=lr.errors[lr.errors.length-1],Kr=Ep(Z)?Np(Z):void 0,pr=Kr!==void 0?ca(l,Kr):void 0,ir=!1;if(!pr){let yn=gR(l,Z);yn&&yn.declaration&&!Fr(yn.declaration).hasNoDefaultLib&&(ir=!0,Xs(rn,cn(yn.declaration,p.The_expected_type_comes_from_this_index_signature)))}if(!ir&&(pr&&Dr(pr.declarations)||l.symbol&&Dr(l.symbol.declarations))){let yn=pr&&Dr(pr.declarations)?pr.declarations[0]:l.symbol.declarations[0];Fr(yn).hasNoDefaultLib||Xs(rn,cn(yn,p.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,Kr&&!(Z.flags&8192)?Li(Kr):tn(Z),tn(l)))}}}}}return k}function lct(r,a,l,f,d,y){let k=cl(l,vK),R=cl(l,Z=>!vK(Z)),W=R!==ar?rye(13,0,R,void 0):void 0,J=!1;for(let Z=r.next();!Z.done;Z=r.next()){let{errorNode:ke,innerExpression:he,nameType:Ze,errorMessage:mt}=Z.value,Ct=W,lr=k!==ar?B3e(a,k,Ze):void 0;if(lr&&!(lr.flags&8388608)&&(Ct=W?ri([W,lr]):lr),!Ct)continue;let rr=db(a,Ze);if(!rr)continue;let rn=tK(Ze,void 0);if(!Jp(rr,Ct,f,void 0)){let Kr=he&&DR(he,rr,Ct,f,void 0,d,y);if(J=!0,!Kr){let pr=y||{},ir=he?z3e(he,rr):rr;if(ve&&fK(ir,Ct)){let yn=cn(ke,p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,tn(ir),tn(Ct));za.add(yn),pr.errors=[yn]}else{let yn=!!(rn&&(ca(k,rn)||Y).flags&16777216),Qn=!!(rn&&(ca(a,rn)||Y).flags&16777216);Ct=Wy(Ct,yn),rr=Wy(rr,yn&&Qn),Jp(ir,Ct,f,ke,mt,d,pr)&&ir!==rr&&Jp(rr,Ct,f,ke,mt,d,pr)}}}}return J}function*uct(r){if(Dr(r.properties))for(let a of r.properties)G2(a)||nhe(B4(a.name))||(yield{errorNode:a.name,innerExpression:a.initializer,nameType:V_(B4(a.name))})}function*_ct(r,a){if(!Dr(r.children))return;let l=0;for(let f=0;f<r.children.length;f++){let d=r.children[f],y=Fd(f-l),k=J3e(d,y,a);k?yield k:l++}}function J3e(r,a,l){switch(r.kind){case 294: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 284:case 285:case 288:return{errorNode:r,innerExpression:r,nameType:a};default:return w.assertNever(r,"Found invalid jsx child")}}function fct(r,a,l,f,d,y){let k=Xj(uct(r),a,l,f,d,y),R;if(Hd(r.parent)&&Wm(r.parent.parent)){let J=r.parent.parent,Z=v9(Px(r)),ke=Z===void 0?"children":Li(Z),he=V_(ke),Ze=sf(l,he),mt=Xw(J.children);if(!Dr(mt))return k;let Ct=Dr(mt)>1,lr,rr;if(eK(!1)!==Ht){let Kr=YMe(Fe);lr=cl(Ze,pr=>Hs(pr,Kr)),rr=cl(Ze,pr=>!Hs(pr,Kr))}else lr=cl(Ze,vK),rr=cl(Ze,Kr=>!vK(Kr));if(Ct){if(lr!==ar){let Kr=Hg(qK(J,0)),pr=_ct(J,W);k=lct(pr,Kr,lr,f,d,y)||k}else if(!fg(sf(a,he),Ze,f)){k=!0;let Kr=$e(J.openingElement.tagName,p.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,ke,tn(Ze));y&&y.skipLogging&&(y.errors||(y.errors=[])).push(Kr)}}else if(rr!==ar){let Kr=mt[0],pr=J3e(Kr,he,W);pr&&(k=Xj(function*(){yield pr}(),a,l,f,d,y)||k)}else if(!fg(sf(a,he),Ze,f)){k=!0;let Kr=$e(J.openingElement.tagName,p.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,ke,tn(Ze));y&&y.skipLogging&&(y.errors||(y.errors=[])).push(Kr)}}return k;function W(){if(!R){let J=oc(r.parent.tagName),Z=v9(Px(r)),ke=Z===void 0?"children":Li(Z),he=sf(l,V_(ke)),Ze=p._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;R={...Ze,key:"!!ALREADY FORMATTED!!",message:k2(Ze,J,ke,tn(he))}}return R}}function*G3e(r,a){let l=Dr(r.elements);if(l)for(let f=0;f<l;f++){if(hN(a)&&!ca(a,""+f))continue;let d=r.elements[f];if(Fl(d))continue;let y=Fd(f),k=tX(d);yield{errorNode:k,innerExpression:k,nameType:y}}}function pct(r,a,l,f,d,y){if(l.flags&402915324)return!1;if(hN(a))return Xj(G3e(r,l),a,l,f,d,y);h9(r,l,!1);let k=S8e(r,1,!0);return WR(),hN(k)?Xj(G3e(r,l),k,l,f,d,y):!1}function*dct(r){if(Dr(r.properties))for(let a of r.properties){if(xh(a))continue;let l=ZC(In(a),8576);if(!(!l||l.flags&131072))switch(a.kind){case 178:case 177:case 174:case 304:yield{errorNode:a.name,innerExpression:void 0,nameType:l};break;case 303:yield{errorNode:a.name,innerExpression:a.initializer,nameType:l,errorMessage:F6(a.name)?p.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0};break;default:w.assertNever(a)}}}function mct(r,a,l,f,d,y){return l.flags&402915324?!1:Xj(dct(r),a,l,f,d,y)}function U3e(r,a,l,f,d){return Jp(r,a,ef,l,f,d)}function gct(r,a,l){return tge(r,a,l?4:0,!1,void 0,void 0,Zme,void 0)!==0}function _K(r){if(!r.typeParameters&&(!r.thisParameter||Se(P9(r.thisParameter)))&&r.parameters.length===1&&Gu(r)){let a=P9(r.parameters[0]);return!!((Gp(a)?Vo(a)[0]:a).flags&131073&&Za(r).flags&3)}return!1}function tge(r,a,l,f,d,y,k,R){if(r===a||!(l&16&&_K(r))&&_K(a))return-1;if(l&16&&_K(r)&&!_K(a))return 0;let W=cf(a);if(!Xg(a)&&(l&8?Xg(r)||cf(r)>W:hm(r)>W))return f&&!(l&8)&&d(p.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,hm(r),W),0;r.typeParameters&&r.typeParameters!==a.typeParameters&&(a=dat(a),r=eFe(r,a,void 0,k));let Z=cf(r),ke=qR(r),he=qR(a);(ke||he)&&Hi(ke||he,R);let Ze=a.declaration?a.declaration.kind:0,mt=!(l&3)&&V&&Ze!==174&&Ze!==173&&Ze!==176,Ct=-1,lr=W1(r);if(lr&&lr!==vr){let Kr=W1(a);if(Kr){let pr=!mt&&k(lr,Kr,!1)||k(Kr,lr,f);if(!pr)return f&&d(p.The_this_types_of_each_signature_are_incompatible),0;Ct&=pr}}let rr=ke||he?Math.min(Z,W):Math.max(Z,W),rn=ke||he?rr-1:-1;for(let Kr=0;Kr<rr;Kr++){let pr=Kr===rn?CFe(r,Kr):WT(r,Kr),ir=Kr===rn?CFe(a,Kr):WT(a,Kr);if(pr&&ir&&(pr!==ir||l&8)){let yn=l&3||Y8e(r,Kr)?void 0:Ex(jy(pr)),Qn=l&3||Y8e(a,Kr)?void 0:Ex(jy(ir)),Dn=yn&&Qn&&!zp(yn)&&!zp(Qn)&&zD(pr,50331648)===zD(ir,50331648)?tge(Qn,yn,l&8|(mt?2:1),f,d,y,k,R):!(l&3)&&!mt&&k(pr,ir,!1)||k(ir,pr,f);if(Dn&&l&8&&Kr>=hm(r)&&Kr<hm(a)&&k(pr,ir,!1)&&(Dn=0),!Dn)return f&&d(p.Types_of_parameters_0_and_1_are_incompatible,Li(kN(r,Kr)),Li(kN(a,Kr))),0;Ct&=Dn}}if(!(l&4)){let Kr=JQ(a)?Fe:a.declaration&&mg(a.declaration)?Bp(Va(a.declaration.symbol)):Za(a);if(Kr===vr||Kr===Fe)return Ct;let pr=JQ(r)?Fe:r.declaration&&mg(r.declaration)?Bp(Va(r.declaration.symbol)):Za(r),ir=zp(a);if(ir){let yn=zp(r);if(yn)Ct&=hct(yn,ir,f,d,k);else if(Bte(ir)||zte(ir))return f&&d(p.Signature_0_must_be_a_type_predicate,bT(r)),0}else Ct&=l&1&&k(Kr,pr,!1)||k(pr,Kr,f),!Ct&&f&&y&&y(pr,Kr)}return Ct}function hct(r,a,l,f,d){if(r.kind!==a.kind)return l&&(f(p.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),f(p.Type_predicate_0_is_not_assignable_to_1,N1(r),N1(a))),0;if((r.kind===1||r.kind===3)&&r.parameterIndex!==a.parameterIndex)return l&&(f(p.Parameter_0_is_not_in_the_same_position_as_parameter_1,r.parameterName,a.parameterName),f(p.Type_predicate_0_is_not_assignable_to_1,N1(r),N1(a))),0;let y=r.type===a.type?-1:r.type&&a.type?d(r.type,a.type,l):0;return y===0&&l&&f(p.Type_predicate_0_is_not_assignable_to_1,N1(r),N1(a)),y}function yct(r,a){let l=bR(r),f=bR(a),d=Za(l),y=Za(f);return y===vr||fg(y,d,z_)||fg(d,y,z_)?gct(l,f,!0):!1}function rge(r){return r!==fo&&r.properties.length===0&&r.callSignatures.length===0&&r.constructSignatures.length===0&&r.indexInfos.length===0}function Oy(r){return r.flags&524288?!U_(r)&&rge(pm(r)):r.flags&67108864?!0:r.flags&1048576?pt(r.types,Oy):r.flags&2097152?Oi(r.types,Oy):!1}function Kg(r){return!!(Mn(r)&16&&(r.members&&rge(r)||r.symbol&&r.symbol.flags&2048&&Vg(r.symbol).size===0))}function vct(r){if(te&&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&&pt(a,Kg)?67108864:0)}return!!(r.objectFlags&67108864)}return!1}function BD(r){return!!((r.flags&1048576?r.types[0]:r).flags&32768)}function bct(r){let a=r.flags&1048576?r.types[0]:r;return!!(a.flags&32768)&&a!==Re}function V3e(r){return r.flags&524288&&!U_(r)&&so(r).length===0&&Mu(r).length===1&&!!Uh(r,ut)||r.flags&3145728&&Oi(r.types,V3e)||!1}function nge(r,a,l){let f=r.flags&8?rf(r):r,d=a.flags&8?rf(a):a;if(f===d)return!0;if(f.escapedName!==d.escapedName||!(f.flags&256)||!(d.flags&256))return!1;let y=ua(f)+","+ua(d),k=bl.get(y);if(k!==void 0&&!(k&2&&l))return!!(k&1);let R=an(d);for(let W of so(an(f)))if(W.flags&8){let J=ca(R,W.escapedName);if(!J||!(J.flags&8))return l&&l(p.Property_0_is_missing_in_type_1,Oc(W),tn(Bo(d),void 0,64)),bl.set(y,2),!1;let Z=Mx(Yo(W,306)).value,ke=Mx(Yo(J,306)).value;if(Z!==ke){let he=typeof Z=="string",Ze=typeof ke=="string";if(Z!==void 0&&ke!==void 0){if(l){let mt=he?`"${wg(Z)}"`:Z,Ct=Ze?`"${wg(ke)}"`:ke;l(p.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given,Oc(d),Oc(J),Ct,mt)}return bl.set(y,2),!1}if(he||Ze){if(l){let mt=Z??ke;w.assert(typeof mt=="string");let Ct=`"${wg(mt)}"`;l(p.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value,Oc(d),Oc(J),Ct)}return bl.set(y,2),!1}}}return bl.set(y,1),!0}function PR(r,a,l,f){let d=r.flags,y=a.flags;return y&1||d&131072||r===vt||y&2&&!(l===jp&&d&1)?!0:y&131072?!1:!!(d&402653316&&y&4||d&128&&d&1024&&y&128&&!(y&1024)&&r.value===a.value||d&296&&y&8||d&256&&d&1024&&y&256&&!(y&1024)&&r.value===a.value||d&2112&&y&64||d&528&&y&16||d&12288&&y&4096||d&32&&y&32&&r.symbol.escapedName===a.symbol.escapedName&&nge(r.symbol,a.symbol,f)||d&1024&&y&1024&&(d&1048576&&y&1048576&&nge(r.symbol,a.symbol,f)||d&2944&&y&2944&&r.value===a.value&&nge(r.symbol,a.symbol,f))||d&32768&&(!te&&!(y&3145728)||y&49152)||d&65536&&(!te&&!(y&3145728)||y&65536)||d&524288&&y&67108864&&!(l===jp&&Kg(r)&&!(Mn(r)&8192))||(l===z_||l===ef)&&(d&1||d&8&&(y&32||y&256&&y&1024)||d&256&&!(d&1024)&&(y&32||y&256&&y&1024&&r.value===a.value)||vct(a)))}function fg(r,a,l){if(AT(r)&&(r=r.regularType),AT(a)&&(a=a.regularType),r===a)return!0;if(l!==Af){if(l===ef&&!(a.flags&131072)&&PR(a,r,l)||PR(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(mK(r,a,0,l,!1));if(f!==void 0)return!!(f&1)}return r.flags&469499904||a.flags&469499904?Jp(r,a,l,void 0):!1}function q3e(r,a){return Mn(r)&2048&&nhe(a.escapedName)}function Yj(r,a){for(;;){let l=AT(r)?r.regularType:hb(r)?kct(r,a):Mn(r)&4?r.node?Ny(r.target,Vo(r)):_ge(r)||r:r.flags&3145728?Sct(r,a):r.flags&33554432?a?r.baseType:Tme(r):r.flags&25165824?Ry(r,a):r;if(l===r)return l;r=l}}function Sct(r,a){let l=Rd(r);if(l!==r)return l;if(r.flags&2097152&&Tct(r)){let f=ul(r.types,d=>Yj(d,a));if(f!==r.types)return ma(f)}return r}function Tct(r){let a=!1,l=!1;for(let f of r.types)if(a||(a=!!(f.flags&465829888)),l||(l=!!(f.flags&98304)||Kg(f)),a&&l)return!0;return!1}function kct(r,a){let l=DT(r),f=ul(l,d=>d.flags&25165824?Ry(d,a):d);return l!==f?Nme(r.target,f):r}function Jp(r,a,l,f,d,y,k){var R;let W,J,Z,ke,he,Ze,mt=0,Ct=0,lr=0,rr=0,rn=!1,Kr=0,pr=0,ir,yn,Qn=16e6-l.size>>3;w.assert(l!==Af||!f,"no error reporting in identity checking");let Wi=Xr(r,a,3,!!f,d);if(yn&&co(),rn){let Qe=mK(r,a,0,l,!1);l.set(Qe,2|(Qn<=0?32:64)),(R=_n)==null||R.instant(_n.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:r.id,targetId:a.id,depth:Ct,targetDepth:lr});let ot=Qn<=0?p.Excessive_complexity_comparing_types_0_and_1:p.Excessive_stack_depth_comparing_types_0_and_1,er=$e(f||x,ot,tn(r),tn(a));k&&(k.errors||(k.errors=[])).push(er)}else if(W){if(y){let er=y();er&&(Vre(er,W),W=er)}let Qe;if(d&&f&&!Wi&&r.symbol){let er=$i(r.symbol);if(er.originatingImport&&!jf(er.originatingImport)&&Jp(an(er.target),a,l,void 0)){let It=cn(er.originatingImport,p.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);Qe=jr(Qe,It)}}let ot=fh(Fr(f),f,W,Qe);J&&Xs(ot,...J),k&&(k.errors||(k.errors=[])).push(ot),(!k||!k.skipLogging)&&za.add(ot)}return f&&k&&k.skipLogging&&Wi===0&&w.assert(!!k.errors,"missed opportunity to interact with error."),Wi!==0;function Dn(Qe){W=Qe.errorInfo,ir=Qe.lastSkippedInfo,yn=Qe.incompatibleStack,Kr=Qe.overrideNextErrorInfo,pr=Qe.skipParentCounter,J=Qe.relatedInfo}function hs(){return{errorInfo:W,lastSkippedInfo:ir,incompatibleStack:yn?.slice(),overrideNextErrorInfo:Kr,skipParentCounter:pr,relatedInfo:J?.slice()}}function Gs(Qe,...ot){Kr++,ir=void 0,(yn||(yn=[])).push([Qe,...ot])}function co(){let Qe=yn||[];yn=void 0;let ot=ir;if(ir=void 0,Qe.length===1){As(...Qe[0]),ot&&bc(void 0,...ot);return}let er="",Vr=[];for(;Qe.length;){let[It,...Pt]=Qe.pop();switch(It.code){case p.Types_of_property_0_are_incompatible.code:{er.indexOf("new ")===0&&(er=`(${er})`);let fr=""+Pt[0];er.length===0?er=`${fr}`:$_(fr,wa(F))?er=`${er}.${fr}`:fr[0]==="["&&fr[fr.length-1]==="]"?er=`${er}${fr}`:er=`${er}[${fr}]`;break}case p.Call_signature_return_types_0_and_1_are_incompatible.code:case p.Construct_signature_return_types_0_and_1_are_incompatible.code:case p.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(er.length===0){let fr=It;It.code===p.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?fr=p.Call_signature_return_types_0_and_1_are_incompatible:It.code===p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(fr=p.Construct_signature_return_types_0_and_1_are_incompatible),Vr.unshift([fr,Pt[0],Pt[1]])}else{let fr=It.code===p.Construct_signature_return_types_0_and_1_are_incompatible.code||It.code===p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Rr=It.code===p.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||It.code===p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";er=`${fr}${er}(${Rr})`}break}case p.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{Vr.unshift([p.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Pt[0],Pt[1]]);break}case p.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{Vr.unshift([p.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Pt[0],Pt[1],Pt[2]]);break}default:return w.fail(`Unhandled Diagnostic: ${It.code}`)}}er?As(er[er.length-1]===")"?p.The_types_returned_by_0_are_incompatible_between_these_types:p.The_types_of_0_are_incompatible_between_these_types,er):Vr.shift();for(let[It,...Pt]of Vr){let fr=It.elidedInCompatabilityPyramid;It.elidedInCompatabilityPyramid=!1,As(It,...Pt),It.elidedInCompatabilityPyramid=fr}ot&&bc(void 0,...ot)}function As(Qe,...ot){w.assert(!!f),yn&&co(),!Qe.elidedInCompatabilityPyramid&&(pr===0?W=Ps(W,Qe,...ot):pr--)}function Qu(Qe,...ot){As(Qe,...ot),pr++}function tu(Qe){w.assert(!!W),J?J.push(Qe):J=[Qe]}function bc(Qe,ot,er){yn&&co();let[Vr,It]=A1(ot,er),Pt=ot,fr=Vr;if(!(er.flags&131072)&&AR(ot)&&!ige(er)&&(Pt=Ly(ot),w.assert(!Hs(Pt,er),"generalized source shouldn't be assignable"),fr=UC(Pt)),(er.flags&8388608&&!(ot.flags&8388608)?er.objectType.flags:er.flags)&262144&&er!==Oe&&er!==ft){let ln=Su(er),qn;ln&&(Hs(Pt,ln)||(qn=Hs(ot,ln)))?As(p._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,qn?Vr:fr,It,tn(ln)):(W=void 0,As(p._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,It,fr))}if(Qe)Qe===p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&ve&&$3e(ot,er).length&&(Qe=p.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)Qe=p.Type_0_is_not_comparable_to_type_1;else if(Vr===It)Qe=p.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(ve&&$3e(ot,er).length)Qe=p.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(ot.flags&128&&er.flags&1048576){let ln=L_t(ot,er);if(ln){As(p.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,fr,It,tn(ln));return}}Qe=p.Type_0_is_not_assignable_to_type_1}As(Qe,fr,It)}function Mr(Qe,ot){let er=xD(Qe.symbol)?tn(Qe,Qe.symbol.valueDeclaration):tn(Qe),Vr=xD(ot.symbol)?tn(ot,ot.symbol.valueDeclaration):tn(ot);(Wo===Qe&&ut===ot||Qc===Qe&&Qt===ot||hc===Qe&&Ut===ot||VMe()===Qe&&Ot===ot)&&As(p._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Vr,er)}function Nr(Qe,ot,er){return Pa(Qe)?Qe.target.readonly&&r9(ot)?(er&&As(p.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,tn(Qe),tn(ot)),!1):G1(ot):gN(Qe)&&r9(ot)?(er&&As(p.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,tn(Qe),tn(ot)),!1):Pa(ot)?Gp(Qe):!0}function Ti(Qe,ot,er){return Xr(Qe,ot,3,er)}function Xr(Qe,ot,er=3,Vr=!1,It,Pt=0){if(Qe===ot)return-1;if(Qe.flags&524288&&ot.flags&402784252)return l===ef&&!(ot.flags&131072)&&PR(ot,Qe,l)||PR(Qe,ot,l,Vr?As:void 0)?-1:(Vr&&ls(Qe,ot,Qe,ot,It),0);let fr=Yj(Qe,!1),Rr=Yj(ot,!0);if(fr===Rr)return-1;if(l===Af)return fr.flags!==Rr.flags?0:fr.flags&67358815?-1:(Ra(fr,Rr),Q1(fr,Rr,!1,0,er));if(fr.flags&262144&&dx(fr)===Rr)return-1;if(fr.flags&470302716&&Rr.flags&1048576){let ln=Rr.types,qn=ln.length===2&&ln[0].flags&98304?ln[1]:ln.length===3&&ln[0].flags&98304&&ln[1].flags&98304?ln[2]:void 0;if(qn&&!(qn.flags&98304)&&(Rr=Yj(qn,!0),fr===Rr))return-1}if(l===ef&&!(Rr.flags&131072)&&PR(Rr,fr,l)||PR(fr,Rr,l,Vr?As:void 0))return-1;if(fr.flags&469499904||Rr.flags&469499904){if(!(Pt&2)&&Hv(fr)&&Mn(fr)&8192&&ll(fr,Rr,Vr))return Vr&&bc(It,fr,ot.aliasSymbol?ot:Rr),0;let qn=(l!==ef||dm(fr))&&!(Pt&2)&&fr.flags&405405692&&fr!==Ee&&Rr.flags&2621440&&age(Rr)&&(so(fr).length>0||AX(fr)),Ni=!!(Mn(fr)&2048);if(qn&&!Cct(fr,Rr,Ni)){if(Vr){let Gi=tn(Qe.aliasSymbol?Qe:fr),Ds=tn(ot.aliasSymbol?ot:Rr),Aa=Bs(fr,0),fa=Bs(fr,1);Aa.length>0&&Xr(Za(Aa[0]),Rr,1,!1)||fa.length>0&&Xr(Za(fa[0]),Rr,1,!1)?As(p.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Gi,Ds):As(p.Type_0_has_no_properties_in_common_with_type_1,Gi,Ds)}return 0}Ra(fr,Rr);let xn=fr.flags&1048576&&fr.types.length<4&&!(Rr.flags&1048576)||Rr.flags&1048576&&Rr.types.length<4&&!(fr.flags&469499904)?q_(fr,Rr,Vr,Pt):Q1(fr,Rr,Vr,Pt,er);if(xn)return xn}return Vr&&ls(Qe,ot,fr,Rr,It),0}function ls(Qe,ot,er,Vr,It){var Pt,fr;let Rr=!!_ge(Qe),ln=!!_ge(ot);er=Qe.aliasSymbol||Rr?Qe:er,Vr=ot.aliasSymbol||ln?ot:Vr;let qn=Kr>0;if(qn&&Kr--,er.flags&524288&&Vr.flags&524288){let Ni=W;Nr(er,Vr,!0),W!==Ni&&(qn=!!W)}if(er.flags&524288&&Vr.flags&402784252)Mr(er,Vr);else if(er.symbol&&er.flags&524288&&Ee===er)As(p.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(Mn(er)&2048&&Vr.flags&2097152){let Ni=Vr.types,ni=jT(ap.IntrinsicAttributes,f),xn=jT(ap.IntrinsicClassAttributes,f);if(!We(ni)&&!We(xn)&&(Ts(Ni,ni)||Ts(Ni,xn)))return}else W=_me(W,ot);if(!It&&qn){let Ni=hs();bc(It,er,Vr);let ni;W&&W!==Ni.errorInfo&&(ni={code:W.code,messageText:W.messageText}),Dn(Ni),ni&&W&&(W.canonicalHead=ni),ir=[er,Vr];return}if(bc(It,er,Vr),er.flags&262144&&((fr=(Pt=er.symbol)==null?void 0:Pt.declarations)!=null&&fr[0])&&!dx(er)){let Ni=Kme(er);if(Ni.constraint=Hi(Vr,ET(er,Ni)),Rj(Ni)){let ni=tn(Vr,er.symbol.declarations[0]);tu(cn(er.symbol.declarations[0],p.This_type_parameter_might_need_an_extends_0_constraint,ni))}}}function Ra(Qe,ot){if(_n&&Qe.flags&3145728&&ot.flags&3145728){let er=Qe,Vr=ot;if(er.objectFlags&Vr.objectFlags&32768)return;let It=er.types.length,Pt=Vr.types.length;It*Pt>1e6&&_n.instant(_n.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:Qe.id,sourceSize:It,targetId:ot.id,targetSize:Pt,pos:f?.pos,end:f?.end})}}function No(Qe,ot){return ri(d_(Qe,(Vr,It)=>{var Pt;It=__(It);let fr=It.flags&3145728?Fj(It,ot):CT(It,ot),Rr=fr&&an(fr)||((Pt=XC(It,ot))==null?void 0:Pt.type)||pe;return jr(Vr,Rr)},void 0)||qe)}function ll(Qe,ot,er){var Vr;if(!JR(ot)||!de&&Mn(ot)&4096)return!1;let It=!!(Mn(Qe)&2048);if((l===z_||l===ef)&&(bN(Ee,ot)||!It&&Oy(ot)))return!1;let Pt=ot,fr;ot.flags&1048576&&(Pt=k7e(Qe,ot,Xr)||Uht(ot),fr=Pt.flags&1048576?Pt.types:[Pt]);for(let Rr of so(Qe))if(Fa(Rr,Qe.symbol)&&!q3e(Qe,Rr)){if(!QK(Pt,Rr.escapedName,It)){if(er){let ln=cl(Pt,JR);if(!f)return w.fail();if(WS(f)||Wu(f)||Wu(f.parent)){Rr.valueDeclaration&&Bm(Rr.valueDeclaration)&&Fr(f)===Fr(Rr.valueDeclaration.name)&&(f=Rr.valueDeclaration.name);let qn=Qi(Rr),Ni=U8e(qn,ln),ni=Ni?Qi(Ni):void 0;ni?As(p.Property_0_does_not_exist_on_type_1_Did_you_mean_2,qn,tn(ln),ni):As(p.Property_0_does_not_exist_on_type_1,qn,tn(ln))}else{let qn=((Vr=Qe.symbol)==null?void 0:Vr.declarations)&&_l(Qe.symbol.declarations),Ni;if(Rr.valueDeclaration&&gr(Rr.valueDeclaration,ni=>ni===qn)&&Fr(qn)===Fr(f)){let ni=Rr.valueDeclaration;w.assertNode(ni,iy);let xn=ni.name;f=xn,je(xn)&&(Ni=V8e(xn,ln))}Ni!==void 0?Qu(p.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Qi(Rr),tn(ln),Ni):Qu(p.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Qi(Rr),tn(ln))}}return!0}if(fr&&!Xr(an(Rr),No(fr,Rr.escapedName),3,er))return er&&Gs(p.Types_of_property_0_are_incompatible,Qi(Rr)),!0}return!1}function Fa(Qe,ot){return Qe.valueDeclaration&&ot.valueDeclaration&&Qe.valueDeclaration.parent===ot.valueDeclaration}function q_(Qe,ot,er,Vr){if(Qe.flags&1048576){if(ot.flags&1048576){let It=Qe.origin;if(It&&It.flags&2097152&&ot.aliasSymbol&&Ts(It.types,ot))return-1;let Pt=ot.origin;if(Pt&&Pt.flags&1048576&&Qe.aliasSymbol&&Ts(Pt.types,Qe))return-1}return l===ef?Jc(Qe,ot,er&&!(Qe.flags&402784252),Vr):Xv(Qe,ot,er&&!(Qe.flags&402784252),Vr)}if(ot.flags&1048576)return _c(MR(Qe),ot,er&&!(Qe.flags&402784252)&&!(ot.flags&402784252),Vr);if(ot.flags&2097152)return qf(Qe,ot,er,2);if(l===ef&&ot.flags&402784252){let It=ul(Qe.types,Pt=>Pt.flags&465829888?Su(Pt)||kt:Pt);if(It!==Qe.types){if(Qe=ma(It),Qe.flags&131072)return 0;if(!(Qe.flags&2097152))return Xr(Qe,ot,1,!1)||Xr(ot,Qe,1,!1)}}return Jc(Qe,ot,!1,1)}function Zc(Qe,ot){let er=-1,Vr=Qe.types;for(let It of Vr){let Pt=_c(It,ot,!1,0);if(!Pt)return 0;er&=Pt}return er}function _c(Qe,ot,er,Vr){let It=ot.types;if(ot.flags&1048576){if(qh(It,Qe))return-1;if(l!==ef&&Mn(ot)&32768&&!(Qe.flags&1024)&&(Qe.flags&2688||(l===Eh||l===jp)&&Qe.flags&256)){let fr=Qe===Qe.regularType?Qe.freshType:Qe.regularType,Rr=Qe.flags&128?ut:Qe.flags&256?Qt:Qe.flags&2048?en:void 0;return Rr&&qh(It,Rr)||fr&&qh(It,fr)?-1:0}let Pt=xRe(ot,Qe);if(Pt){let fr=Xr(Qe,Pt,2,!1,void 0,Vr);if(fr)return fr}}for(let Pt of It){let fr=Xr(Qe,Pt,2,!1,void 0,Vr);if(fr)return fr}if(er){let Pt=H3e(Qe,ot,Xr);Pt&&Xr(Qe,Pt,2,!0,void 0,Vr)}return 0}function qf(Qe,ot,er,Vr){let It=-1,Pt=ot.types;for(let fr of Pt){let Rr=Xr(Qe,fr,2,er,void 0,Vr);if(!Rr)return 0;It&=Rr}return It}function Jc(Qe,ot,er,Vr){let It=Qe.types;if(Qe.flags&1048576&&qh(It,ot))return-1;let Pt=It.length;for(let fr=0;fr<Pt;fr++){let Rr=Xr(It[fr],ot,1,er&&fr===Pt-1,void 0,Vr);if(Rr)return Rr}return 0}function el(Qe,ot){return Qe.flags&1048576&&ot.flags&1048576&&!(Qe.types[0].flags&32768)&&ot.types[0].flags&32768?SN(ot,-32769):ot}function Xv(Qe,ot,er,Vr){let It=-1,Pt=Qe.types,fr=el(Qe,ot);for(let Rr=0;Rr<Pt.length;Rr++){let ln=Pt[Rr];if(fr.flags&1048576&&Pt.length>=fr.types.length&&Pt.length%fr.types.length===0){let Ni=Xr(ln,fr.types[Rr%fr.types.length],3,!1,void 0,Vr);if(Ni){It&=Ni;continue}}let qn=Xr(ln,ot,1,er,void 0,Vr);if(!qn)return 0;It&=qn}return It}function XD(Qe=qe,ot=qe,er=qe,Vr,It){if(Qe.length!==ot.length&&l===Af)return 0;let Pt=Qe.length<=ot.length?Qe.length:ot.length,fr=-1;for(let Rr=0;Rr<Pt;Rr++){let ln=Rr<er.length?er[Rr]:1,qn=ln&7;if(qn!==4){let Ni=Qe[Rr],ni=ot[Rr],xn=-1;if(ln&8?xn=l===Af?Xr(Ni,ni,3,!1):IR(Ni,ni):qn===1?xn=Xr(Ni,ni,3,Vr,void 0,It):qn===2?xn=Xr(ni,Ni,3,Vr,void 0,It):qn===3?(xn=Xr(ni,Ni,3,!1),xn||(xn=Xr(Ni,ni,3,Vr,void 0,It))):(xn=Xr(Ni,ni,3,Vr,void 0,It),xn&&(xn&=Xr(ni,Ni,3,Vr,void 0,It))),!xn)return 0;fr&=xn}}return fr}function Q1(Qe,ot,er,Vr,It){var Pt,fr,Rr;if(rn)return 0;let ln=mK(Qe,ot,Vr,l,!1),qn=l.get(ln);if(qn!==void 0&&!(er&&qn&2&&!(qn&96))){if(bs){let fa=qn&24;fa&8&&Hi(Qe,Qo),fa&16&&Hi(Qe,il)}if(er&&qn&96){let fa=qn&32?p.Excessive_complexity_comparing_types_0_and_1:p.Excessive_stack_depth_comparing_types_0_and_1;As(fa,tn(Qe),tn(ot)),Kr++}return qn&1?-1:0}if(Qn<=0)return rn=!0,0;if(!Z)Z=[],ke=new Set,he=[],Ze=[];else{if(ke.has(ln))return 3;let fa=ln.startsWith("*")?mK(Qe,ot,Vr,l,!0):void 0;if(fa&&ke.has(fa))return 3;if(Ct===100||lr===100)return rn=!0,0}let Ni=mt;Z[mt]=ln,ke.add(ln),mt++;let ni=rr;It&1&&(he[Ct]=Qe,Ct++,!(rr&1)&&iw(Qe,he,Ct)&&(rr|=1)),It&2&&(Ze[lr]=ot,lr++,!(rr&2)&&iw(ot,Ze,lr)&&(rr|=2));let xn,Gi=0;bs&&(xn=bs,bs=fa=>(Gi|=fa?16:8,xn(fa)));let Ds;return rr===3?((Pt=_n)==null||Pt.instant(_n.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:Qe.id,sourceIdStack:he.map(fa=>fa.id),targetId:ot.id,targetIdStack:Ze.map(fa=>fa.id),depth:Ct,targetDepth:lr}),Ds=3):((fr=_n)==null||fr.push(_n.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:Qe.id,targetId:ot.id}),Ds=o8(Qe,ot,er,Vr),(Rr=_n)==null||Rr.pop()),bs&&(bs=xn),It&1&&Ct--,It&2&&lr--,rr=ni,Ds?(Ds===-1||Ct===0&&lr===0)&&Aa(Ds===-1||Ds===3):(l.set(ln,2|Gi),Qn--,Aa(!1)),Ds;function Aa(fa){for(let rc=Ni;rc<mt;rc++)ke.delete(Z[rc]),fa&&(l.set(Z[rc],1|Gi),Qn--);mt=Ni}}function o8(Qe,ot,er,Vr){let It=hs(),Pt=c8(Qe,ot,er,Vr,It);if(l!==Af){if(!Pt&&(Qe.flags&2097152||Qe.flags&262144&&ot.flags&1048576)){let fr=Xst(Qe.flags&2097152?Qe.types:[Qe],!!(ot.flags&1048576));fr&&of(fr,Rr=>Rr!==Qe)&&(Pt=Xr(fr,ot,1,!1,void 0,Vr))}Pt&&!(Vr&2)&&ot.flags&2097152&&!vx(ot)&&Qe.flags&2621440?(Pt&=ce(Qe,ot,er,void 0,!1,0),Pt&&Hv(Qe)&&Mn(Qe)&8192&&(Pt&=ja(Qe,ot,!1,er,0))):Pt&&nK(ot)&&!G1(ot)&&Qe.flags&2097152&&__(Qe).flags&3670016&&!pt(Qe.types,fr=>fr===ot||!!(Mn(fr)&262144))&&(Pt&=ce(Qe,ot,er,void 0,!0,Vr))}return Pt&&Dn(It),Pt}function $f(Qe,ot){let er=__(xT(ot)),Vr=[];return ime(er,8576,!1,It=>void Vr.push(Hi(Qe,xR(ot.mapper,fm(ot),It)))),ri(Vr)}function c8(Qe,ot,er,Vr,It){let Pt,fr,Rr=!1,ln=Qe.flags,qn=ot.flags;if(l===Af){if(ln&3145728){let xn=Zc(Qe,ot);return xn&&(xn&=Zc(ot,Qe)),xn}if(ln&4194304)return Xr(Qe.type,ot.type,3,!1);if(ln&8388608&&(Pt=Xr(Qe.objectType,ot.objectType,3,!1))&&(Pt&=Xr(Qe.indexType,ot.indexType,3,!1))||ln&16777216&&Qe.root.isDistributive===ot.root.isDistributive&&(Pt=Xr(Qe.checkType,ot.checkType,3,!1))&&(Pt&=Xr(Qe.extendsType,ot.extendsType,3,!1))&&(Pt&=Xr(mb(Qe),mb(ot),3,!1))&&(Pt&=Xr(gb(Qe),gb(ot),3,!1))||ln&33554432&&(Pt=Xr(Qe.baseType,ot.baseType,3,!1))&&(Pt&=Xr(Qe.constraint,ot.constraint,3,!1)))return Pt;if(!(ln&524288))return 0}else if(ln&3145728||qn&3145728){if(Pt=q_(Qe,ot,er,Vr))return Pt;if(!(ln&465829888||ln&524288&&qn&1048576||ln&2097152&&qn&467402752))return 0}if(ln&17301504&&Qe.aliasSymbol&&Qe.aliasTypeArguments&&Qe.aliasSymbol===ot.aliasSymbol&&!(pK(Qe)||pK(ot))){let xn=Q3e(Qe.aliasSymbol);if(xn===qe)return 1;let Gi=$i(Qe.aliasSymbol).typeParameters,Ds=$g(Gi),Aa=Uv(Qe.aliasTypeArguments,Gi,Ds,un(Qe.aliasSymbol.valueDeclaration)),fa=Uv(ot.aliasTypeArguments,Gi,Ds,un(Qe.aliasSymbol.valueDeclaration)),rc=ni(Aa,fa,xn,Vr);if(rc!==void 0)return rc}if(sRe(Qe)&&!Qe.target.readonly&&(Pt=Xr(Vo(Qe)[0],ot,1))||sRe(ot)&&(ot.target.readonly||r9(Su(Qe)||Qe))&&(Pt=Xr(Qe,Vo(ot)[0],2)))return Pt;if(qn&262144){if(Mn(Qe)&32&&!Qe.declaration.nameType&&Xr(_g(ot),hp(Qe),3)&&!(qg(Qe)&4)){let xn=Ey(Qe),Gi=sf(ot,fm(Qe));if(Pt=Xr(xn,Gi,3,er))return Pt}if(l===ef&&ln&262144){let xn=D_(Qe);if(xn)for(;xn&&Vp(xn,Gi=>!!(Gi.flags&262144));){if(Pt=Xr(xn,ot,1,!1))return Pt;xn=D_(xn)}return 0}}else if(qn&4194304){let xn=ot.type;if(ln&4194304&&(Pt=Xr(xn,Qe.type,3,!1)))return Pt;if(Pa(xn)){if(Pt=Xr(Qe,r3e(xn),2,er))return Pt}else{let Gi=sme(xn);if(Gi){if(Xr(Qe,_g(Gi,ot.indexFlags|4),2,er)===-1)return-1}else if(U_(xn)){let Ds=Jv(xn),Aa=hp(xn),fa;if(Ds&&MD(xn)){let rc=$f(Ds,xn);fa=ri([rc,Ds])}else fa=Ds||Aa;if(Xr(Qe,fa,2,er)===-1)return-1}}}else if(qn&8388608){if(ln&8388608){if((Pt=Xr(Qe.objectType,ot.objectType,3,er))&&(Pt&=Xr(Qe.indexType,ot.indexType,3,er)),Pt)return Pt;er&&(fr=W)}if(l===z_||l===ef){let xn=ot.objectType,Gi=ot.indexType,Ds=Su(xn)||xn,Aa=Su(Gi)||Gi;if(!vx(Ds)&&!bx(Aa)){let fa=4|(Ds!==xn?2:0),rc=db(Ds,Aa,fa);if(rc){if(er&&fr&&Dn(It),Pt=Xr(Qe,rc,2,er,void 0,Vr))return Pt;er&&fr&&W&&(W=Ni([fr])<=Ni([W])?fr:W)}}}er&&(fr=void 0)}else if(U_(ot)&&l!==Af){let xn=!!ot.declaration.nameType,Gi=Ey(ot),Ds=qg(ot);if(!(Ds&8)){if(!xn&&Gi.flags&8388608&&Gi.objectType===Qe&&Gi.indexType===fm(ot))return-1;if(!U_(Qe)){let Aa=xn?Jv(ot):hp(ot),fa=_g(Qe,2),rc=Ds&4,Ld=rc?Ej(Aa,fa):void 0;if(rc?!(Ld.flags&131072):Xr(Aa,fa,3)){let Kh=Ey(ot),Uy=fm(ot),Yv=SN(Kh,-98305);if(!xn&&Yv.flags&8388608&&Yv.indexType===Uy){if(Pt=Xr(Qe,Yv.objectType,2,er))return Pt}else{let Ku=xn?Ld||Aa:Ld?ma([Ld,Uy]):Uy,Zv=sf(Qe,Ku);if(Pt=Xr(Zv,Kh,3,er))return Pt}}fr=W,Dn(It)}}}else if(qn&16777216){if(iw(ot,Ze,lr,10))return 3;let xn=ot;if(!xn.root.inferTypeParameters&&!jot(xn.root)&&!(Qe.flags&16777216&&Qe.root===xn.root)){let Gi=!Hs(wR(xn.checkType),wR(xn.extendsType)),Ds=!Gi&&Hs(Tx(xn.checkType),Tx(xn.extendsType));if((Pt=Gi?-1:Xr(Qe,mb(xn),2,!1,void 0,Vr))&&(Pt&=Ds?-1:Xr(Qe,gb(xn),2,!1,void 0,Vr),Pt))return Pt}}else if(qn&134217728){if(ln&134217728){if(l===ef)return flt(Qe,ot)?0:-1;Hi(Qe,il)}if(AK(Qe,ot))return-1}else if(ot.flags&268435456&&!(Qe.flags&268435456)&&PK(Qe,ot))return-1;if(ln&8650752){if(!(ln&8388608&&qn&8388608)){let xn=dx(Qe)||kt;if(Pt=Xr(xn,ot,1,!1,void 0,Vr))return Pt;if(Pt=Xr(Mf(xn,Qe),ot,1,er&&xn!==kt&&!(qn&ln&262144),void 0,Vr))return Pt;if(lme(Qe)){let Gi=dx(Qe.indexType);if(Gi&&(Pt=Xr(sf(Qe.objectType,Gi),ot,1,er)))return Pt}}}else if(ln&4194304){let xn=jme(Qe.type,Qe.indexFlags)&&Mn(Qe.type)&32;if(Pt=Xr(si,ot,1,er&&!xn))return Pt;if(xn){let Gi=Qe.type,Ds=Jv(Gi),Aa=Ds&&MD(Gi)?$f(Ds,Gi):Ds||hp(Gi);if(Pt=Xr(Aa,ot,1,er))return Pt}}else if(ln&134217728&&!(qn&524288)){if(!(qn&134217728)){let xn=Su(Qe);if(xn&&xn!==Qe&&(Pt=Xr(xn,ot,1,er)))return Pt}}else if(ln&268435456)if(qn&268435456){if(Qe.symbol!==ot.symbol)return 0;if(Pt=Xr(Qe.type,ot.type,3,er))return Pt}else{let xn=Su(Qe);if(xn&&(Pt=Xr(xn,ot,1,er)))return Pt}else if(ln&16777216){if(iw(Qe,he,Ct,10))return 3;if(qn&16777216){let Ds=Qe.root.inferTypeParameters,Aa=Qe.extendsType,fa;if(Ds){let rc=RR(Ds,void 0,0,Ti);By(rc.inferences,ot.extendsType,Aa,1536),Aa=Hi(Aa,rc.mapper),fa=rc.mapper}if($h(Aa,ot.extendsType)&&(Xr(Qe.checkType,ot.checkType,3)||Xr(ot.checkType,Qe.checkType,3))&&((Pt=Xr(Hi(mb(Qe),fa),mb(ot),3,er))&&(Pt&=Xr(gb(Qe),gb(ot),3,er)),Pt))return Pt}let xn=ame(Qe);if(xn&&(Pt=Xr(xn,ot,1,er)))return Pt;let Gi=!(qn&16777216)&&Rj(Qe)?uMe(Qe):void 0;if(Gi&&(Dn(It),Pt=Xr(Gi,ot,1,er)))return Pt}else{if(l!==Eh&&l!==jp&&Ust(ot)&&Oy(Qe))return-1;if(U_(ot))return U_(Qe)&&(Pt=Bt(Qe,ot,er))?Pt:0;let xn=!!(ln&402784252);if(l!==Af)Qe=__(Qe),ln=Qe.flags;else if(U_(Qe))return 0;if(Mn(Qe)&4&&Mn(ot)&4&&Qe.target===ot.target&&!Pa(Qe)&&!(pK(Qe)||pK(ot))){if(yK(Qe))return-1;let Gi=oge(Qe.target);if(Gi===qe)return 1;let Ds=ni(Vo(Qe),Vo(ot),Gi,Vr);if(Ds!==void 0)return Ds}else{if(gN(ot)?of(Qe,G1):Gp(ot)&&of(Qe,Gi=>Pa(Gi)&&!Gi.target.readonly))return l!==Af?Xr(j1(Qe,Qt)||Fe,j1(ot,Qt)||Fe,3,er):0;if(hb(Qe)&&Pa(ot)&&!hb(ot)){let Gi=ug(Qe);if(Gi!==Qe)return Xr(Gi,ot,1,er)}else if((l===Eh||l===jp)&&Oy(ot)&&Mn(ot)&8192&&!Oy(Qe))return 0}if(ln&2621440&&qn&524288){let Gi=er&&W===It.errorInfo&&!xn;if(Pt=ce(Qe,ot,Gi,void 0,!1,Vr),Pt&&(Pt&=Jt(Qe,ot,0,Gi,Vr),Pt&&(Pt&=Jt(Qe,ot,1,Gi,Vr),Pt&&(Pt&=ja(Qe,ot,xn,Gi,Vr)))),Rr&&Pt)W=fr||W||It.errorInfo;else if(Pt)return Pt}if(ln&2621440&&qn&1048576){let Gi=SN(ot,36175872);if(Gi.flags&1048576){let Ds=yr(Qe,Gi);if(Ds)return Ds}}}return 0;function Ni(xn){return xn?d_(xn,(Gi,Ds)=>Gi+1+Ni(Ds.next),0):0}function ni(xn,Gi,Ds,Aa){if(Pt=XD(xn,Gi,Ds,er,Aa))return Pt;if(pt(Ds,rc=>!!(rc&24))){fr=void 0,Dn(It);return}let fa=Gi&&wct(Gi,Ds);if(Rr=!fa,Ds!==qe&&!fa){if(Rr&&!(er&&pt(Ds,rc=>(rc&7)===0)))return 0;fr=W,Dn(It)}}}function Bt(Qe,ot,er){if(l===ef||(l===Af?qg(Qe)===qg(ot):cN(Qe)<=cN(ot))){let It,Pt=hp(ot),fr=Hi(hp(Qe),cN(Qe)<0?Qo:il);if(It=Xr(Pt,fr,3,er)){let Rr=af([fm(Qe)],[fm(ot)]);if(Hi(Jv(Qe),Rr)===Hi(Jv(ot),Rr))return It&Xr(Hi(Ey(Qe),Rr),Ey(ot),3,er)}}return 0}function yr(Qe,ot){var er;let Vr=so(Qe),It=kRe(Vr,ot);if(!It)return 0;let Pt=1;for(let ni of It)if(Pt*=zlt(fb(ni)),Pt>25)return(er=_n)==null||er.instant(_n.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:Qe.id,targetId:ot.id,numCombinations:Pt}),0;let fr=new Array(It.length),Rr=new Set;for(let ni=0;ni<It.length;ni++){let xn=It[ni],Gi=fb(xn);fr[ni]=Gi.flags&1048576?Gi.types:[Gi],Rr.add(xn.escapedName)}let ln=BY(fr),qn=[];for(let ni of ln){let xn=!1;e:for(let Gi of ot.types){for(let Ds=0;Ds<It.length;Ds++){let Aa=It[Ds],fa=ca(Gi,Aa.escapedName);if(!fa)continue e;if(Aa===fa)continue;if(!Pn(Qe,ot,Aa,fa,Ld=>ni[Ds],!1,0,te||l===ef))continue e}Sp(qn,Gi,u0),xn=!0}if(!xn)return 0}let Ni=-1;for(let ni of qn)if(Ni&=ce(Qe,ni,!1,Rr,!1,0),Ni&&(Ni&=Jt(Qe,ni,0,!1,0),Ni&&(Ni&=Jt(Qe,ni,1,!1,0),Ni&&!(Pa(Qe)&&Pa(ni))&&(Ni&=ja(Qe,ni,!1,!1,0)))),!Ni)return Ni;return Ni}function Gr(Qe,ot){if(!ot||Qe.length===0)return Qe;let er;for(let Vr=0;Vr<Qe.length;Vr++)ot.has(Qe[Vr].escapedName)?er||(er=Qe.slice(0,Vr)):er&&er.push(Qe[Vr]);return er||Qe}function nn(Qe,ot,er,Vr,It){let Pt=te&&!!(kc(ot)&48),fr=Yl(fb(ot),!1,Pt),Rr=er(Qe);return Xr(Rr,fr,3,Vr,void 0,It)}function Pn(Qe,ot,er,Vr,It,Pt,fr,Rr){let ln=Ap(er),qn=Ap(Vr);if(ln&2||qn&2){if(er.valueDeclaration!==Vr.valueDeclaration)return Pt&&(ln&2&&qn&2?As(p.Types_have_separate_declarations_of_a_private_property_0,Qi(Vr)):As(p.Property_0_is_private_in_type_1_but_not_in_type_2,Qi(Vr),tn(ln&2?Qe:ot),tn(ln&2?ot:Qe))),0}else if(qn&4){if(!Ect(er,Vr))return Pt&&As(p.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,Qi(Vr),tn(nw(er)||Qe),tn(nw(Vr)||ot)),0}else if(ln&4)return Pt&&As(p.Property_0_is_protected_in_type_1_but_public_in_type_2,Qi(Vr),tn(Qe),tn(ot)),0;if(l===jp&&ym(er)&&!ym(Vr))return 0;let Ni=nn(er,Vr,It,Pt,fr);return Ni?!Rr&&er.flags&16777216&&Vr.flags&106500&&!(Vr.flags&16777216)?(Pt&&As(p.Property_0_is_optional_in_type_1_but_required_in_type_2,Qi(Vr),tn(Qe),tn(ot)),0):Ni:(Pt&&Gs(p.Types_of_property_0_are_incompatible,Qi(Vr)),0)}function Te(Qe,ot,er,Vr){let It=!1;if(er.valueDeclaration&&Gl(er.valueDeclaration)&&ji(er.valueDeclaration.name)&&Qe.symbol&&Qe.symbol.flags&32){let fr=er.valueDeclaration.name.escapedText,Rr=f4(Qe.symbol,fr);if(Rr&&ca(Qe,Rr)){let ln=A.getDeclarationName(Qe.symbol.valueDeclaration),qn=A.getDeclarationName(ot.symbol.valueDeclaration);As(p.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,sm(fr),sm(ln.escapedText===""?vU:ln),sm(qn.escapedText===""?vU:qn));return}}let Pt=ps(kge(Qe,ot,Vr,!1));if((!d||d.code!==p.Class_0_incorrectly_implements_interface_1.code&&d.code!==p.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(It=!0),Pt.length===1){let fr=Qi(er,void 0,0,20);As(p.Property_0_is_missing_in_type_1_but_required_in_type_2,fr,...A1(Qe,ot)),Dr(er.declarations)&&tu(cn(er.declarations[0],p._0_is_declared_here,fr)),It&&W&&Kr++}else Nr(Qe,ot,!1)&&(Pt.length>5?As(p.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,tn(Qe),tn(ot),hr(Pt.slice(0,4),fr=>Qi(fr)).join(", "),Pt.length-4):As(p.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,tn(Qe),tn(ot),hr(Pt,fr=>Qi(fr)).join(", ")),It&&W&&Kr++)}function ce(Qe,ot,er,Vr,It,Pt){if(l===Af)return Et(Qe,ot,Vr);let fr=-1;if(Pa(ot)){if(G1(Qe)){if(!ot.target.readonly&&(gN(Qe)||Pa(Qe)&&Qe.target.readonly))return 0;let ni=Vv(Qe),xn=Vv(ot),Gi=Pa(Qe)?Qe.target.combinedFlags&4:4,Ds=!!(ot.target.combinedFlags&12),Aa=Pa(Qe)?Qe.target.minLength:0,fa=ot.target.minLength;if(!Gi&&ni<fa)return er&&As(p.Source_has_0_element_s_but_target_requires_1,ni,fa),0;if(!Ds&&xn<Aa)return er&&As(p.Source_has_0_element_s_but_target_allows_only_1,Aa,xn),0;if(!Ds&&(Gi||xn<ni))return er&&(Aa<fa?As(p.Target_requires_0_element_s_but_source_may_have_fewer,fa):As(p.Target_allows_only_0_element_s_but_source_may_have_more,xn)),0;let rc=Vo(Qe),Ld=Vo(ot),Kh=not(ot.target,11),Uy=SR(ot.target,11),Yv=!!Vr;for(let Ku=0;Ku<ni;Ku++){let Zv=Pa(Qe)?Qe.target.elementFlags[Ku]:4,YD=ni-1-Ku,K1=Ds&&Ku>=Kh?xn-1-Math.min(YD,Uy):Ku,Yg=ot.target.elementFlags[K1];if(Yg&8&&!(Zv&8))return er&&As(p.Source_provides_no_match_for_variadic_element_at_position_0_in_target,K1),0;if(Zv&8&&!(Yg&12))return er&&As(p.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,Ku,K1),0;if(Yg&1&&!(Zv&1))return er&&As(p.Source_provides_no_match_for_required_element_at_position_0_in_target,K1),0;if(Yv&&((Zv&12||Yg&12)&&(Yv=!1),Yv&&Vr?.has(""+Ku)))continue;let NN=Wy(rc[Ku],!!(Zv&Yg&2)),l8=Ld[K1],LX=Zv&8&&Yg&4?Ru(l8):Wy(l8,!!(Yg&2)),jX=Xr(NN,LX,3,er,void 0,Pt);if(!jX)return er&&(xn>1||ni>1)&&(Ds&&Ku>=Kh&&YD>=Uy&&Kh!==ni-Uy-1?Gs(p.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Kh,ni-Uy-1,K1):Gs(p.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Ku,K1)),0;fr&=jX}return fr}if(ot.target.combinedFlags&12)return 0}let Rr=(l===Eh||l===jp)&&!Hv(Qe)&&!yK(Qe)&&!Pa(Qe),ln=xge(Qe,ot,Rr,!1);if(ln)return er&&mr(Qe,ot)&&Te(Qe,ot,ln,Rr),0;if(Hv(ot)){for(let ni of Gr(so(Qe),Vr))if(!CT(ot,ni.escapedName)&&!(an(ni).flags&32768))return er&&As(p.Property_0_does_not_exist_on_type_1,Qi(ni),tn(ot)),0}let qn=so(ot),Ni=Pa(Qe)&&Pa(ot);for(let ni of Gr(qn,Vr)){let xn=ni.escapedName;if(!(ni.flags&4194304)&&(!Ni||Sh(xn)||xn==="length")&&(!It||ni.flags&16777216)){let Gi=ca(Qe,xn);if(Gi&&Gi!==ni){let Ds=Pn(Qe,ot,Gi,ni,fb,er,Pt,l===ef);if(!Ds)return 0;fr&=Ds}}}return fr}function Et(Qe,ot,er){if(!(Qe.flags&524288&&ot.flags&524288))return 0;let Vr=Gr(Gv(Qe),er),It=Gr(Gv(ot),er);if(Vr.length!==It.length)return 0;let Pt=-1;for(let fr of Vr){let Rr=CT(ot,fr.escapedName);if(!Rr)return 0;let ln=lge(fr,Rr,Xr);if(!ln)return 0;Pt&=ln}return Pt}function Jt(Qe,ot,er,Vr,It){var Pt,fr;if(l===Af)return yi(Qe,ot,er);if(ot===fo||Qe===fo)return-1;let Rr=Qe.symbol&&mg(Qe.symbol.valueDeclaration),ln=ot.symbol&&mg(ot.symbol.valueDeclaration),qn=Bs(Qe,Rr&&er===1?0:er),Ni=Bs(ot,ln&&er===1?0:er);if(er===1&&qn.length&&Ni.length){let Aa=!!(qn[0].flags&4),fa=!!(Ni[0].flags&4);if(Aa&&!fa)return Vr&&As(p.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!lo(qn[0],Ni[0],Vr))return 0}let ni=-1,xn=er===1?Qr:Jr,Gi=Mn(Qe),Ds=Mn(ot);if(Gi&64&&Ds&64&&Qe.symbol===ot.symbol||Gi&4&&Ds&4&&Qe.target===ot.target){w.assertEqual(qn.length,Ni.length);for(let Aa=0;Aa<Ni.length;Aa++){let fa=ci(qn[Aa],Ni[Aa],!0,Vr,It,xn(qn[Aa],Ni[Aa]));if(!fa)return 0;ni&=fa}}else if(qn.length===1&&Ni.length===1){let Aa=l===ef,fa=Ea(qn),rc=Ea(Ni);if(ni=ci(fa,rc,Aa,Vr,It,xn(fa,rc)),!ni&&Vr&&er===1&&Gi&Ds&&(((Pt=rc.declaration)==null?void 0:Pt.kind)===176||((fr=fa.declaration)==null?void 0:fr.kind)===176)){let Ld=Kh=>bT(Kh,void 0,262144,er);return As(p.Type_0_is_not_assignable_to_type_1,Ld(fa),Ld(rc)),As(p.Types_of_construct_signatures_are_incompatible),ni}}else e:for(let Aa of Ni){let fa=hs(),rc=Vr;for(let Ld of qn){let Kh=ci(Ld,Aa,!0,rc,It,xn(Ld,Aa));if(Kh){ni&=Kh,Dn(fa);continue e}rc=!1}return rc&&As(p.Type_0_provides_no_match_for_the_signature_1,tn(Qe),bT(Aa,void 0,void 0,er)),0}return ni}function mr(Qe,ot){let er=Oj(Qe,0),Vr=Oj(Qe,1),It=Gv(Qe);return(er.length||Vr.length)&&!It.length?!!(Bs(ot,0).length&&er.length||Bs(ot,1).length&&Vr.length):!0}function Jr(Qe,ot){return Qe.parameters.length===0&&ot.parameters.length===0?(er,Vr)=>Gs(p.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,tn(er),tn(Vr)):(er,Vr)=>Gs(p.Call_signature_return_types_0_and_1_are_incompatible,tn(er),tn(Vr))}function Qr(Qe,ot){return Qe.parameters.length===0&&ot.parameters.length===0?(er,Vr)=>Gs(p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,tn(er),tn(Vr)):(er,Vr)=>Gs(p.Construct_signature_return_types_0_and_1_are_incompatible,tn(er),tn(Vr))}function ci(Qe,ot,er,Vr,It,Pt){let fr=l===Eh?16:l===jp?24:0;return tge(er?bR(Qe):Qe,er?bR(ot):ot,fr,Vr,As,Pt,Rr,il);function Rr(ln,qn,Ni){return Xr(ln,qn,3,Ni,void 0,It)}}function yi(Qe,ot,er){let Vr=Bs(Qe,er),It=Bs(ot,er);if(Vr.length!==It.length)return 0;let Pt=-1;for(let fr=0;fr<Vr.length;fr++){let Rr=t9(Vr[fr],It[fr],!1,!1,!1,Xr);if(!Rr)return 0;Pt&=Rr}return Pt}function Ms(Qe,ot,er,Vr){let It=-1,Pt=ot.keyType,fr=Qe.flags&2097152?Mj(Qe):Gv(Qe);for(let Rr of fr)if(!q3e(Qe,Rr)&&KC(ZC(Rr,8576),Pt)){let ln=fb(Rr),qn=ve||ln.flags&32768||Pt===Qt||!(Rr.flags&16777216)?ln:Up(ln,524288),Ni=Xr(qn,ot.type,3,er,void 0,Vr);if(!Ni)return er&&As(p.Property_0_is_incompatible_with_index_signature,Qi(Rr)),0;It&=Ni}for(let Rr of Mu(Qe))if(KC(Rr.keyType,Pt)){let ln=ss(Rr,ot,er,Vr);if(!ln)return 0;It&=ln}return It}function ss(Qe,ot,er,Vr){let It=Xr(Qe.type,ot.type,3,er,void 0,Vr);return!It&&er&&(Qe.keyType===ot.keyType?As(p._0_index_signatures_are_incompatible,tn(Qe.keyType)):As(p._0_and_1_index_signatures_are_incompatible,tn(Qe.keyType),tn(ot.keyType))),It}function ja(Qe,ot,er,Vr,It){if(l===Af)return ba(Qe,ot);let Pt=Mu(ot),fr=pt(Pt,ln=>ln.keyType===ut),Rr=-1;for(let ln of Pt){let qn=l!==jp&&!er&&fr&&ln.type.flags&1?-1:U_(Qe)&&fr?Xr(Ey(Qe),ln.type,3,Vr):va(Qe,ln,Vr,It);if(!qn)return 0;Rr&=qn}return Rr}function va(Qe,ot,er,Vr){let It=gR(Qe,ot.keyType);return It?ss(It,ot,er,Vr):!(Vr&1)&&(l!==jp||Mn(Qe)&8192)&&xK(Qe)?Ms(Qe,ot,er,Vr):(er&&As(p.Index_signature_for_type_0_is_missing_in_type_1,tn(ot.keyType),tn(Qe)),0)}function ba(Qe,ot){let er=Mu(Qe),Vr=Mu(ot);if(er.length!==Vr.length)return 0;for(let It of Vr){let Pt=Uh(Qe,It.keyType);if(!(Pt&&Xr(Pt.type,It.type,3)&&Pt.isReadonly===It.isReadonly))return 0}return-1}function lo(Qe,ot,er){if(!Qe.declaration||!ot.declaration)return!0;let Vr=g2(Qe.declaration,6),It=g2(ot.declaration,6);return It===2||It===4&&Vr!==2||It!==4&&!Vr?!0:(er&&As(p.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,ST(Vr),ST(It)),!1)}}function ige(r){if(r.flags&16)return!1;if(r.flags&3145728)return!!or(r.types,ige);if(r.flags&465829888){let a=dx(r);if(a&&a!==r)return ige(a)}return dm(r)||!!(r.flags&134217728)||!!(r.flags&268435456)}function $3e(r,a){return Pa(r)&&Pa(a)?qe:so(a).filter(l=>fK(ol(r,l.escapedName),an(l)))}function fK(r,a){return!!r&&!!a&&zc(r,32768)&&!!NR(a)}function xct(r){return so(r).filter(a=>NR(an(a)))}function H3e(r,a,l=Zme){return k7e(r,a,l)||Bht(r,a)||zht(r,a)||Jht(r,a)||Ght(r,a)}function sge(r,a,l){let f=r.types,d=f.map(k=>k.flags&402784252?0:-1);for(let[k,R]of a){let W=!1;for(let J=0;J<f.length;J++)if(d[J]){let Z=X(f[J],R);Z&&Vp(k(),ke=>!!l(ke,Z))?W=!0:d[J]=3}for(let J=0;J<f.length;J++)d[J]===3&&(d[J]=W?0:-1)}let y=Ts(d,0)?ri(f.filter((k,R)=>d[R]),0):r;return y.flags&131072?r:y}function age(r){if(r.flags&524288){let a=pm(r);return a.callSignatures.length===0&&a.constructSignatures.length===0&&a.indexInfos.length===0&&a.properties.length>0&&Oi(a.properties,l=>!!(l.flags&16777216))}return r.flags&33554432?age(r.baseType):r.flags&2097152?Oi(r.types,age):!1}function Cct(r,a,l){for(let f of so(r))if(QK(a,f.escapedName,l))return!0;return!1}function oge(r){return r===Js||r===Ma||r.objectFlags&8?O:K3e(r.symbol,r.typeParameters)}function Q3e(r){return K3e(r,$i(r).typeParameters)}function K3e(r,a=qe){var l,f;let d=$i(r);if(!d.variances){(l=_n)==null||l.push(_n.Phase.CheckTypes,"getVariancesWorker",{arity:a.length,id:Zl(Bo(r))});let y=m1,k=kv;m1||(m1=!0,kv=Mg.length),d.variances=qe;let R=[];for(let W of a){let J=cge(W),Z=J&16384?J&8192?0:1:J&8192?2:void 0;if(Z===void 0){let ke=!1,he=!1,Ze=bs;bs=lr=>lr?he=!0:ke=!0;let mt=Zj(r,W,ec),Ct=Zj(r,W,Ic);Z=(Hs(Ct,mt)?1:0)|(Hs(mt,Ct)?2:0),Z===3&&Hs(Zj(r,W,N),mt)&&(Z=4),bs=Ze,(ke||he)&&(ke&&(Z|=8),he&&(Z|=16))}R.push(Z)}y||(m1=!1,kv=k),d.variances=R,(f=_n)==null||f.pop({variances:R.map(w.formatVariance)})}return d.variances}function Zj(r,a,l){let f=ET(a,l),d=Bo(r);if(We(d))return d;let y=r.flags&524288?OD(r,Qg($i(r).typeParameters,f)):Ny(d,Qg(d.typeParameters,f));return lt.add(Zl(y)),y}function pK(r){return lt.has(Zl(r))}function cge(r){var a;return d_((a=r.symbol)==null?void 0:a.declarations,(l,f)=>l|r_(f),0)&28672}function wct(r,a){for(let l=0;l<a.length;l++)if((a[l]&7)===1&&r[l].flags&16384)return!0;return!1}function Ict(r){return r.flags&262144&&!D_(r)}function Dct(r){return!!(Mn(r)&4)&&!r.node}function dK(r){return Dct(r)&&pt(Vo(r),a=>!!(a.flags&262144)||dK(a))}function Pct(r,a,l,f){let d=[],y="",k=W(r,0),R=W(a,0);return`${y}${k},${R}${l}`;function W(J,Z=0){let ke=""+J.target.id;for(let he of Vo(J)){if(he.flags&262144){if(f||Ict(he)){let Ze=d.indexOf(he);Ze<0&&(Ze=d.length,d.push(he)),ke+="="+Ze;continue}y="*"}else if(Z<4&&dK(he)){ke+="<"+W(he,Z+1)+">";continue}ke+="-"+he.id}return ke}}function mK(r,a,l,f,d){if(f===Af&&r.id>a.id){let k=r;r=a,a=k}let y=l?":"+l:"";return dK(r)&&dK(a)?Pct(r,a,y,d):`${r.id},${a.id}${y}`}function e9(r,a){if(kc(r)&6){for(let l of r.links.containingType.types){let f=ca(l,r.escapedName),d=f&&e9(f,a);if(d)return d}return}return a(r)}function nw(r){return r.parent&&r.parent.flags&32?Bo(rf(r)):void 0}function gK(r){let a=nw(r),l=a&&Pl(a)[0];return l&&ol(l,r.escapedName)}function Act(r,a){return e9(r,l=>{let f=nw(l);return f?AD(f,a):!1})}function Ect(r,a){return!e9(a,l=>Ap(l)&4?!Act(r,nw(l)):!1)}function X3e(r,a,l){return e9(a,f=>Ap(f,l)&4?!AD(r,nw(f)):!1)?void 0:r}function iw(r,a,l,f=3){if(l>=f){if((Mn(r)&96)===96&&(r=Y3e(r)),r.flags&2097152)return pt(r.types,R=>iw(R,a,l,f));let d=hK(r),y=0,k=0;for(let R=0;R<l;R++){let W=a[R];if(Z3e(W,d)){if(W.id>=k&&(y++,y>=f))return!0;k=W.id}}}return!1}function Y3e(r){let a;for(;(Mn(r)&96)===96&&(a=xT(r))&&(a.symbol||a.flags&2097152&&pt(a.types,l=>!!l.symbol));)r=a;return r}function Z3e(r,a){return(Mn(r)&96)===96&&(r=Y3e(r)),r.flags&2097152?pt(r.types,l=>Z3e(l,a)):hK(r)===a}function hK(r){if(r.flags&524288&&!wge(r)){if(Mn(r)&4&&r.node)return r.node;if(r.symbol&&!(Mn(r)&16&&r.symbol.flags&32))return r.symbol;if(Pa(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 Nct(r,a){return lge(r,a,IR)!==0}function lge(r,a,l){if(r===a)return-1;let f=Ap(r)&6,d=Ap(a)&6;if(f!==d)return 0;if(f){if(KD(r)!==KD(a))return 0}else if((r.flags&16777216)!==(a.flags&16777216))return 0;return ym(r)!==ym(a)?0:l(an(r),an(a))}function Mct(r,a,l){let f=cf(r),d=cf(a),y=hm(r),k=hm(a),R=Xg(r),W=Xg(a);return!!(f===d&&y===k&&R===W||l&&y<=k)}function t9(r,a,l,f,d,y){if(r===a)return-1;if(!Mct(r,a,l)||Dr(r.typeParameters)!==Dr(a.typeParameters))return 0;if(a.typeParameters){let W=af(r.typeParameters,a.typeParameters);for(let J=0;J<a.typeParameters.length;J++){let Z=r.typeParameters[J],ke=a.typeParameters[J];if(!(Z===ke||y(Hi(fN(Z),W)||kt,fN(ke)||kt)&&y(Hi(wT(Z),W)||kt,wT(ke)||kt)))return 0}r=MT(r,W,!0)}let k=-1;if(!f){let W=W1(r);if(W){let J=W1(a);if(J){let Z=y(W,J);if(!Z)return 0;k&=Z}}}let R=cf(a);for(let W=0;W<R;W++){let J=gm(r,W),Z=gm(a,W),ke=y(Z,J);if(!ke)return 0;k&=ke}if(!d){let W=zp(r),J=zp(a);k&=W||J?Rct(W,J,y):y(Za(r),Za(a))}return k}function Rct(r,a,l){return r&&a&&Fme(r,a)?r.type===a.type?-1:r.type&&a.type?l(r.type,a.type):0:0}function Fct(r){let a;for(let l of r)if(!(l.flags&131072)){let f=Ly(l);if(a??(a=f),f===l||f!==a)return!1}return!0}function eRe(r){return d_(r,(a,l)=>a|(l.flags&1048576?eRe(l.types):l.flags),0)}function Oct(r){if(r.length===1)return r[0];let a=te?ul(r,f=>cl(f,d=>!(d.flags&98304))):r,l=Fct(a)?ri(a):d_(a,(f,d)=>RT(f,d)?d:f);return a===r?l:i9(l,eRe(r)&98304)}function Lct(r){return d_(r,(a,l)=>RT(l,a)?l:a)}function Gp(r){return!!(Mn(r)&4)&&(r.target===Js||r.target===Ma)}function gN(r){return!!(Mn(r)&4)&&r.target===Ma}function G1(r){return Gp(r)||Pa(r)}function r9(r){return Gp(r)&&!gN(r)||Pa(r)&&!r.target.readonly}function n9(r){return Gp(r)?Vo(r)[0]:void 0}function $v(r){return Gp(r)||!(r.flags&98304)&&Hs(r,If)}function uge(r){return r9(r)||!(r.flags&98305)&&Hs(r,wl)}function _ge(r){if(!(Mn(r)&4)||!(Mn(r.target)&3))return;if(Mn(r)&33554432)return Mn(r)&67108864?r.cachedEquivalentBaseType:void 0;r.objectFlags|=33554432;let a=r.target;if(Mn(a)&1){let d=vi(a);if(d&&d.expression.kind!==80&&d.expression.kind!==211)return}let l=Pl(a);if(l.length!==1||Vg(r.symbol).size)return;let f=Dr(a.typeParameters)?Hi(l[0],af(a.typeParameters,Vo(r).slice(0,a.typeParameters.length))):l[0];return Dr(Vo(r))>Dr(a.typeParameters)&&(f=Mf(f,xa(Vo(r)))),r.objectFlags|=67108864,r.cachedEquivalentBaseType=f}function tRe(r){return te?r===dr:r===j}function yK(r){let a=n9(r);return!!a&&tRe(a)}function hN(r){let a;return Pa(r)||!!ca(r,"0")||$v(r)&&!!(a=ol(r,"length"))&&of(a,l=>!!(l.flags&256))}function vK(r){return $v(r)||hN(r)}function rRe(r,a){let l=ol(r,""+a);if(l)return l;if(of(r,Pa))return aRe(r,a,F.noUncheckedIndexedAccess?pe:void 0)}function jct(r){return!(r.flags&240544)}function dm(r){return!!(r.flags&109472)}function nRe(r){let a=ug(r);return a.flags&2097152?pt(a.types,dm):dm(a)}function Wct(r){return r.flags&2097152&&On(r.types,dm)||r}function AR(r){return r.flags&16?!0:r.flags&1048576?r.flags&1024?!0:Oi(r.types,dm):dm(r)}function Ly(r){return r.flags&1056?jQ(r):r.flags&402653312?ut:r.flags&256?Qt:r.flags&2048?en:r.flags&512?Ut:r.flags&1048576?Bct(r):r}function Bct(r){let a=`B${Zl(r)}`;return nm(a)??rb(a,ac(r,Ly))}function fge(r){return r.flags&402653312?ut:r.flags&288?Qt:r.flags&2048?en:r.flags&512?Ut:r.flags&1048576?ac(r,fge):r}function U1(r){return r.flags&1056&&AT(r)?jQ(r):r.flags&128&&AT(r)?ut:r.flags&256&&AT(r)?Qt:r.flags&2048&&AT(r)?en:r.flags&512&&AT(r)?Ut:r.flags&1048576?ac(r,U1):r}function iRe(r){return r.flags&8192?Ot:r.flags&1048576?ac(r,iRe):r}function pge(r,a){return _X(r,a)||(r=iRe(U1(r))),f_(r)}function zct(r,a,l){if(r&&dm(r)){let f=a?l?YR(a):a:void 0;r=pge(r,f)}return r}function dge(r,a,l,f){if(r&&dm(r)){let d=a?Kv(l,a,f):void 0;r=pge(r,d)}return r}function Pa(r){return!!(Mn(r)&4&&r.target.objectFlags&8)}function hb(r){return Pa(r)&&!!(r.target.combinedFlags&8)}function sRe(r){return hb(r)&&r.target.elementFlags.length===1}function bK(r){return yN(r,r.target.fixedLength)}function aRe(r,a,l){return ac(r,f=>{let d=f,y=bK(d);return y?l&&a>=Mme(d.target)?ri([y,l]):y:pe})}function Jct(r){let a=bK(r);return a&&Ru(a)}function yN(r,a,l=0,f=!1,d=!1){let y=Vv(r)-l;if(a<y){let k=Vo(r),R=[];for(let W=a;W<y;W++){let J=k[W];R.push(r.target.elementFlags[W]&8?sf(J,Qt):J)}return f?ma(R):ri(R,d?0:1)}}function Gct(r,a){return Vv(r)===Vv(a)&&Oi(r.target.elementFlags,(l,f)=>(l&12)===(a.target.elementFlags[f]&12))}function oRe({value:r}){return r.base10Value==="0"}function cRe(r){return cl(r,a=>mm(a,4194304))}function Uct(r){return ac(r,Vct)}function Vct(r){return r.flags&4?Pf:r.flags&8?Ng:r.flags&64?Ad:r===$r||r===Pr||r.flags&114691||r.flags&128&&r.value===""||r.flags&256&&r.value===0||r.flags&2048&&oRe(r)?r:ar}function i9(r,a){let l=a&~r.flags&98304;return l===0?r:ri(l===32768?[r,pe]:l===65536?[r,jt]:[r,pe,jt])}function yb(r,a=!1){w.assert(te);let l=a?q:pe;return r===l||r.flags&1048576&&r.types[0]===l?r:ri([r,l])}function qct(r){return C_||(C_=jD("NonNullable",524288,void 0)||Y),C_!==Y?OD(C_,[r]):ma([r,Oa])}function jy(r){return te?wx(r,2097152):r}function lRe(r){return te?ri([r,yt]):r}function SK(r){return te?NK(r,yt):r}function TK(r,a,l){return l?FP(a)?yb(r):lRe(r):r}function ER(r,a){return eF(a)?jy(r):ju(a)?SK(r):r}function Wy(r,a){return ve&&a?NK(r,Re):r}function NR(r){return r===Re||!!(r.flags&1048576)&&r.types[0]===Re}function kK(r){return ve?NK(r,Re):Up(r,524288)}function $ct(r,a){return(r.flags&524)!==0&&(a.flags&28)!==0}function xK(r){let a=Mn(r);return r.flags&2097152?Oi(r.types,xK):!!(r.symbol&&(r.symbol.flags&7040)!==0&&!(r.symbol.flags&32)&&!AX(r))||!!(a&4194304)||!!(a&1024&&xK(r.source))}function kx(r,a){let l=da(r.flags,r.escapedName,kc(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=$i(r).nameType;return f&&(l.links.nameType=f),l}function Hct(r,a){let l=ea();for(let f of Gv(r)){let d=an(f),y=a(d);l.set(f.escapedName,y===d?f:kx(f,y))}return l}function MR(r){if(!(Hv(r)&&Mn(r)&8192))return r;let a=r.regularType;if(a)return a;let l=r,f=Hct(r,MR),d=tc(l.symbol,f,l.callSignatures,l.constructSignatures,l.indexInfos);return d.flags=l.flags,d.objectFlags|=l.objectFlags&-8193,r.regularType=d,d}function uRe(r,a,l){return{parent:r,propertyName:a,siblings:l,resolvedProperties:void 0}}function _Re(r){if(!r.siblings){let a=[];for(let l of _Re(r.parent))if(Hv(l)){let f=CT(l,r.propertyName);f&&Ix(an(f),d=>{a.push(d)})}r.siblings=a}return r.siblings}function Qct(r){if(!r.resolvedProperties){let a=new Map;for(let l of _Re(r))if(Hv(l)&&!(Mn(l)&2097152))for(let f of so(l))a.set(f.escapedName,f);r.resolvedProperties=ps(a.values())}return r.resolvedProperties}function Kct(r,a){if(!(r.flags&4))return r;let l=an(r),f=a&&uRe(a,r.escapedName,void 0),d=mge(l,f);return d===l?r:kx(r,d)}function Xct(r){let a=ae.get(r.escapedName);if(a)return a;let l=kx(r,q);return l.flags|=16777216,ae.set(r.escapedName,l),l}function Yct(r,a){let l=ea();for(let d of Gv(r))l.set(d.escapedName,Kct(d,a));if(a)for(let d of Qct(a))l.has(d.escapedName)||l.set(d.escapedName,Xct(d));let f=tc(r.symbol,l,qe,qe,ul(Mu(r),d=>Vh(d.keyType,Rf(d.type),d.isReadonly,d.declaration,d.components)));return f.objectFlags|=Mn(r)&266240,f}function Rf(r){return mge(r,void 0)}function mge(r,a){if(Mn(r)&196608){if(a===void 0&&r.widened)return r.widened;let l;if(r.flags&98305)l=Fe;else if(Hv(r))l=Yct(r,a);else if(r.flags&1048576){let f=a||uRe(void 0,void 0,r.types),d=ul(r.types,y=>y.flags&98304?y:mge(y,f));l=ri(d,pt(d,Oy)?2:1)}else r.flags&2097152?l=ma(ul(r.types,Rf)):G1(r)&&(l=Ny(r.target,ul(Vo(r),Rf)));return l&&a===void 0&&(r.widened=l),l||r}return r}function CK(r){var a;let l=!1;if(Mn(r)&65536){if(r.flags&1048576)if(pt(r.types,Oy))l=!0;else for(let f of r.types)l||(l=CK(f));else if(G1(r))for(let f of Vo(r))l||(l=CK(f));else if(Hv(r))for(let f of Gv(r)){let d=an(f);if(Mn(d)&65536&&(l=CK(d),!l)){let y=(a=f.declarations)==null?void 0:a.find(k=>{var R;return((R=k.symbol.valueDeclaration)==null?void 0:R.parent)===r.symbol.valueDeclaration});y&&($e(y,p.Object_literal_s_property_0_implicitly_has_an_1_type,Qi(f),tn(Rf(d))),l=!0)}}}return l}function V1(r,a,l){let f=tn(Rf(a));if(un(r)&&!xA(Fr(r),F))return;let d;switch(r.kind){case 226:case 172:case 171:d=de?p.Member_0_implicitly_has_an_1_type:p.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:let y=r;if(je(y.name)){let k=YT(y.name);if((O2(y.parent)||xd(y.parent)||Ig(y.parent))&&y.parent.parameters.includes(y)&&(_t(y,y.name.escapedText,788968,void 0,!0)||k&&fJ(k))){let R="arg"+y.parent.parameters.indexOf(y),W=Co(y.name)+(y.dotDotDotToken?"[]":"");im(de,r,p.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,R,W);return}}d=r.dotDotDotToken?de?p.Rest_parameter_0_implicitly_has_an_any_type:p.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:de?p.Parameter_0_implicitly_has_an_1_type:p.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(d=p.Binding_element_0_implicitly_has_an_1_type,!de)return;break;case 317:$e(r,p.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,f);return;case 323:de&&SI(r.parent)&&$e(r.parent.tagName,p.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,f);return;case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(de&&!r.name){l===3?$e(r,p.Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation,f):$e(r,p.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,f);return}d=de?l===3?p._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:p._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:p._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:de&&$e(r,p.Mapped_object_type_implicitly_has_an_any_template_type);return;default:d=de?p.Variable_0_implicitly_has_an_1_type:p.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}im(de,r,d,Co(vs(r)),f)}function Zct(r,a){let l=rhe(r);if(!l)return!0;let f=Za(l),d=Kc(r);switch(a){case 1:return d&1?f=Kv(1,f,!!(d&2))??f:d&2&&(f=Jy(f)??f),z1(f);case 3:let y=Kv(0,f,!!(d&2));return!!y&&z1(y);case 2:let k=Kv(2,f,!!(d&2));return!!k&&z1(k)}return!1}function wK(r,a,l){n(()=>{de&&Mn(a)&65536&&(!l||xo(r)&&Zct(r,l))&&(CK(a)||V1(r,a,l))})}function gge(r,a,l){let f=cf(r),d=cf(a),y=VR(r),k=VR(a),R=k?d-1:d,W=y?R:Math.min(f,R),J=W1(r);if(J){let Z=W1(a);Z&&l(J,Z)}for(let Z=0;Z<W;Z++)l(gm(r,Z),gm(a,Z));k&&l(A9(r,W,mx(k)&&!Vp(k,uge)),k)}function hge(r,a,l){let f=zp(a);if(f){let y=zp(r);if(y&&Fme(y,f)&&y.type&&f.type){l(y.type,f.type);return}}let d=Za(a);vb(d)&&l(Za(r),d)}function RR(r,a,l,f){return yge(r.map(bge),a,l,f||Zme)}function elt(r,a=0){return r&&yge(hr(r.inferences,fRe),r.signature,r.flags|a,r.compareTypes)}function yge(r,a,l,f){let d={inferences:r,signature:a,flags:l,compareTypes:f,mapper:Qo,nonFixingMapper:Qo};return d.mapper=tlt(d),d.nonFixingMapper=rlt(d),d}function tlt(r){return Qme(hr(r.inferences,a=>a.typeParameter),hr(r.inferences,(a,l)=>()=>(a.isFixed||(nlt(r),IK(r.inferences),a.isFixed=!0),Ige(r,l))))}function rlt(r){return Qme(hr(r.inferences,a=>a.typeParameter),hr(r.inferences,(a,l)=>()=>Ige(r,l)))}function IK(r){for(let a of r)a.isFixed||(a.inferredType=void 0)}function vge(r,a,l){(r.intraExpressionInferenceSites??(r.intraExpressionInferenceSites=[])).push({node:a,type:l})}function nlt(r){if(r.intraExpressionInferenceSites){for(let{node:a,type:l}of r.intraExpressionInferenceSites){let f=a.kind===174?g8e(a,2):P_(a,2);f&&By(r.inferences,l,f)}r.intraExpressionInferenceSites=void 0}}function bge(r){return{typeParameter:r,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function fRe(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 ilt(r){let a=An(r.inferences,QD);return a.length?yge(hr(a,fRe),r.signature,r.flags,r.compareTypes):void 0}function Sge(r){return r&&r.mapper}function vb(r){let a=Mn(r);if(a&524288)return!!(a&1048576);let l=!!(r.flags&465829888||r.flags&524288&&!pRe(r)&&(a&4&&(r.node||pt(Vo(r),vb))||a&134217728&&Dr(r.outerTypeParameters)||a&16&&r.symbol&&r.symbol.flags&14384&&r.symbol.declarations||a&12583968)||r.flags&3145728&&!(r.flags&1024)&&!pRe(r)&&pt(r.types,vb));return r.flags&3899393&&(r.objectFlags|=524288|(l?1048576:0)),l}function pRe(r){if(r.aliasSymbol&&!r.aliasTypeArguments){let a=Yo(r.aliasSymbol,265);return!!(a&&gr(a.parent,l=>l.kind===307?!0:l.kind===267?!1:"quit"))}return!1}function FR(r,a,l=0){return!!(r===a||r.flags&3145728&&pt(r.types,f=>FR(f,a,l))||l<3&&r.flags&16777216&&(FR(mb(r),a,l+1)||FR(gb(r),a,l+1)))}function slt(r,a){let l=zp(r);return l?!!l.type&&FR(l.type,a):FR(Za(r),a)}function alt(r){let a=ea();Ix(r,f=>{if(!(f.flags&128))return;let d=gc(f.value),y=da(4,d);y.links.type=Fe,f.symbol&&(y.declarations=f.symbol.declarations,y.valueDeclaration=f.symbol.valueDeclaration),a.set(d,y)});let l=r.flags&4?[Vh(ut,Oa,!1)]:qe;return tc(void 0,a,qe,qe,l)}function dRe(r,a,l){let f=r.id+","+a.id+","+l.id;if(wf.has(f))return wf.get(f);let d=olt(r,a,l);return wf.set(f,d),d}function Tge(r){return!(Mn(r)&262144)||Hv(r)&&pt(so(r),a=>Tge(an(a)))||Pa(r)&&pt(DT(r),Tge)}function olt(r,a,l){if(!(Uh(r,ut)||so(r).length!==0&&Tge(r)))return;if(Gp(r)){let d=DK(Vo(r)[0],a,l);return d?Ru(d,gN(r)):void 0}if(Pa(r)){let d=hr(DT(r),k=>DK(k,a,l));if(!Oi(d,k=>!!k))return;let y=qg(a)&4?ul(r.target.elementFlags,k=>k&2?1:k):r.target.elementFlags;return Hg(d,y,r.target.readonly,r.target.labeledElementDeclarations)}let f=_r(1040,void 0);return f.source=r,f.mappedType=a,f.constraintType=l,f}function clt(r){let a=$i(r);return a.type||(a.type=DK(r.links.propertyType,r.links.mappedType,r.links.constraintType)||kt),a.type}function llt(r,a,l){let f=sf(l.type,fm(a)),d=Ey(a),y=bge(f);return By([y],r,d),mRe(y)||kt}function DK(r,a,l){let f=r.id+","+a.id+","+l.id;if(Hc.has(f))return Hc.get(f)||kt;cT.push(r),lT.push(a);let d=Cv;iw(r,cT,cT.length,2)&&(Cv|=1),iw(a,lT,lT.length,2)&&(Cv|=2);let y;return Cv!==3&&(y=llt(r,a,l)),cT.pop(),lT.pop(),Cv=d,Hc.set(f,y),y}function*kge(r,a,l,f){let d=so(a);for(let y of d)if(!H4e(y)&&(l||!(y.flags&16777216||kc(y)&48))){let k=ca(r,y.escapedName);if(!k)yield y;else if(f){let R=an(y);if(R.flags&109472){let W=an(k);W.flags&1||f_(W)===f_(R)||(yield y)}}}}function xge(r,a,l,f){return KN(kge(r,a,l,f))}function ult(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 _lt(r,a){return Pa(r)&&Pa(a)?ult(r,a):!!xge(r,a,!1,!0)&&!!xge(a,r,!1,!1)}function mRe(r){return r.candidates?ri(r.candidates,2):r.contraCandidates?ma(r.contraCandidates):void 0}function Cge(r){return!!wn(r).skipDirectInference}function gRe(r){return!!(r.symbol&&pt(r.symbol.declarations,Cge))}function flt(r,a){let l=r.texts[0],f=a.texts[0],d=r.texts[r.texts.length-1],y=a.texts[a.texts.length-1],k=Math.min(l.length,f.length),R=Math.min(d.length,y.length);return l.slice(0,k)!==f.slice(0,k)||d.slice(d.length-R)!==y.slice(y.length-R)}function hRe(r,a){if(r==="")return!1;let l=+r;return isFinite(l)&&(!a||""+l===r)}function plt(r){return Vj(MJ(r))}function PK(r,a){if(a.flags&1)return!0;if(a.flags&134217732)return Hs(r,a);if(a.flags&268435456){let l=[];for(;a.flags&268435456;)l.unshift(a.symbol),a=a.type;return d_(l,(d,y)=>ew(y,d),r)===r&&PK(r,a)}return!1}function yRe(r,a){if(a.flags&2097152)return Oi(a.types,l=>l===Ys||yRe(r,l));if(a.flags&4||Hs(r,a))return!0;if(r.flags&128){let l=r.value;return!!(a.flags&8&&hRe(l,!1)||a.flags&64&&LO(l,!1)||a.flags&98816&&l===a.intrinsicName||a.flags&268435456&&PK(V_(l),a)||a.flags&134217728&&AK(r,a))}if(r.flags&134217728){let l=r.texts;return l.length===2&&l[0]===""&&l[1]===""&&Hs(r.types[0],a)}return!1}function vRe(r,a){return r.flags&128?bRe([r.value],qe,a):r.flags&134217728?Yf(r.texts,a.texts)?hr(r.types,(l,f)=>Hs(ug(l),ug(a.types[f]))?l:dlt(l)):bRe(r.texts,r.types,a):void 0}function AK(r,a){let l=vRe(r,a);return!!l&&Oi(l,(f,d)=>yRe(f,a.types[d]))}function dlt(r){return r.flags&402653317?r:hx(["",""],[r])}function bRe(r,a,l){let f=r.length-1,d=r[0],y=r[f],k=l.texts,R=k.length-1,W=k[0],J=k[R];if(f===0&&d.length<W.length+J.length||!d.startsWith(W)||!y.endsWith(J))return;let Z=y.slice(0,y.length-J.length),ke=[],he=0,Ze=W.length;for(let lr=1;lr<R;lr++){let rr=k[lr];if(rr.length>0){let rn=he,Kr=Ze;for(;Kr=mt(rn).indexOf(rr,Kr),!(Kr>=0);){if(rn++,rn===r.length)return;Kr=0}Ct(rn,Kr),Ze+=rr.length}else if(Ze<mt(he).length)Ct(he,Ze+1);else if(he<f)Ct(he+1,0);else return}return Ct(f,mt(f).length),ke;function mt(lr){return lr<f?r[lr]:Z}function Ct(lr,rr){let rn=lr===he?V_(mt(lr).slice(Ze,rr)):hx([r[he].slice(Ze),...r.slice(he+1,lr),mt(lr).slice(0,rr)],a.slice(he,lr));ke.push(rn),he=lr,Ze=rr}}function mlt(r,a){return Pa(a)&&rRe(a,0)===sf(r,Fd(0))&&!ol(a,"1")}function By(r,a,l,f=0,d=!1){let y=!1,k,R=2048,W,J,Z,ke=0;he(a,l);function he(Mr,Nr){if(!(!vb(Nr)||LD(Nr))){if(Mr===vt||Mr===Mt){let Ti=k;k=Mr,he(Nr,Nr),k=Ti;return}if(Mr.aliasSymbol&&Mr.aliasSymbol===Nr.aliasSymbol){if(Mr.aliasTypeArguments){let Ti=$i(Mr.aliasSymbol).typeParameters,Xr=$g(Ti),ls=Uv(Mr.aliasTypeArguments,Ti,Xr,un(Mr.aliasSymbol.valueDeclaration)),Ra=Uv(Nr.aliasTypeArguments,Ti,Xr,un(Mr.aliasSymbol.valueDeclaration));rn(ls,Ra,Q3e(Mr.aliasSymbol))}return}if(Mr===Nr&&Mr.flags&3145728){for(let Ti of Mr.types)he(Ti,Ti);return}if(Nr.flags&1048576){let[Ti,Xr]=rr(Mr.flags&1048576?Mr.types:[Mr],Nr.types,glt),[ls,Ra]=rr(Ti,Xr,hlt);if(Ra.length===0)return;if(Nr=ri(Ra),ls.length===0){Ze(Mr,Nr,1);return}Mr=ri(ls)}else if(Nr.flags&2097152&&!Oi(Nr.types,nK)&&!(Mr.flags&1048576)){let[Ti,Xr]=rr(Mr.flags&2097152?Mr.types:[Mr],Nr.types,$h);if(Ti.length===0||Xr.length===0)return;Mr=ma(Ti),Nr=ma(Xr)}if(Nr.flags&41943040){if(LD(Nr))return;Nr=Fy(Nr)}if(Nr.flags&8650752){if(gRe(Mr))return;let Ti=ir(Nr);if(Ti){if(Mn(Mr)&262144||Mr===on)return;if(!Ti.isFixed){let ls=k||Mr;if(ls===Mt)return;if((Ti.priority===void 0||f<Ti.priority)&&(Ti.candidates=void 0,Ti.contraCandidates=void 0,Ti.topLevel=!0,Ti.priority=f),f===Ti.priority){if(mlt(Ti.typeParameter,ls))return;d&&!y?Ts(Ti.contraCandidates,ls)||(Ti.contraCandidates=jr(Ti.contraCandidates,ls),IK(r)):Ts(Ti.candidates,ls)||(Ti.candidates=jr(Ti.candidates,ls),IK(r))}!(f&128)&&Nr.flags&262144&&Ti.topLevel&&!FR(l,Nr)&&(Ti.topLevel=!1,IK(r))}R=Math.min(R,f);return}let Xr=Ry(Nr,!1);if(Xr!==Nr)he(Mr,Xr);else if(Nr.flags&8388608){let ls=Ry(Nr.indexType,!1);if(ls.flags&465829888){let Ra=v3e(Ry(Nr.objectType,!1),ls,!1);Ra&&Ra!==Nr&&he(Mr,Ra)}}}if(Mn(Mr)&4&&Mn(Nr)&4&&(Mr.target===Nr.target||Gp(Mr)&&Gp(Nr))&&!(Mr.node&&Nr.node))rn(Vo(Mr),Vo(Nr),oge(Mr.target));else if(Mr.flags&4194304&&Nr.flags&4194304)Kr(Mr.type,Nr.type);else if((AR(Mr)||Mr.flags&4)&&Nr.flags&4194304){let Ti=alt(Mr);mt(Ti,Nr.type,256)}else if(Mr.flags&8388608&&Nr.flags&8388608)he(Mr.objectType,Nr.objectType),he(Mr.indexType,Nr.indexType);else if(Mr.flags&268435456&&Nr.flags&268435456)Mr.symbol===Nr.symbol&&he(Mr.type,Nr.type);else if(Mr.flags&33554432)he(Mr.baseType,Nr),Ze(Tme(Mr),Nr,4);else if(Nr.flags&16777216)lr(Mr,Nr,Dn);else if(Nr.flags&3145728)Qn(Mr,Nr.types,Nr.flags);else if(Mr.flags&1048576){let Ti=Mr.types;for(let Xr of Ti)he(Xr,Nr)}else if(Nr.flags&134217728)hs(Mr,Nr);else{if(Mr=Rd(Mr),U_(Mr)&&U_(Nr)&&lr(Mr,Nr,Gs),!(f&512&&Mr.flags&467927040)){let Ti=__(Mr);if(Ti!==Mr&&!(Ti.flags&2621440))return he(Ti,Nr);Mr=Ti}Mr.flags&2621440&&lr(Mr,Nr,co)}}}function Ze(Mr,Nr,Ti){let Xr=f;f|=Ti,he(Mr,Nr),f=Xr}function mt(Mr,Nr,Ti){let Xr=f;f|=Ti,Kr(Mr,Nr),f=Xr}function Ct(Mr,Nr,Ti,Xr){let ls=f;f|=Xr,Qn(Mr,Nr,Ti),f=ls}function lr(Mr,Nr,Ti){let Xr=Mr.id+","+Nr.id,ls=W&&W.get(Xr);if(ls!==void 0){R=Math.min(R,ls);return}(W||(W=new Map)).set(Xr,-1);let Ra=R;R=2048;let No=ke;(J??(J=[])).push(Mr),(Z??(Z=[])).push(Nr),iw(Mr,J,J.length,2)&&(ke|=1),iw(Nr,Z,Z.length,2)&&(ke|=2),ke!==3?Ti(Mr,Nr):R=-1,Z.pop(),J.pop(),ke=No,W.set(Xr,R),R=Math.min(R,Ra)}function rr(Mr,Nr,Ti){let Xr,ls;for(let Ra of Nr)for(let No of Mr)Ti(No,Ra)&&(he(No,Ra),Xr=Zh(Xr,No),ls=Zh(ls,Ra));return[Xr?An(Mr,Ra=>!Ts(Xr,Ra)):Mr,ls?An(Nr,Ra=>!Ts(ls,Ra)):Nr]}function rn(Mr,Nr,Ti){let Xr=Mr.length<Nr.length?Mr.length:Nr.length;for(let ls=0;ls<Xr;ls++)ls<Ti.length&&(Ti[ls]&7)===2?Kr(Mr[ls],Nr[ls]):he(Mr[ls],Nr[ls])}function Kr(Mr,Nr){d=!d,he(Mr,Nr),d=!d}function pr(Mr,Nr){V||f&1024?Kr(Mr,Nr):he(Mr,Nr)}function ir(Mr){if(Mr.flags&8650752){for(let Nr of r)if(Mr===Nr.typeParameter)return Nr}}function yn(Mr){let Nr;for(let Ti of Mr){let Xr=Ti.flags&2097152&&On(Ti.types,ls=>!!ir(ls));if(!Xr||Nr&&Xr!==Nr)return;Nr=Xr}return Nr}function Qn(Mr,Nr,Ti){let Xr=0;if(Ti&1048576){let ls,Ra=Mr.flags&1048576?Mr.types:[Mr],No=new Array(Ra.length),ll=!1;for(let Fa of Nr)if(ir(Fa))ls=Fa,Xr++;else for(let q_=0;q_<Ra.length;q_++){let Zc=R;R=2048,he(Ra[q_],Fa),R===f&&(No[q_]=!0),ll=ll||R===-1,R=Math.min(R,Zc)}if(Xr===0){let Fa=yn(Nr);Fa&&Ze(Mr,Fa,1);return}if(Xr===1&&!ll){let Fa=ga(Ra,(q_,Zc)=>No[Zc]?void 0:q_);if(Fa.length){he(ri(Fa),ls);return}}}else for(let ls of Nr)ir(ls)?Xr++:he(Mr,ls);if(Ti&2097152?Xr===1:Xr>0)for(let ls of Nr)ir(ls)&&Ze(Mr,ls,1)}function Wi(Mr,Nr,Ti){if(Ti.flags&1048576||Ti.flags&2097152){let Xr=!1;for(let ls of Ti.types)Xr=Wi(Mr,Nr,ls)||Xr;return Xr}if(Ti.flags&4194304){let Xr=ir(Ti.type);if(Xr&&!Xr.isFixed&&!gRe(Mr)){let ls=dRe(Mr,Nr,Ti);ls&&Ze(ls,Xr.typeParameter,Mn(Mr)&262144?16:8)}return!0}if(Ti.flags&262144){Ze(_g(Mr,Mr.pattern?2:0),Ti,32);let Xr=dx(Ti);if(Xr&&Wi(Mr,Nr,Xr))return!0;let ls=hr(so(Mr),an),Ra=hr(Mu(Mr),No=>No!==Ci?No.type:ar);return he(ri(Ki(ls,Ra)),Ey(Nr)),!0}return!1}function Dn(Mr,Nr){if(Mr.flags&16777216)he(Mr.checkType,Nr.checkType),he(Mr.extendsType,Nr.extendsType),he(mb(Mr),mb(Nr)),he(gb(Mr),gb(Nr));else{let Ti=[mb(Nr),gb(Nr)];Ct(Mr,Ti,Nr.flags,d?64:0)}}function hs(Mr,Nr){let Ti=vRe(Mr,Nr),Xr=Nr.types;if(Ti||Oi(Nr.texts,ls=>ls.length===0))for(let ls=0;ls<Xr.length;ls++){let Ra=Ti?Ti[ls]:ar,No=Xr[ls];if(Ra.flags&128&&No.flags&8650752){let ll=ir(No),Fa=ll?Su(ll.typeParameter):void 0;if(Fa&&!Se(Fa)){let q_=Fa.flags&1048576?Fa.types:[Fa],Zc=d_(q_,(_c,qf)=>_c|qf.flags,0);if(!(Zc&4)){let _c=Ra.value;Zc&296&&!hRe(_c,!0)&&(Zc&=-297),Zc&2112&&!LO(_c,!0)&&(Zc&=-2113);let qf=d_(q_,(Jc,el)=>el.flags&Zc?Jc.flags&4?Jc:el.flags&4?Ra:Jc.flags&134217728?Jc:el.flags&134217728&&AK(Ra,el)?Ra:Jc.flags&268435456?Jc:el.flags&268435456&&_c===m3e(el.symbol,_c)?Ra:Jc.flags&128?Jc:el.flags&128&&el.value===_c?el:Jc.flags&8?Jc:el.flags&8?Fd(+_c):Jc.flags&32?Jc:el.flags&32?Fd(+_c):Jc.flags&256?Jc:el.flags&256&&el.value===+_c?el:Jc.flags&64?Jc:el.flags&64?plt(_c):Jc.flags&2048?Jc:el.flags&2048&&AS(el.value)===_c?el:Jc.flags&16?Jc:el.flags&16?_c==="true"?it:_c==="false"?Pr:Ut:Jc.flags&512?Jc:el.flags&512&&el.intrinsicName===_c?el:Jc.flags&32768?Jc:el.flags&32768&&el.intrinsicName===_c?el:Jc.flags&65536?Jc:el.flags&65536&&el.intrinsicName===_c?el:Jc:Jc,ar);if(!(qf.flags&131072)){he(qf,No);continue}}}}he(Ra,No)}}function Gs(Mr,Nr){he(hp(Mr),hp(Nr)),he(Ey(Mr),Ey(Nr));let Ti=Jv(Mr),Xr=Jv(Nr);Ti&&Xr&&he(Ti,Xr)}function co(Mr,Nr){var Ti,Xr;if(Mn(Mr)&4&&Mn(Nr)&4&&(Mr.target===Nr.target||Gp(Mr)&&Gp(Nr))){rn(Vo(Mr),Vo(Nr),oge(Mr.target));return}if(U_(Mr)&&U_(Nr)&&Gs(Mr,Nr),Mn(Nr)&32&&!Nr.declaration.nameType){let ls=hp(Nr);if(Wi(Mr,Nr,ls))return}if(!_lt(Mr,Nr)){if(G1(Mr)){if(Pa(Nr)){let ls=Vv(Mr),Ra=Vv(Nr),No=Vo(Nr),ll=Nr.target.elementFlags;if(Pa(Mr)&&Gct(Mr,Nr)){for(let Zc=0;Zc<Ra;Zc++)he(Vo(Mr)[Zc],No[Zc]);return}let Fa=Pa(Mr)?Math.min(Mr.target.fixedLength,Nr.target.fixedLength):0,q_=Math.min(Pa(Mr)?SR(Mr.target,3):0,Nr.target.combinedFlags&12?SR(Nr.target,3):0);for(let Zc=0;Zc<Fa;Zc++)he(Vo(Mr)[Zc],No[Zc]);if(!Pa(Mr)||ls-Fa-q_===1&&Mr.target.elementFlags[Fa]&4){let Zc=Vo(Mr)[Fa];for(let _c=Fa;_c<Ra-q_;_c++)he(ll[_c]&8?Ru(Zc):Zc,No[_c])}else{let Zc=Ra-Fa-q_;if(Zc===2){if(ll[Fa]&ll[Fa+1]&8){let _c=ir(No[Fa]);_c&&_c.impliedArity!==void 0&&(he(mN(Mr,Fa,q_+ls-_c.impliedArity),No[Fa]),he(mN(Mr,Fa+_c.impliedArity,q_),No[Fa+1]))}else if(ll[Fa]&8&&ll[Fa+1]&4){let _c=(Ti=ir(No[Fa]))==null?void 0:Ti.typeParameter,qf=_c&&Su(_c);if(qf&&Pa(qf)&&!(qf.target.combinedFlags&12)){let Jc=qf.target.fixedLength;he(mN(Mr,Fa,ls-(Fa+Jc)),No[Fa]),he(yN(Mr,Fa+Jc,q_),No[Fa+1])}}else if(ll[Fa]&4&&ll[Fa+1]&8){let _c=(Xr=ir(No[Fa+1]))==null?void 0:Xr.typeParameter,qf=_c&&Su(_c);if(qf&&Pa(qf)&&!(qf.target.combinedFlags&12)){let Jc=qf.target.fixedLength,el=ls-SR(Nr.target,3),Xv=el-Jc,XD=Hg(Vo(Mr).slice(Xv,el),Mr.target.elementFlags.slice(Xv,el),!1,Mr.target.labeledElementDeclarations&&Mr.target.labeledElementDeclarations.slice(Xv,el));he(yN(Mr,Fa,q_+Jc),No[Fa]),he(XD,No[Fa+1])}}}else if(Zc===1&&ll[Fa]&8){let _c=Nr.target.elementFlags[Ra-1]&2,qf=mN(Mr,Fa,q_);Ze(qf,No[Fa],_c?2:0)}else if(Zc===1&&ll[Fa]&4){let _c=yN(Mr,Fa,q_);_c&&he(_c,No[Fa])}}for(let Zc=0;Zc<q_;Zc++)he(Vo(Mr)[ls-Zc-1],No[Ra-Zc-1]);return}if(Gp(Nr)){bc(Mr,Nr);return}}As(Mr,Nr),Qu(Mr,Nr,0),Qu(Mr,Nr,1),bc(Mr,Nr)}}function As(Mr,Nr){let Ti=Gv(Nr);for(let Xr of Ti){let ls=ca(Mr,Xr.escapedName);ls&&!pt(ls.declarations,Cge)&&he(Wy(an(ls),!!(ls.flags&16777216)),Wy(an(Xr),!!(Xr.flags&16777216)))}}function Qu(Mr,Nr,Ti){let Xr=Bs(Mr,Ti),ls=Xr.length;if(ls>0){let Ra=Bs(Nr,Ti),No=Ra.length;for(let ll=0;ll<No;ll++){let Fa=Math.max(ls-No+ll,0);tu(yat(Xr[Fa]),bR(Ra[ll]))}}}function tu(Mr,Nr){if(!(Mr.flags&64)){let Ti=y,Xr=Nr.declaration?Nr.declaration.kind:0;y=y||Xr===174||Xr===173||Xr===176,gge(Mr,Nr,pr),y=Ti}hge(Mr,Nr,he)}function bc(Mr,Nr){let Ti=Mn(Mr)&Mn(Nr)&32?8:0,Xr=Mu(Nr);if(xK(Mr))for(let ls of Xr){let Ra=[];for(let No of so(Mr))if(KC(ZC(No,8576),ls.keyType)){let ll=an(No);Ra.push(No.flags&16777216?kK(ll):ll)}for(let No of Mu(Mr))KC(No.keyType,ls.keyType)&&Ra.push(No.type);Ra.length&&Ze(ri(Ra),ls.type,Ti)}for(let ls of Xr){let Ra=gR(Mr,ls.keyType);Ra&&Ze(Ra.type,ls.type,Ti)}}}function glt(r,a){return a===Re?r===a:$h(r,a)||!!(a.flags&4&&r.flags&128||a.flags&8&&r.flags&256)}function hlt(r,a){return!!(r.flags&524288&&a.flags&524288&&r.symbol&&r.symbol===a.symbol||r.aliasSymbol&&r.aliasTypeArguments&&r.aliasSymbol===a.aliasSymbol)}function ylt(r){let a=D_(r);return!!a&&zc(a.flags&16777216?ame(a):a,406978556)}function Hv(r){return!!(Mn(r)&128)}function wge(r){return!!(Mn(r)&16512)}function vlt(r){if(r.length>1){let a=An(r,wge);if(a.length){let l=ri(a,2);return Ki(An(r,f=>!wge(f)),[l])}}return r}function blt(r){return r.priority&416?ma(r.contraCandidates):Lct(r.contraCandidates)}function Slt(r,a){let l=vlt(r.candidates),f=ylt(r.typeParameter)||mx(r.typeParameter),d=!f&&r.topLevel&&(r.isFixed||!slt(a,r.typeParameter)),y=f?ul(l,f_):d?ul(l,U1):l,k=r.priority&416?ri(y,2):Oct(y);return Rf(k)}function Ige(r,a){let l=r.inferences[a];if(!l.inferredType){let f,d;if(r.signature){let k=l.candidates?Slt(l,r.signature):void 0,R=l.contraCandidates?blt(l):void 0;if(k||R){let W=k&&(!R||!(k.flags&131073)&&pt(l.contraCandidates,J=>Hs(k,J))&&Oi(r.inferences,J=>J!==l&&D_(J.typeParameter)!==l.typeParameter||Oi(J.candidates,Z=>Hs(Z,k))));f=W?k:R,d=W?R:k}else if(r.flags&1)f=Gt;else{let W=wT(l.typeParameter);W&&(f=Hi(W,Qot(Hot(r,a),r.nonFixingMapper)))}}else f=mRe(l);l.inferredType=f||Dge(!!(r.flags&2));let y=D_(l.typeParameter);if(y){let k=Hi(y,r.nonFixingMapper);(!f||!r.compareTypes(f,Mf(k,f)))&&(l.inferredType=d&&r.compareTypes(d,Mf(k,d))?d:k)}}return l.inferredType}function Dge(r){return r?Fe:kt}function Pge(r){let a=[];for(let l=0;l<r.inferences.length;l++)a.push(Ige(r,l));return a}function SRe(r){switch(r.escapedText){case"document":case"console":return p.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return F.types?p.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:p.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 F.types?p.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:p.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 F.types?p.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:p.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;case"Bun":return F.types?p.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:p.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 p.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(qs(r.parent))return p.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function;default:return r.parent.kind===304?p.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:p.Cannot_find_name_0}}function Hu(r){let a=wn(r);return a.resolvedSymbol||(a.resolvedSymbol=!Tc(r)&&_t(r,r,1160127,SRe(r),!mO(r),!1)||Y),a.resolvedSymbol}function Age(r){return!!(r.flags&33554432||gr(r,a=>hu(a)||sd(a)||v_(a)))}function s9(r,a,l,f){switch(r.kind){case 80:if(!CS(r)){let k=Hu(r);return k!==Y?`${f?Ua(f):"-1"}|${Zl(a)}|${Zl(l)}|${ua(k)}`:void 0}case 110:return`0|${f?Ua(f):"-1"}|${Zl(a)}|${Zl(l)}`;case 235:case 217:return s9(r.expression,a,l,f);case 166:let d=s9(r.left,a,l,f);return d&&`${d}.${r.right.escapedText}`;case 211:case 212:let y=xx(r);if(y!==void 0){let k=s9(r.expression,a,l,f);return k&&`${k}.${y}`}if(wo(r)&&je(r.argumentExpression)){let k=Hu(r.argumentExpression);if(sw(k)||jR(k)&&!LR(k)){let R=s9(r.expression,a,l,f);return R&&`${R}.@${ua(k)}`}}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${Ua(r)}#${Zl(a)}`}}function uu(r,a){switch(a.kind){case 217:case 235:return uu(r,a.expression);case 226:return ql(a)&&uu(r,a.left)||vn(a)&&a.operatorToken.kind===28&&uu(r,a.right)}switch(r.kind){case 236:return a.kind===236&&r.keywordToken===a.keywordToken&&r.name.escapedText===a.name.escapedText;case 80:case 81:return CS(r)?a.kind===110:a.kind===80&&Hu(r)===Hu(a)||(oi(a)||Da(a))&&nf(Hu(r))===In(a);case 110:return a.kind===110;case 108:return a.kind===108;case 235:case 217:case 238:return uu(r.expression,a);case 211:case 212:let l=xx(r);if(l!==void 0){let f=Oo(a)?xx(a):void 0;if(f!==void 0)return f===l&&uu(r.expression,a.expression)}if(wo(r)&&wo(a)&&je(r.argumentExpression)&&je(a.argumentExpression)){let f=Hu(r.argumentExpression);if(f===Hu(a.argumentExpression)&&(sw(f)||jR(f)&&!LR(f)))return uu(r.expression,a.expression)}break;case 166:return Oo(a)&&r.right.escapedText===xx(a)&&uu(r.left,a.expression);case 226:return vn(r)&&r.operatorToken.kind===28&&uu(r.right,a)}return!1}function xx(r){if(Nn(r))return r.name.escapedText;if(wo(r))return Tlt(r);if(Da(r)){let a=es(r);return a?gc(a):void 0}if(Bi(r))return""+r.parent.parameters.indexOf(r)}function Ege(r){return r.flags&8192?r.escapedName:r.flags&384?gc(""+r.value):void 0}function Tlt(r){return tp(r.argumentExpression)?gc(r.argumentExpression.text):mo(r.argumentExpression)?klt(r.argumentExpression):void 0}function klt(r){let a=Ac(r,111551,!0);if(!a||!(sw(a)||a.flags&8))return;let l=a.valueDeclaration;if(l===void 0)return;let f=O1(l);if(f){let d=Ege(f);if(d!==void 0)return d}if(ik(l)&&tg(l,r)){let d=X6(l);if(d){let y=Ws(l.parent)?yo(l):ku(d);return y&&Ege(y)}if(_v(l))return o2(l.name)}}function TRe(r,a){for(;Oo(r);)if(r=r.expression,uu(r,a))return!0;return!1}function Cx(r,a){for(;ju(r);)if(r=r.expression,uu(r,a))return!0;return!1}function vN(r,a){if(r&&r.flags&1048576){let l=hMe(r,a);if(l&&kc(l)&2)return l.links.isDiscriminantProperty===void 0&&(l.links.isDiscriminantProperty=(l.links.checkFlags&192)===192&&!z1(an(l))),!!l.links.isDiscriminantProperty}return!1}function kRe(r,a){let l;for(let f of r)if(vN(a,f.escapedName)){if(l){l.push(f);continue}l=[f]}return l}function xlt(r,a){let l=new Map,f=0;for(let d of r)if(d.flags&61603840){let y=ol(d,a);if(y){if(!AR(y))return;let k=!1;Ix(y,R=>{let W=Zl(f_(R)),J=l.get(W);J?J!==kt&&(l.set(W,kt),k=!0):l.set(W,d)}),k||f++}}return f>=10&&f*2>=r.length?l:void 0}function a9(r){let a=r.types;if(!(a.length<10||Mn(r)&32768||Hy(a,l=>!!(l.flags&59506688))<10)){if(r.keyPropertyName===void 0){let l=or(a,d=>d.flags&59506688?or(so(d),y=>dm(an(y))?y.escapedName:void 0):void 0),f=l&&xlt(a,l);r.keyPropertyName=f?l:"",r.constituentMap=f}return r.keyPropertyName.length?r.keyPropertyName:void 0}}function o9(r,a){var l;let f=(l=r.constituentMap)==null?void 0:l.get(Zl(f_(a)));return f!==kt?f:void 0}function xRe(r,a){let l=a9(r),f=l&&ol(a,l);return f&&o9(r,f)}function Clt(r,a){let l=a9(r),f=l&&On(a.properties,y=>y.symbol&&y.kind===303&&y.symbol.escapedName===l&&g9(y.initializer)),d=f&&O9(f.initializer);return d&&o9(r,d)}function CRe(r,a){return uu(r,a)||TRe(r,a)}function wRe(r,a){if(r.arguments){for(let l of r.arguments)if(CRe(a,l)||Cx(l,a))return!0}return!!(r.expression.kind===211&&CRe(a,r.expression.expression))}function Nge(r){return r.id<=0&&(r.id=BSe,BSe++),r.id}function wlt(r,a){if(!(r.flags&1048576))return Hs(r,a);for(let l of r.types)if(Hs(l,a))return!0;return!1}function Ilt(r,a){if(r===a)return r;if(a.flags&131072)return a;let l=`A${Zl(r)},${Zl(a)}`;return nm(l)??rb(l,Dlt(r,a))}function Dlt(r,a){let l=cl(r,d=>wlt(a,d)),f=a.flags&512&&AT(a)?ac(l,rw):l;return Hs(a,f)?f:r}function Mge(r){if(Mn(r)&256)return!1;let a=pm(r);return!!(a.callSignatures.length||a.constructSignatures.length||a.members.get("bind")&&RT(r,Wt))}function zD(r,a){return Rge(r,a)&a}function mm(r,a){return zD(r,a)!==0}function Rge(r,a){r.flags&467927040&&(r=Su(r)||kt);let l=r.flags;if(l&268435460)return te?16317953:16776705;if(l&134217856){let f=l&128&&r.value==="";return te?f?12123649:7929345:f?12582401:16776705}if(l&40)return te?16317698:16776450;if(l&256){let f=r.value===0;return te?f?12123394:7929090:f?12582146:16776450}if(l&64)return te?16317188:16775940;if(l&2048){let f=oRe(r);return te?f?12122884:7928580:f?12581636:16775940}return l&16?te?16316168:16774920:l&528?te?r===Pr||r===$r?12121864:7927560:r===Pr||r===$r?12580616:16774920:l&524288?(a&(te?83427327:83886079))===0?0:Mn(r)&16&&Oy(r)?te?83427327:83886079:Mge(r)?te?7880640:16728e3:te?7888800:16736160:l&16384?9830144:l&32768?26607360:l&65536?42917664:l&12288?te?7925520:16772880:l&67108864?te?7888800:16736160:l&131072?0:l&1048576?d_(r.types,(f,d)=>f|Rge(d,a),0):l&2097152?Plt(r,a):83886079}function Plt(r,a){let l=zc(r,402784252),f=0,d=134217727;for(let y of r.types)if(!(l&&y.flags&524288)){let k=Rge(y,a);f|=k,d&=k}return f&8256|d&134209471}function Up(r,a){return cl(r,l=>mm(l,a))}function wx(r,a){let l=Fge(Up(te&&r.flags&2?La:r,a));if(te)switch(a){case 524288:return IRe(l,65536,131072,33554432,jt);case 1048576:return IRe(l,131072,65536,16777216,pe);case 2097152:case 4194304:return ac(l,f=>mm(f,262144)?qct(f):f)}return l}function IRe(r,a,l,f,d){let y=zD(r,50528256);if(!(y&a))return r;let k=ri([Oa,d]);return ac(r,R=>mm(R,a)?ma([R,!(y&f)&&mm(R,l)?k:Oa]):R)}function Fge(r){return r===La?kt:r}function Oge(r,a){return a?ri([Un(r),ku(a)]):r}function DRe(r,a){var l;let f=My(a);if(!Ep(f))return Ke;let d=Np(f);return ol(r,d)||OR((l=XC(r,d))==null?void 0:l.type)||Ke}function PRe(r,a){return of(r,hN)&&rRe(r,a)||OR(Qv(65,r,pe,void 0))||Ke}function OR(r){return r&&(F.noUncheckedIndexedAccess?ri([r,Re]):r)}function ARe(r){return Ru(Qv(65,r,pe,void 0)||Ke)}function Alt(r){return r.parent.kind===209&&Lge(r.parent)||r.parent.kind===303&&Lge(r.parent.parent)?Oge(c9(r),r.right):ku(r.right)}function Lge(r){return r.parent.kind===226&&r.parent.left===r||r.parent.kind===250&&r.parent.initializer===r}function Elt(r,a){return PRe(c9(r),r.elements.indexOf(a))}function Nlt(r){return ARe(c9(r.parent))}function ERe(r){return DRe(c9(r.parent),r.name)}function Mlt(r){return Oge(ERe(r),r.objectAssignmentInitializer)}function c9(r){let{parent:a}=r;switch(a.kind){case 249:return ut;case 250:return G9(a)||Ke;case 226:return Alt(a);case 220:return pe;case 209:return Elt(a,r);case 230:return Nlt(a);case 303:return ERe(a);case 304:return Mlt(a)}return Ke}function Rlt(r){let a=r.parent,l=MRe(a.parent),f=a.kind===206?DRe(l,r.propertyName||r.name):r.dotDotDotToken?ARe(l):PRe(l,a.elements.indexOf(r));return Oge(f,r.initializer)}function NRe(r){return wn(r).resolvedType||ku(r)}function Flt(r){return r.initializer?NRe(r.initializer):r.parent.parent.kind===249?ut:r.parent.parent.kind===250&&G9(r.parent.parent)||Ke}function MRe(r){return r.kind===260?Flt(r):Rlt(r)}function Olt(r){return r.kind===260&&r.initializer&&md(r.initializer)||r.kind!==208&&r.parent.kind===226&&md(r.parent.right)}function OT(r){switch(r.kind){case 217:return OT(r.expression);case 226:switch(r.operatorToken.kind){case 64:case 76:case 77:case 78:return OT(r.left);case 28:return OT(r.right)}}return r}function RRe(r){let{parent:a}=r;return a.kind===217||a.kind===226&&a.operatorToken.kind===64&&a.left===r||a.kind===226&&a.operatorToken.kind===28&&a.right===r?RRe(a):r}function Llt(r){return r.kind===296?f_(ku(r.expression)):ar}function EK(r){let a=wn(r);if(!a.switchTypes){a.switchTypes=[];for(let l of r.caseBlock.clauses)a.switchTypes.push(Llt(l))}return a.switchTypes}function FRe(r){if(pt(r.caseBlock.clauses,l=>l.kind===296&&!Ha(l.expression)))return;let a=[];for(let l of r.caseBlock.clauses){let f=l.kind===296?l.expression.text:void 0;a.push(f&&!Ts(a,f)?f:void 0)}return a}function jlt(r,a){return r.flags&1048576?!or(r.types,l=>!Ts(a,l)):Ts(a,r)}function bN(r,a){return!!(r===a||r.flags&131072||a.flags&1048576&&Wlt(r,a))}function Wlt(r,a){if(r.flags&1048576){for(let l of r.types)if(!qh(a.types,l))return!1;return!0}return r.flags&1056&&jQ(r)===a?!0:qh(a.types,r)}function Ix(r,a){return r.flags&1048576?or(r.types,a):a(r)}function Vp(r,a){return r.flags&1048576?pt(r.types,a):a(r)}function of(r,a){return r.flags&1048576?Oi(r.types,a):a(r)}function Blt(r,a){return r.flags&3145728?Oi(r.types,a):a(r)}function cl(r,a){if(r.flags&1048576){let l=r.types,f=An(l,a);if(f===l)return r;let d=r.origin,y;if(d&&d.flags&1048576){let k=d.types,R=An(k,W=>!!(W.flags&1048576)||a(W));if(k.length-R.length===l.length-f.length){if(R.length===1)return R[0];y=Rme(1048576,R)}}return Ome(f,r.objectFlags&16809984,void 0,void 0,y)}return r.flags&131072||a(r)?r:ar}function NK(r,a){return cl(r,l=>l!==a)}function zlt(r){return r.flags&1048576?r.types.length:1}function ac(r,a,l){if(r.flags&131072)return r;if(!(r.flags&1048576))return a(r);let f=r.origin,d=f&&f.flags&1048576?f.types:r.types,y,k=!1;for(let R of d){let W=R.flags&1048576?ac(R,a,l):a(R);k||(k=R!==W),W&&(y?y.push(W):y=[W])}return k?y&&ri(y,l?0:1):r}function ORe(r,a,l,f){return r.flags&1048576&&l?ri(hr(r.types,a),1,l,f):ac(r,a)}function SN(r,a){return cl(r,l=>(l.flags&a)!==0)}function LRe(r,a){return zc(r,134217804)&&zc(a,402655616)?ac(r,l=>l.flags&4?SN(a,402653316):yx(l)&&!zc(a,402653188)?SN(a,128):l.flags&8?SN(a,264):l.flags&64?SN(a,2112):l):r}function JD(r){return r.flags===0}function Dx(r){return r.flags===0?r.type:r}function GD(r,a){return a?{flags:0,type:r.flags&131072?Gt:r}:r}function Jlt(r){let a=_r(256);return a.elementType=r,a}function jge(r){return Nt[r.id]||(Nt[r.id]=Jlt(r))}function jRe(r,a){let l=MR(Ly(O9(a)));return bN(l,r.elementType)?r:jge(ri([r.elementType,l]))}function Glt(r){return r.flags&131072?Il:Ru(r.flags&1048576?ri(r.types,2):r)}function Ult(r){return r.finalArrayType||(r.finalArrayType=Glt(r.elementType))}function l9(r){return Mn(r)&256?Ult(r):r}function Vlt(r){return Mn(r)&256?r.elementType:ar}function qlt(r){let a=!1;for(let l of r)if(!(l.flags&131072)){if(!(Mn(l)&256))return!1;a=!0}return a}function WRe(r){let a=RRe(r),l=a.parent,f=Nn(l)&&(l.name.escapedText==="length"||l.parent.kind===213&&je(l.name)&&Fz(l.name)),d=l.kind===212&&l.expression===a&&l.parent.kind===226&&l.parent.operatorToken.kind===64&&l.parent.left===l&&!A0(l.parent)&&Tu(ku(l.argumentExpression),296);return f||d}function $lt(r){return(oi(r)||ds(r)||s_(r)||Bi(r))&&!!(pl(r)||un(r)&&Yy(r)&&r.initializer&&O0(r.initializer)&&Wf(r.initializer))}function MK(r,a){if(r=Pc(r),r.flags&8752)return an(r);if(r.flags&7){if(kc(r)&262144){let f=r.links.syntheticOrigin;if(f&&MK(f))return an(r)}let l=r.valueDeclaration;if(l){if($lt(l))return an(r);if(oi(l)&&l.parent.parent.kind===250){let f=l.parent.parent,d=u9(f.expression,void 0);if(d){let y=f.awaitModifier?15:13;return Qv(y,d,pe,void 0)}}a&&Xs(a,cn(l,p._0_needs_an_explicit_type_annotation,Qi(r)))}}}function u9(r,a){if(!(r.flags&67108864))switch(r.kind){case 80:let l=nf(Hu(r));return MK(l,a);case 110:return dut(r);case 108:return WK(r);case 211:{let f=u9(r.expression,a);if(f){let d=r.name,y;if(ji(d)){if(!f.symbol)return;y=ca(f,f4(f.symbol,d.escapedText))}else y=ca(f,d.escapedText);return y&&MK(y,a)}return}case 217:return u9(r.expression,a)}}function _9(r){let a=wn(r),l=a.effectsSignature;if(l===void 0){let f;if(vn(r)){let k=VD(r.right);f=Whe(k)}else r.parent.kind===244?f=u9(r.expression,void 0):r.expression.kind!==108&&(ju(r)?f=pg(ER(rs(r.expression),r.expression),r.expression):f=VD(r.expression));let d=Bs(f&&__(f)||kt,0),y=d.length===1&&!d[0].typeParameters?d[0]:pt(d,BRe)?$D(r):void 0;l=a.effectsSignature=y&&BRe(y)?y:Hn}return l===Hn?void 0:l}function BRe(r){return!!(zp(r)||r.declaration&&(RD(r.declaration)||kt).flags&131072)}function Hlt(r,a){if(r.kind===1||r.kind===3)return a.arguments[r.parameterIndex];let l=Ka(a.expression);return Oo(l)?Ka(l.expression):void 0}function Qlt(r){let a=gr(r,jB),l=Fr(r),f=Cm(l,a.statements.pos);za.add(kl(l,f.start,f.length,p.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function f9(r){let a=RK(r,!1);return Sn=r,zr=a,a}function p9(r){let a=Ka(r,!0);return a.kind===97||a.kind===226&&(a.operatorToken.kind===56&&(p9(a.left)||p9(a.right))||a.operatorToken.kind===57&&p9(a.left)&&p9(a.right))}function RK(r,a){for(;;){if(r===Sn)return zr;let l=r.flags;if(l&4096){if(!a){let f=Nge(r),d=TC[f];return d!==void 0?d:TC[f]=RK(r,!0)}a=!1}if(l&368)r=r.antecedent;else if(l&512){let f=_9(r.node);if(f){let d=zp(f);if(d&&d.kind===3&&!d.type){let y=r.node.arguments[d.parameterIndex];if(y&&p9(y))return!1}if(Za(f).flags&131072)return!1}r=r.antecedent}else{if(l&4)return pt(r.antecedent,f=>RK(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&&NFe(f.switchStatement))return!1;r=r.antecedent}else if(l&1024){Sn=void 0;let f=r.node.target,d=f.antecedent;f.antecedent=r.node.antecedents;let y=RK(r.antecedent,!1);return f.antecedent=d,y}else return!(l&1)}}}function FK(r,a){for(;;){let l=r.flags;if(l&4096){if(!a){let f=Nge(r),d=Yk[f];return d!==void 0?d:Yk[f]=FK(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 Oi(r.antecedent,f=>FK(f,!1));if(l&8)r=r.antecedent[0];else if(l&1024){let f=r.node.target,d=f.antecedent;f.antecedent=r.node.antecedents;let y=FK(r.antecedent,!1);return f.antecedent=d,y}else return!!(l&1)}}}function Wge(r){switch(r.kind){case 110:return!0;case 80:if(!CS(r)){let l=Hu(r);return sw(l)||jR(l)&&!LR(l)||!!l.valueDeclaration&&Ao(l.valueDeclaration)}break;case 211:case 212:return Wge(r.expression)&&ym(wn(r).resolvedSymbol||Y);case 206:case 207:let a=Am(r.parent);return Bi(a)||yne(a)?!Bge(a):oi(a)&&a8(a)}return!1}function zy(r,a,l=a,f,d=(y=>(y=Vn(r,$w))==null?void 0:y.flowNode)()){let y,k=!1,R=0;if(cr)return Ke;if(!d)return a;qr++;let W=Lt,J=Dx(he(d));Lt=W;let Z=Mn(J)&256&&WRe(r)?Il:l9(J);if(Z===Sr||r.parent&&r.parent.kind===235&&!(Z.flags&131072)&&Up(Z,2097152).flags&131072)return a;return Z;function ke(){return k?y:(k=!0,y=s9(r,a,l,f))}function he(Bt){var yr;if(R===2e3)return(yr=_n)==null||yr.instant(_n.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:Bt.id}),cr=!0,Qlt(r),Ke;R++;let Gr;for(;;){let nn=Bt.flags;if(nn&4096){for(let Te=W;Te<Lt;Te++)if(gD[Te]===Bt)return R--,Xk[Te];Gr=Bt}let Pn;if(nn&16){if(Pn=mt(Bt),!Pn){Bt=Bt.antecedent;continue}}else if(nn&512){if(Pn=lr(Bt),!Pn){Bt=Bt.antecedent;continue}}else if(nn&96)Pn=rn(Bt);else if(nn&128)Pn=Kr(Bt);else if(nn&12){if(Bt.antecedent.length===1){Bt=Bt.antecedent[0];continue}Pn=nn&4?pr(Bt):ir(Bt)}else if(nn&256){if(Pn=rr(Bt),!Pn){Bt=Bt.antecedent;continue}}else if(nn&1024){let Te=Bt.node.target,ce=Te.antecedent;Te.antecedent=Bt.node.antecedents,Pn=he(Bt.antecedent),Te.antecedent=ce}else if(nn&2){let Te=Bt.node;if(Te&&Te!==f&&r.kind!==211&&r.kind!==212&&!(r.kind===110&&Te.kind!==219)){Bt=Te.flowNode;continue}Pn=l}else Pn=r8(a);return Gr&&(gD[Lt]=Gr,Xk[Lt]=Pn,Lt++),R--,Pn}}function Ze(Bt){let yr=Bt.node;return zge(yr.kind===260||yr.kind===208?MRe(yr):c9(yr),r)}function mt(Bt){let yr=Bt.node;if(uu(r,yr)){if(!f9(Bt))return Sr;if(P0(yr)===2){let nn=he(Bt.antecedent);return GD(Ly(Dx(nn)),JD(nn))}if(a===St||a===Il){if(Olt(yr))return jge(ar);let nn=U1(Ze(Bt));return Hs(nn,a)?nn:wl}let Gr=Iz(yr)?Ly(a):a;return Gr.flags&1048576?Ilt(Gr,Ze(Bt)):Gr}if(TRe(r,yr)){if(!f9(Bt))return Sr;if(oi(yr)&&(un(yr)||a8(yr))){let Gr=ZP(yr);if(Gr&&(Gr.kind===218||Gr.kind===219))return he(Bt.antecedent)}return a}if(oi(yr)&&yr.parent.parent.kind===249&&(uu(r,yr.parent.parent.expression)||Cx(yr.parent.parent.expression,r)))return che(l9(Dx(he(Bt.antecedent))))}function Ct(Bt,yr){let Gr=Ka(yr,!0);if(Gr.kind===97)return Sr;if(Gr.kind===226){if(Gr.operatorToken.kind===56)return Ct(Ct(Bt,Gr.left),Gr.right);if(Gr.operatorToken.kind===57)return ri([Ct(Bt,Gr.left),Ct(Bt,Gr.right)])}return $f(Bt,Gr,!0)}function lr(Bt){let yr=_9(Bt.node);if(yr){let Gr=zp(yr);if(Gr&&(Gr.kind===2||Gr.kind===3)){let nn=he(Bt.antecedent),Pn=l9(Dx(nn)),Te=Gr.type?o8(Pn,Gr,Bt.node,!0):Gr.kind===3&&Gr.parameterIndex>=0&&Gr.parameterIndex<Bt.node.arguments.length?Ct(Pn,Bt.node.arguments[Gr.parameterIndex]):Pn;return Te===Pn?nn:GD(Te,JD(nn))}if(Za(yr).flags&131072)return Sr}}function rr(Bt){if(a===St||a===Il){let yr=Bt.node,Gr=yr.kind===213?yr.expression.expression:yr.left.expression;if(uu(r,OT(Gr))){let nn=he(Bt.antecedent),Pn=Dx(nn);if(Mn(Pn)&256){let Te=Pn;if(yr.kind===213)for(let ce of yr.arguments)Te=jRe(Te,ce);else{let ce=O9(yr.left.argumentExpression);Tu(ce,296)&&(Te=jRe(Te,yr.right))}return Te===Pn?nn:GD(Te,JD(nn))}return nn}}}function rn(Bt){let yr=he(Bt.antecedent),Gr=Dx(yr);if(Gr.flags&131072)return yr;let nn=(Bt.flags&32)!==0,Pn=l9(Gr),Te=$f(Pn,Bt.node,nn);return Te===Pn?yr:GD(Te,JD(yr))}function Kr(Bt){let yr=Ka(Bt.node.switchStatement.expression),Gr=he(Bt.antecedent),nn=Dx(Gr);if(uu(r,yr))nn=No(nn,Bt.node);else if(yr.kind===221&&uu(r,yr.expression))nn=q_(nn,Bt.node);else if(yr.kind===112)nn=Zc(nn,Bt.node);else{te&&(Cx(yr,r)?nn=Ra(nn,Bt.node,Te=>!(Te.flags&163840)):yr.kind===221&&Cx(yr.expression,r)&&(nn=Ra(nn,Bt.node,Te=>!(Te.flags&131072||Te.flags&128&&Te.value==="undefined"))));let Pn=Wi(yr,nn);Pn&&(nn=Gs(nn,Pn,Bt.node))}return GD(nn,JD(Gr))}function pr(Bt){let yr=[],Gr=!1,nn=!1,Pn;for(let Te of Bt.antecedent){if(!Pn&&Te.flags&128&&Te.node.clauseStart===Te.node.clauseEnd){Pn=Te;continue}let ce=he(Te),Et=Dx(ce);if(Et===a&&a===l)return Et;Sp(yr,Et),bN(Et,l)||(Gr=!0),JD(ce)&&(nn=!0)}if(Pn){let Te=he(Pn),ce=Dx(Te);if(!(ce.flags&131072)&&!Ts(yr,ce)&&!NFe(Pn.node.switchStatement)){if(ce===a&&a===l)return ce;yr.push(ce),bN(ce,l)||(Gr=!0),JD(Te)&&(nn=!0)}}return GD(yn(yr,Gr?2:1),nn)}function ir(Bt){let yr=Nge(Bt),Gr=mD[yr]||(mD[yr]=new Map),nn=ke();if(!nn)return a;let Pn=Gr.get(nn);if(Pn)return Pn;for(let mr=Be;mr<rt;mr++)if(Kk[mr]===Bt&&SC[mr]===nn&&oT[mr].length)return GD(yn(oT[mr],1),!0);let Te=[],ce=!1,Et;for(let mr of Bt.antecedent){let Jr;if(!Et)Jr=Et=he(mr);else{Kk[rt]=Bt,SC[rt]=nn,oT[rt]=Te,rt++;let ci=bn;bn=void 0,Jr=he(mr),bn=ci,rt--;let yi=Gr.get(nn);if(yi)return yi}let Qr=Dx(Jr);if(Sp(Te,Qr),bN(Qr,l)||(ce=!0),Qr===a)break}let Jt=yn(Te,ce?2:1);return JD(Et)?GD(Jt,!0):(Gr.set(nn,Jt),Jt)}function yn(Bt,yr){if(qlt(Bt))return jge(ri(hr(Bt,Vlt)));let Gr=Fge(ri(ul(Bt,l9),yr));return Gr!==a&&Gr.flags&a.flags&1048576&&Yf(Gr.types,a.types)?a:Gr}function Qn(Bt){if(Ws(r)||O0(r)||ed(r)){if(je(Bt)){let Gr=Hu(Bt).valueDeclaration;if(Gr&&(Da(Gr)||Bi(Gr))&&r===Gr.parent&&!Gr.initializer&&!Gr.dotDotDotToken)return Gr}}else if(Oo(Bt)){if(uu(r,Bt.expression))return Bt}else if(je(Bt)){let yr=Hu(Bt);if(sw(yr)){let Gr=yr.valueDeclaration;if(oi(Gr)&&!Gr.type&&Gr.initializer&&Oo(Gr.initializer)&&uu(r,Gr.initializer.expression))return Gr.initializer;if(Da(Gr)&&!Gr.initializer){let nn=Gr.parent.parent;if(oi(nn)&&!nn.type&&nn.initializer&&(je(nn.initializer)||Oo(nn.initializer))&&uu(r,nn.initializer))return Gr}}}}function Wi(Bt,yr){if(a.flags&1048576||yr.flags&1048576){let Gr=Qn(Bt);if(Gr){let nn=xx(Gr);if(nn){let Pn=a.flags&1048576&&bN(yr,a)?a:yr;if(vN(Pn,nn))return Gr}}}}function Dn(Bt,yr,Gr){let nn=xx(yr);if(nn===void 0)return Bt;let Pn=ju(yr),Te=te&&(Pn||bne(yr))&&zc(Bt,98304),ce=ol(Te?Up(Bt,2097152):Bt,nn);if(!ce)return Bt;ce=Te&&Pn?yb(ce):ce;let Et=Gr(ce);return cl(Bt,Jt=>{let mr=X(Jt,nn)||kt;return!(mr.flags&131072)&&!(Et.flags&131072)&&Kj(Et,mr)})}function hs(Bt,yr,Gr,nn,Pn){if((Gr===37||Gr===38)&&Bt.flags&1048576){let Te=a9(Bt);if(Te&&Te===xx(yr)){let ce=o9(Bt,ku(nn));if(ce)return Gr===(Pn?37:38)?ce:dm(ol(ce,Te)||kt)?NK(Bt,ce):Bt}}return Dn(Bt,yr,Te=>Ti(Te,Gr,nn,Pn))}function Gs(Bt,yr,Gr){if(Gr.clauseStart<Gr.clauseEnd&&Bt.flags&1048576&&a9(Bt)===xx(yr)){let nn=EK(Gr.switchStatement).slice(Gr.clauseStart,Gr.clauseEnd),Pn=ri(hr(nn,Te=>o9(Bt,Te)||kt));if(Pn!==kt)return Pn}return Dn(Bt,yr,nn=>No(nn,Gr))}function co(Bt,yr,Gr){if(uu(r,yr))return wx(Bt,Gr?4194304:8388608);te&&Gr&&Cx(yr,r)&&(Bt=wx(Bt,2097152));let nn=Wi(yr,Bt);return nn?Dn(Bt,nn,Pn=>Up(Pn,Gr?4194304:8388608)):Bt}function As(Bt,yr,Gr){let nn=ca(Bt,yr);return nn?!!(nn.flags&16777216||kc(nn)&48)||Gr:!!XC(Bt,yr)||!Gr}function Qu(Bt,yr,Gr){let nn=Np(yr);if(Vp(Bt,Te=>As(Te,nn,!0)))return cl(Bt,Te=>As(Te,nn,Gr));if(Gr){let Te=Xat();if(Te)return ma([Bt,OD(Te,[yr,kt])])}return Bt}function tu(Bt,yr,Gr,nn,Pn){return Pn=Pn!==(Gr.kind===112)!=(nn!==38&&nn!==36),$f(Bt,yr,Pn)}function bc(Bt,yr,Gr){switch(yr.operatorToken.kind){case 64:case 76:case 77:case 78:return co($f(Bt,yr.right,Gr),yr.left,Gr);case 35:case 36:case 37:case 38:let nn=yr.operatorToken.kind,Pn=OT(yr.left),Te=OT(yr.right);if(Pn.kind===221&&Ha(Te))return Xr(Bt,Pn,nn,Te,Gr);if(Te.kind===221&&Ha(Pn))return Xr(Bt,Te,nn,Pn,Gr);if(uu(r,Pn))return Ti(Bt,nn,Te,Gr);if(uu(r,Te))return Ti(Bt,nn,Pn,Gr);te&&(Cx(Pn,r)?Bt=Nr(Bt,nn,Te,Gr):Cx(Te,r)&&(Bt=Nr(Bt,nn,Pn,Gr)));let ce=Wi(Pn,Bt);if(ce)return hs(Bt,ce,nn,Te,Gr);let Et=Wi(Te,Bt);if(Et)return hs(Bt,Et,nn,Pn,Gr);if(_c(Pn))return qf(Bt,nn,Te,Gr);if(_c(Te))return qf(Bt,nn,Pn,Gr);if(BP(Te)&&!Oo(Pn))return tu(Bt,Pn,Te,nn,Gr);if(BP(Pn)&&!Oo(Te))return tu(Bt,Te,Pn,nn,Gr);break;case 104:return Jc(Bt,yr,Gr);case 103:if(ji(yr.left))return Mr(Bt,yr,Gr);let Jt=OT(yr.right);if(NR(Bt)&&Oo(r)&&uu(r.expression,Jt)){let mr=ku(yr.left);if(Ep(mr)&&xx(r)===Np(mr))return Up(Bt,Gr?524288:65536)}if(uu(r,Jt)){let mr=ku(yr.left);if(Ep(mr))return Qu(Bt,mr,Gr)}break;case 28:return $f(Bt,yr.right,Gr);case 56:return Gr?$f($f(Bt,yr.left,!0),yr.right,!0):ri([$f(Bt,yr.left,!1),$f(Bt,yr.right,!1)]);case 57:return Gr?ri([$f(Bt,yr.left,!0),$f(Bt,yr.right,!0)]):$f($f(Bt,yr.left,!1),yr.right,!1)}return Bt}function Mr(Bt,yr,Gr){let nn=OT(yr.right);if(!uu(r,nn))return Bt;w.assertNode(yr.left,ji);let Pn=XK(yr.left);if(Pn===void 0)return Bt;let Te=Pn.parent,ce=Tl(w.checkDefined(Pn.valueDeclaration,"should always have a declaration"))?an(Te):Bo(Te);return Xv(Bt,ce,Gr,!0)}function Nr(Bt,yr,Gr,nn){let Pn=yr===35||yr===37,Te=yr===35||yr===36?98304:32768,ce=ku(Gr);return Pn!==nn&&of(ce,Jt=>!!(Jt.flags&Te))||Pn===nn&&of(ce,Jt=>!(Jt.flags&(3|Te)))?wx(Bt,2097152):Bt}function Ti(Bt,yr,Gr,nn){if(Bt.flags&1)return Bt;(yr===36||yr===38)&&(nn=!nn);let Pn=ku(Gr),Te=yr===35||yr===36;if(Pn.flags&98304){if(!te)return Bt;let ce=Te?nn?262144:2097152:Pn.flags&65536?nn?131072:1048576:nn?65536:524288;return wx(Bt,ce)}if(nn){if(!Te&&(Bt.flags&2||Vp(Bt,Kg))){if(Pn.flags&469893116||Kg(Pn))return Pn;if(Pn.flags&524288)return kr}let ce=cl(Bt,Et=>Kj(Et,Pn)||Te&&$ct(Et,Pn));return LRe(ce,Pn)}return dm(Pn)?cl(Bt,ce=>!(nRe(ce)&&Kj(ce,Pn))):Bt}function Xr(Bt,yr,Gr,nn,Pn){(Gr===36||Gr===38)&&(Pn=!Pn);let Te=OT(yr.expression);if(!uu(r,Te)){te&&Cx(Te,r)&&Pn===(nn.text!=="undefined")&&(Bt=wx(Bt,2097152));let ce=Wi(Te,Bt);return ce?Dn(Bt,ce,Et=>ls(Et,nn,Pn)):Bt}return ls(Bt,nn,Pn)}function ls(Bt,yr,Gr){return Gr?ll(Bt,yr.text):wx(Bt,Qse.get(yr.text)||32768)}function Ra(Bt,{switchStatement:yr,clauseStart:Gr,clauseEnd:nn},Pn){return Gr!==nn&&Oi(EK(yr).slice(Gr,nn),Pn)?Up(Bt,2097152):Bt}function No(Bt,{switchStatement:yr,clauseStart:Gr,clauseEnd:nn}){let Pn=EK(yr);if(!Pn.length)return Bt;let Te=Pn.slice(Gr,nn),ce=Gr===nn||Ts(Te,ar);if(Bt.flags&2&&!ce){let Jr;for(let Qr=0;Qr<Te.length;Qr+=1){let ci=Te[Qr];if(ci.flags&469893116)Jr!==void 0&&Jr.push(ci);else if(ci.flags&524288)Jr===void 0&&(Jr=Te.slice(0,Qr)),Jr.push(kr);else return Bt}return ri(Jr===void 0?Te:Jr)}let Et=ri(Te),Jt=Et.flags&131072?ar:LRe(cl(Bt,Jr=>Kj(Et,Jr)),Et);if(!ce)return Jt;let mr=cl(Bt,Jr=>!(nRe(Jr)&&Ts(Pn,Jr.flags&32768?pe:f_(Wct(Jr)))));return Jt.flags&131072?mr:ri([Jt,mr])}function ll(Bt,yr){switch(yr){case"string":return Fa(Bt,ut,1);case"number":return Fa(Bt,Qt,2);case"bigint":return Fa(Bt,en,4);case"boolean":return Fa(Bt,Ut,8);case"symbol":return Fa(Bt,Ot,16);case"object":return Bt.flags&1?Bt:ri([Fa(Bt,kr,32),Fa(Bt,jt,131072)]);case"function":return Bt.flags&1?Bt:Fa(Bt,Wt,64);case"undefined":return Fa(Bt,pe,65536)}return Fa(Bt,kr,128)}function Fa(Bt,yr,Gr){return ac(Bt,nn=>fg(nn,yr,jp)?mm(nn,Gr)?nn:ar:RT(yr,nn)?yr:mm(nn,Gr)?ma([nn,yr]):ar)}function q_(Bt,{switchStatement:yr,clauseStart:Gr,clauseEnd:nn}){let Pn=FRe(yr);if(!Pn)return Bt;let Te=Sc(yr.caseBlock.clauses,Jt=>Jt.kind===297);if(Gr===nn||Te>=Gr&&Te<nn){let Jt=EFe(Gr,nn,Pn);return cl(Bt,mr=>zD(mr,Jt)===Jt)}let Et=Pn.slice(Gr,nn);return ri(hr(Et,Jt=>Jt?ll(Bt,Jt):ar))}function Zc(Bt,{switchStatement:yr,clauseStart:Gr,clauseEnd:nn}){let Pn=Sc(yr.caseBlock.clauses,Et=>Et.kind===297),Te=Gr===nn||Pn>=Gr&&Pn<nn;for(let Et=0;Et<Gr;Et++){let Jt=yr.caseBlock.clauses[Et];Jt.kind===296&&(Bt=$f(Bt,Jt.expression,!1))}if(Te){for(let Et=nn;Et<yr.caseBlock.clauses.length;Et++){let Jt=yr.caseBlock.clauses[Et];Jt.kind===296&&(Bt=$f(Bt,Jt.expression,!1))}return Bt}let ce=yr.caseBlock.clauses.slice(Gr,nn);return ri(hr(ce,Et=>Et.kind===296?$f(Bt,Et.expression,!0):ar))}function _c(Bt){return(Nn(Bt)&&Ln(Bt.name)==="constructor"||wo(Bt)&&Ha(Bt.argumentExpression)&&Bt.argumentExpression.text==="constructor")&&uu(r,Bt.expression)}function qf(Bt,yr,Gr,nn){if(nn?yr!==35&&yr!==37:yr!==36&&yr!==38)return Bt;let Pn=ku(Gr);if(!gye(Pn)&&!Jn(Pn))return Bt;let Te=ca(Pn,"prototype");if(!Te)return Bt;let ce=an(Te),Et=Se(ce)?void 0:ce;if(!Et||Et===Ee||Et===Wt)return Bt;if(Se(Bt))return Et;return cl(Bt,mr=>Jt(mr,Et));function Jt(mr,Jr){return mr.flags&524288&&Mn(mr)&1||Jr.flags&524288&&Mn(Jr)&1?mr.symbol===Jr.symbol:RT(mr,Jr)}}function Jc(Bt,yr,Gr){let nn=OT(yr.left);if(!uu(r,nn))return Gr&&te&&Cx(nn,r)?wx(Bt,2097152):Bt;let Pn=yr.right,Te=ku(Pn);if(!J1(Te,Ee))return Bt;let ce=_9(yr),Et=ce&&zp(ce);if(Et&&Et.kind===1&&Et.parameterIndex===0)return Xv(Bt,Et.type,Gr,!0);if(!J1(Te,Wt))return Bt;let Jt=ac(Te,el);return Se(Bt)&&(Jt===Ee||Jt===Wt)||!Gr&&!(Jt.flags&524288&&!Kg(Jt))?Bt:Xv(Bt,Jt,Gr,!0)}function el(Bt){let yr=ol(Bt,"prototype");if(yr&&!Se(yr))return yr;let Gr=Bs(Bt,1);return Gr.length?ri(hr(Gr,nn=>Za(bR(nn)))):Oa}function Xv(Bt,yr,Gr,nn){let Pn=Bt.flags&1048576?`N${Zl(Bt)},${Zl(yr)},${(Gr?1:0)|(nn?2:0)}`:void 0;return nm(Pn)??rb(Pn,XD(Bt,yr,Gr,nn))}function XD(Bt,yr,Gr,nn){if(!Gr){if(Bt===yr)return ar;if(nn)return cl(Bt,Jt=>!J1(Jt,yr));Bt=Bt.flags&2?La:Bt;let Et=Xv(Bt,yr,!0,!1);return Fge(cl(Bt,Jt=>!bN(Jt,Et)))}if(Bt.flags&3||Bt===yr)return yr;let Pn=nn?J1:RT,Te=Bt.flags&1048576?a9(Bt):void 0,ce=ac(yr,Et=>{let Jt=Te&&ol(Et,Te),mr=Jt&&o9(Bt,Jt),Jr=ac(mr||Bt,nn?Qr=>J1(Qr,Et)?Qr:J1(Et,Qr)?Et:ar:Qr=>Qj(Qr,Et)?Qr:Qj(Et,Qr)?Et:RT(Qr,Et)?Qr:RT(Et,Qr)?Et:ar);return Jr.flags&131072?ac(Bt,Qr=>zc(Qr,465829888)&&Pn(Et,Su(Qr)||kt)?ma([Qr,Et]):ar):Jr});return ce.flags&131072?RT(yr,Bt)?yr:Hs(Bt,yr)?Bt:Hs(yr,Bt)?yr:ma([Bt,yr]):ce}function Q1(Bt,yr,Gr){if(wRe(yr,r)){let nn=Gr||!ZT(yr)?_9(yr):void 0,Pn=nn&&zp(nn);if(Pn&&(Pn.kind===0||Pn.kind===1))return o8(Bt,Pn,yr,Gr)}if(NR(Bt)&&Oo(r)&&Nn(yr.expression)){let nn=yr.expression;if(uu(r.expression,OT(nn.expression))&&je(nn.name)&&nn.name.escapedText==="hasOwnProperty"&&yr.arguments.length===1){let Pn=yr.arguments[0];if(Ha(Pn)&&xx(r)===gc(Pn.text))return Up(Bt,Gr?524288:65536)}}return Bt}function o8(Bt,yr,Gr,nn){if(yr.type&&!(Se(Bt)&&(yr.type===Ee||yr.type===Wt))){let Pn=Hlt(yr,Gr);if(Pn){if(uu(r,Pn))return Xv(Bt,yr.type,nn,!1);te&&Cx(Pn,r)&&(nn&&!mm(yr.type,65536)||!nn&&of(yr.type,S9))&&(Bt=wx(Bt,2097152));let Te=Wi(Pn,Bt);if(Te)return Dn(Bt,Te,ce=>Xv(ce,yr.type,nn,!1))}}return Bt}function $f(Bt,yr,Gr){if(eF(yr)||vn(yr.parent)&&(yr.parent.operatorToken.kind===61||yr.parent.operatorToken.kind===78)&&yr.parent.left===yr)return c8(Bt,yr,Gr);switch(yr.kind){case 80:if(!uu(r,yr)&&T<5){let nn=Hu(yr);if(sw(nn)){let Pn=nn.valueDeclaration;if(Pn&&oi(Pn)&&!Pn.type&&Pn.initializer&&Wge(r)){T++;let Te=$f(Bt,Pn.initializer,Gr);return T--,Te}}}case 110:case 108:case 211:case 212:return co(Bt,yr,Gr);case 213:return Q1(Bt,yr,Gr);case 217:case 235:case 238:return $f(Bt,yr.expression,Gr);case 226:return bc(Bt,yr,Gr);case 224:if(yr.operator===54)return $f(Bt,yr.operand,!Gr);break}return Bt}function c8(Bt,yr,Gr){if(uu(r,yr))return wx(Bt,Gr?2097152:262144);let nn=Wi(yr,Bt);return nn?Dn(Bt,nn,Pn=>Up(Pn,Gr?2097152:262144)):Bt}}function Klt(r,a){if(r=nf(r),(a.kind===80||a.kind===81)&&(fA(a)&&(a=a.parent),Ud(a)&&(!A0(a)||v2(a)))){let l=SK(v2(a)&&a.kind===211?KK(a,void 0,!0):ku(a));if(nf(wn(a).resolvedSymbol)===r)return l}return Cg(a)&&xm(a.parent)&&px(a.parent)?OQ(a.parent.symbol):rJ(a)&&v2(a.parent)?Wv(r):fb(r)}function TN(r){return gr(r.parent,a=>Ns(a)&&!hS(a)||a.kind===268||a.kind===307||a.kind===172)}function Xlt(r){return(r.lastAssignmentPos!==void 0||LR(r)&&r.lastAssignmentPos!==void 0)&&r.lastAssignmentPos<0}function LR(r){return!zRe(r,void 0)}function zRe(r,a){let l=gr(r.valueDeclaration,OK);if(!l)return!1;let f=wn(l);return f.flags&131072||(f.flags|=131072,Ylt(l)||GRe(l)),!r.lastAssignmentPos||a&&Math.abs(r.lastAssignmentPos)<a.pos}function Bge(r){return w.assert(oi(r)||Bi(r)),JRe(r.name)}function JRe(r){return r.kind===80?LR(In(r.parent)):pt(r.elements,a=>a.kind!==232&&JRe(a.name))}function Ylt(r){return!!gr(r.parent,a=>OK(a)&&!!(wn(a).flags&131072))}function OK(r){return xo(r)||Mi(r)}function GRe(r){switch(r.kind){case 80:let a=P0(r);if(a!==0){let d=Hu(r),y=a===1||d.lastAssignmentPos!==void 0&&d.lastAssignmentPos<0;if(jR(d)){if(d.lastAssignmentPos===void 0||Math.abs(d.lastAssignmentPos)!==Number.MAX_VALUE){let k=gr(r,OK),R=gr(d.valueDeclaration,OK);d.lastAssignmentPos=k===R?Zlt(r,d.valueDeclaration):Number.MAX_VALUE}y&&d.lastAssignmentPos>0&&(d.lastAssignmentPos*=-1)}}return;case 281:let l=r.parent.parent,f=r.propertyName||r.name;if(!r.isTypeOnly&&!l.isTypeOnly&&!l.moduleSpecifier&&f.kind!==11){let d=Ac(f,111551,!0,!0);if(d&&jR(d)){let y=d.lastAssignmentPos!==void 0&&d.lastAssignmentPos<0?-1:1;d.lastAssignmentPos=y*Number.MAX_VALUE}}return;case 264:case 265:case 266:return}di(r)||Es(r,GRe)}function Zlt(r,a){let l=r.pos;for(;r&&r.pos>a.pos;){switch(r.kind){case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 258:case 263:l=r.end}r=r.parent}return l}function sw(r){return r.flags&3&&(she(r)&6)!==0}function jR(r){let a=r.valueDeclaration&&Am(r.valueDeclaration);return!!a&&(Bi(a)||oi(a)&&(BS(a.parent)||URe(a)))}function URe(r){return!!(r.parent.flags&1)&&!(Db(r)&32||r.parent.parent.kind===243&&Zy(r.parent.parent.parent))}function eut(r){let a=wn(r);if(a.parameterInitializerContainsUndefined===void 0){if(!ag(r,8))return DD(r.symbol),!0;let l=!!mm(xN(r,0),16777216);if(!og())return DD(r.symbol),!0;a.parameterInitializerContainsUndefined??(a.parameterInitializerContainsUndefined=l)}return a.parameterInitializerContainsUndefined}function tut(r,a){return te&&a.kind===169&&a.initializer&&mm(r,16777216)&&!eut(a)?Up(r,524288):r}function rut(r,a){let l=a.parent;return l.kind===211||l.kind===166||l.kind===213&&l.expression===a||l.kind===214&&l.expression===a||l.kind===212&&l.expression===a&&!(Vp(r,qRe)&&bx(ku(l.argumentExpression)))}function VRe(r){return r.flags&2097152?pt(r.types,VRe):!!(r.flags&465829888&&ug(r).flags&1146880)}function qRe(r){return r.flags&2097152?pt(r.types,qRe):!!(r.flags&465829888&&!zc(ug(r),98304))}function nut(r,a){let l=(je(r)||Nn(r)||wo(r))&&!((Hd(r.parent)||Pk(r.parent))&&r.parent.tagName===r)&&(a&&a&32?P_(r,8):P_(r,void 0));return l&&!z1(l)}function zge(r,a,l){return LD(r)&&(r=r.baseType),!(l&&l&2)&&Vp(r,VRe)&&(rut(r,a)||nut(a,l))?ac(r,ug):r}function $Re(r){return!!gr(r,a=>{let l=a.parent;return l===void 0?"quit":Ho(l)?l.expression===a&&mo(a):zu(l)?l.name===a||l.propertyName===a:!1})}function aw(r,a,l,f){if(Ce&&!(r.flags&33554432&&!s_(r)&&!ds(r)))switch(a){case 1:return LK(r);case 2:return HRe(r,l,f);case 3:return QRe(r);case 4:return Jge(r);case 5:return KRe(r);case 6:return XRe(r);case 7:return YRe(r);case 8:return ZRe(r);case 0:{if(je(r)&&(Ud(r)||Eu(r.parent)||Ol(r.parent)&&r.parent.moduleReference===r)&&n8e(r)){if(x6(r.parent)&&(Nn(r.parent)?r.parent.expression:r.parent.left)!==r)return;LK(r);return}if(x6(r)){let d=r;for(;x6(d);){if(Im(d))return;d=d.parent}return HRe(r)}return Ho(r)?QRe(r):Wu(r)||wd(r)?Jge(r):Ol(r)?ck(r)||kX(r)?XRe(r):void 0:zu(r)?YRe(r):((xo(r)||xd(r))&&KRe(r),!F.emitDecoratorMetadata||!JS(r)||!rp(r)||!r.modifiers||!V6($,r,r.parent,r.parent.parent)?void 0:ZRe(r))}default:w.assertNever(a,`Unhandled reference hint: ${a}`)}}function LK(r){let a=Hu(r);a&&a!==ee&&a!==Y&&!CS(r)&&d9(a,r)}function HRe(r,a,l){let f=Nn(r)?r.expression:r.left;if(N0(f)||!je(f))return;let d=Hu(f);if(!d||d===Y)return;if(id(F)||R0(F)&&$Re(r)){d9(d,r);return}let y=l||Ec(f);if(Se(y)||y===Gt){d9(d,r);return}let k=a;if(!k&&!l){let R=Nn(r)?r.name:r.right,W=ji(R)&&T9(R.escapedText,R),J=P0(r),Z=__(J!==0||lhe(r)?Rf(y):y);k=ji(R)?W&&YK(Z,W)||void 0:ca(Z,R.escapedText)}k&&(i8(k)||k.flags&8&&r.parent.kind===306)||d9(d,r)}function QRe(r){if(je(r.expression)){let a=r.expression,l=nf(Ac(a,-1,!0,!0,r));l&&d9(l,a)}}function Jge(r){if(!HK(r)){let a=za&&F.jsx===2?p.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:void 0,l=lu(r),f=Wu(r)?r.tagName:r,d=F.jsx!==1&&F.jsx!==3,y;if(wd(r)&&l==="null"||(y=_t(f,l,d?111551:111167,a,!0)),y&&(y.isReferenced=-1,Ce&&y.flags&2097152&&!om(y)&&jK(y)),wd(r)){let k=Fr(r),R=yye(k);if(R){let W=h_(R).escapedText;_t(f,W,d?111551:111167,a,!0)}}}}function KRe(r){if(B<2&&Kc(r)&2){let a=Wf(r);iut(a)}}function XRe(r){ei(r,32)&&e8e(r)}function YRe(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=_t(a,a.escapedText,2998271,void 0,!0);if(!(l&&(l===le||l===Je||l.declarations&&Zy(F1(l.declarations[0]))))){let f=l&&(l.flags&2097152?al(l):l);(!f||Ef(f)&111551)&&(e8e(r),LK(a))}return}}function ZRe(r){if(F.emitDecoratorMetadata){let a=On(r.modifiers,Rl);if(!a)return;switch(Wl(a,16),r.kind){case 263:let l=mh(r);if(l)for(let k of l.parameters)UD(gX(k));break;case 177:case 178:let f=r.kind===177?178:177,d=Yo(In(r),f);UD(px(r)||d&&px(d));break;case 174:for(let k of r.parameters)UD(gX(k));UD(Wf(r));break;case 172:UD(pl(r));break;case 169:UD(gX(r));let y=r.parent;for(let k of y.parameters)UD(gX(k));UD(Wf(y));break}}}function d9(r,a){if(Ce&&ox(r,111551)&&!m2(a)){let l=al(r);Ef(r,!0)&1160127&&(id(F)||R0(F)&&$Re(a)||!i8(nf(l)))&&jK(r)}}function jK(r){w.assert(Ce);let a=$i(r);if(!a.referenced){a.referenced=!0;let l=dp(r);if(!l)return w.fail();if(ck(l)&&Ef(Pc(r))&111551){let f=h_(l.moduleReference);LK(f)}}}function e8e(r){let a=In(r),l=al(a);l&&(l===Y||Ef(a,!0)&111551&&!i8(l))&&jK(a)}function t8e(r,a){if(!r)return;let l=h_(r),f=(r.kind===80?788968:1920)|2097152,d=_t(l,l.escapedText,f,void 0,!0);if(d&&d.flags&2097152){if(Ce&&cm(d)&&!i8(al(d))&&!om(d))jK(d);else if(a&&id(F)&&n_(F)>=5&&!cm(d)&&!pt(d.declarations,Xy)){let y=$e(r,p.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),k=On(d.declarations||qe,Lh);k&&Xs(y,cn(k,p._0_was_imported_here,Ln(l)))}}}function iut(r){t8e(r&&U6(r),!1)}function UD(r){let a=Qhe(r);a&&m_(a)&&t8e(a,!0)}function sut(r,a){var l;let f=an(r),d=r.valueDeclaration;if(d){if(Da(d)&&!d.initializer&&!d.dotDotDotToken&&d.parent.elements.length>=2){let y=d.parent.parent,k=Am(y);if(k.kind===260&&zT(k)&6||k.kind===169){let R=wn(y);if(!(R.flags&4194304)){R.flags|=4194304;let W=wt(y,0),J=W&&ac(W,ug);if(R.flags&=-4194305,J&&J.flags&1048576&&!(k.kind===169&&Bge(k))){let Z=d.parent,ke=zy(Z,J,J,void 0,a.flowNode);return ke.flags&131072?ar:Ja(d,ke,!0)}}}}if(Bi(d)&&!d.type&&!d.initializer&&!d.dotDotDotToken){let y=d.parent;if(y.parameters.length>=2&&lK(y)){let k=BR(y);if(k&&k.parameters.length===1&&Gu(k)){let R=lN(Hi(an(k.parameters[0]),(l=LT(y))==null?void 0:l.nonFixingMapper));if(R.flags&1048576&&of(R,Pa)&&!pt(y.parameters,Bge)){let W=zy(y,R,R,void 0,a.flowNode),J=y.parameters.indexOf(d)-(xS(y)?1:0);return sf(W,Fd(J))}}}}}return f}function r8e(r,a){if(CS(r))return;if(a===ee){if(fhe(r)){$e(r,p.arguments_cannot_be_referenced_in_property_initializers);return}let y=ep(r);if(y)for(B<2&&(y.kind===219?$e(r,p.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression):ei(y,1024)&&$e(r,p.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method)),wn(y).flags|=512;y&&Lo(y);)y=ep(y),y&&(wn(y).flags|=512);return}let l=nf(a),f=cye(l,r);Pv(f)&&Wme(r,f)&&f.declarations&&Lg(r,f.declarations,r.escapedText);let d=l.valueDeclaration;if(d&&l.flags&32&&ii(d)&&d.name!==r){let y=t_(r,!1,!1);for(;y.kind!==307&&y.parent!==d;)y=t_(y,!1,!1);y.kind!==307&&(wn(d).flags|=262144,wn(y).flags|=262144,wn(r).flags|=536870912)}uut(r,a)}function aut(r,a){if(CS(r))return m9(r);let l=Hu(r);if(l===Y)return Ke;if(r8e(r,l),l===ee)return fhe(r)?Ke:an(l);n8e(r)&&aw(r,1);let f=nf(l),d=f.valueDeclaration,y=d;if(d&&d.kind===208&&Ts(Ls,d.parent)&&gr(r,ir=>ir===d.parent))return on;let k=sut(f,r),R=P0(r);if(R){if(!(f.flags&3)&&!(un(r)&&f.flags&512)){let ir=f.flags&384?p.Cannot_assign_to_0_because_it_is_an_enum:f.flags&32?p.Cannot_assign_to_0_because_it_is_a_class:f.flags&1536?p.Cannot_assign_to_0_because_it_is_a_namespace:f.flags&16?p.Cannot_assign_to_0_because_it_is_a_function:f.flags&2097152?p.Cannot_assign_to_0_because_it_is_an_import:p.Cannot_assign_to_0_because_it_is_not_a_variable;return $e(r,ir,Qi(l)),Ke}if(ym(f))return f.flags&3?$e(r,p.Cannot_assign_to_0_because_it_is_a_constant,Qi(l)):$e(r,p.Cannot_assign_to_0_because_it_is_a_read_only_property,Qi(l)),Ke}let W=f.flags&2097152;if(f.flags&3){if(R===1)return Iz(r)?Ly(k):k}else if(W)d=dp(l);else return k;if(!d)return k;k=zge(k,r,a);let J=Am(d).kind===169,Z=TN(d),ke=TN(r),he=ke!==Z,Ze=r.parent&&r.parent.parent&&xh(r.parent)&&Lge(r.parent.parent),mt=l.flags&134217728,Ct=k===St||k===Il,lr=Ct&&r.parent.kind===235;for(;ke!==Z&&(ke.kind===218||ke.kind===219||AF(ke))&&(sw(f)&&k!==Il||jR(f)&&zRe(f,r));)ke=TN(ke);let rr=y&&oi(y)&&!y.initializer&&!y.exclamationToken&&URe(y)&&!Xlt(l),rn=J||W||he&&!rr||Ze||mt||out(r,d)||k!==St&&k!==Il&&(!te||(k.flags&16387)!==0||m2(r)||Age(r)||r.parent.kind===281)||r.parent.kind===235||d.kind===260&&d.exclamationToken||d.flags&33554432,Kr=lr?pe:rn?J?tut(k,d):k:Ct?pe:yb(k),pr=lr?jy(zy(r,k,Kr,ke)):zy(r,k,Kr,ke);if(!WRe(r)&&(k===St||k===Il)){if(pr===St||pr===Il)return de&&($e(vs(d),p.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Qi(l),tn(pr)),$e(r,p.Variable_0_implicitly_has_an_1_type,Qi(l),tn(pr))),r8(pr)}else if(!rn&&!BD(k)&&BD(pr))return $e(r,p.Variable_0_is_used_before_being_assigned,Qi(l)),k;return R?Ly(pr):pr}function out(r,a){if(Da(a)){let l=gr(r,Da);return l&&Am(l)===Am(a)}}function n8e(r){var a;let l=r.parent;if(l){if(Nn(l)&&l.expression===r||zu(l)&&l.isTypeOnly)return!1;let f=(a=l.parent)==null?void 0:a.parent;if(f&&Xc(f)&&f.isTypeOnly)return!1}return!0}function cut(r,a){return!!gr(r,l=>l===a?"quit":Ns(l)||l.parent&&ds(l.parent)&&!Tl(l.parent)&&l.parent.initializer===l)}function lut(r,a){return gr(r,l=>l===a?"quit":l===a.initializer||l===a.condition||l===a.incrementor||l===a.statement)}function Gge(r){return gr(r,a=>!a||Oz(a)?"quit":k0(a,!1))}function uut(r,a){if(B>=2||(a.flags&34)===0||!a.valueDeclaration||Mi(a.valueDeclaration)||a.valueDeclaration.parent.kind===299)return;let l=Gd(a.valueDeclaration),f=cut(r,l),d=Gge(l);if(d){if(f){let y=!0;if($b(l)){let k=Lb(a.valueDeclaration,261);if(k&&k.parent===l){let R=lut(r.parent,l);if(R){let W=wn(R);W.flags|=8192;let J=W.capturedBlockScopeBindings||(W.capturedBlockScopeBindings=[]);Sp(J,a),R===l.initializer&&(y=!1)}}}y&&(wn(d).flags|=4096)}if($b(l)){let y=Lb(a.valueDeclaration,261);y&&y.parent===l&&fut(r,l)&&(wn(a.valueDeclaration).flags|=65536)}wn(a.valueDeclaration).flags|=32768}f&&(wn(a.valueDeclaration).flags|=16384)}function _ut(r,a){let l=wn(r);return!!l&&Ts(l.capturedBlockScopeBindings,In(a))}function fut(r,a){let l=r;for(;l.parent.kind===217;)l=l.parent;let f=!1;if(A0(l))f=!0;else if(l.parent.kind===224||l.parent.kind===225){let d=l.parent;f=d.operator===46||d.operator===47}return f?!!gr(l,d=>d===a?"quit":d===a.statement):!1}function Uge(r,a){if(wn(r).flags|=2,a.kind===172||a.kind===176){let l=a.parent;wn(l).flags|=4}else wn(a).flags|=4}function i8e(r){return ok(r)?r:Ns(r)?void 0:Es(r,i8e)}function Vge(r){let a=In(r),l=Bo(a);return Qa(l)===we}function s8e(r,a,l){let f=a.parent;TS(f)&&!Vge(f)&&$w(r)&&r.flowNode&&!FK(r.flowNode,!1)&&$e(r,l)}function put(r,a){ds(a)&&Tl(a)&&$&&a.initializer&&_6(a.initializer,r.pos)&&rp(a.parent)&&$e(r,p.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function m9(r){let a=m2(r),l=t_(r,!0,!0),f=!1,d=!1;for(l.kind===176&&s8e(r,l,p.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(l.kind===219&&(l=t_(l,!1,!d),f=!0),l.kind===167){l=t_(l,!f,!1),d=!0;continue}break}if(put(r,l),d)$e(r,p.this_cannot_be_referenced_in_a_computed_property_name);else switch(l.kind){case 267:$e(r,p.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:$e(r,p.this_cannot_be_referenced_in_current_location);break}!a&&f&&B<2&&Uge(r,l);let y=qge(r,!0,l);if(ye){let k=an(Je);if(y===k&&f)$e(r,p.The_containing_arrow_function_captures_the_global_value_of_this);else if(!y){let R=$e(r,p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!Mi(l)){let W=qge(l);W&&W!==k&&Xs(R,cn(l,p.An_outer_value_of_this_is_shadowed_by_this_container))}}}return y||Fe}function qge(r,a=!0,l=t_(r,!1,!1)){let f=un(r);if(Ns(l)&&(!Qge(r)||xS(l))){let d=Qde(l)||f&&gut(l);if(!d){let y=mut(l);if(f&&y){let k=rs(y).symbol;k&&k.members&&k.flags&16&&(d=Bo(k).thisType)}else mg(l)&&(d=Bo(Va(l.symbol)).thisType);d||(d=$ge(l))}if(d)return zy(r,d)}if(ii(l.parent)){let d=In(l.parent),y=Ks(l)?an(d):Bo(d).thisType;return zy(r,y)}if(Mi(l))if(l.commonJsModuleIndicator){let d=In(l);return d&&an(d)}else{if(l.externalModuleIndicator)return pe;if(a)return an(Je)}}function dut(r){let a=t_(r,!1,!1);if(Ns(a)){let l=yp(a);if(l.thisParameter)return MK(l.thisParameter)}if(ii(a.parent)){let l=In(a.parent);return Ks(a)?an(l):Bo(l).thisType}}function mut(r){if(r.kind===218&&vn(r.parent)&&Vc(r.parent)===3)return r.parent.left.expression.expression;if(r.kind===174&&r.parent.kind===210&&vn(r.parent.parent)&&Vc(r.parent.parent)===6)return r.parent.parent.left.expression;if(r.kind===218&&r.parent.kind===303&&r.parent.parent.kind===210&&vn(r.parent.parent.parent)&&Vc(r.parent.parent.parent)===6)return r.parent.parent.parent.left.expression;if(r.kind===218&&hl(r.parent)&&je(r.parent.name)&&(r.parent.name.escapedText==="value"||r.parent.name.escapedText==="get"||r.parent.name.escapedText==="set")&&Sa(r.parent.parent)&&qs(r.parent.parent.parent)&&r.parent.parent.parent.arguments[2]===r.parent.parent&&Vc(r.parent.parent.parent)===9)return r.parent.parent.parent.arguments[0].expression;if(xc(r)&&je(r.name)&&(r.name.escapedText==="value"||r.name.escapedText==="get"||r.name.escapedText==="set")&&Sa(r.parent)&&qs(r.parent.parent)&&r.parent.parent.arguments[2]===r.parent&&Vc(r.parent.parent)===9)return r.parent.parent.arguments[0].expression}function gut(r){let a=K8(r);if(a&&a.typeExpression)return Fi(a.typeExpression);let l=_N(r);if(l)return W1(l)}function hut(r,a){return!!gr(r,l=>xo(l)?"quit":l.kind===169&&l.parent===a)}function WK(r){let a=r.parent.kind===213&&r.parent.expression===r,l=J6(r,!0),f=l,d=!1,y=!1;if(!a){for(;f&&f.kind===219;)ei(f,1024)&&(y=!0),f=J6(f,!0),d=B<2;f&&ei(f,1024)&&(y=!0)}let k=0;if(!f||!Z(f)){let ke=gr(r,he=>he===f?"quit":he.kind===167);return ke&&ke.kind===167?$e(r,p.super_cannot_be_referenced_in_a_computed_property_name):a?$e(r,p.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!f||!f.parent||!(ii(f.parent)||f.parent.kind===210)?$e(r,p.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):$e(r,p.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),Ke}if(!a&&l.kind===176&&s8e(r,f,p.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),Ks(f)||a?(k=32,!a&&B>=2&&B<=8&&(ds(f)||Nc(f))&&Ite(r.parent,ke=>{(!Mi(ke)||mf(ke))&&(wn(ke).flags|=2097152)})):k=16,wn(r).flags|=k,f.kind===174&&y&&(H_(r.parent)&&A0(r.parent)?wn(f).flags|=256:wn(f).flags|=128),d&&Uge(r.parent,f),f.parent.kind===210)return B<2?($e(r,p.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Ke):Fe;let R=f.parent;if(!TS(R))return $e(r,p.super_can_only_be_referenced_in_a_derived_class),Ke;if(Vge(R))return a?Ke:we;let W=Bo(In(R)),J=W&&Pl(W)[0];if(!J)return Ke;if(f.kind===176&&hut(r,f))return $e(r,p.super_cannot_be_referenced_in_constructor_arguments),Ke;return k===32?Qa(W):Mf(J,W.thisType);function Z(ke){return a?ke.kind===176:ii(ke.parent)||ke.parent.kind===210?Ks(ke)?ke.kind===174||ke.kind===173||ke.kind===177||ke.kind===178||ke.kind===172||ke.kind===175:ke.kind===174||ke.kind===173||ke.kind===177||ke.kind===178||ke.kind===172||ke.kind===171||ke.kind===176:!1}}function a8e(r){return(r.kind===174||r.kind===177||r.kind===178)&&r.parent.kind===210?r.parent:r.kind===218&&r.parent.kind===303?r.parent.parent:void 0}function o8e(r){return Mn(r)&4&&r.target===Yc?Vo(r)[0]:void 0}function yut(r){return ac(r,a=>a.flags&2097152?or(a.types,o8e):o8e(a))}function c8e(r,a){let l=r,f=a;for(;f;){let d=yut(f);if(d)return d;if(l.parent.kind!==303)break;l=l.parent.parent,f=$1(l,void 0)}}function $ge(r){if(r.kind===219)return;if(lK(r)){let l=BR(r);if(l){let f=l.thisParameter;if(f)return an(f)}}let a=un(r);if(ye||a){let l=a8e(r);if(l){let d=$1(l,void 0),y=c8e(l,d);return y?Hi(y,Sge(LT(l))):Rf(d?jy(d):Ec(l))}let f=Td(r.parent);if(ql(f)){let d=f.left;if(Oo(d)){let{expression:y}=d;if(a&&je(y)){let k=Fr(f);if(k.commonJsModuleIndicator&&Hu(y)===k.symbol)return}return Rf(Ec(y))}}}}function l8e(r){let a=r.parent;if(!lK(a))return;let l=hS(a);if(l&&l.arguments){let d=rX(l),y=a.parameters.indexOf(r);if(r.dotDotDotToken)return bhe(d,y,d.length,Fe,void 0,0);let k=wn(l),R=k.resolvedSignature;k.resolvedSignature=Br;let W=y<d.length?U1(rs(d[y])):r.initializer?void 0:j;return k.resolvedSignature=R,W}let f=BR(a);if(f){let d=a.parameters.indexOf(r)-(xS(a)?1:0);return r.dotDotDotToken&&zo(a.parameters)===r?A9(f,d):WT(f,d)}}function Hge(r,a){let l=pl(r)||(un(r)?JO(r):void 0);if(l)return Fi(l);switch(r.kind){case 169:return l8e(r);case 208:return vut(r,a);case 172:if(Ks(r))return but(r,a)}}function vut(r,a){let l=r.parent.parent,f=r.propertyName||r.name,d=Hge(l,a)||l.kind!==208&&l.initializer&&xN(l,r.dotDotDotToken?32:0);if(!d||Ws(f)||F6(f))return;if(l.name.kind===207){let k=Lw(r.parent.elements,r);return k<0?void 0:ehe(d,k)}let y=My(f);if(Ep(y)){let k=Np(y);return ol(d,k)}}function but(r,a){let l=gt(r.parent)&&P_(r.parent,a);if(l)return q1(l,In(r).escapedName)}function Sut(r,a){let l=r.parent;if(Yy(l)&&r===l.initializer){let f=Hge(l,a);if(f)return f;if(!(a&8)&&Ws(l.name)&&l.name.elements.length>0)return os(l.name,!0,!1)}}function Tut(r,a){let l=ep(r);if(l){let f=BK(l,a);if(f){let d=Kc(l);if(d&1){let y=(d&2)!==0;f.flags&1048576&&(f=cl(f,R=>!!Kv(1,R,y)));let k=Kv(1,f,(d&2)!==0);if(!k)return;f=k}if(d&2){let y=ac(f,Jy);return y&&ri([y,PFe(y)])}return f}}}function kut(r,a){let l=P_(r,a);if(l){let f=Jy(l);return f&&ri([f,PFe(f)])}}function xut(r,a){let l=ep(r);if(l){let f=Kc(l),d=BK(l,a);if(d){let y=(f&2)!==0;if(!r.asteriskToken&&d.flags&1048576&&(d=cl(d,k=>!!Kv(1,k,y))),r.asteriskToken){let k=aye(d,y),R=k?.yieldType??Gt,W=P_(r,a)??Gt,J=k?.nextType??kt,Z=oX(R,W,J,!1);if(y){let ke=oX(R,W,J,!0);return ri([Z,ke])}return Z}return Kv(0,d,y)}}}function Qge(r){let a=!1;for(;r.parent&&!Ns(r.parent);){if(Bi(r.parent)&&(a||r.parent.initializer===r))return!0;Da(r.parent)&&r.parent.initializer===r&&(a=!0),r=r.parent}return!1}function u8e(r,a){let l=!!(Kc(a)&2),f=BK(a,void 0);if(f)return Kv(r,f,l)||void 0}function BK(r,a){let l=RD(r);if(l)return l;let f=rhe(r);if(f&&!JQ(f)){let y=Za(f),k=Kc(r);return k&1?cl(y,R=>!!(R.flags&58998787)||Uhe(R,k,void 0)):k&2?cl(y,R=>!!(R.flags&58998787)||!!IN(R)):y}let d=hS(r);if(d)return P_(d,a)}function _8e(r,a){let f=rX(r).indexOf(a);return f===-1?void 0:Kge(r,f)}function Kge(r,a){if(jf(r))return a===0?ut:a===1?GMe(!1):Fe;let l=wn(r).resolvedSignature===pn?pn:$D(r);if(Wu(r)&&a===0)return UK(l,r);let f=l.parameters.length-1;return Gu(l)&&a>=f?sf(an(l.parameters[f]),Fd(a-f),256):gm(l,a)}function Cut(r){let a=Rhe(r);return a?gx(a):void 0}function wut(r,a){if(r.parent.kind===215)return _8e(r.parent,a)}function Iut(r,a){let l=r.parent,{left:f,operatorToken:d,right:y}=l;switch(d.kind){case 64:case 77:case 76:case 78:return r===y?Put(l):void 0;case 57:case 61:let k=P_(l,a);return r===y&&(k&&k.pattern||!k&&!Qte(l))?ku(f):k;case 56:case 28:return r===y?P_(l,a):void 0;default:return}}function Dut(r){if(Jd(r)&&r.symbol)return r.symbol;if(je(r))return Hu(r);if(Nn(r)){let l=ku(r.expression);return ji(r.name)?a(l,r.name):ca(l,r.name.escapedText)}if(wo(r)){let l=Ec(r.argumentExpression);if(!Ep(l))return;let f=ku(r.expression);return ca(f,Np(l))}return;function a(l,f){let d=T9(f.escapedText,f);return d&&YK(l,d)}}function Put(r){var a,l;let f=Vc(r);switch(f){case 0:case 4:let d=Dut(r.left),y=d&&d.valueDeclaration;if(y&&(ds(y)||s_(y))){let W=pl(y);return W&&Hi(Fi(W),$i(d).mapper)||(ds(y)?y.initializer&&ku(r.left):void 0)}return f===0?ku(r.left):f8e(r);case 5:if(zK(r,f))return f8e(r);if(!Jd(r.left)||!r.left.symbol)return ku(r.left);{let W=r.left.symbol.valueDeclaration;if(!W)return;let J=Zs(r.left,Oo),Z=pl(W);if(Z)return Fi(Z);if(je(J.expression)){let ke=J.expression,he=_t(ke,ke.escapedText,111551,void 0,!0);if(he){let Ze=he.valueDeclaration&&pl(he.valueDeclaration);if(Ze){let mt=ay(J);if(mt!==void 0)return q1(Fi(Ze),mt)}return}}return un(W)||W===r.left?void 0:ku(r.left)}case 1:case 6:case 3:case 2:let k;f!==2&&(k=Jd(r.left)?(a=r.left.symbol)==null?void 0:a.valueDeclaration:void 0),k||(k=(l=r.symbol)==null?void 0:l.valueDeclaration);let R=k&&pl(k);return R?Fi(R):void 0;case 7:case 8:case 9:return w.fail("Does not apply");default:return w.assertNever(f)}}function zK(r,a=Vc(r)){if(a===4)return!0;if(!un(r)||a!==5||!je(r.left.expression))return!1;let l=r.left.expression.escapedText,f=_t(r.left,l,111551,void 0,!0,!0);return FF(f?.valueDeclaration)}function f8e(r){if(!r.symbol)return ku(r.left);if(r.symbol.valueDeclaration){let d=pl(r.symbol.valueDeclaration);if(d){let y=Fi(d);if(y)return y}}let a=Zs(r.left,Oo);if(!ed(t_(a.expression,!1,!1)))return;let l=m9(a.expression),f=ay(a);return f!==void 0&&q1(l,f)||void 0}function Aut(r){return!!(kc(r)&262144&&!r.links.type&&wD(r,0)>=0)}function Xge(r,a){if(r.flags&16777216){let l=r;return!!(Rd(mb(l)).flags&131072)&&Fy(gb(l))===Fy(l.checkType)&&Hs(a,l.extendsType)}return r.flags&2097152?pt(r.types,l=>Xge(l,a)):!1}function q1(r,a,l){return ac(r,f=>{if(f.flags&2097152){let d,y,k=!1;for(let R of f.types){if(!(R.flags&524288))continue;if(U_(R)&&mR(R)!==2){let J=p8e(R,a,l);d=Yge(d,J);continue}let W=d8e(R,a);if(!W){k||(y=jr(y,R));continue}k=!0,y=void 0,d=Yge(d,W)}if(y)for(let R of y){let W=m8e(R,a,l);d=Yge(d,W)}return d?d.length===1?d[0]:ma(d):void 0}if(f.flags&524288)return U_(f)&&mR(f)!==2?p8e(f,a,l):d8e(f,a)??m8e(f,a,l)},!0)}function Yge(r,a){return a?jr(r,a.flags&1?kt:a):r}function p8e(r,a,l){let f=l||V_(Li(a)),d=hp(r);if(r.nameType&&Xge(r.nameType,f)||Xge(d,f))return;let y=Su(d)||d;if(Hs(f,y))return rK(r,f)}function d8e(r,a){let l=ca(r,a);if(!(!l||Aut(l)))return Wy(an(l),!!(l.flags&16777216))}function m8e(r,a,l){var f;if(Pa(r)&&Sh(a)&&+a>=0){let d=yN(r,r.target.fixedLength,0,!1,!0);if(d)return d}return(f=fme(pme(r),l||V_(Li(a))))==null?void 0:f.type}function g8e(r,a){if(w.assert(ed(r)),!(r.flags&67108864))return Zge(r,a)}function Zge(r,a){let l=r.parent,f=hl(r)&&Hge(r,a);if(f)return f;let d=$1(l,a);if(d){if(ND(r)){let y=In(r);return q1(d,y.escapedName,$i(y).nameType)}if(oy(r)){let y=vs(r);if(y&&pa(y)){let k=rs(y.expression),R=Ep(k)&&q1(d,Np(k));if(R)return R}}if(r.name){let y=My(r.name);return ac(d,k=>{var R;return(R=fme(pme(k),y))==null?void 0:R.type},!0)}}}function Eut(r){let a,l;for(let f=0;f<r.length;f++)Rp(r[f])&&(a??(a=f),l=f);return{first:a,last:l}}function ehe(r,a,l,f,d){return r&&ac(r,y=>{if(Pa(y)){if((f===void 0||a<f)&&a<y.target.fixedLength)return Wy(Vo(y)[a],!!y.target.elementFlags[a]);let k=l!==void 0&&(d===void 0||a>d)?l-a:0,R=k>0&&y.target.combinedFlags&12?SR(y.target,3):0;return k>0&&k<=R?Vo(y)[Vv(y)-k]:yN(y,f===void 0?y.target.fixedLength:Math.min(y.target.fixedLength,f),l===void 0||d===void 0?R:Math.min(R,l-d),!1,!0)}return(!f||a<f)&&q1(y,""+a)||tye(1,y,pe,void 0,!1)},!0)}function Nut(r,a){let l=r.parent;return r===l.whenTrue||r===l.whenFalse?P_(l,a):void 0}function Mut(r,a,l){let f=$1(r.openingElement.attributes,l),d=v9(Px(r));if(!(f&&!Se(f)&&d&&d!==""))return;let y=Xw(r.children),k=y.indexOf(a),R=q1(f,d);return R&&(y.length===1?R:ac(R,W=>$v(W)?sf(W,Fd(k)):W,!0))}function Rut(r,a){let l=r.parent;return cF(l)?P_(r,a):Wm(l)?Mut(l,r,a):void 0}function h8e(r,a){if(Bm(r)){let l=$1(r.parent,a);return!l||Se(l)?void 0:q1(l,EA(r.name))}else return P_(r.parent,a)}function g9(r){switch(r.kind){case 11:case 9:case 10:case 15:case 228:case 112:case 97:case 106:case 80:case 157:return!0;case 211:case 217:return g9(r.expression);case 294:return!r.expression||g9(r.expression)}return!1}function Fut(r,a){let l=`D${Ua(r)},${Zl(a)}`;return nm(l)??rb(l,Clt(a,r)??sge(a,Ki(hr(An(r.properties,f=>f.symbol?f.kind===303?g9(f.initializer)&&vN(a,f.symbol.escapedName):f.kind===304?vN(a,f.symbol.escapedName):!1:!1),f=>[()=>O9(f.kind===303?f.initializer:f.name),f.symbol.escapedName]),hr(An(so(a),f=>{var d;return!!(f.flags&16777216)&&!!((d=r?.symbol)!=null&&d.members)&&!r.symbol.members.has(f.escapedName)&&vN(a,f.escapedName)}),f=>[()=>pe,f.escapedName])),Hs))}function Out(r,a){let l=`D${Ua(r)},${Zl(a)}`,f=nm(l);if(f)return f;let d=v9(Px(r));return rb(l,sge(a,Ki(hr(An(r.properties,y=>!!y.symbol&&y.kind===291&&vN(a,y.symbol.escapedName)&&(!y.initializer||g9(y.initializer))),y=>[y.initializer?()=>O9(y.initializer):()=>it,y.symbol.escapedName]),hr(An(so(a),y=>{var k;if(!(y.flags&16777216)||!((k=r?.symbol)!=null&&k.members))return!1;let R=r.parent.parent;return y.escapedName===d&&Wm(R)&&Xw(R.children).length?!1:!r.symbol.members.has(y.escapedName)&&vN(a,y.escapedName)}),y=>[()=>pe,y.escapedName])),Hs))}function $1(r,a){let l=ed(r)?g8e(r,a):P_(r,a),f=JK(l,r,a);if(f&&!(a&&a&2&&f.flags&8650752)){let d=ac(f,y=>Mn(y)&32?y:__(y),!0);return d.flags&1048576&&Sa(r)?Fut(r,d):d.flags&1048576&&WS(r)?Out(r,d):d}}function JK(r,a,l){if(r&&zc(r,465829888)){let f=LT(a);if(f&&l&1&&pt(f.inferences,Cpt))return GK(r,f.nonFixingMapper);if(f?.returnMapper){let d=GK(r,f.returnMapper);return d.flags&1048576&&qh(d.types,$r)&&qh(d.types,Tt)?cl(d,y=>y!==$r&&y!==Tt):d}}return r}function GK(r,a){return r.flags&465829888?Hi(r,a):r.flags&1048576?ri(hr(r.types,l=>GK(l,a)),0):r.flags&2097152?ma(hr(r.types,l=>GK(l,a))):r}function P_(r,a){var l;if(r.flags&67108864)return;let f=v8e(r,!a);if(f>=0)return fs[f];let{parent:d}=r;switch(d.kind){case 260:case 169:case 172:case 171:case 208:return Sut(r,a);case 219:case 253:return Tut(r,a);case 229:return xut(d,a);case 223:return kut(d,a);case 213:case 214:return _8e(d,r);case 170:return Cut(d);case 216:case 234:return vd(d.type)?P_(d,a):Fi(d.type);case 226:return Iut(r,a);case 303:case 304:return Zge(d,a);case 305:return P_(d.parent,a);case 209:{let y=d,k=$1(y,a),R=Lw(y.elements,r),W=(l=wn(y)).spreadIndices??(l.spreadIndices=Eut(y.elements));return ehe(k,R,y.elements.length,W.first,W.last)}case 227:return Nut(r,a);case 239:return w.assert(d.parent.kind===228),wut(d.parent,r);case 217:{if(un(d)){if(LJ(d))return Fi(jJ(d));let y=Pb(d);if(y&&!vd(y.typeExpression.type))return Fi(y.typeExpression.type)}return P_(d,a)}case 235:return P_(d,a);case 238:return Fi(d.type);case 277:return O1(d);case 294:return Rut(d,a);case 291:case 293:return h8e(d,a);case 286:case 285:return But(d,a);case 301:return Wut(d)}}function y8e(r){h9(r,P_(r,void 0),!0)}function h9(r,a,l){Di[qi]=r,fs[qi]=a,ti[qi]=l,qi++}function WR(){qi--}function v8e(r,a){for(let l=qi-1;l>=0;l--)if(r===Di[l]&&(a||!ti[l]))return l;return-1}function Lut(r,a){Ql[pp]=r,fp[pp]=a,pp++}function jut(){pp--}function LT(r){for(let a=pp-1;a>=0;a--)if(SS(r,Ql[a]))return fp[a]}function Wut(r){return q1(Cme(!1),GO(r))}function But(r,a){if(Hd(r)&&a!==4){let l=v8e(r.parent,!a);if(l>=0)return fs[l]}return Kge(r,0)}function UK(r,a){return wd(a)||nFe(a)!==0?zut(r,a):Uut(r,a)}function zut(r,a){let l=Nhe(r,kt);l=b8e(a,Px(a),l);let f=jT(ap.IntrinsicAttributes,a);return We(f)||(l=Ej(f,l)),l}function Jut(r,a){if(r.compositeSignatures){let f=[];for(let d of r.compositeSignatures){let y=Za(d);if(Se(y))return y;let k=ol(y,a);if(!k)return;f.push(k)}return ma(f)}let l=Za(r);return Se(l)?l:ol(l,a)}function Gut(r){if(wd(r))return pFe(r);if(cw(r.tagName)){let l=A8e(r),f=nX(r,l);return gx(f)}let a=Ec(r.tagName);if(a.flags&128){let l=P8e(a,r);if(!l)return Ke;let f=nX(r,l);return gx(f)}return a}function b8e(r,a,l){let f=p_t(a);if(f){let d=Gut(r),y=M8e(f,un(r),d,l);if(y)return y}return l}function Uut(r,a){let l=Px(a),f=m_t(l),d=f===void 0?Nhe(r,kt):f===""?Za(r):Jut(r,f);if(!d)return f&&Dr(a.attributes.properties)&&$e(a,p.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Li(f)),kt;if(d=b8e(a,l,d),Se(d))return d;{let y=d,k=jT(ap.IntrinsicClassAttributes,a);if(!We(k)){let W=Md(k.symbol),J=Za(r),Z;if(W){let ke=Uv([J],W,$g(W),un(a));Z=Hi(k,af(W,ke))}else Z=k;y=Ej(Z,y)}let R=jT(ap.IntrinsicAttributes,a);return We(R)||(y=Ej(R,y)),y}}function Vut(r){return Pu(F,"noImplicitAny")?d_(r,(a,l)=>a===l||!a?a:nMe(a.typeParameters,l.typeParameters)?Hut(a,l):void 0):void 0}function qut(r,a,l){if(!r||!a)return r||a;let f=ri([an(r),Hi(an(a),l)]);return kx(r,f)}function $ut(r,a,l){let f=cf(r),d=cf(a),y=f>=d?r:a,k=y===r?a:r,R=y===r?f:d,W=Xg(r)||Xg(a),J=W&&!Xg(y),Z=new Array(R+(J?1:0));for(let ke=0;ke<R;ke++){let he=WT(y,ke);y===a&&(he=Hi(he,l));let Ze=WT(k,ke)||kt;k===a&&(Ze=Hi(Ze,l));let mt=ri([he,Ze]),Ct=W&&!J&&ke===R-1,lr=ke>=hm(y)&&ke>=hm(k),rr=ke>=f?void 0:kN(r,ke),rn=ke>=d?void 0:kN(a,ke),Kr=rr===rn?rr:rr?rn?void 0:rr:rn,pr=da(1|(lr&&!Ct?16777216:0),Kr||`arg${ke}`,Ct?32768:lr?16384:0);pr.links.type=Ct?Ru(mt):mt,Z[ke]=pr}if(J){let ke=da(1,"args",32768);ke.links.type=Ru(gm(k,R)),k===a&&(ke.links.type=Hi(ke.links.type,l)),Z[R]=ke}return Z}function Hut(r,a){let l=r.typeParameters||a.typeParameters,f;r.typeParameters&&a.typeParameters&&(f=af(a.typeParameters,r.typeParameters));let d=(r.flags|a.flags)&166,y=r.declaration,k=$ut(r,a,f),R=zo(k);R&&kc(R)&32768&&(d|=1);let W=qut(r.thisParameter,a.thisParameter,f),J=Math.max(r.minArgumentCount,a.minArgumentCount),Z=Gh(y,l,W,k,void 0,void 0,J,d);return Z.compositeKind=2097152,Z.compositeSignatures=Ki(r.compositeKind===2097152&&r.compositeSignatures||[r],[a]),f&&(Z.mapper=r.compositeKind===2097152&&r.mapper&&r.compositeSignatures?NT(r.mapper,f):f),Z}function the(r,a){let l=Bs(r,0),f=An(l,d=>!Qut(d,a));return f.length===1?f[0]:Vut(f)}function Qut(r,a){let l=0;for(;l<a.parameters.length;l++){let f=a.parameters[l];if(f.initializer||f.questionToken||f.dotDotDotToken||zO(f))break}return a.parameters.length&&E0(a.parameters[0])&&l--,!Xg(r)&&cf(r)<l}function rhe(r){return O0(r)||ed(r)?BR(r):void 0}function BR(r){w.assert(r.kind!==174||ed(r));let a=_N(r);if(a)return a;let l=$1(r,1);if(!l)return;if(!(l.flags&1048576))return the(l,r);let f,d=l.types;for(let y of d){let k=the(y,r);if(k)if(!f)f=[k];else if(t9(f[0],k,!1,!0,!0,IR))f.push(k);else return}if(f)return f.length===1?f[0]:tMe(f[0],f)}function Kut(r){let a=Fr(r);if(!Sb(a)&&!r.isUnterminated){let l;s??(s=ah(99,!0)),s.setScriptTarget(a.languageVersion),s.setLanguageVariant(a.languageVariant),s.setOnError((f,d,y)=>{let k=s.getTokenEnd();if(f.category===3&&l&&k===l.start&&d===l.length){let R=S2(a.fileName,a.text,k,d,f,y);Xs(l,R)}else(!l||k!==l.start)&&(l=kl(a,k,d,f,y),za.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 Xut(r){let a=wn(r);return a.flags&1||(a.flags|=1,n(()=>Kut(r))),yc}function Yut(r,a){B<zl.SpreadElements&&Wl(r,F.downlevelIteration?1536:1024);let l=rs(r.expression,a);return Qv(33,l,pe,r.expression)}function Zut(r){return r.isSpread?sf(r.type,Qt):r.type}function ow(r){return r.kind===208&&!!r.initializer||r.kind===303&&ow(r.initializer)||r.kind===304&&!!r.objectAssignmentInitializer||r.kind===226&&r.operatorToken.kind===64}function e_t(r){let a=Td(r.parent);return Rp(a)&&km(a.parent)}function S8e(r,a,l){let f=r.elements,d=f.length,y=[],k=[];y8e(r);let R=A0(r),W=CN(r),J=$1(r,void 0),Z=e_t(r)||!!J&&Vp(J,he=>hN(he)||U_(he)&&!he.nameType&&!!CR(he.target||he)),ke=!1;for(let he=0;he<d;he++){let Ze=f[he];if(Ze.kind===230){B<zl.SpreadElements&&Wl(Ze,F.downlevelIteration?1536:1024);let mt=rs(Ze.expression,a,l);if($v(mt))y.push(mt),k.push(8);else if(R){let Ct=j1(mt,Qt)||tye(65,mt,pe,void 0,!1)||kt;y.push(Ct),k.push(4)}else y.push(Qv(33,mt,pe,Ze.expression)),k.push(4)}else if(ve&&Ze.kind===232)ke=!0,y.push(q),k.push(2);else{let mt=wN(Ze,a,l);if(y.push(Yl(mt,!0,ke)),k.push(ke?2:1),Z&&a&&a&2&&!(a&4)&&vp(Ze)){let Ct=LT(r);w.assert(Ct),vge(Ct,Ze,mt)}}}return WR(),R?Hg(y,k):T8e(l||W||Z?Hg(y,k,W&&!(J&&Vp(J,uge))):Ru(y.length?ri(ul(y,(he,Ze)=>k[Ze]&8?db(he,Qt)||Fe:he),2):te?dr:j,W))}function T8e(r){if(!(Mn(r)&4))return r;let a=r.literalType;return a||(a=r.literalType=AMe(r),a.objectFlags|=147456),a}function t_t(r){switch(r.kind){case 167:return r_t(r);case 80:return Sh(r.escapedText);case 9:case 11:return Sh(r.text);default:return!1}}function r_t(r){return Tu(Od(r),296)}function Od(r){let a=wn(r.expression);if(!a.resolvedType){if((v_(r.parent.parent)||ii(r.parent.parent)||hu(r.parent.parent))&&vn(r.expression)&&r.expression.operatorToken.kind===103&&r.parent.kind!==177&&r.parent.kind!==178)return a.resolvedType=Ke;if(a.resolvedType=rs(r.expression),ds(r.parent)&&!Tl(r.parent)&&ml(r.parent.parent)){let l=Gd(r.parent.parent),f=Gge(l);f&&(wn(f).flags|=4096,wn(r).flags|=32768,wn(r.parent.parent).flags|=32768)}(a.resolvedType.flags&98304||!Tu(a.resolvedType,402665900)&&!Hs(a.resolvedType,si))&&$e(r,p.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return a.resolvedType}function n_t(r){var a;let l=(a=r.declarations)==null?void 0:a[0];return Sh(r.escapedName)||l&&Gl(l)&&t_t(l.name)}function k8e(r){var a;let l=(a=r.declarations)==null?void 0:a[0];return p4(r)||l&&Gl(l)&&pa(l.name)&&Tu(Od(l.name),4096)}function i_t(r){var a;let l=(a=r.declarations)==null?void 0:a[0];return l&&Gl(l)&&pa(l.name)}function zR(r,a,l,f){var d;let y=[],k;for(let W=a;W<l.length;W++){let J=l[W];(f===ut&&!k8e(J)||f===Qt&&n_t(J)||f===Ot&&k8e(J))&&(y.push(an(l[W])),i_t(l[W])&&(k=jr(k,(d=l[W].declarations)==null?void 0:d[0])))}let R=y.length?ri(y,2):pe;return Vh(f,R,r,void 0,k)}function VK(r){w.assert((r.flags&2097152)!==0,"Should only get Alias here.");let a=$i(r);if(!a.immediateTarget){let l=dp(r);if(!l)return w.fail();a.immediateTarget=T1(l,!0)}return a.immediateTarget}function s_t(r,a=0){let l=A0(r);mht(r,l);let f=te?ea():void 0,d=ea(),y=[],k=Oa;y8e(r);let R=$1(r,void 0),W=R&&R.pattern&&(R.pattern.kind===206||R.pattern.kind===210),J=CN(r),Z=J?8:0,ke=un(r)&&!WF(r),he=ke?PB(r):void 0,Ze=!R&&ke&&!he,mt=8192,Ct=!1,lr=!1,rr=!1,rn=!1;for(let ir of r.properties)ir.name&&pa(ir.name)&&Od(ir.name);let Kr=0;for(let ir of r.properties){let yn=In(ir),Qn=ir.name&&ir.name.kind===167?Od(ir.name):void 0;if(ir.kind===303||ir.kind===304||ed(ir)){let Wi=ir.kind===303?UFe(ir,a):ir.kind===304?wN(!l&&ir.objectAssignmentInitializer?ir.objectAssignmentInitializer:ir.name,a):VFe(ir,a);if(ke){let Gs=Wp(ir);Gs?(Fu(Wi,Gs,ir),Wi=Gs):he&&he.typeExpression&&Fu(Wi,Fi(he.typeExpression),ir)}mt|=Mn(Wi)&458752;let Dn=Qn&&Ep(Qn)?Qn:void 0,hs=Dn?da(4|yn.flags,Np(Dn),Z|4096):da(4|yn.flags,yn.escapedName,Z);if(Dn&&(hs.links.nameType=Dn),l&&ow(ir))hs.flags|=16777216;else if(W&&!(Mn(R)&512)){let Gs=ca(R,yn.escapedName);Gs?hs.flags|=Gs.flags&16777216:Uh(R,ut)||$e(ir.name,p.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Qi(yn),tn(R))}if(hs.declarations=yn.declarations,hs.parent=yn.parent,yn.valueDeclaration&&(hs.valueDeclaration=yn.valueDeclaration),hs.links.type=Wi,hs.links.target=yn,yn=hs,f?.set(hs.escapedName,hs),R&&a&2&&!(a&4)&&(ir.kind===303||ir.kind===174)&&vp(ir)){let Gs=LT(r);w.assert(Gs);let co=ir.kind===303?ir.initializer:ir;vge(Gs,co,Wi)}}else if(ir.kind===305){B<zl.ObjectAssign&&Wl(ir,2),y.length>0&&(k=PT(k,pr(),r.symbol,mt,J),y=[],d=ea(),lr=!1,rr=!1,rn=!1);let Wi=Rd(rs(ir.expression,a&2));if(y9(Wi)){let Dn=Vme(Wi,J);if(f&&w8e(Dn,f,ir),Kr=y.length,We(k))continue;k=PT(k,Dn,r.symbol,mt,J)}else $e(ir,p.Spread_types_may_only_be_created_from_object_types),k=Ke;continue}else w.assert(ir.kind===177||ir.kind===178),uw(ir);Qn&&!(Qn.flags&8576)?Hs(Qn,si)&&(Hs(Qn,Qt)?rr=!0:Hs(Qn,Ot)?rn=!0:lr=!0,l&&(Ct=!0)):d.set(yn.escapedName,yn),y.push(yn)}if(WR(),We(k))return Ke;if(k!==Oa)return y.length>0&&(k=PT(k,pr(),r.symbol,mt,J),y=[],d=ea(),lr=!1,rr=!1),ac(k,ir=>ir===Oa?pr():ir);return pr();function pr(){let ir=[],yn=CN(r);lr&&ir.push(zR(yn,Kr,y,ut)),rr&&ir.push(zR(yn,Kr,y,Qt)),rn&&ir.push(zR(yn,Kr,y,Ot));let Qn=tc(r.symbol,d,qe,qe,ir);return Qn.objectFlags|=mt|128|131072,Ze&&(Qn.objectFlags|=4096),Ct&&(Qn.objectFlags|=512),l&&(Qn.pattern=r),Qn}}function y9(r){let a=cRe(ac(r,ug));return!!(a.flags&126615553||a.flags&3145728&&Oi(a.types,y9))}function a_t(r){ihe(r)}function o_t(r,a){return uw(r),b9(r)||Fe}function c_t(r){ihe(r.openingElement),cw(r.closingElement.tagName)?$K(r.closingElement):rs(r.closingElement.tagName),qK(r)}function l_t(r,a){return uw(r),b9(r)||Fe}function u_t(r){ihe(r.openingFragment);let a=Fr(r);CO(F)&&(F.jsxFactory||a.pragmas.has("jsx"))&&!F.jsxFragmentFactory&&!a.pragmas.has("jsxfrag")&&$e(r,F.jsxFactory?p.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:p.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),qK(r);let l=b9(r);return We(l)?Fe:l}function nhe(r){return r.includes("-")}function cw(r){return je(r)&&Yw(r.escapedText)||Qd(r)}function x8e(r,a){return r.initializer?wN(r.initializer,a):it}function C8e(r,a=0){let l=te?ea():void 0,f=ea(),d=Zo,y=!1,k,R=!1,W=2048,J=v9(Px(r)),Z=wd(r),ke,he=r;if(!Z){let Ct=r.attributes;ke=Ct.symbol,he=Ct;let lr=P_(Ct,0);for(let rr of Ct.properties){let rn=rr.symbol;if(Bm(rr)){let Kr=x8e(rr,a);W|=Mn(Kr)&458752;let pr=da(4|rn.flags,rn.escapedName);if(pr.declarations=rn.declarations,pr.parent=rn.parent,rn.valueDeclaration&&(pr.valueDeclaration=rn.valueDeclaration),pr.links.type=Kr,pr.links.target=rn,f.set(pr.escapedName,pr),l?.set(pr.escapedName,pr),EA(rr.name)===J&&(R=!0),lr){let ir=ca(lr,rn.escapedName);ir&&ir.declarations&&Pv(ir)&&je(rr.name)&&Lg(rr.name,ir.declarations,rr.name.escapedText)}if(lr&&a&2&&!(a&4)&&vp(rr)){let ir=LT(Ct);w.assert(ir);let yn=rr.initializer.expression;vge(ir,yn,Kr)}}else{w.assert(rr.kind===293),f.size>0&&(d=PT(d,mt(),Ct.symbol,W,!1),f=ea());let Kr=Rd(rs(rr.expression,a&2));Se(Kr)&&(y=!0),y9(Kr)?(d=PT(d,Kr,Ct.symbol,W,!1),l&&w8e(Kr,l,rr)):($e(rr.expression,p.Spread_types_may_only_be_created_from_object_types),k=k?ma([k,Kr]):Kr)}}y||f.size>0&&(d=PT(d,mt(),Ct.symbol,W,!1))}let Ze=r.parent;if((Wm(Ze)&&Ze.openingElement===r||Hb(Ze)&&Ze.openingFragment===r)&&Xw(Ze.children).length>0){let Ct=qK(Ze,a);if(!y&&J&&J!==""){R&&$e(he,p._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Li(J));let lr=Hd(r)?$1(r.attributes,void 0):void 0,rr=lr&&q1(lr,J),rn=da(4,J);rn.links.type=Ct.length===1?Ct[0]:rr&&Vp(rr,hN)?Hg(Ct):Ru(ri(Ct)),rn.valueDeclaration=A.createPropertySignature(void 0,Li(J),void 0,void 0),Xa(rn.valueDeclaration,he),rn.valueDeclaration.symbol=rn;let Kr=ea();Kr.set(J,rn),d=PT(d,tc(ke,Kr,qe,qe,qe),ke,W,!1)}}if(y)return Fe;if(k&&d!==Zo)return ma([k,d]);return k||(d===Zo?mt():d);function mt(){return W|=8192,__t(W,ke,f)}}function __t(r,a,l){let f=tc(a,l,qe,qe,qe);return f.objectFlags|=r|8192|128|131072,f}function qK(r,a){let l=[];for(let f of r.children)if(f.kind===12)f.containsOnlyTriviaWhiteSpaces||l.push(ut);else{if(f.kind===294&&!f.expression)continue;l.push(wN(f,a))}return l}function w8e(r,a,l){for(let f of so(r))if(!(f.flags&16777216)){let d=a.get(f.escapedName);if(d){let y=$e(d.valueDeclaration,p._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Li(d.escapedName));Xs(y,cn(l,p.This_spread_always_overwrites_this_property))}}}function f_t(r,a){return C8e(r.parent,a)}function jT(r,a){let l=Px(a),f=l&&Nf(l),d=f&&c_(f,r,788968);return d?Bo(d):Ke}function $K(r){let a=wn(r);if(!a.resolvedSymbol){let l=jT(ap.IntrinsicElements,r);if(We(l))return de&&$e(r,p.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Li(ap.IntrinsicElements)),a.resolvedSymbol=Y;{if(!je(r.tagName)&&!Qd(r.tagName))return w.fail();let f=Qd(r.tagName)?D2(r.tagName):r.tagName.escapedText,d=ca(l,f);if(d)return a.jsxFlags|=1,a.resolvedSymbol=d;let y=YOe(l,V_(Li(f)));return y?(a.jsxFlags|=2,a.resolvedSymbol=y):X(l,f)?(a.jsxFlags|=2,a.resolvedSymbol=l.symbol):($e(r,p.Property_0_does_not_exist_on_type_1,WJ(r.tagName),"JSX."+ap.IntrinsicElements),a.resolvedSymbol=Y)}}return a.resolvedSymbol}function HK(r){let a=r&&Fr(r),l=a&&wn(a);if(l&&l.jsxImplicitImportContainer===!1)return;if(l&&l.jsxImplicitImportContainer)return l.jsxImplicitImportContainer;let f=wO(N4(F,a),F);if(!f)return;let y=Bu(F)===1?p.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:p.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=Vht(a,f),R=gT(k||r,f,y,r),W=R&&R!==Y?Va(Pc(R)):void 0;return l&&(l.jsxImplicitImportContainer=W||!1),W}function Px(r){let a=r&&wn(r);if(a&&a.jsxNamespace)return a.jsxNamespace;if(!a||a.jsxNamespace!==!1){let f=HK(r);if(!f||f===Y){let d=lu(r);f=_t(r,d,1920,void 0,!1)}if(f){let d=Pc(c_(Nf(Pc(f)),ap.JSX,1920));if(d&&d!==Y)return a&&(a.jsxNamespace=d),d}a&&(a.jsxNamespace=!1)}let l=Pc(jD(ap.JSX,1920,void 0));if(l!==Y)return l}function I8e(r,a){let l=a&&c_(a.exports,r,788968),f=l&&Bo(l),d=f&&so(f);if(d){if(d.length===0)return"";if(d.length===1)return d[0].escapedName;d.length>1&&l.declarations&&$e(l.declarations[0],p.The_global_type_JSX_0_may_not_have_more_than_one_property,Li(r))}}function p_t(r){return r&&c_(r.exports,ap.LibraryManagedAttributes,788968)}function d_t(r){return r&&c_(r.exports,ap.ElementType,788968)}function m_t(r){return I8e(ap.ElementAttributesPropertyNameContainer,r)}function v9(r){return F.jsx===4||F.jsx===5?"children":I8e(ap.ElementChildrenAttributeNameContainer,r)}function D8e(r,a){if(r.flags&4)return[Br];if(r.flags&128){let d=P8e(r,a);return d?[nX(a,d)]:($e(a,p.Property_0_does_not_exist_on_type_1,r.value,"JSX."+ap.IntrinsicElements),qe)}let l=__(r),f=Bs(l,1);return f.length===0&&(f=Bs(l,0)),f.length===0&&l.flags&1048576&&(f=rme(hr(l.types,d=>D8e(d,a)))),f}function P8e(r,a){let l=jT(ap.IntrinsicElements,a);if(!We(l)){let f=r.value,d=ca(l,gc(f));if(d)return an(d);let y=j1(l,ut);return y||void 0}return Fe}function g_t(r,a,l){if(r===1){let d=N8e(l);d&&Jp(a,d,z_,l.tagName,p.Its_return_type_0_is_not_a_valid_JSX_element,f)}else if(r===0){let d=E8e(l);d&&Jp(a,d,z_,l.tagName,p.Its_instance_type_0_is_not_a_valid_JSX_element,f)}else{let d=N8e(l),y=E8e(l);if(!d||!y)return;let k=ri([d,y]);Jp(a,k,z_,l.tagName,p.Its_element_type_0_is_not_a_valid_JSX_element,f)}function f(){let d=oc(l.tagName);return Ps(void 0,p._0_cannot_be_used_as_a_JSX_component,d)}}function A8e(r){var a;w.assert(cw(r.tagName));let l=wn(r);if(!l.resolvedJsxElementAttributesType){let f=$K(r);if(l.jsxFlags&1)return l.resolvedJsxElementAttributesType=an(f)||Ke;if(l.jsxFlags&2){let d=Qd(r.tagName)?D2(r.tagName):r.tagName.escapedText;return l.resolvedJsxElementAttributesType=((a=XC(jT(ap.IntrinsicElements,r),d))==null?void 0:a.type)||Ke}else return l.resolvedJsxElementAttributesType=Ke}return l.resolvedJsxElementAttributesType}function E8e(r){let a=jT(ap.ElementClass,r);if(!We(a))return a}function b9(r){return jT(ap.Element,r)}function N8e(r){let a=b9(r);if(a)return ri([a,jt])}function h_t(r){let a=Px(r);if(!a)return;let l=d_t(a);if(!l)return;let f=M8e(l,un(r));if(!(!f||We(f)))return f}function M8e(r,a,...l){let f=Bo(r);if(r.flags&524288){let d=$i(r).typeParameters;if(Dr(d)>=l.length){let y=Uv(l,d,l.length,a);return Dr(y)===0?f:OD(r,y)}}if(Dr(f.typeParameters)>=l.length){let d=Uv(l,f.typeParameters,l.length,a);return Ny(f,d)}}function y_t(r){let a=jT(ap.IntrinsicElements,r);return a?so(a):qe}function v_t(r){(F.jsx||0)===0&&$e(r,p.Cannot_use_JSX_unless_the_jsx_flag_is_provided),b9(r)===void 0&&de&&$e(r,p.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function ihe(r){let a=Wu(r);a&&ght(r),v_t(r),Jge(r);let l=$D(r);if(sX(l,r),a){let f=r,d=h_t(f);if(d!==void 0){let y=f.tagName,k=cw(y)?V_(WJ(y)):rs(y);Jp(k,d,z_,y,p.Its_type_0_is_not_a_valid_JSX_element_type,()=>{let R=oc(y);return Ps(void 0,p._0_cannot_be_used_as_a_JSX_component,R)})}else g_t(nFe(f),Za(l),f)}}function QK(r,a,l){if(r.flags&524288&&(CT(r,a)||XC(r,a)||pR(a)&&Uh(r,ut)||l&&nhe(a)))return!0;if(r.flags&33554432)return QK(r.baseType,a,l);if(r.flags&3145728&&JR(r)){for(let f of r.types)if(QK(f,a,l))return!0}return!1}function JR(r){return!!(r.flags&524288&&!(Mn(r)&512)||r.flags&67108864||r.flags&33554432&&JR(r.baseType)||r.flags&1048576&&pt(r.types,JR)||r.flags&2097152&&Oi(r.types,JR))}function b_t(r,a){if(yht(r),r.expression){let l=rs(r.expression,a);return r.dotDotDotToken&&l!==Fe&&!Gp(l)&&$e(r,p.JSX_spread_child_must_be_an_array_type),l}else return Ke}function she(r){return r.valueDeclaration?zT(r.valueDeclaration):0}function ahe(r){if(r.flags&8192||kc(r)&4)return!0;if(un(r.valueDeclaration)){let a=r.valueDeclaration.parent;return a&&vn(a)&&Vc(a)===3}}function ohe(r,a,l,f,d,y=!0){let k=y?r.kind===166?r.right:r.kind===205?r:r.kind===208&&r.propertyName?r.propertyName:r.name:void 0;return R8e(r,a,l,f,d,k)}function R8e(r,a,l,f,d,y){var k;let R=Ap(d,l);if(a){if(B<2&&F8e(d))return y&&$e(y,p.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(R&64)return y&&$e(y,p.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Qi(d),tn(nw(d))),!1;if(!(R&256)&&((k=d.declarations)!=null&&k.some($ee)))return y&&$e(y,p.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,Qi(d)),!1}if(R&64&&F8e(d)&&(G6(r)||qte(r)||np(r.parent)&&FF(r.parent.parent))){let J=_y(rf(d));if(J&&dgt(r))return y&&$e(y,p.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Qi(d),Ip(J.name)),!1}if(!(R&6))return!0;if(R&2){let J=_y(rf(d));return fye(r,J)?!0:(y&&$e(y,p.Property_0_is_private_and_only_accessible_within_class_1,Qi(d),tn(nw(d))),!1)}if(a)return!0;let W=KOe(r,J=>{let Z=Bo(In(J));return X3e(Z,d,l)});return!W&&(W=S_t(r),W=W&&X3e(W,d,l),R&256||!W)?(y&&$e(y,p.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Qi(d),tn(nw(d)||f)),!1):R&256?!0:(f.flags&262144&&(f=f.isThisType?D_(f):Su(f)),!f||!AD(f,W)?(y&&$e(y,p.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Qi(d),tn(W),tn(f)),!1):!0)}function S_t(r){let a=T_t(r),l=a?.type&&Fi(a.type);if(l)l.flags&262144&&(l=D_(l));else{let f=t_(r,!1,!1);Ns(f)&&(l=$ge(f))}if(l&&Mn(l)&7)return PD(l)}function T_t(r){let a=t_(r,!1,!1);return a&&Ns(a)?xS(a):void 0}function F8e(r){return!!e9(r,a=>!(a.flags&8192))}function VD(r){return pg(rs(r),r)}function S9(r){return mm(r,50331648)}function che(r){return S9(r)?jy(r):r}function k_t(r,a){let l=mo(r)?df(r):void 0;if(r.kind===106){$e(r,p.The_value_0_cannot_be_used_here,"null");return}if(l!==void 0&&l.length<100){if(je(r)&&l==="undefined"){$e(r,p.The_value_0_cannot_be_used_here,"undefined");return}$e(r,a&16777216?a&33554432?p._0_is_possibly_null_or_undefined:p._0_is_possibly_undefined:p._0_is_possibly_null,l)}else $e(r,a&16777216?a&33554432?p.Object_is_possibly_null_or_undefined:p.Object_is_possibly_undefined:p.Object_is_possibly_null)}function x_t(r,a){$e(r,a&16777216?a&33554432?p.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:p.Cannot_invoke_an_object_which_is_possibly_undefined:p.Cannot_invoke_an_object_which_is_possibly_null)}function O8e(r,a,l){if(te&&r.flags&2){if(mo(a)){let d=df(a);if(d.length<100)return $e(a,p._0_is_of_type_unknown,d),Ke}return $e(a,p.Object_is_of_type_unknown),Ke}let f=zD(r,50331648);if(f&50331648){l(a,f);let d=jy(r);return d.flags&229376?Ke:d}return r}function pg(r,a){return O8e(r,a,k_t)}function L8e(r,a){let l=pg(r,a);if(l.flags&16384){if(mo(a)){let f=df(a);if(je(a)&&f==="undefined")return $e(a,p.The_value_0_cannot_be_used_here,f),l;if(f.length<100)return $e(a,p._0_is_possibly_undefined,f),l}$e(a,p.Object_is_possibly_undefined)}return l}function KK(r,a,l){return r.flags&64?C_t(r,a):uhe(r,r.expression,VD(r.expression),r.name,a,l)}function C_t(r,a){let l=rs(r.expression),f=ER(l,r.expression);return TK(uhe(r,r.expression,pg(f,r.expression),r.name,a),r,f!==l)}function j8e(r,a){let l=jF(r)&&N0(r.left)?pg(m9(r.left),r.left):VD(r.left);return uhe(r,r.left,l,r.right,a)}function lhe(r){for(;r.parent.kind===217;)r=r.parent;return km(r.parent)&&r.parent.expression===r}function T9(r,a){for(let l=MF(a);l;l=su(l)){let{symbol:f}=l,d=f4(f,r),y=f.members&&f.members.get(d)||f.exports&&f.exports.get(d);if(y)return y}}function w_t(r){if(!su(r))return Tr(r,p.Private_identifiers_are_not_allowed_outside_class_bodies);if(!c7(r.parent)){if(!Ud(r))return Tr(r,p.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(!XK(r)&&!a)return Tr(r,p.Cannot_find_name_0,Ln(r))}return!1}function I_t(r){w_t(r);let a=XK(r);return a&&x9(a,void 0,!1),Fe}function XK(r){if(!Ud(r))return;let a=wn(r);return a.resolvedSymbol===void 0&&(a.resolvedSymbol=T9(r.escapedText,r)),a.resolvedSymbol}function YK(r,a){return ca(r,a.escapedName)}function D_t(r,a,l){let f,d=so(r);d&&or(d,k=>{let R=k.valueDeclaration;if(R&&Gl(R)&&ji(R.name)&&R.name.escapedText===a.escapedText)return f=k,!0});let y=sm(a);if(f){let k=w.checkDefined(f.valueDeclaration),R=w.checkDefined(su(k));if(l?.valueDeclaration){let W=l.valueDeclaration,J=su(W);if(w.assert(!!J),gr(J,Z=>R===Z)){let Z=$e(a,p.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,tn(r));return Xs(Z,cn(W,p.The_shadowing_declaration_of_0_is_defined_here,y),cn(k,p.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,y)),!0}}return $e(a,p.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,y,sm(R.name||vU)),!0}return!1}function W8e(r,a){return(lb(a)||G6(r)&&cR(a))&&t_(r,!0,!1)===qa(a)}function uhe(r,a,l,f,d,y){let k=wn(a).resolvedSymbol,R=P0(r),W=__(R!==0||lhe(r)?Rf(l):l),J=Se(W)||W===Gt,Z;if(ji(f)){(B<zl.PrivateNamesAndClassStaticBlocks||B<zl.ClassAndClassElementDecorators||!K)&&(R!==0&&Wl(r,1048576),R!==1&&Wl(r,524288));let he=T9(f.escapedText,f);if(R&&he&&he.valueDeclaration&&xc(he.valueDeclaration)&&Tr(f,p.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,Ln(f)),J){if(he)return We(W)?Ke:W;if(MF(f)===void 0)return Tr(f,p.Private_identifiers_are_not_allowed_outside_class_bodies),Fe}if(Z=he&&YK(l,he),Z===void 0){if(D_t(l,f,he))return Ke;let Ze=MF(f);Ze&&UP(Fr(Ze),F.checkJs)&&Tr(f,p.Private_field_0_must_be_declared_in_an_enclosing_class,Ln(f))}else Z.flags&65536&&!(Z.flags&32768)&&R!==1&&$e(r,p.Private_accessor_was_defined_without_a_getter)}else{if(J)return je(a)&&k&&aw(r,2,void 0,l),We(W)?Ke:W;Z=ca(W,f.escapedText,lX(W),r.kind===166)}aw(r,2,Z,l);let ke;if(Z){let he=cye(Z,f);if(Pv(he)&&Wme(r,he)&&he.declarations&&Lg(f,he.declarations,f.escapedText),P_t(Z,r,f),x9(Z,r,$8e(a,k)),wn(r).resolvedSymbol=Z,ohe(r,a.kind===108,v2(r),W,Z),FFe(r,Z,R))return $e(f,p.Cannot_assign_to_0_because_it_is_a_read_only_property,Ln(f)),Ke;ke=W8e(r,Z)?St:y||mO(r)?Wv(Z):an(Z)}else{let he=!ji(f)&&(R===0||!vx(l)||AA(l))?XC(W,f.escapedText):void 0;if(!(he&&he.type)){let Ze=_he(r,l.symbol,!0);return!Ze&&TR(l)?Fe:l.symbol===Je?(Je.exports.has(f.escapedText)&&Je.exports.get(f.escapedText).flags&418?$e(f,p.Property_0_does_not_exist_on_type_1,Li(f.escapedText),tn(l)):de&&$e(f,p.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,tn(l)),Fe):(f.escapedText&&!Tn(r)&&z8e(f,AA(l)?W:l,Ze),Ke)}he.isReadonly&&(A0(r)||Dz(r))&&$e(r,p.Index_signature_in_type_0_only_permits_reading,tn(W)),ke=he.type,F.noUncheckedIndexedAccess&&P0(r)!==1&&(ke=ri([ke,Re])),F.noPropertyAccessFromIndexSignature&&Nn(r)&&$e(f,p.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Li(f.escapedText)),he.declaration&&Cy(he.declaration)&&Lg(f,[he.declaration],f.escapedText)}return B8e(r,Z,ke,f,d)}function _he(r,a,l){var f;let d=Fr(r);if(d&&F.checkJs===void 0&&d.checkJsDirective===void 0&&(d.scriptKind===1||d.scriptKind===2)){let y=or(a?.declarations,Fr),k=!a?.valueDeclaration||!ii(a.valueDeclaration)||((f=a.valueDeclaration.heritageClauses)==null?void 0:f.length)||ev(!1,a.valueDeclaration);return!(d!==y&&y&&Zy(y))&&!(l&&a&&a.flags&32&&k)&&!(r&&l&&Nn(r)&&r.expression.kind===110&&k)}return!1}function B8e(r,a,l,f,d){let y=P0(r);if(y===1)return Wy(l,!!(a&&a.flags&16777216));if(a&&!(a.flags&98311)&&!(a.flags&8192&&l.flags&1048576)&&!IX(a.declarations))return l;if(l===St)return ID(r,a);l=zge(l,r,d);let k=!1;if(te&&ie&&Oo(r)&&r.expression.kind===110){let W=a&&a.valueDeclaration;if(W&&LOe(W)&&!Ks(W)){let J=TN(r);J.kind===176&&J.parent===W.parent&&!(W.flags&33554432)&&(k=!0)}}else te&&a&&a.valueDeclaration&&Nn(a.valueDeclaration)&&e4(a.valueDeclaration)&&TN(r)===TN(a.valueDeclaration)&&(k=!0);let R=zy(r,l,k?yb(l):l);return k&&!BD(l)&&BD(R)?($e(f,p.Property_0_is_used_before_being_assigned,Qi(a)),l):y?Ly(R):R}function P_t(r,a,l){let{valueDeclaration:f}=r;if(!f||Fr(a).isDeclarationFile)return;let d,y=Ln(l);fhe(a)&&!aat(f)&&!(Oo(a)&&Oo(a.expression))&&!tg(f,l)&&!(xc(f)&&OX(f)&256)&&(K||!A_t(r))?d=$e(l,p.Property_0_is_used_before_its_initialization,y):f.kind===263&&a.parent.kind!==183&&!(f.flags&33554432)&&!tg(f,l)&&(d=$e(l,p.Class_0_used_before_its_declaration,y)),d&&Xs(d,cn(f,p._0_is_declared_here,y))}function fhe(r){return!!gr(r,a=>{switch(a.kind){case 172:return!0;case 303:case 174:case 177:case 178:case 305:case 167:case 239:case 294:case 291:case 292:case 293:case 286:case 233:case 298:return!1;case 219:case 244:return Fs(a.parent)&&Nc(a.parent.parent)?!0:"quit";default:return Ud(a)?!1:"quit"}})}function A_t(r){if(!(r.parent.flags&32))return!1;let a=an(r.parent);for(;;){if(a=a.symbol&&E_t(a),!a)return!1;let l=ca(a,r.escapedName);if(l&&l.valueDeclaration)return!0}}function E_t(r){let a=Pl(r);if(a.length!==0)return ma(a)}function z8e(r,a,l){let f=wn(r),d=f.nonExistentPropCheckCache||(f.nonExistentPropCheckCache=new Set),y=`${Zl(a)}|${l}`;if(d.has(y))return;d.add(y);let k,R;if(!ji(r)&&a.flags&1048576&&!(a.flags&402784252)){for(let J of a.types)if(!ca(J,r.escapedText)&&!XC(J,r.escapedText)){k=Ps(k,p.Property_0_does_not_exist_on_type_1,Co(r),tn(J));break}}if(J8e(r.escapedText,a)){let J=Co(r),Z=tn(a);k=Ps(k,p.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,J,Z,Z+"."+J)}else{let J=YR(a);if(J&&ca(J,r.escapedText))k=Ps(k,p.Property_0_does_not_exist_on_type_1,Co(r),tn(a)),R=cn(r,p.Did_you_forget_to_use_await);else{let Z=Co(r),ke=tn(a),he=R_t(Z,a);if(he!==void 0)k=Ps(k,p.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,Z,ke,he);else{let Ze=phe(r,a);if(Ze!==void 0){let mt=Oc(Ze),Ct=l?p.Property_0_may_not_exist_on_type_1_Did_you_mean_2:p.Property_0_does_not_exist_on_type_1_Did_you_mean_2;k=Ps(k,Ct,Z,ke,mt),R=Ze.valueDeclaration&&cn(Ze.valueDeclaration,p._0_is_declared_here,mt)}else{let mt=N_t(a)?p.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:p.Property_0_does_not_exist_on_type_1;k=Ps(_me(k,a),mt,Z,ke)}}}}let W=fh(Fr(r),r,k);R&&Xs(W,R),Iv(!l||k.code!==p.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,W)}function N_t(r){return F.lib&&!F.lib.includes("dom")&&Blt(r,a=>a.symbol&&/^(?:EventTarget|Node|(?:HTML[a-zA-Z]*)?Element)$/.test(Li(a.symbol.escapedName)))&&Oy(r)}function J8e(r,a){let l=a.symbol&&ca(an(a.symbol),r);return l!==void 0&&!!l.valueDeclaration&&Ks(l.valueDeclaration)}function M_t(r){let a=sm(r),f=tz().get(a);return f&&IW(f.keys())}function R_t(r,a){let l=__(a).symbol;if(!l)return;let f=Oc(l),y=tz().get(f);if(y){for(let[k,R]of y)if(Ts(R,r))return k}}function G8e(r,a){return k9(r,so(a),106500)}function phe(r,a){let l=so(a);if(typeof r!="string"){let f=r.parent;Nn(f)&&(l=An(l,d=>H8e(f,a,d))),r=Ln(r)}return k9(r,l,111551)}function U8e(r,a){let l=ys(r)?r:Ln(r),f=so(a);return(l==="for"?On(f,y=>Oc(y)==="htmlFor"):l==="class"?On(f,y=>Oc(y)==="className"):void 0)??k9(l,f,111551)}function V8e(r,a){let l=phe(r,a);return l&&Oc(l)}function F_t(r,a,l){let f=c_(r,a,l);if(f)return f;let d;return r===ct?d=Vi(["string","number","boolean","object","bigint","symbol"],k=>r.has(k.charAt(0).toUpperCase()+k.slice(1))?da(524288,k):void 0).concat(ps(r.values())):d=ps(r.values()),k9(Li(a),d,l)}function q8e(r,a,l){return w.assert(a!==void 0,"outername should always be defined"),$t(r,a,l,void 0,!1,!1)}function dhe(r,a){return a.exports&&k9(Ln(r),w1(a),2623475)}function O_t(r,a,l){function f(k){let R=CT(r,k);if(R){let W=Ex(an(R));return!!W&&hm(W)>=1&&Hs(l,gm(W,0))}return!1}let d=A0(a)?"set":"get";if(!f(d))return;let y=k4(a.expression);return y===void 0?y=d:y+="."+d,y}function L_t(r,a){let l=a.types.filter(f=>!!(f.flags&128));return oS(r.value,l,f=>f.value)}function k9(r,a,l){return oS(r,a,f);function f(d){let y=Oc(d);if(!Yi(y,'"')){if(d.flags&l)return y;if(d.flags&2097152){let k=SD(d);if(k&&k.flags&l)return y}}}}function x9(r,a,l){let f=r&&r.flags&106500&&r.valueDeclaration;if(!f)return;let d=hf(f,2),y=r.valueDeclaration&&Gl(r.valueDeclaration)&&ji(r.valueDeclaration.name);if(!(!d&&!y)&&!(a&&mO(a)&&!(r.flags&65536))){if(l){let k=gr(a,xo);if(k&&k.symbol===r)return}(kc(r)&1?$i(r).target:r).isReferenced=-1}}function $8e(r,a){return r.kind===110||!!a&&mo(r)&&a===Hu(h_(r))}function j_t(r,a){switch(r.kind){case 211:return mhe(r,r.expression.kind===108,a,Rf(rs(r.expression)));case 166:return mhe(r,!1,a,Rf(rs(r.left)));case 205:return mhe(r,!1,a,Fi(r))}}function H8e(r,a,l){return ghe(r,r.kind===211&&r.expression.kind===108,!1,a,l)}function mhe(r,a,l,f){if(Se(f))return!0;let d=ca(f,l);return!!d&&ghe(r,a,!1,f,d)}function ghe(r,a,l,f,d){if(Se(f))return!0;if(d.valueDeclaration&&Zu(d.valueDeclaration)){let y=su(d.valueDeclaration);return!ju(r)&&!!gr(r,k=>k===y)}return R8e(r,a,l,f,d)}function W_t(r){let a=r.initializer;if(a.kind===261){let l=a.declarations[0];if(l&&!Ws(l.name))return In(l)}else if(a.kind===80)return Hu(a)}function B_t(r){return Mu(r).length===1&&!!Uh(r,Qt)}function z_t(r){let a=Ka(r);if(a.kind===80){let l=Hu(a);if(l.flags&3){let f=r,d=r.parent;for(;d;){if(d.kind===249&&f===d.statement&&W_t(d)===l&&B_t(ku(d.expression)))return!0;f=d,d=d.parent}}}return!1}function J_t(r,a){return r.flags&64?G_t(r,a):Q8e(r,VD(r.expression),a)}function G_t(r,a){let l=rs(r.expression),f=ER(l,r.expression);return TK(Q8e(r,pg(f,r.expression),a),r,f!==l)}function Q8e(r,a,l){let f=P0(r)!==0||lhe(r)?Rf(a):a,d=r.argumentExpression,y=rs(d);if(We(f)||f===Gt)return f;if(lX(f)&&!Ha(d))return $e(d,p.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Ke;let k=z_t(d)?Qt:y,R=P0(r),W;R===0?W=32:(W=4|(vx(f)&&!AA(f)?2:0),R===2&&(W|=32));let J=db(f,k,W,r)||Ke;return iOe(B8e(r,wn(r).resolvedSymbol,J,d,l),r)}function K8e(r){return km(r)||Ub(r)||Wu(r)}function Ax(r){return K8e(r)&&or(r.typeArguments,ka),r.kind===215?rs(r.template):Wu(r)?rs(r.attributes):vn(r)?rs(r.left):km(r)&&or(r.arguments,a=>{rs(a)}),Br}function dg(r){return Ax(r),Hn}function U_t(r,a,l){let f,d,y=0,k,R=-1,W;w.assert(!a.length);for(let J of r){let Z=J.declaration&&In(J.declaration),ke=J.declaration&&J.declaration.parent;!d||Z===d?f&&ke===f?k=k+1:(f=ke,k=y):(k=y=a.length,f=ke),d=Z,VSe(J)?(R++,W=R,y++):W=k,a.splice(W,0,l?Dst(J,l):J)}}function ZK(r){return!!r&&(r.kind===230||r.kind===237&&r.isSpread)}function hhe(r){return Sc(r,ZK)}function X8e(r){return!!(r.flags&16384)}function V_t(r){return!!(r.flags&49155)}function eX(r,a,l,f=!1){if(wd(r))return!0;let d,y=!1,k=cf(l),R=hm(l);if(r.kind===215)if(d=a.length,r.template.kind===228){let W=xa(r.template.templateSpans);y=Tc(W.literal)||!!W.literal.isUnterminated}else{let W=r.template;w.assert(W.kind===15),y=!!W.isUnterminated}else if(r.kind===170)d=sFe(r,l);else if(r.kind===226)d=1;else if(Wu(r)){if(y=r.attributes.end===r.end,y)return!0;d=R===0?a.length:1,k=a.length===0?k:1,R=Math.min(R,1)}else if(r.arguments){d=f?a.length+1:a.length,y=r.arguments.end===r.end;let W=hhe(a);if(W>=0)return W>=hm(l)&&(Xg(l)||W<cf(l))}else return w.assert(r.kind===214),hm(l)===0;if(!Xg(l)&&d>k)return!1;if(y||d>=R)return!0;for(let W=d;W<R;W++){let J=gm(l,W);if(cl(J,un(r)&&!te?V_t:X8e).flags&131072)return!1}return!0}function yhe(r,a){let l=Dr(r.typeParameters),f=$g(r.typeParameters);return!pt(a)||a.length>=f&&a.length<=l}function Y8e(r,a){let l;return!!(r.target&&(l=WT(r.target,a))&&z1(l))}function Ex(r){return GR(r,0,!1)}function Z8e(r){return GR(r,0,!1)||GR(r,1,!1)}function GR(r,a,l){if(r.flags&524288){let f=pm(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 eFe(r,a,l,f){let d=RR(wMe(r),r,0,f),y=VR(a),k=l&&(y&&y.flags&262144?l.nonFixingMapper:l.mapper),R=k?MT(a,k):a;return gge(R,r,(W,J)=>{By(d.inferences,W,J)}),l||hge(a,r,(W,J)=>{By(d.inferences,W,J,128)}),vR(r,Pge(d),un(a.declaration))}function q_t(r,a,l,f){let d=UK(a,r),y=HD(r.attributes,d,f,l);return By(f.inferences,y,d),Pge(f)}function tFe(r){if(!r)return vr;let a=rs(r);return Dre(r)?a:RP(r.parent)?jy(a):ju(r.parent)?SK(a):a}function vhe(r,a,l,f,d){if(Wu(r))return q_t(r,a,f,d);if(r.kind!==170&&r.kind!==226){let W=Oi(a.typeParameters,Z=>!!wT(Z)),J=P_(r,W?8:0);if(J){let Z=Za(a);if(vb(Z)){let ke=LT(r);if(!(!W&&P_(r,8)!==J)){let Ct=Sge(elt(ke,1)),lr=Hi(J,Ct),rr=Ex(lr),rn=rr&&rr.typeParameters?gx(hme(rr,rr.typeParameters)):lr;By(d.inferences,rn,Z,128)}let Ze=RR(a.typeParameters,a,d.flags),mt=Hi(J,ke&&ke.returnMapper);By(Ze.inferences,mt,Z),d.returnMapper=pt(Ze.inferences,QD)?Sge(ilt(Ze)):void 0}}}let y=qR(a),k=y?Math.min(cf(a)-1,l.length):l.length;if(y&&y.flags&262144){let W=On(d.inferences,J=>J.typeParameter===y);W&&(W.impliedArity=Sc(l,ZK,k)<0?l.length-k:void 0)}let R=W1(a);if(R&&vb(R)){let W=iFe(r);By(d.inferences,tFe(W),R)}for(let W=0;W<k;W++){let J=l[W];if(J.kind!==232){let Z=gm(a,W);if(vb(Z)){let ke=HD(J,Z,d,f);By(d.inferences,ke,Z)}}}if(y&&vb(y)){let W=bhe(l,k,l.length,y,d,f);By(d.inferences,W,y)}return Pge(d)}function rFe(r){return r.flags&1048576?ac(r,rFe):r.flags&1||r9(Su(r)||r)?r:Pa(r)?Hg(DT(r),r.target.elementFlags,!1,r.target.labeledElementDeclarations):Hg([r],[8])}function bhe(r,a,l,f,d,y){let k=mx(f);if(a>=l-1){let Z=r[l-1];if(ZK(Z)){let ke=Z.kind===237?Z.type:HD(Z.expression,f,d,y);return $v(ke)?rFe(ke):Ru(Qv(33,ke,pe,Z.kind===230?Z.expression:Z),k)}}let R=[],W=[],J=[];for(let Z=a;Z<l;Z++){let ke=r[Z];if(ZK(ke)){let he=ke.kind===237?ke.type:rs(ke.expression);$v(he)?(R.push(he),W.push(8)):(R.push(Qv(33,he,pe,ke.kind===230?ke.expression:ke)),W.push(4))}else{let he=Pa(f)?ehe(f,Z-a,l-a)||kt:sf(f,Fd(Z-a),256),Ze=HD(ke,he,d,y),mt=k||zc(he,406978556);R.push(mt?f_(Ze):U1(Ze)),W.push(1)}ke.kind===237&&ke.tupleNameSource?J.push(ke.tupleNameSource):J.push(void 0)}return Hg(R,W,k&&!Vp(f,uge),J)}function She(r,a,l,f){let d=un(r.declaration),y=r.typeParameters,k=Uv(hr(a,Fi),y,$g(y),d),R;for(let W=0;W<a.length;W++){w.assert(y[W]!==void 0,"Should not call checkTypeArguments with too many type arguments");let J=D_(y[W]);if(J){let Z=l&&f?()=>Ps(void 0,p.Type_0_does_not_satisfy_the_constraint_1):void 0,ke=f||p.Type_0_does_not_satisfy_the_constraint_1;R||(R=af(y,k));let he=k[W];if(!Fu(he,Mf(Hi(J,R),he),l?a[W]:void 0,ke,Z))return}}return k}function nFe(r){if(cw(r.tagName))return 2;let a=__(rs(r.tagName));return Dr(Bs(a,1))?0:Dr(Bs(a,0))?1:2}function $_t(r,a,l,f,d,y,k){let R=UK(a,r),W=wd(r)?C8e(r):HD(r.attributes,R,void 0,f),J=f&4?MR(W):W;return Z()&&ege(J,R,l,d?wd(r)?r:r.tagName:void 0,wd(r)?void 0:r.attributes,void 0,y,k);function Z(){var ke;if(HK(r))return!0;let he=(Hd(r)||Pk(r))&&!(cw(r.tagName)||Qd(r.tagName))?rs(r.tagName):void 0;if(!he)return!0;let Ze=Bs(he,0);if(!Dr(Ze))return!0;let mt=yye(r);if(!mt)return!0;let Ct=Ac(mt,111551,!0,!1,r);if(!Ct)return!0;let lr=an(Ct),rr=Bs(lr,0);if(!Dr(rr))return!0;let rn=!1,Kr=0;for(let ir of rr){let yn=gm(ir,0),Qn=Bs(yn,0);if(Dr(Qn))for(let Wi of Qn){if(rn=!0,Xg(Wi))return!0;let Dn=cf(Wi);Dn>Kr&&(Kr=Dn)}}if(!rn)return!0;let pr=1/0;for(let ir of Ze){let yn=hm(ir);yn<pr&&(pr=yn)}if(pr<=Kr)return!0;if(d){let ir=r.tagName,yn=cn(ir,p.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,df(ir),pr,df(mt),Kr),Qn=(ke=qp(ir))==null?void 0:ke.valueDeclaration;Qn&&Xs(yn,cn(Qn,p._0_is_declared_here,df(ir))),k&&k.skipLogging&&(k.errors||(k.errors=[])).push(yn),k.skipLogging||za.add(yn)}return!1}}function tX(r){let a=un(r)?-2147483615:33;return Wc(r,a)}function C9(r,a,l,f,d,y,k,R){let W={errors:void 0,skipLogging:!0};if(ote(r))return $_t(r,l,f,d,y,k,W)?void 0:(w.assert(!y||!!W.errors,"jsx should have errors when reporting errors"),W.errors||qe);let J=W1(l);if(J&&J!==vr&&!(OS(r)||qs(r)&&H_(r.expression))){let mt=iFe(r),Ct=tFe(mt),lr=y?mt||r:void 0,rr=p.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!Jp(Ct,J,f,lr,rr,k,W))return w.assert(!y||!!W.errors,"this parameter should have errors when reporting errors"),W.errors||qe}let Z=p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,ke=qR(l),he=ke?Math.min(cf(l)-1,a.length):a.length;for(let mt=0;mt<he;mt++){let Ct=a[mt];if(Ct.kind!==232){let lr=gm(l,mt),rr=HD(Ct,lr,void 0,d),rn=d&4?MR(rr):rr,Kr=R?Hi(rn,R.nonFixingMapper):rn,pr=tX(Ct);if(!ege(Kr,lr,f,y?pr:void 0,pr,Z,k,W))return w.assert(!y||!!W.errors,"parameter should have errors when reporting errors"),Ze(Ct,Kr,lr),W.errors||qe}}if(ke){let mt=bhe(a,he,a.length,ke,void 0,d),Ct=a.length-he,lr=y?Ct===0?r:Ct===1?tX(a[he]):$d(UR(r,mt),a[he].pos,a[a.length-1].end):void 0;if(!Jp(mt,ke,f,lr,Z,void 0,W))return w.assert(!y||!!W.errors,"rest parameter should have errors when reporting errors"),Ze(lr,mt,ke),W.errors||qe}return;function Ze(mt,Ct,lr){if(mt&&y&&W.errors&&W.errors.length){if(IN(lr))return;let rr=IN(Ct);rr&&fg(rr,lr,f)&&Xs(W.errors[0],cn(mt,p.Did_you_forget_to_use_await))}}}function iFe(r){if(r.kind===226)return r.right;let a=r.kind===213?r.expression:r.kind===215?r.tag:r.kind===170&&!$?r.expression:void 0;if(a){let l=Wc(a);if(Oo(l))return l.expression}}function UR(r,a,l,f){let d=Yb.createSyntheticExpression(a,l,f);return dt(d,r),Xa(d,r),d}function rX(r){if(wd(r))return[UR(r,Cf)];if(r.kind===215){let f=r.template,d=[UR(f,Cat())];return f.kind===228&&or(f.templateSpans,y=>{d.push(y.expression)}),d}if(r.kind===170)return H_t(r);if(r.kind===226)return[r.left];if(Wu(r))return r.attributes.properties.length>0||Hd(r)&&r.parent.children.length>0?[r.attributes]:qe;let a=r.arguments||qe,l=hhe(a);if(l>=0){let f=a.slice(0,l);for(let d=l;d<a.length;d++){let y=a[d],k=y.kind===230&&(rt?rs(y.expression):Ec(y.expression));k&&Pa(k)?or(DT(k),(R,W)=>{var J;let Z=k.target.elementFlags[W],ke=UR(y,Z&4?Ru(R):R,!!(Z&12),(J=k.target.labeledElementDeclarations)==null?void 0:J[W]);f.push(ke)}):f.push(y)}return f}return a}function H_t(r){let a=r.expression,l=Rhe(r);if(l){let f=[];for(let d of l.parameters){let y=an(d);f.push(UR(a,y))}return f}return w.fail()}function sFe(r,a){return F.experimentalDecorators?Q_t(r,a):Math.min(Math.max(cf(a),1),2)}function Q_t(r,a){switch(r.parent.kind){case 263:case 231:return 1;case 172:return Em(r.parent)?3:2;case 174:case 177:case 178:return a.parameters.length<=2?2:3;case 169:return 3;default:return w.fail()}}function aFe(r){let a=Fr(r),{start:l,length:f}=ak(a,Nn(r.expression)?r.expression.name:r.expression);return{start:l,length:f,sourceFile:a}}function w9(r,a,...l){if(qs(r)){let{sourceFile:f,start:d,length:y}=aFe(r);return"message"in a?kl(f,d,y,a,...l):fz(f,a)}else return"message"in a?cn(r,a,...l):fh(Fr(r),r,a)}function K_t(r){return km(r)?Nn(r.expression)?r.expression.name:r.expression:Ub(r)?Nn(r.tag)?r.tag.name:r.tag:Wu(r)?r.tagName:r}function X_t(r){if(!qs(r)||!je(r.expression))return!1;let a=_t(r.expression,r.expression.escapedText,111551,void 0,!1),l=a?.valueDeclaration;if(!l||!Bi(l)||!O0(l.parent)||!OS(l.parent.parent)||!je(l.parent.parent.expression))return!1;let f=wme(!1);return f?qp(l.parent.parent.expression,!0)===f:!1}function oFe(r,a,l,f){var d;let y=hhe(l);if(y>-1)return cn(l[y],p.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let k=Number.POSITIVE_INFINITY,R=Number.NEGATIVE_INFINITY,W=Number.NEGATIVE_INFINITY,J=Number.POSITIVE_INFINITY,Z;for(let Ct of a){let lr=hm(Ct),rr=cf(Ct);lr<k&&(k=lr,Z=Ct),R=Math.max(R,rr),lr<l.length&&lr>W&&(W=lr),l.length<rr&&rr<J&&(J=rr)}let ke=pt(a,Xg),he=ke?k:k<R?k+"-"+R:k,Ze=!ke&&he===1&&l.length===0&&X_t(r);if(Ze&&un(r))return w9(r,p.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments);let mt=Rl(r)?ke?p.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:p.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:ke?p.Expected_at_least_0_arguments_but_got_1:Ze?p.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:p.Expected_0_arguments_but_got_1;if(k<l.length&&l.length<R){if(f){let Ct=Ps(void 0,p.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,l.length,W,J);return Ct=Ps(Ct,f),w9(r,Ct)}return w9(r,p.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,l.length,W,J)}else if(l.length<k){let Ct;if(f){let rr=Ps(void 0,mt,he,l.length);rr=Ps(rr,f),Ct=w9(r,rr)}else Ct=w9(r,mt,he,l.length);let lr=(d=Z?.declaration)==null?void 0:d.parameters[Z.thisParameter?l.length+1:l.length];if(lr){let rr=Ws(lr.name)?[p.An_argument_matching_this_binding_pattern_was_not_provided]:Tg(lr)?[p.Arguments_for_the_rest_parameter_0_were_not_provided,Ln(h_(lr.name))]:[p.An_argument_for_0_was_not_provided,lr.name?Ln(h_(lr.name)):l.length],rn=cn(lr,...rr);return Xs(Ct,rn)}return Ct}else{let Ct=A.createNodeArray(l.slice(R)),lr=Ea(Ct).pos,rr=xa(Ct).end;if(rr===lr&&rr++,$d(Ct,lr,rr),f){let rn=Ps(void 0,mt,he,l.length);return rn=Ps(rn,f),O6(Fr(r),Ct,rn)}return Ww(Fr(r),Ct,mt,he,l.length)}}function Y_t(r,a,l,f){let d=l.length;if(a.length===1){let R=a[0],W=$g(R.typeParameters),J=Dr(R.typeParameters);if(f){let Z=Ps(void 0,p.Expected_0_type_arguments_but_got_1,W<J?W+"-"+J:W,d);return Z=Ps(Z,f),O6(Fr(r),l,Z)}return Ww(Fr(r),l,p.Expected_0_type_arguments_but_got_1,W<J?W+"-"+J:W,d)}let y=-1/0,k=1/0;for(let R of a){let W=$g(R.typeParameters),J=Dr(R.typeParameters);W>d?k=Math.min(k,W):J<d&&(y=Math.max(y,J))}if(y!==-1/0&&k!==1/0){if(f){let R=Ps(void 0,p.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,d,y,k);return R=Ps(R,f),O6(Fr(r),l,R)}return Ww(Fr(r),l,p.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,d,y,k)}if(f){let R=Ps(void 0,p.Expected_0_type_arguments_but_got_1,y===-1/0?k:y,d);return R=Ps(R,f),O6(Fr(r),l,R)}return Ww(Fr(r),l,p.Expected_0_type_arguments_but_got_1,y===-1/0?k:y,d)}function qD(r,a,l,f,d,y){let k=r.kind===215,R=r.kind===170,W=Wu(r),J=wd(r),Z=r.kind===226,ke=!D&&!l,he,Ze,mt,Ct,lr=0,rr=[],rn;!R&&!Z&&!ok(r)&&!J&&(rn=r.typeArguments,(k||W||r.expression.kind!==108)&&or(rn,ka)),rr=l||[],U_t(a,rr,d),J||w.assert(rr.length,"Revert #54442 and add a testcase with whatever triggered this");let Kr=rX(r),pr=rr.length===1&&!rr[0].typeParameters;!R&&!pr&&pt(Kr,vp)&&(lr=4);let ir=!!(f&16)&&r.kind===213&&r.arguments.hasTrailingComma;rr.length>1&&(Ct=Wi(rr,Eh,pr,ir)),Ct||(Ct=Wi(rr,z_,pr,ir));let yn=wn(r);if(yn.resolvedSignature!==pn&&!l)return w.assert(yn.resolvedSignature),yn.resolvedSignature;if(Ct)return Ct;if(Ct=Z_t(r,rr,Kr,!!l,f),yn.resolvedSignature=Ct,ke){if(!y&&Z&&(y=p.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 Dn=he[he.length-1],hs;he.length>3&&(hs=Ps(hs,p.The_last_overload_gave_the_following_error),hs=Ps(hs,p.No_overload_matches_this_call)),y&&(hs=Ps(hs,y));let Gs=C9(r,Kr,Dn,z_,0,!0,()=>hs,void 0);if(Gs)for(let co of Gs)Dn.declaration&&he.length>3&&Xs(co,cn(Dn.declaration,p.The_last_overload_is_declared_here)),Qn(Dn,co),za.add(co);else w.fail("No error for last overload signature")}else{let Dn=[],hs=0,Gs=Number.MAX_VALUE,co=0,As=0;for(let Nr of he){let Xr=C9(r,Kr,Nr,z_,0,!0,()=>Ps(void 0,p.Overload_0_of_1_2_gave_the_following_error,As+1,rr.length,bT(Nr)),void 0);Xr?(Xr.length<=Gs&&(Gs=Xr.length,co=As),hs=Math.max(hs,Xr.length),Dn.push(Xr)):w.fail("No error for 3 or fewer overload signatures"),As++}let Qu=hs>1?Dn[co]:Qp(Dn);w.assert(Qu.length>0,"No errors reported for 3 or fewer overload signatures");let tu=Ps(hr(Qu,Ate),p.No_overload_matches_this_call);y&&(tu=Ps(tu,y));let bc=[...ga(Qu,Nr=>Nr.relatedInformation)],Mr;if(Oi(Qu,Nr=>Nr.start===Qu[0].start&&Nr.length===Qu[0].length&&Nr.file===Qu[0].file)){let{file:Nr,start:Ti,length:Xr}=Qu[0];Mr={file:Nr,start:Ti,length:Xr,code:tu.code,category:tu.category,messageText:tu,relatedInformation:bc}}else Mr=fh(Fr(r),K_t(r),tu,bc);Qn(he[0],Mr),za.add(Mr)}else if(Ze)za.add(oFe(r,[Ze],Kr,y));else if(mt)She(mt,r.typeArguments,!0,y);else if(!J){let Dn=An(a,hs=>yhe(hs,rn));Dn.length===0?za.add(Y_t(r,a,rn,y)):za.add(oFe(r,Dn,Kr,y))}}return Ct;function Qn(Dn,hs){var Gs,co;let As=he,Qu=Ze,tu=mt,bc=((co=(Gs=Dn.declaration)==null?void 0:Gs.symbol)==null?void 0:co.declarations)||qe,Nr=bc.length>1?On(bc,Ti=>xo(Ti)&&Zp(Ti.body)):void 0;if(Nr){let Ti=yp(Nr),Xr=!Ti.typeParameters;Wi([Ti],z_,Xr)&&Xs(hs,cn(Nr,p.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}he=As,Ze=Qu,mt=tu}function Wi(Dn,hs,Gs,co=!1){var As,Qu;if(he=void 0,Ze=void 0,mt=void 0,Gs){let tu=Dn[0];if(pt(rn)||!eX(r,Kr,tu,co))return;if(C9(r,Kr,tu,hs,0,!1,void 0,void 0)){he=[tu];return}return tu}for(let tu=0;tu<Dn.length;tu++){let bc=Dn[tu];if(!yhe(bc,rn)||!eX(r,Kr,bc,co))continue;let Mr,Nr;if(bc.typeParameters){let Xr=((Qu=(As=bc.typeParameters[0].symbol.declarations)==null?void 0:As[0])==null?void 0:Qu.parent)||(bc.declaration&&lc(bc.declaration)?bc.declaration.parent:bc.declaration);Xr&&gr(r,Ra=>Ra===Xr)&&(bc=gat(bc));let ls;if(pt(rn)){if(ls=She(bc,rn,!1),!ls){mt=bc;continue}}else Nr=RR(bc.typeParameters,bc,un(r)?2:0),ls=Qg(vhe(r,bc,Kr,lr|8,Nr),Nr.nonFixingMapper),lr|=Nr.flags&4?8:0;if(Mr=vR(bc,ls,un(bc.declaration),Nr&&Nr.inferredTypeParameters),qR(bc)&&!eX(r,Kr,Mr,co)){Ze=Mr;continue}}else Mr=bc;if(C9(r,Kr,Mr,hs,lr,!1,void 0,Nr)){(he||(he=[])).push(Mr);continue}if(lr){if(lr=0,Nr){let Ti=Qg(vhe(r,bc,Kr,lr,Nr),Nr.mapper);if(Mr=vR(bc,Ti,un(bc.declaration),Nr.inferredTypeParameters),qR(bc)&&!eX(r,Kr,Mr,co)){Ze=Mr;continue}}if(C9(r,Kr,Mr,hs,lr,!1,void 0,Nr)){(he||(he=[])).push(Mr);continue}}return Dn[tu]=Mr,Mr}}}function Z_t(r,a,l,f,d){return w.assert(a.length>0),uw(r),f||a.length===1||a.some(y=>!!y.typeParameters)?rft(r,a,l,d):eft(a)}function eft(r){let a=Vi(r,W=>W.thisParameter),l;a.length&&(l=cFe(a,a.map(P9)));let{min:f,max:d}=une(r,tft),y=[];for(let W=0;W<d;W++){let J=Vi(r,Z=>Gu(Z)?W<Z.parameters.length-1?Z.parameters[W]:xa(Z.parameters):W<Z.parameters.length?Z.parameters[W]:void 0);w.assert(J.length!==0),y.push(cFe(J,Vi(r,Z=>WT(Z,W))))}let k=Vi(r,W=>Gu(W)?xa(W.parameters):void 0),R=128;if(k.length!==0){let W=Ru(ri(Vi(r,CMe),2));y.push(lFe(k,W)),R|=1}return r.some(VSe)&&(R|=2),Gh(r[0].declaration,void 0,l,y,ma(r.map(Za)),void 0,f,R)}function tft(r){let a=r.parameters.length;return Gu(r)?a-1:a}function cFe(r,a){return lFe(r,ri(a,2))}function lFe(r,a){return kx(Ea(r),a)}function rft(r,a,l,f){let d=sft(a,Ve===void 0?l.length:Ve),y=a[d],{typeParameters:k}=y;if(!k)return y;let R=K8e(r)?r.typeArguments:void 0,W=R?GQ(y,nft(R,k,un(r))):ift(r,k,y,l,f);return a[d]=W,W}function nft(r,a,l){let f=r.map(_w);for(;f.length>a.length;)f.pop();for(;f.length<a.length;)f.push(wT(a[f.length])||D_(a[f.length])||Dge(l));return f}function ift(r,a,l,f,d){let y=RR(a,l,un(r)?2:0),k=vhe(r,l,f,d|4|8,y);return GQ(l,k)}function sft(r,a){let l=-1,f=-1;for(let d=0;d<r.length;d++){let y=r[d],k=cf(y);if(Xg(y)||k>=a)return d;k>f&&(f=k,l=d)}return l}function aft(r,a,l){if(r.expression.kind===108){let W=WK(r.expression);if(Se(W)){for(let J of r.arguments)rs(J);return Br}if(!We(W)){let J=Dm(su(r));if(J){let Z=$a(W,J.typeArguments,J);return qD(r,Z,a,l,0)}}return Ax(r)}let f,d=rs(r.expression);if(ZT(r)){let W=ER(d,r.expression);f=W===d?0:FP(r)?16:8,d=W}else f=0;if(d=O8e(d,r.expression,x_t),d===Gt)return Lr;let y=__(d);if(We(y))return dg(r);let k=Bs(y,0),R=Bs(y,1).length;if(I9(d,y,k.length,R))return!We(d)&&r.typeArguments&&$e(r,p.Untyped_function_calls_may_not_accept_type_arguments),Ax(r);if(!k.length){if(R)$e(r,p.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,tn(d));else{let W;if(r.arguments.length===1){let J=Fr(r).text;Lu(J.charCodeAt(ha(J,r.expression.end,!0)-1))&&(W=cn(r.expression,p.Are_you_missing_a_semicolon))}khe(r.expression,y,0,W)}return dg(r)}return l&8&&!r.typeArguments&&k.some(oft)?($Fe(r,l),pn):k.some(W=>un(W.declaration)&&!!IB(W.declaration))?($e(r,p.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,tn(d)),dg(r)):qD(r,k,a,l,f)}function oft(r){return!!(r.typeParameters&&gye(Za(r)))}function I9(r,a,l,f){return Se(r)||Se(a)&&!!(r.flags&262144)||!l&&!f&&!(a.flags&1048576)&&!(Rd(a).flags&131072)&&Hs(r,Wt)}function cft(r,a,l){let f=VD(r.expression);if(f===Gt)return Lr;if(f=__(f),We(f))return dg(r);if(Se(f))return r.typeArguments&&$e(r,p.Untyped_function_calls_may_not_accept_type_arguments),Ax(r);let d=Bs(f,1);if(d.length){if(!lft(r,d[0]))return dg(r);if(uFe(d,R=>!!(R.flags&4)))return $e(r,p.Cannot_create_an_instance_of_an_abstract_class),dg(r);let k=f.symbol&&_y(f.symbol);return k&&ei(k,64)?($e(r,p.Cannot_create_an_instance_of_an_abstract_class),dg(r)):qD(r,d,a,l,0)}let y=Bs(f,0);if(y.length){let k=qD(r,y,a,l,0);return de||(k.declaration&&!mg(k.declaration)&&Za(k)!==vr&&$e(r,p.Only_a_void_function_can_be_called_with_the_new_keyword),W1(k)===vr&&$e(r,p.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),k}return khe(r.expression,f,1),dg(r)}function uFe(r,a){return ks(r)?pt(r,l=>uFe(l,a)):r.compositeKind===1048576?pt(r.compositeSignatures,a):a(r)}function The(r,a){let l=Pl(a);if(!Dr(l))return!1;let f=l[0];if(f.flags&2097152){let d=f.types,y=sMe(d),k=0;for(let R of f.types){if(!y[k]&&Mn(R)&3&&(R.symbol===r||The(r,R)))return!0;k++}return!1}return f.symbol===r?!0:The(r,f)}function lft(r,a){if(!a||!a.declaration)return!0;let l=a.declaration,f=g2(l,6);if(!f||l.kind!==176)return!0;let d=_y(l.parent.symbol),y=Bo(l.parent.symbol);if(!fye(r,d)){let k=su(r);if(k&&f&4){let R=_w(k);if(The(l.parent.symbol,R))return!0}return f&2&&$e(r,p.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,tn(y)),f&4&&$e(r,p.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,tn(y)),!1}return!0}function _Fe(r,a,l){let f,d=l===0,y=lw(a),k=y&&Bs(y,l).length>0;if(a.flags&1048576){let W=a.types,J=!1;for(let Z of W)if(Bs(Z,l).length!==0){if(J=!0,f)break}else if(f||(f=Ps(f,d?p.Type_0_has_no_call_signatures:p.Type_0_has_no_construct_signatures,tn(Z)),f=Ps(f,d?p.Not_all_constituents_of_type_0_are_callable:p.Not_all_constituents_of_type_0_are_constructable,tn(a))),J)break;J||(f=Ps(void 0,d?p.No_constituent_of_type_0_is_callable:p.No_constituent_of_type_0_is_constructable,tn(a))),f||(f=Ps(f,d?p.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:p.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,tn(a)))}else f=Ps(f,d?p.Type_0_has_no_call_signatures:p.Type_0_has_no_construct_signatures,tn(a));let R=d?p.This_expression_is_not_callable:p.This_expression_is_not_constructable;if(qs(r.parent)&&r.parent.arguments.length===0){let{resolvedSymbol:W}=wn(r);W&&W.flags&32768&&(R=p.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:Ps(f,R),relatedMessage:k?p.Did_you_forget_to_use_await:void 0}}function khe(r,a,l,f){let{messageChain:d,relatedMessage:y}=_Fe(r,a,l),k=fh(Fr(r),r,d);if(y&&Xs(k,cn(r,y)),qs(r.parent)){let{start:R,length:W}=aFe(r.parent);k.start=R,k.length=W}za.add(k),fFe(a,l,f?Xs(k,f):k)}function fFe(r,a,l){if(!r.symbol)return;let f=$i(r.symbol).originatingImport;if(f&&!jf(f)){let d=Bs(an($i(r.symbol).target),a);if(!d||!d.length)return;Xs(l,cn(f,p.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 uft(r,a,l){let f=rs(r.tag),d=__(f);if(We(d))return dg(r);let y=Bs(d,0),k=Bs(d,1).length;if(I9(f,d,y.length,k))return Ax(r);if(!y.length){if(gu(r.parent)){let R=cn(r.tag,p.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 za.add(R),dg(r)}return khe(r.tag,d,0),dg(r)}return qD(r,y,a,l,0)}function _ft(r){switch(r.parent.kind){case 263:case 231:return p.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return p.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return p.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return p.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return w.fail()}}function fft(r,a,l){let f=rs(r.expression),d=__(f);if(We(d))return dg(r);let y=Bs(d,0),k=Bs(d,1).length;if(I9(f,d,y.length,k))return Ax(r);if(mft(r,y)&&!b_(r.expression)){let W=oc(r.expression,!1);return $e(r,p._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,W),dg(r)}let R=_ft(r);if(!y.length){let W=_Fe(r.expression,d,0),J=Ps(W.messageChain,R),Z=fh(Fr(r.expression),r.expression,J);return W.relatedMessage&&Xs(Z,cn(r.expression,W.relatedMessage)),za.add(Z),fFe(d,0,Z),dg(r)}return qD(r,y,a,l,0,R)}function nX(r,a){let l=Px(r),f=l&&Nf(l),d=f&&c_(f,ap.Element,788968),y=d&&xe.symbolToEntityName(d,788968,r),k=A.createFunctionTypeNode(void 0,[A.createParameterDeclaration(void 0,void 0,"props",void 0,xe.typeToTypeNode(a,r))],y?A.createTypeReferenceNode(y,void 0):A.createKeywordTypeNode(133)),R=da(1,"props");return R.links.type=a,Gh(k,void 0,void 0,[R],d?Bo(d):Ke,void 0,1,0)}function pFe(r){let a=wn(Fr(r));if(a.jsxFragmentType!==void 0)return a.jsxFragmentType;let l=lu(r);if(!((F.jsx===2||F.jsxFragmentFactory!==void 0)&&l!=="null"))return a.jsxFragmentType=Fe;let d=F.jsx!==1&&F.jsx!==3,y=za?p.Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:void 0,k=HK(r)??_t(r,l,d?111551:111167,y,!0);if(k===void 0)return a.jsxFragmentType=Ke;if(k.escapedName===CU.Fragment)return a.jsxFragmentType=an(k);let R=(k.flags&2097152)===0?k:al(k),W=k&&Nf(R),J=W&&c_(W,CU.Fragment,2),Z=J&&an(J);return a.jsxFragmentType=Z===void 0?Ke:Z}function pft(r,a,l){let f=wd(r),d;if(f)d=pFe(r);else{if(cw(r.tagName)){let R=A8e(r),W=nX(r,R);return FT(HD(r.attributes,UK(W,r),void 0,0),R,r.tagName,r.attributes),Dr(r.typeArguments)&&(or(r.typeArguments,ka),za.add(Ww(Fr(r),r.typeArguments,p.Expected_0_type_arguments_but_got_1,0,Dr(r.typeArguments)))),W}d=rs(r.tagName)}let y=__(d);if(We(y))return dg(r);let k=D8e(d,r);return I9(d,y,k.length,0)?Ax(r):k.length===0?(f?$e(r,p.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,oc(r)):$e(r.tagName,p.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,oc(r.tagName)),dg(r)):qD(r,k,a,l,0)}function dft(r,a,l){let f=rs(r.right);if(!Se(f)){let d=Whe(f);if(d){let y=__(d);if(We(y))return dg(r);let k=Bs(y,0),R=Bs(y,1);if(I9(d,y,k.length,R.length))return Ax(r);if(k.length)return qD(r,k,a,l,0)}else if(!(AX(f)||RT(f,Wt)))return $e(r.right,p.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),dg(r)}return Br}function mft(r,a){return a.length&&Oi(a,l=>l.minArgumentCount===0&&!Gu(l)&&l.parameters.length<sFe(r,l))}function gft(r,a,l){switch(r.kind){case 213:return aft(r,a,l);case 214:return cft(r,a,l);case 215:return uft(r,a,l);case 170:return fft(r,a,l);case 289:case 286:case 285:return pft(r,a,l);case 226:return dft(r,a,l)}w.assertNever(r,"Branch in 'resolveSignature' should be unreachable.")}function $D(r,a,l){let f=wn(r),d=f.resolvedSignature;if(d&&d!==pn&&!a)return d;let y=kv;d||(kv=Mg.length),f.resolvedSignature=pn;let k=gft(r,a,l||0);return kv=y,k!==pn&&(f.resolvedSignature=Be===rt?k:d),k}function mg(r){var a;if(!r||!un(r))return!1;let l=jc(r)||Ao(r)?r:(oi(r)||hl(r))&&r.initializer&&Ao(r.initializer)?r.initializer:void 0;if(l){if(IB(r))return!0;if(hl(Td(l.parent)))return!1;let f=In(l);return!!((a=f?.members)!=null&&a.size)}return!1}function xhe(r,a){var l,f;if(a){let d=$i(a);if(!d.inferredClassSymbol||!d.inferredClassSymbol.has(ua(r))){let y=lh(r)?r:y1(r);return y.exports=y.exports||ea(),y.members=y.members||ea(),y.flags|=a.flags&32,(l=a.exports)!=null&&l.size&&eg(y.exports,a.exports),(f=a.members)!=null&&f.size&&eg(y.members,a.members),(d.inferredClassSymbol||(d.inferredClassSymbol=new Map)).set(ua(y),y),y}return d.inferredClassSymbol.get(ua(r))}}function hft(r){var a;let l=r&&iX(r,!0),f=(a=l?.exports)==null?void 0:a.get("prototype"),d=f?.valueDeclaration&&yft(f.valueDeclaration);return d?In(d):void 0}function iX(r,a){if(!r.parent)return;let l,f;if(oi(r.parent)&&r.parent.initializer===r){if(!un(r)&&!(a8(r.parent)&&xo(r)))return;l=r.parent.name,f=r.parent}else if(vn(r.parent)){let d=r.parent,y=r.parent.operatorToken.kind;if(y===64&&(a||d.right===r))l=d.left,f=l;else if((y===57||y===61)&&(oi(d.parent)&&d.parent.initializer===d?(l=d.parent.name,f=d.parent):vn(d.parent)&&d.parent.operatorToken.kind===64&&(a||d.parent.right===d)&&(l=d.parent.left,f=l),!l||!_k(l)||!Vw(l,d.left)))return}else a&&jc(r)&&(l=r.name,f=r);if(!(!f||!l||!a&&!Rb(r,M0(l))))return Vf(f)}function yft(r){if(!r.parent)return!1;let a=r.parent;for(;a&&a.kind===211;)a=a.parent;if(a&&vn(a)&&M0(a.left)&&a.operatorToken.kind===64){let l=kz(a);return Sa(l)&&l}}function vft(r,a){var l,f,d;Q9(r,r.typeArguments);let y=$D(r,void 0,a);if(y===pn)return Gt;if(sX(y,r),r.expression.kind===108)return vr;if(r.kind===214){let R=y.declaration;if(R&&R.kind!==176&&R.kind!==180&&R.kind!==185&&!(fv(R)&&((f=(l=Hw(R))==null?void 0:l.parent)==null?void 0:f.kind)===176)&&!f2(R)&&!mg(R))return de&&$e(r,p.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Fe}if(un(r)&&hFe(r))return kMe(r.arguments[0]);let k=Za(y);if(k.flags&12288&&dFe(r))return $me(Td(r.parent));if(r.kind===213&&!r.questionDotToken&&r.parent.kind===244&&k.flags&16384&&zp(y)){if(!S4(r.expression))$e(r.expression,p.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);else if(!_9(r)){let R=$e(r.expression,p.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);u9(r.expression,R)}}if(un(r)){let R=iX(r,!1);if((d=R?.exports)!=null&&d.size){let W=tc(R,R.exports,qe,qe,qe);return W.objectFlags|=4096,ma([k,W])}}return k}function sX(r,a){if(!(r.flags&128)&&r.declaration&&r.declaration.flags&536870912){let l=D9(a),f=k4(OF(a));xC(l,r.declaration,f,bT(r))}}function D9(r){switch(r=Ka(r),r.kind){case 213:case 170:case 214:return D9(r.expression);case 215:return D9(r.tag);case 286:case 285:return D9(r.tagName);case 212:return r.argumentExpression;case 211:return r.name;case 183:let a=r;return y_(a.typeName)?a.typeName.right:a;default:return r}}function dFe(r){if(!qs(r))return!1;let a=r.expression;if(Nn(a)&&a.name.escapedText==="for"&&(a=a.expression),!je(a)||a.escapedText!=="Symbol")return!1;let l=UMe(!1);return l?l===_t(a,"Symbol",111551,void 0,!1):!1}function bft(r){if(Wht(r),r.arguments.length===0)return M9(r,Fe);let a=r.arguments[0],l=Ec(a),f=r.arguments.length>1?Ec(r.arguments[1]):void 0;for(let y=2;y<r.arguments.length;++y)Ec(r.arguments[y]);if((l.flags&32768||l.flags&65536||!Hs(l,ut))&&$e(a,p.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,tn(l)),f){let y=GMe(!0);y!==Oa&&Fu(f,i9(y,32768),r.arguments[1])}let d=u_(r,a);if(d){let y=Ov(d,a,!0,!1);if(y)return M9(r,mFe(an(y),y,d,a)||gFe(an(y),y,d,a))}return M9(r,Fe)}function Che(r,a,l){let f=ea(),d=da(2097152,"default");return d.parent=a,d.links.nameType=V_("default"),d.links.aliasTarget=Pc(r),f.set("default",d),tc(l,f,qe,qe,qe)}function mFe(r,a,l,f){if(jh(f)&&r&&!We(r)){let y=r;if(!y.defaultOnlyType){let k=Che(a,l);y.defaultOnlyType=k}return y.defaultOnlyType}}function gFe(r,a,l,f){var d;if(me&&r&&!We(r)){let y=r;if(!y.syntheticType){let k=(d=l.declarations)==null?void 0:d.find(Mi);if(ix(k,l,!1,f)){let W=da(2048,"__type"),J=Che(a,l,W);W.links.type=J,y.syntheticType=y9(r)?PT(r,J,W,0,!1):J}else y.syntheticType=r}return y.syntheticType}return r}function hFe(r){if(!R_(r,!0))return!1;if(!je(r.expression))return w.fail();let a=_t(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?262:a.flags&3?260:0;if(l!==0){let f=Yo(a,l);return!!f&&!!(f.flags&33554432)}return!1}function Sft(r){fht(r)||Q9(r,r.typeArguments),B<zl.TaggedTemplates&&Wl(r,262144);let a=$D(r);return sX(a,r),Za(a)}function Tft(r,a){if(r.kind===216){let l=Fr(r);if(l&&Gc(l.fileName,[".cts",".mts"])&&Tr(r,p.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead),F.erasableSyntaxOnly){let f=ha(l.text,r.pos),d=r.expression.pos;za.add(kl(l,f,d-f,p.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled))}}return yFe(r,a)}function whe(r){switch(r.kind){case 11:case 15:case 9:case 10:case 112:case 97:case 209:case 210:case 228:return!0;case 217:return whe(r.expression);case 224:let a=r.operator,l=r.operand;return a===41&&(l.kind===9||l.kind===10)||a===40&&l.kind===9;case 211:case 212:let f=Ka(r.expression),d=mo(f)?Ac(f,111551,!0):void 0;return!!(d&&d.flags&384)}return!1}function yFe(r,a){let{type:l,expression:f}=vFe(r),d=rs(f,a);if(vd(l))return whe(f)||$e(f,p.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),f_(d);let y=wn(r);return y.assertionExpressionType=d,ka(l),uw(r),Fi(l)}function vFe(r){let a,l;switch(r.kind){case 234:case 216:a=r.type,l=r.expression;break;case 217:a=kI(r),l=r.expression;break}return{type:a,expression:l}}function kft(r){let{type:a}=vFe(r),l=b_(r)?a:r,f=wn(r);w.assertIsDefined(f.assertionExpressionType);let d=MR(Ly(f.assertionExpressionType)),y=Fi(a);We(y)||n(()=>{let k=Rf(d);uK(y,k)||U3e(d,y,l,p.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 xft(r){let a=rs(r.expression),l=ER(a,r.expression);return TK(jy(l),r,l!==a)}function Cft(r){return r.flags&64?xft(r):jy(rs(r.expression))}function bFe(r){if(f7e(r),or(r.typeArguments,ka),r.kind===233){let l=Td(r.parent);l.kind===226&&l.operatorToken.kind===104&&SS(r,l.right)&&$e(r,p.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}let a=r.kind===233?rs(r.expression):N0(r.exprName)?m9(r.exprName):rs(r.exprName);return SFe(a,r)}function SFe(r,a){let l=a.typeArguments;if(r===Gt||We(r)||!pt(l))return r;let f=wn(a);if(f.instantiationExpressionTypes||(f.instantiationExpressionTypes=new Map),f.instantiationExpressionTypes.has(r.id))return f.instantiationExpressionTypes.get(r.id);let d=!1,y,k=W(r);f.instantiationExpressionTypes.set(r.id,k);let R=d?y:r;return R&&za.add(Ww(Fr(a),l,p.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,tn(R))),k;function W(Z){let ke=!1,he=!1,Ze=mt(Z);return d||(d=he),ke&&!he&&(y??(y=Z)),Ze;function mt(Ct){if(Ct.flags&524288){let lr=pm(Ct),rr=J(lr.callSignatures),rn=J(lr.constructSignatures);if(ke||(ke=lr.callSignatures.length!==0||lr.constructSignatures.length!==0),he||(he=rr.length!==0||rn.length!==0),rr!==lr.callSignatures||rn!==lr.constructSignatures){let Kr=tc(da(0,"__instantiationExpression"),lr.members,rr,rn,lr.indexInfos);return Kr.objectFlags|=8388608,Kr.node=a,Kr}}else if(Ct.flags&58982400){let lr=Su(Ct);if(lr){let rr=mt(lr);if(rr!==lr)return rr}}else{if(Ct.flags&1048576)return ac(Ct,W);if(Ct.flags&2097152)return ma(ul(Ct.types,mt))}return Ct}}function J(Z){let ke=An(Z,he=>!!he.typeParameters&&yhe(he,l));return ul(ke,he=>{let Ze=She(he,l,!0);return Ze?vR(he,Ze,un(he.declaration)):he})}}function wft(r){return ka(r.type),Ihe(r.expression,r.type)}function Ihe(r,a,l){let f=rs(r,l),d=Fi(a);if(We(d))return d;let y=gr(a.parent,k=>k.kind===238||k.kind===350);return FT(f,d,y,r,p.Type_0_does_not_satisfy_the_expected_type_1),f}function Ift(r){return Dht(r),r.keywordToken===105?Dhe(r):r.keywordToken===102?Dft(r):w.assertNever(r.keywordToken)}function TFe(r){switch(r.keywordToken){case 102:return JMe();case 105:let a=Dhe(r);return We(a)?Ke:Vft(a);default:w.assertNever(r.keywordToken)}}function Dhe(r){let a=Vte(r);if(a)if(a.kind===176){let l=In(a.parent);return an(l)}else{let l=In(a);return an(l)}else return $e(r,p.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Ke}function Dft(r){100<=G&&G<=199?Fr(r).impliedNodeFormat!==99&&$e(r,p.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):G<6&&G!==4&&$e(r,p.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_or_nodenext);let a=Fr(r);return w.assert(!!(a.flags&8388608),"Containing file is missing import meta node flag."),r.name.escapedText==="meta"?zMe():Ke}function P9(r){let a=r.valueDeclaration;return Yl(an(r),!1,!!a&&(Yy(a)||I2(a)))}function Phe(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 207:{if(r.dotDotDotToken){let f=r.name.elements,d=Vn(zo(f),Da),y=f.length-(d?.dotDotDotToken?1:0);if(a<y){let k=f[a];if(Da(k))return Phe(k,a,l)}else if(d?.dotDotDotToken)return Phe(d,a-y,l)}break}}return`arg_${a}`}function Ahe(r,a=0,l=3,f){if(!r){let d=Vn(f?.valueDeclaration,Bi);return d?Phe(d,a,l):`${f?.escapedName??"arg"}_${a}`}return w.assert(je(r.name)),r.name.escapedText}function kN(r,a,l){var f;let d=r.parameters.length-(Gu(r)?1:0);if(a<d)return r.parameters[a].escapedName;let y=r.parameters[d]||Y,k=l||an(y);if(Pa(k)){let R=k.target,W=a-d,J=(f=R.labeledElementDeclarations)==null?void 0:f[W],Z=R.elementFlags[W];return Ahe(J,W,Z,y)}return y.escapedName}function Pft(r,a){var l;if(((l=r.declaration)==null?void 0:l.kind)===317)return;let f=r.parameters.length-(Gu(r)?1:0);if(a<f){let R=r.parameters[a],W=kFe(R);return W?{parameter:W,parameterName:R.escapedName,isRestParameter:!1}:void 0}let d=r.parameters[f]||Y,y=kFe(d);if(!y)return;let k=an(d);if(Pa(k)){let R=k.target.labeledElementDeclarations,W=a-f,J=R?.[W],Z=!!J?.dotDotDotToken;return J?(w.assert(je(J.name)),{parameter:J.name,parameterName:J.name.escapedText,isRestParameter:Z}):void 0}if(a===f)return{parameter:y,parameterName:d.escapedName,isRestParameter:!0}}function kFe(r){return r.valueDeclaration&&Bi(r.valueDeclaration)&&je(r.valueDeclaration.name)&&r.valueDeclaration.name}function xFe(r){return r.kind===202||Bi(r)&&r.name&&je(r.name)}function Aft(r,a){let l=r.parameters.length-(Gu(r)?1:0);if(a<l){let y=r.parameters[a].valueDeclaration;return y&&xFe(y)?y:void 0}let f=r.parameters[l]||Y,d=an(f);if(Pa(d)){let y=d.target.labeledElementDeclarations,k=a-l;return y&&y[k]}return f.valueDeclaration&&xFe(f.valueDeclaration)?f.valueDeclaration:void 0}function gm(r,a){return WT(r,a)||Fe}function WT(r,a){let l=r.parameters.length-(Gu(r)?1:0);if(a<l)return P9(r.parameters[a]);if(Gu(r)){let f=an(r.parameters[l]),d=a-l;if(!Pa(f)||f.target.combinedFlags&12||d<f.target.fixedLength)return sf(f,Fd(d))}}function A9(r,a,l){let f=cf(r),d=hm(r),y=VR(r);if(y&&a>=f-1)return a===f-1?y:Ru(sf(y,Qt));let k=[],R=[],W=[];for(let J=a;J<f;J++)!y||J<f-1?(k.push(gm(r,J)),R.push(J<d?1:2)):(k.push(y),R.push(8)),W.push(Aft(r,J));return Hg(k,R,l,W)}function CFe(r,a){let l=A9(r,a),f=l&&n9(l);return f&&Se(f)?Fe:l}function cf(r){let a=r.parameters.length;if(Gu(r)){let l=an(r.parameters[a-1]);if(Pa(l))return a+l.target.fixedLength-(l.target.combinedFlags&12?0:1)}return a}function hm(r,a){let l=a&1,f=a&2;if(f||r.resolvedMinArgumentCount===void 0){let d;if(Gu(r)){let y=an(r.parameters[r.parameters.length-1]);if(Pa(y)){let k=Sc(y.target.elementFlags,W=>!(W&1)),R=k<0?y.target.fixedLength:k;R>0&&(d=r.parameters.length-1+R)}}if(d===void 0){if(!l&&r.flags&32)return 0;d=r.minArgumentCount}if(f)return d;for(let y=d-1;y>=0;y--){let k=gm(r,y);if(cl(k,X8e).flags&131072)break;d=y}r.resolvedMinArgumentCount=d}return r.resolvedMinArgumentCount}function Xg(r){if(Gu(r)){let a=an(r.parameters[r.parameters.length-1]);return!Pa(a)||!!(a.target.combinedFlags&12)}return!1}function VR(r){if(Gu(r)){let a=an(r.parameters[r.parameters.length-1]);if(!Pa(a))return Se(a)?wl:a;if(a.target.combinedFlags&12)return mN(a,a.target.fixedLength)}}function qR(r){let a=VR(r);return a&&!Gp(a)&&!Se(a)?a:void 0}function Ehe(r){return Nhe(r,ar)}function Nhe(r,a){return r.parameters.length>0?gm(r,0):a}function wFe(r,a,l){let f=r.parameters.length-(Gu(r)?1:0);for(let d=0;d<f;d++){let y=r.parameters[d].valueDeclaration,k=pl(y);if(k){let R=Yl(Fi(k),!1,I2(y)),W=gm(a,d);By(l.inferences,R,W)}}}function Eft(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=kx(a.thisParameter,void 0)),E9(r.thisParameter,an(a.thisParameter)))}let l=r.parameters.length-(Gu(r)?1:0);for(let f=0;f<l;f++){let d=r.parameters[f],y=d.valueDeclaration;if(!pl(y)){let k=WT(a,f);if(k&&y.initializer){let R=xN(y,0);!Hs(R,k)&&Hs(k,R=zhe(y,R))&&(k=R)}E9(d,k)}}if(Gu(r)){let f=xa(r.parameters);if(f.valueDeclaration?!pl(f.valueDeclaration):kc(f)&65536){let d=A9(a,l);E9(f,d)}}}function Nft(r){r.thisParameter&&E9(r.thisParameter);for(let a of r.parameters)E9(a)}function E9(r,a){let l=$i(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=Yl(a||(f?no(f,!0):an(r)),!1,!!f&&!f.initializer&&I2(f)),f&&f.name.kind!==80&&(l.type===kt&&(l.type=os(f.name)),IFe(f.name,l.type))}}function IFe(r,a){for(let l of r.elements)if(!Fl(l)){let f=Ja(l,a,!1);l.name.kind===80?$i(In(l)).type=f:IFe(l.name,f)}}function Mft(r){return FD(Jat(!0),[r])}function Rft(r,a){return FD(Gat(!0),[r,a])}function Fft(r,a){return FD(Uat(!0),[r,a])}function Oft(r,a){return FD(Vat(!0),[r,a])}function Lft(r,a){return FD(qat(!0),[r,a])}function jft(r,a){return FD(Qat(!0),[r,a])}function Wft(r,a,l){let f=`${a?"p":"P"}${l?"s":"S"}${r.id}`,d=xs.get(f);if(!d){let y=ea();y.set("name",Fh("name",r)),y.set("private",Fh("private",a?it:Pr)),y.set("static",Fh("static",l?it:Pr)),d=tc(void 0,y,qe,qe,qe),xs.set(f,d)}return d}function DFe(r,a,l){let f=Tl(r),d=ji(r.name),y=d?V_(Ln(r.name)):My(r.name),k=xc(r)?Rft(a,l):Mp(r)?Fft(a,l):X_(r)?Oft(a,l):N_(r)?Lft(a,l):ds(r)?jft(a,l):w.failBadSyntaxKind(r),R=Wft(y,d,f);return ma([k,R])}function Bft(r,a){return FD($at(!0),[r,a])}function zft(r,a){return FD(Hat(!0),[r,a])}function Jft(r,a){let l=Kl("this",r),f=Kl("value",a);return Hhe(void 0,l,[f],a,void 0,1)}function Mhe(r,a,l){let f=Kl("target",r),d=Kl("context",a),y=ri([l,vr]);return ZR(void 0,void 0,[f,d],y)}function Gft(r){let{parent:a}=r,l=wn(a);if(!l.decoratorSignature)switch(l.decoratorSignature=Br,a.kind){case 263:case 231:{let d=an(In(a)),y=Mft(d);l.decoratorSignature=Mhe(d,y,d);break}case 174:case 177:case 178:{let f=a;if(!ii(f.parent))break;let d=xc(f)?gx(yp(f)):_w(f),y=Tl(f)?an(In(f.parent)):Bp(In(f.parent)),k=Mp(f)?oOe(d):X_(f)?cOe(d):d,R=DFe(f,y,d),W=Mp(f)?oOe(d):X_(f)?cOe(d):d;l.decoratorSignature=Mhe(k,R,W);break}case 172:{let f=a;if(!ii(f.parent))break;let d=_w(f),y=Tl(f)?an(In(f.parent)):Bp(In(f.parent)),k=Em(f)?Bft(y,d):pe,R=DFe(f,y,d),W=Em(f)?zft(y,d):Jft(y,d);l.decoratorSignature=Mhe(k,R,W);break}}return l.decoratorSignature===Br?void 0:l.decoratorSignature}function Uft(r){let{parent:a}=r,l=wn(a);if(!l.decoratorSignature)switch(l.decoratorSignature=Br,a.kind){case 263:case 231:{let d=an(In(a)),y=Kl("target",d);l.decoratorSignature=ZR(void 0,void 0,[y],ri([d,vr]));break}case 169:{let f=a;if(!lc(f.parent)&&!(xc(f.parent)||X_(f.parent)&&ii(f.parent.parent))||xS(f.parent)===f)break;let d=xS(f.parent)?f.parent.parameters.indexOf(f)-1:f.parent.parameters.indexOf(f);w.assert(d>=0);let y=lc(f.parent)?an(In(f.parent.parent)):e7e(f.parent),k=lc(f.parent)?pe:t7e(f.parent),R=Fd(d),W=Kl("target",y),J=Kl("propertyKey",k),Z=Kl("parameterIndex",R);l.decoratorSignature=ZR(void 0,void 0,[W,J,Z],vr);break}case 174:case 177:case 178:case 172:{let f=a;if(!ii(f.parent))break;let d=e7e(f),y=Kl("target",d),k=t7e(f),R=Kl("propertyKey",k),W=ds(f)?vr:XMe(_w(f));if(!ds(a)||Em(a)){let Z=XMe(_w(f)),ke=Kl("descriptor",Z);l.decoratorSignature=ZR(void 0,void 0,[y,R,ke],ri([W,vr]))}else l.decoratorSignature=ZR(void 0,void 0,[y,R],ri([W,vr]));break}}return l.decoratorSignature===Br?void 0:l.decoratorSignature}function Rhe(r){return $?Uft(r):Gft(r)}function N9(r){let a=Wj(!0);return a!==Ht?(r=Jy(DN(r))||kt,Ny(a,[r])):kt}function PFe(r){let a=qMe(!0);return a!==Ht?(r=Jy(DN(r))||kt,Ny(a,[r])):kt}function M9(r,a){let l=N9(a);return l===kt?($e(r,jf(r)?p.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:p.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Ke):(wme(!0)||$e(r,jf(r)?p.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:p.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 Vft(r){let a=da(0,"NewTargetExpression"),l=da(4,"target",8);l.parent=a,l.links.type=r;let f=ea([l]);return a.members=f,tc(a,f,qe,qe,qe)}function aX(r,a){if(!r.body)return Ke;let l=Kc(r),f=(l&2)!==0,d=(l&1)!==0,y,k,R,W=vr;if(r.body.kind!==241)y=Ec(r.body,a&&a&-9),f&&(y=DN(j9(y,!1,r,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(d){let J=MFe(r,a);J?J.length>0&&(y=ri(J,2)):W=ar;let{yieldTypes:Z,nextTypes:ke}=qft(r,a);k=pt(Z)?ri(Z,2):void 0,R=pt(ke)?ma(ke):void 0}else{let J=MFe(r,a);if(!J)return l&2?M9(r,ar):ar;if(J.length===0){let Z=BK(r,void 0),ke=Z&&(U9(Z,l)||vr).flags&32768?pe:vr;return l&2?M9(r,ke):ke}y=ri(J,2)}if(y||k||R){if(k&&wK(r,k,3),y&&wK(r,y,1),R&&wK(r,R,2),y&&dm(y)||k&&dm(k)||R&&dm(R)){let J=rhe(r),Z=J?J===yp(r)?d?void 0:y:JK(Za(J),r,void 0):void 0;d?(k=dge(k,Z,0,f),y=dge(y,Z,1,f),R=dge(R,Z,2,f)):y=zct(y,Z,f)}k&&(k=Rf(k)),y&&(y=Rf(y)),R&&(R=Rf(R))}return d?oX(k||ar,y||W,R||u8e(2,r)||kt,f):f?N9(y||W):y||W}function oX(r,a,l,f){let d=f?Dc:$c,y=d.getGlobalGeneratorType(!1);if(r=d.resolveIterationType(r,void 0)||kt,a=d.resolveIterationType(a,void 0)||kt,y===Ht){let k=d.getGlobalIterableIteratorType(!1);return k!==Ht?dN(k,[r,a,l]):(d.getGlobalIterableIteratorType(!0),Oa)}return dN(y,[r,a,l])}function qft(r,a){let l=[],f=[],d=(Kc(r)&2)!==0;return Fte(r.body,y=>{let k=y.expression?rs(y.expression,a):j;Sp(l,AFe(y,k,Fe,d));let R;if(y.asteriskToken){let W=bX(k,d?19:17,y.expression);R=W&&W.nextType}else R=P_(y,void 0);R&&Sp(f,R)}),{yieldTypes:l,nextTypes:f}}function AFe(r,a,l,f){let d=r.expression||r,y=r.asteriskToken?Qv(f?19:17,a,l,d):a;return f?lw(y,d,r.asteriskToken?p.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:p.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):y}function EFe(r,a,l){let f=0;for(let d=0;d<l.length;d++){let y=d<r||d>=a?l[d]:void 0;f|=y!==void 0?Qse.get(y)||32768:0}return f}function NFe(r){let a=wn(r);if(a.isExhaustive===void 0){a.isExhaustive=0;let l=$ft(r);a.isExhaustive===0&&(a.isExhaustive=l)}else a.isExhaustive===0&&(a.isExhaustive=!1);return a.isExhaustive}function $ft(r){if(r.expression.kind===221){let f=FRe(r);if(!f)return!1;let d=ug(Ec(r.expression.expression)),y=EFe(0,0,f);return d.flags&3?(556800&y)===556800:!Vp(d,k=>zD(k,y)===y)}let a=ug(Ec(r.expression));if(!AR(a))return!1;let l=EK(r);return!l.length||pt(l,jct)?!1:jlt(ac(a,f_),l)}function Fhe(r){return r.endFlowNode&&f9(r.endFlowNode)}function MFe(r,a){let l=Kc(r),f=[],d=Fhe(r),y=!1;if(D0(r.body,k=>{let R=k.expression;if(R){if(R=Ka(R,!0),l&2&&R.kind===223&&(R=Ka(R.expression,!0)),R.kind===213&&R.expression.kind===80&&Ec(R.expression).symbol===Va(r.symbol)&&(!O0(r.symbol.valueDeclaration)||Wge(R.expression))){y=!0;return}let W=Ec(R,a&&a&-9);l&2&&(W=DN(j9(W,!1,r,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),W.flags&131072&&(y=!0),Sp(f,W)}else d=!0}),!(f.length===0&&!d&&(y||Hft(r))))return te&&f.length&&d&&!(mg(r)&&f.some(k=>k.symbol===r.symbol))&&Sp(f,pe),f}function Hft(r){switch(r.kind){case 218:case 219:return!0;case 174:return r.parent.kind===210;default:return!1}}function Qft(r){switch(r.kind){case 176:case 177:case 178:return}if(Kc(r)!==0)return;let l;if(r.body&&r.body.kind!==241)l=r.body;else if(D0(r.body,d=>{if(l||!d.expression)return!0;l=d.expression})||!l||Fhe(r))return;return Kft(r,l)}function Kft(r,a){if(a=Ka(a,!0),!!(Ec(a).flags&16))return or(r.parameters,(f,d)=>{let y=an(f.symbol);if(!y||y.flags&16||!je(f.name)||LR(f.symbol)||Tg(f))return;let k=Xft(r,a,f,y);if(k)return yR(1,Li(f.name.escapedText),d,k)})}function Xft(r,a,l,f){let d=$w(a)&&a.flowNode||a.parent.kind===253&&a.parent.flowNode||Ag(2,void 0,void 0),y=Ag(32,a,d),k=zy(l.name,f,f,r,y);if(k===f)return;let R=Ag(64,a,d);return zy(l.name,f,k,r,R).flags&131072?k:void 0}function Ohe(r,a){n(l);return;function l(){let f=Kc(r),d=a&&U9(a,f);if(d&&(zc(d,16384)||d.flags&32769)||r.kind===173||Tc(r.body)||r.body.kind!==241||!Fhe(r))return;let y=r.flags&1024,k=Wf(r)||r;if(d&&d.flags&131072)$e(k,p.A_function_returning_never_cannot_have_a_reachable_end_point);else if(d&&!y)$e(k,p.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(d&&te&&!Hs(pe,d))$e(k,p.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(F.noImplicitReturns){if(!d){if(!y)return;let R=Za(yp(r));if(IOe(r,R))return}$e(k,p.Not_all_code_paths_return_a_value)}}}function RFe(r,a){if(w.assert(r.kind!==174||ed(r)),uw(r),Ao(r)&&PN(r,r.name),a&&a&4&&vp(r)){if(!Wf(r)&&!jO(r)){let f=BR(r);if(f&&vb(Za(f))){let d=wn(r);if(d.contextFreeType)return d.contextFreeType;let y=aX(r,a),k=Gh(void 0,void 0,void 0,qe,y,void 0,0,64),R=tc(r.symbol,E,[k],qe,qe);return R.objectFlags|=262144,d.contextFreeType=R}}return fo}return!MX(r)&&r.kind===218&&Sye(r),Yft(r,a),an(In(r))}function Yft(r,a){let l=wn(r);if(!(l.flags&64)){let f=BR(r);if(!(l.flags&64)){l.flags|=64;let d=_l(Bs(an(In(r)),0));if(!d)return;if(vp(r))if(f){let y=LT(r),k;if(a&&a&2){wFe(d,f,y);let R=VR(f);R&&R.flags&262144&&(k=MT(f,y.nonFixingMapper))}k||(k=y?MT(f,y.mapper):f),Eft(d,k)}else Nft(d);else if(f&&!r.typeParameters&&f.parameters.length>r.parameters.length){let y=LT(r);a&&a&2&&wFe(d,f,y)}if(f&&!RD(r)&&!d.resolvedReturnType){let y=aX(r,a);d.resolvedReturnType||(d.resolvedReturnType=y)}QR(r)}}}function Zft(r){w.assert(r.kind!==174||ed(r));let a=Kc(r),l=RD(r);if(Ohe(r,l),r.body)if(Wf(r)||Za(yp(r)),r.body.kind===241)ka(r.body);else{let f=rs(r.body),d=l&&U9(l,a);d&&SX(r,d,r.body,r.body,f)}}function cX(r,a,l,f=!1){if(!Hs(a,zs)){let d=f&&IN(a);return Dv(r,!!d&&Hs(d,zs),l),!1}return!0}function ept(r){if(!qs(r)||!uk(r))return!1;let a=Ec(r.arguments[2]);if(ol(a,"value")){let d=ca(a,"writable"),y=d&&an(d);if(!y||y===Pr||y===$r)return!0;if(d&&d.valueDeclaration&&hl(d.valueDeclaration)){let k=d.valueDeclaration.initializer,R=rs(k);if(R===Pr||R===$r)return!0}return!1}return!ca(a,"set")}function ym(r){return!!(kc(r)&8||r.flags&4&&Ap(r)&8||r.flags&3&&she(r)&6||r.flags&98304&&!(r.flags&65536)||r.flags&8||pt(r.declarations,ept))}function FFe(r,a,l){var f,d;if(l===0)return!1;if(ym(a)){if(a.flags&4&&Oo(r)&&r.expression.kind===110){let y=TN(r);if(!(y&&(y.kind===176||mg(y))))return!0;if(a.valueDeclaration){let k=vn(a.valueDeclaration),R=y.parent===a.valueDeclaration.parent,W=y===a.valueDeclaration.parent,J=k&&((f=a.parent)==null?void 0:f.valueDeclaration)===y.parent,Z=k&&((d=a.parent)==null?void 0:d.valueDeclaration)===y;return!(R||W||J||Z)}}return!0}if(Oo(r)){let y=Ka(r.expression);if(y.kind===80){let k=wn(y).resolvedSymbol;if(k.flags&2097152){let R=dp(k);return!!R&&R.kind===274}}}return!1}function $R(r,a,l){let f=Wc(r,39);return f.kind!==80&&!Oo(f)?($e(r,a),!1):f.flags&64?($e(r,l),!1):!0}function tpt(r){rs(r.expression);let a=Ka(r.expression);if(!Oo(a))return $e(a,p.The_operand_of_a_delete_operator_must_be_a_property_reference),Ut;Nn(a)&&ji(a.name)&&$e(a,p.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);let l=wn(a),f=nf(l.resolvedSymbol);return f&&(ym(f)?$e(a,p.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):rpt(a,f)),Ut}function rpt(r,a){let l=an(a);te&&!(l.flags&131075)&&!(ve?a.flags&16777216:mm(l,16777216))&&$e(r,p.The_operand_of_a_delete_operator_must_be_optional)}function npt(r){return rs(r.expression),tN}function ipt(r){return uw(r),j}function OFe(r){let a=!1,l=NF(r);if(l&&Nc(l)){let f=B0(r)?p.await_expression_cannot_be_used_inside_a_class_static_block:p.await_using_statements_cannot_be_used_inside_a_class_static_block;$e(r,f),a=!0}else if(!(r.flags&65536))if(RF(r)){let f=Fr(r);if(!Sb(f)){let d;if(!jw(f,F)){d??(d=Cm(f,r.pos));let y=B0(r)?p.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:p.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=kl(f,d.start,d.length,y);za.add(k),a=!0}switch(G){case 100:case 101:case 199:if(f.impliedNodeFormat===1){d??(d=Cm(f,r.pos)),za.add(kl(f,d.start,d.length,p.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(B>=4)break;default:d??(d=Cm(f,r.pos));let y=B0(r)?p.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:p.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;za.add(kl(f,d.start,d.length,y)),a=!0;break}}}else{let f=Fr(r);if(!Sb(f)){let d=Cm(f,r.pos),y=B0(r)?p.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:p.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,k=kl(f,d.start,d.length,y);if(l&&l.kind!==176&&(Kc(l)&2)===0){let R=cn(l,p.Did_you_mean_to_mark_this_function_as_async);Xs(k,R)}za.add(k),a=!0}}return B0(r)&&Qge(r)&&($e(r,p.await_expressions_cannot_be_used_in_a_parameter_initializer),a=!0),a}function spt(r){n(()=>OFe(r));let a=rs(r.expression),l=j9(a,!0,r,p.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return l===a&&!We(l)&&!(a.flags&3)&&Iv(!1,cn(r,p.await_has_no_effect_on_the_type_of_this_expression)),l}function apt(r){let a=rs(r.operand);if(a===Gt)return Gt;switch(r.operand.kind){case 9:switch(r.operator){case 41:return rw(Fd(-r.operand.text));case 40:return rw(Fd(+r.operand.text))}break;case 10:if(r.operator===41)return rw(Vj({negative:!0,base10Value:wA(r.operand.text)}))}switch(r.operator){case 40:case 41:case 55:return pg(a,r.operand),R9(a,12288)&&$e(r.operand,p.The_0_operator_cannot_be_applied_to_type_symbol,sa(r.operator)),r.operator===40?(R9(a,2112)&&$e(r.operand,p.Operator_0_cannot_be_applied_to_type_1,sa(r.operator),tn(Ly(a))),Qt):Lhe(a);case 54:Zhe(a,r.operand);let l=zD(a,12582912);return l===4194304?Pr:l===8388608?it:Ut;case 46:case 47:return cX(r.operand,pg(a,r.operand),p.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&$R(r.operand,p.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,p.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Lhe(a)}return Ke}function opt(r){let a=rs(r.operand);return a===Gt?Gt:(cX(r.operand,pg(a,r.operand),p.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&$R(r.operand,p.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,p.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Lhe(a))}function Lhe(r){return zc(r,2112)?Tu(r,3)||zc(r,296)?zs:en:Qt}function R9(r,a){if(zc(r,a))return!0;let l=ug(r);return!!l&&zc(l,a)}function zc(r,a){if(r.flags&a)return!0;if(r.flags&3145728){let l=r.types;for(let f of l)if(zc(f,a))return!0}return!1}function Tu(r,a,l){return r.flags&a?!0:l&&r.flags&114691?!1:!!(a&296)&&Hs(r,Qt)||!!(a&2112)&&Hs(r,en)||!!(a&402653316)&&Hs(r,ut)||!!(a&528)&&Hs(r,Ut)||!!(a&16384)&&Hs(r,vr)||!!(a&131072)&&Hs(r,ar)||!!(a&65536)&&Hs(r,jt)||!!(a&32768)&&Hs(r,pe)||!!(a&4096)&&Hs(r,Ot)||!!(a&67108864)&&Hs(r,kr)}function HR(r,a,l){return r.flags&1048576?Oi(r.types,f=>HR(f,a,l)):Tu(r,a,l)}function lX(r){return!!(Mn(r)&16)&&!!r.symbol&&jhe(r.symbol)}function jhe(r){return(r.flags&128)!==0}function Whe(r){let a=kOe("hasInstance");if(HR(r,67108864)){let l=ca(r,a);if(l){let f=an(l);if(f&&Bs(f,0).length!==0)return f}}}function cpt(r,a,l,f,d){if(l===Gt||f===Gt)return Gt;!Se(l)&&HR(l,402784252)&&$e(r,p.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),w.assert(uO(r.parent));let y=$D(r.parent,void 0,d);if(y===pn)return Gt;let k=Za(y);return Fu(k,Ut,a,p.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),Ut}function lpt(r){return Vp(r,a=>a===Ba||!!(a.flags&2097152)&&Kg(ug(a)))}function upt(r,a,l,f){if(l===Gt||f===Gt)return Gt;if(ji(r)){if((B<zl.PrivateNamesAndClassStaticBlocks||B<zl.ClassAndClassElementDecorators||!K)&&Wl(r,2097152),!wn(r).resolvedSymbol&&su(r)){let d=_he(r,f.symbol,!0);z8e(r,f,d)}}else Fu(pg(l,r),si,r);return Fu(pg(f,a),kr,a)&&lpt(f)&&$e(a,p.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,tn(f)),Ut}function _pt(r,a,l){let f=r.properties;if(te&&f.length===0)return pg(a,r);for(let d=0;d<f.length;d++)LFe(r,a,d,f,l);return a}function LFe(r,a,l,f,d=!1){let y=r.properties,k=y[l];if(k.kind===303||k.kind===304){let R=k.name,W=My(R);if(Ep(W)){let ke=Np(W),he=ca(a,ke);he&&(x9(he,k,d),ohe(k,!1,!0,a,he))}let J=sf(a,W,32|(ow(k)?16:0),R),Z=Ei(k,J);return Nx(k.kind===304?k:k.initializer,Z)}else if(k.kind===305)if(l<y.length-1)$e(k,p.A_rest_element_must_be_last_in_a_destructuring_pattern);else{B<zl.ObjectSpreadRest&&Wl(k,4);let R=[];if(f)for(let J of f)xh(J)||R.push(J.name);let W=Yt(a,R,a.symbol);return pw(f,p.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),Nx(k.expression,W)}else $e(k,p.Property_assignment_expected)}function fpt(r,a,l){let f=r.elements;B<zl.DestructuringAssignment&&F.downlevelIteration&&Wl(r,512);let d=Qv(193,a,pe,r)||Ke,y=F.noUncheckedIndexedAccess?void 0:d;for(let k=0;k<f.length;k++){let R=d;r.elements[k].kind===230&&(R=y=y??(Qv(65,a,pe,r)||Ke)),jFe(r,a,k,R,l)}return a}function jFe(r,a,l,f,d){let y=r.elements,k=y[l];if(k.kind!==232){if(k.kind!==230){let R=Fd(l);if($v(a)){let W=32|(ow(k)?16:0),J=db(a,R,W,UR(k,R))||Ke,Z=ow(k)?Up(J,524288):J,ke=Ei(k,Z);return Nx(k,ke,d)}return Nx(k,f,d)}if(l<y.length-1)$e(k,p.A_rest_element_must_be_last_in_a_destructuring_pattern);else{let R=k.expression;if(R.kind===226&&R.operatorToken.kind===64)$e(R.operatorToken,p.A_rest_element_cannot_have_an_initializer);else{pw(r.elements,p.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);let W=of(a,Pa)?ac(a,J=>mN(J,l)):Ru(f);return Nx(R,W,d)}}}}function Nx(r,a,l,f){let d;if(r.kind===304){let y=r;y.objectAssignmentInitializer&&(te&&!mm(rs(y.objectAssignmentInitializer),16777216)&&(a=Up(a,524288)),gpt(y.name,y.equalsToken,y.objectAssignmentInitializer,l)),d=r.name}else d=r;return d.kind===226&&d.operatorToken.kind===64&&(De(d,l),d=d.left,te&&(a=Up(a,524288))),d.kind===210?_pt(d,a,f):d.kind===209?fpt(d,a,l):ppt(d,a,l)}function ppt(r,a,l){let f=rs(r,l),d=r.parent.kind===305?p.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:p.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,y=r.parent.kind===305?p.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:p.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return $R(r,d,y)&&FT(a,f,r,r),Nw(r)&&Wl(r.parent,1048576),a}function F9(r){switch(r=Ka(r),r.kind){case 80:case 11:case 14:case 215:case 228:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 218:case 231:case 219:case 209:case 210:case 221:case 235:case 285:case 284:return!0;case 227:return F9(r.whenTrue)&&F9(r.whenFalse);case 226:return ly(r.operatorToken.kind)?!1:F9(r.left)&&F9(r.right);case 224:case 225:switch(r.operator){case 54:case 40:case 41:case 55:return!0}return!1;case 222:case 216:case 234:default:return!1}}function Bhe(r,a){return(a.flags&98304)!==0||uK(r,a)}function dpt(){let r=S7(a,l,f,d,y,k);return(he,Ze)=>{let mt=r(he,Ze);return w.assertIsDefined(mt),mt};function a(he,Ze,mt){return Ze?(Ze.stackIndex++,Ze.skip=!1,J(Ze,void 0),ke(Ze,void 0)):Ze={checkMode:mt,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},un(he)&&c2(he)?(Ze.skip=!0,ke(Ze,rs(he.right,mt)),Ze):(mpt(he),he.operatorToken.kind===64&&(he.left.kind===210||he.left.kind===209)&&(Ze.skip=!0,ke(Ze,Nx(he.left,rs(he.right,mt),mt,he.right.kind===110))),Ze)}function l(he,Ze,mt){if(!Ze.skip)return R(Ze,he)}function f(he,Ze,mt){if(!Ze.skip){let Ct=Z(Ze);w.assertIsDefined(Ct),J(Ze,Ct),ke(Ze,void 0);let lr=he.kind;if(cO(lr)){let rr=mt.parent;for(;rr.kind===217||b4(rr);)rr=rr.parent;(lr===56||qb(rr))&&Yhe(mt.left,Ct,qb(rr)?rr.thenStatement:void 0),v4(lr)&&Zhe(Ct,mt.left)}}}function d(he,Ze,mt){if(!Ze.skip)return R(Ze,he)}function y(he,Ze){let mt;if(Ze.skip)mt=Z(Ze);else{let Ct=W(Ze);w.assertIsDefined(Ct);let lr=Z(Ze);w.assertIsDefined(lr),mt=WFe(he.left,he.operatorToken,he.right,Ct,lr,Ze.checkMode,he)}return Ze.skip=!1,J(Ze,void 0),ke(Ze,void 0),Ze.stackIndex--,mt}function k(he,Ze,mt){return ke(he,Ze),he}function R(he,Ze){if(vn(Ze))return Ze;ke(he,rs(Ze,he.checkMode))}function W(he){return he.typeStack[he.stackIndex]}function J(he,Ze){he.typeStack[he.stackIndex]=Ze}function Z(he){return he.typeStack[he.stackIndex+1]}function ke(he,Ze){he.typeStack[he.stackIndex+1]=Ze}}function mpt(r){let{left:a,operatorToken:l,right:f}=r;if(l.kind===61){vn(a)&&(a.operatorToken.kind===57||a.operatorToken.kind===56)&&Tr(a,p._0_and_1_operations_cannot_be_mixed_without_parentheses,sa(a.operatorToken.kind),sa(l.kind)),vn(f)&&(f.operatorToken.kind===57||f.operatorToken.kind===56)&&Tr(f,p._0_and_1_operations_cannot_be_mixed_without_parentheses,sa(f.operatorToken.kind),sa(l.kind));let d=Wc(a,63),y=uX(d);y!==3&&(r.parent.kind===226?$e(d,p.This_binary_expression_is_never_nullish_Are_you_missing_parentheses):y===1?$e(d,p.This_expression_is_always_nullish):$e(d,p.Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish))}}function uX(r){switch(r=Wc(r),r.kind){case 223:case 213:case 215:case 212:case 236:case 214:case 211:case 229:case 110:return 3;case 226:switch(r.operatorToken.kind){case 64:case 61:case 78:case 57:case 76:case 56:case 77:return 3;case 28:return uX(r.right)}return 2;case 227:return uX(r.whenTrue)|uX(r.whenFalse);case 106:return 1;case 80:return Hu(r)===le?1:3}return 2}function gpt(r,a,l,f,d){let y=a.kind;if(y===64&&(r.kind===210||r.kind===209))return Nx(r,rs(l,f),f,l.kind===110);let k;v4(y)?k=n8(r,f):k=rs(r,f);let R=rs(l,f);return WFe(r,a,l,k,R,f,d)}function WFe(r,a,l,f,d,y,k){let R=a.kind;switch(R){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===Gt||d===Gt)return Gt;f=pg(f,r),d=pg(d,l);let pr;if(f.flags&528&&d.flags&528&&(pr=he(a.kind))!==void 0)return $e(k||a,p.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,sa(a.kind),sa(pr)),Qt;{let Qn=cX(r,f,p.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Wi=cX(l,d,p.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Dn;if(Tu(f,3)&&Tu(d,3)||!(zc(f,2112)||zc(d,2112)))Dn=Qt;else if(W(f,d)){switch(R){case 50:case 73:lr();break;case 43:case 68:B<3&&$e(k,p.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}Dn=en}else lr(W),Dn=Ke;if(Qn&&Wi)switch(Ze(Dn),R){case 48:case 71:case 49:case 72:case 50:case 73:let hs=tt(l);typeof hs.value=="number"&&Math.abs(hs.value)>=32&&im(_v(Td(l.parent.parent)),k||a,p.This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2,oc(r),sa(R),hs.value%32);break;default:break}return Dn}case 40:case 65:if(f===Gt||d===Gt)return Gt;!Tu(f,402653316)&&!Tu(d,402653316)&&(f=pg(f,r),d=pg(d,l));let ir;return Tu(f,296,!0)&&Tu(d,296,!0)?ir=Qt:Tu(f,2112,!0)&&Tu(d,2112,!0)?ir=en:Tu(f,402653316,!0)||Tu(d,402653316,!0)?ir=ut:(Se(f)||Se(d))&&(ir=We(f)||We(d)?Ke:Fe),ir&&!ke(R)?ir:ir?(R===65&&Ze(ir),ir):(lr((Wi,Dn)=>Tu(Wi,402655727)&&Tu(Dn,402655727)),Fe);case 30:case 32:case 33:case 34:return ke(R)&&(f=fge(pg(f,r)),d=fge(pg(d,l)),Ct((Qn,Wi)=>{if(Se(Qn)||Se(Wi))return!0;let Dn=Hs(Qn,zs),hs=Hs(Wi,zs);return Dn&&hs||!Dn&&!hs&&Kj(Qn,Wi)})),Ut;case 35:case 36:case 37:case 38:if(!(y&&y&64)){if((FB(r)||FB(l))&&(!un(r)||R===37||R===38)){let Qn=R===35||R===37;$e(k,p.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,Qn?"false":"true")}rn(k,R,r,l),Ct((Qn,Wi)=>Bhe(Qn,Wi)||Bhe(Wi,Qn))}return Ut;case 104:return cpt(r,l,f,d,y);case 103:return upt(r,l,f,d);case 56:case 77:{let Qn=mm(f,4194304)?ri([Uct(te?f:Ly(d)),d]):f;return R===77&&Ze(d),Qn}case 57:case 76:{let Qn=mm(f,8388608)?ri([jy(cRe(f)),d],2):f;return R===76&&Ze(d),Qn}case 61:case 78:{let Qn=mm(f,262144)?ri([jy(f),d],2):f;return R===78&&Ze(d),Qn}case 64:let yn=vn(r.parent)?Vc(r.parent):0;return J(yn,d),mt(yn)?((!(d.flags&524288)||yn!==2&&yn!==6&&!Oy(d)&&!Mge(d)&&!(Mn(d)&1))&&Ze(d),f):(Ze(d),d);case 28:if(!F.allowUnreachableCode&&F9(r)&&!Z(r.parent)){let Qn=Fr(r),Wi=Qn.text,Dn=ha(Wi,r.pos);Qn.parseDiagnostics.some(Gs=>Gs.code!==p.JSX_expressions_must_have_one_parent_element.code?!1:SB(Gs,Dn))||$e(r,p.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return d;default:return w.fail()}function W(pr,ir){return Tu(pr,2112)&&Tu(ir,2112)}function J(pr,ir){if(pr===2)for(let yn of Gv(ir)){let Qn=an(yn);if(Qn.symbol&&Qn.symbol.flags&32){let Wi=yn.escapedName,Dn=_t(yn.valueDeclaration,Wi,788968,void 0,!1);Dn?.declarations&&Dn.declarations.some(Ek)&&(wy(Dn,p.Duplicate_identifier_0,Li(Wi),yn),wy(yn,p.Duplicate_identifier_0,Li(Wi),Dn))}}}function Z(pr){return pr.parent.kind===217&&L_(pr.left)&&pr.left.text==="0"&&(qs(pr.parent.parent)&&pr.parent.parent.expression===pr.parent||pr.parent.parent.kind===215)&&(Oo(pr.right)||je(pr.right)&&pr.right.escapedText==="eval")}function ke(pr){let ir=R9(f,12288)?r:R9(d,12288)?l:void 0;return ir?($e(ir,p.The_0_operator_cannot_be_applied_to_type_symbol,sa(pr)),!1):!0}function he(pr){switch(pr){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function Ze(pr){ly(R)&&n(ir);function ir(){let yn=f;if(lE(a.kind)&&r.kind===211&&(yn=KK(r,void 0,!0)),$R(r,p.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,p.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let Qn;if(ve&&Nn(r)&&zc(pr,32768)){let Wi=ol(ku(r.expression),r.name.escapedText);fK(pr,Wi)&&(Qn=p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}FT(pr,yn,r,l,Qn)}}}function mt(pr){var ir;switch(pr){case 2:return!0;case 1:case 5:case 6:case 3:case 4:let yn=Vf(r),Qn=c2(l);return!!Qn&&Sa(Qn)&&!!((ir=yn?.exports)!=null&&ir.size);default:return!1}}function Ct(pr){return pr(f,d)?!1:(lr(pr),!0)}function lr(pr){let ir=!1,yn=k||a;if(pr){let Gs=Jy(f),co=Jy(d);ir=!(Gs===f&&co===d)&&!!(Gs&&co)&&pr(Gs,co)}let Qn=f,Wi=d;!ir&&pr&&([Qn,Wi]=hpt(f,d,pr));let[Dn,hs]=A1(Qn,Wi);rr(yn,ir,Dn,hs)||Dv(yn,ir,p.Operator_0_cannot_be_applied_to_types_1_and_2,sa(a.kind),Dn,hs)}function rr(pr,ir,yn,Qn){switch(a.kind){case 37:case 35:case 38:case 36:return Dv(pr,ir,p.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,yn,Qn);default:return}}function rn(pr,ir,yn,Qn){let Wi=Kr(Ka(yn)),Dn=Kr(Ka(Qn));if(Wi||Dn){let hs=$e(pr,p.This_condition_will_always_return_0,sa(ir===37||ir===35?97:112));if(Wi&&Dn)return;let Gs=ir===38||ir===36?sa(54):"",co=Wi?Qn:yn,As=Ka(co);Xs(hs,cn(co,p.Did_you_mean_0,`${Gs}Number.isNaN(${mo(As)?df(As):"..."})`))}}function Kr(pr){if(je(pr)&&pr.escapedText==="NaN"){let ir=Kat();return!!ir&&ir===Hu(pr)}return!1}}function hpt(r,a,l){let f=r,d=a,y=Ly(r),k=Ly(a);return l(y,k)||(f=y,d=k),[f,d]}function ypt(r){n(ke);let a=ep(r);if(!a)return Fe;let l=Kc(a);if(!(l&1))return Fe;let f=(l&2)!==0;r.asteriskToken&&(f&&B<zl.AsyncGenerators&&Wl(r,26624),!f&&B<zl.Generators&&F.downlevelIteration&&Wl(r,256));let d=RD(a);d&&d.flags&1048576&&(d=cl(d,he=>Uhe(he,l,void 0)));let y=d&&aye(d,f),k=y&&y.yieldType||Fe,R=y&&y.nextType||Fe,W=r.expression?rs(r.expression):j,J=AFe(r,W,R,f);if(d&&J&&FT(J,k,r.expression||r,r.expression),r.asteriskToken)return rye(f?19:17,1,W,r.expression)||Fe;if(d)return Kv(2,d,f)||Fe;let Z=u8e(2,a);return Z||(Z=Fe,n(()=>{if(de&&!gne(r)){let he=P_(r,void 0);(!he||Se(he))&&$e(r,p.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),Z;function ke(){r.flags&16384||eu(r,p.A_yield_expression_is_only_allowed_in_a_generator_body),Qge(r)&&$e(r,p.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function vpt(r,a){let l=n8(r.condition,a);Yhe(r.condition,l,r.whenTrue);let f=rs(r.whenTrue,a),d=rs(r.whenFalse,a);return ri([f,d],2)}function BFe(r){let a=r.parent;return b_(a)&&BFe(a)||wo(a)&&a.argumentExpression===r}function bpt(r){let a=[r.head.text],l=[];for(let d of r.templateSpans){let y=rs(d.expression);R9(y,12288)&&$e(d.expression,p.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),a.push(d.literal.text),l.push(Hs(y,ta)?y:ut)}let f=r.parent.kind!==215&&tt(r).value;return f?rw(V_(f)):CN(r)||BFe(r)||Vp(P_(r,void 0)||kt,Spt)?hx(a,l):ut}function Spt(r){return!!(r.flags&134217856||r.flags&58982400&&zc(Su(r)||kt,402653316))}function Tpt(r){return WS(r)&&!Pk(r.parent)?r.parent.parent:r}function HD(r,a,l,f){let d=Tpt(r);h9(d,a,!1),Lut(d,l);let y=rs(r,f|1|(l?2:0));l&&l.intraExpressionInferenceSites&&(l.intraExpressionInferenceSites=void 0);let k=zc(y,2944)&&_X(y,JK(a,r,void 0))?f_(y):y;return jut(),WR(),k}function Ec(r,a){if(a)return rs(r,a);let l=wn(r);if(!l.resolvedType){let f=Be,d=bn;Be=rt,bn=void 0,l.resolvedType=rs(r,a),bn=d,Be=f}return l.resolvedType}function zFe(r){return r=Ka(r,!0),r.kind===216||r.kind===234||zS(r)}function xN(r,a,l){let f=X6(r);if(un(r)){let y=JO(r);if(y)return Ihe(f,y,a)}let d=Ghe(f)||(l?HD(f,l,void 0,a||0):Ec(f,a));if(Bi(Da(r)?Kx(r):r)){if(r.name.kind===206&&Hv(d))return kpt(d,r.name);if(r.name.kind===207&&Pa(d))return xpt(d,r.name)}return d}function kpt(r,a){let l;for(let y of a.elements)if(y.initializer){let k=JFe(y);k&&!ca(r,k)&&(l=jr(l,y))}if(!l)return r;let f=ea();for(let y of Gv(r))f.set(y.escapedName,y);for(let y of l){let k=da(16777220,JFe(y));k.links.type=He(y,!1,!1),f.set(k.escapedName,k)}let d=tc(r.symbol,f,qe,qe,Mu(r));return d.objectFlags=r.objectFlags,d}function JFe(r){let a=My(r.propertyName||r.name);return Ep(a)?Np(a):void 0}function xpt(r,a){if(r.target.combinedFlags&12||Vv(r)>=a.elements.length)return r;let l=a.elements,f=DT(r).slice(),d=r.target.elementFlags.slice();for(let y=Vv(r);y<l.length;y++){let k=l[y];(y<l.length-1||!(k.kind===208&&k.dotDotDotToken))&&(f.push(!Fl(k)&&ow(k)?He(k,!1,!1):Fe),d.push(2),!Fl(k)&&!ow(k)&&V1(k,Fe))}return Hg(f,d,r.target.readonly)}function zhe(r,a){let l=GFe(r,a);if(un(r)){if(tRe(l))return V1(r,Fe),Fe;if(yK(l))return V1(r,wl),wl}return l}function GFe(r,a){return zT(r)&6||L6(r)?a:U1(a)}function _X(r,a){if(a){if(a.flags&3145728){let l=a.types;return pt(l,f=>_X(r,f))}if(a.flags&58982400){let l=Su(a)||kt;return zc(l,4)&&zc(r,128)||zc(l,8)&&zc(r,256)||zc(l,64)&&zc(r,2048)||zc(l,4096)&&zc(r,8192)||_X(r,l)}return!!(a.flags&406847616&&zc(r,128)||a.flags&256&&zc(r,256)||a.flags&2048&&zc(r,2048)||a.flags&512&&zc(r,512)||a.flags&8192&&zc(r,8192))}return!1}function CN(r){let a=r.parent;return fS(a)&&vd(a.type)||zS(a)&&vd(kI(a))||whe(r)&&mx(P_(r,0))||(b_(a)||gu(a)||Rp(a))&&CN(a)||(hl(a)||Eu(a)||gI(a))&&CN(a.parent)}function wN(r,a,l){let f=rs(r,a,l);return CN(r)||Lte(r)?f_(f):zFe(r)?f:pge(f,JK(P_(r,void 0),r,void 0))}function UFe(r,a){return r.name.kind===167&&Od(r.name),wN(r.initializer,a)}function VFe(r,a){m7e(r),r.name.kind===167&&Od(r.name);let l=RFe(r,a);return qFe(r,l,a)}function qFe(r,a,l){if(l&&l&10){let f=GR(a,0,!0),d=GR(a,1,!0),y=f||d;if(y&&y.typeParameters){let k=$1(r,2);if(k){let R=GR(jy(k),f?0:1,!1);if(R&&!R.typeParameters){if(l&8)return $Fe(r,l),fo;let W=LT(r),J=W.signature&&Za(W.signature),Z=J&&Z8e(J);if(Z&&!Z.typeParameters&&!Oi(W.inferences,QD)){let ke=Dpt(W,y.typeParameters),he=hme(y,ke),Ze=hr(W.inferences,mt=>bge(mt.typeParameter));if(gge(he,R,(mt,Ct)=>{By(Ze,mt,Ct,0,!0)}),pt(Ze,QD)&&(hge(he,R,(mt,Ct)=>{By(Ze,mt,Ct)}),!wpt(W.inferences,Ze)))return Ipt(W.inferences,Ze),W.inferredTypeParameters=Ki(W.inferredTypeParameters,ke),gx(he)}return gx(eFe(y,R,W),ga(fp,ke=>ke&&hr(ke.inferences,he=>he.typeParameter)).slice())}}}}return a}function $Fe(r,a){if(a&2){let l=LT(r);l.flags|=4}}function QD(r){return!!(r.candidates||r.contraCandidates)}function Cpt(r){return!!(r.candidates||r.contraCandidates||pMe(r.typeParameter))}function wpt(r,a){for(let l=0;l<r.length;l++)if(QD(r[l])&&QD(a[l]))return!0;return!1}function Ipt(r,a){for(let l=0;l<r.length;l++)!QD(r[l])&&QD(a[l])&&(r[l]=a[l])}function Dpt(r,a){let l=[],f,d;for(let y of a){let k=y.symbol.escapedName;if(Jhe(r.inferredTypeParameters,k)||Jhe(l,k)){let R=Ppt(Ki(r.inferredTypeParameters,l),k),W=da(262144,R),J=wi(W);J.target=y,f=jr(f,y),d=jr(d,J),l.push(J)}else l.push(y)}if(d){let y=af(f,d);for(let k of d)k.mapper=y}return l}function Jhe(r,a){return pt(r,l=>l.symbol.escapedName===a)}function Ppt(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 d=1;;d++){let y=f+d;if(!Jhe(r,y))return y}}function HFe(r){let a=Ex(r);if(a&&!a.typeParameters)return Za(a)}function Apt(r){let a=rs(r.expression),l=ER(a,r.expression),f=HFe(a);return f&&TK(f,r,l!==a)}function ku(r){let a=Ghe(r);if(a)return a;if(r.flags&268435456&&bn){let d=bn[Ua(r)];if(d)return d}let l=qr,f=rs(r,64);if(qr!==l){let d=bn||(bn=[]);d[Ua(r)]=f,mne(r,r.flags|268435456)}return f}function Ghe(r){let a=Ka(r,!0);if(zS(a)){let l=kI(a);if(!vd(l))return Fi(l)}if(a=Ka(r),B0(a)){let l=Ghe(a.expression);return l?lw(l):void 0}if(qs(a)&&a.expression.kind!==108&&!R_(a,!0)&&!dFe(a))return ZT(a)?Apt(a):HFe(VD(a.expression));if(fS(a)&&!vd(a.type))return Fi(a.type);if(ek(r)||BP(r))return rs(r)}function O9(r){let a=wn(r);if(a.contextFreeType)return a.contextFreeType;h9(r,Fe,!1);let l=a.contextFreeType=rs(r,4);return WR(),l}function rs(r,a,l){var f,d;(f=_n)==null||f.push(_n.Phase.Check,"checkExpression",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath});let y=x;x=r,h=0;let k=Mpt(r,a,l),R=qFe(r,k,a);return lX(R)&&Ept(r,R),x=y,(d=_n)==null||d.pop(),R}function Ept(r,a){let l=r.parent.kind===211&&r.parent.expression===r||r.parent.kind===212&&r.parent.expression===r||(r.kind===80||r.kind===166)&&DX(r)||r.parent.kind===186&&r.parent.exprName===r||r.parent.kind===281;if(l||$e(r,p.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),F.isolatedModules||F.verbatimModuleSyntax&&l&&!_t(r,h_(r),2097152,void 0,!1,!0)){w.assert(!!(a.symbol.flags&128));let f=a.symbol.valueDeclaration,d=e.getRedirectReferenceForResolutionFromSourceOfProject(Fr(f).resolvedPath);f.flags&33554432&&!Bb(r)&&(!d||!R0(d.commandLine.options))&&$e(r,p.Cannot_access_ambient_const_enums_when_0_is_enabled,Ie)}}function Npt(r,a){if(Lf(r)){if(LJ(r))return Ihe(r.expression,jJ(r),a);if(zS(r))return yFe(r,a)}return rs(r.expression,a)}function Mpt(r,a,l){let f=r.kind;if(i)switch(f){case 231:case 218:case 219:i.throwIfCancellationRequested()}switch(f){case 80:return aut(r,a);case 81:return I_t(r);case 110:return m9(r);case 108:return WK(r);case 106:return we;case 15:case 11:return Cge(r)?Mt:rw(V_(r.text));case 9:return S7e(r),rw(Fd(+r.text));case 10:return Fht(r),rw(Vj({negative:!1,base10Value:wA(r.text)}));case 112:return it;case 97:return Pr;case 228:return bpt(r);case 14:return Xut(r);case 209:return S8e(r,a,l);case 210:return s_t(r,a);case 211:return KK(r,a);case 166:return j8e(r,a);case 212:return J_t(r,a);case 213:if(r.expression.kind===102)return bft(r);case 214:return vft(r,a);case 215:return Sft(r);case 217:return Npt(r,a);case 231:return kmt(r);case 218:case 219:return RFe(r,a);case 221:return npt(r);case 216:case 234:return Tft(r,a);case 235:return Cft(r);case 233:return bFe(r);case 238:return wft(r);case 236:return Ift(r);case 220:return tpt(r);case 222:return ipt(r);case 223:return spt(r);case 224:return apt(r);case 225:return opt(r);case 226:return De(r,a);case 227:return vpt(r,a);case 230:return Yut(r,a);case 232:return j;case 229:return ypt(r);case 237:return Zut(r);case 294:return b_t(r,a);case 284:return l_t(r,a);case 285:return o_t(r,a);case 288:return u_t(r);case 292:return f_t(r,a);case 286:w.fail("Shouldn't ever directly check a JsxOpeningElement")}return Ke}function QFe(r){Qh(r),r.expression&&eu(r.expression,p.Type_expected),ka(r.constraint),ka(r.default);let a=kT(In(r));Su(a),Zst(a)||$e(r.default,p.Type_parameter_0_has_a_circular_default,tn(a));let l=D_(a),f=wT(a);l&&f&&Fu(f,Mf(Hi(l,ET(a,f)),f),r.default,p.Type_0_does_not_satisfy_the_constraint_1),uw(r),n(()=>AN(r.name,p.Type_parameter_name_cannot_be_0))}function Rpt(r){var a,l;if(hu(r.parent)||ii(r.parent)||sd(r.parent)){let f=kT(In(r)),d=cge(f)&24576;if(d){let y=In(r.parent);if(sd(r.parent)&&!(Mn(Bo(y))&48))$e(r,p.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(d===8192||d===16384){(a=_n)==null||a.push(_n.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:Zl(Bo(y)),id:Zl(f)});let k=Zj(y,f,d===16384?ft:Oe),R=Zj(y,f,d===16384?Oe:ft),W=f;I=f,Fu(k,R,r,p.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),I=W,(l=_n)==null||l.pop()}}}}function KFe(r){Qh(r),J9(r);let a=ep(r);ei(r,31)&&(F.erasableSyntaxOnly&&$e(r,p.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),a.kind===176&&Zp(a.body)||$e(r,p.A_parameter_property_is_only_allowed_in_a_constructor_implementation),a.kind===176&&je(r.name)&&r.name.escapedText==="constructor"&&$e(r.name,p.constructor_cannot_be_used_as_a_parameter_property_name)),!r.initializer&&I2(r)&&Ws(r.name)&&a.body&&$e(r,p.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),r.name&&je(r.name)&&(r.name.escapedText==="this"||r.name.escapedText==="new")&&(a.parameters.indexOf(r)!==0&&$e(r,p.A_0_parameter_must_be_the_first_parameter,r.name.escapedText),(a.kind===176||a.kind===180||a.kind===185)&&$e(r,p.A_constructor_cannot_have_a_this_parameter),a.kind===219&&$e(r,p.An_arrow_function_cannot_have_a_this_parameter),(a.kind===177||a.kind===178)&&$e(r,p.get_and_set_accessors_cannot_declare_this_parameters)),r.dotDotDotToken&&!Ws(r.name)&&!Hs(Rd(an(r.symbol)),If)&&$e(r,p.A_rest_parameter_must_be_of_an_array_type)}function Fpt(r){let a=Opt(r);if(!a){$e(r,p.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}let l=yp(a),f=zp(l);if(!f)return;ka(r.type);let{parameterName:d}=r;if(f.kind!==0&&f.kind!==2){if(f.parameterIndex>=0){if(Gu(l)&&f.parameterIndex===l.parameters.length-1)$e(d,p.A_type_predicate_cannot_reference_a_rest_parameter);else if(f.type){let y=()=>Ps(void 0,p.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);Fu(f.type,an(l.parameters[f.parameterIndex]),r.type,void 0,y)}}else if(d){let y=!1;for(let{name:k}of a.parameters)if(Ws(k)&&XFe(k,d,f.parameterName)){y=!0;break}y||$e(r.parameterName,p.Cannot_find_parameter_0,f.parameterName)}}}function Opt(r){switch(r.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:let a=r.parent;if(r===a.type)return a}}function XFe(r,a,l){for(let f of r.elements){if(Fl(f))continue;let d=f.name;if(d.kind===80&&d.escapedText===l)return $e(a,p.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,l),!0;if((d.kind===207||d.kind===206)&&XFe(d,a,l))return!0}}function QR(r){r.kind===181?uht(r):(r.kind===184||r.kind===262||r.kind===185||r.kind===179||r.kind===176||r.kind===180)&&MX(r);let a=Kc(r);a&4||((a&3)===3&&B<zl.AsyncGenerators&&Wl(r,6144),(a&3)===2&&B<zl.AsyncFunctions&&Wl(r,64),(a&3)!==0&&B<zl.Generators&&Wl(r,128)),V9(y0(r)),bmt(r),or(r.parameters,KFe),r.type&&ka(r.type),n(l);function l(){Fdt(r);let f=Wf(r),d=f;if(un(r)){let y=Pb(r);if(y&&y.typeExpression&&yf(y.typeExpression.type)){let k=Ex(Fi(y.typeExpression));k&&k.declaration&&(f=Wf(k.declaration),d=y.typeExpression.type)}}if(de&&!f)switch(r.kind){case 180:$e(r,p.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:$e(r,p.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(f&&d){let y=Kc(r);if((y&5)===1){let k=Fi(f);k===vr?$e(d,p.A_generator_cannot_have_a_void_type_annotation):Uhe(k,y,d)}else(y&3)===2&&pdt(r,f,d)}r.kind!==181&&r.kind!==317&&bb(r)}}function Uhe(r,a,l){let f=Kv(0,r,(a&2)!==0)||Fe,d=Kv(1,r,(a&2)!==0)||f,y=Kv(2,r,(a&2)!==0)||kt,k=oX(f,d,y,!!(a&2));return Fu(k,r,l)}function Lpt(r){let a=new Map,l=new Map,f=new Map;for(let y of r.members)if(y.kind===176)for(let k of y.parameters)pf(k,y)&&!Ws(k.name)&&d(a,k.name,k.name.escapedText,3);else{let k=Ks(y),R=y.name;if(!R)continue;let W=ji(R),J=W&&k?16:0,Z=W?f:k?l:a,ke=R&&Cye(R);if(ke)switch(y.kind){case 177:d(Z,R,ke,1|J);break;case 178:d(Z,R,ke,2|J);break;case 172:d(Z,R,ke,3|J);break;case 174:d(Z,R,ke,8|J);break}}function d(y,k,R,W){let J=y.get(R);if(J)if((J&16)!==(W&16))$e(k,p.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,oc(k));else{let Z=!!(J&8),ke=!!(W&8);Z||ke?Z!==ke&&$e(k,p.Duplicate_identifier_0,oc(k)):J&W&-17?$e(k,p.Duplicate_identifier_0,oc(k)):y.set(R,J|W)}else y.set(R,W)}}function jpt(r){for(let a of r.members){let l=a.name;if(Ks(a)&&l){let d=Cye(l);switch(d){case"name":case"length":case"caller":case"arguments":if(K)break;case"prototype":let y=p.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,k=M1(In(r));$e(l,y,d,k);break}}}}function YFe(r){let a=new Map;for(let l of r.members)if(l.kind===171){let f,d=l.name;switch(d.kind){case 11:case 9:f=d.text;break;case 80:f=Ln(d);break;default:continue}a.get(f)?($e(vs(l.symbol.valueDeclaration),p.Duplicate_identifier_0,f),$e(l.name,p.Duplicate_identifier_0,f)):a.set(f,!0)}}function Vhe(r){if(r.kind===264){let l=In(r);if(l.declarations&&l.declarations.length>0&&l.declarations[0]!==r)return}let a=UQ(In(r));if(a?.declarations){let l=new Map;for(let f of a.declarations)W0(f)&&f.parameters.length===1&&f.parameters[0].type&&Ix(Fi(f.parameters[0].type),d=>{let y=l.get(Zl(d));y?y.declarations.push(f):l.set(Zl(d),{type:d,declarations:[f]})});l.forEach(f=>{if(f.declarations.length>1)for(let d of f.declarations)$e(d,p.Duplicate_index_signature_for_type_0,tn(f.type))})}}function ZFe(r){!Qh(r)&&!Nht(r)&&RX(r.name),J9(r),fX(r),ei(r,64)&&r.kind===172&&r.initializer&&$e(r,p.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,Co(r.name))}function Wpt(r){return ji(r.name)&&$e(r,p.Private_identifiers_are_not_allowed_outside_class_bodies),ZFe(r)}function Bpt(r){m7e(r)||RX(r.name),xc(r)&&r.asteriskToken&&je(r.name)&&Ln(r.name)==="constructor"&&$e(r.name,p.Class_constructor_may_not_be_a_generator),_Oe(r),ei(r,64)&&r.kind===174&&r.body&&$e(r,p.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Co(r.name)),ji(r.name)&&!su(r)&&$e(r,p.Private_identifiers_are_not_allowed_outside_class_bodies),fX(r)}function fX(r){if(ji(r.name)&&(B<zl.PrivateNamesAndClassStaticBlocks||B<zl.ClassAndClassElementDecorators||!K)){for(let a=Gd(r);a;a=Gd(a))wn(a).flags|=1048576;if(ml(r.parent)){let a=Gge(r.parent);a&&(wn(r.name).flags|=32768,wn(a).flags|=4096)}}}function zpt(r){Qh(r),Es(r,ka)}function Jpt(r){QR(r),Aht(r)||Eht(r),ka(r.body);let a=In(r),l=Yo(a,r.kind);if(r===l&&dX(a),Tc(r.body))return;n(d);return;function f(y){return Zu(y)?!0:y.kind===172&&!Ks(y)&&!!y.initializer}function d(){let y=r.parent;if(TS(y)){Uge(r.parent,y);let k=Vge(y),R=i8e(r.body);if(R){if(k&&$e(R,p.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!U&&(pt(r.parent.members,f)||pt(r.parameters,J=>ei(J,31))))if(!Gpt(R,r.body))$e(R,p.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 Z of r.body.statements){if($l(Z)&&ok(Wc(Z.expression))){J=Z;break}if(eOe(Z))break}J===void 0&&$e(r,p.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,p.Constructors_for_derived_classes_must_contain_a_super_call)}}}function Gpt(r,a){let l=Td(r.parent);return $l(l)&&l.parent===a}function eOe(r){return r.kind===108||r.kind===110?!0:Ute(r)?!1:!!Es(r,eOe)}function tOe(r){je(r.name)&&Ln(r.name)==="constructor"&&ii(r.parent)&&$e(r.name,p.Class_constructor_may_not_be_an_accessor),n(a),ka(r.body),fX(r);function a(){if(!MX(r)&&!vht(r)&&RX(r.name),W9(r),QR(r),r.kind===177&&!(r.flags&33554432)&&Zp(r.body)&&r.flags&512&&(r.flags&1024||$e(r.name,p.A_get_accessor_must_return_a_value)),r.name.kind===167&&Od(r.name),ND(r)){let f=In(r),d=Yo(f,177),y=Yo(f,178);if(d&&y&&!(fw(d)&1)){wn(d).flags|=1;let k=r_(d),R=r_(y);(k&64)!==(R&64)&&($e(d.name,p.Accessors_must_both_be_abstract_or_non_abstract),$e(y.name,p.Accessors_must_both_be_abstract_or_non_abstract)),(k&4&&!(R&6)||k&2&&!(R&2))&&($e(d.name,p.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),$e(y.name,p.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}let l=aN(In(r));r.kind===177&&Ohe(r,l)}}function Upt(r){W9(r)}function Vpt(r,a,l){return r.typeArguments&&l<r.typeArguments.length?Fi(r.typeArguments[l]):pX(r,a)[l]}function pX(r,a){return Uv(hr(r.typeArguments,Fi),a,$g(a),un(r))}function rOe(r,a){let l,f,d=!0;for(let y=0;y<a.length;y++){let k=D_(a[y]);k&&(l||(l=pX(r,a),f=af(a,l)),d=d&&Fu(l[y],Hi(k,f),r.typeArguments[y],p.Type_0_does_not_satisfy_the_constraint_1))}return d}function qpt(r,a){if(!We(r))return a.flags&524288&&$i(a).typeParameters||(Mn(r)&4?r.target.localTypeParameters:void 0)}function qhe(r){let a=Fi(r);if(!We(a)){let l=wn(r).resolvedSymbol;if(l)return qpt(a,l)}}function $he(r){if(Q9(r,r.typeArguments),r.kind===183&&!un(r)&&!$6(r)&&r.typeArguments&&r.typeName.end!==r.typeArguments.pos){let a=Fr(r);Mte(a,r.typeName.end)===25&&BT(r,ha(a.text,r.typeName.end),1,p.JSDoc_types_can_only_be_used_inside_documentation_comments)}or(r.typeArguments,ka),nOe(r)}function nOe(r){let a=Fi(r);if(!We(a)){r.typeArguments&&n(()=>{let f=qhe(r);f&&rOe(r,f)});let l=wn(r).resolvedSymbol;l&&pt(l.declarations,f=>w2(f)&&!!(f.flags&536870912))&&Lg(D9(r),l.declarations,l.escapedName)}}function $pt(r){let a=Vn(r.parent,fF);if(!a)return;let l=qhe(a);if(!l)return;let f=D_(l[a.typeArguments.indexOf(r)]);return f&&Hi(f,af(l,pX(a,l)))}function Hpt(r){jMe(r)}function Qpt(r){or(r.members,ka),n(a);function a(){let l=D3e(r);TX(l,l.symbol),Vhe(r),YFe(r)}}function Kpt(r){ka(r.elementType)}function Xpt(r){let a=!1,l=!1;for(let f of r.elements){let d=Pme(f);if(d&8){let y=Fi(f.type);if(!$v(y)){$e(f,p.A_rest_element_type_must_be_an_array_type);break}(Gp(y)||Pa(y)&&y.target.combinedFlags&4)&&(d|=4)}if(d&4){if(l){Tr(f,p.A_rest_element_cannot_follow_another_rest_element);break}l=!0}else if(d&2){if(l){Tr(f,p.An_optional_element_cannot_follow_a_rest_element);break}a=!0}else if(d&1&&a){Tr(f,p.A_required_element_cannot_follow_an_optional_element);break}}or(r.elements,ka),Fi(r)}function Ypt(r){or(r.types,ka),Fi(r)}function iOe(r,a){if(!(r.flags&8388608))return r;let l=r.objectType,f=r.indexType,d=U_(l)&&mR(l)===2?f3e(l,0):_g(l,0),y=!!Uh(l,Qt);if(of(f,k=>Hs(k,d)||y&&KC(k,Qt)))return a.kind===212&&A0(a)&&Mn(l)&32&&qg(l)&1&&$e(a,p.Index_signature_in_type_0_only_permits_reading,tn(l)),r;if(vx(l)){let k=tK(f,a);if(k){let R=Ix(__(l),W=>ca(W,k));if(R&&Ap(R)&6)return $e(a,p.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Li(k)),Ke}}return $e(a,p.Type_0_cannot_be_used_to_index_type_1,tn(f),tn(l)),Ke}function Zpt(r){ka(r.objectType),ka(r.indexType),iOe(T3e(r),r)}function edt(r){tdt(r),ka(r.typeParameter),ka(r.nameType),ka(r.type),r.type||V1(r,Fe);let a=zme(r),l=Jv(a);if(l)Fu(l,si,r.nameType);else{let f=hp(a);Fu(f,si,Aw(r.typeParameter))}}function tdt(r){var a;if((a=r.members)!=null&&a.length)return Tr(r.members[0],p.A_mapped_type_may_not_declare_properties_or_methods)}function rdt(r){Hme(r)}function ndt(r){Sht(r),ka(r.type)}function idt(r){Es(r,ka)}function sdt(r){gr(r,l=>l.parent&&l.parent.kind===194&&l.parent.extendsType===l)||Tr(r,p.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),ka(r.typeParameter);let a=In(r.typeParameter);if(a.declarations&&a.declarations.length>1){let l=$i(a);if(!l.typeParametersChecked){l.typeParametersChecked=!0;let f=kT(a),d=ute(a,168);if(!AOe(d,[f],y=>[y])){let y=Qi(a);for(let k of d)$e(k.name,p.All_declarations_of_0_must_have_identical_constraints,y)}}}bb(r)}function adt(r){for(let a of r.templateSpans){ka(a.type);let l=Fi(a.type);Fu(l,ta,a.type)}Fi(r)}function odt(r){ka(r.argument),r.attributes&&jI(r.attributes,Tr),nOe(r)}function cdt(r){r.dotDotDotToken&&r.questionToken&&Tr(r,p.A_tuple_member_cannot_be_both_optional_and_rest),r.type.kind===190&&Tr(r.type,p.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===191&&Tr(r.type,p.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),ka(r.type),Fi(r)}function L9(r){return(hf(r,2)||Zu(r))&&!!(r.flags&33554432)}function KR(r,a){let l=OX(r);if(r.parent.kind!==264&&r.parent.kind!==263&&r.parent.kind!==231&&r.flags&33554432){let f=xF(r);f&&f.flags&128&&!(l&128)&&!(Lm(r.parent)&&nl(r.parent.parent)&&xg(r.parent.parent))&&(l|=32),l|=128}return l&a}function dX(r){n(()=>ldt(r))}function ldt(r){function a(pr,ir){return ir!==void 0&&ir.parent===pr[0].parent?ir:pr[0]}function l(pr,ir,yn,Qn,Wi){if((Qn^Wi)!==0){let hs=KR(a(pr,ir),yn);vw(pr,Gs=>Fr(Gs).fileName).forEach(Gs=>{let co=KR(a(Gs,ir),yn);for(let As of Gs){let Qu=KR(As,yn)^hs,tu=KR(As,yn)^co;tu&32?$e(vs(As),p.Overload_signatures_must_all_be_exported_or_non_exported):tu&128?$e(vs(As),p.Overload_signatures_must_all_be_ambient_or_non_ambient):Qu&6?$e(vs(As)||As,p.Overload_signatures_must_all_be_public_private_or_protected):Qu&64&&$e(vs(As),p.Overload_signatures_must_all_be_abstract_or_non_abstract)}})}}function f(pr,ir,yn,Qn){if(yn!==Qn){let Wi=_2(a(pr,ir));or(pr,Dn=>{_2(Dn)!==Wi&&$e(vs(Dn),p.Overload_signatures_must_all_be_optional_or_required)})}}let d=230,y=0,k=d,R=!1,W=!0,J=!1,Z,ke,he,Ze=r.declarations,mt=(r.flags&16384)!==0;function Ct(pr){if(pr.name&&Tc(pr.name))return;let ir=!1,yn=Es(pr.parent,Wi=>{if(ir)return Wi;ir=Wi===pr});if(yn&&yn.pos===pr.end&&yn.kind===pr.kind){let Wi=yn.name||yn,Dn=yn.name;if(pr.name&&Dn&&(ji(pr.name)&&ji(Dn)&&pr.name.escapedText===Dn.escapedText||pa(pr.name)&&pa(Dn)&&$h(Od(pr.name),Od(Dn))||Pm(pr.name)&&Pm(Dn)&&aA(pr.name)===aA(Dn))){if((pr.kind===174||pr.kind===173)&&Ks(pr)!==Ks(yn)){let Gs=Ks(pr)?p.Function_overload_must_be_static:p.Function_overload_must_not_be_static;$e(Wi,Gs)}return}if(Zp(yn.body)){$e(Wi,p.Function_implementation_name_must_be_0,Co(pr.name));return}}let Qn=pr.name||pr;mt?$e(Qn,p.Constructor_implementation_is_missing):ei(pr,64)?$e(Qn,p.All_declarations_of_an_abstract_method_must_be_consecutive):$e(Qn,p.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let lr=!1,rr=!1,rn=!1,Kr=[];if(Ze)for(let pr of Ze){let ir=pr,yn=ir.flags&33554432,Qn=ir.parent&&(ir.parent.kind===264||ir.parent.kind===187)||yn;if(Qn&&(he=void 0),(ir.kind===263||ir.kind===231)&&!yn&&(rn=!0),ir.kind===262||ir.kind===174||ir.kind===173||ir.kind===176){Kr.push(ir);let Wi=KR(ir,d);y|=Wi,k&=Wi,R=R||_2(ir),W=W&&_2(ir);let Dn=Zp(ir.body);Dn&&Z?mt?rr=!0:lr=!0:he?.parent===ir.parent&&he.end!==ir.pos&&Ct(he),Dn?Z||(Z=ir):J=!0,he=ir,Qn||(ke=ir)}un(pr)&&Ns(pr)&&pr.jsDoc&&(J=Dr(wz(pr))>0)}if(rr&&or(Kr,pr=>{$e(pr,p.Multiple_constructor_implementations_are_not_allowed)}),lr&&or(Kr,pr=>{$e(vs(pr)||pr,p.Duplicate_function_implementation)}),rn&&!mt&&r.flags&16&&Ze){let pr=An(Ze,ir=>ir.kind===263).map(ir=>cn(ir,p.Consider_adding_a_declare_modifier_to_this_class));or(Ze,ir=>{let yn=ir.kind===263?p.Class_declaration_cannot_implement_overload_list_for_0:ir.kind===262?p.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;yn&&Xs($e(vs(ir)||ir,yn,Oc(r)),...pr)})}if(ke&&!ke.body&&!ei(ke,64)&&!ke.questionToken&&Ct(ke),J&&(Ze&&(l(Ze,Z,d,y,k),f(Ze,Z,R,W)),Z)){let pr=IT(r),ir=yp(Z);for(let yn of pr)if(!yct(ir,yn)){let Qn=yn.declaration&&fv(yn.declaration)?yn.declaration.parent.tagName:yn.declaration;Xs($e(Qn,p.This_overload_signature_is_not_compatible_with_its_implementation_signature),cn(Z,p.The_implementation_signature_is_declared_here));break}}}function XR(r){n(()=>udt(r))}function udt(r){let a=r.localSymbol;if(!a&&(a=In(r),!a.exportSymbol)||Yo(a,r.kind)!==r)return;let l=0,f=0,d=0;for(let J of a.declarations){let Z=W(J),ke=KR(J,2080);ke&32?ke&2048?d|=Z:l|=Z:f|=Z}let y=l|f,k=l&f,R=d&y;if(k||R)for(let J of a.declarations){let Z=W(J),ke=vs(J);Z&R?$e(ke,p.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Co(ke)):Z&k&&$e(ke,p.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Co(ke))}function W(J){let Z=J;switch(Z.kind){case 264:case 265:case 346:case 338:case 340:return 2;case 267:return e_(Z)||gy(Z)!==0?5:4;case 263:case 266:case 306:return 3;case 307:return 7;case 277:case 226:let ke=Z,he=Ho(ke)?ke.expression:ke.right;if(!mo(he))return 1;Z=he;case 271:case 274:case 273:let Ze=0,mt=al(In(Z));return or(mt.declarations,Ct=>{Ze|=W(Ct)}),Ze;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return w.failBadSyntaxKind(Z)}}}function IN(r,a,l,...f){let d=YR(r,a);return d&&lw(d,a,l,...f)}function YR(r,a,l){if(Se(r))return;let f=r;if(f.promisedTypeOfPromise)return f.promisedTypeOfPromise;if(cg(r,Wj(!1)))return f.promisedTypeOfPromise=Vo(r)[0];if(HR(ug(r),402915324))return;let d=ol(r,"then");if(Se(d))return;let y=d?Bs(d,0):qe;if(y.length===0){a&&$e(a,p.A_promise_must_have_a_then_method);return}let k,R;for(let Z of y){let ke=W1(Z);ke&&ke!==vr&&!fg(r,ke,Eh)?k=ke:R=jr(R,Z)}if(!R){w.assertIsDefined(k),l&&(l.value=k),a&&$e(a,p.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,tn(r),tn(k));return}let W=Up(ri(hr(R,Ehe)),2097152);if(Se(W))return;let J=Bs(W,0);if(J.length===0){a&&$e(a,p.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return f.promisedTypeOfPromise=ri(hr(J,Ehe),2)}function j9(r,a,l,f,...d){return(a?lw(r,l,f,...d):Jy(r,l,f,...d))||Ke}function sOe(r){if(HR(ug(r),402915324))return!1;let a=ol(r,"then");return!!a&&Bs(Up(a,2097152),0).length>0}function mX(r){var a;if(r.flags&16777216){let l=Dme(!1);return!!l&&r.aliasSymbol===l&&((a=r.aliasTypeArguments)==null?void 0:a.length)===1}return!1}function DN(r){return r.flags&1048576?ac(r,DN):mX(r)?r.aliasTypeArguments[0]:r}function aOe(r){if(Se(r)||mX(r))return!1;if(vx(r)){let a=Su(r);if(a?a.flags&3||Oy(a)||Vp(a,sOe):zc(r,8650752))return!0}return!1}function _dt(r){let a=Dme(!0);if(a)return OD(a,[DN(r)])}function fdt(r){return aOe(r)?_dt(r)??r:(w.assert(mX(r)||YR(r)===void 0,"type provided should not be a non-generic 'promise'-like."),r)}function lw(r,a,l,...f){let d=Jy(r,a,l,...f);return d&&fdt(d)}function Jy(r,a,l,...f){if(Se(r)||mX(r))return r;let d=r;if(d.awaitedTypeOfType)return d.awaitedTypeOfType;if(r.flags&1048576){if(eb.lastIndexOf(r.id)>=0){a&&$e(a,p.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}let R=a?J=>Jy(J,a,l,...f):Jy;eb.push(r.id);let W=ac(r,R);return eb.pop(),d.awaitedTypeOfType=W}if(aOe(r))return d.awaitedTypeOfType=r;let y={value:void 0},k=YR(r,void 0,y);if(k){if(r.id===k.id||eb.lastIndexOf(k.id)>=0){a&&$e(a,p.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}eb.push(r.id);let R=Jy(k,a,l,...f);return eb.pop(),R?d.awaitedTypeOfType=R:void 0}if(sOe(r)){if(a){w.assertIsDefined(l);let R;y.value&&(R=Ps(R,p.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,tn(r),tn(y.value))),R=Ps(R,l,...f),za.add(fh(Fr(a),a,R))}return}return d.awaitedTypeOfType=r}function pdt(r,a,l){let f=Fi(a);if(B>=2){if(We(f))return;let y=Wj(!0);if(y!==Ht&&!cg(f,y)){d(p.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,tn(Jy(f)||vr));return}}else{if(aw(r,5),We(f))return;let y=U6(a);if(y===void 0){d(p.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,tn(f));return}let k=Ac(y,111551,!0),R=k?an(k):Ke;if(We(R)){y.kind===80&&y.escapedText==="Promise"&&PD(f)===Wj(!1)?$e(l,p.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):d(p.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,df(y));return}let W=Iat(!0);if(W===Oa){d(p.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,df(y));return}let J=p.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!Fu(R,W,l,J,()=>a===l?void 0:Ps(void 0,p.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;let ke=y&&h_(y),he=c_(r.locals,ke.escapedText,111551);if(he){$e(he.valueDeclaration,p.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,Ln(ke),df(y));return}}j9(f,!1,r,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function d(y,k,R,W){if(k===R)$e(R,y,W);else{let J=$e(R,p.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);Xs(J,cn(k,y,W))}}}function ddt(r){let a=Fr(r);if(!Sb(a)){let l=r.expression;if(b_(l))return!1;let f=!0,d;for(;;){if(py(l)||z2(l)){l=l.expression;continue}if(qs(l)){f||(d=l),l.questionDotToken&&(d=l.questionDotToken),l=l.expression,f=!1;continue}if(Nn(l)){l.questionDotToken&&(d=l.questionDotToken),l=l.expression,f=!1;continue}je(l)||(d=l);break}if(d)return Xs($e(r.expression,p.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator),cn(d,p.Invalid_syntax_in_decorator)),!0}return!1}function mdt(r){ddt(r);let a=$D(r);sX(a,r);let l=Za(a);if(l.flags&1)return;let f=Rhe(r);if(!f?.resolvedReturnType)return;let d,y=f.resolvedReturnType;switch(r.parent.kind){case 263:case 231:d=p.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!$){d=p.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:d=p.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:d=p.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return w.failBadSyntaxKind(r.parent)}Fu(l,y,r.expression,d)}function ZR(r,a,l,f,d,y=l.length,k=0){let R=A.createFunctionTypeNode(void 0,qe,A.createKeywordTypeNode(133));return Gh(R,r,a,l,f,d,y,k)}function Hhe(r,a,l,f,d,y,k){let R=ZR(r,a,l,f,d,y,k);return gx(R)}function oOe(r){return Hhe(void 0,void 0,qe,r)}function cOe(r){let a=Kl("value",r);return Hhe(void 0,void 0,[a],vr)}function Qhe(r){if(r)switch(r.kind){case 193:case 192:return lOe(r.types);case 194:return lOe([r.trueType,r.falseType]);case 196:case 202:return Qhe(r.type);case 183:return r.typeName}}function lOe(r){let a;for(let l of r){for(;l.kind===196||l.kind===202;)l=l.type;if(l.kind===146||!te&&(l.kind===201&&l.literal.kind===106||l.kind===157))continue;let f=Qhe(l);if(!f)return;if(a){if(!je(a)||!je(f)||a.escapedText!==f.escapedText)return}else a=f}return a}function gX(r){let a=pl(r);return Tg(r)?mz(a):a}function W9(r){if(!JS(r)||!rp(r)||!r.modifiers||!V6($,r,r.parent,r.parent.parent))return;let a=On(r.modifiers,Rl);if(a){$?(Wl(a,8),r.kind===169&&Wl(a,32)):B<zl.ClassAndClassElementDecorators&&(Wl(a,8),gl(r)?r.name?EOe(r)&&Wl(a,4194304):Wl(a,4194304):ml(r)||(ji(r.name)&&(xc(r)||T0(r)||N_(r))&&Wl(a,4194304),pa(r.name)&&Wl(a,8388608))),aw(r,8);for(let l of r.modifiers)Rl(l)&&mdt(l)}}function gdt(r){n(a);function a(){_Oe(r),Sye(r),PN(r,r.name)}}function hdt(r){r.typeExpression||$e(r.name,p.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),r.name&&AN(r.name,p.Type_alias_name_cannot_be_0),ka(r.typeExpression),V9(y0(r))}function ydt(r){ka(r.constraint);for(let a of r.typeParameters)ka(a)}function vdt(r){ka(r.typeExpression)}function bdt(r){ka(r.typeExpression);let a=Ob(r);if(a){let l=Y8(a,m7);if(Dr(l)>1)for(let f=1;f<Dr(l);f++){let d=l[f].tagName;$e(d,p._0_tag_already_specified,Ln(d))}}}function Sdt(r){r.name&&$9(r.name,!0)}function Tdt(r){ka(r.typeExpression)}function kdt(r){ka(r.typeExpression)}function xdt(r){n(a),QR(r);function a(){!r.type&&!f2(r)&&V1(r,Fe)}}function Cdt(r){let a=Ob(r);a&&Lo(a)&&$e(r.tagName,p.An_arrow_function_cannot_have_a_this_parameter)}function wdt(r){lye(r)}function Idt(r){let a=Ob(r);(!a||!gl(a)&&!ml(a))&&$e(a,p.JSDoc_0_is_not_attached_to_a_class,Ln(r.tagName))}function Ddt(r){let a=Ob(r);if(!a||!gl(a)&&!ml(a)){$e(a,p.JSDoc_0_is_not_attached_to_a_class,Ln(r.tagName));return}let l=Ab(a).filter(U2);w.assert(l.length>0),l.length>1&&$e(l[1],p.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);let f=uOe(r.class.expression),d=TS(a);if(d){let y=uOe(d.expression);y&&f.escapedText!==y.escapedText&&$e(f,p.JSDoc_0_1_does_not_match_the_extends_2_clause,Ln(r.tagName),Ln(f),Ln(y))}}function Pdt(r){let a=bS(r);a&&Zu(a)&&$e(r,p.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function uOe(r){switch(r.kind){case 80:return r;case 211:return r.name;default:return}}function _Oe(r){var a;W9(r),QR(r);let l=Kc(r);if(r.name&&r.name.kind===167&&Od(r.name),ND(r)){let y=In(r),k=r.localSymbol||y,R=(a=k.declarations)==null?void 0:a.find(W=>W.kind===r.kind&&!(W.flags&524288));r===R&&dX(k),y.parent&&dX(y)}let f=r.kind===173?void 0:r.body;if(ka(f),Ohe(r,RD(r)),n(d),un(r)){let y=Pb(r);y&&y.typeExpression&&!the(Fi(y.typeExpression),r)&&$e(y.typeExpression.type,p.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function d(){Wf(r)||(Tc(f)&&!L9(r)&&V1(r,Fe),l&1&&Zp(f)&&Za(yp(r)))}}function bb(r){n(a);function a(){let l=Fr(r),f=Sv.get(l.path);f||(f=[],Sv.set(l.path,f)),f.push(r)}}function fOe(r,a){for(let l of r)switch(l.kind){case 263:case 231:Adt(l,a),Khe(l,a);break;case 307:case 267:case 241:case 269:case 248:case 249:case 250:mOe(l,a);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:l.body&&mOe(l,a),Khe(l,a);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:Khe(l,a);break;case 195:Edt(l,a);break;default:w.assertNever(l,"Node should not have been registered for unused identifiers check")}}function pOe(r,a,l){let f=vs(r)||r,d=w2(r)?p._0_is_declared_but_never_used:p._0_is_declared_but_its_value_is_never_read;l(r,0,cn(f,d,a))}function e8(r){return je(r)&&Ln(r).charCodeAt(0)===95}function Adt(r,a){for(let l of r.members)switch(l.kind){case 174:case 172:case 177:case 178:if(l.kind===178&&l.symbol.flags&32768)break;let f=In(l);!f.isReferenced&&(hf(l,2)||Gl(l)&&ji(l.name))&&!(l.flags&33554432)&&a(l,0,cn(l.name,p._0_is_declared_but_its_value_is_never_read,Qi(f)));break;case 176:for(let d of l.parameters)!d.symbol.isReferenced&&ei(d,2)&&a(d,0,cn(d.name,p.Property_0_is_declared_but_its_value_is_never_read,Oc(d.symbol)));break;case 181:case 240:case 175:break;default:w.fail("Unexpected class member")}}function Edt(r,a){let{typeParameter:l}=r;Xhe(l)&&a(r,1,cn(r,p._0_is_declared_but_its_value_is_never_read,Ln(l.name)))}function Khe(r,a){let l=In(r).declarations;if(!l||xa(l)!==r)return;let f=y0(r),d=new Set;for(let y of f){if(!Xhe(y))continue;let k=Ln(y.name),{parent:R}=y;if(R.kind!==195&&R.typeParameters.every(Xhe)){if(Qy(d,R)){let W=Fr(R),J=ad(R)?EJ(R):NJ(W,R.typeParameters),ke=R.typeParameters.length===1?[p._0_is_declared_but_its_value_is_never_read,k]:[p.All_type_parameters_are_unused];a(y,1,kl(W,J.pos,J.end-J.pos,...ke))}}else a(y,1,cn(y,p._0_is_declared_but_its_value_is_never_read,k))}}function Xhe(r){return!(Va(r.symbol).isReferenced&262144)&&!e8(r.name)}function B9(r,a,l,f){let d=String(f(a)),y=r.get(d);y?y[1].push(l):r.set(d,[a,[l]])}function dOe(r){return Vn(Am(r),Bi)}function Ndt(r){return Da(r)?np(r.parent)?!!(r.propertyName&&e8(r.name)):e8(r.name):e_(r)||(oi(r)&&nk(r.parent.parent)||gOe(r))&&e8(r.name)}function mOe(r,a){let l=new Map,f=new Map,d=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(!Ndt(k))if(gOe(k))B9(l,Rdt(k),k,Ua);else if(Da(k)&&np(k.parent)){let R=xa(k.parent.elements);(k===R||!xa(k.parent.elements).dotDotDotToken)&&B9(f,k.parent,k,Ua)}else if(oi(k)){let R=zT(k)&7,W=vs(k);(R!==4&&R!==6||!W||!e8(W))&&B9(d,k.parent,k,Ua)}else{let R=y.valueDeclaration&&dOe(y.valueDeclaration),W=y.valueDeclaration&&vs(y.valueDeclaration);R&&W?!pf(R,R.parent)&&!E0(R)&&!e8(W)&&(Da(k)&&uv(k.parent)?B9(f,k.parent,k,Ua):a(R,1,cn(W,p._0_is_declared_but_its_value_is_never_read,Oc(y)))):pOe(k,Oc(y),a)}}}),l.forEach(([y,k])=>{let R=y.parent;if((y.name?1:0)+(y.namedBindings?y.namedBindings.kind===274?1:y.namedBindings.elements.length:0)===k.length)a(R,0,k.length===1?cn(R,p._0_is_declared_but_its_value_is_never_read,Ln(Ea(k).name)):cn(R,p.All_imports_in_import_declaration_are_unused));else for(let J of k)pOe(J,Ln(J.name),a)}),f.forEach(([y,k])=>{let R=dOe(y.parent)?1:0;if(y.elements.length===k.length)k.length===1&&y.parent.kind===260&&y.parent.parent.kind===261?B9(d,y.parent.parent,y.parent,Ua):a(y,R,k.length===1?cn(y,p._0_is_declared_but_its_value_is_never_read,z9(Ea(k).name)):cn(y,p.All_destructured_elements_are_unused));else for(let W of k)a(W,R,cn(W,p._0_is_declared_but_its_value_is_never_read,z9(W.name)))}),d.forEach(([y,k])=>{if(y.declarations.length===k.length)a(y,0,k.length===1?cn(Ea(k).name,p._0_is_declared_but_its_value_is_never_read,z9(Ea(k).name)):cn(y.parent.kind===243?y.parent:y,p.All_variables_are_unused));else for(let R of k)a(R,0,cn(R,p._0_is_declared_but_its_value_is_never_read,z9(R.name)))})}function Mdt(){var r;for(let a of g1)if(!((r=In(a))!=null&&r.isReferenced)){let l=Kx(a);w.assert(jb(l),"Only parameter declaration should be checked here");let f=cn(a.name,p._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,Co(a.name),Co(a.propertyName));l.type||Xs(f,kl(Fr(l),l.end,0,p.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,Co(a.propertyName))),za.add(f)}}function z9(r){switch(r.kind){case 80:return Ln(r);case 207:case 206:return z9(Zs(Ea(r.elements),Da).name);default:return w.assertNever(r)}}function gOe(r){return r.kind===273||r.kind===276||r.kind===274}function Rdt(r){return r.kind===273?r:r.kind===274?r.parent:r.parent.parent}function hX(r){if(r.kind===241&&Gy(r),jB(r)){let a=cr;or(r.statements,ka),cr=a}else or(r.statements,ka);r.locals&&bb(r)}function Fdt(r){B>=2||!qB(r)||r.flags&33554432||Tc(r.body)||or(r.parameters,a=>{a.name&&!Ws(a.name)&&a.name.escapedText===ee.escapedName&&Og("noEmit",a,p.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function t8(r,a,l){if(a?.escapedText!==l||r.kind===172||r.kind===171||r.kind===174||r.kind===173||r.kind===177||r.kind===178||r.kind===303||r.flags&33554432||(Cd(r)||Ol(r)||a_(r))&&Xy(r))return!1;let f=Am(r);return!(Bi(f)&&Tc(f.parent.body))}function Odt(r){gr(r,a=>fw(a)&4?(r.kind!==80?$e(vs(r),p.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):$e(r,p.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function Ldt(r){gr(r,a=>fw(a)&8?(r.kind!==80?$e(vs(r),p.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):$e(r,p.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function jdt(r,a){if(e.getEmitModuleFormatOfFile(Fr(r))>=5||!a||!t8(r,a,"require")&&!t8(r,a,"exports")||nl(r)&&gy(r)!==1)return;let l=F1(r);l.kind===307&&mf(l)&&Og("noEmit",a,p.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Co(a),Co(a))}function Wdt(r,a){if(!a||B>=4||!t8(r,a,"Promise")||nl(r)&&gy(r)!==1)return;let l=F1(r);l.kind===307&&mf(l)&&l.flags&4096&&Og("noEmit",a,p.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Co(a),Co(a))}function Bdt(r,a){B<=8&&(t8(r,a,"WeakMap")||t8(r,a,"WeakSet"))&&xy.push(r)}function zdt(r){let a=Gd(r);fw(a)&1048576&&(w.assert(Gl(r)&&je(r.name)&&typeof r.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),Og("noEmit",r,p.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,r.name.escapedText))}function Jdt(r,a){a&&B>=2&&B<=8&&t8(r,a,"Reflect")&&Fg.push(r)}function Gdt(r){let a=!1;if(ml(r)){for(let l of r.members)if(fw(l)&2097152){a=!0;break}}else if(Ao(r))fw(r)&2097152&&(a=!0);else{let l=Gd(r);l&&fw(l)&2097152&&(a=!0)}a&&(w.assert(Gl(r)&&je(r.name),"The target of a Reflect collision check should be an identifier"),Og("noEmit",r,p.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,Co(r.name),"Reflect"))}function PN(r,a){a&&(jdt(r,a),Wdt(r,a),Bdt(r,a),Jdt(r,a),ii(r)?(AN(a,p.Class_name_cannot_be_0),r.flags&33554432||vmt(a)):LS(r)&&AN(a,p.Enum_name_cannot_be_0))}function Udt(r){if((zT(r)&7)!==0||jb(r))return;let a=In(r);if(a.flags&1){if(!je(r.name))return w.fail();let l=_t(r,r.name.escapedText,3,void 0,!1);if(l&&l!==a&&l.flags&2&&she(l)&7){let f=Lb(l.valueDeclaration,261),d=f.parent.kind===243&&f.parent.parent?f.parent.parent:void 0;if(!(d&&(d.kind===241&&Ns(d.parent)||d.kind===268||d.kind===267||d.kind===307))){let k=Qi(l);$e(r,p.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,k,k)}}}}function r8(r){return r===St?Fe:r===Il?wl:r}function J9(r){var a;if(W9(r),Da(r)||ka(r.type),!r.name)return;if(r.name.kind===167&&(Od(r.name),ik(r)&&r.initializer&&Ec(r.initializer)),Da(r)){if(r.propertyName&&je(r.name)&&jb(r)&&Tc(ep(r).body)){g1.push(r);return}np(r.parent)&&r.dotDotDotToken&&B<zl.ObjectSpreadRest&&Wl(r,4),r.propertyName&&r.propertyName.kind===167&&Od(r.propertyName);let d=r.parent.parent,y=r.dotDotDotToken?32:0,k=wt(d,y),R=r.propertyName||r.name;if(k&&!Ws(R)){let W=My(R);if(Ep(W)){let J=Np(W),Z=ca(k,J);Z&&(x9(Z,void 0,!1),ohe(r,!!d.initializer&&d.initializer.kind===108,!1,k,Z))}}}if(Ws(r.name)&&(r.name.kind===207&&B<zl.BindingPatterns&&F.downlevelIteration&&Wl(r,512),or(r.name.elements,ka)),r.initializer&&jb(r)&&Tc(ep(r).body)){$e(r,p.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(Ws(r.name)){if(Age(r))return;let d=ik(r)&&r.initializer&&r.parent.parent.kind!==249,y=!pt(r.name.elements,A8(Fl));if(d||y){let k=no(r);if(d){let R=Ec(r.initializer);te&&y?L8e(R,r):FT(R,no(r),r,r.initializer)}y&&(uv(r.name)?Qv(65,k,pe,r):te&&L8e(k,r))}return}let l=In(r);if(l.flags&2097152&&(yS(r)||Hte(r))){CX(r);return}r.name.kind===10&&$e(r.name,p.A_bigint_literal_cannot_be_used_as_a_property_name);let f=r8(an(l));if(r===l.valueDeclaration){let d=ik(r)&&X6(r);if(d&&!(un(r)&&Sa(d)&&(d.properties.length===0||M0(r.name))&&!!((a=l.exports)!=null&&a.size))&&r.parent.parent.kind!==249){let k=Ec(d);FT(k,f,r,d,void 0);let R=zT(r)&7;if(R===6){let W=jat(!0),J=QMe(!0);if(W!==Oa&&J!==Oa){let Z=ri([W,J,jt,pe]);Fu(Ug(k,r),Z,d,p.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(R===4){let W=QMe(!0);if(W!==Oa){let J=ri([W,jt,pe]);Fu(Ug(k,r),J,d,p.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&&pt(l.declarations,y=>y!==r&&$P(y)&&!yOe(y,r))&&$e(r.name,p.All_declarations_of_0_must_have_identical_modifiers,Co(r.name))}else{let d=r8(no(r));!We(f)&&!We(d)&&!$h(f,d)&&!(l.flags&67108864)&&hOe(l.valueDeclaration,f,r,d),ik(r)&&r.initializer&&FT(Ec(r.initializer),d,r,r.initializer,void 0),l.valueDeclaration&&!yOe(r,l.valueDeclaration)&&$e(r.name,p.All_declarations_of_0_must_have_identical_modifiers,Co(r.name))}r.kind!==172&&r.kind!==171&&(XR(r),(r.kind===260||r.kind===208)&&Udt(r),PN(r,r.name))}function hOe(r,a,l,f){let d=vs(l),y=l.kind===172||l.kind===171?p.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:p.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,k=Co(d),R=$e(d,y,k,tn(a),tn(f));r&&Xs(R,cn(r,p._0_was_also_declared_here,k))}function yOe(r,a){if(r.kind===169&&a.kind===260||r.kind===260&&a.kind===169)return!0;if(_2(r)!==_2(a))return!1;let l=1358;return g2(r,l)===g2(a,l)}function Vdt(r){var a,l;(a=_n)==null||a.push(_n.Phase.Check,"checkVariableDeclaration",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath}),wht(r),J9(r),(l=_n)==null||l.pop()}function qdt(r){return kht(r),J9(r)}function yX(r){let a=ny(r)&7;(a===4||a===6)&&B<zl.UsingAndAwaitUsing&&Wl(r,16777216),or(r.declarations,ka)}function $dt(r){!Qh(r)&&!xye(r.declarationList)&&Iht(r),yX(r.declarationList)}function Hdt(r){Gy(r),rs(r.expression)}function Qdt(r){Gy(r);let a=n8(r.expression);Yhe(r.expression,a,r.thenStatement),ka(r.thenStatement),r.thenStatement.kind===242&&$e(r.thenStatement,p.The_body_of_an_if_statement_cannot_be_the_empty_statement),ka(r.elseStatement)}function Yhe(r,a,l){if(!te)return;f(r,l);function f(y,k){for(y=Ka(y),d(y,k);vn(y)&&(y.operatorToken.kind===57||y.operatorToken.kind===61);)y=Ka(y.left),d(y,k)}function d(y,k){let R=b4(y)?Ka(y.right):y;if(dh(R))return;if(b4(R)){f(R,k);return}let W=R===y?a:rs(R);if(W.flags&1024&&Nn(R)&&(wn(R.expression).resolvedSymbol??Y).flags&384){$e(R,p.This_condition_will_always_return_0,W.value?"true":"false");return}let J=Nn(R)&&zFe(R.expression);if(!mm(W,4194304)||J)return;let Z=Bs(W,0),ke=!!IN(W);if(Z.length===0&&!ke)return;let he=je(R)?R:Nn(R)?R.name:void 0,Ze=he&&qp(he);if(!Ze&&!ke)return;Ze&&vn(y.parent)&&Xdt(y.parent,Ze)||Ze&&k&&Kdt(y,k,he,Ze)||(ke?Dv(R,!0,p.This_condition_will_always_return_true_since_this_0_is_always_defined,UC(W)):$e(R,p.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function Kdt(r,a,l,f){return!!Es(a,function d(y){if(je(y)){let k=qp(y);if(k&&k===f){if(je(r)||je(l)&&vn(l.parent))return!0;let R=l.parent,W=y.parent;for(;R&&W;){if(je(R)&&je(W)||R.kind===110&&W.kind===110)return qp(R)===qp(W);if(Nn(R)&&Nn(W)){if(qp(R.name)!==qp(W.name))return!1;W=W.expression,R=R.expression}else if(qs(R)&&qs(W))W=W.expression,R=R.expression;else return!1}}}return Es(y,d)})}function Xdt(r,a){for(;vn(r)&&r.operatorToken.kind===56;){if(Es(r.right,function f(d){if(je(d)){let y=qp(d);if(y&&y===a)return!0}return Es(d,f)}))return!0;r=r.parent}return!1}function Ydt(r){Gy(r),ka(r.statement),n8(r.expression)}function Zdt(r){Gy(r),n8(r.expression),ka(r.statement)}function Zhe(r,a){if(r.flags&16384)$e(a,p.An_expression_of_type_void_cannot_be_tested_for_truthiness);else{let l=eye(a);l!==3&&$e(a,l===1?p.This_kind_of_expression_is_always_truthy:p.This_kind_of_expression_is_always_falsy)}return r}function eye(r){switch(r=Wc(r),r.kind){case 9:return r.text==="0"||r.text==="1"?3:1;case 209:case 219:case 10:case 231:case 218:case 284:case 285:case 210:case 14:return 1;case 222:case 106:return 2;case 15:case 11:return r.text?1:2;case 227:return eye(r.whenTrue)|eye(r.whenFalse);case 80:return Hu(r)===le?2:3}return 3}function n8(r,a){return Zhe(rs(r,a),r)}function emt(r){Gy(r)||r.initializer&&r.initializer.kind===261&&xye(r.initializer),r.initializer&&(r.initializer.kind===261?yX(r.initializer):rs(r.initializer)),r.condition&&n8(r.condition),r.incrementor&&rs(r.incrementor),ka(r.statement),r.locals&&bb(r)}function tmt(r){d7e(r);let a=NF(r);if(r.awaitModifier?a&&Nc(a)?Tr(r.awaitModifier,p.for_await_loops_cannot_be_used_inside_a_class_static_block):(Kc(a)&6)===2&&B<zl.ForAwaitOf&&Wl(r,16384):F.downlevelIteration&&B<zl.ForOf&&Wl(r,256),r.initializer.kind===261)yX(r.initializer);else{let l=r.initializer,f=G9(r);if(l.kind===209||l.kind===210)Nx(l,f||Ke);else{let d=rs(l);$R(l,p.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,p.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),f&&FT(f,d,l,r.expression)}}ka(r.statement),r.locals&&bb(r)}function rmt(r){d7e(r);let a=che(rs(r.expression));if(r.initializer.kind===261){let l=r.initializer.declarations[0];l&&Ws(l.name)&&$e(l.name,p.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),yX(r.initializer)}else{let l=r.initializer,f=rs(l);l.kind===209||l.kind===210?$e(l,p.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):Hs(Cot(a),f)?$R(l,p.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,p.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):$e(l,p.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(a===ar||!Tu(a,126091264))&&$e(r.expression,p.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,tn(a)),ka(r.statement),r.locals&&bb(r)}function G9(r){let a=r.awaitModifier?15:13;return Qv(a,VD(r.expression),pe,r.expression)}function Qv(r,a,l,f){return Se(a)?a:tye(r,a,l,f,!0)||Fe}function tye(r,a,l,f,d){let y=(r&2)!==0;if(a===ar){f&&iye(f,a,y);return}let k=B>=2,R=!k&&F.downlevelIteration,W=F.noUncheckedIndexedAccess&&!!(r&128);if(k||R||y){let Ze=bX(a,r,k?f:void 0);if(d&&Ze){let mt=r&8?p.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:r&32?p.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:r&64?p.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:r&16?p.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;mt&&Fu(l,Ze.nextType,f,mt)}if(Ze||k)return W?OR(Ze&&Ze.yieldType):Ze&&Ze.yieldType}let J=a,Z=!1;if(r&4){if(J.flags&1048576){let Ze=a.types,mt=An(Ze,Ct=>!(Ct.flags&402653316));mt!==Ze&&(J=ri(mt,2))}else J.flags&402653316&&(J=ar);if(Z=J!==a,Z&&J.flags&131072)return W?OR(ut):ut}if(!$v(J)){if(f){let Ze=!!(r&4)&&!Z,[mt,Ct]=he(Ze,R);Dv(f,Ct&&!!IN(J),mt,tn(J))}return Z?W?OR(ut):ut:void 0}let ke=j1(J,Qt);if(Z&&ke)return ke.flags&402653316&&!F.noUncheckedIndexedAccess?ut:ri(W?[ke,ut,pe]:[ke,ut],2);return r&128?OR(ke):ke;function he(Ze,mt){var Ct;return mt?Ze?[p.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[p.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:rye(r,0,a,void 0)?[p.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:nmt((Ct=a.symbol)==null?void 0:Ct.escapedName)?[p.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:Ze?[p.Type_0_is_not_an_array_type_or_a_string_type,!0]:[p.Type_0_is_not_an_array_type,!0]}}function nmt(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 rye(r,a,l,f){if(Se(l))return;let d=bX(l,r,f);return d&&d[USe(a)]}function H1(r=ar,a=ar,l=kt){if(r.flags&67359327&&a.flags&180227&&l.flags&180227){let f=gd([r,a,l]),d=io.get(f);return d||(d={yieldType:r,returnType:a,nextType:l},io.set(f,d)),d}return{yieldType:r,returnType:a,nextType:l}}function vOe(r){let a,l,f;for(let d of r)if(!(d===void 0||d===Ta)){if(d===Go)return Go;a=jr(a,d.yieldType),l=jr(l,d.returnType),f=jr(f,d.nextType)}return a||l||f?H1(a&&ri(a),l&&ri(l),f&&ma(f)):Ta}function vX(r,a){return r[a]}function Hh(r,a,l){return r[a]=l}function bX(r,a,l){var f,d;if(Se(r))return Go;if(!(r.flags&1048576)){let J=l?{errors:void 0,skipLogging:!0}:void 0,Z=bOe(r,a,l,J);if(Z===Ta){if(l){let ke=iye(l,r,!!(a&2));J?.errors&&Xs(ke,...J.errors)}return}else if((f=J?.errors)!=null&&f.length)for(let ke of J.errors)za.add(ke);return Z}let y=a&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",k=vX(r,y);if(k)return k===Ta?void 0:k;let R;for(let J of r.types){let Z=l?{errors:void 0}:void 0,ke=bOe(J,a,l,Z);if(ke===Ta){if(l){let he=iye(l,r,!!(a&2));Z?.errors&&Xs(he,...Z.errors)}Hh(r,y,Ta);return}else if((d=Z?.errors)!=null&&d.length)for(let he of Z.errors)za.add(he);R=jr(R,ke)}let W=R?vOe(R):Ta;return Hh(r,y,W),W===Ta?void 0:W}function nye(r,a){if(r===Ta)return Ta;if(r===Go)return Go;let{yieldType:l,returnType:f,nextType:d}=r;return a&&Dme(!0),H1(lw(l,a)||Fe,lw(f,a)||Fe,d)}function bOe(r,a,l,f){if(Se(r))return Go;let d=!1;if(a&2){let y=SOe(r,Dc)||TOe(r,Dc);if(y)if(y===Ta&&l)d=!0;else return a&8?nye(y,l):y}if(a&1){let y=SOe(r,$c)||TOe(r,$c);if(y)if(y===Ta&&l)d=!0;else if(a&2){if(y!==Ta)return y=nye(y,l),d?y:Hh(r,"iterationTypesOfAsyncIterable",y)}else return y}if(a&2){let y=xOe(r,Dc,l,f,d);if(y!==Ta)return y}if(a&1){let y=xOe(r,$c,l,f,d);if(y!==Ta)return a&2?(y=nye(y,l),d?y:Hh(r,"iterationTypesOfAsyncIterable",y)):y}return Ta}function SOe(r,a){return vX(r,a.iterableCacheKey)}function TOe(r,a){if(cg(r,a.getGlobalIterableType(!1))||cg(r,a.getGlobalIteratorObjectType(!1))||cg(r,a.getGlobalIterableIteratorType(!1))||cg(r,a.getGlobalGeneratorType(!1))){let[l,f,d]=Vo(r);return Hh(r,a.iterableCacheKey,H1(a.resolveIterationType(l,void 0)||l,a.resolveIterationType(f,void 0)||f,d))}if(lR(r,a.getGlobalBuiltinIteratorTypes())){let[l]=Vo(r),f=Ime(),d=kt;return Hh(r,a.iterableCacheKey,H1(a.resolveIterationType(l,void 0)||l,a.resolveIterationType(f,void 0)||f,d))}}function kOe(r){let a=UMe(!1),l=a&&ol(an(a),gc(r));return l&&Ep(l)?Np(l):`__@${r}`}function xOe(r,a,l,f,d){let y=ca(r,kOe(a.iteratorSymbolName)),k=y&&!(y.flags&16777216)?an(y):void 0;if(Se(k))return d?Go:Hh(r,a.iterableCacheKey,Go);let R=k?Bs(k,0):void 0,W=An(R,ke=>hm(ke)===0);if(!pt(W))return l&&pt(R)&&Fu(r,a.getGlobalIterableType(!0),l,void 0,void 0,f),d?Ta:Hh(r,a.iterableCacheKey,Ta);let J=ma(hr(W,Za)),Z=COe(J,a,l,f,d)??Ta;return d?Z:Hh(r,a.iterableCacheKey,Z)}function iye(r,a,l){let f=l?p.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:p.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,d=!!IN(a)||!l&&Z4(r.parent)&&r.parent.expression===r&&Bj(!1)!==Ht&&Hs(a,dN(Bj(!1),[Fe,Fe,Fe]));return Dv(r,d,f,tn(a))}function imt(r,a,l,f){return COe(r,a,l,f,!1)}function COe(r,a,l,f,d){if(Se(r))return Go;let y=smt(r,a)||amt(r,a);return y===Ta&&l&&(y=void 0,d=!0),y??(y=umt(r,a,l,f,d)),y===Ta?void 0:y}function smt(r,a){return vX(r,a.iteratorCacheKey)}function amt(r,a){if(cg(r,a.getGlobalIterableIteratorType(!1))||cg(r,a.getGlobalIteratorType(!1))||cg(r,a.getGlobalIteratorObjectType(!1))||cg(r,a.getGlobalGeneratorType(!1))){let[l,f,d]=Vo(r);return Hh(r,a.iteratorCacheKey,H1(l,f,d))}if(lR(r,a.getGlobalBuiltinIteratorTypes())){let[l]=Vo(r),f=Ime(),d=kt;return Hh(r,a.iteratorCacheKey,H1(l,f,d))}}function wOe(r,a){let l=ol(r,"done")||Pr;return Hs(a===0?Pr:it,l)}function omt(r){return wOe(r,0)}function cmt(r){return wOe(r,1)}function lmt(r){if(Se(r))return Go;let a=vX(r,"iterationTypesOfIteratorResult");if(a)return a;if(cg(r,Oat(!1))){let k=Vo(r)[0];return Hh(r,"iterationTypesOfIteratorResult",H1(k,void 0,void 0))}if(cg(r,Lat(!1))){let k=Vo(r)[0];return Hh(r,"iterationTypesOfIteratorResult",H1(void 0,k,void 0))}let l=cl(r,omt),f=l!==ar?ol(l,"value"):void 0,d=cl(r,cmt),y=d!==ar?ol(d,"value"):void 0;return!f&&!y?Hh(r,"iterationTypesOfIteratorResult",Ta):Hh(r,"iterationTypesOfIteratorResult",H1(f,y||vr,void 0))}function sye(r,a,l,f,d){var y,k,R,W;let J=ca(r,l);if(!J&&l!=="next")return;let Z=J&&!(l==="next"&&J.flags&16777216)?l==="next"?an(J):Up(an(J),2097152):void 0;if(Se(Z))return Go;let ke=Z?Bs(Z,0):qe;if(ke.length===0){if(f){let pr=l==="next"?a.mustHaveANextMethodDiagnostic:a.mustBeAMethodDiagnostic;d?(d.errors??(d.errors=[]),d.errors.push(cn(f,pr,l))):$e(f,pr,l)}return l==="next"?Ta:void 0}if(Z?.symbol&&ke.length===1){let pr=a.getGlobalGeneratorType(!1),ir=a.getGlobalIteratorType(!1),yn=((k=(y=pr.symbol)==null?void 0:y.members)==null?void 0:k.get(l))===Z.symbol,Qn=!yn&&((W=(R=ir.symbol)==null?void 0:R.members)==null?void 0:W.get(l))===Z.symbol;if(yn||Qn){let Wi=yn?pr:ir,{mapper:Dn}=Z;return H1(qv(Wi.typeParameters[0],Dn),qv(Wi.typeParameters[1],Dn),l==="next"?qv(Wi.typeParameters[2],Dn):void 0)}}let he,Ze;for(let pr of ke)l!=="throw"&&pt(pr.parameters)&&(he=jr(he,gm(pr,0))),Ze=jr(Ze,Za(pr));let mt,Ct;if(l!=="throw"){let pr=he?ri(he):kt;if(l==="next")Ct=pr;else if(l==="return"){let ir=a.resolveIterationType(pr,f)||Fe;mt=jr(mt,ir)}}let lr,rr=Ze?ma(Ze):ar,rn=a.resolveIterationType(rr,f)||Fe,Kr=lmt(rn);return Kr===Ta?(f&&(d?(d.errors??(d.errors=[]),d.errors.push(cn(f,a.mustHaveAValueDiagnostic,l))):$e(f,a.mustHaveAValueDiagnostic,l)),lr=Fe,mt=jr(mt,Fe)):(lr=Kr.yieldType,mt=jr(mt,Kr.returnType)),H1(lr,ri(mt),Ct)}function umt(r,a,l,f,d){let y=vOe([sye(r,a,"next",l,f),sye(r,a,"return",l,f),sye(r,a,"throw",l,f)]);return d?y:Hh(r,a.iteratorCacheKey,y)}function Kv(r,a,l){if(Se(a))return;let f=aye(a,l);return f&&f[USe(r)]}function aye(r,a){if(Se(r))return Go;let l=a?2:1,f=a?Dc:$c;return bX(r,l,void 0)||imt(r,f,void 0,void 0)}function _mt(r){Gy(r)||Tht(r)}function U9(r,a){let l=!!(a&1),f=!!(a&2);if(l){let d=Kv(1,r,f);return d?f?Jy(DN(d)):d:Ke}return f?Jy(r)||Ke:r}function IOe(r,a){let l=U9(a,Kc(r));return!!(l&&(zc(l,16384)||l.flags&32769))}function fmt(r){if(Gy(r))return;let a=NF(r);if(a&&Nc(a)){eu(r,p.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!a){eu(r,p.A_return_statement_can_only_be_used_within_a_function_body);return}let l=yp(a),f=Za(l);if(te||r.expression||f.flags&131072){let d=r.expression?Ec(r.expression):pe;if(a.kind===178)r.expression&&$e(r,p.Setters_cannot_return_a_value);else if(a.kind===176){let y=r.expression?Ec(r.expression):pe;r.expression&&!FT(y,f,r,r.expression)&&$e(r,p.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class)}else if(RD(a)){let y=U9(f,Kc(a))??f;SX(a,y,r,r.expression,d)}}else a.kind!==176&&F.noImplicitReturns&&!IOe(a,f)&&$e(r,p.Not_all_code_paths_return_a_value)}function SX(r,a,l,f,d,y=!1){let k=un(l),R=Kc(r);if(f){let he=Ka(f,k);if(wk(he)){SX(r,a,l,he.whenTrue,rs(he.whenTrue),!0),SX(r,a,l,he.whenFalse,rs(he.whenFalse),!0);return}}let W=l.kind===253,J=R&2?j9(d,!1,l,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):d,Z=f&&tX(f);FT(J,a,W&&!y?l:Z,Z)}function pmt(r){Gy(r)||r.flags&65536&&eu(r,p.with_statements_are_not_allowed_in_an_async_function_block),rs(r.expression);let a=Fr(r);if(!Sb(a)){let l=Cm(a,r.pos).start,f=r.statement.pos;BT(a,l,f-l,p.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function dmt(r){Gy(r);let a,l=!1,f=rs(r.expression);or(r.caseBlock.clauses,d=>{d.kind===297&&!l&&(a===void 0?a=d:(Tr(d,p.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),l=!0)),d.kind===296&&n(y(d)),or(d.statements,ka),F.noFallthroughCasesInSwitch&&d.fallthroughFlowNode&&f9(d.fallthroughFlowNode)&&$e(d,p.Fallthrough_case_in_switch);function y(k){return()=>{let R=rs(k.expression);Bhe(f,R)||U3e(R,f,k.expression,void 0)}}}),r.caseBlock.locals&&bb(r.caseBlock)}function mmt(r){Gy(r)||gr(r.parent,a=>Ns(a)?"quit":a.kind===256&&a.label.escapedText===r.label.escapedText?(Tr(r.label,p.Duplicate_label_0,oc(r.label)),!0):!1),ka(r.statement)}function gmt(r){Gy(r)||je(r.expression)&&!r.expression.escapedText&&Oht(r,p.Line_break_not_permitted_here),r.expression&&rs(r.expression)}function hmt(r){Gy(r),hX(r.tryBlock);let a=r.catchClause;if(a){if(a.variableDeclaration){let l=a.variableDeclaration;J9(l);let f=pl(l);if(f){let d=Fi(f);d&&!(d.flags&3)&&eu(f,p.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(l.initializer)eu(l.initializer,p.Catch_clause_variable_cannot_have_an_initializer);else{let d=a.block.locals;d&&uh(a.locals,y=>{let k=d.get(y);k?.valueDeclaration&&(k.flags&2)!==0&&Tr(k.valueDeclaration,p.Cannot_redeclare_identifier_0_in_catch_clause,Li(y))})}}hX(a.block)}r.finallyBlock&&hX(r.finallyBlock)}function TX(r,a,l){let f=Mu(r);if(f.length===0)return;for(let y of Gv(r))l&&y.flags&4194304||DOe(r,y,ZC(y,8576,!0),fb(y));let d=a.valueDeclaration;if(d&&ii(d)){for(let y of d.members)if((!l&&!Ks(y)||l&&Ks(y))&&!ND(y)){let k=In(y);DOe(r,k,ku(y.name.expression),fb(k))}}if(f.length>1)for(let y of f)ymt(r,y)}function DOe(r,a,l,f){let d=a.valueDeclaration,y=vs(d);if(y&&ji(y))return;let k=dme(r,l),R=Mn(r)&2?Yo(r.symbol,264):void 0,W=d&&d.kind===226||y&&y.kind===167?d:void 0,J=rf(a)===r.symbol?d:void 0;for(let Z of k){let ke=Z.declaration&&rf(In(Z.declaration))===r.symbol?Z.declaration:void 0,he=J||ke||(R&&!pt(Pl(r),Ze=>!!CT(Ze,a.escapedName)&&!!j1(Ze,Z.keyType))?R:void 0);if(he&&!Hs(f,Z.type)){let Ze=uT(he,p.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Qi(a),tn(f),tn(Z.keyType),tn(Z.type));W&&he!==W&&Xs(Ze,cn(W,p._0_is_declared_here,Qi(a))),za.add(Ze)}}}function ymt(r,a){let l=a.declaration,f=dme(r,a.keyType),d=Mn(r)&2?Yo(r.symbol,264):void 0,y=l&&rf(In(l))===r.symbol?l:void 0;for(let k of f){if(k===a)continue;let R=k.declaration&&rf(In(k.declaration))===r.symbol?k.declaration:void 0,W=y||R||(d&&!pt(Pl(r),J=>!!Uh(J,a.keyType)&&!!j1(J,k.keyType))?d:void 0);W&&!Hs(a.type,k.type)&&$e(W,p._0_index_type_1_is_not_assignable_to_2_index_type_3,tn(a.keyType),tn(a.type),tn(k.keyType),tn(k.type))}}function AN(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){B>=1&&r.escapedText==="Object"&&e.getEmitModuleFormatOfFile(Fr(r))<5&&$e(r,p.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,kw[G])}function bmt(r){let a=An(Ab(r),ip);if(!Dr(a))return;let l=un(r),f=new Set,d=new Set;if(or(r.parameters,({name:k},R)=>{je(k)&&f.add(k.escapedText),Ws(k)&&d.add(R)}),gme(r)){let k=a.length-1,R=a[k];l&&R&&je(R.name)&&R.typeExpression&&R.typeExpression.type&&!f.has(R.name.escapedText)&&!d.has(k)&&!Gp(Fi(R.typeExpression.type))&&$e(R.name,p.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,Ln(R.name))}else or(a,({name:k,isNameFirst:R},W)=>{d.has(W)||je(k)&&f.has(k.escapedText)||(y_(k)?l&&$e(k,p.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,df(k),df(k.left)):R||im(l,k,p.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,Ln(k)))})}function V9(r){let a=!1;if(r)for(let f=0;f<r.length;f++){let d=r[f];QFe(d),n(l(d,f))}function l(f,d){return()=>{f.default?(a=!0,Smt(f.default,r,d)):a&&$e(f,p.Required_type_parameters_may_not_follow_optional_type_parameters);for(let y=0;y<d;y++)r[y].symbol===f.symbol&&$e(f.name,p.Duplicate_identifier_0,Co(f.name))}}}function Smt(r,a,l){f(r);function f(d){if(d.kind===183){let y=YQ(d);if(y.flags&262144)for(let k=l;k<a.length;k++)y.symbol===In(a[k])&&$e(d,p.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}Es(d,f)}}function POe(r){if(r.declarations&&r.declarations.length===1)return;let a=$i(r);if(!a.typeParametersChecked){a.typeParametersChecked=!0;let l=Pmt(r);if(!l||l.length<=1)return;let f=Bo(r);if(!AOe(l,f.localTypeParameters,y0)){let d=Qi(r);for(let y of l)$e(y.name,p.All_declarations_of_0_must_have_identical_type_parameters,d)}}}function AOe(r,a,l){let f=Dr(a),d=$g(a);for(let y of r){let k=l(y),R=k.length;if(R<d||R>f)return!1;for(let W=0;W<R;W++){let J=k[W],Z=a[W];if(J.name.escapedText!==Z.symbol.escapedName)return!1;let ke=Aw(J),he=ke&&Fi(ke),Ze=D_(Z);if(he&&Ze&&!$h(he,Ze))return!1;let mt=J.default&&Fi(J.default),Ct=wT(Z);if(mt&&Ct&&!$h(mt,Ct))return!1}}return!0}function EOe(r){let a=!$&&B<zl.ClassAndClassElementDecorators&&ev(!1,r),l=B<zl.PrivateNamesAndClassStaticBlocks||B<zl.ClassAndClassElementDecorators,f=!U;if(a||l)for(let d of r.members){if(a&&hz(!1,d,r))return _l(g0(r))??r;if(l){if(Nc(d))return d;if(Ks(d)&&(Zu(d)||f&&DM(d)))return d}}}function Tmt(r){if(r.name)return;let a=Die(r);if(!Rz(a))return;let l=!$&&B<zl.ClassAndClassElementDecorators,f;l&&ev(!1,r)?f=_l(g0(r))??r:f=EOe(r),f&&(Wl(f,4194304),(hl(a)||ds(a)||Da(a))&&pa(a.name)&&Wl(f,8388608))}function kmt(r){return NOe(r),uw(r),Tmt(r),an(In(r))}function xmt(r){or(r.members,ka),bb(r)}function Cmt(r){let a=On(r.modifiers,Rl);$&&a&&pt(r.members,l=>Tl(l)&&Zu(l))&&Tr(a,p.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!r.name&&!ei(r,2048)&&eu(r,p.A_class_declaration_without_the_default_modifier_must_have_a_name),NOe(r),or(r.members,ka),bb(r)}function NOe(r){oht(r),W9(r),PN(r,r.name),V9(y0(r)),XR(r);let a=In(r),l=Bo(a),f=Mf(l),d=an(a);POe(a),dX(a),Lpt(r),!!(r.flags&33554432)||jpt(r);let k=Dm(r);if(k){or(k.typeArguments,ka),B<zl.Classes&&Wl(k.parent,1);let J=TS(r);J&&J!==k&&rs(J.expression);let Z=Pl(l);Z.length&&n(()=>{let ke=Z[0],he=Qa(l),Ze=__(he);if(Imt(Ze,k),ka(k.expression),pt(k.typeArguments)){or(k.typeArguments,ka);for(let Ct of Si(Ze,k.typeArguments,k))if(!rOe(k,Ct.typeParameters))break}let mt=Mf(ke,l.thisType);if(Fu(f,mt,void 0)?Fu(d,j3e(Ze),r.name||r,p.Class_static_side_0_incorrectly_extends_base_class_static_side_1):FOe(r,f,mt,p.Class_0_incorrectly_extends_base_class_1),he.flags&8650752&&(Fn(d)?Bs(he,1).some(lr=>lr.flags&4)&&!ei(r,64)&&$e(r.name||r,p.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):$e(r.name||r,p.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(Ze.symbol&&Ze.symbol.flags&32)&&!(he.flags&8650752)){let Ct=$a(Ze,k.typeArguments,k);or(Ct,lr=>!mg(lr.declaration)&&!$h(Za(lr),ke))&&$e(k.expression,p.Base_constructors_must_all_have_the_same_return_type)}Amt(l,ke)})}wmt(r,l,f,d);let R=Qw(r);if(R)for(let J of R)(!mo(J.expression)||ju(J.expression))&&$e(J.expression,p.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),$he(J),n(W(J));n(()=>{TX(l,a),TX(d,a,!0),Vhe(r),Mmt(r)});function W(J){return()=>{let Z=Rd(Fi(J));if(!We(Z))if(L1(Z)){let ke=Z.symbol&&Z.symbol.flags&32?p.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:p.Class_0_incorrectly_implements_interface_1,he=Mf(Z,l.thisType);Fu(f,he,void 0)||FOe(r,f,he,ke)}else $e(J,p.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function wmt(r,a,l,f){let y=Dm(r)&&Pl(a),k=y?.length?Mf(Ea(y),a.thisType):void 0,R=Qa(a);for(let W of r.members)Xz(W)||(lc(W)&&or(W.parameters,J=>{pf(J,W)&&MOe(r,f,R,k,a,l,J,!0)}),MOe(r,f,R,k,a,l,W,!1))}function MOe(r,a,l,f,d,y,k,R,W=!0){let J=k.name&&qp(k.name)||qp(k);return J?ROe(r,a,l,f,d,y,oO(k),IS(k),Ks(k),R,J,W?k:void 0):0}function ROe(r,a,l,f,d,y,k,R,W,J,Z,ke){let he=un(r),Ze=!!(r.flags&33554432);if(k&&Z?.valueDeclaration&&rl(Z.valueDeclaration)&&Z.valueDeclaration.name&&Y4e(Z.valueDeclaration.name))return $e(ke,he?p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:p.This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic),2;if(f&&(k||F.noImplicitOverride)){let mt=W?a:y,Ct=W?l:f,lr=ca(mt,Z.escapedName),rr=ca(Ct,Z.escapedName),rn=tn(f);if(lr&&!rr&&k){if(ke){let Kr=G8e(Oc(Z),Ct);Kr?$e(ke,he?p.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:p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,rn,Qi(Kr)):$e(ke,he?p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,rn)}return 2}else if(lr&&rr?.declarations&&F.noImplicitOverride&&!Ze){let Kr=pt(rr.declarations,IS);if(k)return 0;if(Kr){if(R&&Kr)return ke&&$e(ke,p.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,rn),1}else{if(ke){let pr=J?he?p.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:p.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:he?p.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:p.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;$e(ke,pr,rn)}return 1}}}else if(k){if(ke){let mt=tn(d);$e(ke,he?p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:p.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,mt)}return 2}return 0}function FOe(r,a,l,f){let d=!1;for(let y of r.members){if(Ks(y))continue;let k=y.name&&qp(y.name)||qp(y);if(k){let R=ca(a,k.escapedName),W=ca(l,k.escapedName);if(R&&W){let J=()=>Ps(void 0,p.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Qi(k),tn(a),tn(l));Fu(an(R),an(W),y.name||y,void 0,J)||(d=!0)}}}d||Fu(a,l,r.name||r,f)}function Imt(r,a){let l=Bs(r,1);if(l.length){let f=l[0].declaration;if(f&&hf(f,2)){let d=_y(r.symbol);fye(a,d)||$e(a,p.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Dy(r.symbol))}}}function Dmt(r,a,l){if(!a.name)return 0;let f=In(r),d=Bo(f),y=Mf(d),k=an(f),W=Dm(r)&&Pl(d),J=W?.length?Mf(Ea(W),d.thisType):void 0,Z=Qa(d),ke=a.parent?oO(a):ei(a,16);return ROe(r,k,Z,J,d,y,ke,IS(a),Ks(a),!1,l)}function KD(r){return kc(r)&1?r.links.target:r}function Pmt(r){return An(r.declarations,a=>a.kind===263||a.kind===264)}function Amt(r,a){var l,f,d,y,k;let R=so(a),W=new Map;e:for(let J of R){let Z=KD(J);if(Z.flags&4194304)continue;let ke=CT(r,Z.escapedName);if(!ke)continue;let he=KD(ke),Ze=Ap(Z);if(w.assert(!!he,"derived should point to something, even if it is the base class' declaration."),he===Z){let mt=_y(r.symbol);if(Ze&64&&(!mt||!ei(mt,64))){for(let Kr of Pl(r)){if(Kr===a)continue;let pr=CT(Kr,Z.escapedName),ir=pr&&KD(pr);if(ir&&ir!==Z)continue e}let Ct=tn(a),lr=tn(r),rr=Qi(J),rn=jr((l=W.get(mt))==null?void 0:l.missedProperties,rr);W.set(mt,{baseTypeName:Ct,typeName:lr,missedProperties:rn})}}else{let mt=Ap(he);if(Ze&2||mt&2)continue;let Ct,lr=Z.flags&98308,rr=he.flags&98308;if(lr&&rr){if((kc(Z)&6?(f=Z.declarations)!=null&&f.some(pr=>OOe(pr,Ze)):(d=Z.declarations)!=null&&d.every(pr=>OOe(pr,Ze)))||kc(Z)&262144||he.valueDeclaration&&vn(he.valueDeclaration))continue;let rn=lr!==4&&rr===4;if(rn||lr===4&&rr!==4){let pr=rn?p._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:p._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;$e(vs(he.valueDeclaration)||he.valueDeclaration,pr,Qi(Z),tn(a),tn(r))}else if(K){let pr=(y=he.declarations)==null?void 0:y.find(ir=>ir.kind===172&&!ir.initializer);if(pr&&!(he.flags&33554432)&&!(Ze&64)&&!(mt&64)&&!((k=he.declarations)!=null&&k.some(ir=>!!(ir.flags&33554432)))){let ir=z4(_y(r.symbol)),yn=pr.name;if(pr.exclamationToken||!ir||!je(yn)||!te||!jOe(yn,r,ir)){let Qn=p.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(vs(he.valueDeclaration)||he.valueDeclaration,Qn,Qi(Z),tn(a))}}}continue}else if(ahe(Z)){if(ahe(he)||he.flags&4)continue;w.assert(!!(he.flags&98304)),Ct=p.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else Z.flags&98304?Ct=p.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:Ct=p.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;$e(vs(he.valueDeclaration)||he.valueDeclaration,Ct,tn(a),Qi(Z),tn(r))}}for(let[J,Z]of W)if(Dr(Z.missedProperties)===1)ml(J)?$e(J,p.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Ea(Z.missedProperties),Z.baseTypeName):$e(J,p.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Z.typeName,Ea(Z.missedProperties),Z.baseTypeName);else if(Dr(Z.missedProperties)>5){let ke=hr(Z.missedProperties.slice(0,4),Ze=>`'${Ze}'`).join(", "),he=Dr(Z.missedProperties)-4;ml(J)?$e(J,p.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more,Z.baseTypeName,ke,he):$e(J,p.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more,Z.typeName,Z.baseTypeName,ke,he)}else{let ke=hr(Z.missedProperties,he=>`'${he}'`).join(", ");ml(J)?$e(J,p.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1,Z.baseTypeName,ke):$e(J,p.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2,Z.typeName,Z.baseTypeName,ke)}}function OOe(r,a){return a&64&&(!ds(r)||!r.initializer)||hu(r.parent)}function Emt(r,a,l){if(!Dr(a))return l;let f=new Map;or(l,d=>{f.set(d.escapedName,d)});for(let d of a){let y=so(Mf(d,r.thisType));for(let k of y){let R=f.get(k.escapedName);R&&k.parent===R.parent&&f.delete(k.escapedName)}}return ps(f.values())}function Nmt(r,a){let l=Pl(r);if(l.length<2)return!0;let f=new Map;or(Zde(r).declaredProperties,y=>{f.set(y.escapedName,{prop:y,containingType:r})});let d=!0;for(let y of l){let k=so(Mf(y,r.thisType));for(let R of k){let W=f.get(R.escapedName);if(!W)f.set(R.escapedName,{prop:R,containingType:y});else if(W.containingType!==r&&!Nct(W.prop,R)){d=!1;let Z=tn(W.containingType),ke=tn(y),he=Ps(void 0,p.Named_property_0_of_types_1_and_2_are_not_identical,Qi(R),Z,ke);he=Ps(he,p.Interface_0_cannot_simultaneously_extend_types_1_and_2,tn(r),Z,ke),za.add(fh(Fr(a),a,he))}}}return d}function Mmt(r){if(!te||!ie||r.flags&33554432)return;let a=z4(r);for(let l of r.members)if(!(r_(l)&128)&&!Ks(l)&&LOe(l)){let f=l.name;if(je(f)||ji(f)||pa(f)){let d=an(In(l));d.flags&3||BD(d)||(!a||!jOe(f,d,a))&&$e(l.name,p.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Co(f))}}}function LOe(r){return r.kind===172&&!IS(r)&&!r.exclamationToken&&!r.initializer}function Rmt(r,a,l,f,d){for(let y of l)if(y.pos>=f&&y.pos<=d){let k=A.createPropertyAccessExpression(A.createThis(),r);Xa(k.expression,k),Xa(k,y),k.flowNode=y.returnFlowNode;let R=zy(k,a,yb(a));if(!BD(R))return!0}return!1}function jOe(r,a,l){let f=pa(r)?A.createElementAccessExpression(A.createThis(),r.expression):A.createPropertyAccessExpression(A.createThis(),r);Xa(f.expression,f),Xa(f,l),f.flowNode=l.returnFlowNode;let d=zy(f,a,yb(a));return!BD(d)}function Fmt(r){Qh(r)||dht(r),FX(r.parent)||Tr(r,p._0_declarations_can_only_be_declared_inside_a_block,"interface"),V9(r.typeParameters),n(()=>{AN(r.name,p.Interface_name_cannot_be_0),XR(r);let a=In(r);POe(a);let l=Yo(a,264);if(r===l){let f=Bo(a),d=Mf(f);if(Nmt(f,r.name)){for(let y of Pl(f))Fu(d,Mf(y,f.thisType),r.name,p.Interface_0_incorrectly_extends_interface_1);TX(f,a)}}YFe(r)}),or(iA(r),a=>{(!mo(a.expression)||ju(a.expression))&&$e(a.expression,p.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),$he(a)}),or(r.members,ka),n(()=>{Vhe(r),bb(r)})}function Omt(r){if(Qh(r),AN(r.name,p.Type_alias_name_cannot_be_0),FX(r.parent)||Tr(r,p._0_declarations_can_only_be_declared_inside_a_block,"type"),XR(r),V9(r.typeParameters),r.type.kind===141){let a=Dr(r.typeParameters);(a===0?r.name.escapedText==="BuiltinIteratorReturn":a===1&&kU.has(r.name.escapedText))||$e(r.type,p.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types)}else ka(r.type),bb(r)}function WOe(r){let a=wn(r);if(!(a.flags&1024)){a.flags|=1024;let l=0,f;for(let d of r.members){let y=Lmt(d,l,f);wn(d).enumMemberValue=y,l=typeof y.value=="number"?y.value+1:void 0,f=d}}}function Lmt(r,a,l){if(F6(r.name))$e(r.name,p.Computed_property_names_are_not_allowed_in_enums);else{let f=o2(r.name);Sh(f)&&!PA(f)&&$e(r.name,p.An_enum_member_cannot_have_a_numeric_name)}if(r.initializer)return jmt(r);if(r.parent.flags&33554432&&!Nb(r.parent))return Ml(void 0);if(a===void 0)return $e(r.name,p.Enum_member_must_have_initializer),Ml(void 0);if(id(F)&&l?.initializer){let f=Mx(l);typeof f.value=="number"&&!f.resolvedOtherFiles||$e(r.name,p.Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled)}return Ml(a)}function jmt(r){let a=Nb(r.parent),l=r.initializer,f=tt(l,r);return f.value!==void 0?a&&typeof f.value=="number"&&!isFinite(f.value)?$e(l,isNaN(f.value)?p.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:p.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):id(F)&&typeof f.value=="string"&&!f.isSyntacticallyString&&$e(l,p._0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled,`${Ln(r.parent.name)}.${o2(r.name)}`):a?$e(l,p.const_enum_member_initializers_must_be_constant_expressions):r.parent.flags&33554432?$e(l,p.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):Fu(rs(l),Qt,l,p.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),f}function BOe(r,a){let l=Ac(r,111551,!0);if(!l)return Ml(void 0);if(r.kind===80){let f=r;if(PA(f.escapedText)&&l===jD(f.escapedText,111551,void 0))return Ml(+f.escapedText,!1)}if(l.flags&8)return a?zOe(r,l,a):Mx(l.valueDeclaration);if(sw(l)){let f=l.valueDeclaration;if(f&&oi(f)&&!f.type&&f.initializer&&(!a||f!==a&&tg(f,a))){let d=tt(f.initializer,f);return a&&Fr(a)!==Fr(f)?Ml(d.value,!1,!0,!0):Ml(d.value,d.isSyntacticallyString,d.resolvedOtherFiles,!0)}}return Ml(void 0)}function Wmt(r,a){let l=r.expression;if(mo(l)&&Ha(r.argumentExpression)){let f=Ac(l,111551,!0);if(f&&f.flags&384){let d=gc(r.argumentExpression.text),y=f.exports.get(d);if(y)return w.assert(Fr(y.valueDeclaration)===Fr(f.valueDeclaration)),a?zOe(r,y,a):Mx(y.valueDeclaration)}}return Ml(void 0)}function zOe(r,a,l){let f=a.valueDeclaration;if(!f||f===l)return $e(r,p.Property_0_is_used_before_being_assigned,Qi(a)),Ml(void 0);if(!tg(f,l))return $e(r,p.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),Ml(0);let d=Mx(f);return l.parent!==f.parent?Ml(d.value,d.isSyntacticallyString,d.resolvedOtherFiles,!0):d}function Bmt(r){n(()=>zmt(r))}function zmt(r){Qh(r),PN(r,r.name),XR(r),r.members.forEach(Jmt),F.erasableSyntaxOnly&&!(r.flags&33554432)&&$e(r,p.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),WOe(r);let a=In(r),l=Yo(a,r.kind);if(r===l){if(a.declarations&&a.declarations.length>1){let d=Nb(r);or(a.declarations,y=>{LS(y)&&Nb(y)!==d&&$e(vs(y),p.Enum_declarations_must_all_be_const_or_non_const)})}let f=!1;or(a.declarations,d=>{if(d.kind!==266)return!1;let y=d;if(!y.members.length)return!1;let k=y.members[0];k.initializer||(f?$e(k.name,p.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):f=!0)})}}function Jmt(r){ji(r.name)&&$e(r,p.An_enum_member_cannot_be_named_with_a_private_identifier),r.initializer&&rs(r.initializer)}function Gmt(r){let a=r.declarations;if(a){for(let l of a)if((l.kind===263||l.kind===262&&Zp(l.body))&&!(l.flags&33554432))return l}}function Umt(r,a){let l=Gd(r),f=Gd(a);return Zy(l)?Zy(f):Zy(f)?!1:l===f}function Vmt(r){r.body&&(ka(r.body),xg(r)||bb(r)),n(a);function a(){var l,f;let d=xg(r),y=r.flags&33554432;d&&!y&&$e(r.name,p.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);let k=e_(r),R=k?p.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:p.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(q9(r,R))return;if(Qh(r)||!y&&r.name.kind===11&&Tr(r.name,p.Only_ambient_modules_can_use_quoted_names),je(r.name)&&(PN(r,r.name),!(r.flags&2080))){let J=Fr(r),Z=yte(r),ke=Cm(J,Z);h1.add(kl(J,ke.start,ke.length,p.A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead))}XR(r);let W=In(r);if(W.flags&512&&!y&&xU(r,R0(F))){if(F.erasableSyntaxOnly&&$e(r.name,p.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),id(F)&&!Fr(r).externalModuleIndicator&&$e(r.name,p.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=W.declarations)==null?void 0:l.length)>1){let J=Gmt(W);J&&(Fr(r)!==Fr(J)?$e(r.name,p.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,p.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));let Z=Yo(W,263);Z&&Umt(r,Z)&&(wn(r).flags|=2048)}if(F.verbatimModuleSyntax&&r.parent.kind===307&&e.getEmitModuleFormatOfFile(r.parent)===1){let J=(f=r.modifiers)==null?void 0:f.find(Z=>Z.kind===95);J&&$e(J,p.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(k)if(mS(r)){if((d||In(r).flags&33554432)&&r.body)for(let Z of r.body.statements)oye(Z,d)}else Zy(r.parent)?d?$e(r.name,p.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Jl(Ip(r.name))&&$e(r.name,p.Ambient_module_declaration_cannot_specify_relative_module_name):d?$e(r.name,p.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):$e(r.name,p.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function oye(r,a){switch(r.kind){case 243:for(let f of r.declarationList.declarations)oye(f,a);break;case 277:case 278:eu(r,p.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:if(ck(r))break;case 272:eu(r,p.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:let l=r.name;if(Ws(l)){for(let f of l.elements)oye(f,a);break}case 263:case 266:case 262:case 264:case 267:case 265:if(a)return;break}}function qmt(r){switch(r.kind){case 80:return r;case 166:do r=r.left;while(r.kind!==80);return r;case 211:do{if(dh(r.expression)&&!ji(r.name))return r.name;r=r.expression}while(r.kind!==80);return r}}function kX(r){let a=u2(r);if(!a||Tc(a))return!1;if(!ya(a))return $e(a,p.String_literal_expected),!1;let l=r.parent.kind===268&&e_(r.parent.parent);if(r.parent.kind!==307&&!l)return $e(a,r.kind===278?p.Export_declarations_are_not_permitted_in_a_namespace:p.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(l&&Jl(a.text)&&!oR(r))return $e(r,p.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!Ol(r)&&r.attributes){let f=r.attributes.token===118?p.Import_attribute_values_must_be_string_literal_expressions:p.Import_assertion_values_must_be_string_literal_expressions,d=!1;for(let y of r.attributes.elements)ya(y.value)||(d=!0,$e(y.value,f));return!d}return!0}function xX(r,a=!0){r===void 0||r.kind!==11||(a?(G===5||G===6)&&Tr(r,p.String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020):Tr(r,p.Identifier_expected))}function CX(r){var a,l,f,d;let y=In(r),k=al(y);if(k!==Y){if(y=Va(y.exportSymbol||y),un(r)&&!(k.flags&111551)&&!Xy(r)){let J=b0(r)?r.propertyName||r.name:Gl(r)?r.name:r;if(w.assert(r.kind!==280),r.kind===281){let Z=$e(J,p.Types_cannot_appear_in_export_declarations_in_JavaScript_files),ke=(l=(a=Fr(r).symbol)==null?void 0:a.exports)==null?void 0:l.get(dS(r.propertyName||r.name));if(ke===k){let he=(f=ke.declarations)==null?void 0:f.find(Rw);he&&Xs(Z,cn(he,p._0_is_automatically_exported_here,Li(ke.escapedName)))}}else{w.assert(r.kind!==260);let Z=gr(r,uf(sc,Ol)),ke=(Z&&((d=l2(Z))==null?void 0:d.text))??"...",he=Li(je(J)?J.escapedText:y.escapedName);$e(J,p._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,he,`import("${ke}").${he}`)}return}let R=Ef(k),W=(y.flags&1160127?111551:0)|(y.flags&788968?788968:0)|(y.flags&1920?1920:0);if(R&W){let J=r.kind===281?p.Export_declaration_conflicts_with_exported_declaration_of_0:p.Import_declaration_conflicts_with_local_declaration_of_0;$e(r,J,Qi(y))}else r.kind!==281&&F.isolatedModules&&!gr(r,Xy)&&y.flags&1160127&&$e(r,p.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Qi(y),Ie);if(id(F)&&!Xy(r)&&!(r.flags&33554432)){let J=om(y),Z=!(R&111551);if(Z||J)switch(r.kind){case 273:case 276:case 271:{if(F.verbatimModuleSyntax){w.assertIsDefined(r.name,"An ImportClause with a symbol should have a name");let ke=F.verbatimModuleSyntax&&ck(r)?p.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:Z?p._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:p._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled,he=I0(r.kind===276&&r.propertyName||r.name);sb($e(r,ke,he),Z?void 0:J,he)}Z&&r.kind===271&&hf(r,32)&&$e(r,p.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Ie);break}case 281:if(F.verbatimModuleSyntax||Fr(J)!==Fr(r)){let ke=I0(r.propertyName||r.name),he=Z?$e(r,p.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Ie):$e(r,p._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,ke,Ie);sb(he,Z?void 0:J,ke);break}}if(F.verbatimModuleSyntax&&r.kind!==271&&!un(r)&&e.getEmitModuleFormatOfFile(Fr(r))===1?$e(r,p.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled):G===200&&r.kind!==271&&r.kind!==260&&e.getEmitModuleFormatOfFile(Fr(r))===1&&$e(r,p.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve),F.verbatimModuleSyntax&&!Xy(r)&&!(r.flags&33554432)&&R&128){let ke=k.valueDeclaration,he=e.getRedirectReferenceForResolutionFromSourceOfProject(Fr(ke).resolvedPath);ke.flags&33554432&&(!he||!R0(he.commandLine.options))&&$e(r,p.Cannot_access_ambient_const_enums_when_0_is_enabled,Ie)}}if(a_(r)){let J=cye(y,r);Pv(J)&&J.declarations&&Lg(r,J.declarations,J.escapedName)}}}function cye(r,a){if(!(r.flags&2097152)||Pv(r)||!dp(r))return r;let l=al(r);if(l===Y)return l;for(;r.flags&2097152;){let f=VK(r);if(f){if(f===l)break;if(f.declarations&&Dr(f.declarations))if(Pv(f)){Lg(a,f.declarations,f.escapedName);break}else{if(r===l)break;r=f}}else break}return l}function wX(r){PN(r,r.name),CX(r),r.kind===276&&(xX(r.propertyName),kg(r.propertyName||r.name)&&yh(F)&&e.getEmitModuleFormatOfFile(Fr(r))<4&&Wl(r,131072))}function lye(r){var a;let l=r.attributes;if(l){let f=Cme(!0);f!==Oa&&Fu(um(l),i9(f,32768),l);let d=oV(r),y=jI(l,d?Tr:void 0),k=r.attributes.token===118;if(d&&y)return;if(!Xre(G))return Tr(l,k?p.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_preserve:p.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_preserve);if(G===199&&!k)return eu(l,p.Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert);if(r.moduleSpecifier&&Mv(r.moduleSpecifier)===1)return Tr(l,k?p.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:p.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls);if(zm(r)||(sc(r)?(a=r.importClause)==null?void 0:a.isTypeOnly:r.isTypeOnly))return Tr(l,k?p.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:p.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(y)return Tr(l,p.resolution_mode_can_only_be_set_for_type_only_imports)}}function $mt(r){return f_(Ec(r.value))}function Hmt(r){if(!q9(r,un(r)?p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Qh(r)&&r.modifiers&&eu(r,p.An_import_declaration_cannot_have_modifiers),kX(r)){let a,l=r.importClause;l&&!jht(l)?(l.name&&wX(l),l.namedBindings&&(l.namedBindings.kind===274?(wX(l.namedBindings),e.getEmitModuleFormatOfFile(Fr(r))<4&&yh(F)&&Wl(r,65536)):(a=u_(r,r.moduleSpecifier),a&&or(l.namedBindings.elements,wX))),!l.isTypeOnly&&101<=G&&G<=199&&jh(r.moduleSpecifier,a)&&!Qmt(r)&&$e(r.moduleSpecifier,p.Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0,kw[G])):Ge&&!l&&u_(r,r.moduleSpecifier)}lye(r)}}function Qmt(r){return!!r.attributes&&r.attributes.elements.some(a=>{var l;return Ip(a.name)==="type"&&((l=Vn(a.value,Ha))==null?void 0:l.text)==="json"})}function Kmt(r){if(!q9(r,un(r)?p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(Qh(r),F.erasableSyntaxOnly&&!(r.flags&33554432)&&$e(r,p.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),ck(r)||kX(r)))if(wX(r),aw(r,6),r.moduleReference.kind!==283){let a=al(In(r));if(a!==Y){let l=Ef(a);if(l&111551){let f=h_(r.moduleReference);Ac(f,112575).flags&1920||$e(f,p.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Co(f))}l&788968&&AN(r.name,p.Import_name_cannot_be_0)}r.isTypeOnly&&Tr(r,p.An_import_alias_cannot_use_import_type)}else 5<=G&&G<=99&&!r.isTypeOnly&&!(r.flags&33554432)&&Tr(r,p.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 Xmt(r){if(!q9(r,un(r)?p.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:p.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Qh(r)&&Sre(r)&&eu(r,p.An_export_declaration_cannot_have_modifiers),Ymt(r),!r.moduleSpecifier||kX(r))if(r.exportClause&&!Dg(r.exportClause)){or(r.exportClause.elements,Zmt);let a=r.parent.kind===268&&e_(r.parent.parent),l=!a&&r.parent.kind===268&&!r.moduleSpecifier&&r.flags&33554432;r.parent.kind!==307&&!a&&!l&&$e(r,p.Export_declarations_are_not_permitted_in_a_namespace)}else{let a=u_(r,r.moduleSpecifier);a&&C1(a)?$e(r.moduleSpecifier,p.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Qi(a)):r.exportClause&&(CX(r.exportClause),xX(r.exportClause.name)),e.getEmitModuleFormatOfFile(Fr(r))<4&&(r.exportClause?yh(F)&&Wl(r,65536):Wl(r,32768))}lye(r)}}function Ymt(r){var a;return r.isTypeOnly&&((a=r.exportClause)==null?void 0:a.kind)===279?T7e(r.exportClause):!1}function q9(r,a){let l=r.parent.kind===307||r.parent.kind===268||r.parent.kind===267;return l||eu(r,a),!l}function Zmt(r){CX(r);let a=r.parent.parent.moduleSpecifier!==void 0;if(xX(r.propertyName,a),xX(r.name),K_(F)&&R1(r.propertyName||r.name,!0),a)yh(F)&&e.getEmitModuleFormatOfFile(Fr(r))<4&&kg(r.propertyName||r.name)&&Wl(r,131072);else{let l=r.propertyName||r.name;if(l.kind===11)return;let f=_t(l,l.escapedText,2998271,void 0,!0);f&&(f===le||f===Je||f.declarations&&Zy(F1(f.declarations[0])))?$e(l,p.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,Ln(l)):aw(r,7)}}function egt(r){let a=r.isExportEquals?p.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:p.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(q9(r,a))return;F.erasableSyntaxOnly&&r.isExportEquals&&!(r.flags&33554432)&&$e(r,p.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);let l=r.parent.kind===307?r.parent:r.parent.parent;if(l.kind===267&&!e_(l)){r.isExportEquals?$e(r,p.An_export_assignment_cannot_be_used_in_a_namespace):$e(r,p.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!Qh(r)&&Kz(r)&&eu(r,p.An_export_assignment_cannot_have_modifiers);let f=pl(r);f&&Fu(Ec(r.expression),Fi(f),r.expression);let d=!r.isExportEquals&&!(r.flags&33554432)&&F.verbatimModuleSyntax&&e.getEmitModuleFormatOfFile(Fr(r))===1;if(r.expression.kind===80){let y=r.expression,k=nf(Ac(y,-1,!0,!0,r));if(k){aw(r,3);let R=om(k,111551);if(Ef(k)&111551?(Ec(y),!d&&!(r.flags&33554432)&&F.verbatimModuleSyntax&&R&&$e(y,r.isExportEquals?p.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:p.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,Ln(y))):!d&&!(r.flags&33554432)&&F.verbatimModuleSyntax&&$e(y,r.isExportEquals?p.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:p.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,Ln(y)),!d&&!(r.flags&33554432)&&id(F)&&!(k.flags&111551)){let W=Ef(k,!1,!0);k.flags&2097152&&W&788968&&!(W&111551)&&(!R||Fr(R)!==Fr(r))?$e(y,r.isExportEquals?p._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:p._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,Ln(y),Ie):R&&Fr(R)!==Fr(r)&&sb($e(y,r.isExportEquals?p._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:p._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,Ln(y),Ie),R,Ln(y))}}else Ec(y);K_(F)&&R1(y,!0)}else Ec(r.expression);d&&$e(r,p.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),JOe(l),r.flags&33554432&&!mo(r.expression)&&Tr(r.expression,p.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),r.isExportEquals&&(G>=5&&G!==200&&(r.flags&33554432&&e.getImpliedNodeFormatForEmit(Fr(r))===99||!(r.flags&33554432)&&e.getImpliedNodeFormatForEmit(Fr(r))!==1)?Tr(r,p.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):G===4&&!(r.flags&33554432)&&Tr(r,p.Export_assignment_is_not_supported_when_module_flag_is_system))}function tgt(r){return Nl(r.exports,(a,l)=>l!=="export=")}function JOe(r){let a=In(r),l=$i(a);if(!l.exportsChecked){let f=a.exports.get("export=");if(f&&tgt(a)){let y=dp(f)||f.valueDeclaration;y&&!oR(y)&&!un(y)&&$e(y,p.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}let d=Bh(a);d&&d.forEach(({declarations:y,flags:k},R)=>{if(R==="__export"||k&1920)return;let W=Hy(y,P8(MJe,A8(hu)));if(!(k&524288&&W<=2)&&W>1&&!IX(y))for(let J of y)JSe(J)&&za.add(cn(J,p.Cannot_redeclare_exported_variable_0,Li(R)))}),l.exportsChecked=!0}}function IX(r){return r&&r.length>1&&r.every(a=>un(a)&&Oo(a)&&(lk(a.expression)||dh(a.expression)))}function ka(r){if(r){let a=x;x=r,h=0,rgt(r),x=a}}function rgt(r){if(fw(r)&8388608)return;a4(r)&&or(r.jsDoc,({comment:l,tags:f})=>{GOe(l),or(f,d=>{GOe(d.comment),un(r)&&ka(d)})});let a=r.kind;if(i)switch(a){case 267:case 263:case 264:case 262:i.throwIfCancellationRequested()}switch(a>=243&&a<=259&&$w(r)&&r.flowNode&&!f9(r.flowNode)&&im(F.allowUnreachableCode===!1,r,p.Unreachable_code_detected),a){case 168:return QFe(r);case 169:return KFe(r);case 172:return ZFe(r);case 171:return Wpt(r);case 185:case 184:case 179:case 180:case 181:return QR(r);case 174:case 173:return Bpt(r);case 175:return zpt(r);case 176:return Jpt(r);case 177:case 178:return tOe(r);case 183:return $he(r);case 182:return Fpt(r);case 186:return Hpt(r);case 187:return Qpt(r);case 188:return Kpt(r);case 189:return Xpt(r);case 192:case 193:return Ypt(r);case 196:case 190:case 191:return ka(r.type);case 197:return rdt(r);case 198:return ndt(r);case 194:return idt(r);case 195:return sdt(r);case 203:return adt(r);case 205:return odt(r);case 202:return cdt(r);case 328:return Ddt(r);case 329:return Idt(r);case 346:case 338:case 340:return hdt(r);case 345:return ydt(r);case 344:return vdt(r);case 324:case 325:case 326:return Sdt(r);case 341:return Tdt(r);case 348:return kdt(r);case 317:xdt(r);case 315:case 314:case 312:case 313:case 322:UOe(r),Es(r,ka);return;case 318:ngt(r);return;case 309:return ka(r.type);case 333:case 335:case 334:return Pdt(r);case 350:return bdt(r);case 343:return Cdt(r);case 351:return wdt(r);case 199:return Zpt(r);case 200:return edt(r);case 262:return gdt(r);case 241:case 268:return hX(r);case 243:return $dt(r);case 244:return Hdt(r);case 245:return Qdt(r);case 246:return Ydt(r);case 247:return Zdt(r);case 248:return emt(r);case 249:return rmt(r);case 250:return tmt(r);case 251:case 252:return _mt(r);case 253:return fmt(r);case 254:return pmt(r);case 255:return dmt(r);case 256:return mmt(r);case 257:return gmt(r);case 258:return hmt(r);case 260:return Vdt(r);case 208:return qdt(r);case 263:return Cmt(r);case 264:return Fmt(r);case 265:return Omt(r);case 266:return Bmt(r);case 267:return Vmt(r);case 272:return Hmt(r);case 271:return Kmt(r);case 278:return Xmt(r);case 277:return egt(r);case 242:case 259:Gy(r);return;case 282:return Upt(r)}}function GOe(r){ks(r)&&or(r,a=>{t2(a)&&ka(a)})}function UOe(r){if(!un(r))if(u7(r)||vI(r)){let a=sa(u7(r)?54:58),l=r.postfix?p._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:p._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,f=r.type,d=Fi(f);Tr(r,l,a,tn(vI(r)&&!(d===ar||d===vr)?ri(jr([d,pe],r.postfix?void 0:jt)):d))}else Tr(r,p.JSDoc_types_can_only_be_used_inside_documentation_comments)}function ngt(r){UOe(r),ka(r.type);let{parent:a}=r;if(Bi(a)&&bI(a.parent)){xa(a.parent.parameters)!==a&&$e(r,p.A_rest_parameter_must_be_last_in_a_parameter_list);return}Qb(a)||$e(r,p.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);let l=r.parent.parent;if(!ip(l)){$e(r,p.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}let f=o4(l);if(!f)return;let d=Fb(l);(!d||xa(d.parameters).symbol!==f)&&$e(r,p.A_rest_parameter_must_be_last_in_a_parameter_list)}function igt(r){let a=Fi(r.type),{parent:l}=r,f=r.parent.parent;if(Qb(r.parent)&&ip(f)){let d=Fb(f),y=fG(f.parent.parent);if(d||y){let k=zo(y?f.parent.parent.typeExpression.parameters:d.parameters),R=o4(f);if(!k||R&&k.symbol===R&&Tg(k))return Ru(a)}}return Bi(l)&&bI(l.parent)?Ru(a):Yl(a)}function uw(r){let a=Fr(r),l=wn(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 VOe(r){let a=wn(r);a.deferredNodes&&a.deferredNodes.forEach(sgt),a.deferredNodes=void 0}function sgt(r){var a,l;(a=_n)==null||a.push(_n.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 213:case 214:case 215:case 170:case 286:Ax(r);break;case 218:case 219:case 174:case 173:Zft(r);break;case 177:case 178:tOe(r);break;case 231:xmt(r);break;case 168:Rpt(r);break;case 285:a_t(r);break;case 284:c_t(r);break;case 216:case 234:case 217:kft(r);break;case 222:rs(r.expression);break;case 226:uO(r)&&Ax(r);break}x=f,(l=_n)==null||l.pop()}function agt(r,a){var l,f;(l=_n)==null||l.push(_n.Phase.Check,a?"checkSourceFileNodes":"checkSourceFile",{path:r.path},!0);let d=a?"beforeCheckNodes":"beforeCheck",y=a?"afterCheckNodes":"afterCheck";dc(d),a?cgt(r,a):ogt(r),dc(y),Tp("Check",d,y),(f=_n)==null||f.pop()}function qOe(r,a){if(a)return!1;switch(r){case 0:return!!F.noUnusedLocals;case 1:return!!F.noUnusedParameters;default:return w.assertNever(r)}}function $Oe(r){return Sv.get(r.path)||qe}function ogt(r){let a=wn(r);if(!(a.flags&1)){if(oI(r,F,e))return;b7e(r),Hp(Ym),Hp(xv),Hp(xy),Hp(Fg),Hp(g1),a.flags&8388608&&(Ym=a.potentialThisCollisions,xv=a.potentialNewTargetCollisions,xy=a.potentialWeakMapSetCollisions,Fg=a.potentialReflectCollisions,g1=a.potentialUnusedRenamedBindingElementsInTypes),or(r.statements,ka),ka(r.endOfFileToken),VOe(r),mf(r)&&bb(r),n(()=>{!r.isDeclarationFile&&(F.noUnusedLocals||F.noUnusedParameters)&&fOe($Oe(r),(l,f,d)=>{!s2(l)&&qOe(f,!!(l.flags&33554432))&&za.add(d)}),r.isDeclarationFile||Mdt()}),mf(r)&&JOe(r),Ym.length&&(or(Ym,Odt),Hp(Ym)),xv.length&&(or(xv,Ldt),Hp(xv)),xy.length&&(or(xy,zdt),Hp(xy)),Fg.length&&(or(Fg,Gdt),Hp(Fg)),a.flags|=1}}function cgt(r,a){let l=wn(r);if(!(l.flags&1)){if(oI(r,F,e))return;b7e(r),Hp(Ym),Hp(xv),Hp(xy),Hp(Fg),Hp(g1),or(a,ka),VOe(r),(l.potentialThisCollisions||(l.potentialThisCollisions=[])).push(...Ym),(l.potentialNewTargetCollisions||(l.potentialNewTargetCollisions=[])).push(...xv),(l.potentialWeakMapSetCollisions||(l.potentialWeakMapSetCollisions=[])).push(...xy),(l.potentialReflectCollisions||(l.potentialReflectCollisions=[])).push(...Fg),(l.potentialUnusedRenamedBindingElementsInTypes||(l.potentialUnusedRenamedBindingElementsInTypes=[])).push(...g1),l.flags|=8388608;for(let f of a){let d=wn(f);d.flags|=8388608}}}function HOe(r,a,l){try{return i=a,lgt(r,l)}finally{i=void 0}}function uye(){for(let r of t)r();t=[]}function _ye(r,a){uye();let l=n;n=f=>f(),agt(r,a),n=l}function lgt(r,a){if(r){uye();let l=za.getGlobalDiagnostics(),f=l.length;_ye(r,a);let d=za.getDiagnostics(r.fileName);if(a)return d;let y=za.getGlobalDiagnostics();if(y!==l){let k=wY(l,y,yA);return Ki(k,d)}else if(f===0&&y.length>0)return Ki(y,d);return d}return or(e.getSourceFiles(),l=>_ye(l)),za.getDiagnostics()}function ugt(){return uye(),za.getGlobalDiagnostics()}function _gt(r,a){if(r.flags&67108864)return[];let l=ea(),f=!1;return d(),l.delete("this"),mme(l);function d(){for(;r;){switch(Sg(r)&&r.locals&&!Zy(r)&&k(r.locals,a),r.kind){case 307:if(!xl(r))break;case 267:R(In(r).exports,a&2623475);break;case 266:k(In(r).exports,a&8);break;case 231:r.name&&y(r.symbol,a);case 263:case 264:f||k(Vg(In(r)),a&788968);break;case 218:r.name&&y(r.symbol,a);break}Wte(r)&&y(ee,a),f=Ks(r),r=r.parent}k(ct,a)}function y(W,J){if(rI(W)&J){let Z=W.escapedName;l.has(Z)||l.set(Z,W)}}function k(W,J){J&&W.forEach(Z=>{y(Z,J)})}function R(W,J){J&&W.forEach(Z=>{!Yo(Z,281)&&!Yo(Z,280)&&Z.escapedName!=="default"&&y(Z,J)})}}function fgt(r){return r.kind===80&&w2(r.parent)&&vs(r.parent)===r}function QOe(r){for(;r.parent.kind===166;)r=r.parent;return r.parent.kind===183}function pgt(r){for(;r.parent.kind===211;)r=r.parent;return r.parent.kind===233}function KOe(r,a){let l,f=su(r);for(;f&&!(l=a(f));)f=su(f);return l}function dgt(r){return!!gr(r,a=>lc(a)&&Zp(a.body)||ds(a)?!0:ii(a)||xo(a)?"quit":!1)}function fye(r,a){return!!KOe(r,l=>l===a)}function mgt(r){for(;r.parent.kind===166;)r=r.parent;if(r.parent.kind===271)return r.parent.moduleReference===r?r.parent:void 0;if(r.parent.kind===277)return r.parent.expression===r?r.parent:void 0}function DX(r){return mgt(r)!==void 0}function ggt(r){switch(Vc(r.parent.parent)){case 1:case 3:return Vf(r.parent);case 5:if(Nn(r.parent)&&nI(r.parent)===r)return;case 4:case 2:return In(r.parent.parent)}}function hgt(r){let a=r.parent;for(;y_(a);)r=a,a=a.parent;if(a&&a.kind===205&&a.qualifier===r)return a}function ygt(r){if(r.expression.kind===110){let a=t_(r,!1,!1);if(Ns(a)){let l=a8e(a);if(l){let f=$1(l,void 0),d=c8e(l,f);return d&&!Se(d)}}}}function XOe(r){if(Cg(r))return Vf(r.parent);if(un(r)&&r.parent.kind===211&&r.parent===r.parent.parent.left&&!ji(r)&&!Kb(r)&&!ygt(r.parent)){let a=ggt(r);if(a)return a}if(r.parent.kind===277&&mo(r)){let a=Ac(r,2998271,!0);if(a&&a!==Y)return a}else if(m_(r)&&DX(r)){let a=Lb(r,271);return w.assert(a!==void 0),cx(r,!0)}if(m_(r)){let a=hgt(r);if(a){Fi(a);let l=wn(r).resolvedSymbol;return l===Y?void 0:l}}for(;Ire(r);)r=r.parent;if(pgt(r)){let a=0;r.parent.kind===233?(a=Im(r)?788968:111551,lO(r.parent)&&(a|=111551)):a=1920,a|=2097152;let l=mo(r)?Ac(r,a,!0):void 0;if(l)return l}if(r.parent.kind===341)return o4(r.parent);if(r.parent.kind===168&&r.parent.parent.kind===345){w.assert(!un(r));let a=tre(r.parent);return a&&a.symbol}if(Ud(r)){if(Tc(r))return;let a=gr(r,uf(t2,$A,Kb)),l=a?901119:111551;if(r.kind===80){if(Uw(r)&&cw(r)){let d=$K(r.parent);return d===Y?void 0:d}let f=Ac(r,l,!0,!0,Fb(r));if(!f&&a){let d=gr(r,uf(ii,hu));if(d)return $9(r,!0,In(d))}if(f&&a){let d=bS(r);if(d&&_v(d)&&d===f.valueDeclaration)return Ac(r,l,!0,!0,Fr(d))||f}return f}else{if(ji(r))return XK(r);if(r.kind===211||r.kind===166){let f=wn(r);return f.resolvedSymbol?f.resolvedSymbol:(r.kind===211?(KK(r,0),f.resolvedSymbol||(f.resolvedSymbol=YOe(Ec(r.expression),My(r.name)))):j8e(r,0),!f.resolvedSymbol&&a&&y_(r)?$9(r):f.resolvedSymbol)}else if(Kb(r))return $9(r)}}else if(m_(r)&&QOe(r)){let a=r.parent.kind===183?788968:1920,l=Ac(r,a,!0,!0);return l&&l!==Y?l:QQ(r)}if(r.parent.kind===182)return Ac(r,1,!0)}function YOe(r,a){let l=dme(r,a);if(l.length&&r.members){let f=VQ(pm(r).members);if(l===Mu(r))return f;if(f){let d=$i(f),y=Vi(l,R=>R.declaration),k=hr(y,Ua).join(",");if(d.filteredIndexSymbolCache||(d.filteredIndexSymbolCache=new Map),d.filteredIndexSymbolCache.has(k))return d.filteredIndexSymbolCache.get(k);{let R=da(131072,"__index");return R.declarations=Vi(l,W=>W.declaration),R.parent=r.aliasSymbol?r.aliasSymbol:r.symbol?r.symbol:qp(R.declarations[0].parent),d.filteredIndexSymbolCache.set(k,R),R}}}}function $9(r,a,l){if(m_(r)){let k=Ac(r,901119,a,!0,Fb(r));if(!k&&je(r)&&l&&(k=Va(c_(Nf(l),r.escapedText,901119))),k)return k}let f=je(r)?l:$9(r.left,a,l),d=je(r)?r.escapedText:r.right.escapedText;if(f){let y=f.flags&111551&&ca(an(f),"prototype"),k=y?an(y):Bo(f);return ca(k,d)}}function qp(r,a){if(Mi(r))return xl(r)?Va(r.symbol):void 0;let{parent:l}=r,f=l.parent;if(!(r.flags&67108864)){if(GSe(r)){let d=In(l);return b0(r.parent)&&r.parent.propertyName===r?VK(d):d}else if(l4(r))return In(l.parent);if(r.kind===80){if(DX(r))return XOe(r);if(l.kind===208&&f.kind===206&&r===l.propertyName){let d=_w(f),y=ca(d,r.escapedText);if(y)return y}else if(JA(l)&&l.name===r)return l.keywordToken===105&&Ln(r)==="target"?Dhe(l).symbol:l.keywordToken===102&&Ln(r)==="meta"?JMe().members.get("meta"):void 0}switch(r.kind){case 80:case 81:case 211:case 166:if(!CS(r))return XOe(r);case 110:let d=t_(r,!1,!1);if(Ns(d)){let R=yp(d);if(R.thisParameter)return R.thisParameter}if(LF(r))return rs(r).symbol;case 197:return Hme(r).symbol;case 108:return rs(r).symbol;case 137:let y=r.parent;return y&&y.kind===176?y.parent.symbol:void 0;case 11:case 15:if(Mb(r.parent.parent)&&XP(r.parent.parent)===r||(r.parent.kind===272||r.parent.kind===278)&&r.parent.moduleSpecifier===r||un(r)&&zm(r.parent)&&r.parent.moduleSpecifier===r||un(r)&&R_(r.parent,!1)||jf(r.parent)||lv(r.parent)&&sy(r.parent.parent)&&r.parent.parent.argument===r.parent)return u_(r,r,a);if(qs(l)&&uk(l)&&l.arguments[1]===r)return In(l);case 9:let k=wo(l)?l.argumentExpression===r?ku(l.expression):void 0:lv(l)&&FS(f)?Fi(f.objectType):void 0;return k&&ca(k,gc(r.text));case 90:case 100:case 39:case 86:return Vf(r.parent);case 205:return sy(r)?qp(r.argument.literal,a):void 0;case 95:return Ho(r.parent)?w.checkDefined(r.parent.symbol):void 0;case 102:case 105:return JA(r.parent)?TFe(r.parent).symbol:void 0;case 104:if(vn(r.parent)){let R=ku(r.parent.right),W=Whe(R);return W?.symbol??R.symbol}return;case 236:return rs(r).symbol;case 295:if(Uw(r)&&cw(r)){let R=$K(r.parent);return R===Y?void 0:R}default:return}}}function vgt(r){if(je(r)&&Nn(r.parent)&&r.parent.name===r){let a=My(r),l=ku(r.parent.expression),f=l.flags&1048576?l.types:[l];return ga(f,d=>An(Mu(d),y=>KC(a,y.keyType)))}}function bgt(r){if(r&&r.kind===304)return Ac(r.name,2208703,!0)}function Sgt(r){if(zu(r)){let a=r.propertyName||r.name;return r.parent.parent.moduleSpecifier?ng(r.parent.parent,r):a.kind===11?void 0:Ac(a,2998271,!0)}else return Ac(r,2998271,!0)}function _w(r){if(Mi(r)&&!xl(r)||r.flags&67108864)return Ke;let a=tJ(r),l=a&&Bp(In(a.class));if(Im(r)){let f=Fi(r);return l?Mf(f,l.thisType):f}if(Ud(r))return ZOe(r);if(l&&!a.isImplements){let f=_l(Pl(l));return f?Mf(f,l.thisType):Ke}if(w2(r)){let f=In(r);return Bo(f)}if(fgt(r)){let f=qp(r);return f?Bo(f):Ke}if(Da(r))return lm(r,!0,0)||Ke;if(Ul(r)){let f=In(r);return f?an(f):Ke}if(GSe(r)){let f=qp(r);return f?an(f):Ke}if(Ws(r))return lm(r.parent,!0,0)||Ke;if(DX(r)){let f=qp(r);if(f){let d=Bo(f);return We(d)?an(f):d}}return JA(r.parent)&&r.parent.keywordToken===r.kind?TFe(r.parent):Dk(r)?Cme(!1):Ke}function PX(r){if(w.assert(r.kind===210||r.kind===209),r.parent.kind===250){let d=G9(r.parent);return Nx(r,d||Ke)}if(r.parent.kind===226){let d=ku(r.parent.right);return Nx(r,d||Ke)}if(r.parent.kind===303){let d=Zs(r.parent.parent,Sa),y=PX(d)||Ke,k=Lw(d.properties,r.parent);return LFe(d,y,k)}let a=Zs(r.parent,gu),l=PX(a)||Ke,f=Qv(65,l,pe,r.parent)||Ke;return jFe(a,l,a.elements.indexOf(r),f)}function Tgt(r){let a=PX(Zs(r.parent.parent,zP));return a&&ca(a,r.escapedText)}function ZOe(r){return fA(r)&&(r=r.parent),f_(ku(r))}function e7e(r){let a=Vf(r.parent);return Ks(r)?an(a):Bo(a)}function t7e(r){let a=r.name;switch(a.kind){case 80:return V_(Ln(a));case 9:case 11:return V_(a.text);case 167:let l=Od(a);return Tu(l,12288)?l:ut;default:return w.fail("Unsupported property name.")}}function pye(r){r=__(r);let a=ea(so(r)),l=Bs(r,0).length?sn:Bs(r,1).length?ts:void 0;return l&&or(so(l),f=>{a.has(f.escapedName)||a.set(f.escapedName,f)}),Ss(a)}function AX(r){return Bs(r,0).length!==0||Bs(r,1).length!==0}function r7e(r){let a=kgt(r);return a?ga(a,r7e):[r]}function kgt(r){if(kc(r)&6)return Vi($i(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]:Ux(xgt(r))}}function xgt(r){let a,l=r;for(;l=$i(l).target;)a=l;return a}function Cgt(r){if(Ko(r))return!1;let a=Cs(r,je);if(!a)return!1;let l=a.parent;return l?!((Nn(l)||hl(l))&&l.name===a)&&s8(a)===ee:!1}function wgt(r){return w6(r.parent)&&r===r.parent.name}function Igt(r,a){var l;let f=Cs(r,je);if(f){let d=s8(f,wgt(f));if(d){if(d.flags&1048576){let k=Va(d.exportSymbol);if(!a&&k.flags&944&&!(k.flags&3))return;d=k}let y=rf(d);if(y){if(y.flags&512&&((l=y.valueDeclaration)==null?void 0:l.kind)===307){let k=y.valueDeclaration,R=Fr(f);return k!==R?void 0:k}return gr(f.parent,k=>w6(k)&&In(k)===y)}}}}function Dgt(r){let a=Une(r);if(a)return a;let l=Cs(r,je);if(l){let f=Ggt(l);if(ox(f,111551)&&!om(f,111551))return dp(f)}}function Pgt(r){return r.valueDeclaration&&Da(r.valueDeclaration)&&Kx(r.valueDeclaration).parent.kind===299}function n7e(r){if(r.flags&418&&r.valueDeclaration&&!Mi(r.valueDeclaration)){let a=$i(r);if(a.isDeclarationWithCollidingName===void 0){let l=Gd(r.valueDeclaration);if(mte(l)||Pgt(r))if(_t(l.parent,r.escapedName,111551,void 0,!1))a.isDeclarationWithCollidingName=!0;else if(dye(r.valueDeclaration,16384)){let f=dye(r.valueDeclaration,32768),d=k0(l,!1),y=l.kind===241&&k0(l.parent,!1);a.isDeclarationWithCollidingName=!kte(l)&&(!f||!d&&!y)}else a.isDeclarationWithCollidingName=!1}return a.isDeclarationWithCollidingName}return!1}function Agt(r){if(!Ko(r)){let a=Cs(r,je);if(a){let l=s8(a);if(l&&n7e(l))return l.valueDeclaration}}}function Egt(r){let a=Cs(r,Ul);if(a){let l=In(a);if(l)return n7e(l)}return!1}function i7e(r){switch(w.assert(Ce),r.kind){case 271:return EX(In(r));case 273:case 274:case 276:case 281:let a=In(r);return!!a&&EX(a,!0);case 278:let l=r.exportClause;return!!l&&(Dg(l)||pt(l.elements,i7e));case 277:return r.expression&&r.expression.kind===80?EX(In(r),!0):!0}return!1}function Ngt(r){let a=Cs(r,Ol);return a===void 0||a.parent.kind!==307||!ck(a)?!1:EX(In(a))&&a.moduleReference&&!Tc(a.moduleReference)}function EX(r,a){if(!r)return!1;let l=Fr(r.valueDeclaration),f=l&&In(l);J_(f);let d=nf(al(r));return d===Y?!a||!om(r):!!(Ef(r,a,!0)&111551)&&(R0(F)||!i8(d))}function i8(r){return jhe(r)||!!r.constEnumOnlyModule}function s7e(r,a){if(w.assert(Ce),Lh(r)){let l=In(r),f=l&&$i(l);if(f?.referenced)return!0;let d=$i(l).aliasTarget;if(d&&r_(r)&32&&Ef(d)&111551&&(R0(F)||!i8(d)))return!0}return a?!!Es(r,l=>s7e(l,a)):!1}function a7e(r){if(Zp(r.body)){if(ch(r)||xm(r))return!1;let a=In(r),l=IT(a);return l.length>1||l.length===1&&l[0].declaration!==r}return!1}function Mgt(r){let a=l7e(r);if(!a)return!1;let l=Fi(a);return We(l)||BD(l)}function H9(r,a){return(Rgt(r,a)||Fgt(r))&&!Mgt(r)}function Rgt(r,a){return!te||hR(r)||ip(r)||!r.initializer?!1:ei(r,31)?!!a&&xo(a):!0}function Fgt(r){return te&&hR(r)&&(ip(r)||!r.initializer)&&ei(r,31)}function o7e(r){let a=Cs(r,f=>jc(f)||oi(f));if(!a)return!1;let l;if(oi(a)){if(a.type||!un(a)&&!a8(a))return!1;let f=ZP(a);if(!f||!Jd(f))return!1;l=In(f)}else l=In(a);return!l||!(l.flags&16|3)?!1:!!Nl(Nf(l),f=>f.flags&111551&&P2(f.valueDeclaration))}function Ogt(r){let a=Cs(r,jc);if(!a)return qe;let l=In(a);return l&&so(an(l))||qe}function fw(r){var a;let l=r.id||0;return l<0||l>=aT.length?0:((a=aT[l])==null?void 0:a.flags)||0}function dye(r,a){return Lgt(r,a),!!(fw(r)&a)}function Lgt(r,a){if(!F.noCheck&&CA(Fr(r),F)||wn(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 W(r);case 536870912:return Z(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(mt,Ct){let lr=Ct(mt,mt.parent);if(lr!=="skip")return lr||q2(mt,Ct)}function d(mt){let Ct=wn(mt);if(Ct.calculatedFlags&a)return"skip";Ct.calculatedFlags|=2097536,k(mt)}function y(mt){f(mt,d)}function k(mt){let Ct=wn(mt);Ct.calculatedFlags|=48,mt.kind===108&&WK(mt)}function R(mt){let Ct=wn(mt);if(Ct.calculatedFlags&a)return"skip";Ct.calculatedFlags|=336384,Z(mt)}function W(mt){f(mt,R)}function J(mt){return Ud(mt)||Eu(mt.parent)&&(mt.parent.objectAssignmentInitializer??mt.parent.name)===mt}function Z(mt){let Ct=wn(mt);if(Ct.calculatedFlags|=536870912,je(mt)&&(Ct.calculatedFlags|=49152,J(mt)&&!(Nn(mt.parent)&&mt.parent.name===mt))){let lr=Hu(mt);lr&&lr!==Y&&r8e(mt,lr)}}function ke(mt){let Ct=wn(mt);if(Ct.calculatedFlags&a)return"skip";Ct.calculatedFlags|=53248,Ze(mt)}function he(mt){let Ct=Gd(Cg(mt)?mt.parent:mt);f(Ct,ke)}function Ze(mt){Z(mt),pa(mt)&&Od(mt),ji(mt)&&rl(mt.parent)&&fX(mt.parent)}}function Mx(r){return WOe(r.parent),wn(r).enumMemberValue??Ml(void 0)}function c7e(r){switch(r.kind){case 306:case 211:case 212:return!0}return!1}function mye(r){if(r.kind===306)return Mx(r).value;wn(r).resolvedSymbol||Ec(r);let a=wn(r).resolvedSymbol||(mo(r)?Ac(r,111551,!0):void 0);if(a&&a.flags&8){let l=a.valueDeclaration;if(Nb(l.parent))return Mx(l).value}}function gye(r){return!!(r.flags&524288)&&Bs(r,0).length>0}function jgt(r,a){var l;let f=Cs(r,m_);if(!f||a&&(a=Cs(a),!a))return 0;let d=!1;if(y_(f)){let Z=Ac(h_(f),111551,!0,!0,a);d=!!((l=Z?.declarations)!=null&&l.every(Xy))}let y=Ac(f,111551,!0,!0,a),k=y&&y.flags&2097152?al(y):y;d||(d=!!(y&&om(y,111551)));let R=Ac(f,788968,!0,!0,a),W=R&&R.flags&2097152?al(R):R;if(y||d||(d=!!(R&&om(R,788968))),k&&k===W){let Z=wme(!1);if(Z&&k===Z)return 9;let ke=an(k);if(ke&&Jn(ke))return d?10:1}if(!W)return d?11:0;let J=Bo(W);return We(J)?d?11:0:J.flags&3?11:Tu(J,245760)?2:Tu(J,528)?6:Tu(J,296)?3:Tu(J,2112)?4:Tu(J,402653316)?5:Pa(J)?7:Tu(J,12288)?8:gye(J)?10:Gp(J)?7:11}function Wgt(r,a,l,f,d){let y=Cs(r,VO);if(!y)return A.createToken(133);let k=In(y);return xe.serializeTypeForDeclaration(y,k,a,l|1024,f,d)}function hye(r){r=Cs(r,y6);let a=r.kind===178?177:178,l=Yo(In(r),a),f=l&&l.pos<r.pos?l:r,d=l&&l.pos<r.pos?r:l,y=r.kind===178?r:l,k=r.kind===177?r:l;return{firstAccessor:f,secondAccessor:d,setAccessor:y,getAccessor:k}}function Bgt(r,a,l,f,d){let y=Cs(r,Ns);return y?xe.serializeReturnTypeForSignature(y,a,l|1024,f,d):A.createToken(133)}function zgt(r,a,l,f,d){let y=Cs(r,gt);return y?xe.serializeTypeForExpression(y,a,l|1024,f,d):A.createToken(133)}function Jgt(r){return ct.has(gc(r))}function s8(r,a){let l=wn(r).resolvedSymbol;if(l)return l;let f=r;if(a){let d=r.parent;Ul(d)&&r===d.name&&(f=F1(d))}return _t(f,r.escapedText,3257279,void 0,!0)}function Ggt(r){let a=wn(r).resolvedSymbol;return a&&a!==Y?a:_t(r,r.escapedText,3257279,void 0,!0,void 0)}function Ugt(r){if(!Ko(r)){let a=Cs(r,je);if(a){let l=s8(a);if(l)return nf(l).valueDeclaration}}}function Vgt(r){if(!Ko(r)){let a=Cs(r,je);if(a){let l=s8(a);if(l)return An(nf(l).declarations,f=>{switch(f.kind){case 260:case 169:case 208:case 172:case 303:case 304:case 306:case 210:case 262:case 218:case 219:case 263:case 231:case 266:case 174:case 177:case 178:case 267:return!0}return!1})}}}function qgt(r){return L6(r)||oi(r)&&a8(r)?AT(an(In(r))):!1}function $gt(r,a,l){let f=r.flags&1056?xe.symbolToExpression(r.symbol,111551,a,void 0,void 0,l):r===it?A.createTrue():r===Pr&&A.createFalse();if(f)return f;let d=r.value;return typeof d=="object"?A.createBigIntLiteral(d):typeof d=="string"?A.createStringLiteral(d):d<0?A.createPrefixUnaryExpression(41,A.createNumericLiteral(-d)):A.createNumericLiteral(d)}function Hgt(r,a){let l=an(In(r));return $gt(l,r,a)}function yye(r){return r?(lu(r),Fr(r).localJsxFactory||Ah):Ah}function vye(r){if(r){let a=Fr(r);if(a){if(a.localJsxFragmentFactory)return a.localJsxFragmentFactory;let l=a.pragmas.get("jsxfrag"),f=ks(l)?l[0]:l;if(f)return a.localJsxFragmentFactory=H2(f.arguments.factory,B),a.localJsxFragmentFactory}}if(F.jsxFragmentFactory)return H2(F.jsxFragmentFactory,B)}function l7e(r){let a=pl(r);if(a)return a;if(r.kind===169&&r.parent.kind===178){let l=hye(r.parent).getAccessor;if(l)return Wf(l)}}function Qgt(){return{getReferencedExportContainer:Igt,getReferencedImportDeclaration:Dgt,getReferencedDeclarationWithCollidingName:Agt,isDeclarationWithCollidingName:Egt,isValueAliasDeclaration:a=>{let l=Cs(a);return l&&Ce?i7e(l):!0},hasGlobalName:Jgt,isReferencedAliasDeclaration:(a,l)=>{let f=Cs(a);return f&&Ce?s7e(f,l):!0},hasNodeCheckFlag:(a,l)=>{let f=Cs(a);return f?dye(f,l):!1},isTopLevelValueImportEqualsWithEntityName:Ngt,isDeclarationVisible:Ay,isImplementationOfOverload:a7e,requiresAddingImplicitUndefined:H9,isExpandoFunctionDeclaration:o7e,getPropertiesOfContainerFunction:Ogt,createTypeOfDeclaration:Wgt,createReturnTypeOfSignatureDeclaration:Bgt,createTypeOfExpression:zgt,createLiteralConstValue:Hgt,isSymbolAccessible:sg,isEntityNameVisible:GC,getConstantValue:a=>{let l=Cs(a,c7e);return l?mye(l):void 0},getEnumMemberValue:a=>{let l=Cs(a,_v);return l?Mx(l):void 0},collectLinkedAliases:R1,markLinkedReferences:a=>{let l=Cs(a);return l&&aw(l,0)},getReferencedValueDeclaration:Ugt,getReferencedValueDeclarations:Vgt,getTypeReferenceSerializationKind:jgt,isOptionalParameter:hR,isArgumentsLocalBinding:Cgt,getExternalModuleFileFromDeclaration:a=>{let l=Cs(a,wte);return l&&bye(l)},isLiteralConstDeclaration:qgt,isLateBound:a=>{let l=Cs(a,Ul),f=l&&In(l);return!!(f&&kc(f)&4096)},getJsxFactoryEntity:yye,getJsxFragmentFactoryEntity:vye,isBindingCapturedByNode:(a,l)=>{let f=Cs(a),d=Cs(l);return!!f&&!!d&&(oi(d)||Da(d))&&_ut(f,d)},getDeclarationStatementsForSourceFile:(a,l,f,d)=>{let y=Cs(a);w.assert(y&&y.kind===307,"Non-sourcefile node passed into getDeclarationsForSourceFile");let k=In(a);return k?(J_(k),k.exports?xe.symbolTableToDeclarationStatements(k.exports,a,l,f,d):[]):a.locals?xe.symbolTableToDeclarationStatements(a.locals,a,l,f,d):[]},isImportRequiredByAugmentation:r,isDefinitelyReferenceToGlobalSymbolObject:Zk,createLateBoundIndexSignatures:(a,l,f,d,y)=>{let k=a.symbol,R=Mu(an(k)),W=UQ(k),J=W&&qQ(W,ps(Vg(k).values())),Z;for(let he of[R,J])if(Dr(he)){Z||(Z=[]);for(let Ze of he){if(Ze.declaration||Ze===Ai)continue;if(Ze.components&&Oi(Ze.components,lr=>{var rr;return!!(lr.name&&pa(lr.name)&&mo(lr.name.expression)&&l&&((rr=GC(lr.name.expression,l,!1))==null?void 0:rr.accessibility)===0)})){let lr=An(Ze.components,rr=>!ED(rr));Z.push(...hr(lr,rr=>{ke(rr.name.expression);let rn=he===R?[A.createModifier(126)]:void 0;return A.createPropertyDeclaration(jr(rn,Ze.isReadonly?A.createModifier(148):void 0),rr.name,(s_(rr)||ds(rr)||xd(rr)||xc(rr)||ch(rr)||xm(rr))&&rr.questionToken?A.createToken(58):void 0,xe.typeToTypeNode(an(rr.symbol),l,f,d,y),void 0)}));continue}let mt=xe.indexInfoToIndexSignatureDeclaration(Ze,l,f,d,y);mt&&he===R&&(mt.modifiers||(mt.modifiers=A.createNodeArray())).unshift(A.createModifier(126)),mt&&Z.push(mt)}}return Z;function ke(he){if(!y.trackSymbol)return;let Ze=h_(he),mt=_t(Ze,Ze.escapedText,1160127,void 0,!0);mt&&y.trackSymbol(mt,l,111551)}}};function r(a){let l=Fr(a);if(!l.symbol)return!1;let f=bye(a);if(!f||f===l)return!1;let d=Bh(l.symbol);for(let y of ps(d.values()))if(y.mergeId){let k=Va(y);if(k.declarations){for(let R of k.declarations)if(Fr(R)===f)return!0}}return!1}}function bye(r){let a=r.kind===267?Vn(r.name,ya):u2(r),l=x1(a,a,void 0);if(l)return Yo(l,307)}function Kgt(){for(let a of e.getSourceFiles())Jse(a,F);Eo=new Map;let r;for(let a of e.getSourceFiles())if(!a.redirectInfo){if(!mf(a)){let l=a.locals.get("globalThis");if(l?.declarations)for(let f of l.declarations)za.add(cn(f,p.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));eg(ct,a.locals)}a.jsGlobalAugmentations&&eg(ct,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(up=Ki(up,a.patternAmbientModules)),a.moduleAugmentations.length&&(r||(r=[])).push(a.moduleAugmentations),a.symbol&&a.symbol.globalExports&&a.symbol.globalExports.forEach((f,d)=>{ct.has(d)||ct.set(d,f)})}if(r)for(let a of r)for(let l of a)xg(l.parent)&&jg(l);if(ib(),$i(le).type=j,$i(ee).type=Rc("IArguments",0,!0),$i(Y).type=Ke,$i(Je).type=_r(16,Je),Js=Rc("Array",1,!0),Ee=Rc("Object",0,!0),Wt=Rc("Function",0,!0),sn=ne&&Rc("CallableFunction",0,!0)||Wt,ts=ne&&Rc("NewableFunction",0,!0)||Wt,Wo=Rc("String",0,!0),Qc=Rc("Number",0,!0),hc=Rc("Boolean",0,!0),yc=Rc("RegExp",0,!0),wl=Ru(Fe),Il=Ru(St),Il===Oa&&(Il=tc(void 0,E,qe,qe,qe)),Ma=KMe("ReadonlyArray",1)||Js,If=Ma?dN(Ma,[Fe]):wl,Yc=KMe("ThisType",1),r)for(let a of r)for(let l of a)xg(l.parent)||jg(l);Eo.forEach(({firstFile:a,secondFile:l,conflictingSymbols:f})=>{if(f.size<8)f.forEach(({isBlockScoped:d,firstFileLocations:y,secondFileLocations:k},R)=>{let W=d?p.Cannot_redeclare_block_scoped_variable_0:p.Duplicate_identifier_0;for(let J of y)ex(J,W,R,k);for(let J of k)ex(J,W,R,y)});else{let d=ps(f.keys()).join(", ");za.add(Xs(cn(a,p.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,d),cn(l,p.Conflicts_are_in_this_file))),za.add(Xs(cn(l,p.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,d),cn(a,p.Conflicts_are_in_this_file)))}}),Eo=void 0}function Wl(r,a){if(F.importHelpers){let l=Fr(r);if(jw(l,F)&&!(r.flags&33554432)){let f=Ygt(l,r);if(f!==Y){let d=$i(f);if(d.requestedExternalEmitHelpers??(d.requestedExternalEmitHelpers=0),(d.requestedExternalEmitHelpers&a)!==a){let y=a&~d.requestedExternalEmitHelpers;for(let k=1;k<=16777216;k<<=1)if(y&k)for(let R of Xgt(k)){let W=Pc(c_(Bh(f),gc(R),111551));W?k&524288?pt(IT(W),J=>cf(J)>3)||$e(r,p.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,x0,R,4):k&1048576?pt(IT(W),J=>cf(J)>4)||$e(r,p.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,x0,R,5):k&1024&&(pt(IT(W),J=>cf(J)>2)||$e(r,p.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,x0,R,3)):$e(r,p.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,x0,R)}}d.requestedExternalEmitHelpers|=a}}}}function Xgt(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 Ygt(r,a){let l=wn(r);return l.externalHelpersModule||(l.externalHelpersModule=gT(qht(r),x0,p.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,a)||Y),l.externalHelpersModule}function Qh(r){var a;let l=tht(r)||Zgt(r);if(l!==void 0)return l;if(Bi(r)&&E0(r))return eu(r,p.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);let f=Lc(r)?r.declarationList.flags&7:0,d,y,k,R,W,J=0,Z=!1,ke=!1;for(let he of r.modifiers)if(Rl(he)){if(V6($,r,r.parent,r.parent.parent)){if($&&(r.kind===177||r.kind===178)){let Ze=hye(r);if(rp(Ze.firstAccessor)&&r===Ze.secondAccessor)return eu(r,p.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return r.kind===174&&!Zp(r.body)?eu(r,p.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):eu(r,p.Decorators_are_not_valid_here);if(J&-34849)return Tr(he,p.Decorators_are_not_valid_here);if(ke&&J&98303){w.assertIsDefined(W);let Ze=Fr(he);return Sb(Ze)?!1:(Xs($e(he,p.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),cn(W,p.Decorator_used_before_export_here)),!0)}J|=32768,J&98303?J&32&&(Z=!0):ke=!0,W??(W=he)}else{if(he.kind!==148){if(r.kind===171||r.kind===173)return Tr(he,p._0_modifier_cannot_appear_on_a_type_member,sa(he.kind));if(r.kind===181&&(he.kind!==126||!ii(r.parent)))return Tr(he,p._0_modifier_cannot_appear_on_an_index_signature,sa(he.kind))}if(he.kind!==103&&he.kind!==147&&he.kind!==87&&r.kind===168)return Tr(he,p._0_modifier_cannot_appear_on_a_type_parameter,sa(he.kind));switch(he.kind){case 87:{if(r.kind!==266&&r.kind!==168)return Tr(r,p.A_class_member_cannot_have_the_0_keyword,sa(87));let Ct=ad(r.parent)&&Ob(r.parent)||r.parent;if(r.kind===168&&!(xo(Ct)||ii(Ct)||Ig(Ct)||_I(Ct)||O2(Ct)||K4(Ct)||xd(Ct)))return Tr(he,p._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,sa(he.kind));break}case 164:if(J&16)return Tr(he,p._0_modifier_already_seen,"override");if(J&128)return Tr(he,p._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(J&8)return Tr(he,p._0_modifier_must_precede_1_modifier,"override","readonly");if(J&512)return Tr(he,p._0_modifier_must_precede_1_modifier,"override","accessor");if(J&1024)return Tr(he,p._0_modifier_must_precede_1_modifier,"override","async");J|=16,R=he;break;case 125:case 124:case 123:let Ze=ST(h2(he.kind));if(J&7)return Tr(he,p.Accessibility_modifier_already_seen);if(J&16)return Tr(he,p._0_modifier_must_precede_1_modifier,Ze,"override");if(J&256)return Tr(he,p._0_modifier_must_precede_1_modifier,Ze,"static");if(J&512)return Tr(he,p._0_modifier_must_precede_1_modifier,Ze,"accessor");if(J&8)return Tr(he,p._0_modifier_must_precede_1_modifier,Ze,"readonly");if(J&1024)return Tr(he,p._0_modifier_must_precede_1_modifier,Ze,"async");if(r.parent.kind===268||r.parent.kind===307)return Tr(he,p._0_modifier_cannot_appear_on_a_module_or_namespace_element,Ze);if(J&64)return he.kind===123?Tr(he,p._0_modifier_cannot_be_used_with_1_modifier,Ze,"abstract"):Tr(he,p._0_modifier_must_precede_1_modifier,Ze,"abstract");if(Zu(r))return Tr(he,p.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);J|=h2(he.kind);break;case 126:if(J&256)return Tr(he,p._0_modifier_already_seen,"static");if(J&8)return Tr(he,p._0_modifier_must_precede_1_modifier,"static","readonly");if(J&1024)return Tr(he,p._0_modifier_must_precede_1_modifier,"static","async");if(J&512)return Tr(he,p._0_modifier_must_precede_1_modifier,"static","accessor");if(r.parent.kind===268||r.parent.kind===307)return Tr(he,p._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(r.kind===169)return Tr(he,p._0_modifier_cannot_appear_on_a_parameter,"static");if(J&64)return Tr(he,p._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(J&16)return Tr(he,p._0_modifier_must_precede_1_modifier,"static","override");J|=256,d=he;break;case 129:if(J&512)return Tr(he,p._0_modifier_already_seen,"accessor");if(J&8)return Tr(he,p._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(J&128)return Tr(he,p._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(r.kind!==172)return Tr(he,p.accessor_modifier_can_only_appear_on_a_property_declaration);J|=512;break;case 148:if(J&8)return Tr(he,p._0_modifier_already_seen,"readonly");if(r.kind!==172&&r.kind!==171&&r.kind!==181&&r.kind!==169)return Tr(he,p.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(J&512)return Tr(he,p._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");J|=8;break;case 95:if(F.verbatimModuleSyntax&&!(r.flags&33554432)&&r.kind!==265&&r.kind!==264&&r.kind!==267&&r.parent.kind===307&&e.getEmitModuleFormatOfFile(Fr(r))===1)return Tr(he,p.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(J&32)return Tr(he,p._0_modifier_already_seen,"export");if(J&128)return Tr(he,p._0_modifier_must_precede_1_modifier,"export","declare");if(J&64)return Tr(he,p._0_modifier_must_precede_1_modifier,"export","abstract");if(J&1024)return Tr(he,p._0_modifier_must_precede_1_modifier,"export","async");if(ii(r.parent))return Tr(he,p._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(r.kind===169)return Tr(he,p._0_modifier_cannot_appear_on_a_parameter,"export");if(f===4)return Tr(he,p._0_modifier_cannot_appear_on_a_using_declaration,"export");if(f===6)return Tr(he,p._0_modifier_cannot_appear_on_an_await_using_declaration,"export");J|=32;break;case 90:let mt=r.parent.kind===307?r.parent:r.parent.parent;if(mt.kind===267&&!e_(mt))return Tr(he,p.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(f===4)return Tr(he,p._0_modifier_cannot_appear_on_a_using_declaration,"default");if(f===6)return Tr(he,p._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(J&32){if(Z)return Tr(W,p.Decorators_are_not_valid_here)}else return Tr(he,p._0_modifier_must_precede_1_modifier,"export","default");J|=2048;break;case 138:if(J&128)return Tr(he,p._0_modifier_already_seen,"declare");if(J&1024)return Tr(he,p._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(J&16)return Tr(he,p._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(ii(r.parent)&&!ds(r))return Tr(he,p._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(r.kind===169)return Tr(he,p._0_modifier_cannot_appear_on_a_parameter,"declare");if(f===4)return Tr(he,p._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(f===6)return Tr(he,p._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(r.parent.flags&33554432&&r.parent.kind===268)return Tr(he,p.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(Zu(r))return Tr(he,p._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(J&512)return Tr(he,p._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");J|=128,y=he;break;case 128:if(J&64)return Tr(he,p._0_modifier_already_seen,"abstract");if(r.kind!==263&&r.kind!==185){if(r.kind!==174&&r.kind!==172&&r.kind!==177&&r.kind!==178)return Tr(he,p.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(r.parent.kind===263&&ei(r.parent,64))){let Ct=r.kind===172?p.Abstract_properties_can_only_appear_within_an_abstract_class:p.Abstract_methods_can_only_appear_within_an_abstract_class;return Tr(he,Ct)}if(J&256)return Tr(he,p._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(J&2)return Tr(he,p._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(J&1024&&k)return Tr(k,p._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(J&16)return Tr(he,p._0_modifier_must_precede_1_modifier,"abstract","override");if(J&512)return Tr(he,p._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(Gl(r)&&r.name.kind===81)return Tr(he,p._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");J|=64;break;case 134:if(J&1024)return Tr(he,p._0_modifier_already_seen,"async");if(J&128||r.parent.flags&33554432)return Tr(he,p._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(r.kind===169)return Tr(he,p._0_modifier_cannot_appear_on_a_parameter,"async");if(J&64)return Tr(he,p._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");J|=1024,k=he;break;case 103:case 147:{let Ct=he.kind===103?8192:16384,lr=he.kind===103?"in":"out",rr=ad(r.parent)&&(Ob(r.parent)||On((a=Hw(r.parent))==null?void 0:a.tags,Ek))||r.parent;if(r.kind!==168||rr&&!(hu(rr)||ii(rr)||sd(rr)||Ek(rr)))return Tr(he,p._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,lr);if(J&Ct)return Tr(he,p._0_modifier_already_seen,lr);if(Ct&8192&&J&16384)return Tr(he,p._0_modifier_must_precede_1_modifier,"in","out");J|=Ct;break}}}return r.kind===176?J&256?Tr(d,p._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):J&16?Tr(R,p._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):J&1024?Tr(k,p._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(r.kind===272||r.kind===271)&&J&128?Tr(y,p.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):r.kind===169&&J&31&&Ws(r.name)?Tr(r,p.A_parameter_property_may_not_be_declared_using_a_binding_pattern):r.kind===169&&J&31&&r.dotDotDotToken?Tr(r,p.A_parameter_property_cannot_be_declared_using_a_rest_parameter):J&1024?nht(r,k):!1}function Zgt(r){if(!r.modifiers)return!1;let a=eht(r);return a&&eu(a,p.Modifiers_cannot_appear_here)}function NX(r,a){let l=On(r.modifiers,la);return l&&l.kind!==a?l:void 0}function eht(r){switch(r.kind){case 177:case 178:case 176:case 172:case 171:case 174:case 173:case 181:case 267:case 272:case 271:case 278:case 277:case 218:case 219:case 169:case 168:return;case 175:case 303:case 304:case 270:case 282:return On(r.modifiers,la);default:if(r.parent.kind===268||r.parent.kind===307)return;switch(r.kind){case 262:return NX(r,134);case 263:case 185:return NX(r,128);case 231:case 264:case 265:return On(r.modifiers,la);case 243:return r.declarationList.flags&4?NX(r,135):On(r.modifiers,la);case 266:return NX(r,87);default:w.assertNever(r)}}}function tht(r){let a=rht(r);return a&&eu(a,p.Decorators_are_not_valid_here)}function rht(r){return PG(r)?On(r.modifiers,Rl):void 0}function nht(r,a){switch(r.kind){case 174:case 262:case 218:case 219:return!1}return Tr(a,p._0_modifier_cannot_be_used_here,"async")}function pw(r,a=p.Trailing_comma_not_allowed){return r&&r.hasTrailingComma?BT(r[0],r.end-1,1,a):!1}function u7e(r,a){if(r&&r.length===0){let l=r.pos-1,f=ha(a.text,r.end)+1;return BT(a,l,f-l,p.Type_parameter_list_cannot_be_empty)}return!1}function iht(r){let a=!1,l=r.length;for(let f=0;f<l;f++){let d=r[f];if(d.dotDotDotToken){if(f!==l-1)return Tr(d.dotDotDotToken,p.A_rest_parameter_must_be_last_in_a_parameter_list);if(d.flags&33554432||pw(r,p.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),d.questionToken)return Tr(d.questionToken,p.A_rest_parameter_cannot_be_optional);if(d.initializer)return Tr(d.name,p.A_rest_parameter_cannot_have_an_initializer)}else if(zQ(d)){if(a=!0,d.questionToken&&d.initializer)return Tr(d.name,p.Parameter_cannot_have_question_mark_and_initializer)}else if(a&&!d.initializer)return Tr(d.name,p.A_required_parameter_cannot_follow_an_optional_parameter)}}function sht(r){return An(r,a=>!!a.initializer||Ws(a.name)||Tg(a))}function aht(r){if(B>=3){let a=r.body&&Fs(r.body)&&CG(r.body.statements);if(a){let l=sht(r.parameters);if(Dr(l)){or(l,d=>{Xs($e(d,p.This_parameter_is_not_allowed_with_use_strict_directive),cn(a,p.use_strict_directive_used_here))});let f=l.map((d,y)=>y===0?cn(d,p.Non_simple_parameter_declared_here):cn(d,p.and_here));return Xs($e(a,p.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...f),!0}}}return!1}function MX(r){let a=Fr(r);return Qh(r)||u7e(r.typeParameters,a)||iht(r.parameters)||cht(r,a)||xo(r)&&aht(r)}function oht(r){let a=Fr(r);return pht(r)||u7e(r.typeParameters,a)}function cht(r,a){if(!Lo(r))return!1;r.typeParameters&&!(Dr(r.typeParameters)>1||r.typeParameters.hasTrailingComma||r.typeParameters[0].constraint)&&a&&Gc(a.fileName,[".mts",".cts"])&&Tr(r.typeParameters[0],p.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);let{equalsGreaterThanToken:l}=r,f=Qs(a,l.pos).line,d=Qs(a,l.end).line;return f!==d&&Tr(l,p.Line_terminator_not_permitted_before_arrow)}function lht(r){let a=r.parameters[0];if(r.parameters.length!==1)return Tr(a?a.name:r,p.An_index_signature_must_have_exactly_one_parameter);if(pw(r.parameters,p.An_index_signature_cannot_have_a_trailing_comma),a.dotDotDotToken)return Tr(a.dotDotDotToken,p.An_index_signature_cannot_have_a_rest_parameter);if(Kz(a))return Tr(a.name,p.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(a.questionToken)return Tr(a.questionToken,p.An_index_signature_parameter_cannot_have_a_question_mark);if(a.initializer)return Tr(a.name,p.An_index_signature_parameter_cannot_have_an_initializer);if(!a.type)return Tr(a.name,p.An_index_signature_parameter_must_have_a_type_annotation);let l=Fi(a.type);return Vp(l,f=>!!(f.flags&8576))||z1(l)?Tr(a.name,p.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):of(l,$Q)?r.type?!1:Tr(r,p.An_index_signature_must_have_a_type_annotation):Tr(a.name,p.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function uht(r){return Qh(r)||lht(r)}function _ht(r,a){if(a&&a.length===0){let l=Fr(r),f=a.pos-1,d=ha(l.text,a.end)+1;return BT(l,f,d-f,p.Type_argument_list_cannot_be_empty)}return!1}function Q9(r,a){return pw(a)||_ht(r,a)}function fht(r){return r.questionDotToken||r.flags&64?Tr(r.template,p.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function _7e(r){let a=r.types;if(pw(a))return!0;if(a&&a.length===0){let l=sa(r.token);return BT(r,a.pos,0,p._0_list_cannot_be_empty,l)}return pt(a,f7e)}function f7e(r){return py(r)&&BA(r.expression)&&r.typeArguments?Tr(r,p.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):Q9(r,r.typeArguments)}function pht(r){let a=!1,l=!1;if(!Qh(r)&&r.heritageClauses)for(let f of r.heritageClauses){if(f.token===96){if(a)return eu(f,p.extends_clause_already_seen);if(l)return eu(f,p.extends_clause_must_precede_implements_clause);if(f.types.length>1)return eu(f.types[1],p.Classes_can_only_extend_a_single_class);a=!0}else{if(w.assert(f.token===119),l)return eu(f,p.implements_clause_already_seen);l=!0}_7e(f)}}function dht(r){let a=!1;if(r.heritageClauses)for(let l of r.heritageClauses){if(l.token===96){if(a)return eu(l,p.extends_clause_already_seen);a=!0}else return w.assert(l.token===119),eu(l,p.Interface_declaration_cannot_have_implements_clause);_7e(l)}return!1}function RX(r){if(r.kind!==167)return!1;let a=r;return a.expression.kind===226&&a.expression.operatorToken.kind===28?Tr(a.expression,p.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function Sye(r){if(r.asteriskToken){if(w.assert(r.kind===262||r.kind===218||r.kind===174),r.flags&33554432)return Tr(r.asteriskToken,p.Generators_are_not_allowed_in_an_ambient_context);if(!r.body)return Tr(r.asteriskToken,p.An_overload_signature_cannot_be_declared_as_a_generator)}}function Tye(r,a){return!!r&&Tr(r,a)}function p7e(r,a){return!!r&&Tr(r,a)}function mht(r,a){let l=new Map;for(let f of r.properties){if(f.kind===305){if(a){let k=Ka(f.expression);if(gu(k)||Sa(k))return Tr(f.expression,p.A_rest_element_cannot_contain_a_binding_pattern)}continue}let d=f.name;if(d.kind===167&&RX(d),f.kind===304&&!a&&f.objectAssignmentInitializer&&Tr(f.equalsToken,p.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),d.kind===81&&Tr(d,p.Private_identifiers_are_not_allowed_outside_class_bodies),od(f)&&f.modifiers)for(let k of f.modifiers)la(k)&&(k.kind!==134||f.kind!==174)&&Tr(k,p._0_modifier_cannot_be_used_here,oc(k));else if(Eie(f)&&f.modifiers)for(let k of f.modifiers)la(k)&&Tr(k,p._0_modifier_cannot_be_used_here,oc(k));let y;switch(f.kind){case 304:case 303:p7e(f.exclamationToken,p.A_definite_assignment_assertion_is_not_permitted_in_this_context),Tye(f.questionToken,p.An_object_member_cannot_be_declared_optional),d.kind===9&&S7e(d),d.kind===10&&Iv(!0,cn(d,p.A_bigint_literal_cannot_be_used_as_a_property_name)),y=4;break;case 174:y=8;break;case 177:y=1;break;case 178:y=2;break;default:w.assertNever(f,"Unexpected syntax kind:"+f.kind)}if(!a){let k=Cye(d);if(k===void 0)continue;let R=l.get(k);if(!R)l.set(k,y);else if(y&8&&R&8)Tr(d,p.Duplicate_identifier_0,oc(d));else if(y&4&&R&4)Tr(d,p.An_object_literal_cannot_have_multiple_properties_with_the_same_name,oc(d));else if(y&3&&R&3)if(R!==3&&y!==R)l.set(k,y|R);else return Tr(d,p.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return Tr(d,p.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function ght(r){hht(r.tagName),Q9(r,r.typeArguments);let a=new Map;for(let l of r.attributes.properties){if(l.kind===293)continue;let{name:f,initializer:d}=l,y=EA(f);if(!a.get(y))a.set(y,!0);else return Tr(f,p.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(d&&d.kind===294&&!d.expression)return Tr(d,p.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function hht(r){if(Nn(r)&&Qd(r.expression))return Tr(r.expression,p.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(Qd(r)&&CO(F)&&!Yw(r.namespace.escapedText))return Tr(r,p.React_components_cannot_include_JSX_namespace_names)}function yht(r){if(r.expression&&KA(r.expression))return Tr(r.expression,p.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function d7e(r){if(Gy(r))return!0;if(r.kind===250&&r.awaitModifier&&!(r.flags&65536)){let a=Fr(r);if(RF(r)){if(!Sb(a))switch(jw(a,F)||za.add(cn(r.awaitModifier,p.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)),G){case 100:case 101:case 199:if(a.impliedNodeFormat===1){za.add(cn(r.awaitModifier,p.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(B>=4)break;default:za.add(cn(r.awaitModifier,p.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!Sb(a)){let l=cn(r.awaitModifier,p.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),f=ep(r);if(f&&f.kind!==176){w.assert((Kc(f)&2)===0,"Enclosing function should never be an async function.");let d=cn(f,p.Did_you_mean_to_mark_this_function_as_async);Xs(l,d)}return za.add(l),!0}}if(Z4(r)&&!(r.flags&65536)&&je(r.initializer)&&r.initializer.escapedText==="async")return Tr(r.initializer,p.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(r.initializer.kind===261){let a=r.initializer;if(!xye(a)){let l=a.declarations;if(!l.length)return!1;if(l.length>1){let d=r.kind===249?p.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:p.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return eu(a.declarations[1],d)}let f=l[0];if(f.initializer){let d=r.kind===249?p.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:p.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return Tr(f.name,d)}if(f.type){let d=r.kind===249?p.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:p.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return Tr(f,d)}}}return!1}function vht(r){if(!(r.flags&33554432)&&r.parent.kind!==187&&r.parent.kind!==264){if(B<2&&ji(r.name))return Tr(r.name,p.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(r.body===void 0&&!ei(r,64))return BT(r,r.end-1,1,p._0_expected,"{")}if(r.body){if(ei(r,64))return Tr(r,p.An_abstract_accessor_cannot_have_an_implementation);if(r.parent.kind===187||r.parent.kind===264)return Tr(r.body,p.An_implementation_cannot_be_declared_in_ambient_contexts)}if(r.typeParameters)return Tr(r.name,p.An_accessor_cannot_have_type_parameters);if(!bht(r))return Tr(r.name,r.kind===177?p.A_get_accessor_cannot_have_parameters:p.A_set_accessor_must_have_exactly_one_parameter);if(r.kind===178){if(r.type)return Tr(r.name,p.A_set_accessor_cannot_have_a_return_type_annotation);let a=w.checkDefined(uA(r),"Return value does not match parameter count assertion.");if(a.dotDotDotToken)return Tr(a.dotDotDotToken,p.A_set_accessor_cannot_have_rest_parameter);if(a.questionToken)return Tr(a.questionToken,p.A_set_accessor_cannot_have_an_optional_parameter);if(a.initializer)return Tr(r.name,p.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function bht(r){return kye(r)||r.parameters.length===(r.kind===177?0:1)}function kye(r){if(r.parameters.length===(r.kind===177?1:2))return xS(r)}function Sht(r){if(r.operator===158){if(r.type.kind!==155)return Tr(r.type,p._0_expected,sa(155));let a=c4(r.parent);if(un(a)&&Qb(a)){let l=bS(a);l&&(a=p2(l)||l)}switch(a.kind){case 260:let l=a;if(l.name.kind!==80)return Tr(r,p.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!HP(l))return Tr(r,p.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(l.parent.flags&2))return Tr(a.name,p.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!Ks(a)||!gk(a))return Tr(a.name,p.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!ei(a,8))return Tr(a.name,p.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return Tr(r,p.unique_symbol_types_are_not_allowed_here)}}else if(r.operator===148&&r.type.kind!==188&&r.type.kind!==189)return eu(r,p.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,sa(155))}function EN(r,a){if(Y4e(r)&&!mo(wo(r)?Ka(r.argumentExpression):r.expression))return Tr(r,a)}function m7e(r){if(MX(r))return!0;if(r.kind===174){if(r.parent.kind===210){if(r.modifiers&&!(r.modifiers.length===1&&Ea(r.modifiers).kind===134))return eu(r,p.Modifiers_cannot_appear_here);if(Tye(r.questionToken,p.An_object_member_cannot_be_declared_optional))return!0;if(p7e(r.exclamationToken,p.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(r.body===void 0)return BT(r,r.end-1,1,p._0_expected,"{")}if(Sye(r))return!0}if(ii(r.parent)){if(B<2&&ji(r.name))return Tr(r.name,p.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(r.flags&33554432)return EN(r.name,p.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===174&&!r.body)return EN(r.name,p.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===264)return EN(r.name,p.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===187)return EN(r.name,p.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 Tht(r){let a=r;for(;a;){if(Mw(a))return Tr(r,p.Jump_target_cannot_cross_function_boundary);switch(a.kind){case 256:if(r.label&&a.label.escapedText===r.label.escapedText)return r.kind===251&&!k0(a.statement,!0)?Tr(r,p.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 255:if(r.kind===252&&!r.label)return!1;break;default:if(k0(a,!1)&&!r.label)return!1;break}a=a.parent}if(r.label){let l=r.kind===252?p.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:p.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return Tr(r,l)}else{let l=r.kind===252?p.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:p.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return Tr(r,l)}}function kht(r){if(r.dotDotDotToken){let a=r.parent.elements;if(r!==xa(a))return Tr(r,p.A_rest_element_must_be_last_in_a_destructuring_pattern);if(pw(a,p.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),r.propertyName)return Tr(r.name,p.A_rest_element_cannot_have_a_property_name)}if(r.dotDotDotToken&&r.initializer)return BT(r,r.initializer.pos-1,1,p.A_rest_element_cannot_have_an_initializer)}function g7e(r){return tp(r)||r.kind===224&&r.operator===41&&r.operand.kind===9}function xht(r){return r.kind===10||r.kind===224&&r.operator===41&&r.operand.kind===10}function Cht(r){if((Nn(r)||wo(r)&&g7e(r.argumentExpression))&&mo(r.expression))return!!(Ec(r).flags&1056)}function h7e(r){let a=r.initializer;if(a){let l=!(g7e(a)||Cht(a)||a.kind===112||a.kind===97||xht(a));if((L6(r)||oi(r)&&a8(r))&&!r.type){if(l)return Tr(a,p.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return Tr(a,p.Initializers_are_not_allowed_in_ambient_contexts)}}function wht(r){let a=zT(r),l=a&7;if(Ws(r.name))switch(l){case 6:return Tr(r,p._0_declarations_may_not_have_binding_patterns,"await using");case 4:return Tr(r,p._0_declarations_may_not_have_binding_patterns,"using")}if(r.parent.parent.kind!==249&&r.parent.parent.kind!==250){if(a&33554432)h7e(r);else if(!r.initializer){if(Ws(r.name)&&!Ws(r.parent))return Tr(r,p.A_destructuring_declaration_must_have_an_initializer);switch(l){case 6:return Tr(r,p._0_declarations_must_be_initialized,"await using");case 4:return Tr(r,p._0_declarations_must_be_initialized,"using");case 2:return Tr(r,p._0_declarations_must_be_initialized,"const")}}}if(r.exclamationToken&&(r.parent.parent.kind!==243||!r.type||r.initializer||a&33554432)){let f=r.initializer?p.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r.type?p.A_definite_assignment_assertion_is_not_permitted_in_this_context:p.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Tr(r.exclamationToken,f)}return e.getEmitModuleFormatOfFile(Fr(r))<4&&!(r.parent.parent.flags&33554432)&&ei(r.parent.parent,32)&&y7e(r.name),!!l&&v7e(r.name)}function y7e(r){if(r.kind===80){if(Ln(r)==="__esModule")return Pht("noEmit",r,p.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 y7e(l.name)}return!1}function v7e(r){if(r.kind===80){if(r.escapedText==="let")return Tr(r,p.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)||v7e(l.name)}return!1}function xye(r){let a=r.declarations;if(pw(r.declarations))return!0;if(!r.declarations.length)return BT(r,a.pos,a.end-a.pos,p.Variable_declaration_list_cannot_be_empty);let l=r.flags&7;return(l===4||l===6)&&c7(r.parent)?Tr(r,l===4?p.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:p.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration):l===6?OFe(r):!1}function FX(r){switch(r.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return FX(r.parent)}return!0}function Iht(r){if(!FX(r.parent)){let a=zT(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");return Tr(r,p._0_declarations_can_only_be_declared_inside_a_block,l)}}}function Dht(r){let a=r.name.escapedText;switch(r.keywordToken){case 105:if(a!=="target")return Tr(r.name,p._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Li(r.name.escapedText),sa(r.keywordToken),"target");break;case 102:if(a!=="meta")return Tr(r.name,p._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Li(r.name.escapedText),sa(r.keywordToken),"meta");break}}function Sb(r){return r.parseDiagnostics.length>0}function eu(r,a,...l){let f=Fr(r);if(!Sb(f)){let d=Cm(f,r.pos);return za.add(kl(f,d.start,d.length,a,...l)),!0}return!1}function BT(r,a,l,f,...d){let y=Fr(r);return Sb(y)?!1:(za.add(kl(y,a,l,f,...d)),!0)}function Pht(r,a,l,...f){let d=Fr(a);return Sb(d)?!1:(Og(r,a,l,...f),!0)}function Tr(r,a,...l){let f=Fr(r);return Sb(f)?!1:(za.add(cn(r,a,...l)),!0)}function Aht(r){let a=un(r)?aO(r):void 0,l=r.typeParameters||a&&_l(a);if(l){let f=l.pos===l.end?l.pos:ha(Fr(r).text,l.pos);return BT(r,f,l.end-f,p.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function Eht(r){let a=r.type||Wf(r);if(a)return Tr(a,p.Type_annotation_cannot_appear_on_a_constructor_declaration)}function Nht(r){if(pa(r.name)&&vn(r.name.expression)&&r.name.expression.operatorToken.kind===103)return Tr(r.parent.members[0],p.A_mapped_type_may_not_declare_properties_or_methods);if(ii(r.parent)){if(ya(r.name)&&r.name.text==="constructor")return Tr(r.name,p.Classes_may_not_have_a_field_named_constructor);if(EN(r.name,p.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(B<2&&ji(r.name))return Tr(r.name,p.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(B<2&&N_(r))return Tr(r.name,p.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(N_(r)&&Tye(r.questionToken,p.An_accessor_property_cannot_be_declared_optional))return!0}else if(r.parent.kind===264){if(EN(r.name,p.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,s_),r.initializer)return Tr(r.initializer,p.An_interface_property_cannot_have_an_initializer)}else if(v_(r.parent)){if(EN(r.name,p.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,s_),r.initializer)return Tr(r.initializer,p.A_type_literal_property_cannot_have_an_initializer)}if(r.flags&33554432&&h7e(r),ds(r)&&r.exclamationToken&&(!ii(r.parent)||!r.type||r.initializer||r.flags&33554432||Ks(r)||IS(r))){let a=r.initializer?p.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r.type?p.A_definite_assignment_assertion_is_not_permitted_in_this_context:p.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Tr(r.exclamationToken,a)}}function Mht(r){return r.kind===264||r.kind===265||r.kind===272||r.kind===271||r.kind===278||r.kind===277||r.kind===270||ei(r,2208)?!1:eu(r,p.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function Rht(r){for(let a of r.statements)if((Ul(a)||a.kind===243)&&Mht(a))return!0;return!1}function b7e(r){return!!(r.flags&33554432)&&Rht(r)}function Gy(r){if(r.flags&33554432){if(!wn(r).hasReportedStatementInAmbientContext&&(Ns(r.parent)||T0(r.parent)))return wn(r).hasReportedStatementInAmbientContext=eu(r,p.An_implementation_cannot_be_declared_in_ambient_contexts);if(r.parent.kind===241||r.parent.kind===268||r.parent.kind===307){let l=wn(r.parent);if(!l.hasReportedStatementInAmbientContext)return l.hasReportedStatementInAmbientContext=eu(r,p.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function S7e(r){let a=oc(r).includes("."),l=r.numericLiteralFlags&16;a||l||+r.text<=2**53-1||Iv(!1,cn(r,p.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function Fht(r){return!!(!(lv(r.parent)||Vb(r.parent)&&lv(r.parent.parent))&&B<7&&Tr(r,p.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function Oht(r,a,...l){let f=Fr(r);if(!Sb(f)){let d=Cm(f,r.pos);return za.add(kl(f,mc(d),0,a,...l)),!0}return!1}function Lht(){return bu||(bu=[],ct.forEach((r,a)=>{Hse.test(a)&&bu.push(r)})),bu}function jht(r){var a;return r.isTypeOnly&&r.name&&r.namedBindings?Tr(r,p.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):r.isTypeOnly&&((a=r.namedBindings)==null?void 0:a.kind)===275?T7e(r.namedBindings):!1}function T7e(r){return!!or(r.elements,a=>{if(a.isTypeOnly)return eu(a,a.kind===276?p.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:p.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function Wht(r){if(F.verbatimModuleSyntax&&G===1)return Tr(r,p.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(G===5)return Tr(r,p.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_or_nodenext);if(r.typeArguments)return Tr(r,p.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<=G&&G<=199)&&G!==99&&G!==200&&(pw(a),a.length>1)){let f=a[1];return Tr(f,p.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_nodenext_or_preserve)}if(a.length===0||a.length>2)return Tr(r,p.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);let l=On(a,Rp);return l?Tr(l,p.Argument_of_dynamic_import_cannot_be_spread_element):!1}function Bht(r,a){let l=Mn(r);if(l&20&&a.flags&1048576)return On(a.types,f=>{if(f.flags&524288){let d=l&Mn(f);if(d&4)return r.target===f.target;if(d&16)return!!r.aliasSymbol&&r.aliasSymbol===f.aliasSymbol}return!1})}function zht(r,a){if(Mn(r)&128&&Vp(a,$v))return On(a.types,l=>!$v(l))}function Jht(r,a){let l=0;if(Bs(r,l).length>0||(l=1,Bs(r,l).length>0))return On(a.types,d=>Bs(d,l).length>0)}function Ght(r,a){let l;if(!(r.flags&406978556)){let f=0;for(let d of a.types)if(!(d.flags&406978556)){let y=ma([_g(r),_g(d)]);if(y.flags&4194304)return d;if(dm(y)||y.flags&1048576){let k=y.flags&1048576?Hy(y.types,dm):1;k>=f&&(l=d,f=k)}}}return l}function Uht(r){if(zc(r,67108864)){let a=cl(r,l=>!(l.flags&402784252));if(!(a.flags&131072))return a}return r}function k7e(r,a,l){if(a.flags&1048576&&r.flags&2621440){let f=xRe(a,r);if(f)return f;let d=so(r);if(d){let y=kRe(d,a);if(y){let k=sge(a,hr(y,R=>[()=>an(R),R.escapedName]),l);if(k!==a)return k}}}}function Cye(r){let a=dk(r);return a||(pa(r)?Ege(ku(r.expression)):void 0)}function OX(r){return ur===r||(ur=r,Or=Db(r)),Or}function zT(r){return bt===r||(bt=r,zt=ny(r)),zt}function a8(r){let a=zT(r)&7;return a===2||a===4||a===6}function Vht(r,a){let l=F.importHelpers?1:0,f=r?.imports[l];return f&&w.assert(So(f)&&f.text===a,`Expected sourceFile.imports[${l}] to be the synthesized JSX runtime import`),f}function qht(r){w.assert(F.importHelpers,"Expected importHelpers to be enabled");let a=r.imports[0];return w.assert(a&&So(a)&&a.text==="tslib","Expected sourceFile.imports[0] to be the synthesized tslib import"),a}}function FJe(e){return!T0(e)}function JSe(e){return e.kind!==262&&e.kind!==174||!!e.body}function GSe(e){switch(e.parent.kind){case 276:case 281:return je(e)||e.kind===11;default:return Cg(e)}}var ap;(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"})(ap||(ap={}));var CU;(e=>{e.Fragment="Fragment"})(CU||(CU={}));function USe(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function Gu(e){return!!(e.flags&1)}function VSe(e){return!!(e.flags&2)}function OJe(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:Vs(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return(t=e.getPackageJsonInfoCache)==null?void 0:t.call(e)},useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames(),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(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:Vs(e,e.getGlobalTypingsCacheLocation)}}var Xse=class tLe{constructor(t,n,i){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var s;n instanceof tLe;)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 et(e,t,n,i){if(e===void 0)return e;let s=t(e),o;if(s!==void 0)return ks(s)?o=(i||JJe)(s):o=s,w.assertNode(o,n),o}function Ur(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,_=-1,u=-1;i>0||s<o?c=e.hasTrailingComma&&i+s===o:(_=e.pos,u=e.end,c=e.hasTrailingComma);let g=qSe(e,t,n,i,s);if(g!==e){let m=A.createNodeArray(g,c);return $d(m,_,u),m}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),qSe(e,t,n,i,s)}function qSe(e,t,n,i,s){let o,c=e.length;(i>0||s<c)&&(o=[]);for(let _=0;_<s;_++){let u=e[_+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,_),w.assertEachNode(o,n)),g))if(ks(g))for(let m of g)w.assertNode(m,n),o.push(m);else w.assertNode(g,n),o.push(g)}return o||(w.assertEachNode(e,n),e)}function wU(e,t,n,i,s,o=Ur){return n.startLexicalEnvironment(),e=o(e,t,Ii,i),s&&(e=n.factory.ensureUseStrict(e)),A.mergeLexicalEnvironment(e,n.endLexicalEnvironment())}function Cc(e,t,n,i=Ur){let s;return n.startLexicalEnvironment(),e&&(n.setLexicalEnvironmentFlags(1,!0),s=i(e,t,Bi),n.getLexicalEnvironmentFlags()&2&&wa(n.getCompilerOptions())>=2&&(s=LJe(s,n)),n.setLexicalEnvironmentFlags(1,!1)),n.suspendLexicalEnvironment(),s}function LJe(e,t){let n;for(let i=0;i<e.length;i++){let s=e[i],o=jJe(s,t);(n||o!==s)&&(n||(n=e.slice(0,i)),n[i]=o)}return n?dt(t.factory.createNodeArray(n,e.hasTrailingComma),e):e}function jJe(e,t){return e.dotDotDotToken?e:Ws(e.name)?WJe(e,t):e.initializer?BJe(e,e.name,e.initializer,t):e}function WJe(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 BJe(e,t,n,i){let s=i.factory;return i.addInitializationStatement(s.createIfStatement(s.createTypeCheck(s.cloneNode(t),"undefined"),dn(dt(s.createBlock([s.createExpressionStatement(dn(dt(s.createAssignment(dn(s.cloneNode(t),96),dn(n,96|Na(n)|3072)),e),3072))]),e),3905))),s.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type,void 0)}function op(e,t,n,i=et){n.resumeLexicalEnvironment();let s=i(e,t,oF),o=n.endLexicalEnvironment();if(pt(o)){if(!s)return n.factory.createBlock(o);let c=n.factory.converters.convertToFunctionBlock(s),_=A.mergeLexicalEnvironment(c.statements,o);return n.factory.updateBlock(c,_)}return s}function S_(e,t,n,i=et){n.startBlockScope();let s=i(e,t,Ii,n.factory.liftToBlock);w.assert(s);let o=n.endBlockScope();return pt(o)?Fs(s)?(o.push(...s.statements),n.factory.updateBlock(s,o)):(o.push(s),n.factory.createBlock(o)):s}function IM(e,t,n=t){if(n===t||e.length<=1)return Ur(e,t,gt);let i=0,s=e.length;return Ur(e,o=>{let c=i<s-1;return i++,c?n(o):t(o)},gt)}function Ir(e,t,n=FM,i=Ur,s,o=et){if(e===void 0)return;let c=zJe[e.kind];return c===void 0?e:c(e,t,n,i,o,s)}var zJe={166:function(t,n,i,s,o,c){return i.factory.updateQualifiedName(t,w.checkDefined(o(t.left,n,m_)),w.checkDefined(o(t.right,n,je)))},167:function(t,n,i,s,o,c){return i.factory.updateComputedPropertyName(t,w.checkDefined(o(t.expression,n,gt)))},168:function(t,n,i,s,o,c){return i.factory.updateTypeParameterDeclaration(t,s(t.modifiers,n,la),w.checkDefined(o(t.name,n,je)),o(t.constraint,n,di),o(t.default,n,di))},169:function(t,n,i,s,o,c){return i.factory.updateParameterDeclaration(t,s(t.modifiers,n,Xo),c?o(t.dotDotDotToken,c,t7):t.dotDotDotToken,w.checkDefined(o(t.name,n,rk)),c?o(t.questionToken,c,j0):t.questionToken,o(t.type,n,di),o(t.initializer,n,gt))},170:function(t,n,i,s,o,c){return i.factory.updateDecorator(t,w.checkDefined(o(t.expression,n,gt)))},171:function(t,n,i,s,o,c){return i.factory.updatePropertySignature(t,s(t.modifiers,n,la),w.checkDefined(o(t.name,n,tl)),c?o(t.questionToken,c,j0):t.questionToken,o(t.type,n,di))},172:function(t,n,i,s,o,c){return i.factory.updatePropertyDeclaration(t,s(t.modifiers,n,Xo),w.checkDefined(o(t.name,n,tl)),c?o(t.questionToken??t.exclamationToken,c,Nie):t.questionToken??t.exclamationToken,o(t.type,n,di),o(t.initializer,n,gt))},173:function(t,n,i,s,o,c){return i.factory.updateMethodSignature(t,s(t.modifiers,n,la),w.checkDefined(o(t.name,n,tl)),c?o(t.questionToken,c,j0):t.questionToken,s(t.typeParameters,n,$o),s(t.parameters,n,Bi),o(t.type,n,di))},174:function(t,n,i,s,o,c){return i.factory.updateMethodDeclaration(t,s(t.modifiers,n,Xo),c?o(t.asteriskToken,c,H4):t.asteriskToken,w.checkDefined(o(t.name,n,tl)),c?o(t.questionToken,c,j0):t.questionToken,s(t.typeParameters,n,$o),Cc(t.parameters,n,i,s),o(t.type,n,di),op(t.body,n,i,o))},176:function(t,n,i,s,o,c){return i.factory.updateConstructorDeclaration(t,s(t.modifiers,n,Xo),Cc(t.parameters,n,i,s),op(t.body,n,i,o))},177:function(t,n,i,s,o,c){return i.factory.updateGetAccessorDeclaration(t,s(t.modifiers,n,Xo),w.checkDefined(o(t.name,n,tl)),Cc(t.parameters,n,i,s),o(t.type,n,di),op(t.body,n,i,o))},178:function(t,n,i,s,o,c){return i.factory.updateSetAccessorDeclaration(t,s(t.modifiers,n,Xo),w.checkDefined(o(t.name,n,tl)),Cc(t.parameters,n,i,s),op(t.body,n,i,o))},175:function(t,n,i,s,o,c){return i.startLexicalEnvironment(),i.suspendLexicalEnvironment(),i.factory.updateClassStaticBlockDeclaration(t,op(t.body,n,i,o))},179:function(t,n,i,s,o,c){return i.factory.updateCallSignature(t,s(t.typeParameters,n,$o),s(t.parameters,n,Bi),o(t.type,n,di))},180:function(t,n,i,s,o,c){return i.factory.updateConstructSignature(t,s(t.typeParameters,n,$o),s(t.parameters,n,Bi),o(t.type,n,di))},181:function(t,n,i,s,o,c){return i.factory.updateIndexSignature(t,s(t.modifiers,n,Xo),s(t.parameters,n,Bi),w.checkDefined(o(t.type,n,di)))},182:function(t,n,i,s,o,c){return i.factory.updateTypePredicateNode(t,o(t.assertsModifier,n,Yne),w.checkDefined(o(t.parameterName,n,Mie)),o(t.type,n,di))},183:function(t,n,i,s,o,c){return i.factory.updateTypeReferenceNode(t,w.checkDefined(o(t.typeName,n,m_)),s(t.typeArguments,n,di))},184:function(t,n,i,s,o,c){return i.factory.updateFunctionTypeNode(t,s(t.typeParameters,n,$o),s(t.parameters,n,Bi),w.checkDefined(o(t.type,n,di)))},185:function(t,n,i,s,o,c){return i.factory.updateConstructorTypeNode(t,s(t.modifiers,n,la),s(t.typeParameters,n,$o),s(t.parameters,n,Bi),w.checkDefined(o(t.type,n,di)))},186:function(t,n,i,s,o,c){return i.factory.updateTypeQueryNode(t,w.checkDefined(o(t.exprName,n,m_)),s(t.typeArguments,n,di))},187:function(t,n,i,s,o,c){return i.factory.updateTypeLiteralNode(t,s(t.members,n,uS))},188:function(t,n,i,s,o,c){return i.factory.updateArrayTypeNode(t,w.checkDefined(o(t.elementType,n,di)))},189:function(t,n,i,s,o,c){return i.factory.updateTupleTypeNode(t,s(t.elements,n,di))},190:function(t,n,i,s,o,c){return i.factory.updateOptionalTypeNode(t,w.checkDefined(o(t.type,n,di)))},191:function(t,n,i,s,o,c){return i.factory.updateRestTypeNode(t,w.checkDefined(o(t.type,n,di)))},192:function(t,n,i,s,o,c){return i.factory.updateUnionTypeNode(t,s(t.types,n,di))},193:function(t,n,i,s,o,c){return i.factory.updateIntersectionTypeNode(t,s(t.types,n,di))},194:function(t,n,i,s,o,c){return i.factory.updateConditionalTypeNode(t,w.checkDefined(o(t.checkType,n,di)),w.checkDefined(o(t.extendsType,n,di)),w.checkDefined(o(t.trueType,n,di)),w.checkDefined(o(t.falseType,n,di)))},195:function(t,n,i,s,o,c){return i.factory.updateInferTypeNode(t,w.checkDefined(o(t.typeParameter,n,$o)))},205:function(t,n,i,s,o,c){return i.factory.updateImportTypeNode(t,w.checkDefined(o(t.argument,n,di)),o(t.attributes,n,Dk),o(t.qualifier,n,m_),s(t.typeArguments,n,di),t.isTypeOf)},302:function(t,n,i,s,o,c){return i.factory.updateImportTypeAssertionContainer(t,w.checkDefined(o(t.assertClause,n,lie)),t.multiLine)},202:function(t,n,i,s,o,c){return i.factory.updateNamedTupleMember(t,c?o(t.dotDotDotToken,c,t7):t.dotDotDotToken,w.checkDefined(o(t.name,n,je)),c?o(t.questionToken,c,j0):t.questionToken,w.checkDefined(o(t.type,n,di)))},196:function(t,n,i,s,o,c){return i.factory.updateParenthesizedType(t,w.checkDefined(o(t.type,n,di)))},198:function(t,n,i,s,o,c){return i.factory.updateTypeOperatorNode(t,w.checkDefined(o(t.type,n,di)))},199:function(t,n,i,s,o,c){return i.factory.updateIndexedAccessTypeNode(t,w.checkDefined(o(t.objectType,n,di)),w.checkDefined(o(t.indexType,n,di)))},200:function(t,n,i,s,o,c){return i.factory.updateMappedTypeNode(t,c?o(t.readonlyToken,c,Rie):t.readonlyToken,w.checkDefined(o(t.typeParameter,n,$o)),o(t.nameType,n,di),c?o(t.questionToken,c,Fie):t.questionToken,o(t.type,n,di),s(t.members,n,uS))},201:function(t,n,i,s,o,c){return i.factory.updateLiteralTypeNode(t,w.checkDefined(o(t.literal,n,Yee)))},203:function(t,n,i,s,o,c){return i.factory.updateTemplateLiteralType(t,w.checkDefined(o(t.head,n,M2)),s(t.templateSpans,n,aG))},204:function(t,n,i,s,o,c){return i.factory.updateTemplateLiteralTypeSpan(t,w.checkDefined(o(t.type,n,di)),w.checkDefined(o(t.literal,n,nF)))},206:function(t,n,i,s,o,c){return i.factory.updateObjectBindingPattern(t,s(t.elements,n,Da))},207:function(t,n,i,s,o,c){return i.factory.updateArrayBindingPattern(t,s(t.elements,n,sF))},208:function(t,n,i,s,o,c){return i.factory.updateBindingElement(t,c?o(t.dotDotDotToken,c,t7):t.dotDotDotToken,o(t.propertyName,n,tl),w.checkDefined(o(t.name,n,rk)),o(t.initializer,n,gt))},209:function(t,n,i,s,o,c){return i.factory.updateArrayLiteralExpression(t,s(t.elements,n,gt))},210:function(t,n,i,s,o,c){return i.factory.updateObjectLiteralExpression(t,s(t.properties,n,iy))},211:function(t,n,i,s,o,c){return Z8(t)?i.factory.updatePropertyAccessChain(t,w.checkDefined(o(t.expression,n,gt)),c?o(t.questionDotToken,c,r7):t.questionDotToken,w.checkDefined(o(t.name,n,oh))):i.factory.updatePropertyAccessExpression(t,w.checkDefined(o(t.expression,n,gt)),w.checkDefined(o(t.name,n,oh)))},212:function(t,n,i,s,o,c){return EB(t)?i.factory.updateElementAccessChain(t,w.checkDefined(o(t.expression,n,gt)),c?o(t.questionDotToken,c,r7):t.questionDotToken,w.checkDefined(o(t.argumentExpression,n,gt))):i.factory.updateElementAccessExpression(t,w.checkDefined(o(t.expression,n,gt)),w.checkDefined(o(t.argumentExpression,n,gt)))},213:function(t,n,i,s,o,c){return ZT(t)?i.factory.updateCallChain(t,w.checkDefined(o(t.expression,n,gt)),c?o(t.questionDotToken,c,r7):t.questionDotToken,s(t.typeArguments,n,di),s(t.arguments,n,gt)):i.factory.updateCallExpression(t,w.checkDefined(o(t.expression,n,gt)),s(t.typeArguments,n,di),s(t.arguments,n,gt))},214:function(t,n,i,s,o,c){return i.factory.updateNewExpression(t,w.checkDefined(o(t.expression,n,gt)),s(t.typeArguments,n,di),s(t.arguments,n,gt))},215:function(t,n,i,s,o,c){return i.factory.updateTaggedTemplateExpression(t,w.checkDefined(o(t.tag,n,gt)),s(t.typeArguments,n,di),w.checkDefined(o(t.template,n,e2)))},216:function(t,n,i,s,o,c){return i.factory.updateTypeAssertion(t,w.checkDefined(o(t.type,n,di)),w.checkDefined(o(t.expression,n,gt)))},217:function(t,n,i,s,o,c){return i.factory.updateParenthesizedExpression(t,w.checkDefined(o(t.expression,n,gt)))},218:function(t,n,i,s,o,c){return i.factory.updateFunctionExpression(t,s(t.modifiers,n,la),c?o(t.asteriskToken,c,H4):t.asteriskToken,o(t.name,n,je),s(t.typeParameters,n,$o),Cc(t.parameters,n,i,s),o(t.type,n,di),op(t.body,n,i,o))},219:function(t,n,i,s,o,c){return i.factory.updateArrowFunction(t,s(t.modifiers,n,la),s(t.typeParameters,n,$o),Cc(t.parameters,n,i,s),o(t.type,n,di),c?w.checkDefined(o(t.equalsGreaterThanToken,c,Xne)):t.equalsGreaterThanToken,op(t.body,n,i,o))},220:function(t,n,i,s,o,c){return i.factory.updateDeleteExpression(t,w.checkDefined(o(t.expression,n,gt)))},221:function(t,n,i,s,o,c){return i.factory.updateTypeOfExpression(t,w.checkDefined(o(t.expression,n,gt)))},222:function(t,n,i,s,o,c){return i.factory.updateVoidExpression(t,w.checkDefined(o(t.expression,n,gt)))},223:function(t,n,i,s,o,c){return i.factory.updateAwaitExpression(t,w.checkDefined(o(t.expression,n,gt)))},224:function(t,n,i,s,o,c){return i.factory.updatePrefixUnaryExpression(t,w.checkDefined(o(t.operand,n,gt)))},225:function(t,n,i,s,o,c){return i.factory.updatePostfixUnaryExpression(t,w.checkDefined(o(t.operand,n,gt)))},226:function(t,n,i,s,o,c){return i.factory.updateBinaryExpression(t,w.checkDefined(o(t.left,n,gt)),c?w.checkDefined(o(t.operatorToken,c,Lie)):t.operatorToken,w.checkDefined(o(t.right,n,gt)))},227:function(t,n,i,s,o,c){return i.factory.updateConditionalExpression(t,w.checkDefined(o(t.condition,n,gt)),c?w.checkDefined(o(t.questionToken,c,j0)):t.questionToken,w.checkDefined(o(t.whenTrue,n,gt)),c?w.checkDefined(o(t.colonToken,c,Kne)):t.colonToken,w.checkDefined(o(t.whenFalse,n,gt)))},228:function(t,n,i,s,o,c){return i.factory.updateTemplateExpression(t,w.checkDefined(o(t.head,n,M2)),s(t.templateSpans,n,gI))},229:function(t,n,i,s,o,c){return i.factory.updateYieldExpression(t,c?o(t.asteriskToken,c,H4):t.asteriskToken,o(t.expression,n,gt))},230:function(t,n,i,s,o,c){return i.factory.updateSpreadElement(t,w.checkDefined(o(t.expression,n,gt)))},231:function(t,n,i,s,o,c){return i.factory.updateClassExpression(t,s(t.modifiers,n,Xo),o(t.name,n,je),s(t.typeParameters,n,$o),s(t.heritageClauses,n,vf),s(t.members,n,rl))},233:function(t,n,i,s,o,c){return i.factory.updateExpressionWithTypeArguments(t,w.checkDefined(o(t.expression,n,gt)),s(t.typeArguments,n,di))},234:function(t,n,i,s,o,c){return i.factory.updateAsExpression(t,w.checkDefined(o(t.expression,n,gt)),w.checkDefined(o(t.type,n,di)))},238:function(t,n,i,s,o,c){return i.factory.updateSatisfiesExpression(t,w.checkDefined(o(t.expression,n,gt)),w.checkDefined(o(t.type,n,di)))},235:function(t,n,i,s,o,c){return ju(t)?i.factory.updateNonNullChain(t,w.checkDefined(o(t.expression,n,gt))):i.factory.updateNonNullExpression(t,w.checkDefined(o(t.expression,n,gt)))},236:function(t,n,i,s,o,c){return i.factory.updateMetaProperty(t,w.checkDefined(o(t.name,n,je)))},239:function(t,n,i,s,o,c){return i.factory.updateTemplateSpan(t,w.checkDefined(o(t.expression,n,gt)),w.checkDefined(o(t.literal,n,nF)))},241:function(t,n,i,s,o,c){return i.factory.updateBlock(t,s(t.statements,n,Ii))},243:function(t,n,i,s,o,c){return i.factory.updateVariableStatement(t,s(t.modifiers,n,Xo),w.checkDefined(o(t.declarationList,n,au)))},244:function(t,n,i,s,o,c){return i.factory.updateExpressionStatement(t,w.checkDefined(o(t.expression,n,gt)))},245:function(t,n,i,s,o,c){return i.factory.updateIfStatement(t,w.checkDefined(o(t.expression,n,gt)),w.checkDefined(o(t.thenStatement,n,Ii,i.factory.liftToBlock)),o(t.elseStatement,n,Ii,i.factory.liftToBlock))},246:function(t,n,i,s,o,c){return i.factory.updateDoStatement(t,S_(t.statement,n,i,o),w.checkDefined(o(t.expression,n,gt)))},247:function(t,n,i,s,o,c){return i.factory.updateWhileStatement(t,w.checkDefined(o(t.expression,n,gt)),S_(t.statement,n,i,o))},248:function(t,n,i,s,o,c){return i.factory.updateForStatement(t,o(t.initializer,n,xp),o(t.condition,n,gt),o(t.incrementor,n,gt),S_(t.statement,n,i,o))},249:function(t,n,i,s,o,c){return i.factory.updateForInStatement(t,w.checkDefined(o(t.initializer,n,xp)),w.checkDefined(o(t.expression,n,gt)),S_(t.statement,n,i,o))},250:function(t,n,i,s,o,c){return i.factory.updateForOfStatement(t,c?o(t.awaitModifier,c,sG):t.awaitModifier,w.checkDefined(o(t.initializer,n,xp)),w.checkDefined(o(t.expression,n,gt)),S_(t.statement,n,i,o))},251:function(t,n,i,s,o,c){return i.factory.updateContinueStatement(t,o(t.label,n,je))},252:function(t,n,i,s,o,c){return i.factory.updateBreakStatement(t,o(t.label,n,je))},253:function(t,n,i,s,o,c){return i.factory.updateReturnStatement(t,o(t.expression,n,gt))},254:function(t,n,i,s,o,c){return i.factory.updateWithStatement(t,w.checkDefined(o(t.expression,n,gt)),w.checkDefined(o(t.statement,n,Ii,i.factory.liftToBlock)))},255:function(t,n,i,s,o,c){return i.factory.updateSwitchStatement(t,w.checkDefined(o(t.expression,n,gt)),w.checkDefined(o(t.caseBlock,n,VA)))},256:function(t,n,i,s,o,c){return i.factory.updateLabeledStatement(t,w.checkDefined(o(t.label,n,je)),w.checkDefined(o(t.statement,n,Ii,i.factory.liftToBlock)))},257:function(t,n,i,s,o,c){return i.factory.updateThrowStatement(t,w.checkDefined(o(t.expression,n,gt)))},258:function(t,n,i,s,o,c){return i.factory.updateTryStatement(t,w.checkDefined(o(t.tryBlock,n,Fs)),o(t.catchClause,n,BS),o(t.finallyBlock,n,Fs))},260:function(t,n,i,s,o,c){return i.factory.updateVariableDeclaration(t,w.checkDefined(o(t.name,n,rk)),c?o(t.exclamationToken,c,Q4):t.exclamationToken,o(t.type,n,di),o(t.initializer,n,gt))},261:function(t,n,i,s,o,c){return i.factory.updateVariableDeclarationList(t,s(t.declarations,n,oi))},262:function(t,n,i,s,o,c){return i.factory.updateFunctionDeclaration(t,s(t.modifiers,n,la),c?o(t.asteriskToken,c,H4):t.asteriskToken,o(t.name,n,je),s(t.typeParameters,n,$o),Cc(t.parameters,n,i,s),o(t.type,n,di),op(t.body,n,i,o))},263:function(t,n,i,s,o,c){return i.factory.updateClassDeclaration(t,s(t.modifiers,n,Xo),o(t.name,n,je),s(t.typeParameters,n,$o),s(t.heritageClauses,n,vf),s(t.members,n,rl))},264:function(t,n,i,s,o,c){return i.factory.updateInterfaceDeclaration(t,s(t.modifiers,n,Xo),w.checkDefined(o(t.name,n,je)),s(t.typeParameters,n,$o),s(t.heritageClauses,n,vf),s(t.members,n,uS))},265:function(t,n,i,s,o,c){return i.factory.updateTypeAliasDeclaration(t,s(t.modifiers,n,Xo),w.checkDefined(o(t.name,n,je)),s(t.typeParameters,n,$o),w.checkDefined(o(t.type,n,di)))},266:function(t,n,i,s,o,c){return i.factory.updateEnumDeclaration(t,s(t.modifiers,n,Xo),w.checkDefined(o(t.name,n,je)),s(t.members,n,_v))},267:function(t,n,i,s,o,c){return i.factory.updateModuleDeclaration(t,s(t.modifiers,n,Xo),w.checkDefined(o(t.name,n,Oie)),o(t.body,n,ete))},268:function(t,n,i,s,o,c){return i.factory.updateModuleBlock(t,s(t.statements,n,Ii))},269:function(t,n,i,s,o,c){return i.factory.updateCaseBlock(t,s(t.clauses,n,lF))},270:function(t,n,i,s,o,c){return i.factory.updateNamespaceExportDeclaration(t,w.checkDefined(o(t.name,n,je)))},271:function(t,n,i,s,o,c){return i.factory.updateImportEqualsDeclaration(t,s(t.modifiers,n,Xo),t.isTypeOnly,w.checkDefined(o(t.name,n,je)),w.checkDefined(o(t.moduleReference,n,ste)))},272:function(t,n,i,s,o,c){return i.factory.updateImportDeclaration(t,s(t.modifiers,n,Xo),o(t.importClause,n,Cd),w.checkDefined(o(t.moduleSpecifier,n,gt)),o(t.attributes,n,Dk))},300:function(t,n,i,s,o,c){return i.factory.updateImportAttributes(t,s(t.elements,n,uie),t.multiLine)},301:function(t,n,i,s,o,c){return i.factory.updateImportAttribute(t,w.checkDefined(o(t.name,n,qee)),w.checkDefined(o(t.value,n,gt)))},273:function(t,n,i,s,o,c){return i.factory.updateImportClause(t,t.isTypeOnly,o(t.name,n,je),o(t.namedBindings,n,UB))},274:function(t,n,i,s,o,c){return i.factory.updateNamespaceImport(t,w.checkDefined(o(t.name,n,je)))},280:function(t,n,i,s,o,c){return i.factory.updateNamespaceExport(t,w.checkDefined(o(t.name,n,je)))},275:function(t,n,i,s,o,c){return i.factory.updateNamedImports(t,s(t.elements,n,a_))},276:function(t,n,i,s,o,c){return i.factory.updateImportSpecifier(t,t.isTypeOnly,o(t.propertyName,n,l7),w.checkDefined(o(t.name,n,je)))},277:function(t,n,i,s,o,c){return i.factory.updateExportAssignment(t,s(t.modifiers,n,Xo),w.checkDefined(o(t.expression,n,gt)))},278:function(t,n,i,s,o,c){return i.factory.updateExportDeclaration(t,s(t.modifiers,n,Xo),t.isTypeOnly,o(t.exportClause,n,MB),o(t.moduleSpecifier,n,gt),o(t.attributes,n,Dk))},279:function(t,n,i,s,o,c){return i.factory.updateNamedExports(t,s(t.elements,n,zu))},281:function(t,n,i,s,o,c){return i.factory.updateExportSpecifier(t,t.isTypeOnly,o(t.propertyName,n,l7),w.checkDefined(o(t.name,n,l7)))},283:function(t,n,i,s,o,c){return i.factory.updateExternalModuleReference(t,w.checkDefined(o(t.expression,n,gt)))},284:function(t,n,i,s,o,c){return i.factory.updateJsxElement(t,w.checkDefined(o(t.openingElement,n,Hd)),s(t.children,n,D6),w.checkDefined(o(t.closingElement,n,jS)))},285:function(t,n,i,s,o,c){return i.factory.updateJsxSelfClosingElement(t,w.checkDefined(o(t.tagName,n,JP)),s(t.typeArguments,n,di),w.checkDefined(o(t.attributes,n,WS)))},286:function(t,n,i,s,o,c){return i.factory.updateJsxOpeningElement(t,w.checkDefined(o(t.tagName,n,JP)),s(t.typeArguments,n,di),w.checkDefined(o(t.attributes,n,WS)))},287:function(t,n,i,s,o,c){return i.factory.updateJsxClosingElement(t,w.checkDefined(o(t.tagName,n,JP)))},295:function(t,n,i,s,o,c){return i.factory.updateJsxNamespacedName(t,w.checkDefined(o(t.namespace,n,je)),w.checkDefined(o(t.name,n,je)))},288:function(t,n,i,s,o,c){return i.factory.updateJsxFragment(t,w.checkDefined(o(t.openingFragment,n,wd)),s(t.children,n,D6),w.checkDefined(o(t.closingFragment,n,fie)))},291:function(t,n,i,s,o,c){return i.factory.updateJsxAttribute(t,w.checkDefined(o(t.name,n,Sne)),o(t.initializer,n,ate))},292:function(t,n,i,s,o,c){return i.factory.updateJsxAttributes(t,s(t.properties,n,cF))},293:function(t,n,i,s,o,c){return i.factory.updateJsxSpreadAttribute(t,w.checkDefined(o(t.expression,n,gt)))},294:function(t,n,i,s,o,c){return i.factory.updateJsxExpression(t,o(t.expression,n,gt))},296:function(t,n,i,s,o,c){return i.factory.updateCaseClause(t,w.checkDefined(o(t.expression,n,gt)),s(t.statements,n,Ii))},297:function(t,n,i,s,o,c){return i.factory.updateDefaultClause(t,s(t.statements,n,Ii))},298:function(t,n,i,s,o,c){return i.factory.updateHeritageClause(t,s(t.types,n,py))},299:function(t,n,i,s,o,c){return i.factory.updateCatchClause(t,o(t.variableDeclaration,n,oi),w.checkDefined(o(t.block,n,Fs)))},303:function(t,n,i,s,o,c){return i.factory.updatePropertyAssignment(t,w.checkDefined(o(t.name,n,tl)),w.checkDefined(o(t.initializer,n,gt)))},304:function(t,n,i,s,o,c){return i.factory.updateShorthandPropertyAssignment(t,w.checkDefined(o(t.name,n,je)),o(t.objectAssignmentInitializer,n,gt))},305:function(t,n,i,s,o,c){return i.factory.updateSpreadAssignment(t,w.checkDefined(o(t.expression,n,gt)))},306:function(t,n,i,s,o,c){return i.factory.updateEnumMember(t,w.checkDefined(o(t.name,n,tl)),o(t.initializer,n,gt))},307:function(t,n,i,s,o,c){return i.factory.updateSourceFile(t,wU(t.statements,n,i))},355:function(t,n,i,s,o,c){return i.factory.updatePartiallyEmittedExpression(t,w.checkDefined(o(t.expression,n,gt)))},356:function(t,n,i,s,o,c){return i.factory.updateCommaListExpression(t,s(t.elements,n,gt))}};function JJe(e){return w.assert(e.length<=1,"Too many nodes written to output."),hg(e)}function Yse(e,t,n,i,s){var{enter:o,exit:c}=s.extendedDiagnostics?JW("Source Map","beforeSourcemap","afterSourcemap"):HY,_=[],u=[],g=new Map,m,h=[],S,T=[],x="",I=0,D=0,E=0,O=0,F=0,B=0,G=!1,$=0,K=0,U=0,me=0,te=0,V=0,ne=!1,ie=!1,oe=!1;return{getSources:()=>_,addSource:de,setSourceContent:ye,addName:H,addMapping:De,appendSourceMap:se,toJSON:le,toString:()=>JSON.stringify(le())};function de(ee){o();let Ne=Hx(i,ee,e.getCurrentDirectory(),e.getCanonicalFileName,!0),Ie=g.get(Ne);return Ie===void 0&&(Ie=u.length,u.push(Ne),_.push(ee),g.set(Ne,Ie)),c(),Ie}function ye(ee,Ne){if(o(),Ne!==null){for(m||(m=[]);m.length<ee;)m.push(null);m[ee]=Ne}c()}function H(ee){o(),S||(S=new Map);let Ne=S.get(ee);return Ne===void 0&&(Ne=h.length,h.push(ee),S.set(ee,Ne)),c(),Ne}function ve(ee,Ne){return!ne||$!==ee||K!==Ne}function Ge(ee,Ne,Ie){return ee!==void 0&&Ne!==void 0&&Ie!==void 0&&U===ee&&(me>Ne||me===Ne&&te>Ie)}function De(ee,Ne,Ie,Ce,Ve,bt){w.assert(ee>=$,"generatedLine cannot backtrack"),w.assert(Ne>=0,"generatedCharacter cannot be negative"),w.assert(Ie===void 0||Ie>=0,"sourceIndex cannot be negative"),w.assert(Ce===void 0||Ce>=0,"sourceLine cannot be negative"),w.assert(Ve===void 0||Ve>=0,"sourceCharacter cannot be negative"),o(),(ve(ee,Ne)||Ge(Ie,Ce,Ve))&&(tt(),$=ee,K=Ne,ie=!1,oe=!1,ne=!0),Ie!==void 0&&Ce!==void 0&&Ve!==void 0&&(U=Ie,me=Ce,te=Ve,ie=!0,bt!==void 0&&(V=bt,oe=!0)),c()}function se(ee,Ne,Ie,Ce,Ve,bt){w.assert(ee>=$,"generatedLine cannot backtrack"),w.assert(Ne>=0,"generatedCharacter cannot be negative"),o();let zt=[],ur,Or=AU(Ie.mappings);for(let _t of Or){if(bt&&(_t.generatedLine>bt.line||_t.generatedLine===bt.line&&_t.generatedCharacter>bt.character))break;if(Ve&&(_t.generatedLine<Ve.line||Ve.line===_t.generatedLine&&_t.generatedCharacter<Ve.character))continue;let $t,Hr,hi,_s;if(_t.sourceIndex!==void 0){if($t=zt[_t.sourceIndex],$t===void 0){let hn=Ie.sources[_t.sourceIndex],ui=Ie.sourceRoot?Bn(Ie.sourceRoot,hn):hn,Ue=Bn(Yn(Ce),ui);zt[_t.sourceIndex]=$t=de(Ue),Ie.sourcesContent&&typeof Ie.sourcesContent[_t.sourceIndex]=="string"&&ye($t,Ie.sourcesContent[_t.sourceIndex])}Hr=_t.sourceLine,hi=_t.sourceCharacter,Ie.names&&_t.nameIndex!==void 0&&(ur||(ur=[]),_s=ur[_t.nameIndex],_s===void 0&&(ur[_t.nameIndex]=_s=H(Ie.names[_t.nameIndex])))}let At=_t.generatedLine-(Ve?Ve.line:0),zn=At+ee,ns=Ve&&Ve.line===_t.generatedLine?_t.generatedCharacter-Ve.character:_t.generatedCharacter,Rn=At===0?ns+Ne:ns;De(zn,Rn,$t,Hr,hi,_s)}c()}function xe(){return!G||I!==$||D!==K||E!==U||O!==me||F!==te||B!==V}function _e(ee){T.push(ee),T.length>=1024&&ct()}function tt(){if(!(!ne||!xe())){if(o(),I<$){do _e(59),I++;while(I<$);D=0}else w.assertEqual(I,$,"generatedLine cannot backtrack"),G&&_e(44);Je(K-D),D=K,ie&&(Je(U-E),E=U,Je(me-O),O=me,Je(te-F),F=te,oe&&(Je(V-B),B=V)),G=!0,c()}}function ct(){T.length>0&&(x+=String.fromCharCode.apply(void 0,T),T.length=0)}function le(){return tt(),ct(),{version:3,file:t,sourceRoot:n,sources:u,names:h,mappings:x,sourcesContent:m}}function Je(ee){ee<0?ee=(-ee<<1)+1:ee=ee<<1;do{let Ne=ee&31;ee=ee>>5,ee>0&&(Ne=Ne|32),_e(VJe(Ne))}while(ee>0)}}var Zse=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,IU=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,DU=/^\s*(\/\/[@#] .*)?$/;function PU(e,t){return{getLineCount:()=>t.length,getLineText:n=>e.substring(t[n],t[n+1])}}function eae(e){for(let t=e.getLineCount()-1;t>=0;t--){let n=e.getLineText(t),i=IU.exec(n);if(i)return i[1].trimEnd();if(!n.match(DU))break}}function GJe(e){return typeof e=="string"||e===null}function UJe(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&ks(e.sources)&&Oi(e.sources,ys)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||ks(e.sourcesContent)&&Oi(e.sourcesContent,GJe))&&(e.names===void 0||e.names===null||ks(e.names)&&Oi(e.names,ys))}function tae(e){try{let t=JSON.parse(e);if(UJe(t))return t}catch{}}function AU(e){let t=!1,n=0,i=0,s=0,o=0,c=0,_=0,u=0,g;return{get pos(){return n},get error(){return g},get state(){return m(!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 O=!1,F=!1;if(s+=D(),x())return h();if(s<0)return T("Invalid generatedCharacter found");if(!I()){if(O=!0,o+=D(),x())return h();if(o<0)return T("Invalid sourceIndex found");if(I())return T("Unsupported Format: No entries after sourceIndex");if(c+=D(),x())return h();if(c<0)return T("Invalid sourceLine found");if(I())return T("Unsupported Format: No entries after sourceLine");if(_+=D(),x())return h();if(_<0)return T("Invalid sourceCharacter found");if(!I()){if(F=!0,u+=D(),x())return h();if(u<0)return T("Invalid nameIndex found");if(!I())return T("Unsupported Error Format: Entries after nameIndex")}}return{value:m(O,F),done:t}}return h()},[Symbol.iterator](){return this}};function m(E,O){return{generatedLine:i,generatedCharacter:s,sourceIndex:E?o:void 0,sourceLine:E?c:void 0,sourceCharacter:E?_:void 0,nameIndex:O?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 D(){let E=!0,O=0,F=0;for(;E;n++){if(n>=e.length)return S("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;let B=qJe(e.charCodeAt(n));if(B===-1)return S("Invalid character in VLQ"),-1;E=(B&32)!==0,F=F|(B&31)<<O,O+=5}return(F&1)===0?F=F>>1:(F=F>>1,F=-F),F}}function $Se(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 rae(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function VJe(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 qJe(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 HSe(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function QSe(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function $Je(e,t){return w.assert(e.sourceIndex===t.sourceIndex),Po(e.sourcePosition,t.sourcePosition)}function HJe(e,t){return Po(e.generatedPosition,t.generatedPosition)}function QJe(e){return e.sourcePosition}function KJe(e){return e.generatedPosition}function nae(e,t,n){let i=Yn(n),s=t.sourceRoot?as(t.sourceRoot,i):i,o=as(t.file,i),c=e.getSourceFileLike(o),_=t.sources.map(O=>as(O,s)),u=new Map(_.map((O,F)=>[e.getCanonicalFileName(O),F])),g,m,h;return{getSourcePosition:E,getGeneratedPosition:D};function S(O){let F=c!==void 0?s6(c,O.generatedLine,O.generatedCharacter,!0):-1,B,G;if(rae(O)){let $=e.getSourceFileLike(_[O.sourceIndex]);B=t.sources[O.sourceIndex],G=$!==void 0?s6($,O.sourceLine,O.sourceCharacter,!0):-1}return{generatedPosition:F,source:B,sourceIndex:O.sourceIndex,sourcePosition:G,nameIndex:O.nameIndex}}function T(){if(g===void 0){let O=AU(t.mappings),F=ps(O,S);O.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${O.error}`),g=qe):g=F}return g}function x(O){if(h===void 0){let F=[];for(let B of T()){if(!HSe(B))continue;let G=F[B.sourceIndex];G||(F[B.sourceIndex]=G=[]),G.push(B)}h=F.map(B=>dP(B,$Je,QSe))}return h[O]}function I(){if(m===void 0){let O=[];for(let F of T())O.push(F);m=dP(O,HJe,QSe)}return m}function D(O){let F=u.get(e.getCanonicalFileName(O.fileName));if(F===void 0)return O;let B=x(F);if(!pt(B))return O;let G=Bx(B,O.pos,QJe,Po);G<0&&(G=~G);let $=B[G];return $===void 0||$.sourceIndex!==F?O:{fileName:o,pos:$.generatedPosition}}function E(O){let F=I();if(!pt(F))return O;let B=Bx(F,O.pos,KJe,Po);B<0&&(B=~B);let G=F[B];return G===void 0||!HSe(G)?O:{fileName:_[G.sourceIndex],pos:G.sourcePosition}}}var EU={getSourcePosition:Do,getGeneratedPosition:Do};function T_(e){return e=ic(e),e?Ua(e):0}function KSe(e){return!e||!jm(e)&&!Fp(e)?!1:pt(e.elements,XSe)}function XSe(e){return kg(e.propertyName||e.name)}function Xd(e,t){return n;function n(s){return s.kind===307?t(s):i(s)}function i(s){return e.factory.createBundle(hr(s.sourceFiles,t))}}function iae(e){return!!qw(e)}function e5(e){if(qw(e))return!0;let t=e.importClause&&e.importClause.namedBindings;if(!t||!jm(t))return!1;let n=0;for(let i of t.elements)XSe(i)&&n++;return n>0&&n!==t.elements.length||!!(t.elements.length-n)&&fk(e)}function NU(e){return!e5(e)&&(fk(e)||!!e.importClause&&jm(e.importClause.namedBindings)&&KSe(e.importClause.namedBindings))}function MU(e,t){let n=e.getEmitResolver(),i=e.getCompilerOptions(),s=[],o=new XJe,c=[],_=new Map,u=new Set,g,m=!1,h,S=!1,T=!1,x=!1;for(let O of t.statements)switch(O.kind){case 272:s.push(O),!T&&e5(O)&&(T=!0),!x&&NU(O)&&(x=!0);break;case 271:O.moduleReference.kind===283&&s.push(O);break;case 278:if(O.moduleSpecifier)if(!O.exportClause)s.push(O),S=!0;else if(s.push(O),Fp(O.exportClause))D(O),x||(x=KSe(O.exportClause));else{let F=O.exportClause.name,B=I0(F);_.get(B)||(cE(c,T_(O),F),_.set(B,!0),g=jr(g,F)),T=!0}else D(O);break;case 277:O.isExportEquals&&!h&&(h=O);break;case 243:if(ei(O,32))for(let F of O.declarationList.declarations)g=YSe(F,_,g,c);break;case 262:ei(O,32)&&E(O,void 0,ei(O,2048));break;case 263:if(ei(O,32))if(ei(O,2048))m||(cE(c,T_(O),e.factory.getDeclarationName(O)),m=!0);else{let F=O.name;F&&!_.get(Ln(F))&&(cE(c,T_(O),F),_.set(Ln(F),!0),g=jr(g,F))}break}let I=wG(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 D(O){for(let F of Zs(O.exportClause,Fp).elements){let B=I0(F.name);if(!_.get(B)){let G=F.propertyName||F.name;if(G.kind!==11){O.moduleSpecifier||o.add(G,F);let $=n.getReferencedImportDeclaration(G)||n.getReferencedValueDeclaration(G);if($){if($.kind===262){E($,F.name,kg(F.name));continue}cE(c,T_($),F.name)}}_.set(B,!0),g=jr(g,F.name)}}}function E(O,F,B){if(u.add(ic(O,jc)),B)m||(cE(c,T_(O),F??e.factory.getDeclarationName(O)),m=!0);else{F??(F=O.name);let G=I0(F);_.get(G)||(cE(c,T_(O),F),_.set(G,!0))}}}function YSe(e,t,n,i){if(Ws(e.name))for(let s of e.name.elements)Fl(s)||(n=YSe(s,t,n,i));else if(!Ko(e.name)){let s=Ln(e.name);t.get(s)||(t.set(s,!0),n=jr(n,e.name),my(e.name)&&cE(i,T_(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 oP{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(oP.toKey(t))}get(t){return this._map.get(oP.toKey(t))}set(t,n){return this._map.set(oP.toKey(t),n),this}delete(t){var n;return((n=this._map)==null?void 0:n.delete(oP.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(tk(t)||Ko(t)){let n=t.emitNode.autoGenerate;if((n.flags&7)===4){let i=lM(t),s=oh(i)&&i!==t?oP.toKey(i):`(generated@${Ua(i)})`;return Xb(!1,n.prefix,s,n.suffix,oP.toKey)}else{let i=`(auto@${n.id})`;return Xb(!1,n.prefix,i,n.suffix,oP.toKey)}}return ji(t)?Ln(t).slice(1):Ln(t)}},XJe=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&&(Gx(n,t),n.length||this.delete(e))}};function US(e){return Ha(e)||e.kind===9||F_(e.kind)||je(e)}function Jm(e){return!je(e)&&US(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 t5(e){if(!$l(e))return;let t=Ka(e.expression);return ok(t)?t:void 0}function ZSe(e,t,n){for(let i=t;i<e.length;i+=1){let s=e[i];if(t5(s))return n.unshift(i),!0;if(Ik(s)&&ZSe(s.tryBlock.statements,0,n))return n.unshift(i),!0}return!1}function r5(e,t){let n=[];return ZSe(e,t,n),n}function RU(e,t,n){return An(e.members,i=>ZJe(i,t,n))}function YJe(e){return eGe(e)||Nc(e)}function n5(e){return An(e.members,YJe)}function ZJe(e,t,n){return ds(e)&&(!!e.initializer||!t)&&Tl(e)===n}function eGe(e){return ds(e)&&Tl(e)}function DM(e){return e.kind===172&&e.initializer!==void 0}function sae(e){return!Ks(e)&&(Zx(e)||N_(e))&&ji(e.name)}function aae(e){let t;if(e){let n=e.parameters,i=n.length>0&&E0(n[0]),s=i?1:0,o=i?n.length-1:n.length;for(let c=0;c<o;c++){let _=n[c+s];(t||rp(_))&&(t||(t=new Array(o)),t[c]=g0(_))}}return t}function FU(e,t){let n=g0(e),i=t?aae(mh(e)):void 0;if(!(!pt(n)&&!pt(i)))return{decorators:n,parameters:i}}function i5(e,t,n){switch(e.kind){case 177:case 178:return n?tGe(e,t,!0):eTe(e,!1);case 174:return eTe(e,n);case 172:return rGe(e);default:return}}function tGe(e,t,n){if(!e.body)return;let{firstAccessor:i,secondAccessor:s,getAccessor:o,setAccessor:c}=wS(t.members,e),_=rp(i)?i:s&&rp(s)?s:void 0;if(!_||e!==_)return;let u=g0(_),g=n?aae(c):void 0;if(!(!pt(u)&&!pt(g)))return{decorators:u,parameters:g,getDecorators:o&&g0(o),setDecorators:c&&g0(c)}}function eTe(e,t){if(!e.body)return;let n=g0(e),i=t?aae(e):void 0;if(!(!pt(n)&&!pt(i)))return{decorators:n,parameters:i}}function rGe(e){let t=g0(e);if(pt(t))return{decorators:t}}function nGe(e,t){for(;e;){let n=t(e);if(n!==void 0)return n;e=e.previous}}function oae(e){return{data:e}}function OU(e,t){var n,i;return tk(t)?(n=e?.generatedIdentifiers)==null?void 0:n.get(lM(t)):(i=e?.identifiers)==null?void 0:i.get(t.escapedText)}function Lk(e,t,n){tk(t)?(e.generatedIdentifiers??(e.generatedIdentifiers=new Map),e.generatedIdentifiers.set(lM(t),n)):(e.identifiers??(e.identifiers=new Map),e.identifiers.set(t.escapedText,n))}function cae(e,t){return nGe(e,n=>OU(n.privateEnv,t))}function iGe(e){return!e.initializer&&je(e.name)}function PM(e){return Oi(e,iGe)}function Y2(e,t){if(!e||!ya(e)||!i4(e.text,t))return e;let n=fy(e.text,OM(e.text,t));return n!==e.text?En(dt(A.createStringLiteral(n,e.singleQuote),e),e):e}var lae=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(lae||{});function jk(e,t,n,i,s,o){let c=e,_;if(rv(e))for(_=e.right;Pre(e.left)||nJ(e.left);)if(rv(_))c=e=_,_=e.right;else return w.checkDefined(et(_,t,gt));let u,g={context:n,level:i,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:m,emitBindingOrAssignment:h,createArrayBindingOrAssignmentPattern:S=>fGe(n.factory,S),createObjectBindingOrAssignmentPattern:S=>dGe(n.factory,S),createArrayBindingOrAssignmentElement:gGe,visitor:t};if(_&&(_=et(_,t,gt),w.assert(_),je(_)&&uae(e,_.escapedText)||_ae(e)?_=Z2(g,_,!1,c):s?_=Z2(g,_,!0,c):So(e)&&(c=_)),_E(g,e,_,c,rv(e)),_&&s){if(!pt(u))return _;u.push(_)}return n.factory.inlineExpressions(u)||n.factory.createOmittedExpression();function m(S){u=jr(u,S)}function h(S,T,x,I){w.assertNode(S,o?je:gt);let D=o?o(S,T,x):dt(n.factory.createAssignment(w.checkDefined(et(S,t,gt)),T),x);D.original=I,m(D)}}function uae(e,t){let n=J0(e);return S6(n)?sGe(n,t):je(n)?n.escapedText===t:!1}function sGe(e,t){let n=CI(e);for(let i of n)if(uae(i,t))return!0;return!1}function _ae(e){let t=b7(e);if(t&&pa(t)&&!ek(t.expression))return!0;let n=J0(e);return!!n&&S6(n)&&aGe(n)}function aGe(e){return!!or(CI(e),_ae)}function VS(e,t,n,i,s,o=!1,c){let _,u=[],g=[],m={context:n,level:i,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:o,emitExpression:h,emitBindingOrAssignment:S,createArrayBindingOrAssignmentPattern:T=>_Ge(n.factory,T),createObjectBindingOrAssignmentPattern:T=>pGe(n.factory,T),createArrayBindingOrAssignmentElement:T=>mGe(n.factory,T),visitor:t};if(oi(e)){let T=oM(e);T&&(je(T)&&uae(e,T.escapedText)||_ae(e))&&(T=Z2(m,w.checkDefined(et(T,m.visitor,gt)),!1,T),e=n.factory.updateVariableDeclaration(e,e.name,void 0,void 0,T))}if(_E(m,e,s,e,c),_){let T=n.factory.createTempVariable(void 0);if(o){let x=n.factory.inlineExpressions(_);_=void 0,S(T,x,void 0,void 0)}else{n.hoistVariableDeclaration(T);let x=xa(u);x.pendingExpressions=jr(x.pendingExpressions,n.factory.createAssignment(T,x.value)),jn(x.pendingExpressions,_),x.value=T}}for(let{pendingExpressions:T,name:x,value:I,location:D,original:E}of u){let O=n.factory.createVariableDeclaration(x,void 0,void 0,T?n.factory.inlineExpressions(jr(T,I)):I);O.original=E,dt(O,D),g.push(O)}return g;function h(T){_=jr(_,T)}function S(T,x,I,D){w.assertNode(T,rk),_&&(x=n.factory.inlineExpressions(jr(_,x)),_=void 0),u.push({pendingExpressions:_,name:T,value:x,location:I,original:D})}}function _E(e,t,n,i,s){let o=J0(t);if(!s){let c=et(oM(t),e.visitor,gt);c?n?(n=lGe(e,n,c,i),!Jm(c)&&S6(o)&&(n=Z2(e,n,!0,i))):n=c:n||(n=e.context.factory.createVoidZero())}WB(o)?oGe(e,t,o,n,i):BB(o)?cGe(e,t,o,n,i):e.emitBindingOrAssignment(o,n,i,t)}function oGe(e,t,n,i,s){let o=CI(n),c=o.length;if(c!==1){let g=!b6(t)||c!==0;i=Z2(e,i,g,s)}let _,u;for(let g=0;g<c;g++){let m=o[g];if(v7(m)){if(g===c-1){_&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(_),i,s,n),_=void 0);let h=e.context.getEmitHelperFactory().createRestHelper(i,o,u,n);_E(e,m,h,m)}}else{let h=IG(m);if(e.level>=1&&!(m.transformFlags&98304)&&!(J0(m).transformFlags&98304)&&!pa(h))_=jr(_,et(m,e.visitor,Qee));else{_&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(_),i,s,n),_=void 0);let S=uGe(e,i,h);pa(h)&&(u=jr(u,S.argumentExpression)),_E(e,m,S,m)}}}_&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(_),i,s,n)}function cGe(e,t,n,i,s){let o=CI(n),c=o.length;if(e.level<1&&e.downlevelIteration)i=Z2(e,dt(e.context.getEmitHelperFactory().createReadHelper(i,c>0&&v7(o[c-1])?void 0:c),s),!1,s);else if(c!==1&&(e.level<1||c===0)||Oi(o,Fl)){let g=!b6(t)||c!==0;i=Z2(e,i,g,s)}let _,u;for(let g=0;g<c;g++){let m=o[g];if(e.level>=1)if(m.transformFlags&65536||e.hasTransformedPriorElement&&!tTe(m)){e.hasTransformedPriorElement=!0;let h=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(h),u=jr(u,[h,m]),_=jr(_,e.createArrayBindingOrAssignmentElement(h))}else _=jr(_,m);else{if(Fl(m))continue;if(v7(m)){if(g===c-1){let h=e.context.factory.createArraySliceCall(i,g);_E(e,m,h,m)}}else{let h=e.context.factory.createElementAccessExpression(i,g);_E(e,m,h,m)}}}if(_&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(_),i,s,n),u)for(let[g,m]of u)_E(e,m,g,m)}function tTe(e){let t=J0(e);if(!t||Fl(t))return!0;let n=b7(e);if(n&&!Pm(n))return!1;let i=oM(e);return i&&!Jm(i)?!1:S6(t)?Oi(CI(t),tTe):je(t)}function lGe(e,t,n,i){return t=Z2(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,n,void 0,t)}function uGe(e,t,n){let{factory:i}=e.context;if(pa(n)){let s=Z2(e,w.checkDefined(et(n.expression,e.visitor,gt)),!1,n);return e.context.factory.createElementAccessExpression(t,s)}else if(tp(n)||LA(n)){let s=i.cloneNode(n);return e.context.factory.createElementAccessExpression(t,s)}else{let s=e.context.factory.createIdentifier(Ln(n));return e.context.factory.createPropertyAccessExpression(t,s)}}function Z2(e,t,n,i){if(je(t)&&n)return t;{let s=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(s),e.emitExpression(dt(e.context.factory.createAssignment(s,t),i))):e.emitBindingOrAssignment(s,t,i,void 0),s}}function _Ge(e,t){return w.assertEachNode(t,sF),e.createArrayBindingPattern(t)}function fGe(e,t){return w.assertEachNode(t,k6),e.createArrayLiteralExpression(hr(t,e.converters.convertToArrayAssignmentElement))}function pGe(e,t){return w.assertEachNode(t,Da),e.createObjectBindingPattern(t)}function dGe(e,t){return w.assertEachNode(t,T6),e.createObjectLiteralExpression(hr(t,e.converters.convertToObjectAssignmentElement))}function mGe(e,t){return e.createBindingElement(void 0,void 0,t)}function gGe(e){return e}function hGe(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 Au(c).classThis=t,c}function fE(e){var t;if(!Nc(e)||e.body.statements.length!==1)return!1;let n=e.body.statements[0];return $l(n)&&ql(n.expression,!0)&&je(n.expression.left)&&((t=e.emitNode)==null?void 0:t.classThis)===n.expression.left&&n.expression.right.kind===110}function LU(e){var t;return!!((t=e.emitNode)!=null&&t.classThis)&&pt(e.members,fE)}function fae(e,t,n,i){if(LU(t))return t;let s=hGe(e,n,i);t.name&&Ia(s.body.statements[0],t.name);let o=e.createNodeArray([s,...t.members]);dt(o,t.members);let c=gl(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 Au(c).classThis=n,c}function s5(e,t,n){let i=ic(Wc(n));return(gl(i)||jc(i))&&!i.name&&ei(i,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function rTe(e,t,n){let{factory:i}=e;if(n!==void 0)return{assignedName:i.createStringLiteral(n),name:t};if(Pm(t)||ji(t))return{assignedName:i.createStringLiteralFromNode(t),name:t};if(Pm(t.expression)&&!je(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),_=i.updateComputedPropertyName(t,c);return{assignedName:s,name:_}}function yGe(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),_=i.createClassStaticBlockDeclaration(c);return Au(_).assignedName=t,_}function eC(e){var t;if(!Nc(e)||e.body.statements.length!==1)return!1;let n=e.body.statements[0];return $l(n)&&OA(n.expression,"___setFunctionName")&&n.expression.arguments.length>=2&&n.expression.arguments[1]===((t=e.emitNode)==null?void 0:t.assignedName)}function a5(e){var t;return!!((t=e.emitNode)!=null&&t.assignedName)&&pt(e.members,eC)}function jU(e){return!!e.name||a5(e)}function o5(e,t,n,i){if(a5(t))return t;let{factory:s}=e,o=yGe(e,n,i);t.name&&Ia(o.body.statements[0],t.name);let c=Sc(t.members,fE)+1,_=t.members.slice(0,c),u=t.members.slice(c),g=s.createNodeArray([..._,o,...u]);return dt(g,t.members),t=gl(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),Au(t).assignedName=n,t}function OI(e,t,n,i){if(i&&ya(n)&&yz(n))return t;let{factory:s}=e,o=Wc(t),c=ml(o)?Zs(o5(e,o,n),ml):e.getEmitHelperFactory().createSetFunctionNameHelper(o,n);return s.restoreOuterExpressions(t,c)}function vGe(e,t,n,i){let{factory:s}=e,{assignedName:o,name:c}=rTe(e,t.name,i),_=OI(e,t.initializer,o,n);return s.updatePropertyAssignment(t,c,_)}function bGe(e,t,n,i){let{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):s5(s,t.name,t.objectAssignmentInitializer),c=OI(e,t.objectAssignmentInitializer,o,n);return s.updateShorthandPropertyAssignment(t,t.name,c)}function SGe(e,t,n,i){let{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):s5(s,t.name,t.initializer),c=OI(e,t.initializer,o,n);return s.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,c)}function TGe(e,t,n,i){let{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):s5(s,t.name,t.initializer),c=OI(e,t.initializer,o,n);return s.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,c)}function kGe(e,t,n,i){let{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):s5(s,t.name,t.initializer),c=OI(e,t.initializer,o,n);return s.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,c)}function xGe(e,t,n,i){let{factory:s}=e,{assignedName:o,name:c}=rTe(e,t.name,i),_=OI(e,t.initializer,o,n);return s.updatePropertyDeclaration(t,t.modifiers,c,t.questionToken??t.exclamationToken,t.type,_)}function CGe(e,t,n,i){let{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):s5(s,t.left,t.right),c=OI(e,t.right,o,n);return s.updateBinaryExpression(t,t.left,t.operatorToken,c)}function wGe(e,t,n,i){let{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):s.createStringLiteral(t.isExportEquals?"":"default"),c=OI(e,t.expression,o,n);return s.updateExportAssignment(t,t.modifiers,c)}function bf(e,t,n,i){switch(t.kind){case 303:return vGe(e,t,n,i);case 304:return bGe(e,t,n,i);case 260:return SGe(e,t,n,i);case 169:return TGe(e,t,n,i);case 208:return kGe(e,t,n,i);case 172:return xGe(e,t,n,i);case 226:return CGe(e,t,n,i);case 277:return wGe(e,t,n,i)}}var pae=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(pae||{});function WU(e,t,n,i,s,o){let c=et(t.tag,n,gt);w.assert(c);let _=[void 0],u=[],g=[],m=t.template;if(o===0&&!Bz(m))return Ir(t,n,e);let{factory:h}=e;if(Tk(m))u.push(dae(h,m)),g.push(mae(h,m,i));else{u.push(dae(h,m.head)),g.push(mae(h,m.head,i));for(let T of m.templateSpans)u.push(dae(h,T.literal)),g.push(mae(h,T.literal,i)),_.push(w.checkDefined(et(T.expression,n,gt)))}let S=e.getEmitHelperFactory().createTemplateObjectHelper(h.createArrayLiteralExpression(u),h.createArrayLiteralExpression(g));if(xl(i)){let T=h.createUniqueName("templateObject");s(T),_[0]=h.createLogicalOr(T,h.createAssignment(T,S))}else _[0]=S;return h.createCallExpression(c,void 0,_)}function dae(e,t){return t.templateFlags&26656?e.createVoidZero():e.createStringLiteral(t.text)}function mae(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=pS(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,`
`),dt(e.createStringLiteral(i),t)}var IGe=!1;function gae(e){let{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:i,resumeLexicalEnvironment:s,endLexicalEnvironment:o,hoistVariableDeclaration:c}=e,_=e.getEmitResolver(),u=e.getCompilerOptions(),g=wa(u),m=n_(u),h=!!u.experimentalDecorators,S=u.emitDecoratorMetadata?yae(e):void 0,T=e.onEmitNode,x=e.onSubstituteNode;e.onEmitNode=Cf,e.onSubstituteNode=ms,e.enableSubstitution(211),e.enableSubstitution(212);let I,D,E,O,F,B=0,G;return $;function $(N){return N.kind===308?K(N):U(N)}function K(N){return t.createBundle(N.sourceFiles.map(U))}function U(N){if(N.isDeclarationFile)return N;I=N;let Oe=me(N,Je);return Th(Oe,e.readEmitHelpers()),I=void 0,Oe}function me(N,Oe){let ft=O,qt=F;te(N);let Br=Oe(N);return O!==ft&&(F=qt),O=ft,Br}function te(N){switch(N.kind){case 307:case 269:case 268:case 241:O=N,F=void 0;break;case 263:case 262:if(ei(N,128))break;N.name?Re(N):w.assert(N.kind===263||ei(N,2048));break}}function V(N){return me(N,ne)}function ne(N){return N.transformFlags&1?le(N):N}function ie(N){return me(N,oe)}function oe(N){switch(N.kind){case 272:case 271:case 277:case 278:return ye(N);default:return ne(N)}}function de(N){let Oe=Cs(N);if(Oe===N||Ho(N))return!1;if(!Oe||Oe.kind!==N.kind)return!0;switch(N.kind){case 272:if(w.assertNode(Oe,sc),N.importClause!==Oe.importClause||N.attributes!==Oe.attributes)return!0;break;case 271:if(w.assertNode(Oe,Ol),N.name!==Oe.name||N.isTypeOnly!==Oe.isTypeOnly||N.moduleReference!==Oe.moduleReference&&(m_(N.moduleReference)||m_(Oe.moduleReference)))return!0;break;case 278:if(w.assertNode(Oe,Xc),N.exportClause!==Oe.exportClause||N.attributes!==Oe.attributes)return!0;break}return!1}function ye(N){if(de(N))return N.transformFlags&1?Ir(N,V,e):N;switch(N.kind){case 272:return en(N);case 271:return Sr(N);case 277:return Tt(N);case 278:return Ut(N);default:w.fail("Unhandled ellided statement")}}function H(N){return me(N,ve)}function ve(N){if(!(N.kind===278||N.kind===272||N.kind===273||N.kind===271&&N.moduleReference.kind===283))return N.transformFlags&1||ei(N,32)?le(N):N}function Ge(N){return Oe=>me(Oe,ft=>De(ft,N))}function De(N,Oe){switch(N.kind){case 176:return ht(N);case 172:return Ue(N,Oe);case 177:return Rs(N,Oe);case 178:return oa(N,Oe);case 174:return Xn(N,Oe);case 175:return Ir(N,V,e);case 240:return N;case 181:return;default:return w.failBadSyntaxKind(N)}}function se(N){return Oe=>me(Oe,ft=>xe(ft,N))}function xe(N,Oe){switch(N.kind){case 303:case 304:case 305:return V(N);case 177:return Rs(N,Oe);case 178:return oa(N,Oe);case 174:return Xn(N,Oe);default:return w.failBadSyntaxKind(N)}}function _e(N){return Rl(N)?void 0:V(N)}function tt(N){return la(N)?void 0:V(N)}function ct(N){if(!Rl(N)&&!(h2(N.kind)&28895)&&!(D&&N.kind===95))return N}function le(N){if(Ii(N)&&ei(N,128))return t.createNotEmittedStatement(N);switch(N.kind){case 95:case 90:return D?void 0:N;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 188:case 189:case 190:case 191:case 187:case 182:case 168:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 185:case 184:case 186:case 183:case 192:case 193:case 194:case 196:case 197:case 198:case 199:case 200:case 201:case 181:return;case 265:return t.createNotEmittedStatement(N);case 270:return;case 264:return t.createNotEmittedStatement(N);case 263:return Ve(N);case 231:return bt(N);case 298:return Rn(N);case 233:return hn(N);case 210:return ee(N);case 176:case 172:case 174:case 177:case 178:case 175:return w.fail("Class and object literal elements must be visited with their respective visitors");case 262:return xr(N);case 218:return xs(N);case 219:return Ye(N);case 169:return Nt(N);case 217:return Ae(N);case 216:case 234:return Xe(N);case 238:return Dt(N);case 213:return Fe(N);case 214:return St(N);case 215:return vt(N);case 235:return st(N);case 266:return on(N);case 243:return ae(N);case 260:return Y(N);case 267:return we(N);case 271:return Sr(N);case 285:return Mt(N);case 286:return Ke(N);default:return Ir(N,V,e)}}function Je(N){let Oe=Pu(u,"alwaysStrict")&&!(xl(N)&&m>=5)&&!wp(N);return t.updateSourceFile(N,wU(N.statements,ie,e,0,Oe))}function ee(N){return t.updateObjectLiteralExpression(N,Ur(N.properties,se(N),iy))}function Ne(N){let Oe=0;pt(RU(N,!0,!0))&&(Oe|=1);let ft=Dm(N);return ft&&Wc(ft.expression).kind!==106&&(Oe|=64),ev(h,N)&&(Oe|=2),KP(h,N)&&(Oe|=4),kr(N)?Oe|=8:zs(N)?Oe|=32:si(N)&&(Oe|=16),Oe}function Ie(N){return!!(N.transformFlags&8192)}function Ce(N){return rp(N)||pt(N.typeParameters)||pt(N.heritageClauses,Ie)||pt(N.members,Ie)}function Ve(N){let Oe=Ne(N),ft=g<=1&&!!(Oe&7);if(!Ce(N)&&!ev(h,N)&&!kr(N))return t.updateClassDeclaration(N,Ur(N.modifiers,ct,la),N.name,void 0,Ur(N.heritageClauses,V,vf),Ur(N.members,Ge(N),rl));ft&&e.startLexicalEnvironment();let qt=ft||Oe&8,Br=qt?Ur(N.modifiers,tt,Xo):Ur(N.modifiers,V,Xo);Oe&2&&(Br=ur(Br,N));let pn=qt&&!N.name||Oe&4||Oe&1?N.name??t.getGeneratedNameForNode(N):N.name,Lr=t.updateClassDeclaration(N,Br,pn,void 0,Ur(N.heritageClauses,V,vf),zt(N)),Ci=Na(N);Oe&1&&(Ci|=64),dn(Lr,Ci);let Ai;if(ft){let io=[Lr],Ta=sJ(ha(I.text,N.members.end),20),Go=t.getInternalName(N),Dc=t.createPartiallyEmittedExpression(Go);cI(Dc,Ta.end),dn(Dc,3072);let $c=t.createReturnStatement(Dc);IA($c,Ta.pos),dn($c,3840),io.push($c),_h(io,e.endLexicalEnvironment());let Eo=t.createImmediatelyInvokedArrowFunction(io);V4(Eo,1);let Hc=t.createVariableDeclaration(t.getLocalName(N,!1,!1),void 0,void 0,Eo);En(Hc,N);let wf=t.createVariableStatement(void 0,t.createVariableDeclarationList([Hc],1));En(wf,N),dl(wf,N),Ia(wf,uy(N)),Ju(wf),Ai=wf}else Ai=Lr;if(qt){if(Oe&8)return[Ai,ta(N)];if(Oe&32)return[Ai,t.createExportDefault(t.getLocalName(N,!1,!0))];if(Oe&16)return[Ai,t.createExternalModuleExport(t.getDeclarationName(N,!1,!0))]}return Ai}function bt(N){let Oe=Ur(N.modifiers,tt,Xo);return ev(h,N)&&(Oe=ur(Oe,N)),t.updateClassExpression(N,Oe,N.name,void 0,Ur(N.heritageClauses,V,vf),zt(N))}function zt(N){let Oe=Ur(N.members,Ge(N),rl),ft,qt=mh(N),Br=qt&&An(qt.parameters,Hn=>pf(Hn,qt));if(Br)for(let Hn of Br){let pn=t.createPropertyDeclaration(void 0,Hn.name,void 0,void 0,void 0);En(pn,Hn),ft=jr(ft,pn)}return ft?(ft=jn(ft,Oe),dt(t.createNodeArray(ft),N.members)):Oe}function ur(N,Oe){let ft=_t(Oe,Oe);if(pt(ft)){let qt=[];jn(qt,BW(N,cM)),jn(qt,An(N,Rl)),jn(qt,ft),jn(qt,An(zY(N,cM),la)),N=dt(t.createNodeArray(qt),N)}return N}function Or(N,Oe,ft){if(ii(ft)&&hz(h,Oe,ft)){let qt=_t(Oe,ft);if(pt(qt)){let Br=[];jn(Br,An(N,Rl)),jn(Br,qt),jn(Br,An(N,la)),N=dt(t.createNodeArray(Br),N)}}return N}function _t(N,Oe){if(h)return IGe?Hr(N,Oe):$t(N,Oe)}function $t(N,Oe){if(S){let ft;if(hi(N)){let qt=n().createMetadataHelper("design:type",S.serializeTypeOfNode({currentLexicalScope:O,currentNameScope:Oe},N,Oe));ft=jr(ft,t.createDecorator(qt))}if(At(N)){let qt=n().createMetadataHelper("design:paramtypes",S.serializeParameterTypesOfNode({currentLexicalScope:O,currentNameScope:Oe},N,Oe));ft=jr(ft,t.createDecorator(qt))}if(_s(N)){let qt=n().createMetadataHelper("design:returntype",S.serializeReturnTypeOfNode({currentLexicalScope:O,currentNameScope:Oe},N));ft=jr(ft,t.createDecorator(qt))}return ft}}function Hr(N,Oe){if(S){let ft;if(hi(N)){let qt=t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),S.serializeTypeOfNode({currentLexicalScope:O,currentNameScope:Oe},N,Oe)));ft=jr(ft,qt)}if(At(N)){let qt=t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),S.serializeParameterTypesOfNode({currentLexicalScope:O,currentNameScope:Oe},N,Oe)));ft=jr(ft,qt)}if(_s(N)){let qt=t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),S.serializeReturnTypeOfNode({currentLexicalScope:O,currentNameScope:Oe},N)));ft=jr(ft,qt)}if(ft){let qt=n().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(ft,!0));return[t.createDecorator(qt)]}}}function hi(N){let Oe=N.kind;return Oe===174||Oe===177||Oe===178||Oe===172}function _s(N){return N.kind===174}function At(N){switch(N.kind){case 263:case 231:return mh(N)!==void 0;case 174:case 177:case 178:return!0}return!1}function zn(N,Oe){let ft=N.name;return ji(ft)?t.createIdentifier(""):pa(ft)?Oe&&!Jm(ft.expression)?t.getGeneratedNameForNode(ft):ft.expression:je(ft)?t.createStringLiteral(Ln(ft)):t.cloneNode(ft)}function ns(N){let Oe=N.name;if(h&&pa(Oe)&&rp(N)){let ft=et(Oe.expression,V,gt);w.assert(ft);let qt=bd(ft);if(!Jm(qt)){let Br=t.getGeneratedNameForNode(Oe);return c(Br),t.updateComputedPropertyName(Oe,t.createAssignment(Br,ft))}}return w.checkDefined(et(Oe,V,tl))}function Rn(N){if(N.token!==119)return Ir(N,V,e)}function hn(N){return t.updateExpressionWithTypeArguments(N,w.checkDefined(et(N.expression,V,M_)),void 0)}function ui(N){return!Tc(N.body)}function Ue(N,Oe){let ft=N.flags&33554432||ei(N,64);if(ft&&!(h&&rp(N)))return;let qt=ii(Oe)?ft?Ur(N.modifiers,tt,Xo):Ur(N.modifiers,V,Xo):Ur(N.modifiers,_e,Xo);return qt=Or(qt,N,Oe),ft?t.updatePropertyDeclaration(N,Ki(qt,t.createModifiersFromModifierFlags(128)),w.checkDefined(et(N.name,V,tl)),void 0,void 0,void 0):t.updatePropertyDeclaration(N,qt,ns(N),void 0,void 0,et(N.initializer,V,gt))}function ht(N){if(ui(N))return t.updateConstructorDeclaration(N,void 0,Cc(N.parameters,V,e),Zr(N.body,N))}function sr(N,Oe,ft,qt,Br,Hn){let pn=qt[Br],Lr=Oe[pn];if(jn(N,Ur(Oe,V,Ii,ft,pn-ft)),Ik(Lr)){let Ci=[];sr(Ci,Lr.tryBlock.statements,0,qt,Br+1,Hn);let Ai=t.createNodeArray(Ci);dt(Ai,Lr.tryBlock.statements),N.push(t.updateTryStatement(Lr,t.updateBlock(Lr.tryBlock,Ci),et(Lr.catchClause,V,BS),et(Lr.finallyBlock,V,Fs)))}else jn(N,Ur(Oe,V,Ii,pn,1)),jn(N,Hn);jn(N,Ur(Oe,V,Ii,pn+1))}function Zr(N,Oe){let ft=Oe&&An(Oe.parameters,Ci=>pf(Ci,Oe));if(!pt(ft))return op(N,V,e);let qt=[];s();let Br=t.copyPrologue(N.statements,qt,!1,V),Hn=r5(N.statements,Br),pn=Vi(ft,Zn);Hn.length?sr(qt,N.statements,Br,Hn,0,pn):(jn(qt,pn),jn(qt,Ur(N.statements,V,Ii,Br))),qt=t.mergeLexicalEnvironment(qt,o());let Lr=t.createBlock(dt(t.createNodeArray(qt),N.statements),!0);return dt(Lr,N),En(Lr,N),Lr}function Zn(N){let Oe=N.name;if(!je(Oe))return;let ft=Xa(dt(t.cloneNode(Oe),Oe),Oe.parent);dn(ft,3168);let qt=Xa(dt(t.cloneNode(Oe),Oe),Oe.parent);return dn(qt,3072),Ju(U4(dt(En(t.createExpressionStatement(t.createAssignment(dt(t.createPropertyAccessExpression(t.createThis(),ft),N.name),qt)),N),Wb(N,-1))))}function Xn(N,Oe){if(!(N.transformFlags&1))return N;if(!ui(N))return;let ft=ii(Oe)?Ur(N.modifiers,V,Xo):Ur(N.modifiers,_e,Xo);return ft=Or(ft,N,Oe),t.updateMethodDeclaration(N,ft,N.asteriskToken,ns(N),void 0,void 0,Cc(N.parameters,V,e),void 0,op(N.body,V,e))}function Pi(N){return!(Tc(N.body)&&ei(N,64))}function Rs(N,Oe){if(!(N.transformFlags&1))return N;if(!Pi(N))return;let ft=ii(Oe)?Ur(N.modifiers,V,Xo):Ur(N.modifiers,_e,Xo);return ft=Or(ft,N,Oe),t.updateGetAccessorDeclaration(N,ft,ns(N),Cc(N.parameters,V,e),void 0,op(N.body,V,e)||t.createBlock([]))}function oa(N,Oe){if(!(N.transformFlags&1))return N;if(!Pi(N))return;let ft=ii(Oe)?Ur(N.modifiers,V,Xo):Ur(N.modifiers,_e,Xo);return ft=Or(ft,N,Oe),t.updateSetAccessorDeclaration(N,ft,ns(N),Cc(N.parameters,V,e),op(N.body,V,e)||t.createBlock([]))}function xr(N){if(!ui(N))return t.createNotEmittedStatement(N);let Oe=t.updateFunctionDeclaration(N,Ur(N.modifiers,ct,la),N.asteriskToken,N.name,void 0,Cc(N.parameters,V,e),void 0,op(N.body,V,e)||t.createBlock([]));if(kr(N)){let ft=[Oe];return Os(ft,N),ft}return Oe}function xs(N){return ui(N)?t.updateFunctionExpression(N,Ur(N.modifiers,ct,la),N.asteriskToken,N.name,void 0,Cc(N.parameters,V,e),void 0,op(N.body,V,e)||t.createBlock([])):t.createOmittedExpression()}function Ye(N){return t.updateArrowFunction(N,Ur(N.modifiers,ct,la),void 0,Cc(N.parameters,V,e),void 0,N.equalsGreaterThanToken,op(N.body,V,e))}function Nt(N){if(E0(N))return;let Oe=t.updateParameterDeclaration(N,Ur(N.modifiers,ft=>Rl(ft)?V(ft):void 0,Xo),N.dotDotDotToken,w.checkDefined(et(N.name,V,rk)),void 0,void 0,et(N.initializer,V,gt));return Oe!==N&&(dl(Oe,N),dt(Oe,Mm(N)),Ia(Oe,Mm(N)),dn(Oe.name,64)),Oe}function ae(N){if(kr(N)){let Oe=mA(N.declarationList);return Oe.length===0?void 0:dt(t.createExpressionStatement(t.inlineExpressions(hr(Oe,lt))),N)}else return Ir(N,V,e)}function lt(N){let Oe=N.name;return Ws(Oe)?jk(N,V,e,0,!1,uc):dt(t.createAssignment(Bc(Oe),w.checkDefined(et(N.initializer,V,gt))),N)}function Y(N){let Oe=t.updateVariableDeclaration(N,w.checkDefined(et(N.name,V,rk)),void 0,void 0,et(N.initializer,V,gt));return N.type&&zne(Oe.name,N.type),Oe}function Ae(N){let Oe=Wc(N.expression,-55);if(fS(Oe)||mI(Oe)){let ft=et(N.expression,V,gt);return w.assert(ft),t.createPartiallyEmittedExpression(ft,N)}return Ir(N,V,e)}function Xe(N){let Oe=et(N.expression,V,gt);return w.assert(Oe),t.createPartiallyEmittedExpression(Oe,N)}function st(N){let Oe=et(N.expression,V,M_);return w.assert(Oe),t.createPartiallyEmittedExpression(Oe,N)}function Dt(N){let Oe=et(N.expression,V,gt);return w.assert(Oe),t.createPartiallyEmittedExpression(Oe,N)}function Fe(N){return t.updateCallExpression(N,w.checkDefined(et(N.expression,V,gt)),void 0,Ur(N.arguments,V,gt))}function St(N){return t.updateNewExpression(N,w.checkDefined(et(N.expression,V,gt)),void 0,Ur(N.arguments,V,gt))}function vt(N){return t.updateTaggedTemplateExpression(N,w.checkDefined(et(N.tag,V,gt)),void 0,w.checkDefined(et(N.template,V,e2)))}function Mt(N){return t.updateJsxSelfClosingElement(N,w.checkDefined(et(N.tagName,V,JP)),void 0,w.checkDefined(et(N.attributes,V,WS)))}function Ke(N){return t.updateJsxOpeningElement(N,w.checkDefined(et(N.tagName,V,JP)),void 0,w.checkDefined(et(N.attributes,V,WS)))}function Vt(N){return!Nb(N)||R0(u)}function on(N){if(!Vt(N))return t.createNotEmittedStatement(N);let Oe=[],ft=4,qt=jt(Oe,N);qt&&(m!==4||O!==I)&&(ft|=1024);let Br=xi(N),Hn=bs(N),pn=kr(N)?t.getExternalModuleOrNamespaceExportName(E,N,!1,!0):t.getDeclarationName(N,!1,!0),Lr=t.createLogicalOr(pn,t.createAssignment(pn,t.createObjectLiteralExpression()));if(kr(N)){let Ai=t.getLocalName(N,!1,!0);Lr=t.createAssignment(Ai,Lr)}let Ci=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,Br)],void 0,Pe(N,Hn)),void 0,[Lr]));return En(Ci,N),qt&&(Jb(Ci,void 0),A2(Ci,void 0)),dt(Ci,N),Rm(Ci,ft),Oe.push(Ci),Oe}function Pe(N,Oe){let ft=E;E=Oe;let qt=[];i();let Br=hr(N.members,kt);return _h(qt,o()),jn(qt,Br),E=ft,t.createBlock(dt(t.createNodeArray(qt),N.members),!0)}function kt(N){let Oe=zn(N,!1),ft=_.getEnumMemberValue(N),qt=pe(N,ft?.value),Br=t.createAssignment(t.createElementAccessExpression(E,Oe),qt),Hn=typeof ft?.value=="string"||ft?.isSyntacticallyString?Br:t.createAssignment(t.createElementAccessExpression(E,Br),Oe);return dt(t.createExpressionStatement(dt(Hn,N)),N)}function pe(N,Oe){return Oe!==void 0?typeof Oe=="string"?t.createStringLiteral(Oe):Oe<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-Oe)):t.createNumericLiteral(Oe):(il(),N.initializer?w.checkDefined(et(N.initializer,V,gt)):t.createVoidZero())}function j(N){let Oe=Cs(N,nl);return Oe?xU(Oe,R0(u)):!0}function Re(N){F||(F=new Map);let Oe=yt(N);F.has(Oe)||F.set(Oe,N)}function q(N){if(F){let Oe=yt(N);return F.get(Oe)===N}return!0}function yt(N){return w.assertNode(N.name,je),N.name.escapedText}function jt(N,Oe){let ft=t.createVariableDeclaration(t.getLocalName(Oe,!1,!0)),qt=O.kind===307?0:1,Br=t.createVariableStatement(Ur(Oe.modifiers,ct,la),t.createVariableDeclarationList([ft],qt));return En(ft,Oe),Jb(ft,void 0),A2(ft,void 0),En(Br,Oe),Re(Oe),q(Oe)?(Oe.kind===266?Ia(Br.declarationList,Oe):Ia(Br,Oe),dl(Br,Oe),Rm(Br,2048),N.push(Br),!0):!1}function we(N){if(!j(N))return t.createNotEmittedStatement(N);w.assertNode(N.name,je,"A TypeScript namespace should have an Identifier name."),Qo();let Oe=[],ft=4,qt=jt(Oe,N);qt&&(m!==4||O!==I)&&(ft|=1024);let Br=xi(N),Hn=bs(N),pn=kr(N)?t.getExternalModuleOrNamespaceExportName(E,N,!1,!0):t.getDeclarationName(N,!1,!0),Lr=t.createLogicalOr(pn,t.createAssignment(pn,t.createObjectLiteralExpression()));if(kr(N)){let Ai=t.getLocalName(N,!1,!0);Lr=t.createAssignment(Ai,Lr)}let Ci=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,Br)],void 0,ut(N,Hn)),void 0,[Lr]));return En(Ci,N),qt&&(Jb(Ci,void 0),A2(Ci,void 0)),dt(Ci,N),Rm(Ci,ft),Oe.push(Ci),Oe}function ut(N,Oe){let ft=E,qt=D,Br=F;E=Oe,D=N,F=void 0;let Hn=[];i();let pn,Lr;if(N.body)if(N.body.kind===268)me(N.body,Ai=>jn(Hn,Ur(Ai.statements,H,Ii))),pn=N.body.statements,Lr=N.body;else{let Ai=we(N.body);Ai&&(ks(Ai)?jn(Hn,Ai):Hn.push(Ai));let io=Qt(N).body;pn=Wb(io.statements,-1)}_h(Hn,o()),E=ft,D=qt,F=Br;let Ci=t.createBlock(dt(t.createNodeArray(Hn),pn),!0);return dt(Ci,Lr),(!N.body||N.body.kind!==268)&&dn(Ci,Na(Ci)|3072),Ci}function Qt(N){if(N.body.kind===267)return Qt(N.body)||N.body}function en(N){if(!N.importClause)return N;if(N.importClause.isTypeOnly)return;let Oe=et(N.importClause,Pr,Cd);return Oe?t.updateImportDeclaration(N,void 0,Oe,N.moduleSpecifier,N.attributes):void 0}function Pr(N){w.assert(!N.isTypeOnly);let Oe=Ic(N)?N.name:void 0,ft=et(N.namedBindings,$r,UB);return Oe||ft?t.updateImportClause(N,!1,Oe,ft):void 0}function $r(N){if(N.kind===274)return Ic(N)?N:void 0;{let Oe=u.verbatimModuleSyntax,ft=Ur(N.elements,it,a_);return Oe||pt(ft)?t.updateNamedImports(N,ft):void 0}}function it(N){return!N.isTypeOnly&&Ic(N)?N:void 0}function Tt(N){return u.verbatimModuleSyntax||_.isValueAliasDeclaration(N)?Ir(N,V,e):void 0}function Ut(N){if(N.isTypeOnly)return;if(!N.exportClause||Dg(N.exportClause))return t.updateExportDeclaration(N,N.modifiers,N.isTypeOnly,N.exportClause,N.moduleSpecifier,N.attributes);let Oe=!!u.verbatimModuleSyntax,ft=et(N.exportClause,qt=>ar(qt,Oe),MB);return ft?t.updateExportDeclaration(N,void 0,N.isTypeOnly,ft,N.moduleSpecifier,N.attributes):void 0}function Ot(N,Oe){let ft=Ur(N.elements,Gt,zu);return Oe||pt(ft)?t.updateNamedExports(N,ft):void 0}function vr(N){return t.updateNamespaceExport(N,w.checkDefined(et(N.name,V,je)))}function ar(N,Oe){return Dg(N)?vr(N):Ot(N,Oe)}function Gt(N){return!N.isTypeOnly&&(u.verbatimModuleSyntax||_.isValueAliasDeclaration(N))?N:void 0}function dr(N){return Ic(N)||!xl(I)&&_.isTopLevelValueImportEqualsWithEntityName(N)}function Sr(N){if(N.isTypeOnly)return;if(Mb(N))return Ic(N)?Ir(N,V,e):void 0;if(!dr(N))return;let Oe=nM(t,N.moduleReference);return dn(Oe,7168),si(N)||!kr(N)?En(dt(t.createVariableStatement(Ur(N.modifiers,ct,la),t.createVariableDeclarationList([En(t.createVariableDeclaration(N.name,void 0,void 0,Oe),N)])),N),N):En(qc(N.name,Oe,N),N)}function kr(N){return D!==void 0&&ei(N,32)}function tr(N){return D===void 0&&ei(N,32)}function si(N){return tr(N)&&!ei(N,2048)}function zs(N){return tr(N)&&ei(N,2048)}function ta(N){let Oe=t.createAssignment(t.getExternalModuleOrNamespaceExportName(E,N,!1,!0),t.getLocalName(N));Ia(Oe,Dp(N.name?N.name.pos:N.pos,N.end));let ft=t.createExpressionStatement(Oe);return Ia(ft,Dp(-1,N.end)),ft}function Os(N,Oe){N.push(ta(Oe))}function qc(N,Oe,ft){return dt(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(E,N,!1,!0),Oe)),ft)}function uc(N,Oe,ft){return dt(t.createAssignment(Bc(N),Oe),ft)}function Bc(N){return t.getNamespaceMemberName(E,N,!1,!0)}function xi(N){let Oe=t.getGeneratedNameForNode(N);return Ia(Oe,N.name),Oe}function bs(N){return t.getGeneratedNameForNode(N)}function il(){(B&8)===0&&(B|=8,e.enableSubstitution(80))}function Qo(){(B&2)===0&&(B|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267))}function Oa(N){return ic(N).kind===267}function Zo(N){return ic(N).kind===266}function Cf(N,Oe,ft){let qt=G,Br=I;Mi(Oe)&&(I=Oe),B&2&&Oa(Oe)&&(G|=2),B&8&&Zo(Oe)&&(G|=8),T(N,Oe,ft),G=qt,I=Br}function ms(N,Oe){return Oe=x(N,Oe),N===1?Ba(Oe):Eu(Oe)?Ys(Oe):Oe}function Ys(N){if(B&2){let Oe=N.name,ft=Ht(Oe);if(ft){if(N.objectAssignmentInitializer){let qt=t.createAssignment(ft,N.objectAssignmentInitializer);return dt(t.createPropertyAssignment(Oe,qt),N)}return dt(t.createPropertyAssignment(Oe,ft),N)}}return N}function Ba(N){switch(N.kind){case 80:return La(N);case 211:return fo(N);case 212:return sl(N)}return N}function La(N){return Ht(N)||N}function Ht(N){if(B&G&&!Ko(N)&&!my(N)){let Oe=_.getReferencedExportContainer(N,!1);if(Oe&&Oe.kind!==307&&(G&2&&Oe.kind===267||G&8&&Oe.kind===266))return dt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(Oe),N),N)}}function fo(N){return cu(N)}function sl(N){return cu(N)}function wc(N){return N.replace(/\*\//g,"*_/")}function cu(N){let Oe=ec(N);if(Oe!==void 0){Wne(N,Oe);let ft=typeof Oe=="string"?t.createStringLiteral(Oe):Oe<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-Oe)):t.createNumericLiteral(Oe);if(!u.removeComments){let qt=ic(N,Oo);FA(ft,3,` ${wc(oc(qt))} `)}return ft}return N}function ec(N){if(!id(u))return Nn(N)||wo(N)?_.getConstantValue(N):void 0}function Ic(N){return u.verbatimModuleSyntax||un(N)||_.isReferencedAliasDeclaration(N)}}function hae(e){let{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:i,endLexicalEnvironment:s,startLexicalEnvironment:o,resumeLexicalEnvironment:c,addBlockScopedVariable:_}=e,u=e.getEmitResolver(),g=e.getCompilerOptions(),m=wa(g),h=A4(g),S=!!g.experimentalDecorators,T=!h,x=h&&m<9,I=T||x,D=m<9,E=m<99?-1:h?0:3,O=m<9,F=O&&m>=2,B=I||D||E===-1,G=e.onSubstituteNode;e.onSubstituteNode=sl;let $=e.onEmitNode;e.onEmitNode=fo;let K=!1,U=0,me,te,V,ne,ie=new Map,oe=new Set,de,ye,H=!1,ve=!1;return Xd(e,Ge);function Ge(N){if(N.isDeclarationFile||(ne=void 0,K=!!(Sd(N)&32),!B&&!K))return N;let Oe=Ir(N,se,e);return Th(Oe,e.readEmitHelpers()),Oe}function De(N){switch(N.kind){case 129:return ht()?void 0:N;default:return Vn(N,la)}}function se(N){if(!(N.transformFlags&16777216)&&!(N.transformFlags&134234112))return N;switch(N.kind){case 263:return Vt(N);case 231:return Pe(N);case 175:case 172:return w.fail("Use `classElementVisitor` instead.");case 303:return Ce(N);case 243:return Ve(N);case 260:return bt(N);case 169:return zt(N);case 208:return ur(N);case 277:return Or(N);case 81:return Ne(N);case 211:return Rs(N);case 212:return oa(N);case 224:case 225:return xr(N,!1);case 226:return Xe(N,!1);case 217:return Dt(N,!1);case 213:return ae(N);case 244:return Ye(N);case 215:return lt(N);case 248:return xs(N);case 110:return j(N);case 262:case 218:return At(void 0,xe,N);case 176:case 174:case 177:case 178:return At(N,xe,N);default:return xe(N)}}function xe(N){return Ir(N,se,e)}function _e(N){switch(N.kind){case 224:case 225:return xr(N,!0);case 226:return Xe(N,!0);case 356:return st(N,!0);case 217:return Dt(N,!0);default:return se(N)}}function tt(N){switch(N.kind){case 298:return Ir(N,tt,e);case 233:return Mt(N);default:return se(N)}}function ct(N){switch(N.kind){case 210:case 209:return Ht(N);default:return se(N)}}function le(N){switch(N.kind){case 176:return At(N,Hr,N);case 177:case 178:case 174:return At(N,_s,N);case 172:return At(N,sr,N);case 175:return At(N,pe,N);case 167:return $t(N);case 240:return N;default:return Xo(N)?De(N):se(N)}}function Je(N){switch(N.kind){case 167:return $t(N);default:return se(N)}}function ee(N){switch(N.kind){case 172:return Ue(N);case 177:case 178:return le(N);default:w.assertMissingNode(N,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function Ne(N){return!D||Ii(N.parent)?N:En(t.createIdentifier(""),N)}function Ie(N){let Oe=bs(N.left);if(Oe){let ft=et(N.right,se,gt);return En(n().createClassPrivateFieldInHelper(Oe.brandCheckIdentifier,ft),N)}return Ir(N,se,e)}function Ce(N){return gf(N,Ae)&&(N=bf(e,N)),Ir(N,se,e)}function Ve(N){let Oe=V;V=[];let ft=Ir(N,se,e),qt=pt(V)?[ft,...V]:ft;return V=Oe,qt}function bt(N){return gf(N,Ae)&&(N=bf(e,N)),Ir(N,se,e)}function zt(N){return gf(N,Ae)&&(N=bf(e,N)),Ir(N,se,e)}function ur(N){return gf(N,Ae)&&(N=bf(e,N)),Ir(N,se,e)}function Or(N){return gf(N,Ae)&&(N=bf(e,N,!0,N.isExportEquals?"":"default")),Ir(N,se,e)}function _t(N){return pt(te)&&(b_(N)?(te.push(N.expression),N=t.updateParenthesizedExpression(N,t.inlineExpressions(te))):(te.push(N),N=t.inlineExpressions(te)),te=void 0),N}function $t(N){let Oe=et(N.expression,se,gt);return t.updateComputedPropertyName(N,_t(Oe))}function Hr(N){return de?yt(N,de):xe(N)}function hi(N){return!!(D||Tl(N)&&Sd(N)&32)}function _s(N){if(w.assert(!rp(N)),!Zu(N)||!hi(N))return Ir(N,le,e);let Oe=bs(N.name);if(w.assert(Oe,"Undeclared private name for property declaration."),!Oe.isValid)return N;let ft=zn(N);ft&&kr().push(t.createAssignment(ft,t.createFunctionExpression(An(N.modifiers,qt=>la(qt)&&!F2(qt)&&!rie(qt)),N.asteriskToken,ft,void 0,Cc(N.parameters,se,e),void 0,op(N.body,se,e))))}function At(N,Oe,ft){if(N!==ye){let qt=ye;ye=N;let Br=Oe(ft);return ye=qt,Br}return Oe(ft)}function zn(N){w.assert(ji(N.name));let Oe=bs(N.name);if(w.assert(Oe,"Undeclared private name for property declaration."),Oe.kind==="m")return Oe.methodName;if(Oe.kind==="a"){if(ch(N))return Oe.getterName;if(xm(N))return Oe.setterName}}function ns(){let N=dr();return N.classThis??N.classConstructor??de?.name}function Rn(N){let Oe=Fm(N),ft=av(N),qt=N.name,Br=qt,Hn=qt;if(pa(qt)&&!Jm(qt.expression)){let Go=T7(qt);if(Go)Br=t.updateComputedPropertyName(qt,et(qt.expression,se,gt)),Hn=t.updateComputedPropertyName(qt,Go.left);else{let Dc=t.createTempVariable(i);Ia(Dc,qt.expression);let $c=et(qt.expression,se,gt),Eo=t.createAssignment(Dc,$c);Ia(Eo,qt.expression),Br=t.updateComputedPropertyName(qt,Eo),Hn=t.updateComputedPropertyName(qt,Dc)}}let pn=Ur(N.modifiers,De,la),Lr=NG(t,N,pn,N.initializer);En(Lr,N),dn(Lr,3072),Ia(Lr,ft);let Ci=Ks(N)?ns()??t.createThis():t.createThis(),Ai=Wie(t,N,pn,Br,Ci);En(Ai,N),dl(Ai,Oe),Ia(Ai,ft);let io=t.createModifiersFromModifierFlags(Nm(pn)),Ta=Bie(t,N,io,Hn,Ci);return En(Ta,N),dn(Ta,3072),Ia(Ta,ft),oE([Lr,Ai,Ta],ee,rl)}function hn(N){if(hi(N)){let Oe=bs(N.name);if(w.assert(Oe,"Undeclared private name for property declaration."),!Oe.isValid)return N;if(Oe.isStatic&&!D){let ft=Qt(N,t.createThis());if(ft)return t.createClassStaticBlockDeclaration(t.createBlock([ft],!0))}return}return T&&!Ks(N)&&ne?.data&&ne.data.facts&16?t.updatePropertyDeclaration(N,Ur(N.modifiers,se,Xo),N.name,void 0,void 0,void 0):(gf(N,Ae)&&(N=bf(e,N)),t.updatePropertyDeclaration(N,Ur(N.modifiers,De,la),et(N.name,Je,tl),void 0,void 0,et(N.initializer,se,gt)))}function ui(N){if(I&&!N_(N)){let Oe=vr(N.name,!!N.initializer||h);if(Oe&&kr().push(...zie(Oe)),Ks(N)&&!D){let ft=Qt(N,t.createThis());if(ft){let qt=t.createClassStaticBlockDeclaration(t.createBlock([ft]));return En(qt,N),dl(qt,N),dl(ft,{pos:-1,end:-1}),Jb(ft,void 0),A2(ft,void 0),qt}}return}return t.updatePropertyDeclaration(N,Ur(N.modifiers,De,la),et(N.name,Je,tl),void 0,void 0,et(N.initializer,se,gt))}function Ue(N){return w.assert(!rp(N),"Decorators should already have been transformed and elided."),Zu(N)?hn(N):ui(N)}function ht(){return E===-1||E===3&&!!ne?.data&&!!(ne.data.facts&16)}function sr(N){return N_(N)&&(ht()||Tl(N)&&Sd(N)&32)?Rn(N):Ue(N)}function Zr(){return!!ye&&Tl(ye)&&T0(ye)&&N_(ic(ye))}function Zn(N){if(Zr()){let Oe=Wc(N);Oe.kind===110&&oe.add(Oe)}}function Xn(N,Oe){return Oe=et(Oe,se,gt),Zn(Oe),Pi(N,Oe)}function Pi(N,Oe){switch(dl(Oe,Wb(Oe,-1)),N.kind){case"a":return n().createClassPrivateFieldGetHelper(Oe,N.brandCheckIdentifier,N.kind,N.getterName);case"m":return n().createClassPrivateFieldGetHelper(Oe,N.brandCheckIdentifier,N.kind,N.methodName);case"f":return n().createClassPrivateFieldGetHelper(Oe,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 Rs(N){if(ji(N.name)){let Oe=bs(N.name);if(Oe)return dt(En(Xn(Oe,N.expression),N),N)}if(F&&ye&&H_(N)&&je(N.name)&&pE(ye)&&ne?.data){let{classConstructor:Oe,superClassReference:ft,facts:qt}=ne.data;if(qt&1)return Ot(N);if(Oe&&ft){let Br=t.createReflectGetCall(ft,t.createStringLiteralFromNode(N.name),Oe);return En(Br,N.expression),dt(Br,N.expression),Br}}return Ir(N,se,e)}function oa(N){if(F&&ye&&H_(N)&&pE(ye)&&ne?.data){let{classConstructor:Oe,superClassReference:ft,facts:qt}=ne.data;if(qt&1)return Ot(N);if(Oe&&ft){let Br=t.createReflectGetCall(ft,et(N.argumentExpression,se,gt),Oe);return En(Br,N.expression),dt(Br,N.expression),Br}}return Ir(N,se,e)}function xr(N,Oe){if(N.operator===46||N.operator===47){let ft=Ka(N.operand);if(Nw(ft)){let qt;if(qt=bs(ft.name)){let Br=et(ft.expression,se,gt);Zn(Br);let{readExpression:Hn,initializeExpression:pn}=Nt(Br),Lr=Xn(qt,Hn),Ci=Vb(N)||Oe?void 0:t.createTempVariable(i);return Lr=g7(t,N,Lr,i,Ci),Lr=Fe(qt,pn||Hn,Lr,64),En(Lr,N),dt(Lr,N),Ci&&(Lr=t.createComma(Lr,Ci),dt(Lr,N)),Lr}}else if(F&&ye&&H_(ft)&&pE(ye)&&ne?.data){let{classConstructor:qt,superClassReference:Br,facts:Hn}=ne.data;if(Hn&1){let pn=Ot(ft);return Vb(N)?t.updatePrefixUnaryExpression(N,pn):t.updatePostfixUnaryExpression(N,pn)}if(qt&&Br){let pn,Lr;if(Nn(ft)?je(ft.name)&&(Lr=pn=t.createStringLiteralFromNode(ft.name)):Jm(ft.argumentExpression)?Lr=pn=ft.argumentExpression:(Lr=t.createTempVariable(i),pn=t.createAssignment(Lr,et(ft.argumentExpression,se,gt))),pn&&Lr){let Ci=t.createReflectGetCall(Br,Lr,qt);dt(Ci,ft);let Ai=Oe?void 0:t.createTempVariable(i);return Ci=g7(t,N,Ci,i,Ai),Ci=t.createReflectSetCall(Br,pn,Ci,qt),En(Ci,N),dt(Ci,N),Ai&&(Ci=t.createComma(Ci,Ai),dt(Ci,N)),Ci}}}}return Ir(N,se,e)}function xs(N){return t.updateForStatement(N,et(N.initializer,_e,xp),et(N.condition,se,gt),et(N.incrementor,_e,gt),S_(N.statement,se,e))}function Ye(N){return t.updateExpressionStatement(N,et(N.expression,_e,gt))}function Nt(N){let Oe=So(N)?N:t.cloneNode(N);if(N.kind===110&&oe.has(N)&&oe.add(Oe),Jm(N))return{readExpression:Oe,initializeExpression:void 0};let ft=t.createTempVariable(i),qt=t.createAssignment(ft,Oe);return{readExpression:ft,initializeExpression:qt}}function ae(N){var Oe;if(Nw(N.expression)&&bs(N.expression.name)){let{thisArg:ft,target:qt}=t.createCallBinding(N.expression,i,m);return ZT(N)?t.updateCallChain(N,t.createPropertyAccessChain(et(qt,se,gt),N.questionDotToken,"call"),void 0,void 0,[et(ft,se,gt),...Ur(N.arguments,se,gt)]):t.updateCallExpression(N,t.createPropertyAccessExpression(et(qt,se,gt),"call"),void 0,[et(ft,se,gt),...Ur(N.arguments,se,gt)])}if(F&&ye&&H_(N.expression)&&pE(ye)&&((Oe=ne?.data)!=null&&Oe.classConstructor)){let ft=t.createFunctionCallCall(et(N.expression,se,gt),ne.data.classConstructor,Ur(N.arguments,se,gt));return En(ft,N),dt(ft,N),ft}return Ir(N,se,e)}function lt(N){var Oe;if(Nw(N.tag)&&bs(N.tag.name)){let{thisArg:ft,target:qt}=t.createCallBinding(N.tag,i,m);return t.updateTaggedTemplateExpression(N,t.createCallExpression(t.createPropertyAccessExpression(et(qt,se,gt),"bind"),void 0,[et(ft,se,gt)]),void 0,et(N.template,se,e2))}if(F&&ye&&H_(N.tag)&&pE(ye)&&((Oe=ne?.data)!=null&&Oe.classConstructor)){let ft=t.createFunctionBindCall(et(N.tag,se,gt),ne.data.classConstructor,[]);return En(ft,N),dt(ft,N),t.updateTaggedTemplateExpression(N,ft,void 0,et(N.template,se,e2))}return Ir(N,se,e)}function Y(N){if(ne&&ie.set(ic(N),ne),D){if(fE(N)){let qt=et(N.body.statements[0].expression,se,gt);return ql(qt,!0)&&qt.left===qt.right?void 0:qt}if(eC(N))return et(N.body.statements[0].expression,se,gt);o();let Oe=At(N,qt=>Ur(qt,se,Ii),N.body.statements);Oe=t.mergeLexicalEnvironment(Oe,s());let ft=t.createImmediatelyInvokedArrowFunction(Oe);return En(Ka(ft.expression),N),Rm(Ka(ft.expression),4),En(ft,N),dt(ft,N),ft}}function Ae(N){if(ml(N)&&!N.name){let Oe=n5(N);return pt(Oe,eC)?!1:(D||!!Sd(N))&&pt(Oe,qt=>Nc(qt)||Zu(qt)||I&&DM(qt))}return!1}function Xe(N,Oe){if(rv(N)){let ft=te;te=void 0,N=t.updateBinaryExpression(N,et(N.left,ct,gt),N.operatorToken,et(N.right,se,gt));let qt=pt(te)?t.inlineExpressions(QN([...te,N])):N;return te=ft,qt}if(ql(N)){gf(N,Ae)&&(N=bf(e,N),w.assertNode(N,ql));let ft=Wc(N.left,9);if(Nw(ft)){let qt=bs(ft.name);if(qt)return dt(En(Fe(qt,ft.expression,N.right,N.operatorToken.kind),N),N)}else if(F&&ye&&H_(N.left)&&pE(ye)&&ne?.data){let{classConstructor:qt,superClassReference:Br,facts:Hn}=ne.data;if(Hn&1)return t.updateBinaryExpression(N,Ot(N.left),N.operatorToken,et(N.right,se,gt));if(qt&&Br){let pn=wo(N.left)?et(N.left.argumentExpression,se,gt):je(N.left.name)?t.createStringLiteralFromNode(N.left.name):void 0;if(pn){let Lr=et(N.right,se,gt);if(lE(N.operatorToken.kind)){let Ai=pn;Jm(pn)||(Ai=t.createTempVariable(i),pn=t.createAssignment(Ai,pn));let io=t.createReflectGetCall(Br,Ai,qt);En(io,N.left),dt(io,N.left),Lr=t.createBinaryExpression(io,uE(N.operatorToken.kind),Lr),dt(Lr,N)}let Ci=Oe?void 0:t.createTempVariable(i);return Ci&&(Lr=t.createAssignment(Ci,Lr),dt(Ci,N)),Lr=t.createReflectSetCall(Br,pn,Lr,qt),En(Lr,N),dt(Lr,N),Ci&&(Lr=t.createComma(Lr,Ci),dt(Lr,N)),Lr}}}}return NGe(N)?Ie(N):Ir(N,se,e)}function st(N,Oe){let ft=Oe?IM(N.elements,_e):IM(N.elements,se,_e);return t.updateCommaListExpression(N,ft)}function Dt(N,Oe){let ft=Oe?_e:se,qt=et(N.expression,ft,gt);return t.updateParenthesizedExpression(N,qt)}function Fe(N,Oe,ft,qt){if(Oe=et(Oe,se,gt),ft=et(ft,se,gt),Zn(Oe),lE(qt)){let{readExpression:Br,initializeExpression:Hn}=Nt(Oe);Oe=Hn||Br,ft=t.createBinaryExpression(Pi(N,Br),uE(qt),ft)}switch(dl(Oe,Wb(Oe,-1)),N.kind){case"a":return n().createClassPrivateFieldSetHelper(Oe,N.brandCheckIdentifier,ft,N.kind,N.setterName);case"m":return n().createClassPrivateFieldSetHelper(Oe,N.brandCheckIdentifier,ft,N.kind,void 0);case"f":return n().createClassPrivateFieldSetHelper(Oe,N.brandCheckIdentifier,ft,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 St(N){return An(N.members,sae)}function vt(N){var Oe;let ft=0,qt=ic(N);ii(qt)&&ev(S,qt)&&(ft|=1),D&&(LU(N)||a5(N))&&(ft|=2);let Br=!1,Hn=!1,pn=!1,Lr=!1;for(let Ai of N.members)Ks(Ai)?((Ai.name&&(ji(Ai.name)||N_(Ai))&&D||N_(Ai)&&E===-1&&!N.name&&!((Oe=N.emitNode)!=null&&Oe.classThis))&&(ft|=2),(ds(Ai)||Nc(Ai))&&(O&&Ai.transformFlags&16384&&(ft|=8,ft&1||(ft|=2)),F&&Ai.transformFlags&134217728&&(ft&1||(ft|=6)))):IS(ic(Ai))||(N_(Ai)?(Lr=!0,pn||(pn=Zu(Ai))):Zu(Ai)?(pn=!0,u.hasNodeCheckFlag(Ai,262144)&&(ft|=2)):ds(Ai)&&(Br=!0,Hn||(Hn=!!Ai.initializer)));return(x&&Br||T&&Hn||D&&pn||D&&Lr&&E===-1)&&(ft|=16),ft}function Mt(N){var Oe;if((((Oe=ne?.data)==null?void 0:Oe.facts)||0)&4){let qt=t.createTempVariable(i,!0);return dr().superClassReference=qt,t.updateExpressionWithTypeArguments(N,t.createAssignment(qt,et(N.expression,se,gt)),void 0)}return Ir(N,se,e)}function Ke(N,Oe){var ft;let qt=de,Br=te,Hn=ne;de=N,te=void 0,ar();let pn=Sd(N)&32;if(D||pn){let Ai=vs(N);if(Ai&&je(Ai))Sr().data.className=Ai;else if((ft=N.emitNode)!=null&&ft.assignedName&&ya(N.emitNode.assignedName)){if(N.emitNode.assignedName.textSourceNode&&je(N.emitNode.assignedName.textSourceNode))Sr().data.className=N.emitNode.assignedName.textSourceNode;else if($_(N.emitNode.assignedName.text,m)){let io=t.createIdentifier(N.emitNode.assignedName.text);Sr().data.className=io}}}if(D){let Ai=St(N);pt(Ai)&&(Sr().data.weakSetName=Bc("instances",Ai[0].name))}let Lr=vt(N);Lr&&(dr().facts=Lr),Lr&8&&Tt();let Ci=Oe(N,Lr);return Gt(),w.assert(ne===Hn),de=qt,te=Br,Ci}function Vt(N){return Ke(N,on)}function on(N,Oe){var ft,qt;let Br;if(Oe&2)if(D&&((ft=N.emitNode)!=null&&ft.classThis))dr().classConstructor=N.emitNode.classThis,Br=t.createAssignment(N.emitNode.classThis,t.getInternalName(N));else{let Eo=t.createTempVariable(i,!0);dr().classConstructor=t.cloneNode(Eo),Br=t.createAssignment(Eo,t.getInternalName(N))}(qt=N.emitNode)!=null&&qt.classThis&&(dr().classThis=N.emitNode.classThis);let Hn=u.hasNodeCheckFlag(N,262144),pn=ei(N,32),Lr=ei(N,2048),Ci=Ur(N.modifiers,De,la),Ai=Ur(N.heritageClauses,tt,vf),{members:io,prologue:Ta}=Re(N),Go=[];if(Br&&kr().unshift(Br),pt(te)&&Go.push(t.createExpressionStatement(t.inlineExpressions(te))),T||D||Sd(N)&32){let Eo=n5(N);pt(Eo)&&ut(Go,Eo,t.getInternalName(N))}Go.length>0&&pn&&Lr&&(Ci=Ur(Ci,Eo=>cM(Eo)?void 0:Eo,la),Go.push(t.createExportAssignment(void 0,!1,t.getLocalName(N,!1,!0))));let Dc=dr().classConstructor;Hn&&Dc&&(it(),me[T_(N)]=Dc);let $c=t.updateClassDeclaration(N,Ci,N.name,void 0,Ai,io);return Go.unshift($c),Ta&&Go.unshift(t.createExpressionStatement(Ta)),Go}function Pe(N){return Ke(N,kt)}function kt(N,Oe){var ft,qt,Br;let Hn=!!(Oe&1),pn=n5(N),Lr=u.hasNodeCheckFlag(N,262144),Ci=u.hasNodeCheckFlag(N,32768),Ai;function io(){var bu;if(D&&((bu=N.emitNode)!=null&&bu.classThis))return dr().classConstructor=N.emitNode.classThis;let up=t.createTempVariable(Ci?_:i,!0);return dr().classConstructor=t.cloneNode(up),up}(ft=N.emitNode)!=null&&ft.classThis&&(dr().classThis=N.emitNode.classThis),Oe&2&&(Ai??(Ai=io()));let Ta=Ur(N.modifiers,De,la),Go=Ur(N.heritageClauses,tt,vf),{members:Dc,prologue:$c}=Re(N),Eo=t.updateClassExpression(N,Ta,N.name,void 0,Go,Dc),Hc=[];if($c&&Hc.push($c),(D||Sd(N)&32)&&pt(pn,bu=>Nc(bu)||Zu(bu)||I&&DM(bu))||pt(te))if(Hn)w.assertIsDefined(V,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),pt(te)&&jn(V,hr(te,t.createExpressionStatement)),pt(pn)&&ut(V,pn,((qt=N.emitNode)==null?void 0:qt.classThis)??t.getInternalName(N)),Ai?Hc.push(t.createAssignment(Ai,Eo)):D&&((Br=N.emitNode)!=null&&Br.classThis)?Hc.push(t.createAssignment(N.emitNode.classThis,Eo)):Hc.push(Eo);else{if(Ai??(Ai=io()),Lr){it();let bu=t.cloneNode(Ai);bu.emitNode.autoGenerate.flags&=-9,me[T_(N)]=bu}Hc.push(t.createAssignment(Ai,Eo)),jn(Hc,te),jn(Hc,en(pn,Ai)),Hc.push(t.cloneNode(Ai))}else Hc.push(Eo);return Hc.length>1&&(Rm(Eo,131072),Hc.forEach(Ju)),t.inlineExpressions(Hc)}function pe(N){if(!D)return Ir(N,se,e)}function j(N){if(O&&ye&&Nc(ye)&&ne?.data){let{classThis:Oe,classConstructor:ft}=ne.data;return Oe??ft??N}return N}function Re(N){let Oe=!!(Sd(N)&32);if(D||K){for(let pn of N.members)if(Zu(pn))if(hi(pn))uc(pn,pn.name,tr);else{let Lr=Sr();Lk(Lr,pn.name,{kind:"untransformed"})}if(D&&pt(St(N))&&q(),ht()){for(let pn of N.members)if(N_(pn)){let Lr=t.getGeneratedPrivateNameForNode(pn.name,void 0,"_accessor_storage");if(D||Oe&&Tl(pn))uc(pn,Lr,si);else{let Ci=Sr();Lk(Ci,Lr,{kind:"untransformed"})}}}}let ft=Ur(N.members,le,rl),qt;pt(ft,lc)||(qt=yt(void 0,N));let Br,Hn;if(!D&&pt(te)){let pn=t.createExpressionStatement(t.inlineExpressions(te));if(pn.transformFlags&134234112){let Ci=t.createTempVariable(i),Ai=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([pn]));Br=t.createAssignment(Ci,Ai),pn=t.createExpressionStatement(t.createCallExpression(Ci,void 0,[]))}let Lr=t.createBlock([pn]);Hn=t.createClassStaticBlockDeclaration(Lr),te=void 0}if(qt||Hn){let pn,Lr=On(ft,fE),Ci=On(ft,eC);pn=jr(pn,Lr),pn=jr(pn,Ci),pn=jr(pn,qt),pn=jr(pn,Hn);let Ai=Lr||Ci?An(ft,io=>io!==Lr&&io!==Ci):ft;pn=jn(pn,Ai),ft=dt(t.createNodeArray(pn),N.members)}return{members:ft,prologue:Br}}function q(){let{weakSetName:N}=Sr().data;w.assert(N,"weakSetName should be set in private identifier environment"),kr().push(t.createAssignment(N,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function yt(N,Oe){if(N=et(N,se,lc),!ne?.data||!(ne.data.facts&16))return N;let ft=Dm(Oe),qt=!!(ft&&Wc(ft.expression).kind!==106),Br=Cc(N?N.parameters:void 0,se,e),Hn=we(Oe,N,qt);return Hn?N?(w.assert(Br),t.updateConstructorDeclaration(N,void 0,Br,Hn)):Ju(En(dt(t.createConstructorDeclaration(void 0,Br??[],Hn),N||Oe),N)):N}function jt(N,Oe,ft,qt,Br,Hn,pn){let Lr=qt[Br],Ci=Oe[Lr];if(jn(N,Ur(Oe,se,Ii,ft,Lr-ft)),ft=Lr+1,Ik(Ci)){let Ai=[];jt(Ai,Ci.tryBlock.statements,0,qt,Br+1,Hn,pn);let io=t.createNodeArray(Ai);dt(io,Ci.tryBlock.statements),N.push(t.updateTryStatement(Ci,t.updateBlock(Ci.tryBlock,Ai),et(Ci.catchClause,se,BS),et(Ci.finallyBlock,se,Fs)))}else{for(jn(N,Ur(Oe,se,Ii,Lr,1));ft<Oe.length;){let Ai=Oe[ft];if(pf(ic(Ai),pn))ft++;else break}jn(N,Hn)}jn(N,Ur(Oe,se,Ii,ft))}function we(N,Oe,ft){var qt;let Br=RU(N,!1,!1),Hn=Br;h||(Hn=An(Hn,$c=>!!$c.initializer||ji($c.name)||Em($c)));let pn=St(N),Lr=pt(Hn)||pt(pn);if(!Oe&&!Lr)return op(void 0,se,e);c();let Ci=!Oe&&ft,Ai=0,io=[],Ta=[],Go=t.createThis();if(Ut(Ta,pn,Go),Oe){let $c=An(Br,Hc=>pf(ic(Hc),Oe)),Eo=An(Hn,Hc=>!pf(ic(Hc),Oe));ut(Ta,$c,Go),ut(Ta,Eo,Go)}else ut(Ta,Hn,Go);if(Oe?.body){Ai=t.copyPrologue(Oe.body.statements,io,!1,se);let $c=r5(Oe.body.statements,Ai);if($c.length)jt(io,Oe.body.statements,Ai,$c,0,Ta,Oe);else{for(;Ai<Oe.body.statements.length;){let Eo=Oe.body.statements[Ai];if(pf(ic(Eo),Oe))Ai++;else break}jn(io,Ta),jn(io,Ur(Oe.body.statements,se,Ii,Ai))}}else Ci&&io.push(t.createExpressionStatement(t.createCallExpression(t.createSuper(),void 0,[t.createSpreadElement(t.createIdentifier("arguments"))]))),jn(io,Ta);if(io=t.mergeLexicalEnvironment(io,s()),io.length===0&&!Oe)return;let Dc=Oe?.body&&Oe.body.statements.length>=io.length?Oe.body.multiLine??io.length>0:io.length>0;return dt(t.createBlock(dt(t.createNodeArray(io),((qt=Oe?.body)==null?void 0:qt.statements)??N.members),Dc),Oe?.body)}function ut(N,Oe,ft){for(let qt of Oe){if(Ks(qt)&&!D)continue;let Br=Qt(qt,ft);Br&&N.push(Br)}}function Qt(N,Oe){let ft=Nc(N)?At(N,Y,N):Pr(N,Oe);if(!ft)return;let qt=t.createExpressionStatement(ft);En(qt,N),Rm(qt,Na(N)&3072),dl(qt,N);let Br=ic(N);return Bi(Br)?(Ia(qt,Br),U4(qt)):Ia(qt,Mm(N)),Jb(ft,void 0),A2(ft,void 0),Em(Br)&&Rm(qt,3072),qt}function en(N,Oe){let ft=[];for(let qt of N){let Br=Nc(qt)?At(qt,Y,qt):At(qt,()=>Pr(qt,Oe),void 0);Br&&(Ju(Br),En(Br,qt),Rm(Br,Na(qt)&3072),Ia(Br,Mm(qt)),dl(Br,qt),ft.push(Br))}return ft}function Pr(N,Oe){var ft;let qt=ye,Br=$r(N,Oe);return Br&&Tl(N)&&((ft=ne?.data)!=null&&ft.facts)&&(En(Br,N),Rm(Br,4),Ia(Br,av(N.name)),ie.set(ic(N),ne)),ye=qt,Br}function $r(N,Oe){let ft=!h;gf(N,Ae)&&(N=bf(e,N));let qt=Em(N)?t.getGeneratedPrivateNameForNode(N.name):pa(N.name)&&!Jm(N.name.expression)?t.updateComputedPropertyName(N.name,t.getGeneratedNameForNode(N.name)):N.name;if(Tl(N)&&(ye=N),ji(qt)&&hi(N)){let pn=bs(qt);if(pn)return pn.kind==="f"?pn.isStatic?DGe(t,pn.variableName,et(N.initializer,se,gt)):PGe(t,Oe,et(N.initializer,se,gt),pn.brandCheckIdentifier):void 0;w.fail("Undeclared private name for property declaration.")}if((ji(qt)||Tl(N))&&!N.initializer)return;let Br=ic(N);if(ei(Br,64))return;let Hn=et(N.initializer,se,gt);if(pf(Br,Br.parent)&&je(qt)){let pn=t.cloneNode(qt);Hn?(b_(Hn)&&iM(Hn.expression)&&OA(Hn.expression.left,"___runInitializers")&&B2(Hn.expression.right)&&L_(Hn.expression.right.expression)&&(Hn=Hn.expression.left),Hn=t.inlineExpressions([Hn,pn])):Hn=pn,dn(qt,3168),Ia(pn,Br.name),dn(pn,3072)}else Hn??(Hn=t.createVoidZero());if(ft||ji(qt)){let pn=Nk(t,Oe,qt,qt);return Rm(pn,1024),t.createAssignment(pn,Hn)}else{let pn=pa(qt)?qt.expression:je(qt)?t.createStringLiteral(Li(qt.escapedText)):qt,Lr=t.createPropertyDescriptor({value:Hn,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(Oe,pn,Lr)}}function it(){(U&1)===0&&(U|=1,e.enableSubstitution(80),me=[])}function Tt(){(U&2)===0&&(U|=2,e.enableSubstitution(110),e.enableEmitNotification(262),e.enableEmitNotification(218),e.enableEmitNotification(176),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(174),e.enableEmitNotification(172),e.enableEmitNotification(167))}function Ut(N,Oe,ft){if(!D||!pt(Oe))return;let{weakSetName:qt}=Sr().data;w.assert(qt,"weakSetName should be set in private identifier environment"),N.push(t.createExpressionStatement(AGe(t,ft,qt)))}function Ot(N){return Nn(N)?t.updatePropertyAccessExpression(N,t.createVoidZero(),N.name):t.updateElementAccessExpression(N,t.createVoidZero(),et(N.argumentExpression,se,gt))}function vr(N,Oe){if(pa(N)){let ft=T7(N),qt=et(N.expression,se,gt),Br=bd(qt),Hn=Jm(Br);if(!(!!ft||ql(Br)&&Ko(Br.left))&&!Hn&&Oe){let Lr=t.getGeneratedNameForNode(N);return u.hasNodeCheckFlag(N,32768)?_(Lr):i(Lr),t.createAssignment(Lr,qt)}return Hn||je(Br)?void 0:qt}}function ar(){ne={previous:ne,data:void 0}}function Gt(){ne=ne?.previous}function dr(){return w.assert(ne),ne.data??(ne.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function Sr(){return w.assert(ne),ne.privateEnv??(ne.privateEnv=oae({className:void 0,weakSetName:void 0}))}function kr(){return te??(te=[])}function tr(N,Oe,ft,qt,Br,Hn,pn){N_(N)?qc(N,Oe,ft,qt,Br,Hn,pn):ds(N)?si(N,Oe,ft,qt,Br,Hn,pn):xc(N)?zs(N,Oe,ft,qt,Br,Hn,pn):Mp(N)?ta(N,Oe,ft,qt,Br,Hn,pn):X_(N)&&Os(N,Oe,ft,qt,Br,Hn,pn)}function si(N,Oe,ft,qt,Br,Hn,pn){if(Br){let Lr=w.checkDefined(ft.classThis??ft.classConstructor,"classConstructor should be set in private identifier environment"),Ci=xi(Oe);Lk(qt,Oe,{kind:"f",isStatic:!0,brandCheckIdentifier:Lr,variableName:Ci,isValid:Hn})}else{let Lr=xi(Oe);Lk(qt,Oe,{kind:"f",isStatic:!1,brandCheckIdentifier:Lr,isValid:Hn}),kr().push(t.createAssignment(Lr,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function zs(N,Oe,ft,qt,Br,Hn,pn){let Lr=xi(Oe),Ci=Br?w.checkDefined(ft.classThis??ft.classConstructor,"classConstructor should be set in private identifier environment"):w.checkDefined(qt.data.weakSetName,"weakSetName should be set in private identifier environment");Lk(qt,Oe,{kind:"m",methodName:Lr,brandCheckIdentifier:Ci,isStatic:Br,isValid:Hn})}function ta(N,Oe,ft,qt,Br,Hn,pn){let Lr=xi(Oe,"_get"),Ci=Br?w.checkDefined(ft.classThis??ft.classConstructor,"classConstructor should be set in private identifier environment"):w.checkDefined(qt.data.weakSetName,"weakSetName should be set in private identifier environment");pn?.kind==="a"&&pn.isStatic===Br&&!pn.getterName?pn.getterName=Lr:Lk(qt,Oe,{kind:"a",getterName:Lr,setterName:void 0,brandCheckIdentifier:Ci,isStatic:Br,isValid:Hn})}function Os(N,Oe,ft,qt,Br,Hn,pn){let Lr=xi(Oe,"_set"),Ci=Br?w.checkDefined(ft.classThis??ft.classConstructor,"classConstructor should be set in private identifier environment"):w.checkDefined(qt.data.weakSetName,"weakSetName should be set in private identifier environment");pn?.kind==="a"&&pn.isStatic===Br&&!pn.setterName?pn.setterName=Lr:Lk(qt,Oe,{kind:"a",getterName:void 0,setterName:Lr,brandCheckIdentifier:Ci,isStatic:Br,isValid:Hn})}function qc(N,Oe,ft,qt,Br,Hn,pn){let Lr=xi(Oe,"_get"),Ci=xi(Oe,"_set"),Ai=Br?w.checkDefined(ft.classThis??ft.classConstructor,"classConstructor should be set in private identifier environment"):w.checkDefined(qt.data.weakSetName,"weakSetName should be set in private identifier environment");Lk(qt,Oe,{kind:"a",getterName:Lr,setterName:Ci,brandCheckIdentifier:Ai,isStatic:Br,isValid:Hn})}function uc(N,Oe,ft){let qt=dr(),Br=Sr(),Hn=OU(Br,Oe),pn=Tl(N),Lr=!EGe(Oe)&&Hn===void 0;ft(N,Oe,qt,Br,pn,Lr,Hn)}function Bc(N,Oe,ft){let{className:qt}=Sr().data,Br=qt?{prefix:"_",node:qt,suffix:"_"}:"_",Hn=typeof N=="object"?t.getGeneratedNameForNode(N,24,Br,ft):typeof N=="string"?t.createUniqueName(N,16,Br,ft):t.createTempVariable(void 0,!0,Br,ft);return u.hasNodeCheckFlag(Oe,32768)?_(Hn):i(Hn),Hn}function xi(N,Oe){let ft=qP(N);return Bc(ft?.substring(1)??N,N,Oe)}function bs(N){let Oe=cae(ne,N);return Oe?.kind==="untransformed"?void 0:Oe}function il(N){let Oe=t.getGeneratedNameForNode(N),ft=bs(N.name);if(!ft)return Ir(N,se,e);let qt=N.expression;return(G6(N)||H_(N)||!US(N.expression))&&(qt=t.createTempVariable(i,!0),kr().push(t.createBinaryExpression(qt,64,et(N.expression,se,gt)))),t.createAssignmentTargetWrapper(Oe,Fe(ft,qt,Oe,64))}function Qo(N){if(Sa(N)||gu(N))return Ht(N);if(Nw(N))return il(N);if(F&&ye&&H_(N)&&pE(ye)&&ne?.data){let{classConstructor:Oe,superClassReference:ft,facts:qt}=ne.data;if(qt&1)return Ot(N);if(Oe&&ft){let Br=wo(N)?et(N.argumentExpression,se,gt):je(N.name)?t.createStringLiteralFromNode(N.name):void 0;if(Br){let Hn=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(Hn,t.createReflectSetCall(ft,Br,Hn,Oe))}}}return Ir(N,se,e)}function Oa(N){if(gf(N,Ae)&&(N=bf(e,N)),ql(N,!0)){let Oe=Qo(N.left),ft=et(N.right,se,gt);return t.updateBinaryExpression(N,Oe,N.operatorToken,ft)}return Qo(N)}function Zo(N){if(M_(N.expression)){let Oe=Qo(N.expression);return t.updateSpreadElement(N,Oe)}return Ir(N,se,e)}function Cf(N){if(k6(N)){if(Rp(N))return Zo(N);if(!Fl(N))return Oa(N)}return Ir(N,se,e)}function ms(N){let Oe=et(N.name,se,tl);if(ql(N.initializer,!0)){let ft=Oa(N.initializer);return t.updatePropertyAssignment(N,Oe,ft)}if(M_(N.initializer)){let ft=Qo(N.initializer);return t.updatePropertyAssignment(N,Oe,ft)}return Ir(N,se,e)}function Ys(N){return gf(N,Ae)&&(N=bf(e,N)),Ir(N,se,e)}function Ba(N){if(M_(N.expression)){let Oe=Qo(N.expression);return t.updateSpreadAssignment(N,Oe)}return Ir(N,se,e)}function La(N){return w.assertNode(N,T6),xh(N)?Ba(N):Eu(N)?Ys(N):hl(N)?ms(N):Ir(N,se,e)}function Ht(N){return gu(N)?t.updateArrayLiteralExpression(N,Ur(N.elements,Cf,gt)):t.updateObjectLiteralExpression(N,Ur(N.properties,La,iy))}function fo(N,Oe,ft){let qt=ic(Oe),Br=ie.get(qt);if(Br){let Hn=ne,pn=ve;ne=Br,ve=H,H=!Nc(qt)||!(Sd(qt)&32),$(N,Oe,ft),H=ve,ve=pn,ne=Hn;return}switch(Oe.kind){case 218:if(Lo(qt)||Na(Oe)&524288)break;case 262:case 176:case 177:case 178:case 174:case 172:{let Hn=ne,pn=ve;ne=void 0,ve=H,H=!1,$(N,Oe,ft),H=ve,ve=pn,ne=Hn;return}case 167:{let Hn=ne,pn=H;ne=ne?.previous,H=ve,$(N,Oe,ft),H=pn,ne=Hn;return}}$(N,Oe,ft)}function sl(N,Oe){return Oe=G(N,Oe),N===1?wc(Oe):Oe}function wc(N){switch(N.kind){case 80:return ec(N);case 110:return cu(N)}return N}function cu(N){if(U&2&&ne?.data&&!oe.has(N)){let{facts:Oe,classConstructor:ft,classThis:qt}=ne.data,Br=H?qt??ft:ft;if(Br)return dt(En(t.cloneNode(Br),N),N);if(Oe&1&&S)return t.createParenthesizedExpression(t.createVoidZero())}return N}function ec(N){return Ic(N)||N}function Ic(N){if(U&1&&u.hasNodeCheckFlag(N,536870912)){let Oe=u.getReferencedValueDeclaration(N);if(Oe){let ft=me[Oe.id];if(ft){let qt=t.cloneNode(ft);return Ia(qt,N),dl(qt,N),qt}}}}}function DGe(e,t,n){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",n||e.createVoidZero())]))}function PGe(e,t,n,i){return e.createCallExpression(e.createPropertyAccessExpression(i,"set"),void 0,[t,n||e.createVoidZero()])}function AGe(e,t,n){return e.createCallExpression(e.createPropertyAccessExpression(n,"add"),void 0,[t])}function EGe(e){return!tk(e)&&e.escapedText==="#constructor"}function NGe(e){return ji(e.left)&&e.operatorToken.kind===103}function MGe(e){return ds(e)&&Tl(e)}function pE(e){return Nc(e)||MGe(e)}function yae(e){let{factory:t,hoistVariableDeclaration:n}=e,i=e.getEmitResolver(),s=e.getCompilerOptions(),o=wa(s),c=Pu(s,"strictNullChecks"),_,u;return{serializeTypeNode:(te,V)=>g(te,I,V),serializeTypeOfNode:(te,V,ne)=>g(te,h,V,ne),serializeParameterTypesOfNode:(te,V,ne)=>g(te,S,V,ne),serializeReturnTypeOfNode:(te,V)=>g(te,x,V)};function g(te,V,ne,ie){let oe=_,de=u;_=te.currentLexicalScope,u=te.currentNameScope;let ye=ie===void 0?V(ne):V(ne,ie);return _=oe,u=de,ye}function m(te,V){let ne=wS(V.members,te);return ne.setAccessor&&hre(ne.setAccessor)||ne.getAccessor&&Wf(ne.getAccessor)}function h(te,V){switch(te.kind){case 172:case 169:return I(te.type);case 178:case 177:return I(m(te,V));case 263:case 231:case 174:return t.createIdentifier("Function");default:return t.createVoidZero()}}function S(te,V){let ne=ii(te)?mh(te):Ns(te)&&Zp(te.body)?te:void 0,ie=[];if(ne){let oe=T(ne,V),de=oe.length;for(let ye=0;ye<de;ye++){let H=oe[ye];ye===0&&je(H.name)&&H.name.escapedText==="this"||(H.dotDotDotToken?ie.push(I(mz(H.type))):ie.push(h(H,V)))}}return t.createArrayLiteralExpression(ie)}function T(te,V){if(V&&te.kind===177){let{setAccessor:ne}=wS(V.members,te);if(ne)return ne.parameters}return te.parameters}function x(te){return Ns(te)&&te.type?I(te.type):sA(te)?t.createIdentifier("Promise"):t.createVoidZero()}function I(te){if(te===void 0)return t.createIdentifier("Object");switch(te=tA(te),te.kind){case 116:case 157:case 146:return t.createVoidZero();case 184:case 185:return t.createIdentifier("Function");case 188:case 189:return t.createIdentifier("Array");case 182:return te.assertsModifier?t.createVoidZero():t.createIdentifier("Boolean");case 136:return t.createIdentifier("Boolean");case 203:case 154:return t.createIdentifier("String");case 151:return t.createIdentifier("Object");case 201:return D(te.literal);case 150:return t.createIdentifier("Number");case 163:return me("BigInt",7);case 155:return me("Symbol",2);case 183:return F(te);case 193:return E(te.types,!0);case 192:return E(te.types,!1);case 194:return E([te.trueType,te.falseType],!1);case 198:if(te.operator===148)return I(te.type);break;case 186:case 199:case 200:case 187:case 133:case 159:case 197:case 205:break;case 312:case 313:case 317:case 318:case 319:break;case 314:case 315:case 316:return I(te.type);default:return w.failBadSyntaxKind(te)}return t.createIdentifier("Object")}function D(te){switch(te.kind){case 11:case 15:return t.createIdentifier("String");case 224:{let V=te.operand;switch(V.kind){case 9:case 10:return D(V);default:return w.failBadSyntaxKind(V)}}case 9:return t.createIdentifier("Number");case 10:return me("BigInt",7);case 112:case 97:return t.createIdentifier("Boolean");case 106:return t.createVoidZero();default:return w.failBadSyntaxKind(te)}}function E(te,V){let ne;for(let ie of te){if(ie=tA(ie),ie.kind===146){if(V)return t.createVoidZero();continue}if(ie.kind===159){if(!V)return t.createIdentifier("Object");continue}if(ie.kind===133)return t.createIdentifier("Object");if(!c&&(lv(ie)&&ie.literal.kind===106||ie.kind===157))continue;let oe=I(ie);if(je(oe)&&oe.escapedText==="Object")return oe;if(ne){if(!O(ne,oe))return t.createIdentifier("Object")}else ne=oe}return ne??t.createVoidZero()}function O(te,V){return Ko(te)?Ko(V):je(te)?je(V)&&te.escapedText===V.escapedText:Nn(te)?Nn(V)&&O(te.expression,V.expression)&&O(te.name,V.name):B2(te)?B2(V)&&L_(te.expression)&&te.expression.text==="0"&&L_(V.expression)&&V.expression.text==="0":ya(te)?ya(V)&&te.text===V.text:pI(te)?pI(V)&&O(te.expression,V.expression):b_(te)?b_(V)&&O(te.expression,V.expression):wk(te)?wk(V)&&O(te.condition,V.condition)&&O(te.whenTrue,V.whenTrue)&&O(te.whenFalse,V.whenFalse):vn(te)?vn(V)&&te.operatorToken.kind===V.operatorToken.kind&&O(te.left,V.left)&&O(te.right,V.right):!1}function F(te){let V=i.getTypeReferenceSerializationKind(te.typeName,u??_);switch(V){case 0:if(gr(te,oe=>oe.parent&&RS(oe.parent)&&(oe.parent.trueType===oe||oe.parent.falseType===oe)))return t.createIdentifier("Object");let ne=G(te.typeName),ie=t.createTempVariable(n);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(ie,ne),"function"),void 0,ie,void 0,t.createIdentifier("Object"));case 1:return $(te.typeName);case 2:return t.createVoidZero();case 4:return me("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 me("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 B(te,V){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(te),t.createStringLiteral("undefined")),V)}function G(te){if(te.kind===80){let ie=$(te);return B(ie,ie)}if(te.left.kind===80)return B($(te.left),$(te));let V=G(te.left),ne=t.createTempVariable(n);return t.createLogicalAnd(t.createLogicalAnd(V.left,t.createStrictInequality(t.createAssignment(ne,V.right),t.createVoidZero())),t.createPropertyAccessExpression(ne,te.right))}function $(te){switch(te.kind){case 80:let V=Xa(dt(Yb.cloneNode(te),te),te.parent);return V.original=void 0,Xa(V,Cs(_)),V;case 166:return K(te)}}function K(te){return t.createPropertyAccessExpression($(te.left),te.right)}function U(te){return t.createConditionalExpression(t.createTypeCheck(t.createIdentifier(te),"function"),void 0,t.createIdentifier(te),void 0,t.createIdentifier("Object"))}function me(te,V){return o<V?U(te):t.createIdentifier(te)}}function vae(e){let{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:i}=e,s=e.getEmitResolver(),o=e.getCompilerOptions(),c=wa(o),_=e.onSubstituteNode;e.onSubstituteNode=Je;let u;return Xd(e,g);function g(Ce){let Ve=Ir(Ce,h,e);return Th(Ve,e.readEmitHelpers()),Ve}function m(Ce){return Rl(Ce)?void 0:Ce}function h(Ce){if(!(Ce.transformFlags&33554432))return Ce;switch(Ce.kind){case 170:return;case 263:return S(Ce);case 231:return F(Ce);case 176:return B(Ce);case 174:return $(Ce);case 178:return U(Ce);case 177:return K(Ce);case 172:return me(Ce);case 169:return te(Ce);default:return Ir(Ce,h,e)}}function S(Ce){if(!(ev(!0,Ce)||KP(!0,Ce)))return Ir(Ce,h,e);let Ve=ev(!0,Ce)?O(Ce,Ce.name):E(Ce,Ce.name);return yg(Ve)}function T(Ce){return!!(Ce.transformFlags&536870912)}function x(Ce){return pt(Ce,T)}function I(Ce){for(let Ve of Ce.members){if(!JS(Ve))continue;let bt=i5(Ve,Ce,!0);if(pt(bt?.decorators,T)||pt(bt?.parameters,x))return!0}return!1}function D(Ce,Ve){let bt=[];return ie(bt,Ce,!1),ie(bt,Ce,!0),I(Ce)&&(Ve=dt(t.createNodeArray([...Ve,t.createClassStaticBlockDeclaration(t.createBlock(bt,!0))]),Ve),bt=void 0),{decorationStatements:bt,members:Ve}}function E(Ce,Ve){let bt=Ur(Ce.modifiers,m,la),zt=Ur(Ce.heritageClauses,h,vf),ur=Ur(Ce.members,h,rl),Or=[];({members:ur,decorationStatements:Or}=D(Ce,ur));let _t=t.updateClassDeclaration(Ce,bt,Ve,void 0,zt,ur);return jn([_t],Or)}function O(Ce,Ve){let bt=ei(Ce,32),zt=ei(Ce,2048),ur=Ur(Ce.modifiers,ht=>cM(ht)||Rl(ht)?void 0:ht,Xo),Or=Mm(Ce),_t=tt(Ce),$t=c<2?t.getInternalName(Ce,!1,!0):t.getLocalName(Ce,!1,!0),Hr=Ur(Ce.heritageClauses,h,vf),hi=Ur(Ce.members,h,rl),_s=[];({members:hi,decorationStatements:_s}=D(Ce,hi));let At=c>=9&&!!_t&&pt(hi,ht=>ds(ht)&&ei(ht,256)||Nc(ht));At&&(hi=dt(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(_t,t.createThis()))])),...hi]),hi));let zn=t.createClassExpression(ur,Ve&&Ko(Ve)?void 0:Ve,void 0,Hr,hi);En(zn,Ce),dt(zn,Or);let ns=_t&&!At?t.createAssignment(_t,zn):zn,Rn=t.createVariableDeclaration($t,void 0,void 0,ns);En(Rn,Ce);let hn=t.createVariableDeclarationList([Rn],1),ui=t.createVariableStatement(void 0,hn);En(ui,Ce),dt(ui,Or),dl(ui,Ce);let Ue=[ui];if(jn(Ue,_s),ve(Ue,Ce),bt)if(zt){let ht=t.createExportDefault($t);Ue.push(ht)}else{let ht=t.createExternalModuleExport(t.getDeclarationName(Ce));Ue.push(ht)}return Ue}function F(Ce){return t.updateClassExpression(Ce,Ur(Ce.modifiers,m,la),Ce.name,void 0,Ur(Ce.heritageClauses,h,vf),Ur(Ce.members,h,rl))}function B(Ce){return t.updateConstructorDeclaration(Ce,Ur(Ce.modifiers,m,la),Ur(Ce.parameters,h,Bi),et(Ce.body,h,Fs))}function G(Ce,Ve){return Ce!==Ve&&(dl(Ce,Ve),Ia(Ce,Mm(Ve))),Ce}function $(Ce){return G(t.updateMethodDeclaration(Ce,Ur(Ce.modifiers,m,la),Ce.asteriskToken,w.checkDefined(et(Ce.name,h,tl)),void 0,void 0,Ur(Ce.parameters,h,Bi),void 0,et(Ce.body,h,Fs)),Ce)}function K(Ce){return G(t.updateGetAccessorDeclaration(Ce,Ur(Ce.modifiers,m,la),w.checkDefined(et(Ce.name,h,tl)),Ur(Ce.parameters,h,Bi),void 0,et(Ce.body,h,Fs)),Ce)}function U(Ce){return G(t.updateSetAccessorDeclaration(Ce,Ur(Ce.modifiers,m,la),w.checkDefined(et(Ce.name,h,tl)),Ur(Ce.parameters,h,Bi),et(Ce.body,h,Fs)),Ce)}function me(Ce){if(!(Ce.flags&33554432||ei(Ce,128)))return G(t.updatePropertyDeclaration(Ce,Ur(Ce.modifiers,m,la),w.checkDefined(et(Ce.name,h,tl)),void 0,void 0,et(Ce.initializer,h,gt)),Ce)}function te(Ce){let Ve=t.updateParameterDeclaration(Ce,jie(t,Ce.modifiers),Ce.dotDotDotToken,w.checkDefined(et(Ce.name,h,rk)),void 0,void 0,et(Ce.initializer,h,gt));return Ve!==Ce&&(dl(Ve,Ce),dt(Ve,Mm(Ce)),Ia(Ve,Mm(Ce)),dn(Ve.name,64)),Ve}function V(Ce){return OA(Ce.expression,"___metadata")}function ne(Ce){if(!Ce)return;let{false:Ve,true:bt}=AW(Ce.decorators,V),zt=[];return jn(zt,hr(Ve,De)),jn(zt,ga(Ce.parameters,se)),jn(zt,hr(bt,De)),zt}function ie(Ce,Ve,bt){jn(Ce,hr(ye(Ve,bt),zt=>t.createExpressionStatement(zt)))}function oe(Ce,Ve,bt){return q6(!0,Ce,bt)&&Ve===Ks(Ce)}function de(Ce,Ve){return An(Ce.members,bt=>oe(bt,Ve,Ce))}function ye(Ce,Ve){let bt=de(Ce,Ve),zt;for(let ur of bt)zt=jr(zt,H(Ce,ur));return zt}function H(Ce,Ve){let bt=i5(Ve,Ce,!0),zt=ne(bt);if(!zt)return;let ur=le(Ce,Ve),Or=xe(Ve,!ei(Ve,128)),_t=ds(Ve)&&!Em(Ve)?t.createVoidZero():t.createNull(),$t=n().createDecorateHelper(zt,ur,Or,_t);return dn($t,3072),Ia($t,Mm(Ve)),$t}function ve(Ce,Ve){let bt=Ge(Ve);bt&&Ce.push(En(t.createExpressionStatement(bt),Ve))}function Ge(Ce){let Ve=FU(Ce,!0),bt=ne(Ve);if(!bt)return;let zt=u&&u[T_(Ce)],ur=c<2?t.getInternalName(Ce,!1,!0):t.getDeclarationName(Ce,!1,!0),Or=n().createDecorateHelper(bt,ur),_t=t.createAssignment(ur,zt?t.createAssignment(zt,Or):Or);return dn(_t,3072),Ia(_t,Mm(Ce)),_t}function De(Ce){return w.checkDefined(et(Ce.expression,h,gt))}function se(Ce,Ve){let bt;if(Ce){bt=[];for(let zt of Ce){let ur=n().createParamHelper(De(zt),Ve);dt(ur,zt.expression),dn(ur,3072),bt.push(ur)}}return bt}function xe(Ce,Ve){let bt=Ce.name;return ji(bt)?t.createIdentifier(""):pa(bt)?Ve&&!Jm(bt.expression)?t.getGeneratedNameForNode(bt):bt.expression:je(bt)?t.createStringLiteral(Ln(bt)):t.cloneNode(bt)}function _e(){u||(e.enableSubstitution(80),u=[])}function tt(Ce){if(s.hasNodeCheckFlag(Ce,262144)){_e();let Ve=t.createUniqueName(Ce.name&&!Ko(Ce.name)?Ln(Ce.name):"default");return u[T_(Ce)]=Ve,i(Ve),Ve}}function ct(Ce){return t.createPropertyAccessExpression(t.getDeclarationName(Ce),"prototype")}function le(Ce,Ve){return Ks(Ve)?t.getDeclarationName(Ce):ct(Ce)}function Je(Ce,Ve){return Ve=_(Ce,Ve),Ce===1?ee(Ve):Ve}function ee(Ce){switch(Ce.kind){case 80:return Ne(Ce)}return Ce}function Ne(Ce){return Ie(Ce)??Ce}function Ie(Ce){if(u&&s.hasNodeCheckFlag(Ce,536870912)){let Ve=s.getReferencedValueDeclaration(Ce);if(Ve){let bt=u[Ve.id];if(bt){let zt=t.cloneNode(bt);return Ia(zt,Ce),dl(zt,Ce),zt}}}}}function bae(e){let{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:i,endLexicalEnvironment:s,hoistVariableDeclaration:o}=e,c=wa(e.getCompilerOptions()),_,u,g,m,h,S;return Xd(e,T);function T(j){_=void 0,S=!1;let Re=Ir(j,U,e);return Th(Re,e.readEmitHelpers()),S&&(bk(Re,32),S=!1),Re}function x(){switch(u=void 0,g=void 0,m=void 0,_?.kind){case"class":u=_.classInfo;break;case"class-element":u=_.next.classInfo,g=_.classThis,m=_.classSuper;break;case"name":let j=_.next.next.next;j?.kind==="class-element"&&(u=j.next.classInfo,g=j.classThis,m=j.classSuper);break}}function I(j){_={kind:"class",next:_,classInfo:j,savedPendingExpressions:h},h=void 0,x()}function D(){w.assert(_?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${_?.kind}' instead.`),h=_.savedPendingExpressions,_=_.next,x()}function E(j){var Re,q;w.assert(_?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${_?.kind}' instead.`),_={kind:"class-element",next:_},(Nc(j)||ds(j)&&Tl(j))&&(_.classThis=(Re=_.next.classInfo)==null?void 0:Re.classThis,_.classSuper=(q=_.next.classInfo)==null?void 0:q.classSuper),x()}function O(){var j;w.assert(_?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${_?.kind}' instead.`),w.assert(((j=_.next)==null?void 0:j.kind)==="class","Incorrect value for top.next.kind.",()=>{var Re;return`Expected top.next.kind to be 'class' but got '${(Re=_.next)==null?void 0:Re.kind}' instead.`}),_=_.next,x()}function F(){w.assert(_?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${_?.kind}' instead.`),_={kind:"name",next:_},x()}function B(){w.assert(_?.kind==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${_?.kind}' instead.`),_=_.next,x()}function G(){_?.kind==="other"?(w.assert(!h),_.depth++):(_={kind:"other",next:_,depth:0,savedPendingExpressions:h},h=void 0,x())}function $(){w.assert(_?.kind==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${_?.kind}' instead.`),_.depth>0?(w.assert(!h),_.depth--):(h=_.savedPendingExpressions,_=_.next,x())}function K(j){return!!(j.transformFlags&33554432)||!!g&&!!(j.transformFlags&16384)||!!g&&!!m&&!!(j.transformFlags&134217728)}function U(j){if(!K(j))return j;switch(j.kind){case 170:return w.fail("Use `modifierVisitor` instead.");case 263:return Ge(j);case 231:return De(j);case 176:case 172:case 175:return w.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return Or(j);case 226:return _s(j,!1);case 303:return ui(j);case 260:return Ue(j);case 208:return ht(j);case 277:return Ye(j);case 110:return Ce(j);case 248:return Hr(j);case 244:return hi(j);case 356:return zn(j,!1);case 217:return Nt(j,!1);case 355:return ae(j,!1);case 213:return Ve(j);case 215:return bt(j);case 224:case 225:return At(j,!1);case 211:return zt(j);case 212:return ur(j);case 167:return hn(j);case 174:case 178:case 177:case 218:case 262:{G();let Re=Ir(j,me,e);return $(),Re}default:return Ir(j,me,e)}}function me(j){switch(j.kind){case 170:return;default:return U(j)}}function te(j){switch(j.kind){case 170:return;default:return j}}function V(j){switch(j.kind){case 176:return _e(j);case 174:return le(j);case 177:return Je(j);case 178:return ee(j);case 172:return Ie(j);case 175:return Ne(j);default:return U(j)}}function ne(j){switch(j.kind){case 224:case 225:return At(j,!0);case 226:return _s(j,!0);case 356:return zn(j,!0);case 217:return Nt(j,!0);default:return U(j)}}function ie(j){let Re=j.name&&je(j.name)&&!Ko(j.name)?Ln(j.name):j.name&&ji(j.name)&&!Ko(j.name)?Ln(j.name).slice(1):j.name&&ya(j.name)&&$_(j.name.text,99)?j.name.text:ii(j)?"class":"member";return ch(j)&&(Re=`get_${Re}`),xm(j)&&(Re=`set_${Re}`),j.name&&ji(j.name)&&(Re=`private_${Re}`),Ks(j)&&(Re=`static_${Re}`),"_"+Re}function oe(j,Re){return t.createUniqueName(`${ie(j)}_${Re}`,24)}function de(j,Re){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(j,void 0,void 0,Re)],1))}function ye(j){let Re=t.createUniqueName("_metadata",48),q,yt,jt=!1,we=!1,ut=!1,Qt,en,Pr;if(Gw(!1,j)){let $r=pt(j.members,it=>(Zu(it)||N_(it))&&Tl(it));Qt=t.createUniqueName("_classThis",$r?24:48)}for(let $r of j.members){if(Zx($r)&&q6(!1,$r,j))if(Tl($r)){if(!yt){yt=t.createUniqueName("_staticExtraInitializers",48);let it=n().createRunInitializersHelper(Qt??t.createThis(),yt);Ia(it,j.name??uy(j)),en??(en=[]),en.push(it)}}else{if(!q){q=t.createUniqueName("_instanceExtraInitializers",48);let it=n().createRunInitializersHelper(t.createThis(),q);Ia(it,j.name??uy(j)),Pr??(Pr=[]),Pr.push(it)}q??(q=t.createUniqueName("_instanceExtraInitializers",48))}if(Nc($r)?eC($r)||(jt=!0):ds($r)&&(Tl($r)?jt||(jt=!!$r.initializer||rp($r)):we||(we=!cz($r))),(Zu($r)||N_($r))&&Tl($r)&&(ut=!0),yt&&q&&jt&&we&&ut)break}return{class:j,classThis:Qt,metadataReference:Re,instanceMethodExtraInitializersName:q,staticMethodExtraInitializersName:yt,hasStaticInitializers:jt,hasNonAmbientInstanceFields:we,hasStaticPrivateClassElements:ut,pendingStaticInitializers:en,pendingInstanceInitializers:Pr}}function H(j){i(),!jU(j)&&ev(!1,j)&&(j=o5(e,j,t.createStringLiteral("")));let Re=t.getLocalName(j,!1,!1,!0),q=ye(j),yt=[],jt,we,ut,Qt,en=!1,Pr=Xe(FU(j,!1));Pr&&(q.classDecoratorsName=t.createUniqueName("_classDecorators",48),q.classDescriptorName=t.createUniqueName("_classDescriptor",48),q.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),w.assertIsDefined(q.classThis),yt.push(de(q.classDecoratorsName,t.createArrayLiteralExpression(Pr)),de(q.classDescriptorName),de(q.classExtraInitializersName,t.createArrayLiteralExpression()),de(q.classThis)),q.hasStaticPrivateClassElements&&(en=!0,S=!0));let $r=_4(j.heritageClauses,96),it=$r&&_l($r.types),Tt=it&&et(it.expression,U,gt);if(Tt){q.classSuper=t.createUniqueName("_classSuper",48);let Sr=Wc(Tt),kr=ml(Sr)&&!Sr.name||Ao(Sr)&&!Sr.name||Lo(Sr)?t.createComma(t.createNumericLiteral(0),Tt):Tt;yt.push(de(q.classSuper,kr));let tr=t.updateExpressionWithTypeArguments(it,q.classSuper,void 0),si=t.updateHeritageClause($r,[tr]);Qt=t.createNodeArray([si])}let Ut=q.classThis??t.createThis();I(q),jt=jr(jt,Pe(q.metadataReference,q.classSuper));let Ot=j.members;if(Ot=Ur(Ot,Sr=>lc(Sr)?Sr:V(Sr),rl),Ot=Ur(Ot,Sr=>lc(Sr)?V(Sr):Sr,rl),h){let Sr;for(let kr of h){kr=et(kr,function si(zs){if(!(zs.transformFlags&16384))return zs;switch(zs.kind){case 110:return Sr||(Sr=t.createUniqueName("_outerThis",16),yt.unshift(de(Sr,t.createThis()))),Sr;default:return Ir(zs,si,e)}},gt);let tr=t.createExpressionStatement(kr);jt=jr(jt,tr)}h=void 0}if(D(),pt(q.pendingInstanceInitializers)&&!mh(j)){let Sr=se(j,q);if(Sr){let kr=Dm(j),tr=!!(kr&&Wc(kr.expression).kind!==106),si=[];if(tr){let ta=t.createSpreadElement(t.createIdentifier("arguments")),Os=t.createCallExpression(t.createSuper(),void 0,[ta]);si.push(t.createExpressionStatement(Os))}jn(si,Sr);let zs=t.createBlock(si,!0);ut=t.createConstructorDeclaration(void 0,[],zs)}}if(q.staticMethodExtraInitializersName&&yt.push(de(q.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),q.instanceMethodExtraInitializersName&&yt.push(de(q.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),q.memberInfos&&Nl(q.memberInfos,(Sr,kr)=>{Ks(kr)&&(yt.push(de(Sr.memberDecoratorsName)),Sr.memberInitializersName&&yt.push(de(Sr.memberInitializersName,t.createArrayLiteralExpression())),Sr.memberExtraInitializersName&&yt.push(de(Sr.memberExtraInitializersName,t.createArrayLiteralExpression())),Sr.memberDescriptorName&&yt.push(de(Sr.memberDescriptorName)))}),q.memberInfos&&Nl(q.memberInfos,(Sr,kr)=>{Ks(kr)||(yt.push(de(Sr.memberDecoratorsName)),Sr.memberInitializersName&&yt.push(de(Sr.memberInitializersName,t.createArrayLiteralExpression())),Sr.memberExtraInitializersName&&yt.push(de(Sr.memberExtraInitializersName,t.createArrayLiteralExpression())),Sr.memberDescriptorName&&yt.push(de(Sr.memberDescriptorName)))}),jt=jn(jt,q.staticNonFieldDecorationStatements),jt=jn(jt,q.nonStaticNonFieldDecorationStatements),jt=jn(jt,q.staticFieldDecorationStatements),jt=jn(jt,q.nonStaticFieldDecorationStatements),q.classDescriptorName&&q.classDecoratorsName&&q.classExtraInitializersName&&q.classThis){jt??(jt=[]);let Sr=t.createPropertyAssignment("value",Ut),kr=t.createObjectLiteralExpression([Sr]),tr=t.createAssignment(q.classDescriptorName,kr),si=t.createPropertyAccessExpression(Ut,"name"),zs=n().createESDecorateHelper(t.createNull(),tr,q.classDecoratorsName,{kind:"class",name:si,metadata:q.metadataReference},t.createNull(),q.classExtraInitializersName),ta=t.createExpressionStatement(zs);Ia(ta,uy(j)),jt.push(ta);let Os=t.createPropertyAccessExpression(q.classDescriptorName,"value"),qc=t.createAssignment(q.classThis,Os),uc=t.createAssignment(Re,qc);jt.push(t.createExpressionStatement(uc))}if(jt.push(kt(Ut,q.metadataReference)),pt(q.pendingStaticInitializers)){for(let Sr of q.pendingStaticInitializers){let kr=t.createExpressionStatement(Sr);Ia(kr,av(Sr)),we=jr(we,kr)}q.pendingStaticInitializers=void 0}if(q.classExtraInitializersName){let Sr=n().createRunInitializersHelper(Ut,q.classExtraInitializersName),kr=t.createExpressionStatement(Sr);Ia(kr,j.name??uy(j)),we=jr(we,kr)}jt&&we&&!q.hasStaticInitializers&&(jn(jt,we),we=void 0);let vr=jt&&t.createClassStaticBlockDeclaration(t.createBlock(jt,!0));vr&&en&&V4(vr,32);let ar=we&&t.createClassStaticBlockDeclaration(t.createBlock(we,!0));if(vr||ut||ar){let Sr=[],kr=Ot.findIndex(eC);vr?(jn(Sr,Ot,0,kr+1),Sr.push(vr),jn(Sr,Ot,kr+1)):jn(Sr,Ot),ut&&Sr.push(ut),ar&&Sr.push(ar),Ot=dt(t.createNodeArray(Sr),Ot)}let Gt=s(),dr;if(Pr){dr=t.createClassExpression(void 0,void 0,void 0,Qt,Ot),q.classThis&&(dr=fae(t,dr,q.classThis));let Sr=t.createVariableDeclaration(Re,void 0,void 0,dr),kr=t.createVariableDeclarationList([Sr]),tr=q.classThis?t.createAssignment(Re,q.classThis):Re;yt.push(t.createVariableStatement(void 0,kr),t.createReturnStatement(tr))}else dr=t.createClassExpression(void 0,j.name,void 0,Qt,Ot),yt.push(t.createReturnStatement(dr));if(en){bk(dr,32);for(let Sr of dr.members)(Zu(Sr)||N_(Sr))&&Tl(Sr)&&bk(Sr,32)}return En(dr,j),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(yt,Gt))}function ve(j){return ev(!1,j)||KP(!1,j)}function Ge(j){if(ve(j)){let Re=[],q=ic(j,ii)??j,yt=q.name?t.createStringLiteralFromNode(q.name):t.createStringLiteral("default"),jt=ei(j,32),we=ei(j,2048);if(j.name||(j=o5(e,j,yt)),jt&&we){let ut=H(j);if(j.name){let Qt=t.createVariableDeclaration(t.getLocalName(j),void 0,void 0,ut);En(Qt,j);let en=t.createVariableDeclarationList([Qt],1),Pr=t.createVariableStatement(void 0,en);Re.push(Pr);let $r=t.createExportDefault(t.getDeclarationName(j));En($r,j),dl($r,Fm(j)),Ia($r,uy(j)),Re.push($r)}else{let Qt=t.createExportDefault(ut);En(Qt,j),dl(Qt,Fm(j)),Ia(Qt,uy(j)),Re.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?Ut=>R2(Ut)?void 0:te(Ut):te,en=Ur(j.modifiers,Qt,la),Pr=t.getLocalName(j,!1,!0),$r=t.createVariableDeclaration(Pr,void 0,void 0,ut);En($r,j);let it=t.createVariableDeclarationList([$r],1),Tt=t.createVariableStatement(en,it);if(En(Tt,j),dl(Tt,Fm(j)),Re.push(Tt),jt){let Ut=t.createExternalModuleExport(Pr);En(Ut,j),Re.push(Ut)}}return yg(Re)}else{let Re=Ur(j.modifiers,te,la),q=Ur(j.heritageClauses,U,vf);I(void 0);let yt=Ur(j.members,V,rl);return D(),t.updateClassDeclaration(j,Re,j.name,void 0,q,yt)}}function De(j){if(ve(j)){let Re=H(j);return En(Re,j),Re}else{let Re=Ur(j.modifiers,te,la),q=Ur(j.heritageClauses,U,vf);I(void 0);let yt=Ur(j.members,V,rl);return D(),t.updateClassExpression(j,Re,j.name,void 0,q,yt)}}function se(j,Re){if(pt(Re.pendingInstanceInitializers)){let q=[];return q.push(t.createExpressionStatement(t.inlineExpressions(Re.pendingInstanceInitializers))),Re.pendingInstanceInitializers=void 0,q}}function xe(j,Re,q,yt,jt,we){let ut=yt[jt],Qt=Re[ut];if(jn(j,Ur(Re,U,Ii,q,ut-q)),Ik(Qt)){let en=[];xe(en,Qt.tryBlock.statements,0,yt,jt+1,we);let Pr=t.createNodeArray(en);dt(Pr,Qt.tryBlock.statements),j.push(t.updateTryStatement(Qt,t.updateBlock(Qt.tryBlock,en),et(Qt.catchClause,U,BS),et(Qt.finallyBlock,U,Fs)))}else jn(j,Ur(Re,U,Ii,ut,1)),jn(j,we);jn(j,Ur(Re,U,Ii,ut+1))}function _e(j){E(j);let Re=Ur(j.modifiers,te,la),q=Ur(j.parameters,U,Bi),yt;if(j.body&&u){let jt=se(u.class,u);if(jt){let we=[],ut=t.copyPrologue(j.body.statements,we,!1,U),Qt=r5(j.body.statements,ut);Qt.length>0?xe(we,j.body.statements,ut,Qt,0,jt):(jn(we,jt),jn(we,Ur(j.body.statements,U,Ii))),yt=t.createBlock(we,!0),En(yt,j.body),dt(yt,j.body)}}return yt??(yt=et(j.body,U,Fs)),O(),t.updateConstructorDeclaration(j,Re,q,yt)}function tt(j,Re){return j!==Re&&(dl(j,Re),Ia(j,uy(Re))),j}function ct(j,Re,q){let yt,jt,we,ut,Qt,en;if(!Re){let it=Ur(j.modifiers,te,la);return F(),jt=Rn(j.name),B(),{modifiers:it,referencedName:yt,name:jt,initializersName:we,descriptorName:en,thisArg:Qt}}let Pr=Xe(i5(j,Re.class,!1)),$r=Ur(j.modifiers,te,la);if(Pr){let it=oe(j,"decorators"),Tt=t.createArrayLiteralExpression(Pr),Ut=t.createAssignment(it,Tt),Ot={memberDecoratorsName:it};Re.memberInfos??(Re.memberInfos=new Map),Re.memberInfos.set(j,Ot),h??(h=[]),h.push(Ut);let vr=Zx(j)||N_(j)?Ks(j)?Re.staticNonFieldDecorationStatements??(Re.staticNonFieldDecorationStatements=[]):Re.nonStaticNonFieldDecorationStatements??(Re.nonStaticNonFieldDecorationStatements=[]):ds(j)&&!N_(j)?Ks(j)?Re.staticFieldDecorationStatements??(Re.staticFieldDecorationStatements=[]):Re.nonStaticFieldDecorationStatements??(Re.nonStaticFieldDecorationStatements=[]):w.fail(),ar=Mp(j)?"getter":X_(j)?"setter":xc(j)?"method":N_(j)?"accessor":ds(j)?"field":w.fail(),Gt;if(je(j.name)||ji(j.name))Gt={computed:!1,name:j.name};else if(Pm(j.name))Gt={computed:!0,name:t.createStringLiteralFromNode(j.name)};else{let Sr=j.name.expression;Pm(Sr)&&!je(Sr)?Gt={computed:!0,name:t.createStringLiteralFromNode(Sr)}:(F(),{referencedName:yt,name:jt}=ns(j.name),Gt={computed:!0,name:yt},B())}let dr={kind:ar,name:Gt,static:Ks(j),private:ji(j.name),access:{get:ds(j)||Mp(j)||xc(j),set:ds(j)||X_(j)},metadata:Re.metadataReference};if(Zx(j)){let Sr=Ks(j)?Re.staticMethodExtraInitializersName:Re.instanceMethodExtraInitializersName;w.assertIsDefined(Sr);let kr;Zu(j)&&q&&(kr=q(j,Ur($r,zs=>Vn(zs,jA),la)),Ot.memberDescriptorName=en=oe(j,"descriptor"),kr=t.createAssignment(en,kr));let tr=n().createESDecorateHelper(t.createThis(),kr??t.createNull(),it,dr,t.createNull(),Sr),si=t.createExpressionStatement(tr);Ia(si,uy(j)),vr.push(si)}else if(ds(j)){we=Ot.memberInitializersName??(Ot.memberInitializersName=oe(j,"initializers")),ut=Ot.memberExtraInitializersName??(Ot.memberExtraInitializersName=oe(j,"extraInitializers")),Ks(j)&&(Qt=Re.classThis);let Sr;Zu(j)&&Em(j)&&q&&(Sr=q(j,void 0),Ot.memberDescriptorName=en=oe(j,"descriptor"),Sr=t.createAssignment(en,Sr));let kr=n().createESDecorateHelper(N_(j)?t.createThis():t.createNull(),Sr??t.createNull(),it,dr,we,ut),tr=t.createExpressionStatement(kr);Ia(tr,uy(j)),vr.push(tr)}}return jt===void 0&&(F(),jt=Rn(j.name),B()),!pt($r)&&(xc(j)||ds(j))&&dn(jt,1024),{modifiers:$r,referencedName:yt,name:jt,initializersName:we,extraInitializersName:ut,descriptorName:en,thisArg:Qt}}function le(j){E(j);let{modifiers:Re,name:q,descriptorName:yt}=ct(j,u,Fe);if(yt)return O(),tt(Ke(Re,q,yt),j);{let jt=Ur(j.parameters,U,Bi),we=et(j.body,U,Fs);return O(),tt(t.updateMethodDeclaration(j,Re,j.asteriskToken,q,void 0,void 0,jt,void 0,we),j)}}function Je(j){E(j);let{modifiers:Re,name:q,descriptorName:yt}=ct(j,u,St);if(yt)return O(),tt(Vt(Re,q,yt),j);{let jt=Ur(j.parameters,U,Bi),we=et(j.body,U,Fs);return O(),tt(t.updateGetAccessorDeclaration(j,Re,q,jt,void 0,we),j)}}function ee(j){E(j);let{modifiers:Re,name:q,descriptorName:yt}=ct(j,u,vt);if(yt)return O(),tt(on(Re,q,yt),j);{let jt=Ur(j.parameters,U,Bi),we=et(j.body,U,Fs);return O(),tt(t.updateSetAccessorDeclaration(j,Re,q,jt,we),j)}}function Ne(j){E(j);let Re;if(eC(j))Re=Ir(j,U,e);else if(fE(j)){let q=g;g=void 0,Re=Ir(j,U,e),g=q}else if(j=Ir(j,U,e),Re=j,u&&(u.hasStaticInitializers=!0,pt(u.pendingStaticInitializers))){let q=[];for(let we of u.pendingStaticInitializers){let ut=t.createExpressionStatement(we);Ia(ut,av(we)),q.push(ut)}let yt=t.createBlock(q,!0);Re=[t.createClassStaticBlockDeclaration(yt),Re],u.pendingStaticInitializers=void 0}return O(),Re}function Ie(j){gf(j,_t)&&(j=bf(e,j,$t(j.initializer))),E(j),w.assert(!cz(j),"Not yet implemented.");let{modifiers:Re,name:q,initializersName:yt,extraInitializersName:jt,descriptorName:we,thisArg:ut}=ct(j,u,Em(j)?Mt:void 0);i();let Qt=et(j.initializer,U,gt);yt&&(Qt=n().createRunInitializersHelper(ut??t.createThis(),yt,Qt??t.createVoidZero())),Ks(j)&&u&&Qt&&(u.hasStaticInitializers=!0);let en=s();if(pt(en)&&(Qt=t.createImmediatelyInvokedArrowFunction([...en,t.createReturnStatement(Qt)])),u&&(Ks(j)?(Qt=Ae(u,!0,Qt),jt&&(u.pendingStaticInitializers??(u.pendingStaticInitializers=[]),u.pendingStaticInitializers.push(n().createRunInitializersHelper(u.classThis??t.createThis(),jt)))):(Qt=Ae(u,!1,Qt),jt&&(u.pendingInstanceInitializers??(u.pendingInstanceInitializers=[]),u.pendingInstanceInitializers.push(n().createRunInitializersHelper(t.createThis(),jt))))),O(),Em(j)&&we){let Pr=Fm(j),$r=av(j),it=j.name,Tt=it,Ut=it;if(pa(it)&&!Jm(it.expression)){let dr=T7(it);if(dr)Tt=t.updateComputedPropertyName(it,et(it.expression,U,gt)),Ut=t.updateComputedPropertyName(it,dr.left);else{let Sr=t.createTempVariable(o);Ia(Sr,it.expression);let kr=et(it.expression,U,gt),tr=t.createAssignment(Sr,kr);Ia(tr,it.expression),Tt=t.updateComputedPropertyName(it,tr),Ut=t.updateComputedPropertyName(it,Sr)}}let Ot=Ur(Re,dr=>dr.kind!==129?dr:void 0,la),vr=NG(t,j,Ot,Qt);En(vr,j),dn(vr,3072),Ia(vr,$r),Ia(vr.name,j.name);let ar=Vt(Ot,Tt,we);En(ar,j),dl(ar,Pr),Ia(ar,$r);let Gt=on(Ot,Ut,we);return En(Gt,j),dn(Gt,3072),Ia(Gt,$r),[vr,ar,Gt]}return tt(t.updatePropertyDeclaration(j,Re,q,void 0,void 0,Qt),j)}function Ce(j){return g??j}function Ve(j){if(H_(j.expression)&&g){let Re=et(j.expression,U,gt),q=Ur(j.arguments,U,gt),yt=t.createFunctionCallCall(Re,g,q);return En(yt,j),dt(yt,j),yt}return Ir(j,U,e)}function bt(j){if(H_(j.tag)&&g){let Re=et(j.tag,U,gt),q=t.createFunctionBindCall(Re,g,[]);En(q,j),dt(q,j);let yt=et(j.template,U,e2);return t.updateTaggedTemplateExpression(j,q,void 0,yt)}return Ir(j,U,e)}function zt(j){if(H_(j)&&je(j.name)&&g&&m){let Re=t.createStringLiteralFromNode(j.name),q=t.createReflectGetCall(m,Re,g);return En(q,j.expression),dt(q,j.expression),q}return Ir(j,U,e)}function ur(j){if(H_(j)&&g&&m){let Re=et(j.argumentExpression,U,gt),q=t.createReflectGetCall(m,Re,g);return En(q,j.expression),dt(q,j.expression),q}return Ir(j,U,e)}function Or(j){gf(j,_t)&&(j=bf(e,j,$t(j.initializer)));let Re=t.updateParameterDeclaration(j,void 0,j.dotDotDotToken,et(j.name,U,rk),void 0,void 0,et(j.initializer,U,gt));return Re!==j&&(dl(Re,j),dt(Re,Mm(j)),Ia(Re,Mm(j)),dn(Re.name,64)),Re}function _t(j){return ml(j)&&!j.name&&ve(j)}function $t(j){let Re=Wc(j);return ml(Re)&&!Re.name&&!ev(!1,Re)}function Hr(j){return t.updateForStatement(j,et(j.initializer,ne,xp),et(j.condition,U,gt),et(j.incrementor,ne,gt),S_(j.statement,U,e))}function hi(j){return Ir(j,ne,e)}function _s(j,Re){if(rv(j)){let q=xs(j.left),yt=et(j.right,U,gt);return t.updateBinaryExpression(j,q,j.operatorToken,yt)}if(ql(j)){if(gf(j,_t))return j=bf(e,j,$t(j.right)),Ir(j,U,e);if(H_(j.left)&&g&&m){let q=wo(j.left)?et(j.left.argumentExpression,U,gt):je(j.left.name)?t.createStringLiteralFromNode(j.left.name):void 0;if(q){let yt=et(j.right,U,gt);if(lE(j.operatorToken.kind)){let we=q;Jm(q)||(we=t.createTempVariable(o),q=t.createAssignment(we,q));let ut=t.createReflectGetCall(m,we,g);En(ut,j.left),dt(ut,j.left),yt=t.createBinaryExpression(ut,uE(j.operatorToken.kind),yt),dt(yt,j)}let jt=Re?void 0:t.createTempVariable(o);return jt&&(yt=t.createAssignment(jt,yt),dt(jt,j)),yt=t.createReflectSetCall(m,q,yt,g),En(yt,j),dt(yt,j),jt&&(yt=t.createComma(yt,jt),dt(yt,j)),yt}}}if(j.operatorToken.kind===28){let q=et(j.left,ne,gt),yt=et(j.right,Re?ne:U,gt);return t.updateBinaryExpression(j,q,j.operatorToken,yt)}return Ir(j,U,e)}function At(j,Re){if(j.operator===46||j.operator===47){let q=Ka(j.operand);if(H_(q)&&g&&m){let yt=wo(q)?et(q.argumentExpression,U,gt):je(q.name)?t.createStringLiteralFromNode(q.name):void 0;if(yt){let jt=yt;Jm(yt)||(jt=t.createTempVariable(o),yt=t.createAssignment(jt,yt));let we=t.createReflectGetCall(m,jt,g);En(we,j),dt(we,j);let ut=Re?void 0:t.createTempVariable(o);return we=g7(t,j,we,o,ut),we=t.createReflectSetCall(m,yt,we,g),En(we,j),dt(we,j),ut&&(we=t.createComma(we,ut),dt(we,j)),we}}}return Ir(j,U,e)}function zn(j,Re){let q=Re?IM(j.elements,ne):IM(j.elements,U,ne);return t.updateCommaListExpression(j,q)}function ns(j){if(Pm(j)||ji(j)){let we=t.createStringLiteralFromNode(j),ut=et(j,U,tl);return{referencedName:we,name:ut}}if(Pm(j.expression)&&!je(j.expression)){let we=t.createStringLiteralFromNode(j.expression),ut=et(j,U,tl);return{referencedName:we,name:ut}}let Re=t.getGeneratedNameForNode(j);o(Re);let q=n().createPropKeyHelper(et(j.expression,U,gt)),yt=t.createAssignment(Re,q),jt=t.updateComputedPropertyName(j,Y(yt));return{referencedName:Re,name:jt}}function Rn(j){return pa(j)?hn(j):et(j,U,tl)}function hn(j){let Re=et(j.expression,U,gt);return Jm(Re)||(Re=Y(Re)),t.updateComputedPropertyName(j,Re)}function ui(j){return gf(j,_t)&&(j=bf(e,j,$t(j.initializer))),Ir(j,U,e)}function Ue(j){return gf(j,_t)&&(j=bf(e,j,$t(j.initializer))),Ir(j,U,e)}function ht(j){return gf(j,_t)&&(j=bf(e,j,$t(j.initializer))),Ir(j,U,e)}function sr(j){if(Sa(j)||gu(j))return xs(j);if(H_(j)&&g&&m){let Re=wo(j)?et(j.argumentExpression,U,gt):je(j.name)?t.createStringLiteralFromNode(j.name):void 0;if(Re){let q=t.createTempVariable(void 0),yt=t.createAssignmentTargetWrapper(q,t.createReflectSetCall(m,Re,q,g));return En(yt,j),dt(yt,j),yt}}return Ir(j,U,e)}function Zr(j){if(ql(j,!0)){gf(j,_t)&&(j=bf(e,j,$t(j.right)));let Re=sr(j.left),q=et(j.right,U,gt);return t.updateBinaryExpression(j,Re,j.operatorToken,q)}else return sr(j)}function Zn(j){if(M_(j.expression)){let Re=sr(j.expression);return t.updateSpreadElement(j,Re)}return Ir(j,U,e)}function Xn(j){return w.assertNode(j,k6),Rp(j)?Zn(j):Fl(j)?Ir(j,U,e):Zr(j)}function Pi(j){let Re=et(j.name,U,tl);if(ql(j.initializer,!0)){let q=Zr(j.initializer);return t.updatePropertyAssignment(j,Re,q)}if(M_(j.initializer)){let q=sr(j.initializer);return t.updatePropertyAssignment(j,Re,q)}return Ir(j,U,e)}function Rs(j){return gf(j,_t)&&(j=bf(e,j,$t(j.objectAssignmentInitializer))),Ir(j,U,e)}function oa(j){if(M_(j.expression)){let Re=sr(j.expression);return t.updateSpreadAssignment(j,Re)}return Ir(j,U,e)}function xr(j){return w.assertNode(j,T6),xh(j)?oa(j):Eu(j)?Rs(j):hl(j)?Pi(j):Ir(j,U,e)}function xs(j){if(gu(j)){let Re=Ur(j.elements,Xn,gt);return t.updateArrayLiteralExpression(j,Re)}else{let Re=Ur(j.properties,xr,iy);return t.updateObjectLiteralExpression(j,Re)}}function Ye(j){return gf(j,_t)&&(j=bf(e,j,$t(j.expression))),Ir(j,U,e)}function Nt(j,Re){let q=Re?ne:U,yt=et(j.expression,q,gt);return t.updateParenthesizedExpression(j,yt)}function ae(j,Re){let q=Re?ne:U,yt=et(j.expression,q,gt);return t.updatePartiallyEmittedExpression(j,yt)}function lt(j,Re){return pt(j)&&(Re?b_(Re)?(j.push(Re.expression),Re=t.updateParenthesizedExpression(Re,t.inlineExpressions(j))):(j.push(Re),Re=t.inlineExpressions(j)):Re=t.inlineExpressions(j)),Re}function Y(j){let Re=lt(h,j);return w.assertIsDefined(Re),Re!==j&&(h=void 0),Re}function Ae(j,Re,q){let yt=lt(Re?j.pendingStaticInitializers:j.pendingInstanceInitializers,q);return yt!==q&&(Re?j.pendingStaticInitializers=void 0:j.pendingInstanceInitializers=void 0),yt}function Xe(j){if(!j)return;let Re=[];return jn(Re,hr(j.decorators,st)),Re}function st(j){let Re=et(j.expression,U,gt);dn(Re,3072);let q=Wc(Re);if(Oo(q)){let{target:yt,thisArg:jt}=t.createCallBinding(Re,o,c,!0);return t.restoreOuterExpressions(Re,t.createFunctionBindCall(yt,jt,[]))}return Re}function Dt(j,Re,q,yt,jt,we,ut){let Qt=t.createFunctionExpression(q,yt,void 0,void 0,we,void 0,ut??t.createBlock([]));En(Qt,j),Ia(Qt,uy(j)),dn(Qt,3072);let en=jt==="get"||jt==="set"?jt:void 0,Pr=t.createStringLiteralFromNode(Re,void 0),$r=n().createSetFunctionNameHelper(Qt,Pr,en),it=t.createPropertyAssignment(t.createIdentifier(jt),$r);return En(it,j),Ia(it,uy(j)),dn(it,3072),it}function Fe(j,Re){return t.createObjectLiteralExpression([Dt(j,j.name,Re,j.asteriskToken,"value",Ur(j.parameters,U,Bi),et(j.body,U,Fs))])}function St(j,Re){return t.createObjectLiteralExpression([Dt(j,j.name,Re,void 0,"get",[],et(j.body,U,Fs))])}function vt(j,Re){return t.createObjectLiteralExpression([Dt(j,j.name,Re,void 0,"set",Ur(j.parameters,U,Bi),et(j.body,U,Fs))])}function Mt(j,Re){return t.createObjectLiteralExpression([Dt(j,j.name,Re,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(j.name)))])),Dt(j,j.name,Re,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 Ke(j,Re,q){return j=Ur(j,yt=>F2(yt)?yt:void 0,la),t.createGetAccessorDeclaration(j,Re,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(q,t.createIdentifier("value")))]))}function Vt(j,Re,q){return j=Ur(j,yt=>F2(yt)?yt:void 0,la),t.createGetAccessorDeclaration(j,Re,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(q,t.createIdentifier("get")),t.createThis(),[]))]))}function on(j,Re,q){return j=Ur(j,yt=>F2(yt)?yt:void 0,la),t.createSetAccessorDeclaration(j,Re,[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 Pe(j,Re){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,[Re?pe(Re):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([q],2))}function kt(j,Re){let q=t.createObjectDefinePropertyCall(j,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:Re},!0));return dn(t.createIfStatement(Re,t.createExpressionStatement(q)),1)}function pe(j){return t.createBinaryExpression(t.createElementAccessExpression(j,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}function Sae(e){let{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:i,endLexicalEnvironment:s,hoistVariableDeclaration:o}=e,c=e.getEmitResolver(),_=e.getCompilerOptions(),u=wa(_),g=0,m=0,h,S,T,x,I=[],D=0,E=e.onEmitNode,O=e.onSubstituteNode;return e.onEmitNode=hi,e.onSubstituteNode=_s,Xd(e,F);function F(Ue){if(Ue.isDeclarationFile)return Ue;B(1,!1),B(2,!oz(Ue,_));let ht=Ir(Ue,V,e);return Th(ht,e.readEmitHelpers()),ht}function B(Ue,ht){D=ht?D|Ue:D&~Ue}function G(Ue){return(D&Ue)!==0}function $(){return!G(1)}function K(){return G(2)}function U(Ue,ht,sr){let Zr=Ue&~D;if(Zr){B(Zr,!0);let Zn=ht(sr);return B(Zr,!1),Zn}return ht(sr)}function me(Ue){return Ir(Ue,V,e)}function te(Ue){switch(Ue.kind){case 218:case 262:case 174:case 177:case 178:case 176:return Ue;case 169:case 208:case 260:break;case 80:if(x&&c.isArgumentsLocalBinding(Ue))return x;break}return Ir(Ue,te,e)}function V(Ue){if((Ue.transformFlags&256)===0)return x?te(Ue):Ue;switch(Ue.kind){case 134:return;case 223:return ve(Ue);case 174:return U(3,De,Ue);case 262:return U(3,_e,Ue);case 218:return U(3,tt,Ue);case 219:return U(1,ct,Ue);case 211:return S&&Nn(Ue)&&Ue.expression.kind===108&&S.add(Ue.name.escapedText),Ir(Ue,V,e);case 212:return S&&Ue.expression.kind===108&&(T=!0),Ir(Ue,V,e);case 177:return U(3,se,Ue);case 178:return U(3,xe,Ue);case 176:return U(3,Ge,Ue);case 263:case 231:return U(3,me,Ue);default:return Ir(Ue,V,e)}}function ne(Ue){if(ire(Ue))switch(Ue.kind){case 243:return oe(Ue);case 248:return H(Ue);case 249:return de(Ue);case 250:return ye(Ue);case 299:return ie(Ue);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return Ir(Ue,ne,e);default:return w.assertNever(Ue,"Unhandled node.")}return V(Ue)}function ie(Ue){let ht=new Set;le(Ue.variableDeclaration,ht);let sr;if(ht.forEach((Zr,Zn)=>{h.has(Zn)&&(sr||(sr=new Set(h)),sr.delete(Zn))}),sr){let Zr=h;h=sr;let Zn=Ir(Ue,ne,e);return h=Zr,Zn}else return Ir(Ue,ne,e)}function oe(Ue){if(Je(Ue.declarationList)){let ht=ee(Ue.declarationList,!1);return ht?t.createExpressionStatement(ht):void 0}return Ir(Ue,V,e)}function de(Ue){return t.updateForInStatement(Ue,Je(Ue.initializer)?ee(Ue.initializer,!0):w.checkDefined(et(Ue.initializer,V,xp)),w.checkDefined(et(Ue.expression,V,gt)),S_(Ue.statement,ne,e))}function ye(Ue){return t.updateForOfStatement(Ue,et(Ue.awaitModifier,V,sG),Je(Ue.initializer)?ee(Ue.initializer,!0):w.checkDefined(et(Ue.initializer,V,xp)),w.checkDefined(et(Ue.expression,V,gt)),S_(Ue.statement,ne,e))}function H(Ue){let ht=Ue.initializer;return t.updateForStatement(Ue,Je(ht)?ee(ht,!1):et(Ue.initializer,V,xp),et(Ue.condition,V,gt),et(Ue.incrementor,V,gt),S_(Ue.statement,ne,e))}function ve(Ue){return $()?Ir(Ue,V,e):En(dt(t.createYieldExpression(void 0,et(Ue.expression,V,gt)),Ue),Ue)}function Ge(Ue){let ht=x;x=void 0;let sr=t.updateConstructorDeclaration(Ue,Ur(Ue.modifiers,V,la),Cc(Ue.parameters,V,e),bt(Ue));return x=ht,sr}function De(Ue){let ht,sr=Kc(Ue),Zr=x;x=void 0;let Zn=t.updateMethodDeclaration(Ue,Ur(Ue.modifiers,V,Xo),Ue.asteriskToken,Ue.name,void 0,void 0,ht=sr&2?ur(Ue):Cc(Ue.parameters,V,e),void 0,sr&2?Or(Ue,ht):bt(Ue));return x=Zr,Zn}function se(Ue){let ht=x;x=void 0;let sr=t.updateGetAccessorDeclaration(Ue,Ur(Ue.modifiers,V,Xo),Ue.name,Cc(Ue.parameters,V,e),void 0,bt(Ue));return x=ht,sr}function xe(Ue){let ht=x;x=void 0;let sr=t.updateSetAccessorDeclaration(Ue,Ur(Ue.modifiers,V,Xo),Ue.name,Cc(Ue.parameters,V,e),bt(Ue));return x=ht,sr}function _e(Ue){let ht,sr=x;x=void 0;let Zr=Kc(Ue),Zn=t.updateFunctionDeclaration(Ue,Ur(Ue.modifiers,V,Xo),Ue.asteriskToken,Ue.name,void 0,ht=Zr&2?ur(Ue):Cc(Ue.parameters,V,e),void 0,Zr&2?Or(Ue,ht):op(Ue.body,V,e));return x=sr,Zn}function tt(Ue){let ht,sr=x;x=void 0;let Zr=Kc(Ue),Zn=t.updateFunctionExpression(Ue,Ur(Ue.modifiers,V,la),Ue.asteriskToken,Ue.name,void 0,ht=Zr&2?ur(Ue):Cc(Ue.parameters,V,e),void 0,Zr&2?Or(Ue,ht):op(Ue.body,V,e));return x=sr,Zn}function ct(Ue){let ht,sr=Kc(Ue);return t.updateArrowFunction(Ue,Ur(Ue.modifiers,V,la),void 0,ht=sr&2?ur(Ue):Cc(Ue.parameters,V,e),void 0,Ue.equalsGreaterThanToken,sr&2?Or(Ue,ht):op(Ue.body,V,e))}function le({name:Ue},ht){if(je(Ue))ht.add(Ue.escapedText);else for(let sr of Ue.elements)Fl(sr)||le(sr,ht)}function Je(Ue){return!!Ue&&au(Ue)&&!(Ue.flags&7)&&Ue.declarations.some(Ve)}function ee(Ue,ht){Ne(Ue);let sr=mA(Ue);return sr.length===0?ht?et(t.converters.convertToAssignmentElementTarget(Ue.declarations[0].name),V,gt):void 0:t.inlineExpressions(hr(sr,Ce))}function Ne(Ue){or(Ue.declarations,Ie)}function Ie({name:Ue}){if(je(Ue))o(Ue);else for(let ht of Ue.elements)Fl(ht)||Ie(ht)}function Ce(Ue){let ht=Ia(t.createAssignment(t.converters.convertToAssignmentElementTarget(Ue.name),Ue.initializer),Ue);return w.checkDefined(et(ht,V,gt))}function Ve({name:Ue}){if(je(Ue))return h.has(Ue.escapedText);for(let ht of Ue.elements)if(!Fl(ht)&&Ve(ht))return!0;return!1}function bt(Ue){w.assertIsDefined(Ue.body);let ht=S,sr=T;S=new Set,T=!1;let Zr=op(Ue.body,V,e),Zn=ic(Ue,xo);if(u>=2&&(c.hasNodeCheckFlag(Ue,256)||c.hasNodeCheckFlag(Ue,128))&&(Kc(Zn)&3)!==3){if(Hr(),S.size){let Pi=c5(t,c,Ue,S);I[Ua(Pi)]=!0;let Rs=Zr.statements.slice();_h(Rs,[Pi]),Zr=t.updateBlock(Zr,Rs)}T&&(c.hasNodeCheckFlag(Ue,256)?E2(Zr,ZO):c.hasNodeCheckFlag(Ue,128)&&E2(Zr,YO))}return S=ht,T=sr,Zr}function zt(){w.assert(x);let Ue=t.createVariableDeclaration(x,void 0,void 0,t.createIdentifier("arguments")),ht=t.createVariableStatement(void 0,[Ue]);return Ju(ht),Rm(ht,2097152),ht}function ur(Ue){if(PM(Ue.parameters))return Cc(Ue.parameters,V,e);let ht=[];for(let Zr of Ue.parameters){if(Zr.initializer||Zr.dotDotDotToken){if(Ue.kind===219){let Xn=t.createParameterDeclaration(void 0,t.createToken(26),t.createUniqueName("args",8));ht.push(Xn)}break}let Zn=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(Zr.name,8));ht.push(Zn)}let sr=t.createNodeArray(ht);return dt(sr,Ue.parameters),sr}function Or(Ue,ht){let sr=PM(Ue.parameters)?void 0:Cc(Ue.parameters,V,e);i();let Zn=ic(Ue,Ns).type,Xn=u<2?$t(Zn):void 0,Pi=Ue.kind===219,Rs=x,xr=c.hasNodeCheckFlag(Ue,512)&&!x;xr&&(x=t.createUniqueName("arguments"));let xs;if(sr)if(Pi){let Xe=[];w.assert(ht.length<=Ue.parameters.length);for(let st=0;st<Ue.parameters.length;st++){w.assert(st<ht.length);let Dt=Ue.parameters[st],Fe=ht[st];if(w.assertNode(Fe.name,je),Dt.initializer||Dt.dotDotDotToken){w.assert(st===ht.length-1),Xe.push(t.createSpreadElement(Fe.name));break}Xe.push(Fe.name)}xs=t.createArrayLiteralExpression(Xe)}else xs=t.createIdentifier("arguments");let Ye=h;h=new Set;for(let Xe of Ue.parameters)le(Xe,h);let Nt=S,ae=T;Pi||(S=new Set,T=!1);let lt=K(),Y=_t(Ue.body);Y=t.updateBlock(Y,t.mergeLexicalEnvironment(Y.statements,s()));let Ae;if(Pi){if(Ae=n().createAwaiterHelper(lt,xs,Xn,sr,Y),xr){let Xe=t.converters.convertToFunctionBlock(Ae);Ae=t.updateBlock(Xe,t.mergeLexicalEnvironment(Xe.statements,[zt()]))}}else{let Xe=[];Xe.push(t.createReturnStatement(n().createAwaiterHelper(lt,xs,Xn,sr,Y)));let st=u>=2&&(c.hasNodeCheckFlag(Ue,256)||c.hasNodeCheckFlag(Ue,128));if(st&&(Hr(),S.size)){let Fe=c5(t,c,Ue,S);I[Ua(Fe)]=!0,_h(Xe,[Fe])}xr&&_h(Xe,[zt()]);let Dt=t.createBlock(Xe,!0);dt(Dt,Ue.body),st&&T&&(c.hasNodeCheckFlag(Ue,256)?E2(Dt,ZO):c.hasNodeCheckFlag(Ue,128)&&E2(Dt,YO)),Ae=Dt}return h=Ye,Pi||(S=Nt,T=ae,x=Rs),Ae}function _t(Ue,ht){return Fs(Ue)?t.updateBlock(Ue,Ur(Ue.statements,ne,Ii,ht)):t.converters.convertToFunctionBlock(w.checkDefined(et(Ue,ne,oF)))}function $t(Ue){let ht=Ue&&U6(Ue);if(ht&&m_(ht)){let sr=c.getTypeReferenceSerializationKind(ht);if(sr===1||sr===0)return ht}}function Hr(){(g&1)===0&&(g|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function hi(Ue,ht,sr){if(g&1&&hn(ht)){let Zr=(c.hasNodeCheckFlag(ht,128)?128:0)|(c.hasNodeCheckFlag(ht,256)?256:0);if(Zr!==m){let Zn=m;m=Zr,E(Ue,ht,sr),m=Zn;return}}else if(g&&I[Ua(ht)]){let Zr=m;m=0,E(Ue,ht,sr),m=Zr;return}E(Ue,ht,sr)}function _s(Ue,ht){return ht=O(Ue,ht),Ue===1&&m?At(ht):ht}function At(Ue){switch(Ue.kind){case 211:return zn(Ue);case 212:return ns(Ue);case 213:return Rn(Ue)}return Ue}function zn(Ue){return Ue.expression.kind===108?dt(t.createPropertyAccessExpression(t.createUniqueName("_super",48),Ue.name),Ue):Ue}function ns(Ue){return Ue.expression.kind===108?ui(Ue.argumentExpression,Ue):Ue}function Rn(Ue){let ht=Ue.expression;if(H_(ht)){let sr=Nn(ht)?zn(ht):ns(ht);return t.createCallExpression(t.createPropertyAccessExpression(sr,"call"),void 0,[t.createThis(),...Ue.arguments])}return Ue}function hn(Ue){let ht=Ue.kind;return ht===263||ht===176||ht===174||ht===177||ht===178}function ui(Ue,ht){return m&256?dt(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[Ue]),"value"),ht):dt(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[Ue]),ht)}}function c5(e,t,n,i){let s=t.hasNodeCheckFlag(n,256),o=[];return i.forEach((c,_)=>{let u=Li(_),g=[];g.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,dn(e.createPropertyAccessExpression(dn(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(dn(e.createPropertyAccessExpression(dn(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 Tae(e){let{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:i,endLexicalEnvironment:s,hoistVariableDeclaration:o}=e,c=e.getEmitResolver(),_=e.getCompilerOptions(),u=wa(_),g=e.onEmitNode;e.onEmitNode=Rs;let m=e.onSubstituteNode;e.onSubstituteNode=oa;let h=!1,S=0,T,x,I=0,D=0,E,O,F,B,G=[];return Xd(e,te);function $(Y,Ae){return D!==(D&~Y|Ae)}function K(Y,Ae){let Xe=D;return D=(D&~Y|Ae)&3,Xe}function U(Y){D=Y}function me(Y){O=jr(O,t.createVariableDeclaration(Y))}function te(Y){if(Y.isDeclarationFile)return Y;E=Y;let Ae=ct(Y);return Th(Ae,e.readEmitHelpers()),E=void 0,O=void 0,Ae}function V(Y){return ye(Y,!1)}function ne(Y){return ye(Y,!0)}function ie(Y){if(Y.kind!==134)return Y}function oe(Y,Ae,Xe,st){if($(Xe,st)){let Dt=K(Xe,st),Fe=Y(Ae);return U(Dt),Fe}return Y(Ae)}function de(Y){return Ir(Y,V,e)}function ye(Y,Ae){if((Y.transformFlags&128)===0)return Y;switch(Y.kind){case 223:return H(Y);case 229:return ve(Y);case 253:return Ge(Y);case 256:return De(Y);case 210:return xe(Y);case 226:return Je(Y,Ae);case 356:return ee(Y,Ae);case 299:return Ne(Y);case 243:return Ie(Y);case 260:return Ce(Y);case 246:case 247:case 249:return oe(de,Y,0,2);case 250:return ur(Y,void 0);case 248:return oe(bt,Y,0,2);case 222:return zt(Y);case 176:return oe(zn,Y,2,1);case 174:return oe(hn,Y,2,1);case 177:return oe(ns,Y,2,1);case 178:return oe(Rn,Y,2,1);case 262:return oe(ui,Y,2,1);case 218:return oe(ht,Y,2,1);case 219:return oe(Ue,Y,2,0);case 169:return _s(Y);case 244:return _e(Y);case 217:return tt(Y,Ae);case 215:return le(Y);case 211:return F&&Nn(Y)&&Y.expression.kind===108&&F.add(Y.name.escapedText),Ir(Y,V,e);case 212:return F&&Y.expression.kind===108&&(B=!0),Ir(Y,V,e);case 263:case 231:return oe(de,Y,2,1);default:return Ir(Y,V,e)}}function H(Y){return T&2&&T&1?En(dt(t.createYieldExpression(void 0,n().createAwaitHelper(et(Y.expression,V,gt))),Y),Y):Ir(Y,V,e)}function ve(Y){if(T&2&&T&1){if(Y.asteriskToken){let Ae=et(w.checkDefined(Y.expression),V,gt);return En(dt(t.createYieldExpression(void 0,n().createAwaitHelper(t.updateYieldExpression(Y,Y.asteriskToken,dt(n().createAsyncDelegatorHelper(dt(n().createAsyncValuesHelper(Ae),Ae)),Ae)))),Y),Y)}return En(dt(t.createYieldExpression(void 0,$t(Y.expression?et(Y.expression,V,gt):t.createVoidZero())),Y),Y)}return Ir(Y,V,e)}function Ge(Y){return T&2&&T&1?t.updateReturnStatement(Y,$t(Y.expression?et(Y.expression,V,gt):t.createVoidZero())):Ir(Y,V,e)}function De(Y){if(T&2){let Ae=gz(Y);return Ae.kind===250&&Ae.awaitModifier?ur(Ae,Y):t.restoreEnclosingLabel(et(Ae,V,Ii,t.liftToBlock),Y)}return Ir(Y,V,e)}function se(Y){let Ae,Xe=[];for(let st of Y)if(st.kind===305){Ae&&(Xe.push(t.createObjectLiteralExpression(Ae)),Ae=void 0);let Dt=st.expression;Xe.push(et(Dt,V,gt))}else Ae=jr(Ae,st.kind===303?t.createPropertyAssignment(st.name,et(st.initializer,V,gt)):et(st,V,iy));return Ae&&Xe.push(t.createObjectLiteralExpression(Ae)),Xe}function xe(Y){if(Y.transformFlags&65536){let Ae=se(Y.properties);Ae.length&&Ae[0].kind!==210&&Ae.unshift(t.createObjectLiteralExpression());let Xe=Ae[0];if(Ae.length>1){for(let st=1;st<Ae.length;st++)Xe=n().createAssignHelper([Xe,Ae[st]]);return Xe}else return n().createAssignHelper(Ae)}return Ir(Y,V,e)}function _e(Y){return Ir(Y,ne,e)}function tt(Y,Ae){return Ir(Y,Ae?ne:V,e)}function ct(Y){let Ae=K(2,oz(Y,_)?0:1);h=!1;let Xe=Ir(Y,V,e),st=Ki(Xe.statements,O&&[t.createVariableStatement(void 0,t.createVariableDeclarationList(O))]),Dt=t.updateSourceFile(Xe,dt(t.createNodeArray(st),Y.statements));return U(Ae),Dt}function le(Y){return WU(e,Y,V,E,me,0)}function Je(Y,Ae){return rv(Y)&&uM(Y.left)?jk(Y,V,e,1,!Ae):Y.operatorToken.kind===28?t.updateBinaryExpression(Y,et(Y.left,ne,gt),Y.operatorToken,et(Y.right,Ae?ne:V,gt)):Ir(Y,V,e)}function ee(Y,Ae){if(Ae)return Ir(Y,ne,e);let Xe;for(let Dt=0;Dt<Y.elements.length;Dt++){let Fe=Y.elements[Dt],St=et(Fe,Dt<Y.elements.length-1?ne:V,gt);(Xe||St!==Fe)&&(Xe||(Xe=Y.elements.slice(0,Dt)),Xe.push(St))}let st=Xe?dt(t.createNodeArray(Xe),Y.elements):Y.elements;return t.updateCommaListExpression(Y,st)}function Ne(Y){if(Y.variableDeclaration&&Ws(Y.variableDeclaration.name)&&Y.variableDeclaration.name.transformFlags&65536){let Ae=t.getGeneratedNameForNode(Y.variableDeclaration.name),Xe=t.updateVariableDeclaration(Y.variableDeclaration,Y.variableDeclaration.name,void 0,void 0,Ae),st=VS(Xe,V,e,1),Dt=et(Y.block,V,Fs);return pt(st)&&(Dt=t.updateBlock(Dt,[t.createVariableStatement(void 0,st),...Dt.statements])),t.updateCatchClause(Y,t.updateVariableDeclaration(Y.variableDeclaration,Ae,void 0,void 0,void 0),Dt)}return Ir(Y,V,e)}function Ie(Y){if(ei(Y,32)){let Ae=h;h=!0;let Xe=Ir(Y,V,e);return h=Ae,Xe}return Ir(Y,V,e)}function Ce(Y){if(h){let Ae=h;h=!1;let Xe=Ve(Y,!0);return h=Ae,Xe}return Ve(Y,!1)}function Ve(Y,Ae){return Ws(Y.name)&&Y.name.transformFlags&65536?VS(Y,V,e,1,void 0,Ae):Ir(Y,V,e)}function bt(Y){return t.updateForStatement(Y,et(Y.initializer,ne,xp),et(Y.condition,V,gt),et(Y.incrementor,ne,gt),S_(Y.statement,V,e))}function zt(Y){return Ir(Y,ne,e)}function ur(Y,Ae){let Xe=K(0,2);(Y.initializer.transformFlags&65536||zP(Y.initializer)&&uM(Y.initializer))&&(Y=Or(Y));let st=Y.awaitModifier?Hr(Y,Ae,Xe):t.restoreEnclosingLabel(Ir(Y,V,e),Ae);return U(Xe),st}function Or(Y){let Ae=Ka(Y.initializer);if(au(Ae)||zP(Ae)){let Xe,st,Dt=t.createTempVariable(void 0),Fe=[TG(t,Ae,Dt)];return Fs(Y.statement)?(jn(Fe,Y.statement.statements),Xe=Y.statement,st=Y.statement.statements):Y.statement&&(jr(Fe,Y.statement),Xe=Y.statement,st=Y.statement),t.updateForOfStatement(Y,Y.awaitModifier,dt(t.createVariableDeclarationList([dt(t.createVariableDeclaration(Dt),Y.initializer)],1),Y.initializer),Y.expression,dt(t.createBlock(dt(t.createNodeArray(Fe),st),!0),Xe))}return Y}function _t(Y,Ae,Xe){let st=t.createTempVariable(o),Dt=t.createAssignment(st,Ae),Fe=t.createExpressionStatement(Dt);Ia(Fe,Y.expression);let St=t.createAssignment(Xe,t.createFalse()),vt=t.createExpressionStatement(St);Ia(vt,Y.expression);let Mt=[Fe,vt],Ke=TG(t,Y.initializer,st);Mt.push(et(Ke,V,Ii));let Vt,on,Pe=S_(Y.statement,V,e);return Fs(Pe)?(jn(Mt,Pe.statements),Vt=Pe,on=Pe.statements):Mt.push(Pe),dt(t.createBlock(dt(t.createNodeArray(Mt),on),!0),Vt)}function $t(Y){return T&1?t.createYieldExpression(void 0,n().createAwaitHelper(Y)):t.createAwaitExpression(Y)}function Hr(Y,Ae,Xe){let st=et(Y.expression,V,gt),Dt=je(st)?t.getGeneratedNameForNode(st):t.createTempVariable(void 0),Fe=je(st)?t.getGeneratedNameForNode(Dt):t.createTempVariable(void 0),St=t.createTempVariable(void 0),vt=t.createTempVariable(o),Mt=t.createUniqueName("e"),Ke=t.getGeneratedNameForNode(Mt),Vt=t.createTempVariable(void 0),on=dt(n().createAsyncValuesHelper(st),Y.expression),Pe=t.createCallExpression(t.createPropertyAccessExpression(Dt,"next"),void 0,[]),kt=t.createPropertyAccessExpression(Fe,"done"),pe=t.createPropertyAccessExpression(Fe,"value"),j=t.createFunctionCallCall(Vt,Dt,[]);o(Mt),o(Vt);let Re=Xe&2?t.inlineExpressions([t.createAssignment(Mt,t.createVoidZero()),on]):on,q=dn(dt(t.createForStatement(dn(dt(t.createVariableDeclarationList([t.createVariableDeclaration(St,void 0,void 0,t.createTrue()),dt(t.createVariableDeclaration(Dt,void 0,void 0,Re),Y.expression),t.createVariableDeclaration(Fe)]),Y.expression),4194304),t.inlineExpressions([t.createAssignment(Fe,$t(Pe)),t.createAssignment(vt,kt),t.createLogicalNot(vt)]),t.createAssignment(St,t.createTrue()),_t(Y,pe,St)),Y),512);return En(q,Y),t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(q,Ae)]),t.createCatchClause(t.createVariableDeclaration(Ke),dn(t.createBlock([t.createExpressionStatement(t.createAssignment(Mt,t.createObjectLiteralExpression([t.createPropertyAssignment("error",Ke)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([dn(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(t.createLogicalNot(St),t.createLogicalNot(vt)),t.createAssignment(Vt,t.createPropertyAccessExpression(Dt,"return"))),t.createExpressionStatement($t(j))),1)]),void 0,dn(t.createBlock([dn(t.createIfStatement(Mt,t.createThrowStatement(t.createPropertyAccessExpression(Mt,"error"))),1)]),1))]))}function hi(Y){return w.assertNode(Y,Bi),_s(Y)}function _s(Y){return x?.has(Y)?t.updateParameterDeclaration(Y,void 0,Y.dotDotDotToken,Ws(Y.name)?t.getGeneratedNameForNode(Y):Y.name,void 0,void 0,void 0):Y.transformFlags&65536?t.updateParameterDeclaration(Y,void 0,Y.dotDotDotToken,t.getGeneratedNameForNode(Y),void 0,void 0,et(Y.initializer,V,gt)):Ir(Y,V,e)}function At(Y){let Ae;for(let Xe of Y.parameters)Ae?Ae.add(Xe):Xe.transformFlags&65536&&(Ae=new Set);return Ae}function zn(Y){let Ae=T,Xe=x;T=Kc(Y),x=At(Y);let st=t.updateConstructorDeclaration(Y,Y.modifiers,Cc(Y.parameters,hi,e),Zn(Y));return T=Ae,x=Xe,st}function ns(Y){let Ae=T,Xe=x;T=Kc(Y),x=At(Y);let st=t.updateGetAccessorDeclaration(Y,Y.modifiers,et(Y.name,V,tl),Cc(Y.parameters,hi,e),void 0,Zn(Y));return T=Ae,x=Xe,st}function Rn(Y){let Ae=T,Xe=x;T=Kc(Y),x=At(Y);let st=t.updateSetAccessorDeclaration(Y,Y.modifiers,et(Y.name,V,tl),Cc(Y.parameters,hi,e),Zn(Y));return T=Ae,x=Xe,st}function hn(Y){let Ae=T,Xe=x;T=Kc(Y),x=At(Y);let st=t.updateMethodDeclaration(Y,T&1?Ur(Y.modifiers,ie,Xo):Y.modifiers,T&2?void 0:Y.asteriskToken,et(Y.name,V,tl),et(void 0,V,j0),void 0,T&2&&T&1?sr(Y):Cc(Y.parameters,hi,e),void 0,T&2&&T&1?Zr(Y):Zn(Y));return T=Ae,x=Xe,st}function ui(Y){let Ae=T,Xe=x;T=Kc(Y),x=At(Y);let st=t.updateFunctionDeclaration(Y,T&1?Ur(Y.modifiers,ie,la):Y.modifiers,T&2?void 0:Y.asteriskToken,Y.name,void 0,T&2&&T&1?sr(Y):Cc(Y.parameters,hi,e),void 0,T&2&&T&1?Zr(Y):Zn(Y));return T=Ae,x=Xe,st}function Ue(Y){let Ae=T,Xe=x;T=Kc(Y),x=At(Y);let st=t.updateArrowFunction(Y,Y.modifiers,void 0,Cc(Y.parameters,hi,e),void 0,Y.equalsGreaterThanToken,Zn(Y));return T=Ae,x=Xe,st}function ht(Y){let Ae=T,Xe=x;T=Kc(Y),x=At(Y);let st=t.updateFunctionExpression(Y,T&1?Ur(Y.modifiers,ie,la):Y.modifiers,T&2?void 0:Y.asteriskToken,Y.name,void 0,T&2&&T&1?sr(Y):Cc(Y.parameters,hi,e),void 0,T&2&&T&1?Zr(Y):Zn(Y));return T=Ae,x=Xe,st}function sr(Y){if(PM(Y.parameters))return Cc(Y.parameters,V,e);let Ae=[];for(let st of Y.parameters){if(st.initializer||st.dotDotDotToken)break;let Dt=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(st.name,8));Ae.push(Dt)}let Xe=t.createNodeArray(Ae);return dt(Xe,Y.parameters),Xe}function Zr(Y){let Ae=PM(Y.parameters)?void 0:Cc(Y.parameters,V,e);i();let Xe=F,st=B;F=new Set,B=!1;let Dt=[],Fe=t.updateBlock(Y.body,Ur(Y.body.statements,V,Ii));Fe=t.updateBlock(Fe,t.mergeLexicalEnvironment(Fe.statements,Xn(s(),Y)));let St=t.createReturnStatement(n().createAsyncGeneratorHelper(t.createFunctionExpression(void 0,t.createToken(42),Y.name&&t.getGeneratedNameForNode(Y.name),void 0,Ae??[],void 0,Fe),!!(D&1))),vt=u>=2&&(c.hasNodeCheckFlag(Y,256)||c.hasNodeCheckFlag(Y,128));if(vt){Pi();let Ke=c5(t,c,Y,F);G[Ua(Ke)]=!0,_h(Dt,[Ke])}Dt.push(St);let Mt=t.updateBlock(Y.body,Dt);return vt&&B&&(c.hasNodeCheckFlag(Y,256)?E2(Mt,ZO):c.hasNodeCheckFlag(Y,128)&&E2(Mt,YO)),F=Xe,B=st,Mt}function Zn(Y){i();let Ae=0,Xe=[],st=et(Y.body,V,oF)??t.createBlock([]);Fs(st)&&(Ae=t.copyPrologue(st.statements,Xe,!1,V)),jn(Xe,Xn(void 0,Y));let Dt=s();if(Ae>0||pt(Xe)||pt(Dt)){let Fe=t.converters.convertToFunctionBlock(st,!0);return _h(Xe,Dt),jn(Xe,Fe.statements.slice(Ae)),t.updateBlock(Fe,dt(t.createNodeArray(Xe),Fe.statements))}return st}function Xn(Y,Ae){let Xe=!1;for(let st of Ae.parameters)if(Xe){if(Ws(st.name)){if(st.name.elements.length>0){let Dt=VS(st,V,e,0,t.getGeneratedNameForNode(st));if(pt(Dt)){let Fe=t.createVariableDeclarationList(Dt),St=t.createVariableStatement(void 0,Fe);dn(St,2097152),Y=jr(Y,St)}}else if(st.initializer){let Dt=t.getGeneratedNameForNode(st),Fe=et(st.initializer,V,gt),St=t.createAssignment(Dt,Fe),vt=t.createExpressionStatement(St);dn(vt,2097152),Y=jr(Y,vt)}}else if(st.initializer){let Dt=t.cloneNode(st.name);dt(Dt,st.name),dn(Dt,96);let Fe=et(st.initializer,V,gt);Rm(Fe,3168);let St=t.createAssignment(Dt,Fe);dt(St,st),dn(St,3072);let vt=t.createBlock([t.createExpressionStatement(St)]);dt(vt,st),dn(vt,3905);let Mt=t.createTypeCheck(t.cloneNode(st.name),"undefined"),Ke=t.createIfStatement(Mt,vt);Ju(Ke),dt(Ke,st),dn(Ke,2101056),Y=jr(Y,Ke)}}else if(st.transformFlags&65536){Xe=!0;let Dt=VS(st,V,e,1,t.getGeneratedNameForNode(st),!1,!0);if(pt(Dt)){let Fe=t.createVariableDeclarationList(Dt),St=t.createVariableStatement(void 0,Fe);dn(St,2097152),Y=jr(Y,St)}}return Y}function Pi(){(S&1)===0&&(S|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function Rs(Y,Ae,Xe){if(S&1&&ae(Ae)){let st=(c.hasNodeCheckFlag(Ae,128)?128:0)|(c.hasNodeCheckFlag(Ae,256)?256:0);if(st!==I){let Dt=I;I=st,g(Y,Ae,Xe),I=Dt;return}}else if(S&&G[Ua(Ae)]){let st=I;I=0,g(Y,Ae,Xe),I=st;return}g(Y,Ae,Xe)}function oa(Y,Ae){return Ae=m(Y,Ae),Y===1&&I?xr(Ae):Ae}function xr(Y){switch(Y.kind){case 211:return xs(Y);case 212:return Ye(Y);case 213:return Nt(Y)}return Y}function xs(Y){return Y.expression.kind===108?dt(t.createPropertyAccessExpression(t.createUniqueName("_super",48),Y.name),Y):Y}function Ye(Y){return Y.expression.kind===108?lt(Y.argumentExpression,Y):Y}function Nt(Y){let Ae=Y.expression;if(H_(Ae)){let Xe=Nn(Ae)?xs(Ae):Ye(Ae);return t.createCallExpression(t.createPropertyAccessExpression(Xe,"call"),void 0,[t.createThis(),...Y.arguments])}return Y}function ae(Y){let Ae=Y.kind;return Ae===263||Ae===176||Ae===174||Ae===177||Ae===178}function lt(Y,Ae){return I&256?dt(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[Y]),"value"),Ae):dt(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[Y]),Ae)}}function kae(e){let t=e.factory;return Xd(e,n);function n(o){return o.isDeclarationFile?o:Ir(o,i,e)}function i(o){if((o.transformFlags&64)===0)return o;switch(o.kind){case 299:return s(o);default:return Ir(o,i,e)}}function s(o){return o.variableDeclaration?Ir(o,i,e):t.updateCatchClause(o,t.createVariableDeclaration(t.createTempVariable(void 0)),et(o.block,i,Fs))}}function xae(e){let{factory:t,hoistVariableDeclaration:n}=e;return Xd(e,i);function i(x){return x.isDeclarationFile?x:Ir(x,s,e)}function s(x){if((x.transformFlags&32)===0)return x;switch(x.kind){case 213:{let I=u(x,!1);return w.assertNotNode(I,J2),I}case 211:case 212:if(ju(x)){let I=m(x,!1,!1);return w.assertNotNode(I,J2),I}return Ir(x,s,e);case 226:return x.operatorToken.kind===61?S(x):Ir(x,s,e);case 220:return T(x);default:return Ir(x,s,e)}}function o(x){w.assertNotNode(x,tF);let I=[x];for(;!x.questionDotToken&&!Ub(x);)x=Zs(bd(x.expression),ju),w.assertNotNode(x,tF),I.unshift(x);return{expression:x.expression,chain:I}}function c(x,I,D){let E=g(x.expression,I,D);return J2(E)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(x,E.expression),E.thisArg):t.updateParenthesizedExpression(x,E)}function _(x,I,D){if(ju(x))return m(x,I,D);let E=et(x.expression,s,gt);w.assertNotNode(E,J2);let O;return I&&(US(E)?O=E:(O=t.createTempVariable(n),E=t.createAssignment(O,E))),E=x.kind===211?t.updatePropertyAccessExpression(x,E,et(x.name,s,je)):t.updateElementAccessExpression(x,E,et(x.argumentExpression,s,gt)),O?t.createSyntheticReferenceExpression(E,O):E}function u(x,I){if(ju(x))return m(x,I,!1);if(b_(x.expression)&&ju(Ka(x.expression))){let D=c(x.expression,!0,!1),E=Ur(x.arguments,s,gt);return J2(D)?dt(t.createFunctionCallCall(D.expression,D.thisArg,E),x):t.updateCallExpression(x,D,void 0,E)}return Ir(x,s,e)}function g(x,I,D){switch(x.kind){case 217:return c(x,I,D);case 211:case 212:return _(x,I,D);case 213:return u(x,I);default:return et(x,s,gt)}}function m(x,I,D){let{expression:E,chain:O}=o(x),F=g(bd(E),ZT(O[0]),!1),B=J2(F)?F.thisArg:void 0,G=J2(F)?F.expression:F,$=t.restoreOuterExpressions(E,G,8);US(G)||(G=t.createTempVariable(n),$=t.createAssignment(G,$));let K=G,U;for(let te=0;te<O.length;te++){let V=O[te];switch(V.kind){case 211:case 212:te===O.length-1&&I&&(US(K)?U=K:(U=t.createTempVariable(n),K=t.createAssignment(U,K))),K=V.kind===211?t.createPropertyAccessExpression(K,et(V.name,s,je)):t.createElementAccessExpression(K,et(V.argumentExpression,s,gt));break;case 213:te===0&&B?(Ko(B)||(B=t.cloneNode(B),Rm(B,3072)),K=t.createFunctionCallCall(K,B.kind===108?t.createThis():B,Ur(V.arguments,s,gt))):K=t.createCallExpression(K,void 0,Ur(V.arguments,s,gt));break}En(K,V)}let me=D?t.createConditionalExpression(h($,G,!0),void 0,t.createTrue(),void 0,t.createDeleteExpression(K)):t.createConditionalExpression(h($,G,!0),void 0,t.createVoidZero(),void 0,K);return dt(me,x),U?t.createSyntheticReferenceExpression(me,U):me}function h(x,I,D){return t.createBinaryExpression(t.createBinaryExpression(x,t.createToken(D?37:38),t.createNull()),t.createToken(D?57:56),t.createBinaryExpression(I,t.createToken(D?37:38),t.createVoidZero()))}function S(x){let I=et(x.left,s,gt),D=I;return US(I)||(D=t.createTempVariable(n),I=t.createAssignment(D,I)),dt(t.createConditionalExpression(h(I,D),void 0,D,void 0,et(x.right,s,gt)),x)}function T(x){return ju(Ka(x.expression))?En(g(x.expression,!1,!0),x):t.updateDeleteExpression(x,et(x.expression,s,gt))}}function Cae(e){let{hoistVariableDeclaration:t,factory:n}=e;return Xd(e,i);function i(c){return c.isDeclarationFile?c:Ir(c,s,e)}function s(c){return(c.transformFlags&16)===0?c:Zz(c)?o(c):Ir(c,s,e)}function o(c){let _=c.operatorToken,u=uE(_.kind),g=Ka(et(c.left,s,M_)),m=g,h=Ka(et(c.right,s,gt));if(Oo(g)){let S=US(g.expression),T=S?g.expression:n.createTempVariable(t),x=S?g.expression:n.createAssignment(T,g.expression);if(Nn(g))m=n.createPropertyAccessExpression(T,g.name),g=n.createPropertyAccessExpression(x,g.name);else{let I=US(g.argumentExpression),D=I?g.argumentExpression:n.createTempVariable(t);m=n.createElementAccessExpression(T,D),g=n.createElementAccessExpression(x,I?g.argumentExpression:n.createAssignment(D,g.argumentExpression))}}return n.createBinaryExpression(g,u,n.createParenthesizedExpression(n.createAssignment(m,h)))}}function wae(e){let{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:i,startLexicalEnvironment:s,endLexicalEnvironment:o}=e,c,_,u,g;return Xd(e,m);function m(oe){if(oe.isDeclarationFile)return oe;let de=et(oe,h,Mi);return Th(de,e.readEmitHelpers()),_=void 0,c=void 0,u=void 0,de}function h(oe){if((oe.transformFlags&4)===0)return oe;switch(oe.kind){case 307:return S(oe);case 241:return T(oe);case 248:return x(oe);case 250:return I(oe);case 255:return E(oe);default:return Ir(oe,h,e)}}function S(oe){let de=BU(oe.statements);if(de){s(),c=new FI,_=[];let ye=nTe(oe.statements),H=[];jn(H,oE(oe.statements,h,Ii,0,ye));let ve=ye;for(;ve<oe.statements.length;){let se=oe.statements[ve];if(Dae(se)!==0){ve>ye&&jn(H,Ur(oe.statements,h,Ii,ye,ve-ye));break}ve++}w.assert(ve<oe.statements.length,"Should have encountered at least one 'using' statement.");let Ge=ne(),De=O(oe.statements,ve,oe.statements.length,Ge,H);return c.size&&jr(H,t.createExportDeclaration(void 0,!1,t.createNamedExports(ps(c.values())))),jn(H,o()),_.length&&H.push(t.createVariableStatement(t.createModifiersFromModifierFlags(32),t.createVariableDeclarationList(_,1))),jn(H,ie(De,Ge,de===2)),g&&H.push(t.createExportAssignment(void 0,!0,g)),t.updateSourceFile(oe,H)}return Ir(oe,h,e)}function T(oe){let de=BU(oe.statements);if(de){let ye=nTe(oe.statements),H=ne();return t.updateBlock(oe,[...oE(oe.statements,h,Ii,0,ye),...ie(O(oe.statements,ye,oe.statements.length,H,void 0),H,de===2)])}return Ir(oe,h,e)}function x(oe){return oe.initializer&&iTe(oe.initializer)?et(t.createBlock([t.createVariableStatement(void 0,oe.initializer),t.updateForStatement(oe,void 0,oe.condition,oe.incrementor,oe.statement)]),h,Ii):Ir(oe,h,e)}function I(oe){if(iTe(oe.initializer)){let de=oe.initializer,ye=_l(de.declarations)||t.createVariableDeclaration(t.createTempVariable(void 0)),H=Iae(de)===2,ve=t.getGeneratedNameForNode(ye.name),Ge=t.updateVariableDeclaration(ye,ye.name,void 0,void 0,ve),De=t.createVariableDeclarationList([Ge],H?6:4),se=t.createVariableStatement(void 0,De);return et(t.updateForOfStatement(oe,oe.awaitModifier,t.createVariableDeclarationList([t.createVariableDeclaration(ve)],2),oe.expression,Fs(oe.statement)?t.updateBlock(oe.statement,[se,...oe.statement.statements]):t.createBlock([se,oe.statement],!0)),h,Ii)}return Ir(oe,h,e)}function D(oe,de){return BU(oe.statements)!==0?yI(oe)?t.updateCaseClause(oe,et(oe.expression,h,gt),O(oe.statements,0,oe.statements.length,de,void 0)):t.updateDefaultClause(oe,O(oe.statements,0,oe.statements.length,de,void 0)):Ir(oe,h,e)}function E(oe){let de=FGe(oe.caseBlock.clauses);if(de){let ye=ne();return ie([t.updateSwitchStatement(oe,et(oe.expression,h,gt),t.updateCaseBlock(oe.caseBlock,oe.caseBlock.clauses.map(H=>D(H,ye))))],ye,de===2)}return Ir(oe,h,e)}function O(oe,de,ye,H,ve){let Ge=[];for(let xe=de;xe<ye;xe++){let _e=oe[xe],tt=Dae(_e);if(tt){w.assertNode(_e,Lc);let le=[];for(let Je of _e.declarationList.declarations){if(!je(Je.name)){le.length=0;break}gf(Je)&&(Je=bf(e,Je));let ee=et(Je.initializer,h,gt)??t.createVoidZero();le.push(t.updateVariableDeclaration(Je,Je.name,void 0,void 0,n().createAddDisposableResourceHelper(H,ee,tt===2)))}if(le.length){let Je=t.createVariableDeclarationList(le,2);En(Je,_e.declarationList),dt(Je,_e.declarationList),De(t.updateVariableStatement(_e,void 0,Je));continue}}let ct=h(_e);ks(ct)?ct.forEach(De):ct&&De(ct)}return Ge;function De(xe){w.assertNode(xe,Ii),jr(Ge,se(xe))}function se(xe){if(!ve)return xe;switch(xe.kind){case 272:case 271:case 278:case 262:return F(xe,ve);case 277:return B(xe);case 263:return K(xe);case 243:return U(xe)}return xe}}function F(oe,de){de.push(oe)}function B(oe){return oe.isExportEquals?$(oe):G(oe)}function G(oe){if(u)return oe;u=t.createUniqueName("_default",56),V(u,!0,"default",oe);let de=oe.expression,ye=Wc(de);gf(ye)&&(ye=bf(e,ye,!1,"default"),de=t.restoreOuterExpressions(de,ye));let H=t.createAssignment(u,de);return t.createExpressionStatement(H)}function $(oe){if(g)return oe;g=t.createUniqueName("_default",56),i(g);let de=t.createAssignment(g,oe.expression);return t.createExpressionStatement(de)}function K(oe){if(!oe.name&&u)return oe;let de=ei(oe,32),ye=ei(oe,2048),H=t.converters.convertToClassExpression(oe);return oe.name&&(V(t.getLocalName(oe),de&&!ye,void 0,oe),H=t.createAssignment(t.getDeclarationName(oe),H),gf(H)&&(H=bf(e,H,!1)),En(H,oe),Ia(H,oe),dl(H,oe)),ye&&!u&&(u=t.createUniqueName("_default",56),V(u,!0,"default",oe),H=t.createAssignment(u,H),gf(H)&&(H=bf(e,H,!1,"default")),En(H,oe)),t.createExpressionStatement(H)}function U(oe){let de,ye=ei(oe,32);for(let H of oe.declarationList.declarations)te(H,ye,H),H.initializer&&(de=jr(de,me(H)));if(de){let H=t.createExpressionStatement(t.inlineExpressions(de));return En(H,oe),dl(H,oe),Ia(H,oe),H}}function me(oe){w.assertIsDefined(oe.initializer);let de;je(oe.name)?(de=t.cloneNode(oe.name),dn(de,Na(de)&-114689)):de=t.converters.convertToAssignmentPattern(oe.name);let ye=t.createAssignment(de,oe.initializer);return En(ye,oe),dl(ye,oe),Ia(ye,oe),ye}function te(oe,de,ye){if(Ws(oe.name))for(let H of oe.name.elements)Fl(H)||te(H,de,ye);else V(oe.name,de,void 0,ye)}function V(oe,de,ye,H){let ve=Ko(oe)?oe:t.cloneNode(oe);if(de){if(ye===void 0&&!my(ve)){let xe=t.createVariableDeclaration(ve);H&&En(xe,H),_.push(xe);return}let Ge=ye!==void 0?ve:void 0,De=ye!==void 0?ye:ve,se=t.createExportSpecifier(!1,Ge,De);H&&En(se,H),c.set(ve,se)}i(ve)}function ne(){return t.createUniqueName("env")}function ie(oe,de,ye){let H=[],ve=t.createObjectLiteralExpression([t.createPropertyAssignment("stack",t.createArrayLiteralExpression()),t.createPropertyAssignment("error",t.createVoidZero()),t.createPropertyAssignment("hasError",t.createFalse())]),Ge=t.createVariableDeclaration(de,void 0,void 0,ve),De=t.createVariableDeclarationList([Ge],2),se=t.createVariableStatement(void 0,De);H.push(se);let xe=t.createBlock(oe,!0),_e=t.createUniqueName("e"),tt=t.createCatchClause(_e,t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(de,"error"),_e)),t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(de,"hasError"),t.createTrue()))],!0)),ct;if(ye){let Je=t.createUniqueName("result");ct=t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Je,void 0,void 0,n().createDisposeResourcesHelper(de))],2)),t.createIfStatement(Je,t.createExpressionStatement(t.createAwaitExpression(Je)))],!0)}else ct=t.createBlock([t.createExpressionStatement(n().createDisposeResourcesHelper(de))],!0);let le=t.createTryStatement(xe,tt,ct);return H.push(le),H}}function nTe(e){for(let t=0;t<e.length;t++)if(!wm(e[t])&&!B6(e[t]))return t;return 0}function iTe(e){return au(e)&&Iae(e)!==0}function Iae(e){return(e.flags&7)===6?2:(e.flags&7)===4?1:0}function RGe(e){return Iae(e.declarationList)}function Dae(e){return Lc(e)?RGe(e):0}function BU(e){let t=0;for(let n of e){let i=Dae(n);if(i===2)return 2;i>t&&(t=i)}return t}function FGe(e){let t=0;for(let n of e){let i=BU(n.statements);if(i===2)return 2;i>t&&(t=i)}return t}function Pae(e){let{factory:t,getEmitHelperFactory:n}=e,i=e.getCompilerOptions(),s,o;return Xd(e,h);function c(){if(o.filenameDeclaration)return o.filenameDeclaration.name;let le=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(s.fileName));return o.filenameDeclaration=le,o.filenameDeclaration.name}function _(le){return i.jsx===5?"jsxDEV":le?"jsxs":"jsx"}function u(le){let Je=_(le);return m(Je)}function g(){return m("Fragment")}function m(le){var Je,ee;let Ne=le==="createElement"?o.importSpecifier:wO(o.importSpecifier,i),Ie=(ee=(Je=o.utilizedImplicitRuntimeImports)==null?void 0:Je.get(Ne))==null?void 0:ee.get(le);if(Ie)return Ie.name;o.utilizedImplicitRuntimeImports||(o.utilizedImplicitRuntimeImports=new Map);let Ce=o.utilizedImplicitRuntimeImports.get(Ne);Ce||(Ce=new Map,o.utilizedImplicitRuntimeImports.set(Ne,Ce));let Ve=t.createUniqueName(`_${le}`,112),bt=t.createImportSpecifier(!1,t.createIdentifier(le),Ve);return Gne(Ve,bt),Ce.set(le,bt),Ve}function h(le){if(le.isDeclarationFile)return le;s=le,o={},o.importSpecifier=N4(i,le);let Je=Ir(le,S,e);Th(Je,e.readEmitHelpers());let ee=Je.statements;if(o.filenameDeclaration&&(ee=sk(ee.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([o.filenameDeclaration],2)))),o.utilizedImplicitRuntimeImports){for(let[Ne,Ie]of ps(o.utilizedImplicitRuntimeImports.entries()))if(xl(le)){let Ce=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(ps(Ie.values()))),t.createStringLiteral(Ne),void 0);zb(Ce,!1),ee=sk(ee.slice(),Ce)}else if(mf(le)){let Ce=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(ps(Ie.values(),Ve=>t.createBindingElement(void 0,Ve.propertyName,Ve.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(Ne)]))],2));zb(Ce,!1),ee=sk(ee.slice(),Ce)}}return ee!==Je.statements&&(Je=t.updateSourceFile(Je,ee)),o=void 0,Je}function S(le){return le.transformFlags&2?T(le):le}function T(le){switch(le.kind){case 284:return O(le,!1);case 285:return F(le,!1);case 288:return B(le,!1);case 294:return ct(le);default:return Ir(le,S,e)}}function x(le){switch(le.kind){case 12:return ve(le);case 294:return ct(le);case 284:return O(le,!0);case 285:return F(le,!0);case 288:return B(le,!0);default:return w.failBadSyntaxKind(le)}}function I(le){return le.properties.some(Je=>hl(Je)&&(je(Je.name)&&Ln(Je.name)==="__proto__"||ya(Je.name)&&Je.name.text==="__proto__"))}function D(le){let Je=!1;for(let ee of le.attributes.properties)if(G2(ee)&&(!Sa(ee.expression)||ee.expression.properties.some(xh)))Je=!0;else if(Je&&Bm(ee)&&je(ee.name)&&ee.name.escapedText==="key")return!0;return!1}function E(le){return o.importSpecifier===void 0||D(le)}function O(le,Je){return(E(le.openingElement)?me:K)(le.openingElement,le.children,Je,le)}function F(le,Je){return(E(le)?me:K)(le,void 0,Je,le)}function B(le,Je){return(o.importSpecifier===void 0?V:te)(le.openingFragment,le.children,Je,le)}function G(le){let Je=$(le);return Je&&t.createObjectLiteralExpression([Je])}function $(le){let Je=Xw(le);if(Dr(Je)===1&&!Je[0].dotDotDotToken){let Ne=x(Je[0]);return Ne&&t.createPropertyAssignment("children",Ne)}let ee=Vi(le,x);return Dr(ee)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(ee)):void 0}function K(le,Je,ee,Ne){let Ie=_e(le),Ce=Je&&Je.length?$(Je):void 0,Ve=On(le.attributes.properties,ur=>!!ur.name&&je(ur.name)&&ur.name.escapedText==="key"),bt=Ve?An(le.attributes.properties,ur=>ur!==Ve):le.attributes.properties,zt=Dr(bt)?ie(bt,Ce):t.createObjectLiteralExpression(Ce?[Ce]:qe);return U(Ie,zt,Ve,Je||qe,ee,Ne)}function U(le,Je,ee,Ne,Ie,Ce){var Ve;let bt=Xw(Ne),zt=Dr(bt)>1||!!((Ve=bt[0])!=null&&Ve.dotDotDotToken),ur=[le,Je];if(ee&&ur.push(H(ee.initializer)),i.jsx===5){let _t=ic(s);if(_t&&Mi(_t)){ee===void 0&&ur.push(t.createVoidZero()),ur.push(zt?t.createTrue():t.createFalse());let $t=Qs(_t,Ce.pos);ur.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",c()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral($t.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral($t.character+1))])),ur.push(t.createThis())}}let Or=dt(t.createCallExpression(u(zt),void 0,ur),Ce);return Ie&&Ju(Or),Or}function me(le,Je,ee,Ne){let Ie=_e(le),Ce=le.attributes.properties,Ve=Dr(Ce)?ie(Ce):t.createNull(),bt=o.importSpecifier===void 0?SG(t,e.getEmitResolver().getJsxFactoryEntity(s),i.reactNamespace,le):m("createElement"),zt=xie(t,bt,Ie,Ve,Vi(Je,x),Ne);return ee&&Ju(zt),zt}function te(le,Je,ee,Ne){let Ie;if(Je&&Je.length){let Ce=G(Je);Ce&&(Ie=Ce)}return U(g(),Ie||t.createObjectLiteralExpression([]),void 0,Je,ee,Ne)}function V(le,Je,ee,Ne){let Ie=Cie(t,e.getEmitResolver().getJsxFactoryEntity(s),e.getEmitResolver().getJsxFragmentFactoryEntity(s),i.reactNamespace,Vi(Je,x),le,Ne);return ee&&Ju(Ie),Ie}function ne(le){return Sa(le.expression)&&!I(le.expression)?ul(le.expression.properties,Je=>w.checkDefined(et(Je,S,iy))):t.createSpreadAssignment(w.checkDefined(et(le.expression,S,gt)))}function ie(le,Je){let ee=wa(i);return ee&&ee>=5?t.createObjectLiteralExpression(oe(le,Je)):de(le,Je)}function oe(le,Je){let ee=Qp(TW(le,G2,(Ne,Ie)=>Qp(hr(Ne,Ce=>Ie?ne(Ce):ye(Ce)))));return Je&&ee.push(Je),ee}function de(le,Je){let ee=[],Ne=[];for(let Ce of le){if(G2(Ce)){if(Sa(Ce.expression)&&!I(Ce.expression)){for(let Ve of Ce.expression.properties){if(xh(Ve)){Ie(),ee.push(w.checkDefined(et(Ve.expression,S,gt)));continue}Ne.push(w.checkDefined(et(Ve,S)))}continue}Ie(),ee.push(w.checkDefined(et(Ce.expression,S,gt)));continue}Ne.push(ye(Ce))}return Je&&Ne.push(Je),Ie(),ee.length&&!Sa(ee[0])&&ee.unshift(t.createObjectLiteralExpression()),hg(ee)||n().createAssignHelper(ee);function Ie(){Ne.length&&(ee.push(t.createObjectLiteralExpression(Ne)),Ne=[])}}function ye(le){let Je=tt(le),ee=H(le.initializer);return t.createPropertyAssignment(Je,ee)}function H(le){if(le===void 0)return t.createTrue();if(le.kind===11){let Je=le.singleQuote!==void 0?le.singleQuote:!JF(le,s),ee=t.createStringLiteral(xe(le.text)||le.text,Je);return dt(ee,le)}return le.kind===294?le.expression===void 0?t.createTrue():w.checkDefined(et(le.expression,S,gt)):Wm(le)?O(le,!1):Pk(le)?F(le,!1):Hb(le)?B(le,!1):w.failBadSyntaxKind(le)}function ve(le){let Je=Ge(le.text);return Je===void 0?void 0:t.createStringLiteral(Je)}function Ge(le){let Je,ee=0,Ne=-1;for(let Ie=0;Ie<le.length;Ie++){let Ce=le.charCodeAt(Ie);Lu(Ce)?(ee!==-1&&Ne!==-1&&(Je=De(Je,le.substr(ee,Ne-ee+1))),ee=-1):Tm(Ce)||(Ne=Ie,ee===-1&&(ee=Ie))}return ee!==-1?De(Je,le.substr(ee)):Je}function De(le,Je){let ee=se(Je);return le===void 0?ee:le+" "+ee}function se(le){return le.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,(Je,ee,Ne,Ie,Ce,Ve,bt)=>{if(Ce)return EP(parseInt(Ce,10));if(Ve)return EP(parseInt(Ve,16));{let zt=OGe.get(bt);return zt?EP(zt):Je}})}function xe(le){let Je=se(le);return Je===le?void 0:Je}function _e(le){if(le.kind===284)return _e(le.openingElement);{let Je=le.tagName;return je(Je)&&Yw(Je.escapedText)?t.createStringLiteral(Ln(Je)):Qd(Je)?t.createStringLiteral(Ln(Je.namespace)+":"+Ln(Je.name)):nM(t,Je)}}function tt(le){let Je=le.name;if(je(Je)){let ee=Ln(Je);return/^[A-Z_]\w*$/i.test(ee)?Je:t.createStringLiteral(ee)}return t.createStringLiteral(Ln(Je.namespace)+":"+Ln(Je.name))}function ct(le){let Je=et(le.expression,S,gt);return le.dotDotDotToken?t.createSpreadElement(Je):Je}}var OGe=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 Aae(e){let{factory:t,hoistVariableDeclaration:n}=e;return Xd(e,i);function i(u){return u.isDeclarationFile?u:Ir(u,s,e)}function s(u){if((u.transformFlags&512)===0)return u;switch(u.kind){case 226:return o(u);default:return Ir(u,s,e)}}function o(u){switch(u.operatorToken.kind){case 68:return c(u);case 43:return _(u);default:return Ir(u,s,e)}}function c(u){let g,m,h=et(u.left,s,gt),S=et(u.right,s,gt);if(wo(h)){let T=t.createTempVariable(n),x=t.createTempVariable(n);g=dt(t.createElementAccessExpression(dt(t.createAssignment(T,h.expression),h.expression),dt(t.createAssignment(x,h.argumentExpression),h.argumentExpression)),h),m=dt(t.createElementAccessExpression(T,x),h)}else if(Nn(h)){let T=t.createTempVariable(n);g=dt(t.createPropertyAccessExpression(dt(t.createAssignment(T,h.expression),h.expression),h.name),h),m=dt(t.createPropertyAccessExpression(T,h.name),h)}else g=h,m=h;return dt(t.createAssignment(g,dt(t.createGlobalMethodCall("Math","pow",[m,S]),u)),u)}function _(u){let g=et(u.left,s,gt),m=et(u.right,s,gt);return dt(t.createGlobalMethodCall("Math","pow",[g,m]),u)}}function sTe(e,t){return{kind:e,expression:t}}function Eae(e){let{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:i,resumeLexicalEnvironment:s,endLexicalEnvironment:o,hoistVariableDeclaration:c}=e,_=e.getCompilerOptions(),u=e.getEmitResolver(),g=e.onSubstituteNode,m=e.onEmitNode;e.onEmitNode=If,e.onSubstituteNode=zf;let h,S,T,x;function I(re){x=jr(x,t.createVariableDeclaration(re))}let D,E=0;return Xd(e,O);function O(re){if(re.isDeclarationFile)return re;h=re,S=re.text;let at=ie(re);return Th(at,e.readEmitHelpers()),h=void 0,S=void 0,x=void 0,T=0,at}function F(re,at){let Kt=T;return T=(T&~re|at)&32767,Kt}function B(re,at,Kt){T=(T&~at|Kt)&-32768|re}function G(re){return(T&8192)!==0&&re.kind===253&&!re.expression}function $(re){return re.transformFlags&4194304&&(Bf(re)||qb(re)||cie(re)||UA(re)||VA(re)||yI(re)||qA(re)||Ik(re)||BS(re)||z0(re)||k0(re,!1)||Fs(re))}function K(re){return(re.transformFlags&1024)!==0||D!==void 0||T&8192&&$(re)||k0(re,!1)&&xi(re)||(Sd(re)&1)!==0}function U(re){return K(re)?ne(re,!1):re}function me(re){return K(re)?ne(re,!0):re}function te(re){if(K(re)){let at=ic(re);if(ds(at)&&Tl(at)){let Kt=F(32670,16449),Xt=ne(re,!1);return B(Kt,229376,0),Xt}return ne(re,!1)}return re}function V(re){return re.kind===108?wl(re,!0):U(re)}function ne(re,at){switch(re.kind){case 126:return;case 263:return _e(re);case 231:return tt(re);case 169:return oa(re);case 262:return Vt(re);case 219:return Mt(re);case 218:return Ke(re);case 260:return Pr(re);case 80:return se(re);case 261:return we(re);case 255:return oe(re);case 269:return de(re);case 241:return kt(re,!1);case 252:case 251:return xe(re);case 256:return Tt(re);case 246:case 247:return vr(re,void 0);case 248:return ar(re,void 0);case 249:return dr(re,void 0);case 250:return Sr(re,void 0);case 244:return pe(re);case 210:return ta(re);case 299:return Ci(re);case 304:return Go(re);case 167:return Dc(re);case 209:return Eo(re);case 213:return Hc(re);case 214:return up(re);case 217:return j(re,at);case 226:return Re(re,at);case 356:return q(re,at);case 15:case 16:case 17:case 18:return Ma(re);case 11:return Wo(re);case 9:return Qc(re);case 215:return hc(re);case 228:return yc(re);case 229:return $c(re);case 230:return Js(re);case 108:return wl(re,!1);case 110:return Ge(re);case 236:return Il(re);case 174:return io(re);case 177:case 178:return Ta(re);case 243:return jt(re);case 253:return ve(re);case 222:return De(re);default:return Ir(re,U,e)}}function ie(re){let at=F(8064,64),Kt=[],Xt=[];i();let Ar=t.copyPrologue(re.statements,Kt,!1,U);return jn(Xt,Ur(re.statements,U,Ii,Ar)),x&&Xt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(x))),t.mergeLexicalEnvironment(Kt,o()),Y(Kt,re),B(at,0,0),t.updateSourceFile(re,dt(t.createNodeArray(Ki(Kt,Xt)),re.statements))}function oe(re){if(D!==void 0){let at=D.allowedNonLabeledJumps;D.allowedNonLabeledJumps|=2;let Kt=Ir(re,U,e);return D.allowedNonLabeledJumps=at,Kt}return Ir(re,U,e)}function de(re){let at=F(7104,0),Kt=Ir(re,U,e);return B(at,0,0),Kt}function ye(re){return En(t.createReturnStatement(H()),re)}function H(){return t.createUniqueName("_this",48)}function ve(re){return D?(D.nonLocalJumps|=8,G(re)&&(re=ye(re)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),re.expression?w.checkDefined(et(re.expression,U,gt)):t.createVoidZero())]))):G(re)?ye(re):Ir(re,U,e)}function Ge(re){return T|=65536,T&2&&!(T&16384)&&(T|=131072),D?T&2?(D.containsLexicalThis=!0,re):D.thisName||(D.thisName=t.createUniqueName("this")):re}function De(re){return Ir(re,me,e)}function se(re){return D&&u.isArgumentsLocalBinding(re)?D.argumentsName||(D.argumentsName=t.createUniqueName("arguments")):re.flags&256?En(dt(t.createIdentifier(Li(re.escapedText)),re),re):re}function xe(re){if(D){let at=re.kind===252?2:4;if(!(re.label&&D.labels&&D.labels.get(Ln(re.label))||!re.label&&D.allowedNonLabeledJumps&at)){let Xt,Ar=re.label;Ar?re.kind===252?(Xt=`break-${Ar.escapedText}`,Oe(D,!0,Ln(Ar),Xt)):(Xt=`continue-${Ar.escapedText}`,Oe(D,!1,Ln(Ar),Xt)):re.kind===252?(D.nonLocalJumps|=2,Xt="break"):(D.nonLocalJumps|=4,Xt="continue");let Yr=t.createStringLiteral(Xt);if(D.loopOutParameters.length){let Gn=D.loopOutParameters,_i;for(let Ji=0;Ji<Gn.length;Ji++){let L=cu(Gn[Ji],1);Ji===0?_i=L:_i=t.createBinaryExpression(_i,28,L)}Yr=t.createBinaryExpression(_i,28,Yr)}return t.createReturnStatement(Yr)}}return Ir(re,U,e)}function _e(re){let at=t.createVariableDeclaration(t.getLocalName(re,!0),void 0,void 0,ct(re));En(at,re);let Kt=[],Xt=t.createVariableStatement(void 0,t.createVariableDeclarationList([at]));if(En(Xt,re),dt(Xt,re),Ju(Xt),Kt.push(Xt),ei(re,32)){let Ar=ei(re,2048)?t.createExportDefault(t.getLocalName(re)):t.createExternalModuleExport(t.getLocalName(re));En(Ar,Xt),Kt.push(Ar)}return yg(Kt)}function tt(re){return ct(re)}function ct(re){re.name&&C_();let at=TS(re),Kt=t.createFunctionExpression(void 0,void 0,void 0,void 0,at?[t.createParameterDeclaration(void 0,void 0,Yc())]:[],void 0,le(re,at));dn(Kt,Na(re)&131072|1048576);let Xt=t.createPartiallyEmittedExpression(Kt);cI(Xt,re.end),dn(Xt,3072);let Ar=t.createPartiallyEmittedExpression(Xt);cI(Ar,ha(S,re.pos)),dn(Ar,3072);let Yr=t.createParenthesizedExpression(t.createCallExpression(Ar,void 0,at?[w.checkDefined(et(at.expression,U,gt))]:[]));return NS(Yr,3,"* @class "),Yr}function le(re,at){let Kt=[],Xt=t.getInternalName(re),Ar=Mz(Xt)?t.getGeneratedNameForNode(Xt):Xt;i(),Je(Kt,re,at),ee(Kt,re,Ar,at),st(Kt,re);let Yr=sJ(ha(S,re.members.end),20),Gn=t.createPartiallyEmittedExpression(Ar);cI(Gn,Yr.end),dn(Gn,3072);let _i=t.createReturnStatement(Gn);IA(_i,Yr.pos),dn(_i,3840),Kt.push(_i),_h(Kt,o());let Ji=t.createBlock(dt(t.createNodeArray(Kt),re.members),!0);return dn(Ji,3072),Ji}function Je(re,at,Kt){Kt&&re.push(dt(t.createExpressionStatement(n().createExtendsHelper(t.getInternalName(at))),Kt))}function ee(re,at,Kt,Xt){let Ar=D;D=void 0;let Yr=F(32662,73),Gn=mh(at),_i=Dh(Gn,Xt!==void 0),Ji=t.createFunctionDeclaration(void 0,void 0,Kt,void 0,Ne(Gn,_i),void 0,bt(Gn,at,Xt,_i));dt(Ji,Gn||at),Xt&&dn(Ji,16),re.push(Ji),B(Yr,229376,0),D=Ar}function Ne(re,at){return Cc(re&&!at?re.parameters:void 0,U,e)||[]}function Ie(re,at){let Kt=[];s(),t.mergeLexicalEnvironment(Kt,o()),at&&Kt.push(t.createReturnStatement(Rs()));let Xt=t.createNodeArray(Kt);dt(Xt,re.members);let Ar=t.createBlock(Xt,!0);return dt(Ar,re),dn(Ar,3072),Ar}function Ce(re){return Lc(re)&&Oi(re.declarationList.declarations,at=>je(at.name)&&!at.initializer)}function Ve(re){if(ok(re))return!0;if(!(re.transformFlags&134217728))return!1;switch(re.kind){case 219:case 218:case 262:case 176:case 175:return!1;case 177:case 178:case 174:case 172:{let at=re;return pa(at.name)?!!Es(at.name,Ve):!1}}return!!Es(re,Ve)}function bt(re,at,Kt,Xt){let Ar=!!Kt&&Wc(Kt.expression).kind!==106;if(!re)return Ie(at,Ar);let Yr=[],Gn=[];s();let _i=t.copyStandardPrologue(re.body.statements,Yr,0);(Xt||Ve(re.body))&&(T|=8192),jn(Gn,Ur(re.body.statements,U,Ii,_i));let Ji=Ar||T&8192;xs(Yr,re),lt(Yr,re,Xt),Xe(Yr,re),Ji?Ae(Yr,re,Pi()):Y(Yr,re),t.mergeLexicalEnvironment(Yr,o()),Ji&&!Xn(re.body)&&Gn.push(t.createReturnStatement(H()));let L=t.createBlock(dt(t.createNodeArray([...Yr,...Gn]),re.body.statements),!0);return dt(L,re.body),Zn(L,re.body,Xt)}function zt(re){return Ko(re)&&Ln(re)==="_this"}function ur(re){return Ko(re)&&Ln(re)==="_super"}function Or(re){return Lc(re)&&re.declarationList.declarations.length===1&&_t(re.declarationList.declarations[0])}function _t(re){return oi(re)&&zt(re.name)&&!!re.initializer}function $t(re){return ql(re,!0)&&zt(re.left)}function Hr(re){return qs(re)&&Nn(re.expression)&&ur(re.expression.expression)&&je(re.expression.name)&&(Ln(re.expression.name)==="call"||Ln(re.expression.name)==="apply")&&re.arguments.length>=1&&re.arguments[0].kind===110}function hi(re){return vn(re)&&re.operatorToken.kind===57&&re.right.kind===110&&Hr(re.left)}function _s(re){return vn(re)&&re.operatorToken.kind===56&&vn(re.left)&&re.left.operatorToken.kind===38&&ur(re.left.left)&&re.left.right.kind===106&&Hr(re.right)&&Ln(re.right.expression.name)==="apply"}function At(re){return vn(re)&&re.operatorToken.kind===57&&re.right.kind===110&&_s(re.left)}function zn(re){return $t(re)&&hi(re.right)}function ns(re){return $t(re)&&At(re.right)}function Rn(re){return Hr(re)||hi(re)||zn(re)||_s(re)||At(re)||ns(re)}function hn(re){for(let at=0;at<re.statements.length-1;at++){let Kt=re.statements[at];if(!Or(Kt))continue;let Xt=Kt.declarationList.declarations[0];if(Xt.initializer.kind!==110)continue;let Ar=at,Yr=at+1;for(;Yr<re.statements.length;){let Er=re.statements[Yr];if($l(Er)&&Rn(Wc(Er.expression)))break;if(Ce(Er)){Yr++;continue}return re}let Gn=re.statements[Yr],_i=Gn.expression;$t(_i)&&(_i=_i.right);let Ji=t.updateVariableDeclaration(Xt,Xt.name,void 0,void 0,_i),L=t.updateVariableDeclarationList(Kt.declarationList,[Ji]),ze=t.createVariableStatement(Kt.modifiers,L);En(ze,Gn),dt(ze,Gn);let Rt=t.createNodeArray([...re.statements.slice(0,Ar),...re.statements.slice(Ar+1,Yr),ze,...re.statements.slice(Yr+1)]);return dt(Rt,re.statements),t.updateBlock(re,Rt)}return re}function ui(re,at){for(let Xt of at.statements)if(Xt.transformFlags&134217728&&!t5(Xt))return re;let Kt=!(at.transformFlags&16384)&&!(T&65536)&&!(T&131072);for(let Xt=re.statements.length-1;Xt>0;Xt--){let Ar=re.statements[Xt];if(Bf(Ar)&&Ar.expression&&zt(Ar.expression)){let Yr=re.statements[Xt-1],Gn;if($l(Yr)&&zn(Wc(Yr.expression)))Gn=Yr.expression;else if(Kt&&Or(Yr)){let L=Yr.declarationList.declarations[0];Rn(Wc(L.initializer))&&(Gn=t.createAssignment(H(),L.initializer))}if(!Gn)break;let _i=t.createReturnStatement(Gn);En(_i,Yr),dt(_i,Yr);let Ji=t.createNodeArray([...re.statements.slice(0,Xt-1),_i,...re.statements.slice(Xt+1)]);return dt(Ji,re.statements),t.updateBlock(re,Ji)}}return re}function Ue(re){if(Or(re)){if(re.declarationList.declarations[0].initializer.kind===110)return}else if($t(re))return t.createPartiallyEmittedExpression(re.right,re);switch(re.kind){case 219:case 218:case 262:case 176:case 175:return re;case 177:case 178:case 174:case 172:{let at=re;return pa(at.name)?t.replacePropertyName(at,Ir(at.name,Ue,void 0)):re}}return Ir(re,Ue,void 0)}function ht(re,at){if(at.transformFlags&16384||T&65536||T&131072)return re;for(let Kt of at.statements)if(Kt.transformFlags&134217728&&!t5(Kt))return re;return t.updateBlock(re,Ur(re.statements,Ue,Ii))}function sr(re){if(Hr(re)&&re.arguments.length===2&&je(re.arguments[1])&&Ln(re.arguments[1])==="arguments")return t.createLogicalAnd(t.createStrictInequality(Yc(),t.createNull()),re);switch(re.kind){case 219:case 218:case 262:case 176:case 175:return re;case 177:case 178:case 174:case 172:{let at=re;return pa(at.name)?t.replacePropertyName(at,Ir(at.name,sr,void 0)):re}}return Ir(re,sr,void 0)}function Zr(re){return t.updateBlock(re,Ur(re.statements,sr,Ii))}function Zn(re,at,Kt){let Xt=re;return re=hn(re),re=ui(re,at),re!==Xt&&(re=ht(re,at)),Kt&&(re=Zr(re)),re}function Xn(re){if(re.kind===253)return!0;if(re.kind===245){let at=re;if(at.elseStatement)return Xn(at.thenStatement)&&Xn(at.elseStatement)}else if(re.kind===241){let at=zo(re.statements);if(at&&Xn(at))return!0}return!1}function Pi(){return dn(t.createThis(),8)}function Rs(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(Yc(),t.createNull()),t.createFunctionApplyCall(Yc(),Pi(),t.createIdentifier("arguments"))),Pi())}function oa(re){if(!re.dotDotDotToken)return Ws(re.name)?En(dt(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(re),void 0,void 0,void 0),re),re):re.initializer?En(dt(t.createParameterDeclaration(void 0,void 0,re.name,void 0,void 0,void 0),re),re):re}function xr(re){return re.initializer!==void 0||Ws(re.name)}function xs(re,at){if(!pt(at.parameters,xr))return!1;let Kt=!1;for(let Xt of at.parameters){let{name:Ar,initializer:Yr,dotDotDotToken:Gn}=Xt;Gn||(Ws(Ar)?Kt=Ye(re,Xt,Ar,Yr)||Kt:Yr&&(Nt(re,Xt,Ar,Yr),Kt=!0))}return Kt}function Ye(re,at,Kt,Xt){return Kt.elements.length>0?(sk(re,dn(t.createVariableStatement(void 0,t.createVariableDeclarationList(VS(at,U,e,0,t.getGeneratedNameForNode(at)))),2097152)),!0):Xt?(sk(re,dn(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(at),w.checkDefined(et(Xt,U,gt)))),2097152)),!0):!1}function Nt(re,at,Kt,Xt){Xt=w.checkDefined(et(Xt,U,gt));let Ar=t.createIfStatement(t.createTypeCheck(t.cloneNode(Kt),"undefined"),dn(dt(t.createBlock([t.createExpressionStatement(dn(dt(t.createAssignment(dn(Xa(dt(t.cloneNode(Kt),Kt),Kt.parent),96),dn(Xt,96|Na(Xt)|3072)),at),3072))]),at),3905));Ju(Ar),dt(Ar,at),dn(Ar,2101056),sk(re,Ar)}function ae(re,at){return!!(re&&re.dotDotDotToken&&!at)}function lt(re,at,Kt){let Xt=[],Ar=zo(at.parameters);if(!ae(Ar,Kt))return!1;let Yr=Ar.name.kind===80?Xa(dt(t.cloneNode(Ar.name),Ar.name),Ar.name.parent):t.createTempVariable(void 0);dn(Yr,96);let Gn=Ar.name.kind===80?t.cloneNode(Ar.name):Yr,_i=at.parameters.length-1,Ji=t.createLoopVariable();Xt.push(dn(dt(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Yr,void 0,void 0,t.createArrayLiteralExpression([]))])),Ar),2097152));let L=t.createForStatement(dt(t.createVariableDeclarationList([t.createVariableDeclaration(Ji,void 0,void 0,t.createNumericLiteral(_i))]),Ar),dt(t.createLessThan(Ji,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),Ar),dt(t.createPostfixIncrement(Ji),Ar),t.createBlock([Ju(dt(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(Gn,_i===0?Ji:t.createSubtract(Ji,t.createNumericLiteral(_i))),t.createElementAccessExpression(t.createIdentifier("arguments"),Ji))),Ar))]));return dn(L,2097152),Ju(L),Xt.push(L),Ar.name.kind!==80&&Xt.push(dn(dt(t.createVariableStatement(void 0,t.createVariableDeclarationList(VS(Ar,U,e,0,Gn))),Ar),2097152)),YB(re,Xt),!0}function Y(re,at){return T&131072&&at.kind!==219?(Ae(re,at,t.createThis()),!0):!1}function Ae(re,at,Kt){Pd();let Xt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(H(),void 0,void 0,Kt)]));dn(Xt,2100224),Ia(Xt,at),sk(re,Xt)}function Xe(re,at){if(T&32768){let Kt;switch(at.kind){case 219:return re;case 174:case 177:case 178:Kt=t.createVoidZero();break;case 176:Kt=t.createPropertyAccessExpression(dn(t.createThis(),8),"constructor");break;case 262:case 218:Kt=t.createConditionalExpression(t.createLogicalAnd(dn(t.createThis(),8),t.createBinaryExpression(dn(t.createThis(),8),104,t.getLocalName(at))),void 0,t.createPropertyAccessExpression(dn(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return w.failBadSyntaxKind(at)}let Xt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,Kt)]));dn(Xt,2100224),sk(re,Xt)}return re}function st(re,at){for(let Kt of at.members)switch(Kt.kind){case 240:re.push(Dt(Kt));break;case 174:re.push(Fe(Jf(at,Kt),Kt,at));break;case 177:case 178:let Xt=wS(at.members,Kt);Kt===Xt.firstAccessor&&re.push(St(Jf(at,Kt),Xt,at));break;case 176:case 175:break;default:w.failBadSyntaxKind(Kt,h&&h.fileName);break}}function Dt(re){return dt(t.createEmptyStatement(),re)}function Fe(re,at,Kt){let Xt=Fm(at),Ar=av(at),Yr=on(at,at,void 0,Kt),Gn=et(at.name,U,tl);w.assert(Gn);let _i;if(!ji(Gn)&&A4(e.getCompilerOptions())){let L=pa(Gn)?Gn.expression:je(Gn)?t.createStringLiteral(Li(Gn.escapedText)):Gn;_i=t.createObjectDefinePropertyCall(re,L,t.createPropertyDescriptor({value:Yr,enumerable:!1,writable:!0,configurable:!0}))}else{let L=Nk(t,re,Gn,at.name);_i=t.createAssignment(L,Yr)}dn(Yr,3072),Ia(Yr,Ar);let Ji=dt(t.createExpressionStatement(_i),at);return En(Ji,at),dl(Ji,Xt),dn(Ji,96),Ji}function St(re,at,Kt){let Xt=t.createExpressionStatement(vt(re,at,Kt,!1));return dn(Xt,3072),Ia(Xt,av(at.firstAccessor)),Xt}function vt(re,{firstAccessor:at,getAccessor:Kt,setAccessor:Xt},Ar,Yr){let Gn=Xa(dt(t.cloneNode(re),re),re.parent);dn(Gn,3136),Ia(Gn,at.name);let _i=et(at.name,U,tl);if(w.assert(_i),ji(_i))return w.failBadSyntaxKind(_i,"Encountered unhandled private identifier while transforming ES2015.");let Ji=kG(t,_i);dn(Ji,3104),Ia(Ji,at.name);let L=[];if(Kt){let Rt=on(Kt,void 0,void 0,Ar);Ia(Rt,av(Kt)),dn(Rt,1024);let Er=t.createPropertyAssignment("get",Rt);dl(Er,Fm(Kt)),L.push(Er)}if(Xt){let Rt=on(Xt,void 0,void 0,Ar);Ia(Rt,av(Xt)),dn(Rt,1024);let Er=t.createPropertyAssignment("set",Rt);dl(Er,Fm(Xt)),L.push(Er)}L.push(t.createPropertyAssignment("enumerable",Kt||Xt?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));let ze=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[Gn,Ji,t.createObjectLiteralExpression(L,!0)]);return Yr&&Ju(ze),ze}function Mt(re){re.transformFlags&16384&&!(T&16384)&&(T|=131072);let at=D;D=void 0;let Kt=F(15232,66),Xt=t.createFunctionExpression(void 0,void 0,void 0,void 0,Cc(re.parameters,U,e),void 0,Pe(re));return dt(Xt,re),En(Xt,re),dn(Xt,16),B(Kt,0,0),D=at,Xt}function Ke(re){let at=Na(re)&524288?F(32662,69):F(32670,65),Kt=D;D=void 0;let Xt=Cc(re.parameters,U,e),Ar=Pe(re),Yr=T&32768?t.getLocalName(re):re.name;return B(at,229376,0),D=Kt,t.updateFunctionExpression(re,void 0,re.asteriskToken,Yr,void 0,Xt,void 0,Ar)}function Vt(re){let at=D;D=void 0;let Kt=F(32670,65),Xt=Cc(re.parameters,U,e),Ar=Pe(re),Yr=T&32768?t.getLocalName(re):re.name;return B(Kt,229376,0),D=at,t.updateFunctionDeclaration(re,Ur(re.modifiers,U,la),re.asteriskToken,Yr,void 0,Xt,void 0,Ar)}function on(re,at,Kt,Xt){let Ar=D;D=void 0;let Yr=Xt&&ii(Xt)&&!Ks(re)?F(32670,73):F(32670,65),Gn=Cc(re.parameters,U,e),_i=Pe(re);return T&32768&&!Kt&&(re.kind===262||re.kind===218)&&(Kt=t.getGeneratedNameForNode(re)),B(Yr,229376,0),D=Ar,En(dt(t.createFunctionExpression(void 0,re.asteriskToken,Kt,void 0,Gn,void 0,_i),at),re)}function Pe(re){let at=!1,Kt=!1,Xt,Ar,Yr=[],Gn=[],_i=re.body,Ji;if(s(),Fs(_i)&&(Ji=t.copyStandardPrologue(_i.statements,Yr,0,!1),Ji=t.copyCustomPrologue(_i.statements,Gn,Ji,U,IF),Ji=t.copyCustomPrologue(_i.statements,Gn,Ji,U,DF)),at=xs(Gn,re)||at,at=lt(Gn,re,!1)||at,Fs(_i))Ji=t.copyCustomPrologue(_i.statements,Gn,Ji,U),Xt=_i.statements,jn(Gn,Ur(_i.statements,U,Ii,Ji)),!at&&_i.multiLine&&(at=!0);else{w.assert(re.kind===219),Xt=pO(_i,-1);let ze=re.equalsGreaterThanToken;!So(ze)&&!So(_i)&&(x4(ze,_i,h)?Kt=!0:at=!0);let Rt=et(_i,U,gt),Er=t.createReturnStatement(Rt);dt(Er,_i),Lne(Er,_i),dn(Er,2880),Gn.push(Er),Ar=_i}if(t.mergeLexicalEnvironment(Yr,o()),Xe(Yr,re),Y(Yr,re),pt(Yr)&&(at=!0),Gn.unshift(...Yr),Fs(_i)&&Yf(Gn,_i.statements))return _i;let L=t.createBlock(dt(t.createNodeArray(Gn),Xt),at);return dt(L,re.body),!at&&Kt&&dn(L,1),Ar&&One(L,20,Ar),En(L,re.body),L}function kt(re,at){if(at)return Ir(re,U,e);let Kt=T&256?F(7104,512):F(6976,128),Xt=Ir(re,U,e);return B(Kt,0,0),Xt}function pe(re){return Ir(re,me,e)}function j(re,at){return Ir(re,at?me:U,e)}function Re(re,at){return rv(re)?jk(re,U,e,0,!at):re.operatorToken.kind===28?t.updateBinaryExpression(re,w.checkDefined(et(re.left,me,gt)),re.operatorToken,w.checkDefined(et(re.right,at?me:U,gt))):Ir(re,U,e)}function q(re,at){if(at)return Ir(re,me,e);let Kt;for(let Ar=0;Ar<re.elements.length;Ar++){let Yr=re.elements[Ar],Gn=et(Yr,Ar<re.elements.length-1?me:U,gt);(Kt||Gn!==Yr)&&(Kt||(Kt=re.elements.slice(0,Ar)),w.assert(Gn),Kt.push(Gn))}let Xt=Kt?dt(t.createNodeArray(Kt),re.elements):re.elements;return t.updateCommaListExpression(re,Xt)}function yt(re){return re.declarationList.declarations.length===1&&!!re.declarationList.declarations[0].initializer&&!!(Sd(re.declarationList.declarations[0].initializer)&1)}function jt(re){let at=F(0,ei(re,32)?32:0),Kt;if(D&&(re.declarationList.flags&7)===0&&!yt(re)){let Xt;for(let Ar of re.declarationList.declarations)if(il(D,Ar),Ar.initializer){let Yr;Ws(Ar.name)?Yr=jk(Ar,U,e,0):(Yr=t.createBinaryExpression(Ar.name,64,w.checkDefined(et(Ar.initializer,U,gt))),dt(Yr,Ar)),Xt=jr(Xt,Yr)}Xt?Kt=dt(t.createExpressionStatement(t.inlineExpressions(Xt)),re):Kt=void 0}else Kt=Ir(re,U,e);return B(at,0,0),Kt}function we(re){if(re.flags&7||re.transformFlags&524288){re.flags&7&&C_();let at=Ur(re.declarations,re.flags&1?en:Pr,oi),Kt=t.createVariableDeclarationList(at);return En(Kt,re),dt(Kt,re),dl(Kt,re),re.transformFlags&524288&&(Ws(re.declarations[0].name)||Ws(xa(re.declarations).name))&&Ia(Kt,ut(at)),Kt}return Ir(re,U,e)}function ut(re){let at=-1,Kt=-1;for(let Xt of re)at=at===-1?Xt.pos:Xt.pos===-1?at:Math.min(at,Xt.pos),Kt=Math.max(Kt,Xt.end);return Dp(at,Kt)}function Qt(re){let at=u.hasNodeCheckFlag(re,16384),Kt=u.hasNodeCheckFlag(re,32768);return!((T&64)!==0||at&&Kt&&(T&512)!==0)&&(T&4096)===0&&(!u.isDeclarationWithCollidingName(re)||Kt&&!at&&(T&6144)===0)}function en(re){let at=re.name;return Ws(at)?Pr(re):!re.initializer&&Qt(re)?t.updateVariableDeclaration(re,re.name,void 0,void 0,t.createVoidZero()):Ir(re,U,e)}function Pr(re){let at=F(32,0),Kt;return Ws(re.name)?Kt=VS(re,U,e,0,void 0,(at&32)!==0):Kt=Ir(re,U,e),B(at,0,0),Kt}function $r(re){D.labels.set(Ln(re.label),!0)}function it(re){D.labels.set(Ln(re.label),!1)}function Tt(re){D&&!D.labels&&(D.labels=new Map);let at=gz(re,D&&$r);return k0(at,!1)?Ut(at,re):t.restoreEnclosingLabel(et(at,U,Ii,t.liftToBlock)??dt(t.createEmptyStatement(),at),re,D&&it)}function Ut(re,at){switch(re.kind){case 246:case 247:return vr(re,at);case 248:return ar(re,at);case 249:return dr(re,at);case 250:return Sr(re,at)}}function Ot(re,at,Kt,Xt,Ar){let Yr=F(re,at),Gn=Qo(Kt,Xt,Yr,Ar);return B(Yr,0,0),Gn}function vr(re,at){return Ot(0,1280,re,at)}function ar(re,at){return Ot(5056,3328,re,at)}function Gt(re){return t.updateForStatement(re,et(re.initializer,me,xp),et(re.condition,U,gt),et(re.incrementor,me,gt),w.checkDefined(et(re.statement,U,Ii,t.liftToBlock)))}function dr(re,at){return Ot(3008,5376,re,at)}function Sr(re,at){return Ot(3008,5376,re,at,_.downlevelIteration?zs:si)}function kr(re,at,Kt){let Xt=[],Ar=re.initializer;if(au(Ar)){re.initializer.flags&7&&C_();let Yr=_l(Ar.declarations);if(Yr&&Ws(Yr.name)){let Gn=VS(Yr,U,e,0,at),_i=dt(t.createVariableDeclarationList(Gn),re.initializer);En(_i,re.initializer),Ia(_i,Dp(Gn[0].pos,xa(Gn).end)),Xt.push(t.createVariableStatement(void 0,_i))}else Xt.push(dt(t.createVariableStatement(void 0,En(dt(t.createVariableDeclarationList([t.createVariableDeclaration(Yr?Yr.name:t.createTempVariable(void 0),void 0,void 0,at)]),Wb(Ar,-1)),Ar)),pO(Ar,-1)))}else{let Yr=t.createAssignment(Ar,at);rv(Yr)?Xt.push(t.createExpressionStatement(Re(Yr,!0))):(cI(Yr,Ar.end),Xt.push(dt(t.createExpressionStatement(w.checkDefined(et(Yr,U,gt))),pO(Ar,-1))))}if(Kt)return tr(jn(Xt,Kt));{let Yr=et(re.statement,U,Ii,t.liftToBlock);return w.assert(Yr),Fs(Yr)?t.updateBlock(Yr,dt(t.createNodeArray(Ki(Xt,Yr.statements)),Yr.statements)):(Xt.push(Yr),tr(Xt))}}function tr(re){return dn(t.createBlock(t.createNodeArray(re),!0),864)}function si(re,at,Kt){let Xt=et(re.expression,U,gt);w.assert(Xt);let Ar=t.createLoopVariable(),Yr=je(Xt)?t.getGeneratedNameForNode(Xt):t.createTempVariable(void 0);dn(Xt,96|Na(Xt));let Gn=dt(t.createForStatement(dn(dt(t.createVariableDeclarationList([dt(t.createVariableDeclaration(Ar,void 0,void 0,t.createNumericLiteral(0)),Wb(re.expression,-1)),dt(t.createVariableDeclaration(Yr,void 0,void 0,Xt),re.expression)]),re.expression),4194304),dt(t.createLessThan(Ar,t.createPropertyAccessExpression(Yr,"length")),re.expression),dt(t.createPostfixIncrement(Ar),re.expression),kr(re,t.createElementAccessExpression(Yr,Ar),Kt)),re);return dn(Gn,512),dt(Gn,re),t.restoreEnclosingLabel(Gn,at,D&&it)}function zs(re,at,Kt,Xt){let Ar=et(re.expression,U,gt);w.assert(Ar);let Yr=je(Ar)?t.getGeneratedNameForNode(Ar):t.createTempVariable(void 0),Gn=je(Ar)?t.getGeneratedNameForNode(Yr):t.createTempVariable(void 0),_i=t.createUniqueName("e"),Ji=t.getGeneratedNameForNode(_i),L=t.createTempVariable(void 0),ze=dt(n().createValuesHelper(Ar),re.expression),Rt=t.createCallExpression(t.createPropertyAccessExpression(Yr,"next"),void 0,[]);c(_i),c(L);let Er=Xt&1024?t.inlineExpressions([t.createAssignment(_i,t.createVoidZero()),ze]):ze,cs=dn(dt(t.createForStatement(dn(dt(t.createVariableDeclarationList([dt(t.createVariableDeclaration(Yr,void 0,void 0,Er),re.expression),t.createVariableDeclaration(Gn,void 0,void 0,Rt)]),re.expression),4194304),t.createLogicalNot(t.createPropertyAccessExpression(Gn,"done")),t.createAssignment(Gn,Rt),kr(re,t.createPropertyAccessExpression(Gn,"value"),Kt)),re),512);return t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(cs,at,D&&it)]),t.createCatchClause(t.createVariableDeclaration(Ji),dn(t.createBlock([t.createExpressionStatement(t.createAssignment(_i,t.createObjectLiteralExpression([t.createPropertyAssignment("error",Ji)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([dn(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(Gn,t.createLogicalNot(t.createPropertyAccessExpression(Gn,"done"))),t.createAssignment(L,t.createPropertyAccessExpression(Yr,"return"))),t.createExpressionStatement(t.createFunctionCallCall(L,Yr,[]))),1)]),void 0,dn(t.createBlock([dn(t.createIfStatement(_i,t.createThrowStatement(t.createPropertyAccessExpression(_i,"error"))),1)]),1))]))}function ta(re){let at=re.properties,Kt=-1,Xt=!1;for(let _i=0;_i<at.length;_i++){let Ji=at[_i];if(Ji.transformFlags&1048576&&T&4||(Xt=w.checkDefined(Ji.name).kind===167)){Kt=_i;break}}if(Kt<0)return Ir(re,U,e);let Ar=t.createTempVariable(c),Yr=[],Gn=t.createAssignment(Ar,dn(t.createObjectLiteralExpression(Ur(at,U,iy,0,Kt),re.multiLine),Xt?131072:0));return re.multiLine&&Ju(Gn),Yr.push(Gn),Br(Yr,re,Ar,Kt),Yr.push(re.multiLine?Ju(Xa(dt(t.cloneNode(Ar),Ar),Ar.parent)):Ar),t.inlineExpressions(Yr)}function Os(re){return u.hasNodeCheckFlag(re,8192)}function qc(re){return $b(re)&&!!re.initializer&&Os(re.initializer)}function uc(re){return $b(re)&&!!re.condition&&Os(re.condition)}function Bc(re){return $b(re)&&!!re.incrementor&&Os(re.incrementor)}function xi(re){return bs(re)||qc(re)}function bs(re){return u.hasNodeCheckFlag(re,4096)}function il(re,at){re.hoistedLocalVariables||(re.hoistedLocalVariables=[]),Kt(at.name);function Kt(Xt){if(Xt.kind===80)re.hoistedLocalVariables.push(Xt);else for(let Ar of Xt.elements)Fl(Ar)||Kt(Ar.name)}}function Qo(re,at,Kt,Xt){if(!xi(re)){let ze;D&&(ze=D.allowedNonLabeledJumps,D.allowedNonLabeledJumps=6);let Rt=Xt?Xt(re,at,void 0,Kt):t.restoreEnclosingLabel($b(re)?Gt(re):Ir(re,U,e),at,D&&it);return D&&(D.allowedNonLabeledJumps=ze),Rt}let Ar=La(re),Yr=[],Gn=D;D=Ar;let _i=qc(re)?sl(re,Ar):void 0,Ji=bs(re)?wc(re,Ar,Gn):void 0;D=Gn,_i&&Yr.push(_i.functionDeclaration),Ji&&Yr.push(Ji.functionDeclaration),Ht(Yr,Ar,Gn),_i&&Yr.push(Ic(_i.functionName,_i.containsYield));let L;if(Ji)if(Xt)L=Xt(re,at,Ji.part,Kt);else{let ze=Oa(re,_i,t.createBlock(Ji.part,!0));L=t.restoreEnclosingLabel(ze,at,D&&it)}else{let ze=Oa(re,_i,w.checkDefined(et(re.statement,U,Ii,t.liftToBlock)));L=t.restoreEnclosingLabel(ze,at,D&&it)}return Yr.push(L),Yr}function Oa(re,at,Kt){switch(re.kind){case 248:return Zo(re,at,Kt);case 249:return ms(re,Kt);case 250:return Cf(re,Kt);case 246:return Ys(re,Kt);case 247:return Ba(re,Kt);default:return w.failBadSyntaxKind(re,"IterationStatement expected")}}function Zo(re,at,Kt){let Xt=re.condition&&Os(re.condition),Ar=Xt||re.incrementor&&Os(re.incrementor);return t.updateForStatement(re,et(at?at.part:re.initializer,me,xp),et(Xt?void 0:re.condition,U,gt),et(Ar?void 0:re.incrementor,me,gt),Kt)}function Cf(re,at){return t.updateForOfStatement(re,void 0,w.checkDefined(et(re.initializer,U,xp)),w.checkDefined(et(re.expression,U,gt)),at)}function ms(re,at){return t.updateForInStatement(re,w.checkDefined(et(re.initializer,U,xp)),w.checkDefined(et(re.expression,U,gt)),at)}function Ys(re,at){return t.updateDoStatement(re,at,w.checkDefined(et(re.expression,U,gt)))}function Ba(re,at){return t.updateWhileStatement(re,w.checkDefined(et(re.expression,U,gt)),at)}function La(re){let at;switch(re.kind){case 248:case 249:case 250:let Yr=re.initializer;Yr&&Yr.kind===261&&(at=Yr);break}let Kt=[],Xt=[];if(at&&ny(at)&7){let Yr=qc(re)||uc(re)||Bc(re);for(let Gn of at.declarations)qt(re,Gn,Kt,Xt,Yr)}let Ar={loopParameters:Kt,loopOutParameters:Xt};return D&&(D.argumentsName&&(Ar.argumentsName=D.argumentsName),D.thisName&&(Ar.thisName=D.thisName),D.hoistedLocalVariables&&(Ar.hoistedLocalVariables=D.hoistedLocalVariables)),Ar}function Ht(re,at,Kt){let Xt;if(at.argumentsName&&(Kt?Kt.argumentsName=at.argumentsName:(Xt||(Xt=[])).push(t.createVariableDeclaration(at.argumentsName,void 0,void 0,t.createIdentifier("arguments")))),at.thisName&&(Kt?Kt.thisName=at.thisName:(Xt||(Xt=[])).push(t.createVariableDeclaration(at.thisName,void 0,void 0,t.createIdentifier("this")))),at.hoistedLocalVariables)if(Kt)Kt.hoistedLocalVariables=at.hoistedLocalVariables;else{Xt||(Xt=[]);for(let Ar of at.hoistedLocalVariables)Xt.push(t.createVariableDeclaration(Ar))}if(at.loopOutParameters.length){Xt||(Xt=[]);for(let Ar of at.loopOutParameters)Xt.push(t.createVariableDeclaration(Ar.outParamName))}at.conditionVariable&&(Xt||(Xt=[]),Xt.push(t.createVariableDeclaration(at.conditionVariable,void 0,void 0,t.createFalse()))),Xt&&re.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(Xt)))}function fo(re){return t.createVariableDeclaration(re.originalName,void 0,void 0,re.outParamName)}function sl(re,at){let Kt=t.createUniqueName("_loop_init"),Xt=(re.initializer.transformFlags&1048576)!==0,Ar=0;at.containsLexicalThis&&(Ar|=16),Xt&&T&4&&(Ar|=524288);let Yr=[];Yr.push(t.createVariableStatement(void 0,re.initializer)),ec(at.loopOutParameters,2,1,Yr);let Gn=t.createVariableStatement(void 0,dn(t.createVariableDeclarationList([t.createVariableDeclaration(Kt,void 0,void 0,dn(t.createFunctionExpression(void 0,Xt?t.createToken(42):void 0,void 0,void 0,void 0,void 0,w.checkDefined(et(t.createBlock(Yr,!0),U,Fs))),Ar))]),4194304)),_i=t.createVariableDeclarationList(hr(at.loopOutParameters,fo));return{functionName:Kt,containsYield:Xt,functionDeclaration:Gn,part:_i}}function wc(re,at,Kt){let Xt=t.createUniqueName("_loop");i();let Ar=et(re.statement,U,Ii,t.liftToBlock),Yr=o(),Gn=[];(uc(re)||Bc(re))&&(at.conditionVariable=t.createUniqueName("inc"),re.incrementor?Gn.push(t.createIfStatement(at.conditionVariable,t.createExpressionStatement(w.checkDefined(et(re.incrementor,U,gt))),t.createExpressionStatement(t.createAssignment(at.conditionVariable,t.createTrue())))):Gn.push(t.createIfStatement(t.createLogicalNot(at.conditionVariable),t.createExpressionStatement(t.createAssignment(at.conditionVariable,t.createTrue())))),uc(re)&&Gn.push(t.createIfStatement(t.createPrefixUnaryExpression(54,w.checkDefined(et(re.condition,U,gt))),w.checkDefined(et(t.createBreakStatement(),U,Ii))))),w.assert(Ar),Fs(Ar)?jn(Gn,Ar.statements):Gn.push(Ar),ec(at.loopOutParameters,1,1,Gn),_h(Gn,Yr);let _i=t.createBlock(Gn,!0);Fs(Ar)&&En(_i,Ar);let Ji=(re.statement.transformFlags&1048576)!==0,L=1048576;at.containsLexicalThis&&(L|=16),Ji&&(T&4)!==0&&(L|=524288);let ze=t.createVariableStatement(void 0,dn(t.createVariableDeclarationList([t.createVariableDeclaration(Xt,void 0,void 0,dn(t.createFunctionExpression(void 0,Ji?t.createToken(42):void 0,void 0,void 0,at.loopParameters,void 0,_i),L))]),4194304)),Rt=N(Xt,at,Kt,Ji);return{functionName:Xt,containsYield:Ji,functionDeclaration:ze,part:Rt}}function cu(re,at){let Kt=at===0?re.outParamName:re.originalName,Xt=at===0?re.originalName:re.outParamName;return t.createBinaryExpression(Xt,64,Kt)}function ec(re,at,Kt,Xt){for(let Ar of re)Ar.flags&at&&Xt.push(t.createExpressionStatement(cu(Ar,Kt)))}function Ic(re,at){let Kt=t.createCallExpression(re,void 0,[]),Xt=at?t.createYieldExpression(t.createToken(42),dn(Kt,8388608)):Kt;return t.createExpressionStatement(Xt)}function N(re,at,Kt,Xt){let Ar=[],Yr=!(at.nonLocalJumps&-5)&&!at.labeledNonLocalBreaks&&!at.labeledNonLocalContinues,Gn=t.createCallExpression(re,void 0,hr(at.loopParameters,Ji=>Ji.name)),_i=Xt?t.createYieldExpression(t.createToken(42),dn(Gn,8388608)):Gn;if(Yr)Ar.push(t.createExpressionStatement(_i)),ec(at.loopOutParameters,1,0,Ar);else{let Ji=t.createUniqueName("state"),L=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Ji,void 0,void 0,_i)]));if(Ar.push(L),ec(at.loopOutParameters,1,0,Ar),at.nonLocalJumps&8){let ze;Kt?(Kt.nonLocalJumps|=8,ze=t.createReturnStatement(Ji)):ze=t.createReturnStatement(t.createPropertyAccessExpression(Ji,"value")),Ar.push(t.createIfStatement(t.createTypeCheck(Ji,"object"),ze))}if(at.nonLocalJumps&2&&Ar.push(t.createIfStatement(t.createStrictEquality(Ji,t.createStringLiteral("break")),t.createBreakStatement())),at.labeledNonLocalBreaks||at.labeledNonLocalContinues){let ze=[];ft(at.labeledNonLocalBreaks,!0,Ji,Kt,ze),ft(at.labeledNonLocalContinues,!1,Ji,Kt,ze),Ar.push(t.createSwitchStatement(Ji,t.createCaseBlock(ze)))}}return Ar}function Oe(re,at,Kt,Xt){at?(re.labeledNonLocalBreaks||(re.labeledNonLocalBreaks=new Map),re.labeledNonLocalBreaks.set(Kt,Xt)):(re.labeledNonLocalContinues||(re.labeledNonLocalContinues=new Map),re.labeledNonLocalContinues.set(Kt,Xt))}function ft(re,at,Kt,Xt,Ar){re&&re.forEach((Yr,Gn)=>{let _i=[];if(!Xt||Xt.labels&&Xt.labels.get(Gn)){let Ji=t.createIdentifier(Gn);_i.push(at?t.createBreakStatement(Ji):t.createContinueStatement(Ji))}else Oe(Xt,at,Gn,Yr),_i.push(t.createReturnStatement(Kt));Ar.push(t.createCaseClause(t.createStringLiteral(Yr),_i))})}function qt(re,at,Kt,Xt,Ar){let Yr=at.name;if(Ws(Yr))for(let Gn of Yr.elements)Fl(Gn)||qt(re,Gn,Kt,Xt,Ar);else{Kt.push(t.createParameterDeclaration(void 0,void 0,Yr));let Gn=u.hasNodeCheckFlag(at,65536);if(Gn||Ar){let _i=t.createUniqueName("out_"+Ln(Yr)),Ji=0;Gn&&(Ji|=1),$b(re)&&(re.initializer&&u.isBindingCapturedByNode(re.initializer,at)&&(Ji|=2),(re.condition&&u.isBindingCapturedByNode(re.condition,at)||re.incrementor&&u.isBindingCapturedByNode(re.incrementor,at))&&(Ji|=1)),Xt.push({flags:Ji,originalName:Yr,outParamName:_i})}}}function Br(re,at,Kt,Xt){let Ar=at.properties,Yr=Ar.length;for(let Gn=Xt;Gn<Yr;Gn++){let _i=Ar[Gn];switch(_i.kind){case 177:case 178:let Ji=wS(at.properties,_i);_i===Ji.firstAccessor&&re.push(vt(Kt,Ji,at,!!at.multiLine));break;case 174:re.push(Lr(_i,Kt,at,at.multiLine));break;case 303:re.push(Hn(_i,Kt,at.multiLine));break;case 304:re.push(pn(_i,Kt,at.multiLine));break;default:w.failBadSyntaxKind(at);break}}}function Hn(re,at,Kt){let Xt=t.createAssignment(Nk(t,at,w.checkDefined(et(re.name,U,tl))),w.checkDefined(et(re.initializer,U,gt)));return dt(Xt,re),Kt&&Ju(Xt),Xt}function pn(re,at,Kt){let Xt=t.createAssignment(Nk(t,at,w.checkDefined(et(re.name,U,tl))),t.cloneNode(re.name));return dt(Xt,re),Kt&&Ju(Xt),Xt}function Lr(re,at,Kt,Xt){let Ar=t.createAssignment(Nk(t,at,w.checkDefined(et(re.name,U,tl))),on(re,re,void 0,Kt));return dt(Ar,re),Xt&&Ju(Ar),Ar}function Ci(re){let at=F(7104,0),Kt;if(w.assert(!!re.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),Ws(re.variableDeclaration.name)){let Xt=t.createTempVariable(void 0),Ar=t.createVariableDeclaration(Xt);dt(Ar,re.variableDeclaration);let Yr=VS(re.variableDeclaration,U,e,0,Xt),Gn=t.createVariableDeclarationList(Yr);dt(Gn,re.variableDeclaration);let _i=t.createVariableStatement(void 0,Gn);Kt=t.updateCatchClause(re,Ar,Ai(re.block,_i))}else Kt=Ir(re,U,e);return B(at,0,0),Kt}function Ai(re,at){let Kt=Ur(re.statements,U,Ii);return t.updateBlock(re,[at,...Kt])}function io(re){w.assert(!pa(re.name));let at=on(re,Wb(re,-1),void 0,void 0);return dn(at,1024|Na(at)),dt(t.createPropertyAssignment(re.name,at),re)}function Ta(re){w.assert(!pa(re.name));let at=D;D=void 0;let Kt=F(32670,65),Xt,Ar=Cc(re.parameters,U,e),Yr=Pe(re);return re.kind===177?Xt=t.updateGetAccessorDeclaration(re,re.modifiers,re.name,Ar,re.type,Yr):Xt=t.updateSetAccessorDeclaration(re,re.modifiers,re.name,Ar,Yr),B(Kt,229376,0),D=at,Xt}function Go(re){return dt(t.createPropertyAssignment(re.name,se(t.cloneNode(re.name))),re)}function Dc(re){return Ir(re,U,e)}function $c(re){return Ir(re,U,e)}function Eo(re){return pt(re.elements,Rp)?x_(re.elements,!1,!!re.multiLine,!!re.elements.hasTrailingComma):Ir(re,U,e)}function Hc(re){if(Sd(re)&1)return wf(re);let at=Wc(re.expression);return at.kind===108||H_(at)||pt(re.arguments,Rp)?bu(re,!0):t.updateCallExpression(re,w.checkDefined(et(re.expression,V,gt)),void 0,Ur(re.arguments,U,gt))}function wf(re){let at=Zs(Zs(Wc(re.expression),Lo).body,Fs),Kt=_a=>Lc(_a)&&!!Ea(_a.declarationList.declarations).initializer,Xt=D;D=void 0;let Ar=Ur(at.statements,te,Ii);D=Xt;let Yr=An(Ar,Kt),Gn=An(Ar,_a=>!Kt(_a)),Ji=Zs(Ea(Yr),Lc).declarationList.declarations[0],L=Wc(Ji.initializer),ze=Vn(L,ql);!ze&&vn(L)&&L.operatorToken.kind===28&&(ze=Vn(L.left,ql));let Rt=Zs(ze?Wc(ze.right):L,qs),Er=Zs(Wc(Rt.expression),Ao),cs=Er.body.statements,bi=0,Zi=-1,gs=[];if(ze){let _a=Vn(cs[bi],$l);_a&&(gs.push(_a),bi++),gs.push(cs[bi]),bi++,gs.push(t.createExpressionStatement(t.createAssignment(ze.left,Zs(Ji.name,je))))}for(;!Bf(a0(cs,Zi));)Zi--;jn(gs,cs,bi,Zi),Zi<-1&&jn(gs,cs,Zi+1);let Uo=Vn(a0(cs,Zi),Bf);for(let _a of Gn)Bf(_a)&&Uo?.expression&&!je(Uo.expression)?gs.push(Uo):gs.push(_a);return jn(gs,Yr,1),t.restoreOuterExpressions(re.expression,t.restoreOuterExpressions(Ji.initializer,t.restoreOuterExpressions(ze&&ze.right,t.updateCallExpression(Rt,t.restoreOuterExpressions(Rt.expression,t.updateFunctionExpression(Er,void 0,void 0,void 0,void 0,Er.parameters,void 0,t.updateBlock(Er.body,gs))),void 0,Rt.arguments))))}function bu(re,at){if(re.transformFlags&32768||re.expression.kind===108||H_(Wc(re.expression))){let{target:Kt,thisArg:Xt}=t.createCallBinding(re.expression,c);re.expression.kind===108&&dn(Xt,8);let Ar;if(re.transformFlags&32768?Ar=t.createFunctionApplyCall(w.checkDefined(et(Kt,V,gt)),re.expression.kind===108?Xt:w.checkDefined(et(Xt,U,gt)),x_(re.arguments,!0,!1,!1)):Ar=dt(t.createFunctionCallCall(w.checkDefined(et(Kt,V,gt)),re.expression.kind===108?Xt:w.checkDefined(et(Xt,U,gt)),Ur(re.arguments,U,gt)),re),re.expression.kind===108){let Yr=t.createLogicalOr(Ar,Pi());Ar=at?t.createAssignment(H(),Yr):Yr}return En(Ar,re)}return ok(re)&&(T|=131072),Ir(re,U,e)}function up(re){if(pt(re.arguments,Rp)){let{target:at,thisArg:Kt}=t.createCallBinding(t.createPropertyAccessExpression(re.expression,"bind"),c);return t.createNewExpression(t.createFunctionApplyCall(w.checkDefined(et(at,U,gt)),Kt,x_(t.createNodeArray([t.createVoidZero(),...re.arguments]),!0,!1,!1)),void 0,[])}return Ir(re,U,e)}function x_(re,at,Kt,Xt){let Ar=re.length,Yr=Qp(TW(re,Ee,(L,ze,Rt,Er)=>ze(L,Kt,Xt&&Er===Ar)));if(Yr.length===1){let L=Yr[0];if(at&&!_.downlevelIteration||FJ(L.expression)||OA(L.expression,"___spreadArray"))return L.expression}let Gn=n(),_i=Yr[0].kind!==0,Ji=_i?t.createArrayLiteralExpression():Yr[0].expression;for(let L=_i?0:1;L<Yr.length;L++){let ze=Yr[L];Ji=Gn.createSpreadArrayHelper(Ji,ze.expression,ze.kind===1&&!at)}return Ji}function Ee(re){return Rp(re)?Wt:ts}function Wt(re){return hr(re,sn)}function sn(re){w.assertNode(re,Rp);let at=et(re.expression,U,gt);w.assert(at);let Kt=OA(at,"___read"),Xt=Kt||FJ(at)?2:1;return _.downlevelIteration&&Xt===1&&!gu(at)&&!Kt&&(at=n().createReadHelper(at,void 0),Xt=2),sTe(Xt,at)}function ts(re,at,Kt){let Xt=t.createArrayLiteralExpression(Ur(t.createNodeArray(re,Kt),U,gt),at);return sTe(0,Xt)}function Js(re){return et(re.expression,U,gt)}function Ma(re){return dt(t.createStringLiteral(re.text),re)}function Wo(re){return re.hasExtendedUnicodeEscape?dt(t.createStringLiteral(re.text),re):re}function Qc(re){return re.numericLiteralFlags&384?dt(t.createNumericLiteral(re.text),re):re}function hc(re){return WU(e,re,U,h,I,1)}function yc(re){let at=t.createStringLiteral(re.head.text);for(let Kt of re.templateSpans){let Xt=[w.checkDefined(et(Kt.expression,U,gt))];Kt.literal.text.length>0&&Xt.push(t.createStringLiteral(Kt.literal.text)),at=t.createCallExpression(t.createPropertyAccessExpression(at,"concat"),void 0,Xt)}return dt(at,re)}function Yc(){return t.createUniqueName("_super",48)}function wl(re,at){let Kt=T&8&&!at?t.createPropertyAccessExpression(En(Yc(),re),"prototype"):Yc();return En(Kt,re),dl(Kt,re),Ia(Kt,re),Kt}function Il(re){return re.keywordToken===105&&re.name.escapedText==="target"?(T|=32768,t.createUniqueName("_newTarget",48)):re}function If(re,at,Kt){if(E&1&&Ns(at)){let Xt=F(32670,Na(at)&16?81:65);m(re,at,Kt),B(Xt,0,0);return}m(re,at,Kt)}function C_(){(E&2)===0&&(E|=2,e.enableSubstitution(80))}function Pd(){(E&1)===0&&(E|=1,e.enableSubstitution(110),e.enableEmitNotification(176),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(219),e.enableEmitNotification(218),e.enableEmitNotification(262))}function zf(re,at){return at=g(re,at),re===1?_p(at):je(at)?Qm(at):at}function Qm(re){if(E&2&&!xG(re)){let at=Cs(re,je);if(at&&Ih(at))return dt(t.getGeneratedNameForNode(at),re)}return re}function Ih(re){switch(re.parent.kind){case 208:case 263:case 266:case 260:return re.parent.name===re&&u.isDeclarationWithCollidingName(re.parent)}return!1}function _p(re){switch(re.kind){case 80:return B_(re);case 110:return Km(re)}return re}function B_(re){if(E&2&&!xG(re)){let at=u.getReferencedDeclarationWithCollidingName(re);if(at&&!(ii(at)&&o_(at,re)))return dt(t.getGeneratedNameForNode(vs(at)),re)}return re}function o_(re,at){let Kt=Cs(at);if(!Kt||Kt===re||Kt.end<=re.pos||Kt.pos>=re.end)return!1;let Xt=Gd(re);for(;Kt;){if(Kt===Xt||Kt===re)return!1;if(rl(Kt)&&Kt.parent===re)return!0;Kt=Kt.parent}return!1}function Km(re){return E&1&&T&16?dt(H(),re):re}function Jf(re,at){return Ks(at)?t.getInternalName(re):t.createPropertyAccessExpression(t.getInternalName(re),"prototype")}function Dh(re,at){if(!re||!at||pt(re.parameters))return!1;let Kt=_l(re.body.statements);if(!Kt||!So(Kt)||Kt.kind!==244)return!1;let Xt=Kt.expression;if(!So(Xt)||Xt.kind!==213)return!1;let Ar=Xt.expression;if(!So(Ar)||Ar.kind!==108)return!1;let Yr=hg(Xt.arguments);if(!Yr||!So(Yr)||Yr.kind!==230)return!1;let Gn=Yr.expression;return je(Gn)&&Gn.escapedText==="arguments"}}function LGe(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 Nae(e){let{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:i,endLexicalEnvironment:s,hoistFunctionDeclaration:o,hoistVariableDeclaration:c}=e,_=e.getCompilerOptions(),u=wa(_),g=e.getEmitResolver(),m=e.onSubstituteNode;e.onSubstituteNode=pe;let h,S,T,x,I,D,E,O,F,B,G=1,$,K,U,me,te=0,V=0,ne,ie,oe,de,ye,H,ve,Ge;return Xd(e,De);function De(Ee){if(Ee.isDeclarationFile||(Ee.transformFlags&2048)===0)return Ee;let Wt=Ir(Ee,se,e);return Th(Wt,e.readEmitHelpers()),Wt}function se(Ee){let Wt=Ee.transformFlags;return x?xe(Ee):T?_e(Ee):xo(Ee)&&Ee.asteriskToken?ct(Ee):Wt&2048?Ir(Ee,se,e):Ee}function xe(Ee){switch(Ee.kind){case 246:return Rs(Ee);case 247:return xr(Ee);case 255:return vt(Ee);case 256:return Ke(Ee);default:return _e(Ee)}}function _e(Ee){switch(Ee.kind){case 262:return le(Ee);case 218:return Je(Ee);case 177:case 178:return ee(Ee);case 243:return Ie(Ee);case 248:return Ye(Ee);case 249:return ae(Ee);case 252:return Xe(Ee);case 251:return Y(Ee);case 253:return Dt(Ee);default:return Ee.transformFlags&1048576?tt(Ee):Ee.transformFlags&4196352?Ir(Ee,se,e):Ee}}function tt(Ee){switch(Ee.kind){case 226:return Ce(Ee);case 356:return ur(Ee);case 227:return _t(Ee);case 229:return $t(Ee);case 209:return Hr(Ee);case 210:return _s(Ee);case 212:return At(Ee);case 213:return zn(Ee);case 214:return ns(Ee);default:return Ir(Ee,se,e)}}function ct(Ee){switch(Ee.kind){case 262:return le(Ee);case 218:return Je(Ee);default:return w.failBadSyntaxKind(Ee)}}function le(Ee){if(Ee.asteriskToken)Ee=En(dt(t.createFunctionDeclaration(Ee.modifiers,void 0,Ee.name,void 0,Cc(Ee.parameters,se,e),void 0,Ne(Ee.body)),Ee),Ee);else{let Wt=T,sn=x;T=!1,x=!1,Ee=Ir(Ee,se,e),T=Wt,x=sn}if(T){o(Ee);return}else return Ee}function Je(Ee){if(Ee.asteriskToken)Ee=En(dt(t.createFunctionExpression(void 0,void 0,Ee.name,void 0,Cc(Ee.parameters,se,e),void 0,Ne(Ee.body)),Ee),Ee);else{let Wt=T,sn=x;T=!1,x=!1,Ee=Ir(Ee,se,e),T=Wt,x=sn}return Ee}function ee(Ee){let Wt=T,sn=x;return T=!1,x=!1,Ee=Ir(Ee,se,e),T=Wt,x=sn,Ee}function Ne(Ee){let Wt=[],sn=T,ts=x,Js=I,Ma=D,Wo=E,Qc=O,hc=F,yc=B,Yc=G,wl=$,Il=K,If=U,C_=me;T=!0,x=!1,I=void 0,D=void 0,E=void 0,O=void 0,F=void 0,B=void 0,G=1,$=void 0,K=void 0,U=void 0,me=t.createTempVariable(void 0),i();let Pd=t.copyPrologue(Ee.statements,Wt,!1,se);Rn(Ee.statements,Pd);let zf=Oe();return _h(Wt,s()),Wt.push(t.createReturnStatement(zf)),T=sn,x=ts,I=Js,D=Ma,E=Wo,O=Qc,F=hc,B=yc,G=Yc,$=wl,K=Il,U=If,me=C_,dt(t.createBlock(Wt,Ee.multiLine),Ee)}function Ie(Ee){if(Ee.transformFlags&1048576){Zr(Ee.declarationList);return}else{if(Na(Ee)&2097152)return Ee;for(let sn of Ee.declarationList.declarations)c(sn.name);let Wt=mA(Ee.declarationList);return Wt.length===0?void 0:Ia(t.createExpressionStatement(t.inlineExpressions(hr(Wt,Zn))),Ee)}}function Ce(Ee){let Wt=Lz(Ee);switch(Wt){case 0:return bt(Ee);case 1:return Ve(Ee);default:return w.assertNever(Wt)}}function Ve(Ee){let{left:Wt,right:sn}=Ee;if(Pe(sn)){let ts;switch(Wt.kind){case 211:ts=t.updatePropertyAccessExpression(Wt,q(w.checkDefined(et(Wt.expression,se,M_))),Wt.name);break;case 212:ts=t.updateElementAccessExpression(Wt,q(w.checkDefined(et(Wt.expression,se,M_))),q(w.checkDefined(et(Wt.argumentExpression,se,gt))));break;default:ts=w.checkDefined(et(Wt,se,gt));break}let Js=Ee.operatorToken.kind;return lE(Js)?dt(t.createAssignment(ts,dt(t.createBinaryExpression(q(ts),uE(Js),w.checkDefined(et(sn,se,gt))),Ee)),Ee):t.updateBinaryExpression(Ee,ts,Ee.operatorToken,w.checkDefined(et(sn,se,gt)))}return Ir(Ee,se,e)}function bt(Ee){return Pe(Ee.right)?wre(Ee.operatorToken.kind)?Or(Ee):Ee.operatorToken.kind===28?zt(Ee):t.updateBinaryExpression(Ee,q(w.checkDefined(et(Ee.left,se,gt))),Ee.operatorToken,w.checkDefined(et(Ee.right,se,gt))):Ir(Ee,se,e)}function zt(Ee){let Wt=[];return sn(Ee.left),sn(Ee.right),t.inlineExpressions(Wt);function sn(ts){vn(ts)&&ts.operatorToken.kind===28?(sn(ts.left),sn(ts.right)):(Pe(ts)&&Wt.length>0&&(N(1,[t.createExpressionStatement(t.inlineExpressions(Wt))]),Wt=[]),Wt.push(w.checkDefined(et(ts,se,gt))))}}function ur(Ee){let Wt=[];for(let sn of Ee.elements)vn(sn)&&sn.operatorToken.kind===28?Wt.push(zt(sn)):(Pe(sn)&&Wt.length>0&&(N(1,[t.createExpressionStatement(t.inlineExpressions(Wt))]),Wt=[]),Wt.push(w.checkDefined(et(sn,se,gt))));return t.inlineExpressions(Wt)}function Or(Ee){let Wt=jt(),sn=yt();return Ba(sn,w.checkDefined(et(Ee.left,se,gt)),Ee.left),Ee.operatorToken.kind===56?fo(Wt,sn,Ee.left):Ht(Wt,sn,Ee.left),Ba(sn,w.checkDefined(et(Ee.right,se,gt)),Ee.right),we(Wt),sn}function _t(Ee){if(Pe(Ee.whenTrue)||Pe(Ee.whenFalse)){let Wt=jt(),sn=jt(),ts=yt();return fo(Wt,w.checkDefined(et(Ee.condition,se,gt)),Ee.condition),Ba(ts,w.checkDefined(et(Ee.whenTrue,se,gt)),Ee.whenTrue),La(sn),we(Wt),Ba(ts,w.checkDefined(et(Ee.whenFalse,se,gt)),Ee.whenFalse),we(sn),ts}return Ir(Ee,se,e)}function $t(Ee){let Wt=jt(),sn=et(Ee.expression,se,gt);if(Ee.asteriskToken){let ts=(Na(Ee.expression)&8388608)===0?dt(n().createValuesHelper(sn),Ee):sn;sl(ts,Ee)}else wc(sn,Ee);return we(Wt),Cf(Ee)}function Hr(Ee){return hi(Ee.elements,void 0,void 0,Ee.multiLine)}function hi(Ee,Wt,sn,ts){let Js=kt(Ee),Ma;if(Js>0){Ma=yt();let hc=Ur(Ee,se,gt,0,Js);Ba(Ma,t.createArrayLiteralExpression(Wt?[Wt,...hc]:hc)),Wt=void 0}let Wo=d_(Ee,Qc,[],Js);return Ma?t.createArrayConcatCall(Ma,[t.createArrayLiteralExpression(Wo,ts)]):dt(t.createArrayLiteralExpression(Wt?[Wt,...Wo]:Wo,ts),sn);function Qc(hc,yc){if(Pe(yc)&&hc.length>0){let Yc=Ma!==void 0;Ma||(Ma=yt()),Ba(Ma,Yc?t.createArrayConcatCall(Ma,[t.createArrayLiteralExpression(hc,ts)]):t.createArrayLiteralExpression(Wt?[Wt,...hc]:hc,ts)),Wt=void 0,hc=[]}return hc.push(w.checkDefined(et(yc,se,gt))),hc}}function _s(Ee){let Wt=Ee.properties,sn=Ee.multiLine,ts=kt(Wt),Js=yt();Ba(Js,t.createObjectLiteralExpression(Ur(Wt,se,iy,0,ts),sn));let Ma=d_(Wt,Wo,[],ts);return Ma.push(sn?Ju(Xa(dt(t.cloneNode(Js),Js),Js.parent)):Js),t.inlineExpressions(Ma);function Wo(Qc,hc){Pe(hc)&&Qc.length>0&&(Ys(t.createExpressionStatement(t.inlineExpressions(Qc))),Qc=[]);let yc=wie(t,Ee,hc,Js),Yc=et(yc,se,gt);return Yc&&(sn&&Ju(Yc),Qc.push(Yc)),Qc}}function At(Ee){return Pe(Ee.argumentExpression)?t.updateElementAccessExpression(Ee,q(w.checkDefined(et(Ee.expression,se,M_))),w.checkDefined(et(Ee.argumentExpression,se,gt))):Ir(Ee,se,e)}function zn(Ee){if(!jf(Ee)&&or(Ee.arguments,Pe)){let{target:Wt,thisArg:sn}=t.createCallBinding(Ee.expression,c,u,!0);return En(dt(t.createFunctionApplyCall(q(w.checkDefined(et(Wt,se,M_))),sn,hi(Ee.arguments)),Ee),Ee)}return Ir(Ee,se,e)}function ns(Ee){if(or(Ee.arguments,Pe)){let{target:Wt,thisArg:sn}=t.createCallBinding(t.createPropertyAccessExpression(Ee.expression,"bind"),c);return En(dt(t.createNewExpression(t.createFunctionApplyCall(q(w.checkDefined(et(Wt,se,gt))),sn,hi(Ee.arguments,t.createVoidZero())),void 0,[]),Ee),Ee)}return Ir(Ee,se,e)}function Rn(Ee,Wt=0){let sn=Ee.length;for(let ts=Wt;ts<sn;ts++)ui(Ee[ts])}function hn(Ee){Fs(Ee)?Rn(Ee.statements):ui(Ee)}function ui(Ee){let Wt=x;x||(x=Pe(Ee)),Ue(Ee),x=Wt}function Ue(Ee){switch(Ee.kind){case 241:return ht(Ee);case 244:return sr(Ee);case 245:return Xn(Ee);case 246:return Pi(Ee);case 247:return oa(Ee);case 248:return xs(Ee);case 249:return Nt(Ee);case 251:return lt(Ee);case 252:return Ae(Ee);case 253:return st(Ee);case 254:return Fe(Ee);case 255:return St(Ee);case 256:return Mt(Ee);case 257:return Vt(Ee);case 258:return on(Ee);default:return Ys(et(Ee,se,Ii))}}function ht(Ee){Pe(Ee)?Rn(Ee.statements):Ys(et(Ee,se,Ii))}function sr(Ee){Ys(et(Ee,se,Ii))}function Zr(Ee){for(let Ma of Ee.declarations){let Wo=t.cloneNode(Ma.name);dl(Wo,Ma.name),c(Wo)}let Wt=mA(Ee),sn=Wt.length,ts=0,Js=[];for(;ts<sn;){for(let Ma=ts;Ma<sn;Ma++){let Wo=Wt[Ma];if(Pe(Wo.initializer)&&Js.length>0)break;Js.push(Zn(Wo))}Js.length&&(Ys(t.createExpressionStatement(t.inlineExpressions(Js))),ts+=Js.length,Js=[])}}function Zn(Ee){return Ia(t.createAssignment(Ia(t.cloneNode(Ee.name),Ee.name),w.checkDefined(et(Ee.initializer,se,gt))),Ee)}function Xn(Ee){if(Pe(Ee))if(Pe(Ee.thenStatement)||Pe(Ee.elseStatement)){let Wt=jt(),sn=Ee.elseStatement?jt():void 0;fo(Ee.elseStatement?sn:Wt,w.checkDefined(et(Ee.expression,se,gt)),Ee.expression),hn(Ee.thenStatement),Ee.elseStatement&&(La(Wt),we(sn),hn(Ee.elseStatement)),we(Wt)}else Ys(et(Ee,se,Ii));else Ys(et(Ee,se,Ii))}function Pi(Ee){if(Pe(Ee)){let Wt=jt(),sn=jt();Gt(Wt),we(sn),hn(Ee.statement),we(Wt),Ht(sn,w.checkDefined(et(Ee.expression,se,gt))),dr()}else Ys(et(Ee,se,Ii))}function Rs(Ee){return x?(ar(),Ee=Ir(Ee,se,e),dr(),Ee):Ir(Ee,se,e)}function oa(Ee){if(Pe(Ee)){let Wt=jt(),sn=Gt(Wt);we(Wt),fo(sn,w.checkDefined(et(Ee.expression,se,gt))),hn(Ee.statement),La(Wt),dr()}else Ys(et(Ee,se,Ii))}function xr(Ee){return x?(ar(),Ee=Ir(Ee,se,e),dr(),Ee):Ir(Ee,se,e)}function xs(Ee){if(Pe(Ee)){let Wt=jt(),sn=jt(),ts=Gt(sn);if(Ee.initializer){let Js=Ee.initializer;au(Js)?Zr(Js):Ys(dt(t.createExpressionStatement(w.checkDefined(et(Js,se,gt))),Js))}we(Wt),Ee.condition&&fo(ts,w.checkDefined(et(Ee.condition,se,gt))),hn(Ee.statement),we(sn),Ee.incrementor&&Ys(dt(t.createExpressionStatement(w.checkDefined(et(Ee.incrementor,se,gt))),Ee.incrementor)),La(Wt),dr()}else Ys(et(Ee,se,Ii))}function Ye(Ee){x&&ar();let Wt=Ee.initializer;if(Wt&&au(Wt)){for(let ts of Wt.declarations)c(ts.name);let sn=mA(Wt);Ee=t.updateForStatement(Ee,sn.length>0?t.inlineExpressions(hr(sn,Zn)):void 0,et(Ee.condition,se,gt),et(Ee.incrementor,se,gt),S_(Ee.statement,se,e))}else Ee=Ir(Ee,se,e);return x&&dr(),Ee}function Nt(Ee){if(Pe(Ee)){let Wt=yt(),sn=yt(),ts=yt(),Js=t.createLoopVariable(),Ma=Ee.initializer;c(Js),Ba(Wt,w.checkDefined(et(Ee.expression,se,gt))),Ba(sn,t.createArrayLiteralExpression()),Ys(t.createForInStatement(ts,Wt,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(sn,"push"),void 0,[ts])))),Ba(Js,t.createNumericLiteral(0));let Wo=jt(),Qc=jt(),hc=Gt(Qc);we(Wo),fo(hc,t.createLessThan(Js,t.createPropertyAccessExpression(sn,"length"))),Ba(ts,t.createElementAccessExpression(sn,Js)),fo(Qc,t.createBinaryExpression(ts,103,Wt));let yc;if(au(Ma)){for(let Yc of Ma.declarations)c(Yc.name);yc=t.cloneNode(Ma.declarations[0].name)}else yc=w.checkDefined(et(Ma,se,gt)),w.assert(M_(yc));Ba(yc,ts),hn(Ee.statement),we(Qc),Ys(t.createExpressionStatement(t.createPostfixIncrement(Js))),La(Wo),dr()}else Ys(et(Ee,se,Ii))}function ae(Ee){x&&ar();let Wt=Ee.initializer;if(au(Wt)){for(let sn of Wt.declarations)c(sn.name);Ee=t.updateForInStatement(Ee,Wt.declarations[0].name,w.checkDefined(et(Ee.expression,se,gt)),w.checkDefined(et(Ee.statement,se,Ii,t.liftToBlock)))}else Ee=Ir(Ee,se,e);return x&&dr(),Ee}function lt(Ee){let Wt=bs(Ee.label?Ln(Ee.label):void 0);Wt>0?La(Wt,Ee):Ys(Ee)}function Y(Ee){if(x){let Wt=bs(Ee.label&&Ln(Ee.label));if(Wt>0)return Oa(Wt,Ee)}return Ir(Ee,se,e)}function Ae(Ee){let Wt=xi(Ee.label?Ln(Ee.label):void 0);Wt>0?La(Wt,Ee):Ys(Ee)}function Xe(Ee){if(x){let Wt=xi(Ee.label&&Ln(Ee.label));if(Wt>0)return Oa(Wt,Ee)}return Ir(Ee,se,e)}function st(Ee){cu(et(Ee.expression,se,gt),Ee)}function Dt(Ee){return Zo(et(Ee.expression,se,gt),Ee)}function Fe(Ee){Pe(Ee)?($r(q(w.checkDefined(et(Ee.expression,se,gt)))),hn(Ee.statement),it()):Ys(et(Ee,se,Ii))}function St(Ee){if(Pe(Ee.caseBlock)){let Wt=Ee.caseBlock,sn=Wt.clauses.length,ts=kr(),Js=q(w.checkDefined(et(Ee.expression,se,gt))),Ma=[],Wo=-1;for(let yc=0;yc<sn;yc++){let Yc=Wt.clauses[yc];Ma.push(jt()),Yc.kind===297&&Wo===-1&&(Wo=yc)}let Qc=0,hc=[];for(;Qc<sn;){let yc=0;for(let Yc=Qc;Yc<sn;Yc++){let wl=Wt.clauses[Yc];if(wl.kind===296){if(Pe(wl.expression)&&hc.length>0)break;hc.push(t.createCaseClause(w.checkDefined(et(wl.expression,se,gt)),[Oa(Ma[Yc],wl.expression)]))}else yc++}hc.length&&(Ys(t.createSwitchStatement(Js,t.createCaseBlock(hc))),Qc+=hc.length,hc=[]),yc>0&&(Qc+=yc,yc=0)}Wo>=0?La(Ma[Wo]):La(ts);for(let yc=0;yc<sn;yc++)we(Ma[yc]),Rn(Wt.clauses[yc].statements);tr()}else Ys(et(Ee,se,Ii))}function vt(Ee){return x&&Sr(),Ee=Ir(Ee,se,e),x&&tr(),Ee}function Mt(Ee){Pe(Ee)?(zs(Ln(Ee.label)),hn(Ee.statement),ta()):Ys(et(Ee,se,Ii))}function Ke(Ee){return x&&si(Ln(Ee.label)),Ee=Ir(Ee,se,e),x&&ta(),Ee}function Vt(Ee){ec(w.checkDefined(et(Ee.expression??t.createVoidZero(),se,gt)),Ee)}function on(Ee){Pe(Ee)?(Tt(),hn(Ee.tryBlock),Ee.catchClause&&(Ut(Ee.catchClause.variableDeclaration),hn(Ee.catchClause.block)),Ee.finallyBlock&&(Ot(),hn(Ee.finallyBlock)),vr()):Ys(Ir(Ee,se,e))}function Pe(Ee){return!!Ee&&(Ee.transformFlags&1048576)!==0}function kt(Ee){let Wt=Ee.length;for(let sn=0;sn<Wt;sn++)if(Pe(Ee[sn]))return sn;return-1}function pe(Ee,Wt){return Wt=m(Ee,Wt),Ee===1?j(Wt):Wt}function j(Ee){return je(Ee)?Re(Ee):Ee}function Re(Ee){if(!Ko(Ee)&&h&&h.has(Ln(Ee))){let Wt=ic(Ee);if(je(Wt)&&Wt.parent){let sn=g.getReferencedValueDeclaration(Wt);if(sn){let ts=S[T_(sn)];if(ts){let Js=Xa(dt(t.cloneNode(ts),ts),ts.parent);return Ia(Js,Ee),dl(Js,Ee),Js}}}}return Ee}function q(Ee){if(Ko(Ee)||Na(Ee)&8192)return Ee;let Wt=t.createTempVariable(c);return Ba(Wt,Ee,Ee),Wt}function yt(Ee){let Wt=Ee?t.createUniqueName(Ee):t.createTempVariable(void 0);return c(Wt),Wt}function jt(){F||(F=[]);let Ee=G;return G++,F[Ee]=-1,Ee}function we(Ee){w.assert(F!==void 0,"No labels were defined."),F[Ee]=$?$.length:0}function ut(Ee){I||(I=[],E=[],D=[],O=[]);let Wt=E.length;return E[Wt]=0,D[Wt]=$?$.length:0,I[Wt]=Ee,O.push(Ee),Wt}function Qt(){let Ee=en();if(Ee===void 0)return w.fail("beginBlock was never called.");let Wt=E.length;return E[Wt]=1,D[Wt]=$?$.length:0,I[Wt]=Ee,O.pop(),Ee}function en(){return zo(O)}function Pr(){let Ee=en();return Ee&&Ee.kind}function $r(Ee){let Wt=jt(),sn=jt();we(Wt),ut({kind:1,expression:Ee,startLabel:Wt,endLabel:sn})}function it(){w.assert(Pr()===1);let Ee=Qt();we(Ee.endLabel)}function Tt(){let Ee=jt(),Wt=jt();return we(Ee),ut({kind:0,state:0,startLabel:Ee,endLabel:Wt}),ms(),Wt}function Ut(Ee){w.assert(Pr()===0);let Wt;if(Ko(Ee.name))Wt=Ee.name,c(Ee.name);else{let Ma=Ln(Ee.name);Wt=yt(Ma),h||(h=new Map,S=[],e.enableSubstitution(80)),h.set(Ma,!0),S[T_(Ee)]=Wt}let sn=en();w.assert(sn.state<1);let ts=sn.endLabel;La(ts);let Js=jt();we(Js),sn.state=1,sn.catchVariable=Wt,sn.catchLabel=Js,Ba(Wt,t.createCallExpression(t.createPropertyAccessExpression(me,"sent"),void 0,[])),ms()}function Ot(){w.assert(Pr()===0);let Ee=en();w.assert(Ee.state<2);let Wt=Ee.endLabel;La(Wt);let sn=jt();we(sn),Ee.state=2,Ee.finallyLabel=sn}function vr(){w.assert(Pr()===0);let Ee=Qt();Ee.state<2?La(Ee.endLabel):Ic(),we(Ee.endLabel),ms(),Ee.state=3}function ar(){ut({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function Gt(Ee){let Wt=jt();return ut({kind:3,isScript:!1,breakLabel:Wt,continueLabel:Ee}),Wt}function dr(){w.assert(Pr()===3);let Ee=Qt(),Wt=Ee.breakLabel;Ee.isScript||we(Wt)}function Sr(){ut({kind:2,isScript:!0,breakLabel:-1})}function kr(){let Ee=jt();return ut({kind:2,isScript:!1,breakLabel:Ee}),Ee}function tr(){w.assert(Pr()===2);let Ee=Qt(),Wt=Ee.breakLabel;Ee.isScript||we(Wt)}function si(Ee){ut({kind:4,isScript:!0,labelText:Ee,breakLabel:-1})}function zs(Ee){let Wt=jt();ut({kind:4,isScript:!1,labelText:Ee,breakLabel:Wt})}function ta(){w.assert(Pr()===4);let Ee=Qt();Ee.isScript||we(Ee.breakLabel)}function Os(Ee){return Ee.kind===2||Ee.kind===3}function qc(Ee){return Ee.kind===4}function uc(Ee){return Ee.kind===3}function Bc(Ee,Wt){for(let sn=Wt;sn>=0;sn--){let ts=O[sn];if(qc(ts)){if(ts.labelText===Ee)return!0}else break}return!1}function xi(Ee){if(O)if(Ee)for(let Wt=O.length-1;Wt>=0;Wt--){let sn=O[Wt];if(qc(sn)&&sn.labelText===Ee)return sn.breakLabel;if(Os(sn)&&Bc(Ee,Wt-1))return sn.breakLabel}else for(let Wt=O.length-1;Wt>=0;Wt--){let sn=O[Wt];if(Os(sn))return sn.breakLabel}return 0}function bs(Ee){if(O)if(Ee)for(let Wt=O.length-1;Wt>=0;Wt--){let sn=O[Wt];if(uc(sn)&&Bc(Ee,Wt-1))return sn.continueLabel}else for(let Wt=O.length-1;Wt>=0;Wt--){let sn=O[Wt];if(uc(sn))return sn.continueLabel}return 0}function il(Ee){if(Ee!==void 0&&Ee>0){B===void 0&&(B=[]);let Wt=t.createNumericLiteral(Number.MAX_SAFE_INTEGER);return B[Ee]===void 0?B[Ee]=[Wt]:B[Ee].push(Wt),Wt}return t.createOmittedExpression()}function Qo(Ee){let Wt=t.createNumericLiteral(Ee);return FA(Wt,3,LGe(Ee)),Wt}function Oa(Ee,Wt){return w.assertLessThan(0,Ee,"Invalid label"),dt(t.createReturnStatement(t.createArrayLiteralExpression([Qo(3),il(Ee)])),Wt)}function Zo(Ee,Wt){return dt(t.createReturnStatement(t.createArrayLiteralExpression(Ee?[Qo(2),Ee]:[Qo(2)])),Wt)}function Cf(Ee){return dt(t.createCallExpression(t.createPropertyAccessExpression(me,"sent"),void 0,[]),Ee)}function ms(){N(0)}function Ys(Ee){Ee?N(1,[Ee]):ms()}function Ba(Ee,Wt,sn){N(2,[Ee,Wt],sn)}function La(Ee,Wt){N(3,[Ee],Wt)}function Ht(Ee,Wt,sn){N(4,[Ee,Wt],sn)}function fo(Ee,Wt,sn){N(5,[Ee,Wt],sn)}function sl(Ee,Wt){N(7,[Ee],Wt)}function wc(Ee,Wt){N(6,[Ee],Wt)}function cu(Ee,Wt){N(8,[Ee],Wt)}function ec(Ee,Wt){N(9,[Ee],Wt)}function Ic(){N(10)}function N(Ee,Wt,sn){$===void 0&&($=[],K=[],U=[]),F===void 0&&we(jt());let ts=$.length;$[ts]=Ee,K[ts]=Wt,U[ts]=sn}function Oe(){te=0,V=0,ne=void 0,ie=!1,oe=!1,de=void 0,ye=void 0,H=void 0,ve=void 0,Ge=void 0;let Ee=ft();return n().createGeneratorHelper(dn(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,me)],void 0,t.createBlock(Ee,Ee.length>0)),1048576))}function ft(){if($){for(let Ee=0;Ee<$.length;Ee++)io(Ee);Br($.length)}else Br(0);if(de){let Ee=t.createPropertyAccessExpression(me,"label"),Wt=t.createSwitchStatement(Ee,t.createCaseBlock(de));return[Ju(Wt)]}return ye||[]}function qt(){ye&&(pn(!ie),ie=!1,oe=!1,V++)}function Br(Ee){Hn(Ee)&&(Lr(Ee),Ge=void 0,$c(void 0,void 0)),ye&&de&&pn(!1),Ci()}function Hn(Ee){if(!oe)return!0;if(!F||!B)return!1;for(let Wt=0;Wt<F.length;Wt++)if(F[Wt]===Ee&&B[Wt])return!0;return!1}function pn(Ee){if(de||(de=[]),ye){if(Ge)for(let Wt=Ge.length-1;Wt>=0;Wt--){let sn=Ge[Wt];ye=[t.createWithStatement(sn.expression,t.createBlock(ye))]}if(ve){let{startLabel:Wt,catchLabel:sn,finallyLabel:ts,endLabel:Js}=ve;ye.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(me,"trys"),"push"),void 0,[t.createArrayLiteralExpression([il(Wt),il(sn),il(ts),il(Js)])]))),ve=void 0}Ee&&ye.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(me,"label"),t.createNumericLiteral(V+1))))}de.push(t.createCaseClause(t.createNumericLiteral(V),ye||[])),ye=void 0}function Lr(Ee){if(F)for(let Wt=0;Wt<F.length;Wt++)F[Wt]===Ee&&(qt(),ne===void 0&&(ne=[]),ne[V]===void 0?ne[V]=[Wt]:ne[V].push(Wt))}function Ci(){if(B!==void 0&&ne!==void 0)for(let Ee=0;Ee<ne.length;Ee++){let Wt=ne[Ee];if(Wt!==void 0)for(let sn of Wt){let ts=B[sn];if(ts!==void 0)for(let Js of ts)Js.text=String(Ee)}}}function Ai(Ee){if(I)for(;te<E.length&&D[te]<=Ee;te++){let Wt=I[te],sn=E[te];switch(Wt.kind){case 0:sn===0?(H||(H=[]),ye||(ye=[]),H.push(ve),ve=Wt):sn===1&&(ve=H.pop());break;case 1:sn===0?(Ge||(Ge=[]),Ge.push(Wt)):sn===1&&Ge.pop();break}}}function io(Ee){if(Lr(Ee),Ai(Ee),ie)return;ie=!1,oe=!1;let Wt=$[Ee];if(Wt===0)return;if(Wt===10)return x_();let sn=K[Ee];if(Wt===1)return Ta(sn[0]);let ts=U[Ee];switch(Wt){case 2:return Go(sn[0],sn[1],ts);case 3:return Eo(sn[0],ts);case 4:return Hc(sn[0],sn[1],ts);case 5:return wf(sn[0],sn[1],ts);case 6:return bu(sn[0],ts);case 7:return up(sn[0],ts);case 8:return $c(sn[0],ts);case 9:return Dc(sn[0],ts)}}function Ta(Ee){Ee&&(ye?ye.push(Ee):ye=[Ee])}function Go(Ee,Wt,sn){Ta(dt(t.createExpressionStatement(t.createAssignment(Ee,Wt)),sn))}function Dc(Ee,Wt){ie=!0,oe=!0,Ta(dt(t.createThrowStatement(Ee),Wt))}function $c(Ee,Wt){ie=!0,oe=!0,Ta(dn(dt(t.createReturnStatement(t.createArrayLiteralExpression(Ee?[Qo(2),Ee]:[Qo(2)])),Wt),768))}function Eo(Ee,Wt){ie=!0,Ta(dn(dt(t.createReturnStatement(t.createArrayLiteralExpression([Qo(3),il(Ee)])),Wt),768))}function Hc(Ee,Wt,sn){Ta(dn(t.createIfStatement(Wt,dn(dt(t.createReturnStatement(t.createArrayLiteralExpression([Qo(3),il(Ee)])),sn),768)),1))}function wf(Ee,Wt,sn){Ta(dn(t.createIfStatement(t.createLogicalNot(Wt),dn(dt(t.createReturnStatement(t.createArrayLiteralExpression([Qo(3),il(Ee)])),sn),768)),1))}function bu(Ee,Wt){ie=!0,Ta(dn(dt(t.createReturnStatement(t.createArrayLiteralExpression(Ee?[Qo(4),Ee]:[Qo(4)])),Wt),768))}function up(Ee,Wt){ie=!0,Ta(dn(dt(t.createReturnStatement(t.createArrayLiteralExpression([Qo(5),Ee])),Wt),768))}function x_(){ie=!0,Ta(t.createReturnStatement(t.createArrayLiteralExpression([Qo(7)])))}}function zU(e){function t(pe){switch(pe){case 2:return K;case 3:return U;default:return $}}let{factory:n,getEmitHelperFactory:i,startLexicalEnvironment:s,endLexicalEnvironment:o,hoistVariableDeclaration:c}=e,_=e.getCompilerOptions(),u=e.getEmitResolver(),g=e.getEmitHost(),m=wa(_),h=n_(_),S=e.onSubstituteNode,T=e.onEmitNode;e.onSubstituteNode=St,e.onEmitNode=Fe,e.enableSubstitution(213),e.enableSubstitution(215),e.enableSubstitution(80),e.enableSubstitution(226),e.enableSubstitution(304),e.enableEmitNotification(307);let x=[],I,D,E,O=[],F;return Xd(e,B);function B(pe){if(pe.isDeclarationFile||!(jw(pe,_)||pe.transformFlags&8388608||wp(pe)&&TO(_)&&_.outFile))return pe;I=pe,D=MU(e,pe),x[T_(pe)]=D,_.rewriteRelativeImportExtensions&&$O(pe,!1,!1,q=>{(!Ha(q.arguments[0])||i4(q.arguments[0].text,_))&&(E=jr(E,q))});let Re=t(h)(pe);return I=void 0,D=void 0,F=!1,Re}function G(){return vh(I.fileName)&&I.commonJsModuleIndicator&&(!I.externalModuleIndicator||I.externalModuleIndicator===!0)?!1:!!(!D.exportEquals&&xl(I))}function $(pe){s();let j=[],Re=Pu(_,"alwaysStrict")||xl(I),q=n.copyPrologue(pe.statements,j,Re&&!wp(pe),ie);if(G()&&jr(j,Ae()),pt(D.exportedNames))for(let we=0;we<D.exportedNames.length;we+=50)jr(j,n.createExpressionStatement(d_(D.exportedNames.slice(we,we+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(Ln(Qt))),ut),n.createVoidZero())));for(let jt of D.exportedFunctions)ae(j,jt);jr(j,et(D.externalHelpersImportDeclaration,ie,Ii)),jn(j,Ur(pe.statements,ie,Ii,q)),ne(j,!1),_h(j,o());let yt=n.updateSourceFile(pe,dt(n.createNodeArray(j),pe.statements));return Th(yt,e.readEmitHelpers()),yt}function K(pe){let j=n.createIdentifier("define"),Re=aM(n,pe,g,_),q=wp(pe)&&pe,{aliasedModuleNames:yt,unaliasedModuleNames:jt,importAliasNames:we}=me(pe,!0),ut=n.updateSourceFile(pe,dt(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(j,void 0,[...Re?[Re]:[],n.createArrayLiteralExpression(q?qe:[n.createStringLiteral("require"),n.createStringLiteral("exports"),...yt,...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"),...we],void 0,V(pe))]))]),pe.statements));return Th(ut,e.readEmitHelpers()),ut}function U(pe){let{aliasedModuleNames:j,unaliasedModuleNames:Re,importAliasNames:q}=me(pe,!1),yt=aM(n,pe,g,_),jt=n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,"factory")],void 0,dt(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")]))]),dn(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,[...yt?[yt]:[],n.createArrayLiteralExpression([n.createStringLiteral("require"),n.createStringLiteral("exports"),...j,...Re]),n.createIdentifier("factory")]))])))],!0),void 0)),we=n.updateSourceFile(pe,dt(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(pe))]))]),pe.statements));return Th(we,e.readEmitHelpers()),we}function me(pe,j){let Re=[],q=[],yt=[];for(let jt of pe.amdDependencies)jt.name?(Re.push(n.createStringLiteral(jt.path)),yt.push(n.createParameterDeclaration(void 0,void 0,jt.name))):q.push(n.createStringLiteral(jt.path));for(let jt of D.externalImports){let we=V2(n,jt,I,g,u,_),ut=xI(n,jt,I);we&&(j&&ut?(dn(ut,8),Re.push(we),yt.push(n.createParameterDeclaration(void 0,void 0,ut))):q.push(we))}return{aliasedModuleNames:Re,unaliasedModuleNames:q,importAliasNames:yt}}function te(pe){if(Ol(pe)||Xc(pe)||!V2(n,pe,I,g,u,_))return;let j=xI(n,pe,I),Re=Rn(pe,j);if(Re!==j)return n.createExpressionStatement(n.createAssignment(j,Re))}function V(pe){s();let j=[],Re=n.copyPrologue(pe.statements,j,!0,ie);G()&&jr(j,Ae()),pt(D.exportedNames)&&jr(j,n.createExpressionStatement(d_(D.exportedNames,(yt,jt)=>jt.kind===11?n.createAssignment(n.createElementAccessExpression(n.createIdentifier("exports"),n.createStringLiteral(jt.text)),yt):n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.createIdentifier(Ln(jt))),yt),n.createVoidZero())));for(let yt of D.exportedFunctions)ae(j,yt);jr(j,et(D.externalHelpersImportDeclaration,ie,Ii)),h===2&&jn(j,Vi(D.externalImports,te)),jn(j,Ur(pe.statements,ie,Ii,Re)),ne(j,!0),_h(j,o());let q=n.createBlock(j,!0);return F&&E2(q,jGe),q}function ne(pe,j){if(D.exportEquals){let Re=et(D.exportEquals.expression,ye,gt);if(Re)if(j){let q=n.createReturnStatement(Re);dt(q,D.exportEquals),dn(q,3840),pe.push(q)}else{let q=n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),Re));dt(q,D.exportEquals),dn(q,3072),pe.push(q)}}}function ie(pe){switch(pe.kind){case 272:return hn(pe);case 271:return Ue(pe);case 278:return ht(pe);case 277:return sr(pe);default:return oe(pe)}}function oe(pe){switch(pe.kind){case 243:return Xn(pe);case 262:return Zr(pe);case 263:return Zn(pe);case 248:return De(pe,!0);case 249:return se(pe);case 250:return xe(pe);case 246:return _e(pe);case 247:return tt(pe);case 256:return ct(pe);case 254:return le(pe);case 245:return Je(pe);case 255:return ee(pe);case 269:return Ne(pe);case 296:return Ie(pe);case 297:return Ce(pe);case 258:return Ve(pe);case 299:return bt(pe);case 241:return zt(pe);default:return ye(pe)}}function de(pe,j){if(!(pe.transformFlags&276828160)&&!E?.length)return pe;switch(pe.kind){case 248:return De(pe,!1);case 244:return ur(pe);case 217:return Or(pe,j);case 355:return _t(pe,j);case 213:let Re=pe===_l(E);if(Re&&E.shift(),jf(pe)&&g.shouldTransformImportCall(I))return hi(pe,Re);if(Re)return Hr(pe);break;case 226:if(rv(pe))return Ge(pe,j);break;case 224:case 225:return $t(pe,j)}return Ir(pe,ye,e)}function ye(pe){return de(pe,!1)}function H(pe){return de(pe,!0)}function ve(pe){if(Sa(pe))for(let j of pe.properties)switch(j.kind){case 303:if(ve(j.initializer))return!0;break;case 304:if(ve(j.name))return!0;break;case 305:if(ve(j.expression))return!0;break;case 174:case 177:case 178:return!1;default:w.assertNever(j,"Unhandled object member kind")}else if(gu(pe)){for(let j of pe.elements)if(Rp(j)){if(ve(j.expression))return!0}else if(ve(j))return!0}else if(je(pe))return Dr(kt(pe))>(h7(pe)?1:0);return!1}function Ge(pe,j){return ve(pe.left)?jk(pe,ye,e,0,!j,Pi):Ir(pe,ye,e)}function De(pe,j){if(j&&pe.initializer&&au(pe.initializer)&&!(pe.initializer.flags&7)){let Re=Ye(void 0,pe.initializer,!1);if(Re){let q=[],yt=et(pe.initializer,H,au),jt=n.createVariableStatement(void 0,yt);q.push(jt),jn(q,Re);let we=et(pe.condition,ye,gt),ut=et(pe.incrementor,H,gt),Qt=S_(pe.statement,j?oe:ye,e);return q.push(n.updateForStatement(pe,void 0,we,ut,Qt)),q}}return n.updateForStatement(pe,et(pe.initializer,H,xp),et(pe.condition,ye,gt),et(pe.incrementor,H,gt),S_(pe.statement,j?oe:ye,e))}function se(pe){if(au(pe.initializer)&&!(pe.initializer.flags&7)){let j=Ye(void 0,pe.initializer,!0);if(pt(j)){let Re=et(pe.initializer,H,xp),q=et(pe.expression,ye,gt),yt=S_(pe.statement,oe,e),jt=Fs(yt)?n.updateBlock(yt,[...j,...yt.statements]):n.createBlock([...j,yt],!0);return n.updateForInStatement(pe,Re,q,jt)}}return n.updateForInStatement(pe,et(pe.initializer,H,xp),et(pe.expression,ye,gt),S_(pe.statement,oe,e))}function xe(pe){if(au(pe.initializer)&&!(pe.initializer.flags&7)){let j=Ye(void 0,pe.initializer,!0),Re=et(pe.initializer,H,xp),q=et(pe.expression,ye,gt),yt=S_(pe.statement,oe,e);return pt(j)&&(yt=Fs(yt)?n.updateBlock(yt,[...j,...yt.statements]):n.createBlock([...j,yt],!0)),n.updateForOfStatement(pe,pe.awaitModifier,Re,q,yt)}return n.updateForOfStatement(pe,pe.awaitModifier,et(pe.initializer,H,xp),et(pe.expression,ye,gt),S_(pe.statement,oe,e))}function _e(pe){return n.updateDoStatement(pe,S_(pe.statement,oe,e),et(pe.expression,ye,gt))}function tt(pe){return n.updateWhileStatement(pe,et(pe.expression,ye,gt),S_(pe.statement,oe,e))}function ct(pe){return n.updateLabeledStatement(pe,pe.label,et(pe.statement,oe,Ii,n.liftToBlock)??dt(n.createEmptyStatement(),pe.statement))}function le(pe){return n.updateWithStatement(pe,et(pe.expression,ye,gt),w.checkDefined(et(pe.statement,oe,Ii,n.liftToBlock)))}function Je(pe){return n.updateIfStatement(pe,et(pe.expression,ye,gt),et(pe.thenStatement,oe,Ii,n.liftToBlock)??n.createBlock([]),et(pe.elseStatement,oe,Ii,n.liftToBlock))}function ee(pe){return n.updateSwitchStatement(pe,et(pe.expression,ye,gt),w.checkDefined(et(pe.caseBlock,oe,VA)))}function Ne(pe){return n.updateCaseBlock(pe,Ur(pe.clauses,oe,lF))}function Ie(pe){return n.updateCaseClause(pe,et(pe.expression,ye,gt),Ur(pe.statements,oe,Ii))}function Ce(pe){return Ir(pe,oe,e)}function Ve(pe){return Ir(pe,oe,e)}function bt(pe){return n.updateCatchClause(pe,pe.variableDeclaration,w.checkDefined(et(pe.block,oe,Fs)))}function zt(pe){return pe=Ir(pe,oe,e),pe}function ur(pe){return n.updateExpressionStatement(pe,et(pe.expression,H,gt))}function Or(pe,j){return n.updateParenthesizedExpression(pe,et(pe.expression,j?H:ye,gt))}function _t(pe,j){return n.updatePartiallyEmittedExpression(pe,et(pe.expression,j?H:ye,gt))}function $t(pe,j){if((pe.operator===46||pe.operator===47)&&je(pe.operand)&&!Ko(pe.operand)&&!my(pe.operand)&&!cJ(pe.operand)){let Re=kt(pe.operand);if(Re){let q,yt=et(pe.operand,ye,gt);Vb(pe)?yt=n.updatePrefixUnaryExpression(pe,yt):(yt=n.updatePostfixUnaryExpression(pe,yt),j||(q=n.createTempVariable(c),yt=n.createAssignment(q,yt),dt(yt,pe)),yt=n.createComma(yt,n.cloneNode(pe.operand)),dt(yt,pe));for(let jt of Re)O[Ua(yt)]=!0,yt=st(jt,yt),dt(yt,pe);return q&&(O[Ua(yt)]=!0,yt=n.createComma(yt,q),dt(yt,pe)),yt}}return Ir(pe,ye,e)}function Hr(pe){return n.updateCallExpression(pe,pe.expression,void 0,Ur(pe.arguments,j=>j===pe.arguments[0]?Ha(j)?Y2(j,_):i().createRewriteRelativeImportExtensionsHelper(j):ye(j),gt))}function hi(pe,j){if(h===0&&m>=7)return Ir(pe,ye,e);let Re=V2(n,pe,I,g,u,_),q=et(_l(pe.arguments),ye,gt),yt=Re&&(!q||!ya(q)||q.text!==Re.text)?Re:q&&j?ya(q)?Y2(q,_):i().createRewriteRelativeImportExtensionsHelper(q):q,jt=!!(pe.transformFlags&16384);switch(_.module){case 2:return At(yt,jt);case 3:return _s(yt??n.createVoidZero(),jt);case 1:default:return zn(yt)}}function _s(pe,j){if(F=!0,US(pe)){let Re=Ko(pe)?pe:ya(pe)?n.createStringLiteralFromNode(pe):dn(dt(n.cloneNode(pe),pe),3072);return n.createConditionalExpression(n.createIdentifier("__syncRequire"),void 0,zn(pe),void 0,At(Re,j))}else{let Re=n.createTempVariable(c);return n.createComma(n.createAssignment(Re,pe),n.createConditionalExpression(n.createIdentifier("__syncRequire"),void 0,zn(Re,!0),void 0,At(Re,j)))}}function At(pe,j){let Re=n.createUniqueName("resolve"),q=n.createUniqueName("reject"),yt=[n.createParameterDeclaration(void 0,void 0,Re),n.createParameterDeclaration(void 0,void 0,q)],jt=n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("require"),void 0,[n.createArrayLiteralExpression([pe||n.createOmittedExpression()]),Re,q]))]),we;m>=2?we=n.createArrowFunction(void 0,void 0,yt,void 0,void 0,jt):(we=n.createFunctionExpression(void 0,void 0,void 0,void 0,yt,void 0,jt),j&&dn(we,16));let ut=n.createNewExpression(n.createIdentifier("Promise"),void 0,[we]);return yh(_)?n.createCallExpression(n.createPropertyAccessExpression(ut,n.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):ut}function zn(pe,j){let Re=pe&&!Jm(pe)&&!j,q=n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Promise"),"resolve"),void 0,Re?m>=2?[n.createTemplateExpression(n.createTemplateHead(""),[n.createTemplateSpan(pe,n.createTemplateTail(""))])]:[n.createCallExpression(n.createPropertyAccessExpression(n.createStringLiteral(""),"concat"),void 0,[pe])]:[]),yt=n.createCallExpression(n.createIdentifier("require"),void 0,Re?[n.createIdentifier("s")]:pe?[pe]:[]);yh(_)&&(yt=i().createImportStarHelper(yt));let jt=Re?[n.createParameterDeclaration(void 0,void 0,"s")]:[],we;return m>=2?we=n.createArrowFunction(void 0,void 0,jt,void 0,void 0,yt):we=n.createFunctionExpression(void 0,void 0,void 0,void 0,jt,void 0,n.createBlock([n.createReturnStatement(yt)])),n.createCallExpression(n.createPropertyAccessExpression(q,"then"),void 0,[we])}function ns(pe,j){return!yh(_)||Sd(pe)&2?j:iae(pe)?i().createImportStarHelper(j):j}function Rn(pe,j){return!yh(_)||Sd(pe)&2?j:e5(pe)?i().createImportStarHelper(j):NU(pe)?i().createImportDefaultHelper(j):j}function hn(pe){let j,Re=qw(pe);if(h!==2)if(pe.importClause){let q=[];Re&&!fk(pe)?q.push(n.createVariableDeclaration(n.cloneNode(Re.name),void 0,void 0,Rn(pe,ui(pe)))):(q.push(n.createVariableDeclaration(n.getGeneratedNameForNode(pe),void 0,void 0,Rn(pe,ui(pe)))),Re&&fk(pe)&&q.push(n.createVariableDeclaration(n.cloneNode(Re.name),void 0,void 0,n.getGeneratedNameForNode(pe)))),j=jr(j,En(dt(n.createVariableStatement(void 0,n.createVariableDeclarationList(q,m>=2?2:0)),pe),pe))}else return En(dt(n.createExpressionStatement(ui(pe)),pe),pe);else Re&&fk(pe)&&(j=jr(j,n.createVariableStatement(void 0,n.createVariableDeclarationList([En(dt(n.createVariableDeclaration(n.cloneNode(Re.name),void 0,void 0,n.getGeneratedNameForNode(pe)),pe),pe)],m>=2?2:0))));return j=oa(j,pe),yg(j)}function ui(pe){let j=V2(n,pe,I,g,u,_),Re=[];return j&&Re.push(Y2(j,_)),n.createCallExpression(n.createIdentifier("require"),void 0,Re)}function Ue(pe){w.assert(Mb(pe),"import= for internal module references should be handled in an earlier transformer.");let j;return h!==2?ei(pe,32)?j=jr(j,En(dt(n.createExpressionStatement(st(pe.name,ui(pe))),pe),pe)):j=jr(j,En(dt(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.cloneNode(pe.name),void 0,void 0,ui(pe))],m>=2?2:0)),pe),pe)):ei(pe,32)&&(j=jr(j,En(dt(n.createExpressionStatement(st(n.getExportName(pe),n.getLocalName(pe))),pe),pe))),j=xr(j,pe),yg(j)}function ht(pe){if(!pe.moduleSpecifier)return;let j=n.getGeneratedNameForNode(pe);if(pe.exportClause&&Fp(pe.exportClause)){let Re=[];h!==2&&Re.push(En(dt(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(j,void 0,void 0,ui(pe))])),pe),pe));for(let q of pe.exportClause.elements){let yt=q.propertyName||q.name,we=!!yh(_)&&!(Sd(pe)&2)&&kg(yt)?i().createImportDefaultHelper(j):j,ut=yt.kind===11?n.createElementAccessExpression(we,yt):n.createPropertyAccessExpression(we,yt);Re.push(En(dt(n.createExpressionStatement(st(q.name.kind===11?n.cloneNode(q.name):n.getExportName(q),ut,void 0,!0)),q),q))}return yg(Re)}else if(pe.exportClause){let Re=[];return Re.push(En(dt(n.createExpressionStatement(st(n.cloneNode(pe.exportClause.name),ns(pe,h!==2?ui(pe):SF(pe)||pe.exportClause.name.kind===11?j:n.createIdentifier(Ln(pe.exportClause.name))))),pe),pe)),yg(Re)}else return En(dt(n.createExpressionStatement(i().createExportStarHelper(h!==2?ui(pe):j)),pe),pe)}function sr(pe){if(!pe.isExportEquals)return Xe(n.createIdentifier("default"),et(pe.expression,ye,gt),pe,!0)}function Zr(pe){let j;return ei(pe,32)?j=jr(j,En(dt(n.createFunctionDeclaration(Ur(pe.modifiers,Dt,la),pe.asteriskToken,n.getDeclarationName(pe,!0,!0),void 0,Ur(pe.parameters,ye,Bi),void 0,Ir(pe.body,ye,e)),pe),pe)):j=jr(j,Ir(pe,ye,e)),yg(j)}function Zn(pe){let j;return ei(pe,32)?j=jr(j,En(dt(n.createClassDeclaration(Ur(pe.modifiers,Dt,Xo),n.getDeclarationName(pe,!0,!0),void 0,Ur(pe.heritageClauses,ye,vf),Ur(pe.members,ye,rl)),pe),pe)):j=jr(j,Ir(pe,ye,e)),j=ae(j,pe),yg(j)}function Xn(pe){let j,Re,q;if(ei(pe,32)){let yt,jt=!1;for(let we of pe.declarationList.declarations)if(je(we.name)&&my(we.name))if(yt||(yt=Ur(pe.modifiers,Dt,la)),we.initializer){let ut=n.updateVariableDeclaration(we,we.name,void 0,void 0,st(we.name,et(we.initializer,ye,gt)));Re=jr(Re,ut)}else Re=jr(Re,we);else if(we.initializer)if(!Ws(we.name)&&(Lo(we.initializer)||Ao(we.initializer)||ml(we.initializer))){let ut=n.createAssignment(dt(n.createPropertyAccessExpression(n.createIdentifier("exports"),we.name),we.name),n.createIdentifier(Ip(we.name))),Qt=n.createVariableDeclaration(we.name,we.exclamationToken,we.type,et(we.initializer,ye,gt));Re=jr(Re,Qt),q=jr(q,ut),jt=!0}else q=jr(q,Rs(we));if(Re&&(j=jr(j,n.updateVariableStatement(pe,yt,n.updateVariableDeclarationList(pe.declarationList,Re)))),q){let we=En(dt(n.createExpressionStatement(n.inlineExpressions(q)),pe),pe);jt&&U4(we),j=jr(j,we)}}else j=jr(j,Ir(pe,ye,e));return j=xs(j,pe),yg(j)}function Pi(pe,j,Re){let q=kt(pe);if(q){let yt=h7(pe)?j:n.createAssignment(pe,j);for(let jt of q)dn(yt,8),yt=st(jt,yt,Re);return yt}return n.createAssignment(pe,j)}function Rs(pe){return Ws(pe.name)?jk(et(pe,ye,C4),ye,e,0,!1,Pi):n.createAssignment(dt(n.createPropertyAccessExpression(n.createIdentifier("exports"),pe.name),pe.name),pe.initializer?et(pe.initializer,ye,gt):n.createVoidZero())}function oa(pe,j){if(D.exportEquals)return pe;let Re=j.importClause;if(!Re)return pe;let q=new FI;Re.name&&(pe=lt(pe,q,Re));let yt=Re.namedBindings;if(yt)switch(yt.kind){case 274:pe=lt(pe,q,yt);break;case 275:for(let jt of yt.elements)pe=lt(pe,q,jt,!0);break}return pe}function xr(pe,j){return D.exportEquals?pe:lt(pe,new FI,j)}function xs(pe,j){return Ye(pe,j.declarationList,!1)}function Ye(pe,j,Re){if(D.exportEquals)return pe;for(let q of j.declarations)pe=Nt(pe,q,Re);return pe}function Nt(pe,j,Re){if(D.exportEquals)return pe;if(Ws(j.name))for(let q of j.name.elements)Fl(q)||(pe=Nt(pe,q,Re));else!Ko(j.name)&&(!oi(j)||j.initializer||Re)&&(pe=lt(pe,new FI,j));return pe}function ae(pe,j){if(D.exportEquals)return pe;let Re=new FI;if(ei(j,32)){let q=ei(j,2048)?n.createIdentifier("default"):n.getDeclarationName(j);pe=Y(pe,Re,q,n.getLocalName(j),j)}return j.name&&(pe=lt(pe,Re,j)),pe}function lt(pe,j,Re,q){let yt=n.getDeclarationName(Re),jt=D.exportSpecifiers.get(yt);if(jt)for(let we of jt)pe=Y(pe,j,we.name,yt,we.name,void 0,q);return pe}function Y(pe,j,Re,q,yt,jt,we){if(Re.kind!==11){if(j.has(Re))return pe;j.set(Re,!0)}return pe=jr(pe,Xe(Re,q,yt,jt,we)),pe}function Ae(){let pe=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 dn(pe,2097152),pe}function Xe(pe,j,Re,q,yt){let jt=dt(n.createExpressionStatement(st(pe,j,void 0,yt)),Re);return Ju(jt),q||dn(jt,3072),jt}function st(pe,j,Re,q){return dt(q?n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[n.createIdentifier("exports"),n.createStringLiteralFromNode(pe),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(pe.kind===11?n.createElementAccessExpression(n.createIdentifier("exports"),n.cloneNode(pe)):n.createPropertyAccessExpression(n.createIdentifier("exports"),n.cloneNode(pe)),j),Re)}function Dt(pe){switch(pe.kind){case 95:case 90:return}return pe}function Fe(pe,j,Re){j.kind===307?(I=j,D=x[T_(I)],T(pe,j,Re),I=void 0,D=void 0):T(pe,j,Re)}function St(pe,j){return j=S(pe,j),j.id&&O[j.id]?j:pe===1?Mt(j):Eu(j)?vt(j):j}function vt(pe){let j=pe.name,Re=on(j);if(Re!==j){if(pe.objectAssignmentInitializer){let q=n.createAssignment(Re,pe.objectAssignmentInitializer);return dt(n.createPropertyAssignment(j,q),pe)}return dt(n.createPropertyAssignment(j,Re),pe)}return pe}function Mt(pe){switch(pe.kind){case 80:return on(pe);case 213:return Ke(pe);case 215:return Vt(pe);case 226:return Pe(pe)}return pe}function Ke(pe){if(je(pe.expression)){let j=on(pe.expression);if(O[Ua(j)]=!0,!je(j)&&!(Na(pe.expression)&8192))return bk(n.updateCallExpression(pe,j,void 0,pe.arguments),16)}return pe}function Vt(pe){if(je(pe.tag)){let j=on(pe.tag);if(O[Ua(j)]=!0,!je(j)&&!(Na(pe.tag)&8192))return bk(n.updateTaggedTemplateExpression(pe,j,void 0,pe.template),16)}return pe}function on(pe){var j,Re;if(Na(pe)&8192){let q=sM(I);return q?n.createPropertyAccessExpression(q,pe):pe}else if(!(Ko(pe)&&!(pe.emitNode.autoGenerate.flags&64))&&!my(pe)){let q=u.getReferencedExportContainer(pe,h7(pe));if(q&&q.kind===307)return dt(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.cloneNode(pe)),pe);let yt=u.getReferencedImportDeclaration(pe);if(yt){if(Cd(yt))return dt(n.createPropertyAccessExpression(n.getGeneratedNameForNode(yt.parent),n.createIdentifier("default")),pe);if(a_(yt)){let jt=yt.propertyName||yt.name,we=n.getGeneratedNameForNode(((Re=(j=yt.parent)==null?void 0:j.parent)==null?void 0:Re.parent)||yt);return dt(jt.kind===11?n.createElementAccessExpression(we,n.cloneNode(jt)):n.createPropertyAccessExpression(we,n.cloneNode(jt)),pe)}}}return pe}function Pe(pe){if(ly(pe.operatorToken.kind)&&je(pe.left)&&(!Ko(pe.left)||v6(pe.left))&&!my(pe.left)){let j=kt(pe.left);if(j){let Re=pe;for(let q of j)O[Ua(Re)]=!0,Re=st(q,Re,pe);return Re}}return pe}function kt(pe){if(Ko(pe)){if(v6(pe)){let j=D?.exportSpecifiers.get(pe);if(j){let Re=[];for(let q of j)Re.push(q.name);return Re}}}else{let j=u.getReferencedImportDeclaration(pe);if(j)return D?.exportedBindings[T_(j)];let Re=new Set,q=u.getReferencedValueDeclarations(pe);if(q){for(let yt of q){let jt=D?.exportedBindings[T_(yt)];if(jt)for(let we of jt)Re.add(we)}if(Re.size)return ps(Re)}}}}var jGe={name:"typescript:dynamicimport-sync-require",scoped:!0,text:`
var __syncRequire = typeof module === "object" && typeof module.exports === "object";`};function Mae(e){let{factory:t,startLexicalEnvironment:n,endLexicalEnvironment:i,hoistVariableDeclaration:s}=e,o=e.getCompilerOptions(),c=e.getEmitResolver(),_=e.getEmitHost(),u=e.onSubstituteNode,g=e.onEmitNode;e.onSubstituteNode=Ae,e.onEmitNode=Y,e.enableSubstitution(80),e.enableSubstitution(304),e.enableSubstitution(226),e.enableSubstitution(236),e.enableEmitNotification(307);let m=[],h=[],S=[],T=[],x,I,D,E,O,F,B;return Xd(e,G);function G(Pe){if(Pe.isDeclarationFile||!(jw(Pe,o)||Pe.transformFlags&8388608))return Pe;let kt=T_(Pe);x=Pe,F=Pe,I=m[kt]=MU(e,Pe),D=t.createUniqueName("exports"),h[kt]=D,E=T[kt]=t.createUniqueName("context");let pe=$(I.externalImports),j=K(Pe,pe),Re=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,D),t.createParameterDeclaration(void 0,void 0,E)],void 0,j),q=aM(t,Pe,_,o),yt=t.createArrayLiteralExpression(hr(pe,we=>we.name)),jt=dn(t.updateSourceFile(Pe,dt(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,q?[q,yt,Re]:[yt,Re]))]),Pe.statements)),2048);return o.outFile||Bne(jt,j,we=>!we.scoped),B&&(S[kt]=B,B=void 0),x=void 0,I=void 0,D=void 0,E=void 0,O=void 0,F=void 0,jt}function $(Pe){let kt=new Map,pe=[];for(let j of Pe){let Re=V2(t,j,x,_,c,o);if(Re){let q=Re.text,yt=kt.get(q);yt!==void 0?pe[yt].externalImports.push(j):(kt.set(q,pe.length),pe.push({name:Re,externalImports:[j]}))}}return pe}function K(Pe,kt){let pe=[];n();let j=Pu(o,"alwaysStrict")||xl(x),Re=t.copyPrologue(Pe.statements,pe,j,V);pe.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(E,t.createPropertyAccessExpression(E,"id")))]))),et(I.externalHelpersImportDeclaration,V,Ii);let q=Ur(Pe.statements,V,Ii,Re);jn(pe,O),_h(pe,i());let yt=U(pe),jt=Pe.transformFlags&2097152?t.createModifiersFromModifierFlags(1024):void 0,we=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",te(yt,kt)),t.createPropertyAssignment("execute",t.createFunctionExpression(jt,void 0,void 0,void 0,[],void 0,t.createBlock(q,!0)))],!0);return pe.push(t.createReturnStatement(we)),t.createBlock(pe,!0)}function U(Pe){if(!I.hasExportStarsToExportValues)return;if(!pt(I.exportedNames)&&I.exportedFunctions.size===0&&I.exportSpecifiers.size===0){let Re=!1;for(let q of I.externalImports)if(q.kind===278&&q.exportClause){Re=!0;break}if(!Re){let q=me(void 0);return Pe.push(q),q.name}}let kt=[];if(I.exportedNames)for(let Re of I.exportedNames)kg(Re)||kt.push(t.createPropertyAssignment(t.createStringLiteralFromNode(Re),t.createTrue()));for(let Re of I.exportedFunctions)ei(Re,2048)||(w.assert(!!Re.name),kt.push(t.createPropertyAssignment(t.createStringLiteralFromNode(Re.name),t.createTrue())));let pe=t.createUniqueName("exportedNames");Pe.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(pe,void 0,void 0,t.createObjectLiteralExpression(kt,!0))])));let j=me(pe);return Pe.push(j),j.name}function me(Pe){let kt=t.createUniqueName("exportStar"),pe=t.createIdentifier("m"),j=t.createIdentifier("n"),Re=t.createIdentifier("exports"),q=t.createStrictInequality(j,t.createStringLiteral("default"));return Pe&&(q=t.createLogicalAnd(q,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(Pe,"hasOwnProperty"),void 0,[j])))),t.createFunctionDeclaration(void 0,void 0,kt,void 0,[t.createParameterDeclaration(void 0,void 0,pe)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Re,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(j)]),pe,t.createBlock([dn(t.createIfStatement(q,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(Re,j),t.createElementAccessExpression(pe,j)))),1)])),t.createExpressionStatement(t.createCallExpression(D,void 0,[Re]))],!0))}function te(Pe,kt){let pe=[];for(let j of kt){let Re=or(j.externalImports,jt=>xI(t,jt,x)),q=Re?t.getGeneratedNameForNode(Re):t.createUniqueName(""),yt=[];for(let jt of j.externalImports){let we=xI(t,jt,x);switch(jt.kind){case 272:if(!jt.importClause)break;case 271:w.assert(we!==void 0),yt.push(t.createExpressionStatement(t.createAssignment(we,q))),ei(jt,32)&&yt.push(t.createExpressionStatement(t.createCallExpression(D,void 0,[t.createStringLiteral(Ln(we)),q])));break;case 278:if(w.assert(we!==void 0),jt.exportClause)if(Fp(jt.exportClause)){let ut=[];for(let Qt of jt.exportClause.elements)ut.push(t.createPropertyAssignment(t.createStringLiteral(I0(Qt.name)),t.createElementAccessExpression(q,t.createStringLiteral(I0(Qt.propertyName||Qt.name)))));yt.push(t.createExpressionStatement(t.createCallExpression(D,void 0,[t.createObjectLiteralExpression(ut,!0)])))}else yt.push(t.createExpressionStatement(t.createCallExpression(D,void 0,[t.createStringLiteral(I0(jt.exportClause.name)),q])));else yt.push(t.createExpressionStatement(t.createCallExpression(Pe,void 0,[q])));break}}pe.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,q)],void 0,t.createBlock(yt,!0)))}return t.createArrayLiteralExpression(pe,!0)}function V(Pe){switch(Pe.kind){case 272:return ne(Pe);case 271:return oe(Pe);case 278:return ie(Pe);case 277:return de(Pe);default:return zt(Pe)}}function ne(Pe){let kt;return Pe.importClause&&s(xI(t,Pe,x)),yg(ct(kt,Pe))}function ie(Pe){w.assertIsDefined(Pe)}function oe(Pe){w.assert(Mb(Pe),"import= for internal module references should be handled in an earlier transformer.");let kt;return s(xI(t,Pe,x)),yg(le(kt,Pe))}function de(Pe){if(Pe.isExportEquals)return;let kt=et(Pe.expression,Xn,gt);return Ve(t.createIdentifier("default"),kt,!0)}function ye(Pe){ei(Pe,32)?O=jr(O,t.updateFunctionDeclaration(Pe,Ur(Pe.modifiers,lt,Xo),Pe.asteriskToken,t.getDeclarationName(Pe,!0,!0),void 0,Ur(Pe.parameters,Xn,Bi),void 0,et(Pe.body,Xn,Fs))):O=jr(O,Ir(Pe,Xn,e)),O=Ne(O,Pe)}function H(Pe){let kt,pe=t.getLocalName(Pe);return s(pe),kt=jr(kt,dt(t.createExpressionStatement(t.createAssignment(pe,dt(t.createClassExpression(Ur(Pe.modifiers,lt,Xo),Pe.name,void 0,Ur(Pe.heritageClauses,Xn,vf),Ur(Pe.members,Xn,rl)),Pe))),Pe)),kt=Ne(kt,Pe),yg(kt)}function ve(Pe){if(!De(Pe.declarationList))return et(Pe,Xn,Ii);let kt;if(W6(Pe.declarationList)||j6(Pe.declarationList)){let pe=Ur(Pe.modifiers,lt,Xo),j=[];for(let q of Pe.declarationList.declarations)j.push(t.updateVariableDeclaration(q,t.getGeneratedNameForNode(q.name),void 0,void 0,se(q,!1)));let Re=t.updateVariableDeclarationList(Pe.declarationList,j);kt=jr(kt,t.updateVariableStatement(Pe,pe,Re))}else{let pe,j=ei(Pe,32);for(let Re of Pe.declarationList.declarations)Re.initializer?pe=jr(pe,se(Re,j)):Ge(Re);pe&&(kt=jr(kt,dt(t.createExpressionStatement(t.inlineExpressions(pe)),Pe)))}return kt=Je(kt,Pe,!1),yg(kt)}function Ge(Pe){if(Ws(Pe.name))for(let kt of Pe.name.elements)Fl(kt)||Ge(kt);else s(t.cloneNode(Pe.name))}function De(Pe){return(Na(Pe)&4194304)===0&&(F.kind===307||(ic(Pe).flags&7)===0)}function se(Pe,kt){let pe=kt?xe:_e;return Ws(Pe.name)?jk(Pe,Xn,e,0,!1,pe):Pe.initializer?pe(Pe.name,et(Pe.initializer,Xn,gt)):Pe.name}function xe(Pe,kt,pe){return tt(Pe,kt,pe,!0)}function _e(Pe,kt,pe){return tt(Pe,kt,pe,!1)}function tt(Pe,kt,pe,j){return s(t.cloneNode(Pe)),j?bt(Pe,Vt(dt(t.createAssignment(Pe,kt),pe))):Vt(dt(t.createAssignment(Pe,kt),pe))}function ct(Pe,kt){if(I.exportEquals)return Pe;let pe=kt.importClause;if(!pe)return Pe;pe.name&&(Pe=Ie(Pe,pe));let j=pe.namedBindings;if(j)switch(j.kind){case 274:Pe=Ie(Pe,j);break;case 275:for(let Re of j.elements)Pe=Ie(Pe,Re);break}return Pe}function le(Pe,kt){return I.exportEquals?Pe:Ie(Pe,kt)}function Je(Pe,kt,pe){if(I.exportEquals)return Pe;for(let j of kt.declarationList.declarations)(j.initializer||pe)&&(Pe=ee(Pe,j,pe));return Pe}function ee(Pe,kt,pe){if(I.exportEquals)return Pe;if(Ws(kt.name))for(let j of kt.name.elements)Fl(j)||(Pe=ee(Pe,j,pe));else if(!Ko(kt.name)){let j;pe&&(Pe=Ce(Pe,kt.name,t.getLocalName(kt)),j=Ln(kt.name)),Pe=Ie(Pe,kt,j)}return Pe}function Ne(Pe,kt){if(I.exportEquals)return Pe;let pe;if(ei(kt,32)){let j=ei(kt,2048)?t.createStringLiteral("default"):kt.name;Pe=Ce(Pe,j,t.getLocalName(kt)),pe=Ip(j)}return kt.name&&(Pe=Ie(Pe,kt,pe)),Pe}function Ie(Pe,kt,pe){if(I.exportEquals)return Pe;let j=t.getDeclarationName(kt),Re=I.exportSpecifiers.get(j);if(Re)for(let q of Re)I0(q.name)!==pe&&(Pe=Ce(Pe,q.name,j));return Pe}function Ce(Pe,kt,pe,j){return Pe=jr(Pe,Ve(kt,pe,j)),Pe}function Ve(Pe,kt,pe){let j=t.createExpressionStatement(bt(Pe,kt));return Ju(j),pe||dn(j,3072),j}function bt(Pe,kt){let pe=je(Pe)?t.createStringLiteralFromNode(Pe):Pe;return dn(kt,Na(kt)|3072),dl(t.createCallExpression(D,void 0,[pe,kt]),kt)}function zt(Pe){switch(Pe.kind){case 243:return ve(Pe);case 262:return ye(Pe);case 263:return H(Pe);case 248:return ur(Pe,!0);case 249:return Or(Pe);case 250:return _t(Pe);case 246:return hi(Pe);case 247:return _s(Pe);case 256:return At(Pe);case 254:return zn(Pe);case 245:return ns(Pe);case 255:return Rn(Pe);case 269:return hn(Pe);case 296:return ui(Pe);case 297:return Ue(Pe);case 258:return ht(Pe);case 299:return sr(Pe);case 241:return Zr(Pe);default:return Xn(Pe)}}function ur(Pe,kt){let pe=F;return F=Pe,Pe=t.updateForStatement(Pe,et(Pe.initializer,kt?Hr:Pi,xp),et(Pe.condition,Xn,gt),et(Pe.incrementor,Pi,gt),S_(Pe.statement,kt?zt:Xn,e)),F=pe,Pe}function Or(Pe){let kt=F;return F=Pe,Pe=t.updateForInStatement(Pe,Hr(Pe.initializer),et(Pe.expression,Xn,gt),S_(Pe.statement,zt,e)),F=kt,Pe}function _t(Pe){let kt=F;return F=Pe,Pe=t.updateForOfStatement(Pe,Pe.awaitModifier,Hr(Pe.initializer),et(Pe.expression,Xn,gt),S_(Pe.statement,zt,e)),F=kt,Pe}function $t(Pe){return au(Pe)&&De(Pe)}function Hr(Pe){if($t(Pe)){let kt;for(let pe of Pe.declarations)kt=jr(kt,se(pe,!1)),pe.initializer||Ge(pe);return kt?t.inlineExpressions(kt):t.createOmittedExpression()}else return et(Pe,Pi,xp)}function hi(Pe){return t.updateDoStatement(Pe,S_(Pe.statement,zt,e),et(Pe.expression,Xn,gt))}function _s(Pe){return t.updateWhileStatement(Pe,et(Pe.expression,Xn,gt),S_(Pe.statement,zt,e))}function At(Pe){return t.updateLabeledStatement(Pe,Pe.label,et(Pe.statement,zt,Ii,t.liftToBlock)??t.createExpressionStatement(t.createIdentifier("")))}function zn(Pe){return t.updateWithStatement(Pe,et(Pe.expression,Xn,gt),w.checkDefined(et(Pe.statement,zt,Ii,t.liftToBlock)))}function ns(Pe){return t.updateIfStatement(Pe,et(Pe.expression,Xn,gt),et(Pe.thenStatement,zt,Ii,t.liftToBlock)??t.createBlock([]),et(Pe.elseStatement,zt,Ii,t.liftToBlock))}function Rn(Pe){return t.updateSwitchStatement(Pe,et(Pe.expression,Xn,gt),w.checkDefined(et(Pe.caseBlock,zt,VA)))}function hn(Pe){let kt=F;return F=Pe,Pe=t.updateCaseBlock(Pe,Ur(Pe.clauses,zt,lF)),F=kt,Pe}function ui(Pe){return t.updateCaseClause(Pe,et(Pe.expression,Xn,gt),Ur(Pe.statements,zt,Ii))}function Ue(Pe){return Ir(Pe,zt,e)}function ht(Pe){return Ir(Pe,zt,e)}function sr(Pe){let kt=F;return F=Pe,Pe=t.updateCatchClause(Pe,Pe.variableDeclaration,w.checkDefined(et(Pe.block,zt,Fs))),F=kt,Pe}function Zr(Pe){let kt=F;return F=Pe,Pe=Ir(Pe,zt,e),F=kt,Pe}function Zn(Pe,kt){if(!(Pe.transformFlags&276828160))return Pe;switch(Pe.kind){case 248:return ur(Pe,!1);case 244:return Rs(Pe);case 217:return oa(Pe,kt);case 355:return xr(Pe,kt);case 226:if(rv(Pe))return Ye(Pe,kt);break;case 213:if(jf(Pe))return xs(Pe);break;case 224:case 225:return ae(Pe,kt)}return Ir(Pe,Xn,e)}function Xn(Pe){return Zn(Pe,!1)}function Pi(Pe){return Zn(Pe,!0)}function Rs(Pe){return t.updateExpressionStatement(Pe,et(Pe.expression,Pi,gt))}function oa(Pe,kt){return t.updateParenthesizedExpression(Pe,et(Pe.expression,kt?Pi:Xn,gt))}function xr(Pe,kt){return t.updatePartiallyEmittedExpression(Pe,et(Pe.expression,kt?Pi:Xn,gt))}function xs(Pe){let kt=V2(t,Pe,x,_,c,o),pe=et(_l(Pe.arguments),Xn,gt),j=kt&&(!pe||!ya(pe)||pe.text!==kt.text)?kt:pe;return t.createCallExpression(t.createPropertyAccessExpression(E,t.createIdentifier("import")),void 0,j?[j]:[])}function Ye(Pe,kt){return Nt(Pe.left)?jk(Pe,Xn,e,0,!kt):Ir(Pe,Xn,e)}function Nt(Pe){if(ql(Pe,!0))return Nt(Pe.left);if(Rp(Pe))return Nt(Pe.expression);if(Sa(Pe))return pt(Pe.properties,Nt);if(gu(Pe))return pt(Pe.elements,Nt);if(Eu(Pe))return Nt(Pe.name);if(hl(Pe))return Nt(Pe.initializer);if(je(Pe)){let kt=c.getReferencedExportContainer(Pe);return kt!==void 0&&kt.kind===307}else return!1}function ae(Pe,kt){if((Pe.operator===46||Pe.operator===47)&&je(Pe.operand)&&!Ko(Pe.operand)&&!my(Pe.operand)&&!cJ(Pe.operand)){let pe=Mt(Pe.operand);if(pe){let j,Re=et(Pe.operand,Xn,gt);Vb(Pe)?Re=t.updatePrefixUnaryExpression(Pe,Re):(Re=t.updatePostfixUnaryExpression(Pe,Re),kt||(j=t.createTempVariable(s),Re=t.createAssignment(j,Re),dt(Re,Pe)),Re=t.createComma(Re,t.cloneNode(Pe.operand)),dt(Re,Pe));for(let q of pe)Re=bt(q,Vt(Re));return j&&(Re=t.createComma(Re,j),dt(Re,Pe)),Re}}return Ir(Pe,Xn,e)}function lt(Pe){switch(Pe.kind){case 95:case 90:return}return Pe}function Y(Pe,kt,pe){if(kt.kind===307){let j=T_(kt);x=kt,I=m[j],D=h[j],B=S[j],E=T[j],B&&delete S[j],g(Pe,kt,pe),x=void 0,I=void 0,D=void 0,E=void 0,B=void 0}else g(Pe,kt,pe)}function Ae(Pe,kt){return kt=u(Pe,kt),on(kt)?kt:Pe===1?Dt(kt):Pe===4?Xe(kt):kt}function Xe(Pe){switch(Pe.kind){case 304:return st(Pe)}return Pe}function st(Pe){var kt,pe;let j=Pe.name;if(!Ko(j)&&!my(j)){let Re=c.getReferencedImportDeclaration(j);if(Re){if(Cd(Re))return dt(t.createPropertyAssignment(t.cloneNode(j),t.createPropertyAccessExpression(t.getGeneratedNameForNode(Re.parent),t.createIdentifier("default"))),Pe);if(a_(Re)){let q=Re.propertyName||Re.name,yt=t.getGeneratedNameForNode(((pe=(kt=Re.parent)==null?void 0:kt.parent)==null?void 0:pe.parent)||Re);return dt(t.createPropertyAssignment(t.cloneNode(j),q.kind===11?t.createElementAccessExpression(yt,t.cloneNode(q)):t.createPropertyAccessExpression(yt,t.cloneNode(q))),Pe)}}}return Pe}function Dt(Pe){switch(Pe.kind){case 80:return Fe(Pe);case 226:return St(Pe);case 236:return vt(Pe)}return Pe}function Fe(Pe){var kt,pe;if(Na(Pe)&8192){let j=sM(x);return j?t.createPropertyAccessExpression(j,Pe):Pe}if(!Ko(Pe)&&!my(Pe)){let j=c.getReferencedImportDeclaration(Pe);if(j){if(Cd(j))return dt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(j.parent),t.createIdentifier("default")),Pe);if(a_(j)){let Re=j.propertyName||j.name,q=t.getGeneratedNameForNode(((pe=(kt=j.parent)==null?void 0:kt.parent)==null?void 0:pe.parent)||j);return dt(Re.kind===11?t.createElementAccessExpression(q,t.cloneNode(Re)):t.createPropertyAccessExpression(q,t.cloneNode(Re)),Pe)}}}return Pe}function St(Pe){if(ly(Pe.operatorToken.kind)&&je(Pe.left)&&(!Ko(Pe.left)||v6(Pe.left))&&!my(Pe.left)){let kt=Mt(Pe.left);if(kt){let pe=Pe;for(let j of kt)pe=bt(j,Vt(pe));return pe}}return Pe}function vt(Pe){return zw(Pe)?t.createPropertyAccessExpression(E,t.createIdentifier("meta")):Pe}function Mt(Pe){let kt,pe=Ke(Pe);if(pe){let j=c.getReferencedExportContainer(Pe,!1);j&&j.kind===307&&(kt=jr(kt,t.getDeclarationName(pe))),kt=jn(kt,I?.exportedBindings[T_(pe)])}else if(Ko(Pe)&&v6(Pe)){let j=I?.exportSpecifiers.get(Pe);if(j){let Re=[];for(let q of j)Re.push(q.name);return Re}}return kt}function Ke(Pe){if(!Ko(Pe)){let kt=c.getReferencedImportDeclaration(Pe);if(kt)return kt;let pe=c.getReferencedValueDeclaration(Pe);if(pe&&I?.exportedBindings[T_(pe)])return pe;let j=c.getReferencedValueDeclarations(Pe);if(j){for(let Re of j)if(Re!==pe&&I?.exportedBindings[T_(Re)])return Re}return pe}}function Vt(Pe){return B===void 0&&(B=[]),B[Ua(Pe)]=!0,Pe}function on(Pe){return B&&Pe.id&&B[Pe.id]}}function JU(e){let{factory:t,getEmitHelperFactory:n}=e,i=e.getEmitHost(),s=e.getEmitResolver(),o=e.getCompilerOptions(),c=wa(o),_=e.onEmitNode,u=e.onSubstituteNode;e.onEmitNode=U,e.onSubstituteNode=me,e.enableEmitNotification(307),e.enableSubstitution(80);let g=new Set,m,h,S,T;return Xd(e,x);function x(V){if(V.isDeclarationFile)return V;if(xl(V)||id(o)){S=V,T=void 0,o.rewriteRelativeImportExtensions&&(S.flags&4194304||un(V))&&$O(V,!1,!1,ie=>{(!Ha(ie.arguments[0])||i4(ie.arguments[0].text,o))&&(m=jr(m,ie))});let ne=I(V);return Th(ne,e.readEmitHelpers()),S=void 0,T&&(ne=t.updateSourceFile(ne,dt(t.createNodeArray(YB(ne.statements.slice(),T)),ne.statements))),!xl(V)||n_(o)===200||pt(ne.statements,C6)?ne:t.updateSourceFile(ne,dt(t.createNodeArray([...ne.statements,rM(t)]),ne.statements))}return V}function I(V){let ne=wG(t,n(),V,o);if(ne){let ie=[],oe=t.copyPrologue(V.statements,ie);return jn(ie,oE([ne],D,Ii)),jn(ie,Ur(V.statements,D,Ii,oe)),t.updateSourceFile(V,dt(t.createNodeArray(ie),V.statements))}else return Ir(V,D,e)}function D(V){switch(V.kind){case 271:return n_(o)>=100?B(V):void 0;case 277:return $(V);case 278:return K(V);case 272:return E(V);case 213:if(V===m?.[0])return O(m.shift());default:if(m?.length&&O_(V,m[0]))return Ir(V,D,e)}return V}function E(V){if(!o.rewriteRelativeImportExtensions)return V;let ne=Y2(V.moduleSpecifier,o);return ne===V.moduleSpecifier?V:t.updateImportDeclaration(V,V.modifiers,V.importClause,ne,V.attributes)}function O(V){return t.updateCallExpression(V,V.expression,V.typeArguments,[Ha(V.arguments[0])?Y2(V.arguments[0],o):n().createRewriteRelativeImportExtensionsHelper(V.arguments[0]),...V.arguments.slice(1)])}function F(V){let ne=V2(t,V,w.checkDefined(S),i,s,o),ie=[];if(ne&&ie.push(Y2(ne,o)),n_(o)===200)return t.createCallExpression(t.createIdentifier("require"),void 0,ie);if(!T){let de=t.createUniqueName("_createRequire",48),ye=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),de)])),t.createStringLiteral("module"),void 0),H=t.createUniqueName("__require",48),ve=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=[ye,ve]}let oe=T[1].declarationList.declarations[0].name;return w.assertNode(oe,je),t.createCallExpression(t.cloneNode(oe),void 0,ie)}function B(V){w.assert(Mb(V),"import= for internal module references should be handled in an earlier transformer.");let ne;return ne=jr(ne,En(dt(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(V.name),void 0,void 0,F(V))],c>=2?2:0)),V),V)),ne=G(ne,V),yg(ne)}function G(V,ne){return ei(ne,32)&&(V=jr(V,t.createExportDeclaration(void 0,ne.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,Ln(ne.name))])))),V}function $(V){return V.isExportEquals?n_(o)===200?En(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),V.expression)),V):void 0:V}function K(V){let ne=Y2(V.moduleSpecifier,o);if(o.module!==void 0&&o.module>5||!V.exportClause||!Dg(V.exportClause)||!V.moduleSpecifier)return!V.moduleSpecifier||ne===V.moduleSpecifier?V:t.updateExportDeclaration(V,V.modifiers,V.isTypeOnly,V.exportClause,ne,V.attributes);let ie=V.exportClause.name,oe=t.getGeneratedNameForNode(ie),de=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(oe)),ne,V.attributes);En(de,V.exportClause);let ye=SF(V)?t.createExportDefault(oe):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,oe,ie)]));return En(ye,V),[de,ye]}function U(V,ne,ie){Mi(ne)?((xl(ne)||id(o))&&o.importHelpers&&(h=new Map),S=ne,_(V,ne,ie),S=void 0,h=void 0):_(V,ne,ie)}function me(V,ne){return ne=u(V,ne),ne.id&&g.has(ne.id)?ne:je(ne)&&Na(ne)&8192?te(ne):ne}function te(V){let ne=S&&sM(S);if(ne)return g.add(Ua(V)),t.createPropertyAccessExpression(ne,V);if(h){let ie=Ln(V),oe=h.get(ie);return oe||h.set(ie,oe=t.createUniqueName(ie,48)),oe}return V}}function Rae(e){let t=e.onSubstituteNode,n=e.onEmitNode,i=JU(e),s=e.onSubstituteNode,o=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=n;let c=zU(e),_=e.onSubstituteNode,u=e.onEmitNode,g=E=>e.getEmitHost().getEmitModuleFormatOfFile(E);e.onSubstituteNode=h,e.onEmitNode=S,e.enableSubstitution(307),e.enableEmitNotification(307);let m;return I;function h(E,O){return Mi(O)?(m=O,t(E,O)):m?g(m)>=5?s(E,O):_(E,O):t(E,O)}function S(E,O,F){return Mi(O)&&(m=O),m?g(m)>=5?o(E,O,F):u(E,O,F):n(E,O,F)}function T(E){return g(E)>=5?i:c}function x(E){if(E.isDeclarationFile)return E;m=E;let O=T(E)(E);return m=void 0,w.assert(Mi(O)),O}function I(E){return E.kind===307?x(E):D(E)}function D(E){return e.factory.createBundle(hr(E.sourceFiles,x))}}function AM(e){return oi(e)||ds(e)||s_(e)||Da(e)||xm(e)||ch(e)||K4(e)||O2(e)||xc(e)||xd(e)||jc(e)||Bi(e)||$o(e)||py(e)||Ol(e)||sd(e)||lc(e)||W0(e)||Nn(e)||wo(e)||vn(e)||td(e)}function Fae(e){if(xm(e)||ch(e))return t;return xd(e)||xc(e)?i:r1(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?p.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?o.errorModuleName?o.accessibility===2?p.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_property_0_of_exported_class_has_or_is_using_private_name_1:o.errorModuleName?p.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:p.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?p.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?o.errorModuleName?o.accessibility===2?p.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_method_0_of_exported_class_has_or_is_using_private_name_1:o.errorModuleName?p.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function r1(e){if(oi(e)||ds(e)||s_(e)||Nn(e)||wo(e)||vn(e)||Da(e)||lc(e))return n;return xm(e)||ch(e)?i:K4(e)||O2(e)||xc(e)||xd(e)||jc(e)||W0(e)?s:Bi(e)?pf(e,e.parent)&&ei(e.parent,2)?n:o:$o(e)?_:py(e)?u:Ol(e)?g:sd(e)||td(e)?m:w.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${w.formatSyntaxKind(e.kind)}`);function t(h){if(e.kind===260||e.kind===208)return h.errorModuleName?h.accessibility===2?p.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:p.Exported_variable_0_has_or_is_using_private_name_1;if(e.kind===172||e.kind===211||e.kind===212||e.kind===226||e.kind===171||e.kind===169&&ei(e.parent,2))return Ks(e)?h.errorModuleName?h.accessibility===2?p.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263||e.kind===169?h.errorModuleName?h.accessibility===2?p.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_property_0_of_exported_class_has_or_is_using_private_name_1:h.errorModuleName?p.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:p.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===178?Ks(e)?S=h.errorModuleName?p.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:S=h.errorModuleName?p.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:Ks(e)?S=h.errorModuleName?h.accessibility===2?p.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:S=h.errorModuleName?h.accessibility===2?p.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.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 180:S=h.errorModuleName?p.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:S=h.errorModuleName?p.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:S=h.errorModuleName?p.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:Ks(e)?S=h.errorModuleName?h.accessibility===2?p.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:p.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:e.parent.kind===263?S=h.errorModuleName?h.accessibility===2?p.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:p.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:S=h.errorModuleName?p.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:S=h.errorModuleName?h.accessibility===2?p.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:p.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:p.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 176:return h.errorModuleName?h.accessibility===2?p.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return h.errorModuleName?p.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return h.errorModuleName?p.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return h.errorModuleName?p.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return Ks(e.parent)?h.errorModuleName?h.accessibility===2?p.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?h.errorModuleName?h.accessibility===2?p.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:h.errorModuleName?p.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return h.errorModuleName?h.accessibility===2?p.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return h.errorModuleName?h.accessibility===2?p.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:p.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 _(){let h;switch(e.parent.kind){case 263:h=p.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:h=p.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:h=p.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:h=p.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:h=p.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:Ks(e.parent)?h=p.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?h=p.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:h=p.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:h=p.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:h=p.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:h=p.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 gl(e.parent.parent)?h=vf(e.parent)&&e.parent.token===119?p.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?p.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:p.extends_clause_of_exported_class_has_or_is_using_private_name_0:h=p.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:h,errorNode:e,typeName:vs(e.parent.parent)}}function g(){return{diagnosticMessage:p.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function m(h){return{diagnosticMessage:h.errorModuleName?p.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:p.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:td(e)?w.checkDefined(e.typeExpression):e.type,typeName:td(e)?vs(e):e.name}}}function Oae(e){let t={219:p.Add_a_return_type_to_the_function_expression,218:p.Add_a_return_type_to_the_function_expression,174:p.Add_a_return_type_to_the_method,177:p.Add_a_return_type_to_the_get_accessor_declaration,178:p.Add_a_type_to_parameter_of_the_set_accessor_declaration,262:p.Add_a_return_type_to_the_function_declaration,180:p.Add_a_return_type_to_the_function_declaration,169:p.Add_a_type_annotation_to_the_parameter_0,260:p.Add_a_type_annotation_to_the_variable_0,172:p.Add_a_type_annotation_to_the_property_0,171:p.Add_a_type_annotation_to_the_property_0,277:p.Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it},n={218:p.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,262:p.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,219:p.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,174:p.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,180:p.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,177:p.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,178:p.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,169:p.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations,260:p.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations,172:p.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,171:p.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,167:p.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations,305:p.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations,304:p.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations,209:p.Only_const_arrays_can_be_inferred_with_isolatedDeclarations,277:p.Default_exports_can_t_be_inferred_with_isolatedDeclarations,230:p.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations};return i;function i(D){if(gr(D,vf))return cn(D,p.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations);if((Im(D)||MS(D.parent))&&(m_(D)||mo(D)))return x(D);switch(w.type(D),D.kind){case 177:case 178:return o(D);case 167:case 304:case 305:return _(D);case 209:case 230:return u(D);case 174:case 180:case 218:case 219:case 262:return g(D);case 208:return m(D);case 172:case 260:return h(D);case 169:return S(D);case 303:return I(D.initializer);case 231:return T(D);default:return I(D)}}function s(D){let E=gr(D,O=>Ho(O)||Ii(O)||oi(O)||ds(O)||Bi(O));if(E)return Ho(E)?E:Bf(E)?gr(E,O=>xo(O)&&!lc(O)):Ii(E)?void 0:E}function o(D){let{getAccessor:E,setAccessor:O}=wS(D.symbol.declarations,D),F=(xm(D)?D.parameters[0]:D)??D,B=cn(F,n[D.kind]);return O&&Xs(B,cn(O,t[O.kind])),E&&Xs(B,cn(E,t[E.kind])),B}function c(D,E){let O=s(D);if(O){let F=Ho(O)||!O.name?"":oc(O.name,!1);Xs(E,cn(O,t[O.kind],F))}return E}function _(D){let E=cn(D,n[D.kind]);return c(D,E),E}function u(D){let E=cn(D,n[D.kind]);return c(D,E),E}function g(D){let E=cn(D,n[D.kind]);return c(D,E),Xs(E,cn(D,t[D.kind])),E}function m(D){return cn(D,p.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations)}function h(D){let E=cn(D,n[D.kind]),O=oc(D.name,!1);return Xs(E,cn(D,t[D.kind],O)),E}function S(D){if(xm(D.parent))return o(D.parent);let E=e.requiresAddingImplicitUndefined(D,D.parent);if(!E&&D.initializer)return I(D.initializer);let O=E?p.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:n[D.kind],F=cn(D,O),B=oc(D.name,!1);return Xs(F,cn(D,t[D.kind],B)),F}function T(D){return I(D,p.Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations)}function x(D){let E=cn(D,p.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations,oc(D,!1));return c(D,E),E}function I(D,E){let O=s(D),F;if(O){let B=Ho(O)||!O.name?"":oc(O.name,!1),G=gr(D.parent,$=>Ho($)||(Ii($)?"quit":!b_($)&&!a7($)&&!dI($)));O===G?(F=cn(D,E??n[O.kind]),Xs(F,cn(O,t[O.kind],B))):(F=cn(D,E??p.Expression_type_can_t_be_inferred_with_isolatedDeclarations),Xs(F,cn(O,t[O.kind],B)),Xs(F,cn(D,p.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit)))}else F=cn(D,E??p.Expression_type_can_t_be_inferred_with_isolatedDeclarations);return F}}function Lae(e,t,n){let i=e.getCompilerOptions(),s=An(nO(e,n),BF);return Ts(s,n)?RM(t,e,A,i,[n],[GU],!1).diagnostics:void 0}var EM=531469,NM=8;function GU(e){let t=()=>w.fail("Diagnostic emitted without context"),n=t,i=!0,s=!1,o=!1,c=!1,_=!1,u,g,m,h,{factory:S}=e,T=e.getEmitHost(),x=()=>{},I={trackSymbol:oe,reportInaccessibleThisError:Ge,reportInaccessibleUniqueSymbolError:H,reportCyclicStructureError:ve,reportPrivateInBaseOfClassExpression:de,reportLikelyUnsafeImportRequiredError:De,reportTruncationError:se,moduleResolverHost:T,reportNonlocalAugmentation:xe,reportNonSerializableProperty:_e,reportInferenceFallback:ne,pushErrorFallbackNode(ae){let lt=E,Y=x;x=()=>{x=Y,E=lt},E=ae},popErrorFallbackNode(){x()}},D,E,O,F,B,G,$=e.getEmitResolver(),K=e.getCompilerOptions(),U=Oae($),{stripInternal:me,isolatedDeclarations:te}=K;return ct;function V(ae){$.getPropertiesOfContainerFunction(ae).forEach(lt=>{if(P2(lt.valueDeclaration)){let Y=vn(lt.valueDeclaration)?lt.valueDeclaration.left:lt.valueDeclaration;e.addDiagnostic(cn(Y,p.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function))}})}function ne(ae){!te||g_(O)||Fr(ae)===O&&(oi(ae)&&$.isExpandoFunctionDeclaration(ae)?V(ae):e.addDiagnostic(U(ae)))}function ie(ae){if(ae.accessibility===0){if(ae.aliasesToMakeVisible)if(!g)g=ae.aliasesToMakeVisible;else for(let lt of ae.aliasesToMakeVisible)Sp(g,lt)}else if(ae.accessibility!==3){let lt=n(ae);if(lt)return lt.typeName?e.addDiagnostic(cn(ae.errorNode||lt.errorNode,lt.diagnosticMessage,oc(lt.typeName),ae.errorSymbolName,ae.errorModuleName)):e.addDiagnostic(cn(ae.errorNode||lt.errorNode,lt.diagnosticMessage,ae.errorSymbolName,ae.errorModuleName)),!0}return!1}function oe(ae,lt,Y){return ae.flags&262144?!1:ie($.isSymbolAccessible(ae,lt,Y,!0))}function de(ae){(D||E)&&e.addDiagnostic(Xs(cn(D||E,p.Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected,ae),...oi((D||E).parent)?[cn(D||E,p.Add_a_type_annotation_to_the_variable_0,ye())]:[]))}function ye(){return D?Co(D):E&&vs(E)?Co(vs(E)):E&&Ho(E)?E.isExportEquals?"export=":"default":"(Missing)"}function H(){(D||E)&&e.addDiagnostic(cn(D||E,p.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,ye(),"unique symbol"))}function ve(){(D||E)&&e.addDiagnostic(cn(D||E,p.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,ye()))}function Ge(){(D||E)&&e.addDiagnostic(cn(D||E,p.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,ye(),"this"))}function De(ae){(D||E)&&e.addDiagnostic(cn(D||E,p.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,ye(),ae))}function se(){(D||E)&&e.addDiagnostic(cn(D||E,p.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function xe(ae,lt,Y){var Ae;let Xe=(Ae=lt.declarations)==null?void 0:Ae.find(Dt=>Fr(Dt)===ae),st=An(Y.declarations,Dt=>Fr(Dt)!==ae);if(Xe&&st)for(let Dt of st)e.addDiagnostic(Xs(cn(Dt,p.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),cn(Xe,p.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function _e(ae){(D||E)&&e.addDiagnostic(cn(D||E,p.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,ae))}function tt(ae){let lt=n;n=Ae=>Ae.errorNode&&AM(Ae.errorNode)?r1(Ae.errorNode)(Ae):{diagnosticMessage:Ae.errorModuleName?p.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:p.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:Ae.errorNode||ae};let Y=$.getDeclarationStatementsForSourceFile(ae,EM,NM,I);return n=lt,Y}function ct(ae){if(ae.kind===307&&ae.isDeclarationFile)return ae;if(ae.kind===308){s=!0,F=[],B=[],G=[];let St=!1,vt=S.createBundle(hr(ae.sourceFiles,Ke=>{if(Ke.isDeclarationFile)return;if(St=St||Ke.hasNoDefaultLib,O=Ke,u=Ke,g=void 0,h=!1,m=new Map,n=t,c=!1,_=!1,Ae(Ke),mf(Ke)||wp(Ke)){o=!1,i=!1;let on=g_(Ke)?S.createNodeArray(tt(Ke)):Ur(Ke.statements,ui,Ii);return S.updateSourceFile(Ke,[S.createModuleDeclaration([S.createModifier(138)],S.createStringLiteral(Gz(e.getEmitHost(),Ke)),S.createModuleBlock(dt(S.createNodeArray(ns(on)),Ke.statements)))],!0,[],[],!1,[])}i=!0;let Vt=g_(Ke)?S.createNodeArray(tt(Ke)):Ur(Ke.statements,ui,Ii);return S.updateSourceFile(Ke,ns(Vt),!0,[],[],!1,[])})),Mt=Yn(iu(mE(ae,T,!0).declarationFilePath));return vt.syntheticFileReferences=Fe(Mt),vt.syntheticTypeReferences=st(),vt.syntheticLibReferences=Dt(),vt.hasNoDefaultLib=St,vt}i=!0,c=!1,_=!1,u=ae,O=ae,n=t,s=!1,o=!1,h=!1,g=void 0,m=new Map,F=[],B=[],G=[],Ae(O);let lt;if(g_(O))lt=S.createNodeArray(tt(ae));else{let St=Ur(ae.statements,ui,Ii);lt=dt(S.createNodeArray(ns(St)),ae.statements),xl(ae)&&(!o||c&&!_)&&(lt=dt(S.createNodeArray([...lt,rM(S)]),lt))}let Y=Yn(iu(mE(ae,T,!0).declarationFilePath));return S.updateSourceFile(ae,lt,!0,Fe(Y),st(),ae.hasNoDefaultLib,Dt());function Ae(St){F=Ki(F,hr(St.referencedFiles,vt=>[St,vt])),B=Ki(B,St.typeReferenceDirectives),G=Ki(G,St.libReferenceDirectives)}function Xe(St){let vt={...St};return vt.pos=-1,vt.end=-1,vt}function st(){return Vi(B,St=>{if(St.preserve)return Xe(St)})}function Dt(){return Vi(G,St=>{if(St.preserve)return Xe(St)})}function Fe(St){return Vi(F,([vt,Mt])=>{if(!Mt.preserve)return;let Ke=T.getSourceFileFromReference(vt,Mt);if(!Ke)return;let Vt;if(Ke.isDeclarationFile)Vt=Ke.fileName;else{if(s&&Ts(ae.sourceFiles,Ke))return;let kt=mE(Ke,T,!0);Vt=kt.declarationFilePath||kt.jsFilePath||Ke.fileName}if(!Vt)return;let on=Hx(St,Vt,T.getCurrentDirectory(),T.getCanonicalFileName,!1),Pe=Xe(Mt);return Pe.fileName=on,Pe})}}function le(ae){if(ae.kind===80)return ae;return ae.kind===207?S.updateArrayBindingPattern(ae,Ur(ae.elements,lt,sF)):S.updateObjectBindingPattern(ae,Ur(ae.elements,lt,Da));function lt(Y){return Y.kind===232?Y:(Y.propertyName&&pa(Y.propertyName)&&mo(Y.propertyName.expression)&&$t(Y.propertyName.expression,u),S.updateBindingElement(Y,Y.dotDotDotToken,Y.propertyName,le(Y.name),void 0))}}function Je(ae,lt){let Y;h||(Y=n,n=r1(ae));let Ae=S.updateParameterDeclaration(ae,BGe(S,ae,lt),ae.dotDotDotToken,le(ae.name),$.isOptionalParameter(ae)?ae.questionToken||S.createToken(58):void 0,Ie(ae,!0),Ne(ae));return h||(n=Y),Ae}function ee(ae){return oTe(ae)&&!!ae.initializer&&$.isLiteralConstDeclaration(Cs(ae))}function Ne(ae){if(ee(ae)){let lt=Cne(ae.initializer);return UO(lt)||ne(ae),$.createLiteralConstValue(Cs(ae,oTe),I)}}function Ie(ae,lt){if(!lt&&hf(ae,2)||ee(ae))return;if(!Ho(ae)&&!Da(ae)&&ae.type&&(!Bi(ae)||!$.requiresAddingImplicitUndefined(ae,u)))return et(ae.type,Rn,di);let Y=D;D=ae.name;let Ae;h||(Ae=n,AM(ae)&&(n=r1(ae)));let Xe;return VO(ae)?Xe=$.createTypeOfDeclaration(ae,u,EM,NM,I):Ns(ae)?Xe=$.createReturnTypeOfSignatureDeclaration(ae,u,EM,NM,I):w.assertNever(ae),D=Y,h||(n=Ae),Xe??S.createKeywordTypeNode(133)}function Ce(ae){switch(ae=Cs(ae),ae.kind){case 262:case 267:case 264:case 263:case 265:case 266:return!$.isDeclarationVisible(ae);case 260:return!bt(ae);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function Ve(ae){var lt;if(ae.body)return!0;let Y=(lt=ae.symbol.declarations)==null?void 0:lt.filter(Ae=>jc(Ae)&&!Ae.body);return!Y||Y.indexOf(ae)===Y.length-1}function bt(ae){return Fl(ae)?!1:Ws(ae.name)?pt(ae.name.elements,bt):$.isDeclarationVisible(ae)}function zt(ae,lt,Y){if(hf(ae,2))return S.createNodeArray();let Ae=hr(lt,Xe=>Je(Xe,Y));return Ae?S.createNodeArray(Ae,lt.hasTrailingComma):S.createNodeArray()}function ur(ae,lt){let Y;if(!lt){let Ae=xS(ae);Ae&&(Y=[Je(Ae)])}if(X_(ae)){let Ae;if(!lt){let Xe=uA(ae);Xe&&(Ae=Je(Xe))}Ae||(Ae=S.createParameterDeclaration(void 0,void 0,"value")),Y=jr(Y,Ae)}return S.createNodeArray(Y||qe)}function Or(ae,lt){return hf(ae,2)?void 0:Ur(lt,Rn,$o)}function _t(ae){return Mi(ae)||sd(ae)||nl(ae)||gl(ae)||hu(ae)||Ns(ae)||W0(ae)||Ck(ae)}function $t(ae,lt){let Y=$.isEntityNameVisible(ae,lt);ie(Y)}function Hr(ae,lt){return Lf(ae)&&Lf(lt)&&(ae.jsDoc=lt.jsDoc),dl(ae,Fm(lt))}function hi(ae,lt){if(lt){if(o=o||ae.kind!==267&&ae.kind!==205,Ha(lt)&&s){let Y=pre(e.getEmitHost(),$,ae);if(Y)return S.createStringLiteral(Y)}return lt}}function _s(ae){if($.isDeclarationVisible(ae))if(ae.moduleReference.kind===283){let lt=XP(ae);return S.updateImportEqualsDeclaration(ae,ae.modifiers,ae.isTypeOnly,ae.name,S.updateExternalModuleReference(ae.moduleReference,hi(ae,lt)))}else{let lt=n;return n=r1(ae),$t(ae.moduleReference,u),n=lt,ae}}function At(ae){if(!ae.importClause)return S.updateImportDeclaration(ae,ae.modifiers,ae.importClause,hi(ae,ae.moduleSpecifier),zn(ae.attributes));let lt=ae.importClause&&ae.importClause.name&&$.isDeclarationVisible(ae.importClause)?ae.importClause.name:void 0;if(!ae.importClause.namedBindings)return lt&&S.updateImportDeclaration(ae,ae.modifiers,S.updateImportClause(ae.importClause,ae.importClause.isTypeOnly,lt,void 0),hi(ae,ae.moduleSpecifier),zn(ae.attributes));if(ae.importClause.namedBindings.kind===274){let Ae=$.isDeclarationVisible(ae.importClause.namedBindings)?ae.importClause.namedBindings:void 0;return lt||Ae?S.updateImportDeclaration(ae,ae.modifiers,S.updateImportClause(ae.importClause,ae.importClause.isTypeOnly,lt,Ae),hi(ae,ae.moduleSpecifier),zn(ae.attributes)):void 0}let Y=Vi(ae.importClause.namedBindings.elements,Ae=>$.isDeclarationVisible(Ae)?Ae:void 0);if(Y&&Y.length||lt)return S.updateImportDeclaration(ae,ae.modifiers,S.updateImportClause(ae.importClause,ae.importClause.isTypeOnly,lt,Y&&Y.length?S.updateNamedImports(ae.importClause.namedBindings,Y):void 0),hi(ae,ae.moduleSpecifier),zn(ae.attributes));if($.isImportRequiredByAugmentation(ae))return te&&e.addDiagnostic(cn(ae,p.Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations)),S.updateImportDeclaration(ae,ae.modifiers,void 0,hi(ae,ae.moduleSpecifier),zn(ae.attributes))}function zn(ae){let lt=jI(ae);return ae&<!==void 0?ae:void 0}function ns(ae){for(;Dr(g);){let Y=g.shift();if(!kF(Y))return w.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${w.formatSyntaxKind(Y.kind)}`);let Ae=i;i=Y.parent&&Mi(Y.parent)&&!(xl(Y.parent)&&s);let Xe=sr(Y);i=Ae,m.set(T_(Y),Xe)}return Ur(ae,lt,Ii);function lt(Y){if(kF(Y)){let Ae=T_(Y);if(m.has(Ae)){let Xe=m.get(Ae);return m.delete(Ae),Xe&&((ks(Xe)?pt(Xe,aF):aF(Xe))&&(c=!0),Mi(Y.parent)&&(ks(Xe)?pt(Xe,C6):C6(Xe))&&(o=!0)),Xe}}return Y}}function Rn(ae){if(Rs(ae))return;if(Ul(ae)){if(Ce(ae))return;if(oy(ae)){if(te){if(!$.isDefinitelyReferenceToGlobalSymbolObject(ae.name.expression)){if(gl(ae.parent)||Sa(ae.parent)){e.addDiagnostic(cn(ae,p.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations));return}else if((hu(ae.parent)||v_(ae.parent))&&!mo(ae.name.expression)){e.addDiagnostic(cn(ae,p.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations));return}}}else if(!$.isLateBound(Cs(ae))||!mo(ae.name.expression))return}}if(Ns(ae)&&$.isImplementationOfOverload(ae)||oie(ae))return;let lt;_t(ae)&&(lt=u,u=ae);let Y=n,Ae=AM(ae),Xe=h,st=(ae.kind===187||ae.kind===200)&&ae.parent.kind!==265;if((xc(ae)||xd(ae))&&hf(ae,2))return ae.symbol&&ae.symbol.declarations&&ae.symbol.declarations[0]!==ae?void 0:Dt(S.createPropertyDeclaration(xs(ae),ae.name,void 0,void 0,void 0));if(Ae&&!h&&(n=r1(ae)),MS(ae)&&$t(ae.exprName,u),st&&(h=!0),JGe(ae))switch(ae.kind){case 233:{(m_(ae.expression)||mo(ae.expression))&&$t(ae.expression,u);let Fe=Ir(ae,Rn,e);return Dt(S.updateExpressionWithTypeArguments(Fe,Fe.expression,Fe.typeArguments))}case 183:{$t(ae.typeName,u);let Fe=Ir(ae,Rn,e);return Dt(S.updateTypeReferenceNode(Fe,Fe.typeName,Fe.typeArguments))}case 180:return Dt(S.updateConstructSignature(ae,Or(ae,ae.typeParameters),zt(ae,ae.parameters),Ie(ae)));case 176:{let Fe=S.createConstructorDeclaration(xs(ae),zt(ae,ae.parameters,0),void 0);return Dt(Fe)}case 174:{if(ji(ae.name))return Dt(void 0);let Fe=S.createMethodDeclaration(xs(ae),void 0,ae.name,ae.questionToken,Or(ae,ae.typeParameters),zt(ae,ae.parameters),Ie(ae),void 0);return Dt(Fe)}case 177:return ji(ae.name)?Dt(void 0):Dt(S.updateGetAccessorDeclaration(ae,xs(ae),ae.name,ur(ae,hf(ae,2)),Ie(ae),void 0));case 178:return ji(ae.name)?Dt(void 0):Dt(S.updateSetAccessorDeclaration(ae,xs(ae),ae.name,ur(ae,hf(ae,2)),void 0));case 172:return ji(ae.name)?Dt(void 0):Dt(S.updatePropertyDeclaration(ae,xs(ae),ae.name,ae.questionToken,Ie(ae),Ne(ae)));case 171:return ji(ae.name)?Dt(void 0):Dt(S.updatePropertySignature(ae,xs(ae),ae.name,ae.questionToken,Ie(ae)));case 173:return ji(ae.name)?Dt(void 0):Dt(S.updateMethodSignature(ae,xs(ae),ae.name,ae.questionToken,Or(ae,ae.typeParameters),zt(ae,ae.parameters),Ie(ae)));case 179:return Dt(S.updateCallSignature(ae,Or(ae,ae.typeParameters),zt(ae,ae.parameters),Ie(ae)));case 181:return Dt(S.updateIndexSignature(ae,xs(ae),zt(ae,ae.parameters),et(ae.type,Rn,di)||S.createKeywordTypeNode(133)));case 260:return Ws(ae.name)?Zn(ae.name):(st=!0,h=!0,Dt(S.updateVariableDeclaration(ae,ae.name,void 0,Ie(ae),Ne(ae))));case 168:return hn(ae)&&(ae.default||ae.constraint)?Dt(S.updateTypeParameterDeclaration(ae,ae.modifiers,ae.name,void 0,void 0)):Dt(Ir(ae,Rn,e));case 194:{let Fe=et(ae.checkType,Rn,di),St=et(ae.extendsType,Rn,di),vt=u;u=ae.trueType;let Mt=et(ae.trueType,Rn,di);u=vt;let Ke=et(ae.falseType,Rn,di);return w.assert(Fe),w.assert(St),w.assert(Mt),w.assert(Ke),Dt(S.updateConditionalTypeNode(ae,Fe,St,Mt,Ke))}case 184:return Dt(S.updateFunctionTypeNode(ae,Ur(ae.typeParameters,Rn,$o),zt(ae,ae.parameters),w.checkDefined(et(ae.type,Rn,di))));case 185:return Dt(S.updateConstructorTypeNode(ae,xs(ae),Ur(ae.typeParameters,Rn,$o),zt(ae,ae.parameters),w.checkDefined(et(ae.type,Rn,di))));case 205:return sy(ae)?Dt(S.updateImportTypeNode(ae,S.updateLiteralTypeNode(ae.argument,hi(ae,ae.argument.literal)),ae.attributes,ae.qualifier,Ur(ae.typeArguments,Rn,di),ae.isTypeOf)):Dt(ae);default:w.assertNever(ae,`Attempted to process unhandled node kind: ${w.formatSyntaxKind(ae.kind)}`)}return j2(ae)&&Qs(O,ae.pos).line===Qs(O,ae.end).line&&dn(ae,1),Dt(Ir(ae,Rn,e));function Dt(Fe){return Fe&&Ae&&oy(ae)&&Pi(ae),_t(ae)&&(u=lt),Ae&&!h&&(n=Y),st&&(h=Xe),Fe===ae?Fe:Fe&&En(Hr(Fe,ae),ae)}}function hn(ae){return ae.parent.kind===174&&hf(ae.parent,2)}function ui(ae){if(!zGe(ae)||Rs(ae))return;switch(ae.kind){case 278:return Mi(ae.parent)&&(o=!0),_=!0,S.updateExportDeclaration(ae,ae.modifiers,ae.isTypeOnly,ae.exportClause,hi(ae,ae.moduleSpecifier),zn(ae.attributes));case 277:{if(Mi(ae.parent)&&(o=!0),_=!0,ae.expression.kind===80)return ae;{let Y=S.createUniqueName("_default",16);n=()=>({diagnosticMessage:p.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:ae}),E=ae;let Ae=Ie(ae),Xe=S.createVariableDeclaration(Y,void 0,Ae,void 0);E=void 0;let st=S.createVariableStatement(i?[S.createModifier(138)]:[],S.createVariableDeclarationList([Xe],2));return Hr(st,ae),U4(ae),[st,S.updateExportAssignment(ae,ae.modifiers,Y)]}}}let lt=sr(ae);return m.set(T_(ae),lt),ae}function Ue(ae){if(Ol(ae)||hf(ae,2048)||!od(ae))return ae;let lt=S.createModifiersFromModifierFlags(r_(ae)&131039);return S.replaceModifiers(ae,lt)}function ht(ae,lt,Y,Ae){let Xe=S.updateModuleDeclaration(ae,lt,Y,Ae);if(e_(Xe)||Xe.flags&32)return Xe;let st=S.createModuleDeclaration(Xe.modifiers,Xe.name,Xe.body,Xe.flags|32);return En(st,Xe),dt(st,Xe),st}function sr(ae){if(g)for(;mP(g,ae););if(Rs(ae))return;switch(ae.kind){case 271:return _s(ae);case 272:return At(ae)}if(Ul(ae)&&Ce(ae)||zm(ae)||Ns(ae)&&$.isImplementationOfOverload(ae))return;let lt;_t(ae)&&(lt=u,u=ae);let Y=AM(ae),Ae=n;Y&&(n=r1(ae));let Xe=i;switch(ae.kind){case 265:{i=!1;let Dt=st(S.updateTypeAliasDeclaration(ae,xs(ae),ae.name,Ur(ae.typeParameters,Rn,$o),w.checkDefined(et(ae.type,Rn,di))));return i=Xe,Dt}case 264:return st(S.updateInterfaceDeclaration(ae,xs(ae),ae.name,Or(ae,ae.typeParameters),Nt(ae.heritageClauses),Ur(ae.members,Rn,uS)));case 262:{let Dt=st(S.updateFunctionDeclaration(ae,xs(ae),void 0,ae.name,Or(ae,ae.typeParameters),zt(ae,ae.parameters),Ie(ae),void 0));if(Dt&&$.isExpandoFunctionDeclaration(ae)&&Ve(ae)){let Fe=$.getPropertiesOfContainerFunction(ae);te&&V(ae);let St=Yb.createModuleDeclaration(void 0,Dt.name||S.createIdentifier("_default"),S.createModuleBlock([]),32);Xa(St,u),St.locals=ea(Fe),St.symbol=Fe[0].parent;let vt=[],Mt=Vi(Fe,pe=>{if(!P2(pe.valueDeclaration))return;let j=Li(pe.escapedName);if(!$_(j,99))return;n=r1(pe.valueDeclaration);let Re=$.createTypeOfDeclaration(pe.valueDeclaration,St,EM,NM|2,I);n=Ae;let q=d2(j),yt=q?S.getGeneratedNameForNode(pe.valueDeclaration):S.createIdentifier(j);q&&vt.push([yt,j]);let jt=S.createVariableDeclaration(yt,void 0,Re,void 0);return S.createVariableStatement(q?void 0:[S.createToken(95)],S.createVariableDeclarationList([jt]))});vt.length?Mt.push(S.createExportDeclaration(void 0,!1,S.createNamedExports(hr(vt,([pe,j])=>S.createExportSpecifier(!1,pe,j))))):Mt=Vi(Mt,pe=>S.replaceModifiers(pe,0));let Ke=S.createModuleDeclaration(xs(ae),ae.name,S.createModuleBlock(Mt),32);if(!hf(Dt,2048))return[Dt,Ke];let Vt=S.createModifiersFromModifierFlags(r_(Dt)&-2081|128),on=S.updateFunctionDeclaration(Dt,Vt,void 0,Dt.name,Dt.typeParameters,Dt.parameters,Dt.type,void 0),Pe=S.updateModuleDeclaration(Ke,Vt,Ke.name,Ke.body),kt=S.createExportAssignment(void 0,!1,Ke.name);return Mi(ae.parent)&&(o=!0),_=!0,[on,Pe,kt]}else return Dt}case 267:{i=!1;let Dt=ae.body;if(Dt&&Dt.kind===268){let Fe=c,St=_;_=!1,c=!1;let vt=Ur(Dt.statements,ui,Ii),Mt=ns(vt);ae.flags&33554432&&(c=!1),!xg(ae)&&!xr(Mt)&&!_&&(c?Mt=S.createNodeArray([...Mt,rM(S)]):Mt=Ur(Mt,Ue,Ii));let Ke=S.updateModuleBlock(Dt,Mt);i=Xe,c=Fe,_=St;let Vt=xs(ae);return st(ht(ae,Vt,mS(ae)?hi(ae,ae.name):ae.name,Ke))}else{i=Xe;let Fe=xs(ae);i=!1,et(Dt,ui);let St=T_(Dt),vt=m.get(St);return m.delete(St),st(ht(ae,Fe,ae.name,vt))}}case 263:{D=ae.name,E=ae;let Dt=S.createNodeArray(xs(ae)),Fe=Or(ae,ae.typeParameters),St=mh(ae),vt;if(St){let pe=n;vt=QN(ga(St.parameters,j=>{if(!ei(j,31)||Rs(j))return;if(n=r1(j),j.name.kind===80)return Hr(S.createPropertyDeclaration(xs(j),j.name,j.questionToken,Ie(j),Ne(j)),j);return Re(j.name);function Re(q){let yt;for(let jt of q.elements)Fl(jt)||(Ws(jt.name)&&(yt=Ki(yt,Re(jt.name))),yt=yt||[],yt.push(S.createPropertyDeclaration(xs(j),jt.name,void 0,Ie(jt),void 0)));return yt}})),n=pe}let Ke=pt(ae.members,pe=>!!pe.name&&ji(pe.name))?[S.createPropertyDeclaration(void 0,S.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,Vt=$.createLateBoundIndexSignatures(ae,u,EM,NM,I),on=Ki(Ki(Ki(Ke,Vt),vt),Ur(ae.members,Rn,rl)),Pe=S.createNodeArray(on),kt=Dm(ae);if(kt&&!mo(kt.expression)&&kt.expression.kind!==106){let pe=ae.name?Li(ae.name.escapedText):"default",j=S.createUniqueName(`${pe}_base`,16);n=()=>({diagnosticMessage:p.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:kt,typeName:ae.name});let Re=S.createVariableDeclaration(j,void 0,$.createTypeOfExpression(kt.expression,ae,EM,NM,I),void 0),q=S.createVariableStatement(i?[S.createModifier(138)]:[],S.createVariableDeclarationList([Re],2)),yt=S.createNodeArray(hr(ae.heritageClauses,jt=>{if(jt.token===96){let we=n;n=r1(jt.types[0]);let ut=S.updateHeritageClause(jt,hr(jt.types,Qt=>S.updateExpressionWithTypeArguments(Qt,j,Ur(Qt.typeArguments,Rn,di))));return n=we,ut}return S.updateHeritageClause(jt,Ur(S.createNodeArray(An(jt.types,we=>mo(we.expression)||we.expression.kind===106)),Rn,py))}));return[q,st(S.updateClassDeclaration(ae,Dt,ae.name,Fe,yt,Pe))]}else{let pe=Nt(ae.heritageClauses);return st(S.updateClassDeclaration(ae,Dt,ae.name,Fe,pe,Pe))}}case 243:return st(Zr(ae));case 266:return st(S.updateEnumDeclaration(ae,S.createNodeArray(xs(ae)),ae.name,S.createNodeArray(Vi(ae.members,Dt=>{if(Rs(Dt))return;let Fe=$.getEnumMemberValue(Dt),St=Fe?.value;te&&Dt.initializer&&Fe?.hasExternalReferences&&!pa(Dt.name)&&e.addDiagnostic(cn(Dt,p.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations));let vt=St===void 0?void 0:typeof St=="string"?S.createStringLiteral(St):St<0?S.createPrefixUnaryExpression(41,S.createNumericLiteral(-St)):S.createNumericLiteral(St);return Hr(S.updateEnumMember(Dt,Dt.name,vt),Dt)}))))}return w.assertNever(ae,`Unhandled top-level node in declaration emit: ${w.formatSyntaxKind(ae.kind)}`);function st(Dt){return _t(ae)&&(u=lt),Y&&(n=Ae),ae.kind===267&&(i=Xe),Dt===ae?Dt:(E=void 0,D=void 0,Dt&&En(Hr(Dt,ae),ae))}}function Zr(ae){if(!or(ae.declarationList.declarations,bt))return;let lt=Ur(ae.declarationList.declarations,Rn,oi);if(!Dr(lt))return;let Y=S.createNodeArray(xs(ae)),Ae;return W6(ae.declarationList)||j6(ae.declarationList)?(Ae=S.createVariableDeclarationList(lt,2),En(Ae,ae.declarationList),dt(Ae,ae.declarationList),dl(Ae,ae.declarationList)):Ae=S.updateVariableDeclarationList(ae.declarationList,lt),S.updateVariableStatement(ae,Y,Ae)}function Zn(ae){return Qp(Vi(ae.elements,lt=>Xn(lt)))}function Xn(ae){if(ae.kind!==232&&ae.name)return bt(ae)?Ws(ae.name)?Zn(ae.name):S.createVariableDeclaration(ae.name,void 0,Ie(ae),void 0):void 0}function Pi(ae){let lt;h||(lt=n,n=Fae(ae)),D=ae.name,w.assert(oy(ae));let Ae=ae.name.expression;$t(Ae,u),h||(n=lt),D=void 0}function Rs(ae){return!!me&&!!ae&<e(ae,O)}function oa(ae){return Ho(ae)||Xc(ae)}function xr(ae){return pt(ae,oa)}function xs(ae){let lt=r_(ae),Y=Ye(ae);return lt===Y?oE(ae.modifiers,Ae=>Vn(Ae,la),la):S.createModifiersFromModifierFlags(Y)}function Ye(ae){let lt=130030,Y=i&&!WGe(ae)?128:0,Ae=ae.parent.kind===307;return(!Ae||s&&Ae&&xl(ae.parent))&&(lt^=128,Y=0),aTe(ae,lt,Y)}function Nt(ae){return S.createNodeArray(An(hr(ae,lt=>S.updateHeritageClause(lt,Ur(S.createNodeArray(An(lt.types,Y=>mo(Y.expression)||lt.token===96&&Y.expression.kind===106)),Rn,py))),lt=>lt.types&&!!lt.types.length))}}function WGe(e){return e.kind===264}function BGe(e,t,n,i){return e.createModifiersFromModifierFlags(aTe(t,n,i))}function aTe(e,t=131070,n=0){let i=r_(e)&t|n;return i&2048&&!(i&32)&&(i^=32),i&2048&&i&128&&(i^=128),i}function oTe(e){switch(e.kind){case 172:case 171:return!hf(e,2);case 169:case 260:return!0}return!1}function zGe(e){switch(e.kind){case 262:case 267:case 271:case 264:case 263:case 265:case 266:case 243:case 272:case 278:case 277:return!0}return!1}function JGe(e){switch(e.kind){case 180:case 176:case 174:case 177:case 178:case 172:case 171:case 173:case 179:case 181:case 260:case 168:case 233:case 183:case 194:case 184:case 185:case 205:return!0}return!1}function GGe(e){switch(e){case 200:return JU;case 99:case 7:case 6:case 5:case 100:case 101:case 199:case 1:return Rae;case 4:return Mae;default:return zU}}var jae={scriptTransformers:qe,declarationTransformers:qe};function Wae(e,t,n){return{scriptTransformers:UGe(e,t,n),declarationTransformers:VGe(t)}}function UGe(e,t,n){if(n)return qe;let i=wa(e),s=n_(e),o=A4(e),c=[];return jn(c,t&&hr(t.before,lTe)),c.push(gae),e.experimentalDecorators&&c.push(vae),CO(e)&&c.push(Pae),i<99&&c.push(wae),!e.experimentalDecorators&&(i<99||!o)&&c.push(bae),c.push(hae),i<8&&c.push(Cae),i<7&&c.push(xae),i<6&&c.push(kae),i<5&&c.push(Tae),i<4&&c.push(Sae),i<3&&c.push(Aae),i<2&&(c.push(Eae),c.push(Nae)),c.push(GGe(s)),jn(c,t&&hr(t.after,lTe)),c}function VGe(e){let t=[];return t.push(GU),jn(t,e&&hr(e.afterDeclarations,$Ge)),t}function qGe(e){return t=>pie(t)?e.transformBundle(t):e.transformSourceFile(t)}function cTe(e,t){return n=>{let i=e(n);return typeof i=="function"?t(n,i):qGe(i)}}function lTe(e){return cTe(e,Xd)}function $Ge(e){return cTe(e,(t,n)=>n)}function dE(e,t){return t}function MM(e,t,n){n(e,t)}function RM(e,t,n,i,s,o,c){var _,u;let g=new Array(358),m,h,S,T=0,x=[],I=[],D=[],E=[],O=0,F=!1,B=[],G=0,$,K,U=dE,me=MM,te=0,V=[],ne={factory:n,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:Yu(()=>qne(ne)),startLexicalEnvironment:le,suspendLexicalEnvironment:Je,resumeLexicalEnvironment:ee,endLexicalEnvironment:Ne,setLexicalEnvironmentFlags:Ie,getLexicalEnvironmentFlags:Ce,hoistVariableDeclaration:_e,hoistFunctionDeclaration:tt,addInitializationStatement:ct,startBlockScope:Ve,endBlockScope:bt,addBlockScopedVariable:zt,requestEmitHelper:ur,readEmitHelpers:Or,enableSubstitution:H,enableEmitNotification:De,isSubstitutionEnabled:ve,isEmitNotificationEnabled:se,get onSubstituteNode(){return U},set onSubstituteNode($t){w.assert(te<1,"Cannot modify transformation hooks after initialization has completed."),w.assert($t!==void 0,"Value must not be 'undefined'"),U=$t},get onEmitNode(){return me},set onEmitNode($t){w.assert(te<1,"Cannot modify transformation hooks after initialization has completed."),w.assert($t!==void 0,"Value must not be 'undefined'"),me=$t},addDiagnostic($t){V.push($t)}};for(let $t of s)KJ(Fr(Cs($t)));dc("beforeTransform");let ie=o.map($t=>$t(ne)),oe=$t=>{for(let Hr of ie)$t=Hr($t);return $t};te=1;let de=[];for(let $t of s)(_=_n)==null||_.push(_n.Phase.Emit,"transformNodes",$t.kind===307?{path:$t.path}:{kind:$t.kind,pos:$t.pos,end:$t.end}),de.push((c?oe:ye)($t)),(u=_n)==null||u.pop();return te=2,dc("afterTransform"),Tp("transformTime","beforeTransform","afterTransform"),{transformed:de,substituteNode:Ge,emitNodeWithNotification:xe,isEmitNotificationEnabled:se,dispose:_t,diagnostics:V};function ye($t){return $t&&(!Mi($t)||!$t.isDeclarationFile)?oe($t):$t}function H($t){w.assert(te<2,"Cannot modify the transformation context after transformation has completed."),g[$t]|=1}function ve($t){return(g[$t.kind]&1)!==0&&(Na($t)&8)===0}function Ge($t,Hr){return w.assert(te<3,"Cannot substitute a node after the result is disposed."),Hr&&ve(Hr)&&U($t,Hr)||Hr}function De($t){w.assert(te<2,"Cannot modify the transformation context after transformation has completed."),g[$t]|=2}function se($t){return(g[$t.kind]&2)!==0||(Na($t)&4)!==0}function xe($t,Hr,hi){w.assert(te<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),Hr&&(se(Hr)?me($t,Hr,hi):hi($t,Hr))}function _e($t){w.assert(te>0,"Cannot modify the lexical environment during initialization."),w.assert(te<2,"Cannot modify the lexical environment after transformation has completed.");let Hr=dn(n.createVariableDeclaration($t),128);m?m.push(Hr):m=[Hr],T&1&&(T|=2)}function tt($t){w.assert(te>0,"Cannot modify the lexical environment during initialization."),w.assert(te<2,"Cannot modify the lexical environment after transformation has completed."),dn($t,2097152),h?h.push($t):h=[$t]}function ct($t){w.assert(te>0,"Cannot modify the lexical environment during initialization."),w.assert(te<2,"Cannot modify the lexical environment after transformation has completed."),dn($t,2097152),S?S.push($t):S=[$t]}function le(){w.assert(te>0,"Cannot modify the lexical environment during initialization."),w.assert(te<2,"Cannot modify the lexical environment after transformation has completed."),w.assert(!F,"Lexical environment is suspended."),x[O]=m,I[O]=h,D[O]=S,E[O]=T,O++,m=void 0,h=void 0,S=void 0,T=0}function Je(){w.assert(te>0,"Cannot modify the lexical environment during initialization."),w.assert(te<2,"Cannot modify the lexical environment after transformation has completed."),w.assert(!F,"Lexical environment is already suspended."),F=!0}function ee(){w.assert(te>0,"Cannot modify the lexical environment during initialization."),w.assert(te<2,"Cannot modify the lexical environment after transformation has completed."),w.assert(F,"Lexical environment is not suspended."),F=!1}function Ne(){w.assert(te>0,"Cannot modify the lexical environment during initialization."),w.assert(te<2,"Cannot modify the lexical environment after transformation has completed."),w.assert(!F,"Lexical environment is suspended.");let $t;if(m||h||S){if(h&&($t=[...h]),m){let Hr=n.createVariableStatement(void 0,n.createVariableDeclarationList(m));dn(Hr,2097152),$t?$t.push(Hr):$t=[Hr]}S&&($t?$t=[...$t,...S]:$t=[...S])}return O--,m=x[O],h=I[O],S=D[O],T=E[O],O===0&&(x=[],I=[],D=[],E=[]),$t}function Ie($t,Hr){T=Hr?T|$t:T&~$t}function Ce(){return T}function Ve(){w.assert(te>0,"Cannot start a block scope during initialization."),w.assert(te<2,"Cannot start a block scope after transformation has completed."),B[G]=$,G++,$=void 0}function bt(){w.assert(te>0,"Cannot end a block scope during initialization."),w.assert(te<2,"Cannot end a block scope after transformation has completed.");let $t=pt($)?[n.createVariableStatement(void 0,n.createVariableDeclarationList($.map(Hr=>n.createVariableDeclaration(Hr)),1))]:void 0;return G--,$=B[G],G===0&&(B=[]),$t}function zt($t){w.assert(G>0,"Cannot add a block scoped variable outside of an iteration body."),($||($=[])).push($t)}function ur($t){if(w.assert(te>0,"Cannot modify the transformation context during initialization."),w.assert(te<2,"Cannot modify the transformation context after transformation has completed."),w.assert(!$t.scoped,"Cannot request a scoped emit helper."),$t.dependencies)for(let Hr of $t.dependencies)ur(Hr);K=jr(K,$t)}function Or(){w.assert(te>0,"Cannot modify the transformation context during initialization."),w.assert(te<2,"Cannot modify the transformation context after transformation has completed.");let $t=K;return K=void 0,$t}function _t(){if(te<3){for(let $t of s)KJ(Fr(Cs($t)));m=void 0,x=void 0,h=void 0,I=void 0,U=void 0,me=void 0,K=void 0,te=3}}}var FM={factory:A,getCompilerOptions:()=>({}),getEmitResolver:ra,getEmitHost:ra,getEmitHelperFactory:ra,startLexicalEnvironment:to,resumeLexicalEnvironment:to,suspendLexicalEnvironment:to,endLexicalEnvironment:sS,setLexicalEnvironmentFlags:to,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:to,hoistFunctionDeclaration:to,addInitializationStatement:to,startBlockScope:to,endBlockScope:sS,addBlockScopedVariable:to,requestEmitHelper:to,readEmitHelpers:ra,enableSubstitution:to,enableEmitNotification:to,isSubstitutionEnabled:ra,isEmitNotificationEnabled:ra,onSubstituteNode:dE,onEmitNode:MM,addDiagnostic:to},uTe=QGe();function Bae(e){return nc(e,".tsbuildinfo")}function UU(e,t,n,i=!1,s,o){let c=ks(n)?n:nO(e,n,i),_=e.getCompilerOptions();if(!s)if(_.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=n1(_);if(u)return t({buildInfoPath:u},void 0)}}function n1(e){let t=e.configFilePath;if(!HGe(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;let n=e.outFile,i;if(n)i=i_(n);else{if(!t)return;let s=i_(t);i=e.outDir?e.rootDir?d0(e.outDir,Zf(e.rootDir,s,!0)):Bn(e.outDir,fl(s)):s}return i+".tsbuildinfo"}function HGe(e){return PS(e)||!!e.tscBuild}function zae(e,t){let n=e.outFile,i=e.emitDeclarationOnly?void 0:n,s=i&&_Te(i,e),o=t||K_(e)?i_(n)+".d.ts":void 0,c=o&&SO(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===308)return zae(i,n);{let s=dre(e.fileName,t,OM(e.fileName,i)),o=wp(e),c=o&&ty(e.fileName,s,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,_=i.emitDeclarationOnly||c?void 0:s,u=!_||wp(e)?void 0:_Te(_,i),g=n||K_(i)&&!o?mre(e.fileName,t):void 0,m=g&&SO(i)?g+".map":void 0;return{jsFilePath:_,sourceMapFilePath:u,declarationFilePath:g,declarationMapPath:m}}}function _Te(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function OM(e,t){return nc(e,".json")?".json":t.jsx===1&&Gc(e,[".jsx",".tsx"])?".jsx":Gc(e,[".mts",".mjs"])?".mjs":Gc(e,[".cts",".cjs"])?".cjs":".js"}function fTe(e,t,n,i){return n?d0(n,Zf(i(),e,t)):e}function LI(e,t,n,i=()=>Wk(t,n)){return VU(e,t.options,n,i)}function VU(e,t,n,i){return fy(fTe(e,n,t.declarationDir||t.outDir,i),tO(e))}function pTe(e,t,n,i=()=>Wk(t,n)){if(t.options.emitDeclarationOnly)return;let s=nc(e,".json"),o=qU(e,t.options,n,i);return!s||ty(e,o,w.checkDefined(t.options.configFilePath),n)!==0?o:void 0}function qU(e,t,n,i){return fy(fTe(e,n,t.outDir,i),OM(e,t))}function dTe(){let e;return{addOutput:t,getOutputs:n};function t(i){i&&(e||(e=[])).push(i)}function n(){return e||qe}}function mTe(e,t){let{jsFilePath:n,sourceMapFilePath:i,declarationFilePath:s,declarationMapPath:o}=zae(e.options,!1);t(n),t(i),t(s),t(o)}function gTe(e,t,n,i,s){if(Ll(t))return;let o=pTe(t,e,n,s);if(i(o),!nc(t,".json")&&(o&&e.options.sourceMap&&i(`${o}.map`),K_(e.options))){let c=LI(t,e,n,s);i(c),e.options.declarationMap&&i(`${c}.map`)}}function gE(e,t,n,i,s){let o;return e.rootDir?(o=as(e.rootDir,n),s?.(e.rootDir)):e.composite&&e.configFilePath?(o=Yn(iu(e.configFilePath)),s?.(o)):o=Qae(t(),n,i),o&&o[o.length-1]!==Fo&&(o+=Fo),o}function Wk({options:e,fileNames:t},n){return gE(e,()=>An(t,i=>!(e.noEmitForJsFiles&&Gc(i,aI))&&!Ll(i)),Yn(iu(w.checkDefined(e.configFilePath))),fu(!n))}function l5(e,t){let{addOutput:n,getOutputs:i}=dTe();if(e.options.outFile)mTe(e,n);else{let s=Yu(()=>Wk(e,t));for(let o of e.fileNames)gTe(e,o,t,n,s)}return n(n1(e.options)),i()}function hTe(e,t,n){t=na(t),w.assert(Ts(e.fileNames,t),"Expected fileName to be present in command line");let{addOutput:i,getOutputs:s}=dTe();return e.options.outFile?mTe(e,i):gTe(e,t,n,i),s()}function $U(e,t){if(e.options.outFile){let{jsFilePath:s,declarationFilePath:o}=zae(e.options,!1);return w.checkDefined(s||o,`project ${e.options.configFilePath} expected to have at least one output`)}let n=Yu(()=>Wk(e,t));for(let s of e.fileNames){if(Ll(s))continue;let o=pTe(s,e,t,n);if(o)return o;if(!nc(s,".json")&&K_(e.options))return LI(s,e,t,n)}let i=n1(e.options);return i||w.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function HU(e,t){return!!t&&!!e}function QU(e,t,n,{scriptTransformers:i,declarationTransformers:s},o,c,_,u){var g=t.getCompilerOptions(),m=g.sourceMap||g.inlineSourceMap||SO(g)?[]:void 0,h=g.listEmittedFiles?[]:void 0,S=cA(),T=nv(g),x=y4(T),{enter:I,exit:D}=JW("printTime","beforePrint","afterPrint"),E=!1;return I(),UU(t,O,nO(t,n,_),_,c,!n&&!u),D(),{emitSkipped:E,diagnostics:S.getDiagnostics(),emittedFiles:h,sourceMaps:m};function O({jsFilePath:ie,sourceMapFilePath:oe,declarationFilePath:de,declarationMapPath:ye,buildInfoPath:H},ve){var Ge,De,se,xe,_e,tt;(Ge=_n)==null||Ge.push(_n.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:ie}),B(ve,ie,oe),(De=_n)==null||De.pop(),(se=_n)==null||se.push(_n.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:de}),G(ve,de,ye),(xe=_n)==null||xe.pop(),(_e=_n)==null||_e.push(_n.Phase.Emit,"emitBuildInfo",{buildInfoPath:H}),F(H),(tt=_n)==null||tt.pop()}function F(ie){if(!ie||n)return;if(t.isEmitBlocked(ie)){E=!0;return}let oe=t.getBuildInfo()||{version:Ui};sO(t,S,ie,Jae(oe),!1,void 0,{buildInfo:oe}),h?.push(ie)}function B(ie,oe,de){if(!ie||o||!oe)return;if(t.isEmitBlocked(oe)||g.noEmit){E=!0;return}(Mi(ie)?[ie]:An(ie.sourceFiles,BF)).forEach(Ge=>{(g.noCheck||!CA(Ge,g))&&K(Ge)});let ye=RM(e,t,A,g,[ie],i,!1),H={removeComments:g.removeComments,newLine:g.newLine,noEmitHelpers:g.noEmitHelpers,module:n_(g),moduleResolution:Bu(g),target:wa(g),sourceMap:g.sourceMap,inlineSourceMap:g.inlineSourceMap,inlineSources:g.inlineSources,extendedDiagnostics:g.extendedDiagnostics},ve=$0(H,{hasGlobalName:e.hasGlobalName,onEmitNode:ye.emitNodeWithNotification,isEmitNotificationEnabled:ye.isEmitNotificationEnabled,substituteNode:ye.substituteNode});w.assert(ye.transformed.length===1,"Should only see one output from the transform"),U(oe,de,ye,ve,g),ye.dispose(),h&&(h.push(oe),de&&h.push(de))}function G(ie,oe,de){if(!ie||o===0)return;if(!oe){(o||g.emitDeclarationOnly)&&(E=!0);return}let ye=Mi(ie)?[ie]:ie.sourceFiles,H=_?ye:An(ye,BF),ve=g.outFile?[A.createBundle(H)]:H;H.forEach(se=>{(o&&!K_(g)||g.noCheck||HU(o,_)||!CA(se,g))&&$(se)});let Ge=RM(e,t,A,g,ve,s,!1);if(Dr(Ge.diagnostics))for(let se of Ge.diagnostics)S.add(se);let De=!!Ge.diagnostics&&!!Ge.diagnostics.length||!!t.isEmitBlocked(oe)||!!g.noEmit;if(E=E||De,!De||_){w.assert(Ge.transformed.length===1,"Should only see one output from the decl transform");let se={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},xe=$0(se,{hasGlobalName:e.hasGlobalName,onEmitNode:Ge.emitNodeWithNotification,isEmitNotificationEnabled:Ge.isEmitNotificationEnabled,substituteNode:Ge.substituteNode}),_e=U(oe,de,Ge,xe,{sourceMap:se.sourceMap,sourceRoot:g.sourceRoot,mapRoot:g.mapRoot,extendedDiagnostics:g.extendedDiagnostics});h&&(_e&&h.push(oe),de&&h.push(de))}Ge.dispose()}function $(ie){if(Ho(ie)){ie.expression.kind===80&&e.collectLinkedAliases(ie.expression,!0);return}else if(zu(ie)){e.collectLinkedAliases(ie.propertyName||ie.name,!0);return}Es(ie,$)}function K(ie){g_(ie)||q2(ie,oe=>{if(Ol(oe)&&!(tv(oe)&32)||sc(oe))return"skip";e.markLinkedReferences(oe)})}function U(ie,oe,de,ye,H){let ve=de.transformed[0],Ge=ve.kind===308?ve:void 0,De=ve.kind===307?ve:void 0,se=Ge?Ge.sourceFiles:[De],xe;me(H,ve)&&(xe=Yse(t,fl(iu(ie)),te(H),V(H,ie,De),H)),Ge?ye.writeBundle(Ge,x,xe):ye.writeFile(De,x,xe);let _e;if(xe){m&&m.push({inputSourceFileNames:xe.getSources(),sourceMap:xe.toJSON()});let le=ne(H,xe,ie,oe,De);if(le&&(x.isAtStartOfLine()||x.rawWrite(T),_e=x.getTextPos(),x.writeComment(`//# sourceMappingURL=${le}`)),oe){let Je=xe.toString();sO(t,S,oe,Je,!1,se)}}else x.writeLine();let tt=x.getText(),ct={sourceMapUrlPos:_e,diagnostics:de.diagnostics};return sO(t,S,ie,tt,!!g.emitBOM,se,ct),x.clear(),!ct.skippedDtsWrite}function me(ie,oe){return(ie.sourceMap||ie.inlineSourceMap)&&(oe.kind!==307||!nc(oe.fileName,".json"))}function te(ie){let oe=iu(ie.sourceRoot||"");return oe&&El(oe)}function V(ie,oe,de){if(ie.sourceRoot)return t.getCommonSourceDirectory();if(ie.mapRoot){let ye=iu(ie.mapRoot);return de&&(ye=Yn(iO(de.fileName,t,ye))),Bd(ye)===0&&(ye=Bn(t.getCommonSourceDirectory(),ye)),ye}return Yn(na(oe))}function ne(ie,oe,de,ye,H){if(ie.inlineSourceMap){let Ge=oe.toString();return`data:application/json;base64,${Ere(Al,Ge)}`}let ve=fl(iu(w.checkDefined(ye)));if(ie.mapRoot){let Ge=iu(ie.mapRoot);return H&&(Ge=Yn(iO(H.fileName,t,Ge))),Bd(Ge)===0?(Ge=Bn(t.getCommonSourceDirectory(),Ge),encodeURI(Hx(Yn(na(de)),Bn(Ge,ve),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(Bn(Ge,ve))}return encodeURI(ve)}}function Jae(e){return JSON.stringify(e)}function KU(e,t){return iJ(e,t)}var Gae={hasGlobalName:ra,getReferencedExportContainer:ra,getReferencedImportDeclaration:ra,getReferencedDeclarationWithCollidingName:ra,isDeclarationWithCollidingName:ra,isValueAliasDeclaration:ra,isReferencedAliasDeclaration:ra,isTopLevelValueImportEqualsWithEntityName:ra,hasNodeCheckFlag:ra,isDeclarationVisible:ra,isLateBound:e=>!1,collectLinkedAliases:ra,markLinkedReferences:ra,isImplementationOfOverload:ra,requiresAddingImplicitUndefined:ra,isExpandoFunctionDeclaration:ra,getPropertiesOfContainerFunction:ra,createTypeOfDeclaration:ra,createReturnTypeOfSignatureDeclaration:ra,createTypeOfExpression:ra,createLiteralConstValue:ra,isSymbolAccessible:ra,isEntityNameVisible:ra,getConstantValue:ra,getEnumMemberValue:ra,getReferencedValueDeclaration:ra,getReferencedValueDeclarations:ra,getTypeReferenceSerializationKind:ra,isOptionalParameter:ra,isArgumentsLocalBinding:ra,getExternalModuleFileFromDeclaration:ra,isLiteralConstDeclaration:ra,getJsxFactoryEntity:ra,getJsxFragmentFactoryEntity:ra,isBindingCapturedByNode:ra,getDeclarationStatementsForSourceFile:ra,isImportRequiredByAugmentation:ra,isDefinitelyReferenceToGlobalSymbolObject:ra,createLateBoundIndexSignatures:ra},Uae=Yu(()=>$0({})),qS=Yu(()=>$0({removeComments:!0})),Vae=Yu(()=>$0({removeComments:!0,neverAsciiEscape:!0})),XU=Yu(()=>$0({removeComments:!0,omitTrailingSemicolon:!0}));function $0(e={},t={}){var{hasGlobalName:n,onEmitNode:i=MM,isEmitNotificationEnabled:s,substituteNode:o=dE,onBeforeEmitNode:c,onAfterEmitNode:_,onBeforeEmitNodeArray:u,onAfterEmitNodeArray:g,onBeforeEmitToken:m,onAfterEmitToken:h}=t,S=!!e.extendedDiagnostics,T=!!e.omitBraceSourceMapPositions,x=nv(e),I=n_(e),D=new Map,E,O,F,B,G,$,K,U,me,te,V,ne,ie,oe,de,ye=e.preserveSourceNewlines,H,ve,Ge,De=sm,se,xe=!0,_e,tt,ct=-1,le,Je=-1,ee=-1,Ne=-1,Ie=-1,Ce,Ve,bt=!1,zt=!!e.removeComments,ur,Or,{enter:_t,exit:$t}=wve(S,"commentTime","beforeComment","afterComment"),Hr=A.parenthesizer,hi={select:C=>C===0?Hr.parenthesizeLeadingTypeArgument:void 0},_s=Qc();return Rs(),{printNode:At,printList:zn,printFile:Rn,printBundle:ns,writeNode:hn,writeList:ui,writeFile:ht,writeBundle:Ue};function At(C,ue,xt){switch(C){case 0:w.assert(Mi(ue),"Expected a SourceFile node.");break;case 2:w.assert(je(ue),"Expected an Identifier node.");break;case 1:w.assert(gt(ue),"Expected an Expression node.");break}switch(ue.kind){case 307:return Rn(ue);case 308:return ns(ue)}return hn(C,ue,xt,sr()),Zr()}function zn(C,ue,xt){return ui(C,ue,xt,sr()),Zr()}function ns(C){return Ue(C,sr(),void 0),Zr()}function Rn(C){return ht(C,sr(),void 0),Zr()}function hn(C,ue,xt,_r){let ai=ve;Pi(_r,void 0),Zn(C,ue,xt),Rs(),ve=ai}function ui(C,ue,xt,_r){let ai=ve;Pi(_r,void 0),xt&&Xn(xt),Io(void 0,ue,C),Rs(),ve=ai}function Ue(C,ue,xt){se=!1;let _r=ve;Pi(ue,xt),xC(C),Lg(C),Vt(C),$e(C);for(let ai of C.sourceFiles)Zn(0,ai,ai);Rs(),ve=_r}function ht(C,ue,xt){se=!0;let _r=ve;Pi(ue,xt),xC(C),Lg(C),Zn(0,C,C),Rs(),ve=_r}function sr(){return Ge||(Ge=y4(x))}function Zr(){let C=Ge.getText();return Ge.clear(),C}function Zn(C,ue,xt){xt&&Xn(xt),Y(C,ue,void 0)}function Xn(C){E=C,Ce=void 0,Ve=void 0,C&&cm(C)}function Pi(C,ue){C&&e.omitTrailingSemicolon&&(C=Jz(C)),ve=C,_e=ue,xe=!ve||!_e}function Rs(){O=[],F=[],B=[],G=new Set,$=[],K=new Map,U=[],me=0,te=[],V=0,ne=[],ie=void 0,oe=[],de=void 0,E=void 0,Ce=void 0,Ve=void 0,Pi(void 0,void 0)}function oa(){return Ce||(Ce=nh(w.checkDefined(E)))}function xr(C,ue){C!==void 0&&Y(4,C,ue)}function xs(C){C!==void 0&&Y(2,C,void 0)}function Ye(C,ue){C!==void 0&&Y(1,C,ue)}function Nt(C){Y(ya(C)?6:4,C)}function ae(C){ye&&Sd(C)&4&&(ye=!1)}function lt(C){ye=C}function Y(C,ue,xt){Or=xt,st(0,C,ue)(C,ue),Or=void 0}function Ae(C){return!zt&&!Mi(C)}function Xe(C){return!xe&&!Mi(C)&&!WF(C)}function st(C,ue,xt){switch(C){case 0:if(i!==MM&&(!s||s(xt)))return Fe;case 1:if(o!==dE&&(ur=o(ue,xt)||xt)!==xt)return Or&&(ur=Or(ur)),Ke;case 2:if(Ae(xt))return lx;case 3:if(Xe(xt))return ob;case 4:return St;default:return w.assertNever(C)}}function Dt(C,ue,xt){return st(C+1,ue,xt)}function Fe(C,ue){let xt=Dt(0,C,ue);i(C,ue,xt)}function St(C,ue){if(c?.(ue),ye){let xt=ye;ae(ue),vt(C,ue),lt(xt)}else vt(C,ue);_?.(ue),Or=void 0}function vt(C,ue,xt=!0){if(xt){let _r=YJ(ue);if(_r)return pe(C,ue,_r)}if(C===0)return uT(Zs(ue,Mi));if(C===2)return q(Zs(ue,je));if(C===6)return kt(Zs(ue,ya),!0);if(C===3)return Mt(Zs(ue,$o));if(C===7)return Pf(Zs(ue,Dk));if(C===5)return w.assertNode(ue,cG),Km(!0);if(C===4){switch(ue.kind){case 16:case 17:case 18:return kt(ue,!1);case 80:return q(ue);case 81:return yt(ue);case 166:return jt(ue);case 167:return ut(ue);case 168:return Qt(ue);case 169:return en(ue);case 170:return Pr(ue);case 171:return $r(ue);case 172:return it(ue);case 173:return Tt(ue);case 174:return Ut(ue);case 175:return Ot(ue);case 176:return vr(ue);case 177:case 178:return ar(ue);case 179:return Gt(ue);case 180:return dr(ue);case 181:return Sr(ue);case 182:return si(ue);case 183:return zs(ue);case 184:return ta(ue);case 185:return il(ue);case 186:return Qo(ue);case 187:return Oa(ue);case 188:return Zo(ue);case 189:return ms(ue);case 190:return Ba(ue);case 192:return La(ue);case 193:return Ht(ue);case 194:return fo(ue);case 195:return sl(ue);case 196:return wc(ue);case 233:return If(ue);case 197:return cu();case 198:return ec(ue);case 199:return Ic(ue);case 200:return N(ue);case 201:return Oe(ue);case 202:return Ys(ue);case 203:return ft(ue);case 204:return kr(ue);case 205:return qt(ue);case 206:return Br(ue);case 207:return Hn(ue);case 208:return pn(ue);case 239:return Ih(ue);case 240:return tr();case 241:return _p(ue);case 243:return o_(ue);case 242:return Km(!1);case 244:return Jf(ue);case 245:return Dh(ue);case 246:return at(ue);case 247:return Kt(ue);case 248:return Xt(ue);case 249:return Ar(ue);case 250:return Yr(ue);case 251:return _i(ue);case 252:return Ji(ue);case 253:return bi(ue);case 254:return Zi(ue);case 255:return gs(ue);case 256:return Uo(ue);case 257:return _a(ue);case 258:return vl(ue);case 259:return Df(ue);case 260:return Lp(ue);case 261:return tm(ue);case 262:return ky(ue);case 263:return Sv(ue);case 264:return rt(ue);case 265:return Lt(ue);case 266:return cr(ue);case 267:return qr(ue);case 268:return Sn(ue);case 269:return zr(ue);case 270:return Mg(ue);case 271:return bn(ue);case 272:return fs(ue);case 273:return ti(ue);case 274:return qi(ue);case 280:return Tv(ue);case 275:return Ls(ue);case 276:return Ql(ue);case 277:return fp(ue);case 278:return pp(ue);case 279:return Rg(ue);case 281:return kv(ue);case 300:return Ng(ue);case 301:return Ad(ue);case 282:return;case 283:return eN(ue);case 12:return Kk(ue);case 286:case 289:return mD(ue);case 287:case 290:return SC(ue);case 291:return gD(ue);case 292:return oT(ue);case 293:return Xk(ue);case 294:return xv(ue);case 295:return xy(ue);case 296:return g1(ue);case 297:return eb(ue);case 298:return lT(ue);case 299:return Cv(ue);case 303:return za(ue);case 304:return h1(ue);case 305:return tN(ue);case 306:return tb(ue);case 307:return uT(ue);case 308:return w.fail("Bundles should be printed using printBundle");case 309:return Og(ue);case 310:return ef(ue);case 312:return Tn("*");case 313:return Tn("?");case 314:return Bc(ue);case 315:return xi(ue);case 316:return bs(ue);case 317:return uc(ue);case 191:case 318:return Cf(ue);case 319:return;case 320:return Ah(ue);case 322:return lu(ue);case 323:return Nh(ue);case 327:case 332:case 337:return rb(ue);case 328:case 329:return Af(ue);case 330:case 331:return;case 333:case 334:case 335:case 336:return;case 338:return Zk(ue);case 339:return nm(ue);case 341:case 348:return tf(ue);case 340:case 342:case 343:case 344:case 349:case 350:return Eh(ue);case 345:return bl(ue);case 346:return wv(ue);case 347:return jp(ue);case 351:return z_(ue);case 353:case 354:return}if(gt(ue)&&(C=1,o!==dE)){let _r=o(C,ue)||ue;_r!==ue&&(ue=_r,Or&&(ue=Or(ue)))}}if(C===1)switch(ue.kind){case 9:case 10:return Pe(ue);case 11:case 14:case 15:return kt(ue,!1);case 80:return q(ue);case 81:return yt(ue);case 209:return Lr(ue);case 210:return Ci(ue);case 211:return Ai(ue);case 212:return Ta(ue);case 213:return Go(ue);case 214:return Dc(ue);case 215:return $c(ue);case 216:return Eo(ue);case 217:return Hc(ue);case 218:return wf(ue);case 219:return bu(ue);case 220:return Ee(ue);case 221:return Wt(ue);case 222:return sn(ue);case 223:return ts(ue);case 224:return Js(ue);case 225:return Wo(ue);case 226:return _s(ue);case 227:return hc(ue);case 228:return yc(ue);case 229:return Yc(ue);case 230:return wl(ue);case 231:return Il(ue);case 232:return;case 234:return C_(ue);case 235:return Pd(ue);case 233:return If(ue);case 238:return zf(ue);case 236:return Qm(ue);case 237:return w.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return bC(ue);case 285:return dD(ue);case 288:return aT(ue);case 352:return w.fail("SyntaxList should not be printed");case 353:return;case 355:return kC(ue);case 356:return Pv(ue);case 357:return w.fail("SyntheticReferenceExpression should not be printed")}if(F_(ue.kind))return dp(ue,ws);if(RB(ue.kind))return dp(ue,Tn);w.fail(`Unhandled SyntaxKind: ${w.formatSyntaxKind(ue.kind)}.`)}function Mt(C){xr(C.name),gn(),ws("in"),gn(),xr(C.constraint)}function Ke(C,ue){let xt=Dt(1,C,ue);w.assertIsDefined(ur),ue=ur,ur=void 0,xt(C,ue)}function Vt(C){let ue=!1,xt=C.kind===308?C:void 0;if(xt&&I===0)return;let _r=xt?xt.sourceFiles.length:1;for(let ai=0;ai<_r;ai++){let wi=xt?xt.sourceFiles[ai]:C,is=Mi(wi)?wi:E,Ss=e.noEmitHelpers||!!is&&Pie(is),Ca=Mi(wi)&&!se,w_=on(wi);if(w_)for(let vc of w_){if(vc.scoped){if(xt)continue}else{if(Ss)continue;if(Ca){if(D.get(vc.name))continue;D.set(vc.name,!0)}}typeof vc.text=="string"?am(vc.text):am(vc.text(SD)),ue=!0}}return ue}function on(C){let ue=XJ(C);return ue&&lf(ue,$ne)}function Pe(C){kt(C,!1)}function kt(C,ue){let xt=fT(C,void 0,e.neverAsciiEscape,ue);(e.sourceMap||e.inlineSourceMap)&&(C.kind===11||v0(C.kind))?CC(xt):sb(xt)}function pe(C,ue,xt){switch(xt.kind){case 1:j(C,ue,xt);break;case 0:Re(C,ue,xt);break}}function j(C,ue,xt){wC(`\${${xt.order}:`),vt(C,ue,!1),wC("}")}function Re(C,ue,xt){w.assert(ue.kind===242,`A tab stop cannot be attached to a node of kind ${w.formatSyntaxKind(ue.kind)}.`),w.assert(C!==5,"A tab stop cannot be attached to an embedded statement."),wC(`$${xt.order}`)}function q(C){(C.symbol?hD:De)(Rv(C,!1),C.symbol),Io(C,Sk(C),53776)}function yt(C){De(Rv(C,!1))}function jt(C){we(C.left),Tn("."),xr(C.right)}function we(C){C.kind===80?Ye(C):xr(C)}function ut(C){Tn("["),Ye(C.expression,Hr.parenthesizeExpressionOfComputedPropertyName),Tn("]")}function Qt(C){Fh(C,C.modifiers),xr(C.name),C.constraint&&(gn(),ws("extends"),gn(),xr(C.constraint)),C.default&&(gn(),Ev("="),gn(),xr(C.default))}function en(C){Kl(C,C.modifiers,!0),xr(C.dotDotDotToken),da(C.name,nx),xr(C.questionToken),C.parent&&C.parent.kind===317&&!C.name?xr(C.type):Oh(C.type),nb(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 Pr(C){Tn("@"),Ye(C.expression,Hr.parenthesizeLeftSideOfAccess)}function $r(C){Fh(C,C.modifiers),da(C.name,yD),xr(C.questionToken),Oh(C.type),$u()}function it(C){Kl(C,C.modifiers,!0),xr(C.name),xr(C.questionToken),xr(C.exclamationToken),Oh(C.type),nb(C.initializer,C.type?C.type.end:C.questionToken?C.questionToken.end:C.name.end,C),$u()}function Tt(C){Fh(C,C.modifiers),xr(C.name),xr(C.questionToken),Z_(C,_d,Xm)}function Ut(C){Kl(C,C.modifiers,!0),xr(C.asteriskToken),xr(C.name),xr(C.questionToken),Z_(C,_d,rm)}function Ot(C){ws("static"),rg(C),Gf(C.body),Iy(C)}function vr(C){Kl(C,C.modifiers,!1),ws("constructor"),Z_(C,_d,rm)}function ar(C){let ue=Kl(C,C.modifiers,!0),xt=C.kind===177?139:153;L(xt,ue,ws,C),gn(),xr(C.name),Z_(C,_d,rm)}function Gt(C){Z_(C,_d,Xm)}function dr(C){ws("new"),gn(),Z_(C,_d,Xm)}function Sr(C){Kl(C,C.modifiers,!1),tx(C,C.parameters),Oh(C.type),$u()}function kr(C){xr(C.type),xr(C.literal)}function tr(){$u()}function si(C){C.assertsModifier&&(xr(C.assertsModifier),gn()),xr(C.parameterName),C.type&&(gn(),ws("is"),gn(),xr(C.type))}function zs(C){xr(C.typeName),jg(C,C.typeArguments)}function ta(C){Z_(C,Os,qc)}function Os(C){ib(C,C.typeParameters),c_(C,C.parameters),gn(),Tn("=>")}function qc(C){gn(),xr(C.type)}function uc(C){ws("function"),$i(C,C.parameters),Tn(":"),xr(C.type)}function Bc(C){Tn("?"),xr(C.type)}function xi(C){Tn("!"),xr(C.type)}function bs(C){xr(C.type),Tn("=")}function il(C){Fh(C,C.modifiers),ws("new"),gn(),Z_(C,Os,qc)}function Qo(C){ws("typeof"),gn(),xr(C.exprName),jg(C,C.typeArguments)}function Oa(C){rg(C),or(C.members,ax),Tn("{");let ue=Na(C)&1?768:32897;Io(C,C.members,ue|524288),Tn("}"),Iy(C)}function Zo(C){xr(C.elementType,Hr.parenthesizeNonArrayTypeOfPostfixType),Tn("["),Tn("]")}function Cf(C){Tn("..."),xr(C.type)}function ms(C){L(23,C.pos,Tn,C);let ue=Na(C)&1?528:657;Io(C,C.elements,ue|524288,Hr.parenthesizeElementTypeOfTupleType),L(24,C.elements.end,Tn,C)}function Ys(C){xr(C.dotDotDotToken),xr(C.name),xr(C.questionToken),L(59,C.name.end,Tn,C),gn(),xr(C.type)}function Ba(C){xr(C.type,Hr.parenthesizeTypeOfOptionalType),Tn("?")}function La(C){Io(C,C.types,516,Hr.parenthesizeConstituentTypeOfUnionType)}function Ht(C){Io(C,C.types,520,Hr.parenthesizeConstituentTypeOfIntersectionType)}function fo(C){xr(C.checkType,Hr.parenthesizeCheckTypeOfConditionalType),gn(),ws("extends"),gn(),xr(C.extendsType,Hr.parenthesizeExtendsTypeOfConditionalType),gn(),Tn("?"),gn(),xr(C.trueType),gn(),Tn(":"),gn(),xr(C.falseType)}function sl(C){ws("infer"),gn(),xr(C.typeParameter)}function wc(C){Tn("("),xr(C.type),Tn(")")}function cu(){ws("this")}function ec(C){Lh(C.operator,ws),gn();let ue=C.operator===148?Hr.parenthesizeOperandOfReadonlyTypeOperator:Hr.parenthesizeOperandOfTypeOperator;xr(C.type,ue)}function Ic(C){xr(C.objectType,Hr.parenthesizeNonArrayTypeOfPostfixType),Tn("["),xr(C.indexType),Tn("]")}function N(C){let ue=Na(C);Tn("{"),ue&1?gn():(l_(),Wg()),C.readonlyToken&&(xr(C.readonlyToken),C.readonlyToken.kind!==148&&ws("readonly"),gn()),Tn("["),Y(3,C.typeParameter),C.nameType&&(gn(),ws("as"),gn(),xr(C.nameType)),Tn("]"),C.questionToken&&(xr(C.questionToken),C.questionToken.kind!==58&&Tn("?")),Tn(":"),gn(),xr(C.type),$u(),ue&1?gn():(l_(),Ed()),Io(C,C.members,2),Tn("}")}function Oe(C){Ye(C.literal)}function ft(C){xr(C.head),Io(C,C.templateSpans,262144)}function qt(C){C.isTypeOf&&(ws("typeof"),gn()),ws("import"),Tn("("),xr(C.argument),C.attributes&&(Tn(","),gn(),Y(7,C.attributes)),Tn(")"),C.qualifier&&(Tn("."),xr(C.qualifier)),jg(C,C.typeArguments)}function Br(C){Tn("{"),Io(C,C.elements,525136),Tn("}")}function Hn(C){Tn("["),Io(C,C.elements,524880),Tn("]")}function pn(C){xr(C.dotDotDotToken),C.propertyName&&(xr(C.propertyName),Tn(":"),gn()),xr(C.name),nb(C.initializer,C.name.end,C,Hr.parenthesizeExpressionForDisallowedComma)}function Lr(C){let ue=C.elements,xt=C.multiLine?65536:0;v1(C,ue,8914|xt,Hr.parenthesizeExpressionForDisallowedComma)}function Ci(C){rg(C),or(C.properties,ax);let ue=Na(C)&131072;ue&&Wg();let xt=C.multiLine?65536:0,_r=E&&E.languageVersion>=1&&!wp(E)?64:0;Io(C,C.properties,526226|_r|xt),ue&&Ed(),Iy(C)}function Ai(C){Ye(C.expression,Hr.parenthesizeLeftSideOfAccess);let ue=C.questionDotToken||$d(A.createToken(25),C.expression.end,C.name.pos),xt=Nd(C,C.expression,ue),_r=Nd(C,ue,C.name);fd(xt,!1),ue.kind!==29&&io(C.expression)&&!ve.hasTrailingComment()&&!ve.hasTrailingWhitespace()&&Tn("."),C.questionDotToken?xr(ue):L(ue.kind,C.expression.end,Tn,C),fd(_r,!1),xr(C.name),Bg(xt,_r)}function io(C){if(C=bd(C),L_(C)){let ue=fT(C,void 0,!0,!1);return!(C.numericLiteralFlags&448)&&!ue.includes(sa(25))&&!ue.includes("E")&&!ue.includes("e")}else if(Oo(C)){let ue=jne(C);return typeof ue=="number"&&isFinite(ue)&&ue>=0&&Math.floor(ue)===ue}}function Ta(C){Ye(C.expression,Hr.parenthesizeLeftSideOfAccess),xr(C.questionDotToken),L(23,C.expression.end,Tn,C),Ye(C.argumentExpression),L(24,C.argumentExpression.end,Tn,C)}function Go(C){let ue=Sd(C)&16;ue&&(Tn("("),CC("0"),Tn(","),gn()),Ye(C.expression,Hr.parenthesizeLeftSideOfAccess),ue&&Tn(")"),xr(C.questionDotToken),jg(C,C.typeArguments),v1(C,C.arguments,2576,Hr.parenthesizeExpressionForDisallowedComma)}function Dc(C){L(105,C.pos,ws,C),gn(),Ye(C.expression,Hr.parenthesizeExpressionOfNew),jg(C,C.typeArguments),v1(C,C.arguments,18960,Hr.parenthesizeExpressionForDisallowedComma)}function $c(C){let ue=Sd(C)&16;ue&&(Tn("("),CC("0"),Tn(","),gn()),Ye(C.tag,Hr.parenthesizeLeftSideOfAccess),ue&&Tn(")"),jg(C,C.typeArguments),gn(),Ye(C.template)}function Eo(C){Tn("<"),xr(C.type),Tn(">"),Ye(C.expression,Hr.parenthesizeOperandOfPrefixUnary)}function Hc(C){let ue=L(21,C.pos,Tn,C),xt=ix(C.expression,C);Ye(C.expression,void 0),DC(C.expression,C),Bg(xt),L(22,C.expression?C.expression.end:ue,Tn,C)}function wf(C){Wh(C.name),Ph(C)}function bu(C){Fh(C,C.modifiers),Z_(C,up,x_)}function up(C){ib(C,C.typeParameters),c_(C,C.parameters),Oh(C.type),gn(),xr(C.equalsGreaterThanToken)}function x_(C){Fs(C.body)?Gf(C.body):(gn(),Ye(C.body,Hr.parenthesizeConciseBodyOfArrowFunction))}function Ee(C){L(91,C.pos,ws,C),gn(),Ye(C.expression,Hr.parenthesizeOperandOfPrefixUnary)}function Wt(C){L(114,C.pos,ws,C),gn(),Ye(C.expression,Hr.parenthesizeOperandOfPrefixUnary)}function sn(C){L(116,C.pos,ws,C),gn(),Ye(C.expression,Hr.parenthesizeOperandOfPrefixUnary)}function ts(C){L(135,C.pos,ws,C),gn(),Ye(C.expression,Hr.parenthesizeOperandOfPrefixUnary)}function Js(C){Lh(C.operator,Ev),Ma(C)&&gn(),Ye(C.operand,Hr.parenthesizeOperandOfPrefixUnary)}function Ma(C){let ue=C.operand;return ue.kind===224&&(C.operator===40&&(ue.operator===40||ue.operator===46)||C.operator===41&&(ue.operator===41||ue.operator===47))}function Wo(C){Ye(C.operand,Hr.parenthesizeOperandOfPostfixUnary),Lh(C.operator,Ev)}function Qc(){return S7(C,ue,xt,_r,ai,void 0);function C(is,Ss){if(Ss){Ss.stackIndex++,Ss.preserveSourceNewlinesStack[Ss.stackIndex]=ye,Ss.containerPosStack[Ss.stackIndex]=ee,Ss.containerEndStack[Ss.stackIndex]=Ne,Ss.declarationListContainerEndStack[Ss.stackIndex]=Ie;let Ca=Ss.shouldEmitCommentsStack[Ss.stackIndex]=Ae(is),w_=Ss.shouldEmitSourceMapsStack[Ss.stackIndex]=Xe(is);c?.(is),Ca&&Ac(is),w_&&fx(is),ae(is)}else Ss={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return Ss}function ue(is,Ss,Ca){return wi(is,Ca,"left")}function xt(is,Ss,Ca){let w_=is.kind!==28,vc=Nd(Ca,Ca.left,is),tc=Nd(Ca,is,Ca.right);fd(vc,w_),I1(is.pos),dp(is,is.kind===103?ws:Ev),Jg(is.end,!0),fd(tc,!0)}function _r(is,Ss,Ca){return wi(is,Ca,"right")}function ai(is,Ss){let Ca=Nd(is,is.left,is.operatorToken),w_=Nd(is,is.operatorToken,is.right);if(Bg(Ca,w_),Ss.stackIndex>0){let vc=Ss.preserveSourceNewlinesStack[Ss.stackIndex],tc=Ss.containerPosStack[Ss.stackIndex],jC=Ss.containerEndStack[Ss.stackIndex],I_=Ss.declarationListContainerEndStack[Ss.stackIndex],ig=Ss.shouldEmitCommentsStack[Ss.stackIndex],cb=Ss.shouldEmitSourceMapsStack[Ss.stackIndex];lt(vc),cb&&OC(is),ig&&k1(is,tc,jC,I_),_?.(is),Ss.stackIndex--}}function wi(is,Ss,Ca){let w_=Ca==="left"?Hr.getParenthesizeLeftSideOfBinaryForOperator(Ss.operatorToken.kind):Hr.getParenthesizeRightSideOfBinaryForOperator(Ss.operatorToken.kind),vc=st(0,1,is);if(vc===Ke&&(w.assertIsDefined(ur),is=w_(Zs(ur,gt)),vc=Dt(1,1,is),ur=void 0),(vc===lx||vc===ob||vc===St)&&vn(is))return is;Or=w_,vc(1,is)}}function hc(C){let ue=Nd(C,C.condition,C.questionToken),xt=Nd(C,C.questionToken,C.whenTrue),_r=Nd(C,C.whenTrue,C.colonToken),ai=Nd(C,C.colonToken,C.whenFalse);Ye(C.condition,Hr.parenthesizeConditionOfConditionalExpression),fd(ue,!0),xr(C.questionToken),fd(xt,!0),Ye(C.whenTrue,Hr.parenthesizeBranchOfConditionalExpression),Bg(ue,xt),fd(_r,!0),xr(C.colonToken),fd(ai,!0),Ye(C.whenFalse,Hr.parenthesizeBranchOfConditionalExpression),Bg(_r,ai)}function yc(C){xr(C.head),Io(C,C.templateSpans,262144)}function Yc(C){L(127,C.pos,ws,C),xr(C.asteriskToken),wy(C.expression&&Er(C.expression),cs)}function wl(C){L(26,C.pos,Tn,C),Ye(C.expression,Hr.parenthesizeExpressionForDisallowedComma)}function Il(C){Wh(C.name),Be(C)}function If(C){Ye(C.expression,Hr.parenthesizeLeftSideOfAccess),jg(C,C.typeArguments)}function C_(C){Ye(C.expression,void 0),C.type&&(gn(),ws("as"),gn(),xr(C.type))}function Pd(C){Ye(C.expression,Hr.parenthesizeLeftSideOfAccess),Ev("!")}function zf(C){Ye(C.expression,void 0),C.type&&(gn(),ws("satisfies"),gn(),xr(C.type))}function Qm(C){Nv(C.keywordToken,C.pos,Tn),Tn("."),xr(C.name)}function Ih(C){Ye(C.expression),xr(C.literal)}function _p(C){B_(C,!C.multiLine&&PC(C))}function B_(C,ue){L(19,C.pos,Tn,C);let xt=ue||Na(C)&1?768:129;Io(C,C.statements,xt),L(20,C.statements.end,Tn,C,!!(xt&1))}function o_(C){Kl(C,C.modifiers,!1),xr(C.declarationList),$u()}function Km(C){C?Tn(";"):$u()}function Jf(C){Ye(C.expression,Hr.parenthesizeExpressionOfExpressionStatement),(!E||!wp(E)||So(C.expression))&&$u()}function Dh(C){let ue=L(101,C.pos,ws,C);gn(),L(21,ue,Tn,C),Ye(C.expression),L(22,C.expression.end,Tn,C),Av(C,C.thenStatement),C.elseStatement&&(Uf(C,C.thenStatement,C.elseStatement),L(93,C.thenStatement.end,ws,C),C.elseStatement.kind===245?(gn(),xr(C.elseStatement)):Av(C,C.elseStatement))}function re(C,ue){let xt=L(117,ue,ws,C);gn(),L(21,xt,Tn,C),Ye(C.expression),L(22,C.expression.end,Tn,C)}function at(C){L(92,C.pos,ws,C),Av(C,C.statement),Fs(C.statement)&&!ye?gn():Uf(C,C.statement,C.expression),re(C,C.statement.end),$u()}function Kt(C){re(C,C.pos),Av(C,C.statement)}function Xt(C){let ue=L(99,C.pos,ws,C);gn();let xt=L(21,ue,Tn,C);Gn(C.initializer),xt=L(27,C.initializer?C.initializer.end:xt,Tn,C),wy(C.condition),xt=L(27,C.condition?C.condition.end:xt,Tn,C),wy(C.incrementor),L(22,C.incrementor?C.incrementor.end:xt,Tn,C),Av(C,C.statement)}function Ar(C){let ue=L(99,C.pos,ws,C);gn(),L(21,ue,Tn,C),Gn(C.initializer),gn(),L(103,C.initializer.end,ws,C),gn(),Ye(C.expression),L(22,C.expression.end,Tn,C),Av(C,C.statement)}function Yr(C){let ue=L(99,C.pos,ws,C);gn(),ex(C.awaitModifier),L(21,ue,Tn,C),Gn(C.initializer),gn(),L(165,C.initializer.end,ws,C),gn(),Ye(C.expression),L(22,C.expression.end,Tn,C),Av(C,C.statement)}function Gn(C){C!==void 0&&(C.kind===261?xr(C):Ye(C))}function _i(C){L(88,C.pos,ws,C),Zm(C.label),$u()}function Ji(C){L(83,C.pos,ws,C),Zm(C.label),$u()}function L(C,ue,xt,_r,ai){let wi=Cs(_r),is=wi&&wi.kind===_r.kind,Ss=ue;if(is&&E&&(ue=ha(E.text,ue)),is&&_r.pos!==Ss){let Ca=ai&&E&&!Pp(Ss,ue,E);Ca&&Wg(),I1(Ss),Ca&&Ed()}if(!T&&(C===19||C===20)?ue=Nv(C,ue,xt,_r):ue=Lh(C,xt,ue),is&&_r.end!==ue){let Ca=_r.kind===294;Jg(ue,!Ca,Ca)}return ue}function ze(C){return C.kind===2||!!C.hasTrailingNewLine}function Rt(C){if(!E)return!1;let ue=sh(E.text,C.pos);if(ue){let xt=Cs(C);if(xt&&b_(xt.parent))return!0}return pt(ue,ze)||pt(uI(C),ze)?!0:aie(C)?C.pos!==C.expression.pos&&pt(m0(E.text,C.expression.pos),ze)?!0:Rt(C.expression):!1}function Er(C){if(!zt)switch(C.kind){case 355:if(Rt(C)){let ue=Cs(C);if(ue&&b_(ue)){let xt=A.createParenthesizedExpression(C.expression);return En(xt,C),dt(xt,ue),xt}return A.createParenthesizedExpression(C)}return A.updatePartiallyEmittedExpression(C,Er(C.expression));case 211:return A.updatePropertyAccessExpression(C,Er(C.expression),C.name);case 212:return A.updateElementAccessExpression(C,Er(C.expression),C.argumentExpression);case 213:return A.updateCallExpression(C,Er(C.expression),C.typeArguments,C.arguments);case 215:return A.updateTaggedTemplateExpression(C,Er(C.tag),C.typeArguments,C.template);case 225:return A.updatePostfixUnaryExpression(C,Er(C.operand));case 226:return A.updateBinaryExpression(C,Er(C.left),C.operatorToken,C.right);case 227:return A.updateConditionalExpression(C,Er(C.condition),C.questionToken,C.whenTrue,C.colonToken,C.whenFalse);case 234:return A.updateAsExpression(C,Er(C.expression),C.type);case 238:return A.updateSatisfiesExpression(C,Er(C.expression),C.type);case 235:return A.updateNonNullExpression(C,Er(C.expression))}return C}function cs(C){return Er(Hr.parenthesizeExpressionForDisallowedComma(C))}function bi(C){L(107,C.pos,ws,C),wy(C.expression&&Er(C.expression),Er),$u()}function Zi(C){let ue=L(118,C.pos,ws,C);gn(),L(21,ue,Tn,C),Ye(C.expression),L(22,C.expression.end,Tn,C),Av(C,C.statement)}function gs(C){let ue=L(109,C.pos,ws,C);gn(),L(21,ue,Tn,C),Ye(C.expression),L(22,C.expression.end,Tn,C),gn(),xr(C.caseBlock)}function Uo(C){xr(C.label),L(59,C.label.end,Tn,C),gn(),xr(C.statement)}function _a(C){L(111,C.pos,ws,C),wy(Er(C.expression),Er),$u()}function vl(C){L(113,C.pos,ws,C),gn(),xr(C.tryBlock),C.catchClause&&(Uf(C,C.tryBlock,C.catchClause),xr(C.catchClause)),C.finallyBlock&&(Uf(C,C.catchClause||C.tryBlock,C.finallyBlock),L(98,(C.catchClause||C.tryBlock).end,ws,C),gn(),xr(C.finallyBlock))}function Df(C){Nv(89,C.pos,ws),$u()}function Lp(C){var ue,xt,_r;xr(C.name),xr(C.exclamationToken),Oh(C.type),nb(C.initializer,((ue=C.type)==null?void 0:ue.end)??((_r=(xt=C.name.emitNode)==null?void 0:xt.typeNode)==null?void 0:_r.end)??C.name.end,C,Hr.parenthesizeExpressionForDisallowedComma)}function tm(C){if(j6(C))ws("await"),gn(),ws("using");else{let ue=wF(C)?"let":Bw(C)?"const":W6(C)?"using":"var";ws(ue)}gn(),Io(C,C.declarations,528)}function ky(C){Ph(C)}function Ph(C){Kl(C,C.modifiers,!1),ws("function"),xr(C.asteriskToken),gn(),xs(C.name),Z_(C,_d,rm)}function Z_(C,ue,xt){let _r=Na(C)&131072;_r&&Wg(),rg(C),or(C.parameters,Xl),ue(C),xt(C),Iy(C),_r&&Ed()}function rm(C){let ue=C.body;ue?Gf(ue):$u()}function Xm(C){$u()}function _d(C){ib(C,C.typeParameters),$i(C,C.parameters),Oh(C.type)}function Y0(C){if(Na(C)&1)return!0;if(C.multiLine||!So(C)&&E&&!hk(C,E)||_T(C,_l(C.statements),2)||IC(C,zo(C.statements),2,C.statements))return!1;let ue;for(let xt of C.statements){if(Mv(ue,xt,2)>0)return!1;ue=xt}return!0}function Gf(C){Xl(C),c?.(C),gn(),Tn("{"),Wg();let ue=Y0(C)?bv:Z0;ux(C,C.statements,ue),Ed(),Nv(20,C.statements.end,Tn,C),_?.(C)}function bv(C){Z0(C,!0)}function Z0(C,ue){let xt=Cy(C.statements),_r=ve.getTextPos();Vt(C),xt===0&&_r===ve.getTextPos()&&ue?(Ed(),Io(C,C.statements,768),Wg()):Io(C,C.statements,1,void 0,xt)}function Sv(C){Be(C)}function Be(C){Kl(C,C.modifiers,!0),L(86,Mm(C).pos,ws,C),C.name&&(gn(),xs(C.name));let ue=Na(C)&131072;ue&&Wg(),ib(C,C.typeParameters),Io(C,C.heritageClauses,0),gn(),Tn("{"),rg(C),or(C.members,ax),Io(C,C.members,129),Iy(C),Tn("}"),ue&&Ed()}function rt(C){Kl(C,C.modifiers,!1),ws("interface"),gn(),xr(C.name),ib(C,C.typeParameters),Io(C,C.heritageClauses,512),gn(),Tn("{"),rg(C),or(C.members,ax),Io(C,C.members,129),Iy(C),Tn("}")}function Lt(C){Kl(C,C.modifiers,!1),ws("type"),gn(),xr(C.name),ib(C,C.typeParameters),gn(),Tn("="),gn(),xr(C.type),$u()}function cr(C){Kl(C,C.modifiers,!1),ws("enum"),gn(),xr(C.name),gn(),Tn("{"),Io(C,C.members,145),Tn("}")}function qr(C){Kl(C,C.modifiers,!1),~C.flags&2048&&(ws(C.flags&32?"namespace":"module"),gn()),xr(C.name);let ue=C.body;if(!ue)return $u();for(;ue&&nl(ue);)Tn("."),xr(ue.name),ue=ue.body;gn(),xr(ue)}function Sn(C){rg(C),or(C.statements,Xl),B_(C,PC(C)),Iy(C)}function zr(C){L(19,C.pos,Tn,C),Io(C,C.clauses,129),L(20,C.clauses.end,Tn,C,!0)}function bn(C){Kl(C,C.modifiers,!1),L(102,C.modifiers?C.modifiers.end:C.pos,ws,C),gn(),C.isTypeOnly&&(L(156,C.pos,ws,C),gn()),xr(C.name),gn(),L(64,C.name.end,Tn,C),gn(),Di(C.moduleReference),$u()}function Di(C){C.kind===80?Ye(C):xr(C)}function fs(C){Kl(C,C.modifiers,!1),L(102,C.modifiers?C.modifiers.end:C.pos,ws,C),gn(),C.importClause&&(xr(C.importClause),gn(),L(161,C.importClause.end,ws,C),gn()),Ye(C.moduleSpecifier),C.attributes&&Zm(C.attributes),$u()}function ti(C){C.isTypeOnly&&(L(156,C.pos,ws,C),gn()),xr(C.name),C.name&&C.namedBindings&&(L(28,C.name.end,Tn,C),gn()),xr(C.namedBindings)}function qi(C){let ue=L(42,C.pos,Tn,C);gn(),L(130,ue,ws,C),gn(),xr(C.name)}function Ls(C){m1(C)}function Ql(C){sT(C)}function fp(C){let ue=L(95,C.pos,ws,C);gn(),C.isExportEquals?L(64,ue,Ev,C):L(90,ue,ws,C),gn(),Ye(C.expression,C.isExportEquals?Hr.getParenthesizeRightSideOfBinaryForOperator(64):Hr.parenthesizeExpressionOfExportDefault),$u()}function pp(C){Kl(C,C.modifiers,!1);let ue=L(95,C.pos,ws,C);if(gn(),C.isTypeOnly&&(ue=L(156,ue,ws,C),gn()),C.exportClause?xr(C.exportClause):ue=L(42,ue,Tn,C),C.moduleSpecifier){gn();let xt=C.exportClause?C.exportClause.end:ue;L(161,xt,ws,C),gn(),Ye(C.moduleSpecifier)}C.attributes&&Zm(C.attributes),$u()}function Pf(C){Tn("{"),gn(),ws(C.token===132?"assert":"with"),Tn(":"),gn();let ue=C.elements;Io(C,ue,526226),gn(),Tn("}")}function Ng(C){L(C.token,C.pos,ws,C),gn();let ue=C.elements;Io(C,ue,526226)}function Ad(C){xr(C.name),Tn(":"),gn();let ue=C.value;if((Na(ue)&1024)===0){let xt=Fm(ue);Jg(xt.pos)}xr(ue)}function Mg(C){let ue=L(95,C.pos,ws,C);gn(),ue=L(130,ue,ws,C),gn(),ue=L(145,ue,ws,C),gn(),xr(C.name),$u()}function Tv(C){let ue=L(42,C.pos,Tn,C);gn(),L(130,ue,ws,C),gn(),xr(C.name)}function Rg(C){m1(C)}function kv(C){sT(C)}function m1(C){Tn("{"),Io(C,C.elements,525136),Tn("}")}function sT(C){C.isTypeOnly&&(ws("type"),gn()),C.propertyName&&(xr(C.propertyName),gn(),L(130,C.propertyName.end,ws,C),gn()),xr(C.name)}function eN(C){ws("require"),Tn("("),Ye(C.expression),Tn(")")}function bC(C){xr(C.openingElement),Io(C,C.children,262144),xr(C.closingElement)}function dD(C){Tn("<"),Fg(C.tagName),jg(C,C.typeArguments),gn(),xr(C.attributes),Tn("/>")}function aT(C){xr(C.openingFragment),Io(C,C.children,262144),xr(C.closingFragment)}function mD(C){if(Tn("<"),Hd(C)){let ue=ix(C.tagName,C);Fg(C.tagName),jg(C,C.typeArguments),C.attributes.properties&&C.attributes.properties.length>0&&gn(),xr(C.attributes),DC(C.attributes,C),Bg(ue)}Tn(">")}function Kk(C){ve.writeLiteral(C.text)}function SC(C){Tn("</"),jS(C)&&Fg(C.tagName),Tn(">")}function oT(C){Io(C,C.properties,262656)}function gD(C){xr(C.name),y1("=",Tn,C.initializer,Nt)}function Xk(C){Tn("{..."),Ye(C.expression),Tn("}")}function TC(C){let ue=!1;return c6(E?.text||"",C+1,()=>ue=!0),ue}function Yk(C){let ue=!1;return o6(E?.text||"",C+1,()=>ue=!0),ue}function Ym(C){return TC(C)||Yk(C)}function xv(C){var ue;if(C.expression||!zt&&!So(C)&&Ym(C.pos)){let xt=E&&!So(C)&&Qs(E,C.pos).line!==Qs(E,C.end).line;xt&&ve.increaseIndent();let _r=L(19,C.pos,Tn,C);xr(C.dotDotDotToken),Ye(C.expression),L(20,((ue=C.expression)==null?void 0:ue.end)||_r,Tn,C),xt&&ve.decreaseIndent()}}function xy(C){xs(C.namespace),Tn(":"),xs(C.name)}function Fg(C){C.kind===80?Ye(C):xr(C)}function g1(C){L(84,C.pos,ws,C),gn(),Ye(C.expression,Hr.parenthesizeExpressionForDisallowedComma),cT(C,C.statements,C.expression.end)}function eb(C){let ue=L(90,C.pos,ws,C);cT(C,C.statements,ue)}function cT(C,ue,xt){let _r=ue.length===1&&(!E||So(C)||So(ue[0])||dO(C,ue[0],E)),ai=163969;_r?(Nv(59,xt,Tn,C),gn(),ai&=-130):L(59,xt,Tn,C),Io(C,ue,ai)}function lT(C){gn(),Lh(C.token,ws),gn(),Io(C,C.types,528)}function Cv(C){let ue=L(85,C.pos,ws,C);gn(),C.variableDeclaration&&(L(21,ue,Tn,C),xr(C.variableDeclaration),L(22,C.variableDeclaration.end,Tn,C),gn()),xr(C.block)}function za(C){xr(C.name),Tn(":"),gn();let ue=C.initializer;if((Na(ue)&1024)===0){let xt=Fm(ue);Jg(xt.pos)}Ye(ue,Hr.parenthesizeExpressionForDisallowedComma)}function h1(C){xr(C.name),C.objectAssignmentInitializer&&(gn(),Tn("="),gn(),Ye(C.objectAssignmentInitializer,Hr.parenthesizeExpressionForDisallowedComma))}function tN(C){C.expression&&(L(26,C.pos,Tn,C),Ye(C.expression,Hr.parenthesizeExpressionForDisallowedComma))}function tb(C){xr(C.name),nb(C.initializer,C.name.end,C,Hr.parenthesizeExpressionForDisallowedComma)}function Ah(C){if(De("/**"),C.comment){let ue=h6(C.comment);if(ue){let xt=ue.split(/\r\n?|\n/);for(let _r of xt)l_(),gn(),Tn("*"),gn(),De(_r)}}C.tags&&(C.tags.length===1&&C.tags[0].kind===344&&!C.comment?(gn(),xr(C.tags[0])):Io(C,C.tags,33)),gn(),De("*/")}function Eh(C){Mh(C.tagName),Og(C.typeExpression),Rh(C.comment)}function jp(C){Mh(C.tagName),xr(C.name),Rh(C.comment)}function z_(C){Mh(C.tagName),gn(),C.importClause&&(xr(C.importClause),gn(),L(161,C.importClause.end,ws,C),gn()),Ye(C.moduleSpecifier),C.attributes&&Zm(C.attributes),Rh(C.comment)}function ef(C){gn(),Tn("{"),xr(C.name),Tn("}")}function Af(C){Mh(C.tagName),gn(),Tn("{"),xr(C.class),Tn("}"),Rh(C.comment)}function bl(C){Mh(C.tagName),Og(C.constraint),gn(),Io(C,C.typeParameters,528),Rh(C.comment)}function wv(C){Mh(C.tagName),C.typeExpression&&(C.typeExpression.kind===309?Og(C.typeExpression):(gn(),Tn("{"),De("Object"),C.typeExpression.isArrayType&&(Tn("["),Tn("]")),Tn("}"))),C.fullName&&(gn(),xr(C.fullName)),Rh(C.comment),C.typeExpression&&C.typeExpression.kind===322&&lu(C.typeExpression)}function Zk(C){Mh(C.tagName),C.name&&(gn(),xr(C.name)),Rh(C.comment),Nh(C.typeExpression)}function nm(C){Rh(C.comment),Nh(C.typeExpression)}function rb(C){Mh(C.tagName),Rh(C.comment)}function lu(C){Io(C,A.createNodeArray(C.jsDocPropertyTags),33)}function Nh(C){C.typeParameters&&Io(C,A.createNodeArray(C.typeParameters),33),C.parameters&&Io(C,A.createNodeArray(C.parameters),33),C.type&&(l_(),gn(),Tn("*"),gn(),xr(C.type))}function tf(C){Mh(C.tagName),Og(C.typeExpression),gn(),C.isBracketed&&Tn("["),xr(C.name),C.isBracketed&&Tn("]"),Rh(C.comment)}function Mh(C){Tn("@"),xr(C)}function Rh(C){let ue=h6(C);ue&&(gn(),De(ue))}function Og(C){C&&(gn(),Tn("{"),xr(C.type),Tn("}"))}function uT(C){l_();let ue=C.statements;if(ue.length===0||!wm(ue[0])||So(ue[0])){ux(C,ue,Dv);return}Dv(C)}function $e(C){im(!!C.hasNoDefaultLib,C.syntheticFileReferences||[],C.syntheticTypeReferences||[],C.syntheticLibReferences||[])}function Iv(C){C.isDeclarationFile&&im(C.hasNoDefaultLib,C.referencedFiles,C.typeReferenceDirectives,C.libReferenceDirectives)}function im(C,ue,xt,_r){if(C&&(S1('/// <reference no-default-lib="true"/>'),l_()),E&&E.moduleName&&(S1(`/// <amd-module name="${E.moduleName}" />`),l_()),E&&E.amdDependencies)for(let wi of E.amdDependencies)wi.name?S1(`/// <amd-dependency name="${wi.name}" path="${wi.path}" />`):S1(`/// <amd-dependency path="${wi.path}" />`),l_();function ai(wi,is){for(let Ss of is){let Ca=Ss.resolutionMode?`resolution-mode="${Ss.resolutionMode===99?"import":"require"}" `:"",w_=Ss.preserve?'preserve="true" ':"";S1(`/// <reference ${wi}="${Ss.fileName}" ${Ca}${w_}/>`),l_()}}ai("path",ue),ai("types",xt),ai("lib",_r)}function Dv(C){let ue=C.statements;rg(C),or(C.statements,Xl),Vt(C);let xt=Sc(ue,_r=>!wm(_r));Iv(C),Io(C,ue,1,void 0,xt===-1?ue.length:xt),Iy(C)}function kC(C){let ue=Na(C);!(ue&1024)&&C.pos!==C.expression.pos&&Jg(C.expression.pos),Ye(C.expression),!(ue&2048)&&C.end!==C.expression.end&&I1(C.expression.end)}function Pv(C){v1(C,C.elements,528,void 0)}function Cy(C,ue,xt){let _r=!!ue;for(let ai=0;ai<C.length;ai++){let wi=C[ai];if(wm(wi))(xt?!xt.has(wi.expression.text):!0)&&(_r&&(_r=!1,Xn(ue)),l_(),xr(wi),xt&&xt.add(wi.expression.text));else return ai}return C.length}function Lg(C){if(Mi(C))Cy(C.statements,C);else{let ue=new Set;for(let xt of C.sourceFiles)Cy(xt.statements,xt,ue);Xn(void 0)}}function xC(C){if(Mi(C)){let ue=q8(C.text);if(ue)return S1(ue),l_(),!0}else for(let ue of C.sourceFiles)if(xC(ue))return!0}function da(C,ue){if(!C)return;let xt=De;De=ue,xr(C),De=xt}function Kl(C,ue,xt){if(ue?.length){if(Oi(ue,la))return Fh(C,ue);if(Oi(ue,Rl))return xt?eg(C,ue):C.pos;u?.(ue);let _r,ai,wi=0,is=0,Ss;for(;wi<ue.length;){for(;is<ue.length;){if(Ss=ue[is],ai=Rl(Ss)?"decorators":"modifiers",_r===void 0)_r=ai;else if(ai!==_r)break;is++}let Ca={pos:-1,end:-1};wi===0&&(Ca.pos=ue.pos),is===ue.length-1&&(Ca.end=ue.end),(_r==="modifiers"||xt)&&rx(xr,C,ue,_r==="modifiers"?2359808:2146305,void 0,wi,is-wi,!1,Ca),wi=is,_r=ai,is++}if(g?.(ue),Ss&&!qd(Ss.end))return Ss.end}return C.pos}function Fh(C,ue){Io(C,ue,2359808);let xt=zo(ue);return xt&&!qd(xt.end)?xt.end:C.pos}function Oh(C){C&&(Tn(":"),gn(),xr(C))}function nb(C,ue,xt,_r){C&&(gn(),L(64,ue,Ev,xt),gn(),Ye(C,_r))}function y1(C,ue,xt,_r){xt&&(ue(C),_r(xt))}function Zm(C){C&&(gn(),xr(C))}function wy(C,ue){C&&(gn(),Ye(C,ue))}function ex(C){C&&(xr(C),gn())}function Av(C,ue){Fs(ue)||Na(C)&1||ye&&!_T(C,ue,0)?(gn(),xr(ue)):(l_(),Wg(),cG(ue)?Y(5,ue):xr(ue),Ed())}function eg(C,ue){Io(C,ue,2146305);let xt=zo(ue);return xt&&!qd(xt.end)?xt.end:C.pos}function jg(C,ue){Io(C,ue,53776,hi)}function ib(C,ue){if(Ns(C)&&C.typeArguments)return jg(C,C.typeArguments);Io(C,ue,53776|(Lo(C)?64:0))}function $i(C,ue){Io(C,ue,2576)}function wn(C,ue){let xt=hg(ue);return xt&&xt.pos===C.pos&&Lo(C)&&!C.type&&!pt(C.modifiers)&&!pt(C.typeParameters)&&!pt(xt.modifiers)&&!xt.dotDotDotToken&&!xt.questionToken&&!xt.type&&!xt.initializer&&je(xt.name)}function c_(C,ue){wn(C,ue)?Io(C,ue,528):$i(C,ue)}function tx(C,ue){Io(C,ue,8848)}function tg(C){switch(C&60){case 0:break;case 16:Tn(",");break;case 4:gn(),Tn("|");break;case 32:gn(),Tn("*"),gn();break;case 8:gn(),Tn("&");break}}function Io(C,ue,xt,_r,ai,wi){b1(xr,C,ue,xt|(C&&Na(C)&2?65536:0),_r,ai,wi)}function v1(C,ue,xt,_r,ai,wi){b1(Ye,C,ue,xt,_r,ai,wi)}function b1(C,ue,xt,_r,ai,wi=0,is=xt?xt.length-wi:0){if(xt===void 0&&_r&16384)return;let Ca=xt===void 0||wi>=xt.length||is===0;if(Ca&&_r&32768){u?.(xt),g?.(xt);return}_r&15360&&(Tn(KGe(_r)),Ca&&xt&&Jg(xt.pos,!0)),u?.(xt),Ca?_r&1&&!(ye&&(!ue||E&&hk(ue,E)))?l_():_r&256&&!(_r&524288)&&gn():rx(C,ue,xt,_r,ai,wi,is,xt.hasTrailingComma,xt),g?.(xt),_r&15360&&(Ca&&xt&&I1(xt.end),Tn(XGe(_r)))}function rx(C,ue,xt,_r,ai,wi,is,Ss,Ca){let w_=(_r&262144)===0,vc=w_,tc=_T(ue,xt[wi],_r);tc?(l_(tc),vc=!1):_r&256&&gn(),_r&128&&Wg();let jC=tUe(C,ai),I_,ig=!1;for(let Lv=0;Lv<is;Lv++){let jv=xt[wi+Lv];if(_r&32)l_(),tg(_r);else if(I_){_r&60&&I_.end!==(ue?ue.end:-1)&&(Na(I_)&2048||I1(I_.end)),tg(_r);let yT=Mv(I_,jv,_r);if(yT>0){if((_r&131)===0&&(Wg(),ig=!0),vc&&_r&60&&!qd(jv.pos)){let sg=Fm(jv);Jg(sg.pos,!!(_r&512),!0)}l_(yT),vc=!1}else I_&&_r&512&&gn()}if(vc){let yT=Fm(jv);Jg(yT.pos)}else vc=w_;H=jv.pos,jC(jv,C,ai,Lv),ig&&(Ed(),ig=!1),I_=jv}let cb=I_?Na(I_):0,P1=zt||!!(cb&2048),WC=Ss&&_r&64&&_r&16;WC&&(I_&&!P1?L(28,I_.end,Tn,I_):Tn(",")),I_&&(ue?ue.end:-1)!==I_.end&&_r&60&&!P1&&I1(WC&&Ca?.end?Ca.end:I_.end),_r&128&&Ed();let BC=IC(ue,xt[wi+is-1],_r,Ca);BC?l_(BC):_r&2097408&&gn()}function CC(C){ve.writeLiteral(C)}function sb(C){ve.writeStringLiteral(C)}function sm(C){ve.write(C)}function hD(C,ue){ve.writeSymbol(C,ue)}function Tn(C){ve.writePunctuation(C)}function $u(){ve.writeTrailingSemicolon(";")}function ws(C){ve.writeKeyword(C)}function Ev(C){ve.writeOperator(C)}function nx(C){ve.writeParameter(C)}function S1(C){ve.writeComment(C)}function gn(){ve.writeSpace(" ")}function yD(C){ve.writeProperty(C)}function wC(C){ve.nonEscapingWrite?ve.nonEscapingWrite(C):ve.write(C)}function l_(C=1){for(let ue=0;ue<C;ue++)ve.writeLine(ue>0)}function Wg(){ve.increaseIndent()}function Ed(){ve.decreaseIndent()}function Nv(C,ue,xt,_r){return xe?Lh(C,xt,ue):nf(_r,C,xt,ue,Lh)}function dp(C,ue){m&&m(C),ue(sa(C.kind)),h&&h(C)}function Lh(C,ue,xt){let _r=sa(C);return ue(_r),xt<0?xt:xt+_r.length}function Uf(C,ue,xt){if(Na(C)&1)gn();else if(ye){let _r=Nd(C,ue,xt);_r?l_(_r):gn()}else l_()}function am(C){let ue=C.split(/\r\n?|\n/),xt=cte(ue);for(let _r of ue){let ai=xt?_r.slice(xt):_r;ai.length&&(l_(),De(ai))}}function fd(C,ue){C?(Wg(),l_(C)):ue&&gn()}function Bg(C,ue){C&&Ed(),ue&&Ed()}function _T(C,ue,xt){if(xt&2||ye){if(xt&65536)return 1;if(ue===void 0)return!C||E&&hk(C,E)?0:1;if(ue.pos===H||ue.kind===12)return 0;if(E&&C&&!qd(C.pos)&&!So(ue)&&(!ue.parent||ic(ue.parent)===ic(C)))return ye?jh(_r=>Ore(ue.pos,C.pos,E,_r)):dO(C,ue,E)?0:1;if(ab(ue,xt))return 1}return xt&1?1:0}function Mv(C,ue,xt){if(xt&2||ye){if(C===void 0||ue===void 0||ue.kind===12)return 0;if(E&&!So(C)&&!So(ue))return ye&&dd(C,ue)?jh(_r=>aJ(C,ue,E,_r)):!ye&&J_(C,ue)?x4(C,ue,E)?0:1:xt&65536?1:0;if(ab(C,xt)||ab(ue,xt))return 1}else if(RA(ue))return 1;return xt&1?1:0}function IC(C,ue,xt,_r){if(xt&2||ye){if(xt&65536)return 1;if(ue===void 0)return!C||E&&hk(C,E)?0:1;if(E&&C&&!qd(C.pos)&&!So(ue)&&(!ue.parent||ue.parent===C)){if(ye){let ai=_r&&!qd(_r.end)?_r.end:ue.end;return jh(wi=>Lre(ai,C.end,E,wi))}return Mre(C,ue,E)?0:1}if(ab(ue,xt))return 1}return xt&1&&!(xt&131072)?1:0}function jh(C){w.assert(!!ye);let ue=C(!0);return ue===0?C(!1):ue}function ix(C,ue){let xt=ye&&_T(ue,C,0);return xt&&fd(xt,!1),!!xt}function DC(C,ue){let xt=ye&&IC(ue,C,0,void 0);xt&&l_(xt)}function ab(C,ue){if(So(C)){let xt=RA(C);return xt===void 0?(ue&65536)!==0:xt}return(ue&65536)!==0}function Nd(C,ue,xt){return Na(C)&262144?0:(C=sx(C),ue=sx(ue),xt=sx(xt),RA(xt)?1:E&&!So(C)&&!So(ue)&&!So(xt)?ye?jh(_r=>aJ(ue,xt,E,_r)):x4(ue,xt,E)?0:1:0)}function PC(C){return C.statements.length===0&&(!E||x4(C,C,E))}function sx(C){for(;C.kind===217&&So(C);)C=C.expression;return C}function Rv(C,ue){if(Ko(C)||tk(C))return pT(C);if(ya(C)&&C.textSourceNode)return Rv(C.textSourceNode,ue);let xt=E,_r=!!xt&&!!C.parent&&!So(C);if(oh(C)){if(!_r||Fr(C)!==ic(xt))return Ln(C)}else if(Qd(C)){if(!_r||Fr(C)!==ic(xt))return NA(C)}else if(w.assertNode(C,ek),!_r)return C.text;return pS(xt,C,ue)}function fT(C,ue=E,xt,_r){if(C.kind===11&&C.textSourceNode){let wi=C.textSourceNode;if(je(wi)||ji(wi)||L_(wi)||Qd(wi)){let is=L_(wi)?wi.text:Rv(wi);return _r?`"${zz(is)}"`:xt||Na(C)&16777216?`"${wg(is)}"`:`"${YF(is)}"`}else return fT(wi,Fr(wi),xt,_r)}let ai=(xt?1:0)|(_r?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0);return bte(C,ue,ai)}function rg(C){U.push(me),me=0,oe.push(de),!(C&&Na(C)&1048576)&&(te.push(V),V=0,$.push(K),K=void 0,ne.push(ie))}function Iy(C){me=U.pop(),de=oe.pop(),!(C&&Na(C)&1048576)&&(V=te.pop(),K=$.pop(),ie=ne.pop())}function ng(C){(!ie||ie===zo(ne))&&(ie=new Set),ie.add(C)}function Fv(C){(!de||de===zo(oe))&&(de=new Set),de.add(C)}function Xl(C){if(C)switch(C.kind){case 241:or(C.statements,Xl);break;case 256:case 254:case 246:case 247:Xl(C.statement);break;case 245:Xl(C.thenStatement),Xl(C.elseStatement);break;case 248:case 250:case 249:Xl(C.initializer),Xl(C.statement);break;case 255:Xl(C.caseBlock);break;case 269:or(C.clauses,Xl);break;case 296:case 297:or(C.statements,Xl);break;case 258:Xl(C.tryBlock),Xl(C.catchClause),Xl(C.finallyBlock);break;case 299:Xl(C.variableDeclaration),Xl(C.block);break;case 243:Xl(C.declarationList);break;case 261:or(C.declarations,Xl);break;case 260:case 169:case 208:case 263:Wh(C.name);break;case 262:Wh(C.name),Na(C)&1048576&&(or(C.parameters,Xl),Xl(C.body));break;case 206:case 207:or(C.elements,Xl);break;case 272:Xl(C.importClause);break;case 273:Wh(C.name),Xl(C.namedBindings);break;case 274:Wh(C.name);break;case 280:Wh(C.name);break;case 275:or(C.elements,Xl);break;case 276:Wh(C.propertyName||C.name);break}}function ax(C){if(C)switch(C.kind){case 303:case 304:case 172:case 171:case 174:case 173:case 177:case 178:Wh(C.name);break}}function Wh(C){C&&(Ko(C)||tk(C)?pT(C):Ws(C)&&Xl(C))}function pT(C){let ue=C.emitNode.autoGenerate;if((ue.flags&7)===4)return AC(lM(C),ji(C),ue.flags,ue.prefix,ue.suffix);{let xt=ue.id;return B[xt]||(B[xt]=TD(C))}}function AC(C,ue,xt,_r,ai){let wi=Ua(C),is=ue?F:O;return is[wi]||(is[wi]=Dy(C,ue,xt??0,wI(_r,pT),wI(ai)))}function zg(C,ue){return dT(C,ue)&&!vD(C,ue)&&!G.has(C)}function vD(C,ue){let xt,_r;if(ue?(xt=de,_r=oe):(xt=ie,_r=ne),xt?.has(C))return!0;for(let ai=_r.length-1;ai>=0;ai--)if(xt!==_r[ai]&&(xt=_r[ai],xt?.has(C)))return!0;return!1}function dT(C,ue){return E?vF(E,C,n):!0}function bD(C,ue){for(let xt=ue;xt&&SS(xt,ue);xt=xt.nextContainer)if(Sg(xt)&&xt.locals){let _r=xt.locals.get(gc(C));if(_r&&_r.flags&3257279)return!1}return!0}function T1(C){switch(C){case"":return V;case"#":return me;default:return K?.get(C)??0}}function ox(C,ue){switch(C){case"":V=ue;break;case"#":me=ue;break;default:K??(K=new Map),K.set(C,ue);break}}function Pc(C,ue,xt,_r,ai){_r.length>0&&_r.charCodeAt(0)===35&&(_r=_r.slice(1));let wi=Xb(xt,_r,"",ai),is=T1(wi);if(C&&!(is&C)){let Ca=Xb(xt,_r,C===268435456?"_i":"_n",ai);if(zg(Ca,xt))return is|=C,xt?Fv(Ca):ue&&ng(Ca),ox(wi,is),Ca}for(;;){let Ss=is&268435455;if(is++,Ss!==8&&Ss!==13){let Ca=Ss<26?"_"+String.fromCharCode(97+Ss):"_"+(Ss-26),w_=Xb(xt,_r,Ca,ai);if(zg(w_,xt))return xt?Fv(w_):ue&&ng(w_),ox(wi,is),w_}}}function al(C,ue=zg,xt,_r,ai,wi,is){if(C.length>0&&C.charCodeAt(0)===35&&(C=C.slice(1)),wi.length>0&&wi.charCodeAt(0)===35&&(wi=wi.slice(1)),xt){let Ca=Xb(ai,wi,C,is);if(ue(Ca,ai))return ai?Fv(Ca):_r?ng(Ca):G.add(Ca),Ca}C.charCodeAt(C.length-1)!==95&&(C+="_");let Ss=1;for(;;){let Ca=Xb(ai,wi,C+Ss,is);if(ue(Ca,ai))return ai?Fv(Ca):_r?ng(Ca):G.add(Ca),Ca;Ss++}}function SD(C){return al(C,dT,!0,!1,!1,"","")}function Ef(C){let ue=Rv(C.name);return bD(ue,Vn(C,Sg))?ue:al(ue,zg,!1,!1,!1,"","")}function pd(C){let ue=u2(C),xt=ya(ue)?Tte(ue.text):"module";return al(xt,zg,!1,!1,!1,"","")}function EC(){return al("default",zg,!1,!1,!1,"","")}function om(){return al("class",zg,!1,!1,!1,"","")}function cx(C,ue,xt,_r){return je(C.name)?AC(C.name,ue):Pc(0,!1,ue,xt,_r)}function Dy(C,ue,xt,_r,ai){switch(C.kind){case 80:case 81:return al(Rv(C),zg,!!(xt&16),!!(xt&8),ue,_r,ai);case 267:case 266:return w.assert(!_r&&!ai&&!ue),Ef(C);case 272:case 278:return w.assert(!_r&&!ai&&!ue),pd(C);case 262:case 263:{w.assert(!_r&&!ai&&!ue);let wi=C.name;return wi&&!Ko(wi)?Dy(wi,!1,xt,_r,ai):EC()}case 277:return w.assert(!_r&&!ai&&!ue),EC();case 231:return w.assert(!_r&&!ai&&!ue),om();case 174:case 177:case 178:return cx(C,ue,_r,ai);case 167:return Pc(0,!0,ue,_r,ai);default:return Pc(0,!1,ue,_r,ai)}}function TD(C){let ue=C.emitNode.autoGenerate,xt=wI(ue.prefix,pT),_r=wI(ue.suffix);switch(ue.flags&7){case 1:return Pc(0,!!(ue.flags&8),ji(C),xt,_r);case 2:return w.assertNode(C,je),Pc(268435456,!!(ue.flags&8),!1,xt,_r);case 3:return al(Ln(C),ue.flags&32?dT:zg,!!(ue.flags&16),!!(ue.flags&8),ji(C),xt,_r)}return w.fail(`Unsupported GeneratedIdentifierKind: ${w.formatEnum(ue.flags&7,QW,!0)}.`)}function lx(C,ue){let xt=Dt(2,C,ue),_r=ee,ai=Ne,wi=Ie;Ac(ue),xt(C,ue),k1(ue,_r,ai,wi)}function Ac(C){let ue=Na(C),xt=Fm(C);kD(C,ue,xt.pos,xt.end),ue&4096&&(zt=!0)}function k1(C,ue,xt,_r){let ai=Na(C),wi=Fm(C);ai&4096&&(zt=!1),mT(C,ai,wi.pos,wi.end,ue,xt,_r);let is=Jne(C);is&&mT(C,ai,is.pos,is.end,ue,xt,_r)}function kD(C,ue,xt,_r){_t(),bt=!1;let ai=xt<0||(ue&1024)!==0||C.kind===12,wi=_r<0||(ue&2048)!==0||C.kind===12;(xt>0||_r>0)&&xt!==_r&&(ai||Ov(xt,C.kind!==353),(!ai||xt>=0&&(ue&1024)!==0)&&(ee=xt),(!wi||_r>=0&&(ue&2048)!==0)&&(Ne=_r,C.kind===261&&(Ie=_r))),or(uI(C),rN),$t()}function mT(C,ue,xt,_r,ai,wi,is){_t();let Ss=_r<0||(ue&2048)!==0||C.kind===12;or(q4(C),u_),(xt>0||_r>0)&&xt!==_r&&(ee=ai,Ne=wi,Ie=is,!Ss&&C.kind!==353&&RC(_r)),$t()}function rN(C){(C.hasLeadingNewline||C.kind===2)&&ve.writeLine(),x1(C),C.hasTrailingNewLine||C.kind===2?ve.writeLine():ve.writeSpace(" ")}function u_(C){ve.isAtStartOfLine()||ve.writeSpace(" "),x1(C),C.hasTrailingNewLine&&ve.writeLine()}function x1(C){let ue=gT(C),xt=C.kind===3?Qx(ue):void 0;eI(ue,xt,ve,0,ue.length,x)}function gT(C){return C.kind===3?`/*${C.text}*/`:`//${C.text}`}function ux(C,ue,xt){_t();let{pos:_r,end:ai}=ue,wi=Na(C),is=_r<0||(wi&1024)!==0,Ss=zt||ai<0||(wi&2048)!==0;is||Vf(ue),$t(),wi&4096&&!zt?(zt=!0,xt(C),zt=!1):xt(C),_t(),Ss||(Ov(ue.end,!0),bt&&!ve.isAtStartOfLine()&&ve.writeLine()),$t()}function J_(C,ue){return C=ic(C),C.parent&&C.parent===ic(ue).parent}function dd(C,ue){if(ue.pos<C.end)return!1;C=ic(C),ue=ic(ue);let xt=C.parent;if(!xt||xt!==ue.parent)return!1;let _r=hne(C),ai=_r?.indexOf(C);return ai!==void 0&&ai>-1&&_r.indexOf(ue)===ai+1}function Ov(C,ue){bt=!1,ue?C===0&&E?.isDeclarationFile?_x(C,C1):_x(C,MC):C===0&&_x(C,NC)}function NC(C,ue,xt,_r,ai){FC(C,ue)&&MC(C,ue,xt,_r,ai)}function C1(C,ue,xt,_r,ai){FC(C,ue)||MC(C,ue,xt,_r,ai)}function w1(C,ue){return e.onlyPrintJsDocStyle?MG(C,ue)||bF(C,ue):!0}function MC(C,ue,xt,_r,ai){!E||!w1(E.text,C)||(bt||(vre(oa(),ve,ai,C),bt=!0),mp(C),eI(E.text,oa(),ve,C,ue,x),mp(ue),_r?ve.writeLine():xt===3&&ve.writeSpace(" "))}function I1(C){zt||C===-1||Ov(C,!0)}function RC(C){D1(C,hT)}function hT(C,ue,xt,_r){!E||!w1(E.text,C)||(ve.isAtStartOfLine()||ve.writeSpace(" "),mp(C),eI(E.text,oa(),ve,C,ue,x),mp(ue),_r&&ve.writeLine())}function Jg(C,ue,xt){zt||(_t(),D1(C,ue?hT:xt?Nf:Bh),$t())}function Nf(C,ue,xt){E&&(mp(C),eI(E.text,oa(),ve,C,ue,x),mp(ue),xt===2&&ve.writeLine())}function Bh(C,ue,xt,_r){E&&(mp(C),eI(E.text,oa(),ve,C,ue,x),mp(ue),_r?ve.writeLine():ve.writeSpace(" "))}function _x(C,ue){E&&(ee===-1||C!==ee)&&(Va(C)?In(ue):o6(E.text,C,ue,C))}function D1(C,ue){E&&(Ne===-1||C!==Ne&&C!==Ie)&&c6(E.text,C,ue)}function Va(C){return Ve!==void 0&&xa(Ve).nodePos===C}function In(C){if(!E)return;let ue=xa(Ve).detachedCommentEndPos;Ve.length-1?Ve.pop():Ve=void 0,o6(E.text,ue,C,ue)}function Vf(C){let ue=E&&bre(E.text,oa(),ve,rf,C,x,zt);ue&&(Ve?Ve.push(ue):Ve=[ue])}function rf(C,ue,xt,_r,ai,wi){!E||!w1(E.text,_r)||(mp(_r),eI(C,ue,xt,_r,ai,wi),mp(ai))}function FC(C,ue){return!!E&&ZB(E.text,C,ue)}function ob(C,ue){let xt=Dt(3,C,ue);fx(ue),xt(C,ue),OC(ue)}function fx(C){let ue=Na(C),xt=av(C),_r=xt.source||tt;C.kind!==353&&(ue&32)===0&&xt.pos>=0&&gp(xt.source||tt,LC(_r,xt.pos)),ue&128&&(xe=!0)}function OC(C){let ue=Na(C),xt=av(C);ue&128&&(xe=!1),C.kind!==353&&(ue&64)===0&&xt.end>=0&&gp(xt.source||tt,xt.end)}function LC(C,ue){return C.skipTrivia?C.skipTrivia(ue):ha(C.text,ue)}function mp(C){if(xe||qd(C)||zh(tt))return;let{line:ue,character:xt}=Qs(tt,C);_e.addMapping(ve.getLine(),ve.getColumn(),ct,ue,xt,void 0)}function gp(C,ue){if(C!==tt){let xt=tt,_r=ct;cm(C),mp(ue),Py(xt,_r)}else mp(ue)}function nf(C,ue,xt,_r,ai){if(xe||C&&WF(C))return ai(ue,xt,_r);let wi=C&&C.emitNode,is=wi&&wi.flags||0,Ss=wi&&wi.tokenSourceMapRanges&&wi.tokenSourceMapRanges[ue],Ca=Ss&&Ss.source||tt;return _r=LC(Ca,Ss?Ss.pos:_r),(is&256)===0&&_r>=0&&gp(Ca,_r),_r=ai(ue,xt,_r),Ss&&(_r=Ss.end),(is&512)===0&&_r>=0&&gp(Ca,_r),_r}function cm(C){if(!xe){if(tt=C,C===le){ct=Je;return}zh(C)||(ct=_e.addSource(C.fileName),e.inlineSources&&_e.setSourceContent(ct,C.text),le=C,Je=ct)}}function Py(C,ue){tt=C,ct=ue}function zh(C){return nc(C.fileName,".json")}}function QGe(){let e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function KGe(e){return uTe[e&15360][0]}function XGe(e){return uTe[e&15360][1]}function YGe(e,t,n,i){t(e)}function ZGe(e,t,n,i){t(e,n.select(i))}function eUe(e,t,n,i){t(e,n)}function tUe(e,t){return e.length===1?YGe:typeof t=="object"?ZGe:eUe}function u5(e,t,n){if(!e.getDirectories||!e.readDirectory)return;let i=new Map,s=fu(n);return{useCaseSensitiveFileNames:n,fileExists:T,readFile:(U,me)=>e.readFile(U,me),directoryExists:e.directoryExists&&x,getDirectories:D,readDirectory:E,createDirectory:e.createDirectory&&I,writeFile:e.writeFile&&S,addOrDeleteFileOrDirectory:B,addOrDeleteFile:G,clearCache:K,realpath:e.realpath&&O};function o(U){return ko(U,t,s)}function c(U){return i.get(El(U))}function _(U){let me=c(Yn(U));return me&&(me.sortedAndCanonicalizedFiles||(me.sortedAndCanonicalizedFiles=me.files.map(s).sort(),me.sortedAndCanonicalizedDirectories=me.directories.map(s).sort()),me)}function u(U){return fl(na(U))}function g(U,me){var te;if(!e.realpath||El(o(e.realpath(U)))===me){let V={files:hr(e.readDirectory(U,void 0,void 0,["*.*"]),u)||[],directories:e.getDirectories(U)||[]};return i.set(El(me),V),V}if((te=e.directoryExists)!=null&&te.call(e,U))return i.set(me,!1),!1}function m(U,me){me=El(me);let te=c(me);if(te)return te;try{return g(U,me)}catch{w.assert(!i.has(El(me)));return}}function h(U,me){return o0(U,me,Do,wu)>=0}function S(U,me,te){let V=o(U),ne=_(V);return ne&&$(ne,u(U),!0),e.writeFile(U,me,te)}function T(U){let me=o(U),te=_(me);return te&&h(te.sortedAndCanonicalizedFiles,s(u(U)))||e.fileExists(U)}function x(U){let me=o(U);return i.has(El(me))||e.directoryExists(U)}function I(U){let me=o(U),te=_(me);if(te){let V=u(U),ne=s(V),ie=te.sortedAndCanonicalizedDirectories;s0(ie,ne,wu)&&te.directories.push(V)}e.createDirectory(U)}function D(U){let me=o(U),te=m(U,me);return te?te.directories.slice():e.getDirectories(U)}function E(U,me,te,V,ne){let ie=o(U),oe=m(U,ie),de;if(oe!==void 0)return xJ(U,me,te,V,n,t,ne,ye,O);return e.readDirectory(U,me,te,V,ne);function ye(ve){let Ge=o(ve);if(Ge===ie)return oe||H(ve,Ge);let De=m(ve,Ge);return De!==void 0?De||H(ve,Ge):DJ}function H(ve,Ge){if(de&&Ge===ie)return de;let De={files:hr(e.readDirectory(ve,void 0,void 0,["*.*"]),u)||qe,directories:e.getDirectories(ve)||qe};return Ge===ie&&(de=De),De}}function O(U){return e.realpath?e.realpath(U):U}function F(U){wP(Yn(U),me=>i.delete(El(me))?!0:void 0)}function B(U,me){if(c(me)!==void 0){K();return}let V=_(me);if(!V){F(me);return}if(!e.directoryExists){K();return}let ne=u(U),ie={fileExists:e.fileExists(U),directoryExists:e.directoryExists(U)};return ie.directoryExists||h(V.sortedAndCanonicalizedDirectories,s(ne))?K():$(V,ne,ie.fileExists),ie}function G(U,me,te){if(te===1)return;let V=_(me);V?$(V,u(U),te===0):F(me)}function $(U,me,te){let V=U.sortedAndCanonicalizedFiles,ne=s(me);if(te)s0(V,ne,wu)&&U.files.push(me);else{let ie=o0(V,ne,Do,wu);if(ie>=0){V.splice(ie,1);let oe=U.files.findIndex(de=>s(de)===ne);U.files.splice(oe,1)}}}function K(){i.clear()}}var qae=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(qae||{});function _5(e,t,n,i,s){var o;let c=yw(((o=t?.configFile)==null?void 0:o.extendedSourceFiles)||qe,s);n.forEach((_,u)=>{c.has(u)||(_.projects.delete(e),_.close())}),c.forEach((_,u)=>{let g=n.get(u);g?g.projects.add(e):n.set(u,{projects:new Set([e]),watcher:i(_,u),close:()=>{let m=n.get(u);!m||m.projects.size!==0||(m.watcher.close(),n.delete(u))}})})}function YU(e,t){t.forEach(n=>{n.projects.delete(e)&&n.close()})}function f5(e,t,n){e.delete(t)&&e.forEach(({extendedResult:i},s)=>{var o;(o=i.extendedSourceFiles)!=null&&o.some(c=>n(c)===t)&&f5(e,s,n)})}function ZU(e,t,n){hA(t,e.getMissingFilePaths(),{createNewValue:n,onDeleteValue:kd})}function LM(e,t,n){t?hA(e,new Map(Object.entries(t)),{createNewValue:i,onDeleteValue:Op,onExistingValue:s}):Q_(e,Op);function i(o,c){return{watcher:n(o,c),flags:c}}function s(o,c,_){o.flags!==c&&(o.watcher.close(),e.set(_,i(_,c)))}}function jM({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:n,configFileName:i,options:s,program:o,extraFileExtensions:c,currentDirectory:_,useCaseSensitiveFileNames:u,writeLog:g,toPath:m,getScriptKind:h}){let S=C5(n);if(!S)return g(`Project: ${i} Detected ignored path: ${t}`),!0;if(n=S,n===e)return!1;if(xw(n)&&!(IJ(t,s,c)||E()))return g(`Project: ${i} Detected file add/remove of non supported extension: ${t}`),!0;if(dse(t,s.configFile.configFileSpecs,as(Yn(i),_),u,_))return g(`Project: ${i} Detected excluded file: ${t}`),!0;if(!o||s.outFile||s.outDir)return!1;if(Ll(n)){if(s.declarationDir)return!1}else if(!Gc(n,aI))return!1;let T=i_(n),x=ks(o)?void 0:PV(o)?o.getProgramOrUndefined():o,I=!x&&!ks(o)?o:void 0;if(D(T+".ts")||D(T+".tsx"))return g(`Project: ${i} Detected output file: ${t}`),!0;return!1;function D(O){return x?!!x.getSourceFileByPath(O):I?I.state.fileInfos.has(O):!!On(o,F=>m(F)===O)}function E(){if(!h)return!1;switch(h(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return F0(s);case 6:return DS(s);case 0:return!1}}}function $ae(e,t){return e?e.isEmittedFile(t):!1}var Hae=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(Hae||{});function eV(e,t,n,i){eee(t===2?n:to);let s={watchFile:(I,D,E,O)=>e.watchFile(I,D,E,O),watchDirectory:(I,D,E,O)=>e.watchDirectory(I,D,(E&1)!==0,O)},o=t!==0?{watchFile:T("watchFile"),watchDirectory:T("watchDirectory")}:void 0,c=t===2?{watchFile:h,watchDirectory:S}:o||s,_=t===2?m:SE;return{watchFile:u("watchFile"),watchDirectory:u("watchDirectory")};function u(I){return(D,E,O,F,B,G)=>{var $;return j7(D,I==="watchFile"?F?.excludeFiles:F?.excludeDirectories,g(),(($=e.getCurrentDirectory)==null?void 0:$.call(e))||"")?_(D,O,F,B,G):c[I].call(void 0,D,E,O,F,B,G)}}function g(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function m(I,D,E,O,F){return n(`ExcludeWatcher:: Added:: ${x(I,D,E,O,F,i)}`),{close:()=>n(`ExcludeWatcher:: Close:: ${x(I,D,E,O,F,i)}`)}}function h(I,D,E,O,F,B){n(`FileWatcher:: Added:: ${x(I,E,O,F,B,i)}`);let G=o.watchFile(I,D,E,O,F,B);return{close:()=>{n(`FileWatcher:: Close:: ${x(I,E,O,F,B,i)}`),G.close()}}}function S(I,D,E,O,F,B){let G=`DirectoryWatcher:: Added:: ${x(I,E,O,F,B,i)}`;n(G);let $=To(),K=o.watchDirectory(I,D,E,O,F,B),U=To()-$;return n(`Elapsed:: ${U}ms ${G}`),{close:()=>{let me=`DirectoryWatcher:: Close:: ${x(I,E,O,F,B,i)}`;n(me);let te=To();K.close();let V=To()-te;n(`Elapsed:: ${V}ms ${me}`)}}}function T(I){return(D,E,O,F,B,G)=>s[I].call(void 0,D,(...$)=>{let K=`${I==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${$[0]} ${$[1]!==void 0?$[1]:""}:: ${x(D,O,F,B,G,i)}`;n(K);let U=To();E.call(void 0,...$);let me=To()-U;n(`Elapsed:: ${me}ms ${K}`)},O,F,B,G)}function x(I,D,E,O,F,B){return`WatchInfo: ${I} ${D} ${JSON.stringify(E)} ${B?B(O,F):F===void 0?O:`${O} ${F}`}`}}function WM(e){let t=e?.fallbackPolling;return{watchFile:t!==void 0?t:1}}function Op(e){e.watcher.close()}function tV(e,t,n="tsconfig.json"){return wP(e,i=>{let s=Bn(i,n);return t(s)?s:void 0})}function rV(e,t){let n=Yn(t),i=ff(e)?e:Bn(n,e);return na(i)}function Qae(e,t,n){let i;return or(e,o=>{let c=B8(o,t);if(c.pop(),!i){i=c;return}let _=Math.min(i.length,c.length);for(let u=0;u<_;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?Ib(i):t}function Kae(e,t){return p5(e,t)}function nV(e,t){return(n,i,s)=>{let o;try{dc("beforeIORead"),o=e(n),dc("afterIORead"),Tp("I/O Read","beforeIORead","afterIORead")}catch(c){s&&s(c.message),o=""}return o!==void 0?$2(n,o,i,t):void 0}}function iV(e,t,n){return(i,s,o,c)=>{try{dc("beforeIOWrite"),$z(i,s,o,e,t,n),dc("afterIOWrite"),Tp("I/O Write","beforeIOWrite","afterIOWrite")}catch(_){c&&c(_.message)}}}function p5(e,t,n=Al){let i=new Map,s=fu(n.useCaseSensitiveFileNames);function o(m){return i.has(m)?!0:(g.directoryExists||n.directoryExists)(m)?(i.set(m,!0),!0):!1}function c(){return Yn(na(n.getExecutingFilePath()))}let _=nv(e),u=n.realpath&&(m=>n.realpath(m)),g={getSourceFile:nV(m=>g.readFile(m),t),getDefaultLibLocation:c,getDefaultLibFileName:m=>Bn(c(),u6(m)),writeFile:iV((m,h,S)=>n.writeFile(m,h,S),m=>(g.createDirectory||n.createDirectory)(m),m=>o(m)),getCurrentDirectory:Yu(()=>n.getCurrentDirectory()),useCaseSensitiveFileNames:()=>n.useCaseSensitiveFileNames,getCanonicalFileName:s,getNewLine:()=>_,fileExists:m=>n.fileExists(m),readFile:m=>n.readFile(m),trace:m=>n.write(m+_),directoryExists:m=>n.directoryExists(m),getEnvironmentVariable:m=>n.getEnvironmentVariable?n.getEnvironmentVariable(m):"",getDirectories:m=>n.getDirectories(m),realpath:u,readDirectory:(m,h,S,T,x)=>n.readDirectory(m,h,S,T,x),createDirectory:m=>n.createDirectory(m),createHash:Vs(n,n.createHash)};return g}function hE(e,t,n){let i=e.readFile,s=e.fileExists,o=e.directoryExists,c=e.createDirectory,_=e.writeFile,u=new Map,g=new Map,m=new Map,h=new Map,S=I=>{let D=t(I),E=u.get(D);return E!==void 0?E!==!1?E:void 0:T(D,I)},T=(I,D)=>{let E=i.call(e,D);return u.set(I,E!==void 0?E:!1),E};e.readFile=I=>{let D=t(I),E=u.get(D);return E!==void 0?E!==!1?E:void 0:!nc(I,".json")&&!Bae(I)?i.call(e,I):T(D,I)};let x=n?(I,D,E,O)=>{let F=t(I),B=typeof D=="object"?D.impliedNodeFormat:void 0,G=h.get(B),$=G?.get(F);if($)return $;let K=n(I,D,E,O);return K&&(Ll(I)||nc(I,".json"))&&h.set(B,(G||new Map).set(F,K)),K}:void 0;return e.fileExists=I=>{let D=t(I),E=g.get(D);if(E!==void 0)return E;let O=s.call(e,I);return g.set(D,!!O),O},_&&(e.writeFile=(I,D,...E)=>{let O=t(I);g.delete(O);let F=u.get(O);F!==void 0&&F!==D?(u.delete(O),h.forEach(B=>B.delete(O))):x&&h.forEach(B=>{let G=B.get(O);G&&G.text!==D&&B.delete(O)}),_.call(e,I,D,...E)}),o&&(e.directoryExists=I=>{let D=t(I),E=m.get(D);if(E!==void 0)return E;let O=o.call(e,I);return m.set(D,!!O),O},c&&(e.createDirectory=I=>{let D=t(I);m.delete(D),c.call(e,I)})),{originalReadFile:i,originalFileExists:s,originalDirectoryExists:o,originalCreateDirectory:c,originalWriteFile:_,getSourceFileWithCache:x,readFileWithCache:S}}function yTe(e,t,n){let i;return i=jn(i,e.getConfigFileParsingDiagnostics()),i=jn(i,e.getOptionsDiagnostics(n)),i=jn(i,e.getSyntacticDiagnostics(t,n)),i=jn(i,e.getGlobalDiagnostics(n)),i=jn(i,e.getSemanticDiagnostics(t,n)),K_(e.getCompilerOptions())&&(i=jn(i,e.getDeclarationDiagnostics(t,n))),Dw(i||qe)}function vTe(e,t){let n="";for(let i of e)n+=sV(i,t);return n}function sV(e,t){let n=`${QT(e)} TS${e.code}: ${Gm(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){let{line:i,character:s}=Qs(e.file,e.start),o=e.file.fileName;return`${CP(o,t.getCurrentDirectory(),_=>t.getCanonicalFileName(_))}(${i+1},${s+1}): `+n}return n}var Xae=(e=>(e.Grey="\x1B[90m",e.Red="\x1B[91m",e.Yellow="\x1B[93m",e.Blue="\x1B[94m",e.Cyan="\x1B[96m",e))(Xae||{}),Yae="\x1B[7m",Zae=" ",bTe="\x1B[0m",STe="...",rUe=" ",TTe=" ";function kTe(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 $S(e,t){return t+e+bTe}function xTe(e,t,n,i,s,o){let{line:c,character:_}=Qs(e,t),{line:u,character:g}=Qs(e,t+n),m=Qs(e,e.text.length).line,h=u-c>=4,S=(u+1+"").length;h&&(S=Math.max(STe.length,S));let T="";for(let x=c;x<=u;x++){T+=o.getNewLine(),h&&c+1<x&&x<u-1&&(T+=i+$S(STe.padStart(S),Yae)+Zae+o.getNewLine(),x=u-1);let I=s6(e,x,0),D=x<m?s6(e,x+1,0):e.text.length,E=e.text.slice(I,D);if(E=E.trimEnd(),E=E.replace(/\t/g," "),T+=i+$S((x+1+"").padStart(S),Yae)+Zae,T+=E+o.getNewLine(),T+=i+$S("".padStart(S),Yae)+Zae,T+=s,x===c){let O=x===u?g:void 0;T+=E.slice(0,_).replace(/\S/g," "),T+=E.slice(_,O).replace(/./g,"~")}else x===u?T+=E.slice(0,g).replace(/./g,"~"):T+=E.replace(/./g,"~");T+=bTe}return T}function aV(e,t,n,i=$S){let{line:s,character:o}=Qs(e,t),c=n?CP(e.fileName,n.getCurrentDirectory(),u=>n.getCanonicalFileName(u)):e.fileName,_="";return _+=i(c,"\x1B[96m"),_+=":",_+=i(`${s+1}`,"\x1B[93m"),_+=":",_+=i(`${o+1}`,"\x1B[93m"),_}function eoe(e,t){let n="";for(let i of e){if(i.file){let{file:s,start:o}=i;n+=aV(s,o,t),n+=" - "}if(n+=$S(QT(i),kTe(i.category)),n+=$S(` TS${i.code}: `,"\x1B[90m"),n+=Gm(i.messageText,t.getNewLine()),i.file&&i.code!==p.File_appears_to_be_binary.code&&(n+=t.getNewLine(),n+=xTe(i.file,i.start,i.length,"",kTe(i.category),t)),i.relatedInformation){n+=t.getNewLine();for(let{file:s,start:o,length:c,messageText:_}of i.relatedInformation)s&&(n+=t.getNewLine(),n+=rUe+aV(s,o,t),n+=xTe(s,o,c,TTe,"\x1B[96m",t)),n+=t.getNewLine(),n+=TTe+Gm(_,t.getNewLine())}n+=t.getNewLine()}return n}function Gm(e,t,n=0){if(ys(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+=Gm(s,t,n);return i}function toe(e,t){return(ys(e)?t:e.resolutionMode)||t}function CTe(e,t,n){return d5(e,GM(e,t),n)}function oV(e){var t;return Xc(e)?e.isTypeOnly:!!((t=e.importClause)!=null&&t.isTypeOnly)}function cV(e,t,n){return d5(e,t,n)}function d5(e,t,n){if((sc(t.parent)||Xc(t.parent)||zm(t.parent))&&oV(t.parent)){let s=jI(t.parent.attributes);if(s)return s}if(t.parent.parent&&Om(t.parent.parent)){let i=jI(t.parent.parent.attributes);if(i)return i}if(n&&hJ(n))return wTe(e,t,n)}function wTe(e,t,n){var i;if(!n)return;let s=(i=Td(t.parent))==null?void 0:i.parent;if(s&&Ol(s)||R_(t.parent,!1))return 1;if(jf(Td(t.parent)))return ATe(e,n)?1:99;let o=bE(e,n);return o===1?1:E4(o)||o===200?99:void 0}function jI(e,t){if(!e)return;if(Dr(e.elements)!==1){t?.(e,e.token===118?p.Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:p.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?p.resolution_mode_is_the_only_valid_key_for_type_import_attributes:p.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,p.resolution_mode_should_be_either_require_or_import);return}return n.value.text==="import"?99:1}}}var ITe={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0};function roe(e){return e.text}var m5={getName:roe,getMode:(e,t,n)=>cV(t,e,n)};function lV(e,t,n,i,s){return{nameAndMode:m5,resolve:(o,c)=>Fk(o,e,n,i,s,t,c)}}function noe(e){return ys(e)?e:e.fileName}var DTe={getName:noe,getMode:(e,t,n)=>toe(e,t&&v5(t,n))};function g5(e,t,n,i,s){return{nameAndMode:DTe,resolve:(o,c)=>xse(o,e,n,i,t,s,c)}}function BM(e,t,n,i,s,o,c,_){if(e.length===0)return qe;let u=[],g=new Map,m=_(t,n,i,o,c);for(let h of e){let S=m.nameAndMode.getName(h),T=m.nameAndMode.getMode(h,s,n?.commandLine.options||i),x=nE(S,T),I=g.get(x);I||g.set(x,I=m.resolve(S,T)),u.push(I)}return u}var yE="__inferred type names__.ts";function h5(e,t,n){let i=e.configFilePath?Yn(e.configFilePath):t;return Bn(i,`__lib_node_modules_lookup_${n}__.ts`)}function uV(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 i1(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 vE(e,t){var n,i,s,o;let c=w.checkDefined(e.getSourceFileByPath(t.file)),{kind:_,index:u}=t,g,m,h;switch(_){case 3:let S=GM(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),m=S.end;break;case 4:({pos:g,end:m}=c.referencedFiles[u]);break;case 5:({pos:g,end:m}=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:m}=c.libReferenceDirectives[u]);break;default:return w.assertNever(_)}return{file:c,pos:g,end:m,packageId:h}}function _V(e,t,n,i,s,o,c,_,u,g){if(!e||_?.()||!Yf(e.getRootFileNames(),t))return!1;let m;if(!Yf(e.getProjectReferences(),g,I)||e.getSourceFiles().some(T))return!1;let h=e.getMissingFilePaths();if(h&&Nl(h,s))return!1;let S=e.getCompilerOptions();if(!uJ(S,n)||e.resolvedLibReferences&&Nl(e.resolvedLibReferences,(E,O)=>c(O)))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,O,F){return QB(E,O)&&D(e.getResolvedProjectReferences()[F],E)}function D(E,O){if(E){if(Ts(m,E))return!0;let B=tC(O),G=u(B);return!G||E.commandLine.options.configFile!==G.options.configFile||!Yf(E.commandLine.fileNames,G.fileNames)?!1:((m||(m=[])).push(E),!or(E.references,($,K)=>!D($,E.commandLine.projectReferences[K])))}let F=tC(O);return!u(F)}}function HS(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function zM(e,t,n,i){let s=y5(e,t,n,i);return typeof s=="object"?s.impliedNodeFormat:s}function y5(e,t,n,i){let s=Bu(i),o=3<=s&&s<=99||V0(e);return Gc(e,[".d.mts",".mts",".mjs"])?99:Gc(e,[".d.cts",".cts",".cjs"])?1:o&&Gc(e,[".d.ts",".ts",".tsx",".js",".jsx"])?c():void 0;function c(){let _=iE(t,n,i),u=[];_.failedLookupLocations=u,_.affectingLocations=u;let g=sE(Yn(e),_);return{impliedNodeFormat:g?.contents.packageJsonContent.type==="module"?99:1,packageJsonLocations:u,packageJsonScope:g}}}var PTe=new Set([p.Cannot_redeclare_block_scoped_variable_0.code,p.A_module_cannot_have_multiple_default_exports.code,p.Another_export_default_is_here.code,p.The_first_export_default_is_here.code,p.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,p.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,p.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,p.constructor_is_a_reserved_word.code,p.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,p.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,p.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,p.Invalid_use_of_0_in_strict_mode.code,p.A_label_is_not_allowed_here.code,p.with_statements_are_not_allowed_in_strict_mode.code,p.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,p.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,p.A_class_declaration_without_the_default_modifier_must_have_a_name.code,p.A_class_member_cannot_have_the_0_keyword.code,p.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,p.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,p.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,p.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,p.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,p.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,p.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,p.A_destructuring_declaration_must_have_an_initializer.code,p.A_get_accessor_cannot_have_parameters.code,p.A_rest_element_cannot_contain_a_binding_pattern.code,p.A_rest_element_cannot_have_a_property_name.code,p.A_rest_element_cannot_have_an_initializer.code,p.A_rest_element_must_be_last_in_a_destructuring_pattern.code,p.A_rest_parameter_cannot_have_an_initializer.code,p.A_rest_parameter_must_be_last_in_a_parameter_list.code,p.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,p.A_return_statement_cannot_be_used_inside_a_class_static_block.code,p.A_set_accessor_cannot_have_rest_parameter.code,p.A_set_accessor_must_have_exactly_one_parameter.code,p.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,p.An_export_declaration_cannot_have_modifiers.code,p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,p.An_import_declaration_cannot_have_modifiers.code,p.An_object_member_cannot_be_declared_optional.code,p.Argument_of_dynamic_import_cannot_be_spread_element.code,p.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,p.Cannot_redeclare_identifier_0_in_catch_clause.code,p.Catch_clause_variable_cannot_have_an_initializer.code,p.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,p.Classes_can_only_extend_a_single_class.code,p.Classes_may_not_have_a_field_named_constructor.code,p.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,p.Duplicate_label_0.code,p.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,p.for_await_loops_cannot_be_used_inside_a_class_static_block.code,p.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,p.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,p.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,p.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,p.Jump_target_cannot_cross_function_boundary.code,p.Line_terminator_not_permitted_before_arrow.code,p.Modifiers_cannot_appear_here.code,p.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,p.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,p.Private_identifiers_are_not_allowed_outside_class_bodies.code,p.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,p.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,p.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,p.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,p.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,p.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,p.Trailing_comma_not_allowed.code,p.Variable_declaration_list_cannot_be_empty.code,p._0_and_1_operations_cannot_be_mixed_without_parentheses.code,p._0_expected.code,p._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,p._0_list_cannot_be_empty.code,p._0_modifier_already_seen.code,p._0_modifier_cannot_appear_on_a_constructor_declaration.code,p._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,p._0_modifier_cannot_appear_on_a_parameter.code,p._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,p._0_modifier_cannot_be_used_here.code,p._0_modifier_must_precede_1_modifier.code,p._0_declarations_can_only_be_declared_inside_a_block.code,p._0_declarations_must_be_initialized.code,p.extends_clause_already_seen.code,p.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,p.Class_constructor_may_not_be_a_generator.code,p.Class_constructor_may_not_be_an_accessor.code,p.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,p.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,p.Private_field_0_must_be_declared_in_an_enclosing_class.code,p.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]);function nUe(e,t){return e?n2(e.getCompilerOptions(),t,zG):!1}function iUe(e,t,n,i,s,o){return{rootNames:e,options:t,host:n,oldProgram:i,configFileParsingDiagnostics:s,typeScriptVersion:o}}function JM(e,t,n,i,s){var o,c,_,u,g,m,h,S,T,x,I,D,E,O,F,B;let G=ks(e)?iUe(e,t,n,i,s):e,{rootNames:$,options:K,configFileParsingDiagnostics:U,projectReferences:me,typeScriptVersion:te,host:V}=G,{oldProgram:ne}=G;G=void 0,e=void 0;for(let Be of tse)if(bo(K,Be.name)&&typeof K[Be.name]=="string")throw new Error(`${Be.name} is a string value; tsconfig JSON must be parsed with parseJsonSourceFileConfigFileContent or getParsedCommandLineOfConfigFile before passing to createProgram`);let ie=Yu(()=>Zi("ignoreDeprecations",p.Invalid_value_for_ignoreDeprecations)),oe,de,ye,H,ve,Ge,De,se,xe,_e=ioe(vl),tt,ct,le,Je,ee,Ne,Ie,Ce,Ve,bt=typeof K.maxNodeModuleJsDepth=="number"?K.maxNodeModuleJsDepth:0,zt=0,ur=new Map,Or=new Map;(o=_n)==null||o.push(_n.Phase.Program,"createProgram",{configFilePath:K.configFilePath,rootDir:K.rootDir},!0),dc("beforeProgram");let _t=V||Kae(K),$t=S5(_t),Hr=K.noLib,hi=Yu(()=>_t.getDefaultLibFileName(K)),_s=_t.getDefaultLibLocation?_t.getDefaultLibLocation():Yn(hi()),At=!1,zn=_t.getCurrentDirectory(),ns=SA(K),Rn=R4(K,ns),hn=new Map,ui,Ue,ht,sr,Zr=_t.hasInvalidatedResolutions||ey;_t.resolveModuleNameLiterals?(sr=_t.resolveModuleNameLiterals.bind(_t),ht=(c=_t.getModuleResolutionCache)==null?void 0:c.call(_t)):_t.resolveModuleNames?(sr=(Be,rt,Lt,cr,qr,Sn)=>_t.resolveModuleNames(Be.map(roe),rt,Sn?.map(roe),Lt,cr,qr).map(zr=>zr?zr.extension!==void 0?{resolvedModule:zr}:{resolvedModule:{...zr,extension:kA(zr.resolvedFileName)}}:ITe),ht=(_=_t.getModuleResolutionCache)==null?void 0:_.call(_t)):(ht=EI(zn,re,K),sr=(Be,rt,Lt,cr,qr)=>BM(Be,rt,Lt,cr,qr,_t,ht,lV));let Zn;if(_t.resolveTypeReferenceDirectiveReferences)Zn=_t.resolveTypeReferenceDirectiveReferences.bind(_t);else if(_t.resolveTypeReferenceDirectives)Zn=(Be,rt,Lt,cr,qr)=>_t.resolveTypeReferenceDirectives(Be.map(noe),rt,Lt,cr,qr?.impliedNodeFormat).map(Sn=>({resolvedTypeReferenceDirective:Sn}));else{let Be=U7(zn,re,void 0,ht?.getPackageJsonInfoCache(),ht?.optionsToRedirectsKey);Zn=(rt,Lt,cr,qr,Sn)=>BM(rt,Lt,cr,qr,Sn,_t,Be,g5)}let Xn=_t.hasInvalidatedLibResolutions||ey,Pi;if(_t.resolveLibrary)Pi=_t.resolveLibrary.bind(_t);else{let Be=EI(zn,re,K,ht?.getPackageJsonInfoCache());Pi=(rt,Lt,cr)=>V7(rt,Lt,cr,_t,Be)}let Rs=new Map,oa=new Map,xr=Kp(),xs,Ye=new Map,Nt=new Map,ae=_t.useCaseSensitiveFileNames()?new Map:void 0,lt,Y,Ae,Xe,st=!!((u=_t.useSourceOfProjectReferenceRedirect)!=null&&u.call(_t))&&!K.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Dt,fileExists:Fe,directoryExists:St}=sUe({compilerHost:_t,getSymlinkCache:Z_,useSourceOfProjectReferenceRedirect:st,toPath:Ot,getResolvedProjectReferences:Os,getSourceOfProjectReferenceRedirect:C_,forEachResolvedProjectReference:If}),vt=_t.readFile.bind(_t);(g=_n)==null||g.push(_n.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!ne});let Mt=nUe(ne,K);(m=_n)==null||m.pop();let Ke;if((h=_n)==null||h.push(_n.Phase.Program,"tryReuseStructureFromOldProgram",{}),Ke=tr(),(S=_n)==null||S.pop(),Ke!==2){if(oe=[],de=[],me&&(lt||(lt=me.map(Xt)),$.length&<?.forEach((Be,rt)=>{if(!Be)return;let Lt=Be.commandLine.options.outFile;if(st){if(Lt||n_(Be.commandLine.options)===0)for(let cr of Be.commandLine.fileNames)Ee(cr,{kind:1,index:rt})}else if(Lt)Ee(fy(Lt,".d.ts"),{kind:2,index:rt});else if(n_(Be.commandLine.options)===0){let cr=Yu(()=>Wk(Be.commandLine,!_t.useCaseSensitiveFileNames()));for(let qr of Be.commandLine.fileNames)!Ll(qr)&&!nc(qr,".json")&&Ee(LI(qr,Be.commandLine,!_t.useCaseSensitiveFileNames(),cr),{kind:2,index:rt})}})),(T=_n)==null||T.push(_n.Phase.Program,"processRootFiles",{count:$.length}),or($,(Be,rt)=>Go(Be,!1,!1,{kind:0,index:rt})),(x=_n)==null||x.pop(),tt??(tt=$.length?J7(K,_t):qe),ct=AI(),tt.length){(I=_n)==null||I.push(_n.Phase.Program,"processTypeReferences",{count:tt.length});let Be=K.configFilePath?Yn(K.configFilePath):zn,rt=Bn(Be,yE),Lt=dr(tt,rt);for(let cr=0;cr<tt.length;cr++)ct.set(tt[cr],void 0,Lt[cr]),B_(tt[cr],void 0,Lt[cr],{kind:8,typeReference:tt[cr],packageId:(E=(D=Lt[cr])==null?void 0:D.resolvedTypeReferenceDirective)==null?void 0:E.packageId});(O=_n)==null||O.pop()}if($.length&&!Hr){let Be=hi();!K.lib&&Be?Go(Be,!0,!1,{kind:6}):or(K.lib,(rt,Lt)=>{Go(Km(rt),!0,!1,{kind:6,index:Lt})})}ye=lf(oe,Tt).concat(de),oe=void 0,de=void 0,De=void 0}if(ne&&_t.onReleaseOldSourceFile){let Be=ne.getSourceFiles();for(let rt of Be){let Lt=Zo(rt.resolvedPath);(Mt||!Lt||Lt.impliedNodeFormat!==rt.impliedNodeFormat||rt.resolvedPath===rt.path&&Lt.resolvedPath!==rt.path)&&_t.onReleaseOldSourceFile(rt,ne.getCompilerOptions(),!!Zo(rt.path),Lt)}_t.getParsedCommandLine||ne.forEachResolvedProjectReference(rt=>{zf(rt.sourceFile.path)||_t.onReleaseOldSourceFile(rt.sourceFile,ne.getCompilerOptions(),!1,void 0)})}ne&&_t.onReleaseParsedCommandLine&&MA(ne.getProjectReferences(),ne.getResolvedProjectReferences(),(Be,rt,Lt)=>{let cr=rt?.commandLine.projectReferences[Lt]||ne.getProjectReferences()[Lt],qr=tC(cr);Y?.has(Ot(qr))||_t.onReleaseParsedCommandLine(qr,Be,ne.getCompilerOptions())}),ne=void 0,Je=void 0,Ne=void 0,Ce=void 0;let Vt={getRootFileNames:()=>$,getSourceFile:Oa,getSourceFileByPath:Zo,getSourceFiles:()=>ye,getMissingFilePaths:()=>Nt,getModuleResolutionCache:()=>ht,getFilesByNameMap:()=>Ye,getCompilerOptions:()=>K,getSyntacticDiagnostics:ms,getOptionsDiagnostics:Ci,getGlobalDiagnostics:io,getSemanticDiagnostics:Ys,getCachedSemanticDiagnostics:Ba,getSuggestionDiagnostics:ft,getDeclarationDiagnostics:fo,getBindAndCheckDiagnostics:La,getProgramDiagnostics:Ht,getTypeChecker:xi,getClassifiableNames:ar,getCommonSourceDirectory:vr,emit:bs,getCurrentDirectory:()=>zn,getNodeCount:()=>xi().getNodeCount(),getIdentifierCount:()=>xi().getIdentifierCount(),getSymbolCount:()=>xi().getSymbolCount(),getTypeCount:()=>xi().getTypeCount(),getInstantiationCount:()=>xi().getInstantiationCount(),getRelationCacheSizes:()=>xi().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>_e.getFileProcessingDiagnostics(),getAutomaticTypeDirectiveNames:()=>tt,getAutomaticTypeDirectiveResolutions:()=>ct,isSourceFileFromExternalLibrary:uc,isSourceFileDefaultLibrary:Bc,getModeForUsageLocation:rm,getEmitSyntaxForUsageLocation:Xm,getModeForResolutionAtIndex:_d,getSourceFileFromReference:bu,getLibFileFromReference:wf,sourceFileToPackageName:oa,redirectTargetsMap:xr,usesUriStyleNodeCoreModules:xs,resolvedModules:ee,resolvedTypeReferenceDirectiveNames:Ie,resolvedLibReferences:le,getProgramDiagnosticsContainer:()=>_e,getResolvedModule:on,getResolvedModuleFromModuleSpecifier:Pe,getResolvedTypeReferenceDirective:kt,getResolvedTypeReferenceDirectiveFromTypeReferenceDirective:pe,forEachResolvedModule:j,forEachResolvedTypeReferenceDirective:Re,getCurrentPackagesMap:()=>Ve,typesPackageExists:jt,packageBundlesTypes:we,isEmittedFile:ky,getConfigFileParsingDiagnostics:Ta,getProjectReferences:qc,getResolvedProjectReferences:Os,getProjectReferenceRedirect:yc,getResolvedProjectReferenceToRedirect:Il,getResolvedProjectReferenceByPath:zf,forEachResolvedProjectReference:If,isSourceOfProjectReferenceRedirect:Pd,getRedirectReferenceForResolutionFromSourceOfProject:it,getCompilerOptionsForFile:_p,getDefaultResolutionModeForFile:Y0,getEmitModuleFormatOfFile:bv,getImpliedNodeFormatForEmit:Gf,shouldTransformImportCall:Z0,emitBuildInfo:ta,fileExists:Fe,readFile:vt,directoryExists:St,getSymlinkCache:Z_,realpath:(F=_t.realpath)==null?void 0:F.bind(_t),useCaseSensitiveFileNames:()=>_t.useCaseSensitiveFileNames(),getCanonicalFileName:re,getFileIncludeReasons:()=>_e.getFileReasons(),structureIsReused:Ke,writeFile:zs,getGlobalTypingsCacheLocation:Vs(_t,_t.getGlobalTypingsCacheLocation)};return Dt(),At||Ar(),dc("afterProgram"),Tp("Program","beforeProgram","afterProgram"),(B=_n)==null||B.pop(),Vt;function on(Be,rt,Lt){var cr;return(cr=ee?.get(Be.path))==null?void 0:cr.get(rt,Lt)}function Pe(Be,rt){return rt??(rt=Fr(Be)),w.assertIsDefined(rt,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),on(rt,Be.text,rm(rt,Be))}function kt(Be,rt,Lt){var cr;return(cr=Ie?.get(Be.path))==null?void 0:cr.get(rt,Lt)}function pe(Be,rt){return kt(rt,Be.fileName,Sv(Be,rt))}function j(Be,rt){q(ee,Be,rt)}function Re(Be,rt){q(Ie,Be,rt)}function q(Be,rt,Lt){var cr;Lt?(cr=Be?.get(Lt.path))==null||cr.forEach((qr,Sn,zr)=>rt(qr,Sn,zr,Lt.path)):Be?.forEach((qr,Sn)=>qr.forEach((zr,bn,Di)=>rt(zr,bn,Di,Sn)))}function yt(){return Ve||(Ve=new Map,j(({resolvedModule:Be})=>{Be?.packageId&&Ve.set(Be.packageId.name,Be.extension===".d.ts"||!!Ve.get(Be.packageId.name))}),Ve)}function jt(Be){return yt().has(H7(Be))}function we(Be){return!!yt().get(Be)}function ut(Be){var rt;(rt=Be.resolutionDiagnostics)!=null&&rt.length&&_e.addFileProcessingDiagnostic({kind:2,diagnostics:Be.resolutionDiagnostics})}function Qt(Be,rt,Lt,cr){if(_t.resolveModuleNameLiterals||!_t.resolveModuleNames)return ut(Lt);if(!ht||Jl(rt))return;let qr=as(Be.originalFileName,zn),Sn=Yn(qr),zr=$r(Be),bn=ht.getFromNonRelativeNameCache(rt,cr,Sn,zr);bn&&ut(bn)}function en(Be,rt,Lt){var cr,qr;let Sn=as(rt.originalFileName,zn),zr=$r(rt);(cr=_n)==null||cr.push(_n.Phase.Program,"resolveModuleNamesWorker",{containingFileName:Sn}),dc("beforeResolveModule");let bn=sr(Be,Sn,zr,K,rt,Lt);return dc("afterResolveModule"),Tp("ResolveModule","beforeResolveModule","afterResolveModule"),(qr=_n)==null||qr.pop(),bn}function Pr(Be,rt,Lt){var cr,qr;let Sn=ys(rt)?void 0:rt,zr=ys(rt)?rt:as(rt.originalFileName,zn),bn=Sn&&$r(Sn);(cr=_n)==null||cr.push(_n.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:zr}),dc("beforeResolveTypeReference");let Di=Zn(Be,zr,bn,K,Sn,Lt);return dc("afterResolveTypeReference"),Tp("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(qr=_n)==null||qr.pop(),Di}function $r(Be){let rt=Il(Be.originalFileName);if(rt||!Ll(Be.originalFileName))return rt;let Lt=it(Be.path);if(Lt)return Lt;if(!_t.realpath||!K.preserveSymlinks||!Be.originalFileName.includes(Ch))return;let cr=Ot(_t.realpath(Be.originalFileName));return cr===Be.path?void 0:it(cr)}function it(Be){let rt=C_(Be);if(ys(rt))return Il(rt);if(rt)return If(Lt=>{let cr=Lt.commandLine.options.outFile;if(cr)return Ot(cr)===Be?Lt:void 0})}function Tt(Be,rt){return Po(Ut(Be),Ut(rt))}function Ut(Be){if(kp(_s,Be.fileName,!1)){let rt=fl(Be.fileName);if(rt==="lib.d.ts"||rt==="lib.es6.d.ts")return 0;let Lt=Sw(gP(rt,"lib."),".d.ts"),cr=C7.indexOf(Lt);if(cr!==-1)return cr+1}return C7.length+2}function Ot(Be){return ko(Be,zn,re)}function vr(){let Be=_e.getCommonSourceDirectory();if(Be!==void 0)return Be;let rt=An(ye,Lt=>kS(Lt,Vt));return Be=gE(K,()=>Vi(rt,Lt=>Lt.isDeclarationFile?void 0:Lt.fileName),zn,re,Lt=>Kt(rt,Lt)),_e.setCommonSourceDirectory(Be),Be}function ar(){var Be;if(!Ge){xi(),Ge=new Set;for(let rt of ye)(Be=rt.classifiableNames)==null||Be.forEach(Lt=>Ge.add(Lt))}return Ge}function Gt(Be,rt){return Sr({entries:Be,containingFile:rt,containingSourceFile:rt,redirectedReference:$r(rt),nameAndModeGetter:m5,resolutionWorker:en,getResolutionFromOldProgram:(Lt,cr)=>ne?.getResolvedModule(rt,Lt,cr),getResolved:i2,canReuseResolutionsInFile:()=>rt===ne?.getSourceFile(rt.fileName)&&!Zr(rt.path),resolveToOwnAmbientModule:!0})}function dr(Be,rt){let Lt=ys(rt)?void 0:rt;return Sr({entries:Be,containingFile:rt,containingSourceFile:Lt,redirectedReference:Lt&&$r(Lt),nameAndModeGetter:DTe,resolutionWorker:Pr,getResolutionFromOldProgram:(cr,qr)=>{var Sn;return Lt?ne?.getResolvedTypeReferenceDirective(Lt,cr,qr):(Sn=ne?.getAutomaticTypeDirectiveResolutions())==null?void 0:Sn.get(cr,qr)},getResolved:gF,canReuseResolutionsInFile:()=>Lt?Lt===ne?.getSourceFile(Lt.fileName)&&!Zr(Lt.path):!Zr(Ot(rt))})}function Sr({entries:Be,containingFile:rt,containingSourceFile:Lt,redirectedReference:cr,nameAndModeGetter:qr,resolutionWorker:Sn,getResolutionFromOldProgram:zr,getResolved:bn,canReuseResolutionsInFile:Di,resolveToOwnAmbientModule:fs}){if(!Be.length)return qe;if(Ke===0&&(!fs||!Lt.ambientModuleNames.length))return Sn(Be,rt,void 0);let ti,qi,Ls,Ql,fp=Di();for(let Pf=0;Pf<Be.length;Pf++){let Ng=Be[Pf];if(fp){let Ad=qr.getName(Ng),Mg=qr.getMode(Ng,Lt,cr?.commandLine.options??K),Tv=zr(Ad,Mg),Rg=Tv&&bn(Tv);if(Rg){G0(K,_t)&&us(_t,Sn===en?Rg.packageId?p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:Rg.packageId?p.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:p.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2,Ad,Lt?as(Lt.originalFileName,zn):rt,Rg.resolvedFileName,Rg.packageId&&Eb(Rg.packageId)),(Ls??(Ls=new Array(Be.length)))[Pf]=Tv,(Ql??(Ql=[])).push(Ng);continue}}if(fs){let Ad=qr.getName(Ng);if(Ts(Lt.ambientModuleNames,Ad)){G0(K,_t)&&us(_t,p.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,Ad,as(Lt.originalFileName,zn)),(Ls??(Ls=new Array(Be.length)))[Pf]=ITe;continue}}(ti??(ti=[])).push(Ng),(qi??(qi=[])).push(Pf)}if(!ti)return Ls;let pp=Sn(ti,rt,Ql);return Ls?(pp.forEach((Pf,Ng)=>Ls[qi[Ng]]=Pf),Ls):pp}function kr(){return!MA(ne.getProjectReferences(),ne.getResolvedProjectReferences(),(Be,rt,Lt)=>{let cr=(rt?rt.commandLine.projectReferences:me)[Lt],qr=Xt(cr);return Be?!qr||qr.sourceFile!==Be.sourceFile||!Yf(Be.commandLine.fileNames,qr.commandLine.fileNames):qr!==void 0},(Be,rt)=>{let Lt=rt?zf(rt.sourceFile.path).commandLine.projectReferences:me;return!Yf(Be,Lt,QB)})}function tr(){var Be;if(!ne)return 0;let rt=ne.getCompilerOptions();if(dF(rt,K))return 0;let Lt=ne.getRootFileNames();if(!Yf(Lt,$)||!kr())return 0;me&&(lt=me.map(Xt));let cr=[],qr=[];if(Ke=2,Nl(ne.getMissingFilePaths(),ti=>_t.fileExists(ti)))return 0;let Sn=ne.getSourceFiles(),zr;(ti=>{ti[ti.Exists=0]="Exists",ti[ti.Modified=1]="Modified"})(zr||(zr={}));let bn=new Map;for(let ti of Sn){let qi=Js(ti.fileName,ht,_t,K),Ls=_t.getSourceFileByPath?_t.getSourceFileByPath(ti.fileName,ti.resolvedPath,qi,void 0,Mt):_t.getSourceFile(ti.fileName,qi,void 0,Mt);if(!Ls)return 0;Ls.packageJsonLocations=(Be=qi.packageJsonLocations)!=null&&Be.length?qi.packageJsonLocations:void 0,Ls.packageJsonScope=qi.packageJsonScope,w.assert(!Ls.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let Ql;if(ti.redirectInfo){if(Ls!==ti.redirectInfo.unredirected)return 0;Ql=!1,Ls=ti}else if(ne.redirectTargetsMap.has(ti.path)){if(Ls!==ti)return 0;Ql=!1}else Ql=Ls!==ti;Ls.path=ti.path,Ls.originalFileName=ti.originalFileName,Ls.resolvedPath=ti.resolvedPath,Ls.fileName=ti.fileName;let fp=ne.sourceFileToPackageName.get(ti.path);if(fp!==void 0){let pp=bn.get(fp),Pf=Ql?1:0;if(pp!==void 0&&Pf===1||pp===1)return 0;bn.set(fp,Pf)}Ql?(ti.impliedNodeFormat!==Ls.impliedNodeFormat?Ke=1:Yf(ti.libReferenceDirectives,Ls.libReferenceDirectives,Dc)?ti.hasNoDefaultLib!==Ls.hasNoDefaultLib?Ke=1:Yf(ti.referencedFiles,Ls.referencedFiles,Dc)?(Hc(Ls),Yf(ti.imports,Ls.imports,$c)&&Yf(ti.moduleAugmentations,Ls.moduleAugmentations,$c)?(ti.flags&12582912)!==(Ls.flags&12582912)?Ke=1:Yf(ti.typeReferenceDirectives,Ls.typeReferenceDirectives,Dc)||(Ke=1):Ke=1):Ke=1:Ke=1,qr.push(Ls)):Zr(ti.path)&&(Ke=1,qr.push(Ls)),cr.push(Ls)}if(Ke!==2)return Ke;for(let ti of qr){let qi=ETe(ti),Ls=Gt(qi,ti);(Ne??(Ne=new Map)).set(ti.path,Ls);let Ql=_p(ti);XB(qi,Ls,Ad=>ne.getResolvedModule(ti,Ad.text,d5(ti,Ad,Ql)),pte)&&(Ke=1);let pp=ti.typeReferenceDirectives,Pf=dr(pp,ti);(Ce??(Ce=new Map)).set(ti.path,Pf),XB(pp,Pf,Ad=>ne.getResolvedTypeReferenceDirective(ti,noe(Ad),Sv(Ad,ti)),dte)&&(Ke=1)}if(Ke!==2)return Ke;if(_te(rt,K)||ne.resolvedLibReferences&&Nl(ne.resolvedLibReferences,(ti,qi)=>Jf(qi).actual!==ti.actual))return 1;if(_t.hasChangedAutomaticTypeDirectiveNames){if(_t.hasChangedAutomaticTypeDirectiveNames())return 1}else if(tt=J7(K,_t),!Yf(ne.getAutomaticTypeDirectiveNames(),tt))return 1;Nt=ne.getMissingFilePaths(),w.assert(cr.length===ne.getSourceFiles().length);for(let ti of cr)Ye.set(ti.path,ti);ne.getFilesByNameMap().forEach((ti,qi)=>{if(!ti){Ye.set(qi,ti);return}if(ti.path===qi){ne.isSourceFileFromExternalLibrary(ti)&&Or.set(ti.path,!0);return}Ye.set(qi,Ye.get(ti.path))});let fs=rt.configFile&&rt.configFile===K.configFile||!rt.configFile&&!K.configFile&&!n2(rt,K,Id);return _e.reuseStateFromOldProgram(ne.getProgramDiagnosticsContainer(),fs),At=fs,ye=cr,tt=ne.getAutomaticTypeDirectiveNames(),ct=ne.getAutomaticTypeDirectiveResolutions(),oa=ne.sourceFileToPackageName,xr=ne.redirectTargetsMap,xs=ne.usesUriStyleNodeCoreModules,ee=ne.resolvedModules,Ie=ne.resolvedTypeReferenceDirectiveNames,le=ne.resolvedLibReferences,Ve=ne.getCurrentPackagesMap(),2}function si(Be){return{getCanonicalFileName:re,getCommonSourceDirectory:Vt.getCommonSourceDirectory,getCompilerOptions:Vt.getCompilerOptions,getCurrentDirectory:()=>zn,getSourceFile:Vt.getSourceFile,getSourceFileByPath:Vt.getSourceFileByPath,getSourceFiles:Vt.getSourceFiles,isSourceFileFromExternalLibrary:uc,getResolvedProjectReferenceToRedirect:Il,getProjectReferenceRedirect:yc,isSourceOfProjectReferenceRedirect:Pd,getSymlinkCache:Z_,writeFile:Be||zs,isEmitBlocked:il,shouldTransformImportCall:Z0,getEmitModuleFormatOfFile:bv,getDefaultResolutionModeForFile:Y0,getModeForResolutionAtIndex:_d,readFile:rt=>_t.readFile(rt),fileExists:rt=>{let Lt=Ot(rt);return Zo(Lt)?!0:Nt.has(Lt)?!1:_t.fileExists(rt)},realpath:Vs(_t,_t.realpath),useCaseSensitiveFileNames:()=>_t.useCaseSensitiveFileNames(),getBuildInfo:()=>{var rt;return(rt=Vt.getBuildInfo)==null?void 0:rt.call(Vt)},getSourceFileFromReference:(rt,Lt)=>Vt.getSourceFileFromReference(rt,Lt),redirectTargetsMap:xr,getFileIncludeReasons:Vt.getFileIncludeReasons,createHash:Vs(_t,_t.createHash),getModuleResolutionCache:()=>Vt.getModuleResolutionCache(),trace:Vs(_t,_t.trace),getGlobalTypingsCacheLocation:Vt.getGlobalTypingsCacheLocation}}function zs(Be,rt,Lt,cr,qr,Sn){_t.writeFile(Be,rt,Lt,cr,qr,Sn)}function ta(Be){var rt,Lt;(rt=_n)==null||rt.push(_n.Phase.Emit,"emitBuildInfo",{},!0),dc("beforeEmit");let cr=QU(Gae,si(Be),void 0,jae,!1,!0);return dc("afterEmit"),Tp("Emit","beforeEmit","afterEmit"),(Lt=_n)==null||Lt.pop(),cr}function Os(){return lt}function qc(){return me}function uc(Be){return!!Or.get(Be.path)}function Bc(Be){if(!Be.isDeclarationFile)return!1;if(Be.hasNoDefaultLib)return!0;if(K.noLib)return!1;let rt=_t.useCaseSensitiveFileNames()?aS:_0;return K.lib?pt(K.lib,Lt=>{let cr=le.get(Lt);return!!cr&&rt(Be.fileName,cr.actual)}):rt(Be.fileName,hi())}function xi(){return ve||(ve=Kse(Vt))}function bs(Be,rt,Lt,cr,qr,Sn,zr){var bn,Di;(bn=_n)==null||bn.push(_n.Phase.Emit,"emit",{path:Be?.path},!0);let fs=wc(()=>Qo(Vt,Be,rt,Lt,cr,qr,Sn,zr));return(Di=_n)==null||Di.pop(),fs}function il(Be){return hn.has(Ot(Be))}function Qo(Be,rt,Lt,cr,qr,Sn,zr,bn){if(!zr){let qi=pV(Be,rt,Lt,cr);if(qi)return qi}let Di=xi(),fs=Di.getEmitResolver(K.outFile?void 0:rt,cr,HU(qr,zr));dc("beforeEmit");let ti=Di.runWithCancellationToken(cr,()=>QU(fs,si(Lt),rt,Wae(K,Sn,qr),qr,!1,zr,bn));return dc("afterEmit"),Tp("Emit","beforeEmit","afterEmit"),ti}function Oa(Be){return Zo(Ot(Be))}function Zo(Be){return Ye.get(Be)||void 0}function Cf(Be,rt,Lt){return Dw(Be?rt(Be,Lt):ga(Vt.getSourceFiles(),cr=>(Lt&&Lt.throwIfCancellationRequested(),rt(cr,Lt))))}function ms(Be,rt){return Cf(Be,sl,rt)}function Ys(Be,rt,Lt){return Cf(Be,(cr,qr)=>cu(cr,qr,Lt),rt)}function Ba(Be){return se?.get(Be.path)}function La(Be,rt){return ec(Be,rt,void 0)}function Ht(Be){var rt;if(oI(Be,K,Vt))return qe;let Lt=_e.getCombinedDiagnostics(Vt).getDiagnostics(Be.fileName);return(rt=Be.commentDirectives)!=null&&rt.length?Oe(Be,Be.commentDirectives,Lt).diagnostics:Lt}function fo(Be,rt){return Cf(Be,Lr,rt)}function sl(Be){return g_(Be)?(Be.additionalSyntacticDiagnostics||(Be.additionalSyntacticDiagnostics=Br(Be)),Ki(Be.additionalSyntacticDiagnostics,Be.parseDiagnostics)):Be.parseDiagnostics}function wc(Be){try{return Be()}catch(rt){throw rt instanceof TP&&(ve=void 0),rt}}function cu(Be,rt,Lt){return Ki(b5(ec(Be,rt,Lt),K),Ht(Be))}function ec(Be,rt,Lt){if(Lt)return Ic(Be,rt,Lt);let cr=se?.get(Be.path);return cr||(se??(se=new Map)).set(Be.path,cr=Ic(Be,rt)),cr}function Ic(Be,rt,Lt){return wc(()=>{if(oI(Be,K,Vt))return qe;let cr=xi();w.assert(!!Be.bindDiagnostics);let qr=Be.scriptKind===1||Be.scriptKind===2,Sn=UP(Be,K.checkJs),zr=qr&&xA(Be,K),bn=Be.bindDiagnostics,Di=cr.getDiagnostics(Be,rt,Lt);return Sn&&(bn=An(bn,fs=>PTe.has(fs.code)),Di=An(Di,fs=>PTe.has(fs.code))),N(Be,!Sn,!!Lt,bn,Di,zr?Be.jsDocDiagnostics:void 0)})}function N(Be,rt,Lt,...cr){var qr;let Sn=Qp(cr);if(!rt||!((qr=Be.commentDirectives)!=null&&qr.length))return Sn;let{diagnostics:zr,directives:bn}=Oe(Be,Be.commentDirectives,Sn);if(Lt)return zr;for(let Di of bn.getUnusedExpectations())zr.push(Ete(Be,Di.range,p.Unused_ts_expect_error_directive));return zr}function Oe(Be,rt,Lt){let cr=hte(Be,rt);return{diagnostics:Lt.filter(Sn=>qt(Sn,cr)===-1),directives:cr}}function ft(Be,rt){return wc(()=>xi().getSuggestionDiagnostics(Be,rt))}function qt(Be,rt){let{file:Lt,start:cr}=Be;if(!Lt)return-1;let qr=nh(Lt),Sn=ww(qr,cr).line-1;for(;Sn>=0;){if(rt.markUsed(Sn))return Sn;let zr=Lt.text.slice(qr[Sn],qr[Sn+1]).trim();if(zr!==""&&!/^\s*\/\/.*$/.test(zr))return-1;Sn--}return-1}function Br(Be){return wc(()=>{let rt=[];return Lt(Be,Be),q2(Be,Lt,cr),rt;function Lt(bn,Di){switch(Di.kind){case 169:case 172:case 174:if(Di.questionToken===bn)return rt.push(zr(bn,p.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 173:case 176:case 177:case 178:case 218:case 262:case 219:case 260:if(Di.type===bn)return rt.push(zr(bn,p.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(bn.kind){case 273:if(bn.isTypeOnly)return rt.push(zr(Di,p._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(bn.isTypeOnly)return rt.push(zr(bn,p._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(bn.isTypeOnly)return rt.push(zr(bn,p._0_declarations_can_only_be_used_in_TypeScript_files,a_(bn)?"import...type":"export...type")),"skip";break;case 271:return rt.push(zr(bn,p.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(bn.isExportEquals)return rt.push(zr(bn,p.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(bn.token===119)return rt.push(zr(bn,p.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:let ti=sa(120);return w.assertIsDefined(ti),rt.push(zr(bn,p._0_declarations_can_only_be_used_in_TypeScript_files,ti)),"skip";case 267:let qi=bn.flags&32?sa(145):sa(144);return w.assertIsDefined(qi),rt.push(zr(bn,p._0_declarations_can_only_be_used_in_TypeScript_files,qi)),"skip";case 265:return rt.push(zr(bn,p.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return bn.body?void 0:(rt.push(zr(bn,p.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:let Ls=w.checkDefined(sa(94));return rt.push(zr(bn,p._0_declarations_can_only_be_used_in_TypeScript_files,Ls)),"skip";case 235:return rt.push(zr(bn,p.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return rt.push(zr(bn.type,p.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return rt.push(zr(bn.type,p.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:w.fail()}}function cr(bn,Di){if(PG(Di)){let fs=On(Di.modifiers,Rl);fs&&rt.push(zr(fs,p.Decorators_are_not_valid_here))}else if(JS(Di)&&Di.modifiers){let fs=Sc(Di.modifiers,Rl);if(fs>=0){if(Bi(Di)&&!K.experimentalDecorators)rt.push(zr(Di.modifiers[fs],p.Decorators_are_not_valid_here));else if(gl(Di)){let ti=Sc(Di.modifiers,R2);if(ti>=0){let qi=Sc(Di.modifiers,n7);if(fs>ti&&qi>=0&&fs<qi)rt.push(zr(Di.modifiers[fs],p.Decorators_are_not_valid_here));else if(ti>=0&&fs<ti){let Ls=Sc(Di.modifiers,Rl,ti);Ls>=0&&rt.push(Xs(zr(Di.modifiers[Ls],p.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),zr(Di.modifiers[fs],p.Decorator_used_before_export_here)))}}}}}switch(Di.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(bn===Di.typeParameters)return rt.push(Sn(bn,p.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(bn===Di.modifiers)return qr(Di.modifiers,Di.kind===243),"skip";break;case 172:if(bn===Di.modifiers){for(let fs of bn)la(fs)&&fs.kind!==126&&fs.kind!==129&&rt.push(zr(fs,p.The_0_modifier_can_only_be_used_in_TypeScript_files,sa(fs.kind)));return"skip"}break;case 169:if(bn===Di.modifiers&&pt(bn,la))return rt.push(Sn(bn,p.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(bn===Di.typeArguments)return rt.push(Sn(bn,p.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function qr(bn,Di){for(let fs of bn)switch(fs.kind){case 87:if(Di)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:rt.push(zr(fs,p.The_0_modifier_can_only_be_used_in_TypeScript_files,sa(fs.kind)));break;case 126:case 95:case 90:case 129:}}function Sn(bn,Di,...fs){let ti=bn.pos;return kl(Be,ti,bn.end-ti,Di,...fs)}function zr(bn,Di,...fs){return Cp(Be,bn,Di,...fs)}})}function Hn(Be,rt){let Lt=xe?.get(Be.path);return Lt||(xe??(xe=new Map)).set(Be.path,Lt=pn(Be,rt)),Lt}function pn(Be,rt){return wc(()=>{let Lt=xi().getEmitResolver(Be,rt);return Lae(si(to),Lt,Be)||qe})}function Lr(Be,rt){return Be.isDeclarationFile?qe:Hn(Be,rt)}function Ci(){return Dw(Ki(_e.getCombinedDiagnostics(Vt).getGlobalDiagnostics(),Ai()))}function Ai(){if(!K.configFile)return qe;let Be=_e.getCombinedDiagnostics(Vt).getDiagnostics(K.configFile.fileName);return If(rt=>{Be=Ki(Be,_e.getCombinedDiagnostics(Vt).getDiagnostics(rt.sourceFile.fileName))}),Be}function io(){return $.length?Dw(xi().getGlobalDiagnostics().slice()):qe}function Ta(){return U||qe}function Go(Be,rt,Lt,cr){x_(na(Be),rt,Lt,void 0,cr)}function Dc(Be,rt){return Be.fileName===rt.fileName}function $c(Be,rt){return Be.kind===80?rt.kind===80&&Be.escapedText===rt.escapedText:rt.kind===11&&Be.text===rt.text}function Eo(Be,rt){let Lt=A.createStringLiteral(Be),cr=A.createImportDeclaration(void 0,void 0,Lt);return bk(cr,2),Xa(Lt,cr),Xa(cr,rt),Lt.flags&=-17,cr.flags&=-17,Lt}function Hc(Be){if(Be.imports)return;let rt=g_(Be),Lt=xl(Be),cr,qr,Sn;if(rt||!Be.isDeclarationFile&&(id(K)||xl(Be))){K.importHelpers&&(cr=[Eo(x0,Be)]);let bn=wO(N4(K,Be),K);bn&&(cr||(cr=[])).push(Eo(bn,Be))}for(let bn of Be.statements)zr(bn,!1);(Be.flags&4194304||rt)&&$O(Be,!0,!0,(bn,Di)=>{zb(bn,!1),cr=jr(cr,Di)}),Be.imports=cr||qe,Be.moduleAugmentations=qr||qe,Be.ambientModuleNames=Sn||qe;return;function zr(bn,Di){if(R6(bn)){let fs=u2(bn);fs&&ya(fs)&&fs.text&&(!Di||!Jl(fs.text))&&(zb(bn,!1),cr=jr(cr,fs),!xs&&zt===0&&!Be.isDeclarationFile&&(Yi(fs.text,"node:")&&!qO.has(fs.text)?xs=!0:xs===void 0&&Ine.has(fs.text)&&(xs=!1)))}else if(nl(bn)&&e_(bn)&&(Di||ei(bn,128)||Be.isDeclarationFile)){bn.name.parent=bn;let fs=Ip(bn.name);if(Lt||Di&&!Jl(fs))(qr||(qr=[])).push(bn.name);else if(!Di){Be.isDeclarationFile&&(Sn||(Sn=[])).push(fs);let ti=bn.body;if(ti)for(let qi of ti.statements)zr(qi,!0)}}}}function wf(Be){var rt;let Lt=UJ(Be),cr=Lt&&((rt=le?.get(Lt))==null?void 0:rt.actual);return cr!==void 0?Oa(cr):void 0}function bu(Be,rt){return up(rV(rt.fileName,Be.fileName),Oa)}function up(Be,rt,Lt,cr){if(xw(Be)){let qr=_t.getCanonicalFileName(Be);if(!K.allowNonTsExtensions&&!or(Qp(Rn),zr=>nc(qr,zr))){Lt&&(vh(qr)?Lt(p.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,Be):Lt(p.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,Be,"'"+Qp(ns).join("', '")+"'"));return}let Sn=rt(Be);if(Lt)if(Sn)i1(cr)&&qr===_t.getCanonicalFileName(Zo(cr.file).fileName)&&Lt(p.A_file_cannot_have_a_reference_to_itself);else{let zr=yc(Be);zr?Lt(p.Output_file_0_has_not_been_built_from_source_file_1,zr,Be):Lt(p.File_0_not_found,Be)}return Sn}else{let qr=K.allowNonTsExtensions&&rt(Be);if(qr)return qr;if(Lt&&K.allowNonTsExtensions){Lt(p.File_0_not_found,Be);return}let Sn=or(ns[0],zr=>rt(Be+zr));return Lt&&!Sn&&Lt(p.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,Be,"'"+Qp(ns).join("', '")+"'"),Sn}}function x_(Be,rt,Lt,cr,qr){up(Be,Sn=>ts(Sn,rt,Lt,qr,cr),(Sn,...zr)=>L(void 0,qr,Sn,zr),qr)}function Ee(Be,rt){return x_(Be,!1,!1,void 0,rt)}function Wt(Be,rt,Lt){!i1(Lt)&&pt(_e.getFileReasons().get(rt.path),i1)?L(rt,Lt,p.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[rt.fileName,Be]):L(rt,Lt,p.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[Be,rt.fileName])}function sn(Be,rt,Lt,cr,qr,Sn,zr){var bn;let Di=Yb.createRedirectedSourceFile({redirectTarget:Be,unredirected:rt});return Di.fileName=Lt,Di.path=cr,Di.resolvedPath=qr,Di.originalFileName=Sn,Di.packageJsonLocations=(bn=zr.packageJsonLocations)!=null&&bn.length?zr.packageJsonLocations:void 0,Di.packageJsonScope=zr.packageJsonScope,Or.set(cr,zt>0),Di}function ts(Be,rt,Lt,cr,qr){var Sn,zr;(Sn=_n)==null||Sn.push(_n.Phase.Program,"findSourceFile",{fileName:Be,isDefaultLib:rt||void 0,fileIncludeKind:KW[cr.kind]});let bn=Ma(Be,rt,Lt,cr,qr);return(zr=_n)==null||zr.pop(),bn}function Js(Be,rt,Lt,cr){let qr=y5(as(Be,zn),rt?.getPackageJsonInfoCache(),Lt,cr),Sn=wa(cr),zr=I4(cr);return typeof qr=="object"?{...qr,languageVersion:Sn,setExternalModuleIndicator:zr,jsDocParsingMode:Lt.jsDocParsingMode}:{languageVersion:Sn,impliedNodeFormat:qr,setExternalModuleIndicator:zr,jsDocParsingMode:Lt.jsDocParsingMode}}function Ma(Be,rt,Lt,cr,qr){var Sn;let zr=Ot(Be);if(st){let qi=C_(zr);if(!qi&&_t.realpath&&K.preserveSymlinks&&Ll(Be)&&Be.includes(Ch)){let Ls=Ot(_t.realpath(Be));Ls!==zr&&(qi=C_(Ls))}if(qi){let Ls=ys(qi)?ts(qi,rt,Lt,cr,qr):void 0;return Ls&&Qc(Ls,zr,Be,void 0),Ls}}let bn=Be;if(Ye.has(zr)){let qi=Ye.get(zr),Ls=Wo(qi||void 0,cr,!0);if(qi&&Ls&&K.forceConsistentCasingInFileNames!==!1){let Ql=qi.fileName;Ot(Ql)!==Ot(Be)&&(Be=yc(Be)||Be);let pp=dB(Ql,zn),Pf=dB(Be,zn);pp!==Pf&&Wt(Be,qi,cr)}return qi&&Or.get(qi.path)&&zt===0?(Or.set(qi.path,!1),K.noResolve||(Qm(qi,rt),Ih(qi)),K.noLib||Dh(qi),ur.set(qi.path,!1),at(qi)):qi&&ur.get(qi.path)&&zt<bt&&(ur.set(qi.path,!1),at(qi)),qi||void 0}let Di;if(!st){let qi=Yc(Be);if(qi){if(qi.commandLine.options.outFile)return;let Ls=wl(qi,Be);Be=Ls,Di=Ot(Ls)}}let fs=Js(Be,ht,_t,K),ti=_t.getSourceFile(Be,fs,qi=>L(void 0,cr,p.Cannot_read_file_0_Colon_1,[Be,qi]),Mt);if(qr){let qi=Eb(qr),Ls=Rs.get(qi);if(Ls){let Ql=sn(Ls,ti,Be,zr,Ot(Be),bn,fs);return xr.add(Ls.path,Be),Qc(Ql,zr,Be,Di),Wo(Ql,cr,!1),oa.set(zr,yF(qr)),de.push(Ql),Ql}else ti&&(Rs.set(qi,ti),oa.set(zr,yF(qr)))}if(Qc(ti,zr,Be,Di),ti){if(Or.set(zr,zt>0),ti.fileName=Be,ti.path=zr,ti.resolvedPath=Ot(Be),ti.originalFileName=bn,ti.packageJsonLocations=(Sn=fs.packageJsonLocations)!=null&&Sn.length?fs.packageJsonLocations:void 0,ti.packageJsonScope=fs.packageJsonScope,Wo(ti,cr,!1),_t.useCaseSensitiveFileNames()){let qi=l0(zr),Ls=ae.get(qi);Ls?Wt(Be,Ls,cr):ae.set(qi,ti)}Hr=Hr||ti.hasNoDefaultLib&&!Lt,K.noResolve||(Qm(ti,rt),Ih(ti)),K.noLib||Dh(ti),at(ti),rt?oe.push(ti):de.push(ti),(De??(De=new Set)).add(ti.path)}return ti}function Wo(Be,rt,Lt){return Be&&(!Lt||!i1(rt)||!De?.has(rt.file))?(_e.getFileReasons().add(Be.path,rt),!0):!1}function Qc(Be,rt,Lt,cr){cr?(hc(Lt,cr,Be),hc(Lt,rt,Be||!1)):hc(Lt,rt,Be)}function hc(Be,rt,Lt){Ye.set(rt,Lt),Lt!==void 0?Nt.delete(rt):Nt.set(rt,Be)}function yc(Be){let rt=Yc(Be);return rt&&wl(rt,Be)}function Yc(Be){if(!(!lt||!lt.length||Ll(Be)||nc(Be,".json")))return Il(Be)}function wl(Be,rt){let Lt=Be.commandLine.options.outFile;return Lt?fy(Lt,".d.ts"):LI(rt,Be.commandLine,!_t.useCaseSensitiveFileNames())}function Il(Be){Ae===void 0&&(Ae=new Map,If(Lt=>{Ot(K.configFilePath)!==Lt.sourceFile.path&&Lt.commandLine.fileNames.forEach(cr=>Ae.set(Ot(cr),Lt.sourceFile.path))}));let rt=Ae.get(Ot(Be));return rt&&zf(rt)}function If(Be){return VJ(lt,Be)}function C_(Be){if(Ll(Be))return Xe===void 0&&(Xe=new Map,If(rt=>{let Lt=rt.commandLine.options.outFile;if(Lt){let cr=fy(Lt,".d.ts");Xe.set(Ot(cr),!0)}else{let cr=Yu(()=>Wk(rt.commandLine,!_t.useCaseSensitiveFileNames()));or(rt.commandLine.fileNames,qr=>{if(!Ll(qr)&&!nc(qr,".json")){let Sn=LI(qr,rt.commandLine,!_t.useCaseSensitiveFileNames(),cr);Xe.set(Ot(Sn),qr)}})}})),Xe.get(Be)}function Pd(Be){return st&&!!Il(Be)}function zf(Be){if(Y)return Y.get(Be)||void 0}function Qm(Be,rt){or(Be.referencedFiles,(Lt,cr)=>{x_(rV(Lt.fileName,Be.fileName),rt,!1,void 0,{kind:4,file:Be.path,index:cr})})}function Ih(Be){let rt=Be.typeReferenceDirectives;if(!rt.length)return;let Lt=Ce?.get(Be.path)||dr(rt,Be),cr=AI();(Ie??(Ie=new Map)).set(Be.path,cr);for(let qr=0;qr<rt.length;qr++){let Sn=Be.typeReferenceDirectives[qr],zr=Lt[qr],bn=Sn.fileName,Di=Sv(Sn,Be);cr.set(bn,Di,zr),B_(bn,Di,zr,{kind:5,file:Be.path,index:qr})}}function _p(Be){var rt;return((rt=$r(Be))==null?void 0:rt.commandLine.options)||K}function B_(Be,rt,Lt,cr){var qr,Sn;(qr=_n)==null||qr.push(_n.Phase.Program,"processTypeReferenceDirective",{directive:Be,hasResolved:!!Lt.resolvedTypeReferenceDirective,refKind:cr.kind,refPath:i1(cr)?cr.file:void 0}),o_(Be,rt,Lt,cr),(Sn=_n)==null||Sn.pop()}function o_(Be,rt,Lt,cr){ut(Lt);let{resolvedTypeReferenceDirective:qr}=Lt;qr?(qr.isExternalLibraryImport&&zt++,x_(qr.resolvedFileName,!1,!1,qr.packageId,cr),qr.isExternalLibraryImport&&zt--):L(void 0,cr,p.Cannot_find_type_definition_file_for_0,[Be])}function Km(Be){let rt=le?.get(Be);if(rt)return rt.actual;let Lt=Jf(Be);return(le??(le=new Map)).set(Be,Lt),Lt.actual}function Jf(Be){var rt,Lt,cr,qr,Sn;let zr=Je?.get(Be);if(zr)return zr;if(K.libReplacement===!1){let qi={resolution:{resolvedModule:void 0},actual:Bn(_s,Be)};return(Je??(Je=new Map)).set(Be,qi),qi}if(Ke!==0&&ne&&!Xn(Be)){let qi=(rt=ne.resolvedLibReferences)==null?void 0:rt.get(Be);if(qi){if(qi.resolution&&G0(K,_t)){let Ls=uV(Be),Ql=h5(K,zn,Be);us(_t,qi.resolution.resolvedModule?qi.resolution.resolvedModule.packageId?p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,Ls,as(Ql,zn),(Lt=qi.resolution.resolvedModule)==null?void 0:Lt.resolvedFileName,((cr=qi.resolution.resolvedModule)==null?void 0:cr.packageId)&&Eb(qi.resolution.resolvedModule.packageId))}return(Je??(Je=new Map)).set(Be,qi),qi}}let bn=uV(Be),Di=h5(K,zn,Be);(qr=_n)==null||qr.push(_n.Phase.Program,"resolveLibrary",{resolveFrom:Di}),dc("beforeResolveLibrary");let fs=Pi(bn,Di,K,Be);dc("afterResolveLibrary"),Tp("ResolveLibrary","beforeResolveLibrary","afterResolveLibrary"),(Sn=_n)==null||Sn.pop();let ti={resolution:fs,actual:fs.resolvedModule?fs.resolvedModule.resolvedFileName:Bn(_s,Be)};return(Je??(Je=new Map)).set(Be,ti),ti}function Dh(Be){or(Be.libReferenceDirectives,(rt,Lt)=>{let cr=UJ(rt);cr?Go(Km(cr),!0,!0,{kind:7,file:Be.path,index:Lt}):_e.addFileProcessingDiagnostic({kind:0,reason:{kind:7,file:Be.path,index:Lt}})})}function re(Be){return _t.getCanonicalFileName(Be)}function at(Be){if(Hc(Be),Be.imports.length||Be.moduleAugmentations.length){let rt=ETe(Be),Lt=Ne?.get(Be.path)||Gt(rt,Be);w.assert(Lt.length===rt.length);let cr=_p(Be),qr=AI();(ee??(ee=new Map)).set(Be.path,qr);for(let Sn=0;Sn<rt.length;Sn++){let zr=Lt[Sn].resolvedModule,bn=rt[Sn].text,Di=d5(Be,rt[Sn],cr);if(qr.set(bn,Di,Lt[Sn]),Qt(Be,bn,Lt[Sn],Di),!zr)continue;let fs=zr.isExternalLibraryImport,ti=!TA(zr.extension)&&!Yc(zr.resolvedFileName),qi=fs&&ti&&(!zr.originalPath||V0(zr.resolvedFileName)),Ls=zr.resolvedFileName;fs&&zt++;let Ql=qi&&zt>bt,fp=Ls&&!dV(cr,zr,Be)&&!cr.noResolve&&Sn<Be.imports.length&&!Ql&&!(ti&&!F0(cr))&&(un(Be.imports[Sn])||!(Be.imports[Sn].flags&16777216));Ql?ur.set(Be.path,!0):fp&&ts(Ls,!1,!1,{kind:3,file:Be.path,index:Sn},zr.packageId),fs&&zt--}}}function Kt(Be,rt){let Lt=!0,cr=_t.getCanonicalFileName(as(rt,zn));for(let qr of Be)qr.isDeclarationFile||_t.getCanonicalFileName(as(qr.fileName,zn)).indexOf(cr)!==0&&(_e.addLazyConfigDiagnostic(qr,p.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,qr.fileName,rt),Lt=!1);return Lt}function Xt(Be){Y||(Y=new Map);let rt=tC(Be),Lt=Ot(rt),cr=Y.get(Lt);if(cr!==void 0)return cr||void 0;let qr,Sn;if(_t.getParsedCommandLine){if(qr=_t.getParsedCommandLine(rt),!qr){Qc(void 0,Lt,rt,void 0),Y.set(Lt,!1);return}Sn=w.checkDefined(qr.options.configFile),w.assert(!Sn.path||Sn.path===Lt),Qc(Sn,Lt,rt,void 0)}else{let bn=as(Yn(rt),zn);if(Sn=_t.getSourceFile(rt,100),Qc(Sn,Lt,rt,void 0),Sn===void 0){Y.set(Lt,!1);return}qr=yM(Sn,$t,bn,void 0,rt)}Sn.fileName=rt,Sn.path=Lt,Sn.resolvedPath=Lt,Sn.originalFileName=rt;let zr={commandLine:qr,sourceFile:Sn};return Y.set(Lt,zr),qr.projectReferences&&(zr.references=qr.projectReferences.map(Xt)),zr}function Ar(){K.strictPropertyInitialization&&!Pu(K,"strictNullChecks")&&bi(p.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),K.exactOptionalPropertyTypes&&!Pu(K,"strictNullChecks")&&bi(p.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),(K.isolatedModules||K.verbatimModuleSyntax)&&K.outFile&&bi(p.Option_0_cannot_be_specified_with_option_1,"outFile",K.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"),K.isolatedDeclarations&&(F0(K)&&bi(p.Option_0_cannot_be_specified_with_option_1,"allowJs","isolatedDeclarations"),K_(K)||bi(p.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"isolatedDeclarations","declaration","composite")),K.inlineSourceMap&&(K.sourceMap&&bi(p.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),K.mapRoot&&bi(p.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),K.composite&&(K.declaration===!1&&bi(p.Composite_projects_may_not_disable_declaration_emit,"declaration"),K.incremental===!1&&bi(p.Composite_projects_may_not_disable_incremental_compilation,"declaration"));let Be=K.outFile;if(!K.tsBuildInfoFile&&K.incremental&&!Be&&!K.configFilePath&&_e.addConfigDiagnostic(cc(p.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),_i(),ze(),K.composite){let zr=new Set($.map(Ot));for(let bn of ye)kS(bn,Vt)&&!zr.has(bn.path)&&_e.addLazyConfigDiagnostic(bn,p.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,bn.fileName,K.configFilePath||"")}if(K.paths){for(let zr in K.paths)if(bo(K.paths,zr))if(vJ(zr)||Er(!0,zr,p.Pattern_0_can_have_at_most_one_Asterisk_character,zr),ks(K.paths[zr])){let bn=K.paths[zr].length;bn===0&&Er(!1,zr,p.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,zr);for(let Di=0;Di<bn;Di++){let fs=K.paths[zr][Di],ti=typeof fs;ti==="string"?(vJ(fs)||Rt(zr,Di,p.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,fs,zr),!K.baseUrl&&!Of(fs)&&!xP(fs)&&Rt(zr,Di,p.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):Rt(zr,Di,p.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,fs,zr,ti)}}else Er(!1,zr,p.Substitutions_for_pattern_0_should_be_an_array,zr)}!K.sourceMap&&!K.inlineSourceMap&&(K.inlineSources&&bi(p.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),K.sourceRoot&&bi(p.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),K.mapRoot&&!(K.sourceMap||K.declarationMap)&&bi(p.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),K.declarationDir&&(K_(K)||bi(p.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),Be&&bi(p.Option_0_cannot_be_specified_with_option_1,"declarationDir","outFile")),K.declarationMap&&!K_(K)&&bi(p.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),K.lib&&K.noLib&&bi(p.Option_0_cannot_be_specified_with_option_1,"lib","noLib");let rt=wa(K),Lt=On(ye,zr=>xl(zr)&&!zr.isDeclarationFile);if(K.isolatedModules||K.verbatimModuleSyntax)K.module===0&&rt<2&&K.isolatedModules&&bi(p.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),K.preserveConstEnums===!1&&bi(p.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,K.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(Lt&&rt<2&&K.module===0){let zr=ak(Lt,typeof Lt.externalModuleIndicator=="boolean"?Lt:Lt.externalModuleIndicator);_e.addConfigDiagnostic(kl(Lt,zr.start,zr.length,p.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(Be&&!K.emitDeclarationOnly){if(K.module&&!(K.module===2||K.module===4))bi(p.Only_amd_and_system_modules_are_supported_alongside_0,"outFile","module");else if(K.module===void 0&&Lt){let zr=ak(Lt,typeof Lt.externalModuleIndicator=="boolean"?Lt:Lt.externalModuleIndicator);_e.addConfigDiagnostic(kl(Lt,zr.start,zr.length,p.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,"outFile"))}}if(DS(K)&&(Bu(K)===1?bi(p.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):TO(K)||bi(p.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module")),K.outDir||K.rootDir||K.sourceRoot||K.mapRoot||K_(K)&&K.declarationDir){let zr=vr();K.outDir&&zr===""&&ye.some(bn=>Bd(bn.fileName)>1)&&bi(p.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}K.checkJs&&!F0(K)&&bi(p.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"),K.emitDeclarationOnly&&(K_(K)||bi(p.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite")),K.emitDecoratorMetadata&&!K.experimentalDecorators&&bi(p.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),K.jsxFactory?(K.reactNamespace&&bi(p.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(K.jsx===4||K.jsx===5)&&bi(p.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",pM.get(""+K.jsx)),H2(K.jsxFactory,rt)||Zi("jsxFactory",p.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,K.jsxFactory)):K.reactNamespace&&!$_(K.reactNamespace,rt)&&Zi("reactNamespace",p.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,K.reactNamespace),K.jsxFragmentFactory&&(K.jsxFactory||bi(p.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(K.jsx===4||K.jsx===5)&&bi(p.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",pM.get(""+K.jsx)),H2(K.jsxFragmentFactory,rt)||Zi("jsxFragmentFactory",p.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,K.jsxFragmentFactory)),K.reactNamespace&&(K.jsx===4||K.jsx===5)&&bi(p.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",pM.get(""+K.jsx)),K.jsxImportSource&&K.jsx===2&&bi(p.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",pM.get(""+K.jsx));let cr=n_(K);K.verbatimModuleSyntax&&(cr===2||cr===3||cr===4)&&bi(p.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),K.allowImportingTsExtensions&&!(K.noEmit||K.emitDeclarationOnly||K.rewriteRelativeImportExtensions)&&Zi("allowImportingTsExtensions",p.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);let qr=Bu(K);if(K.resolvePackageJsonExports&&!sI(qr)&&bi(p.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),K.resolvePackageJsonImports&&!sI(qr)&&bi(p.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),K.customConditions&&!sI(qr)&&bi(p.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),qr===100&&!E4(cr)&&cr!==200&&Zi("moduleResolution",p.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),kw[cr]&&100<=cr&&cr<=199&&!(3<=qr&&qr<=99)){let zr=kw[cr],bn=Tw[zr]?zr:"Node16";Zi("moduleResolution",p.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,bn,zr)}else if(Tw[qr]&&3<=qr&&qr<=99&&!(100<=cr&&cr<=199)){let zr=Tw[qr];Zi("module",p.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,zr,zr)}if(!K.noEmit&&!K.suppressOutputPathCheck){let zr=si(),bn=new Set;UU(zr,Di=>{K.emitDeclarationOnly||Sn(Di.jsFilePath,bn),Sn(Di.declarationFilePath,bn)})}function Sn(zr,bn){if(zr){let Di=Ot(zr);if(Ye.has(Di)){let ti;K.configFilePath||(ti=Ps(void 0,p.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)),ti=Ps(ti,p.Cannot_write_file_0_because_it_would_overwrite_input_file,zr),tm(zr,vO(ti))}let fs=_t.useCaseSensitiveFileNames()?Di:l0(Di);bn.has(fs)?tm(zr,cc(p.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,zr)):bn.add(fs)}}}function Yr(){let Be=K.ignoreDeprecations;if(Be){if(Be==="5.0")return new Wd(Be);ie()}return Wd.zero}function Gn(Be,rt,Lt,cr){let qr=new Wd(Be),Sn=new Wd(rt),zr=new Wd(te||Xi),bn=Yr(),Di=Sn.compareTo(zr)!==1,fs=!Di&&bn.compareTo(qr)===-1;(Di||fs)&&cr((ti,qi,Ls)=>{Di?qi===void 0?Lt(ti,qi,Ls,p.Option_0_has_been_removed_Please_remove_it_from_your_configuration,ti):Lt(ti,qi,Ls,p.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,ti,qi):qi===void 0?Lt(ti,qi,Ls,p.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,ti,rt,Be):Lt(ti,qi,Ls,p.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,ti,qi,rt,Be)})}function _i(){function Be(rt,Lt,cr,qr,...Sn){if(cr){let zr=Ps(void 0,p.Use_0_instead,cr),bn=Ps(zr,qr,...Sn);Uo(!Lt,rt,void 0,bn)}else Uo(!Lt,rt,void 0,qr,...Sn)}Gn("5.0","5.5",Be,rt=>{K.target===0&&rt("target","ES3"),K.noImplicitUseStrict&&rt("noImplicitUseStrict"),K.keyofStringsOnly&&rt("keyofStringsOnly"),K.suppressExcessPropertyErrors&&rt("suppressExcessPropertyErrors"),K.suppressImplicitAnyIndexErrors&&rt("suppressImplicitAnyIndexErrors"),K.noStrictGenericChecks&&rt("noStrictGenericChecks"),K.charset&&rt("charset"),K.out&&rt("out",void 0,"outFile"),K.importsNotUsedAsValues&&rt("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),K.preserveValueImports&&rt("preserveValueImports",void 0,"verbatimModuleSyntax")})}function Ji(Be,rt,Lt){function cr(qr,Sn,zr,bn,...Di){gs(rt,Lt,bn,...Di)}Gn("5.0","5.5",cr,qr=>{Be.prepend&&qr("prepend")})}function L(Be,rt,Lt,cr){_e.addFileProcessingDiagnostic({kind:1,file:Be&&Be.path,fileProcessingReason:rt,diagnostic:Lt,args:cr})}function ze(){let Be=K.suppressOutputPathCheck?void 0:n1(K);MA(me,lt,(rt,Lt,cr)=>{let qr=(Lt?Lt.commandLine.projectReferences:me)[cr],Sn=Lt&&Lt.sourceFile;if(Ji(qr,Sn,cr),!rt){gs(Sn,cr,p.File_0_not_found,qr.path);return}let zr=rt.commandLine.options;(!zr.composite||zr.noEmit)&&(Lt?Lt.commandLine.fileNames:$).length&&(zr.composite||gs(Sn,cr,p.Referenced_project_0_must_have_setting_composite_Colon_true,qr.path),zr.noEmit&&gs(Sn,cr,p.Referenced_project_0_may_not_disable_emit,qr.path)),!Lt&&Be&&Be===n1(zr)&&(gs(Sn,cr,p.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,Be,qr.path),hn.set(Ot(Be),!0))})}function Rt(Be,rt,Lt,...cr){let qr=!0;cs(Sn=>{Sa(Sn.initializer)&&Jw(Sn.initializer,Be,zr=>{let bn=zr.initializer;gu(bn)&&bn.elements.length>rt&&(_e.addConfigDiagnostic(Cp(K.configFile,bn.elements[rt],Lt,...cr)),qr=!1)})}),qr&&_a(Lt,...cr)}function Er(Be,rt,Lt,...cr){let qr=!0;cs(Sn=>{Sa(Sn.initializer)&&Lp(Sn.initializer,Be,rt,void 0,Lt,...cr)&&(qr=!1)}),qr&&_a(Lt,...cr)}function cs(Be){return $J(vl(),"paths",Be)}function bi(Be,rt,Lt,cr){Uo(!0,rt,Lt,Be,rt,Lt,cr)}function Zi(Be,rt,...Lt){Uo(!1,Be,void 0,rt,...Lt)}function gs(Be,rt,Lt,...cr){let qr=z6(Be||K.configFile,"references",Sn=>gu(Sn.initializer)?Sn.initializer:void 0);qr&&qr.elements.length>rt?_e.addConfigDiagnostic(Cp(Be||K.configFile,qr.elements[rt],Lt,...cr)):_e.addConfigDiagnostic(cc(Lt,...cr))}function Uo(Be,rt,Lt,cr,...qr){let Sn=vl();(!Sn||!Lp(Sn,Be,rt,Lt,cr,...qr))&&_a(cr,...qr)}function _a(Be,...rt){let Lt=Df();Lt?"messageText"in Be?_e.addConfigDiagnostic(fh(K.configFile,Lt.name,Be)):_e.addConfigDiagnostic(Cp(K.configFile,Lt.name,Be,...rt)):"messageText"in Be?_e.addConfigDiagnostic(vO(Be)):_e.addConfigDiagnostic(cc(Be,...rt))}function vl(){if(ui===void 0){let Be=Df();ui=Be&&Vn(Be.initializer,Sa)||!1}return ui||void 0}function Df(){return Ue===void 0&&(Ue=Jw(QP(K.configFile),"compilerOptions",Do)||!1),Ue||void 0}function Lp(Be,rt,Lt,cr,qr,...Sn){let zr=!1;return Jw(Be,Lt,bn=>{"messageText"in qr?_e.addConfigDiagnostic(fh(K.configFile,rt?bn.name:bn.initializer,qr)):_e.addConfigDiagnostic(Cp(K.configFile,rt?bn.name:bn.initializer,qr,...Sn)),zr=!0},cr),zr}function tm(Be,rt){hn.set(Ot(Be),!0),_e.addConfigDiagnostic(rt)}function ky(Be){if(K.noEmit)return!1;let rt=Ot(Be);if(Zo(rt))return!1;let Lt=K.outFile;if(Lt)return Ph(rt,Lt)||Ph(rt,i_(Lt)+".d.ts");if(K.declarationDir&&kp(K.declarationDir,rt,zn,!_t.useCaseSensitiveFileNames()))return!0;if(K.outDir)return kp(K.outDir,rt,zn,!_t.useCaseSensitiveFileNames());if(Gc(rt,aI)||Ll(rt)){let cr=i_(rt);return!!Zo(cr+".ts")||!!Zo(cr+".tsx")}return!1}function Ph(Be,rt){return ty(Be,rt,zn,!_t.useCaseSensitiveFileNames())===0}function Z_(){return _t.getSymlinkCache?_t.getSymlinkCache():(H||(H=bJ(zn,re)),ye&&!H.hasProcessedResolutions()&&H.setSymlinksFromResolutions(j,Re,ct),H)}function rm(Be,rt){return d5(Be,rt,_p(Be))}function Xm(Be,rt){return wTe(Be,rt,_p(Be))}function _d(Be,rt){return rm(Be,GM(Be,rt))}function Y0(Be){return v5(Be,_p(Be))}function Gf(Be){return Bk(Be,_p(Be))}function bv(Be){return bE(Be,_p(Be))}function Z0(Be){return ATe(Be,_p(Be))}function Sv(Be,rt){return Be.resolutionMode||Y0(rt)}}function ATe(e,t){let n=n_(t);return 100<=n&&n<=199||n===200?!1:bE(e,t)<5}function bE(e,t){return Bk(e,t)??n_(t)}function Bk(e,t){var n,i;let s=n_(t);if(100<=s&&s<=199)return e.impliedNodeFormat;if(e.impliedNodeFormat===1&&(((n=e.packageJsonScope)==null?void 0:n.contents.packageJsonContent.type)==="commonjs"||Gc(e.fileName,[".cjs",".cts"])))return 1;if(e.impliedNodeFormat===99&&(((i=e.packageJsonScope)==null?void 0:i.contents.packageJsonContent.type)==="module"||Gc(e.fileName,[".mjs",".mts"])))return 99}function v5(e,t){return hJ(t)?Bk(e,t):void 0}function sUe(e){let t,n=e.compilerHost.fileExists,i=e.compilerHost.directoryExists,s=e.compilerHost.getDirectories,o=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:to,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(Yn(e.toPath(I)));else{let D=x.commandLine.options.declarationDir||x.commandLine.options.outDir;D&&t.add(e.toPath(D))}})),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:_,fileExists:u,directoryExists:c};function _(){e.compilerHost.fileExists=n,e.compilerHost.directoryExists=i,e.compilerHost.getDirectories=s}function u(T){return n.call(e.compilerHost,T)?!0:!e.getResolvedProjectReferences()||!Ll(T)?!1:S(T,!0)}function g(T){let x=e.getSourceOfProjectReferenceRedirect(e.toPath(T));return x!==void 0?ys(x)?n.call(e.compilerHost,x):!0:void 0}function m(T){let x=e.toPath(T),I=`${x}${Fo}`;return uh(t,D=>x===D||Yi(D,I)||Yi(x,`${D}/`))}function h(T){var x;if(!e.getResolvedProjectReferences()||DA(T)||!o||!T.includes(Ch))return;let I=e.getSymlinkCache(),D=El(e.toPath(T));if((x=I.getSymlinkedDirectories())!=null&&x.has(D))return;let E=na(o.call(e.compilerHost,T)),O;if(E===T||(O=El(e.toPath(E)))===D){I.setSymlinkedDirectory(D,!1);return}I.setSymlinkedDirectory(T,{real:El(E),realPath:O})}function S(T,x){var I;let D=x?G=>g(G):G=>m(G),E=D(T);if(E!==void 0)return E;let O=e.getSymlinkCache(),F=O.getSymlinkedDirectories();if(!F)return!1;let B=e.toPath(T);return B.includes(Ch)?x&&((I=O.getSymlinkedFiles())!=null&&I.has(B))?!0:vm(F.entries(),([G,$])=>{if(!$||!Yi(B,G))return;let K=D(B.replace(G,$.realPath));if(x&&K){let U=as(T,e.compilerHost.getCurrentDirectory());O.setSymlinkedFile(B,`${$.real}${U.replace(new RegExp(G,"i"),"")}`)}return K})||!1:!1}}var fV={diagnostics:qe,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};function pV(e,t,n,i){let s=e.getCompilerOptions();if(s.noEmit)return t?fV: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&&K_(e.getCompilerOptions())&&(o=e.getDeclarationDiagnostics(void 0,i)),!o.length)return;let c;if(!t){let _=e.emitBuildInfo(n,i);_.diagnostics&&(o=[...o,..._.diagnostics]),c=_.emittedFiles}return{diagnostics:o,sourceMaps:void 0,emittedFiles:c,emitSkipped:!0}}function b5(e,t){return An(e,n=>!n.skippedOn||!t[n.skippedOn])}function S5(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:Vs(t,t.directoryExists),getDirectories:Vs(t,t.getDirectories),realpath:Vs(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||sS,trace:e.trace?n=>e.trace(n):void 0}}function tC(e){return GV(e.path)}function dV(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:p.Module_0_was_resolved_to_1_but_jsx_is_not_set}function s(){return F0(e)||!Pu(e,"noImplicitAny")?void 0:p.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function o(){return DS(e)?void 0:p.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function c(){return n||e.allowArbitraryExtensions?void 0:p.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}}function ETe({imports:e,moduleAugmentations:t}){let n=e.map(i=>i);for(let i of t)i.kind===11&&n.push(i);return n}function GM({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 ioe(e){let t,n=Kp(),i,s,o,c,_,u;return{addConfigDiagnostic(T){w.assert(t===void 0,"Cannot modify program diagnostic state after requesting combined diagnostics"),(o??(o=cA())).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=cA(),o?.getDiagnostics().forEach(x=>t.add(x)),i?.forEach(x=>{switch(x.kind){case 1:return t.add(m(T,x.file&&T.getSourceFileByPath(x.file),x.fileProcessingReason,x.diagnostic,x.args||qe));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:D})=>t.add(m(T,x,void 0,I,D))),_=void 0,u=void 0,t)}};function g(T,{reason:x}){let{file:I,pos:D,end:E}=vE(T,x),O=I.libReferenceDirectives[x.index],F=GJ(O),B=Sw(gP(F,"lib."),".d.ts"),G=oS(B,C7,Do);return kl(I,w.checkDefined(D),w.checkDefined(E)-D,G?p.Cannot_find_lib_definition_for_0_Did_you_mean_1:p.Cannot_find_lib_definition_for_0,F,G)}function m(T,x,I,D,E){let O,F,B,G,$,K,U=x&&n.get(x.path),me=i1(I)?I:void 0,te=x&&_?.get(x.path);te?(te.fileIncludeReasonDetails?(O=new Set(U),U?.forEach(oe)):U?.forEach(ie),$=te.redirectInfo):(U?.forEach(ie),$=x&&EV(x,T.getCompilerOptionsForFile(x))),I&&ie(I);let V=O?.size!==U?.length;me&&O?.size===1&&(O=void 0),O&&te&&(te.details&&!V?K=Ps(te.details,D,...E??qe):te.fileIncludeReasonDetails&&(V?de()?F=jr(te.fileIncludeReasonDetails.next.slice(0,U.length),F[0]):F=[...te.fileIncludeReasonDetails.next,F[0]]:de()?F=te.fileIncludeReasonDetails.next.slice(0,U.length):G=te.fileIncludeReasonDetails)),K||(G||(G=O&&Ps(F,p.The_file_is_in_the_program_because_Colon)),K=Ps($?G?[G,...$]:$:G,D,...E||qe)),x&&(te?(!te.fileIncludeReasonDetails||!V&&G)&&(te.fileIncludeReasonDetails=G):(_??(_=new Map)).set(x.path,te={fileIncludeReasonDetails:G,redirectInfo:$}),!te.details&&!V&&(te.details=K.next));let ne=me&&vE(T,me);return ne&&WI(ne)?CF(ne.file,ne.pos,ne.end-ne.pos,K,B):vO(K,B);function ie(ye){O?.has(ye)||((O??(O=new Set)).add(ye),(F??(F=[])).push(RV(T,ye)),oe(ye))}function oe(ye){!me&&i1(ye)?me=ye:me!==ye&&(B=jr(B,h(T,ye)))}function de(){var ye;return((ye=te.fileIncludeReasonDetails.next)==null?void 0:ye.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(i1(x)){let B=vE(T,x),G;switch(x.kind){case 3:G=p.File_is_included_via_import_here;break;case 4:G=p.File_is_included_via_reference_here;break;case 5:G=p.File_is_included_via_type_library_reference_here;break;case 7:G=p.File_is_included_via_library_reference_here;break;default:w.assertNever(x)}return WI(B)?kl(B.file,B.pos,B.end-B.pos,G):void 0}let I=T.getCurrentDirectory(),D=T.getRootFileNames(),E=T.getCompilerOptions();if(!E.configFile)return;let O,F;switch(x.kind){case 0:if(!E.configFile.configFileSpecs)return;let B=as(D[x.index],I),G=NV(T,B);if(G){O=EF(E.configFile,"files",G),F=p.File_is_matched_by_files_list_specified_here;break}let $=MV(T,B);if(!$||!ys($))return;O=EF(E.configFile,"include",$),F=p.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:let K=T.getResolvedProjectReferences(),U=T.getProjectReferences(),me=w.checkDefined(K?.[x.index]),te=MA(U,K,(de,ye,H)=>de===me?{sourceFile:ye?.sourceFile||E.configFile,index:H}:void 0);if(!te)return;let{sourceFile:V,index:ne}=te,ie=z6(V,"references",de=>gu(de.initializer)?de.initializer:void 0);return ie&&ie.elements.length>ne?Cp(V,ie.elements[ne],x.kind===2?p.File_is_output_from_referenced_project_specified_here:p.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!E.types)return;O=qJ(e(),"types",x.typeReference),F=p.File_is_entry_point_of_type_library_specified_here;break;case 6:if(x.index!==void 0){O=qJ(e(),"lib",E.lib[x.index]),F=p.File_is_library_specified_here;break}let oe=kO(wa(E));O=oe?Pne(e(),"target",oe):void 0,F=p.File_is_default_library_for_target_specified_here;break;default:w.assertNever(x)}return O&&Cp(E.configFile,O,F)}}function soe(e,t,n,i,s,o){let c=[],{emitSkipped:_,diagnostics:u}=e.emit(t,g,i,n,s,o);return{outputFiles:c,emitSkipped:_,diagnostics:u};function g(m,h,S){c.push({name:m,writeByteOrderMark:S,text:h})}}var aoe=(e=>(e[e.ComputedDts=0]="ComputedDts",e[e.StoredSignatureAtEmit=1]="StoredSignatureAtEmit",e[e.UsedVersion=2]="UsedVersion",e))(aoe||{}),Yd;(e=>{function t(){function te(V,ne,ie){let oe={getKeys:de=>ne.get(de),getValues:de=>V.get(de),keys:()=>V.keys(),size:()=>V.size,deleteKey:de=>{(ie||(ie=new Set)).add(de);let ye=V.get(de);return ye?(ye.forEach(H=>i(ne,H,de)),V.delete(de),!0):!1},set:(de,ye)=>{ie?.delete(de);let H=V.get(de);return V.set(de,ye),H?.forEach(ve=>{ye.has(ve)||i(ne,ve,de)}),ye.forEach(ve=>{H?.has(ve)||n(ne,ve,de)}),oe}};return oe}return te(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function n(te,V,ne){let ie=te.get(V);ie||(ie=new Set,te.set(V,ie)),ie.add(ne)}function i(te,V,ne){let ie=te.get(V);return ie?.delete(ne)?(ie.size||te.delete(V),!0):!1}function s(te){return Vi(te.declarations,V=>{var ne;return(ne=Fr(V))==null?void 0:ne.resolvedPath})}function o(te,V){let ne=te.getSymbolAtLocation(V);return ne&&s(ne)}function c(te,V,ne,ie){return ko(te.getProjectReferenceRedirect(V)||V,ne,ie)}function _(te,V,ne){let ie;if(V.imports&&V.imports.length>0){let H=te.getTypeChecker();for(let ve of V.imports){let Ge=o(H,ve);Ge?.forEach(ye)}}let oe=Yn(V.resolvedPath);if(V.referencedFiles&&V.referencedFiles.length>0)for(let H of V.referencedFiles){let ve=c(te,H.fileName,oe,ne);ye(ve)}if(te.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:H})=>{if(!H)return;let ve=H.resolvedFileName,Ge=c(te,ve,oe,ne);ye(Ge)},V),V.moduleAugmentations.length){let H=te.getTypeChecker();for(let ve of V.moduleAugmentations){if(!ya(ve))continue;let Ge=H.getSymbolAtLocation(ve);Ge&&de(Ge)}}for(let H of te.getTypeChecker().getAmbientModules())H.declarations&&H.declarations.length>1&&de(H);return ie;function de(H){if(H.declarations)for(let ve of H.declarations){let Ge=Fr(ve);Ge&&Ge!==V&&ye(Ge.resolvedPath)}}function ye(H){(ie||(ie=new Set)).add(H)}}function u(te,V){return V&&!V.referencedMap==!te}e.canReuseOldState=u;function g(te){return te.module!==0&&!te.outFile?t():void 0}e.createReferencedMap=g;function m(te,V,ne){var ie,oe;let de=new Map,ye=te.getCompilerOptions(),H=g(ye),ve=u(H,V);te.getTypeChecker();for(let Ge of te.getSourceFiles()){let De=w.checkDefined(Ge.version,"Program intended to be used with Builder should have source files with versions set"),se=ve?(ie=V.oldSignatures)==null?void 0:ie.get(Ge.resolvedPath):void 0,xe=se===void 0?ve?(oe=V.fileInfos.get(Ge.resolvedPath))==null?void 0:oe.signature:void 0:se||void 0;if(H){let _e=_(te,Ge,te.getCanonicalFileName);_e&&H.set(Ge.resolvedPath,_e)}de.set(Ge.resolvedPath,{version:De,signature:xe,affectsGlobalScope:ye.outFile?void 0:$(Ge)||void 0,impliedFormat:Ge.impliedNodeFormat})}return{fileInfos:de,referencedMap:H,useFileVersionAsSignature:!ne&&!ve}}e.create=m;function h(te){te.allFilesExcludingDefaultLibraryFile=void 0,te.allFileNames=void 0}e.releaseCache=h;function S(te,V,ne,ie,oe){var de;let ye=T(te,V,ne,ie,oe);return(de=te.oldSignatures)==null||de.clear(),ye}e.getFilesAffectedBy=S;function T(te,V,ne,ie,oe){let de=V.getSourceFileByPath(ne);return de?D(te,V,de,ie,oe)?(te.referencedMap?me:U)(te,V,de,ie,oe):[de]:qe}e.getFilesAffectedByWithOldState=T;function x(te,V,ne){te.fileInfos.get(ne).signature=V,(te.hasCalledUpdateShapeSignature||(te.hasCalledUpdateShapeSignature=new Set)).add(ne)}e.updateSignatureOfFile=x;function I(te,V,ne,ie,oe){te.emit(V,(de,ye,H,ve,Ge,De)=>{w.assert(Ll(de),`File extension for signature expected to be dts: Got:: ${de}`),oe(hV(te,V,ye,ie,De),Ge)},ne,2,void 0,!0)}e.computeDtsSignature=I;function D(te,V,ne,ie,oe,de=te.useFileVersionAsSignature){var ye;if((ye=te.hasCalledUpdateShapeSignature)!=null&&ye.has(ne.resolvedPath))return!1;let H=te.fileInfos.get(ne.resolvedPath),ve=H.signature,Ge;return!ne.isDeclarationFile&&!de&&I(V,ne,ie,oe,De=>{Ge=De,oe.storeSignatureInfo&&(te.signatureInfo??(te.signatureInfo=new Map)).set(ne.resolvedPath,0)}),Ge===void 0&&(Ge=ne.version,oe.storeSignatureInfo&&(te.signatureInfo??(te.signatureInfo=new Map)).set(ne.resolvedPath,2)),(te.oldSignatures||(te.oldSignatures=new Map)).set(ne.resolvedPath,ve||!1),(te.hasCalledUpdateShapeSignature||(te.hasCalledUpdateShapeSignature=new Set)).add(ne.resolvedPath),H.signature=Ge,Ge!==ve}e.updateShapeSignature=D;function E(te,V,ne){if(V.getCompilerOptions().outFile||!te.referencedMap||$(ne))return O(te,V);let oe=new Set,de=[ne.resolvedPath];for(;de.length;){let ye=de.pop();if(!oe.has(ye)){oe.add(ye);let H=te.referencedMap.getValues(ye);if(H)for(let ve of H.keys())de.push(ve)}}return ps(i0(oe.keys(),ye=>{var H;return((H=V.getSourceFileByPath(ye))==null?void 0:H.fileName)??ye}))}e.getAllDependencies=E;function O(te,V){if(!te.allFileNames){let ne=V.getSourceFiles();te.allFileNames=ne===qe?qe:ne.map(ie=>ie.fileName)}return te.allFileNames}function F(te,V){let ne=te.referencedMap.getKeys(V);return ne?ps(ne.keys()):[]}e.getReferencedByPaths=F;function B(te){for(let V of te.statements)if(!TF(V))return!1;return!0}function G(te){return pt(te.moduleAugmentations,V=>xg(V.parent))}function $(te){return G(te)||!mf(te)&&!wp(te)&&!B(te)}function K(te,V,ne){if(te.allFilesExcludingDefaultLibraryFile)return te.allFilesExcludingDefaultLibraryFile;let ie;ne&&oe(ne);for(let de of V.getSourceFiles())de!==ne&&oe(de);return te.allFilesExcludingDefaultLibraryFile=ie||qe,te.allFilesExcludingDefaultLibraryFile;function oe(de){V.isSourceFileDefaultLibrary(de)||(ie||(ie=[])).push(de)}}e.getAllFilesExcludingDefaultLibraryFile=K;function U(te,V,ne){let ie=V.getCompilerOptions();return ie&&ie.outFile?[ne]:K(te,V,ne)}function me(te,V,ne,ie,oe){if($(ne))return K(te,V,ne);let de=V.getCompilerOptions();if(de&&(id(de)||de.outFile))return[ne];let ye=new Map;ye.set(ne.resolvedPath,ne);let H=F(te,ne.resolvedPath);for(;H.length>0;){let ve=H.pop();if(!ye.has(ve)){let Ge=V.getSourceFileByPath(ve);ye.set(ve,Ge),Ge&&D(te,V,Ge,ie,oe)&&H.push(...F(te,Ge.resolvedPath))}}return ps(i0(ye.values(),ve=>ve))}})(Yd||(Yd={}));var ooe=(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))(ooe||{});function BI(e){return e.program!==void 0}function aUe(e){return w.assert(BI(e)),e}function H0(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),K_(e)&&(t=t|24),e.declarationMap&&(t=t|32),e.emitDeclarationOnly&&(t=t&56),t}function T5(e,t){let n=t&&(c0(t)?t:H0(t)),i=c0(e)?e:H0(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 oUe(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!uh(e,n=>!t.has(n))}function cUe(e,t){var n,i;let s=Yd.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&&NTe(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 _=Yd.canReuseOldState(s.referencedMap,t),u=_?t.compilerOptions:void 0,g=_&&!Yre(o,u),m=o.composite&&t?.emitSignatures&&!c&&!ene(o,t.compilerOptions),h=!0;_?((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=PS(o);let S=s.referencedMap,T=_?t.referencedMap:void 0,x=g&&!o.skipLibCheck==!u.skipLibCheck,I=x&&!o.skipDefaultLibCheck==!u.skipDefaultLibCheck;if(s.fileInfos.forEach((E,O)=>{var F;let B,G;if(!_||!(B=t.fileInfos.get(O))||B.version!==E.version||B.impliedFormat!==E.impliedFormat||!oUe(G=S&&S.getValues(O),T&&T.getValues(O))||G&&uh(G,$=>!s.fileInfos.has($)&&t.fileInfos.has($)))D(O);else{let $=e.getSourceFileByPath(O),K=h?(F=t.emitDiagnosticsPerFile)==null?void 0:F.get(O):void 0;if(K&&(s.emitDiagnosticsPerFile??(s.emitDiagnosticsPerFile=new Map)).set(O,t.hasReusableDiagnostic?RTe(K,O,e):MTe(K,e)),g){if($.isDeclarationFile&&!x||$.hasNoDefaultLib&&!I)return;let U=t.semanticDiagnosticsPerFile.get(O);U&&(s.semanticDiagnosticsPerFile.set(O,t.hasReusableDiagnostic?RTe(U,O,e):MTe(U,e)),(s.semanticDiagnosticsFromOldState??(s.semanticDiagnosticsFromOldState=new Set)).add(O))}}if(m){let $=t.emitSignatures.get(O);$&&(s.emitSignatures??(s.emitSignatures=new Map)).set(O,NTe(o,t.compilerOptions,$))}}),_&&Nl(t.fileInfos,(E,O)=>s.fileInfos.has(O)?!1:E.affectsGlobalScope?!0:(s.buildInfoEmitPending=!0,!!c)))Yd.getAllFilesExcludingDefaultLibraryFile(s,e,void 0).forEach(E=>D(E.resolvedPath));else if(u){let E=Zre(o,u)?H0(o):T5(o,u);E!==0&&(c?s.changedFilesSet.size||(s.programEmitPending=s.programEmitPending?s.programEmitPending|E:E):(e.getSourceFiles().forEach(O=>{s.changedFilesSet.has(O.resolvedPath)||vV(s,O.resolvedPath,E)}),w.assert(!s.seenAffectedFiles||!s.seenAffectedFiles.size),s.seenAffectedFiles=s.seenAffectedFiles||new Set),s.buildInfoEmitPending=!0)}return _&&s.semanticDiagnosticsPerFile.size!==s.fileInfos.size&&t.checkPending!==s.checkPending&&(s.buildInfoEmitPending=!0),s;function D(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 NTe(e,t,n){return!!e.declarationMap==!!t.declarationMap?n:ys(n)?[n]:n[0]}function MTe(e,t){return e.length?ul(e,n=>{if(ys(n.messageText))return n;let i=coe(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 coe(e,t,n,i){let s=i(e);if(s===!0)return{...KB(t),next:loe(e.next,t,n,i)};if(s)return{...hF(t,n,s.moduleReference,s.mode,s.packageName||s.moduleReference),next:loe(e.next,t,n,i)};let o=loe(e.next,t,n,i);return o===e.next?e:{...e,next:o}}function loe(e,t,n,i){return ul(e,s=>coe(s,t,n,i))}function RTe(e,t,n){if(!e.length)return qe;let i;return e.map(o=>{let c=FTe(o,t,n,s);c.reportsUnnecessary=o.reportsUnnecessary,c.reportsDeprecated=o.reportDeprecated,c.source=o.source,c.skippedOn=o.skippedOn;let{relatedInformation:_}=o;return c.relatedInformation=_?_.length?_.map(u=>FTe(u,t,n,s)):[]:void 0,c});function s(o){return i??(i=Yn(as(n1(n.getCompilerOptions()),n.getCurrentDirectory()))),ko(o,i,n.getCanonicalFileName)}}function FTe(e,t,n,i){let{file:s}=e,o=s!==!1?n.getSourceFileByPath(s?i(s):t):void 0;return{...e,file:o,messageText:ys(e.messageText)?e.messageText:coe(e.messageText,o,n,c=>c.info)}}function lUe(e){Yd.releaseCache(e),e.program=void 0}function uoe(e,t){w.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function OTe(e,t,n){for(var i;;){let{affectedFiles:s}=e;if(s){let _=e.seenAffectedFiles,u=e.affectedFilesIndex;for(;u<s.length;){let g=s[u];if(!_.has(g.resolvedPath))return e.affectedFilesIndex=u,vV(e,g.resolvedPath,H0(e.compilerOptions)),fUe(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=Yd.getFilesAffectedByWithOldState(e,e.program,o.value,t,n),e.currentChangedFilePath=o.value,e.affectedFilesIndex=0,e.seenAffectedFiles||(e.seenAffectedFiles=new Set)}}function LTe(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 _=n?o&55:o&7;_?e.affectedFilesPendingEmit.set(c,_):e.affectedFilesPendingEmit.delete(c)}),e.programEmitPending)){let o=n?e.programEmitPending&55:e.programEmitPending&7;o?e.programEmitPending=o:e.programEmitPending=void 0}}function k5(e,t,n,i){let s=T5(e,t);return n&&(s=s&56),i&&(s=s&8),s}function mV(e){return e?8:56}function uUe(e,t,n){var i;if((i=e.affectedFilesPendingEmit)!=null&&i.size)return Nl(e.affectedFilesPendingEmit,(s,o)=>{var c;let _=e.program.getSourceFileByPath(o);if(!_||!kS(_,e.program)){e.affectedFilesPendingEmit.delete(o);return}let u=(c=e.seenEmittedFiles)==null?void 0:c.get(_.resolvedPath),g=k5(s,u,t,n);if(g)return{affectedFile:_,emitKind:g}})}function _Ue(e,t){var n;if((n=e.emitDiagnosticsPerFile)!=null&&n.size)return Nl(e.emitDiagnosticsPerFile,(i,s)=>{var o;let c=e.program.getSourceFileByPath(s);if(!c||!kS(c,e.program)){e.emitDiagnosticsPerFile.delete(s);return}let _=((o=e.seenEmittedFiles)==null?void 0:o.get(c.resolvedPath))||0;if(!(_&mV(t)))return{affectedFile:c,diagnostics:i,seenKind:_}})}function jTe(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;let t=e.program.getCompilerOptions();or(e.program.getSourceFiles(),n=>e.program.isSourceFileDefaultLibrary(n)&&!_ne(n,t,e.program)&&foe(e,n.resolvedPath))}}function fUe(e,t,n,i){if(foe(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){jTe(e),Yd.updateShapeSignature(e,e.program,t,n,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||pUe(e,t,n,i)}function _oe(e,t,n,i,s){if(foe(e,t),!e.changedFilesSet.has(t)){let o=e.program.getSourceFileByPath(t);o&&(Yd.updateShapeSignature(e,e.program,o,i,s,!0),n?vV(e,t,H0(e.compilerOptions)):K_(e.compilerOptions)&&vV(e,t,e.compilerOptions.declarationMap?56:24))}}function foe(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function WTe(e,t){let n=w.checkDefined(e.oldSignatures).get(t)||void 0;return w.checkDefined(e.fileInfos.get(t)).signature!==n}function poe(e,t,n,i,s){var o;return(o=e.fileInfos.get(t))!=null&&o.affectsGlobalScope?(Yd.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(c=>_oe(e,c.resolvedPath,n,i,s)),jTe(e),!0):!1}function pUe(e,t,n,i){var s,o;if(!e.referencedMap||!e.changedFilesSet.has(t.resolvedPath)||!WTe(e,t.resolvedPath))return;if(id(e.compilerOptions)){let u=new Map;u.set(t.resolvedPath,!0);let g=Yd.getReferencedByPaths(e,t.resolvedPath);for(;g.length>0;){let m=g.pop();if(!u.has(m)){if(u.set(m,!0),poe(e,m,!1,n,i))return;if(_oe(e,m,!1,n,i),WTe(e,m)){let h=e.program.getSourceFileByPath(m);g.push(...Yd.getReferencedByPaths(e,h.resolvedPath))}}}}let c=new Set,_=!!((s=t.symbol)!=null&&s.exports)&&!!Nl(t.symbol.exports,u=>{if((u.flags&128)!==0)return!0;let g=du(u,e.program.getTypeChecker());return g===u?!1:(g.flags&128)!==0&&pt(g.declarations,m=>Fr(m)===t)});(o=e.referencedMap.getKeys(t.resolvedPath))==null||o.forEach(u=>{if(poe(e,u,_,n,i))return!0;let g=e.referencedMap.getKeys(u);return g&&uh(g,m=>BTe(e,m,_,c,n,i))})}function BTe(e,t,n,i,s,o){var c;if(Qy(i,t)){if(poe(e,t,n,s,o))return!0;_oe(e,t,n,s,o),(c=e.referencedMap.getKeys(t))==null||c.forEach(_=>BTe(e,_,n,i,s,o))}}function gV(e,t,n,i){return e.compilerOptions.noCheck?qe:Ki(dUe(e,t,n,i),e.program.getProgramDiagnostics(t))}function dUe(e,t,n,i){i??(i=e.semanticDiagnosticsPerFile);let s=t.resolvedPath,o=i.get(s);if(o)return b5(o,e.compilerOptions);let c=e.program.getBindAndCheckDiagnostics(t,n);return i.set(s,c),e.buildInfoEmitPending=!0,b5(c,e.compilerOptions)}function doe(e){var t;return!!((t=e.options)!=null&&t.outFile)}function UM(e){return!!e.fileNames}function mUe(e){return!UM(e)&&!!e.root}function zTe(e){e.hasErrors===void 0&&(PS(e.compilerOptions)?e.hasErrors=!pt(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)})&&(JTe(e)||pt(e.program.getSourceFiles(),t=>!!e.program.getProgramDiagnostics(t).length)):e.hasErrors=pt(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)})||JTe(e))}function JTe(e){return!!e.program.getConfigFileParsingDiagnostics().length||!!e.program.getSyntacticDiagnostics().length||!!e.program.getOptionsDiagnostics().length||!!e.program.getGlobalDiagnostics().length}function GTe(e){return zTe(e),e.buildInfoEmitPending??(e.buildInfoEmitPending=!!e.hasErrorsFromOldState!=!!e.hasErrors)}function gUe(e){var t,n;let i=e.program.getCurrentDirectory(),s=Yn(as(n1(e.compilerOptions),i)),o=e.latestChangedDtsFile?O(e.latestChangedDtsFile):void 0,c=[],_=new Map,u=new Set(e.program.getRootFileNames().map(H=>ko(H,i,e.program.getCanonicalFileName)));if(zTe(e),!PS(e.compilerOptions))return{root:ps(u,ve=>F(ve)),errors:e.hasErrors?!0:void 0,checkPending:e.checkPending,version:Ui};let g=[];if(e.compilerOptions.outFile){let H=ps(e.fileInfos.entries(),([Ge,De])=>{let se=B(Ge);return $(Ge,se),De.impliedFormat?{version:De.version,impliedFormat:De.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:De.version});return{fileNames:c,fileInfos:H,root:g,resolvedRoot:K(),options:U(e.compilerOptions),semanticDiagnosticsPerFile:e.changedFilesSet.size?void 0:te(),emitDiagnosticsPerFile:V(),changeFileSet:ye(),outSignature:e.outSignature,latestChangedDtsFile:o,pendingEmit:e.programEmitPending?e.programEmitPending===H0(e.compilerOptions)?!1:e.programEmitPending:void 0,errors:e.hasErrors?!0:void 0,checkPending:e.checkPending,version:Ui}}let m,h,S,T=ps(e.fileInfos.entries(),([H,ve])=>{var Ge,De;let se=B(H);$(H,se),w.assert(c[se-1]===F(H));let xe=(Ge=e.oldSignatures)==null?void 0:Ge.get(H),_e=xe!==void 0?xe||void 0:ve.signature;if(e.compilerOptions.composite){let tt=e.program.getSourceFileByPath(H);if(!wp(tt)&&kS(tt,e.program)){let ct=(De=e.emitSignatures)==null?void 0:De.get(H);ct!==_e&&(S=jr(S,ct===void 0?se:[se,!ys(ct)&&ct[0]===_e?qe:ct]))}}return ve.version===_e?ve.affectsGlobalScope||ve.impliedFormat?{version:ve.version,signature:void 0,affectsGlobalScope:ve.affectsGlobalScope,impliedFormat:ve.impliedFormat}:ve.version:_e!==void 0?xe===void 0?ve:{version:ve.version,signature:_e,affectsGlobalScope:ve.affectsGlobalScope,impliedFormat:ve.impliedFormat}:{version:ve.version,signature:!1,affectsGlobalScope:ve.affectsGlobalScope,impliedFormat:ve.impliedFormat}}),x;(t=e.referencedMap)!=null&&t.size()&&(x=ps(e.referencedMap.keys()).sort(wu).map(H=>[B(H),G(e.referencedMap.getValues(H))]));let I=te(),D;if((n=e.affectedFilesPendingEmit)!=null&&n.size){let H=H0(e.compilerOptions),ve=new Set;for(let Ge of ps(e.affectedFilesPendingEmit.keys()).sort(wu))if(Qy(ve,Ge)){let De=e.program.getSourceFileByPath(Ge);if(!De||!kS(De,e.program))continue;let se=B(Ge),xe=e.affectedFilesPendingEmit.get(Ge);D=jr(D,xe===H?se:xe===24?[se]:[se,xe])}}return{fileNames:c,fileIdsList:m,fileInfos:T,root:g,resolvedRoot:K(),options:U(e.compilerOptions),referencedMap:x,semanticDiagnosticsPerFile:I,emitDiagnosticsPerFile:V(),changeFileSet:ye(),affectedFilesPendingEmit:D,emitSignatures:S,latestChangedDtsFile:o,errors:e.hasErrors?!0:void 0,checkPending:e.checkPending,version:Ui};function O(H){return F(as(H,i))}function F(H){return KT(Zf(s,H,e.program.getCanonicalFileName))}function B(H){let ve=_.get(H);return ve===void 0&&(c.push(F(H)),_.set(H,ve=c.length)),ve}function G(H){let ve=ps(H.keys(),B).sort(Po),Ge=ve.join(),De=h?.get(Ge);return De===void 0&&(m=jr(m,ve),(h??(h=new Map)).set(Ge,De=m.length)),De}function $(H,ve){let Ge=e.program.getSourceFile(H);if(!e.program.getFileIncludeReasons().get(Ge.path).some(_e=>_e.kind===0))return;if(!g.length)return g.push(ve);let De=g[g.length-1],se=ks(De);if(se&&De[1]===ve-1)return De[1]=ve;if(se||g.length===1||De!==ve-1)return g.push(ve);let xe=g[g.length-2];return!c0(xe)||xe!==De-1?g.push(ve):(g[g.length-2]=[xe,ve],g.length=g.length-1)}function K(){let H;return u.forEach(ve=>{let Ge=e.program.getSourceFileByPath(ve);Ge&&ve!==Ge.resolvedPath&&(H=jr(H,[B(Ge.resolvedPath),B(ve)]))}),H}function U(H){let ve,{optionsNameMap:Ge}=DI();for(let De of bm(H).sort(wu)){let se=Ge.get(De.toLowerCase());se?.affectsBuildInfo&&((ve||(ve={}))[De]=me(se,H[De]))}return ve}function me(H,ve){if(H){if(w.assert(H.type!=="listOrElement"),H.type==="list"){let Ge=ve;if(H.element.isFilePath&&Ge.length)return Ge.map(O)}else if(H.isFilePath)return O(ve)}return ve}function te(){let H;return e.fileInfos.forEach((ve,Ge)=>{let De=e.semanticDiagnosticsPerFile.get(Ge);De?De.length&&(H=jr(H,[B(Ge),ne(De,Ge)])):e.changedFilesSet.has(Ge)||(H=jr(H,B(Ge)))}),H}function V(){var H;let ve;if(!((H=e.emitDiagnosticsPerFile)!=null&&H.size))return ve;for(let Ge of ps(e.emitDiagnosticsPerFile.keys()).sort(wu)){let De=e.emitDiagnosticsPerFile.get(Ge);ve=jr(ve,[B(Ge),ne(De,Ge)])}return ve}function ne(H,ve){return w.assert(!!H.length),H.map(Ge=>{let De=ie(Ge,ve);De.reportsUnnecessary=Ge.reportsUnnecessary,De.reportDeprecated=Ge.reportsDeprecated,De.source=Ge.source,De.skippedOn=Ge.skippedOn;let{relatedInformation:se}=Ge;return De.relatedInformation=se?se.length?se.map(xe=>ie(xe,ve)):[]:void 0,De})}function ie(H,ve){let{file:Ge}=H;return{...H,file:Ge?Ge.resolvedPath===ve?void 0:F(Ge.resolvedPath):!1,messageText:ys(H.messageText)?H.messageText:oe(H.messageText)}}function oe(H){if(H.repopulateInfo)return{info:H.repopulateInfo(),next:de(H.next)};let ve=de(H.next);return ve===H.next?H:{...H,next:ve}}function de(H){return H&&(or(H,(ve,Ge)=>{let De=oe(ve);if(ve===De)return;let se=Ge>0?H.slice(0,Ge-1):[];se.push(De);for(let xe=Ge+1;xe<H.length;xe++)se.push(oe(H[xe]));return se})||H)}function ye(){let H;if(e.changedFilesSet.size)for(let ve of ps(e.changedFilesSet.keys()).sort(wu))H=jr(H,B(ve));return H}}var moe=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(moe||{});function x5(e,t,n,i,s,o){let c,_,u;return e===void 0?(w.assert(t===void 0),c=n,u=i,w.assert(!!u),_=u.getProgram()):ks(e)?(u=i,_=JM({rootNames:e,options:t,host:n,oldProgram:u&&u.getProgramOrUndefined(),configFileParsingDiagnostics:s,projectReferences:o}),c=n):(_=e,c=t,u=n,s=i),{host:c,newProgram:_,oldProgram:u,configFileParsingDiagnostics:s||qe}}function UTe(e,t){return t?.sourceMapUrlPos!==void 0?e.substring(0,t.sourceMapUrlPos):e}function hV(e,t,n,i,s){var o;n=UTe(n,s);let c;return(o=s?.diagnostics)!=null&&o.length&&(n+=s.diagnostics.map(g=>`${u(g)}${R8[g.category]}${g.code}: ${_(g.messageText)}`).join(`
`)),(i.createHash??kP)(n);function _(g){return ys(g)?g:g===void 0?"":g.next?g.messageText+g.next.map(_).join(`
`):g.messageText}function u(g){return g.file.resolvedPath===t.resolvedPath?`(${g.start},${g.length})`:(c===void 0&&(c=Yn(t.resolvedPath)),`${KT(Zf(c,g.file.resolvedPath,e.getCanonicalFileName))}(${g.start},${g.length})`)}}function hUe(e,t,n){return(t.createHash??kP)(UTe(e,n))}function yV(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=()=>gUe(aUe(c)),t=void 0,i=void 0,o=void 0;let _=SV(c,s);return _.state=c,_.hasChangedEmitSignature=()=>!!c.hasChangedEmitSignature,_.getAllDependencies=O=>Yd.getAllDependencies(c,w.checkDefined(c.program),O),_.getSemanticDiagnostics=E,_.getDeclarationDiagnostics=I,_.emit=T,_.releaseProgram=()=>lUe(c),e===0?_.getSemanticDiagnosticsOfNextAffectedFile=D:e===1?(_.getSemanticDiagnosticsOfNextAffectedFile=D,_.emitNextAffectedFile=h,_.emitBuildInfo=u):ra(),_;function u(O,F){if(w.assert(BI(c)),GTe(c)){let B=c.program.emitBuildInfo(O||Vs(n,n.writeFile),F);return c.buildInfoEmitPending=!1,B}return fV}function g(O,F,B,G,$){var K,U,me,te;w.assert(BI(c));let V=OTe(c,F,n),ne=H0(c.compilerOptions),ie=$?8:B?ne&56:ne;if(!V){if(c.compilerOptions.outFile){if(c.programEmitPending&&(ie=k5(c.programEmitPending,c.seenProgramEmit,B,$),ie&&(V=c.program)),!V&&((K=c.emitDiagnosticsPerFile)!=null&&K.size)){let ye=c.seenProgramEmit||0;if(!(ye&mV($))){c.seenProgramEmit=mV($)|ye;let H=[];return c.emitDiagnosticsPerFile.forEach(ve=>jn(H,ve)),{result:{emitSkipped:!0,diagnostics:H},affected:c.program}}}}else{let ye=uUe(c,B,$);if(ye)({affectedFile:V,emitKind:ie}=ye);else{let H=_Ue(c,$);if(H)return(c.seenEmittedFiles??(c.seenEmittedFiles=new Map)).set(H.affectedFile.resolvedPath,H.seenKind|mV($)),{result:{emitSkipped:!0,diagnostics:H.diagnostics},affected:H.affectedFile}}}if(!V){if($||!GTe(c))return;let ye=c.program,H=ye.emitBuildInfo(O||Vs(n,n.writeFile),F);return c.buildInfoEmitPending=!1,{result:H,affected:ye}}}let oe;ie&7&&(oe=0),ie&56&&(oe=oe===void 0?1:void 0);let de=$?{emitSkipped:!0,diagnostics:c.program.getDeclarationDiagnostics(V===c.program?void 0:V,F)}:c.program.emit(V===c.program?void 0:V,S(O,G),F,oe,G,void 0,!0);if(V!==c.program){let ye=V;c.seenAffectedFiles.add(ye.resolvedPath),c.affectedFilesIndex!==void 0&&c.affectedFilesIndex++,c.buildInfoEmitPending=!0;let H=((U=c.seenEmittedFiles)==null?void 0:U.get(ye.resolvedPath))||0;(c.seenEmittedFiles??(c.seenEmittedFiles=new Map)).set(ye.resolvedPath,ie|H);let ve=((me=c.affectedFilesPendingEmit)==null?void 0:me.get(ye.resolvedPath))||ne,Ge=T5(ve,ie|H);Ge?(c.affectedFilesPendingEmit??(c.affectedFilesPendingEmit=new Map)).set(ye.resolvedPath,Ge):(te=c.affectedFilesPendingEmit)==null||te.delete(ye.resolvedPath),de.diagnostics.length&&(c.emitDiagnosticsPerFile??(c.emitDiagnosticsPerFile=new Map)).set(ye.resolvedPath,de.diagnostics)}else c.changedFilesSet.clear(),c.programEmitPending=c.changedFilesSet.size?T5(ne,ie):c.programEmitPending?T5(c.programEmitPending,ie):void 0,c.seenProgramEmit=ie|(c.seenProgramEmit||0),m(de.diagnostics),c.buildInfoEmitPending=!0;return{result:de,affected:V}}function m(O){let F;O.forEach(B=>{if(!B.file)return;let G=F?.get(B.file.resolvedPath);G||(F??(F=new Map)).set(B.file.resolvedPath,G=[]),G.push(B)}),F&&(c.emitDiagnosticsPerFile=F)}function h(O,F,B,G){return g(O,F,B,G,!1)}function S(O,F){return w.assert(BI(c)),K_(c.compilerOptions)?(B,G,$,K,U,me)=>{var te,V,ne;if(Ll(B))if(c.compilerOptions.outFile){if(c.compilerOptions.composite){let oe=ie(c.outSignature,void 0);if(!oe)return me.skippedDtsWrite=!0;c.outSignature=oe}}else{w.assert(U?.length===1);let oe;if(!F){let de=U[0],ye=c.fileInfos.get(de.resolvedPath);if(ye.signature===de.version){let H=hV(c.program,de,G,n,me);(te=me?.diagnostics)!=null&&te.length||(oe=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,ye.signature||!1),ye.signature=H)}}if(c.compilerOptions.composite){let de=U[0].resolvedPath;if(oe=ie((ne=c.emitSignatures)==null?void 0:ne.get(de),oe),!oe)return me.skippedDtsWrite=!0;(c.emitSignatures??(c.emitSignatures=new Map)).set(de,oe)}}O?O(B,G,$,K,U,me):n.writeFile?n.writeFile(B,G,$,K,U,me):c.program.writeFile(B,G,$,K,U,me);function ie(oe,de){let ye=!oe||ys(oe)?oe:oe[0];if(de??(de=hUe(G,n,me)),de===ye){if(oe===ye)return;me?me.differsOnlyInMap=!0:me={differsOnlyInMap:!0}}else c.hasChangedEmitSignature=!0,c.latestChangedDtsFile=B;return de}}:O||Vs(n,n.writeFile)}function T(O,F,B,G,$){w.assert(BI(c)),e===1&&uoe(c,O);let K=pV(_,O,F,B);if(K)return K;if(!O)if(e===1){let me=[],te=!1,V,ne=[],ie;for(;ie=h(F,B,G,$);)te=te||ie.result.emitSkipped,V=jn(V,ie.result.diagnostics),ne=jn(ne,ie.result.emittedFiles),me=jn(me,ie.result.sourceMaps);return{emitSkipped:te,diagnostics:V||qe,emittedFiles:ne,sourceMaps:me}}else LTe(c,G,!1);let U=c.program.emit(O,S(F,$),B,G,$);return x(O,G,!1,U.diagnostics),U}function x(O,F,B,G){!O&&e!==1&&(LTe(c,F,B),m(G))}function I(O,F){var B;if(w.assert(BI(c)),e===1){uoe(c,O);let G,$;for(;G=g(void 0,F,void 0,void 0,!0);)O||($=jn($,G.result.diagnostics));return(O?(B=c.emitDiagnosticsPerFile)==null?void 0:B.get(O.resolvedPath):$)||qe}else{let G=c.program.getDeclarationDiagnostics(O,F);return x(O,void 0,!0,G),G}}function D(O,F){for(w.assert(BI(c));;){let B=OTe(c,O,n),G;if(B)if(B!==c.program){let $=B;if((!F||!F($))&&(G=gV(c,$,O)),c.seenAffectedFiles.add($.resolvedPath),c.affectedFilesIndex++,c.buildInfoEmitPending=!0,!G)continue}else{let $,K=new Map;c.program.getSourceFiles().forEach(U=>$=jn($,gV(c,U,O,K))),c.semanticDiagnosticsPerFile=K,G=$||qe,c.changedFilesSet.clear(),c.programEmitPending=H0(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:G,affected:B}}}function E(O,F){if(w.assert(BI(c)),uoe(c,O),O)return gV(c,O,F);for(;;){let G=D(F);if(!G)break;if(G.affected===c.program)return G.result}let B;for(let G of c.program.getSourceFiles())B=jn(B,gV(c,G,F));return c.checkPending&&!c.compilerOptions.noCheck&&(c.checkPending=void 0,c.buildInfoEmitPending=!0),B||qe}}function vV(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 goe(e){return ys(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:ys(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function hoe(e,t){return c0(e)?t:e[1]||24}function yoe(e,t){return e||H0(t||{})}function voe(e,t,n){var i,s,o,c;let _=Yn(as(t,n.getCurrentDirectory())),u=fu(n.useCaseSensitiveFileNames()),g,m=(i=e.fileNames)==null?void 0:i.map(I),h,S=e.latestChangedDtsFile?D(e.latestChangedDtsFile):void 0,T=new Map,x=new Set(hr(e.changeFileSet,E));if(doe(e))e.fileInfos.forEach(($,K)=>{let U=E(K+1);T.set(U,ys($)?{version:$,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:$)}),g={fileInfos:T,compilerOptions:e.options?R7(e.options,D):{},semanticDiagnosticsPerFile:B(e.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:G(e.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:x,latestChangedDtsFile:S,outSignature:e.outSignature,programEmitPending:e.pendingEmit===void 0?void 0:yoe(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,me)=>{let te=E(me+1),V=goe(U);T.set(te,V),$&&V.signature&&$.set(te,V.signature)}),(c=e.emitSignatures)==null||c.forEach(U=>{if(c0(U))$.delete(E(U));else{let me=E(U[0]);$.set(me,!ys(U[1])&&!U[1].length?[$.get(me)]:U[1])}});let K=e.affectedFilesPendingEmit?H0(e.options||{}):void 0;g={fileInfos:T,compilerOptions:e.options?R7(e.options,D):{},referencedMap:F(e.referencedMap,e.options??{}),semanticDiagnosticsPerFile:B(e.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:G(e.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:x,affectedFilesPendingEmit:e.affectedFilesPendingEmit&&yw(e.affectedFilesPendingEmit,U=>E(c0(U)?U:U[0]),U=>hoe(U,K)),latestChangedDtsFile:S,emitSignatures:$?.size?$:void 0,hasErrors:e.errors,checkPending:e.checkPending}}return{state:g,getProgram:ra,getProgramOrUndefined:sS,releaseProgram:to,getCompilerOptions:()=>g.compilerOptions,getSourceFile:ra,getSourceFiles:ra,getOptionsDiagnostics:ra,getGlobalDiagnostics:ra,getConfigFileParsingDiagnostics:ra,getSyntacticDiagnostics:ra,getDeclarationDiagnostics:ra,getSemanticDiagnostics:ra,emit:ra,getAllDependencies:ra,getCurrentDirectory:ra,emitNextAffectedFile:ra,getSemanticDiagnosticsOfNextAffectedFile:ra,emitBuildInfo:ra,close:to,hasChangedEmitSignature:ey};function I($){return ko($,_,u)}function D($){return as($,_)}function E($){return m[$-1]}function O($){return h[$-1]}function F($,K){let U=Yd.createReferencedMap(K);return!U||!$||$.forEach(([me,te])=>U.set(E(me),O(te))),U}function B($){let K=new Map(i0(T.keys(),U=>x.has(U)?void 0:[U,qe]));return $?.forEach(U=>{c0(U)?K.delete(E(U)):K.set(E(U[0]),U[1])}),K}function G($){return $&&yw($,K=>E(K[0]),K=>K[1])}}function bV(e,t,n){let i=Yn(as(t,n.getCurrentDirectory())),s=fu(n.useCaseSensitiveFileNames()),o=new Map,c=0,_=new Map,u=new Map(e.resolvedRoot);return e.fileInfos.forEach((m,h)=>{let S=ko(e.fileNames[h],i,s),T=ys(m)?m:m.version;if(o.set(S,T),c<e.root.length){let x=e.root[c],I=h+1;ks(x)?x[0]<=I&&I<=x[1]&&(g(I,S),x[1]===I&&c++):x===I&&(g(I,S),c++)}}),{fileInfos:o,roots:_};function g(m,h){let S=u.get(m);S?_.set(ko(e.fileNames[S-1],i,s),h):_.set(h,void 0)}}function boe(e,t,n){if(!mUe(e))return;let i=Yn(as(t,n.getCurrentDirectory())),s=fu(n.useCaseSensitiveFileNames());return e.root.map(o=>ko(o,i,s))}function SV(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,_)=>n().emit(i,s,o,c,_),emitBuildInfo:(i,s)=>n().emitBuildInfo(i,s),getAllDependencies:ra,getCurrentDirectory:()=>n().getCurrentDirectory(),close:to};function n(){return w.checkDefined(e.program)}}function VTe(e,t,n,i,s,o){return yV(0,x5(e,t,n,i,s,o))}function TV(e,t,n,i,s,o){return yV(1,x5(e,t,n,i,s,o))}function qTe(e,t,n,i,s,o){let{newProgram:c,configFileParsingDiagnostics:_}=x5(e,t,n,i,s,o);return SV({program:c,compilerOptions:c.getCompilerOptions()},_)}function C5(e){return Jo(e,"/node_modules/.staging")?Sw(e,"/.staging"):pt(L8,t=>e.includes(t))?void 0:e}function Soe(e,t){if(t<=1)return 1;let n=1,i=e[0].search(/[a-z]:/i)===0;if(e[0]!==Fo&&!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 kV(e,t){if(t===void 0&&(t=e.length),t<=2)return!1;let n=Soe(e,t);return t>n+1}function VM(e){return kV(Iu(e))}function Toe(e){return HTe(Yn(e))}function $Te(e,t){if(t.length<t.length)return!1;for(let n=0;n<e.length;n++)if(t[n]!==e[n])return!1;return!0}function HTe(e){return VM(e)}function koe(e){return HTe(e)}function xV(e,t,n,i,s,o,c,_){let u=Iu(t);e=ff(e)?na(e):as(e,c());let g=Iu(e),m=Soe(u,u.length);if(u.length<=m+1)return;let h=u.indexOf("node_modules");if(h!==-1&&h+1<=m+1)return;let S=u.lastIndexOf("node_modules");return o&&$Te(s,u)?u.length>s.length+1?xoe(g,u,Math.max(s.length+1,m+1),S):{dir:n,dirPath:i,nonRecursive:!0}:QTe(g,u,u.length-1,m,h,s,S,_)}function QTe(e,t,n,i,s,o,c,_){if(s!==-1)return xoe(e,t,s+1,c);let u=!0,g=n;if(!_){for(let m=0;m<n;m++)if(t[m]!==o[m]){u=!1,g=Math.max(m+1,i+1);break}}return xoe(e,t,g,c,u)}function xoe(e,t,n,i,s){let o;return i!==-1&&i+1>=n&&i+2<t.length&&(Yi(t[i+1],"@")?i+3<t.length&&(o=i+3):o=i+2),{dir:Ib(e,n),dirPath:Ib(t,n),nonRecursive:s,packageDir:o!==void 0?Ib(e,o):void 0,packageDirPath:o!==void 0?Ib(t,o):void 0}}function Coe(e,t,n,i,s,o,c,_){let u=Iu(t);if(s&&$Te(i,u))return n;e=ff(e)?na(e):as(e,o());let g=QTe(Iu(e),u,u.length,Soe(u,u.length),u.indexOf("node_modules"),i,u.lastIndexOf("node_modules"),c);return g&&_(g.dirPath)?g.dirPath:void 0}function woe(e,t){let n=as(e,t());return fB(n)?n:Ky(n)}function w5(e){var t;return((t=e.getCompilerHost)==null?void 0:t.call(e))||e}function Ioe(e,t,n,i,s){return{nameAndMode:m5,resolve:(o,c)=>yUe(i,s,o,e,n,t,c)}}function yUe(e,t,n,i,s,o,c){let _=w5(e),u=Fk(n,i,s,_,t,o,c);if(!e.getGlobalTypingsCacheLocation)return u;let g=e.getGlobalTypingsCacheLocation();if(g!==void 0&&!Jl(n)&&!(u.resolvedModule&&FO(u.resolvedModule.extension))){let{resolvedModule:m,failedLookupLocations:h,affectingLocations:S,resolutionDiagnostics:T}=jse(w.checkDefined(e.globalCacheResolutionModuleName)(n),e.projectName,s,_,g,t);if(m)return u.resolvedModule=m,u.failedLookupLocations=PI(u.failedLookupLocations,h),u.affectingLocations=PI(u.affectingLocations,S),u.resolutionDiagnostics=PI(u.resolutionDiagnostics,T),u}return u}function CV(e,t,n){let i,s,o,c=new Set,_=new Set,u=new Set,g=new Map,m=new Map,h=!1,S,T,x,I,D,E=!1,O=Yu(()=>e.getCurrentDirectory()),F=e.getCachedDirectoryStructureHost(),B=new Map,G=EI(O(),e.getCanonicalFileName,e.getCompilationSettings()),$=new Map,K=U7(O(),e.getCanonicalFileName,e.getCompilationSettings(),G.getPackageJsonInfoCache(),G.optionsToRedirectsKey),U=new Map,me=EI(O(),e.getCanonicalFileName,aU(e.getCompilationSettings()),G.getPackageJsonInfoCache()),te=new Map,V=new Map,ne=woe(t,O),ie=e.toPath(ne),oe=Iu(ie),de=kV(oe),ye=new Map,H=new Map,ve=new Map,Ge=new Map;return{rootDirForResolution:t,resolvedModuleNames:B,resolvedTypeReferenceDirectives:$,resolvedLibraries:U,resolvedFileToResolution:g,resolutionsWithFailedLookups:_,resolutionsWithOnlyAffectingLocations:u,directoryWatchesOfFailedLookups:te,fileWatchesOfAffectingLocations:V,packageDirWatchers:H,dirPathToSymlinkPackageRefCount:ve,watchFailedLookupLocationsOfExternalModuleResolutions:$t,getModuleResolutionCache:()=>G,startRecordingFilesWithChangedResolutions:xe,finishRecordingFilesWithChangedResolutions:_e,startCachingPerDirectoryResolution:le,finishCachingPerDirectoryResolution:ee,resolveModuleNameLiterals:zt,resolveTypeReferenceDirectiveReferences:bt,resolveLibrary:ur,resolveSingleModuleNameWithoutWatching:Or,removeResolutionsFromProjectReferenceRedirects:Xn,removeResolutionsOfFile:Pi,hasChangedAutomaticTypeDirectiveNames:()=>h,invalidateResolutionOfFile:oa,invalidateResolutionsOfFailedLookupLocations:Nt,setFilesWithInvalidatedNonRelativeUnresolvedImports:xr,createHasInvalidatedResolutions:ct,isFileWithInvalidatedNonRelativeUnresolvedImports:tt,updateTypeRootsWatch:st,closeTypeRootsWatch:Ae,clear:De,onChangesAffectModuleResolution:se};function De(){Q_(te,Op),Q_(V,Op),ye.clear(),H.clear(),ve.clear(),c.clear(),Ae(),B.clear(),$.clear(),g.clear(),_.clear(),u.clear(),x=void 0,I=void 0,D=void 0,T=void 0,S=void 0,E=!1,G.clear(),K.clear(),G.update(e.getCompilationSettings()),K.update(e.getCompilationSettings()),me.clear(),m.clear(),U.clear(),h=!1}function se(){E=!0,G.clearAllExceptPackageJsonInfoCache(),K.clearAllExceptPackageJsonInfoCache(),G.update(e.getCompilationSettings()),K.update(e.getCompilationSettings())}function xe(){i=[]}function _e(){let Fe=i;return i=void 0,Fe}function tt(Fe){if(!o)return!1;let St=o.get(Fe);return!!St&&!!St.length}function ct(Fe,St){Nt();let vt=s;return s=void 0,{hasInvalidatedResolutions:Mt=>Fe(Mt)||E||!!vt?.has(Mt)||tt(Mt),hasInvalidatedLibResolutions:Mt=>{var Ke;return St(Mt)||!!((Ke=U?.get(Mt))!=null&&Ke.isInvalidated)}}}function le(){G.isReadonly=void 0,K.isReadonly=void 0,me.isReadonly=void 0,G.getPackageJsonInfoCache().isReadonly=void 0,G.clearAllExceptPackageJsonInfoCache(),K.clearAllExceptPackageJsonInfoCache(),me.clearAllExceptPackageJsonInfoCache(),ns(),ye.clear()}function Je(Fe){U.forEach((St,vt)=>{var Mt;(Mt=Fe?.resolvedLibReferences)!=null&&Mt.has(vt)||(ht(St,e.toPath(h5(e.getCompilationSettings(),O(),vt)),i2),U.delete(vt))})}function ee(Fe,St){o=void 0,E=!1,ns(),Fe!==St&&(Je(Fe),Fe?.getSourceFiles().forEach(vt=>{var Mt;let Ke=((Mt=vt.packageJsonLocations)==null?void 0:Mt.length)??0,Vt=m.get(vt.resolvedPath)??qe;for(let on=Vt.length;on<Ke;on++)At(vt.packageJsonLocations[on],!1);if(Vt.length>Ke)for(let on=Ke;on<Vt.length;on++)V.get(Vt[on]).files--;Ke?m.set(vt.resolvedPath,vt.packageJsonLocations):m.delete(vt.resolvedPath)}),m.forEach((vt,Mt)=>{let Ke=Fe?.getSourceFileByPath(Mt);(!Ke||Ke.resolvedPath!==Mt)&&(vt.forEach(Vt=>V.get(Vt).files--),m.delete(Mt))})),te.forEach(Ie),V.forEach(Ce),H.forEach(Ne),h=!1,G.isReadonly=!0,K.isReadonly=!0,me.isReadonly=!0,G.getPackageJsonInfoCache().isReadonly=!0,ye.clear()}function Ne(Fe,St){Fe.dirPathToWatcher.size===0&&H.delete(St)}function Ie(Fe,St){Fe.refCount===0&&(te.delete(St),Fe.watcher.close())}function Ce(Fe,St){var vt;Fe.files===0&&Fe.resolutions===0&&!((vt=Fe.symlinks)!=null&&vt.size)&&(V.delete(St),Fe.watcher.close())}function Ve({entries:Fe,containingFile:St,containingSourceFile:vt,redirectedReference:Mt,options:Ke,perFileCache:Vt,reusedNames:on,loader:Pe,getResolutionWithResolvedFileName:kt,deferWatchingNonRelativeResolution:pe,shouldRetryResolution:j,logChanges:Re}){let q=e.toPath(St),yt=Vt.get(q)||Vt.set(q,AI()).get(q),jt=[],we=Re&&tt(q),ut=e.getCurrentProgram(),Qt=ut&&ut.getResolvedProjectReferenceToRedirect(St),en=Qt?!Mt||Mt.sourceFile.path!==Qt.sourceFile.path:!!Mt,Pr=AI();for(let it of Fe){let Tt=Pe.nameAndMode.getName(it),Ut=Pe.nameAndMode.getMode(it,vt,Mt?.commandLine.options||Ke),Ot=yt.get(Tt,Ut);if(!Pr.has(Tt,Ut)&&(E||en||!Ot||Ot.isInvalidated||we&&!Jl(Tt)&&j(Ot))){let vr=Ot;Ot=Pe.resolve(Tt,Ut),e.onDiscoveredSymlink&&vUe(Ot)&&e.onDiscoveredSymlink(),yt.set(Tt,Ut,Ot),Ot!==vr&&($t(Tt,Ot,q,kt,pe),vr&&ht(vr,q,kt)),Re&&i&&!$r(vr,Ot)&&(i.push(q),Re=!1)}else{let vr=w5(e);if(G0(Ke,vr)&&!Pr.has(Tt,Ut)){let ar=kt(Ot);us(vr,Vt===B?ar?.resolvedFileName?ar.packageId?p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:ar?.resolvedFileName?ar.packageId?p.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:p.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:p.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,Tt,St,ar?.resolvedFileName,ar?.packageId&&Eb(ar.packageId))}}w.assert(Ot!==void 0&&!Ot.isInvalidated),Pr.set(Tt,Ut,!0),jt.push(Ot)}return on?.forEach(it=>Pr.set(Pe.nameAndMode.getName(it),Pe.nameAndMode.getMode(it,vt,Mt?.commandLine.options||Ke),!0)),yt.size()!==Pr.size()&&yt.forEach((it,Tt,Ut)=>{Pr.has(Tt,Ut)||(ht(it,q,kt),yt.delete(Tt,Ut))}),jt;function $r(it,Tt){if(it===Tt)return!0;if(!it||!Tt)return!1;let Ut=kt(it),Ot=kt(Tt);return Ut===Ot?!0:!Ut||!Ot?!1:Ut.resolvedFileName===Ot.resolvedFileName}}function bt(Fe,St,vt,Mt,Ke,Vt){return Ve({entries:Fe,containingFile:St,containingSourceFile:Ke,redirectedReference:vt,options:Mt,reusedNames:Vt,perFileCache:$,loader:g5(St,vt,Mt,w5(e),K),getResolutionWithResolvedFileName:gF,shouldRetryResolution:on=>on.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function zt(Fe,St,vt,Mt,Ke,Vt){return Ve({entries:Fe,containingFile:St,containingSourceFile:Ke,redirectedReference:vt,options:Mt,reusedNames:Vt,perFileCache:B,loader:Ioe(St,vt,Mt,e,G),getResolutionWithResolvedFileName:i2,shouldRetryResolution:on=>!on.resolvedModule||!TA(on.resolvedModule.extension),logChanges:n,deferWatchingNonRelativeResolution:!0})}function ur(Fe,St,vt,Mt){let Ke=w5(e),Vt=U?.get(Mt);if(!Vt||Vt.isInvalidated){let on=Vt;Vt=V7(Fe,St,vt,Ke,me);let Pe=e.toPath(St);$t(Fe,Vt,Pe,i2,!1),U.set(Mt,Vt),on&&ht(on,Pe,i2)}else if(G0(vt,Ke)){let on=i2(Vt);us(Ke,on?.resolvedFileName?on.packageId?p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,Fe,St,on?.resolvedFileName,on?.packageId&&Eb(on.packageId))}return Vt}function Or(Fe,St){var vt,Mt;let Ke=e.toPath(St),Vt=B.get(Ke),on=Vt?.get(Fe,void 0);if(on&&!on.isInvalidated)return on;let Pe=(vt=e.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:vt.call(e,G),kt=w5(e),pe=Fk(Fe,St,e.getCompilationSettings(),kt,G);return(Mt=e.afterResolveSingleModuleNameWithoutWatching)==null||Mt.call(e,G,Fe,St,pe,Pe),pe}function _t(Fe){return Jo(Fe,"/node_modules/@types")}function $t(Fe,St,vt,Mt,Ke){if((St.files??(St.files=new Set)).add(vt),St.files.size!==1)return;!Ke||Jl(Fe)?hi(St):c.add(St);let Vt=Mt(St);if(Vt&&Vt.resolvedFileName){let on=e.toPath(Vt.resolvedFileName),Pe=g.get(on);Pe||g.set(on,Pe=new Set),Pe.add(St)}}function Hr(Fe,St){let vt=e.toPath(Fe),Mt=xV(Fe,vt,ne,ie,oe,de,O,e.preferNonRecursiveWatch);if(Mt){let{dir:Ke,dirPath:Vt,nonRecursive:on,packageDir:Pe,packageDirPath:kt}=Mt;Vt===ie?(w.assert(on),w.assert(!Pe),St=!0):hn(Ke,Vt,Pe,kt,on)}return St}function hi(Fe){var St;w.assert(!!((St=Fe.files)!=null&&St.size));let{failedLookupLocations:vt,affectingLocations:Mt,alternateResult:Ke}=Fe;if(!vt?.length&&!Mt?.length&&!Ke)return;(vt?.length||Ke)&&_.add(Fe);let Vt=!1;if(vt)for(let on of vt)Vt=Hr(on,Vt);Ke&&(Vt=Hr(Ke,Vt)),Vt&&hn(ne,ie,void 0,void 0,!0),_s(Fe,!vt?.length&&!Ke)}function _s(Fe,St){var vt;w.assert(!!((vt=Fe.files)!=null&&vt.size));let{affectingLocations:Mt}=Fe;if(Mt?.length){St&&u.add(Fe);for(let Ke of Mt)At(Ke,!0)}}function At(Fe,St){let vt=V.get(Fe);if(vt){St?vt.resolutions++:vt.files++;return}let Mt=Fe,Ke=!1,Vt;e.realpath&&(Mt=e.realpath(Fe),Fe!==Mt&&(Ke=!0,Vt=V.get(Mt)));let on=St?1:0,Pe=St?0:1;if(!Ke||!Vt){let kt={watcher:koe(e.toPath(Mt))?e.watchAffectingFileLocation(Mt,(pe,j)=>{F?.addOrDeleteFile(pe,e.toPath(Mt),j),zn(Mt,G.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):JI,resolutions:Ke?0:on,files:Ke?0:Pe,symlinks:void 0};V.set(Mt,kt),Ke&&(Vt=kt)}if(Ke){w.assert(!!Vt);let kt={watcher:{close:()=>{var pe;let j=V.get(Mt);(pe=j?.symlinks)!=null&&pe.delete(Fe)&&!j.symlinks.size&&!j.resolutions&&!j.files&&(V.delete(Mt),j.watcher.close())}},resolutions:on,files:Pe,symlinks:void 0};V.set(Fe,kt),(Vt.symlinks??(Vt.symlinks=new Set)).add(Fe)}}function zn(Fe,St){var vt;let Mt=V.get(Fe);Mt?.resolutions&&(T??(T=new Set)).add(Fe),Mt?.files&&(S??(S=new Set)).add(Fe),(vt=Mt?.symlinks)==null||vt.forEach(Ke=>zn(Ke,St)),St?.delete(e.toPath(Fe))}function ns(){c.forEach(hi),c.clear()}function Rn(Fe,St,vt,Mt,Ke){w.assert(!Ke);let Vt=ye.get(Mt),on=H.get(Mt);if(Vt===void 0){let pe=e.realpath(vt);Vt=pe!==vt&&e.toPath(pe)!==Mt,ye.set(Mt,Vt),on?on.isSymlink!==Vt&&(on.dirPathToWatcher.forEach(j=>{sr(on.isSymlink?Mt:St),j.watcher=kt()}),on.isSymlink=Vt):H.set(Mt,on={dirPathToWatcher:new Map,isSymlink:Vt})}else w.assertIsDefined(on),w.assert(Vt===on.isSymlink);let Pe=on.dirPathToWatcher.get(St);Pe?Pe.refCount++:(on.dirPathToWatcher.set(St,{watcher:kt(),refCount:1}),Vt&&ve.set(St,(ve.get(St)??0)+1));function kt(){return Vt?ui(vt,Mt,Ke):ui(Fe,St,Ke)}}function hn(Fe,St,vt,Mt,Ke){!Mt||!e.realpath?ui(Fe,St,Ke):Rn(Fe,St,vt,Mt,Ke)}function ui(Fe,St,vt){let Mt=te.get(St);return Mt?(w.assert(!!vt==!!Mt.nonRecursive),Mt.refCount++):te.set(St,Mt={watcher:Zr(Fe,St,vt),refCount:1,nonRecursive:vt}),Mt}function Ue(Fe,St){let vt=e.toPath(Fe),Mt=xV(Fe,vt,ne,ie,oe,de,O,e.preferNonRecursiveWatch);if(Mt){let{dirPath:Ke,packageDirPath:Vt}=Mt;if(Ke===ie)St=!0;else if(Vt&&e.realpath){let on=H.get(Vt),Pe=on.dirPathToWatcher.get(Ke);if(Pe.refCount--,Pe.refCount===0&&(sr(on.isSymlink?Vt:Ke),on.dirPathToWatcher.delete(Ke),on.isSymlink)){let kt=ve.get(Ke)-1;kt===0?ve.delete(Ke):ve.set(Ke,kt)}}else sr(Ke)}return St}function ht(Fe,St,vt){if(w.checkDefined(Fe.files).delete(St),Fe.files.size)return;Fe.files=void 0;let Mt=vt(Fe);if(Mt&&Mt.resolvedFileName){let Pe=e.toPath(Mt.resolvedFileName),kt=g.get(Pe);kt?.delete(Fe)&&!kt.size&&g.delete(Pe)}let{failedLookupLocations:Ke,affectingLocations:Vt,alternateResult:on}=Fe;if(_.delete(Fe)){let Pe=!1;if(Ke)for(let kt of Ke)Pe=Ue(kt,Pe);on&&(Pe=Ue(on,Pe)),Pe&&sr(ie)}else Vt?.length&&u.delete(Fe);if(Vt)for(let Pe of Vt){let kt=V.get(Pe);kt.resolutions--}}function sr(Fe){let St=te.get(Fe);St.refCount--}function Zr(Fe,St,vt){return e.watchDirectoryOfFailedLookupLocation(Fe,Mt=>{let Ke=e.toPath(Mt);F&&F.addOrDeleteFileOrDirectory(Mt,Ke),xs(Ke,St===Ke)},vt?0:1)}function Zn(Fe,St,vt){let Mt=Fe.get(St);Mt&&(Mt.forEach(Ke=>ht(Ke,St,vt)),Fe.delete(St))}function Xn(Fe){if(!nc(Fe,".json"))return;let St=e.getCurrentProgram();if(!St)return;let vt=St.getResolvedProjectReferenceByPath(Fe);vt&&vt.commandLine.fileNames.forEach(Mt=>Pi(e.toPath(Mt)))}function Pi(Fe){Zn(B,Fe,i2),Zn($,Fe,gF)}function Rs(Fe,St){if(!Fe)return!1;let vt=!1;return Fe.forEach(Mt=>{if(!(Mt.isInvalidated||!St(Mt))){Mt.isInvalidated=vt=!0;for(let Ke of w.checkDefined(Mt.files))(s??(s=new Set)).add(Ke),h=h||Jo(Ke,yE)}}),vt}function oa(Fe){Pi(Fe);let St=h;Rs(g.get(Fe),iS)&&h&&!St&&e.onChangedAutomaticTypeDirectiveNames()}function xr(Fe){w.assert(o===Fe||o===void 0),o=Fe}function xs(Fe,St){if(St)(D||(D=new Set)).add(Fe);else{let vt=C5(Fe);if(!vt||(Fe=vt,e.fileIsOpen(Fe)))return!1;let Mt=Yn(Fe);if(_t(Fe)||J8(Fe)||_t(Mt)||J8(Mt))(x||(x=new Set)).add(Fe),(I||(I=new Set)).add(Fe);else{if($ae(e.getCurrentProgram(),Fe)||nc(Fe,".map"))return!1;(x||(x=new Set)).add(Fe),(I||(I=new Set)).add(Fe);let Ke=TM(Fe,!0);Ke&&(I||(I=new Set)).add(Ke)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function Ye(){let Fe=G.getPackageJsonInfoCache().getInternalMap();Fe&&(x||I||D)&&Fe.forEach((St,vt)=>lt(vt)?Fe.delete(vt):void 0)}function Nt(){var Fe;if(E)return S=void 0,Ye(),(x||I||D||T)&&Rs(U,ae),x=void 0,I=void 0,D=void 0,T=void 0,!0;let St=!1;return S&&((Fe=e.getCurrentProgram())==null||Fe.getSourceFiles().forEach(vt=>{pt(vt.packageJsonLocations,Mt=>S.has(Mt))&&((s??(s=new Set)).add(vt.path),St=!0)}),S=void 0),!x&&!I&&!D&&!T||(St=Rs(_,ae)||St,Ye(),x=void 0,I=void 0,D=void 0,St=Rs(u,Y)||St,T=void 0),St}function ae(Fe){var St;return Y(Fe)?!0:!x&&!I&&!D?!1:((St=Fe.failedLookupLocations)==null?void 0:St.some(vt=>lt(e.toPath(vt))))||!!Fe.alternateResult&<(e.toPath(Fe.alternateResult))}function lt(Fe){return x?.has(Fe)||vm(I?.keys()||[],St=>Yi(Fe,St)?!0:void 0)||vm(D?.keys()||[],St=>Fe.length>St.length&&Yi(Fe,St)&&(fB(St)||Fe[St.length]===Fo)?!0:void 0)}function Y(Fe){var St;return!!T&&((St=Fe.affectingLocations)==null?void 0:St.some(vt=>T.has(vt)))}function Ae(){Q_(Ge,kd)}function Xe(Fe){return Dt(Fe)?e.watchTypeRootsDirectory(Fe,St=>{let vt=e.toPath(St);F&&F.addOrDeleteFileOrDirectory(St,vt),h=!0,e.onChangedAutomaticTypeDirectiveNames();let Mt=Coe(Fe,e.toPath(Fe),ie,oe,de,O,e.preferNonRecursiveWatch,Ke=>te.has(Ke)||ve.has(Ke));Mt&&xs(vt,Mt===vt)},1):JI}function st(){let Fe=e.getCompilationSettings();if(Fe.types){Ae();return}let St=rE(Fe,{getCurrentDirectory:O});St?hA(Ge,new Set(St),{createNewValue:Xe,onDeleteValue:kd}):Ae()}function Dt(Fe){return e.getCompilationSettings().typeRoots?!0:Toe(e.toPath(Fe))}}function vUe(e){var t,n;return!!((t=e.resolvedModule)!=null&&t.originalPath||(n=e.resolvedTypeReferenceDirective)!=null&&n.originalPath)}var KTe=Al?{getCurrentDirectory:()=>Al.getCurrentDirectory(),getNewLine:()=>Al.newLine,getCanonicalFileName:fu(Al.useCaseSensitiveFileNames)}:void 0;function rC(e,t){let n=e===Al&&KTe?KTe:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:fu(e.useCaseSensitiveFileNames)};if(!t)return s=>e.write(sV(s,n));let i=new Array(1);return s=>{i[0]=s,e.write(eoe(i,n)+n.getNewLine()),i[0]=void 0}}function XTe(e,t,n){return e.clearScreen&&!n.preserveWatchOutput&&!n.extendedDiagnostics&&!n.diagnostics&&Ts(YTe,t.code)?(e.clearScreen(),!0):!1}var YTe=[p.Starting_compilation_in_watch_mode.code,p.File_change_detected_Starting_incremental_compilation.code];function bUe(e,t){return Ts(YTe,e.code)?t+t:t}function qM(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace("\u202F"," "):new Date().toLocaleTimeString()}function wV(e,t){return t?(n,i,s)=>{XTe(e,n,s);let o=`[${$S(qM(e),"\x1B[90m")}] `;o+=`${Gm(n.messageText,e.newLine)}${i+i}`,e.write(o)}:(n,i,s)=>{let o="";XTe(e,n,s)||(o+=i),o+=`${qM(e)} - `,o+=`${Gm(n.messageText,e.newLine)}${bUe(n,i)}`,e.write(o)}}function Doe(e,t,n,i,s,o){let c=s;c.onUnRecoverableConfigFileDiagnostic=u=>tke(s,o,u);let _=mM(e,t,c,n,i);return c.onUnRecoverableConfigFileDiagnostic=void 0,_}function I5(e){return Hy(e,t=>t.category===1)}function D5(e){return An(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=On(e,s=>s.file!==void 0&&s.file.fileName===n);if(i!==void 0){let{line:s}=Qs(i.file,i.start);return{fileName:n,line:s+1}}})}function IV(e){return e===1?p.Found_1_error_Watching_for_file_changes:p.Found_0_errors_Watching_for_file_changes}function ZTe(e,t){let n=$S(":"+e.line,"\x1B[90m");return xP(e.fileName)&&xP(t)?Zf(t,e.fileName,!1)+n:e.fileName+n}function DV(e,t,n,i){if(e===0)return"";let s=t.filter(m=>m!==void 0),o=s.map(m=>`${m.fileName}:${m.line}`).filter((m,h,S)=>S.indexOf(m)===h),c=s[0]&&ZTe(s[0],i.getCurrentDirectory()),_;e===1?_=t[0]!==void 0?[p.Found_1_error_in_0,c]:[p.Found_1_error]:_=o.length===0?[p.Found_0_errors,e]:o.length===1?[p.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,c]:[p.Found_0_errors_in_1_files,e,o.length];let u=cc(..._),g=o.length>1?SUe(s,i):"";return`${n}${Gm(u.messageText,n)}${n}${n}${g}`}function SUe(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,Hy(e,S=>S.fileName===h.fileName)]),o=MW(s,0,h=>h[1]),c=p.Errors_Files.message,_=c.split(" ")[0].length,u=Math.max(_,i(o)),g=Math.max(i(o)-_,0),m="";return m+=" ".repeat(g)+c+`
`,s.forEach(h=>{let[S,T]=h,x=Math.log(T)*Math.LOG10E+1|0,I=x<u?" ".repeat(u-x):"",D=ZTe(S,t.getCurrentDirectory());m+=`${I}${T} ${D}
`}),m}function PV(e){return!!e.state}function TUe(e,t){let n=e.getCompilerOptions();n.explainFiles?AV(PV(e)?e.getProgram():e,t):(n.listFiles||n.listFilesOnly)&&or(e.getSourceFiles(),i=>{t(i.fileName)})}function AV(e,t){var n,i;let s=e.getFileIncludeReasons(),o=c=>CP(c,e.getCurrentDirectory(),e.getCanonicalFileName);for(let c of e.getSourceFiles())t(`${zI(c,o)}`),(n=s.get(c.path))==null||n.forEach(_=>t(` ${RV(e,_,o).messageText}`)),(i=EV(c,e.getCompilerOptionsForFile(c),o))==null||i.forEach(_=>t(` ${_.messageText}`))}function EV(e,t,n){var i;let s;if(e.path!==e.resolvedPath&&(s??(s=[])).push(Ps(void 0,p.File_is_output_of_project_reference_source_0,zI(e.originalFileName,n))),e.redirectInfo&&(s??(s=[])).push(Ps(void 0,p.File_redirects_to_file_0,zI(e.redirectInfo.redirectTarget,n))),mf(e))switch(Bk(e,t)){case 99:e.packageJsonScope&&(s??(s=[])).push(Ps(void 0,p.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,zI(xa(e.packageJsonLocations),n)));break;case 1:e.packageJsonScope?(s??(s=[])).push(Ps(void 0,e.packageJsonScope.contents.packageJsonContent.type?p.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:p.File_is_CommonJS_module_because_0_does_not_have_field_type,zI(xa(e.packageJsonLocations),n))):(i=e.packageJsonLocations)!=null&&i.length&&(s??(s=[])).push(Ps(void 0,p.File_is_CommonJS_module_because_package_json_was_not_found));break}return s}function NV(e,t){var n;let i=e.getCompilerOptions().configFile;if(!((n=i?.configFileSpecs)!=null&&n.validatedFilesSpec))return;let s=e.getCanonicalFileName(t),o=Yn(as(i.fileName,e.getCurrentDirectory())),c=Sc(i.configFileSpecs.validatedFilesSpec,_=>e.getCanonicalFileName(as(_,o))===s);return c!==-1?i.configFileSpecs.validatedFilesSpecBeforeSubstitution[c]:void 0}function MV(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=nc(t,".json"),c=Yn(as(s.fileName,e.getCurrentDirectory())),_=e.useCaseSensitiveFileNames(),u=Sc((i=s?.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,g=>{if(o&&!Jo(g,".json"))return!1;let m=kJ(g,c,"files");return!!m&&iv(`(${m})$`,_).test(t)});return u!==-1?s.configFileSpecs.validatedIncludeSpecsBeforeSubstitution[u]:void 0}function RV(e,t,n){var i,s;let o=e.getCompilerOptions();if(i1(t)){let c=vE(e,t),_=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?p.Imported_via_0_from_file_1_with_packageId_2:p.Imported_via_0_from_file_1:c.text===x0?u=c.packageId?p.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:p.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:u=c.packageId?p.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:p.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:w.assert(!c.packageId),u=p.Referenced_via_0_from_file_1;break;case 5:u=c.packageId?p.Type_library_referenced_via_0_from_file_1_with_packageId_2:p.Type_library_referenced_via_0_from_file_1;break;case 7:w.assert(!c.packageId),u=p.Library_referenced_via_0_from_file_1;break;default:w.assertNever(t)}return Ps(void 0,u,_,zI(c.file,n),c.packageId&&Eb(c.packageId))}switch(t.kind){case 0:if(!((i=o.configFile)!=null&&i.configFileSpecs))return Ps(void 0,p.Root_file_specified_for_compilation);let c=as(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(NV(e,c))return Ps(void 0,p.Part_of_files_list_in_tsconfig_json);let u=MV(e,c);return ys(u)?Ps(void 0,p.Matched_by_include_pattern_0_in_1,u,zI(o.configFile,n)):Ps(void 0,u?p.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:p.Root_file_specified_for_compilation);case 1:case 2:let g=t.kind===2,m=w.checkDefined((s=e.getResolvedProjectReferences())==null?void 0:s[t.index]);return Ps(void 0,o.outFile?g?p.Output_from_referenced_project_0_included_because_1_specified:p.Source_from_referenced_project_0_included_because_1_specified:g?p.Output_from_referenced_project_0_included_because_module_is_specified_as_none:p.Source_from_referenced_project_0_included_because_module_is_specified_as_none,zI(m.sourceFile.fileName,n),o.outFile?"--outFile":"--out");case 8:{let h=o.types?t.packageId?[p.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,Eb(t.packageId)]:[p.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[p.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,Eb(t.packageId)]:[p.Entry_point_for_implicit_type_library_0,t.typeReference];return Ps(void 0,...h)}case 6:{if(t.index!==void 0)return Ps(void 0,p.Library_0_specified_in_compilerOptions,o.lib[t.index]);let h=kO(wa(o)),S=h?[p.Default_library_for_target_0,h]:[p.Default_library];return Ps(void 0,...S)}default:w.assertNever(t)}}function zI(e,t){let n=ys(e)?e:e.fileName;return t?t(n):n}function P5(e,t,n,i,s,o,c,_){let u=e.getCompilerOptions(),g=e.getConfigFileParsingDiagnostics().slice(),m=g.length;jn(g,e.getSyntacticDiagnostics(void 0,o)),g.length===m&&(jn(g,e.getOptionsDiagnostics(o)),u.listFilesOnly||(jn(g,e.getGlobalDiagnostics(o)),g.length===m&&jn(g,e.getSemanticDiagnostics(void 0,o)),u.noEmit&&K_(u)&&g.length===m&&jn(g,e.getDeclarationDiagnostics(void 0,o))));let h=u.listFilesOnly?{emitSkipped:!0,diagnostics:qe}:e.emit(void 0,s,o,c,_);jn(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}`)}),TUe(e,n)}return i&&i(I5(S),D5(S)),{emitResult:h,diagnostics:S}}function FV(e,t,n,i,s,o,c,_){let{emitResult:u,diagnostics:g}=P5(e,t,n,i,s,o,c,_);return u.emitSkipped&&g.length>0?1:g.length>0?2:0}var JI={close:to},SE=()=>JI;function OV(e=Al,t){return{onWatchStatusChange:t||wV(e),watchFile:Vs(e,e.watchFile)||SE,watchDirectory:Vs(e,e.watchDirectory)||SE,setTimeout:Vs(e,e.setTimeout)||to,clearTimeout:Vs(e,e.clearTimeout)||to,preferNonRecursiveWatch:e.preferNonRecursiveWatch}}var Hl={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 LV(e,t){let n=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=n!==0?o=>e.trace(o):to,s=eV(e,n,i);return s.writeLog=i,s}function jV(e,t,n=e){let i=e.useCaseSensitiveFileNames(),s={getSourceFile:nV((o,c)=>c?e.readFile(o,c):s.readFile(o),void 0),getDefaultLibLocation:Vs(e,e.getDefaultLibLocation),getDefaultLibFileName:o=>e.getDefaultLibFileName(o),writeFile:iV((o,c,_)=>e.writeFile(o,c,_),o=>e.createDirectory(o),o=>e.directoryExists(o)),getCurrentDirectory:Yu(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:fu(i),getNewLine:()=>nv(t()),fileExists:o=>e.fileExists(o),readFile:o=>e.readFile(o),trace:Vs(e,e.trace),directoryExists:Vs(n,n.directoryExists),getDirectories:Vs(n,n.getDirectories),realpath:Vs(e,e.realpath),getEnvironmentVariable:Vs(e,e.getEnvironmentVariable)||(()=>""),createHash:Vs(e,e.createHash),readDirectory:Vs(e,e.readDirectory),storeSignatureInfo:e.storeSignatureInfo,jsDocParsingMode:e.jsDocParsingMode};return s}function A5(e,t){if(t.match(Zse)){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||!Lu(o)){i=s;continue}break}let c=t.substring(i,n);if(c.match(IU)){t=t.substring(0,i);break}else if(!c.match(DU))break;n=i}}return(e.createHash||kP)(t)}function E5(e){let t=e.getSourceFile;e.getSourceFile=(...n)=>{let i=t.call(e,...n);return i&&(i.version=A5(e,i.text)),i}}function WV(e,t){let n=Yu(()=>Yn(na(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:Yu(()=>e.getCurrentDirectory()),getDefaultLibLocation:n,getDefaultLibFileName:i=>Bn(n(),u6(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,_)=>e.readDirectory(i,s,o,c,_),realpath:Vs(e,e.realpath),getEnvironmentVariable:Vs(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:Vs(e,e.createHash),createProgram:t||TV,storeSignatureInfo:e.storeSignatureInfo,now:Vs(e,e.now)}}function eke(e=Al,t,n,i){let s=c=>e.write(c+e.newLine),o=WV(e,t);return EW(o,OV(e,i)),o.afterProgramCreate=c=>{let _=c.getCompilerOptions(),u=nv(_);P5(c,n,s,g=>o.onWatchStatusChange(cc(IV(g),g),u,_,g))},o}function tke(e,t,n){t(n),e.exit(1)}function BV({configFileName:e,optionsToExtend:t,watchOptionsToExtend:n,extraFileExtensions:i,system:s,createProgram:o,reportDiagnostic:c,reportWatchStatus:_}){let u=c||rC(s),g=eke(s,o,u,_);return g.onUnRecoverableConfigFileDiagnostic=m=>tke(s,u,m),g.configFileName=e,g.optionsToExtend=t,g.watchOptionsToExtend=n,g.extraFileExtensions=i,g}function zV({rootFiles:e,options:t,watchOptions:n,projectReferences:i,system:s,createProgram:o,reportDiagnostic:c,reportWatchStatus:_}){let u=eke(s,o,c||rC(s),_);return u.rootFiles=e,u.options=t,u.watchOptions=n,u.projectReferences=i,u}function Poe(e){let t=e.system||Al,n=e.host||(e.host=M5(e.options,t)),i=Aoe(e),s=FV(i,e.reportDiagnostic||rC(t),o=>n.trace&&n.trace(o),e.reportErrorSummary||e.options.pretty?(o,c)=>t.write(DV(o,c,t.newLine,n)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),s}function N5(e,t){let n=n1(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=KU(n,s)}if(!(!i||i.version!==Ui||!UM(i)))return voe(i,n,t)}function M5(e,t=Al){let n=p5(e,void 0,t);return n.createHash=Vs(t,t.createHash),n.storeSignatureInfo=t.storeSignatureInfo,E5(n),hE(n,i=>ko(i,n.getCurrentDirectory(),n.getCanonicalFileName)),n}function Aoe({rootNames:e,options:t,configFileParsingDiagnostics:n,projectReferences:i,host:s,createProgram:o}){s=s||M5(t),o=o||TV;let c=N5(t,s);return o(e,t,s,c,n,i)}function rke(e,t,n,i,s,o,c,_){return ks(e)?zV({rootFiles:e,options:t,watchOptions:_,projectReferences:c,system:n,createProgram:i,reportDiagnostic:s,reportWatchStatus:o}):BV({configFileName:e,optionsToExtend:t,watchOptionsToExtend:c,extraFileExtensions:_,system:n,createProgram:i,reportDiagnostic:s,reportWatchStatus:o})}function JV(e){let t,n,i,s,o=new Map([[void 0,void 0]]),c,_,u,g,m=e.extendedConfigCache,h=!1,S=new Map,T,x=!1,I=e.useCaseSensitiveFileNames(),D=e.getCurrentDirectory(),{configFileName:E,optionsToExtend:O={},watchOptionsToExtend:F,extraFileExtensions:B,createProgram:G}=e,{rootFiles:$,options:K,watchOptions:U,projectReferences:me}=e,te,V,ne=!1,ie=!1,oe=E===void 0?void 0:u5(e,D,I),de=oe||e,ye=S5(e,de),H=Or();E&&e.configFileParsingResult&&(xr(e.configFileParsingResult),H=Or()),Rn(p.Starting_compilation_in_watch_mode),E&&!e.configFileParsingResult&&(H=nv(O),w.assert(!$),oa(),H=Or()),w.assert(K),w.assert($);let{watchFile:ve,watchDirectory:Ge,writeLog:De}=LV(e,K),se=fu(I);De(`Current directory: ${D} CaseSensitiveFileNames: ${I}`);let xe;E&&(xe=ve(E,Zr,2e3,U,Hl.ConfigFile));let _e=jV(e,()=>K,de);E5(_e);let tt=_e.getSourceFile;_e.getSourceFile=(vt,...Mt)=>_s(vt,_t(vt),...Mt),_e.getSourceFileByPath=_s,_e.getNewLine=()=>H,_e.fileExists=hi,_e.onReleaseOldSourceFile=ns,_e.onReleaseParsedCommandLine=Nt,_e.toPath=_t,_e.getCompilationSettings=()=>K,_e.useSourceOfProjectReferenceRedirect=Vs(e,e.useSourceOfProjectReferenceRedirect),_e.preferNonRecursiveWatch=e.preferNonRecursiveWatch,_e.watchDirectoryOfFailedLookupLocation=(vt,Mt,Ke)=>Ge(vt,Mt,Ke,U,Hl.FailedLookupLocations),_e.watchAffectingFileLocation=(vt,Mt)=>ve(vt,Mt,2e3,U,Hl.AffectingFileLocation),_e.watchTypeRootsDirectory=(vt,Mt,Ke)=>Ge(vt,Mt,Ke,U,Hl.TypeRoots),_e.getCachedDirectoryStructureHost=()=>oe,_e.scheduleInvalidateResolutionsOfFailedLookupLocations=Ue,_e.onInvalidatedResolution=sr,_e.onChangedAutomaticTypeDirectiveNames=sr,_e.fileIsOpen=ey,_e.getCurrentProgram=Ve,_e.writeLog=De,_e.getParsedCommandLine=xs;let ct=CV(_e,E?Yn(as(E,D)):D,!1);_e.resolveModuleNameLiterals=Vs(e,e.resolveModuleNameLiterals),_e.resolveModuleNames=Vs(e,e.resolveModuleNames),!_e.resolveModuleNameLiterals&&!_e.resolveModuleNames&&(_e.resolveModuleNameLiterals=ct.resolveModuleNameLiterals.bind(ct)),_e.resolveTypeReferenceDirectiveReferences=Vs(e,e.resolveTypeReferenceDirectiveReferences),_e.resolveTypeReferenceDirectives=Vs(e,e.resolveTypeReferenceDirectives),!_e.resolveTypeReferenceDirectiveReferences&&!_e.resolveTypeReferenceDirectives&&(_e.resolveTypeReferenceDirectiveReferences=ct.resolveTypeReferenceDirectiveReferences.bind(ct)),_e.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):ct.resolveLibrary.bind(ct),_e.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?Vs(e,e.getModuleResolutionCache):()=>ct.getModuleResolutionCache();let Je=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?Vs(e,e.hasInvalidatedResolutions)||iS:ey,ee=e.resolveLibrary?Vs(e,e.hasInvalidatedLibResolutions)||iS:ey;return t=N5(K,_e),bt(),E?{getCurrentProgram:Ce,getProgram:Xn,close:Ne,getResolutionCache:Ie}:{getCurrentProgram:Ce,getProgram:Xn,updateRootFileNames:ur,close:Ne,getResolutionCache:Ie};function Ne(){ui(),ct.clear(),Q_(S,vt=>{vt&&vt.fileWatcher&&(vt.fileWatcher.close(),vt.fileWatcher=void 0)}),xe&&(xe.close(),xe=void 0),m?.clear(),m=void 0,g&&(Q_(g,Op),g=void 0),s&&(Q_(s,Op),s=void 0),i&&(Q_(i,kd),i=void 0),u&&(Q_(u,vt=>{var Mt;(Mt=vt.watcher)==null||Mt.close(),vt.watcher=void 0,vt.watchedDirectories&&Q_(vt.watchedDirectories,Op),vt.watchedDirectories=void 0}),u=void 0),t=void 0}function Ie(){return ct}function Ce(){return t}function Ve(){return t&&t.getProgramOrUndefined()}function bt(){De("Synchronizing program"),w.assert(K),w.assert($),ui();let vt=Ce();x&&(H=Or(),vt&&dF(vt.getCompilerOptions(),K)&&ct.onChangesAffectModuleResolution());let{hasInvalidatedResolutions:Mt,hasInvalidatedLibResolutions:Ke}=ct.createHasInvalidatedResolutions(Je,ee),{originalReadFile:Vt,originalFileExists:on,originalDirectoryExists:Pe,originalCreateDirectory:kt,originalWriteFile:pe,readFileWithCache:j}=hE(_e,_t);return _V(Ve(),$,K,Re=>zn(Re,j),Re=>_e.fileExists(Re),Mt,Ke,hn,xs,me)?ie&&(h&&Rn(p.File_change_detected_Starting_incremental_compilation),t=G(void 0,void 0,_e,t,V,me),ie=!1):(h&&Rn(p.File_change_detected_Starting_incremental_compilation),zt(Mt,Ke)),h=!1,e.afterProgramCreate&&vt!==t&&e.afterProgramCreate(t),_e.readFile=Vt,_e.fileExists=on,_e.directoryExists=Pe,_e.createDirectory=kt,_e.writeFile=pe,o?.forEach((Re,q)=>{if(!q)st(),E&&Fe(_t(E),K,U,Hl.ExtendedConfigFile);else{let yt=u?.get(q);yt&&St(Re,q,yt)}}),o=void 0,t}function zt(vt,Mt){De("CreatingProgramWith::"),De(` roots: ${JSON.stringify($)}`),De(` options: ${JSON.stringify(K)}`),me&&De(` projectReferences: ${JSON.stringify(me)}`);let Ke=x||!Ve();x=!1,ie=!1,ct.startCachingPerDirectoryResolution(),_e.hasInvalidatedResolutions=vt,_e.hasInvalidatedLibResolutions=Mt,_e.hasChangedAutomaticTypeDirectiveNames=hn;let Vt=Ve();if(t=G($,K,_e,t,V,me),ct.finishCachingPerDirectoryResolution(t.getProgram(),Vt),ZU(t.getProgram(),i||(i=new Map),Ae),Ke&&ct.updateTypeRootsWatch(),T){for(let on of T)i.has(on)||S.delete(on);T=void 0}}function ur(vt){w.assert(!E,"Cannot update root file names with config file watch mode"),$=vt,sr()}function Or(){return nv(K||O)}function _t(vt){return ko(vt,D,se)}function $t(vt){return typeof vt=="boolean"}function Hr(vt){return typeof vt.version=="boolean"}function hi(vt){let Mt=_t(vt);return $t(S.get(Mt))?!1:de.fileExists(vt)}function _s(vt,Mt,Ke,Vt,on){let Pe=S.get(Mt);if($t(Pe))return;let kt=typeof Ke=="object"?Ke.impliedNodeFormat:void 0;if(Pe===void 0||on||Hr(Pe)||Pe.sourceFile.impliedNodeFormat!==kt){let pe=tt(vt,Ke,Vt);if(Pe)pe?(Pe.sourceFile=pe,Pe.version=pe.version,Pe.fileWatcher||(Pe.fileWatcher=ae(Mt,vt,lt,250,U,Hl.SourceFile))):(Pe.fileWatcher&&Pe.fileWatcher.close(),S.set(Mt,!1));else if(pe){let j=ae(Mt,vt,lt,250,U,Hl.SourceFile);S.set(Mt,{sourceFile:pe,version:pe.version,fileWatcher:j})}else S.set(Mt,!1);return pe}return Pe.sourceFile}function At(vt){let Mt=S.get(vt);Mt!==void 0&&($t(Mt)?S.set(vt,{version:!1}):Mt.version=!1)}function zn(vt,Mt){let Ke=S.get(vt);if(!Ke)return;if(Ke.version)return Ke.version;let Vt=Mt(vt);return Vt!==void 0?A5(_e,Vt):void 0}function ns(vt,Mt,Ke){let Vt=S.get(vt.resolvedPath);Vt!==void 0&&($t(Vt)?(T||(T=[])).push(vt.path):Vt.sourceFile===vt&&(Vt.fileWatcher&&Vt.fileWatcher.close(),S.delete(vt.resolvedPath),Ke||ct.removeResolutionsOfFile(vt.path)))}function Rn(vt){e.onWatchStatusChange&&e.onWatchStatusChange(cc(vt),H,K||O)}function hn(){return ct.hasChangedAutomaticTypeDirectiveNames()}function ui(){return _?(e.clearTimeout(_),_=void 0,!0):!1}function Ue(){if(!e.setTimeout||!e.clearTimeout)return ct.invalidateResolutionsOfFailedLookupLocations();let vt=ui();De(`Scheduling invalidateFailedLookup${vt?", Cancelled earlier one":""}`),_=e.setTimeout(ht,250,"timerToInvalidateFailedLookupResolutions")}function ht(){_=void 0,ct.invalidateResolutionsOfFailedLookupLocations()&&sr()}function sr(){!e.setTimeout||!e.clearTimeout||(c&&e.clearTimeout(c),De("Scheduling update"),c=e.setTimeout(Zn,250,"timerToUpdateProgram"))}function Zr(){w.assert(!!E),n=2,sr()}function Zn(){c=void 0,h=!0,Xn()}function Xn(){switch(n){case 1:Pi();break;case 2:Rs();break;default:bt();break}return Ce()}function Pi(){De("Reloading new file names and options"),w.assert(K),w.assert(E),n=0,$=eE(K.configFile.configFileSpecs,as(Yn(E),D),K,ye,B),L7($,as(E,D),K.configFile.configFileSpecs,V,ne)&&(ie=!0),bt()}function Rs(){w.assert(E),De(`Reloading config file: ${E}`),n=0,oe&&oe.clearCache(),oa(),x=!0,(o??(o=new Map)).set(void 0,void 0),bt()}function oa(){w.assert(E),xr(mM(E,O,ye,m||(m=new Map),F,B))}function xr(vt){$=vt.fileNames,K=vt.options,U=vt.watchOptions,me=vt.projectReferences,te=vt.wildcardDirectories,V=HS(vt).slice(),ne=bM(vt.raw),ie=!0}function xs(vt){let Mt=_t(vt),Ke=u?.get(Mt);if(Ke){if(!Ke.updateLevel)return Ke.parsedCommandLine;if(Ke.parsedCommandLine&&Ke.updateLevel===1&&!e.getParsedCommandLine){De("Reloading new file names and options"),w.assert(K);let on=eE(Ke.parsedCommandLine.options.configFile.configFileSpecs,as(Yn(vt),D),K,ye);return Ke.parsedCommandLine={...Ke.parsedCommandLine,fileNames:on},Ke.updateLevel=void 0,Ke.parsedCommandLine}}De(`Loading config file: ${vt}`);let Vt=e.getParsedCommandLine?e.getParsedCommandLine(vt):Ye(vt);return Ke?(Ke.parsedCommandLine=Vt,Ke.updateLevel=void 0):(u||(u=new Map)).set(Mt,Ke={parsedCommandLine:Vt}),(o??(o=new Map)).set(Mt,vt),Vt}function Ye(vt){let Mt=ye.onUnRecoverableConfigFileDiagnostic;ye.onUnRecoverableConfigFileDiagnostic=to;let Ke=mM(vt,void 0,ye,m||(m=new Map),F);return ye.onUnRecoverableConfigFileDiagnostic=Mt,Ke}function Nt(vt){var Mt;let Ke=_t(vt),Vt=u?.get(Ke);Vt&&(u.delete(Ke),Vt.watchedDirectories&&Q_(Vt.watchedDirectories,Op),(Mt=Vt.watcher)==null||Mt.close(),YU(Ke,g))}function ae(vt,Mt,Ke,Vt,on,Pe){return ve(Mt,(kt,pe)=>Ke(kt,pe,vt),Vt,on,Pe)}function lt(vt,Mt,Ke){Y(vt,Ke,Mt),Mt===2&&S.has(Ke)&&ct.invalidateResolutionOfFile(Ke),At(Ke),sr()}function Y(vt,Mt,Ke){oe&&oe.addOrDeleteFile(vt,Mt,Ke)}function Ae(vt,Mt){return u?.has(vt)?JI:ae(vt,Mt,Xe,500,U,Hl.MissingFile)}function Xe(vt,Mt,Ke){Y(vt,Ke,Mt),Mt===0&&i.has(Ke)&&(i.get(Ke).close(),i.delete(Ke),At(Ke),sr())}function st(){LM(s||(s=new Map),te,Dt)}function Dt(vt,Mt){return Ge(vt,Ke=>{w.assert(E),w.assert(K);let Vt=_t(Ke);oe&&oe.addOrDeleteFileOrDirectory(Ke,Vt),At(Vt),!jM({watchedDirPath:_t(vt),fileOrDirectory:Ke,fileOrDirectoryPath:Vt,configFileName:E,extraFileExtensions:B,options:K,program:Ce()||$,currentDirectory:D,useCaseSensitiveFileNames:I,writeLog:De,toPath:_t})&&n!==2&&(n=1,sr())},Mt,U,Hl.WildcardDirectory)}function Fe(vt,Mt,Ke,Vt){_5(vt,Mt,g||(g=new Map),(on,Pe)=>ve(on,(kt,pe)=>{var j;Y(on,Pe,pe),m&&f5(m,Pe,_t);let Re=(j=g.get(Pe))==null?void 0:j.projects;Re?.size&&Re.forEach(q=>{if(E&&_t(E)===q)n=2;else{let yt=u?.get(q);yt&&(yt.updateLevel=2),ct.removeResolutionsFromProjectReferenceRedirects(q)}sr()})},2e3,Ke,Vt),_t)}function St(vt,Mt,Ke){var Vt,on,Pe,kt;Ke.watcher||(Ke.watcher=ve(vt,(pe,j)=>{Y(vt,Mt,j);let Re=u?.get(Mt);Re&&(Re.updateLevel=2),ct.removeResolutionsFromProjectReferenceRedirects(Mt),sr()},2e3,((Vt=Ke.parsedCommandLine)==null?void 0:Vt.watchOptions)||U,Hl.ConfigFileOfReferencedProject)),LM(Ke.watchedDirectories||(Ke.watchedDirectories=new Map),(on=Ke.parsedCommandLine)==null?void 0:on.wildcardDirectories,(pe,j)=>{var Re;return Ge(pe,q=>{let yt=_t(q);oe&&oe.addOrDeleteFileOrDirectory(q,yt),At(yt);let jt=u?.get(Mt);jt?.parsedCommandLine&&(jM({watchedDirPath:_t(pe),fileOrDirectory:q,fileOrDirectoryPath:yt,configFileName:vt,options:jt.parsedCommandLine.options,program:jt.parsedCommandLine.fileNames,currentDirectory:D,useCaseSensitiveFileNames:I,writeLog:De,toPath:_t})||jt.updateLevel!==2&&(jt.updateLevel=1,sr()))},j,((Re=Ke.parsedCommandLine)==null?void 0:Re.watchOptions)||U,Hl.WildcardDirectoryOfReferencedProject)}),Fe(Mt,(Pe=Ke.parsedCommandLine)==null?void 0:Pe.options,((kt=Ke.parsedCommandLine)==null?void 0:kt.watchOptions)||U,Hl.ExtendedConfigOfReferencedProject)}}var Eoe=(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))(Eoe||{});function GV(e){return nc(e,".json")?e:Bn(e,"tsconfig.json")}var kUe=new Date(-864e13);function xUe(e,t,n){let i=e.get(t),s;return i||(s=n(),e.set(t,s)),i||s}function Noe(e,t){return xUe(e,t,()=>new Map)}function UV(e){return e.now?e.now():new Date}function nC(e){return!!e&&!!e.buildOrder}function $M(e){return nC(e)?e.buildOrder:e}function R5(e,t){return n=>{let i=t?`[${$S(qM(e),"\x1B[90m")}] `:`${qM(e)} - `;i+=`${Gm(n.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function nke(e,t,n,i){let s=WV(e,t);return s.getModifiedTime=e.getModifiedTime?o=>e.getModifiedTime(o):sS,s.setModifiedTime=e.setModifiedTime?(o,c)=>e.setModifiedTime(o,c):to,s.deleteFile=e.deleteFile?o=>e.deleteFile(o):to,s.reportDiagnostic=n||rC(e),s.reportSolutionBuilderStatus=i||R5(e),s.now=Vs(e,e.now),s}function Moe(e=Al,t,n,i,s){let o=nke(e,t,n,i);return o.reportErrorSummary=s,o}function Roe(e=Al,t,n,i,s){let o=nke(e,t,n,i),c=OV(e,s);return EW(o,c),o}function CUe(e){let t={};return w7.forEach(n=>{bo(e,n.name)&&(t[n.name]=e[n.name])}),t.tscBuild=!0,t}function Foe(e,t,n){return xke(!1,e,t,n)}function Ooe(e,t,n,i){return xke(!0,e,t,n,i)}function wUe(e,t,n,i,s){let o=t,c=t,_=CUe(i),u=jV(o,()=>I.projectCompilerOptions);E5(u),u.getParsedCommandLine=D=>GI(I,D,Eg(I,D)),u.resolveModuleNameLiterals=Vs(o,o.resolveModuleNameLiterals),u.resolveTypeReferenceDirectiveReferences=Vs(o,o.resolveTypeReferenceDirectiveReferences),u.resolveLibrary=Vs(o,o.resolveLibrary),u.resolveModuleNames=Vs(o,o.resolveModuleNames),u.resolveTypeReferenceDirectives=Vs(o,o.resolveTypeReferenceDirectives),u.getModuleResolutionCache=Vs(o,o.getModuleResolutionCache);let g,m;!u.resolveModuleNameLiterals&&!u.resolveModuleNames&&(g=EI(u.getCurrentDirectory(),u.getCanonicalFileName),u.resolveModuleNameLiterals=(D,E,O,F,B)=>BM(D,E,O,F,B,o,g,lV),u.getModuleResolutionCache=()=>g),!u.resolveTypeReferenceDirectiveReferences&&!u.resolveTypeReferenceDirectives&&(m=U7(u.getCurrentDirectory(),u.getCanonicalFileName,void 0,g?.getPackageJsonInfoCache(),g?.optionsToRedirectsKey),u.resolveTypeReferenceDirectiveReferences=(D,E,O,F,B)=>BM(D,E,O,F,B,o,m,g5));let h;u.resolveLibrary||(h=EI(u.getCurrentDirectory(),u.getCanonicalFileName,void 0,g?.getPackageJsonInfoCache()),u.resolveLibrary=(D,E,O)=>V7(D,E,O,o,h)),u.getBuildInfo=(D,E)=>mke(I,D,Eg(I,E),void 0);let{watchFile:S,watchDirectory:T,writeLog:x}=LV(c,i),I={host:o,hostWithWatch:c,parseConfigFileHost:S5(o),write:Vs(o,o.trace),options:i,baseCompilerOptions:_,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:m,libraryResolutionCache:h,buildOrder:void 0,readFileWithCache:D=>o.readFile(D),projectCompilerOptions:_,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 Dd(e,t){return ko(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function Eg(e,t){let{resolvedConfigFilePaths:n}=e,i=n.get(t);if(i!==void 0)return i;let s=Dd(e,t);return n.set(t,s),s}function ike(e){return!!e.options}function IUe(e,t){let n=e.configFileCache.get(t);return n&&ike(n)?n:void 0}function GI(e,t,n){let{configFileCache:i}=e,s=i.get(n);if(s)return ike(s)?s:void 0;dc("SolutionBuilder::beforeConfigFileParsing");let o,{parseConfigFileHost:c,baseCompilerOptions:_,baseWatchOptions:u,extendedConfigCache:g,host:m}=e,h;return m.getParsedCommandLine?(h=m.getParsedCommandLine(t),h||(o=cc(p.File_0_not_found,t))):(c.onUnRecoverableConfigFileDiagnostic=S=>o=S,h=mM(t,_,c,g,u),c.onUnRecoverableConfigFileDiagnostic=to),i.set(n,h||o),dc("SolutionBuilder::afterConfigFileParsing"),Tp("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),h}function HM(e,t){return GV(d0(e.compilerHost.getCurrentDirectory(),t))}function ske(e,t){let n=new Map,i=new Map,s=[],o,c;for(let u of t)_(u);return c?{buildOrder:o||qe,circularDiagnostics:c}:o||qe;function _(u,g){let m=Eg(e,u);if(i.has(m))return;if(n.has(m)){g||(c||(c=[])).push(cc(p.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,s.join(`\r
`)));return}n.set(m,!0),s.push(u);let h=GI(e,u,m);if(h&&h.projectReferences)for(let S of h.projectReferences){let T=HM(e,S.path);_(T,g||S.circular)}s.pop(),i.set(m,!0),(o||(o=[])).push(u)}}function F5(e){return e.buildOrder||DUe(e)}function DUe(e){let t=ske(e,e.rootNames.map(s=>HM(e,s)));e.resolvedConfigFilePaths.clear();let n=new Set($M(t).map(s=>Eg(e,s))),i={onDeleteValue:to};return gh(e.configFileCache,n,i),gh(e.projectStatus,n,i),gh(e.builderPrograms,n,i),gh(e.diagnostics,n,i),gh(e.projectPendingBuild,n,i),gh(e.projectErrorsReported,n,i),gh(e.buildInfoCache,n,i),gh(e.outputTimeStamps,n,i),gh(e.lastCachedPackageJsonLookups,n,i),e.watch&&(gh(e.allWatchedConfigFiles,n,{onDeleteValue:kd}),e.allWatchedExtendedConfigFiles.forEach(s=>{s.projects.forEach(o=>{n.has(o)||s.projects.delete(o)}),s.close()}),gh(e.allWatchedWildcardDirectories,n,{onDeleteValue:s=>s.forEach(Op)}),gh(e.allWatchedInputFiles,n,{onDeleteValue:s=>s.forEach(kd)}),gh(e.allWatchedPackageJsonFiles,n,{onDeleteValue:s=>s.forEach(kd)})),e.buildOrder=t}function ake(e,t,n){let i=t&&HM(e,t),s=F5(e);if(nC(s))return s;if(i){let c=Eg(e,i);if(Sc(s,u=>Eg(e,u)===c)===-1)return}let o=i?ske(e,[i]):s;return w.assert(!nC(o)),w.assert(!n||i!==void 0),w.assert(!n||o[o.length-1]===i),n?o.slice(0,o.length-1):o}function oke(e){e.cache&&Loe(e);let{compilerHost:t,host:n}=e,i=e.readFileWithCache,s=t.getSourceFile,{originalReadFile:o,originalFileExists:c,originalDirectoryExists:_,originalCreateDirectory:u,originalWriteFile:g,getSourceFileWithCache:m,readFileWithCache:h}=hE(n,S=>Dd(e,S),(...S)=>s.call(t,...S));e.readFileWithCache=h,t.getSourceFile=m,e.cache={originalReadFile:o,originalFileExists:c,originalDirectoryExists:_,originalCreateDirectory:u,originalWriteFile:g,originalReadFileWithCache:i,originalGetSourceFile:s}}function Loe(e){if(!e.cache)return;let{cache:t,host:n,compilerHost:i,extendedConfigCache:s,moduleResolutionCache:o,typeReferenceDirectiveResolutionCache:c,libraryResolutionCache:_}=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(),_?.clear(),e.cache=void 0}function cke(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function lke({projectPendingBuild:e},t,n){let i=e.get(t);(i===void 0||i<n)&&e.set(t,n)}function uke(e,t){if(!e.allProjectBuildPending)return;e.allProjectBuildPending=!1,e.options.watch&&qoe(e,p.Starting_compilation_in_watch_mode),oke(e),$M(F5(e)).forEach(i=>e.projectPendingBuild.set(Eg(e,i),0)),t&&t.throwIfCancellationRequested()}var joe=(e=>(e[e.Build=0]="Build",e[e.UpdateOutputFileStamps=1]="UpdateOutputFileStamps",e))(joe||{});function _ke(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function PUe(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:()=>{hke(e,i,n),o=!1},done:()=>(o&&hke(e,i,n),dc("SolutionBuilder::Timestamps only updates"),_ke(e,n))}}function AUe(e,t,n,i,s,o,c){let _=0,u,g;return{kind:0,project:t,projectPath:n,buildOrder:c,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>h(Do),getProgram:()=>h(D=>D.getProgramOrUndefined()),getSourceFile:D=>h(E=>E.getSourceFile(D)),getSourceFiles:()=>S(D=>D.getSourceFiles()),getOptionsDiagnostics:D=>S(E=>E.getOptionsDiagnostics(D)),getGlobalDiagnostics:D=>S(E=>E.getGlobalDiagnostics(D)),getConfigFileParsingDiagnostics:()=>S(D=>D.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(D,E)=>S(O=>O.getSyntacticDiagnostics(D,E)),getAllDependencies:D=>S(E=>E.getAllDependencies(D)),getSemanticDiagnostics:(D,E)=>S(O=>O.getSemanticDiagnostics(D,E)),getSemanticDiagnosticsOfNextAffectedFile:(D,E)=>h(O=>O.getSemanticDiagnosticsOfNextAffectedFile&&O.getSemanticDiagnosticsOfNextAffectedFile(D,E)),emit:(D,E,O,F,B)=>D||F?h(G=>{var $,K;return G.emit(D,E,O,F,B||((K=($=e.host).getCustomTransformers)==null?void 0:K.call($,t)))}):(I(0,O),x(E,O,B)),done:m};function m(D,E,O){return I(3,D,E,O),dc("SolutionBuilder::Projects built"),_ke(e,n)}function h(D){return I(0),u&&D(u)}function S(D){return h(D)||qe}function T(){var D,E,O;if(w.assert(u===void 0),e.options.dry){Sf(e,p.A_non_dry_build_would_build_project_0,t),g=1,_=2;return}if(e.options.verbose&&Sf(e,p.Building_project_0,t),s.fileNames.length===0){QM(e,n,HS(s)),g=0,_=2;return}let{host:F,compilerHost:B}=e;if(e.projectCompilerOptions=s.options,(D=e.moduleResolutionCache)==null||D.update(s.options),(E=e.typeReferenceDirectiveResolutionCache)==null||E.update(s.options),u=F.createProgram(s.fileNames,s.options,B,EUe(e,n,s),HS(s),s.projectReferences),e.watch){let G=(O=e.moduleResolutionCache)==null?void 0:O.getPackageJsonInfoCache().getInternalMap();e.lastCachedPackageJsonLookups.set(n,G&&new Set(ps(G.values(),$=>e.host.realpath&&(G7($)||$.directoryExists)?e.host.realpath(Bn($.packageDirectory,"package.json")):Bn($.packageDirectory,"package.json")))),e.builderPrograms.set(n,u)}_++}function x(D,E,O){var F,B,G;w.assertIsDefined(u),w.assert(_===1);let{host:$,compilerHost:K}=e,U=new Map,me=u.getCompilerOptions(),te=PS(me),V,ne,{emitResult:ie,diagnostics:oe}=P5(u,de=>$.reportDiagnostic(de),e.write,void 0,(de,ye,H,ve,Ge,De)=>{var se;let xe=Dd(e,de);if(U.set(Dd(e,de),de),De?.buildInfo){ne||(ne=UV(e.host));let tt=(se=u.hasChangedEmitSignature)==null?void 0:se.call(u),ct=$V(e,de,n);ct?(ct.buildInfo=De.buildInfo,ct.modifiedTime=ne,tt&&(ct.latestChangedDtsTime=ne)):e.buildInfoCache.set(n,{path:Dd(e,de),buildInfo:De.buildInfo,modifiedTime:ne,latestChangedDtsTime:tt?ne:void 0})}let _e=De?.differsOnlyInMap?Vx(e.host,de):void 0;(D||K.writeFile)(de,ye,H,ve,Ge,De),De?.differsOnlyInMap?e.host.setModifiedTime(de,_e):!te&&e.watch&&(V||(V=Boe(e,n))).set(xe,ne||(ne=UV(e.host)))},E,void 0,O||((B=(F=e.host).getCustomTransformers)==null?void 0:B.call(F,t)));return(!me.noEmitOnError||!oe.length)&&(U.size||o.type!==8)&&gke(e,s,n,p.Updating_unchanged_output_timestamps_of_project_0,U),e.projectErrorsReported.set(n,!0),g=(G=u.hasChangedEmitSignature)!=null&&G.call(u)?0:2,oe.length?(e.diagnostics.set(n,oe),e.projectStatus.set(n,{type:0,reason:"it had errors"}),g|=4):(e.diagnostics.delete(n),e.projectStatus.set(n,{type:1,oldestOutputFileName:KN(U.values())??$U(s,!$.useCaseSensitiveFileNames())})),NUe(e,u),_=2,ie}function I(D,E,O,F){for(;_<=D&&_<3;){let B=_;switch(_){case 0:T();break;case 1:x(O,E,F);break;case 2:OUe(e,t,n,i,s,c,w.checkDefined(g)),_++;break;case 3:default:}w.assert(_>B)}}}function fke(e,t,n){if(!e.projectPendingBuild.size||nC(t))return;let{options:i,projectPendingBuild:s}=e;for(let o=0;o<t.length;o++){let c=t[o],_=Eg(e,c),u=e.projectPendingBuild.get(_);if(u===void 0)continue;n&&(n=!1,Ike(e,t));let g=GI(e,c,_);if(!g){Cke(e,_),s.delete(_);continue}u===2?(Ske(e,c,_,g),Tke(e,_,g),kke(e,c,_,g),Uoe(e,c,_,g),Voe(e,c,_,g)):u===1&&(g.fileNames=eE(g.options.configFile.configFileSpecs,Yn(c),g.options,e.parseConfigFileHost),L7(g.fileNames,c,g.options.configFile.configFileSpecs,g.errors,bM(g.raw)),Uoe(e,c,_,g),Voe(e,c,_,g));let m=Joe(e,g,_);if(!i.force){if(m.type===1){QV(e,c,m),QM(e,_,HS(g)),s.delete(_),i.dry&&Sf(e,p.Project_0_is_up_to_date,c);continue}if(m.type===2||m.type===15)return QM(e,_,HS(g)),{kind:1,status:m,project:c,projectPath:_,projectIndex:o,config:g}}if(m.type===12){QV(e,c,m),QM(e,_,HS(g)),s.delete(_),i.verbose&&Sf(e,m.upstreamProjectBlocked?p.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:p.Skipping_build_of_project_0_because_its_dependency_1_has_errors,c,m.upstreamProjectName);continue}if(m.type===16){QV(e,c,m),QM(e,_,HS(g)),s.delete(_);continue}return{kind:0,status:m,project:c,projectPath:_,projectIndex:o,config:g}}}function pke(e,t,n){return QV(e,t.project,t.status),t.kind!==1?AUe(e,t.project,t.projectPath,t.projectIndex,t.config,t.status,n):PUe(e,t.project,t.projectPath,t.config,n)}function Woe(e,t,n){let i=fke(e,t,n);return i&&pke(e,i,t)}function EUe({options:e,builderPrograms:t,compilerHost:n},i,s){if(e.force)return;let o=t.get(i);return o||N5(s.options,n)}function NUe(e,t){t&&(e.host.afterProgramEmitAndDiagnostics&&e.host.afterProgramEmitAndDiagnostics(t),t.releaseProgram()),e.projectCompilerOptions=e.baseCompilerOptions}function VV(e){return!!e.watcher}function dke(e,t){let n=Dd(e,t),i=e.filesWatched.get(n);if(e.watch&&i){if(!VV(i))return i;if(i.modifiedTime)return i.modifiedTime}let s=Vx(e.host,t);return e.watch&&(i?i.modifiedTime=s:e.filesWatched.set(n,s)),s}function qV(e,t,n,i,s,o,c){let _=Dd(e,t),u=e.filesWatched.get(_);if(u&&VV(u))u.callbacks.push(n);else{let g=e.watchFile(t,(m,h,S)=>{let T=w.checkDefined(e.filesWatched.get(_));w.assert(VV(T)),T.modifiedTime=S,T.callbacks.forEach(x=>x(m,h,S))},i,s,o,c);e.filesWatched.set(_,{callbacks:[n],watcher:g,modifiedTime:u})}return{close:()=>{let g=w.checkDefined(e.filesWatched.get(_));w.assert(VV(g)),g.callbacks.length===1?(e.filesWatched.delete(_),Op(g)):Gx(g.callbacks,n)}}}function Boe(e,t){if(!e.watch)return;let n=e.outputTimeStamps.get(t);return n||e.outputTimeStamps.set(t,n=new Map),n}function $V(e,t,n){let i=Dd(e,t),s=e.buildInfoCache.get(n);return s?.path===i?s:void 0}function mke(e,t,n,i){let s=Dd(e,t),o=e.buildInfoCache.get(n);if(o!==void 0&&o.path===s)return o.buildInfo||void 0;let c=e.readFileWithCache(t),_=c?KU(t,c):void 0;return e.buildInfoCache.set(n,{path:s,buildInfo:_||!1,modifiedTime:i||_f}),_}function zoe(e,t,n,i){let s=dke(e,t);if(n<s)return{type:5,outOfDateOutputFileName:i,newerInputFileName:t}}function MUe(e,t,n){var i,s,o,c,_;if(eU(t))return{type:16};let u,g=!!e.options.force;if(t.projectReferences){e.projectStatus.set(n,{type:13});for(let oe of t.projectReferences){let de=tC(oe),ye=Eg(e,de),H=GI(e,de,ye),ve=Joe(e,H,ye);if(!(ve.type===13||ve.type===16)){if(e.options.stopBuildOnErrors&&(ve.type===0||ve.type===12))return{type:12,upstreamProjectName:oe.path,upstreamProjectBlocked:ve.type===12};g||(u||(u=[])).push({ref:oe,refStatus:ve,resolvedRefPath:ye,resolvedConfig:H})}}}if(g)return{type:17};let{host:m}=e,h=n1(t.options),S=PS(t.options),T=$V(e,h,n),x=T?.modifiedTime||Vx(m,h);if(x===_f)return T||e.buildInfoCache.set(n,{path:Dd(e,h),buildInfo:!1,modifiedTime:x}),{type:3,missingOutputFileName:h};let I=mke(e,h,n,x);if(!I)return{type:4,fileName:h};let D=S&&UM(I)?I:void 0;if((D||!S)&&I.version!==Ui)return{type:14,version:I.version};if(!t.options.noCheck&&(I.errors||I.checkPending))return{type:8,buildInfoFile:h};if(D){if(!t.options.noCheck&&((i=D.changeFileSet)!=null&&i.length||(s=D.semanticDiagnosticsPerFile)!=null&&s.length||K_(t.options)&&((o=D.emitDiagnosticsPerFile)!=null&&o.length)))return{type:8,buildInfoFile:h};if(!t.options.noEmit&&((c=D.changeFileSet)!=null&&c.length||(_=D.affectedFilesPendingEmit)!=null&&_.length||D.pendingEmit!==void 0))return{type:7,buildInfoFile:h};if((!t.options.noEmit||t.options.noEmit&&K_(t.options))&&k5(t.options,D.options||{},void 0,!!t.options.noEmit))return{type:9,buildInfoFile:h}}let E=x,O=h,F,B=kUe,G=!1,$=new Set,K;for(let oe of t.fileNames){let de=dke(e,oe);if(de===_f)return{type:0,reason:`${oe} does not exist`};let ye=Dd(e,oe);if(x<de){let H,ve;if(D){K||(K=bV(D,h,m));let Ge=K.roots.get(ye);H=K.fileInfos.get(Ge??ye);let De=H?e.readFileWithCache(Ge??oe):void 0;ve=De!==void 0?A5(m,De):void 0,H&&H===ve&&(G=!0)}if(!H||H!==ve)return{type:5,outOfDateOutputFileName:h,newerInputFileName:oe}}de>B&&(F=oe,B=de),$.add(ye)}let U;if(D?(K||(K=bV(D,h,m)),U=Nl(K.roots,(oe,de)=>$.has(de)?void 0:de)):U=or(boe(I,h,m),oe=>$.has(oe)?void 0:oe),U)return{type:10,buildInfoFile:h,inputFile:U};if(!S){let oe=l5(t,!m.useCaseSensitiveFileNames()),de=Boe(e,n);for(let ye of oe){if(ye===h)continue;let H=Dd(e,ye),ve=de?.get(H);if(ve||(ve=Vx(e.host,ye),de?.set(H,ve)),ve===_f)return{type:3,missingOutputFileName:ye};if(ve<B)return{type:5,outOfDateOutputFileName:ye,newerInputFileName:F};ve<E&&(E=ve,O=ye)}}let me=!1;if(u)for(let{ref:oe,refStatus:de,resolvedConfig:ye,resolvedRefPath:H}of u){if(de.newestInputFileTime&&de.newestInputFileTime<=E)continue;if(RUe(e,T??(T=e.buildInfoCache.get(n)),H))return{type:6,outOfDateOutputFileName:h,newerProjectName:oe.path};let ve=FUe(e,ye.options,H);if(ve&&ve<=E){me=!0;continue}return w.assert(O!==void 0,"Should have an oldest output filename here"),{type:6,outOfDateOutputFileName:O,newerProjectName:oe.path}}let te=zoe(e,t.options.configFilePath,E,O);if(te)return te;let V=or(t.options.configFile.extendedSourceFiles||qe,oe=>zoe(e,oe,E,O));if(V)return V;let ne=e.lastCachedPackageJsonLookups.get(n),ie=ne&&uh(ne,oe=>zoe(e,oe,E,O));return ie||{type:me?2:G?15:1,newestInputFileTime:B,newestInputFileName:F,oldestOutputFileName:O}}function RUe(e,t,n){return e.buildInfoCache.get(n).path===t.path}function Joe(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=MUe(e,t,n);return dc("SolutionBuilder::afterUpToDateCheck"),Tp("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(n,s),s}function gke(e,t,n,i,s){if(t.options.noEmit)return;let o,c=n1(t.options),_=PS(t.options);if(c&&_){s?.has(Dd(e,c))||(e.options.verbose&&Sf(e,i,t.options.configFilePath),e.host.setModifiedTime(c,o=UV(e.host)),$V(e,c,n).modifiedTime=o),e.outputTimeStamps.delete(n);return}let{host:u}=e,g=l5(t,!u.useCaseSensitiveFileNames()),m=Boe(e,n),h=m?new Set:void 0;if(!s||g.length!==s.size){let S=!!e.options.verbose;for(let T of g){let x=Dd(e,T);s?.has(x)||(S&&(S=!1,Sf(e,i,t.options.configFilePath)),u.setModifiedTime(T,o||(o=UV(e.host))),T===c?$V(e,c,n).modifiedTime=o:m&&(m.set(x,o),h.add(x)))}}m?.forEach((S,T)=>{!s?.has(T)&&!h.has(T)&&m.delete(T)})}function FUe(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&&UM(i.buildInfo)&&i.buildInfo.latestChangedDtsFile?e.host.getModifiedTime(as(i.buildInfo.latestChangedDtsFile,Yn(i.path))):void 0;return i.latestChangedDtsTime=s||!1,s}function hke(e,t,n){if(e.options.dry)return Sf(e,p.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);gke(e,t,n,p.Updating_output_timestamps_of_project_0),e.projectStatus.set(n,{type:1,oldestOutputFileName:$U(t,!e.host.useCaseSensitiveFileNames())})}function OUe(e,t,n,i,s,o,c){if(!(e.options.stopBuildOnErrors&&c&4)&&s.options.composite)for(let _=i+1;_<o.length;_++){let u=o[_],g=Eg(e,u);if(e.projectPendingBuild.has(g))continue;let m=GI(e,u,g);if(!(!m||!m.projectReferences))for(let h of m.projectReferences){let S=HM(e,h.path);if(Eg(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:Eg(e,HM(e,T.upstreamProjectName))===n&&cke(e,g);break}lke(e,g,0);break}}}function yke(e,t,n,i,s,o){dc("SolutionBuilder::beforeBuild");let c=LUe(e,t,n,i,s,o);return dc("SolutionBuilder::afterBuild"),Tp("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),c}function LUe(e,t,n,i,s,o){let c=ake(e,t,o);if(!c)return 3;uke(e,n);let _=!0,u=0;for(;;){let g=Woe(e,c,_);if(!g)break;_=!1,g.done(n,i,s?.(g.project)),e.diagnostics.has(g.projectPath)||u++}return Loe(e),wke(e,c),zUe(e,c),nC(c)?4:c.some(g=>e.diagnostics.has(Eg(e,g)))?u?2:1:0}function vke(e,t,n){dc("SolutionBuilder::beforeClean");let i=jUe(e,t,n);return dc("SolutionBuilder::afterClean"),Tp("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function jUe(e,t,n){let i=ake(e,t,n);if(!i)return 3;if(nC(i))return HV(e,i.circularDiagnostics),4;let{options:s,host:o}=e,c=s.dry?[]:void 0;for(let _ of i){let u=Eg(e,_),g=GI(e,_,u);if(g===void 0){Cke(e,u);continue}let m=l5(g,!o.useCaseSensitiveFileNames());if(!m.length)continue;let h=new Set(g.fileNames.map(S=>Dd(e,S)));for(let S of m)h.has(Dd(e,S))||o.fileExists(S)&&(c?c.push(S):(o.deleteFile(S),Goe(e,u,0)))}return c&&Sf(e,p.A_non_dry_build_would_delete_the_following_files_Colon_0,c.map(_=>`\r
* ${_}`).join("")),0}function Goe(e,t,n){e.host.getParsedCommandLine&&n===1&&(n=2),n===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,cke(e,t),lke(e,t,n),oke(e)}function O5(e,t,n){e.reportFileChangeDetected=!0,Goe(e,t,n),bke(e,250,!0)}function bke(e,t,n){let{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(WUe,t,"timerToBuildInvalidatedProject",e,n))}function WUe(e,t,n){dc("SolutionBuilder::beforeBuild");let i=BUe(t,n);dc("SolutionBuilder::afterBuild"),Tp("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),i&&wke(t,i)}function BUe(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),qoe(e,p.File_change_detected_Starting_incremental_compilation));let n=0,i=F5(e),s=Woe(e,i,!1);if(s)for(s.done(),n++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;let o=fke(e,i,!1);if(!o)break;if(o.kind!==1&&(t||n===5)){bke(e,100,!1);return}pke(e,o,i).done(),o.kind!==1&&n++}return Loe(e),i}function Ske(e,t,n,i){!e.watch||e.allWatchedConfigFiles.has(n)||e.allWatchedConfigFiles.set(n,qV(e,t,()=>O5(e,n,2),2e3,i?.watchOptions,Hl.ConfigFile,t))}function Tke(e,t,n){_5(t,n?.options,e.allWatchedExtendedConfigFiles,(i,s)=>qV(e,i,()=>{var o;return(o=e.allWatchedExtendedConfigFiles.get(s))==null?void 0:o.projects.forEach(c=>O5(e,c,2))},2e3,n?.watchOptions,Hl.ExtendedConfigFile),i=>Dd(e,i))}function kke(e,t,n,i){e.watch&&LM(Noe(e.allWatchedWildcardDirectories,n),i.wildcardDirectories,(s,o)=>e.watchDirectory(s,c=>{var _;jM({watchedDirPath:Dd(e,s),fileOrDirectory:c,fileOrDirectoryPath:Dd(e,c),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(n)||((_=IUe(e,n))==null?void 0:_.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:u=>e.writeLog(u),toPath:u=>Dd(e,u)})||O5(e,n,1)},o,i?.watchOptions,Hl.WildcardDirectory,t))}function Uoe(e,t,n,i){e.watch&&hA(Noe(e.allWatchedInputFiles,n),new Set(i.fileNames),{createNewValue:s=>qV(e,s,()=>O5(e,n,0),250,i?.watchOptions,Hl.SourceFile,t),onDeleteValue:kd})}function Voe(e,t,n,i){!e.watch||!e.lastCachedPackageJsonLookups||hA(Noe(e.allWatchedPackageJsonFiles,n),e.lastCachedPackageJsonLookups.get(n),{createNewValue:s=>qV(e,s,()=>O5(e,n,0),2e3,i?.watchOptions,Hl.PackageJson,t),onDeleteValue:kd})}function zUe(e,t){if(e.watchAllProjectsPending){dc("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(let n of $M(t)){let i=Eg(e,n),s=GI(e,n,i);Ske(e,n,i,s),Tke(e,i,s),s&&(kke(e,n,i,s),Uoe(e,n,i,s),Voe(e,n,i,s))}dc("SolutionBuilder::afterWatcherCreation"),Tp("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function JUe(e){Q_(e.allWatchedConfigFiles,kd),Q_(e.allWatchedExtendedConfigFiles,Op),Q_(e.allWatchedWildcardDirectories,t=>Q_(t,Op)),Q_(e.allWatchedInputFiles,t=>Q_(t,kd)),Q_(e.allWatchedPackageJsonFiles,t=>Q_(t,kd))}function xke(e,t,n,i,s){let o=wUe(e,t,n,i,s);return{build:(c,_,u,g)=>yke(o,c,_,u,g),clean:c=>vke(o,c),buildReferences:(c,_,u,g)=>yke(o,c,_,u,g,!0),cleanReferences:c=>vke(o,c,!0),getNextInvalidatedProject:c=>(uke(o,c),Woe(o,F5(o),!1)),getBuildOrder:()=>F5(o),getUpToDateStatusOfProject:c=>{let _=HM(o,c),u=Eg(o,_);return Joe(o,GI(o,_,u),u)},invalidateProject:(c,_)=>Goe(o,c,_||0),close:()=>JUe(o)}}function yu(e,t){return CP(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function Sf(e,t,...n){e.host.reportSolutionBuilderStatus(cc(t,...n))}function qoe(e,t,...n){var i,s;(s=(i=e.hostWithWatch).onWatchStatusChange)==null||s.call(i,cc(t,...n),e.host.getNewLine(),e.baseCompilerOptions)}function HV({host:e},t){t.forEach(n=>e.reportDiagnostic(n))}function QM(e,t,n){HV(e,n),e.projectErrorsReported.set(t,!0),n.length&&e.diagnostics.set(t,n)}function Cke(e,t){QM(e,t,[e.configFileCache.get(t)])}function wke(e,t){if(!e.needsSummary)return;e.needsSummary=!1;let n=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e,s=0,o=[];nC(t)?(Ike(e,t.buildOrder),HV(e,t.circularDiagnostics),n&&(s+=I5(t.circularDiagnostics)),n&&(o=[...o,...D5(t.circularDiagnostics)])):(t.forEach(c=>{let _=Eg(e,c);e.projectErrorsReported.has(_)||HV(e,i.get(_)||qe)}),n&&i.forEach(c=>s+=I5(c)),n&&i.forEach(c=>[...o,...D5(c)])),e.watch?qoe(e,IV(s),s):e.host.reportErrorSummary&&e.host.reportErrorSummary(s,o)}function Ike(e,t){e.options.verbose&&Sf(e,p.Projects_in_this_build_Colon_0,t.map(n=>`\r
* `+yu(e,n)).join(""))}function GUe(e,t,n){switch(n.type){case 5:return Sf(e,p.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,yu(e,t),yu(e,n.outOfDateOutputFileName),yu(e,n.newerInputFileName));case 6:return Sf(e,p.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,yu(e,t),yu(e,n.outOfDateOutputFileName),yu(e,n.newerProjectName));case 3:return Sf(e,p.Project_0_is_out_of_date_because_output_file_1_does_not_exist,yu(e,t),yu(e,n.missingOutputFileName));case 4:return Sf(e,p.Project_0_is_out_of_date_because_there_was_error_reading_file_1,yu(e,t),yu(e,n.fileName));case 7:return Sf(e,p.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,yu(e,t),yu(e,n.buildInfoFile));case 8:return Sf(e,p.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors,yu(e,t),yu(e,n.buildInfoFile));case 9:return Sf(e,p.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,yu(e,t),yu(e,n.buildInfoFile));case 10:return Sf(e,p.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,yu(e,t),yu(e,n.buildInfoFile),yu(e,n.inputFile));case 1:if(n.newestInputFileTime!==void 0)return Sf(e,p.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,yu(e,t),yu(e,n.newestInputFileName||""),yu(e,n.oldestOutputFileName||""));break;case 2:return Sf(e,p.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,yu(e,t));case 15:return Sf(e,p.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,yu(e,t));case 11:return Sf(e,p.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,yu(e,t),yu(e,n.upstreamProjectName));case 12:return Sf(e,n.upstreamProjectBlocked?p.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:p.Project_0_can_t_be_built_because_its_dependency_1_has_errors,yu(e,t),yu(e,n.upstreamProjectName));case 0:return Sf(e,p.Project_0_is_out_of_date_because_1,yu(e,t),n.reason);case 14:return Sf(e,p.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,yu(e,t),n.version,Ui);case 17:return Sf(e,p.Project_0_is_being_forcibly_rebuilt,yu(e,t));case 16:case 13:break;default:}}function QV(e,t,n){e.options.verbose&&GUe(e,t,n)}var $oe=(e=>(e[e.time=0]="time",e[e.count=1]="count",e[e.memory=2]="memory",e))($oe||{});function UUe(e){let t=VUe();return or(e.getSourceFiles(),n=>{let i=qUe(e,n),s=nh(n).length;t.set(i,t.get(i)+s)}),t}function VUe(){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 qUe(e,t){if(e.isSourceFileDefaultLibrary(t))return"Library";if(t.isDeclarationFile)return"Definitions";let n=t.path;return Gc(n,CJ)?"TypeScript":Gc(n,aI)?"JavaScript":nc(n,".json")?"JSON":"Other"}function KV(e,t,n){return L5(e,n)?rC(e,!0):t}function Dke(e){return!!e.writeOutputIsTTY&&e.writeOutputIsTTY()&&!e.getEnvironmentVariable("NO_COLOR")}function L5(e,t){return!t||typeof t.pretty>"u"?Dke(e):t.pretty}function Pke(e){return e.options.all?lf(Id.concat(Mk),(t,n)=>ZN(t.name,n.name)):An(Id.concat(Mk),t=>!!t.showInSimplifiedHelpView)}function XV(e){e.write(j_(p.Version_0,Ui)+e.newLine)}function YV(e){if(!Dke(e))return{bold:m=>m,blue:m=>m,blueBackground:m=>m,brightWhite:m=>m};function n(m){return`\x1B[1m${m}\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(m){return i&&!s&&!o?g(m):`\x1B[94m${m}\x1B[39m`}let _=e.getEnvironmentVariable("COLORTERM")==="truecolor"||e.getEnvironmentVariable("TERM")==="xterm-256color";function u(m){return _?`\x1B[48;5;68m${m}\x1B[39;49m`:`\x1B[44m${m}\x1B[39;49m`}function g(m){return`\x1B[97m${m}\x1B[39m`}return{bold:n,blue:c,brightWhite:g,blueBackground:u}}function Ake(e){return`--${e.name}${e.shortName?`, -${e.shortName}`:""}`}function $Ue(e,t,n,i){var s;let o=[],c=YV(e),_=Ake(t),u=x(t),g=typeof t.defaultValueDescription=="object"?j_(t.defaultValueDescription):h(t.defaultValueDescription,t.type==="list"||t.type==="listOrElement"?t.element.type:t.type),m=((s=e.getWidthOfTerminal)==null?void 0:s.call(e))??0;if(m>=80){let I="";t.description&&(I=j_(t.description)),o.push(...T(_,I,n,i,m,!0),e.newLine),S(u,t)&&(u&&o.push(...T(u.valueType,u.possibleValues,n,i,m,!1),e.newLine),g&&o.push(...T(j_(p.default_Colon),g,n,i,m,!1),e.newLine)),o.push(e.newLine)}else{if(o.push(c.blue(_),e.newLine),t.description){let I=j_(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=j_(p.default_Colon);o.push(`${I} ${g}`)}o.push(e.newLine)}o.push(e.newLine)}return o;function h(I,D){return I!==void 0&&typeof D=="object"?ps(D.entries()).filter(([,E])=>E===I).map(([E])=>E).join("/"):String(I)}function S(I,D){let E=["string"],O=[void 0,"false","n/a"],F=D.defaultValueDescription;return!(D.category===p.Command_line_Options||Ts(E,I?.possibleValues)&&Ts(O,F))}function T(I,D,E,O,F,B){let G=[],$=!0,K=D,U=F-O;for(;K.length>0;){let me="";$?(me=I.padStart(E),me=me.padEnd(O),me=B?c.blue(me):me):me="".padStart(O);let te=K.substr(0,U);K=K.slice(U),G.push(`${me}${te}`),$=!1}return G}function x(I){if(I.type==="object")return;return{valueType:D(I),possibleValues:E(I)};function D(O){switch(w.assert(O.type!=="listOrElement"),O.type){case"string":case"number":case"boolean":return j_(p.type_Colon);case"list":return j_(p.one_or_more_Colon);default:return j_(p.one_of_Colon)}}function E(O){let F;switch(O.type){case"string":case"number":case"boolean":F=O.type;break;case"list":case"listOrElement":F=E(O.element);break;case"object":F="";break;default:let B={};return O.type.forEach((G,$)=>{var K;(K=O.deprecatedKeys)!=null&&K.has($)||(B[G]||(B[G]=[])).push($)}),Object.entries(B).map(([,G])=>G.join("/")).join(", ")}return F}}}function Eke(e,t){let n=0;for(let c of t){let _=Ake(c).length;n=n>_?n:_}let i=n+2,s=i+2,o=[];for(let c of t){let _=$Ue(e,c,i,s);o=[...o,..._]}return o[o.length-2]!==e.newLine&&o.push(e.newLine),o}function KM(e,t,n,i,s,o){let c=[];if(c.push(YV(e).bold(t)+e.newLine+e.newLine),s&&c.push(s+e.newLine+e.newLine),!i)return c=[...c,...Eke(e,n)],o&&c.push(o+e.newLine+e.newLine),c;let _=new Map;for(let u of n){if(!u.category)continue;let g=j_(u.category),m=_.get(g)??[];m.push(u),_.set(g,m)}return _.forEach((u,g)=>{c.push(`### ${g}${e.newLine}${e.newLine}`),c=[...c,...Eke(e,u)]}),o&&c.push(o+e.newLine+e.newLine),c}function HUe(e,t){let n=YV(e),i=[...ZV(e,`${j_(p.tsc_Colon_The_TypeScript_Compiler)} - ${j_(p.Version_0,Ui)}`)];i.push(n.bold(j_(p.COMMON_COMMANDS))+e.newLine+e.newLine),c("tsc",p.Compiles_the_current_project_tsconfig_json_in_the_working_directory),c("tsc app.ts util.ts",p.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options),c("tsc -b",p.Build_a_composite_project_in_the_working_directory),c("tsc --init",p.Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory),c("tsc -p ./path/to/tsconfig.json",p.Compiles_the_TypeScript_project_located_at_the_specified_path),c("tsc --help --all",p.An_expanded_version_of_this_information_showing_all_possible_compiler_options),c(["tsc --noEmit","tsc --target esnext"],p.Compiles_the_current_project_with_additional_settings);let s=t.filter(_=>_.isCommandLineOnly||_.category===p.Command_line_Options),o=t.filter(_=>!Ts(s,_));i=[...i,...KM(e,j_(p.COMMAND_LINE_FLAGS),s,!1,void 0,void 0),...KM(e,j_(p.COMMON_COMPILER_OPTIONS),o,!1,void 0,k2(p.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))];for(let _ of i)e.write(_);function c(_,u){let g=typeof _=="string"?[_]:_;for(let m of g)i.push(" "+n.blue(m)+e.newLine);i.push(" "+j_(u)+e.newLine+e.newLine)}}function QUe(e,t,n,i){let s=[...ZV(e,`${j_(p.tsc_Colon_The_TypeScript_Compiler)} - ${j_(p.Version_0,Ui)}`)];s=[...s,...KM(e,j_(p.ALL_COMPILER_OPTIONS),t,!0,void 0,k2(p.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))],s=[...s,...KM(e,j_(p.WATCH_OPTIONS),i,!1,j_(p.Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon))],s=[...s,...KM(e,j_(p.BUILD_OPTIONS),An(n,o=>o!==Mk),!1,k2(p.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 Nke(e,t){let n=[...ZV(e,`${j_(p.tsc_Colon_The_TypeScript_Compiler)} - ${j_(p.Version_0,Ui)}`)];n=[...n,...KM(e,j_(p.BUILD_OPTIONS),An(t,i=>i!==Mk),!1,k2(p.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 ZV(e,t){var n;let i=YV(e),s=[],o=((n=e.getWidthOfTerminal)==null?void 0:n.call(e))??0,c=5,_=i.blueBackground("".padStart(c)),u=i.blueBackground(i.brightWhite("TS ".padStart(c)));if(o>=t.length+c){let m=(o>120?120:o)-c;s.push(t.padEnd(m)+_+e.newLine),s.push("".padStart(m)+u+e.newLine)}else s.push(t+e.newLine),s.push(e.newLine);return s}function Mke(e,t){t.options.all?QUe(e,Pke(t),JG,Q2):HUe(e,Pke(t))}function Rke(e,t,n){let i=rC(e),s;if(n.options.locale&&CB(n.options.locale,e,n.errors),n.errors.length>0)return n.errors.forEach(i),e.exit(1);if(n.options.init)return ZUe(e,i,n.options,n.fileNames),e.exit(0);if(n.options.version)return XV(e),e.exit(0);if(n.options.help||n.options.all)return Mke(e,n),e.exit(0);if(n.options.watch&&n.options.listFilesOnly)return i(cc(p.Options_0_and_1_cannot_be_combined,"watch","listFilesOnly")),e.exit(1);if(n.options.project){if(n.fileNames.length!==0)return i(cc(p.Option_project_cannot_be_mixed_with_source_files_on_a_command_line)),e.exit(1);let _=na(n.options.project);if(!_||e.directoryExists(_)){if(s=Bn(_,"tsconfig.json"),!e.fileExists(s))return i(cc(p.Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0,n.options.project)),e.exit(1)}else if(s=_,!e.fileExists(s))return i(cc(p.The_specified_path_does_not_exist_Colon_0,n.options.project)),e.exit(1)}else if(n.fileNames.length===0){let _=na(e.getCurrentDirectory());s=tV(_,u=>e.fileExists(u))}if(n.fileNames.length===0&&!s)return n.options.showConfig?i(cc(p.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0,na(e.getCurrentDirectory()))):(XV(e),Mke(e,n)),e.exit(1);let o=e.getCurrentDirectory(),c=R7(n.options,_=>as(_,o));if(s){let _=new Map,u=Doe(s,c,_,n.watchOptions,e,i);if(c.showConfig)return u.errors.length!==0?(i=KV(e,i,u.options),u.errors.forEach(i),e.exit(1)):(e.write(JSON.stringify(KG(u,s,e),null,4)+e.newLine),e.exit(0));if(i=KV(e,i,u.options),lJ(u.options))return Qoe(e,i)?void 0:KUe(e,t,i,u,c,n.watchOptions,_);PS(u.options)?jke(e,t,i,u):Lke(e,t,i,u)}else{if(c.showConfig)return e.write(JSON.stringify(KG(n,Bn(o,"tsconfig.json"),e),null,4)+e.newLine),e.exit(0);if(i=KV(e,i,c),lJ(c))return Qoe(e,i)?void 0:XUe(e,t,i,n.fileNames,c,n.watchOptions);PS(c)?jke(e,t,i,{...n,options:c}):Lke(e,t,i,{...n,options:c})}}function Hoe(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===Mk.name||t===Mk.shortName}return!1}function Fke(e,t,n){if(Hoe(n)){let{buildOptions:s,watchOptions:o,projects:c,errors:_}=ose(n);if(s.generateCpuProfile&&e.enableCPUProfiler)e.enableCPUProfiler(s.generateCpuProfile,()=>Oke(e,t,s,o,c,_));else return Oke(e,t,s,o,c,_)}let i=sse(n,s=>e.readFile(s));if(i.options.generateCpuProfile&&e.enableCPUProfiler)e.enableCPUProfiler(i.options.generateCpuProfile,()=>Rke(e,t,i));else return Rke(e,t,i)}function Qoe(e,t){return!e.watchFile||!e.watchDirectory?(t(cc(p.The_current_host_does_not_support_the_0_option,"--watch")),e.exit(1),!0):!1}var j5=2;function Oke(e,t,n,i,s,o){let c=KV(e,rC(e),n);if(n.locale&&CB(n.locale,e,o),o.length>0)return o.forEach(c),e.exit(1);if(n.help||s.length===0)return XV(e),Nke(e,dM),e.exit(0);if(!e.getModifiedTime||!e.setModifiedTime||n.clean&&!e.deleteFile)return c(cc(p.The_current_host_does_not_support_the_0_option,"--build")),e.exit(1);if(n.watch){if(Qoe(e,c))return;let h=Roe(e,void 0,c,R5(e,L5(e,n)),Xoe(e,n));h.jsDocParsingMode=j5;let S=Jke(e,n);Wke(e,t,h,S);let T=h.onWatchStatusChange,x=!1;h.onWatchStatusChange=(D,E,O,F)=>{T?.(D,E,O,F),x&&(D.code===p.Found_0_errors_Watching_for_file_changes.code||D.code===p.Found_1_error_Watching_for_file_changes.code)&&Yoe(I,S)};let I=Ooe(h,s,n,i);return I.build(),Yoe(I,S),x=!0,I}let _=Moe(e,void 0,c,R5(e,L5(e,n)),Koe(e,n));_.jsDocParsingMode=j5;let u=Jke(e,n);Wke(e,t,_,u);let g=Foe(_,s,n),m=n.clean?g.clean():g.build();return Yoe(g,u),YY(),e.exit(m)}function Koe(e,t){return L5(e,t)?(n,i)=>e.write(DV(n,i,e.newLine,e)):void 0}function Lke(e,t,n,i){let{fileNames:s,options:o,projectReferences:c}=i,_=p5(o,void 0,e);_.jsDocParsingMode=j5;let u=_.getCurrentDirectory(),g=fu(_.useCaseSensitiveFileNames());hE(_,T=>ko(T,u,g)),Zoe(e,o,!1);let m={rootNames:s,options:o,projectReferences:c,host:_,configFileParsingDiagnostics:HS(i)},h=JM(m),S=FV(h,n,T=>e.write(T+e.newLine),Koe(e,o));return tq(e,h,void 0),t(h),e.exit(S)}function jke(e,t,n,i){let{options:s,fileNames:o,projectReferences:c}=i;Zoe(e,s,!1);let _=M5(s,e);_.jsDocParsingMode=j5;let u=Poe({host:_,system:e,rootNames:o,options:s,configFileParsingDiagnostics:HS(i),projectReferences:c,reportDiagnostic:n,reportErrorSummary:Koe(e,s),afterProgramEmitAndDiagnostics:g=>{tq(e,g.getProgram(),void 0),t(g)}});return e.exit(u)}function Wke(e,t,n,i){Bke(e,n,!0),n.afterProgramEmitAndDiagnostics=s=>{tq(e,s.getProgram(),i),t(s)}}function Bke(e,t,n){let i=t.createProgram;t.createProgram=(s,o,c,_,u,g)=>(w.assert(s!==void 0||o===void 0&&!!_),o!==void 0&&Zoe(e,o,n),i(s,o,c,_,u,g))}function zke(e,t,n){n.jsDocParsingMode=j5,Bke(e,n,!1);let i=n.afterProgramCreate;n.afterProgramCreate=s=>{i(s),tq(e,s.getProgram(),void 0),t(s)}}function Xoe(e,t){return wV(e,L5(e,t))}function KUe(e,t,n,i,s,o,c){let _=BV({configFileName:i.options.configFilePath,optionsToExtend:s,watchOptionsToExtend:o,system:e,reportDiagnostic:n,reportWatchStatus:Xoe(e,i.options)});return zke(e,t,_),_.configFileParsingResult=i,_.extendedConfigCache=c,JV(_)}function XUe(e,t,n,i,s,o){let c=zV({rootFiles:i,options:s,watchOptions:o,system:e,reportDiagnostic:n,reportWatchStatus:Xoe(e,s)});return zke(e,t,c),JV(c)}function Jke(e,t){if(e===Al&&t.extendedDiagnostics)return UW(),YUe()}function YUe(){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 Yoe(e,t){if(!t)return;if(!QY()){Al.write(p.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:$M(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)}),GW((o,c)=>{eq(o)&&n.push({name:`${s(o)} time`,value:c,type:0})}),KY(),UW(),t.clear(),Vke(Al,n);function i(o){let c=Dve(o);c&&n.push({name:s(o),value:c,type:1})}function s(o){return o.replace("SolutionBuilder::","")}}function Gke(e,t){return e===Al&&(t.diagnostics||t.extendedDiagnostics)}function Uke(e,t){return e===Al&&t.generateTrace}function Zoe(e,t,n){Gke(e,t)&&UW(e),Uke(e,t)&&XY(n?"build":"project",t.generateTrace,t.configFilePath)}function eq(e){return Yi(e,"SolutionBuilder::")}function tq(e,t,n){var i;let s=t.getCompilerOptions();Uke(e,s)&&((i=_n)==null||i.stopTracing());let o;if(Gke(e,s)){o=[];let g=e.getMemoryUsage?e.getMemoryUsage():-1;_("Files",t.getSourceFiles().length);let m=UUe(t);if(s.extendedDiagnostics)for(let[D,E]of m.entries())_("Lines of "+D,E);else _("Lines",hw(m.values(),(D,E)=>D+E,0));_("Identifiers",t.getIdentifierCount()),_("Symbols",t.getSymbolCount()),_("Types",t.getTypeCount()),_("Instantiations",t.getInstantiationCount()),g>=0&&c({name:"Memory used",value:g,type:2},!0);let h=QY(),S=h?SP("Program"):0,T=h?SP("Bind"):0,x=h?SP("Check"):0,I=h?SP("Emit"):0;if(s.extendedDiagnostics){let D=t.getRelationCacheSizes();_("Assignability cache size",D.assignable),_("Identity cache size",D.identity),_("Subtype cache size",D.subtype),_("Strict subtype cache size",D.strictSubtype),h&&GW((E,O)=>{eq(E)||u(`${E} time`,O,!0)})}else h&&(u("I/O read",SP("I/O Read"),!0),u("I/O write",SP("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),Vke(e,o),h?n?(GW(D=>{eq(D)||Ave(D)}),Pve(D=>{eq(D)||Eve(D)})):KY():e.write(p.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,m){o.push(g),m&&n?.addAggregateStatistic(g)}function _(g,m){c({name:g,value:m,type:1},!0)}function u(g,m,h){c({name:g,value:m,type:0},h)}}function Vke(e,t){let n=0,i=0;for(let s of t){s.name.length>n&&(n=s.name.length);let o=qke(s);o.length>i&&(i=o.length)}for(let s of t)e.write(`${s.name}:`.padEnd(n+2)+qke(s).toString().padStart(i)+e.newLine)}function qke(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 ZUe(e,t,n,i){let s=e.getCurrentDirectory(),o=na(Bn(s,"tsconfig.json"));if(e.fileExists(o))t(cc(p.A_tsconfig_json_file_is_already_defined_at_Colon_0,o));else{e.writeFile(o,fse(n,i,e.newLine));let c=[e.newLine,...ZV(e,"Created a new tsconfig.json with:")];c.push(_se(n,e.newLine)+e.newLine+e.newLine),c.push("You can learn more at https://aka.ms/tsconfig"+e.newLine);for(let _ of c)e.write(_)}}function Um(e,t=!0){return{type:e,reportFallback:t}}var $ke=Um(void 0,!1),Hke=Um(void 0,!1),TE=Um(void 0,!0);function ece(e,t){let n=Pu(e,"strictNullChecks");return{serializeTypeOfDeclaration:m,serializeReturnTypeForSignature:S,serializeTypeOfExpression:g,serializeTypeOfAccessor:u,tryReuseExistingTypeNode(ee,Ne){if(t.canReuseTypeNode(ee,Ne))return s(ee,Ne)}};function i(ee,Ne,Ie=Ne){return Ne===void 0?void 0:t.markNodeReuse(ee,Ne.flags&16?Ne:A.cloneNode(Ne),Ie??Ne)}function s(ee,Ne){let{finalizeBoundary:Ie,startRecoveryScope:Ce,hadError:Ve,markError:bt}=t.createRecoveryBoundary(ee),zt=et(Ne,ur,di);if(!Ie())return;return ee.approximateLength+=Ne.end-Ne.pos,zt;function ur(At){if(Ve())return At;let zn=Ce(),ns=Dne(At)?t.enterNewScope(ee,At):void 0,Rn=_s(At);return ns?.(),Ve()?di(At)&&!L2(At)?(zn(),t.serializeExistingTypeNode(ee,At)):At:Rn?t.markNodeReuse(ee,Rn,At):void 0}function Or(At){let zn=tA(At);switch(zn.kind){case 183:return hi(zn);case 186:return Hr(zn);case 199:return _t(zn);case 198:let ns=zn;if(ns.operator===143)return $t(ns)}return et(At,ur,di)}function _t(At){let zn=Or(At.objectType);if(zn!==void 0)return A.updateIndexedAccessTypeNode(At,zn,et(At.indexType,ur,di))}function $t(At){w.assertEqual(At.operator,143);let zn=Or(At.type);if(zn!==void 0)return A.updateTypeOperatorNode(At,zn)}function Hr(At){let{introducesError:zn,node:ns}=t.trackExistingEntityName(ee,At.exprName);if(!zn)return A.updateTypeQueryNode(At,ns,Ur(At.typeArguments,ur,di));let Rn=t.serializeTypeName(ee,At.exprName,!0);if(Rn)return t.markNodeReuse(ee,Rn,At.exprName)}function hi(At){if(t.canReuseTypeNode(ee,At)){let{introducesError:zn,node:ns}=t.trackExistingEntityName(ee,At.typeName),Rn=Ur(At.typeArguments,ur,di);if(zn){let hn=t.serializeTypeName(ee,At.typeName,!1,Rn);if(hn)return t.markNodeReuse(ee,hn,At.typeName)}else{let hn=A.updateTypeReferenceNode(At,ns,Rn);return t.markNodeReuse(ee,hn,At)}}}function _s(At){var zn;if(Qb(At))return et(At.type,ur,di);if(gie(At)||At.kind===319)return A.createKeywordTypeNode(133);if(hie(At))return A.createKeywordTypeNode(159);if(vI(At))return A.createUnionTypeNode([et(At.type,ur,di),A.createLiteralTypeNode(A.createNull())]);if(_G(At))return A.createUnionTypeNode([et(At.type,ur,di),A.createKeywordTypeNode(157)]);if(u7(At))return et(At.type,ur);if(_7(At))return A.createArrayTypeNode(et(At.type,ur,di));if(Ak(At))return A.createTypeLiteralNode(hr(At.jsDocPropertyTags,ht=>{let sr=et(je(ht.name)?ht.name:ht.name.right,ur,je),Zr=t.getJsDocPropertyOverride(ee,At,ht);return A.createPropertySignature(void 0,sr,ht.isBracketed||ht.typeExpression&&_G(ht.typeExpression.type)?A.createToken(58):void 0,Zr||ht.typeExpression&&et(ht.typeExpression.type,ur,di)||A.createKeywordTypeNode(133))}));if(yf(At)&&je(At.typeName)&&At.typeName.escapedText==="")return En(A.createKeywordTypeNode(133),At);if((py(At)||yf(At))&&zF(At))return A.createTypeLiteralNode([A.createIndexSignature(void 0,[A.createParameterDeclaration(void 0,void 0,"x",void 0,et(At.typeArguments[0],ur,di))],et(At.typeArguments[1],ur,di))]);if(bI(At))if(f2(At)){let ht;return A.createConstructorTypeNode(void 0,Ur(At.typeParameters,ur,$o),Vi(At.parameters,(sr,Zr)=>sr.name&&je(sr.name)&&sr.name.escapedText==="new"?(ht=sr.type,void 0):A.createParameterDeclaration(void 0,hn(sr),t.markNodeReuse(ee,A.createIdentifier(ui(sr,Zr)),sr),A.cloneNode(sr.questionToken),et(sr.type,ur,di),void 0)),et(ht||At.type,ur,di)||A.createKeywordTypeNode(133))}else return A.createFunctionTypeNode(Ur(At.typeParameters,ur,$o),hr(At.parameters,(ht,sr)=>A.createParameterDeclaration(void 0,hn(ht),t.markNodeReuse(ee,A.createIdentifier(ui(ht,sr)),ht),A.cloneNode(ht.questionToken),et(ht.type,ur,di),void 0)),et(At.type,ur,di)||A.createKeywordTypeNode(133));if(zA(At))return t.canReuseTypeNode(ee,At)||bt(),At;if($o(At)){let{node:ht}=t.trackExistingEntityName(ee,At.name);return A.updateTypeParameterDeclaration(At,Ur(At.modifiers,ur,la),ht,et(At.constraint,ur,di),et(At.default,ur,di))}if(FS(At)){let ht=_t(At);return ht||(bt(),At)}if(yf(At)){let ht=hi(At);return ht||(bt(),At)}if(sy(At)){if(((zn=At.attributes)==null?void 0:zn.token)===132)return bt(),At;if(!t.canReuseTypeNode(ee,At))return t.serializeExistingTypeNode(ee,At);let ht=Ue(At,At.argument.literal),sr=ht===At.argument.literal?i(ee,At.argument.literal):ht;return A.updateImportTypeNode(At,sr===At.argument.literal?i(ee,At.argument):A.createLiteralTypeNode(sr),et(At.attributes,ur,Dk),et(At.qualifier,ur,m_),Ur(At.typeArguments,ur,di),At.isTypeOf)}if(Gl(At)&&At.name.kind===167&&!t.hasLateBindableName(At)){if(!oy(At))return ns(At,ur);if(t.shouldRemoveDeclaration(ee,At))return}if(Ns(At)&&!At.type||ds(At)&&!At.type&&!At.initializer||s_(At)&&!At.type&&!At.initializer||Bi(At)&&!At.type&&!At.initializer){let ht=ns(At,ur);return ht===At&&(ht=t.markNodeReuse(ee,A.cloneNode(At),At)),ht.type=A.createKeywordTypeNode(133),Bi(At)&&(ht.modifiers=void 0),ht}if(MS(At)){let ht=Hr(At);return ht||(bt(),At)}if(pa(At)&&mo(At.expression)){let{node:ht,introducesError:sr}=t.trackExistingEntityName(ee,At.expression);if(sr){let Zr=t.serializeTypeOfExpression(ee,At.expression),Zn;if(lv(Zr))Zn=Zr.literal;else{let Xn=t.evaluateEntityNameExpression(At.expression),Pi=typeof Xn.value=="string"?A.createStringLiteral(Xn.value,void 0):typeof Xn.value=="number"?A.createNumericLiteral(Xn.value,0):void 0;if(!Pi)return Om(Zr)&&t.trackComputedName(ee,At.expression),At;Zn=Pi}return Zn.kind===11&&$_(Zn.text,wa(e))?A.createIdentifier(Zn.text):Zn.kind===9&&!Zn.text.startsWith("-")?Zn:A.updateComputedPropertyName(At,Zn)}else return A.updateComputedPropertyName(At,ht)}if(L2(At)){let ht;if(je(At.parameterName)){let{node:sr,introducesError:Zr}=t.trackExistingEntityName(ee,At.parameterName);Zr&&bt(),ht=sr}else ht=A.cloneNode(At.parameterName);return A.updateTypePredicateNode(At,A.cloneNode(At.assertsModifier),ht,et(At.type,ur,di))}if(j2(At)||v_(At)||Ck(At)){let ht=ns(At,ur),sr=t.markNodeReuse(ee,ht===At?A.cloneNode(At):ht,At),Zr=Na(sr);return dn(sr,Zr|(ee.flags&1024&&v_(At)?0:1)),sr}if(ya(At)&&ee.flags&268435456&&!At.singleQuote){let ht=A.cloneNode(At);return ht.singleQuote=!0,ht}if(RS(At)){let ht=et(At.checkType,ur,di),sr=t.enterNewScope(ee,At),Zr=et(At.extendsType,ur,di),Zn=et(At.trueType,ur,di);sr();let Xn=et(At.falseType,ur,di);return A.updateConditionalTypeNode(At,ht,Zr,Zn,Xn)}if(Gb(At)){if(At.operator===158&&At.type.kind===155){if(!t.canReuseTypeNode(ee,At))return bt(),At}else if(At.operator===143){let ht=$t(At);return ht||(bt(),At)}}return ns(At,ur);function ns(ht,sr){let Zr=!ee.enclosingFile||ee.enclosingFile!==Fr(ht);return Ir(ht,sr,void 0,Zr?Rn:void 0)}function Rn(ht,sr,Zr,Zn,Xn){let Pi=Ur(ht,sr,Zr,Zn,Xn);return Pi&&(Pi.pos!==-1||Pi.end!==-1)&&(Pi===ht&&(Pi=A.createNodeArray(ht.slice(),ht.hasTrailingComma)),$d(Pi,-1,-1)),Pi}function hn(ht){return ht.dotDotDotToken||(ht.type&&_7(ht.type)?A.createToken(26):void 0)}function ui(ht,sr){return ht.name&&je(ht.name)&&ht.name.escapedText==="this"?"this":hn(ht)?"args":`arg${sr}`}function Ue(ht,sr){let Zr=t.getModuleSpecifierOverride(ee,ht,sr);return Zr?En(A.createStringLiteral(Zr),sr):sr}}}function o(ee,Ne,Ie){if(!ee)return;let Ce;return(!Ie||tt(ee))&&t.canReuseTypeNode(Ne,ee)&&(Ce=s(Ne,ee),Ce!==void 0&&(Ce=_e(Ce,Ie,void 0,Ne))),Ce}function c(ee,Ne,Ie,Ce,Ve,bt=Ve!==void 0){if(!ee||!t.canReuseTypeNodeAnnotation(Ne,Ie,ee,Ce,Ve)&&(!Ve||!t.canReuseTypeNodeAnnotation(Ne,Ie,ee,Ce,!1)))return;let zt;return(!Ve||tt(ee))&&(zt=o(ee,Ne,Ve)),zt!==void 0||!bt?zt:(Ne.tracker.reportInferenceFallback(Ie),t.serializeExistingTypeNode(Ne,ee,Ve)??A.createKeywordTypeNode(133))}function _(ee,Ne,Ie,Ce){if(!ee)return;let Ve=o(ee,Ne,Ie);return Ve!==void 0?Ve:(Ne.tracker.reportInferenceFallback(Ce??ee),t.serializeExistingTypeNode(Ne,ee,Ie)??A.createKeywordTypeNode(133))}function u(ee,Ne,Ie){return I(ee,Ne,Ie)??K(ee,t.getAllAccessorDeclarations(ee),Ie,Ne)}function g(ee,Ne,Ie,Ce){let Ve=te(ee,Ne,!1,Ie,Ce);return Ve.type!==void 0?Ve.type:G(ee,Ne,Ve.reportFallback)}function m(ee,Ne,Ie){switch(ee.kind){case 169:case 341:return E(ee,Ne,Ie);case 260:return D(ee,Ne,Ie);case 171:case 348:case 172:return F(ee,Ne,Ie);case 208:return B(ee,Ne,Ie);case 277:return g(ee.expression,Ie,void 0,!0);case 211:case 212:case 226:return O(ee,Ne,Ie);case 303:case 304:return h(ee,Ne,Ie);default:w.assertNever(ee,`Node needs to be an inferrable node, found ${w.formatSyntaxKind(ee.kind)}`)}}function h(ee,Ne,Ie){let Ce=pl(ee),Ve;if(Ce&&t.canReuseTypeNodeAnnotation(Ie,ee,Ce,Ne)&&(Ve=o(Ce,Ie)),!Ve&&ee.kind===303){let bt=ee.initializer,zt=zS(bt)?kI(bt):bt.kind===234||bt.kind===216?bt.type:void 0;zt&&!vd(zt)&&t.canReuseTypeNodeAnnotation(Ie,ee,zt,Ne)&&(Ve=o(zt,Ie))}return Ve??B(ee,Ne,Ie,!1)}function S(ee,Ne,Ie){switch(ee.kind){case 177:return u(ee,Ne,Ie);case 174:case 262:case 180:case 173:case 179:case 176:case 178:case 181:case 184:case 185:case 218:case 219:case 317:case 323:return ct(ee,Ne,Ie);default:w.assertNever(ee,`Node needs to be an inferrable node, found ${w.formatSyntaxKind(ee.kind)}`)}}function T(ee){if(ee)return ee.kind===177?un(ee)&&h0(ee)||Wf(ee):Qz(ee)}function x(ee,Ne){let Ie=T(ee);return!Ie&&ee!==Ne.firstAccessor&&(Ie=T(Ne.firstAccessor)),!Ie&&Ne.secondAccessor&&ee!==Ne.secondAccessor&&(Ie=T(Ne.secondAccessor)),Ie}function I(ee,Ne,Ie){let Ce=t.getAllAccessorDeclarations(ee),Ve=x(ee,Ce);if(Ve&&!L2(Ve))return U(Ie,ee,()=>c(Ve,Ie,ee,Ne)??B(ee,Ne,Ie));if(Ce.getAccessor)return U(Ie,Ce.getAccessor,()=>ct(Ce.getAccessor,Ne,Ie))}function D(ee,Ne,Ie){var Ce;let Ve=pl(ee),bt=TE;return Ve?bt=Um(c(Ve,Ie,ee,Ne)):ee.initializer&&(((Ce=Ne.declarations)==null?void 0:Ce.length)===1||Hy(Ne.declarations,oi)===1)&&!t.isExpandoFunctionDeclaration(ee)&&!Je(ee)&&(bt=te(ee.initializer,Ie,void 0,void 0,Rte(ee))),bt.type!==void 0?bt.type:B(ee,Ne,Ie,bt.reportFallback)}function E(ee,Ne,Ie){let Ce=ee.parent;if(Ce.kind===178)return u(Ce,void 0,Ie);let Ve=pl(ee),bt=t.requiresAddingImplicitUndefined(ee,Ne,Ie.enclosingDeclaration),zt=TE;return Ve?zt=Um(c(Ve,Ie,ee,Ne,bt)):Bi(ee)&&ee.initializer&&je(ee.name)&&!Je(ee)&&(zt=te(ee.initializer,Ie,void 0,bt)),zt.type!==void 0?zt.type:B(ee,Ne,Ie,zt.reportFallback)}function O(ee,Ne,Ie){let Ce=pl(ee),Ve;Ce&&(Ve=c(Ce,Ie,ee,Ne));let bt=Ie.suppressReportInferenceFallback;Ie.suppressReportInferenceFallback=!0;let zt=Ve??B(ee,Ne,Ie,!1);return Ie.suppressReportInferenceFallback=bt,zt}function F(ee,Ne,Ie){let Ce=pl(ee),Ve=t.requiresAddingImplicitUndefined(ee,Ne,Ie.enclosingDeclaration),bt=TE;if(Ce)bt=Um(c(Ce,Ie,ee,Ne,Ve));else{let zt=ds(ee)?ee.initializer:void 0;if(zt&&!Je(ee)){let ur=L6(ee);bt=te(zt,Ie,void 0,Ve,ur)}}return bt.type!==void 0?bt.type:B(ee,Ne,Ie,bt.reportFallback)}function B(ee,Ne,Ie,Ce=!0){return Ce&&Ie.tracker.reportInferenceFallback(ee),Ie.noInferenceFallback===!0?A.createKeywordTypeNode(133):t.serializeTypeOfDeclaration(Ie,ee,Ne)}function G(ee,Ne,Ie=!0,Ce){return w.assert(!Ce),Ie&&Ne.tracker.reportInferenceFallback(ee),Ne.noInferenceFallback===!0?A.createKeywordTypeNode(133):t.serializeTypeOfExpression(Ne,ee)??A.createKeywordTypeNode(133)}function $(ee,Ne,Ie,Ce){return Ce&&Ne.tracker.reportInferenceFallback(ee),Ne.noInferenceFallback===!0?A.createKeywordTypeNode(133):t.serializeReturnTypeForSignature(Ne,ee,Ie)??A.createKeywordTypeNode(133)}function K(ee,Ne,Ie,Ce,Ve=!0){return ee.kind===177?ct(ee,Ce,Ie,Ve):(Ve&&Ie.tracker.reportInferenceFallback(ee),(Ne.getAccessor&&ct(Ne.getAccessor,Ce,Ie,Ve))??t.serializeTypeOfDeclaration(Ie,ee,Ce)??A.createKeywordTypeNode(133))}function U(ee,Ne,Ie){let Ce=t.enterNewScope(ee,Ne),Ve=Ie();return Ce(),Ve}function me(ee,Ne,Ie,Ce){return vd(Ne)?te(ee,Ie,!0,Ce):Um(_(Ne,Ie,Ce))}function te(ee,Ne,Ie=!1,Ce=!1,Ve=!1){switch(ee.kind){case 217:return zS(ee)?me(ee.expression,kI(ee),Ne,Ce):te(ee.expression,Ne,Ie,Ce);case 80:if(t.isUndefinedIdentifierExpression(ee))return Um(se());break;case 106:return Um(n?_e(A.createLiteralTypeNode(A.createNull()),Ce,ee,Ne):A.createKeywordTypeNode(133));case 219:case 218:return w.type(ee),U(Ne,ee,()=>V(ee,Ne));case 216:case 234:let bt=ee;return me(bt.expression,bt.type,Ne,Ce);case 224:let zt=ee;if(UO(zt))return xe(zt.operator===40?zt.operand:zt,zt.operand.kind===10?163:150,Ne,Ie||Ve,Ce);break;case 209:return ie(ee,Ne,Ie,Ce);case 210:return de(ee,Ne,Ie,Ce);case 231:return Um(G(ee,Ne,!0,Ce));case 228:if(!Ie&&!Ve)return Um(A.createKeywordTypeNode(154));break;default:let ur,Or=ee;switch(ee.kind){case 9:ur=150;break;case 15:Or=A.createStringLiteral(ee.text),ur=154;break;case 11:ur=154;break;case 10:ur=163;break;case 112:case 97:ur=136;break}if(ur)return xe(Or,ur,Ne,Ie||Ve,Ce)}return TE}function V(ee,Ne){let Ie=ct(ee,void 0,Ne),Ce=ve(ee.typeParameters,Ne),Ve=ee.parameters.map(bt=>H(bt,Ne));return Um(A.createFunctionTypeNode(Ce,Ve,Ie))}function ne(ee,Ne,Ie){if(!Ie)return Ne.tracker.reportInferenceFallback(ee),!1;for(let Ce of ee.elements)if(Ce.kind===230)return Ne.tracker.reportInferenceFallback(Ce),!1;return!0}function ie(ee,Ne,Ie,Ce){if(!ne(ee,Ne,Ie))return Ce||Ul(Td(ee).parent)?Hke:Um(G(ee,Ne,!1,Ce));let Ve=Ne.noInferenceFallback;Ne.noInferenceFallback=!0;let bt=[];for(let ur of ee.elements)if(w.assert(ur.kind!==230),ur.kind===232)bt.push(se());else{let Or=te(ur,Ne,Ie),_t=Or.type!==void 0?Or.type:G(ur,Ne,Or.reportFallback);bt.push(_t)}let zt=A.createTupleTypeNode(bt);return zt.emitNode={flags:1,autoGenerate:void 0,internalFlags:0},Ne.noInferenceFallback=Ve,$ke}function oe(ee,Ne){let Ie=!0;for(let Ce of ee.properties){if(Ce.flags&262144){Ie=!1;break}if(Ce.kind===304||Ce.kind===305)Ne.tracker.reportInferenceFallback(Ce),Ie=!1;else if(Ce.name.flags&262144){Ie=!1;break}else if(Ce.name.kind===81)Ie=!1;else if(Ce.name.kind===167){let Ve=Ce.name.expression;!UO(Ve,!1)&&!t.isDefinitelyReferenceToGlobalSymbolObject(Ve)&&(Ne.tracker.reportInferenceFallback(Ce.name),Ie=!1)}}return Ie}function de(ee,Ne,Ie,Ce){if(!oe(ee,Ne))return Ce||Ul(Td(ee).parent)?Hke:Um(G(ee,Ne,!1,Ce));let Ve=Ne.noInferenceFallback;Ne.noInferenceFallback=!0;let bt=[],zt=Ne.flags;Ne.flags|=4194304;for(let Or of ee.properties){w.assert(!Eu(Or)&&!xh(Or));let _t=Or.name,$t;switch(Or.kind){case 174:$t=U(Ne,Or,()=>Ge(Or,_t,Ne,Ie));break;case 303:$t=ye(Or,_t,Ne,Ie);break;case 178:case 177:$t=De(Or,_t,Ne);break}$t&&(dl($t,Or),bt.push($t))}Ne.flags=zt;let ur=A.createTypeLiteralNode(bt);return Ne.flags&1024||dn(ur,1),Ne.noInferenceFallback=Ve,$ke}function ye(ee,Ne,Ie,Ce){let Ve=Ce?[A.createModifier(148)]:[],bt=te(ee.initializer,Ie,Ce),zt=bt.type!==void 0?bt.type:B(ee,void 0,Ie,bt.reportFallback);return A.createPropertySignature(Ve,i(Ie,Ne),void 0,zt)}function H(ee,Ne){return A.updateParameterDeclaration(ee,[],i(Ne,ee.dotDotDotToken),t.serializeNameOfParameter(Ne,ee),t.isOptionalParameter(ee)?A.createToken(58):void 0,E(ee,void 0,Ne),void 0)}function ve(ee,Ne){return ee?.map(Ie=>{var Ce;let{node:Ve}=t.trackExistingEntityName(Ne,Ie.name);return A.updateTypeParameterDeclaration(Ie,(Ce=Ie.modifiers)==null?void 0:Ce.map(bt=>i(Ne,bt)),Ve,_(Ie.constraint,Ne),_(Ie.default,Ne))})}function Ge(ee,Ne,Ie,Ce){let Ve=ct(ee,void 0,Ie),bt=ve(ee.typeParameters,Ie),zt=ee.parameters.map(ur=>H(ur,Ie));return Ce?A.createPropertySignature([A.createModifier(148)],i(Ie,Ne),i(Ie,ee.questionToken),A.createFunctionTypeNode(bt,zt,Ve)):(je(Ne)&&Ne.escapedText==="new"&&(Ne=A.createStringLiteral("new")),A.createMethodSignature([],i(Ie,Ne),i(Ie,ee.questionToken),bt,zt,Ve))}function De(ee,Ne,Ie){let Ce=t.getAllAccessorDeclarations(ee),Ve=Ce.getAccessor&&T(Ce.getAccessor),bt=Ce.setAccessor&&T(Ce.setAccessor);if(Ve!==void 0&&bt!==void 0)return U(Ie,ee,()=>{let zt=ee.parameters.map(ur=>H(ur,Ie));return ch(ee)?A.updateGetAccessorDeclaration(ee,[],i(Ie,Ne),zt,_(Ve,Ie),void 0):A.updateSetAccessorDeclaration(ee,[],i(Ie,Ne),zt,void 0)});if(Ce.firstAccessor===ee){let ur=(Ve?U(Ie,Ce.getAccessor,()=>_(Ve,Ie)):bt?U(Ie,Ce.setAccessor,()=>_(bt,Ie)):void 0)??K(ee,Ce,Ie,void 0);return A.createPropertySignature(Ce.setAccessor===void 0?[A.createModifier(148)]:[],i(Ie,Ne),void 0,ur)}}function se(){return n?A.createKeywordTypeNode(157):A.createKeywordTypeNode(133)}function xe(ee,Ne,Ie,Ce,Ve){let bt;return Ce?(ee.kind===224&&ee.operator===40&&(bt=A.createLiteralTypeNode(i(Ie,ee.operand))),bt=A.createLiteralTypeNode(i(Ie,ee))):bt=A.createKeywordTypeNode(Ne),Um(_e(bt,Ve,ee,Ie))}function _e(ee,Ne,Ie,Ce){let Ve=Ie&&Td(Ie).parent,bt=Ve&&Ul(Ve)&&I2(Ve);return!n||!(Ne||bt)?ee:(tt(ee)||Ce.tracker.reportInferenceFallback(ee),cv(ee)?A.createUnionTypeNode([...ee.types,A.createKeywordTypeNode(157)]):A.createUnionTypeNode([ee,A.createKeywordTypeNode(157)]))}function tt(ee){return!n||F_(ee.kind)||ee.kind===201||ee.kind===184||ee.kind===185||ee.kind===188||ee.kind===189||ee.kind===187||ee.kind===203||ee.kind===197?!0:ee.kind===196?tt(ee.type):ee.kind===192||ee.kind===193?ee.types.every(tt):!1}function ct(ee,Ne,Ie,Ce=!0){let Ve=TE,bt=f2(ee)?pl(ee.parameters[0]):Wf(ee);return bt?Ve=Um(c(bt,Ie,ee,Ne)):pk(ee)&&(Ve=le(ee,Ie)),Ve.type!==void 0?Ve.type:$(ee,Ie,Ne,Ce&&Ve.reportFallback&&!bt)}function le(ee,Ne){let Ie;if(ee&&!Tc(ee.body)){if(Kc(ee)&3)return TE;let Ve=ee.body;Ve&&Fs(Ve)?D0(Ve,bt=>{if(bt.parent!==Ve)return Ie=void 0,!0;if(!Ie)Ie=bt.expression;else return Ie=void 0,!0}):Ie=Ve}if(Ie)if(Je(Ie)){let Ce=zS(Ie)?kI(Ie):dI(Ie)||a7(Ie)?Ie.type:void 0;if(Ce&&!vd(Ce))return Um(o(Ce,Ne))}else return te(Ie,Ne);return TE}function Je(ee){return gr(ee.parent,Ne=>qs(Ne)||!xo(Ne)&&!!pl(Ne)||Wm(Ne)||hI(Ne))}}var Q0={};nt(Q0,{NameValidationResult:()=>txe,discoverTypings:()=>rVe,isTypingUpToDate:()=>Zke,loadSafeList:()=>eVe,loadTypesMap:()=>tVe,nonRelativeModuleNameForTypingCache:()=>exe,renderPackageNameValidationFailure:()=>iVe,validatePackageName:()=>nVe});var W5="action::set",B5="action::invalidate",z5="action::packageInstalled",rq="event::typesRegistry",nq="event::beginInstallTypes",iq="event::endInstallTypes",tce="event::initializationFailed",XM="action::watchTypingLocations",sq;(e=>{e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(sq||(sq={}));function Qke(e){return Al.args.includes(e)}function Kke(e){let t=Al.args.indexOf(e);return t>=0&&t<Al.args.length-1?Al.args[t+1]:void 0}function Xke(){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 Yke=`
`;function kE(e){return Yke+e.replace(/\n/g,Yke)}function s1(e){return kE(JSON.stringify(e,void 0,2))}function Zke(e,t){return new Wd(C8(t,`ts${Xi}`)||C8(t,"latest")).compareTo(e.version)<=0}function exe(e){return lI.has(e)?"node":e}function eVe(e,t){let n=gM(t,i=>e.readFile(i));return new Map(Object.entries(n.config))}function tVe(e,t){var n;let i=gM(t,s=>e.readFile(s));if((n=i.config)!=null&&n.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function rVe(e,t,n,i,s,o,c,_,u,g){if(!c||!c.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};let m=new Map;n=Vi(n,B=>{let G=na(B);if(vh(G))return G});let h=[];c.include&&E(c.include,"Explicitly included types");let S=c.exclude||[];if(!g.types){let B=new Set(n.map(Yn));B.add(i),B.forEach(G=>{O(G,"bower.json","bower_components",h),O(G,"package.json","node_modules",h)})}if(c.disableFilenameBasedTypeAcquisition||F(n),_){let B=nS(_.map(exe),aS,wu);E(B,"Inferred typings from unresolved imports")}for(let B of S)m.delete(B)&&t&&t(`Typing for ${B} is in exclude list, will be ignored.`);o.forEach((B,G)=>{let $=u.get(G);m.get(G)===!1&&$!==void 0&&Zke(B,$)&&m.set(G,B.typingLocation)});let T=[],x=[];m.forEach((B,G)=>{B?x.push(B):T.push(G)});let I={cachedTypingPaths:x,newTypingNames:T,filesToWatch:h};return t&&t(`Finished typings discovery:${s1(I)}`),I;function D(B){m.has(B)||m.set(B,!1)}function E(B,G){t&&t(`${G}: ${JSON.stringify(B)}`),or(B,D)}function O(B,G,$,K){let U=Bn(B,G),me,te;e.fileExists(U)&&(K.push(U),me=gM(U,oe=>e.readFile(oe)).config,te=ga([me.dependencies,me.devDependencies,me.optionalDependencies,me.peerDependencies],bm),E(te,`Typing names in '${U}' dependencies`));let V=Bn(B,$);if(K.push(V),!e.directoryExists(V))return;let ne=[],ie=te?te.map(oe=>Bn(V,oe,G)):e.readDirectory(V,[".json"],void 0,void 0,3).filter(oe=>{if(fl(oe)!==G)return!1;let de=Iu(na(oe)),ye=de[de.length-3][0]==="@";return ye&&l0(de[de.length-4])===$||!ye&&l0(de[de.length-3])===$});t&&t(`Searching for typing names in ${V}; all files: ${JSON.stringify(ie)}`);for(let oe of ie){let de=na(oe),H=gM(de,Ge=>e.readFile(Ge)).config;if(!H.name)continue;let ve=H.types||H.typings;if(ve){let Ge=as(ve,Yn(de));e.fileExists(Ge)?(t&&t(` Package '${H.name}' provides its own types.`),m.set(H.name,Ge)):t&&t(` Package '${H.name}' provides its own types but they are missing.`)}else ne.push(H.name)}E(ne," Found package names")}function F(B){let G=Vi(B,K=>{if(!vh(K))return;let U=i_(l0(fl(K))),me=LW(U);return s.get(me)});G.length&&E(G,"Inferred typings from file names"),pt(B,K=>nc(K,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),D("react"))}}var txe=(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))(txe||{}),rxe=214;function nVe(e){return rce(e,!0)}function rce(e,t){if(!e)return 1;if(e.length>rxe)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=rce(n[1],!1);if(i!==0)return{name:n[1],isScopeName:!0,result:i};let s=rce(n[2],!1);return s!==0?{name:n[2],isScopeName:!1,result:s}:0}}return encodeURIComponent(e)!==e?5:0}function iVe(e,t){return typeof e=="object"?nxe(t,e.result,e.name,e.isScopeName):nxe(t,e,t,!1)}function nxe(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 ${rxe} 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 J5;(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})(J5||(J5={}));var nce=(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))(nce||{}),ice=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(ice||{}),sce=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(sce||{}),cd={},ace=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(ace||{}),aq=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(aq||{}),oq=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(oq||{}),oce=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(oce||{}),cce=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(cce||{}),lce=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(lce||{}),cq=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(cq||{});function G5(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 ixe=G5(`
`),U5=(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))(U5||{}),uce=(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))(uce||{}),_ce=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(_ce||{}),fce=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(fce||{}),pce=(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))(pce||{}),dce=(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))(dce||{}),mce=(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))(mce||{}),gce=(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))(gce||{}),hce=(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))(hce||{}),lq=(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))(lq||{}),ou=ah(99,!0),yce=(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))(yce||{});function V5(e){switch(e.kind){case 260:return un(e)&&PB(e)?7:1;case 169:case 208:case 172:case 171:case 303:case 304:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 299:case 291:return 1;case 168:case 264:case 265:case 187:return 2;case 346:return e.name===void 0?3:2;case 306:case 263:return 3;case 267:return e_(e)||gy(e)===1?5:4;case 266:case 275:case 276:case 271:case 272:case 277:case 278:return 7;case 307:return 5}return 7}function zk(e){e=Tq(e);let t=e.parent;return e.kind===307?1:Ho(t)||zu(t)||dy(t)||a_(t)||Cd(t)||Ol(t)&&e===t.name?7:q5(e)?sVe(e):Cg(e)?V5(t):m_(e)&&gr(e,uf($A,t2,Kb))?7:lVe(e)?2:aVe(e)?4:$o(t)?(w.assert(ad(t.parent)),2):lv(t)?3:1}function sVe(e){let t=e.kind===166?e:y_(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===271?7:4}function q5(e){for(;e.parent.kind===166;)e=e.parent;return ck(e.parent)&&e.parent.moduleReference===e}function aVe(e){return oVe(e)||cVe(e)}function oVe(e){let t=e,n=!0;if(t.parent.kind===166){for(;t.parent&&t.parent.kind===166;)t=t.parent;n=t.right===e}return t.parent.kind===183&&!n}function cVe(e){let t=e,n=!0;if(t.parent.kind===211){for(;t.parent&&t.parent.kind===211;)t=t.parent;n=t.name===e}if(!n&&t.parent.kind===233&&t.parent.parent.kind===298){let i=t.parent.parent.parent;return i.kind===263&&t.parent.parent.token===119||i.kind===264&&t.parent.parent.token===96}return!1}function lVe(e){switch(fA(e)&&(e=e.parent),e.kind){case 110:return!Ud(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return Im(e.parent)}return!1}function uq(e,t=!1,n=!1){return YM(e,qs,fq,t,n)}function xE(e,t=!1,n=!1){return YM(e,OS,fq,t,n)}function _q(e,t=!1,n=!1){return YM(e,km,fq,t,n)}function vce(e,t=!1,n=!1){return YM(e,Ub,uVe,t,n)}function bce(e,t=!1,n=!1){return YM(e,Rl,fq,t,n)}function Sce(e,t=!1,n=!1){return YM(e,Wu,_Ve,t,n)}function fq(e){return e.expression}function uVe(e){return e.tag}function _Ve(e){return e.tagName}function YM(e,t,n,i,s){let o=i?fVe(e):$5(e);return s&&(o=Wc(o)),!!o&&!!o.parent&&t(o.parent)&&n(o.parent)===o}function $5(e){return UI(e)?e.parent:e}function fVe(e){return UI(e)||gq(e)?e.parent:e}function H5(e,t){for(;e;){if(e.kind===256&&e.label.escapedText===t)return e.label;e=e.parent}}function ZM(e,t){return Nn(e.expression)?e.expression.name.text===t:!1}function e3(e){var t;return je(e)&&((t=Vn(e.parent,OP))==null?void 0:t.label)===e}function pq(e){var t;return je(e)&&((t=Vn(e.parent,z0))==null?void 0:t.label)===e}function dq(e){return pq(e)||e3(e)}function mq(e){var t;return((t=Vn(e.parent,Fw))==null?void 0:t.tagName)===e}function Tce(e){var t;return((t=Vn(e.parent,y_))==null?void 0:t.right)===e}function UI(e){var t;return((t=Vn(e.parent,Nn))==null?void 0:t.name)===e}function gq(e){var t;return((t=Vn(e.parent,wo))==null?void 0:t.argumentExpression)===e}function hq(e){var t;return((t=Vn(e.parent,nl))==null?void 0:t.name)===e}function yq(e){var t;return je(e)&&((t=Vn(e.parent,Ns))==null?void 0:t.name)===e}function Q5(e){switch(e.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return vs(e.parent)===e;case 212:return e.parent.argumentExpression===e;case 167:return!0;case 201:return e.parent.parent.kind===199;default:return!1}}function kce(e){return Mb(e.parent.parent)&&XP(e.parent.parent)===e}function Jk(e){for(td(e)&&(e=e.parent.parent);;){if(e=e.parent,!e)return;switch(e.kind){case 307:case 174:case 173:case 262:case 218:case 177:case 178:case 263:case 264:case 266:case 267:return e}}}function QS(e){switch(e.kind){case 307:return xl(e)?"module":"script";case 267:return"module";case 263:case 231:return"class";case 264:return"interface";case 265:case 338:case 346:return"type";case 266:return"enum";case 260:return t(e);case 208:return t(Am(e));case 219:case 262:case 218:return"function";case 177:return"getter";case 178:return"setter";case 174:case 173:return"method";case 303:let{initializer:n}=e;return Ns(n)?"method":"property";case 172:case 171:case 304:case 305:return"property";case 181:return"index";case 180:return"construct";case 179:return"call";case 176:case 175:return"constructor";case 168:return"type parameter";case 306:return"enum member";case 169:return ei(e,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:let i=Vc(e),{right:s}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:let c=QS(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 Cd(e.parent)?"alias":"";case 277:let o=QS(e.expression);return o===""?"const":o;default:return""}function t(n){return Bw(n)?"const":wF(n)?"let":"var"}}function VI(e){switch(e.kind){case 110:return!0;case 80:return Hz(e)&&e.parent.kind===169;default:return!1}}var pVe=/^\/\/\/\s*</;function ld(e,t){let n=nh(t),i=t.getLineAndCharacterOfPosition(e).line;return n[i]}function xce(e,t){return t3(e,t.pos)&&t3(e,t.end)}function qI(e,t){return e.pos<=t&&t<=e.end}function t3(e,t){return e.pos<t&&t<e.end}function r3(e,t,n){return e.pos<=t&&e.end>=n}function CE(e,t,n){return X5(e.pos,e.end,t,n)}function K5(e,t,n,i){return X5(e.getStart(t),e.end,n,i)}function X5(e,t,n,i){let s=Math.max(e,n),o=Math.min(t,i);return s<o}function vq(e,t,n){return w.assert(e.pos<=t),t<e.end||!Zd(e,n)}function Zd(e,t){if(e===void 0||Tc(e))return!1;switch(e.kind){case 263:case 264:case 266:case 210:case 206:case 187:case 241:case 268:case 269:case 275:case 279:return bq(e,20,t);case 299:return Zd(e.block,t);case 214:if(!e.arguments)return!0;case 213:case 217:case 196:return bq(e,22,t);case 184:case 185:return Zd(e.type,t);case 176:case 177:case 178:case 262:case 218:case 174:case 173:case 180:case 179:case 219:return e.body?Zd(e.body,t):e.type?Zd(e.type,t):Sq(e,22,t);case 267:return!!e.body&&Zd(e.body,t);case 245:return e.elseStatement?Zd(e.elseStatement,t):Zd(e.thenStatement,t);case 244:return Zd(e.expression,t)||Sq(e,27,t);case 209:case 207:case 212:case 167:case 189:return bq(e,24,t);case 181:return e.type?Zd(e.type,t):Sq(e,24,t);case 296:case 297:return!1;case 248:case 249:case 250:case 247:return Zd(e.statement,t);case 246:return Sq(e,117,t)?bq(e,22,t):Zd(e.statement,t);case 186:return Zd(e.exprName,t);case 221:case 220:case 222:case 229:case 230:return Zd(e.expression,t);case 215:return Zd(e.template,t);case 228:let i=zo(e.templateSpans);return Zd(i,t);case 239:return Zp(e.literal);case 278:case 272:return Zp(e.moduleSpecifier);case 224:return Zd(e.operand,t);case 226:return Zd(e.right,t);case 227:return Zd(e.whenFalse,t);default:return!0}}function bq(e,t,n){let i=e.getChildren(n);if(i.length){let s=xa(i);if(s.kind===t)return!0;if(s.kind===27&&i.length!==1)return i[i.length-2].kind===t}return!1}function Cce(e){let t=Y5(e);if(!t)return;let n=t.getChildren();return{listItemIndex:Lw(n,e),list:t}}function Sq(e,t,n){return!!_o(e,t,n)}function _o(e,t,n){return On(e.getChildren(n),i=>i.kind===t)}function Y5(e){let t=On(e.parent.getChildren(),n=>TI(n)&&O_(n,e));return w.assert(!t||Ts(t.getChildren(),e)),t}function sxe(e){return e.kind===90}function dVe(e){return e.kind===86}function mVe(e){return e.kind===100}function gVe(e){if(Gl(e))return e.name;if(gl(e)){let t=e.modifiers&&On(e.modifiers,sxe);if(t)return t}if(ml(e)){let t=On(e.getChildren(),dVe);if(t)return t}}function hVe(e){if(Gl(e))return e.name;if(jc(e)){let t=On(e.modifiers,sxe);if(t)return t}if(Ao(e)){let t=On(e.getChildren(),mVe);if(t)return t}}function yVe(e){let t;return gr(e,n=>(di(n)&&(t=n),!y_(n.parent)&&!di(n.parent)&&!uS(n.parent))),t}function Z5(e,t){if(e.flags&16777216)return;let n=mL(e,t);if(n)return n;let i=yVe(e);return i&&t.getTypeAtLocation(i)}function vVe(e,t){if(!t)switch(e.kind){case 263:case 231:return gVe(e);case 262:case 218:return hVe(e);case 176:return e}if(Gl(e))return e.name}function axe(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(jm(e.importClause.namedBindings)){let n=hg(e.importClause.namedBindings.elements);return n?n.name:void 0}else if(kh(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function oxe(e,t){if(e.exportClause){if(Fp(e.exportClause))return hg(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(Dg(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function bVe(e){if(e.types.length===1)return e.types[0].expression}function cxe(e,t){let{parent:n}=e;if(la(e)&&(t||e.kind!==90)?od(n)&&Ts(n.modifiers,e):e.kind===86?gl(n)||ml(e):e.kind===100?jc(n)||Ao(e):e.kind===120?hu(n):e.kind===94?LS(n):e.kind===156?sd(n):e.kind===145||e.kind===144?nl(n):e.kind===102?Ol(n):e.kind===139?Mp(n):e.kind===153&&X_(n)){let i=vVe(n,t);if(i)return i}if((e.kind===115||e.kind===87||e.kind===121)&&au(n)&&n.declarations.length===1){let i=n.declarations[0];if(je(i.name))return i.name}if(e.kind===156){if(Cd(n)&&n.isTypeOnly){let i=axe(n.parent,t);if(i)return i}if(Xc(n)&&n.isTypeOnly){let i=oxe(n,t);if(i)return i}}if(e.kind===130){if(a_(n)&&n.propertyName||zu(n)&&n.propertyName||kh(n)||Dg(n))return n.name;if(Xc(n)&&n.exportClause&&Dg(n.exportClause))return n.exportClause.name}if(e.kind===102&&sc(n)){let i=axe(n,t);if(i)return i}if(e.kind===95){if(Xc(n)){let i=oxe(n,t);if(i)return i}if(Ho(n))return Wc(n.expression)}if(e.kind===149&&dy(n))return n.expression;if(e.kind===161&&(sc(n)||Xc(n))&&n.moduleSpecifier)return n.moduleSpecifier;if((e.kind===96||e.kind===119)&&vf(n)&&n.token===e.kind){let i=bVe(n);if(i)return i}if(e.kind===96){if($o(n)&&n.constraint&&yf(n.constraint))return n.constraint.typeName;if(RS(n)&&yf(n.extendsType))return n.extendsType.typeName}if(e.kind===140&&kk(n))return n.typeParameter.name;if(e.kind===103&&$o(n)&&Ck(n.parent))return n.name;if(e.kind===143&&Gb(n)&&n.operator===143&&yf(n.type))return n.type.typeName;if(e.kind===148&&Gb(n)&&n.operator===148&&X4(n.type)&&yf(n.type.elementType))return n.type.elementType.typeName;if(!t){if((e.kind===105&&OS(n)||e.kind===116&&B2(n)||e.kind===114&&pI(n)||e.kind===135&&B0(n)||e.kind===127&&Y4(n)||e.kind===91&&sie(n))&&n.expression)return Wc(n.expression);if((e.kind===103||e.kind===104)&&vn(n)&&n.operatorToken===e)return Wc(n.right);if(e.kind===130&&dI(n)&&yf(n.type))return n.type.typeName;if(e.kind===103&&c7(n)||e.kind===165&&Z4(n))return Wc(n.expression)}return e}function Tq(e){return cxe(e,!1)}function eL(e){return cxe(e,!0)}function W_(e,t){return $I(e,t,n=>Pm(n)||F_(n.kind)||ji(n))}function $I(e,t,n){return lxe(e,t,!1,n,!1)}function ki(e,t){return lxe(e,t,!0,void 0,!1)}function lxe(e,t,n,i,s){let o=e,c;e:for(;;){let u=o.getChildren(e),g=Bx(u,t,(m,h)=>h,(m,h)=>{let S=u[m].getEnd();if(S<t)return-1;let T=n?u[m].getFullStart():u[m].getStart(e,!0);return T>t?1:_(u[m],T,S)?u[m-1]&&_(u[m-1])?1:0:i&&T===t&&u[m-1]&&u[m-1].getEnd()===t&&_(u[m-1])?1:-1});if(c)return c;if(g>=0&&u[g]){o=u[g];continue e}return o}function _(u,g,m){if(m??(m=u.getEnd()),m<t||(g??(g=n?u.getFullStart():u.getStart(e,!0)),g>t))return!1;if(t<m||t===m&&(u.kind===1||s))return!0;if(i&&m===t){let h=Cl(t,e,u);if(h&&i(h))return c=h,!0}return!1}}function wce(e,t){let n=ki(e,t);for(;tL(n);){let i=KS(n,n.parent,e);if(!i)return;n=i}return n}function wE(e,t){let n=ki(e,t);return Xx(n)&&t>n.getStart(e)&&t<n.getEnd()?n:Cl(t,e)}function KS(e,t,n){return i(t);function i(s){return Xx(s)&&s.pos===e.end?s:po(s.getChildren(n),o=>(o.pos<=e.pos&&o.end>e.end||o.pos===e.end)&&Nce(o,n)?i(o):void 0)}}function Cl(e,t,n,i){let s=o(n||t);return w.assert(!(s&&tL(s))),s;function o(c){if(uxe(c)&&c.kind!==1)return c;let _=c.getChildren(t),u=Bx(_,e,(m,h)=>h,(m,h)=>e<_[m].end?!_[m-1]||e>=_[m-1].end?0:1:-1);if(u>=0&&_[u]){let m=_[u];if(e<m.end)if(m.getStart(t,!i)>=e||!Nce(m,t)||tL(m)){let T=Dce(_,u,t,c.kind);return T?!i&&uF(T)&&T.getChildren(t).length?o(T):Ice(T,t):void 0}else return o(m)}w.assert(n!==void 0||c.kind===307||c.kind===1||uF(c));let g=Dce(_,_.length,t,c.kind);return g&&Ice(g,t)}}function uxe(e){return Xx(e)&&!tL(e)}function Ice(e,t){if(uxe(e))return e;let n=e.getChildren(t);if(n.length===0)return e;let i=Dce(n,n.length,t,e.kind);return i&&Ice(i,t)}function Dce(e,t,n,i){for(let s=t-1;s>=0;s--){let o=e[s];if(tL(o))s===0&&(i===12||i===285)&&w.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(Nce(e[s],n))return e[s]}}function iC(e,t,n=Cl(t,e)){if(n&&OB(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 Pce(e,t){let n=ki(e,t);return n?!!(n.kind===12||n.kind===30&&n.parent.kind===12||n.kind===30&&n.parent.kind===294||n&&n.kind===20&&n.parent.kind===294||n.kind===30&&n.parent.kind===287):!1}function tL(e){return N2(e)&&e.containsOnlyTriviaWhiteSpaces}function kq(e,t){let n=ki(e,t);return v0(n.kind)&&t>n.getStart(e)}function Ace(e,t){let n=ki(e,t);return!!(N2(n)||n.kind===19&&hI(n.parent)&&Wm(n.parent.parent)||n.kind===30&&Wu(n.parent)&&Wm(n.parent.parent))}function rL(e,t){function n(i){for(;i;)if(i.kind>=285&&i.kind<=294||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===284){if(t>i.getStart(e))return!0;i=i.parent}else return!1;return!1}return n(ki(e,t))}function nL(e,t,n){let i=sa(e.kind),s=sa(t),o=e.getFullStart(),c=n.text.lastIndexOf(s,o);if(c===-1)return;if(n.text.lastIndexOf(i,o-1)<c){let g=Cl(c+1,n);if(g&&g.kind===t)return g}let _=e.kind,u=0;for(;;){let g=Cl(e.getFullStart(),n);if(!g)return;if(e=g,e.kind===t){if(u===0)return e;u--}else e.kind===_&&u++}}function SVe(e,t,n){return t?e.getNonNullableType():n?e.getNonOptionalType():e}function n3(e,t,n){let i=Cq(e,t);return i!==void 0&&(Im(i.called)||xq(i.called,i.nTypeArguments,n).length!==0||n3(i.called,t,n))}function xq(e,t,n){let i=n.getTypeAtLocation(e);return ju(e.parent)&&(i=SVe(i,RP(e.parent),!0)),(OS(e.parent)?i.getConstructSignatures():i.getCallSignatures()).filter(o=>!!o.typeParameters&&o.typeParameters.length>=t)}function Cq(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=Cl(n.getFullStart(),t),n&&n.kind===29&&(n=Cl(n.getFullStart(),t)),!n||!je(n))return;if(!i)return Cg(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=nL(n,19,t),!n)return;break;case 22:if(n=nL(n,21,t),!n)return;break;case 24:if(n=nL(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(di(n))break;return}n=Cl(n.getFullStart(),t)}}function pv(e,t,n){return yl.getRangeOfEnclosingComment(e,t,void 0,n)}function Ece(e,t){let n=ki(e,t);return!!gr(n,Kd)}function Nce(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function IE(e,t=0){let n=[],i=Ul(e)?xB(e)&~t:0;return i&2&&n.push("private"),i&4&&n.push("protected"),i&1&&n.push("public"),(i&256||Nc(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===277&&n.push("export"),n.length>0?n.join(","):""}function Mce(e){if(e.kind===183||e.kind===213)return e.typeArguments;if(Ns(e)||e.kind===263||e.kind===264)return e.typeParameters}function iL(e){return e===2||e===3}function wq(e){return!!(e===11||e===14||v0(e))}function _xe(e,t,n){return!!(t.flags&4)&&e.isEmptyAnonymousObjectType(n)}function Rce(e){if(!e.isIntersection())return!1;let{types:t,checker:n}=e;return t.length===2&&(_xe(n,t[0],t[1])||_xe(n,t[1],t[0]))}function i3(e,t,n){return v0(e.kind)&&e.getStart(n)<t&&t<e.end||!!e.isUnterminated&&t===e.end}function Iq(e){switch(e){case 125:case 123:case 124:return!0}return!1}function Dq(e){let t=EY(e);return YG(t,e&&e.configFile),t}function dv(e){return!!((e.kind===209||e.kind===210)&&(e.parent.kind===226&&e.parent.left===e&&e.parent.operatorToken.kind===64||e.parent.kind===250&&e.parent.initializer===e||dv(e.parent.kind===303?e.parent.parent:e.parent)))}function Fce(e,t){return fxe(e,t,!0)}function Oce(e,t){return fxe(e,t,!1)}function fxe(e,t,n){let i=pv(e,t,void 0);return!!i&&n===pVe.test(e.text.substring(i.pos,i.end))}function Pq(e,t){if(e)switch(e.kind){case 11:case 15:return Aq(e,t);default:return k_(e)}}function k_(e,t,n){return Uc(e.getStart(t),(n||e).getEnd())}function Aq(e,t){let n=e.getEnd()-1;if(e.isUnterminated){if(e.getStart()===n)return;n=Math.min(t,e.getEnd())}return Uc(e.getStart()+1,n)}function Eq(e,t){return Dp(e.getStart(t),e.end)}function mv(e){return Uc(e.pos,e.end)}function sL(e){return Dp(e.start,e.start+e.length)}function aL(e,t,n){return s3(pu(e,t),n)}function s3(e,t){return{span:e,newText:t}}var Nq=[133,131,163,136,97,140,143,146,106,150,151,148,154,155,114,112,116,157,158,159];function DE(e){return Ts(Nq,e)}function pxe(e){return e.kind===156}function oL(e){return pxe(e)||je(e)&&e.text==="type"}function HI(){let e=[];return t=>{let n=Ua(t);return!e[n]&&(e[n]=!0)}}function sC(e){return e.getText(0,e.getLength())}function a3(e,t){let n="";for(let i=0;i<t;i++)n+=e;return n}function Mq(e){return e.isTypeParameter()&&e.getConstraint()||e}function o3(e){return e.kind===167?tp(e.expression)?e.expression.text:void 0:ji(e)?Ln(e):Ip(e)}function Lce(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function jce(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function Rq(e){return!!e.module||wa(e)>=2||!!e.noEmit}function a1(e,t){return{fileExists:n=>e.fileExists(n),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:Vs(t,t.readFile),useCaseSensitiveFileNames:Vs(t,t.useCaseSensitiveFileNames)||e.useCaseSensitiveFileNames,getSymlinkCache:Vs(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:Vs(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var n;return(n=e.getModuleResolutionCache())==null?void 0:n.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:Vs(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:n=>e.getProjectReferenceRedirect(n),isSourceOfProjectReferenceRedirect:n=>e.isSourceOfProjectReferenceRedirect(n),getNearestAncestorDirectoryWithPackageJson:Vs(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory(),getDefaultResolutionModeForFile:n=>e.getDefaultResolutionModeForFile(n),getModeForResolutionAtIndex:(n,i)=>e.getModeForResolutionAtIndex(n,i)}}function Fq(e,t){return{...a1(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function cL(e){return e===2||e>=3&&e<=99||e===100}function K0(e,t,n,i,s){return A.createImportDeclaration(void 0,e||t?A.createImportClause(!!s,e,t&&t.length?A.createNamedImports(t):void 0):void 0,typeof n=="string"?PE(n,i):n,void 0)}function PE(e,t){return A.createStringLiteral(e,t===0)}var Wce=(e=>(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(Wce||{});function Oq(e,t){return JF(e,t)?1:0}function Tf(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{let n=ph(e)&&e.imports&&On(e.imports,i=>ya(i)&&!So(i.parent));return n?Oq(n,e):1}}function Lq(e){switch(e){case 0:return"'";case 1:return'"';default:return w.assertNever(e)}}function jq(e){let t=lL(e);return t===void 0?void 0:Li(t)}function lL(e){return e.escapedName!=="default"?e.escapedName:po(e.declarations,t=>{let n=vs(t);return n&&n.kind===80?n.escapedText:void 0})}function uL(e){return Ha(e)&&(dy(e.parent)||sc(e.parent)||zm(e.parent)||R_(e.parent,!1)&&e.parent.arguments[0]===e||jf(e.parent)&&e.parent.arguments[0]===e)}function c3(e){return Da(e)&&np(e.parent)&&je(e.name)&&!e.propertyName}function _L(e,t){let n=e.getTypeAtLocation(t.parent);return n&&e.getPropertyOfType(n,t.name.text)}function l3(e,t,n){if(e)for(;e.parent;){if(Mi(e.parent)||!TVe(n,e.parent,t))return e;e=e.parent}}function TVe(e,t,n){return SB(e,t.getStart(n))&&t.getEnd()<=mc(e)}function QI(e,t){return od(e)?On(e.modifiers,n=>n.kind===t):void 0}function Wq(e,t,n,i,s){var o;let _=(ks(n)?n[0]:n).kind===243?Q6:a2,u=An(t.statements,_),{comparer:g,isSorted:m}=d1.getOrganizeImportsStringComparerWithDetection(u,s),h=ks(n)?lf(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=ic(S))==null?void 0:o.getSourceFile());return}if(w.assert(ph(t)),u&&m)for(let S of h){let T=d1.getImportDeclarationInsertionIndex(u,S,g);if(T===0){let x=u[0]===t.statements[0]?{leadingTriviaOption:fn.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,u[0],S,!1,x)}else{let x=u[T-1];e.insertNodeAfter(t,x,S)}}else{let S=zo(u);S?e.insertNodesAfter(t,S,h):e.insertNodesAtTopOfFile(t,h,i)}}function Bq(e,t){return w.assert(e.isTypeOnly),Zs(e.getChildAt(0,t),pxe)}function KI(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function zq(e,t,n){return(n?aS:_0)(e.fileName,t.fileName)&&KI(e.textSpan,t.textSpan)}function Jq(e){return(t,n)=>zq(t,n,e)}function Gq(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 Bce(e,t,n){for(let i=t;i<n;i++)if(!ih(e.charCodeAt(i)))return!1;return!0}function AE(e,t,n){let i=t.tryGetSourcePosition(e);return i&&(!n||n(na(i.fileName))?i:void 0)}function fL(e,t,n){let{fileName:i,textSpan:s}=e,o=AE({fileName:i,pos:s.start},t,n);if(!o)return;let c=AE({fileName:i,pos:s.start+s.length},t,n),_=c?c.pos-o.pos:s.length;return{fileName:o.fileName,textSpan:{start:o.pos,length:_},originalFileName:e.fileName,originalTextSpan:e.textSpan,contextSpan:Uq(e,t,n),originalContextSpan:e.contextSpan}}function Uq(e,t,n){let i=e.contextSpan&&AE({fileName:e.fileName,pos:e.contextSpan.start},t,n),s=e.contextSpan&&AE({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 Vq(e){let t=e.declarations?_l(e.declarations):void 0;return!!gr(t,n=>Bi(n)?!0:Da(n)||np(n)||uv(n)?!1:"quit")}var zce=kVe();function kVe(){let e=GP*10,t,n,i,s;m();let o=h=>_(h,17);return{displayParts:()=>{let h=t.length&&t[t.length-1].text;return s>e&&h&&h!=="..."&&(ih(h.charCodeAt(h.length-1))||t.push(Y_(" ",16)),t.push(Y_("...",15))),t},writeKeyword:h=>_(h,5),writeOperator:h=>_(h,12),writePunctuation:h=>_(h,15),writeTrailingSemicolon:h=>_(h,15),writeSpace:h=>_(h,16),writeStringLiteral:h=>_(h,8),writeParameter:h=>_(h,13),writeProperty:h=>_(h,14),writeLiteral:h=>_(h,8),writeSymbol:u,writeLine:g,write:o,writeComment:o,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:ra,getIndent:()=>i,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},clear:m};function c(){if(!(s>e)&&n){let h=ZF(i);h&&(s+=h.length,t.push(Y_(h,16))),n=!1}}function _(h,S){s>e||(c(),s+=h.length,t.push(Y_(h,S)))}function u(h,S){s>e||(c(),s+=h.length,t.push(xVe(h,S)))}function g(){s>e||(s+=1,t.push(XI()),n=!0)}function m(){t=[],n=!0,i=0,s=0}}function xVe(e,t){return Y_(e,n(t));function n(i){let s=i.flags;return s&3?Vq(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 Y_(e,t){return{text:e,kind:U5[t]}}function Mc(){return Y_(" ",16)}function kf(e){return Y_(sa(e),5)}function Uu(e){return Y_(sa(e),15)}function EE(e){return Y_(sa(e),12)}function Jce(e){return Y_(e,13)}function Gce(e){return Y_(e,14)}function qq(e){let t=XT(e);return t===void 0?cp(e):kf(t)}function cp(e){return Y_(e,17)}function Uce(e){return Y_(e,0)}function Vce(e){return Y_(e,18)}function qce(e){return Y_(e,24)}function CVe(e,t){return{text:e,kind:U5[23],target:{fileName:Fr(t).fileName,textSpan:k_(t)}}}function dxe(e){return Y_(e,22)}function $ce(e,t){var n;let i=die(e)?"link":mie(e)?"linkcode":"linkplain",s=[dxe(`{@${i} `)];if(!e.name)e.text&&s.push(qce(e.text));else{let o=t?.getSymbolAtLocation(e.name),c=o&&t?Qq(o,t):void 0,_=IVe(e.text),u=oc(e.name)+e.text.slice(0,_),g=wVe(e.text.slice(_)),m=c?.valueDeclaration||((n=c?.declarations)==null?void 0:n[0]);if(m)s.push(CVe(u,m)),g&&s.push(qce(g));else{let h=_===0||e.text.charCodeAt(_)===124&&u.charCodeAt(u.length-1)!==32?" ":"";s.push(qce(u+h+g))}}return s.push(dxe("}")),s}function wVe(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 IVe(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 DVe=`
`;function yy(e,t){var n;return t?.newLineCharacter||((n=e.getNewLine)==null?void 0:n.call(e))||DVe}function XI(){return Y_(`
`,6)}function o1(e){try{return e(zce),zce.displayParts()}finally{zce.clear()}}function u3(e,t,n,i=0){return o1(s=>{e.writeType(t,n,i|1024|16384,s)})}function NE(e,t,n,i,s=0){return o1(o=>{e.writeSymbol(t,n,i,s|8,o)})}function $q(e,t,n,i=0){return i|=25632,o1(s=>{e.writeSignature(t,n,i,void 0,s)})}function Hce(e){return!!e.parent&&b0(e.parent)&&e.parent.propertyName===e}function Hq(e,t){return AO(e,t.getScriptKind&&t.getScriptKind(e))}function Qq(e,t){let n=e;for(;PVe(n)||lh(n)&&n.links.target;)lh(n)&&n.links.target?n=n.links.target:n=du(n,t);return n}function PVe(e){return(e.flags&2097152)!==0}function Qce(e,t){return ua(du(e,t))}function Kce(e,t){for(;ih(e.charCodeAt(t));)t+=1;return t}function pL(e,t){for(;t>-1&&Tm(e.charCodeAt(t));)t-=1;return t+1}function ro(e,t=!0){let n=e&&mxe(e);return n&&!t&&xf(n),zb(n,!1)}function _3(e,t,n){let i=n(e);return i?En(i,e):i=mxe(e,n),i&&!t&&xf(i),i}function mxe(e,t){let n=t?o=>_3(o,!0,t):ro,s=Ir(e,n,void 0,t?o=>o&&Kq(o,!0,t):o=>o&&XS(o),n);if(s===e){let o=ya(e)?En(A.createStringLiteralFromNode(e),e):L_(e)?En(A.createNumericLiteral(e.text,e.numericLiteralFlags),e):A.cloneNode(e);return dt(o,e)}return s.parent=void 0,s}function XS(e,t=!0){if(e){let n=A.createNodeArray(e.map(i=>ro(i,t)),e.hasTrailingComma);return dt(n,e),n}return e}function Kq(e,t,n){return A.createNodeArray(e.map(i=>_3(i,t,n)),e.hasTrailingComma)}function xf(e){Xq(e),Xce(e)}function Xq(e){Yce(e,1024,EVe)}function Xce(e){Yce(e,2048,_J)}function Gk(e,t){let n=e.getSourceFile(),i=n.text;AVe(e,i)?YI(e,t,n):p3(e,t,n),ME(e,t,n)}function AVe(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 Yce(e,t,n){Rm(e,t);let i=n(e);i&&Yce(i,t,n)}function EVe(e){return e.forEachChild(t=>t)}function Uk(e,t){let n=e;for(let i=1;!vF(t,n);i++)n=`${e}_${i}`;return n}function f3(e,t,n,i){let s=0,o=-1;for(let{fileName:c,textChanges:_}of e){w.assert(c===t);for(let u of _){let{span:g,newText:m}=u,h=NVe(m,wg(n));if(h!==-1&&(o=g.start+s+h,!i))return o;s+=m.length-g.length}}return w.assert(i),w.assert(o>=0),o}function YI(e,t,n,i,s){o6(n.text,e.pos,Zce(t,n,i,s,NS))}function ME(e,t,n,i,s){c6(n.text,e.end,Zce(t,n,i,s,FA))}function p3(e,t,n,i,s){c6(n.text,e.pos,Zce(t,n,i,s,NS))}function Zce(e,t,n,i,s){return(o,c,_,u)=>{_===3?(o+=2,c-=2):o+=2,s(e,n||_,t.text.slice(o,c),i!==void 0?i:u)}}function NVe(e,t){if(Yi(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 dL(e){return vn(e)&&e.operatorToken.kind===28||Sa(e)||(dI(e)||mI(e))&&Sa(e.expression)}function mL(e,t,n){let i=Td(e.parent);switch(i.kind){case 214:return t.getContextualType(i,n);case 226:{let{left:s,operatorToken:o,right:c}=i;return gL(o.kind)?t.getTypeAtLocation(e===c?s:c):t.getContextualType(e,n)}case 296:return Zq(i,t);default:return t.getContextualType(e,n)}}function RE(e,t,n){let i=Tf(e,t),s=JSON.stringify(n);return i===0?`'${rd(s).replace(/'/g,()=>"\\'").replace(/\\"/g,'"')}'`:s}function gL(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function ele(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function Yq(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function Zq(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}var e$="anonymous function";function FE(e,t,n,i){let s=n.getTypeChecker(),o=!0,c=()=>o=!1,_=s.typeToTypeNode(e,t,1,8,{trackSymbol:(u,g,m)=>(o=o&&s.isSymbolAccessible(u,g,m,!1).accessibility===0,!o),reportInaccessibleThisError:c,reportPrivateInBaseOfClassExpression:c,reportInaccessibleUniqueSymbolError:c,moduleResolverHost:Fq(n,i)});return o?_:void 0}function tle(e){return e===179||e===180||e===181||e===171||e===173}function gxe(e){return e===262||e===176||e===174||e===177||e===178}function hxe(e){return e===267}function rle(e){return e===243||e===244||e===246||e===251||e===252||e===253||e===257||e===259||e===172||e===265||e===272||e===271||e===278||e===270||e===277}var MVe=uf(tle,gxe,hxe,rle);function RVe(e,t){let n=e.getLastToken(t);if(n&&n.kind===27)return!1;if(tle(e.kind)){if(n&&n.kind===28)return!1}else if(hxe(e.kind)){let _=xa(e.getChildren(t));if(_&&Lm(_))return!1}else if(gxe(e.kind)){let _=xa(e.getChildren(t));if(_&&gS(_))return!1}else if(!rle(e.kind))return!1;if(e.kind===246)return!0;let i=gr(e,_=>!_.parent),s=KS(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 hL(e,t,n){let i=gr(t,s=>s.end!==e?"quit":MVe(s.kind));return!!i&&RVe(i,n)}function d3(e){let t=0,n=0,i=5;return Es(e,function s(o){if(rle(o.kind)){let c=o.getLastToken(e);c?.kind===27?t++:n++}else if(tle(o.kind)){let c=o.getLastToken(e);if(c?.kind===27)t++;else if(c&&c.kind!==28){let _=Qs(e,c.getStart(e)).line,u=Qs(e,Cm(e,c.end).start).line;_!==u&&n++}}return t+n>=i?!0:Es(o,s)}),t===0&&n<=1?!0:t/n>1/i}function yL(e,t){return nle(e,e.getDirectories,t)||[]}function t$(e,t,n,i,s){return nle(e,e.readDirectory,t,n,i,s)||qe}function OE(e,t){return nle(e,e.fileExists,t)}function vL(e,t){return bL(()=>Vd(t,e))||!1}function bL(e){try{return e()}catch{return}}function nle(e,t,...n){return bL(()=>t&&t.apply(e,n))}function r$(e,t){let n=[];return Pg(t,e,i=>{let s=Bn(i,"package.json");OE(t,s)&&n.push(s)}),n}function ile(e,t){let n;return Pg(t,e,i=>{if(i==="node_modules"||(n=tV(i,s=>OE(t,s),"package.json"),n))return!0}),n}function FVe(e,t){if(!t.fileExists)return[];let n=[];return Pg(t,Yn(e),i=>{let s=Bn(i,"package.json");if(t.fileExists(s)){let o=n$(s,t);o&&n.push(o)}}),n}function n$(e,t){if(!t.readFile)return;let n=["dependencies","devDependencies","optionalDependencies","peerDependencies"],i=t.readFile(e)||"",s=fO(i),o={};if(s)for(let u of n){let g=s[u];if(!g)continue;let m=new Map;for(let h in g)m.set(h,g[h]);o[u]=m}let c=[[1,o.dependencies],[2,o.devDependencies],[8,o.optionalDependencies],[4,o.peerDependencies]];return{...o,parseable:!!s,fileName:e,get:_,has(u,g){return!!_(u,g)}};function _(u,g=15){for(let[m,h]of c)if(h&&g&m){let S=h.get(u);if(S!==void 0)return S}}}function ZI(e,t,n){let i=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(e.fileName)||FVe(e.fileName,n)).filter(x=>x.parseable),s,o,c;return{allowsImportingAmbientModule:u,getSourceFileInfo:g,allowsImportingSpecifier:m};function _(x){let I=T(x);for(let D of i)if(D.has(I)||D.has(H7(I)))return!0;return!1}function u(x,I){if(!i.length||!x.valueDeclaration)return!0;if(!o)o=new Map;else{let B=o.get(x);if(B!==void 0)return B}let D=rd(x.getName());if(h(D))return o.set(x,!0),!0;let E=x.valueDeclaration.getSourceFile(),O=S(E.fileName,I);if(typeof O>"u")return o.set(x,!0),!0;let F=_(O)||_(D);return o.set(x,F),F}function g(x,I){if(!i.length)return{importable:!0,packageName:void 0};if(!c)c=new Map;else{let F=c.get(x);if(F!==void 0)return F}let D=S(x.fileName,I);if(!D){let F={importable:!0,packageName:D};return c.set(x,F),F}let O={importable:_(D),packageName:D};return c.set(x,O),O}function m(x){return!i.length||h(x)||Of(x)||ff(x)?!0:_(x)}function h(x){return!!(ph(e)&&g_(e)&&lI.has(x)&&(s===void 0&&(s=SL(e)),s))}function S(x,I){if(!x.includes("node_modules"))return;let D=hy.getNodeModulesPackageName(n.getCompilationSettings(),e,x,I,t);if(D&&!Of(D)&&!ff(D))return T(D)}function T(x){let I=Iu(aE(x)).slice(1);return Yi(I[0],"@")?`${I[0]}/${I[1]}`:I[0]}}function SL(e){return pt(e.imports,({text:t})=>lI.has(t))}function m3(e){return Ts(Iu(e),"node_modules")}function yxe(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function sle(e,t){let n=k_(e),i=Bx(t,n,Do,I8);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,yxe)}}function ale(e,t){var n;let i=Bx(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=Vn(t[i],yxe);if(!c||c.start>o)break;gee(e,c)&&s.push(c),i++}return s}function aC({startPosition:e,endPosition:t}){return Uc(e,t===void 0?e:t)}function i$(e,t){let n=ki(e,t.start);return gr(n,s=>s.getStart(e)<t.start||s.getEnd()>mc(t)?"quit":gt(s)&&KI(t,k_(s,e)))}function s$(e,t,n=Do){return e?ks(e)?n(hr(e,t)):t(e,0):void 0}function a$(e){return ks(e)?Ea(e):e}function TL(e,t,n){return e.escapedName==="export="||e.escapedName==="default"?o$(e)||g3(OVe(e),t,!!n):e.name}function o$(e){return po(e.declarations,t=>{var n,i,s;if(Ho(t))return(n=Vn(Wc(t.expression),je))==null?void 0:n.text;if(zu(t)&&t.symbol.flags===2097152)return(i=Vn(t.propertyName,je))==null?void 0:i.text;let o=(s=Vn(vs(t),je))==null?void 0:s.text;if(o)return o;if(e.parent&&!r2(e.parent))return e.parent.getName()})}function OVe(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=un(n),{expression:o}=n;return(s?"[JS]":"")+i+(o?` (expression: ${w.formatSyntaxKind(o.kind)})`:"")}).join(", ")}.`)}function g3(e,t,n){return h3(i_(rd(e.name)),t,n)}function h3(e,t,n){let i=fl(Sw(i_(e),"/index")),s="",o=!0,c=i.charCodeAt(0);bg(c,t)?(s+=String.fromCharCode(c),n&&(s=s.toUpperCase())):o=!1;for(let _=1;_<i.length;_++){let u=i.charCodeAt(_),g=ry(u,t);if(g){let m=String.fromCharCode(u);o||(m=m.toUpperCase()),s+=m}o=g}return d2(s)?`_${s}`:s||"_"}function ole(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 c$(e){return e.charCodeAt(0)===95}function kL(e){return!!(xB(e)&65536)}function xL(e,t){let n;for(let i of e.imports)if(lI.has(i.text)&&!qO.has(i.text)){if(Yi(i.text,"node:"))return!0;n=!1}return n??t.usesUriStyleNodeCoreModules}function y3(e){return e===`
`?1:0}function YS(e){return ks(e)?hh(Is(e[0]),e.slice(1)):Is(e)}function CL({options:e},t){let n=!e.semicolons||e.semicolons==="ignore",i=e.semicolons==="remove"||n&&!d3(t);return{...e,semicolons:i?"remove":"ignore"}}function l$(e){return e===2||e===3}function eD(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function wL(e,t){let n=new Set,i=new Set,s=new Set;for(let _ of t)if(!qA(_)){let u=Ka(_.expression);if(ek(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=fne(Jo(u.text,"n")?u.text.slice(0,-1):u.text);g&&s.add(AS(g));break}else{let g=e.getSymbolAtLocation(_.expression);if(g&&g.valueDeclaration&&_v(g.valueDeclaration)){let m=e.getConstantValue(g.valueDeclaration);m!==void 0&&o(m)}}}return{addValue:o,hasValue:c};function o(_){switch(typeof _){case"string":n.add(_);break;case"number":i.add(_)}}function c(_){switch(typeof _){case"string":return n.has(_);case"number":return i.has(_);case"object":return s.has(AS(_))}}}function u$(e,t,n,i){var s;let o=typeof e=="string"?e:e.fileName;if(!vh(o))return!1;let c=typeof e=="string"?t.getCompilerOptions():t.getCompilerOptionsForFile(e),_=n_(c),u=typeof e=="string"?{fileName:e,impliedNodeFormat:zM(ko(e,n.getCurrentDirectory(),cy(n)),(s=t.getPackageJsonInfoCache)==null?void 0:s.call(t),n,c)}:e,g=Bk(u,c);if(g===99)return!1;if(g===1||c.verbatimModuleSyntax&&_===1)return!0;if(c.verbatimModuleSyntax&&E4(_))return!1;if(typeof e=="object"){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return i}function oC(e){switch(e.kind){case 241:case 307:case 268:case 296:return!0;default:return!1}}function IL(e,t,n,i){var s;let o=y5(e,(s=n.getPackageJsonInfoCache)==null?void 0:s.call(n),i,n.getCompilerOptions()),c,_;return typeof o=="object"&&(c=o.impliedNodeFormat,_=o.packageJsonScope),{path:ko(e,n.getCurrentDirectory(),n.getCanonicalFileName),fileName:e,externalModuleIndicator:t===99?!0:void 0,commonJsModuleIndicator:t===1?!0:void 0,impliedNodeFormat:c,packageJsonScope:_,statements:qe,imports:qe}}var cle=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(cle||{}),lle=(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))(lle||{});function _$(e){let t=1,n=Kp(),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,D,E,O,F,B)=>{T!==o&&(c.clear(),o=T);let G;if(E){let ye=BO(E.fileName);if(ye){let{topLevelNodeModulesIndex:H,topLevelPackageNameIndex:ve,packageRootIndex:Ge}=ye;if(G=xM(aE(E.fileName.substring(ve+1,Ge))),Yi(T,E.path.substring(0,H))){let De=s.get(G),se=E.fileName.substring(0,ve+1);if(De){let xe=De.indexOf(Ch);H>xe&&s.set(G,se)}else s.set(G,se)}}}let K=O===1&&pA(x)||x,U=O===0||r2(K)?Li(I):jVe(K,B,void 0),me=typeof U=="string"?U:U[0],te=typeof U=="string"?void 0:U[1],V=rd(D.name),ne=t++,ie=du(x,B),oe=x.flags&33554432?void 0:x,de=D.flags&33554432?void 0:D;(!oe||!de)&&i.set(ne,[x,D]),n.add(u(me,x,Jl(V)?void 0:V,B),{id:ne,symbolTableKey:I,symbolName:me,capitalizedSymbolName:te,moduleName:V,moduleFile:E,moduleFileName:E?.fileName,packageName:G,exportKind:O,targetFlags:ie.flags,isFromPackageJson:F,symbol:oe,moduleSymbol:de})},get:(T,x)=>{if(T!==o)return;let I=n.get(x);return I?.map(_)},search:(T,x,I,D)=>{if(T===o)return Nl(n,(E,O)=>{let{symbolName:F,ambientModuleName:B}=g(O),G=x&&E[0].capitalizedSymbolName||F;if(I(G,E[0].targetFlags)){let K=E.map(_).filter((U,me)=>S(U,E[me].packageName));if(K.length){let U=D(K,G,!!B,O);if(U!==void 0)return U}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(T,x,I)=>m(T)&&m(x)?!1:o&&o!==x.path||I&&SL(T)!==SL(x)||!Yf(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 _(T){if(T.symbol&&T.moduleSymbol)return T;let{id:x,exportKind:I,targetFlags:D,isFromPackageJson:E,moduleFileName:O}=T,[F,B]=i.get(x)||qe;if(F&&B)return{symbol:F,moduleSymbol:B,moduleFileName:O,exportKind:I,targetFlags:D,isFromPackageJson:E};let G=(E?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),$=T.moduleSymbol||B||w.checkDefined(T.moduleFile?G.getMergedSymbol(T.moduleFile.symbol):G.tryFindAmbientModule(T.moduleName)),K=T.symbol||F||w.checkDefined(I===2?G.resolveExternalModuleSymbol($):G.tryGetMemberInModuleExportsAndProperties(Li(T.symbolTableKey),$),`Could not find symbol '${T.symbolName}' by key '${T.symbolTableKey}' in module ${$.name}`);return i.set(x,[K,$]),{symbol:K,moduleSymbol:$,moduleFileName:O,exportKind:I,targetFlags:D,isFromPackageJson:E}}function u(T,x,I,D){let E=I||"";return`${T.length} ${ua(du(x,D))} ${T} ${E}`}function g(T){let x=T.indexOf(" "),I=T.indexOf(" ",x+1),D=parseInt(T.substring(0,x),10),E=T.substring(I+1),O=E.substring(0,D),F=E.substring(D+1);return{symbolName:O,ambientModuleName:F===""?void 0:F}}function m(T){return!T.commonJsModuleIndicator&&!T.externalModuleIndicator&&!T.moduleAugmentations&&!T.ambientModuleNames}function h(T,x){if(!Yf(T.ambientModuleNames,x.ambientModuleNames))return!1;let I=-1,D=-1;for(let E of x.ambientModuleNames){let O=F=>iz(F)&&F.name.text===E;if(I=Sc(T.statements,O,I+1),D=Sc(x.statements,O,D+1),T.statements[I]!==x.statements[D])return!1}return!0}function S(T,x){if(!x||!T.moduleFileName)return!0;let I=e.getGlobalTypingsCacheLocation();if(I&&Yi(T.moduleFileName,I))return!0;let D=s.get(x);return!D||Yi(T.moduleFileName,D)}}function f$(e,t,n,i,s,o,c,_){var u;if(!n){let T,x=rd(i.name);return lI.has(x)&&(T=xL(t,e))!==void 0?T===Yi(x,"node:"):!o||o.allowsImportingAmbientModule(i,c)||ule(t,x)}if(w.assertIsDefined(n),t===n)return!1;let g=_?.get(t.path,n.path,s,{});if(g?.isBlockedByPackageJsonDependencies!==void 0)return!g.isBlockedByPackageJsonDependencies||!!g.packageName&&ule(t,g.packageName);let m=cy(c),h=(u=c.getGlobalTypingsCacheLocation)==null?void 0:u.call(c),S=!!hy.forEachFileNameOfModule(t.fileName,n.fileName,c,!1,T=>{let x=e.getSourceFile(T);return(x===n||!x)&&LVe(t.fileName,T,m,h,c)});if(o){let T=S?o.getSourceFileInfo(n,c):void 0;return _?.setBlockedByPackageJsonDependencies(t.path,n.path,s,{},T?.packageName,!T?.importable),!!T?.importable||S&&!!T?.packageName&&ule(t,T.packageName)}return S}function ule(e,t){return e.imports&&e.imports.some(n=>n.text===t||n.text.startsWith(t+"/"))}function LVe(e,t,n,i,s){let o=Pg(s,t,_=>fl(_)==="node_modules"?_:void 0),c=o&&Yn(n(o));return c===void 0||Yi(n(e),c)||!!i&&Yi(n(i),c)}function p$(e,t,n,i,s){var o,c;let _=mk(t),u=n.autoImportFileExcludePatterns&&vxe(n,_);bxe(e.getTypeChecker(),e.getSourceFiles(),u,t,(m,h)=>s(m,h,e,!1));let g=i&&((o=t.getPackageJsonAutoImportProvider)==null?void 0:o.call(t));if(g){let m=To(),h=e.getTypeChecker();bxe(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: ${To()-m}`)}}function vxe(e,t){return Vi(e.autoImportFileExcludePatterns,n=>{let i=DO(n,"","exclude");return i?iv(i,t):void 0})}function bxe(e,t,n,i,s){var o;let c=n&&Sxe(n,i);for(let _ of e.getAmbientModules())!_.name.includes("*")&&!(n&&((o=_.declarations)!=null&&o.every(u=>c(u.getSourceFile()))))&&s(_,void 0);for(let _ of t)mf(_)&&!c?.(_)&&s(e.getMergedSymbol(_.symbol),_)}function Sxe(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&&V0(s)){let c=Yn(s);return Pg(t,Yn(o),_=>{let u=i.get(El(_));if(u)return u.some(g=>e.some(m=>m.test(s.replace(c,g))));c=Yn(c)})??!1}return!1}}function _le(e,t){return t.autoImportFileExcludePatterns?Sxe(vxe(t,mk(e)),e):()=>!1}function v3(e,t,n,i,s){var o,c,_,u,g;let m=To();(o=t.getPackageJsonAutoImportProvider)==null||o.call(t);let h=((c=t.getCachedExportInfoMap)==null?void 0:c.call(t))||_$({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(_=t.log)==null||_.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{p$(n,t,i,!0,(T,x,I,D)=>{++S%100===0&&s?.throwIfCancellationRequested();let E=new Set,O=I.getTypeChecker(),F=DL(T,O);F&&Txe(F.symbol,O)&&h.add(e.path,F.symbol,F.exportKind===1?"default":"export=",T,x,F.exportKind,D,O),O.forEachExportAndPropertyOfModule(T,(B,G)=>{B!==F?.symbol&&Txe(B,O)&&nd(E,G)&&h.add(e.path,B,G,T,x,0,D,O)})})}catch(T){throw h.clear(),T}return(g=t.log)==null||g.call(t,`getExportInfoMap: done in ${To()-m} ms`),h}function DL(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 Txe(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!p4(e)&&!lre(e)}function jVe(e,t,n){let i;return PL(e,t,n,(s,o)=>(i=o?[s,o]:s,!0)),w.checkDefined(i)}function PL(e,t,n,i){let s,o=e,c=new Set;for(;o;){let _=o$(o);if(_){let u=i(_);if(u)return u}if(o.escapedName!=="default"&&o.escapedName!=="export="){let u=i(o.name);if(u)return u}if(s=jr(s,o),!nd(c,o))break;o=o.flags&2097152?t.getImmediateAliasedSymbol(o):void 0}for(let _ of s??qe)if(_.parent&&r2(_.parent)){let u=i(g3(_.parent,n,!1),g3(_.parent,n,!0));if(u)return u}}function kxe(){let e=ah(99,!1);function t(i,s,o){return JVe(n(i,s,o),i)}function n(i,s,o){let c=0,_=0,u=[],{prefix:g,pushTemplate:m}=VVe(s);i=g+i;let h=g.length;m&&u.push(16),e.setText(i);let S=0,T=[],x=0;do{c=e.scan(),Kw(c)||(I(),_=c);let D=e.getTokenEnd();if(zVe(e.getTokenStart(),D,h,HVe(c),T),D>=i.length){let E=BVe(e,c,zo(u));E!==void 0&&(S=E)}}while(c!==1);function I(){switch(c){case 44:case 69:!WVe[_]&&e.reScanSlashToken()===14&&(c=14);break;case 30:_===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 D=zo(u);D===16?(c=e.reScanTemplateToken(!1),c===18?u.pop():w.assertEqual(c,17,"Should have been a template middle.")):(w.assertEqual(D,19,"Should have been an open brace"),u.pop())}break;default:if(!F_(c))break;(_===25||F_(_)&&F_(c)&&!UVe(_,c))&&(c=80)}}return{endOfLineState:S,spans:T}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:n}}var WVe=AY([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0);function BVe(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(v0(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 zVe(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 JVe(e,t){let n=[],i=e.spans,s=0;for(let c=0;c<i.length;c+=3){let _=i[c],u=i[c+1],g=i[c+2];if(s>=0){let m=_-s;m>0&&n.push({length:m,classification:4})}n.push({length:u,classification:GVe(g)}),s=_+u}let o=t.length-s;return o>0&&n.push({length:o,classification:4}),{entries:n,finalLexState:e.endOfLineState}}function GVe(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 UVe(e,t){if(!Iq(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function VVe(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 qVe(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 $Ve(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function HVe(e){if(F_(e))return 3;if(qVe(e)||$Ve(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;case 80:default:return v0(e)?6:2}}function fle(e,t,n,i,s){return wxe(d$(e,t,n,i,s))}function xxe(e,t){switch(t){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function d$(e,t,n,i,s){let o=[];return n.forEachChild(function _(u){if(!(!u||!f6(s,u.pos,u.getFullWidth()))){if(xxe(t,u.kind),je(u)&&!Tc(u)&&i.has(u.escapedText)){let g=e.getSymbolAtLocation(u),m=g&&Cxe(g,zk(u),e);m&&c(u.getStart(n),u.getEnd(),m)}u.forEachChild(_)}}),{spans:o,endOfLineState:0};function c(_,u,g){let m=u-_;w.assert(m>0,`Classification had non-positive length of ${m}`),o.push(_),o.push(m),o.push(g)}}function Cxe(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&&QVe(e)?14:void 0:i&2097152?Cxe(n.getAliasedSymbol(e),t,n):t&2?i&64?13:i&262144?15:void 0:void 0}function QVe(e){return pt(e.declarations,t=>nl(t)&&gy(t)===1)}function KVe(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 wxe(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:pu(t[i],t[i+1]),classificationType:KVe(t[i+2])});return n}function ple(e,t,n){return wxe(m$(e,t,n))}function m$(e,t,n){let i=n.start,s=n.length,o=ah(99,!1,t.languageVariant,t.text),c=ah(99,!1,t.languageVariant,t.text),_=[];return B(t),{spans:_,endOfLineState:0};function u(G,$,K){_.push(G),_.push($),_.push(K)}function g(G){for(o.resetTokenState(G.pos);;){let $=o.getTokenEnd();if(!uee(t.text,$))return $;let K=o.scan(),U=o.getTokenEnd(),me=U-$;if(!Kw(K))return $;switch(K){case 4:case 5:continue;case 2:case 3:m(G,K,$,me),o.resetTokenState(U);continue;case 7:let te=t.text,V=te.charCodeAt($);if(V===60||V===62){u($,me,1);continue}w.assert(V===124||V===61),I(te,$,U);break;case 6:break;default:w.assertNever(K)}}}function m(G,$,K,U){if($===3){let me=Uie(t.text,K,U);if(me&&me.jsDoc){Xa(me.jsDoc,G),S(me.jsDoc);return}}else if($===2&&T(K,U))return;h(K,U)}function h(G,$){u(G,$,1)}function S(G){var $,K,U,me,te,V,ne,ie;let oe=G.pos;if(G.tags)for(let ye of G.tags){ye.pos!==oe&&h(oe,ye.pos-oe),u(ye.pos,1,10),u(ye.tagName.pos,ye.tagName.end-ye.tagName.pos,18),oe=ye.tagName.end;let H=ye.tagName.end;switch(ye.kind){case 341:let ve=ye;de(ve),H=ve.isNameFirst&&(($=ve.typeExpression)==null?void 0:$.end)||ve.name.end;break;case 348:let Ge=ye;H=Ge.isNameFirst&&((K=Ge.typeExpression)==null?void 0:K.end)||Ge.name.end;break;case 345:x(ye),oe=ye.end,H=ye.typeParameters.end;break;case 346:let De=ye;H=((U=De.typeExpression)==null?void 0:U.kind)===309&&((me=De.fullName)==null?void 0:me.end)||((te=De.typeExpression)==null?void 0:te.end)||H;break;case 338:H=ye.typeExpression.end;break;case 344:B(ye.typeExpression),oe=ye.end,H=ye.typeExpression.end;break;case 343:case 340:H=ye.typeExpression.end;break;case 342:B(ye.typeExpression),oe=ye.end,H=((V=ye.typeExpression)==null?void 0:V.end)||H;break;case 347:H=((ne=ye.name)==null?void 0:ne.end)||H;break;case 328:case 329:H=ye.class.end;break;case 349:B(ye.typeExpression),oe=ye.end,H=((ie=ye.typeExpression)==null?void 0:ie.end)||H;break}typeof ye.comment=="object"?h(ye.comment.pos,ye.comment.end-ye.comment.pos):typeof ye.comment=="string"&&h(H,ye.end-H)}oe!==G.end&&h(oe,G.end-oe);return;function de(ye){ye.isNameFirst&&(h(oe,ye.name.pos-oe),u(ye.name.pos,ye.name.end-ye.name.pos,17),oe=ye.name.end),ye.typeExpression&&(h(oe,ye.typeExpression.pos-oe),B(ye.typeExpression),oe=ye.typeExpression.end),ye.isNameFirst||(h(oe,ye.name.pos-oe),u(ye.name.pos,ye.name.end-ye.name.pos,17),oe=ye.name.end)}}function T(G,$){let K=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/m,U=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/g,me=t.text.substr(G,$),te=K.exec(me);if(!te||!te[3]||!(te[3]in F8))return!1;let V=G;h(V,te[1].length),V+=te[1].length,u(V,te[2].length,10),V+=te[2].length,u(V,te[3].length,21),V+=te[3].length;let ne=te[4],ie=V;for(;;){let de=U.exec(ne);if(!de)break;let ye=V+de.index+de[1].length;ye>ie&&(h(ie,ye-ie),ie=ye),u(ie,de[2].length,22),ie+=de[2].length,de[3].length&&(h(ie,de[3].length),ie+=de[3].length),u(ie,de[4].length,5),ie+=de[4].length,de[5].length&&(h(ie,de[5].length),ie+=de[5].length),u(ie,de[6].length,24),ie+=de[6].length}V+=te[4].length,V>ie&&h(ie,V-ie),te[5]&&(u(V,te[5].length,10),V+=te[5].length);let oe=G+$;return V<oe&&h(V,oe-V),!0}function x(G){for(let $ of G.getChildren())B($)}function I(G,$,K){let U;for(U=$;U<K&&!Lu(G.charCodeAt(U));U++);for(u($,U-$,1),c.resetTokenState(U);c.getTokenEnd()<K;)D()}function D(){let G=c.getTokenEnd(),$=c.scan(),K=c.getTokenEnd(),U=F($);U&&u(G,K-G,U)}function E(G){if(Kd(G)||Tc(G))return!0;let $=O(G);if(!Xx(G)&&G.kind!==12&&$===void 0)return!1;let K=G.kind===12?G.pos:g(G),U=G.end-K;if(w.assert(U>=0),U>0){let me=$||F(G.kind,G);me&&u(K,U,me)}return!0}function O(G){switch(G.parent&&G.parent.kind){case 286:if(G.parent.tagName===G)return 19;break;case 287:if(G.parent.tagName===G)return 20;break;case 285:if(G.parent.tagName===G)return 21;break;case 291:if(G.parent.name===G)return 22;break}}function F(G,$){if(F_(G))return 3;if((G===30||G===32)&&$&&Mce($.parent))return 10;if(Ez(G)){if($){let K=$.parent;if(G===64&&(K.kind===260||K.kind===172||K.kind===169||K.kind===291)||K.kind===226||K.kind===224||K.kind===225||K.kind===227)return 5}return 10}else{if(G===9)return 4;if(G===10)return 25;if(G===11)return $&&$.parent.kind===291?24:6;if(G===14)return 6;if(v0(G))return 6;if(G===12)return 23;if(G===80){if($){switch($.parent.kind){case 263:return $.parent.name===$?11:void 0;case 168:return $.parent.name===$?15:void 0;case 264:return $.parent.name===$?13:void 0;case 266:return $.parent.name===$?12:void 0;case 267:return $.parent.name===$?14:void 0;case 169:return $.parent.name===$?N0($)?3:17:void 0}if(vd($.parent))return 3}return 2}}}function B(G){if(G&&p6(i,s,G.pos,G.getFullWidth())){xxe(e,G.kind);for(let $ of G.getChildren(t))E($)||B($)}}}var AL;(e=>{function t(V,ne,ie,oe,de){let ye=W_(ie,oe);if(ye.parent&&(Hd(ye.parent)&&ye.parent.tagName===ye||jS(ye.parent))){let{openingElement:H,closingElement:ve}=ye.parent.parent,Ge=[H,ve].map(({tagName:De})=>n(De,ie));return[{fileName:ie.fileName,highlightSpans:Ge}]}return i(oe,ye,V,ne,de)||s(ye,ie)}e.getDocumentHighlights=t;function n(V,ne){return{fileName:ne.fileName,textSpan:k_(V,ne),kind:"none"}}function i(V,ne,ie,oe,de){let ye=new Set(de.map(De=>De.fileName)),H=jo.getReferenceEntriesForNode(V,ne,ie,de,oe,void 0,ye);if(!H)return;let ve=XN(H.map(jo.toHighlightSpan),De=>De.fileName,De=>De.span),Ge=fu(ie.useCaseSensitiveFileNames());return ps(i0(ve.entries(),([De,se])=>{if(!ye.has(De)){if(!ie.redirectTargetsMap.has(ko(De,ie.getCurrentDirectory(),Ge)))return;let xe=ie.getSourceFile(De);De=On(de,tt=>!!tt.redirectInfo&&tt.redirectInfo.redirectTarget===xe).fileName,w.assert(ye.has(De))}return{fileName:De,highlightSpans:se}}))}function s(V,ne){let ie=o(V,ne);return ie&&[{fileName:ne.fileName,highlightSpans:ie}]}function o(V,ne){switch(V.kind){case 101:case 93:return qb(V.parent)?U(V.parent,ne):void 0;case 107:return oe(V.parent,Bf,B);case 111:return oe(V.parent,uG,F);case 113:case 85:case 98:let ye=V.kind===85?V.parent.parent:V.parent;return oe(ye,Ik,O);case 109:return oe(V.parent,UA,E);case 84:case 90:return qA(V.parent)||yI(V.parent)?oe(V.parent.parent.parent,UA,E):void 0;case 83:case 88:return oe(V.parent,OP,D);case 99:case 117:case 92:return oe(V.parent,H=>k0(H,!0),I);case 137:return ie(lc,[137]);case 139:case 153:return ie(T0,[139,153]);case 135:return oe(V.parent,B0,G);case 134:return de(G(V));case 127:return de($(V));case 103:case 147:return;default:return S0(V.kind)&&(Ul(V.parent)||Lc(V.parent))?de(S(V.kind,V.parent)):void 0}function ie(ye,H){return oe(V.parent,ye,ve=>{var Ge;return Vi((Ge=Vn(ve,Jd))==null?void 0:Ge.symbol.declarations,De=>ye(De)?On(De.getChildren(ne),se=>Ts(H,se.kind)):void 0)})}function oe(ye,H,ve){return H(ye)?de(ve(ye,ne)):void 0}function de(ye){return ye&&ye.map(H=>n(H,ne))}}function c(V){return uG(V)?[V]:Ik(V)?Ki(V.catchClause?c(V.catchClause):V.tryBlock&&c(V.tryBlock),V.finallyBlock&&c(V.finallyBlock)):Ns(V)?void 0:g(V,c)}function _(V){let ne=V;for(;ne.parent;){let ie=ne.parent;if(gS(ie)||ie.kind===307)return ie;if(Ik(ie)&&ie.tryBlock===ne&&ie.catchClause)return ne;ne=ie}}function u(V){return OP(V)?[V]:Ns(V)?void 0:g(V,u)}function g(V,ne){let ie=[];return V.forEachChild(oe=>{let de=ne(oe);de!==void 0&&ie.push(...Jx(de))}),ie}function m(V,ne){let ie=h(ne);return!!ie&&ie===V}function h(V){return gr(V,ne=>{switch(ne.kind){case 255:if(V.kind===251)return!1;case 248:case 249:case 250:case 247:case 246:return!V.label||te(ne,V.label.escapedText);default:return Ns(ne)&&"quit"}})}function S(V,ne){return Vi(T(ne,h2(V)),ie=>QI(ie,V))}function T(V,ne){let ie=V.parent;switch(ie.kind){case 268:case 307:case 241:case 296:case 297:return ne&64&&gl(V)?[...V.members,V]:ie.statements;case 176:case 174:case 262:return[...ie.parameters,...ii(ie.parent)?ie.parent.members:[]];case 263:case 231:case 264:case 187:let oe=ie.members;if(ne&15){let de=On(ie.members,lc);if(de)return[...oe,...de.parameters]}else if(ne&64)return[...oe,ie];return oe;default:return}}function x(V,ne,...ie){return ne&&Ts(ie,ne.kind)?(V.push(ne),!0):!1}function I(V){let ne=[];if(x(ne,V.getFirstToken(),99,117,92)&&V.kind===246){let ie=V.getChildren();for(let oe=ie.length-1;oe>=0&&!x(ne,ie[oe],117);oe--);}return or(u(V.statement),ie=>{m(V,ie)&&x(ne,ie.getFirstToken(),83,88)}),ne}function D(V){let ne=h(V);if(ne)switch(ne.kind){case 248:case 249:case 250:case 246:case 247:return I(ne);case 255:return E(ne)}}function E(V){let ne=[];return x(ne,V.getFirstToken(),109),or(V.caseBlock.clauses,ie=>{x(ne,ie.getFirstToken(),84,90),or(u(ie),oe=>{m(V,oe)&&x(ne,oe.getFirstToken(),83)})}),ne}function O(V,ne){let ie=[];if(x(ie,V.getFirstToken(),113),V.catchClause&&x(ie,V.catchClause.getFirstToken(),85),V.finallyBlock){let oe=_o(V,98,ne);x(ie,oe,98)}return ie}function F(V,ne){let ie=_(V);if(!ie)return;let oe=[];return or(c(ie),de=>{oe.push(_o(de,111,ne))}),gS(ie)&&D0(ie,de=>{oe.push(_o(de,107,ne))}),oe}function B(V,ne){let ie=ep(V);if(!ie)return;let oe=[];return D0(Zs(ie.body,Fs),de=>{oe.push(_o(de,107,ne))}),or(c(ie.body),de=>{oe.push(_o(de,111,ne))}),oe}function G(V){let ne=ep(V);if(!ne)return;let ie=[];return ne.modifiers&&ne.modifiers.forEach(oe=>{x(ie,oe,134)}),Es(ne,oe=>{K(oe,de=>{B0(de)&&x(ie,de.getFirstToken(),135)})}),ie}function $(V){let ne=ep(V);if(!ne)return;let ie=[];return Es(ne,oe=>{K(oe,de=>{Y4(de)&&x(ie,de.getFirstToken(),127)})}),ie}function K(V,ne){ne(V),!Ns(V)&&!ii(V)&&!hu(V)&&!nl(V)&&!sd(V)&&!di(V)&&Es(V,ie=>K(ie,ne))}function U(V,ne){let ie=me(V,ne),oe=[];for(let de=0;de<ie.length;de++){if(ie[de].kind===93&&de<ie.length-1){let ye=ie[de],H=ie[de+1],ve=!0;for(let Ge=H.getStart(ne)-1;Ge>=ye.end;Ge--)if(!Tm(ne.text.charCodeAt(Ge))){ve=!1;break}if(ve){oe.push({fileName:ne.fileName,textSpan:Uc(ye.getStart(),H.end),kind:"reference"}),de++;continue}}oe.push(n(ie[de],ne))}return oe}function me(V,ne){let ie=[];for(;qb(V.parent)&&V.parent.elseStatement===V;)V=V.parent;for(;;){let oe=V.getChildren(ne);x(ie,oe[0],101);for(let de=oe.length-1;de>=0&&!x(ie,oe[de],93);de--);if(!V.elseStatement||!qb(V.elseStatement))break;V=V.elseStatement}return ie}function te(V,ne){return!!gr(V.parent,ie=>z0(ie)?ie.label.escapedText===ne:"quit")}})(AL||(AL={}));function b3(e){return!!e.sourceFile}function dle(e,t,n){return g$(e,t,n)}function g$(e,t="",n,i){let s=new Map,o=fu(!!e);function c(){let D=ps(s.keys()).filter(E=>E&&E.charAt(0)==="_").map(E=>{let O=s.get(E),F=[];return O.forEach((B,G)=>{b3(B)?F.push({name:G,scriptKind:B.sourceFile.scriptKind,refCount:B.languageServiceRefCount}):B.forEach(($,K)=>F.push({name:G,scriptKind:K,refCount:$.languageServiceRefCount}))}),F.sort((B,G)=>G.refCount-B.refCount),{bucket:E,sourceFiles:F}});return JSON.stringify(D,void 0,2)}function _(D){return typeof D.getCompilationSettings=="function"?D.getCompilationSettings():D}function u(D,E,O,F,B,G){let $=ko(D,t,o),K=h$(_(E));return g(D,$,E,K,O,F,B,G)}function g(D,E,O,F,B,G,$,K){return T(D,E,O,F,B,G,!0,$,K)}function m(D,E,O,F,B,G){let $=ko(D,t,o),K=h$(_(E));return h(D,$,E,K,O,F,B,G)}function h(D,E,O,F,B,G,$,K){return T(D,E,_(O),F,B,G,!1,$,K)}function S(D,E){let O=b3(D)?D:D.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||!O||O.sourceFile.scriptKind===E,`Script kind should match provided ScriptKind:${E} and sourceFile.scriptKind: ${O?.sourceFile.scriptKind}, !entry: ${!O}`),O}function T(D,E,O,F,B,G,$,K,U){var me,te,V,ne;K=AO(D,K);let ie=_(O),oe=O===ie?void 0:O,de=K===6?100:wa(ie),ye=typeof U=="object"?U:{languageVersion:de,impliedNodeFormat:oe&&zM(E,(ne=(V=(te=(me=oe.getCompilerHost)==null?void 0:me.call(oe))==null?void 0:te.getModuleResolutionCache)==null?void 0:V.call(te))==null?void 0:ne.getPackageJsonInfoCache(),oe,ie),setExternalModuleIndicator:I4(ie),jsDocParsingMode:n};ye.languageVersion=de,w.assertEqual(n,ye.jsDocParsingMode);let H=s.size,ve=mle(F,ye.impliedNodeFormat),Ge=pP(s,ve,()=>new Map);if(_n){s.size>H&&_n.instant(_n.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:ie.configFilePath,key:ve});let _e=!Ll(E)&&Nl(s,(tt,ct)=>ct!==ve&&tt.has(E)&&ct);_e&&_n.instant(_n.Phase.Session,"documentRegistryBucketOverlap",{path:E,key1:_e,key2:ve})}let De=Ge.get(E),se=De&&S(De,K);if(!se&&i){let _e=i.getDocument(ve,E);_e&&_e.scriptKind===K&&_e.text===sC(B)&&(w.assert($),se={sourceFile:_e,languageServiceRefCount:0},xe())}if(se)se.sourceFile.version!==G&&(se.sourceFile=K$(se.sourceFile,B,G,B.getChangeRange(se.sourceFile.scriptSnapshot)),i&&i.setDocument(ve,E,se.sourceFile)),$&&se.languageServiceRefCount++;else{let _e=qL(D,B,ye,G,!1,K);i&&i.setDocument(ve,E,_e),se={sourceFile:_e,languageServiceRefCount:1},xe()}return w.assert(se.languageServiceRefCount!==0),se.sourceFile;function xe(){if(!De)Ge.set(E,se);else if(b3(De)){let _e=new Map;_e.set(De.sourceFile.scriptKind,De),_e.set(K,se),Ge.set(E,_e)}else De.set(K,se)}}function x(D,E,O,F){let B=ko(D,t,o),G=h$(E);return I(B,G,O,F)}function I(D,E,O,F){let B=w.checkDefined(s.get(mle(E,F))),G=B.get(D),$=S(G,O);$.languageServiceRefCount--,w.assert($.languageServiceRefCount>=0),$.languageServiceRefCount===0&&(b3(G)?B.delete(D):(G.delete(O),G.size===1&&B.set(D,vm(G.values(),Do))))}return{acquireDocument:u,acquireDocumentWithKey:g,updateDocument:m,updateDocumentWithKey:h,releaseDocument:x,releaseDocumentWithKey:I,getKeyForCompilationSettings:h$,getDocumentRegistryBucketKeyWithMode:mle,reportStats:c,getBuckets:()=>s}}function h$(e){return sU(e,zG)}function mle(e,t){return t?`${e}|${t}`:e}function gle(e,t,n,i,s,o,c){let _=mk(i),u=fu(_),g=y$(t,n,u,c),m=y$(n,t,u,c);return fn.ChangeTracker.with({host:i,formatContext:s,preferences:o},h=>{YVe(e,h,g,t,n,i.getCurrentDirectory(),_),ZVe(e,h,g,m,i,u)})}function y$(e,t,n,i){let s=n(e);return c=>{let _=i&&i.tryGetSourcePosition({fileName:c,pos:0}),u=o(_?_.fileName:c);return _?u===void 0?void 0:XVe(_.fileName,u,c,n):u};function o(c){if(n(c)===s)return t;let _=SJ(c,s,n);return _===void 0?void 0:t+"/"+_}}function XVe(e,t,n,i){let s=Cw(e,t,i);return hle(Yn(n),s)}function YVe(e,t,n,i,s,o,c){let{configFile:_}=e.getCompilerOptions();if(!_)return;let u=Yn(_.fileName),g=QP(_);if(!g)return;yle(g,(T,x)=>{switch(x){case"files":case"include":case"exclude":{if(m(T)||x!=="include"||!gu(T.initializer))return;let D=Vi(T.initializer.elements,O=>ya(O)?O.text:void 0);if(D.length===0)return;let E=PO(u,[],D,c,o);iv(w.checkDefined(E.includeFilePattern),c).test(i)&&!iv(w.checkDefined(E.includeFilePattern),c).test(s)&&t.insertNodeAfter(_,xa(T.initializer.elements),A.createStringLiteral(S(s)));return}case"compilerOptions":yle(T.initializer,(I,D)=>{let E=VG(D);w.assert(E?.type!=="listOrElement"),E&&(E.isFilePath||E.type==="list"&&E.element.isFilePath)?m(I):D==="paths"&&yle(I.initializer,O=>{if(gu(O.initializer))for(let F of O.initializer.elements)h(F)})});return}});function m(T){let x=gu(T.initializer)?T.initializer.elements:[T.initializer],I=!1;for(let D of x)I=h(D)||I;return I}function h(T){if(!ya(T))return!1;let x=hle(u,T.text),I=n(x);return I!==void 0?(t.replaceRangeWithText(_,Dxe(T,_),S(I)),!0):!1}function S(T){return Zf(u,T,!c)}}function ZVe(e,t,n,i,s,o){let c=e.getSourceFiles();for(let _ of c){let u=n(_.fileName),g=u??_.fileName,m=Yn(g),h=i(_.fileName),S=h||_.fileName,T=Yn(S),x=u!==void 0||h!==void 0;rqe(_,t,I=>{if(!Of(I))return;let D=hle(T,I),E=n(D);return E===void 0?void 0:KT(Zf(m,E,o))},I=>{let D=e.getTypeChecker().getSymbolAtLocation(I);if(D?.declarations&&D.declarations.some(O=>e_(O)))return;let E=h!==void 0?Ixe(I,Fk(I.text,S,e.getCompilerOptions(),s),n,c):tqe(D,I,_,e,s,n);return E!==void 0&&(E.updated||x&&Of(I.text))?hy.updateModuleSpecifier(e.getCompilerOptions(),_,g,E.newFileName,a1(e,s),I.text):void 0})}}function eqe(e,t){return na(Bn(e,t))}function hle(e,t){return KT(eqe(e,t))}function tqe(e,t,n,i,s,o){if(e){let c=On(e.declarations,Mi).fileName,_=o(c);return _===void 0?{newFileName:c,updated:!1}:{newFileName:_,updated:!0}}else{let c=i.getModeForUsageLocation(n,t),_=s.resolveModuleNameLiterals||!s.resolveModuleNames?i.getResolvedModuleFromModuleSpecifier(t,n):s.getResolvedModuleWithFailedLookupLocationsFromCache&&s.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,n.fileName,c);return Ixe(t,_,o,i.getSourceFiles())}}function Ixe(e,t,n,i){if(!t)return;if(t.resolvedModule){let u=_(t.resolvedModule.resolvedFileName);if(u)return u}let s=or(t.failedLookupLocations,o)||Of(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&&On(i,m=>m.fileName===g)?c(u):void 0}function c(u){return Jo(u,"/package.json")?void 0:_(u)}function _(u){let g=n(u);return g&&{newFileName:g,updated:!0}}}function rqe(e,t,n,i){for(let s of e.referencedFiles||qe){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,Dxe(s,e),o)}}function Dxe(e,t){return Dp(e.getStart(t)+1,e.end-1)}function yle(e,t){if(Sa(e))for(let n of e.properties)hl(n)&&ya(n.name)&&t(n,n.name.text)}var v$=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(v$||{});function LE(e,t){return{kind:e,isCaseSensitive:t}}function vle(e){let t=new Map,n=e.trim().split(".").map(i=>aqe(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)=>nqe(i,s,n,t),getMatchForLastSegmentOfPattern:i=>ble(i,xa(n),t),patternContainsDots:n.length>1}}function nqe(e,t,n,i){if(!ble(t,xa(n),i)||n.length-1>e.length)return;let o;for(let c=n.length-2,_=e.length-1;c>=0;c-=1,_-=1)o=Exe(o,ble(e[_],n[c],i));return o}function Pxe(e,t){let n=t.get(e);return n||t.set(e,n=wle(e)),n}function Axe(e,t,n){let i=oqe(e,t.textLowerCase);if(i===0)return LE(t.text.length===e.length?0:1,Yi(e,t.text));if(t.isLowerCase){if(i===-1)return;let s=Pxe(e,n);for(let o of s)if(Sle(e,o,t.text,!0))return LE(2,Sle(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=Pxe(e,n),o=Nxe(e,s,t,!1)?!0:Nxe(e,s,t,!0)?!1:void 0;if(o!==void 0)return LE(3,o)}}}function ble(e,t,n){if(b$(t.totalTextChunk.text,o=>o!==32&&o!==42)){let o=Axe(e,t.totalTextChunk,n);if(o)return o}let i=t.subWordTextChunks,s;for(let o of i)s=Exe(s,Axe(e,o,n));return s}function Exe(e,t){return RW([e,t],iqe)}function iqe(e,t){return e===void 0?1:t===void 0?-1:Po(e.kind,t.kind)||wb(!e.isCaseSensitive,!t.isCaseSensitive)}function Sle(e,t,n,i,s={start:0,length:n.length}){return s.length<=t.length&&Oxe(0,s.length,o=>sqe(n.charCodeAt(s.start+o),e.charCodeAt(t.start+o),i))}function sqe(e,t,n){return n?Tle(e)===Tle(t):e===t}function Nxe(e,t,n,i){let s=n.characterSpans,o=0,c=0,_,u;for(;;){if(c===s.length)return!0;if(o===t.length)return!1;let g=t[o],m=!1;for(;c<s.length;c++){let h=s[c];if(m&&(!tD(n.text.charCodeAt(s[c-1].start))||!tD(n.text.charCodeAt(s[c].start)))||!Sle(e,g,n.text,i,h))break;m=!0,_=_===void 0?o:_,u=u===void 0?!0:u,g=pu(g.start+h.length,g.length-h.length)}!m&&u!==void 0&&(u=!1),o++}}function aqe(e){return{totalTextChunk:xle(e),subWordTextChunks:lqe(e)}}function tD(e){if(e>=65&&e<=90)return!0;if(e<127||!U8(e,99))return!1;let t=String.fromCharCode(e);return t===t.toUpperCase()}function Mxe(e){if(e>=97&&e<=122)return!0;if(e<127||!U8(e,99))return!1;let t=String.fromCharCode(e);return t===t.toLowerCase()}function oqe(e,t){let n=e.length-t.length;for(let i=0;i<=n;i++)if(b$(t,(s,o)=>Tle(e.charCodeAt(o+i))===s))return i;return-1}function Tle(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function kle(e){return e>=48&&e<=57}function cqe(e){return tD(e)||Mxe(e)||kle(e)||e===95||e===36}function lqe(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(xle(e.substr(n,i))),i=0)}return i>0&&t.push(xle(e.substr(n,i))),t}function xle(e){let t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:Cle(e)}}function Cle(e){return Rxe(e,!1)}function wle(e){return Rxe(e,!0)}function Rxe(e,t){let n=[],i=0;for(let s=1;s<e.length;s++){let o=kle(e.charCodeAt(s-1)),c=kle(e.charCodeAt(s)),_=_qe(e,t,s),u=t&&uqe(e,s,i);(Ile(e.charCodeAt(s-1))||Ile(e.charCodeAt(s))||o!==c||_||u)&&(Fxe(e,i,s)||n.push(pu(i,s-i)),i=s)}return Fxe(e,i,e.length)||n.push(pu(i,e.length-i)),n}function Ile(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 Fxe(e,t,n){return b$(e,i=>Ile(i)&&i!==95,t,n)}function uqe(e,t,n){return t!==n&&t+1<e.length&&tD(e.charCodeAt(t))&&Mxe(e.charCodeAt(t+1))&&b$(e,tD,n,t)}function _qe(e,t,n){let i=tD(e.charCodeAt(n-1));return tD(e.charCodeAt(n))&&(!t||!i)}function Oxe(e,t,n){for(let i=e;i<t;i++)if(!n(i))return!1;return!0}function b$(e,t,n=0,i=e.length){return Oxe(n,i,s=>t(e.charCodeAt(s),s))}function Lxe(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,_,u=0,g=!1;function m(){return c=_,_=ou.scan(),_===19?u++:_===20&&u--,_}function h(){let G=ou.getTokenValue(),$=ou.getTokenStart();return{fileName:G,pos:$,end:$+G.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 G=ou.getToken();return G===138?(G=m(),G===144&&(G=m(),G===11&&S()),!0):!1}function D(){if(c===25)return!1;let G=ou.getToken();if(G===102){if(G=m(),G===21){if(G=m(),G===11||G===15)return T(),!0}else{if(G===11)return T(),!0;if(G===156&&ou.lookAhead(()=>{let K=ou.scan();return K!==161&&(K===42||K===19||K===80||F_(K))})&&(G=m()),G===80||F_(G))if(G=m(),G===161){if(G=m(),G===11)return T(),!0}else if(G===64){if(O(!0))return!0}else if(G===28)G=m();else return!0;if(G===19){for(G=m();G!==20&&G!==1;)G=m();G===20&&(G=m(),G===161&&(G=m(),G===11&&T()))}else G===42&&(G=m(),G===130&&(G=m(),(G===80||F_(G))&&(G=m(),G===161&&(G=m(),G===11&&T()))))}return!0}return!1}function E(){let G=ou.getToken();if(G===95){if(x(),G=m(),G===156&&ou.lookAhead(()=>{let K=ou.scan();return K===42||K===19})&&(G=m()),G===19){for(G=m();G!==20&&G!==1;)G=m();G===20&&(G=m(),G===161&&(G=m(),G===11&&T()))}else if(G===42)G=m(),G===161&&(G=m(),G===11&&T());else if(G===102&&(G=m(),G===156&&ou.lookAhead(()=>{let K=ou.scan();return K===80||F_(K)})&&(G=m()),(G===80||F_(G))&&(G=m(),G===64&&O(!0))))return!0;return!0}return!1}function O(G,$=!1){let K=G?m():ou.getToken();return K===149?(K=m(),K===21&&(K=m(),(K===11||$&&K===15)&&T()),!0):!1}function F(){let G=ou.getToken();if(G===80&&ou.getTokenValue()==="define"){if(G=m(),G!==21)return!0;if(G=m(),G===11||G===15)if(G=m(),G===28)G=m();else return!0;if(G!==23)return!0;for(G=m();G!==24&&G!==1;)(G===11||G===15)&&T(),G=m();return!0}return!1}function B(){for(ou.setText(e),m();ou.getToken()!==1;){if(ou.getToken()===16){let G=[ou.getToken()];e:for(;Dr(G);){let $=ou.scan();switch($){case 1:break e;case 102:D();break;case 16:G.push($);break;case 19:Dr(G)&&G.push($);break;case 20:Dr(G)&&(zo(G)===16?ou.reScanTemplateToken(!1)===18&&G.pop():G.pop());break}}m()}I()||D()||E()||n&&(O(!1,!0)||F())||m()}ou.setText(void 0)}if(t&&B(),OG(i,e),LG(i,to),g){if(o)for(let G of o)s.push(G.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:s,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:void 0}}else{let G;if(o)for(let $ of o)$.depth===0?(G||(G=[]),G.push($.ref.fileName)):s.push($.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:s,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:G}}}var fqe=/^data:(?:application\/json;charset=[uU][tT][fF]-8;base64,([A-Za-z0-9+/=]+)$)?/;function Dle(e){let t=fu(e.useCaseSensitiveFileNames()),n=e.getCurrentDirectory(),i=new Map,s=new Map;return{tryGetSourcePosition:_,tryGetGeneratedPosition:u,toLineColumnOffset:S,clearCache:T,documentPositionMappers:s};function o(x){return ko(x,n,t)}function c(x,I){let D=o(x),E=s.get(D);if(E)return E;let O;if(e.getDocumentPositionMapper)O=e.getDocumentPositionMapper(x,I);else if(e.readFile){let F=h(x);O=F&&S$({getSourceFileLike:h,getCanonicalFileName:t,log:B=>e.log(B)},x,PU(F.text,nh(F)),B=>!e.fileExists||e.fileExists(B)?e.readFile(B):void 0)}return s.set(D,O||EU),O||EU}function _(x){if(!Ll(x.fileName)||!g(x.fileName))return;let D=c(x.fileName).getSourcePosition(x);return!D||D===x?void 0:_(D)||D}function u(x){if(Ll(x.fileName))return;let I=g(x.fileName);if(!I)return;let D=e.getProgram();if(D.isSourceOfProjectReferenceRedirect(I.fileName))return;let O=D.getCompilerOptions().outFile,F=O?i_(O)+".d.ts":eO(x.fileName,D.getCompilerOptions(),D);if(F===void 0)return;let B=c(F,x.fileName).getGeneratedPosition(x);return B===x?void 0:B}function g(x){let I=e.getProgram();if(!I)return;let D=o(x),E=I.getSourceFileByPath(D);return E&&E.resolvedPath===D?E:void 0}function m(x){let I=o(x),D=i.get(I);if(D!==void 0)return D||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(x)){i.set(I,!1);return}let E=e.readFile(x),O=E?pqe(E):!1;return i.set(I,O),O||void 0}function h(x){return e.getSourceFileLike?e.getSourceFileLike(x):g(x)||m(x)}function S(x,I){return h(x).getLineAndCharacterOfPosition(I)}function T(){i.clear(),s.clear()}}function S$(e,t,n,i){let s=eae(n);if(s){let _=fqe.exec(s);if(_){if(_[1]){let u=_[1];return jxe(e,Nre(Al,u),t)}s=void 0}}let o=[];s&&o.push(s),o.push(t+".map");let c=s&&as(s,Yn(t));for(let _ of o){let u=as(_,Yn(t)),g=i(u,c);if(ys(g))return jxe(e,g,u);if(g!==void 0)return g||void 0}}function jxe(e,t,n){let i=tae(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(ys)))return nae(e,i,n)}function pqe(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(n){return ww(nh(this),n)}}}var Ple=new Map;function T$(e,t,n){var i;t.getSemanticDiagnostics(e,n);let s=[],o=t.getTypeChecker();!(t.getImpliedNodeFormatForEmit(e)===1||Gc(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(jce(t)||Rq(t.getCompilerOptions()))&&dqe(e)&&s.push(cn(yqe(e.commonJsModuleIndicator),p.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));let _=g_(e);if(Ple.clear(),u(e),x2(t.getCompilerOptions()))for(let g of e.imports){let m=eA(g),h=mqe(m);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&&Ho(T.externalModuleIndicator)&&T.externalModuleIndicator.isExportEquals&&s.push(cn(h,p.Import_may_be_converted_to_a_default_import))}return jn(s,e.bindSuggestionDiagnostics),jn(s,t.getSuggestionDiagnostics(e,n)),s.sort((g,m)=>g.start-m.start),s;function u(g){if(_)bqe(g,o)&&s.push(cn(oi(g.parent)?g.parent.name:g,p.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(Lc(g)&&g.parent===e&&g.declarationList.flags&2&&g.declarationList.declarations.length===1){let h=g.declarationList.declarations[0].initializer;h&&R_(h,!0)&&s.push(cn(h,p.require_call_may_be_converted_to_an_import))}let m=Vu.getJSDocTypedefNodes(g);for(let h of m)s.push(cn(h,p.JSDoc_typedef_may_be_converted_to_TypeScript_type));Vu.parameterShouldGetTypeFromJSDoc(g)&&s.push(cn(g.name||g,p.JSDoc_types_may_be_moved_to_TypeScript_types))}C$(g)&&gqe(g,o,s),g.forEachChild(u)}}function dqe(e){return e.statements.some(t=>{switch(t.kind){case 243:return t.declarationList.declarations.some(n=>!!n.initializer&&R_(Wxe(n.initializer),!0));case 244:{let{expression:n}=t;if(!vn(n))return R_(n,!0);let i=Vc(n);return i===1||i===2}default:return!1}})}function Wxe(e){return Nn(e)?Wxe(e.expression):e}function mqe(e){switch(e.kind){case 272:let{importClause:t,moduleSpecifier:n}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===274&&ya(n)?t.namedBindings.name:void 0;case 271:return e.name;default:return}}function gqe(e,t,n){hqe(e,t)&&!Ple.has(Gxe(e))&&n.push(cn(!e.name&&oi(e.parent)&&je(e.parent.name)?e.parent.name:e,p.This_may_be_converted_to_an_async_function))}function hqe(e,t){return!sA(e)&&e.body&&Fs(e.body)&&vqe(e.body,t)&&k$(e,t)}function k$(e,t){let n=t.getSignatureFromDeclaration(e),i=n?t.getReturnTypeOfSignature(n):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}function yqe(e){return vn(e)?e.left:e}function vqe(e,t){return!!D0(e,n=>EL(n,t))}function EL(e,t){return Bf(e)&&!!e.expression&&x$(e.expression,t)}function x$(e,t){if(!Bxe(e)||!zxe(e)||!e.arguments.every(i=>Jxe(i,t)))return!1;let n=e.expression.expression;for(;Bxe(n)||Nn(n);)if(qs(n)){if(!zxe(n)||!n.arguments.every(i=>Jxe(i,t)))return!1;n=n.expression.expression}else n=n.expression;return!0}function Bxe(e){return qs(e)&&(ZM(e,"then")||ZM(e,"catch")||ZM(e,"finally"))}function zxe(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||pt(e.arguments,i=>i.kind===106||je(i)&&i.text==="undefined")}function Jxe(e,t){switch(e.kind){case 262:case 218:if(Kc(e)&1)return!1;case 219:Ple.set(Gxe(e),!0);case 106:return!0;case 80:case 211:{let i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||pt(du(i,t).declarations,s=>Ns(s)||Yy(s)&&!!s.initializer&&Ns(s.initializer)):!1}default:return!1}}function Gxe(e){return`${e.pos.toString()}:${e.end.toString()}`}function bqe(e,t){var n,i,s,o;if(Ao(e)){if(oi(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 jc(e)?!!((o=e.symbol.members)!=null&&o.size):!1}function C$(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var Sqe=new Set(["isolatedModules"]);function Ale(e,t){return Vxe(e,t,!1)}function Uxe(e,t){return Vxe(e,t,!0)}var Tqe=`/// <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;
}`,NL="lib.d.ts",Ele;function Vxe(e,t,n){Ele??(Ele=$2(NL,Tqe,{languageVersion:99}));let i=[],s=t.compilerOptions?w$(t.compilerOptions,i):{},o=VL();for(let I in o)bo(o,I)&&s[I]===void 0&&(s[I]=o[I]);for(let I of ese)s.verbatimModuleSyntax&&Sqe.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=nv(s),_={getSourceFile:I=>I===na(u)?g:I===na(NL)?Ele:void 0,writeFile:(I,D)=>{nc(I,".map")?(w.assertEqual(h,void 0,"Unexpected multiple source map outputs, file:",I),h=D):(w.assertEqual(m,void 0,"Unexpected multiple outputs, file:",I),m=D)},getDefaultLibFileName:()=>NL,useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:I=>I,getCurrentDirectory:()=>"",getNewLine:()=>c,fileExists:I=>I===u||!!n&&I===NL,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},u=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),g=$2(u,e,{languageVersion:wa(s),impliedNodeFormat:zM(ko(u,"",_.getCanonicalFileName),void 0,_,s),setExternalModuleIndicator:I4(s),jsDocParsingMode:t.jsDocParsingMode??0});t.moduleName&&(g.moduleName=t.moduleName),t.renamedDependencies&&(g.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let m,h,T=JM(n?[u,NL]:[u],s,_);t.reportDiagnostics&&(jn(i,T.getSyntacticDiagnostics(g)),jn(i,T.getOptionsDiagnostics()));let x=T.emit(void 0,void 0,void 0,n,t.transformers,n);return jn(i,x.diagnostics),m===void 0?w.fail("Output generation failed"):{outputText:m,diagnostics:i,sourceMapText:h}}function qxe(e,t,n,i,s){let o=Ale(e,{compilerOptions:t,fileName:n,reportDiagnostics:!!i,moduleName:s});return jn(i,o.diagnostics),o.outputText}var Nle;function w$(e,t){Nle=Nle||An(Id,n=>typeof n.type=="object"&&!Nl(n.type,i=>typeof i!="number")),e=Dq(e);for(let n of Nle){if(!bo(e,n.name))continue;let i=e[n.name];ys(i)?e[n.name]=P7(n,i,t):Nl(n.type,s=>s===i)||t.push(rse(n))}return e}var Mle={};nt(Mle,{getNavigateToItems:()=>$xe});function $xe(e,t,n,i,s,o,c){let _=vle(i);if(!_)return qe;let u=[],g=e.length===1?e[0]:void 0;for(let m of e)n.throwIfCancellationRequested(),!(o&&m.isDeclarationFile)&&(Hxe(m,!!c,g)||m.getNamedDeclarations().forEach((h,S)=>{kqe(_,S,h,t,m.fileName,!!c,g,u)}));return u.sort(Iqe),(s===void 0?u:u.slice(0,s)).map(Dqe)}function Hxe(e,t,n){return e!==n&&t&&(m3(e.path)||e.hasNoDefaultLib)}function kqe(e,t,n,i,s,o,c,_){let u=e.getMatchForLastSegmentOfPattern(t);if(u){for(let g of n)if(xqe(g,i,o,c))if(e.patternContainsDots){let m=e.getFullMatch(wqe(g),t);m&&_.push({name:t,fileName:s,matchKind:m.kind,isCaseSensitive:m.isCaseSensitive,declaration:g})}else _.push({name:t,fileName:s,matchKind:u.kind,isCaseSensitive:u.isCaseSensitive,declaration:g})}}function xqe(e,t,n,i){var s;switch(e.kind){case 273:case 276:case 271:let o=t.getSymbolAtLocation(e.name),c=t.getAliasedSymbol(o);return o.escapedName!==c.escapedName&&!((s=c.declarations)!=null&&s.every(_=>Hxe(_.getSourceFile(),n,i)));default:return!0}}function Cqe(e,t){let n=vs(e);return!!n&&(Qxe(n,t)||n.kind===167&&Rle(n.expression,t))}function Rle(e,t){return Qxe(e,t)||Nn(e)&&(t.push(e.name.text),!0)&&Rle(e.expression,t)}function Qxe(e,t){return Pm(e)&&(t.push(Ip(e)),!0)}function wqe(e){let t=[],n=vs(e);if(n&&n.kind===167&&!Rle(n.expression,t))return qe;t.shift();let i=Jk(e);for(;i;){if(!Cqe(i,t))return qe;i=Jk(i)}return t.reverse(),t}function Iqe(e,t){return Po(e.matchKind,t.matchKind)||e6(e.name,t.name)}function Dqe(e){let t=e.declaration,n=Jk(t),i=n&&vs(n);return{name:e.name,kind:QS(t),kindModifiers:IE(t),matchKind:v$[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:k_(t),containerName:i?i.text:"",containerKind:i?QS(n):""}}var Fle={};nt(Fle,{getNavigationBarItems:()=>Xxe,getNavigationTree:()=>Yxe});var Pqe=/\s+/g,Ole=150,I$,S3,ML=[],gv,Kxe=[],rD,Lle=[];function Xxe(e,t){I$=t,S3=e;try{return hr(Rqe(t2e(e)),Fqe)}finally{Zxe()}}function Yxe(e,t){I$=t,S3=e;try{return u2e(t2e(e))}finally{Zxe()}}function Zxe(){S3=void 0,I$=void 0,ML=[],gv=void 0,Lle=[]}function RL(e){return jE(e.getText(S3))}function D$(e){return e.node.kind}function e2e(e,t){e.children?e.children.push(t):e.children=[t]}function t2e(e){w.assert(!ML.length);let t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};gv=t;for(let n of e.statements)cC(n);return c1(),w.assert(!gv&&!ML.length),t}function ZS(e,t){e2e(gv,jle(e,t))}function jle(e,t){return{node:e,name:t||(Ul(e)||gt(e)?vs(e):void 0),additionalNodes:void 0,parent:gv,children:void 0,indent:gv.indent+1}}function r2e(e){rD||(rD=new Map),rD.set(e,!0)}function n2e(e){for(let t=0;t<e;t++)c1()}function i2e(e,t){let n=[];for(;!Pm(t);){let i=Z6(t),s=ay(t);t=t.expression,!(s==="prototype"||ji(i))&&n.push(i)}n.push(t);for(let i=n.length-1;i>0;i--){let s=n[i];eT(e,s)}return[n.length-1,n[0]]}function eT(e,t){let n=jle(e,t);e2e(gv,n),ML.push(gv),Kxe.push(rD),rD=void 0,gv=n}function c1(){gv.children&&(P$(gv.children,gv),zle(gv.children)),gv=ML.pop(),rD=Kxe.pop()}function l1(e,t,n){eT(e,n),cC(t),c1()}function s2e(e){e.initializer&&Lqe(e.initializer)?(eT(e),Es(e.initializer,cC),c1()):l1(e,e.initializer)}function Wle(e){let t=vs(e);if(t===void 0)return!1;if(pa(t)){let n=t.expression;return mo(n)||L_(n)||tp(n)}return!!t}function cC(e){if(I$.throwIfCancellationRequested(),!(!e||Xx(e)))switch(e.kind){case 176:let t=e;l1(t,t.body);for(let c of t.parameters)pf(c,t)&&ZS(c);break;case 174:case 177:case 178:case 173:Wle(e)&&l1(e,e.body);break;case 172:Wle(e)&&s2e(e);break;case 171:Wle(e)&&ZS(e);break;case 273:let n=e;n.name&&ZS(n.name);let{namedBindings:i}=n;if(i)if(i.kind===274)ZS(i);else for(let c of i.elements)ZS(c);break;case 304:l1(e,e.name);break;case 305:let{expression:s}=e;je(s)?ZS(e,s):ZS(e);break;case 208:case 303:case 260:{let c=e;Ws(c.name)?cC(c.name):s2e(c);break}case 262:let o=e.name;o&&je(o)&&r2e(o.text),l1(e,e.body);break;case 219:case 218:l1(e,e.body);break;case 266:eT(e);for(let c of e.members)Oqe(c)||ZS(c);c1();break;case 263:case 231:case 264:eT(e);for(let c of e.members)cC(c);c1();break;case 267:l1(e,f2e(e).body);break;case 277:{let c=e.expression,_=Sa(c)||qs(c)?c:Lo(c)||Ao(c)?c.body:void 0;_?(eT(e),cC(_),c1()):ZS(e);break}case 281:case 271:case 181:case 179:case 180:case 265:ZS(e);break;case 213:case 226:{let c=Vc(e);switch(c){case 1:case 2:l1(e,e.right);return;case 6:case 3:{let _=e,u=_.left,g=c===3?u.expression:u,m=0,h;je(g.expression)?(r2e(g.expression.text),h=g.expression):[m,h]=i2e(_,g.expression),c===6?Sa(_.right)&&_.right.properties.length>0&&(eT(_,h),Es(_.right,cC),c1()):Ao(_.right)||Lo(_.right)?l1(e,_.right,h):(eT(_,h),l1(e,_.right,u.name),c1()),n2e(m);return}case 7:case 9:{let _=e,u=c===7?_.arguments[0]:_.arguments[0].expression,g=_.arguments[1],[m,h]=i2e(e,u);eT(e,h),eT(e,dt(A.createIdentifier(g.text),g)),cC(e.arguments[2]),c1(),c1(),n2e(m);return}case 5:{let _=e,u=_.left,g=u.expression;if(je(g)&&ay(u)!=="prototype"&&rD&&rD.has(g.text)){Ao(_.right)||Lo(_.right)?l1(e,_.right,g):vS(u)&&(eT(_,g),l1(_.left,_.right,Z6(u)),c1());return}break}case 4:case 0:case 8:break;default:w.assertNever(c)}}default:Lf(e)&&or(e.jsDoc,c=>{or(c.tags,_=>{td(_)&&ZS(_)})}),Es(e,cC)}}function P$(e,t){let n=new Map;vW(e,(i,s)=>{let o=i.name||vs(i.node),c=o&&RL(o);if(!c)return!0;let _=n.get(c);if(!_)return n.set(c,i),!0;if(_ instanceof Array){for(let u of _)if(a2e(u,i,s,t))return!1;return _.push(i),!0}else{let u=_;return a2e(u,i,s,t)?!1:(n.set(c,[u,i]),!0)}})}var T3={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1};function Aqe(e,t,n,i){function s(_){return Ao(_)||jc(_)||oi(_)}let o=vn(t.node)||qs(t.node)?Vc(t.node):0,c=vn(e.node)||qs(e.node)?Vc(e.node):0;if(T3[o]&&T3[c]||s(e.node)&&T3[o]||s(t.node)&&T3[c]||gl(e.node)&&Ble(e.node)&&T3[o]||gl(t.node)&&T3[c]||gl(e.node)&&Ble(e.node)&&s(t.node)||gl(t.node)&&s(e.node)&&Ble(e.node)){let _=e.additionalNodes&&zo(e.additionalNodes)||e.node;if(!gl(e.node)&&!gl(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 m=dt(A.createConstructorDeclaration(void 0,[],void 0),g),h=jle(m);h.indent=e.indent+1,h.children=e.node===g?e.children:t.children,e.children=e.node===g?Ki([h],t.children||[t]):Ki(e.children||[{...e}],[h])}else(e.children||t.children)&&(e.children=Ki(e.children||[{...e}],t.children||[t]),e.children&&(P$(e.children,e),zle(e.children)));_=e.node=dt(A.createClassDeclaration(void 0,e.name||A.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=Ki(e.children,t.children),e.children&&P$(e.children,e);let u=t.node;return i.children[n-1].node.end===_.end?dt(_,{pos:_.pos,end:u.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(dt(A.createClassDeclaration(void 0,e.name||A.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return o!==0}function a2e(e,t,n,i){return Aqe(e,t,n,i)?!0:Eqe(e.node,t.node,i)?(Nqe(e,t),!0):!1}function Eqe(e,t,n){if(e.kind!==t.kind||e.parent!==t.parent&&!(o2e(e,n)&&o2e(t,n)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return Ks(e)===Ks(t);case 267:return c2e(e,t)&&Ule(e)===Ule(t);default:return!0}}function Ble(e){return!!(e.flags&16)}function o2e(e,t){if(e.parent===void 0)return!1;let n=Lm(e.parent)?e.parent.parent:e.parent;return n===t.node||Ts(t.additionalNodes,n)}function c2e(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==267||c2e(e.body,t.body))}function Nqe(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=Ki(e.children,t.children),e.children&&(P$(e.children,e),zle(e.children))}function zle(e){e.sort(Mqe)}function Mqe(e,t){return e6(l2e(e.node),l2e(t.node))||Po(D$(e),D$(t))}function l2e(e){if(e.kind===267)return _2e(e);let t=vs(e);if(t&&tl(t)){let n=dk(t);return n&&Li(n)}switch(e.kind){case 218:case 219:case 231:return d2e(e);default:return}}function Jle(e,t){if(e.kind===267)return jE(_2e(e));if(t){let n=je(t)?t.text:wo(t)?`[${RL(t.argumentExpression)}]`:RL(t);if(n.length>0)return jE(n)}switch(e.kind){case 307:let n=e;return xl(n)?`"${wg(fl(i_(na(n.fileName))))}"`:"<global>";case 277:return Ho(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return tv(e)&2048?"default":d2e(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return"<unknown>"}}function Rqe(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(D$(s)){case 263:case 231:case 266:case 264:case 267:case 307:case 265:case 346:case 338:return!0;case 219:case 262:case 218:return o(s);default:return!1}function o(c){if(!c.node.body)return!1;switch(D$(c.parent)){case 268:case 307:case 174:case 176:return!0;default:return!1}}}}function u2e(e){return{text:Jle(e.node,e.name),kind:QS(e.node),kindModifiers:p2e(e.node),spans:Gle(e),nameSpan:e.name&&Vle(e.name),childItems:hr(e.children,u2e)}}function Fqe(e){return{text:Jle(e.node,e.name),kind:QS(e.node),kindModifiers:p2e(e.node),spans:Gle(e),childItems:hr(e.children,t)||Lle,indent:e.indent,bolded:!1,grayed:!1};function t(n){return{text:Jle(n.node,n.name),kind:QS(n.node),kindModifiers:IE(n.node),spans:Gle(n),childItems:Lle,indent:0,bolded:!1,grayed:!1}}}function Gle(e){let t=[Vle(e.node)];if(e.additionalNodes)for(let n of e.additionalNodes)t.push(Vle(n));return t}function _2e(e){return e_(e)?oc(e.name):Ule(e)}function Ule(e){let t=[Ip(e.name)];for(;e.body&&e.body.kind===267;)e=e.body,t.push(Ip(e.name));return t.join(".")}function f2e(e){return e.body&&nl(e.body)?f2e(e.body):e}function Oqe(e){return!e.name||e.name.kind===167}function Vle(e){return e.kind===307?mv(e):k_(e,S3)}function p2e(e){return e.parent&&e.parent.kind===260&&(e=e.parent),IE(e)}function d2e(e){let{parent:t}=e;if(e.name&&P6(e.name)>0)return jE(Co(e.name));if(oi(t))return jE(Co(t.name));if(vn(t)&&t.operatorToken.kind===64)return RL(t.left).replace(Pqe,"");if(hl(t))return RL(t.name);if(tv(e)&2048)return"default";if(ii(e))return"<class>";if(qs(t)){let n=m2e(t.expression);if(n!==void 0){if(n=jE(n),n.length>Ole)return`${n} callback`;let i=jE(Vi(t.arguments,s=>Ha(s)||e2(s)?s.getText(S3):void 0).join(", "));return`${n}(${i}) callback`}}return"<function>"}function m2e(e){if(je(e))return e.text;if(Nn(e)){let t=m2e(e.expression),n=e.name.text;return t===void 0?n:`${t}.${n}`}else return}function Lqe(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}function jE(e){return e=e.length>Ole?e.substring(0,Ole)+"...":e,e.replace(/\\?(?:\r?\n|[\r\u2028\u2029])/g,"")}var lC={};nt(lC,{addExportsInOldFile:()=>rue,addImportsForMovedSymbols:()=>nue,addNewFileToTsconfig:()=>tue,addOrRemoveBracesToArrowFunction:()=>N$e,addTargetFileImports:()=>fue,containsJsx:()=>aue,convertArrowFunctionOrFunctionExpression:()=>L$e,convertParamsToDestructuredObject:()=>H$e,convertStringOrTemplateLiteral:()=>fHe,convertToOptionalChainExpression:()=>THe,createNewFileName:()=>sue,doChangeNamedToNamespaceOrDefault:()=>S2e,extractSymbol:()=>pCe,generateGetAccessorAndSetAccessor:()=>sQe,getApplicableRefactors:()=>jqe,getEditsForRefactor:()=>Wqe,getExistingLocals:()=>uue,getIdentifierForNode:()=>_ue,getNewStatementsAndRemoveFromOldFile:()=>eue,getStatementsToMove:()=>k3,getUsageInfo:()=>FL,inferFunctionReturnType:()=>aQe,isInImport:()=>j$,isRefactorErrorInfo:()=>vy,refactorKindBeginsWith:()=>u1,registerRefactor:()=>wh});var qle=new Map;function wh(e,t){qle.set(e,t)}function jqe(e,t){return ps(bW(qle.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 Wqe(e,t,n,i){let s=qle.get(t);return s&&s.getEditsForAction(e,n,i)}var $le="Convert export",A$={name:"Convert default export to named export",description:Is(p.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},E$={name:"Convert named export to default export",description:Is(p.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"};wh($le,{kinds:[A$.kind,E$.kind],getAvailableActions:function(t){let n=g2e(t,t.triggerReason==="invoked");if(!n)return qe;if(!vy(n)){let i=n.wasDefault?A$:E$;return[{name:$le,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:$le,description:Is(p.Convert_default_export_to_named_export),actions:[{...A$,notApplicableReason:n.error},{...E$,notApplicableReason:n.error}]}]:qe},getEditsForAction:function(t,n){w.assert(n===A$.name||n===E$.name,"Unexpected action name");let i=g2e(t);return w.assert(i&&!vy(i),"Expected applicable refactor info"),{edits:fn.ChangeTracker.with(t,o=>Bqe(t.file,t.program,i,o,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}});function g2e(e,t=!0){let{file:n,program:i}=e,s=aC(e),o=ki(n,s.start),c=o.parent&&tv(o.parent)&32&&t?o.parent:l3(o,n,s);if(!c||!Mi(c.parent)&&!(Lm(c.parent)&&e_(c.parent.parent)))return{error:Is(p.Could_not_find_export_statement)};let _=i.getTypeChecker(),u=Vqe(c.parent,_),g=tv(c)||(Ho(c)&&!c.isExportEquals?2080:0),m=!!(g&2048);if(!(g&32)||!m&&u.exports.has("default"))return{error:Is(p.This_file_already_has_a_default_export)};let h=S=>je(S)&&_.getSymbolAtLocation(S)?void 0:{error:Is(p.Can_only_convert_named_export)};switch(c.kind){case 262:case 263:case 264:case 266:case 265:case 267:{let S=c;return S.name?h(S.name)||{exportNode:S,exportName:S.name,wasDefault:m,exportingModuleSymbol:u}:void 0}case 243:{let S=c;if(!(S.declarationList.flags&2)||S.declarationList.declarations.length!==1)return;let T=Ea(S.declarationList.declarations);return T.initializer?(w.assert(!m,"Can't have a default flag here"),h(T.name)||{exportNode:S,exportName:T.name,wasDefault:m,exportingModuleSymbol:u}):void 0}case 277:{let S=c;return S.isExportEquals?void 0:h(S.expression)||{exportNode:S,exportName:S.expression,wasDefault:m,exportingModuleSymbol:u}}default:return}}function Bqe(e,t,n,i,s){zqe(e,n,i,t.getTypeChecker()),Jqe(t,n,i,s)}function zqe(e,{wasDefault:t,exportNode:n,exportName:i},s,o){if(t)if(Ho(n)&&!n.isExportEquals){let c=n.expression,_=h2e(c.text,c.text);s.replaceNode(e,n,A.createExportDeclaration(void 0,!1,A.createNamedExports([_])))}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 262:case 263:case 264:s.insertNodeAfter(e,c,A.createToken(90));break;case 243:let _=Ea(n.declarationList.declarations);if(!jo.Core.isSymbolReferencedInFile(i,o,e)&&!_.type){s.replaceNode(e,n,A.createExportDefault(w.checkDefined(_.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:s.deleteModifier(e,c),s.insertNodeAfter(e,n,A.createExportDefault(A.createIdentifier(i.text)));break;default:w.fail(`Unexpected exportNode kind ${n.kind}`)}}}function Jqe(e,{wasDefault:t,exportName:n,exportingModuleSymbol:i},s,o){let c=e.getTypeChecker(),_=w.checkDefined(c.getSymbolAtLocation(n),"Export name should resolve to a symbol");jo.Core.eachExportReference(e.getSourceFiles(),c,o,_,i,n.text,t,u=>{if(n===u)return;let g=u.getSourceFile();t?Gqe(g,u,s,n.text):Uqe(g,u,s)})}function Gqe(e,t,n,i){let{parent:s}=t;switch(s.kind){case 211:n.replaceNode(e,t,A.createIdentifier(i));break;case 276:case 281:{let c=s;n.replaceNode(e,c,Hle(i,c.name.text));break}case 273:{let c=s;w.assert(c.name===t,"Import clause name should match provided ref");let _=Hle(i,t.text),{namedBindings:u}=c;if(!u)n.replaceNode(e,t,A.createNamedImports([_]));else if(u.kind===274){n.deleteRange(e,{pos:t.getStart(e),end:u.getStart(e)});let g=ya(c.parent.moduleSpecifier)?Oq(c.parent.moduleSpecifier,e):1,m=K0(void 0,[Hle(i,t.text)],c.parent.moduleSpecifier,g);n.insertNodeAfter(e,c.parent,m)}else n.delete(e,t),n.insertNodeAtEndOfList(e,u.elements,_);break}case 205: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 Uqe(e,t,n){let i=t.parent;switch(i.kind){case 211:n.replaceNode(e,t,A.createIdentifier("default"));break;case 276:{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 281:{n.replaceNode(e,i,h2e("default",i.name.text));break}default:w.assertNever(i,`Unexpected parent kind ${i.kind}`)}}function Hle(e,t){return A.createImportSpecifier(!1,e===t?void 0:A.createIdentifier(e),A.createIdentifier(t))}function h2e(e,t){return A.createExportSpecifier(!1,e===t?void 0:A.createIdentifier(e),A.createIdentifier(t))}function Vqe(e,t){if(Mi(e))return e.symbol;let n=e.parent.symbol;return n.valueDeclaration&&mS(n.valueDeclaration)?t.getMergedSymbol(n):n}var Qle="Convert import",N$={0:{name:"Convert namespace import to named imports",description:Is(p.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:Is(p.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:Is(p.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}};wh(Qle,{kinds:zx(N$).map(e=>e.kind),getAvailableActions:function(t){let n=y2e(t,t.triggerReason==="invoked");if(!n)return qe;if(!vy(n)){let i=N$[n.convertTo];return[{name:Qle,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?zx(N$).map(i=>({name:Qle,description:i.description,actions:[{...i,notApplicableReason:n.error}]})):qe},getEditsForAction:function(t,n){w.assert(pt(zx(N$),o=>o.name===n),"Unexpected action name");let i=y2e(t);return w.assert(i&&!vy(i),"Expected applicable refactor info"),{edits:fn.ChangeTracker.with(t,o=>qqe(t.file,t.program,o,i)),renameFilename:void 0,renameLocation:void 0}}});function y2e(e,t=!0){let{file:n}=e,i=aC(e),s=ki(n,i.start),o=t?gr(s,uf(sc,zm)):l3(s,n,i);if(o===void 0||!(sc(o)||zm(o)))return{error:"Selection is not an import declaration."};let c=i.start+i.length,_=KS(o,o.parent,n);if(_&&c>_.getStart())return;let{importClause:u}=o;return u?u.namedBindings?u.namedBindings.kind===274?{convertTo:0,import:u.namedBindings}:v2e(e.program,u)?{convertTo:1,import:u.namedBindings}:{convertTo:2,import:u.namedBindings}:{error:Is(p.Could_not_find_namespace_import_or_named_imports)}:{error:Is(p.Could_not_find_import_clause)}}function v2e(e,t){return x2(e.getCompilerOptions())&&Qqe(t.parent.moduleSpecifier,e.getTypeChecker())}function qqe(e,t,n,i){let s=t.getTypeChecker();i.convertTo===0?$qe(e,s,n,i.import,x2(t.getCompilerOptions())):S2e(e,t,n,i.import,i.convertTo===1)}function $qe(e,t,n,i,s){let o=!1,c=[],_=new Map;jo.Core.eachSymbolReferenceInFile(i.name,t,e,h=>{if(!x6(h.parent))o=!0;else{let S=b2e(h.parent).text;t.resolveName(S,h,-1,!0)&&_.set(S,!0),w.assert(Hqe(h.parent)===h,"Parent expression should match id"),c.push(h.parent)}});let u=new Map;for(let h of c){let S=b2e(h).text,T=u.get(S);T===void 0&&u.set(S,T=_.has(S)?Uk(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 m=i.parent.parent;if(o&&!s&&sc(m))n.insertNodeAfter(e,m,T2e(m,void 0,g));else{let h=o?A.createIdentifier(i.name.text):void 0;n.replaceNode(e,i.parent,k2e(h,g))}}function b2e(e){return Nn(e)?e.name:e.right}function Hqe(e){return Nn(e)?e.expression:e.left}function S2e(e,t,n,i,s=v2e(t,i.parent)){let o=t.getTypeChecker(),c=i.parent.parent,{moduleSpecifier:_}=c,u=new Set;i.elements.forEach(x=>{let I=o.getSymbolAtLocation(x.name);I&&u.add(I)});let g=_&&ya(_)?h3(_.text,99):"module";function m(x){return!!jo.Core.eachSymbolReferenceInFile(x.name,o,e,I=>{let D=o.resolveName(g,I,-1,!0);return D?u.has(D)?zu(I.parent):!0:!1})}let S=i.elements.some(m)?Uk(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,D=>{let E=I.kind===11?A.createElementAccessExpression(A.createIdentifier(S),A.cloneNode(I)):A.createPropertyAccessExpression(A.createIdentifier(S),A.cloneNode(I));Eu(D.parent)?n.replaceNode(e,D.parent,A.createPropertyAssignment(D.text,E)):zu(D.parent)?T.add(x):n.replaceNode(e,D,E)})}if(n.replaceNode(e,i,s?A.createIdentifier(S):A.createNamespaceImport(A.createIdentifier(S))),T.size&&sc(c)){let x=ps(T.values(),I=>A.createImportSpecifier(I.isTypeOnly,I.propertyName&&A.cloneNode(I.propertyName),A.cloneNode(I.name)));n.insertNodeAfter(e,i.parent.parent,T2e(c,void 0,x))}}function Qqe(e,t){let n=t.resolveExternalModuleName(e);if(!n)return!1;let i=t.resolveExternalModuleSymbol(n);return n!==i}function T2e(e,t,n){return A.createImportDeclaration(void 0,k2e(t,n),e.moduleSpecifier,void 0)}function k2e(e,t){return A.createImportClause(!1,e,t&&t.length?A.createNamedImports(t):void 0)}var Kle="Extract type",M$={name:"Extract to type alias",description:Is(p.Extract_to_type_alias),kind:"refactor.extract.type"},R$={name:"Extract to interface",description:Is(p.Extract_to_interface),kind:"refactor.extract.interface"},F$={name:"Extract to typedef",description:Is(p.Extract_to_typedef),kind:"refactor.extract.typedef"};wh(Kle,{kinds:[M$.kind,R$.kind,F$.kind],getAvailableActions:function(t){let{info:n,affectedTextRange:i}=x2e(t,t.triggerReason==="invoked");return n?vy(n)?t.preferences.provideRefactorNotApplicableReason?[{name:Kle,description:Is(p.Extract_type),actions:[{...F$,notApplicableReason:n.error},{...M$,notApplicableReason:n.error},{...R$,notApplicableReason:n.error}]}]:qe:[{name:Kle,description:Is(p.Extract_type),actions:n.isJS?[F$]:jr([M$],n.typeElements&&R$)}].map(o=>({...o,actions:o.actions.map(c=>({...c,range:i?{start:{line:Qs(t.file,i.pos).line,offset:Qs(t.file,i.pos).character},end:{line:Qs(t.file,i.end).line,offset:Qs(t.file,i.end).character}}:void 0}))})):qe},getEditsForAction:function(t,n){let{file:i}=t,{info:s}=x2e(t);w.assert(s&&!vy(s),"Expected to find a range to extract");let o=Uk("NewType",i),c=fn.ChangeTracker.with(t,g=>{switch(n){case M$.name:return w.assert(!s.isJS,"Invalid actionName/JS combo"),Yqe(g,i,o,s);case F$.name:return w.assert(s.isJS,"Invalid actionName/JS combo"),e$e(g,t,i,o,s);case R$.name:return w.assert(!s.isJS&&!!s.typeElements,"Invalid actionName/JS combo"),Zqe(g,i,o,s);default:w.fail("Unexpected action name")}}),_=i.fileName,u=f3(c,_,o,!1);return{edits:c,renameFilename:_,renameLocation:u}}});function x2e(e,t=!0){let{file:n,startPosition:i}=e,s=g_(n),o=sL(aC(e)),c=o.pos===o.end&&t,_=Kqe(n,i,o,c);if(!_||!di(_))return{info:{error:Is(p.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};let u=e.program.getTypeChecker(),g=t$e(_,s);if(g===void 0)return{info:{error:Is(p.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};let m=r$e(_,g);if(!di(m))return{info:{error:Is(p.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};let h=[];(cv(m.parent)||W2(m.parent))&&o.end>_.end&&jn(h,m.parent.types.filter(D=>K5(D,n,o.pos,o.end)));let S=h.length>1?h:m,{typeParameters:T,affectedTextRange:x}=Xqe(u,S,g,n);if(!T)return{info:{error:Is(p.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};let I=O$(u,S);return{info:{isJS:s,selection:S,enclosingNode:g,typeParameters:T,typeElements:I},affectedTextRange:x}}function Kqe(e,t,n,i){let s=[()=>ki(e,t),()=>$I(e,t,()=>!0)];for(let o of s){let c=o(),_=K5(c,e,n.pos,n.end),u=gr(c,g=>g.parent&&di(g)&&!tT(n,g.parent,e)&&(i||_));if(u)return u}}function O$(e,t){if(t){if(ks(t)){let n=[];for(let i of t){let s=O$(e,i);if(!s)return;jn(n,s)}return n}if(W2(t)){let n=[],i=new Set;for(let s of t.types){let o=O$(e,s);if(!o||!o.every(c=>c.name&&nd(i,o3(c.name))))return;jn(n,o)}return n}else{if(xk(t))return O$(e,t.type);if(v_(t))return t.members}}}function tT(e,t,n){return r3(e,ha(n.text,t.pos),t.end)}function Xqe(e,t,n,i){let s=[],o=Jx(t),c={pos:o[0].getStart(i),end:o[o.length-1].end};for(let u of o)if(_(u))return{typeParameters:void 0,affectedTextRange:void 0};return{typeParameters:s,affectedTextRange:c};function _(u){if(yf(u)){if(je(u.typeName)){let g=u.typeName,m=e.resolveName(g.text,g,262144,!0);for(let h of m?.declarations||qe)if($o(h)&&h.getSourceFile()===i){if(h.name.escapedText===g.escapedText&&tT(h,c,i))return!0;if(tT(n,h,i)&&!tT(c,h,i)){Sp(s,h);break}}}}else if(kk(u)){let g=gr(u,m=>RS(m)&&tT(m.extendsType,u,i));if(!g||!tT(c,g,i))return!0}else if(L2(u)||zA(u)){let g=gr(u.parent,Ns);if(g&&g.type&&tT(g.type,u,i)&&!tT(c,g,i))return!0}else if(MS(u)){if(je(u.exprName)){let g=e.resolveName(u.exprName.text,u.exprName,111551,!1);if(g?.valueDeclaration&&tT(n,g.valueDeclaration,i)&&!tT(c,g.valueDeclaration,i))return!0}else if(N0(u.exprName.left)&&!tT(c,u.parent,i))return!0}return i&&j2(u)&&Qs(i,u.pos).line===Qs(i,u.end).line&&dn(u,1),Es(u,_)}}function Yqe(e,t,n,i){let{enclosingNode:s,typeParameters:o}=i,{firstTypeNode:c,lastTypeNode:_,newTypeNode:u}=Xle(i),g=A.createTypeAliasDeclaration(void 0,n,o.map(m=>A.updateTypeParameterDeclaration(m,m.modifiers,m.name,m.constraint,void 0)),u);e.insertNodeBefore(t,s,eG(g),!0),e.replaceNodeRange(t,c,_,A.createTypeReferenceNode(n,o.map(m=>A.createTypeReferenceNode(m.name,void 0))),{leadingTriviaOption:fn.LeadingTriviaOption.Exclude,trailingTriviaOption:fn.TrailingTriviaOption.ExcludeWhitespace})}function Zqe(e,t,n,i){var s;let{enclosingNode:o,typeParameters:c,typeElements:_}=i,u=A.createInterfaceDeclaration(void 0,n,c,void 0,_);dt(u,(s=_[0])==null?void 0:s.parent),e.insertNodeBefore(t,o,eG(u),!0);let{firstTypeNode:g,lastTypeNode:m}=Xle(i);e.replaceNodeRange(t,g,m,A.createTypeReferenceNode(n,c.map(h=>A.createTypeReferenceNode(h.name,void 0))),{leadingTriviaOption:fn.LeadingTriviaOption.Exclude,trailingTriviaOption:fn.TrailingTriviaOption.ExcludeWhitespace})}function e$e(e,t,n,i,s){var o;Jx(s.selection).forEach(x=>{dn(x,7168)});let{enclosingNode:c,typeParameters:_}=s,{firstTypeNode:u,lastTypeNode:g,newTypeNode:m}=Xle(s),h=A.createJSDocTypedefTag(A.createIdentifier("typedef"),A.createJSDocTypeExpression(m),A.createIdentifier(i)),S=[];or(_,x=>{let I=Aw(x),D=A.createTypeParameterDeclaration(void 0,x.name),E=A.createJSDocTemplateTag(A.createIdentifier("template"),I&&Zs(I,Qb),[D]);S.push(E)});let T=A.createJSDocComment(void 0,A.createNodeArray(Ki(S,[h])));if(Kd(c)){let x=c.getStart(n),I=yy(t.host,(o=t.formatContext)==null?void 0:o.options);e.insertNodeAt(n,c.getStart(n),T,{suffix:I+I+n.text.slice(pL(n.text,x-1),x)})}else e.insertNodeBefore(n,c,T,!0);e.replaceNodeRange(n,u,g,A.createTypeReferenceNode(i,_.map(x=>A.createTypeReferenceNode(x.name,void 0))))}function Xle(e){return ks(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:cv(e.selection[0].parent)?A.createUnionTypeNode(e.selection):A.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}function t$e(e,t){return gr(e,Ii)||(t?gr(e,Kd):void 0)}function r$e(e,t){return gr(e,n=>n===t?"quit":!!(cv(n.parent)||W2(n.parent)))??e}var L$="Move to file",Yle=Is(p.Move_to_file),Zle={name:"Move to file",description:Yle,kind:"refactor.move.file"};wh(L$,{kinds:[Zle.kind],getAvailableActions:function(t,n){let i=t.file,s=k3(t);if(!n)return qe;if(t.triggerReason==="implicit"&&t.endPosition!==void 0){let o=gr(ki(i,t.startPosition),oC),c=gr(ki(i,t.endPosition),oC);if(o&&!Mi(o)&&c&&!Mi(c))return qe}if(t.preferences.allowTextChangesInNewFiles&&s){let o={start:{line:Qs(i,s.all[0].getStart(i)).line,offset:Qs(i,s.all[0].getStart(i)).character},end:{line:Qs(i,xa(s.all).end).line,offset:Qs(i,xa(s.all).end).character}};return[{name:L$,description:Yle,actions:[{...Zle,range:o}]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:L$,description:Yle,actions:[{...Zle,notApplicableReason:Is(p.Selection_is_not_a_valid_statement_or_statements)}]}]:qe},getEditsForAction:function(t,n,i){w.assert(n===L$,"Wrong refactor invoked");let s=w.checkDefined(k3(t)),{host:o,program:c}=t;w.assert(i,"No interactive refactor arguments available");let _=i.targetFile;return vh(_)||yk(_)?o.fileExists(_)&&c.getSourceFile(_)===void 0?C2e(Is(p.Cannot_move_statements_to_the_selected_file)):{edits:fn.ChangeTracker.with(t,g=>n$e(t,t.file,i.targetFile,t.program,s,g,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}:C2e(Is(p.Cannot_move_to_file_selected_file_is_invalid))}});function C2e(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function n$e(e,t,n,i,s,o,c,_){let u=i.getTypeChecker(),g=!c.fileExists(n),m=g?IL(n,t.externalModuleIndicator?99:t.commonJsModuleIndicator?1:void 0,i,c):w.checkDefined(i.getSourceFile(n)),h=Vu.createImportAdder(t,e.program,e.preferences,e.host),S=Vu.createImportAdder(m,e.program,e.preferences,e.host);eue(t,m,FL(t,s.all,u,g?void 0:uue(m,s.all,u)),o,s,i,c,_,S,h),g&&tue(i,o,t.fileName,n,cy(c))}function eue(e,t,n,i,s,o,c,_,u,g){let m=o.getTypeChecker(),h=BW(e.statements,wm),S=!u$(t.fileName,o,c,!!e.commonJsModuleIndicator),T=Tf(e,_);nue(n.oldFileImportsFromTargetFile,t.fileName,g,o),s$e(e,s.all,n.unusedImportsFromOldFile,g),g.writeFixes(i,T),i$e(e,s.ranges,i),a$e(i,o,c,e,n.movedSymbols,t.fileName,T),rue(e,n.targetFileImportsFromOldFile,i,S),fue(e,n.oldImportsNeededByTargetFile,n.targetFileImportsFromOldFile,m,o,u),!ph(t)&&h.length&&i.insertStatementsInNewFile(t.fileName,h,e),u.writeFixes(i,T);let x=f$e(e,s.all,ps(n.oldFileImportsFromTargetFile.keys()),S);ph(t)&&t.statements.length>0?D$e(i,o,x,t,s):ph(t)?i.insertNodesAtEndOfFile(t,x,!1):i.insertStatementsInNewFile(t.fileName,u.hasFixes()?[4,...x]:x,e)}function tue(e,t,n,i,s){let o=e.getCompilerOptions().configFile;if(!o)return;let c=na(Bn(n,"..",i)),_=Cw(o.fileName,c,s),u=o.statements[0]&&Vn(o.statements[0].expression,Sa),g=u&&On(u.properties,m=>hl(m)&&ya(m.name)&&m.name.text==="files");g&&gu(g.initializer)&&t.insertNodeInListAfter(o,xa(g.initializer.elements),A.createStringLiteral(_),g.initializer.elements)}function i$e(e,t,n){for(let{first:i,afterLast:s}of t)n.deleteNodeRangeExcludingEnd(e,i,s)}function s$e(e,t,n,i){for(let s of e.statements)Ts(t,s)||I2e(s,o=>{D2e(o,c=>{n.has(c.symbol)&&i.removeExistingImport(c)})})}function rue(e,t,n,i){let s=HI();t.forEach((o,c)=>{if(c.declarations)for(let _ of c.declarations){if(!lue(_))continue;let u=b$e(_);if(!u)continue;let g=N2e(_);s(g)&&S$e(e,g,u,n,i)}})}function a$e(e,t,n,i,s,o,c){let _=t.getTypeChecker();for(let u of t.getSourceFiles())if(u!==i)for(let g of u.statements)I2e(g,m=>{if(_.getSymbolAtLocation(u$e(m))!==i.symbol)return;let h=D=>{let E=Da(D.parent)?_L(_,D.parent):du(_.getSymbolAtLocation(D),_);return!!E&&s.has(E)};p$e(u,m,e,h);let S=d0(Yn(as(i.fileName,t.getCurrentDirectory())),o);if(bw(!t.useCaseSensitiveFileNames())(S,u.fileName)===0)return;let T=hy.getModuleSpecifier(t.getCompilerOptions(),u,u.fileName,S,a1(t,n)),x=h$e(m,PE(T,c),h);x&&e.insertNodeAfter(u,g,x);let I=o$e(m);I&&c$e(e,u,_,s,T,I,m,c)})}function o$e(e){switch(e.kind){case 272:return e.importClause&&e.importClause.namedBindings&&e.importClause.namedBindings.kind===274?e.importClause.namedBindings.name:void 0;case 271:return e.name;case 260:return Vn(e.name,je);default:return w.assertNever(e,`Unexpected node kind ${e.kind}`)}}function c$e(e,t,n,i,s,o,c,_){let u=h3(s,99),g=!1,m=[];if(jo.Core.eachSymbolReferenceInFile(o,n,t,h=>{Nn(h.parent)&&(g=g||!!n.resolveName(u,h,-1,!0),i.has(n.getSymbolAtLocation(h.parent.name))&&m.push(h))}),m.length){let h=g?Uk(u,t):u;for(let S of m)e.replaceNode(t,S,A.createIdentifier(h));e.insertNodeAfter(t,c,l$e(c,u,s,_))}}function l$e(e,t,n,i){let s=A.createIdentifier(t),o=PE(n,i);switch(e.kind){case 272:return A.createImportDeclaration(void 0,A.createImportClause(!1,void 0,A.createNamespaceImport(s)),o,void 0);case 271:return A.createImportEqualsDeclaration(void 0,!1,s,A.createExternalModuleReference(o));case 260:return A.createVariableDeclaration(s,void 0,void 0,w2e(o));default:return w.assertNever(e,`Unexpected node kind ${e.kind}`)}}function w2e(e){return A.createCallExpression(A.createIdentifier("require"),void 0,[e])}function u$e(e){return e.kind===272?e.moduleSpecifier:e.kind===271?e.moduleReference.expression:e.initializer.arguments[0]}function I2e(e,t){if(sc(e))ya(e.moduleSpecifier)&&t(e);else if(Ol(e))dy(e.moduleReference)&&Ha(e.moduleReference.expression)&&t(e);else if(Lc(e))for(let n of e.declarationList.declarations)n.initializer&&R_(n.initializer,!0)&&t(n)}function D2e(e,t){var n,i,s,o,c;if(e.kind===272){if((n=e.importClause)!=null&&n.name&&t(e.importClause),((s=(i=e.importClause)==null?void 0:i.namedBindings)==null?void 0:s.kind)===274&&t(e.importClause.namedBindings),((c=(o=e.importClause)==null?void 0:o.namedBindings)==null?void 0:c.kind)===275)for(let _ of e.importClause.namedBindings.elements)t(_)}else if(e.kind===271)t(e);else if(e.kind===260){if(e.name.kind===80)t(e);else if(e.name.kind===206)for(let _ of e.name.elements)je(_.name)&&t(_)}}function nue(e,t,n,i){for(let[s,o]of e){let c=TL(s,wa(i.getCompilerOptions())),_=s.name==="default"&&s.parent?1:0;n.addImportForNonExistentExport(c,t,_,s.flags,o)}}function _$e(e,t,n,i=2){return A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(e,void 0,t,n)],i))}function f$e(e,t,n,i){return ga(t,s=>{if(A2e(s)&&!P2e(e,s,i)&&cue(s,o=>{var c;return n.includes(w.checkDefined((c=Vn(o,Jd))==null?void 0:c.symbol))})){let o=d$e(ro(s),i);if(o)return o}return ro(s)})}function P2e(e,t,n,i){var s;return n?!$l(t)&&ei(t,32)||!!(i&&e.symbol&&((s=e.symbol.exports)!=null&&s.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&iue(t).some(o=>e.symbol.exports.has(gc(o)))}function p$e(e,t,n,i){if(t.kind===272&&t.importClause){let{name:s,namedBindings:o}=t.importClause;if((!s||i(s))&&(!o||o.kind===275&&o.elements.length!==0&&o.elements.every(c=>i(c.name))))return n.delete(e,t)}D2e(t,s=>{s.name&&je(s.name)&&i(s.name)&&n.delete(e,s)})}function A2e(e){return w.assert(Mi(e.parent),"Node parent should be a SourceFile"),F2e(e)||Lc(e)}function d$e(e,t){return t?[m$e(e)]:g$e(e)}function m$e(e){let t=od(e)?Ki([A.createModifier(95)],cS(e)):void 0;switch(e.kind){case 262:return A.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 263:let n=JS(e)?g0(e):void 0;return A.updateClassDeclaration(e,Ki(n,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 243:return A.updateVariableStatement(e,t,e.declarationList);case 267:return A.updateModuleDeclaration(e,t,e.name,e.body);case 266:return A.updateEnumDeclaration(e,t,e.name,e.members);case 265:return A.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 264:return A.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 271:return A.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 244:return w.fail();default:return w.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function g$e(e){return[e,...iue(e).map(E2e)]}function E2e(e){return A.createExpressionStatement(A.createBinaryExpression(A.createPropertyAccessExpression(A.createIdentifier("exports"),A.createIdentifier(e)),64,A.createIdentifier(e)))}function iue(e){switch(e.kind){case 262:case 263:return[e.name.text];case 243:return Vi(e.declarationList.declarations,t=>je(t.name)?t.name.text:void 0);case 267:case 266:case 265:case 264:case 271:return qe;case 244:return w.fail("Can't export an ExpressionStatement");default:return w.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function h$e(e,t,n){switch(e.kind){case 272:{let i=e.importClause;if(!i)return;let s=i.name&&n(i.name)?i.name:void 0,o=i.namedBindings&&y$e(i.namedBindings,n);return s||o?A.createImportDeclaration(void 0,A.createImportClause(i.isTypeOnly,s,o),ro(t),void 0):void 0}case 271:return n(e.name)?e:void 0;case 260:{let i=v$e(e.name,n);return i?_$e(i,e.type,w2e(t),e.parent.flags):void 0}default:return w.assertNever(e,`Unexpected import kind ${e.kind}`)}}function y$e(e,t){if(e.kind===274)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 v$e(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 207:return e;case 206:{let n=e.elements.filter(i=>i.propertyName||!je(i.name)||t(i.name));return n.length?A.createObjectBindingPattern(n):void 0}}}function b$e(e){return $l(e)?Vn(e.expression.left.name,je):Vn(e.name,je)}function N2e(e){switch(e.kind){case 260:return e.parent.parent;case 208:return N2e(Zs(e.parent.parent,t=>oi(t)||Da(t)));default:return e}}function S$e(e,t,n,i,s){if(!P2e(e,t,s,n))if(s)$l(t)||i.insertExportModifier(e,t);else{let o=iue(t);o.length!==0&&i.insertNodesAfter(e,t,o.map(E2e))}}function sue(e,t,n,i){let s=t.getTypeChecker();if(i){let o=FL(e,i.all,s),c=Yn(e.fileName),_=kA(e.fileName);return Bn(c,C$e(w$e(o.oldFileImportsFromTargetFile,o.movedSymbols),_,c,n))+_}return""}function T$e(e){let{file:t}=e,n=sL(aC(e)),{statements:i}=t,s=Sc(i,g=>g.end>n.pos);if(s===-1)return;let o=i[s],c=O2e(t,o);c&&(s=c.start);let _=Sc(i,g=>g.end>=n.end,s);_!==-1&&n.end<=i[_].getStart()&&_--;let u=O2e(t,i[_]);return u&&(_=u.end),{toMove:i.slice(s,_===-1?i.length:_+1),afterLast:_===-1?void 0:i[_+1]}}function k3(e){let t=T$e(e);if(t===void 0)return;let n=[],i=[],{toMove:s,afterLast:o}=t;return kW(s,k$e,(c,_)=>{for(let u=c;u<_;u++)n.push(s[u]);i.push({first:s[c],afterLast:o})}),n.length===0?void 0:{all:n,ranges:i}}function aue(e){return On(e,t=>!!(t.transformFlags&2))}function k$e(e){return!x$e(e)&&!wm(e)}function x$e(e){switch(e.kind){case 272:return!0;case 271:return!ei(e,32);case 243:return e.declarationList.declarations.every(t=>!!t.initializer&&R_(t.initializer,!0));default:return!1}}function FL(e,t,n,i=new Set,s){var o;let c=new Set,_=new Map,u=new Map,g=S(aue(t));g&&_.set(g,[!1,Vn((o=g.declarations)==null?void 0:o[0],T=>a_(T)||Cd(T)||kh(T)||Ol(T)||Da(T)||oi(T))]);for(let T of t)cue(T,x=>{c.add(w.checkDefined($l(x)?n.getSymbolAtLocation(x.expression.left):x.symbol,"Need a symbol here"))});let m=new Set;for(let T of t)oue(T,n,s,(x,I)=>{if(!pt(x.declarations))return;if(i.has(du(x,n))){m.add(x);return}let D=On(x.declarations,j$);if(D){let E=_.get(x);_.set(x,[(E===void 0||E)&&I,Vn(D,O=>a_(O)||Cd(O)||kh(O)||Ol(O)||Da(O)||oi(O))])}else!c.has(x)&&Oi(x.declarations,E=>lue(E)&&I$e(E)===e)&&u.set(x,I)});for(let T of _.keys())m.add(T);let h=new Map;for(let T of e.statements)Ts(t,T)||(g&&T.transformFlags&2&&m.delete(g),oue(T,n,s,(x,I)=>{c.has(x)&&h.set(x,I),m.delete(x)}));return{movedSymbols:c,targetFileImportsFromOldFile:u,oldFileImportsFromTargetFile:h,oldImportsNeededByTargetFile:_,unusedImportsFromOldFile:m};function S(T){if(T===void 0)return;let x=n.getJsxNamespace(T),I=n.resolveName(x,T,1920,!0);return I&&pt(I.declarations,j$)?I:void 0}}function C$e(e,t,n,i){let s=e;for(let o=1;;o++){let c=Bn(n,s+t);if(!i.fileExists(c))return s;s=`${e}.${o}`}}function w$e(e,t){return uh(e,jq)||uh(t,jq)||"newFile"}function oue(e,t,n,i){e.forEachChild(function s(o){if(je(o)&&!Cg(o)){if(n&&!O_(n,o))return;let c=t.getSymbolAtLocation(o);c&&i(c,Bb(o))}else o.forEachChild(s)})}function cue(e,t){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return t(e);case 243:return po(e.declarationList.declarations,n=>R2e(n.name,t));case 244:{let{expression:n}=e;return vn(n)&&Vc(n)===1?t(e):void 0}}}function j$(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return M2e(e);case 208:return oi(e.parent.parent)&&M2e(e.parent.parent);default:return!1}}function M2e(e){return Mi(e.parent.parent.parent)&&!!e.initializer&&R_(e.initializer,!0)}function lue(e){return F2e(e)&&Mi(e.parent)||oi(e)&&Mi(e.parent.parent.parent)}function I$e(e){return oi(e)?e.parent.parent.parent:e.parent}function R2e(e,t){switch(e.kind){case 80:return t(Zs(e.parent,n=>oi(n)||Da(n)));case 207:case 206:return po(e.elements,n=>Fl(n)?void 0:R2e(n.name,t));default:return w.assertNever(e,`Unexpected name kind ${e.kind}`)}}function F2e(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function D$e(e,t,n,i,s){var o;let c=new Set,_=(o=i.symbol)==null?void 0:o.exports;if(_){let g=t.getTypeChecker(),m=new Map;for(let h of s.all)A2e(h)&&ei(h,32)&&cue(h,S=>{var T;let x=Jd(S)?(T=_.get(S.symbol.escapedName))==null?void 0:T.declarations:void 0,I=po(x,D=>Xc(D)?D:zu(D)?Vn(D.parent.parent,Xc):void 0);I&&I.moduleSpecifier&&m.set(I,(m.get(I)||new Set).add(S))});for(let[h,S]of ps(m))if(h.exportClause&&Fp(h.exportClause)&&Dr(h.exportClause.elements)){let T=h.exportClause.elements,x=An(T,I=>On(du(I.symbol,g).declarations,D=>lue(D)&&S.has(D))===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=rS(i.statements,g=>Xc(g)&&!!g.moduleSpecifier&&!c.has(g));u?e.insertNodesBefore(i,u,n,!0):e.insertNodesAfter(i,i.statements[i.statements.length-1],n)}function O2e(e,t){if(xo(t)){let n=t.symbol.declarations;if(n===void 0||Dr(n)<=1||!Ts(n,t))return;let i=n[0],s=n[Dr(n)-1],o=Vi(n,u=>Fr(u)===e&&Ii(u)?u:void 0),c=Sc(e.statements,u=>u.end>=s.end),_=Sc(e.statements,u=>u.end>=i.end);return{toMove:o,start:_,end:c}}}function uue(e,t,n){let i=new Set;for(let s of e.imports){let o=eA(s);if(sc(o)&&o.importClause&&o.importClause.namedBindings&&jm(o.importClause.namedBindings))for(let c of o.importClause.namedBindings.elements){let _=n.getSymbolAtLocation(c.propertyName||c.name);_&&i.add(du(_,n))}if(H6(o.parent)&&np(o.parent.name))for(let c of o.parent.name.elements){let _=n.getSymbolAtLocation(c.propertyName||c.name);_&&i.add(du(_,n))}}for(let s of t)oue(s,n,void 0,o=>{let c=du(o,n);c.valueDeclaration&&Fr(c.valueDeclaration).path===e.path&&i.add(c)});return i}function vy(e){return e.error!==void 0}function u1(e,t){return t?e.substr(0,t.length)===t:!0}function _ue(e,t,n,i){return Nn(e)&&!ii(t)&&!n.resolveName(e.name.text,e,111551,!1)&&!ji(e.name)&&!YT(e.name)?e.name.text:Uk(ii(t)?"newProperty":"newLocal",i)}function fue(e,t,n,i,s,o){t.forEach(([c,_],u)=>{var g;let m=du(u,i);i.isUnknownSymbol(m)?o.addVerbatimImport(w.checkDefined(_??gr((g=u.declarations)==null?void 0:g[0],Cte))):m.parent===void 0?(w.assert(_!==void 0,"expected module symbol to have a declaration"),o.addImportForModuleSymbol(u,c,_)):o.addImportFromExportedSymbol(m,c,_)}),nue(n,e.fileName,o,s)}var OL="Inline variable",pue=Is(p.Inline_variable),due={name:OL,description:pue,kind:"refactor.inline.variable"};wh(OL,{kinds:[due.kind],getAvailableActions(e){let{file:t,program:n,preferences:i,startPosition:s,triggerReason:o}=e,c=L2e(t,s,o==="invoked",n);return c?lC.isRefactorErrorInfo(c)?i.provideRefactorNotApplicableReason?[{name:OL,description:pue,actions:[{...due,notApplicableReason:c.error}]}]:qe:[{name:OL,description:pue,actions:[due]}]:qe},getEditsForAction(e,t){w.assert(t===OL,"Unexpected refactor invoked");let{file:n,program:i,startPosition:s}=e,o=L2e(n,s,!0,i);if(!o||lC.isRefactorErrorInfo(o))return;let{references:c,declaration:_,replacement:u}=o;return{edits:fn.ChangeTracker.with(e,m=>{for(let h of c){let S=ya(u)&&je(h)&&Td(h.parent);S&&gI(S)&&!Ub(S.parent.parent)?A$e(m,n,S,u):m.replaceNode(n,h,P$e(h,u))}m.delete(n,_)})}}});function L2e(e,t,n,i){var s,o;let c=i.getTypeChecker(),_=W_(e,t),u=_.parent;if(je(_)){if(C4(u)&&HP(u)&&je(u.name)){if(((s=c.getMergedSymbol(u.symbol).declarations)==null?void 0:s.length)!==1)return{error:Is(p.Variables_with_multiple_declarations_cannot_be_inlined)};if(j2e(u))return;let g=W2e(u,c,e);return g&&{references:g,declaration:u,replacement:u.initializer}}if(n){let g=c.resolveName(_.text,_,111551,!1);if(g=g&&c.getMergedSymbol(g),((o=g?.declarations)==null?void 0:o.length)!==1)return{error:Is(p.Variables_with_multiple_declarations_cannot_be_inlined)};let m=g.declarations[0];if(!C4(m)||!HP(m)||!je(m.name)||j2e(m))return;let h=W2e(m,c,e);return h&&{references:h,declaration:m,replacement:m.initializer}}return{error:Is(p.Could_not_find_variable_to_inline)}}}function j2e(e){let t=Zs(e.parent.parent,Lc);return pt(t.modifiers,R2)}function W2e(e,t,n){let i=[],s=jo.Core.eachSymbolReferenceInFile(e.name,t,n,o=>{if(jo.isWriteAccessForReference(o)&&!Eu(o.parent)||zu(o.parent)||Ho(o.parent)||MS(o.parent)||_6(e,o.pos))return!0;i.push(o)});return i.length===0||s?void 0:i}function P$e(e,t){t=ro(t);let{parent:n}=e;return gt(n)&&(oA(t)<oA(n)||dL(n))||Ns(t)&&(_S(n)||Nn(n))||Nn(n)&&(L_(t)||Sa(t))?A.createParenthesizedExpression(t):je(e)&&Eu(n)?A.createPropertyAssignment(e,t):t}function A$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 LL="Move to a new file",mue=Is(p.Move_to_a_new_file),gue={name:LL,description:mue,kind:"refactor.move.newFile"};wh(LL,{kinds:[gue.kind],getAvailableActions:function(t){let n=k3(t),i=t.file;if(t.triggerReason==="implicit"&&t.endPosition!==void 0){let s=gr(ki(i,t.startPosition),oC),o=gr(ki(i,t.endPosition),oC);if(s&&!Mi(s)&&o&&!Mi(o))return qe}if(t.preferences.allowTextChangesInNewFiles&&n){let s=t.file,o={start:{line:Qs(s,n.all[0].getStart(s)).line,offset:Qs(s,n.all[0].getStart(s)).character},end:{line:Qs(s,xa(n.all).end).line,offset:Qs(s,xa(n.all).end).character}};return[{name:LL,description:mue,actions:[{...gue,range:o}]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:LL,description:mue,actions:[{...gue,notApplicableReason:Is(p.Selection_is_not_a_valid_statement_or_statements)}]}]:qe},getEditsForAction:function(t,n){w.assert(n===LL,"Wrong refactor invoked");let i=w.checkDefined(k3(t));return{edits:fn.ChangeTracker.with(t,o=>E$e(t.file,t.program,i,o,t.host,t,t.preferences)),renameFilename:void 0,renameLocation:void 0}}});function E$e(e,t,n,i,s,o,c){let _=t.getTypeChecker(),u=FL(e,n.all,_),g=sue(e,t,s,n),m=IL(g,e.externalModuleIndicator?99:e.commonJsModuleIndicator?1:void 0,t,s),h=Vu.createImportAdder(e,o.program,o.preferences,o.host),S=Vu.createImportAdder(m,o.program,o.preferences,o.host);eue(e,m,u,i,n,t,s,c,S,h),tue(t,i,e.fileName,g,cy(s))}var N$e={},hue="Convert overload list to single signature",B2e=Is(p.Convert_overload_list_to_single_signature),z2e={name:hue,description:B2e,kind:"refactor.rewrite.function.overloadList"};wh(hue,{kinds:[z2e.kind],getEditsForAction:R$e,getAvailableActions:M$e});function M$e(e){let{file:t,startPosition:n,program:i}=e;return G2e(t,n,i)?[{name:hue,description:B2e,actions:[z2e]}]:qe}function R$e(e){let{file:t,startPosition:n,program:i}=e,s=G2e(t,n,i);if(!s)return;let o=i.getTypeChecker(),c=s[s.length-1],_=c;switch(c.kind){case 173:{_=A.updateMethodSignature(c,c.modifiers,c.name,c.questionToken,c.typeParameters,g(s),c.type);break}case 174:{_=A.updateMethodDeclaration(c,c.modifiers,c.asteriskToken,c.name,c.questionToken,c.typeParameters,g(s),c.type,c.body);break}case 179:{_=A.updateCallSignature(c,c.typeParameters,g(s),c.type);break}case 176:{_=A.updateConstructorDeclaration(c,c.modifiers,g(s),c.body);break}case 180:{_=A.updateConstructSignature(c,c.typeParameters,g(s),c.type);break}case 262:{_=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(_===c)return;return{renameFilename:void 0,renameLocation:void 0,edits:fn.ChangeTracker.with(e,S=>{S.replaceNodeRange(t,s[0],s[s.length-1],_)})};function g(S){let T=S[S.length-1];return xo(T)&&T.body&&(S=S.slice(0,S.length-1)),A.createNodeArray([A.createParameterDeclaration(void 0,A.createToken(26),"args",void 0,A.createUnionTypeNode(hr(S,m)))])}function m(S){let T=hr(S.parameters,h);return dn(A.createTupleTypeNode(T),pt(T,x=>!!Dr(uI(x)))?0:1)}function h(S){w.assert(je(S.name));let T=dt(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=w3(x);I.length&&Jb(T,[{text:`*
${I.split(`
`).map(D=>` * ${D}`).join(`
`)}
`,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return T}}function J2e(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function G2e(e,t,n){let i=ki(e,t),s=gr(i,J2e);if(!s||xo(s)&&s.body&&qI(s.body,t))return;let o=n.getTypeChecker(),c=s.symbol;if(!c)return;let _=c.declarations;if(Dr(_)<=1||!Oi(_,S=>Fr(S)===e)||!J2e(_[0]))return;let u=_[0].kind;if(!Oi(_,S=>S.kind===u))return;let g=_;if(pt(g,S=>!!S.typeParameters||pt(S.parameters,T=>!!T.modifiers||!je(T.name))))return;let m=Vi(g,S=>o.getSignatureFromDeclaration(S));if(Dr(m)!==Dr(_))return;let h=o.getReturnTypeOfSignature(m[0]);if(Oi(m,S=>o.getReturnTypeOfSignature(S)===h))return g}var yue="Add or remove braces in an arrow function",U2e=Is(p.Add_or_remove_braces_in_an_arrow_function),W$={name:"Add braces to arrow function",description:Is(p.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},jL={name:"Remove braces from arrow function",description:Is(p.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"};wh(yue,{kinds:[jL.kind],getEditsForAction:O$e,getAvailableActions:F$e});function F$e(e){let{file:t,startPosition:n,triggerReason:i}=e,s=V2e(t,n,i==="invoked");return s?vy(s)?e.preferences.provideRefactorNotApplicableReason?[{name:yue,description:U2e,actions:[{...W$,notApplicableReason:s.error},{...jL,notApplicableReason:s.error}]}]:qe:[{name:yue,description:U2e,actions:[s.addBraces?W$:jL]}]:qe}function O$e(e,t){let{file:n,startPosition:i}=e,s=V2e(n,i);w.assert(s&&!vy(s),"Expected applicable refactor info");let{expression:o,returnStatement:c,func:_}=s,u;if(t===W$.name){let m=A.createReturnStatement(o);u=A.createBlock([m],!0),YI(o,m,n,3,!0)}else if(t===jL.name&&c){let m=o||A.createVoidZero();u=dL(m)?A.createParenthesizedExpression(m):m,p3(c,u,n,3,!1),YI(c,u,n,3,!1),ME(c,u,n,3,!1)}else w.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:fn.ChangeTracker.with(e,m=>{m.replaceNode(n,_.body,u)})}}function V2e(e,t,n=!0,i){let s=ki(e,t),o=ep(s);if(!o)return{error:Is(p.Could_not_find_a_containing_arrow_function)};if(!Lo(o))return{error:Is(p.Containing_function_is_not_an_arrow_function)};if(!(!O_(o,s)||O_(o.body,s)&&!n)){if(u1(W$.kind,i)&>(o.body))return{func:o,addBraces:!0,expression:o.body};if(u1(jL.kind,i)&&Fs(o.body)&&o.body.statements.length===1){let c=Ea(o.body.statements);if(Bf(c)){let _=c.expression&&Sa(iI(c.expression,!1))?A.createParenthesizedExpression(c.expression):c.expression;return{func:o,addBraces:!1,expression:_,returnStatement:c}}}}}var L$e={},q2e="Convert arrow function or function expression",j$e=Is(p.Convert_arrow_function_or_function_expression),WL={name:"Convert to anonymous function",description:Is(p.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},BL={name:"Convert to named function",description:Is(p.Convert_to_named_function),kind:"refactor.rewrite.function.named"},zL={name:"Convert to arrow function",description:Is(p.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};wh(q2e,{kinds:[WL.kind,BL.kind,zL.kind],getEditsForAction:B$e,getAvailableActions:W$e});function W$e(e){let{file:t,startPosition:n,program:i,kind:s}=e,o=H2e(t,n,i);if(!o)return qe;let{selectedVariableDeclaration:c,func:_}=o,u=[],g=[];if(u1(BL.kind,s)){let m=c||Lo(_)&&oi(_.parent)?void 0:Is(p.Could_not_convert_to_named_function);m?g.push({...BL,notApplicableReason:m}):u.push(BL)}if(u1(WL.kind,s)){let m=!c&&Lo(_)?void 0:Is(p.Could_not_convert_to_anonymous_function);m?g.push({...WL,notApplicableReason:m}):u.push(WL)}if(u1(zL.kind,s)){let m=Ao(_)?void 0:Is(p.Could_not_convert_to_arrow_function);m?g.push({...zL,notApplicableReason:m}):u.push(zL)}return[{name:q2e,description:j$e,actions:u.length===0&&e.preferences.provideRefactorNotApplicableReason?g:u}]}function B$e(e,t){let{file:n,startPosition:i,program:s}=e,o=H2e(n,i,s);if(!o)return;let{func:c}=o,_=[];switch(t){case WL.name:_.push(...U$e(e,c));break;case BL.name:let u=G$e(c);if(!u)return;_.push(...V$e(e,c,u));break;case zL.name:if(!Ao(c))return;_.push(...q$e(e,c));break;default:return w.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:_}}function $2e(e){let t=!1;return e.forEachChild(function n(i){if(VI(i)){t=!0;return}!ii(i)&&!jc(i)&&!Ao(i)&&Es(i,n)}),t}function H2e(e,t,n){let i=ki(e,t),s=n.getTypeChecker(),o=J$e(e,s,i.parent);if(o&&!$2e(o.body)&&!s.containsArgumentsReference(o))return{selectedVariableDeclaration:!0,func:o};let c=ep(i);if(c&&(Ao(c)||Lo(c))&&!O_(c.body,i)&&!$2e(c.body)&&!s.containsArgumentsReference(c))return Ao(c)&&K2e(e,s,c)?void 0:{selectedVariableDeclaration:!1,func:c}}function z$e(e){return oi(e)||au(e)&&e.declarations.length===1}function J$e(e,t,n){if(!z$e(n))return;let s=(oi(n)?n:Ea(n.declarations)).initializer;if(s&&(Lo(s)||Ao(s)&&!K2e(e,t,s)))return s}function Q2e(e){if(gt(e)){let t=A.createReturnStatement(e),n=e.getSourceFile();return dt(t,e),xf(t),p3(e,t,n,void 0,!0),A.createBlock([t],!0)}else return e}function G$e(e){let t=e.parent;if(!oi(t)||!HP(t))return;let n=t.parent,i=n.parent;if(!(!au(n)||!Lc(i)||!je(t.name)))return{variableDeclaration:t,variableDeclarationList:n,statement:i,name:t.name}}function U$e(e,t){let{file:n}=e,i=Q2e(t.body),s=A.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return fn.ChangeTracker.with(e,o=>o.replaceNode(n,t,s))}function V$e(e,t,n){let{file:i}=e,s=Q2e(t.body),{variableDeclaration:o,variableDeclarationList:c,statement:_,name:u}=n;Xq(_);let g=Db(o)&32|r_(t),m=A.createModifiersFromModifierFlags(g),h=A.createFunctionDeclaration(Dr(m)?m:void 0,t.asteriskToken,u,t.typeParameters,t.parameters,t.type,s);return c.declarations.length===1?fn.ChangeTracker.with(e,S=>S.replaceNode(i,_,h)):fn.ChangeTracker.with(e,S=>{S.delete(i,o),S.insertNodeAfter(i,_,h)})}function q$e(e,t){let{file:n}=e,s=t.body.statements[0],o;$$e(t.body,s)?(o=s.expression,xf(o),Gk(s,o)):o=t.body;let c=A.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,A.createToken(39),o);return fn.ChangeTracker.with(e,_=>_.replaceNode(n,t,c))}function $$e(e,t){return e.statements.length===1&&Bf(t)&&!!t.expression}function K2e(e,t,n){return!!n.name&&jo.Core.isSymbolReferencedInFile(n.name,t,e)}var H$e={},B$="Convert parameters to destructured object",Q$e=1,X2e=Is(p.Convert_parameters_to_destructured_object),Y2e={name:B$,description:X2e,kind:"refactor.rewrite.parameters.toDestructured"};wh(B$,{kinds:[Y2e.kind],getEditsForAction:X$e,getAvailableActions:K$e});function K$e(e){let{file:t,startPosition:n}=e;return g_(t)||!tCe(t,n,e.program.getTypeChecker())?qe:[{name:B$,description:X2e,actions:[Y2e]}]}function X$e(e,t){w.assert(t===B$,"Unexpected action name");let{file:n,startPosition:i,program:s,cancellationToken:o,host:c}=e,_=tCe(n,i,s.getTypeChecker());if(!_||!o)return;let u=Z$e(_,s,o);return u.valid?{renameFilename:void 0,renameLocation:void 0,edits:fn.ChangeTracker.with(e,m=>Y$e(n,s,c,m,_,u))}:{edits:[]}}function Y$e(e,t,n,i,s,o){let c=o.signature,_=hr(sCe(s,t,n),m=>ro(m));if(c){let m=hr(sCe(c,t,n),h=>ro(h));g(c,m)}g(s,_);let u=dP(o.functionCalls,(m,h)=>Po(m.pos,h.pos));for(let m of u)if(m.arguments&&m.arguments.length){let h=ro(lHe(s,m.arguments),!0);i.replaceNodeRange(Fr(m),Ea(m.arguments),xa(m.arguments),h,{leadingTriviaOption:fn.LeadingTriviaOption.IncludeAll,trailingTriviaOption:fn.TrailingTriviaOption.Include})}function g(m,h){i.replaceNodeRangeWithNodes(e,Ea(m.parameters),xa(m.parameters),h,{joiner:", ",indentation:0,leadingTriviaOption:fn.LeadingTriviaOption.IncludeAll,trailingTriviaOption:fn.TrailingTriviaOption.Include})}}function Z$e(e,t,n){let i=_He(e),s=lc(e)?uHe(e):[],o=nS([...i,...s],u0),c=t.getTypeChecker(),_=ga(o,h=>jo.getReferenceEntriesForNode(-1,h,t,t.getSourceFiles(),n)),u=g(_);return Oi(u.declarations,h=>Ts(o,h))||(u.valid=!1),u;function g(h){let S={accessExpressions:[],typeUsages:[]},T={functionCalls:[],declarations:[],classReferences:S,valid:!0},x=hr(i,m),I=hr(s,m),D=lc(e),E=hr(i,O=>vue(O,c));for(let O of h){if(O.kind===jo.EntryKind.Span){T.valid=!1;continue}if(Ts(E,m(O.node))){if(nHe(O.node.parent)){T.signature=O.node.parent;continue}let B=eCe(O);if(B){T.functionCalls.push(B);continue}}let F=vue(O.node,c);if(F&&Ts(E,F)){let B=bue(O);if(B){T.declarations.push(B);continue}}if(Ts(x,m(O.node))||xE(O.node)){if(Z2e(O))continue;let G=bue(O);if(G){T.declarations.push(G);continue}let $=eCe(O);if($){T.functionCalls.push($);continue}}if(D&&Ts(I,m(O.node))){if(Z2e(O))continue;let G=bue(O);if(G){T.declarations.push(G);continue}let $=eHe(O);if($){S.accessExpressions.push($);continue}if(gl(e.parent)){let K=tHe(O);if(K){S.typeUsages.push(K);continue}}}T.valid=!1}return T}function m(h){let S=c.getSymbolAtLocation(h);return S&&Qq(S,c)}}function vue(e,t){let n=I3(e);if(n){let i=t.getContextualTypeForObjectLiteralElement(n),s=i?.getSymbol();if(s&&!(kc(s)&6))return s}}function Z2e(e){let t=e.node;if(a_(t.parent)||Cd(t.parent)||Ol(t.parent)||kh(t.parent)||zu(t.parent)||Ho(t.parent))return t}function bue(e){if(Ul(e.node.parent))return e.node}function eCe(e){if(e.node.parent){let t=e.node,n=t.parent;switch(n.kind){case 213:case 214:let i=Vn(n,km);if(i&&i.expression===t)return i;break;case 211:let s=Vn(n,Nn);if(s&&s.parent&&s.name===t){let c=Vn(s.parent,km);if(c&&c.expression===s)return c}break;case 212:let o=Vn(n,wo);if(o&&o.parent&&o.argumentExpression===t){let c=Vn(o.parent,km);if(c&&c.expression===o)return c}break}}}function eHe(e){if(e.node.parent){let t=e.node,n=t.parent;switch(n.kind){case 211:let i=Vn(n,Nn);if(i&&i.expression===t)return i;break;case 212:let s=Vn(n,wo);if(s&&s.expression===t)return s;break}}}function tHe(e){let t=e.node;if(zk(t)===2||lO(t.parent))return t}function tCe(e,t,n){let i=$I(e,t),s=Jte(i);if(!rHe(i)&&s&&iHe(s,n)&&O_(s,i)&&!(s.body&&O_(s.body,i)))return s}function rHe(e){let t=gr(e,Rw);if(t){let n=gr(t,i=>!Rw(i));return!!n&&xo(n)}return!1}function nHe(e){return xd(e)&&(hu(e.parent)||v_(e.parent))}function iHe(e,t){var n;if(!sHe(e.parameters,t))return!1;switch(e.kind){case 262:return rCe(e)&&JL(e,t);case 174:if(Sa(e.parent)){let i=vue(e.name,t);return((n=i?.declarations)==null?void 0:n.length)===1&&JL(e,t)}return JL(e,t);case 176:return gl(e.parent)?rCe(e.parent)&&JL(e,t):nCe(e.parent.parent)&&JL(e,t);case 218:case 219:return nCe(e.parent)}return!1}function JL(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function rCe(e){return e.name?!0:!!QI(e,90)}function sHe(e,t){return oHe(e)>=Q$e&&Oi(e,n=>aHe(n,t))}function aHe(e,t){if(Tg(e)){let n=t.getTypeAtLocation(e);if(!t.isArrayType(n)&&!t.isTupleType(n))return!1}return!e.modifiers&&je(e.name)}function nCe(e){return oi(e)&&Bw(e)&&je(e.name)&&!e.type}function Sue(e){return e.length>0&&VI(e[0].name)}function oHe(e){return Sue(e)?e.length-1:e.length}function iCe(e){return Sue(e)&&(e=A.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function cHe(e,t){return je(t)&&Ip(t)===e?A.createShorthandPropertyAssignment(e):A.createPropertyAssignment(e,t)}function lHe(e,t){let n=iCe(e.parameters),i=Tg(xa(n)),s=i?t.slice(0,n.length-1):t,o=hr(s,(_,u)=>{let g=z$(n[u]),m=cHe(g,_);return xf(m.name),hl(m)&&xf(m.initializer),Gk(_,m),m});if(i&&t.length>=n.length){let _=t.slice(n.length-1),u=A.createPropertyAssignment(z$(xa(n)),A.createArrayLiteralExpression(_));o.push(u)}return A.createObjectLiteralExpression(o,!1)}function sCe(e,t,n){let i=t.getTypeChecker(),s=iCe(e.parameters),o=hr(s,m),c=A.createObjectBindingPattern(o),_=h(s),u;Oi(s,x)&&(u=A.createObjectLiteralExpression());let g=A.createParameterDeclaration(void 0,void 0,c,void 0,_,u);if(Sue(e.parameters)){let I=e.parameters[0],D=A.createParameterDeclaration(void 0,void 0,I.name,void 0,I.type);return xf(D.name),Gk(I.name,D.name),I.type&&(xf(D.type),Gk(I.type,D.type)),A.createNodeArray([D,g])}return A.createNodeArray([g]);function m(I){let D=A.createBindingElement(void 0,void 0,z$(I),Tg(I)&&x(I)?A.createArrayLiteralExpression():I.initializer);return xf(D),I.initializer&&D.initializer&&Gk(I.initializer,D.initializer),D}function h(I){let D=hr(I,S);return Rm(A.createTypeLiteralNode(D),1)}function S(I){let D=I.type;!D&&(I.initializer||Tg(I))&&(D=T(I));let E=A.createPropertySignature(void 0,z$(I),x(I)?A.createToken(58):I.questionToken,D);return xf(E),Gk(I.name,E.name),I.type&&E.type&&Gk(I.type,E.type),E}function T(I){let D=i.getTypeAtLocation(I);return FE(D,I,t,n)}function x(I){if(Tg(I)){let D=i.getTypeAtLocation(I);return!i.isTupleType(D)}return i.isOptionalParameter(I)}}function z$(e){return Ip(e.name)}function uHe(e){switch(e.parent.kind){case 263:let t=e.parent;return t.name?[t.name]:[w.checkDefined(QI(t,90),"Nameless class declaration should be a default export")];case 231:let i=e.parent,s=e.parent.parent,o=i.name;return o?[o,s.name]:[s.name]}}function _He(e){switch(e.kind){case 262:return e.name?[e.name]:[w.checkDefined(QI(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:let n=w.checkDefined(_o(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");return e.parent.kind===231?[e.parent.parent.name,n]:[n];case 219:return[e.parent.name];case 218:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return w.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var fHe={},Tue="Convert to template string",kue=Is(p.Convert_to_template_string),xue={name:Tue,description:kue,kind:"refactor.rewrite.string"};wh(Tue,{kinds:[xue.kind],getEditsForAction:dHe,getAvailableActions:pHe});function pHe(e){let{file:t,startPosition:n}=e,i=aCe(t,n),s=Cue(i),o=ya(s),c={name:Tue,description:kue,actions:[]};return o&&e.triggerReason!=="invoked"?qe:Ud(s)&&(o||vn(s)&&wue(s).isValidConcatenation)?(c.actions.push(xue),[c]):e.preferences.provideRefactorNotApplicableReason?(c.actions.push({...xue,notApplicableReason:Is(p.Can_only_convert_string_concatenations_and_string_literals)}),[c]):qe}function aCe(e,t){let n=ki(e,t),i=Cue(n);return!wue(i).isValidConcatenation&&b_(i.parent)&&vn(i.parent.parent)?i.parent.parent:n}function dHe(e,t){let{file:n,startPosition:i}=e,s=aCe(n,i);switch(t){case kue:return{edits:mHe(e,s)};default:return w.fail("invalid action")}}function mHe(e,t){let n=Cue(t),i=e.file,s=bHe(wue(n),i),o=m0(i.text,n.end);if(o){let c=o[o.length-1],_={pos:o[0].pos,end:c.end};return fn.ChangeTracker.with(e,u=>{u.deleteRange(i,_),u.replaceNode(i,n,s)})}else return fn.ChangeTracker.with(e,c=>c.replaceNode(i,n,s))}function gHe(e){return!(e.operatorToken.kind===64||e.operatorToken.kind===65)}function Cue(e){return gr(e.parent,n=>{switch(n.kind){case 211:case 212:return!1;case 228:case 226:return!(vn(n.parent)&&gHe(n.parent));default:return"quit"}})||e}function wue(e){let t=c=>{if(!vn(c))return{nodes:[c],operators:[],validOperators:!0,hasString:ya(c)||Tk(c)};let{nodes:_,operators:u,hasString:g,validOperators:m}=t(c.left);if(!(g||ya(c.right)||o7(c.right)))return{nodes:[c],operators:[],hasString:!1,validOperators:!0};let h=c.operatorToken.kind===40,S=m&&h;return _.push(c.right),u.push(c.operatorToken),{nodes:_,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 hHe=(e,t)=>(n,i)=>{n<e.length&&ME(e[n],i,t,3,!1)},yHe=(e,t,n)=>(i,s)=>{for(;i.length>0;){let o=i.shift();ME(e[o],s,t,3,!1),n(o,s)}};function vHe(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function oCe(e){let t=M2(e)||rG(e)?-2:-1;return oc(e).slice(1,t)}function cCe(e,t){let n=[],i="",s="";for(;e<t.length;){let o=t[e];if(Ha(o))i+=o.text,s+=vHe(oc(o).slice(1,-1)),n.push(e),e++;else if(o7(o)){i+=o.head.text,s+=oCe(o.head);break}else break}return[e,i,s,n]}function bHe({nodes:e,operators:t},n){let i=hHe(t,n),s=yHe(e,n,i),[o,c,_,u]=cCe(0,e);if(o===e.length){let h=A.createNoSubstitutionTemplateLiteral(c,_);return s(u,h),h}let g=[],m=A.createTemplateHead(c,_);s(u,m);for(let h=o;h<e.length;h++){let S=SHe(e[h]);i(h,S);let[T,x,I,D]=cCe(h+1,e);h=T-1;let E=h===e.length-1;if(o7(S)){let O=hr(S.templateSpans,(F,B)=>{lCe(F);let G=B===S.templateSpans.length-1,$=F.literal.text+(G?x:""),K=oCe(F.literal)+(G?I:"");return A.createTemplateSpan(F.expression,E&&G?A.createTemplateTail($,K):A.createTemplateMiddle($,K))});g.push(...O)}else{let O=E?A.createTemplateTail(x,I):A.createTemplateMiddle(x,I);s(D,O),g.push(A.createTemplateSpan(S,O))}}return A.createTemplateExpression(m,g)}function lCe(e){let t=e.getSourceFile();ME(e,e.expression,t,3,!1),p3(e.expression,e.expression,t,3,!1)}function SHe(e){return b_(e)&&(lCe(e),e=e.expression),e}var THe={},J$="Convert to optional chain expression",Iue=Is(p.Convert_to_optional_chain_expression),Due={name:J$,description:Iue,kind:"refactor.rewrite.expression.optionalChain"};wh(J$,{kinds:[Due.kind],getEditsForAction:xHe,getAvailableActions:kHe});function kHe(e){let t=uCe(e,e.triggerReason==="invoked");return t?vy(t)?e.preferences.provideRefactorNotApplicableReason?[{name:J$,description:Iue,actions:[{...Due,notApplicableReason:t.error}]}]:qe:[{name:J$,description:Iue,actions:[Due]}]:qe}function xHe(e,t){let n=uCe(e);return w.assert(n&&!vy(n),"Expected applicable refactor info"),{edits:fn.ChangeTracker.with(e,s=>NHe(e.file,e.program.getTypeChecker(),s,n,t)),renameFilename:void 0,renameLocation:void 0}}function G$(e){return vn(e)||wk(e)}function CHe(e){return $l(e)||Bf(e)||Lc(e)}function U$(e){return G$(e)||CHe(e)}function uCe(e,t=!0){let{file:n,program:i}=e,s=aC(e),o=s.length===0;if(o&&!t)return;let c=ki(n,s.start),_=wE(n,s.start+s.length),u=Uc(c.pos,_&&_.end>=c.pos?_.getEnd():c.getEnd()),g=o?AHe(c):PHe(c,u),m=g&&U$(g)?EHe(g):void 0;if(!m)return{error:Is(p.Could_not_find_convertible_access_expression)};let h=i.getTypeChecker();return wk(m)?wHe(m,h):IHe(m)}function wHe(e,t){let n=e.condition,i=Aue(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:Is(p.Could_not_find_convertible_access_expression)};if((Nn(n)||je(n))&&Pue(n,i.expression))return{finalExpression:i,occurrences:[n],expression:e};if(vn(n)){let s=_Ce(i.expression,n);return s?{finalExpression:i,occurrences:s,expression:e}:{error:Is(p.Could_not_find_matching_access_expressions)}}}function IHe(e){if(e.operatorToken.kind!==56)return{error:Is(p.Can_only_convert_logical_AND_access_chains)};let t=Aue(e.right);if(!t)return{error:Is(p.Could_not_find_convertible_access_expression)};let n=_Ce(t.expression,e.left);return n?{finalExpression:t,occurrences:n,expression:e}:{error:Is(p.Could_not_find_matching_access_expressions)}}function _Ce(e,t){let n=[];for(;vn(t)&&t.operatorToken.kind===56;){let s=Pue(Ka(e),Ka(t.right));if(!s)break;n.push(s),e=s,t=t.left}let i=Pue(e,t);return i&&n.push(i),n.length>0?n:void 0}function Pue(e,t){if(!(!je(t)&&!Nn(t)&&!wo(t)))return DHe(e,t)?t:void 0}function DHe(e,t){for(;(qs(e)||Nn(e)||wo(e))&&x3(e)!==x3(t);)e=e.expression;for(;Nn(e)&&Nn(t)||wo(e)&&wo(t);){if(x3(e)!==x3(t))return!1;e=e.expression,t=t.expression}return je(e)&&je(t)&&e.getText()===t.getText()}function x3(e){if(je(e)||tp(e))return e.getText();if(Nn(e))return x3(e.name);if(wo(e))return x3(e.argumentExpression)}function PHe(e,t){for(;e.parent;){if(U$(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function AHe(e){for(;e.parent;){if(U$(e)&&!U$(e.parent))return e;e=e.parent}}function EHe(e){if(G$(e))return e;if(Lc(e)){let t=p2(e),n=t?.initializer;return n&&G$(n)?n:void 0}return e.expression&&G$(e.expression)?e.expression:void 0}function Aue(e){if(e=Ka(e),vn(e))return Aue(e.left);if((Nn(e)||wo(e)||qs(e))&&!ju(e))return e}function fCe(e,t,n){if(Nn(t)||wo(t)||qs(t)){let i=fCe(e,t.expression,n),s=n.length>0?n[n.length-1]:void 0,o=s?.getText()===t.expression.getText();if(o&&n.pop(),qs(t))return o?A.createCallChain(i,A.createToken(29),t.typeArguments,t.arguments):A.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(Nn(t))return o?A.createPropertyAccessChain(i,A.createToken(29),t.name):A.createPropertyAccessChain(i,t.questionDotToken,t.name);if(wo(t))return o?A.createElementAccessChain(i,A.createToken(29),t.argumentExpression):A.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function NHe(e,t,n,i,s){let{finalExpression:o,occurrences:c,expression:_}=i,u=c[c.length-1],g=fCe(t,o,c);g&&(Nn(g)||wo(g)||qs(g))&&(vn(_)?n.replaceNodeRange(e,u,o,g):wk(_)&&n.replaceNode(e,_,A.createBinaryExpression(g,A.createToken(61),_.whenFalse)))}var pCe={};nt(pCe,{Messages:()=>vu,RangeFacts:()=>gCe,getRangeToExtract:()=>Eue,getRefactorActionsToExtractSymbol:()=>dCe,getRefactorEditsToExtractSymbol:()=>mCe});var WE="Extract Symbol",BE={name:"Extract Constant",description:Is(p.Extract_constant),kind:"refactor.extract.constant"},zE={name:"Extract Function",description:Is(p.Extract_function),kind:"refactor.extract.function"};wh(WE,{kinds:[BE.kind,zE.kind],getEditsForAction:mCe,getAvailableActions:dCe});function dCe(e){let t=e.kind,n=Eue(e.file,aC(e),e.triggerReason==="invoked"),i=n.targetRange;if(i===void 0){if(!n.errors||n.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return qe;let I=[];return u1(zE.kind,t)&&I.push({name:WE,description:zE.description,actions:[{...zE,notApplicableReason:x(n.errors)}]}),u1(BE.kind,t)&&I.push({name:WE,description:BE.description,actions:[{...BE,notApplicableReason:x(n.errors)}]}),I}let{affectedTextRange:s,extractions:o}=jHe(i,e);if(o===void 0)return qe;let c=[],_=new Map,u,g=[],m=new Map,h,S=0;for(let{functionExtraction:I,constantExtraction:D}of o){if(u1(zE.kind,t)){let E=I.description;I.errors.length===0?_.has(E)||(_.set(E,!0),c.push({description:E,name:`function_scope_${S}`,kind:zE.kind,range:{start:{line:Qs(e.file,s.pos).line,offset:Qs(e.file,s.pos).character},end:{line:Qs(e.file,s.end).line,offset:Qs(e.file,s.end).character}}})):u||(u={description:E,name:`function_scope_${S}`,notApplicableReason:x(I.errors),kind:zE.kind})}if(u1(BE.kind,t)){let E=D.description;D.errors.length===0?m.has(E)||(m.set(E,!0),g.push({description:E,name:`constant_scope_${S}`,kind:BE.kind,range:{start:{line:Qs(e.file,s.pos).line,offset:Qs(e.file,s.pos).character},end:{line:Qs(e.file,s.end).line,offset:Qs(e.file,s.end).character}}})):h||(h={description:E,name:`constant_scope_${S}`,notApplicableReason:x(D.errors),kind:BE.kind})}S++}let T=[];return c.length?T.push({name:WE,description:Is(p.Extract_function),actions:c}):e.preferences.provideRefactorNotApplicableReason&&u&&T.push({name:WE,description:Is(p.Extract_function),actions:[u]}),g.length?T.push({name:WE,description:Is(p.Extract_constant),actions:g}):e.preferences.provideRefactorNotApplicableReason&&h&&T.push({name:WE,description:Is(p.Extract_constant),actions:[h]}),T.length?T:qe;function x(I){let D=I[0].messageText;return typeof D!="string"&&(D=D.messageText),D}}function mCe(e,t){let i=Eue(e.file,aC(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"),OHe(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"),LHe(i,e,c)}w.fail("Unrecognized action name")}var vu;(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")})(vu||(vu={}));var gCe=(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))(gCe||{});function Eue(e,t,n=!0){let{length:i}=t;if(i===0&&!n)return{errors:[kl(e,t.start,i,vu.cannotExtractEmpty)]};let s=i===0&&n,o=wce(e,t.start),c=wE(e,mc(t)),_=o&&c&&n?MHe(o,c,e):t,u=s?iQe(o):l3(o,e,_),g=s?u:l3(c,e,_),m=0,h;if(!u||!g)return{errors:[kl(e,t.start,i,vu.cannotExtractRange)]};if(u.flags&16777216)return{errors:[kl(e,t.start,i,vu.cannotExtractJSDoc)]};if(u.parent!==g.parent)return{errors:[kl(e,t.start,i,vu.cannotExtractRange)]};if(u!==g){if(!oC(u.parent))return{errors:[kl(e,t.start,i,vu.cannotExtractRange)]};let O=[];for(let F of u.parent.statements){if(F===u||O.length){let B=E(F);if(B)return{errors:B};O.push(F)}if(F===g)break}return O.length?{targetRange:{range:O,facts:m,thisNode:h}}:{errors:[kl(e,t.start,i,vu.cannotExtractRange)]}}if(Bf(u)&&!u.expression)return{errors:[kl(e,t.start,i,vu.cannotExtractRange)]};let S=x(u),T=I(S)||E(S);if(T)return{errors:T};return{targetRange:{range:RHe(S),facts:m,thisNode:h}};function x(O){if(Bf(O)){if(O.expression)return O.expression}else if(Lc(O)||au(O)){let F=Lc(O)?O.declarationList.declarations:O.declarations,B=0,G;for(let $ of F)$.initializer&&(B++,G=$.initializer);if(B===1)return G}else if(oi(O)&&O.initializer)return O.initializer;return O}function I(O){if(je($l(O)?O.expression:O))return[cn(O,vu.cannotExtractIdentifier)]}function D(O,F){let B=O;for(;B!==F;){if(B.kind===172){Ks(B)&&(m|=32);break}else if(B.kind===169){ep(B).kind===176&&(m|=32);break}else B.kind===174&&Ks(B)&&(m|=32);B=B.parent}}function E(O){let F;if((me=>{me[me.None=0]="None",me[me.Break=1]="Break",me[me.Continue=2]="Continue",me[me.Return=4]="Return"})(F||(F={})),w.assert(O.pos<=O.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),w.assert(!qd(O.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!Ii(O)&&!(Ud(O)&&hCe(O))&&!Oue(O))return[cn(O,vu.statementOrExpressionExpected)];if(O.flags&33554432)return[cn(O,vu.cannotExtractAmbientBlock)];let B=su(O);B&&D(O,B);let G,$=4,K;if(U(O),m&8){let me=t_(O,!1,!1);(me.kind===262||me.kind===174&&me.parent.kind===210||me.kind===218)&&(m|=16)}return G;function U(me){if(G)return!0;if(Ul(me)){let V=me.kind===260?me.parent.parent:me;if(ei(V,32))return(G||(G=[])).push(cn(me,vu.cannotExtractExportedEntity)),!0}switch(me.kind){case 272:return(G||(G=[])).push(cn(me,vu.cannotExtractImport)),!0;case 277:return(G||(G=[])).push(cn(me,vu.cannotExtractExportedEntity)),!0;case 108:if(me.parent.kind===213){let V=su(me);if(V===void 0||V.pos<t.start||V.end>=t.start+t.length)return(G||(G=[])).push(cn(me,vu.cannotExtractSuper)),!0}else m|=8,h=me;break;case 219:Es(me,function V(ne){if(VI(ne))m|=8,h=me;else{if(ii(ne)||Ns(ne)&&!Lo(ne))return!1;Es(ne,V)}});case 263:case 262:Mi(me.parent)&&me.parent.externalModuleIndicator===void 0&&(G||(G=[])).push(cn(me,vu.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}let te=$;switch(me.kind){case 245:$&=-5;break;case 258:$=0;break;case 241:me.parent&&me.parent.kind===258&&me.parent.finallyBlock===me&&($=4);break;case 297:case 296:$|=1;break;default:k0(me,!1)&&($|=3);break}switch(me.kind){case 197:case 110:m|=8,h=me;break;case 256:{let V=me.label;(K||(K=[])).push(V.escapedText),Es(me,U),K.pop();break}case 252:case 251:{let V=me.label;V?Ts(K,V.escapedText)||(G||(G=[])).push(cn(me,vu.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):$&(me.kind===252?1:2)||(G||(G=[])).push(cn(me,vu.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:m|=4;break;case 229:m|=2;break;case 253:$&4?m|=1:(G||(G=[])).push(cn(me,vu.cannotExtractRangeContainingConditionalReturnStatement));break;default:Es(me,U);break}$=te}}}function MHe(e,t,n){let i=e.getStart(n),s=t.getEnd();return n.text.charCodeAt(s)===59&&s++,{start:i,length:s-i}}function RHe(e){if(Ii(e))return[e];if(Ud(e))return $l(e.parent)?[e.parent]:e;if(Oue(e))return e}function Nue(e){return Lo(e)?GB(e.body):xo(e)||Mi(e)||Lm(e)||ii(e)}function FHe(e){let t=hv(e.range)?Ea(e.range):e.range;if(e.facts&8&&!(e.facts&16)){let i=su(t);if(i){let s=gr(t,xo);return s?[s,i]:[i]}}let n=[];for(;;)if(t=t.parent,t.kind===169&&(t=gr(t,i=>xo(i)).parent),Nue(t)&&(n.push(t),t.kind===307))return n}function OHe(e,t,n){let{scopes:i,readsAndWrites:{target:s,usagesPerScope:o,functionErrorsPerScope:c,exposedVariableDeclarations:_}}=Mue(e,t);return w.assert(!c[n].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),UHe(s,i[n],o[n],_,e,t)}function LHe(e,t,n){let{scopes:i,readsAndWrites:{target:s,usagesPerScope:o,constantErrorsPerScope:c,exposedVariableDeclarations:_}}=Mue(e,t);w.assert(!c[n].length,"The extraction went missing? How?"),w.assert(_.length===0,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();let u=gt(s)?s:s.statements[0].expression;return VHe(u,i[n],o[n],e.facts,t)}function jHe(e,t){let{scopes:n,affectedTextRange:i,readsAndWrites:{functionErrorsPerScope:s,constantErrorsPerScope:o}}=Mue(e,t),c=n.map((_,u)=>{let g=WHe(_),m=BHe(_),h=xo(_)?zHe(_):ii(_)?JHe(_):GHe(_),S,T;return h===1?(S=hh(Is(p.Extract_to_0_in_1_scope),[g,"global"]),T=hh(Is(p.Extract_to_0_in_1_scope),[m,"global"])):h===0?(S=hh(Is(p.Extract_to_0_in_1_scope),[g,"module"]),T=hh(Is(p.Extract_to_0_in_1_scope),[m,"module"])):(S=hh(Is(p.Extract_to_0_in_1),[g,h]),T=hh(Is(p.Extract_to_0_in_1),[m,h])),u===0&&!ii(_)&&(T=hh(Is(p.Extract_to_0_in_enclosing_scope),[m])),{functionExtraction:{description:S,errors:s[u]},constantExtraction:{description:T,errors:o[u]}}});return{affectedTextRange:i,extractions:c}}function Mue(e,t){let{file:n}=t,i=FHe(e),s=rQe(e,n),o=nQe(e,i,s,n,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,affectedTextRange:s,readsAndWrites:o}}function WHe(e){return xo(e)?"inner function":ii(e)?"method":"function"}function BHe(e){return ii(e)?"readonly field":"constant"}function zHe(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?`function '${e.name.text}'`:e$;case 219:return"arrow function";case 174:return`method '${e.name.getText()}'`;case 177:return`'get ${e.name.getText()}'`;case 178:return`'set ${e.name.getText()}'`;default:w.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function JHe(e){return e.kind===263?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}function GHe(e){return e.kind===268?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function UHe(e,t,{usages:n,typeParameterUsages:i,substitutions:s},o,c,_){let u=_.program.getTypeChecker(),g=wa(_.program.getCompilerOptions()),m=Vu.createImportAdder(_.file,_.program,_.preferences,_.host),h=t.getSourceFile(),S=Uk(ii(t)?"newMethod":"newFunction",h),T=un(t),x=A.createIdentifier(S),I,D=[],E=[],O;n.forEach((se,xe)=>{let _e;if(!T){let ct=u.getTypeOfSymbolAtLocation(se.symbol,se.node);ct=u.getBaseTypeOfLiteralType(ct),_e=Vu.typeToAutoImportableTypeNode(u,m,ct,t,g,1,8)}let tt=A.createParameterDeclaration(void 0,void 0,xe,void 0,_e);D.push(tt),se.usage===2&&(O||(O=[])).push(se),E.push(A.createIdentifier(xe))});let F=ps(i.values(),se=>({type:se,declaration:$He(se,_.startPosition)}));F.sort(HHe);let B=F.length===0?void 0:Vi(F,({declaration:se})=>se),G=B!==void 0?B.map(se=>A.createTypeReferenceNode(se.name,void 0)):void 0;if(gt(e)&&!T){let se=u.getContextualType(e);I=u.typeToTypeNode(se,t,1,8)}let{body:$,returnValueProperty:K}=KHe(e,o,O,s,!!(c.facts&1));xf($);let U,me=!!(c.facts&16);if(ii(t)){let se=T?[]:[A.createModifier(123)];c.facts&32&&se.push(A.createModifier(126)),c.facts&4&&se.push(A.createModifier(134)),U=A.createMethodDeclaration(se.length?se:void 0,c.facts&2?A.createToken(42):void 0,x,void 0,B,D,I,$)}else me&&D.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,B,D,I,$);let te=fn.ChangeTracker.fromContext(_),V=(hv(c.range)?xa(c.range):c.range).end,ne=ZHe(V,t);ne?te.insertNodeBefore(_.file,ne,U,!0):te.insertNodeAtEndOfScope(_.file,t,U),m.writeFixes(te);let ie=[],oe=QHe(t,c,S);me&&E.unshift(A.createIdentifier("this"));let de=A.createCallExpression(me?A.createPropertyAccessExpression(oe,"call"):oe,G,E);if(c.facts&2&&(de=A.createYieldExpression(A.createToken(42),de)),c.facts&4&&(de=A.createAwaitExpression(de)),Fue(e)&&(de=A.createJsxExpression(void 0,de)),o.length&&!O)if(w.assert(!K,"Expected no returnValueProperty"),w.assert(!(c.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),o.length===1){let se=o[0];ie.push(A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(ro(se.name),void 0,ro(se.type),de)],se.parent.flags)))}else{let se=[],xe=[],_e=o[0].parent.flags,tt=!1;for(let le of o){se.push(A.createBindingElement(void 0,void 0,ro(le.name)));let Je=u.typeToTypeNode(u.getBaseTypeOfLiteralType(u.getTypeAtLocation(le)),t,1,8);xe.push(A.createPropertySignature(void 0,le.symbol.name,void 0,Je)),tt=tt||le.type!==void 0,_e=_e&le.parent.flags}let ct=tt?A.createTypeLiteralNode(xe):void 0;ct&&dn(ct,1),ie.push(A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(A.createObjectBindingPattern(se),void 0,ct,de)],_e)))}else if(o.length||O){if(o.length)for(let xe of o){let _e=xe.parent.flags;_e&2&&(_e=_e&-3|1),ie.push(A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(xe.symbol.name,void 0,De(xe.type))],_e)))}K&&ie.push(A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(K,void 0,De(I))],1)));let se=Rue(o,O);K&&se.unshift(A.createShorthandPropertyAssignment(K)),se.length===1?(w.assert(!K,"Shouldn't have returnValueProperty here"),ie.push(A.createExpressionStatement(A.createAssignment(se[0].name,de))),c.facts&1&&ie.push(A.createReturnStatement())):(ie.push(A.createExpressionStatement(A.createAssignment(A.createObjectLiteralExpression(se),de))),K&&ie.push(A.createReturnStatement(A.createIdentifier(K))))}else c.facts&1?ie.push(A.createReturnStatement(de)):hv(c.range)?ie.push(A.createExpressionStatement(de)):ie.push(de);hv(c.range)?te.replaceNodeRangeWithNodes(_.file,Ea(c.range),xa(c.range),ie):te.replaceNodeWithNodes(_.file,c.range,ie);let ye=te.getChanges(),ve=(hv(c.range)?Ea(c.range):c.range).getSourceFile().fileName,Ge=f3(ye,ve,S,!1);return{renameFilename:ve,renameLocation:Ge,edits:ye};function De(se){if(se===void 0)return;let xe=ro(se),_e=xe;for(;xk(_e);)_e=_e.type;return cv(_e)&&On(_e.types,tt=>tt.kind===157)?xe:A.createUnionTypeNode([xe,A.createKeywordTypeNode(157)])}}function VHe(e,t,{substitutions:n},i,s){let o=s.program.getTypeChecker(),c=t.getSourceFile(),_=_ue(e,t,o,c),u=un(t),g=u||!o.isContextSensitive(e)?void 0:o.typeToTypeNode(o.getContextualType(e),t,1,8),m=XHe(Ka(e),n);({variableType:g,initializer:m}=I(g,m)),xf(m);let h=fn.ChangeTracker.fromContext(s);if(ii(t)){w.assert(!u,"Cannot extract to a JS class");let D=[];D.push(A.createModifier(123)),i&32&&D.push(A.createModifier(126)),D.push(A.createModifier(148));let E=A.createPropertyDeclaration(D,_,void 0,g,m),O=A.createPropertyAccessExpression(i&32?A.createIdentifier(t.name.getText()):A.createThis(),A.createIdentifier(_));Fue(e)&&(O=A.createJsxExpression(void 0,O));let F=e.pos,B=eQe(F,t);h.insertNodeBefore(s.file,B,E,!0),h.replaceNode(s.file,e,O)}else{let D=A.createVariableDeclaration(_,void 0,g,m),E=qHe(e,t);if(E){h.insertNodeBefore(s.file,E,D);let O=A.createIdentifier(_);h.replaceNode(s.file,e,O)}else if(e.parent.kind===244&&t===gr(e,Nue)){let O=A.createVariableStatement(void 0,A.createVariableDeclarationList([D],2));h.replaceNode(s.file,e.parent,O)}else{let O=A.createVariableStatement(void 0,A.createVariableDeclarationList([D],2)),F=tQe(e,t);if(F.pos===0?h.insertNodeAtTopOfFile(s.file,O,!1):h.insertNodeBefore(s.file,F,O,!1),e.parent.kind===244)h.delete(s.file,e.parent);else{let B=A.createIdentifier(_);Fue(e)&&(B=A.createJsxExpression(void 0,B)),h.replaceNode(s.file,e,B)}}}let S=h.getChanges(),T=e.getSourceFile().fileName,x=f3(S,T,_,!0);return{renameFilename:T,renameLocation:x,edits:S};function I(D,E){if(D===void 0)return{variableType:D,initializer:E};if(!Ao(E)&&!Lo(E)||E.typeParameters)return{variableType:D,initializer:E};let O=o.getTypeAtLocation(e),F=hg(o.getSignaturesOfType(O,0));if(!F)return{variableType:D,initializer:E};if(F.getTypeParameters())return{variableType:D,initializer:E};let B=[],G=!1;for(let $ of E.parameters)if($.type)B.push($);else{let K=o.getTypeAtLocation($);K===o.getAnyType()&&(G=!0),B.push(A.updateParameterDeclaration($,$.modifiers,$.dotDotDotToken,$.name,$.questionToken,$.type||o.typeToTypeNode(K,t,1,8),$.initializer))}if(G)return{variableType:D,initializer:E};if(D=void 0,Lo(E))E=A.updateArrowFunction(E,od(e)?cS(e):void 0,E.typeParameters,B,E.type||o.typeToTypeNode(F.getReturnType(),t,1,8),E.equalsGreaterThanToken,E.body);else{if(F&&F.thisParameter){let $=_l(B);if(!$||je($.name)&&$.name.escapedText!=="this"){let K=o.getTypeOfSymbolAtLocation(F.thisParameter,e);B.splice(0,0,A.createParameterDeclaration(void 0,void 0,"this",void 0,o.typeToTypeNode(K,t,1,8)))}}E=A.updateFunctionExpression(E,od(e)?cS(e):void 0,E.asteriskToken,E.name,E.typeParameters,B,E.type||o.typeToTypeNode(F.getReturnType(),t,1),E.body)}return{variableType:D,initializer:E}}}function qHe(e,t){let n;for(;e!==void 0&&e!==t;){if(oi(e)&&e.initializer===n&&au(e.parent)&&e.parent.declarations.length>1)return e;n=e,e=e.parent}}function $He(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 HHe({type:e,declaration:t},{type:n,declaration:i}){return OY(t,i,"pos",Po)||wu(e.symbol?e.symbol.getName():"",n.symbol?n.symbol.getName():"")||Po(e.id,n.id)}function QHe(e,t,n){let i=A.createIdentifier(n);if(ii(e)){let s=t.facts&32?A.createIdentifier(e.name.text):A.createThis();return A.createPropertyAccessExpression(s,i)}else return i}function KHe(e,t,n,i,s){let o=n!==void 0||t.length>0;if(Fs(e)&&!o&&i.size===0)return{body:A.createBlock(e.statements,!0),returnValueProperty:void 0};let c,_=!1,u=A.createNodeArray(Fs(e)?e.statements.slice(0):[Ii(e)?e:A.createReturnStatement(Ka(e))]);if(o||i.size){let m=Ur(u,g,Ii).slice();if(o&&!s&&Ii(e)){let h=Rue(t,n);h.length===1?m.push(A.createReturnStatement(h[0].name)):m.push(A.createReturnStatement(A.createObjectLiteralExpression(h)))}return{body:A.createBlock(m,!0),returnValueProperty:c}}else return{body:A.createBlock(u,!0),returnValueProperty:void 0};function g(m){if(!_&&Bf(m)&&o){let h=Rue(t,n);return m.expression&&(c||(c="__return"),h.unshift(A.createPropertyAssignment(c,et(m.expression,g,gt)))),h.length===1?A.createReturnStatement(h[0].name):A.createReturnStatement(A.createObjectLiteralExpression(h))}else{let h=_;_=_||xo(m)||ii(m);let S=i.get(Ua(m).toString()),T=S?ro(S):Ir(m,g,void 0);return _=h,T}}}function XHe(e,t){return t.size?n(e):e;function n(i){let s=t.get(Ua(i).toString());return s?ro(s):Ir(i,n,void 0)}}function YHe(e){if(xo(e)){let t=e.body;if(Fs(t))return t.statements}else{if(Lm(e)||Mi(e))return e.statements;if(ii(e))return e.members;}return qe}function ZHe(e,t){return On(YHe(t),n=>n.pos>=e&&xo(n)&&!lc(n))}function eQe(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&&!ds(o)){if(i!==void 0)return o;s=!1}i=o}return i===void 0?w.fail():i}function tQe(e,t){w.assert(!ii(t));let n;for(let i=e;i!==t;i=i.parent)Nue(i)&&(n=i);for(let i=(n||e).parent;;i=i.parent){if(oC(i)){let s;for(let o of i.statements){if(o.pos>e.pos)break;s=o}return!s&&yI(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 Rue(e,t){let n=hr(e,s=>A.createShorthandPropertyAssignment(s.symbol.name)),i=hr(t,s=>A.createShorthandPropertyAssignment(s.symbol.name));return n===void 0?i:i===void 0?n:n.concat(i)}function hv(e){return ks(e)}function rQe(e,t){return hv(e.range)?{pos:Ea(e.range).getStart(t),end:xa(e.range).getEnd()}:e.range}function nQe(e,t,n,i,s,o){let c=new Map,_=[],u=[],g=[],m=[],h=[],S=new Map,T=[],x,I=hv(e.range)?e.range.length===1&&$l(e.range[0])?e.range[0].expression:void 0:e.range,D;if(I===void 0){let ie=e.range,oe=Ea(ie).getStart(),de=xa(ie).end;D=kl(i,oe,de-oe,vu.expressionExpected)}else s.getTypeAtLocation(I).flags&147456&&(D=cn(I,vu.uselessConstantType));for(let ie of t){_.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),u.push(new Map),g.push([]);let oe=[];D&&oe.push(D),ii(ie)&&un(ie)&&oe.push(cn(ie,vu.cannotExtractToJSClass)),Lo(ie)&&!Fs(ie.body)&&oe.push(cn(ie,vu.cannotExtractToExpressionArrowFunction)),m.push(oe)}let E=new Map,O=hv(e.range)?A.createBlock(e.range):e.range,F=hv(e.range)?Ea(e.range):e.range,B=G(F);if(K(O),B&&!hv(e.range)&&!Bm(e.range)){let ie=s.getContextualType(e.range);$(ie)}if(c.size>0){let ie=new Map,oe=0;for(let de=F;de!==void 0&&oe<t.length;de=de.parent)if(de===t[oe]&&(ie.forEach((ye,H)=>{_[oe].typeParameterUsages.set(H,ye)}),oe++),uz(de))for(let ye of y0(de)){let H=s.getTypeAtLocation(ye);c.has(H.id.toString())&&ie.set(H.id.toString(),H)}w.assert(oe===t.length,"Should have iterated all scopes")}if(h.length){let ie=lz(t[0],t[0].parent)?t[0]:Gd(t[0]);Es(ie,te)}for(let ie=0;ie<t.length;ie++){let oe=_[ie];if(ie>0&&(oe.usages.size>0||oe.typeParameterUsages.size>0)){let H=hv(e.range)?e.range[0]:e.range;m[ie].push(cn(H,vu.cannotAccessVariablesFromNestedScopes))}e.facts&16&&ii(t[ie])&&g[ie].push(cn(e.thisNode,vu.cannotExtractFunctionsContainingThisToMethod));let de=!1,ye;if(_[ie].usages.forEach(H=>{H.usage===2&&(de=!0,H.symbol.flags&106500&&H.symbol.valueDeclaration&&hf(H.symbol.valueDeclaration,8)&&(ye=H.symbol.valueDeclaration))}),w.assert(hv(e.range)||T.length===0,"No variable declarations expected if something was extracted"),de&&!hv(e.range)){let H=cn(e.range,vu.cannotWriteInExpression);g[ie].push(H),m[ie].push(H)}else if(ye&&ie>0){let H=cn(ye,vu.cannotExtractReadonlyPropertyInitializerOutsideConstructor);g[ie].push(H),m[ie].push(H)}else if(x){let H=cn(x,vu.cannotExtractExportedEntity);g[ie].push(H),m[ie].push(H)}}return{target:O,usagesPerScope:_,functionErrorsPerScope:g,constantErrorsPerScope:m,exposedVariableDeclarations:T};function G(ie){return!!gr(ie,oe=>uz(oe)&&y0(oe).length!==0)}function $(ie){let oe=s.getSymbolWalker(()=>(o.throwIfCancellationRequested(),!0)),{visitedTypes:de}=oe.walkType(ie);for(let ye of de)ye.isTypeParameter()&&c.set(ye.id.toString(),ye)}function K(ie,oe=1){if(B){let de=s.getTypeAtLocation(ie);$(de)}if(Ul(ie)&&ie.symbol&&h.push(ie),ql(ie))K(ie.left,2),K(ie.right);else if(Xee(ie))K(ie.operand,2);else if(Nn(ie)||wo(ie))Es(ie,K);else if(je(ie)){if(!ie.parent||y_(ie.parent)&&ie!==ie.parent.left||Nn(ie.parent)&&ie!==ie.parent.expression)return;U(ie,oe,Im(ie))}else Es(ie,K)}function U(ie,oe,de){let ye=me(ie,oe,de);if(ye)for(let H=0;H<t.length;H++){let ve=u[H].get(ye);ve&&_[H].substitutions.set(Ua(ie).toString(),ve)}}function me(ie,oe,de){let ye=V(ie);if(!ye)return;let H=ua(ye).toString(),ve=E.get(H);if(ve&&ve>=oe)return H;if(E.set(H,oe),ve){for(let se of _)se.usages.get(ie.text)&&se.usages.set(ie.text,{usage:oe,symbol:ye,node:ie});return H}let Ge=ye.getDeclarations(),De=Ge&&On(Ge,se=>se.getSourceFile()===i);if(De&&!r3(n,De.getStart(),De.end)){if(e.facts&2&&oe===2){let se=cn(ie,vu.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(let xe of g)xe.push(se);for(let xe of m)xe.push(se)}for(let se=0;se<t.length;se++){let xe=t[se];if(s.resolveName(ye.name,xe,ye.flags,!1)!==ye&&!u[se].has(H)){let tt=ne(ye.exportSymbol||ye,xe,de);if(tt)u[se].set(H,tt);else if(de){if(!(ye.flags&262144)){let ct=cn(ie,vu.typeWillNotBeVisibleInTheNewScope);g[se].push(ct),m[se].push(ct)}}else _[se].usages.set(ie.text,{usage:oe,symbol:ye,node:ie})}}return H}}function te(ie){if(ie===e.range||hv(e.range)&&e.range.includes(ie))return;let oe=je(ie)?V(ie):s.getSymbolAtLocation(ie);if(oe){let de=On(h,ye=>ye.symbol===oe);if(de)if(oi(de)){let ye=de.symbol.id.toString();S.has(ye)||(T.push(de),S.set(ye,!0))}else x=x||de}Es(ie,te)}function V(ie){return ie.parent&&Eu(ie.parent)&&ie.parent.name===ie?s.getShorthandAssignmentValueSymbol(ie.parent):s.getSymbolAtLocation(ie)}function ne(ie,oe,de){if(!ie)return;let ye=ie.getDeclarations();if(ye&&ye.some(ve=>ve.parent===oe))return A.createIdentifier(ie.name);let H=ne(ie.parent,oe,de);if(H!==void 0)return de?A.createQualifiedName(H,A.createIdentifier(ie.name)):A.createPropertyAccessExpression(H,ie.name)}}function iQe(e){return gr(e,t=>t.parent&&hCe(t)&&!vn(t.parent))}function hCe(e){let{parent:t}=e;switch(t.kind){case 306:return!1}switch(e.kind){case 11:return t.kind!==272&&t.kind!==276;case 230:case 206:case 208:return!1;case 80:return t.kind!==208&&t.kind!==276&&t.kind!==281}return!0}function Fue(e){return Oue(e)||(Wm(e)||Pk(e)||Hb(e))&&(Wm(e.parent)||Hb(e.parent))}function Oue(e){return ya(e)&&e.parent&&Bm(e.parent)}var sQe={},V$="Generate 'get' and 'set' accessors",Lue=Is(p.Generate_get_and_set_accessors),jue={name:V$,description:Lue,kind:"refactor.rewrite.property.generateAccessors"};wh(V$,{kinds:[jue.kind],getEditsForAction:function(t,n){if(!t.endPosition)return;let i=Vu.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);w.assert(i&&!vy(i),"Expected applicable refactor info");let s=Vu.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=(je(c)?0:-1)+f3(s,o,c.text,Bi(i.declaration));return{renameFilename:o,renameLocation:u,edits:s}},getAvailableActions(e){if(!e.endPosition)return qe;let t=Vu.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?vy(t)?e.preferences.provideRefactorNotApplicableReason?[{name:V$,description:Lue,actions:[{...jue,notApplicableReason:t.error}]}]:qe:[{name:V$,description:Lue,actions:[jue]}]:qe}});var aQe={},q$="Infer function return type",Wue=Is(p.Infer_function_return_type),$$={name:q$,description:Wue,kind:"refactor.rewrite.function.returnType"};wh(q$,{kinds:[$$.kind],getEditsForAction:oQe,getAvailableActions:cQe});function oQe(e){let t=yCe(e);if(t&&!vy(t))return{renameFilename:void 0,renameLocation:void 0,edits:fn.ChangeTracker.with(e,i=>lQe(e.file,i,t.declaration,t.returnTypeNode))}}function cQe(e){let t=yCe(e);return t?vy(t)?e.preferences.provideRefactorNotApplicableReason?[{name:q$,description:Wue,actions:[{...$$,notApplicableReason:t.error}]}]:qe:[{name:q$,description:Wue,actions:[$$]}]:qe}function lQe(e,t,n,i){let s=_o(n,22,e),o=Lo(n)&&s===void 0,c=o?Ea(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 yCe(e){if(un(e.file)||!u1($$.kind,e.kind))return;let t=W_(e.file,e.startPosition),n=gr(t,c=>Fs(c)||c.parent&&Lo(c.parent)&&(c.kind===39||c.parent.body===c)?"quit":uQe(c));if(!n||!n.body||n.type)return{error:Is(p.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(Vi(c,_=>_.getReturnType())))}if(!s){let c=i.getSignatureFromDeclaration(n);if(c){let _=i.getTypePredicateOfSignature(c);if(_&&_.type){let u=i.typePredicateToTypePredicateNode(_,n,1,8);if(u)return{declaration:n,returnTypeNode:u}}else s=i.getReturnTypeOfSignature(c)}}if(!s)return{error:Is(p.Could_not_determine_function_return_type)};let o=i.typeToTypeNode(s,n,1,8);if(o)return{declaration:n,returnTypeNode:o}}function uQe(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}var vCe=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(vCe||{}),bCe=(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))(bCe||{}),SCe=(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))(SCe||{});function TCe(e,t,n,i){let s=Bue(e,t,n,i);w.assert(s.spans.length%3===0);let o=s.spans,c=[];for(let _=0;_<o.length;_+=3)c.push({textSpan:pu(o[_],o[_+1]),classificationType:o[_+2]});return c}function Bue(e,t,n,i){return{spans:_Qe(e,n,i,t),endOfLineState:0}}function _Qe(e,t,n,i){let s=[];return e&&t&&fQe(e,t,n,(c,_,u)=>{s.push(c.getStart(t),c.getWidth(t),(_+1<<8)+u)},i),s}function fQe(e,t,n,i,s){let o=e.getTypeChecker(),c=!1;function _(u){switch(u.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:s.throwIfCancellationRequested()}if(!u||!f6(n,u.pos,u.getFullWidth())||u.getFullWidth()===0)return;let g=c;if((Wm(u)||Pk(u))&&(c=!0),hI(u)&&(c=!1),je(u)&&!c&&!gQe(u)&&!PA(u.escapedText)){let m=o.getSymbolAtLocation(u);if(m){m.flags&2097152&&(m=o.getAliasedSymbol(m));let h=pQe(m,zk(u));if(h!==void 0){let S=0;u.parent&&(Da(u.parent)||CCe.get(u.parent.kind)===h)&&u.parent.name===u&&(S=1),h===6&&xCe(u)&&(h=9),h=dQe(o,u,h);let T=m.valueDeclaration;if(T){let x=Db(T),I=ny(T);x&256&&(S|=2),x&1024&&(S|=4),h!==0&&h!==2&&(x&8||I&2||m.getFlags()&8)&&(S|=8),(h===7||h===10)&&mQe(T,t)&&(S|=32),e.isSourceFileDefaultLibrary(T.getSourceFile())&&(S|=16)}else m.declarations&&m.declarations.some(x=>e.isSourceFileDefaultLibrary(x.getSourceFile()))&&(S|=16);i(u,h,S)}}}Es(u,_),c=g}_(t)}function pQe(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=kCe(i)),i&&CCe.get(i.kind)}function dQe(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)||hQe(t))return n===9?11:10}}return n}function mQe(e,t){return Da(e)&&(e=kCe(e)),oi(e)?(!Mi(e.parent.parent.parent)||BS(e.parent))&&e.getSourceFile()===t:jc(e)?!Mi(e.parent)&&e.getSourceFile()===t:!1}function kCe(e){for(;;)if(Da(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function gQe(e){let t=e.parent;return t&&(Cd(t)||a_(t)||kh(t))}function hQe(e){for(;xCe(e);)e=e.parent;return qs(e.parent)&&e.parent.expression===e}function xCe(e){return y_(e.parent)&&e.parent.right===e||Nn(e.parent)&&e.parent.name===e}var CCe=new Map([[260,7],[169,6],[172,9],[267,3],[266,1],[306,8],[263,0],[174,11],[262,10],[218,10],[173,11],[177,9],[178,9],[171,9],[264,2],[265,5],[168,4],[303,9],[304,9]]),wCe="0.8";function ICe(e,t,n,i){let s=rF(e)?new zue(e,t,n):e===80?new PCe(80,t,n):e===81?new ACe(81,t,n):new DCe(e,t,n);return s.parent=i,s.flags=i.flags&101441536,s}var zue=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(!qd(this.pos)&&!qd(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Fr(this)}getStart(e,t){return this.assertHasRealPosition(),w0(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=Fr(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"),vG(this,e)??bie(this,e,yQe(this,e))}getFirstToken(e){this.assertHasRealPosition();let t=this.getChildren(e);if(!t.length)return;let n=On(t,i=>i.kind<309||i.kind>351);return n.kind<166?n:n.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let t=this.getChildren(e),n=zo(t);if(n)return n.kind<166?n:n.getLastToken(e)}forEachChild(e,t){return Es(this,e,t)}};function yQe(e,t){let n=[];if(uF(e))return e.forEachChild(c=>{n.push(c)}),n;ou.setText((t||e.getSourceFile()).text);let i=e.pos,s=c=>{GL(n,i,c.pos,e),n.push(c),i=c.end},o=c=>{GL(n,i,c.pos,e),n.push(vQe(c,e)),i=c.end};return or(e.jsDoc,s),i=e.pos,e.forEachChild(s,o),GL(n,i,e.end,e),ou.setText(void 0),n}function GL(e,t,n,i){for(ou.resetTokenState(t);t<n;){let s=ou.scan(),o=ou.getTokenEnd();if(o<=n){if(s===80){if(vne(i))continue;w.fail(`Did not expect ${w.formatSyntaxKind(i.kind)} to have an Identifier in its trivia`)}e.push(ICe(s,t,o,i))}if(t=o,s===1)break}}function vQe(e,t){let n=ICe(352,e.pos,e.end,t),i=[],s=e.pos;for(let o of e)GL(i,s,o.pos,t),i.push(o),s=o.end;return GL(i,s,e.end,t),n._children=i,n}var Jue=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 Fr(this)}getStart(e,t){return w0(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||qe}getFirstToken(){}getLastToken(){}forEachChild(){}},bQe=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 Oc(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=qe,!this.declarations&&lh(this)&&this.links.target&&lh(this.links.target)&&this.links.target.links.tupleLabelDeclaration){let t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=UL([t],e)}else this.documentationComment=UL(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(ch(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=qe,this.contextualGetAccessorDocumentationComment=UL(An(this.declarations,ch),t)),Dr(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(xm(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=qe,this.contextualSetAccessorDocumentationComment=UL(An(this.declarations,xm),t)),Dr(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=qe,this.tags=H$(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(ch(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=qe,this.contextualGetAccessorTags=H$(An(this.declarations,ch),t)),Dr(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(xm(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=qe,this.contextualSetAccessorTags=H$(An(this.declarations,xm),t)),Dr(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},DCe=class extends Jue{constructor(e,t,n){super(e,t,n)}},PCe=class extends Jue{constructor(e,t,n){super(e,t,n)}get text(){return Ln(this)}},ACe=class extends Jue{constructor(e,t,n){super(e,t,n)}get text(){return Ln(this)}},SQe=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!!(Mn(this)&3)}isClass(){return!!(Mn(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(Mn(this)&4)return this.checker.getTypeArguments(this)}},TQe=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()&&AA(t.type)){let n=t.type.getConstraint();if(n)return this.checker.getIndexType(n)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=UL(Ux(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=H$(Ux(this.declaration),this.checker))}};function ECe(e){return Ab(e).some(t=>t.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function H$(e,t){if(!e)return qe;let n=p1.getJsDocTagsFromDeclarations(e,t);if(t&&(n.length===0||e.some(ECe))){let i=new Set;for(let s of e){let o=NCe(t,s,c=>{var _;if(!i.has(c))return i.add(c),s.kind===177||s.kind===178?c.getContextualJsDocTags(s,t):((_=c.declarations)==null?void 0:_.length)===1?c.getJsDocTags(t):void 0});o&&(n=[...o,...n])}}return n}function UL(e,t){if(!e)return qe;let n=p1.getJsDocCommentsFromDeclarations(e,t);if(t&&(n.length===0||e.some(ECe))){let i=new Set;for(let s of e){let o=NCe(t,s,c=>{if(!i.has(c))return i.add(c),s.kind===177||s.kind===178?c.getContextualDocumentationComment(s,t):c.getDocumentationComment(t)});o&&(n=n.length===0?o.slice():o.concat(XI(),n))}}return n}function NCe(e,t,n){var i;let s=((i=t.parent)==null?void 0:i.kind)===176?t.parent.parent:t.parent;if(!s)return;let o=Tl(t);return po(nA(s),c=>{let _=e.getTypeAtLocation(c),u=o&&_.symbol?e.getTypeOfSymbol(_.symbol):_,g=e.getPropertyOfType(u,t.symbol.name);return g?n(g):void 0})}var kQe=class extends zue{constructor(e,t,n){super(e,t,n)}update(e,t){return RG(this,e,t)}getLineAndCharacterOfPosition(e){return Qs(this,e)}getLineStarts(){return nh(this)}getPositionOfLineAndCharacter(e,t,n){return V8(nh(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=Kp();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=H8(o);return c&&(pa(c)&&Nn(c.expression)?c.expression.name.text:tl(c)?o3(c):void 0)}function s(o){switch(o.kind){case 262:case 218:case 174:case 173:let c=o,_=i(c);if(_){let m=n(_),h=zo(m);h&&c.parent===h.parent&&c.symbol===h.symbol?c.body&&!h.body&&(m[m.length-1]=c):m.push(c)}Es(o,s);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(o),Es(o,s);break;case 169:if(!ei(o,31))break;case 260:case 208:{let m=o;if(Ws(m.name)){Es(m.name,s);break}m.initializer&&s(m.initializer)}case 306:case 172:case 171:t(o);break;case 278:let u=o;u.exportClause&&(Fp(u.exportClause)?or(u.exportClause.elements,s):s(u.exportClause.name));break;case 272:let g=o.importClause;g&&(g.name&&t(g.name),g.namedBindings&&(g.namedBindings.kind===274?t(g.namedBindings):or(g.namedBindings.elements,s)));break;case 226:Vc(o)!==0&&t(o);default:Es(o,s)}}}},xQe=class{constructor(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(i=>i)}getLineAndCharacterOfPosition(e){return Qs(this,e)}};function CQe(){return{getNodeConstructor:()=>zue,getTokenConstructor:()=>DCe,getIdentifierConstructor:()=>PCe,getPrivateIdentifierConstructor:()=>ACe,getSourceFileConstructor:()=>kQe,getSymbolConstructor:()=>bQe,getTypeConstructor:()=>SQe,getSignatureConstructor:()=>TQe,getSourceMapSourceConstructor:()=>xQe}}function C3(e){let t=!0;for(let i in e)if(bo(e,i)&&!MCe(i)){t=!1;break}if(t)return e;let n={};for(let i in e)if(bo(e,i)){let s=MCe(i)?i:i.charAt(0).toLowerCase()+i.substr(1);n[s]=e[i]}return n}function MCe(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function w3(e){return e?hr(e,t=>t.text).join(""):""}function VL(){return{target:1,jsx:1}}function Q$(){return Vu.getSupportedErrorCodes()}var wQe=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,n,i,s,o,c,_,u;let g=this.host.getScriptSnapshot(e);if(!g)throw new Error("Could not find file: '"+e+"'.");let m=Hq(e,this.host),h=this.host.getScriptVersion(e),S;if(this.currentFileName!==e){let T={languageVersion:99,impliedNodeFormat:zM(ko(e,this.host.getCurrentDirectory(),((i=(n=(t=this.host).getCompilerHost)==null?void 0:n.call(t))==null?void 0:i.getCanonicalFileName)||cy(this.host)),(u=(_=(c=(o=(s=this.host).getCompilerHost)==null?void 0:o.call(s))==null?void 0:c.getModuleResolutionCache)==null?void 0:_.call(c))==null?void 0:u.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:I4(this.host.getCompilationSettings()),jsDocParsingMode:0};S=qL(e,g,T,h,!0,m)}else if(this.currentFileVersion!==h){let T=g.getChangeRange(this.currentFileScriptSnapshot);S=K$(this.currentSourceFile,g,h,T)}return S&&(this.currentFileVersion=h,this.currentFileName=e,this.currentFileScriptSnapshot=g,this.currentSourceFile=S),this.currentSourceFile}};function RCe(e,t,n){e.version=n,e.scriptSnapshot=t}function qL(e,t,n,i,s,o){let c=$2(e,sC(t),n,s,o);return RCe(c,t,i),c}function K$(e,t,n,i,s){if(i&&n!==e.version){let c,_=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=_&&u?_+u:_||u;else{let m=t.getText(i.span.start,i.span.start+i.newLength);c=_&&u?_+m+u:_?_+m:m+u}let g=RG(e,c,i,s);return RCe(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 qL(e.fileName,t,o,n,!0,e.scriptKind)}var IQe={isCancellationRequested:ey,throwIfCancellationRequested:to},DQe=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=_n)==null||e.instant(_n.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new TP}},Gue=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){let e=To();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=_n)==null||e.instant(_n.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new TP}},FCe=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],PQe=[...FCe,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors","preparePasteEditsForFile"];function Uue(e,t=dle(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 wQe(e),c,_,u=0,g=e.getCancellationToken?new DQe(e.getCancellationToken()):IQe,m=e.getCurrentDirectory();Ure((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function h(it){e.log&&e.log(it)}let S=mk(e),T=fu(S),x=Dle({useCaseSensitiveFileNames:()=>S,getCurrentDirectory:()=>m,getProgram:O,fileExists:Vs(e,e.fileExists),readFile:Vs(e,e.readFile),getDocumentPositionMapper:Vs(e,e.getDocumentPositionMapper),getSourceFileLike:Vs(e,e.getSourceFileLike),log:h});function I(it){let Tt=c.getSourceFile(it);if(!Tt){let Ut=new Error(`Could not find source file: '${it}'.`);throw Ut.ProgramFiles=c.getSourceFiles().map(Ot=>Ot.fileName),Ut}return Tt}function D(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():E()}function E(){var it,Tt,Ut;if(w.assert(s!==2),e.getProjectVersion){let ms=e.getProjectVersion();if(ms){if(_===ms&&!((it=e.hasChangedAutomaticTypeDirectiveNames)!=null&&it.call(e)))return;_=ms}}let Ot=e.getTypeRootsVersion?e.getTypeRootsVersion():0;u!==Ot&&(h("TypeRoots version has changed; provide new program"),c=void 0,u=Ot);let vr=e.getScriptFileNames().slice(),ar=e.getCompilationSettings()||VL(),Gt=e.hasInvalidatedResolutions||ey,dr=Vs(e,e.hasInvalidatedLibResolutions)||ey,Sr=Vs(e,e.hasChangedAutomaticTypeDirectiveNames),kr=(Tt=e.getProjectReferences)==null?void 0:Tt.call(e),tr,si={getSourceFile:Zo,getSourceFileByPath:Cf,getCancellationToken:()=>g,getCanonicalFileName:T,useCaseSensitiveFileNames:()=>S,getNewLine:()=>nv(ar),getDefaultLibFileName:ms=>e.getDefaultLibFileName(ms),writeFile:to,getCurrentDirectory:()=>m,fileExists:ms=>e.fileExists(ms),readFile:ms=>e.readFile&&e.readFile(ms),getSymlinkCache:Vs(e,e.getSymlinkCache),realpath:Vs(e,e.realpath),directoryExists:ms=>Vd(ms,e),getDirectories:ms=>e.getDirectories?e.getDirectories(ms):[],readDirectory:(ms,Ys,Ba,La,Ht)=>(w.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(ms,Ys,Ba,La,Ht)),onReleaseOldSourceFile:Oa,onReleaseParsedCommandLine:il,hasInvalidatedResolutions:Gt,hasInvalidatedLibResolutions:dr,hasChangedAutomaticTypeDirectiveNames:Sr,trace:Vs(e,e.trace),resolveModuleNames:Vs(e,e.resolveModuleNames),getModuleResolutionCache:Vs(e,e.getModuleResolutionCache),createHash:Vs(e,e.createHash),resolveTypeReferenceDirectives:Vs(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:Vs(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:Vs(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:Vs(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:Vs(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:xi,jsDocParsingMode:e.jsDocParsingMode,getGlobalTypingsCacheLocation:Vs(e,e.getGlobalTypingsCacheLocation)},zs=si.getSourceFile,{getSourceFileWithCache:ta}=hE(si,ms=>ko(ms,m,T),(...ms)=>zs.call(si,...ms));si.getSourceFile=ta,(Ut=e.setCompilerHost)==null||Ut.call(e,si);let Os={useCaseSensitiveFileNames:S,fileExists:ms=>si.fileExists(ms),readFile:ms=>si.readFile(ms),directoryExists:ms=>si.directoryExists(ms),getDirectories:ms=>si.getDirectories(ms),realpath:si.realpath,readDirectory:(...ms)=>si.readDirectory(...ms),trace:si.trace,getCurrentDirectory:si.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:to},qc=t.getKeyForCompilationSettings(ar),uc=new Set;if(_V(c,vr,ar,(ms,Ys)=>e.getScriptVersion(Ys),ms=>si.fileExists(ms),Gt,dr,Sr,xi,kr)){si=void 0,tr=void 0,uc=void 0;return}c=JM({rootNames:vr,options:ar,host:si,oldProgram:c,projectReferences:kr}),si=void 0,tr=void 0,uc=void 0,x.clearCache(),c.getTypeChecker();return;function xi(ms){let Ys=ko(ms,m,T),Ba=tr?.get(Ys);if(Ba!==void 0)return Ba||void 0;let La=e.getParsedCommandLine?e.getParsedCommandLine(ms):bs(ms);return(tr||(tr=new Map)).set(Ys,La||!1),La}function bs(ms){let Ys=Zo(ms,100);if(Ys)return Ys.path=ko(ms,m,T),Ys.resolvedPath=Ys.path,Ys.originalFileName=Ys.fileName,yM(Ys,Os,as(Yn(ms),m),void 0,as(ms,m))}function il(ms,Ys,Ba){var La;e.getParsedCommandLine?(La=e.onReleaseParsedCommandLine)==null||La.call(e,ms,Ys,Ba):Ys&&Qo(Ys.sourceFile,Ba)}function Qo(ms,Ys){let Ba=t.getKeyForCompilationSettings(Ys);t.releaseDocumentWithKey(ms.resolvedPath,Ba,ms.scriptKind,ms.impliedNodeFormat)}function Oa(ms,Ys,Ba,La){var Ht;Qo(ms,Ys),(Ht=e.onReleaseOldSourceFile)==null||Ht.call(e,ms,Ys,Ba,La)}function Zo(ms,Ys,Ba,La){return Cf(ms,ko(ms,m,T),Ys,Ba,La)}function Cf(ms,Ys,Ba,La,Ht){w.assert(si,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");let fo=e.getScriptSnapshot(ms);if(!fo)return;let sl=Hq(ms,e),wc=e.getScriptVersion(ms);if(!Ht){let cu=c&&c.getSourceFileByPath(Ys);if(cu){if(sl===cu.scriptKind||uc.has(cu.resolvedPath))return t.updateDocumentWithKey(ms,Ys,e,qc,fo,wc,sl,Ba);t.releaseDocumentWithKey(cu.resolvedPath,t.getKeyForCompilationSettings(c.getCompilerOptions()),cu.scriptKind,cu.impliedNodeFormat),uc.add(cu.resolvedPath)}}return t.acquireDocumentWithKey(ms,Ys,e,qc,fo,wc,sl,Ba)}}function O(){if(s===2){w.assert(c===void 0);return}return D(),c}function F(){var it;return(it=e.getPackageJsonAutoImportProvider)==null?void 0:it.call(e)}function B(it,Tt){let Ut=c.getTypeChecker(),Ot=vr();if(!Ot)return!1;for(let Gt of it)for(let dr of Gt.references){let Sr=ar(dr);if(w.assertIsDefined(Sr),Tt.has(dr)||jo.isDeclarationOfSymbol(Sr,Ot)){Tt.add(dr),dr.isDefinition=!0;let kr=fL(dr,x,Vs(e,e.fileExists));kr&&Tt.add(kr)}else dr.isDefinition=!1}return!0;function vr(){for(let Gt of it)for(let dr of Gt.references){if(Tt.has(dr)){let kr=ar(dr);return w.assertIsDefined(kr),Ut.getSymbolAtLocation(kr)}let Sr=fL(dr,x,Vs(e,e.fileExists));if(Sr&&Tt.has(Sr)){let kr=ar(Sr);if(kr)return Ut.getSymbolAtLocation(kr)}}}function ar(Gt){let dr=c.getSourceFile(Gt.fileName);if(!dr)return;let Sr=W_(dr,Gt.textSpan.start);return jo.Core.getAdjustedNode(Sr,{use:jo.FindReferencesUse.References})}}function G(){if(c){let it=t.getKeyForCompilationSettings(c.getCompilerOptions());or(c.getSourceFiles(),Tt=>t.releaseDocumentWithKey(Tt.resolvedPath,it,Tt.scriptKind,Tt.impliedNodeFormat)),c=void 0}}function $(){G(),e=void 0}function K(it){return D(),c.getSyntacticDiagnostics(I(it),g).slice()}function U(it){D();let Tt=I(it),Ut=c.getSemanticDiagnostics(Tt,g);if(!K_(c.getCompilerOptions()))return Ut.slice();let Ot=c.getDeclarationDiagnostics(Tt,g);return[...Ut,...Ot]}function me(it,Tt){D();let Ut=I(it),Ot=c.getCompilerOptions();if(oI(Ut,Ot,c)||!CA(Ut,Ot)||c.getCachedSemanticDiagnostics(Ut))return;let vr=te(Ut,Tt);if(!vr)return;let ar=kB(vr.map(dr=>Uc(dr.getFullStart(),dr.getEnd())));return{diagnostics:c.getSemanticDiagnostics(Ut,g,vr).slice(),spans:ar}}function te(it,Tt){let Ut=[],Ot=kB(Tt.map(vr=>mv(vr)));for(let vr of Ot){let ar=V(it,vr);if(!ar)return;Ut.push(...ar)}if(Ut.length)return Ut}function V(it,Tt){if(TB(Tt,it))return;let Ut=wE(it,mc(Tt))||it,Ot=gr(Ut,ar=>hee(ar,Tt)),vr=[];if(ne(Tt,Ot,vr),it.end===Tt.start+Tt.length&&vr.push(it.endOfFileToken),!pt(vr,Mi))return vr}function ne(it,Tt,Ut){return ie(Tt,it)?TB(it,Tt)?(oe(Tt,Ut),!0):oC(Tt)?de(it,Tt,Ut):ii(Tt)?ye(it,Tt,Ut):(oe(Tt,Ut),!0):!1}function ie(it,Tt){let Ut=Tt.start+Tt.length;return it.pos<Ut&&it.end>Tt.start}function oe(it,Tt){for(;it.parent&&!kne(it);)it=it.parent;Tt.push(it)}function de(it,Tt,Ut){let Ot=[];return Tt.statements.filter(ar=>ne(it,ar,Ot)).length===Tt.statements.length?(oe(Tt,Ut),!0):(Ut.push(...Ot),!1)}function ye(it,Tt,Ut){var Ot,vr,ar;let Gt=kr=>See(kr,it);if((Ot=Tt.modifiers)!=null&&Ot.some(Gt)||Tt.name&&Gt(Tt.name)||(vr=Tt.typeParameters)!=null&&vr.some(Gt)||(ar=Tt.heritageClauses)!=null&&ar.some(Gt))return oe(Tt,Ut),!0;let dr=[];return Tt.members.filter(kr=>ne(it,kr,dr)).length===Tt.members.length?(oe(Tt,Ut),!0):(Ut.push(...dr),!1)}function H(it){return D(),T$(I(it),c,g)}function ve(){return D(),[...c.getOptionsDiagnostics(g),...c.getGlobalDiagnostics(g)]}function Ge(it,Tt,Ut=cd,Ot){let vr={...Ut,includeCompletionsForModuleExports:Ut.includeCompletionsForModuleExports||Ut.includeExternalModuleExports,includeCompletionsWithInsertText:Ut.includeCompletionsWithInsertText||Ut.includeInsertTextCompletions};return D(),mC.getCompletionsAtPosition(e,c,h,I(it),Tt,vr,Ut.triggerCharacter,Ut.triggerKind,g,Ot&&yl.getFormatContext(Ot,e),Ut.includeSymbol)}function De(it,Tt,Ut,Ot,vr,ar=cd,Gt){return D(),mC.getCompletionEntryDetails(c,h,I(it),Tt,{name:Ut,source:vr,data:Gt},e,Ot&&yl.getFormatContext(Ot,e),ar,g)}function se(it,Tt,Ut,Ot,vr=cd){return D(),mC.getCompletionEntrySymbol(c,h,I(it),Tt,{name:Ut,source:Ot},e,vr)}function xe(it,Tt){D();let Ut=I(it),Ot=W_(Ut,Tt);if(Ot===Ut)return;let vr=c.getTypeChecker(),ar=ct(Ot),Gt=MQe(ar,vr);if(!Gt||vr.isUnknownSymbol(Gt)){let si=le(Ut,ar,Tt)?vr.getTypeAtLocation(ar):void 0;return si&&{kind:"",kindModifiers:"",textSpan:k_(ar,Ut),displayParts:vr.runWithCancellationToken(g,zs=>u3(zs,si,Jk(ar))),documentation:si.symbol?si.symbol.getDocumentationComment(vr):void 0,tags:si.symbol?si.symbol.getJsDocTags(vr):void 0}}let{symbolKind:dr,displayParts:Sr,documentation:kr,tags:tr}=vr.runWithCancellationToken(g,si=>yv.getSymbolDisplayPartsDocumentationAndSymbolKind(si,Gt,Ut,Jk(ar),ar));return{kind:dr,kindModifiers:yv.getSymbolModifiers(vr,Gt),textSpan:k_(ar,Ut),displayParts:Sr,documentation:kr,tags:tr}}function _e(it,Tt){return D(),oQ.preparePasteEdits(I(it),Tt,c.getTypeChecker())}function tt(it,Tt){return D(),cQ.pasteEditsProvider(I(it.targetFile),it.pastedText,it.pasteLocations,it.copiedFrom?{file:I(it.copiedFrom.file),range:it.copiedFrom.range}:void 0,e,it.preferences,yl.getFormatContext(Tt,e),g)}function ct(it){return OS(it.parent)&&it.pos===it.parent.pos?it.parent.expression:fI(it.parent)&&it.pos===it.parent.pos||zw(it.parent)&&it.parent.name===it||Qd(it.parent)?it.parent:it}function le(it,Tt,Ut){switch(Tt.kind){case 80:return Tt.flags&16777216&&!un(Tt)&&(Tt.parent.kind===171&&Tt.parent.name===Tt||gr(Tt,Ot=>Ot.kind===169))?!1:!dq(Tt)&&!mq(Tt)&&!vd(Tt.parent);case 211:case 166:return!pv(it,Ut);case 110:case 197:case 108:case 202:return!0;case 236:return zw(Tt);default:return!1}}function Je(it,Tt,Ut,Ot){return D(),aD.getDefinitionAtPosition(c,I(it),Tt,Ut,Ot)}function ee(it,Tt){return D(),aD.getDefinitionAndBoundSpan(c,I(it),Tt)}function Ne(it,Tt){return D(),aD.getTypeDefinitionAtPosition(c.getTypeChecker(),I(it),Tt)}function Ie(it,Tt){return D(),jo.getImplementationsAtPosition(c,g,c.getSourceFiles(),I(it),Tt)}function Ce(it,Tt,Ut){let Ot=na(it);w.assert(Ut.some(Gt=>na(Gt)===Ot)),D();let vr=Vi(Ut,Gt=>c.getSourceFile(Gt)),ar=I(it);return AL.getDocumentHighlights(c,g,ar,Tt,vr)}function Ve(it,Tt,Ut,Ot,vr){D();let ar=I(it),Gt=eL(W_(ar,Tt));if(pj.nodeIsEligibleForRename(Gt))if(je(Gt)&&(Hd(Gt.parent)||jS(Gt.parent))&&Yw(Gt.escapedText)){let{openingElement:dr,closingElement:Sr}=Gt.parent.parent;return[dr,Sr].map(kr=>{let tr=k_(kr.tagName,ar);return{fileName:ar.fileName,textSpan:tr,...jo.toContextSpan(tr,ar,kr.parent)}})}else{let dr=Tf(ar,vr??cd),Sr=typeof vr=="boolean"?vr:vr?.providePrefixAndSuffixTextForRename;return zt(Gt,Tt,{findInStrings:Ut,findInComments:Ot,providePrefixAndSuffixTextForRename:Sr,use:jo.FindReferencesUse.Rename},(kr,tr,si)=>jo.toRenameLocation(kr,tr,si,Sr||!1,dr))}}function bt(it,Tt){return D(),zt(W_(I(it),Tt),Tt,{use:jo.FindReferencesUse.References},jo.toReferenceEntry)}function zt(it,Tt,Ut,Ot){D();let vr=Ut&&Ut.use===jo.FindReferencesUse.Rename?c.getSourceFiles().filter(ar=>!c.isSourceFileDefaultLibrary(ar)):c.getSourceFiles();return jo.findReferenceOrRenameEntries(c,g,vr,it,Tt,Ut,Ot)}function ur(it,Tt){return D(),jo.findReferencedSymbols(c,g,c.getSourceFiles(),I(it),Tt)}function Or(it){return D(),jo.Core.getReferencesForFileName(it,c,c.getSourceFiles()).map(jo.toReferenceEntry)}function _t(it,Tt,Ut,Ot=!1,vr=!1){D();let ar=Ut?[I(Ut)]:c.getSourceFiles();return $xe(ar,c.getTypeChecker(),g,it,Tt,Ot,vr)}function $t(it,Tt,Ut){D();let Ot=I(it),vr=e.getCustomTransformers&&e.getCustomTransformers();return soe(c,Ot,!!Tt,g,vr,Ut)}function Hr(it,Tt,{triggerReason:Ut}=cd){D();let Ot=I(it);return J3.getSignatureHelpItems(c,Ot,Tt,Ut,g)}function hi(it){return o.getCurrentSourceFile(it)}function _s(it,Tt,Ut){let Ot=o.getCurrentSourceFile(it),vr=W_(Ot,Tt);if(vr===Ot)return;switch(vr.kind){case 211:case 166:case 11:case 97:case 112:case 106:case 108:case 110:case 197:case 80:break;default:return}let ar=vr;for(;;)if(UI(ar)||Tce(ar))ar=ar.parent;else if(hq(ar))if(ar.parent.parent.kind===267&&ar.parent.parent.body===ar.parent)ar=ar.parent.parent.name;else break;else break;return Uc(ar.getStart(),vr.getEnd())}function At(it,Tt){let Ut=o.getCurrentSourceFile(it);return Y$.spanInSourceFileAtLocation(Ut,Tt)}function zn(it){return Xxe(o.getCurrentSourceFile(it),g)}function ns(it){return Yxe(o.getCurrentSourceFile(it),g)}function Rn(it,Tt,Ut){return D(),(Ut||"original")==="2020"?TCe(c,g,I(it),Tt):fle(c.getTypeChecker(),g,I(it),c.getClassifiableNames(),Tt)}function hn(it,Tt,Ut){return D(),(Ut||"original")==="original"?d$(c.getTypeChecker(),g,I(it),c.getClassifiableNames(),Tt):Bue(c,g,I(it),Tt)}function ui(it,Tt){return ple(g,o.getCurrentSourceFile(it),Tt)}function Ue(it,Tt){return m$(g,o.getCurrentSourceFile(it),Tt)}function ht(it){let Tt=o.getCurrentSourceFile(it);return qH.collectElements(Tt,g)}let sr=new Map(Object.entries({19:20,21:22,23:24,32:30}));sr.forEach((it,Tt)=>sr.set(it.toString(),Number(Tt)));function Zr(it,Tt){let Ut=o.getCurrentSourceFile(it),Ot=$I(Ut,Tt),vr=Ot.getStart(Ut)===Tt?sr.get(Ot.kind.toString()):void 0,ar=vr&&_o(Ot.parent,vr,Ut);return ar?[k_(Ot,Ut),k_(ar,Ut)].sort((Gt,dr)=>Gt.start-dr.start):qe}function Zn(it,Tt,Ut){let Ot=To(),vr=C3(Ut),ar=o.getCurrentSourceFile(it);h("getIndentationAtPosition: getCurrentSourceFile: "+(To()-Ot)),Ot=To();let Gt=yl.SmartIndenter.getIndentation(Tt,ar,vr);return h("getIndentationAtPosition: computeIndentation : "+(To()-Ot)),Gt}function Xn(it,Tt,Ut,Ot){let vr=o.getCurrentSourceFile(it);return yl.formatSelection(Tt,Ut,vr,yl.getFormatContext(C3(Ot),e))}function Pi(it,Tt){return yl.formatDocument(o.getCurrentSourceFile(it),yl.getFormatContext(C3(Tt),e))}function Rs(it,Tt,Ut,Ot){let vr=o.getCurrentSourceFile(it),ar=yl.getFormatContext(C3(Ot),e);if(!pv(vr,Tt))switch(Ut){case"{":return yl.formatOnOpeningCurly(Tt,vr,ar);case"}":return yl.formatOnClosingCurly(Tt,vr,ar);case";":return yl.formatOnSemicolon(Tt,vr,ar);case`
`:return yl.formatOnEnter(Tt,vr,ar)}return[]}function oa(it,Tt,Ut,Ot,vr,ar=cd){D();let Gt=I(it),dr=Uc(Tt,Ut),Sr=yl.getFormatContext(vr,e);return ga(nS(Ot,u0,Po),kr=>(g.throwIfCancellationRequested(),Vu.getFixes({errorCode:kr,sourceFile:Gt,span:dr,program:c,host:e,cancellationToken:g,formatContext:Sr,preferences:ar})))}function xr(it,Tt,Ut,Ot=cd){D(),w.assert(it.type==="file");let vr=I(it.fileName),ar=yl.getFormatContext(Ut,e);return Vu.getAllFixes({fixId:Tt,sourceFile:vr,program:c,host:e,cancellationToken:g,formatContext:ar,preferences:Ot})}function xs(it,Tt,Ut=cd){D(),w.assert(it.type==="file");let Ot=I(it.fileName);if(s2(Ot))return qe;let vr=yl.getFormatContext(Tt,e),ar=it.mode??(it.skipDestructiveCodeActions?"SortAndCombine":"All");return d1.organizeImports(Ot,vr,e,c,Ut,ar)}function Ye(it,Tt,Ut,Ot=cd){return gle(O(),it,Tt,e,yl.getFormatContext(Ut,e),Ot,x)}function Nt(it,Tt){let Ut=typeof it=="string"?Tt:it;return ks(Ut)?Promise.all(Ut.map(Ot=>ae(Ot))):ae(Ut)}function ae(it){let Tt=Ut=>ko(Ut,m,T);return w.assertEqual(it.type,"install package"),e.installPackage?e.installPackage({fileName:Tt(it.file),packageName:it.packageName}):Promise.reject("Host does not implement `installPackage`")}function lt(it,Tt,Ut,Ot){let vr=Ot?yl.getFormatContext(Ot,e).options:void 0;return p1.getDocCommentTemplateAtPosition(yy(e,vr),o.getCurrentSourceFile(it),Tt,Ut)}function Y(it,Tt,Ut){if(Ut===60)return!1;let Ot=o.getCurrentSourceFile(it);if(iC(Ot,Tt))return!1;if(Pce(Ot,Tt))return Ut===123;if(kq(Ot,Tt))return!1;switch(Ut){case 39:case 34:case 96:return!pv(Ot,Tt)}return!0}function Ae(it,Tt){let Ut=o.getCurrentSourceFile(it),Ot=Cl(Tt,Ut);if(!Ot)return;let vr=Ot.kind===32&&Hd(Ot.parent)?Ot.parent.parent:N2(Ot)&&Wm(Ot.parent)?Ot.parent:void 0;if(vr&&Mt(vr))return{newText:`</${vr.openingElement.tagName.getText(Ut)}>`};let ar=Ot.kind===32&&wd(Ot.parent)?Ot.parent.parent:N2(Ot)&&Hb(Ot.parent)?Ot.parent:void 0;if(ar&&Ke(ar))return{newText:"</>"}}function Xe(it,Tt){let Ut=o.getCurrentSourceFile(it),Ot=Cl(Tt,Ut);if(!Ot||Ot.parent.kind===307)return;let vr="[a-zA-Z0-9:\\-\\._$]*";if(Hb(Ot.parent.parent)){let ar=Ot.parent.parent.openingFragment,Gt=Ot.parent.parent.closingFragment;if(s2(ar)||s2(Gt))return;let dr=ar.getStart(Ut)+1,Sr=Gt.getStart(Ut)+2;return Tt!==dr&&Tt!==Sr?void 0:{ranges:[{start:dr,length:0},{start:Sr,length:0}],wordPattern:vr}}else{let ar=gr(Ot.parent,ta=>!!(Hd(ta)||jS(ta)));if(!ar)return;w.assert(Hd(ar)||jS(ar),"tag should be opening or closing element");let Gt=ar.parent.openingElement,dr=ar.parent.closingElement,Sr=Gt.tagName.getStart(Ut),kr=Gt.tagName.end,tr=dr.tagName.getStart(Ut),si=dr.tagName.end;return Sr===Gt.getStart(Ut)||tr===dr.getStart(Ut)||kr===Gt.getEnd()||si===dr.getEnd()||!(Sr<=Tt&&Tt<=kr||tr<=Tt&&Tt<=si)||Gt.tagName.getText(Ut)!==dr.tagName.getText(Ut)?void 0:{ranges:[{start:Sr,length:kr-Sr},{start:tr,length:si-tr}],wordPattern:vr}}}function st(it,Tt){return{lineStarts:it.getLineStarts(),firstLine:it.getLineAndCharacterOfPosition(Tt.pos).line,lastLine:it.getLineAndCharacterOfPosition(Tt.end).line}}function Dt(it,Tt,Ut){let Ot=o.getCurrentSourceFile(it),vr=[],{lineStarts:ar,firstLine:Gt,lastLine:dr}=st(Ot,Tt),Sr=Ut||!1,kr=Number.MAX_VALUE,tr=new Map,si=new RegExp(/\S/),zs=rL(Ot,ar[Gt]),ta=zs?"{/*":"//";for(let Os=Gt;Os<=dr;Os++){let qc=Ot.text.substring(ar[Os],Ot.getLineEndOfPosition(ar[Os])),uc=si.exec(qc);uc&&(kr=Math.min(kr,uc.index),tr.set(Os.toString(),uc.index),qc.substr(uc.index,ta.length)!==ta&&(Sr=Ut===void 0||Ut))}for(let Os=Gt;Os<=dr;Os++){if(Gt!==dr&&ar[Os]===Tt.end)continue;let qc=tr.get(Os.toString());qc!==void 0&&(zs?vr.push(...Fe(it,{pos:ar[Os]+kr,end:Ot.getLineEndOfPosition(ar[Os])},Sr,zs)):Sr?vr.push({newText:ta,span:{length:0,start:ar[Os]+kr}}):Ot.text.substr(ar[Os]+qc,ta.length)===ta&&vr.push({newText:"",span:{length:ta.length,start:ar[Os]+qc}}))}return vr}function Fe(it,Tt,Ut,Ot){var vr;let ar=o.getCurrentSourceFile(it),Gt=[],{text:dr}=ar,Sr=!1,kr=Ut||!1,tr=[],{pos:si}=Tt,zs=Ot!==void 0?Ot:rL(ar,si),ta=zs?"{/*":"/*",Os=zs?"*/}":"*/",qc=zs?"\\{\\/\\*":"\\/\\*",uc=zs?"\\*\\/\\}":"\\*\\/";for(;si<=Tt.end;){let Bc=dr.substr(si,ta.length)===ta?ta.length:0,xi=pv(ar,si+Bc);if(xi)zs&&(xi.pos--,xi.end++),tr.push(xi.pos),xi.kind===3&&tr.push(xi.end),Sr=!0,si=xi.end+1;else{let bs=dr.substring(si,Tt.end).search(`(${qc})|(${uc})`);kr=Ut!==void 0?Ut:kr||!Bce(dr,si,bs===-1?Tt.end:si+bs),si=bs===-1?Tt.end+1:si+bs+Os.length}}if(kr||!Sr){((vr=pv(ar,Tt.pos))==null?void 0:vr.kind)!==2&&s0(tr,Tt.pos,Po),s0(tr,Tt.end,Po);let Bc=tr[0];dr.substr(Bc,ta.length)!==ta&&Gt.push({newText:ta,span:{length:0,start:Bc}});for(let xi=1;xi<tr.length-1;xi++)dr.substr(tr[xi]-Os.length,Os.length)!==Os&&Gt.push({newText:Os,span:{length:0,start:tr[xi]}}),dr.substr(tr[xi],ta.length)!==ta&&Gt.push({newText:ta,span:{length:0,start:tr[xi]}});Gt.length%2!==0&&Gt.push({newText:Os,span:{length:0,start:tr[tr.length-1]}})}else for(let Bc of tr){let xi=Bc-Os.length>0?Bc-Os.length:0,bs=dr.substr(xi,Os.length)===Os?Os.length:0;Gt.push({newText:"",span:{length:ta.length,start:Bc-bs}})}return Gt}function St(it,Tt){let Ut=o.getCurrentSourceFile(it),{firstLine:Ot,lastLine:vr}=st(Ut,Tt);return Ot===vr&&Tt.pos!==Tt.end?Fe(it,Tt,!0):Dt(it,Tt,!0)}function vt(it,Tt){let Ut=o.getCurrentSourceFile(it),Ot=[],{pos:vr}=Tt,{end:ar}=Tt;vr===ar&&(ar+=rL(Ut,vr)?2:1);for(let Gt=vr;Gt<=ar;Gt++){let dr=pv(Ut,Gt);if(dr){switch(dr.kind){case 2:Ot.push(...Dt(it,{end:dr.end,pos:dr.pos+1},!1));break;case 3:Ot.push(...Fe(it,{end:dr.end,pos:dr.pos+1},!1))}Gt=dr.end+1}}return Ot}function Mt({openingElement:it,closingElement:Tt,parent:Ut}){return!e1(it.tagName,Tt.tagName)||Wm(Ut)&&e1(it.tagName,Ut.openingElement.tagName)&&Mt(Ut)}function Ke({closingFragment:it,parent:Tt}){return!!(it.flags&262144)||Hb(Tt)&&Ke(Tt)}function Vt(it,Tt,Ut){let Ot=o.getCurrentSourceFile(it),vr=yl.getRangeOfEnclosingComment(Ot,Tt);return vr&&(!Ut||vr.kind===3)?mv(vr):void 0}function on(it,Tt){D();let Ut=I(it);g.throwIfCancellationRequested();let Ot=Ut.text,vr=[];if(Tt.length>0&&!Sr(Ut.fileName)){let kr=Gt(),tr;for(;tr=kr.exec(Ot);){g.throwIfCancellationRequested();let si=3;w.assert(tr.length===Tt.length+si);let zs=tr[1],ta=tr.index+zs.length;if(!pv(Ut,ta))continue;let Os;for(let uc=0;uc<Tt.length;uc++)tr[uc+si]&&(Os=Tt[uc]);if(Os===void 0)return w.fail();if(dr(Ot.charCodeAt(ta+Os.text.length)))continue;let qc=tr[2];vr.push({descriptor:Os,message:qc,position:ta})}}return vr;function ar(kr){return kr.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Gt(){let kr=/(?:\/{2,}\s*)/.source,tr=/(?:\/\*+\s*)/.source,zs="("+/(?:^(?:\s|\*)*)/.source+"|"+kr+"|"+tr+")",ta="(?:"+hr(Tt,xi=>"("+ar(xi.text)+")").join("|")+")",Os=/(?:$|\*\/)/.source,qc=/(?:.*?)/.source,uc="("+ta+qc+")",Bc=zs+uc+Os;return new RegExp(Bc,"gim")}function dr(kr){return kr>=97&&kr<=122||kr>=65&&kr<=90||kr>=48&&kr<=57}function Sr(kr){return kr.includes("/node_modules/")}}function Pe(it,Tt,Ut){return D(),pj.getRenameInfo(c,I(it),Tt,Ut||{})}function kt(it,Tt,Ut,Ot,vr,ar){let[Gt,dr]=typeof Tt=="number"?[Tt,void 0]:[Tt.pos,Tt.end];return{file:it,startPosition:Gt,endPosition:dr,program:O(),host:e,formatContext:yl.getFormatContext(Ot,e),cancellationToken:g,preferences:Ut,triggerReason:vr,kind:ar}}function pe(it,Tt,Ut){return{file:it,program:O(),host:e,span:Tt,preferences:Ut,cancellationToken:g}}function j(it,Tt){return QH.getSmartSelectionRange(Tt,o.getCurrentSourceFile(it))}function Re(it,Tt,Ut=cd,Ot,vr,ar){D();let Gt=I(it);return lC.getApplicableRefactors(kt(Gt,Tt,Ut,cd,Ot,vr),ar)}function q(it,Tt,Ut=cd){D();let Ot=I(it),vr=w.checkDefined(c.getSourceFiles()),ar=kA(it),Gt=k3(kt(Ot,Tt,Ut,cd)),dr=aue(Gt?.all),Sr=Vi(vr,kr=>{let tr=kA(kr.fileName);return!c?.isSourceFileFromExternalLibrary(Ot)&&!(Ot===I(kr.fileName)||ar===".ts"&&tr===".d.ts"||ar===".d.ts"&&Yi(fl(kr.fileName),"lib.")&&tr===".d.ts")&&(ar===tr||(ar===".tsx"&&tr===".ts"||ar===".jsx"&&tr===".js")&&!dr)?kr.fileName:void 0});return{newFileName:sue(Ot,c,e,Gt),files:Sr}}function yt(it,Tt,Ut,Ot,vr,ar=cd,Gt){D();let dr=I(it);return lC.getEditsForRefactor(kt(dr,Ut,ar,Tt),Ot,vr,Gt)}function jt(it,Tt){return Tt===0?{line:0,character:0}:x.toLineColumnOffset(it,Tt)}function we(it,Tt){D();let Ut=uC.resolveCallHierarchyDeclaration(c,W_(I(it),Tt));return Ut&&s$(Ut,Ot=>uC.createCallHierarchyItem(c,Ot))}function ut(it,Tt){D();let Ut=I(it),Ot=a$(uC.resolveCallHierarchyDeclaration(c,Tt===0?Ut:W_(Ut,Tt)));return Ot?uC.getIncomingCalls(c,Ot,g):[]}function Qt(it,Tt){D();let Ut=I(it),Ot=a$(uC.resolveCallHierarchyDeclaration(c,Tt===0?Ut:W_(Ut,Tt)));return Ot?uC.getOutgoingCalls(c,Ot):[]}function en(it,Tt,Ut=cd){D();let Ot=I(it);return GH.provideInlayHints(pe(Ot,Tt,Ut))}function Pr(it,Tt,Ut,Ot,vr){return UH.mapCode(o.getCurrentSourceFile(it),Tt,Ut,e,yl.getFormatContext(Ot,e),vr)}let $r={dispose:$,cleanupSemanticCache:G,getSyntacticDiagnostics:K,getSemanticDiagnostics:U,getRegionSemanticDiagnostics:me,getSuggestionDiagnostics:H,getCompilerOptionsDiagnostics:ve,getSyntacticClassifications:ui,getSemanticClassifications:Rn,getEncodedSyntacticClassifications:Ue,getEncodedSemanticClassifications:hn,getCompletionsAtPosition:Ge,getCompletionEntryDetails:De,getCompletionEntrySymbol:se,getSignatureHelpItems:Hr,getQuickInfoAtPosition:xe,getDefinitionAtPosition:Je,getDefinitionAndBoundSpan:ee,getImplementationAtPosition:Ie,getTypeDefinitionAtPosition:Ne,getReferencesAtPosition:bt,findReferences:ur,getFileReferences:Or,getDocumentHighlights:Ce,getNameOrDottedNameSpan:_s,getBreakpointStatementAtPosition:At,getNavigateToItems:_t,getRenameInfo:Pe,getSmartSelectionRange:j,findRenameLocations:Ve,getNavigationBarItems:zn,getNavigationTree:ns,getOutliningSpans:ht,getTodoComments:on,getBraceMatchingAtPosition:Zr,getIndentationAtPosition:Zn,getFormattingEditsForRange:Xn,getFormattingEditsForDocument:Pi,getFormattingEditsAfterKeystroke:Rs,getDocCommentTemplateAtPosition:lt,isValidBraceCompletionAtPosition:Y,getJsxClosingTagAtPosition:Ae,getLinkedEditingRangeAtPosition:Xe,getSpanOfEnclosingComment:Vt,getCodeFixesAtPosition:oa,getCombinedCodeFix:xr,applyCodeActionCommand:Nt,organizeImports:xs,getEditsForFileRename:Ye,getEmitOutput:$t,getNonBoundSourceFile:hi,getProgram:O,getCurrentProgram:()=>c,getAutoImportProvider:F,updateIsDefinitionOfReferencedSymbols:B,getApplicableRefactors:Re,getEditsForRefactor:yt,getMoveToRefactoringFileSuggestions:q,toLineColumnOffset:jt,getSourceMapper:()=>x,clearSourceMapperCache:()=>x.clearCache(),prepareCallHierarchy:we,provideCallHierarchyIncomingCalls:ut,provideCallHierarchyOutgoingCalls:Qt,toggleLineComment:Dt,toggleMultilineComment:Fe,commentSelection:St,uncommentSelection:vt,provideInlayHints:en,getSupportedCodeFixes:Q$,preparePasteEditsForFile:_e,getPasteEdits:tt,mapCode:Pr};switch(s){case 0:break;case 1:FCe.forEach(it=>$r[it]=()=>{throw new Error(`LanguageService Operation: ${it} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:PQe.forEach(it=>$r[it]=()=>{throw new Error(`LanguageService Operation: ${it} not allowed in LanguageServiceMode.Syntactic`)});break;default:w.assertNever(s)}return $r}function X$(e){return e.nameTable||AQe(e),e.nameTable}function AQe(e){let t=e.nameTable=new Map;e.forEachChild(function n(i){if(je(i)&&!mq(i)&&i.escapedText||tp(i)&&EQe(i)){let s=aA(i);t.set(s,t.get(s)===void 0?i.pos:-1)}else if(ji(i)){let s=i.escapedText;t.set(s,t.get(s)===void 0?i.pos:-1)}if(Es(i,n),Lf(i))for(let s of i.jsDoc)Es(s,n)})}function EQe(e){return Cg(e)||e.parent.kind===283||RQe(e)||l4(e)}function I3(e){let t=NQe(e);return t&&(Sa(t.parent)||WS(t.parent))?t:void 0}function NQe(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===167)return VB(e.parent.parent)?e.parent.parent:void 0;case 80:return VB(e.parent)&&(e.parent.parent.kind===210||e.parent.parent.kind===292)&&e.parent.name===e?e.parent:void 0}}function MQe(e,t){let n=I3(e);if(n){let i=t.getContextualType(n.parent),s=i&&$L(n,t,i,!1);if(s&&s.length===1)return Ea(s)}return t.getSymbolAtLocation(e)}function $L(e,t,n,i){let s=o3(e.name);if(!s)return qe;if(!n.isUnion()){let _=n.getProperty(s);return _?[_]:qe}let o=Sa(e.parent)||WS(e.parent)?An(n.types,_=>!t.isTypeInvalidDueToUnionDiscriminant(_,e.parent)):n.types,c=Vi(o,_=>_.getProperty(s));if(i&&(c.length===0||c.length===n.types.length)){let _=n.getProperty(s);if(_)return[_]}return!o.length&&!c.length?Vi(n.types,_=>_.getProperty(s)):nS(c,u0)}function RQe(e){return e&&e.parent&&e.parent.kind===212&&e.parent.argumentExpression===e}function Vue(e){if(Al)return Bn(Yn(na(Al.getExecutingFilePath())),u6(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}Jre(CQe());function OCe(e,t,n){let i=[];n=w$(n,i);let s=ks(e)?e:[e],o=RM(void 0,void 0,A,n,s,t,!0);return o.diagnostics=Ki(o.diagnostics,i),o}var Y$={};nt(Y$,{spanInSourceFileAtLocation:()=>FQe});function FQe(e,t){if(e.isDeclarationFile)return;let n=ki(e,t),i=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(n.getStart(e)).line>i){let h=Cl(n.pos,e);if(!h||e.getLineAndCharacterOfPosition(h.getEnd()).line!==i)return;n=h}if(n.flags&33554432)return;return m(n);function s(h,S){let T=JS(h)?rS(h.modifiers,Rl):void 0,x=T?ha(e.text,T.end):h.getStart(e);return Uc(x,(S||h).getEnd())}function o(h,S){return s(h,KS(S,S.parent,e))}function c(h,S){return h&&i===e.getLineAndCharacterOfPosition(h.getStart(e)).line?m(h):m(S)}function _(h,S,T){if(h){let x=h.indexOf(S);if(x>=0){let I=x,D=x+1;for(;I>0&&T(h[I-1]);)I--;for(;D<h.length&&T(h[D]);)D++;return Uc(ha(e.text,h[I].pos),h[D-1].end)}}return s(S)}function u(h){return m(Cl(h.pos,e))}function g(h){return m(KS(h,h.parent,e))}function m(h){if(h){let{parent:H}=h;switch(h.kind){case 243:return T(h.declarationList.declarations[0]);case 260:case 172:case 171:return T(h);case 169:return I(h);case 262:case 174:case 173:case 177:case 178:case 176:case 218:case 219:return E(h);case 241:if(gS(h))return O(h);case 268:return F(h);case 299:return F(h.block);case 244:return s(h.expression);case 253:return s(h.getChildAt(0),h.expression);case 247:return o(h,h.expression);case 246:return m(h.statement);case 259:return s(h.getChildAt(0));case 245:return o(h,h.expression);case 256:return m(h.statement);case 252:case 251:return s(h.getChildAt(0),h.label);case 248:return G(h);case 249:return o(h,h.expression);case 250:return B(h);case 255:return o(h,h.expression);case 296:case 297:return m(h.statements[0]);case 258:return F(h.tryBlock);case 257:return s(h,h.expression);case 277:return s(h,h.expression);case 271:return s(h,h.moduleReference);case 272:return s(h,h.moduleSpecifier);case 278:return s(h,h.moduleSpecifier);case 267:if(gy(h)!==1)return;case 263:case 266:case 306:case 208:return s(h);case 254:return m(h.statement);case 170:return _(H.modifiers,h,Rl);case 206:case 207:return $(h);case 264:case 265:return;case 27:case 1:return c(Cl(h.pos,e));case 28:return u(h);case 19:return U(h);case 20:return me(h);case 24:return te(h);case 21:return V(h);case 22:return ne(h);case 59:return ie(h);case 32:case 30:return oe(h);case 117:return de(h);case 93:case 85:case 98:return g(h);case 165:return ye(h);default:if(dv(h))return K(h);if((h.kind===80||h.kind===230||h.kind===303||h.kind===304)&&dv(H))return s(h);if(h.kind===226){let{left:ve,operatorToken:Ge}=h;if(dv(ve))return K(ve);if(Ge.kind===64&&dv(h.parent))return s(h);if(Ge.kind===28)return m(ve)}if(Ud(h))switch(H.kind){case 246:return u(h);case 170:return m(h.parent);case 248:case 250:return s(h);case 226:if(h.parent.operatorToken.kind===28)return s(h);break;case 219:if(h.parent.body===h)return s(h);break}switch(h.parent.kind){case 303:if(h.parent.name===h&&!dv(h.parent.parent))return m(h.parent.initializer);break;case 216:if(h.parent.type===h)return g(h.parent.type);break;case 260:case 169:{let{initializer:ve,type:Ge}=h.parent;if(ve===h||Ge===h||ly(h.kind))return u(h);break}case 226:{let{left:ve}=h.parent;if(dv(ve)&&h!==ve)return u(h);break}default:if(Ns(h.parent)&&h.parent.type===h)return u(h)}return m(h.parent)}}function S(H){return au(H.parent)&&H.parent.declarations[0]===H?s(Cl(H.pos,e,H.parent),H):s(H)}function T(H){if(H.parent.parent.kind===249)return m(H.parent.parent);let ve=H.parent;if(Ws(H.name))return $(H.name);if(ik(H)&&H.initializer||ei(H,32)||ve.parent.kind===250)return S(H);if(au(H.parent)&&H.parent.declarations[0]!==H)return m(Cl(H.pos,e,H.parent))}function x(H){return!!H.initializer||H.dotDotDotToken!==void 0||ei(H,3)}function I(H){if(Ws(H.name))return $(H.name);if(x(H))return s(H);{let ve=H.parent,Ge=ve.parameters.indexOf(H);return w.assert(Ge!==-1),Ge!==0?I(ve.parameters[Ge-1]):m(ve.body)}}function D(H){return ei(H,32)||H.parent.kind===263&&H.kind!==176}function E(H){if(H.body)return D(H)?s(H):m(H.body)}function O(H){let ve=H.statements.length?H.statements[0]:H.getLastToken();return D(H.parent)?c(H.parent,ve):m(ve)}function F(H){switch(H.parent.kind){case 267:if(gy(H.parent)!==1)return;case 247:case 245:case 249:return c(H.parent,H.statements[0]);case 248:case 250:return c(Cl(H.pos,e,H.parent),H.statements[0])}return m(H.statements[0])}function B(H){if(H.initializer.kind===261){let ve=H.initializer;if(ve.declarations.length>0)return m(ve.declarations[0])}else return m(H.initializer)}function G(H){if(H.initializer)return B(H);if(H.condition)return s(H.condition);if(H.incrementor)return s(H.incrementor)}function $(H){let ve=or(H.elements,Ge=>Ge.kind!==232?Ge:void 0);return ve?m(ve):H.parent.kind===208?s(H.parent):S(H.parent)}function K(H){w.assert(H.kind!==207&&H.kind!==206);let ve=H.kind===209?H.elements:H.properties,Ge=or(ve,De=>De.kind!==232?De:void 0);return Ge?m(Ge):s(H.parent.kind===226?H.parent:H)}function U(H){switch(H.parent.kind){case 266:let ve=H.parent;return c(Cl(H.pos,e,H.parent),ve.members.length?ve.members[0]:ve.getLastToken(e));case 263:let Ge=H.parent;return c(Cl(H.pos,e,H.parent),Ge.members.length?Ge.members[0]:Ge.getLastToken(e));case 269:return c(H.parent.parent,H.parent.clauses[0])}return m(H.parent)}function me(H){switch(H.parent.kind){case 268:if(gy(H.parent.parent)!==1)return;case 266:case 263:return s(H);case 241:if(gS(H.parent))return s(H);case 299:return m(zo(H.parent.statements));case 269:let ve=H.parent,Ge=zo(ve.clauses);return Ge?m(zo(Ge.statements)):void 0;case 206:let De=H.parent;return m(zo(De.elements)||De);default:if(dv(H.parent)){let se=H.parent;return s(zo(se.properties)||se)}return m(H.parent)}}function te(H){switch(H.parent.kind){case 207:let ve=H.parent;return s(zo(ve.elements)||ve);default:if(dv(H.parent)){let Ge=H.parent;return s(zo(Ge.elements)||Ge)}return m(H.parent)}}function V(H){return H.parent.kind===246||H.parent.kind===213||H.parent.kind===214?u(H):H.parent.kind===217?g(H):m(H.parent)}function ne(H){switch(H.parent.kind){case 218:case 262:case 219:case 174:case 173:case 177:case 178:case 176:case 247:case 246:case 248:case 250:case 213:case 214:case 217:return u(H);default:return m(H.parent)}}function ie(H){return Ns(H.parent)||H.parent.kind===303||H.parent.kind===169?u(H):m(H.parent)}function oe(H){return H.parent.kind===216?g(H):m(H.parent)}function de(H){return H.parent.kind===246?o(H,H.parent.expression):m(H.parent)}function ye(H){return H.parent.kind===250?g(H):m(H.parent)}}}var uC={};nt(uC,{createCallHierarchyItem:()=>que,getIncomingCalls:()=>GQe,getOutgoingCalls:()=>ZQe,resolveCallHierarchyDeclaration:()=>UCe});function OQe(e){return(Ao(e)||ml(e))&&Gl(e)}function LCe(e){return ds(e)||oi(e)}function D3(e){return(Ao(e)||Lo(e)||ml(e))&&LCe(e.parent)&&e===e.parent.initializer&&je(e.parent.name)&&(!!(ny(e.parent)&2)||ds(e.parent))}function jCe(e){return Mi(e)||nl(e)||jc(e)||Ao(e)||gl(e)||ml(e)||Nc(e)||xc(e)||xd(e)||Mp(e)||X_(e)}function nD(e){return Mi(e)||nl(e)&&je(e.name)||jc(e)||gl(e)||Nc(e)||xc(e)||xd(e)||Mp(e)||X_(e)||OQe(e)||D3(e)}function WCe(e){return Mi(e)?e:Gl(e)?e.name:D3(e)?e.parent.name:w.checkDefined(e.modifiers&&On(e.modifiers,BCe))}function BCe(e){return e.kind===90}function zCe(e,t){let n=WCe(t);return n&&e.getSymbolAtLocation(n)}function LQe(e,t){if(Mi(t))return{text:t.fileName,pos:0,end:0};if((jc(t)||gl(t))&&!Gl(t)){let s=t.modifiers&&On(t.modifiers,BCe);if(s)return{text:"default",pos:s.getStart(),end:s.getEnd()}}if(Nc(t)){let s=t.getSourceFile(),o=ha(s.text,Mm(t).pos),c=o+6,_=e.getTypeChecker(),u=_.getSymbolAtLocation(t.parent);return{text:`${u?`${_.symbolToString(u,t.parent)} `:""}static {}`,pos:o,end:c}}let n=D3(t)?t.parent.name:w.checkDefined(vs(t),"Expected call hierarchy item to have a name"),i=je(n)?Ln(n):tp(n)?n.text:pa(n)&&tp(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=XU();i=Ow(o=>s.writeNode(4,t,t.getSourceFile(),o))}return{text:i,pos:n.getStart(),end:n.getEnd()}}function jQe(e){var t,n,i,s;if(D3(e))return ds(e.parent)&&ii(e.parent.parent)?ml(e.parent.parent)?(t=Q8(e.parent.parent))==null?void 0:t.getText():(n=e.parent.parent.name)==null?void 0:n.getText():Lm(e.parent.parent.parent.parent)&&je(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 177:case 178:case 174:return e.parent.kind===210?(i=Q8(e.parent))==null?void 0:i.getText():(s=vs(e.parent))==null?void 0:s.getText();case 262:case 263:case 267:if(Lm(e.parent)&&je(e.parent.parent.name))return e.parent.parent.name.getText()}}function JCe(e,t){if(t.body)return t;if(lc(t))return mh(t.parent);if(jc(t)||xc(t)){let n=zCe(e,t);return n&&n.valueDeclaration&&xo(n.valueDeclaration)&&n.valueDeclaration.body?n.valueDeclaration:void 0}return t}function GCe(e,t){let n=zCe(e,t),i;if(n&&n.declarations){let s=x8(n.declarations),o=hr(n.declarations,u=>({file:u.getSourceFile().fileName,pos:u.pos}));s.sort((u,g)=>wu(o[u].file,o[g].file)||o[u].pos-o[g].pos);let c=hr(s,u=>n.declarations[u]),_;for(let u of c)nD(u)&&((!_||_.parent!==u.parent||_.end!==u.pos)&&(i=jr(i,u)),_=u)}return i}function Z$(e,t){return Nc(t)?t:xo(t)?JCe(e,t)??GCe(e,t)??t:GCe(e,t)??t}function UCe(e,t){let n=e.getTypeChecker(),i=!1;for(;;){if(nD(t))return Z$(n,t);if(jCe(t)){let s=gr(t,nD);return s&&Z$(n,s)}if(Cg(t)){if(nD(t.parent))return Z$(n,t.parent);if(jCe(t.parent)){let s=gr(t.parent,nD);return s&&Z$(n,s)}return LCe(t.parent)&&t.parent.initializer&&D3(t.parent.initializer)?t.parent.initializer:void 0}if(lc(t))return nD(t.parent)?t.parent:void 0;if(t.kind===126&&Nc(t.parent)){t=t.parent;continue}if(oi(t)&&t.initializer&&D3(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 que(e,t){let n=t.getSourceFile(),i=LQe(e,t),s=jQe(t),o=QS(t),c=IE(t),_=Uc(ha(n.text,t.getFullStart(),!1,!0),t.getEnd()),u=Uc(i.pos,i.end);return{file:n.fileName,kind:o,kindModifiers:c,name:i.text,containerName:s,span:_,selectionSpan:u}}function WQe(e){return e!==void 0}function BQe(e){if(e.kind===jo.EntryKind.Node){let{node:t}=e;if(_q(t,!0,!0)||vce(t,!0,!0)||bce(t,!0,!0)||Sce(t,!0,!0)||UI(t)||gq(t)){let n=t.getSourceFile();return{declaration:gr(t,nD)||n,range:Eq(t,n)}}}}function VCe(e){return Ua(e.declaration)}function zQe(e,t){return{from:e,fromSpans:t}}function JQe(e,t){return zQe(que(e,t[0].declaration),hr(t,n=>mv(n.range)))}function GQe(e,t,n){if(Mi(t)||nl(t)||Nc(t))return[];let i=WCe(t),s=An(jo.findReferenceOrRenameEntries(e,n,e.getSourceFiles(),i,0,{use:jo.FindReferencesUse.References},BQe),WQe);return s?vw(s,VCe,o=>JQe(e,o)):[]}function UQe(e,t){function n(s){let o=Ub(s)?s.tag:Wu(s)?s.tagName:Oo(s)||Nc(s)?s:s.expression,c=UCe(e,o);if(c){let _=Eq(o,s.getSourceFile());if(ks(c))for(let u of c)t.push({declaration:u,range:_});else t.push({declaration:c,range:_})}}function i(s){if(s&&!(s.flags&33554432)){if(nD(s)){if(ii(s))for(let o of s.members)o.name&&pa(o.name)&&i(o.name.expression);return}switch(s.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:n(s);return;case 216:case 234:i(s.expression);return;case 260:case 169:i(s.name),i(s.initializer);return;case 213:n(s),i(s.expression),or(s.arguments,i);return;case 214:n(s),i(s.expression),or(s.arguments,i);return;case 215:n(s),i(s.tag),i(s.template);return;case 286:case 285:n(s),i(s.tagName),i(s.attributes);return;case 170:n(s),i(s.expression);return;case 211:case 212:n(s),Es(s,i);break;case 238:i(s.expression);return}Im(s)||Es(s,i)}}return i}function VQe(e,t){or(e.statements,t)}function qQe(e,t){!ei(e,128)&&e.body&&Lm(e.body)&&or(e.body.statements,t)}function $Qe(e,t,n){let i=JCe(e,t);i&&(or(i.parameters,n),n(i.body))}function HQe(e,t){t(e.body)}function QQe(e,t){or(e.modifiers,t);let n=TS(e);n&&t(n.expression);for(let i of e.members)od(i)&&or(i.modifiers,t),ds(i)?t(i.initializer):lc(i)&&i.body?(or(i.parameters,t),t(i.body)):Nc(i)&&t(i)}function KQe(e,t){let n=[],i=UQe(e,n);switch(t.kind){case 307:VQe(t,i);break;case 267:qQe(t,i);break;case 262:case 218:case 219:case 174:case 177:case 178:$Qe(e.getTypeChecker(),t,i);break;case 263:case 231:QQe(t,i);break;case 175:HQe(t,i);break;default:w.assertNever(t)}return n}function XQe(e,t){return{to:e,fromSpans:t}}function YQe(e,t){return XQe(que(e,t[0].declaration),hr(t,n=>mv(n.range)))}function ZQe(e,t){return t.flags&33554432||xd(t)?[]:vw(KQe(e,t),VCe,n=>YQe(e,n))}var $ue={};nt($ue,{v2020:()=>qCe});var qCe={};nt(qCe,{TokenEncodingConsts:()=>vCe,TokenModifier:()=>SCe,TokenType:()=>bCe,getEncodedSemanticClassifications:()=>Bue,getSemanticClassifications:()=>TCe});var Vu={};nt(Vu,{PreserveOptionalFlags:()=>aAe,addNewNodeForMemberSymbol:()=>oAe,codeFixAll:()=>oo,createCodeFixAction:()=>$s,createCodeFixActionMaybeFixAll:()=>Kue,createCodeFixActionWithoutFixAll:()=>em,createCombinedCodeActions:()=>_C,createFileTextChanges:()=>$Ce,createImportAdder:()=>nT,createImportSpecifierResolver:()=>cXe,createMissingMemberNodes:()=>hfe,createSignatureDeclarationFromCallExpression:()=>yfe,createSignatureDeclarationFromSignature:()=>CH,createStubbedBody:()=>ej,eachDiagnostic:()=>fC,findAncestorMatchingSpan:()=>Cfe,generateAccessorFromProperty:()=>mAe,getAccessorConvertiblePropertyAtPosition:()=>yAe,getAllFixes:()=>nKe,getAllSupers:()=>wfe,getFixes:()=>rKe,getImportCompletionAction:()=>lXe,getImportKind:()=>uH,getJSDocTypedefNodes:()=>aXe,getNoopSymbolTrackerWithResolver:()=>sD,getPromoteTypeOnlyCompletionAction:()=>uXe,getSupportedErrorCodes:()=>eKe,importFixName:()=>mIe,importSymbols:()=>Vk,parameterShouldGetTypeFromJSDoc:()=>xwe,registerCodeFix:()=>aa,setJsonCompilerOptionValue:()=>kfe,setJsonCompilerOptionValues:()=>Tfe,tryGetAutoImportableReferenceFromTypeNode:()=>iT,typeNodeToAutoImportableTypeNode:()=>vfe,typePredicateToAutoImportableTypeNode:()=>uAe,typeToAutoImportableTypeNode:()=>wH,typeToMinimizedReferenceType:()=>lAe});var Hue=Kp(),Que=new Map;function em(e,t,n){return Xue(e,YS(n),t,void 0,void 0)}function $s(e,t,n,i,s,o){return Xue(e,YS(n),t,i,YS(s),o)}function Kue(e,t,n,i,s,o){return Xue(e,YS(n),t,i,s&&YS(s),o)}function Xue(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)Yue=void 0,Hue.add(String(t),e);if(e.fixIds)for(let t of e.fixIds)w.assert(!Que.has(t)),Que.set(t,e)}var Yue;function eKe(){return Yue??(Yue=ps(Hue.keys()))}function tKe(e,t){let{errorCodes:n}=e,i=0;for(let o of t)if(Ts(n,o.code)&&i++,i>1)break;let s=i<2;return({fixId:o,fixAllDescription:c,..._})=>s?_:{..._,fixId:o,fixAllDescription:c}}function rKe(e){let t=HCe(e),n=Hue.get(String(e.errorCode));return ga(n,i=>hr(i.getCodeActions(e),tKe(i,t)))}function nKe(e){return Que.get(Zs(e.fixId,ys)).getAllCodeActions(e)}function _C(e,t){return{changes:e,commands:t}}function $Ce(e,t){return{fileName:e,textChanges:t}}function oo(e,t,n){let i=[],s=fn.ChangeTracker.with(e,o=>fC(e,t,c=>n(o,c,i)));return _C(s,i.length===0?void 0:i)}function fC(e,t,n){for(let i of HCe(e))Ts(t,i.code)&&n(i)}function HCe({program:e,sourceFile:t,cancellationToken:n}){let i=[...e.getSemanticDiagnostics(t,n),...e.getSyntacticDiagnostics(t,n),...T$(t,e,n)];return K_(e.getCompilerOptions())&&i.push(...e.getDeclarationDiagnostics(t,n)),i}var Zue="addConvertToUnknownForNonOverlappingTypes",QCe=[p.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:QCe,getCodeActions:function(t){let n=XCe(t.sourceFile,t.span.start);if(n===void 0)return;let i=fn.ChangeTracker.with(t,s=>KCe(s,t.sourceFile,n));return[$s(Zue,i,p.Add_unknown_conversion_for_non_overlapping_types,Zue,p.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[Zue],getAllCodeActions:e=>oo(e,QCe,(t,n)=>{let i=XCe(n.file,n.start);i&&KCe(t,n.file,i)})});function KCe(e,t,n){let i=dI(n)?A.createAsExpression(n.expression,A.createKeywordTypeNode(159)):A.createTypeAssertion(A.createKeywordTypeNode(159),n.expression);e.replaceNode(t,n.expression,i)}function XCe(e,t){if(!un(e))return gr(ki(e,t),n=>dI(n)||a7(n))}aa({errorCodes:[p.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,p.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,p.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=fn.ChangeTracker.with(t,s=>{let o=A.createExportDeclaration(void 0,!1,A.createNamedExports([]),void 0);s.insertNodeAtEndOfScope(n,n,o)});return[em("addEmptyExportDeclaration",i,p.Add_export_to_make_this_file_into_a_module)]}});var e_e="addMissingAsync",YCe=[p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,p.Type_0_is_not_assignable_to_type_1.code,p.Type_0_is_not_comparable_to_type_1.code];aa({fixIds:[e_e],errorCodes:YCe,getCodeActions:function(t){let{sourceFile:n,errorCode:i,cancellationToken:s,program:o,span:c}=t,_=On(o.getTypeChecker().getDiagnostics(n,s),sKe(c,i)),u=_&&_.relatedInformation&&On(_.relatedInformation,h=>h.code===p.Did_you_mean_to_mark_this_function_as_async.code),g=ewe(n,u);return g?[ZCe(t,g,h=>fn.ChangeTracker.with(t,h))]:void 0},getAllCodeActions:e=>{let{sourceFile:t}=e,n=new Set;return oo(e,YCe,(i,s)=>{let o=s.relatedInformation&&On(s.relatedInformation,u=>u.code===p.Did_you_mean_to_mark_this_function_as_async.code),c=ewe(t,o);return c?ZCe(e,c,u=>(u(i),[]),n):void 0})}});function ZCe(e,t,n,i){let s=n(o=>iKe(o,e.sourceFile,t,i));return $s(e_e,s,p.Add_async_modifier_to_containing_function,e_e,p.Add_all_missing_async_modifiers)}function iKe(e,t,n,i){if(i&&i.has(Ua(n)))return;i?.add(Ua(n));let s=A.replaceModifiers(ro(n,!0),A.createNodeArray(A.createModifiersFromModifierFlags(tv(n)|1024)));e.replaceNode(t,n,s)}function ewe(e,t){if(!t)return;let n=ki(e,t.start);return gr(n,s=>s.getStart(e)<t.start||s.getEnd()>mc(t)?"quit":(Lo(s)||xc(s)||Ao(s)||jc(s))&&KI(t,k_(s,e)))}function sKe(e,t){return({start:n,length:i,relatedInformation:s,code:o})=>c0(n)&&c0(i)&&KI({start:n,length:i},e)&&o===t&&!!s&&pt(s,c=>c.code===p.Did_you_mean_to_mark_this_function_as_async.code)}var t_e="addMissingAwait",twe=p.Property_0_does_not_exist_on_type_1.code,rwe=[p.This_expression_is_not_callable.code,p.This_expression_is_not_constructable.code],r_e=[p.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,p.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,p.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,p.Operator_0_cannot_be_applied_to_type_1.code,p.Operator_0_cannot_be_applied_to_types_1_and_2.code,p.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,p.This_condition_will_always_return_true_since_this_0_is_always_defined.code,p.Type_0_is_not_an_array_type.code,p.Type_0_is_not_an_array_type_or_a_string_type.code,p.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,p.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,p.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,p.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,p.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,twe,...rwe];aa({fixIds:[t_e],errorCodes:r_e,getCodeActions:function(t){let{sourceFile:n,errorCode:i,span:s,cancellationToken:o,program:c}=t,_=nwe(n,i,s,o,c);if(!_)return;let u=t.program.getTypeChecker(),g=m=>fn.ChangeTracker.with(t,m);return QN([iwe(t,_,i,u,g),swe(t,_,i,u,g)])},getAllCodeActions:e=>{let{sourceFile:t,program:n,cancellationToken:i}=e,s=e.program.getTypeChecker(),o=new Set;return oo(e,r_e,(c,_)=>{let u=nwe(t,_.code,_,i,n);if(!u)return;let g=m=>(m(c),[]);return iwe(e,u,_.code,s,g,o)||swe(e,u,_.code,s,g,o)})}});function nwe(e,t,n,i,s){let o=i$(e,n);return o&&aKe(e,t,n,i,s)&&awe(o)?o:void 0}function iwe(e,t,n,i,s,o){let{sourceFile:c,program:_,cancellationToken:u}=e,g=oKe(t,c,u,_,i);if(g){let m=s(h=>{or(g.initializers,({expression:S})=>n_e(h,n,c,i,S,o)),o&&g.needsSecondPassForFixAll&&n_e(h,n,c,i,t,o)});return em("addMissingAwaitToInitializer",m,g.initializers.length===1?[p.Add_await_to_initializer_for_0,g.initializers[0].declarationSymbol.name]:p.Add_await_to_initializers)}}function swe(e,t,n,i,s,o){let c=s(_=>n_e(_,n,e.sourceFile,i,t,o));return $s(t_e,c,p.Add_await,t_e,p.Fix_all_expressions_possibly_missing_await)}function aKe(e,t,n,i,s){let c=s.getTypeChecker().getDiagnostics(e,i);return pt(c,({start:_,length:u,relatedInformation:g,code:m})=>c0(_)&&c0(u)&&KI({start:_,length:u},n)&&m===t&&!!g&&pt(g,h=>h.code===p.Did_you_forget_to_use_await.code))}function oKe(e,t,n,i,s){let o=cKe(e,s);if(!o)return;let c=o.isCompleteFix,_;for(let u of o.identifiers){let g=s.getSymbolAtLocation(u);if(!g)continue;let m=Vn(g.valueDeclaration,oi),h=m&&Vn(m.name,je),S=Lb(m,243);if(!m||!S||m.type||!m.initializer||S.getSourceFile()!==t||ei(S,32)||!h||!awe(m.initializer)){c=!1;continue}let T=i.getSemanticDiagnostics(t,n);if(jo.Core.eachSymbolReferenceInFile(h,s,t,I=>u!==I&&!lKe(I,T,t,s))){c=!1;continue}(_||(_=[])).push({expression:m.initializer,declarationSymbol:g})}return _&&{initializers:_,needsSecondPassForFixAll:!c}}function cKe(e,t){if(Nn(e.parent)&&je(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(je(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(!je(s)){i=!1;continue}(n||(n=[])).push(s)}}return n&&{identifiers:n,isCompleteFix:i}}}function lKe(e,t,n,i){let s=Nn(e.parent)?e.parent.name:vn(e.parent)?e.parent:e,o=On(t,c=>c.start===s.getStart(n)&&c.start+c.length===s.getEnd());return o&&Ts(r_e,o.code)||i.getTypeAtLocation(s).flags&1}function awe(e){return e.flags&65536||!!gr(e,t=>t.parent&&Lo(t.parent)&&t.parent.body===t||Fs(t)&&(t.parent.kind===262||t.parent.kind===218||t.parent.kind===219||t.parent.kind===174))}function n_e(e,t,n,i,s,o){if(Z4(s.parent)&&!s.parent.awaitModifier){let c=i.getTypeAtLocation(s),_=i.getAnyAsyncIterableType();if(_&&i.isTypeAssignableTo(c,_)){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&&je(c)){let g=i.getSymbolAtLocation(c);if(g&&o.has(ua(g)))continue}let _=i.getTypeAtLocation(c),u=i.getPromisedTypeOfPromise(_)?A.createAwaitExpression(c):c;e.replaceNode(n,c,u)}else if(t===twe&&Nn(s.parent)){if(o&&je(s.parent.expression)){let c=i.getSymbolAtLocation(s.parent.expression);if(c&&o.has(ua(c)))return}e.replaceNode(n,s.parent.expression,A.createParenthesizedExpression(A.createAwaitExpression(s.parent.expression))),owe(e,s.parent.expression,n)}else if(Ts(rwe,t)&&km(s.parent)){if(o&&je(s)){let c=i.getSymbolAtLocation(s);if(c&&o.has(ua(c)))return}e.replaceNode(n,s,A.createParenthesizedExpression(A.createAwaitExpression(s))),owe(e,s,n)}else{if(o&&oi(s.parent)&&je(s.parent.name)){let c=i.getSymbolAtLocation(s.parent.name);if(c&&!Qy(o,ua(c)))return}e.replaceNode(n,s,A.createAwaitExpression(s))}}function owe(e,t,n){let i=Cl(t.pos,n);i&&hL(i.end,i.parent,n)&&e.insertText(n,t.getStart(n),";")}var i_e="addMissingConst",cwe=[p.Cannot_find_name_0.code,p.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];aa({errorCodes:cwe,getCodeActions:function(t){let n=fn.ChangeTracker.with(t,i=>lwe(i,t.sourceFile,t.span.start,t.program));if(n.length>0)return[$s(i_e,n,p.Add_const_to_unresolved_variable,i_e,p.Add_const_to_all_unresolved_variables)]},fixIds:[i_e],getAllCodeActions:e=>{let t=new Set;return oo(e,cwe,(n,i)=>lwe(n,i.file,i.start,e.program,t))}});function lwe(e,t,n,i,s){let o=ki(t,n),c=gr(o,g=>nk(g.parent)?g.parent.initializer===g:uKe(g)?!1:"quit");if(c)return eH(e,c,t,s);let _=o.parent;if(vn(_)&&_.operatorToken.kind===64&&$l(_.parent))return eH(e,o,t,s);if(gu(_)){let g=i.getTypeChecker();return Oi(_.elements,m=>_Ke(m,g))?eH(e,_,t,s):void 0}let u=gr(o,g=>$l(g.parent)?!0:fKe(g)?!1:"quit");if(u){let g=i.getTypeChecker();return uwe(u,g)?eH(e,u,t,s):void 0}}function eH(e,t,n,i){(!i||Qy(i,t))&&e.insertModifierBefore(n,87,t)}function uKe(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function _Ke(e,t){let n=je(e)?e:ql(e,!0)&&je(e.left)?e.left:void 0;return!!n&&!t.getSymbolAtLocation(n)}function fKe(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}function uwe(e,t){return vn(e)?e.operatorToken.kind===28?Oi([e.left,e.right],n=>uwe(n,t)):e.operatorToken.kind===64&&je(e.left)&&!t.getSymbolAtLocation(e.left):!1}var s_e="addMissingDeclareProperty",_we=[p.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:_we,getCodeActions:function(t){let n=fn.ChangeTracker.with(t,i=>fwe(i,t.sourceFile,t.span.start));if(n.length>0)return[$s(s_e,n,p.Prefix_with_declare,s_e,p.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[s_e],getAllCodeActions:e=>{let t=new Set;return oo(e,_we,(n,i)=>fwe(n,i.file,i.start,t))}});function fwe(e,t,n,i){let s=ki(t,n);if(!je(s))return;let o=s.parent;o.kind===172&&(!i||Qy(i,o))&&e.insertModifierBefore(t,138,o)}var a_e="addMissingInvocationForDecorator",pwe=[p._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:pwe,getCodeActions:function(t){let n=fn.ChangeTracker.with(t,i=>dwe(i,t.sourceFile,t.span.start));return[$s(a_e,n,p.Call_decorator_expression,a_e,p.Add_to_all_uncalled_decorators)]},fixIds:[a_e],getAllCodeActions:e=>oo(e,pwe,(t,n)=>dwe(t,n.file,n.start))});function dwe(e,t,n){let i=ki(t,n),s=gr(i,Rl);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 o_e="addMissingResolutionModeImportAttribute",mwe=[p.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code,p.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code];aa({errorCodes:mwe,getCodeActions:function(t){let n=fn.ChangeTracker.with(t,i=>gwe(i,t.sourceFile,t.span.start,t.program,t.host,t.preferences));return[$s(o_e,n,p.Add_resolution_mode_import_attribute,o_e,p.Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it)]},fixIds:[o_e],getAllCodeActions:e=>oo(e,mwe,(t,n)=>gwe(t,n.file,n.start,e.program,e.host,e.preferences))});function gwe(e,t,n,i,s,o){var c,_,u;let g=ki(t,n),m=gr(g,uf(sc,Om));w.assert(!!m,"Expected position to be owned by an ImportDeclaration or ImportType.");let h=Tf(t,o)===0,S=l2(m),T=!S||((c=Fk(S.text,t.fileName,i.getCompilerOptions(),s,i.getModuleResolutionCache(),void 0,99).resolvedModule)==null?void 0:c.resolvedFileName)===((u=(_=i.getResolvedModuleFromModuleSpecifier(S,t))==null?void 0:_.resolvedModule)==null?void 0:u.resolvedFileName),x=m.attributes?A.updateImportAttributes(m.attributes,A.createNodeArray([...m.attributes.elements,A.createImportAttribute(A.createStringLiteral("resolution-mode",h),A.createStringLiteral(T?"import":"require",h))],m.attributes.elements.hasTrailingComma),m.attributes.multiLine):A.createImportAttributes(A.createNodeArray([A.createImportAttribute(A.createStringLiteral("resolution-mode",h),A.createStringLiteral(T?"import":"require",h))]));m.kind===272?e.replaceNode(t,m,A.updateImportDeclaration(m,m.modifiers,m.importClause,m.moduleSpecifier,x)):e.replaceNode(t,m,A.updateImportTypeNode(m,m.argument,x,m.qualifier,m.typeArguments))}var c_e="addNameToNamelessParameter",hwe=[p.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];aa({errorCodes:hwe,getCodeActions:function(t){let n=fn.ChangeTracker.with(t,i=>ywe(i,t.sourceFile,t.span.start));return[$s(c_e,n,p.Add_parameter_name,c_e,p.Add_names_to_all_parameters_without_names)]},fixIds:[c_e],getAllCodeActions:e=>oo(e,hwe,(t,n)=>ywe(t,n.file,n.start))});function ywe(e,t,n){let i=ki(t,n),s=i.parent;if(!Bi(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(),_=A.createTypeReferenceNode(s.name,void 0),u=vwe(t,s);for(;u;)_=A.createArrayTypeNode(_),c=u.getEnd(),u=vwe(t,u);let g=A.createParameterDeclaration(s.modifiers,s.dotDotDotToken,"arg"+o,s.questionToken,s.dotDotDotToken&&!X4(_)?A.createArrayTypeNode(_):_,s.initializer);e.replaceRange(t,Dp(s.getStart(t),c),g)}function vwe(e,t){let n=KS(t.name,t.parent,e);if(n&&n.kind===23&&uv(n.parent)&&Bi(n.parent.parent))return n.parent.parent}var bwe="addOptionalPropertyUndefined",pKe=[p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,p.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:pKe,getCodeActions(e){let t=e.program.getTypeChecker(),n=dKe(e.sourceFile,e.span,t);if(!n.length)return;let i=fn.ChangeTracker.with(e,s=>gKe(s,n));return[em(bwe,i,p.Add_undefined_to_optional_property_type)]},fixIds:[bwe]});function dKe(e,t,n){var i,s;let o=Swe(i$(e,t),n);if(!o)return qe;let{source:c,target:_}=o,u=mKe(c,_,n)?n.getTypeAtLocation(_.expression):n.getTypeAtLocation(_);return(s=(i=u.symbol)==null?void 0:i.declarations)!=null&&s.some(g=>Fr(g).fileName.match(/\.d\.ts$/))?qe:n.getExactOptionalProperties(u)}function mKe(e,t,n){return Nn(t)&&!!n.getExactOptionalProperties(n.getTypeAtLocation(t.expression)).length&&n.getTypeAtLocation(e)===n.getUndefinedType()}function Swe(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(oi(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(qs(e.parent)){let i=t.getSymbolAtLocation(e.parent.expression);if(!i?.valueDeclaration||!Yx(i.valueDeclaration.kind)||!gt(e))return;let s=e.parent.arguments.indexOf(e);if(s===-1)return;let o=i.valueDeclaration.parameters[s].name;if(je(o))return{source:e,target:o}}else if(hl(e.parent)&&je(e.parent.name)||Eu(e.parent)){let i=Swe(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:hl(e.parent)?e.parent.initializer:e.parent.name,target:o}:void 0}}else return}function gKe(e,t){for(let n of t){let i=n.valueDeclaration;if(i&&(s_(i)||ds(i))&&i.type){let s=A.createUnionTypeNode([...i.type.kind===192?i.type.types:[i.type],A.createTypeReferenceNode("undefined")]);e.replaceNode(i.getSourceFile(),i.type,s)}}}var l_e="annotateWithTypeFromJSDoc",Twe=[p.JSDoc_types_may_be_moved_to_TypeScript_types.code];aa({errorCodes:Twe,getCodeActions(e){let t=kwe(e.sourceFile,e.span.start);if(!t)return;let n=fn.ChangeTracker.with(e,i=>wwe(i,e.sourceFile,t));return[$s(l_e,n,p.Annotate_with_type_from_JSDoc,l_e,p.Annotate_everything_with_types_from_JSDoc)]},fixIds:[l_e],getAllCodeActions:e=>oo(e,Twe,(t,n)=>{let i=kwe(n.file,n.start);i&&wwe(t,n.file,i)})});function kwe(e,t){let n=ki(e,t);return Vn(Bi(n.parent)?n.parent.parent:n.parent,xwe)}function xwe(e){return hKe(e)&&Cwe(e)}function Cwe(e){return xo(e)?e.parameters.some(Cwe)||!e.type&&!!g6(e):!e.type&&!!h0(e)}function wwe(e,t,n){if(xo(n)&&(g6(n)||n.parameters.some(i=>!!h0(i)))){if(!n.typeParameters){let s=aO(n);s.length&&e.insertTypeParameters(t,n,s)}let i=Lo(n)&&!_o(n,21,t);i&&e.insertNodeBefore(t,Ea(n.parameters),A.createToken(21));for(let s of n.parameters)if(!s.type){let o=h0(s);o&&e.tryInsertTypeAnnotation(t,s,et(o,rT,di))}if(i&&e.insertNodeAfter(t,xa(n.parameters),A.createToken(22)),!n.type){let s=g6(n);s&&e.tryInsertTypeAnnotation(t,n,et(s,rT,di))}}else{let i=w.checkDefined(h0(n),"A JSDocType for this declaration should exist");w.assert(!n.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,n,et(i,rT,di))}}function hKe(e){return xo(e)||e.kind===260||e.kind===171||e.kind===172}function rT(e){switch(e.kind){case 312:case 313:return A.createTypeReferenceNode("any",qe);case 316:return vKe(e);case 315:return rT(e.type);case 314:return bKe(e);case 318:return SKe(e);case 317:return TKe(e);case 183:return xKe(e);case 322:return yKe(e);default:let t=Ir(e,rT,void 0);return dn(t,1),t}}function yKe(e){let t=A.createTypeLiteralNode(hr(e.jsDocPropertyTags,n=>A.createPropertySignature(void 0,je(n.name)?n.name:n.name.right,W4(n)?A.createToken(58):void 0,n.typeExpression&&et(n.typeExpression.type,rT,di)||A.createKeywordTypeNode(133))));return dn(t,1),t}function vKe(e){return A.createUnionTypeNode([et(e.type,rT,di),A.createTypeReferenceNode("undefined",qe)])}function bKe(e){return A.createUnionTypeNode([et(e.type,rT,di),A.createTypeReferenceNode("null",qe)])}function SKe(e){return A.createArrayTypeNode(et(e.type,rT,di))}function TKe(e){return A.createFunctionTypeNode(qe,e.parameters.map(kKe),e.type??A.createKeywordTypeNode(133))}function kKe(e){let t=e.parent.parameters.indexOf(e),n=e.type.kind===318&&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,et(e.type,rT,di),e.initializer)}function xKe(e){let t=e.typeName,n=e.typeArguments;if(je(e.typeName)){if(zF(e))return CKe(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",qe)]):n=Ur(e.typeArguments,rT,di)}return A.createTypeReferenceNode(t,n)}function CKe(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 dn(n,1),n}var u_e="convertFunctionToEs6Class",Iwe=[p.This_constructor_function_may_be_converted_to_a_class_declaration.code];aa({errorCodes:Iwe,getCodeActions(e){let t=fn.ChangeTracker.with(e,n=>Dwe(n,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[$s(u_e,t,p.Convert_function_to_an_ES2015_class,u_e,p.Convert_all_constructor_functions_to_classes)]},fixIds:[u_e],getAllCodeActions:e=>oo(e,Iwe,(t,n)=>Dwe(t,n.file,n.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))});function Dwe(e,t,n,i,s,o){let c=i.getSymbolAtLocation(ki(t,n));if(!c||!c.valueDeclaration||!(c.flags&19))return;let _=c.valueDeclaration;if(jc(_)||Ao(_))e.replaceNode(t,_,m(_));else if(oi(_)){let h=g(_);if(!h)return;let S=_.parent.parent;au(_.parent)&&_.parent.declarations.length>1?(e.delete(t,_),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 D=I.declarations[0];if(I.declarations.length===1&&Nn(D)&&vn(D.parent)&&D.parent.operatorToken.kind===64&&Sa(D.parent.right)){let E=D.parent.right;x(E.symbol,void 0,S)}}else x(I,[A.createToken(126)],S)}),h.members&&h.members.forEach((I,D)=>{var E,O,F,B;if(D==="constructor"&&I.valueDeclaration){let G=(B=(F=(O=(E=h.exports)==null?void 0:E.get("prototype"))==null?void 0:O.declarations)==null?void 0:F[0])==null?void 0:B.parent;G&&vn(G)&&Sa(G.right)&&pt(G.right.properties,rH)||e.delete(t,I.valueDeclaration.parent);return}x(I,void 0,S)}),S;function T(I,D){return Oo(I)?Nn(I)&&rH(I)?!0:Ns(D):Oi(I.properties,E=>!!(xc(E)||y6(E)||hl(E)&&Ao(E.initializer)&&E.name||rH(E)))}function x(I,D,E){if(!(I.flags&8192)&&!(I.flags&4096))return;let O=I.valueDeclaration,F=O.parent,B=F.right;if(!T(O,B)||pt(E,me=>{let te=vs(me);return!!(te&&je(te)&&Ln(te)===Oc(I))}))return;let G=F.parent&&F.parent.kind===244?F.parent:F;if(e.delete(t,G),!B){E.push(A.createPropertyDeclaration(D,I.name,void 0,void 0,void 0));return}if(Oo(O)&&(Ao(B)||Lo(B))){let me=Tf(t,s),te=wKe(O,o,me);te&&$(E,B,te);return}else if(Sa(B)){or(B.properties,me=>{(xc(me)||y6(me))&&E.push(me),hl(me)&&Ao(me.initializer)&&$(E,me.initializer,me.name),rH(me)});return}else{if(g_(t)||!Nn(O))return;let me=A.createPropertyDeclaration(D,O.name,void 0,void 0,B);YI(F.parent,me,t),E.push(me);return}function $(me,te,V){return Ao(te)?K(me,te,V):U(me,te,V)}function K(me,te,V){let ne=Ki(D,tH(te,134)),ie=A.createMethodDeclaration(ne,void 0,V,void 0,void 0,te.parameters,void 0,te.body);YI(F,ie,t),me.push(ie)}function U(me,te,V){let ne=te.body,ie;ne.kind===241?ie=ne:ie=A.createBlock([A.createReturnStatement(ne)]);let oe=Ki(D,tH(te,134)),de=A.createMethodDeclaration(oe,void 0,V,void 0,void 0,te.parameters,void 0,ie);YI(F,de,t),me.push(de)}}}function g(h){let S=h.initializer;if(!S||!Ao(S)||!je(h.name))return;let T=u(h.symbol);S.body&&T.unshift(A.createConstructorDeclaration(void 0,S.parameters,S.body));let x=tH(h.parent.parent,95);return A.createClassDeclaration(x,h.name,void 0,void 0,T)}function m(h){let S=u(c);h.body&&S.unshift(A.createConstructorDeclaration(void 0,h.parameters,h.body));let T=tH(h,95);return A.createClassDeclaration(T,h.name,void 0,void 0,S)}}function tH(e,t){return od(e)?An(e.modifiers,n=>n.kind===t):void 0}function rH(e){return e.name?!!(je(e.name)&&e.name.text==="constructor"):!1}function wKe(e,t,n){if(Nn(e))return e.name;let i=e.argumentExpression;if(L_(i))return i;if(Ha(i))return $_(i.text,wa(t))?A.createIdentifier(i.text):Tk(i)?A.createStringLiteral(i.text,n===0):i}var __e="convertToAsyncFunction",Pwe=[p.This_may_be_converted_to_an_async_function.code],nH=!0;aa({errorCodes:Pwe,getCodeActions(e){nH=!0;let t=fn.ChangeTracker.with(e,n=>Awe(n,e.sourceFile,e.span.start,e.program.getTypeChecker()));return nH?[$s(__e,t,p.Convert_to_async_function,__e,p.Convert_all_to_async_functions)]:[]},fixIds:[__e],getAllCodeActions:e=>oo(e,Pwe,(t,n)=>Awe(t,n.file,n.start,e.program.getTypeChecker()))});function Awe(e,t,n,i){let s=ki(t,n),o;if(je(s)&&oi(s.parent)&&s.parent.initializer&&xo(s.parent.initializer)?o=s.parent.initializer:o=Vn(ep(ki(t,n)),C$),!o)return;let c=new Map,_=un(o),u=DKe(o,i),g=PKe(o,i,c);if(!k$(g,i))return;let m=g.body&&Fs(g.body)?IKe(g.body,i):qe,h={checker:i,synthNamesMap:c,setOfExpressionsToReturn:u,isInJSFile:_};if(!m.length)return;let S=ha(t.text,Mm(o).pos);e.insertModifierAt(t,S,134,{suffix:" "});for(let T of m)if(Es(T,function x(I){if(qs(I)){let D=iD(I,I,h,!1);if(pC())return!0;e.replaceNodeWithNodes(t,T,D)}else if(!Ns(I)&&(Es(I,x),pC()))return!0}),pC())return}function IKe(e,t){let n=[];return D0(e,i=>{EL(i,t)&&n.push(i)}),n}function DKe(e,t){if(!e.body)return new Set;let n=new Set;return Es(e.body,function i(s){P3(s,t,"then")?(n.add(Ua(s)),or(s.arguments,i)):P3(s,t,"catch")||P3(s,t,"finally")?(n.add(Ua(s)),Es(s,i)):Nwe(s,t)?n.add(Ua(s)):Es(s,i)}),n}function P3(e,t,n){if(!qs(e))return!1;let s=ZM(e,n)&&t.getTypeAtLocation(e);return!!(s&&t.getPromisedTypeOfPromise(s))}function Ewe(e,t){return(Mn(e)&4)!==0&&e.target===t}function iH(e,t,n){if(e.expression.name.escapedText==="finally")return;let i=n.getTypeAtLocation(e.expression.expression);if(Ewe(i,n.getPromiseType())||Ewe(i,n.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===a0(e.arguments,0))return a0(e.typeArguments,0);if(t===a0(e.arguments,1))return a0(e.typeArguments,1)}else return a0(e.typeArguments,0)}function Nwe(e,t){return gt(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function PKe(e,t,n){let i=new Map,s=Kp();return Es(e,function o(c){if(!je(c)){Es(c,o);return}let _=t.getSymbolAtLocation(c);if(_){let u=t.getTypeAtLocation(c),g=jwe(u,t),m=ua(_).toString();if(g&&!Bi(c.parent)&&!xo(c.parent)&&!n.has(m)){let h=_l(g.parameters),S=h?.valueDeclaration&&Bi(h.valueDeclaration)&&Vn(h.valueDeclaration.name,je)||A.createUniqueName("result",16),T=Mwe(S,s);n.set(m,T),s.add(S.text,_)}else if(c.parent&&(Bi(c.parent)||oi(c.parent)||Da(c.parent))){let h=c.text,S=s.get(h);if(S&&S.some(T=>T!==_)){let T=Mwe(c,s);i.set(m,T.identifier),n.set(m,T),s.add(h,_)}else{let T=ro(c);n.set(m,JE(T)),s.add(h,_)}}}}),_3(e,!0,o=>{if(Da(o)&&je(o.name)&&np(o.parent)){let c=t.getSymbolAtLocation(o.name),_=c&&i.get(String(ua(c)));if(_&&_.text!==(o.name||o.propertyName).getText())return A.createBindingElement(o.dotDotDotToken,o.propertyName||o.name,_,o.initializer)}else if(je(o)){let c=t.getSymbolAtLocation(o),_=c&&i.get(String(ua(c)));if(_)return A.createIdentifier(_.text)}})}function Mwe(e,t){let n=(t.get(e.text)||qe).length,i=n===0?e:A.createIdentifier(e.text+"_"+n);return JE(i)}function pC(){return!nH}function _1(){return nH=!1,qe}function iD(e,t,n,i,s){if(P3(t,n.checker,"then"))return NKe(t,a0(t.arguments,0),a0(t.arguments,1),n,i,s);if(P3(t,n.checker,"catch"))return Owe(t,a0(t.arguments,0),n,i,s);if(P3(t,n.checker,"finally"))return EKe(t,a0(t.arguments,0),n,i,s);if(Nn(t))return iD(e,t.expression,n,i,s);let o=n.checker.getTypeAtLocation(t);return o&&n.checker.getPromisedTypeOfPromise(o)?(w.assertNode(ic(t).parent,Nn),MKe(e,t,n,i,s)):_1()}function sH({checker:e},t){if(t.kind===106)return!0;if(je(t)&&!Ko(t)&&Ln(t)==="undefined"){let n=e.getSymbolAtLocation(t);return!n||e.isUndefinedSymbol(n)}return!1}function AKe(e){let t=A.createUniqueName(e.identifier.text,16);return JE(t)}function Rwe(e,t,n){let i;return n&&!E3(e,t)&&(A3(n)?(i=n,t.synthNamesMap.forEach((s,o)=>{if(s.identifier.text===n.identifier.text){let c=AKe(n);t.synthNamesMap.set(o,c)}})):i=JE(A.createUniqueName("result",16),n.types),m_e(i)),i}function Fwe(e,t,n,i,s){let o=[],c;if(i&&!E3(e,t)){c=ro(m_e(i));let _=i.types,u=t.checker.getUnionType(_,2),g=t.isInJSFile?void 0:t.checker.typeToTypeNode(u,void 0,void 0),m=[A.createVariableDeclaration(c,void 0,g)],h=A.createVariableStatement(void 0,A.createVariableDeclarationList(m,1));o.push(h)}return o.push(n),s&&c&&OKe(s)&&o.push(A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(ro(Jwe(s)),void 0,void 0,c)],2))),o}function EKe(e,t,n,i,s){if(!t||sH(n,t))return iD(e,e.expression.expression,n,i,s);let o=Rwe(e,n,s),c=iD(e,e.expression.expression,n,!0,o);if(pC())return _1();let _=p_e(t,i,void 0,void 0,e,n);if(pC())return _1();let u=A.createBlock(c),g=A.createBlock(_),m=A.createTryStatement(u,void 0,g);return Fwe(e,n,m,o,s)}function Owe(e,t,n,i,s){if(!t||sH(n,t))return iD(e,e.expression.expression,n,i,s);let o=Bwe(t,n),c=Rwe(e,n,s),_=iD(e,e.expression.expression,n,!0,c);if(pC())return _1();let u=p_e(t,i,c,o,e,n);if(pC())return _1();let g=A.createBlock(_),m=A.createCatchClause(o&&ro(HL(o)),A.createBlock(u)),h=A.createTryStatement(g,m,void 0);return Fwe(e,n,h,c,s)}function NKe(e,t,n,i,s,o){if(!t||sH(i,t))return Owe(e,n,i,s,o);if(n&&!sH(i,n))return _1();let c=Bwe(t,i),_=iD(e.expression.expression,e.expression.expression,i,!0,c);if(pC())return _1();let u=p_e(t,s,o,c,e,i);return pC()?_1():Ki(_,u)}function MKe(e,t,n,i,s){if(E3(e,n)){let o=ro(t);return i&&(o=A.createAwaitExpression(o)),[A.createReturnStatement(o)]}return aH(s,A.createAwaitExpression(t),void 0)}function aH(e,t,n){return!e||zwe(e)?[A.createExpressionStatement(t)]:A3(e)&&e.hasBeenDeclared?[A.createExpressionStatement(A.createAssignment(ro(d_e(e)),t))]:[A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(ro(HL(e)),void 0,n,t)],2))]}function f_e(e,t){if(t&&e){let n=A.createUniqueName("result",16);return[...aH(JE(n),e,t),A.createReturnStatement(n)]}return[A.createReturnStatement(e)]}function p_e(e,t,n,i,s,o){var c;switch(e.kind){case 106:break;case 211:case 80:if(!i)break;let _=A.createCallExpression(ro(e),void 0,A3(i)?[d_e(i)]:[]);if(E3(s,o))return f_e(_,iH(s,e,o.checker));let u=o.checker.getTypeAtLocation(e),g=o.checker.getSignaturesOfType(u,0);if(!g.length)return _1();let m=g[0].getReturnType(),h=aH(n,A.createAwaitExpression(_),iH(s,e,o.checker));return n&&n.types.push(o.checker.getAwaitedType(m)||m),h;case 218:case 219:{let S=e.body,T=(c=jwe(o.checker.getTypeAtLocation(e),o.checker))==null?void 0:c.getReturnType();if(Fs(S)){let x=[],I=!1;for(let D of S.statements)if(Bf(D))if(I=!0,EL(D,o.checker))x=x.concat(Wwe(o,D,t,n));else{let E=T&&D.expression?Lwe(o.checker,T,D.expression):D.expression;x.push(...f_e(E,iH(s,e,o.checker)))}else{if(t&&D0(D,iS))return _1();x.push(D)}return E3(s,o)?x.map(D=>ro(D)):RKe(x,n,o,I)}else{let x=x$(S,o.checker)?Wwe(o,A.createReturnStatement(S),t,n):qe;if(x.length>0)return x;if(T){let I=Lwe(o.checker,T,S);if(E3(s,o))return f_e(I,iH(s,e,o.checker));{let D=aH(n,I,void 0);return n&&n.types.push(o.checker.getAwaitedType(T)||T),D}}else return _1()}}default:return _1()}return qe}function Lwe(e,t,n){let i=ro(n);return e.getPromisedTypeOfPromise(t)?A.createAwaitExpression(i):i}function jwe(e,t){let n=t.getSignaturesOfType(e,0);return zo(n)}function RKe(e,t,n,i){let s=[];for(let o of e)if(Bf(o)){if(o.expression){let c=Nwe(o.expression,n.checker)?A.createAwaitExpression(o.expression):o.expression;t===void 0?s.push(A.createExpressionStatement(c)):A3(t)&&t.hasBeenDeclared?s.push(A.createExpressionStatement(A.createAssignment(d_e(t),c))):s.push(A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(HL(t),void 0,void 0,c)],2)))}}else s.push(ro(o));return!i&&t!==void 0&&s.push(A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(HL(t),void 0,void 0,A.createIdentifier("undefined"))],2))),s}function Wwe(e,t,n,i){let s=[];return Es(t,function o(c){if(qs(c)){let _=iD(c,c,e,n,i);if(s=s.concat(_),s.length>0)return}else Ns(c)||Es(c,o)}),s}function Bwe(e,t){let n=[],i;if(xo(e)){if(e.parameters.length>0){let u=e.parameters[0].name;i=s(u)}}else je(e)?i=o(e):Nn(e)&&je(e.name)&&(i=o(e.name));if(!i||"identifier"in i&&i.identifier.text==="undefined")return;return i;function s(u){if(je(u))return o(u);let g=ga(u.elements,m=>Fl(m)?[]:[s(m.name)]);return FKe(u,g)}function o(u){let g=_(u),m=c(g);return m&&t.synthNamesMap.get(ua(m).toString())||JE(u,n)}function c(u){var g;return((g=Vn(u,Jd))==null?void 0:g.symbol)??t.checker.getSymbolAtLocation(u)}function _(u){return u.original?u.original:u}}function zwe(e){return e?A3(e)?!e.identifier.text:Oi(e.elements,zwe):!0}function JE(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function FKe(e,t=qe,n=[]){return{kind:1,bindingPattern:e,elements:t,types:n}}function d_e(e){return e.hasBeenReferenced=!0,e.identifier}function HL(e){return A3(e)?m_e(e):Jwe(e)}function Jwe(e){for(let t of e.elements)HL(t);return e.bindingPattern}function m_e(e){return e.hasBeenDeclared=!0,e.identifier}function A3(e){return e.kind===0}function OKe(e){return e.kind===1}function E3(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(Ua(e.original))}aa({errorCodes:[p.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=fn.ChangeTracker.with(e,o=>{if(jKe(t,n.getTypeChecker(),o,wa(n.getCompilerOptions()),Tf(t,i)))for(let _ of n.getSourceFiles())LKe(_,t,n,o,Tf(_,i))});return[em("convertToEsModule",s,p.Convert_to_ES_module)]}});function LKe(e,t,n,i,s){var o;for(let c of e.imports){let _=(o=n.getResolvedModuleFromModuleSpecifier(c,e))==null?void 0:o.resolvedModule;if(!_||_.resolvedFileName!==t.fileName)continue;let u=eA(c);switch(u.kind){case 271:i.replaceNode(e,u,K0(u.name,void 0,c,s));break;case 213:R_(u,!1)&&i.replaceNode(e,u,A.createPropertyAccessExpression(ro(u),"default"));break}}}function jKe(e,t,n,i,s){let o={original:XKe(e),additional:new Set},c=WKe(e,t,o);BKe(e,c,n);let _=!1,u;for(let g of An(e.statements,Lc)){let m=Uwe(e,g,n,t,o,i,s);m&&mF(m,u??(u=new Map))}for(let g of An(e.statements,m=>!Lc(m))){let m=zKe(e,g,t,n,o,i,c,u,s);_=_||m}return u?.forEach((g,m)=>{n.replaceNode(e,m,g)}),_}function WKe(e,t,n){let i=new Map;return Gwe(e,s=>{let{text:o}=s.name;!i.has(o)&&(Mz(s.name)||t.resolveName(o,s,111551,!0))&&i.set(o,oH(`_${o}`,n))}),i}function BKe(e,t,n){Gwe(e,(i,s)=>{if(s)return;let{text:o}=i.name;n.replaceNode(e,i,A.createIdentifier(t.get(o)||o))})}function Gwe(e,t){e.forEachChild(function n(i){if(Nn(i)&&GS(e,i.expression)&&je(i.name)){let{parent:s}=i;t(i,vn(s)&&s.left===i&&s.operatorToken.kind===64)}i.forEachChild(n)})}function zKe(e,t,n,i,s,o,c,_,u){switch(t.kind){case 243:return Uwe(e,t,i,n,s,o,u),!1;case 244:{let{expression:g}=t;switch(g.kind){case 213:return R_(g,!0)&&i.replaceNode(e,t,K0(void 0,void 0,g.arguments[0],u)),!1;case 226:{let{operatorToken:m}=g;return m.kind===64&&GKe(e,n,g,i,c,_)}}}default:return!1}}function Uwe(e,t,n,i,s,o,c){let{declarationList:_}=t,u=!1,g=hr(_.declarations,m=>{let{name:h,initializer:S}=m;if(S){if(GS(e,S))return u=!0,GE([]);if(R_(S,!0))return u=!0,QKe(h,S.arguments[0],i,s,o,c);if(Nn(S)&&R_(S.expression,!0))return u=!0,JKe(h,S.name.text,S.expression.arguments[0],s,c)}return GE([A.createVariableStatement(void 0,A.createVariableDeclarationList([m],_.flags))])});if(u){n.replaceNodeWithNodes(e,t,ga(g,h=>h.newImports));let m;return or(g,h=>{h.useSitesToUnqualify&&mF(h.useSitesToUnqualify,m??(m=new Map))}),m}}function JKe(e,t,n,i,s){switch(e.kind){case 206:case 207:{let o=oH(t,i);return GE([Hwe(o,t,n,s),cH(void 0,e,A.createIdentifier(o))])}case 80:return GE([Hwe(e.text,t,n,s)]);default:return w.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function GKe(e,t,n,i,s,o){let{left:c,right:_}=n;if(!Nn(c))return!1;if(GS(e,c))if(GS(e,_))i.delete(e,n.parent);else{let u=Sa(_)?UKe(_,o):R_(_,!0)?qKe(_.arguments[0],t):void 0;return u?(i.replaceNodeWithNodes(e,n.parent,u[0]),u[1]):(i.replaceRangeWithText(e,Dp(c.getStart(e),_.pos),"export default"),!0)}else GS(e,c.expression)&&VKe(e,n,i,s);return!1}function UKe(e,t){let n=SW(e.properties,i=>{switch(i.kind){case 177:case 178:case 304:case 305:return;case 303:return je(i.name)?HKe(i.name.text,i.initializer,t):void 0;case 174:return je(i.name)?$we(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 VKe(e,t,n,i){let{text:s}=t.left.name,o=i.get(s);if(o!==void 0){let c=[cH(void 0,o,t.right),y_e([A.createExportSpecifier(!1,o,s)])];n.replaceNodeWithNodes(e,t.parent,c)}else $Ke(t,e,n)}function qKe(e,t){let n=e.text,i=t.getSymbolAtLocation(e),s=i?i.exports:Bl;return s.has("export=")?[[g_e(n)],!0]:s.has("default")?s.size>1?[[Vwe(n),g_e(n)],!0]:[[g_e(n)],!0]:[[Vwe(n)],!1]}function Vwe(e){return y_e(void 0,e)}function g_e(e){return y_e([A.createExportSpecifier(!1,void 0,"default")],e)}function $Ke({left:e,right:t,parent:n},i,s){let o=e.name.text;if((Ao(t)||Lo(t)||ml(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=_o(n,27,i);c&&s.delete(i,c)}else s.replaceNodeRangeWithNodes(i,e.expression,_o(e,25,i),[A.createToken(95),A.createToken(87)],{joiner:" ",suffix:" "})}function HKe(e,t,n){let i=[A.createToken(95)];switch(t.kind){case 218:{let{name:o}=t;if(o&&o.text!==e)return s()}case 219:return $we(e,i,t,n);case 231:return ZKe(e,i,t,n);default:return s()}function s(){return cH(i,A.createIdentifier(e),h_e(t,n))}}function h_e(e,t){if(!t||!pt(ps(t.keys()),i=>O_(e,i)))return e;return ks(e)?Kq(e,!0,n):_3(e,!0,n);function n(i){if(i.kind===211){let s=t.get(i);return t.delete(i),s}}}function QKe(e,t,n,i,s,o){switch(e.kind){case 206:{let c=SW(e.elements,_=>_.dotDotDotToken||_.initializer||_.propertyName&&!je(_.propertyName)||!je(_.name)?void 0:Qwe(_.propertyName&&_.propertyName.text,_.name.text));if(c)return GE([K0(void 0,c,t,o)])}case 207:{let c=oH(h3(t.text,s),i);return GE([K0(A.createIdentifier(c),void 0,t,o),cH(void 0,ro(e),A.createIdentifier(c))])}case 80:return KKe(e,t,n,i,o);default:return w.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function KKe(e,t,n,i,s){let o=n.getSymbolAtLocation(e),c=new Map,_=!1,u;for(let m of i.original.get(e.text)){if(n.getSymbolAtLocation(m)!==o||m===e)continue;let{parent:h}=m;if(Nn(h)){let{name:{text:S}}=h;if(S==="default"){_=!0;let T=m.getText();(u??(u=new Map)).set(h,A.createIdentifier(T))}else{w.assert(h.expression===m,"Didn't expect expression === use");let T=c.get(S);T===void 0&&(T=oH(S,i),c.set(S,T)),(u??(u=new Map)).set(h,A.createIdentifier(T))}}else _=!0}let g=c.size===0?void 0:ps(_P(c.entries(),([m,h])=>A.createImportSpecifier(!1,m===h?void 0:A.createIdentifier(m),A.createIdentifier(h))));return g||(_=!0),GE([K0(_?ro(e):void 0,g,t,s)],u)}function oH(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function XKe(e){let t=Kp();return qwe(e,n=>t.add(n.text,n)),t}function qwe(e,t){je(e)&&YKe(e)&&t(e),e.forEachChild(n=>qwe(n,t))}function YKe(e){let{parent:t}=e;switch(t.kind){case 211:return t.name!==e;case 208:return t.propertyName!==e;case 276:return t.propertyName!==e;default:return!0}}function $we(e,t,n,i){return A.createFunctionDeclaration(Ki(t,XS(n.modifiers)),ro(n.asteriskToken),e,XS(n.typeParameters),XS(n.parameters),ro(n.type),A.converters.convertToFunctionBlock(h_e(n.body,i)))}function ZKe(e,t,n,i){return A.createClassDeclaration(Ki(t,XS(n.modifiers)),e,XS(n.typeParameters),XS(n.heritageClauses),h_e(n.members,i))}function Hwe(e,t,n,i){return t==="default"?K0(A.createIdentifier(e),void 0,n,i):K0(void 0,[Qwe(t,e)],n,i)}function Qwe(e,t){return A.createImportSpecifier(!1,e!==void 0&&e!==t?A.createIdentifier(e):void 0,A.createIdentifier(t))}function cH(e,t,n){return A.createVariableStatement(e,A.createVariableDeclarationList([A.createVariableDeclaration(t,void 0,void 0,n)],2))}function y_e(e,t){return A.createExportDeclaration(void 0,!1,e&&A.createNamedExports(e),t===void 0?void 0:A.createStringLiteral(t))}function GE(e,t){return{newImports:e,useSitesToUnqualify:t}}var v_e="correctQualifiedNameToIndexedAccessType",Kwe=[p.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:Kwe,getCodeActions(e){let t=Xwe(e.sourceFile,e.span.start);if(!t)return;let n=fn.ChangeTracker.with(e,s=>Ywe(s,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[$s(v_e,n,[p.Rewrite_as_the_indexed_access_type_0,i],v_e,p.Rewrite_all_as_indexed_access_types)]},fixIds:[v_e],getAllCodeActions:e=>oo(e,Kwe,(t,n)=>{let i=Xwe(n.file,n.start);i&&Ywe(t,n.file,i)})});function Xwe(e,t){let n=gr(ki(e,t),y_);return w.assert(!!n,"Expected position to be owned by a qualified name."),je(n.left)?n:void 0}function Ywe(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 b_e=[p.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],S_e="convertToTypeOnlyExport";aa({errorCodes:b_e,getCodeActions:function(t){let n=fn.ChangeTracker.with(t,i=>eIe(i,Zwe(t.span,t.sourceFile),t));if(n.length)return[$s(S_e,n,p.Convert_to_type_only_export,S_e,p.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[S_e],getAllCodeActions:function(t){let n=new Set;return oo(t,b_e,(i,s)=>{let o=Zwe(s,t.sourceFile);o&&nd(n,Ua(o.parent.parent))&&eIe(i,o,t)})}});function Zwe(e,t){return Vn(ki(t,e.start).parent,zu)}function eIe(e,t,n){if(!t)return;let i=t.parent,s=i.parent,o=eXe(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,An(i.elements,u=>!Ts(o,u))),s.moduleSpecifier,void 0),_=A.createExportDeclaration(void 0,!0,A.createNamedExports(o),s.moduleSpecifier,void 0);e.replaceNode(n.sourceFile,s,c,{leadingTriviaOption:fn.LeadingTriviaOption.IncludeAll,trailingTriviaOption:fn.TrailingTriviaOption.Exclude}),e.insertNodeAfter(n.sourceFile,s,_)}}function eXe(e,t){let n=e.parent;if(n.elements.length===1)return n.elements;let i=ale(k_(n),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return An(n.elements,s=>{var o;return s===e||((o=sle(s,i))==null?void 0:o.code)===b_e[0]})}var tIe=[p._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,p._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],lH="convertToTypeOnlyImport";aa({errorCodes:tIe,getCodeActions:function(t){var n;let i=rIe(t.sourceFile,t.span.start);if(i){let s=fn.ChangeTracker.with(t,_=>QL(_,t.sourceFile,i)),o=i.kind===276&&sc(i.parent.parent.parent)&&nIe(i,t.sourceFile,t.program)?fn.ChangeTracker.with(t,_=>QL(_,t.sourceFile,i.parent.parent.parent)):void 0,c=$s(lH,s,i.kind===276?[p.Use_type_0,((n=i.propertyName)==null?void 0:n.text)??i.name.text]:p.Use_import_type,lH,p.Fix_all_with_type_only_imports);return pt(o)?[em(lH,o,p.Use_import_type),c]:[c]}},fixIds:[lH],getAllCodeActions:function(t){let n=new Set;return oo(t,tIe,(i,s)=>{let o=rIe(s.file,s.start);o?.kind===272&&!n.has(o)?(QL(i,s.file,o),n.add(o)):o?.kind===276&&sc(o.parent.parent.parent)&&!n.has(o.parent.parent.parent)&&nIe(o,s.file,t.program)?(QL(i,s.file,o.parent.parent.parent),n.add(o.parent.parent.parent)):o?.kind===276&&QL(i,s.file,o)})}});function rIe(e,t){let{parent:n}=ki(e,t);return a_(n)||sc(n)&&n.importClause?n:void 0}function nIe(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,_=>{let u=s.getSymbolAtLocation(_);return!!u&&s.symbolIsValue(u)||!Bb(_)}))return!1;return!0}function QL(e,t,n){var i;if(a_(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(XS(n.modifiers,!0),A.createImportClause(!0,ro(s.name,!0),void 0),ro(n.moduleSpecifier,!0),ro(n.attributes,!0)),A.createImportDeclaration(XS(n.modifiers,!0),A.createImportClause(!0,void 0,ro(s.namedBindings,!0)),ro(n.moduleSpecifier,!0),ro(n.attributes,!0))]);else{let o=((i=s.namedBindings)==null?void 0:i.kind)===275?A.updateNamedImports(s.namedBindings,ul(s.namedBindings.elements,_=>A.updateImportSpecifier(_,!1,_.propertyName,_.name))):s.namedBindings,c=A.updateImportDeclaration(n,n.modifiers,A.updateImportClause(s,!0,s.name,o),n.moduleSpecifier,n.attributes);e.replaceNode(t,n,c)}}}var T_e="convertTypedefToType",iIe=[p.JSDoc_typedef_may_be_converted_to_TypeScript_type.code];aa({fixIds:[T_e],errorCodes:iIe,getCodeActions(e){let t=yy(e.host,e.formatContext.options),n=ki(e.sourceFile,e.span.start);if(!n)return;let i=fn.ChangeTracker.with(e,s=>sIe(s,n,e.sourceFile,t));if(i.length>0)return[$s(T_e,i,p.Convert_typedef_to_TypeScript_type,T_e,p.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:e=>oo(e,iIe,(t,n)=>{let i=yy(e.host,e.formatContext.options),s=ki(n.file,n.start);s&&sIe(t,s,n.file,i,!0)})});function sIe(e,t,n,i,s=!1){if(!Ek(t))return;let o=rXe(t);if(!o)return;let c=t.parent,{leftSibling:_,rightSibling:u}=tXe(t),g=c.getStart(),m="";!_&&c.comment&&(g=aIe(c,c.getStart(),t.getStart()),m=`${i} */${i}`),_&&(s&&Ek(_)?(g=t.getStart(),m=""):(g=aIe(c,_.getStart(),t.getStart()),m=`${i} */${i}`));let h=c.getEnd(),S="";u&&(s&&Ek(u)?(h=u.getStart(),S=`${i}${i}`):(h=u.getStart(),S=`${i}/**${i} * `)),e.replaceRange(n,{pos:g,end:h},o,{prefix:m,suffix:S})}function tXe(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 aIe(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 rXe(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===322)return nXe(i,n);if(n.kind===309)return iXe(i,n)}}function nXe(e,t){let n=oIe(t);if(pt(n))return A.createInterfaceDeclaration(void 0,e,void 0,void 0,n)}function iXe(e,t){let n=ro(t.type);if(n)return A.createTypeAliasDeclaration(void 0,A.createIdentifier(e),void 0,n)}function oIe(e){let t=e.jsDocPropertyTags;return pt(t)?Vi(t,i=>{var s;let o=sXe(i),c=(s=i.typeExpression)==null?void 0:s.type,_=i.isBracketed,u;if(c&&Ak(c)){let g=oIe(c);u=A.createTypeLiteralNode(g)}else c&&(u=ro(c));if(u&&o){let g=_?A.createToken(58):void 0;return A.createPropertySignature(void 0,o,g,u)}}):void 0}function sXe(e){return e.name.kind===80?e.name.text:e.name.right.text}function aXe(e){return Lf(e)?ga(e.jsDoc,t=>{var n;return(n=t.tags)==null?void 0:n.filter(i=>Ek(i))}):[]}var k_e="convertLiteralTypeToMappedType",cIe=[p._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:cIe,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=lIe(n,i.start);if(!s)return;let{name:o,constraint:c}=s,_=fn.ChangeTracker.with(t,u=>uIe(u,n,s));return[$s(k_e,_,[p.Convert_0_to_1_in_0,c,o],k_e,p.Convert_all_type_literals_to_mapped_type)]},fixIds:[k_e],getAllCodeActions:e=>oo(e,cIe,(t,n)=>{let i=lIe(n.file,n.start);i&&uIe(t,n.file,i)})});function lIe(e,t){let n=ki(e,t);if(je(n)){let i=Zs(n.parent.parent,s_),s=n.getText(e);return{container:Zs(i.parent,v_),typeNode:i.type,constraint:s,name:s==="K"?"P":"K"}}}function uIe(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 _Ie=[p.Class_0_incorrectly_implements_interface_1.code,p.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],x_e="fixClassIncorrectlyImplementsInterface";aa({errorCodes:_Ie,getCodeActions(e){let{sourceFile:t,span:n}=e,i=fIe(t,n.start);return Vi(Qw(i),s=>{let o=fn.ChangeTracker.with(e,c=>dIe(e,s,t,i,c,e.preferences));return o.length===0?void 0:$s(x_e,o,[p.Implement_interface_0,s.getText(t)],x_e,p.Implement_all_unimplemented_interfaces)})},fixIds:[x_e],getAllCodeActions(e){let t=new Set;return oo(e,_Ie,(n,i)=>{let s=fIe(i.file,i.start);if(nd(t,Ua(s)))for(let o of Qw(s))dIe(e,o,i.file,s,n,e.preferences)})}});function fIe(e,t){return w.checkDefined(su(ki(e,t)),"There should be a containing class")}function pIe(e){return!e.valueDeclaration||!(r_(e.valueDeclaration)&2)}function dIe(e,t,n,i,s,o){let c=e.program.getTypeChecker(),_=oXe(i,c),u=c.getTypeAtLocation(t),m=c.getPropertiesOfType(u).filter(P8(pIe,D=>!_.has(D.escapedName))),h=c.getTypeAtLocation(i),S=On(i.members,D=>lc(D));h.getNumberIndexType()||x(u,1),h.getStringIndexType()||x(u,0);let T=nT(n,e.program,o,e.host);hfe(i,m,n,e,o,T,D=>I(n,i,D)),T.writeFixes(s);function x(D,E){let O=c.getIndexInfoOfType(D,E);O&&I(n,i,c.indexInfoToIndexSignatureDeclaration(O,i,void 0,void 0,sD(e)))}function I(D,E,O){S?s.insertNodeAfter(D,S,O):s.insertMemberAtStart(D,E,O)}}function oXe(e,t){let n=Dm(e);if(!n)return ea();let i=t.getTypeAtLocation(n),s=t.getPropertiesOfType(i);return ea(s.filter(pIe))}var mIe="import",gIe="fixMissingImport",hIe=[p.Cannot_find_name_0.code,p.Cannot_find_name_0_Did_you_mean_1.code,p.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,p.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,p.Cannot_find_namespace_0.code,p._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,p._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,p.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,p._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code,p.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery.code,p.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later.code,p.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom.code,p.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,p.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code,p.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,p.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,p.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode.code,p.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,p.Cannot_find_namespace_0_Did_you_mean_1.code,p.Cannot_extend_an_interface_0_Did_you_mean_implements.code,p.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found.code];aa({errorCodes:hIe,getCodeActions(e){let{errorCode:t,preferences:n,sourceFile:i,span:s,program:o}=e,c=kIe(e,t,s.start,!0);if(c)return c.map(({fix:_,symbolName:u,errorIdentifierText:g})=>I_e(e,i,u,_,u!==g,o,n))},fixIds:[gIe],getAllCodeActions:e=>{let{sourceFile:t,program:n,preferences:i,host:s,cancellationToken:o}=e,c=yIe(t,n,!0,i,s,o);return fC(e,hIe,_=>c.addImportFromDiagnostic(_,e)),_C(fn.ChangeTracker.with(e,c.writeFixes))}});function nT(e,t,n,i,s){return yIe(e,t,!1,n,i,s)}function yIe(e,t,n,i,s,o){let c=t.getCompilerOptions(),_=[],u=[],g=new Map,m=new Set,h=new Set,S=new Map;return{addImportFromDiagnostic:I,addImportFromExportedSymbol:D,addImportForModuleSymbol:E,writeFixes:G,hasFixes:K,addImportForUnresolvedIdentifier:x,addImportForNonExistentExport:O,removeExistingImport:F,addVerbatimImport:T};function T(U){h.add(U)}function x(U,me,te){let V=yXe(U,me,te);!V||!V.length||B(Ea(V))}function I(U,me){let te=kIe(me,U.code,U.start,n);!te||!te.length||B(Ea(te))}function D(U,me,te){var V,ne;let ie=w.checkDefined(U.parent,"Expected exported symbol to have module symbol as parent"),oe=TL(U,wa(c)),de=t.getTypeChecker(),ye=de.getMergedSymbol(du(U,de)),H=bIe(e,ye,oe,ie,!1,t,s,i,o);if(!H){w.assert((V=i.autoImportFileExcludePatterns)==null?void 0:V.length);return}let ve=N3(e,t),Ge=C_e(e,H,t,void 0,!!me,ve,s,i);if(Ge){let De=((ne=Vn(te?.name,je))==null?void 0:ne.text)??oe,se,xe;te&&Ew(te)&&(Ge.kind===3||Ge.kind===2)&&Ge.addAsTypeOnly===1&&(se=2),U.name!==De&&(xe=U.name),Ge={...Ge,...se===void 0?{}:{addAsTypeOnly:se},...xe===void 0?{}:{propertyName:xe}},B({fix:Ge,symbolName:De??oe,errorIdentifierText:void 0})}}function E(U,me,te){var V,ne,ie;let oe=t.getTypeChecker(),de=oe.getAliasedSymbol(U);w.assert(de.flags&1536,"Expected symbol to be a module");let ye=a1(t,s),H=hy.getModuleSpecifiersWithCacheInfo(de,oe,c,e,ye,i,void 0,!0),ve=N3(e,t),Ge=XL(me,!0,void 0,U.flags,t.getTypeChecker(),c);Ge=Ge===1&&Ew(te)?2:1;let De=sc(te)?fk(te)?1:2:a_(te)?0:Cd(te)&&te.name?1:2,se=[{symbol:U,moduleSymbol:de,moduleFileName:(ie=(ne=(V=de.declarations)==null?void 0:V[0])==null?void 0:ne.getSourceFile())==null?void 0:ie.fileName,exportKind:4,targetFlags:U.flags,isFromPackageJson:!1}],xe=C_e(e,se,t,void 0,!!me,ve,s,i),_e;xe&&De!==2?_e={...xe,addAsTypeOnly:Ge,importKind:De}:_e={kind:3,moduleSpecifierKind:xe!==void 0?xe.moduleSpecifierKind:H.kind,moduleSpecifier:xe!==void 0?xe.moduleSpecifier:Ea(H.moduleSpecifiers),importKind:De,addAsTypeOnly:Ge,useRequire:ve},B({fix:_e,symbolName:U.name,errorIdentifierText:void 0})}function O(U,me,te,V,ne){let ie=t.getSourceFile(me),oe=N3(e,t);if(ie&&ie.symbol){let{fixes:de}=KL([{exportKind:te,isFromPackageJson:!1,moduleFileName:me,moduleSymbol:ie.symbol,targetFlags:V}],void 0,ne,oe,t,e,s,i);de.length&&B({fix:de[0],symbolName:U,errorIdentifierText:U})}else{let de=IL(me,99,t,s),ye=hy.getLocalModuleSpecifierBetweenFileNames(e,me,c,a1(t,s),i),H=uH(de,te,t),ve=XL(ne,!0,void 0,V,t.getTypeChecker(),c);B({fix:{kind:3,moduleSpecifierKind:"relative",moduleSpecifier:ye,importKind:H,addAsTypeOnly:ve,useRequire:oe},symbolName:U,errorIdentifierText:U})}}function F(U){U.kind===273&&w.assertIsDefined(U.name,"ImportClause should have a name if it's being removed"),m.add(U)}function B(U){var me,te,V;let{fix:ne,symbolName:ie}=U;switch(ne.kind){case 0:_.push(ne);break;case 1:u.push(ne);break;case 2:{let{importClauseOrBindingPattern:H,importKind:ve,addAsTypeOnly:Ge,propertyName:De}=ne,se=g.get(H);if(se||g.set(H,se={importClauseOrBindingPattern:H,defaultImport:void 0,namedImports:new Map}),ve===0){let xe=(me=se?.namedImports.get(ie))==null?void 0:me.addAsTypeOnly;se.namedImports.set(ie,{addAsTypeOnly:oe(xe,Ge),propertyName:De})}else w.assert(se.defaultImport===void 0||se.defaultImport.name===ie,"(Add to Existing) Default import should be missing or match symbolName"),se.defaultImport={name:ie,addAsTypeOnly:oe((te=se.defaultImport)==null?void 0:te.addAsTypeOnly,Ge)};break}case 3:{let{moduleSpecifier:H,importKind:ve,useRequire:Ge,addAsTypeOnly:De,propertyName:se}=ne,xe=de(H,ve,Ge,De);switch(w.assert(xe.useRequire===Ge,"(Add new) Tried to add an `import` and a `require` for the same module"),ve){case 1:w.assert(xe.defaultImport===void 0||xe.defaultImport.name===ie,"(Add new) Default import should be missing or match symbolName"),xe.defaultImport={name:ie,addAsTypeOnly:oe((V=xe.defaultImport)==null?void 0:V.addAsTypeOnly,De)};break;case 0:let _e=(xe.namedImports||(xe.namedImports=new Map)).get(ie);xe.namedImports.set(ie,[oe(_e,De),se]);break;case 3:if(c.verbatimModuleSyntax){let tt=(xe.namedImports||(xe.namedImports=new Map)).get(ie);xe.namedImports.set(ie,[oe(tt,De),se])}else w.assert(xe.namespaceLikeImport===void 0||xe.namespaceLikeImport.name===ie,"Namespacelike import shoudl be missing or match symbolName"),xe.namespaceLikeImport={importKind:ve,name:ie,addAsTypeOnly:De};break;case 2:w.assert(xe.namespaceLikeImport===void 0||xe.namespaceLikeImport.name===ie,"Namespacelike import shoudl be missing or match symbolName"),xe.namespaceLikeImport={importKind:ve,name:ie,addAsTypeOnly:De};break}break}case 4:break;default:w.assertNever(ne,`fix wasn't never - got kind ${ne.kind}`)}function oe(H,ve){return Math.max(H??0,ve)}function de(H,ve,Ge,De){let se=ye(H,!0),xe=ye(H,!1),_e=S.get(se),tt=S.get(xe),ct={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:Ge};return ve===1&&De===2?_e||(S.set(se,ct),ct):De===1&&(_e||tt)?_e||tt:tt||(S.set(xe,ct),ct)}function ye(H,ve){return`${ve?1:0}|${H}`}}function G(U,me){var te,V;let ne;e.imports!==void 0&&e.imports.length===0&&me!==void 0?ne=me:ne=Tf(e,i);for(let de of _)D_e(U,e,de);for(let de of u)NIe(U,e,de,ne);let ie;if(m.size){w.assert(ph(e),"Cannot remove imports from a future source file");let de=new Set(Vi([...m],De=>gr(De,sc))),ye=new Set(Vi([...m],De=>gr(De,H6))),H=[...de].filter(De=>{var se,xe,_e;return!g.has(De.importClause)&&(!((se=De.importClause)!=null&&se.name)||m.has(De.importClause))&&(!Vn((xe=De.importClause)==null?void 0:xe.namedBindings,kh)||m.has(De.importClause.namedBindings))&&(!Vn((_e=De.importClause)==null?void 0:_e.namedBindings,jm)||Oi(De.importClause.namedBindings.elements,tt=>m.has(tt)))}),ve=[...ye].filter(De=>(De.name.kind!==206||!g.has(De.name))&&(De.name.kind!==206||Oi(De.name.elements,se=>m.has(se)))),Ge=[...de].filter(De=>{var se,xe;return((se=De.importClause)==null?void 0:se.namedBindings)&&H.indexOf(De)===-1&&!((xe=g.get(De.importClause))!=null&&xe.namedImports)&&(De.importClause.namedBindings.kind===274||Oi(De.importClause.namedBindings.elements,_e=>m.has(_e)))});for(let De of[...H,...ve])U.delete(e,De);for(let De of Ge)U.replaceNode(e,De.importClause,A.updateImportClause(De.importClause,De.importClause.isTypeOnly,De.importClause.name,void 0));for(let De of m){let se=gr(De,sc);se&&H.indexOf(se)===-1&&Ge.indexOf(se)===-1?De.kind===273?U.delete(e,De.name):(w.assert(De.kind===276,"NamespaceImport should have been handled earlier"),(te=g.get(se.importClause))!=null&&te.namedImports?(ie??(ie=new Set)).add(De):U.delete(e,De)):De.kind===208?(V=g.get(De.parent))!=null&&V.namedImports?(ie??(ie=new Set)).add(De):U.delete(e,De):De.kind===271&&U.delete(e,De)}}g.forEach(({importClauseOrBindingPattern:de,defaultImport:ye,namedImports:H})=>{EIe(U,e,de,ye,ps(H.entries(),([ve,{addAsTypeOnly:Ge,propertyName:De}])=>({addAsTypeOnly:Ge,propertyName:De,name:ve})),ie,i)});let oe;S.forEach(({useRequire:de,defaultImport:ye,namedImports:H,namespaceLikeImport:ve},Ge)=>{let De=Ge.slice(2),xe=(de?FIe:RIe)(De,ne,ye,H&&ps(H.entries(),([_e,[tt,ct]])=>({addAsTypeOnly:tt,propertyName:ct,name:_e})),ve,c,i);oe=Wx(oe,xe)}),oe=Wx(oe,$()),oe&&Wq(U,e,oe,!0,i)}function $(){if(!h.size)return;let U=new Set(Vi([...h],te=>gr(te,sc))),me=new Set(Vi([...h],te=>gr(te,Q6)));return[...Vi([...h],te=>te.kind===271?ro(te,!0):void 0),...[...U].map(te=>{var V;return h.has(te)?ro(te,!0):ro(A.updateImportDeclaration(te,te.modifiers,te.importClause&&A.updateImportClause(te.importClause,te.importClause.isTypeOnly,h.has(te.importClause)?te.importClause.name:void 0,h.has(te.importClause.namedBindings)?te.importClause.namedBindings:(V=Vn(te.importClause.namedBindings,jm))!=null&&V.elements.some(ne=>h.has(ne))?A.updateNamedImports(te.importClause.namedBindings,te.importClause.namedBindings.elements.filter(ne=>h.has(ne))):void 0),te.moduleSpecifier,te.attributes),!0)}),...[...me].map(te=>h.has(te)?ro(te,!0):ro(A.updateVariableStatement(te,te.modifiers,A.updateVariableDeclarationList(te.declarationList,Vi(te.declarationList.declarations,V=>h.has(V)?V:A.updateVariableDeclaration(V,V.name.kind===206?A.updateObjectBindingPattern(V.name,V.name.elements.filter(ne=>h.has(ne))):V.name,V.exclamationToken,V.type,V.initializer)))),!0))]}function K(){return _.length>0||u.length>0||g.size>0||S.size>0||h.size>0||m.size>0}}function cXe(e,t,n,i){let s=ZI(e,i,n),o=SIe(e,t);return{getModuleSpecifierForBestExportInfo:c};function c(_,u,g,m){let{fixes:h,computedWithoutCacheCount:S}=KL(_,u,g,!1,t,e,n,i,o,m),T=CIe(h,e,t,s,n,i);return T&&{...T,computedWithoutCacheCount:S}}}function lXe(e,t,n,i,s,o,c,_,u,g,m,h){let S;n?(S=v3(i,c,_,m,h).get(i.path,n),w.assertIsDefined(S,"Some exportInfo should match the specified exportMapKey")):(S=pB(rd(t.name))?[_Xe(e,s,t,_,c)]:bIe(i,e,s,t,o,_,c,m,h),w.assertIsDefined(S,"Some exportInfo should match the specified symbol / moduleSymbol"));let T=N3(i,_),x=Bb(ki(i,g)),I=w.checkDefined(C_e(i,S,_,g,x,T,c,m));return{moduleSpecifier:I.moduleSpecifier,codeAction:vIe(I_e({host:c,formatContext:u,preferences:m},i,s,I,!1,_,m))}}function uXe(e,t,n,i,s,o){let c=n.getCompilerOptions(),_=DW(w_e(e,n.getTypeChecker(),t,c)),u=PIe(e,t,_,n),g=_!==t.text;return u&&vIe(I_e({host:i,formatContext:s,preferences:o},e,_,u,g,n,o))}function C_e(e,t,n,i,s,o,c,_){let u=ZI(e,_,c);return CIe(KL(t,i,s,o,n,e,c,_).fixes,e,n,u,c,_)}function vIe({description:e,changes:t,commands:n}){return{description:e,changes:t,commands:n}}function bIe(e,t,n,i,s,o,c,_,u){let g=TIe(o,c),m=_.autoImportFileExcludePatterns&&_le(c,_),h=o.getTypeChecker().getMergedSymbol(i),S=m&&h.declarations&&Yo(h,307),T=S&&m(S);return v3(e,c,o,_,u).search(e.path,s,x=>x===n,x=>{let I=g(x[0].isFromPackageJson);if(I.getMergedSymbol(du(x[0].symbol,I))===t&&(T||x.some(D=>I.getMergedSymbol(D.moduleSymbol)===i||D.symbol.parent===i)))return x})}function _Xe(e,t,n,i,s){var o,c;let _=g(i.getTypeChecker(),!1);if(_)return _;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(m,h){let S=DL(n,m);if(S&&du(S.symbol,m)===e)return{symbol:S.symbol,moduleSymbol:n,moduleFileName:void 0,exportKind:S.exportKind,targetFlags:du(e,m).flags,isFromPackageJson:h};let T=m.tryGetMemberInModuleExportsAndProperties(t,n);if(T&&du(T,m)===e)return{symbol:T,moduleSymbol:n,moduleFileName:void 0,exportKind:0,targetFlags:du(e,m).flags,isFromPackageJson:h}}}function KL(e,t,n,i,s,o,c,_,u=ph(o)?SIe(o,s):void 0,g){let m=s.getTypeChecker(),h=u?ga(e,u.getImportsForExportInfo):qe,S=t!==void 0&&fXe(h,t),T=dXe(h,n,m,s.getCompilerOptions());if(T)return{computedWithoutCacheCount:0,fixes:[...S?[S]:qe,T]};let{fixes:x,computedWithoutCacheCount:I=0}=gXe(e,h,s,o,t,n,i,c,_,g);return{computedWithoutCacheCount:I,fixes:[...S?[S]:qe,...x]}}function fXe(e,t){return po(e,({declaration:n,importKind:i})=>{var s;if(i!==0)return;let o=pXe(n),c=o&&((s=l2(n))==null?void 0:s.text);if(c)return{kind:0,namespacePrefix:o,usagePosition:t,moduleSpecifierKind:void 0,moduleSpecifier:c}})}function pXe(e){var t,n,i;switch(e.kind){case 260:return(t=Vn(e.name,je))==null?void 0:t.text;case 271:return e.name.text;case 351:case 272:return(i=Vn((n=e.importClause)==null?void 0:n.namedBindings,kh))==null?void 0:i.name.text;default:return w.assertNever(e)}}function XL(e,t,n,i,s,o){return e?n&&o.verbatimModuleSyntax&&(!(i&111551)||s.getTypeOnlyAliasDeclaration(n))?2:1:4}function dXe(e,t,n,i){let s;for(let c of e){let _=o(c);if(!_)continue;let u=Ew(_.importClauseOrBindingPattern);if(_.addAsTypeOnly!==4&&u||_.addAsTypeOnly===4&&!u)return _;s??(s=_)}return s;function o({declaration:c,importKind:_,symbol:u,targetFlags:g}){if(_===3||_===2||c.kind===271)return;if(c.kind===260)return(_===0||_===1)&&c.name.kind===206?{kind:2,importClauseOrBindingPattern:c.name,importKind:_,moduleSpecifierKind:void 0,moduleSpecifier:c.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;let{importClause:m}=c;if(!m||!Ha(c.moduleSpecifier))return;let{name:h,namedBindings:S}=m;if(m.isTypeOnly&&!(_===0&&S))return;let T=XL(t,!1,u,g,n,i);if(!(_===1&&(h||T===2&&S))&&!(_===0&&S?.kind===274))return{kind:2,importClauseOrBindingPattern:m,importKind:_,moduleSpecifierKind:void 0,moduleSpecifier:c.moduleSpecifier.text,addAsTypeOnly:T}}}function SIe(e,t){let n=t.getTypeChecker(),i;for(let s of e.imports){let o=eA(s);if(H6(o.parent)){let c=n.resolveExternalModuleName(s);c&&(i||(i=Kp())).add(ua(c),o.parent)}else if(o.kind===272||o.kind===271||o.kind===351){let c=n.getSymbolAtLocation(s);c&&(i||(i=Kp())).add(ua(c),o)}}return{getImportsForExportInfo:({moduleSymbol:s,exportKind:o,targetFlags:c,symbol:_})=>{let u=i?.get(ua(s));if(!u||g_(e)&&!(c&111551)&&!Oi(u,zm))return qe;let g=uH(e,o,t);return u.map(m=>({declaration:m,importKind:g,symbol:_,targetFlags:c}))}}}function N3(e,t){if(!vh(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 n_(n)<5;if(A_e(e,t)===1)return!0;if(A_e(e,t)===99)return!1;for(let i of t.getSourceFiles())if(!(i===e||!g_(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function TIe(e,t){return Sm(n=>n?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function mXe(e,t,n,i,s,o,c,_,u){let g=vh(t.fileName),m=e.getCompilerOptions(),h=a1(e,c),S=TIe(e,c),T=Bu(m),x=cL(T),I=u?O=>hy.tryGetModuleSpecifiersFromCache(O.moduleSymbol,t,h,_):(O,F)=>hy.getModuleSpecifiersWithCacheInfo(O.moduleSymbol,F,m,t,h,_,void 0,!0),D=0,E=ga(o,(O,F)=>{let B=S(O.isFromPackageJson),{computedWithoutCache:G,moduleSpecifiers:$,kind:K}=I(O,B)??{},U=!!(O.targetFlags&111551),me=XL(i,!0,O.symbol,O.targetFlags,B,m);return D+=G?1:0,Vi($,te=>{if(x&&V0(te))return;if(!U&&g&&n!==void 0)return{kind:1,moduleSpecifierKind:K,moduleSpecifier:te,usagePosition:n,exportInfo:O,isReExport:F>0};let V=uH(t,O.exportKind,e),ne;if(n!==void 0&&V===3&&O.exportKind===0){let ie=B.resolveExternalModuleSymbol(O.moduleSymbol),oe;ie!==O.moduleSymbol&&(oe=PL(ie,B,wa(m),Do)),oe||(oe=g3(O.moduleSymbol,wa(m),!1)),ne={namespacePrefix:oe,usagePosition:n}}return{kind:3,moduleSpecifierKind:K,moduleSpecifier:te,importKind:V,useRequire:s,addAsTypeOnly:me,exportInfo:O,isReExport:F>0,qualification:ne}})});return{computedWithoutCacheCount:D,fixes:E}}function gXe(e,t,n,i,s,o,c,_,u,g){let m=po(t,h=>hXe(h,o,c,n.getTypeChecker(),n.getCompilerOptions()));return m?{fixes:[m]}:mXe(n,i,s,o,c,e,_,u,g)}function hXe({declaration:e,importKind:t,symbol:n,targetFlags:i},s,o,c,_){var u;let g=(u=l2(e))==null?void 0:u.text;if(g){let m=o?4:XL(s,!0,n,i,c,_);return{kind:3,moduleSpecifierKind:void 0,moduleSpecifier:g,importKind:t,addAsTypeOnly:m,useRequire:o}}}function kIe(e,t,n,i){let s=ki(e.sourceFile,n),o;if(t===p._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)o=TXe(e,s);else if(je(s))if(t===p._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){let _=DW(w_e(e.sourceFile,e.program.getTypeChecker(),s,e.program.getCompilerOptions())),u=PIe(e.sourceFile,s,_,e.program);return u&&[{fix:u,symbolName:_,errorIdentifierText:s.text}]}else o=DIe(e,s,i);else return;let c=ZI(e.sourceFile,e.preferences,e.host);return o&&xIe(o,e.sourceFile,e.program,c,e.host,e.preferences)}function xIe(e,t,n,i,s,o){let c=_=>ko(_,s.getCurrentDirectory(),cy(s));return lf(e,(_,u)=>wb(!!_.isJsxNamespaceFix,!!u.isJsxNamespaceFix)||Po(_.fix.kind,u.fix.kind)||wIe(_.fix,u.fix,t,n,o,i.allowsImportingSpecifier,c))}function yXe(e,t,n){let i=DIe(e,t,n),s=ZI(e.sourceFile,e.preferences,e.host);return i&&xIe(i,e.sourceFile,e.program,s,e.host,e.preferences)}function CIe(e,t,n,i,s,o){if(pt(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((c,_)=>wIe(_,c,t,n,o,i.allowsImportingSpecifier,u=>ko(u,s.getCurrentDirectory(),cy(s)))===-1?_:c)}function wIe(e,t,n,i,s,o,c){return e.kind!==0&&t.kind!==0?wb(t.moduleSpecifierKind!=="node_modules"||o(t.moduleSpecifier),e.moduleSpecifierKind!=="node_modules"||o(e.moduleSpecifier))||vXe(e,t,s)||SXe(e.moduleSpecifier,t.moduleSpecifier,n,i)||wb(IIe(e,n.path,c),IIe(t,n.path,c))||F4(e.moduleSpecifier,t.moduleSpecifier):0}function vXe(e,t,n){return n.importModuleSpecifierPreference==="non-relative"||n.importModuleSpecifierPreference==="project-relative"?wb(e.moduleSpecifierKind==="relative",t.moduleSpecifierKind==="relative"):0}function IIe(e,t,n){var i;if(e.isReExport&&((i=e.exportInfo)!=null&&i.moduleFileName)&&bXe(e.exportInfo.moduleFileName)){let s=n(Yn(e.exportInfo.moduleFileName));return Yi(t,s)}return!1}function bXe(e){return fl(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function SXe(e,t,n,i){return Yi(e,"node:")&&!Yi(t,"node:")?xL(n,i)?-1:1:Yi(t,"node:")&&!Yi(e,"node:")?xL(n,i)?1:-1:0}function TXe({sourceFile:e,program:t,host:n,preferences:i},s){let o=t.getTypeChecker(),c=kXe(s,o);if(!c)return;let _=o.getAliasedSymbol(c),u=c.name,g=[{symbol:c,moduleSymbol:_,moduleFileName:void 0,exportKind:3,targetFlags:_.flags,isFromPackageJson:!1}],m=N3(e,t);return KL(g,void 0,!1,m,t,e,n,i).fixes.map(S=>{var T;return{fix:S,symbolName:u,errorIdentifierText:(T=Vn(s,je))==null?void 0:T.text}})}function kXe(e,t){let n=je(e)?t.getSymbolAtLocation(e):void 0;if(gO(n))return n;let{parent:i}=e;if(Wu(i)&&i.tagName===e||wd(i)){let s=t.resolveName(t.getJsxNamespace(i),Wu(i)?e:i,111551,!1);if(gO(s))return s}}function uH(e,t,n,i){if(n.getCompilerOptions().verbatimModuleSyntax&&AXe(e,n)===1)return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return IXe(e,n.getCompilerOptions(),!!i);case 3:return xXe(e,n,!!i);case 4:return 2;default:return w.assertNever(t)}}function xXe(e,t,n){if(x2(t.getCompilerOptions()))return 1;let i=n_(t.getCompilerOptions());switch(i){case 2:case 1:case 3:return vh(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 199:return A_e(e,t)===99?2:3;default:return w.assertNever(i,`Unexpected moduleKind ${i}`)}}function DIe({sourceFile:e,program:t,cancellationToken:n,host:i,preferences:s},o,c){let _=t.getTypeChecker(),u=t.getCompilerOptions();return ga(w_e(e,_,o,u),g=>{if(g==="default")return;let m=Bb(o),h=N3(e,t),S=wXe(g,Uw(o),zk(o),n,e,t,c,i,s);return ps(bW(S.values(),T=>KL(T,o.getStart(e),m,h,t,e,i,s).fixes),T=>({fix:T,symbolName:g,errorIdentifierText:o.text,isJsxNamespaceFix:g!==o.text}))})}function PIe(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||Fr(c)!==e))return{kind:4,typeOnlyAliasDeclaration:c}}function w_e(e,t,n,i){let s=n.parent;if((Wu(s)||jS(s))&&s.tagName===n&&l$(i.jsx)){let o=t.getJsxNamespace(e);if(CXe(o,n,t))return!Yw(n.text)&&!t.resolveName(n.text,n,111551,!1)?[n.text,o]:[o]}return[n.text]}function CXe(e,t,n){if(Yw(t.text))return!0;let i=n.resolveName(e,t,111551,!0);return!i||pt(i.declarations,Xy)&&!(i.flags&111551)}function wXe(e,t,n,i,s,o,c,_,u){var g;let m=Kp(),h=ZI(s,u,_),S=(g=_.getModuleSpecifierCache)==null?void 0:g.call(_),T=Sm(I=>a1(I?_.getPackageJsonAutoImportProvider():o,_));function x(I,D,E,O,F,B){let G=T(B);if(f$(F,s,D,I,u,h,G,S)){let $=F.getTypeChecker();m.add(Qce(E,$).toString(),{symbol:E,moduleSymbol:I,moduleFileName:D?.fileName,exportKind:O,targetFlags:du(E,$).flags,isFromPackageJson:B})}}return p$(o,_,u,c,(I,D,E,O)=>{let F=E.getTypeChecker();i.throwIfCancellationRequested();let B=E.getCompilerOptions(),G=DL(I,F);G&&LIe(F.getSymbolFlags(G.symbol),n)&&PL(G.symbol,F,wa(B),(K,U)=>(t?U??K:K)===e)&&x(I,D,G.symbol,G.exportKind,E,O);let $=F.tryGetMemberInModuleExportsAndProperties(e,I);$&&LIe(F.getSymbolFlags($),n)&&x(I,D,$,0,E,O)}),m}function IXe(e,t,n){let i=x2(t),s=vh(e.fileName);if(!s&&n_(t)>=5)return i?1:2;if(s)return e.externalModuleIndicator||n?i?1:2:3;for(let o of e.statements??qe)if(Ol(o)&&!Tc(o.moduleReference))return 3;return i?1:3}function I_e(e,t,n,i,s,o,c){let _,u=fn.ChangeTracker.with(e,g=>{_=DXe(g,t,n,i,s,o,c)});return $s(mIe,u,_,gIe,p.Add_all_missing_imports)}function DXe(e,t,n,i,s,o,c){let _=Tf(t,c);switch(i.kind){case 0:return D_e(e,t,i),[p.Change_0_to_1,n,`${i.namespacePrefix}.${n}`];case 1:return NIe(e,t,i,_),[p.Change_0_to_1,n,MIe(i.moduleSpecifier,_)+n];case 2:{let{importClauseOrBindingPattern:u,importKind:g,addAsTypeOnly:m,moduleSpecifier:h}=i;EIe(e,t,u,g===1?{name:n,addAsTypeOnly:m}:void 0,g===0?[{name:n,addAsTypeOnly:m}]:qe,void 0,c);let S=rd(h);return s?[p.Import_0_from_1,n,S]:[p.Update_import_from_0,S]}case 3:{let{importKind:u,moduleSpecifier:g,addAsTypeOnly:m,useRequire:h,qualification:S}=i,T=h?FIe:RIe,x=u===1?{name:n,addAsTypeOnly:m}:void 0,I=u===0?[{name:n,addAsTypeOnly:m}]:void 0,D=u===2||u===3?{importKind:u,name:S?.namespacePrefix||n,addAsTypeOnly:m}:void 0;return Wq(e,t,T(g,_,x,I,D,o.getCompilerOptions(),c),!0,c),S&&D_e(e,t,S),s?[p.Import_0_from_1,n,g]:[p.Add_import_from_0,g]}case 4:{let{typeOnlyAliasDeclaration:u}=i,g=PXe(e,u,o,t,c);return g.kind===276?[p.Remove_type_from_import_of_0_from_1,n,AIe(g.parent.parent)]:[p.Remove_type_from_import_declaration_from_0,AIe(g)]}default:return w.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function AIe(e){var t,n;return e.kind===271?((n=Vn((t=Vn(e.moduleReference,dy))==null?void 0:t.expression,Ha))==null?void 0:n.text)||e.moduleReference.getText():Zs(e.parent.moduleSpecifier,ya).text}function PXe(e,t,n,i,s){let o=n.getCompilerOptions(),c=o.verbatimModuleSyntax;switch(t.kind){case 276: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),m=d1.getImportSpecifierInsertionIndex(t.parent.elements,u,g);if(m!==t.parent.elements.indexOf(t))return e.delete(i,t),e.insertImportSpecifierAtIndex(i,u,t.parent,m),t}return e.deleteRange(i,{pos:w0(t.getFirstToken()),end:w0(t.propertyName??t.name)}),t}else return w.assert(t.parent.parent.isTypeOnly),_(t.parent.parent),t.parent.parent;case 273:return _(t),t;case 274:return _(t.parent),t.parent;case 271:return e.deleteRange(i,t.getChildAt(1)),t;default:w.failBadSyntaxKind(t)}function _(u){var g;if(e.delete(i,Bq(u,i)),!o.allowImportingTsExtensions){let m=l2(u.parent),h=m&&((g=n.getResolvedModuleFromModuleSpecifier(m,i))==null?void 0:g.resolvedModule);if(h?.resolvedUsingTsExtension){let S=i6(m.text,OM(m.text,o));e.replaceNode(i,m,A.createStringLiteral(S))}}if(c){let m=Vn(u.namedBindings,jm);if(m&&m.elements.length>1){d1.getNamedImportSpecifierComparerWithDetection(u.parent,s,i).isSorted!==!1&&t.kind===276&&m.elements.indexOf(t)!==0&&(e.delete(i,t),e.insertImportSpecifierAtIndex(i,t,m,0));for(let S of m.elements)S!==t&&!S.isTypeOnly&&e.insertModifierBefore(i,156,S)}}}}function EIe(e,t,n,i,s,o,c){var _;if(n.kind===206){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)]:qe,...s.map(h=>A.createBindingElement(void 0,h.propertyName,h.name))]));return}i&&m(n,i.name,"default");for(let h of s)m(n,h.name,h.propertyName);return}let u=n.isTypeOnly&&pt([i,...s],h=>h?.addAsTypeOnly===4),g=n.namedBindings&&((_=Vn(n.namedBindings,jm))==null?void 0:_.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=lf(s.map(x=>A.createImportSpecifier((!n.isTypeOnly||u)&&_H(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,lf([...g.filter(x=>!o.has(x)),...T],h)));else if(g?.length&&S!==!1){let x=u&&g?A.updateNamedImports(n.namedBindings,ul(g,I=>A.updateImportSpecifier(I,!0,I.propertyName,I.name))).elements:g;for(let I of T){let D=d1.getImportSpecifierInsertionIndex(x,I,h);e.insertImportSpecifierAtIndex(t,I,n.namedBindings,D)}}else if(g?.length)for(let x of T)e.insertNodeInListAfter(t,xa(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,Bq(n,t)),g))for(let h of g)e.insertModifierBefore(t,156,h);function m(h,S,T){let x=A.createBindingElement(void 0,T,S);h.elements.length?e.insertNodeInListAfter(t,xa(h.elements),x):e.replaceNode(t,h,A.createObjectBindingPattern([x]))}}function D_e(e,t,{namespacePrefix:n,usagePosition:i}){e.insertText(t,i,n+".")}function NIe(e,t,{moduleSpecifier:n,usagePosition:i},s){e.insertText(t,i,MIe(n,s))}function MIe(e,t){let n=Lq(t);return`import(${n}${e}${n}).`}function P_e({addAsTypeOnly:e}){return e===2}function _H(e,t){return P_e(e)||!!t.preferTypeOnlyAutoImports&&e.addAsTypeOnly!==4}function RIe(e,t,n,i,s,o,c){let _=PE(e,t),u;if(n!==void 0||i?.length){let g=(!n||P_e(n))&&Oi(i,P_e)||(o.verbatimModuleSyntax||c.preferTypeOnlyAutoImports)&&n?.addAsTypeOnly!==4&&!pt(i,m=>m.addAsTypeOnly===4);u=Wx(u,K0(n&&A.createIdentifier(n.name),i?.map(m=>A.createImportSpecifier(!g&&_H(m,c),m.propertyName===void 0?void 0:A.createIdentifier(m.propertyName),A.createIdentifier(m.name))),e,t,g))}if(s){let g=s.importKind===3?A.createImportEqualsDeclaration(void 0,_H(s,c),A.createIdentifier(s.name),A.createExternalModuleReference(_)):A.createImportDeclaration(void 0,A.createImportClause(_H(s,c),void 0,A.createNamespaceImport(A.createIdentifier(s.name))),_,void 0);u=Wx(u,g)}return w.checkDefined(u)}function FIe(e,t,n,i,s){let o=PE(e,t),c;if(n||i?.length){let _=i?.map(({name:g,propertyName:m})=>A.createBindingElement(void 0,m,g))||[];n&&_.unshift(A.createBindingElement(void 0,"default",n.name));let u=OIe(A.createObjectBindingPattern(_),o);c=Wx(c,u)}if(s){let _=OIe(s.name,o);c=Wx(c,_)}return w.checkDefined(c)}function OIe(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 LIe(e,t){return t===7?!0:t&1?!!(e&111551):t&2?!!(e&788968):t&4?!!(e&1920):!1}function A_e(e,t){return ph(e)?t.getImpliedNodeFormatForEmit(e):Bk(e,t.getCompilerOptions())}function AXe(e,t){return ph(e)?t.getEmitModuleFormatOfFile(e):bE(e,t.getCompilerOptions())}var E_e="addMissingConstraint",jIe=[p.Type_0_is_not_comparable_to_type_1.code,p.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,p.Type_0_is_not_assignable_to_type_1.code,p.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,p.Property_0_is_incompatible_with_index_signature.code,p.Property_0_in_type_1_is_not_assignable_to_type_2.code,p.Type_0_does_not_satisfy_the_constraint_1.code];aa({errorCodes:jIe,getCodeActions(e){let{sourceFile:t,span:n,program:i,preferences:s,host:o}=e,c=WIe(i,t,n);if(c===void 0)return;let _=fn.ChangeTracker.with(e,u=>BIe(u,i,s,o,t,c));return[$s(E_e,_,p.Add_extends_constraint,E_e,p.Add_extends_constraint_to_all_type_parameters)]},fixIds:[E_e],getAllCodeActions:e=>{let{program:t,preferences:n,host:i}=e,s=new Set;return _C(fn.ChangeTracker.with(e,o=>{fC(e,jIe,c=>{let _=WIe(t,c.file,pu(c.start,c.length));if(_&&nd(s,Ua(_.declaration)))return BIe(o,t,n,i,c.file,_)})}))}});function WIe(e,t,n){let i=On(e.getSemanticDiagnostics(t),c=>c.start===n.start&&c.length===n.length);if(i===void 0||i.relatedInformation===void 0)return;let s=On(i.relatedInformation,c=>c.code===p.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=Cfe(s.file,pu(s.start,s.length));if(o!==void 0&&(je(o)&&$o(o.parent)&&(o=o.parent),$o(o))){if(Ck(o.parent))return;let c=ki(t,n.start),_=e.getTypeChecker();return{constraint:NXe(_,c)||EXe(s.messageText),declaration:o,token:c}}}function BIe(e,t,n,i,s,o){let{declaration:c,constraint:_}=o,u=t.getTypeChecker();if(ys(_))e.insertText(s,c.name.end,` extends ${_}`);else{let g=wa(t.getCompilerOptions()),m=sD({program:t,host:i}),h=nT(s,t,n,i),S=wH(u,h,_,void 0,g,void 0,void 0,m);S&&(e.replaceNode(s,c,A.updateTypeParameterDeclaration(c,void 0,c.name,S,c.default)),h.writeFixes(e))}}function EXe(e){let[,t]=Gm(e,`
`,0).match(/`extends (.*)`/)||[];return t}function NXe(e,t){return di(t.parent)?e.getTypeArgumentConstraint(t.parent):(gt(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var zIe="fixOverrideModifier",M3="fixAddOverrideModifier",YL="fixRemoveOverrideModifier",JIe=[p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,p.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,p.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,p.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,p.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,p.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,p.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],GIe={[p.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:M3,fixAllDescriptions:p.Add_all_missing_override_modifiers},[p.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:M3,fixAllDescriptions:p.Add_all_missing_override_modifiers},[p.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:p.Remove_override_modifier,fixId:YL,fixAllDescriptions:p.Remove_all_unnecessary_override_modifiers},[p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:p.Remove_override_modifier,fixId:YL,fixAllDescriptions:p.Remove_override_modifier},[p.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:M3,fixAllDescriptions:p.Add_all_missing_override_modifiers},[p.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:M3,fixAllDescriptions:p.Add_all_missing_override_modifiers},[p.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:M3,fixAllDescriptions:p.Remove_all_unnecessary_override_modifiers},[p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:p.Remove_override_modifier,fixId:YL,fixAllDescriptions:p.Remove_all_unnecessary_override_modifiers},[p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:p.Remove_override_modifier,fixId:YL,fixAllDescriptions:p.Remove_all_unnecessary_override_modifiers}};aa({errorCodes:JIe,getCodeActions:function(t){let{errorCode:n,span:i}=t,s=GIe[n];if(!s)return qe;let{descriptions:o,fixId:c,fixAllDescriptions:_}=s,u=fn.ChangeTracker.with(t,g=>UIe(g,t,n,i.start));return[Kue(zIe,u,o,c,_)]},fixIds:[zIe,M3,YL],getAllCodeActions:e=>oo(e,JIe,(t,n)=>{let{code:i,start:s}=n,o=GIe[i];!o||o.fixId!==e.fixId||UIe(t,e,i,s)})});function UIe(e,t,n,i){switch(n){case p.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case p.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case p.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case p.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case p.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return MXe(e,t.sourceFile,i);case p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case p.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return RXe(e,t.sourceFile,i);default:w.fail("Unexpected error code: "+n)}}function MXe(e,t,n){let i=qIe(t,n);if(g_(t)){e.addJSDocTags(t,i,[A.createJSDocOverrideTag(A.createIdentifier("override"))]);return}let s=i.modifiers||qe,o=On(s,F2),c=On(s,eie),_=On(s,h=>Iq(h.kind)),u=rS(s,Rl),g=c?c.end:o?o.end:_?_.end:u?ha(t.text,u.end):i.getStart(t),m=_||o||c?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,g,164,m)}function RXe(e,t,n){let i=qIe(t,n);if(g_(t)){e.filterJSDocTags(t,i,A8(f7));return}let s=On(i.modifiers,tie);w.assertIsDefined(s),e.deleteModifier(t,s)}function VIe(e){switch(e.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return pf(e,e.parent);default:return!1}}function qIe(e,t){let n=ki(e,t),i=gr(n,s=>ii(s)?"quit":VIe(s));return w.assert(i&&VIe(i)),i}var N_e="fixNoPropertyAccessFromIndexSignature",$Ie=[p.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];aa({errorCodes:$Ie,fixIds:[N_e],getCodeActions(e){let{sourceFile:t,span:n,preferences:i}=e,s=QIe(t,n.start),o=fn.ChangeTracker.with(e,c=>HIe(c,e.sourceFile,s,i));return[$s(N_e,o,[p.Use_element_access_for_0,s.name.text],N_e,p.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>oo(e,$Ie,(t,n)=>HIe(t,n.file,QIe(n.file,n.start),e.preferences))});function HIe(e,t,n,i){let s=Tf(t,i),o=A.createStringLiteral(n.name.text,s===0);e.replaceNode(t,n,Z8(n)?A.createElementAccessChain(n.expression,n.questionDotToken,o):A.createElementAccessExpression(n.expression,o))}function QIe(e,t){return Zs(ki(e,t).parent,Nn)}var M_e="fixImplicitThis",KIe=[p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];aa({errorCodes:KIe,getCodeActions:function(t){let{sourceFile:n,program:i,span:s}=t,o,c=fn.ChangeTracker.with(t,_=>{o=XIe(_,n,s.start,i.getTypeChecker())});return o?[$s(M_e,c,o,M_e,p.Fix_all_implicit_this_errors)]:qe},fixIds:[M_e],getAllCodeActions:e=>oo(e,KIe,(t,n)=>{XIe(t,n.file,n.start,e.program.getTypeChecker())})});function XIe(e,t,n,i){let s=ki(t,n);if(!VI(s))return;let o=t_(s,!1,!1);if(!(!jc(o)&&!Ao(o))&&!Mi(t_(o,!1,!1))){let c=w.checkDefined(_o(o,100,t)),{name:_}=o,u=w.checkDefined(o.body);return Ao(o)?_&&jo.Core.isSymbolReferencedInFile(_,i,t,u)?void 0:(e.delete(t,c),_&&e.delete(t,_),e.insertText(t,u.pos," =>"),[p.Convert_function_expression_0_to_arrow_function,_?_.text:e$]):(e.replaceNode(t,c,A.createToken(87)),e.insertText(t,_.end," = "),e.insertText(t,u.pos," =>"),[p.Convert_function_declaration_0_to_arrow_function,_.text])}}var R_e="fixImportNonExportedMember",YIe=[p.Module_0_declares_1_locally_but_it_is_not_exported.code];aa({errorCodes:YIe,fixIds:[R_e],getCodeActions(e){let{sourceFile:t,span:n,program:i}=e,s=ZIe(t,n.start,i);if(s===void 0)return;let o=fn.ChangeTracker.with(e,c=>FXe(c,i,s));return[$s(R_e,o,[p.Export_0_from_module_1,s.exportName.node.text,s.moduleSpecifier],R_e,p.Export_all_referenced_locals)]},getAllCodeActions(e){let{program:t}=e;return _C(fn.ChangeTracker.with(e,n=>{let i=new Map;fC(e,YIe,s=>{let o=ZIe(s.file,s.start,t);if(o===void 0)return;let{exportName:c,node:_,moduleSourceFile:u}=o;if(fH(u,c.isTypeOnly)===void 0&&j4(_))n.insertExportModifier(u,_);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=fH(o,!0);c&&c.isTypeOnly?(F_e(n,t,o,s.typeOnlyExports,c),F_e(n,t,o,s.exports,fH(o,!1))):F_e(n,t,o,[...s.exports,...s.typeOnlyExports],c)})}))}});function ZIe(e,t,n){var i,s;let o=ki(e,t);if(je(o)){let c=gr(o,sc);if(c===void 0)return;let _=ya(c.moduleSpecifier)?c.moduleSpecifier:void 0;if(_===void 0)return;let u=(i=n.getResolvedModuleFromModuleSpecifier(_,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 m=g.symbol,h=(s=Vn(m.valueDeclaration,Sg))==null?void 0:s.locals;if(h===void 0)return;let S=h.get(o.escapedText);if(S===void 0)return;let T=OXe(S);return T===void 0?void 0:{exportName:{node:o,isTypeOnly:w2(T)},node:T,moduleSourceFile:g,moduleSpecifier:_.text}}}function FXe(e,t,{exportName:n,node:i,moduleSourceFile:s}){let o=fH(s,n.isTypeOnly);o?eDe(e,t,s,o,[n]):j4(i)?e.insertExportModifier(s,i):tDe(e,t,s,[n])}function F_e(e,t,n,i,s){Dr(i)&&(s?eDe(e,t,n,s,i):tDe(e,t,n,i))}function fH(e,t){let n=i=>Xc(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return rS(e.statements,n)}function eDe(e,t,n,i,s){let o=i.exportClause&&Fp(i.exportClause)?i.exportClause.elements:A.createNodeArray([]),c=!i.isTypeOnly&&!!(id(t.getCompilerOptions())||On(o,_=>_.isTypeOnly));e.replaceNode(n,i,A.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,A.createNamedExports(A.createNodeArray([...o,...rDe(s,c)],o.hasTrailingComma)),i.moduleSpecifier,i.attributes))}function tDe(e,t,n,i){e.insertNodeAtEndOfScope(n,n,A.createExportDeclaration(void 0,!1,A.createNamedExports(rDe(i,id(t.getCompilerOptions()))),void 0,void 0))}function rDe(e,t){return A.createNodeArray(hr(e,n=>A.createExportSpecifier(t&&n.isTypeOnly,void 0,n.node)))}function OXe(e){if(e.valueDeclaration===void 0)return _l(e.declarations);let t=e.valueDeclaration,n=oi(t)?Vn(t.parent.parent,Lc):void 0;return n&&Dr(n.declarationList.declarations)===1?n:t}var O_e="fixIncorrectNamedTupleSyntax",LXe=[p.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,p.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code];aa({errorCodes:LXe,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=jXe(n,i.start),o=fn.ChangeTracker.with(t,c=>WXe(c,n,s));return[$s(O_e,o,p.Move_labeled_tuple_element_modifiers_to_labels,O_e,p.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[O_e]});function jXe(e,t){let n=ki(e,t);return gr(n,i=>i.kind===202)}function WXe(e,t,n){if(!n)return;let i=n.type,s=!1,o=!1;for(;i.kind===190||i.kind===191||i.kind===196;)i.kind===190?s=!0:i.kind===191&&(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 nDe="fixSpelling",iDe=[p.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,p.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,p.Cannot_find_name_0_Did_you_mean_1.code,p.Could_not_find_name_0_Did_you_mean_1.code,p.Cannot_find_namespace_0_Did_you_mean_1.code,p.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,p.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,p._0_has_no_exported_member_named_1_Did_you_mean_2.code,p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,p.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,p.No_overload_matches_this_call.code,p.Type_0_is_not_assignable_to_type_1.code];aa({errorCodes:iDe,getCodeActions(e){let{sourceFile:t,errorCode:n}=e,i=sDe(t,e.span.start,e,n);if(!i)return;let{node:s,suggestedSymbol:o}=i,c=wa(e.host.getCompilationSettings()),_=fn.ChangeTracker.with(e,u=>aDe(u,t,s,o,c));return[$s("spelling",_,[p.Change_spelling_to_0,Oc(o)],nDe,p.Fix_all_detected_spelling_errors)]},fixIds:[nDe],getAllCodeActions:e=>oo(e,iDe,(t,n)=>{let i=sDe(n.file,n.start,e,n.code),s=wa(e.host.getCompilationSettings());i&&aDe(t,e.sourceFile,i.node,i.suggestedSymbol,s)})});function sDe(e,t,n,i){let s=ki(e,t),o=s.parent;if((i===p.No_overload_matches_this_call.code||i===p.Type_0_is_not_assignable_to_type_1.code)&&!Bm(o))return;let c=n.program.getTypeChecker(),_;if(Nn(o)&&o.name===s){w.assert(oh(s),"Expected an identifier for spelling (property access)");let u=c.getTypeAtLocation(o.expression);o.flags&64&&(u=c.getNonNullableType(u)),_=c.getSuggestedSymbolForNonexistentProperty(s,u)}else if(vn(o)&&o.operatorToken.kind===103&&o.left===s&&ji(s)){let u=c.getTypeAtLocation(o.right);_=c.getSuggestedSymbolForNonexistentProperty(s,u)}else if(y_(o)&&o.right===s){let u=c.getSymbolAtLocation(o.left);u&&u.flags&1536&&(_=c.getSuggestedSymbolForNonexistentModule(o.right,u))}else if(a_(o)&&o.name===s){w.assertNode(s,je,"Expected an identifier for spelling (import)");let u=gr(s,sc),g=zXe(n,u,e);g&&g.symbol&&(_=c.getSuggestedSymbolForNonexistentModule(s,g.symbol))}else if(Bm(o)&&o.name===s){w.assertNode(s,je,"Expected an identifier for JSX attribute");let u=gr(s,Wu),g=c.getContextualTypeForArgumentAtIndex(u,0);_=c.getSuggestedSymbolForNonexistentJSXAttribute(s,g)}else if(oO(o)&&rl(o)&&o.name===s){let u=gr(s,ii),g=u?Dm(u):void 0,m=g?c.getTypeAtLocation(g):void 0;m&&(_=c.getSuggestedSymbolForNonexistentClassMember(oc(s),m))}else{let u=zk(s),g=oc(s);w.assert(g!==void 0,"name should be defined"),_=c.getSuggestedSymbolForNonexistentSymbol(s,g,BXe(u))}return _===void 0?void 0:{node:s,suggestedSymbol:_}}function aDe(e,t,n,i,s){let o=Oc(i);if(!$_(o,s)&&Nn(n.parent)){let c=i.valueDeclaration;c&&Gl(c)&&ji(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 BXe(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function zXe(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 L_e="returnValueCorrect",j_e="fixAddReturnStatement",W_e="fixRemoveBracesFromArrowFunctionBody",B_e="fixWrapTheBlockWithParen",oDe=[p.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,p.Type_0_is_not_assignable_to_type_1.code,p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];aa({errorCodes:oDe,fixIds:[j_e,W_e,B_e],getCodeActions:function(t){let{program:n,sourceFile:i,span:{start:s},errorCode:o}=t,c=lDe(n.getTypeChecker(),i,s,o);if(c)return c.kind===0?jr([GXe(t,c.expression,c.statement)],Lo(c.declaration)?UXe(t,c.declaration,c.expression,c.commentSource):void 0):[VXe(t,c.declaration,c.expression)]},getAllCodeActions:e=>oo(e,oDe,(t,n)=>{let i=lDe(e.program.getTypeChecker(),n.file,n.start,n.code);if(i)switch(e.fixId){case j_e:uDe(t,n.file,i.expression,i.statement);break;case W_e:if(!Lo(i.declaration))return;_De(t,n.file,i.declaration,i.expression,i.commentSource,!1);break;case B_e:if(!Lo(i.declaration))return;fDe(t,n.file,i.declaration,i.expression);break;default:w.fail(JSON.stringify(e.fixId))}})});function cDe(e,t,n){let i=e.createSymbol(4,t.escapedText);i.links.type=e.getTypeAtLocation(n);let s=ea([i]);return e.createAnonymousType(void 0,s,[],[],[])}function z_e(e,t,n,i){if(!t.body||!Fs(t.body)||Dr(t.body.statements)!==1)return;let s=Ea(t.body.statements);if($l(s)&&J_e(e,t,e.getTypeAtLocation(s.expression),n,i))return{declaration:t,kind:0,expression:s.expression,statement:s,commentSource:s.expression};if(z0(s)&&$l(s.statement)){let o=A.createObjectLiteralExpression([A.createPropertyAssignment(s.label,s.statement.expression)]),c=cDe(e,s.label,s.statement.expression);if(J_e(e,t,c,n,i))return Lo(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(Fs(s)&&Dr(s.statements)===1){let o=Ea(s.statements);if(z0(o)&&$l(o.statement)){let c=A.createObjectLiteralExpression([A.createPropertyAssignment(o.label,o.statement.expression)]),_=cDe(e,o.label,o.statement.expression);if(J_e(e,t,_,n,i))return{declaration:t,kind:0,expression:c,statement:s,commentSource:o}}}}function J_e(e,t,n,i,s){if(s){let o=e.getSignatureFromDeclaration(t);if(o){ei(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,ea(),[c],[],[])}else n=e.getAnyType()}return e.isTypeAssignableTo(n,i)}function lDe(e,t,n,i){let s=ki(t,n);if(!s.parent)return;let o=gr(s.parent,xo);switch(i){case p.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!o||!o.body||!o.type||!O_(o.type,s)?void 0:z_e(e,o,e.getTypeFromTypeNode(o.type),!1);case p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!qs(o.parent)||!o.body)return;let c=o.parent.arguments.indexOf(o);if(c===-1)return;let _=e.getContextualTypeForArgumentAtIndex(o.parent,c);return _?z_e(e,o,_,!0):void 0;case p.Type_0_is_not_assignable_to_type_1.code:if(!Cg(s)||!$P(s.parent)&&!Bm(s.parent))return;let u=JXe(s.parent);return!u||!xo(u)||!u.body?void 0:z_e(e,u,e.getTypeAtLocation(s.parent),!0)}}function JXe(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(hI(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 348:case 341:return}}function uDe(e,t,n,i){xf(n);let s=d3(t);e.replaceNode(t,i,A.createReturnStatement(n),{leadingTriviaOption:fn.LeadingTriviaOption.Exclude,trailingTriviaOption:fn.TrailingTriviaOption.Exclude,suffix:s?";":void 0})}function _De(e,t,n,i,s,o){let c=o||dL(i)?A.createParenthesizedExpression(i):i;xf(s),Gk(s,c),e.replaceNode(t,n.body,c)}function fDe(e,t,n,i){e.replaceNode(t,n.body,A.createParenthesizedExpression(i))}function GXe(e,t,n){let i=fn.ChangeTracker.with(e,s=>uDe(s,e.sourceFile,t,n));return $s(L_e,i,p.Add_a_return_statement,j_e,p.Add_all_missing_return_statement)}function UXe(e,t,n,i){let s=fn.ChangeTracker.with(e,o=>_De(o,e.sourceFile,t,n,i,!1));return $s(L_e,s,p.Remove_braces_from_arrow_function_body,W_e,p.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function VXe(e,t,n){let i=fn.ChangeTracker.with(e,s=>fDe(s,e.sourceFile,t,n));return $s(L_e,i,p.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,B_e,p.Wrap_all_object_literal_with_parentheses)}var f1="fixMissingMember",pH="fixMissingProperties",dH="fixMissingAttributes",mH="fixMissingFunctionDeclaration",pDe=[p.Property_0_does_not_exist_on_type_1.code,p.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,p.Property_0_is_missing_in_type_1_but_required_in_type_2.code,p.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,p.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,p.Cannot_find_name_0.code,p.Type_0_does_not_satisfy_the_expected_type_1.code];aa({errorCodes:pDe,getCodeActions(e){let t=e.program.getTypeChecker(),n=dDe(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(n){if(n.kind===3){let i=fn.ChangeTracker.with(e,s=>xDe(s,e,n));return[$s(pH,i,p.Add_missing_properties,pH,p.Add_all_missing_properties)]}if(n.kind===4){let i=fn.ChangeTracker.with(e,s=>kDe(s,e,n));return[$s(dH,i,p.Add_missing_attributes,dH,p.Add_all_missing_attributes)]}if(n.kind===2||n.kind===5){let i=fn.ChangeTracker.with(e,s=>TDe(s,e,n));return[$s(mH,i,[p.Add_missing_function_declaration_0,n.token.text],mH,p.Add_all_missing_function_declarations)]}if(n.kind===1){let i=fn.ChangeTracker.with(e,s=>SDe(s,e.program.getTypeChecker(),n));return[$s(f1,i,[p.Add_missing_enum_member_0,n.token.text],f1,p.Add_all_missing_members)]}return Ki(KXe(e,n),qXe(e,n))}},fixIds:[f1,mH,pH,dH],getAllCodeActions:e=>{let{program:t,fixId:n}=e,i=t.getTypeChecker(),s=new Set,o=new Map;return _C(fn.ChangeTracker.with(e,c=>{fC(e,pDe,_=>{let u=dDe(_.file,_.start,_.code,i,e.program);if(u===void 0)return;let g=Ua(u.parentDeclaration)+"#"+(u.kind===3?u.identifier||Ua(u.token):u.token.text);if(nd(s,g)){if(n===mH&&(u.kind===2||u.kind===5))TDe(c,e,u);else if(n===pH&&u.kind===3)xDe(c,e,u);else if(n===dH&&u.kind===4)kDe(c,e,u);else if(u.kind===1&&SDe(c,i,u),u.kind===0){let{parentDeclaration:m,token:h}=u,S=pP(o,m,()=>[]);S.some(T=>T.token.text===h.text)||S.push(u)}}}),o.forEach((_,u)=>{let g=v_(u)?void 0:wfe(u,i);for(let m of _){if(g?.some(E=>{let O=o.get(E);return!!O&&O.some(({token:F})=>F.text===m.token.text)}))continue;let{parentDeclaration:h,declSourceFile:S,modifierFlags:T,token:x,call:I,isJSFile:D}=m;if(I&&!ji(x))bDe(e,c,I,x,T&256,h,S);else if(D&&!hu(h)&&!v_(h))mDe(c,S,h,x,!!(T&256));else{let E=hDe(i,h,x);yDe(c,S,h,x.text,E,T&256)}}})}))}});function dDe(e,t,n,i,s){var o,c;let _=ki(e,t),u=_.parent;if(n===p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(_.kind===19&&Sa(u)&&qs(u.parent)))return;let x=Sc(u.parent.arguments,O=>O===u);if(x<0)return;let I=i.getResolvedSignature(u.parent);if(!(I&&I.declaration&&I.parameters[x]))return;let D=I.parameters[x].valueDeclaration;if(!(D&&Bi(D)&&je(D.name)))return;let E=ps(i.getUnmatchedProperties(i.getTypeAtLocation(u),i.getParameterType(I,x).getNonNullableType(),!1,!1));return Dr(E)?{kind:3,token:D.name,identifier:D.name.text,properties:E,parentDeclaration:u}:void 0}if(_.kind===19||mI(u)||Bf(u)){let x=(mI(u)||Bf(u))&&u.expression?u.expression:u;if(Sa(x)){let I=mI(u)?i.getTypeFromTypeNode(u.type):i.getContextualType(x)||i.getTypeAtLocation(x),D=ps(i.getUnmatchedProperties(i.getTypeAtLocation(u),I.getNonNullableType(),!1,!1));return Dr(D)?{kind:3,token:u,identifier:void 0,properties:D,parentDeclaration:x,indentation:Bf(x.parent)||Y4(x.parent)?0:void 0}:void 0}}if(!oh(_))return;if(je(_)&&Yy(u)&&u.initializer&&Sa(u.initializer)){let x=(o=i.getContextualType(_)||i.getTypeAtLocation(_))==null?void 0:o.getNonNullableType(),I=ps(i.getUnmatchedProperties(i.getTypeAtLocation(u.initializer),x,!1,!1));return Dr(I)?{kind:3,token:_,identifier:_.text,properties:I,parentDeclaration:u.initializer}:void 0}if(je(_)&&Wu(_.parent)){let x=wa(s.getCompilerOptions()),I=YXe(i,x,_.parent);return Dr(I)?{kind:4,token:_,attributes:I,parentDeclaration:_.parent}:void 0}if(je(_)){let x=(c=i.getContextualType(_))==null?void 0:c.getNonNullableType();if(x&&Mn(x)&16){let I=_l(i.getSignaturesOfType(x,0));return I===void 0?void 0:{kind:5,token:_,signature:I,sourceFile:e,parentDeclaration:CDe(_)}}if(qs(u)&&u.expression===_)return{kind:2,token:_,call:u,sourceFile:e,modifierFlags:0,parentDeclaration:CDe(_)}}if(!Nn(u))return;let g=Mq(i.getTypeAtLocation(u.expression)),m=g.symbol;if(!m||!m.declarations)return;if(je(_)&&qs(u.parent)){let x=On(m.declarations,nl),I=x?.getSourceFile();if(x&&I&&!eD(s,I))return{kind:2,token:_,call:u.parent,sourceFile:I,modifierFlags:32,parentDeclaration:x};let D=On(m.declarations,Mi);if(e.commonJsModuleIndicator)return;if(D&&!eD(s,D))return{kind:2,token:_,call:u.parent,sourceFile:D,modifierFlags:32,parentDeclaration:D}}let h=On(m.declarations,ii);if(!h&&ji(_))return;let S=h||On(m.declarations,x=>hu(x)||v_(x));if(S&&!eD(s,S.getSourceFile())){let x=!v_(S)&&(g.target||g)!==i.getDeclaredTypeOfSymbol(m);if(x&&(ji(_)||hu(S)))return;let I=S.getSourceFile(),D=v_(S)?0:(x?256:0)|(c$(_.text)?2:0),E=g_(I),O=Vn(u.parent,qs);return{kind:0,token:_,call:O,modifierFlags:D,parentDeclaration:S,declSourceFile:I,isJSFile:E}}let T=On(m.declarations,LS);if(T&&!(g.flags&1056)&&!ji(_)&&!eD(s,T.getSourceFile()))return{kind:1,token:_,parentDeclaration:T}}function qXe(e,t){return t.isJSFile?Ux($Xe(e,t)):HXe(e,t)}function $Xe(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:i,token:s}){if(hu(t)||v_(t))return;let o=fn.ChangeTracker.with(e,_=>mDe(_,n,t,s,!!(i&256)));if(o.length===0)return;let c=i&256?p.Initialize_static_property_0:ji(s)?p.Declare_a_private_field_named_0:p.Initialize_property_0_in_the_constructor;return $s(f1,o,[c,s.text],f1,p.Add_all_missing_members)}function mDe(e,t,n,i,s){let o=i.text;if(s){if(n.kind===231)return;let c=n.name.getText(),_=gDe(A.createIdentifier(c),o);e.insertNodeAfter(t,n,_)}else if(ji(i)){let c=A.createPropertyDeclaration(void 0,o,void 0,void 0,void 0),_=vDe(n);_?e.insertNodeAfter(t,_,c):e.insertMemberAtStart(t,n,c)}else{let c=mh(n);if(!c)return;let _=gDe(A.createThis(),o);e.insertNodeAtConstructorEnd(t,c,_)}}function gDe(e,t){return A.createExpressionStatement(A.createAssignment(A.createPropertyAccessExpression(e,t),dC()))}function HXe(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:i,token:s}){let o=s.text,c=i&256,_=hDe(e.program.getTypeChecker(),t,s),u=m=>fn.ChangeTracker.with(e,h=>yDe(h,n,t,o,_,m)),g=[$s(f1,u(i&256),[c?p.Declare_static_property_0:p.Declare_property_0,o],f1,p.Add_all_missing_members)];return c||ji(s)||(i&2&&g.unshift(em(f1,u(2),[p.Declare_private_property_0,o])),g.push(QXe(e,n,t,s.text,_))),g}function hDe(e,t,n){let i;if(n.parent.parent.kind===226){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 yDe(e,t,n,i,s,o){let c=o?A.createNodeArray(A.createModifiersFromModifierFlags(o)):void 0,_=ii(n)?A.createPropertyDeclaration(c,i,void 0,s,void 0):A.createPropertySignature(void 0,i,void 0,s),u=vDe(n);u?e.insertNodeAfter(t,u,_):e.insertMemberAtStart(t,n,_)}function vDe(e){let t;for(let n of e.members){if(!ds(n))break;t=n}return t}function QXe(e,t,n,i,s){let o=A.createKeywordTypeNode(154),c=A.createParameterDeclaration(void 0,void 0,"x",void 0,o,void 0),_=A.createIndexSignature(void 0,[c],s),u=fn.ChangeTracker.with(e,g=>g.insertMemberAtStart(t,n,_));return em(f1,u,[p.Add_index_signature_for_property_0,i])}function KXe(e,t){let{parentDeclaration:n,declSourceFile:i,modifierFlags:s,token:o,call:c}=t;if(c===void 0)return;let _=o.text,u=m=>fn.ChangeTracker.with(e,h=>bDe(e,h,c,o,m,n,i)),g=[$s(f1,u(s&256),[s&256?p.Declare_static_method_0:p.Declare_method_0,_],f1,p.Add_all_missing_members)];return s&2&&g.unshift(em(f1,u(2),[p.Declare_private_method_0,_])),g}function bDe(e,t,n,i,s,o,c){let _=nT(c,e.program,e.preferences,e.host),u=ii(o)?174:173,g=yfe(u,e,_,n,i,s,o),m=ZXe(o,n);m?t.insertNodeAfter(c,m,g):t.insertMemberAtStart(c,o,g),_.writeFixes(t)}function SDe(e,t,{token:n,parentDeclaration:i}){let s=pt(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),_=zo(i.members);_?e.insertNodeInListAfter(o,_,c,i.members):e.insertMemberAtStart(o,i,c)}function TDe(e,t,n){let i=Tf(t.sourceFile,t.preferences),s=nT(t.sourceFile,t.program,t.preferences,t.host),o=n.kind===2?yfe(262,t,s,n.call,Ln(n.token),n.modifierFlags,n.parentDeclaration):CH(262,t,i,n.signature,ej(p.Function_not_implemented.message,i),n.token,void 0,void 0,void 0,s);o===void 0&&w.fail("fixMissingFunctionDeclaration codefix got unexpected error."),Bf(n.parentDeclaration)?e.insertNodeBefore(n.sourceFile,n.parentDeclaration,o,!0):e.insertNodeAtEndOfScope(n.sourceFile,n.parentDeclaration,o),s.writeFixes(e)}function kDe(e,t,n){let i=nT(t.sourceFile,t.program,t.preferences,t.host),s=Tf(t.sourceFile,t.preferences),o=t.program.getTypeChecker(),c=n.parentDeclaration.attributes,_=pt(c.properties,G2),u=hr(n.attributes,h=>{let S=gH(t,o,i,s,o.getTypeOfSymbol(h),n.parentDeclaration),T=A.createIdentifier(h.name),x=A.createJsxAttribute(T,A.createJsxExpression(void 0,S));return Xa(T,x),x}),g=A.createJsxAttributes(_?[...u,...c.properties]:[...c.properties,...u]),m={prefix:c.pos===c.end?" ":void 0};e.replaceNode(t.sourceFile,c,g,m),i.writeFixes(e)}function xDe(e,t,n){let i=nT(t.sourceFile,t.program,t.preferences,t.host),s=Tf(t.sourceFile,t.preferences),o=wa(t.program.getCompilerOptions()),c=t.program.getTypeChecker(),_=hr(n.properties,g=>{let m=gH(t,c,i,s,c.getTypeOfSymbol(g),n.parentDeclaration);return A.createPropertyAssignment(eYe(g,o,s,c),m)}),u={leadingTriviaOption:fn.LeadingTriviaOption.Exclude,trailingTriviaOption:fn.TrailingTriviaOption.Exclude,indentation:n.indentation};e.replaceNode(t.sourceFile,n.parentDeclaration,A.createObjectLiteralExpression([...n.parentDeclaration.properties,..._],!0),u),i.writeFixes(e)}function gH(e,t,n,i,s,o){if(s.flags&3)return dC();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?KN(s.symbol.exports.values()):s.symbol,_=s.symbol.parent&&s.symbol.parent.flags&256?s.symbol.parent:s.symbol,u=t.symbolToExpression(_,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 po(s.types,_=>gH(e,t,n,i,_,o))??dC();if(t.isArrayLikeType(s))return A.createArrayLiteralExpression();if(XXe(s)){let c=hr(t.getPropertiesOfType(s),_=>{let u=gH(e,t,n,i,t.getTypeOfSymbol(_),o);return A.createPropertyAssignment(_.name,u)});return A.createObjectLiteralExpression(c,!0)}if(Mn(s)&16){if(On(s.symbol.declarations||qe,uf(Ig,xd,xc))===void 0)return dC();let _=t.getSignaturesOfType(s,0);return _===void 0?dC():CH(218,e,i,_[0],ej(p.Function_not_implemented.message,i),void 0,void 0,void 0,o,n)??dC()}if(Mn(s)&1){let c=_y(s.symbol);if(c===void 0||IS(c))return dC();let _=mh(c);return _&&Dr(_.parameters)?dC():A.createNewExpression(A.createIdentifier(s.symbol.name),void 0,void 0)}return dC()}function dC(){return A.createIdentifier("undefined")}function XXe(e){return e.flags&524288&&(Mn(e)&128||e.symbol&&Vn(hg(e.symbol.declarations),v_))}function YXe(e,t,n){let i=e.getContextualType(n.attributes);if(i===void 0)return qe;let s=i.getProperties();if(!Dr(s))return qe;let o=new Set;for(let c of n.attributes.properties)if(Bm(c)&&o.add(EA(c.name)),G2(c)){let _=e.getTypeAtLocation(c.expression);for(let u of _.getProperties())o.add(u.escapedName)}return An(s,c=>$_(c.name,t,1)&&!(c.flags&16777216||kc(c)&48||o.has(c.escapedName)))}function ZXe(e,t){if(v_(e))return;let n=gr(t,i=>xc(i)||lc(i));return n&&n.parent===e?n:void 0}function eYe(e,t,n,i){if(lh(e)){let s=i.symbolToNode(e,111551,void 0,void 0,1);if(s&&pa(s))return s}return WO(e.name,t,n===0,!1,!1)}function CDe(e){if(gr(e,hI)){let t=gr(e.parent,Bf);if(t)return t}return Fr(e)}var G_e="addMissingNewOperator",wDe=[p.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];aa({errorCodes:wDe,getCodeActions(e){let{sourceFile:t,span:n}=e,i=fn.ChangeTracker.with(e,s=>IDe(s,t,n));return[$s(G_e,i,p.Add_missing_new_operator_to_call,G_e,p.Add_missing_new_operator_to_all_calls)]},fixIds:[G_e],getAllCodeActions:e=>oo(e,wDe,(t,n)=>IDe(t,e.sourceFile,n))});function IDe(e,t,n){let i=Zs(tYe(t,n),qs),s=A.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,s)}function tYe(e,t){let n=ki(e,t.start),i=mc(t);for(;n.end<i;)n=n.parent;return n}var hH="addMissingParam",yH="addOptionalParam",DDe=[p.Expected_0_arguments_but_got_1.code];aa({errorCodes:DDe,fixIds:[hH,yH],getCodeActions(e){let t=PDe(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)&&jr(c,$s(hH,fn.ChangeTracker.with(e,_=>vH(_,e.program,e.preferences,e.host,i,s)),[Dr(s)>1?p.Add_missing_parameters_to_0:p.Add_missing_parameter_to_0,n],hH,p.Add_all_missing_parameters)),Dr(o)&&jr(c,$s(yH,fn.ChangeTracker.with(e,_=>vH(_,e.program,e.preferences,e.host,i,o)),[Dr(o)>1?p.Add_optional_parameters_to_0:p.Add_optional_parameter_to_0,n],yH,p.Add_all_optional_parameters)),c},getAllCodeActions:e=>oo(e,DDe,(t,n)=>{let i=PDe(e.sourceFile,e.program,n.start);if(i){let{declarations:s,newParameters:o,newOptionalParameters:c}=i;e.fixId===hH&&vH(t,e.program,e.preferences,e.host,s,o),e.fixId===yH&&vH(t,e.program,e.preferences,e.host,s,c)}})});function PDe(e,t,n){let i=ki(e,n),s=gr(i,qs);if(s===void 0||Dr(s.arguments)===0)return;let o=t.getTypeChecker(),c=o.getTypeAtLocation(s.expression),_=An(c.symbol.declarations,ADe);if(_===void 0)return;let u=zo(_);if(u===void 0||u.body===void 0||eD(t,u.getSourceFile()))return;let g=rYe(u);if(g===void 0)return;let m=[],h=[],S=Dr(u.parameters),T=Dr(s.arguments);if(S>T)return;let x=[u,...iYe(u,_)];for(let I=0,D=0,E=0;I<T;I++){let O=s.arguments[I],F=Oo(O)?pJ(O):O,B=o.getWidenedType(o.getBaseTypeOfLiteralType(o.getTypeAtLocation(O))),G=D<S?u.parameters[D]:void 0;if(G&&o.isTypeAssignableTo(B,o.getTypeAtLocation(G))){D++;continue}let $=F&&je(F)?F.text:`p${E++}`,K=nYe(o,B,u);jr(m,{pos:I,declaration:NDe($,K,void 0)}),!aYe(x,D)&&jr(h,{pos:I,declaration:NDe($,K,A.createToken(58))})}return{newParameters:m,newOptionalParameters:h,name:Co(g),declarations:x}}function rYe(e){let t=vs(e);if(t)return t;if(oi(e.parent)&&je(e.parent.name)||ds(e.parent)||Bi(e.parent))return e.parent.name}function nYe(e,t,n){return e.typeToTypeNode(e.getWidenedType(t),n,1,8)??A.createKeywordTypeNode(159)}function vH(e,t,n,i,s,o){let c=wa(t.getCompilerOptions());or(s,_=>{let u=Fr(_),g=nT(u,t,n,i);Dr(_.parameters)?e.replaceNodeRangeWithNodes(u,Ea(_.parameters),xa(_.parameters),EDe(g,c,_,o),{joiner:", ",indentation:0,leadingTriviaOption:fn.LeadingTriviaOption.IncludeAll,trailingTriviaOption:fn.TrailingTriviaOption.Include}):or(EDe(g,c,_,o),(m,h)=>{Dr(_.parameters)===0&&h===0?e.insertNodeAt(u,_.parameters.end,m):e.insertNodeAtEndOfList(u,_.parameters,m)}),g.writeFixes(e)})}function ADe(e){switch(e.kind){case 262:case 218:case 174:case 219:return!0;default:return!1}}function EDe(e,t,n,i){let s=hr(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 _=o>0?s[o-1]:void 0;s.splice(o,0,A.updateParameterDeclaration(c,c.modifiers,c.dotDotDotToken,c.name,_&&_.questionToken?A.createToken(58):c.questionToken,oYe(e,c.type,t),c.initializer))}return s}function iYe(e,t){let n=[];for(let i of t)if(sYe(i)){if(Dr(i.parameters)===Dr(e.parameters)){n.push(i);continue}if(Dr(i.parameters)>Dr(e.parameters))return[]}return n}function sYe(e){return ADe(e)&&e.body===void 0}function NDe(e,t,n){return A.createParameterDeclaration(void 0,void 0,e,n,t,void 0)}function aYe(e,t){return Dr(e)&&pt(e,n=>t<Dr(n.parameters)&&!!n.parameters[t]&&n.parameters[t].questionToken===void 0)}function oYe(e,t,n){let i=iT(t,n);return i?(Vk(e,i.symbols),i.typeNode):t}var cYe="fixCannotFindModule",U_e="installTypesPackage",MDe=p.Cannot_find_module_0_or_its_corresponding_type_declarations.code,RDe=p.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,FDe=[MDe,p.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code,RDe];aa({errorCodes:FDe,getCodeActions:function(t){let{host:n,sourceFile:i,span:{start:s},errorCode:o}=t,c=o===RDe?N4(t.program.getCompilerOptions(),i):LDe(i,s);if(c===void 0)return;let _=jDe(c,n,o);return _===void 0?[]:[$s(cYe,[],[p.Install_0,_],U_e,p.Install_all_missing_types_packages,ODe(i.fileName,_))]},fixIds:[U_e],getAllCodeActions:e=>oo(e,FDe,(t,n,i)=>{let s=LDe(n.file,n.start);if(s!==void 0)switch(e.fixId){case U_e:{let o=jDe(s,e.host,n.code);o&&i.push(ODe(n.file.fileName,o));break}default:w.fail(`Bad fixId: ${e.fixId}`)}})});function ODe(e,t){return{type:"install package",file:e,packageName:t}}function LDe(e,t){let n=Vn(ki(e,t),ya);if(!n)return;let i=n.text,{packageName:s}=q7(i);return Jl(s)?void 0:s}function jDe(e,t,n){var i;return n===MDe?lI.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?H7(e):void 0}var WDe=[p.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,p.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2.code,p.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more.code,p.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code,p.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1.code,p.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more.code],V_e="fixClassDoesntImplementInheritedAbstractMember";aa({errorCodes:WDe,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=fn.ChangeTracker.with(t,o=>zDe(BDe(n,i.start),n,t,o,t.preferences));return s.length===0?void 0:[$s(V_e,s,p.Implement_inherited_abstract_class,V_e,p.Implement_all_inherited_abstract_classes)]},fixIds:[V_e],getAllCodeActions:function(t){let n=new Set;return oo(t,WDe,(i,s)=>{let o=BDe(s.file,s.start);nd(n,Ua(o))&&zDe(o,t.sourceFile,t,i,t.preferences)})}});function BDe(e,t){let n=ki(e,t);return Zs(n.parent,ii)}function zDe(e,t,n,i,s){let o=Dm(e),c=n.program.getTypeChecker(),_=c.getTypeAtLocation(o),u=c.getPropertiesOfType(_).filter(lYe),g=nT(t,n.program,s,n.host);hfe(e,u,t,n,s,g,m=>i.insertMemberAtStart(t,e,m)),g.writeFixes(i)}function lYe(e){let t=tv(Ea(e.getDeclarations()));return!(t&2)&&!!(t&64)}var q_e="classSuperMustPrecedeThisAccess",JDe=[p.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];aa({errorCodes:JDe,getCodeActions(e){let{sourceFile:t,span:n}=e,i=UDe(t,n.start);if(!i)return;let{constructor:s,superCall:o}=i,c=fn.ChangeTracker.with(e,_=>GDe(_,t,s,o));return[$s(q_e,c,p.Make_super_call_the_first_statement_in_the_constructor,q_e,p.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[q_e],getAllCodeActions(e){let{sourceFile:t}=e,n=new Set;return oo(e,JDe,(i,s)=>{let o=UDe(s.file,s.start);if(!o)return;let{constructor:c,superCall:_}=o;nd(n,Ua(c.parent))&&GDe(i,t,c,_)})}});function GDe(e,t,n,i){e.insertNodeAtConstructorStart(t,n,i),e.delete(t,i)}function UDe(e,t){let n=ki(e,t);if(n.kind!==110)return;let i=ep(n),s=VDe(i.body);return s&&!s.expression.arguments.some(o=>Nn(o)&&o.expression===n)?{constructor:i,superCall:s}:void 0}function VDe(e){return $l(e)&&ok(e.expression)?e:Ns(e)?void 0:Es(e,VDe)}var $_e="constructorForDerivedNeedSuperCall",qDe=[p.Constructors_for_derived_classes_must_contain_a_super_call.code];aa({errorCodes:qDe,getCodeActions(e){let{sourceFile:t,span:n}=e,i=$De(t,n.start),s=fn.ChangeTracker.with(e,o=>HDe(o,t,i));return[$s($_e,s,p.Add_missing_super_call,$_e,p.Add_all_missing_super_calls)]},fixIds:[$_e],getAllCodeActions:e=>oo(e,qDe,(t,n)=>HDe(t,e.sourceFile,$De(n.file,n.start)))});function $De(e,t){let n=ki(e,t);return w.assert(lc(n.parent),"token should be at the constructor declaration"),n.parent}function HDe(e,t,n){let i=A.createExpressionStatement(A.createCallExpression(A.createSuper(),void 0,qe));e.insertNodeAtConstructorStart(t,n,i)}var QDe="fixEnableJsxFlag",KDe=[p.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];aa({errorCodes:KDe,getCodeActions:function(t){let{configFile:n}=t.program.getCompilerOptions();if(n===void 0)return;let i=fn.ChangeTracker.with(t,s=>XDe(s,n));return[em(QDe,i,p.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[QDe],getAllCodeActions:e=>oo(e,KDe,t=>{let{configFile:n}=e.program.getCompilerOptions();n!==void 0&&XDe(t,n)})});function XDe(e,t){kfe(e,t,"jsx",A.createStringLiteral("react"))}var H_e="fixNaNEquality",YDe=[p.This_condition_will_always_return_0.code];aa({errorCodes:YDe,getCodeActions(e){let{sourceFile:t,span:n,program:i}=e,s=ZDe(i,t,n);if(s===void 0)return;let{suggestion:o,expression:c,arg:_}=s,u=fn.ChangeTracker.with(e,g=>ePe(g,t,_,c));return[$s(H_e,u,[p.Use_0,o],H_e,p.Use_Number_isNaN_in_all_conditions)]},fixIds:[H_e],getAllCodeActions:e=>oo(e,YDe,(t,n)=>{let i=ZDe(e.program,n.file,pu(n.start,n.length));i&&ePe(t,n.file,i.arg,i.expression)})});function ZDe(e,t,n){let i=On(e.getSemanticDiagnostics(t),c=>c.start===n.start&&c.length===n.length);if(i===void 0||i.relatedInformation===void 0)return;let s=On(i.relatedInformation,c=>c.code===p.Did_you_mean_0.code);if(s===void 0||s.file===void 0||s.start===void 0||s.length===void 0)return;let o=Cfe(s.file,pu(s.start,s.length));if(o!==void 0&>(o)&&vn(o.parent))return{suggestion:uYe(s.messageText),expression:o.parent,arg:o}}function ePe(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 uYe(e){let[,t]=Gm(e,`
`,0).match(/'(.*)'/)||[];return t}aa({errorCodes:[p.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,p.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,p.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_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=n_(n);if(o>=5&&o<99){let g=fn.ChangeTracker.with(t,m=>{kfe(m,i,"module",A.createStringLiteral("esnext"))});s.push(em("fixModuleOption",g,[p.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}let _=wa(n);if(_<4||_>99){let g=fn.ChangeTracker.with(t,m=>{if(!QP(i))return;let S=[["target",A.createStringLiteral("es2017")]];o===1&&S.push(["module",A.createStringLiteral("commonjs")]),Tfe(m,i,S)});s.push(em("fixTargetOption",g,[p.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return s.length?s:void 0}});var Q_e="fixPropertyAssignment",tPe=[p.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:tPe,fixIds:[Q_e],getCodeActions(e){let{sourceFile:t,span:n}=e,i=nPe(t,n.start),s=fn.ChangeTracker.with(e,o=>rPe(o,e.sourceFile,i));return[$s(Q_e,s,[p.Change_0_to_1,"=",":"],Q_e,[p.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>oo(e,tPe,(t,n)=>rPe(t,n.file,nPe(n.file,n.start)))});function rPe(e,t,n){e.replaceNode(t,n,A.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function nPe(e,t){return Zs(ki(e,t).parent,Eu)}var K_e="extendsInterfaceBecomesImplements",iPe=[p.Cannot_extend_an_interface_0_Did_you_mean_implements.code];aa({errorCodes:iPe,getCodeActions(e){let{sourceFile:t}=e,n=sPe(t,e.span.start);if(!n)return;let{extendsToken:i,heritageClauses:s}=n,o=fn.ChangeTracker.with(e,c=>aPe(c,t,i,s));return[$s(K_e,o,p.Change_extends_to_implements,K_e,p.Change_all_extended_interfaces_to_implements)]},fixIds:[K_e],getAllCodeActions:e=>oo(e,iPe,(t,n)=>{let i=sPe(n.file,n.start);i&&aPe(t,n.file,i.extendsToken,i.heritageClauses)})});function sPe(e,t){let n=ki(e,t),i=su(n).heritageClauses,s=i[0].getFirstToken();return s.kind===96?{extendsToken:s,heritageClauses:i}:void 0}function aPe(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,_=s.end;for(;_<c.length&&Tm(c.charCodeAt(_));)_++;e.deleteRange(t,{pos:s.getStart(),end:_})}}var X_e="forgottenThisPropertyAccess",oPe=p.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,cPe=[p.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,p.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,oPe];aa({errorCodes:cPe,getCodeActions(e){let{sourceFile:t}=e,n=lPe(t,e.span.start,e.errorCode);if(!n)return;let i=fn.ChangeTracker.with(e,s=>uPe(s,t,n));return[$s(X_e,i,[p.Add_0_to_unresolved_variable,n.className||"this"],X_e,p.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[X_e],getAllCodeActions:e=>oo(e,cPe,(t,n)=>{let i=lPe(n.file,n.start,n.code);i&&uPe(t,e.sourceFile,i)})});function lPe(e,t,n){let i=ki(e,t);if(je(i)||ji(i))return{node:i,className:n===oPe?su(i).name.text:void 0}}function uPe(e,t,{node:n,className:i}){xf(n),e.replaceNode(t,n,A.createPropertyAccessExpression(i?A.createIdentifier(i):A.createThis(),n))}var Y_e="fixInvalidJsxCharacters_expression",bH="fixInvalidJsxCharacters_htmlEntity",_Pe=[p.Unexpected_token_Did_you_mean_or_gt.code,p.Unexpected_token_Did_you_mean_or_rbrace.code];aa({errorCodes:_Pe,fixIds:[Y_e,bH],getCodeActions(e){let{sourceFile:t,preferences:n,span:i}=e,s=fn.ChangeTracker.with(e,c=>Z_e(c,n,t,i.start,!1)),o=fn.ChangeTracker.with(e,c=>Z_e(c,n,t,i.start,!0));return[$s(Y_e,s,p.Wrap_invalid_character_in_an_expression_container,Y_e,p.Wrap_all_invalid_characters_in_an_expression_container),$s(bH,o,p.Convert_invalid_character_to_its_html_entity_code,bH,p.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return oo(e,_Pe,(t,n)=>Z_e(t,e.preferences,n.file,n.start,e.fixId===bH))}});var fPe={">":">","}":"}"};function _Ye(e){return bo(fPe,e)}function Z_e(e,t,n,i,s){let o=n.getText()[i];if(!_Ye(o))return;let c=s?fPe[o]:`{${RE(n,t,o)}}`;e.replaceRangeWithText(n,{pos:i,end:i+1},c)}var SH="deleteUnmatchedParameter",pPe="renameUnmatchedParameter",dPe=[p.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];aa({fixIds:[SH,pPe],errorCodes:dPe,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=[],o=mPe(n,i.start);if(o)return jr(s,fYe(t,o)),jr(s,pYe(t,o)),s},getAllCodeActions:function(t){let n=new Map;return _C(fn.ChangeTracker.with(t,i=>{fC(t,dPe,({file:s,start:o})=>{let c=mPe(s,o);c&&n.set(c.signature,jr(n.get(c.signature),c.jsDocParameterTag))}),n.forEach((s,o)=>{if(t.fixId===SH){let c=new Set(s);i.filterJSDocTags(o.getSourceFile(),o,_=>!c.has(_))}})}))}});function fYe(e,{name:t,jsDocHost:n,jsDocParameterTag:i}){let s=fn.ChangeTracker.with(e,o=>o.filterJSDocTags(e.sourceFile,n,c=>c!==i));return $s(SH,s,[p.Delete_unused_param_tag_0,t.getText(e.sourceFile)],SH,p.Delete_all_unused_param_tags)}function pYe(e,{name:t,jsDocHost:n,signature:i,jsDocParameterTag:s}){if(!Dr(i.parameters))return;let o=e.sourceFile,c=Ab(i),_=new Set;for(let h of c)ip(h)&&je(h.name)&&_.add(h.name.escapedText);let u=po(i.parameters,h=>je(h.name)&&!_.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),m=fn.ChangeTracker.with(e,h=>h.replaceJSDocComment(o,n,hr(c,S=>S===s?g:S)));return em(pPe,m,[p.Rename_param_tag_name_0_to_1,t.getText(o),u])}function mPe(e,t){let n=ki(e,t);if(n.parent&&ip(n.parent)&&je(n.parent.name)){let i=n.parent,s=bS(i),o=Fb(i);if(s&&o)return{jsDocHost:s,signature:o,name:n.parent.name,jsDocParameterTag:i}}}var efe="fixUnreferenceableDecoratorMetadata",dYe=[p.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:dYe,getCodeActions:e=>{let t=mYe(e.sourceFile,e.program,e.span.start);if(!t)return;let n=fn.ChangeTracker.with(e,o=>t.kind===276&&hYe(o,e.sourceFile,t,e.program)),i=fn.ChangeTracker.with(e,o=>gYe(o,e.sourceFile,t,e.program)),s;return n.length&&(s=jr(s,em(efe,n,p.Convert_named_imports_to_namespace_import))),i.length&&(s=jr(s,em(efe,i,p.Use_import_type))),s},fixIds:[efe]});function mYe(e,t,n){let i=Vn(ki(e,n),je);if(!i||i.parent.kind!==183)return;let o=t.getTypeChecker().getSymbolAtLocation(i);return On(o?.declarations||qe,uf(Cd,a_,Ol))}function gYe(e,t,n,i){if(n.kind===271){e.insertModifierBefore(t,156,n.name);return}let s=n.kind===273?n:n.parent.parent;if(s.name&&s.namedBindings)return;let o=i.getTypeChecker();ere(s,_=>{if(du(_.symbol,o).flags&111551)return!0})||e.insertModifierBefore(t,156,s)}function hYe(e,t,n,i){lC.doChangeNamedToNamespaceOrDefault(t,i,e,n.parent)}var ZL="unusedIdentifier",tfe="unusedIdentifier_prefix",rfe="unusedIdentifier_delete",TH="unusedIdentifier_deleteImports",nfe="unusedIdentifier_infer",gPe=[p._0_is_declared_but_its_value_is_never_read.code,p._0_is_declared_but_never_used.code,p.Property_0_is_declared_but_its_value_is_never_read.code,p.All_imports_in_import_declaration_are_unused.code,p.All_destructured_elements_are_unused.code,p.All_variables_are_unused.code,p.All_type_parameters_are_unused.code];aa({errorCodes:gPe,getCodeActions(e){let{errorCode:t,sourceFile:n,program:i,cancellationToken:s}=e,o=i.getTypeChecker(),c=i.getSourceFiles(),_=ki(n,e.span.start);if(ad(_))return[UE(fn.ChangeTracker.with(e,h=>h.delete(n,_)),p.Remove_template_tag)];if(_.kind===30){let h=fn.ChangeTracker.with(e,S=>yPe(S,n,_));return[UE(h,p.Remove_type_parameters)]}let u=vPe(_);if(u){let h=fn.ChangeTracker.with(e,S=>S.delete(n,u));return[$s(ZL,h,[p.Remove_import_from_0,Wre(u)],TH,p.Delete_all_unused_imports)]}else if(ife(_)){let h=fn.ChangeTracker.with(e,S=>kH(n,_,S,o,c,i,s,!1));if(h.length)return[$s(ZL,h,[p.Remove_unused_declaration_for_Colon_0,_.getText(n)],TH,p.Delete_all_unused_imports)]}if(np(_.parent)||uv(_.parent)){if(Bi(_.parent.parent)){let h=_.parent.elements,S=[h.length>1?p.Remove_unused_declarations_for_Colon_0:p.Remove_unused_declaration_for_Colon_0,hr(h,T=>T.getText(n)).join(", ")];return[UE(fn.ChangeTracker.with(e,T=>yYe(T,n,_.parent)),S)]}return[UE(fn.ChangeTracker.with(e,h=>vYe(e,h,n,_.parent)),p.Remove_unused_destructuring_declaration)]}if(bPe(n,_))return[UE(fn.ChangeTracker.with(e,h=>SPe(h,n,_.parent)),p.Remove_variable_statement)];if(je(_)&&jc(_.parent))return[UE(fn.ChangeTracker.with(e,h=>CPe(h,n,_.parent)),[p.Remove_unused_declaration_for_Colon_0,_.getText(n)])];let g=[];if(_.kind===140){let h=fn.ChangeTracker.with(e,T=>hPe(T,n,_)),S=Zs(_.parent,kk).typeParameter.name.text;g.push($s(ZL,h,[p.Replace_infer_0_with_unknown,S],nfe,p.Replace_all_unused_infer_with_unknown))}else{let h=fn.ChangeTracker.with(e,S=>kH(n,_,S,o,c,i,s,!1));if(h.length){let S=pa(_.parent)?_.parent:_;g.push(UE(h,[p.Remove_unused_declaration_for_Colon_0,S.getText(n)]))}}let m=fn.ChangeTracker.with(e,h=>TPe(h,t,n,_));return m.length&&g.push($s(ZL,m,[p.Prefix_0_with_an_underscore,_.getText(n)],tfe,p.Prefix_all_unused_declarations_with_where_possible)),g},fixIds:[tfe,rfe,TH,nfe],getAllCodeActions:e=>{let{sourceFile:t,program:n,cancellationToken:i}=e,s=n.getTypeChecker(),o=n.getSourceFiles();return oo(e,gPe,(c,_)=>{let u=ki(t,_.start);switch(e.fixId){case tfe:TPe(c,_.code,t,u);break;case TH:{let g=vPe(u);g?c.delete(t,g):ife(u)&&kH(t,u,c,s,o,n,i,!0);break}case rfe:{if(u.kind===140||ife(u))break;if(ad(u))c.delete(t,u);else if(u.kind===30)yPe(c,t,u);else if(np(u.parent)){if(u.parent.parent.initializer)break;(!Bi(u.parent.parent)||kPe(u.parent.parent,s,o))&&c.delete(t,u.parent.parent)}else{if(uv(u.parent.parent)&&u.parent.parent.parent.initializer)break;bPe(t,u)?SPe(c,t,u.parent):je(u)&&jc(u.parent)?CPe(c,t,u.parent):kH(t,u,c,s,o,n,i,!0)}break}case nfe:u.kind===140&&hPe(c,t,u);break;default:w.fail(JSON.stringify(e.fixId))}})}});function hPe(e,t,n){e.replaceNode(t,n.parent,A.createKeywordTypeNode(159))}function UE(e,t){return $s(ZL,e,t,rfe,p.Delete_all_unused_declarations)}function yPe(e,t,n){e.delete(t,w.checkDefined(Zs(n.parent,_z).typeParameters,"The type parameter to delete should exist"))}function ife(e){return e.kind===102||e.kind===80&&(e.parent.kind===276||e.parent.kind===273)}function vPe(e){return e.kind===102?Vn(e.parent,sc):void 0}function bPe(e,t){return au(t.parent)&&Ea(t.parent.getChildren(e))===t}function SPe(e,t,n){e.delete(t,n.parent.kind===243?n.parent:n)}function yYe(e,t,n){or(n.elements,i=>e.delete(t,i))}function vYe(e,t,n,{parent:i}){if(oi(i)&&i.initializer&&_S(i.initializer))if(au(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:yy(e.host,e.formatContext.options)+n.text.slice(pL(n.text,o-1),o),suffix:d3(n)?";":""})}else t.replaceNode(n,i.parent,i.initializer);else t.delete(n,i)}function TPe(e,t,n,i){t!==p.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===140&&(i=Zs(i.parent,kk).typeParameter.name),je(i)&&bYe(i)&&(e.replaceNode(n,i,A.createIdentifier(`_${i.text}`)),Bi(i.parent)&&Pw(i.parent).forEach(s=>{je(s.name)&&e.replaceNode(n,s.name,A.createIdentifier(`_${s.name.text}`))})))}function bYe(e){switch(e.parent.kind){case 169:case 168:return!0;case 260:switch(e.parent.parent.parent.kind){case 250:case 249:return!0}}return!1}function kH(e,t,n,i,s,o,c,_){SYe(t,n,e,i,s,o,c,_),je(t)&&jo.Core.eachSymbolReferenceInFile(t,i,e,u=>{Nn(u.parent)&&u.parent.name===u&&(u=u.parent),!_&&CYe(u)&&n.delete(e,u.parent.parent)})}function SYe(e,t,n,i,s,o,c,_){let{parent:u}=e;if(Bi(u))TYe(t,n,u,i,s,o,c,_);else if(!(_&&je(e)&&jo.Core.isSymbolReferencedInFile(e,i,n))){let g=Cd(u)?e:pa(u)?u.parent:u;w.assert(g!==n,"should not delete whole source file"),t.delete(n,g)}}function TYe(e,t,n,i,s,o,c,_=!1){if(kYe(i,t,n,s,o,c,_))if(n.modifiers&&n.modifiers.length>0&&(!je(n.name)||jo.Core.isSymbolReferencedInFile(n.name,i,t)))for(let u of n.modifiers)la(u)&&e.deleteModifier(t,u);else!n.initializer&&kPe(n,i,s)&&e.delete(t,n)}function kPe(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 kYe(e,t,n,i,s,o,c){let{parent:_}=n;switch(_.kind){case 174:case 176:let u=_.parameters.indexOf(n),g=xc(_)?_.name:_,m=jo.Core.getReferencedSymbolsForNode(_.pos,g,s,i,o);if(m){for(let h of m)for(let S of h.references)if(S.kind===jo.EntryKind.Node){let T=WA(S.node)&&qs(S.node.parent)&&S.node.parent.arguments.length>u,x=Nn(S.node.parent)&&WA(S.node.parent.expression)&&qs(S.node.parent.parent)&&S.node.parent.parent.arguments.length>u,I=(xc(S.node.parent)||xd(S.node.parent))&&S.node.parent!==n.parent&&S.node.parent.parameters.length>u;if(T||x||I)return!1}}return!0;case 262:return _.name&&xYe(e,t,_.name)?xPe(_,n,c):!0;case 218:case 219:return xPe(_,n,c);case 178:return!1;case 177:return!0;default:return w.failBadSyntaxKind(_)}}function xYe(e,t,n){return!!jo.Core.eachSymbolReferenceInFile(n,e,t,i=>je(i)&&qs(i.parent)&&i.parent.arguments.includes(i))}function xPe(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=>je(o.name)&&!o.symbol.isReferenced):s===i.length-1}function CYe(e){return(vn(e.parent)&&e.parent.left===e||(oG(e.parent)||Vb(e.parent))&&e.parent.operand===e)&&$l(e.parent.parent)}function CPe(e,t,n){let i=n.symbol.declarations;if(i)for(let s of i)e.delete(t,s)}var sfe="fixUnreachableCode",wPe=[p.Unreachable_code_detected.code];aa({errorCodes:wPe,getCodeActions(e){if(e.program.getSyntacticDiagnostics(e.sourceFile,e.cancellationToken).length)return;let n=fn.ChangeTracker.with(e,i=>IPe(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[$s(sfe,n,p.Remove_unreachable_code,sfe,p.Remove_all_unreachable_code)]},fixIds:[sfe],getAllCodeActions:e=>oo(e,wPe,(t,n)=>IPe(t,n.file,n.start,n.length,n.code))});function IPe(e,t,n,i,s){let o=ki(t,n),c=gr(o,Ii);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 _=(Fs(c.parent)?c.parent:c).parent;if(!Fs(c.parent)||c===Ea(c.parent.statements))switch(_.kind){case 245:if(_.elseStatement){if(Fs(c.parent))break;e.replaceNode(t,c,A.createBlock(qe));return}case 247:case 248:e.delete(t,_);return}if(Fs(c.parent)){let u=n+i,g=w.checkDefined(wYe(AJ(c.parent.statements,c),m=>m.pos<u),"Some statement should be last");e.deleteNodeRange(t,c,g)}else e.delete(t,c)}function wYe(e,t){let n;for(let i of e){if(!t(i))break;n=i}return n}var afe="fixUnusedLabel",DPe=[p.Unused_label.code];aa({errorCodes:DPe,getCodeActions(e){let t=fn.ChangeTracker.with(e,n=>PPe(n,e.sourceFile,e.span.start));return[$s(afe,t,p.Remove_unused_label,afe,p.Remove_all_unused_labels)]},fixIds:[afe],getAllCodeActions:e=>oo(e,DPe,(t,n)=>PPe(t,n.file,n.start))});function PPe(e,t,n){let i=ki(t,n),s=Zs(i.parent,z0),o=i.getStart(t),c=s.statement.getStart(t),_=Pp(o,c,t)?c:ha(t.text,_o(s,59,t).end,!0);e.deleteRange(t,{pos:o,end:_})}var APe="fixJSDocTypes_plain",ofe="fixJSDocTypes_nullable",EPe=[p.JSDoc_types_can_only_be_used_inside_documentation_comments.code,p._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,p._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code];aa({errorCodes:EPe,getCodeActions(e){let{sourceFile:t}=e,n=e.program.getTypeChecker(),i=MPe(t,e.span.start,n);if(!i)return;let{typeNode:s,type:o}=i,c=s.getText(t),_=[u(o,APe,p.Change_all_jsdoc_style_types_to_TypeScript)];return s.kind===314&&_.push(u(o,ofe,p.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),_;function u(g,m,h){let S=fn.ChangeTracker.with(e,T=>NPe(T,t,s,g,n));return $s("jdocTypes",S,[p.Change_0_to_1,c,n.typeToString(g)],m,h)}},fixIds:[APe,ofe],getAllCodeActions(e){let{fixId:t,program:n,sourceFile:i}=e,s=n.getTypeChecker();return oo(e,EPe,(o,c)=>{let _=MPe(c.file,c.start,s);if(!_)return;let{typeNode:u,type:g}=_,m=u.kind===314&&t===ofe?s.getNullableType(g,32768):g;NPe(o,i,u,m,s)})}});function NPe(e,t,n,i,s){e.replaceNode(t,n,s.typeToTypeNode(i,n,void 0))}function MPe(e,t,n){let i=gr(ki(e,t),IYe),s=i&&i.type;return s&&{typeNode:s,type:DYe(n,s)}}function IYe(e){switch(e.kind){case 234:case 179:case 180:case 262:case 177:case 181:case 200:case 174:case 173:case 169:case 172:case 171:case 178:case 265:case 216:case 260:return!0;default:return!1}}function DYe(e,t){if(vI(t)){let n=e.getTypeFromTypeNode(t.type);return n===e.getNeverType()||n===e.getVoidType()?n:e.getUnionType(jr([n,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var cfe="fixMissingCallParentheses",RPe=[p.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];aa({errorCodes:RPe,fixIds:[cfe],getCodeActions(e){let{sourceFile:t,span:n}=e,i=OPe(t,n.start);if(!i)return;let s=fn.ChangeTracker.with(e,o=>FPe(o,e.sourceFile,i));return[$s(cfe,s,p.Add_missing_call_parentheses,cfe,p.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>oo(e,RPe,(t,n)=>{let i=OPe(n.file,n.start);i&&FPe(t,n.file,i)})});function FPe(e,t,n){e.replaceNodeWithText(t,n,`${n.text}()`)}function OPe(e,t){let n=ki(e,t);if(Nn(n.parent)){let i=n.parent;for(;Nn(i.parent);)i=i.parent;return i.name}if(je(n))return n}var LPe="fixMissingTypeAnnotationOnExports",lfe="add-annotation",ufe="add-type-assertion",PYe="extract-expression",jPe=[p.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,p.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,p.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,p.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,p.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,p.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,p.Expression_type_can_t_be_inferred_with_isolatedDeclarations.code,p.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations.code,p.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations.code,p.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations.code,p.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations.code,p.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations.code,p.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations.code,p.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations.code,p.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations.code,p.Default_exports_can_t_be_inferred_with_isolatedDeclarations.code,p.Only_const_arrays_can_be_inferred_with_isolatedDeclarations.code,p.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function.code,p.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations.code,p.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations.code,p.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit.code],AYe=new Set([177,174,172,262,218,219,260,169,277,263,206,207]),WPe=531469,BPe=1;aa({errorCodes:jPe,fixIds:[LPe],getCodeActions(e){let t=[];return VE(lfe,t,e,0,n=>n.addTypeAnnotation(e.span)),VE(lfe,t,e,1,n=>n.addTypeAnnotation(e.span)),VE(lfe,t,e,2,n=>n.addTypeAnnotation(e.span)),VE(ufe,t,e,0,n=>n.addInlineAssertion(e.span)),VE(ufe,t,e,1,n=>n.addInlineAssertion(e.span)),VE(ufe,t,e,2,n=>n.addInlineAssertion(e.span)),VE(PYe,t,e,0,n=>n.extractAsVariable(e.span)),t},getAllCodeActions:e=>{let t=zPe(e,0,n=>{fC(e,jPe,i=>{n.addTypeAnnotation(i)})});return _C(t.textChanges)}});function VE(e,t,n,i,s){let o=zPe(n,i,s);o.result&&o.textChanges.length&&t.push($s(e,o.textChanges,o.result,LPe,p.Add_all_missing_type_annotations))}function zPe(e,t,n){let i={typeNode:void 0,mutatedTarget:!1},s=fn.ChangeTracker.fromContext(e),o=e.sourceFile,c=e.program,_=c.getTypeChecker(),u=wa(c.getCompilerOptions()),g=nT(e.sourceFile,e.program,e.preferences,e.host),m=new Set,h=new Set,S=$0({preserveSourceNewlines:!1}),T=n({addTypeAnnotation:x,addInlineAssertion:F,extractAsVariable:B});return g.writeFixes(s),{result:T,textChanges:s.getChanges()};function x(ee){e.cancellationToken.throwIfCancellationRequested();let Ne=ki(o,ee.start),Ie=G(Ne);if(Ie)return jc(Ie)?I(Ie):$(Ie);let Ce=le(Ne);if(Ce)return $(Ce)}function I(ee){var Ne;if(h?.has(ee))return;h?.add(ee);let Ie=_.getTypeAtLocation(ee),Ce=_.getPropertiesOfType(Ie);if(!ee.name||Ce.length===0)return;let Ve=[];for(let ur of Ce)$_(ur.name,wa(c.getCompilerOptions()))&&(ur.valueDeclaration&&oi(ur.valueDeclaration)||Ve.push(A.createVariableStatement([A.createModifier(95)],A.createVariableDeclarationList([A.createVariableDeclaration(ur.name,void 0,xe(_.getTypeOfSymbol(ur),ee),void 0)]))));if(Ve.length===0)return;let bt=[];(Ne=ee.modifiers)!=null&&Ne.some(ur=>ur.kind===95)&&bt.push(A.createModifier(95)),bt.push(A.createModifier(138));let zt=A.createModuleDeclaration(bt,ee.name,A.createModuleBlock(Ve),101441696);return s.insertNodeAfter(o,ee,zt),[p.Annotate_types_of_properties_expando_function_in_a_namespace]}function D(ee){return!mo(ee)&&!qs(ee)&&!Sa(ee)&&!gu(ee)}function E(ee,Ne){return D(ee)&&(ee=A.createParenthesizedExpression(ee)),A.createAsExpression(ee,Ne)}function O(ee,Ne){return D(ee)&&(ee=A.createParenthesizedExpression(ee)),A.createAsExpression(A.createSatisfiesExpression(ee,ro(Ne)),Ne)}function F(ee){e.cancellationToken.throwIfCancellationRequested();let Ne=ki(o,ee.start);if(G(Ne))return;let Ce=Je(Ne,ee);if(!Ce||pk(Ce)||pk(Ce.parent))return;let Ve=gt(Ce),bt=Eu(Ce);if(!bt&&Ul(Ce)||gr(Ce,Ws)||gr(Ce,_v)||Ve&&(gr(Ce,vf)||gr(Ce,di))||Rp(Ce))return;let zt=gr(Ce,oi),ur=zt&&_.getTypeAtLocation(zt);if(ur&&ur.flags&8192||!(Ve||bt))return;let{typeNode:Or,mutatedTarget:_t}=de(Ce,ur);if(!(!Or||_t))return bt?s.insertNodeAt(o,Ce.end,E(ro(Ce.name),Or),{prefix:": "}):Ve?s.replaceNode(o,Ce,O(ro(Ce),Or)):w.assertNever(Ce),[p.Add_satisfies_and_an_inline_type_assertion_with_0,ct(Or)]}function B(ee){e.cancellationToken.throwIfCancellationRequested();let Ne=ki(o,ee.start),Ie=Je(Ne,ee);if(!Ie||pk(Ie)||pk(Ie.parent)||!gt(Ie))return;if(gu(Ie))return s.replaceNode(o,Ie,E(Ie,A.createTypeReferenceNode("const"))),[p.Mark_array_literal_as_const];let Ve=gr(Ie,hl);if(Ve){if(Ve===Ie.parent&&mo(Ie))return;let bt=A.createUniqueName(_ue(Ie,o,_,o),16),zt=Ie,ur=Ie;if(Rp(zt)&&(zt=Td(zt.parent),De(zt.parent)?ur=zt=zt.parent:ur=E(zt,A.createTypeReferenceNode("const"))),mo(zt))return;let Or=A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(bt,void 0,void 0,ur)],2)),_t=gr(Ie,Ii);return s.insertNodeBefore(o,_t,Or),s.replaceNode(o,zt,A.createAsExpression(A.cloneNode(bt),A.createTypeQueryNode(A.cloneNode(bt)))),[p.Extract_to_variable_and_replace_with_0_as_typeof_0,ct(bt)]}}function G(ee){let Ne=gr(ee,Ie=>Ii(Ie)?"quit":P2(Ie));if(Ne&&P2(Ne)){let Ie=Ne;if(vn(Ie)&&(Ie=Ie.left,!P2(Ie)))return;let Ce=_.getTypeAtLocation(Ie.expression);if(!Ce)return;let Ve=_.getPropertiesOfType(Ce);if(pt(Ve,bt=>bt.valueDeclaration===Ne||bt.valueDeclaration===Ne.parent)){let bt=Ce.symbol.valueDeclaration;if(bt){if(O0(bt)&&oi(bt.parent))return bt.parent;if(jc(bt))return bt}}}}function $(ee){if(!m?.has(ee))switch(m?.add(ee),ee.kind){case 169:case 172:case 260:return tt(ee);case 219:case 218:case 262:case 174:case 177:return K(ee,o);case 277:return U(ee);case 263:return me(ee);case 206:case 207:return V(ee);default:throw new Error(`Cannot find a fix for the given node ${ee.kind}`)}}function K(ee,Ne){if(ee.type)return;let{typeNode:Ie}=de(ee);if(Ie)return s.tryInsertTypeAnnotation(Ne,ee,Ie),[p.Add_return_type_0,ct(Ie)]}function U(ee){if(ee.isExportEquals)return;let{typeNode:Ne}=de(ee.expression);if(!Ne)return;let Ie=A.createUniqueName("_default");return s.replaceNodeWithNodes(o,ee,[A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(Ie,void 0,Ne,ee.expression)],2)),A.updateExportAssignment(ee,ee?.modifiers,Ie)]),[p.Extract_default_export_to_variable]}function me(ee){var Ne,Ie;let Ce=(Ne=ee.heritageClauses)==null?void 0:Ne.find($t=>$t.token===96),Ve=Ce?.types[0];if(!Ve)return;let{typeNode:bt}=de(Ve.expression);if(!bt)return;let zt=A.createUniqueName(ee.name?ee.name.text+"Base":"Anonymous",16),ur=A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(zt,void 0,bt,Ve.expression)],2));s.insertNodeBefore(o,ee,ur);let Or=m0(o.text,Ve.end),_t=((Ie=Or?.[Or.length-1])==null?void 0:Ie.end)??Ve.end;return s.replaceRange(o,{pos:Ve.getFullStart(),end:_t},zt,{prefix:" "}),[p.Extract_base_class_to_variable]}let te;(ee=>{ee[ee.Text=0]="Text",ee[ee.Computed=1]="Computed",ee[ee.ArrayAccess=2]="ArrayAccess",ee[ee.Identifier=3]="Identifier"})(te||(te={}));function V(ee){var Ne;let Ie=ee.parent,Ce=ee.parent.parent.parent;if(!Ie.initializer)return;let Ve,bt=[];if(je(Ie.initializer))Ve={expression:{kind:3,identifier:Ie.initializer}};else{let Or=A.createUniqueName("dest",16);Ve={expression:{kind:3,identifier:Or}},bt.push(A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(Or,void 0,void 0,Ie.initializer)],2)))}let zt=[];uv(ee)?ne(ee,zt,Ve):ie(ee,zt,Ve);let ur=new Map;for(let Or of zt){if(Or.element.propertyName&&pa(Or.element.propertyName)){let $t=Or.element.propertyName.expression,Hr=A.getGeneratedNameForNode($t),hi=A.createVariableDeclaration(Hr,void 0,void 0,$t),_s=A.createVariableDeclarationList([hi],2),At=A.createVariableStatement(void 0,_s);bt.push(At),ur.set($t,Hr)}let _t=Or.element.name;if(uv(_t))ne(_t,zt,Or);else if(np(_t))ie(_t,zt,Or);else{let{typeNode:$t}=de(_t),Hr=oe(Or,ur);if(Or.element.initializer){let _s=(Ne=Or.element)==null?void 0:Ne.propertyName,At=A.createUniqueName(_s&&je(_s)?_s.text:"temp",16);bt.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),Or.element.initializer,A.createToken(59),Hr)}let hi=ei(Ce,32)?[A.createToken(95)]:void 0;bt.push(A.createVariableStatement(hi,A.createVariableDeclarationList([A.createVariableDeclaration(_t,void 0,$t,Hr)],2)))}}return Ce.declarationList.declarations.length>1&&bt.push(A.updateVariableStatement(Ce,Ce.modifiers,A.updateVariableDeclarationList(Ce.declarationList,Ce.declarationList.declarations.filter(Or=>Or!==ee.parent)))),s.replaceNodeWithNodes(o,Ce,bt),[p.Extract_binding_expressions_to_variable]}function ne(ee,Ne,Ie){for(let Ce=0;Ce<ee.elements.length;++Ce){let Ve=ee.elements[Ce];Fl(Ve)||Ne.push({element:Ve,parent:Ie,expression:{kind:2,arrayIndex:Ce}})}}function ie(ee,Ne,Ie){for(let Ce of ee.elements){let Ve;if(Ce.propertyName)if(pa(Ce.propertyName)){Ne.push({element:Ce,parent:Ie,expression:{kind:1,computed:Ce.propertyName.expression}});continue}else Ve=Ce.propertyName.text;else Ve=Ce.name.text;Ne.push({element:Ce,parent:Ie,expression:{kind:0,text:Ve}})}}function oe(ee,Ne){let Ie=[ee];for(;ee.parent;)ee=ee.parent,Ie.push(ee);let Ce=Ie[Ie.length-1].expression.identifier;for(let Ve=Ie.length-2;Ve>=0;--Ve){let bt=Ie[Ve].expression;bt.kind===0?Ce=A.createPropertyAccessChain(Ce,void 0,A.createIdentifier(bt.text)):bt.kind===1?Ce=A.createElementAccessExpression(Ce,Ne.get(bt.computed)):bt.kind===2&&(Ce=A.createElementAccessExpression(Ce,bt.arrayIndex))}return Ce}function de(ee,Ne){if(t===1)return se(ee);let Ie;if(pk(ee)){let bt=_.getSignatureFromDeclaration(ee);if(bt){let zt=_.getTypePredicateOfSignature(bt);if(zt)return zt.type?{typeNode:_e(zt,gr(ee,Ul)??o,Ve(zt.type)),mutatedTarget:!1}:i;Ie=_.getReturnTypeOfSignature(bt)}}else Ie=_.getTypeAtLocation(ee);if(!Ie)return i;if(t===2){Ne&&(Ie=Ne);let bt=_.getWidenedLiteralType(Ie);if(_.isTypeAssignableTo(bt,Ie))return i;Ie=bt}let Ce=gr(ee,Ul)??o;return Bi(ee)&&_.requiresAddingImplicitUndefined(ee,Ce)&&(Ie=_.getUnionType([_.getUndefinedType(),Ie],0)),{typeNode:xe(Ie,Ce,Ve(Ie)),mutatedTarget:!1};function Ve(bt){return(oi(ee)||ds(ee)&&ei(ee,264))&&bt.flags&8192?1048576:0}}function ye(ee){return A.createTypeQueryNode(ro(ee))}function H(ee,Ne="temp"){let Ie=!!gr(ee,De);return Ie?Ge(ee,Ne,Ie,Ce=>Ce.elements,Rp,A.createSpreadElement,Ce=>A.createArrayLiteralExpression(Ce,!0),Ce=>A.createTupleTypeNode(Ce.map(A.createRestTypeNode))):i}function ve(ee,Ne="temp"){let Ie=!!gr(ee,De);return Ge(ee,Ne,Ie,Ce=>Ce.properties,xh,A.createSpreadAssignment,Ce=>A.createObjectLiteralExpression(Ce,!0),A.createIntersectionTypeNode)}function Ge(ee,Ne,Ie,Ce,Ve,bt,zt,ur){let Or=[],_t=[],$t,Hr=gr(ee,Ii);for(let At of Ce(ee))Ve(At)?(_s(),mo(At.expression)?(Or.push(ye(At.expression)),_t.push(At)):hi(At.expression)):($t??($t=[])).push(At);if(_t.length===0)return i;return _s(),s.replaceNode(o,ee,zt(_t)),{typeNode:ur(Or),mutatedTarget:!0};function hi(At){let zn=A.createUniqueName(Ne+"_Part"+(_t.length+1),16),ns=Ie?A.createAsExpression(At,A.createTypeReferenceNode("const")):At,Rn=A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(zn,void 0,void 0,ns)],2));s.insertNodeBefore(o,Hr,Rn),Or.push(ye(zn)),_t.push(bt(zn))}function _s(){$t&&(hi(zt($t)),$t=void 0)}}function De(ee){return fS(ee)&&vd(ee.type)}function se(ee){if(Bi(ee))return i;if(Eu(ee))return{typeNode:ye(ee.name),mutatedTarget:!1};if(mo(ee))return{typeNode:ye(ee),mutatedTarget:!1};if(De(ee))return se(ee.expression);if(gu(ee)){let Ne=gr(ee,oi),Ie=Ne&&je(Ne.name)?Ne.name.text:void 0;return H(ee,Ie)}if(Sa(ee)){let Ne=gr(ee,oi),Ie=Ne&&je(Ne.name)?Ne.name.text:void 0;return ve(ee,Ie)}if(oi(ee)&&ee.initializer)return se(ee.initializer);if(wk(ee)){let{typeNode:Ne,mutatedTarget:Ie}=se(ee.whenTrue);if(!Ne)return i;let{typeNode:Ce,mutatedTarget:Ve}=se(ee.whenFalse);return Ce?{typeNode:A.createUnionTypeNode([Ne,Ce]),mutatedTarget:Ie||Ve}:i}return i}function xe(ee,Ne,Ie=0){let Ce=!1,Ve=lAe(_,ee,Ne,WPe|Ie,BPe,{moduleResolverHost:c,trackSymbol(){return!0},reportTruncationError(){Ce=!0}});if(!Ve)return;let bt=vfe(Ve,g,u);return Ce?A.createKeywordTypeNode(133):bt}function _e(ee,Ne,Ie=0){let Ce=!1,Ve=uAe(_,g,ee,Ne,u,WPe|Ie,BPe,{moduleResolverHost:c,trackSymbol(){return!0},reportTruncationError(){Ce=!0}});return Ce?A.createKeywordTypeNode(133):Ve}function tt(ee){let{typeNode:Ne}=de(ee);if(Ne)return ee.type?s.replaceNode(Fr(ee),ee.type,Ne):s.tryInsertTypeAnnotation(Fr(ee),ee,Ne),[p.Add_annotation_of_type_0,ct(Ne)]}function ct(ee){dn(ee,1);let Ne=S.printNode(4,ee,o);return Ne.length>GP?Ne.substring(0,GP-3)+"...":(dn(ee,0),Ne)}function le(ee){return gr(ee,Ne=>AYe.has(Ne.kind)&&(!np(Ne)&&!uv(Ne)||oi(Ne.parent)))}function Je(ee,Ne){for(;ee&&ee.end<Ne.start+Ne.length;)ee=ee.parent;for(;ee.parent.pos===ee.pos&&ee.parent.end===ee.end;)ee=ee.parent;return je(ee)&&Yy(ee.parent)&&ee.parent.initializer?ee.parent.initializer:ee}}var _fe="fixAwaitInSyncFunction",JPe=[p.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,p.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,p.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,p.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code];aa({errorCodes:JPe,getCodeActions(e){let{sourceFile:t,span:n}=e,i=GPe(t,n.start);if(!i)return;let s=fn.ChangeTracker.with(e,o=>UPe(o,t,i));return[$s(_fe,s,p.Add_async_modifier_to_containing_function,_fe,p.Add_all_missing_async_modifiers)]},fixIds:[_fe],getAllCodeActions:function(t){let n=new Set;return oo(t,JPe,(i,s)=>{let o=GPe(s.file,s.start);!o||!nd(n,Ua(o.insertBefore))||UPe(i,t.sourceFile,o)})}});function EYe(e){if(e.type)return e.type;if(oi(e.parent)&&e.parent.type&&Ig(e.parent.type))return e.parent.type.type}function GPe(e,t){let n=ki(e,t),i=ep(n);if(!i)return;let s;switch(i.kind){case 174:s=i.name;break;case 262:case 218:s=_o(i,100,e);break;case 219:let o=i.typeParameters?30:21;s=_o(i,o,e)||Ea(i.parameters);break;default:return}return s&&{insertBefore:s,returnType:EYe(i)}}function UPe(e,t,{insertBefore:n,returnType:i}){if(i){let s=U6(i);(!s||s.kind!==80||s.text!=="Promise")&&e.replaceNode(t,i,A.createTypeReferenceNode("Promise",A.createNodeArray([i])))}e.insertModifierBefore(t,134,n)}var VPe=[p._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,p._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],ffe="fixPropertyOverrideAccessor";aa({errorCodes:VPe,getCodeActions(e){let t=qPe(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[$s(ffe,t,p.Generate_get_and_set_accessors,ffe,p.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[ffe],getAllCodeActions:e=>oo(e,VPe,(t,n)=>{let i=qPe(n.file,n.start,n.length,n.code,e);if(i)for(let s of i)t.pushRaw(e.sourceFile,s)})});function qPe(e,t,n,i,s){let o,c;if(i===p._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===p._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){let _=s.program.getTypeChecker(),u=ki(e,t).parent;w.assert(T0(u),"error span of fixPropertyOverrideAccessor should only be on an accessor");let g=u.parent;w.assert(ii(g),"erroneous accessors should only be inside classes");let m=hg(wfe(g,_));if(!m)return[];let h=Li(o2(u.name)),S=_.getPropertyOfType(_.getTypeAtLocation(m),h);if(!S||!S.valueDeclaration)return[];o=S.valueDeclaration.pos,c=S.valueDeclaration.end,e=Fr(S.valueDeclaration)}else w.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return mAe(e,s.program,o,c,s,p.Generate_get_and_set_accessors.message)}var pfe="inferFromUsage",$Pe=[p.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,p.Variable_0_implicitly_has_an_1_type.code,p.Parameter_0_implicitly_has_an_1_type.code,p.Rest_parameter_0_implicitly_has_an_any_type.code,p.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,p._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,p.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,p.Member_0_implicitly_has_an_1_type.code,p.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,p.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,p.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,p.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,p.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,p._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,p.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,p.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];aa({errorCodes:$Pe,getCodeActions(e){let{sourceFile:t,program:n,span:{start:i},errorCode:s,cancellationToken:o,host:c,preferences:_}=e,u=ki(t,i),g,m=fn.ChangeTracker.with(e,S=>{g=HPe(S,t,u,s,n,o,iS,c,_)}),h=g&&vs(g);return!h||m.length===0?void 0:[$s(pfe,m,[NYe(s,u),oc(h)],pfe,p.Infer_all_types_from_usage)]},fixIds:[pfe],getAllCodeActions(e){let{sourceFile:t,program:n,cancellationToken:i,host:s,preferences:o}=e,c=HI();return oo(e,$Pe,(_,u)=>{HPe(_,t,ki(u.file,u.start),u.code,n,i,c,s,o)})}});function NYe(e,t){switch(e){case p.Parameter_0_implicitly_has_an_1_type.code:case p.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return X_(ep(t))?p.Infer_type_of_0_from_usage:p.Infer_parameter_types_from_usage;case p.Rest_parameter_0_implicitly_has_an_any_type.code:case p.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Infer_parameter_types_from_usage;case p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return p.Infer_this_type_of_0_from_usage;default:return p.Infer_type_of_0_from_usage}}function MYe(e){switch(e){case p.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return p.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case p.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Variable_0_implicitly_has_an_1_type.code;case p.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Parameter_0_implicitly_has_an_1_type.code;case p.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Rest_parameter_0_implicitly_has_an_any_type.code;case p.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return p.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case p._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return p._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case p.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return p.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case p.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Member_0_implicitly_has_an_1_type.code}return e}function HPe(e,t,n,i,s,o,c,_,u){if(!WP(n.kind)&&n.kind!==80&&n.kind!==26&&n.kind!==110)return;let{parent:g}=n,m=nT(t,s,u,_);switch(i=MYe(i),i){case p.Member_0_implicitly_has_an_1_type.code:case p.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(oi(g)&&c(g)||ds(g)||s_(g))return QPe(e,m,t,g,s,_,o),m.writeFixes(e),g;if(Nn(g)){let T=R3(g.name,s,o),x=FE(T,g,s,_);if(x){let I=A.createJSDocTypeTag(void 0,A.createJSDocTypeExpression(x),void 0);e.addJSDocTags(t,Zs(g.parent.parent,$l),[I])}return m.writeFixes(e),g}return;case p.Variable_0_implicitly_has_an_1_type.code:{let T=s.getTypeChecker().getSymbolAtLocation(n);return T&&T.valueDeclaration&&oi(T.valueDeclaration)&&c(T.valueDeclaration)?(QPe(e,m,Fr(T.valueDeclaration),T.valueDeclaration,s,_,o),m.writeFixes(e),T.valueDeclaration):void 0}}let h=ep(n);if(h===void 0)return;let S;switch(i){case p.Parameter_0_implicitly_has_an_1_type.code:if(X_(h)){KPe(e,m,t,h,s,_,o),S=h;break}case p.Rest_parameter_0_implicitly_has_an_any_type.code:if(c(h)){let T=Zs(g,Bi);RYe(e,m,t,T,h,s,_,o),S=T}break;case p.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case p._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:Mp(h)&&je(h.name)&&(xH(e,m,t,h,R3(h.name,s,o),s,_),S=h);break;case p.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:X_(h)&&(KPe(e,m,t,h,s,_,o),S=h);break;case p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:fn.isThisTypeAnnotatable(h)&&c(h)&&(FYe(e,t,h,s,_,o),S=h);break;default:return w.fail(String(i))}return m.writeFixes(e),S}function QPe(e,t,n,i,s,o,c){je(i.name)&&xH(e,t,n,i,R3(i.name,s,c),s,o)}function RYe(e,t,n,i,s,o,c,_){if(!je(i.name))return;let u=jYe(s,n,o,_);if(w.assert(s.parameters.length===u.length,"Parameter count and inference count should match"),un(s))XPe(e,n,u,o,c);else{let g=Lo(s)&&!_o(s,21,n);g&&e.insertNodeBefore(n,Ea(s.parameters),A.createToken(21));for(let{declaration:m,type:h}of u)m&&!m.type&&!m.initializer&&xH(e,t,n,m,h,o,c);g&&e.insertNodeAfter(n,xa(s.parameters),A.createToken(22))}}function FYe(e,t,n,i,s,o){let c=YPe(n,t,i,o);if(!c||!c.length)return;let _=mfe(i,c,o).thisParameter(),u=FE(_,n,i,s);u&&(un(n)?OYe(e,t,n,u):e.tryInsertThisTypeAnnotation(t,n,u))}function OYe(e,t,n,i){e.addJSDocTags(t,n,[A.createJSDocThisTag(void 0,A.createJSDocTypeExpression(i))])}function KPe(e,t,n,i,s,o,c){let _=_l(i.parameters);if(_&&je(i.name)&&je(_.name)){let u=R3(i.name,s,c);u===s.getTypeChecker().getAnyType()&&(u=R3(_.name,s,c)),un(i)?XPe(e,n,[{declaration:_,type:u}],s,o):xH(e,t,n,_,u,s,o)}}function xH(e,t,n,i,s,o,c){let _=FE(s,i,o,c);if(_)if(un(n)&&i.kind!==171){let u=oi(i)?Vn(i.parent.parent,Lc):i;if(!u)return;let g=A.createJSDocTypeExpression(_),m=Mp(i)?A.createJSDocReturnTag(void 0,g,void 0):A.createJSDocTypeTag(void 0,g,void 0);e.addJSDocTags(n,u,[m])}else LYe(_,i,n,e,t,wa(o.getCompilerOptions()))||e.tryInsertTypeAnnotation(n,i,_)}function LYe(e,t,n,i,s,o){let c=iT(e,o);return c&&i.tryInsertTypeAnnotation(n,t,c.typeNode)?(or(c.symbols,_=>s.addImportFromExportedSymbol(_,!0)),!0):!1}function XPe(e,t,n,i,s){let o=n.length&&n[0].declaration.parent;if(!o)return;let c=Vi(n,_=>{let u=_.declaration;if(u.initializer||h0(u)||!je(u.name))return;let g=_.type&&FE(_.type,u,i,s);if(g){let m=A.cloneNode(u.name);return dn(m,7168),{name:A.cloneNode(u.name),param:u,isOptional:!!_.isOptional,typeNode:g}}});if(c.length)if(Lo(o)||Ao(o)){let _=Lo(o)&&!_o(o,21,t);_&&e.insertNodeBefore(t,Ea(o.parameters),A.createToken(21)),or(c,({typeNode:u,param:g})=>{let m=A.createJSDocTypeTag(void 0,A.createJSDocTypeExpression(u)),h=A.createJSDocComment(void 0,[m]);e.insertNodeAt(t,g.getStart(t),h,{suffix:" "})}),_&&e.insertNodeAfter(t,xa(o.parameters),A.createToken(22))}else{let _=hr(c,({name:u,typeNode:g,isOptional:m})=>A.createJSDocParameterTag(void 0,u,!!m,A.createJSDocTypeExpression(g),!1,void 0));e.addJSDocTags(t,o,_)}}function dfe(e,t,n){return Vi(jo.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n),i=>i.kind!==jo.EntryKind.Span?Vn(i.node,je):void 0)}function R3(e,t,n){let i=dfe(e,t,n);return mfe(t,i,n).single()}function jYe(e,t,n,i){let s=YPe(e,t,n,i);return s&&mfe(n,s,i).parameters(e)||e.parameters.map(o=>({declaration:o,type:je(o.name)?R3(o.name,n,i):n.getTypeChecker().getAnyType()}))}function YPe(e,t,n,i){let s;switch(e.kind){case 176:s=_o(e,137,t);break;case 219:case 218:let o=e.parent;s=(oi(o)||ds(o))&&je(o.name)?o.name:e.name;break;case 262:case 174:case 173:s=e.name;break}if(s)return dfe(s,n,i)}function mfe(e,t,n){let i=e.getTypeChecker(),s={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:xe=>i.createArrayType(xe),Promise:xe=>i.createPromiseType(xe)},o=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:u,parameters:g,thisParameter:m};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 _(xe){let _e=new Map;for(let ct of xe)ct.properties&&ct.properties.forEach((le,Je)=>{_e.has(Je)||_e.set(Je,[]),_e.get(Je).push(le)});let tt=new Map;return _e.forEach((ct,le)=>{tt.set(le,_(ct))}),{isNumber:xe.some(ct=>ct.isNumber),isString:xe.some(ct=>ct.isString),isNumberOrString:xe.some(ct=>ct.isNumberOrString),candidateTypes:ga(xe,ct=>ct.candidateTypes),properties:tt,calls:ga(xe,ct=>ct.calls),constructs:ga(xe,ct=>ct.constructs),numberIndex:or(xe,ct=>ct.numberIndex),stringIndex:or(xe,ct=>ct.stringIndex),candidateThisTypes:ga(xe,ct=>ct.candidateThisTypes),inferredTypes:void 0}}function u(){return me(h(t))}function g(xe){if(t.length===0||!xe.parameters)return;let _e=c();for(let ct of t)n.throwIfCancellationRequested(),S(ct,_e);let tt=[..._e.constructs||[],..._e.calls||[]];return xe.parameters.map((ct,le)=>{let Je=[],ee=Tg(ct),Ne=!1;for(let Ce of tt)if(Ce.argumentTypes.length<=le)Ne=un(xe),Je.push(i.getUndefinedType());else if(ee)for(let Ve=le;Ve<Ce.argumentTypes.length;Ve++)Je.push(i.getBaseTypeOfLiteralType(Ce.argumentTypes[Ve]));else Je.push(i.getBaseTypeOfLiteralType(Ce.argumentTypes[le]));if(je(ct.name)){let Ce=h(dfe(ct.name,e,n));Je.push(...ee?Vi(Ce,i.getElementTypeOfArrayType):Ce)}let Ie=me(Je);return{type:ee?i.createArrayType(Ie):Ie,isOptional:Ne&&!ee,declaration:ct}})}function m(){let xe=c();for(let _e of t)n.throwIfCancellationRequested(),S(_e,xe);return me(xe.candidateThisTypes||qe)}function h(xe){let _e=c();for(let tt of xe)n.throwIfCancellationRequested(),S(tt,_e);return V(_e)}function S(xe,_e){for(;fA(xe);)xe=xe.parent;switch(xe.parent.kind){case 244:x(xe,_e);break;case 225:_e.isNumber=!0;break;case 224:I(xe.parent,_e);break;case 226:D(xe,xe.parent,_e);break;case 296:case 297:E(xe.parent,_e);break;case 213:case 214:xe.parent.expression===xe?O(xe.parent,_e):T(xe,_e);break;case 211:F(xe.parent,_e);break;case 212:B(xe.parent,xe,_e);break;case 303:case 304:G(xe.parent,_e);break;case 172:$(xe.parent,_e);break;case 260:{let{name:tt,initializer:ct}=xe.parent;if(xe===tt){ct&&De(_e,i.getTypeAtLocation(ct));break}}default:return T(xe,_e)}}function T(xe,_e){Ud(xe)&&De(_e,i.getContextualType(xe))}function x(xe,_e){De(_e,qs(xe)?i.getVoidType():i.getAnyType())}function I(xe,_e){switch(xe.operator){case 46:case 47:case 41:case 55:_e.isNumber=!0;break;case 40:_e.isNumberOrString=!0;break}}function D(xe,_e,tt){switch(_e.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 ct=i.getTypeAtLocation(_e.left===xe?_e.right:_e.left);ct.flags&1056?De(tt,ct):tt.isNumber=!0;break;case 65:case 40:let le=i.getTypeAtLocation(_e.left===xe?_e.right:_e.left);le.flags&1056?De(tt,le):le.flags&296?tt.isNumber=!0:le.flags&402653316?tt.isString=!0:le.flags&1||(tt.isNumberOrString=!0);break;case 64:case 35:case 37:case 38:case 36:case 77:case 78:case 76:De(tt,i.getTypeAtLocation(_e.left===xe?_e.right:_e.left));break;case 103:xe===_e.left&&(tt.isString=!0);break;case 57:case 61:xe===_e.left&&(xe.parent.parent.kind===260||ql(xe.parent.parent,!0))&&De(tt,i.getTypeAtLocation(_e.right));break;case 56:case 28:case 104:break}}function E(xe,_e){De(_e,i.getTypeAtLocation(xe.parent.parent.expression))}function O(xe,_e){let tt={argumentTypes:[],return_:c()};if(xe.arguments)for(let ct of xe.arguments)tt.argumentTypes.push(i.getTypeAtLocation(ct));S(xe,tt.return_),xe.kind===213?(_e.calls||(_e.calls=[])).push(tt):(_e.constructs||(_e.constructs=[])).push(tt)}function F(xe,_e){let tt=gc(xe.name.text);_e.properties||(_e.properties=new Map);let ct=_e.properties.get(tt)||c();S(xe,ct),_e.properties.set(tt,ct)}function B(xe,_e,tt){if(_e===xe.argumentExpression){tt.isNumberOrString=!0;return}else{let ct=i.getTypeAtLocation(xe.argumentExpression),le=c();S(xe,le),ct.flags&296?tt.numberIndex=le:tt.stringIndex=le}}function G(xe,_e){let tt=oi(xe.parent.parent)?xe.parent.parent:xe.parent;se(_e,i.getTypeAtLocation(tt))}function $(xe,_e){se(_e,i.getTypeAtLocation(xe.parent))}function K(xe,_e){let tt=[];for(let ct of xe)for(let{high:le,low:Je}of _e)le(ct)&&(w.assert(!Je(ct),"Priority can't have both low and high"),tt.push(Je));return xe.filter(ct=>tt.every(le=>!le(ct)))}function U(xe){return me(V(xe))}function me(xe){if(!xe.length)return i.getAnyType();let _e=i.getUnionType([i.getStringType(),i.getNumberType()]),ct=K(xe,[{high:Je=>Je===i.getStringType()||Je===i.getNumberType(),low:Je=>Je===_e},{high:Je=>!(Je.flags&16385),low:Je=>!!(Je.flags&16385)},{high:Je=>!(Je.flags&114689)&&!(Mn(Je)&16),low:Je=>!!(Mn(Je)&16)}]),le=ct.filter(Je=>Mn(Je)&16);return le.length&&(ct=ct.filter(Je=>!(Mn(Je)&16)),ct.push(te(le))),i.getWidenedType(i.getUnionType(ct.map(i.getBaseTypeOfLiteralType),2))}function te(xe){if(xe.length===1)return xe[0];let _e=[],tt=[],ct=[],le=[],Je=!1,ee=!1,Ne=Kp();for(let Ve of xe){for(let ur of i.getPropertiesOfType(Ve))Ne.add(ur.escapedName,ur.valueDeclaration?i.getTypeOfSymbolAtLocation(ur,ur.valueDeclaration):i.getAnyType());_e.push(...i.getSignaturesOfType(Ve,0)),tt.push(...i.getSignaturesOfType(Ve,1));let bt=i.getIndexInfoOfType(Ve,0);bt&&(ct.push(bt.type),Je=Je||bt.isReadonly);let zt=i.getIndexInfoOfType(Ve,1);zt&&(le.push(zt.type),ee=ee||zt.isReadonly)}let Ie=CY(Ne,(Ve,bt)=>{let zt=bt.length<xe.length?16777216:0,ur=i.createSymbol(4|zt,Ve);return ur.links.type=i.getUnionType(bt),[Ve,ur]}),Ce=[];return ct.length&&Ce.push(i.createIndexInfo(i.getStringType(),i.getUnionType(ct),Je)),le.length&&Ce.push(i.createIndexInfo(i.getNumberType(),i.getUnionType(le),ee)),i.createAnonymousType(xe[0].symbol,Ie,_e,tt,Ce)}function V(xe){var _e,tt,ct;let le=[];xe.isNumber&&le.push(i.getNumberType()),xe.isString&&le.push(i.getStringType()),xe.isNumberOrString&&le.push(i.getUnionType([i.getStringType(),i.getNumberType()])),xe.numberIndex&&le.push(i.createArrayType(U(xe.numberIndex))),((_e=xe.properties)!=null&&_e.size||(tt=xe.constructs)!=null&&tt.length||xe.stringIndex)&&le.push(ne(xe));let Je=(xe.candidateTypes||[]).map(Ne=>i.getBaseTypeOfLiteralType(Ne)),ee=(ct=xe.calls)!=null&&ct.length?ne(xe):void 0;return ee&&Je?le.push(i.getUnionType([ee,...Je],2)):(ee&&le.push(ee),Dr(Je)&&le.push(...Je)),le.push(...ie(xe)),le}function ne(xe){let _e=new Map;xe.properties&&xe.properties.forEach((Je,ee)=>{let Ne=i.createSymbol(4,ee);Ne.links.type=U(Je),_e.set(ee,Ne)});let tt=xe.calls?[Ge(xe.calls)]:[],ct=xe.constructs?[Ge(xe.constructs)]:[],le=xe.stringIndex?[i.createIndexInfo(i.getStringType(),U(xe.stringIndex),!1)]:[];return i.createAnonymousType(void 0,_e,tt,ct,le)}function ie(xe){if(!xe.properties||!xe.properties.size)return[];let _e=o.filter(tt=>oe(tt,xe));return 0<_e.length&&_e.length<3?_e.map(tt=>de(tt,xe)):[]}function oe(xe,_e){return _e.properties?!Nl(_e.properties,(tt,ct)=>{let le=i.getTypeOfPropertyOfType(xe,ct);return le?tt.calls?!i.getSignaturesOfType(le,0).length||!i.isTypeAssignableTo(le,ve(tt.calls)):!i.isTypeAssignableTo(le,U(tt)):!0}):!1}function de(xe,_e){if(!(Mn(xe)&4)||!_e.properties)return xe;let tt=xe.target,ct=hg(tt.typeParameters);if(!ct)return xe;let le=[];return _e.properties.forEach((Je,ee)=>{let Ne=i.getTypeOfPropertyOfType(tt,ee);w.assert(!!Ne,"generic should have all the properties of its reference."),le.push(...ye(Ne,U(Je),ct))}),s[xe.symbol.escapedName](me(le))}function ye(xe,_e,tt){if(xe===tt)return[_e];if(xe.flags&3145728)return ga(xe.types,Je=>ye(Je,_e,tt));if(Mn(xe)&4&&Mn(_e)&4){let Je=i.getTypeArguments(xe),ee=i.getTypeArguments(_e),Ne=[];if(Je&&ee)for(let Ie=0;Ie<Je.length;Ie++)ee[Ie]&&Ne.push(...ye(Je[Ie],ee[Ie],tt));return Ne}let ct=i.getSignaturesOfType(xe,0),le=i.getSignaturesOfType(_e,0);return ct.length===1&&le.length===1?H(ct[0],le[0],tt):[]}function H(xe,_e,tt){var ct;let le=[];for(let Ne=0;Ne<xe.parameters.length;Ne++){let Ie=xe.parameters[Ne],Ce=_e.parameters[Ne],Ve=xe.declaration&&Tg(xe.declaration.parameters[Ne]);if(!Ce)break;let bt=Ie.valueDeclaration?i.getTypeOfSymbolAtLocation(Ie,Ie.valueDeclaration):i.getAnyType(),zt=Ve&&i.getElementTypeOfArrayType(bt);zt&&(bt=zt);let ur=((ct=Vn(Ce,lh))==null?void 0:ct.links.type)||(Ce.valueDeclaration?i.getTypeOfSymbolAtLocation(Ce,Ce.valueDeclaration):i.getAnyType());le.push(...ye(bt,ur,tt))}let Je=i.getReturnTypeOfSignature(xe),ee=i.getReturnTypeOfSignature(_e);return le.push(...ye(Je,ee,tt)),le}function ve(xe){return i.createAnonymousType(void 0,ea(),[Ge(xe)],qe,qe)}function Ge(xe){let _e=[],tt=Math.max(...xe.map(le=>le.argumentTypes.length));for(let le=0;le<tt;le++){let Je=i.createSymbol(1,gc(`arg${le}`));Je.links.type=me(xe.map(ee=>ee.argumentTypes[le]||i.getUndefinedType())),xe.some(ee=>ee.argumentTypes[le]===void 0)&&(Je.flags|=16777216),_e.push(Je)}let ct=U(_(xe.map(le=>le.return_)));return i.createSignature(void 0,void 0,void 0,_e,ct,void 0,tt,0)}function De(xe,_e){_e&&!(_e.flags&1)&&!(_e.flags&131072)&&(xe.candidateTypes||(xe.candidateTypes=[])).push(_e)}function se(xe,_e){_e&&!(_e.flags&1)&&!(_e.flags&131072)&&(xe.candidateThisTypes||(xe.candidateThisTypes=[])).push(_e)}}var gfe="fixReturnTypeInAsyncFunction",ZPe=[p.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:ZPe,fixIds:[gfe],getCodeActions:function(t){let{sourceFile:n,program:i,span:s}=t,o=i.getTypeChecker(),c=eAe(n,i.getTypeChecker(),s.start);if(!c)return;let{returnTypeNode:_,returnType:u,promisedTypeNode:g,promisedType:m}=c,h=fn.ChangeTracker.with(t,S=>tAe(S,n,_,g));return[$s(gfe,h,[p.Replace_0_with_Promise_1,o.typeToString(u),o.typeToString(m)],gfe,p.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>oo(e,ZPe,(t,n)=>{let i=eAe(n.file,e.program.getTypeChecker(),n.start);i&&tAe(t,n.file,i.returnTypeNode,i.promisedTypeNode)})});function eAe(e,t,n){if(un(e))return;let i=ki(e,n),s=gr(i,xo),o=s?.type;if(!o)return;let c=t.getTypeFromTypeNode(o),_=t.getAwaitedType(c)||t.getVoidType(),u=t.typeToTypeNode(_,o,void 0);if(u)return{returnTypeNode:o,returnType:c,promisedTypeNode:u,promisedType:_}}function tAe(e,t,n,i){e.replaceNode(t,n,A.createTypeReferenceNode("Promise",[i]))}var rAe="disableJsDiagnostics",nAe="disableJsDiagnostics",iAe=Vi(Object.keys(p),e=>{let t=p[e];return t.category===1?t.code:void 0});aa({errorCodes:iAe,getCodeActions:function(t){let{sourceFile:n,program:i,span:s,host:o,formatContext:c}=t;if(!un(n)||!xA(n,i.getCompilerOptions()))return;let _=n.checkJsDirective?"":yy(o,c.options),u=[em(rAe,[$Ce(n.fileName,[s3(n.checkJsDirective?Uc(n.checkJsDirective.pos,n.checkJsDirective.end):pu(0,0),`// @ts-nocheck${_}`)])],p.Disable_checking_for_this_file)];return fn.isValidLocationToAddComment(n,s.start)&&u.unshift($s(rAe,fn.ChangeTracker.with(t,g=>sAe(g,n,s.start)),p.Ignore_this_error_message,nAe,p.Add_ts_ignore_to_all_error_messages)),u},fixIds:[nAe],getAllCodeActions:e=>{let t=new Set;return oo(e,iAe,(n,i)=>{fn.isValidLocationToAddComment(i.file,i.start)&&sAe(n,i.file,i.start,t)})}});function sAe(e,t,n,i){let{line:s}=Qs(t,n);(!i||Qy(i,s))&&e.insertCommentBeforeLine(t,s,n," @ts-ignore")}function hfe(e,t,n,i,s,o,c){let _=e.symbol.members;for(let u of t)_.has(u.escapedName)||oAe(u,e,n,i,s,o,c,void 0)}function sD(e){return{trackSymbol:()=>!1,moduleResolverHost:Fq(e.program,e.host)}}var aAe=(e=>(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(aAe||{});function oAe(e,t,n,i,s,o,c,_,u=3,g=!1){let m=e.getDeclarations(),h=_l(m),S=i.program.getTypeChecker(),T=wa(i.program.getCompilerOptions()),x=h?.kind??171,I=oe(e,h),D=h?r_(h):0,E=D&256;E|=D&1?1:D&4?4:0,h&&N_(h)&&(E|=512);let O=me(),F=S.getWidenedType(S.getTypeOfSymbolAtLocation(e,t)),B=!!(e.flags&16777216),G=!!(t.flags&33554432)||g,$=Tf(n,s),K=1|($===0?268435456:0);switch(x){case 171:case 172:let de=S.typeToTypeNode(F,t,K,8,sD(i));if(o){let H=iT(de,T);H&&(de=H.typeNode,Vk(o,H.symbols))}c(A.createPropertyDeclaration(O,h?V(I):e.getName(),B&&u&2?A.createToken(58):void 0,de,void 0));break;case 177:case 178:{w.assertIsDefined(m);let H=S.typeToTypeNode(F,t,K,void 0,sD(i)),ve=wS(m,h),Ge=ve.secondAccessor?[ve.firstAccessor,ve.secondAccessor]:[ve.firstAccessor];if(o){let De=iT(H,T);De&&(H=De.typeNode,Vk(o,De.symbols))}for(let De of Ge)if(Mp(De))c(A.createGetAccessorDeclaration(O,V(I),qe,ie(H),ne(_,$,G)));else{w.assertNode(De,X_,"The counterpart to a getter should be a setter");let se=uA(De),xe=se&&je(se.name)?Ln(se.name):void 0;c(A.createSetAccessorDeclaration(O,V(I),bfe(1,[xe],[ie(H)],1,!1),ne(_,$,G)))}break}case 173:case 174:w.assertIsDefined(m);let ye=F.isUnion()?ga(F.types,H=>H.getCallSignatures()):F.getCallSignatures();if(!pt(ye))break;if(m.length===1){w.assert(ye.length===1,"One declaration implies one signature");let H=ye[0];U($,H,O,V(I),ne(_,$,G));break}for(let H of ye)H.declaration&&H.declaration.flags&33554432||U($,H,O,V(I));if(!G)if(m.length>ye.length){let H=S.getSignatureFromDeclaration(m[m.length-1]);U($,H,O,V(I),ne(_,$))}else w.assert(m.length===ye.length,"Declarations and signatures should match count"),c(GYe(S,i,t,ye,V(I),B&&!!(u&1),O,$,_));break}function U(de,ye,H,ve,Ge){let De=CH(174,i,de,ye,Ge,ve,H,B&&!!(u&1),t,o);De&&c(De)}function me(){let de;return E&&(de=Wx(de,A.createModifiersFromModifierFlags(E))),te()&&(de=jr(de,A.createToken(164))),de&&A.createNodeArray(de)}function te(){return!!(i.program.getCompilerOptions().noImplicitOverride&&h&&IS(h))}function V(de){return je(de)&&de.escapedText==="constructor"?A.createComputedPropertyName(A.createStringLiteral(Ln(de),$===0)):ro(de,!1)}function ne(de,ye,H){return H?void 0:ro(de,!1)||Sfe(ye)}function ie(de){return ro(de,!1)}function oe(de,ye){if(kc(de)&262144){let H=de.links.nameType;if(H&&Ep(H))return A.createIdentifier(Li(Np(H)))}return ro(vs(ye),!1)}}function CH(e,t,n,i,s,o,c,_,u,g){let m=t.program,h=m.getTypeChecker(),S=wa(m.getCompilerOptions()),T=un(u),x=524545|(n===0?268435456:0),I=h.signatureToSignatureDeclaration(i,e,u,x,8,sD(t));if(!I)return;let D=T?void 0:I.typeParameters,E=I.parameters,O=T?void 0:ro(I.type);if(g){if(D){let $=ul(D,K=>{let U=K.constraint,me=K.default;if(U){let te=iT(U,S);te&&(U=te.typeNode,Vk(g,te.symbols))}if(me){let te=iT(me,S);te&&(me=te.typeNode,Vk(g,te.symbols))}return A.updateTypeParameterDeclaration(K,K.modifiers,K.name,U,me)});D!==$&&(D=dt(A.createNodeArray($,D.hasTrailingComma),D))}let G=ul(E,$=>{let K=T?void 0:$.type;if(K){let U=iT(K,S);U&&(K=U.typeNode,Vk(g,U.symbols))}return A.updateParameterDeclaration($,$.modifiers,$.dotDotDotToken,$.name,T?void 0:$.questionToken,K,$.initializer)});if(E!==G&&(E=dt(A.createNodeArray(G,E.hasTrailingComma),E)),O){let $=iT(O,S);$&&(O=$.typeNode,Vk(g,$.symbols))}}let F=_?A.createToken(58):void 0,B=I.asteriskToken;if(Ao(I))return A.updateFunctionExpression(I,c,I.asteriskToken,Vn(o,je),D,E,O,s??I.body);if(Lo(I))return A.updateArrowFunction(I,c,D,E,O,I.equalsGreaterThanToken,s??I.body);if(xc(I))return A.updateMethodDeclaration(I,c,B,o??A.createIdentifier(""),F,D,E,O,s);if(jc(I))return A.updateFunctionDeclaration(I,c,I.asteriskToken,Vn(o,je),D,E,O,s??I.body)}function yfe(e,t,n,i,s,o,c){let _=Tf(t.sourceFile,t.preferences),u=wa(t.program.getCompilerOptions()),g=sD(t),m=t.program.getTypeChecker(),h=un(c),{typeArguments:S,arguments:T,parent:x}=i,I=h?void 0:m.getContextualType(i),D=hr(T,me=>je(me)?me.text:Nn(me)&&je(me.name)?me.name.text:void 0),E=h?[]:hr(T,me=>m.getTypeAtLocation(me)),{argumentTypeNodes:O,argumentTypeParameters:F}=zYe(m,n,E,c,u,1,8,g),B=o?A.createNodeArray(A.createModifiersFromModifierFlags(o)):void 0,G=Y4(x)?A.createToken(42):void 0,$=h?void 0:WYe(m,F,S),K=bfe(T.length,D,O,void 0,h),U=h||I===void 0?void 0:m.typeToTypeNode(I,c,void 0,void 0,g);switch(e){case 174:return A.createMethodDeclaration(B,G,s,void 0,$,K,U,Sfe(_));case 173:return A.createMethodSignature(B,s,void 0,$,K,U===void 0?A.createKeywordTypeNode(159):U);case 262:return w.assert(typeof s=="string"||je(s),"Unexpected name"),A.createFunctionDeclaration(B,G,s,$,K,U,ej(p.Function_not_implemented.message,_));default:w.fail("Unexpected kind")}}function WYe(e,t,n){let i=new Set(t.map(o=>o[0])),s=new Map(t);if(n){let o=n.filter(_=>!t.some(u=>{var g;return e.getTypeAtLocation(_)===((g=u[1])==null?void 0:g.argumentType)})),c=i.size+o.length;for(let _=0;i.size<c;_+=1)i.add(cAe(_))}return ps(i.values(),o=>{var c;return A.createTypeParameterDeclaration(void 0,o,(c=s.get(o))==null?void 0:c.constraint)})}function cAe(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function wH(e,t,n,i,s,o,c,_){let u=e.typeToTypeNode(n,i,o,c,_);if(u)return vfe(u,t,s)}function vfe(e,t,n){let i=iT(e,n);return i&&(Vk(t,i.symbols),e=i.typeNode),ro(e)}function BYe(e,t){w.assert(t.typeArguments);let n=t.typeArguments,i=t.target;for(let s=0;s<n.length;s++){let o=n.slice(0,s);if(e.fillMissingTypeArguments(o,i.typeParameters,s,!1).every((_,u)=>_===n[u]))return s}return n.length}function lAe(e,t,n,i,s,o){let c=e.typeToTypeNode(t,n,i,s,o);if(c){if(yf(c)){let _=t;if(_.typeArguments&&c.typeArguments){let u=BYe(e,_);if(u<c.typeArguments.length){let g=A.createNodeArray(c.typeArguments.slice(0,u));c=A.updateTypeReferenceNode(c,c.typeName,g)}}}return c}}function uAe(e,t,n,i,s,o,c,_){let u=e.typePredicateToTypePredicateNode(n,i,o,c,_);if(u?.type&&Om(u.type)){let g=iT(u.type,s);g&&(Vk(t,g.symbols),u=A.updateTypePredicateNode(u,u.assertsModifier,u.parameterName,g.typeNode))}return ro(u)}function _Ae(e){return e.isUnionOrIntersection()?e.types.some(_Ae):e.flags&262144}function zYe(e,t,n,i,s,o,c,_){let u=[],g=new Map;for(let m=0;m<n.length;m+=1){let h=n[m];if(h.isUnionOrIntersection()&&h.types.some(_Ae)){let D=cAe(m);u.push(A.createTypeReferenceNode(D)),g.set(D,void 0);continue}let S=e.getBaseTypeOfLiteralType(h),T=wH(e,t,S,i,s,o,c,_);if(!T)continue;u.push(T);let x=fAe(h),I=h.isTypeParameter()&&h.constraint&&!JYe(h.constraint)?wH(e,t,h.constraint,i,s,o,c,_):void 0;x&&g.set(x,{argumentType:h,constraint:I})}return{argumentTypeNodes:u,argumentTypeParameters:ps(g.entries())}}function JYe(e){return e.flags&524288&&e.objectFlags===16}function fAe(e){var t;if(e.flags&3145728)for(let n of e.types){let i=fAe(n);if(i)return i}return e.flags&262144?(t=e.getSymbol())==null?void 0:t.getName():void 0}function bfe(e,t,n,i,s){let o=[],c=new Map;for(let _=0;_<e;_++){let u=t?.[_]||`arg${_}`,g=c.get(u);c.set(u,(g||0)+1);let m=A.createParameterDeclaration(void 0,void 0,u+(g||""),i!==void 0&&_>=i?A.createToken(58):void 0,s?void 0:n?.[_]||A.createKeywordTypeNode(159),void 0);o.push(m)}return o}function GYe(e,t,n,i,s,o,c,_,u){let g=i[0],m=i[0].minArgumentCount,h=!1;for(let I of i)m=Math.min(I.minArgumentCount,m),Gu(I)&&(h=!0),I.parameters.length>=g.parameters.length&&(!Gu(I)||Gu(g))&&(g=I);let S=g.parameters.length-(Gu(g)?1:0),T=g.parameters.map(I=>I.name),x=bfe(S,T,void 0,m,!1);if(h){let I=A.createParameterDeclaration(void 0,A.createToken(26),T[S]||"rest",S>=m?A.createToken(58):void 0,A.createArrayTypeNode(A.createKeywordTypeNode(159)),void 0);x.push(I)}return VYe(c,s,o,void 0,x,UYe(i,e,t,n),_,u)}function UYe(e,t,n,i){if(Dr(e)){let s=t.getUnionType(hr(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(s,i,1,8,sD(n))}}function VYe(e,t,n,i,s,o,c,_){return A.createMethodDeclaration(e,void 0,t,n?A.createToken(58):void 0,i,s,o,_||Sfe(c))}function Sfe(e){return ej(p.Method_not_implemented.message,e)}function ej(e,t){return A.createBlock([A.createThrowStatement(A.createNewExpression(A.createIdentifier("Error"),void 0,[A.createStringLiteral(e,t===0)]))],!0)}function Tfe(e,t,n){let i=QP(t);if(!i)return;let s=pAe(i,"compilerOptions");if(s===void 0){e.insertNodeAtObjectStart(t,i,xfe("compilerOptions",A.createObjectLiteralExpression(n.map(([c,_])=>xfe(c,_)),!0)));return}let o=s.initializer;if(Sa(o))for(let[c,_]of n){let u=pAe(o,c);u===void 0?e.insertNodeAtObjectStart(t,o,xfe(c,_)):e.replaceNode(t,u.initializer,_)}}function kfe(e,t,n,i){Tfe(e,t,[[n,i]])}function xfe(e,t){return A.createPropertyAssignment(A.createStringLiteral(e),t)}function pAe(e,t){return On(e.properties,n=>hl(n)&&!!n.name&&ya(n.name)&&n.name.text===t)}function iT(e,t){let n,i=et(e,s,di);if(n&&i)return{typeNode:i,symbols:n};function s(o){if(sy(o)&&o.qualifier){let c=h_(o.qualifier);if(!c.symbol)return Ir(o,s,void 0);let _=TL(c.symbol,t),u=_!==c.text?dAe(o.qualifier,A.createIdentifier(_)):o.qualifier;n=jr(n,c.symbol);let g=Ur(o.typeArguments,s,di);return A.createTypeReferenceNode(u,g)}return Ir(o,s,void 0)}}function dAe(e,t){return e.kind===80?t:A.createQualifiedName(dAe(e.left,t),e.right)}function Vk(e,t){t.forEach(n=>e.addImportFromExportedSymbol(n,!0))}function Cfe(e,t){let n=mc(t),i=ki(e,t.start);for(;i.end<n;)i=i.parent;return i}function mAe(e,t,n,i,s,o){let c=yAe(e,t,n,i);if(!c||lC.isRefactorErrorInfo(c))return;let _=fn.ChangeTracker.fromContext(s),{isStatic:u,isReadonly:g,fieldName:m,accessorName:h,originalName:S,type:T,container:x,declaration:I}=c;xf(m),xf(h),xf(I),xf(x);let D,E;if(ii(x)){let F=r_(I);if(g_(e)){let B=A.createModifiersFromModifierFlags(F);D=B,E=B}else D=A.createModifiersFromModifierFlags(HYe(F)),E=A.createModifiersFromModifierFlags(QYe(F));JS(I)&&(E=Ki(g0(I),E))}eZe(_,e,I,T,m,E);let O=KYe(m,h,T,D,u,x);if(xf(O),vAe(_,e,O,I,x),g){let F=mh(x);F&&tZe(_,e,F,m.text,S)}else{let F=XYe(m,h,T,D,u,x);xf(F),vAe(_,e,F,I,x)}return _.getChanges()}function qYe(e){return je(e)||ya(e)}function $Ye(e){return pf(e,e.parent)||ds(e)||hl(e)}function gAe(e,t){return je(t)?A.createIdentifier(e):A.createStringLiteral(e)}function hAe(e,t,n){let i=t?n.name:A.createThis();return je(e)?A.createPropertyAccessExpression(i,e):A.createElementAccessExpression(i,A.createStringLiteralFromNode(e))}function HYe(e){return e&=-9,e&=-3,e&4||(e|=1),e}function QYe(e){return e&=-2,e&=-5,e|=2,e}function yAe(e,t,n,i,s=!0){let o=ki(e,n),c=n===i&&s,_=gr(o.parent,$Ye),u=271;if(!_||!(K5(_.name,e,n,i)||c))return{error:Is(p.Could_not_find_property_for_which_to_generate_accessor)};if(!qYe(_.name))return{error:Is(p.Name_is_not_valid)};if((r_(_)&98303|u)!==u)return{error:Is(p.Can_only_convert_property_with_modifier)};let g=_.name.text,m=c$(g),h=gAe(m?g:Uk(`_${g}`,e),_.name),S=gAe(m?Uk(g.substring(1),e):g,_.name);return{isStatic:Tl(_),isReadonly:gk(_),type:rZe(_,t),container:_.kind===169?_.parent.parent:_.parent,originalName:_.name.text,declaration:_,fieldName:h,accessorName:S,renameAccessor:m}}function KYe(e,t,n,i,s,o){return A.createGetAccessorDeclaration(i,t,[],n,A.createBlock([A.createReturnStatement(hAe(e,s,o))],!0))}function XYe(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(hAe(e,s,o),A.createIdentifier("value")))],!0))}function YYe(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 ZYe(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 eZe(e,t,n,i,s,o){ds(n)?YYe(e,t,n,i,s,o):hl(n)?ZYe(e,t,n,s):e.replaceNode(t,n,A.updateParameterDeclaration(n,o,n.dotDotDotToken,Zs(s,je),n.questionToken,n.type,n.initializer))}function vAe(e,t,n,i,s){pf(i,i.parent)?e.insertMemberAtStart(t,s,n):hl(i)?e.insertNodeAfterComma(t,i,n):e.insertNodeAfter(t,i,n)}function tZe(e,t,n,i,s){n.body&&n.body.forEachChild(function o(c){wo(c)&&c.expression.kind===110&&ya(c.argumentExpression)&&c.argumentExpression.text===s&&v2(c)&&e.replaceNode(t,c.argumentExpression,A.createStringLiteral(i)),Nn(c)&&c.expression.kind===110&&c.name.text===s&&v2(c)&&e.replaceNode(t,c.name,A.createIdentifier(i)),!Ns(c)&&!ii(c)&&c.forEachChild(o)})}function rZe(e,t){let n=yre(e);if(ds(e)&&n&&e.questionToken){let i=t.getTypeChecker(),s=i.getTypeFromTypeNode(n);if(!i.isTypeAssignableTo(i.getUndefinedType(),s)){let o=cv(n)?n.types:[n];return A.createUnionTypeNode([...o,A.createKeywordTypeNode(157)])}}return n}function wfe(e,t){let n=[];for(;e;){let i=TS(e),s=i&&t.getSymbolAtLocation(i.expression);if(!s)break;let o=s.flags&2097152?t.getAliasedSymbol(s):s,c=o.declarations&&On(o.declarations,ii);if(!c)break;n.push(c),e=c}return n}var bAe="invalidImportSyntax";function nZe(e,t){let n=Fr(t),i=qw(t),s=e.program.getCompilerOptions(),o=[];return o.push(SAe(e,n,t,K0(i.name,void 0,t.moduleSpecifier,Tf(n,e.preferences)))),n_(s)===1&&o.push(SAe(e,n,t,A.createImportEqualsDeclaration(void 0,!1,i.name,A.createExternalModuleReference(t.moduleSpecifier)))),o}function SAe(e,t,n,i){let s=fn.ChangeTracker.with(e,o=>o.replaceNode(t,n,i));return em(bAe,s,[p.Replace_import_with_0,s[0].textChanges[0].newText])}aa({errorCodes:[p.This_expression_is_not_callable.code,p.This_expression_is_not_constructable.code],getCodeActions:iZe});function iZe(e){let t=e.sourceFile,n=p.This_expression_is_not_callable.code===e.errorCode?213:214,i=gr(ki(t,e.span.start),o=>o.kind===n);if(!i)return[];let s=i.expression;return TAe(e,s)}aa({errorCodes:[p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,p.Type_0_does_not_satisfy_the_constraint_1.code,p.Type_0_is_not_assignable_to_type_1.code,p.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,p.Type_predicate_0_is_not_assignable_to_1.code,p.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,p._0_index_type_1_is_not_assignable_to_2_index_type_3.code,p.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,p.Property_0_in_type_1_is_not_assignable_to_type_2.code,p.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,p.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:sZe});function sZe(e){let t=e.sourceFile,n=gr(ki(t,e.span.start),i=>i.getStart()===e.span.start&&i.getEnd()===e.span.start+e.span.length);return n?TAe(e,n):[]}function TAe(e,t){let n=e.program.getTypeChecker().getTypeAtLocation(t);if(!(n.symbol&&lh(n.symbol)&&n.symbol.links.originatingImport))return[];let i=[],s=n.symbol.links.originatingImport;if(jf(s)||jn(i,nZe(e,s)),gt(t)&&!(Gl(t.parent)&&t.parent.name===t)){let o=e.sourceFile,c=fn.ChangeTracker.with(e,_=>_.replaceNode(o,t,A.createPropertyAccessExpression(t,"default"),{}));i.push(em(bAe,c,p.Use_synthetic_default_member))}return i}var Ife="strictClassInitialization",Dfe="addMissingPropertyDefiniteAssignmentAssertions",Pfe="addMissingPropertyUndefinedType",Afe="addMissingPropertyInitializer",kAe=[p.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];aa({errorCodes:kAe,getCodeActions:function(t){let n=xAe(t.sourceFile,t.span.start);if(!n)return;let i=[];return jr(i,oZe(t,n)),jr(i,aZe(t,n)),jr(i,cZe(t,n)),i},fixIds:[Dfe,Pfe,Afe],getAllCodeActions:e=>oo(e,kAe,(t,n)=>{let i=xAe(n.file,n.start);if(i)switch(e.fixId){case Dfe:CAe(t,n.file,i.prop);break;case Pfe:wAe(t,n.file,i);break;case Afe:let s=e.program.getTypeChecker(),o=DAe(s,i.prop);if(!o)return;IAe(t,n.file,i.prop,o);break;default:w.fail(JSON.stringify(e.fixId))}})});function xAe(e,t){let n=ki(e,t);if(je(n)&&ds(n.parent)){let i=pl(n.parent);if(i)return{type:i,prop:n.parent,isJs:un(n.parent)}}}function aZe(e,t){if(t.isJs)return;let n=fn.ChangeTracker.with(e,i=>CAe(i,e.sourceFile,t.prop));return $s(Ife,n,[p.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],Dfe,p.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function CAe(e,t,n){xf(n);let i=A.updatePropertyDeclaration(n,n.modifiers,n.name,A.createToken(54),n.type,n.initializer);e.replaceNode(t,n,i)}function oZe(e,t){let n=fn.ChangeTracker.with(e,i=>wAe(i,e.sourceFile,t));return $s(Ife,n,[p.Add_undefined_type_to_property_0,t.prop.name.getText()],Pfe,p.Add_undefined_type_to_all_uninitialized_properties)}function wAe(e,t,n){let i=A.createKeywordTypeNode(157),s=cv(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 cZe(e,t){if(t.isJs)return;let n=e.program.getTypeChecker(),i=DAe(n,t.prop);if(!i)return;let s=fn.ChangeTracker.with(e,o=>IAe(o,e.sourceFile,t.prop,i));return $s(Ife,s,[p.Add_initializer_to_property_0,t.prop.name.getText()],Afe,p.Add_initializers_to_all_uninitialized_properties)}function IAe(e,t,n,i){xf(n);let s=A.updatePropertyDeclaration(n,n.modifiers,n.name,n.questionToken,n.type,i);e.replaceNode(t,n,s)}function DAe(e,t){return PAe(e,e.getTypeFromTypeNode(t.type))}function PAe(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 po(t.types,n=>PAe(e,n));if(t.isClass()){let n=_y(t.symbol);if(!n||ei(n,64))return;let i=mh(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 Efe="requireInTs",AAe=[p.require_call_may_be_converted_to_an_import.code];aa({errorCodes:AAe,getCodeActions(e){let t=NAe(e.sourceFile,e.program,e.span.start,e.preferences);if(!t)return;let n=fn.ChangeTracker.with(e,i=>EAe(i,e.sourceFile,t));return[$s(Efe,n,p.Convert_require_to_import,Efe,p.Convert_all_require_to_import)]},fixIds:[Efe],getAllCodeActions:e=>oo(e,AAe,(t,n)=>{let i=NAe(n.file,e.program,n.start,e.preferences);i&&EAe(t,e.sourceFile,i)})});function EAe(e,t,n){let{allowSyntheticDefaults:i,defaultImportName:s,namedImports:o,statement:c,moduleSpecifier:_}=n;e.replaceNode(t,c,s&&!i?A.createImportEqualsDeclaration(void 0,!1,s,A.createExternalModuleReference(_)):A.createImportDeclaration(void 0,A.createImportClause(!1,s,o),_,void 0))}function NAe(e,t,n,i){let{parent:s}=ki(e,n);R_(s,!0)||w.failBadSyntaxKind(s);let o=Zs(s.parent,oi),c=Tf(e,i),_=Vn(o.name,je),u=np(o.name)?lZe(o.name):void 0;if(_||u){let g=Ea(s.arguments);return{allowSyntheticDefaults:x2(t.getCompilerOptions()),defaultImportName:_,namedImports:u,statement:Zs(o.parent.parent,Lc),moduleSpecifier:Tk(g)?A.createStringLiteral(g.text,c===0):g}}}function lZe(e){let t=[];for(let n of e.elements){if(!je(n.name)||n.initializer)return;t.push(A.createImportSpecifier(!1,Vn(n.propertyName,je),n.name))}if(t.length)return A.createNamedImports(t)}var Nfe="useDefaultImport",MAe=[p.Import_may_be_converted_to_a_default_import.code];aa({errorCodes:MAe,getCodeActions(e){let{sourceFile:t,span:{start:n}}=e,i=RAe(t,n);if(!i)return;let s=fn.ChangeTracker.with(e,o=>FAe(o,t,i,e.preferences));return[$s(Nfe,s,p.Convert_to_default_import,Nfe,p.Convert_all_to_default_imports)]},fixIds:[Nfe],getAllCodeActions:e=>oo(e,MAe,(t,n)=>{let i=RAe(n.file,n.start);i&&FAe(t,n.file,i,e.preferences)})});function RAe(e,t){let n=ki(e,t);if(!je(n))return;let{parent:i}=n;if(Ol(i)&&dy(i.moduleReference))return{importNode:i,name:n,moduleSpecifier:i.moduleReference.expression};if(kh(i)&&sc(i.parent.parent)){let s=i.parent.parent;return{importNode:s,name:n,moduleSpecifier:s.moduleSpecifier}}}function FAe(e,t,n,i){e.replaceNode(t,n.importNode,K0(n.name,void 0,n.moduleSpecifier,Tf(t,i)))}var Mfe="useBigintLiteral",OAe=[p.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];aa({errorCodes:OAe,getCodeActions:function(t){let n=fn.ChangeTracker.with(t,i=>LAe(i,t.sourceFile,t.span));if(n.length>0)return[$s(Mfe,n,p.Convert_to_a_bigint_numeric_literal,Mfe,p.Convert_all_to_bigint_numeric_literals)]},fixIds:[Mfe],getAllCodeActions:e=>oo(e,OAe,(t,n)=>LAe(t,n.file,n))});function LAe(e,t,n){let i=Vn(ki(t,n.start),L_);if(!i)return;let s=i.getText(t)+"n";e.replaceNode(t,i,A.createBigIntLiteral(s))}var uZe="fixAddModuleReferTypeMissingTypeof",Rfe=uZe,jAe=[p.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];aa({errorCodes:jAe,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=WAe(n,i.start),o=fn.ChangeTracker.with(t,c=>BAe(c,n,s));return[$s(Rfe,o,p.Add_missing_typeof,Rfe,p.Add_missing_typeof)]},fixIds:[Rfe],getAllCodeActions:e=>oo(e,jAe,(t,n)=>BAe(t,e.sourceFile,WAe(n.file,n.start)))});function WAe(e,t){let n=ki(e,t);return w.assert(n.kind===102,"This token should be an ImportKeyword"),w.assert(n.parent.kind===205,"Token parent should be an ImportType"),n.parent}function BAe(e,t,n){let i=A.updateImportTypeNode(n,n.argument,n.attributes,n.qualifier,n.typeArguments,!0);e.replaceNode(t,n,i)}var Ffe="wrapJsxInFragment",zAe=[p.JSX_expressions_must_have_one_parent_element.code];aa({errorCodes:zAe,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=JAe(n,i.start);if(!s)return;let o=fn.ChangeTracker.with(t,c=>GAe(c,n,s));return[$s(Ffe,o,p.Wrap_in_JSX_fragment,Ffe,p.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[Ffe],getAllCodeActions:e=>oo(e,zAe,(t,n)=>{let i=JAe(e.sourceFile,n.start);i&&GAe(t,e.sourceFile,i)})});function JAe(e,t){let s=ki(e,t).parent.parent;if(!(!vn(s)&&(s=s.parent,!vn(s)))&&Tc(s.operatorToken))return s}function GAe(e,t,n){let i=_Ze(n);i&&e.replaceNode(t,n,A.createJsxFragment(A.createJsxOpeningFragment(),i,A.createJsxJsxClosingFragment()))}function _Ze(e){let t=[],n=e;for(;;)if(vn(n)&&Tc(n.operatorToken)&&n.operatorToken.kind===28){if(t.push(n.left),D6(n.right))return t.push(n.right),t;if(vn(n.right)){n=n.right;continue}else return}else return}var Ofe="wrapDecoratorInParentheses",UAe=[p.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator.code];aa({errorCodes:UAe,getCodeActions:function(t){let n=fn.ChangeTracker.with(t,i=>VAe(i,t.sourceFile,t.span.start));return[$s(Ofe,n,p.Wrap_in_parentheses,Ofe,p.Wrap_all_invalid_decorator_expressions_in_parentheses)]},fixIds:[Ofe],getAllCodeActions:e=>oo(e,UAe,(t,n)=>VAe(t,n.file,n.start))});function VAe(e,t,n){let i=ki(t,n),s=gr(i,Rl);w.assert(!!s,"Expected position to be owned by a decorator.");let o=A.createParenthesizedExpression(s.expression);e.replaceNode(t,s.expression,o)}var Lfe="fixConvertToMappedObjectType",qAe=[p.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];aa({errorCodes:qAe,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=$Ae(n,i.start);if(!s)return;let o=fn.ChangeTracker.with(t,_=>HAe(_,n,s)),c=Ln(s.container.name);return[$s(Lfe,o,[p.Convert_0_to_mapped_object_type,c],Lfe,[p.Convert_0_to_mapped_object_type,c])]},fixIds:[Lfe],getAllCodeActions:e=>oo(e,qAe,(t,n)=>{let i=$Ae(n.file,n.start);i&&HAe(t,n.file,i)})});function $Ae(e,t){let n=ki(e,t),i=Vn(n.parent.parent,W0);if(!i)return;let s=hu(i.parent)?i.parent:Vn(i.parent.parent,sd);if(s)return{indexSignature:i,container:s}}function fZe(e,t){return A.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function HAe(e,t,{indexSignature:n,container:i}){let o=(hu(i)?i.members:i.type.members).filter(m=>!W0(m)),c=Ea(n.parameters),_=A.createTypeParameterDeclaration(void 0,Zs(c.name,je),c.type),u=A.createMappedTypeNode(gk(n)?A.createModifier(148):void 0,_,void 0,n.questionToken,n.type,void 0),g=A.createIntersectionTypeNode([...nA(i),u,...o.length?[A.createTypeLiteralNode(o)]:qe]);e.replaceNode(t,i,fZe(i,g))}var QAe="removeAccidentalCallParentheses",pZe=[p.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code];aa({errorCodes:pZe,getCodeActions(e){let t=gr(ki(e.sourceFile,e.span.start),qs);if(!t)return;let n=fn.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[em(QAe,n,p.Remove_parentheses)]},fixIds:[QAe]});var jfe="removeUnnecessaryAwait",KAe=[p.await_has_no_effect_on_the_type_of_this_expression.code];aa({errorCodes:KAe,getCodeActions:function(t){let n=fn.ChangeTracker.with(t,i=>XAe(i,t.sourceFile,t.span));if(n.length>0)return[$s(jfe,n,p.Remove_unnecessary_await,jfe,p.Remove_all_unnecessary_uses_of_await)]},fixIds:[jfe],getAllCodeActions:e=>oo(e,KAe,(t,n)=>XAe(t,n.file,n))});function XAe(e,t,n){let i=Vn(ki(t,n.start),_=>_.kind===135),s=i&&Vn(i.parent,B0);if(!s)return;let o=s;if(b_(s.parent)){let _=iI(s.expression,!1);if(je(_)){let u=Cl(s.parent.pos,t);u&&u.kind!==105&&(o=s.parent)}}e.replaceNode(t,o,s.expression)}var YAe=[p.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],Wfe="splitTypeOnlyImport";aa({errorCodes:YAe,fixIds:[Wfe],getCodeActions:function(t){let n=fn.ChangeTracker.with(t,i=>eEe(i,ZAe(t.sourceFile,t.span),t));if(n.length)return[$s(Wfe,n,p.Split_into_two_separate_import_declarations,Wfe,p.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>oo(e,YAe,(t,n)=>{eEe(t,ZAe(e.sourceFile,n),e)})});function ZAe(e,t){return gr(ki(e,t.start),sc)}function eEe(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.isTypeOnly,i.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(n.sourceFile,t,A.createImportDeclaration(void 0,A.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),t.moduleSpecifier,t.attributes))}var Bfe="fixConvertConstToLet",tEe=[p.Cannot_assign_to_0_because_it_is_a_constant.code];aa({errorCodes:tEe,getCodeActions:function(t){let{sourceFile:n,span:i,program:s}=t,o=rEe(n,i.start,s);if(o===void 0)return;let c=fn.ChangeTracker.with(t,_=>nEe(_,n,o.token));return[Kue(Bfe,c,p.Convert_const_to_let,Bfe,p.Convert_all_const_to_let)]},getAllCodeActions:e=>{let{program:t}=e,n=new Set;return _C(fn.ChangeTracker.with(e,i=>{fC(e,tEe,s=>{let o=rEe(s.file,s.start,t);if(o&&nd(n,ua(o.symbol)))return nEe(i,s.file,o.token)})}))},fixIds:[Bfe]});function rEe(e,t,n){var i;let o=n.getTypeChecker().getSymbolAtLocation(ki(e,t));if(o===void 0)return;let c=Vn((i=o?.valueDeclaration)==null?void 0:i.parent,au);if(c===void 0)return;let _=_o(c,87,e);if(_!==void 0)return{symbol:o,token:_}}function nEe(e,t,n){e.replaceNode(t,n,A.createToken(121))}var zfe="fixExpectedComma",dZe=p._0_expected.code,iEe=[dZe];aa({errorCodes:iEe,getCodeActions(e){let{sourceFile:t}=e,n=sEe(t,e.span.start,e.errorCode);if(!n)return;let i=fn.ChangeTracker.with(e,s=>aEe(s,t,n));return[$s(zfe,i,[p.Change_0_to_1,";",","],zfe,[p.Change_0_to_1,";",","])]},fixIds:[zfe],getAllCodeActions:e=>oo(e,iEe,(t,n)=>{let i=sEe(n.file,n.start,n.code);i&&aEe(t,e.sourceFile,i)})});function sEe(e,t,n){let i=ki(e,t);return i.kind===27&&i.parent&&(Sa(i.parent)||gu(i.parent))?{node:i}:void 0}function aEe(e,t,{node:n}){let i=A.createToken(28);e.replaceNode(t,n,i)}var mZe="addVoidToPromise",oEe="addVoidToPromise",cEe=[p.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,p.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];aa({errorCodes:cEe,fixIds:[oEe],getCodeActions(e){let t=fn.ChangeTracker.with(e,n=>lEe(n,e.sourceFile,e.span,e.program));if(t.length>0)return[$s(mZe,t,p.Add_void_to_Promise_resolved_without_a_value,oEe,p.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return oo(e,cEe,(t,n)=>lEe(t,n.file,n,e.program,new Set))}});function lEe(e,t,n,i,s){let o=ki(t,n.start);if(!je(o)||!qs(o.parent)||o.parent.expression!==o||o.parent.arguments.length!==0)return;let c=i.getTypeChecker(),_=c.getSymbolAtLocation(o),u=_?.valueDeclaration;if(!u||!Bi(u)||!OS(u.parent.parent)||s?.has(u))return;s?.add(u);let g=gZe(u.parent.parent);if(pt(g)){let m=g[0],h=!cv(m)&&!xk(m)&&xk(A.createUnionTypeNode([m,A.createKeywordTypeNode(116)]).types[0]);h&&e.insertText(t,m.pos,"("),e.insertText(t,m.end,h?") | void":" | void")}else{let m=c.getResolvedSignature(o.parent),h=m?.parameters[0],S=h&&c.getTypeOfSymbolAtLocation(h,u.parent.parent);un(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 gZe(e){var t;if(un(e)){if(b_(e.parent)){let n=(t=Pb(e.parent))==null?void 0:t.typeExpression.type;if(n&&yf(n)&&je(n.typeName)&&Ln(n.typeName)==="Promise")return n.typeArguments}}else return e.typeArguments}var mC={};nt(mC,{CompletionKind:()=>wEe,CompletionSource:()=>_Ee,SortText:()=>qu,StringCompletions:()=>jH,SymbolOriginInfoKind:()=>fEe,createCompletionDetails:()=>nj,createCompletionDetailsForSymbol:()=>Kfe,getCompletionEntriesFromSymbols:()=>Hfe,getCompletionEntryDetails:()=>$Ze,getCompletionEntrySymbol:()=>QZe,getCompletionsAtPosition:()=>xZe,getDefaultCommitCharacters:()=>qk,getPropertiesForObjectExpression:()=>FH,moduleSpecifierResolutionCacheAttemptLimit:()=>uEe,moduleSpecifierResolutionLimit:()=>Jfe});var Jfe=100,uEe=1e3,qu={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"}},Vm=[".",",",";"],IH=[".",";"],_Ee=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(_Ee||{}),fEe=(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))(fEe||{});function hZe(e){return!!(e.kind&1)}function yZe(e){return!!(e.kind&2)}function tj(e){return!!(e&&e.kind&4)}function qE(e){return!!(e&&e.kind===32)}function vZe(e){return tj(e)||qE(e)||Gfe(e)}function bZe(e){return(tj(e)||qE(e))&&!!e.isFromPackageJson}function SZe(e){return!!(e.kind&8)}function TZe(e){return!!(e.kind&16)}function pEe(e){return!!(e&&e.kind&64)}function dEe(e){return!!(e&&e.kind&128)}function kZe(e){return!!(e&&e.kind&256)}function Gfe(e){return!!(e&&e.kind&512)}function mEe(e,t,n,i,s,o,c,_,u){var g,m,h,S;let T=To(),x=c||D4(i.getCompilerOptions())||((g=o.autoImportSpecifierExcludeRegexes)==null?void 0:g.length),I=!1,D=0,E=0,O=0,F=0,B=u({tryResolve:$,skippedAny:()=>I,resolvedAny:()=>E>0,resolvedBeyondLimit:()=>E>Jfe}),G=F?` (${(O/F*100).toFixed(1)}% hit rate)`:"";return(m=t.log)==null||m.call(t,`${e}: resolved ${E} module specifiers, plus ${D} ambient and ${O} from cache${G}`),(h=t.log)==null||h.call(t,`${e}: response is ${I?"incomplete":"complete"}`),(S=t.log)==null||S.call(t,`${e}: ${To()-T}`),B;function $(K,U){if(U){let ne=n.getModuleSpecifierForBestExportInfo(K,s,_);return ne&&D++,ne||"failed"}let me=x||o.allowIncompleteCompletions&&E<Jfe,te=!me&&o.allowIncompleteCompletions&&F<uEe,V=me||te?n.getModuleSpecifierForBestExportInfo(K,s,_,te):void 0;return(!me&&!te||te&&!V)&&(I=!0),E+=V?.computedWithoutCacheCount||0,O+=K.length-(V?.computedWithoutCacheCount||0),te&&F++,V||(x?"failed":"skipped")}}function qk(e){return e?[]:Vm}function xZe(e,t,n,i,s,o,c,_,u,g,m=!1){var h;let{previousToken:S}=EH(s,i);if(c&&!iC(i,s,S)&&!aet(i,c,S,s))return;if(c===" ")return o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[],defaultCommitCharacters:qk(!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&&_===3&&S&&je(S)){let O=CZe(I,i,S,t,e,o,u,s);if(O)return O}else I?.clear();let D=jH.getStringLiteralCompletions(i,s,S,T,e,t,n,o,m);if(D)return D;if(S&&OP(S.parent)&&(S.kind===83||S.kind===88||S.kind===80))return VZe(S.parent);let E=IEe(t,n,i,T,s,o,void 0,e,g,u);if(E)switch(E.kind){case 0:let O=AZe(i,e,t,T,n,E,o,g,s,m);return O?.isIncomplete&&I?.set(O),O;case 1:return Ufe([...p1.getJSDocTagNameCompletions(),...hEe(i,s,x,T,o,!0)]);case 2:return Ufe([...p1.getJSDocTagCompletions(),...hEe(i,s,x,T,o,!1)]);case 3:return Ufe(p1.getJSDocParameterNameCompletions(E.tag));case 4:return DZe(E.keywordCompletions,E.isNewIdentifierLocation);default:return w.assertNever(E)}}function rj(e,t){var n,i;let s=e6(e.sortText,t.sortText);return s===0&&(s=e6(e.name,t.name)),s===0&&((n=e.data)!=null&&n.moduleSpecifier)&&((i=t.data)!=null&&i.moduleSpecifier)&&(s=F4(e.data.moduleSpecifier,t.data.moduleSpecifier)),s===0?-1:s}function gEe(e){return!!e?.moduleSpecifier}function CZe(e,t,n,i,s,o,c,_){let u=e.get();if(!u)return;let g=W_(t,_),m=n.text.toLowerCase(),h=v3(t,s,i,o,c),S=mEe("continuePreviousIncompleteResponse",s,Vu.createImportSpecifierResolver(t,i,s,o),i,n.getStart(),o,!1,Bb(n),T=>{let x=Vi(u.entries,I=>{var D;if(!I.hasAction||!I.source||!I.data||gEe(I.data))return I;if(!JEe(I.name,m))return;let{origin:E}=w.checkDefined(DEe(I.name,I.data,i,s)),O=h.get(t.path,I.data.exportMapKey),F=O&&T.tryResolve(O,!Jl(rd(E.moduleSymbol.name)));if(F==="skipped")return I;if(!F||F==="failed"){(D=s.log)==null||D.call(s,`Unexpected failure resolving auto import for '${I.name}' from '${I.source}'`);return}let B={...E,kind:32,moduleSpecifier:F.moduleSpecifier};return I.data=xEe(B),I.source=$fe(B),I.sourceDisplay=[cp(B.moduleSpecifier)],I});return T.skippedAny()||(u.isIncomplete=void 0),x});return u.entries=S,u.flags=(u.flags||0)|4,u.optionalReplacementSpan=bEe(g),u}function Ufe(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e,defaultCommitCharacters:qk(!1)}}function hEe(e,t,n,i,s,o){let c=ki(e,t);if(!Fw(c)&&!Kd(c))return[];let _=Kd(c)?c:c.parent;if(!Kd(_))return[];let u=_.parent;if(!Ns(u))return[];let g=g_(e),m=s.includeCompletionsWithSnippetText||void 0,h=Hy(_.tags,S=>ip(S)&&S.getEnd()<=t);return Vi(u.parameters,S=>{if(!Pw(S).length){if(je(S.name)){let T={tabstop:1},x=S.name.text,I=F3(x,S.initializer,S.dotDotDotToken,g,!1,!1,n,i,s),D=m?F3(x,S.initializer,S.dotDotDotToken,g,!1,!0,n,i,s,T):void 0;return o&&(I=I.slice(1),D&&(D=D.slice(1))),{name:I,kind:"parameter",sortText:qu.LocationPriority,insertText:m?D:void 0,isSnippet:m}}else if(S.parent.parameters.indexOf(S)===h){let T=`param${h}`,x=yEe(T,S.name,S.initializer,S.dotDotDotToken,g,!1,n,i,s),I=m?yEe(T,S.name,S.initializer,S.dotDotDotToken,g,!0,n,i,s):void 0,D=x.join(nv(i)+"* "),E=I?.join(nv(i)+"* ");return o&&(D=D.slice(1),E&&(E=E.slice(1))),{name:D,kind:"parameter",sortText:qu.LocationPriority,insertText:m?E:void 0,isSnippet:m}}}})}function yEe(e,t,n,i,s,o,c,_,u){if(!s)return[F3(e,n,i,s,!1,o,c,_,u,{tabstop:1})];return g(e,t,n,i,{tabstop:1});function g(h,S,T,x,I){if(np(S)&&!x){let E={tabstop:I.tabstop},O=F3(h,T,x,s,!0,o,c,_,u,E),F=[];for(let B of S.elements){let G=m(h,B,E);if(G)F.push(...G);else{F=void 0;break}}if(F)return I.tabstop=E.tabstop,[O,...F]}return[F3(h,T,x,s,!1,o,c,_,u,I)]}function m(h,S,T){if(!S.propertyName&&je(S.name)||je(S.name)){let x=S.propertyName?qP(S.propertyName):S.name.text;if(!x)return;let I=`${h}.${x}`;return[F3(I,S.initializer,S.dotDotDotToken,s,!1,o,c,_,u,T)]}else if(S.propertyName){let x=qP(S.propertyName);return x&&g(`${h}.${x}`,S.name,S.initializer,S.dotDotDotToken,T)}}}function F3(e,t,n,i,s,o,c,_,u,g){if(o&&w.assertIsDefined(g),t&&(e=wZe(e,t)),o&&(e=ES(e)),i){let m="*";if(s)w.assert(!n,"Cannot annotate a rest parameter with type 'Object'."),m="Object";else{if(t){let T=c.getTypeAtLocation(t.parent);if(!(T.flags&16385)){let x=t.getSourceFile(),D=Tf(x,u)===0?268435456:0,E=c.typeToTypeNode(T,gr(t,Ns),D);if(E){let O=o?AH({removeComments:!0,module:_.module,moduleResolution:_.moduleResolution,target:_.target}):$0({removeComments:!0,module:_.module,moduleResolution:_.moduleResolution,target:_.target});dn(E,1),m=O.printNode(4,E,x)}}}o&&m==="*"&&(m=`\${${g.tabstop++}:${m}}`)}let h=!s&&n?"...":"",S=o?`\${${g.tabstop++}}`:"";return`@param {${h}${m}} ${e} ${S}`}else{let m=o?`\${${g.tabstop++}}`:"";return`@param ${e} ${m}`}}function wZe(e,t){let n=t.getText().trim();return n.includes(`
`)||n.length>80?`[${e}]`:`[${e}=${n}]`}function IZe(e){return{name:sa(e),kind:"keyword",kindModifiers:"",sortText:qu.GlobalsOrKeywords}}function DZe(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice(),defaultCommitCharacters:qk(t)}}function vEe(e,t,n){return{kind:4,keywordCompletions:AEe(e,t),isNewIdentifierLocation:n}}function PZe(e){switch(e){case 156:return 8;default:w.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function bEe(e){return e?.kind===80?k_(e):void 0}function AZe(e,t,n,i,s,o,c,_,u,g){let{symbols:m,contextToken:h,completionKind:S,isInSnippetScope:T,isNewIdentifierLocation:x,location:I,propertyAccessToConvert:D,keywordFilters:E,symbolToOriginInfoMap:O,recommendedCompletion:F,isJsxInitializer:B,isTypeOnlyLocation:G,isJsxIdentifierExpected:$,isRightOfOpenTag:K,isRightOfDotOrQuestionDot:U,importStatementCompletion:me,insideJsDocTagTypeExpression:te,symbolToSortTextMap:V,hasUnresolvedAutoImports:ne,defaultCommitCharacters:ie}=o,oe=o.literals,de=n.getTypeChecker();if(w4(e.scriptKind)===1){let se=NZe(I,e);if(se)return se}let ye=gr(h,yI);if(ye&&(nie(h)||SS(h,ye.expression))){let se=wL(de,ye.parent.clauses);oe=oe.filter(xe=>!se.hasValue(xe)),m.forEach((xe,_e)=>{if(xe.valueDeclaration&&_v(xe.valueDeclaration)){let tt=de.getConstantValue(xe.valueDeclaration);tt!==void 0&&se.hasValue(tt)&&(O[_e]={kind:256})}})}let H=xW(),ve=SEe(e,i);if(ve&&!x&&(!m||m.length===0)&&E===0)return;let Ge=Hfe(m,H,void 0,h,I,u,e,t,n,wa(i),s,S,c,i,_,G,D,$,B,me,F,O,V,$,K,g);if(E!==0)for(let se of AEe(E,!te&&g_(e)))(G&&DE(XT(se.name))||!G&&get(se.name)||!Ge.has(se.name))&&(Ge.add(se.name),s0(H,se,rj,void 0,!0));for(let se of tet(h,u))Ge.has(se.name)||(Ge.add(se.name),s0(H,se,rj,void 0,!0));for(let se of oe){let xe=RZe(e,c,se);Ge.add(xe.name),s0(H,xe,rj,void 0,!0)}ve||MZe(e,I.pos,Ge,wa(i),H);let De;if(c.includeCompletionsWithInsertText&&h&&!K&&!U&&(De=gr(h,VA))){let se=TEe(De,e,c,i,t,n,_);se&&H.push(se.entry)}return{flags:o.flags,isGlobalCompletion:T,isIncomplete:c.allowIncompleteCompletions&&ne?!0:void 0,isMemberCompletion:EZe(S),isNewIdentifierLocation:x,optionalReplacementSpan:bEe(I),entries:H,defaultCommitCharacters:ie??qk(x)}}function SEe(e,t){return!g_(e)||!!xA(e,t)}function TEe(e,t,n,i,s,o,c){let _=e.clauses,u=o.getTypeChecker(),g=u.getTypeAtLocation(e.parent.expression);if(g&&g.isUnion()&&Oi(g.types,m=>m.isLiteral())){let m=wL(u,_),h=wa(i),S=Tf(t,n),T=Vu.createImportAdder(t,o,n,s),x=[];for(let G of g.types)if(G.flags&1024){w.assert(G.symbol,"An enum member type should have a symbol"),w.assert(G.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");let $=G.symbol.valueDeclaration&&u.getConstantValue(G.symbol.valueDeclaration);if($!==void 0){if(m.hasValue($))continue;m.addValue($)}let K=Vu.typeToAutoImportableTypeNode(u,T,G,e,h);if(!K)return;let U=DH(K,h,S);if(!U)return;x.push(U)}else if(!m.hasValue(G.value))switch(typeof G.value){case"object":x.push(G.value.negative?A.createPrefixUnaryExpression(41,A.createBigIntLiteral({negative:!1,base10Value:G.value.base10Value})):A.createBigIntLiteral(G.value));break;case"number":x.push(G.value<0?A.createPrefixUnaryExpression(41,A.createNumericLiteral(-G.value)):A.createNumericLiteral(G.value));break;case"string":x.push(A.createStringLiteral(G.value,S===0));break}if(x.length===0)return;let I=hr(x,G=>A.createCaseClause(G,[])),D=yy(s,c?.options),E=AH({removeComments:!0,module:i.module,moduleResolution:i.moduleResolution,target:i.target,newLine:y3(D)}),O=c?G=>E.printAndFormatNode(4,G,t,c):G=>E.printNode(4,G,t),F=hr(I,(G,$)=>n.includeCompletionsWithSnippetText?`${O(G)}$${$+1}`:`${O(G)}`).join(D);return{entry:{name:`${E.printNode(4,I[0],t)} ...`,kind:"",sortText:qu.GlobalsOrKeywords,insertText:F,hasAction:T.hasFixes()||void 0,source:"SwitchCases/",isSnippet:n.includeCompletionsWithSnippetText?!0:void 0},importAdder:T}}}function DH(e,t,n){switch(e.kind){case 183:let i=e.typeName;return PH(i,t,n);case 199:let s=DH(e.objectType,t,n),o=DH(e.indexType,t,n);return s&&o&&A.createElementAccessExpression(s,o);case 201: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 196:let _=DH(e.type,t,n);return _&&(je(_)?_:A.createParenthesizedExpression(_));case 186:return PH(e.exprName,t,n);case 205:w.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function PH(e,t,n){if(je(e))return e;let i=Li(e.right.escapedText);return OJ(i,t)?A.createPropertyAccessExpression(PH(e.left,t,n),i):A.createElementAccessExpression(PH(e.left,t,n),A.createStringLiteral(i,n===0))}function EZe(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function NZe(e,t){let n=gr(e,i=>{switch(i.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}});if(n){let i=!!_o(n,32,t),c=n.parent.openingElement.tagName.getText(t)+(i?"":">"),_=k_(n.tagName),u={name:c,kind:"class",kindModifiers:void 0,sortText:qu.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:_,entries:[u],defaultCommitCharacters:qk(!1)}}}function MZe(e,t,n,i,s){X$(e).forEach((o,c)=>{if(o===t)return;let _=Li(c);!n.has(_)&&$_(_,i)&&(n.add(_),s0(s,{name:_,kind:"warning",kindModifiers:"",sortText:qu.JavascriptIdentifiers,isFromUncheckedFile:!0,commitCharacters:[]},rj))})}function Vfe(e,t,n){return typeof n=="object"?AS(n)+"n":ys(n)?RE(e,t,n):JSON.stringify(n)}function RZe(e,t,n){return{name:Vfe(e,t,n),kind:"string",kindModifiers:"",sortText:qu.LocationPriority,commitCharacters:[]}}function FZe(e,t,n,i,s,o,c,_,u,g,m,h,S,T,x,I,D,E,O,F,B,G,$,K){var U,me;let te,V,ne=Pq(n,o),ie,oe,de=$fe(h),ye,H,ve,Ge=u.getTypeChecker(),De=h&&TZe(h),se=h&&yZe(h)||m;if(h&&hZe(h))te=m?`this${De?"?.":""}[${qfe(c,O,g)}]`:`this${De?"?.":"."}${g}`;else if((se||De)&&T){te=se?m?`[${qfe(c,O,g)}]`:`[${g}]`:g,(De||T.questionDotToken)&&(te=`?.${te}`);let ct=_o(T,25,c)||_o(T,29,c);if(!ct)return;let le=Yi(g,T.name.text)?T.name.end:ct.end;ne=Uc(ct.getStart(c),le)}if(x&&(te===void 0&&(te=g),te=`{${te}}`,typeof x!="boolean"&&(ne=k_(x,c))),h&&SZe(h)&&T){te===void 0&&(te=g);let ct=Cl(T.pos,c),le="";ct&&hL(ct.end,ct.parent,c)&&(le=";"),le+=`(await ${T.expression.getText()})`,te=m?`${le}${te}`:`${le}${De?"?.":"."}${te}`;let ee=Vn(T.parent,B0)?T.parent:T.expression;ne=Uc(ee.getStart(c),T.end)}if(qE(h)&&(ye=[cp(h.moduleSpecifier)],I&&({insertText:te,replacementSpan:ne}=GZe(g,I,h,D,c,u,O),oe=O.includeCompletionsWithSnippetText?!0:void 0)),h?.kind===64&&(H=!0),F===0&&i&&((U=Cl(i.pos,c,i))==null?void 0:U.kind)!==28&&(xc(i.parent.parent)||Mp(i.parent.parent)||X_(i.parent.parent)||xh(i.parent)||((me=gr(i.parent,hl))==null?void 0:me.getLastToken(c))===i||Eu(i.parent)&&Qs(c,i.getEnd()).line!==Qs(c,o).line)&&(de="ObjectLiteralMemberWithComma/",H=!0),O.includeCompletionsWithClassMemberSnippets&&O.includeCompletionsWithInsertText&&F===3&&LZe(e,s,c)){let ct,le=kEe(_,u,E,O,g,e,s,o,i,B);if(le)({insertText:te,filterText:V,isSnippet:oe,importAdder:ct}=le),(ct?.hasFixes()||le.eraseRange)&&(H=!0,de="ClassMemberSnippet/");else return}if(h&&dEe(h)&&({insertText:te,isSnippet:oe,labelDetails:ve}=h,O.useLabelDetailsInCompletionEntries||(g=g+ve.detail,ve=void 0),de="ObjectLiteralMethodSnippet/",t=qu.SortBelow(t)),G&&!$&&O.includeCompletionsWithSnippetText&&O.jsxAttributeCompletionStyle&&O.jsxAttributeCompletionStyle!=="none"&&!(Bm(s.parent)&&s.parent.initializer)){let ct=O.jsxAttributeCompletionStyle==="braces",le=Ge.getTypeOfSymbolAtLocation(e,s);O.jsxAttributeCompletionStyle==="auto"&&!(le.flags&528)&&!(le.flags&1048576&&On(le.types,Je=>!!(Je.flags&528)))&&(le.flags&402653316||le.flags&1048576&&Oi(le.types,Je=>!!(Je.flags&402686084||Rce(Je)))?(te=`${ES(g)}=${RE(c,O,"$1")}`,oe=!0):ct=!0),ct&&(te=`${ES(g)}={$1}`,oe=!0)}if(te!==void 0&&!O.includeCompletionsWithInsertText)return;(tj(h)||qE(h))&&(ie=xEe(h),H=!I);let xe=gr(s,hO);if(xe){let ct=wa(_.getCompilationSettings());if(!$_(g,ct))te=qfe(c,O,g),xe.kind===275&&(ou.setText(c.text),ou.resetTokenState(o),ou.scan()===130&&ou.scan()===80||(te+=" as "+OZe(g,ct)));else if(xe.kind===275){let le=XT(g);le&&(le===135||Nz(le))&&(te=`${g} as ${g}_`)}}let _e=yv.getSymbolKind(Ge,e,s),tt=_e==="warning"||_e==="string"?[]:void 0;return{name:g,kind:_e,kindModifiers:yv.getSymbolModifiers(Ge,e),sortText:t,source:de,hasAction:H?!0:void 0,isRecommended:UZe(e,S,Ge)||void 0,insertText:te,filterText:V,replacementSpan:ne,sourceDisplay:ye,labelDetails:ve,isSnippet:oe,isPackageJsonImport:bZe(h)||void 0,isImportStatementCompletion:!!I||void 0,data:ie,commitCharacters:tt,...K?{symbol:e}:void 0}}function OZe(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?bg(s,t):ry(s,t))?(n&&(i+="_"),i+=String.fromCodePoint(s),n=!1):n=!0;return n&&(i+="_"),i||"_"}function LZe(e,t,n){return un(t)?!1:!!(e.flags&106500)&&(ii(t)||t.parent&&t.parent.parent&&rl(t.parent)&&t===t.parent.name&&t.parent.getLastToken(n)===t.parent.name&&ii(t.parent.parent)||t.parent&&TI(t)&&ii(t.parent))}function kEe(e,t,n,i,s,o,c,_,u,g){let m=gr(c,ii);if(!m)return;let h,S=s,T=s,x=t.getTypeChecker(),I=c.getSourceFile(),D=AH({removeComments:!0,module:n.module,moduleResolution:n.moduleResolution,target:n.target,omitTrailingSemicolon:!1,newLine:y3(yy(e,g?.options))}),E=Vu.createImportAdder(I,t,i,e),O;if(i.includeCompletionsWithSnippetText){h=!0;let me=A.createEmptyStatement();O=A.createBlock([me],!0),ZJ(me,{kind:0,order:0})}else O=A.createBlock([],!0);let F=0,{modifiers:B,range:G,decorators:$}=jZe(u,I,_),K=B&64&&m.modifierFlagsCache&64,U=[];if(Vu.addNewNodeForMemberSymbol(o,m,I,{program:t,host:e},i,E,me=>{let te=0;K&&(te|=64),rl(me)&&x.getMemberOverrideModifierStatus(m,me,o)===1&&(te|=16),U.length||(F=me.modifierFlagsCache|te),me=A.replaceModifiers(me,F),U.push(me)},O,Vu.PreserveOptionalFlags.Property,!!K),U.length){let me=o.flags&8192,te=F|16|1;me?te|=1024:te|=136;let V=B&te;if(B&~te)return;if(F&4&&V&1&&(F&=-5),V!==0&&!(V&1)&&(F&=-2),F|=V,U=U.map(ie=>A.replaceModifiers(ie,F)),$?.length){let ie=U[U.length-1];JS(ie)&&(U[U.length-1]=A.replaceDecoratorsAndModifiers(ie,$.concat(cS(ie)||[])))}let ne=131073;g?S=D.printAndFormatSnippetList(ne,A.createNodeArray(U),I,g):S=D.printSnippetList(ne,A.createNodeArray(U),I)}return{insertText:S,filterText:T,isSnippet:h,importAdder:E,eraseRange:G}}function jZe(e,t,n){if(!e||Qs(t,n).line>Qs(t,e.getEnd()).line)return{modifiers:0};let i=0,s,o,c={pos:n,end:n};if(ds(e.parent)&&(o=WZe(e))){e.parent.modifiers&&(i|=Nm(e.parent.modifiers)&98303,s=e.parent.modifiers.filter(Rl)||[],c.pos=Math.min(...e.parent.modifiers.map(u=>u.getStart(t))));let _=h2(o);i&_||(i|=_,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 WZe(e){if(la(e))return e.kind;if(je(e)){let t=YT(e);if(t&&S0(t))return t}}function BZe(e,t,n,i,s,o,c,_){let u=c.includeCompletionsWithSnippetText||void 0,g=t,m=n.getSourceFile(),h=zZe(e,n,m,i,s,c);if(!h)return;let S=AH({removeComments:!0,module:o.module,moduleResolution:o.moduleResolution,target:o.target,omitTrailingSemicolon:!1,newLine:y3(yy(s,_?.options))});_?g=S.printAndFormatSnippetList(80,A.createNodeArray([h],!0),m,_):g=S.printSnippetList(80,A.createNodeArray([h],!0),m);let T=$0({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,m)};return{isSnippet:u,insertText:g,labelDetails:I}}function zZe(e,t,n,i,s,o){let c=e.getDeclarations();if(!(c&&c.length))return;let _=i.getTypeChecker(),u=c[0],g=ro(vs(u),!1),m=_.getWidenedType(_.getTypeOfSymbolAtLocation(e,t)),S=33554432|(Tf(n,o)===0?268435456:0);switch(u.kind){case 171:case 172:case 173:case 174:{let T=m.flags&1048576&&m.types.length<10?_.getUnionType(m.types,2):m;if(T.flags&1048576){let O=An(T.types,F=>_.getSignaturesOfType(F,0).length>0);if(O.length===1)T=O[0];else return}if(_.getSignaturesOfType(T,0).length!==1)return;let I=_.typeToTypeNode(T,t,S,void 0,Vu.getNoopSymbolTrackerWithResolver({program:i,host:s}));if(!I||!Ig(I))return;let D;if(o.includeCompletionsWithSnippetText){let O=A.createEmptyStatement();D=A.createBlock([O],!0),ZJ(O,{kind:0,order:0})}else D=A.createBlock([],!0);let E=I.parameters.map(O=>A.createParameterDeclaration(void 0,O.dotDotDotToken,O.name,void 0,void 0,O.initializer));return A.createMethodDeclaration(void 0,void 0,g,void 0,void 0,E,void 0,D)}default:return}}function AH(e){let t,n=fn.createWriter(nv(e)),i=$0(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=ES(S);if(x!==S){let I=n.getTextPos();T();let D=n.getTextPos();t=jr(t||(t=[]),{newText:x,span:{start:I,length:D-I}})}else T()}function c(S,T,x){let I=_(S,T,x);return t?fn.applyChanges(I,t):I}function _(S,T,x){return t=void 0,s.clear(),i.writeList(S,T,x,s),s.getText()}function u(S,T,x,I){let D={text:_(S,T,x),getLineAndCharacterOfPosition(B){return Qs(this,B)}},E=CL(I,x),O=ga(T,B=>{let G=fn.assignPositionsToNode(B);return yl.formatNodeGivenIndentation(G,D,x.languageVariant,0,0,{...I,options:E})}),F=t?lf(Ki(O,t),(B,G)=>I8(B.span,G.span)):O;return fn.applyChanges(D.text,F)}function g(S,T,x){let I=m(S,T,x);return t?fn.applyChanges(I,t):I}function m(S,T,x){return t=void 0,s.clear(),i.writeNode(S,T,x,s),s.getText()}function h(S,T,x,I){let D={text:m(S,T,x),getLineAndCharacterOfPosition(G){return Qs(this,G)}},E=CL(I,x),O=fn.assignPositionsToNode(T),F=yl.formatNodeGivenIndentation(O,D,x.languageVariant,0,0,{...I,options:E}),B=t?lf(Ki(F,t),(G,$)=>I8(G.span,$.span)):F;return fn.applyChanges(D.text,B)}}function xEe(e){let t=e.fileName?void 0:rd(e.moduleSymbol.name),n=e.isFromPackageJson?!0:void 0;return qE(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:rd(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function JZe(e,t,n){let i=e.exportName==="default",s=!!e.isPackageJsonImport;return gEe(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 GZe(e,t,n,i,s,o,c){let _=t.replacementSpan,u=ES(RE(s,c,n.moduleSpecifier)),g=n.isDefaultExport?1:n.exportName==="export="?2:0,m=c.includeCompletionsWithSnippetText?"$1":"",h=Vu.getImportKind(s,g,o,!0),S=t.couldBeTypeOnlyImportSpecifier,T=t.isTopLevelTypeOnly?` ${sa(156)} `:" ",x=S?`${sa(156)} `:"",I=i?";":"";switch(h){case 3:return{replacementSpan:_,insertText:`import${T}${ES(e)}${m} = require(${u})${I}`};case 1:return{replacementSpan:_,insertText:`import${T}${ES(e)}${m} from ${u}${I}`};case 2:return{replacementSpan:_,insertText:`import${T}* as ${ES(e)} from ${u}${I}`};case 0:return{replacementSpan:_,insertText:`import${T}{ ${x}${ES(e)}${m} } from ${u}${I}`}}}function qfe(e,t,n){return/^\d+$/.test(n)?n:RE(e,t,n)}function UZe(e,t,n){return e===t||!!(e.flags&1048576)&&n.getExportSymbolOfSymbol(e)===t}function $fe(e){if(tj(e))return rd(e.moduleSymbol.name);if(qE(e))return e.moduleSpecifier;if(e?.kind===1)return"ThisProperty/";if(e?.kind===64)return"TypeOnlyAlias/"}function Hfe(e,t,n,i,s,o,c,_,u,g,m,h,S,T,x,I,D,E,O,F,B,G,$,K,U,me=!1){let te=To(),V=fet(i,s),ne=d3(c),ie=u.getTypeChecker(),oe=new Map;for(let H=0;H<e.length;H++){let ve=e[H],Ge=G?.[H],De=NH(ve,g,Ge,h,!!E);if(!De||oe.get(De.name)&&(!Ge||!dEe(Ge))||h===1&&$&&!de(ve,$)||!I&&un(c)&&ye(ve))continue;let{name:se,needsConvertPropertyAccess:xe}=De,_e=$?.[ua(ve)]??qu.LocationPriority,tt=det(ve,ie)?qu.Deprecated(_e):_e,ct=FZe(ve,tt,n,i,s,o,c,_,u,se,xe,Ge,B,D,O,F,ne,T,S,h,x,K,U,me);if(!ct)continue;let le=(!Ge||pEe(Ge))&&!(ve.parent===void 0&&!pt(ve.declarations,Je=>Je.getSourceFile()===s.getSourceFile()));oe.set(se,le),s0(t,ct,rj,void 0,!0)}return m("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(To()-te)),{has:H=>oe.has(H),add:H=>oe.set(H,!0)};function de(H,ve){var Ge;let De=H.flags;if(!Mi(s)){if(Ho(s.parent))return!0;if(Vn(V,oi)&&H.valueDeclaration===V)return!1;let se=H.valueDeclaration??((Ge=H.declarations)==null?void 0:Ge[0]);if(V&&se){if(Bi(V)&&Bi(se)){let _e=V.parent.parameters;if(se.pos>=V.pos&&se.pos<_e.end)return!1}else if($o(V)&&$o(se)){if(V===se&&i?.kind===96)return!1;if(pet(i)&&!kk(V.parent)){let _e=V.parent.typeParameters;if(_e&&se.pos>=V.pos&&se.pos<_e.end)return!1}}}let xe=du(H,ie);if(c.externalModuleIndicator&&!T.allowUmdGlobalAccess&&ve[ua(H)]===qu.GlobalsOrKeywords&&(ve[ua(xe)]===qu.AutoImportSuggestions||ve[ua(xe)]===qu.LocationPriority))return!1;if(De|=rI(xe),q5(s))return!!(De&1920);if(I)return Zfe(H,ie)}return!!(De&111551)}function ye(H){var ve;let Ge=rI(du(H,ie));return!(Ge&111551)&&(!un((ve=H.declarations)==null?void 0:ve[0])||!!(Ge&788968))}}function VZe(e){let t=qZe(e);if(t.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t,defaultCommitCharacters:qk(!1)}}function qZe(e){let t=[],n=new Map,i=e;for(;i&&!Ns(i);){if(z0(i)){let s=i.label.text;n.has(s)||(n.set(s,!0),t.push({name:s,kindModifiers:"",kind:"label",sortText:qu.LocationPriority}))}i=i.parent}return t}function CEe(e,t,n,i,s,o,c){if(s.source==="SwitchCases/")return{type:"cases"};if(s.data){let F=DEe(s.name,s.data,e,o);if(F){let{contextToken:B,previousToken:G}=EH(i,n);return{type:"symbol",symbol:F.symbol,location:W_(n,i),previousToken:G,contextToken:B,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:F.origin}}}let _=e.getCompilerOptions(),u=IEe(e,t,n,_,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:m,location:h,completionKind:S,symbolToOriginInfoMap:T,contextToken:x,previousToken:I,isJsxInitializer:D,isTypeOnlyLocation:E}=u,O=On(m,F=>Vfe(n,c,F)===s.name);return O!==void 0?{type:"literal",literal:O}:po(g,(F,B)=>{let G=T[B],$=NH(F,wa(_),G,S,u.isJsxIdentifierExpected);return $&&$.name===s.name&&(s.source==="ClassMemberSnippet/"&&F.flags&106500||s.source==="ObjectLiteralMethodSnippet/"&&F.flags&8196||$fe(G)===s.source||s.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:F,location:h,origin:G,contextToken:x,previousToken:I,isJsxInitializer:D,isTypeOnlyLocation:E}:void 0})||{type:"none"}}function $Ze(e,t,n,i,s,o,c,_,u){let g=e.getTypeChecker(),m=e.getCompilerOptions(),{name:h,source:S,data:T}=s,{previousToken:x,contextToken:I}=EH(i,n);if(iC(n,i,x))return jH.getStringLiteralCompletionDetails(h,n,i,x,e,o,u,_);let D=CEe(e,t,n,i,s,o,_);switch(D.type){case"request":{let{request:E}=D;switch(E.kind){case 1:return p1.getJSDocTagNameCompletionDetails(h);case 2:return p1.getJSDocTagCompletionDetails(h);case 3:return p1.getJSDocParameterNameCompletionDetails(h);case 4:return pt(E.keywordCompletions,O=>O.name===h)?Qfe(h,"keyword",5):void 0;default:return w.assertNever(E)}}case"symbol":{let{symbol:E,location:O,contextToken:F,origin:B,previousToken:G}=D,{codeActions:$,sourceDisplay:K}=HZe(h,O,F,B,E,e,o,m,n,i,G,c,_,T,S,u),U=Gfe(B)?B.symbolName:E.name;return Kfe(E,U,g,n,O,u,$,K)}case"literal":{let{literal:E}=D;return Qfe(Vfe(n,_,E),"string",typeof E=="string"?8:7)}case"cases":{let E=TEe(I.parent,n,_,e.getCompilerOptions(),o,e,void 0);if(E?.importAdder.hasFixes()){let{entry:O,importAdder:F}=E,B=fn.ChangeTracker.with({host:o,formatContext:c,preferences:_},F.writeFixes);return{name:O.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:B,description:YS([p.Includes_imports_of_types_referenced_by_0,h])}]}}return{name:h,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return PEe().some(E=>E.name===h)?Qfe(h,"keyword",5):void 0;default:w.assertNever(D)}}function Qfe(e,t,n){return nj(e,"",t,[Y_(e,n)])}function Kfe(e,t,n,i,s,o,c,_){let{displayParts:u,documentation:g,symbolKind:m,tags:h}=n.runWithCancellationToken(o,S=>yv.getSymbolDisplayPartsDocumentationAndSymbolKind(S,e,i,s,s,7));return nj(t,yv.getSymbolModifiers(n,e),m,u,g,h,c,_)}function nj(e,t,n,i,s,o,c,_){return{name:e,kindModifiers:t,kind:n,displayParts:i,documentation:s,tags:o,codeActions:c,source:_,sourceDisplay:_}}function HZe(e,t,n,i,s,o,c,_,u,g,m,h,S,T,x,I){if(T?.moduleSpecifier&&m&&LEe(n||m,u).replacementSpan)return{codeActions:void 0,sourceDisplay:[cp(T.moduleSpecifier)]};if(x==="ClassMemberSnippet/"){let{importAdder:$,eraseRange:K}=kEe(c,o,_,S,e,s,t,g,n,h);if($?.hasFixes()||K)return{sourceDisplay:void 0,codeActions:[{changes:fn.ChangeTracker.with({host:c,formatContext:h,preferences:S},me=>{$&&$.writeFixes(me),K&&me.deleteRange(u,K)}),description:$?.hasFixes()?YS([p.Includes_imports_of_types_referenced_by_0,e]):YS([p.Update_modifiers_of_0,e])}]}}if(pEe(i)){let $=Vu.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 $=fn.ChangeTracker.with({host:c,formatContext:h,preferences:S},K=>K.insertText(u,n.end,","));if($)return{sourceDisplay:void 0,codeActions:[{changes:$,description:YS([p.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!i||!(tj(i)||qE(i)))return{codeActions:void 0,sourceDisplay:void 0};let D=i.isFromPackageJson?c.getPackageJsonAutoImportProvider().getTypeChecker():o.getTypeChecker(),{moduleSymbol:E}=i,O=D.getMergedSymbol(du(s.exportSymbol||s,D)),F=n?.kind===30&&Wu(n.parent),{moduleSpecifier:B,codeAction:G}=Vu.getImportCompletionAction(O,E,T?.exportMapKey,u,e,F,c,o,h,m&&je(m)?m.getStart(u):g,S,I);return w.assert(!T?.moduleSpecifier||B===T.moduleSpecifier),{sourceDisplay:[cp(B)],codeActions:[G]}}function QZe(e,t,n,i,s,o,c){let _=CEe(e,t,n,i,s,o,c);return _.type==="symbol"?_.symbol:void 0}var wEe=(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))(wEe||{});function KZe(e,t,n){return po(t&&(t.isUnion()?t.types:[t]),i=>{let s=i&&i.symbol;return s&&s.flags&424&&!jre(s)?Xfe(s,e,n):void 0})}function XZe(e,t,n,i){let{parent:s}=e;switch(e.kind){case 80:return mL(e,i);case 64:switch(s.kind){case 260:return i.getContextualType(s.initializer);case 226:return i.getTypeAtLocation(s.left);case 291:return i.getContextualTypeForJsxAttribute(s);default:return}case 105:return i.getContextualType(s);case 84:let o=Vn(s,yI);return o?Zq(o,i):void 0;case 19:return hI(s)&&!Wm(s.parent)&&!Hb(s.parent)?i.getContextualTypeForJsxAttribute(s.parent):void 0;default:let c=J3.getArgumentInfoForCompletions(e,t,n,i);return c?i.getContextualTypeForArgumentAtIndex(c.invocation,c.argumentIndex):gL(e.kind)&&vn(s)&&gL(s.operatorToken.kind)?i.getTypeAtLocation(s.left):i.getContextualType(e,4)||i.getContextualType(e)}}function Xfe(e,t,n){let i=n.getAccessibleSymbolChain(e,t,-1,!1);return i?Ea(i):e.parent&&(YZe(e.parent)?e:Xfe(e.parent,t,n))}function YZe(e){var t;return!!((t=e.declarations)!=null&&t.some(n=>n.kind===307))}function IEe(e,t,n,i,s,o,c,_,u,g){let m=e.getTypeChecker(),h=SEe(n,i),S=To(),T=ki(n,s);t("getCompletionData: Get current token: "+(To()-S)),S=To();let x=pv(n,s,T);t("getCompletionData: Is inside comment: "+(To()-S));let I=!1,D=!1,E=!1;if(x){if(Ece(n,s)){if(n.text.charCodeAt(s-1)===64)return{kind:1};{let ut=ld(s,n);if(!/[^*|\s(/)]/.test(n.text.substring(ut,s)))return{kind:2}}}let we=ret(T,s);if(we){if(we.tagName.pos<=s&&s<=we.tagName.end)return{kind:1};if(zm(we))D=!0;else{let ut=ur(we);if(ut&&(T=ki(n,s),(!T||!Cg(T)&&(T.parent.kind!==348||T.parent.name!==T))&&(I=jt(ut))),!I&&ip(we)&&(Tc(we.name)||we.name.pos<=s&&s<=we.name.end))return{kind:3,tag:we}}}if(!I&&!D){t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}S=To();let O=!I&&!D&&g_(n),F=EH(s,n),B=F.previousToken,G=F.contextToken;t("getCompletionData: Get previous token: "+(To()-S));let $=T,K,U=!1,me=!1,te=!1,V=!1,ne=!1,ie=!1,oe,de=W_(n,s),ye=0,H=!1,ve=0,Ge;if(G){let we=LEe(G,n);if(we.keywordCompletion){if(we.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[IZe(we.keywordCompletion)],isNewIdentifierLocation:we.isNewIdentifierLocation};ye=PZe(we.keywordCompletion)}if(we.replacementSpan&&o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText&&(ve|=2,oe=we,H=we.isNewIdentifierLocation),!we.replacementSpan&&Rs(G))return t("Returning an empty list because completion was requested in an invalid position."),ye?vEe(ye,O,xr().isNewIdentifierLocation):void 0;let ut=G.parent;if(G.kind===25||G.kind===29)switch(U=G.kind===25,me=G.kind===29,ut.kind){case 211:K=ut,$=K.expression;let Qt=nI(K);if(Tc(Qt)||(qs($)||Ns($))&&$.end===G.pos&&$.getChildCount(n)&&xa($.getChildren(n)).kind!==22)return;break;case 166:$=ut.left;break;case 267:$=ut.name;break;case 205:$=ut;break;case 236:$=ut.getFirstToken(n),w.assert($.kind===102||$.kind===105);break;default:return}else if(!oe){if(ut&&ut.kind===211&&(G=ut,ut=ut.parent),T.parent===de)switch(T.kind){case 32:(T.parent.kind===284||T.parent.kind===286)&&(de=T);break;case 44:T.parent.kind===285&&(de=T);break}switch(ut.kind){case 287:G.kind===44&&(V=!0,de=G);break;case 226:if(!OEe(ut))break;case 285:case 284:case 286:ie=!0,G.kind===30&&(te=!0,de=G);break;case 294:case 293:(B.kind===20||B.kind===80&&B.parent.kind===291)&&(ie=!0);break;case 291:if(ut.initializer===B&&B.end<s){ie=!0;break}switch(B.kind){case 64:ne=!0;break;case 80:ie=!0,ut!==B.parent&&!ut.initializer&&_o(ut,64,n)&&(ne=B)}break}}}let De=To(),se=5,xe=!1,_e=[],tt,ct=[],le=[],Je=new Set,ee=ui(),Ne=Sm(we=>a1(we?_.getPackageJsonAutoImportProvider():e,_));if(U||me)Or();else if(te)_e=m.getJsxIntrinsicTagNamesAt(de),w.assertEachIsDefined(_e,"getJsxIntrinsicTagNames() should all be defined"),hi(),se=1,ye=0;else if(V){let we=G.parent.parent.openingElement.tagName,ut=m.getSymbolAtLocation(we);ut&&(_e=[ut]),se=1,ye=0}else if(!hi())return ye?vEe(ye,O,H):void 0;t("getCompletionData: Semantic work: "+(To()-De));let Ie=B&&XZe(B,s,n,m),Ve=!Vn(B,Ha)&&!ie?Vi(Ie&&(Ie.isUnion()?Ie.types:[Ie]),we=>we.isLiteral()&&!(we.flags&1024)?we.value:void 0):[],bt=B&&Ie&&KZe(B,Ie,m);return{kind:0,symbols:_e,completionKind:se,isInSnippetScope:E,propertyAccessToConvert:K,isNewIdentifierLocation:H,location:de,keywordFilters:ye,literals:Ve,symbolToOriginInfoMap:ct,recommendedCompletion:bt,previousToken:B,contextToken:G,isJsxInitializer:ne,insideJsDocTagTypeExpression:I,symbolToSortTextMap:le,isTypeOnlyLocation:ee,isJsxIdentifierExpected:ie,isRightOfOpenTag:te,isRightOfDotOrQuestionDot:U||me,importStatementCompletion:oe,hasUnresolvedAutoImports:xe,flags:ve,defaultCommitCharacters:Ge};function zt(we){switch(we.kind){case 341:case 348:case 342:case 344:case 346:case 349:case 350:return!0;case 345:return!!we.constraint;default:return!1}}function ur(we){if(zt(we)){let ut=ad(we)?we.constraint:we.typeExpression;return ut&&ut.kind===309?ut:void 0}if(U2(we)||d7(we))return we.class}function Or(){se=2;let we=sy($),ut=we&&!$.isTypeOf||Im($.parent)||n3(G,n,m),Qt=q5($);if(m_($)||we||Nn($)){let en=nl($.parent);en&&(H=!0,Ge=[]);let Pr=m.getSymbolAtLocation($);if(Pr&&(Pr=du(Pr,m),Pr.flags&1920)){let $r=m.getExportsOfModule(Pr);w.assertEachIsDefined($r,"getExportsOfModule() should all be defined");let it=Ot=>m.isValidPropertyAccess(we?$:$.parent,Ot.name),Tt=Ot=>Zfe(Ot,m),Ut=en?Ot=>{var vr;return!!(Ot.flags&1920)&&!((vr=Ot.declarations)!=null&&vr.every(ar=>ar.parent===$.parent))}:Qt?Ot=>Tt(Ot)||it(Ot):ut||I?Tt:it;for(let Ot of $r)Ut(Ot)&&_e.push(Ot);if(!ut&&!I&&Pr.declarations&&Pr.declarations.some(Ot=>Ot.kind!==307&&Ot.kind!==267&&Ot.kind!==266)){let Ot=m.getTypeOfSymbolAtLocation(Pr,$).getNonOptionalType(),vr=!1;if(Ot.isNullableType()){let ar=U&&!me&&o.includeAutomaticOptionalChainCompletions!==!1;(ar||me)&&(Ot=Ot.getNonNullableType(),ar&&(vr=!0))}_t(Ot,!!($.flags&65536),vr)}return}}if(!ut||m2($)){m.tryGetThisTypeAt($,!1);let en=m.getTypeAtLocation($).getNonOptionalType();if(ut)_t(en.getNonNullableType(),!1,!1);else{let Pr=!1;if(en.isNullableType()){let $r=U&&!me&&o.includeAutomaticOptionalChainCompletions!==!1;($r||me)&&(en=en.getNonNullableType(),$r&&(Pr=!0))}_t(en,!!($.flags&65536),Pr)}}}function _t(we,ut,Qt){we.getStringIndexType()&&(H=!0,Ge=[]),me&&pt(we.getCallSignatures())&&(H=!0,Ge??(Ge=Vm));let en=$.kind===205?$:$.parent;if(h)for(let Pr of we.getApparentProperties())m.isValidPropertyAccessForCompletions(en,we,Pr)&&$t(Pr,!1,Qt);else _e.push(...An(OH(we,m),Pr=>m.isValidPropertyAccessForCompletions(en,we,Pr)));if(ut&&o.includeCompletionsWithInsertText){let Pr=m.getPromisedTypeOfPromise(we);if(Pr)for(let $r of Pr.getApparentProperties())m.isValidPropertyAccessForCompletions(en,Pr,$r)&&$t($r,!0,Qt)}}function $t(we,ut,Qt){var en;let Pr=po(we.declarations,Ut=>Vn(vs(Ut),pa));if(Pr){let Ut=Hr(Pr.expression),Ot=Ut&&m.getSymbolAtLocation(Ut),vr=Ot&&Xfe(Ot,G,m),ar=vr&&ua(vr);if(ar&&nd(Je,ar)){let Gt=_e.length;_e.push(vr);let dr=vr.parent;if(!dr||!r2(dr)||m.tryGetMemberInModuleExportsAndProperties(vr.name,dr)!==vr)ct[Gt]={kind:Tt(2)};else{let Sr=Jl(rd(dr.name))?(en=A6(dr))==null?void 0:en.fileName:void 0,{moduleSpecifier:kr}=(tt||(tt=Vu.createImportSpecifierResolver(n,e,_,o))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:Sr,isFromPackageJson:!1,moduleSymbol:dr,symbol:vr,targetFlags:du(vr,m).flags}],s,Bb(de))||{};if(kr){let tr={kind:Tt(6),moduleSymbol:dr,isDefaultExport:!1,symbolName:vr.name,exportName:vr.name,fileName:Sr,moduleSpecifier:kr};ct[Gt]=tr}}}else if(o.includeCompletionsWithInsertText){if(ar&&Je.has(ar))return;it(we),$r(we),_e.push(we)}}else it(we),$r(we),_e.push(we);function $r(Ut){cet(Ut)&&(le[ua(Ut)]=qu.LocalDeclarationPriority)}function it(Ut){o.includeCompletionsWithInsertText&&(ut&&nd(Je,ua(Ut))?ct[_e.length]={kind:Tt(8)}:Qt&&(ct[_e.length]={kind:16}))}function Tt(Ut){return Qt?Ut|16:Ut}}function Hr(we){return je(we)?we:Nn(we)?Hr(we.expression):void 0}function hi(){return(Ye()||Nt()||zn()||ae()||lt()||Y()||_s()||Ae()||At()||(ns(),1))===1}function _s(){return st(G)?(se=5,H=!0,ye=4,1):0}function At(){let we=Fe(G),ut=we&&m.getContextualType(we.attributes);if(!ut)return 0;let Qt=we&&m.getContextualType(we.attributes,4);return _e=Ki(_e,yt(FH(ut,Qt,we.attributes,m),we.attributes.properties)),pe(),se=3,H=!1,1}function zn(){return oe?(H=!0,sr(),1):0}function ns(){ye=Dt(G)?5:1,se=1,{isNewIdentifierLocation:H,defaultCommitCharacters:Ge}=xr(),B!==G&&w.assert(!!B,"Expected 'contextToken' to be defined when different from 'previousToken'.");let we=B!==G?B.getStart():s,ut=Pi(G,we,n)||n;E=hn(ut);let Qt=(ee?0:111551)|788968|1920|2097152,en=B&&!Bb(B);_e=Ki(_e,m.getSymbolsInScope(ut,Qt)),w.assertEachIsDefined(_e,"getSymbolsInScope() should all be defined");for(let Pr=0;Pr<_e.length;Pr++){let $r=_e[Pr];if(!m.isArgumentsSymbol($r)&&!pt($r.declarations,it=>it.getSourceFile()===n)&&(le[ua($r)]=qu.GlobalsOrKeywords),en&&!($r.flags&111551)){let it=$r.declarations&&On($r.declarations,Ew);if(it){let Tt={kind:64,declaration:it};ct[Pr]=Tt}}}if(o.includeCompletionsWithInsertText&&ut.kind!==307){let Pr=m.tryGetThisTypeAt(ut,!1,ii(ut.parent)?ut:void 0);if(Pr&&!oet(Pr,n,m))for(let $r of OH(Pr,m))ct[_e.length]={kind:1},_e.push($r),le[ua($r)]=qu.SuggestedClassMembers}sr(),ee&&(ye=G&&fS(G.parent)?6:7)}function Rn(){var we;return oe?!0:o.includeCompletionsForModuleExports?n.externalModuleIndicator||n.commonJsModuleIndicator||Rq(e.getCompilerOptions())?!0:((we=e.getSymlinkCache)==null?void 0:we.call(e).hasAnySymlinks())||!!e.getCompilerOptions().paths||Lce(e):!1}function hn(we){switch(we.kind){case 307:case 228:case 294:case 241:return!0;default:return Ii(we)}}function ui(){return I||D||!!oe&&Xy(de.parent)||!Ue(G)&&(n3(G,n,m)||Im(de)||ht(G))}function Ue(we){return we&&(we.kind===114&&(we.parent.kind===186||pI(we.parent))||we.kind===131&&we.parent.kind===182)}function ht(we){if(we){let ut=we.parent.kind;switch(we.kind){case 59:return ut===172||ut===171||ut===169||ut===260||Yx(ut);case 64:return ut===265||ut===168;case 130:return ut===234;case 30:return ut===183||ut===216;case 96:return ut===168;case 152:return ut===238}}return!1}function sr(){var we,ut;if(!Rn()||(w.assert(!c?.data,"Should not run 'collectAutoImports' when faster path is available via `data`"),c&&!c.source))return;ve|=1;let en=B===G&&oe?"":B&&je(B)?B.text.toLowerCase():"",Pr=(we=_.getModuleSpecifierCache)==null?void 0:we.call(_),$r=v3(n,_,e,o,g),it=(ut=_.getPackageJsonAutoImportProvider)==null?void 0:ut.call(_),Tt=c?void 0:ZI(n,o,_);mEe("collectAutoImports",_,tt||(tt=Vu.createImportSpecifierResolver(n,e,_,o)),e,s,o,!!oe,Bb(de),Ot=>{$r.search(n.path,te,(vr,ar)=>{if(!$_(vr,wa(_.getCompilationSettings()))||!c&&d2(vr)||!ee&&!oe&&!(ar&111551)||ee&&!(ar&790504))return!1;let Gt=vr.charCodeAt(0);return te&&(Gt<65||Gt>90)?!1:c?!0:JEe(vr,en)},(vr,ar,Gt,dr)=>{if(c&&!pt(vr,ta=>c.source===rd(ta.moduleSymbol.name))||(vr=An(vr,Ut),!vr.length))return;let Sr=Ot.tryResolve(vr,Gt)||{};if(Sr==="failed")return;let kr=vr[0],tr;Sr!=="skipped"&&({exportInfo:kr=vr[0],moduleSpecifier:tr}=Sr);let si=kr.exportKind===1,zs=si&&pA(w.checkDefined(kr.symbol))||w.checkDefined(kr.symbol);Zr(zs,{kind:tr?32:4,moduleSpecifier:tr,symbolName:ar,exportMapKey:dr,exportName:kr.exportKind===2?"export=":w.checkDefined(kr.symbol).name,fileName:kr.moduleFileName,isDefaultExport:si,moduleSymbol:kr.moduleSymbol,isFromPackageJson:kr.isFromPackageJson})}),xe=Ot.skippedAny(),ve|=Ot.resolvedAny()?8:0,ve|=Ot.resolvedBeyondLimit()?16:0});function Ut(Ot){return f$(Ot.isFromPackageJson?it:e,n,Vn(Ot.moduleSymbol.valueDeclaration,Mi),Ot.moduleSymbol,o,Tt,Ne(Ot.isFromPackageJson),Pr)}}function Zr(we,ut){let Qt=ua(we);le[Qt]!==qu.GlobalsOrKeywords&&(ct[_e.length]=ut,le[Qt]=oe?qu.LocationPriority:qu.AutoImportSuggestions,_e.push(we))}function Zn(we,ut){un(de)||we.forEach(Qt=>{if(!Xn(Qt))return;let en=NH(Qt,wa(i),void 0,0,!1);if(!en)return;let{name:Pr}=en,$r=BZe(Qt,Pr,ut,e,_,i,o,u);if(!$r)return;let it={kind:128,...$r};ve|=32,ct[_e.length]=it,_e.push(Qt)})}function Xn(we){return!!(we.flags&8196)}function Pi(we,ut,Qt){let en=we;for(;en&&!vq(en,ut,Qt);)en=en.parent;return en}function Rs(we){let ut=To(),Qt=xs(we)||vt(we)||Vt(we)||oa(we)||LA(we);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(To()-ut)),Qt}function oa(we){if(we.kind===12)return!0;if(we.kind===32&&we.parent){if(de===we.parent&&(de.kind===286||de.kind===285))return!1;if(we.parent.kind===286)return de.parent.kind!==286;if(we.parent.kind===287||we.parent.kind===285)return!!we.parent.parent&&we.parent.parent.kind===284}return!1}function xr(){if(G){let we=G.parent.kind,ut=RH(G);switch(ut){case 28:switch(we){case 213:case 214:{let Qt=G.parent.expression;return Qs(n,Qt.end).line!==Qs(n,s).line?{defaultCommitCharacters:IH,isNewIdentifierLocation:!0}:{defaultCommitCharacters:Vm,isNewIdentifierLocation:!0}}case 226:return{defaultCommitCharacters:IH,isNewIdentifierLocation:!0};case 176:case 184:case 210:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 209:return{defaultCommitCharacters:Vm,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:Vm,isNewIdentifierLocation:!1}}case 21:switch(we){case 213:case 214:{let Qt=G.parent.expression;return Qs(n,Qt.end).line!==Qs(n,s).line?{defaultCommitCharacters:IH,isNewIdentifierLocation:!0}:{defaultCommitCharacters:Vm,isNewIdentifierLocation:!0}}case 217:return{defaultCommitCharacters:IH,isNewIdentifierLocation:!0};case 176:case 196:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:Vm,isNewIdentifierLocation:!1}}case 23:switch(we){case 209:case 181:case 189:case 167:return{defaultCommitCharacters:Vm,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:Vm,isNewIdentifierLocation:!1}}case 144:case 145:case 102:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 25:switch(we){case 267:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:Vm,isNewIdentifierLocation:!1}}case 19:switch(we){case 263:case 210:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:Vm,isNewIdentifierLocation:!1}}case 64:switch(we){case 260:case 226:return{defaultCommitCharacters:Vm,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:Vm,isNewIdentifierLocation:!1}}case 16:return{defaultCommitCharacters:Vm,isNewIdentifierLocation:we===228};case 17:return{defaultCommitCharacters:Vm,isNewIdentifierLocation:we===239};case 134:return we===174||we===304?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:Vm,isNewIdentifierLocation:!1};case 42:return we===174?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:Vm,isNewIdentifierLocation:!1}}if(ij(ut))return{defaultCommitCharacters:[],isNewIdentifierLocation:!0}}return{defaultCommitCharacters:Vm,isNewIdentifierLocation:!1}}function xs(we){return(tG(we)||OB(we))&&(t3(we,s)||s===we.end&&(!!we.isUnterminated||tG(we)))}function Ye(){let we=set(G);if(!we)return 0;let Qt=(W2(we.parent)?we.parent:void 0)||we,en=FEe(Qt,m);if(!en)return 0;let Pr=m.getTypeFromTypeNode(Qt),$r=OH(en,m),it=OH(Pr,m),Tt=new Set;return it.forEach(Ut=>Tt.add(Ut.escapedName)),_e=Ki(_e,An($r,Ut=>!Tt.has(Ut.escapedName))),se=0,H=!0,1}function Nt(){if(G?.kind===26)return 0;let we=_e.length,ut=ZZe(G,s,n);if(!ut)return 0;se=0;let Qt,en;if(ut.kind===210){let Pr=uet(ut,m);if(Pr===void 0)return ut.flags&67108864?2:0;let $r=m.getContextualType(ut,4),it=($r||Pr).getStringIndexType(),Tt=($r||Pr).getNumberIndexType();if(H=!!it||!!Tt,Qt=FH(Pr,$r,ut,m),en=ut.properties,Qt.length===0&&!Tt)return 0}else{w.assert(ut.kind===206),H=!1;let Pr=Am(ut.parent);if(!$P(Pr))return w.fail("Root declaration is not variable-like.");let $r=Yy(Pr)||!!pl(Pr)||Pr.parent.parent.kind===250;if(!$r&&Pr.kind===169&&(gt(Pr.parent)?$r=!!m.getContextualType(Pr.parent):(Pr.parent.kind===174||Pr.parent.kind===178)&&($r=gt(Pr.parent.parent)&&!!m.getContextualType(Pr.parent.parent))),$r){let it=m.getTypeAtLocation(ut);if(!it)return 2;Qt=m.getPropertiesOfType(it).filter(Tt=>m.isPropertyAccessible(ut,!1,!1,it,Tt)),en=ut.elements}}if(Qt&&Qt.length>0){let Pr=Pe(Qt,w.checkDefined(en));_e=Ki(_e,Pr),pe(),ut.kind===210&&o.includeCompletionsWithObjectLiteralMethodSnippets&&o.includeCompletionsWithInsertText&&(Re(we),Zn(Pr,ut))}return 1}function ae(){if(!G)return 0;let we=G.kind===19||G.kind===28?Vn(G.parent,hO):oL(G)?Vn(G.parent.parent,hO):void 0;if(!we)return 0;oL(G)||(ye=8);let{moduleSpecifier:ut}=we.kind===275?we.parent.parent:we.parent;if(!ut)return H=!0,we.kind===275?2:0;let Qt=m.getSymbolAtLocation(ut);if(!Qt)return H=!0,2;se=3,H=!1;let en=m.getExportsAndPropertiesOfModule(Qt),Pr=new Set(we.elements.filter(it=>!jt(it)).map(it=>dS(it.propertyName||it.name))),$r=en.filter(it=>it.escapedName!=="default"&&!Pr.has(it.escapedName));return _e=Ki(_e,$r),$r.length||(ye=0),1}function lt(){if(G===void 0)return 0;let we=G.kind===19||G.kind===28?Vn(G.parent,Dk):G.kind===59?Vn(G.parent.parent,Dk):void 0;if(we===void 0)return 0;let ut=new Set(we.elements.map(GO));return _e=An(m.getTypeAtLocation(we).getApparentProperties(),Qt=>!ut.has(Qt.escapedName)),1}function Y(){var we;let ut=G&&(G.kind===19||G.kind===28)?Vn(G.parent,Fp):void 0;if(!ut)return 0;let Qt=gr(ut,uf(Mi,nl));return se=5,H=!1,(we=Qt.locals)==null||we.forEach((en,Pr)=>{var $r,it;_e.push(en),(it=($r=Qt.symbol)==null?void 0:$r.exports)!=null&&it.has(Pr)&&(le[ua(en)]=qu.OptionalMember)}),1}function Ae(){let we=iet(n,G,de,s);if(!we)return 0;if(se=3,H=!0,ye=G.kind===42?0:ii(we)?2:3,!ii(we))return 1;let ut=G.kind===27?G.parent.parent:G.parent,Qt=rl(ut)?r_(ut):0;if(G.kind===80&&!jt(G))switch(G.getText()){case"private":Qt=Qt|2;break;case"static":Qt=Qt|256;break;case"override":Qt=Qt|16;break}if(Nc(ut)&&(Qt|=256),!(Qt&2)){let en=ii(we)&&Qt&16?Ux(Dm(we)):nA(we),Pr=ga(en,$r=>{let it=m.getTypeAtLocation($r);return Qt&256?it?.symbol&&m.getPropertiesOfType(m.getTypeOfSymbolAtLocation(it.symbol,we)):it&&m.getPropertiesOfType(it)});_e=Ki(_e,q(Pr,we.members,Qt)),or(_e,($r,it)=>{let Tt=$r?.valueDeclaration;if(Tt&&rl(Tt)&&Tt.name&&pa(Tt.name)){let Ut={kind:512,symbolName:m.symbolToString($r)};ct[it]=Ut}})}return 1}function Xe(we){return!!we.parent&&Bi(we.parent)&&lc(we.parent.parent)&&(WP(we.kind)||Cg(we))}function st(we){if(we){let ut=we.parent;switch(we.kind){case 21:case 28:return lc(we.parent)?we.parent:void 0;default:if(Xe(we))return ut.parent}}}function Dt(we){if(we){let ut,Qt=gr(we.parent,en=>ii(en)?"quit":xo(en)&&ut===en.body?!0:(ut=en,!1));return Qt&&Qt}}function Fe(we){if(we){let ut=we.parent;switch(we.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(ut&&(ut.kind===285||ut.kind===286)){if(we.kind===32){let Qt=Cl(we.pos,n,void 0);if(!ut.typeArguments||Qt&&Qt.kind===44)break}return ut}else if(ut.kind===291)return ut.parent.parent;break;case 11:if(ut&&(ut.kind===291||ut.kind===293))return ut.parent.parent;break;case 20:if(ut&&ut.kind===294&&ut.parent&&ut.parent.kind===291)return ut.parent.parent.parent;if(ut&&ut.kind===293)return ut.parent.parent;break}}}function St(we,ut){return n.getLineEndOfPosition(we.getEnd())<ut}function vt(we){let ut=we.parent,Qt=ut.kind;switch(we.kind){case 28:return Qt===260||on(we)||Qt===243||Qt===266||Ke(Qt)||Qt===264||Qt===207||Qt===265||ii(ut)&&!!ut.typeParameters&&ut.typeParameters.end>=we.pos;case 25:return Qt===207;case 59:return Qt===208;case 23:return Qt===207;case 21:return Qt===299||Ke(Qt);case 19:return Qt===266;case 30:return Qt===263||Qt===231||Qt===264||Qt===265||Yx(Qt);case 126:return Qt===172&&!ii(ut.parent);case 26:return Qt===169||!!ut.parent&&ut.parent.kind===207;case 125:case 123:case 124:return Qt===169&&!lc(ut.parent);case 130:return Qt===276||Qt===281||Qt===274;case 139:case 153:return!LH(we);case 80:{if((Qt===276||Qt===281)&&we===ut.name&&we.text==="type"||gr(we.parent,oi)&&St(we,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!==276;case 42:return Ns(we.parent)&&!xc(we.parent)}if(ij(RH(we))&&LH(we)||Xe(we)&&(!je(we)||WP(RH(we))||jt(we)))return!1;switch(RH(we)){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 ds(we.parent)}if(gr(we.parent,ii)&&we===B&&Mt(we,s))return!1;let Pr=Lb(we.parent,172);if(Pr&&we!==B&&ii(B.parent.parent)&&s<=B.end){if(Mt(we,B.end))return!1;if(we.kind!==64&&(DM(Pr)||_F(Pr)))return!0}return Cg(we)&&!Eu(we.parent)&&!Bm(we.parent)&&!((ii(we.parent)||hu(we.parent)||$o(we.parent))&&(we!==B||s>B.end))}function Mt(we,ut){return we.kind!==64&&(we.kind===27||!Pp(we.end,ut,n))}function Ke(we){return Yx(we)&&we!==176}function Vt(we){if(we.kind===9){let ut=we.getFullText();return ut.charAt(ut.length-1)==="."}return!1}function on(we){return we.parent.kind===261&&!n3(we,n,m)}function Pe(we,ut){if(ut.length===0)return we;let Qt=new Set,en=new Set;for(let $r of ut){if($r.kind!==303&&$r.kind!==304&&$r.kind!==208&&$r.kind!==174&&$r.kind!==177&&$r.kind!==178&&$r.kind!==305||jt($r))continue;let it;if(xh($r))kt($r,Qt);else if(Da($r)&&$r.propertyName)$r.propertyName.kind===80&&(it=$r.propertyName.escapedText);else{let Tt=vs($r);it=Tt&&Pm(Tt)?aA(Tt):void 0}it!==void 0&&en.add(it)}let Pr=we.filter($r=>!en.has($r.escapedName));return j(Qt,Pr),Pr}function kt(we,ut){let Qt=we.expression,en=m.getSymbolAtLocation(Qt),Pr=en&&m.getTypeOfSymbolAtLocation(en,Qt),$r=Pr&&Pr.properties;$r&&$r.forEach(it=>{ut.add(it.name)})}function pe(){_e.forEach(we=>{if(we.flags&16777216){let ut=ua(we);le[ut]=le[ut]??qu.OptionalMember}})}function j(we,ut){if(we.size!==0)for(let Qt of ut)we.has(Qt.name)&&(le[ua(Qt)]=qu.MemberDeclaredBySpreadAssignment)}function Re(we){for(let ut=we;ut<_e.length;ut++){let Qt=_e[ut],en=ua(Qt),Pr=ct?.[ut],$r=wa(i),it=NH(Qt,$r,Pr,0,!1);if(it){let Tt=le[en]??qu.LocationPriority,{name:Ut}=it;le[en]=qu.ObjectLiteralProperty(Tt,Ut)}}}function q(we,ut,Qt){let en=new Set;for(let Pr of ut){if(Pr.kind!==172&&Pr.kind!==174&&Pr.kind!==177&&Pr.kind!==178||jt(Pr)||hf(Pr,2)||Ks(Pr)!==!!(Qt&256))continue;let $r=dk(Pr.name);$r&&en.add($r)}return we.filter(Pr=>!en.has(Pr.escapedName)&&!!Pr.declarations&&!(Ap(Pr)&2)&&!(Pr.valueDeclaration&&Zu(Pr.valueDeclaration)))}function yt(we,ut){let Qt=new Set,en=new Set;for(let $r of ut)jt($r)||($r.kind===291?Qt.add(EA($r.name)):G2($r)&&kt($r,en));let Pr=we.filter($r=>!Qt.has($r.escapedName));return j(en,Pr),Pr}function jt(we){return we.getStart(n)<=s&&s<=we.getEnd()}}function ZZe(e,t,n){var i;if(e){let{parent:s}=e;switch(e.kind){case 19:case 28:if(Sa(s)||np(s))return s;break;case 42:return xc(s)?Vn(s.parent,Sa):void 0;case 134:return Vn(s.parent,Sa);case 80:if(e.text==="async"&&Eu(e.parent))return e.parent.parent;{if(Sa(e.parent.parent)&&(xh(e.parent)||Eu(e.parent)&&Qs(n,e.getEnd()).line!==Qs(n,t).line))return e.parent.parent;let c=gr(s,hl);if(c?.getLastToken(n)===e&&Sa(c.parent))return c.parent}break;default:if((i=s.parent)!=null&&i.parent&&(xc(s.parent)||Mp(s.parent)||X_(s.parent))&&Sa(s.parent.parent))return s.parent.parent;if(xh(s)&&Sa(s.parent))return s.parent;let o=gr(s,hl);if(e.kind!==59&&o?.getLastToken(n)===e&&Sa(o.parent))return o.parent}}}function EH(e,t){let n=Cl(e,t);return n&&e<=n.end&&(oh(n)||F_(n.kind))?{contextToken:Cl(n.getFullStart(),t,void 0),previousToken:n}:{contextToken:n,previousToken:n}}function DEe(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 _=t.exportName==="export="?o.resolveExternalModuleSymbol(c):o.tryGetMemberInModuleExportsAndProperties(t.exportName,c);return _?(_=t.exportName==="default"&&pA(_)||_,{symbol:_,origin:JZe(t,e,c)}):void 0}function NH(e,t,n,i,s){if(kZe(n))return;let o=vZe(n)?n.symbolName:e.name;if(o===void 0||e.flags&1536&&K6(o.charCodeAt(0))||p4(e))return;let c={name:o,needsConvertPropertyAccess:!1};if($_(o,t,s?1:0)||e.valueDeclaration&&Zu(e.valueDeclaration))return c;if(e.flags&2097152)return{name:o,needsConvertPropertyAccess:!0};switch(i){case 3:return Gfe(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 MH=[],PEe=Yu(()=>{let e=[];for(let t=83;t<=165;t++)e.push({name:sa(t),kind:"keyword",kindModifiers:"",sortText:qu.GlobalsOrKeywords});return e});function AEe(e,t){if(!t)return EEe(e);let n=e+8+1;return MH[n]||(MH[n]=EEe(e).filter(i=>!eet(XT(i.name))))}function EEe(e){return MH[e]||(MH[e]=PEe().filter(t=>{let n=XT(t.name);switch(e){case 0:return!1;case 1:return MEe(n)||n===138||n===144||n===156||n===145||n===128||DE(n)&&n!==157;case 5:return MEe(n);case 2:return ij(n);case 3:return NEe(n);case 4:return WP(n);case 6:return DE(n)||n===87;case 7:return DE(n);case 8:return n===156;default:return w.assertNever(e)}}))}function eet(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 NEe(e){return e===148}function ij(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return LB(e)}}function MEe(e){return e===134||e===135||e===160||e===130||e===152||e===156||!HF(e)&&!ij(e)}function RH(e){return je(e)?YT(e)??0:e.kind}function tet(e,t){let n=[];if(e){let i=e.getSourceFile(),s=e.parent,o=i.getLineAndCharacterOfPosition(e.end).line,c=i.getLineAndCharacterOfPosition(t).line;(sc(s)||Xc(s)&&s.moduleSpecifier)&&e===s.moduleSpecifier&&o===c&&n.push({name:sa(132),kind:"keyword",kindModifiers:"",sortText:qu.GlobalsOrKeywords})}return n}function ret(e,t){return gr(e,n=>Fw(n)&&qI(n,t)?!0:Kd(n)?"quit":!1)}function FH(e,t,n,i){let s=t&&t!==e,o=i.getUnionType(An(e.flags&1048576?e.types:[e],g=>!i.getPromisedTypeOfPromise(g))),c=s&&!(t.flags&3)?i.getUnionType([o,t]):o,_=net(c,n,i);return c.isClass()&&REe(_)?[]:s?An(_,u):_;function u(g){return Dr(g.declarations)?pt(g.declarations,m=>m.parent!==n):!0}}function net(e,t,n){return e.isUnion()?n.getAllPossiblePropertiesOfTypes(An(e.types,i=>!(i.flags&402784252||n.isArrayLikeType(i)||n.isTypeInvalidDueToUnionDiscriminant(i,t)||n.typeHasCallOrConstructSignatures(i)||i.isClass()&&REe(i.getApparentProperties())))):e.getApparentProperties()}function REe(e){return pt(e,t=>!!(Ap(t)&6))}function OH(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 iet(e,t,n,i){switch(n.kind){case 352:return Vn(n.parent,b2);case 1:let s=Vn(zo(Zs(n.parent,Mi).statements),b2);if(s&&!_o(s,20,e))return s;break;case 81:if(Vn(n.parent,ds))return gr(n,ii);break;case 80:{if(YT(n)||ds(n.parent)&&n.parent.initializer===n)return;if(LH(n))return gr(n,b2)}}if(t){if(n.kind===137||je(t)&&ds(t.parent)&&ii(n))return gr(t,ii);switch(t.kind){case 64:return;case 27:case 20:return LH(n)&&n.parent.name===n?n.parent.parent:Vn(n,b2);case 19:case 28:return Vn(t.parent,b2);default:if(b2(n)){if(Qs(e,t.getEnd()).line!==Qs(e,i).line)return n;let s=ii(t.parent.parent)?ij:NEe;return s(t.kind)||t.kind===42||je(t)&&s(YT(t)??0)?t.parent.parent:void 0}return}}}function set(e){if(!e)return;let t=e.parent;switch(e.kind){case 19:if(v_(t))return t;break;case 27:case 28:case 80:if(t.kind===171&&v_(t.parent))return t.parent;break}}function FEe(e,t){if(!e)return;if(di(e)&&fF(e.parent))return t.getTypeArgumentConstraint(e);let n=FEe(e.parent,t);if(n)switch(e.kind){case 171:return t.getTypeOfPropertyOfContextualType(n,e.symbol.escapedName);case 193:case 187:case 192:return n}}function LH(e){return e.parent&&iF(e.parent)&&b2(e.parent.parent)}function aet(e,t,n,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!n&&ele(n)&&i===n.getStart(e)+1;case"#":return!!n&&ji(n)&&!!su(n);case"<":return!!n&&n.kind===30&&(!vn(n.parent)||OEe(n.parent));case"/":return!!n&&(Ha(n)?!!n4(n):n.kind===44&&jS(n.parent));case" ":return!!n&&BA(n)&&n.parent.kind===307;default:return w.assertNever(t)}}function OEe({left:e}){return Tc(e)}function oet(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 cet(e){return!!(e.valueDeclaration&&r_(e.valueDeclaration)&256&&ii(e.valueDeclaration.parent))}function uet(e,t){let n=t.getContextualType(e);if(n)return n;let i=Td(e.parent);if(vn(i)&&i.operatorToken.kind===64&&e===i.left)return t.getTypeAtLocation(i);if(gt(i))return t.getContextualType(i)}function LEe(e,t){var n,i,s;let o,c=!1,_=u();return{isKeywordOnlyCompletion:c,keywordCompletion:o,isNewIdentifierLocation:!!(_||o===156),isTopLevelTypeOnly:!!((i=(n=Vn(_,sc))==null?void 0:n.importClause)!=null&&i.isTypeOnly)||!!((s=Vn(_,Ol))!=null&&s.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!_&&WEe(_,e),replacementSpan:_et(_)};function u(){let g=e.parent;if(Ol(g)){let m=g.getLastToken(t);if(je(e)&&m!==e){o=161,c=!0;return}return o=e.kind===156?void 0:156,Yfe(g.moduleReference)?g:void 0}if(WEe(g,e)&&BEe(g.parent))return g;if(jm(g)||kh(g)){if(!g.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(o=156),BEe(g))if(e.kind===20||e.kind===80)c=!0,o=161;else return g.parent.parent;return}if(Xc(g)&&e.kind===42||Fp(g)&&e.kind===20){c=!0,o=161;return}if(BA(e)&&Mi(g))return o=156,e;if(BA(e)&&sc(g))return o=156,Yfe(g.moduleSpecifier)?g:void 0}}function _et(e){var t;if(!e)return;let n=gr(e,uf(sc,Ol,zm))??e,i=n.getSourceFile();if(hk(n,i))return k_(n,i);w.assert(n.kind!==102&&n.kind!==276);let s=n.kind===272||n.kind===351?jEe((t=n.importClause)==null?void 0:t.namedBindings)??n.moduleSpecifier:n.moduleReference,o={pos:n.getFirstToken().getStart(),end:s.pos};if(hk(o,i))return mv(o)}function jEe(e){var t;return On((t=Vn(e,jm))==null?void 0:t.elements,n=>{var i;return!n.propertyName&&d2(n.name.text)&&((i=Cl(n.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==28})}function WEe(e,t){return a_(e)&&(e.isTypeOnly||t===e.name&&oL(t))}function BEe(e){if(!Yfe(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(jm(e)){let t=jEe(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function Yfe(e){var t;return Tc(e)?!0:!((t=Vn(dy(e)?e.expression:e,Ha))!=null&&t.text)}function fet(e,t){if(!e)return;let n=gr(e,i=>gS(i)||zEe(i)||Ws(i)?"quit":(Bi(i)||$o(i))&&!W0(i.parent));return n||(n=gr(t,i=>gS(i)||zEe(i)||Ws(i)?"quit":oi(i))),n}function pet(e){if(!e)return!1;let t=e,n=e.parent;for(;n;){if($o(n))return n.default===t||t.kind===64;t=n,n=n.parent}return!1}function zEe(e){return e.parent&&Lo(e.parent)&&(e.parent.body===e||e.kind===39)}function Zfe(e,t,n=new Set){return i(e)||i(du(e.exportSymbol||e,t));function i(s){return!!(s.flags&788968)||t.isUnknownSymbol(s)||!!(s.flags&1536)&&nd(n,s)&&t.getExportsOfModule(s).some(o=>Zfe(o,t,n))}}function det(e,t){let n=du(e,t).declarations;return!!Dr(n)&&Oi(n,kL)}function JEe(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 _=e.charCodeAt(c),u=t.charCodeAt(s);if((_===u||_===met(u))&&(n||(n=i===void 0||97<=i&&i<=122&&65<=_&&_<=90||i===95&&_!==95),n&&s++,s===t.length))return!0;i=_}return!1}function met(e){return 97<=e&&e<=122?e-32:e}function get(e){return e==="abstract"||e==="async"||e==="await"||e==="declare"||e==="module"||e==="namespace"||e==="type"||e==="satisfies"||e==="as"}var jH={};nt(jH,{getStringLiteralCompletionDetails:()=>vet,getStringLiteralCompletions:()=>het});var GEe={directory:0,script:1,"external module name":2};function epe(){let e=new Map;function t(n){let i=e.get(n.name);(!i||GEe[i.kind]<GEe[n.kind])&&e.set(n.name,n)}return{add:t,has:e.has.bind(e),values:e.values.bind(e)}}function het(e,t,n,i,s,o,c,_,u){if(Fce(e,t)){let g=Ret(e,t,o,s,a1(o,s));return g&&UEe(g)}if(iC(e,t,n)){if(!n||!Ha(n))return;let g=qEe(e,n,t,o,s,_);return yet(g,n,e,s,o,c,i,_,t,u)}}function yet(e,t,n,i,s,o,c,_,u,g){if(e===void 0)return;let m=Aq(t,u);switch(e.kind){case 0:return UEe(e.paths);case 1:{let h=xW();return Hfe(e.symbols,h,t,t,n,u,n,i,s,99,o,4,_,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:m,entries:h,defaultCommitCharacters:qk(e.hasIndexSignature)}}case 2:{let h=t.kind===15?96:Yi(oc(t),"'")?39:34,S=e.types.map(T=>({name:wg(T.value,h),kindModifiers:"",kind:"string",sortText:qu.LocationPriority,replacementSpan:Pq(t,u),commitCharacters:[]}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:m,entries:S,defaultCommitCharacters:qk(e.isNewIdentifier)}}default:return w.assertNever(e)}}function vet(e,t,n,i,s,o,c,_){if(!i||!Ha(i))return;let u=qEe(t,i,n,s,o,_);return u&&bet(e,i,u,t,s.getTypeChecker(),c)}function bet(e,t,n,i,s,o){switch(n.kind){case 0:{let c=On(n.paths,_=>_.name===e);return c&&nj(e,VEe(c.extension),c.kind,[cp(e)])}case 1:{let c=On(n.symbols,_=>_.name===e);return c&&Kfe(c,c.name,s,i,t,o)}case 2:return On(n.types,c=>c.value===e)?nj(e,"","string",[cp(e)]):void 0;default:return w.assertNever(n)}}function UEe(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:s,kind:o,span:c,extension:_})=>({name:s,kind:o,kindModifiers:VEe(_),sortText:qu.LocationPriority,replacementSpan:c})),defaultCommitCharacters:qk(!0)}}function VEe(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 qEe(e,t,n,i,s,o){let c=i.getTypeChecker(),_=tpe(t.parent);switch(_.kind){case 201:{let B=tpe(_.parent);return B.kind===205?{kind:0,paths:QEe(e,t,i,s,o)}:u(B)}case 303:return Sa(_.parent)&&_.name===t?xet(c,_.parent):g()||g(0);case 212:{let{expression:B,argumentExpression:G}=_;return t===Ka(G)?$Ee(c.getTypeAtLocation(B)):void 0}case 213:case 214:case 291:if(!Bet(t)&&!jf(_)){let B=J3.getArgumentInfoForCompletions(_.kind===291?_.parent:t,n,e,c);return B&&ket(B.invocation,t,B,c)||g(0)}case 272:case 278:case 283:case 351:return{kind:0,paths:QEe(e,t,i,s,o)};case 296:let m=wL(c,_.parent.clauses),h=g();return h?{kind:2,types:h.types.filter(B=>!m.hasValue(B.value)),isNewIdentifier:!1}:void 0;case 276:case 281:let T=_;if(T.propertyName&&t!==T.propertyName)return;let x=T.parent,{moduleSpecifier:I}=x.kind===275?x.parent.parent:x.parent;if(!I)return;let D=c.getSymbolAtLocation(I);if(!D)return;let E=c.getExportsAndPropertiesOfModule(D),O=new Set(x.elements.map(B=>dS(B.propertyName||B.name)));return{kind:1,symbols:E.filter(B=>B.escapedName!=="default"&&!O.has(B.escapedName)),hasIndexSignature:!1};default:return g()||g(0)}function u(m){switch(m.kind){case 233:case 183:{let T=gr(_,x=>x.parent===m);return T?{kind:2,types:WH(c.getTypeArgumentConstraint(T)),isNewIdentifier:!1}:void 0}case 199:let{indexType:h,objectType:S}=m;return qI(h,n)?$Ee(c.getTypeFromTypeNode(S)):void 0;case 192:{let T=u(tpe(m.parent));if(!T)return;let x=Tet(m,_);return T.kind===1?{kind:1,symbols:T.symbols.filter(I=>!Ts(x,I.name)),hasIndexSignature:T.hasIndexSignature}:{kind:2,types:T.types.filter(I=>!Ts(x,I.value)),isNewIdentifier:!1}}default:return}}function g(m=4){let h=WH(mL(t,c,m));if(h.length)return{kind:2,types:h,isNewIdentifier:!1}}}function tpe(e){switch(e.kind){case 196:return c4(e);case 217:return Td(e);default:return e}}function Tet(e,t){return Vi(e.types,n=>n!==t&&lv(n)&&ya(n.literal)?n.literal.text:void 0)}function ket(e,t,n,i){let s=!1,o=new Set,c=Wu(e)?w.checkDefined(gr(t.parent,Bm)):t,_=i.getCandidateSignaturesForStringLiteralCompletions(e,c),u=ga(_,g=>{if(!Gu(g)&&n.argumentCount>g.parameters.length)return;let m=g.getTypeParameterAtPosition(n.argumentIndex);if(Wu(e)){let h=i.getTypeOfPropertyOfType(m,B4(c.name));h&&(m=h)}return s=s||!!(m.flags&4),WH(m,o)});return Dr(u)?{kind:2,types:u,isNewIdentifier:s}:void 0}function $Ee(e){return e&&{kind:1,symbols:An(e.getApparentProperties(),t=>!(t.valueDeclaration&&Zu(t.valueDeclaration))),hasIndexSignature:Yq(e)}}function xet(e,t){let n=e.getContextualType(t);if(!n)return;let i=e.getContextualType(t,4);return{kind:1,symbols:FH(n,i,t,e),hasIndexSignature:Yq(n)}}function WH(e,t=new Set){return e?(e=Mq(e),e.isUnion()?ga(e.types,n=>WH(n,t)):e.isStringLiteral()&&!(e.flags&1024)&&nd(t,e.value)?[e]:qe):qe}function $E(e,t,n){return{name:e,kind:t,extension:n}}function rpe(e){return $E(e,"directory",void 0)}function HEe(e,t,n){let i=Oet(e,t),s=e.length===0?void 0:pu(t,e.length);return n.map(({name:o,kind:c,extension:_})=>o.includes(Fo)||o.includes(j8)?{name:o,kind:c,extension:_,span:s}:{name:o,kind:c,extension:_,span:i})}function QEe(e,t,n,i,s){return HEe(t.text,t.getStart(e)+1,Cet(e,t,n,i,s))}function Cet(e,t,n,i,s){let o=iu(t.text),c=Ha(t)?n.getModeForUsageLocation(e,t):void 0,_=e.path,u=Yn(_),g=n.getCompilerOptions(),m=n.getTypeChecker(),h=a1(n,i),S=npe(g,1,e,m,s,c);return Let(o)||!g.baseUrl&&!g.paths&&(ff(o)||iee(o))?wet(o,u,n,i,h,_,S):Aet(o,u,c,n,i,h,S)}function npe(e,t,n,i,s,o){return{extensionsToSearch:Qp(Iet(e,i)),referenceKind:t,importingSourceFile:n,endingPreference:s?.importModuleSpecifierEnding,resolutionMode:o}}function wet(e,t,n,i,s,o,c){let _=n.getCompilerOptions();return _.rootDirs?Pet(_.rootDirs,e,t,c,n,i,s,o):ps(O3(e,t,c,n,i,s,!0,o).values())}function Iet(e,t){let n=t?Vi(t.getAmbientModules(),o=>{let c=o.name.slice(1,-1);if(!(!c.startsWith("*.")||c.includes("/")))return c.slice(1)}):[],i=[...SA(e),n],s=Bu(e);return cL(s)?R4(e,i):i}function Det(e,t,n,i){e=e.map(o=>El(na(ff(o)?o:Bn(t,o))));let s=po(e,o=>kp(o,n,t,i)?n.substr(o.length):void 0);return nS([...e.map(o=>Bn(o,s)),n].map(o=>Ky(o)),aS,wu)}function Pet(e,t,n,i,s,o,c,_){let g=s.getCompilerOptions().project||o.getCurrentDirectory(),m=!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames()),h=Det(e,g,n,m);return nS(ga(h,S=>ps(O3(t,S,i,s,o,c,!0,_).values())),(S,T)=>S.name===T.name&&S.kind===T.kind&&S.extension===T.extension)}function O3(e,t,n,i,s,o,c,_,u=epe()){var g;e===void 0&&(e=""),e=iu(e),p0(e)||(e=Yn(e)),e===""&&(e="."+Fo),e=El(e);let m=d0(t,e),h=p0(m)?m:Yn(m);if(!c){let I=ile(h,s);if(I){let E=tI(I,s).typesVersions;if(typeof E=="object"){let O=(g=z7(E))==null?void 0:g.paths;if(O){let F=Yn(I),B=m.slice(El(F).length);if(XEe(u,B,F,n,i,s,o,O))return u}}}}let S=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames());if(!vL(s,h))return u;let T=t$(s,h,n.extensionsToSearch,void 0,["./*"]);if(T)for(let I of T){if(I=na(I),_&&ty(I,_,t,S)===0)continue;let{name:D,extension:E}=KEe(fl(I),i,n,!1);u.add($E(D,"script",E))}let x=yL(s,h);if(x)for(let I of x){let D=fl(na(I));D!=="@types"&&u.add(rpe(D))}return u}function KEe(e,t,n,i){let s=hy.tryGetRealFileNameForNonJsDeclarationFileName(e);if(s)return{name:s,extension:bh(s)};if(n.referenceKind===0)return{name:e,extension:bh(e)};let o=hy.getModuleSpecifierPreferences({importModuleSpecifierEnding:n.endingPreference},t,t.getCompilerOptions(),n.importingSourceFile).getAllowedEndingsInPreferredOrder(n.resolutionMode);if(i&&(o=o.filter(_=>_!==0&&_!==1)),o[0]===3){if(Gc(e,M4))return{name:e,extension:bh(e)};let _=hy.tryGetJSExtensionForFile(e,t.getCompilerOptions());return _?{name:fy(e,_),extension:_}:{name:e,extension:bh(e)}}if(!i&&(o[0]===0||o[0]===1)&&Gc(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:i_(e),extension:bh(e)};let c=hy.tryGetJSExtensionForFile(e,t.getCompilerOptions());return c?{name:fy(e,c),extension:c}:{name:e,extension:bh(e)}}function XEe(e,t,n,i,s,o,c,_){let u=m=>_[m],g=(m,h)=>{let S=C2(m),T=C2(h),x=typeof S=="object"?S.prefix.length:m.length,I=typeof T=="object"?T.prefix.length:h.length;return Po(I,x)};return YEe(e,!1,!1,t,n,i,s,o,c,bm(_),u,g)}function YEe(e,t,n,i,s,o,c,_,u,g,m,h){let S=[],T;for(let x of g){if(x===".")continue;let I=x.replace(/^\.\//,"")+((t||n)&&Jo(x,"/")?"*":""),D=m(x);if(D){let E=C2(I);if(!E)continue;let O=typeof E=="object"&&D8(E,i);O&&(T===void 0||h(I,T)===-1)&&(T=I,S=S.filter(B=>!B.matchedPattern)),(typeof E=="string"||T===void 0||h(I,T)!==1)&&S.push({matchedPattern:O,results:Eet(I,D,i,s,o,t,n,c,_,u).map(({name:B,kind:G,extension:$})=>$E(B,G,$))})}}return S.forEach(x=>x.results.forEach(I=>e.add(I))),T!==void 0}function Aet(e,t,n,i,s,o,c){let _=i.getTypeChecker(),u=i.getCompilerOptions(),{baseUrl:g,paths:m}=u,h=epe(),S=Bu(u);if(g){let I=na(Bn(s.getCurrentDirectory(),g));O3(e,I,c,i,s,o,!1,void 0,h)}if(m){let I=rO(u,s);XEe(h,e,I,c,i,s,o,m)}let T=eNe(e);for(let I of Met(e,T,_))h.add($E(I,"external module name",void 0));if(nNe(i,s,o,t,T,c,h),cL(S)){let I=!1;if(T===void 0)for(let D of Fet(s,t)){let E=$E(D,"external module name",void 0);h.has(E.name)||(I=!0,h.add(E))}if(!I){let D=D4(u),E=P4(u),O=!1,F=G=>{if(E&&!O){let $=Bn(G,"package.json");if(O=OE(s,$)){let K=tI($,s);x(K.imports,e,G,!1,!0)}}},B=G=>{let $=Bn(G,"node_modules");vL(s,$)&&O3(e,$,c,i,s,o,!1,void 0,h),F(G)};if(T&&D){let G=B;B=$=>{let K=Iu(e);K.shift();let U=K.shift();if(!U)return G($);if(Yi(U,"@")){let V=K.shift();if(!V)return G($);U=Bn(U,V)}if(E&&Yi(U,"#"))return F($);let me=Bn($,"node_modules",U),te=Bn(me,"package.json");if(OE(s,te)){let V=tI(te,s),ne=K.join("/")+(K.length&&p0(e)?"/":"");x(V.exports,ne,me,!0,!1);return}return G($)}}Pg(s,t,B)}}return ps(h.values());function x(I,D,E,O,F){if(typeof I!="object"||I===null)return;let B=bm(I),G=U0(u,n);YEe(h,O,F,D,E,c,i,s,o,B,$=>{let K=ZEe(I[$],G);if(K!==void 0)return Ux(Jo($,"/")&&Jo(K,"/")?K+"*":K)},pU)}}function ZEe(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!ks(e)){for(let n in e)if(n==="default"||t.includes(n)||kM(t,n)){let i=e[n];return ZEe(i,t)}}}function eNe(e){return ipe(e)?p0(e)?e:Yn(e):void 0}function Eet(e,t,n,i,s,o,c,_,u,g){let m=C2(e);if(!m)return qe;if(typeof m=="string")return S(e,"script");let h=WW(n,m.prefix);if(h===void 0)return Jo(e,"/*")?S(m.prefix,"directory"):ga(t,x=>{var I;return(I=tNe("",i,x,s,o,c,_,u,g))==null?void 0:I.map(({name:D,...E})=>({name:m.prefix+D+m.suffix,...E}))});return ga(t,T=>tNe(h,i,T,s,o,c,_,u,g));function S(T,x){return Yi(T,n)?[{name:Ky(T),kind:x,extension:void 0}]:qe}}function tNe(e,t,n,i,s,o,c,_,u){if(!_.readDirectory)return;let g=C2(n);if(g===void 0||ys(g))return;let m=d0(g.prefix),h=p0(g.prefix)?m:Yn(m),S=p0(g.prefix)?"":fl(m),T=ipe(e),x=T?p0(e)?e:Yn(e):void 0,I=()=>u.getCommonSourceDirectory(),D=!mk(u),E=c.getCompilerOptions().outDir,O=c.getCompilerOptions().declarationDir,F=T?Bn(h,S+x):h,B=na(Bn(t,F)),G=o&&E&&qz(B,D,E,I),$=o&&O&&qz(B,D,O,I),K=na(g.suffix),U=K&&tO("_"+K),me=K?Vz("_"+K):void 0,te=[U&&fy(K,U),...me?me.map(H=>fy(K,H)):[],K].filter(ys),V=K?te.map(H=>"**/*"+H):["./*"],ne=(s||o)&&Jo(n,"/*"),ie=oe(B);return G&&(ie=Ki(ie,oe(G))),$&&(ie=Ki(ie,oe($))),K||(ie=Ki(ie,de(B)),G&&(ie=Ki(ie,de(G))),$&&(ie=Ki(ie,de($)))),ie;function oe(H){let ve=T?H:El(H)+S;return Vi(t$(_,H,i.extensionsToSearch,void 0,V),Ge=>{let De=ye(Ge,ve);if(De){if(ipe(De))return rpe(Iu(rNe(De))[1]);let{name:se,extension:xe}=KEe(De,c,i,ne);return $E(se,"script",xe)}})}function de(H){return Vi(yL(_,H),ve=>ve==="node_modules"?void 0:rpe(ve))}function ye(H,ve){return po(te,Ge=>{let De=Net(na(H),ve,Ge);return De===void 0?void 0:rNe(De)})}}function Net(e,t,n){return Yi(e,t)&&Jo(e,n)?e.slice(t.length,e.length-n.length):void 0}function rNe(e){return e[0]===Fo?e.slice(1):e}function Met(e,t,n){let s=n.getAmbientModules().map(o=>rd(o.name)).filter(o=>Yi(o,e)&&!o.includes("*"));if(t!==void 0){let o=El(t);return s.map(c=>gP(c,o))}return s}function Ret(e,t,n,i,s){let o=n.getCompilerOptions(),c=ki(e,t),_=sh(e.text,c.pos),u=_&&On(_,D=>t>=D.pos&&t<=D.end);if(!u)return;let g=e.text.slice(u.pos,t),m=jet.exec(g);if(!m)return;let[,h,S,T]=m,x=Yn(e.path),I=S==="path"?O3(T,x,npe(o,0,e),n,i,s,!0,e.path):S==="types"?nNe(n,i,s,x,eNe(T),npe(o,1,e)):w.fail();return HEe(T,u.pos+h.length,ps(I.values()))}function nNe(e,t,n,i,s,o,c=epe()){let _=e.getCompilerOptions(),u=new Map,g=bL(()=>rE(_,t))||qe;for(let h of g)m(h);for(let h of r$(i,t)){let S=Bn(Yn(h),"node_modules/@types");m(S)}return c;function m(h){if(vL(t,h))for(let S of yL(t,h)){let T=xM(S);if(!(_.types&&!Ts(_.types,T)))if(s===void 0)u.has(T)||(c.add($E(T,"external module name",void 0)),u.set(T,!0));else{let x=Bn(h,S),I=SJ(s,T,cy(t));I!==void 0&&O3(I,x,o,e,t,n,!1,void 0,c)}}}}function Fet(e,t){if(!e.readFile||!e.fileExists)return qe;let n=[];for(let i of r$(t,e)){let s=tI(i,e);for(let o of Wet){let c=s[o];if(c)for(let _ in c)bo(c,_)&&!Yi(_,"@types/")&&n.push(_)}}return n}function Oet(e,t){let n=Math.max(e.lastIndexOf(Fo),e.lastIndexOf(j8)),i=n!==-1?n+1:0,s=e.length-i;return s===0||$_(e.substr(i,s),99)?void 0:pu(t+i,s)}function Let(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 jet=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\x03"]*)$/,Wet=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function ipe(e){return e.includes(Fo)}function Bet(e){return qs(e.parent)&&_l(e.parent.arguments)===e&&je(e.parent.expression)&&e.parent.expression.escapedText==="require"}var jo={};nt(jo,{Core:()=>gC,DefinitionKind:()=>uNe,EntryKind:()=>_Ne,ExportKind:()=>iNe,FindReferencesUse:()=>fNe,ImportExport:()=>sNe,createImportTracker:()=>spe,findModuleReferences:()=>aNe,findReferenceOrRenameEntries:()=>ett,findReferencedSymbols:()=>Xet,getContextNode:()=>$k,getExportInfo:()=>ape,getImplementationsAtPosition:()=>Zet,getImportOrExportSymbol:()=>lNe,getReferenceEntriesForNode:()=>dNe,isContextWithStartAndEndNode:()=>cpe,isDeclarationOfSymbol:()=>vNe,isWriteAccessForReference:()=>upe,toContextSpan:()=>lpe,toHighlightSpan:()=>ott,toReferenceEntry:()=>hNe,toRenameLocation:()=>rtt});function spe(e,t,n,i){let s=Uet(e,n,i);return(o,c,_)=>{let{directImports:u,indirectUsers:g}=zet(e,t,s,c,n,i);return{indirectUsers:g,...Jet(u,o,c.exportKind,n,_)}}}var iNe=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(iNe||{}),sNe=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(sNe||{});function zet(e,t,n,{exportingModuleSymbol:i,exportKind:s},o,c){let _=HI(),u=HI(),g=[],m=!!i.globalExports,h=m?void 0:[];return T(i),{directImports:g,indirectUsers:S()};function S(){if(m)return e;if(i.declarations)for(let F of i.declarations)mS(F)&&t.has(F.getSourceFile().fileName)&&E(F);return h.map(Fr)}function T(F){let B=O(F);if(B){for(let G of B)if(_(G))switch(c&&c.throwIfCancellationRequested(),G.kind){case 213:if(jf(G)){x(G);break}if(!m){let K=G.parent;if(s===2&&K.kind===260){let{name:U}=K;if(U.kind===80){g.push(U);break}}}break;case 80:break;case 271:D(G,G.name,ei(G,32),!1);break;case 272:case 351:g.push(G);let $=G.importClause&&G.importClause.namedBindings;$&&$.kind===274?D(G,$.name,!1,!0):!m&&fk(G)&&E(sj(G));break;case 278:G.exportClause?G.exportClause.kind===280?E(sj(G),!0):g.push(G):T(Qet(G,o));break;case 205:!m&&G.isTypeOf&&!G.qualifier&&I(G)&&E(G.getSourceFile(),!0),g.push(G);break;default:w.failBadSyntaxKind(G,"Unexpected import kind.")}}}function x(F){let B=gr(F,BH)||F.getSourceFile();E(B,!!I(F,!0))}function I(F,B=!1){return gr(F,G=>B&&BH(G)?"quit":od(G)&&pt(G.modifiers,R2))}function D(F,B,G,$){if(s===2)$||g.push(F);else if(!m){let K=sj(F);w.assert(K.kind===307||K.kind===267),G||Get(K,B,o)?E(K,!0):E(K)}}function E(F,B=!1){if(w.assert(!m),!u(F)||(h.push(F),!B))return;let $=o.getMergedSymbol(F.symbol);if(!$)return;w.assert(!!($.flags&1536));let K=O($);if(K)for(let U of K)Om(U)||E(sj(U),!0)}function O(F){return n.get(ua(F).toString())}}function Jet(e,t,n,i,s){let o=[],c=[];function _(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===271){ope(S)&&g(S.name);return}if(S.kind===80){g(S);return}if(S.kind===205){if(S.qualifier){let I=h_(S.qualifier);I.escapedText===Oc(t)&&c.push(I)}else n===2&&c.push(S.argument.literal);return}if(S.moduleSpecifier.kind!==11)return;if(S.kind===278){S.exportClause&&Fp(S.exportClause)&&m(S.exportClause);return}let{name:T,namedBindings:x}=S.importClause||{name:void 0,namedBindings:void 0};if(x)switch(x.kind){case 274:g(x.name);break;case 275:(n===0||n===1)&&m(x);break;default:w.assertNever(x)}if(T&&(n===1||n===2)&&(!s||T.escapedText===lL(t))){let I=i.getSymbolAtLocation(T);_(T,I)}}function g(S){n===2&&(!s||h(S.escapedText))&&_(S,i.getSymbolAtLocation(S))}function m(S){if(S)for(let T of S.elements){let{name:x,propertyName:I}=T;if(h(dS(I||x)))if(I)c.push(I),(!s||dS(x)===t.escapedName)&&_(x,i.getSymbolAtLocation(x));else{let D=T.kind===281&&T.propertyName?i.getExportSpecifierLocalTargetSymbol(T):i.getSymbolAtLocation(x);_(x,D)}}}function h(S){return S===t.escapedName||n!==0&&S==="default"}}function Get(e,t,n){let i=n.getSymbolAtLocation(t);return!!oNe(e,s=>{if(!Xc(s))return;let{exportClause:o,moduleSpecifier:c}=s;return!c&&o&&Fp(o)&&o.elements.some(_=>n.getExportSpecifierLocalTargetSymbol(_)===i)})}function aNe(e,t,n){var i;let s=[],o=e.getTypeChecker();for(let c of t){let _=n.valueDeclaration;if(_?.kind===307){for(let u of c.referencedFiles)e.getSourceFileFromReference(c,u)===_&&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===_.fileName&&s.push({kind:"reference",referencingFile:c,ref:u})}}cNe(c,(u,g)=>{o.getSymbolAtLocation(g)===n&&s.push(So(u)?{kind:"implicit",literal:g,referencingFile:c}:{kind:"import",literal:g})})}return s}function Uet(e,t,n){let i=new Map;for(let s of e)n&&n.throwIfCancellationRequested(),cNe(s,(o,c)=>{let _=t.getSymbolAtLocation(c);if(_){let u=ua(_).toString(),g=i.get(u);g||i.set(u,g=[]),g.push(o)}});return i}function oNe(e,t){return or(e.kind===307?e.statements:e.body.statements,n=>t(n)||BH(n)&&or(n.body&&n.body.statements,t))}function cNe(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(let n of e.imports)t(eA(n),n);else oNe(e,n=>{switch(n.kind){case 278:case 272:{let i=n;i.moduleSpecifier&&ya(i.moduleSpecifier)&&t(i,i.moduleSpecifier);break}case 271:{let i=n;ope(i)&&t(i,i.moduleReference.expression);break}}})}function lNe(e,t,n,i){return i?s():s()||o();function s(){var u;let{parent:g}=e,m=g.parent;if(t.exportSymbol)return g.kind===211?(u=t.declarations)!=null&&u.some(T=>T===g)&&vn(m)?S(m,!1):void 0:c(t.exportSymbol,_(g));{let T=qet(g,e);if(T&&ei(T,32))return Ol(T)&&T.moduleReference===e?i?void 0:{kind:0,symbol:n.getSymbolAtLocation(T.name)}:c(t,_(T));if(Dg(g))return c(t,0);if(Ho(g))return h(g);if(Ho(m))return h(m);if(vn(g))return S(g,!0);if(vn(m))return S(m,!0);if(Ek(g)||fG(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(Vc(T)){case 1:I=0;break;case 2:I=2;break;default:return}let D=x?n.getSymbolAtLocation(pJ(Zs(T.left,Oo))):t;return D&&c(D,I)}}function o(){if(!$et(e))return;let g=n.getImmediateAliasedSymbol(t);if(!g||(g=Het(g,n),g.escapedName==="export="&&(g=Vet(g,n),g===void 0)))return;let m=lL(g);if(m===void 0||m==="default"||m===t.escapedName)return{kind:0,symbol:g}}function c(u,g){let m=ape(u,g,n);return m&&{kind:1,symbol:u,exportInfo:m}}function _(u){return ei(u,2048)?1:0}}function Vet(e,t){var n,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);let s=w.checkDefined(e.valueDeclaration);if(Ho(s))return(n=Vn(s.expression,Jd))==null?void 0:n.symbol;if(vn(s))return(i=Vn(s.right,Jd))==null?void 0:i.symbol;if(Mi(s))return s.symbol}function qet(e,t){let n=oi(e)?e:Da(e)?Kx(e):void 0;return n?e.name!==t||BS(n.parent)?void 0:Lc(n.parent.parent)?n.parent.parent:void 0:e}function $et(e){let{parent:t}=e;switch(t.kind){case 271:return t.name===e&&ope(t);case 276:return!t.propertyName;case 273:case 274:return w.assert(t.name===e),!0;case 208:return un(e)&&yS(t.parent.parent);default:return!1}}function ape(e,t,n){let i=e.parent;if(!i)return;let s=n.getMergedSymbol(i);return r2(s)?{exportingModuleSymbol:s,exportKind:t}:void 0}function Het(e,t){if(e.declarations)for(let n of e.declarations){if(zu(n)&&!n.propertyName&&!n.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(n)||e;if(Nn(n)&&dh(n.expression)&&!ji(n.name))return t.getSymbolAtLocation(n);if(Eu(n)&&vn(n.parent.parent)&&Vc(n.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(n.name)}return e}function Qet(e,t){return t.getMergedSymbol(sj(e).symbol)}function sj(e){if(e.kind===213||e.kind===351)return e.getSourceFile();let{parent:t}=e;return t.kind===307?t:(w.assert(t.kind===268),Zs(t.parent,BH))}function BH(e){return e.kind===267&&e.name.kind===11}function ope(e){return e.moduleReference.kind===283&&e.moduleReference.expression.kind===11}var uNe=(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))(uNe||{}),_Ne=(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))(_Ne||{});function by(e,t=1){return{kind:t,node:e.name||e,context:Ket(e)}}function cpe(e){return e&&e.kind===void 0}function Ket(e){if(Ul(e))return $k(e);if(e.parent){if(!Ul(e.parent)&&!Ho(e.parent)){if(un(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&&Vc(n)!==0)return $k(n)}if(Hd(e.parent)||jS(e.parent))return e.parent.parent;if(Pk(e.parent)||z0(e.parent)||OP(e.parent))return e.parent;if(Ha(e)){let n=n4(e);if(n){let i=gr(n,s=>Ul(s)||Ii(s)||Fw(s));return Ul(i)?$k(i):i}}let t=gr(e,pa);return t?$k(t.parent):void 0}if(e.parent.name===e||lc(e.parent)||Ho(e.parent)||(b0(e.parent)||Da(e.parent))&&e.parent.propertyName===e||e.kind===90&&ei(e.parent,2080))return $k(e.parent)}}function $k(e){if(e)switch(e.kind){case 260:return!au(e.parent)||e.parent.declarations.length!==1?e:Lc(e.parent.parent)?e.parent.parent:nk(e.parent.parent)?$k(e.parent.parent):e.parent;case 208:return $k(e.parent.parent);case 276:return e.parent.parent.parent;case 281:case 274:return e.parent.parent;case 273:case 280:return e.parent;case 226:return $l(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return dv(e.parent)?$k(gr(e.parent,t=>vn(t)||nk(t))):e;case 255:return{start:On(e.getChildren(e.getSourceFile()),t=>t.kind===109),end:e.caseBlock};default:return e}}function lpe(e,t,n){if(!n)return;let i=cpe(n)?oj(n.start,t,n.end):oj(n,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}var fNe=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(fNe||{});function Xet(e,t,n,i,s){let o=W_(i,s),c={use:1},_=gC.getReferencedSymbolsForNode(s,o,e,n,t,c),u=e.getTypeChecker(),g=gC.getAdjustedNode(o,c),m=Yet(g)?u.getSymbolAtLocation(g):void 0;return!_||!_.length?void 0:Vi(_,({definition:h,references:S})=>h&&{definition:u.runWithCancellationToken(t,T=>ttt(h,T,o)),references:S.map(T=>ntt(T,m))})}function Yet(e){return e.kind===90||!!rA(e)||l4(e)||e.kind===137&&lc(e.parent)}function Zet(e,t,n,i,s){let o=W_(i,s),c,_=pNe(e,t,n,o,s);if(o.parent.kind===211||o.parent.kind===208||o.parent.kind===212||o.kind===108)c=_&&[..._];else if(_){let g=YN(_),m=new Set;for(;!g.isEmpty();){let h=g.dequeue();if(!nd(m,Ua(h.node)))continue;c=jr(c,h);let S=pNe(e,t,n,h.node,h.node.pos);S&&g.enqueue(...S)}}let u=e.getTypeChecker();return hr(c,g=>stt(g,u))}function pNe(e,t,n,i,s){if(i.kind===307)return;let o=e.getTypeChecker();if(i.parent.kind===304){let c=[];return gC.getReferenceEntriesForShorthandPropertyAssignment(i,o,_=>c.push(by(_))),c}else if(i.kind===108||H_(i.parent)){let c=o.getSymbolAtLocation(i);return c.valueDeclaration&&[by(c.valueDeclaration)]}else return dNe(s,i,e,n,t,{implementations:!0,use:1})}function ett(e,t,n,i,s,o,c){return hr(mNe(gC.getReferencedSymbolsForNode(s,i,e,n,t,o)),_=>c(_,i,e.getTypeChecker()))}function dNe(e,t,n,i,s,o={},c=new Set(i.map(_=>_.fileName))){return mNe(gC.getReferencedSymbolsForNode(e,t,n,i,s,o,c))}function mNe(e){return e&&ga(e,t=>t.references)}function ttt(e,t,n){let i=(()=>{switch(e.type){case 0:{let{symbol:m}=e,{displayParts:h,kind:S}=gNe(m,t,n),T=h.map(D=>D.text).join(""),x=m.declarations&&_l(m.declarations),I=x?vs(x)||x:n;return{...aj(I),name:T,kind:S,displayParts:h,context:$k(x)}}case 1:{let{node:m}=e;return{...aj(m),name:m.text,kind:"label",displayParts:[Y_(m.text,17)]}}case 2:{let{node:m}=e,h=sa(m.kind);return{...aj(m),name:h,kind:"keyword",displayParts:[{text:h,kind:"keyword"}]}}case 3:{let{node:m}=e,h=t.getSymbolAtLocation(m),S=h&&yv.getSymbolDisplayPartsDocumentationAndSymbolKind(t,h,m.getSourceFile(),Jk(m),m).displayParts||[cp("this")];return{...aj(m),name:"this",kind:"var",displayParts:S}}case 4:{let{node:m}=e;return{...aj(m),name:m.text,kind:"var",displayParts:[Y_(oc(m),8)]}}case 5:return{textSpan:mv(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[Y_(`"${e.reference.fileName}"`,8)]};default:return w.assertNever(e)}})(),{sourceFile:s,textSpan:o,name:c,kind:_,displayParts:u,context:g}=i;return{containerKind:"",containerName:"",fileName:s.fileName,kind:_,name:c,textSpan:o,displayParts:u,...lpe(o,s,g)}}function aj(e){let t=e.getSourceFile();return{sourceFile:t,textSpan:oj(pa(e)?e.expression:e,t)}}function gNe(e,t,n){let i=gC.getIntersectingMeaningFromDeclarations(n,e),s=e.declarations&&_l(e.declarations)||n,{displayParts:o,symbolKind:c}=yv.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,s.getSourceFile(),s,s,i);return{displayParts:o,kind:c}}function rtt(e,t,n,i,s){return{...zH(e),...i&&itt(e,t,n,s)}}function ntt(e,t){let n=hNe(e);return t?{...n,isDefinition:e.kind!==0&&vNe(e.node,t)}:n}function hNe(e){let t=zH(e);if(e.kind===0)return{...t,isWriteAccess:!1};let{kind:n,node:i}=e;return{...t,isWriteAccess:upe(i),isInString:n===2?!0:void 0}}function zH(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{let t=e.node.getSourceFile(),n=oj(e.node,t);return{textSpan:n,fileName:t.fileName,...lpe(n,t,e.context)}}}function itt(e,t,n,i){if(e.kind!==0&&(je(t)||Ha(t))){let{node:s,kind:o}=e,c=s.parent,_=t.text,u=Eu(c);if(u||c3(c)&&c.name===s&&c.dotDotDotToken===void 0){let g={prefixText:_+": "},m={suffixText:": "+_};if(o===3)return g;if(o===4)return m;if(u){let h=c.parent;return Sa(h)&&vn(h.parent)&&dh(h.parent.left)?g:m}else return g}else if(a_(c)&&!c.propertyName){let g=zu(t.parent)?n.getExportSpecifierLocalTargetSymbol(t.parent):n.getSymbolAtLocation(t);return Ts(g.declarations,c)?{prefixText:_+" as "}:cd}else if(zu(c)&&!c.propertyName)return t===e.node||n.getSymbolAtLocation(t)===n.getSymbolAtLocation(e.node)?{prefixText:_+" as "}:{suffixText:" as "+_}}if(e.kind!==0&&L_(e.node)&&Oo(e.node.parent)){let s=Lq(i);return{prefixText:s,suffixText:s}}return cd}function stt(e,t){let n=zH(e);if(e.kind!==0){let{node:i}=e;return{...n,...att(i,t)}}else return{...n,kind:"",displayParts:[]}}function att(e,t){let n=t.getSymbolAtLocation(Ul(e)&&e.name?e.name:e);return n?gNe(n,t,e):e.kind===210?{kind:"interface",displayParts:[Uu(21),cp("object literal"),Uu(22)]}:e.kind===231?{kind:"local class",displayParts:[Uu(21),cp("anonymous local class"),Uu(22)]}:{kind:QS(e),displayParts:[]}}function ott(e){let t=zH(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};let n=upe(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 oj(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===269&&(s=n.getFullStart()),Uc(i,s)}function yNe(e){return e.kind===0?e.textSpan:oj(e.node,e.node.getSourceFile())}function upe(e){let t=rA(e);return!!t&&ctt(t)||e.kind===90||v2(e)}function vNe(e,t){var n;if(!t)return!1;let i=rA(e)||(e.kind===90?e.parent:l4(e)||e.kind===137&&lc(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 ctt(e){if(e.flags&33554432)return!0;switch(e.kind){case 226:case 208:case 263:case 231:case 90:case 266:case 306:case 281:case 273:case 271:case 276:case 264:case 338:case 346:case 291:case 267:case 270:case 274:case 280:case 169:case 304:case 265:case 168:return!0;case 303:return!dv(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||BS(e.parent);case 173:case 171:case 348:case 341:return!1;default:return w.failBadSyntaxKind(e)}}var gC;(e=>{function t(Ye,Nt,ae,lt,Y,Ae={},Xe=new Set(lt.map(st=>st.fileName))){var st,Dt;if(Nt=n(Nt,Ae),Mi(Nt)){let on=aD.getReferenceAtPosition(Nt,Ye,ae);if(!on?.file)return;let Pe=ae.getTypeChecker().getMergedSymbol(on.file.symbol);if(Pe)return g(ae,Pe,!1,lt,Xe);let kt=ae.getFileIncludeReasons();return kt?[{definition:{type:5,reference:on.reference,file:Nt},references:s(on.file,kt,ae)||qe}]:void 0}if(!Ae.implementations){let on=h(Nt,lt,Y);if(on)return on}let Fe=ae.getTypeChecker(),St=Fe.getSymbolAtLocation(lc(Nt)&&Nt.parent.name||Nt);if(!St){if(!Ae.implementations&&Ha(Nt)){if(uL(Nt)){let on=ae.getFileIncludeReasons(),Pe=(Dt=(st=ae.getResolvedModuleFromModuleSpecifier(Nt))==null?void 0:st.resolvedModule)==null?void 0:Dt.resolvedFileName,kt=Pe?ae.getSourceFile(Pe):void 0;if(kt)return[{definition:{type:4,node:Nt},references:s(kt,on,ae)||qe}]}return Rn(Nt,lt,Fe,Y)}return}if(St.escapedName==="export=")return g(ae,St.parent,!1,lt,Xe);let vt=c(St,ae,lt,Y,Ae,Xe);if(vt&&!(St.flags&33554432))return vt;let Mt=o(Nt,St,Fe),Ke=Mt&&c(Mt,ae,lt,Y,Ae,Xe),Vt=S(St,Nt,lt,Xe,Fe,Y,Ae);return _(ae,vt,Vt,Ke)}e.getReferencedSymbolsForNode=t;function n(Ye,Nt){return Nt.use===1?Ye=Tq(Ye):Nt.use===2&&(Ye=eL(Ye)),Ye}e.getAdjustedNode=n;function i(Ye,Nt,ae,lt=new Set(ae.map(Y=>Y.fileName))){var Y,Ae;let Xe=(Y=Nt.getSourceFile(Ye))==null?void 0:Y.symbol;if(Xe)return((Ae=g(Nt,Xe,!1,ae,lt)[0])==null?void 0:Ae.references)||qe;let st=Nt.getFileIncludeReasons(),Dt=Nt.getSourceFile(Ye);return Dt&&st&&s(Dt,st,Nt)||qe}e.getReferencesForFileName=i;function s(Ye,Nt,ae){let lt,Y=Nt.get(Ye.path)||qe;for(let Ae of Y)if(i1(Ae)){let Xe=ae.getSourceFileByPath(Ae.file),st=vE(ae,Ae);WI(st)&&(lt=jr(lt,{kind:0,fileName:Xe.fileName,textSpan:mv(st)}))}return lt}function o(Ye,Nt,ae){if(Ye.parent&&eM(Ye.parent)){let lt=ae.getAliasedSymbol(Nt),Y=ae.getMergedSymbol(lt);if(lt!==Y)return Y}}function c(Ye,Nt,ae,lt,Y,Ae){let Xe=Ye.flags&1536&&Ye.declarations&&On(Ye.declarations,Mi);if(!Xe)return;let st=Ye.exports.get("export="),Dt=g(Nt,Ye,!!st,ae,Ae);if(!st||!Ae.has(Xe.fileName))return Dt;let Fe=Nt.getTypeChecker();return Ye=du(st,Fe),_(Nt,Dt,S(Ye,void 0,ae,Ae,Fe,lt,Y))}function _(Ye,...Nt){let ae;for(let lt of Nt)if(!(!lt||!lt.length)){if(!ae){ae=lt;continue}for(let Y of lt){if(!Y.definition||Y.definition.type!==0){ae.push(Y);continue}let Ae=Y.definition.symbol,Xe=Sc(ae,Dt=>!!Dt.definition&&Dt.definition.type===0&&Dt.definition.symbol===Ae);if(Xe===-1){ae.push(Y);continue}let st=ae[Xe];ae[Xe]={definition:st.definition,references:st.references.concat(Y.references).sort((Dt,Fe)=>{let St=u(Ye,Dt),vt=u(Ye,Fe);if(St!==vt)return Po(St,vt);let Mt=yNe(Dt),Ke=yNe(Fe);return Mt.start!==Ke.start?Po(Mt.start,Ke.start):Po(Mt.length,Ke.length)})}}}return ae}function u(Ye,Nt){let ae=Nt.kind===0?Ye.getSourceFile(Nt.fileName):Nt.node.getSourceFile();return Ye.getSourceFiles().indexOf(ae)}function g(Ye,Nt,ae,lt,Y){w.assert(!!Nt.valueDeclaration);let Ae=Vi(aNe(Ye,lt,Nt),st=>{if(st.kind==="import"){let Dt=st.literal.parent;if(lv(Dt)){let Fe=Zs(Dt.parent,Om);if(ae&&!Fe.qualifier)return}return by(st.literal)}else if(st.kind==="implicit"){let Dt=st.literal.text!==x0&&q2(st.referencingFile,Fe=>Fe.transformFlags&2?Wm(Fe)||Pk(Fe)||Hb(Fe)?Fe:void 0:"skip")||st.referencingFile.statements[0]||st.referencingFile;return by(Dt)}else return{kind:0,fileName:st.referencingFile.fileName,textSpan:mv(st.ref)}});if(Nt.declarations)for(let st of Nt.declarations)switch(st.kind){case 307:break;case 267:Y.has(st.getSourceFile().fileName)&&Ae.push(by(st.name));break;default:w.assert(!!(Nt.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}let Xe=Nt.exports.get("export=");if(Xe?.declarations)for(let st of Xe.declarations){let Dt=st.getSourceFile();if(Y.has(Dt.fileName)){let Fe=vn(st)&&Nn(st.left)?st.left.expression:Ho(st)?w.checkDefined(_o(st,95,Dt)):vs(st)||st;Ae.push(by(Fe))}}return Ae.length?[{definition:{type:0,symbol:Nt},references:Ae}]:qe}function m(Ye){return Ye.kind===148&&Gb(Ye.parent)&&Ye.parent.operator===148}function h(Ye,Nt,ae){if(DE(Ye.kind))return Ye.kind===116&&B2(Ye.parent)||Ye.kind===148&&!m(Ye)?void 0:Ge(Nt,Ye.kind,ae,Ye.kind===148?m:void 0);if(zw(Ye.parent)&&Ye.parent.name===Ye)return ve(Nt,ae);if(F2(Ye)&&Nc(Ye.parent))return[{definition:{type:2,node:Ye},references:[by(Ye)]}];if(e3(Ye)){let lt=H5(Ye.parent,Ye.text);return lt&&ye(lt.parent,lt)}else if(pq(Ye))return ye(Ye.parent,Ye);if(VI(Ye))return ns(Ye,Nt,ae);if(Ye.kind===108)return At(Ye)}function S(Ye,Nt,ae,lt,Y,Ae,Xe){let st=Nt&&I(Ye,Nt,Y,!xs(Xe))||Ye,Dt=Nt?Zn(Nt,st):7,Fe=[],St=new O(ae,lt,Nt?x(Nt):0,Y,Ae,Dt,Xe,Fe),vt=!xs(Xe)||!st.declarations?void 0:On(st.declarations,zu);if(vt)ct(vt.name,st,vt,St.createSearch(Nt,Ye,void 0),St,!0,!0);else if(Nt&&Nt.kind===90&&st.escapedName==="default"&&st.parent)Ie(Nt,st,St),F(Nt,st,{exportingModuleSymbol:st.parent,exportKind:1},St);else{let Mt=St.createSearch(Nt,st,void 0,{allSearchSymbols:Nt?ui(st,Nt,Y,Xe.use===2,!!Xe.providePrefixAndSuffixTextForRename,!!Xe.implementations):[st]});T(st,St,Mt)}return Fe}function T(Ye,Nt,ae){let lt=me(Ye);if(lt)se(lt,lt.getSourceFile(),ae,Nt,!(Mi(lt)&&!Ts(Nt.sourceFiles,lt)));else for(let Y of Nt.sourceFiles)Nt.cancellationToken.throwIfCancellationRequested(),K(Y,ae,Nt)}function x(Ye){switch(Ye.kind){case 176:case 137:return 1;case 80:if(ii(Ye.parent))return w.assert(Ye.parent.name===Ye),2;default:return 0}}function I(Ye,Nt,ae,lt){let{parent:Y}=Nt;return zu(Y)&<?le(Nt,Ye,Y,ae):po(Ye.declarations,Ae=>{if(!Ae.parent){if(Ye.flags&33554432)return;w.fail(`Unexpected symbol at ${w.formatSyntaxKind(Nt.kind)}: ${w.formatSymbol(Ye)}`)}return v_(Ae.parent)&&cv(Ae.parent.parent)?ae.getPropertyOfType(ae.getTypeFromTypeNode(Ae.parent.parent),Ye.name):void 0})}let D;(Ye=>{Ye[Ye.None=0]="None",Ye[Ye.Constructor=1]="Constructor",Ye[Ye.Class=2]="Class"})(D||(D={}));function E(Ye){if(!(Ye.flags&33555968))return;let Nt=Ye.declarations&&On(Ye.declarations,ae=>!Mi(ae)&&!nl(ae));return Nt&&Nt.symbol}class O{constructor(Nt,ae,lt,Y,Ae,Xe,st,Dt){this.sourceFiles=Nt,this.sourceFilesSet=ae,this.specialSearchKind=lt,this.checker=Y,this.cancellationToken=Ae,this.searchMeaning=Xe,this.options=st,this.result=Dt,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=HI(),this.markSeenReExportRHS=HI(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(Nt){return this.sourceFilesSet.has(Nt.fileName)}getImportSearches(Nt,ae){return this.importTracker||(this.importTracker=spe(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(Nt,ae,this.options.use===2)}createSearch(Nt,ae,lt,Y={}){let{text:Ae=rd(Oc(pA(ae)||E(ae)||ae)),allSearchSymbols:Xe=[ae]}=Y,st=gc(Ae),Dt=this.options.implementations&&Nt?xr(Nt,ae,this.checker):void 0;return{symbol:ae,comingFrom:lt,text:Ae,escapedText:st,parents:Dt,allSearchSymbols:Xe,includes:Fe=>Ts(Xe,Fe)}}referenceAdder(Nt){let ae=ua(Nt),lt=this.symbolIdToReferences[ae];return lt||(lt=this.symbolIdToReferences[ae]=[],this.result.push({definition:{type:0,symbol:Nt},references:lt})),(Y,Ae)=>lt.push(by(Y,Ae))}addStringOrCommentReference(Nt,ae){this.result.push({definition:void 0,references:[{kind:0,fileName:Nt,textSpan:ae}]})}markSearchedSymbols(Nt,ae){let lt=Ua(Nt),Y=this.sourceFileToSeenSymbols[lt]||(this.sourceFileToSeenSymbols[lt]=new Set),Ae=!1;for(let Xe of ae)Ae=Qy(Y,ua(Xe))||Ae;return Ae}}function F(Ye,Nt,ae,lt){let{importSearches:Y,singleReferences:Ae,indirectUsers:Xe}=lt.getImportSearches(Nt,ae);if(Ae.length){let st=lt.referenceAdder(Nt);for(let Dt of Ae)G(Dt,lt)&&st(Dt)}for(let[st,Dt]of Y)De(st.getSourceFile(),lt.createSearch(st,Dt,1),lt);if(Xe.length){let st;switch(ae.exportKind){case 0:st=lt.createSearch(Ye,Nt,1);break;case 1:st=lt.options.use===2?void 0:lt.createSearch(Ye,Nt,1,{text:"default"});break;case 2:break}if(st)for(let Dt of Xe)K(Dt,st,lt)}}function B(Ye,Nt,ae,lt,Y,Ae,Xe,st){let Dt=spe(Ye,new Set(Ye.map(Mt=>Mt.fileName)),Nt,ae),{importSearches:Fe,indirectUsers:St,singleReferences:vt}=Dt(lt,{exportKind:Xe?1:0,exportingModuleSymbol:Y},!1);for(let[Mt]of Fe)st(Mt);for(let Mt of vt)je(Mt)&&Om(Mt.parent)&&st(Mt);for(let Mt of St)for(let Ke of oe(Mt,Xe?"default":Ae)){let Vt=Nt.getSymbolAtLocation(Ke),on=pt(Vt?.declarations,Pe=>!!Vn(Pe,Ho));je(Ke)&&!b0(Ke.parent)&&(Vt===lt||on)&&st(Ke)}}e.eachExportReference=B;function G(Ye,Nt){return xe(Ye,Nt)?Nt.options.use!==2?!0:!je(Ye)&&!b0(Ye.parent)?!1:!(b0(Ye.parent)&&kg(Ye)):!1}function $(Ye,Nt){if(Ye.declarations)for(let ae of Ye.declarations){let lt=ae.getSourceFile();De(lt,Nt.createSearch(ae,Ye,0),Nt,Nt.includesSourceFile(lt))}}function K(Ye,Nt,ae){X$(Ye).get(Nt.escapedText)!==void 0&&De(Ye,Nt,ae)}function U(Ye,Nt){return dv(Ye.parent.parent)?Nt.getPropertySymbolOfDestructuringAssignment(Ye):void 0}function me(Ye){let{declarations:Nt,flags:ae,parent:lt,valueDeclaration:Y}=Ye;if(Y&&(Y.kind===218||Y.kind===231))return Y;if(!Nt)return;if(ae&8196){let st=On(Nt,Dt=>hf(Dt,2)||Zu(Dt));return st?Lb(st,263):void 0}if(Nt.some(c3))return;let Ae=lt&&!(Ye.flags&262144);if(Ae&&!(r2(lt)&&!lt.globalExports))return;let Xe;for(let st of Nt){let Dt=Jk(st);if(Xe&&Xe!==Dt||!Dt||Dt.kind===307&&!mf(Dt))return;if(Xe=Dt,Ao(Xe)){let Fe;for(;Fe=Cz(Xe);)Xe=Fe}}return Ae?Xe.getSourceFile():Xe}function te(Ye,Nt,ae,lt=ae){return V(Ye,Nt,ae,()=>!0,lt)||!1}e.isSymbolReferencedInFile=te;function V(Ye,Nt,ae,lt,Y=ae){let Ae=pf(Ye.parent,Ye.parent.parent)?Ea(Nt.getSymbolsOfParameterPropertyDeclaration(Ye.parent,Ye.text)):Nt.getSymbolAtLocation(Ye);if(Ae)for(let Xe of oe(ae,Ae.name,Y)){if(!je(Xe)||Xe===Ye||Xe.escapedText!==Ye.escapedText)continue;let st=Nt.getSymbolAtLocation(Xe);if(st===Ae||Nt.getShorthandAssignmentValueSymbol(Xe.parent)===Ae||zu(Xe.parent)&&le(Xe,st,Xe.parent,Nt)===Ae){let Dt=lt(Xe);if(Dt)return Dt}}}e.eachSymbolReferenceInFile=V;function ne(Ye,Nt){return An(oe(Nt,Ye),Y=>!!rA(Y)).reduce((Y,Ae)=>{let Xe=lt(Ae);return!pt(Y.declarationNames)||Xe===Y.depth?(Y.declarationNames.push(Ae),Y.depth=Xe):Xe<Y.depth&&(Y.declarationNames=[Ae],Y.depth=Xe),Y},{depth:1/0,declarationNames:[]}).declarationNames;function lt(Y){let Ae=0;for(;Y;)Y=Jk(Y),Ae++;return Ae}}e.getTopMostDeclarationNamesInFile=ne;function ie(Ye,Nt,ae,lt){if(!Ye.name||!je(Ye.name))return!1;let Y=w.checkDefined(ae.getSymbolAtLocation(Ye.name));for(let Ae of Nt)for(let Xe of oe(Ae,Y.name)){if(!je(Xe)||Xe===Ye.name||Xe.escapedText!==Ye.name.escapedText)continue;let st=$5(Xe),Dt=qs(st.parent)&&st.parent.expression===st?st.parent:void 0,Fe=ae.getSymbolAtLocation(Xe);if(Fe&&ae.getRootSymbols(Fe).some(St=>St===Y)&<(Xe,Dt))return!0}return!1}e.someSignatureUsage=ie;function oe(Ye,Nt,ae=Ye){return Vi(de(Ye,Nt,ae),lt=>{let Y=W_(Ye,lt);return Y===Ye?void 0:Y})}function de(Ye,Nt,ae=Ye){let lt=[];if(!Nt||!Nt.length)return lt;let Y=Ye.text,Ae=Y.length,Xe=Nt.length,st=Y.indexOf(Nt,ae.pos);for(;st>=0&&!(st>ae.end);){let Dt=st+Xe;(st===0||!ry(Y.charCodeAt(st-1),99))&&(Dt===Ae||!ry(Y.charCodeAt(Dt),99))&<.push(st),st=Y.indexOf(Nt,st+Xe+1)}return lt}function ye(Ye,Nt){let ae=Ye.getSourceFile(),lt=Nt.text,Y=Vi(oe(ae,lt,Ye),Ae=>Ae===Nt||e3(Ae)&&H5(Ae,lt)===Nt?by(Ae):void 0);return[{definition:{type:1,node:Nt},references:Y}]}function H(Ye,Nt){switch(Ye.kind){case 81:if(Kb(Ye.parent))return!0;case 80:return Ye.text.length===Nt.length;case 15:case 11:{let ae=Ye;return ae.text.length===Nt.length&&(Q5(ae)||hq(Ye)||kce(Ye)||qs(Ye.parent)&&uk(Ye.parent)&&Ye.parent.arguments[1]===Ye||b0(Ye.parent))}case 9:return Q5(Ye)&&Ye.text.length===Nt.length;case 90:return Nt.length===7;default:return!1}}function ve(Ye,Nt){let ae=ga(Ye,lt=>(Nt.throwIfCancellationRequested(),Vi(oe(lt,"meta",lt),Y=>{let Ae=Y.parent;if(zw(Ae))return by(Ae)})));return ae.length?[{definition:{type:2,node:ae[0].node},references:ae}]:void 0}function Ge(Ye,Nt,ae,lt){let Y=ga(Ye,Ae=>(ae.throwIfCancellationRequested(),Vi(oe(Ae,sa(Nt),Ae),Xe=>{if(Xe.kind===Nt&&(!lt||lt(Xe)))return by(Xe)})));return Y.length?[{definition:{type:2,node:Y[0].node},references:Y}]:void 0}function De(Ye,Nt,ae,lt=!0){return ae.cancellationToken.throwIfCancellationRequested(),se(Ye,Ye,Nt,ae,lt)}function se(Ye,Nt,ae,lt,Y){if(lt.markSearchedSymbols(Nt,ae.allSearchSymbols))for(let Ae of de(Nt,ae.text,Ye))_e(Nt,Ae,ae,lt,Y)}function xe(Ye,Nt){return!!(zk(Ye)&Nt.searchMeaning)}function _e(Ye,Nt,ae,lt,Y){let Ae=W_(Ye,Nt);if(!H(Ae,ae.text)){!lt.options.implementations&&(lt.options.findInStrings&&iC(Ye,Nt)||lt.options.findInComments&&Oce(Ye,Nt))&<.addStringOrCommentReference(Ye.fileName,pu(Nt,ae.text.length));return}if(!xe(Ae,lt))return;let Xe=lt.checker.getSymbolAtLocation(Ae);if(!Xe)return;let st=Ae.parent;if(a_(st)&&st.propertyName===Ae)return;if(zu(st)){w.assert(Ae.kind===80||Ae.kind===11),ct(Ae,Xe,st,ae,lt,Y);return}if(LP(st)&&st.isNameFirst&&st.typeExpression&&Ak(st.typeExpression.type)&&st.typeExpression.type.jsDocPropertyTags&&Dr(st.typeExpression.type.jsDocPropertyTags)){tt(st.typeExpression.type.jsDocPropertyTags,Ae,ae,lt);return}let Dt=Zr(ae,Xe,Ae,lt);if(!Dt){Ne(Xe,ae,lt);return}switch(lt.specialSearchKind){case 0:Y&&Ie(Ae,Dt,lt);break;case 1:Ce(Ae,Ye,ae,lt);break;case 2:Ve(Ae,ae,lt);break;default:w.assertNever(lt.specialSearchKind)}un(Ae)&&Da(Ae.parent)&&yS(Ae.parent.parent.parent)&&(Xe=Ae.parent.symbol,!Xe)||ee(Ae,Xe,ae,lt)}function tt(Ye,Nt,ae,lt){let Y=lt.referenceAdder(ae.symbol);Ie(Nt,ae.symbol,lt),or(Ye,Ae=>{y_(Ae.name)&&Y(Ae.name.left)})}function ct(Ye,Nt,ae,lt,Y,Ae,Xe){w.assert(!Xe||!!Y.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");let{parent:st,propertyName:Dt,name:Fe}=ae,St=st.parent,vt=le(Ye,Nt,ae,Y.checker);if(!Xe&&!lt.includes(vt))return;if(Dt?Ye===Dt?(St.moduleSpecifier||Mt(),Ae&&Y.options.use!==2&&Y.markSeenReExportRHS(Fe)&&Ie(Fe,w.checkDefined(ae.symbol),Y)):Y.markSeenReExportRHS(Ye)&&Mt():Y.options.use===2&&kg(Fe)||Mt(),!xs(Y.options)||Xe){let Vt=kg(Ye)||kg(ae.name)?1:0,on=w.checkDefined(ae.symbol),Pe=ape(on,Vt,Y.checker);Pe&&F(Ye,on,Pe,Y)}if(lt.comingFrom!==1&&St.moduleSpecifier&&!Dt&&!xs(Y.options)){let Ke=Y.checker.getExportSpecifierLocalTargetSymbol(ae);Ke&&$(Ke,Y)}function Mt(){Ae&&Ie(Ye,vt,Y)}}function le(Ye,Nt,ae,lt){return Je(Ye,ae)&<.getExportSpecifierLocalTargetSymbol(ae)||Nt}function Je(Ye,Nt){let{parent:ae,propertyName:lt,name:Y}=Nt;return w.assert(lt===Ye||Y===Ye),lt?lt===Ye:!ae.parent.moduleSpecifier}function ee(Ye,Nt,ae,lt){let Y=lNe(Ye,Nt,lt.checker,ae.comingFrom===1);if(!Y)return;let{symbol:Ae}=Y;Y.kind===0?xs(lt.options)||$(Ae,lt):F(Ye,Ae,Y.exportInfo,lt)}function Ne({flags:Ye,valueDeclaration:Nt},ae,lt){let Y=lt.checker.getShorthandAssignmentValueSymbol(Nt),Ae=Nt&&vs(Nt);!(Ye&33554432)&&Ae&&ae.includes(Y)&&Ie(Ae,Y,lt)}function Ie(Ye,Nt,ae){let{kind:lt,symbol:Y}="kind"in Nt?Nt:{kind:void 0,symbol:Nt};if(ae.options.use===2&&Ye.kind===90)return;let Ae=ae.referenceAdder(Y);ae.options.implementations?$t(Ye,Ae,ae):Ae(Ye,lt)}function Ce(Ye,Nt,ae,lt){xE(Ye)&&Ie(Ye,ae.symbol,lt);let Y=()=>lt.referenceAdder(ae.symbol);if(ii(Ye.parent))w.assert(Ye.kind===90||Ye.parent.name===Ye),bt(ae.symbol,Nt,Y());else{let Ae=oa(Ye);Ae&&(ur(Ae,Y()),_t(Ae,lt))}}function Ve(Ye,Nt,ae){Ie(Ye,Nt.symbol,ae);let lt=Ye.parent;if(ae.options.use===2||!ii(lt))return;w.assert(lt.name===Ye);let Y=ae.referenceAdder(Nt.symbol);for(let Ae of lt.members)Zx(Ae)&&Ks(Ae)&&Ae.body&&Ae.body.forEachChild(function Xe(st){st.kind===110?Y(st):!Ns(st)&&!ii(st)&&st.forEachChild(Xe)})}function bt(Ye,Nt,ae){let lt=zt(Ye);if(lt&<.declarations)for(let Y of lt.declarations){let Ae=_o(Y,137,Nt);w.assert(Y.kind===176&&!!Ae),ae(Ae)}Ye.exports&&Ye.exports.forEach(Y=>{let Ae=Y.valueDeclaration;if(Ae&&Ae.kind===174){let Xe=Ae.body;Xe&&Rs(Xe,110,st=>{xE(st)&&ae(st)})}})}function zt(Ye){return Ye.members&&Ye.members.get("__constructor")}function ur(Ye,Nt){let ae=zt(Ye.symbol);if(ae&&ae.declarations)for(let lt of ae.declarations){w.assert(lt.kind===176);let Y=lt.body;Y&&Rs(Y,108,Ae=>{uq(Ae)&&Nt(Ae)})}}function Or(Ye){return!!zt(Ye.symbol)}function _t(Ye,Nt){if(Or(Ye))return;let ae=Ye.symbol,lt=Nt.createSearch(void 0,ae,void 0);T(ae,Nt,lt)}function $t(Ye,Nt,ae){if(Cg(Ye)&&Xn(Ye.parent)){Nt(Ye);return}if(Ye.kind!==80)return;Ye.parent.kind===304&&Pi(Ye,ae.checker,Nt);let lt=Hr(Ye);if(lt){Nt(lt);return}let Y=gr(Ye,st=>!y_(st.parent)&&!di(st.parent)&&!uS(st.parent)),Ae=Y.parent;if(_F(Ae)&&Ae.type===Y&&ae.markSeenContainingTypeReference(Ae))if(Yy(Ae))Xe(Ae.initializer);else if(Ns(Ae)&&Ae.body){let st=Ae.body;st.kind===241?D0(st,Dt=>{Dt.expression&&Xe(Dt.expression)}):Xe(st)}else(fS(Ae)||mI(Ae))&&Xe(Ae.expression);function Xe(st){hi(st)&&Nt(st)}}function Hr(Ye){return je(Ye)||Nn(Ye)?Hr(Ye.parent):py(Ye)?Vn(Ye.parent.parent,uf(ii,hu)):void 0}function hi(Ye){switch(Ye.kind){case 217:return hi(Ye.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function _s(Ye,Nt,ae,lt){if(Ye===Nt)return!0;let Y=ua(Ye)+","+ua(Nt),Ae=ae.get(Y);if(Ae!==void 0)return Ae;ae.set(Y,!1);let Xe=!!Ye.declarations&&Ye.declarations.some(st=>nA(st).some(Dt=>{let Fe=lt.getTypeAtLocation(Dt);return!!Fe&&!!Fe.symbol&&_s(Fe.symbol,Nt,ae,lt)}));return ae.set(Y,Xe),Xe}function At(Ye){let Nt=J6(Ye,!1);if(!Nt)return;let ae=256;switch(Nt.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:ae&=tv(Nt),Nt=Nt.parent;break;default:return}let lt=Nt.getSourceFile(),Y=Vi(oe(lt,"super",Nt),Ae=>{if(Ae.kind!==108)return;let Xe=J6(Ae,!1);return Xe&&Ks(Xe)===!!ae&&Xe.parent.symbol===Nt.symbol?by(Ae):void 0});return[{definition:{type:0,symbol:Nt.symbol},references:Y}]}function zn(Ye){return Ye.kind===80&&Ye.parent.kind===169&&Ye.parent.name===Ye}function ns(Ye,Nt,ae){let lt=t_(Ye,!1,!1),Y=256;switch(lt.kind){case 174:case 173:if(ed(lt)){Y&=tv(lt),lt=lt.parent;break}case 172:case 171:case 176:case 177:case 178:Y&=tv(lt),lt=lt.parent;break;case 307:if(xl(lt)||zn(Ye))return;case 262:case 218:break;default:return}let Ae=ga(lt.kind===307?Nt:[lt.getSourceFile()],st=>(ae.throwIfCancellationRequested(),oe(st,"this",Mi(lt)?st:lt).filter(Dt=>{if(!VI(Dt))return!1;let Fe=t_(Dt,!1,!1);if(!Jd(Fe))return!1;switch(lt.kind){case 218:case 262:return lt.symbol===Fe.symbol;case 174:case 173:return ed(lt)&<.symbol===Fe.symbol;case 231:case 263:case 210:return Fe.parent&&Jd(Fe.parent)&<.symbol===Fe.parent.symbol&&Ks(Fe)===!!Y;case 307:return Fe.kind===307&&!xl(Fe)&&!zn(Dt)}}))).map(st=>by(st));return[{definition:{type:3,node:po(Ae,st=>Bi(st.node.parent)?st.node:void 0)||Ye},references:Ae}]}function Rn(Ye,Nt,ae,lt){let Y=Z5(Ye,ae),Ae=ga(Nt,Xe=>(lt.throwIfCancellationRequested(),Vi(oe(Xe,Ye.text),st=>{if(Ha(st)&&st.text===Ye.text)if(Y){let Dt=Z5(st,ae);if(Y!==ae.getStringType()&&(Y===Dt||hn(st,ae)))return by(st,2)}else return Tk(st)&&!hk(st,Xe)?void 0:by(st,2)})));return[{definition:{type:4,node:Ye},references:Ae}]}function hn(Ye,Nt){if(s_(Ye.parent))return Nt.getPropertyOfType(Nt.getTypeAtLocation(Ye.parent.parent),Ye.text)}function ui(Ye,Nt,ae,lt,Y,Ae){let Xe=[];return Ue(Ye,Nt,ae,lt,!(lt&&Y),(st,Dt,Fe)=>{Fe&&sr(Ye)!==sr(Fe)&&(Fe=void 0),Xe.push(Fe||Dt||st)},()=>!Ae),Xe}function Ue(Ye,Nt,ae,lt,Y,Ae,Xe){let st=I3(Nt);if(st){let Vt=ae.getShorthandAssignmentValueSymbol(Nt.parent);if(Vt&<)return Ae(Vt,void 0,void 0,3);let on=ae.getContextualType(st.parent),Pe=on&&po($L(st,ae,on,!0),Re=>Mt(Re,4));if(Pe)return Pe;let kt=U(Nt,ae),pe=kt&&Ae(kt,void 0,void 0,4);if(pe)return pe;let j=Vt&&Ae(Vt,void 0,void 0,3);if(j)return j}let Dt=o(Nt,Ye,ae);if(Dt){let Vt=Ae(Dt,void 0,void 0,1);if(Vt)return Vt}let Fe=Mt(Ye);if(Fe)return Fe;if(Ye.valueDeclaration&&pf(Ye.valueDeclaration,Ye.valueDeclaration.parent)){let Vt=ae.getSymbolsOfParameterPropertyDeclaration(Zs(Ye.valueDeclaration,Bi),Ye.name);return w.assert(Vt.length===2&&!!(Vt[0].flags&1)&&!!(Vt[1].flags&4)),Mt(Ye.flags&1?Vt[1]:Vt[0])}let St=Yo(Ye,281);if(!lt||St&&!St.propertyName){let Vt=St&&ae.getExportSpecifierLocalTargetSymbol(St);if(Vt){let on=Ae(Vt,void 0,void 0,1);if(on)return on}}if(!lt){let Vt;return Y?Vt=c3(Nt.parent)?_L(ae,Nt.parent):void 0:Vt=Ke(Ye,ae),Vt&&Mt(Vt,4)}if(w.assert(lt),Y){let Vt=Ke(Ye,ae);return Vt&&Mt(Vt,4)}function Mt(Vt,on){return po(ae.getRootSymbols(Vt),Pe=>Ae(Vt,Pe,void 0,on)||(Pe.parent&&Pe.parent.flags&96&&Xe(Pe)?ht(Pe.parent,Pe.name,ae,kt=>Ae(Vt,Pe,kt,on)):void 0))}function Ke(Vt,on){let Pe=Yo(Vt,208);if(Pe&&c3(Pe))return _L(on,Pe)}}function ht(Ye,Nt,ae,lt){let Y=new Set;return Ae(Ye);function Ae(Xe){if(!(!(Xe.flags&96)||!nd(Y,Xe)))return po(Xe.declarations,st=>po(nA(st),Dt=>{let Fe=ae.getTypeAtLocation(Dt),St=Fe&&Fe.symbol&&ae.getPropertyOfType(Fe,Nt);return Fe&&St&&(po(ae.getRootSymbols(St),lt)||Ae(Fe.symbol))}))}}function sr(Ye){return Ye.valueDeclaration?!!(r_(Ye.valueDeclaration)&256):!1}function Zr(Ye,Nt,ae,lt){let{checker:Y}=lt;return Ue(Nt,ae,Y,!1,lt.options.use!==2||!!lt.options.providePrefixAndSuffixTextForRename,(Ae,Xe,st,Dt)=>(st&&sr(Nt)!==sr(st)&&(st=void 0),Ye.includes(st||Xe||Ae)?{symbol:Xe&&!(kc(Ae)&6)?Xe:Ae,kind:Dt}:void 0),Ae=>!(Ye.parents&&!Ye.parents.some(Xe=>_s(Ae.parent,Xe,lt.inheritsFromCache,Y))))}function Zn(Ye,Nt){let ae=zk(Ye),{declarations:lt}=Nt;if(lt){let Y;do{Y=ae;for(let Ae of lt){let Xe=V5(Ae);Xe&ae&&(ae|=Xe)}}while(ae!==Y)}return ae}e.getIntersectingMeaningFromDeclarations=Zn;function Xn(Ye){return Ye.flags&33554432?!(hu(Ye)||sd(Ye)):$P(Ye)?Yy(Ye):xo(Ye)?!!Ye.body:ii(Ye)||w6(Ye)}function Pi(Ye,Nt,ae){let lt=Nt.getSymbolAtLocation(Ye),Y=Nt.getShorthandAssignmentValueSymbol(lt.valueDeclaration);if(Y)for(let Ae of Y.getDeclarations())V5(Ae)&1&&ae(Ae)}e.getReferenceEntriesForShorthandPropertyAssignment=Pi;function Rs(Ye,Nt,ae){Es(Ye,lt=>{lt.kind===Nt&&ae(lt),Rs(lt,Nt,ae)})}function oa(Ye){return eJ($5(Ye).parent)}function xr(Ye,Nt,ae){let lt=UI(Ye)?Ye.parent:void 0,Y=lt&&ae.getTypeAtLocation(lt.expression),Ae=Vi(Y&&(Y.isUnionOrIntersection()?Y.types:Y.symbol===Nt.parent?void 0:[Y]),Xe=>Xe.symbol&&Xe.symbol.flags&96?Xe.symbol:void 0);return Ae.length===0?void 0:Ae}function xs(Ye){return Ye.use===2&&Ye.providePrefixAndSuffixTextForRename}})(gC||(gC={}));var aD={};nt(aD,{createDefinitionInfo:()=>j3,getDefinitionAndBoundSpan:()=>mtt,getDefinitionAtPosition:()=>bNe,getReferenceAtPosition:()=>TNe,getTypeDefinitionAtPosition:()=>ptt});function bNe(e,t,n,i,s){var o;let c=TNe(t,n,e),_=c&&[btt(c.reference.fileName,c.fileName,c.unverified)]||qe;if(c?.file)return _;let u=W_(t,n);if(u===t)return;let{parent:g}=u,m=e.getTypeChecker();if(u.kind===164||je(u)&&f7(g)&&g.tagName===u){let E=utt(m,u);if(E!==void 0||u.kind!==164)return E||qe}if(e3(u)){let E=H5(u.parent,u.text);return E?[_pe(m,E,"label",u.text,void 0)]:void 0}switch(u.kind){case 90:if(!qA(u.parent))break;case 84:let E=gr(u.parent,UA);if(E)return[vtt(E,t)];break}let h;switch(u.kind){case 107:case 135:case 127:h=xo;let E=gr(u,h);return E?[ppe(m,E)]:void 0}if(F2(u)&&Nc(u.parent)){let E=u.parent.parent,{symbol:O,failedAliasResolution:F}=JH(E,m,s),B=An(E.members,Nc),G=O?m.symbolToString(O,E):"",$=u.getSourceFile();return hr(B,K=>{let{pos:U}=Mm(K);return U=ha($.text,U),_pe(m,K,"constructor","static {}",G,!1,F,{start:U,length:6})})}let{symbol:S,failedAliasResolution:T}=JH(u,m,s),x=u;if(i&&T){let E=or([u,...S?.declarations||qe],F=>gr(F,xte)),O=E&&l2(E);O&&({symbol:S,failedAliasResolution:T}=JH(O,m,s),x=O)}if(!S&&uL(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:pu(0,0),failedAliasResolution:T,isAmbient:Ll(E.resolvedFileName),unverified:x!==u}]}if(la(u)&&(rl(g)||Gl(g))&&(S=g.symbol),!S)return Ki(_,gtt(u,m));if(i&&Oi(S.declarations,E=>E.getSourceFile().fileName===t.fileName))return;let I=Ttt(m,u);if(I&&!(Wu(u.parent)&&ktt(I))){let E=ppe(m,I,T),O=B=>B!==I;if(m.getRootSymbols(S).some(B=>ltt(B,I))){if(!lc(I))return[E];O=B=>B!==I&&(gl(B)||ml(B))}let F=HE(m,S,u,T,O)||qe;return u.kind===108?[E,...F]:[...F,E]}if(u.parent.kind===304){let E=m.getShorthandAssignmentValueSymbol(S.valueDeclaration),O=E?.declarations?E.declarations.map(F=>j3(F,m,E,u,!1,T)):qe;return Ki(O,SNe(m,u))}if(tl(u)&&Da(g)&&np(g.parent)&&u===(g.propertyName||g.name)){let E=o3(u),O=m.getTypeAtLocation(g.parent);return E===void 0?qe:ga(O.isUnion()?O.types:[O],F=>{let B=F.getProperty(E);return B&&HE(m,B,u)})}let D=SNe(m,u);return Ki(_,D.length?D:HE(m,S,u,T))}function ltt(e,t){var n;return e===t.symbol||e===t.symbol.parent||ql(t.parent)||!_S(t.parent)&&e===((n=Vn(t.parent,Jd))==null?void 0:n.symbol)}function SNe(e,t){let n=I3(t);if(n){let i=n&&e.getContextualType(n.parent);if(i)return ga($L(n,e,i,!1),s=>HE(e,s,t))}return qe}function utt(e,t){let n=gr(t,rl);if(!(n&&n.name))return;let i=gr(n,ii);if(!i)return;let s=Dm(i);if(!s)return;let o=Ka(s.expression),c=ml(o)?o.symbol:e.getSymbolAtLocation(o);if(!c)return;let _=Li(o2(n.name)),u=Tl(n)?e.getPropertyOfType(e.getTypeOfSymbol(c),_):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(c),_);if(u)return HE(e,u,t)}function TNe(e,t,n){var i,s;let o=W3(e.referencedFiles,t);if(o){let u=n.getSourceFileFromReference(e,o);return u&&{reference:o,fileName:u.fileName,file:u,unverified:!1}}let c=W3(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 _=W3(e.libReferenceDirectives,t);if(_){let u=n.getLibFileFromReference(_);return u&&{reference:_,fileName:u.fileName,file:u,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){let u=$I(e,t),g;if(uL(u)&&Jl(u.text)&&(g=n.getResolvedModuleFromModuleSpecifier(u,e))){let m=(s=g.resolvedModule)==null?void 0:s.resolvedFileName,h=m||d0(Yn(e.fileName),u.text);return{file:n.getSourceFile(h),fileName:h,reference:{pos:u.getStart(),end:u.getEnd(),fileName:u.text},unverified:!m}}}}var kNe=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"]);function _tt(e,t){let n=t.symbol.name;if(!kNe.has(n))return!1;let i=e.resolveName(n,void 0,788968,!1);return!!i&&i===t.target.symbol}function xNe(e,t){if(!t.aliasSymbol)return!1;let n=t.aliasSymbol.name;if(!kNe.has(n))return!1;let i=e.resolveName(n,void 0,788968,!1);return!!i&&i===t.aliasSymbol}function ftt(e,t,n,i){var s,o;if(Mn(t)&4&&_tt(e,t))return L3(e.getTypeArguments(t)[0],e,n,i);if(xNe(e,t)&&t.aliasTypeArguments)return L3(t.aliasTypeArguments[0],e,n,i);if(Mn(t)&32&&t.target&&xNe(e,t.target)){let c=(o=(s=t.aliasSymbol)==null?void 0:s.declarations)==null?void 0:o[0];if(c&&sd(c)&&yf(c.type)&&c.type.typeArguments)return L3(e.getTypeAtLocation(c.type.typeArguments[0]),e,n,i)}return[]}function ptt(e,t,n){let i=W_(t,n);if(i===t)return;if(zw(i.parent)&&i.parent.name===i)return L3(e.getTypeAtLocation(i.parent),e,i.parent,!1);let{symbol:s,failedAliasResolution:o}=JH(i,e,!1);if(la(i)&&(rl(i.parent)||Gl(i.parent))&&(s=i.parent.symbol,o=!1),!s)return;let c=e.getTypeOfSymbolAtLocation(s,i),_=dtt(s,c,e),u=_&&L3(_,e,i,o),[g,m]=u&&u.length!==0?[_,u]:[c,L3(c,e,i,o)];return m.length?[...ftt(e,g,i,o),...m]:!(s.flags&111551)&&s.flags&788968?HE(e,du(s,e),i,o):void 0}function L3(e,t,n,i){return ga(e.isUnion()&&!(e.flags&32)?e.types:[e],s=>s.symbol&&HE(t,s.symbol,n,i))}function dtt(e,t,n){if(t.symbol===e||e.valueDeclaration&&t.symbol&&oi(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){let i=t.getCallSignatures();if(i.length===1)return n.getReturnTypeOfSignature(Ea(i))}}function mtt(e,t,n){let i=bNe(e,t,n);if(!i||i.length===0)return;let s=W3(t.referencedFiles,n)||W3(t.typeReferenceDirectives,n)||W3(t.libReferenceDirectives,n);if(s)return{definitions:i,textSpan:mv(s)};let o=W_(t,n),c=pu(o.getStart(),o.getWidth());return{definitions:i,textSpan:c}}function gtt(e,t){return Vi(t.getIndexInfosAtLocation(e),n=>n.declaration&&ppe(t,n.declaration))}function JH(e,t,n){let i=t.getSymbolAtLocation(e),s=!1;if(i?.declarations&&i.flags&2097152&&!n&&htt(e,i.declarations[0])){let o=t.getAliasedSymbol(i);if(o.declarations)return{symbol:o};s=!0}return{symbol:i,failedAliasResolution:s}}function htt(e,t){return e.kind!==80&&(e.kind!==11||!b0(e.parent))?!1:e.parent===t?!0:t.kind!==274}function ytt(e){if(!YP(e))return!1;let t=gr(e,n=>ql(n)?!0:YP(n)?!1:"quit");return!!t&&Vc(t)===5}function HE(e,t,n,i,s){let o=s!==void 0?An(t.declarations,s):t.declarations,c=!s&&(g()||m());if(c)return c;let _=An(o,S=>!ytt(S)),u=pt(_)?_:o;return hr(u,S=>j3(S,e,t,n,!1,i));function g(){if(t.flags&32&&!(t.flags&19)&&(xE(n)||n.kind===137)){let S=On(o,ii);return S&&h(S.members,!0)}}function m(){return _q(n)||yq(n)?h(o,!1):void 0}function h(S,T){if(!S)return;let x=S.filter(T?lc:Ns),I=x.filter(D=>!!D.body);return x.length?I.length!==0?I.map(D=>j3(D,e,t,n)):[j3(xa(x),e,t,n,!1,i)]:void 0}}function j3(e,t,n,i,s,o){let c=t.symbolToString(n),_=yv.getSymbolKind(t,n,i),u=n.parent?t.symbolToString(n.parent,i):"";return _pe(t,e,_,c,u,s,o)}function _pe(e,t,n,i,s,o,c,_){let u=t.getSourceFile();if(!_){let g=vs(t)||t;_=k_(g,u)}return{fileName:u.fileName,textSpan:_,kind:n,name:i,containerKind:void 0,containerName:s,...jo.toContextSpan(_,u,jo.getContextNode(t)),isLocal:!fpe(e,t),isAmbient:!!(t.flags&33554432),unverified:o,failedAliasResolution:c}}function vtt(e,t){let n=jo.getContextNode(e),i=k_(cpe(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 fpe(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(Yy(t.parent)&&t.parent.initializer===t)return fpe(e,t.parent);switch(t.kind){case 172:case 177:case 178:case 174:if(hf(t,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return fpe(e,t.parent);default:return!1}}function ppe(e,t,n){return j3(t,e,t.symbol,t,!1,n)}function W3(e,t){return On(e,n=>_6(n,t))}function btt(e,t,n){return{fileName:t,textSpan:Uc(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:n}}function Stt(e){let t=gr(e,i=>!UI(i)),n=t?.parent;return n&&_S(n)&&OF(n)===t?n:void 0}function Ttt(e,t){let n=Stt(t),i=n&&e.getResolvedSignature(n);return Vn(i&&i.declaration,s=>Ns(s)&&!Ig(s))}function ktt(e){switch(e.kind){case 176:case 185:case 179:case 180:return!0;default:return!1}}var GH={};nt(GH,{provideInlayHints:()=>Itt});var xtt=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`);function Ctt(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function wtt(e){return e.includeInlayParameterNameHints==="literals"}function dpe(e){return e.interactiveInlayHints===!0}function Itt(e){let{file:t,program:n,span:i,cancellationToken:s,preferences:o}=e,c=t.text,_=n.getCompilerOptions(),u=Tf(t,o),g=n.getTypeChecker(),m=[];return h(t),m;function h(De){if(!(!De||De.getFullWidth()===0)){switch(De.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:s.throwIfCancellationRequested()}if(f6(i,De.pos,De.getFullWidth())&&!(di(De)&&!py(De)))return o.includeInlayVariableTypeHints&&oi(De)||o.includeInlayPropertyDeclarationTypeHints&&ds(De)?O(De):o.includeInlayEnumMemberValueHints&&_v(De)?D(De):Ctt(o)&&(qs(De)||OS(De))?F(De):(o.includeInlayFunctionParameterTypeHints&&xo(De)&&jO(De)&&me(De),o.includeInlayFunctionLikeReturnTypeHints&&S(De)&&K(De)),Es(De,h)}}function S(De){return Lo(De)||Ao(De)||jc(De)||xc(De)||Mp(De)}function T(De,se,xe,_e){let tt=`${_e?"...":""}${De}`,ct;dpe(o)?(ct=[Ge(tt,se),{text:":"}],tt=""):tt+=":",m.push({text:tt,position:xe,kind:"Parameter",whitespaceAfter:!0,displayParts:ct})}function x(De,se){m.push({text:typeof De=="string"?`: ${De}`:"",displayParts:typeof De=="string"?void 0:[{text:": "},...De],position:se,kind:"Type",whitespaceBefore:!0})}function I(De,se){m.push({text:`= ${De}`,position:se,kind:"Enum",whitespaceBefore:!0})}function D(De){if(De.initializer)return;let se=g.getConstantValue(De);se!==void 0&&I(se.toString(),De.end)}function E(De){return De.symbol&&De.symbol.flags&1536}function O(De){if(De.initializer===void 0&&!(ds(De)&&!(g.getTypeAtLocation(De).flags&1))||Ws(De.name)||oi(De)&&!ve(De)||pl(De))return;let xe=g.getTypeAtLocation(De);if(E(xe))return;let _e=oe(xe);if(_e){let tt=typeof _e=="string"?_e:_e.map(le=>le.text).join("");if(o.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&_0(De.name.getText(),tt))return;x(_e,De.name.end)}}function F(De){let se=De.arguments;if(!se||!se.length)return;let xe=g.getResolvedSignature(De);if(xe===void 0)return;let _e=0;for(let tt of se){let ct=Ka(tt);if(wtt(o)&&!$(ct)){_e++;continue}let le=0;if(Rp(ct)){let ee=g.getTypeAtLocation(ct.expression);if(g.isTupleType(ee)){let{elementFlags:Ne,fixedLength:Ie}=ee.target;if(Ie===0)continue;let Ce=Sc(Ne,bt=>!(bt&1));(Ce<0?Ie:Ce)>0&&(le=Ce<0?Ie:Ce)}}let Je=g.getParameterIdentifierInfoAtPosition(xe,_e);if(_e=_e+(le||1),Je){let{parameter:ee,parameterName:Ne,isRestParameter:Ie}=Je;if(!(o.includeInlayParameterNameHintsWhenArgumentMatchesName||!B(ct,Ne))&&!Ie)continue;let Ve=Li(Ne);if(G(ct,Ve))continue;T(Ve,ee,tt.getStart(),Ie)}}}function B(De,se){return je(De)?De.text===se:Nn(De)?De.name.text===se:!1}function G(De,se){if(!$_(se,wa(_),w4(t.scriptKind)))return!1;let xe=sh(c,De.pos);if(!xe?.length)return!1;let _e=xtt(se);return pt(xe,tt=>_e.test(c.substring(tt.pos,tt.end)))}function $(De){switch(De.kind){case 224:{let se=De.operand;return ek(se)||je(se)&&PA(se.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{let se=De.escapedText;return H(se)||PA(se)}}return ek(De)}function K(De){if(Lo(De)&&!_o(De,21,t)||Wf(De)||!De.body)return;let xe=g.getSignatureFromDeclaration(De);if(!xe)return;let _e=g.getTypePredicateOfSignature(xe);if(_e?.type){let le=de(_e);if(le){x(le,U(De));return}}let tt=g.getReturnTypeOfSignature(xe);if(E(tt))return;let ct=oe(tt);ct&&x(ct,U(De))}function U(De){let se=_o(De,22,t);return se?se.end:De.parameters.end}function me(De){let se=g.getSignatureFromDeclaration(De);if(!se)return;let xe=0;for(let _e of De.parameters)ve(_e)&&te(_e,E0(_e)?se.thisParameter:se.parameters[xe]),!E0(_e)&&xe++}function te(De,se){if(pl(De)||se===void 0)return;let _e=V(se);_e!==void 0&&x(_e,De.questionToken?De.questionToken.end:De.name.end)}function V(De){let se=De.valueDeclaration;if(!se||!Bi(se))return;let xe=g.getTypeOfSymbolAtLocation(De,se);if(!E(xe))return oe(xe)}function ne(De){let xe=qS();return Ow(_e=>{let tt=g.typeToTypeNode(De,void 0,71286784);w.assertIsDefined(tt,"should always get typenode"),xe.writeNode(4,tt,t,_e)})}function ie(De){let xe=qS();return Ow(_e=>{let tt=g.typePredicateToTypePredicateNode(De,void 0,71286784);w.assertIsDefined(tt,"should always get typePredicateNode"),xe.writeNode(4,tt,t,_e)})}function oe(De){if(!dpe(o))return ne(De);let xe=g.typeToTypeNode(De,void 0,71286784);return w.assertIsDefined(xe,"should always get typeNode"),ye(xe)}function de(De){if(!dpe(o))return ie(De);let xe=g.typePredicateToTypePredicateNode(De,void 0,71286784);return w.assertIsDefined(xe,"should always get typenode"),ye(xe)}function ye(De){let se=[];return xe(De),se;function xe(le){var Je,ee;if(!le)return;let Ne=sa(le.kind);if(Ne){se.push({text:Ne});return}if(ek(le)){se.push({text:ct(le)});return}switch(le.kind){case 80:w.assertNode(le,je);let Ie=Ln(le),Ce=le.symbol&&le.symbol.declarations&&le.symbol.declarations.length&&vs(le.symbol.declarations[0]);Ce?se.push(Ge(Ie,Ce)):se.push({text:Ie});break;case 166:w.assertNode(le,y_),xe(le.left),se.push({text:"."}),xe(le.right);break;case 182:w.assertNode(le,L2),le.assertsModifier&&se.push({text:"asserts "}),xe(le.parameterName),le.type&&(se.push({text:" is "}),xe(le.type));break;case 183:w.assertNode(le,yf),xe(le.typeName),le.typeArguments&&(se.push({text:"<"}),tt(le.typeArguments,", "),se.push({text:">"}));break;case 168:w.assertNode(le,$o),le.modifiers&&tt(le.modifiers," "),xe(le.name),le.constraint&&(se.push({text:" extends "}),xe(le.constraint)),le.default&&(se.push({text:" = "}),xe(le.default));break;case 169:w.assertNode(le,Bi),le.modifiers&&tt(le.modifiers," "),le.dotDotDotToken&&se.push({text:"..."}),xe(le.name),le.questionToken&&se.push({text:"?"}),le.type&&(se.push({text:": "}),xe(le.type));break;case 185:w.assertNode(le,_I),se.push({text:"new "}),_e(le),se.push({text:" => "}),xe(le.type);break;case 186:w.assertNode(le,MS),se.push({text:"typeof "}),xe(le.exprName),le.typeArguments&&(se.push({text:"<"}),tt(le.typeArguments,", "),se.push({text:">"}));break;case 187:w.assertNode(le,v_),se.push({text:"{"}),le.members.length&&(se.push({text:" "}),tt(le.members,"; "),se.push({text:" "})),se.push({text:"}"});break;case 188:w.assertNode(le,X4),xe(le.elementType),se.push({text:"[]"});break;case 189:w.assertNode(le,j2),se.push({text:"["}),tt(le.elements,", "),se.push({text:"]"});break;case 202:w.assertNode(le,fI),le.dotDotDotToken&&se.push({text:"..."}),xe(le.name),le.questionToken&&se.push({text:"?"}),se.push({text:": "}),xe(le.type);break;case 190:w.assertNode(le,i7),xe(le.type),se.push({text:"?"});break;case 191:w.assertNode(le,s7),se.push({text:"..."}),xe(le.type);break;case 192:w.assertNode(le,cv),tt(le.types," | ");break;case 193:w.assertNode(le,W2),tt(le.types," & ");break;case 194:w.assertNode(le,RS),xe(le.checkType),se.push({text:" extends "}),xe(le.extendsType),se.push({text:" ? "}),xe(le.trueType),se.push({text:" : "}),xe(le.falseType);break;case 195:w.assertNode(le,kk),se.push({text:"infer "}),xe(le.typeParameter);break;case 196:w.assertNode(le,xk),se.push({text:"("}),xe(le.type),se.push({text:")"});break;case 198:w.assertNode(le,Gb),se.push({text:`${sa(le.operator)} `}),xe(le.type);break;case 199:w.assertNode(le,FS),xe(le.objectType),se.push({text:"["}),xe(le.indexType),se.push({text:"]"});break;case 200:w.assertNode(le,Ck),se.push({text:"{ "}),le.readonlyToken&&(le.readonlyToken.kind===40?se.push({text:"+"}):le.readonlyToken.kind===41&&se.push({text:"-"}),se.push({text:"readonly "})),se.push({text:"["}),xe(le.typeParameter),le.nameType&&(se.push({text:" as "}),xe(le.nameType)),se.push({text:"]"}),le.questionToken&&(le.questionToken.kind===40?se.push({text:"+"}):le.questionToken.kind===41&&se.push({text:"-"}),se.push({text:"?"})),se.push({text:": "}),le.type&&xe(le.type),se.push({text:"; }"});break;case 201:w.assertNode(le,lv),xe(le.literal);break;case 184:w.assertNode(le,Ig),_e(le),se.push({text:" => "}),xe(le.type);break;case 205:w.assertNode(le,Om),le.isTypeOf&&se.push({text:"typeof "}),se.push({text:"import("}),xe(le.argument),le.assertions&&(se.push({text:", { assert: "}),tt(le.assertions.assertClause.elements,", "),se.push({text:" }"})),se.push({text:")"}),le.qualifier&&(se.push({text:"."}),xe(le.qualifier)),le.typeArguments&&(se.push({text:"<"}),tt(le.typeArguments,", "),se.push({text:">"}));break;case 171:w.assertNode(le,s_),(Je=le.modifiers)!=null&&Je.length&&(tt(le.modifiers," "),se.push({text:" "})),xe(le.name),le.questionToken&&se.push({text:"?"}),le.type&&(se.push({text:": "}),xe(le.type));break;case 181:w.assertNode(le,W0),se.push({text:"["}),tt(le.parameters,", "),se.push({text:"]"}),le.type&&(se.push({text:": "}),xe(le.type));break;case 173:w.assertNode(le,xd),(ee=le.modifiers)!=null&&ee.length&&(tt(le.modifiers," "),se.push({text:" "})),xe(le.name),le.questionToken&&se.push({text:"?"}),_e(le),le.type&&(se.push({text:": "}),xe(le.type));break;case 179:w.assertNode(le,O2),_e(le),le.type&&(se.push({text:": "}),xe(le.type));break;case 207:w.assertNode(le,uv),se.push({text:"["}),tt(le.elements,", "),se.push({text:"]"});break;case 206:w.assertNode(le,np),se.push({text:"{"}),le.elements.length&&(se.push({text:" "}),tt(le.elements,", "),se.push({text:" "})),se.push({text:"}"});break;case 208:w.assertNode(le,Da),xe(le.name);break;case 224:w.assertNode(le,Vb),se.push({text:sa(le.operator)}),xe(le.operand);break;case 203:w.assertNode(le,iie),xe(le.head),le.templateSpans.forEach(xe);break;case 16:w.assertNode(le,M2),se.push({text:ct(le)});break;case 204:w.assertNode(le,aG),xe(le.type),xe(le.literal);break;case 17:w.assertNode(le,rG),se.push({text:ct(le)});break;case 18:w.assertNode(le,e7),se.push({text:ct(le)});break;case 197:w.assertNode(le,zA),se.push({text:"this"});break;default:w.failBadSyntaxKind(le)}}function _e(le){le.typeParameters&&(se.push({text:"<"}),tt(le.typeParameters,", "),se.push({text:">"})),se.push({text:"("}),tt(le.parameters,", "),se.push({text:")"})}function tt(le,Je){le.forEach((ee,Ne)=>{Ne>0&&se.push({text:Je}),xe(ee)})}function ct(le){switch(le.kind){case 11:return u===0?`'${wg(le.text,39)}'`:`"${wg(le.text,34)}"`;case 16:case 17:case 18:{let Je=le.rawText??Wz(wg(le.text,96));switch(le.kind){case 16:return"`"+Je+"${";case 17:return"}"+Je+"${";case 18:return"}"+Je+"`"}}}return le.text}}function H(De){return De==="undefined"}function ve(De){if((jb(De)||oi(De)&&Bw(De))&&De.initializer){let se=Ka(De.initializer);return!($(se)||OS(se)||Sa(se)||fS(se))}return!0}function Ge(De,se){let xe=se.getSourceFile();return{text:De,span:k_(se,xe),file:xe.fileName}}}var p1={};nt(p1,{getDocCommentTemplateAtPosition:()=>jtt,getJSDocParameterNameCompletionDetails:()=>Ltt,getJSDocParameterNameCompletions:()=>Ott,getJSDocTagCompletionDetails:()=>ENe,getJSDocTagCompletions:()=>Ftt,getJSDocTagNameCompletionDetails:()=>Rtt,getJSDocTagNameCompletions:()=>Mtt,getJsDocCommentsFromDeclarations:()=>Dtt,getJsDocTagsFromDeclarations:()=>Ett});var CNe=["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"],wNe,INe;function Dtt(e,t){let n=[];return Gq(e,i=>{for(let s of Att(i)){let o=Kd(s)&&s.tags&&On(s.tags,_=>_.kind===327&&(_.tagName.escapedText==="inheritDoc"||_.tagName.escapedText==="inheritdoc"));if(s.comment===void 0&&!o||Kd(s)&&i.kind!==346&&i.kind!==338&&s.tags&&s.tags.some(_=>_.kind===346||_.kind===338)&&!s.tags.some(_=>_.kind===341||_.kind===342))continue;let c=s.comment?oD(s.comment,t):[];o&&o.comment&&(c=c.concat(oD(o.comment,t))),Ts(n,c,Ptt)||n.push(c)}}),Qp(HN(n,[XI()]))}function Ptt(e,t){return Yf(e,t,(n,i)=>n.kind===i.kind&&n.text===i.text)}function Att(e){switch(e.kind){case 341:case 348:return[e];case 338:case 346:return[e,e.parent];case 323:if(SI(e.parent))return[e.parent.parent];default:return xz(e)}}function Ett(e,t){let n=[];return Gq(e,i=>{let s=Ab(i);if(!(s.some(o=>o.kind===346||o.kind===338)&&!s.some(o=>o.kind===341||o.kind===342)))for(let o of s)n.push({name:o.tagName.text,text:ANe(o,t)}),n.push(...DNe(PNe(o),t))}),n}function DNe(e,t){return ga(e,n=>Ki([{name:n.tagName.text,text:ANe(n,t)}],DNe(PNe(n),t)))}function PNe(e){return LP(e)&&e.isNameFirst&&e.typeExpression&&Ak(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function oD(e,t){return typeof e=="string"?[cp(e)]:ga(e,n=>n.kind===321?[cp(n.text)]:$ce(n,t))}function ANe(e,t){let{comment:n,kind:i}=e,s=Ntt(i);switch(i){case 349:let _=e.typeExpression;return _?o(_):n===void 0?void 0:oD(n,t);case 329:return o(e.class);case 328:return o(e.class);case 345:let u=e,g=[];if(u.constraint&&g.push(cp(u.constraint.getText())),Dr(u.typeParameters)){Dr(g)&&g.push(Mc());let h=u.typeParameters[u.typeParameters.length-1];or(u.typeParameters,S=>{g.push(s(S.getText())),h!==S&&g.push(Uu(28),Mc())})}return n&&g.push(Mc(),...oD(n,t)),g;case 344:case 350:return o(e.typeExpression);case 346:case 338:case 348:case 341:case 347:let{name:m}=e;return m?o(m):n===void 0?void 0:oD(n,t);default:return n===void 0?void 0:oD(n,t)}function o(_){return c(_.getText())}function c(_){return n?_.match(/^https?$/)?[cp(_),...oD(n,t)]:[s(_),Mc(),...oD(n,t)]:[cp(_)]}}function Ntt(e){switch(e){case 341:return Jce;case 348:return Gce;case 345:return Vce;case 346:case 338:return Uce;default:return cp}}function Mtt(){return wNe||(wNe=hr(CNe,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:mC.SortText.LocationPriority})))}var Rtt=ENe;function Ftt(){return INe||(INe=hr(CNe,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:mC.SortText.LocationPriority})))}function ENe(e){return{name:e,kind:"",kindModifiers:"",displayParts:[cp(e)],documentation:qe,tags:void 0,codeActions:void 0}}function Ott(e){if(!je(e.name))return qe;let t=e.name.text,n=e.parent,i=n.parent;return Ns(i)?Vi(i.parameters,s=>{if(!je(s.name))return;let o=s.name.text;if(!(n.tags.some(c=>c!==e&&ip(c)&&je(c.name)&&c.name.escapedText===o)||t!==void 0&&!Yi(o,t)))return{name:o,kind:"parameter",kindModifiers:"",sortText:mC.SortText.LocationPriority}}):[]}function Ltt(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[cp(e)],documentation:qe,tags:void 0,codeActions:void 0}}function jtt(e,t,n,i){let s=ki(t,n),o=gr(s,Kd);if(o&&(o.comment!==void 0||Dr(o.tags)))return;let c=s.getStart(t);if(!o&&c<n)return;let _=Jtt(s,i);if(!_)return;let{commentOwner:u,parameters:g,hasReturn:m}=_,h=Lf(u)&&u.jsDoc?u.jsDoc:void 0,S=zo(h);if(u.getStart(t)<n||S&&o&&S!==o)return;let T=Wtt(t,n),x=vh(t.fileName),I=(g?Btt(g||[],x,T,e):"")+(m?ztt(T,e):""),D="/**",E=" */",O=Dr(Ab(u))>0;if(I&&!O){let F=D+e+T+" * ",B=c===n?e+T:"";return{newText:F+e+I+T+E+B,caretOffset:F.length}}return{newText:D+E,caretOffset:3}}function Wtt(e,t){let{text:n}=e,i=ld(t,e),s=i;for(;s<=t&&Tm(n.charCodeAt(s));s++);return n.slice(i,s)}function Btt(e,t,n,i){return e.map(({name:s,dotDotDotToken:o},c)=>{let _=s.kind===80?s.text:"param"+c;return`${n} * @param ${t?o?"{...any} ":"{any} ":""}${_}${i}`}).join("")}function ztt(e,t){return`${e} * @returns${t}`}function Jtt(e,t){return fte(e,n=>mpe(n,t))}function mpe(e,t){switch(e.kind){case 262:case 218:case 174:case 176:case 173:case 219:let n=e;return{commentOwner:e,parameters:n.parameters,hasReturn:cj(n,t)};case 303:return mpe(e.initializer,t);case 263:case 264:case 266:case 306:case 265:return{commentOwner:e};case 171:{let s=e;return s.type&&Ig(s.type)?{commentOwner:e,parameters:s.type.parameters,hasReturn:cj(s.type,t)}:{commentOwner:e}}case 243:{let o=e.declarationList.declarations,c=o.length===1&&o[0].initializer?Gtt(o[0].initializer):void 0;return c?{commentOwner:e,parameters:c.parameters,hasReturn:cj(c,t)}:{commentOwner:e}}case 307:return"quit";case 267:return e.parent.kind===267?void 0:{commentOwner:e};case 244:return mpe(e.expression,t);case 226:{let s=e;return Vc(s)===0?"quit":Ns(s.right)?{commentOwner:e,parameters:s.right.parameters,hasReturn:cj(s.right,t)}:{commentOwner:e}}case 172:let i=e.initializer;if(i&&(Ao(i)||Lo(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:cj(i,t)}}}function cj(e,t){return!!t?.generateReturnInDocTemplate&&(Ig(e)||Lo(e)&>(e.body)||xo(e)&&e.body&&Fs(e.body)&&!!D0(e.body,n=>n))}function Gtt(e){for(;e.kind===217;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return On(e.members,lc)}}var UH={};nt(UH,{mapCode:()=>Utt});function Utt(e,t,n,i,s,o){return fn.ChangeTracker.with({host:i,formatContext:s,preferences:o},c=>{let _=t.map(g=>Vtt(e,g)),u=n&&Qp(n);for(let g of _)qtt(e,c,g,u)})}function Vtt(e,t){let n=[{parse:()=>$2("__mapcode_content_nodes.ts",t,e.languageVersion,!0,e.scriptKind),body:o=>o.statements},{parse:()=>$2("__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 _=o(),u=c(_);if(u.length&&_.parseDiagnostics.length===0)return u;u.length&&i.push({sourceFile:_,body:u})}i.sort((o,c)=>o.sourceFile.parseDiagnostics.length-c.sourceFile.parseDiagnostics.length);let{body:s}=i[0];return s}function qtt(e,t,n,i){rl(n[0])||uS(n[0])?$tt(e,t,n,i):Htt(e,t,n,i)}function $tt(e,t,n,i){let s;if(!i||!i.length?s=On(e.statements,uf(ii,hu)):s=or(i,c=>gr(ki(e,c.start),uf(ii,hu))),!s)return;let o=s.members.find(c=>n.some(_=>lj(_,c)));if(o){let c=rS(s.members,_=>n.some(u=>lj(u,_)));or(n,VH),t.replaceNodeRangeWithNodes(e,o,c,n);return}or(n,VH),t.insertNodesAfter(e,s.members[s.members.length-1],n)}function Htt(e,t,n,i){if(!i?.length){t.insertNodesAtEndOfFile(e,n,!1);return}for(let o of i){let c=gr(ki(e,o.start),_=>uf(Fs,Mi)(_)&&pt(_.statements,u=>n.some(g=>lj(g,u))));if(c){let _=c.statements.find(u=>n.some(g=>lj(g,u)));if(_){let u=rS(c.statements,g=>n.some(m=>lj(m,g)));or(n,VH),t.replaceNodeRangeWithNodes(e,_,u,n);return}}}let s=e.statements;for(let o of i){let c=gr(ki(e,o.start),Fs);if(c){s=c.statements;break}}or(n,VH),t.insertNodesAfter(e,s[s.length-1],n)}function lj(e,t){var n,i,s,o,c,_;return e.kind!==t.kind?!1:e.kind===176?e.kind===t.kind:Gl(e)&&Gl(t)?e.name.getText()===t.name.getText():qb(e)&&qb(t)||lG(e)&&lG(t)?e.expression.getText()===t.expression.getText():$b(e)&&$b(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())===((_=t.condition)==null?void 0:_.getText()):nk(e)&&nk(t)?e.expression.getText()===t.expression.getText()&&e.initializer.getText()===t.initializer.getText():z0(e)&&z0(t)?e.label.getText()===t.label.getText():e.getText()===t.getText()}function VH(e){NNe(e),e.parent=void 0}function NNe(e){e.pos=-1,e.end=-1,e.forEachChild(NNe)}var d1={};nt(d1,{compareImportsOrRequireStatements:()=>kpe,compareModuleSpecifiers:()=>prt,getImportDeclarationInsertionIndex:()=>lrt,getImportSpecifierInsertionIndex:()=>urt,getNamedImportSpecifierComparerWithDetection:()=>crt,getOrganizeImportsStringComparerWithDetection:()=>ort,organizeImports:()=>Qtt,testCoalesceExports:()=>frt,testCoalesceImports:()=>_rt});function Qtt(e,t,n,i,s,o){let c=fn.ChangeTracker.fromContext({host:n,formatContext:t,preferences:s}),_=o==="SortAndCombine"||o==="All",u=_,g=o==="RemoveUnused"||o==="All",m=e.statements.filter(sc),h=hpe(e,m),{comparersToTest:S,typeOrdersToTest:T}=gpe(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}=FNe(h,S)),!I.typeOrder||typeof s.organizeImportsIgnoreCase!="boolean"){let F=Spe(m,S,T);if(F){let{namedImportComparer:B,typeOrder:G}=F;I.namedImportComparer=I.namedImportComparer??B,I.typeOrder=I.typeOrder??G}}h.forEach(F=>E(F,I)),o!=="RemoveUnused"&&Xtt(e).forEach(F=>O(F,I.namedImportComparer));for(let F of e.statements.filter(e_)){if(!F.body)continue;if(hpe(e,F.body.statements.filter(sc)).forEach(G=>E(G,I)),o!=="RemoveUnused"){let G=F.body.statements.filter(Xc);O(G,I.namedImportComparer)}}return c.getChanges();function D(F,B){if(Dr(F)===0)return;dn(F[0],1024);let G=u?vw(F,U=>uj(U.moduleSpecifier)):[F],$=_?lf(G,(U,me)=>vpe(U[0].moduleSpecifier,me[0].moduleSpecifier,I.moduleSpecifierComparer??x)):G,K=ga($,U=>uj(U[0].moduleSpecifier)||U[0].moduleSpecifier===void 0?B(U):U);if(K.length===0)c.deleteNodes(e,F,{leadingTriviaOption:fn.LeadingTriviaOption.Exclude,trailingTriviaOption:fn.TrailingTriviaOption.Include},!0);else{let U={leadingTriviaOption:fn.LeadingTriviaOption.Exclude,trailingTriviaOption:fn.TrailingTriviaOption.Include,suffix:yy(n,t.options)};c.replaceNodeWithNodes(e,F[0],K,U);let me=c.nodeHasTrailingComment(e,F[0],U);c.deleteNodes(e,F.slice(1),{trailingTriviaOption:fn.TrailingTriviaOption.Include},me)}}function E(F,B){let G=B.moduleSpecifierComparer??x,$=B.namedImportComparer??x,K=B.typeOrder??"last",U=z3({organizeImportsTypeOrder:K},$);D(F,te=>(g&&(te=Ytt(te,e,i)),u&&(te=MNe(te,G,U,e)),_&&(te=lf(te,(V,ne)=>kpe(V,ne,G))),te))}function O(F,B){let G=z3(s,B);D(F,$=>RNe($,G))}}function gpe(e){return{comparersToTest:typeof e.organizeImportsIgnoreCase=="boolean"?[Tpe(e,e.organizeImportsIgnoreCase)]:[Tpe(e,!0),Tpe(e,!1)],typeOrdersToTest:e.organizeImportsTypeOrder?[e.organizeImportsTypeOrder]:["last","inline","first"]}}function hpe(e,t){let n=ah(e.languageVersion,!1,e.languageVariant),i=[],s=0;for(let o of t)i[s]&&Ktt(e,o,n)&&s++,i[s]||(i[s]=[]),i[s].push(o);return i}function Ktt(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 Xtt(e){let t=[],n=e.statements,i=Dr(n),s=0,o=0;for(;s<i;)if(Xc(n[s])){t[o]===void 0&&(t[o]=[]);let c=n[s];if(c.moduleSpecifier)t[o].push(c),s++;else{for(;s<i&&Xc(n[s]);)t[o].push(n[s++]);o++}}else s++;return ga(t,c=>hpe(e,c))}function Ytt(e,t,n){let i=n.getTypeChecker(),s=n.getCompilerOptions(),o=i.getJsxNamespace(t),c=i.getJsxFragmentFactory(t),_=!!(t.transformFlags&2),u=[];for(let m of e){let{importClause:h,moduleSpecifier:S}=m;if(!h){u.push(m);continue}let{name:T,namedBindings:x}=h;if(T&&!g(T)&&(T=void 0),x)if(kh(x))g(x.name)||(x=void 0);else{let I=x.elements.filter(D=>g(D.name));I.length<x.elements.length&&(x=I.length?A.updateNamedImports(x,I):void 0)}T||x?u.push(B3(m,T,x)):trt(t,S)&&(t.isDeclarationFile?u.push(A.createImportDeclaration(m.modifiers,void 0,S,void 0)):u.push(m))}return u;function g(m){return _&&(m.text===o||c&&m.text===c)&&l$(s.jsx)||jo.Core.isSymbolReferencedInFile(m,i,t)}}function uj(e){return e!==void 0&&Ha(e)?e.text:void 0}function Ztt(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:_}=s.importClause;c&&o.defaultImports.push(s),_&&(kh(_)?o.namespaceImports.push(s):o.namedImports.push(s))}return{importWithoutClause:t,typeOnlyImports:n,regularImports:i}}function MNe(e,t,n,i){if(e.length===0)return e;let s=AW(e,c=>{if(c.attributes){let _=c.attributes.token+" ";for(let u of lf(c.attributes.elements,(g,m)=>wu(g.name.text,m.name.text)))_+=u.name.text+":",_+=Ha(u.value)?`"${u.value.text}"`:u.value.getText()+" ";return _}return""}),o=[];for(let c in s){let _=s[c],{importWithoutClause:u,typeOnlyImports:g,regularImports:m}=Ztt(_);u&&o.push(u);for(let h of[m,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(B3(U,U.importClause.name,x[0].importClause.namedBindings));continue}let D=lf(x,(U,me)=>t(U.importClause.namedBindings.name.text,me.importClause.namedBindings.name.text));for(let U of D)o.push(B3(U,void 0,U.importClause.namedBindings));let E=_l(T),O=_l(I),F=E??O;if(!F)continue;let B,G=[];if(T.length===1)B=T[0].importClause.name;else for(let U of T)G.push(A.createImportSpecifier(!1,A.createIdentifier("default"),U.importClause.name));G.push(...rrt(I));let $=A.createNodeArray(lf(G,n),O?.importClause.namedBindings.elements.hasTrailingComma),K=$.length===0?B?void 0:A.createNamedImports(qe):O?A.updateNamedImports(O.importClause.namedBindings,$):A.createNamedImports($);i&&K&&O?.importClause.namedBindings&&!hk(O.importClause.namedBindings,i)&&dn(K,2),S&&B&&K?(o.push(B3(F,B,void 0)),o.push(B3(O??F,void 0,K))):o.push(B3(F,B,K))}}return o}function RNe(e,t){if(e.length===0)return e;let{exportWithoutClause:n,namedExports:i,typeOnlyExports:s}=c(e),o=[];n&&o.push(n);for(let _ of[i,s]){if(_.length===0)continue;let u=[];u.push(...ga(_,h=>h.exportClause&&Fp(h.exportClause)?h.exportClause.elements:qe));let g=lf(u,t),m=_[0];o.push(A.updateExportDeclaration(m,m.modifiers,m.isTypeOnly,m.exportClause&&(Fp(m.exportClause)?A.updateNamedExports(m.exportClause,g):A.updateNamespaceExport(m.exportClause,m.exportClause.name)),m.moduleSpecifier,m.attributes))}return o;function c(_){let u,g=[],m=[];for(let h of _)h.exportClause===void 0?u=u||h:h.isTypeOnly?m.push(h):g.push(h);return{exportWithoutClause:u,namedExports:g,typeOnlyExports:m}}}function B3(e,t,n){return A.updateImportDeclaration(e,e.modifiers,A.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,n),e.moduleSpecifier,e.attributes)}function ype(e,t,n,i){switch(i?.organizeImportsTypeOrder){case"first":return wb(t.isTypeOnly,e.isTypeOnly)||n(e.name.text,t.name.text);case"inline":return n(e.name.text,t.name.text);default:return wb(e.isTypeOnly,t.isTypeOnly)||n(e.name.text,t.name.text)}}function vpe(e,t,n){let i=e===void 0?void 0:uj(e),s=t===void 0?void 0:uj(t);return wb(i===void 0,s===void 0)||wb(Jl(i),Jl(s))||n(i,s)}function ert(e){return e.map(t=>uj(bpe(t))||"")}function bpe(e){var t;switch(e.kind){case 271:return(t=Vn(e.moduleReference,dy))==null?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function trt(e,t){let n=ya(t)&&t.text;return ys(n)&&pt(e.moduleAugmentations,i=>ya(i)&&i.text===n)}function rrt(e){return ga(e,t=>hr(nrt(t),n=>n.name&&n.propertyName&&dS(n.name)===dS(n.propertyName)?A.updateImportSpecifier(n,n.isTypeOnly,void 0,n.name):n))}function nrt(e){var t;return(t=e.importClause)!=null&&t.namedBindings&&jm(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function FNe(e,t){let n=[];return e.forEach(i=>{n.push(ert(i))}),LNe(n,t)}function Spe(e,t,n){let i=!1,s=e.filter(u=>{var g,m;let h=(m=Vn((g=u.importClause)==null?void 0:g.namedBindings,jm))==null?void 0:m.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,m;return(m=Vn((g=u.importClause)==null?void 0:g.namedBindings,jm))==null?void 0:m.elements}).filter(u=>u!==void 0);if(!i||n.length===0){let u=LNe(o.map(g=>g.map(m=>m.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},_={first:t[0],last:t[0],inline:t[0]};for(let u of t){let g={first:0,last:0,inline:0};for(let m of o)for(let h of n)g[h]=(g[h]??0)+ONe(m,(S,T)=>ype(S,T,u,{organizeImportsTypeOrder:h}));for(let m of n){let h=m;g[h]<c[h]&&(c[h]=g[h],_[h]=u)}}e:for(let u of n){let g=u;for(let m of n)if(c[m]<c[g])continue e;return{namedImportComparer:_[g],typeOrder:g,isSorted:c[g]===0}}return{namedImportComparer:_.last,typeOrder:"last",isSorted:c.last===0}}function ONe(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 LNe(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 _=ONe(c,s);o+=_}o<i&&(i=o,n=s)}return{comparer:n??t[0],isSorted:i===0}}function irt(e,t){return Po(jNe(e),jNe(t))}function jNe(e){var t;switch(e.kind){case 272:return e.importClause?e.importClause.isTypeOnly?1:((t=e.importClause.namedBindings)==null?void 0:t.kind)===274?2:e.importClause.name?3:4:0;case 271:return 5;case 243:return 6}}function _j(e){return e?MY:wu}function srt(e,t){let n=art(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 art(e){let t=e.organizeImportsLocale;t==="auto"&&(t=RY()),t===void 0&&(t="en");let n=Intl.Collator.supportedLocalesOf(t);return n.length?n[0]:"en"}function Tpe(e,t){return(e.organizeImportsCollation??"ordinal")==="unicode"?srt(t,e):_j(t)}function ort(e,t){return FNe([e],gpe(t).comparersToTest)}function z3(e,t){let n=t??_j(!!e.organizeImportsIgnoreCase);return(i,s)=>ype(i,s,n,e)}function crt(e,t,n){let{comparersToTest:i,typeOrdersToTest:s}=gpe(t),o=Spe([e],i,s),c=z3(t,i[0]),_;if(typeof t.organizeImportsIgnoreCase!="boolean"||!t.organizeImportsTypeOrder){if(o){let{namedImportComparer:u,typeOrder:g,isSorted:m}=o;_=m,c=z3({organizeImportsTypeOrder:g},u)}else if(n){let u=Spe(n.statements.filter(sc),i,s);if(u){let{namedImportComparer:g,typeOrder:m,isSorted:h}=u;_=h,c=z3({organizeImportsTypeOrder:m},g)}}}return{specifierComparer:c,isSorted:_}}function lrt(e,t,n){let i=o0(e,t,Do,(s,o)=>kpe(s,o,n));return i<0?~i:i}function urt(e,t,n){let i=o0(e,t,Do,n);return i<0?~i:i}function kpe(e,t,n){return vpe(bpe(e),bpe(t),n)||irt(e,t)}function _rt(e,t,n,i){let s=_j(t),o=z3({organizeImportsTypeOrder:i?.organizeImportsTypeOrder},s);return MNe(e,s,o,n)}function frt(e,t,n){return RNe(e,(s,o)=>ype(s,o,_j(t),{organizeImportsTypeOrder:n?.organizeImportsTypeOrder??"last"}))}function prt(e,t,n){let i=_j(!!n);return vpe(e,t,i)}var qH={};nt(qH,{collectElements:()=>drt});function drt(e,t){let n=[];return mrt(e,t,n),grt(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,e.endOfFileToken],c=o.length;for(;s<c;){for(;s<c&&!a2(o[s]);)_(o[s]),s++;if(s===c)break;let u=s;for(;s<c&&a2(o[s]);)_(o[s]),s++;let g=s-1;g!==u&&n.push(fj(_o(o[u],102,e).getStart(e),o[g].getEnd(),"imports"))}function _(u){var g;if(i===0)return;t.throwIfCancellationRequested(),(Ul(u)||Lc(u)||Bf(u)||km(u)||u.kind===1)&&BNe(u,e,t,n),Ns(u)&&vn(u.parent)&&Nn(u.parent.left)&&BNe(u.parent.left,e,t,n),(Fs(u)||Lm(u))&&xpe(u.statements.end,e,t,n),(ii(u)||hu(u))&&xpe(u.members.end,e,t,n);let m=yrt(u,e);m&&n.push(m),i--,qs(u)?(i++,_(u.expression),i--,u.arguments.forEach(_),(g=u.typeArguments)==null||g.forEach(_)):qb(u)&&u.elseStatement&&qb(u.elseStatement)?(_(u.expression),_(u.thenStatement),i++,_(u.elseStatement),i--):u.forEachChild(_),i++}}function grt(e,t){let n=[],i=e.getLineStarts();for(let s of i){let o=e.getLineEndOfPosition(s),c=e.text.substring(s,o),_=WNe(c);if(!(!_||pv(e,s)))if(_.isStart){let u=Uc(e.text.indexOf("//",s),o);n.push(hC(u,"region",u,!1,_.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 hrt=/^#(end)?region(.*)\r?$/;function WNe(e){if(e=e.trimStart(),!Yi(e,"//"))return null;e=e.slice(2).trim();let t=hrt.exec(e);if(t)return{isStart:!t[1],name:t[2].trim()}}function xpe(e,t,n,i){let s=sh(t.text,e);if(!s)return;let o=-1,c=-1,_=0,u=t.getFullText();for(let{kind:m,pos:h,end:S}of s)switch(n.throwIfCancellationRequested(),m){case 2:let T=u.slice(h,S);if(WNe(T)){g(),_=0;break}_===0&&(o=h),c=S,_++;break;case 3:g(),i.push(fj(h,S,"comment")),_=0;break;default:w.assertNever(m)}g();function g(){_>1&&i.push(fj(o,c,"comment"))}}function BNe(e,t,n,i){N2(e)||xpe(e.pos,t,n,i)}function fj(e,t,n){return hC(Uc(e,t),n)}function yrt(e,t){switch(e.kind){case 241:if(Ns(e.parent))return vrt(e.parent,e,t);switch(e.parent.kind){case 246:case 249:case 250:case 248:case 245:case 247:case 254:case 299:return m(e.parent);case 258:let T=e.parent;if(T.tryBlock===e)return m(e.parent);if(T.finallyBlock===e){let x=_o(T,98,t);if(x)return m(x)}default:return hC(k_(e,t),"code")}case 268:return m(e.parent);case 263:case 231:case 264:case 266:case 269:case 187:case 206:return m(e);case 189:return m(e,!1,!j2(e.parent),23);case 296:case 297:return h(e.statements);case 210:return g(e);case 209:return g(e,23);case 284:return o(e);case 288:return c(e);case 285:case 286:return _(e.attributes);case 228:case 15:return u(e);case 207:return m(e,!1,!Da(e.parent),23);case 219:return s(e);case 213:return i(e);case 217:return S(e);case 275:case 279:case 300:return n(e)}function n(T){if(!T.elements.length)return;let x=_o(T,19,t),I=_o(T,20,t);if(!(!x||!I||Pp(x.pos,I.pos,t)))return $H(x,I,T,t,!1,!1)}function i(T){if(!T.arguments.length)return;let x=_o(T,21,t),I=_o(T,22,t);if(!(!x||!I||Pp(x.pos,I.pos,t)))return $H(x,I,T,t,!1,!0)}function s(T){if(Fs(T.body)||b_(T.body)||Pp(T.body.getFullStart(),T.body.getEnd(),t))return;let x=Uc(T.body.getFullStart(),T.body.getEnd());return hC(x,"code",k_(T))}function o(T){let x=Uc(T.openingElement.getStart(t),T.closingElement.getEnd()),I=T.openingElement.tagName.getText(t),D="<"+I+">...</"+I+">";return hC(x,"code",x,!1,D)}function c(T){let x=Uc(T.openingFragment.getStart(t),T.closingFragment.getEnd());return hC(x,"code",x,!1,"<>...</>")}function _(T){if(T.properties.length!==0)return fj(T.getStart(t),T.getEnd(),"code")}function u(T){if(!(T.kind===15&&T.text.length===0))return fj(T.getStart(t),T.getEnd(),"code")}function g(T,x=19){return m(T,!1,!gu(T.parent)&&!qs(T.parent),x)}function m(T,x=!1,I=!0,D=19,E=D===19?20:24){let O=_o(e,D,t),F=_o(e,E,t);return O&&F&&$H(O,F,T,t,x,I)}function h(T){return T.length?hC(mv(T),"code"):void 0}function S(T){if(Pp(T.getStart(),T.getEnd(),t))return;let x=Uc(T.getStart(),T.getEnd());return hC(x,"code",k_(T))}}function vrt(e,t,n){let i=brt(e,t,n),s=_o(t,20,n);return i&&s&&$H(i,s,e,n,e.kind!==219)}function $H(e,t,n,i,s=!1,o=!0){let c=Uc(o?e.getFullStart():e.getStart(i),t.getEnd());return hC(c,"code",k_(n,i),s)}function hC(e,t,n=e,i=!1,s="..."){return{textSpan:e,kind:t,hintSpan:n,bannerText:s,autoCollapse:i}}function brt(e,t,n){if(Fre(e.parameters,n)){let i=_o(e,21,n);if(i)return i}return _o(t,19,n)}var pj={};nt(pj,{getRenameInfo:()=>Srt,nodeIsEligibleForRename:()=>JNe});function Srt(e,t,n,i){let s=eL(W_(t,n));if(JNe(s)){let o=Trt(s,e.getTypeChecker(),t,e,i);if(o)return o}return HH(p.You_cannot_rename_this_element)}function Trt(e,t,n,i,s){let o=t.getSymbolAtLocation(e);if(!o){if(Ha(e)){let S=Z5(e,t);if(S&&(S.flags&128||S.flags&1048576&&Oi(S.types,T=>!!(T.flags&128))))return Cpe(e.text,e.text,"string","",e,n)}else if(dq(e)){let S=oc(e);return Cpe(S,S,"label","",e,n)}return}let{declarations:c}=o;if(!c||c.length===0)return;if(c.some(S=>krt(i,S)))return HH(p.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(je(e)&&e.escapedText==="default"&&o.parent&&o.parent.flags&1536)return;if(Ha(e)&&n4(e))return s.allowRenameOfImportPath?Crt(e,n,o):void 0;let _=xrt(n,o,t,s);if(_)return HH(_);let u=yv.getSymbolKind(t,o,e),g=Hce(e)||tp(e)&&e.parent.kind===167?rd(Ip(e)):void 0,m=g||t.symbolToString(o),h=g||t.getFullyQualifiedName(o);return Cpe(m,h,u,yv.getSymbolModifiers(t,o),e,n)}function krt(e,t){let n=t.getSourceFile();return e.isSourceFileDefaultLibrary(n)&&nc(n.fileName,".d.ts")}function xrt(e,t,n,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){let c=t.declarations&&On(t.declarations,_=>a_(_));c&&!c.propertyName&&(t=n.getAliasedSymbol(t))}let{declarations:s}=t;if(!s)return;let o=zNe(e.path);if(o===void 0)return pt(s,c=>m3(c.getSourceFile().path))?p.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(let c of s){let _=zNe(c.getSourceFile().path);if(_){let u=Math.min(o.length,_.length);for(let g=0;g<=u;g++)if(wu(o[g],_[g])!==0)return p.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function zNe(e){let t=Iu(e),n=t.lastIndexOf("node_modules");if(n!==-1)return t.slice(0,n+2)}function Crt(e,t,n){if(!Jl(e.text))return HH(p.You_cannot_rename_a_module_via_a_global_import);let i=n.declarations&&On(n.declarations,Mi);if(!i)return;let s=Jo(e.text,"/index")||Jo(e.text,"/index.js")?void 0:LY(i_(i.fileName),"/index"),o=s===void 0?i.fileName:s,c=s===void 0?"module":"directory",_=e.text.lastIndexOf("/")+1,u=pu(e.getStart(t)+1+_,e.text.length-_);return{canRename:!0,fileToRename:o,kind:c,displayName:o,fullDisplayName:e.text,kindModifiers:"",triggerSpan:u}}function Cpe(e,t,n,i,s,o){return{canRename:!0,fileToRename:void 0,kind:n,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:wrt(s,o)}}function HH(e){return{canRename:!1,localizedErrorMessage:Is(e)}}function wrt(e,t){let n=e.getStart(t),i=e.getWidth(t);return Ha(e)&&(n+=1,i-=2),pu(n,i)}function JNe(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return Q5(e);default:return!1}}var J3={};nt(J3,{getArgumentInfoForCompletions:()=>Ert,getSignatureHelpItems:()=>Irt});function Irt(e,t,n,i,s){let o=e.getTypeChecker(),c=wE(t,n);if(!c)return;let _=!!i&&i.kind==="characterTyped";if(_&&(iC(t,n,c)||pv(t,n)))return;let u=!!i&&i.kind==="invoked",g=Urt(c,n,t,o,u);if(!g)return;s.throwIfCancellationRequested();let m=Drt(g,o,t,c,_);return s.throwIfCancellationRequested(),m?o.runWithCancellationToken(s,h=>m.kind===0?KNe(m.candidates,m.resolvedSignature,g,t,h):qrt(m.symbol,g,t,h)):g_(t)?Art(g,e,s):void 0}function Drt({invocation:e,argumentCount:t},n,i,s,o){switch(e.kind){case 0:{if(o&&!Prt(s,e.node,i))return;let c=[],_=n.getResolvedSignatureForSignatureHelp(e.node,c,t);return c.length===0?void 0:{kind:0,candidates:c,resolvedSignature:_}}case 1:{let{called:c}=e;if(o&&!GNe(s,i,je(c)?c.parent:c))return;let _=xq(c,t,n);if(_.length!==0)return{kind:0,candidates:_,resolvedSignature:Ea(_)};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 Prt(e,t,n){if(!km(t))return!1;let i=t.getChildren(n);switch(e.kind){case 21:return Ts(i,e);case 28:{let s=Y5(e);return!!s&&Ts(i,s)}case 30:return GNe(e,n,t.expression);default:return!1}}function Art(e,t,n){if(e.invocation.kind===2)return;let i=HNe(e.invocation),s=Nn(i)?i.name.text:void 0,o=t.getTypeChecker();return s===void 0?void 0:po(t.getSourceFiles(),c=>po(c.getNamedDeclarations().get(s),_=>{let u=_.symbol&&o.getTypeOfSymbolAtLocation(_.symbol,_),g=u&&u.getCallSignatures();if(g&&g.length)return o.runWithCancellationToken(n,m=>KNe(g,g[0],e,c,m,!0))}))}function GNe(e,t,n){let i=e.getFullStart(),s=e.parent;for(;s;){let o=Cl(i,t,s,!0);if(o)return O_(n,o);s=s.parent}return w.fail("Could not find preceding token")}function Ert(e,t,n,i){let s=VNe(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 UNe(e,t,n,i){let s=Nrt(e,n,i);if(!s)return;let{list:o,argumentIndex:c}=s,_=Brt(i,o),u=Jrt(o,n);return{list:o,argumentIndex:c,argumentCount:_,argumentsSpan:u}}function Nrt(e,t,n){if(e.kind===30||e.kind===21)return{list:Vrt(e.parent,e,t),argumentIndex:0};{let i=Y5(e);return i&&{list:i,argumentIndex:Wrt(n,i,e)}}}function VNe(e,t,n,i){let{parent:s}=e;if(km(s)){let o=s,c=UNe(e,t,n,i);if(!c)return;let{list:_,argumentIndex:u,argumentCount:g,argumentsSpan:m}=c;return{isTypeParameterList:!!s.typeArguments&&s.typeArguments.pos===_.pos,invocation:{kind:0,node:o},argumentsSpan:m,argumentIndex:u,argumentCount:g}}else{if(Tk(e)&&Ub(s))return i3(e,t,n)?Ipe(s,0,n):void 0;if(M2(e)&&s.parent.kind===215){let o=s,c=o.parent;w.assert(o.kind===228);let _=i3(e,t,n)?0:1;return Ipe(c,_,n)}else if(gI(s)&&Ub(s.parent.parent)){let o=s,c=s.parent.parent;if(e7(e)&&!i3(e,t,n))return;let _=o.parent.templateSpans.indexOf(o),u=zrt(_,e,t,n);return Ipe(c,u,n)}else if(Wu(s)){let o=s.attributes.pos,c=ha(n.text,s.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:s},argumentsSpan:pu(o,c-o),argumentIndex:0,argumentCount:1}}else{let o=Cq(e,n);if(o){let{called:c,nTypeArguments:_}=o,u={kind:1,called:c},g=Uc(c.getStart(n),e.end);return{isTypeParameterList:!0,invocation:u,argumentsSpan:g,argumentIndex:_,argumentCount:_+1}}return}}}function Mrt(e,t,n,i){return Rrt(e,t,n,i)||VNe(e,t,n,i)}function qNe(e){return vn(e.parent)?qNe(e.parent):e}function wpe(e){return vn(e.left)?wpe(e.left)+1:2}function Rrt(e,t,n,i){let s=Frt(e);if(s===void 0)return;let o=Ort(s,n,t,i);if(o===void 0)return;let{contextualType:c,argumentIndex:_,argumentCount:u,argumentsSpan:g}=o,m=c.getNonNullableType(),h=m.symbol;if(h===void 0)return;let S=zo(m.getCallSignatures());return S===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:S,node:e,symbol:Lrt(h)},argumentsSpan:g,argumentIndex:_,argumentCount:u}}function Frt(e){switch(e.kind){case 21:case 28:return e;default:return gr(e.parent,t=>Bi(t)?!0:Da(t)||np(t)||uv(t)?!1:"quit")}}function Ort(e,t,n,i){let{parent:s}=e;switch(s.kind){case 217:case 174:case 218:case 219:let o=UNe(e,n,t,i);if(!o)return;let{argumentIndex:c,argumentCount:_,argumentsSpan:u}=o,g=xc(s)?i.getContextualTypeForObjectLiteralElement(s):i.getContextualType(s);return g&&{contextualType:g,argumentIndex:c,argumentCount:_,argumentsSpan:u};case 226:{let m=qNe(s),h=i.getContextualType(m),S=e.kind===21?0:wpe(s)-1,T=wpe(m);return h&&{contextualType:h,argumentIndex:S,argumentCount:T,argumentsSpan:k_(s)}}default:return}}function Lrt(e){return e.name==="__type"&&po(e.declarations,t=>{var n;return Ig(t)?(n=Vn(t.parent,Jd))==null?void 0:n.symbol:void 0})||e}function jrt(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=Sc(i,c=>!(c&1));return o<0?s:o}return 0}function Wrt(e,t,n){return $Ne(e,t,n)}function Brt(e,t){return $Ne(e,t,void 0)}function $Ne(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(Rp(c)){s+=jrt(c,e),o=!0;continue}if(c.kind!==28){s++,o=!0;continue}if(o){o=!1;continue}s++}return n?s:i.length&&xa(i).kind===28?s+1:s}function zrt(e,t,n,i){return w.assert(n>=t.getStart(),"Assumed 'position' could not occur before node."),Gee(t)?i3(t,n,i)?0:e+2:e+1}function Ipe(e,t,n){let i=Tk(e.template)?1:e.template.templateSpans.length+1;return t!==0&&w.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:Grt(e,n),argumentIndex:t,argumentCount:i}}function Jrt(e,t){let n=e.getFullStart(),i=ha(t.text,e.getEnd(),!1);return pu(n,i-n)}function Grt(e,t){let n=e.template,i=n.getStart(),s=n.getEnd();return n.kind===228&&xa(n.templateSpans).literal.getFullWidth()===0&&(s=ha(t.text,s,!1)),pu(i,s-i)}function Urt(e,t,n,i,s){for(let o=e;!Mi(o)&&(s||!Fs(o));o=o.parent){w.assert(O_(o.parent,o),"Not a subspan",()=>`Child: ${w.formatSyntaxKind(o.kind)}, parent: ${w.formatSyntaxKind(o.parent.kind)}`);let c=Mrt(o,t,n,i);if(c)return c}}function Vrt(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 HNe(e){return e.kind===0?OF(e.node):e.called}function QNe(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}var dj=70246400;function KNe(e,t,{isTypeParameterList:n,argumentCount:i,argumentsSpan:s,invocation:o,argumentIndex:c},_,u,g){var m;let h=QNe(o),S=o.kind===2?o.symbol:u.getSymbolAtLocation(HNe(o))||g&&((m=t.declaration)==null?void 0:m.symbol),T=S?NE(u,S,g?_:void 0,void 0):qe,x=hr(e,F=>Hrt(F,T,n,u,h,_)),I=0,D=0;for(let F=0;F<x.length;F++){let B=x[F];if(e[F]===t&&(I=D,B.length>1)){let G=0;for(let $ of B){if($.isVariadic||$.parameters.length>=i){I=D+G;break}G++}}D+=B.length}w.assert(I!==-1);let E={items:fP(x,Do),applicableSpan:s,selectedItemIndex:I,argumentIndex:c,argumentCount:i},O=E.items[I];if(O.isVariadic){let F=Sc(O.parameters,B=>!!B.isRest);-1<F&&F<O.parameters.length-1?E.argumentIndex=O.parameters.length:E.argumentIndex=Math.min(E.argumentIndex,O.parameters.length-1)}return E}function qrt(e,{argumentCount:t,argumentsSpan:n,invocation:i,argumentIndex:s},o,c){let _=c.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);return _?{items:[$rt(e,_,c,QNe(i),o)],applicableSpan:n,selectedItemIndex:0,argumentIndex:s,argumentCount:t}:void 0}function $rt(e,t,n,i,s){let o=NE(n,e),c=qS(),_=t.map(h=>YNe(h,n,i,s,c)),u=e.getDocumentationComment(n),g=e.getJsDocTags(n);return{isVariadic:!1,prefixDisplayParts:[...o,Uu(30)],suffixDisplayParts:[Uu(32)],separatorDisplayParts:XNe,parameters:_,documentation:u,tags:g}}var XNe=[Uu(28),Mc()];function Hrt(e,t,n,i,s,o){let c=(n?Krt:Xrt)(e,i,s,o);return hr(c,({isVariadic:_,parameters:u,prefix:g,suffix:m})=>{let h=[...t,...g],S=[...m,...Qrt(e,s,i)],T=e.getDocumentationComment(i),x=e.getJsDocTags();return{isVariadic:_,prefixDisplayParts:h,suffixDisplayParts:S,separatorDisplayParts:XNe,parameters:u,documentation:T,tags:x}})}function Qrt(e,t,n){return o1(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 Krt(e,t,n,i){let s=(e.target||e).typeParameters,o=qS(),c=(s||qe).map(u=>YNe(u,t,n,i,o)),_=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,n,dj)]:[];return t.getExpandedParameters(e).map(u=>{let g=A.createNodeArray([..._,...hr(u,h=>t.symbolToParameterDeclaration(h,n,dj))]),m=o1(h=>{o.writeList(2576,g,i,h)});return{isVariadic:!1,parameters:c,prefix:[Uu(30)],suffix:[Uu(32),...m]}})}function Xrt(e,t,n,i){let s=qS(),o=o1(u=>{if(e.typeParameters&&e.typeParameters.length){let g=A.createNodeArray(e.typeParameters.map(m=>t.typeParameterToDeclaration(m,n,dj)));s.writeList(53776,g,i,u)}}),c=t.getExpandedParameters(e),_=t.hasEffectiveRestParameter(e)?c.length===1?u=>!0:u=>{var g;return!!(u.length&&((g=Vn(u[u.length-1],lh))==null?void 0:g.links.checkFlags)&32768)}:u=>!1;return c.map(u=>({isVariadic:_(u),parameters:u.map(g=>Yrt(g,t,n,i,s)),prefix:[...o,Uu(21)],suffix:[Uu(22)]}))}function Yrt(e,t,n,i,s){let o=o1(u=>{let g=t.symbolToParameterDeclaration(e,n,dj);s.writeNode(4,g,i,u)}),c=t.isOptionalParameter(e.valueDeclaration),_=lh(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:o,isOptional:c,isRest:_}}function YNe(e,t,n,i,s){let o=o1(c=>{let _=t.typeParameterToDeclaration(e,n,dj);s.writeNode(4,_,i,c)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:o,isOptional:!1,isRest:!1}}var QH={};nt(QH,{getSmartSelectionRange:()=>Zrt});function Zrt(e,t){var n,i;let s={textSpan:Uc(t.getFullStart(),t.getEnd())},o=t;e:for(;;){let u=rnt(o);if(!u.length)break;for(let g=0;g<u.length;g++){let m=u[g-1],h=u[g],S=u[g+1];if(w0(h,t,!0)>e)break e;let T=hg(m0(t.text,h.end));if(T&&T.kind===2&&_(T.pos,T.end),ent(t,e,h)){if(GB(h)&&xo(o)&&!Pp(h.getStart(t),h.getEnd(),t)&&c(h.getStart(t),h.getEnd()),Fs(h)||gI(h)||M2(h)||e7(h)||m&&M2(m)||au(h)&&Lc(o)||TI(h)&&au(o)||oi(h)&&TI(o)&&u.length===1||Qb(h)||fv(h)||Ak(h)){o=h;break}if(gI(o)&&S&&nF(S)){let E=h.getFullStart()-2,O=S.getStart()+1;c(E,O)}let x=TI(h)&&nnt(m)&&int(S)&&!Pp(m.getStart(),S.getStart(),t),I=x?m.getEnd():h.getStart(),D=x?S.getStart():snt(t,h);if(Lf(h)&&((n=h.jsDoc)!=null&&n.length)&&c(Ea(h.jsDoc).getStart(),D),TI(h)){let E=h.getChildren()[0];E&&Lf(E)&&((i=E.jsDoc)!=null&&i.length)&&E.getStart()!==h.pos&&(I=Math.min(I,Ea(E.jsDoc).getStart()))}c(I,D),(ya(h)||e2(h))&&c(I+1,D-1),o=h;break}if(g===u.length-1)break e}}return s;function c(u,g){if(u!==g){let m=Uc(u,g);(!s||!KI(m,s.textSpan)&&bee(m,e))&&(s={textSpan:m,...s&&{parent:s}})}}function _(u,g){c(u,g);let m=u;for(;t.text.charCodeAt(m)===47;)m++;c(m,g)}}function ent(e,t,n){return w.assert(n.pos<=t),t<n.end?!0:n.getEnd()===t?W_(e,t).pos<n.end:!1}var tnt=uf(sc,Ol);function rnt(e){var t;if(Mi(e))return G3(e.getChildAt(0).getChildren(),tnt);if(Ck(e)){let[n,...i]=e.getChildren(),s=w.checkDefined(i.pop());w.assertEqual(n.kind,19),w.assertEqual(s.kind,20);let o=G3(i,_=>_===e.readonlyToken||_.kind===148||_===e.questionToken||_.kind===58),c=G3(o,({kind:_})=>_===23||_===168||_===24);return[n,U3(KH(c,({kind:_})=>_===59)),s]}if(s_(e)){let n=G3(e.getChildren(),c=>c===e.name||Ts(e.modifiers,c)),i=((t=n[0])==null?void 0:t.kind)===320?n[0]:void 0,s=i?n.slice(1):n,o=KH(s,({kind:c})=>c===59);return i?[i,U3(o)]:o}if(Bi(e)){let n=G3(e.getChildren(),s=>s===e.dotDotDotToken||s===e.name),i=G3(n,s=>s===n[0]||s===e.questionToken);return KH(i,({kind:s})=>s===64)}return Da(e)?KH(e.getChildren(),({kind:n})=>n===64):e.getChildren()}function G3(e,t){let n=[],i;for(let s of e)t(s)?(i=i||[],i.push(s)):(i&&(n.push(U3(i)),i=void 0),n.push(s));return i&&n.push(U3(i)),n}function KH(e,t,n=!0){if(e.length<2)return e;let i=Sc(e,t);if(i===-1)return e;let s=e.slice(0,i),o=e[i],c=xa(e),_=n&&c.kind===27,u=e.slice(i+1,_?e.length-1:void 0),g=QN([s.length?U3(s):void 0,o,u.length?U3(u):void 0]);return _?g.concat(c):g}function U3(e){return w.assertGreaterThanOrEqual(e.length,1),$d(Yb.createSyntaxList(e),e[0].pos,xa(e).end)}function nnt(e){let t=e&&e.kind;return t===19||t===23||t===21||t===286}function int(e){let t=e&&e.kind;return t===20||t===24||t===22||t===287}function snt(e,t){switch(t.kind){case 341:case 338:case 348:case 346:case 343:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var yv={};nt(yv,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>ont,getSymbolKind:()=>e6e,getSymbolModifiers:()=>ant});var ZNe=70246400;function e6e(e,t,n){let i=t6e(e,t,n);if(i!=="")return i;let s=rI(t);return s&32?Yo(t,231)?"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 t6e(e,t,n){let i=e.getRootSymbols(t);if(i.length===1&&Ea(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&>(n)||CS(n))return"parameter";let s=rI(t);if(s&3)return Vq(t)?"parameter":t.valueDeclaration&&Bw(t.valueDeclaration)?"const":t.valueDeclaration&&W6(t.valueDeclaration)?"using":t.valueDeclaration&&j6(t.valueDeclaration)?"await using":or(t.declarations,wF)?"let":i6e(t)?"local var":"var";if(s&16)return i6e(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 r6e(e){if(e.declarations&&e.declarations.length){let[t,...n]=e.declarations,i=Dr(n)&&kL(t)&&pt(n,o=>!kL(o))?65536:0,s=IE(t,i);if(s)return s.split(",")}return[]}function ant(e,t){if(!t)return"";let n=new Set(r6e(t));if(t.flags&2097152){let i=e.getAliasedSymbol(t);i!==t&&or(r6e(i),s=>{n.add(s)})}return t.flags&16777216&&n.add("optional"),n.size>0?ps(n.values()).join(","):""}function n6e(e,t,n,i,s,o,c,_){var u;let g=[],m=[],h=[],S=rI(t),T=c&1?t6e(e,t,s):"",x=!1,I=s.kind===110&&LF(s)||CS(s),D,E,O=!1;if(s.kind===110&&!I)return{displayParts:[kf(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(T!==""||S&32||S&2097152){if(T==="getter"||T==="setter"){let oe=On(t.declarations,de=>de.name===s);if(oe)switch(oe.kind){case 177:T="getter";break;case 178:T="setter";break;case 172:T="accessor";break;default:w.assertNever(oe)}else T="property"}let ne;if(o??(o=I?e.getTypeAtLocation(s):e.getTypeOfSymbolAtLocation(t,s)),s.parent&&s.parent.kind===211){let oe=s.parent.name;(oe===s||oe&&oe.getFullWidth()===0)&&(s=s.parent)}let ie;if(km(s)?ie=s:(uq(s)||xE(s)||s.parent&&(Wu(s.parent)||Ub(s.parent))&&Ns(t.valueDeclaration))&&(ie=s.parent),ie){ne=e.getResolvedSignature(ie);let oe=ie.kind===214||qs(ie)&&ie.expression.kind===108,de=oe?o.getConstructSignatures():o.getCallSignatures();if(ne&&!Ts(de,ne.target)&&!Ts(de,ne)&&(ne=de.length?de[0]:void 0),ne){switch(oe&&S&32?(T="constructor",U(o.symbol,T)):S&2097152?(T="alias",me(T),g.push(Mc()),oe&&(ne.flags&4&&(g.push(kf(128)),g.push(Mc())),g.push(kf(105)),g.push(Mc())),K(t)):U(t,T),T){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":g.push(Uu(59)),g.push(Mc()),!(Mn(o)&16)&&o.symbol&&(jn(g,NE(e,o.symbol,i,void 0,5)),g.push(XI())),oe&&(ne.flags&4&&(g.push(kf(128)),g.push(Mc())),g.push(kf(105)),g.push(Mc())),te(ne,de,262144);break;default:te(ne,de)}x=!0,O=de.length>1}}else if(yq(s)&&!(S&98304)||s.kind===137&&s.parent.kind===176){let oe=s.parent;if(t.declarations&&On(t.declarations,ye=>ye===(s.kind===137?oe.parent:oe))){let ye=oe.kind===176?o.getNonNullableType().getConstructSignatures():o.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(oe)?ne=ye[0]:ne=e.getSignatureFromDeclaration(oe),oe.kind===176?(T="constructor",U(o.symbol,T)):U(oe.kind===179&&!(o.symbol.flags&2048||o.symbol.flags&4096)?o.symbol:t,T),ne&&te(ne,ye),x=!0,O=ye.length>1}}}if(S&32&&!x&&!I&&(G(),Yo(t,231)?me("local class"):g.push(kf(86)),g.push(Mc()),K(t),V(t,n)),S&64&&c&2&&(B(),g.push(kf(120)),g.push(Mc()),K(t),V(t,n)),S&524288&&c&2&&(B(),g.push(kf(156)),g.push(Mc()),K(t),V(t,n),g.push(Mc()),g.push(EE(64)),g.push(Mc()),jn(g,u3(e,s.parent&&vd(s.parent)?e.getTypeAtLocation(s.parent):e.getDeclaredTypeOfSymbol(t),i,8388608))),S&384&&(B(),pt(t.declarations,ne=>LS(ne)&&Nb(ne))&&(g.push(kf(87)),g.push(Mc())),g.push(kf(94)),g.push(Mc()),K(t)),S&1536&&!I){B();let ne=Yo(t,267),ie=ne&&ne.name&&ne.name.kind===80;g.push(kf(ie?145:144)),g.push(Mc()),K(t)}if(S&262144&&c&2)if(B(),g.push(Uu(21)),g.push(cp("type parameter")),g.push(Uu(22)),g.push(Mc()),K(t),t.parent)$(),K(t.parent,i),V(t.parent,i);else{let ne=Yo(t,168);if(ne===void 0)return w.fail();let ie=ne.parent;if(ie)if(Ns(ie)){$();let oe=e.getSignatureFromDeclaration(ie);ie.kind===180?(g.push(kf(105)),g.push(Mc())):ie.kind!==179&&ie.name&&K(ie.symbol),jn(g,$q(e,oe,n,32))}else sd(ie)&&($(),g.push(kf(156)),g.push(Mc()),K(ie.symbol),V(ie.symbol,n))}if(S&8){T="enum member",U(t,"enum member");let ne=(u=t.declarations)==null?void 0:u[0];if(ne?.kind===306){let ie=e.getConstantValue(ne);ie!==void 0&&(g.push(Mc()),g.push(EE(64)),g.push(Mc()),g.push(Y_(Ste(ie),typeof ie=="number"?7:8)))}}if(t.flags&2097152){if(B(),!x||m.length===0&&h.length===0){let ne=e.getAliasedSymbol(t);if(ne!==t&&ne.declarations&&ne.declarations.length>0){let ie=ne.declarations[0],oe=vs(ie);if(oe&&!x){let de=TF(ie)&&ei(ie,128),ye=t.name!=="default"&&!de,H=n6e(e,ne,Fr(ie),i,oe,o,c,ye?t:ne);g.push(...H.displayParts),g.push(XI()),D=H.documentation,E=H.tags}else D=ne.getContextualDocumentationComment(ie,e),E=ne.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 270:g.push(kf(95)),g.push(Mc()),g.push(kf(145));break;case 277:g.push(kf(95)),g.push(Mc()),g.push(kf(t.declarations[0].isExportEquals?64:90));break;case 281:g.push(kf(95));break;default:g.push(kf(102))}g.push(Mc()),K(t),or(t.declarations,ne=>{if(ne.kind===271){let ie=ne;if(Mb(ie))g.push(Mc()),g.push(EE(64)),g.push(Mc()),g.push(kf(149)),g.push(Uu(21)),g.push(Y_(oc(XP(ie)),8)),g.push(Uu(22));else{let oe=e.getSymbolAtLocation(ie.moduleReference);oe&&(g.push(Mc()),g.push(EE(64)),g.push(Mc()),K(oe,i))}return!0}})}if(!x)if(T!==""){if(o){if(I?(B(),g.push(kf(110))):U(t,T),T==="property"||T==="accessor"||T==="getter"||T==="setter"||T==="JSX attribute"||S&3||T==="local var"||T==="index"||T==="using"||T==="await using"||I){if(g.push(Uu(59)),g.push(Mc()),o.symbol&&o.symbol.flags&262144&&T!=="index"){let ne=o1(ie=>{let oe=e.typeParameterToDeclaration(o,i,ZNe);F().writeNode(4,oe,Fr(Cs(i)),ie)});jn(g,ne)}else jn(g,u3(e,o,i));if(lh(t)&&t.links.target&&lh(t.links.target)&&t.links.target.links.tupleLabelDeclaration){let ne=t.links.target.links.tupleLabelDeclaration;w.assertNode(ne.name,je),g.push(Mc()),g.push(Uu(21)),g.push(cp(Ln(ne.name))),g.push(Uu(22))}}else if(S&16||S&8192||S&16384||S&131072||S&98304||T==="method"){let ne=o.getNonNullableType().getCallSignatures();ne.length&&(te(ne[0],ne),O=ne.length>1)}}}else T=e6e(e,t,s);if(m.length===0&&!O&&(m=t.getContextualDocumentationComment(i,e)),m.length===0&&S&4&&t.parent&&t.declarations&&or(t.parent.declarations,ne=>ne.kind===307))for(let ne of t.declarations){if(!ne.parent||ne.parent.kind!==226)continue;let ie=e.getSymbolAtLocation(ne.parent.right);if(ie&&(m=ie.getDocumentationComment(e),h=ie.getJsDocTags(e),m.length>0))break}if(m.length===0&&je(s)&&t.valueDeclaration&&Da(t.valueDeclaration)){let ne=t.valueDeclaration,ie=ne.parent,oe=ne.propertyName||ne.name;if(je(oe)&&np(ie)){let de=Ip(oe),ye=e.getTypeAtLocation(ie);m=po(ye.isUnion()?ye.types:[ye],H=>{let ve=H.getProperty(de);return ve?ve.getDocumentationComment(e):void 0})||qe}}return h.length===0&&!O&&(h=t.getContextualJsDocTags(i,e)),m.length===0&&D&&(m=D),h.length===0&&E&&(h=E),{displayParts:g,documentation:m,symbolKind:T,tags:h.length===0?void 0:h};function F(){return qS()}function B(){g.length&&g.push(XI()),G()}function G(){_&&(me("alias"),g.push(Mc()))}function $(){g.push(Mc()),g.push(kf(103)),g.push(Mc())}function K(ne,ie){let oe;_&&ne===t&&(ne=_),T==="index"&&(oe=e.getIndexInfosOfIndexSymbol(ne));let de=[];ne.flags&131072&&oe?(ne.parent&&(de=NE(e,ne.parent)),de.push(Uu(23)),oe.forEach((ye,H)=>{de.push(...u3(e,ye.keyType)),H!==oe.length-1&&(de.push(Mc()),de.push(Uu(52)),de.push(Mc()))}),de.push(Uu(24))):de=NE(e,ne,ie||n,void 0,7),jn(g,de),t.flags&16777216&&g.push(Uu(58))}function U(ne,ie){B(),ie&&(me(ie),ne&&!pt(ne.declarations,oe=>Lo(oe)||(Ao(oe)||ml(oe))&&!oe.name)&&(g.push(Mc()),K(ne)))}function me(ne){switch(ne){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":g.push(qq(ne));return;default:g.push(Uu(21)),g.push(qq(ne)),g.push(Uu(22));return}}function te(ne,ie,oe=0){jn(g,$q(e,ne,i,oe|32)),ie.length>1&&(g.push(Mc()),g.push(Uu(21)),g.push(EE(40)),g.push(Y_((ie.length-1).toString(),7)),g.push(Mc()),g.push(cp(ie.length===2?"overload":"overloads")),g.push(Uu(22))),m=ne.getDocumentationComment(e),h=ne.getJsDocTags(),ie.length>1&&m.length===0&&h.length===0&&(m=ie[0].getDocumentationComment(e),h=ie[0].getJsDocTags().filter(de=>de.name!=="deprecated"))}function V(ne,ie){let oe=o1(de=>{let ye=e.symbolToTypeParameterDeclarations(ne,ie,ZNe);F().writeList(53776,ye,Fr(Cs(ie)),de)});jn(g,oe)}}function ont(e,t,n,i,s,o=zk(s),c){return n6e(e,t,n,i,s,void 0,o,c)}function i6e(e){return e.parent?!1:or(e.declarations,t=>{if(t.kind===218)return!0;if(t.kind!==260&&t.kind!==262)return!1;for(let n=t.parent;!gS(n);n=n.parent)if(n.kind===307||n.kind===268)return!1;return!0})}var fn={};nt(fn,{ChangeTracker:()=>unt,LeadingTriviaOption:()=>o6e,TrailingTriviaOption:()=>c6e,applyChanges:()=>Npe,assignPositionsToNode:()=>eQ,createWriter:()=>u6e,deleteNode:()=>Sy,getAdjustedEndPosition:()=>yC,isThisTypeAnnotatable:()=>lnt,isValidLocationToAddComment:()=>_6e});function s6e(e){let t=e.__pos;return w.assert(typeof t=="number"),t}function Dpe(e,t){w.assert(typeof t=="number"),e.__pos=t}function a6e(e){let t=e.__end;return w.assert(typeof t=="number"),t}function Ppe(e,t){w.assert(typeof t=="number"),e.__end=t}var o6e=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(o6e||{}),c6e=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(c6e||{});function l6e(e,t){return ha(e,t,!1,!0)}function cnt(e,t){let n=t;for(;n<e.length;){let i=e.charCodeAt(n);if(Tm(i)){n++;continue}return i===47}return!1}var V3={leadingTriviaOption:0,trailingTriviaOption:0};function q3(e,t,n,i){return{pos:Hk(e,t,i),end:yC(e,n,i)}}function Hk(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=ld(T,e);return qI(t,x)?x:T}if(c===2){let T=dz(t,e.text);if(T?.length)return ld(T[0].pos,e)}let _=t.getFullStart(),u=t.getStart(e);if(_===u)return u;let g=ld(_,e);if(ld(u,e)===g)return c===1?_:u;if(i){let T=((s=sh(e.text,_))==null?void 0:s[0])||((o=m0(e.text,_))==null?void 0:o[0]);if(T)return ha(e.text,T.end,!0,!0)}let h=_>0?1:0,S=C0(lA(e,g)+h,e);return S=l6e(e.text,S),C0(lA(e,S),e)}function Ape(e,t,n){let{end:i}=t,{trailingTriviaOption:s}=n;if(s===2){let o=m0(e.text,i);if(o){let c=lA(e,t.end);for(let _ of o){if(_.kind===2||lA(e,_.pos)>c)break;if(lA(e,_.end)>c)return ha(e.text,_.end,!0,!0)}}}}function yC(e,t,n){var i;let{end:s}=t,{trailingTriviaOption:o}=n;if(o===0)return s;if(o===1){let u=Ki(m0(e.text,s),sh(e.text,s)),g=(i=u?.[u.length-1])==null?void 0:i.end;return g||s}let c=Ape(e,t,n);if(c)return c;let _=ha(e.text,s,!0);return _!==s&&(o===2||Lu(e.text.charCodeAt(_-1)))?_:s}function XH(e,t){return!!t&&!!e.parent&&(t.kind===28||t.kind===27&&e.parent.kind===210)}function lnt(e){return Ao(e)||jc(e)}var unt=class ive{constructor(t,n){this.newLineCharacter=t,this.formatContext=n,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new ive(yy(t.host,t.formatContext.options),t.formatContext)}static with(t,n){let i=ive.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:sL(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,q3(t,n,n,i))}deleteNodes(t,n,i={leadingTriviaOption:1},s){for(let o of n){let c=Hk(t,o,i,s),_=yC(t,o,i);this.deleteRange(t,{pos:c,end:_}),s=!!Ape(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=Hk(t,n,s),c=yC(t,i,s);this.deleteRange(t,{pos:o,end:c})}deleteNodeRangeExcludingEnd(t,n,i,s={leadingTriviaOption:1}){let o=Hk(t,n,s),c=i===void 0?t.text.length:Hk(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=V3){this.replaceRange(t,q3(t,n,n,s),i,s)}replaceNodeRange(t,n,i,s,o=V3){this.replaceRange(t,q3(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=V3){this.replaceRangeWithNodes(t,q3(t,n,n,s),i,s)}replaceNodeWithText(t,n,i){this.replaceRangeWithText(t,q3(t,n,n,V3),i)}replaceNodeRangeWithNodes(t,n,i,s,o=V3){this.replaceRangeWithNodes(t,q3(t,n,i,o),s,o)}nodeHasTrailingComment(t,n,i=V3){return!!Ape(t,n,i)}nextCommaToken(t,n){let i=KS(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,Dp(n),i,s)}insertNodesAt(t,n,i,s={}){this.replaceRangeWithNodes(t,Dp(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=ynt(t),o={prefix:s===0?void 0:this.newLineCharacter,suffix:(Lu(t.text.charCodeAt(s))?"":this.newLineCharacter)+(i?this.newLineCharacter:"")};ks(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=Kp()),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,Hk(t,n,o),i,this.getOptionsForInsertNodeBefore(n,i,s))}insertNodesBefore(t,n,i,s=!1,o={}){this.insertNodesAt(t,Hk(t,n,o),i,this.getOptionsForInsertNodeBefore(n,Ea(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=C0(n,t),c=Kce(t.text,o),_=_6e(t,c),u=$I(t,_?c:i),g=t.text.slice(o,c),m=`${_?"":this.newLineCharacter}//${s}${this.newLineCharacter}${g}`;this.insertText(t,u.getStart(t),m)}insertJsdocCommentBefore(t,n,i){let s=n.getStart(t);if(n.jsDoc)for(let _ of n.jsDoc)this.deleteRange(t,{pos:ld(_.getStart(t),t),end:yC(t,_,{})});let o=pL(t.text,s-1),c=t.text.slice(o,s);this.insertNodeAt(t,s,i,{suffix:this.newLineCharacter+c})}createJSDocText(t,n){let i=ga(n.jsDoc,o=>ys(o.comment)?A.createJSDocText(o.comment):o.comment),s=hg(n.jsDoc);return s&&Pp(s.pos,s.end,t)&&Dr(i)===0?void 0:A.createNodeArray(HN(i,A.createJSDocText(`
`)))}replaceJSDocComment(t,n,i){this.insertJsdocCommentBefore(t,_nt(n),A.createJSDocComment(this.createJSDocText(t,n),A.createNodeArray(i)))}addJSDocTags(t,n,i){let s=fP(n.jsDoc,c=>c.tags),o=i.filter(c=>!s.some((_,u)=>{let g=fnt(_,c);return g&&(s[u]=g),!!g}));this.replaceJSDocComment(t,n,[...s,...o])}filterJSDocTags(t,n,i){this.replaceJSDocComment(t,n,An(fP(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,Dp(n),i)}tryInsertTypeAnnotation(t,n,i){let s;if(Ns(n)){if(s=_o(n,22,t),!s){if(!Lo(n))return!1;s=Ea(n.parameters)}}else s=(n.kind===260?n.exclamationToken:n.questionToken)??n.name;return this.insertNodeAt(t,s.end,i,{prefix:": "}),!0}tryInsertThisTypeAnnotation(t,n,i){let s=_o(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=(_o(n,21,t)||Ea(n.parameters)).getStart(t);this.insertNodesAt(t,s,i,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(t,n,i){return Ii(t)||rl(t)?{suffix:i?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:oi(t)?{suffix:", "}:Bi(t)?Bi(n)?{suffix:", "}:{}:ya(t)&&sc(t.parent)||jm(t)?{suffix:", "}:a_(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=On(n.body.statements,o=>$l(o)&&ok(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=zo(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=Hk(t,n.getLastToken(),{});this.insertNodeAt(t,s,i,{prefix:Lu(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,YH(n).pos,i,this.getInsertNodeAtStartInsertOptions(t,n,s))}guessIndentationFromExistingMembers(t,n){let i,s=n;for(let o of YH(n)){if(dO(s,o,t))return;let c=o.getStart(t),_=yl.SmartIndenter.findFirstNonWhitespaceColumn(ld(c,t),c,t,this.formatContext.options);if(i===void 0)i=_;else if(_!==i)return;s=o}return i}computeIndentationForNewMember(t,n){let i=n.getStart(t);return yl.SmartIndenter.findFirstNonWhitespaceColumn(ld(i,t),i,t,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(t,n,i){let o=YH(n).length===0,c=!this.classesWithNodesInsertedAtStart.has(Ua(n));c&&this.classesWithNodesInsertedAtStart.set(Ua(n),{node:n,sourceFile:t});let _=Sa(n)&&(!wp(t)||!o),u=Sa(n)&&wp(t)&&o&&!c;return{indentation:i,prefix:(u?",":"")+this.newLineCharacter,suffix:_?",":hu(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,Ea(i));this.insertNodesAt(t,s,i,this.getInsertNodeAfterOptions(t,n))}insertNodeAfterWorker(t,n,i){return vnt(n,i)&&t.text.charCodeAt(n.end-1)!==59&&this.replaceRange(t,Dp(n.end),A.createToken(27)),yC(t,n,{})}getInsertNodeAfterOptions(t,n){let i=this.getInsertNodeAfterOptionsWorker(n);return{...i,prefix:n.end===t.end&&Ii(n)?i.prefix?`
${i.prefix}`:`
`:i.prefix}}getInsertNodeAfterOptionsWorker(t){switch(t.kind){case 263:case 267:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 260:case 11:case 80:return{prefix:", "};case 303:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 169:return{};default:return w.assert(Ii(t)||iF(t)),{suffix:this.newLineCharacter}}}insertName(t,n,i){if(w.assert(!n.name),n.kind===219){let s=_o(n,39,t),o=_o(n,21,t);o?(this.insertNodesAt(t,o.getStart(t),[A.createToken(100),A.createIdentifier(i)],{joiner:" "}),Sy(this,t,s)):(this.insertText(t,Ea(n.parameters).getStart(t),`function ${i}(`),this.replaceRange(t,s,A.createToken(22))),n.body.kind!==241&&(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=_o(n,n.kind===218?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,!Pp(i.elements[0].getStart(),i.parent.parent.getStart(),t))}insertNodeInListAfter(t,n,i,s=yl.SmartIndenter.getContainingList(n,t)){if(!s){w.fail("node is not a list element");return}let o=Lw(s,n);if(o<0)return;let c=n.getEnd();if(o!==s.length-1){let _=ki(t,n.end);if(_&&XH(n,_)){let u=s[o+1],g=l6e(t.text,u.getFullStart()),m=`${sa(_.kind)}${t.text.substring(_.end,g)}`;this.insertNodesAt(t,g,[i],{suffix:m})}}else{let _=n.getStart(t),u=ld(_,t),g,m=!1;if(s.length===1)g=28;else{let h=Cl(n.pos,t);g=XH(n,h)?h.kind:28,m=ld(s[o-1].getStart(t),t)!==u}if((cnt(t.text,n.end)||!Pp(s.pos,s.end,t))&&(m=!0),m){this.replaceRange(t,Dp(c),A.createToken(g));let h=yl.SmartIndenter.findFirstNonWhitespaceColumn(u,_,t,this.formatContext.options),S=ha(t.text,c,!0,!1);for(;S!==c&&Lu(t.text.charCodeAt(S-1));)S--;this.replaceRange(t,Dp(S),i,{indentation:h,prefix:this.newLineCharacter})}else this.replaceRange(t,Dp(c),i,{prefix:`${sa(g)} `})}}parenthesizeExpression(t,n){this.replaceRange(t,EJ(n),A.createParenthesizedExpression(n))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:t,sourceFile:n})=>{let[i,s]=dnt(t,n);if(i!==void 0&&s!==void 0){let o=YH(t).length===0,c=Pp(i,s,n);o&&c&&i!==s-1&&this.deleteRange(n,Dp(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&&xce(s.node,i))||(ks(i)?this.deleteRange(n,NJ(n,i)):Mpe.deleteDeclaration(this,t,n,i));t.forEach(n=>{let i=n.getSourceFile(),s=yl.SmartIndenter.getContainingList(n,i);if(n!==xa(s))return;let o=k8(s,c=>!t.has(c),s.length-2);o!==-1&&this.deleteRange(i,{pos:s[o].end,end:Epe(i,s[o+1])})})}getChanges(t){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();let n=ZH.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,t);return this.newFileChanges&&this.newFileChanges.forEach((i,s)=>{n.push(ZH.newFileChanges(s,i,this.newLineCharacter,this.formatContext))}),n}createNewFile(t,n,i){this.insertStatementsInNewFile(n,i,t)}};function _nt(e){if(e.kind!==219)return e;let t=e.parent.kind===172?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function fnt(e,t){if(e.kind===t.kind)switch(e.kind){case 341:{let n=e,i=t;return je(n.name)&&je(i.name)&&n.name.escapedText===i.name.escapedText?A.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,n.comment):void 0}case 342:return A.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 344:return A.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function Epe(e,t){return ha(e.text,Hk(e,t,{leadingTriviaOption:1}),!1,!0)}function pnt(e,t,n,i){let s=Epe(e,i);if(n===void 0||Pp(yC(e,t,{}),s,e))return s;let o=Cl(i.getStart(e),e);if(XH(t,o)){let c=Cl(t.getStart(e),e);if(XH(n,c)){let _=ha(e.text,o.getEnd(),!0,!0);if(Pp(c.getStart(e),o.getStart(e),e))return Lu(e.text.charCodeAt(_-1))?_-1:_;if(Lu(e.text.charCodeAt(_)))return _}}return s}function dnt(e,t){let n=_o(e,19,t),i=_o(e,20,t);return[n?.end,i?.end]}function YH(e){return Sa(e)?e.properties:e.members}var ZH;(e=>{function t(_,u,g,m){return Vi(vw(_,h=>h.sourceFile.path),h=>{let S=h[0].sourceFile,T=lf(h,(I,D)=>I.range.pos-D.range.pos||I.range.end-D.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=Vi(T,I=>{let D=mv(I.range),E=I.kind===1?Fr(ic(I.node))??I.sourceFile:I.kind===2?Fr(ic(I.nodes[0]))??I.sourceFile:I.sourceFile,O=s(I,E,S,u,g,m);if(!(D.length===O.length&&ole(E.text,O,D.start)))return s3(D,O)});return x.length>0?{fileName:S.fileName,textChanges:x}:void 0})}e.getTextChangesFromChanges=t;function n(_,u,g,m){let h=i(EO(_),u,g,m);return{fileName:_,textChanges:[s3(pu(0,0),h)],isNewFile:!0}}e.newFileChanges=n;function i(_,u,g,m){let h=ga(u,x=>x.statements.map(I=>I===4?"":c(I,x.oldFile,g).text)).join(g),S=$2("any file name",h,{languageVersion:99,jsDocParsingMode:1},!0,_),T=yl.formatDocument(S,m);return Npe(h,T)+g}e.newFileChangesWorker=i;function s(_,u,g,m,h,S){var T;if(_.kind===0)return"";if(_.kind===3)return _.text;let{options:x={},range:{pos:I}}=_,D=F=>o(F,u,g,I,x,m,h,S),E=_.kind===2?_.nodes.map(F=>Sw(D(F),m)).join(((T=_.options)==null?void 0:T.joiner)||m):D(_.node),O=x.indentation!==void 0||ld(I,u)===I?E:E.replace(/^\s+/,"");return(x.prefix||"")+O+(!x.suffix||Jo(O,x.suffix)?"":x.suffix)}function o(_,u,g,m,{indentation:h,prefix:S,delta:T},x,I,D){let{node:E,text:O}=c(_,u,x);D&&D(E,O);let F=CL(I,u),B=h!==void 0?h:yl.SmartIndenter.getIndentation(m,g,F,S===x||ld(m,u)===m);T===void 0&&(T=yl.SmartIndenter.shouldIndentChildNode(F,_)&&F.indentSize||0);let G={text:O,getLineAndCharacterOfPosition(K){return Qs(this,K)}},$=yl.formatNodeGivenIndentation(E,G,u.languageVariant,B,T,{...I,options:F});return Npe(O,$)}function c(_,u,g){let m=u6e(g),h=y3(g);return $0({newLine:h,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},m).writeNode(4,_,u,m),{text:m.getText(),node:eQ(_)}}e.getNonformattedText=c})(ZH||(ZH={}));function Npe(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 gnt={...FM,factory:J4(FM.factory.flags|1,FM.factory.baseFactory)};function eQ(e){let t=Ir(e,eQ,gnt,hnt,eQ),n=So(t)?t:Object.create(t);return $d(n,s6e(e),a6e(e)),n}function hnt(e,t,n,i,s){let o=Ur(e,t,n,i,s);if(!o)return o;w.assert(e);let c=o===e?A.createNodeArray(o.slice(0)):o;return $d(c,s6e(e),a6e(e)),c}function u6e(e){let t=0,n=y4(e),i=H=>{H&&Dpe(H,t)},s=H=>{H&&Ppe(H,t)},o=H=>{H&&Dpe(H,t)},c=H=>{H&&Ppe(H,t)},_=H=>{H&&Dpe(H,t)},u=H=>{H&&Ppe(H,t)};function g(H,ve){if(ve||!mnt(H)){t=n.getTextPos();let Ge=0;for(;ih(H.charCodeAt(H.length-Ge-1));)Ge++;t-=Ge}}function m(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 D(H){n.writeParameter(H),g(H,!1)}function E(H){n.writeProperty(H),g(H,!1)}function O(H){n.writeSpace(H),g(H,!1)}function F(H){n.writeStringLiteral(H),g(H,!1)}function B(H,ve){n.writeSymbol(H,ve),g(H,!1)}function G(H){n.writeLine(H)}function $(){n.increaseIndent()}function K(){n.decreaseIndent()}function U(){return n.getText()}function me(H){n.rawWrite(H),g(H,!1)}function te(H){n.writeLiteral(H),g(H,!0)}function V(){return n.getTextPos()}function ne(){return n.getLine()}function ie(){return n.getColumn()}function oe(){return n.getIndent()}function de(){return n.isAtStartOfLine()}function ye(){n.clear(),t=0}return{onBeforeEmitNode:i,onAfterEmitNode:s,onBeforeEmitNodeArray:o,onAfterEmitNodeArray:c,onBeforeEmitToken:_,onAfterEmitToken:u,write:m,writeComment:h,writeKeyword:S,writeOperator:T,writePunctuation:x,writeTrailingSemicolon:I,writeParameter:D,writeProperty:E,writeSpace:O,writeStringLiteral:F,writeSymbol:B,writeLine:G,increaseIndent:$,decreaseIndent:K,getText:U,rawWrite:me,writeLiteral:te,getTextPos:V,getLine:ne,getColumn:ie,getIndent:oe,isAtStartOfLine:de,hasTrailingComment:()=>n.hasTrailingComment(),hasTrailingWhitespace:()=>n.hasTrailingWhitespace(),clear:ye}}function ynt(e){let t;for(let g of e.statements)if(wm(g))t=g;else break;let n=0,i=e.text;if(t)return n=t.end,u(),n;let s=q8(i);s!==void 0&&(n=s.length,u());let o=sh(i,n);if(!o)return n;let c,_;for(let g of o){if(g.kind===3){if(bF(i,g.pos)){c={range:g,pinnedOrTripleSlash:!0};continue}}else if(ZB(i,g.pos,g.end)){c={range:g,pinnedOrTripleSlash:!0};continue}if(c){if(c.pinnedOrTripleSlash)break;let m=e.getLineAndCharacterOfPosition(g.pos).line,h=e.getLineAndCharacterOfPosition(c.range.end).line;if(m>=h+2)break}if(e.statements.length){_===void 0&&(_=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);let m=e.getLineAndCharacterOfPosition(g.end).line;if(_<m+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);Lu(g)&&(n++,n<i.length&&g===13&&i.charCodeAt(n)===10&&n++)}}}function _6e(e,t){return!pv(e,t)&&!iC(e,t)&&!kq(e,t)&&!Ace(e,t)}function vnt(e,t){return(s_(e)||ds(e))&&iF(t)&&t.name.kind===167||I6(e)&&I6(t)}var Mpe;(e=>{function t(o,c,_,u){switch(u.kind){case 169:{let T=u.parent;Lo(T)&&T.parameters.length===1&&!_o(T,21,_)?o.replaceNodeWithText(_,u,"()"):$3(o,c,_,u);break}case 272:case 271:let g=_.imports.length&&u===Ea(_.imports).parent||u===On(_.statements,a2);Sy(o,_,u,{leadingTriviaOption:g?0:Lf(u)?2:3});break;case 208:let m=u.parent;m.kind===207&&u!==xa(m.elements)?Sy(o,_,u):$3(o,c,_,u);break;case 260:s(o,c,_,u);break;case 168:$3(o,c,_,u);break;case 276:let S=u.parent;S.elements.length===1?i(o,_,S):$3(o,c,_,u);break;case 274:i(o,_,u);break;case 27:Sy(o,_,u,{trailingTriviaOption:0});break;case 100:Sy(o,_,u,{leadingTriviaOption:0});break;case 263:case 262:Sy(o,_,u,{leadingTriviaOption:Lf(u)?2:3});break;default:u.parent?Cd(u.parent)&&u.parent.name===u?n(o,_,u.parent):qs(u.parent)&&Ts(u.parent.arguments,u)?$3(o,c,_,u):Sy(o,_,u):Sy(o,_,u)}}e.deleteDeclaration=t;function n(o,c,_){if(!_.namedBindings)Sy(o,c,_.parent);else{let u=_.name.getStart(c),g=ki(c,_.name.end);if(g&&g.kind===28){let m=ha(c.text,g.end,!1,!0);o.deleteRange(c,{pos:u,end:m})}else Sy(o,c,_.name)}}function i(o,c,_){if(_.parent.name){let u=w.checkDefined(ki(c,_.pos-1));o.deleteRange(c,{pos:u.getStart(c),end:_.end})}else{let u=Lb(_,272);Sy(o,c,u)}}function s(o,c,_,u){let{parent:g}=u;if(g.kind===299){o.deleteNodeRange(_,_o(g,21,_),_o(g,22,_));return}if(g.declarations.length!==1){$3(o,c,_,u);return}let m=g.parent;switch(m.kind){case 250:case 249:o.replaceNode(_,u,A.createObjectLiteralExpression());break;case 248:Sy(o,_,g);break;case 243:Sy(o,_,m,{leadingTriviaOption:Lf(m)?2:3});break;default:w.assertNever(m)}}})(Mpe||(Mpe={}));function Sy(e,t,n,i={leadingTriviaOption:1}){let s=Hk(t,n,i),o=yC(t,n,i);e.deleteRange(t,{pos:s,end:o})}function $3(e,t,n,i){let s=w.checkDefined(yl.SmartIndenter.getContainingList(i,n)),o=Lw(s,i);if(w.assert(o!==-1),s.length===1){Sy(e,n,i);return}w.assert(!t.has(i),"Deleting a node twice"),t.add(i),e.deleteRange(n,{pos:Epe(n,i),end:o===s.length-1?yC(n,i,{}):pnt(n,i,s[o-1],s[o+1])})}var yl={};nt(yl,{FormattingContext:()=>p6e,FormattingRequestKind:()=>f6e,RuleAction:()=>d6e,RuleFlags:()=>m6e,SmartIndenter:()=>$m,anyContext:()=>tQ,createTextRangeWithKind:()=>sQ,formatDocument:()=>uit,formatNodeGivenIndentation:()=>hit,formatOnClosingCurly:()=>lit,formatOnEnter:()=>ait,formatOnOpeningCurly:()=>cit,formatOnSemicolon:()=>oit,formatSelection:()=>_it,getAllRules:()=>g6e,getFormatContext:()=>Ynt,getFormattingScanner:()=>Rpe,getIndentationString:()=>Hpe,getRangeOfEnclosingComment:()=>z6e});var f6e=(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))(f6e||{}),p6e=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=_o(e,19,this.sourceFile),n=_o(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}},bnt=ah(99,!1,0),Snt=ah(99,!1,1);function Rpe(e,t,n,i,s){let o=t===1?Snt:bnt;o.setText(e),o.resetTokenState(n);let c=!0,_,u,g,m,h,S=s({advance:T,readTokenInfo:G,readEOFTokenRange:K,isOnToken:U,isOnEOF:me,getCurrentLeadingTrivia:()=>_,lastTrailingTriviaWasNewLine:()=>c,skipToEndOf:V,skipToStartOf:ne,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&&xa(u).kind===4:o.scan(),_=void 0,u=void 0;let oe=o.getTokenFullStart();for(;oe<i;){let de=o.getToken();if(!Kw(de))break;o.scan();let ye={pos:oe,end:o.getTokenFullStart(),kind:de};oe=o.getTokenFullStart(),_=jr(_,ye)}g=o.getTokenFullStart()}function x(ie){switch(ie.kind){case 34:case 72:case 73:case 50:case 49:return!0}return!1}function I(ie){if(ie.parent)switch(ie.parent.kind){case 291:case 286:case 287:case 285:return F_(ie.kind)||ie.kind===80}return!1}function D(ie){return N2(ie)||Wm(ie)&&h?.token.kind===12}function E(ie){return ie.kind===14}function O(ie){return ie.kind===17||ie.kind===18}function F(ie){return ie.parent&&Bm(ie.parent)&&ie.parent.initializer===ie}function B(ie){return ie===44||ie===69}function G(ie){w.assert(U());let oe=x(ie)?1:E(ie)?2:O(ie)?3:I(ie)?4:D(ie)?5:F(ie)?6:0;if(h&&oe===m)return te(h,ie);o.getTokenFullStart()!==g&&(w.assert(h!==void 0),o.resetTokenState(g),o.scan());let de=$(ie,oe),ye=sQ(o.getTokenFullStart(),o.getTokenEnd(),de);for(u&&(u=void 0);o.getTokenFullStart()<i&&(de=o.scan(),!!Kw(de));){let H=sQ(o.getTokenFullStart(),o.getTokenEnd(),de);if(u||(u=[]),u.push(H),de===4){o.scan();break}}return h={leadingTrivia:_,trailingTrivia:u,token:ye},te(h,ie)}function $(ie,oe){let de=o.getToken();switch(m=0,oe){case 1:if(de===32){m=1;let ye=o.reScanGreaterToken();return w.assert(ie.kind===ye),ye}break;case 2:if(B(de)){m=2;let ye=o.reScanSlashToken();return w.assert(ie.kind===ye),ye}break;case 3:if(de===20)return m=3,o.reScanTemplateToken(!1);break;case 4:return m=4,o.scanJsxIdentifier();case 5:return m=5,o.reScanJsxToken(!1);case 6:return m=6,o.reScanJsxAttributeValue();case 0:break;default:w.assertNever(oe)}return de}function K(){return w.assert(me()),sQ(o.getTokenFullStart(),o.getTokenEnd(),1)}function U(){let ie=h?h.token.kind:o.getToken();return ie!==1&&!Kw(ie)}function me(){return(h?h.token.kind:o.getToken())===1}function te(ie,oe){return Xx(oe)&&ie.token.kind!==oe.kind&&(ie.token.kind=oe.kind),ie}function V(ie){o.resetTokenState(ie.end),g=o.getTokenFullStart(),m=void 0,h=void 0,c=!1,_=void 0,u=void 0}function ne(ie){o.resetTokenState(ie.pos),g=o.getTokenFullStart(),m=void 0,h=void 0,c=!1,_=void 0,u=void 0}}var tQ=qe,d6e=(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))(d6e||{}),m6e=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(m6e||{});function g6e(){let e=[];for(let $=0;$<=165;$++)$!==1&&e.push($);function t(...$){return{tokens:e.filter(K=>!$.some(U=>U===K)),isSpecific:!1}}let n={tokens:e,isSpecific:!1},i=QE([...e,3]),s=QE([...e,1]),o=y6e(83,165),c=y6e(30,79),_=[103,104,165,130,142,152],u=[46,47,55,54],g=[9,10,80,21,23,19,110,105],m=[80,21,110,105],h=[80,22,24,105],S=[80,21,110,105],T=[80,22,24,105],x=[2,3],I=[80,...Nq],D=i,E=QE([80,32,3,86,95,102]),O=QE([22,3,92,113,98,93,85]),F=[$n("IgnoreBeforeComment",n,x,tQ,1),$n("IgnoreAfterLineComment",2,n,tQ,1),$n("NotSpaceBeforeColon",n,59,[zi,mj,S6e],16),$n("SpaceAfterColon",59,n,[zi,mj,jnt],4),$n("NoSpaceBeforeQuestionMark",n,58,[zi,mj,S6e],16),$n("SpaceAfterQuestionMarkInConditionalOperator",58,n,[zi,Cnt],4),$n("NoSpaceAfterQuestionMark",58,n,[zi,xnt],16),$n("NoSpaceBeforeDot",n,[25,29],[zi,Xnt],16),$n("NoSpaceAfterDot",[25,29],n,[zi],16),$n("NoSpaceBetweenImportParenInImportType",102,21,[zi,Ont],16),$n("NoSpaceAfterUnaryPrefixOperator",u,g,[zi,mj],16),$n("NoSpaceAfterUnaryPreincrementOperator",46,m,[zi],16),$n("NoSpaceAfterUnaryPredecrementOperator",47,S,[zi],16),$n("NoSpaceBeforeUnaryPostincrementOperator",h,46,[zi,L6e],16),$n("NoSpaceBeforeUnaryPostdecrementOperator",T,47,[zi,L6e],16),$n("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[zi,X0],4),$n("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[zi,X0],4),$n("SpaceAfterAddWhenFollowedByPreincrement",40,46,[zi,X0],4),$n("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[zi,X0],4),$n("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[zi,X0],4),$n("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[zi,X0],4),$n("NoSpaceAfterCloseBrace",20,[28,27],[zi],16),$n("NewLineBeforeCloseBraceInBlockContext",i,20,[k6e],8),$n("SpaceAfterCloseBrace",20,t(22),[zi,Dnt],4),$n("SpaceBetweenCloseBraceAndElse",20,93,[zi],4),$n("SpaceBetweenCloseBraceAndWhile",20,117,[zi],4),$n("NoSpaceBetweenEmptyBraceBrackets",19,20,[zi,P6e],16),$n("SpaceAfterConditionalClosingParen",22,23,[gj],4),$n("NoSpaceBetweenFunctionKeywordAndStar",100,42,[w6e],16),$n("SpaceAfterStarInGeneratorDeclaration",42,80,[w6e],4),$n("SpaceAfterFunctionInFuncDecl",100,n,[Qk],4),$n("NewLineAfterOpenBraceInBlockContext",19,n,[k6e],8),$n("SpaceAfterGetSetInMember",[139,153],80,[Qk],4),$n("NoSpaceBetweenYieldKeywordAndStar",127,42,[zi,O6e],16),$n("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],n,[zi,O6e],4),$n("NoSpaceBetweenReturnAndSemicolon",107,27,[zi],16),$n("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],n,[zi],4),$n("SpaceAfterLetConstInVariableDeclaration",[121,87],n,[zi,znt],4),$n("NoSpaceBeforeOpenParenInFuncCall",n,21,[zi,Ent,Nnt],16),$n("SpaceBeforeBinaryKeywordOperator",n,_,[zi,X0],4),$n("SpaceAfterBinaryKeywordOperator",_,n,[zi,X0],4),$n("SpaceAfterVoidOperator",116,n,[zi,qnt],4),$n("SpaceBetweenAsyncAndOpenParen",134,21,[Fnt,zi],4),$n("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[zi],4),$n("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[zi],16),$n("SpaceBeforeJsxAttribute",n,80,[Lnt,zi],4),$n("SpaceBeforeSlashInJsxOpeningElement",n,44,[M6e,zi],4),$n("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[M6e,zi],16),$n("NoSpaceBeforeEqualInJsxAttribute",n,64,[E6e,zi],16),$n("NoSpaceAfterEqualInJsxAttribute",64,n,[E6e,zi],16),$n("NoSpaceBeforeJsxNamespaceColon",80,59,[N6e],16),$n("NoSpaceAfterJsxNamespaceColon",59,80,[N6e],16),$n("NoSpaceAfterModuleImport",[144,149],21,[zi],16),$n("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,[zi],4),$n("SpaceBeforeCertainTypeScriptKeywords",n,[96,119,161],[zi],4),$n("SpaceAfterModuleName",11,19,[Jnt],4),$n("SpaceBeforeArrow",n,39,[zi],4),$n("SpaceAfterArrow",39,n,[zi],4),$n("NoSpaceAfterEllipsis",26,80,[zi],16),$n("NoSpaceAfterOptionalParameters",58,[22,28],[zi,mj],16),$n("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[zi,Gnt],16),$n("NoSpaceBeforeOpenAngularBracket",I,30,[zi,hj],16),$n("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[zi,hj],16),$n("NoSpaceAfterOpenAngularBracket",30,n,[zi,hj],16),$n("NoSpaceBeforeCloseAngularBracket",n,32,[zi,hj],16),$n("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[zi,hj,Int,Vnt],16),$n("SpaceBeforeAt",[22,80],60,[zi],4),$n("NoSpaceAfterAt",60,n,[zi],16),$n("SpaceAfterDecorator",n,[128,80,95,90,86,126,125,123,124,139,153,23,42],[Bnt],4),$n("NoSpaceBeforeNonNullAssertionOperator",n,54,[zi,$nt],16),$n("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[zi,Unt],16),$n("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[zi],4)],B=[$n("SpaceAfterConstructor",137,21,[lp("insertSpaceAfterConstructor"),zi],4),$n("NoSpaceAfterConstructor",137,21,[qm("insertSpaceAfterConstructor"),zi],16),$n("SpaceAfterComma",28,n,[lp("insertSpaceAfterCommaDelimiter"),zi,zpe,Mnt,Rnt],4),$n("NoSpaceAfterComma",28,n,[qm("insertSpaceAfterCommaDelimiter"),zi,zpe],16),$n("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[lp("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),Qk],4),$n("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[qm("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),Qk],16),$n("SpaceAfterKeywordInControl",o,21,[lp("insertSpaceAfterKeywordsInControlFlowStatements"),gj],4),$n("NoSpaceAfterKeywordInControl",o,21,[qm("insertSpaceAfterKeywordsInControlFlowStatements"),gj],16),$n("SpaceAfterOpenParen",21,n,[lp("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),zi],4),$n("SpaceBeforeCloseParen",n,22,[lp("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),zi],4),$n("SpaceBetweenOpenParens",21,21,[lp("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),zi],4),$n("NoSpaceBetweenParens",21,22,[zi],16),$n("NoSpaceAfterOpenParen",21,n,[qm("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),zi],16),$n("NoSpaceBeforeCloseParen",n,22,[qm("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),zi],16),$n("SpaceAfterOpenBracket",23,n,[lp("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),zi],4),$n("SpaceBeforeCloseBracket",n,24,[lp("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),zi],4),$n("NoSpaceBetweenBrackets",23,24,[zi],16),$n("NoSpaceAfterOpenBracket",23,n,[qm("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),zi],16),$n("NoSpaceBeforeCloseBracket",n,24,[qm("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),zi],16),$n("SpaceAfterOpenBrace",19,n,[b6e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),T6e],4),$n("SpaceBeforeCloseBrace",n,20,[b6e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),T6e],4),$n("NoSpaceBetweenEmptyBraceBrackets",19,20,[zi,P6e],16),$n("NoSpaceAfterOpenBrace",19,n,[Fpe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),zi],16),$n("NoSpaceBeforeCloseBrace",n,20,[Fpe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),zi],16),$n("SpaceBetweenEmptyBraceBrackets",19,20,[lp("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),$n("NoSpaceBetweenEmptyBraceBrackets",19,20,[Fpe("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),zi],16),$n("SpaceAfterTemplateHeadAndMiddle",[16,17],n,[lp("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),A6e],4,1),$n("SpaceBeforeTemplateMiddleAndTail",n,[17,18],[lp("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),zi],4),$n("NoSpaceAfterTemplateHeadAndMiddle",[16,17],n,[qm("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),A6e],16,1),$n("NoSpaceBeforeTemplateMiddleAndTail",n,[17,18],[qm("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),zi],16),$n("SpaceAfterOpenBraceInJsxExpression",19,n,[lp("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),zi,nQ],4),$n("SpaceBeforeCloseBraceInJsxExpression",n,20,[lp("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),zi,nQ],4),$n("NoSpaceAfterOpenBraceInJsxExpression",19,n,[qm("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),zi,nQ],16),$n("NoSpaceBeforeCloseBraceInJsxExpression",n,20,[qm("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),zi,nQ],16),$n("SpaceAfterSemicolonInFor",27,n,[lp("insertSpaceAfterSemicolonInForStatements"),zi,Lpe],4),$n("NoSpaceAfterSemicolonInFor",27,n,[qm("insertSpaceAfterSemicolonInForStatements"),zi,Lpe],16),$n("SpaceBeforeBinaryOperator",n,c,[lp("insertSpaceBeforeAndAfterBinaryOperators"),zi,X0],4),$n("SpaceAfterBinaryOperator",c,n,[lp("insertSpaceBeforeAndAfterBinaryOperators"),zi,X0],4),$n("NoSpaceBeforeBinaryOperator",n,c,[qm("insertSpaceBeforeAndAfterBinaryOperators"),zi,X0],16),$n("NoSpaceAfterBinaryOperator",c,n,[qm("insertSpaceBeforeAndAfterBinaryOperators"),zi,X0],16),$n("SpaceBeforeOpenParenInFuncDecl",n,21,[lp("insertSpaceBeforeFunctionParenthesis"),zi,Qk],4),$n("NoSpaceBeforeOpenParenInFuncDecl",n,21,[qm("insertSpaceBeforeFunctionParenthesis"),zi,Qk],16),$n("NewLineBeforeOpenBraceInControl",O,19,[lp("placeOpenBraceOnNewLineForControlBlocks"),gj,Bpe],8,1),$n("NewLineBeforeOpenBraceInFunction",D,19,[lp("placeOpenBraceOnNewLineForFunctions"),Qk,Bpe],8,1),$n("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",E,19,[lp("placeOpenBraceOnNewLineForFunctions"),I6e,Bpe],8,1),$n("SpaceAfterTypeAssertion",32,n,[lp("insertSpaceAfterTypeAssertion"),zi,Gpe],4),$n("NoSpaceAfterTypeAssertion",32,n,[qm("insertSpaceAfterTypeAssertion"),zi,Gpe],16),$n("SpaceBeforeTypeAnnotation",n,[58,59],[lp("insertSpaceBeforeTypeAnnotation"),zi,jpe],4),$n("NoSpaceBeforeTypeAnnotation",n,[58,59],[qm("insertSpaceBeforeTypeAnnotation"),zi,jpe],16),$n("NoOptionalSemicolon",27,s,[v6e("semicolons","remove"),Qnt],32),$n("OptionalSemicolon",n,s,[v6e("semicolons","insert"),Knt],64)],G=[$n("NoSpaceBeforeSemicolon",n,27,[zi],16),$n("SpaceBeforeOpenBraceInControl",O,19,[Ope("placeOpenBraceOnNewLineForControlBlocks"),gj,Jpe,Wpe],4,1),$n("SpaceBeforeOpenBraceInFunction",D,19,[Ope("placeOpenBraceOnNewLineForFunctions"),Qk,rQ,Jpe,Wpe],4,1),$n("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",E,19,[Ope("placeOpenBraceOnNewLineForFunctions"),I6e,Jpe,Wpe],4,1),$n("NoSpaceBeforeComma",n,28,[zi],16),$n("NoSpaceBeforeOpenBracket",t(134,84),23,[zi],16),$n("NoSpaceAfterCloseBracket",24,n,[zi,Wnt],16),$n("SpaceAfterSemicolon",27,n,[zi],4),$n("SpaceBetweenForAndAwaitKeyword",99,135,[zi],4),$n("SpaceBetweenDotDotDotAndTypeName",26,I,[zi],16),$n("SpaceBetweenStatements",[22,92,93,84],n,[zi,zpe,Tnt],4),$n("SpaceAfterTryCatchFinally",[113,85,98],19,[zi],4)];return[...F,...B,...G]}function $n(e,t,n,i,s,o=0){return{leftTokenRange:h6e(t),rightTokenRange:h6e(n),rule:{debugName:e,context:i,action:s,flags:o}}}function QE(e){return{tokens:e,isSpecific:!0}}function h6e(e){return typeof e=="number"?QE([e]):ks(e)?QE(e):e}function y6e(e,t,n=[]){let i=[];for(let s=e;s<=t;s++)Ts(n,s)||i.push(s);return QE(i)}function v6e(e,t){return n=>n.options&&n.options[e]===t}function lp(e){return t=>t.options&&bo(t.options,e)&&!!t.options[e]}function Fpe(e){return t=>t.options&&bo(t.options,e)&&!t.options[e]}function qm(e){return t=>!t.options||!bo(t.options,e)||!t.options[e]}function Ope(e){return t=>!t.options||!bo(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function b6e(e){return t=>!t.options||!bo(t.options,e)||!!t.options[e]}function Lpe(e){return e.contextNode.kind===248}function Tnt(e){return!Lpe(e)}function X0(e){switch(e.contextNode.kind){case 226:return e.contextNode.operatorToken.kind!==28;case 227:case 194:case 234:case 281:case 276:case 182:case 192:case 193:case 238:return!0;case 208:case 265:case 271:case 277:case 260:case 169:case 306:case 172:case 171:return e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 249:case 168:return e.currentTokenSpan.kind===103||e.nextTokenSpan.kind===103||e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 250:return e.currentTokenSpan.kind===165||e.nextTokenSpan.kind===165}return!1}function mj(e){return!X0(e)}function S6e(e){return!jpe(e)}function jpe(e){let t=e.contextNode.kind;return t===172||t===171||t===169||t===260||Yx(t)}function knt(e){return ds(e.contextNode)&&e.contextNode.questionToken}function xnt(e){return!knt(e)}function Cnt(e){return e.contextNode.kind===227||e.contextNode.kind===194}function Wpe(e){return e.TokensAreOnSameLine()||rQ(e)}function T6e(e){return e.contextNode.kind===206||e.contextNode.kind===200||wnt(e)}function Bpe(e){return rQ(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function k6e(e){return x6e(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function wnt(e){return x6e(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function x6e(e){return C6e(e.contextNode)}function rQ(e){return C6e(e.nextTokenParent)}function C6e(e){if(D6e(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function Qk(e){switch(e.contextNode.kind){case 262:case 174:case 173:case 177:case 178:case 179:case 218:case 176:case 219:case 264:return!0}return!1}function Int(e){return!Qk(e)}function w6e(e){return e.contextNode.kind===262||e.contextNode.kind===218}function I6e(e){return D6e(e.contextNode)}function D6e(e){switch(e.kind){case 263:case 231:case 264:case 266:case 187:case 267:case 278:case 279:case 272:case 275:return!0}return!1}function Dnt(e){switch(e.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{let t=e.currentTokenParent.parent;if(!t||t.kind!==219&&t.kind!==218)return!0}}return!1}function gj(e){switch(e.contextNode.kind){case 245:case 255:case 248:case 249:case 250:case 247:case 258:case 246:case 254:case 299:return!0;default:return!1}}function P6e(e){return e.contextNode.kind===210}function Pnt(e){return e.contextNode.kind===213}function Ant(e){return e.contextNode.kind===214}function Ent(e){return Pnt(e)||Ant(e)}function Nnt(e){return e.currentTokenSpan.kind!==28}function Mnt(e){return e.nextTokenSpan.kind!==24}function Rnt(e){return e.nextTokenSpan.kind!==22}function Fnt(e){return e.contextNode.kind===219}function Ont(e){return e.contextNode.kind===205}function zi(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function A6e(e){return e.contextNode.kind!==12}function zpe(e){return e.contextNode.kind!==284&&e.contextNode.kind!==288}function nQ(e){return e.contextNode.kind===294||e.contextNode.kind===293}function Lnt(e){return e.nextTokenParent.kind===291||e.nextTokenParent.kind===295&&e.nextTokenParent.parent.kind===291}function E6e(e){return e.contextNode.kind===291}function jnt(e){return e.nextTokenParent.kind!==295}function N6e(e){return e.nextTokenParent.kind===295}function M6e(e){return e.contextNode.kind===285}function Wnt(e){return!Qk(e)&&!rQ(e)}function Bnt(e){return e.TokensAreOnSameLine()&&rp(e.contextNode)&&R6e(e.currentTokenParent)&&!R6e(e.nextTokenParent)}function R6e(e){for(;e&>(e);)e=e.parent;return e&&e.kind===170}function znt(e){return e.currentTokenParent.kind===261&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function Jpe(e){return e.formattingRequestKind!==2}function Jnt(e){return e.contextNode.kind===267}function Gnt(e){return e.contextNode.kind===187}function Unt(e){return e.contextNode.kind===180}function F6e(e,t){if(e.kind!==30&&e.kind!==32)return!1;switch(t.kind){case 183:case 216:case 265:case 263:case 231:case 264:case 262:case 218:case 219:case 174:case 173:case 179:case 180:case 213:case 214:case 233:return!0;default:return!1}}function hj(e){return F6e(e.currentTokenSpan,e.currentTokenParent)||F6e(e.nextTokenSpan,e.nextTokenParent)}function Gpe(e){return e.contextNode.kind===216}function Vnt(e){return!Gpe(e)}function qnt(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===222}function O6e(e){return e.contextNode.kind===229&&e.contextNode.expression!==void 0}function $nt(e){return e.contextNode.kind===235}function L6e(e){return!Hnt(e)}function Hnt(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function Qnt(e){let t=e.nextTokenSpan.kind,n=e.nextTokenSpan.pos;if(Kw(t)){let o=e.nextTokenParent===e.currentTokenParent?KS(e.currentTokenParent,gr(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===240||t===27?!1:e.contextNode.kind===264||e.contextNode.kind===265?!s_(e.currentTokenParent)||!!e.currentTokenParent.type||t!==21:ds(e.currentTokenParent)?!e.currentTokenParent.initializer:e.currentTokenParent.kind!==248&&e.currentTokenParent.kind!==242&&e.currentTokenParent.kind!==240&&t!==23&&t!==21&&t!==40&&t!==41&&t!==44&&t!==14&&t!==28&&t!==228&&t!==16&&t!==15&&t!==25}function Knt(e){return hL(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function Xnt(e){return!Nn(e.contextNode)||!L_(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}function Ynt(e,t){return{options:e,getRules:Znt(),host:t}}var Upe;function Znt(){return Upe===void 0&&(Upe=tit(g6e())),Upe}function eit(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function tit(e){let t=rit(e);return n=>{let i=t[j6e(n.currentTokenSpan.kind,n.nextTokenSpan.kind)];if(i){let s=[],o=0;for(let c of i){let _=~eit(o);c.action&_&&Oi(c.context,u=>u(n))&&(s.push(c),o|=c.action)}if(s.length)return s}}}function rit(e){let t=new Array(Vpe*Vpe),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 _=j6e(o,c),u=t[_];u===void 0&&(u=t[_]=[]),nit(u,i.rule,s,n,_)}}return t}function j6e(e,t){return w.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*Vpe+t}var KE=5,iQ=31,Vpe=166,H3=(e=>(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=KE*1]="StopRulesAny",e[e.ContextRulesSpecific=KE*2]="ContextRulesSpecific",e[e.ContextRulesAny=KE*3]="ContextRulesAny",e[e.NoContextRulesSpecific=KE*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=KE*5]="NoContextRulesAny",e))(H3||{});function nit(e,t,n,i,s){let o=t.action&3?n?0:H3.StopRulesAny:t.context!==tQ?n?H3.ContextRulesSpecific:H3.ContextRulesAny:n?H3.NoContextRulesSpecific:H3.NoContextRulesAny,c=i[s]||0;e.splice(iit(c,o),0,t),i[s]=sit(c,o)}function iit(e,t){let n=0;for(let i=0;i<=t;i+=KE)n+=e&iQ,e>>=KE;return n}function sit(e,t){let n=(e>>t&iQ)+1;return w.assert((n&iQ)===n,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(iQ<<t)|n<<t}function sQ(e,t,n){let i={pos:e,end:t,kind:n};return w.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>w.formatSyntaxKind(n)}),i}function ait(e,t,n){let i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let s=E6(i,t);for(;Tm(t.text.charCodeAt(s));)s--;Lu(t.text.charCodeAt(s))&&s--;let o={pos:C0(i-1,t),end:s+1};return yj(o,t,n,2)}function oit(e,t,n){let i=qpe(e,27,t);return W6e($pe(i),t,n,3)}function cit(e,t,n){let i=qpe(e,19,t);if(!i)return[];let s=i.parent,o=$pe(s),c={pos:ld(o.getStart(t),t),end:e};return yj(c,t,n,4)}function lit(e,t,n){let i=qpe(e,20,t);return W6e($pe(i),t,n,5)}function uit(e,t){let n={pos:0,end:e.text.length};return yj(n,e,t,0)}function _it(e,t,n,i){let s={pos:ld(e,n),end:t};return yj(s,n,i,1)}function qpe(e,t,n){let i=Cl(e,n);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function $pe(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!fit(t.parent,t);)t=t.parent;return t}function fit(e,t){switch(e.kind){case 263:case 264:return O_(e.members,t);case 267:let n=e.body;return!!n&&n.kind===268&&O_(n.statements,t);case 307:case 241:case 268:return O_(e.statements,t);case 299:return O_(e.block.statements,t)}return!1}function pit(e,t){return n(t);function n(i){let s=Es(i,o=>oJ(o.getStart(t),o.end,e)&&o);if(s){let o=n(s);if(o)return o}return i}}function dit(e,t){if(!e.length)return s;let n=e.filter(o=>CE(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(X5(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=Cl(t.pos,n);return!s||s.end>=t.pos?e.pos:s.end}function git(e,t,n){let i=-1,s;for(;e;){let o=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(i!==-1&&o!==i)break;if($m.shouldIndentChildNode(t,e,s,n))return t.indentSize;i=o,s=e,e=e.parent}return 0}function hit(e,t,n,i,s,o){let c={pos:e.pos,end:e.end};return Rpe(t.text,n,c.pos,c.end,_=>B6e(c,e,i,s,_,o,1,u=>!1,t))}function W6e(e,t,n,i){if(!e)return[];let s={pos:ld(e.getStart(t),t),end:e.end};return yj(s,t,n,i)}function yj(e,t,n,i){let s=pit(e,t);return Rpe(t.text,t.languageVariant,mit(s,e,t),e.end,o=>B6e(e,s,$m.getIndentationForNode(s,e,t,n.options),git(s,n.options,t),o,n,i,dit(t.parseDiagnostics,e),t))}function B6e(e,t,n,i,s,{options:o,getRules:c,host:_},u,g,m){var h;let S=new p6e(m,u,o),T,x,I,D,E,O=-1,F=[];if(s.advance(),s.isOnToken()){let le=m.getLineAndCharacterOfPosition(t.getStart(m)).line,Je=le;rp(t)&&(Je=m.getLineAndCharacterOfPosition(ez(t,m)).line),me(t,t,le,Je,n,i)}let B=s.getCurrentLeadingTrivia();if(B){let le=$m.nodeWillIndentChild(o,t,void 0,m,!1)?n+o.indentSize:n;te(B,le,!0,Je=>{ne(Je,m.getLineAndCharacterOfPosition(Je.pos),t,t,void 0),oe(Je.pos,le,!1)}),o.trimTrailingWhitespace!==!1&&De(B)}if(x&&s.getTokenFullStart()>=e.end){let le=s.isOnEOF()?s.readEOFTokenRange():s.isOnToken()?s.readTokenInfo(t).token:void 0;if(le&&le.pos===T){let Je=((h=Cl(le.end,m,t))==null?void 0:h.parent)||I;ie(le,m.getLineAndCharacterOfPosition(le.pos).line,Je,x,D,I,Je,void 0)}}return F;function G(le,Je,ee,Ne,Ie){if(CE(Ne,le,Je)||r3(Ne,le,Je)){if(Ie!==-1)return Ie}else{let Ce=m.getLineAndCharacterOfPosition(le).line,Ve=ld(le,m),bt=$m.findFirstNonWhitespaceColumn(Ve,le,m,o);if(Ce!==ee||le===bt){let zt=$m.getBaseIndentation(o);return zt>bt?zt:bt}}return-1}function $(le,Je,ee,Ne,Ie,Ce){let Ve=$m.shouldIndentChildNode(o,le)?o.indentSize:0;return Ce===Je?{indentation:Je===E?O:Ie.getIndentation(),delta:Math.min(o.indentSize,Ie.getDelta(le)+Ve)}:ee===-1?le.kind===21&&Je===E?{indentation:O,delta:Ie.getDelta(le)}:$m.childStartsOnTheSameLineWithElseInIfStatement(Ne,le,Je,m)||$m.childIsUnindentedBranchOfConditionalExpression(Ne,le,Je,m)||$m.argumentStartsOnSameLineAsPreviousArgument(Ne,le,Je,m)?{indentation:Ie.getIndentation(),delta:Ve}:{indentation:Ie.getIndentation()+Ie.getDelta(le),delta:Ve}:{indentation:ee,delta:Ve}}function K(le){if(od(le)){let Je=On(le.modifiers,la,Sc(le.modifiers,Rl));if(Je)return Je.kind}switch(le.kind){case 263:return 86;case 264:return 120;case 262:return 100;case 266:return 266;case 177:return 139;case 178:return 153;case 174:if(le.asteriskToken)return 42;case 172:case 169:let Je=vs(le);if(Je)return Je.kind}}function U(le,Je,ee,Ne){return{getIndentationForComment:(Ve,bt,zt)=>{switch(Ve){case 20:case 24:case 22:return ee+Ce(zt)}return bt!==-1?bt:ee},getIndentationForToken:(Ve,bt,zt,ur)=>!ur&&Ie(Ve,bt,zt)?ee+Ce(zt):ee,getIndentation:()=>ee,getDelta:Ce,recomputeIndentation:(Ve,bt)=>{$m.shouldIndentChildNode(o,bt,le,m)&&(ee+=Ve?o.indentSize:-o.indentSize,Ne=$m.shouldIndentChildNode(o,le)?o.indentSize:0)}};function Ie(Ve,bt,zt){switch(bt){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(zt.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(zt.kind!==200)return!1;break}return Je!==Ve&&!(rp(le)&&bt===K(le))}function Ce(Ve){return $m.nodeWillIndentChild(o,le,Ve,m,!0)?Ne:0}}function me(le,Je,ee,Ne,Ie,Ce){if(!CE(e,le.getStart(m),le.getEnd()))return;let Ve=U(le,ee,Ie,Ce),bt=Je;for(Es(le,_t=>{zt(_t,-1,le,Ve,ee,Ne,!1)},_t=>{ur(_t,le,ee,Ve)});s.isOnToken()&&s.getTokenFullStart()<e.end;){let _t=s.readTokenInfo(le);if(_t.token.end>Math.min(le.end,e.end))break;Or(_t,le,Ve,le)}function zt(_t,$t,Hr,hi,_s,At,zn,ns){if(w.assert(!So(_t)),Tc(_t)||gte(Hr,_t))return $t;let Rn=_t.getStart(m),hn=m.getLineAndCharacterOfPosition(Rn).line,ui=hn;rp(_t)&&(ui=m.getLineAndCharacterOfPosition(ez(_t,m)).line);let Ue=-1;if(zn&&O_(e,Hr)&&(Ue=G(Rn,_t.end,_s,e,$t),Ue!==-1&&($t=Ue)),!CE(e,_t.pos,_t.end))return _t.end<e.pos&&s.skipToEndOf(_t),$t;if(_t.getFullWidth()===0)return $t;for(;s.isOnToken()&&s.getTokenFullStart()<e.end;){let Zr=s.readTokenInfo(le);if(Zr.token.end>e.end)return $t;if(Zr.token.end>Rn){Zr.token.pos>Rn&&s.skipToStartOf(_t);break}Or(Zr,le,hi,le)}if(!s.isOnToken()||s.getTokenFullStart()>=e.end)return $t;if(Xx(_t)){let Zr=s.readTokenInfo(_t);if(_t.kind!==12)return w.assert(Zr.token.end===_t.end,"Token end is child end"),Or(Zr,le,hi,_t),$t}let ht=_t.kind===170?hn:At,sr=$(_t,hn,Ue,le,hi,ht);return me(_t,bt,hn,ui,sr.indentation,sr.delta),bt=le,ns&&Hr.kind===209&&$t===-1&&($t=sr.indentation),$t}function ur(_t,$t,Hr,hi){w.assert(lS(_t)),w.assert(!So(_t));let _s=yit($t,_t),At=hi,zn=Hr;if(!CE(e,_t.pos,_t.end)){_t.end<e.pos&&s.skipToEndOf(_t);return}if(_s!==0)for(;s.isOnToken()&&s.getTokenFullStart()<e.end;){let hn=s.readTokenInfo($t);if(hn.token.end>_t.pos)break;if(hn.token.kind===_s){zn=m.getLineAndCharacterOfPosition(hn.token.pos).line,Or(hn,$t,hi,$t);let ui;if(O!==-1)ui=O;else{let Ue=ld(hn.token.pos,m);ui=$m.findFirstNonWhitespaceColumn(Ue,hn.token.pos,m,o)}At=U($t,Hr,ui,o.indentSize)}else Or(hn,$t,hi,$t)}let ns=-1;for(let hn=0;hn<_t.length;hn++){let ui=_t[hn];ns=zt(ui,ns,le,At,zn,zn,!0,hn===0)}let Rn=vit(_s);if(Rn!==0&&s.isOnToken()&&s.getTokenFullStart()<e.end){let hn=s.readTokenInfo($t);hn.token.kind===28&&(Or(hn,$t,At,$t),hn=s.isOnToken()?s.readTokenInfo($t):void 0),hn&&hn.token.kind===Rn&&O_($t,hn.token)&&Or(hn,$t,At,$t,!0)}}function Or(_t,$t,Hr,hi,_s){w.assert(O_($t,_t.token));let At=s.lastTrailingTriviaWasNewLine(),zn=!1;_t.leadingTrivia&&V(_t.leadingTrivia,$t,bt,Hr);let ns=0,Rn=O_(e,_t.token),hn=m.getLineAndCharacterOfPosition(_t.token.pos);if(Rn){let ui=g(_t.token),Ue=x;if(ns=ne(_t.token,hn,$t,bt,Hr),!ui)if(ns===0){let ht=Ue&&m.getLineAndCharacterOfPosition(Ue.end).line;zn=At&&hn.line!==ht}else zn=ns===1}if(_t.trailingTrivia&&(T=xa(_t.trailingTrivia).end,V(_t.trailingTrivia,$t,bt,Hr)),zn){let ui=Rn&&!g(_t.token)?Hr.getIndentationForToken(hn.line,_t.token.kind,hi,!!_s):-1,Ue=!0;if(_t.leadingTrivia){let ht=Hr.getIndentationForComment(_t.token.kind,ui,hi);Ue=te(_t.leadingTrivia,ht,Ue,sr=>oe(sr.pos,ht,!1))}ui!==-1&&Ue&&(oe(_t.token.pos,ui,ns===1),E=hn.line,O=ui)}s.advance(),bt=$t}}function te(le,Je,ee,Ne){for(let Ie of le){let Ce=O_(e,Ie);switch(Ie.kind){case 3:Ce&&H(Ie,Je,!ee),ee=!1;break;case 2:ee&&Ce&&Ne(Ie),ee=!1;break;case 4:ee=!0;break}}return ee}function V(le,Je,ee,Ne){for(let Ie of le)if(iL(Ie.kind)&&O_(e,Ie)){let Ce=m.getLineAndCharacterOfPosition(Ie.pos);ne(Ie,Ce,Je,ee,Ne)}}function ne(le,Je,ee,Ne,Ie){let Ce=g(le),Ve=0;if(!Ce)if(x)Ve=ie(le,Je.line,ee,x,D,I,Ne,Ie);else{let bt=m.getLineAndCharacterOfPosition(e.pos);ve(bt.line,Je.line)}return x=le,T=le.end,I=ee,D=Je.line,Ve}function ie(le,Je,ee,Ne,Ie,Ce,Ve,bt){S.updateContext(Ne,Ce,le,ee,Ve);let zt=c(S),ur=S.options.trimTrailingWhitespace!==!1,Or=0;return zt?rh(zt,_t=>{if(Or=ct(_t,Ne,Ie,le,Je),bt)switch(Or){case 2:ee.getStart(m)===le.pos&&bt.recomputeIndentation(!1,Ve);break;case 1:ee.getStart(m)===le.pos&&bt.recomputeIndentation(!0,Ve);break;default:w.assert(Or===0)}ur=ur&&!(_t.action&16)&&_t.flags!==1}):ur=ur&&le.kind!==1,Je!==Ie&&ur&&ve(Ie,Je,Ne),Or}function oe(le,Je,ee){let Ne=Hpe(Je,o);if(ee)_e(le,0,Ne);else{let Ie=m.getLineAndCharacterOfPosition(le),Ce=C0(Ie.line,m);(Je!==de(Ce,Ie.character)||ye(Ne,Ce))&&_e(Ce,Ie.character,Ne)}}function de(le,Je){let ee=0;for(let Ne=0;Ne<Je;Ne++)m.text.charCodeAt(le+Ne)===9?ee+=o.tabSize-ee%o.tabSize:ee++;return ee}function ye(le,Je){return le!==m.text.substr(Je,le.length)}function H(le,Je,ee,Ne=!0){let Ie=m.getLineAndCharacterOfPosition(le.pos).line,Ce=m.getLineAndCharacterOfPosition(le.end).line;if(Ie===Ce){ee||oe(le.pos,Je,!1);return}let Ve=[],bt=le.pos;for(let $t=Ie;$t<Ce;$t++){let Hr=E6($t,m);Ve.push({pos:bt,end:Hr}),bt=C0($t+1,m)}if(Ne&&Ve.push({pos:bt,end:le.end}),Ve.length===0)return;let zt=C0(Ie,m),ur=$m.findFirstNonWhitespaceCharacterAndColumn(zt,Ve[0].pos,m,o),Or=0;ee&&(Or=1,Ie++);let _t=Je-ur.column;for(let $t=Or;$t<Ve.length;$t++,Ie++){let Hr=C0(Ie,m),hi=$t===0?ur:$m.findFirstNonWhitespaceCharacterAndColumn(Ve[$t].pos,Ve[$t].end,m,o),_s=hi.column+_t;if(_s>0){let At=Hpe(_s,o);_e(Hr,hi.character,At)}else xe(Hr,hi.character)}}function ve(le,Je,ee){for(let Ne=le;Ne<Je;Ne++){let Ie=C0(Ne,m),Ce=E6(Ne,m);if(ee&&(iL(ee.kind)||wq(ee.kind))&&ee.pos<=Ce&&ee.end>Ce)continue;let Ve=Ge(Ie,Ce);Ve!==-1&&(w.assert(Ve===Ie||!Tm(m.text.charCodeAt(Ve-1))),xe(Ve,Ce+1-Ve))}}function Ge(le,Je){let ee=Je;for(;ee>=le&&Tm(m.text.charCodeAt(ee));)ee--;return ee!==Je?ee+1:-1}function De(le){let Je=x?x.end:e.pos;for(let ee of le)iL(ee.kind)&&(Je<ee.pos&&se(Je,ee.pos-1,x),Je=ee.end+1);Je<e.end&&se(Je,e.end,x)}function se(le,Je,ee){let Ne=m.getLineAndCharacterOfPosition(le).line,Ie=m.getLineAndCharacterOfPosition(Je).line;ve(Ne,Ie+1,ee)}function xe(le,Je){Je&&F.push(aL(le,Je,""))}function _e(le,Je,ee){(Je||ee)&&F.push(aL(le,Je,ee))}function tt(le,Je){Je&&F.push(aL(le,0,Je))}function ct(le,Je,ee,Ne,Ie){let Ce=Ie!==ee;switch(le.action){case 1:return 0;case 16:if(Je.end!==Ne.pos)return xe(Je.end,Ne.pos-Je.end),Ce?2:0;break;case 32:xe(Je.pos,Je.end-Je.pos);break;case 8:if(le.flags!==1&&ee!==Ie)return 0;if(Ie-ee!==1)return _e(Je.end,Ne.pos-Je.end,yy(_,o)),Ce?0:1;break;case 4:if(le.flags!==1&&ee!==Ie)return 0;if(Ne.pos-Je.end!==1||m.text.charCodeAt(Je.end)!==32)return _e(Je.end,Ne.pos-Je.end," "),Ce?2:0;break;case 64:tt(Je.end,";")}return 0}}function z6e(e,t,n,i=ki(e,t)){let s=gr(i,Kd);if(s&&(i=s.parent),i.getStart(e)<=t&&t<i.getEnd())return;n=n===null?void 0:n===void 0?Cl(t,e):n;let c=n&&m0(e.text,n.end),_=pz(i,e),u=Ki(c,_);return u&&On(u,g=>t3(g,t)||t===g.end&&(g.kind===2||t===e.getFullWidth()))}function yit(e,t){switch(e.kind){case 176:case 262:case 218:case 174:case 173:case 219:case 179:case 180:case 184:case 185:case 177:case 178:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 213:case 214:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 263:case 231:case 264:case 265:if(e.typeParameters===t)return 30;break;case 183:case 215:case 186:case 233:case 205:if(e.typeArguments===t)return 30;break;case 187:return 19}return 0}function vit(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}var aQ,Q3,K3;function Hpe(e,t){if((!aQ||aQ.tabSize!==t.tabSize||aQ.indentSize!==t.indentSize)&&(aQ={tabSize:t.tabSize,indentSize:t.indentSize},Q3=K3=void 0),t.convertTabsToSpaces){let i,s=Math.floor(e/t.indentSize),o=e%t.indentSize;return K3||(K3=[]),K3[s]===void 0?(i=a3(" ",t.indentSize*s),K3[s]=i):i=K3[s],o?i+a3(" ",o):i}else{let i=Math.floor(e/t.tabSize),s=e-i*t.tabSize,o;return Q3||(Q3=[]),Q3[i]===void 0?Q3[i]=o=a3(" ",i):o=Q3[i],s?o+a3(" ",s):o}}var $m;(e=>{let t;(H=>{H[H.Unknown=-1]="Unknown"})(t||(t={}));function n(H,ve,Ge,De=!1){if(H>ve.text.length)return _(Ge);if(Ge.indentStyle===0)return 0;let se=Cl(H,ve,void 0,!0),xe=z6e(ve,H,se||null);if(xe&&xe.kind===3)return i(ve,H,Ge,xe);if(!se)return _(Ge);if(wq(se.kind)&&se.getStart(ve)<=H&&H<se.end)return 0;let tt=ve.getLineAndCharacterOfPosition(H).line,ct=ki(ve,H),le=ct.kind===19&&ct.parent.kind===210;if(Ge.indentStyle===1||le)return s(ve,H,Ge);if(se.kind===28&&se.parent.kind!==226){let ee=m(se,ve,Ge);if(ee!==-1)return ee}let Je=B(H,se.parent,ve);if(Je&&!O_(Je,se)){let Ne=[218,219].includes(ct.parent.kind)?0:Ge.indentSize;return K(Je,ve,Ge)+Ne}return o(ve,H,se,tt,De,Ge)}e.getIndentation=n;function i(H,ve,Ge,De){let se=Qs(H,ve).line-1,xe=Qs(H,De.pos).line;if(w.assert(xe>=0),se<=xe)return ne(C0(xe,H),ve,H,Ge);let _e=C0(se,H),{column:tt,character:ct}=V(_e,ve,H,Ge);return tt===0?tt:H.text.charCodeAt(_e+ct)===42?tt-1:tt}function s(H,ve,Ge){let De=ve;for(;De>0;){let xe=H.text.charCodeAt(De);if(!ih(xe))break;De--}let se=ld(De,H);return ne(se,De,H,Ge)}function o(H,ve,Ge,De,se,xe){let _e,tt=Ge;for(;tt;){if(vq(tt,ve,H)&&de(xe,tt,_e,H,!0)){let le=x(tt,H),Je=T(Ge,tt,De,H),ee=Je!==0?se&&Je===2?xe.indentSize:0:De!==le.line?xe.indentSize:0;return u(tt,le,void 0,ee,H,!0,xe)}let ct=U(tt,H,xe,!0);if(ct!==-1)return ct;_e=tt,tt=tt.parent}return _(xe)}function c(H,ve,Ge,De){let se=Ge.getLineAndCharacterOfPosition(H.getStart(Ge));return u(H,se,ve,0,Ge,!1,De)}e.getIndentationForNode=c;function _(H){return H.baseIndentSize||0}e.getBaseIndentation=_;function u(H,ve,Ge,De,se,xe,_e){var tt;let ct=H.parent;for(;ct;){let le=!0;if(Ge){let Ie=H.getStart(se);le=Ie<Ge.pos||Ie>Ge.end}let Je=g(ct,H,se),ee=Je.line===ve.line||D(ct,H,ve.line,se);if(le){let Ie=(tt=F(H,se))==null?void 0:tt[0],Ce=!!Ie&&x(Ie,se).line>Je.line,Ve=U(H,se,_e,Ce);if(Ve!==-1||(Ve=h(H,ct,ve,ee,se,_e),Ve!==-1))return Ve+De}de(_e,ct,H,se,xe)&&!ee&&(De+=_e.indentSize);let Ne=I(ct,H,ve.line,se);H=ct,ct=H.parent,ve=Ne?se.getLineAndCharacterOfPosition(H.getStart(se)):Je}return De+_(_e)}function g(H,ve,Ge){let De=F(ve,Ge),se=De?De.pos:H.getStart(Ge);return Ge.getLineAndCharacterOfPosition(se)}function m(H,ve,Ge){let De=Cce(H);return De&&De.listItemIndex>0?me(De.list.getChildren(),De.listItemIndex-1,ve,Ge):-1}function h(H,ve,Ge,De,se,xe){return(Ul(H)||I6(H))&&(ve.kind===307||!De)?te(Ge,se,xe):-1}let S;(H=>{H[H.Unknown=0]="Unknown",H[H.OpenBrace=1]="OpenBrace",H[H.CloseBrace=2]="CloseBrace"})(S||(S={}));function T(H,ve,Ge,De){let se=KS(H,ve,De);if(!se)return 0;if(se.kind===19)return 1;if(se.kind===20){let xe=x(se,De).line;return Ge===xe?2:0}return 0}function x(H,ve){return ve.getLineAndCharacterOfPosition(H.getStart(ve))}function I(H,ve,Ge,De){if(!(qs(H)&&Ts(H.arguments,ve)))return!1;let se=H.expression.getEnd();return Qs(De,se).line===Ge}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=I;function D(H,ve,Ge,De){if(H.kind===245&&H.elseStatement===ve){let se=_o(H,93,De);return w.assert(se!==void 0),x(se,De).line===Ge}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=D;function E(H,ve,Ge,De){if(wk(H)&&(ve===H.whenTrue||ve===H.whenFalse)){let se=Qs(De,H.condition.end).line;if(ve===H.whenTrue)return Ge===se;{let xe=x(H.whenTrue,De).line,_e=Qs(De,H.whenTrue.end).line;return se===xe&&_e===Ge}}return!1}e.childIsUnindentedBranchOfConditionalExpression=E;function O(H,ve,Ge,De){if(km(H)){if(!H.arguments)return!1;let se=On(H.arguments,ct=>ct.pos===ve.pos);if(!se)return!1;let xe=H.arguments.indexOf(se);if(xe===0)return!1;let _e=H.arguments[xe-1],tt=Qs(De,_e.getEnd()).line;if(Ge===tt)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=O;function F(H,ve){return H.parent&&G(H.getStart(ve),H.getEnd(),H.parent,ve)}e.getContainingList=F;function B(H,ve,Ge){return ve&&G(H,H,ve,Ge)}function G(H,ve,Ge,De){switch(Ge.kind){case 183:return se(Ge.typeArguments);case 210:return se(Ge.properties);case 209:return se(Ge.elements);case 187:return se(Ge.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return se(Ge.typeParameters)||se(Ge.parameters);case 177:return se(Ge.parameters);case 263:case 231:case 264:case 265:case 345:return se(Ge.typeParameters);case 214:case 213:return se(Ge.typeArguments)||se(Ge.arguments);case 261:return se(Ge.declarations);case 275:case 279:return se(Ge.elements);case 206:case 207:return se(Ge.elements)}function se(xe){return xe&&r3($(Ge,xe,De),H,ve)?xe:void 0}}function $(H,ve,Ge){let De=H.getChildren(Ge);for(let se=1;se<De.length-1;se++)if(De[se].pos===ve.pos&&De[se].end===ve.end)return{pos:De[se-1].end,end:De[se+1].getStart(Ge)};return ve}function K(H,ve,Ge){return H?te(ve.getLineAndCharacterOfPosition(H.pos),ve,Ge):-1}function U(H,ve,Ge,De){if(H.parent&&H.parent.kind===261)return-1;let se=F(H,ve);if(se){let xe=se.indexOf(H);if(xe!==-1){let _e=me(se,xe,ve,Ge);if(_e!==-1)return _e}return K(se,ve,Ge)+(De?Ge.indentSize:0)}return-1}function me(H,ve,Ge,De){w.assert(ve>=0&&ve<H.length);let se=H[ve],xe=x(se,Ge);for(let _e=ve-1;_e>=0;_e--){if(H[_e].kind===28)continue;if(Ge.getLineAndCharacterOfPosition(H[_e].end).line!==xe.line)return te(xe,Ge,De);xe=x(H[_e],Ge)}return-1}function te(H,ve,Ge){let De=ve.getPositionOfLineAndCharacter(H.line,0);return ne(De,De+H.character,ve,Ge)}function V(H,ve,Ge,De){let se=0,xe=0;for(let _e=H;_e<ve;_e++){let tt=Ge.text.charCodeAt(_e);if(!Tm(tt))break;tt===9?xe+=De.tabSize+xe%De.tabSize:xe++,se++}return{column:xe,character:se}}e.findFirstNonWhitespaceCharacterAndColumn=V;function ne(H,ve,Ge,De){return V(H,ve,Ge,De).column}e.findFirstNonWhitespaceColumn=ne;function ie(H,ve,Ge,De,se){let xe=Ge?Ge.kind:0;switch(ve.kind){case 244:case 263:case 231:case 264:case 266:case 265:case 209:case 241:case 268:case 210:case 187:case 200:case 189:case 217:case 211:case 213:case 214:case 243:case 277:case 253:case 227:case 207:case 206:case 286:case 289:case 285:case 294:case 173:case 179:case 180:case 169:case 184:case 185:case 196:case 215:case 223:case 279:case 275:case 281:case 276:case 172:case 296:case 297:return!0;case 269:return H.indentSwitchCase??!0;case 260:case 303:case 226:if(!H.indentMultiLineObjectLiteralBeginningOnBlankLine&&De&&xe===210)return ye(De,Ge);if(ve.kind===226&&De&&Ge&&xe===284){let _e=De.getLineAndCharacterOfPosition(ha(De.text,ve.pos)).line,tt=De.getLineAndCharacterOfPosition(ha(De.text,Ge.pos)).line;return _e!==tt}if(ve.kind!==226)return!0;break;case 246:case 247:case 249:case 250:case 248:case 245:case 262:case 218:case 174:case 176:case 177:case 178:return xe!==241;case 219:return De&&xe===217?ye(De,Ge):xe!==241;case 278:return xe!==279;case 272:return xe!==273||!!Ge.namedBindings&&Ge.namedBindings.kind!==275;case 284:return xe!==287;case 288:return xe!==290;case 193:case 192:case 238:if(xe===187||xe===189||xe===200)return!1;break}return se}e.nodeWillIndentChild=ie;function oe(H,ve){switch(H){case 253:case 257:case 251:case 252:return ve.kind!==241;default:return!1}}function de(H,ve,Ge,De,se=!1){return ie(H,ve,Ge,De,!1)&&!(se&&Ge&&oe(Ge.kind,ve))}e.shouldIndentChildNode=de;function ye(H,ve){let Ge=ha(H.text,ve.pos),De=H.getLineAndCharacterOfPosition(Ge).line,se=H.getLineAndCharacterOfPosition(ve.end).line;return De===se}})($m||($m={}));var oQ={};nt(oQ,{preparePasteEdits:()=>bit});function bit(e,t,n){let i=!1;return t.forEach(s=>{let o=gr(ki(e,s.pos),c=>O_(c,s));o&&Es(o,function c(_){var u;if(!i){if(je(_)&&qI(s,_.getStart(e))){let g=n.resolveName(_.text,_,-1,!1);if(g&&g.declarations){for(let m of g.declarations)if(j$(m)||_.text&&e.symbol&&((u=e.symbol.exports)!=null&&u.has(_.escapedText))){i=!0;return}}}_.forEachChild(c)}})}),i}var cQ={};nt(cQ,{pasteEditsProvider:()=>Tit});var Sit="providePostPasteEdits";function Tit(e,t,n,i,s,o,c,_){return{edits:fn.ChangeTracker.with({host:s,formatContext:c,preferences:o},g=>kit(e,t,n,i,s,o,c,_,g)),fixId:Sit}}function kit(e,t,n,i,s,o,c,_,u){let g;t.length!==n.length&&(g=t.length===1?t[0]:t.join(yy(c.host,c.options)));let m=[],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=Vu.createImportAdder(I,T,o,s),i?.range){w.assert(i.range.length===t.length),i.range.forEach(B=>{let G=i.file.statements,$=Sc(G,U=>U.end>B.pos);if($===-1)return;let K=Sc(G,U=>U.end>=B.end,$);K!==-1&&B.end<=G[K].getStart()&&K--,m.push(...G.slice($,K===-1?G.length:K+1))}),w.assertIsDefined(x,"no original program found");let D=x.getTypeChecker(),E=xit(i),O=FL(i.file,m,D,uue(I,m,D),E),F=!u$(e.fileName,x,s,!!i.file.commonJsModuleIndicator);rue(i.file,O.targetFileImportsFromOldFile,u,F),fue(i.file,O.oldImportsNeededByTargetFile,O.targetFileImportsFromOldFile,D,T,S)}else{let D={sourceFile:I,program:x,cancellationToken:_,host:s,preferences:o,formatContext:c},E=0;n.forEach((O,F)=>{let B=O.end-O.pos,G=g??t[F],$=O.pos+E,K=$+G.length,U={pos:$,end:K};E+=G.length-B;let me=gr(ki(D.sourceFile,U.pos),te=>O_(te,U));me&&Es(me,function te(V){if(je(V)&&qI(U,V.getStart(I))&&!T?.getTypeChecker().resolveName(V.text,V,-1,!1))return S.addImportForUnresolvedIdentifier(D,V,!0);V.forEachChild(te)})})}S.writeFixes(u,Tf(i?i.file:e,o))}),S.hasFixes()&&n.forEach((T,x)=>{u.replaceRangeWithText(e,{pos:T.pos,end:T.end},g??t[x])})}function xit({file:e,range:t}){let n=t[0].pos,i=t[t.length-1].end,s=ki(e,n),o=wE(e,n)??ki(e,i);return{pos:je(s)&&n<=s.getStart(e)?s.getFullStart():n,end:je(o)&&i===o.getEnd()?fn.getAdjustedEndPosition(e,o,{}):i}}var J6e={};nt(J6e,{ANONYMOUS:()=>e$,AccessFlags:()=>TZ,AssertionLevel:()=>NY,AssignmentDeclarationKind:()=>EZ,AssignmentKind:()=>rre,Associativity:()=>ure,BreakpointResolver:()=>Y$,BuilderFileEmit:()=>ooe,BuilderProgramKind:()=>moe,BuilderState:()=>Yd,CallHierarchy:()=>uC,CharacterCodes:()=>JZ,CheckFlags:()=>yZ,CheckMode:()=>SU,ClassificationType:()=>lq,ClassificationTypeNames:()=>hce,CommentDirectiveType:()=>nZ,Comparison:()=>Ga,CompletionInfoFlags:()=>uce,CompletionTriggerKind:()=>oq,Completions:()=>mC,ContainerFlags:()=>zse,ContextFlags:()=>uZ,Debug:()=>w,DiagnosticCategory:()=>R8,Diagnostics:()=>p,DocumentHighlights:()=>AL,ElementFlags:()=>SZ,EmitFlags:()=>aB,EmitHint:()=>qZ,EmitOnly:()=>sZ,EndOfLineState:()=>pce,ExitStatus:()=>aZ,ExportKind:()=>lle,Extension:()=>GZ,ExternalEmitHelpers:()=>VZ,FileIncludeKind:()=>KW,FilePreprocessingDiagnosticsKind:()=>iZ,FileSystemEntryKind:()=>tee,FileWatcherEventKind:()=>YZ,FindAllReferences:()=>jo,FlattenLevel:()=>lae,FlowFlags:()=>M8,ForegroundColorEscapeSequences:()=>Xae,FunctionFlags:()=>cre,GeneratedIdentifierFlags:()=>QW,GetLiteralTextFlags:()=>vte,GoToDefinition:()=>aD,HighlightSpanKind:()=>cce,IdentifierNameMap:()=>FI,ImportKind:()=>cle,ImportsNotUsedAsValues:()=>LZ,IndentStyle:()=>lce,IndexFlags:()=>kZ,IndexKind:()=>wZ,InferenceFlags:()=>PZ,InferencePriority:()=>DZ,InlayHintKind:()=>oce,InlayHints:()=>GH,InternalEmitFlags:()=>UZ,InternalNodeBuilderFlags:()=>fZ,InternalSymbolName:()=>vZ,IntersectionFlags:()=>lZ,InvalidatedProjectKind:()=>joe,JSDocParsingMode:()=>XZ,JsDoc:()=>p1,JsTyping:()=>Q0,JsxEmit:()=>OZ,JsxFlags:()=>ZY,JsxReferenceKind:()=>xZ,LanguageFeatureMinimumTarget:()=>zl,LanguageServiceMode:()=>sce,LanguageVariant:()=>BZ,LexicalEnvironmentFlags:()=>HZ,ListFormat:()=>QZ,LogLevel:()=>JY,MapCode:()=>UH,MemberOverrideStatus:()=>oZ,ModifierFlags:()=>$W,ModuleDetectionKind:()=>NZ,ModuleInstanceState:()=>Wse,ModuleKind:()=>kw,ModuleResolutionKind:()=>Tw,ModuleSpecifierEnding:()=>ane,NavigateTo:()=>Mle,NavigationBar:()=>Fle,NewLineKind:()=>jZ,NodeBuilderFlags:()=>_Z,NodeCheckFlags:()=>ZW,NodeFactoryFlags:()=>Fne,NodeFlags:()=>qW,NodeResolutionFeatures:()=>Pse,ObjectFlags:()=>tB,OperationCanceledException:()=>TP,OperatorPrecedence:()=>_re,OrganizeImports:()=>d1,OrganizeImportsMode:()=>aq,OuterExpressionKinds:()=>$Z,OutliningElementsCollector:()=>qH,OutliningSpanKind:()=>_ce,OutputFileType:()=>fce,PackageJsonAutoImportPreference:()=>ice,PackageJsonDependencyGroup:()=>nce,PatternMatchKind:()=>v$,PollingInterval:()=>oB,PollingWatchKind:()=>FZ,PragmaKindFlags:()=>KZ,PredicateSemantics:()=>eZ,PreparePasteEdits:()=>oQ,PrivateIdentifierKind:()=>Vne,ProcessLevel:()=>pae,ProgramUpdateLevel:()=>qae,QuotePreference:()=>Wce,RegularExpressionFlags:()=>tZ,RelationComparisonResult:()=>HW,Rename:()=>pj,ScriptElementKind:()=>mce,ScriptElementKindModifier:()=>gce,ScriptKind:()=>nB,ScriptSnapshot:()=>J5,ScriptTarget:()=>WZ,SemanticClassificationFormat:()=>ace,SemanticMeaning:()=>yce,SemicolonPreference:()=>cq,SignatureCheckMode:()=>TU,SignatureFlags:()=>rB,SignatureHelp:()=>J3,SignatureInfo:()=>aoe,SignatureKind:()=>CZ,SmartSelectionRange:()=>QH,SnippetKind:()=>sB,StatisticType:()=>$oe,StructureIsReused:()=>XW,SymbolAccessibility:()=>mZ,SymbolDisplay:()=>yv,SymbolDisplayPartKind:()=>U5,SymbolFlags:()=>YW,SymbolFormatFlags:()=>dZ,SyntaxKind:()=>VW,Ternary:()=>AZ,ThrottledCancellationToken:()=>Gue,TokenClass:()=>dce,TokenFlags:()=>rZ,TransformFlags:()=>iB,TypeFacts:()=>bU,TypeFlags:()=>eB,TypeFormatFlags:()=>pZ,TypeMapKind:()=>IZ,TypePredicateKind:()=>gZ,TypeReferenceSerializationKind:()=>hZ,UnionReduction:()=>cZ,UpToDateStatusType:()=>Eoe,VarianceFlags:()=>bZ,Version:()=>Wd,VersionRange:()=>N8,WatchDirectoryFlags:()=>zZ,WatchDirectoryKind:()=>RZ,WatchFileKind:()=>MZ,WatchLogLevel:()=>Hae,WatchType:()=>Hl,accessPrivateIdentifier:()=>cae,addEmitFlags:()=>Rm,addEmitHelper:()=>E2,addEmitHelpers:()=>Th,addInternalEmitFlags:()=>bk,addNodeFactoryPatcher:()=>sbe,addObjectAllocatorPatcher:()=>U0e,addRange:()=>jn,addRelatedInfo:()=>Xs,addSyntheticLeadingComment:()=>NS,addSyntheticTrailingComment:()=>FA,addToSeen:()=>nd,advancedAsyncSuperHelper:()=>ZO,affectsDeclarationPathOptionDeclarations:()=>Yie,affectsEmitOptionDeclarations:()=>Xie,allKeysStartWithDot:()=>$7,altDirectorySeparator:()=>j8,and:()=>P8,append:()=>jr,appendIfUnique:()=>Zh,arrayFrom:()=>ps,arrayIsEqualTo:()=>Yf,arrayIsHomogeneous:()=>dne,arrayOf:()=>DY,arrayReverseIterator:()=>CW,arrayToMap:()=>yw,arrayToMultiMap:()=>XN,arrayToNumericMap:()=>AY,assertType:()=>bve,assign:()=>$T,asyncSuperHelper:()=>YO,attachFileToDiagnostics:()=>T2,base64decode:()=>Nre,base64encode:()=>Ere,binarySearch:()=>o0,binarySearchKey:()=>Bx,bindSourceFile:()=>Jse,breakIntoCharacterSpans:()=>Cle,breakIntoWordSpans:()=>wle,buildLinkParts:()=>$ce,buildOpts:()=>dM,buildOverload:()=>V6e,bundlerModuleNameResolver:()=>Ase,canBeConvertedToAsync:()=>C$,canHaveDecorators:()=>JS,canHaveExportModifier:()=>j4,canHaveFlowNode:()=>$w,canHaveIllegalDecorators:()=>PG,canHaveIllegalModifiers:()=>Eie,canHaveIllegalType:()=>Ebe,canHaveIllegalTypeParameters:()=>Aie,canHaveJSDoc:()=>a4,canHaveLocals:()=>Sg,canHaveModifiers:()=>od,canHaveModuleSpecifier:()=>Zte,canHaveSymbol:()=>Jd,canIncludeBindAndCheckDiagnostics:()=>CA,canJsonReportNoInputFiles:()=>bM,canProduceDiagnostics:()=>AM,canUsePropertyAccess:()=>OJ,canWatchAffectingLocation:()=>koe,canWatchAtTypes:()=>Toe,canWatchDirectoryOrFile:()=>kV,canWatchDirectoryOrFilePath:()=>VM,cartesianProduct:()=>BY,cast:()=>Zs,chainBundle:()=>Xd,chainDiagnosticMessages:()=>Ps,changeAnyExtension:()=>i6,changeCompilerHostLikeToUseCache:()=>hE,changeExtension:()=>fy,changeFullExtension:()=>z8,changesAffectModuleResolution:()=>dF,changesAffectingProgramStructure:()=>_te,characterCodeToRegularExpressionFlag:()=>yB,childIsDecorated:()=>KP,classElementOrClassElementParameterIsDecorated:()=>hz,classHasClassThisAssignment:()=>LU,classHasDeclaredOrExplicitlyAssignedName:()=>jU,classHasExplicitlyAssignedName:()=>a5,classOrConstructorParameterIsDecorated:()=>ev,classicNameResolver:()=>Lse,classifier:()=>$ue,cleanExtendedConfigCache:()=>f5,clear:()=>Hp,clearMap:()=>Q_,clearSharedExtendedConfigFileWatcher:()=>YU,climbPastPropertyAccess:()=>$5,clone:()=>EY,cloneCompilerOptions:()=>Dq,closeFileWatcher:()=>kd,closeFileWatcherOf:()=>Op,codefix:()=>Vu,collapseTextChangeRangesAcrossMultipleVersions:()=>xee,collectExternalModuleInfo:()=>MU,combine:()=>Wx,combinePaths:()=>Bn,commandLineOptionOfCustomType:()=>tse,commentPragmas:()=>F8,commonOptionsWithBuild:()=>w7,compact:()=>QN,compareBooleans:()=>wb,compareDataObjects:()=>uJ,compareDiagnostics:()=>yA,compareEmitHelpers:()=>$ne,compareNumberOfDirectorySeparators:()=>F4,comparePaths:()=>ty,comparePathsCaseInsensitive:()=>Uve,comparePathsCaseSensitive:()=>Gve,comparePatternKeys:()=>pU,compareProperties:()=>OY,compareStringsCaseInsensitive:()=>ZN,compareStringsCaseInsensitiveEslintCompatible:()=>MY,compareStringsCaseSensitive:()=>wu,compareStringsCaseSensitiveUI:()=>e6,compareTextSpans:()=>I8,compareValues:()=>Po,compilerOptionsAffectDeclarationPath:()=>ene,compilerOptionsAffectEmit:()=>Zre,compilerOptionsAffectSemanticDiagnostics:()=>Yre,compilerOptionsDidYouMeanDiagnostics:()=>A7,compilerOptionsIndicateEsModules:()=>Rq,computeCommonSourceDirectoryOfFilenames:()=>Qae,computeLineAndCharacterOfPosition:()=>ww,computeLineOfPosition:()=>IP,computeLineStarts:()=>Qx,computePositionOfLineAndCharacter:()=>V8,computeSignatureWithDiagnostics:()=>hV,computeSuggestionDiagnostics:()=>T$,computedOptions:()=>vA,concatenate:()=>Ki,concatenateDiagnosticMessageChains:()=>Vre,consumesNodeCoreModules:()=>SL,contains:()=>Ts,containsIgnoredPath:()=>DA,containsObjectRestOrSpread:()=>uM,containsParseError:()=>s2,containsPath:()=>kp,convertCompilerOptionsForTelemetry:()=>hse,convertCompilerOptionsFromJson:()=>W1e,convertJsonOption:()=>Rk,convertToBase64:()=>Are,convertToJson:()=>hM,convertToObject:()=>use,convertToOptionsWithAbsolutePaths:()=>R7,convertToRelativePath:()=>CP,convertToTSConfig:()=>KG,convertTypeAcquisitionFromJson:()=>B1e,copyComments:()=>Gk,copyEntries:()=>mF,copyLeadingComments:()=>YI,copyProperties:()=>EW,copyTrailingAsLeadingComments:()=>p3,copyTrailingComments:()=>ME,couldStartTrivia:()=>uee,countWhere:()=>Hy,createAbstractBuilder:()=>qTe,createAccessorPropertyBackingField:()=>NG,createAccessorPropertyGetRedirector:()=>Wie,createAccessorPropertySetRedirector:()=>Bie,createBaseNodeFactory:()=>Ane,createBinaryExpressionTrampoline:()=>S7,createBuilderProgram:()=>yV,createBuilderProgramUsingIncrementalBuildInfo:()=>voe,createBuilderStatusReporter:()=>R5,createCacheableExportInfoMap:()=>_$,createCachedDirectoryStructureHost:()=>u5,createClassifier:()=>kxe,createCommentDirectivesMap:()=>hte,createCompilerDiagnostic:()=>cc,createCompilerDiagnosticForInvalidCustomType:()=>rse,createCompilerDiagnosticFromMessageChain:()=>vO,createCompilerHost:()=>Kae,createCompilerHostFromProgramHost:()=>jV,createCompilerHostWorker:()=>p5,createDetachedDiagnostic:()=>S2,createDiagnosticCollection:()=>cA,createDiagnosticForFileFromMessageChain:()=>fz,createDiagnosticForNode:()=>cn,createDiagnosticForNodeArray:()=>Ww,createDiagnosticForNodeArrayFromMessageChain:()=>O6,createDiagnosticForNodeFromMessageChain:()=>fh,createDiagnosticForNodeInSourceFile:()=>Cp,createDiagnosticForRange:()=>Ete,createDiagnosticMessageChainFromDiagnostic:()=>Ate,createDiagnosticReporter:()=>rC,createDocumentPositionMapper:()=>nae,createDocumentRegistry:()=>dle,createDocumentRegistryInternal:()=>g$,createEmitAndSemanticDiagnosticsBuilderProgram:()=>TV,createEmitHelperFactory:()=>qne,createEmptyExports:()=>rM,createEvaluator:()=>xne,createExpressionForJsxElement:()=>xie,createExpressionForJsxFragment:()=>Cie,createExpressionForObjectLiteralElementLike:()=>wie,createExpressionForPropertyName:()=>kG,createExpressionFromEntityName:()=>nM,createExternalHelpersImportDeclarationIfNeeded:()=>wG,createFileDiagnostic:()=>kl,createFileDiagnosticFromMessageChain:()=>CF,createFlowNode:()=>Ag,createForOfBindingStatement:()=>TG,createFutureSourceFile:()=>IL,createGetCanonicalFileName:()=>fu,createGetIsolatedDeclarationErrors:()=>Oae,createGetSourceFile:()=>nV,createGetSymbolAccessibilityDiagnosticForNode:()=>r1,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Fae,createGetSymbolWalker:()=>Gse,createIncrementalCompilerHost:()=>M5,createIncrementalProgram:()=>Aoe,createJsxFactoryExpression:()=>SG,createLanguageService:()=>Uue,createLanguageServiceSourceFile:()=>qL,createMemberAccessForPropertyName:()=>Nk,createModeAwareCache:()=>AI,createModeAwareCacheKey:()=>nE,createModeMismatchDetails:()=>KB,createModuleNotFoundChain:()=>hF,createModuleResolutionCache:()=>EI,createModuleResolutionLoader:()=>lV,createModuleResolutionLoaderUsingGlobalCache:()=>Ioe,createModuleSpecifierResolutionHost:()=>a1,createMultiMap:()=>Kp,createNameResolver:()=>zJ,createNodeConverters:()=>Mne,createNodeFactory:()=>J4,createOptionNameMap:()=>D7,createOverload:()=>lQ,createPackageJsonImportFilter:()=>ZI,createPackageJsonInfo:()=>n$,createParenthesizerRules:()=>Ene,createPatternMatcher:()=>vle,createPrinter:()=>$0,createPrinterWithDefaults:()=>Uae,createPrinterWithRemoveComments:()=>qS,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>Vae,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>XU,createProgram:()=>JM,createProgramDiagnostics:()=>ioe,createProgramHost:()=>WV,createPropertyNameNodeForIdentifierOrLiteral:()=>WO,createQueue:()=>YN,createRange:()=>Dp,createRedirectedBuilderProgram:()=>SV,createResolutionCache:()=>CV,createRuntimeTypeSerializer:()=>yae,createScanner:()=>ah,createSemanticDiagnosticsBuilderProgram:()=>VTe,createSet:()=>NW,createSolutionBuilder:()=>Foe,createSolutionBuilderHost:()=>Moe,createSolutionBuilderWithWatch:()=>Ooe,createSolutionBuilderWithWatchHost:()=>Roe,createSortedArray:()=>xW,createSourceFile:()=>$2,createSourceMapGenerator:()=>Yse,createSourceMapSource:()=>lbe,createSuperAccessVariableStatement:()=>c5,createSymbolTable:()=>ea,createSymlinkCache:()=>bJ,createSyntacticTypeNodeBuilder:()=>ece,createSystemWatchFunctions:()=>ree,createTextChange:()=>s3,createTextChangeFromStartLength:()=>aL,createTextChangeRange:()=>d6,createTextRangeFromNode:()=>Eq,createTextRangeFromSpan:()=>sL,createTextSpan:()=>pu,createTextSpanFromBounds:()=>Uc,createTextSpanFromNode:()=>k_,createTextSpanFromRange:()=>mv,createTextSpanFromStringLiteralLikeContent:()=>Aq,createTextWriter:()=>y4,createTokenRange:()=>sJ,createTypeChecker:()=>Kse,createTypeReferenceDirectiveResolutionCache:()=>U7,createTypeReferenceResolutionLoader:()=>g5,createWatchCompilerHost:()=>rke,createWatchCompilerHostOfConfigFile:()=>BV,createWatchCompilerHostOfFilesAndCompilerOptions:()=>zV,createWatchFactory:()=>LV,createWatchHost:()=>OV,createWatchProgram:()=>JV,createWatchStatusReporter:()=>wV,createWriteFileMeasuringIO:()=>iV,declarationNameToString:()=>Co,decodeMappings:()=>AU,decodedTextSpanIntersectsWith:()=>p6,deduplicate:()=>nS,defaultInitCompilerOptions:()=>GG,defaultMaximumTruncationLength:()=>GP,diagnosticCategoryName:()=>QT,diagnosticToString:()=>YS,diagnosticsEqualityComparer:()=>bO,directoryProbablyExists:()=>Vd,directorySeparator:()=>Fo,displayPart:()=>Y_,displayPartsToString:()=>w3,disposeEmitNodes:()=>KJ,documentSpansEqual:()=>zq,dumpTracingLegend:()=>YY,elementAt:()=>a0,elideNodes:()=>jie,emitDetachedComments:()=>bre,emitFiles:()=>QU,emitFilesAndReportErrors:()=>P5,emitFilesAndReportErrorsAndGetExitStatus:()=>FV,emitModuleKindIsNonNodeESM:()=>E4,emitNewLineBeforeLeadingCommentOfPosition:()=>vre,emitResolverSkipsTypeChecking:()=>HU,emitSkippedWithNoDiagnostics:()=>fV,emptyArray:()=>qe,emptyFileSystemEntries:()=>DJ,emptyMap:()=>Bl,emptyOptions:()=>cd,endsWith:()=>Jo,ensurePathIsNonModuleName:()=>KT,ensureScriptKind:()=>AO,ensureTrailingDirectorySeparator:()=>El,entityNameToString:()=>df,enumerateInsertsAndDeletes:()=>E8,equalOwnProperties:()=>PY,equateStringsCaseInsensitive:()=>_0,equateStringsCaseSensitive:()=>aS,equateValues:()=>u0,escapeJsxAttributeString:()=>zz,escapeLeadingUnderscores:()=>gc,escapeNonAsciiString:()=>YF,escapeSnippetText:()=>ES,escapeString:()=>wg,escapeTemplateSubstitution:()=>Wz,evaluatorResult:()=>Ml,every:()=>Oi,exclusivelyPrefixedNodeCoreModules:()=>qO,executeCommandLine:()=>Fke,expandPreOrPostfixIncrementOrDecrementExpression:()=>g7,explainFiles:()=>AV,explainIfFileIsRedirectAndImpliedFormat:()=>EV,exportAssignmentIsAlias:()=>u4,expressionResultIsUnused:()=>gne,extend:()=>w8,extensionFromPath:()=>kA,extensionIsTS:()=>FO,extensionsNotSupportingExtensionlessResolution:()=>RO,externalHelpersModuleNameText:()=>x0,factory:()=>A,fileExtensionIs:()=>nc,fileExtensionIsOneOf:()=>Gc,fileIncludeReasonToDiagnostics:()=>RV,fileShouldUseJavaScriptRequire:()=>u$,filter:()=>An,filterMutate:()=>vW,filterSemanticDiagnostics:()=>b5,find:()=>On,findAncestor:()=>gr,findBestPatternMatch:()=>jW,findChildOfKind:()=>_o,findComputedPropertyNameCacheAssignment:()=>T7,findConfigFile:()=>tV,findConstructorDeclaration:()=>z4,findContainingList:()=>Y5,findDiagnosticForNode:()=>sle,findFirstNonJsxWhitespaceToken:()=>wce,findIndex:()=>Sc,findLast:()=>rS,findLastIndex:()=>k8,findListItemInfo:()=>Cce,findModifier:()=>QI,findNextToken:()=>KS,findPackageJson:()=>ile,findPackageJsons:()=>r$,findPrecedingMatchingToken:()=>nL,findPrecedingToken:()=>Cl,findSuperStatementIndexPath:()=>r5,findTokenOnLeftOfPosition:()=>wE,findUseStrictPrologue:()=>CG,first:()=>Ea,firstDefined:()=>po,firstDefinedIterator:()=>vm,firstIterator:()=>IW,firstOrOnly:()=>a$,firstOrUndefined:()=>_l,firstOrUndefinedIterator:()=>KN,fixupCompilerOptions:()=>w$,flatMap:()=>ga,flatMapIterator:()=>bW,flatMapToMutable:()=>fP,flatten:()=>Qp,flattenCommaList:()=>zie,flattenDestructuringAssignment:()=>jk,flattenDestructuringBinding:()=>VS,flattenDiagnosticMessageText:()=>Gm,forEach:()=>or,forEachAncestor:()=>fte,forEachAncestorDirectory:()=>wP,forEachAncestorDirectoryStoppingAtGlobalCache:()=>Pg,forEachChild:()=>Es,forEachChildRecursively:()=>q2,forEachDynamicImportOrRequireCall:()=>$O,forEachEmittedFile:()=>UU,forEachEnclosingBlockScopeContainer:()=>Ite,forEachEntry:()=>Nl,forEachExternalModuleToImportFrom:()=>p$,forEachImportClauseDeclaration:()=>ere,forEachKey:()=>uh,forEachLeadingCommentRange:()=>o6,forEachNameInAccessChainWalkingLeft:()=>Bre,forEachNameOfDefaultExport:()=>PL,forEachOptionsSyntaxByName:()=>$J,forEachProjectReference:()=>MA,forEachPropertyAssignment:()=>Jw,forEachResolvedProjectReference:()=>VJ,forEachReturnStatement:()=>D0,forEachRight:()=>rh,forEachTrailingCommentRange:()=>c6,forEachTsConfigPropArray:()=>z6,forEachUnique:()=>Gq,forEachYieldExpression:()=>Fte,formatColorAndReset:()=>$S,formatDiagnostic:()=>sV,formatDiagnostics:()=>vTe,formatDiagnosticsWithColorAndContext:()=>eoe,formatGeneratedName:()=>Xb,formatGeneratedNamePart:()=>wI,formatLocation:()=>aV,formatMessage:()=>k2,formatStringFromArgs:()=>hh,formatting:()=>yl,generateDjb2Hash:()=>kP,generateTSConfig:()=>fse,getAdjustedReferenceLocation:()=>Tq,getAdjustedRenameLocation:()=>eL,getAliasDeclarationFromName:()=>Pz,getAllAccessorDeclarations:()=>wS,getAllDecoratorsOfClass:()=>FU,getAllDecoratorsOfClassElement:()=>i5,getAllJSDocTags:()=>Y8,getAllJSDocTagsOfKind:()=>p0e,getAllKeys:()=>gve,getAllProjectOutputs:()=>l5,getAllSuperTypeNodes:()=>nA,getAllowImportingTsExtensions:()=>$re,getAllowJSCompilerOption:()=>F0,getAllowSyntheticDefaultImports:()=>x2,getAncestor:()=>Lb,getAnyExtensionFromPath:()=>qx,getAreDeclarationMapsEnabled:()=>SO,getAssignedExpandoInitializer:()=>c2,getAssignedName:()=>Q8,getAssignmentDeclarationKind:()=>Vc,getAssignmentDeclarationPropertyAccessKind:()=>e4,getAssignmentTargetKind:()=>P0,getAutomaticTypeDirectiveNames:()=>J7,getBaseFileName:()=>fl,getBinaryOperatorPrecedence:()=>m4,getBuildInfo:()=>KU,getBuildInfoFileVersionMap:()=>bV,getBuildInfoText:()=>Jae,getBuildOrderFromAnyBuildOrder:()=>$M,getBuilderCreationParameters:()=>x5,getBuilderFileEmit:()=>H0,getCanonicalDiagnostic:()=>Nte,getCheckFlags:()=>kc,getClassExtendsHeritageElement:()=>TS,getClassLikeDeclarationOfSymbol:()=>_y,getCombinedLocalAndExportSymbolFlags:()=>rI,getCombinedModifierFlags:()=>Db,getCombinedNodeFlags:()=>ny,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>xB,getCommentRange:()=>Fm,getCommonSourceDirectory:()=>gE,getCommonSourceDirectoryOfConfig:()=>Wk,getCompilerOptionValue:()=>xO,getCompilerOptionsDiffValue:()=>_se,getConditions:()=>U0,getConfigFileParsingDiagnostics:()=>HS,getConstantValue:()=>jne,getContainerFlags:()=>mU,getContainerNode:()=>Jk,getContainingClass:()=>su,getContainingClassExcludingClassDecorators:()=>MF,getContainingClassStaticBlock:()=>Gte,getContainingFunction:()=>ep,getContainingFunctionDeclaration:()=>Jte,getContainingFunctionOrClassStaticBlock:()=>NF,getContainingNodeArray:()=>hne,getContainingObjectLiteralElement:()=>I3,getContextualTypeFromParent:()=>mL,getContextualTypeFromParentOrAncestorTypeNode:()=>Z5,getDeclarationDiagnostics:()=>Lae,getDeclarationEmitExtensionForPath:()=>tO,getDeclarationEmitOutputFilePath:()=>mre,getDeclarationEmitOutputFilePathWorker:()=>eO,getDeclarationFileExtension:()=>x7,getDeclarationFromName:()=>rA,getDeclarationModifierFlagsFromSymbol:()=>Ap,getDeclarationOfKind:()=>Yo,getDeclarationsOfKind:()=>ute,getDeclaredExpandoInitializer:()=>ZP,getDecorators:()=>g0,getDefaultCompilerOptions:()=>VL,getDefaultFormatCodeSettings:()=>G5,getDefaultLibFileName:()=>u6,getDefaultLibFilePath:()=>Vue,getDefaultLikeExportInfo:()=>DL,getDefaultLikeExportNameFromDeclaration:()=>o$,getDefaultResolutionModeForFileWorker:()=>v5,getDiagnosticText:()=>j_,getDiagnosticsWithinSpan:()=>ale,getDirectoryPath:()=>Yn,getDirectoryToWatchFailedLookupLocation:()=>xV,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>Coe,getDocumentPositionMapper:()=>S$,getDocumentSpansEqualityComparer:()=>Jq,getESModuleInterop:()=>yh,getEditsForFileRename:()=>gle,getEffectiveBaseTypeNode:()=>Dm,getEffectiveConstraintOfTypeParameter:()=>Aw,getEffectiveContainerForJSDocTemplateTag:()=>VF,getEffectiveImplementsTypeNodes:()=>Qw,getEffectiveInitializer:()=>X6,getEffectiveJSDocHost:()=>Ob,getEffectiveModifierFlags:()=>r_,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>xre,getEffectiveModifierFlagsNoCache:()=>Cre,getEffectiveReturnTypeNode:()=>Wf,getEffectiveSetAccessorTypeAnnotationNode:()=>Qz,getEffectiveTypeAnnotationNode:()=>pl,getEffectiveTypeParameterDeclarations:()=>y0,getEffectiveTypeRoots:()=>rE,getElementOrPropertyAccessArgumentExpressionOrName:()=>UF,getElementOrPropertyAccessName:()=>ay,getElementsOfBindingOrAssignmentPattern:()=>CI,getEmitDeclarations:()=>K_,getEmitFlags:()=>Na,getEmitHelpers:()=>XJ,getEmitModuleDetectionKind:()=>Hre,getEmitModuleFormatOfFileWorker:()=>bE,getEmitModuleKind:()=>n_,getEmitModuleResolutionKind:()=>Bu,getEmitScriptTarget:()=>wa,getEmitStandardClassFields:()=>yJ,getEnclosingBlockScopeContainer:()=>Gd,getEnclosingContainer:()=>xF,getEncodedSemanticClassifications:()=>d$,getEncodedSyntacticClassifications:()=>m$,getEndLinePosition:()=>E6,getEntityNameFromTypeNode:()=>U6,getEntrypointsFromPackageJsonInfo:()=>uU,getErrorCountForSummary:()=>I5,getErrorSpanForNode:()=>ak,getErrorSummaryText:()=>DV,getEscapedTextOfIdentifierOrLiteral:()=>aA,getEscapedTextOfJsxAttributeName:()=>EA,getEscapedTextOfJsxNamespacedName:()=>D2,getExpandoInitializer:()=>Rb,getExportAssignmentExpression:()=>Az,getExportInfoMap:()=>v3,getExportNeedsImportStarHelper:()=>iae,getExpressionAssociativity:()=>Lz,getExpressionPrecedence:()=>oA,getExternalHelpersModuleName:()=>sM,getExternalModuleImportEqualsDeclarationExpression:()=>XP,getExternalModuleName:()=>u2,getExternalModuleNameFromDeclaration:()=>pre,getExternalModuleNameFromPath:()=>Uz,getExternalModuleNameLiteral:()=>V2,getExternalModuleRequireArgument:()=>vz,getFallbackOptions:()=>WM,getFileEmitOutput:()=>soe,getFileMatcherPatterns:()=>PO,getFileNamesFromConfigSpecs:()=>eE,getFileWatcherEventKind:()=>uB,getFilesInErrorForSummary:()=>D5,getFirstConstructorWithBody:()=>mh,getFirstIdentifier:()=>h_,getFirstNonSpaceCharacterPosition:()=>Kce,getFirstProjectOutput:()=>$U,getFixableErrorSpanExpression:()=>i$,getFormatCodeSettingsForWriting:()=>CL,getFullWidth:()=>P6,getFunctionFlags:()=>Kc,getHeritageClause:()=>_4,getHostSignatureFromJSDoc:()=>Fb,getIdentifierAutoGenerate:()=>fbe,getIdentifierGeneratedImportReference:()=>Une,getIdentifierTypeArguments:()=>Sk,getImmediatelyInvokedFunctionExpression:()=>hS,getImpliedNodeFormatForEmitWorker:()=>Bk,getImpliedNodeFormatForFile:()=>zM,getImpliedNodeFormatForFileWorker:()=>y5,getImportNeedsImportDefaultHelper:()=>NU,getImportNeedsImportStarHelper:()=>e5,getIndentString:()=>ZF,getInferredLibraryNameResolveFrom:()=>h5,getInitializedVariables:()=>mA,getInitializerOfBinaryExpression:()=>kz,getInitializerOfBindingOrAssignmentElement:()=>oM,getInterfaceBaseTypeNodes:()=>iA,getInternalEmitFlags:()=>Sd,getInvokedExpression:()=>OF,getIsFileExcluded:()=>_le,getIsolatedModules:()=>id,getJSDocAugmentsTag:()=>Ree,getJSDocClassTag:()=>IB,getJSDocCommentRanges:()=>dz,getJSDocCommentsAndTags:()=>xz,getJSDocDeprecatedTag:()=>DB,getJSDocDeprecatedTagNoCache:()=>zee,getJSDocEnumTag:()=>PB,getJSDocHost:()=>bS,getJSDocImplementsTags:()=>Fee,getJSDocOverloadTags:()=>wz,getJSDocOverrideTagNoCache:()=>Bee,getJSDocParameterTags:()=>Pw,getJSDocParameterTagsNoCache:()=>Aee,getJSDocPrivateTag:()=>l0e,getJSDocPrivateTagNoCache:()=>Lee,getJSDocProtectedTag:()=>u0e,getJSDocProtectedTagNoCache:()=>jee,getJSDocPublicTag:()=>c0e,getJSDocPublicTagNoCache:()=>Oee,getJSDocReadonlyTag:()=>_0e,getJSDocReadonlyTagNoCache:()=>Wee,getJSDocReturnTag:()=>Jee,getJSDocReturnType:()=>g6,getJSDocRoot:()=>Hw,getJSDocSatisfiesExpressionType:()=>jJ,getJSDocSatisfiesTag:()=>AB,getJSDocTags:()=>Ab,getJSDocTemplateTag:()=>f0e,getJSDocThisTag:()=>K8,getJSDocType:()=>h0,getJSDocTypeAliasName:()=>DG,getJSDocTypeAssertionType:()=>kI,getJSDocTypeParameterDeclarations:()=>aO,getJSDocTypeParameterTags:()=>Eee,getJSDocTypeParameterTagsNoCache:()=>Nee,getJSDocTypeTag:()=>Pb,getJSXImplicitImportBase:()=>N4,getJSXRuntimeImport:()=>wO,getJSXTransformEnabled:()=>CO,getKeyForCompilerOptions:()=>sU,getLanguageVariant:()=>w4,getLastChild:()=>_J,getLeadingCommentRanges:()=>sh,getLeadingCommentRangesOfNode:()=>pz,getLeftmostAccessExpression:()=>nI,getLeftmostExpression:()=>iI,getLibFileNameFromLibReference:()=>UJ,getLibNameFromLibReference:()=>GJ,getLibraryNameFromLibFileName:()=>uV,getLineAndCharacterOfPosition:()=>Qs,getLineInfo:()=>PU,getLineOfLocalPosition:()=>lA,getLineStartPositionForPosition:()=>ld,getLineStarts:()=>nh,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Lre,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Ore,getLinesBetweenPositions:()=>DP,getLinesBetweenRangeEndAndRangeStart:()=>aJ,getLinesBetweenRangeEndPositions:()=>J0e,getLiteralText:()=>bte,getLocalNameForExternalImport:()=>xI,getLocalSymbolForExportDefault:()=>pA,getLocaleSpecificMessage:()=>Is,getLocaleTimeString:()=>qM,getMappedContextSpan:()=>Uq,getMappedDocumentSpan:()=>fL,getMappedLocation:()=>AE,getMatchedFileSpec:()=>NV,getMatchedIncludeSpec:()=>MV,getMeaningFromDeclaration:()=>V5,getMeaningFromLocation:()=>zk,getMembersOfDeclaration:()=>Ote,getModeForFileReference:()=>toe,getModeForResolutionAtIndex:()=>CTe,getModeForUsageLocation:()=>cV,getModifiedTime:()=>Vx,getModifiers:()=>cS,getModuleInstanceState:()=>gy,getModuleNameStringLiteralAt:()=>GM,getModuleSpecifierEndingPreference:()=>one,getModuleSpecifierResolverHost:()=>Fq,getNameForExportedSymbol:()=>TL,getNameFromImportAttribute:()=>GO,getNameFromIndexInfo:()=>Dte,getNameFromPropertyName:()=>o3,getNameOfAccessExpression:()=>pJ,getNameOfCompilerOptionValue:()=>XG,getNameOfDeclaration:()=>vs,getNameOfExpando:()=>bz,getNameOfJSDocTypedef:()=>Pee,getNameOfScriptTarget:()=>kO,getNameOrArgument:()=>Z6,getNameTable:()=>X$,getNamespaceDeclarationNode:()=>qw,getNewLineCharacter:()=>nv,getNewLineKind:()=>y3,getNewLineOrDefaultFromHost:()=>yy,getNewTargetContainer:()=>Vte,getNextJSDocCommentLocation:()=>Cz,getNodeChildren:()=>vG,getNodeForGeneratedName:()=>lM,getNodeId:()=>Ua,getNodeKind:()=>QS,getNodeModifiers:()=>IE,getNodeModulePathParts:()=>BO,getNonAssignedNameOfDeclaration:()=>H8,getNonAssignmentOperatorForCompoundAssignment:()=>uE,getNonAugmentationDeclaration:()=>az,getNonDecoratorTokenPosOfNode:()=>ez,getNonIncrementalBuildInfoRoots:()=>boe,getNonModifierTokenPosOfNode:()=>yte,getNormalizedAbsolutePath:()=>as,getNormalizedAbsolutePathWithoutRoot:()=>dB,getNormalizedPathComponents:()=>B8,getObjectFlags:()=>Mn,getOperatorAssociativity:()=>jz,getOperatorPrecedence:()=>d4,getOptionFromName:()=>VG,getOptionsForLibraryResolution:()=>aU,getOptionsNameMap:()=>DI,getOptionsSyntaxByArrayElementValue:()=>qJ,getOptionsSyntaxByValue:()=>Pne,getOrCreateEmitNode:()=>Au,getOrUpdate:()=>pP,getOriginalNode:()=>ic,getOriginalNodeId:()=>T_,getOutputDeclarationFileName:()=>LI,getOutputDeclarationFileNameWorker:()=>VU,getOutputExtension:()=>OM,getOutputFileNames:()=>hTe,getOutputJSFileNameWorker:()=>qU,getOutputPathsFor:()=>mE,getOwnEmitOutputFilePath:()=>dre,getOwnKeys:()=>bm,getOwnValues:()=>zx,getPackageJsonTypesVersionsPaths:()=>z7,getPackageNameFromTypesPackageName:()=>aE,getPackageScopeForPath:()=>sE,getParameterSymbolFromJSDoc:()=>o4,getParentNodeInSpan:()=>l3,getParseTreeNode:()=>Cs,getParsedCommandLineOfConfigFile:()=>mM,getPathComponents:()=>Iu,getPathFromPathComponents:()=>Ib,getPathUpdater:()=>y$,getPathsBasePath:()=>rO,getPatternFromSpec:()=>kJ,getPendingEmitKindWithSeen:()=>k5,getPositionOfLineAndCharacter:()=>s6,getPossibleGenericSignatures:()=>xq,getPossibleOriginalInputExtensionForExtension:()=>Vz,getPossibleOriginalInputPathWithoutChangingExt:()=>qz,getPossibleTypeArgumentsInfo:()=>Cq,getPreEmitDiagnostics:()=>yTe,getPrecedingNonSpaceCharacterPosition:()=>pL,getPrivateIdentifier:()=>OU,getProperties:()=>RU,getProperty:()=>C8,getPropertyAssignmentAliasLikeExpression:()=>ore,getPropertyNameForPropertyNameNode:()=>dk,getPropertyNameFromType:()=>Np,getPropertyNameOfBindingOrAssignmentElement:()=>IG,getPropertySymbolFromBindingElement:()=>_L,getPropertySymbolsFromContextualType:()=>$L,getQuoteFromPreference:()=>Lq,getQuotePreference:()=>Tf,getRangesWhere:()=>kW,getRefactorContextSpan:()=>aC,getReferencedFileLocation:()=>vE,getRegexFromPattern:()=>iv,getRegularExpressionForWildcard:()=>bA,getRegularExpressionsForWildcards:()=>IO,getRelativePathFromDirectory:()=>Zf,getRelativePathFromFile:()=>Cw,getRelativePathToDirectoryOrUrl:()=>Hx,getRenameLocation:()=>f3,getReplacementSpanForContextToken:()=>Pq,getResolutionDiagnostic:()=>dV,getResolutionModeOverride:()=>jI,getResolveJsonModule:()=>DS,getResolvePackageJsonExports:()=>D4,getResolvePackageJsonImports:()=>P4,getResolvedExternalModuleName:()=>Gz,getResolvedModuleFromResolution:()=>i2,getResolvedTypeReferenceDirectiveFromResolution:()=>gF,getRestIndicatorOfBindingOrAssignmentElement:()=>v7,getRestParameterElementType:()=>mz,getRightMostAssignedExpression:()=>Y6,getRootDeclaration:()=>Am,getRootDirectoryOfResolutionCache:()=>woe,getRootLength:()=>Bd,getScriptKind:()=>Hq,getScriptKindFromFileName:()=>EO,getScriptTargetFeatures:()=>tz,getSelectedEffectiveModifierFlags:()=>g2,getSelectedSyntacticModifierFlags:()=>Tre,getSemanticClassifications:()=>fle,getSemanticJsxChildren:()=>Xw,getSetAccessorTypeAnnotationNode:()=>hre,getSetAccessorValueParameter:()=>uA,getSetExternalModuleIndicator:()=>I4,getShebang:()=>q8,getSingleVariableOfVariableStatement:()=>p2,getSnapshotText:()=>sC,getSnippetElement:()=>YJ,getSourceFileOfModule:()=>A6,getSourceFileOfNode:()=>Fr,getSourceFilePathInNewDir:()=>iO,getSourceFileVersionAsHashFromText:()=>A5,getSourceFilesToEmit:()=>nO,getSourceMapRange:()=>av,getSourceMapper:()=>Dle,getSourceTextOfNodeFromSourceFile:()=>pS,getSpanOfTokenAtPosition:()=>Cm,getSpellingSuggestion:()=>oS,getStartPositionOfLine:()=>C0,getStartPositionOfRange:()=>dA,getStartsOnNewLine:()=>RA,getStaticPropertiesAndClassStaticBlock:()=>n5,getStrictOptionValue:()=>Pu,getStringComparer:()=>bw,getSubPatternFromSpec:()=>DO,getSuperCallFromStatement:()=>t5,getSuperContainer:()=>J6,getSupportedCodeFixes:()=>Q$,getSupportedExtensions:()=>SA,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>R4,getSwitchedType:()=>Zq,getSymbolId:()=>ua,getSymbolNameForPrivateIdentifier:()=>f4,getSymbolTarget:()=>Qq,getSyntacticClassifications:()=>ple,getSyntacticModifierFlags:()=>tv,getSyntacticModifierFlagsNoCache:()=>Yz,getSynthesizedDeepClone:()=>ro,getSynthesizedDeepCloneWithReplacements:()=>_3,getSynthesizedDeepClones:()=>XS,getSynthesizedDeepClonesWithReplacements:()=>Kq,getSyntheticLeadingComments:()=>uI,getSyntheticTrailingComments:()=>q4,getTargetLabel:()=>H5,getTargetOfBindingOrAssignmentElement:()=>J0,getTemporaryModuleResolutionState:()=>iE,getTextOfConstantValue:()=>Ste,getTextOfIdentifierOrLiteral:()=>Ip,getTextOfJSDocComment:()=>h6,getTextOfJsxAttributeName:()=>B4,getTextOfJsxNamespacedName:()=>NA,getTextOfNode:()=>oc,getTextOfNodeFromSourceText:()=>VP,getTextOfPropertyName:()=>o2,getThisContainer:()=>t_,getThisParameter:()=>xS,getTokenAtPosition:()=>ki,getTokenPosOfNode:()=>w0,getTokenSourceMapRange:()=>ube,getTouchingPropertyName:()=>W_,getTouchingToken:()=>$I,getTrailingCommentRanges:()=>m0,getTrailingSemicolonDeferringWriter:()=>Jz,getTransformers:()=>Wae,getTsBuildInfoEmitOutputFilePath:()=>n1,getTsConfigObjectLiteralExpression:()=>QP,getTsConfigPropArrayElementValue:()=>EF,getTypeAnnotationNode:()=>yre,getTypeArgumentOrTypeParameterList:()=>Mce,getTypeKeywordOfTypeOnlyImport:()=>Bq,getTypeNode:()=>Jne,getTypeNodeIfAccessible:()=>FE,getTypeParameterFromJsDoc:()=>tre,getTypeParameterOwner:()=>i0e,getTypesPackageName:()=>H7,getUILocale:()=>RY,getUniqueName:()=>Uk,getUniqueSymbolId:()=>Qce,getUseDefineForClassFields:()=>A4,getWatchErrorSummaryDiagnosticMessage:()=>IV,getWatchFactory:()=>eV,group:()=>vw,groupBy:()=>AW,guessIndentation:()=>cte,handleNoEmitOptions:()=>pV,handleWatchOptionsConfigDirTemplateSubstitution:()=>F7,hasAbstractModifier:()=>IS,hasAccessorModifier:()=>Em,hasAmbientModifier:()=>Xz,hasChangesInResolutions:()=>XB,hasContextSensitiveParameters:()=>jO,hasDecorators:()=>rp,hasDocComment:()=>Ece,hasDynamicName:()=>oy,hasEffectiveModifier:()=>hf,hasEffectiveModifiers:()=>Kz,hasEffectiveReadonlyModifier:()=>gk,hasExtension:()=>xw,hasImplementationTSFileExtension:()=>sne,hasIndexSignature:()=>Yq,hasInferredType:()=>VO,hasInitializer:()=>Yy,hasInvalidEscape:()=>Bz,hasJSDocNodes:()=>Lf,hasJSDocParameterTags:()=>Mee,hasJSFileExtension:()=>vh,hasJsonModuleEmitEnabled:()=>TO,hasOnlyExpressionInitializer:()=>ik,hasOverrideModifier:()=>oO,hasPossibleExternalModuleReference:()=>wte,hasProperty:()=>bo,hasPropertyAccessExpressionWithName:()=>ZM,hasQuestionToken:()=>_2,hasRecordedExternalHelpers:()=>Pie,hasResolutionModeOverride:()=>Tne,hasRestParameter:()=>qB,hasScopeMarker:()=>Zee,hasStaticModifier:()=>Tl,hasSyntacticModifier:()=>ei,hasSyntacticModifiers:()=>Sre,hasTSFileExtension:()=>yk,hasTabstop:()=>vne,hasTrailingDirectorySeparator:()=>p0,hasType:()=>_F,hasTypeArguments:()=>N0e,hasZeroOrOneAsteriskCharacter:()=>vJ,hostGetCanonicalFileName:()=>cy,hostUsesCaseSensitiveFileNames:()=>mk,idText:()=>Ln,identifierIsThisKeyword:()=>Hz,identifierToKeywordKind:()=>YT,identity:()=>Do,identitySourceMapConsumer:()=>EU,ignoreSourceNewlines:()=>eG,ignoredPaths:()=>L8,importFromModuleSpecifier:()=>eA,importSyntaxAffectsModuleResolution:()=>hJ,indexOfAnyCharCode:()=>TY,indexOfNode:()=>Lw,indicesOf:()=>x8,inferredTypesContainingFile:()=>yE,injectClassNamedEvaluationHelperBlockIfMissing:()=>o5,injectClassThisAssignmentIfMissing:()=>fae,insertImports:()=>Wq,insertSorted:()=>s0,insertStatementAfterCustomPrologue:()=>sk,insertStatementAfterStandardPrologue:()=>C0e,insertStatementsAfterCustomPrologue:()=>YB,insertStatementsAfterStandardPrologue:()=>_h,intersperse:()=>HN,intrinsicTagNameToString:()=>WJ,introducesArgumentsExoticObject:()=>Wte,inverseJsxOptionMap:()=>pM,isAbstractConstructorSymbol:()=>jre,isAbstractModifier:()=>eie,isAccessExpression:()=>Oo,isAccessibilityModifier:()=>Iq,isAccessor:()=>T0,isAccessorModifier:()=>rie,isAliasableExpression:()=>qF,isAmbientModule:()=>e_,isAmbientPropertyDeclaration:()=>cz,isAnyDirectorySeparator:()=>_B,isAnyImportOrBareOrAccessedRequire:()=>xte,isAnyImportOrReExport:()=>R6,isAnyImportOrRequireStatement:()=>Cte,isAnyImportSyntax:()=>a2,isAnySupportedFileExtension:()=>rbe,isApplicableVersionedTypesKey:()=>kM,isArgumentExpressionOfElementAccess:()=>gq,isArray:()=>ks,isArrayBindingElement:()=>sF,isArrayBindingOrAssignmentElement:()=>k6,isArrayBindingOrAssignmentPattern:()=>BB,isArrayBindingPattern:()=>uv,isArrayLiteralExpression:()=>gu,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>dv,isArrayTypeNode:()=>X4,isArrowFunction:()=>Lo,isAsExpression:()=>dI,isAssertClause:()=>lie,isAssertEntry:()=>Sbe,isAssertionExpression:()=>fS,isAssertsKeyword:()=>Yne,isAssignmentDeclaration:()=>YP,isAssignmentExpression:()=>ql,isAssignmentOperator:()=>ly,isAssignmentPattern:()=>zP,isAssignmentTarget:()=>A0,isAsteriskToken:()=>H4,isAsyncFunction:()=>sA,isAsyncModifier:()=>jA,isAutoAccessorPropertyDeclaration:()=>N_,isAwaitExpression:()=>B0,isAwaitKeyword:()=>sG,isBigIntLiteral:()=>LA,isBinaryExpression:()=>vn,isBinaryLogicalOperator:()=>v4,isBinaryOperatorToken:()=>Lie,isBindableObjectDefinePropertyCall:()=>uk,isBindableStaticAccessExpression:()=>vS,isBindableStaticElementAccessExpression:()=>GF,isBindableStaticNameExpression:()=>_k,isBindingElement:()=>Da,isBindingElementOfBareOrAccessedRequire:()=>Hte,isBindingName:()=>rk,isBindingOrAssignmentElement:()=>Qee,isBindingOrAssignmentPattern:()=>S6,isBindingPattern:()=>Ws,isBlock:()=>Fs,isBlockLike:()=>oC,isBlockOrCatchScoped:()=>rz,isBlockScope:()=>lz,isBlockScopedContainerTopLevel:()=>kte,isBooleanLiteral:()=>BP,isBreakOrContinueStatement:()=>OP,isBreakStatement:()=>ybe,isBuildCommand:()=>Hoe,isBuildInfoFile:()=>Bae,isBuilderProgram:()=>PV,isBundle:()=>pie,isCallChain:()=>ZT,isCallExpression:()=>qs,isCallExpressionTarget:()=>uq,isCallLikeExpression:()=>_S,isCallLikeOrFunctionLikeExpression:()=>zB,isCallOrNewExpression:()=>km,isCallOrNewExpressionTarget:()=>_q,isCallSignatureDeclaration:()=>O2,isCallToHelper:()=>OA,isCaseBlock:()=>VA,isCaseClause:()=>yI,isCaseKeyword:()=>nie,isCaseOrDefaultClause:()=>lF,isCatchClause:()=>BS,isCatchClauseVariableDeclaration:()=>yne,isCatchClauseVariableDeclarationOrBindingElement:()=>nz,isCheckJsEnabledForFile:()=>xA,isCircularBuildOrder:()=>nC,isClassDeclaration:()=>gl,isClassElement:()=>rl,isClassExpression:()=>ml,isClassInstanceProperty:()=>$ee,isClassLike:()=>ii,isClassMemberModifier:()=>LB,isClassNamedEvaluationHelperBlock:()=>eC,isClassOrTypeElement:()=>iF,isClassStaticBlockDeclaration:()=>Nc,isClassThisAssignmentBlock:()=>fE,isColonToken:()=>Kne,isCommaExpression:()=>iM,isCommaListExpression:()=>GA,isCommaSequence:()=>KA,isCommaToken:()=>Qne,isComment:()=>iL,isCommonJsExportPropertyAssignment:()=>PF,isCommonJsExportedExpression:()=>Lte,isCompoundAssignment:()=>lE,isComputedNonLiteralName:()=>F6,isComputedPropertyName:()=>pa,isConciseBody:()=>oF,isConditionalExpression:()=>wk,isConditionalTypeNode:()=>RS,isConstAssertion:()=>BJ,isConstTypeReference:()=>vd,isConstructSignatureDeclaration:()=>K4,isConstructorDeclaration:()=>lc,isConstructorTypeNode:()=>_I,isContextualKeyword:()=>HF,isContinueStatement:()=>hbe,isCustomPrologue:()=>B6,isDebuggerStatement:()=>vbe,isDeclaration:()=>Ul,isDeclarationBindingElement:()=>b6,isDeclarationFileName:()=>Ll,isDeclarationName:()=>Cg,isDeclarationNameOfEnumOrNamespace:()=>cJ,isDeclarationReadonly:()=>L6,isDeclarationStatement:()=>nte,isDeclarationWithTypeParameterChildren:()=>_z,isDeclarationWithTypeParameters:()=>uz,isDecorator:()=>Rl,isDecoratorTarget:()=>bce,isDefaultClause:()=>qA,isDefaultImport:()=>fk,isDefaultModifier:()=>n7,isDefaultedExpandoInitializer:()=>Qte,isDeleteExpression:()=>sie,isDeleteTarget:()=>Dz,isDeprecatedDeclaration:()=>kL,isDestructuringAssignment:()=>rv,isDiskPathRoot:()=>fB,isDoStatement:()=>gbe,isDocumentRegistryEntry:()=>b3,isDotDotDotToken:()=>t7,isDottedName:()=>S4,isDynamicName:()=>KF,isEffectiveExternalModule:()=>jw,isEffectiveStrictModeSourceFile:()=>oz,isElementAccessChain:()=>EB,isElementAccessExpression:()=>wo,isEmittedFileOfProgram:()=>$ae,isEmptyArrayLiteral:()=>Pre,isEmptyBindingElement:()=>wee,isEmptyBindingPattern:()=>Cee,isEmptyObjectLiteral:()=>nJ,isEmptyStatement:()=>cG,isEmptyStringLiteral:()=>yz,isEntityName:()=>m_,isEntityNameExpression:()=>mo,isEnumConst:()=>Nb,isEnumDeclaration:()=>LS,isEnumMember:()=>_v,isEqualityOperatorKind:()=>gL,isEqualsGreaterThanToken:()=>Xne,isExclamationToken:()=>Q4,isExcludedFile:()=>dse,isExclusivelyTypeOnlyImportOrExport:()=>oV,isExpandoPropertyDeclaration:()=>P2,isExportAssignment:()=>Ho,isExportDeclaration:()=>Xc,isExportModifier:()=>R2,isExportName:()=>h7,isExportNamespaceAsDefaultDeclaration:()=>SF,isExportOrDefaultModifier:()=>cM,isExportSpecifier:()=>zu,isExportsIdentifier:()=>lk,isExportsOrModuleExportsOrAlias:()=>GS,isExpression:()=>gt,isExpressionNode:()=>Ud,isExpressionOfExternalModuleImportEqualsDeclaration:()=>kce,isExpressionOfOptionalChainRoot:()=>eF,isExpressionStatement:()=>$l,isExpressionWithTypeArguments:()=>py,isExpressionWithTypeArgumentsInClassExtendsClause:()=>lO,isExternalModule:()=>xl,isExternalModuleAugmentation:()=>mS,isExternalModuleImportEqualsDeclaration:()=>Mb,isExternalModuleIndicator:()=>C6,isExternalModuleNameRelative:()=>Jl,isExternalModuleReference:()=>dy,isExternalModuleSymbol:()=>r2,isExternalOrCommonJsModule:()=>mf,isFileLevelReservedGeneratedIdentifier:()=>v6,isFileLevelUniqueName:()=>vF,isFileProbablyExternalModule:()=>_M,isFirstDeclarationOfSymbolParameter:()=>Vq,isFixablePromiseHandler:()=>x$,isForInOrOfStatement:()=>nk,isForInStatement:()=>c7,isForInitializer:()=>xp,isForOfStatement:()=>Z4,isForStatement:()=>$b,isFullSourceFile:()=>ph,isFunctionBlock:()=>gS,isFunctionBody:()=>GB,isFunctionDeclaration:()=>jc,isFunctionExpression:()=>Ao,isFunctionExpressionOrArrowFunction:()=>O0,isFunctionLike:()=>Ns,isFunctionLikeDeclaration:()=>xo,isFunctionLikeKind:()=>Yx,isFunctionLikeOrClassStaticBlockDeclaration:()=>Mw,isFunctionOrConstructorTypeNode:()=>Hee,isFunctionOrModuleBlock:()=>jB,isFunctionSymbol:()=>Yte,isFunctionTypeNode:()=>Ig,isGeneratedIdentifier:()=>Ko,isGeneratedPrivateIdentifier:()=>tk,isGetAccessor:()=>ch,isGetAccessorDeclaration:()=>Mp,isGetOrSetAccessorDeclaration:()=>y6,isGlobalScopeAugmentation:()=>xg,isGlobalSourceFile:()=>Zy,isGrammarError:()=>gte,isHeritageClause:()=>vf,isHoistedFunction:()=>IF,isHoistedVariableStatement:()=>DF,isIdentifier:()=>je,isIdentifierANonContextualKeyword:()=>Mz,isIdentifierName:()=>are,isIdentifierOrThisTypeNode:()=>Mie,isIdentifierPart:()=>ry,isIdentifierStart:()=>bg,isIdentifierText:()=>$_,isIdentifierTypePredicate:()=>Bte,isIdentifierTypeReference:()=>pne,isIfStatement:()=>qb,isIgnoredFileFromWildCardWatching:()=>jM,isImplicitGlob:()=>TJ,isImportAttribute:()=>uie,isImportAttributeName:()=>qee,isImportAttributes:()=>Dk,isImportCall:()=>jf,isImportClause:()=>Cd,isImportDeclaration:()=>sc,isImportEqualsDeclaration:()=>Ol,isImportKeyword:()=>BA,isImportMeta:()=>zw,isImportOrExportSpecifier:()=>b0,isImportOrExportSpecifierName:()=>Hce,isImportSpecifier:()=>a_,isImportTypeAssertionContainer:()=>bbe,isImportTypeNode:()=>Om,isImportable:()=>f$,isInComment:()=>pv,isInCompoundLikeAssignment:()=>Iz,isInExpressionContext:()=>LF,isInJSDoc:()=>$6,isInJSFile:()=>un,isInJSXText:()=>Ace,isInJsonFile:()=>WF,isInNonReferenceComment:()=>Oce,isInReferenceComment:()=>Fce,isInRightSideOfInternalImportEqualsDeclaration:()=>q5,isInString:()=>iC,isInTemplateString:()=>kq,isInTopLevelContext:()=>RF,isInTypeQuery:()=>m2,isIncrementalBuildInfo:()=>UM,isIncrementalBundleEmitBuildInfo:()=>doe,isIncrementalCompilation:()=>PS,isIndexSignatureDeclaration:()=>W0,isIndexedAccessTypeNode:()=>FS,isInferTypeNode:()=>kk,isInfinityOrNaNString:()=>PA,isInitializedProperty:()=>DM,isInitializedVariable:()=>C4,isInsideJsxElement:()=>rL,isInsideJsxElementOrAttribute:()=>Pce,isInsideNodeModules:()=>m3,isInsideTemplateLiteral:()=>i3,isInstanceOfExpression:()=>uO,isInstantiatedModule:()=>xU,isInterfaceDeclaration:()=>hu,isInternalDeclaration:()=>lte,isInternalModuleImportEqualsDeclaration:()=>ck,isInternalName:()=>xG,isIntersectionTypeNode:()=>W2,isIntrinsicJsxName:()=>Yw,isIterationStatement:()=>k0,isJSDoc:()=>Kd,isJSDocAllType:()=>gie,isJSDocAugmentsTag:()=>U2,isJSDocAuthorTag:()=>Cbe,isJSDocCallbackTag:()=>fG,isJSDocClassTag:()=>yie,isJSDocCommentContainingNode:()=>uF,isJSDocConstructSignature:()=>f2,isJSDocDeprecatedTag:()=>hG,isJSDocEnumTag:()=>tM,isJSDocFunctionType:()=>bI,isJSDocImplementsTag:()=>d7,isJSDocImportTag:()=>zm,isJSDocIndexSignature:()=>zF,isJSDocLikeText:()=>MG,isJSDocLink:()=>die,isJSDocLinkCode:()=>mie,isJSDocLinkLike:()=>t2,isJSDocLinkPlain:()=>kbe,isJSDocMemberName:()=>Kb,isJSDocNameReference:()=>$A,isJSDocNamepathType:()=>xbe,isJSDocNamespaceBody:()=>y0e,isJSDocNode:()=>Rw,isJSDocNonNullableType:()=>u7,isJSDocNullableType:()=>vI,isJSDocOptionalParameter:()=>zO,isJSDocOptionalType:()=>_G,isJSDocOverloadTag:()=>SI,isJSDocOverrideTag:()=>f7,isJSDocParameterTag:()=>ip,isJSDocPrivateTag:()=>dG,isJSDocPropertyLikeTag:()=>LP,isJSDocPropertyTag:()=>vie,isJSDocProtectedTag:()=>mG,isJSDocPublicTag:()=>pG,isJSDocReadonlyTag:()=>gG,isJSDocReturnTag:()=>p7,isJSDocSatisfiesExpression:()=>LJ,isJSDocSatisfiesTag:()=>m7,isJSDocSeeTag:()=>wbe,isJSDocSignature:()=>fv,isJSDocTag:()=>Fw,isJSDocTemplateTag:()=>ad,isJSDocThisTag:()=>yG,isJSDocThrowsTag:()=>Dbe,isJSDocTypeAlias:()=>td,isJSDocTypeAssertion:()=>zS,isJSDocTypeExpression:()=>Qb,isJSDocTypeLiteral:()=>Ak,isJSDocTypeTag:()=>HA,isJSDocTypedefTag:()=>Ek,isJSDocUnknownTag:()=>Ibe,isJSDocUnknownType:()=>hie,isJSDocVariadicType:()=>_7,isJSXTagName:()=>Uw,isJsonEqual:()=>OO,isJsonSourceFile:()=>wp,isJsxAttribute:()=>Bm,isJsxAttributeLike:()=>cF,isJsxAttributeName:()=>Sne,isJsxAttributes:()=>WS,isJsxCallLike:()=>ote,isJsxChild:()=>D6,isJsxClosingElement:()=>jS,isJsxClosingFragment:()=>fie,isJsxElement:()=>Wm,isJsxExpression:()=>hI,isJsxFragment:()=>Hb,isJsxNamespacedName:()=>Qd,isJsxOpeningElement:()=>Hd,isJsxOpeningFragment:()=>wd,isJsxOpeningLikeElement:()=>Wu,isJsxOpeningLikeElementTagName:()=>Sce,isJsxSelfClosingElement:()=>Pk,isJsxSpreadAttribute:()=>G2,isJsxTagNameExpression:()=>JP,isJsxText:()=>N2,isJumpStatementTarget:()=>e3,isKeyword:()=>F_,isKeywordOrPunctuation:()=>$F,isKnownSymbol:()=>p4,isLabelName:()=>dq,isLabelOfLabeledStatement:()=>pq,isLabeledStatement:()=>z0,isLateVisibilityPaintedStatement:()=>kF,isLeftHandSideExpression:()=>M_,isLet:()=>wF,isLineBreak:()=>Lu,isLiteralComputedPropertyDeclarationName:()=>l4,isLiteralExpression:()=>ek,isLiteralExpressionOfObject:()=>FB,isLiteralImportTypeNode:()=>sy,isLiteralKind:()=>jP,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>Q5,isLiteralTypeLiteral:()=>Yee,isLiteralTypeNode:()=>lv,isLocalName:()=>my,isLogicalOperator:()=>wre,isLogicalOrCoalescingAssignmentExpression:()=>Zz,isLogicalOrCoalescingAssignmentOperator:()=>_A,isLogicalOrCoalescingBinaryExpression:()=>b4,isLogicalOrCoalescingBinaryOperator:()=>cO,isMappedTypeNode:()=>Ck,isMemberName:()=>oh,isMetaProperty:()=>JA,isMethodDeclaration:()=>xc,isMethodOrAccessor:()=>Zx,isMethodSignature:()=>xd,isMinusToken:()=>iG,isMissingDeclaration:()=>Tbe,isMissingPackageJsonInfo:()=>wse,isModifier:()=>la,isModifierKind:()=>S0,isModifierLike:()=>Xo,isModuleAugmentationExternal:()=>sz,isModuleBlock:()=>Lm,isModuleBody:()=>ete,isModuleDeclaration:()=>nl,isModuleExportName:()=>l7,isModuleExportsAccessExpression:()=>dh,isModuleIdentifier:()=>Sz,isModuleName:()=>Oie,isModuleOrEnumDeclaration:()=>w6,isModuleReference:()=>ste,isModuleSpecifierLike:()=>uL,isModuleWithStringLiteralName:()=>TF,isNameOfFunctionDeclaration:()=>yq,isNameOfModuleDeclaration:()=>hq,isNamedDeclaration:()=>Gl,isNamedEvaluation:()=>gf,isNamedEvaluationSource:()=>Rz,isNamedExportBindings:()=>MB,isNamedExports:()=>Fp,isNamedImportBindings:()=>UB,isNamedImports:()=>jm,isNamedImportsOrExports:()=>hO,isNamedTupleMember:()=>fI,isNamespaceBody:()=>h0e,isNamespaceExport:()=>Dg,isNamespaceExportDeclaration:()=>eM,isNamespaceImport:()=>kh,isNamespaceReexportDeclaration:()=>$te,isNewExpression:()=>OS,isNewExpressionTarget:()=>xE,isNewScopeNode:()=>Dne,isNoSubstitutionTemplateLiteral:()=>Tk,isNodeArray:()=>lS,isNodeArrayMultiLine:()=>Fre,isNodeDescendantOf:()=>SS,isNodeKind:()=>rF,isNodeLikeSystem:()=>zW,isNodeModulesDirectory:()=>J8,isNodeWithPossibleHoistedDeclaration:()=>ire,isNonContextualKeyword:()=>Nz,isNonGlobalAmbientModule:()=>iz,isNonNullAccess:()=>bne,isNonNullChain:()=>tF,isNonNullExpression:()=>z2,isNonStaticMethodOrAccessorWithPrivateName:()=>sae,isNotEmittedStatement:()=>_ie,isNullishCoalesce:()=>NB,isNumber:()=>c0,isNumericLiteral:()=>L_,isNumericLiteralName:()=>Sh,isObjectBindingElementWithoutPropertyName:()=>c3,isObjectBindingOrAssignmentElement:()=>T6,isObjectBindingOrAssignmentPattern:()=>WB,isObjectBindingPattern:()=>np,isObjectLiteralElement:()=>VB,isObjectLiteralElementLike:()=>iy,isObjectLiteralExpression:()=>Sa,isObjectLiteralMethod:()=>ed,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>AF,isObjectTypeDeclaration:()=>b2,isOmittedExpression:()=>Fl,isOptionalChain:()=>ju,isOptionalChainRoot:()=>RP,isOptionalDeclaration:()=>I2,isOptionalJSDocPropertyLikeTag:()=>W4,isOptionalTypeNode:()=>i7,isOuterExpression:()=>y7,isOutermostOptionalChain:()=>FP,isOverrideModifier:()=>tie,isPackageJsonInfo:()=>G7,isPackedArrayLiteral:()=>FJ,isParameter:()=>Bi,isParameterPropertyDeclaration:()=>pf,isParameterPropertyModifier:()=>WP,isParenthesizedExpression:()=>b_,isParenthesizedTypeNode:()=>xk,isParseTreeNode:()=>MP,isPartOfParameterDeclaration:()=>jb,isPartOfTypeNode:()=>Im,isPartOfTypeOnlyImportOrExportDeclaration:()=>Vee,isPartOfTypeQuery:()=>jF,isPartiallyEmittedExpression:()=>aie,isPatternMatch:()=>D8,isPinnedComment:()=>bF,isPlainJsFile:()=>UP,isPlusToken:()=>nG,isPossiblyTypeArgumentPosition:()=>n3,isPostfixUnaryExpression:()=>oG,isPrefixUnaryExpression:()=>Vb,isPrimitiveLiteralValue:()=>UO,isPrivateIdentifier:()=>ji,isPrivateIdentifierClassElementDeclaration:()=>Zu,isPrivateIdentifierPropertyAccessExpression:()=>Nw,isPrivateIdentifierSymbol:()=>lre,isProgramUptoDate:()=>_V,isPrologueDirective:()=>wm,isPropertyAccessChain:()=>Z8,isPropertyAccessEntityNameExpression:()=>T4,isPropertyAccessExpression:()=>Nn,isPropertyAccessOrQualifiedName:()=>x6,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Kee,isPropertyAssignment:()=>hl,isPropertyDeclaration:()=>ds,isPropertyName:()=>tl,isPropertyNameLiteral:()=>Pm,isPropertySignature:()=>s_,isPrototypeAccess:()=>M0,isPrototypePropertyAssignment:()=>t4,isPunctuation:()=>Ez,isPushOrUnshiftIdentifier:()=>Fz,isQualifiedName:()=>y_,isQuestionDotToken:()=>r7,isQuestionOrExclamationToken:()=>Nie,isQuestionOrPlusOrMinusToken:()=>Fie,isQuestionToken:()=>j0,isReadonlyKeyword:()=>Zne,isReadonlyKeywordOrPlusOrMinusToken:()=>Rie,isRecognizedTripleSlashComment:()=>ZB,isReferenceFileLocation:()=>WI,isReferencedFile:()=>i1,isRegularExpressionLiteral:()=>tG,isRequireCall:()=>R_,isRequireVariableStatement:()=>Q6,isRestParameter:()=>Tg,isRestTypeNode:()=>s7,isReturnStatement:()=>Bf,isReturnStatementWithFixablePromiseHandler:()=>EL,isRightSideOfAccessExpression:()=>rJ,isRightSideOfInstanceofExpression:()=>Dre,isRightSideOfPropertyAccess:()=>UI,isRightSideOfQualifiedName:()=>Tce,isRightSideOfQualifiedNameOrPropertyAccess:()=>fA,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Ire,isRootedDiskPath:()=>ff,isSameEntityName:()=>Vw,isSatisfiesExpression:()=>mI,isSemicolonClassElement:()=>oie,isSetAccessor:()=>xm,isSetAccessorDeclaration:()=>X_,isShiftOperatorOrHigher:()=>AG,isShorthandAmbientModuleSymbol:()=>M6,isShorthandPropertyAssignment:()=>Eu,isSideEffectImport:()=>JJ,isSignedNumericLiteral:()=>QF,isSimpleCopiableExpression:()=>US,isSimpleInlineableExpression:()=>Jm,isSimpleParameterList:()=>PM,isSingleOrDoubleQuote:()=>K6,isSolutionConfig:()=>eU,isSourceElement:()=>kne,isSourceFile:()=>Mi,isSourceFileFromLibrary:()=>eD,isSourceFileJS:()=>g_,isSourceFileNotJson:()=>BF,isSourceMapping:()=>rae,isSpecialPropertyDeclaration:()=>Xte,isSpreadAssignment:()=>xh,isSpreadElement:()=>Rp,isStatement:()=>Ii,isStatementButNotDeclaration:()=>I6,isStatementOrBlock:()=>ite,isStatementWithLocals:()=>mte,isStatic:()=>Ks,isStaticModifier:()=>F2,isString:()=>ys,isStringANonContextualKeyword:()=>d2,isStringAndEmptyAnonymousObjectIntersection:()=>Rce,isStringDoubleQuoted:()=>JF,isStringLiteral:()=>ya,isStringLiteralLike:()=>Ha,isStringLiteralOrJsxExpression:()=>ate,isStringLiteralOrTemplate:()=>ele,isStringOrNumericLiteralLike:()=>tp,isStringOrRegularExpressionOrTemplateLiteral:()=>wq,isStringTextContainingNode:()=>OB,isSuperCall:()=>ok,isSuperKeyword:()=>WA,isSuperProperty:()=>H_,isSupportedSourceFileName:()=>IJ,isSwitchStatement:()=>UA,isSyntaxList:()=>TI,isSyntheticExpression:()=>mbe,isSyntheticReference:()=>J2,isTagName:()=>mq,isTaggedTemplateExpression:()=>Ub,isTaggedTemplateTag:()=>vce,isTemplateExpression:()=>o7,isTemplateHead:()=>M2,isTemplateLiteral:()=>e2,isTemplateLiteralKind:()=>v0,isTemplateLiteralToken:()=>Gee,isTemplateLiteralTypeNode:()=>iie,isTemplateLiteralTypeSpan:()=>aG,isTemplateMiddle:()=>rG,isTemplateMiddleOrTemplateTail:()=>nF,isTemplateSpan:()=>gI,isTemplateTail:()=>e7,isTextWhiteSpaceLike:()=>Bce,isThis:()=>VI,isThisContainerOrFunctionBlock:()=>Ute,isThisIdentifier:()=>N0,isThisInTypeQuery:()=>CS,isThisInitializedDeclaration:()=>FF,isThisInitializedObjectBindingExpression:()=>qte,isThisProperty:()=>G6,isThisTypeNode:()=>zA,isThisTypeParameter:()=>AA,isThisTypePredicate:()=>zte,isThrowStatement:()=>uG,isToken:()=>Xx,isTokenKind:()=>RB,isTraceEnabled:()=>G0,isTransientSymbol:()=>lh,isTrivia:()=>Kw,isTryStatement:()=>Ik,isTupleTypeNode:()=>j2,isTypeAlias:()=>s4,isTypeAliasDeclaration:()=>sd,isTypeAssertionExpression:()=>a7,isTypeDeclaration:()=>w2,isTypeElement:()=>uS,isTypeKeyword:()=>DE,isTypeKeywordTokenOrIdentifier:()=>oL,isTypeLiteralNode:()=>v_,isTypeNode:()=>di,isTypeNodeKind:()=>fJ,isTypeOfExpression:()=>pI,isTypeOnlyExportDeclaration:()=>Uee,isTypeOnlyImportDeclaration:()=>Ew,isTypeOnlyImportOrExportDeclaration:()=>Xy,isTypeOperatorNode:()=>Gb,isTypeParameterDeclaration:()=>$o,isTypePredicateNode:()=>L2,isTypeQueryNode:()=>MS,isTypeReferenceNode:()=>yf,isTypeReferenceType:()=>fF,isTypeUsableAsPropertyName:()=>Ep,isUMDExportSymbol:()=>gO,isUnaryExpression:()=>JB,isUnaryExpressionWithWrite:()=>Xee,isUnicodeIdentifierStart:()=>U8,isUnionTypeNode:()=>cv,isUrl:()=>iee,isValidBigIntString:()=>LO,isValidESSymbolDeclaration:()=>jte,isValidTypeOnlyAliasUseSite:()=>Bb,isValueSignatureDeclaration:()=>pk,isVarAwaitUsing:()=>j6,isVarConst:()=>Bw,isVarConstLike:()=>Rte,isVarUsing:()=>W6,isVariableDeclaration:()=>oi,isVariableDeclarationInVariableStatement:()=>HP,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>yS,isVariableDeclarationInitializedToRequire:()=>H6,isVariableDeclarationList:()=>au,isVariableLike:()=>$P,isVariableStatement:()=>Lc,isVoidExpression:()=>B2,isWatchSet:()=>lJ,isWhileStatement:()=>lG,isWhiteSpaceLike:()=>ih,isWhiteSpaceSingleLine:()=>Tm,isWithStatement:()=>cie,isWriteAccess:()=>v2,isWriteOnlyAccess:()=>mO,isYieldExpression:()=>Y4,jsxModeNeedsExplicitImport:()=>l$,keywordPart:()=>kf,last:()=>xa,lastOrUndefined:()=>zo,length:()=>Dr,libMap:()=>jG,libs:()=>C7,lineBreakPart:()=>XI,loadModuleFromGlobalCache:()=>jse,loadWithModeAwareCache:()=>BM,makeIdentifierFromModuleName:()=>Tte,makeImport:()=>K0,makeStringLiteral:()=>PE,mangleScopedPackageName:()=>MI,map:()=>hr,mapAllOrFail:()=>SW,mapDefined:()=>Vi,mapDefinedIterator:()=>i0,mapEntries:()=>CY,mapIterator:()=>_P,mapOneOrMany:()=>s$,mapToDisplayParts:()=>o1,matchFiles:()=>xJ,matchPatternOrExact:()=>PJ,matchedText:()=>WY,matchesExclude:()=>j7,matchesExcludeWorker:()=>W7,maxBy:()=>MW,maybeBind:()=>Vs,maybeSetLocalizedDiagnosticMessages:()=>Ure,memoize:()=>Yu,memoizeOne:()=>Sm,min:()=>RW,minAndMax:()=>une,missingFileModifiedTime:()=>_f,modifierToFlag:()=>h2,modifiersToFlags:()=>Nm,moduleExportNameIsDefault:()=>kg,moduleExportNameTextEscaped:()=>dS,moduleExportNameTextUnescaped:()=>I0,moduleOptionDeclaration:()=>Hie,moduleResolutionIsEqualTo:()=>pte,moduleResolutionNameAndModeGetter:()=>m5,moduleResolutionOptionDeclarations:()=>BG,moduleResolutionSupportsPackageJsonExportsAndImports:()=>sI,moduleResolutionUsesNodeModules:()=>cL,moduleSpecifierToValidIdentifier:()=>h3,moduleSpecifiers:()=>hy,moduleSupportsImportAttributes:()=>Xre,moduleSymbolToValidIdentifier:()=>g3,moveEmitHelpers:()=>Bne,moveRangeEnd:()=>pO,moveRangePastDecorators:()=>uy,moveRangePastModifiers:()=>Mm,moveRangePos:()=>Wb,moveSyntheticComments:()=>Lne,mutateMap:()=>hA,mutateMapSkippingNewValues:()=>gh,needsParentheses:()=>dL,needsScopeMarker:()=>aF,newCaseClauseTracker:()=>wL,newPrivateEnvironment:()=>oae,noEmitNotification:()=>MM,noEmitSubstitution:()=>dE,noTransformers:()=>jae,noTruncationMaximumTruncationLength:()=>HB,nodeCanBeDecorated:()=>V6,nodeCoreModules:()=>lI,nodeHasName:()=>m6,nodeIsDecorated:()=>Gw,nodeIsMissing:()=>Tc,nodeIsPresent:()=>Zp,nodeIsSynthesized:()=>So,nodeModuleNameResolver:()=>Ese,nodeModulesPathPart:()=>Ch,nodeNextJsonConfigResolver:()=>Nse,nodeOrChildIsDecorated:()=>q6,nodeOverlapsWithStartEnd:()=>K5,nodePosToString:()=>S0e,nodeSeenTracker:()=>HI,nodeStartsNewLexicalEnvironment:()=>Oz,noop:()=>to,noopFileWatcher:()=>JI,normalizePath:()=>na,normalizeSlashes:()=>iu,normalizeSpans:()=>kB,not:()=>A8,notImplemented:()=>ra,notImplementedResolver:()=>Gae,nullNodeConverters:()=>Rne,nullParenthesizerRules:()=>Nne,nullTransformationContext:()=>FM,objectAllocator:()=>mu,operatorPart:()=>EE,optionDeclarations:()=>Id,optionMapToObject:()=>N7,optionsAffectingProgramStructure:()=>Zie,optionsForBuild:()=>JG,optionsForWatch:()=>Q2,optionsHaveChanges:()=>n2,or:()=>uf,orderedRemoveItem:()=>mP,orderedRemoveItemAt:()=>f0,packageIdToPackageName:()=>yF,packageIdToString:()=>Eb,parameterIsThisKeyword:()=>E0,parameterNamePart:()=>Jce,parseBaseNodeFactory:()=>Jie,parseBigInt:()=>fne,parseBuildCommand:()=>ose,parseCommandLine:()=>sse,parseCommandLineWorker:()=>UG,parseConfigFileTextToJson:()=>qG,parseConfigFileWithSystem:()=>Doe,parseConfigHostFromCompilerHostLike:()=>S5,parseCustomTypeOption:()=>P7,parseIsolatedEntityName:()=>H2,parseIsolatedJSDocComment:()=>Uie,parseJSDocTypeExpressionForTests:()=>Ybe,parseJsonConfigFileContent:()=>I1e,parseJsonSourceFileConfigFileContent:()=>yM,parseJsonText:()=>fM,parseListTypeOption:()=>nse,parseNodeFactory:()=>Yb,parseNodeModuleFromPath:()=>TM,parsePackageName:()=>q7,parsePseudoBigInt:()=>wA,parseValidBigInt:()=>MJ,pasteEdits:()=>cQ,patchWriteFileEnsuringDirectory:()=>nee,pathContainsNodeModules:()=>V0,pathIsAbsolute:()=>xP,pathIsBareSpecifier:()=>pB,pathIsRelative:()=>Of,patternText:()=>jY,performIncrementalCompilation:()=>Poe,performance:()=>$Y,positionBelongsToNode:()=>vq,positionIsASICandidate:()=>hL,positionIsSynthesized:()=>qd,positionsAreOnSameLine:()=>Pp,preProcessFile:()=>Lxe,probablyUsesSemicolons:()=>d3,processCommentPragmas:()=>OG,processPragmasIntoFields:()=>LG,processTaggedTemplateExpression:()=>WU,programContainsEsModules:()=>jce,programContainsModules:()=>Lce,projectReferenceIsEqualTo:()=>QB,propertyNamePart:()=>Gce,pseudoBigIntToString:()=>AS,punctuationPart:()=>Uu,pushIfUnique:()=>Sp,quote:()=>RE,quotePreferenceFromString:()=>Oq,rangeContainsPosition:()=>qI,rangeContainsPositionExclusive:()=>t3,rangeContainsRange:()=>O_,rangeContainsRangeExclusive:()=>xce,rangeContainsStartEnd:()=>r3,rangeEndIsOnSameLineAsRangeStart:()=>x4,rangeEndPositionsAreOnSameLine:()=>Mre,rangeEquals:()=>wW,rangeIsOnSingleLine:()=>hk,rangeOfNode:()=>EJ,rangeOfTypeParameters:()=>NJ,rangeOverlapsWithStartEnd:()=>CE,rangeStartIsOnSameLineAsRangeEnd:()=>Rre,rangeStartPositionsAreOnSameLine:()=>dO,readBuilderProgram:()=>N5,readConfigFile:()=>gM,readJson:()=>tI,readJsonConfigFile:()=>cse,readJsonOrUndefined:()=>iJ,reduceEachLeadingCommentRange:()=>fee,reduceEachTrailingCommentRange:()=>pee,reduceLeft:()=>d_,reduceLeftIterator:()=>hw,reducePathComponents:()=>$x,refactor:()=>lC,regExpEscape:()=>K0e,regularExpressionFlagToCharacterCode:()=>Qve,relativeComplement:()=>wY,removeAllComments:()=>U4,removeEmitHelper:()=>_be,removeExtension:()=>O4,removeFileExtension:()=>i_,removeIgnoredPath:()=>C5,removeMinAndVersionNumbers:()=>LW,removePrefix:()=>gP,removeSuffix:()=>Sw,removeTrailingDirectorySeparator:()=>Ky,repeatString:()=>a3,replaceElement:()=>PW,replaceFirstStar:()=>vk,resolutionExtensionIsTSOrJson:()=>TA,resolveConfigFileProjectName:()=>GV,resolveJSModule:()=>Dse,resolveLibrary:()=>V7,resolveModuleName:()=>Fk,resolveModuleNameFromCache:()=>nSe,resolvePackageNameToPackageJson:()=>iU,resolvePath:()=>d0,resolveProjectReferencePath:()=>tC,resolveTripleslashReference:()=>rV,resolveTypeReferenceDirective:()=>xse,resolvingEmptyArray:()=>$B,returnFalse:()=>ey,returnNoopFileWatcher:()=>SE,returnTrue:()=>iS,returnUndefined:()=>sS,returnsPromise:()=>k$,rewriteModuleSpecifier:()=>Y2,sameFlatMap:()=>kY,sameMap:()=>ul,sameMapping:()=>$Se,scanTokenAtPosition:()=>Mte,scanner:()=>ou,semanticDiagnosticsOptionDeclarations:()=>Kie,serializeCompilerOptions:()=>M7,server:()=>q6e,servicesVersion:()=>wCe,setCommentRange:()=>dl,setConfigFileInOptions:()=>YG,setConstantValue:()=>Wne,setEmitFlags:()=>dn,setGetSourceFileAsHashVersioned:()=>E5,setIdentifierAutoGenerate:()=>$4,setIdentifierGeneratedImportReference:()=>Gne,setIdentifierTypeArguments:()=>ov,setInternalEmitFlags:()=>V4,setLocalizedDiagnosticMessages:()=>Gre,setNodeChildren:()=>bie,setNodeFlags:()=>mne,setObjectAllocator:()=>Jre,setOriginalNode:()=>En,setParent:()=>Xa,setParentRecursive:()=>zb,setPrivateIdentifier:()=>Lk,setSnippetElement:()=>ZJ,setSourceMapRange:()=>Ia,setStackTraceLimit:()=>Nve,setStartsOnNewLine:()=>KO,setSyntheticLeadingComments:()=>Jb,setSyntheticTrailingComments:()=>A2,setSys:()=>jve,setSysLog:()=>eee,setTextRange:()=>dt,setTextRangeEnd:()=>cI,setTextRangePos:()=>IA,setTextRangePosEnd:()=>$d,setTextRangePosWidth:()=>RJ,setTokenSourceMapRange:()=>One,setTypeNode:()=>zne,setUILocale:()=>FY,setValueDeclaration:()=>r4,shouldAllowImportingTsExtension:()=>RI,shouldPreserveConstEnums:()=>R0,shouldRewriteModuleSpecifier:()=>i4,shouldUseUriStyleNodeCoreModules:()=>xL,showModuleSpecifier:()=>Wre,signatureHasRestParameter:()=>Gu,signatureToDisplayParts:()=>$q,single:()=>DW,singleElementArray:()=>Ux,singleIterator:()=>xY,singleOrMany:()=>yg,singleOrUndefined:()=>hg,skipAlias:()=>du,skipConstraint:()=>Mq,skipOuterExpressions:()=>Wc,skipParentheses:()=>Ka,skipPartiallyEmittedExpressions:()=>bd,skipTrivia:()=>ha,skipTypeChecking:()=>oI,skipTypeCheckingIgnoringNoCheck:()=>_ne,skipTypeParentheses:()=>tA,skipWhile:()=>zY,sliceAfter:()=>AJ,some:()=>pt,sortAndDeduplicate:()=>dP,sortAndDeduplicateDiagnostics:()=>Dw,sourceFileAffectingCompilerOptions:()=>zG,sourceFileMayBeEmitted:()=>kS,sourceMapCommentRegExp:()=>IU,sourceMapCommentRegExpDontCareLineStart:()=>Zse,spacePart:()=>Mc,spanMap:()=>TW,startEndContainsRange:()=>oJ,startEndOverlapsWithStartEnd:()=>X5,startOnNewLine:()=>Ju,startTracing:()=>XY,startsWith:()=>Yi,startsWithDirectory:()=>gB,startsWithUnderscore:()=>c$,startsWithUseStrict:()=>Iie,stringContainsAt:()=>ole,stringToToken:()=>XT,stripQuotes:()=>rd,supportedDeclarationExtensions:()=>MO,supportedJSExtensionsFlat:()=>aI,supportedLocaleDirectories:()=>Dee,supportedTSExtensionsFlat:()=>CJ,supportedTSImplementationExtensions:()=>M4,suppressLeadingAndTrailingTrivia:()=>xf,suppressLeadingTrivia:()=>Xq,suppressTrailingTrivia:()=>Xce,symbolEscapedNameNoDefault:()=>lL,symbolName:()=>Oc,symbolNameNoDefault:()=>jq,symbolToDisplayParts:()=>NE,sys:()=>Al,sysLog:()=>n6,tagNamesAreEquivalent:()=>e1,takeWhile:()=>BW,targetOptionDeclaration:()=>WG,targetToLibMap:()=>dee,testFormatSettings:()=>ixe,textChangeRangeIsUnchanged:()=>kee,textChangeRangeNewSpan:()=>NP,textChanges:()=>fn,textOrKeywordPart:()=>qq,textPart:()=>cp,textRangeContainsPositionInclusive:()=>_6,textRangeContainsTextSpan:()=>hee,textRangeIntersectsWithTextSpan:()=>See,textSpanContainsPosition:()=>SB,textSpanContainsTextRange:()=>TB,textSpanContainsTextSpan:()=>gee,textSpanEnd:()=>mc,textSpanIntersection:()=>Tee,textSpanIntersectsWith:()=>f6,textSpanIntersectsWithPosition:()=>bee,textSpanIntersectsWithTextSpan:()=>vee,textSpanIsEmpty:()=>mee,textSpanOverlap:()=>yee,textSpanOverlapsWith:()=>n0e,textSpansEqual:()=>KI,textToKeywordObj:()=>G8,timestamp:()=>To,toArray:()=>Jx,toBuilderFileEmit:()=>hoe,toBuilderStateFileInfoForMultiEmit:()=>goe,toEditorSettings:()=>C3,toFileNameLowerCase:()=>l0,toPath:()=>ko,toProgramEmitPending:()=>yoe,toSorted:()=>lf,tokenIsIdentifierOrKeyword:()=>E_,tokenIsIdentifierOrKeywordOrGreaterThan:()=>aee,tokenToString:()=>sa,trace:()=>us,tracing:()=>_n,tracingEnabled:()=>r6,transferSourceFileChildren:()=>Sie,transform:()=>OCe,transformClassFields:()=>hae,transformDeclarations:()=>GU,transformECMAScriptModule:()=>JU,transformES2015:()=>Eae,transformES2016:()=>Aae,transformES2017:()=>Sae,transformES2018:()=>Tae,transformES2019:()=>kae,transformES2020:()=>xae,transformES2021:()=>Cae,transformESDecorators:()=>bae,transformESNext:()=>wae,transformGenerators:()=>Nae,transformImpliedNodeFormatDependentModule:()=>Rae,transformJsx:()=>Pae,transformLegacyDecorators:()=>vae,transformModule:()=>zU,transformNamedEvaluation:()=>bf,transformNodes:()=>RM,transformSystemModule:()=>Mae,transformTypeScript:()=>gae,transpile:()=>qxe,transpileDeclaration:()=>Uxe,transpileModule:()=>Ale,transpileOptionValueCompilerOptions:()=>ese,tryAddToSet:()=>Qy,tryAndIgnoreErrors:()=>bL,tryCast:()=>Vn,tryDirectoryExists:()=>vL,tryExtractTSExtension:()=>_O,tryFileExists:()=>OE,tryGetClassExtendingExpressionWithTypeArguments:()=>eJ,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>tJ,tryGetDirectories:()=>yL,tryGetExtensionFromPath:()=>bh,tryGetImportFromModuleSpecifier:()=>n4,tryGetJSDocSatisfiesTypeNode:()=>JO,tryGetModuleNameFromFile:()=>aM,tryGetModuleSpecifierFromDeclaration:()=>l2,tryGetNativePerformanceHooks:()=>qY,tryGetPropertyAccessOrIdentifierToString:()=>k4,tryGetPropertyNameOfBindingOrAssignmentElement:()=>b7,tryGetSourceMappingURL:()=>eae,tryGetTextOfPropertyName:()=>qP,tryParseJson:()=>fO,tryParsePattern:()=>C2,tryParsePatterns:()=>L4,tryParseRawSourceMap:()=>tae,tryReadDirectory:()=>t$,tryReadFile:()=>ZA,tryRemoveDirectoryPrefix:()=>SJ,tryRemoveExtension:()=>lne,tryRemovePrefix:()=>WW,tryRemoveSuffix:()=>LY,tscBuildOption:()=>Mk,typeAcquisitionDeclarations:()=>I7,typeAliasNamePart:()=>Uce,typeDirectiveIsEqualTo:()=>dte,typeKeywords:()=>Nq,typeParameterNamePart:()=>Vce,typeToDisplayParts:()=>u3,unchangedPollThresholds:()=>O8,unchangedTextChangeRange:()=>$8,unescapeLeadingUnderscores:()=>Li,unmangleScopedPackageName:()=>xM,unorderedRemoveItem:()=>Gx,unprefixedNodeCoreModules:()=>Ine,unreachableCodeIsError:()=>Qre,unsetNodeChildren:()=>bG,unusedLabelIsError:()=>Kre,unwrapInnermostStatementOfLabel:()=>gz,unwrapParenthesizedExpression:()=>Cne,updateErrorForNoInputFiles:()=>L7,updateLanguageServiceSourceFile:()=>K$,updateMissingFilePathsWatch:()=>ZU,updateResolutionField:()=>PI,updateSharedExtendedConfigFileWatcher:()=>_5,updateSourceFile:()=>RG,updateWatchingWildcardDirectories:()=>LM,usingSingleLineStringWriter:()=>Ow,utf16EncodeAsString:()=>EP,validateLocaleAndSetLanguage:()=>CB,version:()=>Ui,versionMajorMinor:()=>Xi,visitArray:()=>oE,visitCommaListElements:()=>IM,visitEachChild:()=>Ir,visitFunctionBody:()=>op,visitIterationBody:()=>S_,visitLexicalEnvironment:()=>wU,visitNode:()=>et,visitNodes:()=>Ur,visitParameterList:()=>Cc,walkUpBindingElementsAndPatterns:()=>Kx,walkUpOuterExpressions:()=>Die,walkUpParenthesizedExpressions:()=>Td,walkUpParenthesizedTypes:()=>c4,walkUpParenthesizedTypesAndGetParentAndChild:()=>sre,whitespaceOrMapCommentRegExp:()=>DU,writeCommentRange:()=>eI,writeFile:()=>sO,writeFileEnsuringDirectories:()=>$z,zipWith:()=>qT});var Cit=!0,G6e;function wit(){return G6e??(G6e=new Wd(Ui))}function U6e(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?` ${hh(s,[e])}`:"",o}function Iit(e,t,n,i){let s=U6e(e,!0,t,n,i);return()=>{throw new TypeError(s)}}function Dit(e,t,n,i){let s=!1;return()=>{Cit&&!s&&(w.log.warn(U6e(e,!1,t,n,i)),s=!0)}}function Pit(e,t={}){let n=typeof t.typeScriptVersion=="string"?new Wd(t.typeScriptVersion):t.typeScriptVersion??wit(),i=typeof t.errorAfter=="string"?new Wd(t.errorAfter):t.errorAfter,s=typeof t.warnAfter=="string"?new Wd(t.warnAfter):t.warnAfter,o=typeof t.since=="string"?new Wd(t.since):t.since??s,c=t.error||i&&n.compareTo(i)>=0,_=!s||n.compareTo(s)>=0;return c?Iit(e,i,o,t.message):_?Dit(e,i,o,t.message):to}function Ait(e,t){return function(){return e(),t.apply(this,arguments)}}function Eit(e,t){let n=Pit(t?.name??w.getFunctionName(e),t);return Ait(n,e)}function lQ(e,t,n,i){if(Object.defineProperty(o,"name",{...Object.getOwnPropertyDescriptor(o,"name"),value:e}),i)for(let c of Object.keys(i)){let _=+c;!isNaN(_)&&bo(t,`${_}`)&&(t[_]=Eit(t[_],{...i[_],name:e}))}let s=Nit(t,n);return o;function o(...c){let _=s(c),u=_!==void 0?t[_]:void 0;if(typeof u=="function")return u(...c);throw new TypeError("Invalid arguments")}}function Nit(e,t){return n=>{for(let i=0;bo(e,`${i}`)&&bo(t,`${i}`);i++){let s=t[i];if(s(n))return i}}}function V6e(e){return{overload:t=>({bind:n=>({finish:()=>lQ(e,t,n),deprecate:i=>({finish:()=>lQ(e,t,n,i)})})})}}var q6e={};nt(q6e,{ActionInvalidate:()=>B5,ActionPackageInstalled:()=>z5,ActionSet:()=>W5,ActionWatchTypingLocations:()=>XM,Arguments:()=>sq,AutoImportProviderProject:()=>vde,AuxiliaryProject:()=>hde,CharRangeSection:()=>Vde,CloseFileWatcherEvent:()=>TQ,CommandNames:()=>x4e,ConfigFileDiagEvent:()=>hQ,ConfiguredProject:()=>bde,ConfiguredProjectLoadKind:()=>wde,CreateDirectoryWatcherEvent:()=>SQ,CreateFileWatcherEvent:()=>bQ,Errors:()=>Ty,EventBeginInstallTypes:()=>nq,EventEndInstallTypes:()=>iq,EventInitializationFailed:()=>tce,EventTypesRegistry:()=>rq,ExternalProject:()=>_Q,GcTimer:()=>sde,InferredProject:()=>gde,LargeFileReferencedEvent:()=>gQ,LineIndex:()=>nR,LineLeaf:()=>Tj,LineNode:()=>pD,LogLevel:()=>Kpe,Msg:()=>Xpe,OpenFileInfoTelemetryEvent:()=>Sde,Project:()=>vC,ProjectInfoTelemetryEvent:()=>vQ,ProjectKind:()=>YE,ProjectLanguageServiceStateEvent:()=>yQ,ProjectLoadingFinishEvent:()=>mQ,ProjectLoadingStartEvent:()=>dQ,ProjectService:()=>Fde,ProjectsUpdatedInBackgroundEvent:()=>vj,ScriptInfo:()=>lde,ScriptVersionCache:()=>RQ,Session:()=>N4e,TextStorage:()=>cde,ThrottledOperations:()=>ide,TypingsInstallerAdapter:()=>j4e,allFilesAreJsOrDts:()=>pde,allRootFilesAreJsOrDts:()=>fde,asNormalizedPath:()=>K6e,convertCompilerOptions:()=>bj,convertFormatOptions:()=>uD,convertScriptKindName:()=>xQ,convertTypeAcquisition:()=>kde,convertUserPreferences:()=>xde,convertWatchOptions:()=>tR,countEachFileTypes:()=>X3,createInstallTypingsRequest:()=>Ype,createModuleSpecifierCache:()=>jde,createNormalizedPathMap:()=>X6e,createPackageJsonCache:()=>Wde,createSortedArray:()=>nde,emptyArray:()=>jl,findArgument:()=>Kke,formatDiagnosticToProtocol:()=>rR,formatMessage:()=>Bde,getBaseConfigFileName:()=>uQ,getDetailWatchInfo:()=>DQ,getLocationInNewDocument:()=>Ude,hasArgument:()=>Qke,hasNoTypeScriptSource:()=>dde,indent:()=>kE,isBackgroundProject:()=>Z3,isConfigFile:()=>Ode,isConfiguredProject:()=>vv,isDynamicFileName:()=>XE,isExternalProject:()=>Y3,isInferredProject:()=>lD,isInferredProjectName:()=>Zpe,isProjectDeferredClose:()=>eR,makeAutoImportProviderProjectName:()=>tde,makeAuxiliaryProjectName:()=>rde,makeInferredProjectName:()=>ede,maxFileSize:()=>pQ,maxProgramSizeForNonTsFiles:()=>fQ,normalizedPathToPath:()=>cD,nowString:()=>Xke,nullCancellationToken:()=>S4e,nullTypingsInstaller:()=>Sj,protocol:()=>ade,scriptInfoIsContainedByBackgroundProject:()=>ude,scriptInfoIsContainedByDeferredClosedProject:()=>_de,stringifyIndented:()=>s1,toEvent:()=>zde,toNormalizedPath:()=>go,tryConvertScriptKindName:()=>kQ,typingsInstaller:()=>Qpe,updateProjectIfDirty:()=>ud});var Qpe={};nt(Qpe,{TypingsInstaller:()=>Fit,getNpmCommandForInstallation:()=>H6e,installNpmPackages:()=>Rit,typingsName:()=>Q6e});var Mit={isEnabled:()=>!1,writeLine:to};function $6e(e,t,n,i){try{let s=Fk(t,Bn(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 Rit(e,t,n,i){let s=!1;for(let o=n.length;o>0;){let c=H6e(e,t,n,o);o=c.remaining,s=i(c.command)||s}return s}function H6e(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 Fit=class{constructor(e,t,n,i,s,o=Mit){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:rq,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:XM,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${s1(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=Q0.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=wP(Yn(t),_=>{if(this.installTypingHost.fileExists(Bn(_,"package.json")))return _})||s;if(c)this.installWorker(-1,[n],c,_=>{let u=_?`Package ${n} installed.`:`There was an error installing ${n}.`,g={kind:z5,projectName:i,id:o,success:_,message:u};this.sendResponse(g)});else{let _={kind:z5,projectName:i,id:o,success:!1,message:"Could not determine a project root path."};this.sendResponse(_)}}initializeSafeList(){if(this.typesMapLocation){let e=Q0.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=Q0.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=Bn(e,"package.json"),n=Bn(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}':${s1(i)}`),this.log.writeLine(`Loaded content of '${n}':${s1(s)}`)),i.devDependencies&&s.dependencies)for(let o in i.devDependencies){if(!bo(s.dependencies,o))continue;let c=fl(o);if(!c)continue;let _=$6e(e,c,this.installTypingHost,this.log);if(!_){this.missingTypingsSet.add(c);continue}let u=this.packageNameToTypingLocation.get(c);if(u){if(u.typingLocation===_)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${c} from '${_}' conflicts with existing typing file '${u}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${c}' => '${_}'`);let g=C8(s.dependencies,o),m=g&&g.version;if(!m)continue;let h={typingLocation:_,version:new Wd(m)};this.packageNameToTypingLocation.set(c,h)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return Vi(e,t=>{let n=MI(t);if(this.missingTypingsSet.has(n)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${n}' is in missingTypingsSet - skipping...`);return}let i=Q0.validatePackageName(t);if(i!==Q0.NameValidationResult.Ok){this.missingTypingsSet.add(n),this.log.isEnabled()&&this.log.writeLine(Q0.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)&&Q0.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=Bn(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:nq,eventId:o,typingsInstallerVersion:Ui,projectName:e.projectName});let c=s.map(Q6e);this.installTypingsAsync(o,c,t,_=>{try{if(!_){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 m=$6e(t,g,this.installTypingHost,this.log);if(!m){this.missingTypingsSet.add(g);continue}let h=this.typesRegistry.get(g),S=new Wd(h[`ts${Xi}`]||h[this.latestDistTag]),T={typingLocation:m,version:S};this.packageNameToTypingLocation.set(g,T),u.push(m)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(u)}`),this.sendResponse(this.createSetTypings(e,n.concat(u)))}finally{let u={kind:iq,eventId:o,projectName:e.projectName,packagesToInstall:c,installSuccess:_,typingsInstallerVersion:Ui};this.sendResponse(u)}})}ensureDirectoryExists(e,t){let n=Yn(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||uh(i,s=>!n.has(s))||uh(n,s=>!i.has(s))?(this.projectWatchers.set(e,i),this.sendResponse({kind:XM,projectName:e,files:t})):this.sendResponse({kind:XM,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:W5}}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 Q6e(e){return`@types/${e}@ts${Xi}`}var Kpe=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(Kpe||{}),jl=nde(),Xpe=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(Xpe||{});function Ype(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 Ty;(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})(Ty||(Ty={}));function go(e){return na(e)}function cD(e,t,n){let i=ff(e)?e:as(e,t);return n(i)}function K6e(e){return e}function X6e(){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 Zpe(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function ede(e){return`/dev/null/inferredProject${e}*`}function tde(e){return`/dev/null/autoImportProviderProject${e}*`}function rde(e){return`/dev/null/auxiliaryProject${e}*`}function nde(){return[]}var ide=class rLe{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(rLe.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()}},sde=class nLe{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(nLe.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 uQ(e){let t=fl(e);return t==="tsconfig.json"||t==="jsconfig.json"?t:void 0}var ade={};nt(ade,{ClassificationType:()=>lq,CommandTypes:()=>ode,CompletionTriggerKind:()=>oq,IndentStyle:()=>t4e,JsxEmit:()=>r4e,ModuleKind:()=>n4e,ModuleResolutionKind:()=>i4e,NewLineKind:()=>s4e,OrganizeImportsMode:()=>aq,PollingWatchKind:()=>e4e,ScriptTarget:()=>a4e,SemicolonPreference:()=>cq,WatchDirectoryKind:()=>Z6e,WatchFileKind:()=>Y6e});var ode=(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))(ode||{}),Y6e=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(Y6e||{}),Z6e=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(Z6e||{}),e4e=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(e4e||{}),t4e=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(t4e||{}),r4e=(e=>(e.None="none",e.Preserve="preserve",e.ReactNative="react-native",e.React="react",e.ReactJSX="react-jsx",e.ReactJSXDev="react-jsxdev",e))(r4e||{}),n4e=(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.NodeNext="nodenext",e.Preserve="preserve",e))(n4e||{}),i4e=(e=>(e.Classic="classic",e.Node="node",e.NodeJs="node",e.Node10="node10",e.Node16="node16",e.NodeNext="nodenext",e.Bundler="bundler",e))(i4e||{}),s4e=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(s4e||{}),a4e=(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))(a4e||{}),cde=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=sC(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===_f.getTime()&&(this.info.mTime=(this.host.getModifiedTime(this.info.fileName)||_f).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=J5.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 Uc(i,s)}lineOffsetToPosition(e,t,n){let i=this.tryUseScriptVersionCache();return i?i.lineOffsetToPosition(e,t):V8(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(!yk(this.info.fileName)){let s=this.host.getFileSize?this.host.getFileSize(n):i().length;if(s>pQ)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=RQ.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=RQ.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=Qx(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 PU(this.text,t)}};function XE(e){return e[0]==="^"||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&fl(e)[0]==="^"||e.includes(":^")&&!e.includes(Fo)}var lde=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=XE(t),this.textStorage=new cde(e,this,o),(i||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=n||EO(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 Ts(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:mP(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(let e of this.containingProjects){vv(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)}Hp(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return Ty.ThrowNoProject();case 1:return eR(this.containingProjects[0])||Z3(this.containingProjects[0])?Ty.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(vv(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(Y3(o))return o;!t&&lD(o)&&(t=o)}}return(i||n||e||t)??Ty.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=G5(this.host.newLine),$T(this.formatSettings,e))),t&&(this.preferences||(this.preferences=cd),this.preferences={...this.preferences,...t})}getLatestVersion(){return this.textStorage.getSnapshot(),this.textStorage.getVersion()}saveTo(e){this.host.writeFile(e,sC(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){Oit(e);let t=this.textStorage.positionToLineOffset(e);return Lit(t),t}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!ys(this.sourceMapFilePath)&&(Op(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}};function Oit(e){w.assert(typeof e=="number",`Expected position ${e} to be a number.`),w.assert(e>=0,"Expected position to be non-negative.")}function Lit(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 ude(e){return pt(e.containingProjects,Z3)}function _de(e){return pt(e.containingProjects,eR)}var YE=(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))(YE||{});function X3(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:Ll(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 jit(e){let t=X3(e.getScriptInfos());return t.js>0&&t.ts===0&&t.tsx===0}function fde(e){let t=X3(e.getRootScriptInfos());return t.ts===0&&t.tsx===0}function pde(e){let t=X3(e.getScriptInfos());return t.ts===0&&t.tsx===0}function dde(e){return!e.some(t=>nc(t,".ts")&&!Ll(t)||nc(t,".tsx"))}function mde(e){return e.generatedFilePath!==void 0}function o4e(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 Wit(e,t){return e.enable!==t.enable||!o4e(e.include,t.include)||!o4e(e.exclude,t.exclude)}function Bit(e,t){return F0(e)!==F0(t)}function zit(e,t){return e===t?!1:!Yf(e,t)}var vC=class iLe{constructor(t,n,i,s,o,c,_,u,g,m){switch(this.projectKind=n,this.projectService=i,this.compilerOptions=c,this.compileOnSaveEnabled=_,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=Vs(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=Q0.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,i.logger.info(`Creating ${YE[n]}Project: ${t}, currentDirectory: ${m}`),this.projectName=t,this.directoryStructureHost=g,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(m),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new Gue(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(s||F0(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=VL(),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=Vs(h,h.realpath),this.preferNonRecursiveWatch=this.projectService.canUseWatchEvents||h.preferNonRecursiveWatch,this.resolutionCache=CV(this,this.currentDirectory,!0),this.languageService=Uue(this,this.projectService.documentRegistry,this.projectService.serverMode),o&&this.disableLanguageService(o),this.markAsDirty(),Z3(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(t){}isNonTsProject(){return ud(this),pde(this)}isJsOnlyProject(){return ud(this),jit(this)}static resolveModule(t,n,i,s){return iLe.importServicePluginSync({name:t},[n],i,s).resolvedModule}static importServicePluginSync(t,n,i,s){w.assertIsDefined(i.require);let o,c;for(let _ of n){let u=iu(i.resolvePath(Bn(_,"node_modules")));s(`Loading ${t.name} from ${_} (resolved to ${u})`);let g=i.require(u,t.name);if(!g.error){c=g.module;break}let m=g.error.stack||g.error.message||JSON.stringify(g.error);(o??(o=[])).push(`Failed to load module '${t.name}' from ${u}: ${m}`)}return{pluginConfigEntry:t,resolvedModule:c,errorLogs:o}}static async importServicePluginAsync(t,n,i,s){w.assertIsDefined(i.importPlugin);let o,c;for(let _ of n){let u=Bn(_,"node_modules");s(`Dynamically importing ${t.name} from ${_} (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 m=g.error.stack||g.error.message||JSON.stringify(g.error);(o??(o=[])).push(`Failed to dynamically import module '${t.name}' from ${u}: ${m}`)}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=bJ(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 qe;let t;return this.rootFilesMap.forEach(n=>{(this.languageServiceEnabled||n.info&&n.info.isScriptOpen())&&(t||(t=[])).push(n.fileName)}),jn(t,this.typingFiles)||qe}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=Yn(na(this.projectService.getExecutingFilePath()));return Bn(t,u6(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 ko(t,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(t,n,i){return this.projectService.watchFactory.watchDirectory(t,n,i,this.projectService.getWatchOptions(this),Hl.FailedLookupLocations,this)}watchAffectingFileLocation(t,n){return this.projectService.watchFactory.watchFile(t,n,2e3,this.projectService.getWatchOptions(this),Hl.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),Hl.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 An(this.projectErrors,t=>!t.file)||jl}getAllProjectErrors(){return this.projectErrors||jl}setProjectErrors(t){this.projectErrors=t}getLanguageService(t=!0){return t&&ud(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?(ud(this),this.builderState=Yd.create(this.program,this.builderState,!0),Vi(Yd.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 _=as(c.name,this.currentDirectory);n(_,c.text,c.writeByteOrderMark)}if(this.builderState&&K_(this.compilerOptions)){let c=o.filter(_=>Ll(_.name));if(c.length===1){let _=this.program.getSourceFile(t.fileName),u=this.projectService.host.createHash?this.projectService.host.createHash(c[0].text):kP(c[0].text);Yd.updateSignatureOfFile(this.builderState,u,_.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 lf(ga(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&&(Q_(this.missingFilesMap,kd),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&&ps(i0(this.rootFilesMap.values(),t=>{var n;return(n=t.info)==null?void 0:n.fileName}))}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return ps(i0(this.rootFilesMap.values(),t=>t.info))}getScriptInfos(){return this.languageServiceEnabled?hr(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=Vue(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(){ud(this)}updateGraph(){var t,n;(t=_n)==null||t.push(_n.Phase.Session,"updateGraph",{name:this.projectName,kind:YE[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 _ of o)this.cachedUnresolvedImportsPerFile.delete(_);this.languageServiceEnabled&&this.projectService.serverMode===0&&!this.isOrphan()?((i||o.length)&&(this.lastCachedUnresolvedImportsList=Jit(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=_n)==null||n.pop(),!i}enqueueInstallTypingsForProject(t){let n=this.getTypeAcquisition();if(!n||!n.enable||this.projectService.typingsInstaller===Sj)return;let i=this.typingsCache;(t||!i||Wit(n,i.typeAcquisition)||Bit(this.getCompilationSettings(),i.compilerOptions)||zit(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:lf(s);E8(o,this.typingFiles,bw(!this.useCaseSensitiveFileNames()),to,c=>this.detachScriptInfoFromProject(c))&&(this.typingFiles=o,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&Q_(this.typingWatchers,kd),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:B5})}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 _=o==="FileWatcher"?Hl.TypingInstallerLocationFile:Hl.TypingInstallerLocationDirectory;this.typingWatchers.set(c,VM(c)?o==="FileWatcher"?this.projectService.watchFactory.watchFile(s,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),_,this):this.projectService.watchFactory.watchDirectory(s,u=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!nc(u,".json"))return this.writeLog("Ignoring files that are not *.json");if(ty(u,Bn(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),_,this):(this.writeLog(`Skipping watcher creation at ${s}:: ${DQ(_,this)}`),JI))}};for(let s of t){let o=fl(s);if(o==="package.json"||o==="bower.json"){i(s,"FileWatcher");continue}if(kp(this.currentDirectory,s,this.currentDirectory,!this.useCaseSensitiveFileNames())){let c=s.indexOf(Fo,this.currentDirectory.length+1);i(c!==-1?s.substr(0,c):s,"DirectoryWatcher");continue}if(kp(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=J7(this.getCompilerOptions(),this);return An(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=To(),{hasInvalidatedResolutions:o,hasInvalidatedLibResolutions:c}=this.resolutionCache.createHasInvalidatedResolutions(ey,ey);this.hasInvalidatedResolutions=o,this.hasInvalidatedLibResolutions=c,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,(t=_n)==null||t.push(_n.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,i),(n=_n)==null||n.pop(),w.assert(i===void 0||this.program!==void 0);let _=!1;if(this.program&&(!i||this.program!==i&&this.program.structureIsReused!==2)){if(_=!0,this.rootFilesMap.forEach((m,h)=>{var S;let T=this.program.getSourceFileByPath(h),x=m.info;!T||((S=m.info)==null?void 0:S.path)===T.resolvedPath||(m.info=this.projectService.getScriptInfo(T.fileName),w.assert(m.info.isAttached(this)),x?.detachFromProject(this))}),ZU(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),(m,h)=>this.addMissingFileWatcher(m,h)),this.generatedFilesMap){let m=this.compilerOptions.outFile;mde(this.generatedFilesMap)?(!m||!this.isValidGeneratedFileWatcher(i_(m)+".d.ts",this.generatedFilesMap))&&this.clearGeneratedFileWatch():m?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((h,S)=>{let T=this.program.getSourceFileByPath(S);(!T||T.resolvedPath!==S||!this.isValidGeneratedFileWatcher(eO(T.fileName,this.compilerOptions,this.program),h))&&(Op(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&&uh(this.changedFilesForExportMapCache,m=>{let h=i.getSourceFileByPath(m),S=this.program.getSourceFileByPath(m);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(),E8(this.externalFiles,u,bw(!this.useCaseSensitiveFileNames()),m=>{let h=this.projectService.getOrCreateScriptInfoNotOpenedByClient(m,this.currentDirectory,this.directoryStructureHost,!1);h?.attachToProject(this)},m=>this.detachScriptInfoFromProject(m));let g=To()-s;return this.sendPerformanceEvent("UpdateGraph",g),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${_}${this.program?` structureIsReused:: ${XW[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(),_}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(vv(this)){let o=this.projectService.configFileExistenceInfoCache.get(t);if((i=o?.config)!=null&&i.projects.has(this.canonicalConfigFilePath))return JI}let s=this.projectService.watchFactory.watchFile(as(n,this.currentDirectory),(o,c)=>{vv(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),Hl.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(mde(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),Hl.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(t,n){return this.toPath(t)===n.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(mde(this.generatedFilesMap)?Op(this.generatedFilesMap):Q_(this.generatedFilesMap,Op),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(t){let n=this.projectService.getScriptInfoForPath(this.toPath(t));return n&&!n.isAttached(this)?Ty.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+=`
`,AV(this.program,c=>o+=` ${c}
`))}return o}print(t,n,i){var s;this.writeLog(`Project '${this.projectName}' (${YE[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()),dF(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=>ps(u.entries(),([g,m])=>({fileName:g,isSourceOfProjectReferenceRedirect:m})):u=>ps(u.keys());this.initialLoadPending||ud(this);let c={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:lD(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},_=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&t===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!_)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,m=yw(this.getFileNamesWithRedirectInfo(!!n).concat(g),I=>I.fileName,I=>I.isSourceOfProjectReferenceRedirect),h=new Map,S=new Map,T=_?ps(_.keys()):[],x=[];return Nl(m,(I,D)=>{u.has(D)?n&&I!==u.get(D)&&x.push({fileName:D,isSourceOfProjectReferenceRedirect:I}):h.set(D,I)}),Nl(u,(I,D)=>{m.has(D)||S.set(D,I)}),this.lastReportedFileNames=m,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,m=u.concat(g);return this.lastReportedFileNames=yw(m,h=>h.fileName,h=>h.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:c,files:n?m:m.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,Bn(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:J6e}),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(Bn(this.currentDirectory,yE),t)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=_$(this))}clearCachedExportInfoMap(){var t;(t=this.exportMapCache)==null||t.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||m3(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(ud(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}let s=this.includePackageJsonAutoImports();if(s){(t=_n)==null||t.push(_n.Phase.Session,"getPackageJsonAutoImportProvider");let o=To();if(this.autoImportProviderHost=vde.create(s,this,this.getHostForAutoImportProvider())??!1,this.autoImportProviderHost)return ud(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",To()-o),(n=_n)==null||n.pop(),this.autoImportProviderHost.getCurrentProgram();(i=_n)==null||i.pop()}}isDefaultProjectForOpenFiles(){return!!Nl(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 hde(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,_;let u=this.program,g=w.checkDefined((s=this.program)==null?void 0:s.getSourceFile(t),"Expected file to be part of program"),m=w.checkDefined(g.getFullText());(o=this.getScriptInfo(t))==null||o.editContent(0,m.length,n),this.updateGraph();try{i(this.program,u,(c=this.program)==null?void 0:c.getSourceFile(t))}finally{(_=this.getScriptInfo(t))==null||_.editContent(0,n.length,m)}}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:qe,lib:qe,noLib:!0}}};function Jit(e,t){var n,i;let s=e.getSourceFiles();(n=_n)==null||n.push(_n.Phase.Session,"getUnresolvedImports",{count:s.length});let o=e.getTypeChecker().getAmbientModules().map(_=>rd(_.getName())),c=dP(ga(s,_=>Git(e,_,o,t)));return(i=_n)==null||i.pop(),c}function Git(e,t,n,i){return pP(i,t.path,()=>{let s;return e.forEachResolvedModule(({resolvedModule:o},c)=>{(!o||!TA(o.extension))&&!Jl(c)&&!n.some(_=>_===c)&&(s=jr(s,q7(c).packageName))},t),s||jl})}var gde=class extends vC{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=Dq(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()&&Oi(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:fde(this),include:qe,exclude:qe}}},hde=class extends vC{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(){}},yde=class sve extends vC{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=Vs(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=Vs(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(t,n,i,s){var o,c;if(!t)return qe;let _=n.getCurrentProgram();if(!_)return qe;let u=To(),g,m,h=Bn(n.currentDirectory,yE),S=n.getPackageJsonsForAutoImport(Bn(n.currentDirectory,h));for(let B of S)(o=B.dependencies)==null||o.forEach((G,$)=>E($)),(c=B.peerDependencies)==null||c.forEach((G,$)=>E($));let T=0;if(g){let B=n.getSymlinkCache();for(let G of ps(g.keys())){if(t===2&&T>=this.maxDependencies)return n.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),qe;let $=iU(G,n.currentDirectory,s,i,_.getModuleResolutionCache());if($){let U=O($,_,B);if(U){T+=D(U);continue}}if(!or([n.currentDirectory,n.getGlobalTypingsCacheLocation()],U=>{if(U){let me=iU(`@types/${G}`,U,s,i,_.getModuleResolutionCache());if(me){let te=O(me,_,B);return T+=D(te),!0}}})&&$&&s.allowJs&&s.maxNodeModuleJsDepth){let U=O($,_,B,!0);T+=D(U)}}}let x=_.getResolvedProjectReferences(),I=0;return x?.length&&n.projectService.getHostPreferences().includeCompletionsForModuleExports&&x.forEach(B=>{if(B?.commandLine.options.outFile)I+=D(F([fy(B.commandLine.options.outFile,".d.ts")]));else if(B){let G=Yu(()=>Wk(B.commandLine,!n.useCaseSensitiveFileNames()));I+=D(F(Vi(B.commandLine.fileNames,$=>!Ll($)&&!nc($,".json")&&!_.getSourceFile($)?LI($,B.commandLine,!n.useCaseSensitiveFileNames(),G):void 0)))}}),m?.size&&n.log(`AutoImportProviderProject: found ${m.size} root files in ${T} dependencies ${I} referenced projects in ${To()-u} ms`),m?ps(m.values()):qe;function D(B){return B?.length?(m??(m=new Set),B.forEach(G=>m.add(G)),1):0}function E(B){Yi(B,"@types/")||(g||(g=new Set)).add(B)}function O(B,G,$,K){var U;let me=uU(B,s,i,G.getModuleResolutionCache(),K);if(me){let te=(U=i.realpath)==null?void 0:U.call(i,B.packageDirectory),V=te?n.toPath(te):void 0,ne=V&&V!==n.toPath(B.packageDirectory);return ne&&$.setSymlinkedDirectory(B.packageDirectory,{real:El(te),realPath:El(V)}),F(me,ne?ie=>ie.replace(B.packageDirectory,te):void 0)}}function F(B,G){return Vi(B,$=>{let K=G?G($):$;if(!_.getSourceFile(K)&&!(G&&_.getSourceFile($)))return K})}}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 sve(n,o,s)}isEmpty(){return!pt(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=sve.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||qe}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()}};yde.maxDependencies=10,yde.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:qe,lib:qe,noLib:!0};var vde=yde,bde=class extends vC{constructor(e,t,n,i,s){super(e,1,n,!1,void 0,{},!1,void 0,i,Yn(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)}getResolvedProjectReferenceToRedirect(e){let t=this.getCurrentProgram();return t&&t.getResolvedProjectReferenceToRedirect(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=Yn(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 An(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,L7(e.fileNames,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,bM(e.raw))}},_Q=class extends vC{constructor(e,t,n,i,s,o,c){super(e,2,t,!0,i,n,s,c,t.host,Yn(o||iu(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 vv(e){return e.projectKind===1}function Y3(e){return e.projectKind===2}function Z3(e){return e.projectKind===3||e.projectKind===4}function eR(e){return vv(e)&&!!e.deferredClose}var fQ=20*1024*1024,pQ=4*1024*1024,vj="projectsUpdatedInBackground",dQ="projectLoadingStart",mQ="projectLoadingFinish",gQ="largeFileReferenced",hQ="configFileDiag",yQ="projectLanguageServiceState",vQ="projectInfo",Sde="openFileInfo",bQ="createFileWatcher",SQ="createDirectoryWatcher",TQ="closeFileWatcher",c4e="*ensureProjectForOpenFiles*";function l4e(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 Uit=l4e(Id),Vit=l4e(Q2),qit=new Map(Object.entries({none:0,block:1,smart:2})),Tde={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 ys(e.indentStyle)&&(e.indentStyle=qit.get(e.indentStyle.toLowerCase()),w.assert(e.indentStyle!==void 0)),e}function bj(e){return Uit.forEach((t,n)=>{let i=e[n];ys(i)&&(e[n]=t.get(i.toLowerCase()))}),e}function tR(e,t){let n,i;return Q2.forEach(s=>{let o=e[s.name];if(o===void 0)return;let c=Vit.get(s.name);(n||(n={}))[s.name]=c?ys(o)?c.get(o.toLowerCase()):o:Rk(s,o,t||"",i||(i=[]))}),n&&{watchOptions:n,errors:i}}function kde(e){let t;return I7.forEach(n=>{let i=e[n.name];i!==void 0&&((t||(t={}))[n.name]=i)}),t}function kQ(e){return ys(e)?xQ(e):e}function xQ(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function xde(e){let{lazyConfiguredProjectsFromExternalProject:t,...n}=e;return n}var CQ={getFileName:e=>e,getScriptKind:(e,t)=>{let n;if(t){let i=qx(e);i&&pt(t,s=>s.extension===i?(n=s.scriptKind,!0):!1)}return n},hasMixedContent:(e,t)=>pt(t,n=>n.isMixedContent&&nc(e,n.extension))},wQ={getFileName:e=>e.fileName,getScriptKind:e=>kQ(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent};function u4e(e,t){for(let n of t)if(n.getProjectName()===e)return n}var Sj={isKnownTypesPackageName:ey,installPackage:ra,enqueueInstallTypingsRequest:to,attach:to,onProjectClosed:to,globalTypingsCacheLocation:void 0},Cde={close:to};function _4e(e,t){if(!t)return;let n=t.get(e.path);if(n!==void 0)return IQ(e)?n&&!ys(n)?n.get(e.fileName):void 0:ys(n)||!n?n:n.get(!1)}function f4e(e){return!!e.containingProjects}function IQ(e){return!!e.configFileInfo}var wde=(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))(wde||{});function p4e(e){return e-1}function d4e(e,t,n,i,s,o,c,_,u){for(var g;;){if(t.parsedCommandLine&&(_&&!t.parsedCommandLine.options.composite||t.parsedCommandLine.options.disableSolutionSearching))return;let m=t.projectService.getConfigFileNameForFile({fileName:t.getConfigFilePath(),path:e.path,configFileInfo:!0,isForDefaultProject:!_},i<=3);if(!m)return;let h=t.projectService.findCreateOrReloadConfiguredProject(m,i,s,o,_?void 0:e.fileName,c,_,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 m4e(e,t,n,i,s,o,c,_){let u=t.options.disableReferencedProjectLoad?0:i,g;return or(t.projectReferences,m=>{var h;let S=go(tC(m)),T=e.projectService.toCanonicalFileName(S),x=_?.get(T);if(x!==void 0&&x>=u)return;let I=e.projectService.configFileExistenceInfoCache.get(T),D=u===0?I?.exists||(h=e.resolvedChildConfigs)!=null&&h.has(T)?I.config.parsedCommandLine:void 0:e.getParsedCommandLine(S);if(D&&u!==i&&u>2&&(D=e.getParsedCommandLine(S)),!D)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 O=n(I??e.projectService.configFileExistenceInfoCache.get(T),E,S,s,e,T);if(O)return O}break;default:w.assertNever(u)}(_??(_=new Map)).set(T,u),(g??(g=[])).push(D)}})||or(g,m=>m.projectReferences&&m4e(e,m,n,u,s,o,c,_))}function Ide(e,t,n,i,s){let o=!1,c;switch(t){case 2:case 3:Ede(e)&&(c=e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath));break;case 4:if(c=Ade(e),c)break;case 5:o=Hit(e,n);break;case 6:if(e.projectService.reloadConfiguredProjectOptimized(e,i,s),c=Ade(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 g4e(e,t){return e.initialLoadPending?(e.potentialProjectReferences&&uh(e.potentialProjectReferences,t))??(e.resolvedChildConfigs&&uh(e.resolvedChildConfigs,t)):void 0}function $it(e,t,n,i){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.initialLoadPending?g4e(e,i):or(e.getProjectReferences(),n)}function Dde(e,t,n){let i=n&&e.projectService.configuredProjects.get(n);return i&&t(i)}function h4e(e,t){return $it(e,n=>Dde(e,t,n.sourceFile.path),n=>Dde(e,t,e.toPath(tC(n))),n=>Dde(e,t,n))}function DQ(e,t){return`${ys(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function Pde(e){return!e.isScriptOpen()&&e.mTime!==void 0}function ud(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&!e.updateGraph()}function y4e(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 Hit(e,t){if(t){if(y4e(e,t,!1))return!0}else ud(e);return!1}function Ade(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),Ede(e))return n}function Ede(e){return!!e.parsedCommandLine&&(!!e.parsedCommandLine.options.composite||!!eU(e.parsedCommandLine))}function Qit(e){return Ede(e)?e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath):void 0}function Kit(e){return`Creating possible configured project for ${e.fileName} to open`}function PQ(e){return`User requested reload projects: ${e}`}function Nde(e){vv(e)&&(e.projectOptions=!0)}function Mde(e){let t=1;return()=>e(t++)}function Rde(){return{idToCallbacks:new Map,pathToId:new Map}}function v4e(e,t){return!!t&&!!e.eventHandler&&!!e.session}function Xit(e,t){if(!v4e(e,t))return;let n=Rde(),i=Rde(),s=Rde(),o=1;return e.session.addProtocolHandler("watchChange",T=>(g(T.arguments),{responseRequired:!1})),{watchFile:c,watchDirectory:_,getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function c(T,x){return u(n,T,x,I=>({eventName:bQ,data:{id:I,path:T}}))}function _(T,x,I){return u(I?s:i,T,x,D=>({eventName:SQ,data:{id:D,path:T,recursive:!!I,ignoreUpdate:T.endsWith("/node_modules")?void 0:!0}}))}function u({pathToId:T,idToCallbacks:x},I,D,E){let O=e.toPath(I),F=T.get(O);F||T.set(O,F=o++);let B=x.get(F);return B||(x.set(F,B=new Set),e.eventHandler(E(F))),B.add(D),{close(){let G=x.get(F);G?.delete(D)&&(G.size||(x.delete(F),T.delete(O),e.eventHandler({eventName:TQ,data:{id:F}})))}}}function g(T){ks(T)?T.forEach(m):m(T)}function m({id:T,created:x,deleted:I,updated:D}){h(T,x,0),h(T,I,2),h(T,D,1)}function h(T,x,I){x?.length&&(S(n,T,x,(D,E)=>D(E,I)),S(i,T,x,(D,E)=>D(E)),S(s,T,x,(D,E)=>D(E)))}function S(T,x,I,D){var E;(E=T.idToCallbacks.get(x))==null||E.forEach(O=>{I.forEach(F=>D(O,iu(F)))})}}var b4e=class ave{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=Mde(ede),this.newAutoImportProviderProjectName=Mde(tde),this.newAuxiliaryProjectName=Mde(rde),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=Tde,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=to,this.verifyDocumentRegistry=to,this.verifyProgram=to,this.onProjectCreation=to;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||Sj,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?Bn(Yn(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=Kp()),this.currentDirectory=go(this.host.getCurrentDirectory()),this.toCanonicalFileName=fu(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?El(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new ide(this.host,this.logger),this.logger.info(`currentDirectory:: ${this.host.getCurrentDirectory()} useCaseSensitiveFileNames:: ${this.host.useCaseSensitiveFileNames}`),this.logger.info(`libs Location:: ${Yn(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:G5(this.host.newLine),preferences:cd,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=g$(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):to;this.packageJsonCache=Wde(this),this.watchFactory=this.serverMode!==0?{watchFile:SE,watchDirectory:SE}:eV(Xit(this,t.canUseWatchEvents)||this.host,i,s,DQ),this.canUseWatchEvents=v4e(this,t.canUseWatchEvents),(n=t.incrementalVerifier)==null||n.call(t,this)}toPath(t){return ko(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:yQ,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)bo(n.simpleMap,i)&&this.legacySafelist.set(i,n.simpleMap[i].toLowerCase())}catch(t){this.logger.info(`Error loading types map: ${t}`),this.safelist=Tde,this.legacySafelist.clear()}}updateTypingsForProject(t){let n=this.findProject(t.projectName);if(n)switch(t.kind){case W5:n.updateTypingFiles(t.compilerOptions,t.typeAcquisition,t.unresolvedImports,t.typings);return;case B5: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(c4e,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(t){if(eR(t)||(t.markAsDirty(),Z3(t)))return;let n=t.getProjectName();this.pendingProjectUpdates.set(n,t),this.throttledOperations.schedule(n,250,()=>{this.pendingProjectUpdates.delete(n)&&ud(t)})}hasPendingProjectUpdate(t){return this.pendingProjectUpdates.has(t.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;let t={eventName:vj,data:{openFiles:ps(this.openFiles.keys(),n=>this.getScriptInfoForPath(n).fileName)}};this.eventHandler(t)}sendLargeFileReferencedEvent(t,n){if(!this.eventHandler)return;let i={eventName:gQ,data:{file:t,fileSize:n,maxFileSize:pQ}};this.eventHandler(i)}sendProjectLoadingStartEvent(t,n){if(!this.eventHandler)return;t.sendLoadingProjectFinish=!0;let i={eventName:dQ,data:{project:t,reason:n}};this.eventHandler(i)}sendProjectLoadingFinishEvent(t){if(!this.eventHandler||!t.sendLoadingProjectFinish)return;t.sendLoadingProjectFinish=!1;let n={eventName:mQ,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=bj(t),s=tR(t,n),o=kde(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 _ of this.inferredProjects)(c?_.projectRootPath===c:!_.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(_.projectRootPath))&&(_.setCompilerOptions(i),_.setTypeAcquisition(o),_.setWatchOptions(s?.watchOptions),_.setProjectErrors(s?.errors),_.compileOnSaveEnabled=i.compileOnSave,_.markAsDirty(),this.delayUpdateProjectGraph(_));this.delayEnsureProjectForOpenFiles()}findProject(t){if(t!==void 0)return Zpe(t)?u4e(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=ys(t)?this.getScriptInfoForNormalizedPath(t):t;return n&&!n.isOrphan()?n.getDefaultProject():void 0}tryGetDefaultProjectForEnsuringConfiguredProjectForFile(t){var n;let i=ys(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=ys(t)?this.getScriptInfoForNormalizedPath(t):t;return n?n.getDefaultProject():(this.logErrorForScriptInfoNotFound(ys(t)?t:t.fileName),Ty.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(t){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(t)}ensureProjectStructuresUptoDate(){let t=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();let n=i=>{t=ud(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(ys(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,_=>this.onWildCardDirectoryWatcherInvoke(t,i,s,c,_),n,this.getWatchOptionsFromProjectWatchOptions(s.parsedCommandLine.watchOptions,Yn(i)),Hl.WildcardDirectory,i),c={packageJsonWatches:void 0,close(){var _;o&&(o.close(),o=void 0,(_=c.packageJsonWatches)==null||_.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),_=i.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(o,c);if(fl(c)==="package.json"&&!m3(c)&&(_&&_.fileExists||!_&&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)}_?.fileExists||this.sendSourceFileChange(c);let u=this.findConfiguredProjectByProjectName(n);jM({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,m)=>{var h;if(!g)return;let S=this.getConfiguredProjectByCanonicalConfigFilePath(m);if(!S)return;if(u!==S&&this.getHostPreferences().includeCompletionsForModuleExports){let x=this.toPath(n);On((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 _,u,g;let m=this.getConfiguredProjectByCanonicalConfigFilePath(c);if(m)if(s=!0,c===t){if(m.initialLoadPending)return;m.pendingUpdateLevel=2,m.pendingUpdateReason=n,this.delayUpdateProjectGraph(m),m.markAutoImportProviderAsDirty()}else{if(m.initialLoadPending){(u=(_=this.configFileExistenceInfoCache.get(c))==null?void 0:_.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);m.resolutionCache.removeResolutionsFromProjectReferenceRedirects(h),this.delayUpdateProjectGraph(m),this.getHostPreferences().includeCompletionsForModuleExports&&On((g=m.getCurrentProgram())==null?void 0:g.getResolvedProjectReferences(),S=>S?.sourceFile.path===h)&&m.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((_,u)=>{var g,m;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)&&((m=this.pendingOpenFileProjectUpdates)!=null&&m.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(ps(i0(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:Gx(this.externalProjects,t),this.projectToSizeMap.delete(t.getProjectName());break;case 1:this.configuredProjects.delete(t.canonicalConfigFilePath),this.projectToSizeMap.delete(t.canonicalConfigFilePath);break;case 0:Gx(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:Yn(ff(t.fileName)?t.fileName:as(t.fileName,n?this.getNormalizedAbsolutePath(n):this.currentDirectory)));if(i.addRoot(t),t.containingProjects[0]!==i&&(mP(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 _ of t.containingProjects){if(vv(_)){t.hasMixedContent&&t.registerFileUpdate();let u=_.openFileWatchTriggered.get(t.path);u!==void 0&&(_.openFileWatchTriggered.delete(t.path),_.pendingUpdateLevel<u&&(_.pendingUpdateLevel=u,_.markFileAsDirty(t.path)))}else lD(_)&&_.isRoot(t)&&(_.isProjectWithSingleRoot()&&(c=!0),_.removeFile(t,s,!0));_.languageServiceEnabled||_.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)&&(!IQ(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===Cde)&&(c.watcher=this.watchFactory.watchFile(t,(_,u)=>this.onConfigFileChanged(t,n,u),2e3,this.getWatchOptionsFromProjectWatchOptions((o=(s=c?.config)==null?void 0:s.parsedCommandLine)==null?void 0:o.watchOptions,Yn(t)),Hl.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,YU(t,this.sharedExtendedConfigFileWatchers),w.checkDefined(c.watcher),(o=c.openFilesImpactedByConfigFile)!=null&&o.size?c.inferredProjectRoots?VM(Yn(t))||(c.watcher.close(),c.watcher=Cde):(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,_;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)),!((_=u.openFilesImpactedByConfigFile)!=null&&_.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=VM(Yn(n))?this.watchFactory.watchFile(i,(o,c)=>this.onConfigFileChanged(i,n,c),2e3,this.hostConfiguration.watchOptions,Hl.ConfigFileForInferredRoot):Cde)}))}forEachConfigFileLocation(t,n){if(this.serverMode!==0)return;w.assert(!f4e(t)||this.openFiles.has(t.path));let i=this.openFiles.get(t.path);if(w.checkDefined(this.getScriptInfo(t.path)).isDynamic)return;let o=Yn(t.fileName),c=()=>kp(i,o,this.currentDirectory,!this.host.useCaseSensitiveFileNames),_=!i||!c(),u=!0,g=!0;IQ(t)&&(Jo(t.fileName,"tsconfig.json")?u=!1:u=g=!1);do{let m=cD(o,this.currentDirectory,this.toCanonicalFileName);if(u){let S=Bn(o,"tsconfig.json");if(n(Bn(m,"tsconfig.json"),S))return S}if(g){let S=Bn(o,"jsconfig.json");if(n(Bn(m,"jsconfig.json"),S))return S}if(J8(m))break;let h=Yn(o);if(h===o)break;o=h,u=g=!0}while(_||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=_4e(t,this.pendingOpenFileProjectUpdates);if(i!==void 0)return i}return _4e(t,this.configFileForOpenFiles)}setConfigFileNameForFileInCache(t,n){if(!this.openFiles.has(t.path))return;let i=n||!1;if(!IQ(t))this.configFileForOpenFiles.set(t.path,i);else{let s=this.configFileForOpenFiles.get(t.path);(!s||ys(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(Lde),this.configuredProjects.forEach(Lde),this.inferredProjects.forEach(Lde),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 u4e(t,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(t,n,i,s){if(n&&n.disableSizeLimit||!this.host.getFileSize)return;let o=fQ;this.projectToSizeMap.set(t,0),this.projectToSizeMap.forEach(_=>o-=_||0);let c=0;for(let _ of i){let u=s.getFileName(_);if(!yk(u)&&(c+=this.host.getFileSize(u),c>fQ||c>o)){let g=i.map(m=>s.getFileName(m)).filter(m=>!yk(m)).map(m=>({name:m,size:this.host.getFileSize(m)})).sort((m,h)=>h.size-m.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${c}). Largest files: ${g.map(m=>`${m.name}:${m.size}`).join(", ")}`),u}}this.projectToSizeMap.set(t,c)}createExternalProject(t,n,i,s,o){let c=bj(i),_=tR(i,Yn(iu(t))),u=new _Q(t,this,c,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t,c,n,wQ),i.compileOnSave===void 0?!0:i.compileOnSave,void 0,_?.watchOptions);return u.setProjectErrors(_?.errors),u.excludedFiles=o,this.addFilesToNonInferredProject(u,n,wQ,s),this.externalProjects.push(u),u}sendProjectTelemetry(t){if(this.seenProjects.has(t.projectName)){Nde(t);return}if(this.seenProjects.set(t.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){Nde(t);return}let n=vv(t)?t.projectOptions:void 0;Nde(t);let i={projectId:this.host.createSHA256Hash(t.projectName),fileStats:X3(t.getScriptInfos(),!0),compilerOptions:hse(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 _Q?"external":"configured",languageServiceEnabled:t.languageServiceEnabled,version:Ui};this.eventHandler({eventName:vQ,data:i});function s(){return vv(t)&&uQ(t.getConfigFilePath())||"other"}function o({enable:c,include:_,exclude:u}){return{enable:c,include:_!==void 0&&_.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=_n)==null||i.instant(_n.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:u5(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});let c=new bde(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=_n)==null||i.push(_n.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),_=c.config.parsedCommandLine;w.assert(!!_.fileNames);let u=_.options;t.projectOptions||(t.projectOptions={configHasExtendsProperty:_.raw.extends!==void 0,configHasFilesProperty:_.raw.files!==void 0,configHasIncludeProperty:_.raw.include!==void 0,configHasExcludeProperty:_.raw.exclude!==void 0}),t.parsedCommandLine=_,t.setProjectErrors(_.options.configFile.parseDiagnostics),t.updateReferences(_.projectReferences);let g=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.canonicalConfigFilePath,u,_.fileNames,CQ);g?(t.disableLanguageService(g),this.configFileExistenceInfoCache.forEach((h,S)=>this.stopWatchingWildCards(S,t))):(t.setCompilerOptions(u),t.setWatchOptions(_.watchOptions),t.enableLanguageService(),this.watchWildcards(o,c,t)),t.enablePluginsWithOptions(u);let m=_.fileNames.concat(t.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(t,m,CQ,u,_.typeAcquisition,_.compileOnSave,_.watchOptions),(s=_n)==null||s.pop()}ensureParsedConfigUptoDate(t,n,i,s){var o,c,_;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)||u5(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),g=ZA(t,I=>this.host.readFile(I)),m=fM(t,ys(g)?g:""),h=m.parseDiagnostics;ys(g)||h.push(g);let S=Yn(t),T=yM(m,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&&!OO(this.getWatchOptionsFromProjectWatchOptions(void 0,S),this.getWatchOptionsFromProjectWatchOptions(T.watchOptions,S))&&((_=i.watcher)==null||_.close(),i.watcher=void 0),this.createConfigFileWatcherForParsedConfig(t,n,s),_5(n,T.options,this.sharedExtendedConfigFileWatchers,(I,D)=>this.watchFactory.watchFile(I,()=>{var E;f5(this.extendedConfigCache,D,F=>this.toPath(F));let O=!1;(E=this.sharedExtendedConfigFileWatchers.get(D))==null||E.projects.forEach(F=>{O=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(F,`Change in extended config file ${I} detected`)||O}),O&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,Hl.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,LM(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;Q_(i.watchedDirectories,Op),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),!Nl(i.config.projects,Do)&&(i.config.watchedDirectories&&(Q_(i.config.watchedDirectories,Op),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 _ of n){let u=i.getFileName(_),g=go(u),m=XE(g),h;if(!m&&!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(_,this.hostConfiguration.extraFileExtensions),T=i.hasMixedContent(_,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((_,u)=>{c.has(u)||(_.info?t.removeFile(_.info,t.fileExists(_.info.fileName),!0):o.delete(u))})}updateRootAndOptionsOfNonInferredProject(t,n,i,s,o,c,_){t.setCompilerOptions(s),t.setWatchOptions(_),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)),CQ),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,Yn(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,CQ)}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,PQ(n)),!0)}setProjectForReload(t,n,i){n===2&&this.clearSemanticCache(t),t.pendingUpdateReason=i&&PQ(i),t.pendingUpdateLevel=n}reloadConfiguredProject(t,n){t.initialLoadPending=!1,this.setProjectForReload(t,0),this.loadConfiguredProject(t,n),y4e(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:hQ,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&&kp(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 _=new gde(this,s,o?.watchOptions,i,t,c);return _.setProjectErrors(o?.errors),n?this.inferredProjects.unshift(_):this.inferredProjects.push(_),_}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=ps(i0(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?Nl(n,(c,_)=>_===s.path?!1:Ts(c,o))||n.add(s.path,o):(n=Kp(),n.add(s.path,o)))}}watchClosedScriptInfo(t){if(w.assert(!t.fileWatcher),!t.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!Yi(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,Hl.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 _=C5(this.toPath(o));if(!_)return;let u=fl(_);if((c=s.affectedModuleSpecifierCacheProjects)!=null&&c.size&&(u==="package.json"||u==="node_modules")&&s.affectedModuleSpecifierCacheProjects.forEach(g=>{var m;(m=g.getModuleSpecifierCache())==null||m.clear()}),s.refreshScriptInfoRefCount)if(n===_)this.refreshScriptInfosInDirectory(n);else{let g=this.filenameToScriptInfo.get(_);g?Pde(g)&&this.refreshScriptInfo(g):xw(_)||this.refreshScriptInfosInDirectory(_)}},1,this.hostConfiguration.watchOptions,Hl.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)||_f).getTime()}refreshScriptInfo(t){let n=this.getModifiedTime(t);if(n!==t.mTime){let i=uB(t.mTime,n);t.mTime=n,this.onSourceFileChanged(t,i)}}refreshScriptInfosInDirectory(t){t=t+Fo,this.filenameToScriptInfo.forEach(n=>{Pde(n)&&Yi(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(ff(t)||XE(t))return this.getOrCreateScriptInfoWorker(t,n,!1,void 0,i,!!s,o,c);let _=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t));if(_)return _}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,_,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),m=this.filenameToScriptInfo.get(g);if(m){if(m.deferredDelete){if(w.assert(!m.isDynamic),!i&&!(_||this.host).fileExists(t))return u?m:void 0;m.deferredDelete=void 0}}else{let h=XE(t);if(w.assert(ff(t)||h||i,"",()=>`${JSON.stringify({fileName:t,currentDirectory:n,hostCurrentDirectory:this.currentDirectory,openKeys:ps(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(!ff(t)||this.currentDirectory===n||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(t)),"",()=>`${JSON.stringify({fileName:t,currentDirectory:n,hostCurrentDirectory:this.currentDirectory,openKeys:ps(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:ps(this.openFilesWithNonRootedDiskPath.keys())})}
Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!i&&!h&&!(_||this.host).fileExists(t))return;m=new lde(this.host,t,o,c,g,this.filenameToScriptInfoVersion.get(g)),this.filenameToScriptInfo.set(m.path,m),this.filenameToScriptInfoVersion.delete(m.path),i?!ff(t)&&(!h||this.currentDirectory!==n)&&this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(t),m):this.watchClosedScriptInfo(m)}return i&&(this.stopWatchingScriptInfo(m),m.open(s),c&&m.registerFileUpdate()),m}getScriptInfoForNormalizedPath(t){return!ff(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(),ys(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,m)=>{let h=this.getOrCreateScriptInfoNotOpenedByClient(g,t.currentDirectory,this.host,!0);if(o=h||m,!h||h.deferredDelete)return;let S=h.getSnapshot();return h.documentPositionMapper!==void 0?h.documentPositionMapper:sC(S)},_=t.projectName,u=S$({getCanonicalFileName:this.toCanonicalFileName,log:g=>this.logger.info(g),getSourceFileLike:g=>this.getSourceFileLike(g,_,s)},s.fileName,s.textStorage.getLineInfo(),c);return c=void 0,o?ys(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&&!ys(s.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(s.containingProjects,!0),this.delayUpdateSourceInfoProjects(s.sourceMapFilePath.sourceInfos),s.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,Hl.MissingSourceMapFile)}getSourceFileLike(t,n,i){let s=n.projectName?n:this.findProject(n);if(s){let c=s.toPath(t),_=s.getSourceFile(c);if(_&&_.resolvedPath===c)return _}let o=this.getOrCreateScriptInfoNotOpenedByClient(t,(s||this).currentDirectory,s?s.directoryStructureHost:this.host,!1);if(o){if(i&&ys(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 _=o.positionToLineOffset(c);return{line:_.line-1,character:_.offset-1}},getPositionOfLineAndCharacter:(c,_,u)=>o.lineOffsetToPosition(c+1,_+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(_=>{!_.deferredClose&&!_.isClosed()&&_.pendingUpdateLevel===2&&!this.hasPendingProjectUpdate(_)&&_.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=tR(t.watchOptions))==null?void 0:n.watchOptions,s=F7(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?F7(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=Yu(()=>this.host.fileExists(n.fileName)?n.deferredDelete?0:1:2);if(t){if(Pde(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(c4e),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);On(o.containingProjects,Y3)||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(ud),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 _={fileName:go(o),path:this.toPath(o)},u=this.getConfigFileNameForFile(_,!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: ${_.fileName}${n!==s?" for location: "+n.fileName:""}`)}let m=this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(_,5,Ide(g,4),T=>`Creating project referenced in solution ${T.projectName} to find possible configured project for original file: ${_.fileName}${n!==s?" for location: "+n.fileName:""}`);if(!m.defaultProject)return;if(m.defaultProject===t)return s;S(m.defaultProject);let h=this.getScriptInfo(o);if(!h||!h.containingProjects.length)return;return h.containingProjects.forEach(T=>{vv(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 On(this.externalProjects,n=>(ud(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 _=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(t,5);_&&(o=_.seenProjects,c=_.sentConfigDiag,_.defaultProject&&(n=_.defaultProject.getConfigFilePath(),i=_.defaultProject.getAllProjectErrors()))}return t.containingProjects.forEach(ud),t.isOrphan()&&(o?.forEach((_,u)=>{_!==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,_,u,g){let m=g??this.findConfiguredProjectByProjectName(t,s),h=!1,S;switch(n){case 0:case 1:case 3:if(!m)return;break;case 2:if(!m)return;S=Qit(m);break;case 4:case 5:m??(m=this.createConfiguredProject(t,i)),_||({sentConfigFileDiag:h,configFileExistenceInfo:S}=Ide(m,n,o));break;case 6:if(m??(m=this.createConfiguredProject(t,PQ(i))),m.projectService.reloadConfiguredProjectOptimized(m,i,c),S=Ade(m),S)break;case 7:m??(m=this.createConfiguredProject(t,PQ(i))),h=!u&&this.reloadConfiguredProjectClearingSemanticCache(m,i,c),u&&!u.has(m)&&!c.has(m)&&(this.setProjectForReload(m,2,i),u.add(m));break;default:w.assertNever(n)}return{project:m,sentConfigFileDiag:h,configFileExistenceInfo:S,reason:i}}tryFindDefaultConfiguredProjectForOpenScriptInfo(t,n,i,s){let o=this.getConfigFileNameForFile(t,n<=3);if(!o)return;let c=p4e(n),_=this.findCreateOrReloadConfiguredProject(o,c,Kit(t),i,t.fileName,s);return _&&this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(t,n,_,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(IJ(i.fileName,n.options,this.hostConfiguration.extraFileExtensions))return!1;let{validatedFilesSpec:s,validatedIncludeSpecs:o,validatedExcludeSpecs:c}=n.options.configFile.configFileSpecs,_=go(as(Yn(t),this.currentDirectory));return s?.some(u=>this.toPath(as(u,_))===i.path)?!0:!o?.length||W7(i.fileName,c,this.host.useCaseSensitiveFileNames,this.currentDirectory,_)?!1:o?.some(u=>{let g=kJ(u,_,"files");return!!g&&iv(`(${g})$`,this.host.useCaseSensitiveFileNames).test(i.fileName)})}tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(t,n,i,s,o,c){let _=f4e(t),u=p4e(n),g=new Map,m,h=new Set,S,T,x,I;return D(i),{defaultProject:S??T,tsconfigProject:x??I,sentConfigDiag:h,seenProjects:g,seenConfigs:m};function D($){return F($,$.project)??B($.project)??G($.project)}function E($,K,U,me,te,V){if(K){if(g.has(K))return;g.set(K,u)}else{if(m?.has(V))return;(m??(m=new Set)).add(V)}if(!te.projectService.isMatchedByConfig(U,$.config.parsedCommandLine,t)){te.languageServiceEnabled&&te.projectService.watchWildcards(U,$,te);return}let ne=K?Ide(K,n,t.fileName,me,c):te.projectService.findCreateOrReloadConfiguredProject(U,n,me,o,t.fileName,c);if(!ne){w.assert(n===3);return}return g.set(ne.project,u),ne.sentConfigFileDiag&&h.add(ne.project),O(ne.project,te)}function O($,K){if(g.get($)===n)return;g.set($,n);let U=_?t:$.projectService.getScriptInfo(t.fileName),me=U&&$.containsScriptInfo(U);if(me&&!$.isSourceOfProjectReferenceRedirect(U.path))return x=K,S=$;!T&&_&&me&&(I=K,T=$)}function F($,K){return $.sentConfigFileDiag&&h.add($.project),$.configFileExistenceInfo?E($.configFileExistenceInfo,$.project,go($.project.getConfigFilePath()),$.reason,$.project,$.project.canonicalConfigFilePath):O($.project,K)}function B($){return $.parsedCommandLine&&m4e($,$.parsedCommandLine,E,u,s($),o,c)}function G($){return _?d4e(t,$,D,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:_,tsconfigProject:u,seenProjects:g}=c;return _&&d4e(t,u,m=>{g.set(m.project,n)},n,`Creating project possibly referencing default composite project ${_.getProjectName()} of open file ${t.fileName}`,o,i,!0,s),c}loadAncestorProjectTree(t){t??(t=new Set(i0(this.configuredProjects.entries(),([s,o])=>o.initialLoadPending?void 0:s)));let n=new Set,i=ps(this.configuredProjects.values());for(let s of i)g4e(s,o=>t.has(o))&&ud(s),this.ensureProjectChildren(s,t,n)}ensureProjectChildren(t,n,i){var s;if(!Qy(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 _=VJ(c.references,m=>n.has(m.sourceFile.path)?m:void 0);if(!_)continue;let u=go(c.sourceFile.fileName),g=this.findConfiguredProjectByProjectName(u)??this.createConfiguredProject(u,`Creating project referenced by : ${t.projectName} as it references project ${_.sourceFile.fileName}`);ud(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)||Ts(n.config.parsedCommandLine.fileNames,t.fileName,this.host.useCaseSensitiveFileNames?aS:_0)||(o=n.config.watchedDirectories)==null||o.forEach((c,_)=>{kp(_,t.fileName,!this.host.useCaseSensitiveFileNames)&&(this.logger.info(`Invoking ${i}:: wildcard for open scriptInfo:: ${t.fileName}`),this.onWildCardDirectoryWatcherInvoke(_,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)),_=this.getOrCreateOpenScriptInfo(t,n,i,s,o);!c&&_&&!_.isDynamic&&this.tryInvokeWildCardDirectories(_);let{retainProjects:u,...g}=this.assignProjectToOpenedScriptInfo(_);return this.cleanupProjectsAndScriptInfos(u,new Set([_.path]),void 0),this.telemetryOnOpenFile(_),this.printProjects(),g}getOrphanConfiguredProjects(t,n,i){let s=new Set(this.configuredProjects.values()),o=g=>{g.originalConfiguredProjects&&(vv(g)||!g.isOrphan())&&g.originalConfiguredProjects.forEach((m,h)=>{let S=this.getConfiguredProjectByCanonicalConfigFilePath(h);return S&&u(S)})};if(t?.forEach((g,m)=>u(m)),!s.size||(this.inferredProjects.forEach(o),this.externalProjects.forEach(o),this.externalProjectToConfiguredProjectMap.forEach((g,m)=>{i?.has(m)||g.forEach(u)}),!s.size)||(Nl(this.openFiles,(g,m)=>{if(n?.has(m))return;let h=this.getScriptInfoForPath(m);if(On(h.containingProjects,Y3))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 Nl(this.configuredProjects,g=>{if(s.has(g)&&(_(g)||h4e(g,c))&&(u(g),!s.size))return s}),s;function c(g){return!s.has(g)||_(g)}function _(g){var m,h;return(g.deferredClose||g.projectService.hasPendingProjectUpdate(g))&&!!((h=(m=g.projectService.configFileExistenceInfoCache.get(g.canonicalConfigFilePath))==null?void 0:m.openFilesImpactedByConfigFile)!=null&&h.size)}function u(g){s.delete(g)&&(o(g),h4e(g,u))}}removeOrphanScriptInfos(){let t=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(n=>{if(!n.deferredDelete){if(!n.isScriptOpen()&&n.isOrphan()&&!_de(n)&&!ude(n)){if(!n.sourceMapFilePath)return;let i;if(ys(n.sourceMapFilePath)){let s=this.filenameToScriptInfo.get(n.sourceMapFilePath);i=s?.sourceInfos}else i=n.sourceMapFilePath.sourceInfos;if(!i||!uh(i,s=>{let o=this.getScriptInfoForPath(s);return!!o&&(o.isScriptOpen()||!o.isOrphan())}))return}if(t.delete(n.path),n.sourceMapFilePath){let i;if(ys(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()||!nd(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:Sde,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=On(t,_=>_.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,i0(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,kQ(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 _;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((m,h)=>(_??(_=new Map)).set(h,m))}),c&&this.assignOrphanScriptInfosToInferredProject(),o?(this.cleanupProjectsAndScriptInfos(_,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=Tde}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=>iu(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,(...D)=>x.map(E=>typeof E=="number"?ys(D[E])?ave.escapeFilenameForRegex(D[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=ave.escapeFilenameForRegex(T);o.includes(x)||o.push(x)}}}let _=o.map(h=>new RegExp(h,"i")),u,g;for(let h=0;h<n.length;h++)if(_.some(S=>S.test(c[h])))m(h);else{if(i.enable){let S=fl(l0(c[h]));if(nc(S,"js")){let T=i_(S),x=LW(T),I=this.legacySafelist.get(x);if(I!==void 0){this.logger.info(`Excluded '${c[h]}' because it matched ${x} from the legacy safelist`),m(h),s.includes(I)||s.push(I);continue}}}/^.+[.-]min\.js$/.test(c[h])?m(h):u?.push(n[h])}return g?{rootFiles:u,excludedFiles:g}:void 0;function m(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 _=go(c.fileName);if(uQ(_)){if(this.serverMode===0&&this.host.fileExists(_)){let u=this.findConfiguredProjectByProjectName(_);u||(u=this.createConfiguredProject(_,`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=dde(o.map(g=>g.fileName)));let _=this.applySafeListWorker(t,o,c),u=_?.excludedFiles??[];if(o=_?.rootFiles??o,i){i.excludedFiles=u;let g=bj(t.options),m=tR(t.options,i.getCurrentDirectory()),h=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.projectFileName,g,o,wQ);h?i.disableLanguageService(h):i.enableLanguageService(),i.setProjectErrors(m?.errors),this.updateRootAndOptionsOfNonInferredProject(i,o,wQ,g,c,t.options.compileOnSave,m?.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||Jl(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=vC.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,vC.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 _=n.name;n=c,n.name=_}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=ps(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(hr(t,async([i,s])=>{let o=await Promise.all(s);if(i.isClosed()||eR(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=[],_=u=>{switch(s.directoryHasPackageJson(u)){case 3:return s.searchDirectoryAndAncestors(u,n),_(u);case-1:let g=Bn(u,"package.json");this.watchPackageJsonFile(g,this.toPath(g),n);let m=s.getInDirectory(u);m&&c.push(m)}if(o&&o===u)return!0};return Pg(n,Yn(t),_),c}getNearestAncestorDirectoryWithPackageJson(t,n){return Pg(n,t,i=>{switch(this.packageJsonCache.directoryHasPackageJson(i)){case-1:return i;case 0:return;case 3:return this.host.fileExists(Bn(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,_)=>{switch(_){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,Hl.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=Yit())}};b4e.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g;var Fde=b4e;function Yit(){let e;return{get(){return e},set(t){e=t},clear(){e=void 0}}}function Ode(e){return e.kind!==void 0}function Lde(e){e.print(!1,!1,!1)}function jde(e){let t,n,i,s={get(u,g,m,h){if(!(!n||i!==c(u,m,h)))return n.get(g)},set(u,g,m,h,S,T,x){if(o(u,m,h).set(g,_(S,T,x,void 0,!1)),x){for(let I of T)if(I.isInNodeModules){let D=I.path.substring(0,I.path.indexOf(Ch)+Ch.length-1),E=e.toPath(D);t?.has(E)||(t||(t=new Map)).set(E,e.watchNodeModulesForPackageJsonChanges(D))}}},setModulePaths(u,g,m,h,S){let T=o(u,m,h),x=T.get(g);x?x.modulePaths=S:T.set(g,_(void 0,S,void 0,void 0,void 0))},setBlockedByPackageJsonDependencies(u,g,m,h,S,T){let x=o(u,m,h),I=x.get(g);I?(I.isBlockedByPackageJsonDependencies=T,I.packageName=S):x.set(g,_(void 0,void 0,void 0,S,T))},clear(){t?.forEach(kd),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,m){let h=c(u,g,m);return n&&i!==h&&s.clear(),i=h,n||(n=new Map)}function c(u,g,m){return`${u},${g.importModuleSpecifierEnding},${g.importModuleSpecifierPreference},${m.overrideImportMode}`}function _(u,g,m,h,S){return{kind:u,modulePaths:g,moduleSpecifiers:m,packageName:h,isBlockedByPackageJsonDependencies:S}}}function Wde(e){let t=new Map,n=new Map;return{addOrUpdate:i,invalidate:s,delete:c=>{t.delete(c),n.set(Yn(c),!0)},getInDirectory:c=>t.get(e.toPath(Bn(c,"package.json")))||void 0,directoryHasPackageJson:c=>o(e.toPath(c)),searchDirectoryAndAncestors:(c,_)=>{Pg(_,c,u=>{let g=e.toPath(u);if(o(g)!==3)return!0;let m=Bn(u,"package.json");OE(e,m)?i(m,Bn(g,"package.json")):n.set(g,!0)})}};function i(c,_){let u=w.checkDefined(n$(c,e.host));t.set(_,u),n.delete(Yn(_))}function s(c){t.delete(c),n.delete(Yn(c))}function o(c){return t.has(Bn(c,"package.json"))?-1:n.has(c)?0:3}}var S4e={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}};function Zit(e){let t=e[0],n=e[1];return(1e9*t+n)/1e6}function T4e(e,t){if((lD(e)||Y3(e))&&e.isJsOnlyProject()){let n=e.getScriptInfoForNormalizedPath(t);return n&&!n.isJavaScript()}return!1}function est(e){return K_(e)||!!e.emitDecoratorMetadata}function k4e(e,t,n){let i=t.getScriptInfoForNormalizedPath(e);return{start:i.positionToLineOffset(n.start),end:i.positionToLineOffset(n.start+n.length),text:Gm(n.messageText,`
`),code:n.code,category:QT(n),reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated,source:n.source,relatedInformation:hr(n.relatedInformation,AQ)}}function AQ(e){return e.file?{span:{start:_D(Qs(e.file,e.start)),end:_D(Qs(e.file,e.start+e.length)),file:e.file.fileName},message:Gm(e.messageText,`
`),category:QT(e),code:e.code}:{message:Gm(e.messageText,`
`),category:QT(e),code:e.code}}function _D(e){return{line:e.line+1,offset:e.character+1}}function rR(e,t){let n=e.file&&_D(Qs(e.file,e.start)),i=e.file&&_D(Qs(e.file,e.start+e.length)),s=Gm(e.messageText,`
`),{code:o,source:c}=e,_=QT(e),u={start:n,end:i,text:s,code:o,category:_,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:c,relatedInformation:hr(e.relatedInformation,AQ)};return t?{...u,fileName:e.file&&e.file.fileName}:u}function tst(e,t){return e.every(n=>mc(n.span)<t)}var x4e=ode;function Bde(e,t,n,i){let s=t.hasLevel(3),o=JSON.stringify(e);return s&&t.info(`${e.type}:${s1(e)}`),`Content-Length: ${1+n(o,"utf8")}\r
\r
${o}${i}`}var rst=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 _=!1;try{this.operationHost.isCancellationRequested()?(_=!0,(t=_n)==null||t.instant(_n.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((n=_n)==null||n.push(_n.Phase.Session,"stepAction",{seq:this.requestId}),e(this),(i=_n)==null||i.pop())}catch(u){(s=_n)==null||s.popAll(),_=!0,u instanceof TP?(o=_n)==null||o.instant(_n.Phase.Session,"stepCanceled",{seq:this.requestId}):((c=_n)==null||c.instant(_n.Phase.Session,"stepError",{seq:this.requestId,message:u.message}),this.operationHost.logError(u,`delayed processing of request ${this.requestId}`))}this.performanceData=this.operationHost.getPerformanceData(),(_||!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 zde(e,t){return{seq:0,type:"event",event:e,body:t}}function nst(e,t,n,i){let s=fP(ks(n)?n:n.projects,o=>i(o,e));return!ks(n)&&n.symLinkedProjects&&n.symLinkedProjects.forEach((o,c)=>{let _=t(c);s.push(...ga(o,u=>i(u,_)))}),nS(s,u0)}function EQ(e){return NW(({textSpan:t})=>t.start+100003*t.length,Jq(e))}function ist(e,t,n,i,s,o,c){let _=Jde(e,t,n,C4e(t,n,!0),D4e,(m,h)=>m.getLanguageService().findRenameLocations(h.fileName,h.pos,i,s,o),(m,h)=>h(ZE(m)));if(ks(_))return _;let u=[],g=EQ(c);return _.forEach((m,h)=>{for(let S of m)!g.has(S)&&!NQ(ZE(S),h)&&(u.push(S),g.add(S))}),u}function C4e(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 sst(e,t,n,i,s){var o,c;let _=Jde(e,t,n,C4e(t,n,!1),D4e,(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(ZE(h.definition));for(let T of h.references)S(ZE(T))});if(ks(_))return _;let u=_.get(t);if(((c=(o=u?.[0])==null?void 0:o.references[0])==null?void 0:c.isDefinition)===void 0)_.forEach(h=>{for(let S of h)for(let T of S.references)delete T.isDefinition});else{let h=EQ(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(_.forEach((x,I)=>{if(S.has(I))return;I.getLanguageService().updateIsDefinitionOfReferencedSymbols(x,h)&&(S.add(I),T=!0)}),!T)break}_.forEach((T,x)=>{if(!S.has(x))for(let I of T)for(let D of I.references)D.isDefinition=!1})}let g=[],m=EQ(i);return _.forEach((h,S)=>{for(let T of h){let x=NQ(ZE(T.definition),S),I=x===void 0?T.definition:{...T.definition,textSpan:pu(x.pos,T.definition.textSpan.length),fileName:x.fileName,contextSpan:ost(T.definition,S)},D=On(g,E=>zq(E.definition,I,i));D||(D={definition:I,references:[]},g.push(D));for(let E of T.references)!m.has(E)&&!NQ(ZE(E),S)&&(m.add(E),D.references.push(E))}}),g.filter(h=>h.references.length!==0)}function w4e(e,t,n){for(let i of ks(e)?e:e.projects)n(i,t);!ks(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((i,s)=>{for(let o of i)n(o,s)})}function Jde(e,t,n,i,s,o,c){let _=new Map,u=YN();u.enqueue({project:t,location:n}),w4e(e,n.fileName,(I,D)=>{let E={fileName:D,pos:n.pos};u.enqueue({project:I,location:E})});let g=t.projectService,m=t.getCancellationToken(),h=Yu(()=>t.isSourceOfProjectReferenceRedirect(i.fileName)?i:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(i)),S=Yu(()=>t.isSourceOfProjectReferenceRedirect(i.fileName)?i:t.getLanguageService().getSourceMapper().tryGetSourcePosition(i)),T=new Set;e:for(;!u.isEmpty();){for(;!u.isEmpty();){if(m.isCancellationRequested())break e;let{project:I,location:D}=u.dequeue();if(_.has(I)||P4e(I,D)||(ud(I),!I.containsFile(go(D.fileName))))continue;let E=x(I,D);_.set(I,E??jl),T.add(ast(I))}i&&(g.loadAncestorProjectTree(T),g.forEachEnabledProject(I=>{if(m.isCancellationRequested()||_.has(I))return;let D=s(i,I,h,S);D&&u.enqueue({project:I,location:D})}))}if(_.size===1)return IW(_.values());return _;function x(I,D){let E=o(I,D);if(!E||!c)return E;for(let O of E)c(O,F=>{let B=g.getOriginalLocationEnsuringConfiguredProject(I,F);if(!B)return;let G=g.getScriptInfo(B.fileName);for(let K of G.containingProjects)!K.isOrphan()&&!_.has(K)&&u.enqueue({project:K,location:B});let $=g.getSymlinkedProjects(G);$&&$.forEach((K,U)=>{for(let me of K)!me.isOrphan()&&!_.has(me)&&u.enqueue({project:me,location:{fileName:U,pos:B.pos}})})});return E}}function I4e(e,t){if(t.containsFile(go(e.fileName))&&!P4e(t,e))return e}function D4e(e,t,n,i){let s=I4e(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 P4e(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 ast(e){return vv(e)?e.canonicalConfigFilePath:e.getProjectName()}function ZE({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function NQ(e,t){return AE(e,t.getSourceMapper(),n=>t.projectService.fileExists(n))}function A4e(e,t){return fL(e,t.getSourceMapper(),n=>t.projectService.fileExists(n))}function ost(e,t){return Uq(e,t.getSourceMapper(),n=>t.projectService.fileExists(n))}var E4e=["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"],cst=[...E4e,"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"],N4e=class mY{constructor(t){this.changeSeq=0,this.regionDiagLineCountThreshold=500,this.handlers=new Map(Object.entries({status:()=>{let o={version:Ui};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 _=hr(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(_)},updateOpen:o=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(o.arguments.openFiles&&_P(o.arguments.openFiles,c=>({fileName:c.file,content:c.fileContent,scriptKind:c.scriptKindName,projectRootPath:c.projectRootPath})),o.arguments.changedFiles&&_P(o.arguments.changedFiles,c=>({fileName:c.fileName,changes:i0(CW(c.textChanges),_=>{let u=w.checkDefined(this.projectService.getScriptInfo(c.fileName)),g=u.lineOffsetToPosition(_.start.line,_.start.offset),m=u.lineOffsetToPosition(_.end.line,_.end.offset);return g>=0?{span:{start:g,length:m-g},newText:_.newText}:void 0})})),o.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:o=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(o.arguments.openFiles,o.arguments.changedFiles&&_P(o.arguments.changedFiles,c=>({fileName:c.fileName,changes:CW(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,xQ(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||Sj,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,_)=>this.executeWithRequestId(o,c,_),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 rst(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 Fde(s),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new sde(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:E4e.forEach(o=>this.handlers.set(o,c=>{throw new Error(`Request: ${c.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:cst.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&&M4e(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 vj:this.projectsUpdatedInBackgroundEvent(t.data.openFiles);break;case dQ:this.event({projectName:t.data.project.getProjectName(),reason:t.data.reason},t.eventName);break;case mQ:this.event({projectName:t.data.project.getProjectName()},t.eventName);break;case gQ:case bQ:case SQ:case TQ:this.event(t.data,t.eventName);break;case hQ:this.event({triggerFile:t.data.triggerFile,configFile:t.data.configFileName,diagnostics:hr(t.data.diagnostics,n=>rR(n,!0))},t.eventName);break;case yQ:{this.event({projectName:t.data.project.getProjectName(),languageServiceEnabled:t.data.languageServiceEnabled},t.eventName);break}case vQ:{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},vj))}logError(t,n){this.logErrorWorker(t,n)}logErrorWorker(t,n,i){let s="Exception on executing command "+n;if(t.message&&(s+=`:
`+kE(t.message),t.stack&&(s+=`
`+kE(t.stack))),this.logger.hasLevel(3)){if(i)try{let{file:o,project:c}=this.getFileAndProject(i),_=c.getScriptInfoForNormalizedPath(o);if(_){let u=sC(_.getSnapshot());s+=`
File text of ${i.file}:${kE(u)}
`}}catch{}if(t.ProgramFiles){s+=`
Program files: ${JSON.stringify(t.ProgramFiles)}
`,s+=`
Projects::
`;let o=0,c=_=>{s+=`
Project '${_.projectName}' (${YE[_.projectKind]}) ${o}
`,s+=_.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: ${s1(t)}`);return}this.writeMessage(t)}writeMessage(t){let n=Bde(t,this.logger,this.byteLength,this.host.newLine);this.host.write(n)}event(t,n){this.send(zde(n,t))}doOutput(t,n,i,s,o,c){let _={seq:0,type:"response",command:n,request_seq:i,success:s,performanceData:o&&M4e(o)};if(s){let u;if(ks(t))_.body=t,u=t.metadata,delete t.metadata;else if(typeof t=="object")if(t.metadata){let{metadata:g,...m}=t;_.body=m,u=g}else _.body=t;else _.body=t;u&&(_.metadata=u)}else w.assert(t===void 0);c&&(_.message=c),this.send(_)}semanticCheck(t,n){var i,s;let o=To();(i=_n)==null||i.push(_n.Phase.Session,"semanticCheck",{file:t,configFilePath:n.canonicalConfigFilePath});let c=T4e(n,t)?jl:n.getLanguageService().getSemanticDiagnostics(t).filter(_=>!!_.file);this.sendDiagnosticsEvent(t,n,c,"semanticDiag",o),(s=_n)==null||s.pop()}syntacticCheck(t,n){var i,s;let o=To();(i=_n)==null||i.push(_n.Phase.Session,"syntacticCheck",{file:t,configFilePath:n.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,n,n.getLanguageService().getSyntacticDiagnostics(t),"syntaxDiag",o),(s=_n)==null||s.pop()}suggestionCheck(t,n){var i,s;let o=To();(i=_n)==null||i.push(_n.Phase.Session,"suggestionCheck",{file:t,configFilePath:n.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,n,n.getLanguageService().getSuggestionDiagnostics(t),"suggestionDiag",o),(s=_n)==null||s.pop()}regionSemanticCheck(t,n,i){var s,o,c;let _=To();(s=_n)==null||s.push(_n.Phase.Session,"regionSemanticCheck",{file:t,configFilePath:n.canonicalConfigFilePath});let u;if(!this.shouldDoRegionCheck(t)||!(u=n.getLanguageService().getRegionSemanticDiagnostics(t,i))){(o=_n)==null||o.pop();return}this.sendDiagnosticsEvent(t,n,u.diagnostics,"regionSemanticDiag",_,u.spans),(c=_n)==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 _=w.checkDefined(n.getScriptInfo(t)),u=To()-o,g={file:t,diagnostics:i.map(m=>k4e(t,n,m)),spans:c?.map(m=>Hm(m,_))};this.event(g,s),this.addDiagnosticsPerformanceData(t,s,u)}catch(_){this.logError(_,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),_=0,u=()=>{if(_++,n.length>_)return t.delay("checkOne",c,m)},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()})}},m=()=>{if(this.changeSeq!==o)return;let h,S=n[_];if(ys(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(ud(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(D=>this.getRange({file:T,...D},I))),this.changeSeq===o&&t.immediate("semanticCheck",()=>g(T,x))});t.immediate("semanticCheck",()=>g(T,x))}};n.length>_&&this.changeSeq===o&&t.delay("checkOne",i,m)}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",ps(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=An(Ki(s,o),_=>!!_.file&&_.file.fileName===t);return i?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(c):hr(c,_=>rR(_,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(t){return t.map(n=>({message:Gm(n.messageText,this.host.newLine),start:n.start,length:n.length,category:QT(n),code:n.code,source:n.source,startLocation:n.file&&_D(Qs(n.file,n.start)),endLocation:n.file&&_D(Qs(n.file,n.start+n.length)),reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated,relatedInformation:hr(n.relatedInformation,AQ)}))}getCompilerOptionsDiagnostics(t){let n=this.getProject(t.projectFileName);return this.convertToDiagnosticsWithLinePosition(An(n.getLanguageService().getCompilerOptionsDiagnostics(),i=>!i.file),void 0)}convertToDiagnosticsWithLinePosition(t,n){return t.map(i=>({message:Gm(i.messageText,this.host.newLine),start:i.start,length:i.length,category:QT(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:hr(i.relatedInformation,AQ)}))}getDiagnosticsWorker(t,n,i,s){let{project:o,file:c}=this.getFileAndProject(t);if(n&&T4e(o,c))return jl;let _=o.getScriptInfoForNormalizedPath(c),u=i(o,c);return s?this.convertToDiagnosticsWithLinePosition(u,_):u.map(g=>k4e(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(mY.mapToOriginalLocation)}mapDefinitionInfoLocations(t,n){return t.map(i=>{let s=A4e(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)),_=s.getLanguageService().getDefinitionAndBoundSpan(i,o);if(!_||!_.definitions)return{definitions:jl,textSpan:void 0};let u=this.mapDefinitionInfoLocations(_.definitions,s),{textSpan:g}=_;return n?{definitions:this.mapDefinitionInfo(u,s),textSpan:Hm(g,c)}:{definitions:u.map(mY.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),_=this.mapDefinitionInfoLocations(c||jl,s).slice();if(this.projectService.serverMode===0&&(!pt(_,T=>go(T.fileName)!==i&&!T.isAmbient)||pt(_,T=>!!T.failedAliasResolution))){let T=NW(E=>E.textSpan.start,Jq(this.host.useCaseSensitiveFileNames));_?.forEach(E=>T.add(E));let x=s.getNoDtsResolutionProject(i),I=x.getLanguageService(),D=(n=I.getDefinitionAtPosition(i,o,!0,!1))==null?void 0:n.filter(E=>go(E.fileName)!==i);if(pt(D))for(let E of D){if(E.unverified){let O=h(E,s.getLanguageService().getProgram(),I.getProgram());if(pt(O)){for(let F of O)T.add(F);continue}}T.add(E)}else{let E=_.filter(O=>go(O.fileName)!==i&&O.isAmbient);for(let O of pt(E)?E:m()){let F=g(O.fileName,i,x);if(!F)continue;let B=this.projectService.getOrCreateScriptInfoNotOpenedByClient(F,x.currentDirectory,x.directoryStructureHost,!1);if(!B)continue;x.containsScriptInfo(B)||(x.addRoot(B),x.updateGraph());let G=I.getProgram(),$=w.checkDefined(G.getSourceFile(F));for(let K of S(O.name,$,G))T.add(K)}}_=ps(T.values())}return _=_.filter(T=>!T.isAmbient&&!T.failedAliasResolution),this.mapDefinitionInfo(_,s);function g(T,x,I){var D,E,O;let F=BO(T);if(F&&T.lastIndexOf(Ch)===F.topLevelNodeModulesIndex){let B=T.substring(0,F.packageRootIndex),G=(D=s.getModuleResolutionCache())==null?void 0:D.getPackageJsonInfoCache(),$=s.getCompilationSettings(),K=sE(as(B,s.getCurrentDirectory()),iE(G,s,$));if(!K)return;let U=uU(K,{moduleResolution:2},s,s.getModuleResolutionCache()),me=T.substring(F.topLevelPackageNameIndex+1,F.packageRootIndex),te=aE(xM(me)),V=s.toPath(T);if(U&&pt(U,ne=>s.toPath(ne)===V))return(E=I.resolutionCache.resolveSingleModuleNameWithoutWatching(te,x).resolvedModule)==null?void 0:E.resolvedFileName;{let ne=T.substring(F.packageRootIndex+1),ie=`${te}/${i_(ne)}`;return(O=I.resolutionCache.resolveSingleModuleNameWithoutWatching(ie,x).resolvedModule)==null?void 0:O.resolvedFileName}}}function m(){let T=s.getLanguageService(),x=T.getProgram(),I=W_(x.getSourceFile(i),o);return(Ha(I)||je(I))&&Oo(I.parent)&&Bre(I,D=>{var E;if(D===I)return;let O=(E=T.getDefinitionAtPosition(i,D.getStart(),!0,!1))==null?void 0:E.filter(F=>go(F.fileName)!==i&&F.isAmbient).map(F=>({fileName:F.fileName,name:Ip(I)}));if(pt(O))return O})||jl}function h(T,x,I){var D;let E=I.getSourceFile(T.fileName);if(!E)return;let O=W_(x.getSourceFile(i),o),F=x.getTypeChecker().getSymbolAtLocation(O),B=F&&Yo(F,276);if(!B)return;let G=((D=B.propertyName)==null?void 0:D.text)||B.name.text;return S(G,E,I)}function S(T,x,I){let D=jo.Core.getTopMostDeclarationNamesInFile(T,x);return Vi(D,E=>{let O=I.getTypeChecker().getSymbolAtLocation(E),F=rA(E);if(O&&F)return aD.createDefinitionInfo(F,I.getTypeChecker(),O,F,!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=>rR(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=A4e(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:_,textSpan:u,contextSpan:g})=>this.toFileSpanWithContext(_,u,g,s)):c.map(mY.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 ust(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:_,highlightSpans:u})=>{let g=s.getScriptInfo(_);return{file:_,highlightSpans:u.map(({textSpan:m,kind:h,contextSpan:S})=>({...Gde(m,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:_,displayParts:u}=c;return{...c,position:s.positionToLineOffset(_),displayParts:u?.map(({text:g,span:m,file:h})=>{if(m){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(m.start),end:S.positionToLineOffset(m.start+m.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),_=this.projectService.getScriptInfoForNormalizedPath(o),u=(n=t.mapping.focusLocations)==null?void 0:n.map(m=>m.map(h=>{let S=_.lineOffsetToPosition(h.start.line,h.start.offset),T=_.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 ud(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((_,u)=>{u!==s.defaultProject&&(_!==3?(o??(o=[])).push(go(u.getConfigFilePath())):(c??(c=[])).push(go(u.getConfigFilePath())))}),(n=s.seenConfigs)==null||n.forEach(_=>(o??(o=[])).push(_)),{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),Ty.ThrowNoProject());s=c.containingProjects,o=this.projectService.getSymlinkedProjects(c)}return s=An(s,c=>c.languageServiceEnabled&&!c.isOrphan()),!i&&(!s||!s.length)&&!o?(this.projectService.logErrorForScriptInfoNotFound(t.file??t.projectFileName),Ty.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 Ty.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),_=this.getPreferences(i),u=this.mapRenameInfo(c.getLanguageService().getRenameInfo(i,s,_),w.checkDefined(this.projectService.getScriptInfo(i)));if(!u.canRename)return n?{info:u,locs:[]}:[];let g=ist(o,c,{fileName:t.file,pos:s},!!t.findInStrings,!!t.findInComments,_,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:_,kindModifiers:u,triggerSpan:g}=t;return{canRename:i,fileToRename:s,displayName:o,fullDisplayName:c,kind:_,kindModifiers:u,triggerSpan:Hm(g,n)}}else return t}toSpanGroups(t){let n=new Map;for(let{fileName:i,textSpan:s,contextSpan:o,originalContextSpan:c,originalTextSpan:_,originalFileName:u,...g}of t){let m=n.get(i);m||n.set(i,m={file:i,locs:[]});let h=w.checkDefined(this.projectService.getScriptInfo(i));m.locs.push({...Gde(s,o,h),...g})}return ps(n.values())}getReferences(t,n){let i=go(t.file),s=this.getProjects(t),o=this.getPositionInFile(t,i),c=sst(s,this.getDefaultProject(t),{fileName:t.file,pos:o},this.host.useCaseSensitiveFileNames,this.logger);if(!n)return c;let _=this.getPreferences(i),u=this.getDefaultProject(t),g=u.getScriptInfoForNormalizedPath(i),m=u.getLanguageService().getQuickInfoAtPosition(i,o),h=m?w3(m.displayParts):"",S=m&&m.textSpan,T=S?g.positionToLineOffset(S.start).offset:0,x=S?g.getSnapshot().getText(S.start,mc(S)):"";return{refs:ga(c,D=>D.references.map(E=>F4e(this.projectService,E,_))),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},_=Jde(i,this.getDefaultProject(t),c,c,I4e,m=>(this.logger.info(`Finding references to file ${s} in project ${m.getProjectName()}`),m.getLanguageService().getFileReferences(s))),u;if(ks(_))u=_;else{u=[];let m=EQ(this.host.useCaseSensitiveFileNames);_.forEach(h=>{for(let S of h)m.has(S)||(u.push(S),m.add(S))})}return n?{refs:u.map(m=>F4e(this.projectService,m,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(_=>({textSpan:Hm(_.textSpan,c),hintSpan:Hm(_.hintSpan,c),bannerText:_.bannerText,autoCollapse:_.autoCollapse,kind:_.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=s.getLanguageService().getQuickInfoAtPosition(i,this.getPosition(t,o));if(!c)return;let _=!!this.getPreferences(i).displayPartsForJSDoc;if(n){let u=w3(c.displayParts);return{kind:c.kind,kindModifiers:c.kindModifiers,start:o.positionToLineOffset(c.textSpan.start),end:o.positionToLineOffset(mc(c.textSpan)),displayString:u,documentation:_?this.mapDisplayParts(c.documentation,s):w3(c.documentation),tags:this.mapJSDocTagInfo(c.tags,s,_)}}else return _?c:{...c,tags:this.mapJSDocTagInfo(c.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),_=i.getFormattingEditsForRange(n,o,c,this.getFormatOptions(n));if(_)return _.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),_=i.getFormattingEditsAfterKeystroke(n,o,t.key,c);if(t.key===`
`&&(!_||_.length===0||tst(_,o))){let{lineText:u,absolutePosition:g}=s.textStorage.getAbsolutePositionAndLineText(t.line);if(u&&u.search("\\S")<0){let m=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(m!==h){let x=g+S;_.push({span:Uc(g,x),newText:yl.getIndentationString(m,c)})}}}if(_)return _.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),_=s.getLanguageService().getCompletionsAtPosition(i,c,{...xde(this.getPreferences(i)),triggerCharacter:t.triggerCharacter,triggerKind:t.triggerKind,includeExternalModuleExports:t.includeExternalModuleExports,includeInsertTextCompletions:t.includeInsertTextCompletions},s.projectService.getFormatCodeOptions(i));if(_===void 0)return;if(n==="completions-full")return _;let u=t.prefix||"",g=Vi(_.entries,h=>{if(_.isMemberCompletion||Yi(h.name.toLowerCase(),u.toLowerCase())){let S=h.replacementSpan?Hm(h.replacementSpan,o):void 0;return{...h,replacementSpan:S,hasAction:h.hasAction||void 0,symbol:void 0}}});return n==="completions"?(_.metadata&&(g.metadata=_.metadata),g):{..._,optionalReplacementSpan:_.optionalReplacementSpan&&Hm(_.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),_=s.projectService.getFormatCodeOptions(i),u=!!this.getPreferences(i).displayPartsForJSDoc,g=Vi(t.entryNames,m=>{let{name:h,source:S,data:T}=typeof m=="string"?{name:m,source:void 0,data:void 0}:m;return s.getLanguageService().getCompletionEntryDetails(i,c,h,_,S,this.getPreferences(i),T?Zs(T,mst):void 0)});return n?u?g:g.map(m=>({...m,tags:this.mapJSDocTagInfo(m.tags,s,!1)})):g.map(m=>({...m,codeActions:hr(m.codeActions,h=>this.mapCodeAction(h)),documentation:this.mapDisplayParts(m.documentation,s),tags:this.mapJSDocTagInfo(m.tags,s,u)}))}getCompileOnSaveAffectedFileList(t){let n=this.getProjects(t,!0,!0),i=this.projectService.getScriptInfo(t.file);return i?nst(i,s=>this.projectService.getScriptInfoForPath(s),n,(s,o)=>{if(!s.compileOnSaveEnabled||!s.languageServiceEnabled||s.isOrphan())return;let c=s.getCompilationSettings();if(!(c.noEmit||Ll(o.fileName)&&!est(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||Ty.ThrowNoProject(),!i.languageServiceEnabled)return t.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;let s=i.getScriptInfo(n),{emitSkipped:o,diagnostics:c}=i.emitFile(s,(_,u,g)=>this.host.writeFile(_,u,g));return t.richResponse?{emitSkipped:o,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(c):c.map(_=>rR(_,!0))}:!o}getSignatureHelpItems(t,n){let{file:i,project:s}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getPosition(t,o),_=s.getLanguageService().getSignatureHelpItems(i,c,t),u=!!this.getPreferences(i).displayPartsForJSDoc;if(_&&n){let g=_.applicableSpan;return{..._,applicableSpan:{start:o.positionToLineOffset(g.start),end:o.positionToLineOffset(g.start+g.length)},items:this.mapSignatureHelpItems(_.items,s,u)}}else return u||!_?_:{..._,items:_.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,xY({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=na(t);this.projectService.closeClientFile(n)}mapLocationNavigationBarItems(t,n){return hr(t,i=>({text:i.text,kind:i.kind,kindModifiers:i.kindModifiers,spans:i.spans.map(s=>Hm(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=>Hm(i,n)),nameSpan:t.nameSpan&&Hm(t.nameSpan,n),childItems:hr(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?ga(i,({project:s,navigateToItems:o})=>o.map(c=>{let _=s.getScriptInfo(c.fileName),u={name:c.name,kind:c.kind,kindModifiers:c.kindModifiers,isCaseSensitive:c.isCaseSensitive,matchKind:c.matchKind,file:c.fileName,start:_.positionToLineOffset(c.textSpan.start),end:_.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})):ga(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(),_=[],u=new Map;if(!t.file&&!o)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(S=>g(S));else{let S=this.getProjects(t);w4e(S,void 0,T=>g(T))}return _;function g(S){let T=S.getLanguageService().getNavigateToItems(i,s,void 0,S.isNonTsProject(),c.excludeLibrarySymbolsInNavTo),x=An(T,I=>m(I)&&!NQ(ZE(I),S));x.length&&_.push({project:S,navigateToItems:x})}function m(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 Q$();if(t.file){let{file:i,project:s}=this.getFileAndProject(t);return s.getLanguageService().getSupportedCodeFixes(i)}let n=this.getProject(t.projectFileName);return n||Ty.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(_=>({..._,range:_.range?{start:_D({line:_.range.start.line,character:_.range.start.offset}),end:_D({line:_.range.end.line,character:_.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:_,renameLocation:u,edits:g}=c,m;if(_!==void 0&&u!==void 0){let h=s.getScriptInfoForNormalizedPath(go(_));m=Ude(sC(h.getSnapshot()),_,u,g)}return{renameLocation:m,renameFilename:_,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(XE(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(),_=new Set,u=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(g=>{let m=g.getLanguageService().getEditsForFileRename(i,s,o,c),h=[];for(let S of m)_.has(S.fileName)||(u.push(S),h.push(S.fileName));for(let S of h)_.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:_}=this.getStartAndEndPosition(t,o),u;try{u=s.getLanguageService().getCodeFixesAtPosition(i,c,_,t.errorCodes,this.getFormatOptions(i),this.getPreferences(i))}catch(g){let m=g instanceof Error?g:new Error(g),h=s.getLanguageService(),S=[...h.getSyntacticDiagnostics(i),...h.getSemanticDiagnostics(i),...h.getSuggestionDiagnostics(i)].filter(x=>p6(c,_-c,x.start,x.length)).map(x=>x.code),T=t.errorCodes.find(x=>!S.includes(x));throw T!==void 0&&(m.message+=`
Additional information: BADCLIENT: Bad error code, ${T} not found in range ${c}..${_} (found: ${S.join(", ")})`),m}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 Jx(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=>lst(i,n))}:fst(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),_=s.getBraceMatchingAtPosition(i,c);return _?n?_.map(u=>Hm(u,o)):_: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 _=[],u=[],g=[],m=[],h=go(i),S=this.projectService.ensureDefaultProjectForFile(h);for(let I of c)this.getCanonicalFileName(I)===this.getCanonicalFileName(i)?_.push(I):this.projectService.getScriptInfo(I).isScriptOpen()?u.push(I):Ll(I)?m.push(I):g.push(I);let x=[..._,...u,...g,...m].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 hr(i,_=>{let u=this.getPosition(_,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),_=s.toggleLineComment(i,c);if(n){let u=this.projectService.getScriptInfoForNormalizedPath(i);return _.map(g=>this.convertTextChangeToCodeEdit(g,u))}return _}toggleMultilineComment(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getRange(t,o),_=s.toggleMultilineComment(i,c);if(n){let u=this.projectService.getScriptInfoForNormalizedPath(i);return _.map(g=>this.convertTextChangeToCodeEdit(g,u))}return _}commentSelection(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getRange(t,o),_=s.commentSelection(i,c);if(n){let u=this.projectService.getScriptInfoForNormalizedPath(i);return _.map(g=>this.convertTextChangeToCodeEdit(g,u))}return _}uncommentSelection(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getRange(t,o),_=s.uncommentSelection(i,c);if(n){let u=this.projectService.getScriptInfoForNormalizedPath(i);return _.map(g=>this.convertTextChangeToCodeEdit(g,u))}return _}mapSelectionRange(t,n){let i={textSpan:Hm(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),Ty.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:Hm(t.span,n),selectionSpan:Hm(t.selectionSpan,n)}}toProtocolCallHierarchyIncomingCall(t){let n=this.getScriptInfoFromProjectService(t.from.file);return{from:this.toProtocolCallHierarchyItem(t.from),fromSpans:t.fromSpans.map(i=>Hm(i,n))}}toProtocolCallHierarchyOutgoingCall(t,n){return{to:this.toProtocolCallHierarchyItem(t.to),fromSpans:t.fromSpans.map(i=>Hm(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&&s$(c,_=>this.toProtocolCallHierarchyItem(_))}}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:l0(t);return na(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:${s1(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,_,u;this.gcTimer.scheduleCollect();let g,m=this.performanceData;this.logger.hasLevel(2)&&(g=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${kE(this.toStringMessage(t))}`));let h,S;try{h=this.parseMessage(t),S=h.arguments&&h.arguments.file?h.arguments:void 0,(n=_n)==null||n.instant(_n.Phase.Session,"request",{seq:h.seq,command:h.command}),(i=_n)==null||i.push(_n.Phase.Session,"executeCommand",{seq:h.seq,command:h.command},!0);let{response:T,responseRequired:x,performanceData:I}=this.executeCommand(h);if((s=_n)==null||s.pop(),this.logger.hasLevel(2)){let D=Zit(this.hrtime(g)).toFixed(4);x?this.logger.perftrc(`${h.seq}::${h.command}: elapsed time (in milliseconds) ${D}`):this.logger.perftrc(`${h.seq}::${h.command}: async elapsed time (in milliseconds) ${D}`)}(o=_n)==null||o.instant(_n.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=_n)==null||c.popAll(),T instanceof TP){(_=_n)==null||_.instant(_n.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=_n)==null||u.instant(_n.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=m}}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 M4e(e){let t=e.diagnosticsDuration&&ps(e.diagnosticsDuration,([n,i])=>({...i,file:n}));return{...e,diagnosticsDuration:t}}function Hm(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(mc(e))}}function Gde(e,t,n){let i=Hm(e,n),s=t&&Hm(t,n);return s?{...i,contextStart:s.start,contextEnd:s.end}:i}function lst(e,t){return{start:R4e(t,e.span.start),end:R4e(t,mc(e.span)),newText:e.newText}}function R4e(e,t){return Ode(e)?_st(e.getLineAndCharacterOfPosition(t)):e.positionToLineOffset(t)}function ust(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 _st(e){return{line:e.line+1,offset:e.character+1}}function fst(e){w.assert(e.textChanges.length===1);let t=Ea(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 Ude(e,t,n,i){let s=pst(e,t,i),{line:o,character:c}=ww(Qx(s),n);return{line:o+1,offset:c+1}}function pst(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:_,length:u}}=s[o];e=e.slice(0,_)+c+e.slice(_+u)}return e}function F4e(e,{fileName:t,textSpan:n,contextSpan:i,isWriteAccess:s,isDefinition:o},{disableLineTextInReferences:c}){let _=w.checkDefined(e.getScriptInfo(t)),u=Gde(n,i,_),g=c?void 0:dst(_,u);return{file:t,...u,lineText:g,isWriteAccess:s,isDefinition:o}}function dst(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,Vde=(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))(Vde||{}),gst=class{constructor(){this.goSubtree=!0,this.lineIndex=new nR,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new pD,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=nR.linesFromText(e).lines;i.length>1&&i[i.length-1]===""&&i.pop();let s,o;for(let _=this.endBranch.length-1;_>=0;_--)this.endBranch[_].updateCounts(),this.endBranch[_].charCount()===0&&(o=this.endBranch[_],_>0?s=this.endBranch[_-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 _=new Array(i.length-1),u=c;for(let h=1;h<i.length;h++)_[h-1]=new Tj(i[h]);let g=this.startPath.length-2;for(;g>=0;){let h=this.startPath[g];_=h.insertAt(u,_),g--,u=h}let m=_.length;for(;m>0;){let h=new pD;h.add(this.lineIndex.root),_=h.insertAt(this.lineIndex.root,_),m=_.length,this.lineIndex.root=h}this.lineIndex.root.updateCounts()}else for(let _=this.startPath.length-2;_>=0;_--)this.startPath[_].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 _(u){return u.isLeaf()?new Tj(""):new pD}switch(s){case 0:this.goSubtree=!1,this.state!==4&&o.add(n);break;case 1:this.state===4?this.goSubtree=!1:(c=_(n),o.add(c),this.startPath.push(c));break;case 2:this.state!==4?(c=_(n),o.add(c),this.startPath.push(c)):n.isLeaf()||(c=_(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=_(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)}},hst=class{constructor(e,t,n){this.pos=e,this.deleteLen=t,this.insertedText=n}getTextChangeRange(){return d6(pu(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},MQ=class Fx{constructor(){this.changes=[],this.versions=new Array(Fx.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(t<this.minVersion||t>this.currentVersion))return t%Fx.maxVersions}currentVersionToIndex(){return this.currentVersion%Fx.maxVersions}edit(t,n,i){this.changes.push(new hst(t,n,i)),(this.changes.length>Fx.changeNumberThreshold||n>Fx.changeLengthThreshold||i&&i.length>Fx.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 O4e(this.currentVersion+1,this,n,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=Fx.maxVersions&&(this.minVersion=this.currentVersion-Fx.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 pu(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 xee(i)}else return;else return $8}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){let n=new Fx,i=new O4e(0,n,new nR);n.versions[n.currentVersion]=i;let s=nR.linesFromText(t);return i.index.load(s.lines),n}};MQ.changeNumberThreshold=8,MQ.changeLengthThreshold=256,MQ.maxVersions=8;var RQ=MQ,O4e=class sLe{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 sLe&&this.cache===t.cache)return this.version<=t.version?$8:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},nR=class ove{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 Tj(t[i]);this.root=ove.buildTreeFromBottom(n)}else this.root=new pD}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,_){t(_,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(ove.linesFromText(i).lines),this):void 0;{let s;if(this.checkEdits){let _=this.getText(0,this.root.charCount());s=_.slice(0,t)+i+_.slice(t+n)}let o=new gst,c=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;let _=this.getText(t,1);i?i=_+i:i=_,n=0,c=!0}else if(n>0){let _=t+n,{zeroBasedColumn:u,lineText:g}=this.positionToColumnAndLineText(_);u===0&&(n+=g.length,i=i?i+g:g)}if(this.root.walk(t,n,o),o.insertLines(i,c),this.checkEdits){let _=o.lineIndex.getText(0,o.lineIndex.getLength());w.assert(s===_,"buffer edit mismatch")}return o.lineIndex}}static buildTreeFromBottom(t){if(t.length<fD)return new pD(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 pD(t.slice(i,o)),i=o}return this.buildTreeFromBottom(n)}static linesFromText(t){let n=Qx(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}}},pD=class cve{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 _=n-(o-c);for(s++,o=this.children[s].charCount();_>o;){if(this.execWalk(0,o,i,s,3))return;_-=o,s++,o=this.children[s].charCount()}if(_>0&&this.execWalk(0,_,i,s,4))return}if(i.pre){let _=this.children.length;if(s<_-1)for(let u=s+1;u<_;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 cve;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),_=0;for(i++;i<fD&&_<o;)this.children[i]=n[_],i++,_++;let u=[],g=0;if(_<o){g=Math.ceil((o-_)/fD),u=new Array(g);let m=0;for(let S=0;S<g;S++)u[S]=new cve;let h=u[0];for(;_<o;)h.add(n[_]),_++,h.children.length===fD&&(m++,h=u[m]);for(let S=u.length-1;S>=0;S--)u[S].children.length===0&&u.pop()}c&&u.push(c),this.updateCounts();for(let m=0;m<g;m++)u[m].updateCounts();return u}}add(t){this.children.push(t),w.assert(this.children.length<=fD)}charCount(){return this.totalChars}lineCount(){return this.totalLines}},Tj=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}},L4e=class aLe{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=YN(),this.requestMap=new Map,this.requestedRegistry=!1,this.packageInstallId=0}isKnownTypesPackageName(t){var n;return Q0.validatePackageName(t)!==Q0.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=Ype(t,n,i);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${s1(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:${s1(t)}`),t.kind){case rq:this.typesRegistryCache=new Map(Object.entries(t.typesRegistry));break;case z5:{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 tce:{let s={message:t.message};this.event(s,"typesInstallerInitializationFailed");break}case nq:{let s={eventId:t.eventId,packages:t.packagesToInstall};this.event(s,"beginInstallTypes");break}case iq:{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 B5:{this.projectService.updateTypingsForProject(t);break}case W5:{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 XM: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:${s1(t)}`),this.installer.send(t)},aLe.requestDelayMillis,`${t.projectName}::${t.kind}`)}};L4e.requestDelayMillis=100;var j4e=L4e,W4e={};nt(W4e,{ActionInvalidate:()=>B5,ActionPackageInstalled:()=>z5,ActionSet:()=>W5,ActionWatchTypingLocations:()=>XM,Arguments:()=>sq,AutoImportProviderProject:()=>vde,AuxiliaryProject:()=>hde,CharRangeSection:()=>Vde,CloseFileWatcherEvent:()=>TQ,CommandNames:()=>x4e,ConfigFileDiagEvent:()=>hQ,ConfiguredProject:()=>bde,ConfiguredProjectLoadKind:()=>wde,CreateDirectoryWatcherEvent:()=>SQ,CreateFileWatcherEvent:()=>bQ,Errors:()=>Ty,EventBeginInstallTypes:()=>nq,EventEndInstallTypes:()=>iq,EventInitializationFailed:()=>tce,EventTypesRegistry:()=>rq,ExternalProject:()=>_Q,GcTimer:()=>sde,InferredProject:()=>gde,LargeFileReferencedEvent:()=>gQ,LineIndex:()=>nR,LineLeaf:()=>Tj,LineNode:()=>pD,LogLevel:()=>Kpe,Msg:()=>Xpe,OpenFileInfoTelemetryEvent:()=>Sde,Project:()=>vC,ProjectInfoTelemetryEvent:()=>vQ,ProjectKind:()=>YE,ProjectLanguageServiceStateEvent:()=>yQ,ProjectLoadingFinishEvent:()=>mQ,ProjectLoadingStartEvent:()=>dQ,ProjectService:()=>Fde,ProjectsUpdatedInBackgroundEvent:()=>vj,ScriptInfo:()=>lde,ScriptVersionCache:()=>RQ,Session:()=>N4e,TextStorage:()=>cde,ThrottledOperations:()=>ide,TypingsInstallerAdapter:()=>j4e,allFilesAreJsOrDts:()=>pde,allRootFilesAreJsOrDts:()=>fde,asNormalizedPath:()=>K6e,convertCompilerOptions:()=>bj,convertFormatOptions:()=>uD,convertScriptKindName:()=>xQ,convertTypeAcquisition:()=>kde,convertUserPreferences:()=>xde,convertWatchOptions:()=>tR,countEachFileTypes:()=>X3,createInstallTypingsRequest:()=>Ype,createModuleSpecifierCache:()=>jde,createNormalizedPathMap:()=>X6e,createPackageJsonCache:()=>Wde,createSortedArray:()=>nde,emptyArray:()=>jl,findArgument:()=>Kke,formatDiagnosticToProtocol:()=>rR,formatMessage:()=>Bde,getBaseConfigFileName:()=>uQ,getDetailWatchInfo:()=>DQ,getLocationInNewDocument:()=>Ude,hasArgument:()=>Qke,hasNoTypeScriptSource:()=>dde,indent:()=>kE,isBackgroundProject:()=>Z3,isConfigFile:()=>Ode,isConfiguredProject:()=>vv,isDynamicFileName:()=>XE,isExternalProject:()=>Y3,isInferredProject:()=>lD,isInferredProjectName:()=>Zpe,isProjectDeferredClose:()=>eR,makeAutoImportProviderProjectName:()=>tde,makeAuxiliaryProjectName:()=>rde,makeInferredProjectName:()=>ede,maxFileSize:()=>pQ,maxProgramSizeForNonTsFiles:()=>fQ,normalizedPathToPath:()=>cD,nowString:()=>Xke,nullCancellationToken:()=>S4e,nullTypingsInstaller:()=>Sj,protocol:()=>ade,scriptInfoIsContainedByBackgroundProject:()=>ude,scriptInfoIsContainedByDeferredClosedProject:()=>_de,stringifyIndented:()=>s1,toEvent:()=>zde,toNormalizedPath:()=>go,tryConvertScriptKindName:()=>kQ,typingsInstaller:()=>Qpe,updateProjectIfDirty:()=>ud}),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 Z5e},set exports(Q){Z5e=Q,typeof gY<"u"&&gY.exports&&(gY.exports=Q)}})});var eo=(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))(eo||{}),I7e=new DataView(new ArrayBuffer(8));new Uint16Array(I7e.buffer)[0]=258;var nW=4096,iW=64<<20,D7e=7,ryt=8192,nyt=2147483647,iyt=4294967295,Eye=4096,Fc=I7e.getUint8(0)===2,P7e=2,syt=4,A7e=3,UX=nyt,Nye=iyt,VX="CAPNP-TS000 Unreachable code detected.";function sW(Q){throw new Error(VX+` (never block hit with: ${Q})`)}var Mye="CAPNP-TS001 Attempted to parse an invalid message frame header; are you sure this is a Cap'n Proto message?",E7e="CAPNP-TS003 Attempted to pack a message that was not word-aligned.",Rye="CAPNP-TS004 Segment ID %X is out of bounds for message %s.",Fye="CAPNP-TS005 First segment must have at least enough room to hold the root pointer (8 bytes).";var ayt="CAPNP-TS008 Attempted to adopt %s into a pointer in a different message %s.",oyt="CAPNP-TS009 Attempted to adopt %s more than once.",cyt="CAPNP-TS010 Attempted to set a composite list without providing a composite element size.",Oye="CAPNP-TS011 Nesting depth limit exceeded for %s.",lyt="CAPNP-TS013 Attempted to initialize a struct member from a composite list (%s).",uyt="CAPNP-TS015 Target of a far pointer (%s) is another far pointer.",WX="CAPNP-TS016 Invalid list element size: %x.",BX="CAPNP-TS017 Invalid pointer type: %x.",_yt="CAPNP-TS018 Attempted to access getter on %s for union field %s that is not currently set (wanted: %d, found: %d).",fyt="CAPNP-TS019 Pointer offset %a is out of bounds for underlying buffer.",pyt="CAPNP-TS020 Attempted to access out-of-bounds struct data (struct: %s, %d bytes at %a, data words: %d).",dyt="CAPNP-TS021 Attempted to access out-of-bounds struct pointer (%s, index: %d, length: %d).",myt="CAPNP-TS022 Traversal limit exceeded! Slow down! %s",gyt="CAPNP-TS023 Cannot convert %s to a %s list.",hyt="CAPNP-TS024 Attempted to convert pointer %s to a %s type.",N7e="CAPNP-TS035 Attempted to get a segment other than 0 (%d) from a single segment arena.",M7e="CAPNP-TS036 Attempted to get an out-of-bounds segment (%d).",Lye="CAPNP-TS037 Segment buffer length %d is not a multiple of 8.",R7e="CAPNP-TS038 Attempted to replace a segment buffer with one that is smaller than the allocated space.",F7e=`CAPNP-TS039 Requested size %x exceeds maximum value (${Nye}).`,yyt="CAPNP-TS040 Must provide a composite element size for composite list pointers.",RN="CAPNP-TS045: Cannot call mutative methods on an immutable list.",Y9="CAPNP-TS046: Search is not supported for list.",jye="CAPNP-TS100 Call on null client.";function vyt(Q){let M=new Uint8Array(Q),ge=[];for(let be=0;be<M.byteLength;be++)ge.push(zX(M[be].toString(16),2));return`[${ge.join(" ")}]`}function O7e(Q){let M=Q instanceof ArrayBuffer?new Uint8Array(Q):new Uint8Array(Q.buffer,Q.byteOffset,Q.byteLength),ge=Math.min(M.byteLength,ryt),be=Sl(`
=== buffer[%d] ===`,ge);for(let Le=0;Le<ge;Le+=16){be+=`
${zX(Le.toString(16),8)}: `;let nt="",br;for(br=0;br<16&&Le+br<M.byteLength;br++){let Cr=M[Le+br];be+=`${zX(Cr.toString(16),2)} `,nt+=Cr>31&&Cr<255?String.fromCharCode(Cr):"\xB7",br===7&&(be+=" ")}be+=`${" ".repeat((17-br)*3)}${nt}`}return be+=`
`,ge!==M.byteLength&&(be+=Sl(`=== (truncated %d bytes) ===
`,M.byteLength-ge)),be}function Sl(Q,...M){let ge=Q.length,be,Le=0,nt,br=!1,Cr=0,gi=!1,Xi,Ui="";function Ga(){return M[Le++]}function qe(){let Bl="";for(;/\d/.test(Q[Cr]);)Bl+=Q[Cr++],nt=Q[Cr];return Bl.length>0?Number.parseInt(Bl,10):null}for(;Cr<ge;++Cr)if(nt=Q[Cr],br)switch(br=!1,nt==="."?(gi=!1,nt=Q[++Cr]):nt==="0"&&Q[Cr+1]==="."?(gi=!0,Cr+=2,nt=Q[Cr]):gi=!0,Xi=qe(),nt){case"a":{Ui+="0x"+zX(Number.parseInt(String(Ga()),10).toString(16),8);break}case"b":{Ui+=Number.parseInt(String(Ga()),10).toString(2);break}case"c":{be=Ga(),Ui+=typeof be=="string"||be instanceof String?be:String.fromCharCode(Number.parseInt(String(be),10));break}case"d":{Ui+=Number.parseInt(String(Ga()),10);break}case"f":{let Bl=Number.parseFloat(String(Ga())).toFixed(Xi||6);Ui+=gi?Bl:Bl.replace(/^0/,"");break}case"j":{Ui+=JSON.stringify(Ga());break}case"o":{Ui+="0"+Number.parseInt(String(Ga()),10).toString(8);break}case"s":{Ui+=Ga();break}case"x":{Ui+="0x"+Number.parseInt(String(Ga()),10).toString(16);break}case"X":{Ui+="0x"+Number.parseInt(String(Ga()),10).toString(16).toUpperCase();break}default:{Ui+=nt;break}}else nt==="%"?br=!0:Ui+=nt;return Ui}function zX(Q,M,ge="0"){return Q.length>=M?Q:Array.from({length:M-Q.length+1}).join(ge)+Q}function e0(Q){return Q+7&-8}var Cu=class{constructor(M,ge){this.dataByteLength=M,this.pointerLength=ge}toString(){return Sl("ObjectSize_dw:%d,pc:%d",eW(this),this.pointerLength)}};function Y1(Q){return Q.dataByteLength+Q.pointerLength*8}function eW(Q){return Q.dataByteLength/8}function u8(Q){return Q.dataByteLength/8+Q.pointerLength}function Wye(Q){return new Cu(e0(Q.dataByteLength),Q.pointerLength)}var Pye=class{_capnp;byteOffset;segment;constructor(M){let ge=qo(M);switch(this.segment=ge.segment,this.byteOffset=ge.byteOffset,this._capnp={},this._capnp.type=Tb(M),this._capnp.type){case Vl.STRUCT:{this._capnp.size=dw(M);break}case Vl.LIST:{this._capnp.length=WN(M),this._capnp.elementSize=tP(M),this._capnp.elementSize===eo.COMPOSITE&&(this._capnp.size=cW(M));break}case Vl.OTHER:{this._capnp.capId=Jye(M);break}default:throw new Error(BX)}aW(M)}_moveTo(M){if(this._capnp===void 0)throw new Error(Sl(oyt,this));if(this.segment.message!==M.segment.message)throw new Error(Sl(ayt,this,M));Z1(M);let ge=eS(this.segment,this.byteOffset,M);switch(this._capnp.type){case Vl.STRUCT:{rP(ge.offsetWords,this._capnp.size,ge.pointer);break}case Vl.LIST:{let{offsetWords:be}=ge;this._capnp.elementSize===eo.COMPOSITE&&be--,LN(be,this._capnp.elementSize,this._capnp.length,ge.pointer,this._capnp.size);break}case Vl.OTHER:{HX(this._capnp.capId,ge.pointer);break}default:throw new Error(BX)}this._capnp=void 0}dispose(){if(this._capnp!==void 0){switch(this._capnp.type){case Vl.STRUCT:{this.segment.fillZeroWords(this.byteOffset,u8(this._capnp.size));break}case Vl.LIST:{let M=zye(this._capnp.elementSize,this._capnp.length,this._capnp.size);this.segment.fillZeroWords(this.byteOffset,M);break}}this._capnp=void 0}}[Symbol.for("nodejs.util.inspect.custom")](){return Sl("Orphan_%d@%a,type:%s",this.segment.id,this.byteOffset,this._capnp&&this._capnp.type)}};function L7e(Q,M){Q._moveTo(M)}function j7e(Q){return new Pye(Q)}function Bye(Q){return vyt(Q.segment.buffer.slice(Q.byteOffset,Q.byteOffset+8))}function zye(Q,M,ge){switch(Q){case eo.BIT:return e0(M+7>>>3);case eo.BYTE:case eo.BYTE_2:case eo.BYTE_4:case eo.BYTE_8:case eo.POINTER:case eo.VOID:return e0(f8(Q)*M);case eo.COMPOSITE:{if(ge===void 0)throw new Error(Sl(WX,Number.NaN));return M*e0(Y1(ge))}default:throw new Error(WX)}}function f8(Q){switch(Q){case eo.BIT:return Number.NaN;case eo.BYTE:return 1;case eo.BYTE_2:return 2;case eo.BYTE_4:return 4;case eo.BYTE_8:case eo.POINTER:return 8;case eo.COMPOSITE:return Number.NaN;case eo.VOID:return 0;default:throw new Error(Sl(WX,Q))}}function JX(Q,M){return new p_(M.segment,M.byteOffset+Q,M._capnp.depthLimit)}function t0(Q,M){if(!(M.segment===Q.segment&&M.byteOffset===Q.byteOffset)&&(Z1(M),!tS(Q)))switch(Tb(Q)){case Vl.STRUCT:{Qye(Q,M);break}case Vl.LIST:{Hye(Q,M);break}case Vl.OTHER:{$ye(Q,M);break}default:throw new Error(Sl(BX,Tb(M)))}}function Z1(Q){if(tS(Q))return;let M;switch(Tb(Q)){case Vl.STRUCT:{let ge=dw(Q);M=qo(Q),M.segment.fillZeroWords(M.byteOffset,ge.dataByteLength/8);for(let be=0;be<ge.pointerLength;be++)Z1(JX(be*8,M));break}case Vl.LIST:{let ge=tP(Q),be=WN(Q),Le=e0(be*f8(ge));if(M=qo(Q),ge===eo.POINTER){for(let nt=0;nt<be;nt++)Z1(new p_(M.segment,M.byteOffset+nt*8,Q._capnp.depthLimit-1));break}else if(ge===eo.COMPOSITE){let nt=JX(-8,M),br=jN(nt),Cr=Y1(br);Le=ON(nt),M.segment.setWordZero(M.byteOffset-8);for(let gi=0;gi<be;gi++)for(let Xi=0;Xi<br.pointerLength;Xi++)Z1(new p_(M.segment,M.byteOffset+gi*Cr+Xi*8,Q._capnp.depthLimit-1))}M.segment.fillZeroWords(M.byteOffset,Le);break}case Vl.OTHER:break;default:throw new Error(Sl(BX,Tb(Q)))}aW(Q)}function aW(Q){if(p8(Q)===Vl.FAR){let M=oW(Q);lW(Q)&&M.segment.setWordZero(M.byteOffset+8),M.segment.setWordZero(M.byteOffset)}Q.segment.setWordZero(Q.byteOffset)}function oW(Q){let M=Q.segment.message.getSegment(Q.segment.getUint32(Q.byteOffset+4)),ge=Q.segment.getUint32(Q.byteOffset)>>>3;return new p_(M,ge*8,Q._capnp.depthLimit-1)}function GT(Q){if(p8(Q)===Vl.FAR){let M=oW(Q);return lW(Q)&&(M.byteOffset+=8),M}return Q}function Jye(Q){return Q.segment.getUint32(Q.byteOffset+4)}function byt(Q){return Tb(Q)===Vl.LIST&&tP(Q)===eo.COMPOSITE}function qo(Q,M){let ge;if(lW(Q)){let be=oW(Q);ge=new p_(Q.segment.message.getSegment(Gye(be)),ON(be)*8)}else{let be=GT(Q);ge=new p_(be.segment,be.byteOffset+8+ON(be)*8)}return byt(Q)&&(ge.byteOffset+=8),!M&&Q._capnp.compositeIndex!==void 0&&(ge.byteOffset-=8,ge.byteOffset+=8+Q._capnp.compositeIndex*Y1(Wye(jN(ge)))),ge}function Gye(Q){return Q.segment.getUint32(Q.byteOffset+4)}function qX(Q){return Q.segment.getUint32(Q.byteOffset+4)&D7e}function Uye(Q){return Q.segment.getUint32(Q.byteOffset+4)>>>3}function ON(Q){let M=Q.segment.getInt32(Q.byteOffset);return M&2?M>>3:M>>2}function p8(Q){return Q.segment.getUint32(Q.byteOffset)&A7e}function Vye(Q){return Q.segment.getUint16(Q.byteOffset+4)}function qye(Q){return Q.segment.getUint16(Q.byteOffset+6)}function jN(Q){return new Cu(Vye(Q)*8,qye(Q))}function $X(Q){let M=qo(Q);return M.byteOffset-=8,M}function cW(Q){return jN($X(Q))}function tP(Q){return qX(GT(Q))}function WN(Q){let M=GT(Q);return qX(M)===eo.COMPOSITE?ON($X(Q)):Uye(M)}function Tb(Q){let M=p8(GT(Q));if(M===Vl.FAR)throw new Error(Sl(uyt,Q));return M}function dw(Q){return jN(GT(Q))}function eS(Q,M,ge){if(ge.segment!==Q){if(!Q.hasCapacity(8)){let Le=ge.segment.allocate(16);return Z9(!0,Le.byteOffset/8,Le.segment.id,ge),Z9(!1,M/8,Q.id,Le),Le.byteOffset+=8,new FN(Le,0)}let be=Q.allocate(8);if(be.segment.id!==Q.id)throw new Error(VX);return Z9(!1,be.byteOffset/8,be.segment.id,ge),new FN(be,(M-be.byteOffset-8)/8)}return new FN(ge,(M-ge.byteOffset-8)/8)}function lW(Q){return p8(Q)===Vl.FAR&&(Q.segment.getUint32(Q.byteOffset)&syt)!==0}function tS(Q){return Q.segment.isWordZero(Q.byteOffset)}function W7e(Q,M){let ge=GT(M),be=ge.segment.getUint8(ge.byteOffset)&3,Le=ge.segment.getUint32(ge.byteOffset+4);Z1(Q);let nt=eS(ge.segment,ge.byteOffset+8+ON(ge)*8,Q);nt.pointer.segment.setUint32(nt.pointer.byteOffset,be|nt.offsetWords<<2),nt.pointer.segment.setUint32(nt.pointer.byteOffset+4,Le),aW(M)}function Z9(Q,M,ge,be){let Le=Vl.FAR,nt=Q?1:0,br=M,Cr=ge;be.segment.setUint32(be.byteOffset,Le|nt<<2|br<<3),be.segment.setUint32(be.byteOffset+4,Cr)}function HX(Q,M){M.segment.setUint32(M.byteOffset,Vl.OTHER),M.segment.setUint32(M.byteOffset+4,Q)}function QX(Q){return Q.segment.getUint32(Q.byteOffset+4)}function LN(Q,M,ge,be,Le){let nt=Vl.LIST,br=Q,Cr=M,gi=ge;if(M===eo.COMPOSITE){if(Le===void 0)throw new TypeError(yyt);gi*=u8(Le)}be.segment.setUint32(be.byteOffset,nt|br<<2),be.segment.setUint32(be.byteOffset+4,Cr|gi<<3)}function rP(Q,M,ge){let be=Vl.STRUCT,Le=Q,nt=eW(M),br=M.pointerLength;ge.segment.setUint32(ge.byteOffset,be|Le<<2),ge.segment.setUint16(ge.byteOffset+4,nt),ge.segment.setUint16(ge.byteOffset+6,br)}function BN(Q,M,ge){if(tS(M))return;let be=GT(M);if((be.segment.getUint32(be.byteOffset)&A7e)!==Q)throw new Error(Sl(hyt,M,Q));if(ge!==void 0&&(be.segment.getUint32(be.byteOffset+4)&D7e)!==ge)throw new Error(Sl(gyt,M,eo[ge]))}function $ye(Q,M){let ge=QX(Q);if(ge<0)return;let be=Q.segment.message._capnp.capTable;if(!be)return;let Le=be[ge];if(!Le)return;let nt=M.segment.message.addCap(Le);HX(nt,M)}function Hye(Q,M){if(M._capnp.depthLimit<=0)throw new Error(Oye);let ge=qo(Q),be=tP(Q),Le=WN(Q),nt,br,Cr;if(be===eo.POINTER){Cr=M.segment.allocate(Le<<3);for(let Xi=0;Xi<Le;Xi++){let Ui=new p_(ge.segment,ge.byteOffset+(Xi<<3),Q._capnp.depthLimit-1),Ga=new p_(Cr.segment,Cr.byteOffset+(Xi<<3),M._capnp.depthLimit-1);t0(Ui,Ga)}}else if(be===eo.COMPOSITE){if(nt=Wye(cW(Q)),br=Y1(nt),Cr=M.segment.allocate(Y1(nt)*Le+8),Cr.segment.copyWord(Cr.byteOffset,ge.segment,ge.byteOffset-8),nt.dataByteLength>0){let Xi=u8(nt)*Le;Cr.segment.copyWords(Cr.byteOffset+8,ge.segment,ge.byteOffset,Xi)}for(let Xi=0;Xi<Le;Xi++)for(let Ui=0;Ui<nt.pointerLength;Ui++){let Ga=Xi*br+nt.dataByteLength+(Ui<<3),qe=new p_(ge.segment,ge.byteOffset+Ga,Q._capnp.depthLimit-1),Bl=new p_(Cr.segment,Cr.byteOffset+Ga+8,M._capnp.depthLimit-1);t0(qe,Bl)}}else{let Xi=e0(be===eo.BIT?Le+7>>>3:f8(be)*Le),Ui=Xi>>>3;Cr=M.segment.allocate(Xi),Cr.segment.copyWords(Cr.byteOffset,ge.segment,ge.byteOffset,Ui)}let gi=eS(Cr.segment,Cr.byteOffset,M);LN(gi.offsetWords,be,Le,gi.pointer,nt)}function Qye(Q,M){if(M._capnp.depthLimit<=0)throw new Error(Oye);let ge=qo(Q),be=dw(Q),Le=eW(be),nt=M.segment.allocate(Y1(be));nt.segment.copyWords(nt.byteOffset,ge.segment,ge.byteOffset,Le);for(let Cr=0;Cr<be.pointerLength;Cr++){let gi=be.dataByteLength+Cr*8,Xi=new p_(ge.segment,ge.byteOffset+gi,Q._capnp.depthLimit-1),Ui=new p_(nt.segment,nt.byteOffset+gi,M._capnp.depthLimit-1);t0(Xi,Ui)}if(M._capnp.compositeList)return;let br=eS(nt.segment,nt.byteOffset,M);rP(br.offsetWords,be,br.pointer)}function Kye(Q,M){if(Q._capnp.traversalLimit-=8,Q._capnp.traversalLimit<=0)throw new Error(Sl(myt,M))}var FN=class{constructor(M,ge){this.pointer=M,this.offsetWords=ge}},Vl=(Q=>(Q[Q.STRUCT=0]="STRUCT",Q[Q.LIST=1]="LIST",Q[Q.FAR=2]="FAR",Q[Q.OTHER=3]="OTHER",Q))(Vl||{}),p_=class{static _capnp={displayName:"Pointer"};_capnp;byteOffset;segment;constructor(M,ge,be=UX){if(this._capnp={compositeList:!1,depthLimit:be},this.segment=M,this.byteOffset=ge,be<1)throw new Error(Sl(Oye,this));if(Kye(M.message,this),ge<0||ge>M.byteLength)throw new Error(Sl(fyt,ge))}[Symbol.toStringTag](){return Sl("Pointer_%d",this.segment.id)}toString(){return Sl("->%d@%a%s",this.segment.id,this.byteOffset,Bye(this))}},jd=class Q extends p_{static _capnp={displayName:"List<Generic>",size:eo.VOID};constructor(M,ge,be){return super(M,ge,be),new Proxy(this,Q.#e)}static#e={get(M,ge,be){let Le=Reflect.get(M,ge,be);if(Le!==void 0)return Le;if(typeof ge=="string")return M.get(+ge)}};get length(){return WN(this)}toArray(){let{length:M}=this,ge=Array.from({length:M});for(let be=0;be<M;be++)ge[be]=this.at(be);return ge}get(M){throw new TypeError("Cannot get from a generic list.")}set(M,ge){throw new TypeError("Cannot set on a generic list.")}at(M){return this.get(M<0?this.length+M:M)}concat(M){let{length:ge}=this,be=M.length,Le=Array.from({length:ge+be});for(let nt=0;nt<ge;nt++)Le[nt]=this.at(nt);for(let nt=0;nt<be;nt++)Le[nt+ge]=M.at(nt);return Le}some(M,ge){for(let be=0;be<this.length;be++)if(M.call(ge,this.at(be),be,this))return!0;return!1}filter(M,ge){let be=[];for(let Le=0;Le<this.length;Le++){let nt=this.at(Le);M.call(ge,nt,Le,this)&&be.push(nt)}return be}find(M,ge){for(let be=0;be<this.length;be++){let Le=this.at(be);if(M.call(ge,Le,be,this))return Le}}findIndex(M,ge){for(let be=0;be<this.length;be++){let Le=this.at(be);if(M.call(ge,Le,be,this))return be}return-1}forEach(M,ge){for(let be=0;be<this.length;be++)M.call(ge,this.at(be),be,this)}map(M,ge){let{length:be}=this,Le=Array.from({length:be});for(let nt=0;nt<be;nt++)Le[nt]=M.call(ge,this.at(nt),nt,this);return Le}flatMap(M,ge){let be=[];for(let Le=0;Le<this.length;Le++){let nt=M.call(ge,this.at(Le),Le,this);be.push(...Array.isArray(nt)?nt:[nt])}return be}every(M,ge){for(let be=0;be<this.length;be++)if(!M.call(ge,this.at(be),be,this))return!1;return!0}reduce(M,ge){let be=0,Le;for(ge===void 0?(Le=this.at(0),be++):Le=ge;be<this.length;be++)Le=M(Le,this.at(be),be,this);return Le}reduceRight(M,ge){let be=this.length-1,Le;for(ge===void 0?(Le=this.at(be),be--):Le=ge;be>=0;be--)Le=M(Le,this.at(be),be,this);return Le}slice(M=0,ge){let be=ge?Math.min(this.length,ge):this.length,Le=Array.from({length:be-M});for(let nt=M;nt<be;nt++)Le[nt]=this.at(nt);return Le}join(M){return this.toArray().join(M)}toReversed(){return this.toArray().reverse()}toSorted(M){return this.toArray().sort(M)}toSpliced(M,ge,...be){return this.toArray().splice(M,ge,...be)}fill(M,ge,be){let{length:Le}=this,nt=Math.max(ge??0,0),br=Math.min(be??Le,Le);for(let Cr=nt;Cr<br;Cr++)this.set(Cr,M);return this}copyWithin(M,ge,be){let{length:Le}=this,nt=be??Le,br=ge<0?Math.max(Le+ge,0):ge,Cr=M<0?Math.max(Le+M,0):M,gi=Math.min(nt-br,Le-Cr);for(let Xi=0;Xi<gi;Xi++)this.set(Cr+Xi,this.at(br+Xi));return this}keys(){return Array.from({length:this.length},(M,ge)=>ge)[Symbol.iterator]()}values(){return this.toArray().values()}entries(){return this.toArray().entries()}flat(M){return this.toArray().flat(M)}with(M,ge){return this.toArray().with(M,ge)}includes(M,ge){throw new Error(Y9)}findLast(M,ge){throw new Error(Y9)}findLastIndex(M,ge){throw new Error(Y9)}indexOf(M,ge){throw new Error(Y9)}lastIndexOf(M,ge){throw new Error(Y9)}pop(){throw new Error(RN)}push(...M){throw new Error(RN)}reverse(){throw new Error(RN)}shift(){throw new Error(RN)}unshift(...M){throw new Error(RN)}splice(M,ge,...be){throw new Error(RN)}sort(M){throw new Error(RN)}get[Symbol.unscopables](){return Array.prototype[Symbol.unscopables]}[Symbol.iterator](){return this.values()}toJSON(){return this.toArray()}toString(){return this.join(",")}toLocaleString(M,ge){return this.toString()}[Symbol.toStringTag](){return"[object Array]"}static[Symbol.toStringTag](){return this._capnp.displayName}};function uW(Q,M,ge,be){let Le;switch(Q){case eo.BIT:{Le=ge.segment.allocate(Math.ceil(M/8));break}case eo.BYTE:case eo.BYTE_2:case eo.BYTE_4:case eo.BYTE_8:case eo.POINTER:{Le=ge.segment.allocate(M*f8(Q));break}case eo.COMPOSITE:{if(be===void 0)throw new Error(Sl(cyt));be=Wye(be);let br=Y1(be)*M;Le=ge.segment.allocate(br+8),rP(M,be,Le);break}case eo.VOID:{LN(0,Q,M,ge);return}default:throw new Error(Sl(WX,Q))}let nt=eS(Le.segment,Le.byteOffset,ge);LN(nt.offsetWords,Q,M,nt.pointer,be)}var _8=class extends jd{static fromPointer(M){return BN(Vl.LIST,M,eo.BYTE),this._fromPointerUnchecked(M)}static _fromPointerUnchecked(M){return new this(M.segment,M.byteOffset,M._capnp.depthLimit)}copyBuffer(M){let ge=qo(this),be=this.length,Le=M.byteLength,nt=M instanceof ArrayBuffer?new Uint8Array(M):new Uint8Array(M.buffer,M.byteOffset,Math.min(be,Le)),br=new Uint8Array(ge.segment.buffer,ge.byteOffset,this.length);br.set(nt),be>Le&&br.fill(0,Le,be)}get(M){let ge=qo(this);return ge.segment.getUint8(ge.byteOffset+M)}set(M,ge){let be=qo(this);be.segment.setUint8(be.byteOffset+M,ge)}toArrayBuffer(){let M=qo(this);return M.segment.buffer.slice(M.byteOffset,M.byteOffset+this.length)}toDataView(){let M=qo(this);return new DataView(M.segment.buffer,M.byteOffset,this.length)}[Symbol.toStringTag](){return`Data_${super.toString()}`}toUint8Array(){let M=qo(this);return new Uint8Array(M.segment.buffer,M.byteOffset,this.length)}},Syt=new TextEncoder,Tyt=new TextDecoder,eP=class extends jd{static fromPointer(M){return BN(Vl.LIST,M,eo.BYTE),kyt(M)}get(M=0){if(tS(this))return"";let ge=qo(this);return Tyt.decode(new Uint8Array(ge.segment.buffer,ge.byteOffset+M,this.length-M))}get length(){return super.length-1}set(M,ge){let be=Syt.encode(ge),Le=be.byteLength+M,nt,br;if(!tS(this)){nt=qo(this);let gi=Math.min(this.length,M);br=new Uint8Array(nt.segment.buffer.slice(nt.byteOffset,nt.byteOffset+gi)),Z1(this)}uW(eo.BYTE,Le+1,this),nt=qo(this);let Cr=new Uint8Array(nt.segment.buffer,nt.byteOffset,Le);br&&Cr.set(br),Cr.set(be,M)}toString(){return this.get()}toJSON(){return this.get()}[Symbol.toPrimitive](){return this.get()}[Symbol.toStringTag](){return`Text_${super.toString()}`}};function kyt(Q){return new eP(Q.segment,Q.byteOffset,Q._capnp.depthLimit)}var Ou=class extends p_{static _capnp={displayName:"Struct"};constructor(M,ge,be=UX,Le){super(M,ge,be),this._capnp.compositeIndex=Le,this._capnp.compositeList=Le!==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()}`}},Aye=class extends Ou{static _capnp={displayName:"AnyStruct",id:"0",size:new Cu(0,0)}},tW=class{struct(){return Promise.resolve(this.structSync())}},rW=class extends tW{constructor(M){super(),this.err=M}structSync(){throw this.err}pipelineCall(M,ge){return this}pipelineClose(M){throw this.err}},GX=class{constructor(M){this.err=M}call(M){return new rW(this.err)}close(){throw this.err}};function xyt(Q){return Q??new GX(new Error(jye))}var nu=new DataView(new ArrayBuffer(8));function zN(Q,M){if(M._capnp.compositeIndex!==void 0)throw new Error(Sl(lyt,M));Z1(M);let ge=M.segment.allocate(Y1(Q)),be=eS(ge.segment,ge.byteOffset,M);rP(be.offsetWords,Q,be.pointer)}function B7e(Q,M,ge){let be=XX(Q,M,ge);return zN(M._capnp.size,be),be}function nP(Q,M){let{pointerLength:ge}=m8(M);if(Q<0||Q>=ge)throw new Error(Sl(dyt,M,Q,ge))}function z7e(Q,M){return KX(d8(Q,M))}function KX(Q){let M=null,ge=QX(Q),{capTable:be}=Q.segment.message._capnp;return be&&ge>=0&&ge<be.length&&(M=be[ge]),xyt(M)}function _W(Q,M){let ge=m8(M),be=qo(M),Le=M.segment.allocate(Y1(Q));Le.segment.copyWords(Le.byteOffset,be.segment,be.byteOffset,Math.min(eW(ge),eW(Q)));let nt=eS(Le.segment,Le.byteOffset,M);rP(nt.offsetWords,Q,nt.pointer);for(let br=0;br<Math.min(ge.pointerLength,Q.pointerLength);br++){let Cr=new p_(be.segment,be.byteOffset+ge.dataByteLength+br*8);if(tS(Cr))continue;let gi=GT(Cr),Xi=qo(Cr),Ui=new p_(Le.segment,Le.byteOffset+Q.dataByteLength+br*8);Tb(Cr)===Vl.LIST&&tP(Cr)===eo.COMPOSITE&&(Xi.byteOffset-=8);let Ga=eS(Xi.segment,Xi.byteOffset,Ui),qe=gi.segment.getUint8(gi.byteOffset)&3,Bl=gi.segment.getUint32(gi.byteOffset+4);Ga.pointer.segment.setUint32(Ga.pointer.byteOffset,qe|Ga.offsetWords<<2),Ga.pointer.segment.setUint32(Ga.pointer.byteOffset+4,Bl)}be.segment.fillZeroWords(be.byteOffset,u8(ge))}function Xye(Q,M){return new Q(M.segment,M.byteOffset,M._capnp.depthLimit,M._capnp.compositeIndex)}function J7e(Q,M,ge){let be=Math.floor(Q/8),Le=1<<Q%8;Kf(be,1,M);let nt=Qf(M),br=nt.segment.getUint8(nt.byteOffset+be);if(ge===void 0)return(br&Le)!==0;let Cr=ge.getUint8(0);return((br^Cr)&Le)!==0}function G7e(Q,M,ge){nP(Q,M);let be=iP(M);be.byteOffset+=Q*8;let Le=new _8(be.segment,be.byteOffset,M._capnp.depthLimit-1);return tS(Le)&&(ge?t0(ge,Le):uW(eo.BYTE,0,Le)),Le}function Qf(Q){return qo(Q)}function U7e(Q,M,ge){Kf(Q,4,M);let be=Qf(M);if(ge===void 0)return be.segment.getFloat32(be.byteOffset+Q);let Le=be.segment.getUint32(be.byteOffset+Q)^ge.getUint32(0,!0);return nu.setUint32(0,Le,Fc),nu.getFloat32(0,Fc)}function V7e(Q,M,ge){Kf(Q,8,M);let be=Qf(M);if(ge!==void 0){let Le=be.segment.getUint32(be.byteOffset+Q)^ge.getUint32(0,!0),nt=be.segment.getUint32(be.byteOffset+Q+4)^ge.getUint32(4,!0);return nu.setUint32(0,Le,Fc),nu.setUint32(4,nt,Fc),nu.getFloat64(0,Fc)}return be.segment.getFloat64(be.byteOffset+Q)}function q7e(Q,M,ge){Kf(Q,2,M);let be=Qf(M);if(ge===void 0)return be.segment.getInt16(be.byteOffset+Q);let Le=be.segment.getUint16(be.byteOffset+Q)^ge.getUint16(0,!0);return nu.setUint16(0,Le,Fc),nu.getInt16(0,Fc)}function $7e(Q,M,ge){Kf(Q,4,M);let be=Qf(M);if(ge===void 0)return be.segment.getInt32(be.byteOffset+Q);let Le=be.segment.getUint32(be.byteOffset+Q)^ge.getUint16(0,!0);return nu.setUint32(0,Le,Fc),nu.getInt32(0,Fc)}function H7e(Q,M,ge){Kf(Q,8,M);let be=Qf(M);if(ge!==void 0){let Le=be.segment.getUint32(be.byteOffset+Q)^ge.getUint32(0,!0),nt=be.segment.getUint32(be.byteOffset+Q+4)^ge.getUint32(4,!0);return nu.setUint32(Fc?0:4,Le,Fc),nu.setUint32(Fc?4:0,nt,Fc),nu.getBigInt64(0,Fc)}return be.segment.getInt64(be.byteOffset+Q)}function Q7e(Q,M,ge){Kf(Q,1,M);let be=Qf(M);if(ge===void 0)return be.segment.getInt8(be.byteOffset+Q);let Le=be.segment.getUint8(be.byteOffset+Q)^ge.getUint8(0);return nu.setUint8(0,Le),nu.getInt8(0)}function K7e(Q,M,ge,be){nP(Q,ge);let Le=iP(ge);Le.byteOffset+=Q*8;let nt=new M(Le.segment,Le.byteOffset,ge._capnp.depthLimit-1);if(tS(nt))be?t0(be,nt):uW(M._capnp.size,0,nt,M._capnp.compositeSize);else if(M._capnp.compositeSize!==void 0){let br=cW(nt),Cr=M._capnp.compositeSize;if(Cr.dataByteLength>br.dataByteLength||Cr.pointerLength>br.pointerLength){let gi=qo(nt),Xi=WN(nt),Ui=nt.segment.allocate(Y1(Cr)*Xi+8),Ga=eS(Ui.segment,Ui.byteOffset,nt);LN(Ga.offsetWords,M._capnp.size,Xi,Ga.pointer,Cr),rP(Xi,Cr,Ui),Ui.byteOffset+=8;for(let qe=0;qe<Xi;qe++){let Bl=gi.byteOffset+qe*Y1(br),Dr=Ui.byteOffset+qe*Y1(Cr);Ui.segment.copyWords(Dr,gi.segment,Bl,u8(br));for(let or=0;or<br.pointerLength;or++){let rh=new p_(gi.segment,Bl+br.dataByteLength+or*8),po=new p_(Ui.segment,Dr+Cr.dataByteLength+or*8),vm=GT(rh),hw=qo(rh);Tb(rh)===Vl.LIST&&tP(rh)===eo.COMPOSITE&&(hw.byteOffset-=8);let qT=eS(hw.segment,hw.byteOffset,po),HN=vm.segment.getUint8(vm.byteOffset)&3,Oi=vm.segment.getUint32(vm.byteOffset+4);qT.pointer.segment.setUint32(qT.pointer.byteOffset,HN|qT.offsetWords<<2),qT.pointer.segment.setUint32(qT.pointer.byteOffset+4,Oi)}}gi.segment.fillZeroWords(gi.byteOffset,u8(br)*Xi)}}return nt}function d8(Q,M){nP(Q,M);let ge=iP(M);return ge.byteOffset+=Q*8,new p_(ge.segment,ge.byteOffset,M._capnp.depthLimit-1)}function XX(Q,M,ge){nP(Q,ge);let be=iP(ge);return be.byteOffset+=Q*8,new M(be.segment,be.byteOffset,ge._capnp.depthLimit-1)}function iP(Q){let M=qo(Q);return M.byteOffset+=e0(m8(Q).dataByteLength),M}function m8(Q){if(Q._capnp.compositeIndex!==void 0){let M=qo(Q,!0);return M.byteOffset-=8,jN(M)}return dw(Q)}function X7e(Q,M,ge,be){let Le=XX(Q,M,ge);if(tS(Le))be?t0(be,Le):zN(M._capnp.size,Le);else{BN(Vl.STRUCT,Le);let nt=dw(Le);(nt.dataByteLength<M._capnp.size.dataByteLength||nt.pointerLength<M._capnp.size.pointerLength)&&_W(M._capnp.size,Le)}return Le}function Y7e(Q,M,ge){let be=eP.fromPointer(d8(Q,M));return tS(be)&&ge&&be.set(0,ge),be.get(0)}function Z7e(Q,M,ge){Kf(Q,2,M);let be=Qf(M);return ge===void 0?be.segment.getUint16(be.byteOffset+Q):be.segment.getUint16(be.byteOffset+Q)^ge.getUint16(0,!0)}function e5e(Q,M,ge){Kf(Q,4,M);let be=Qf(M);return ge===void 0?be.segment.getUint32(be.byteOffset+Q):be.segment.getUint32(be.byteOffset+Q)^ge.getUint32(0,!0)}function t5e(Q,M,ge){Kf(Q,8,M);let be=Qf(M);if(ge!==void 0){let Le=be.segment.getUint32(be.byteOffset+Q)^ge.getUint32(0,!0),nt=be.segment.getUint32(be.byteOffset+Q+4)^ge.getUint32(4,!0);return nu.setUint32(Fc?0:4,Le,Fc),nu.setUint32(Fc?4:0,nt,Fc),nu.getBigUint64(0,Fc)}return be.segment.getUint64(be.byteOffset+Q)}function r5e(Q,M,ge){Kf(Q,1,M);let be=Qf(M);return ge===void 0?be.segment.getUint8(be.byteOffset+Q):be.segment.getUint8(be.byteOffset+Q)^ge.getUint8(0)}function n5e(Q,M,ge){nP(Q,ge);let be=iP(ge);be.byteOffset+=Q*8;let Le=new _8(be.segment,be.byteOffset,ge._capnp.depthLimit-1);return Z1(Le),uW(eo.BYTE,M,Le),Le}function i5e(Q,M,ge,be){nP(Q,be);let Le=iP(be);Le.byteOffset+=Q*8;let nt=new M(Le.segment,Le.byteOffset,be._capnp.depthLimit-1);return Z1(nt),uW(M._capnp.size,ge,nt,M._capnp.compositeSize),nt}function s5e(Q,M,ge,be){let Le=Math.floor(Q/8),nt=1<<Q%8;Kf(Le,1,ge);let br=Qf(ge),Cr=br.segment.getUint8(br.byteOffset+Le);be!==void 0&&(M=(be.getUint8(0)&nt)===0?M:!M),br.segment.setUint8(br.byteOffset+Le,M?Cr|nt:Cr&~nt)}function a5e(Q,M,ge,be){Kf(Q,4,ge);let Le=Qf(ge);if(be!==void 0){nu.setFloat32(0,M,Fc);let nt=nu.getUint32(0,Fc)^be.getUint32(0,!0);Le.segment.setUint32(Le.byteOffset+Q,nt);return}Le.segment.setFloat32(Le.byteOffset+Q,M)}function o5e(Q,M,ge,be){Kf(Q,8,ge);let Le=Qf(ge);if(be!==void 0){nu.setFloat64(0,M,Fc);let nt=nu.getUint32(0,Fc)^be.getUint32(0,!0),br=nu.getUint32(4,Fc)^be.getUint32(4,!0);Le.segment.setUint32(Le.byteOffset+Q,nt),Le.segment.setUint32(Le.byteOffset+Q+4,br);return}Le.segment.setFloat64(Le.byteOffset+Q,M)}function c5e(Q,M,ge,be){Kf(Q,2,ge);let Le=Qf(ge);if(be!==void 0){nu.setInt16(0,M,Fc);let nt=nu.getUint16(0,Fc)^be.getUint16(0,!0);Le.segment.setUint16(Le.byteOffset+Q,nt);return}Le.segment.setInt16(Le.byteOffset+Q,M)}function l5e(Q,M,ge,be){Kf(Q,4,ge);let Le=Qf(ge);if(be!==void 0){nu.setInt32(0,M,Fc);let nt=nu.getUint32(0,Fc)^be.getUint32(0,!0);Le.segment.setUint32(Le.byteOffset+Q,nt);return}Le.segment.setInt32(Le.byteOffset+Q,M)}function u5e(Q,M,ge,be){Kf(Q,8,ge);let Le=Qf(ge);if(be!==void 0){nu.setBigInt64(0,M,Fc);let nt=nu.getUint32(Fc?0:4,Fc)^be.getUint32(0,!0),br=nu.getUint32(Fc?4:0,Fc)^be.getUint32(4,!0);Le.segment.setUint32(Le.byteOffset+Q,nt),Le.segment.setUint32(Le.byteOffset+Q+4,br);return}Le.segment.setInt64(Le.byteOffset+Q,M)}function _5e(Q,M,ge,be){Kf(Q,1,ge);let Le=Qf(ge);if(be!==void 0){nu.setInt8(0,M);let nt=nu.getUint8(0)^be.getUint8(0);Le.segment.setUint8(Le.byteOffset+Q,nt);return}Le.segment.setInt8(Le.byteOffset+Q,M)}function f5e(Q,M,ge){eP.fromPointer(d8(Q,ge)).set(0,M)}function p5e(Q,M,ge,be){Kf(Q,2,ge);let Le=Qf(ge);be!==void 0&&(M^=be.getUint16(0,!0)),Le.segment.setUint16(Le.byteOffset+Q,M)}function d5e(Q,M,ge,be){Kf(Q,4,ge);let Le=Qf(ge);be!==void 0&&(M^=be.getUint32(0,!0)),Le.segment.setUint32(Le.byteOffset+Q,M)}function m5e(Q,M,ge,be){Kf(Q,8,ge);let Le=Qf(ge);if(be!==void 0){nu.setBigUint64(0,M,Fc);let nt=nu.getUint32(Fc?0:4,Fc)^be.getUint32(0,!0),br=nu.getUint32(Fc?4:0,Fc)^be.getUint32(4,!0);Le.segment.setUint32(Le.byteOffset+Q,nt),Le.segment.setUint32(Le.byteOffset+Q+4,br);return}Le.segment.setUint64(Le.byteOffset+Q,M)}function g5e(Q,M,ge,be){Kf(Q,1,ge);let Le=Qf(ge);be!==void 0&&(M^=be.getUint8(0)),Le.segment.setUint8(Le.byteOffset+Q,M)}function h5e(Q,M,ge,be){if(M!==ge)throw new Error(Sl(_yt,be,Q,M,ge))}function Kf(Q,M,ge){let{dataByteLength:be}=m8(ge);if(Q<0||M<0||Q+M>be)throw new Error(Sl(pyt,ge,M,Q,be))}var UT=(Q=>(Q[Q.SINGLE_SEGMENT=0]="SINGLE_SEGMENT",Q[Q.MULTI_SEGMENT=1]="MULTI_SEGMENT",Q))(UT||{}),YX=class{buffer;id;constructor(M,ge){this.id=M,this.buffer=ge}},JN=class{constructor(M=[new ArrayBuffer(nW)]){this.buffers=M;let ge=M.length;for(;--ge>=0;)if((M[ge].byteLength&7)!==0)throw new Error(Sl(Lye,M[ge].byteLength))}static allocate=Cyt;static getBuffer=wyt;static getNumSegments=y5e;kind=UT.MULTI_SEGMENT;toString(){return Sl("MultiSegmentArena_segments:%d",y5e(this))}};function Cyt(Q,M){let ge=new ArrayBuffer(e0(Math.max(Q,nW)));return M.buffers.push(ge),new YX(M.buffers.length-1,ge)}function wyt(Q,M){if(Q<0||Q>=M.buffers.length)throw new Error(Sl(M7e,Q));return M.buffers[Q]}function y5e(Q){return Q.buffers.length}var sP=class{static allocate=Iyt;static getBuffer=Dyt;static getNumSegments=Pyt;buffer;kind=UT.SINGLE_SEGMENT;constructor(M=new ArrayBuffer(nW)){if((M.byteLength&7)!==0)throw new Error(Sl(Lye,M.byteLength));this.buffer=M}toString(){return Sl("SingleSegmentArena_len:%x",this.buffer.byteLength)}};function Iyt(Q,M,ge){let be=M.length>0?M[0].buffer:ge.buffer;return Q=Q<Eye?Eye:e0(Q),ge.buffer=new ArrayBuffer(be.byteLength+Q),new Float64Array(ge.buffer).set(new Float64Array(be)),new YX(0,ge.buffer)}function Dyt(Q,M){if(Q!==0)throw new Error(Sl(N7e,Q));return M.buffer}function Pyt(){return 1}var mw=class{static allocate=Ayt;static copy=Eyt;static getBuffer=Nyt;static getNumSegments=Myt};function Ayt(Q,M,ge){switch(ge.kind){case UT.MULTI_SEGMENT:return JN.allocate(Q,ge);case UT.SINGLE_SEGMENT:return sP.allocate(Q,M,ge);default:return sW(ge)}}function Eyt(Q){switch(Q.kind){case UT.MULTI_SEGMENT:{let M=Q.buffers.length,ge=Array.from({length:M});for(;--M>=0;)ge[M]=Q.buffers[M].slice(0);return new JN(ge)}case UT.SINGLE_SEGMENT:return new sP(Q.buffer.slice(0));default:return sW(Q)}}function Nyt(Q,M){switch(M.kind){case UT.MULTI_SEGMENT:return JN.getBuffer(Q,M);case UT.SINGLE_SEGMENT:return sP.getBuffer(Q,M);default:return sW(M)}}function Myt(Q){switch(Q.kind){case UT.MULTI_SEGMENT:return JN.getNumSegments(Q);case UT.SINGLE_SEGMENT:return sP.getNumSegments();default:return sW(Q)}}function Ryt(Q){let M=Q-(Q>>1&1431655765);return M=(M&858993459)+(M>>2&858993459),(M+(M>>4)&252645135)*16843009>>24}function Fyt(Q,M,ge,be,Le,nt,br,Cr){return(Q===0?0:1)|(M===0?0:2)|(ge===0?0:4)|(be===0?0:8)|(Le===0?0:16)|(nt===0?0:32)|(br===0?0:64)|(Cr===0?0:128)}function Oyt(Q){let M=new Uint8Array(Q),ge=0,be=119;for(let Le=0;Le<M.byteLength;){let nt=M[Le];be===0?(ge+=nt,Le++,be=119):be===255?(ge+=nt,Le+=nt*8+1,be=119):(ge++,Le+=Ryt(nt)+1,be=nt)}return ge*8}function Lyt(Q,M,ge,be,Le,nt,br,Cr){return(Q===0?1:0)+(M===0?1:0)+(ge===0?1:0)+(be===0?1:0)+(Le===0?1:0)+(nt===0?1:0)+(br===0?1:0)+(Cr===0?1:0)}function v5e(Q,M=0,ge){if(Q.byteLength%8!==0)throw new Error(E7e);let be=new Uint8Array(Q,M,ge),Le=[],nt=119,br=0,Cr=0;for(let gi=0;gi<be.byteLength;gi+=8){let Xi=be[gi],Ui=be[gi+1],Ga=be[gi+2],qe=be[gi+3],Bl=be[gi+4],Dr=be[gi+5],or=be[gi+6],rh=be[gi+7],po=Fyt(Xi,Ui,Ga,qe,Bl,Dr,or,rh),vm=!0;switch(nt){case 0:{po!==0||Cr>=255?(Le.push(Cr),Cr=0,vm=!1):Cr++;break}case 255:{Lyt(Xi,Ui,Ga,qe,Bl,Dr,or,rh)>=P7e||Cr>=255?(Le[br]=Cr,Cr=0,vm=!1):(Le.push(Xi,Ui,Ga,qe,Bl,Dr,or,rh),Cr++);break}default:{vm=!1;break}}vm||(Le.push(po),nt=po,Xi!==0&&Le.push(Xi),Ui!==0&&Le.push(Ui),Ga!==0&&Le.push(Ga),qe!==0&&Le.push(qe),Bl!==0&&Le.push(Bl),Dr!==0&&Le.push(Dr),or!==0&&Le.push(or),rh!==0&&Le.push(rh),po===255&&(br=Le.length,Le.push(0)))}return nt===0?Le.push(Cr):nt===255&&(Le[br]=Cr),new Uint8Array(Le).buffer}function jyt(Q){let M=new Uint8Array(Q),ge=new Uint8Array(new ArrayBuffer(Oyt(Q))),be=119;for(let Le=0,nt=0;Le<M.byteLength;){let br=M[Le];if(be===0)nt+=br*8,Le++,be=119;else if(be===255){let Cr=br*8;ge.set(M.subarray(Le+1,Le+1+Cr),nt),nt+=Cr,Le+=1+Cr,be=119}else{Le++;for(let Cr=1;Cr<=128;Cr<<=1)(br&Cr)!==0&&(ge[nt]=M[Le++]),nt++;be=br}}return ge.buffer}var fW=class{constructor(M,ge,be,Le=0){this.id=M,this.message=ge,this.message=ge,this.buffer=be,this._dv=new DataView(be),this.byteOffset=0,this.byteLength=Le}buffer;byteLength;byteOffset;[Symbol.toStringTag]="Segment";_dv;allocate(M){let ge=this;if(M=e0(M),M>Nye-8)throw new Error(Sl(F7e,M));ge.hasCapacity(M)||(ge=ge.message.allocateSegment(M));let be=ge.byteLength;return ge.byteLength+=M,new p_(ge,be)}copyWord(M,ge,be){let Le=ge._dv.getFloat64(be,Fc);this._dv.setFloat64(M,Le,Fc)}copyWords(M,ge,be,Le){let nt=new Float64Array(this.buffer,M,Le),br=new Float64Array(ge.buffer,be,Le);nt.set(br)}fillZeroWords(M,ge){new Float64Array(this.buffer,M,ge).fill(0)}getBigInt64(M,ge){return this._dv.getBigInt64(M,ge)}getBigUint64(M,ge){return this._dv.getBigUint64(M,ge)}getCapacity(){return this.buffer.byteLength}getFloat32(M){return this._dv.getFloat32(M,!0)}getFloat64(M){return this._dv.getFloat64(M,!0)}getInt16(M){return this._dv.getInt16(M,!0)}getInt32(M){return this._dv.getInt32(M,!0)}getInt64(M){return this._dv.getBigInt64(M,!0)}getInt8(M){return this._dv.getInt8(M)}getUint16(M){return this._dv.getUint16(M,!0)}getUint32(M){return this._dv.getUint32(M,!0)}getUint64(M){return this._dv.getBigUint64(M,!0)}getUint8(M){return this._dv.getUint8(M)}hasCapacity(M){return this.buffer.byteLength-this.byteLength>=M}isWordZero(M){return this._dv.getFloat64(M,Fc)===0}replaceBuffer(M){if(this.buffer!==M){if(M.byteLength<this.byteLength)throw new Error(R7e);this._dv=new DataView(M),this.buffer=M}}setBigInt64(M,ge,be){this._dv.setBigInt64(M,ge,be)}setBigUint64(M,ge,be){this._dv.setBigUint64(M,ge,be)}setFloat32(M,ge){this._dv.setFloat32(M,ge,!0)}setFloat64(M,ge){this._dv.setFloat64(M,ge,!0)}setInt16(M,ge){this._dv.setInt16(M,ge,!0)}setInt32(M,ge){this._dv.setInt32(M,ge,!0)}setInt8(M,ge){this._dv.setInt8(M,ge)}setInt64(M,ge){this._dv.setBigInt64(M,ge,!0)}setUint16(M,ge){this._dv.setUint16(M,ge,!0)}setUint32(M,ge){this._dv.setUint32(M,ge,!0)}setUint64(M,ge){this._dv.setBigUint64(M,ge,!0)}setUint8(M,ge){this._dv.setUint8(M,ge)}setWordZero(M){this._dv.setFloat64(M,0,Fc)}toString(){return Sl("Segment_id:%d,off:%a,len:%a,cap:%a",this.id,this.byteLength,this.byteOffset,this.buffer.byteLength)}},GN=class{static allocateSegment=Yye;static dump=b5e;static getRoot=S5e;static getSegment=Zye;static initRoot=T5e;static readRawPointer=Uyt;static toArrayBuffer=k5e;static toPackedArrayBuffer=x5e;_capnp;constructor(M,ge=!0,be=!1){this._capnp=Wyt(M,ge,be),M&&zyt(this)}allocateSegment(M){return Yye(M,this)}copy(){return qyt(this)}dump(){return b5e(this)}getRoot(M){return S5e(M,this)}getSegment(M){return Zye(M,this)}initRoot(M){return T5e(M,this)}setRoot(M){Vyt(M,this)}toArrayBuffer(){return k5e(this)}toPackedArrayBuffer(){return x5e(this)}addCap(M){this._capnp.capTable||(this._capnp.capTable=[]);let ge=this._capnp.capTable.length;return this._capnp.capTable.push(M),ge}toString(){return`Message_arena:${this._capnp.arena}`}};function Wyt(Q,M=!0,ge=!1){if(Q===void 0)return{arena:new sP,segments:[],traversalLimit:iW};if(Gyt(Q))return{arena:Q,segments:[],traversalLimit:iW};let be=Q;return Jyt(be)&&(be=be.buffer.slice(be.byteOffset,be.byteOffset+be.byteLength)),M&&(be=jyt(be)),ge?{arena:new sP(be),segments:[],traversalLimit:iW}:{arena:new JN(Byt(be)),segments:[],traversalLimit:iW}}function Byt(Q){let M=new DataView(Q),ge=M.getUint32(0,!0)+1,be=Array.from({length:ge}),Le=4+ge*4;if(Le+=Le%8,Le+ge*4>Q.byteLength)throw new Error(Mye);for(let nt=0;nt<ge;nt++){let br=M.getUint32(4+nt*4,!0)*8;if(Le+br>Q.byteLength)throw new Error(Mye);be[nt]=Q.slice(Le,Le+br),Le+=br}return be}function zyt(Q){let M=mw.getNumSegments(Q._capnp.arena);Q._capnp.segments=Array.from({length:M});for(let ge=0;ge<M;ge++){if(ge===0&&mw.getBuffer(ge,Q._capnp.arena).byteLength<8)throw new Error(Fye);let be=mw.getBuffer(ge,Q._capnp.arena),Le=new fW(ge,Q,be,be.byteLength);Q._capnp.segments[ge]=Le}}function Jyt(Q){return Q.byteOffset!==void 0}function Gyt(Q){return Q.kind!==void 0}function Yye(Q,M){let ge=mw.allocate(Q,M._capnp.segments,M._capnp.arena),be;if(ge.id===M._capnp.segments.length)be=new fW(ge.id,M,ge.buffer),M._capnp.segments.push(be);else{if(ge.id<0||ge.id>M._capnp.segments.length)throw new Error(Sl(Rye,ge.id,M));be=M._capnp.segments[ge.id],be.replaceBuffer(ge.buffer)}return be}function b5e(Q){let M="";if(Q._capnp.segments.length===0)return`================
No Segments
================
`;for(let ge=0;ge<Q._capnp.segments.length;ge++){M+=`================
Segment #${ge}
================
`;let{buffer:be,byteLength:Le}=Q._capnp.segments[ge],nt=new Uint8Array(be,0,Le);M+=O7e(nt)}return M}function S5e(Q,M){let ge=new Q(M.getSegment(0),0);BN(Vl.STRUCT,ge);let be=dw(ge);return(be.dataByteLength<Q._capnp.size.dataByteLength||be.pointerLength<Q._capnp.size.pointerLength)&&_W(Q._capnp.size,ge),ge}function Zye(Q,M){let ge=M._capnp.segments.length;if(Q===0&&ge===0){if(mw.getNumSegments(M._capnp.arena)===0?Yye(nW,M):M._capnp.segments[0]=new fW(0,M,mw.getBuffer(0,M._capnp.arena)),!M._capnp.segments[0].hasCapacity(8))throw new Error(Fye);return M._capnp.segments[0].allocate(8),M._capnp.segments[0]}if(Q<0||Q>=ge)throw new Error(Sl(Rye,Q,M));return M._capnp.segments[Q]}function T5e(Q,M){let ge=new Q(M.getSegment(0),0);return zN(Q._capnp.size,ge),ge}function Uyt(Q){return new p_(new GN(Q).getSegment(0),0)}function Vyt(Q,M){t0(Q,new p_(M.getSegment(0),0))}function k5e(Q){let M=C5e(Q);Q._capnp.segments.length===0&&Zye(0,Q);let{segments:ge}=Q._capnp,be=M.byteLength+ge.reduce((br,Cr)=>br+e0(Cr.byteLength),0),Le=new Uint8Array(new ArrayBuffer(be)),nt=M.byteLength;Le.set(new Uint8Array(M));for(let br of ge){let Cr=e0(br.byteLength);Le.set(new Uint8Array(br.buffer,0,Cr),nt),nt+=Cr}return Le.buffer}function x5e(Q){let M=v5e(C5e(Q));Q._capnp.segments.length===0&&Q.getSegment(0);let ge=Q._capnp.segments.map(br=>v5e(br.buffer,0,e0(br.byteLength))),be=M.byteLength+ge.reduce((br,Cr)=>br+Cr.byteLength,0),Le=new Uint8Array(new ArrayBuffer(be)),nt=M.byteLength;Le.set(new Uint8Array(M));for(let br of ge)Le.set(new Uint8Array(br),nt),nt+=br.byteLength;return Le.buffer}function C5e(Q){let{length:M}=Q._capnp.segments;if(M===0)return new Float64Array(1).buffer;let ge=4+M*4+(1-M%2)*4,be=new DataView(new ArrayBuffer(ge));be.setUint32(0,M-1,!0);for(let[Le,nt]of Q._capnp.segments.entries())be.setUint32(Le*4+4,nt.byteLength/8,!0);return be.buffer}function qyt(Q){return new GN(mw.copy(Q._capnp.arena))}function VT(Q){return class extends jd{static _capnp={compositeSize:Q._capnp.size,displayName:`List<${Q._capnp.displayName}>`,size:eo.COMPOSITE};get(M){return new Q(this.segment,this.byteOffset,this._capnp.depthLimit-1,M)}set(M,ge){t0(ge,this.get(M))}[Symbol.toStringTag](){return`Composite_${super.toString()},cls:${Q.toString()}`}}}function Rx(Q,M){return ge=>{let be=new DataView(new ArrayBuffer(Q));return M.call(be,0,ge,!0),be}}var $yt=Rx(4,DataView.prototype.setFloat32),Hyt=Rx(8,DataView.prototype.setFloat64),Qyt=Rx(2,DataView.prototype.setInt16),Kyt=Rx(4,DataView.prototype.setInt32),Xyt=Rx(8,DataView.prototype.setBigInt64),Yyt=Rx(1,DataView.prototype.setInt8),Zyt=Rx(2,DataView.prototype.setUint16),evt=Rx(4,DataView.prototype.setUint32),tvt=Rx(8,DataView.prototype.setBigUint64),rvt=Rx(1,DataView.prototype.setUint8);var pW=class extends p_{static _capnp={displayName:"Interface"};static getCapID=eve;static getAsInterface=w5e;static isInterface=ivt;static getClient=I5e;constructor(M,ge,be=UX){super(M,ge,be)}static fromPointer(M){return w5e(M)}getCapId(){return eve(this)}getClient(){return I5e(this)}[Symbol.for("nodejs.util.inspect.custom")](){return Sl("Interface_%d@%a,%d,limit:%x",this.segment.id,this.byteOffset,this.getCapId(),this._capnp.depthLimit)}};function w5e(Q){return Tb(Q)===Vl.OTHER?new pW(Q.segment,Q.byteOffset,Q._capnp.depthLimit):null}function ivt(Q){return Tb(Q)===Vl.OTHER}function eve(Q){return Q.segment.getUint32(Q.byteOffset)!==Vl.OTHER?-1:Q.segment.getUint32(Q.byteOffset+4)}function I5e(Q){let M=eve(Q),{capTable:ge}=Q.segment.message._capnp;return ge?ge[M]:null}var tve=class extends Ou{static _capnp={displayName:"Void",id:"0",size:new Cu(0,0)}},Me={__proto__:null,PointerAllocationResult:FN,add:JX,adopt:L7e,checkDataBounds:Kf,checkPointerBounds:nP,copyFrom:t0,copyFromInterface:$ye,copyFromList:Hye,copyFromStruct:Qye,disown:j7e,dump:Bye,erase:Z1,erasePointer:aW,followFar:oW,followFars:GT,getAs:Xye,getBit:J7e,getCapabilityId:Jye,getContent:qo,getData:G7e,getDataSection:Qf,getFarSegmentId:Gye,getFloat32:U7e,getFloat64:V7e,getInt16:q7e,getInt32:$7e,getInt64:H7e,getInt8:Q7e,getInterfaceClientOrNull:KX,getInterfaceClientOrNullAt:z7e,getInterfacePointer:QX,getList:K7e,getListByteLength:zye,getListElementByteLength:f8,getListElementSize:qX,getListLength:Uye,getOffsetWords:ON,getPointer:d8,getPointerAs:XX,getPointerSection:iP,getPointerType:p8,getSize:m8,getStruct:X7e,getStructDataWords:Vye,getStructPointerLength:qye,getStructSize:jN,getTargetCompositeListSize:cW,getTargetCompositeListTag:$X,getTargetListElementSize:tP,getTargetListLength:WN,getTargetPointerType:Tb,getTargetStructSize:dw,getText:Y7e,getUint16:Z7e,getUint32:e5e,getUint64:t5e,getUint8:r5e,initData:n5e,initList:i5e,initPointer:eS,initStruct:zN,initStructAt:B7e,isDoubleFar:lW,isNull:tS,relocateTo:W7e,resize:_W,setBit:s5e,setFarPointer:Z9,setFloat32:a5e,setFloat64:o5e,setInt16:c5e,setInt32:l5e,setInt64:u5e,setInt8:_5e,setInterfacePointer:HX,setListPointer:LN,setStructPointer:rP,setText:f5e,setUint16:p5e,setUint32:d5e,setUint64:m5e,setUint8:g5e,testWhich:h5e,trackPointerAllocation:Kye,validate:BN};function ZX(Q){return class extends jd{static _capnp={displayName:`List<${Q._capnp.displayName}>`,size:eo.POINTER};get(M){let ge=qo(this);return new Q(ge.segment,ge.byteOffset+M*8,this._capnp.depthLimit-1)}set(M,ge){t0(ge,this.get(M))}[Symbol.toStringTag](){return`Pointer_${super.toString()},cls:${Q.toString()}`}}}var J0t=ZX(p_),D5e=class extends jd{static _capnp={displayName:"List<boolean>",size:eo.BIT};get(M){let ge=1<<M%8,be=M>>>3,Le=qo(this);return(Le.segment.getUint8(Le.byteOffset+be)&ge)!==0}set(M,ge){let be=1<<M%8,Le=qo(this),nt=Le.byteOffset+(M>>>3),br=Le.segment.getUint8(nt);Le.segment.setUint8(nt,ge?br|be:br&~be)}[Symbol.toStringTag](){return`Bool_${super.toString()}`}},G0t=ZX(_8),P5e=class extends jd{static _capnp={displayName:"List<Float32>",size:eo.BYTE_4};get(M){let ge=qo(this);return ge.segment.getFloat32(ge.byteOffset+M*4)}set(M,ge){let be=qo(this);be.segment.setFloat32(be.byteOffset+M*4,ge)}[Symbol.toStringTag](){return`Float32_${super.toString()}`}},A5e=class extends jd{static _capnp={displayName:"List<Float64>",size:eo.BYTE_8};get(M){let ge=qo(this);return ge.segment.getFloat64(ge.byteOffset+M*8)}set(M,ge){let be=qo(this);be.segment.setFloat64(be.byteOffset+M*8,ge)}[Symbol.toStringTag](){return`Float64_${super.toString()}`}},E5e=class extends jd{static _capnp={displayName:"List<Int8>",size:eo.BYTE};get(M){let ge=qo(this);return ge.segment.getInt8(ge.byteOffset+M)}set(M,ge){let be=qo(this);be.segment.setInt8(be.byteOffset+M,ge)}[Symbol.toStringTag](){return`Int8_${super.toString()}`}},N5e=class extends jd{static _capnp={displayName:"List<Int16>",size:eo.BYTE_2};get(M){let ge=qo(this);return ge.segment.getInt16(ge.byteOffset+M*2)}set(M,ge){let be=qo(this);be.segment.setInt16(be.byteOffset+M*2,ge)}[Symbol.toStringTag](){return`Int16_${super.toString()}`}},M5e=class extends jd{static _capnp={displayName:"List<Int32>",size:eo.BYTE_4};get(M){let ge=qo(this);return ge.segment.getInt32(ge.byteOffset+M*4)}set(M,ge){let be=qo(this);be.segment.setInt32(be.byteOffset+M*4,ge)}[Symbol.toStringTag](){return`Int32_${super.toString()}`}},R5e=class extends jd{static _capnp={displayName:"List<Int64>",size:eo.BYTE_8};get(M){let ge=qo(this);return ge.segment.getInt64(ge.byteOffset+M*8)}set(M,ge){let be=qo(this);be.segment.setInt64(be.byteOffset+M*8,ge)}[Symbol.toStringTag](){return`Int64_${super.toString()}`}},U0t=ZX(pW),F5e=class extends jd{static _capnp={displayName:"List<Text>",size:eo.POINTER};get(M){let ge=qo(this);return ge.byteOffset+=M*8,eP.fromPointer(ge).get(0)}set(M,ge){let be=qo(this);be.byteOffset+=M*8,eP.fromPointer(be).set(0,ge)}[Symbol.toStringTag](){return`Text_${super.toString()}`}},O5e=class extends jd{static _capnp={displayName:"List<Uint8>",size:eo.BYTE};get(M){let ge=qo(this);return ge.segment.getUint8(ge.byteOffset+M)}set(M,ge){let be=qo(this);be.segment.setUint8(be.byteOffset+M,ge)}[Symbol.toStringTag](){return`Uint8_${super.toString()}`}},L5e=class extends jd{static _capnp={displayName:"List<Uint16>",size:eo.BYTE_2};get(M){let ge=qo(this);return ge.segment.getUint16(ge.byteOffset+M*2)}set(M,ge){let be=qo(this);be.segment.setUint16(be.byteOffset+M*2,ge)}[Symbol.toStringTag](){return`Uint16_${super.toString()}`}},j5e=class extends jd{static _capnp={displayName:"List<Uint32>",size:eo.BYTE_4};get(M){let ge=qo(this);return ge.segment.getUint32(ge.byteOffset+M*4)}set(M,ge){let be=qo(this);be.segment.setUint32(be.byteOffset+M*4,ge)}[Symbol.toStringTag](){return`Uint32_${super.toString()}`}},W5e=class extends jd{static _capnp={displayName:"List<Uint64>",size:eo.BYTE_8};get(M){let ge=qo(this);return ge.segment.getUint64(ge.byteOffset+M*8)}set(M,ge){let be=qo(this);be.segment.setUint64(be.byteOffset+M*8,ge)}[Symbol.toStringTag](){return`Uint64_${super.toString()}`}},V0t=ZX(tve);var q0t=globalThis.FinalizationRegistry?new FinalizationRegistry(Q=>Q()):void 0;var Q0t=BigInt("0xb042d6da9e1721ad"),pc={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},Xf=class extends Ou{static UNKNOWN=pc.UNKNOWN;static VOIDT=pc.VOIDT;static BOOLT=pc.BOOLT;static NUMBER=pc.NUMBER;static PROMISE=pc.PROMISE;static STRUCTURE=pc.STRUCTURE;static STRING=pc.STRING;static OBJECT=pc.OBJECT;static ARRAY=pc.ARRAY;static MAYBE=pc.MAYBE;static DICT=pc.DICT;static ONE_OF=pc.ONE_OF;static BUILTIN=pc.BUILTIN;static INTRINSIC=pc.INTRINSIC;static FUNCTION=pc.FUNCTION;static JSG_IMPL=pc.JSG_IMPL;static JS_BUILTIN=pc.JS_BUILTIN;static _capnp={displayName:"Type",id:"d2347ab301451a8c",size:new Cu(8,1)};get _isUnknown(){return Me.getUint16(0,this)===0}set unknown(M){Me.setUint16(0,0,this)}get _isVoidt(){return Me.getUint16(0,this)===1}set voidt(M){Me.setUint16(0,1,this)}get _isBoolt(){return Me.getUint16(0,this)===2}set boolt(M){Me.setUint16(0,2,this)}_adoptNumber(M){Me.setUint16(0,3,this),Me.adopt(M,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,eY,this)}_hasNumber(){return!Me.isNull(Me.getPointer(0,this))}_initNumber(){return Me.setUint16(0,3,this),Me.initStructAt(0,eY,this)}get _isNumber(){return Me.getUint16(0,this)===3}set number(M){Me.setUint16(0,3,this),Me.copyFrom(M,Me.getPointer(0,this))}_adoptPromise(M){Me.setUint16(0,4,this),Me.adopt(M,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,tY,this)}_hasPromise(){return!Me.isNull(Me.getPointer(0,this))}_initPromise(){return Me.setUint16(0,4,this),Me.initStructAt(0,tY,this)}get _isPromise(){return Me.getUint16(0,this)===4}set promise(M){Me.setUint16(0,4,this),Me.copyFrom(M,Me.getPointer(0,this))}_adoptStructure(M){Me.setUint16(0,5,this),Me.adopt(M,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,rY,this)}_hasStructure(){return!Me.isNull(Me.getPointer(0,this))}_initStructure(){return Me.setUint16(0,5,this),Me.initStructAt(0,rY,this)}get _isStructure(){return Me.getUint16(0,this)===5}set structure(M){Me.setUint16(0,5,this),Me.copyFrom(M,Me.getPointer(0,this))}_adoptString(M){Me.setUint16(0,6,this),Me.adopt(M,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,nY,this)}_hasString(){return!Me.isNull(Me.getPointer(0,this))}_initString(){return Me.setUint16(0,6,this),Me.initStructAt(0,nY,this)}get _isString(){return Me.getUint16(0,this)===6}set string(M){Me.setUint16(0,6,this),Me.copyFrom(M,Me.getPointer(0,this))}get _isObject(){return Me.getUint16(0,this)===7}set object(M){Me.setUint16(0,7,this)}_adoptArray(M){Me.setUint16(0,8,this),Me.adopt(M,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,sY,this)}_hasArray(){return!Me.isNull(Me.getPointer(0,this))}_initArray(){return Me.setUint16(0,8,this),Me.initStructAt(0,sY,this)}get _isArray(){return Me.getUint16(0,this)===8}set array(M){Me.setUint16(0,8,this),Me.copyFrom(M,Me.getPointer(0,this))}_adoptMaybe(M){Me.setUint16(0,9,this),Me.adopt(M,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,aY,this)}_hasMaybe(){return!Me.isNull(Me.getPointer(0,this))}_initMaybe(){return Me.setUint16(0,9,this),Me.initStructAt(0,aY,this)}get _isMaybe(){return Me.getUint16(0,this)===9}set maybe(M){Me.setUint16(0,9,this),Me.copyFrom(M,Me.getPointer(0,this))}_adoptDict(M){Me.setUint16(0,10,this),Me.adopt(M,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,oY,this)}_hasDict(){return!Me.isNull(Me.getPointer(0,this))}_initDict(){return Me.setUint16(0,10,this),Me.initStructAt(0,oY,this)}get _isDict(){return Me.getUint16(0,this)===10}set dict(M){Me.setUint16(0,10,this),Me.copyFrom(M,Me.getPointer(0,this))}_adoptOneOf(M){Me.setUint16(0,11,this),Me.adopt(M,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,dW,this)}_hasOneOf(){return!Me.isNull(Me.getPointer(0,this))}_initOneOf(){return Me.setUint16(0,11,this),Me.initStructAt(0,dW,this)}get _isOneOf(){return Me.getUint16(0,this)===11}set oneOf(M){Me.setUint16(0,11,this),Me.copyFrom(M,Me.getPointer(0,this))}_adoptBuiltin(M){Me.setUint16(0,12,this),Me.adopt(M,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,cY,this)}_hasBuiltin(){return!Me.isNull(Me.getPointer(0,this))}_initBuiltin(){return Me.setUint16(0,12,this),Me.initStructAt(0,cY,this)}get _isBuiltin(){return Me.getUint16(0,this)===12}set builtin(M){Me.setUint16(0,12,this),Me.copyFrom(M,Me.getPointer(0,this))}_adoptIntrinsic(M){Me.setUint16(0,13,this),Me.adopt(M,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,iY,this)}_hasIntrinsic(){return!Me.isNull(Me.getPointer(0,this))}_initIntrinsic(){return Me.setUint16(0,13,this),Me.initStructAt(0,iY,this)}get _isIntrinsic(){return Me.getUint16(0,this)===13}set intrinsic(M){Me.setUint16(0,13,this),Me.copyFrom(M,Me.getPointer(0,this))}_adoptFunction(M){Me.setUint16(0,14,this),Me.adopt(M,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,UN,this)}_hasFunction(){return!Me.isNull(Me.getPointer(0,this))}_initFunction(){return Me.setUint16(0,14,this),Me.initStructAt(0,UN,this)}get _isFunction(){return Me.getUint16(0,this)===14}set function(M){Me.setUint16(0,14,this),Me.copyFrom(M,Me.getPointer(0,this))}_adoptJsgImpl(M){Me.setUint16(0,15,this),Me.adopt(M,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,lY,this)}_hasJsgImpl(){return!Me.isNull(Me.getPointer(0,this))}_initJsgImpl(){return Me.setUint16(0,15,this),Me.initStructAt(0,lY,this)}get _isJsgImpl(){return Me.getUint16(0,this)===15}set jsgImpl(M){Me.setUint16(0,15,this),Me.copyFrom(M,Me.getPointer(0,this))}_adoptJsBuiltin(M){Me.setUint16(0,16,this),Me.adopt(M,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,dY,this)}_hasJsBuiltin(){return!Me.isNull(Me.getPointer(0,this))}_initJsBuiltin(){return Me.setUint16(0,16,this),Me.initStructAt(0,dY,this)}get _isJsBuiltin(){return Me.getUint16(0,this)===16}set jsBuiltin(M){Me.setUint16(0,16,this),Me.copyFrom(M,Me.getPointer(0,this))}toString(){return"Type_"+super.toString()}which(){return Me.getUint16(0,this)}},eY=class extends Ou{static _capnp={displayName:"NumberType",id:"afd4316863bdd80a",size:new Cu(0,1)};get name(){return Me.getText(0,this)}set name(M){Me.setText(0,M,this)}toString(){return"NumberType_"+super.toString()}},tY=class extends Ou{static _capnp={displayName:"PromiseType",id:"977eaa74d24bb2dc",size:new Cu(0,1)};_adoptValue(M){Me.adopt(M,Me.getPointer(0,this))}_disownValue(){return Me.disown(this.value)}get value(){return Me.getStruct(0,Xf,this)}_hasValue(){return!Me.isNull(Me.getPointer(0,this))}_initValue(){return Me.initStructAt(0,Xf,this)}set value(M){Me.copyFrom(M,Me.getPointer(0,this))}toString(){return"PromiseType_"+super.toString()}},rY=class extends Ou{static _capnp={displayName:"StructureType",id:"9001b3522132305a",size:new Cu(0,2)};get name(){return Me.getText(0,this)}set name(M){Me.setText(0,M,this)}get fullyQualifiedName(){return Me.getText(1,this)}set fullyQualifiedName(M){Me.setText(1,M,this)}toString(){return"StructureType_"+super.toString()}},nY=class extends Ou{static _capnp={displayName:"StringType",id:"913621db0713d640",size:new Cu(0,1)};get name(){return Me.getText(0,this)}set name(M){Me.setText(0,M,this)}toString(){return"StringType_"+super.toString()}},iY=class extends Ou{static _capnp={displayName:"IntrinsicType",id:"87c24648e89ccc02",size:new Cu(0,1)};get name(){return Me.getText(0,this)}set name(M){Me.setText(0,M,this)}toString(){return"IntrinsicType_"+super.toString()}},sY=class extends Ou{static _capnp={displayName:"ArrayType",id:"f6d86da0d225932b",size:new Cu(0,2)};_adoptElement(M){Me.adopt(M,Me.getPointer(0,this))}_disownElement(){return Me.disown(this.element)}get element(){return Me.getStruct(0,Xf,this)}_hasElement(){return!Me.isNull(Me.getPointer(0,this))}_initElement(){return Me.initStructAt(0,Xf,this)}set element(M){Me.copyFrom(M,Me.getPointer(0,this))}get name(){return Me.getText(1,this)}set name(M){Me.setText(1,M,this)}toString(){return"ArrayType_"+super.toString()}},aY=class extends Ou{static _capnp={displayName:"MaybeType",id:"9d64649bff8a5cee",size:new Cu(0,2)};_adoptValue(M){Me.adopt(M,Me.getPointer(0,this))}_disownValue(){return Me.disown(this.value)}get value(){return Me.getStruct(0,Xf,this)}_hasValue(){return!Me.isNull(Me.getPointer(0,this))}_initValue(){return Me.initStructAt(0,Xf,this)}set value(M){Me.copyFrom(M,Me.getPointer(0,this))}get name(){return Me.getText(1,this)}set name(M){Me.setText(1,M,this)}toString(){return"MaybeType_"+super.toString()}},oY=class extends Ou{static _capnp={displayName:"DictType",id:"b7d8e1ee6205d554",size:new Cu(0,2)};_adoptKey(M){Me.adopt(M,Me.getPointer(0,this))}_disownKey(){return Me.disown(this.key)}get key(){return Me.getStruct(0,Xf,this)}_hasKey(){return!Me.isNull(Me.getPointer(0,this))}_initKey(){return Me.initStructAt(0,Xf,this)}set key(M){Me.copyFrom(M,Me.getPointer(0,this))}_adoptValue(M){Me.adopt(M,Me.getPointer(1,this))}_disownValue(){return Me.disown(this.value)}get value(){return Me.getStruct(1,Xf,this)}_hasValue(){return!Me.isNull(Me.getPointer(1,this))}_initValue(){return Me.initStructAt(1,Xf,this)}set value(M){Me.copyFrom(M,Me.getPointer(1,this))}toString(){return"DictType_"+super.toString()}},dW=class Q extends Ou{static _capnp={displayName:"OneOfType",id:"95216521d1f195ae",size:new Cu(0,1)};static _Variants;_adoptVariants(M){Me.adopt(M,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(M){return Me.initList(0,Q._Variants,M,this)}set variants(M){Me.copyFrom(M,Me.getPointer(0,this))}toString(){return"OneOfType_"+super.toString()}},aP={V8UINT8ARRAY:0,V8ARRAY_BUFFER_VIEW:1,JSG_BUFFER_SOURCE:2,KJ_DATE:3,V8FUNCTION:4,V8ARRAY_BUFFER:5},cY=class extends Ou{static Type=aP;static _capnp={displayName:"BuiltinType",id:"96dfb79b276b3379",size:new Cu(8,0)};get type(){return Me.getUint16(0,this)}set type(M){Me.setUint16(0,M,this)}toString(){return"BuiltinType_"+super.toString()}},UN=class Q extends Ou{static _capnp={displayName:"FunctionType",id:"d7c3505ac05e5fad",size:new Cu(0,2)};static _Args;_adoptReturnType(M){Me.adopt(M,Me.getPointer(0,this))}_disownReturnType(){return Me.disown(this.returnType)}get returnType(){return Me.getStruct(0,Xf,this)}_hasReturnType(){return!Me.isNull(Me.getPointer(0,this))}_initReturnType(){return Me.initStructAt(0,Xf,this)}set returnType(M){Me.copyFrom(M,Me.getPointer(0,this))}_adoptArgs(M){Me.adopt(M,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(M){return Me.initList(1,Q._Args,M,this)}set args(M){Me.copyFrom(M,Me.getPointer(1,this))}toString(){return"FunctionType_"+super.toString()}},xb={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},lY=class extends Ou{static Type=xb;static _capnp={displayName:"JsgImplType",id:"e0dfbe1216e6985e",size:new Cu(8,0)};get type(){return Me.getUint16(0,this)}set type(M){Me.setUint16(0,M,this)}toString(){return"JsgImplType_"+super.toString()}},VN=class Q extends Ou{static _capnp={displayName:"Structure",id:"c9aee5d3d27484f2",size:new Cu(8,12)};static _Members;static _BuiltinModules;get name(){return Me.getText(0,this)}set name(M){Me.setText(0,M,this)}get fullyQualifiedName(){return Me.getText(3,this)}set fullyQualifiedName(M){Me.setText(3,M,this)}_adoptMembers(M){Me.adopt(M,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(M){return Me.initList(1,Q._Members,M,this)}set members(M){Me.copyFrom(M,Me.getPointer(1,this))}_adoptExtends(M){Me.adopt(M,Me.getPointer(2,this))}_disownExtends(){return Me.disown(this.extends)}get extends(){return Me.getStruct(2,Xf,this)}_hasExtends(){return!Me.isNull(Me.getPointer(2,this))}_initExtends(){return Me.initStructAt(2,Xf,this)}set extends(M){Me.copyFrom(M,Me.getPointer(2,this))}get iterable(){return Me.getBit(0,this)}set iterable(M){Me.setBit(0,M,this)}_adoptIterator(M){Me.adopt(M,Me.getPointer(4,this))}_disownIterator(){return Me.disown(this.iterator)}get iterator(){return Me.getStruct(4,kb,this)}_hasIterator(){return!Me.isNull(Me.getPointer(4,this))}_initIterator(){return Me.initStructAt(4,kb,this)}set iterator(M){Me.copyFrom(M,Me.getPointer(4,this))}get asyncIterable(){return Me.getBit(1,this)}set asyncIterable(M){Me.setBit(1,M,this)}_adoptAsyncIterator(M){Me.adopt(M,Me.getPointer(5,this))}_disownAsyncIterator(){return Me.disown(this.asyncIterator)}get asyncIterator(){return Me.getStruct(5,kb,this)}_hasAsyncIterator(){return!Me.isNull(Me.getPointer(5,this))}_initAsyncIterator(){return Me.initStructAt(5,kb,this)}set asyncIterator(M){Me.copyFrom(M,Me.getPointer(5,this))}get disposable(){return Me.getBit(3,this)}set disposable(M){Me.setBit(3,M,this)}_adoptDispose(M){Me.adopt(M,Me.getPointer(10,this))}_disownDispose(){return Me.disown(this.dispose)}get dispose(){return Me.getStruct(10,kb,this)}_hasDispose(){return!Me.isNull(Me.getPointer(10,this))}_initDispose(){return Me.initStructAt(10,kb,this)}set dispose(M){Me.copyFrom(M,Me.getPointer(10,this))}get asyncDisposable(){return Me.getBit(4,this)}set asyncDisposable(M){Me.setBit(4,M,this)}_adoptAsyncDispose(M){Me.adopt(M,Me.getPointer(11,this))}_disownAsyncDispose(){return Me.disown(this.asyncDispose)}get asyncDispose(){return Me.getStruct(11,kb,this)}_hasAsyncDispose(){return!Me.isNull(Me.getPointer(11,this))}_initAsyncDispose(){return Me.initStructAt(11,kb,this)}set asyncDispose(M){Me.copyFrom(M,Me.getPointer(11,this))}get tsRoot(){return Me.getBit(2,this)}set tsRoot(M){Me.setBit(2,M,this)}get tsOverride(){return Me.getText(6,this)}set tsOverride(M){Me.setText(6,M,this)}get tsDefine(){return Me.getText(7,this)}set tsDefine(M){Me.setText(7,M,this)}_adoptCallable(M){Me.adopt(M,Me.getPointer(8,this))}_disownCallable(){return Me.disown(this.callable)}get callable(){return Me.getStruct(8,UN,this)}_hasCallable(){return!Me.isNull(Me.getPointer(8,this))}_initCallable(){return Me.initStructAt(8,UN,this)}set callable(M){Me.copyFrom(M,Me.getPointer(8,this))}_adoptBuiltinModules(M){Me.adopt(M,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(M){return Me.initList(9,Q._BuiltinModules,M,this)}set builtinModules(M){Me.copyFrom(M,Me.getPointer(9,this))}toString(){return"Structure_"+super.toString()}},uY=class extends Ou{static _capnp={displayName:"nested",id:"cc1920702876b1f6",size:new Cu(8,2)};_adoptStructure(M){Me.adopt(M,Me.getPointer(0,this))}_disownStructure(){return Me.disown(this.structure)}get structure(){return Me.getStruct(0,VN,this)}_hasStructure(){return!Me.isNull(Me.getPointer(0,this))}_initStructure(){return Me.initStructAt(0,VN,this)}set structure(M){Me.copyFrom(M,Me.getPointer(0,this))}get name(){return Me.getText(1,this)}set name(M){Me.setText(1,M,this)}toString(){return"Member_Nested_"+super.toString()}},yd={METHOD:0,PROPERTY:1,NESTED:2,CONSTANT:3,CONSTRUCTOR:4},rve=class extends Ou{static METHOD=yd.METHOD;static PROPERTY=yd.PROPERTY;static NESTED=yd.NESTED;static CONSTANT=yd.CONSTANT;static CONSTRUCTOR=yd.CONSTRUCTOR;static _capnp={displayName:"Member",id:"85c316fd4114aba7",size:new Cu(8,2)};_adoptMethod(M){Me.setUint16(0,0,this),Me.adopt(M,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,kb,this)}_hasMethod(){return!Me.isNull(Me.getPointer(0,this))}_initMethod(){return Me.setUint16(0,0,this),Me.initStructAt(0,kb,this)}get _isMethod(){return Me.getUint16(0,this)===0}set method(M){Me.setUint16(0,0,this),Me.copyFrom(M,Me.getPointer(0,this))}_adoptProperty(M){Me.setUint16(0,1,this),Me.adopt(M,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,_Y,this)}_hasProperty(){return!Me.isNull(Me.getPointer(0,this))}_initProperty(){return Me.setUint16(0,1,this),Me.initStructAt(0,_Y,this)}get _isProperty(){return Me.getUint16(0,this)===1}set property(M){Me.setUint16(0,1,this),Me.copyFrom(M,Me.getPointer(0,this))}get nested(){return Me.testWhich("nested",Me.getUint16(0,this),2,this),Me.getAs(uY,this)}_initNested(){return Me.setUint16(0,2,this),Me.getAs(uY,this)}get _isNested(){return Me.getUint16(0,this)===2}set nested(M){Me.setUint16(0,2,this)}_adoptConstant(M){Me.setUint16(0,3,this),Me.adopt(M,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,fY,this)}_hasConstant(){return!Me.isNull(Me.getPointer(0,this))}_initConstant(){return Me.setUint16(0,3,this),Me.initStructAt(0,fY,this)}get _isConstant(){return Me.getUint16(0,this)===3}set constant(M){Me.setUint16(0,3,this),Me.copyFrom(M,Me.getPointer(0,this))}_adoptConstructor(M){Me.setUint16(0,4,this),Me.adopt(M,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,mW,this)}_hasConstructor(){return!Me.isNull(Me.getPointer(0,this))}_initConstructor(){return Me.setUint16(0,4,this),Me.initStructAt(0,mW,this)}get _isConstructor(){return Me.getUint16(0,this)===4}set $constructor(M){Me.setUint16(0,4,this),Me.copyFrom(M,Me.getPointer(0,this))}toString(){return"Member_"+super.toString()}which(){return Me.getUint16(0,this)}},kb=class Q extends Ou{static _capnp={displayName:"Method",id:"a0a20f19ed7321e8",size:new Cu(8,3)};static _Args;get name(){return Me.getText(0,this)}set name(M){Me.setText(0,M,this)}_adoptReturnType(M){Me.adopt(M,Me.getPointer(1,this))}_disownReturnType(){return Me.disown(this.returnType)}get returnType(){return Me.getStruct(1,Xf,this)}_hasReturnType(){return!Me.isNull(Me.getPointer(1,this))}_initReturnType(){return Me.initStructAt(1,Xf,this)}set returnType(M){Me.copyFrom(M,Me.getPointer(1,this))}_adoptArgs(M){Me.adopt(M,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(M){return Me.initList(2,Q._Args,M,this)}set args(M){Me.copyFrom(M,Me.getPointer(2,this))}get static(){return Me.getBit(0,this)}set static(M){Me.setBit(0,M,this)}get fastApiCompatible(){return Me.getBit(1,this)}set fastApiCompatible(M){Me.setBit(1,M,this)}toString(){return"Method_"+super.toString()}},_Y=class extends Ou{static _capnp={displayName:"Property",id:"e1d238e9fecd3757",size:new Cu(8,2)};get name(){return Me.getText(0,this)}set name(M){Me.setText(0,M,this)}_adoptType(M){Me.adopt(M,Me.getPointer(1,this))}_disownType(){return Me.disown(this.type)}get type(){return Me.getStruct(1,Xf,this)}_hasType(){return!Me.isNull(Me.getPointer(1,this))}_initType(){return Me.initStructAt(1,Xf,this)}set type(M){Me.copyFrom(M,Me.getPointer(1,this))}get readonly(){return Me.getBit(0,this)}set readonly(M){Me.setBit(0,M,this)}get lazy(){return Me.getBit(1,this)}set lazy(M){Me.setBit(1,M,this)}get prototype(){return Me.getBit(2,this)}set prototype(M){Me.setBit(2,M,this)}get getterFastApiCompatible(){return Me.getBit(3,this)}set getterFastApiCompatible(M){Me.setBit(3,M,this)}get setterFastApiCompatible(){return Me.getBit(4,this)}set setterFastApiCompatible(M){Me.setBit(4,M,this)}toString(){return"Property_"+super.toString()}},fY=class extends Ou{static _capnp={displayName:"Constant",id:"e354a1a55c4cfc59",size:new Cu(8,1)};get name(){return Me.getText(0,this)}set name(M){Me.setText(0,M,this)}get value(){return Me.getInt64(0,this)}set value(M){Me.setInt64(0,M,this)}toString(){return"Constant_"+super.toString()}},mW=class Q extends Ou{static _capnp={displayName:"Constructor",id:"f4610fdb47099d17",size:new Cu(0,1)};static _Args;_adoptArgs(M){Me.adopt(M,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(M){return Me.initList(0,Q._Args,M,this)}set args(M){Me.copyFrom(M,Me.getPointer(0,this))}toString(){return"Constructor_"+super.toString()}},B5e={STRUCTURE_NAME:0,TS_DECLARATIONS:1},pY=class extends Ou{static STRUCTURE_NAME=B5e.STRUCTURE_NAME;static TS_DECLARATIONS=B5e.TS_DECLARATIONS;static _capnp={displayName:"Module",id:"cd4221e3248069bd",size:new Cu(8,2)};get specifier(){return Me.getText(0,this)}set specifier(M){Me.setText(0,M,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(M){Me.setUint16(0,0,this),Me.setText(1,M,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(M){Me.setUint16(0,1,this),Me.setText(1,M,this)}toString(){return"Module_"+super.toString()}which(){return Me.getUint16(0,this)}},gW=class Q extends Ou{static _capnp={displayName:"StructureGroup",id:"fe89d9d03a268a31",size:new Cu(0,2)};static _Structures;get name(){return Me.getText(0,this)}set name(M){Me.setText(0,M,this)}_adoptStructures(M){Me.adopt(M,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(M){return Me.initList(1,Q._Structures,M,this)}set structures(M){Me.copyFrom(M,Me.getPointer(1,this))}toString(){return"StructureGroups_StructureGroup_"+super.toString()}},g8=class Q extends Ou{static StructureGroup=gW;static _capnp={displayName:"StructureGroups",id:"ed8c71dbb06eb831",size:new Cu(0,2)};static _Groups;static _Modules;_adoptGroups(M){Me.adopt(M,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(M){return Me.initList(0,Q._Groups,M,this)}set groups(M){Me.copyFrom(M,Me.getPointer(0,this))}_adoptModules(M){Me.adopt(M,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(M){return Me.initList(1,Q._Modules,M,this)}set modules(M){Me.copyFrom(M,Me.getPointer(1,this))}toString(){return"StructureGroups_"+super.toString()}},dY=class extends Ou{static _capnp={displayName:"JsBuiltinType",id:"ccf1cde29b10a0bb",size:new Cu(0,2)};get module(){return Me.getText(0,this)}set module(M){Me.setText(0,M,this)}get export(){return Me.getText(1,this)}set export(M){Me.setText(1,M,this)}toString(){return"JsBuiltinType_"+super.toString()}};dW._Variants=VT(Xf);UN._Args=VT(Xf);VN._Members=VT(rve);VN._BuiltinModules=VT(pY);kb._Args=VT(Xf);mW._Args=VT(Xf);gW._Structures=VT(VN);g8._Groups=VT(gW);g8._Modules=VT(pY);var z5e=`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 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 AiTextGenerationOutput = {
response?: string;
tool_calls?: {
name: string;
arguments: unknown;
}[];
};
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;
}
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";
}
| AsyncResponse;
export interface 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;
}
| AsyncResponse;
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";
}
| AsyncResponse;
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";
}
| AsyncResponse;
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 =
| BGEM3InputQueryAndContexts
| BGEM3InputEmbedding
| {
/**
* Batch of the embeddings requests to run using async-queue
*/
requests: (BGEM3InputQueryAndContexts1 | BGEM3InputEmbedding1)[];
};
export interface BGEM3InputQueryAndContexts {
/**
* 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 BGEM3InputEmbedding {
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 BGEM3InputQueryAndContexts1 {
/**
* 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 BGEM3InputEmbedding1 {
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 =
| BGEM3OuputQuery
| BGEM3OutputEmbeddingForContexts
| BGEM3OuputEmbedding
| AsyncResponse;
export interface BGEM3OuputQuery {
response?: {
/**
* Index of the context in the request
*/
id?: number;
/**
* Score of the context under the index.
*/
score?: number;
}[];
}
export interface BGEM3OutputEmbeddingForContexts {
response?: number[][];
shape?: number[];
/**
* The pooling method used in the embedding process.
*/
pooling?: "mean" | "cls";
}
export interface BGEM3OuputEmbedding {
shape?: number[];
/**
* Embeddings of the requested text values
*/
data?: number[][];
/**
* The pooling method used in the embedding process.
*/
pooling?: "mean" | "cls";
}
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 = Prompt | Messages;
export interface 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 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 =
| Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Prompt
| Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Messages
| AsyncBatch;
export interface 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?: JSONMode;
/**
* 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 JSONMode {
type?: "json_object" | "json_schema";
json_schema?: unknown;
}
export interface 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?: JSONMode;
/**
* 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 AsyncBatch {
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?: JSONMode;
}[];
}
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;
}[];
}
| AsyncResponse;
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.
*/
query: string;
/**
* 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 =
| Qwen2_5_Coder_32B_Instruct_Prompt
| Qwen2_5_Coder_32B_Instruct_Messages;
export interface 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?: JSONMode;
/**
* 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 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?: JSONMode;
/**
* 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_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 = Qwen_Qwq_32B_Prompt | Qwen_Qwq_32B_Messages;
export interface 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 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 fufilled 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 =
| Mistral_Small_3_1_24B_Instruct_Prompt
| Mistral_Small_3_1_24B_Instruct_Messages;
export interface 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 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 fufilled 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 = Google_Gemma_3_12B_It_Prompt | Google_Gemma_3_12B_It_Messages;
export interface Google_Gemma_3_12B_It_Prompt {
/**
* The input text prompt for the model to generate a response.
*/
prompt: string;
/**
* JSON schema that should be fufilled 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 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;
};
}[]
| {
/**
* 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 fufilled 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_Prompt | Ai_Cf_Meta_Llama_4_Messages;
export interface Ai_Cf_Meta_Llama_4_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?: JSONMode;
/**
* 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_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?: JSONMode;
/**
* JSON schema that should be fufilled 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 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/microsoft/resnet-50": BaseAiImageClassification;
"@cf/facebook/detr-resnet-50": BaseAiObjectDetection;
"@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;
"@hf/meta-llama/meta-llama-3-8b-instruct": BaseAiTextGeneration;
"@cf/meta/llama-3.1-8b-instruct": 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/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;
}
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;
gateway?: GatewayOptions;
returnRawResponse?: boolean;
prefix?: string;
extraHeaders?: object;
};
export type ConversionResponse = {
name: string;
mimeType: string;
format: "markdown";
tokens: number;
data: string;
};
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;
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;
}
? Response
: InputOptions extends {
stream: true;
}
? ReadableStream
: AiModelList[Name]["postProcessedOutputs"]
>;
models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
toMarkdown(
files: {
name: string;
blob: Blob;
}[],
options?: {
gateway?: GatewayOptions;
extraHeaders?: object;
},
): Promise<ConversionResponse[]>;
toMarkdown(
files: {
name: string;
blob: Blob;
},
options?: {
gateway?: GatewayOptions;
extraHeaders?: object;
},
): 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
}
export interface AutoRAGInternalError extends Error {}
export interface AutoRAGNotFoundError extends Error {}
export interface AutoRAGUnauthorizedError extends Error {}
export interface AutoRAGNameNotSetError extends Error {}
export type ComparisonFilter = {
key: string;
type: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte';
value: string | number | boolean;
};
export type CompoundFilter = {
type: 'and' | 'or';
filters: ComparisonFilter[];
};
export type AutoRagSearchRequest = {
query: string;
filters?: CompoundFilter | ComparisonFilter;
max_num_results?: number;
ranking_options?: {
ranker?: string;
score_threshold?: number;
};
rewrite_query?: boolean;
};
export type AutoRagAiSearchRequest = AutoRagSearchRequest & {
stream?: boolean;
system_prompt?: string;
};
export type AutoRagAiSearchRequestStreaming = Omit<
AutoRagAiSearchRequest,
'stream'
> & {
stream: true;
};
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;
};
export type AutoRagListResponse = {
id: string;
enable: boolean;
type: string;
source: string;
vectorize_name: string;
paused: boolean;
status: string;
}[];
export type AutoRagAiSearchResponse = AutoRagSearchResponse & {
response: string;
};
export declare abstract class AutoRAG {
list(): Promise<AutoRagListResponse>;
search(params: AutoRagSearchRequest): Promise<AutoRagSearchResponse>;
aiSearch(params: AutoRagAiSearchRequestStreaming): Promise<Response>;
aiSearch(params: AutoRagAiSearchRequest): Promise<AutoRagAiSearchResponse>;
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";
/**
* 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?:
| '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;
/**
* 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;
}
}
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 {}
/**
* 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<void>;
/**
* 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<void>;
}
/**
* A binding that allows a Worker to send email messages.
*/
interface SendEmail {
send(message: EmailMessage): Promise<void>;
}
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 idential 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;
gravity?:
| '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;
};
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;
}
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;
}
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 recieves 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> & {
[K in Exclude<
keyof T,
Reserved | symbol | keyof StubBase<never>
>]: MethodOrProperty<T[K]>;
};
}
declare namespace Cloudflare {
interface Env {}
}
declare module 'cloudflare:node' {
export interface DefaultHandler {
fetch?(request: Request): Response | Promise<Response>;
tail?(events: TraceItem[]): void | Promise<void>;
trace?(traces: TraceItem[]): void | Promise<void>;
scheduled?(controller: ScheduledController): void | Promise<void>;
queue?(batch: MessageBatch<unknown>): void | Promise<void>;
test?(controller: TestController): void | Promise<void>;
}
export function httpServerHandler(
options: { port: number },
handlers?: Omit<DefaultHandler, 'fetch'>
): DefaultHandler;
}
declare module 'cloudflare:workers' {
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 = unknown>
implements Rpc.WorkerEntrypointBranded
{
[Rpc.__WORKER_ENTRYPOINT_BRAND]: never;
protected ctx: ExecutionContext;
protected env: Env;
constructor(ctx: ExecutionContext, env: Env);
fetch?(request: Request): Response | Promise<Response>;
tail?(events: TraceItem[]): void | Promise<void>;
trace?(traces: TraceItem[]): void | Promise<void>;
scheduled?(controller: ScheduledController): void | Promise<void>;
queue?(batch: MessageBatch<unknown>): void | Promise<void>;
test?(controller: TestController): void | Promise<void>;
}
export abstract class DurableObject<Env = unknown>
implements Rpc.DurableObjectBranded
{
[Rpc.__DURABLE_OBJECT_BRAND]: never;
protected ctx: DurableObjectState;
protected env: Env;
constructor(ctx: DurableObjectState, env: Env);
fetch?(request: Request): Response | Promise<Response>;
alarm?(alarmInfo?: AlarmInvocationInfo): void | Promise<void>;
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 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 const env: Cloudflare.Env;
}
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 };
}
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";
readonly methodName: string;
}
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 Trigger {
readonly traceId: string;
readonly invocationId: string;
readonly spanId: string;
}
interface Onset {
readonly type: "onset";
readonly dispatchNamespace?: string;
readonly entrypoint?: string;
readonly executionModel: string;
readonly scriptName?: string;
readonly scriptTags?: string[];
readonly scriptVersion?: ScriptVersion;
readonly trigger?: Trigger;
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;
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 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
| Return
| Attributes;
interface TailEvent<Event extends EventType> {
readonly invocationId: string;
readonly spanId: string;
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";
/**
* 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;
};
};
/**
* 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?: string;
output?: object;
};
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 J5e={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:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE) ",drawElementsInstancedANGLE:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE) ",vertexAttribDivisorANGLE:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE) "},AbortController:{$:`*
* A controller object that allows you to abort one or more DOM requests as and when desired.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController)
`,signal:`*
* Returns the AbortSignal object associated with this object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal)
`,abort:`*
* Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/abort)
`},AbortSignal:{$:`*
* A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal)
`,aborted:`*
* Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted)
`,onabort:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) ",reason:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason) ",throwIfAborted:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted) ","static:abort":" [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) ","static:any":" [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) ","static:timeout":" [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:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData) ",duration:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/duration) ",format:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/format) ",numberOfChannels:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfChannels) ",numberOfFrames:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfFrames) ",sampleRate:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/sampleRate) ",timestamp:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/timestamp) ",allocationSize:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/allocationSize) ",clone:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/clone) ",close:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/close) ",copyTo:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/copyTo) "},AudioDecoder:{$:`*
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder)
`,decodeQueueSize:" [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:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/state) ",close:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/close) ",configure:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/configure) ",decode:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/decode) ",flush:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/flush) ",reset:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/reset) ","static:isConfigSupported":" [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/isConfigSupported_static) "},AudioEncoder:{$:`*
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder)
`,encodeQueueSize:" [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:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/state) ",close:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/close) ",configure:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/configure) ",encode:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/encode) ",flush:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/flush) ",reset:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/reset) ","static:isConfigSupported":" [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/isConfigSupported_static) "},Blob:{$:`*
* A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob)
`,size:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) ",type:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) ",arrayBuffer:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) ",bytes:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/bytes) ",slice:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) ",stream:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) ",text:" [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:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel) ",name:`*
* Returns the channel name (as passed to the constructor).
*
* [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:`*
* Closes the BroadcastChannel object, opening it up to garbage collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/close)
`,postMessage:`*
* Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/postMessage)
`},ByteLengthQueuingStrategy:{$:`*
* This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy)
`,highWaterMark:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark) ",size:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/size) "},CSSImageValue:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImageValue) "},CSSKeywordValue:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue) ",value:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue/value) "},CSSMathInvert:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert) ",value:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert/value) "},CSSMathMax:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax) ",values:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax/values) "},CSSMathMin:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin) ",values:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin/values) "},CSSMathNegate:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate) ",value:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate/value) "},CSSMathProduct:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct) ",values:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct/values) "},CSSMathSum:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum) ",values:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum/values) "},CSSMathValue:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue) ",operator:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue/operator) "},CSSMatrixComponent:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent) ",matrix:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent/matrix) "},CSSNumericArray:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray) ",length:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray/length) "},CSSNumericValue:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue) ",add:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/add) ",div:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/div) ",equals:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/equals) ",max:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/max) ",min:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/min) ",mul:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/mul) ",sub:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/sub) ",to:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/to) ",toSum:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/toSum) ",type:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/type) "},CSSPerspective:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective) ",length:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective/length) "},CSSRotate:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate) ",angle:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/angle) ",x:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/x) ",y:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/y) ",z:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/z) "},CSSScale:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale) ",x:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/x) ",y:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/y) ",z:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/z) "},CSSSkew:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew) ",ax:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax) ",ay:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ay) "},CSSSkewX:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX) ",ax:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX/ax) "},CSSSkewY:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY) ",ay:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY/ay) "},CSSStyleValue:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue) "},CSSTransformComponent:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent) ",is2D:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/is2D) ",toMatrix:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/toMatrix) "},CSSTransformValue:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue) ",is2D:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/is2D) ",length:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/length) ",toMatrix:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/toMatrix) "},CSSTranslate:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate) ",x:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/x) ",y:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/y) ",z:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/z) "},CSSUnitValue:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) ",unit:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) ",value:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/value) "},CSSUnparsedValue:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue) ",length:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue/length) "},CSSVariableReferenceValue:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue) ",fallback:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/fallback) ",variable:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/variable) "},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:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/add) ",addAll:" [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:" [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:" [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:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/delete) ",has:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/has) ",keys:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/keys) ",match:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/match) ",open:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open) "},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:{$:`*
* An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient)
`,addColorStop:`*
* Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.
*
* Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient/addColorStop)
`},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:{$:`*
* 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:`*
* Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation.
*
* [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\xA0interface represents an executable context such as a Worker, or a SharedWorker. Window clients are represented by the more-specific\xA0WindowClient. You can get\xA0Client/WindowClient\xA0objects from methods such as Clients.matchAll() and\xA0Clients.get().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client)
`,frameType:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/frameType) ",id:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/id) ",type:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/type) ",url:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/url) ",postMessage:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/postMessage) "},Clients:{$:`*
* Provides access to\xA0Client\xA0objects. Access it\xA0via self.clients\xA0within a\xA0service worker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients)
`,claim:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/claim) ",get:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/get) ",matchAll:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/matchAll) ",openWindow:" [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. This is delivered to the listener indicated by the WebSocket object's onclose attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent)
`,code:`*
* Returns the WebSocket connection close code provided by the server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code)
`,reason:`*
* Returns the WebSocket connection close reason provided by the server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason)
`,wasClean:`*
* Returns true if the connection closed cleanly; false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean)
`},CompressionStream:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) "},CountQueuingStrategy:{$:`*
* This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy)
`,highWaterMark:" [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:`*
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/subtle)
`,getRandomValues:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) ",randomUUID:`*
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID)
`},CryptoKey:{$:`*
* The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey)
`,algorithm:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm) ",extractable:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable) ",type:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type) ",usages:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages) "},CustomEvent:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) ",detail:`*
* Returns any custom data event was created with. Typically used for synthetic events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail)
`,initCustomEvent:`*
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/initCustomEvent)
`},DOMException:{$:`*
* An abnormal event (called an exception) which 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:`*
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
`,message:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) ",name:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) "},DOMMatrix:{$:" [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:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/invertSelf) ",multiplySelf:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/multiplySelf) ",preMultiplySelf:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/preMultiplySelf) ",rotateSelf:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateSelf) ",skewXSelf:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewXSelf) ",skewYSelf:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewYSelf) ",translateSelf:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/translateSelf) "},DOMMatrixReadOnly:{$:" [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:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D) ",isIdentity:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity) ",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:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX) ",flipY:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipY) ",inverse:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse) ",multiply:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply) ",scale:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale) ",scaleNonUniform:" @deprecated ",toFloat32Array:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array) ",toFloat64Array:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array) ",toJSON:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON) ",transformPoint:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint) ",translate:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate) "},DOMPoint:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint) ",w:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/w) ",x:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/x) ",y:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/y) ",z:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/z) ","static:fromPoint":" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static) "},DOMPointReadOnly:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly) ",w:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/w) ",x:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/x) ",y:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) ",z:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z) ",matrixTransform:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/matrixTransform) ",toJSON:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) ","static:fromPoint":" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static) "},DOMQuad:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad) ",p1:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1) ",p2:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2) ",p3:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3) ",p4:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4) ",getBounds:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds) ",toJSON:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON) "},DOMRect:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect) ",height:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/height) ",width:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/width) ",x:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/x) ",y:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/y) ","static:fromRect":" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/fromRect_static) "},DOMRectReadOnly:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly) ",bottom:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/bottom) ",height:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/height) ",left:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/left) ",right:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/right) ",top:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/top) ",width:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/width) ",x:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/x) ",y:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y) ",toJSON:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON) ","static:fromRect":" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static) "},DOMStringList:{$:`*
* A type returned by some APIs which contains a list of DOMString (strings).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList)
`,length:`*
* Returns the number of strings in strings.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/length)
`,contains:`*
* Returns true if strings contains string, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/contains)
`,item:`*
* Returns the string with index index from strings.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/item)
`},DecompressionStream:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) "},DedicatedWorkerGlobalScope:{$:`*
* (the Worker global scope) is accessible through the self keyword. Some additional global functions, namespaces objects, and constructors, not typically associated with the worker global scope, but available on it, are listed in the JavaScript Reference. See also: Functions available to workers.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope)
`,name:`*
* Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging.
*
* [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:`*
* Aborts dedicatedWorkerGlobal.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/close)
`,postMessage:`*
* Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/postMessage)
`},EXT_blend_minmax:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_blend_minmax) "},EXT_color_buffer_float:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_float) "},EXT_color_buffer_half_float:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_half_float) "},EXT_float_blend:{$:" [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:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_sRGB) "},EXT_shader_texture_lod:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_shader_texture_lod) "},EXT_texture_compression_bptc:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_bptc) "},EXT_texture_compression_rgtc:{$:" [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:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_norm16) "},EncodedAudioChunk:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk) ",byteLength:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/byteLength) ",duration:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/duration) ",timestamp:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/timestamp) ",type:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/type) ",copyTo:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/copyTo) "},EncodedVideoChunk:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk) ",byteLength:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/byteLength) ",duration:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/duration) ",timestamp:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/timestamp) ",type:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/type) ",copyTo:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/copyTo) "},ErrorEvent:{$:`*
* Events providing information related to errors in scripts or in files.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent)
`,colno:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) ",error:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) ",filename:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) ",lineno:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) ",message:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) "},Event:{$:`*
* An event which takes place in the DOM.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event)
`,bubbles:`*
* Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles)
`,cancelBubble:`*
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble)
`,cancelable:`*
* Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable)
`,composed:`*
* Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed)
`,currentTarget:`*
* Returns the object whose event listener's callback is currently being invoked.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget)
`,defaultPrevented:`*
* Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented)
`,eventPhase:`*
* Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase)
`,isTrusted:`*
* Returns true if event was dispatched by the user agent, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
`,returnValue:`*
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue)
`,srcElement:`*
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement)
`,target:`*
* Returns the object to which event is dispatched (its target).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target)
`,timeStamp:`*
* Returns the event's timestamp as the number of milliseconds measured relative to the time origin.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp)
`,type:`*
* Returns the type of event, e.g. "click", "hashchange", or "submit".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type)
`,composedPath:`*
* Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath)
`,initEvent:`*
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/initEvent)
`,preventDefault:`*
* If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault)
`,stopImmediatePropagation:`*
* Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation)
`,stopPropagation:`*
* When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation)
`},EventSource:{$:" [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:`*
* Returns the state of this EventSource object's connection. It can have the values described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState)
`,url:`*
* Returns the URL providing the event stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url)
`,withCredentials:`*
* Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials)
`,close:`*
* Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/close)
`},EventTarget:{$:`*
* EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget)
`,addEventListener:`*
* Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
*
* The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
*
* When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
*
* When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in \xA7 2.8 Observing event listeners.
*
* When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
*
* If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
*
* The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
`,dispatchEvent:`*
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
`,removeEventListener:`*
* Removes the event listener in target's event listener list with the same type, callback, and options.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
`},ExtendableEvent:{$:`*
* Extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent)
`,waitUntil:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent/waitUntil) "},ExtendableMessageEvent:{$:`*
* This ServiceWorker API interface represents the event object of a message event fired on a service worker (when a channel 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:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/data) ",lastEventId:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/lastEventId) ",origin:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/origin) ",ports:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/ports) ",source:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/source) "},FetchEvent:{$:`*
* This is the event type for fetch\xA0events dispatched on the\xA0service worker global scope. It contains information about the fetch, including the\xA0request and how the receiver will treat the response. It provides the event.respondWith() method, which allows us to provide a response to this fetch.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent)
`,clientId:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/clientId) ",handled:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/handled) ",preloadResponse:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/preloadResponse) ",request:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/request) ",resultingClientId:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/resultingClientId) ",respondWith:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/respondWith) "},File:{$:`*
* 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:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) ",name:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) ",webkitRelativePath:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/webkitRelativePath) "},FileList:{$:`*
* An object of this type is 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. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList)
`,length:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/length) ",item:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/item) "},FileReader:{$:`*
* 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:" [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:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState) ",result:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/result) ",abort:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort) ",readAsArrayBuffer:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer) ",readAsBinaryString:`*
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString)
`,readAsDataURL:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL) ",readAsText:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsText) "},FileReaderSync:{$:`*
* Allows to read File or Blob objects in a synchronous way.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync)
`,readAsArrayBuffer:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsArrayBuffer) ",readAsBinaryString:`*
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsBinaryString)
`,readAsDataURL:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsDataURL) ",readAsText:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsText) "},FileSystemDirectoryHandle:{$:`*
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle)
`,getDirectoryHandle:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle) ",getFileHandle:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getFileHandle) ",removeEntry:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/removeEntry) ",resolve:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve) "},FileSystemFileHandle:{$:`*
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle)
`,createSyncAccessHandle:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createSyncAccessHandle) ",createWritable:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createWritable) ",getFile:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/getFile) "},FileSystemHandle:{$:`*
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle)
`,kind:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/kind) ",name:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/name) ",isSameEntry:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry) "},FileSystemSyncAccessHandle:{$:`*
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle)
`,close:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/close) ",flush:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/flush) ",getSize:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/getSize) ",read:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/read) ",truncate:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/truncate) ",write:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/write) "},FileSystemWritableFileStream:{$:`*
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream)
`,seek:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/seek) ",truncate:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/truncate) ",write:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write) "},FontFace:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace) ",ascentOverride:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/ascentOverride) ",descentOverride:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/descentOverride) ",display:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/display) ",family:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/family) ",featureSettings:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/featureSettings) ",lineGapOverride:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/lineGapOverride) ",loaded:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/loaded) ",status:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/status) ",stretch:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/stretch) ",style:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/style) ",unicodeRange:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) ",weight:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) ",load:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) "},FontFaceSet:{$:" [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:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) ",status:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status) ",check:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check) ",load:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load) "},FontFaceSetLoadEvent:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent) ",fontfaces:" [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:{$:`*
* Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData)
`,append:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append) ",delete:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete) ",get:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get) ",getAll:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll) ",has:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has) ",set:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set) ",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:{$:`*
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError)
`,message:" [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:{$:`*
* This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists\xA0of zero or more name and value pairs. \xA0You can add to this using methods like append() (see Examples.)\xA0In all methods of this interface, header names are matched by case-insensitive byte sequence.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers)
`,append:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/append) ",delete:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/delete) ",get:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get) ",getSetCookie:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie) ",has:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has) ",set:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set) ",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:{$:`*
* This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor)
`,direction:`*
* Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/direction)
`,key:`*
* Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/key)
`,primaryKey:`*
* Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/primaryKey)
`,request:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/request) ",source:`*
* Returns the IDBObjectStore or IDBIndex the cursor was opened from.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/source)
`,advance:`*
* Advances the cursor through the next count records in range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/advance)
`,continue:`*
* Advances the cursor to the next record in range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continue)
`,continuePrimaryKey:`*
* Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continuePrimaryKey)
`,delete:`*
* Delete the record pointed at by the cursor with a new value.
*
* If successful, request's result will be undefined.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/delete)
`,update:`*
* Updated the record pointed at by the cursor with a new value.
*
* Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.
*
* If successful, request's result will be the record's key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/update)
`},IDBCursorWithValue:{$:`*
* This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue)
`,value:`*
* Returns the cursor's current value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue/value)
`},IDBDatabase:{$:`*
* This IndexedDB API interface 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. The interface provides the only way to get and manage versions of the database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase)
`,name:`*
* Returns the name of the database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/name)
`,objectStoreNames:`*
* Returns a list of the names of object stores in the 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:`*
* Returns the version of the database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/version)
`,close:`*
* Closes the connection once all running transactions have finished.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close)
`,createObjectStore:`*
* Creates a new object store with the given name and options and returns a new IDBObjectStore.
*
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/createObjectStore)
`,deleteObjectStore:`*
* Deletes the object store with the given name.
*
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/deleteObjectStore)
`,transaction:`*
* Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
`},IDBFactory:{$:`*
* In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.)
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory)
`,cmp:`*
* Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.
*
* Throws a "DataError" DOMException if either input is not a valid key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/cmp)
`,databases:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/databases) ",deleteDatabase:`*
* Attempts to delete the named database. If the database already exists and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request's result will be null.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/deleteDatabase)
`,open:`*
* Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request's result will be the connection.
*
* [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. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex)
`,keyPath:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/keyPath) ",multiEntry:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/multiEntry) ",name:`*
* Returns the name of the index.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/name)
`,objectStore:`*
* Returns the IDBObjectStore the index belongs to.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/objectStore)
`,unique:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/unique) ",count:`*
* Retrieves the number of records matching the given key or key range in query.
*
* If successful, request's result will be the count.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/count)
`,get:`*
* Retrieves the value of the first record matching the given key or key range in query.
*
* If successful, request's result will be the value, or undefined if there was no matching record.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/get)
`,getAll:`*
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the values.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAll)
`,getAllKeys:`*
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the keys.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys)
`,getKey:`*
* Retrieves the key of the first record matching the given key or key range in query.
*
* If successful, request's result will be the key, or undefined if there was no matching record.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getKey)
`,openCursor:`*
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.
*
* If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openCursor)
`,openKeyCursor:`*
* Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched.
*
* If successful, request's result will be an IDBCursor, or null if there were no matching records.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openKeyCursor)
`},IDBKeyRange:{$:`*
* A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs:
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange)
`,lower:`*
* Returns lower bound, or undefined if none.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lower)
`,lowerOpen:`*
* Returns true if the lower open flag is set, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerOpen)
`,upper:`*
* Returns upper bound, or undefined if none.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upper)
`,upperOpen:`*
* Returns true if the upper open flag is set, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperOpen)
`,includes:`*
* Returns true if key is included in the range, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/includes)
`,"static:bound":`*
* Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/bound_static)
`,"static:lowerBound":`*
* Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerBound_static)
`,"static:only":`*
* Returns a new IDBKeyRange spanning only key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/only_static)
`,"static:upperBound":`*
* Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperBound_static)
`},IDBObjectStore:{$:`*
* This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex\xA0inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our\xA0To-do Notifications\xA0app (view example live.)
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore)
`,autoIncrement:`*
* Returns true if the store has a key generator, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/autoIncrement)
`,indexNames:`*
* Returns a list of the names of indexes in the store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/indexNames)
`,keyPath:`*
* Returns the key path of the store, or null if none.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/keyPath)
`,name:`*
* Returns the name of the store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/name)
`,transaction:`*
* Returns the associated transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/transaction)
`,add:`*
* Adds or updates a record in store with the given value and key.
*
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
*
* If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
*
* If successful, request's result will be the record's key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/add)
`,clear:`*
* Deletes all records in store.
*
* If successful, request's result will be undefined.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/clear)
`,count:`*
* Retrieves the number of records matching the given key or key range in query.
*
* If successful, request's result will be the count.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/count)
`,createIndex:`*
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
`,delete:`*
* Deletes records in store with the given key or in the given key range in query.
*
* If successful, request's result will be undefined.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/delete)
`,deleteIndex:`*
* Deletes the index in store with the given name.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/deleteIndex)
`,get:`*
* Retrieves the value of the first record matching the given key or key range in query.
*
* If successful, request's result will be the value, or undefined if there was no matching record.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/get)
`,getAll:`*
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the values.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAll)
`,getAllKeys:`*
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the keys.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys)
`,getKey:`*
* Retrieves the key of the first record matching the given key or key range in query.
*
* If successful, request's result will be the key, or undefined if there was no matching record.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getKey)
`,index:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/index) ",openCursor:`*
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.
*
* If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openCursor)
`,openKeyCursor:`*
* Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched.
*
* If successful, request's result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openKeyCursor)
`,put:`*
* Adds or updates a record in store with the given value and key.
*
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
*
* If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
*
* If successful, request's result will be the record's key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/put)
`},IDBOpenDBRequest:{$:`*
* Also inherits methods from its parents IDBRequest and EventTarget.
*
* [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 request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest)
`,error:`*
* When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending.
*
* [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:`*
* Returns "pending" until a request is complete, then returns "done".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/readyState)
`,result:`*
* When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/result)
`,source:`*
* Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/source)
`,transaction:`*
* Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/transaction)
`},IDBTransaction:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction) ",db:`*
* Returns the transaction's connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/db)
`,durability:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/durability) ",error:`*
* If the transaction was aborted, returns the error (a DOMException) providing the reason.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error)
`,mode:`*
* Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/mode)
`,objectStoreNames:`*
* Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database.
*
* [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:`*
* Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort)
`,commit:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/commit) ",objectStore:`*
* Returns an IDBObjectStore in the transaction's scope.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStore)
`},IDBVersionChangeEvent:{$:`*
* This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent)
`,newVersion:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/newVersion) ",oldVersion:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/oldVersion) "},ImageBitmap:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap) ",height:`*
* Returns the intrinsic height of the image, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/height)
`,width:`*
* Returns the intrinsic width of the image, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/width)
`,close:`*
* Releases imageBitmap's underlying bitmap data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/close)
`},ImageBitmapRenderingContext:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext) ",transferFromImageBitmap:`*
* Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/transferFromImageBitmap)
`},ImageData:{$:`*
* The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData)
`,colorSpace:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/colorSpace) ",data:`*
* Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)
`,height:`*
* Returns the actual dimensions of the data in the ImageData object, in pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/height)
`,width:`*
* Returns the actual dimensions of the data in the ImageData object, in pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/width)
`},ImageDecoder:{$:`*
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder)
`,complete:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/complete) ",completed:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/completed) ",tracks:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/tracks) ",type:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/type) ",close:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/close) ",decode:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/decode) ",reset:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/reset) ","static:isTypeSupported":" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/isTypeSupported_static) "},ImageTrack:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack) ",animated:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/animated) ",frameCount:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/frameCount) ",repetitionCount:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/repetitionCount) ",selected:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/selected) "},ImageTrackList:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList) ",length:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/length) ",ready:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/ready) ",selectedIndex:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/selectedIndex) ",selectedTrack:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/selectedTrack) "},KHR_parallel_shader_compile:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/KHR_parallel_shader_compile) "},Lock:{$:`*
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock)
`,mode:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/mode) ",name:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/name) "},LockManager:{$:`*
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager)
`,query:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) ",request:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) "},MediaCapabilities:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities) ",decodingInfo:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/decodingInfo) ",encodingInfo:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/encodingInfo) "},MediaSourceHandle:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSourceHandle) "},MediaStreamTrackProcessor:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackProcessor) ",readable:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackProcessor/readable) "},MessageChannel:{$:`*
* This Channel Messaging API interface 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:`*
* Returns the first MessagePort object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port1)
`,port2:`*
* Returns the second MessagePort object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port2)
`},MessageEvent:{$:`*
* A message received by a target object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent)
`,data:`*
* Returns the data of the message.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/data)
`,lastEventId:`*
* Returns the last event ID string, for server-sent events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/lastEventId)
`,origin:`*
* Returns the origin of the message, for server-sent events and cross-document messaging.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/origin)
`,ports:`*
* Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/ports)
`,source:`*
* Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source)
`,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:{$:`*
* This Channel Messaging API interface 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:`*
* Disconnects the port, so that it is no longer active.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/close)
`,postMessage:`*
* Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.
*
* Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/postMessage)
`,start:`*
* Begins dispatching messages received on the port.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/start)
`},NavigationPreloadManager:{$:`*
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager)
`,disable:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/disable) ",enable:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/enable) ",getState:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/getState) ",setHeaderValue:" [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:{$:`*
* This Notifications API interface is used to configure and display desktop notifications to the user.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
`,badge:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge) ",body:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/body) ",data:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/data) ",dir:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/dir) ",icon:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/icon) ",lang:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/lang) ",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:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction) ",silent:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent) ",tag:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) ",title:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/title) ",close:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close) ","static:permission":" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/permission_static) "},NotificationEvent:{$:`*
* The parameter passed into the onnotificationclick handler, the NotificationEvent interface represents a notification click event that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent)
`,action:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent/action) ",notification:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent/notification) "},OES_draw_buffers_indexed:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed) ",blendEquationSeparateiOES:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationSeparateiOES) ",blendEquationiOES:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationiOES) ",blendFuncSeparateiOES:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFuncSeparateiOES) ",blendFunciOES:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFunciOES) ",colorMaskiOES:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/colorMaskiOES) ",disableiOES:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/disableiOES) ",enableiOES:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/enableiOES) "},OES_element_index_uint:{$:`*
* The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_element_index_uint)
`},OES_fbo_render_mipmap:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_fbo_render_mipmap) "},OES_standard_derivatives:{$:`*
* The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_standard_derivatives)
`},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:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object) ",bindVertexArrayOES:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/bindVertexArrayOES) ",createVertexArrayOES:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/createVertexArrayOES) ",deleteVertexArrayOES:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/deleteVertexArrayOES) ",isVertexArrayOES:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/isVertexArrayOES) "},OVR_multiview2:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2) ",framebufferTextureMultiviewOVR:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2/framebufferTextureMultiviewOVR) "},OffscreenCanvas:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas) ",height:`*
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
*
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
*
* [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:`*
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
*
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/width)
`,convertToBlob:`*
* Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.
*
* The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn't supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/convertToBlob)
`,getContext:`*
* Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.
*
* This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL]
*
* Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/getContext)
`,transferToImageBitmap:`*
* Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap)
`},OffscreenCanvasRenderingContext2D:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D) ",canvas:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) "},Path2D:{$:`*
* This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D)
`,addPath:`*
* Adds to the path the path given by the argument.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D/addPath)
`},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:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMarks) ",clearMeasures:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMeasures) ",clearResourceTimings:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearResourceTimings) ",getEntries:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntries) ",getEntriesByName:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName) ",getEntriesByType:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType) ",mark:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/mark) ",measure:" [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:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/setResourceTimingBufferSize) ",toJSON:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON) "},PerformanceEntry:{$:`*
* Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry)
`,duration:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/duration) ",entryType:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/entryType) ",name:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/name) ",startTime:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/startTime) ",toJSON:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON) "},PerformanceMark:{$:`*
* PerformanceMark\xA0is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark)
`,detail:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark/detail) "},PerformanceMeasure:{$:`*
* PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser's performance timeline.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure)
`,detail:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure/detail) "},PerformanceObserver:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver) ",disconnect:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/disconnect) ",observe:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/observe) ",takeRecords:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/takeRecords) ","static:supportedEntryTypes":" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/supportedEntryTypes_static) "},PerformanceObserverEntryList:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList) ",getEntries:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntries) ",getEntriesByName:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName) ",getEntriesByType:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType) "},PerformanceResourceTiming:{$:`*
* Enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming)
`,connectEnd:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectEnd) ",connectStart:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) ",decodedBodySize:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize) ",domainLookupEnd:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupEnd) ",domainLookupStart:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupStart) ",encodedBodySize:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/encodedBodySize) ",fetchStart:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart) ",initiatorType:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/initiatorType) ",nextHopProtocol:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/nextHopProtocol) ",redirectEnd:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectEnd) ",redirectStart:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectStart) ",requestStart:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart) ",responseEnd:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseEnd) ",responseStart:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStart) ",responseStatus:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStatus) ",secureConnectionStart:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/secureConnectionStart) ",serverTiming:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/serverTiming) ",transferSize:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) ",workerStart:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/workerStart) ",toJSON:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON) "},PerformanceServerTiming:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming) ",description:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/description) ",duration:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/duration) ",name:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/name) ",toJSON:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON) "},PermissionStatus:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus) ",name:" [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:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/state) "},Permissions:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions) ",query:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions/query) "},ProgressEvent:{$:`*
* Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent)
`,lengthComputable:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/lengthComputable) ",loaded:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded) ",total:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total) "},PromiseRejectionEvent:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent) ",promise:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise) ",reason:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason) "},PushEvent:{$:`*
* This Push API interface represents a push message that has been received. This event is sent to the global scope of a ServiceWorker. It contains the information sent from an application server to a PushSubscription.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushEvent)
`,data:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushEvent/data) "},PushManager:{$:`*
* This Push API interface 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:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/getSubscription) ",permissionState:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/permissionState) ",subscribe:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/subscribe) ","static:supportedContentEncodings":" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/supportedContentEncodings_static) "},PushMessageData:{$:`*
* This Push API interface 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:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/arrayBuffer) ",blob:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/blob) ",bytes:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/bytes) ",json:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/json) ",text:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/text) "},PushSubscription:{$:`*
* This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription)
`,endpoint:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/endpoint) ",expirationTime:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/expirationTime) ",options:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/options) ",getKey:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/getKey) ",toJSON:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/toJSON) ",unsubscribe:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/unsubscribe) "},PushSubscriptionOptions:{$:`*
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions)
`,applicationServerKey:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/applicationServerKey) ",userVisibleOnly:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/userVisibleOnly) "},RTCDataChannel:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel) ",binaryType:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/binaryType) ",bufferedAmount:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmount) ",bufferedAmountLowThreshold:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmountLowThreshold) ",id:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/id) ",label:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/label) ",maxPacketLifeTime:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxPacketLifeTime) ",maxRetransmits:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxRetransmits) ",negotiated:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/negotiated) ",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:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/ordered) ",protocol:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/protocol) ",readyState:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/readyState) ",close:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close) ",send:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/send) "},RTCEncodedAudioFrame:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame) ",data:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/data) ",timestamp:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp) ",getMetadata:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/getMetadata) "},RTCEncodedVideoFrame:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame) ",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:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type) ",getMetadata:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/getMetadata) "},RTCRtpScriptTransformer:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer) ",options:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/options) ",readable:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/readable) ",writable:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/writable) ",generateKeyFrame:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/generateKeyFrame) ",sendKeyFrameRequest:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/sendKeyFrameRequest) "},RTCTransformEvent:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTransformEvent) ",transformer:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTransformEvent/transformer) "},ReadableByteStreamController:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController) ",byobRequest:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest) ",desiredSize:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize) ",close:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/close) ",enqueue:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue) ",error:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/error) "},ReadableStream:{$:`*
* This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream)
`,locked:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked) ",cancel:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel) ",getReader:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader) ",pipeThrough:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough) ",pipeTo:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo) ",tee:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee) "},ReadableStreamBYOBReader:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) ",read:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) ",releaseLock:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) "},ReadableStreamBYOBRequest:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) ",view:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view) ",respond:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond) ",respondWithNewView:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView) "},ReadableStreamDefaultController:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController) ",desiredSize:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize) ",close:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close) ",enqueue:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue) ",error:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error) "},ReadableStreamDefaultReader:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader) ",read:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read) ",releaseLock:" [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:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report) ",body:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body) ",type:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type) ",url:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url) "},ReportBody:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody) ",toJSON:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON) "},ReportingObserver:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver) ",disconnect:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/disconnect) ",observe:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/observe) ",takeRecords:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/takeRecords) "},Request:{$:`*
* This Fetch API interface represents a resource request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request)
`,cache:`*
* Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache)
`,credentials:`*
* Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/credentials)
`,destination:`*
* Returns the kind of resource requested by request, e.g., "document" or "script".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/destination)
`,headers:`*
* Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/headers)
`,integrity:`*
* Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI]
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity)
`,keepalive:`*
* Returns a boolean indicating whether or not request can outlive the global in which it was created.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive)
`,method:`*
* Returns request's HTTP method, which is "GET" by default.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/method)
`,mode:`*
* Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/mode)
`,redirect:`*
* Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/redirect)
`,referrer:`*
* Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the \`Referer\` header of the request being made.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrer)
`,referrerPolicy:`*
* Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrerPolicy)
`,signal:`*
* Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/signal)
`,url:`*
* Returns the URL of request as a string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/url)
`,clone:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/clone) "},Response:{$:`*
* This Fetch API interface represents the response to a request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response)
`,headers:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/headers) ",ok:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/ok) ",redirected:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirected) ",status:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/status) ",statusText:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/statusText) ",type:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/type) ",url:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/url) ",clone:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/clone) ","static:error":" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static) ","static:json":" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/json_static) ","static:redirect":" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect_static) "},SecurityPolicyViolationEvent:{$:`*
* Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent)
`,blockedURI:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/blockedURI) ",columnNumber:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) ",disposition:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/disposition) ",documentURI:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/documentURI) ",effectiveDirective:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/effectiveDirective) ",lineNumber:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/lineNumber) ",originalPolicy:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/originalPolicy) ",referrer:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/referrer) ",sample:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sample) ",sourceFile:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sourceFile) ",statusCode:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/statusCode) ",violatedDirective:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/violatedDirective) "},ServiceWorker:{$:`*
* This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object.
* 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:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/scriptURL) ",state:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/state) ",postMessage:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/postMessage) "},ServiceWorkerContainer:{$:`*
* The\xA0ServiceWorkerContainer\xA0interface of the\xA0ServiceWorker API\xA0provides 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:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller) ",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:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready) ",getRegistration:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistration) ",getRegistrations:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistrations) ",register:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/register) ",startMessages:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/startMessages) "},ServiceWorkerGlobalScope:{$:`*
* This ServiceWorker API interface 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:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/clients) ",onactivate:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_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:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/registration) ",serviceWorker:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/serviceWorker) ",skipWaiting:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/skipWaiting) "},ServiceWorkerRegistration:{$:`*
* This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)
`,active:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active) ",installing:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/installing) ",navigationPreload:" [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:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) ",scope:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/scope) ",updateViaCache:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updateViaCache) ",waiting:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/waiting) ",getNotifications:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/getNotifications) ",showNotification:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/showNotification) ",unregister:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/unregister) ",update:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/update) "},SharedWorkerGlobalScope:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope) ",name:`*
* Returns sharedWorkerGlobal's name, i.e. the value given to the SharedWorker constructor. Multiple SharedWorker objects can correspond to the same shared worker (and SharedWorkerGlobalScope), by reusing the same name.
*
* [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:`*
* Aborts sharedWorkerGlobal.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope/close)
`},StorageManager:{$:`*
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager)
`,estimate:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/estimate) ",getDirectory:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/getDirectory) ",persisted:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/persisted) "},StylePropertyMapReadOnly:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly) ",size:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/size) ",get:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/get) ",getAll:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/getAll) ",has:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/has) "},SubtleCrypto:{$:`*
* This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto).
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto)
`,decrypt:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt) ",deriveBits:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits) ",deriveKey:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) ",digest:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest) ",encrypt:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/encrypt) ",exportKey:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/exportKey) ",generateKey:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) ",importKey:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) ",sign:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/sign) ",unwrapKey:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) ",verify:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/verify) ",wrapKey:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/wrapKey) "},TextDecoder:{$:`*
* A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc.\xA0A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)
`,decode:`*
* Returns the result of running encoding's decoder. The method can be invoked zero or more times with options's stream set to true, and then once without options's stream (or set to false), to process a fragmented input. If the invocation without options's stream (or set to false) has no input, it's clearest to omit both arguments.
*
* \`\`\`
* var string = "", decoder = new TextDecoder(encoding), buffer;
* while(buffer = next_chunk()) {
* string += decoder.decode(buffer, {stream:true});
* }
* string += decoder.decode(); // end-of-queue
* \`\`\`
*
* If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError.
*
* [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:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream) "},TextEncoder:{$:`*
* TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)
`,encode:`*
* Returns the result of running UTF-8's encoder.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)
`,encodeInto:`*
* Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination.
*
* [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:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream) "},TextMetrics:{$:`*
* The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics)
`,actualBoundingBoxAscent:`*
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxAscent)
`,actualBoundingBoxDescent:`*
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxDescent)
`,actualBoundingBoxLeft:`*
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxLeft)
`,actualBoundingBoxRight:`*
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxRight)
`,alphabeticBaseline:`*
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/alphabeticBaseline)
`,emHeightAscent:`*
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightAscent)
`,emHeightDescent:`*
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightDescent)
`,fontBoundingBoxAscent:`*
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxAscent)
`,fontBoundingBoxDescent:`*
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxDescent)
`,hangingBaseline:`*
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/hangingBaseline)
`,ideographicBaseline:`*
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/ideographicBaseline)
`,width:`*
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/width)
`},TransformStream:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream) ",readable:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable) ",writable:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable) "},TransformStreamDefaultController:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController) ",desiredSize:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize) ",enqueue:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue) ",error:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error) ",terminate:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate) "},URL:{$:`*
* The URL\xA0interface represents an object providing static methods used for creating object URLs.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL)
`,hash:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash) ",host:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host) ",hostname:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname) ",href:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href) ",origin:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/origin) ",password:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password) ",pathname:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname) ",port:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port) ",protocol:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol) ",search:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search) ",searchParams:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams) ",username:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username) ",toJSON:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON) ","static:canParse":" [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) ","static:createObjectURL":" [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) ","static:parse":" [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static) ","static:revokeObjectURL":" [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static) "},URLSearchParams:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams) ",size:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size) ",append:`*
* Appends a specified key/value pair as a new search parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/append)
`,delete:`*
* Deletes the given search parameter, and its associated value, from the list of all search parameters.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete)
`,get:`*
* Returns the first value associated to the given search parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/get)
`,getAll:`*
* Returns all the values association with a given search parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/getAll)
`,has:`*
* Returns a Boolean indicating if such a search parameter exists.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has)
`,set:`*
* Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/set)
`,sort:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort) ",toString:"function toString() { [native code] } Returns a string containing a query string suitable for use in a URL. Does not include the question mark. ",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:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace) ",fullRange:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/fullRange) ",matrix:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/matrix) ",primaries:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/primaries) ",transfer:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/transfer) ",toJSON:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/toJSON) "},VideoDecoder:{$:`*
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder)
`,decodeQueueSize:" [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:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/state) ",close:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/close) ",configure:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/configure) ",decode:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decode) ",flush:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/flush) ",reset:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/reset) ","static:isConfigSupported":" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/isConfigSupported_static) "},VideoEncoder:{$:`*
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder)
`,encodeQueueSize:" [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:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/state) ",close:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/close) ",configure:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/configure) ",encode:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encode) ",flush:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/flush) ",reset:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/reset) ","static:isConfigSupported":" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/isConfigSupported_static) "},VideoFrame:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame) ",codedHeight:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedHeight) ",codedRect:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedRect) ",codedWidth:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedWidth) ",colorSpace:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/colorSpace) ",displayHeight:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayHeight) ",displayWidth:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayWidth) ",duration:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/duration) ",format:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/format) ",timestamp:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/timestamp) ",visibleRect:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/visibleRect) ",allocationSize:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/allocationSize) ",clone:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/clone) ",close:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/close) ",copyTo:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/copyTo) "},WEBGL_color_buffer_float:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_color_buffer_float) "},WEBGL_compressed_texture_astc:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc) ",getSupportedProfiles:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc/getSupportedProfiles) "},WEBGL_compressed_texture_etc:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc) "},WEBGL_compressed_texture_etc1:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc1) "},WEBGL_compressed_texture_pvrtc:{$:" [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:{$:" [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:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders) ",getTranslatedShaderSource:" [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:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers) ",drawBuffersWEBGL:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) "},WEBGL_lose_context:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context) ",loseContext:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext) ",restoreContext:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext) "},WEBGL_multi_draw:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw) ",multiDrawArraysInstancedWEBGL:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) ",multiDrawArraysWEBGL:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) ",multiDrawElementsInstancedWEBGL:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) ",multiDrawElementsWEBGL:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) "},WebGL2RenderingContext:{$:" [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:{$:`*
* 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:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/name) ",size:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/size) ",type:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/type) "},WebGLBuffer:{$:`*
* 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 WebContextEvent 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:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent/statusMessage) "},WebGLFramebuffer:{$:`*
* 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:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLQuery) "},WebGLRenderbuffer:{$:`*
* Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderbuffer)
`},WebGLRenderingContext:{$:`*
* 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:{$:" [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. A WebGLProgram requires both types of shaders.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShader)
`},WebGLShaderPrecisionFormat:{$:`*
* 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:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/precision) ",rangeMax:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMax) ",rangeMin:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMin) "},WebGLSync:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSync) "},WebGLTexture:{$:`*
* 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:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTransformFeedback) "},WebGLUniformLocation:{$:`*
* 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:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObject) "},WebGLVertexArrayObjectOES:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObject) "},WebSocket:{$:`*
* 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:`*
* Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:
*
* Can be set, to change how binary data is returned. The default is "blob".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/binaryType)
`,bufferedAmount:`*
* Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network.
*
* If the WebSocket connection is closed, this attribute's value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.)
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/bufferedAmount)
`,extensions:`*
* Returns the extensions selected by the server, if any.
*
* [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:`*
* Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/protocol)
`,readyState:`*
* Returns the state of the WebSocket object's connection. It can have the values described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
`,url:`*
* Returns the URL that was used to establish the WebSocket connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/url)
`,close:`*
* Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close)
`,send:`*
* Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send)
`},WebTransport:{$:`*
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport)
`,closed:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) ",datagrams:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) ",incomingBidirectionalStreams:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingBidirectionalStreams) ",incomingUnidirectionalStreams:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) ",ready:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) ",close:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/close) ",createBidirectionalStream:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) ",createUnidirectionalStream:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) "},WebTransportBidirectionalStream:{$:`*
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream)
`,readable:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/readable) ",writable:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/writable) "},WebTransportDatagramDuplexStream:{$:`*
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream)
`,incomingHighWaterMark:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark) ",incomingMaxAge:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) ",maxDatagramSize:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize) ",outgoingHighWaterMark:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark) ",outgoingMaxAge:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) ",readable:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable) ",writable:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) "},WebTransportError:{$:`*
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError)
`,source:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/source) ",streamErrorCode:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/streamErrorCode) "},WindowClient:{$:`*
* This ServiceWorker API interface represents the scope of a service worker client that is a document in a browser context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient)
`,focused:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/focused) ",visibilityState:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/visibilityState) ",focus:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/focus) ",navigate:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/navigate) "},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:{$:`*
* This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker)
`,postMessage:`*
* Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/postMessage)
`,terminate:`*
* Aborts worker's associated global environment.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/terminate)
`},WorkerGlobalScope:{location:`*
* Returns workerGlobal's WorkerLocation object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
`,navigator:`*
* Returns workerGlobal's WorkerNavigator object.
*
* [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:`*
* Returns workerGlobal.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/self)
`,importScripts:`*
* Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts)
`},WorkerLocation:{$:`*
* The absolute location of the script executed by the Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.location property obtained by calling self.location.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation)
`,hash:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/hash) ",host:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/host) ",hostname:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/hostname) ",href:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/href) ",origin:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/origin) ",pathname:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/pathname) ",port:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/port) ",protocol:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/protocol) ",search:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/search) "},WorkerNavigator:{$:`*
* A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator)
`,mediaCapabilities:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/mediaCapabilities) ",permissions:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/permissions) ",serviceWorker:`*
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/serviceWorker)
`},WritableStream:{$:`*
* This Streams API interface provides\xA0a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream)
`,locked:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked) ",abort:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort) ",close:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/close) ",getWriter:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter) "},WritableStreamDefaultController:{$:`*
* This Streams API interface represents a controller allowing control of a\xA0WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController)
`,signal:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal) ",error:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) "},WritableStreamDefaultWriter:{$:`*
* This Streams API interface 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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter)
`,closed:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed) ",desiredSize:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize) ",ready:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready) ",abort:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort) ",close:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close) ",releaseLock:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock) ",write:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write) "},XMLHttpRequest:{$:`*
* Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest)
`,onreadystatechange:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readystatechange_event) ",readyState:`*
* Returns client's state.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readyState)
`,response:`*
* Returns the response body.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/response)
`,responseText:`*
* Returns response as text.
*
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseText)
`,responseType:`*
* Returns the response type.
*
* Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".
*
* When set: setting to "document" is ignored if current global object is not a Window object.
*
* When set: throws an "InvalidStateError" DOMException if state is loading or done.
*
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseType)
`,responseURL:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseURL) ",status:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/status) ",statusText:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/statusText) ",timeout:`*
* Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this's synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method).
*
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/timeout)
`,upload:`*
* Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/upload)
`,withCredentials:`*
* True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.
*
* When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/withCredentials)
`,abort:`*
* Cancels any network activity.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/abort)
`,getAllResponseHeaders:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getAllResponseHeaders) ",getResponseHeader:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getResponseHeader) ",open:`*
* Sets the request method, request URL, and synchronous flag.
*
* Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.
*
* Throws a "SecurityError" DOMException if method is a case-insensitive match for \`CONNECT\`, \`TRACE\`, or \`TRACK\`.
*
* Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/open)
`,overrideMimeType:`*
* Acts as if the \`Content-Type\` header value for a response is mime. (It does not change the header.)
*
* Throws an "InvalidStateError" DOMException if state is loading or done.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/overrideMimeType)
`,send:`*
* Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.
*
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/send)
`,setRequestHeader:`*
* Combines a header in author request headers.
*
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
*
* Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/setRequestHeader)
`},XMLHttpRequestEventTarget:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestEventTarget) "},XMLHttpRequestUpload:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestUpload) "},Console:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/console) ",assert:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert_static) ",clear:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static) ",count:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static) ",countReset:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static) ",debug:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static) ",dir:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) ",dirxml:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static) ",error:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static) ",group:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static) ",groupCollapsed:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static) ",groupEnd:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static) ",info:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static) ",log:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static) ",table:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static) ",time:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static) ",timeEnd:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static) ",timeLog:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static) ",trace:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static) ",warn:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static) "},name:{$:`*
* Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging.
*
* [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:{$:`*
* Aborts dedicatedWorkerGlobal.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/close)
`},postMessage:{$:`*
* Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/postMessage)
`},dispatchEvent:{$:`*
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
`},location:{$:`*
* Returns workerGlobal's WorkerLocation object.
*
* [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:{$:`*
* Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss).
*
* [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 G5e={"workerd::jsg":{getCaptureThrowsAsRejections:["isolate"],getShouldSetToStringTag:["isolate"],fullyQualifiedTypeName:["type"],typeName:["type"],makeInternalError:["isolate","internalMessage"],exceptionToJs:["isolate","exception"],throwInternalError:["isolate","exception"],addExceptionDetail:["js","exception","handle"],throwTypeError:["isolate","message","expectedType"],throwIllegalConstructor:["args"],extractTunneledExceptionDescription:["message"],createTunneledException:["isolate","exception"],throwTunneledException:["isolate","exception"],asBytes:["arrayBufferView"],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"],checkNodeSpecifier:["specifier"],isNodeJsCompatEnabled:["js"],isNodeJsProcessV2Enabled:["js"],"operator*":["searchParams"],setAlignedPointerInEmbedderData:["context","slot","ptr"],stripRemoteExceptionPrefix:["internalMessage"],isTunneledException:["internalMessage"],isDoNotLogException:["internalMessage"],tunneledErrorType:["internalMessage"],annotateBroken:["internalMessage","brokennessReason"],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"],arrayBuffer:["data"],visitForGc:["visitor"],next:["js"],return:["js","maybeValue"],throw:["js","exception"],"operator|":["a","b"],"operator&":["a","b"],defaultPlatform:["backgroundThreadCount"],getJsStackTrace:["ucontext","scratch"],setJsCageBase:["cageBase"]},"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::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::ByteString::ByteString":{$constructor:["params"]},"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::Varargs":{$constructor:["index","args"],"operator[]":["index"]},"workerd::jsg::Varargs::Iterator":{$constructor:["index","args"],"operator-":["other"],"operator==":["other"]},"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"],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"],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":{setModuleRegistry:["registry"]},"workerd::jsg::JsContext::JsContext":{$constructor:["handle","object","maybeNewRegistryHandle"],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::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::Lock::alloc":{alloc:["params","params","params","params"]},"workerd::jsg::Lock::allocAccounted":{allocAccounted:["accountedSize","params"]},"workerd::jsg::Lock":{accountedKjString:["str"],accountedByteString:["str"],accountedDOMString:["str"],accountedUSVString:["str"],from:["v8Isolate"],getExternalMemoryAdjustment:["amount"],parseJson:["text"],recursivelyFreeze:["value"],exceptionToJs:["exception"],exceptionToJsValue:["exception"],exceptionToKj:["exception"],throwException:["exception"],rejectedJsPromise:["exception"],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"],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"],resolveInternalModule:["specifier"],resolveModule:["specifier"],$constructor:["v8Isolate"],getInstance:["obj","type"],getPrototypeFor:["type"]},"workerd::jsg::Lock::serializeJson":{serializeJson:["value"]},"workerd::jsg::Lock::tryCatch":{tryCatch:["func","errorHandler"]},"workerd::jsg::Lock::tryOrReject":{tryOrReject:["func"]},"workerd::jsg::Lock::resolvedPromise":{resolvedPromise:["value"]},"workerd::jsg::Lock::rejectedPromise":{rejectedPromise:["exception"]},"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::WrappableFunction::WrappableFunction":{$constructor:["needsGcTracing"],"operator()":["js","args","args","args"],jsgGetMemoryInfo:["tracker"],visitForMemoryInfo:["tracker"]},"workerd::jsg::WrappableFunction":{$constructor:["needsGcTracing"],"operator()":["js","args"],jsgGetMemoryInfo:["tracker"],visitForMemoryInfo:["tracker"]},"workerd::jsg::WrappableFunctionImpl::WrappableFunctionImpl":{$constructor:["func"],"operator()":["js","args"]},"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::jsg::OpaqueWrappable::OpaqueWrappable":{$constructor:["value"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::jsg::OpaqueWrappable":{$constructor:["value"],jsgGetMemoryInfo:["tracker"],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"]},"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"],jsgGetMemoryInfo:["tracker"],rejectedWithNoHandler:["js","promise","value"],handledAfterRejection:["js","promise"],ensureProcessingWarnings:["js"]},"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:{isInterestingException:["e"],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"],setTailWorkerUserSpans:["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"],setStreamingTailWorker:["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"],$constructor:["builder"],"operator=":["other"],setTag:["value"],initTag:["size"],adoptTag:["value"],setMessage:["value"],initMessage:["size"],adoptMessage:["value"],setUpper:["value"],setLower:["value"],mapCopyString:["string"],truncateScriptId:["id"],serializeTagValue:["builder","value"],deserializeTagValue:["value"],spanTagStr:["tag"],spanTagClone:["tag"],newChild:["operationName","startTime"],prepareMulti:["regulator","sqlCode"],newVirtualFileSystem:["fsMap","root","observer"],newWorkerFileSystem:["fsMap","bundleDirectory","observer"],getLazyDirectoryImpl:["func"],setCurrentWorkingDirectory:["newCwd"],throwIfInvalidHeaderValue:["headers"],newPromisedWorkerInterface:["promise"],asHttpClient:["workerInterface"],newRevocableWebSocketWorkerInterface:["worker","revokeProm"],"operator*":["state"],throwExceededMemoryLimit:["isActor"],compileCompatibilityFlags:["compatDate","compatFlags","output","errorReporter","allowExperimentalFeatures","dateValidation"],decompileCompatibilityFlagsForFl:["input"],normalizeCompatDate:["date"]},"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"]},"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::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"],toByteString:["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"]},"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::JsRef::JsRef::JsRef<T>":{$constructor:["js","v8Value"]},"workerd::jsg::JsValueWrapper::JsValueWrapper":{wrap:["js","context","creator","value"]},"workerd::jsg::JsValueWrapper::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"],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::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::NameWrapper":{wrap:["js","context","creator","value"],tryUnwrap:["js","context","handle","parentObject"]},"workerd::jsg::StringWrapper":{wrap:["js","context","creator","value"],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::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::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::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"],unwrap:["wrapper","isolate","context","in"]},"workerd::jsg::StructWrapper":{wrap:["js","context","creator","in"],tryUnwrap:["js","context","handle","parentObject"],getFields:["isolate"]},"workerd::jsg::GeneratorContext::GeneratorContext":{return:["js","maybeValue"],tryClearPendingReturn:["js"]},"workerd::jsg::GeneratorImpl::GeneratorImpl::GeneratorImpl<Generator>":{$constructor:["isolate","object","typeWrapper"]},"workerd::jsg::GeneratorImpl::GeneratorImpl":{visitForGc:["visitor"],setFinished:["maybeReturnValue"]},"workerd::jsg::GeneratorImpl::GeneratorImpl::tryGetFunction":{tryGetFunction:["isolate","object","name","wrapper"]},"workerd::jsg::GeneratorImpl::GeneratorImpl::processResultMaybeDone":{processResultMaybeDone:["js","func","result"]},"workerd::jsg::Generator::Generator::forEach":{forEach:["js","func"]},"workerd::jsg::Generator::Generator":{visitForGc:["visitor"]},"workerd::jsg::Generator::Generator::Generator<T>":{$constructor:["isolate","object","typeWrapper"]},"workerd::jsg::AsyncGenerator::AsyncGenerator::forEach":{forEach:["js","func"]},"workerd::jsg::AsyncGenerator::AsyncGenerator":{next:["js"],return:["js","maybeValue"],throw:["js","exception"],visitForGc:["visitor"]},"workerd::jsg::AsyncGenerator::AsyncGenerator::AsyncGenerator<T>":{$constructor:["isolate","object","typeWrapper"]},"workerd::jsg::AsyncGenerator::AsyncGenerator::loop":{loop:["js","impl","func"]},"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::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::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::util::Autogate":{isEnabled:["key"],initAutogate:["autogates"],initAutogateNamesForTest:["gateNames"],$constructor:["autogates"]},"workerd::util":{"operator*":["key"]},"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::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::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"],setTailWorkerUserSpans:["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"],setStreamingTailWorker:["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"],setTag:["value"],initTag:["size"],adoptTag:["value"],setMessage:["value"],initMessage:["size"],adoptMessage:["value"],setUpper:["value"],setLower:["value"]},"workerd::Pipeline":{$constructor:["typeless"]},"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::rpc::Reader":{$constructor:["base"]},"workerd::rpc::Builder":{$constructor:["base"],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"],setTraceId:["value"],adoptTraceId:["value"],setInvocationId:["value"],adoptInvocationId:["value"],setHigh:["value"],setLow:["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"],setSpans:["value"],initSpans:["size"],adoptSpans:["value"],setTimestampNs:["value"],setLogLevel:["value"],setMessage:["value"],initMessage:["size"],adoptMessage:["value"],setName:["value"],initName:["size"],adoptName:["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"],setEmpty:["value"],setFetch:["value"],adoptFetch:["value"],setCustom:["value"],initCustom:["size"],adoptCustom:["value"],setJsRpc:["value"],adoptJsRpc:["value"],setEntryPoint:["value"],initEntryPoint:["size"],adoptEntryPoint:["value"],setTrigger:["value"],adoptTrigger:["value"],setInfo:["value"],adoptInfo:["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"],setContext:["value"],adoptContext:["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"],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"],setUndefined:["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"],setV8Serialized:["value"],initV8Serialized:["size"],adoptV8Serialized:["value"],setExternals:["value"],initExternals:["size"],adoptExternals:["value"],setInvalid:["value"],setRpcTarget:["value"],adoptRpcTarget:["value"],setAbortTrigger:["value"],setByteStream:["value"],adoptByteStream:["value"],setEncoding:["value"],setUnknown:["value"],setKnown:["value"],setExternalIndex:["value"],setStream:["value"],adoptStream:["value"],setMethodPath:["value"],initMethodPath:["size"],adoptMethodPath:["value"],setResultsStreamSink:["value"],adoptResultsStreamSink:["value"],setCallWithArgs:["value"],adoptCallWithArgs:["value"],setGetProperty:["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"],setDispatcher:["value"],adoptDispatcher:["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"],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"],setEmptyObject:["value"],setJson:["value"],initJson:["size"],adoptJson:["value"],setProperties:["value"],initProperties:["size"],adoptProperties:["value"]},"workerd::rpc::Pipeline":{$constructor:["typeless"]},"workerd::rpc":{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"],setTraceId:["value"],adoptTraceId:["value"],setInvocationId:["value"],adoptInvocationId:["value"],setHigh:["value"],setLow:["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"],setSpans:["value"],initSpans:["size"],adoptSpans:["value"],setTimestampNs:["value"],setLogLevel:["value"],setMessage:["value"],initMessage:["size"],adoptMessage:["value"],setName:["value"],initName:["size"],adoptName:["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"],setEmpty:["value"],setFetch:["value"],adoptFetch:["value"],setCustom:["value"],initCustom:["size"],adoptCustom:["value"],setJsRpc:["value"],adoptJsRpc:["value"],setEntryPoint:["value"],initEntryPoint:["size"],adoptEntryPoint:["value"],setTrigger:["value"],adoptTrigger:["value"],setInfo:["value"],adoptInfo:["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"],setContext:["value"],adoptContext:["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"],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"],setUndefined:["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"],setV8Serialized:["value"],initV8Serialized:["size"],adoptV8Serialized:["value"],setExternals:["value"],initExternals:["size"],adoptExternals:["value"],setInvalid:["value"],setRpcTarget:["cap"],adoptRpcTarget:["value"],setAbortTrigger:["value"],setByteStream:["cap"],adoptByteStream:["value"],setEncoding:["value"],setUnknown:["value"],setKnown:["value"],setExternalIndex:["value"],setStream:["cap"],adoptStream:["value"],setMethodPath:["value"],initMethodPath:["size"],adoptMethodPath:["value"],setResultsStreamSink:["cap"],adoptResultsStreamSink:["value"],setCallWithArgs:["value"],adoptCallWithArgs:["value"],setGetProperty:["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"],setDispatcher:["cap"],adoptDispatcher:["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"],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"],setEmptyObject:["value"],setJson:["value"],initJson:["size"],adoptJson:["value"],setProperties:["value"],initProperties:["size"],adoptProperties:["value"]},"workerd::rpc::Client":{$constructor:["promise"],"operator=":["other"],hibernatableWebSocketEventRequest:["sizeHint"],startStreamRequest:["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"],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"],connectRequest:["sizeHint"]},"workerd::rpc::Client::Client":{$constructor:["promise"]},"workerd::rpc::Server":{dispatchCall:["interfaceId","methodId","context"],hibernatableWebSocketEvent:["context"],dispatchCallInternal:["methodId","context"],startStream:["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"],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"],connect:["context"]},"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::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::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::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::EventTarget::EventListenerOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::EventTarget::AddEventListenerOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::EventTarget::AddEventListenerOptions::registerMembers":{registerMembers:["registry","arg"]},"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::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::CfProperty":{$constructor:["parsed","object"],get:["js"],getRef:["js"],serialize:["js"],deepClone:["js"],visitForGc:["visitor"],jsgGetMemoryInfo:["tracker"]},"workerd::ActorCacheOps":{cloneKey:["ptr"],get:["keys","options"],getAlarm:["options"],list:["begin","end","limit","options"],listReverse:["begin","end","limit","options"],put:["pairs","options","options"],setAlarm:["newTime","options"],delete:["keys","options"]},"workerd::ActorCacheOps::KeyValuePtrPair":{$constructor:["key","value"]},"workerd::ActorCacheOps::KeyValuePtrPairWithCache":{$constructor:["key","value","status"]},"workerd::ActorCacheInterface":{deleteAll:["options"],evictStale:["now"],shutdown:["maybeException"],armAlarmHandler:["scheduledTime","noCache","actorId"],getBookmarkForTime:["timestamp"],onNextSessionRestoreBookmark:["bookmark"],waitForBookmark:["bookmark"]},"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","options"],delete:["keys","options"],setAlarm:["newAlarmTime","options"],deleteAll:["options"],evictStale:["now"],shutdown:["maybeException"],armAlarmHandler:["scheduledTime","noCache","actorId"],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"],getImpl:["entry","options"],ensureFlushScheduled:["options"],flushImpl:["retryCount"],flushImplDeleteAll:["retryCount"],flushImplUsingSinglePut:["putFlush"],flushImplUsingSingleMutedDelete:["mutedFlush"],flushImplUsingSingleCountedDelete:["countedFlush"],flushImplAlarmOnly:["dirty"],flushImplUsingTxn:["putFlush","mutedDeleteFlush","countedDeleteFlushes","maybeAlarmChange"],evictEntry:["lock","entry"],clear:["lock"],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","options"],delete:["keys","options"],setAlarm:["newAlarmTime","options"],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"],toJs:["js"],fromJs:["js","value"],populateJsObject:["js","target"],fromJson:["json"],setProperty:["name","value"]},"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":{"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::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::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::TriggerContext":{$constructor:["ctx","invocationId","spanId"]},"workerd::tracing::Onset":{$constructor:["reader","workerInfo","maybeTrigger"],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"],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"]},"workerd::TraceParentContext":{$constructor:["other","userSpan"],"operator=":["other"]},"workerd::ScopedDurationTagger":{$constructor:["span","key","timer"]},"workerd::WorkerSource":{$constructor:["source"]},"workerd::CacheClient":{getDefault:["metadata"],getNamespace:["name","metadata"]},"workerd::TimerChannel":{atTime:["when"],afterLimitTimeout:["t"]},"workerd::IoChannelFactory":{startSubrequest:["channel","metadata"],getCapability:["channel"],writeLogfwdr:["channel","buildMessage"],getSubrequestChannel:["channel"],getGlobalActor:["channel","id","locationHint","mode","enableReplicaRouting","parentSpan"],getColoLocalActor:["channel","id","parentSpan"],getActorClass:["channel"],abortAllActors:["reason"],loadIsolate:["loaderChannel","name","fetchSource"]},"workerd::IoChannelFactory::SubrequestChannel":{startRequest:["metadata"]},"workerd::WorkerStubChannel":{getEntrypoint:["name","props"],getActorClass:["name","props"]},"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"],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:["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","regulator","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","regulator","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"],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::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"]},"workerd::LimitEnforcer":{enterJs:["lock","context"],newSubrequest:["isInHouse"],newKvRequest:["op"],reportMetrics:["requestMetrics"]},"workerd::RequestTracker::ActiveRequest":{$constructor:["other"]},"workerd::RequestTracker":{$constructor:["hooks"]},"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::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::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::StructuredLogging":{$constructor:["value"],"operator&&":["other"],"operator||":["other"]},"workerd::Worker::ValidationErrorReporter":{addError:["error"],addEntrypoint:["exportName","methods"],addActorClass:["exportName"],addWorkflowClass:["exportName","methods"]},"workerd::Worker":{$constructor:["script","metrics","compileBindings","startType","spans","lockType","errorReporter","startupTime"],takeAsyncLockWithoutRequest:["parentSpan"],takeAsyncLock:["request"],takeAsyncLockWhenActorCacheReady:["now","actor","request"],setConnectOverride:["networkAddress","connectFn"],getConnectOverride:["networkAddress"],setupContext:["lock","context","consoleMode","structuredLogging"],handleLog:["js","mode","level","structuredLogging","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"]},"workerd::Isolate":{$constructor:["api","metrics","id","limitEnforcer","inspectorPolicy","consoleMode","structuredLogging"],from:["js"],newScript:["id","source","startType","parentSpan","vfs","logNewScript","errorReporter","artifacts"],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"],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::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","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"],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"],isNullBodyStatusCode:["statusCode"],isRedirectStatusCode:["statusCode"],serializeV8Value:["js","value"],deserializeV8Value:["js","key","buf"],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"],newIdentityPipe:["expectedLength"],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"],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"],setBroken:["e"]},"workerd::InputGate::Lock":{$constructor:["gate"],isFor:["gate"],"operator==":["other"]},"workerd::InputGate::Waiter":{$constructor:["fulfiller","gate","isChildWaiter"]},"workerd::CriticalSection":{$constructor:["parent"],failed:["e"]},"workerd::OutputGate":{$constructor:["hooks"],setBroken:["e"]},"workerd::OutputGate::lockWhile":{lockWhile:["promise"]},"workerd::lockWhile":{lockWhile:["promise"]},"workerd::ThreadContext::HeaderIdBundle":{$constructor:["builder"]},"workerd::ThreadContext":{$constructor:["timer","entropySource","headerIds","httpOverCapnpFactory","byteStreamFactory","isFiddle"]},"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::IoContext_Runnable_Exceptional":{$constructor:["value"],"operator&&":["other"],"operator||":["other"]},"workerd::WarningAggregator::Key":{"operator==":["other"]},"workerd::WarningAggregator::WarningContext":{},"workerd::WarningAggregator":{$constructor:["context","emitter"],add:["warning"]},"workerd::IoContext_IncomingRequest":{$constructor:["context","ioChannelFactory","metrics","workerTracer","invocationSpanContext"]},"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"],getSubrequestChannelWithSpans:["channel","isInHouse","cfBlobJson","operationName","tags"],getSubrequestChannelNoChecks:["channel","isInHouse","cfBlobJson","operationName"],getHttpClient:["channel","isInHouse","cfBlobJson","traceContext"],getHttpClientWithSpans:["channel","isInHouse","cfBlobJson","operationName","tags"],getHttpClientNoChecks:["channel","isInHouse","cfBlobJson","operationName"],getCapnpChannel:["channel"],getGlobalActorChannel:["channel","id","locationHint","mode","enableReplicaRouting","parentSpan"],getColoLocalActorChannel:["channel","id","parentSpan"],abortAllActors:["reason"],makeAsyncTraceScope:["lock","spanParent"],makeTraceSpan:["operationName"],makeUserTraceSpan:["operationName"],makeCachePutStream:["js","stream"],writeLogfwdr:["channel","buildMessage"],getPromiseContextTag:["js"],getWarningAggregator:["key","load"],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::ReadResult::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::ReadResult::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::ReadResult":{visitForGc:["visitor"]},"workerd::api::StreamQueuingStrategy::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::StreamQueuingStrategy::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::UnderlyingSource::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::UnderlyingSource::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::UnderlyingSink::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::UnderlyingSink::registerMembers":{registerMembers:["registry","arg"]},"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"],cancel:["reason"],tryTee:["limit"]},"workerd::api::PipeToOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::PipeToOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::StreamStates::Erroring":{$constructor:["reason"]},"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"],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:["controller","closedPromise","readyPromise"],replaceReadyPromise:["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:["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::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::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::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::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::ReadableStream::GetReaderOptions::registerMembers":{registerMembers:["registry","arg"]},"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::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::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::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::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::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::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::MessageEvent":{$constructor:["js","type","initializer","lastEventId","source","urlForOrigin"],getData:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"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::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::CloseEvent":{$constructor:["js","type","initializer","clean"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"]},"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::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::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::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"],setJspiEnabled:["enabled"],setCaptureThrowsAsRejections:["capture"],setNodeJsCompatEnabled:["enabled"],setNodeJsProcessV2Enabled:["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"],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::modules::Module":{getDescriptor:["js","observer"],evaluateContext:["context"],instantiate:["js","module","observer"],evaluate:["js","module","observer","maybeEvalCallback"],actuallyEvaluate:["js","module","observer"],newSynthetic:["specifier","type","callback","namedExports","flags"],newEsm:["specifier","type","code","flags"],newTextModuleHandler:["data"],newDataModuleHandler:["data"],newJsonModuleHandler:["data"],newWasmModuleHandler:["data"],compileEvalFunction:["js","code","name","compileExtensions","observer"],$constructor:["specifier","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:["specifier","callback"],alias:["alias","specifier"],$constructor:["type"],ensureIsNotBundleSpecifier:["specifier"]},"workerd::jsg::modules::ModuleBundle::BundleBuilder":{$constructor:["bundleBase"],addSyntheticModule:["specifier","callback","namedExports"],addEsmModule:["specifier","code","flags"],alias:["alias","specifier"]},"workerd::jsg::modules::ModuleBundle::BuiltinBuilder":{$constructor:["type"],addSynthetic:["specifier","callback"],addEsm:["specifier","source"]},"workerd::jsg::modules::ModuleBundle::BuiltinBuilder::addObject":{addObject:["specifier"]},"workerd::jsg::modules::ModuleBundle":{newFallbackBundle:["callback"],getBuiltInBundleFromCapnp:["builder","bundle","options"],resolve:["context"],$constructor:["type"]},"workerd::jsg::modules::ModuleRegistry::Builder":{$constructor:["observer","bundleBase","options"],setParent:["parent"],add:["bundle"],setEvalCallback:["callback"]},"workerd::jsg::modules::ModuleRegistry":{resolve:["js","specifier","exportName","type","source","maybeReferrer"],attachToIsolate:["js","observer"],tryResolveModuleNamespace:["js","specifier","type","source","maybeReferrer"],$constructor:["builder"]},"workerd::api::RpcSerializerExternalHandler":{$constructor:["getStreamSinkFunc"],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::JsRpcSessionCustomEventImpl":{$constructor:["typeId","wrapperModule","paf"],run:["incomingRequest","entrypointName","props","waitUntilTasks"],sendRpc:["httpOverCapnpFactory","byteStreamFactory","dispatcher"],failed:["e"]},"workerd::api::WorkerQueue":{$constructor:["subrequestChannel"],send:["js","body","options"],sendBatch:["js","batch","options"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::WorkerQueue::SendOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::WorkerQueue::SendOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::WorkerQueue::SendBatchOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::WorkerQueue::SendBatchOptions::registerMembers":{registerMembers:["registry","arg"]},"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::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::IncomingQueueMessage::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::QueueRetryBatch::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::QueueRetryBatch::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::QueueRetryMessage::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::QueueRetryMessage::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::QueueResponse::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::QueueResponse::registerMembers":{registerMembers:["registry","arg"]},"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::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::QueueExportedHandler::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::QueueCustomEventImpl":{$constructor:["params"],run:["incomingRequest","entrypointName","props","waitUntilTasks"],sendRpc:["httpOverCapnpFactory","byteStreamFactory","dispatcher"]},"workerd::api::Headers":{$constructor:["js","init","guard"],clone:["js"],shallowCopyTo:["out"],hasLowerCase:["name"],getDisplayedHeaders:["js"],get:["js","name"],getNoChecks:["js","name"],getAll:["name"],has:["name"],set:["js","name","value"],setUnguarded:["js","name","value"],append:["js","name","value"],delete:["name"],forEach:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],serialize:["js","serializer"],deserialize:["js","tag","deserializer"],visitForMemoryInfo:["tracker"]},"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:["key","name","value"],jsgGetMemoryInfo:["tracker"]},"workerd::api::Headers::entryIteratorNext":{entryIteratorNext:["js","state"]},"workerd::api::Headers::keyOrValueIteratorNext":{keyOrValueIteratorNext:["js","state"]},"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"],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"]},"workerd::api::Fetcher::OutgoingFactory":{newSingleUseClient:["cfStr"]},"workerd::api::Fetcher::CrossContextOutgoingFactory":{newSingleUseClient:["context","cfStr"],getSubrequestChannel:["context"]},"workerd::api::Fetcher::PutOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::Fetcher::PutOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::Fetcher::ServiceBindingQueueMessage::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::Fetcher::ServiceBindingQueueMessage::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::Fetcher::QueueResult::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::Fetcher::QueueResult::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::Fetcher::ScheduledOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::Fetcher::ScheduledOptions::registerMembers":{registerMembers:["registry","arg"]},"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::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::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","parentSpan"]},"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::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::DurableObjectNamespace::NewUniqueIdOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::DurableObjectNamespace::GetDurableObjectOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::DurableObjectNamespace::GetDurableObjectOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::DurableObjectNamespace::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::DurableObjectNamespace::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::GlobalActorOutgoingFactory":{$constructor:["channelIdOrFactory","id","locationHint","mode","enableReplicaRouting"],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"]},"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"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::Container::StartupOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::Container::StartupOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::Container::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Container::registerMembers":{registerMembers:["registry"]},"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"],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"],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"],transaction:["js","closure","options"],transactionSync:["js","callback"],deleteAll:["js","options"],sync:["js"],getSql:["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"],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::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::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::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::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::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::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","storage","container","containerRunning","facetManager"],waitUntil:["promise"],getExports:["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::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::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::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","operationName","url","cacheControl","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"],getDesiredSize:["js"],abort:["js","reason"],close:["js"],write:["js","chunk"],releaseLock:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],attach:["controller","closedPromise","readyPromise"],lockToStream:["js","stream"],replaceReadyPromise:["readyPromise"],visitForMemoryInfo:["tracker"],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::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::CryptoKey::KeyAlgorithm::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::CryptoKey::KeyAlgorithm":{jsgGetMemoryInfo:["tracker"]},"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::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::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::CryptoKey::RsaKeyAlgorithm::registerMembers":{registerMembers:["registry","arg"]},"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::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::CryptoKey::ArbitraryKeyAlgorithm::registerMembers":{registerMembers:["registry","arg"]},"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::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::CryptoKeyPair::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::SubtleCrypto::HashAlgorithm::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::SubtleCrypto::HashAlgorithm::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::SubtleCrypto::EncryptAlgorithm::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::SubtleCrypto::EncryptAlgorithm::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::SubtleCrypto::SignAlgorithm::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::SubtleCrypto::SignAlgorithm::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::SubtleCrypto::GenerateKeyAlgorithm::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::SubtleCrypto::GenerateKeyAlgorithm::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::SubtleCrypto::ImportKeyAlgorithm::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::SubtleCrypto::ImportKeyAlgorithm::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::SubtleCrypto::DeriveKeyAlgorithm::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::SubtleCrypto::DeriveKeyAlgorithm::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::SubtleCrypto::JsonWebKey::RsaOtherPrimesInfo::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::SubtleCrypto::JsonWebKey::RsaOtherPrimesInfo::registerMembers":{registerMembers:["registry","arg"]},"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::Decoder":{decode:["js","buffer","flush"]},"workerd::api::AsciiDecoder":{decode:["js","buffer","flush"]},"workerd::api::IcuDecoder":{$constructor:["encoding","converter","ignoreBom"],create:["encoding","fatal","ignoreBom"],decode:["js","buffer","flush"]},"workerd::api::IcuDecoder::ConverterDeleter":{"operator()":["pointer"]},"workerd::api::TextDecoder::ConstructorOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::TextDecoder::ConstructorOptions::registerMembers":{registerMembers:["registry","arg"]},"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::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::ErrorEvent":{$constructor:["js","error"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],getError:["js"]},"workerd::api::EventSource::ErrorEvent::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::EventSource::ErrorEvent::registerMembers":{registerMembers:["registry"]},"workerd::api::EventSource::OpenEvent":{jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::EventSource::OpenEvent::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::EventSource::OpenEvent::registerMembers":{registerMembers:["registry"]},"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::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::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::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::FileSystemModule::ReadLinkOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::FileSystemModule::LinkOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::FileSystemModule::LinkOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::FileSystemModule::OpenOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::FileSystemModule::OpenOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::FileSystemModule::WriteOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::FileSystemModule::WriteOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::FileSystemModule::WriteAllOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::FileSystemModule::WriteAllOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::FileSystemModule::RenameOrCopyOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::FileSystemModule::RenameOrCopyOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::FileSystemModule::MkdirOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::FileSystemModule::MkdirOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::FileSystemModule::RmOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::FileSystemModule::RmOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::FileSystemModule::DirEntHandle::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::FileSystemModule::DirEntHandle::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::FileSystemModule::ReadDirOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::FileSystemModule::ReadDirOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::FileSystemModule::CpOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::FileSystemModule::CpOptions::registerMembers":{registerMembers:["registry","arg"]},"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::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::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::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::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::FileSystemDirectoryHandle::FileSystemGetFileOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::FileSystemDirectoryHandle::FileSystemGetDirectoryOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::FileSystemDirectoryHandle::FileSystemGetDirectoryOptions::registerMembers":{registerMembers:["registry","arg"]},"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::HibernatableSocketParams":{$constructor:["other","id","wasClean","id"],setTimeout:["timeoutMs"]},"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:["port1","port2"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::MessageChannel::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::MessageChannel::registerMembers":{registerMembers:["registry"]},"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::Performance":{jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::Performance::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Performance::registerMembers":{registerMembers:["registry"]},"workerd::api::Cloudflare":{getCompatibilityFlags:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::Cloudflare::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Cloudflare::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::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::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:["message","eventTimeoutMs","websocketId","lock","exportedHandler"],sendHibernatableWebSocketClose:["close","eventTimeoutMs","websocketId","lock","exportedHandler"],sendHibernatableWebSocketError:["e","eventTimeoutMs","websocketId","lock","exportedHandler"],emitPromiseRejection:["js","event","promise","value"],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::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::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::HTMLRewriter::ElementContentHandlers::registerMembers":{registerMembers:["registry","arg"]},"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::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::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:["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::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::KvNamespace::GetOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::KvNamespace::GetWithMetadataResult::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::KvNamespace::GetWithMetadataResult::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::KvNamespace::ListOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::KvNamespace::ListOptions::registerMembers":{registerMembers:["registry","arg"]},"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::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::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"],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::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::CryptoImpl::KeyExportOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::node::CryptoImpl::GenerateKeyPairOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::CryptoImpl::GenerateKeyPairOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::node::CryptoImpl::CreateAsymmetricKeyOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::CryptoImpl::CreateAsymmetricKeyOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::node::CryptoImpl::RsaKeyPairOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::CryptoImpl::RsaKeyPairOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::node::CryptoImpl::DsaKeyPairOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::CryptoImpl::DsaKeyPairOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::node::CryptoImpl::EcKeyPairOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::CryptoImpl::EcKeyPairOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::node::CryptoImpl::EdKeyPairOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::CryptoImpl::EdKeyPairOptions::registerMembers":{registerMembers:["registry","arg"]},"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:["js","mode","algorithm","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::PublicPrivateCipherOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::CryptoImpl::PublicPrivateCipherOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::node::CryptoImpl::CipherInfo::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::CryptoImpl::CipherInfo::registerMembers":{registerMembers:["registry","arg"]},"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::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::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::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::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"]},"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::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::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::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":{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::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::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::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::DnsUtil::CaaRecord::registerMembers":{registerMembers:["registry","arg"]},"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::MimeType":{tryParse:["input","options"],parse:["input","options"],$constructor:["type","subtype","params"],setType:["type"],setSubtype:["type"],addParam:["name","value"],eraseParam:["name"],clone:["options"],"operator==":["other"],isXml:["mimeType"],isJson:["mimeType"],isFont:["mimeType"],isJavascript:["mimeType"],isImage:["mimeType"],isVideo:["mimeType"],isAudio:["mimeType"],isText:["mimeType"],extract:["input"],visitForMemoryInfo:["tracker"],paramsToString:["buffer"],tryParseImpl:["input","options"]},"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::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::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:["value"],getProxyDetails:["value"],previewEntries:["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::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::UtilModule::PromiseDetails::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::node::UtilModule::ProxyDetails::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::UtilModule::ProxyDetails::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::node::UtilModule::PreviewedEntries::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::UtilModule::PreviewedEntries::registerMembers":{registerMembers:["registry","arg"]},"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::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"]},"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::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::public_beta::R2Bucket::Range::registerMembers":{registerMembers:["registry","arg"]},"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::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::public_beta::R2Bucket::GetOptions::registerMembers":{registerMembers:["registry","arg"]},"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::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::public_beta::R2Bucket::HttpMetadata::registerMembers":{registerMembers:["registry","arg"]},"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::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::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::public_beta::R2Bucket::ListResult::registerMembers":{registerMembers:["registry","arg"]},"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::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::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::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::public_beta::R2MultipartUpload::UploadedPart::registerMembers":{registerMembers:["registry","arg"]},"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::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::SocketAddress::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::SocketInfo::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::SocketInfo::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::SocketOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::SocketOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::SocketOptions":{jsgGetMemoryInfo:["tracker"]},"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::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","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::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::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::ConsumerImpl::ConsumerImpl":{$constructor:["other","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:["consumer"],removeConsumer:["consumer"]},"workerd::api::ConsumerImpl::ConsumerImpl::StateListener":{onConsumerClose:["js"],onConsumerError:["js","reason"],onConsumerWantsData:["js"]},"workerd::api::ConsumerImpl::ConsumerImpl::UpdateBackpressureScope":{$constructor:["queue"]},"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:["queue","stateListener"],cancel:["js","maybeReason"],close:["js"],error:["js","reason"],read:["js","request"],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"],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:["queue","stateListener"],cancel:["js","maybeReason"],close:["js"],error:["js","reason"],read:["js","request"],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"],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"],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"],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"],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::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::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::ScriptVersion::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::OTelSpanTag::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::OTelSpanTag::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::OTelSpan":{$constructor:["span"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"]},"workerd::api::OTelSpan::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::OTelSpan::registerMembers":{registerMembers:["registry"]},"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::TraceCustomEventImpl":{$constructor:["typeId","traces"],run:["incomingRequest","entrypointName","props","waitUntilTasks"],sendRpc:["httpOverCapnpFactory","byteStreamFactory","dispatcher"]},"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::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::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::urlpattern::URLPattern::URLPatternInit::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::urlpattern::URLPattern::URLPatternComponentResult::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::urlpattern::URLPattern::URLPatternComponentResult::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::urlpattern::URLPattern::URLPatternResult::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::urlpattern::URLPattern::URLPatternResult::registerMembers":{registerMembers:["registry","arg"]},"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::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::URLPattern::URLPatternInit::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::URLPattern::URLPatternComponentResult::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::URLPattern::URLPatternComponentResult::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::URLPattern::URLPatternResult::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::URLPattern::URLPatternResult::registerMembers":{registerMembers:["registry","arg"]},"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"]}};import XLe from"workerd:rtti";var U5e;function V5e(Q){U5e=Q}var lvt=["function","number","string"];function q5e(Q,M,ge){M==="constructor"&&(M=`$${M}`);let be=U5e?.[Q]?.[M]?.[ge];return be===void 0?`param${ge}`:lvt.includes(be)?`$${be}`:be}var QLe=Yh(th());import $Le from"node:assert";import yLe from"node:assert";import v8 from"node:assert";var Ro=Yh(th());var Ox=Yh(th()),oLe=Ox.default.createSourceFile("placeholder.ts","",Ox.default.ScriptTarget.ESNext,!1,Ox.default.ScriptKind.TS),hY=Ox.default.createPrinter({newLine:Ox.default.NewLineKind.LineFeed});function r0(Q){return hY.printNode(Ox.default.EmitHint.Unspecified,Q,oLe)}function lve(Q){return hY.printList(Ox.default.ListFormat.MultiLine,Ox.factory.createNodeArray(Q),oLe)}import cP from"node:assert";var Ya=Yh(th());function uvt(Q,M){for(let ge=Q.length-1;ge>=0;ge--)if(M(Q[ge],ge,Q))return ge;return-1}function uve(Q){if(Ya.default.isUnionTypeNode(Q)&&Q.types.length===2&&Ya.default.isTypeReferenceNode(Q.types[1])&&Ya.default.isIdentifier(Q.types[1].typeName)&&Q.types[1].typeName.escapedText==="undefined")return Q.types[0]}function cLe(Q){return Q.name==="kj::Maybe"}function _vt(Q){return Q.name==="char"}function fvt(Q){return Q.name==="unsigned char"}function pvt(Q){let M=Q.name;return M==="long"||M==="unsigned long"||M==="long long"||M==="unsigned long long"||M==="jsg::JsBigInt"}function dvt(Q){return Q.name==="kj::ArrayPtr"}function mvt(Q){return Q.name==="jsg::Sequence"}function y8(Q){let M=Ya.default.isTypeReferenceNode(Q)&&Ya.default.isIdentifier(Q.typeName)&&Q.typeName.text==="never",ge=Ya.default.isToken(Q)&&Q.kind==Ya.default.SyntaxKind.NeverKeyword;return M||ge}var gvt=/^workerd::api::public_beta::|^workerd::api::urlpattern::|^workerd::api::node::|^workerd::api::|^workerd::jsg::|::|[ >]/g,hvt=/[<,]/g;function lP(Q){let M;return typeof Q=="string"?(cP(Q.includes("::"),`Expected fully-qualified structure name, got "${Q}"`),M=Q):M=Q.fullyQualifiedName,M=M.replace(gvt,""),M=M.replace(hvt,"_"),M}function yY(Q,M,ge,be=!1){let Le=uvt(ge,br=>!(br._isMaybe&&!cLe(br.maybe)||br._isJsgImpl)),nt=[];for(let br=0;br<ge.length;br++){let Cr=ge[br],gi=n0(Cr,!0,be),Xi,Ui,Ga=Cr.which();if(Ga===pc.MAYBE){let Bl=uve(gi);Bl!==void 0&&br>Le&&(gi=Bl,Ui=Ya.factory.createToken(Ya.default.SyntaxKind.QuestionToken))}else if(Ga===pc.JSG_IMPL){if(Cr.jsgImpl.type===xb.JSG_VARARGS)cP(Ya.default.isArrayTypeNode(gi),`Expected "T[]", got "${r0(gi)}"`),Xi=Ya.factory.createToken(Ya.default.SyntaxKind.DotDotDotToken);else if(y8(gi))continue}let qe=Ya.factory.createParameterDeclaration(void 0,Xi,q5e(Q,M,br),Ui,gi);nt.push(qe)}return nt}function n0(Q,M=!1,ge=!1){cP(!ge||M,'"allowMethodParameterCoercion" requires "allowCoercion"');let be=Q.which();switch(be){case pc.UNKNOWN:return Ya.factory.createTypeReferenceNode("any");case pc.VOIDT:return Ya.factory.createTypeReferenceNode("void");case pc.BOOLT:return Ya.factory.createTypeReferenceNode("boolean");case pc.NUMBER:{let Le=Q.number;return pvt(Le)?Ya.factory.createUnionTypeNode([Ya.factory.createTypeReferenceNode("number"),Ya.factory.createTypeReferenceNode("bigint")]):Ya.factory.createTypeReferenceNode("number")}case pc.PROMISE:{let Le=Q.promise.value;if(ge&&Le.which()===pc.VOIDT)return Ya.factory.createTypeReferenceNode("Promise",[Ya.factory.createTypeReferenceNode("any")]);let nt=n0(Le,M),br=Ya.factory.createTypeReferenceNode("Promise",[nt]);return M?Ya.factory.createUnionTypeNode([nt,br]):br}case pc.STRUCTURE:return Ya.factory.createTypeReferenceNode(lP(Q.structure));case pc.STRING:return Ya.factory.createTypeReferenceNode("string");case pc.OBJECT:return Ya.factory.createTypeReferenceNode("any");case pc.ARRAY:{let Le=Q.array,nt=Le.element;return nt._isNumber&&_vt(nt.number)?Ya.factory.createTypeReferenceNode("string"):nt._isNumber&&fvt(nt.number)?M?Ya.factory.createUnionTypeNode([Ya.factory.createTypeReferenceNode("ArrayBuffer"),Ya.factory.createTypeReferenceNode("ArrayBufferView")]):Ya.factory.createTypeReferenceNode(dvt(Le)?"ArrayBufferView":"ArrayBuffer"):mvt(Le)&&M?Ya.factory.createTypeReferenceNode("Iterable",[n0(nt,M)]):Ya.factory.createArrayTypeNode(n0(nt,M))}case pc.MAYBE:{let Le=Q.maybe,nt=cLe(Le)?"null":"undefined";return Ya.factory.createUnionTypeNode([n0(Le.value,M),Ya.factory.createTypeReferenceNode(nt)])}case pc.DICT:{let Le=Q.dict;return Ya.factory.createTypeReferenceNode("Record",[n0(Le.key,M),n0(Le.value,M)])}case pc.ONE_OF:{let Le=Q.oneOf.variants.map(nt=>n0(nt,M));return Ya.factory.createUnionTypeNode(Le)}case pc.BUILTIN:{let Le=Q.builtin.type;switch(Le){case aP.V8UINT8ARRAY:return Ya.factory.createTypeReferenceNode("Uint8Array");case aP.V8ARRAY_BUFFER_VIEW:return Ya.factory.createTypeReferenceNode("ArrayBufferView");case aP.V8ARRAY_BUFFER:return Ya.factory.createTypeReferenceNode("ArrayBuffer");case aP.JSG_BUFFER_SOURCE:return Ya.factory.createUnionTypeNode([Ya.factory.createTypeReferenceNode("ArrayBuffer"),Ya.factory.createTypeReferenceNode("ArrayBufferView")]);case aP.KJ_DATE:return M?Ya.factory.createUnionTypeNode([Ya.factory.createTypeReferenceNode("number"),Ya.factory.createTypeReferenceNode("Date")]):Ya.factory.createTypeReferenceNode("Date");case aP.V8FUNCTION:return Ya.factory.createTypeReferenceNode("Function");default:cP.fail(`Unknown builtin type: ${Le}`)}}case pc.INTRINSIC:{let Le=Q.intrinsic.name;switch(Le){case"v8::kErrorPrototype":return Ya.factory.createTypeReferenceNode("Error");case"v8::kIteratorPrototype":return Ya.factory.createTypeReferenceNode("Iterator",[Ya.factory.createTypeReferenceNode("unknown")]);case"v8::kAsyncIteratorPrototype":return Ya.factory.createTypeReferenceNode("AsyncIterator",[Ya.factory.createTypeReferenceNode("unknown")]);default:cP.fail(`Unknown intrinsic type: ${Le}`)}}case pc.FUNCTION:{let Le=Q.function,nt=yY("FUNCTION_TODO","FUNCTION_TODO",Le.args.toArray()),br=n0(Le.returnType,!0);return Ya.factory.createFunctionTypeNode(void 0,nt,br)}case pc.JSG_IMPL:{let Le=Q.jsgImpl.type;switch(Le){case xb.CONFIGURATION:case xb.V8ISOLATE:case xb.JSG_LOCK:case xb.JSG_TYPE_HANDLER:case xb.JSG_UNIMPLEMENTED:case xb.JSG_SELF_REF:case xb.V8FUNCTION_CALLBACK_INFO:case xb.V8PROPERTY_CALLBACK_INFO:return Ya.factory.createTypeReferenceNode("never");case xb.JSG_VARARGS:return Ya.factory.createArrayTypeNode(Ya.factory.createTypeReferenceNode("any"));case xb.JSG_NAME:return Ya.factory.createTypeReferenceNode("PropertyKey");default:cP.fail(`Unknown JSG implementation type: ${Le}`)}}case pc.JS_BUILTIN:cP.fail("`JS_BUILTIN`s are not yet supported");default:cP.fail(`Unknown type: ${be}`)}}function _ve(Q,M){let ge=[];M.static&&ge.push(Ro.factory.createToken(Ro.default.SyntaxKind.StaticKeyword));let be=M.name,Le=yY(Q,be,M.args.toArray(),!0),nt=n0(M.returnType);return[ge,be,Le,nt]}function fLe(Q,M,ge){let[be,,Le,nt]=_ve(Q,M),br=Ro.factory.createPropertyAccessExpression(Ro.factory.createIdentifier("Symbol"),ge?"asyncIterator":"iterator"),Cr=Ro.factory.createComputedPropertyName(br);return[be,Cr,Le,nt]}function pLe(Q){v8(!Q.prototype);let M=[];Q.readonly&&M.push(Ro.factory.createToken(Ro.default.SyntaxKind.ReadonlyKeyword));let ge=Q.name,be=n0(Q.type),Le,nt=uve(be);return nt!==void 0&&(be=nt,Le=Ro.factory.createToken(Ro.default.SyntaxKind.QuestionToken)),[M,ge,Le,be]}function dLe(Q){v8(Q.prototype);let M=Q.name,ge=n0(Q.type),be=Ro.factory.createGetAccessorDeclaration(void 0,M,[],ge,void 0);if(Q.readonly)return be;{let Le=Ro.factory.createParameterDeclaration(void 0,void 0,"value",void 0,ge),nt=Ro.factory.createSetAccessorDeclaration(void 0,M,[Le],void 0);return[be,nt]}}function mLe(Q){let M=Q.name,ge=lP(Q.structure),be=Ro.factory.createTypeQueryNode(Ro.factory.createIdentifier(ge));return[M||ge,be]}function gLe(Q){let M=[Ro.factory.createToken(Ro.default.SyntaxKind.StaticKeyword),Ro.factory.createToken(Ro.default.SyntaxKind.ReadonlyKeyword)],ge=Q.name,be=Ro.factory.createTypeReferenceNode("number");return[M,ge,be]}function yvt(Q,M){let ge,be,Le,nt,br,Cr=M.which();switch(Cr){case yd.METHOD:{let gi=M.method;return[ge,be,Le,nt]=_ve(Q,gi),Ro.factory.createMethodSignature(ge,be,void 0,void 0,Le,nt)}case yd.PROPERTY:{let gi=M.property;return gi.prototype?dLe(gi):([ge,be,br,nt]=pLe(gi),Ro.factory.createPropertySignature(ge,be,br,nt))}case yd.NESTED:{let gi=M.nested;return[be,nt]=mLe(gi),Ro.factory.createPropertySignature(void 0,be,void 0,nt)}case yd.CONSTANT:{let gi=M.constant;return[ge,be,nt]=gLe(gi),Ro.factory.createPropertySignature([Ro.factory.createToken(Ro.default.SyntaxKind.ReadonlyKeyword)],be,void 0,nt)}case yd.CONSTRUCTOR:v8.fail("Unexpected constructor member inside interface");default:v8.fail(`Unknown member: ${Cr}`)}}function lLe(Q,M,ge){let[be,Le,nt,br]=fLe(Q,M,ge);return Ro.factory.createMethodSignature(be,Le,void 0,void 0,nt,br)}function vvt(Q,M){let ge,be,Le,nt,br,Cr=M.which();switch(Cr){case yd.METHOD:{let gi=M.method;return[ge,be,Le,nt]=_ve(Q,gi),Ro.factory.createMethodDeclaration(ge,void 0,be,void 0,void 0,Le,nt,void 0)}case yd.PROPERTY:{let gi=M.property;return gi.prototype?dLe(gi):([ge,be,br,nt]=pLe(gi),Ro.factory.createPropertyDeclaration(ge,be,br,nt,void 0))}case yd.NESTED:{let gi=M.nested;return[be,nt]=mLe(gi),Ro.factory.createPropertyDeclaration(void 0,be,void 0,nt,void 0)}case yd.CONSTANT:{let gi=M.constant;return[ge,be,nt]=gLe(gi),Ro.factory.createPropertyDeclaration(ge,be,void 0,nt,void 0)}case yd.CONSTRUCTOR:{let gi=M.$constructor;return Le=yY(Q,"constructor",gi.args.toArray(),!0),Ro.factory.createConstructorDeclaration(void 0,Le,void 0)}default:v8.fail(`Unknown member: ${Cr}`)}}function uLe(Q,M,ge){let[be,Le,nt,br]=fLe(Q,M,ge);return Ro.factory.createMethodDeclaration(be,void 0,Le,void 0,void 0,nt,br,void 0)}function _Le(Q){return Q.filter(M=>!((Ro.default.isPropertySignature(M)||Ro.default.isPropertyDeclaration(M)||Ro.default.isGetAccessorDeclaration(M)||Ro.default.isSetAccessorDeclaration(M)||Ro.default.isMethodSignature(M)||Ro.default.isMethodDeclaration(M))&&M.type!==void 0&&y8(M.type)))}function hLe(Q,M){let{asClass:ge,ambientContext:be=!1}=M,Le=[],nt=lP(Q),br=Q.fullyQualifiedName,Cr=[];if(Q._hasExtends()){let Xi=n0(Q.extends);v8(Ro.default.isTypeReferenceNode(Xi)&&Ro.default.isIdentifier(Xi.typeName),`Expected type reference, got "${r0(Xi)}"`);let Ui=Ro.factory.createExpressionWithTypeArguments(Xi.typeName,Xi.typeArguments);Cr.push(Ro.factory.createHeritageClause(Ro.default.SyntaxKind.ExtendsKeyword,[Ui]))}let gi=Q.members;if(ge){be||Le.push(Ro.factory.createToken(Ro.default.SyntaxKind.DeclareKeyword));let Xi=gi.map(Ga=>vvt(br,Ga)).flat(),Ui=Xi.findIndex(Ga=>Ro.default.isConstructorDeclaration(Ga));if(Ui===-1?Le.push(Ro.factory.createToken(Ro.default.SyntaxKind.AbstractKeyword)):Xi.unshift(...Xi.splice(Ui,1)),Q._hasIterator()){let Ga=Q.iterator;Xi.push(uLe(br,Ga,!1))}if(Q._hasAsyncIterator()){let Ga=Q.asyncIterator;Xi.push(uLe(br,Ga,!0))}return Ro.factory.createClassDeclaration(Le,nt,void 0,Cr,_Le(Xi))}else{let Xi=gi.map(Ui=>yvt(br,Ui)).flat();if(Q._hasIterator()){let Ui=Q.iterator;Xi.push(lLe(br,Ui,!1))}if(Q._hasAsyncIterator()){let Ui=Q.asyncIterator;Xi.push(lLe(br,Ui,!0))}return Ro.factory.createInterfaceDeclaration(Le,nt,void 0,Cr,_Le(Xi))}}function bvt(Q){let M=new Map;return Q.groups.forEach(ge=>{ge.structures.forEach(be=>{M.set(be.fullyQualifiedName,be)})}),M}function Svt(Q,M){let ge=new Set;function be(Cr){switch(Cr.which()){case pc.PROMISE:{be(Cr.promise.value);return}case pc.STRUCTURE:{let gi=Cr.structure.fullyQualifiedName,Xi=Q.get(gi);yLe(Xi!==void 0,`Unknown structure type: ${gi}`);{br(Xi);return}}case pc.ARRAY:{be(Cr.array.element);return}case pc.MAYBE:{be(Cr.maybe.value);return}case pc.DICT:{let gi=Cr.dict;be(gi.key),be(gi.value);return}case pc.ONE_OF:{Cr.oneOf.variants.forEach(be);return}case pc.FUNCTION:{Le(Cr.function);return}}}function Le(Cr){Cr.args.forEach(be),be(Cr.returnType)}function nt(Cr){switch(Cr.which()){case yd.METHOD:{Le(Cr.method);return}case yd.PROPERTY:{be(Cr.property.type);return}case yd.NESTED:{br(Cr.nested.structure);return}case yd.CONSTRUCTOR:{Cr.$constructor.args.forEach(be);return}}}function br(Cr){let gi=Cr.fullyQualifiedName;ge.has(gi)||(ge.add(gi),Cr.members.forEach(nt),Cr._hasExtends()&&be(Cr.extends),Cr._hasIterator()&&Le(Cr.iterator),Cr._hasAsyncIterator()&&Le(Cr.asyncIterator))}if(M===void 0)for(let Cr of Q.values())Cr.tsRoot&&br(Cr);else{let Cr=Q.get(M);yLe(Cr!==void 0,`Unknown root: ${M}`),br(Cr)}return ge}function Tvt(Q){let M=new Set;for(let ge of Q.values()){if(ge._hasExtends()){let be=ge.extends;be._isStructure&&M.add(be.structure.fullyQualifiedName)}ge.members.forEach(be=>{be._isConstructor&&M.add(ge.fullyQualifiedName),be._isMethod&&be.method.static&&M.add(ge.fullyQualifiedName),be._isNested&&M.add(be.nested.structure.fullyQualifiedName)})}return M}function vLe(Q){let M=bvt(Q),ge=Svt(M),be=Tvt(M);return{nodes:Q.groups.map(br=>{let Cr=[];return br.structures.forEach(gi=>{let Xi=gi.fullyQualifiedName;if(ge.has(Xi)){let Ui=be.has(Xi);Cr.push(hLe(gi,{asClass:Ui}))}}),Cr}).flat(),structureMap:M}}var b8=Yh(th());import bLe from"node:assert";var hW=Map,kvt=b8.default.getDefaultCompilerOptions();function SLe(Q,M,ge=kvt,be){let Le=new Map;for(let[br,Cr]of[...Q,...be??[]]){let gi=b8.default.createSourceFile(br,Cr,b8.default.ScriptTarget.ESNext,!1,b8.default.ScriptKind.TS);Le.set(br,gi)}M??={getCurrentDirectory(){return"/"},getCanonicalFileName(br){return br},getDefaultLibFileName(br){return""},getDefaultLibLocation(){return"/node_modules/typescript/lib"},getNewLine(){return`
`},useCaseSensitiveFileNames(){return!0},fileExists(br){return Le.has(br)},readFile(br){bLe.fail("readFile() not implemented")},writeFile(br,Cr,gi){bLe.fail("writeFile() not implemented")},getSourceFile(br,Cr,gi,Xi){return Le.get(br)}};let nt=Array.from(Q.keys());return b8.default.createProgram(nt,ge,M)}var $N=Yh(th());var qy=Yh(th());import xvt from"node:assert";function S8(Q,M){return Q===void 0?!1:Q.some(ge=>ge.kind===M)}function TLe(Q,M,ge){return M!==void 0&&S8(M,ge)?M:[Q.factory.createToken(ge),...M??[]]}function kLe(Q,M,ge){return M!==void 0&&!S8(M,ge)?M:M?.filter(be=>be.kind!==ge)??[]}function qN(Q,M,ge){let be=qy.default.getModifiers(M);return ge.declare!==void 0&&(be=(ge.declare?TLe:kLe)(Q,be,qy.default.SyntaxKind.DeclareKeyword)),ge.export!==void 0&&(be=(ge.export?TLe:kLe)(Q,be,qy.default.SyntaxKind.ExportKeyword)),be}function gw(Q,M,ge){if(qy.default.isClassDeclaration(M))return Q.factory.updateClassDeclaration(M,qN(Q,M,ge),M.name,M.typeParameters,M.heritageClauses,M.members);if(qy.default.isInterfaceDeclaration(M))return Q.factory.updateInterfaceDeclaration(M,qN(Q,M,{...ge,declare:void 0}),M.name,M.typeParameters,M.heritageClauses,M.members);if(qy.default.isEnumDeclaration(M))return Q.factory.updateEnumDeclaration(M,qN(Q,M,ge),M.name,M.members);if(qy.default.isTypeAliasDeclaration(M))return Q.factory.updateTypeAliasDeclaration(M,qN(Q,M,{...ge,declare:void 0}),M.name,M.typeParameters,M.type);if(qy.default.isVariableStatement(M))return Q.factory.updateVariableStatement(M,qN(Q,M,ge),M.declarationList);if(qy.default.isFunctionDeclaration(M))return Q.factory.updateFunctionDeclaration(M,qN(Q,M,ge),M.asteriskToken,M.name,M.typeParameters,M.parameters,M.type,M.body);if(qy.default.isModuleDeclaration(M))return Q.factory.updateModuleDeclaration(M,qN(Q,M,ge),M.name,M.body);if(qy.default.isImportDeclaration(M)||qy.default.isImportEqualsDeclaration(M)||qy.default.isExportDeclaration(M)||qy.default.isExportAssignment(M))return M;xvt.fail(`Expected statement, got "${r0(M)}"`)}function xLe(){return Q=>M=>{let ge=Cvt(Q);return $N.default.visitEachChild(M,ge,Q)}}function Cvt(Q){let M=be=>gw(Q,be,{declare:!1}),ge=be=>$N.default.isModuleBlock(be)?$N.default.visitEachChild(be,M,Q):be;return be=>$N.default.isModuleDeclaration(be)&&(be.flags&$N.default.NodeFlags.Namespace)===0?$N.default.visitEachChild(be,ge,Q):gw(Q,be,{export:!1,declare:!0})}var $y=Yh(th());function CLe(Q){return M=>ge=>{let be=wvt(Q);return $y.default.visitEachChild(ge,be,M)}}function vY(Q,M){M!==void 0&&$y.default.addSyntheticLeadingComment(Q,$y.default.SyntaxKind.MultiLineCommentTrivia,M,!0)}function wvt(Q){return M=>{if(($y.default.isClassDeclaration(M)||$y.default.isInterfaceDeclaration(M))&&M.name!==void 0&&$y.default.isIdentifier(M.name)){let ge=Q[M.name.text];vY(M,ge?.$);for(let be of M.members)if(be.name!==void 0&&$y.default.isIdentifier(be.name)){let Le=be.name.text;$y.default.canHaveModifiers(be)&&S8($y.default.getModifiers(be),$y.default.SyntaxKind.StaticKeyword)&&(Le=`static:${Le}`),vY(be,ge?.[Le])}}if($y.default.isFunctionDeclaration(M)&&M.name!==void 0&&$y.default.isIdentifier(M.name)){let ge=Q[M.name.text];vY(M,ge?.$)}if($y.default.isVariableStatement(M)&&M.declarationList.declarations.length===1){let be=M.declarationList.declarations[0].name;if($y.default.isIdentifier(be)){let Le=Q[be.text];vY(M,Le?.$)}}return M}}var $p=Yh(th());import yW from"node:assert";function wLe(Q){return M=>ge=>{let be=Dvt(M,Q);return $p.default.visitEachChild(ge,be,M)}}function Ivt(Q,M){if(M.size===0)return be=>be;let ge=be=>{if(be=$p.default.visitEachChild(be,ge,Q),$p.default.isTypeReferenceNode(be)&&$p.default.isIdentifier(be.typeName)){let Le=M.get(be.typeName.text);if(Le!==void 0)return Le}return be};return ge}function ILe(Q,M,ge){if(($p.default.isMethodSignature(M)||$p.default.isMethodDeclaration(M))&&$p.default.isIdentifier(M.name))return Q.factory.createFunctionDeclaration(ge,void 0,M.name,M.typeParameters,M.parameters,M.type,void 0);if(($p.default.isPropertySignature(M)||$p.default.isPropertyDeclaration(M)||$p.default.isGetAccessorDeclaration(M))&&$p.default.isIdentifier(M.name)&&(yW(M.type!==void 0),!$p.default.isTypeQueryNode(M.type))){let be=Q.factory.createVariableDeclaration(M.name,void 0,M.type),Le=Q.factory.createVariableDeclarationList([be],$p.default.NodeFlags.Const);return Q.factory.createVariableStatement(ge,Le)}}function Dvt(Q,M){function ge(Le,nt){let br=[],Cr=new Map;Le.typeParameters&&(yW(Le.typeParameters.length===nt?.length,`Expected ${Le.typeParameters.length} type argument(s), got ${nt?.length}`),Le.typeParameters.forEach((Ui,Ga)=>{Cr.set(Ui.name.text,nt[Ga])}));let gi=Ivt(Q,Cr);if(Le.heritageClauses!==void 0)for(let Ui of Le.heritageClauses){Ui=$p.default.visitNode(Ui,gi,$p.default.isHeritageClause);for(let Ga of Ui.types){let qe=M.getSymbolAtLocation(Ga.expression);yW(qe!==void 0);let Bl=qe.getDeclarations();yW.strictEqual(Bl?.length,1);let Dr=Bl[0];yW($p.default.isInterfaceDeclaration(Dr)||$p.default.isClassDeclaration(Dr)),br.push(...ge(Dr,Ga.typeArguments))}}let Xi=[Q.factory.createToken($p.default.SyntaxKind.DeclareKeyword)];for(let Ui of Le.members){let Ga=ILe(Q,Ui,Xi);Ga!==void 0&&br.push($p.default.visitNode(Ga,gi))}return br}return Le=>($p.default.isInterfaceDeclaration(Le)||$p.default.isClassDeclaration(Le))&&Le.name!==void 0&&Le.name.text==="ServiceWorkerGlobalScope"?[Le,...ge(Le)]:Le}var Lx=Yh(th());import DLe from"node:assert";var Pvt={"node-internal:*":"/internal/*","node:*":"/*"};function PLe(){return Q=>M=>{let ge=Nvt(Q);return Lx.default.visitEachChild(M,ge,Q)}}function ALe([Q,M]){return[new RegExp(`^${Q.replace("*","(.+)")}$`),M]}function ELe(Q,M){for(let[ge,be]of Q){let Le=ge.exec(M);if(Le!==null)return Le.at(1)===void 0?be:be.replaceAll("*",Le[1])}}var NLe=Object.entries(Pvt),Avt=NLe.map(ALe),Evt=NLe.map(([Q,M])=>ALe([M,Q]));function Nvt(Q){return M=>{if(Lx.default.isModuleDeclaration(M)&&(M.flags&Lx.default.NodeFlags.Namespace)===0&&Lx.default.isStringLiteral(M.name)){let ge=M.name.text,be=ELe(Avt,ge);if(be===void 0)return M;let Le=Mvt(Q,be);return Lx.default.visitEachChild(M,Le,Q)}return M}}function Mvt(Q,M){DLe(M.startsWith("/"),"Expected absolute referencing path");let ge=new URL(M,"file:"),be=Le=>{if(Lx.default.isImportTypeNode(Le)&&Lx.default.isLiteralTypeNode(Le.argument)&&Lx.default.isStringLiteral(Le.argument.literal)){let nt=Le.argument.literal.text;if(!nt.startsWith("."))return Le;let Cr=new URL(nt,ge).pathname,gi=ELe(Evt,Cr);DLe(gi!==void 0,`Unable to find matching specifier rule for path: "${Cr}"`);let Xi=Q.factory.updateLiteralTypeNode(Le.argument,Q.factory.createStringLiteral(gi));return Q.factory.updateImportTypeNode(Le,Xi,Le.attributes,Le.qualifier,Le.typeArguments,Le.isTypeOf)}return Lx.default.visitEachChild(Le,be,Q)};return be}var bY=Yh(th());function MLe(){return Q=>M=>{let ge=Rvt(Q);return bY.default.visitEachChild(M,ge,Q)}}function Rvt(Q){return M=>{if(!(bY.default.isModuleDeclaration(M)&&(M.flags&bY.default.NodeFlags.Namespace)===0))return gw(Q,M,{export:!0})}}var Gvt=Yh(th());import eSt from"node:assert";var vo=Yh(th());import jx from"node:assert";import Fvt from"node:assert";import SY from"node:path";var Ovt=/^export |^declare |^type |^abstract |^class |^interface |^enum |^const |^var |^function /,Lvt=/^extends |^implements /;function jvt(Q,M){return Ovt.test(M)?[M,!0]:(Lvt.test(M)||M.startsWith("{")?M=`class ${Q} ${M}`:M.startsWith("<")?M=`class ${Q}${M}`:M=`class ${M}`,M.endsWith("}")||(M=`${M} {}`),[M,!1])}var RLe="/$virtual/overrides",FLe="/$virtual/defines";function fve(Q){let M=new hW,ge=new Set;return Q.groups.forEach(be=>{be.structures.forEach(Le=>{let nt=lP(Le),br=Le.tsOverride.trim(),Cr=Le.tsDefine.trim();if(br!==""){let[gi,Xi]=jvt(nt,br);M.set(SY.join(RLe,nt+".ts"),gi),Xi&&ge.add(nt)}Cr!==""&&M.set(SY.join(FLe,nt+".ts"),Cr)})}),[M,ge]}function OLe(Q,M){let ge=SY.join(RLe,M+".ts"),be=Q.getSourceFile(ge);if(be!==void 0)return Fvt.strictEqual(be.statements.length,1),be.statements[0]}function pve(Q,M){let ge=SY.join(FLe,M+".ts");return Q.getSourceFile(ge)?.statements}function WLe(Q,M){return ge=>be=>{let Le={program:Q,replacements:M,renames:new Map},nt=zvt(ge,Le),br=zLe(ge,Le.renames);return be=vo.default.visitEachChild(be,nt,ge),vo.default.visitEachChild(be,br,ge)}}function BLe(Q){if(vo.default.isConstructorDeclaration(Q))return"constructor$";let M=Q.name;jx(M!==void 0,`Expected named member, got "${r0(Q)}"`);let be=vo.default.canHaveModifiers(Q)&&S8(vo.default.getModifiers(Q),vo.default.SyntaxKind.StaticKeyword)?"static$":"instance$";if(vo.default.isIdentifier(M)||vo.default.isStringLiteral(M)||vo.default.isNumericLiteral(M))return be+M.text;if(vo.default.isComputedPropertyName(M)){let Le=M.expression;if(vo.default.isStringLiteral(Le)||vo.default.isNumericLiteral(Le))return be+Le.text}return be+r0(M)}function Wvt(Q){let M=new Map;return Q.forEach(ge=>{let be=BLe(ge),Le=M.get(be);Le===void 0&&M.set(be,Le=[]),Le.push(ge)}),M}function dve(Q,M,ge=0){return Q.findIndex((be,Le)=>ge<=Le&&BLe(be)===M)}function LLe(Q,M,ge){let be=[...Q],Le=Wvt(M);for(let[nt,br]of Le){let gi=br.filter(Ui=>vo.default.isPropertyDeclaration(Ui)&&Ui.type!==void 0?!y8(Ui.type):!0).map(ge),Xi=dve(be,nt);if(Xi===-1)be.push(...gi);else{let Ui=be[Xi],Ga=dve(be,nt,Xi+1);if(vo.default.isGetAccessorDeclaration(Ui)||vo.default.isSetAccessorDeclaration(Ui)){if(Ga!==-1){let qe=be[Ga];jx(vo.default.isGetAccessorDeclaration(qe)||vo.default.isSetAccessorDeclaration(qe),`Expected getter/setter, got "${r0(qe)}"`),jx(Ga>Xi),be.splice(Ga,1);let Bl=dve(be,nt,Ga+1);jx(Bl===-1)}}else jx(Ga===-1);be.splice(Xi,1,...gi)}}return be}function Bvt(Q,M){if(vo.default.isMethodDeclaration(M))return Q.factory.createMethodSignature(vo.default.getModifiers(M),M.name,M.questionToken,M.typeParameters,M.parameters,M.type);if(vo.default.isPropertyDeclaration(M))return Q.factory.createPropertySignature(vo.default.getModifiers(M),M.name,M.questionToken,M.type);if(vo.default.isGetAccessorDeclaration(M)||vo.default.isSetAccessorDeclaration(M)||vo.default.isIndexSignatureDeclaration(M))return M;jx.fail(`Expected interface-compatible member, got "${r0(M)}".
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 jLe(Q,M,ge,be){jx(ge.name!==void 0);let Le=ge.name.text,nt=OLe(M.program,Le),br=M.replacements.has(Le);if(nt!==void 0){let Cr=Jvt(nt);if(Cr!==void 0){let gi=Cr.text;Le!==gi&&M.renames.set(Le,gi)}}return br?(jx(nt!==void 0),gw(Q,nt,{declare:!0,export:!1})):nt!==void 0?(jx(vo.default.isClassDeclaration(nt)),be(ge,nt)):ge}function zvt(Q,M){let ge=Le=>(Le=vo.default.visitEachChild(Le,ge,Q),vo.default.isStringLiteral(Le)?Q.factory.createStringLiteral(Le.text):vo.default.isNumericLiteral(Le)?Q.factory.createNumericLiteral(Le.text):Le),be=Le=>{if(vo.default.isModuleDeclaration(Le)||vo.default.isModuleBody(Le))return vo.default.visitEachChild(Le,be,Q);let nt;return vo.default.isClassDeclaration(Le)&&Le.name!==void 0?(nt=pve(M.program,Le.name.text),Le=jLe(Q,M,Le,(br,Cr)=>Q.factory.updateClassDeclaration(br,br.modifiers,Cr.name,Cr.typeParameters??br.typeParameters,Cr.heritageClauses??br.heritageClauses,LLe(br.members,Cr.members,gi=>gi)))):vo.default.isInterfaceDeclaration(Le)&&(nt=pve(M.program,Le.name.text),Le=jLe(Q,M,Le,(br,Cr)=>(jx(Cr.name!==void 0),Q.factory.updateInterfaceDeclaration(br,br.modifiers,Cr.name,Cr.typeParameters??br.typeParameters,Cr.heritageClauses??br.heritageClauses,LLe(br.members,Cr.members,gi=>Bvt(Q,gi)))))),Le=vo.default.visitNode(Le,ge),nt=vo.default.visitNodes(nt,ge,vo.default.isStatement),nt=vo.default.visitNodes(nt,br=>gw(Q,br,{declare:!0,export:!1}),vo.default.isStatement),vo.default.isTypeAliasDeclaration(Le)&&y8(Le.type)?nt===void 0?void 0:[...nt]:nt==null?Le:[...nt,Le]};return be}function zLe(Q,M,ge=!1){let be=Le=>{if(Le=vo.default.visitEachChild(Le,be,Q),vo.default.isTypeReferenceNode(Le)&&vo.default.isIdentifier(Le.typeName)){let nt=M.get(Le.typeName.text);if(nt!==void 0)return Q.factory.updateTypeReferenceNode(Le,Q.factory.createIdentifier(nt),Le.typeArguments)}if(vo.default.isTypeQueryNode(Le)&&vo.default.isIdentifier(Le.exprName)){let nt=M.get(Le.exprName.text);if(nt!==void 0)return Q.factory.updateTypeQueryNode(Le,Q.factory.createIdentifier(nt),Le.typeArguments)}if(vo.default.isExpressionWithTypeArguments(Le)&&vo.default.isIdentifier(Le.expression)){let nt=M.get(Le.expression.text);if(nt!==void 0)return Q.factory.updateExpressionWithTypeArguments(Le,Q.factory.createIdentifier(nt),Le.typeArguments)}if(ge){if(vo.default.isClassDeclaration(Le)&&Le.name!==void 0&&vo.default.isIdentifier(Le.name)){let nt=M.get(Le.name.text);if(nt!==void 0)return Q.factory.updateClassDeclaration(Le,Le.modifiers,Q.factory.createIdentifier(nt),Le.typeParameters,Le.heritageClauses,Le.members)}if(vo.default.isInterfaceDeclaration(Le)&&vo.default.isIdentifier(Le.name)){let nt=M.get(Le.name.text);if(nt!==void 0)return Q.factory.updateInterfaceDeclaration(Le,Le.modifiers,Q.factory.createIdentifier(nt),Le.typeParameters,Le.heritageClauses,Le.members)}}return Le};return be}function Jvt(Q){if(vo.default.isClassDeclaration(Q)||vo.default.isInterfaceDeclaration(Q)||vo.default.isEnumDeclaration(Q)||vo.default.isTypeAliasDeclaration(Q))return Q.name}var Ff=Yh(th());import uP from"node:assert";function JLe(Q){return M=>ge=>{let be={types:new Map,nextInterfaces:new Set},Le=Uvt(M,Q,be),nt=Vvt(M,Q,be);return ge=Ff.default.visitEachChild(ge,Le,M),Ff.default.visitEachChild(ge,nt,M)}}function Uvt(Q,M,ge){let be=Le=>{if(Ff.default.isModuleDeclaration(Le)||Ff.default.isModuleBody(Le))return Ff.default.visitEachChild(Le,be,Q);if(Ff.default.isInterfaceDeclaration(Le)){let nt=Le.heritageClauses?.[0];if(nt?.token===Ff.default.SyntaxKind.ExtendsKeyword&&nt.types.length===1&&Ff.default.isIdentifier(nt.types[0].expression)&&(nt.types[0].expression.text==="Iterator"||nt.types[0].expression.text==="AsyncIterator")){let br=nt.types[0].expression.text!=="Iterator",Cr;for(let po of Le.members)Ff.default.isMethodSignature(po)&&Ff.default.isIdentifier(po.name)&&po.name.text==="next"&&po.type!==void 0&&(Cr=po.type);uP(Cr!==void 0,`Expected iterator-like interface, got "${r0(Le)}"`),br&&(uP(Ff.default.isTypeReferenceNode(Cr)&&Ff.default.isIdentifier(Cr.typeName)&&Cr.typeName.text==="Promise"&&Cr.typeArguments?.length===1,`Expected Promise, got "${r0(Cr)}"`),Cr=Cr.typeArguments[0]);let Xi=M.getTypeFromTypeNode(Cr).getSymbol();uP(Xi?.members!==void 0);let Ui;Xi.members.forEach((po,vm)=>{vm==="value"&&(Ui=po)}),uP(Ui!==void 0);let Ga=Ui.getDeclarations();uP.strictEqual(Ga?.length,1);let qe=Ga[0];uP(Ff.default.isPropertySignature(qe)),ge.nextInterfaces.add(Xi);let Bl=qe.type;uP(Bl!==void 0);let or=M.getTypeAtLocation(Le).getSymbol();uP(or!==void 0);let rh=Q.factory.createTypeReferenceNode(br?"AsyncIterableIterator":"IterableIterator",[Bl]);ge.types.set(or,rh);return}}return Le};return be}function Vvt(Q,M,ge){function be(nt){if(nt.type===void 0)return;let Cr=M.getTypeFromTypeNode(nt.type).getSymbol();if(Cr!==void 0)return ge.types.get(Cr)}let Le=nt=>{if(Ff.default.isInterfaceDeclaration(nt)){let Cr=M.getTypeAtLocation(nt).getSymbol();if(Cr!==void 0&&ge.nextInterfaces.has(Cr))return}if(Ff.default.isInterfaceDeclaration(nt)||Ff.default.isClassDeclaration(nt)||Ff.default.isModuleDeclaration(nt)||Ff.default.isModuleBody(nt))return Ff.default.visitEachChild(nt,Le,Q);if(Ff.default.isMethodSignature(nt)){let br=be(nt);if(br!==void 0)return Q.factory.updateMethodSignature(nt,nt.modifiers,nt.name,nt.questionToken,nt.typeParameters,nt.parameters,br)}if(Ff.default.isMethodDeclaration(nt)){let br=be(nt);if(br!==void 0)return Q.factory.updateMethodDeclaration(nt,nt.modifiers,nt.asteriskToken,nt.name,nt.questionToken,nt.typeParameters,nt.parameters,br,nt.body)}if(Ff.default.isPropertySignature(nt)){let br=be(nt);if(br!==void 0)return Q.factory.updatePropertySignature(nt,nt.modifiers,nt.name,nt.questionToken,br)}if(Ff.default.isPropertyDeclaration(nt)){let br=be(nt);if(br!==void 0)return Q.factory.updatePropertyDeclaration(nt,nt.modifiers,nt.name,nt.questionToken??nt.exclamationToken,br,nt.initializer)}if(Ff.default.isGetAccessorDeclaration(nt)){let br=be(nt);if(br!==void 0)return Q.factory.updateGetAccessorDeclaration(nt,nt.modifiers,nt.name,nt.parameters,br,nt.body)}return nt};return Le}var bp=Yh(th());function GLe(Q){return M=>{let ge=be=>bp.default.isClassDeclaration(be)&&be.name&&Q.includes(be.name.text)?qvt(be,M):bp.default.visitEachChild(be,ge,M);return be=>{let nt=bp.default.visitNodes(be.statements,ge).filter(bp.default.isStatement);return M.factory.updateSourceFile(be,nt)}}}function qvt(Q,M){let ge=$vt(Q,M);return[Yvt(Q,M),ge]}function $vt(Q,M){let ge=ULe(Q.members,M,!1);return M.factory.createInterfaceDeclaration(VLe(bp.default.getModifiers(Q)),Q.name,Q.typeParameters,Q.heritageClauses,ge)}function ULe(Q,M,ge){return Q.map(be=>Hvt(be,M,ge)).filter(be=>be!==void 0)}function Hvt(Q,M,ge){let be=bp.default.canHaveModifiers(Q)?bp.default.getModifiers(Q):void 0;if((be?.some(Cr=>Cr.kind===bp.default.SyntaxKind.StaticKeyword)??!1)!==ge||(be?.some(Cr=>Cr.kind===bp.default.SyntaxKind.PrivateKeyword)??!1))return;let br=VLe(be);if(bp.default.isPropertyDeclaration(Q))return Qvt(Q,br,M);if(bp.default.isMethodDeclaration(Q))return Kvt(Q,br,M);if(bp.default.isGetAccessor(Q))return Xvt(Q,br,M);if(bp.default.isSetAccessor(Q)||bp.default.isConstructorDeclaration(Q))return;console.warn(`Unhandled member type: ${bp.default.SyntaxKind[Q.kind]}`)}function Qvt(Q,M,ge){return ge.factory.createPropertySignature(M,Q.name,Q.questionToken,Q.type)}function Kvt(Q,M,ge){return ge.factory.createMethodSignature(M,Q.name,Q.questionToken,Q.typeParameters,Q.parameters,Q.type)}function Xvt(Q,M,ge){return ge.factory.createPropertySignature(M,Q.name,void 0,Q.type)}function Yvt(Q,M){return M.factory.createVariableStatement([M.factory.createModifier(bp.default.SyntaxKind.DeclareKeyword)],M.factory.createVariableDeclarationList([M.factory.createVariableDeclaration(Q.name,void 0,Zvt(Q,M))],bp.default.NodeFlags.None))}function Zvt(Q,M){let ge=ULe(Q.members,M,!0);return M.factory.createTypeLiteralNode([t0t(Q,M),e0t(Q,M),...ge])}function e0t(Q,M){let ge=Q.members.find(bp.default.isConstructorDeclaration),be=Q.typeParameters,Le=M.factory.createTypeReferenceNode(Q.name,be?.map(nt=>M.factory.createTypeReferenceNode(nt.name,void 0)));return M.factory.createConstructSignature(be,ge?.parameters??[],Le)}function t0t(Q,M){return M.factory.createPropertySignature(void 0,"prototype",void 0,M.factory.createTypeReferenceNode(Q.name,void 0))}function VLe(Q){return Q?.filter(M=>M.kind===bp.default.SyntaxKind.ReadonlyKeyword||M.kind===bp.default.SyntaxKind.PublicKeyword||M.kind===bp.default.SyntaxKind.ProtectedKeyword||M.kind===bp.default.SyntaxKind.PrivateKeyword)}var T8=Yh(th());function qLe(){return Q=>M=>{let ge=Q.factory.createVariableStatement([Q.factory.createModifier(T8.default.SyntaxKind.DeclareKeyword)],Q.factory.createVariableDeclarationList([Q.factory.createVariableDeclaration("onmessage",void 0,Q.factory.createKeywordTypeNode(T8.default.SyntaxKind.NeverKeyword))],T8.default.NodeFlags.None)),be=T8.default.factory.createNodeArray([ge,...M.statements]);return T8.default.factory.updateSourceFile(M,be)}}var HLe=`/*! *****************************************************************************
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 mve(Q,M,ge){let be=SLe(Q),Le=be.getTypeChecker(),nt=be.getSourceFile(M);$Le(nt!==void 0);let br=QLe.default.transform(nt,ge(be,Le));return $Le.strictEqual(br.transformed.length,1),hY.printFile(br.transformed[0])}function KLe(Q,M,ge){let{nodes:be}=vLe(Q),[Le,nt]=fve(Q),br="/$virtual/source.ts",Cr=lve(be);Le.set(br,lve(be)),Cr=mve(Le,br,(Xi,Ui)=>[JLe(Ui),WLe(Xi,nt),wLe(Ui),GLe(["Request","Response","WebSocket"]),CLe(M),qLe()]),Cr+=ge,Cr=mve(new hW([[br,Cr]]),br,()=>[PLe(),xLe()]);let gi=mve(new hW([[br,Cr]]),br,()=>[MLe()]);return{ambient:HLe+Cr,importable:HLe+gi}}V5e(G5e);var jSt={async fetch(Q){try{let{pathname:M}=new URL(Q.url);if(!/^\/\d{4}-\d{2}-\d{2}\+?/.test(M)&&!M.startsWith("/experimental"))return new Response("Not Found",{status:404});let ge="ambient";M.endsWith(".d.ts")?M=M.slice(0,-5):M.endsWith(".ts")?(M=M.slice(0,-3),ge="importable"):M.endsWith(".bundle")&&(M=M.slice(0,-7),ge="bundle");let[be,...Le]=M.substring(1).split("+"),nt;be==="experimental"?nt=XLe.exportExperimentalTypes():nt=XLe.exportTypes(be,Le);let Cr=new GN(nt,!1).getRoot(g8),{ambient:gi,importable:Xi}=KLe(Cr,J5e,z5e);if(ge==="ambient")return new Response(gi);if(ge==="importable")return new Response(Xi);let Ui=new FormData;return Ui.set("index.d.ts",gi),Ui.set("index.ts",Xi),new Response(Ui)}catch(M){return new Response(M.stack,{status:500})}}};export{jSt 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.
***************************************************************************** *)
*/