/*!-----------------------------------------------------------------------------
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * monaco-typescript version: 2.1.2(a210d77cf42d35831932c488f3869e7dbbcd995a)
 * Released under the MIT license
 * https://github.com/Microsoft/monaco-typescript/blob/master/LICENSE.md
 *-----------------------------------------------------------------------------*/
/*! *****************************************************************************
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.
***************************************************************************** */
var __extends=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},ts;!function(e){var t;!function(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.NumericLiteral=8]="NumericLiteral",e[e.StringLiteral=9]="StringLiteral",e[e.JsxText=10]="JsxText",e[e.RegularExpressionLiteral=11]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=12]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=13]="TemplateHead",e[e.TemplateMiddle=14]="TemplateMiddle",e[e.TemplateTail=15]="TemplateTail",e[e.OpenBraceToken=16]="OpenBraceToken",e[e.CloseBraceToken=17]="CloseBraceToken",e[e.OpenParenToken=18]="OpenParenToken",e[e.CloseParenToken=19]="CloseParenToken",e[e.OpenBracketToken=20]="OpenBracketToken",e[e.CloseBracketToken=21]="CloseBracketToken",e[e.DotToken=22]="DotToken",e[e.DotDotDotToken=23]="DotDotDotToken",e[e.SemicolonToken=24]="SemicolonToken",e[e.CommaToken=25]="CommaToken",e[e.LessThanToken=26]="LessThanToken",e[e.LessThanSlashToken=27]="LessThanSlashToken",e[e.GreaterThanToken=28]="GreaterThanToken",e[e.LessThanEqualsToken=29]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=30]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=31]="EqualsEqualsToken",e[e.ExclamationEqualsToken=32]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=33]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=34]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=35]="EqualsGreaterThanToken",e[e.PlusToken=36]="PlusToken",e[e.MinusToken=37]="MinusToken",e[e.AsteriskToken=38]="AsteriskToken",e[e.AsteriskAsteriskToken=39]="AsteriskAsteriskToken",e[e.SlashToken=40]="SlashToken",e[e.PercentToken=41]="PercentToken",e[e.PlusPlusToken=42]="PlusPlusToken",e[e.MinusMinusToken=43]="MinusMinusToken",e[e.LessThanLessThanToken=44]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=45]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=46]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=47]="AmpersandToken",e[e.BarToken=48]="BarToken",e[e.CaretToken=49]="CaretToken",e[e.ExclamationToken=50]="ExclamationToken",e[e.TildeToken=51]="TildeToken",e[e.AmpersandAmpersandToken=52]="AmpersandAmpersandToken",e[e.BarBarToken=53]="BarBarToken",e[e.QuestionToken=54]="QuestionToken",e[e.ColonToken=55]="ColonToken",e[e.AtToken=56]="AtToken",e[e.EqualsToken=57]="EqualsToken",e[e.PlusEqualsToken=58]="PlusEqualsToken",e[e.MinusEqualsToken=59]="MinusEqualsToken",e[e.AsteriskEqualsToken=60]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=61]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=62]="SlashEqualsToken",e[e.PercentEqualsToken=63]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=64]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=65]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=66]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=67]="AmpersandEqualsToken",e[e.BarEqualsToken=68]="BarEqualsToken",e[e.CaretEqualsToken=69]="CaretEqualsToken",e[e.Identifier=70]="Identifier",e[e.BreakKeyword=71]="BreakKeyword",e[e.CaseKeyword=72]="CaseKeyword",e[e.CatchKeyword=73]="CatchKeyword",e[e.ClassKeyword=74]="ClassKeyword",e[e.ConstKeyword=75]="ConstKeyword",e[e.ContinueKeyword=76]="ContinueKeyword",e[e.DebuggerKeyword=77]="DebuggerKeyword",e[e.DefaultKeyword=78]="DefaultKeyword",e[e.DeleteKeyword=79]="DeleteKeyword",e[e.DoKeyword=80]="DoKeyword",e[e.ElseKeyword=81]="ElseKeyword",e[e.EnumKeyword=82]="EnumKeyword",e[e.ExportKeyword=83]="ExportKeyword",e[e.ExtendsKeyword=84]="ExtendsKeyword",e[e.FalseKeyword=85]="FalseKeyword",e[e.FinallyKeyword=86]="FinallyKeyword",e[e.ForKeyword=87]="ForKeyword",e[e.FunctionKeyword=88]="FunctionKeyword",e[e.IfKeyword=89]="IfKeyword",e[e.ImportKeyword=90]="ImportKeyword",e[e.InKeyword=91]="InKeyword",e[e.InstanceOfKeyword=92]="InstanceOfKeyword",e[e.NewKeyword=93]="NewKeyword",e[e.NullKeyword=94]="NullKeyword",e[e.ReturnKeyword=95]="ReturnKeyword",e[e.SuperKeyword=96]="SuperKeyword",e[e.SwitchKeyword=97]="SwitchKeyword",e[e.ThisKeyword=98]="ThisKeyword",e[e.ThrowKeyword=99]="ThrowKeyword",e[e.TrueKeyword=100]="TrueKeyword",e[e.TryKeyword=101]="TryKeyword",e[e.TypeOfKeyword=102]="TypeOfKeyword",e[e.VarKeyword=103]="VarKeyword",e[e.VoidKeyword=104]="VoidKeyword",e[e.WhileKeyword=105]="WhileKeyword",e[e.WithKeyword=106]="WithKeyword",e[e.ImplementsKeyword=107]="ImplementsKeyword",e[e.InterfaceKeyword=108]="InterfaceKeyword",e[e.LetKeyword=109]="LetKeyword",e[e.PackageKeyword=110]="PackageKeyword",e[e.PrivateKeyword=111]="PrivateKeyword",e[e.ProtectedKeyword=112]="ProtectedKeyword",e[e.PublicKeyword=113]="PublicKeyword",e[e.StaticKeyword=114]="StaticKeyword",e[e.YieldKeyword=115]="YieldKeyword",e[e.AbstractKeyword=116]="AbstractKeyword",e[e.AsKeyword=117]="AsKeyword",e[e.AnyKeyword=118]="AnyKeyword",e[e.AsyncKeyword=119]="AsyncKeyword",e[e.AwaitKeyword=120]="AwaitKeyword",e[e.BooleanKeyword=121]="BooleanKeyword",e[e.ConstructorKeyword=122]="ConstructorKeyword",e[e.DeclareKeyword=123]="DeclareKeyword",e[e.GetKeyword=124]="GetKeyword",e[e.IsKeyword=125]="IsKeyword",e[e.KeyOfKeyword=126]="KeyOfKeyword",e[e.ModuleKeyword=127]="ModuleKeyword",e[e.NamespaceKeyword=128]="NamespaceKeyword",e[e.NeverKeyword=129]="NeverKeyword",e[e.ReadonlyKeyword=130]="ReadonlyKeyword",e[e.RequireKeyword=131]="RequireKeyword",e[e.NumberKeyword=132]="NumberKeyword",e[e.SetKeyword=133]="SetKeyword",e[e.StringKeyword=134]="StringKeyword",e[e.SymbolKeyword=135]="SymbolKeyword",e[e.TypeKeyword=136]="TypeKeyword",e[e.UndefinedKeyword=137]="UndefinedKeyword",e[e.FromKeyword=138]="FromKeyword",e[e.GlobalKeyword=139]="GlobalKeyword",e[e.OfKeyword=140]="OfKeyword",e[e.QualifiedName=141]="QualifiedName",e[e.ComputedPropertyName=142]="ComputedPropertyName",e[e.TypeParameter=143]="TypeParameter",e[e.Parameter=144]="Parameter",e[e.Decorator=145]="Decorator",e[e.PropertySignature=146]="PropertySignature",e[e.PropertyDeclaration=147]="PropertyDeclaration",e[e.MethodSignature=148]="MethodSignature",e[e.MethodDeclaration=149]="MethodDeclaration",e[e.Constructor=150]="Constructor",e[e.GetAccessor=151]="GetAccessor",e[e.SetAccessor=152]="SetAccessor",e[e.CallSignature=153]="CallSignature",e[e.ConstructSignature=154]="ConstructSignature",e[e.IndexSignature=155]="IndexSignature",e[e.TypePredicate=156]="TypePredicate",e[e.TypeReference=157]="TypeReference",e[e.FunctionType=158]="FunctionType",e[e.ConstructorType=159]="ConstructorType",e[e.TypeQuery=160]="TypeQuery",e[e.TypeLiteral=161]="TypeLiteral",e[e.ArrayType=162]="ArrayType",e[e.TupleType=163]="TupleType",e[e.UnionType=164]="UnionType",e[e.IntersectionType=165]="IntersectionType",e[e.ParenthesizedType=166]="ParenthesizedType",e[e.ThisType=167]="ThisType",e[e.TypeOperator=168]="TypeOperator",e[e.IndexedAccessType=169]="IndexedAccessType",e[e.MappedType=170]="MappedType",e[e.LiteralType=171]="LiteralType",e[e.ObjectBindingPattern=172]="ObjectBindingPattern",e[e.ArrayBindingPattern=173]="ArrayBindingPattern",e[e.BindingElement=174]="BindingElement",e[e.ArrayLiteralExpression=175]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=176]="ObjectLiteralExpression",e[e.PropertyAccessExpression=177]="PropertyAccessExpression",e[e.ElementAccessExpression=178]="ElementAccessExpression",e[e.CallExpression=179]="CallExpression",e[e.NewExpression=180]="NewExpression",e[e.TaggedTemplateExpression=181]="TaggedTemplateExpression",e[e.TypeAssertionExpression=182]="TypeAssertionExpression",e[e.ParenthesizedExpression=183]="ParenthesizedExpression",e[e.FunctionExpression=184]="FunctionExpression",e[e.ArrowFunction=185]="ArrowFunction",e[e.DeleteExpression=186]="DeleteExpression",e[e.TypeOfExpression=187]="TypeOfExpression",e[e.VoidExpression=188]="VoidExpression",e[e.AwaitExpression=189]="AwaitExpression",e[e.PrefixUnaryExpression=190]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=191]="PostfixUnaryExpression",e[e.BinaryExpression=192]="BinaryExpression",e[e.ConditionalExpression=193]="ConditionalExpression",e[e.TemplateExpression=194]="TemplateExpression",e[e.YieldExpression=195]="YieldExpression",e[e.SpreadElement=196]="SpreadElement",e[e.ClassExpression=197]="ClassExpression",e[e.OmittedExpression=198]="OmittedExpression",e[e.ExpressionWithTypeArguments=199]="ExpressionWithTypeArguments",e[e.AsExpression=200]="AsExpression",e[e.NonNullExpression=201]="NonNullExpression",e[e.TemplateSpan=202]="TemplateSpan",e[e.SemicolonClassElement=203]="SemicolonClassElement",e[e.Block=204]="Block",e[e.VariableStatement=205]="VariableStatement",e[e.EmptyStatement=206]="EmptyStatement",e[e.ExpressionStatement=207]="ExpressionStatement",e[e.IfStatement=208]="IfStatement",e[e.DoStatement=209]="DoStatement",e[e.WhileStatement=210]="WhileStatement",e[e.ForStatement=211]="ForStatement",e[e.ForInStatement=212]="ForInStatement",e[e.ForOfStatement=213]="ForOfStatement",e[e.ContinueStatement=214]="ContinueStatement",e[e.BreakStatement=215]="BreakStatement",e[e.ReturnStatement=216]="ReturnStatement",e[e.WithStatement=217]="WithStatement",e[e.SwitchStatement=218]="SwitchStatement",e[e.LabeledStatement=219]="LabeledStatement",e[e.ThrowStatement=220]="ThrowStatement",e[e.TryStatement=221]="TryStatement",e[e.DebuggerStatement=222]="DebuggerStatement",e[e.VariableDeclaration=223]="VariableDeclaration",e[e.VariableDeclarationList=224]="VariableDeclarationList",e[e.FunctionDeclaration=225]="FunctionDeclaration",e[e.ClassDeclaration=226]="ClassDeclaration",e[e.InterfaceDeclaration=227]="InterfaceDeclaration",e[e.TypeAliasDeclaration=228]="TypeAliasDeclaration",e[e.EnumDeclaration=229]="EnumDeclaration",e[e.ModuleDeclaration=230]="ModuleDeclaration",e[e.ModuleBlock=231]="ModuleBlock",e[e.CaseBlock=232]="CaseBlock",e[e.NamespaceExportDeclaration=233]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=234]="ImportEqualsDeclaration",e[e.ImportDeclaration=235]="ImportDeclaration",e[e.ImportClause=236]="ImportClause",e[e.NamespaceImport=237]="NamespaceImport",e[e.NamedImports=238]="NamedImports",e[e.ImportSpecifier=239]="ImportSpecifier",e[e.ExportAssignment=240]="ExportAssignment",e[e.ExportDeclaration=241]="ExportDeclaration",e[e.NamedExports=242]="NamedExports",e[e.ExportSpecifier=243]="ExportSpecifier",e[e.MissingDeclaration=244]="MissingDeclaration",e[e.ExternalModuleReference=245]="ExternalModuleReference",e[e.JsxElement=246]="JsxElement",e[e.JsxSelfClosingElement=247]="JsxSelfClosingElement",e[e.JsxOpeningElement=248]="JsxOpeningElement",e[e.JsxClosingElement=249]="JsxClosingElement",e[e.JsxAttribute=250]="JsxAttribute",e[e.JsxSpreadAttribute=251]="JsxSpreadAttribute",e[e.JsxExpression=252]="JsxExpression",e[e.CaseClause=253]="CaseClause",e[e.DefaultClause=254]="DefaultClause",e[e.HeritageClause=255]="HeritageClause",e[e.CatchClause=256]="CatchClause",e[e.PropertyAssignment=257]="PropertyAssignment",e[e.ShorthandPropertyAssignment=258]="ShorthandPropertyAssignment",e[e.SpreadAssignment=259]="SpreadAssignment",e[e.EnumMember=260]="EnumMember",e[e.SourceFile=261]="SourceFile",e[e.JSDocTypeExpression=262]="JSDocTypeExpression",e[e.JSDocAllType=263]="JSDocAllType",e[e.JSDocUnknownType=264]="JSDocUnknownType",e[e.JSDocArrayType=265]="JSDocArrayType",e[e.JSDocUnionType=266]="JSDocUnionType",e[e.JSDocTupleType=267]="JSDocTupleType",e[e.JSDocNullableType=268]="JSDocNullableType",e[e.JSDocNonNullableType=269]="JSDocNonNullableType",e[e.JSDocRecordType=270]="JSDocRecordType",e[e.JSDocRecordMember=271]="JSDocRecordMember",e[e.JSDocTypeReference=272]="JSDocTypeReference",e[e.JSDocOptionalType=273]="JSDocOptionalType",e[e.JSDocFunctionType=274]="JSDocFunctionType",e[e.JSDocVariadicType=275]="JSDocVariadicType",e[e.JSDocConstructorType=276]="JSDocConstructorType",e[e.JSDocThisType=277]="JSDocThisType",e[e.JSDocComment=278]="JSDocComment",e[e.JSDocTag=279]="JSDocTag",e[e.JSDocAugmentsTag=280]="JSDocAugmentsTag",e[e.JSDocParameterTag=281]="JSDocParameterTag",e[e.JSDocReturnTag=282]="JSDocReturnTag",e[e.JSDocTypeTag=283]="JSDocTypeTag",e[e.JSDocTemplateTag=284]="JSDocTemplateTag",e[e.JSDocTypedefTag=285]="JSDocTypedefTag",e[e.JSDocPropertyTag=286]="JSDocPropertyTag",e[e.JSDocTypeLiteral=287]="JSDocTypeLiteral",e[e.JSDocLiteralType=288]="JSDocLiteralType",e[e.JSDocNullKeyword=289]="JSDocNullKeyword",e[e.JSDocUndefinedKeyword=290]="JSDocUndefinedKeyword",e[e.JSDocNeverKeyword=291]="JSDocNeverKeyword",e[e.SyntaxList=292]="SyntaxList",e[e.NotEmittedStatement=293]="NotEmittedStatement",e[e.PartiallyEmittedExpression=294]="PartiallyEmittedExpression",e[e.MergeDeclarationMarker=295]="MergeDeclarationMarker",e[e.EndOfDeclarationMarker=296]="EndOfDeclarationMarker",e[e.Count=297]="Count",e[e.FirstAssignment=57]="FirstAssignment",e[e.LastAssignment=69]="LastAssignment",e[e.FirstCompoundAssignment=58]="FirstCompoundAssignment",e[e.LastCompoundAssignment=69]="LastCompoundAssignment",e[e.FirstReservedWord=71]="FirstReservedWord",e[e.LastReservedWord=106]="LastReservedWord",e[e.FirstKeyword=71]="FirstKeyword",e[e.LastKeyword=140]="LastKeyword",e[e.FirstFutureReservedWord=107]="FirstFutureReservedWord",e[e.LastFutureReservedWord=115]="LastFutureReservedWord",e[e.FirstTypeNode=156]="FirstTypeNode",e[e.LastTypeNode=171]="LastTypeNode",e[e.FirstPunctuation=16]="FirstPunctuation",e[e.LastPunctuation=69]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=140]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=8]="FirstLiteralToken",e[e.LastLiteralToken=12]="LastLiteralToken",e[e.FirstTemplateToken=12]="FirstTemplateToken",e[e.LastTemplateToken=15]="LastTemplateToken",e[e.FirstBinaryOperator=26]="FirstBinaryOperator",e[e.LastBinaryOperator=69]="LastBinaryOperator",e[e.FirstNode=141]="FirstNode",e[e.FirstJSDocNode=262]="FirstJSDocNode",e[e.LastJSDocNode=288]="LastJSDocNode",e[e.FirstJSDocTagNode=278]="FirstJSDocTagNode",e[e.LastJSDocTagNode=291]="LastJSDocTagNode"}(t=e.SyntaxKind||(e.SyntaxKind={}));var r;!function(e){e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.NestedNamespace=4]="NestedNamespace",e[e.Synthesized=8]="Synthesized",e[e.Namespace=16]="Namespace",e[e.ExportContext=32]="ExportContext",e[e.ContainsThis=64]="ContainsThis",e[e.HasImplicitReturn=128]="HasImplicitReturn",e[e.HasExplicitReturn=256]="HasExplicitReturn",e[e.GlobalAugmentation=512]="GlobalAugmentation",e[e.HasAsyncFunctions=1024]="HasAsyncFunctions",e[e.DisallowInContext=2048]="DisallowInContext",e[e.YieldContext=4096]="YieldContext",e[e.DecoratorContext=8192]="DecoratorContext",e[e.AwaitContext=16384]="AwaitContext",e[e.ThisNodeHasError=32768]="ThisNodeHasError",e[e.JavaScriptFile=65536]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=131072]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=262144]="HasAggregatedChildData",e[e.BlockScoped=3]="BlockScoped",e[e.ReachabilityCheckFlags=384]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=1408]="ReachabilityAndEmitFlags",e[e.ContextFlags=96256]="ContextFlags",e[e.TypeExcludesFlags=20480]="TypeExcludesFlags"}(r=e.NodeFlags||(e.NodeFlags={}));var n;!function(e){e[e.None=0]="None",e[e.Export=1]="Export",e[e.Ambient=2]="Ambient",e[e.Public=4]="Public",e[e.Private=8]="Private",e[e.Protected=16]="Protected",e[e.Static=32]="Static",e[e.Readonly=64]="Readonly",e[e.Abstract=128]="Abstract",e[e.Async=256]="Async",e[e.Default=512]="Default",e[e.Const=2048]="Const",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=28]="AccessibilityModifier",e[e.ParameterPropertyModifier=92]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=2270]="TypeScriptModifier",e[e.ExportDefault=513]="ExportDefault"}(n=e.ModifierFlags||(e.ModifierFlags={}));var a;!function(e){e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement"}(a=e.JsxFlags||(e.JsxFlags={}));var i;!function(e){e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.FailedAndReported=3]="FailedAndReported"}(i=e.RelationComparisonResult||(e.RelationComparisonResult={}));var o;!function(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"}(o=e.GeneratedIdentifierKind||(e.GeneratedIdentifierKind={}));var s;!function(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.Referenced=512]="Referenced",e[e.Shared=1024]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition"}(s=e.FlowFlags||(e.FlowFlags={}));var c=function(){function e(){}return e}();e.OperationCanceledException=c;var u;!function(e){e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated"}(u=e.ExitStatus||(e.ExitStatus={}));var _;!function(e){e[e.None=0]="None",e[e.WriteArrayAsGenericType=1]="WriteArrayAsGenericType",e[e.UseTypeOfFunction=2]="UseTypeOfFunction",e[e.NoTruncation=4]="NoTruncation",e[e.WriteArrowStyleSignature=8]="WriteArrowStyleSignature",e[e.WriteOwnNameForAnyLike=16]="WriteOwnNameForAnyLike",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.InElementType=64]="InElementType",e[e.UseFullyQualifiedType=128]="UseFullyQualifiedType",e[e.InFirstTypeArgument=256]="InFirstTypeArgument",e[e.InTypeAlias=512]="InTypeAlias",e[e.UseTypeAliasValue=1024]="UseTypeAliasValue"}(_=e.TypeFormatFlags||(e.TypeFormatFlags={}));var l;!function(e){e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing"}(l=e.SymbolFormatFlags||(e.SymbolFormatFlags={}));var d;!function(e){e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed"}(d=e.SymbolAccessibility||(e.SymbolAccessibility={}));var p;!function(e){e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread"}(p=e.SyntheticSymbolKind||(e.SyntheticSymbolKind={}));var f;!function(e){e[e.This=0]="This",e[e.Identifier=1]="Identifier"}(f=e.TypePredicateKind||(e.TypePredicateKind={}));var m;!function(e){e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.StringLikeType=4]="StringLikeType",e[e.BooleanType=5]="BooleanType",e[e.ArrayLikeType=6]="ArrayLikeType",e[e.ESSymbolType=7]="ESSymbolType",e[e.Promise=8]="Promise",e[e.TypeWithCallSignature=9]="TypeWithCallSignature",e[e.ObjectType=10]="ObjectType"}(m=e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={}));var g;!function(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.ExportType=2097152]="ExportType",e[e.ExportNamespace=4194304]="ExportNamespace",e[e.Alias=8388608]="Alias",e[e.Instantiated=16777216]="Instantiated",e[e.Merged=33554432]="Merged",e[e.Transient=67108864]="Transient",e[e.Prototype=134217728]="Prototype",e[e.SyntheticProperty=268435456]="SyntheticProperty",e[e.Optional=536870912]="Optional",e[e.ExportStar=1073741824]="ExportStar",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=107455]="Value",e[e.Type=793064]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=107454]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=107455]="BlockScopedVariableExcludes",e[e.ParameterExcludes=107455]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=106927]="FunctionExcludes",e[e.ClassExcludes=899519]="ClassExcludes",e[e.InterfaceExcludes=792968]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=106639]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=99263]="MethodExcludes",e[e.GetAccessorExcludes=41919]="GetAccessorExcludes",e[e.SetAccessorExcludes=74687]="SetAccessorExcludes",e[e.TypeParameterExcludes=530920]="TypeParameterExcludes",e[e.TypeAliasExcludes=793064]="TypeAliasExcludes",e[e.AliasExcludes=8388608]="AliasExcludes",e[e.ModuleMember=8914931]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.HasExports=1952]="HasExports",e[e.HasMembers=6240]="HasMembers",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.Export=7340032]="Export",e[e.ClassMember=106500]="ClassMember",e[e.Classifiable=788448]="Classifiable"}(g=e.SymbolFlags||(e.SymbolFlags={}));var y;!function(e){e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.SuperInstance=256]="SuperInstance",e[e.SuperStatic=512]="SuperStatic",e[e.ContextChecked=1024]="ContextChecked",e[e.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",e[e.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",e[e.CaptureArguments=8192]="CaptureArguments",e[e.EnumValuesComputed=16384]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",e[e.CapturedBlockScopedBinding=131072]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=262144]="BlockScopedBindingInLoop",e[e.ClassWithBodyScopedClassBinding=524288]="ClassWithBodyScopedClassBinding",e[e.BodyScopedClassBinding=1048576]="BodyScopedClassBinding",e[e.NeedsLoopOutParameter=2097152]="NeedsLoopOutParameter",e[e.AssignmentsMarked=4194304]="AssignmentsMarked",e[e.ClassWithConstructorReference=8388608]="ClassWithConstructorReference",e[e.ConstructorReferenceInClass=16777216]="ConstructorReferenceInClass"}(y=e.NodeCheckFlags||(e.NodeCheckFlags={}));var v;!function(e){e[e.Any=1]="Any",e[e.String=2]="String",e[e.Number=4]="Number",e[e.Boolean=8]="Boolean",e[e.Enum=16]="Enum",e[e.StringLiteral=32]="StringLiteral",e[e.NumberLiteral=64]="NumberLiteral",e[e.BooleanLiteral=128]="BooleanLiteral",e[e.EnumLiteral=256]="EnumLiteral",e[e.ESSymbol=512]="ESSymbol",e[e.Void=1024]="Void",e[e.Undefined=2048]="Undefined",e[e.Null=4096]="Null",e[e.Never=8192]="Never",e[e.TypeParameter=16384]="TypeParameter",e[e.Object=32768]="Object",e[e.Union=65536]="Union",e[e.Intersection=131072]="Intersection",e[e.Index=262144]="Index",e[e.IndexedAccess=524288]="IndexedAccess",e[e.FreshLiteral=1048576]="FreshLiteral",e[e.ContainsWideningType=2097152]="ContainsWideningType",e[e.ContainsObjectLiteral=4194304]="ContainsObjectLiteral",e[e.ContainsAnyFunctionType=8388608]="ContainsAnyFunctionType",e[e.Nullable=6144]="Nullable",e[e.Literal=480]="Literal",e[e.StringOrNumberLiteral=96]="StringOrNumberLiteral",e[e.DefinitelyFalsy=7392]="DefinitelyFalsy",e[e.PossiblyFalsy=7406]="PossiblyFalsy",e[e.Intrinsic=16015]="Intrinsic",e[e.Primitive=8190]="Primitive",e[e.StringLike=262178]="StringLike",e[e.NumberLike=340]="NumberLike",e[e.BooleanLike=136]="BooleanLike",e[e.EnumLike=272]="EnumLike",e[e.UnionOrIntersection=196608]="UnionOrIntersection",e[e.StructuredType=229376]="StructuredType",e[e.StructuredOrTypeParameter=507904]="StructuredOrTypeParameter",e[e.TypeVariable=540672]="TypeVariable",e[e.Narrowable=1033215]="Narrowable",e[e.NotUnionOrUnit=33281]="NotUnionOrUnit",e[e.RequiresWidening=6291456]="RequiresWidening",e[e.PropagatingFlags=14680064]="PropagatingFlags"}(v=e.TypeFlags||(e.TypeFlags={}));var h;!function(e){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.ClassOrInterface=3]="ClassOrInterface"}(h=e.ObjectFlags||(e.ObjectFlags={}));var b;!function(e){e[e.Call=0]="Call",e[e.Construct=1]="Construct"}(b=e.SignatureKind||(e.SignatureKind={}));var k;!function(e){e[e.String=0]="String",e[e.Number=1]="Number"}(k=e.IndexKind||(e.IndexKind={}));var x;!function(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"}(x=e.SpecialPropertyAssignmentKind||(e.SpecialPropertyAssignmentKind={}));var D;!function(e){e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Message=2]="Message"}(D=e.DiagnosticCategory||(e.DiagnosticCategory={}));var S;!function(e){e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs"}(S=e.ModuleResolutionKind||(e.ModuleResolutionKind={}));var C;!function(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"}(C=e.ModuleKind||(e.ModuleKind={}));var E;!function(e){e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React"}(E=e.JsxEmit||(e.JsxEmit={}));var T;!function(e){e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed"}(T=e.NewLineKind||(e.NewLineKind={}));var N;!function(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"}(N=e.ScriptKind||(e.ScriptKind={}));var A;!function(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.ESNext=5]="ESNext",e[e.Latest=5]="Latest"}(A=e.ScriptTarget||(e.ScriptTarget={}));var w;!function(e){e[e.Standard=0]="Standard",e[e.JSX=1]="JSX"}(w=e.LanguageVariant||(e.LanguageVariant={}));var P;!function(e){e[e.Simple=0]="Simple",e[e.Pretty=1]="Pretty"}(P=e.DiagnosticStyle||(e.DiagnosticStyle={}));var F;!function(e){e[e.None=0]="None",e[e.Recursive=1]="Recursive"}(F=e.WatchDirectoryFlags||(e.WatchDirectoryFlags={}));var O;!function(e){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._=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"}(O=e.CharacterCodes||(e.CharacterCodes={}));var I;!function(e){e[e.Ts=0]="Ts",e[e.Tsx=1]="Tsx",e[e.Dts=2]="Dts",e[e.Js=3]="Js",e[e.Jsx=4]="Jsx",e[e.LastTypeScriptExtension=2]="LastTypeScriptExtension"}(I=e.Extension||(e.Extension={}));var R;!function(e){e[e.None=0]="None",e[e.TypeScript=1]="TypeScript",e[e.ContainsTypeScript=2]="ContainsTypeScript",e[e.ContainsJsx=4]="ContainsJsx",e[e.ContainsESNext=8]="ContainsESNext",e[e.ContainsES2017=16]="ContainsES2017",e[e.ContainsES2016=32]="ContainsES2016",e[e.ES2015=64]="ES2015",e[e.ContainsES2015=128]="ContainsES2015",e[e.Generator=256]="Generator",e[e.ContainsGenerator=512]="ContainsGenerator",e[e.DestructuringAssignment=1024]="DestructuringAssignment",e[e.ContainsDestructuringAssignment=2048]="ContainsDestructuringAssignment",e[e.ContainsDecorators=4096]="ContainsDecorators",e[e.ContainsPropertyInitializer=8192]="ContainsPropertyInitializer",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsCapturedLexicalThis=32768]="ContainsCapturedLexicalThis",e[e.ContainsLexicalThisInComputedPropertyName=65536]="ContainsLexicalThisInComputedPropertyName",e[e.ContainsDefaultValueAssignments=131072]="ContainsDefaultValueAssignments",e[e.ContainsParameterPropertyAssignments=262144]="ContainsParameterPropertyAssignments",e[e.ContainsSpread=524288]="ContainsSpread",e[e.ContainsObjectSpread=1048576]="ContainsObjectSpread",e[e.ContainsRest=524288]="ContainsRest",e[e.ContainsObjectRest=1048576]="ContainsObjectRest",e[e.ContainsComputedPropertyName=2097152]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=4194304]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=8388608]="ContainsBindingPattern",e[e.ContainsYield=16777216]="ContainsYield",e[e.ContainsHoistedDeclarationOrCompletion=33554432]="ContainsHoistedDeclarationOrCompletion",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AssertTypeScript=3]="AssertTypeScript",e[e.AssertJsx=4]="AssertJsx",e[e.AssertESNext=8]="AssertESNext",e[e.AssertES2017=16]="AssertES2017",
e[e.AssertES2016=32]="AssertES2016",e[e.AssertES2015=192]="AssertES2015",e[e.AssertGenerator=768]="AssertGenerator",e[e.AssertDestructuringAssignment=3072]="AssertDestructuringAssignment",e[e.NodeExcludes=536872257]="NodeExcludes",e[e.ArrowFunctionExcludes=601249089]="ArrowFunctionExcludes",e[e.FunctionExcludes=601281857]="FunctionExcludes",e[e.ConstructorExcludes=601015617]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=601015617]="MethodOrAccessorExcludes",e[e.ClassExcludes=539358529]="ClassExcludes",e[e.ModuleExcludes=574674241]="ModuleExcludes",e[e.TypeExcludes=-3]="TypeExcludes",e[e.ObjectLiteralExcludes=540087617]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=537396545]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=546309441]="VariableDeclarationListExcludes",e[e.ParameterExcludes=536872257]="ParameterExcludes",e[e.CatchClauseExcludes=537920833]="CatchClauseExcludes",e[e.BindingPatternExcludes=537396545]="BindingPatternExcludes",e[e.TypeScriptClassSyntaxMask=274432]="TypeScriptClassSyntaxMask",e[e.ES2015FunctionSyntaxMask=163840]="ES2015FunctionSyntaxMask"}(R=e.TransformFlags||(e.TransformFlags={}));var L;!function(e){e[e.SingleLine=1]="SingleLine",e[e.AdviseOnEmitNode=2]="AdviseOnEmitNode",e[e.NoSubstitution=4]="NoSubstitution",e[e.CapturesThis=8]="CapturesThis",e[e.NoLeadingSourceMap=16]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=32]="NoTrailingSourceMap",e[e.NoSourceMap=48]="NoSourceMap",e[e.NoNestedSourceMaps=64]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=384]="NoTokenSourceMaps",e[e.NoLeadingComments=512]="NoLeadingComments",e[e.NoTrailingComments=1024]="NoTrailingComments",e[e.NoComments=1536]="NoComments",e[e.NoNestedComments=2048]="NoNestedComments",e[e.HelperName=4096]="HelperName",e[e.ExportName=8192]="ExportName",e[e.LocalName=16384]="LocalName",e[e.Indented=32768]="Indented",e[e.NoIndentation=65536]="NoIndentation",e[e.AsyncFunctionBody=131072]="AsyncFunctionBody",e[e.ReuseTempVariableScope=262144]="ReuseTempVariableScope",e[e.CustomPrologue=524288]="CustomPrologue",e[e.NoHoisting=1048576]="NoHoisting",e[e.HasEndOfDeclarationMarker=2097152]="HasEndOfDeclarationMarker"}(L=e.EmitFlags||(e.EmitFlags={}));var M;!function(e){e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=128]="LastEmitHelper"}(M=e.ExternalEmitHelpers||(e.ExternalEmitHelpers={}));var B;!function(e){e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.Unspecified=3]="Unspecified"}(B=e.EmitContext||(e.EmitContext={}))}(ts||(ts={}));var ts;!function(e){e.timestamp="undefined"!=typeof performance&&performance.now?function(){return performance.now()}:Date.now?Date.now:function(){return+new Date}}(ts||(ts={})),function(e){var t;!function(t){function r(t){p&&(_[t]=e.timestamp(),u[t]=(u[t]||0)+1,d(t))}function n(t,r,n){if(p){var a=n&&_[n]||e.timestamp(),i=r&&_[r]||f;l[t]=(l[t]||0)+(a-i)}}function a(e){return u&&u[e]||0}function i(e){return l&&l[e]||0}function o(e){for(var t in l)e(t,l[t])}function s(){u=e.createMap(),_=e.createMap(),l=e.createMap(),p=!0,f=e.timestamp()}function c(){p=!1}var u,_,l,d="function"==typeof onProfilerEvent&&onProfilerEvent.profiler===!0?onProfilerEvent:function(e){},p=!1,f=0;t.mark=r,t.measure=n,t.getCount=a,t.getDuration=i,t.forEachMeasure=o,t.enable=s,t.disable=c}(t=e.performance||(e.performance={}))}(ts||(ts={}));var ts;!function(e){e.version="2.1.5"}(ts||(ts={})),function(e){function t(e){var t=Qt(null);t.__=void 0,delete t.__;for(var r in e)Zt.call(e,r)&&(t[r]=e[r]);return t}function r(e){function r(e){for(var t in _)e(t,_[t])}function n(){var e=[];for(var t in _)e.push(t);return e}function a(e){return _[u(e)]}function i(e,t){_[u(e)]=t}function o(e){return u(e)in _}function s(e){var t=u(e);delete _[t]}function c(){_=t()}function u(t){return e?e(t):t}var _=t();return{get:a,set:i,contains:o,remove:s,forEachValue:r,getKeys:n,clear:c}}function n(e,t,r){var n=Je(e)?Pe(e):Ue(e,t);return r(n)}function a(e,t){if(e)for(var r=0,n=e.length;r<n;r++){var a=t(e[r],r);if(a)return a}}function i(e,t,r){cr.assert(e.length===t.length);for(var n=0;n<e.length;n++)r(e[n],t[n],n)}function o(e,t){if(e)for(var r=0,n=e.length;r<n;r++)if(!t(e[r],r))return!1;return!0}function s(e,t){for(var r=0,n=e.length;r<n;r++){var a=e[r];if(t(a,r))return a}}function c(e,t){for(var r=0,n=e.length;r<n;r++){var a=t(e[r],r);if(a)return a}cr.fail()}function u(e,t){if(e)for(var r=0,n=e;r<n.length;r++){var a=n[r];if(a===t)return!0}return!1}function _(e,t){if(e)for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function l(e,t,r){for(var n=r||0,a=e.length;n<a;n++)if(u(t,e.charCodeAt(n)))return n;return-1}function d(e,t){var r=0;if(e)for(var n=0;n<e.length;n++){var a=e[n];t(a,n)&&r++}return r}function p(e,t){if(e){for(var r=e.length,n=0;n<r&&t(e[n]);)n++;if(n<r){var a=e.slice(0,n);for(n++;n<r;){var i=e[n];t(i)&&a.push(i),n++}return a}}return e}function f(e,t){for(var r=0,n=0,a=e;n<a.length;n++){var i=a[n];t(i)||(e[r]=i,r++)}return r!==e.length&&(e.length=r,!0)}function m(e,t){for(var r=0,n=0,a=e;n<a.length;n++){var i=a[n];t(i)&&(e[r]=i,r++)}e.length=r}function g(e,t){var r;if(e){r=[];for(var n=0;n<e.length;n++)r.push(t(e[n],n))}return r}function y(e,t){var r;if(e)for(var n=0;n<e.length;n++)if(r)r.push(t(e[n],n));else{var a=e[n],i=t(a,n);a!==i&&(r=e.slice(0,n),r.push(i))}return r||e}function v(e){var t;if(e){t=[];for(var r=0,n=e;r<n.length;r++){var a=n[r];a&&(oe(a)?F(t,a):t.push(a))}}return t}function h(e,t){var r;if(e){r=[];for(var n=0;n<e.length;n++){var a=t(e[n],n);a&&(oe(a)?F(r,a):r.push(a))}}return r}function b(e,t){if(e){for(var r=0;r<e.length;r++)if(!t(e[r],r))return[e.slice(0,r),e.slice(r)];return[e.slice(0),[]]}}function k(e,t,r){var n;if(e){n=[];for(var a=e.length,i=void 0,o=void 0,s=0,c=0;s<a;){for(;c<a;){var u=e[c];if(o=t(u,c),0===c)i=o;else if(o!==i)break;c++}if(s<c){var _=r(e.slice(s,c),i,s,c);_&&n.push(_),s=c}i=o,c++}}return n}function x(e,t){var r;if(e){r={};for(var n=0,a=q(e);n<a.length;n++){var i=a[n],o=t(i,e[i])||[void 0,void 0],s=o[0],c=o[1];void 0!==s&&(r[s]=c)}}return r}function D(e,t){if(e){if(!t)return e.length>0;for(var r=0,n=e;r<n.length;r++){var a=n[r];if(t(a))return!0}}return!1}function S(e,t){return D(t)?D(e)?e.concat(t):t:e}function C(e,t){var r;if(e){r=[];e:for(var n=0,a=e;n<a.length;n++){for(var i=a[n],o=0,s=r;o<s.length;o++){var c=s[o];if(t?t(c,i):c===i)continue e}r.push(i)}}return r}function E(e,t,r){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var a=r?r(e[n],t[n]):e[n]===t[n];if(!a)return!1}return!0}function T(e,t){return!(e&&e.module===t.module&&e.moduleResolution===t.moduleResolution&&e.noResolve===t.noResolve&&e.target===t.target&&e.noLib===t.noLib&&e.jsx===t.jsx&&e.allowJs===t.allowJs&&e.rootDir===t.rootDir&&e.configFilePath===t.configFilePath&&e.baseUrl===t.baseUrl&&e.maxNodeModuleJsDepth===t.maxNodeModuleJsDepth&&E(e.lib,t.lib)&&E(e.typeRoots,t.typeRoots)&&E(e.rootDirs,t.rootDirs)&&Z(e.paths,t.paths))}function N(e){var t;if(e)for(var r=0;r<e.length;r++){var n=e[r];!t&&n||(t||(t=e.slice(0,r)),n&&t.push(n))}return t||e}function A(e,t,r,n,a){if(void 0===r&&(r=be),void 0===n&&(n=0),void 0===a&&(a=0),!t||!e||0===t.length||0===e.length)return t;var i=[];e:for(;a<t.length;a++){t:for(;n<e.length;n++)switch(r(t[a],e[n])){case-1:break t;case 0:continue e;case 1:continue t}i.push(t[a])}return i}function w(e,t){for(var r=0,n=0,a=e;n<a.length;n++){var i=a[n];r+=i[t]}return r}function P(e,t){return void 0===t?e:void 0===e?[t]:(e.push(t),e)}function F(e,t){if(void 0===t)return e;for(var r=0,n=t;r<n.length;r++){var a=n[r];e=P(e,a)}return e}function O(e,t){return void 0===t&&(t=be),e.map(function(e,t){return t}).sort(function(r,n){return t(e[r],e[n])||be(r,n)}).map(function(t){return e[t]})}function I(e,t,r,n){for(;r<n;){if(e[r]!==t[r])return!1;r++}return!0}function R(e){return e&&e.length>0?e[0]:void 0}function L(e){return e&&e.length>0?e[e.length-1]:void 0}function M(e){return e&&1===e.length?e[0]:void 0}function B(e){return e&&1===e.length?e[0]:e}function K(e,t,r){var n=e.slice(0);return n[t]=r,n}function J(e,t,r,n){if(!e||0===e.length)return-1;var a=n||0,i=e.length-1;for(r=void 0!==r?r:function(e,t){return e<t?-1:e>t?1:0};a<=i;){var o=a+(i-a>>1),s=e[o];if(0===r(s,t))return o;r(s,t)>0?i=o-1:a=o+1}return~a}function z(e,t,r,n,a){if(e&&e.length>0){var i=e.length;if(i>0){var o=void 0===n||n<0?0:n,s=void 0===a||o+a>i-1?i-1:o+a,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=r;o<=s;)c=t(c,e[o],o),o++;return c}}return r}function j(e,t,r,n,a){if(e){var i=e.length;if(i>0){var o=void 0===n||n>i-1?i-1:n,s=void 0===a||o-a<0?0:o-a,c=void 0;for(arguments.length<=2?(c=e[o],o--):c=r;o>=s;)c=t(c,e[o],o),o--;return c}}return r}function V(e,t){return Zt.call(e,t)}function U(e,t){return Zt.call(e,t)?e[t]:void 0}function q(e){var t=[];for(var r in e)Zt.call(e,r)&&t.push(r);return t}function W(e,t){var r;for(var n in e)if(r=t(e[n],n))break;return r}function H(e,t){for(var r in e)if(!t||t(e[r],r))return!0;return!1}function G(e,t){for(var r in e)t[r]=e[r]}function X(e,r,n){return void 0===r||void 0===n?e:(void 0===e&&(e=t()),e[r]=n,e)}function Q(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,a=t;n<a.length;n++)for(var i=a[n],o=0,s=q(i);o<s.length;o++){var c=s[o];e[c]=i[c]}return e}function Y(e,t,r){var n=r;for(var a in e)n=t(n,e[a],String(a));return n}function Z(e,t,r){if(e===t)return!0;if(!e||!t)return!1;for(var n in e)if(Zt.call(e,n)){if(void 0===!Zt.call(t,n))return!1;if(r?!r(e[n],t[n]):e[n]!==t[n])return!1}for(var n in t)if(Zt.call(t,n)&&!Zt.call(e,n))return!1;return!0}function $(e,r,n){for(var a=t(),i=0,o=e;i<o.length;i++){var s=o[i];a[r(s)]=n?n(s):s}return a}function ee(e){for(var t in e)if(V(e,t))return!1;return!0}function te(e){var r=t();return G(e,r),r}function re(e){var t={};for(var r in e)Zt.call(e,r)&&(t[r]=e[r]);return t}function ne(e,t){var r={};for(var n in t)Zt.call(t,n)&&(r[n]=t[n]);for(var n in e)Zt.call(e,n)&&(r[n]=e[n]);return r}function ae(e,t,r){var n=e[t];return n?(n.push(r),n):e[t]=[r]}function ie(e,t,r){var n=e[t];n&&(Lt(n,r),n.length||delete e[t])}function oe(e){return Array.isArray?Array.isArray(e):e instanceof Array}function se(){}function ce(){throw new Error("Not implemented")}function ue(e){var t;return function(){return e&&(t=e(),e=void 0),t}}function _e(e,t,r,n,a){if(a){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return function(e){return le.apply(void 0,g(i,function(t){return t(e)}))}}return n?function(a){return le(e(a),t(a),r(a),n(a))}:r?function(n){return le(e(n),t(n),r(n))}:t?function(r){return le(e(r),t(r))}:e?function(t){return le(e(t))}:function(e){return function(e){return e}}}function le(e,t,r,n,a){if(a){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return function(e){return z(i,function(e,t){return t(e)},e)}}return n?function(a){return n(r(t(e(a))))}:r?function(n){return r(t(e(n)))}:t?function(r){return t(e(r))}:e?function(t){return e(t)}:function(e){return e}}function de(e,t,r){return r=r||0,e.replace(/{(\d+)}/g,function(e,n){return t[+n+r]})}function pe(t){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[t.key]||t.message}function fe(e,t,r,n){var a=t+r;cr.assert(t>=0,"start must be non-negative, is "+t),cr.assert(r>=0,"length must be non-negative, is "+r),e&&(cr.assert(t<=e.text.length,"start must be within the bounds of the file. "+t+" > "+e.text.length),cr.assert(a<=e.text.length,"end must be the bounds of the file. "+a+" > "+e.text.length));var i=pe(n);return arguments.length>4&&(i=de(i,arguments,4)),{file:e,start:t,length:r,messageText:i,category:n.category,code:n.code}}function me(e,t){var r=pe(t);return arguments.length>2&&(r=de(r,arguments,2)),r}function ge(e){var t=pe(e);return arguments.length>1&&(t=de(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code}}function ye(e){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText}}function ve(e,t){var r=pe(t);return arguments.length>2&&(r=de(r,arguments,2)),{messageText:r,category:t.category,code:t.code,next:e}}function he(e,t){for(var r=e;r.next;)r=r.next;return r.next=t,e}function be(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e<t?-1:1}function ke(t,r,n){if(t===r)return 0;if(void 0===t)return-1;if(void 0===r)return 1;if(n){if(e.collator&&String.prototype.localeCompare){var a=t.localeCompare(r,void 0,{usage:"sort",sensitivity:"accent"});return a<0?-1:a>0?1:0}if(t=t.toUpperCase(),r=r.toUpperCase(),t===r)return 0}return t<r?-1:1}function xe(e,t){return ke(e,t,!0)}function De(e){return e.file?e.file.fileName:void 0}function Se(e,t){return be(De(e),De(t))||be(e.start,t.start)||be(e.length,t.length)||be(e.code,t.code)||Ce(e.messageText,t.messageText)||0}function Ce(e,t){for(;e&&t;){var r="string"==typeof e?e:e.messageText,n="string"==typeof t?t:t.messageText,a=be(r,n);if(a)return a;e="string"==typeof e?void 0:e.next,t="string"==typeof t?void 0:t.next}return e||t?e?1:-1:0}function Ee(e){return Te(e.sort(Se))}function Te(e){if(e.length<2)return e;for(var t=[e[0]],r=e[0],n=1;n<e.length;n++){var a=e[n],i=0===Se(a,r);i||(t.push(a),r=a)}return t}function Ne(e){return e.replace(/\\/g,"/")}function Ae(e){if(47===e.charCodeAt(0)){if(47!==e.charCodeAt(1))return 1;var t=e.indexOf("/",2);if(t<0)return 2;var r=e.indexOf("/",t+1);return r<0?t+1:r+1}if(58===e.charCodeAt(1))return 47===e.charCodeAt(2)?3:2;if(0===e.lastIndexOf("file:///",0))return"file:///".length;var n=e.indexOf("://");return n!==-1?n+"://".length:0}function we(t,r){for(var n=t.substr(r).split(e.directorySeparator),a=[],i=0,o=n;i<o.length;i++){var s=o[i];"."!==s&&(".."===s&&a.length>0&&".."!==L(a)?a.pop():s&&a.push(s))}return a}function Pe(t){t=Ne(t);var r=Ae(t),n=t.substr(0,r),a=we(t,r);if(a.length){var i=n+a.join(e.directorySeparator);return Fe(t)?i+e.directorySeparator:i}return n}function Fe(e){return e.charCodeAt(e.length-1)===$t}function Oe(t){return t.substr(0,Math.max(Ae(t),t.lastIndexOf(e.directorySeparator)))}function Ie(e){return e&&!Je(e)&&e.indexOf("://")!==-1}function Re(e){return/^\.\.?($|[\\/])/.test(e)}function Le(e){return e.target||0}function Me(t){return"number"==typeof t.module?t.module:Le(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function Be(t){var r=t.moduleResolution;return void 0===r&&(r=Me(t)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),r}function Ke(e){for(var t=!1,r=0;r<e.length;r++)if(42===e.charCodeAt(r)){if(t)return!1;t=!0}return!0}function Je(e){return 0!==Ae(e)}function ze(e,t,r){return Je(e)?Ge(t,e,t,r,!1):e}function je(e,t){var r=we(e,t);return[e.substr(0,t)].concat(r)}function Ve(e,t){e=Ne(e);var r=Ae(e);return 0===r&&(e=Qe(Ne(t),e),r=Ae(e)),je(e,r)}function Ue(e,t){return qe(Ve(e,t))}function qe(t){if(t&&t.length)return t[0]+t.slice(1).join(e.directorySeparator)}function We(t){for(var r=t.length,n=t.indexOf("://")+"://".length;n<r&&47===t.charCodeAt(n);)n++;if(n===r)return[t];var a=t.indexOf(e.directorySeparator,n);return a!==-1?(n=a+1,je(t,n)):[t+e.directorySeparator]}function He(e,t){return Ie(e)?We(e):Ve(e,t)}function Ge(t,r,n,a,i){var o=He(r,n),s=He(t,n);s.length>1&&""===L(s)&&s.length--;var c;for(c=0;c<o.length&&c<s.length&&a(s[c])===a(o[c]);c++);if(c){for(var u="",_=o.slice(c,o.length);c<s.length;c++)""!==s[c]&&(u=u+".."+e.directorySeparator);return u+_.join(e.directorySeparator)}var l=qe(o);return i&&Je(l)&&(l="file:///"+l),l}function Xe(t){if(void 0!==t){var r=t.lastIndexOf(e.directorySeparator);return r<0?t:t.substring(r+1)}}function Qe(t,r){return t&&t.length?r&&r.length?0!==Ae(r)?r:t.charAt(t.length-1)===e.directorySeparator?t+r:t+e.directorySeparator+r:t:r}function Ye(t){return t.charAt(t.length-1)===e.directorySeparator?t.substr(0,t.length-1):t}function Ze(t){return t.charAt(t.length-1)!==e.directorySeparator?t+e.directorySeparator:t}function $e(e,t,r,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;e=Ye(e),t=Ye(t);for(var a=Ve(e,r),i=Ve(t,r),o=Math.min(a.length,i.length),s=0;s<o;s++){var c=ke(a[s],i[s],n);if(0!==c)return c}return be(a.length,i.length)}function et(e,t,r,n){if(void 0===e||void 0===t)return!1;if(e===t)return!0;if(e=Ye(e),t=Ye(t),e===t)return!0;var a=Ve(e,r),i=Ve(t,r);if(i.length<a.length)return!1;for(var o=0;o<a.length;o++){var s=ke(a[o],i[o],n);if(0!==s)return!1}return!0}function tt(e,t){return 0===e.lastIndexOf(t,0)}function rt(e,t){var r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function nt(e){return Xe(e).indexOf(".")>=0}function at(e,t){return e.length>t.length&&rt(e,t)}function it(e,t){for(var r=0,n=t;r<n.length;r++){var a=n[r];if(at(e,a))return!0}return!1}function ot(e,t,r){if(void 0!==e&&0!==e.length){for(var n="files"===r?ut:_t,a="files"===r?rr:nr,i="exclude"===r?"(/.+?)?":"(/[^/.][^/]*)*?",o="",s=!1,c=0,u=e;c<u.length;c++){var _=u[c];if(_){var l=ct(_,t,r,a,i,n);void 0!==l&&(s&&(o+="|"),o+="("+l+")",s=!0)}}if(o){var d="exclude"===r?"($|/)":"$";return"^("+o+")"+d}}}function st(e){return!/[.*?]/.test(e)}function ct(t,r,n,a,i,o){var s="",c=!1,u=!1,_=Ve(t,r),l=L(_);if("exclude"===n||"**"!==l){_[0]=Ye(_[0]),st(l)&&_.push("**","*");for(var d=0,p=0,f=_;p<f.length;p++){var m=f[p];if("**"===m){if(c)return;s+=i,c=!0}else"directories"===n&&(s+="(",d++),u&&(s+=e.directorySeparator),"exclude"!==n&&(42===m.charCodeAt(0)?(s+="([^./]"+a+")?",m=m.substr(1)):63===m.charCodeAt(0)&&(s+="[^./]",m=m.substr(1))),s+=m.replace(er,o);u=!0}for(;d>0;)s+=")?",d--;return s}}function ut(e){return lt(e,rr)}function _t(e){return lt(e,nr)}function lt(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function dt(e,t,r,n,a){e=Pe(e),a=Pe(a);var i=Qe(a,e);return{includeFilePattern:ot(r,i,"files"),includeDirectoryPattern:ot(r,i,"directories"),excludePattern:ot(t,i,"exclude"),basePaths:ft(e,r,n)}}function pt(e,t,r,n,a,i,o){function s(e,r){for(var n=o(e),a=n.files,i=n.directories,c=0,u=a;c<u.length;c++){var f=u[c],m=Qe(e,f),g=Qe(r,f);t&&!it(m,t)||_&&!_.test(g)||d&&d.test(g)||p.push(m)}for(var y=0,v=i;y<v.length;y++){var f=v[y],h=Qe(e,f),g=Qe(r,f);l&&!l.test(g)||d&&d.test(g)||s(h,g)}}e=Pe(e),i=Pe(i);for(var c=dt(e,r,n,a,i),u=a?"":"i",_=c.includeFilePattern&&new RegExp(c.includeFilePattern,u),l=c.includeDirectoryPattern&&new RegExp(c.includeDirectoryPattern,u),d=c.excludePattern&&new RegExp(c.excludePattern,u),p=[],f=0,m=c.basePaths;f<m.length;f++){var g=m[f];s(g,Qe(i,g))}return p}function ft(t,r,n){var a=[t];if(r){for(var i=[],o=0,s=r;o<s.length;o++){var c=s[o],u=Je(c)?c:Pe(Qe(t,c));i.push(mt(u))}i.sort(n?ke:xe);for(var _=function(r){e.every(a,function(e){return!et(e,r,t,!n)})&&a.push(r)},l=0,d=i;l<d.length;l++){var p=d[l];_(p)}}return a}function mt(t){var r=l(t,tr);return r<0?nt(t)?Ye(Oe(t)):t:t.substring(0,t.lastIndexOf(e.directorySeparator,r))}function gt(e,t){return t||yt(e)||3}function yt(e){var t=e.substr(e.lastIndexOf("."));switch(t.toLowerCase()){case".js":return 1;case".jsx":return 2;case".ts":return 3;case".tsx":return 4;default:return 0}}function vt(t,r){var n=t&&t.allowJs;if(!r||0===r.length)return n?ar:e.supportedTypeScriptExtensions;for(var a=(n?ar:e.supportedTypeScriptExtensions).slice(0),i=0,o=r;i<o.length;i++){var s=o[i];(n||3===s.scriptKind)&&a.push(s.extension)}return a}function ht(t){return a(e.supportedJavascriptExtensions,function(e){return at(t,e)})}function bt(t){return a(e.supportedTypeScriptExtensions,function(e){return at(t,e)})}function kt(e,t,r){if(!e)return!1;for(var n=0,a=vt(t,r);n<a.length;n++){var i=a[n];if(at(e,i))return!0}return!1}function xt(e,t){for(var r=t.length-1;r>=0;r--)if(at(e,t[r]))return Dt(r);return 0}function Dt(e){return e<2?0:e<5?2:5}function St(e){return e<2?2:5}function Ct(e){for(var t=0,r=or;t<r.length;t++){var n=r[t],a=Et(e,n);if(void 0!==a)return a}return e}function Et(e,t){return at(e,t)?Tt(e,t):void 0}function Tt(e,t){return e.substring(0,e.length-t.length)}function Nt(e,t){return Ct(e)+t}function At(e,t){this.flags=e,this.name=t,this.declarations=void 0}function wt(e,t){this.flags=t}function Pt(){}function Ft(e,t,r){this.id=0,this.kind=e,this.pos=t,this.end=r,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0}function Ot(e,t){for(var r=0;r<e.length;r++)if(e[r]===t)return It(e,r),!0;return!1}function It(e,t){for(var r=t;r<e.length-1;r++)e[r]=e[r+1];e.pop()}function Rt(e,t){e[t]=e[e.length-1],e.pop()}function Lt(e,t){Mt(e,function(e){return e===t})}function Mt(e,t){for(var r=0;r<e.length;r++)if(t(e[r])){Rt(e,r);break}}function Bt(e){return e?function(e){return e}:function(e){return e.toLowerCase()}}function Kt(e,t){for(var r=[],n=0,a=e;n<a.length;n++){var i=a[n],o=Ut(i);if(o)r.push(o);else if(i===t)return i}return jt(r,function(e){return e},t)}function Jt(e){var t=e.prefix,r=e.suffix;return t+"*"+r}function zt(e,t){return cr.assert(Vt(e,t)),t.substr(e.prefix.length,t.length-e.suffix.length)}function jt(e,t,r){for(var n=void 0,a=-1,i=0,o=e;i<o.length;i++){var s=o[i],c=t(s);Vt(c,r)&&c.prefix.length>a&&(a=c.prefix.length,n=s)}return n}function Vt(e,t){var r=e.prefix,n=e.suffix;return t.length>=r.length+n.length&&tt(t,r)&&rt(t,n)}function Ut(e){cr.assert(Ke(e));var t=e.indexOf("*");return t===-1?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function qt(e){return!(e>=0)}function Wt(t){return t<=e.Extension.LastTypeScriptExtension}function Ht(e){var t=Gt(e);return void 0!==t?t:void cr.fail("File "+e+" has unknown extension.")}function Gt(t){return at(t,".d.ts")?e.Extension.Dts:at(t,".ts")?e.Extension.Ts:at(t,".tsx")?e.Extension.Tsx:at(t,".js")?e.Extension.Js:at(t,".jsx")?e.Extension.Jsx:void 0}var Xt;!function(e){e[e.False=0]="False",e[e.Maybe=1]="Maybe",e[e.True=-1]="True"}(Xt=e.Ternary||(e.Ternary={}));var Qt=Object.create;e.collator="object"==typeof Intl&&"function"==typeof Intl.Collator?new Intl.Collator:void 0,e.createMap=t,e.createFileMap=r,e.toPath=n;var Yt;!function(e){e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan"}(Yt=e.Comparison||(e.Comparison={})),e.forEach=a,e.zipWith=i,e.every=o,e.find=s,e.findMap=c,e.contains=u,e.indexOf=_,e.indexOfAnyCharCode=l,e.countWhere=d,e.filter=p,e.removeWhere=f,e.filterMutate=m,e.map=g,e.sameMap=y,e.flatten=v,e.flatMap=h,e.span=b,e.spanMap=k,e.mapObject=x,e.some=D,e.concatenate=S,e.deduplicate=C,e.arrayIsEqualTo=E,e.changesAffectModuleResolution=T,e.compact=N,e.relativeComplement=A,e.sum=w,e.append=P,e.addRange=F,e.stableSort=O,e.rangeEquals=I,e.firstOrUndefined=R,e.lastOrUndefined=L,e.singleOrUndefined=M,e.singleOrMany=B,e.replaceElement=K,e.binarySearch=J,e.reduceLeft=z,e.reduceRight=j;var Zt=Object.prototype.hasOwnProperty;e.hasProperty=V,e.getProperty=U,e.getOwnKeys=q,e.forEachProperty=W,e.someProperties=H,e.copyProperties=G,e.appendProperty=X,e.assign=Q,e.reduceProperties=Y,e.equalOwnProperties=Z,e.arrayToMap=$,e.isEmpty=ee,e.cloneMap=te,e.clone=re,e.extend=ne,e.multiMapAdd=ae,e.multiMapRemove=ie,e.isArray=oe,e.noop=se,e.notImplemented=ce,e.memoize=ue,e.chain=_e,e.compose=le,e.localizedDiagnosticMessages=void 0,e.getLocaleSpecificMessage=pe,e.createFileDiagnostic=fe,e.formatMessage=me,e.createCompilerDiagnostic=ge,e.createCompilerDiagnosticFromMessageChain=ye,e.chainDiagnosticMessages=ve,e.concatenateDiagnosticMessageChains=he,e.compareValues=be,e.compareStrings=ke,e.compareStringsCaseInsensitive=xe,e.compareDiagnostics=Se,e.sortAndDeduplicateDiagnostics=Ee,e.deduplicateSortedDiagnostics=Te,e.normalizeSlashes=Ne,e.getRootLength=Ae,e.directorySeparator="/";var $t=47;e.normalizePath=Pe,e.pathEndsWithDirectorySeparator=Fe,e.getDirectoryPath=Oe,e.isUrl=Ie,e.isExternalModuleNameRelative=Re,e.getEmitScriptTarget=Le,e.getEmitModuleKind=Me,e.getEmitModuleResolutionKind=Be,e.hasZeroOrOneAsteriskCharacter=Ke,e.isRootedDiskPath=Je,e.convertToRelativePath=ze,e.getNormalizedPathComponents=Ve,e.getNormalizedAbsolutePath=Ue,e.getNormalizedPathFromPathComponents=qe,e.getRelativePathToDirectoryOrUrl=Ge,e.getBaseFileName=Xe,e.combinePaths=Qe,e.removeTrailingDirectorySeparator=Ye,e.ensureTrailingDirectorySeparator=Ze,e.comparePaths=$e,e.containsPath=et,e.startsWith=tt,e.endsWith=rt,e.hasExtension=nt,e.fileExtensionIs=at,e.fileExtensionIsAny=it;var er=/[^\w\s\/]/g,tr=[42,63],rr="([^./]|(\\.(?!min\\.js$))?)*",nr="[^/]*";e.getRegularExpressionForWildcard=ot,e.isImplicitGlob=st,e.getFileMatcherPatterns=dt,e.matchFiles=pt,e.ensureScriptKind=gt,e.getScriptKindFromFileName=yt,e.supportedTypeScriptExtensions=[".ts",".tsx",".d.ts"],e.supportedTypescriptExtensionsForExtractExtension=[".d.ts",".ts",".tsx"],e.supportedJavascriptExtensions=[".js",".jsx"];var ar=e.supportedTypeScriptExtensions.concat(e.supportedJavascriptExtensions);e.getSupportedExtensions=vt,e.hasJavaScriptFileExtension=ht,e.hasTypeScriptFileExtension=bt,e.isSupportedSourceFileName=kt;var ir;!function(e){e[e.TypeScriptFiles=0]="TypeScriptFiles",e[e.DeclarationAndJavaScriptFiles=2]="DeclarationAndJavaScriptFiles",e[e.Limit=5]="Limit",e[e.Highest=0]="Highest",e[e.Lowest=2]="Lowest"}(ir=e.ExtensionPriority||(e.ExtensionPriority={})),e.getExtensionPriority=xt,e.adjustExtensionPriority=Dt,e.getNextLowestExtensionPriority=St;var or=[".d.ts",".ts",".js",".tsx",".jsx"];e.removeFileExtension=Ct,e.tryRemoveExtension=Et,e.removeExtension=Tt,e.changeExtension=Nt,e.objectAllocator={getNodeConstructor:function(){return Ft},getTokenConstructor:function(){return Ft},getIdentifierConstructor:function(){return Ft},getSourceFileConstructor:function(){return Ft},getSymbolConstructor:function(){return At},getTypeConstructor:function(){return wt},getSignatureConstructor:function(){return Pt}};var sr;!function(e){e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive"}(sr=e.AssertionLevel||(e.AssertionLevel={}));var cr;!function(e){function t(t){return e.currentAssertionLevel>=t}function r(e,t,r){if(!e){var n="";throw r&&(n="\r\nVerbose Debug Information: "+r()),new Error("Debug Failure. False expression: "+(t||"")+n)}}function n(t){e.assert(!1,t)}e.currentAssertionLevel=0,e.shouldAssert=t,e.assert=r,e.fail=n}(cr=e.Debug||(e.Debug={})),e.orderedRemoveItem=Ot,e.orderedRemoveItemAt=It,e.unorderedRemoveItemAt=Rt,e.unorderedRemoveItem=Lt,e.createGetCanonicalFileName=Bt,e.matchPatternOrExact=Kt,e.patternText=Jt,e.matchedText=zt,e.findBestPatternMatch=jt,e.tryParsePattern=Ut,e.positionIsSynthesized=qt,e.extensionIsTypeScript=Wt,e.extensionFromPath=Ht,e.tryGetExtensionFromPath=Gt}(ts||(ts={}));var ts;!function(e){e.sys=function(){function t(){function t(e,t){if(s.FileExists(e)){u.Open();try{if(t)u.Charset=t,u.LoadFromFile(e);else{u.Charset="x-ansi",u.LoadFromFile(e);var r=u.ReadText(2)||"";u.Position=0,u.Charset=r.length>=2&&(255===r.charCodeAt(0)&&254===r.charCodeAt(1)||254===r.charCodeAt(0)&&255===r.charCodeAt(1))?"unicode":"utf-8"}return u.ReadText()}catch(n){throw n}finally{u.Close()}}}function r(e,t,r){u.Open(),_.Open();try{u.Charset="utf-8",u.WriteText(t),r?u.Position=0:u.Position=3,u.CopyTo(_),_.SaveToFile(e,2)}finally{_.Close(),u.Close()}}function n(e){for(var t=[],r=new Enumerator(e);!r.atEnd();r.moveNext())t.push(r.item().Name);return t.sort()}function a(e){var t=s.GetFolder(e);return n(t.subfolders)}function i(e){try{var t=s.GetFolder(e||"."),r=n(t.files),a=n(t.subfolders);return{files:r,directories:a}}catch(i){return{files:[],directories:[]}}}function o(t,r,n,a){return e.matchFiles(t,r,n,a,!1,c.CurrentDirectory,i)}var s=new ActiveXObject("Scripting.FileSystemObject"),c=new ActiveXObject("WScript.Shell"),u=new ActiveXObject("ADODB.Stream");u.Type=2;var _=new ActiveXObject("ADODB.Stream");_.Type=1;for(var l=[],d=0;d<WScript.Arguments.length;d++)l[d]=WScript.Arguments.Item(d);var p={args:l,newLine:"\r\n",useCaseSensitiveFileNames:!1,write:function(e){WScript.StdOut.Write(e)},readFile:t,writeFile:r,resolvePath:function(e){return s.GetAbsolutePathName(e)},fileExists:function(e){return s.FileExists(e)},directoryExists:function(e){return s.FolderExists(e)},createDirectory:function(e){p.directoryExists(e)||s.CreateFolder(e)},getExecutingFilePath:function(){return WScript.ScriptFullName},getCurrentDirectory:function(){return c.CurrentDirectory},getDirectories:a,getEnvironmentVariable:function(e){return new ActiveXObject("WScript.Shell").ExpandEnvironmentStrings("%"+e+"%")},readDirectory:o,exit:function(e){try{WScript.Quit(e)}catch(t){}}};return p}function r(){function t(){function t(t){var r=e.getDirectoryPath(t),n=c[r];n&&(n.referenceCount-=1,n.referenceCount<=0&&(n.close(),delete c[r]))}function r(e){var t=c[e];return t?void(t.referenceCount+=1):(t=p.watch(e,{persistent:!0},function(t,r){return s(t,r,e)}),t.referenceCount=1,void(c[e]=t))}function n(t,r){e.multiMapAdd(u,t,r)}function a(t,a){return n(t,a),r(e.getDirectoryPath(t)),{fileName:t,callback:a}}function i(e){o(e.fileName,e.callback),t(e.fileName)}function o(t,r){e.multiMapRemove(u,t,r)}function s(t,r,n){var a="string"!=typeof r?void 0:e.getNormalizedAbsolutePath(r,n);if(("change"===t||"rename"===t)&&u[a])for(var i=0,o=u[a];i<o.length;i++){var s=o[i];s(a)}}var c=e.createMap(),u=e.createMap();return{addFile:a,removeFile:i}}function r(){return parseInt(process.version.charAt(1))>=4}function n(){return"win32"!==h&&"win64"!==h&&(!u(__filename.toUpperCase())||!u(__filename.toLowerCase()))}function a(e,t){if(u(e)){var r=p.readFileSync(e),n=r.length;if(n>=2&&254===r[0]&&255===r[1]){n&=-2;for(var a=0;a<n;a+=2){var i=r[a];r[a]=r[a+1],r[a+1]=i}return r.toString("utf16le",2)}return n>=2&&255===r[0]&&254===r[1]?r.toString("utf16le",2):n>=3&&239===r[0]&&187===r[1]&&191===r[2]?r.toString("utf8",3):r.toString("utf8")}}function i(e,t,r){r&&(t="\ufeff"+t);var n;try{n=p.openSync(e,"w"),p.writeSync(n,t,void 0,"utf8")}finally{void 0!==n&&p.closeSync(n)}}function o(t){try{for(var r=p.readdirSync(t||".").sort(),n=[],a=[],i=0,o=r;i<o.length;i++){var s=o[i];if("."!==s&&".."!==s){var c=e.combinePaths(t,s),u=void 0;try{u=p.statSync(c)}catch(_){continue}u.isFile()?n.push(s):u.isDirectory()&&a.push(s)}}return{files:n,directories:a}}catch(_){return{files:[],directories:[]}}}function s(t,r,n,a){return e.matchFiles(t,r,n,a,b,process.cwd(),o)}function c(e,t){try{var r=p.statSync(e);switch(t){case 0:return r.isFile();case 1:return r.isDirectory()}}catch(n){return!1}}function u(e){return c(e,0)}function _(e){return c(e,1)}function l(t){return e.filter(p.readdirSync(t),function(r){return c(e.combinePaths(t,r),1)})}var d,p=require("fs"),f=require("path"),m=require("os"),g=require("crypto"),y=process.env.TSC_NONPOLLING_WATCHER,v=t(),h=m.platform(),b=n();!function(e){e[e.File=0]="File",e[e.Directory=1]="Directory"}(d||(d={}));var k={close:e.noop},x={args:process.argv.slice(2),newLine:m.EOL,useCaseSensitiveFileNames:b,write:function(e){process.stdout.write(e)},readFile:a,writeFile:i,watchFile:function(e,t,r){function n(r,n){+r.mtime<=+n.mtime||t(e)}if(y){var a=v.addFile(e,t);return{close:function(){return v.removeFile(a)}}}return p.watchFile(e,{persistent:!0,interval:r||250},n),{close:function(){return p.unwatchFile(e,n)}}},watchDirectory:function(t,n,a){var i;return _(t)?(i=!r()||"win32"!==process.platform&&"darwin"!==process.platform?{persistent:!0}:{persistent:!0,recursive:!!a},p.watch(t,i,function(r,a){"rename"===r&&n(a?e.normalizePath(e.combinePaths(t,a)):a)})):k},resolvePath:function(e){return f.resolve(e)},fileExists:u,directoryExists:_,createDirectory:function(e){x.directoryExists(e)||p.mkdirSync(e)},getExecutingFilePath:function(){return __filename},getCurrentDirectory:function(){return process.cwd()},getDirectories:l,getEnvironmentVariable:function(e){return process.env[e]||""},readDirectory:s,getModifiedTime:function(e){try{return p.statSync(e).mtime}catch(t){return}},createHash:function(e){var t=g.createHash("md5");return t.update(e),t.digest("hex")},getMemoryUsage:function(){
return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize:function(e){try{var t=p.statSync(e);if(t.isFile())return t.size}catch(r){}return 0},exit:function(e){process.exit(e)},realpath:function(e){return p.realpathSync(e)},tryEnableSourceMapsForHost:function(){try{require("source-map-support").install()}catch(e){}},setTimeout:setTimeout,clearTimeout:clearTimeout};return x}function n(){var t=ChakraHost.realpath&&function(e){return ChakraHost.realpath(e)};return{newLine:ChakraHost.newLine||"\r\n",args:ChakraHost.args,useCaseSensitiveFileNames:!!ChakraHost.useCaseSensitiveFileNames,write:ChakraHost.echo,readFile:function(e,t){return ChakraHost.readFile(e)},writeFile:function(e,t,r){r&&(t="\ufeff"+t),ChakraHost.writeFile(e,t)},resolvePath:ChakraHost.resolvePath,fileExists:ChakraHost.fileExists,directoryExists:ChakraHost.directoryExists,createDirectory:ChakraHost.createDirectory,getExecutingFilePath:function(){return ChakraHost.executingFile},getCurrentDirectory:function(){return ChakraHost.currentDirectory},getDirectories:ChakraHost.getDirectories,getEnvironmentVariable:ChakraHost.getEnvironmentVariable||function(){return""},readDirectory:function(t,r,n,a){var i=e.getFileMatcherPatterns(t,n,a,!!ChakraHost.useCaseSensitiveFileNames,ChakraHost.currentDirectory);return ChakraHost.readDirectory(t,r,i.basePaths,i.excludePattern,i.includeFilePattern,i.includeDirectoryPattern)},exit:ChakraHost.quit,realpath:t}}function a(t,r){var n=e.getDirectoryPath(t),i=t!==n&&!r.directoryExists(n);i&&a(n,r),!i&&r.directoryExists(t)||r.createDirectory(t)}var i;if("undefined"!=typeof ChakraHost?i=n():"undefined"!=typeof WScript&&"function"==typeof ActiveXObject?i=t():"undefined"!=typeof process&&process.nextTick&&!process.browser&&"undefined"!=typeof require&&(i=r()),i){var o=i.writeFile;i.writeFile=function(t,r,n){var s=e.getDirectoryPath(e.normalizeSlashes(t));s&&!i.directoryExists(s)&&a(s,i),o.call(i,t,r,n)}}return i}(),e.sys&&e.sys.getEnvironmentVariable&&(e.Debug.currentAssertionLevel=/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0)}(ts||(ts={}));var ts;!function(e){e.Diagnostics={Unterminated_string_literal:{code:1002,category:e.DiagnosticCategory.Error,key:"Unterminated_string_literal_1002",message:"Unterminated string literal."},Identifier_expected:{code:1003,category:e.DiagnosticCategory.Error,key:"Identifier_expected_1003",message:"Identifier expected."},_0_expected:{code:1005,category:e.DiagnosticCategory.Error,key:"_0_expected_1005",message:"'{0}' expected."},A_file_cannot_have_a_reference_to_itself:{code:1006,category:e.DiagnosticCategory.Error,key:"A_file_cannot_have_a_reference_to_itself_1006",message:"A file cannot have a reference to itself."},Trailing_comma_not_allowed:{code:1009,category:e.DiagnosticCategory.Error,key:"Trailing_comma_not_allowed_1009",message:"Trailing comma not allowed."},Asterisk_Slash_expected:{code:1010,category:e.DiagnosticCategory.Error,key:"Asterisk_Slash_expected_1010",message:"'*/' expected."},Unexpected_token:{code:1012,category:e.DiagnosticCategory.Error,key:"Unexpected_token_1012",message:"Unexpected token."},A_rest_parameter_must_be_last_in_a_parameter_list:{code:1014,category:e.DiagnosticCategory.Error,key:"A_rest_parameter_must_be_last_in_a_parameter_list_1014",message:"A rest parameter must be last in a parameter list."},Parameter_cannot_have_question_mark_and_initializer:{code:1015,category:e.DiagnosticCategory.Error,key:"Parameter_cannot_have_question_mark_and_initializer_1015",message:"Parameter cannot have question mark and initializer."},A_required_parameter_cannot_follow_an_optional_parameter:{code:1016,category:e.DiagnosticCategory.Error,key:"A_required_parameter_cannot_follow_an_optional_parameter_1016",message:"A required parameter cannot follow an optional parameter."},An_index_signature_cannot_have_a_rest_parameter:{code:1017,category:e.DiagnosticCategory.Error,key:"An_index_signature_cannot_have_a_rest_parameter_1017",message:"An index signature cannot have a rest parameter."},An_index_signature_parameter_cannot_have_an_accessibility_modifier:{code:1018,category:e.DiagnosticCategory.Error,key:"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018",message:"An index signature parameter cannot have an accessibility modifier."},An_index_signature_parameter_cannot_have_a_question_mark:{code:1019,category:e.DiagnosticCategory.Error,key:"An_index_signature_parameter_cannot_have_a_question_mark_1019",message:"An index signature parameter cannot have a question mark."},An_index_signature_parameter_cannot_have_an_initializer:{code:1020,category:e.DiagnosticCategory.Error,key:"An_index_signature_parameter_cannot_have_an_initializer_1020",message:"An index signature parameter cannot have an initializer."},An_index_signature_must_have_a_type_annotation:{code:1021,category:e.DiagnosticCategory.Error,key:"An_index_signature_must_have_a_type_annotation_1021",message:"An index signature must have a type annotation."},An_index_signature_parameter_must_have_a_type_annotation:{code:1022,category:e.DiagnosticCategory.Error,key:"An_index_signature_parameter_must_have_a_type_annotation_1022",message:"An index signature parameter must have a type annotation."},An_index_signature_parameter_type_must_be_string_or_number:{code:1023,category:e.DiagnosticCategory.Error,key:"An_index_signature_parameter_type_must_be_string_or_number_1023",message:"An index signature parameter type must be 'string' or 'number'."},readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:{code:1024,category:e.DiagnosticCategory.Error,key:"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024",message:"'readonly' modifier can only appear on a property declaration or index signature."},Accessibility_modifier_already_seen:{code:1028,category:e.DiagnosticCategory.Error,key:"Accessibility_modifier_already_seen_1028",message:"Accessibility modifier already seen."},_0_modifier_must_precede_1_modifier:{code:1029,category:e.DiagnosticCategory.Error,key:"_0_modifier_must_precede_1_modifier_1029",message:"'{0}' modifier must precede '{1}' modifier."},_0_modifier_already_seen:{code:1030,category:e.DiagnosticCategory.Error,key:"_0_modifier_already_seen_1030",message:"'{0}' modifier already seen."},_0_modifier_cannot_appear_on_a_class_element:{code:1031,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_a_class_element_1031",message:"'{0}' modifier cannot appear on a class element."},super_must_be_followed_by_an_argument_list_or_member_access:{code:1034,category:e.DiagnosticCategory.Error,key:"super_must_be_followed_by_an_argument_list_or_member_access_1034",message:"'super' must be followed by an argument list or member access."},Only_ambient_modules_can_use_quoted_names:{code:1035,category:e.DiagnosticCategory.Error,key:"Only_ambient_modules_can_use_quoted_names_1035",message:"Only ambient modules can use quoted names."},Statements_are_not_allowed_in_ambient_contexts:{code:1036,category:e.DiagnosticCategory.Error,key:"Statements_are_not_allowed_in_ambient_contexts_1036",message:"Statements are not allowed in ambient contexts."},A_declare_modifier_cannot_be_used_in_an_already_ambient_context:{code:1038,category:e.DiagnosticCategory.Error,key:"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038",message:"A 'declare' modifier cannot be used in an already ambient context."},Initializers_are_not_allowed_in_ambient_contexts:{code:1039,category:e.DiagnosticCategory.Error,key:"Initializers_are_not_allowed_in_ambient_contexts_1039",message:"Initializers are not allowed in ambient contexts."},_0_modifier_cannot_be_used_in_an_ambient_context:{code:1040,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_be_used_in_an_ambient_context_1040",message:"'{0}' modifier cannot be used in an ambient context."},_0_modifier_cannot_be_used_with_a_class_declaration:{code:1041,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_be_used_with_a_class_declaration_1041",message:"'{0}' modifier cannot be used with a class declaration."},_0_modifier_cannot_be_used_here:{code:1042,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_be_used_here_1042",message:"'{0}' modifier cannot be used here."},_0_modifier_cannot_appear_on_a_data_property:{code:1043,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_a_data_property_1043",message:"'{0}' modifier cannot appear on a data property."},_0_modifier_cannot_appear_on_a_module_or_namespace_element:{code:1044,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044",message:"'{0}' modifier cannot appear on a module or namespace element."},A_0_modifier_cannot_be_used_with_an_interface_declaration:{code:1045,category:e.DiagnosticCategory.Error,key:"A_0_modifier_cannot_be_used_with_an_interface_declaration_1045",message:"A '{0}' modifier cannot be used with an interface declaration."},A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file:{code:1046,category:e.DiagnosticCategory.Error,key:"A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file_1046",message:"A 'declare' modifier is required for a top level declaration in a .d.ts file."},A_rest_parameter_cannot_be_optional:{code:1047,category:e.DiagnosticCategory.Error,key:"A_rest_parameter_cannot_be_optional_1047",message:"A rest parameter cannot be optional."},A_rest_parameter_cannot_have_an_initializer:{code:1048,category:e.DiagnosticCategory.Error,key:"A_rest_parameter_cannot_have_an_initializer_1048",message:"A rest parameter cannot have an initializer."},A_set_accessor_must_have_exactly_one_parameter:{code:1049,category:e.DiagnosticCategory.Error,key:"A_set_accessor_must_have_exactly_one_parameter_1049",message:"A 'set' accessor must have exactly one parameter."},A_set_accessor_cannot_have_an_optional_parameter:{code:1051,category:e.DiagnosticCategory.Error,key:"A_set_accessor_cannot_have_an_optional_parameter_1051",message:"A 'set' accessor cannot have an optional parameter."},A_set_accessor_parameter_cannot_have_an_initializer:{code:1052,category:e.DiagnosticCategory.Error,key:"A_set_accessor_parameter_cannot_have_an_initializer_1052",message:"A 'set' accessor parameter cannot have an initializer."},A_set_accessor_cannot_have_rest_parameter:{code:1053,category:e.DiagnosticCategory.Error,key:"A_set_accessor_cannot_have_rest_parameter_1053",message:"A 'set' accessor cannot have rest parameter."},A_get_accessor_cannot_have_parameters:{code:1054,category:e.DiagnosticCategory.Error,key:"A_get_accessor_cannot_have_parameters_1054",message:"A 'get' accessor cannot have parameters."},Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:{code:1055,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055",message:"Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."},Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:{code:1056,category:e.DiagnosticCategory.Error,key:"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056",message:"Accessors are only available when targeting ECMAScript 5 and higher."},An_async_function_or_method_must_have_a_valid_awaitable_return_type:{code:1057,category:e.DiagnosticCategory.Error,key:"An_async_function_or_method_must_have_a_valid_awaitable_return_type_1057",message:"An async function or method must have a valid awaitable return type."},Operand_for_await_does_not_have_a_valid_callable_then_member:{code:1058,category:e.DiagnosticCategory.Error,key:"Operand_for_await_does_not_have_a_valid_callable_then_member_1058",message:"Operand for 'await' does not have a valid callable 'then' member."},Return_expression_in_async_function_does_not_have_a_valid_callable_then_member:{code:1059,category:e.DiagnosticCategory.Error,key:"Return_expression_in_async_function_does_not_have_a_valid_callable_then_member_1059",message:"Return expression in async function does not have a valid callable 'then' member."},Expression_body_for_async_arrow_function_does_not_have_a_valid_callable_then_member:{code:1060,category:e.DiagnosticCategory.Error,key:"Expression_body_for_async_arrow_function_does_not_have_a_valid_callable_then_member_1060",message:"Expression body for async arrow function does not have a valid callable 'then' member."},Enum_member_must_have_initializer:{code:1061,category:e.DiagnosticCategory.Error,key:"Enum_member_must_have_initializer_1061",message:"Enum member must have initializer."},_0_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:{code:1062,category:e.DiagnosticCategory.Error,key:"_0_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062",message:"{0} is referenced directly or indirectly in the fulfillment callback of its own 'then' method."},An_export_assignment_cannot_be_used_in_a_namespace:{code:1063,category:e.DiagnosticCategory.Error,key:"An_export_assignment_cannot_be_used_in_a_namespace_1063",message:"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:{code:1064,category:e.DiagnosticCategory.Error,key:"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1064",message:"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:{code:1066,category:e.DiagnosticCategory.Error,key:"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066",message:"In ambient enum declarations member initializer must be constant expression."},Unexpected_token_A_constructor_method_accessor_or_property_was_expected:{code:1068,category:e.DiagnosticCategory.Error,key:"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068",message:"Unexpected token. A constructor, method, accessor, or property was expected."},_0_modifier_cannot_appear_on_a_type_member:{code:1070,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_a_type_member_1070",message:"'{0}' modifier cannot appear on a type member."},_0_modifier_cannot_appear_on_an_index_signature:{code:1071,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_an_index_signature_1071",message:"'{0}' modifier cannot appear on an index signature."},A_0_modifier_cannot_be_used_with_an_import_declaration:{code:1079,category:e.DiagnosticCategory.Error,key:"A_0_modifier_cannot_be_used_with_an_import_declaration_1079",message:"A '{0}' modifier cannot be used with an import declaration."},Invalid_reference_directive_syntax:{code:1084,category:e.DiagnosticCategory.Error,key:"Invalid_reference_directive_syntax_1084",message:"Invalid 'reference' directive syntax."},Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:{code:1085,category:e.DiagnosticCategory.Error,key:"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085",message:"Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."},An_accessor_cannot_be_declared_in_an_ambient_context:{code:1086,category:e.DiagnosticCategory.Error,key:"An_accessor_cannot_be_declared_in_an_ambient_context_1086",message:"An accessor cannot be declared in an ambient context."},_0_modifier_cannot_appear_on_a_constructor_declaration:{code:1089,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_a_constructor_declaration_1089",message:"'{0}' modifier cannot appear on a constructor declaration."},_0_modifier_cannot_appear_on_a_parameter:{code:1090,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_a_parameter_1090",message:"'{0}' modifier cannot appear on a parameter."},Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:{code:1091,category:e.DiagnosticCategory.Error,key:"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091",message:"Only a single variable declaration is allowed in a 'for...in' statement."},Type_parameters_cannot_appear_on_a_constructor_declaration:{code:1092,category:e.DiagnosticCategory.Error,key:"Type_parameters_cannot_appear_on_a_constructor_declaration_1092",message:"Type parameters cannot appear on a constructor declaration."},Type_annotation_cannot_appear_on_a_constructor_declaration:{code:1093,category:e.DiagnosticCategory.Error,key:"Type_annotation_cannot_appear_on_a_constructor_declaration_1093",message:"Type annotation cannot appear on a constructor declaration."},An_accessor_cannot_have_type_parameters:{code:1094,category:e.DiagnosticCategory.Error,key:"An_accessor_cannot_have_type_parameters_1094",message:"An accessor cannot have type parameters."},A_set_accessor_cannot_have_a_return_type_annotation:{code:1095,category:e.DiagnosticCategory.Error,key:"A_set_accessor_cannot_have_a_return_type_annotation_1095",message:"A 'set' accessor cannot have a return type annotation."},An_index_signature_must_have_exactly_one_parameter:{code:1096,category:e.DiagnosticCategory.Error,key:"An_index_signature_must_have_exactly_one_parameter_1096",message:"An index signature must have exactly one parameter."},_0_list_cannot_be_empty:{code:1097,category:e.DiagnosticCategory.Error,key:"_0_list_cannot_be_empty_1097",message:"'{0}' list cannot be empty."},Type_parameter_list_cannot_be_empty:{code:1098,category:e.DiagnosticCategory.Error,key:"Type_parameter_list_cannot_be_empty_1098",message:"Type parameter list cannot be empty."},Type_argument_list_cannot_be_empty:{code:1099,category:e.DiagnosticCategory.Error,key:"Type_argument_list_cannot_be_empty_1099",message:"Type argument list cannot be empty."},Invalid_use_of_0_in_strict_mode:{code:1100,category:e.DiagnosticCategory.Error,key:"Invalid_use_of_0_in_strict_mode_1100",message:"Invalid use of '{0}' in strict mode."},with_statements_are_not_allowed_in_strict_mode:{code:1101,category:e.DiagnosticCategory.Error,key:"with_statements_are_not_allowed_in_strict_mode_1101",message:"'with' statements are not allowed in strict mode."},delete_cannot_be_called_on_an_identifier_in_strict_mode:{code:1102,category:e.DiagnosticCategory.Error,key:"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102",message:"'delete' cannot be called on an identifier in strict mode."},A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:{code:1104,category:e.DiagnosticCategory.Error,key:"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104",message:"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:{code:1105,category:e.DiagnosticCategory.Error,key:"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105",message:"A 'break' statement can only be used within an enclosing iteration or switch statement."},Jump_target_cannot_cross_function_boundary:{code:1107,category:e.DiagnosticCategory.Error,key:"Jump_target_cannot_cross_function_boundary_1107",message:"Jump target cannot cross function boundary."},A_return_statement_can_only_be_used_within_a_function_body:{code:1108,category:e.DiagnosticCategory.Error,key:"A_return_statement_can_only_be_used_within_a_function_body_1108",message:"A 'return' statement can only be used within a function body."},Expression_expected:{code:1109,category:e.DiagnosticCategory.Error,key:"Expression_expected_1109",message:"Expression expected."},Type_expected:{code:1110,category:e.DiagnosticCategory.Error,key:"Type_expected_1110",message:"Type expected."},A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:{code:1113,category:e.DiagnosticCategory.Error,key:"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113",message:"A 'default' clause cannot appear more than once in a 'switch' statement."},Duplicate_label_0:{code:1114,category:e.DiagnosticCategory.Error,key:"Duplicate_label_0_1114",message:"Duplicate label '{0}'"},A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:{code:1115,category:e.DiagnosticCategory.Error,key:"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115",message:"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:{code:1116,category:e.DiagnosticCategory.Error,key:"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116",message:"A 'break' statement can only jump to a label of an enclosing statement."},An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode:{code:1117,category:e.DiagnosticCategory.Error,key:"An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117",message:"An object literal cannot have multiple properties with the same name in strict mode."},An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:{code:1118,category:e.DiagnosticCategory.Error,key:"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118",message:"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:{code:1119,category:e.DiagnosticCategory.Error,key:"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119",message:"An object literal cannot have property and accessor with the same name."},An_export_assignment_cannot_have_modifiers:{code:1120,category:e.DiagnosticCategory.Error,key:"An_export_assignment_cannot_have_modifiers_1120",message:"An export assignment cannot have modifiers."},Octal_literals_are_not_allowed_in_strict_mode:{code:1121,category:e.DiagnosticCategory.Error,key:"Octal_literals_are_not_allowed_in_strict_mode_1121",message:"Octal literals are not allowed in strict mode."},A_tuple_type_element_list_cannot_be_empty:{code:1122,category:e.DiagnosticCategory.Error,key:"A_tuple_type_element_list_cannot_be_empty_1122",message:"A tuple type element list cannot be empty."},Variable_declaration_list_cannot_be_empty:{code:1123,category:e.DiagnosticCategory.Error,key:"Variable_declaration_list_cannot_be_empty_1123",message:"Variable declaration list cannot be empty."},Digit_expected:{code:1124,category:e.DiagnosticCategory.Error,key:"Digit_expected_1124",message:"Digit expected."},Hexadecimal_digit_expected:{code:1125,category:e.DiagnosticCategory.Error,key:"Hexadecimal_digit_expected_1125",message:"Hexadecimal digit expected."},Unexpected_end_of_text:{code:1126,category:e.DiagnosticCategory.Error,key:"Unexpected_end_of_text_1126",message:"Unexpected end of text."},Invalid_character:{code:1127,category:e.DiagnosticCategory.Error,key:"Invalid_character_1127",message:"Invalid character."},Declaration_or_statement_expected:{code:1128,category:e.DiagnosticCategory.Error,key:"Declaration_or_statement_expected_1128",message:"Declaration or statement expected."},Statement_expected:{code:1129,category:e.DiagnosticCategory.Error,key:"Statement_expected_1129",message:"Statement expected."},case_or_default_expected:{code:1130,category:e.DiagnosticCategory.Error,key:"case_or_default_expected_1130",message:"'case' or 'default' expected."},Property_or_signature_expected:{code:1131,category:e.DiagnosticCategory.Error,key:"Property_or_signature_expected_1131",message:"Property or signature expected."},Enum_member_expected:{code:1132,category:e.DiagnosticCategory.Error,key:"Enum_member_expected_1132",message:"Enum member expected."},Variable_declaration_expected:{code:1134,category:e.DiagnosticCategory.Error,key:"Variable_declaration_expected_1134",message:"Variable declaration expected."},Argument_expression_expected:{code:1135,category:e.DiagnosticCategory.Error,key:"Argument_expression_expected_1135",message:"Argument expression expected."},Property_assignment_expected:{code:1136,category:e.DiagnosticCategory.Error,key:"Property_assignment_expected_1136",message:"Property assignment expected."},Expression_or_comma_expected:{code:1137,category:e.DiagnosticCategory.Error,key:"Expression_or_comma_expected_1137",message:"Expression or comma expected."},Parameter_declaration_expected:{code:1138,category:e.DiagnosticCategory.Error,key:"Parameter_declaration_expected_1138",message:"Parameter declaration expected."},Type_parameter_declaration_expected:{code:1139,category:e.DiagnosticCategory.Error,key:"Type_parameter_declaration_expected_1139",message:"Type parameter declaration expected."},Type_argument_expected:{code:1140,category:e.DiagnosticCategory.Error,key:"Type_argument_expected_1140",message:"Type argument expected."},String_literal_expected:{code:1141,category:e.DiagnosticCategory.Error,key:"String_literal_expected_1141",message:"String literal expected."},Line_break_not_permitted_here:{code:1142,category:e.DiagnosticCategory.Error,key:"Line_break_not_permitted_here_1142",message:"Line break not permitted here."},or_expected:{code:1144,category:e.DiagnosticCategory.Error,key:"or_expected_1144",message:"'{' or ';' expected."},Declaration_expected:{code:1146,category:e.DiagnosticCategory.Error,key:"Declaration_expected_1146",message:"Declaration expected."},Import_declarations_in_a_namespace_cannot_reference_a_module:{code:1147,category:e.DiagnosticCategory.Error,key:"Import_declarations_in_a_namespace_cannot_reference_a_module_1147",message:"Import declarations in a namespace cannot reference a module."},Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:{code:1148,category:e.DiagnosticCategory.Error,key:"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148",message:"Cannot use imports, exports, or module augmentations when '--module' is 'none'."},File_name_0_differs_from_already_included_file_name_1_only_in_casing:{code:1149,category:e.DiagnosticCategory.Error,key:"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149",message:"File name '{0}' differs from already included file name '{1}' only in casing"},new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead:{code:1150,category:e.DiagnosticCategory.Error,key:"new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead_1150",message:"'new T[]' cannot be used to create an array. Use 'new Array<T>()' instead."},const_declarations_must_be_initialized:{code:1155,category:e.DiagnosticCategory.Error,key:"const_declarations_must_be_initialized_1155",message:"'const' declarations must be initialized"},const_declarations_can_only_be_declared_inside_a_block:{code:1156,category:e.DiagnosticCategory.Error,key:"const_declarations_can_only_be_declared_inside_a_block_1156",message:"'const' declarations can only be declared inside a block."},let_declarations_can_only_be_declared_inside_a_block:{code:1157,category:e.DiagnosticCategory.Error,key:"let_declarations_can_only_be_declared_inside_a_block_1157",message:"'let' declarations can only be declared inside a block."},Unterminated_template_literal:{code:1160,category:e.DiagnosticCategory.Error,key:"Unterminated_template_literal_1160",message:"Unterminated template literal."},Unterminated_regular_expression_literal:{code:1161,category:e.DiagnosticCategory.Error,key:"Unterminated_regular_expression_literal_1161",message:"Unterminated regular expression literal."},An_object_member_cannot_be_declared_optional:{code:1162,category:e.DiagnosticCategory.Error,key:"An_object_member_cannot_be_declared_optional_1162",message:"An object member cannot be declared optional."},A_yield_expression_is_only_allowed_in_a_generator_body:{code:1163,category:e.DiagnosticCategory.Error,key:"A_yield_expression_is_only_allowed_in_a_generator_body_1163",message:"A 'yield' expression is only allowed in a generator body."},Computed_property_names_are_not_allowed_in_enums:{code:1164,category:e.DiagnosticCategory.Error,key:"Computed_property_names_are_not_allowed_in_enums_1164",message:"Computed property names are not allowed in enums."},A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol:{code:1165,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol_1165",message:"A computed property name in an ambient context must directly refer to a built-in symbol."},A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol:{code:1166,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol_1166",message:"A computed property name in a class property declaration must directly refer to a built-in symbol."},A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol:{code:1168,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol_1168",message:"A computed property name in a method overload must directly refer to a built-in symbol."},A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol:{code:1169,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol_1169",message:"A computed property name in an interface must directly refer to a built-in symbol."},A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol:{code:1170,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol_1170",message:"A computed property name in a type literal must directly refer to a built-in symbol."},A_comma_expression_is_not_allowed_in_a_computed_property_name:{code:1171,category:e.DiagnosticCategory.Error,key:"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171",message:"A comma expression is not allowed in a computed property name."},extends_clause_already_seen:{code:1172,category:e.DiagnosticCategory.Error,key:"extends_clause_already_seen_1172",message:"'extends' clause already seen."},extends_clause_must_precede_implements_clause:{code:1173,category:e.DiagnosticCategory.Error,key:"extends_clause_must_precede_implements_clause_1173",message:"'extends' clause must precede 'implements' clause."},Classes_can_only_extend_a_single_class:{code:1174,category:e.DiagnosticCategory.Error,key:"Classes_can_only_extend_a_single_class_1174",message:"Classes can only extend a single class."},implements_clause_already_seen:{code:1175,category:e.DiagnosticCategory.Error,key:"implements_clause_already_seen_1175",message:"'implements' clause already seen."},Interface_declaration_cannot_have_implements_clause:{code:1176,category:e.DiagnosticCategory.Error,key:"Interface_declaration_cannot_have_implements_clause_1176",message:"Interface declaration cannot have 'implements' clause."},Binary_digit_expected:{code:1177,category:e.DiagnosticCategory.Error,key:"Binary_digit_expected_1177",message:"Binary digit expected."},Octal_digit_expected:{code:1178,category:e.DiagnosticCategory.Error,key:"Octal_digit_expected_1178",message:"Octal digit expected."},Unexpected_token_expected:{code:1179,category:e.DiagnosticCategory.Error,key:"Unexpected_token_expected_1179",message:"Unexpected token. '{' expected."},Property_destructuring_pattern_expected:{code:1180,category:e.DiagnosticCategory.Error,key:"Property_destructuring_pattern_expected_1180",message:"Property destructuring pattern expected."},Array_element_destructuring_pattern_expected:{code:1181,category:e.DiagnosticCategory.Error,key:"Array_element_destructuring_pattern_expected_1181",message:"Array element destructuring pattern expected."},
A_destructuring_declaration_must_have_an_initializer:{code:1182,category:e.DiagnosticCategory.Error,key:"A_destructuring_declaration_must_have_an_initializer_1182",message:"A destructuring declaration must have an initializer."},An_implementation_cannot_be_declared_in_ambient_contexts:{code:1183,category:e.DiagnosticCategory.Error,key:"An_implementation_cannot_be_declared_in_ambient_contexts_1183",message:"An implementation cannot be declared in ambient contexts."},Modifiers_cannot_appear_here:{code:1184,category:e.DiagnosticCategory.Error,key:"Modifiers_cannot_appear_here_1184",message:"Modifiers cannot appear here."},Merge_conflict_marker_encountered:{code:1185,category:e.DiagnosticCategory.Error,key:"Merge_conflict_marker_encountered_1185",message:"Merge conflict marker encountered."},A_rest_element_cannot_have_an_initializer:{code:1186,category:e.DiagnosticCategory.Error,key:"A_rest_element_cannot_have_an_initializer_1186",message:"A rest element cannot have an initializer."},A_parameter_property_may_not_be_declared_using_a_binding_pattern:{code:1187,category:e.DiagnosticCategory.Error,key:"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187",message:"A parameter property may not be declared using a binding pattern."},Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:{code:1188,category:e.DiagnosticCategory.Error,key:"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188",message:"Only a single variable declaration is allowed in a 'for...of' statement."},The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:{code:1189,category:e.DiagnosticCategory.Error,key:"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189",message:"The variable declaration of a 'for...in' statement cannot have an initializer."},The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:{code:1190,category:e.DiagnosticCategory.Error,key:"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190",message:"The variable declaration of a 'for...of' statement cannot have an initializer."},An_import_declaration_cannot_have_modifiers:{code:1191,category:e.DiagnosticCategory.Error,key:"An_import_declaration_cannot_have_modifiers_1191",message:"An import declaration cannot have modifiers."},Module_0_has_no_default_export:{code:1192,category:e.DiagnosticCategory.Error,key:"Module_0_has_no_default_export_1192",message:"Module '{0}' has no default export."},An_export_declaration_cannot_have_modifiers:{code:1193,category:e.DiagnosticCategory.Error,key:"An_export_declaration_cannot_have_modifiers_1193",message:"An export declaration cannot have modifiers."},Export_declarations_are_not_permitted_in_a_namespace:{code:1194,category:e.DiagnosticCategory.Error,key:"Export_declarations_are_not_permitted_in_a_namespace_1194",message:"Export declarations are not permitted in a namespace."},Catch_clause_variable_cannot_have_a_type_annotation:{code:1196,category:e.DiagnosticCategory.Error,key:"Catch_clause_variable_cannot_have_a_type_annotation_1196",message:"Catch clause variable cannot have a type annotation."},Catch_clause_variable_cannot_have_an_initializer:{code:1197,category:e.DiagnosticCategory.Error,key:"Catch_clause_variable_cannot_have_an_initializer_1197",message:"Catch clause variable cannot have an initializer."},An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:{code:1198,category:e.DiagnosticCategory.Error,key:"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198",message:"An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."},Unterminated_Unicode_escape_sequence:{code:1199,category:e.DiagnosticCategory.Error,key:"Unterminated_Unicode_escape_sequence_1199",message:"Unterminated Unicode escape sequence."},Line_terminator_not_permitted_before_arrow:{code:1200,category:e.DiagnosticCategory.Error,key:"Line_terminator_not_permitted_before_arrow_1200",message:"Line terminator not permitted before arrow."},Import_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:{code:1202,category:e.DiagnosticCategory.Error,key:"Import_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_import_Asteri_1202",message:"Import assignment cannot be used when targeting ECMAScript 2015 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_2015_modules_Consider_using_export_default_or_another_module_format_instead:{code:1203,category:e.DiagnosticCategory.Error,key:"Export_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_export_defaul_1203",message:"Export assignment cannot be used when targeting ECMAScript 2015 modules. Consider using 'export default' or another module format instead."},Decorators_are_not_valid_here:{code:1206,category:e.DiagnosticCategory.Error,key:"Decorators_are_not_valid_here_1206",message:"Decorators are not valid here."},Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:{code:1207,category:e.DiagnosticCategory.Error,key:"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207",message:"Decorators cannot be applied to multiple get/set accessors of the same name."},Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided:{code:1208,category:e.DiagnosticCategory.Error,key:"Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided_1208",message:"Cannot compile namespaces when the '--isolatedModules' flag is provided."},Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided:{code:1209,category:e.DiagnosticCategory.Error,key:"Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided_1209",message:"Ambient const enums are not allowed when the '--isolatedModules' flag is provided."},Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:{code:1210,category:e.DiagnosticCategory.Error,key:"Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode_1210",message:"Invalid use of '{0}'. Class definitions are automatically in strict mode."},A_class_declaration_without_the_default_modifier_must_have_a_name:{code:1211,category:e.DiagnosticCategory.Error,key:"A_class_declaration_without_the_default_modifier_must_have_a_name_1211",message:"A class declaration without the 'default' modifier must have a name"},Identifier_expected_0_is_a_reserved_word_in_strict_mode:{code:1212,category:e.DiagnosticCategory.Error,key:"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212",message:"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:{code:1213,category:e.DiagnosticCategory.Error,key:"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213",message:"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:{code:1214,category:e.DiagnosticCategory.Error,key:"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214",message:"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:{code:1215,category:e.DiagnosticCategory.Error,key:"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215",message:"Invalid use of '{0}'. Modules are automatically in strict mode."},Export_assignment_is_not_supported_when_module_flag_is_system:{code:1218,category:e.DiagnosticCategory.Error,key:"Export_assignment_is_not_supported_when_module_flag_is_system_1218",message:"Export assignment is not supported when '--module' flag is 'system'."},Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning:{code:1219,category:e.DiagnosticCategory.Error,key:"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219",message:"Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning."},Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher:{code:1220,category:e.DiagnosticCategory.Error,key:"Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher_1220",message:"Generators are only available when targeting ECMAScript 2015 or higher."},Generators_are_not_allowed_in_an_ambient_context:{code:1221,category:e.DiagnosticCategory.Error,key:"Generators_are_not_allowed_in_an_ambient_context_1221",message:"Generators are not allowed in an ambient context."},An_overload_signature_cannot_be_declared_as_a_generator:{code:1222,category:e.DiagnosticCategory.Error,key:"An_overload_signature_cannot_be_declared_as_a_generator_1222",message:"An overload signature cannot be declared as a generator."},_0_tag_already_specified:{code:1223,category:e.DiagnosticCategory.Error,key:"_0_tag_already_specified_1223",message:"'{0}' tag already specified."},Signature_0_must_have_a_type_predicate:{code:1224,category:e.DiagnosticCategory.Error,key:"Signature_0_must_have_a_type_predicate_1224",message:"Signature '{0}' must have a type predicate."},Cannot_find_parameter_0:{code:1225,category:e.DiagnosticCategory.Error,key:"Cannot_find_parameter_0_1225",message:"Cannot find parameter '{0}'."},Type_predicate_0_is_not_assignable_to_1:{code:1226,category:e.DiagnosticCategory.Error,key:"Type_predicate_0_is_not_assignable_to_1_1226",message:"Type predicate '{0}' is not assignable to '{1}'."},Parameter_0_is_not_in_the_same_position_as_parameter_1:{code:1227,category:e.DiagnosticCategory.Error,key:"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227",message:"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:{code:1228,category:e.DiagnosticCategory.Error,key:"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228",message:"A type predicate is only allowed in return type position for functions and methods."},A_type_predicate_cannot_reference_a_rest_parameter:{code:1229,category:e.DiagnosticCategory.Error,key:"A_type_predicate_cannot_reference_a_rest_parameter_1229",message:"A type predicate cannot reference a rest parameter."},A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:{code:1230,category:e.DiagnosticCategory.Error,key:"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230",message:"A type predicate cannot reference element '{0}' in a binding pattern."},An_export_assignment_can_only_be_used_in_a_module:{code:1231,category:e.DiagnosticCategory.Error,key:"An_export_assignment_can_only_be_used_in_a_module_1231",message:"An export assignment can only be used in a module."},An_import_declaration_can_only_be_used_in_a_namespace_or_module:{code:1232,category:e.DiagnosticCategory.Error,key:"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232",message:"An import declaration can only be used in a namespace or module."},An_export_declaration_can_only_be_used_in_a_module:{code:1233,category:e.DiagnosticCategory.Error,key:"An_export_declaration_can_only_be_used_in_a_module_1233",message:"An export declaration can only be used in a module."},An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:{code:1234,category:e.DiagnosticCategory.Error,key:"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234",message:"An ambient module declaration is only allowed at the top level in a file."},A_namespace_declaration_is_only_allowed_in_a_namespace_or_module:{code:1235,category:e.DiagnosticCategory.Error,key:"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235",message:"A namespace declaration is only allowed in a namespace or module."},The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:{code:1236,category:e.DiagnosticCategory.Error,key:"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236",message:"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:{code:1237,category:e.DiagnosticCategory.Error,key:"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237",message:"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:{code:1238,category:e.DiagnosticCategory.Error,key:"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238",message:"Unable to resolve signature of class decorator when called as an expression."},Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:{code:1239,category:e.DiagnosticCategory.Error,key:"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239",message:"Unable to resolve signature of parameter decorator when called as an expression."},Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:{code:1240,category:e.DiagnosticCategory.Error,key:"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240",message:"Unable to resolve signature of property decorator when called as an expression."},Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:{code:1241,category:e.DiagnosticCategory.Error,key:"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241",message:"Unable to resolve signature of method decorator when called as an expression."},abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:{code:1242,category:e.DiagnosticCategory.Error,key:"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242",message:"'abstract' modifier can only appear on a class, method, or property declaration."},_0_modifier_cannot_be_used_with_1_modifier:{code:1243,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_be_used_with_1_modifier_1243",message:"'{0}' modifier cannot be used with '{1}' modifier."},Abstract_methods_can_only_appear_within_an_abstract_class:{code:1244,category:e.DiagnosticCategory.Error,key:"Abstract_methods_can_only_appear_within_an_abstract_class_1244",message:"Abstract methods can only appear within an abstract class."},Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:{code:1245,category:e.DiagnosticCategory.Error,key:"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245",message:"Method '{0}' cannot have an implementation because it is marked abstract."},An_interface_property_cannot_have_an_initializer:{code:1246,category:e.DiagnosticCategory.Error,key:"An_interface_property_cannot_have_an_initializer_1246",message:"An interface property cannot have an initializer."},A_type_literal_property_cannot_have_an_initializer:{code:1247,category:e.DiagnosticCategory.Error,key:"A_type_literal_property_cannot_have_an_initializer_1247",message:"A type literal property cannot have an initializer."},A_class_member_cannot_have_the_0_keyword:{code:1248,category:e.DiagnosticCategory.Error,key:"A_class_member_cannot_have_the_0_keyword_1248",message:"A class member cannot have the '{0}' keyword."},A_decorator_can_only_decorate_a_method_implementation_not_an_overload:{code:1249,category:e.DiagnosticCategory.Error,key:"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249",message:"A decorator can only decorate a method implementation, not an overload."},Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:{code:1250,category:e.DiagnosticCategory.Error,key:"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250",message:"Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."},Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:{code:1251,category:e.DiagnosticCategory.Error,key:"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251",message:"Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."},Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:{code:1252,category:e.DiagnosticCategory.Error,key:"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252",message:"Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."},_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag:{code:1253,category:e.DiagnosticCategory.Error,key:"_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag_1253",message:"'{0}' tag cannot be used independently as a top level JSDoc tag."},A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal:{code:1254,category:e.DiagnosticCategory.Error,key:"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_1254",message:"A 'const' initializer in an ambient context must be a string or numeric literal."},with_statements_are_not_allowed_in_an_async_function_block:{code:1300,category:e.DiagnosticCategory.Error,key:"with_statements_are_not_allowed_in_an_async_function_block_1300",message:"'with' statements are not allowed in an async function block."},await_expression_is_only_allowed_within_an_async_function:{code:1308,category:e.DiagnosticCategory.Error,key:"await_expression_is_only_allowed_within_an_async_function_1308",message:"'await' expression is only allowed within an async function."},can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment:{code:1312,category:e.DiagnosticCategory.Error,key:"can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment_1312",message:"'=' can only be used in an object literal property inside a destructuring assignment."},The_body_of_an_if_statement_cannot_be_the_empty_statement:{code:1313,category:e.DiagnosticCategory.Error,key:"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313",message:"The body of an 'if' statement cannot be the empty statement."},Global_module_exports_may_only_appear_in_module_files:{code:1314,category:e.DiagnosticCategory.Error,key:"Global_module_exports_may_only_appear_in_module_files_1314",message:"Global module exports may only appear in module files."},Global_module_exports_may_only_appear_in_declaration_files:{code:1315,category:e.DiagnosticCategory.Error,key:"Global_module_exports_may_only_appear_in_declaration_files_1315",message:"Global module exports may only appear in declaration files."},Global_module_exports_may_only_appear_at_top_level:{code:1316,category:e.DiagnosticCategory.Error,key:"Global_module_exports_may_only_appear_at_top_level_1316",message:"Global module exports may only appear at top level."},A_parameter_property_cannot_be_declared_using_a_rest_parameter:{code:1317,category:e.DiagnosticCategory.Error,key:"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317",message:"A parameter property cannot be declared using a rest parameter."},An_abstract_accessor_cannot_have_an_implementation:{code:1318,category:e.DiagnosticCategory.Error,key:"An_abstract_accessor_cannot_have_an_implementation_1318",message:"An abstract accessor cannot have an implementation."},Duplicate_identifier_0:{code:2300,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_0_2300",message:"Duplicate identifier '{0}'."},Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:{code:2301,category:e.DiagnosticCategory.Error,key:"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301",message:"Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."},Static_members_cannot_reference_class_type_parameters:{code:2302,category:e.DiagnosticCategory.Error,key:"Static_members_cannot_reference_class_type_parameters_2302",message:"Static members cannot reference class type parameters."},Circular_definition_of_import_alias_0:{code:2303,category:e.DiagnosticCategory.Error,key:"Circular_definition_of_import_alias_0_2303",message:"Circular definition of import alias '{0}'."},Cannot_find_name_0:{code:2304,category:e.DiagnosticCategory.Error,key:"Cannot_find_name_0_2304",message:"Cannot find name '{0}'."},Module_0_has_no_exported_member_1:{code:2305,category:e.DiagnosticCategory.Error,key:"Module_0_has_no_exported_member_1_2305",message:"Module '{0}' has no exported member '{1}'."},File_0_is_not_a_module:{code:2306,category:e.DiagnosticCategory.Error,key:"File_0_is_not_a_module_2306",message:"File '{0}' is not a module."},Cannot_find_module_0:{code:2307,category:e.DiagnosticCategory.Error,key:"Cannot_find_module_0_2307",message:"Cannot find module '{0}'."},Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:{code:2308,category:e.DiagnosticCategory.Error,key:"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308",message:"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:{code:2309,category:e.DiagnosticCategory.Error,key:"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309",message:"An export assignment cannot be used in a module with other exported elements."},Type_0_recursively_references_itself_as_a_base_type:{code:2310,category:e.DiagnosticCategory.Error,key:"Type_0_recursively_references_itself_as_a_base_type_2310",message:"Type '{0}' recursively references itself as a base type."},A_class_may_only_extend_another_class:{code:2311,category:e.DiagnosticCategory.Error,key:"A_class_may_only_extend_another_class_2311",message:"A class may only extend another class."},An_interface_may_only_extend_a_class_or_another_interface:{code:2312,category:e.DiagnosticCategory.Error,key:"An_interface_may_only_extend_a_class_or_another_interface_2312",message:"An interface may only extend a class or another interface."},Type_parameter_0_has_a_circular_constraint:{code:2313,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_has_a_circular_constraint_2313",message:"Type parameter '{0}' has a circular constraint."},Generic_type_0_requires_1_type_argument_s:{code:2314,category:e.DiagnosticCategory.Error,key:"Generic_type_0_requires_1_type_argument_s_2314",message:"Generic type '{0}' requires {1} type argument(s)."},Type_0_is_not_generic:{code:2315,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_generic_2315",message:"Type '{0}' is not generic."},Global_type_0_must_be_a_class_or_interface_type:{code:2316,category:e.DiagnosticCategory.Error,key:"Global_type_0_must_be_a_class_or_interface_type_2316",message:"Global type '{0}' must be a class or interface type."},Global_type_0_must_have_1_type_parameter_s:{code:2317,category:e.DiagnosticCategory.Error,key:"Global_type_0_must_have_1_type_parameter_s_2317",message:"Global type '{0}' must have {1} type parameter(s)."},Cannot_find_global_type_0:{code:2318,category:e.DiagnosticCategory.Error,key:"Cannot_find_global_type_0_2318",message:"Cannot find global type '{0}'."},Named_property_0_of_types_1_and_2_are_not_identical:{code:2319,category:e.DiagnosticCategory.Error,key:"Named_property_0_of_types_1_and_2_are_not_identical_2319",message:"Named property '{0}' of types '{1}' and '{2}' are not identical."},Interface_0_cannot_simultaneously_extend_types_1_and_2:{code:2320,category:e.DiagnosticCategory.Error,key:"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320",message:"Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."},Excessive_stack_depth_comparing_types_0_and_1:{code:2321,category:e.DiagnosticCategory.Error,key:"Excessive_stack_depth_comparing_types_0_and_1_2321",message:"Excessive stack depth comparing types '{0}' and '{1}'."},Type_0_is_not_assignable_to_type_1:{code:2322,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_assignable_to_type_1_2322",message:"Type '{0}' is not assignable to type '{1}'."},Cannot_redeclare_exported_variable_0:{code:2323,category:e.DiagnosticCategory.Error,key:"Cannot_redeclare_exported_variable_0_2323",message:"Cannot redeclare exported variable '{0}'."},Property_0_is_missing_in_type_1:{code:2324,category:e.DiagnosticCategory.Error,key:"Property_0_is_missing_in_type_1_2324",message:"Property '{0}' is missing in type '{1}'."},Property_0_is_private_in_type_1_but_not_in_type_2:{code:2325,category:e.DiagnosticCategory.Error,key:"Property_0_is_private_in_type_1_but_not_in_type_2_2325",message:"Property '{0}' is private in type '{1}' but not in type '{2}'."},Types_of_property_0_are_incompatible:{code:2326,category:e.DiagnosticCategory.Error,key:"Types_of_property_0_are_incompatible_2326",message:"Types of property '{0}' are incompatible."},Property_0_is_optional_in_type_1_but_required_in_type_2:{code:2327,category:e.DiagnosticCategory.Error,key:"Property_0_is_optional_in_type_1_but_required_in_type_2_2327",message:"Property '{0}' is optional in type '{1}' but required in type '{2}'."},Types_of_parameters_0_and_1_are_incompatible:{code:2328,category:e.DiagnosticCategory.Error,key:"Types_of_parameters_0_and_1_are_incompatible_2328",message:"Types of parameters '{0}' and '{1}' are incompatible."},Index_signature_is_missing_in_type_0:{code:2329,category:e.DiagnosticCategory.Error,key:"Index_signature_is_missing_in_type_0_2329",message:"Index signature is missing in type '{0}'."},Index_signatures_are_incompatible:{code:2330,category:e.DiagnosticCategory.Error,key:"Index_signatures_are_incompatible_2330",message:"Index signatures are incompatible."},this_cannot_be_referenced_in_a_module_or_namespace_body:{code:2331,category:e.DiagnosticCategory.Error,key:"this_cannot_be_referenced_in_a_module_or_namespace_body_2331",message:"'this' cannot be referenced in a module or namespace body."},this_cannot_be_referenced_in_current_location:{code:2332,category:e.DiagnosticCategory.Error,key:"this_cannot_be_referenced_in_current_location_2332",message:"'this' cannot be referenced in current location."},this_cannot_be_referenced_in_constructor_arguments:{code:2333,category:e.DiagnosticCategory.Error,key:"this_cannot_be_referenced_in_constructor_arguments_2333",message:"'this' cannot be referenced in constructor arguments."},this_cannot_be_referenced_in_a_static_property_initializer:{code:2334,category:e.DiagnosticCategory.Error,key:"this_cannot_be_referenced_in_a_static_property_initializer_2334",message:"'this' cannot be referenced in a static property initializer."},super_can_only_be_referenced_in_a_derived_class:{code:2335,category:e.DiagnosticCategory.Error,key:"super_can_only_be_referenced_in_a_derived_class_2335",message:"'super' can only be referenced in a derived class."},super_cannot_be_referenced_in_constructor_arguments:{code:2336,category:e.DiagnosticCategory.Error,key:"super_cannot_be_referenced_in_constructor_arguments_2336",message:"'super' cannot be referenced in constructor arguments."},Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:{code:2337,category:e.DiagnosticCategory.Error,key:"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337",message:"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:{code:2338,category:e.DiagnosticCategory.Error,key:"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338",message:"'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:{code:2339,category:e.DiagnosticCategory.Error,key:"Property_0_does_not_exist_on_type_1_2339",message:"Property '{0}' does not exist on type '{1}'."},Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:{code:2340,category:e.DiagnosticCategory.Error,key:"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340",message:"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:{code:2341,category:e.DiagnosticCategory.Error,key:"Property_0_is_private_and_only_accessible_within_class_1_2341",message:"Property '{0}' is private and only accessible within class '{1}'."},An_index_expression_argument_must_be_of_type_string_number_symbol_or_any:{code:2342,category:e.DiagnosticCategory.Error,key:"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342",message:"An index expression argument must be of type 'string', 'number', 'symbol', or 'any'."},This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1:{code:2343,category:e.DiagnosticCategory.Error,key:"This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1_2343",message:"This syntax requires an imported helper named '{1}', but module '{0}' has no exported member '{1}'."},Type_0_does_not_satisfy_the_constraint_1:{code:2344,category:e.DiagnosticCategory.Error,key:"Type_0_does_not_satisfy_the_constraint_1_2344",message:"Type '{0}' does not satisfy the constraint '{1}'."},Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:{code:2345,category:e.DiagnosticCategory.Error,key:"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345",message:"Argument of type '{0}' is not assignable to parameter of type '{1}'."},Supplied_parameters_do_not_match_any_signature_of_call_target:{code:2346,category:e.DiagnosticCategory.Error,key:"Supplied_parameters_do_not_match_any_signature_of_call_target_2346",message:"Supplied parameters do not match any signature of call target."},Untyped_function_calls_may_not_accept_type_arguments:{code:2347,category:e.DiagnosticCategory.Error,key:"Untyped_function_calls_may_not_accept_type_arguments_2347",message:"Untyped function calls may not accept type arguments."},Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:{code:2348,category:e.DiagnosticCategory.Error,key:"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348",message:"Value of type '{0}' is not callable. Did you mean to include 'new'?"},Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures:{code:2349,category:e.DiagnosticCategory.Error,key:"Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatur_2349",message:"Cannot invoke an expression whose type lacks a call signature. Type '{0}' has no compatible call signatures."},Only_a_void_function_can_be_called_with_the_new_keyword:{code:2350,category:e.DiagnosticCategory.Error,key:"Only_a_void_function_can_be_called_with_the_new_keyword_2350",message:"Only a void function can be called with the 'new' keyword."
},Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature:{code:2351,category:e.DiagnosticCategory.Error,key:"Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature_2351",message:"Cannot use 'new' with an expression whose type lacks a call or construct signature."},Type_0_cannot_be_converted_to_type_1:{code:2352,category:e.DiagnosticCategory.Error,key:"Type_0_cannot_be_converted_to_type_1_2352",message:"Type '{0}' cannot be converted to type '{1}'."},Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:{code:2353,category:e.DiagnosticCategory.Error,key:"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353",message:"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:{code:2354,category:e.DiagnosticCategory.Error,key:"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354",message:"This syntax requires an imported helper but module '{0}' cannot be found."},A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:{code:2355,category:e.DiagnosticCategory.Error,key:"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355",message:"A function whose declared type is neither 'void' nor 'any' must return a value."},An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type:{code:2356,category:e.DiagnosticCategory.Error,key:"An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type_2356",message:"An arithmetic operand must be of type 'any', 'number' or an enum type."},The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:{code:2357,category:e.DiagnosticCategory.Error,key:"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357",message:"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:{code:2358,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358",message:"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_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:{code:2359,category:e.DiagnosticCategory.Error,key:"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359",message:"The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."},The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol:{code:2360,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol_2360",message:"The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'."},The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:{code:2361,category:e.DiagnosticCategory.Error,key:"The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter_2361",message:"The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter"},The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type:{code:2362,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2362",message:"The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."},The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type:{code:2363,category:e.DiagnosticCategory.Error,key:"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2363",message:"The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."},The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:{code:2364,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364",message:"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:{code:2365,category:e.DiagnosticCategory.Error,key:"Operator_0_cannot_be_applied_to_types_1_and_2_2365",message:"Operator '{0}' cannot be applied to types '{1}' and '{2}'."},Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:{code:2366,category:e.DiagnosticCategory.Error,key:"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366",message:"Function lacks ending return statement and return type does not include 'undefined'."},Type_parameter_name_cannot_be_0:{code:2368,category:e.DiagnosticCategory.Error,key:"Type_parameter_name_cannot_be_0_2368",message:"Type parameter name cannot be '{0}'"},A_parameter_property_is_only_allowed_in_a_constructor_implementation:{code:2369,category:e.DiagnosticCategory.Error,key:"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369",message:"A parameter property is only allowed in a constructor implementation."},A_rest_parameter_must_be_of_an_array_type:{code:2370,category:e.DiagnosticCategory.Error,key:"A_rest_parameter_must_be_of_an_array_type_2370",message:"A rest parameter must be of an array type."},A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:{code:2371,category:e.DiagnosticCategory.Error,key:"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371",message:"A parameter initializer is only allowed in a function or constructor implementation."},Parameter_0_cannot_be_referenced_in_its_initializer:{code:2372,category:e.DiagnosticCategory.Error,key:"Parameter_0_cannot_be_referenced_in_its_initializer_2372",message:"Parameter '{0}' cannot be referenced in its initializer."},Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it:{code:2373,category:e.DiagnosticCategory.Error,key:"Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it_2373",message:"Initializer of parameter '{0}' cannot reference identifier '{1}' declared after it."},Duplicate_string_index_signature:{code:2374,category:e.DiagnosticCategory.Error,key:"Duplicate_string_index_signature_2374",message:"Duplicate string index signature."},Duplicate_number_index_signature:{code:2375,category:e.DiagnosticCategory.Error,key:"Duplicate_number_index_signature_2375",message:"Duplicate number index signature."},A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties:{code:2376,category:e.DiagnosticCategory.Error,key:"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376",message:"A 'super' call must be the first statement in the constructor when a class contains initialized properties or has parameter properties."},Constructors_for_derived_classes_must_contain_a_super_call:{code:2377,category:e.DiagnosticCategory.Error,key:"Constructors_for_derived_classes_must_contain_a_super_call_2377",message:"Constructors for derived classes must contain a 'super' call."},A_get_accessor_must_return_a_value:{code:2378,category:e.DiagnosticCategory.Error,key:"A_get_accessor_must_return_a_value_2378",message:"A 'get' accessor must return a value."},Getter_and_setter_accessors_do_not_agree_in_visibility:{code:2379,category:e.DiagnosticCategory.Error,key:"Getter_and_setter_accessors_do_not_agree_in_visibility_2379",message:"Getter and setter accessors do not agree in visibility."},get_and_set_accessor_must_have_the_same_type:{code:2380,category:e.DiagnosticCategory.Error,key:"get_and_set_accessor_must_have_the_same_type_2380",message:"'get' and 'set' accessor must have the same type."},A_signature_with_an_implementation_cannot_use_a_string_literal_type:{code:2381,category:e.DiagnosticCategory.Error,key:"A_signature_with_an_implementation_cannot_use_a_string_literal_type_2381",message:"A signature with an implementation cannot use a string literal type."},Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature:{code:2382,category:e.DiagnosticCategory.Error,key:"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382",message:"Specialized overload signature is not assignable to any non-specialized signature."},Overload_signatures_must_all_be_exported_or_non_exported:{code:2383,category:e.DiagnosticCategory.Error,key:"Overload_signatures_must_all_be_exported_or_non_exported_2383",message:"Overload signatures must all be exported or non-exported."},Overload_signatures_must_all_be_ambient_or_non_ambient:{code:2384,category:e.DiagnosticCategory.Error,key:"Overload_signatures_must_all_be_ambient_or_non_ambient_2384",message:"Overload signatures must all be ambient or non-ambient."},Overload_signatures_must_all_be_public_private_or_protected:{code:2385,category:e.DiagnosticCategory.Error,key:"Overload_signatures_must_all_be_public_private_or_protected_2385",message:"Overload signatures must all be public, private or protected."},Overload_signatures_must_all_be_optional_or_required:{code:2386,category:e.DiagnosticCategory.Error,key:"Overload_signatures_must_all_be_optional_or_required_2386",message:"Overload signatures must all be optional or required."},Function_overload_must_be_static:{code:2387,category:e.DiagnosticCategory.Error,key:"Function_overload_must_be_static_2387",message:"Function overload must be static."},Function_overload_must_not_be_static:{code:2388,category:e.DiagnosticCategory.Error,key:"Function_overload_must_not_be_static_2388",message:"Function overload must not be static."},Function_implementation_name_must_be_0:{code:2389,category:e.DiagnosticCategory.Error,key:"Function_implementation_name_must_be_0_2389",message:"Function implementation name must be '{0}'."},Constructor_implementation_is_missing:{code:2390,category:e.DiagnosticCategory.Error,key:"Constructor_implementation_is_missing_2390",message:"Constructor implementation is missing."},Function_implementation_is_missing_or_not_immediately_following_the_declaration:{code:2391,category:e.DiagnosticCategory.Error,key:"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391",message:"Function implementation is missing or not immediately following the declaration."},Multiple_constructor_implementations_are_not_allowed:{code:2392,category:e.DiagnosticCategory.Error,key:"Multiple_constructor_implementations_are_not_allowed_2392",message:"Multiple constructor implementations are not allowed."},Duplicate_function_implementation:{code:2393,category:e.DiagnosticCategory.Error,key:"Duplicate_function_implementation_2393",message:"Duplicate function implementation."},Overload_signature_is_not_compatible_with_function_implementation:{code:2394,category:e.DiagnosticCategory.Error,key:"Overload_signature_is_not_compatible_with_function_implementation_2394",message:"Overload signature is not compatible with function implementation."},Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:{code:2395,category:e.DiagnosticCategory.Error,key:"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395",message:"Individual declarations in merged declaration '{0}' must be all exported or all local."},Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:{code:2396,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396",message:"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."},Declaration_name_conflicts_with_built_in_global_identifier_0:{code:2397,category:e.DiagnosticCategory.Error,key:"Declaration_name_conflicts_with_built_in_global_identifier_0_2397",message:"Declaration name conflicts with built-in global identifier '{0}'."},Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:{code:2399,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399",message:"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:{code:2400,category:e.DiagnosticCategory.Error,key:"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400",message:"Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."},Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:{code:2401,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference_2401",message:"Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference."},Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:{code:2402,category:e.DiagnosticCategory.Error,key:"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402",message:"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:{code:2403,category:e.DiagnosticCategory.Error,key:"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403",message:"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:{code:2404,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404",message:"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:{code:2405,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405",message:"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:{code:2406,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406",message:"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:{code:2407,category:e.DiagnosticCategory.Error,key:"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_2407",message:"The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter."},Setters_cannot_return_a_value:{code:2408,category:e.DiagnosticCategory.Error,key:"Setters_cannot_return_a_value_2408",message:"Setters cannot return a value."},Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:{code:2409,category:e.DiagnosticCategory.Error,key:"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409",message:"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:{code:2410,category:e.DiagnosticCategory.Error,key:"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410",message:"The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."},Property_0_of_type_1_is_not_assignable_to_string_index_type_2:{code:2411,category:e.DiagnosticCategory.Error,key:"Property_0_of_type_1_is_not_assignable_to_string_index_type_2_2411",message:"Property '{0}' of type '{1}' is not assignable to string index type '{2}'."},Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2:{code:2412,category:e.DiagnosticCategory.Error,key:"Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2_2412",message:"Property '{0}' of type '{1}' is not assignable to numeric index type '{2}'."},Numeric_index_type_0_is_not_assignable_to_string_index_type_1:{code:2413,category:e.DiagnosticCategory.Error,key:"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413",message:"Numeric index type '{0}' is not assignable to string index type '{1}'."},Class_name_cannot_be_0:{code:2414,category:e.DiagnosticCategory.Error,key:"Class_name_cannot_be_0_2414",message:"Class name cannot be '{0}'"},Class_0_incorrectly_extends_base_class_1:{code:2415,category:e.DiagnosticCategory.Error,key:"Class_0_incorrectly_extends_base_class_1_2415",message:"Class '{0}' incorrectly extends base class '{1}'."},Class_static_side_0_incorrectly_extends_base_class_static_side_1:{code:2417,category:e.DiagnosticCategory.Error,key:"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417",message:"Class static side '{0}' incorrectly extends base class static side '{1}'."},Class_0_incorrectly_implements_interface_1:{code:2420,category:e.DiagnosticCategory.Error,key:"Class_0_incorrectly_implements_interface_1_2420",message:"Class '{0}' incorrectly implements interface '{1}'."},A_class_may_only_implement_another_class_or_interface:{code:2422,category:e.DiagnosticCategory.Error,key:"A_class_may_only_implement_another_class_or_interface_2422",message:"A class may only implement another class or interface."},Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:{code:2423,category:e.DiagnosticCategory.Error,key:"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423",message:"Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."},Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_property:{code:2424,category:e.DiagnosticCategory.Error,key:"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_proper_2424",message:"Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member property."},Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:{code:2425,category:e.DiagnosticCategory.Error,key:"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425",message:"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:{code:2426,category:e.DiagnosticCategory.Error,key:"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426",message:"Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."},Interface_name_cannot_be_0:{code:2427,category:e.DiagnosticCategory.Error,key:"Interface_name_cannot_be_0_2427",message:"Interface name cannot be '{0}'"},All_declarations_of_0_must_have_identical_type_parameters:{code:2428,category:e.DiagnosticCategory.Error,key:"All_declarations_of_0_must_have_identical_type_parameters_2428",message:"All declarations of '{0}' must have identical type parameters."},Interface_0_incorrectly_extends_interface_1:{code:2430,category:e.DiagnosticCategory.Error,key:"Interface_0_incorrectly_extends_interface_1_2430",message:"Interface '{0}' incorrectly extends interface '{1}'."},Enum_name_cannot_be_0:{code:2431,category:e.DiagnosticCategory.Error,key:"Enum_name_cannot_be_0_2431",message:"Enum name cannot be '{0}'"},In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:{code:2432,category:e.DiagnosticCategory.Error,key:"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432",message:"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:{code:2433,category:e.DiagnosticCategory.Error,key:"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433",message:"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:{code:2434,category:e.DiagnosticCategory.Error,key:"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434",message:"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:{code:2435,category:e.DiagnosticCategory.Error,key:"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435",message:"Ambient modules cannot be nested in other modules or namespaces."},Ambient_module_declaration_cannot_specify_relative_module_name:{code:2436,category:e.DiagnosticCategory.Error,key:"Ambient_module_declaration_cannot_specify_relative_module_name_2436",message:"Ambient module declaration cannot specify relative module name."},Module_0_is_hidden_by_a_local_declaration_with_the_same_name:{code:2437,category:e.DiagnosticCategory.Error,key:"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437",message:"Module '{0}' is hidden by a local declaration with the same name"},Import_name_cannot_be_0:{code:2438,category:e.DiagnosticCategory.Error,key:"Import_name_cannot_be_0_2438",message:"Import name cannot be '{0}'"},Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:{code:2439,category:e.DiagnosticCategory.Error,key:"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439",message:"Import or export declaration in an ambient module declaration cannot reference module through relative module name."},Import_declaration_conflicts_with_local_declaration_of_0:{code:2440,category:e.DiagnosticCategory.Error,key:"Import_declaration_conflicts_with_local_declaration_of_0_2440",message:"Import declaration conflicts with local declaration of '{0}'"},Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:{code:2441,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441",message:"Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."},Types_have_separate_declarations_of_a_private_property_0:{code:2442,category:e.DiagnosticCategory.Error,key:"Types_have_separate_declarations_of_a_private_property_0_2442",message:"Types have separate declarations of a private property '{0}'."},Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:{code:2443,category:e.DiagnosticCategory.Error,key:"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443",message:"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:{code:2444,category:e.DiagnosticCategory.Error,key:"Property_0_is_protected_in_type_1_but_public_in_type_2_2444",message:"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:{code:2445,category:e.DiagnosticCategory.Error,key:"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445",message:"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:{code:2446,category:e.DiagnosticCategory.Error,key:"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_2446",message:"Property '{0}' is protected and only accessible through an instance of class '{1}'."},The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:{code:2447,category:e.DiagnosticCategory.Error,key:"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447",message:"The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."},Block_scoped_variable_0_used_before_its_declaration:{code:2448,category:e.DiagnosticCategory.Error,key:"Block_scoped_variable_0_used_before_its_declaration_2448",message:"Block-scoped variable '{0}' used before its declaration."},Cannot_redeclare_block_scoped_variable_0:{code:2451,category:e.DiagnosticCategory.Error,key:"Cannot_redeclare_block_scoped_variable_0_2451",message:"Cannot redeclare block-scoped variable '{0}'."},An_enum_member_cannot_have_a_numeric_name:{code:2452,category:e.DiagnosticCategory.Error,key:"An_enum_member_cannot_have_a_numeric_name_2452",message:"An enum member cannot have a numeric name."},The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly:{code:2453,category:e.DiagnosticCategory.Error,key:"The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_typ_2453",message:"The type argument for type parameter '{0}' cannot be inferred from the usage. Consider specifying the type arguments explicitly."},Variable_0_is_used_before_being_assigned:{code:2454,category:e.DiagnosticCategory.Error,key:"Variable_0_is_used_before_being_assigned_2454",message:"Variable '{0}' is used before being assigned."},Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0:{code:2455,category:e.DiagnosticCategory.Error,key:"Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0_2455",message:"Type argument candidate '{1}' is not a valid type argument because it is not a supertype of candidate '{0}'."},Type_alias_0_circularly_references_itself:{code:2456,category:e.DiagnosticCategory.Error,key:"Type_alias_0_circularly_references_itself_2456",message:"Type alias '{0}' circularly references itself."},Type_alias_name_cannot_be_0:{code:2457,category:e.DiagnosticCategory.Error,key:"Type_alias_name_cannot_be_0_2457",message:"Type alias name cannot be '{0}'"},An_AMD_module_cannot_have_multiple_name_assignments:{code:2458,category:e.DiagnosticCategory.Error,key:"An_AMD_module_cannot_have_multiple_name_assignments_2458",message:"An AMD module cannot have multiple name assignments."},Type_0_has_no_property_1_and_no_string_index_signature:{code:2459,category:e.DiagnosticCategory.Error,key:"Type_0_has_no_property_1_and_no_string_index_signature_2459",message:"Type '{0}' has no property '{1}' and no string index signature."},Type_0_has_no_property_1:{code:2460,category:e.DiagnosticCategory.Error,key:"Type_0_has_no_property_1_2460",message:"Type '{0}' has no property '{1}'."},Type_0_is_not_an_array_type:{code:2461,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_an_array_type_2461",message:"Type '{0}' is not an array type."},A_rest_element_must_be_last_in_a_destructuring_pattern:{code:2462,category:e.DiagnosticCategory.Error,key:"A_rest_element_must_be_last_in_a_destructuring_pattern_2462",message:"A rest element must be last in a destructuring pattern"},A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:{code:2463,category:e.DiagnosticCategory.Error,key:"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463",message:"A binding pattern parameter cannot be optional in an implementation signature."},A_computed_property_name_must_be_of_type_string_number_symbol_or_any:{code:2464,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464",message:"A computed property name must be of type 'string', 'number', 'symbol', or 'any'."},this_cannot_be_referenced_in_a_computed_property_name:{code:2465,category:e.DiagnosticCategory.Error,key:"this_cannot_be_referenced_in_a_computed_property_name_2465",message:"'this' cannot be referenced in a computed property name."},super_cannot_be_referenced_in_a_computed_property_name:{code:2466,category:e.DiagnosticCategory.Error,key:"super_cannot_be_referenced_in_a_computed_property_name_2466",message:"'super' cannot be referenced in a computed property name."},A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:{code:2467,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467",message:"A computed property name cannot reference a type parameter from its containing type."},Cannot_find_global_value_0:{code:2468,category:e.DiagnosticCategory.Error,key:"Cannot_find_global_value_0_2468",message:"Cannot find global value '{0}'."},The_0_operator_cannot_be_applied_to_type_symbol:{code:2469,category:e.DiagnosticCategory.Error,key:"The_0_operator_cannot_be_applied_to_type_symbol_2469",message:"The '{0}' operator cannot be applied to type 'symbol'."},Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object:{code:2470,category:e.DiagnosticCategory.Error,key:"Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object_2470",message:"'Symbol' reference does not refer to the global Symbol constructor object."},A_computed_property_name_of_the_form_0_must_be_of_type_symbol:{code:2471,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_of_the_form_0_must_be_of_type_symbol_2471",message:"A computed property name of the form '{0}' must be of type 'symbol'."},Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:{code:2472,category:e.DiagnosticCategory.Error,key:"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472",message:"Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."},Enum_declarations_must_all_be_const_or_non_const:{code:2473,category:e.DiagnosticCategory.Error,key:"Enum_declarations_must_all_be_const_or_non_const_2473",message:"Enum declarations must all be const or non-const."},In_const_enum_declarations_member_initializer_must_be_constant_expression:{code:2474,category:e.DiagnosticCategory.Error,key:"In_const_enum_declarations_member_initializer_must_be_constant_expression_2474",message:"In 'const' enum declarations member initializer must be constant expression."},const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment:{code:2475,category:e.DiagnosticCategory.Error,key:"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475",message:"'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment."},A_const_enum_member_can_only_be_accessed_using_a_string_literal:{code:2476,category:e.DiagnosticCategory.Error,key:"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476",message:"A const enum member can only be accessed using a string literal."},const_enum_member_initializer_was_evaluated_to_a_non_finite_value:{code:2477,category:e.DiagnosticCategory.Error,
key:"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477",message:"'const' enum member initializer was evaluated to a non-finite value."},const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:{code:2478,category:e.DiagnosticCategory.Error,key:"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478",message:"'const' enum member initializer was evaluated to disallowed value 'NaN'."},Property_0_does_not_exist_on_const_enum_1:{code:2479,category:e.DiagnosticCategory.Error,key:"Property_0_does_not_exist_on_const_enum_1_2479",message:"Property '{0}' does not exist on 'const' enum '{1}'."},let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:{code:2480,category:e.DiagnosticCategory.Error,key:"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480",message:"'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:{code:2481,category:e.DiagnosticCategory.Error,key:"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481",message:"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:{code:2483,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483",message:"The left-hand side of a 'for...of' statement cannot use a type annotation."},Export_declaration_conflicts_with_exported_declaration_of_0:{code:2484,category:e.DiagnosticCategory.Error,key:"Export_declaration_conflicts_with_exported_declaration_of_0_2484",message:"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:{code:2487,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487",message:"The left-hand side of a 'for...of' statement must be a variable or a property access."},Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator:{code:2488,category:e.DiagnosticCategory.Error,key:"Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488",message:"Type must have a '[Symbol.iterator]()' method that returns an iterator."},An_iterator_must_have_a_next_method:{code:2489,category:e.DiagnosticCategory.Error,key:"An_iterator_must_have_a_next_method_2489",message:"An iterator must have a 'next()' method."},The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property:{code:2490,category:e.DiagnosticCategory.Error,key:"The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property_2490",message:"The type returned by the 'next()' method of an iterator must have a 'value' property."},The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:{code:2491,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491",message:"The left-hand side of a 'for...in' statement cannot be a destructuring pattern."},Cannot_redeclare_identifier_0_in_catch_clause:{code:2492,category:e.DiagnosticCategory.Error,key:"Cannot_redeclare_identifier_0_in_catch_clause_2492",message:"Cannot redeclare identifier '{0}' in catch clause"},Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2:{code:2493,category:e.DiagnosticCategory.Error,key:"Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2_2493",message:"Tuple type '{0}' with length '{1}' cannot be assigned to tuple with length '{2}'."},Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:{code:2494,category:e.DiagnosticCategory.Error,key:"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494",message:"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:{code:2495,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_an_array_type_or_a_string_type_2495",message:"Type '{0}' is not an array type or a string type."},The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:{code:2496,category:e.DiagnosticCategory.Error,key:"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496",message:"The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."},Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct:{code:2497,category:e.DiagnosticCategory.Error,key:"Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct_2497",message:"Module '{0}' resolves to a non-module entity and cannot be imported using this construct."},Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:{code:2498,category:e.DiagnosticCategory.Error,key:"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498",message:"Module '{0}' uses 'export =' and cannot be used with 'export *'."},An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:{code:2499,category:e.DiagnosticCategory.Error,key:"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499",message:"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:{code:2500,category:e.DiagnosticCategory.Error,key:"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500",message:"A class can only implement an identifier/qualified-name with optional type arguments."},A_rest_element_cannot_contain_a_binding_pattern:{code:2501,category:e.DiagnosticCategory.Error,key:"A_rest_element_cannot_contain_a_binding_pattern_2501",message:"A rest element cannot contain a binding pattern."},_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:{code:2502,category:e.DiagnosticCategory.Error,key:"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502",message:"'{0}' is referenced directly or indirectly in its own type annotation."},Cannot_find_namespace_0:{code:2503,category:e.DiagnosticCategory.Error,key:"Cannot_find_namespace_0_2503",message:"Cannot find namespace '{0}'."},A_generator_cannot_have_a_void_type_annotation:{code:2505,category:e.DiagnosticCategory.Error,key:"A_generator_cannot_have_a_void_type_annotation_2505",message:"A generator cannot have a 'void' type annotation."},_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:{code:2506,category:e.DiagnosticCategory.Error,key:"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506",message:"'{0}' is referenced directly or indirectly in its own base expression."},Type_0_is_not_a_constructor_function_type:{code:2507,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_a_constructor_function_type_2507",message:"Type '{0}' is not a constructor function type."},No_base_constructor_has_the_specified_number_of_type_arguments:{code:2508,category:e.DiagnosticCategory.Error,key:"No_base_constructor_has_the_specified_number_of_type_arguments_2508",message:"No base constructor has the specified number of type arguments."},Base_constructor_return_type_0_is_not_a_class_or_interface_type:{code:2509,category:e.DiagnosticCategory.Error,key:"Base_constructor_return_type_0_is_not_a_class_or_interface_type_2509",message:"Base constructor return type '{0}' is not a class or interface type."},Base_constructors_must_all_have_the_same_return_type:{code:2510,category:e.DiagnosticCategory.Error,key:"Base_constructors_must_all_have_the_same_return_type_2510",message:"Base constructors must all have the same return type."},Cannot_create_an_instance_of_the_abstract_class_0:{code:2511,category:e.DiagnosticCategory.Error,key:"Cannot_create_an_instance_of_the_abstract_class_0_2511",message:"Cannot create an instance of the abstract class '{0}'."},Overload_signatures_must_all_be_abstract_or_non_abstract:{code:2512,category:e.DiagnosticCategory.Error,key:"Overload_signatures_must_all_be_abstract_or_non_abstract_2512",message:"Overload signatures must all be abstract or non-abstract."},Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:{code:2513,category:e.DiagnosticCategory.Error,key:"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513",message:"Abstract method '{0}' in class '{1}' cannot be accessed via super expression."},Classes_containing_abstract_methods_must_be_marked_abstract:{code:2514,category:e.DiagnosticCategory.Error,key:"Classes_containing_abstract_methods_must_be_marked_abstract_2514",message:"Classes containing abstract methods must be marked abstract."},Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:{code:2515,category:e.DiagnosticCategory.Error,key:"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515",message:"Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."},All_declarations_of_an_abstract_method_must_be_consecutive:{code:2516,category:e.DiagnosticCategory.Error,key:"All_declarations_of_an_abstract_method_must_be_consecutive_2516",message:"All declarations of an abstract method must be consecutive."},Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:{code:2517,category:e.DiagnosticCategory.Error,key:"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517",message:"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:{code:2518,category:e.DiagnosticCategory.Error,key:"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518",message:"A 'this'-based type guard is not compatible with a parameter-based type guard."},Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:{code:2520,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520",message:"Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."},Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions:{code:2521,category:e.DiagnosticCategory.Error,key:"Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions_2521",message:"Expression resolves to variable declaration '{0}' that compiler uses to support async functions."},The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:{code:2522,category:e.DiagnosticCategory.Error,key:"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522",message:"The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."},yield_expressions_cannot_be_used_in_a_parameter_initializer:{code:2523,category:e.DiagnosticCategory.Error,key:"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523",message:"'yield' expressions cannot be used in a parameter initializer."},await_expressions_cannot_be_used_in_a_parameter_initializer:{code:2524,category:e.DiagnosticCategory.Error,key:"await_expressions_cannot_be_used_in_a_parameter_initializer_2524",message:"'await' expressions cannot be used in a parameter initializer."},Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:{code:2525,category:e.DiagnosticCategory.Error,key:"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525",message:"Initializer provides no value for this binding element and the binding element has no default value."},A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:{code:2526,category:e.DiagnosticCategory.Error,key:"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526",message:"A 'this' type is available only in a non-static member of a class or interface."},The_inferred_type_of_0_references_an_inaccessible_this_type_A_type_annotation_is_necessary:{code:2527,category:e.DiagnosticCategory.Error,key:"The_inferred_type_of_0_references_an_inaccessible_this_type_A_type_annotation_is_necessary_2527",message:"The inferred type of '{0}' references an inaccessible 'this' type. A type annotation is necessary."},A_module_cannot_have_multiple_default_exports:{code:2528,category:e.DiagnosticCategory.Error,key:"A_module_cannot_have_multiple_default_exports_2528",message:"A module cannot have multiple default exports."},Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:{code:2529,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529",message:"Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."},Property_0_is_incompatible_with_index_signature:{code:2530,category:e.DiagnosticCategory.Error,key:"Property_0_is_incompatible_with_index_signature_2530",message:"Property '{0}' is incompatible with index signature."},Object_is_possibly_null:{code:2531,category:e.DiagnosticCategory.Error,key:"Object_is_possibly_null_2531",message:"Object is possibly 'null'."},Object_is_possibly_undefined:{code:2532,category:e.DiagnosticCategory.Error,key:"Object_is_possibly_undefined_2532",message:"Object is possibly 'undefined'."},Object_is_possibly_null_or_undefined:{code:2533,category:e.DiagnosticCategory.Error,key:"Object_is_possibly_null_or_undefined_2533",message:"Object is possibly 'null' or 'undefined'."},A_function_returning_never_cannot_have_a_reachable_end_point:{code:2534,category:e.DiagnosticCategory.Error,key:"A_function_returning_never_cannot_have_a_reachable_end_point_2534",message:"A function returning 'never' cannot have a reachable end point."},Enum_type_0_has_members_with_initializers_that_are_not_literals:{code:2535,category:e.DiagnosticCategory.Error,key:"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535",message:"Enum type '{0}' has members with initializers that are not literals."},Type_0_cannot_be_used_to_index_type_1:{code:2536,category:e.DiagnosticCategory.Error,key:"Type_0_cannot_be_used_to_index_type_1_2536",message:"Type '{0}' cannot be used to index type '{1}'."},Type_0_has_no_matching_index_signature_for_type_1:{code:2537,category:e.DiagnosticCategory.Error,key:"Type_0_has_no_matching_index_signature_for_type_1_2537",message:"Type '{0}' has no matching index signature for type '{1}'."},Type_0_cannot_be_used_as_an_index_type:{code:2538,category:e.DiagnosticCategory.Error,key:"Type_0_cannot_be_used_as_an_index_type_2538",message:"Type '{0}' cannot be used as an index type."},Cannot_assign_to_0_because_it_is_not_a_variable:{code:2539,category:e.DiagnosticCategory.Error,key:"Cannot_assign_to_0_because_it_is_not_a_variable_2539",message:"Cannot assign to '{0}' because it is not a variable."},Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property:{code:2540,category:e.DiagnosticCategory.Error,key:"Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property_2540",message:"Cannot assign to '{0}' because it is a constant or a read-only property."},The_target_of_an_assignment_must_be_a_variable_or_a_property_access:{code:2541,category:e.DiagnosticCategory.Error,key:"The_target_of_an_assignment_must_be_a_variable_or_a_property_access_2541",message:"The target of an assignment must be a variable or a property access."},Index_signature_in_type_0_only_permits_reading:{code:2542,category:e.DiagnosticCategory.Error,key:"Index_signature_in_type_0_only_permits_reading_2542",message:"Index signature in type '{0}' only permits reading."},JSX_element_attributes_type_0_may_not_be_a_union_type:{code:2600,category:e.DiagnosticCategory.Error,key:"JSX_element_attributes_type_0_may_not_be_a_union_type_2600",message:"JSX element attributes type '{0}' may not be a union type."},The_return_type_of_a_JSX_element_constructor_must_return_an_object_type:{code:2601,category:e.DiagnosticCategory.Error,key:"The_return_type_of_a_JSX_element_constructor_must_return_an_object_type_2601",message:"The return type of a JSX element constructor must return an object type."},JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:{code:2602,category:e.DiagnosticCategory.Error,key:"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602",message:"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:{code:2603,category:e.DiagnosticCategory.Error,key:"Property_0_in_type_1_is_not_assignable_to_type_2_2603",message:"Property '{0}' in type '{1}' is not assignable to type '{2}'"},JSX_element_type_0_does_not_have_any_construct_or_call_signatures:{code:2604,category:e.DiagnosticCategory.Error,key:"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604",message:"JSX element type '{0}' does not have any construct or call signatures."},JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements:{code:2605,category:e.DiagnosticCategory.Error,key:"JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements_2605",message:"JSX element type '{0}' is not a constructor function for JSX elements."},Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:{code:2606,category:e.DiagnosticCategory.Error,key:"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606",message:"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:{code:2607,category:e.DiagnosticCategory.Error,key:"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607",message:"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:{code:2608,category:e.DiagnosticCategory.Error,key:"The_global_type_JSX_0_may_not_have_more_than_one_property_2608",message:"The global type 'JSX.{0}' may not have more than one property"},Cannot_emit_namespaced_JSX_elements_in_React:{code:2650,category:e.DiagnosticCategory.Error,key:"Cannot_emit_namespaced_JSX_elements_in_React_2650",message:"Cannot emit namespaced JSX elements in React"},A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:{code:2651,category:e.DiagnosticCategory.Error,key:"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651",message:"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:{code:2652,category:e.DiagnosticCategory.Error,key:"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652",message:"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:{code:2653,category:e.DiagnosticCategory.Error,key:"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653",message:"Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."},Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_package_author_to_update_the_package_definition:{code:2654,category:e.DiagnosticCategory.Error,key:"Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_pack_2654",message:"Exported external package typings file cannot contain tripleslash references. Please contact the package author to update the package definition."},Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_the_package_definition:{code:2656,category:e.DiagnosticCategory.Error,key:"Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_2656",message:"Exported external package typings file '{0}' is not a module. Please contact the package author to update the package definition."},JSX_expressions_must_have_one_parent_element:{code:2657,category:e.DiagnosticCategory.Error,key:"JSX_expressions_must_have_one_parent_element_2657",message:"JSX expressions must have one parent element"},Type_0_provides_no_match_for_the_signature_1:{code:2658,category:e.DiagnosticCategory.Error,key:"Type_0_provides_no_match_for_the_signature_1_2658",message:"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:{code:2659,category:e.DiagnosticCategory.Error,key:"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659",message:"'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:{code:2660,category:e.DiagnosticCategory.Error,key:"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660",message:"'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:{code:2661,category:e.DiagnosticCategory.Error,key:"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661",message:"Cannot export '{0}'. Only local declarations can be exported from a module."},Cannot_find_name_0_Did_you_mean_the_static_member_1_0:{code:2662,category:e.DiagnosticCategory.Error,key:"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662",message:"Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"},Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:{code:2663,category:e.DiagnosticCategory.Error,key:"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663",message:"Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"},Invalid_module_name_in_augmentation_module_0_cannot_be_found:{code:2664,category:e.DiagnosticCategory.Error,key:"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664",message:"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:{code:2665,category:e.DiagnosticCategory.Error,key:"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665",message:"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:{code:2666,category:e.DiagnosticCategory.Error,key:"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666",message:"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:{code:2667,category:e.DiagnosticCategory.Error,key:"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667",message:"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:{code:2668,category:e.DiagnosticCategory.Error,key:"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668",message:"'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:{code:2669,category:e.DiagnosticCategory.Error,key:"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669",message:"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:{code:2670,category:e.DiagnosticCategory.Error,key:"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670",message:"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:{code:2671,category:e.DiagnosticCategory.Error,key:"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671",message:"Cannot augment module '{0}' because it resolves to a non-module entity."},Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:{code:2672,category:e.DiagnosticCategory.Error,key:"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672",message:"Cannot assign a '{0}' constructor type to a '{1}' constructor type."},Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:{code:2673,category:e.DiagnosticCategory.Error,key:"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673",message:"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:{code:2674,category:e.DiagnosticCategory.Error,key:"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674",message:"Constructor of class '{0}' is protected and only accessible within the class declaration."},Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:{code:2675,category:e.DiagnosticCategory.Error,key:"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675",message:"Cannot extend a class '{0}'. Class constructor is marked as private."},Accessors_must_both_be_abstract_or_non_abstract:{code:2676,category:e.DiagnosticCategory.Error,key:"Accessors_must_both_be_abstract_or_non_abstract_2676",message:"Accessors must both be abstract or non-abstract."},A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:{code:2677,category:e.DiagnosticCategory.Error,key:"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677",message:"A type predicate's type must be assignable to its parameter's type."},Type_0_is_not_comparable_to_type_1:{code:2678,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_comparable_to_type_1_2678",message:"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:{code:2679,category:e.DiagnosticCategory.Error,key:"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679",message:"A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."},A_this_parameter_must_be_the_first_parameter:{code:2680,category:e.DiagnosticCategory.Error,key:"A_this_parameter_must_be_the_first_parameter_2680",message:"A 'this' parameter must be the first parameter."},A_constructor_cannot_have_a_this_parameter:{code:2681,category:e.DiagnosticCategory.Error,key:"A_constructor_cannot_have_a_this_parameter_2681",message:"A constructor cannot have a 'this' parameter."},get_and_set_accessor_must_have_the_same_this_type:{code:2682,category:e.DiagnosticCategory.Error,key:"get_and_set_accessor_must_have_the_same_this_type_2682",message:"'get' and 'set' accessor must have the same 'this' type."},this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:{code:2683,category:e.DiagnosticCategory.Error,key:"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683",message:"'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:{code:2684,category:e.DiagnosticCategory.Error,key:"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684",message:"The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."},The_this_types_of_each_signature_are_incompatible:{code:2685,category:e.DiagnosticCategory.Error,key:"The_this_types_of_each_signature_are_incompatible_2685",message:"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:{code:2686,category:e.DiagnosticCategory.Error,key:"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686",message:"'{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:{code:2687,category:e.DiagnosticCategory.Error,key:"All_declarations_of_0_must_have_identical_modifiers_2687",message:"All declarations of '{0}' must have identical modifiers."},Cannot_find_type_definition_file_for_0:{code:2688,category:e.DiagnosticCategory.Error,key:"Cannot_find_type_definition_file_for_0_2688",message:"Cannot find type definition file for '{0}'."},Cannot_extend_an_interface_0_Did_you_mean_implements:{code:2689,category:e.DiagnosticCategory.Error,key:"Cannot_extend_an_interface_0_Did_you_mean_implements_2689",message:"Cannot extend an interface '{0}'. Did you mean 'implements'?"},A_class_must_be_declared_after_its_base_class:{code:2690,category:e.DiagnosticCategory.Error,key:"A_class_must_be_declared_after_its_base_class_2690",message:"A class must be declared after its base class."},An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:{code:2691,category:e.DiagnosticCategory.Error,key:"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691",message:"An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."},_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:{code:2692,category:e.DiagnosticCategory.Error,key:"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692",message:"'{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:{code:2693,category:e.DiagnosticCategory.Error,key:"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693",message:"'{0}' only refers to a type, but is being used as a value here."},Namespace_0_has_no_exported_member_1:{code:2694,category:e.DiagnosticCategory.Error,key:"Namespace_0_has_no_exported_member_1_2694",message:"Namespace '{0}' has no exported member '{1}'."},Left_side_of_comma_operator_is_unused_and_has_no_side_effects:{code:2695,category:e.DiagnosticCategory.Error,key:"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695",message:"Left side of comma operator is unused and has no side effects."},The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:{code:2696,category:e.DiagnosticCategory.Error,key:"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696",
message:"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:{code:2697,category:e.DiagnosticCategory.Error,key:"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697",message:"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:{code:2698,category:e.DiagnosticCategory.Error,key:"Spread_types_may_only_be_created_from_object_types_2698",message:"Spread types may only be created from object types."},Rest_types_may_only_be_created_from_object_types:{code:2700,category:e.DiagnosticCategory.Error,key:"Rest_types_may_only_be_created_from_object_types_2700",message:"Rest types may only be created from object types."},The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:{code:2701,category:e.DiagnosticCategory.Error,key:"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701",message:"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:{code:2702,category:e.DiagnosticCategory.Error,key:"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702",message:"'{0}' only refers to a type, but is being used as a namespace here."},Import_declaration_0_is_using_private_name_1:{code:4e3,category:e.DiagnosticCategory.Error,key:"Import_declaration_0_is_using_private_name_1_4000",message:"Import declaration '{0}' is using private name '{1}'."},Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:{code:4002,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002",message:"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:{code:4004,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004",message:"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:{code:4006,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006",message:"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:{code:4008,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008",message:"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:{code:4010,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010",message:"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:{code:4012,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012",message:"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:{code:4014,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014",message:"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:{code:4016,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016",message:"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:{code:4019,category:e.DiagnosticCategory.Error,key:"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019",message:"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:{code:4020,category:e.DiagnosticCategory.Error,key:"Extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020",message:"Extends clause of exported class '{0}' has or is using private name '{1}'."},Extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:{code:4022,category:e.DiagnosticCategory.Error,key:"Extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022",message:"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:{code:4023,category:e.DiagnosticCategory.Error,key:"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023",message:"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:{code:4024,category:e.DiagnosticCategory.Error,key:"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024",message:"Exported variable '{0}' has or is using name '{1}' from private module '{2}'."},Exported_variable_0_has_or_is_using_private_name_1:{code:4025,category:e.DiagnosticCategory.Error,key:"Exported_variable_0_has_or_is_using_private_name_1_4025",message:"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:{code:4026,category:e.DiagnosticCategory.Error,key:"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026",message:"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:{code:4027,category:e.DiagnosticCategory.Error,key:"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027",message:"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:{code:4028,category:e.DiagnosticCategory.Error,key:"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028",message:"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:{code:4029,category:e.DiagnosticCategory.Error,key:"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029",message:"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:{code:4030,category:e.DiagnosticCategory.Error,key:"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030",message:"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:{code:4031,category:e.DiagnosticCategory.Error,key:"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031",message:"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:{code:4032,category:e.DiagnosticCategory.Error,key:"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032",message:"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:{code:4033,category:e.DiagnosticCategory.Error,key:"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033",message:"Property '{0}' of exported interface has or is using private name '{1}'."},Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:{code:4034,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_4034",message:"Parameter '{0}' of public static property setter from exported class has or is using name '{1}' from private module '{2}'."},Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1:{code:4035,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1_4035",message:"Parameter '{0}' of public static property setter from exported class has or is using private name '{1}'."},Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:{code:4036,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_4036",message:"Parameter '{0}' of public property setter from exported class has or is using name '{1}' from private module '{2}'."},Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1:{code:4037,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1_4037",message:"Parameter '{0}' of public property setter from exported class has or is using private name '{1}'."},Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:{code:4038,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_externa_4038",message:"Return type of public static property getter from exported class has or is using name '{0}' from external module {1} but cannot be named."},Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:{code:4039,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_4039",message:"Return type of public static property getter from exported class has or is using name '{0}' from private module '{1}'."},Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0:{code:4040,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0_4040",message:"Return type of public static property getter from exported class has or is using private name '{0}'."},Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:{code:4041,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_modul_4041",message:"Return type of public property getter from exported class has or is using name '{0}' from external module {1} but cannot be named."},Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:{code:4042,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_4042",message:"Return type of public property getter from exported class has or is using name '{0}' from private module '{1}'."},Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0:{code:4043,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0_4043",message:"Return type of public property getter from exported class has or is using private name '{0}'."},Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:{code:4044,category:e.DiagnosticCategory.Error,key:"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044",message:"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:{code:4045,category:e.DiagnosticCategory.Error,key:"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045",message:"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:{code:4046,category:e.DiagnosticCategory.Error,key:"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046",message:"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:{code:4047,category:e.DiagnosticCategory.Error,key:"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047",message:"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:{code:4048,category:e.DiagnosticCategory.Error,key:"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048",message:"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:{code:4049,category:e.DiagnosticCategory.Error,key:"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049",message:"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:{code:4050,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050",message:"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:{code:4051,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051",message:"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:{code:4052,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052",message:"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:{code:4053,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053",message:"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:{code:4054,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054",message:"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:{code:4055,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055",message:"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:{code:4056,category:e.DiagnosticCategory.Error,key:"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056",message:"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:{code:4057,category:e.DiagnosticCategory.Error,key:"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057",message:"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:{code:4058,category:e.DiagnosticCategory.Error,key:"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058",message:"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:{code:4059,category:e.DiagnosticCategory.Error,key:"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059",message:"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:{code:4060,category:e.DiagnosticCategory.Error,key:"Return_type_of_exported_function_has_or_is_using_private_name_0_4060",message:"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:{code:4061,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061",message:"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:{code:4062,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062",message:"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:{code:4063,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063",message:"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:{code:4064,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064",message:"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:{code:4065,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065",message:"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:{code:4066,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066",message:"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:{code:4067,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067",message:"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:{code:4068,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068",message:"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:{code:4069,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069",message:"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:{code:4070,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070",message:"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:{code:4071,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071",message:"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:{code:4072,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072",message:"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:{code:4073,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073",message:"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:{code:4074,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074",message:"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:{code:4075,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075",message:"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:{code:4076,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076",message:"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:{code:4077,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077",message:"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:{code:4078,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078",message:"Parameter '{0}' of exported function has or is using private name '{1}'."},Exported_type_alias_0_has_or_is_using_private_name_1:{code:4081,category:e.DiagnosticCategory.Error,key:"Exported_type_alias_0_has_or_is_using_private_name_1_4081",message:"Exported type alias '{0}' has or is using private name '{1}'."},Default_export_of_the_module_has_or_is_using_private_name_0:{code:4082,category:e.DiagnosticCategory.Error,key:"Default_export_of_the_module_has_or_is_using_private_name_0_4082",message:"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:{code:4083,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083",message:"Type parameter '{0}' of exported type alias has or is using private name '{1}'."},Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:{code:4090,category:e.DiagnosticCategory.Message,key:"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090",message:"Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."},Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:{code:4091,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091",message:"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:{code:4092,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092",message:"Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."},The_current_host_does_not_support_the_0_option:{code:5001,category:e.DiagnosticCategory.Error,key:"The_current_host_does_not_support_the_0_option_5001",message:"The current host does not support the '{0}' option."},Cannot_find_the_common_subdirectory_path_for_the_input_files:{code:5009,category:e.DiagnosticCategory.Error,key:"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009",message:"Cannot find the common subdirectory path for the input files."},File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:{code:5010,category:e.DiagnosticCategory.Error,key:"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010",message:"File specification cannot end in a recursive directory wildcard ('**'): '{0}'."},File_specification_cannot_contain_multiple_recursive_directory_wildcards_Asterisk_Asterisk_Colon_0:{code:5011,category:e.DiagnosticCategory.Error,key:"File_specification_cannot_contain_multiple_recursive_directory_wildcards_Asterisk_Asterisk_Colon_0_5011",message:"File specification cannot contain multiple recursive directory wildcards ('**'): '{0}'."},Cannot_read_file_0_Colon_1:{code:5012,category:e.DiagnosticCategory.Error,key:"Cannot_read_file_0_Colon_1_5012",message:"Cannot read file '{0}': {1}"},Unsupported_file_encoding:{code:5013,category:e.DiagnosticCategory.Error,key:"Unsupported_file_encoding_5013",message:"Unsupported file encoding."},Failed_to_parse_file_0_Colon_1:{code:5014,category:e.DiagnosticCategory.Error,key:"Failed_to_parse_file_0_Colon_1_5014",message:"Failed to parse file '{0}': {1}."},Unknown_compiler_option_0:{code:5023,category:e.DiagnosticCategory.Error,key:"Unknown_compiler_option_0_5023",message:"Unknown compiler option '{0}'."},Compiler_option_0_requires_a_value_of_type_1:{code:5024,category:e.DiagnosticCategory.Error,key:"Compiler_option_0_requires_a_value_of_type_1_5024",message:"Compiler option '{0}' requires a value of type {1}."},Could_not_write_file_0_Colon_1:{code:5033,category:e.DiagnosticCategory.Error,key:"Could_not_write_file_0_Colon_1_5033",message:"Could not write file '{0}': {1}"},Option_project_cannot_be_mixed_with_source_files_on_a_command_line:{code:5042,category:e.DiagnosticCategory.Error,key:"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042",message:"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:{code:5047,category:e.DiagnosticCategory.Error,key:"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047",message:"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:{code:5051,category:e.DiagnosticCategory.Error,key:"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051",message:"Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."},Option_0_cannot_be_specified_without_specifying_option_1:{code:5052,category:e.DiagnosticCategory.Error,key:"Option_0_cannot_be_specified_without_specifying_option_1_5052",message:"Option '{0}' cannot be specified without specifying option '{1}'."},Option_0_cannot_be_specified_with_option_1:{code:5053,category:e.DiagnosticCategory.Error,key:"Option_0_cannot_be_specified_with_option_1_5053",message:"Option '{0}' cannot be specified with option '{1}'."},A_tsconfig_json_file_is_already_defined_at_Colon_0:{code:5054,category:e.DiagnosticCategory.Error,key:"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054",message:"A 'tsconfig.json' file is already defined at: '{0}'."},Cannot_write_file_0_because_it_would_overwrite_input_file:{code:5055,category:e.DiagnosticCategory.Error,key:"Cannot_write_file_0_because_it_would_overwrite_input_file_5055",message:"Cannot write file '{0}' because it would overwrite input file."},Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:{code:5056,category:e.DiagnosticCategory.Error,key:"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056",message:"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:{code:5057,category:e.DiagnosticCategory.Error,key:"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057",message:"Cannot find a tsconfig.json file at the specified directory: '{0}'"},The_specified_path_does_not_exist_Colon_0:{code:5058,category:e.DiagnosticCategory.Error,key:"The_specified_path_does_not_exist_Colon_0_5058",message:"The specified path does not exist: '{0}'"},Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:{code:5059,category:e.DiagnosticCategory.Error,key:"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059",message:"Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."},Option_paths_cannot_be_used_without_specifying_baseUrl_option:{
code:5060,category:e.DiagnosticCategory.Error,key:"Option_paths_cannot_be_used_without_specifying_baseUrl_option_5060",message:"Option 'paths' cannot be used without specifying '--baseUrl' option."},Pattern_0_can_have_at_most_one_Asterisk_character:{code:5061,category:e.DiagnosticCategory.Error,key:"Pattern_0_can_have_at_most_one_Asterisk_character_5061",message:"Pattern '{0}' can have at most one '*' character"},Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character:{code:5062,category:e.DiagnosticCategory.Error,key:"Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character_5062",message:"Substitution '{0}' in pattern '{1}' in can have at most one '*' character"},Substitutions_for_pattern_0_should_be_an_array:{code:5063,category:e.DiagnosticCategory.Error,key:"Substitutions_for_pattern_0_should_be_an_array_5063",message:"Substitutions for pattern '{0}' should be an array."},Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:{code:5064,category:e.DiagnosticCategory.Error,key:"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064",message:"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:{code:5065,category:e.DiagnosticCategory.Error,key:"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065",message:"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:{code:5066,category:e.DiagnosticCategory.Error,key:"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066",message:"Substitutions for pattern '{0}' shouldn't be an empty array."},Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:{code:5067,category:e.DiagnosticCategory.Error,key:"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067",message:"Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."},Concatenate_and_emit_output_to_single_file:{code:6001,category:e.DiagnosticCategory.Message,key:"Concatenate_and_emit_output_to_single_file_6001",message:"Concatenate and emit output to single file."},Generates_corresponding_d_ts_file:{code:6002,category:e.DiagnosticCategory.Message,key:"Generates_corresponding_d_ts_file_6002",message:"Generates corresponding '.d.ts' file."},Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:{code:6003,category:e.DiagnosticCategory.Message,key:"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6003",message:"Specify the location where debugger should locate map files instead of generated locations."},Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:{code:6004,category:e.DiagnosticCategory.Message,key:"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004",message:"Specify the location where debugger should locate TypeScript files instead of source locations."},Watch_input_files:{code:6005,category:e.DiagnosticCategory.Message,key:"Watch_input_files_6005",message:"Watch input files."},Redirect_output_structure_to_the_directory:{code:6006,category:e.DiagnosticCategory.Message,key:"Redirect_output_structure_to_the_directory_6006",message:"Redirect output structure to the directory."},Do_not_erase_const_enum_declarations_in_generated_code:{code:6007,category:e.DiagnosticCategory.Message,key:"Do_not_erase_const_enum_declarations_in_generated_code_6007",message:"Do not erase const enum declarations in generated code."},Do_not_emit_outputs_if_any_errors_were_reported:{code:6008,category:e.DiagnosticCategory.Message,key:"Do_not_emit_outputs_if_any_errors_were_reported_6008",message:"Do not emit outputs if any errors were reported."},Do_not_emit_comments_to_output:{code:6009,category:e.DiagnosticCategory.Message,key:"Do_not_emit_comments_to_output_6009",message:"Do not emit comments to output."},Do_not_emit_outputs:{code:6010,category:e.DiagnosticCategory.Message,key:"Do_not_emit_outputs_6010",message:"Do not emit outputs."},Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:{code:6011,category:e.DiagnosticCategory.Message,key:"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011",message:"Allow default imports from modules with no default export. This does not affect code emit, just typechecking."},Skip_type_checking_of_declaration_files:{code:6012,category:e.DiagnosticCategory.Message,key:"Skip_type_checking_of_declaration_files_6012",message:"Skip type checking of declaration files."},Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT:{code:6015,category:e.DiagnosticCategory.Message,key:"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT_6015",message:"Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'"},Specify_module_code_generation_Colon_commonjs_amd_system_umd_or_es2015:{code:6016,category:e.DiagnosticCategory.Message,key:"Specify_module_code_generation_Colon_commonjs_amd_system_umd_or_es2015_6016",message:"Specify module code generation: 'commonjs', 'amd', 'system', 'umd' or 'es2015'"},Print_this_message:{code:6017,category:e.DiagnosticCategory.Message,key:"Print_this_message_6017",message:"Print this message."},Print_the_compiler_s_version:{code:6019,category:e.DiagnosticCategory.Message,key:"Print_the_compiler_s_version_6019",message:"Print the compiler's version."},Compile_the_project_in_the_given_directory:{code:6020,category:e.DiagnosticCategory.Message,key:"Compile_the_project_in_the_given_directory_6020",message:"Compile the project in the given directory."},Syntax_Colon_0:{code:6023,category:e.DiagnosticCategory.Message,key:"Syntax_Colon_0_6023",message:"Syntax: {0}"},options:{code:6024,category:e.DiagnosticCategory.Message,key:"options_6024",message:"options"},file:{code:6025,category:e.DiagnosticCategory.Message,key:"file_6025",message:"file"},Examples_Colon_0:{code:6026,category:e.DiagnosticCategory.Message,key:"Examples_Colon_0_6026",message:"Examples: {0}"},Options_Colon:{code:6027,category:e.DiagnosticCategory.Message,key:"Options_Colon_6027",message:"Options:"},Version_0:{code:6029,category:e.DiagnosticCategory.Message,key:"Version_0_6029",message:"Version {0}"},Insert_command_line_options_and_files_from_a_file:{code:6030,category:e.DiagnosticCategory.Message,key:"Insert_command_line_options_and_files_from_a_file_6030",message:"Insert command line options and files from a file."},File_change_detected_Starting_incremental_compilation:{code:6032,category:e.DiagnosticCategory.Message,key:"File_change_detected_Starting_incremental_compilation_6032",message:"File change detected. Starting incremental compilation..."},KIND:{code:6034,category:e.DiagnosticCategory.Message,key:"KIND_6034",message:"KIND"},FILE:{code:6035,category:e.DiagnosticCategory.Message,key:"FILE_6035",message:"FILE"},VERSION:{code:6036,category:e.DiagnosticCategory.Message,key:"VERSION_6036",message:"VERSION"},LOCATION:{code:6037,category:e.DiagnosticCategory.Message,key:"LOCATION_6037",message:"LOCATION"},DIRECTORY:{code:6038,category:e.DiagnosticCategory.Message,key:"DIRECTORY_6038",message:"DIRECTORY"},STRATEGY:{code:6039,category:e.DiagnosticCategory.Message,key:"STRATEGY_6039",message:"STRATEGY"},Compilation_complete_Watching_for_file_changes:{code:6042,category:e.DiagnosticCategory.Message,key:"Compilation_complete_Watching_for_file_changes_6042",message:"Compilation complete. Watching for file changes."},Generates_corresponding_map_file:{code:6043,category:e.DiagnosticCategory.Message,key:"Generates_corresponding_map_file_6043",message:"Generates corresponding '.map' file."},Compiler_option_0_expects_an_argument:{code:6044,category:e.DiagnosticCategory.Error,key:"Compiler_option_0_expects_an_argument_6044",message:"Compiler option '{0}' expects an argument."},Unterminated_quoted_string_in_response_file_0:{code:6045,category:e.DiagnosticCategory.Error,key:"Unterminated_quoted_string_in_response_file_0_6045",message:"Unterminated quoted string in response file '{0}'."},Argument_for_0_option_must_be_Colon_1:{code:6046,category:e.DiagnosticCategory.Error,key:"Argument_for_0_option_must_be_Colon_1_6046",message:"Argument for '{0}' option must be: {1}"},Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:{code:6048,category:e.DiagnosticCategory.Error,key:"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048",message:"Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'."},Unsupported_locale_0:{code:6049,category:e.DiagnosticCategory.Error,key:"Unsupported_locale_0_6049",message:"Unsupported locale '{0}'."},Unable_to_open_file_0:{code:6050,category:e.DiagnosticCategory.Error,key:"Unable_to_open_file_0_6050",message:"Unable to open file '{0}'."},Corrupted_locale_file_0:{code:6051,category:e.DiagnosticCategory.Error,key:"Corrupted_locale_file_0_6051",message:"Corrupted locale file {0}."},Raise_error_on_expressions_and_declarations_with_an_implied_any_type:{code:6052,category:e.DiagnosticCategory.Message,key:"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052",message:"Raise error on expressions and declarations with an implied 'any' type."},File_0_not_found:{code:6053,category:e.DiagnosticCategory.Error,key:"File_0_not_found_6053",message:"File '{0}' not found."},File_0_has_unsupported_extension_The_only_supported_extensions_are_1:{code:6054,category:e.DiagnosticCategory.Error,key:"File_0_has_unsupported_extension_The_only_supported_extensions_are_1_6054",message:"File '{0}' has unsupported extension. The only supported extensions are {1}."},Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:{code:6055,category:e.DiagnosticCategory.Message,key:"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055",message:"Suppress noImplicitAny errors for indexing objects lacking index signatures."},Do_not_emit_declarations_for_code_that_has_an_internal_annotation:{code:6056,category:e.DiagnosticCategory.Message,key:"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056",message:"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:{code:6058,category:e.DiagnosticCategory.Message,key:"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058",message:"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:{code:6059,category:e.DiagnosticCategory.Error,key:"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059",message:"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:{code:6060,category:e.DiagnosticCategory.Message,key:"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060",message:"Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."},NEWLINE:{code:6061,category:e.DiagnosticCategory.Message,key:"NEWLINE_6061",message:"NEWLINE"},Option_0_can_only_be_specified_in_tsconfig_json_file:{code:6064,category:e.DiagnosticCategory.Error,key:"Option_0_can_only_be_specified_in_tsconfig_json_file_6064",message:"Option '{0}' can only be specified in 'tsconfig.json' file."},Enables_experimental_support_for_ES7_decorators:{code:6065,category:e.DiagnosticCategory.Message,key:"Enables_experimental_support_for_ES7_decorators_6065",message:"Enables experimental support for ES7 decorators."},Enables_experimental_support_for_emitting_type_metadata_for_decorators:{code:6066,category:e.DiagnosticCategory.Message,key:"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066",message:"Enables experimental support for emitting type metadata for decorators."},Enables_experimental_support_for_ES7_async_functions:{code:6068,category:e.DiagnosticCategory.Message,key:"Enables_experimental_support_for_ES7_async_functions_6068",message:"Enables experimental support for ES7 async functions."},Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:{code:6069,category:e.DiagnosticCategory.Message,key:"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069",message:"Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."},Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:{code:6070,category:e.DiagnosticCategory.Message,key:"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070",message:"Initializes a TypeScript project and creates a tsconfig.json file."},Successfully_created_a_tsconfig_json_file:{code:6071,category:e.DiagnosticCategory.Message,key:"Successfully_created_a_tsconfig_json_file_6071",message:"Successfully created a tsconfig.json file."},Suppress_excess_property_checks_for_object_literals:{code:6072,category:e.DiagnosticCategory.Message,key:"Suppress_excess_property_checks_for_object_literals_6072",message:"Suppress excess property checks for object literals."},Stylize_errors_and_messages_using_color_and_context_experimental:{code:6073,category:e.DiagnosticCategory.Message,key:"Stylize_errors_and_messages_using_color_and_context_experimental_6073",message:"Stylize errors and messages using color and context. (experimental)"},Do_not_report_errors_on_unused_labels:{code:6074,category:e.DiagnosticCategory.Message,key:"Do_not_report_errors_on_unused_labels_6074",message:"Do not report errors on unused labels."},Report_error_when_not_all_code_paths_in_function_return_a_value:{code:6075,category:e.DiagnosticCategory.Message,key:"Report_error_when_not_all_code_paths_in_function_return_a_value_6075",message:"Report error when not all code paths in function return a value."},Report_errors_for_fallthrough_cases_in_switch_statement:{code:6076,category:e.DiagnosticCategory.Message,key:"Report_errors_for_fallthrough_cases_in_switch_statement_6076",message:"Report errors for fallthrough cases in switch statement."},Do_not_report_errors_on_unreachable_code:{code:6077,category:e.DiagnosticCategory.Message,key:"Do_not_report_errors_on_unreachable_code_6077",message:"Do not report errors on unreachable code."},Disallow_inconsistently_cased_references_to_the_same_file:{code:6078,category:e.DiagnosticCategory.Message,key:"Disallow_inconsistently_cased_references_to_the_same_file_6078",message:"Disallow inconsistently-cased references to the same file."},Specify_library_files_to_be_included_in_the_compilation_Colon:{code:6079,category:e.DiagnosticCategory.Message,key:"Specify_library_files_to_be_included_in_the_compilation_Colon_6079",message:"Specify library files to be included in the compilation: "},Specify_JSX_code_generation_Colon_preserve_or_react:{code:6080,category:e.DiagnosticCategory.Message,key:"Specify_JSX_code_generation_Colon_preserve_or_react_6080",message:"Specify JSX code generation: 'preserve' or 'react'"},File_0_has_an_unsupported_extension_so_skipping_it:{code:6081,category:e.DiagnosticCategory.Message,key:"File_0_has_an_unsupported_extension_so_skipping_it_6081",message:"File '{0}' has an unsupported extension, so skipping it."},Only_amd_and_system_modules_are_supported_alongside_0:{code:6082,category:e.DiagnosticCategory.Error,key:"Only_amd_and_system_modules_are_supported_alongside_0_6082",message:"Only 'amd' and 'system' modules are supported alongside --{0}."},Base_directory_to_resolve_non_absolute_module_names:{code:6083,category:e.DiagnosticCategory.Message,key:"Base_directory_to_resolve_non_absolute_module_names_6083",message:"Base directory to resolve non-absolute module names."},Specify_the_object_invoked_for_createElement_and_spread_when_targeting_react_JSX_emit:{code:6084,category:e.DiagnosticCategory.Message,key:"Specify_the_object_invoked_for_createElement_and_spread_when_targeting_react_JSX_emit_6084",message:"Specify the object invoked for createElement and __spread when targeting 'react' JSX emit"},Enable_tracing_of_the_name_resolution_process:{code:6085,category:e.DiagnosticCategory.Message,key:"Enable_tracing_of_the_name_resolution_process_6085",message:"Enable tracing of the name resolution process."},Resolving_module_0_from_1:{code:6086,category:e.DiagnosticCategory.Message,key:"Resolving_module_0_from_1_6086",message:"======== Resolving module '{0}' from '{1}'. ========"},Explicitly_specified_module_resolution_kind_Colon_0:{code:6087,category:e.DiagnosticCategory.Message,key:"Explicitly_specified_module_resolution_kind_Colon_0_6087",message:"Explicitly specified module resolution kind: '{0}'."},Module_resolution_kind_is_not_specified_using_0:{code:6088,category:e.DiagnosticCategory.Message,key:"Module_resolution_kind_is_not_specified_using_0_6088",message:"Module resolution kind is not specified, using '{0}'."},Module_name_0_was_successfully_resolved_to_1:{code:6089,category:e.DiagnosticCategory.Message,key:"Module_name_0_was_successfully_resolved_to_1_6089",message:"======== Module name '{0}' was successfully resolved to '{1}'. ========"},Module_name_0_was_not_resolved:{code:6090,category:e.DiagnosticCategory.Message,key:"Module_name_0_was_not_resolved_6090",message:"======== Module name '{0}' was not resolved. ========"},paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:{code:6091,category:e.DiagnosticCategory.Message,key:"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091",message:"'paths' option is specified, looking for a pattern to match module name '{0}'."},Module_name_0_matched_pattern_1:{code:6092,category:e.DiagnosticCategory.Message,key:"Module_name_0_matched_pattern_1_6092",message:"Module name '{0}', matched pattern '{1}'."},Trying_substitution_0_candidate_module_location_Colon_1:{code:6093,category:e.DiagnosticCategory.Message,key:"Trying_substitution_0_candidate_module_location_Colon_1_6093",message:"Trying substitution '{0}', candidate module location: '{1}'."},Resolving_module_name_0_relative_to_base_url_1_2:{code:6094,category:e.DiagnosticCategory.Message,key:"Resolving_module_name_0_relative_to_base_url_1_2_6094",message:"Resolving module name '{0}' relative to base url '{1}' - '{2}'."},Loading_module_as_file_Slash_folder_candidate_module_location_0:{code:6095,category:e.DiagnosticCategory.Message,key:"Loading_module_as_file_Slash_folder_candidate_module_location_0_6095",message:"Loading module as file / folder, candidate module location '{0}'."},File_0_does_not_exist:{code:6096,category:e.DiagnosticCategory.Message,key:"File_0_does_not_exist_6096",message:"File '{0}' does not exist."},File_0_exist_use_it_as_a_name_resolution_result:{code:6097,category:e.DiagnosticCategory.Message,key:"File_0_exist_use_it_as_a_name_resolution_result_6097",message:"File '{0}' exist - use it as a name resolution result."},Loading_module_0_from_node_modules_folder:{code:6098,category:e.DiagnosticCategory.Message,key:"Loading_module_0_from_node_modules_folder_6098",message:"Loading module '{0}' from 'node_modules' folder."},Found_package_json_at_0:{code:6099,category:e.DiagnosticCategory.Message,key:"Found_package_json_at_0_6099",message:"Found 'package.json' at '{0}'."},package_json_does_not_have_a_types_or_main_field:{code:6100,category:e.DiagnosticCategory.Message,key:"package_json_does_not_have_a_types_or_main_field_6100",message:"'package.json' does not have a 'types' or 'main' field."},package_json_has_0_field_1_that_references_2:{code:6101,category:e.DiagnosticCategory.Message,key:"package_json_has_0_field_1_that_references_2_6101",message:"'package.json' has '{0}' field '{1}' that references '{2}'."},Allow_javascript_files_to_be_compiled:{code:6102,category:e.DiagnosticCategory.Message,key:"Allow_javascript_files_to_be_compiled_6102",message:"Allow javascript files to be compiled."},Option_0_should_have_array_of_strings_as_a_value:{code:6103,category:e.DiagnosticCategory.Error,key:"Option_0_should_have_array_of_strings_as_a_value_6103",message:"Option '{0}' should have array of strings as a value."},Checking_if_0_is_the_longest_matching_prefix_for_1_2:{code:6104,category:e.DiagnosticCategory.Message,key:"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104",message:"Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."},Expected_type_of_0_field_in_package_json_to_be_string_got_1:{code:6105,category:e.DiagnosticCategory.Message,key:"Expected_type_of_0_field_in_package_json_to_be_string_got_1_6105",message:"Expected type of '{0}' field in 'package.json' to be 'string', got '{1}'."},baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:{code:6106,category:e.DiagnosticCategory.Message,key:"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106",message:"'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:{code:6107,category:e.DiagnosticCategory.Message,key:"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107",message:"'rootDirs' option is set, using it to resolve relative module name '{0}'"},Longest_matching_prefix_for_0_is_1:{code:6108,category:e.DiagnosticCategory.Message,key:"Longest_matching_prefix_for_0_is_1_6108",message:"Longest matching prefix for '{0}' is '{1}'"},Loading_0_from_the_root_dir_1_candidate_location_2:{code:6109,category:e.DiagnosticCategory.Message,key:"Loading_0_from_the_root_dir_1_candidate_location_2_6109",message:"Loading '{0}' from the root dir '{1}', candidate location '{2}'"},Trying_other_entries_in_rootDirs:{code:6110,category:e.DiagnosticCategory.Message,key:"Trying_other_entries_in_rootDirs_6110",message:"Trying other entries in 'rootDirs'"},Module_resolution_using_rootDirs_has_failed:{code:6111,category:e.DiagnosticCategory.Message,key:"Module_resolution_using_rootDirs_has_failed_6111",message:"Module resolution using 'rootDirs' has failed"},Do_not_emit_use_strict_directives_in_module_output:{code:6112,category:e.DiagnosticCategory.Message,key:"Do_not_emit_use_strict_directives_in_module_output_6112",message:"Do not emit 'use strict' directives in module output."},Enable_strict_null_checks:{code:6113,category:e.DiagnosticCategory.Message,key:"Enable_strict_null_checks_6113",message:"Enable strict null checks."},Unknown_option_excludes_Did_you_mean_exclude:{code:6114,category:e.DiagnosticCategory.Error,key:"Unknown_option_excludes_Did_you_mean_exclude_6114",message:"Unknown option 'excludes'. Did you mean 'exclude'?"},Raise_error_on_this_expressions_with_an_implied_any_type:{code:6115,category:e.DiagnosticCategory.Message,key:"Raise_error_on_this_expressions_with_an_implied_any_type_6115",message:"Raise error on 'this' expressions with an implied 'any' type."},Resolving_type_reference_directive_0_containing_file_1_root_directory_2:{code:6116,category:e.DiagnosticCategory.Message,key:"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116",message:"======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"},Resolving_using_primary_search_paths:{code:6117,category:e.DiagnosticCategory.Message,key:"Resolving_using_primary_search_paths_6117",message:"Resolving using primary search paths..."},Resolving_from_node_modules_folder:{code:6118,category:e.DiagnosticCategory.Message,key:"Resolving_from_node_modules_folder_6118",message:"Resolving from node_modules folder..."},Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:{code:6119,category:e.DiagnosticCategory.Message,key:"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119",message:"======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"},Type_reference_directive_0_was_not_resolved:{code:6120,category:e.DiagnosticCategory.Message,key:"Type_reference_directive_0_was_not_resolved_6120",message:"======== Type reference directive '{0}' was not resolved. ========"},Resolving_with_primary_search_path_0:{code:6121,category:e.DiagnosticCategory.Message,key:"Resolving_with_primary_search_path_0_6121",message:"Resolving with primary search path '{0}'"},Root_directory_cannot_be_determined_skipping_primary_search_paths:{code:6122,category:e.DiagnosticCategory.Message,key:"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122",message:"Root directory cannot be determined, skipping primary search paths."},Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:{code:6123,category:e.DiagnosticCategory.Message,key:"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123",message:"======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"},Type_declaration_files_to_be_included_in_compilation:{code:6124,category:e.DiagnosticCategory.Message,key:"Type_declaration_files_to_be_included_in_compilation_6124",message:"Type declaration files to be included in compilation."},Looking_up_in_node_modules_folder_initial_location_0:{code:6125,category:e.DiagnosticCategory.Message,key:"Looking_up_in_node_modules_folder_initial_location_0_6125",message:"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:{code:6126,category:e.DiagnosticCategory.Message,key:"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126",message:"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:{code:6127,category:e.DiagnosticCategory.Message,key:"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127",message:"======== 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:{code:6128,category:e.DiagnosticCategory.Message,key:"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128",message:"======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"},The_config_file_0_found_doesn_t_contain_any_source_files:{code:6129,category:e.DiagnosticCategory.Error,key:"The_config_file_0_found_doesn_t_contain_any_source_files_6129",message:"The config file '{0}' found doesn't contain any source files."},Resolving_real_path_for_0_result_1:{code:6130,category:e.DiagnosticCategory.Message,key:"Resolving_real_path_for_0_result_1_6130",message:"Resolving real path for '{0}', result '{1}'"},Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:{code:6131,category:e.DiagnosticCategory.Error,key:"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131",message:"Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."},File_name_0_has_a_1_extension_stripping_it:{code:6132,category:e.DiagnosticCategory.Message,key:"File_name_0_has_a_1_extension_stripping_it_6132",message:"File name '{0}' has a '{1}' extension - stripping it"},_0_is_declared_but_never_used:{code:6133,category:e.DiagnosticCategory.Error,key:"_0_is_declared_but_never_used_6133",message:"'{0}' is declared but never used."},Report_errors_on_unused_locals:{code:6134,category:e.DiagnosticCategory.Message,key:"Report_errors_on_unused_locals_6134",message:"Report errors on unused locals."},Report_errors_on_unused_parameters:{code:6135,category:e.DiagnosticCategory.Message,key:"Report_errors_on_unused_parameters_6135",message:"Report errors on unused parameters."},The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:{code:6136,category:e.DiagnosticCategory.Message,key:"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136",message:"The maximum dependency depth to search under node_modules and load JavaScript files"},No_types_specified_in_package_json_so_returning_main_value_of_0:{code:6137,category:e.DiagnosticCategory.Message,key:"No_types_specified_in_package_json_so_returning_main_value_of_0_6137",message:"No types specified in 'package.json', so returning 'main' value of '{0}'"},Property_0_is_declared_but_never_used:{code:6138,category:e.DiagnosticCategory.Error,key:"Property_0_is_declared_but_never_used_6138",message:"Property '{0}' is declared but never used."},Import_emit_helpers_from_tslib:{code:6139,category:e.DiagnosticCategory.Message,key:"Import_emit_helpers_from_tslib_6139",message:"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:{code:6140,category:e.DiagnosticCategory.Error,key:"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140",message:"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:{code:6141,category:e.DiagnosticCategory.Message,key:"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",message:'Parse in strict mode and emit "use strict" for each source file'},Module_0_was_resolved_to_1_but_jsx_is_not_set:{code:6142,category:e.DiagnosticCategory.Error,key:"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142",message:"Module '{0}' was resolved to '{1}', but '--jsx' is not set."},Module_0_was_resolved_to_1_but_allowJs_is_not_set:{code:6143,category:e.DiagnosticCategory.Error,key:"Module_0_was_resolved_to_1_but_allowJs_is_not_set_6143",message:"Module '{0}' was resolved to '{1}', but '--allowJs' is not set."},Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:{code:6144,category:e.DiagnosticCategory.Message,key:"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144",message:"Module '{0}' was resolved as locally declared ambient module in file '{1}'."},Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:{code:6145,category:e.DiagnosticCategory.Message,key:"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145",message:"Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."},Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:{code:6146,category:e.DiagnosticCategory.Message,key:"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146",message:"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:{code:6147,category:e.DiagnosticCategory.Message,key:"Resolution_for_module_0_was_found_in_cache_6147",message:"Resolution for module '{0}' was found in cache"},Variable_0_implicitly_has_an_1_type:{code:7005,category:e.DiagnosticCategory.Error,key:"Variable_0_implicitly_has_an_1_type_7005",message:"Variable '{0}' implicitly has an '{1}' type."},Parameter_0_implicitly_has_an_1_type:{
code:7006,category:e.DiagnosticCategory.Error,key:"Parameter_0_implicitly_has_an_1_type_7006",message:"Parameter '{0}' implicitly has an '{1}' type."},Member_0_implicitly_has_an_1_type:{code:7008,category:e.DiagnosticCategory.Error,key:"Member_0_implicitly_has_an_1_type_7008",message:"Member '{0}' implicitly has an '{1}' type."},new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:{code:7009,category:e.DiagnosticCategory.Error,key:"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009",message:"'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:{code:7010,category:e.DiagnosticCategory.Error,key:"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010",message:"'{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:{code:7011,category:e.DiagnosticCategory.Error,key:"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011",message:"Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."},Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:{code:7013,category:e.DiagnosticCategory.Error,key:"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013",message:"Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."},Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:{code:7015,category:e.DiagnosticCategory.Error,key:"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015",message:"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:{code:7016,category:e.DiagnosticCategory.Error,key:"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016",message:"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:{code:7017,category:e.DiagnosticCategory.Error,key:"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017",message:"Element implicitly has an 'any' type because type '{0}' has no index signature."},Object_literal_s_property_0_implicitly_has_an_1_type:{code:7018,category:e.DiagnosticCategory.Error,key:"Object_literal_s_property_0_implicitly_has_an_1_type_7018",message:"Object literal's property '{0}' implicitly has an '{1}' type."},Rest_parameter_0_implicitly_has_an_any_type:{code:7019,category:e.DiagnosticCategory.Error,key:"Rest_parameter_0_implicitly_has_an_any_type_7019",message:"Rest parameter '{0}' implicitly has an 'any[]' type."},Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:{code:7020,category:e.DiagnosticCategory.Error,key:"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020",message:"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:{code:7022,category:e.DiagnosticCategory.Error,key:"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022",message:"'{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:{code:7023,category:e.DiagnosticCategory.Error,key:"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023",message:"'{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:{code:7024,category:e.DiagnosticCategory.Error,key:"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024",message:"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_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type:{code:7025,category:e.DiagnosticCategory.Error,key:"Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_typ_7025",message:"Generator implicitly has type '{0}' because it does not yield any values. Consider supplying a return type."},JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:{code:7026,category:e.DiagnosticCategory.Error,key:"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026",message:"JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists"},Unreachable_code_detected:{code:7027,category:e.DiagnosticCategory.Error,key:"Unreachable_code_detected_7027",message:"Unreachable code detected."},Unused_label:{code:7028,category:e.DiagnosticCategory.Error,key:"Unused_label_7028",message:"Unused label."},Fallthrough_case_in_switch:{code:7029,category:e.DiagnosticCategory.Error,key:"Fallthrough_case_in_switch_7029",message:"Fallthrough case in switch."},Not_all_code_paths_return_a_value:{code:7030,category:e.DiagnosticCategory.Error,key:"Not_all_code_paths_return_a_value_7030",message:"Not all code paths return a value."},Binding_element_0_implicitly_has_an_1_type:{code:7031,category:e.DiagnosticCategory.Error,key:"Binding_element_0_implicitly_has_an_1_type_7031",message:"Binding element '{0}' implicitly has an '{1}' type."},Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:{code:7032,category:e.DiagnosticCategory.Error,key:"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032",message:"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:{code:7033,category:e.DiagnosticCategory.Error,key:"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033",message:"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:{code:7034,category:e.DiagnosticCategory.Error,key:"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034",message:"Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."},You_cannot_rename_this_element:{code:8e3,category:e.DiagnosticCategory.Error,key:"You_cannot_rename_this_element_8000",message:"You cannot rename this element."},You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:{code:8001,category:e.DiagnosticCategory.Error,key:"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001",message:"You cannot rename elements that are defined in the standard TypeScript library."},import_can_only_be_used_in_a_ts_file:{code:8002,category:e.DiagnosticCategory.Error,key:"import_can_only_be_used_in_a_ts_file_8002",message:"'import ... =' can only be used in a .ts file."},export_can_only_be_used_in_a_ts_file:{code:8003,category:e.DiagnosticCategory.Error,key:"export_can_only_be_used_in_a_ts_file_8003",message:"'export=' can only be used in a .ts file."},type_parameter_declarations_can_only_be_used_in_a_ts_file:{code:8004,category:e.DiagnosticCategory.Error,key:"type_parameter_declarations_can_only_be_used_in_a_ts_file_8004",message:"'type parameter declarations' can only be used in a .ts file."},implements_clauses_can_only_be_used_in_a_ts_file:{code:8005,category:e.DiagnosticCategory.Error,key:"implements_clauses_can_only_be_used_in_a_ts_file_8005",message:"'implements clauses' can only be used in a .ts file."},interface_declarations_can_only_be_used_in_a_ts_file:{code:8006,category:e.DiagnosticCategory.Error,key:"interface_declarations_can_only_be_used_in_a_ts_file_8006",message:"'interface declarations' can only be used in a .ts file."},module_declarations_can_only_be_used_in_a_ts_file:{code:8007,category:e.DiagnosticCategory.Error,key:"module_declarations_can_only_be_used_in_a_ts_file_8007",message:"'module declarations' can only be used in a .ts file."},type_aliases_can_only_be_used_in_a_ts_file:{code:8008,category:e.DiagnosticCategory.Error,key:"type_aliases_can_only_be_used_in_a_ts_file_8008",message:"'type aliases' can only be used in a .ts file."},_0_can_only_be_used_in_a_ts_file:{code:8009,category:e.DiagnosticCategory.Error,key:"_0_can_only_be_used_in_a_ts_file_8009",message:"'{0}' can only be used in a .ts file."},types_can_only_be_used_in_a_ts_file:{code:8010,category:e.DiagnosticCategory.Error,key:"types_can_only_be_used_in_a_ts_file_8010",message:"'types' can only be used in a .ts file."},type_arguments_can_only_be_used_in_a_ts_file:{code:8011,category:e.DiagnosticCategory.Error,key:"type_arguments_can_only_be_used_in_a_ts_file_8011",message:"'type arguments' can only be used in a .ts file."},parameter_modifiers_can_only_be_used_in_a_ts_file:{code:8012,category:e.DiagnosticCategory.Error,key:"parameter_modifiers_can_only_be_used_in_a_ts_file_8012",message:"'parameter modifiers' can only be used in a .ts file."},enum_declarations_can_only_be_used_in_a_ts_file:{code:8015,category:e.DiagnosticCategory.Error,key:"enum_declarations_can_only_be_used_in_a_ts_file_8015",message:"'enum declarations' can only be used in a .ts file."},type_assertion_expressions_can_only_be_used_in_a_ts_file:{code:8016,category:e.DiagnosticCategory.Error,key:"type_assertion_expressions_can_only_be_used_in_a_ts_file_8016",message:"'type assertion expressions' can only be used in a .ts file."},Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clauses:{code:9002,category:e.DiagnosticCategory.Error,key:"Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_clas_9002",message:"Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clauses."},class_expressions_are_not_currently_supported:{code:9003,category:e.DiagnosticCategory.Error,key:"class_expressions_are_not_currently_supported_9003",message:"'class' expressions are not currently supported."},Language_service_is_disabled:{code:9004,category:e.DiagnosticCategory.Error,key:"Language_service_is_disabled_9004",message:"Language service is disabled."},JSX_attributes_must_only_be_assigned_a_non_empty_expression:{code:17e3,category:e.DiagnosticCategory.Error,key:"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000",message:"JSX attributes must only be assigned a non-empty 'expression'."},JSX_elements_cannot_have_multiple_attributes_with_the_same_name:{code:17001,category:e.DiagnosticCategory.Error,key:"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001",message:"JSX elements cannot have multiple attributes with the same name."},Expected_corresponding_JSX_closing_tag_for_0:{code:17002,category:e.DiagnosticCategory.Error,key:"Expected_corresponding_JSX_closing_tag_for_0_17002",message:"Expected corresponding JSX closing tag for '{0}'."},JSX_attribute_expected:{code:17003,category:e.DiagnosticCategory.Error,key:"JSX_attribute_expected_17003",message:"JSX attribute expected."},Cannot_use_JSX_unless_the_jsx_flag_is_provided:{code:17004,category:e.DiagnosticCategory.Error,key:"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004",message:"Cannot use JSX unless the '--jsx' flag is provided."},A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:{code:17005,category:e.DiagnosticCategory.Error,key:"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005",message:"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:{code:17006,category:e.DiagnosticCategory.Error,key:"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006",message:"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:{code:17007,category:e.DiagnosticCategory.Error,key:"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007",message:"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:{code:17008,category:e.DiagnosticCategory.Error,key:"JSX_element_0_has_no_corresponding_closing_tag_17008",message:"JSX element '{0}' has no corresponding closing tag."},super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:{code:17009,category:e.DiagnosticCategory.Error,key:"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009",message:"'super' must be called before accessing 'this' in the constructor of a derived class."},Unknown_type_acquisition_option_0:{code:17010,category:e.DiagnosticCategory.Error,key:"Unknown_type_acquisition_option_0_17010",message:"Unknown type acquisition option '{0}'."},super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:{code:17011,category:e.DiagnosticCategory.Error,key:"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011",message:"'super' must be called before accessing a property of 'super' in the constructor of a derived class."},Circularity_detected_while_resolving_configuration_Colon_0:{code:18e3,category:e.DiagnosticCategory.Error,key:"Circularity_detected_while_resolving_configuration_Colon_0_18000",message:"Circularity detected while resolving configuration: {0}"},A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not:{code:18001,category:e.DiagnosticCategory.Error,key:"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001",message:"A path in an 'extends' option must be relative or rooted, but '{0}' is not."},The_files_list_in_config_file_0_is_empty:{code:18002,category:e.DiagnosticCategory.Error,key:"The_files_list_in_config_file_0_is_empty_18002",message:"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:{code:18003,category:e.DiagnosticCategory.Error,key:"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003",message:"No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."},Add_missing_super_call:{code:90001,category:e.DiagnosticCategory.Message,key:"Add_missing_super_call_90001",message:"Add missing 'super()' call."},Make_super_call_the_first_statement_in_the_constructor:{code:90002,category:e.DiagnosticCategory.Message,key:"Make_super_call_the_first_statement_in_the_constructor_90002",message:"Make 'super()' call the first statement in the constructor."},Change_extends_to_implements:{code:90003,category:e.DiagnosticCategory.Message,key:"Change_extends_to_implements_90003",message:"Change 'extends' to 'implements'"},Remove_unused_identifiers:{code:90004,category:e.DiagnosticCategory.Message,key:"Remove_unused_identifiers_90004",message:"Remove unused identifiers"},Implement_interface_on_reference:{code:90005,category:e.DiagnosticCategory.Message,key:"Implement_interface_on_reference_90005",message:"Implement interface on reference"},Implement_interface_on_class:{code:90006,category:e.DiagnosticCategory.Message,key:"Implement_interface_on_class_90006",message:"Implement interface on class"},Implement_inherited_abstract_class:{code:90007,category:e.DiagnosticCategory.Message,key:"Implement_inherited_abstract_class_90007",message:"Implement inherited abstract class"},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:{code:90009,category:e.DiagnosticCategory.Error,key:"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__90009",message:"Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig"},Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:{code:90010,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_90010",message:"Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."},Import_0_from_1:{code:90013,category:e.DiagnosticCategory.Message,key:"Import_0_from_1_90013",message:"Import {0} from {1}"},Change_0_to_1:{code:90014,category:e.DiagnosticCategory.Message,key:"Change_0_to_1_90014",message:"Change {0} to {1}"},Add_0_to_existing_import_declaration_from_1:{code:90015,category:e.DiagnosticCategory.Message,key:"Add_0_to_existing_import_declaration_from_1_90015",message:"Add {0} to existing import declaration from {1}"},Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:{code:8017,category:e.DiagnosticCategory.Error,key:"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017",message:"Octal literal types must use ES2015 syntax. Use the syntax '{0}'."}}}(ts||(ts={}));var ts;!function(e){function t(e){return e>=70}function r(e,t){if(e<t[0])return!1;for(var r,n=0,a=t.length;n+1<a;){if(r=n+(a-n)/2,r-=r%2,t[r]<=e&&e<=t[r+1])return!0;e<t[r]?a=r:n=r+2}return!1}function n(e,t){return t>=1?r(e,z):r(e,K)}function a(e,t){return t>=1?r(e,j):r(e,J)}function i(e){var t=[];for(var r in e)t[e[r]]=r;return t}function o(e){return V[e]}function s(e){return B[e]}function c(e){for(var t=new Array,r=0,n=0;r<e.length;){var a=e.charCodeAt(r);switch(r++,a){case 13:10===e.charCodeAt(r)&&r++;case 10:t.push(n),n=r;break;default:a>127&&g(a)&&(t.push(n),n=r)}}return t.push(n),t}function u(e,t,r){return _(l(e),t,r)}function _(t,r,n){return e.Debug.assert(r>=0&&r<t.length),t[r]+n}function l(e){return e.lineMap||(e.lineMap=c(e.text))}function d(t,r){var n=e.binarySearch(t,r);return n<0&&(n=~n-1,e.Debug.assert(n!==-1,"position cannot precede the beginning of the file")),{line:n,character:r-t[n]}}function p(e,t){return d(l(e),t)}function f(e){return m(e)||g(e)}function m(e){return 32===e||9===e||11===e||12===e||160===e||133===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function g(e){return 10===e||13===e||8232===e||8233===e}function y(e){return e>=48&&e<=57}function v(e){return e>=48&&e<=55}function h(e,t){var r=e.charCodeAt(t);switch(r){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 61:case 62:return!0;case 35:return 0===t;default:return r>127}}function b(t,r,n,a){if(void 0===a&&(a=!1),e.positionIsSynthesized(r))return r;for(;;){var i=t.charCodeAt(r);switch(i){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)return r;continue;case 9:case 11:case 12:case 32:r++;continue;case 47:if(a)break;if(47===t.charCodeAt(r+1)){for(r+=2;r<t.length&&!g(t.charCodeAt(r));)r++;continue}if(42===t.charCodeAt(r+1)){for(r+=2;r<t.length;){if(42===t.charCodeAt(r)&&47===t.charCodeAt(r+1)){r+=2;break}r++}continue}break;case 60:case 61:case 62:if(k(t,r)){r=x(t,r);continue}break;case 35:if(0===r&&D(t,r)){r=S(t,r);continue}break;default:if(i>127&&f(i)){r++;continue}}return r}}function k(t,r){if(e.Debug.assert(r>=0),0===r||g(t.charCodeAt(r-1))){var n=t.charCodeAt(r);if(r+q<t.length){for(var a=0,i=q;a<i;a++)if(t.charCodeAt(r+a)!==n)return!1;return 61===n||32===t.charCodeAt(r+q)}}return!1}function x(t,r,n){n&&n(e.Diagnostics.Merge_conflict_marker_encountered,q);var a=t.charCodeAt(r),i=t.length;if(60===a||62===a)for(;r<i&&!g(t.charCodeAt(r));)r++;else for(e.Debug.assert(61===a);r<i;){var o=t.charCodeAt(r);if(62===o&&k(t,r))break;r++}return r}function D(t,r){return e.Debug.assert(0===r),W.test(t)}function S(e,t){var r=W.exec(e)[0];return t+=r.length}function C(e,t,r,n,a,i,o){var s,c,u,_,l=!1,d=n||0===r,p=o;e:for(;r>=0&&r<t.length;){var m=t.charCodeAt(r);switch(m){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)break e;d=!0,l&&(_=!0);continue;case 9:case 11:case 12:case 32:r++;continue;case 47:var y=t.charCodeAt(r+1),v=!1;if(47===y||42===y){var h=47===y?2:3,b=r;if(r+=2,47===y)for(;r<t.length;){if(g(t.charCodeAt(r))){v=!0;break}r++}else for(;r<t.length;){if(42===t.charCodeAt(r)&&47===t.charCodeAt(r+1)){r+=2;break}r++}if(d){if(l){if(p=a(s,c,u,_,i,p),!e&&p)return p;l=!1}s=b,c=r,u=h,_=v,l=!0}continue}break e;default:if(m>127&&f(m)){l&&g(m)&&(_=!0),r++;continue}break e}}return l&&(p=a(s,c,u,_,i,p)),p}function E(e,t,r,n){return C(!1,e,t,!1,r,n)}function T(e,t,r,n){return C(!1,e,t,!0,r,n)}function N(e,t,r,n,a){return C(!0,e,t,!1,r,n,a)}function A(e,t,r,n,a){return C(!0,e,t,!0,r,n,a)}function w(e,t,r,n,a,i){return i||(i=[]),i.push({pos:e,end:t,hasTrailingNewLine:n,kind:r}),i}function P(e,t){return N(e,t,w,void 0,void 0)}function F(e,t){return A(e,t,w,void 0,void 0)}function O(e){return W.test(e)?W.exec(e)[0]:void 0}function I(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&n(e,t)}function R(e,t){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||e>127&&a(e,t)}function L(e,t){if(!I(e.charCodeAt(0),t))return!1;for(var r=1,n=e.length;r<n;r++)if(!R(e.charCodeAt(r),t))return!1;return!0}function M(r,n,a,i,o,s,c){function u(e,t){o&&o(e,t||0)}function _(){for(var t=re;y(i.charCodeAt(re));)re++;if(46===i.charCodeAt(re))for(re++;y(i.charCodeAt(re));)re++;var r=re;if(69===i.charCodeAt(re)||101===i.charCodeAt(re))if(re++,43!==i.charCodeAt(re)&&45!==i.charCodeAt(re)||re++,y(i.charCodeAt(re))){for(re++;y(i.charCodeAt(re));)re++;r=re}else u(e.Diagnostics.Digit_expected);return""+ +i.substring(t,r)}function l(){for(var e=re;v(i.charCodeAt(re));)re++;return+i.substring(e,re)}function d(e){return f(e,!1)}function p(e){return f(e,!0)}function f(e,t){for(var r=0,n=0;r<e||t;){var a=i.charCodeAt(re);if(a>=48&&a<=57)n=16*n+a-48;else if(a>=65&&a<=70)n=16*n+a-65+10;else{if(!(a>=97&&a<=102))break;n=16*n+a-97+10}re++,r++}return r<e&&(n=-1),n}function h(t){void 0===t&&(t=!0);var r=i.charCodeAt(re);re++;for(var n="",a=re;;){if(re>=ne){n+=i.substring(a,re),_e=!0,u(e.Diagnostics.Unterminated_string_literal);break}var o=i.charCodeAt(re);if(o===r){n+=i.substring(a,re),re++;break}if(92===o&&t)n+=i.substring(a,re),n+=C(),a=re;else{if(g(o)){n+=i.substring(a,re),_e=!0,u(e.Diagnostics.Unterminated_string_literal);break}re++}}return n}function b(){var t=96===i.charCodeAt(re);re++;for(var r,n=re,a="";;){if(re>=ne){a+=i.substring(n,re),_e=!0,u(e.Diagnostics.Unterminated_template_literal),r=t?12:15;break}var o=i.charCodeAt(re);if(96===o){a+=i.substring(n,re),re++,r=t?12:15;break}if(36===o&&re+1<ne&&123===i.charCodeAt(re+1)){a+=i.substring(n,re),re+=2,r=t?13:14;break}92!==o?13!==o?re++:(a+=i.substring(n,re),re++,re<ne&&10===i.charCodeAt(re)&&re++,a+="\n",n=re):(a+=i.substring(n,re),a+=C(),n=re)}return e.Debug.assert(void 0!==r),se=a,r}function C(){if(re++,re>=ne)return u(e.Diagnostics.Unexpected_end_of_text),"";var t=i.charCodeAt(re);switch(re++,t){case 48:return"\0";case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\x0B";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:return re<ne&&123===i.charCodeAt(re)?(ue=!0,re++,T()):E(4);case 120:return E(2);case 13:re<ne&&10===i.charCodeAt(re)&&re++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(t)}}function E(t){var r=d(t);return r>=0?String.fromCharCode(r):(u(e.Diagnostics.Hexadecimal_digit_expected),"")}function T(){var t=p(1),r=!1;return t<0?(u(e.Diagnostics.Hexadecimal_digit_expected),r=!0):t>1114111&&(u(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),r=!0),re>=ne?(u(e.Diagnostics.Unexpected_end_of_text),r=!0):125===i.charCodeAt(re)?re++:(u(e.Diagnostics.Unterminated_Unicode_escape_sequence),r=!0),r?"":N(t)}function N(t){if(e.Debug.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);var r=Math.floor((t-65536)/1024)+55296,n=(t-65536)%1024+56320;return String.fromCharCode(r,n)}function A(){if(re+5<ne&&117===i.charCodeAt(re+1)){var e=re;re+=2;var t=d(4);return re=e,t}return-1}function w(){for(var e="",t=re;re<ne;){var n=i.charCodeAt(re);if(R(n,r))re++;else{if(92!==n)break;if(n=A(),!(n>=0&&R(n,r)))break;e+=i.substring(t,re),e+=String.fromCharCode(n),re+=6,t=re}}return e+=i.substring(t,re)}function P(){var e=se.length;if(e>=2&&e<=11){var t=se.charCodeAt(0);if(t>=97&&t<=122&&U.call(B,se))return oe=B[se]}return oe=70}function F(t){e.Debug.assert(2===t||8===t,"Expected either base 2 or base 8");for(var r=0,n=0;;){var a=i.charCodeAt(re),o=a-48;if(!y(a)||o>=t)break;r=r*t+o,re++,n++}return 0===n?-1:r}function O(){for(ae=re,ue=!1,ce=!1,_e=!1;;){if(ie=re,re>=ne)return oe=1;var t=i.charCodeAt(re);if(35===t&&0===re&&D(i,re)){if(re=S(i,re),n)continue;return oe=6}switch(t){case 10:case 13:if(ce=!0,n){re++;continue}return 13===t&&re+1<ne&&10===i.charCodeAt(re+1)?re+=2:re++,oe=4;case 9:case 11:case 12:case 32:if(n){re++;continue}for(;re<ne&&m(i.charCodeAt(re));)re++;return oe=5;case 33:return 61===i.charCodeAt(re+1)?61===i.charCodeAt(re+2)?(re+=3,oe=34):(re+=2,oe=32):(re++,oe=50);case 34:case 39:return se=h(),oe=9;case 96:return oe=b();case 37:return 61===i.charCodeAt(re+1)?(re+=2,oe=63):(re++,oe=41);case 38:return 38===i.charCodeAt(re+1)?(re+=2,oe=52):61===i.charCodeAt(re+1)?(re+=2,oe=67):(re++,oe=47);case 40:return re++,oe=18;case 41:return re++,oe=19;case 42:return 61===i.charCodeAt(re+1)?(re+=2,oe=60):42===i.charCodeAt(re+1)?61===i.charCodeAt(re+2)?(re+=3,oe=61):(re+=2,oe=39):(re++,oe=38);case 43:return 43===i.charCodeAt(re+1)?(re+=2,oe=42):61===i.charCodeAt(re+1)?(re+=2,oe=58):(re++,oe=36);case 44:return re++,oe=25;case 45:return 45===i.charCodeAt(re+1)?(re+=2,oe=43):61===i.charCodeAt(re+1)?(re+=2,oe=59):(re++,oe=37);case 46:return y(i.charCodeAt(re+1))?(se=_(),oe=8):46===i.charCodeAt(re+1)&&46===i.charCodeAt(re+2)?(re+=3,oe=23):(re++,oe=22);case 47:if(47===i.charCodeAt(re+1)){for(re+=2;re<ne&&!g(i.charCodeAt(re));)re++;if(n)continue;return oe=2}if(42===i.charCodeAt(re+1)){re+=2;for(var o=!1;re<ne;){var s=i.charCodeAt(re);if(42===s&&47===i.charCodeAt(re+1)){re+=2,o=!0;break}g(s)&&(ce=!0),re++}if(o||u(e.Diagnostics.Asterisk_Slash_expected),n)continue;return _e=!o,oe=3}return 61===i.charCodeAt(re+1)?(re+=2,oe=62):(re++,oe=40);case 48:if(re+2<ne&&(88===i.charCodeAt(re+1)||120===i.charCodeAt(re+1))){re+=2;var c=p(1);return c<0&&(u(e.Diagnostics.Hexadecimal_digit_expected),c=0),se=""+c,oe=8}if(re+2<ne&&(66===i.charCodeAt(re+1)||98===i.charCodeAt(re+1))){re+=2;var c=F(2);return c<0&&(u(e.Diagnostics.Binary_digit_expected),c=0),se=""+c,oe=8}if(re+2<ne&&(79===i.charCodeAt(re+1)||111===i.charCodeAt(re+1))){re+=2;var c=F(8);return c<0&&(u(e.Diagnostics.Octal_digit_expected),c=0),se=""+c,oe=8}if(re+1<ne&&v(i.charCodeAt(re+1)))return se=""+l(),oe=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return se=_(),oe=8;case 58:return re++,oe=55;case 59:return re++,oe=24;case 60:if(k(i,re)){if(re=x(i,re,u),n)continue;return oe=7}return 60===i.charCodeAt(re+1)?61===i.charCodeAt(re+2)?(re+=3,oe=64):(re+=2,oe=44):61===i.charCodeAt(re+1)?(re+=2,oe=29):1===a&&47===i.charCodeAt(re+1)&&42!==i.charCodeAt(re+2)?(re+=2,oe=27):(re++,oe=26);case 61:if(k(i,re)){if(re=x(i,re,u),n)continue;return oe=7}return 61===i.charCodeAt(re+1)?61===i.charCodeAt(re+2)?(re+=3,oe=33):(re+=2,oe=31):62===i.charCodeAt(re+1)?(re+=2,oe=35):(re++,oe=57);case 62:if(k(i,re)){if(re=x(i,re,u),n)continue;return oe=7}return re++,oe=28;case 63:return re++,oe=54;case 91:return re++,oe=20;case 93:return re++,oe=21;case 94:return 61===i.charCodeAt(re+1)?(re+=2,oe=69):(re++,oe=49);case 123:return re++,oe=16;case 124:return 124===i.charCodeAt(re+1)?(re+=2,oe=53):61===i.charCodeAt(re+1)?(re+=2,oe=68):(re++,oe=48);case 125:return re++,oe=17;case 126:return re++,oe=51;case 64:return re++,oe=56;case 92:var d=A();return d>=0&&I(d,r)?(re+=6,se=String.fromCharCode(d)+w(),oe=P()):(u(e.Diagnostics.Invalid_character),re++,oe=0);default:if(I(t,r)){for(re++;re<ne&&R(t=i.charCodeAt(re),r);)re++;return se=i.substring(ie,re),92===t&&(se+=w()),oe=P()}if(m(t)){re++;continue}if(g(t)){ce=!0,re++;continue}return u(e.Diagnostics.Invalid_character),re++,oe=0}}}function L(){if(28===oe){if(62===i.charCodeAt(re))return 62===i.charCodeAt(re+1)?61===i.charCodeAt(re+2)?(re+=3,oe=66):(re+=2,oe=46):61===i.charCodeAt(re+1)?(re+=2,oe=65):(re++,oe=45);if(61===i.charCodeAt(re))return re++,oe=30}return oe}function M(){if(40===oe||62===oe){for(var t=ie+1,n=!1,a=!1;;){if(t>=ne){_e=!0,u(e.Diagnostics.Unterminated_regular_expression_literal);break}var o=i.charCodeAt(t);if(g(o)){_e=!0,u(e.Diagnostics.Unterminated_regular_expression_literal);break}if(n)n=!1;else{if(47===o&&!a){t++;break}91===o?a=!0:92===o?n=!0:93===o&&(a=!1)}t++}for(;t<ne&&R(i.charCodeAt(t),r);)t++;re=t,se=i.substring(ie,re),oe=11}return oe}function K(){return e.Debug.assert(17===oe,"'reScanTemplateToken' should only be called on a '}'"),re=ie,oe=b()}function J(){return re=ie=ae,oe=z()}function z(){if(ae=ie=re,re>=ne)return oe=1;var e=i.charCodeAt(re);if(60===e)return 47===i.charCodeAt(re+1)?(re+=2,oe=27):(re++,oe=26);if(123===e)return re++,oe=16;for(;re<ne&&(re++,e=i.charCodeAt(re),123!==e&&60!==e););return oe=10}function j(){if(t(oe)){for(var e=re;re<ne;){var n=i.charCodeAt(re);if(45!==n&&(e===re?!I(n,r):!R(n,r)))break;re++}se+=i.substr(e,re-e)}return oe}function V(){switch(ae=re,i.charCodeAt(re)){case 34:case 39:return se=h(!1),oe=9;default:return O()}}function q(){if(re>=ne)return oe=1;ae=re,ie=re;var e=i.charCodeAt(re);switch(e){case 9:case 11:case 12:case 32:for(;re<ne&&m(i.charCodeAt(re));)re++;return oe=5;case 64:return re++,oe=56;case 10:case 13:return re++,oe=4;case 42:return re++,oe=38;case 123:return re++,oe=16;case 125:return re++,oe=17;case 91:return re++,oe=20;case 93:return re++,oe=21;case 61:return re++,oe=57;case 44:return re++,oe=25;case 46:return re++,oe=22}if(I(e,5)){for(re++;R(i.charCodeAt(re),5)&&re<ne;)re++;return oe=70}return re+=1,oe=0}function W(e,t){var r=re,n=ae,a=ie,i=oe,o=se,s=ce,c=e();return c&&!t||(re=r,ae=n,ie=a,oe=i,se=o,ce=s),c}function H(e,t,r){var n=ne,a=re,o=ae,s=ie,c=oe,u=ce,_=se,l=ue,d=_e;Y(i,e,t);var p=r();return ne=n,re=a,ae=o,ie=s,oe=c,ce=u,se=_,ue=l,_e=d,p}function G(e){return W(e,!0)}function X(e){return W(e,!1)}function Q(){return i}function Y(e,t,r){i=e||"",ne=void 0===r?i.length:t+r,te(t||0)}function Z(e){o=e}function $(e){r=e}function ee(e){a=e}function te(t){e.Debug.assert(t>=0),re=t,ae=t,ie=t,oe=0,ce=!1,se=void 0,ue=!1,_e=!1}void 0===a&&(a=0);var re,ne,ae,ie,oe,se,ce,ue,_e;return Y(i,s,c),{getStartPos:function(){return ae},getTextPos:function(){return re},getToken:function(){return oe;
},getTokenPos:function(){return ie},getTokenText:function(){return i.substring(ie,re)},getTokenValue:function(){return se},hasExtendedUnicodeEscape:function(){return ue},hasPrecedingLineBreak:function(){return ce},isIdentifier:function(){return 70===oe||oe>106},isReservedWord:function(){return oe>=71&&oe<=106},isUnterminated:function(){return _e},reScanGreaterToken:L,reScanSlashToken:M,reScanTemplateToken:K,scanJsxIdentifier:j,scanJsxAttributeValue:V,reScanJsxToken:J,scanJsxToken:z,scanJSDocToken:q,scan:O,getText:Q,setText:Y,setScriptTarget:$,setLanguageVariant:ee,setOnError:Z,setTextPos:te,tryScan:X,lookAhead:G,scanRange:H}}e.tokenIsIdentifierOrKeyword=t;var B=e.createMap({"abstract":116,any:118,as:117,"boolean":121,"break":71,"case":72,"catch":73,"class":74,"continue":76,"const":75,constructor:122,"debugger":77,declare:123,"default":78,"delete":79,"do":80,"else":81,"enum":82,"export":83,"extends":84,"false":85,"finally":86,"for":87,from:138,"function":88,get:124,"if":89,"implements":107,"import":90,"in":91,"instanceof":92,"interface":108,is:125,keyof:126,"let":109,module:127,namespace:128,never:129,"new":93,"null":94,number:132,"package":110,"private":111,"protected":112,"public":113,readonly:130,require:131,global:139,"return":95,set:133,"static":114,string:134,"super":96,"switch":97,symbol:135,"this":98,"throw":99,"true":100,"try":101,type:136,"typeof":102,undefined:137,"var":103,"void":104,"while":105,"with":106,"yield":115,async:119,await:120,of:140,"{":16,"}":17,"(":18,")":19,"[":20,"]":21,".":22,"...":23,";":24,",":25,"<":26,">":28,"<=":29,">=":30,"==":31,"!=":32,"===":33,"!==":34,"=>":35,"+":36,"-":37,"**":39,"*":38,"/":40,"%":41,"++":42,"--":43,"<<":44,"</":27,">>":45,">>>":46,"&":47,"|":48,"^":49,"!":50,"~":51,"&&":52,"||":53,"?":54,":":55,"=":57,"+=":58,"-=":59,"*=":60,"**=":61,"/=":62,"%=":63,"<<=":64,">>=":65,">>>=":66,"&=":67,"|=":68,"^=":69,"@":56}),K=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,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,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,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,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,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,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,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,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],J=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,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,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,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,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,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,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],z=[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],j=[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];e.isUnicodeIdentifierStart=n;var V=i(B);e.tokenToString=o,e.stringToToken=s,e.computeLineStarts=c,e.getPositionOfLineAndCharacter=u,e.computePositionOfLineAndCharacter=_,e.getLineStarts=l,e.computeLineAndCharacterOfPosition=d,e.getLineAndCharacterOfPosition=p;var U=Object.prototype.hasOwnProperty;e.isWhiteSpace=f,e.isWhiteSpaceSingleLine=m,e.isLineBreak=g,e.isOctalDigit=v,e.couldStartTrivia=h,e.skipTrivia=b;var q="<<<<<<<".length,W=/^#!.*/;e.forEachLeadingCommentRange=E,e.forEachTrailingCommentRange=T,e.reduceEachLeadingCommentRange=N,e.reduceEachTrailingCommentRange=A,e.getLeadingCommentRanges=P,e.getTrailingCommentRanges=F,e.getShebang=O,e.isIdentifierStart=I,e.isIdentifierPart=R,e.isIdentifierText=L,e.createScanner=M}(ts||(ts={}));var ts;!function(e){function t(e,t){var r=e.declarations;if(r)for(var n=0,a=r;n<a.length;n++){var i=a[n];if(i.kind===t)return i}}function r(){if(0===Ai.length){var t="",r=function(e){return t+=e};return{string:function(){return t},writeKeyword:r,writeOperator:r,writePunctuation:r,writeSpace:r,writeStringLiteral:r,writeParameter:r,writeProperty:r,writeSymbol:r,writeLine:function(){return t+=" "},increaseIndent:e.noop,decreaseIndent:e.noop,clear:function(){return t=""},trackSymbol:e.noop,reportInaccessibleThisError:e.noop}}return Ai.pop()}function n(e){e.clear(),Ai.push(e)}function a(e){return e.end-e.pos}function i(e,t){return!!(e&&e.resolvedModules&&e.resolvedModules[t])}function o(e,t){return i(e,t)?e.resolvedModules[t]:void 0}function s(t,r,n){t.resolvedModules||(t.resolvedModules=e.createMap()),t.resolvedModules[r]=n}function c(t,r,n){t.resolvedTypeReferenceDirectiveNames||(t.resolvedTypeReferenceDirectiveNames=e.createMap()),t.resolvedTypeReferenceDirectiveNames[r]=n}function u(e,t){return e.isExternalLibraryImport===t.isExternalLibraryImport&&e.extension===t.extension&&e.resolvedFileName===t.resolvedFileName}function _(e,t){return e.resolvedFileName===t.resolvedFileName&&e.primary===t.primary}function l(e,t,r,n){if(e.length!==t.length)return!1;for(var a=0;a<e.length;a++){var i=t[a],o=r&&r[e[a]],s=o?!i||!n(o,i):i;if(s)return!0}return!1}function d(e){return p(e),0!==(131072&e.flags)}function p(t){if(!(262144&t.flags)){var r=0!==(32768&t.flags)||e.forEachChild(t,d);r&&(t.flags|=131072),t.flags|=262144}}function f(e){for(;e&&261!==e.kind;)e=e.parent;return e}function m(e){switch(e.kind){case 204:case 232:case 211:case 212:case 213:return!0}return!1}function g(t,r){return e.Debug.assert(t>=0),e.getLineStarts(r)[t]}function y(t){var r=f(t),n=e.getLineAndCharacterOfPosition(r,t.pos);return r.fileName+"("+(n.line+1)+","+(n.character+1)+")"}function v(e){return e.pos}function h(e){return void 0!==e}function b(t,r){e.Debug.assert(t>=0);var n=e.getLineStarts(r),a=t,i=r.text;if(a+1===n.length)return i.length-1;var o=n[a],s=n[a+1]-1;for(e.Debug.assert(e.isLineBreak(i.charCodeAt(s)));o<=s&&e.isLineBreak(i.charCodeAt(s));)s--;return s}function k(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function x(e){return!k(e)}function D(t,r,n){return k(t)?t.pos:S(t)?e.skipTrivia((r||f(t)).text,t.pos,!1,!0):n&&t.jsDoc&&t.jsDoc.length>0?D(t.jsDoc[0]):292===t.kind&&t._children.length>0?D(t._children[0],r,n):e.skipTrivia((r||f(t)).text,t.pos)}function S(e){return e.kind>=262&&e.kind<=288}function C(e){return e.kind>=278&&e.kind<=291}function E(t,r){return k(t)||!t.decorators?D(t,r):e.skipTrivia((r||f(t)).text,t.decorators.end)}function T(t,r,n){if(void 0===n&&(n=!1),k(r))return"";var a=t.text;return a.substring(n?r.pos:e.skipTrivia(a,r.pos),r.end)}function N(t,r){return k(r)?"":t.substring(e.skipTrivia(t,r.pos),r.end)}function A(e,t){return void 0===t&&(t=!1),T(f(e),e,t)}function w(t,r,n){if(n<2&&(qn(t.kind)||t.hasExtendedUnicodeEscape))return F('"',t.text,'"');if(!Qt(t)&&t.parent){var a=T(r,t);return n<2&&P(t,a)?t.text:a}switch(t.kind){case 9:return F('"',t.text,'"');case 12:return F("`",t.text,"`");case 13:return F("`",t.text,"${");case 14:return F("}",t.text,"${");case 15:return F("}",t.text,"`");case 8:return t.text}e.Debug.fail("Literal kind '"+t.kind+"' not accounted for.")}function P(e,t){if(8===e.kind&&t.length>1)switch(t.charCodeAt(1)){case 98:case 66:case 111:case 79:return!0}return!1}function F(e,t,r){return e+dr(cr(t))+r}function O(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function I(e){return e.length>=3&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95===e.charCodeAt(2)?e.substr(1):e}function R(t){return e.getBaseFileName(t).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function L(t){return 0!==(3&e.getCombinedNodeFlags(t))||M(t)}function M(e){var t=Gt(e);return 223===t.kind&&256===t.parent.kind}function B(e){return e&&230===e.kind&&(9===e.name.kind||j(e))}function K(e){return J(e.valueDeclaration)}function J(e){return 230===e.kind&&!e.body}function z(e){return 261===e.kind||230===e.kind||ke(e)}function j(e){return!!(512&e.flags)}function V(t){if(!t||!B(t))return!1;switch(t.parent.kind){case 261:return e.isExternalModule(t.parent);case 231:return B(t.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function U(t,r){return e.isExternalModule(t)||r.isolatedModules}function q(e,t){switch(e.kind){case 261:case 232:case 256:case 230:case 211:case 212:case 213:case 150:case 149:case 151:case 152:case 225:case 184:case 185:return!0;case 204:return t&&!ke(t)}return!1}function W(e){for(var t=e.parent;t;){if(q(t,t.parent))return t;t=t.parent}}function H(e){return 0===a(e)?"(Missing)":A(e)}function G(e){switch(e.kind){case 70:return e.text;case 9:case 8:return e.text;case 142:if(Bt(e.expression))return e.expression.text}}function X(e){switch(e.kind){case 70:return 0===a(e)?I(e.text):A(e);case 141:return X(e.left)+"."+X(e.right);case 177:return X(e.expression)+"."+X(e.name)}}function Q(e,t,r,n,a){var i=f(e);return Y(i,e,t,r,n,a)}function Y(t,r,n,a,i,o){var s=te(t,r);return e.createFileDiagnostic(t,s.start,s.length,n,a,i,o)}function Z(e,t){var r=f(e),n=te(r,e);return{file:r,start:n.start,length:n.length,code:t.code,category:t.category,messageText:t.next?t:t.messageText}}function $(t,r){var n=e.createScanner(t.languageVersion,!0,t.languageVariant,t.text,void 0,r);n.scan();var a=n.getTokenPos();return e.createTextSpanFromBounds(a,n.getTextPos())}function ee(t,r){var n=e.skipTrivia(t.text,r.pos);if(r.body&&204===r.body.kind){var a=e.getLineAndCharacterOfPosition(t,r.body.pos).line,i=e.getLineAndCharacterOfPosition(t,r.body.end).line;if(a<i)return e.createTextSpan(n,b(a,t)-n+1)}return e.createTextSpanFromBounds(n,r.end)}function te(t,r){var n=r;switch(r.kind){case 261:var a=e.skipTrivia(t.text,0,!1);return a===t.text.length?e.createTextSpan(0,0):$(t,a);case 223:case 174:case 226:case 197:case 227:case 230:case 229:case 260:case 225:case 184:case 149:case 151:case 152:case 228:n=r.name;break;case 185:return ee(t,r)}if(void 0===n)return $(t,r.pos);var i=k(n)?n.pos:e.skipTrivia(t.text,n.pos);return e.createTextSpanFromBounds(i,n.end)}function re(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)}function ne(e){return e.isDeclarationFile}function ae(e){return 229===e.kind&&ie(e)}function ie(t){return!!(2&e.getCombinedNodeFlags(t))||!!(2048&e.getCombinedModifierFlags(t))}function oe(t){return!!(1&e.getCombinedNodeFlags(t))}function se(e){return 179===e.kind&&96===e.expression.kind}function ce(e){return 207===e.kind&&9===e.expression.kind}function ue(t,r){return e.getLeadingCommentRanges(r.text,t.pos)}function _e(t,r){return e.getLeadingCommentRanges(r,t.pos)}function le(t,r){var n=144===t.kind||143===t.kind||184===t.kind||185===t.kind?e.concatenate(e.getTrailingCommentRanges(r,t.pos),e.getLeadingCommentRanges(r,t.pos)):_e(t,r);return e.filter(n,function(e){return 42===r.charCodeAt(e.pos+1)&&42===r.charCodeAt(e.pos+2)&&47!==r.charCodeAt(e.pos+3)})}function de(t){if(156<=t.kind&&t.kind<=171)return!0;switch(t.kind){case 118:case 132:case 134:case 121:case 135:case 137:case 129:return!0;case 104:return 188!==t.parent.kind;case 199:return!on(t);case 70:141===t.parent.kind&&t.parent.right===t?t=t.parent:177===t.parent.kind&&t.parent.name===t&&(t=t.parent),e.Debug.assert(70===t.kind||141===t.kind||177===t.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 141:case 177:case 98:var r=t.parent;if(160===r.kind)return!1;if(156<=r.kind&&r.kind<=171)return!0;switch(r.kind){case 199:return!on(r);case 143:return t===r.constraint;case 147:case 146:case 144:case 223:return t===r.type;case 225:case 184:case 185:case 150:case 149:case 148:case 151:case 152:return t===r.type;case 153:case 154:case 155:return t===r.type;case 182:return t===r.type;case 179:case 180:return r.typeArguments&&e.indexOf(r.typeArguments,t)>=0;case 181:return!1}}return!1}function pe(e){for(;e;){if(171===e.kind)return!0;e=e.parent}return!1}function fe(e){return 190===e.kind}function me(t,r){function n(t){switch(t.kind){case 216:return r(t);case 232:case 204:case 208:case 209:case 210:case 211:case 212:case 213:case 217:case 218:case 253:case 254:case 219:case 221:case 256:return e.forEachChild(t,n)}}return n(t)}function ge(t,r){function n(t){switch(t.kind){case 195:r(t);var a=t.expression;a&&n(a);case 229:case 227:case 230:case 228:case 226:case 197:return;default:if(ke(t)){var i=t.name;if(i&&142===i.kind)return void n(i.expression)}else de(t)||e.forEachChild(t,n)}}return n(t)}function ye(t){return t&&162===t.kind?t.elementType:t&&157===t.kind?e.singleOrUndefined(t.typeArguments):void 0}function ve(e){if(e)switch(e.kind){case 174:case 260:case 144:case 257:case 147:case 146:case 258:case 223:return!0}return!1}function he(e){return e&&(151===e.kind||152===e.kind)}function be(e){return e&&(226===e.kind||197===e.kind)}function ke(e){return e&&xe(e.kind)}function xe(e){switch(e){case 150:case 184:case 225:case 185:case 149:case 148:case 151:case 152:case 153:case 154:case 155:case 158:case 159:return!0}return!1}function De(e){switch(e.kind){case 149:case 148:case 150:case 151:case 152:case 225:case 184:return!0}return!1}function Se(e,t){switch(e.kind){case 211:case 212:case 213:case 209:case 210:return!0;case 219:return t&&Se(e.statement,t)}return!1}function Ce(e){return e&&204===e.kind&&ke(e.parent)}function Ee(e){return e&&149===e.kind&&176===e.parent.kind}function Te(e){return 149===e.kind&&(176===e.parent.kind||197===e.parent.kind)}function Ne(e){return e&&1===e.kind}function Ae(e){return e&&0===e.kind}function we(e){for(;;)if(e=e.parent,!e||ke(e))return e}function Pe(e){for(;;)if(e=e.parent,!e||be(e))return e}function Fe(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 142:if(be(e.parent.parent))return e;e=e.parent;break;case 145:144===e.parent.kind&&ca(e.parent.parent)?e=e.parent.parent:ca(e.parent)&&(e=e.parent);break;case 185:if(!t)continue;case 225:case 184:case 230:case 147:case 146:case 149:case 148:case 150:case 151:case 152:case 153:case 154:case 155:case 229:case 261:return e}}}function Oe(e,t){for(;;){if(e=e.parent,!e)return e;switch(e.kind){case 142:e=e.parent;break;case 225:case 184:case 185:if(!t)continue;case 147:case 146:case 149:case 148:case 150:case 151:case 152:return e;case 145:144===e.parent.kind&&ca(e.parent.parent)?e=e.parent.parent:ca(e.parent)&&(e=e.parent)}}}function Ie(e){if(184===e.kind||185===e.kind){for(var t=e,r=e.parent;183===r.kind;)t=r,r=r.parent;if(179===r.kind&&r.expression===t)return r}}function Re(e){var t=e.kind;return(177===t||178===t)&&96===e.expression.kind}function Le(e){switch(e.kind){case 157:case 272:return e.typeName;case 199:return sn(e.expression)?e.expression:void 0;case 70:case 141:return e}}function Me(e){switch(e.kind){case 179:case 180:case 181:case 145:return!0;default:return!1}}function Be(e){return 181===e.kind?e.tag:e.expression}function Ke(e){switch(e.kind){case 226:return!0;case 147:return 226===e.parent.kind;case 151:case 152:case 149:return void 0!==e.body&&226===e.parent.kind;case 144:return void 0!==e.parent.body&&(150===e.parent.kind||149===e.parent.kind||152===e.parent.kind)&&226===e.parent.parent.kind}return!1}function Je(e){return void 0!==e.decorators&&Ke(e)}function ze(e){return Je(e)||je(e)}function je(t){switch(t.kind){case 226:return e.forEach(t.members,ze);case 149:case 152:return e.forEach(t.parameters,Je)}}function Ve(e){var t=e.parent;return(248===t.kind||247===t.kind||249===t.kind)&&t.tagName===e}function Ue(e){switch(e.kind){case 98:case 96:case 94:case 100:case 85:case 11:case 175:case 176:case 177:case 178:case 179:case 180:case 181:case 200:case 182:case 201:case 183:case 184:case 197:case 185:case 188:case 186:case 187:case 190:case 191:case 192:case 193:case 196:case 194:case 12:case 198:case 246:case 247:case 195:case 189:return!0;case 141:for(;141===e.parent.kind;)e=e.parent;return 160===e.parent.kind||Ve(e);case 70:if(160===e.parent.kind||Ve(e))return!0;case 8:case 9:case 98:var t=e.parent;switch(t.kind){case 223:case 144:case 147:case 146:case 260:case 257:case 174:return t.initializer===e;case 207:case 208:case 209:case 210:case 216:case 217:case 218:case 253:case 220:case 218:return t.expression===e;case 211:var r=t;return r.initializer===e&&224!==r.initializer.kind||r.condition===e||r.incrementor===e;case 212:case 213:var n=t;return n.initializer===e&&224!==n.initializer.kind||n.expression===e;case 182:case 200:return e===t.expression;case 202:return e===t.expression;case 142:return e===t.expression;case 145:case 252:case 251:case 259:return!0;case 199:return t.expression===e&&on(t);default:if(Ue(t))return!0}}return!1}function qe(t,r){var n=e.getModuleInstanceState(t);return 1===n||r&&2===n}function We(e){return 234===e.kind&&245===e.moduleReference.kind}function He(t){return e.Debug.assert(We(t)),t.moduleReference.expression}function Ge(e){return 234===e.kind&&245!==e.moduleReference.kind}function Xe(e){return Qe(e)}function Qe(e){return e&&!!(65536&e.flags)}function Ye(e,t){var r=179===e.kind&&70===e.expression.kind&&"require"===e.expression.text&&1===e.arguments.length;return r&&(!t||9===e.arguments[0].kind)}function Ze(e){return 39===e||34===e}function $e(e){if(e.valueDeclaration&&223===e.valueDeclaration.kind){var t=e.valueDeclaration;return t.initializer&&184===t.initializer.kind}return!1}function et(e){if(!Qe(e))return 0;if(192!==e.kind)return 0;var t=e;if(57!==t.operatorToken.kind||177!==t.left.kind)return 0;var r=t.left;if(70===r.expression.kind){var n=r.expression;if("exports"===n.text)return 1;if("module"===n.text&&"exports"===r.name.text)return 2}else{if(98===r.expression.kind)return 4;if(177===r.expression.kind){var a=r.expression;if(70===a.expression.kind){var i=a.expression;if("module"===i.text&&"exports"===a.name.text)return 1;if("prototype"===a.name.text)return 3}}}return 0}function tt(e){if(235===e.kind)return e.moduleSpecifier;if(234===e.kind){var t=e.moduleReference;if(245===t.kind)return t.expression}return 241===e.kind?e.moduleSpecifier:230===e.kind&&9===e.name.kind?e.name:void 0}function rt(e){if(234===e.kind)return e;var t=e.importClause;return t&&t.namedBindings&&237===t.namedBindings.kind?t.namedBindings:void 0}function nt(e){return 235===e.kind&&e.importClause&&!!e.importClause.name}function at(e){if(e)switch(e.kind){case 144:case 149:case 148:case 258:case 257:case 147:case 146:return void 0!==e.questionToken}return!1}function it(e){return 274===e.kind&&e.parameters.length>0&&276===e.parameters[0].type.kind}function ot(t){return e.map(ut(t),function(e){return e.comment})}function st(t,r){var n=ut(t);if(n){for(var a=[],i=0,o=n;i<o.length;i++){var s=o[i];281===s.kind?s.kind===r&&a.push(s):a.push.apply(a,e.filter(s.tags,function(e){return e.kind===r}))}return a}}function ct(t,r){return t&&e.firstOrUndefined(st(t,r))}function ut(t){function r(t){var a=t.parent,i=ve(a)&&a.initializer===t&&205===a.parent.parent.kind,o=ve(t)&&205===a.parent.kind,s=i?a.parent.parent:o?a.parent:void 0;
s&&r(s);var c=a&&a.parent&&192===a.kind&&57===a.operatorToken.kind&&207===a.parent.kind;c&&r(a.parent);var u=230===t.kind&&a&&230===a.kind,_=a&&257===a.kind;(u||_)&&r(a),144===t.kind&&(n=e.concatenate(n,_t(t))),ve(t)&&t.initializer&&(n=e.concatenate(n,t.initializer.jsDoc)),n=e.concatenate(n,t.jsDoc)}var n=t.jsDocCache;return n||(r(t),t.jsDocCache=n),n}function _t(t){if(ia(t)){var r=t.parent,n=st(r,281);if(!t.name){var a=r.parameters.indexOf(t),i=e.filter(n,function(e){return 281===e.kind});return i&&0<=a&&a<i.length?[i[a]]:void 0}if(70===t.name.kind){var o=t.name.text;return e.filter(n,function(e){return 281===e.kind&&e.parameterName.text===o})}}}function lt(t){var r=ct(t,283);if(!r&&144===t.kind){var n=_t(t);n&&(r=e.find(n,function(e){return!!e.typeExpression}))}return r&&r.typeExpression&&r.typeExpression.type}function dt(e){return ct(e,280)}function pt(e){return ct(e,282)}function ft(e){return ct(e,284)}function mt(t){return yt(e.lastOrUndefined(t.parameters))}function gt(t){return vt(e.lastOrUndefined(t.parameters))}function yt(t){return!!(t&&65536&t.flags&&(t.type&&275===t.type.kind||e.forEach(_t(t),function(e){return e.typeExpression&&275===e.typeExpression.type.kind})))||vt(t)}function vt(e){return e&&void 0!==e.dotDotDotToken}function ht(e){for(var t=e.parent;;){switch(t.kind){case 192:var r=t.operatorToken.kind;return $r(r)&&t.left===e?57===r?1:2:0;case 190:case 191:var n=t.operator;return 42===n||43===n?2:0;case 212:case 213:return t.initializer===e?1:0;case 183:case 175:case 196:e=t;break;case 258:if(t.name!==e)return 0;case 257:e=t.parent;break;default:return 0}t=e.parent}}function bt(e){return 0!==ht(e)}function kt(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function xt(e){for(;e;){if(Xr(e,2)||261===e.kind&&e.isDeclarationFile)return!0;e=e.parent}return!1}function Dt(e){if(70!==e.kind&&9!==e.kind&&8!==e.kind)return!1;var t=e.parent;return!(239!==t.kind&&243!==t.kind||!t.propertyName)||!!ci(t)&&t.name===e}function St(e){return(9===e.kind||8===e.kind)&&142===e.parent.kind&&ci(e.parent.parent)}function Ct(e){var t=e.parent;switch(t.kind){case 147:case 146:case 149:case 148:case 151:case 152:case 260:case 257:case 177:return t.name===e;case 141:if(t.right===e){for(;141===t.kind;)t=t.parent;return 160===t.kind}return!1;case 174:case 239:return t.propertyName===e;case 243:return!0}return!1}function Et(e){return 234===e.kind||233===e.kind||236===e.kind&&!!e.name||237===e.kind||239===e.kind||243===e.kind||240===e.kind&&Tt(e)}function Tt(e){return sn(e.expression)}function Nt(e){var t=Pt(e.heritageClauses,84);return t&&t.types.length>0?t.types[0]:void 0}function At(e){var t=Pt(e.heritageClauses,107);return t?t.types:void 0}function wt(e){var t=Pt(e.heritageClauses,84);return t?t.types:void 0}function Pt(e,t){if(e)for(var r=0,n=e;r<n.length;r++){var a=n[r];if(a.token===t)return a}}function Ft(t,r,n){if(!t.getCompilerOptions().noResolve){var a=e.isRootedDiskPath(n.fileName)?n.fileName:e.combinePaths(e.getDirectoryPath(r.fileName),n.fileName);return t.getSourceFile(a)}}function Ot(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function It(t,r){var n=/^\/\/\/\s*<reference\s+/gim,a=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)('|")(.+?)\2\s*\/>/gim;if(n.test(t)){if(a.test(t))return{isNoDefaultLib:!0};var i=e.fullTripleSlashReferencePathRegEx.exec(t),o=!i&&e.fullTripleSlashReferenceTypeReferenceDirectiveRegEx.exec(t);if(i||o){var s=r.pos,c=r.end;return{fileReference:{pos:s,end:c,fileName:(i||o)[3]},isNoDefaultLib:!1,isTypeReferenceDirective:!!o}}return{diagnosticMessage:e.Diagnostics.Invalid_reference_directive_syntax,isNoDefaultLib:!1}}}function Rt(e){return 71<=e&&e<=140}function Lt(e){return 2<=e&&e<=7}function Mt(e){return ke(e)&&Xr(e,256)&&!he(e)}function Bt(e){var t=e.kind;return 9===t||8===t}function Kt(e){return e.name&&Jt(e.name)}function Jt(e){return 142===e.kind&&!Bt(e.expression)&&!zt(e.expression)}function zt(e){return Sa(e)&&Ut(e.expression)}function jt(e){if(70===e.kind||9===e.kind||8===e.kind||144===e.kind)return e.text;if(142===e.kind){var t=e.expression;if(zt(t)){var r=t.name.text;return Vt(r)}if(9===t.kind||8===t.kind)return t.text}}function Vt(e){return"__@"+e}function Ut(e){return 70===e.kind&&"Symbol"===e.text}function qt(e){return"push"===e.text||"unshift"===e.text}function Wt(e){switch(e){case 116:case 119:case 75:case 123:case 78:case 83:case 113:case 111:case 112:case 130:case 114:return!0}return!1}function Ht(e){var t=Gt(e);return 144===t.kind}function Gt(e){for(;174===e.kind;)e=e.parent.parent;return e}function Xt(e){var t=e.kind;return 150===t||184===t||225===t||185===t||149===t||151===t||152===t||230===t||261===t}function Qt(t){return e.positionIsSynthesized(t.pos)||e.positionIsSynthesized(t.end)}function Yt(e,t){if(e)for(;void 0!==e.original;)e=e.original;return!t||t(e)?e:void 0}function Zt(e){return 0===(8&e.flags)}function $t(e,t){return Zt(e)?e:(e=Yt(e),!Zt(e)||t&&!t(e)?void 0:e)}function er(e){for(var t=[],r=0,n=e;r<n.length;r++){var a=n[r],i=$t(a,Ti);i&&t.push(i)}return t}function tr(t){return t=Yt(t),t?e.getNodeId(t):0}function rr(e){var t=ir(e),r=180===e.kind&&void 0!==e.arguments;return nr(e.kind,t,r)}function nr(e,t,r){switch(e){case 180:return r?0:1;case 190:case 187:case 188:case 186:case 189:case 193:case 195:return 1;case 192:switch(t){case 39:case 57:case 58:case 59:case 61:case 60:case 62:case 63:case 64:case 65:case 66:case 67:case 69:case 68:return 1}}return 0}function ar(e){var t=ir(e),r=180===e.kind&&void 0!==e.arguments;return or(e.kind,t,r)}function ir(e){return 192===e.kind?e.operatorToken.kind:190===e.kind||191===e.kind?e.operator:e.kind}function or(e,t,r){switch(e){case 98:case 96:case 70:case 94:case 100:case 85:case 8:case 9:case 175:case 176:case 184:case 185:case 197:case 246:case 247:case 11:case 12:case 194:case 183:case 198:return 19;case 181:case 177:case 178:return 18;case 180:return r?18:17;case 179:return 17;case 191:return 16;case 190:case 187:case 188:case 186:case 189:return 15;case 192:switch(t){case 50:case 51:return 15;case 39:case 38:case 40:case 41:return 14;case 36:case 37:return 13;case 44:case 45:case 46:return 12;case 26:case 29:case 28:case 30:case 91:case 92:return 11;case 31:case 33:case 32:case 34:return 10;case 47:return 9;case 49:return 8;case 48:return 7;case 52:return 6;case 53:return 5;case 57:case 58:case 59:case 61:case 60:case 62:case 63:case 64:case 65:case 66:case 67:case 69:case 68:return 3;case 25:return 0;default:return-1}case 193:return 4;case 195:return 2;case 196:return 1;default:return-1}}function sr(){function t(){return _}function r(t){if(e.hasProperty(c,t.fileName))for(var r=0,n=c[t.fileName];r<n.length;r++){var a=n[r];a.file=t}}function n(e){var t;e.file?(t=c[e.file.fileName],t||(t=[],c[e.file.fileName]=t)):t=s,t.push(e),u=!0,_++}function a(){return o(),s}function i(t){function r(e){n.push(e)}if(o(),t)return c[t]||[];var n=[];e.forEach(s,r);for(var a in c)e.forEach(c[a],r);return e.sortAndDeduplicateDiagnostics(n)}function o(){if(u){u=!1,s=e.sortAndDeduplicateDiagnostics(s);for(var t in c)c[t]=e.sortAndDeduplicateDiagnostics(c[t])}}var s=[],c=e.createMap(),u=!1,_=0;return{add:n,getGlobalDiagnostics:a,getDiagnostics:i,getModificationCount:t,reattachFileDiagnostics:r}}function cr(e){return e.replace(Fi,ur)}function ur(e){return Oi[e]||lr(e.charCodeAt(0))}function _r(e){var t=e.substr(0,1);return t.toLowerCase()===t}function lr(e){var t=e.toString(16).toUpperCase(),r=("0000"+t).slice(-4);return"\\u"+r}function dr(e){return Ii.test(e)?e.replace(Ii,function(e){return lr(e.charCodeAt(0))}):e}function pr(e){return void 0===Ri[e]&&(Ri[e]=pr(e-1)+Ri[1]),Ri[e]}function fr(){return Ri[1].length}function mr(t){function r(e){e&&e.length&&(_&&(c+=pr(u),_=!1),c+=e)}function n(){c="",u=0,_=!0,l=0,d=0}function a(e){void 0!==e&&(_&&(_=!1),c+=e)}function i(t){if(t&&t.length){r(t);var n=e.computeLineStarts(t);n.length>1&&(l=l+n.length-1,d=c.length-t.length+e.lastOrUndefined(n))}}function o(){_||(c+=t,l++,d=c.length,_=!0)}function s(e,t){r(N(e,t))}var c,u,_,l,d;return n(),{write:r,rawWrite:a,writeTextOfNode:s,writeLiteral:i,writeLine:o,increaseIndent:function(){u++},decreaseIndent:function(){u--},getIndent:function(){return u},getTextPos:function(){return c.length},getLine:function(){return l+1},getColumn:function(){return _?u*fr()+1:c.length-d+1},getText:function(){return c},isAtStartOfLine:function(){return _},reset:n}}function gr(e,t){return t.moduleName||vr(e,t.fileName)}function yr(e,t,r){var n=t.getExternalModuleFileFromDeclaration(r);if(n&&!ne(n))return gr(e,n)}function vr(t,r){var n=function(e){return t.getCanonicalFileName(e)},a=e.toPath(t.getCommonSourceDirectory(),t.getCurrentDirectory(),n),i=e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()),o=e.getRelativePathToDirectoryOrUrl(a,i,a,n,!1);return e.removeFileExtension(o)}function hr(t,r,n){var a,i=r.getCompilerOptions();return a=i.outDir?e.removeFileExtension(Ar(t,r,i.outDir)):e.removeFileExtension(t.fileName),a+n}function br(t,r){var n=r.getCompilerOptions(),a=n.declarationDir||n.outDir,i=a?Ar(t,r,a):t.fileName;return e.removeFileExtension(i)+".d.ts"}function kr(t,r){function n(){return a.noEmitForJsFiles?e.filter(t.getSourceFiles(),function(e){return!Xe(e)}):t.getSourceFiles()}var a=t.getCompilerOptions();if(a.outFile||a.out){var i=e.getEmitModuleKind(a),o=i===e.ModuleKind.AMD||i===e.ModuleKind.System,s=n();return e.filter(s,o?Dr:Cr)}var s=void 0===r?n():[r];return xr(s,function(e){return t.isSourceFileFromExternalLibrary(e)})}function xr(t,r){return e.filter(t,function(e){return Sr(e,r)})}function Dr(e){return!ne(e)}function Sr(e,t){return Dr(e)&&!t(e)}function Cr(t){return Dr(t)&&!e.isExternalModule(t)}function Er(t,r,n,a){function i(t,r){var i=".js";1===s.jsx&&(Xe(r)?e.fileExtensionIs(r.fileName,".jsx")&&(i=".jsx"):1===r.languageVariant&&(i=".jsx"));var o=hr(r,t,i),c=Tr(o,s),u=Xe(r)||!s.declaration&&!a?void 0:br(r,t);n(o,c,u,[r],!1)}function o(t){if(t.length){var r=s.outFile||s.out,a=Tr(r,s),i=s.declaration?e.removeFileExtension(r)+".d.ts":void 0;n(r,a,i,t,!0)}}var s=t.getCompilerOptions();if(s.outFile||s.out)o(r);else for(var c=0,u=r;c<u.length;c++){var _=u[c];ne(_)||t.isSourceFileFromExternalLibrary(_)||i(t,_)}}function Tr(e,t){return t.sourceMap?e+".map":void 0}function Nr(t,r,n,a){function i(t,n){var i=".js";1===s.jsx&&(Xe(n)?e.fileExtensionIs(n.fileName,".jsx")&&(i=".jsx"):1===n.languageVariant&&(i=".jsx"));var o=hr(n,t,i),c=Xe(n)||!a&&!s.declaration?void 0:br(n,t),u={jsFilePath:o,sourceMapFilePath:Tr(o,s),declarationFilePath:c};r(u,[n],!1,a)}function o(t){var n=e.filter(kr(t),function(r){return!(ne(r)||t.isSourceFileFromExternalLibrary(r)||e.isExternalModule(r)&&!e.getEmitModuleKind(s))});if(n.length){var i=s.outFile||s.out,o={jsFilePath:i,sourceMapFilePath:Tr(i,s),declarationFilePath:s.declaration?e.removeFileExtension(i)+".d.ts":void 0};r(o,n,!0,a)}}var s=t.getCompilerOptions();if(s.outFile||s.out)o(t);else for(var c=void 0===n?kr(t):[n],u=0,_=c;u<_.length;u++){var l=_[u];Sr(l,function(e){return t.isSourceFileFromExternalLibrary(e)})&&i(t,l)}}function Ar(t,r,n){var a=e.getNormalizedAbsolutePath(t.fileName,r.getCurrentDirectory()),i=r.getCommonSourceDirectory(),o=0===r.getCanonicalFileName(a).indexOf(r.getCanonicalFileName(i));return a=o?a.substring(i.length):a,e.combinePaths(n,a)}function wr(t,r,n,a,i,o){t.writeFile(n,a,i,function(t){r.add(e.createCompilerDiagnostic(e.Diagnostics.Could_not_write_file_0_Colon_1,n,t))},o)}function Pr(t,r){return e.getLineAndCharacterOfPosition(t,r).line}function Fr(t,r){return e.computeLineAndCharacterOfPosition(t,r).line}function Or(t){return e.forEach(t.members,function(e){if(150===e.kind&&x(e.body))return e})}function Ir(e){if(e&&e.parameters.length>0){var t=2===e.parameters.length&&Lr(e.parameters[0]);return e.parameters[t?1:0].type}}function Rr(e){if(e.parameters.length){var t=e.parameters[0];if(Lr(t))return t}}function Lr(e){return Mr(e.name)}function Mr(e){return e&&70===e.kind&&Br(e)}function Br(e){return 98===e.originalKeywordKind}function Kr(t,r){var n,a,i,o;return Kt(r)?(n=r,151===r.kind?i=r:152===r.kind?o=r:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,function(e){if((151===e.kind||152===e.kind)&&Xr(e,32)===Xr(r,32)){var t=jt(e.name),s=jt(r.name);t===s&&(n?a||(a=e):n=e,151!==e.kind||i||(i=e),152!==e.kind||o||(o=e))}}),{firstAccessor:n,secondAccessor:a,getAccessor:i,setAccessor:o}}function Jr(e,t,r,n){zr(e,t,r.pos,n)}function zr(e,t,r,n){n&&n.length&&r!==n[0].pos&&Fr(e,r)!==Fr(e,n[0].pos)&&t.writeLine()}function jr(e,t,r,n){r!==n&&Fr(e,r)!==Fr(e,n)&&t.writeLine()}function Vr(e,t,r,n,a,i,o,s){if(n&&n.length>0){a&&r.write(" ");for(var c=!1,u=0,_=n;u<_.length;u++){var l=_[u];c&&(r.write(" "),c=!1),s(e,t,r,l.pos,l.end,o),l.hasTrailingNewLine?r.writeLine():c=!0}c&&i&&r.write(" ")}}function Ur(t,r,n,a,i,o,s){function c(e){return 42===t.charCodeAt(e.pos+1)&&33===t.charCodeAt(e.pos+2)}var u,_;if(s?0===i.pos&&(u=e.filter(e.getLeadingCommentRanges(t,i.pos),c)):u=e.getLeadingCommentRanges(t,i.pos),u){for(var l=[],d=void 0,p=0,f=u;p<f.length;p++){var m=f[p];if(d){var g=Fr(r,d.end),y=Fr(r,m.pos);if(y>=g+2)break}l.push(m),d=m}if(l.length){var g=Fr(r,e.lastOrUndefined(l).end),v=Fr(r,e.skipTrivia(t,i.pos));v>=g+2&&(Jr(r,n,i,u),Vr(t,r,n,l,!1,!0,o,a),_={nodePos:i.pos,detachedCommentEndPos:e.lastOrUndefined(l).end})}}return _}function qr(t,r,n,a,i,o){if(42===t.charCodeAt(a+1))for(var s=e.computeLineAndCharacterOfPosition(r,a),c=r.length,u=void 0,_=a,l=s.line;_<i;l++){var d=l+1===c?t.length+1:r[l+1];if(_!==a){void 0===u&&(u=Hr(t,r[s.line],a));var p=n.getIndent()*fr(),f=p-u+Hr(t,_,d);if(f>0){var m=f%fr(),g=pr((f-m)/fr());for(n.rawWrite(g);m;)n.rawWrite(" "),m--}else n.rawWrite("")}Wr(t,i,n,o,_,d),_=d}else n.write(t.substring(a,i))}function Wr(e,t,r,n,a,i){var o=Math.min(t,i-1),s=e.substring(a,o).replace(/^\s+|\s+$/g,"");s?(r.write(s),o!==t&&r.writeLine()):r.writeLiteral(n)}function Hr(t,r,n){for(var a=0;r<n&&e.isWhiteSpaceSingleLine(t.charCodeAt(r));r++)9===t.charCodeAt(r)?a+=fr()-a%fr():a++;return a}function Gr(e){return 0!==Qr(e)}function Xr(e,t){return 0!==(Qr(e)&t)}function Qr(e){if(536870912&e.modifierFlagsCache)return e.modifierFlagsCache&-536870913;var t=0;if(e.modifiers)for(var r=0,n=e.modifiers;r<n.length;r++){var a=n[r];t|=Yr(a.kind)}return(4&e.flags||70===e.kind&&e.isInJSDocNamespace)&&(t|=1),e.modifierFlagsCache=536870912|t,t}function Yr(e){switch(e){case 114:return 32;case 113:return 4;case 112:return 16;case 111:return 8;case 116:return 128;case 83:return 1;case 123:return 2;case 75:return 2048;case 78:return 512;case 119:return 256;case 130:return 64}return 0}function Zr(e){return 53===e||52===e||50===e}function $r(e){return e>=57&&e<=69}function en(e){if(199===e.kind&&84===e.parent.token&&be(e.parent.parent))return e.parent.parent}function tn(e,t){return Ea(e)&&(t?57===e.operatorToken.kind:$r(e.operatorToken.kind))&&Oa(e.left)}function rn(e){if(tn(e,!0)){var t=e.left.kind;return 176===t||175===t}return!1}function nn(e){return an(e.expression)}function an(e){return 70===e.kind||!!Sa(e)&&an(e.expression)}function on(e){return void 0!==en(e)}function sn(e){return 70===e.kind||177===e.kind&&sn(e.expression)}function cn(e){return 141===e.parent.kind&&e.parent.right===e||177===e.parent.kind&&e.parent.name===e}function un(e){var t=e.kind;return 176===t?0===e.properties.length:175===t&&0===e.elements.length}function _n(e){return e&&e.valueDeclaration&&Xr(e.valueDeclaration,512)?e.valueDeclaration.localSymbol:void 0}function ln(t){return e.find(e.supportedTypescriptExtensionsForExtractExtension,function(r){return e.fileExtensionIs(t,r)})}function dn(t){for(var r=[],n=t.length,a=0;a<n;a++){var i=t.charCodeAt(a);i<128?r.push(i):i<2048?(r.push(i>>6|192),r.push(63&i|128)):i<65536?(r.push(i>>12|224),r.push(i>>6&63|128),r.push(63&i|128)):i<131072?(r.push(i>>18|240),r.push(i>>12&63|128),r.push(i>>6&63|128),r.push(63&i|128)):e.Debug.assert(!1,"Unexpected code point")}return r}function pn(e){for(var t,r,n,a,i="",o=dn(e),s=0,c=o.length;s<c;)t=o[s]>>2,r=(3&o[s])<<4|o[s+1]>>4,n=(15&o[s+1])<<2|o[s+2]>>6,a=63&o[s+2],s+1>=c?n=a=64:s+2>=c&&(a=64),i+=Li.charAt(t)+Li.charAt(r)+Li.charAt(n)+Li.charAt(a),s+=3;return i}function fn(t){return 0===t.newLine?Mi:1===t.newLine?Bi:e.sys?e.sys.newLine:Mi}function mn(e){return gn(e,0)}function gn(e,t){if(t<=5){var r=e.kind;if(9===r||8===r||11===r||12===r||70===r||98===r||96===r||100===r||85===r||94===r)return!0;if(177===r)return gn(e.expression,t+1);if(178===r)return gn(e.expression,t+1)&&gn(e.argumentExpression,t+1);if(190===r||191===r)return gn(e.operand,t+1);if(192===r)return 39!==e.operatorToken.kind&&gn(e.left,t+1)&&gn(e.right,t+1);if(193===r)return gn(e.condition,t+1)&&gn(e.whenTrue,t+1)&&gn(e.whenFalse,t+1);if(188===r||187===r||186===r)return gn(e.expression,t+1);if(175===r)return 0===e.elements.length;if(176===r)return 0===e.properties.length;if(179===r){if(!gn(e.expression,t+1))return!1;for(var n=0,a=e.arguments;n<a.length;n++){var i=a[n];if(!gn(i,t+1))return!1}return!0}}return!1}function yn(t){var r=e.SyntaxKind;if(!r)return t.toString();if(Ki[t])return Ki[t];for(var n in r)if(r[n]===t)return Ki[t]=t.toString()+" ("+n+")"}function vn(t,r){return e.positionIsSynthesized(t)?-1:t+r}function hn(e,t){return{pos:e,end:t}}function bn(e,t){return hn(e.pos,t)}function kn(e,t){return hn(t,e.end)}function xn(e){return e.decorators&&e.decorators.length>0?kn(e,e.decorators.end):e}function Dn(e){return e.modifiers&&e.modifiers.length>0?kn(e,e.modifiers.end):xn(e)}function Sn(e){return e.pos===e.end}function Cn(e){return Sn(e)?e:bn(e,e.pos)}function En(e){return Sn(e)?e:kn(e,e.end)}function Tn(t,r){return hn(t,t+e.tokenToString(r).length)}function Nn(e,t){return Pn(e,e,t)}function An(e,t,r){return On(In(e,r),In(t,r),r)}function wn(e,t,r){return On(e.end,t.end,r)}function Pn(e,t,r){return On(In(e,r),t.end,r)}function Fn(e,t,r){return On(e.end,In(t,r),r)}function On(e,t,r){return e===t||Pr(r,e)===Pr(r,t)}function In(t,r){return e.positionIsSynthesized(t.pos)?-1:e.skipTrivia(r.text,t.pos)}function Rn(e){var t=$t(e);if(t)switch(t.parent.kind){case 229:case 230:return t===t.parent.name}return!1}function Ln(t){return e.filter(t.declarations,Mn)}function Mn(e){return void 0!==e.initializer}function Bn(e){if(e.symbol)for(var t=0,r=e.symbol.declarations;t<r.length;t++){var n=r[t];if(226===n.kind&&n!==e)return!0}return!1}function Kn(e,r){return e.symbol&&t(e.symbol,r)===e}function Jn(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")}function zn(e){return 12===e.kind}function jn(e){return 8<=e&&e<=12}function Vn(e){return 9===e||12===e}function Un(e){return jn(e.kind)}function qn(e){return 12<=e&&e<=15}function Wn(e){return 13===e.kind}function Hn(e){var t=e.kind;return 14===t||15===t}function Gn(e){return 70===e.kind}function Xn(e){return 188===e.kind}function Qn(e){return Gn(e)&&e.autoGenerateKind>0}function Yn(e){return Wt(e.kind)}function Zn(e){return 141===e.kind}function $n(e){return 142===e.kind}function ea(e){var t=e.kind;return 141===t||70===t}function ta(e){var t=e.kind;return 70===t||9===t||8===t||142===t}function ra(e){var t=e.kind;return 70===t||9===t}function na(e){var t=e.kind;return 70===t||172===t||173===t}function aa(e){return 143===e.kind}function ia(e){return 144===e.kind}function oa(e){return 145===e.kind}function sa(e){return 149===e.kind}function ca(e){var t=e.kind;return 150===t||147===t||149===t||151===t||152===t||155===t||203===t}function ua(e){var t=e.kind;return 257===t||258===t||259===t||149===t||151===t||152===t||244===t}function _a(e){return e>=156&&e<=171||118===e||132===e||121===e||134===e||135===e||104===e||129===e||199===e}function la(e){return _a(e.kind)}function da(e){return 173===e.kind}function pa(e){return 172===e.kind}function fa(e){if(e){var t=e.kind;return 173===t||172===t}return!1}function ma(e){var t=e.kind;return 175===t||176===t}function ga(e){return 174===e.kind}function ya(e){var t=e.kind;return 174===t||198===t}function va(e){switch(e.kind){case 223:case 144:case 174:return!0}return!1}function ha(e){return ba(e)||ka(e)}function ba(e){switch(e.kind){case 172:case 176:return!0}return!1}function ka(e){switch(e.kind){case 173:case 175:return!0}return!1}function xa(e){return 175===e.kind}function Da(e){return 176===e.kind}function Sa(e){return 177===e.kind}function Ca(e){return 178===e.kind}function Ea(e){return 192===e.kind}function Ta(e){return 193===e.kind}function Na(e){return 179===e.kind}function Aa(e){var t=e.kind;return 194===t||12===t}function wa(e){return 196===e.kind}function Pa(e){return 199===e.kind}function Fa(e){return 177===e||178===e||180===e||179===e||246===e||247===e||181===e||175===e||183===e||176===e||197===e||184===e||70===e||11===e||8===e||9===e||12===e||194===e||85===e||94===e||98===e||100===e||96===e||201===e}function Oa(t){return Fa(e.skipPartiallyEmittedExpressions(t).kind)}function Ia(e){return 190===e||191===e||186===e||187===e||188===e||189===e||182===e||Fa(e)}function Ra(t){return Ia(e.skipPartiallyEmittedExpressions(t).kind)}function La(e){return 193===e||195===e||185===e||192===e||196===e||200===e||198===e||Ia(e)}function Ma(t){return La(e.skipPartiallyEmittedExpressions(t).kind)}function Ba(e){var t=e.kind;return 182===t||200===t}function Ka(e){return 294===e.kind}function Ja(e){return 293===e.kind}function za(e){return Ja(e)||Ka(e)}function ja(e){return 198===e.kind}function Va(e){return 202===e.kind}function Ua(e){return 204===e.kind}function qa(e){return Ua(e)||Ma(e)}function Wa(e){return Ua(e)}function Ha(e){return Xa(e)||Ma(e)}function Ga(e){return 223===e.kind}function Xa(e){return 224===e.kind}function Qa(e){return 232===e.kind}function Ya(e){var t=e.kind;return 231===t||230===t}function Za(e){return 234===e.kind}function $a(e){return 236===e.kind}function ei(e){var t=e.kind;return 238===t||237===t}function ti(e){return 239===e.kind}function ri(e){return 242===e.kind}function ni(e){return 243===e.kind}function ai(e){return 230===e.kind||229===e.kind}function ii(e){return 185===e||174===e||226===e||197===e||150===e||229===e||260===e||243===e||225===e||184===e||151===e||236===e||234===e||239===e||227===e||149===e||148===e||230===e||233===e||237===e||144===e||257===e||147===e||146===e||152===e||258===e||228===e||143===e||223===e||285===e}function oi(e){return 225===e||244===e||226===e||227===e||228===e||229===e||230===e||235===e||234===e||241===e||240===e||233===e}function si(e){return 215===e||214===e||222===e||209===e||207===e||206===e||212===e||213===e||211===e||208===e||219===e||216===e||218===e||220===e||221===e||205===e||210===e||217===e||293===e||296===e||295===e}function ci(e){return ii(e.kind)}function ui(e){return oi(e.kind)}function _i(e){return si(e.kind)}function li(e){var t=e.kind;return si(t)||oi(t)||204===t}function di(e){var t=e.kind;return 245===t||141===t||70===t}function pi(e){return 248===e.kind}function fi(e){return 249===e.kind}function mi(e){var t=e.kind;return 98===t||70===t||177===t}function gi(e){var t=e.kind;return 246===t||252===t||247===t||10===t}function yi(e){var t=e.kind;return 250===t||251===t}function vi(e){return 251===e.kind}function hi(e){return 250===e.kind}function bi(e){var t=e.kind;return 9===t||252===t}function ki(e){var t=e.kind;return 253===t||254===t}function xi(e){return 255===e.kind}function Di(e){return 256===e.kind}function Si(e){return 257===e.kind}function Ci(e){return 258===e.kind}function Ei(e){return 260===e.kind}function Ti(e){return 261===e.kind}function Ni(e){return e.watch&&e.hasOwnProperty("watch")}e.externalHelpersModuleNameText="tslib",e.getDeclarationOfKind=t;var Ai=[];e.getSingleLineStringWriter=r,e.releaseStringWriter=n,e.getFullWidth=a,e.hasResolvedModule=i,e.getResolvedModule=o,e.setResolvedModule=s,e.setResolvedTypeReferenceDirective=c,e.moduleResolutionIsEqualTo=u,e.typeDirectiveIsEqualTo=_,e.hasChangesInResolutions=l,e.containsParseError=d,e.getSourceFileOfNode=f,e.isStatementWithLocals=m,e.getStartPositionOfLine=g,e.nodePosToString=y,e.getStartPosOfNode=v,e.isDefined=h,e.getEndLinePosition=b,e.nodeIsMissing=k,e.nodeIsPresent=x,e.getTokenPosOfNode=D,e.isJSDocNode=S,e.isJSDocTag=C,e.getNonDecoratorTokenPosOfNode=E,e.getSourceTextOfNodeFromSourceFile=T,e.getTextOfNodeFromSourceText=N,e.getTextOfNode=A,e.getLiteralText=w,e.isBinaryOrOctalIntegerLiteral=P,e.escapeIdentifier=O,e.unescapeIdentifier=I,e.makeIdentifierFromModuleName=R,e.isBlockOrCatchScoped=L,e.isCatchClauseVariableDeclarationOrBindingElement=M,e.isAmbientModule=B,e.isShorthandAmbientModuleSymbol=K,e.isBlockScopedContainerTopLevel=z,e.isGlobalScopeAugmentation=j,e.isExternalModuleAugmentation=V,e.isEffectiveExternalModule=U,e.isBlockScope=q,e.getEnclosingBlockScopeContainer=W,e.declarationNameToString=H,e.getTextOfPropertyName=G,e.entityNameToString=X,e.createDiagnosticForNode=Q,e.createDiagnosticForNodeInSourceFile=Y,e.createDiagnosticForNodeFromMessageChain=Z,e.getSpanOfTokenAtPosition=$,e.getErrorSpanForNode=te,e.isExternalOrCommonJsModule=re,e.isDeclarationFile=ne,e.isConstEnumDeclaration=ae,e.isConst=ie,e.isLet=oe,e.isSuperCall=se,e.isPrologueDirective=ce,e.getLeadingCommentRangesOfNode=ue,e.getLeadingCommentRangesOfNodeFromText=_e,e.getJSDocCommentRanges=le,e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*<reference\s+path\s*=\s*)('|")(.+?)\2.*?\/>/,e.fullTripleSlashReferenceTypeReferenceDirectiveRegEx=/^(\/\/\/\s*<reference\s+types\s*=\s*)('|")(.+?)\2.*?\/>/,e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)('|")(.+?)\2.*?\/>/,e.isPartOfTypeNode=de,e.isChildOfLiteralType=pe,e.isPrefixUnaryExpression=fe,e.forEachReturnStatement=me,e.forEachYieldExpression=ge,e.getRestParameterElementType=ye,e.isVariableLike=ve,e.isAccessor=he,e.isClassLike=be,e.isFunctionLike=ke,e.isFunctionLikeKind=xe,e.introducesArgumentsExoticObject=De,e.isIterationStatement=Se,e.isFunctionBlock=Ce,e.isObjectLiteralMethod=Ee,e.isObjectLiteralOrClassExpressionMethod=Te,e.isIdentifierTypePredicate=Ne,e.isThisTypePredicate=Ae,e.getContainingFunction=we,e.getContainingClass=Pe,e.getThisContainer=Fe,e.getSuperContainer=Oe,e.getImmediatelyInvokedFunctionExpression=Ie,e.isSuperProperty=Re,e.getEntityNameFromTypeNode=Le,e.isCallLikeExpression=Me,e.getInvokedExpression=Be,e.nodeCanBeDecorated=Ke,e.nodeIsDecorated=Je,e.nodeOrChildIsDecorated=ze,e.childIsDecorated=je,e.isJSXTagName=Ve,e.isPartOfExpression=Ue,e.isInstantiatedModule=qe,e.isExternalModuleImportEqualsDeclaration=We,e.getExternalModuleImportEqualsDeclarationExpression=He,e.isInternalModuleImportEqualsDeclaration=Ge,e.isSourceFileJavaScript=Xe,e.isInJavaScriptFile=Qe,e.isRequireCall=Ye,e.isSingleOrDoubleQuote=Ze,e.isDeclarationOfFunctionExpression=$e,e.getSpecialPropertyAssignmentKind=et,e.getExternalModuleName=tt,e.getNamespaceDeclarationNode=rt,e.isDefaultImport=nt,e.hasQuestionToken=at,e.isJSDocConstructSignature=it,e.getCommentsFromJSDoc=ot,e.getJSDocs=ut,e.getJSDocParameterTags=_t,e.getJSDocType=lt,e.getJSDocAugmentsTag=dt,e.getJSDocReturnTag=pt,e.getJSDocTemplateTag=ft,e.hasRestParameter=mt,e.hasDeclaredRestParameter=gt,e.isRestParameter=yt,e.isDeclaredRestParam=vt;var wi;!function(e){e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound"}(wi=e.AssignmentKind||(e.AssignmentKind={})),e.getAssignmentTargetKind=ht,e.isAssignmentTarget=bt,e.isNodeDescendantOf=kt,e.isInAmbientContext=xt,e.isDeclarationName=Dt,e.isLiteralComputedPropertyDeclarationName=St,e.isIdentifierName=Ct,e.isAliasSymbolDeclaration=Et,e.exportAssignmentIsAlias=Tt,e.getClassExtendsHeritageClauseElement=Nt,e.getClassImplementsHeritageClauseElements=At,e.getInterfaceBaseTypeNodes=wt,e.getHeritageClause=Pt,e.tryResolveScriptReference=Ft,e.getAncestor=Ot,e.getFileReferenceFromReferencePath=It,e.isKeyword=Rt,e.isTrivia=Lt,e.isAsyncFunctionLike=Mt,e.isStringOrNumericLiteral=Bt,e.hasDynamicName=Kt,e.isDynamicName=Jt,e.isWellKnownSymbolSyntactically=zt,e.getPropertyNameForPropertyNameNode=jt,e.getPropertyNameForKnownSymbolName=Vt,e.isESSymbolIdentifier=Ut,e.isPushOrUnshiftIdentifier=qt,e.isModifierKind=Wt,e.isParameterDeclaration=Ht,e.getRootDeclaration=Gt,e.nodeStartsNewLexicalEnvironment=Xt,e.nodeIsSynthesized=Qt,e.getOriginalNode=Yt,e.isParseTreeNode=Zt,e.getParseTreeNode=$t,e.getOriginalSourceFiles=er,e.getOriginalNodeId=tr;var Pi;!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(Pi=e.Associativity||(e.Associativity={})),e.getExpressionAssociativity=rr,e.getOperatorAssociativity=nr,e.getExpressionPrecedence=ar,e.getOperator=ir,e.getOperatorPrecedence=or,e.createDiagnosticCollection=sr;var Fi=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Oi=e.createMap({"\0":"\\0","\t":"\\t","\x0B":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"\u2028":"\\u2028","\u2029":"\\u2029","":"\\u0085"});e.escapeString=cr,e.isIntrinsicJsxName=_r;var Ii=/[^\u0000-\u007F]/g;e.escapeNonAsciiCharacters=dr;var Ri=["","    "];e.getIndentString=pr,e.getIndentSize=fr,e.createTextWriter=mr,e.getResolvedExternalModuleName=gr,e.getExternalModuleNameFromDeclaration=yr,e.getExternalModuleNameFromPath=vr,e.getOwnEmitOutputFilePath=hr,e.getDeclarationEmitOutputFilePath=br,e.getSourceFilesToEmit=kr,e.filterSourceFilesInDirectory=xr,e.forEachTransformedEmitFile=Er,e.forEachExpectedEmitFile=Nr,e.getSourceFilePathInNewDir=Ar,e.writeFile=wr,e.getLineOfLocalPosition=Pr,e.getLineOfLocalPositionFromLineMap=Fr,e.getFirstConstructorWithBody=Or,e.getSetAccessorTypeAnnotationNode=Ir,e.getThisParameter=Rr,e.parameterIsThisKeyword=Lr,e.isThisIdentifier=Mr,e.identifierIsThisKeyword=Br,e.getAllAccessorDeclarations=Kr,e.emitNewLineBeforeLeadingComments=Jr,e.emitNewLineBeforeLeadingCommentsOfPosition=zr,e.emitNewLineBeforeLeadingCommentOfPosition=jr,e.emitComments=Vr,e.emitDetachedComments=Ur,e.writeCommentRange=qr,e.hasModifiers=Gr,e.hasModifier=Xr,e.getModifierFlags=Qr,e.modifierToFlag=Yr,e.isLogicalOperator=Zr,e.isAssignmentOperator=$r,e.tryGetClassExtendingExpressionWithTypeArguments=en,e.isAssignmentExpression=tn,e.isDestructuringAssignment=rn,e.isSupportedExpressionWithTypeArguments=nn,e.isExpressionWithTypeArgumentsInClassExtendsClause=on,e.isEntityNameExpression=sn,e.isRightSideOfQualifiedNameOrPropertyAccess=cn,e.isEmptyObjectLiteralOrArrayLiteral=un,e.getLocalSymbolForExportDefault=_n,e.tryExtractTypeScriptExtension=ln;var Li="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.convertToBase64=pn;var Mi="\r\n",Bi="\n";e.getNewLineCharacter=fn,e.isSimpleExpression=mn;var Ki=e.createMap();e.formatSyntaxKind=yn,e.movePos=vn,e.createRange=hn,e.moveRangeEnd=bn,e.moveRangePos=kn,e.moveRangePastDecorators=xn,e.moveRangePastModifiers=Dn,e.isCollapsedRange=Sn,e.collapseRangeToStart=Cn,e.collapseRangeToEnd=En,e.createTokenRange=Tn,e.rangeIsOnSingleLine=Nn,e.rangeStartPositionsAreOnSameLine=An,e.rangeEndPositionsAreOnSameLine=wn,e.rangeStartIsOnSameLineAsRangeEnd=Pn,e.rangeEndIsOnSameLineAsRangeStart=Fn,e.positionsAreOnSameLine=On,e.getStartPositionOfRange=In,e.isDeclarationNameOfEnumOrNamespace=Rn,e.getInitializedVariables=Ln,e.isMergedWithClass=Bn,e.isFirstDeclarationOfKind=Kn,e.isNodeArray=Jn,e.isNoSubstitutionTemplateLiteral=zn,e.isLiteralKind=jn,e.isTextualLiteralKind=Vn,e.isLiteralExpression=Un,e.isTemplateLiteralKind=qn,e.isTemplateHead=Wn,e.isTemplateMiddleOrTemplateTail=Hn,e.isIdentifier=Gn,e.isVoidExpression=Xn,e.isGeneratedIdentifier=Qn,e.isModifier=Yn,e.isQualifiedName=Zn,e.isComputedPropertyName=$n,e.isEntityName=ea,e.isPropertyName=ta,e.isModuleName=ra,e.isBindingName=na,e.isTypeParameter=aa,e.isParameter=ia,e.isDecorator=oa,e.isMethodDeclaration=sa,e.isClassElement=ca,e.isObjectLiteralElementLike=ua,e.isTypeNode=la,e.isArrayBindingPattern=da,e.isObjectBindingPattern=pa,e.isBindingPattern=fa,e.isAssignmentPattern=ma,e.isBindingElement=ga,e.isArrayBindingElement=ya,e.isDeclarationBindingElement=va,e.isBindingOrAssignmentPattern=ha,e.isObjectBindingOrAssignmentPattern=ba,e.isArrayBindingOrAssignmentPattern=ka,e.isArrayLiteralExpression=xa,e.isObjectLiteralExpression=Da,e.isPropertyAccessExpression=Sa,e.isElementAccessExpression=Ca,e.isBinaryExpression=Ea,e.isConditionalExpression=Ta,e.isCallExpression=Na,e.isTemplateLiteral=Aa,
e.isSpreadExpression=wa,e.isExpressionWithTypeArguments=Pa,e.isLeftHandSideExpression=Oa,e.isUnaryExpression=Ra,e.isExpression=Ma,e.isAssertionExpression=Ba,e.isPartiallyEmittedExpression=Ka,e.isNotEmittedStatement=Ja,e.isNotEmittedOrPartiallyEmittedNode=za,e.isOmittedExpression=ja,e.isTemplateSpan=Va,e.isBlock=Ua,e.isConciseBody=qa,e.isFunctionBody=Wa,e.isForInitializer=Ha,e.isVariableDeclaration=Ga,e.isVariableDeclarationList=Xa,e.isCaseBlock=Qa,e.isModuleBody=Ya,e.isImportEqualsDeclaration=Za,e.isImportClause=$a,e.isNamedImportBindings=ei,e.isImportSpecifier=ti,e.isNamedExports=ri,e.isExportSpecifier=ni,e.isModuleOrEnumDeclaration=ai,e.isDeclaration=ci,e.isDeclarationStatement=ui,e.isStatementButNotDeclaration=_i,e.isStatement=li,e.isModuleReference=di,e.isJsxOpeningElement=pi,e.isJsxClosingElement=fi,e.isJsxTagNameExpression=mi,e.isJsxChild=gi,e.isJsxAttributeLike=yi,e.isJsxSpreadAttribute=vi,e.isJsxAttribute=hi,e.isStringLiteralOrJsxExpression=bi,e.isCaseOrDefaultClause=ki,e.isHeritageClause=xi,e.isCatchClause=Di,e.isPropertyAssignment=Si,e.isShorthandPropertyAssignment=Ci,e.isEnumMember=Ei,e.isSourceFile=Ti,e.isWatchSet=Ni}(ts||(ts={})),function(e){function t(e){switch(e.target){case 5:case 4:return"lib.es2017.d.ts";case 3:return"lib.es2016.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function r(e){return e.start+e.length}function n(e){return 0===e.length}function a(e,t){return t>=e.start&&t<r(e)}function i(e,t){return t.start>=e.start&&r(t)<=r(e)}function o(e,t){var n=Math.max(e.start,t.start),a=Math.min(r(e),r(t));return n<a}function s(e,t){var n=Math.max(e.start,t.start),a=Math.min(r(e),r(t));if(n<a)return f(n,a)}function c(e,t){return t.start<=r(e)&&r(t)>=e.start}function u(e,t,n){var a=t+n;return t<=r(e)&&a>=e.start}function _(e,t,r,n){var a=e+t,i=r+n;return r<=a&&i>=e}function l(e,t){return t<=r(e)&&t>=e.start}function d(e,t){var n=Math.max(e.start,t.start),a=Math.min(r(e),r(t));if(n<=a)return f(n,a)}function p(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function f(e,t){return p(e,t-e)}function m(e){return p(e.span.start,e.newLength)}function g(e){return n(e.span)&&0===e.newLength}function y(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function v(t){if(0===t.length)return e.unchangedTextChangeRange;if(1===t.length)return t[0];for(var n=t[0],a=n.span.start,i=r(n.span),o=a+n.newLength,s=1;s<t.length;s++){var c=t[s],u=a,_=i,l=o,d=c.span.start,p=r(c.span),m=d+c.newLength;a=Math.min(u,d),i=Math.max(_,_+(p-l)),o=Math.max(m,m+(l-p))}return y(f(a,i),o-a)}function h(t){if(t&&143===t.kind)for(var r=t;r;r=r.parent)if(e.isFunctionLike(r)||e.isClassLike(r)||227===r.kind)return r}function b(t){return e.hasModifier(t,92)&&150===t.parent.kind&&e.isClassLike(t.parent.parent)}function k(t){for(;t&&(174===t.kind||e.isBindingPattern(t));)t=t.parent;return t}function x(t){t=k(t);var r=e.getModifierFlags(t);return 223===t.kind&&(t=t.parent),t&&224===t.kind&&(r|=e.getModifierFlags(t),t=t.parent),t&&205===t.kind&&(r|=e.getModifierFlags(t)),r}function D(e){e=k(e);var t=e.flags;return 223===e.kind&&(e=e.parent),e&&224===e.kind&&(t|=e.flags,e=e.parent),e&&205===e.kind&&(t|=e.flags),t}function S(t,r,n){function a(t,n,a){var i=e.normalizePath(r.getExecutingFilePath()),o=e.getDirectoryPath(i),s=e.combinePaths(o,t);if(n&&(s=s+"-"+n),s=r.resolvePath(e.combinePaths(s,"diagnosticMessages.generated.json")),!r.fileExists(s))return!1;var c="";try{c=r.readFile(s)}catch(u){return a&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Unable_to_open_file_0,s)),!1}try{e.localizedDiagnosticMessages=JSON.parse(c)}catch(u){return a&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Corrupted_locale_file_0,s)),!1}return!0}var i=/^([a-z]+)([_\-]([a-z]+))?$/.exec(t.toLowerCase());if(!i)return void(n&&n.push(e.createCompilerDiagnostic(e.Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp")));var o=i[1],s=i[3];a(o,s,n)||a(o,void 0,n)}e.getDefaultLibFileName=t,e.textSpanEnd=r,e.textSpanIsEmpty=n,e.textSpanContainsPosition=a,e.textSpanContainsTextSpan=i,e.textSpanOverlapsWith=o,e.textSpanOverlap=s,e.textSpanIntersectsWithTextSpan=c,e.textSpanIntersectsWith=u,e.decodedTextSpanIntersectsWith=_,e.textSpanIntersectsWithPosition=l,e.textSpanIntersection=d,e.createTextSpan=p,e.createTextSpanFromBounds=f,e.textChangeRangeNewSpan=m,e.textChangeRangeIsUnchanged=g,e.createTextChangeRange=y,e.unchangedTextChangeRange=y(p(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=v,e.getTypeParameterOwner=h,e.isParameterPropertyDeclaration=b,e.getCombinedModifierFlags=x,e.getCombinedNodeFlags=D,e.validateLocaleAndSetLanguage=S}(ts||(ts={}));var ts;!function(e){function t(t,r,n){var a=261===t?Ia||(Ia=e.objectAllocator.getSourceFileConstructor()):Oa||(Oa=e.objectAllocator.getNodeConstructor()),i=r?new a(t,r.pos,r.end):new a(t,(-1),(-1));return i.flags=8|n,i}function r(t,r){return t!==r&&(jn(t,r),r.startsOnNewLine&&(t.startsOnNewLine=!0),e.aggregateTransformFlags(t)),t}function n(t,r,n){if(t){if(e.isNodeArray(t))return t}else t=[];var a=t;return r?(a.pos=r.pos,a.end=r.end):(a.pos=-1,a.end=-1),n&&(a.hasTrailingComma=!0),a}function a(e,r){var n=t(e,void 0);return n.startsOnNewLine=r,n}function i(e){return n(e,void 0)}function o(e){var r=t(e.kind,void 0,e.flags);jn(r,e);for(var n in e)!r.hasOwnProperty(n)&&e.hasOwnProperty(n)&&(r[n]=e[n]);return r}function s(e){var t=o(e);return t.pos=e.pos,t.end=e.end,t.parent=e.parent,t}function c(e,r){if("number"==typeof e){var n=t(8,r,void 0);return n.text=e.toString(),n}if("boolean"==typeof e)return t(e?100:85,r,void 0);if("string"==typeof e){var n=t(9,r,void 0);return n.text=e,n}if(e){var n=t(9,r,void 0);return n.textSourceNode=e,n.text=e.text,n}}function u(r,n){var a=t(70,n);return a.text=e.escapeIdentifier(r),a.originalKeywordKind=e.stringToToken(r),a.autoGenerateKind=0,a.autoGenerateId=0,a}function _(e,r){var n=t(70,r);return n.text="",n.originalKeywordKind=0,n.autoGenerateKind=1,n.autoGenerateId=Ra,Ra++,e&&e(n),n}function l(e){var r=t(70,e);return r.text="",r.originalKeywordKind=0,r.autoGenerateKind=2,r.autoGenerateId=Ra,Ra++,r}function d(e,r){var n=t(70,r);return n.text=e,n.originalKeywordKind=0,n.autoGenerateKind=3,n.autoGenerateId=Ra,Ra++,n}function p(e,r){var n=t(70,r);return n.original=e,n.text="",n.originalKeywordKind=0,n.autoGenerateKind=4,n.autoGenerateId=Ra,Ra++,n}function f(e){return t(e)}function m(){var e=t(96);return e}function g(e){var r=t(98,e);return r}function y(){var e=t(94);return e}function v(e,r){var n=t(142,r);return n.expression=e,n}function h(e,t){return e.expression!==t?r(v(t,e),e):e}function b(e,r,a,i,o,s,c,_,l){var d=t(144,_,l);return d.decorators=e?n(e):void 0,d.modifiers=r?n(r):void 0,d.dotDotDotToken=a,d.name="string"==typeof i?u(i):i,d.questionToken=o,d.type=s,d.initializer=c?Fn(c):void 0,d}function k(e,t,n,a,i,o,s){return e.decorators!==t||e.modifiers!==n||e.dotDotDotToken!==a||e.name!==i||e.type!==o||e.initializer!==s?r(b(t,n,a,i,e.questionToken,o,s,e,e.flags),e):e}function x(e,r,a,i,o,s,c){var _=t(147,c);return _.decorators=e?n(e):void 0,_.modifiers=r?n(r):void 0,_.name="string"==typeof a?u(a):a,_.questionToken=i,_.type=o,_.initializer=s,_}function D(e,t,n,a,i,o){return e.decorators!==t||e.modifiers!==n||e.name!==a||e.type!==i||e.initializer!==o?r(x(t,n,a,e.questionToken,i,o,e),e):e}function S(e,r,a,i,o,s,c,_,l,d){var p=t(149,l,d);return p.decorators=e?n(e):void 0,p.modifiers=r?n(r):void 0,p.asteriskToken=a,p.name="string"==typeof i?u(i):i,p.typeParameters=o?n(o):void 0,p.parameters=n(s),p.type=c,p.body=_,p}function C(e,t,n,a,i,o,s,c){return e.decorators!==t||e.modifiers!==n||e.name!==a||e.typeParameters!==i||e.parameters!==o||e.type!==s||e.body!==c?r(S(t,n,e.asteriskToken,a,i,o,s,c,e,e.flags),e):e}function E(e,r,a,i,o,s){var c=t(150,o,s);return c.decorators=e?n(e):void 0,c.modifiers=r?n(r):void 0,c.typeParameters=void 0,c.parameters=n(a),c.type=void 0,c.body=i,c}function T(e,t,n,a,i){return e.decorators!==t||e.modifiers!==n||e.parameters!==a||e.body!==i?r(E(t,n,a,i,e,e.flags),e):e}function N(e,r,a,i,o,s,c,_){var l=t(151,c,_);return l.decorators=e?n(e):void 0,l.modifiers=r?n(r):void 0,l.name="string"==typeof a?u(a):a,l.typeParameters=void 0,l.parameters=n(i),l.type=o,l.body=s,l}function A(e,t,n,a,i,o,s){return e.decorators!==t||e.modifiers!==n||e.name!==a||e.parameters!==i||e.type!==o||e.body!==s?r(N(t,n,a,i,o,s,e,e.flags),e):e}function w(e,r,a,i,o,s,c){var _=t(152,s,c);return _.decorators=e?n(e):void 0,_.modifiers=r?n(r):void 0,_.name="string"==typeof a?u(a):a,_.typeParameters=void 0,_.parameters=n(i),_.body=o,_}function P(e,t,n,a,i,o){return e.decorators!==t||e.modifiers!==n||e.name!==a||e.parameters!==i||e.body!==o?r(w(t,n,a,i,o,e,e.flags),e):e}function F(e,r){var a=t(172,r);return a.elements=n(e),a}function O(e,t){return e.elements!==t?r(F(t,e),e):e}function I(e,r){var a=t(173,r);return a.elements=n(e),a}function R(e,t){return e.elements!==t?r(I(t,e),e):e}function L(e,r,n,a,i){var o=t(174,i);return o.propertyName="string"==typeof e?u(e):e,o.dotDotDotToken=r,o.name="string"==typeof n?u(n):n,o.initializer=a,o}function M(e,t,n,a,i){return e.propertyName!==n||e.dotDotDotToken!==t||e.name!==a||e.initializer!==i?r(L(n,t,a,i,e),e):e}function B(e,r,a){var i=t(175,r);return i.elements=Pn(n(e)),a&&(i.multiLine=!0),i}function K(e,t){return e.elements!==t?r(B(t,e,e.multiLine),e):e}function J(e,r,a){var i=t(176,r);return i.properties=n(e),a&&(i.multiLine=!0),i}function z(e,t){return e.properties!==t?r(J(t,e,e.multiLine),e):e}function j(e,r,n,a){var i=t(177,n,a);return i.expression=Nn(e),(i.emitNode||(i.emitNode={})).flags|=65536,i.name="string"==typeof r?u(r):r,i}function V(e,t,n){if(e.expression!==t||e.name!==n){var a=j(t,n,e,e.flags);return(a.emitNode||(a.emitNode={})).flags=Hn(e),r(a,e)}return e}function U(e,r,n){var a=t(178,n);return a.expression=Nn(e),a.argumentExpression="number"==typeof r?c(r):r,a}function q(e,t,n){return e.expression!==t||e.argumentExpression!==n?r(U(t,n,e),e):e}function W(e,r,a,i,o){var s=t(179,i,o);return s.expression=Nn(e),r&&(s.typeArguments=n(r)),s.arguments=Pn(n(a)),s}function H(e,t,n,a){return t!==e.expression||n!==e.typeArguments||a!==e.arguments?r(W(t,n,a,e,e.flags),e):e}function G(e,r,a,i,o){var s=t(180,i,o);return s.expression=Tn(e),s.typeArguments=r?n(r):void 0,s.arguments=a?Pn(n(a)):void 0,s}function X(e,t,n,a){return e.expression!==t||e.typeArguments!==n||e.arguments!==a?r(G(t,n,a,e,e.flags),e):e}function Q(e,r,n){var a=t(181,n);return a.tag=Nn(e),a.template=r,a}function Y(e,t,n){return e.tag!==t||e.template!==n?r(Q(t,n,e),e):e}function Z(e,r){var n=t(183,r);return n.expression=e,n}function $(e,t){return e.expression!==t?r(Z(t,e),e):e}function ee(e,r,a,i,o,s,c,_,l){var d=t(184,_,l);return d.modifiers=e?n(e):void 0,d.asteriskToken=r,d.name="string"==typeof a?u(a):a,d.typeParameters=i?n(i):void 0,d.parameters=n(o),d.type=s,d.body=c,d}function te(e,t,n,a,i,o,s){return e.name!==n||e.modifiers!==t||e.typeParameters!==a||e.parameters!==i||e.type!==o||e.body!==s?r(ee(t,e.asteriskToken,n,a,i,o,s,e,e.flags),e):e}function re(e,r,a,i,o,s,c,u){var _=t(185,c,u);return _.modifiers=e?n(e):void 0,_.typeParameters=r?n(r):void 0,_.parameters=n(a),_.type=i,_.equalsGreaterThanToken=o||f(35),_.body=Ln(s),_}function ne(e,t,n,a,i,o){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==a||e.type!==i||e.body!==o?r(re(t,n,a,i,e.equalsGreaterThanToken,o,e,e.flags),e):e}function ae(e,r){var n=t(186,r);return n.expression=wn(e),n}function ie(e,t){return e.expression!==t?r(ae(t,e),t):e}function oe(e,r){var n=t(187,r);return n.expression=wn(e),n}function se(e,t){return e.expression!==t?r(oe(t,e),t):e}function ce(e,r){var n=t(188,r);return n.expression=wn(e),n}function ue(e,t){return e.expression!==t?r(ce(t,e),e):e}function _e(e,r){var n=t(189,r);return n.expression=wn(e),n}function le(e,t){return e.expression!==t?r(_e(t,e),e):e}function de(e,r,n){var a=t(190,n);return a.operator=e,a.operand=wn(r),a}function pe(e,t){return e.operand!==t?r(de(e.operator,t,e),e):e}function fe(e,r,n){var a=t(191,n);return a.operand=An(e),a.operator=r,a}function me(e,t){return e.operand!==t?r(fe(t,e.operator,e),e):e}function ge(e,r,n,a){var i="number"==typeof r?f(r):r,o=i.kind,s=t(192,a);return s.left=kn(o,e,!0,void 0),s.operatorToken=i,s.right=kn(o,n,!1,s.left),s}function ye(e,t,n){return e.left!==t||e.right!==n?r(ge(t,e.operatorToken,n,e),e):e}function ve(e,r,n,a,i,o){var s=t(193,i?o:a);return s.condition=Cn(e),i?(s.questionToken=r,s.whenTrue=En(n),s.colonToken=a,s.whenFalse=En(i)):(s.questionToken=f(54),s.whenTrue=En(r),s.colonToken=f(55),s.whenFalse=En(n)),s}function he(e,t,n,a){return e.condition!==t||e.whenTrue!==n||e.whenFalse!==a?r(ve(t,e.questionToken,n,e.colonToken,a,e),e):e}function be(e,r,a){var i=t(194,a);return i.head=e,i.templateSpans=n(r),i}function ke(e,t,n){return e.head!==t||e.templateSpans!==n?r(be(t,n,e),e):e}function xe(e,r,n){var a=t(195,n);return a.asteriskToken=e,a.expression=r,a}function De(e,t){return e.expression!==t?r(xe(e.asteriskToken,t,e),e):e}function Se(e,r){var n=t(196,r);return n.expression=Fn(e),n}function Ce(e,t){return e.expression!==t?r(Se(t,e),e):e}function Ee(e,r,a,i,o,s){var c=t(197,s);return c.decorators=void 0,c.modifiers=e?n(e):void 0,c.name=r,c.typeParameters=a?n(a):void 0,c.heritageClauses=n(i),c.members=n(o),c}function Te(e,t,n,a,i,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==a||e.heritageClauses!==i||e.members!==o?r(Ee(t,n,a,i,o,e),e):e}function Ne(e){var r=t(198,e);return r}function Ae(e,r,a){var i=t(199,a);return i.typeArguments=e?n(e):void 0,i.expression=Nn(r),i}function we(e,t,n){return e.typeArguments!==t||e.expression!==n?r(Ae(t,n,e),e):e}function Pe(e,r,n){var a=t(202,n);return a.expression=e,a.literal=r,a}function Fe(e,t,n){return e.expression!==t||e.literal!==n?r(Pe(t,n,e),e):e}function Oe(e,r,a,i){var o=t(204,r,i);return o.statements=n(e),a&&(o.multiLine=!0),o}function Ie(e,t){return t!==e.statements?r(Oe(t,e,e.multiLine,e.flags),e):e}function Re(r,a,i,o){var s=t(205,i,o);return s.decorators=void 0,s.modifiers=r?n(r):void 0,s.declarationList=e.isArray(a)?Me(a):a,s}function Le(e,t,n){return e.modifiers!==t||e.declarationList!==n?r(Re(t,n,e,e.flags),e):e}function Me(e,r,a){var i=t(224,r,a);return i.declarations=n(e),i}function Be(e,t){return e.declarations!==t?r(Me(t,e,e.flags),e):e}function Ke(e,r,n,a,i){var o=t(223,a,i);return o.name="string"==typeof e?u(e):e,o.type=r,o.initializer=void 0!==n?Fn(n):void 0,o}function Je(e,t,n,a){return e.name!==t||e.type!==n||e.initializer!==a?r(Ke(t,n,a,e,e.flags),e):e}function ze(e){return t(206,e)}function je(e,r,n){var a=t(207,r,n);return a.expression=On(e),a}function Ve(e,t){return e.expression!==t?r(je(t,e,e.flags),e):e}function Ue(e,r,n,a){var i=t(208,a);return i.expression=e,i.thenStatement=r,i.elseStatement=n,i}function qe(e,t,n,a){return e.expression!==t||e.thenStatement!==n||e.elseStatement!==a?r(Ue(t,n,a,e),e):e}function We(e,r,n){var a=t(209,n);return a.statement=e,a.expression=r,a}function He(e,t,n){return e.statement!==t||e.expression!==n?r(We(t,n,e),e):e}function Ge(e,r,n){var a=t(210,n);return a.expression=e,a.statement=r,a}function Xe(e,t,n){return e.expression!==t||e.statement!==n?r(Ge(t,n,e),e):e}function Qe(e,r,n,a,i){var o=t(211,i,void 0);return o.initializer=e,o.condition=r,o.incrementor=n,o.statement=a,o}function Ye(e,t,n,a,i){return e.initializer!==t||e.condition!==n||e.incrementor!==a||e.statement!==i?r(Qe(t,n,a,i,e),e):e}function Ze(e,r,n,a){var i=t(212,a);return i.initializer=e,i.expression=r,i.statement=n,i}function $e(e,t,n,a){return e.initializer!==t||e.expression!==n||e.statement!==a?r(Ze(t,n,a,e),e):e}function et(e,r,n,a){var i=t(213,a);return i.initializer=e,i.expression=r,i.statement=n,i}function tt(e,t,n,a){return e.initializer!==t||e.expression!==n||e.statement!==a?r(et(t,n,a,e),e):e}function rt(e,r){var n=t(214,r);return e&&(n.label=e),n}function nt(e,t){return e.label!==t?r(rt(t,e),e):e}function at(e,r){var n=t(215,r);return e&&(n.label=e),n}function it(e,t){return e.label!==t?r(at(t,e),e):e}function ot(e,r){var n=t(216,r);return n.expression=e,n}function st(e,t){return e.expression!==t?r(ot(t,e),e):e}function ct(e,r,n){var a=t(217,n);return a.expression=e,a.statement=r,a}function ut(e,t,n){return e.expression!==t||e.statement!==n?r(ct(t,n,e),e):e}function _t(e,r,n){var a=t(218,n);return a.expression=Fn(e),a.caseBlock=r,a}function lt(e,t,n){return e.expression!==t||e.caseBlock!==n?r(_t(t,n,e),e):e}function dt(e,r,n){var a=t(219,n);return a.label="string"==typeof e?u(e):e,a.statement=r,a}function pt(e,t,n){return e.label!==t||e.statement!==n?r(dt(t,n,e),e):e}function ft(e,r){var n=t(220,r);return n.expression=e,n}function mt(e,t){return e.expression!==t?r(ft(t,e),e):e}function gt(e,r,n,a){var i=t(221,a);return i.tryBlock=e,i.catchClause=r,i.finallyBlock=n,i}function yt(e,t,n,a){return e.tryBlock!==t||e.catchClause!==n||e.finallyBlock!==a?r(gt(t,n,a,e),e):e}function vt(e,r){var a=t(232,r);return a.clauses=n(e),a}function ht(e,t){return e.clauses!==t?r(vt(t,e),e):e}function bt(e,r,a,i,o,s,c,_,l,d){var p=t(225,l,d);return p.decorators=e?n(e):void 0,p.modifiers=r?n(r):void 0,p.asteriskToken=a,p.name="string"==typeof i?u(i):i,p.typeParameters=o?n(o):void 0,p.parameters=n(s),p.type=c,p.body=_,p}function kt(e,t,n,a,i,o,s,c){return e.decorators!==t||e.modifiers!==n||e.name!==a||e.typeParameters!==i||e.parameters!==o||e.type!==s||e.body!==c?r(bt(t,n,e.asteriskToken,a,i,o,s,c,e,e.flags),e):e}function xt(e,r,a,i,o,s,c){var u=t(226,c);return u.decorators=e?n(e):void 0,u.modifiers=r?n(r):void 0,u.name=a,u.typeParameters=i?n(i):void 0,u.heritageClauses=n(o),u.members=n(s),u}function Dt(e,t,n,a,i,o,s){return e.decorators!==t||e.modifiers!==n||e.name!==a||e.typeParameters!==i||e.heritageClauses!==o||e.members!==s?r(xt(t,n,a,i,o,s,e),e):e}function St(e,r,a,i,o){var s=t(235,o);return s.decorators=e?n(e):void 0,s.modifiers=r?n(r):void 0,s.importClause=a,s.moduleSpecifier=i,s}function Ct(e,t,n,a,i){return e.decorators!==t||e.modifiers!==n||e.importClause!==a||e.moduleSpecifier!==i?r(St(t,n,a,i,e),e):e}function Et(e,r,n){var a=t(236,n);return a.name=e,a.namedBindings=r,a}function Tt(e,t,n){return e.name!==t||e.namedBindings!==n?r(Et(t,n,e),e):e}function Nt(e,r){var n=t(237,r);return n.name=e,n}function At(e,t){return e.name!==t?r(Nt(t,e),e):e}function wt(e,r){var a=t(238,r);return a.elements=n(e),a}function Pt(e,t){return e.elements!==t?r(wt(t,e),e):e}function Ft(e,r,n){var a=t(239,n);return a.propertyName=e,a.name=r,a}function Ot(e,t,n){return e.propertyName!==t||e.name!==n?r(Ft(t,n,e),e):e}function It(e,r,a,i,o){var s=t(240,o);return s.decorators=e?n(e):void 0,s.modifiers=r?n(r):void 0,s.isExportEquals=a,s.expression=i,s}function Rt(e,t,n,a){return e.decorators!==t||e.modifiers!==n||e.expression!==a?r(It(t,n,e.isExportEquals,a,e),e):e}function Lt(e,r,a,i,o){var s=t(241,o);return s.decorators=e?n(e):void 0,s.modifiers=r?n(r):void 0,s.exportClause=a,s.moduleSpecifier=i,s}function Mt(e,t,n,a,i){return e.decorators!==t||e.modifiers!==n||e.exportClause!==a||e.moduleSpecifier!==i?r(Lt(t,n,a,i,e),e):e}function Bt(e,r){var a=t(242,r);return a.elements=n(e),a}function Kt(e,t){return e.elements!==t?r(Bt(t,e),e):e}function Jt(e,r,n){var a=t(243,n);return a.name="string"==typeof e?u(e):e,a.propertyName="string"==typeof r?u(r):r,a}function zt(e,t,n){return e.name!==t||e.propertyName!==n?r(Jt(t,n,e),e):e}function jt(e,r,a,i){var o=t(246,i);return o.openingElement=e,o.children=n(r),o.closingElement=a,o}function Vt(e,t,n,a){return e.openingElement!==t||e.children!==n||e.closingElement!==a?r(jt(t,n,a,e),e):e}function Ut(e,r,a){var i=t(247,a);return i.tagName=e,i.attributes=n(r),i}function qt(e,t,n){return e.tagName!==t||e.attributes!==n?r(Ut(t,n,e),e):e}function Wt(e,r,a){var i=t(248,a);return i.tagName=e,i.attributes=n(r),i}function Ht(e,t,n){return e.tagName!==t||e.attributes!==n?r(Wt(t,n,e),e):e}function Gt(e,r){var n=t(249,r);return n.tagName=e,n}function Xt(e,t){return e.tagName!==t?r(Gt(t,e),e):e}function Qt(e,r,n){var a=t(250,n);return a.name=e,a.initializer=r,a}function Yt(e,t,n){return e.name!==t||e.initializer!==n?r(Qt(t,n,e),e):e}function Zt(e,r){var n=t(251,r);return n.expression=e,n}function $t(e,t){return e.expression!==t?r(Zt(t,e),e):e}function er(e,r){var n=t(252,r);return n.expression=e,n}function tr(e,t){return e.expression!==t?r(er(t,e),e):e}function rr(e,r,a){var i=t(255,a);return i.token=e,i.types=n(r),i}function nr(e,t){return e.types!==t?r(rr(e.token,t,e),e):e}function ar(e,r,a){var i=t(253,a);return i.expression=Fn(e),i.statements=n(r),i}function ir(e,t,n){return e.expression!==t||e.statements!==n?r(ar(t,n,e),e):e}function or(e,r){var a=t(254,r);return a.statements=n(e),a}function sr(e,t){return e.statements!==t?r(or(t,e),e):e}function cr(e,r,n){var a=t(256,n);return a.variableDeclaration="string"==typeof e?Ke(e):e,a.block=r,a}function ur(e,t,n){return e.variableDeclaration!==t||e.block!==n?r(cr(t,n,e),e):e}function _r(e,r,n){var a=t(257,n);return a.name="string"==typeof e?u(e):e,a.questionToken=void 0,a.initializer=void 0!==r?Fn(r):void 0,a}function lr(e,t,n){return e.name!==t||e.initializer!==n?r(_r(t,n,e),e):e}function dr(e,r,n){var a=t(258,n);return a.name="string"==typeof e?u(e):e,a.objectAssignmentInitializer=void 0!==r?Fn(r):void 0,a}function pr(e,r){var n=t(259,r);return n.expression=void 0!==e?Fn(e):void 0,n}function fr(e,t,n){return e.name!==t||e.objectAssignmentInitializer!==n?r(dr(t,n,e),e):e}function mr(e,t){return e.expression!==t?r(pr(t,e),e):e}function gr(e,a){if(e.statements!==a){var i=t(261,e,e.flags);return i.statements=n(a),i.endOfFileToken=e.endOfFileToken,i.fileName=e.fileName,i.path=e.path,i.text=e.text,void 0!==e.amdDependencies&&(i.amdDependencies=e.amdDependencies),void 0!==e.moduleName&&(i.moduleName=e.moduleName),void 0!==e.referencedFiles&&(i.referencedFiles=e.referencedFiles),void 0!==e.typeReferenceDirectives&&(i.typeReferenceDirectives=e.typeReferenceDirectives),void 0!==e.languageVariant&&(i.languageVariant=e.languageVariant),void 0!==e.isDeclarationFile&&(i.isDeclarationFile=e.isDeclarationFile),void 0!==e.renamedDependencies&&(i.renamedDependencies=e.renamedDependencies),void 0!==e.hasNoDefaultLib&&(i.hasNoDefaultLib=e.hasNoDefaultLib),void 0!==e.languageVersion&&(i.languageVersion=e.languageVersion),void 0!==e.scriptKind&&(i.scriptKind=e.scriptKind),void 0!==e.externalModuleIndicator&&(i.externalModuleIndicator=e.externalModuleIndicator),void 0!==e.commonJsModuleIndicator&&(i.commonJsModuleIndicator=e.commonJsModuleIndicator),void 0!==e.identifiers&&(i.identifiers=e.identifiers),void 0!==e.nodeCount&&(i.nodeCount=e.nodeCount),void 0!==e.identifierCount&&(i.identifierCount=e.identifierCount),void 0!==e.symbolCount&&(i.symbolCount=e.symbolCount),void 0!==e.parseDiagnostics&&(i.parseDiagnostics=e.parseDiagnostics),void 0!==e.bindDiagnostics&&(i.bindDiagnostics=e.bindDiagnostics),void 0!==e.lineMap&&(i.lineMap=e.lineMap),void 0!==e.classifiableNames&&(i.classifiableNames=e.classifiableNames),void 0!==e.resolvedModules&&(i.resolvedModules=e.resolvedModules),void 0!==e.resolvedTypeReferenceDirectiveNames&&(i.resolvedTypeReferenceDirectiveNames=e.resolvedTypeReferenceDirectiveNames),void 0!==e.imports&&(i.imports=e.imports),void 0!==e.moduleAugmentations&&(i.moduleAugmentations=e.moduleAugmentations),r(i,e)}return e}function yr(e){var r=t(293,e);return r.original=e,r}function vr(e){var r=t(296);return r.emitNode={},r.original=e,r}function hr(e){var r=t(295);return r.emitNode={},r.original=e,r}function br(e,r,n){var a=t(294,n||r);return a.expression=e,a.original=r,a}function kr(e,t){return e.expression!==t?r(br(t,e.original,e),e):e}function xr(e,t){return ge(e,25,t)}function Dr(e,t,r){return ge(e,26,t,r)}function Sr(e,t,r){return ge(e,57,t,r)}function Cr(e,t){return ge(e,33,t)}function Er(e,t){return ge(e,34,t)}function Tr(e,t){return ge(e,36,t)}function Nr(e,t){return ge(e,37,t)}function Ar(e,t){return fe(e,42,t)}function wr(e,t){return ge(e,52,t)}function Pr(e,t){return ge(e,53,t)}function Fr(e){return de(50,e)}function Or(){return ce(c(0))}function Ir(e,t){return"undefined"===t?Cr(e,Or()):Cr(oe(e),c(t))}function Rr(t,r,n){if(e.isComputedPropertyName(r))return U(t,r.expression,n);var a=e.isIdentifier(r)?j(t,r,n):U(t,r,n);return(a.emitNode||(a.emitNode={})).flags|=64,a}function Lr(e,t,r,n){return W(j(e,"call"),void 0,[t].concat(r),n)}function Mr(e,t,r,n){return W(j(e,"apply"),void 0,[t,r],n)}function Br(e,t){var r=[];return void 0!==t&&r.push("number"==typeof t?c(t):t),W(j(e,"slice"),void 0,r)}function Kr(e,t){return W(j(e,"concat"),void 0,t)}function Jr(e,t,r){return W(j(u("Math"),"pow"),void 0,[e,t],r)}function zr(t,r){var n=u(t||"React");return n.flags&=-9,n.parent=e.getParseTreeNode(r),n}function jr(t,r){if(e.isQualifiedName(t)){var n=jr(t.left,r),i=a(70);return i.text=t.right.text,j(n,i)}return zr(t.text,r)}function Vr(e,t,r){return e?jr(e,r):j(zr(t,r),"createElement")}function Ur(e,t,r,n,a,i,o){var s=[r];if(n&&s.push(n),a&&a.length>0)if(n||s.push(y()),a.length>1)for(var c=0,u=a;c<u.length;c++){var _=u[c];_.startsOnNewLine=!0,s.push(_)}else s.push(a[0]);return W(Vr(e,t,i),void 0,s,o)}function qr(e){return It(void 0,void 0,!1,e)}function Wr(e){return Lt(void 0,void 0,Bt([Jt(e)]))}function Hr(e,t,r){return Re(void 0,Gr([Ke(e,void 0,t)]),r)}function Gr(e,t){return Me(e,t,1)}function Xr(e,t){return Me(e,t,2)}function Qr(e){return Gn(u(e),4098)}function Yr(e,t){var r=Bn(e);switch(r.kind){case 70:return t;case 98:case 8:case 9:return!1;case 175:var n=r.elements;return 0!==n.length;case 176:return r.properties.length>0;default:return!0}}function Zr(t,r,n,a){var i,o,s=Mn(t,7);if(e.isSuperProperty(s))i=g(),o=s;else if(96===s.kind)i=g(),o=n<2?u("_super",s):s;else switch(s.kind){case 177:Yr(s.expression,a)?(i=_(r),o=j(Sr(i,s.expression,s.expression),s.name,s)):(i=s.expression,o=s);break;case 178:Yr(s.expression,a)?(i=_(r),o=U(Sr(i,s.expression,s.expression),s.argumentExpression,s)):(i=s.expression,o=s);break;default:i=Or(),o=Nn(t)}return{target:o,thisArg:i}}function $r(t){return e.reduceLeft(t,xr)}function en(t){if(e.isQualifiedName(t)){var r=en(t.left),n=s(t.right);return j(r,n,t)}return s(t)}function tn(t){return e.isIdentifier(t)?c(t,void 0):s(e.isComputedPropertyName(t)?t.expression:t)}function rn(e,t,r){switch(t.kind){case 151:case 152:return nn(e.properties,t,r,e.multiLine);case 257:return an(t,r);case 258:return on(t,r);case 149:return sn(t,r)}}function nn(t,r,n,a){var i=e.getAllAccessorDeclarations(t,r),o=i.firstAccessor,s=i.getAccessor,_=i.setAccessor;if(r===o){var l=[];if(s){var d=ee(s.modifiers,void 0,void 0,void 0,s.parameters,void 0,s.body,s);jn(d,s);var p=_r("get",d);l.push(p)}if(_){var f=ee(_.modifiers,void 0,void 0,void 0,_.parameters,void 0,_.body,_);jn(f,_);var m=_r("set",f);l.push(m)}l.push(_r("enumerable",c(!0))),l.push(_r("configurable",c(!0)));var g=W(j(u("Object"),"defineProperty"),void 0,[n,tn(r.name),J(l,void 0,a)],o);return e.aggregateTransformFlags(g)}}function an(t,r){return e.aggregateTransformFlags(jn(Sr(Rr(r,t.name,t.name),t.initializer,t),t))}function on(t,r){return e.aggregateTransformFlags(jn(Sr(Rr(r,t.name,t.name),o(t.name),t),t))}function sn(t,r){return e.aggregateTransformFlags(jn(Sr(Rr(r,t.name,t.name),jn(ee(t.modifiers,t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body,t),t),t),t))}function cn(e,t,r){return pn(e,t,r,16384)}function un(e){return 0!==(16384&Hn(e))}function _n(e,t,r){return pn(e,t,r,8192)}function ln(e){return 0!==(8192&Hn(e))}function dn(e,t,r){return pn(e,t,r)}function pn(t,r,n,a){if(t.name&&e.isIdentifier(t.name)&&!e.isGeneratedIdentifier(t.name)){var i=s(t.name);return a|=Hn(t.name),n||(a|=48),r||(a|=1536),a&&Gn(i,a),i}return p(t)}function fn(t,r,n,a){return t&&e.hasModifier(r,1)?mn(t,pn(r),n,a):_n(r,n,a)}function mn(t,r,n,a){var i,s=j(t,e.nodeIsSynthesized(r)?r:o(r),r);return a||(i|=48),n||(i|=1536),i&&Gn(s,i),s}function gn(t,r){return e.isBlock(t)?t:Oe([ot(t,t)],t,r)}function yn(e){return"use strict"===e.expression.text}function vn(t,r,n,a){e.Debug.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");for(var i=!1,o=0,s=r.length;o<s;){var u=r[o];if(!e.isPrologueDirective(u))break;yn(u)&&(i=!0),t.push(u),o++}for(n&&!i&&t.push(zn(je(c("use strict"))));o<s;){var u=r[o];if(!(524288&Hn(u)))break;t.push(a?e.visitNode(u,a,e.isStatement):u),o++}return o}function hn(t){var r=e.firstOrUndefined(t);return void 0!==r&&e.isPrologueDirective(r)&&yn(r)}function bn(t){for(var r=!1,a=0,i=t;a<i.length;a++){var o=i[a];if(!e.isPrologueDirective(o))break;if(yn(o)){r=!0;break}}return r?t:n([zn(je(c("use strict")))].concat(t),t)}function kn(e,t,r,n){var a=Jn(t);return 183===a.kind?t:xn(e,t,r,n)?Z(t):t}function xn(t,r,n,a){var i=e.getOperatorPrecedence(192,t),o=e.getOperatorAssociativity(192,t),s=Jn(r),c=e.getExpressionPrecedence(s);switch(e.compareValues(c,i)){case-1:return!(!n&&1===o&&195===r.kind);case 1:return!1;case 0:if(n)return 1===o;if(e.isBinaryExpression(s)&&s.operatorToken.kind===t){if(Dn(t))return!1;if(36===t){var u=a?Sn(a):0;if(e.isLiteralKind(u)&&u===Sn(s))return!1}}var _=e.getExpressionAssociativity(s);return 0===_}}function Dn(e){return 38===e||48===e||47===e||49===e}function Sn(t){if(t=Jn(t),e.isLiteralKind(t.kind))return t.kind;if(192===t.kind&&36===t.operatorToken.kind){if(void 0!==t.cachedLiteralKind)return t.cachedLiteralKind;var r=Sn(t.left),n=e.isLiteralKind(r)&&r===Sn(t.right)?r:0;return t.cachedLiteralKind=n,n}return 0}function Cn(t){var r=e.getOperatorPrecedence(193,54),n=Jn(t),a=e.getExpressionPrecedence(n);return e.compareValues(a,r)===-1?Z(t):t}function En(e){return 192===e.kind&&25===e.operatorToken.kind?Z(e):e}function Tn(e){var t=Jn(e);switch(t.kind){case 179:return Z(e);case 180:return t.arguments?e:Z(e)}return Nn(e)}function Nn(t){var r=Jn(t);return e.isLeftHandSideExpression(r)&&(180!==r.kind||r.arguments)&&8!==r.kind?t:Z(t,t)}function An(t){return e.isLeftHandSideExpression(t)?t:Z(t,t)}function wn(t){return e.isUnaryExpression(t)?t:Z(t,t)}function Pn(e){for(var t,r=0;r<e.length;r++){var a=Fn(e[r]);void 0===t&&a===e[r]||(void 0===t&&(t=e.slice(0,r)),t.push(a))}return void 0!==t?n(t,e,e.hasTrailingComma):e}function Fn(t){var r=Jn(t),n=e.getExpressionPrecedence(r),a=e.getOperatorPrecedence(192,25);return n>a?t:Z(t,t)}function On(t){var r=Jn(t);if(e.isCallExpression(r)){var n=r.expression,a=Jn(n).kind;if(184===a||185===a){var i=s(r);return i.expression=Z(n,n),In(t,i)}}else{var o=Rn(r).kind;if(176===o||184===o)return Z(t,t)}return t}function In(t,r){if(e.isPartiallyEmittedExpression(t)){var n=s(t);return n.expression=In(n.expression,r),n}return r}function Rn(e){for(;;){switch(e.kind){case 191:e=e.operand;continue;case 192:e=e.left;continue;case 193:e=e.condition;continue;case 179:case 178:case 177:e=e.expression;continue;case 294:e=e.expression;continue}return e}}function Ln(e){var t=Jn(e);return 176===t.kind?Z(e,e):e}function Mn(e,t){void 0===t&&(t=7);var r;do r=e,1&t&&(e=Bn(e)),2&t&&(e=Kn(e)),4&t&&(e=Jn(e));while(r!==e);return e}function Bn(e){for(;183===e.kind;)e=e.expression;return e}function Kn(t){for(;e.isAssertionExpression(t);)t=t.expression;return t}function Jn(e){for(;294===e.kind;)e=e.expression;return e}function zn(e){return e.startsOnNewLine=!0,e}function jn(e,t){if(e.original=t,t){var r=t.emitNode;r&&(e.emitNode=Vn(r,e.emitNode))}return e}function Vn(t,r){var n=t.flags,a=t.commentRange,i=t.sourceMapRange,o=t.tokenSourceMapRanges,s=t.constantValue,c=t.helpers;return r||(r={}),n&&(r.flags=n),a&&(r.commentRange=a),i&&(r.sourceMapRange=i),o&&(r.tokenSourceMapRanges=Un(o,r.tokenSourceMapRanges)),void 0!==s&&(r.constantValue=s),c&&(r.helpers=e.addRange(r.helpers,c)),r}function Un(t,r){return r||(r=e.createMap()),e.copyProperties(t,r),r}function qn(t){t=e.getSourceFileOfNode(e.getParseTreeNode(t));var r=t&&t.emitNode,n=r&&r.annotatedNodes;if(n)for(var a=0,i=n;a<i.length;a++){var o=i[a];o.emitNode=void 0}}function Wn(t){if(!t.emitNode){if(e.isParseTreeNode(t)){
if(261===t.kind)return t.emitNode={annotatedNodes:[t]};var r=e.getSourceFileOfNode(t);Wn(r).annotatedNodes.push(t)}t.emitNode={}}return t.emitNode}function Hn(e){var t=e.emitNode;return t&&t.flags}function Gn(e,t){return Wn(e).flags=t,e}function Xn(e){var t=e.emitNode;return t&&t.sourceMapRange||e}function Qn(e,t){return Wn(e).sourceMapRange=t,e}function Yn(e,t){var r=e.emitNode,n=r&&r.tokenSourceMapRanges;return n&&n[t]}function Zn(t,r,n){var a=Wn(t),i=a.tokenSourceMapRanges||(a.tokenSourceMapRanges=e.createMap());return i[r]=n,t}function $n(e){var t=e.emitNode;return t&&t.commentRange||e}function ea(e,t){return Wn(e).commentRange=t,e}function ta(e){var t=e.emitNode;return t&&t.constantValue}function ra(e,t){var r=Wn(e);return r.constantValue=t,e}function na(t){var r=e.getOriginalNode(t,e.isSourceFile),n=r&&r.emitNode;return n&&n.externalHelpersModuleName}function aa(t,r){if(r.importHelpers&&(e.isExternalModule(t)||r.isolatedModules)){var n=na(t);if(n)return n;var a=ca(t);if(a)for(var i=0,o=a;i<o.length;i++){var s=o[i];if(!s.scoped){var c=e.getOriginalNode(t,e.isSourceFile),u=Wn(c);return u.externalHelpersModuleName||(u.externalHelpersModuleName=d(e.externalHelpersModuleNameText))}}}}function ia(t,r){var n=Wn(t);return n.helpers=e.append(n.helpers,r),t}function oa(t,r){if(e.some(r))for(var n=Wn(t),a=0,i=r;a<i.length;a++){var o=i[a];e.contains(n.helpers,o)||(n.helpers=e.append(n.helpers,o))}return t}function sa(t,r){var n=t.emitNode;if(n){var a=n.helpers;if(a)return e.orderedRemoveItem(a,r)}return!1}function ca(e){var t=e.emitNode;return t&&t.helpers}function ua(t,r,n){var a=t.emitNode,i=a&&a.helpers;if(e.some(i)){for(var o=Wn(r),s=0,c=0;c<i.length;c++){var u=i[c];n(u)?(s++,e.contains(o.helpers,u)||(o.helpers=e.append(o.helpers,u))):s>0&&(i[c-s]=u)}s>0&&(i.length-=s)}}function _a(t,r){return t===r?0:t.priority===r.priority?0:void 0===t.priority?1:void 0===r.priority?-1:e.compareValues(t.priority,r.priority)}function la(e,t){return t&&(e.pos=t.pos,e.end=t.end),e}function da(e,t){return e.flags=t,e}function pa(e,t){return e.multiLine=t,e}function fa(e,t){return e.hasTrailingComma=t,e}function ma(t,r){var n=e.getNamespaceDeclarationNode(t);if(n&&!e.isDefaultImport(t)){var a=n.name;return e.isGeneratedIdentifier(a)?a:u(e.getSourceTextOfNodeFromSourceFile(r,n.name))}return 235===t.kind&&t.importClause?p(t):241===t.kind&&t.moduleSpecifier?p(t):void 0}function ga(t,r,n,a,i){var s=e.getExternalModuleName(t);if(9===s.kind)return ha(t,n,a,i)||ya(s,r)||o(s)}function ya(t,r){if(r.renamedDependencies&&e.hasProperty(r.renamedDependencies,t.text))return c(r.renamedDependencies[t.text])}function va(t,r,n){if(t)return t.moduleName?c(t.moduleName):e.isDeclarationFile(t)||!n.out&&!n.outFile?void 0:c(e.getExternalModuleNameFromPath(r,t.fileName))}function ha(e,t,r,n){return va(r.getExternalModuleFileFromDeclaration(e),t,n)}function ba(t){return e.isDeclarationBindingElement(t)?t.initializer:e.isPropertyAssignment(t)?e.isAssignmentExpression(t.initializer,!0)?t.initializer.right:void 0:e.isShorthandPropertyAssignment(t)?t.objectAssignmentInitializer:e.isAssignmentExpression(t,!0)?t.right:e.isSpreadExpression(t)?ba(t.expression):void 0}function ka(t){if(e.isDeclarationBindingElement(t))return t.name;{if(!e.isObjectLiteralElementLike(t))return e.isAssignmentExpression(t,!0)?ka(t.left):e.isSpreadExpression(t)?ka(t.expression):t;switch(t.kind){case 257:return ka(t.initializer);case 258:return t.name;case 259:return ka(t.expression)}}}function xa(e){switch(e.kind){case 144:case 174:return e.dotDotDotToken;case 196:case 259:return e}}function Da(t){switch(t.kind){case 174:if(t.propertyName){var r=t.propertyName;return e.isComputedPropertyName(r)&&e.isStringOrNumericLiteral(r.expression)?r.expression:r}break;case 257:if(t.name){var r=t.name;return e.isComputedPropertyName(r)&&e.isStringOrNumericLiteral(r.expression)?r.expression:r}break;case 259:return t.name}var n=ka(t);return n&&e.isPropertyName(n)?e.isComputedPropertyName(n)&&e.isStringOrNumericLiteral(n.expression)?n.expression:n:void e.Debug.fail("Invalid property name for binding element.")}function Sa(e){switch(e.kind){case 172:case 173:case 175:return e.elements;case 176:return e.properties}}function Ca(t){if(e.isBindingElement(t)){if(t.dotDotDotToken)return e.Debug.assertNode(t.name,e.isIdentifier),jn(Se(t.name,t),t);var r=wa(t.name);return t.initializer?jn(Sr(r,t.initializer,t),t):r}return e.Debug.assertNode(t,e.isExpression),t}function Ea(t){if(e.isBindingElement(t)){if(t.dotDotDotToken)return e.Debug.assertNode(t.name,e.isIdentifier),jn(pr(t.name,t),t);if(t.propertyName){var r=wa(t.name);return jn(_r(t.propertyName,t.initializer?Sr(r,t.initializer):r,t),t)}return e.Debug.assertNode(t.name,e.isIdentifier),jn(dr(t.name,t.initializer,t),t)}return e.Debug.assertNode(t,e.isObjectLiteralElementLike),t}function Ta(e){switch(e.kind){case 173:case 175:return Aa(e);case 172:case 176:return Na(e)}}function Na(t){return e.isObjectBindingPattern(t)?jn(J(e.map(t.elements,Ea),t),t):(e.Debug.assertNode(t,e.isObjectLiteralExpression),t)}function Aa(t){return e.isArrayBindingPattern(t)?jn(B(e.map(t.elements,Ca),t),t):(e.Debug.assertNode(t,e.isArrayLiteralExpression),t)}function wa(t){return e.isBindingPattern(t)?Ta(t):(e.Debug.assertNode(t,e.isExpression),t)}function Pa(t,r,n){var a,i=[],o=e.createMap(),s=e.createMap(),u=e.createMap(),_=!1,l=void 0,d=!1,p=aa(t,n),f=p&&St(void 0,void 0,Et(void 0,Nt(p)),c(e.externalHelpersModuleNameText));f&&i.push(f);for(var m=0,g=t.statements;m<g.length;m++){var y=g[m];switch(y.kind){case 235:i.push(y);break;case 234:245===y.moduleReference.kind&&i.push(y);break;case 241:if(y.moduleSpecifier)y.exportClause?i.push(y):(i.push(y),d=!0);else for(var v=0,h=y.exportClause.elements;v<h.length;v++){var b=h[v];if(!u[b.name.text]){var k=b.propertyName||b.name;e.multiMapAdd(o,k.text,b);var x=r.getReferencedImportDeclaration(k)||r.getReferencedValueDeclaration(k);x&&e.multiMapAdd(s,e.getOriginalNodeId(x),b.name),u[b.name.text]=!0,a=e.append(a,b.name)}}break;case 240:y.isExportEquals&&!l&&(l=y);break;case 205:if(e.hasModifier(y,1))for(var D=0,S=y.declarationList.declarations;D<S.length;D++){var x=S[D];a=Fa(x,u,a)}break;case 225:if(e.hasModifier(y,1))if(e.hasModifier(y,512))_||(e.multiMapAdd(s,e.getOriginalNodeId(y),dn(y)),_=!0);else{var C=y.name;u[C.text]||(e.multiMapAdd(s,e.getOriginalNodeId(y),C),u[C.text]=!0,a=e.append(a,C))}break;case 226:if(e.hasModifier(y,1))if(e.hasModifier(y,512))_||(e.multiMapAdd(s,e.getOriginalNodeId(y),dn(y)),_=!0);else{var E=y.name;u[E.text]||(e.multiMapAdd(s,e.getOriginalNodeId(y),E),u[E.text]=!0,a=e.append(a,E))}}}return{externalImports:i,exportSpecifiers:o,exportEquals:l,hasExportStarsToExportValues:d,exportedBindings:s,exportedNames:a,externalHelpersImportDeclaration:f}}function Fa(t,r,n){if(e.isBindingPattern(t.name))for(var a=0,i=t.name.elements;a<i.length;a++){var o=i[a];e.isOmittedExpression(o)||(n=Fa(o,r,n))}else e.isGeneratedIdentifier(t.name)||r[t.name.text]||(r[t.name.text]=!0,n=e.append(n,t.name));return n}var Oa,Ia;e.updateNode=r,e.createNodeArray=n,e.createSynthesizedNode=a,e.createSynthesizedNodeArray=i,e.getSynthesizedClone=o,e.getMutableClone=s,e.createLiteral=c;var Ra=0;e.createIdentifier=u,e.createTempVariable=_,e.createLoopVariable=l,e.createUniqueName=d,e.getGeneratedNameForNode=p,e.createToken=f,e.createSuper=m,e.createThis=g,e.createNull=y,e.createComputedPropertyName=v,e.updateComputedPropertyName=h,e.createParameter=b,e.updateParameter=k,e.createProperty=x,e.updateProperty=D,e.createMethod=S,e.updateMethod=C,e.createConstructor=E,e.updateConstructor=T,e.createGetAccessor=N,e.updateGetAccessor=A,e.createSetAccessor=w,e.updateSetAccessor=P,e.createObjectBindingPattern=F,e.updateObjectBindingPattern=O,e.createArrayBindingPattern=I,e.updateArrayBindingPattern=R,e.createBindingElement=L,e.updateBindingElement=M,e.createArrayLiteral=B,e.updateArrayLiteral=K,e.createObjectLiteral=J,e.updateObjectLiteral=z,e.createPropertyAccess=j,e.updatePropertyAccess=V,e.createElementAccess=U,e.updateElementAccess=q,e.createCall=W,e.updateCall=H,e.createNew=G,e.updateNew=X,e.createTaggedTemplate=Q,e.updateTaggedTemplate=Y,e.createParen=Z,e.updateParen=$,e.createFunctionExpression=ee,e.updateFunctionExpression=te,e.createArrowFunction=re,e.updateArrowFunction=ne,e.createDelete=ae,e.updateDelete=ie,e.createTypeOf=oe,e.updateTypeOf=se,e.createVoid=ce,e.updateVoid=ue,e.createAwait=_e,e.updateAwait=le,e.createPrefix=de,e.updatePrefix=pe,e.createPostfix=fe,e.updatePostfix=me,e.createBinary=ge,e.updateBinary=ye,e.createConditional=ve,e.updateConditional=he,e.createTemplateExpression=be,e.updateTemplateExpression=ke,e.createYield=xe,e.updateYield=De,e.createSpread=Se,e.updateSpread=Ce,e.createClassExpression=Ee,e.updateClassExpression=Te,e.createOmittedExpression=Ne,e.createExpressionWithTypeArguments=Ae,e.updateExpressionWithTypeArguments=we,e.createTemplateSpan=Pe,e.updateTemplateSpan=Fe,e.createBlock=Oe,e.updateBlock=Ie,e.createVariableStatement=Re,e.updateVariableStatement=Le,e.createVariableDeclarationList=Me,e.updateVariableDeclarationList=Be,e.createVariableDeclaration=Ke,e.updateVariableDeclaration=Je,e.createEmptyStatement=ze,e.createStatement=je,e.updateStatement=Ve,e.createIf=Ue,e.updateIf=qe,e.createDo=We,e.updateDo=He,e.createWhile=Ge,e.updateWhile=Xe,e.createFor=Qe,e.updateFor=Ye,e.createForIn=Ze,e.updateForIn=$e,e.createForOf=et,e.updateForOf=tt,e.createContinue=rt,e.updateContinue=nt,e.createBreak=at,e.updateBreak=it,e.createReturn=ot,e.updateReturn=st,e.createWith=ct,e.updateWith=ut,e.createSwitch=_t,e.updateSwitch=lt,e.createLabel=dt,e.updateLabel=pt,e.createThrow=ft,e.updateThrow=mt,e.createTry=gt,e.updateTry=yt,e.createCaseBlock=vt,e.updateCaseBlock=ht,e.createFunctionDeclaration=bt,e.updateFunctionDeclaration=kt,e.createClassDeclaration=xt,e.updateClassDeclaration=Dt,e.createImportDeclaration=St,e.updateImportDeclaration=Ct,e.createImportClause=Et,e.updateImportClause=Tt,e.createNamespaceImport=Nt,e.updateNamespaceImport=At,e.createNamedImports=wt,e.updateNamedImports=Pt,e.createImportSpecifier=Ft,e.updateImportSpecifier=Ot,e.createExportAssignment=It,e.updateExportAssignment=Rt,e.createExportDeclaration=Lt,e.updateExportDeclaration=Mt,e.createNamedExports=Bt,e.updateNamedExports=Kt,e.createExportSpecifier=Jt,e.updateExportSpecifier=zt,e.createJsxElement=jt,e.updateJsxElement=Vt,e.createJsxSelfClosingElement=Ut,e.updateJsxSelfClosingElement=qt,e.createJsxOpeningElement=Wt,e.updateJsxOpeningElement=Ht,e.createJsxClosingElement=Gt,e.updateJsxClosingElement=Xt,e.createJsxAttribute=Qt,e.updateJsxAttribute=Yt,e.createJsxSpreadAttribute=Zt,e.updateJsxSpreadAttribute=$t,e.createJsxExpression=er,e.updateJsxExpression=tr,e.createHeritageClause=rr,e.updateHeritageClause=nr,e.createCaseClause=ar,e.updateCaseClause=ir,e.createDefaultClause=or,e.updateDefaultClause=sr,e.createCatchClause=cr,e.updateCatchClause=ur,e.createPropertyAssignment=_r,e.updatePropertyAssignment=lr,e.createShorthandPropertyAssignment=dr,e.createSpreadAssignment=pr,e.updateShorthandPropertyAssignment=fr,e.updateSpreadAssignment=mr,e.updateSourceFileNode=gr,e.createNotEmittedStatement=yr,e.createEndOfDeclarationMarker=vr,e.createMergeDeclarationMarker=hr,e.createPartiallyEmittedExpression=br,e.updatePartiallyEmittedExpression=kr,e.createComma=xr,e.createLessThan=Dr,e.createAssignment=Sr,e.createStrictEquality=Cr,e.createStrictInequality=Er,e.createAdd=Tr,e.createSubtract=Nr,e.createPostfixIncrement=Ar,e.createLogicalAnd=wr,e.createLogicalOr=Pr,e.createLogicalNot=Fr,e.createVoidZero=Or,e.createTypeCheck=Ir,e.createMemberAccessForPropertyName=Rr,e.createFunctionCall=Lr,e.createFunctionApply=Mr,e.createArraySlice=Br,e.createArrayConcat=Kr,e.createMathPow=Jr,e.createExpressionForJsxElement=Ur,e.createExportDefault=qr,e.createExternalModuleExport=Wr,e.createLetStatement=Hr,e.createLetDeclarationList=Gr,e.createConstDeclarationList=Xr,e.getHelperName=Qr,e.createCallBinding=Zr,e.inlineExpressions=$r,e.createExpressionFromEntityName=en,e.createExpressionForPropertyName=tn,e.createExpressionForObjectLiteralElementLike=rn,e.getLocalName=cn,e.isLocalName=un,e.getExportName=_n,e.isExportName=ln,e.getDeclarationName=dn,e.getExternalModuleOrNamespaceExportName=fn,e.getNamespaceMemberName=mn,e.convertToFunctionBody=gn,e.addPrologueDirectives=vn,e.startsWithUseStrict=hn,e.ensureUseStrict=bn,e.parenthesizeBinaryOperand=kn,e.parenthesizeForConditionalHead=Cn,e.parenthesizeForNew=Tn,e.parenthesizeForAccess=Nn,e.parenthesizePostfixOperand=An,e.parenthesizePrefixOperand=wn,e.parenthesizeExpressionForList=Fn,e.parenthesizeExpressionForExpressionStatement=On,e.parenthesizeConciseBody=Ln;var La;!function(e){e[e.Parentheses=1]="Parentheses",e[e.Assertions=2]="Assertions",e[e.PartiallyEmittedExpressions=4]="PartiallyEmittedExpressions",e[e.All=7]="All"}(La=e.OuterExpressionKinds||(e.OuterExpressionKinds={})),e.skipOuterExpressions=Mn,e.skipParentheses=Bn,e.skipAssertions=Kn,e.skipPartiallyEmittedExpressions=Jn,e.startOnNewLine=zn,e.setOriginalNode=jn,e.disposeEmitNodes=qn,e.getOrCreateEmitNode=Wn,e.getEmitFlags=Hn,e.setEmitFlags=Gn,e.getSourceMapRange=Xn,e.setSourceMapRange=Qn,e.getTokenSourceMapRange=Yn,e.setTokenSourceMapRange=Zn,e.getCommentRange=$n,e.setCommentRange=ea,e.getConstantValue=ta,e.setConstantValue=ra,e.getExternalHelpersModuleName=na,e.getOrCreateExternalHelpersModuleNameIfNeeded=aa,e.addEmitHelper=ia,e.addEmitHelpers=oa,e.removeEmitHelper=sa,e.getEmitHelpers=ca,e.moveEmitHelpers=ua,e.compareEmitHelpers=_a,e.setTextRange=la,e.setNodeFlags=da,e.setMultiLine=pa,e.setHasTrailingComma=fa,e.getLocalNameForExternalImport=ma,e.getExternalModuleNameLiteral=ga,e.tryGetModuleNameFromFile=va,e.getInitializerOfBindingOrAssignmentElement=ba,e.getTargetOfBindingOrAssignmentElement=ka,e.getRestIndicatorOfBindingOrAssignmentElement=xa,e.getPropertyNameOfBindingOrAssignmentElement=Da,e.getElementsOfBindingOrAssignmentPattern=Sa,e.convertToArrayAssignmentElement=Ca,e.convertToObjectAssignmentElement=Ea,e.convertToAssignmentPattern=Ta,e.convertToObjectAssignmentPattern=Na,e.convertToArrayAssignmentPattern=Aa,e.convertToAssignmentElementTarget=wa,e.collectExternalModuleInfo=Pa}(ts||(ts={}));var ts;!function(e){function t(t,r,n){return 261===t?new(m||(m=e.objectAllocator.getSourceFileConstructor()))(t,r,n):70===t?new(f||(f=e.objectAllocator.getIdentifierConstructor()))(t,r,n):t<141?new(p||(p=e.objectAllocator.getTokenConstructor()))(t,r,n):new(d||(d=e.objectAllocator.getNodeConstructor()))(t,r,n)}function r(e,t){if(t)return e(t)}function n(e,t){if(t)return e(t)}function a(e,t){if(t)for(var r=0,n=t;r<n.length;r++){var a=n[r],i=e(a);if(i)return i}}function i(e,t,i){if(e){var o=i?n:a,s=i||t;switch(e.kind){case 141:return r(t,e.left)||r(t,e.right);case 143:return r(t,e.name)||r(t,e.constraint)||r(t,e.expression);case 258:return o(s,e.decorators)||o(s,e.modifiers)||r(t,e.name)||r(t,e.questionToken)||r(t,e.equalsToken)||r(t,e.objectAssignmentInitializer);case 259:return r(t,e.expression);case 144:case 147:case 146:case 257:case 223:case 174:return o(s,e.decorators)||o(s,e.modifiers)||r(t,e.propertyName)||r(t,e.dotDotDotToken)||r(t,e.name)||r(t,e.questionToken)||r(t,e.type)||r(t,e.initializer);case 158:case 159:case 153:case 154:case 155:return o(s,e.decorators)||o(s,e.modifiers)||o(s,e.typeParameters)||o(s,e.parameters)||r(t,e.type);case 149:case 148:case 150:case 151:case 152:case 184:case 225:case 185:return o(s,e.decorators)||o(s,e.modifiers)||r(t,e.asteriskToken)||r(t,e.name)||r(t,e.questionToken)||o(s,e.typeParameters)||o(s,e.parameters)||r(t,e.type)||r(t,e.equalsGreaterThanToken)||r(t,e.body);case 157:return r(t,e.typeName)||o(s,e.typeArguments);case 156:return r(t,e.parameterName)||r(t,e.type);case 160:return r(t,e.exprName);case 161:return o(s,e.members);case 162:return r(t,e.elementType);case 163:return o(s,e.elementTypes);case 164:case 165:return o(s,e.types);case 166:case 168:return r(t,e.type);case 169:return r(t,e.objectType)||r(t,e.indexType);case 170:return r(t,e.readonlyToken)||r(t,e.typeParameter)||r(t,e.questionToken)||r(t,e.type);case 171:return r(t,e.literal);case 172:case 173:return o(s,e.elements);case 175:return o(s,e.elements);case 176:return o(s,e.properties);case 177:return r(t,e.expression)||r(t,e.name);case 178:return r(t,e.expression)||r(t,e.argumentExpression);case 179:case 180:return r(t,e.expression)||o(s,e.typeArguments)||o(s,e.arguments);case 181:return r(t,e.tag)||r(t,e.template);case 182:return r(t,e.type)||r(t,e.expression);case 183:return r(t,e.expression);case 186:return r(t,e.expression);case 187:return r(t,e.expression);case 188:return r(t,e.expression);case 190:return r(t,e.operand);case 195:return r(t,e.asteriskToken)||r(t,e.expression);case 189:return r(t,e.expression);case 191:return r(t,e.operand);case 192:return r(t,e.left)||r(t,e.operatorToken)||r(t,e.right);case 200:return r(t,e.expression)||r(t,e.type);case 201:return r(t,e.expression);case 193:return r(t,e.condition)||r(t,e.questionToken)||r(t,e.whenTrue)||r(t,e.colonToken)||r(t,e.whenFalse);case 196:return r(t,e.expression);case 204:case 231:return o(s,e.statements);case 261:return o(s,e.statements)||r(t,e.endOfFileToken);case 205:return o(s,e.decorators)||o(s,e.modifiers)||r(t,e.declarationList);case 224:return o(s,e.declarations);case 207:return r(t,e.expression);case 208:return r(t,e.expression)||r(t,e.thenStatement)||r(t,e.elseStatement);case 209:return r(t,e.statement)||r(t,e.expression);case 210:return r(t,e.expression)||r(t,e.statement);case 211:return r(t,e.initializer)||r(t,e.condition)||r(t,e.incrementor)||r(t,e.statement);case 212:return r(t,e.initializer)||r(t,e.expression)||r(t,e.statement);case 213:return r(t,e.initializer)||r(t,e.expression)||r(t,e.statement);case 214:case 215:return r(t,e.label);case 216:return r(t,e.expression);case 217:return r(t,e.expression)||r(t,e.statement);case 218:return r(t,e.expression)||r(t,e.caseBlock);case 232:return o(s,e.clauses);case 253:return r(t,e.expression)||o(s,e.statements);case 254:return o(s,e.statements);case 219:return r(t,e.label)||r(t,e.statement);case 220:return r(t,e.expression);case 221:return r(t,e.tryBlock)||r(t,e.catchClause)||r(t,e.finallyBlock);case 256:return r(t,e.variableDeclaration)||r(t,e.block);case 145:return r(t,e.expression);case 226:case 197:return o(s,e.decorators)||o(s,e.modifiers)||r(t,e.name)||o(s,e.typeParameters)||o(s,e.heritageClauses)||o(s,e.members);case 227:return o(s,e.decorators)||o(s,e.modifiers)||r(t,e.name)||o(s,e.typeParameters)||o(s,e.heritageClauses)||o(s,e.members);case 228:return o(s,e.decorators)||o(s,e.modifiers)||r(t,e.name)||o(s,e.typeParameters)||r(t,e.type);case 229:return o(s,e.decorators)||o(s,e.modifiers)||r(t,e.name)||o(s,e.members);case 260:return r(t,e.name)||r(t,e.initializer);case 230:return o(s,e.decorators)||o(s,e.modifiers)||r(t,e.name)||r(t,e.body);case 234:return o(s,e.decorators)||o(s,e.modifiers)||r(t,e.name)||r(t,e.moduleReference);case 235:return o(s,e.decorators)||o(s,e.modifiers)||r(t,e.importClause)||r(t,e.moduleSpecifier);case 236:return r(t,e.name)||r(t,e.namedBindings);case 233:return r(t,e.name);case 237:return r(t,e.name);case 238:case 242:return o(s,e.elements);case 241:return o(s,e.decorators)||o(s,e.modifiers)||r(t,e.exportClause)||r(t,e.moduleSpecifier);case 239:case 243:return r(t,e.propertyName)||r(t,e.name);case 240:return o(s,e.decorators)||o(s,e.modifiers)||r(t,e.expression);case 194:return r(t,e.head)||o(s,e.templateSpans);case 202:return r(t,e.expression)||r(t,e.literal);case 142:return r(t,e.expression);case 255:return o(s,e.types);case 199:return r(t,e.expression)||o(s,e.typeArguments);case 245:return r(t,e.expression);case 244:return o(s,e.decorators);case 246:return r(t,e.openingElement)||o(s,e.children)||r(t,e.closingElement);case 247:case 248:return r(t,e.tagName)||o(s,e.attributes);case 250:return r(t,e.name)||r(t,e.initializer);case 251:return r(t,e.expression);case 252:return r(t,e.expression);case 249:return r(t,e.tagName);case 262:return r(t,e.type);case 266:return o(s,e.types);case 267:return o(s,e.types);case 265:return r(t,e.elementType);case 269:return r(t,e.type);case 268:return r(t,e.type);case 270:return r(t,e.literal);case 272:return r(t,e.name)||o(s,e.typeArguments);case 273:return r(t,e.type);case 274:return o(s,e.parameters)||r(t,e.type);case 275:return r(t,e.type);case 276:return r(t,e.type);case 277:return r(t,e.type);case 271:return r(t,e.name)||r(t,e.type);case 278:return o(s,e.tags);case 281:return r(t,e.preParameterName)||r(t,e.typeExpression)||r(t,e.postParameterName);case 282:return r(t,e.typeExpression);case 283:return r(t,e.typeExpression);case 280:return r(t,e.typeExpression);case 284:return o(s,e.typeParameters);case 285:return r(t,e.typeExpression)||r(t,e.fullName)||r(t,e.name)||r(t,e.jsDocTypeLiteral);case 287:return o(s,e.jsDocPropertyTags);case 286:return r(t,e.typeExpression)||r(t,e.name);case 294:return r(t,e.expression);case 288:return r(t,e.literal)}}}function o(t,r,n,a,i){void 0===a&&(a=!1),e.performance.mark("beforeParse");var o=g.parseSourceFile(t,r,n,void 0,a,i);return e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),o}function s(e,t){return g.parseIsolatedEntityName(e,t)}function c(e){return void 0!==e.externalModuleIndicator}function u(e,t,r,n){return y.updateSourceFile(e,t,r,n)}function _(e,t,r){var n=g.JSDocParser.parseIsolatedJSDocComment(e,t,r);return n&&n.jsDoc&&g.fixupParentReferences(n.jsDoc),n}function l(e,t,r){return g.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)}var d,p,f,m;e.createNode=t,e.forEachChild=i,e.createSourceFile=o,e.parseIsolatedEntityName=s,e.isExternalModule=c,e.updateSourceFile=u,e.parseIsolatedJSDocComment=_,e.parseJSDocTypeExpressionForTests=l;var g;!function(t){function r(t,r,n,a,i,u){u=e.ensureScriptKind(t,u),o(r,n,a,u);var _=c(t,n,i,u);return s(),_}function n(e,t){o(e,t,void 0,1),M();var r=He(!0),n=1===L()&&!$a.length;return s(),n?r:void 0}function a(e){return 4===e||2===e||1===e?1:0}function o(t,r,n,i){Ga=e.objectAllocator.getNodeConstructor(),Xa=e.objectAllocator.getTokenConstructor(),Qa=e.objectAllocator.getIdentifierConstructor(),Ya=e.objectAllocator.getSourceFileConstructor(),ri=t,ei=n,$a=[],oi=0,ai=e.createMap(),ii=0,ni=0,si=1===i||2===i?65536:0,_i=!1,ci.setText(ri),ci.setOnError(O),ci.setScriptTarget(r),ci.setLanguageVariant(a(i))}function s(){ci.setText(""),ci.setOnError(void 0),$a=void 0,Za=void 0,ai=void 0,ei=void 0,ri=void 0}function c(t,r,n,a){return Za=l(t,r,a),Za.flags=si,M(),Wa(Za),Za.statements=we(0,Kn),e.Debug.assert(1===L()),Za.endOfFileToken=Z(),Ha(Za),Za.nodeCount=ni,Za.identifierCount=ii,Za.identifiers=ai,Za.parseDiagnostics=$a,n&&_(Za),Za}function u(t){var r=e.getJSDocCommentRanges(t,Za.text);if(r)for(var n=0,a=r;n<a.length;n++){var i=a[n],o=pi.parseJSDocComment(t,i.pos,i.end-i.pos);o&&(t.jsDoc||(t.jsDoc=[]),t.jsDoc.push(o))}return t}function _(e){function t(e){if(e.parent!==r){e.parent=r;var n=r;if(r=e,i(e,t),e.jsDoc)for(var a=0,o=e.jsDoc;a<o.length;a++){var s=o[a];s.parent=e,r=s,i(s,t)}r=n}}var r=e;i(e,t)}function l(t,r,n){var i=new Ya(261,0,ri.length);return ni++,i.text=ri,i.bindDiagnostics=[],i.languageVersion=r,i.fileName=e.normalizePath(t),i.languageVariant=a(n),i.isDeclarationFile=e.fileExtensionIs(i.fileName,".d.ts"),i.scriptKind=n,i}function d(e,t){e?si|=t:si&=~t}function p(e){d(e,2048)}function f(e){d(e,4096)}function m(e){d(e,8192)}function g(e){d(e,16384)}function y(e,t){var r=e&si;if(r){d(!1,r);var n=t();return d(!0,r),n}return t()}function v(e,t){var r=e&~si;if(r){d(!0,r);var n=t();return d(!1,r),n}return t()}function h(e){return y(2048,e)}function b(e){return v(2048,e)}function k(e){return v(4096,e)}function x(e){return v(8192,e)}function D(e){return v(16384,e)}function S(e){return y(16384,e)}function C(e){return v(20480,e)}function E(e){return 0!==(si&e)}function T(){return E(4096)}function N(){return E(2048)}function A(){return E(8192)}function w(){return E(16384)}function P(e,t){var r=ci.getTokenPos(),n=ci.getTextPos()-r;F(r,n,e,t)}function F(t,r,n,a){var i=e.lastOrUndefined($a);i&&t===i.start||$a.push(e.createFileDiagnostic(Za,t,r,n,a)),_i=!0}function O(e,t){var r=ci.getTextPos();F(r,t||0,e)}function I(){return ci.getStartPos()}function R(){return ci.getStartPos()}function L(){return ti}function M(){return ti=ci.scan()}function B(){return ti=ci.reScanGreaterToken()}function K(){return ti=ci.reScanSlashToken()}function J(){return ti=ci.reScanTemplateToken()}function z(){return ti=ci.scanJsxIdentifier()}function j(){return ti=ci.scanJsxToken()}function V(){return ti=ci.scanJsxAttributeValue()}function U(t,r){var n=ti,a=$a.length,i=_i,o=si,s=r?ci.lookAhead(t):ci.tryScan(t);return e.Debug.assert(o===si),s&&!r||(ti=n,$a.length=a,_i=i),s}function q(e){return U(e,!0)}function W(e){return U(e,!1)}function H(){return 70===L()||(115!==L()||!T())&&((120!==L()||!w())&&L()>106)}function G(t,r,n){return void 0===n&&(n=!0),L()===t?(n&&M(),!0):(r?P(r):P(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function X(e){return L()===e&&(M(),!0)}function Q(e){if(L()===e)return Z()}function Y(e,t,r,n){return Q(e)||ae(e,t,r,n)}function Z(){var e=te(L());return M(),ne(e)}function $(){return 24===L()||(17===L()||1===L()||ci.hasPrecedingLineBreak())}function ee(){return $()?(24===L()&&M(),!0):G(24)}function te(e,t){return ni++,t>=0||(t=ci.getStartPos()),e>=141?new Ga(e,t,t):70===e?new Qa(e,t,t):new Xa(e,t,t)}function re(e,t){var r=e||[];return t>=0||(t=I()),r.pos=t,r.end=t,r}function ne(e,t){return e.end=void 0===t?ci.getStartPos():t,si&&(e.flags|=si),_i&&(_i=!1,e.flags|=32768),e}function ae(e,t,r,n){t?F(ci.getStartPos(),0,r,n):P(r,n);var a=te(e,ci.getStartPos());return a.text="",ne(a)}function ie(t){return t=e.escapeIdentifier(t),ai[t]||(ai[t]=t)}function oe(t,r){if(ii++,t){var n=te(70);return 70!==L()&&(n.originalKeywordKind=L()),n.text=ie(ci.getTokenValue()),M(),ne(n)}return ae(70,!1,r||e.Diagnostics.Identifier_expected)}function se(e){return oe(H(),e)}function ce(){return oe(e.tokenIsIdentifierOrKeyword(L()))}function ue(){return e.tokenIsIdentifierOrKeyword(L())||9===L()||8===L()}function _e(e){return 9===L()||8===L()?Ye(!0):e&&20===L()?fe():ce()}function le(){return _e(!0)}function de(){return _e(!1)}function pe(){return 9===L()||8===L()||e.tokenIsIdentifierOrKeyword(L())}function fe(){var e=te(142);return G(20),e.expression=h(er),G(21),ne(e)}function me(e){return L()===e&&W(ye)}function ge(){return M(),!ci.hasPrecedingLineBreak()&&he()}function ye(){return 75===L()?82===M():83===L()?(M(),78===L()?q(be):38!==L()&&117!==L()&&16!==L()&&he()):78===L()?be():114===L()?(M(),he()):ge()}function ve(){return e.isModifierKind(L())&&W(ye)}function he(){return 20===L()||16===L()||38===L()||23===L()||ue()}function be(){return M(),74===L()||88===L()||119===L()&&q(Fn)}function ke(t,r){var n=Fe(t);if(n)return!0;switch(t){case 0:case 1:case 3:return!(24===L()&&r)&&Ln();case 2:return 72===L()||78===L();case 4:return q(bt);case 5:return q(sa)||24===L()&&!r;case 6:return 20===L()||ue();case 12:return 20===L()||38===L()||23===L()||ue();case 17:return ue();case 9:return 20===L()||23===L()||ue();case 7:return 16===L()?q(xe):r?H()&&!Ce():Yt()&&!Ce();case 8:return Hn();case 10:return 25===L()||23===L()||Hn();case 18:return H();case 11:case 15:return 25===L()||23===L()||Zt();case 16:return ct();case 19:case 20:return 25===L()||Rt();case 21:return ba();case 22:return e.tokenIsIdentifierOrKeyword(L());case 13:return e.tokenIsIdentifierOrKeyword(L())||16===L();case 14:return!0;case 23:case 24:case 26:return pi.isJSDocType();case 25:return pe()}e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function xe(){if(e.Debug.assert(16===L()),17===M()){var t=M();return 25===t||16===t||84===t||107===t}return!0}function De(){return M(),H()}function Se(){return M(),e.tokenIsIdentifierOrKeyword(L())}function Ce(){return(107===L()||84===L())&&q(Ee)}function Ee(){return M(),Zt()}function Te(e){if(1===L())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 22:return 17===L();case 3:return 17===L()||72===L()||78===L();case 7:return 16===L()||84===L()||107===L();case 8:return Ne();case 18:return 28===L()||18===L()||16===L()||84===L()||107===L();case 11:return 19===L()||24===L();case 15:case 20:case 10:return 21===L();case 16:case 17:return 19===L()||21===L();case 19:return 25!==L();case 21:return 16===L()||17===L();case 13:return 28===L()||40===L();case 14:return 26===L()&&q(Fa);case 23:return 19===L()||55===L()||17===L();case 24:return 28===L()||17===L();case 26:return 21===L()||17===L();case 25:return 17===L()}}function Ne(){return!!$()||(!!yr(L())||35===L())}function Ae(){for(var e=0;e<27;e++)if(oi&1<<e&&(ke(e,!0)||Te(e)))return!0;return!1}function we(e,t){var r=oi;oi|=1<<e;for(var n=re();!Te(e);)if(ke(e,!1)){var a=Pe(e,t);n.push(a)}else if(je(e))break;return n.end=R(),oi=r,n}function Pe(e,t){var r=Fe(e);return r?Oe(r):t()}function Fe(t){if(!_i&&ei){var r=ei.currentNode(ci.getStartPos());if(!e.nodeIsMissing(r)&&!r.intersectsChange&&!e.containsParseError(r)){var n=96256&r.flags;if(n===si&&Ie(r,t))return r}}}function Oe(e){return ci.setTextPos(e.end),M(),e}function Ie(e,t){switch(t){case 5:return Re(e);case 2:return Le(e);case 0:case 1:case 3:return Me(e);case 6:return Be(e);case 4:return Ke(e);case 8:return Je(e);case 16:return ze(e);case 17:return!1;case 21:case 18:case 20:case 19:case 11:case 12:case 7:case 13:case 14:}return!1}function Re(e){if(e)switch(e.kind){case 150:case 155:case 151:case 152:case 147:case 203:return!0;case 149:var t=e,r=70===t.name.kind&&122===t.name.originalKeywordKind;return!r}return!1}function Le(e){if(e)switch(e.kind){case 253:case 254:return!0}return!1}function Me(e){if(e)switch(e.kind){case 225:case 205:case 204:case 208:case 207:case 220:case 216:case 218:case 215:case 214:case 212:case 213:case 211:case 210:case 217:case 206:case 221:case 219:case 209:case 222:case 235:case 234:case 241:case 240:case 230:case 226:case 227:case 229:case 228:return!0}return!1}function Be(e){return 260===e.kind}function Ke(e){if(e)switch(e.kind){case 154:case 148:case 155:case 146:case 153:return!0}return!1}function Je(e){if(223!==e.kind)return!1;var t=e;return void 0===t.initializer}function ze(e){if(144!==e.kind)return!1;var t=e;return void 0===t.initializer}function je(e){return P(Ve(e)),!!Ae()||(M(),!1)}function Ve(t){switch(t){case 0:return e.Diagnostics.Declaration_or_statement_expected;case 1:return e.Diagnostics.Declaration_or_statement_expected;case 2:return e.Diagnostics.case_or_default_expected;case 3:return e.Diagnostics.Statement_expected;case 17:case 4:return e.Diagnostics.Property_or_signature_expected;case 5:return e.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected;case 6:return e.Diagnostics.Enum_member_expected;case 7:return e.Diagnostics.Expression_expected;case 8:return e.Diagnostics.Variable_declaration_expected;case 9:return e.Diagnostics.Property_destructuring_pattern_expected;case 10:return e.Diagnostics.Array_element_destructuring_pattern_expected;case 11:return e.Diagnostics.Argument_expression_expected;case 12:return e.Diagnostics.Property_assignment_expected;case 15:return e.Diagnostics.Expression_or_comma_expected;case 16:return e.Diagnostics.Parameter_declaration_expected;case 18:return e.Diagnostics.Type_parameter_declaration_expected;case 19:return e.Diagnostics.Type_argument_expected;case 20:return e.Diagnostics.Type_expected;case 21:return e.Diagnostics.Unexpected_token_expected;case 22:return e.Diagnostics.Identifier_expected;case 13:return e.Diagnostics.Identifier_expected;case 14:return e.Diagnostics.Identifier_expected;case 23:return e.Diagnostics.Parameter_declaration_expected;case 24:return e.Diagnostics.Type_argument_expected;case 26:return e.Diagnostics.Type_expected;case 25:return e.Diagnostics.Property_assignment_expected}}function Ue(e,t,r){var n=oi;oi|=1<<e;for(var a=re(),i=-1;;)if(ke(e,!1)){if(a.push(Pe(e,t)),i=ci.getTokenPos(),X(25))continue;if(i=-1,Te(e))break;G(25),r&&24===L()&&!ci.hasPrecedingLineBreak()&&M();
}else{if(Te(e))break;if(je(e))break}return i>=0&&(a.hasTrailingComma=!0),a.end=R(),oi=n,a}function qe(){return re()}function We(e,t,r,n){if(G(r)){var a=Ue(e,t);return G(n),a}return qe()}function He(e,t){for(var r=se(t);X(22);){var n=te(141,r.pos);n.left=r,n.right=Ge(e),r=ne(n)}return r}function Ge(t){if(ci.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(L())){var r=q(Pn);if(r)return ae(70,!0,e.Diagnostics.Identifier_expected)}return t?ce():se()}function Xe(){var t=te(194);t.head=Ze(),e.Debug.assert(13===t.head.kind,"Template head has wrong token kind");var r=re();do r.push(Qe());while(14===e.lastOrUndefined(r).literal.kind);return r.end=R(),t.templateSpans=r,ne(t)}function Qe(){var t=te(202);t.expression=h(er);var r;return 17===L()?(J(),r=$e()):r=Y(15,!1,e.Diagnostics._0_expected,e.tokenToString(17)),t.literal=r,ne(t)}function Ye(e){return et(L(),e)}function Ze(){var t=et(L(),!1);return e.Debug.assert(13===t.kind,"Template head has wrong token kind"),t}function $e(){var t=et(L(),!1);return e.Debug.assert(14===t.kind||15===t.kind,"Template fragment has wrong token kind"),t}function et(t,r){var n=te(t),a=ci.getTokenValue();n.text=r?ie(a):a,ci.hasExtendedUnicodeEscape()&&(n.hasExtendedUnicodeEscape=!0),ci.isUnterminated()&&(n.isUnterminated=!0);var i=ci.getTokenPos();return M(),ne(n),8===n.kind&&48===ri.charCodeAt(i)&&e.isOctalDigit(ri.charCodeAt(i+1))&&(n.isOctalLiteral=!0),n}function tt(){var t=He(!1,e.Diagnostics.Type_expected),r=te(157,t.pos);return r.typeName=t,ci.hasPrecedingLineBreak()||26!==L()||(r.typeArguments=We(19,Gt,26,28)),ne(r)}function rt(e){M();var t=te(156,e.pos);return t.parameterName=e,t.type=Gt(),ne(t)}function nt(){var e=te(167);return M(),ne(e)}function at(){var e=te(160);return G(102),e.exprName=He(!0),ne(e)}function it(){var e=te(143);return e.name=se(),X(84)&&(Rt()||!Zt()?e.constraint=Gt():e.expression=Ar()),ne(e)}function ot(){if(26===L())return We(18,it,26,28)}function st(){if(X(55))return Gt()}function ct(){return 23===L()||Hn()||e.isModifierKind(L())||56===L()||98===L()}function ut(){var t=te(144);return 98===L()?(t.name=oe(!0,void 0),t.type=st(),ne(t)):(t.decorators=ca(),t.modifiers=ua(),t.dotDotDotToken=Q(23),t.name=Gn(),0===e.getFullWidth(t.name)&&!e.hasModifiers(t)&&e.isModifierKind(L())&&M(),t.questionToken=Q(54),t.type=st(),t.initializer=_t(!0),u(ne(t)))}function _t(e){return e?lt():aa()}function lt(){return tr(!0)}function dt(e,t,r,n,a){var i=35===e;a.typeParameters=ot(),a.parameters=pt(t,r,n),i?(G(e),a.type=Wt()):X(e)&&(a.type=Wt())}function pt(e,t,r){if(G(18)){var n=T(),a=w();f(e),g(t);var i=Ue(16,ut);if(f(n),g(a),!G(19)&&r)return;return i}return r?void 0:qe()}function ft(){X(25)||ee()}function mt(e){var t=te(e);return 154===e&&G(93),dt(55,!1,!1,!1,t),ft(),u(ne(t))}function gt(){return 20===L()&&q(yt)}function yt(){if(M(),23===L()||21===L())return!0;if(e.isModifierKind(L())){if(M(),H())return!0}else{if(!H())return!1;M()}return 55===L()||25===L()||54===L()&&(M(),55===L()||25===L()||21===L())}function vt(e,t,r){var n=te(155,e);return n.decorators=t,n.modifiers=r,n.parameters=We(16,ut,20,21),n.type=Qt(),ft(),ne(n)}function ht(e,t){var r=le(),n=Q(54);if(18===L()||26===L()){var a=te(148,e);return a.modifiers=t,a.name=r,a.questionToken=n,dt(55,!1,!1,!1,a),ft(),u(ne(a))}var i=te(146,e);return i.modifiers=t,i.name=r,i.questionToken=n,i.type=Qt(),57===L()&&(i.initializer=aa()),ft(),u(ne(i))}function bt(){var t;if(18===L()||26===L())return!0;for(;e.isModifierKind(L());)t=L(),M();return 20===L()||(ue()&&(t=L(),M()),!!t&&(18===L()||26===L()||54===L()||55===L()||25===L()||$()))}function kt(){if(18===L()||26===L())return mt(153);if(93===L()&&q(xt))return mt(154);var e=I(),t=ua();return gt()?vt(e,void 0,t):ht(e,t)}function xt(){return M(),18===L()||26===L()}function Dt(){var e=te(161);return e.members=St(),ne(e)}function St(){var e;return G(16)?(e=we(4,kt),G(17)):e=qe(),e}function Ct(){return M(),130===L()&&M(),20===L()&&De()&&91===M()}function Et(){var e=te(143);return e.name=se(),G(91),e.constraint=Gt(),ne(e)}function Tt(){var e=te(170);return G(16),e.readonlyToken=Q(130),G(20),e.typeParameter=Et(),G(21),e.questionToken=Q(54),e.type=Qt(),ee(),G(17),ne(e)}function Nt(){var e=te(163);return e.elementTypes=We(20,Gt,20,21),ne(e)}function At(){var e=te(166);return G(18),e.type=Gt(),G(19),ne(e)}function wt(e){var t=te(e);return 159===e&&G(93),dt(35,!1,!1,!1,t),ne(t)}function Pt(){var e=Z();return 22===L()?void 0:e}function Ft(){var e=te(171);return e.literal=wr(),ne(e),e}function Ot(){return 8===M()}function It(){switch(L()){case 118:case 134:case 132:case 121:case 135:case 137:case 129:var e=W(Pt);return e||tt();case 9:case 8:case 100:case 85:return Ft();case 37:return q(Ot)?Ft():tt();case 104:case 94:return Z();case 98:var t=nt();return 125!==L()||ci.hasPrecedingLineBreak()?t:rt(t);case 102:return at();case 16:return q(Ct)?Tt():Dt();case 20:return Nt();case 18:return At();default:return tt()}}function Rt(){switch(L()){case 118:case 134:case 132:case 121:case 135:case 104:case 137:case 94:case 98:case 102:case 129:case 16:case 20:case 26:case 48:case 47:case 93:case 9:case 8:case 100:case 85:return!0;case 37:return q(Ot);case 18:return q(Lt);default:return H()}}function Lt(){return M(),19===L()||ct()||Rt()}function Mt(){for(var e=It();!ci.hasPrecedingLineBreak()&&X(20);)if(Rt()){var t=te(169,e.pos);t.objectType=e,t.indexType=Gt(),G(21),e=ne(t)}else{var t=te(162,e.pos);t.elementType=e,G(21),e=ne(t)}return e}function Bt(e){var t=te(168);return G(e),t.operator=e,t.type=Kt(),ne(t)}function Kt(){switch(L()){case 126:return Bt(126)}return Mt()}function Jt(e,t,r){X(r);var n=t();if(L()===r){for(var a=re([n],n.pos);X(r);)a.push(t());a.end=R();var i=te(e,n.pos);i.types=a,n=ne(i)}return n}function zt(){return Jt(165,Kt,47)}function jt(){return Jt(164,zt,48)}function Vt(){return 26===L()||18===L()&&q(qt)}function Ut(){if(e.isModifierKind(L())&&ua(),H()||98===L())return M(),!0;if(20===L()||16===L()){var t=$a.length;return Gn(),t===$a.length}return!1}function qt(){if(M(),19===L()||23===L())return!0;if(Ut()){if(55===L()||25===L()||54===L()||57===L())return!0;if(19===L()&&(M(),35===L()))return!0}return!1}function Wt(){var e=H()&&W(Ht),t=Gt();if(e){var r=te(156,e.pos);return r.parameterName=e,r.type=t,ne(r)}return t}function Ht(){var e=se();if(125===L()&&!ci.hasPrecedingLineBreak())return M(),e}function Gt(){return y(20480,Xt)}function Xt(){return Vt()?wt(158):93===L()?wt(159):jt()}function Qt(){return X(55)?Gt():void 0}function Yt(){switch(L()){case 98:case 96:case 94:case 100:case 85:case 8:case 9:case 12:case 13:case 18:case 20:case 16:case 88:case 74:case 93:case 40:case 62:case 70:return!0;default:return H()}}function Zt(){if(Yt())return!0;switch(L()){case 36:case 37:case 51:case 50:case 79:case 102:case 104:case 42:case 43:case 26:case 120:case 115:return!0;default:return!!hr()||H()}}function $t(){return 16!==L()&&88!==L()&&74!==L()&&56!==L()&&Zt()}function er(){var e=A();e&&m(!1);for(var t,r=rr();t=Q(25);)r=kr(r,t,rr());return e&&m(!0),r}function tr(e){if(57===L()||!(ci.hasPrecedingLineBreak()||e&&16===L())&&Zt())return G(57),rr()}function rr(){if(nr())return ir();var t=sr()||lr();if(t)return t;var r=gr(0);return 70===r.kind&&35===L()?or(r):e.isLeftHandSideExpression(r)&&e.isAssignmentOperator(B())?kr(r,Z(),rr()):mr(r)}function nr(){return 115===L()&&(!!T()||q(On))}function ar(){return M(),!ci.hasPrecedingLineBreak()&&H()}function ir(){var e=te(195);return M(),ci.hasPrecedingLineBreak()||38!==L()&&!Zt()?ne(e):(e.asteriskToken=Q(38),e.expression=rr(),ne(e))}function or(t,r){e.Debug.assert(35===L(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var n;r?(n=te(185,r.pos),n.modifiers=r):n=te(185,t.pos);var a=te(144,t.pos);return a.name=t,ne(a),n.parameters=re([a],a.pos),n.parameters.end=a.end,n.equalsGreaterThanToken=Y(35,!1,e.Diagnostics._0_expected,"=>"),n.body=fr(!!r),u(ne(n))}function sr(){var t=cr();if(0!==t){var r=1===t?pr(!0):W(_r);if(r){var n=!!(256&e.getModifierFlags(r)),a=L();return r.equalsGreaterThanToken=Y(35,!1,e.Diagnostics._0_expected,"=>"),r.body=35===a||16===a?fr(n):se(),u(ne(r))}}}function cr(){return 18===L()||26===L()||119===L()?q(ur):35===L()?1:0}function ur(){if(119===L()){if(M(),ci.hasPrecedingLineBreak())return 0;if(18!==L()&&26!==L())return 0}var t=L(),r=M();if(18===t){if(19===r){var n=M();switch(n){case 35:case 55:case 16:return 1;default:return 0}}return 20===r||16===r?2:23===r?1:H()?55===M()?1:2:0}if(e.Debug.assert(26===t),!H())return 0;if(1===Za.languageVariant){var a=q(function(){var e=M();if(84===e){var t=M();switch(t){case 57:case 28:return!1;default:return!0}}else if(25===e)return!0;return!1});return a?1:0}return 2}function _r(){return pr(!1)}function lr(){if(119===L()){var e=q(dr);if(1===e){var t=_a(),r=gr(0);return or(r,t)}}}function dr(){if(119===L()){if(M(),ci.hasPrecedingLineBreak()||35===L())return 0;var e=gr(0);if(!ci.hasPrecedingLineBreak()&&70===e.kind&&35===L())return 1}return 0}function pr(t){var r=te(185);r.modifiers=_a();var n=!!(256&e.getModifierFlags(r));if(dt(55,!1,n,!t,r),r.parameters&&(t||35===L()||16===L()))return r}function fr(e){return 16===L()?pn(!1,e,!1):24!==L()&&88!==L()&&74!==L()&&Ln()&&!$t()?pn(!1,e,!0):e?D(rr):S(rr)}function mr(t){var r=Q(54);if(!r)return t;var n=te(193,t.pos);return n.condition=t,n.questionToken=r,n.whenTrue=y(ui,rr),n.colonToken=Y(55,!1,e.Diagnostics._0_expected,e.tokenToString(55)),n.whenFalse=rr(),ne(n)}function gr(e){var t=Ar();return vr(e,t)}function yr(e){return 91===e||140===e}function vr(e,t){for(;;){B();var r=br(),n=39===L()?r>=e:r>e;if(!n)break;if(91===L()&&N())break;if(117===L()){if(ci.hasPrecedingLineBreak())break;M(),t=xr(t,Gt())}else t=kr(t,Z(),gr(r))}return t}function hr(){return(!N()||91!==L())&&br()>0}function br(){switch(L()){case 53:return 1;case 52:return 2;case 48:return 3;case 49:return 4;case 47:return 5;case 31:case 32:case 33:case 34:return 6;case 26:case 28:case 29:case 30:case 92:case 91:case 117:return 7;case 44:case 45:case 46:return 8;case 36:case 37:return 9;case 38:case 40:case 41:return 10;case 39:return 11}return-1}function kr(e,t,r){var n=te(192,e.pos);return n.left=e,n.operatorToken=t,n.right=r,ne(n)}function xr(e,t){var r=te(200,e.pos);return r.expression=e,r.type=t,ne(r)}function Dr(){var e=te(190);return e.operator=L(),M(),e.operand=wr(),ne(e)}function Sr(){var e=te(186);return M(),e.expression=wr(),ne(e)}function Cr(){var e=te(187);return M(),e.expression=wr(),ne(e)}function Er(){var e=te(188);return M(),e.expression=wr(),ne(e)}function Tr(){return 120===L()&&(!!w()||q(ar))}function Nr(){var e=te(189);return M(),e.expression=wr(),ne(e)}function Ar(){if(Pr()){var t=Fr();return 39===L()?vr(br(),t):t}var r=L(),n=wr();if(39===L()){var a=e.skipTrivia(ri,n.pos);182===n.kind?F(a,n.end-a,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):F(a,n.end-a,e.Diagnostics.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,e.tokenToString(r))}return n}function wr(){switch(L()){case 36:case 37:case 51:case 50:return Dr();case 79:return Sr();case 102:return Cr();case 104:return Er();case 26:return Hr();case 120:if(Tr())return Nr();default:return Fr()}}function Pr(){switch(L()){case 36:case 37:case 51:case 50:case 79:case 102:case 104:case 120:return!1;case 26:if(1!==Za.languageVariant)return!1;default:return!0}}function Fr(){if(42===L()||43===L()){var t=te(190);return t.operator=L(),M(),t.operand=Or(),ne(t)}if(1===Za.languageVariant&&26===L()&&q(Se))return Mr(!0);var r=Or();if(e.Debug.assert(e.isLeftHandSideExpression(r)),(42===L()||43===L())&&!ci.hasPrecedingLineBreak()){var t=te(191,r.pos);return t.operand=r,t.operator=L(),M(),ne(t)}return r}function Or(){var e=96===L()?Rr():Ir();return Xr(e)}function Ir(){var e=$r();return Gr(e)}function Rr(){var t=Z();if(18===L()||22===L()||20===L())return t;var r=te(177,t.pos);return r.expression=t,Y(22,!1,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),r.name=Ge(!0),ne(r)}function Lr(e,t){return e.kind===t.kind&&(70===e.kind?e.text===t.text:98===e.kind||e.name.text===t.name.text&&Lr(e.expression,t.expression))}function Mr(t){var r,n=zr(t);if(248===n.kind){var a=te(246,n.pos);a.openingElement=n,a.children=Jr(a.openingElement.tagName),a.closingElement=Wr(t),Lr(a.openingElement.tagName,a.closingElement.tagName)||F(a.closingElement.pos,a.closingElement.end-a.closingElement.pos,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(ri,a.openingElement.tagName)),r=ne(a)}else e.Debug.assert(247===n.kind),r=n;if(t&&26===L()){var i=W(function(){return Mr(!0)});if(i){P(e.Diagnostics.JSX_expressions_must_have_one_parent_element);var o=te(192,r.pos);return o.end=i.end,o.left=r,o.right=i,o.operatorToken=ae(25,!1,void 0),o.operatorToken.pos=o.operatorToken.end=o.right.pos,o}}return r}function Br(){var e=te(10,ci.getStartPos());return ti=ci.scanJsxToken(),ne(e)}function Kr(){switch(L()){case 10:return Br();case 16:return Vr(!1);case 26:return Mr(!1)}e.Debug.fail("Unknown JSX child kind "+L())}function Jr(t){var r=re(),n=oi;for(oi|=16384;;){if(ti=ci.reScanJsxToken(),27===L())break;if(1===L()){F(t.pos,t.end-t.pos,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(ri,t));break}r.push(Kr())}return r.end=ci.getTokenPos(),oi=n,r}function zr(e){var t=ci.getStartPos();G(26);var r,n=jr(),a=we(13,Ur);return 28===L()?(r=te(248,t),j()):(G(40),e?G(28):(G(28,void 0,!1),j()),r=te(247,t)),r.tagName=n,r.attributes=a,ne(r)}function jr(){z();for(var e=98===L()?Z():ce();X(22);){var t=te(177,e.pos);t.expression=e,t.name=Ge(!0),e=ne(t)}return e}function Vr(e){var t=te(252);return G(16),17!==L()&&(t.expression=rr()),e?G(17):(G(17,void 0,!1),j()),ne(t)}function Ur(){if(16===L())return qr();z();var e=te(250);if(e.name=ce(),57===L())switch(V()){case 9:e.initializer=Ye();break;default:e.initializer=Vr(!0)}return ne(e)}function qr(){var e=te(251);return G(16),G(23),e.expression=er(),G(17),ne(e)}function Wr(e){var t=te(249);return G(27),t.tagName=jr(),e?G(28):(G(28,void 0,!1),j()),ne(t)}function Hr(){var e=te(182);return G(26),e.type=Gt(),G(28),e.expression=wr(),ne(e)}function Gr(e){for(;;){var t=Q(22);if(t){var r=te(177,e.pos);r.expression=e,r.name=Ge(!0),e=ne(r)}else if(50!==L()||ci.hasPrecedingLineBreak())if(A()||!X(20)){if(12!==L()&&13!==L())return e;var n=te(181,e.pos);n.tag=e,n.template=12===L()?Ye():Xe(),e=ne(n)}else{var a=te(178,e.pos);if(a.expression=e,21!==L()&&(a.argumentExpression=h(er),9===a.argumentExpression.kind||8===a.argumentExpression.kind)){var i=a.argumentExpression;i.text=ie(i.text)}G(21),e=ne(a)}else{M();var o=te(201,e.pos);o.expression=e,e=ne(o)}}}function Xr(e){for(;;)if(e=Gr(e),26!==L()){if(18!==L())return e;var t=te(179,e.pos);t.expression=e,t.arguments=Qr(),e=ne(t)}else{var r=W(Yr);if(!r)return e;var t=te(179,e.pos);t.expression=e,t.typeArguments=r,t.arguments=Qr(),e=ne(t)}}function Qr(){G(18);var e=Ue(11,nn);return G(19),e}function Yr(){if(X(26)){var e=Ue(19,Gt);if(G(28))return e&&Zr()?e:void 0}}function Zr(){switch(L()){case 18:case 22:case 19:case 21:case 55:case 24:case 54:case 31:case 33:case 32:case 34:case 52:case 53:case 49:case 47:case 48:case 17:case 1:return!0;case 25:case 16:default:return!1}}function $r(){switch(L()){case 8:case 9:case 12:return Ye();case 98:case 96:case 94:case 100:case 85:return Z();case 18:return en();case 20:return an();case 16:return cn();case 119:if(!q(Fn))break;return un();case 74:return da();case 88:return un();case 93:return ln();case 40:case 62:if(11===K())return Ye();break;case 13:return Xe()}return se(e.Diagnostics.Expression_expected)}function en(){var e=te(183);return G(18),e.expression=h(er),G(19),ne(e)}function tn(){var e=te(196);return G(23),e.expression=rr(),ne(e)}function rn(){return 23===L()?tn():25===L()?te(198):rr()}function nn(){return y(ui,rn)}function an(){var e=te(175);return G(20),ci.hasPrecedingLineBreak()&&(e.multiLine=!0),e.elements=Ue(15,rn),G(21),ne(e)}function on(e,t,r){return me(124)?ia(151,e,t,r):me(133)?ia(152,e,t,r):void 0}function sn(){var e=ci.getStartPos(),t=Q(23);if(t){var r=te(259,e);return r.expression=rr(),u(ne(r))}var n=ca(),a=ua(),i=on(e,n,a);if(i)return i;var o=Q(38),s=H(),c=le(),_=Q(54);if(o||18===L()||26===L())return ta(e,n,a,o,c,_);var l=s&&(25===L()||17===L()||57===L());if(l){var d=te(258,e);d.name=c,d.questionToken=_;var p=Q(57);return p&&(d.equalsToken=p,d.objectAssignmentInitializer=h(rr)),u(ne(d))}var f=te(257,e);return f.modifiers=a,f.name=c,f.questionToken=_,G(55),f.initializer=h(rr),u(ne(f))}function cn(){var e=te(176);return G(16),ci.hasPrecedingLineBreak()&&(e.multiLine=!0),e.properties=Ue(12,sn,!0),G(17),ne(e)}function un(){var t=A();t&&m(!1);var r=te(184);r.modifiers=ua(),G(88),r.asteriskToken=Q(38);var n=!!r.asteriskToken,a=!!(256&e.getModifierFlags(r));return r.name=n&&a?C(_n):n?k(_n):a?D(_n):_n(),dt(55,n,a,!1,r),r.body=pn(n,a,!1),t&&m(!0),u(ne(r))}function _n(){return H()?se():void 0}function ln(){var e=te(180);return G(93),e.expression=Ir(),e.typeArguments=W(Yr),(e.typeArguments||18===L())&&(e.arguments=Qr()),ne(e)}function dn(e,t){var r=te(204);return G(16,t)||e?(ci.hasPrecedingLineBreak()&&(r.multiLine=!0),r.statements=we(1,Kn),G(17)):r.statements=qe(),ne(r)}function pn(e,t,r,n){var a=T();f(e);var i=w();g(t);var o=A();o&&m(!1);var s=dn(r,n);return o&&m(!0),f(a),g(i),s}function fn(){var e=te(206);return G(24),ne(e)}function mn(){var e=te(208);return G(89),G(18),e.expression=h(er),G(19),e.thenStatement=Kn(),e.elseStatement=X(81)?Kn():void 0,ne(e)}function gn(){var e=te(209);return G(80),e.statement=Kn(),G(105),G(18),e.expression=h(er),G(19),X(24),ne(e)}function yn(){var e=te(210);return G(105),G(18),e.expression=h(er),G(19),e.statement=Kn(),ne(e)}function vn(){var e=I();G(87),G(18);var t=void 0;24!==L()&&(t=103===L()||109===L()||75===L()?Qn(!0):b(er));var r;if(X(91)){var n=te(212,e);n.initializer=t,n.expression=h(er),G(19),r=n}else if(X(140)){var a=te(213,e);a.initializer=t,a.expression=h(rr),G(19),r=a}else{var i=te(211,e);i.initializer=t,G(24),24!==L()&&19!==L()&&(i.condition=h(er)),G(24),19!==L()&&(i.incrementor=h(er)),G(19),r=i}return r.statement=Kn(),ne(r)}function hn(e){var t=te(e);return G(215===e?71:76),$()||(t.label=se()),ee(),ne(t)}function bn(){var e=te(216);return G(95),$()||(e.expression=h(er)),ee(),ne(e)}function kn(){var e=te(217);return G(106),G(18),e.expression=h(er),G(19),e.statement=Kn(),ne(e)}function xn(){var e=te(253);return G(72),e.expression=h(er),G(55),e.statements=we(3,Kn),ne(e)}function Dn(){var e=te(254);return G(78),G(55),e.statements=we(3,Kn),ne(e)}function Sn(){return 72===L()?xn():Dn()}function Cn(){var e=te(218);G(97),G(18),e.expression=h(er),G(19);var t=te(232,ci.getStartPos());return G(16),t.clauses=we(2,Sn),G(17),e.caseBlock=ne(t),ne(e)}function En(){var e=te(220);return G(99),e.expression=ci.hasPrecedingLineBreak()?void 0:h(er),ee(),ne(e)}function Tn(){var e=te(221);return G(101),e.tryBlock=dn(!1),e.catchClause=73===L()?Nn():void 0,e.catchClause&&86!==L()||(G(86),e.finallyBlock=dn(!1)),ne(e)}function Nn(){var e=te(256);return G(73),G(18)&&(e.variableDeclaration=Xn()),G(19),e.block=dn(!1),ne(e)}function An(){var e=te(222);return G(77),ee(),ne(e)}function wn(){var e=ci.getStartPos(),t=h(er);if(70===t.kind&&X(55)){var r=te(219,e);return r.label=t,r.statement=Kn(),u(ne(r))}var n=te(207,e);return n.expression=t,ee(),u(ne(n))}function Pn(){return M(),e.tokenIsIdentifierOrKeyword(L())&&!ci.hasPrecedingLineBreak()}function Fn(){return M(),88===L()&&!ci.hasPrecedingLineBreak()}function On(){return M(),(e.tokenIsIdentifierOrKeyword(L())||8===L())&&!ci.hasPrecedingLineBreak()}function In(){for(;;)switch(L()){case 103:case 109:case 75:case 88:case 74:case 82:return!0;case 108:case 136:return ar();case 127:case 128:return zn();case 116:case 119:case 123:case 111:case 112:case 113:case 130:if(M(),ci.hasPrecedingLineBreak())return!1;continue;case 139:return M(),16===L()||70===L()||83===L();case 90:return M(),9===L()||38===L()||16===L()||e.tokenIsIdentifierOrKeyword(L());case 83:if(M(),57===L()||38===L()||16===L()||78===L()||117===L())return!0;continue;case 114:M();continue;default:return!1}}function Rn(){return q(In)}function Ln(){switch(L()){case 56:case 24:case 16:case 103:case 109:case 88:case 74:case 82:case 89:case 80:case 105:case 87:case 76:case 71:case 95:case 106:case 97:case 99:case 101:case 77:case 73:case 86:return!0;case 75:case 83:case 90:return Rn();case 119:case 123:case 108:case 127:case 128:case 136:case 139:return!0;case 113:case 111:case 112:case 114:case 130:return Rn()||!q(Pn);default:return Zt()}}function Mn(){return M(),H()||16===L()||20===L()}function Bn(){return q(Mn)}function Kn(){switch(L()){case 24:return fn();case 16:return dn(!1);case 103:return Zn(ci.getStartPos(),void 0,void 0);case 109:if(Bn())return Zn(ci.getStartPos(),void 0,void 0);break;case 88:return $n(ci.getStartPos(),void 0,void 0);case 74:return pa(ci.getStartPos(),void 0,void 0);case 89:return mn();case 80:return gn();case 105:return yn();case 87:return vn();case 76:return hn(214);case 71:return hn(215);case 95:return bn();case 106:return kn();case 97:return Cn();case 99:return En();case 101:case 73:case 86:return Tn();case 77:return An();case 56:return Jn();case 119:case 108:case 136:case 127:case 128:case 123:case 75:case 82:case 83:case 90:case 111:case 112:case 113:case 116:case 114:case 130:case 139:if(Rn())return Jn()}return wn()}function Jn(){var t=I(),r=ca(),n=ua();switch(L()){case 103:case 109:case 75:return Zn(t,r,n);case 88:return $n(t,r,n);case 74:return pa(t,r,n);case 108:return xa(t,r,n);case 136:return Da(t,r,n);case 82:return Ca(t,r,n);case 139:case 127:case 128:return Aa(t,r,n);case 90:return Ia(t,r,n);case 83:switch(M(),L()){case 78:case 57:return qa(t,r,n);case 117:return Oa(t,r,n);default:return Ua(t,r,n)}default:if(r||n){var a=ae(244,!0,e.Diagnostics.Declaration_expected);return a.pos=t,a.decorators=r,a.modifiers=n,ne(a)}}}function zn(){return M(),!ci.hasPrecedingLineBreak()&&(H()||9===L())}function jn(e,t,r){return 16!==L()&&$()?void ee():pn(e,t,!1,r)}function Vn(){if(25===L())return te(198);var e=te(174);return e.dotDotDotToken=Q(23),e.name=Gn(),e.initializer=_t(!1),ne(e)}function Un(){var e=te(174);e.dotDotDotToken=Q(23);var t=H(),r=le();return t&&55!==L()?e.name=r:(G(55),e.propertyName=r,e.name=Gn()),e.initializer=_t(!1),ne(e)}function qn(){var e=te(172);return G(16),e.elements=Ue(9,Un),G(17),ne(e)}function Wn(){var e=te(173);return G(20),e.elements=Ue(10,Vn),G(21),ne(e)}function Hn(){return 16===L()||20===L()||H()}function Gn(){return 20===L()?Wn():16===L()?qn():se()}function Xn(){var e=te(223);return e.name=Gn(),e.type=Qt(),yr(L())||(e.initializer=tr(!1)),ne(e)}function Qn(t){var r=te(224);switch(L()){case 103:break;case 109:r.flags|=1;break;case 75:r.flags|=2;break;default:e.Debug.fail()}if(M(),140===L()&&q(Yn))r.declarations=qe();else{var n=N();p(t),r.declarations=Ue(8,Xn),p(n)}return ne(r)}function Yn(){return De()&&19===M()}function Zn(e,t,r){var n=te(205,e);return n.decorators=t,n.modifiers=r,n.declarationList=Qn(!1),ee(),u(ne(n))}function $n(t,r,n){var a=te(225,t);a.decorators=r,a.modifiers=n,G(88),a.asteriskToken=Q(38),a.name=e.hasModifier(a,512)?_n():se();var i=!!a.asteriskToken,o=e.hasModifier(a,256);return dt(55,i,o,!1,a),a.body=jn(i,o,e.Diagnostics.or_expected),u(ne(a))}function ea(t,r,n){var a=te(150,t);return a.decorators=r,a.modifiers=n,G(122),dt(55,!1,!1,!1,a),a.body=jn(!1,!1,e.Diagnostics.or_expected),u(ne(a))}function ta(t,r,n,a,i,o,s){var c=te(149,t);c.decorators=r,c.modifiers=n,c.asteriskToken=a,c.name=i,c.questionToken=o;var _=!!a,l=e.hasModifier(c,256);return dt(55,_,l,!1,c),c.body=jn(_,l,s),u(ne(c))}function ra(t,r,n,a,i){var o=te(147,t);return o.decorators=r,o.modifiers=n,o.name=a,o.questionToken=i,o.type=Qt(),o.initializer=e.hasModifier(o,32)?h(aa):y(6144,aa),ee(),u(ne(o))}function na(t,r,n){var a=Q(38),i=le(),o=Q(54);return a||18===L()||26===L()?ta(t,r,n,a,i,o,e.Diagnostics.or_expected):ra(t,r,n,i,o)}function aa(){return tr(!1)}function ia(e,t,r,n){var a=te(e,t);return a.decorators=r,a.modifiers=n,a.name=le(),dt(55,!1,!1,!1,a),a.body=jn(!1,!1),u(ne(a))}function oa(e){switch(e){case 113:case 111:case 112:case 114:case 130:return!0;default:return!1}}function sa(){var t;if(56===L())return!0;for(;e.isModifierKind(L());){if(t=L(),oa(t))return!0;M()}if(38===L())return!0;if(ue()&&(t=L(),M()),20===L())return!0;if(void 0!==t){if(!e.isKeyword(t)||133===t||124===t)return!0;switch(L()){case 18:case 26:case 55:case 57:case 54:return!0;default:return $()}}return!1}function ca(){for(var e;;){var t=I();if(!X(56))break;var r=te(145,t);r.expression=x(Or),ne(r),e?e.push(r):e=re([r],t)}return e&&(e.end=R()),e}function ua(e){for(var t;;){var r=ci.getStartPos(),n=L();if(75===L()&&e){if(!W(ge))break}else if(!ve())break;var a=ne(te(n,r));t?t.push(a):t=re([a],r)}return t&&(t.end=ci.getStartPos()),t}function _a(){var e;if(119===L()){var t=ci.getStartPos(),r=L();M();var n=ne(te(r,t));e=re([n],t),e.end=ci.getStartPos()}return e}function la(){if(24===L()){var t=te(203);return M(),ne(t)}var r=I(),n=ca(),a=ua(!0),i=on(r,n,a);if(i)return i;if(122===L())return ea(r,n,a);if(gt())return vt(r,n,a);if(e.tokenIsIdentifierOrKeyword(L())||9===L()||8===L()||38===L()||20===L())return na(r,n,a);if(n||a){var o=ae(70,!0,e.Diagnostics.Declaration_expected);return ra(r,n,a,o,void 0)}e.Debug.fail("Should not have attempted to parse class member declaration.")}function da(){return fa(ci.getStartPos(),void 0,void 0,197)}function pa(e,t,r){return fa(e,t,r,226)}function fa(e,t,r,n){var a=te(n,e);return a.decorators=t,a.modifiers=r,G(74),a.name=ma(),a.typeParameters=ot(),a.heritageClauses=ya(),G(16)?(a.members=ka(),G(17)):a.members=qe(),u(ne(a))}function ma(){return H()&&!ga()?se():void 0}function ga(){return 107===L()&&q(Se)}function ya(){if(ba())return we(21,va)}function va(){if(84===L()||107===L()){var e=te(255);return e.token=L(),M(),e.types=Ue(7,ha),ne(e)}}function ha(){var e=te(199);return e.expression=Or(),26===L()&&(e.typeArguments=We(19,Gt,26,28)),ne(e)}function ba(){return 84===L()||107===L()}function ka(){return we(5,la)}function xa(e,t,r){var n=te(227,e);return n.decorators=t,n.modifiers=r,G(108),n.name=se(),n.typeParameters=ot(),n.heritageClauses=ya(),n.members=St(),u(ne(n))}function Da(e,t,r){var n=te(228,e);return n.decorators=t,n.modifiers=r,G(136),n.name=se(),n.typeParameters=ot(),G(57),n.type=Gt(),ee(),u(ne(n))}function Sa(){var e=te(260,ci.getStartPos());return e.name=le(),e.initializer=h(aa),u(ne(e))}function Ca(e,t,r){var n=te(229,e);return n.decorators=t,n.modifiers=r,G(82),n.name=se(),G(16)?(n.members=Ue(6,Sa),G(17)):n.members=qe(),u(ne(n))}function Ea(){var e=te(231,ci.getStartPos());return G(16)?(e.statements=we(1,Kn),G(17)):e.statements=qe(),ne(e)}function Ta(e,t,r,n){var a=te(230,e),i=16&n;return a.decorators=t,a.modifiers=r,a.flags|=n,a.name=se(),a.body=X(22)?Ta(I(),void 0,void 0,4|i):Ea(),u(ne(a))}function Na(e,t,r){var n=te(230,e);return n.decorators=t,n.modifiers=r,139===L()?(n.name=se(),n.flags|=512):n.name=Ye(!0),16===L()?n.body=Ea():ee(),ne(n)}function Aa(e,t,r){var n=0;if(139===L())return Na(e,t,r);if(X(128))n|=16;else if(G(127),9===L())return Na(e,t,r);return Ta(e,t,r,n)}function wa(){return 131===L()&&q(Pa)}function Pa(){return 18===M()}function Fa(){return 40===M()}function Oa(e,t,r){var n=te(233,e);return n.decorators=t,n.modifiers=r,G(117),G(128),n.name=se(),ee(),ne(n)}function Ia(e,t,r){G(90);var n,a=ci.getStartPos();if(H()&&(n=se(),25!==L()&&138!==L())){var i=te(234,e);return i.decorators=t,i.modifiers=r,i.name=n,G(57),i.moduleReference=La(),ee(),u(ne(i))}var o=te(235,e);return o.decorators=t,o.modifiers=r,(n||38===L()||16===L())&&(o.importClause=Ra(n,a),G(138)),o.moduleSpecifier=Ba(),ee(),ne(o)}function Ra(e,t){var r=te(236,t);return e&&(r.name=e),r.name&&!X(25)||(r.namedBindings=38===L()?Ka():Ja(238)),ne(r)}function La(){return wa()?Ma():He(!1)}function Ma(){var e=te(245);return G(131),G(18),e.expression=Ba(),G(19),ne(e)}function Ba(){if(9===L()){var e=Ye();return ie(e.text),e}return er()}function Ka(){var e=te(237);return G(38),G(117),e.name=se(),ne(e)}function Ja(e){var t=te(e);return t.elements=We(22,238===e?ja:za,16,17),ne(t)}function za(){return Va(243)}function ja(){return Va(239)}function Va(t){var r=te(t),n=e.isKeyword(L())&&!H(),a=ci.getTokenPos(),i=ci.getTextPos(),o=ce();return 117===L()?(r.propertyName=o,G(117),n=e.isKeyword(L())&&!H(),a=ci.getTokenPos(),i=ci.getTextPos(),r.name=ce()):r.name=o,239===t&&n&&F(a,i-a,e.Diagnostics.Identifier_expected),ne(r)}function Ua(e,t,r){var n=te(241,e);return n.decorators=t,n.modifiers=r,X(38)?(G(138),n.moduleSpecifier=Ba()):(n.exportClause=Ja(242),(138===L()||9===L()&&!ci.hasPrecedingLineBreak())&&(G(138),n.moduleSpecifier=Ba())),ee(),ne(n)}function qa(e,t,r){var n=te(240,e);return n.decorators=t,n.modifiers=r,X(57)?n.isExportEquals=!0:G(78),n.expression=rr(),ee(),ne(n)}function Wa(t){for(var r,n=e.createScanner(t.languageVersion,!1,0,ri),a=[],i=[],o=[];;){var s=n.scan();if(2!==s){if(e.isTrivia(s))continue;break}var c={pos:n.getTokenPos(),end:n.getTextPos(),kind:n.getToken()},u=ri.substring(c.pos,c.end),_=e.getFileReferenceFromReferencePath(u,c);if(_){var l=_.fileReference;t.hasNoDefaultLib=_.isNoDefaultLib;var d=_.diagnosticMessage;l&&(_.isTypeReferenceDirective?i.push(l):a.push(l)),d&&$a.push(e.createFileDiagnostic(t,c.pos,c.end-c.pos,d))}else{var p=/^\/\/\/\s*<amd-module\s+name\s*=\s*('|")(.+?)\1/gim,f=p.exec(u);f&&(r&&$a.push(e.createFileDiagnostic(t,c.pos,c.end-c.pos,e.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments)),r=f[2]);var m=/^\/\/\/\s*<amd-dependency\s/gim,g=/\spath\s*=\s*('|")(.+?)\1/gim,y=/\sname\s*=\s*('|")(.+?)\1/gim,v=m.exec(u);if(v){var h=g.exec(u),b=y.exec(u);if(h){var k={path:h[2],name:b?b[2]:void 0};o.push(k)}}}}t.referencedFiles=a,t.typeReferenceDirectives=i,t.amdDependencies=o,t.moduleName=r}function Ha(t){t.externalModuleIndicator=e.forEach(t.statements,function(t){return e.hasModifier(t,1)||234===t.kind&&245===t.moduleReference.kind||235===t.kind||240===t.kind||241===t.kind?t:void 0})}var Ga,Xa,Qa,Ya,Za,$a,ei,ti,ri,ni,ai,ii,oi,si,ci=e.createScanner(5,!0),ui=10240,_i=!1;t.parseSourceFile=r,t.parseIsolatedEntityName=n,t.fixupParentReferences=_;var li;!function(e){e[e.SourceElements=0]="SourceElements",e[e.BlockStatements=1]="BlockStatements",e[e.SwitchClauses=2]="SwitchClauses",e[e.SwitchClauseStatements=3]="SwitchClauseStatements",e[e.TypeMembers=4]="TypeMembers",e[e.ClassMembers=5]="ClassMembers",e[e.EnumMembers=6]="EnumMembers",e[e.HeritageClauseElement=7]="HeritageClauseElement",e[e.VariableDeclarations=8]="VariableDeclarations",e[e.ObjectBindingElements=9]="ObjectBindingElements",e[e.ArrayBindingElements=10]="ArrayBindingElements",e[e.ArgumentExpressions=11]="ArgumentExpressions",e[e.ObjectLiteralMembers=12]="ObjectLiteralMembers",e[e.JsxAttributes=13]="JsxAttributes",e[e.JsxChildren=14]="JsxChildren",e[e.ArrayLiteralMembers=15]="ArrayLiteralMembers",e[e.Parameters=16]="Parameters",e[e.RestProperties=17]="RestProperties",e[e.TypeParameters=18]="TypeParameters",e[e.TypeArguments=19]="TypeArguments",e[e.TupleElementTypes=20]="TupleElementTypes",e[e.HeritageClauses=21]="HeritageClauses",e[e.ImportOrExportSpecifiers=22]="ImportOrExportSpecifiers",e[e.JSDocFunctionParameters=23]="JSDocFunctionParameters",e[e.JSDocTypeArguments=24]="JSDocTypeArguments",e[e.JSDocRecordMembers=25]="JSDocRecordMembers",e[e.JSDocTupleTypes=26]="JSDocTupleTypes",e[e.Count=27]="Count"}(li||(li={}));var di;!function(e){e[e.False=0]="False",e[e.True=1]="True",e[e.Unknown=2]="Unknown"}(di||(di={}));var pi;!function(t){function r(){switch(L()){case 38:case 54:case 18:case 20:case 50:case 16:case 88:case 23:case 93:case 98:return!0}return e.tokenIsIdentifierOrKeyword(L())}function n(e,t,r){o(e,5,void 0,1),Za=l("file.js",5,1),ci.setText(e,t,r),ti=ci.scan();var n=a(),i=$a;return s(),n?{jsDocTypeExpression:n,
diagnostics:i}:void 0}function a(){var e=te(262,ci.getTokenPos());return G(16),e.type=i(),G(17),_(e),ne(e)}function i(){var e=c();if(48===L()){var t=te(266,e.pos);t.types=E(e),e=ne(t)}if(57===L()){var r=te(273,e.pos);M(),r.type=e,e=ne(r)}return e}function c(){for(var e=u();;)if(20===L()){var t=te(265,e.pos);t.elementType=e,M(),G(21),e=ne(t)}else if(54===L()){var r=te(268,e.pos);r.type=e,M(),e=ne(r)}else{if(50!==L())break;var n=te(269,e.pos);n.type=e,M(),e=ne(n)}return e}function u(){switch(L()){case 38:return T();case 54:return A();case 18:return C();case 20:return D();case 50:return x();case 16:return k();case 88:return m();case 23:return f();case 93:return p();case 98:return d();case 118:case 134:case 132:case 121:case 135:case 104:case 94:case 137:case 129:return Z();case 9:case 8:case 100:case 85:return N()}return y()}function d(){var e=te(277);return M(),G(55),e.type=c(),ne(e)}function p(){var e=te(276);return M(),G(55),e.type=c(),ne(e)}function f(){var e=te(275);return M(),e.type=c(),ne(e)}function m(){var e=te(274);return M(),G(18),e.parameters=Ue(23,g),S(e.parameters),G(19),55===L()&&(M(),e.type=c()),ne(e)}function g(){var e=te(144);return e.type=c(),X(57)&&(e.questionToken=te(57)),ne(e)}function y(){var e=te(272);if(e.name=de(),26===L())e.typeArguments=v();else for(;X(22);){if(26===L()){e.typeArguments=v();break}e.name=b(e.name)}return ne(e)}function v(){M();var e=Ue(24,c);return S(e),h(e),G(28),e}function h(t){if(0===$a.length&&t&&0===t.length){var r=t.pos-"<".length,n=e.skipTrivia(ri,t.end)+">".length;return F(r,n-r,e.Diagnostics.Type_argument_list_cannot_be_empty)}}function b(e){var t=te(141,e.pos);return t.left=e,t.right=ce(),ne(t)}function k(){var e=te(270);return e.literal=Dt(),ne(e)}function x(){var e=te(269);return M(),e.type=c(),ne(e)}function D(){var e=te(267);return M(),e.types=Ue(26,c),S(e.types),G(21),ne(e)}function S(t){if(0===$a.length&&t.hasTrailingComma){var r=t.end-",".length;F(r,",".length,e.Diagnostics.Trailing_comma_not_allowed)}}function C(){var e=te(266);return M(),e.types=E(c()),G(19),ne(e)}function E(t){e.Debug.assert(!!t);for(var r=re([t],t.pos);X(48);)r.push(c());return r.end=ci.getStartPos(),r}function T(){var e=te(263);return M(),ne(e)}function N(){var e=te(288);return e.literal=Ft(),ne(e)}function A(){var e=ci.getStartPos();if(M(),25===L()||17===L()||19===L()||28===L()||57===L()||48===L()){var t=te(264,e);return ne(t)}var t=te(268,e);return t.type=c(),ne(t)}function w(e,t,r){o(e,5,void 0,1),Za={languageVariant:0,text:e};var n=I(t,r),a=$a;return s(),n?{jsDoc:n,diagnostics:a}:void 0}function O(e,t,r){var n=ti,a=$a.length,i=_i,o=I(t,r);return o&&(o.parent=e),ti=n,$a.length=a,_i=i,o}function I(t,r){function n(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function i(e){for(;e.length&&("\n"===e[e.length-1]||"\r"===e[e.length-1]);)e.pop()}function o(e,t){return 47===e.charCodeAt(t)&&42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&42!==e.charCodeAt(t+3)}function s(){var e=te(278,t);return e.tags=T,e.comment=A.length?A.join(""):void 0,ne(e,E)}function c(){for(;5===L()||4===L();)x()}function u(t){e.Debug.assert(56===L());var r=te(56,ci.getTokenPos());r.end=ci.getTextPos(),x();var n=D();if(c(),n){var a;if(n)switch(n.text){case"augments":a=v(r,n);break;case"param":a=f(r,n);break;case"return":case"returns":a=m(r,n);break;case"template":a=k(r,n);break;case"type":a=g(r,n);break;case"typedef":a=h(r,n);break;default:a=l(r,n)}else a=l(r,n);a&&d(a,_(t+a.end-a.pos))}}function _(e){function t(t){r||(r=e),a.push(t),e+=t.length}for(var r,a=[],o=0;56!==L()&&1!==L();){switch(L()){case 4:o>=1&&(o=0,a.push(ci.getTokenText())),e=0;break;case 56:break;case 5:if(2===o)t(ci.getTokenText());else{var s=ci.getTokenText();void 0!==r&&e+s.length>r&&a.push(s.slice(r-e-1)),e+=s.length}break;case 38:if(0===o){o=1,e+=ci.getTokenText().length;break}default:o=2,t(ci.getTokenText())}if(56===L())break;x()}return n(a),i(a),a}function l(e,t){var r=te(279,e.pos);return r.atToken=e,r.tagName=t,ne(r)}function d(e,t){e.comment=t.join(""),T?T.push(e):T=re([e],e.pos),T.end=e.end}function p(){return W(function(){if(c(),16===L())return a()})}function f(t,r){var n=p();c();var a,i;if(Q(20)?(a=D(),c(),i=!0,Q(57)&&er(),G(21)):e.tokenIsIdentifierOrKeyword(L())&&(a=D()),!a)return void F(ci.getStartPos(),0,e.Diagnostics.Identifier_expected);var o,s;n?s=a:o=a,n||(n=p());var u=te(281,t.pos);return u.atToken=t,u.tagName=r,u.preParameterName=o,u.typeExpression=n,u.postParameterName=s,u.parameterName=s||o,u.isBracketed=i,ne(u)}function m(t,r){e.forEach(T,function(e){return 282===e.kind})&&F(r.pos,ci.getTokenPos()-r.pos,e.Diagnostics._0_tag_already_specified,r.text);var n=te(282,t.pos);return n.atToken=t,n.tagName=r,n.typeExpression=p(),ne(n)}function g(t,r){e.forEach(T,function(e){return 283===e.kind})&&F(r.pos,ci.getTokenPos()-r.pos,e.Diagnostics._0_tag_already_specified,r.text);var n=te(283,t.pos);return n.atToken=t,n.tagName=r,n.typeExpression=p(),ne(n)}function y(t,r){var n=p();c();var a=D();if(c(),!a)return void F(ci.getStartPos(),0,e.Diagnostics.Identifier_expected);var i=te(286,t.pos);return i.atToken=t,i.tagName=r,i.name=a,i.typeExpression=n,ne(i)}function v(e,t){var r=p(),n=te(280,e.pos);return n.atToken=e,n.tagName=t,n.typeExpression=r,ne(n)}function h(e,t){function r(){for(var e=te(287,ci.getStartPos()),t=ci.getStartPos(),r=!0,n=!1,a=!1;1!==L()&&!a;)switch(x(),L()){case 56:r&&(a=!b(e),a||(t=ci.getStartPos())),n=!1;break;case 4:t=ci.getStartPos()-1,r=!0,n=!1;break;case 38:n&&(r=!1),n=!0;break;case 70:r=!1;case 1:}return ci.setTextPos(t),ne(e)}function n(e){var t=ci.getTokenPos(),r=D();if(r&&X(22)){var a=te(230,t);return a.flags|=e,a.name=r,a.body=n(4),a}return r&&4&e&&(r.isInJSDocNamespace=!0),r}var a=p();c();var i=te(285,e.pos);if(i.atToken=e,i.tagName=t,i.fullName=n(0),i.fullName){for(var o=i.fullName;70!==o.kind;)o=o.body;i.name=o}if(i.typeExpression=a,c(),a){if(272===a.type.kind){var s=a.type;if(70===s.name.kind){var u=s.name;"Object"===u.text&&(i.jsDocTypeLiteral=r())}}i.jsDocTypeLiteral||(i.jsDocTypeLiteral=a.type)}else i.jsDocTypeLiteral=r();return ne(i)}function b(t){e.Debug.assert(56===L());var r=te(56,ci.getStartPos());r.end=ci.getTextPos(),x();var n=D();if(c(),!n)return!1;switch(n.text){case"type":return!t.jsDocTypeTag&&(t.jsDocTypeTag=g(r,n),!0);case"prop":case"property":var a=y(r,n);return!!a&&(t.jsDocPropertyTags||(t.jsDocPropertyTags=[]),t.jsDocPropertyTags.push(a),!0)}return!1}function k(t,r){e.forEach(T,function(e){return 284===e.kind})&&F(r.pos,ci.getTokenPos()-r.pos,e.Diagnostics._0_tag_already_specified,r.text);for(var n=re();;){var a=D();if(c(),!a)return void F(ci.getStartPos(),0,e.Diagnostics.Identifier_expected);var i=te(143,a.pos);if(i.name=a,ne(i),n.push(i),25!==L())break;x(),c()}var o=te(284,t.pos);return o.atToken=t,o.tagName=r,o.typeParameters=n,ne(o),n.end=o.end,o}function x(){return ti=ci.scanJSDocToken()}function D(){return S(e.tokenIsIdentifierOrKeyword(L()))}function S(t){if(!t)return void P(e.Diagnostics.Identifier_expected);var r=ci.getTokenPos(),n=ci.getTextPos(),a=te(70,r);return a.text=C.substring(r,n),ne(a,n),x(),a}var C=ri;t=t||0;var E=void 0===r?C.length:t+r;r=E-t,e.Debug.assert(t>=0),e.Debug.assert(t<=E),e.Debug.assert(E<=C.length);var T,N,A=[];return o(C,t)?(ci.scanRange(t+3,r-5,function(){function e(e){o||(o=c),A.push(e),c+=e.length}var r=!0,a=1,o=void 0,c=t-Math.max(C.lastIndexOf("\n",t),0)+4;for(x();5===L();)x();for(4===L()&&(a=0,c=0,x());1!==L();){switch(L()){case 56:0===a||1===a?(i(A),u(c),a=0,r=!1,o=void 0,c++):e(ci.getTokenText());break;case 4:A.push(ci.getTokenText()),a=0,c=0;break;case 38:var _=ci.getTokenText();1===a||2===a?(a=2,e(_)):(a=1,c+=_.length);break;case 70:e(ci.getTokenText()),a=2;break;case 5:var l=ci.getTokenText();2===a?A.push(l):void 0!==o&&c+l.length>o&&A.push(l.slice(o-c-1)),c+=l.length;break;case 1:break;default:a=2,e(ci.getTokenText())}r?x():r=!0}n(A),i(A),N=s()}),N):N}t.isJSDocType=r,t.parseJSDocTypeExpressionForTests=n,t.parseJSDocTypeExpression=a,t.parseIsolatedJSDocComment=w,t.parseJSDocComment=O;var R;!function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments"}(R||(R={})),t.parseJSDocCommentWorker=I}(pi=t.JSDocParser||(t.JSDocParser={}))}(g||(g={}));var y;!function(t){function r(t,r,n,a){if(a=a||e.Debug.shouldAssert(2),l(t,r,n,a),e.textChangeRangeIsUnchanged(n))return t;if(0===t.statements.length)return g.parseSourceFile(t.fileName,r,t.languageVersion,void 0,!0,t.scriptKind);var i=t;e.Debug.assert(!i.hasBeenIncrementallyParsed),i.hasBeenIncrementallyParsed=!0;var o=t.text,s=d(t),_=u(t,n);l(t,r,_,a),e.Debug.assert(_.span.start<=n.span.start),e.Debug.assert(e.textSpanEnd(_.span)===e.textSpanEnd(n.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(_))===e.textSpanEnd(e.textChangeRangeNewSpan(n)));var p=e.textChangeRangeNewSpan(_).length-_.span.length;c(i,_.span.start,e.textSpanEnd(_.span),e.textSpanEnd(e.textChangeRangeNewSpan(_)),p,o,r,a);var f=g.parseSourceFile(t.fileName,r,t.languageVersion,s,!0,t.scriptKind);return f}function n(t,r,n,o,c,u){function _(t){var r="";if(u&&a(t)&&(r=o.substring(t.pos,t.end)),t._children&&(t._children=void 0),t.pos+=n,t.end+=n,u&&a(t)&&e.Debug.assert(r===c.substring(t.pos,t.end)),i(t,_,l),t.jsDoc)for(var d=0,p=t.jsDoc;d<p.length;d++){var f=p[d];i(f,_,l)}s(t,u)}function l(e){e._children=void 0,e.pos+=n,e.end+=n;for(var t=0,r=e;t<r.length;t++){var a=r[t];_(a)}}r?l(t):_(t)}function a(e){switch(e.kind){case 9:case 8:case 70:return!0}return!1}function o(t,r,n,a,i){e.Debug.assert(t.end>=r,"Adjusting an element that was entirely before the change range"),e.Debug.assert(t.pos<=n,"Adjusting an element that was entirely after the change range"),e.Debug.assert(t.pos<=t.end),t.pos=Math.min(t.pos,a),t.end>=n?t.end+=i:t.end=Math.min(t.end,a),e.Debug.assert(t.pos<=t.end),t.parent&&(e.Debug.assert(t.pos>=t.parent.pos),e.Debug.assert(t.end<=t.parent.end))}function s(t,r){if(r){var n=t.pos;i(t,function(t){e.Debug.assert(t.pos>=n),n=t.end}),e.Debug.assert(n<=t.end)}}function c(t,r,a,c,u,_,l,d){function p(t){if(e.Debug.assert(t.pos<=t.end),t.pos>a)return void n(t,!1,u,_,l,d);var m=t.end;return m>=r?(t.intersectsChange=!0,t._children=void 0,o(t,r,a,c,u),i(t,p,f),void s(t,d)):void e.Debug.assert(m<r)}function f(t){if(e.Debug.assert(t.pos<=t.end),t.pos>a)return void n(t,!0,u,_,l,d);var i=t.end;if(i>=r){t.intersectsChange=!0,t._children=void 0,o(t,r,a,c,u);for(var s=0,f=t;s<f.length;s++){var m=f[s];p(m)}}else e.Debug.assert(i<r)}p(t)}function u(t,r){for(var n=1,a=r.span.start,i=0;a>0&&i<=n;i++){var o=_(t,a);e.Debug.assert(o.pos<=a);var s=o.pos;a=Math.max(0,s-1)}var c=e.createTextSpanFromBounds(a,e.textSpanEnd(r.span)),u=r.newLength+(r.span.start-a);return e.createTextChangeRange(c,u)}function _(t,r){function n(e){for(;;){var t=a(e);if(!t)return e;e=t}}function a(t){var r=void 0;return i(t,function(t){e.nodeIsPresent(t)&&(r=t)}),r}function o(t){if(!e.nodeIsMissing(t))return t.pos<=r?(t.pos>=c.pos&&(c=t),r<t.end?(i(t,o),!0):(e.Debug.assert(t.end<=r),void(s=t))):(e.Debug.assert(t.pos>r),!0)}var s,c=t;if(i(t,o),s){var u=n(s);u.pos>c.pos&&(c=u)}return c}function l(t,r,n,a){var i=t.text;if(n&&(e.Debug.assert(i.length-n.span.length+n.newLength===r.length),a||e.Debug.shouldAssert(3))){var o=i.substr(0,n.span.start),s=r.substr(0,n.span.start);e.Debug.assert(o===s);var c=i.substring(e.textSpanEnd(n.span),i.length),u=r.substring(e.textSpanEnd(e.textChangeRangeNewSpan(n)),r.length);e.Debug.assert(c===u)}}function d(t){function r(e){function r(t){return e>=t.pos&&e<t.end&&(i(t,r,s),!0)}function s(t){if(e>=t.pos&&e<t.end)for(var c=0,u=t.length;c<u;c++){var _=t[c];if(_){if(_.pos===e)return n=t,a=c,o=_,!0;if(_.pos<e&&e<_.end)return i(_,r,s),!0}}return!1}n=void 0,a=-1,o=void 0,i(t,r,s)}var n=t.statements,a=0;e.Debug.assert(a<n.length);var o=n[a],s=-1;return{currentNode:function(t){return t!==s&&(o&&o.end===t&&a<n.length-1&&(a++,o=n[a]),o&&o.pos===t||r(t)),s=t,e.Debug.assert(!o||o.pos===t),o}}}t.updateSourceFile=r;var p;!function(e){e[e.Value=-1]="Value"}(p||(p={}))}(y||(y={}))}(ts||(ts={}));var ts;!function(e){function t(r){if(227===r.kind||228===r.kind)return 0;if(e.isConstEnumDeclaration(r))return 2;if(235!==r.kind&&234!==r.kind||e.hasModifier(r,1)){if(231===r.kind){var n=0;return e.forEachChild(r,function(e){switch(t(e)){case 0:return!1;case 2:return n=2,!1;case 1:return n=1,!0}}),n}if(230===r.kind){var a=r.body;return a?t(a):1}return 70===r.kind&&r.isInJSDocNamespace?0:1}return 0}function r(t,r){e.performance.mark("beforeBind"),R(t,r),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind")}function n(){function r(t,r){ft=t,mt=r,gt=e.getEmitScriptTarget(mt),Ft=n(ft,r),It=e.createMap(),Lt=0,Rt=e.isDeclarationFile(ft),Ot=e.objectAllocator.getSymbolConstructor(),ft.locals||(ze(ft),ft.symbolCount=Lt,ft.classifiableNames=It),ft=void 0,mt=void 0,gt=void 0,yt=void 0,vt=void 0,ht=void 0,bt=void 0,kt=!1,xt=void 0,Dt=void 0,St=void 0,Ct=void 0,Et=void 0,Tt=void 0,At=void 0,wt=!1,Pt=0,Kt=0}function n(t,r){return!(!r.alwaysStrict||e.isDeclarationFile(t))||!!t.externalModuleIndicator}function i(e,t){return Lt++,new Ot(e,t)}function o(t,r,n){if(t.flags|=n,r.symbol=t,t.declarations||(t.declarations=[]),t.declarations.push(r),1952&n&&!t.exports&&(t.exports=e.createMap()),6240&n&&!t.members&&(t.members=e.createMap()),107455&n){var a=t.valueDeclaration;(!a||a.kind!==r.kind&&230===a.kind)&&(t.valueDeclaration=r)}}function s(t){if(t.name){if(e.isAmbientModule(t))return e.isGlobalScopeAugmentation(t)?"__global":'"'+t.name.text+'"';if(142===t.name.kind){var r=t.name.expression;return e.isStringOrNumericLiteral(r)?r.text:(e.Debug.assert(e.isWellKnownSymbolSyntactically(r)),e.getPropertyNameForKnownSymbolName(r.name.text))}return t.name.text}switch(t.kind){case 150:return"__constructor";case 158:case 153:return"__call";case 159:case 154:return"__new";case 155:return"__index";case 241:return"__export";case 240:return t.isExportEquals?"export=":"default";case 192:switch(e.getSpecialPropertyAssignmentKind(t)){case 2:return"export=";case 1:case 4:return t.left.name.text;case 3:return t.left.expression.name.text}e.Debug.fail("Unknown binary declaration kind");break;case 225:case 226:return e.hasModifier(t,512)?"default":void 0;case 274:return e.isJSDocConstructSignature(t)?"__new":"__call";case 144:e.Debug.assert(274===t.parent.kind);var n=t.parent,a=e.indexOf(n.parameters,t);return"arg"+a;case 285:var i=t.parent&&t.parent.parent,o=void 0;if(i&&205===i.kind&&i.declarationList.declarations.length>0){var s=i.declarationList.declarations[0].name;70===s.kind&&(o=s.text)}return o}}function c(t){return t.name?e.declarationNameToString(t.name):s(t)}function u(t,r,n,a,u){e.Debug.assert(!e.hasDynamicName(n));var _,l=e.hasModifier(n,512),d=l&&r?"default":s(n);if(void 0===d)_=i(0,"__missing");else if(_=t[d]||(t[d]=i(0,d)),d&&788448&a&&(It[d]=d),_.flags&u)if(_.isReplaceableByMethod)_=t[d]=i(0,d);else{n.name&&(n.name.parent=n);var p=2&_.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0;_.declarations&&_.declarations.length&&(l?p=e.Diagnostics.A_module_cannot_have_multiple_default_exports:_.declarations&&_.declarations.length&&(l||240===n.kind&&!n.isExportEquals)&&(p=e.Diagnostics.A_module_cannot_have_multiple_default_exports)),e.forEach(_.declarations,function(t){ft.bindDiagnostics.push(e.createDiagnosticForNode(t.name||t,p,c(t)))}),ft.bindDiagnostics.push(e.createDiagnosticForNode(n.name||n,p,c(n))),_=i(0,d)}return o(_,n,a),_.parent=r,_}function _(t,r,n){var a=1&e.getCombinedModifierFlags(t);if(8388608&r)return 243===t.kind||234===t.kind&&a?u(vt.symbol.exports,vt.symbol,t,r,n):u(vt.locals,void 0,t,r,n);var i=285===t.kind&&t.name&&70===t.name.kind&&t.name.isInJSDocNamespace;if(!e.isAmbientModule(t)&&(a||32&vt.flags)||i){var o=(107455&r?1048576:0)|(793064&r?2097152:0)|(1920&r?4194304:0),s=u(vt.locals,void 0,t,o,n);return s.exportSymbol=u(vt.symbol.exports,vt.symbol,t,r,n),t.localSymbol=s,s}return u(vt.locals,void 0,t,r,n)}function l(t,r){var n=vt,a=ht;if(1&r?(vt=ht=t,32&r&&(vt.locals=e.createMap()),le(vt)):2&r&&(ht=t,ht.locals=void 0),4&r){var i=xt,o=Dt,s=St,c=Ct,u=At,_=wt,l=16&r&&!e.hasModifier(t,256)&&!!e.getImmediatelyInvokedFunctionExpression(t);l?Ct=x():(xt={flags:2},144&r&&(xt.container=t),Ct=void 0),Dt=void 0,St=void 0,At=void 0,wt=!1,d(t),t.flags&=-1409,!(1&xt.flags)&&8&r&&e.nodeIsPresent(t.body)&&(t.flags|=128,wt&&(t.flags|=256)),261===t.kind&&(t.flags|=Pt),l?(C(Ct,xt),xt=w(Ct)):xt=i,Dt=o,St=s,Ct=c,At=u,wt=_}else 64&r?(kt=!1,d(t),t.flags=kt?64|t.flags:t.flags&-65):d(t);vt=n,ht=a}function d(e){if(Rt)m(e);else if(536870912&e.transformFlags)Rt=!0,m(e),Rt=!1,Kt|=e.transformFlags&~F(e.kind);else{var t=Kt;Kt=0,m(e),Kt=t|a(e,Kt)}}function p(t){if(void 0!==t)if(Rt)e.forEach(t,ze);else{var r=Kt;Kt=0;for(var n=0,a=0,i=t;a<i.length;a++){var o=i[a];ze(o),n|=o.transformFlags&-536870913}t.transformFlags=536870912|n,Kt|=r}}function f(t){e.forEachChild(t,ze,p)}function m(t){if(e.isInJavaScriptFile(t)&&t.jsDoc&&e.forEach(t.jsDoc,ze),pt(t))return void f(t);switch(t.kind){case 210:M(t);break;case 209:B(t);break;case 211:K(t);break;case 212:case 213:J(t);break;case 208:z(t);break;case 216:case 220:j(t);break;case 215:case 214:q(t);break;case 221:W(t);break;case 218:H(t);break;case 232:G(t);break;case 253:X(t);break;case 219:Z(t);break;case 190:re(t);break;case 191:ne(t);break;case 192:ae(t);break;case 186:ie(t);break;case 193:oe(t);break;case 223:ce(t);break;case 179:ue(t);break;default:f(t)}}function g(e){switch(e.kind){case 70:case 98:case 177:return y(e);case 179:return v(e);case 183:return g(e.expression);case 192:return b(e);case 190:return 50===e.operator&&g(e.operand)}return!1}function y(e){return 70===e.kind||98===e.kind||177===e.kind&&y(e.expression)}function v(e){if(e.arguments)for(var t=0,r=e.arguments;t<r.length;t++){var n=r[t];if(y(n))return!0}return!(177!==e.expression.kind||!y(e.expression.expression))}function h(e,t){return 187===e.kind&&k(e.expression)&&9===t.kind}function b(e){switch(e.operatorToken.kind){case 57:return y(e.left);case 31:case 32:case 33:case 34:return k(e.left)||k(e.right)||h(e.right,e.left)||h(e.left,e.right);case 92:return k(e.left);case 25:return g(e.right)}return!1}function k(e){switch(e.kind){case 183:return k(e.expression);case 192:switch(e.operatorToken.kind){case 57:return k(e.left);case 25:return k(e.right)}}return y(e)}function x(){return{flags:4,antecedents:void 0}}function D(){return{flags:8,antecedents:void 0}}function S(e){e.flags|=512&e.flags?1024:512}function C(t,r){1&r.flags||e.contains(t.antecedents,r)||((t.antecedents||(t.antecedents=[])).push(r),S(r))}function E(e,t,r){return 1&t.flags?t:r?100===r.kind&&64&e||85===r.kind&&32&e?Mt:g(r)?(S(t),{flags:e,expression:r,antecedent:t}):t:32&e?t:Mt}function T(e,t,r,n){return g(t.expression)?(S(e),{flags:128,switchStatement:t,clauseStart:r,clauseEnd:n,antecedent:e}):e}function N(e,t){return S(e),{flags:16,antecedent:e,node:t}}function A(e,t){return S(e),{flags:256,antecedent:e,node:t}}function w(e){var t=e.antecedents;return t?1===t.length?t[0]:e:Mt}function P(e){var t=e.parent;switch(t.kind){case 208:case 210:case 209:return t.expression===e;case 211:case 193:return t.condition===e}return!1}function O(e){for(;;)if(183===e.kind)e=e.expression;else{if(190!==e.kind||50!==e.operator)return 192===e.kind&&(52===e.operatorToken.kind||53===e.operatorToken.kind);e=e.operand}}function I(e){for(;183===e.parent.kind||190===e.parent.kind&&50===e.parent.operator;)e=e.parent;return!P(e)&&!O(e.parent)}function R(e,t,r){var n=Et,a=Tt;Et=t,Tt=r,ze(e),Et=n,Tt=a,e&&O(e)||(C(t,E(32,xt,e)),C(r,E(64,xt,e)))}function L(e,t,r){var n=Dt,a=St;Dt=t,St=r,ze(e),Dt=n,St=a}function M(e){var t=D(),r=x(),n=x();C(t,xt),xt=t,R(e.expression,r,n),xt=w(r),L(e.statement,n,t),C(t,xt),xt=w(n)}function B(t){var r=D(),n=219===t.parent.kind?e.lastOrUndefined(At):void 0,a=n?n.continueTarget:x(),i=n?n.breakTarget:x();C(r,xt),xt=r,L(t.statement,i,a),C(a,xt),xt=w(a),R(t.expression,r,i),xt=w(i)}function K(e){var t=D(),r=x(),n=x();ze(e.initializer),C(t,xt),xt=t,R(e.condition,r,n),xt=w(r),L(e.statement,n,t),ze(e.incrementor),C(t,xt),xt=w(n)}function J(e){var t=D(),r=x();C(t,xt),xt=t,ze(e.expression),C(r,xt),ze(e.initializer),224!==e.initializer.kind&&ee(e.initializer),L(e.statement,r,t),C(t,xt),xt=w(r)}function z(e){var t=x(),r=x(),n=x();R(e.expression,t,r),xt=w(t),ze(e.thenStatement),C(n,xt),xt=w(r),ze(e.elseStatement),C(n,xt),xt=w(n)}function j(e){ze(e.expression),216===e.kind&&(wt=!0,Ct&&C(Ct,xt)),xt=Mt}function V(e){if(At)for(var t=0,r=At;t<r.length;t++){var n=r[t];if(n.name===e)return n}}function U(e,t,r){var n=215===e.kind?t:r;n&&(C(n,xt),xt=Mt)}function q(e){if(ze(e.label),e.label){var t=V(e.label.text);t&&(t.referenced=!0,U(e,t.breakTarget,t.continueTarget))}else U(e,Dt,St)}function W(e){var t=x(),r=xt;ze(e.tryBlock),C(t,xt);var n=xt,a=Mt;e.catchClause&&(xt=r,ze(e.catchClause),C(t,xt),a=xt),e.finallyBlock?(C(t,r),xt=w(t),ze(e.finallyBlock),1&xt.flags||1&n.flags&&1&a.flags&&(xt=n===Bt||a===Bt?Bt:Mt)):xt=w(t)}function H(t){var r=x();ze(t.expression);var n=Dt,a=Nt;Dt=r,Nt=xt,ze(t.caseBlock),C(r,xt);var i=e.forEach(t.caseBlock.clauses,function(e){return 254===e.kind});t.possiblyExhaustive=!i&&!r.antecedents,i||C(r,T(Nt,t,0,0)),Dt=n,Nt=a,xt=w(r)}function G(t){var r=Kt;Kt=0;for(var n=t.clauses,a=Mt,i=0;i<n.length;i++){for(var o=i;!n[i].statements.length&&i+1<n.length;)ze(n[i]),i++;var s=x();C(s,T(Nt,t.parent,o,i+1)),C(s,a),xt=w(s);var c=n[i];ze(c),a=xt,1&xt.flags||i===n.length-1||!mt.noFallthroughCasesInSwitch||Ke(c,e.Diagnostics.Fallthrough_case_in_switch)}n.transformFlags=536870912|Kt,Kt|=r}function X(e){var t=xt;xt=Nt,ze(e.expression),xt=t,p(e.statements)}function Q(e,t,r){var n={name:e,breakTarget:t,continueTarget:r,referenced:!1};return(At||(At=[])).push(n),n}function Y(){At.pop()}function Z(t){var r=D(),n=x();ze(t.label),C(r,xt);var a=Q(t.label.text,n,r);ze(t.statement),Y(),a.referenced||mt.allowUnusedLabels||ft.bindDiagnostics.push(e.createDiagnosticForNode(t.label,e.Diagnostics.Unused_label)),t.statement&&209===t.statement.kind||(C(n,xt),xt=w(n))}function $(e){ee(192===e.kind&&57===e.operatorToken.kind?e.left:e)}function ee(e){if(y(e))xt=N(xt,e);else if(175===e.kind)for(var t=0,r=e.elements;t<r.length;t++){var n=r[t];196===n.kind?ee(n.expression):$(n)}else if(176===e.kind)for(var a=0,i=e.properties;a<i.length;a++){var o=i[a];257===o.kind?$(o.initializer):258===o.kind?ee(o.name):259===o.kind&&ee(o.expression)}}function te(e,t,r){var n=x();52===e.operatorToken.kind?R(e.left,n,r):R(e.left,t,n),xt=w(n),ze(e.operatorToken),R(e.right,t,r)}function re(e){if(50===e.operator){var t=Et;Et=Tt,Tt=t,f(e),Tt=Et,Et=t}else f(e),42!==e.operator&&43!==e.operator||ee(e.operand)}function ne(e){f(e),42!==e.operator&&43!==e.operator||ee(e.operand)}function ae(t){var r=t.operatorToken.kind;if(52===r||53===r)if(I(t)){var n=x();te(t,n,n),xt=w(n)}else te(t,Et,Tt);else if(f(t),e.isAssignmentOperator(r)&&!e.isAssignmentTarget(t)&&(ee(t.left),57===r&&178===t.left.kind)){var a=t.left;k(a.expression)&&(xt=A(xt,t))}}function ie(e){f(e),177===e.expression.kind&&ee(e.expression)}function oe(e){var t=x(),r=x(),n=x();R(e.condition,t,r),xt=w(t),ze(e.questionToken),ze(e.whenTrue),C(n,xt),xt=w(r),ze(e.colonToken),ze(e.whenFalse),C(n,xt),xt=w(n)}function se(t){var r=e.isOmittedExpression(t)?void 0:t.name;if(e.isBindingPattern(r))for(var n=0,a=r.elements;n<a.length;n++){var i=a[n];se(i)}else xt=N(xt,t)}function ce(e){f(e),(e.initializer||212===e.parent.parent.kind||213===e.parent.parent.kind)&&se(e)}function ue(t){for(var r=t.expression;183===r.kind;)r=r.expression;if(184===r.kind||185===r.kind?(p(t.typeArguments),p(t.arguments),ze(t.expression)):f(t),177===t.expression.kind){var n=t.expression;k(n.expression)&&e.isPushOrUnshiftIdentifier(n.name)&&(xt=A(xt,t))}}function _e(t){switch(t.kind){case 197:case 226:case 229:case 176:case 161:case 287:case 270:return 1;case 227:return 65;case 274:case 230:case 228:case 170:return 33;case 261:return 37;case 149:if(e.isObjectLiteralOrClassExpressionMethod(t))return 173;case 150:case 225:case 148:case 151:case 152:case 153:case 154:case 155:case 158:case 159:return 45;case 184:case 185:return 61;case 231:return 4;case 147:return t.initializer?4:0;case 256:case 211:case 212:case 213:case 232:return 2;case 204:return e.isFunctionLike(t.parent)?0:2}return 0}function le(e){bt&&(bt.nextContainer=e),bt=e}function de(e,t,r){return pe(e,t,r)}function pe(e,t,r){switch(vt.kind){case 230:return _(e,t,r);case 261:return me(e,t,r);case 197:case 226:return fe(e,t,r);case 229:return u(vt.symbol.exports,vt.symbol,e,t,r);case 161:case 176:case 227:case 270:case 287:return u(vt.symbol.members,vt.symbol,e,t,r);case 158:case 159:case 153:case 154:case 155:case 149:case 148:case 150:case 151:case 152:case 225:case 184:case 185:case 274:case 228:case 170:return u(vt.locals,void 0,e,t,r)}}function fe(t,r,n){return e.hasModifier(t,32)?u(vt.symbol.exports,vt.symbol,t,r,n):u(vt.symbol.members,vt.symbol,t,r,n)}function me(t,r,n){return e.isExternalModule(ft)?_(t,r,n):u(ft.locals,void 0,t,r,n)}function ge(e){var t=261===e.kind?e:e.body;if(t&&(261===t.kind||231===t.kind))for(var r=0,n=t.statements;r<n.length;r++){var a=n[r];if(241===a.kind||240===a.kind)return!0}return!1}function ye(t){e.isInAmbientContext(t)&&!ge(t)?t.flags|=32:t.flags&=-33}function ve(r){if(ye(r),e.isAmbientModule(r))if(e.hasModifier(r,1)&&Ke(r,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),e.isExternalModuleAugmentation(r))de(r,1024,0);else{var n=void 0;if(9===r.name.kind){var a=r.name.text;e.hasZeroOrOneAsteriskCharacter(a)?n=e.tryParsePattern(a):Ke(r.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,a)}var i=de(r,512,106639);n&&(ft.patternAmbientModules||(ft.patternAmbientModules=[])).push({pattern:n,symbol:i})}else{var o=t(r);if(0===o)de(r,1024,0);else if(de(r,512,106639),304&r.symbol.flags)r.symbol.constEnumOnlyModule=!1;else{var s=2===o;void 0===r.symbol.constEnumOnlyModule?r.symbol.constEnumOnlyModule=s:r.symbol.constEnumOnlyModule=r.symbol.constEnumOnlyModule&&s}}}function he(t){var r=i(131072,s(t));o(r,t,131072);var n=i(2048,"__type");o(n,t,2048),n.members=e.createMap(),n.members[r.name]=r}function be(t){var r;if(function(e){e[e.Property=1]="Property",e[e.Accessor=2]="Accessor"}(r||(r={})),Ft)for(var n=e.createMap(),a=0,i=t.properties;a<i.length;a++){var o=i[a];if(259!==o.kind&&70===o.name.kind){var s=o.name,c=257===o.kind||258===o.kind||149===o.kind?1:2,u=n[s.text];if(u){if(1===c&&1===u){var _=e.getErrorSpanForNode(ft,s);ft.bindDiagnostics.push(e.createFileDiagnostic(ft,_.start,_.length,e.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode))}}else n[s.text]=c}}return ke(t,4096,"__object")}function ke(e,t,r){var n=i(t,r);o(n,e,t)}function xe(t,r,n){switch(ht.kind){case 230:_(t,r,n);break;case 261:if(e.isExternalModule(vt)){_(t,r,n);break}default:ht.locals||(ht.locals=e.createMap(),le(ht)),u(ht.locals,void 0,t,r,n)}}function De(e){xe(e,2,107455)}function Se(t){Ft&&t.originalKeywordKind>=107&&t.originalKeywordKind<=115&&!e.isIdentifierName(t)&&!e.isInAmbientContext(t)&&(ft.parseDiagnostics.length||ft.bindDiagnostics.push(e.createDiagnosticForNode(t,Ce(t),e.declarationNameToString(t))))}function Ce(t){return e.getContainingClass(t)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:ft.externalModuleIndicator?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function Ee(t){Ft&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&we(t,t.left)}function Te(e){Ft&&e.variableDeclaration&&we(e,e.variableDeclaration.name)}function Ne(t){if(Ft&&70===t.expression.kind){var r=e.getErrorSpanForNode(ft,t.expression);ft.bindDiagnostics.push(e.createFileDiagnostic(ft,r.start,r.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Ae(e){return 70===e.kind&&("eval"===e.text||"arguments"===e.text)}function we(t,r){if(r&&70===r.kind){var n=r;if(Ae(n)){var a=e.getErrorSpanForNode(ft,r);ft.bindDiagnostics.push(e.createFileDiagnostic(ft,a.start,a.length,Pe(t),n.text))}}}function Pe(t){return e.getContainingClass(t)?e.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:ft.externalModuleIndicator?e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:e.Diagnostics.Invalid_use_of_0_in_strict_mode}function Fe(e){Ft&&we(e,e.name)}function Oe(t){return e.getContainingClass(t)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:ft.externalModuleIndicator?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function Ie(t){if(gt<2&&261!==ht.kind&&230!==ht.kind&&!e.isFunctionLike(ht)){var r=e.getErrorSpanForNode(ft,t);ft.bindDiagnostics.push(e.createFileDiagnostic(ft,r.start,r.length,Oe(t)))}}function Re(t){Ft&&t.isOctalLiteral&&ft.bindDiagnostics.push(e.createDiagnosticForNode(t,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}function Le(e){Ft&&we(e,e.operand)}function Me(e){Ft&&(42!==e.operator&&43!==e.operator||we(e,e.operand))}function Be(t){Ft&&Ke(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}function Ke(t,r,n,a,i){var o=e.getSpanOfTokenAtPosition(ft,t.pos);ft.bindDiagnostics.push(e.createFileDiagnostic(ft,o.start,o.length,r,n,a,i))}function Je(t){return"__"+e.indexOf(t.parent.parameters,t)}function ze(e){if(e){e.parent=yt;var t=Ft;if(Ue(e),e.kind>140){var r=yt;yt=e;var n=_e(e);0===n?d(e):l(e,n),yt=r}else Rt||0!==(536870912&e.transformFlags)||(Kt|=a(e,0));Ft=t}}function je(t){if(!Ft)for(var r=0,n=t;r<n.length;r++){var a=n[r];if(!e.isPrologueDirective(a))return;if(Ve(a))return void(Ft=!0)}}function Ve(t){var r=e.getTextOfNodeFromSourceText(ft.text,t.expression);return'"use strict"'===r||"'use strict'"===r}function Ue(t){switch(t.kind){case 70:if(t.isInJSDocNamespace){for(var r=t.parent;r&&285!==r.kind;)r=r.parent;xe(r,524288,793064);break}case 98:return xt&&(e.isExpression(t)||258===yt.kind)&&(t.flowNode=xt),Se(t);case 177:xt&&y(t)&&(t.flowNode=xt);break;case 192:if(e.isInJavaScriptFile(t)){var n=e.getSpecialPropertyAssignmentKind(t);switch(n){case 1:$e(t);break;case 2:et(t);break;case 3:rt(t);break;case 4:tt(t);break;case 0:break;default:e.Debug.fail("Unknown special property assignment kind")}}return Ee(t);case 256:return Te(t);case 186:return Ne(t);case 8:return Re(t);case 191:return Le(t);case 190:return Me(t);case 217:return Be(t);case 167:return void(kt=!0);case 156:return qe(t);case 143:return de(t,262144,530920);case 144:return st(t);case 223:case 174:return ot(t);case 147:case 146:case 271:return _t(t,4|(t.questionToken?536870912:0),0);case 286:return lt(t);case 257:case 258:return _t(t,4,0);case 260:return _t(t,8,900095);case 259:case 251:for(var a=vt,i=!1;a.parent;){if(176===a.kind&&192===a.parent.kind&&57===a.parent.operatorToken.kind&&a.parent.left===a){i=!0;break}a=a.parent}return;case 153:case 154:case 155:return de(t,131072,0);case 149:case 148:return _t(t,8192|(t.questionToken?536870912:0),e.isObjectLiteralMethod(t)?0:99263);case 225:return ct(t);case 150:return de(t,16384,0);case 151:return _t(t,32768,41919);case 152:return _t(t,65536,74687);case 158:case 159:case 274:return he(t);case 161:case 170:case 287:case 270:return ke(t,2048,"__type");case 176:return be(t);case 184:case 185:return ut(t);case 179:e.isInJavaScriptFile(t)&&nt(t);break;case 197:case 226:return Ft=!0,at(t);case 227:return xe(t,64,792968);case 285:if(!t.fullName||70===t.fullName.kind)return xe(t,524288,793064);
break;case 228:return xe(t,524288,793064);case 229:return it(t);case 230:return ve(t);case 234:case 237:case 239:case 243:return de(t,8388608,8388608);case 233:return Xe(t);case 236:return Ye(t);case 241:return Qe(t);case 240:return Ge(t);case 261:return je(t.statements),We();case 204:if(!e.isFunctionLike(t.parent))return;case 231:return je(t.statements)}}function qe(e){var t=e.parameterName,r=e.type;t&&70===t.kind&&Se(t),t&&167===t.kind&&(kt=!0),ze(r)}function We(){ye(ft),e.isExternalModule(ft)&&He()}function He(){ke(ft,512,'"'+e.removeFileExtension(ft.fileName)+'"')}function Ge(t){if(vt.symbol&&vt.symbol.exports){var r=240===t.kind&&e.exportAssignmentIsAlias(t)?8388608:4;u(vt.symbol.exports,vt.symbol,t,r,8388660)}else ke(t,8388608,s(t))}function Xe(t){if(t.modifiers&&t.modifiers.length&&ft.bindDiagnostics.push(e.createDiagnosticForNode(t,e.Diagnostics.Modifiers_cannot_appear_here)),261!==t.parent.kind)return void ft.bindDiagnostics.push(e.createDiagnosticForNode(t,e.Diagnostics.Global_module_exports_may_only_appear_at_top_level));var r=t.parent;return e.isExternalModule(r)?r.isDeclarationFile?(ft.symbol.globalExports=ft.symbol.globalExports||e.createMap(),void u(ft.symbol.globalExports,ft.symbol,t,8388608,8388608)):void ft.bindDiagnostics.push(e.createDiagnosticForNode(t,e.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files)):void ft.bindDiagnostics.push(e.createDiagnosticForNode(t,e.Diagnostics.Global_module_exports_may_only_appear_in_module_files))}function Qe(e){vt.symbol&&vt.symbol.exports?e.exportClause||u(vt.symbol.exports,vt.symbol,e,1073741824,0):ke(e,1073741824,s(e))}function Ye(e){e.name&&de(e,8388608,8388608)}function Ze(e){ft.commonJsModuleIndicator||(ft.commonJsModuleIndicator=e,ft.externalModuleIndicator||He())}function $e(e){Ze(e),u(ft.symbol.exports,ft.symbol,e.left,7340036,0)}function et(e){Ze(e),u(ft.symbol.exports,ft.symbol,e,7340548,0)}function tt(t){if(e.Debug.assert(e.isInJavaScriptFile(t)),225===vt.kind||184===vt.kind)vt.symbol.members=vt.symbol.members||e.createMap(),u(vt.symbol.members,vt.symbol,t,4,0);else if(150===vt.kind){var r=vt;vt=vt.parent;var n=_t(t,4,0);n&&(n.isReplaceableByMethod=!0),vt=r}}function rt(t){var r=t.left,n=r.expression,a=n.expression;r.parent=t,a.parent=n,n.parent=r;var i=vt.locals[a.text];i&&(16&i.flags||e.isDeclarationOfFunctionExpression(i))&&(i.members||(i.members=e.createMap()),u(i.members,i,r,4,0))}function nt(t){!ft.commonJsModuleIndicator&&e.isRequireCall(t,!1)&&Ze(t)}function at(t){if(226===t.kind)xe(t,32,899519);else{var r=t.name?t.name.text:"__class";ke(t,32,r),t.name&&(It[t.name.text]=t.name.text)}var n=t.symbol,a=i(134217732,"prototype");n.exports[a.name]&&(t.name&&(t.name.parent=t),ft.bindDiagnostics.push(e.createDiagnosticForNode(n.exports[a.name].declarations[0],e.Diagnostics.Duplicate_identifier_0,a.name))),n.exports[a.name]=a,a.parent=n}function it(t){return e.isConst(t)?xe(t,128,899967):xe(t,256,899327)}function ot(t){Ft&&we(t,t.name),e.isBindingPattern(t.name)||(e.isBlockOrCatchScoped(t)?De(t):e.isParameterDeclaration(t)?de(t,1,107455):de(t,1,107454))}function st(t){if(Ft&&we(t,t.name),e.isBindingPattern(t.name)?ke(t,1,Je(t)):de(t,1,107455),e.isParameterPropertyDeclaration(t)){var r=t.parent.parent;u(r.symbol.members,r.symbol,t,4|(t.questionToken?536870912:0),0)}}function ct(t){e.isDeclarationFile(ft)||e.isInAmbientContext(t)||e.isAsyncFunctionLike(t)&&(Pt|=1024),Fe(t),Ft?(Ie(t),xe(t,16,106927)):de(t,16,106927)}function ut(t){e.isDeclarationFile(ft)||e.isInAmbientContext(t)||e.isAsyncFunctionLike(t)&&(Pt|=1024),xt&&(t.flowNode=xt),Fe(t);var r=t.name?t.name.text:"__function";return ke(t,16,r)}function _t(t,r,n){return e.isDeclarationFile(ft)||e.isInAmbientContext(t)||e.isAsyncFunctionLike(t)&&(Pt|=1024),xt&&e.isObjectLiteralOrClassExpressionMethod(t)&&(t.flowNode=xt),e.hasDynamicName(t)?ke(t,r,"__computed"):de(t,r,n)}function lt(e){return de(e,4,0)}function dt(e){var r=t(e);return 1===r||2===r&&mt.preserveConstEnums}function pt(t){if(!(1&xt.flags))return!1;if(xt===Mt){var r=e.isStatementButNotDeclaration(t)&&206!==t.kind||226===t.kind||230===t.kind&&dt(t)||229===t.kind&&(!e.isConstEnumDeclaration(t)||mt.preserveConstEnums);if(r){xt=Bt;var n=!mt.allowUnreachableCode&&!e.isInAmbientContext(t)&&(205!==t.kind||3&e.getCombinedNodeFlags(t.declarationList)||e.forEach(t.declarationList.declarations,function(e){return e.initializer}));n&&Ke(t,e.Diagnostics.Unreachable_code_detected)}}return!0}var ft,mt,gt,yt,vt,ht,bt,kt,xt,Dt,St,Ct,Et,Tt,Nt,At,wt,Pt,Ft,Ot,It,Rt,Lt=0,Mt={flags:1},Bt={flags:1},Kt=0;return r}function a(e,t){var r=e.kind;switch(r){case 179:return i(e,t);case 180:return s(e,t);case 230:return A(e,t);case 183:return _(e,t);case 192:return c(e,t);case 207:return N(e,t);case 144:return u(e,t);case 185:return x(e,t);case 184:return k(e,t);case 225:return b(e,t);case 223:return S(e,t);case 224:return w(e,t);case 205:return C(e,t);case 219:return E(e,t);case 226:return l(e,t);case 197:return d(e,t);case 255:return p(e,t);case 256:return f(e,t);case 199:return m(e,t);case 150:return g(e,t);case 147:return h(e,t);case 149:return y(e,t);case 151:case 152:return v(e,t);case 234:return T(e,t);case 177:return D(e,t);default:return P(e,r,t)}}function i(e,t){var r=t,n=e.expression,a=n.kind;return e.typeArguments&&(r|=3),(524288&t||o(n,a))&&(r|=192),e.transformFlags=536870912|r,r&-537396546}function o(e,t){switch(t){case 96:return!0;case 177:case 178:var r=e.expression,n=r.kind;return 96===n}return!1}function s(e,t){var r=t;return e.typeArguments&&(r|=3),524288&t&&(r|=192),e.transformFlags=536870912|r,r&-537396546}function c(e,t){var r=t,n=e.operatorToken.kind,a=e.left.kind;return 57===n&&176===a?r|=3272:57===n&&175===a?r|=3264:39!==n&&61!==n||(r|=32),e.transformFlags=536870912|r,r&-536872258}function u(t,r){var n=r,a=e.getModifierFlags(t),i=t.name,o=t.initializer,s=t.dotDotDotToken;return(t.questionToken||t.type||4096&r||e.isThisIdentifier(i))&&(n|=3),92&a&&(n|=262147),1048576&r&&(n|=8),(8388608&r||o||s)&&(n|=131264),t.transformFlags=536870912|n,n&-536872258}function _(e,t){var r=t,n=e.expression,a=n.kind,i=n.transformFlags;return 200!==a&&182!==a||(r|=3),1024&i&&(r|=1024),e.transformFlags=536870912|r,r&-536872258}function l(t,r){var n,a=e.getModifierFlags(t);return 2&a?n=3:(n=192|r,(274432&r||t.typeParameters)&&(n|=3),65536&r&&(n|=16384)),t.transformFlags=536870912|n,n&-539358530}function d(e,t){var r=192|t;return(274432&t||e.typeParameters)&&(r|=3),65536&t&&(r|=16384),e.transformFlags=536870912|r,r&-539358530}function p(t,r){var n=r;switch(t.token){case 84:n|=192;break;case 107:n|=3;break;default:e.Debug.fail("Unexpected token for heritage clause")}return t.transformFlags=536870912|n,n&-536872258}function f(t,r){var n=r;return t.variableDeclaration&&e.isBindingPattern(t.variableDeclaration.name)&&(n|=192),t.transformFlags=536870912|n,n&-537920834}function m(e,t){var r=192|t;return e.typeArguments&&(r|=3),e.transformFlags=536870912|r,r&-536872258}function g(t,r){var n=r;return!e.hasModifier(t,2270)&&t.body||(n|=3),1048576&r&&(n|=8),t.transformFlags=536870912|n,n&-601015618}function y(t,r){var n=192|r;return(t.decorators||e.hasModifier(t,2270)||t.typeParameters||t.type||!t.body)&&(n|=3),1048576&r&&(n|=8),e.hasModifier(t,256)&&(n|=16),t.asteriskToken&&131072&e.getEmitFlags(t)&&(n|=768),t.transformFlags=536870912|n,n&-601015618}function v(t,r){var n=r;return(t.decorators||e.hasModifier(t,2270)||t.type||!t.body)&&(n|=3),1048576&r&&(n|=8),t.transformFlags=536870912|n,n&-601015618}function h(e,t){var r=3|t;return e.initializer&&(r|=8192),e.transformFlags=536870912|r,r&-536872258}function b(t,r){var n,a=e.getModifierFlags(t),i=t.body;return!i||2&a?n=3:(n=33554432|r,(2270&a||t.typeParameters||t.type)&&(n|=3),256&a&&(n|=16),1048576&r&&(n|=8),163840&r&&(n|=192),t.asteriskToken&&131072&e.getEmitFlags(t)&&(n|=768)),t.transformFlags=536870912|n,n&-601281858}function k(t,r){var n=r;return(e.hasModifier(t,2270)||t.typeParameters||t.type)&&(n|=3),e.hasModifier(t,256)&&(n|=16),1048576&r&&(n|=8),163840&r&&(n|=192),t.asteriskToken&&131072&e.getEmitFlags(t)&&(n|=768),t.transformFlags=536870912|n,n&-601281858}function x(t,r){var n=192|r;return(e.hasModifier(t,2270)||t.typeParameters||t.type)&&(n|=3),e.hasModifier(t,256)&&(n|=16),1048576&r&&(n|=8),16384&r&&(n|=32768),t.transformFlags=536870912|n,n&-601249090}function D(e,t){var r=t,n=e.expression,a=n.kind;return 96===a&&(r|=16384),e.transformFlags=536870912|r,r&-536872258}function S(e,t){var r=t;return r|=8388800,1048576&t&&(r|=8),e.type&&(r|=3),e.transformFlags=536870912|r,r&-536872258}function C(t,r){var n,a=e.getModifierFlags(t),i=t.declarationList.transformFlags;return 2&a?n=3:(n=r,8388608&i&&(n|=192)),t.transformFlags=536870912|n,n&-536872258}function E(t,r){var n=r;return 4194304&r&&e.isIterationStatement(t,!0)&&(n|=192),t.transformFlags=536870912|n,n&-536872258}function T(t,r){var n=r;return e.isExternalModuleImportEqualsDeclaration(t)||(n|=3),t.transformFlags=536870912|n,n&-536872258}function N(e,t){var r=t;return 1024&e.expression.transformFlags&&(r|=192),e.transformFlags=536870912|r,r&-536872258}function A(t,r){var n=3,a=e.getModifierFlags(t);return 0===(2&a)&&(n|=r),t.transformFlags=536870912|n,n&-574674242}function w(e,t){var r=33554432|t;return 8388608&t&&(r|=192),3&e.flags&&(r|=4194496),e.transformFlags=536870912|r,r&-546309442}function P(e,t,r){var n=r,a=536872257;switch(t){case 119:case 189:n|=16;break;case 113:case 111:case 112:case 116:case 123:case 75:case 229:case 260:case 182:case 200:case 201:case 130:n|=3;break;case 246:case 247:case 248:case 10:case 249:case 250:case 251:case 252:n|=4;break;case 213:n|=8;case 12:case 13:case 14:case 15:case 194:case 181:case 258:case 114:n|=192;break;case 195:n|=16777408;break;case 118:case 132:case 129:case 134:case 121:case 135:case 104:case 143:case 146:case 148:case 153:case 154:case 155:case 156:case 157:case 158:case 159:case 160:case 161:case 162:case 163:case 164:case 165:case 166:case 227:case 228:case 167:case 168:case 169:case 170:case 171:n=3,a=-3;break;case 142:n|=2097152,16384&r&&(n|=65536);break;case 196:n|=524480;break;case 259:n|=1048584;break;case 96:n|=192;break;case 98:n|=16384;break;case 172:n|=8388800,524288&r&&(n|=1048584),a=537396545;break;case 173:n|=8388800,a=537396545;break;case 174:n|=192,e.dotDotDotToken&&(n|=524288);break;case 145:n|=4099;break;case 176:a=540087617,2097152&r&&(n|=192),65536&r&&(n|=16384),1048576&r&&(n|=8);break;case 175:case 180:a=537396545,524288&r&&(n|=192);break;case 209:case 210:case 211:case 212:4194304&r&&(n|=192);break;case 261:32768&r&&(n|=192);break;case 216:case 214:case 215:n|=33554432}return e.transformFlags=536870912|n,n&~a}function F(e){if(e>=156&&e<=171)return-3;switch(e){case 179:case 180:case 175:return 537396545;case 230:return 574674241;case 144:return 536872257;case 185:return 601249089;case 184:case 225:return 601281857;case 224:return 546309441;case 226:case 197:return 539358529;case 150:return 601015617;case 149:case 151:case 152:return 601015617;case 118:case 132:case 129:case 134:case 121:case 135:case 104:case 143:case 146:case 148:case 153:case 154:case 155:case 227:case 228:return-3;case 176:return 540087617;case 256:return 537920833;case 172:case 173:return 537396545;default:return 536872257}}var O;!function(e){e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly"}(O=e.ModuleInstanceState||(e.ModuleInstanceState={})),e.getModuleInstanceState=t;var I;!function(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.IsObjectLiteralOrClassExpressionMethod=128]="IsObjectLiteralOrClassExpressionMethod"}(I||(I={}));var R=n();e.bindSourceFile=r,e.computeTransformFlagsForNode=a,e.getTransformFlagsSubtreeExclusions=F}(ts||(ts={}));var ts;!function(e){function t(t){t.trace(e.formatMessage.apply(void 0,arguments))}function r(e,t){return e.traceResolution&&void 0!==t.trace}function n(t){if(t)return e.Debug.assert(e.extensionIsTypeScript(t.extension)),t.path}function a(e,t){var r=e.path,n=e.extension;return{resolvedFileName:r,extension:n,isExternalLibraryImport:t}}function i(e,t,r){return{resolvedModule:e&&a(e,t),failedLookupLocations:r}}function o(t){return!(e.isRootedDiskPath(t)||e.isExternalModuleNameRelative(t))}function s(r,n,a,i){function o(r){if(e.hasProperty(s,r)){var n=s[r];if("string"==typeof n){var o=e.normalizePath(e.combinePaths(a,n));return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_has_0_field_1_that_references_2,r,n,o),o}i.traceEnabled&&t(i.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_string_got_1,r,typeof n)}}var s=c(n,i.host);switch(r){case 2:case 0:return o("typings")||o("types");case 1:return o("main")}}function c(e,t){try{var r=t.readFile(e);return r?JSON.parse(r):{}}catch(n){return{}}}function u(t,r){if(t.typeRoots)return t.typeRoots;var n;return t.configFilePath?n=e.getDirectoryPath(t.configFilePath):r.getCurrentDirectory&&(n=r.getCurrentDirectory()),void 0!==n?_(n,r):void 0}function _(t,r){if(!r.directoryExists)return[e.combinePaths(t,J)];var n;return B(t,function(t){var a=e.combinePaths(t,J);r.directoryExists(a)&&(n||(n=[])).push(a)}),n}function l(a,i,o,s){function c(){return p&&p.length?(l&&t(s,e.Diagnostics.Resolving_with_primary_search_path_0,p.join(", ")),e.forEach(p,function(t){var r=e.combinePaths(t,a),i=e.getDirectoryPath(r);return n(C(2,r,f,!k(i,s),d))})):void(l&&t(s,e.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths))}function _(){var r,o=i&&e.getDirectoryPath(i);if(void 0!==o){l&&t(s,e.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,o);var c=w(2,a,o,f,d,void 0);return r=n(c&&c.value),!r&&l&&t(s,e.Diagnostics.Type_reference_directive_0_was_not_resolved,a),r}l&&t(s,e.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}var l=r(o,s),d={compilerOptions:o,host:s,traceEnabled:l},p=u(o,s);l&&(void 0===i?void 0===p?t(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,a):t(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,a,p):void 0===p?t(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,a,i):t(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,a,i,p));var f=[],m=c(),g=!0;m||(m=_(),g=!1);var y;return m&&(m=h(m,s,l),l&&t(s,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,a,m,g),y={primary:g,resolvedFileName:m}),{resolvedTypeReferenceDirective:y,failedLookupLocations:f}}function d(t,r){if(t.types)return t.types;var n=[];if(r.directoryExists&&r.getDirectories){var a=u(t,r);if(a)for(var i=0,o=a;i<o.length;i++){var s=o[i];if(r.directoryExists(s))for(var _=0,l=r.getDirectories(s);_<l.length;_++){var d=l[_],p=e.normalizePath(d),f=N(e.combinePaths(s,p)),m=r.fileExists(f)&&null===c(f,r).typings;m||n.push(e.getBaseFileName(p))}}}return n}function p(t,r){function n(n){var a=e.toPath(n,t,r),i=s.get(a);return i||(i=e.createMap(),s.set(a,i)),i}function a(e){if(o(e)){var t=c[e];return t||(c[e]=t=i()),t}}function i(){function n(n){return o.get(e.toPath(n,t,r))}function a(n,a){var s=e.toPath(n,t,r);if(!o.contains(s)){o.set(s,a);for(var c=a.resolvedModule&&a.resolvedModule.resolvedFileName,u=i(s,c),_=s;;){var l=e.getDirectoryPath(_);if(l===_||o.contains(l))break;if(o.set(l,a),_=l,_==u)break}}}function i(n,a){if(void 0!==a){for(var i=e.toPath(e.getDirectoryPath(a),t,r),o=0;o<Math.min(n.length,i.length)&&n.charCodeAt(o)===i.charCodeAt(o);)o++;var s=n.lastIndexOf(e.directorySeparator,o);if(!(s<0))return n.substr(0,s)}}var o=e.createFileMap();return{get:n,set:a}}var s=e.createFileMap(),c=e.createMap();return{getOrCreateCacheForDirectory:n,getOrCreateCacheForModuleName:a}}function f(n,a,i,o,s){var c=r(i,o);c&&t(o,e.Diagnostics.Resolving_module_0_from_1,n,a);var u=e.getDirectoryPath(a),_=s&&s.getOrCreateCacheForDirectory(u),l=_&&_[n];if(l)c&&t(o,e.Diagnostics.Resolution_for_module_0_was_found_in_cache,n);else{var d=i.moduleResolution;switch(void 0===d?(d=e.getEmitModuleKind(i)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic,c&&t(o,e.Diagnostics.Module_resolution_kind_is_not_specified_using_0,e.ModuleResolutionKind[d])):c&&t(o,e.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0,e.ModuleResolutionKind[d]),d){case e.ModuleResolutionKind.NodeJs:l=v(n,a,i,o,s);break;case e.ModuleResolutionKind.Classic:l=R(n,a,i,o,s)}if(_){_[n]=l;var p=s.getOrCreateCacheForModuleName(n);p&&p.set(u,l)}}return c&&(l.resolvedModule?t(o,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1,n,l.resolvedModule.resolvedFileName):t(o,e.Diagnostics.Module_name_0_was_not_resolved,n)),l}function m(e,t,r,n,a,i){return o(t)?y(e,t,n,a,i):g(e,t,r,n,a,i)}function g(r,n,a,i,o,s){if(s.compilerOptions.rootDirs){s.traceEnabled&&t(s.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,n);for(var c,u,_=e.normalizePath(e.combinePaths(a,n)),l=0,d=s.compilerOptions.rootDirs;l<d.length;l++){var p=d[l],f=e.normalizePath(p);e.endsWith(f,e.directorySeparator)||(f+=e.directorySeparator);var m=e.startsWith(_,f)&&(void 0===u||u.length<f.length);s.traceEnabled&&t(s.host,e.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2,f,_,m),m&&(u=f,c=p)}if(u){s.traceEnabled&&t(s.host,e.Diagnostics.Longest_matching_prefix_for_0_is_1,_,u);var g=_.substr(u.length);s.traceEnabled&&t(s.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,g,u,_);var y=i(r,_,o,!k(a,s.host),s);if(y)return y;s.traceEnabled&&t(s.host,e.Diagnostics.Trying_other_entries_in_rootDirs);for(var v=0,h=s.compilerOptions.rootDirs;v<h.length;v++){var p=h[v];if(p!==c){var b=e.combinePaths(e.normalizePath(p),g);s.traceEnabled&&t(s.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,g,p,b);var x=e.getDirectoryPath(b),D=i(r,b,o,!k(x,s.host),s);if(D)return D}}s.traceEnabled&&t(s.host,e.Diagnostics.Module_resolution_using_rootDirs_has_failed)}}}function y(r,n,a,i,o){if(o.compilerOptions.baseUrl){o.traceEnabled&&t(o.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o.compilerOptions.baseUrl,n);var s=void 0;if(o.compilerOptions.paths&&(o.traceEnabled&&t(o.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,n),s=e.matchPatternOrExact(e.getOwnKeys(o.compilerOptions.paths),n)),s){var c="string"==typeof s?void 0:e.matchedText(s,n),u="string"==typeof s?s:e.patternText(s);return o.traceEnabled&&t(o.host,e.Diagnostics.Module_name_0_matched_pattern_1,n,u),e.forEach(o.compilerOptions.paths[u],function(n){var s=c?n.replace("*",c):n,u=e.normalizePath(e.combinePaths(o.compilerOptions.baseUrl,s));o.traceEnabled&&t(o.host,e.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,n,s);var _=e.tryGetExtensionFromPath(u);if(void 0!==_){var l=S(u,i,!1,o);return l&&{path:l,extension:_}}return a(r,u,i,!k(e.getDirectoryPath(u),o.host),o)})}var _=e.normalizePath(e.combinePaths(o.compilerOptions.baseUrl,n));return o.traceEnabled&&t(o.host,e.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,n,o.compilerOptions.baseUrl,_),a(r,_,i,!k(e.getDirectoryPath(_),o.host),o)}}function v(n,a,s,c,u){function _(r){var a=m(r,n,l,b,p,f);if(a)return M({resolved:a,isExternalLibraryImport:!1});if(o(n)){d&&t(c,e.Diagnostics.Loading_module_0_from_node_modules_folder,n);var i=w(r,n,l,p,f,u);return i&&{value:i.value&&{resolved:{path:h(i.value.path,c,d),extension:i.value.extension},isExternalLibraryImport:!0}}}var s=e.normalizePath(e.combinePaths(l,n)),_=b(r,s,p,!1,f);return _&&M({resolved:_,isExternalLibraryImport:!1})}var l=e.getDirectoryPath(a),d=r(s,c),p=[],f={compilerOptions:s,host:c,traceEnabled:d},g=_(0)||_(1);if(g&&g.value){var y=g.value,v=y.resolved,k=y.isExternalLibraryImport;return i(v,k,p)}return{resolvedModule:void 0,failedLookupLocations:p}}function h(r,n,a){if(!n.realpath)return r;var i=e.normalizePath(n.realpath(r));return a&&t(n,e.Diagnostics.Resolving_real_path_for_0_result_1,r,i),i}function b(r,n,a,i,o){o.traceEnabled&&t(o.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0,n);var s=!e.pathEndsWithDirectorySeparator(n)&&x(r,n,a,i,o);return s||C(r,n,a,i,o)}function k(e,t){return!t.directoryExists||t.directoryExists(e)}function x(r,n,a,i,o){var s=D(n,r,a,i,o);if(s)return s;if(e.hasJavaScriptFileExtension(n)){var c=e.removeFileExtension(n);if(o.traceEnabled){var u=n.substring(c.length);t(o.host,e.Diagnostics.File_name_0_has_a_1_extension_stripping_it,n,u)}return D(c,r,a,i,o)}}function D(t,r,n,a,i){function o(e,r){var o=S(t+e,n,a,i);return o&&{path:o,extension:r}}if(!a){var s=e.getDirectoryPath(t);s&&(a=!k(s,i.host))}switch(r){case 2:return o(".d.ts",e.Extension.Dts);case 0:return o(".ts",e.Extension.Ts)||o(".tsx",e.Extension.Tsx)||o(".d.ts",e.Extension.Dts);case 1:return o(".js",e.Extension.Js)||o(".jsx",e.Extension.Jsx)}}function S(r,n,a,i){return!a&&i.host.fileExists(r)?(i.traceEnabled&&t(i.host,e.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,r),r):(i.traceEnabled&&t(i.host,e.Diagnostics.File_0_does_not_exist,r),void n.push(r))}function C(r,n,a,i,o){var c=N(n),u=!i&&k(n,o.host);if(u&&o.host.fileExists(c)){o.traceEnabled&&t(o.host,e.Diagnostics.Found_package_json_at_0,c);var _=s(r,c,n,o);if(_){var l=!k(e.getDirectoryPath(_),o.host),d=S(_,a,l,o);if(d){var p=d&&E(r,d);if(p)return p;o.traceEnabled&&t(o.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,d)}var f=D(_,0,a,l,o);if(f)return f;if(1===r){var m=D(_,1,a,l,o);if(m)return m}}else o.traceEnabled&&t(o.host,e.Diagnostics.package_json_does_not_have_a_types_or_main_field)}else o.traceEnabled&&t(o.host,e.Diagnostics.File_0_does_not_exist,c),a.push(c);return x(r,e.combinePaths(n,"index"),a,!u,o)}function E(t,r){var n=e.tryGetExtensionFromPath(r);return void 0!==n&&T(t,n)?{path:r,extension:n}:void 0}function T(t,r){switch(t){case 1:return r===e.Extension.Js||r===e.Extension.Jsx;case 0:return r===e.Extension.Ts||r===e.Extension.Tsx||r===e.Extension.Dts;case 2:return r===e.Extension.Dts}}function N(t){return e.combinePaths(t,"package.json")}function A(t,r,n,a,i){var o=e.combinePaths(n,"node_modules"),s=k(o,i.host),c=e.normalizePath(e.combinePaths(o,r));return x(t,c,a,!s,i)||C(t,c,a,!s,i)}function w(e,t,r,n,a,i){return F(e,t,r,n,a,!1,i)}function P(e,t,r,n){return F(2,e,t,r,n,!0,void 0)}function F(t,r,n,a,i,o,s){var c=s&&s.getOrCreateCacheForModuleName(r);return B(e.normalizeSlashes(n),function(n){if("node_modules"!==e.getBaseFileName(n)){var s=I(c,r,n,i.traceEnabled,i.host);return s?s:M(O(t,r,n,a,i,o))}})}function O(t,r,n,a,i,o){void 0===o&&(o=!1);var s=o?void 0:A(t,r,n,a,i);return s?s:1!==t?A(2,e.combinePaths("@types",r),n,a,i):void 0}function I(r,n,a,i,o){var s=r&&r.get(a);if(s)return i&&t(o,e.Diagnostics.Resolution_for_module_0_was_found_in_cache,n),{value:s.resolvedModule&&{path:s.resolvedModule.resolvedFileName,extension:s.resolvedModule.extension}}}function R(t,n,a,s,c){function u(r){var n=m(r,t,p,x,d,l);if(n)return{value:n};var a=c&&c.getOrCreateCacheForModuleName(t);if(!o(t)){var i=e.normalizePath(e.combinePaths(p,t));return M(x(r,i,d,!1,l))}var u=B(p,function(n){var i=I(a,t,n,_,s);if(i)return i;var o=e.normalizePath(e.combinePaths(n,t));return M(x(r,o,d,!1,l))});return u?u:0===r?P(t,p,d,l):void 0}var _=r(a,s),l={compilerOptions:a,host:s,traceEnabled:_},d=[],p=e.getDirectoryPath(n),f=u(0)||u(1);return i(f&&f.value,!1,d)}function L(n,a,o,s,c){var u=r(o,s);u&&t(s,e.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,a,n,c);var _={compilerOptions:o,host:s,traceEnabled:u},l=[],d=O(2,n,c,l,_);return i(d,!0,l)}function M(e){return void 0!==e?{value:e}:void 0}function B(t,r){for(;;){var n=r(t);if(void 0!==n)return n;var a=e.getDirectoryPath(t);if(a===t)return;t=a}}e.trace=t,e.isTraceEnabled=r;var K;!function(e){e[e.TypeScript=0]="TypeScript",e[e.JavaScript=1]="JavaScript",e[e.DtsOnly=2]="DtsOnly"}(K||(K={})),e.moduleHasNonRelativeName=o,e.getEffectiveTypeRoots=u;var J=e.combinePaths("node_modules","@types");e.resolveTypeReferenceDirective=l,e.getAutomaticTypeDirectiveNames=d,e.createModuleResolutionCache=p,e.resolveModuleName=f,e.nodeModuleNameResolver=v,e.directoryProbablyExists=k,e.classicNameResolver=R,e.loadModuleFromGlobalCache=L}(ts||(ts={}));var ts;!function(e){function t(e){return e.id||(e.id=o,o++),e.id}function r(e){return e.id||(e.id=i,i++),e.id}function n(n,i){function o(){return void 0===sv&&(sv="React",dg.jsxFactory?(cv=e.parseIsolatedEntityName(dg.jsxFactory,pg),cv&&(sv=Fp(cv).text)):dg.reactNamespace&&(sv=dg.reactNamespace)),sv}function u(e,t){return Xp(e,t),vg}function _(t,r,n,a,i){var o=t?e.createDiagnosticForNode(t,r,n,a,i):e.createCompilerDiagnostic(r,n,a,i);iv.add(o)}function l(e,t){return ug++,new ig(e,t)}function d(e){var t=0;return 2&e&&(t|=107455),1&e&&(t|=107454),4&e&&(t|=0),8&e&&(t|=900095),16&e&&(t|=106927),32&e&&(t|=899519),64&e&&(t|=792968),256&e&&(t|=899327),128&e&&(t|=899967),512&e&&(t|=106639),8192&e&&(t|=99263),32768&e&&(t|=41919),65536&e&&(t|=74687),262144&e&&(t|=530920),524288&e&&(t|=793064),8388608&e&&(t|=8388608),t}function p(e,t){t.mergeId||(t.mergeId=s,s++),Gy[t.mergeId]=e}function f(t){var r=l(33554432|t.flags,t.name);return r.declarations=t.declarations.slice(0),r.parent=t.parent,t.valueDeclaration&&(r.valueDeclaration=t.valueDeclaration),t.constEnumOnlyModule&&(r.constEnumOnlyModule=!0),t.members&&(r.members=e.cloneMap(t.members)),t.exports&&(r.exports=e.cloneMap(t.exports)),p(r,t),r}function m(t,r){if(t.flags&d(r.flags)){var n=2&t.flags||2&r.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0;e.forEach(r.declarations,function(e){_(e.name?e.name:e,n,Ke(r))}),e.forEach(t.declarations,function(e){_(e.name?e.name:e,n,Ke(r))})}else 512&r.flags&&512&t.flags&&t.constEnumOnlyModule&&!r.constEnumOnlyModule&&(t.constEnumOnlyModule=!1),t.flags|=r.flags,r.valueDeclaration&&(!t.valueDeclaration||230===t.valueDeclaration.kind&&230!==r.valueDeclaration.kind)&&(t.valueDeclaration=r.valueDeclaration),e.addRange(t.declarations,r.declarations),r.members&&(t.members||(t.members=e.createMap()),g(t.members,r.members)),r.exports&&(t.exports||(t.exports=e.createMap()),g(t.exports,r.exports)),p(t,r)}function g(e,t){for(var r in t){var n=e[r];n?(33554432&n.flags||(e[r]=n=f(n)),m(n,t[r])):e[r]=t[r]}}function y(t){var r=t.parent;if(r.symbol.declarations[0]!==r)return void e.Debug.assert(r.symbol.declarations.length>1);if(e.isGlobalScopeAugmentation(r))g(Ky,r.symbol.exports);else{var n=e.isInAmbientContext(t.parent.parent)?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,a=re(t,t,n,!0);if(!a)return;a=ae(a),1920&a.flags?(a=33554432&a.flags?a:f(a),m(a,r.symbol)):_(t,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,t.text)}}function v(t,r,n){function a(t,r){return function(n){return iv.add(e.createDiagnosticForNode(n,r,t))}}for(var i in r)t[i]?e.forEach(t[i].declarations,a(i,n)):t[i]=r[i]}function h(e){if(67108864&e.flags)return e;var t=r(e);return Xy[t]||(Xy[t]={})}function b(e){var r=t(e);return Qy[r]||(Qy[r]={flags:0})}function k(e){return 32768&e.flags?e.objectFlags:0}function x(t){return 261===t.kind&&!e.isExternalOrCommonJsModule(t)}function D(t,r,n){if(n){var a=t[r];if(a){if(e.Debug.assert(0===(16777216&a.flags),"Should never get an instantiated symbol here."),a.flags&n)return a;if(8388608&a.flags){var i=X(a);if(i===Ag||i.flags&n)return a}}}}function S(t,r){var n=t.parent,a=t.parent.parent,i=D(n.locals,r,107455),o=D(a.symbol.members,r,107455);return i&&o?[i,o]:void e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function C(t,r){function a(t,r){var n=e.getEnclosingBlockScopeContainer(t);switch(t.parent.parent.kind){case 205:case 211:case 213:if(O(r,t,n))return!0}switch(t.parent.parent.kind){case 212:case 213:if(O(r,t.parent.parent.expression,n))return!0}return!1}function i(t,r){for(var n=t;n;){if(n===r)return!1;if(e.isFunctionLike(n))return!0;var a=n.parent&&147===n.parent.kind&&0===(32&e.getModifierFlags(n.parent))&&n.parent.initializer===n;if(a)return!0;n=n.parent}return!1}function o(t){for(;t;){if(e.isBindingPattern(t))return t;t=t.parent}}var s=e.getSourceFileOfNode(t),c=e.getSourceFileOfNode(r);if(s!==c){if(fg&&(s.externalModuleIndicator||c.externalModuleIndicator)||!dg.outFile&&!dg.out)return!0;if(i(r))return!0;var u=n.getSourceFiles();return e.indexOf(u,s)<=e.indexOf(u,c)}if(t.pos<=r.pos){if(174===t.kind){var _=e.getAncestor(r,174);return _?o(_)!==o(t)||t.pos<_.pos:C(e.getAncestor(t,223),r)}return 223!==t.kind||!a(t,r)}var l=e.getEnclosingBlockScopeContainer(t);return i(r,l)}function E(t,r,n,a,i){var o,s,c,u,l=t,d=!1;e:for(;t;){if(t.locals&&!x(t)&&(o=D(t.locals,r,n))){var p=!0;if(e.isFunctionLike(t)&&s&&s!==t.body&&(n&o.flags&793064&&278!==s.kind&&(p=!!(262144&o.flags)&&(s===t.type||144===s.kind||143===s.kind)),107455&n&&1&o.flags&&(p=144===s.kind||s===t.type&&144===o.valueDeclaration.kind)),p)break e;o=void 0}switch(t.kind){case 261:if(!e.isExternalOrCommonJsModule(t))break;d=!0;case 230:var f=fe(t).exports;if(261===t.kind||e.isAmbientModule(t)){if(o=f["default"]){var m=e.getLocalSymbolForExportDefault(o);if(m&&o.flags&n&&m.name===r)break e;o=void 0}if(f[r]&&8388608===f[r].flags&&e.getDeclarationOfKind(f[r],243))break}if(o=D(f,r,8914931&n))break e;break;case 229:if(o=D(fe(t).exports,r,8&n))break e;break;case 147:case 146:if(e.isClassLike(t.parent)&&!(32&e.getModifierFlags(t))){var g=ve(t.parent);g&&g.locals&&D(g.locals,r,107455&n)&&(c=t)}break;case 226:case 197:case 227:if(o=D(fe(t).members,r,793064&n)){if(s&&32&e.getModifierFlags(s))return void _(l,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(197===t.kind&&32&n){var y=t.name;if(y&&r===y.text){o=t.symbol;break e}}break;case 142:if(u=t.parent.parent,(e.isClassLike(u)||227===u.kind)&&(o=D(fe(u).members,r,793064&n)))return void _(l,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 149:case 148:case 150:case 151:case 152:case 225:case 185:if(3&n&&"arguments"===r){o=bg;break e}break;case 184:if(3&n&&"arguments"===r){o=bg;break e}if(16&n){var v=t.name;if(v&&r===v.text){o=t.symbol;break e}}break;case 145:t.parent&&144===t.parent.kind&&(t=t.parent),t.parent&&e.isClassElement(t.parent)&&(t=t.parent)}s=t,t=t.parent}if(o&&a&&mg&&(o.isReferenced=!0),o||(o=D(Ky,r,n)),!o)return void(a&&(l&&(T(l,r,i)||N(l)||w(l,r,n)||P(l,r,n))||_(l,a,"string"==typeof i?i:e.declarationNameToString(i))));if(a){if(c){var h=c.name;return void _(l,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(h),"string"==typeof i?i:e.declarationNameToString(i))}if(2&n){var b=ge(o);2&b.flags&&F(b,l)}if(o&&d&&107455===(107455&n)){var k=o.declarations;k&&1===k.length&&233===k[0].kind&&_(l,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,r)}}return o}function T(t,r,n){if(70===t.kind&&nf(t)||jo(t))return!1;for(var a=e.getThisContainer(t,!0),i=a;i;){if(e.isClassLike(i.parent)){var o=fe(i.parent);if(!o)break;var s=Pt(o);if(Gr(s,r))return _(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,"string"==typeof n?n:e.declarationNameToString(n),Ke(o)),!0;if(i===a&&!(32&e.getModifierFlags(i))){var c=ar(o).thisType;if(Gr(c,r))return _(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,"string"==typeof n?n:e.declarationNameToString(n)),
!0}}i=i.parent}return!1}function N(t){var r=A(t),n=!(!r||!ee(r,64,!0));return n&&_(t,e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,e.getTextOfNode(r)),n}function A(t){switch(t.kind){case 70:case 177:return t.parent?A(t.parent):void 0;case 199:return e.Debug.assert(e.isEntityNameExpression(t.expression)),t.expression;default:return}}function w(t,r,n){if(1920===n){var a=G(E(t,r,792640,void 0,void 0));if(a)return _(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,r),!0}return!1}function P(t,r,n){if(107455&n){var a=G(E(t,r,792640,void 0,void 0));if(a&&!(1024&a.flags))return _(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,r),!0}return!1}function F(t,r){e.Debug.assert(0!==(2&t.flags));var n=e.forEach(t.declarations,function(t){return e.isBlockOrCatchScoped(t)?t:void 0});e.Debug.assert(void 0!==n,"Block-scoped variable declaration is undefined"),e.isInAmbientContext(n)||C(n,r)||_(r,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,e.declarationNameToString(n.name))}function O(t,r,n){if(!r)return!1;for(var a=t;a&&a!==n&&!e.isFunctionLike(a);a=a.parent)if(a===r)return!0;return!1}function I(t){if(e.isAliasSymbolDeclaration(t)){if(234===t.kind)return t;for(;t&&235!==t.kind;)t=t.parent;return t}}function R(t){return e.find(t.declarations,e.isAliasSymbolDeclaration)}function L(t){return 245===t.moduleReference.kind?ae(te(t,e.getExternalModuleImportEqualsDeclarationExpression(t))):Z(t.moduleReference)}function M(t){var r=te(t,t.parent.moduleSpecifier);if(r){var n=e.isShorthandAmbientModuleSymbol(r)?r:r.exports["export="]?Gr(Pt(r.exports["export="]),"default"):G(r.exports["default"]);if(n||gg){if(!n&&gg)return ae(r)||G(r)}else _(t.name,e.Diagnostics.Module_0_has_no_default_export,Ke(r));return n}}function B(e){var t=e.parent.parent.moduleSpecifier;return ie(te(e,t),t)}function K(t,r){if(794600&t.flags)return t;var n=l(t.flags|r.flags,t.name);return n.declarations=e.concatenate(t.declarations,r.declarations),n.parent=t.parent||r.parent,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration),r.members&&(n.members=r.members),t.exports&&(n.exports=t.exports),n}function J(e,t){if(1536&e.flags){var r=ue(e)[t];if(r)return G(r)}}function z(e,t){if(3&e.flags){var r=e.valueDeclaration.type;if(r)return G(Gr(Ha(r),t))}}function j(t,r){var n=te(t,t.moduleSpecifier),a=ie(n,t.moduleSpecifier);if(a){var i=r.propertyName||r.name;if(i.text){if(e.isShorthandAmbientModuleSymbol(n))return n;var o=void 0;o=n&&n.exports&&n.exports["export="]?Gr(Pt(a),i.text):z(a,i.text),o=G(o);var s=J(a,i.text);!s&&gg&&"default"===i.text&&(s=ae(n)||G(n));var c=s&&o?K(o,s):s||o;return c||_(i,e.Diagnostics.Module_0_has_no_exported_member_1,$(n),e.declarationNameToString(i)),c}}}function V(e){return j(e.parent.parent.parent,e)}function U(e){return ae(e.parent.symbol)}function q(e){return e.parent.parent.moduleSpecifier?j(e.parent.parent,e):ee(e.propertyName||e.name,901119)}function W(e){return ee(e.expression,901119)}function H(e){switch(e.kind){case 234:return L(e);case 236:return M(e);case 237:return B(e);case 239:return V(e);case 243:return q(e);case 240:return W(e);case 233:return U(e)}}function G(e){return e&&8388608&e.flags&&!(901119&e.flags)?X(e):e}function X(t){e.Debug.assert(0!==(8388608&t.flags),"Should only get Alias here.");var r=h(t);if(r.target)r.target===wg&&(r.target=Ag);else{r.target=wg;var n=R(t);e.Debug.assert(!!n);var a=H(n);r.target===wg?r.target=a||Ag:_(n,e.Diagnostics.Circular_definition_of_import_alias_0,Ke(t))}return r.target}function Q(e){var t=fe(e),r=X(t);if(r){var n=r===Ag||107455&r.flags&&!Ff(r);n&&Y(t)}}function Y(t){var r=h(t);if(!r.referenced){r.referenced=!0;var n=R(t);e.Debug.assert(!!n),240===n.kind?dl(n.expression):243===n.kind?dl(n.propertyName||n.name):e.isInternalModuleImportEqualsDeclaration(n)&&dl(n.moduleReference)}}function Z(t,r){return 70===t.kind&&e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),70===t.kind||141===t.parent.kind?ee(t,1920,!1,r):(e.Debug.assert(234===t.parent.kind),ee(t,901119,!1,r))}function $(e){return e.parent?$(e.parent)+"."+Ke(e):Ke(e)}function ee(t,r,n,a,i){if(!e.nodeIsMissing(t)){var o;if(70===t.kind){var s=1920===r?e.Diagnostics.Cannot_find_namespace_0:e.Diagnostics.Cannot_find_name_0;if(o=E(i||t,t.text,r,n?void 0:s,t),!o)return}else if(141===t.kind||177===t.kind){var c=141===t.kind?t.left:t.expression,u=141===t.kind?t.right:t.name,l=ee(c,1920,n,!1,i);if(!l||e.nodeIsMissing(u))return;if(l===Ag)return l;if(o=D(ue(l),u.text,r),!o)return void(n||_(u,e.Diagnostics.Namespace_0_has_no_exported_member_1,$(l),e.declarationNameToString(u)))}else e.Debug.fail("Unknown entity name kind.");return e.Debug.assert(0===(16777216&o.flags),"Should never get an instantiated symbol here."),o.flags&r||a?o:X(o)}}function te(t,r){return re(t,r,e.Diagnostics.Cannot_find_module_0)}function re(e,t,r,n){if(void 0===n&&(n=!1),9===t.kind){var a=t;return ne(e,a.text,r,a,n)}}function ne(t,r,a,i,o){void 0===o&&(o=!1);var s=e.escapeIdentifier(r);if(void 0!==s){var c=sn(s,!0);if(c)return c;var u=e.isExternalModuleNameRelative(s),l=e.getResolvedModule(e.getSourceFileOfNode(t),r),d=l&&e.getResolutionDiagnostic(dg,l),p=l&&!d&&n.getSourceFile(l.resolvedFileName);if(p)return p.symbol?pe(p.symbol):void(a&&_(i,e.Diagnostics.File_0_is_not_a_module,p.fileName));if(Zg){var f=e.findBestPatternMatch(Zg,function(e){return e.pattern},s);if(f)return pe(f.symbol)}if(u||!l||e.extensionIsTypeScript(l.extension)){if(a)if(d)_(i,d,s,l.resolvedFileName);else{var m=e.tryExtractTypeScriptExtension(s);if(m){var g=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead;_(i,g,m,e.removeExtension(s,m))}else _(i,a,s)}}else if(o){var g=e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;_(i,g,r,l.resolvedFileName)}else dg.noImplicitAny&&a&&_(i,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,r,l.resolvedFileName)}}function ae(e){return e&&pe(G(e.exports["export="]))||e}function ie(t,r){var n=ae(t);return!n||1539&n.flags||(_(r,e.Diagnostics.Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct,Ke(t)),n=void 0),n}function oe(e){return void 0!==e.exports["export="]}function se(e){return an(_e(e))}function ce(e,t){var r=_e(t);if(r)return r[e]}function ue(e){return 1536&e.flags?_e(e):e.exports||lg}function _e(e){var t=h(e);return t.resolvedExports||(t.resolvedExports=de(e))}function le(t,r,n,a){for(var i in r)"default"===i||t[i]?n&&a&&"default"!==i&&t[i]&&G(t[i])!==G(r[i])&&(n[i].exportsWithDuplicate?n[i].exportsWithDuplicate.push(a):n[i].exportsWithDuplicate=[a]):(t[i]=r[i],n&&a&&(n[i]={specifierText:e.getTextOfNode(a.moduleSpecifier)}))}function de(t){function r(t){if(t&&1952&t.flags&&!e.contains(n,t)){n.push(t);var a=e.cloneMap(t.exports),i=t.exports.__export;if(i){for(var o=e.createMap(),s=e.createMap(),c=0,u=i.declarations;c<u.length;c++){var _=u[c],l=te(_,_.moduleSpecifier),d=r(l);le(o,d,s,_)}for(var p in s){var f=s[p].exportsWithDuplicate;if("export="!==p&&f&&f.length&&!a[p])for(var m=0,g=f;m<g.length;m++){var _=g[m];iv.add(e.createDiagnosticForNode(_,e.Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,s[p].specifierText,p))}}le(a,o)}return a}}var n=[];return t=ae(t),r(t)||t.exports}function pe(e){var t;return e&&e.mergeId&&(t=Gy[e.mergeId])?t:e}function fe(e){return pe(e.symbol)}function me(e){return pe(e.parent)}function ge(e){return e&&0!==(1048576&e.flags)?pe(e.exportSymbol):e}function ye(e){return 16777216&e.flags?ye(h(e).target):!!(107455&e.flags)||!!(8388608&e.flags)&&0!==(107455&X(e).flags)}function ve(t){for(var r=t.members,n=0,a=r;n<a.length;n++){var i=a[n];if(150===i.kind&&e.nodeIsPresent(i.body))return i}}function he(e){var t=new og(kg,e);return cg++,t.id=cg,t}function be(e,t){var r=he(e);return r.intrinsicName=t,r}function ke(e){var t=ma(e);return t.flags|=8,t.intrinsicName="boolean",t}function xe(e,t){var r=he(32768);return r.objectFlags=e,r.symbol=t,r}function De(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)}function Se(e){var t;for(var r in e)if(!De(r)){t||(t=[]);var n=e[r];ye(n)&&t.push(n)}return t||_g}function Ce(e,t,r,n,a,i){return e.members=t,e.properties=Se(t),e.callSignatures=r,e.constructSignatures=n,a&&(e.stringIndexInfo=a),i&&(e.numberIndexInfo=i),e}function Ee(e,t,r,n,a,i){return Ce(xe(16,e),t,r,n,a,i)}function Te(t,r){for(var n,a=t;a;a=a.parent){if(a.locals&&!x(a)&&(n=r(a.locals)))return n;switch(a.kind){case 261:if(!e.isExternalOrCommonJsModule(a))break;case 230:if(n=r(fe(a).exports))return n}}return r(Ky)}function Ne(e){return 107455===e?107455:1920}function Ae(t,r,n,a){function i(e){return o(e,[])}function o(i,s){function c(e,t){if(!we(e,r,t))return!0;var n=Ae(e.parent,r,Ne(t),a);return!!n}function u(r,a){if(t===(a||r))return!e.forEach(r.declarations,Oe)&&c(r,n)}function _(r){return u(r[t.name])?[t]:e.forEachProperty(r,function(t){if(8388608&t.flags&&"export="!==t.name&&!e.getDeclarationOfKind(t,243)&&(!a||e.forEach(t.declarations,e.isExternalModuleImportEqualsDeclaration))){var r=X(t);if(u(t,X(t)))return[t];var i=r.exports?o(r.exports,s):void 0;if(i&&c(t,Ne(n)))return[t].concat(i)}})}if(!e.contains(s,i)){s.push(i);var l=_(i);return s.pop(),l}}if(t&&!Pe(t))return Te(r,i)}function we(t,r,n){var a=!1;return Te(r,function(r){var i=r[t.name];return!!i&&(i===t||(i=8388608&i.flags&&!e.getDeclarationOfKind(i,243)?X(i):i,!!(i.flags&n)&&(a=!0,!0)))}),a}function Pe(e){if(e.declarations&&e.declarations.length){for(var t=0,r=e.declarations;t<r.length;t++){var n=r[t];switch(n.kind){case 147:case 149:case 151:case 152:continue;default:return!1}}return!0}return!1}function Fe(t,r,n,a){function i(e){for(;e;e=e.parent)if(Oe(e))return fe(e)}if(t&&r&&!(262144&t.flags)){for(var o=t,s=n;t;){var c=Ae(t,r,s,!1);if(c){var u=Ie(c[0],a);return u?u:{accessibility:1,errorSymbolName:Ke(o,r,n),errorModuleName:t!==o?Ke(t,r,1920):void 0}}s=Ne(n),t=me(t)}var _=e.forEach(o.declarations,i);if(_){var l=i(r);if(_!==l)return{accessibility:2,errorSymbolName:Ke(o,r,n),errorModuleName:Ke(_)}}return{accessibility:1,errorSymbolName:Ke(o,r,n)}}return{accessibility:0}}function Oe(t){return e.isAmbientModule(t)||261===t.kind&&e.isExternalOrCommonJsModule(t)}function Ie(t,r){function n(t){if(!Xe(t)){var n=I(t);return!(!n||1&e.getModifierFlags(n)||!Xe(n.parent))&&(r&&(b(t).isVisible=!0,a?e.contains(a,n)||a.push(n):a=[n]),!0)}return!0}var a;if(!e.forEach(t.declarations,function(e){return!n(e)}))return{accessibility:0,aliasesToMakeVisible:a}}function Re(t,r){var n;n=160===t.parent.kind||e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)?1156031:141===t.kind||177===t.kind||234===t.parent.kind?1920:793064;var a=Fp(t),i=E(r,a.text,n,void 0,void 0);return i&&Ie(i,!0)||{accessibility:1,errorSymbolName:e.getTextOfNode(a),errorNode:a}}function Le(t,r){t.writeKeyword(e.tokenToString(r))}function Me(t,r){t.writePunctuation(e.tokenToString(r))}function Be(e){e.writeSpace(" ")}function Ke(t,r,n){var a=e.getSingleLineStringWriter();Ge().buildSymbolDisplay(t,a,r,n);var i=a.string();return e.releaseStringWriter(a),i}function Je(t,r,n,a){var i=e.getSingleLineStringWriter();Ge().buildSignatureDisplay(t,i,r,n,a);var o=i.string();return e.releaseStringWriter(i),o}function ze(t,r,n){var a=e.getSingleLineStringWriter();Ge().buildTypeDisplay(t,a,r,n);var i=a.string();e.releaseStringWriter(a);var o=dg.noErrorTruncation||4&n?void 0:100;return o&&i.length>=o&&(i=i.substr(0,o-"...".length)+"..."),i}function je(t,r,n){var a=e.getSingleLineStringWriter();Ge().buildTypePredicateDisplay(t,a,r,n);var i=a.string();return e.releaseStringWriter(a),i}function Ve(e){for(var t=[],r=0,n=0;n<e.length;n++){var a=e[n];if(r|=a.flags,!(6144&a.flags)){if(384&a.flags){var i=128&a.flags?jg:a.baseType,o=i.types.length;if(n+o<=e.length&&e[n+o-1]===i.types[o-1]){t.push(i),n+=o-1;continue}}t.push(a)}}return 4096&r&&t.push(Lg),2048&r&&t.push(Ig),t||e}function Ue(e){return 8===e?"private":16===e?"protected":"public"}function qe(e){if(e.symbol&&2048&e.symbol.flags){for(var t=e.symbol.declarations[0].parent;166===t.kind;)t=t.parent;if(228===t.kind)return fe(t)}}function We(t){return t&&t.parent&&231===t.parent.kind&&e.isExternalModuleAugmentation(t.parent.parent)}function He(t){return 32&t.flags?'"'+e.escapeString(t.text)+'"':t.text}function Ge(){function t(t){if(t.declarations&&t.declarations.length){var r=t.declarations[0];if(r.name)return e.declarationNameToString(r.name);switch(r.kind){case 197:return"(Anonymous class)";case 184:case 185:return"(Anonymous function)"}}return t.name}function r(e,r){r.writeSymbol(t(e),e)}function n(r,n){var a=t(r),i=a.charCodeAt(0),o=!e.isIdentifierStart(i,pg);o?(Me(n,20),e.isSingleOrDoubleQuote(i)?n.writeStringLiteral(a):n.writeSymbol(a,r),Me(n,21)):(Me(n,22),n.writeSymbol(a,r))}function a(t,a,i,s,c,u){function _(e){d?(1&c&&(16777216&e.flags?p(Bt(d),e.mapper,a,i):o(d,a,i)),n(e,a)):r(e,a),d=e}function l(t,r,n){var a=Ae(t,i,r,!!(2&c));if(!a||we(a[0],i,1===a.length?r:Ne(r))){var o=me(a?a[0]:t);o&&l(o,Ne(r),!1)}if(a)for(var s=0,u=a;s<u.length;s++){var p=u[s];_(p)}else!n&&(!d&&e.forEach(t.declarations,Oe)||6144&t.flags)||_(t)}var d;a.trackSymbol(t,i,s);var f=262144&t.flags,m=128&u;f||!i&&!m?_(t):l(t,s,!0)}function i(t,n,i,o,s){function c(e,t){var s=t&-513;if(16015&e.flags)n.writeKeyword(16&o||!at(e)?e.intrinsicName:"any");else if(16384&e.flags&&e.isThisType)S&&n.reportInaccessibleThisError(),n.writeKeyword("this");else if(4&k(e))l(e,s);else if(256&e.flags)a(me(e.symbol),n,i,793064,0,s),Me(n,22),r(e.symbol,n);else if(3&k(e)||16400&e.flags)a(e.symbol,n,i,793064,0,s);else if(512&t||!e.aliasSymbol||0!==Fe(e.aliasSymbol,i,793064,!1).accessibility)196608&e.flags?d(e,s):48&k(e)?p(e,s):96&e.flags?n.writeStringLiteral(He(e)):262144&e.flags?(n.writeKeyword("keyof"),Be(n),c(e.type,64)):524288&e.flags?(c(e.objectType,64),Me(n,20),c(e.indexType,0),Me(n,21)):(Me(n,16),Be(n),Me(n,23),Be(n),Me(n,17));else{var u=e.aliasTypeArguments;_(e.aliasSymbol,u,0,u?u.length:0,s)}}function u(e,t){for(var r=0;r<e.length;r++)r>0&&(25!==t&&Be(n),Me(n,t),Be(n)),c(e[r],25===t?0:64)}function _(e,t,r,o,s){if((32&e.flags||!De(e.name))&&a(e,n,i,793064,0,s),r<o){for(Me(n,26),c(t[r],256),r++;r<o;)Me(n,25),Be(n),c(t[r],0),r++;Me(n,28)}}function l(t,r){var a=t.typeArguments||_g;if(t.target!==ay||1&r)if(8&t.target.objectFlags)Me(n,20),u(t.typeArguments.slice(0,In(t)),25),Me(n,21);else{var i=t.target.outerTypeParameters,o=0;if(i)for(var s=i.length;o<s;){var l=o,d=An(i[o]);do o++;while(o<s&&An(i[o])===d);e.rangeEquals(i,a,l,o)||(_(d,a,l,o,r),Me(n,22))}var p=(t.target.typeParameters||_g).length;_(t.symbol,a,o,p,r)}else c(a[0],64),Me(n,20),Me(n,21)}function d(e,t){64&t&&Me(n,18),65536&e.flags?u(Ve(e.types),48):u(e.types,47),64&t&&Me(n,19)}function p(t,r){function o(){var t=!!(8192&c.flags&&e.forEach(c.declarations,function(t){return 32&e.getModifierFlags(t)})),n=!!(16&c.flags)&&(c.parent||e.forEach(c.declarations,function(e){return 261===e.parent.kind||231===e.parent.kind}));if(t||n)return!!(2&r)||e.contains(s,c)}var c=t.symbol;if(c)if(928&c.flags)f(t,r);else if(o())f(t,r);else if(e.contains(s,c)){var u=qe(t);u?a(u,n,i,793064,0,r):Le(n,118)}else s||(s=[]),s.push(c),h(t,r),s.pop();else h(t,r)}function f(e,t){Le(n,102),Be(n),a(e.symbol,n,i,107455,0,t)}function m(t,r){t&&(t.isReadonly&&(Le(n,130),Be(n)),Me(n,20),n.writeParameter(t.declaration?e.declarationNameToString(t.declaration.parameters[0].name):"x"),Me(n,55),Be(n),Le(n,r),Me(n,21),Me(n,55),Be(n),c(t.type,0),Me(n,24),n.writeLine())}function g(e){O_(e)&&(Le(n,130),Be(n)),a(e,n),536870912&e.flags&&Me(n,54)}function v(e,t){if(64&t)return!0;if(256&t){var r=e.target&&32&t?e.target.typeParameters:e.typeParameters;return r&&0!==r.length}return!1}function h(e,t){if(32&e.objectFlags&&278528&Or(e).flags)return void x(e);var r=Br(e);if(!r.properties.length&&!r.stringIndexInfo&&!r.numberIndexInfo){if(!r.callSignatures.length&&!r.constructSignatures.length)return Me(n,16),void Me(n,17);if(1===r.callSignatures.length&&!r.constructSignatures.length){var a=v(r.callSignatures[0],t);return a&&Me(n,18),y(r.callSignatures[0],n,i,8|D,void 0,s),void(a&&Me(n,19))}if(1===r.constructSignatures.length&&!r.callSignatures.length)return 64&t&&Me(n,18),Le(n,93),Be(n),y(r.constructSignatures[0],n,i,8|D,void 0,s),void(64&t&&Me(n,19))}var o=S;S=!0,Me(n,16),n.writeLine(),n.increaseIndent(),b(r),n.decreaseIndent(),Me(n,17),S=o}function b(e){for(var t=0,r=e.callSignatures;t<r.length;t++){var a=r[t];y(a,n,i,D,void 0,s),Me(n,24),n.writeLine()}for(var o=0,u=e.constructSignatures;o<u.length;o++){var a=u[o];y(a,n,i,D,1,s),Me(n,24),n.writeLine()}m(e.stringIndexInfo,134),m(e.numberIndexInfo,132);for(var _=0,l=e.properties;_<l.length;_++){var d=l[_],p=Pt(d);if(8208&d.flags&&!Kr(p).length)for(var f=Qr(p,0),v=0,h=f;v<h.length;v++){var a=h[v];g(d),y(a,n,i,D,void 0,s),Me(n,24),n.writeLine()}else g(d),Me(n,55),Be(n),c(p,0),Me(n,24),n.writeLine()}}function x(e){Me(n,16),n.writeLine(),n.increaseIndent(),e.declaration.readonlyToken&&(Le(n,130),Be(n)),Me(n,20),r(Fr(e).symbol,n),Be(n),Le(n,91),Be(n),c(Or(e),0),Me(n,21),e.declaration.questionToken&&Me(n,54),Me(n,55),Be(n),c(Ir(e),0),Me(n,24),n.writeLine(),n.decreaseIndent(),Me(n,17)}var D=16&o,S=!1;return c(t,o)}function o(e,t,r,n){var a=vp(e);(32&a.flags||64&a.flags||524288&a.flags)&&l(Mt(e),t,r,n)}function s(e,t,n,a,o){r(e.symbol,t);var s=Tn(e);s&&(Be(t),Le(t,84),Be(t),i(s,t,n,a,o))}function c(t,n,a,o,s){var c=t.valueDeclaration;e.isRestParameter(c)&&Me(n,23),e.isBindingPattern(c.name)?u(c.name,n,a,o,s):r(t,n),cn(c)&&Me(n,54),Me(n,55),Be(n),i(Pt(t),n,a,o,s)}function u(e,t,r,n,a){if(172===e.kind)Me(t,16),d(e.elements,t,function(e){return _(e,t,r,n,a)}),Me(t,17);else if(173===e.kind){Me(t,20);var i=e.elements;d(i,t,function(e){return _(e,t,r,n,a)}),i&&i.hasTrailingComma&&Me(t,25),Me(t,21)}}function _(t,n,a,i,o){e.isOmittedExpression(t)||(e.Debug.assert(174===t.kind),t.propertyName&&(n.writeProperty(e.getTextOfNode(t.propertyName)),Me(n,55),Be(n)),e.isBindingPattern(t.name)?u(t.name,n,a,i,o):(t.dotDotDotToken&&Me(n,23),r(t.symbol,n)))}function l(e,t,r,n,a){e&&e.length&&(Me(t,26),d(e,t,function(e){return s(e,t,r,n,a)}),Me(t,28))}function d(e,t,r){for(var n=0;n<e.length;n++)n>0&&(Me(t,25),Be(t)),r(e[n])}function p(e,t,r,n){if(e&&e.length){Me(r,26);for(var a=256,o=0;o<e.length;o++)o>0&&(Me(r,25),Be(r),a=0),i(t(e[o]),r,n,a);Me(r,28)}}function f(e,t,r,n,a,i){Me(r,18),e&&c(e,r,n,a,i);for(var o=0;o<t.length;o++)(o>0||e)&&(Me(r,25),Be(r)),c(t[o],r,n,a,i);Me(r,19)}function m(t,r,n,a,o){e.isIdentifierTypePredicate(t)?r.writeParameter(t.parameterName):Le(r,98),Be(r),Le(r,125),Be(r),i(t.type,r,n,a,o)}function g(e,t,r,n,a){if(8&n?(Be(t),Me(t,35)):Me(t,55),Be(t),e.typePredicate)m(e.typePredicate,t,r,n,a);else{var o=mn(e);i(o,t,r,n,a)}}function y(e,t,r,n,a,i){1===a&&(Le(t,93),Be(t)),e.target&&32&n?p(e.target.typeParameters,e.mapper,t,r):l(e.typeParameters,t,r,n,i),f(e.thisParameter,e.parameters,t,r,n,i),g(e,t,r,n,i)}return uv||(uv={buildSymbolDisplay:a,buildTypeDisplay:i,buildTypeParameterDisplay:s,buildTypePredicateDisplay:m,buildParameterDisplay:c,buildDisplayForParametersAndDelimiters:f,buildDisplayForTypeParametersAndDelimiters:l,buildTypeParameterDisplayFromSymbol:o,buildSignatureDisplay:y,buildReturnTypeDisplay:g})}function Xe(t){function r(){switch(t.kind){case 174:return Xe(t.parent.parent);case 223:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 230:case 226:case 227:case 228:case 225:case 229:case 234:if(e.isExternalModuleAugmentation(t))return!0;var r=tt(t);return 1&e.getCombinedModifierFlags(t)||234!==t.kind&&261!==r.kind&&e.isInAmbientContext(r)?Xe(r):x(r);case 147:case 146:case 151:case 152:case 149:case 148:if(24&e.getModifierFlags(t))return!1;case 150:case 154:case 153:case 155:case 144:case 231:case 158:case 159:case 161:case 157:case 162:case 163:case 164:case 165:case 166:return Xe(t.parent);case 236:case 237:case 239:return!1;case 143:case 261:case 233:return!0;case 240:return!1;default:return!1}}if(t){var n=b(t);return void 0===n.isVisible&&(n.isVisible=!!r()),n.isVisible}return!1}function Qe(t){function r(t){e.forEach(t,function(t){b(t).isVisible=!0;var n=I(t)||t;if(e.contains(i,n)||i.push(n),e.isInternalModuleImportEqualsDeclaration(t)){var a=t.moduleReference,o=Fp(a),s=E(t,o.text,901119,void 0,void 0);s&&r(s.declarations)}})}var n;if(t.parent&&240===t.parent.kind)n=E(t.parent,t.text,9289727,e.Diagnostics.Cannot_find_name_0,t);else if(243===t.parent.kind){var a=t.parent;n=a.parent.parent.moduleSpecifier?j(a.parent.parent,a):ee(a.propertyName||a.name,9289727)}var i=[];return n&&r(n.declarations),i}function Ye(e,t){var r=Ze(e,t);if(r>=0){for(var n=qy.length,a=r;a<n;a++)Wy[a]=!1;return!1}return qy.push(e),Wy.push(!0),Hy.push(t),!0}function Ze(e,t){for(var r=qy.length-1;r>=0;r--){if($e(qy[r],Hy[r]))return-1;if(qy[r]===e&&Hy[r]===t)return r}return-1}function $e(t,r){return 0===r?h(t).type:2===r?h(t).declaredType:1===r?t.resolvedBaseConstructorType:3===r?t.resolvedReturnType:void e.Debug.fail("Unhandled TypeSystemPropertyName "+r)}function et(){return qy.pop(),Hy.pop(),Wy.pop()}function tt(t){for(t=e.getRootDeclaration(t);t;)switch(t.kind){case 223:case 224:case 239:case 238:case 237:case 236:t=t.parent;break;default:return t.parent}}function rt(t){var r=ar(me(t));return r.typeParameters?Fn(r,e.map(r.typeParameters,function(e){return Pg})):r}function nt(e,t){var r=Gr(e,t);return r?Pt(r):void 0}function at(e){return e&&0!==(1&e.flags)}function it(e){return e&&0!==(8192&e.flags)}function ot(e){var t=fe(e);return t&&h(t).type||ft(e,!1)}function st(t){return 142===t.kind&&!e.isStringOrNumericLiteral(t.expression)}function ct(t,r,n){if(t=Ns(t,function(e){return!(6144&e.flags)}),8192&t.flags)return Hg;if(65536&t.flags)return As(t,function(e){return ct(e,r,n)});for(var a=e.createMap(),i=e.createMap(),o=0,s=r;o<s.length;o++){var c=s[o];i[e.getTextOfPropertyName(c)]=!0}for(var u=0,_=jr(t);u<_.length;u++){var l=_[u],d=l.name in i,p=24&vu(l),f=8192&l.flags,m=65536&l.flags&&!(32768&l.flags);d||p||f||m||(a[l.name]=l)}var g=$r(t,0),y=$r(t,1);return Ee(n,a,_g,_g,g,y)}function ut(t){var r=t.parent,n=ot(r.parent);if(n===Og)return Og;if(!n||at(n))return t.initializer?fl(t):n;var a;if(172===r.kind)if(t.dotDotDotToken){if(!Zc(n))return _(t,e.Diagnostics.Rest_types_may_only_be_created_from_object_types),Og;for(var i=[],o=0,s=r.elements;o<s.length;o++){var c=s[o];c.dotDotDotToken||i.push(c.propertyName||c.name)}a=ct(n,i,t.symbol)}else{var u=t.propertyName||t.name;if(st(u))return Pg;t.initializer&&Oc(t.initializer);var l=e.getTextOfPropertyName(u);if(a=nt(n,l)||Gc(l)&&en(n,1)||en(n,0),!a)return _(u,e.Diagnostics.Type_0_has_no_property_1_and_no_string_index_signature,ze(n),e.declarationNameToString(u)),Og}else{var d=Gd(n,r,!1);if(t.dotDotDotToken)a=ea(d);else{var p=""+e.indexOf(r.elements,t);if(a=ao(n)?nt(n,p):d,!a)return uo(n)?_(t,e.Diagnostics.Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2,ze(n),In(n),r.elements.length):_(t,e.Diagnostics.Type_0_has_no_property_1,ze(n),p),Og}}return!yg||!t.initializer||2048&lo(dl(t.initializer))||(a=ns(a,131072)),t.initializer?ma([a,dl(t.initializer)],!0):a}function _t(t){var r=e.getJSDocType(t);if(r)return Ha(r)}function lt(t){var r=e.skipParentheses(t);return 94===r.kind||70===r.kind&&zo(r)===hg}function dt(t){var r=e.skipParentheses(t);return 175===r.kind&&0===r.elements.length}function pt(e,t){return yg&&t?po(e,2048):e}function ft(t,r){if(65536&t.flags){var n=_t(t);if(n&&n!==Og)return n}if(212===t.parent.parent.kind){var a=Ca(ku(t.parent.parent.expression));return 278528&a.flags?a:Bg}if(213===t.parent.parent.kind)return Hd(t.parent.parent.expression)||Pg;if(e.isBindingPattern(t.parent))return ut(t);if(t.type)return pt(Ha(t.type),t.questionToken&&r);if((dg.noImplicitAny||65536&t.flags)&&223===t.kind&&!e.isBindingPattern(t.name)&&!(1&e.getCombinedModifierFlags(t))&&!e.isInAmbientContext(t)){if(!(2&e.getCombinedNodeFlags(t))&&(!t.initializer||lt(t.initializer)))return Fg;if(t.initializer&&dt(t.initializer))return ly}if(144===t.kind){var i=t.parent;if(152===i.kind&&!e.hasDynamicName(i)){var o=e.getDeclarationOfKind(t.parent.symbol,151);if(o){var s=_n(o),c=Pm(i);return c&&t===c?(e.Debug.assert(!c.type),Pt(s.thisParameter)):mn(s)}}var n=void 0;if(n="this"===t.symbol.name?pc(i):fc(t))return pt(n,t.questionToken&&r)}if(t.initializer){var n=fl(t);return pt(n,t.questionToken&&r)}return 258===t.kind?ec(t.name):e.isBindingPattern(t.name)?vt(t.name,!1,!0):void 0}function mt(t,r,n){return t.initializer?fl(t):e.isBindingPattern(t.name)?vt(t.name,r,n):(n&&dg.noImplicitAny&&!bt(t)&&So(t,Pg),Pg)}function gt(t,r,n){var a,i=e.createMap(),o=!1;e.forEach(t.elements,function(t){var s=t.propertyName||t.name;if(st(s))return void(o=!0);if(t.dotDotDotToken)return void(a=Dn(Pg,!1));var c=e.getTextOfPropertyName(s),u=67108868|(t.initializer?536870912:0),_=l(u,c);_.type=mt(t,r,n),_.bindingElement=t,i[_.name]=_});var s=Ee(void 0,i,_g,_g,a,void 0);return r&&(s.pattern=t),o&&(s.objectFlags|=512),s}function yt(t,r,n){var a=t.elements,i=e.lastOrUndefined(a);if(0===a.length||!e.isOmittedExpression(i)&&i.dotDotDotToken)return pg>=2?Zn(Pg):_y;var o=e.map(a,function(t){return e.isOmittedExpression(t)?Pg:mt(t,r,n)}),s=aa(o);return r&&(s=On(s),s.pattern=t),s}function vt(e,t,r){return 172===e.kind?gt(e,t,r):yt(e,t,r)}function ht(e,t){var r=ft(e,!0);return r?(t&&Co(e,r),257===e.kind?r:xo(r)):(r=e.dotDotDotToken?_y:Pg,t&&dg.noImplicitAny&&(bt(e)||So(e,r)),r)}function bt(t){var r=e.getRootDeclaration(t),n=144===r.kind?r.parent:r;return Ql(n)}function kt(t){var r=h(t);if(!r.type){if(134217728&t.flags)return r.type=rt(t);var n=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(n))return r.type=Pg;if(240===n.kind)return r.type=kl(n.expression);if(65536&n.flags&&286===n.kind&&n.typeExpression)return r.type=Ha(n.typeExpression.type);if(!Ye(t,0))return Og;var a=void 0;if(192===n.kind||177===n.kind&&192===n.parent.kind){if(65536&n.flags){var i=e.getJSDocType(n.parent);if(i)return r.type=Ha(i)}var o=e.map(t.declarations,function(e){return dl(192===e.kind?e.right:e.parent.right)});a=ma(o,!0)}else a=ht(n,!0);et()||(a=wt(t)),r.type=a}return r.type}function xt(t){if(t){if(151===t.kind)return t.type&&Ha(t.type);var r=e.getSetAccessorTypeAnnotationNode(t);return r&&Ha(r)}}function Dt(e){var t=Pm(e);return t&&t.symbol}function St(e){return fn(_n(e))}function Ct(t){var r=h(t);if(!r.type){var n=e.getDeclarationOfKind(t,151),a=e.getDeclarationOfKind(t,152);if(n&&65536&n.flags){var i=_t(n);if(i)return r.type=i}if(!Ye(t,0))return Og;var o=void 0,s=xt(n);if(s)o=s;else{var c=xt(a);c?o=c:n&&n.body?o=S_(n):(dg.noImplicitAny&&(a?_(a,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Ke(t)):(e.Debug.assert(!!n,"there must existed getter as we are current checking either setter or getter in this function"),_(n,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Ke(t)))),o=Pg)}if(!et()&&(o=Pg,dg.noImplicitAny)){var u=e.getDeclarationOfKind(t,151);_(u,e.Diagnostics._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,Ke(t))}r.type=o}return r.type}function Et(t){var r=h(t);if(!r.type)if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))r.type=Pg;else{var n=xe(16,t);r.type=yg&&536870912&t.flags?po(n,2048):n}return r.type}function Tt(e){var t=h(e);return t.type||(t.type=tr(e)),t.type}function Nt(e){var t=h(e);if(!t.type){var r=X(e);t.type=107455&r.flags?Pt(r):Og}return t.type}function At(e){var t=h(e);if(!t.type){if(!Ye(e,0))return Og;var r=gi(Pt(t.target),t.mapper);et()||(r=wt(e)),t.type=r}return t.type}function wt(t){return t.valueDeclaration.type?(_(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ke(t)),Og):(dg.noImplicitAny&&_(t.valueDeclaration,e.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Ke(t)),Pg)}function Pt(e){return 16777216&e.flags?At(e):7&e.flags?kt(e):9136&e.flags?Et(e):8&e.flags?Tt(e):98304&e.flags?Ct(e):8388608&e.flags?Nt(e):Og}function Ft(e){return 4&k(e)?e.target:e}function Ot(t,r){function n(t){var a=Ft(t);return a===r||e.forEach(Ut(a),n)}return n(t)}function It(t,r){for(var n=0,a=r;n<a.length;n++){var i=a[n],o=rr(fe(i));t?e.contains(t,o)||t.push(o):t=[o]}return t}function Rt(e,t){for(;;){if(t=t.parent,!t)return e;if(226===t.kind||197===t.kind||225===t.kind||184===t.kind||149===t.kind||185===t.kind){var r=t.typeParameters;if(r)return It(Rt(e,t),r)}}}function Lt(t){var r=32&t.flags?t.valueDeclaration:e.getDeclarationOfKind(t,227);return Rt(void 0,r)}function Mt(e){for(var t,r=0,n=e.declarations;r<n.length;r++){var a=n[r];if(227===a.kind||226===a.kind||197===a.kind||228===a.kind){var i=a;i.typeParameters&&(t=It(t,i.typeParameters))}}return t}function Bt(t){return e.concatenate(Lt(t),Mt(t))}function Kt(e){return 32768&e.flags&&Qr(e,1).length>0}function Jt(t){return e.getClassExtendsHeritageClauseElement(t.symbol.valueDeclaration)}function zt(t,r){var n=r?r.length:0;return e.filter(Qr(t,1),function(e){return(e.typeParameters?e.typeParameters.length:0)===n})}function jt(t,r){var n=zt(t,r);if(r){var a=e.map(r,Ha);n=e.map(n,function(e){return yn(e,a)})}return n}function Vt(t){if(!t.resolvedBaseConstructorType){var r=Jt(t);if(!r)return t.resolvedBaseConstructorType=Ig;if(!Ye(t,1))return Og;var n=kl(r.expression);if(32768&n.flags&&Br(n),!et())return _(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Ke(t.symbol)),t.resolvedBaseConstructorType=Og;if(n!==Og&&n!==Mg&&!Kt(n))return _(r.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,ze(n)),t.resolvedBaseConstructorType=Og;t.resolvedBaseConstructorType=n}return t.resolvedBaseConstructorType}function Ut(t){return t.resolvedBaseTypes||(8&t.objectFlags?t.resolvedBaseTypes=[ea(ma(t.typeParameters))]:96&t.symbol.flags?(32&t.symbol.flags&&qt(t),64&t.symbol.flags&&Ht(t)):e.Debug.fail("type must be class or interface")),t.resolvedBaseTypes}function qt(t){t.resolvedBaseTypes=t.resolvedBaseTypes||_g;var r=Vt(t);if(32768&r.flags){var n,a=Jt(t),i=r&&r.symbol?ar(r.symbol):void 0;if(r.symbol&&32&r.symbol.flags&&Wt(i))n=Rn(a,r.symbol);else{var o=jt(r,a.typeArguments);if(!o.length)return void _(a.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments);n=mn(o[0])}var s=t.symbol.valueDeclaration;if(s&&e.isInJavaScriptFile(s)){var c=e.getJSDocAugmentsTag(t.symbol.valueDeclaration);c&&(n=Ha(c.typeExpression.type))}if(n!==Og)return 3&k(Ft(n))?t===n||Ot(n,t)?void _(s,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,ze(t,void 0,1)):void(t.resolvedBaseTypes===_g?t.resolvedBaseTypes=[n]:t.resolvedBaseTypes.push(n)):void _(a.expression,e.Diagnostics.Base_constructor_return_type_0_is_not_a_class_or_interface_type,ze(n))}}function Wt(e){var t=e.outerTypeParameters;if(t){var r=t.length-1,n=e.typeArguments;return t[r].symbol!==n[r].symbol}return!0}function Ht(t){t.resolvedBaseTypes=t.resolvedBaseTypes||_g;for(var r=0,n=t.symbol.declarations;r<n.length;r++){var a=n[r];if(227===a.kind&&e.getInterfaceBaseTypeNodes(a))for(var i=0,o=e.getInterfaceBaseTypeNodes(a);i<o.length;i++){var s=o[i],c=Ha(s);c!==Og&&(3&k(Ft(c))?t===c||Ot(c,t)?_(a,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,ze(t,void 0,1)):t.resolvedBaseTypes===_g?t.resolvedBaseTypes=[c]:t.resolvedBaseTypes.push(c):_(s,e.Diagnostics.An_interface_may_only_extend_a_class_or_another_interface))}}}function Gt(t){for(var r=0,n=t.declarations;r<n.length;r++){var a=n[r];if(227===a.kind){if(64&a.flags)return!1;var i=e.getInterfaceBaseTypeNodes(a);if(i)for(var o=0,s=i;o<s.length;o++){
var c=s[o];if(e.isEntityNameExpression(c.expression)){var u=ee(c.expression,793064,!0);if(!u||!(64&u.flags)||Xt(u).thisType)return!1}}}}return!0}function Xt(t){var r=h(t);if(!r.declaredType){var n=32&t.flags?1:2,a=r.declaredType=xe(n,t),i=Lt(t),o=Mt(t);(i||o||1===n||!Gt(t))&&(a.objectFlags|=4,a.typeParameters=e.concatenate(i,o),a.outerTypeParameters=i,a.localTypeParameters=o,a.instantiations=e.createMap(),a.instantiations[wn(a.typeParameters)]=a,a.target=a,a.typeArguments=a.typeParameters,a.thisType=he(16384),a.thisType.isThisType=!0,a.thisType.symbol=t,a.thisType.constraint=a)}return r.declaredType}function Qt(t){var r=h(t);if(!r.declaredType){if(!Ye(t,2))return Og;var n=e.getDeclarationOfKind(t,285),a=void 0;if(n?a=Ha(n.jsDocTypeLiteral?n.jsDocTypeLiteral:n.typeExpression.type):(n=e.getDeclarationOfKind(t,228),a=Ha(n.type)),et()){var i=Mt(t);i&&(r.typeParameters=i,r.instantiations=e.createMap(),r.instantiations[wn(i)]=a)}else a=Og,_(n.name,e.Diagnostics.Type_alias_0_circularly_references_itself,Ke(t));r.declaredType=a}return r.declaredType}function Yt(t,r){var n=r.initializer;return n?8===n.kind||190===n.kind&&37===n.operator&&8===n.operand.kind||70===n.kind&&!!t.exports[n.text]:!e.isInAmbientContext(r)}function Zt(e){for(var t=0,r=e.declarations;t<r.length;t++){var n=r[t];if(229===n.kind)for(var a=0,i=n.members;a<i.length;a++){var o=i[a];if(!Yt(e,o))return!1}}return!0}function $t(e,t,r){var n=he(256);return n.symbol=e,n.baseType=t,n.text=r,n}function er(t){var r=h(t);if(!r.declaredType){var n=r.declaredType=he(16);if(n.symbol=t,Zt(t)){for(var a=[],i=e.createMap(),o=0,s=n.symbol.declarations;o<s.length;o++){var c=s[o];if(229===c.kind){Ep(c);for(var u=0,_=c.members;u<_.length;u++){var l=_[u],d=fe(l),p=Lf(l);if(!i[p]){var f=i[p]=$t(d,n,""+p);a.push(f)}}}}n.memberTypes=i,a.length>1&&(n.flags|=65536,n.types=a,Dg[wn(a)]=n)}}return r.declaredType}function tr(e){var t=h(e);if(!t.declaredType){var r=er(me(e));t.declaredType=65536&r.flags?r.memberTypes[Lf(e.valueDeclaration)]:r}return t.declaredType}function rr(t){var r=h(t);if(!r.declaredType){var n=he(16384);n.symbol=t,e.getDeclarationOfKind(t,143).constraint||(n.constraint=Oy),r.declaredType=n}return r.declaredType}function nr(e){var t=h(e);return t.declaredType||(t.declaredType=ar(X(e))),t.declaredType}function ar(t){return e.Debug.assert(0===(16777216&t.flags)),96&t.flags?Xt(t):524288&t.flags?Qt(t):262144&t.flags?rr(t):384&t.flags?er(t):8&t.flags?tr(t):8388608&t.flags?nr(t):Og}function ir(e){if(e.typeArguments)for(var t=0,r=e.typeArguments;t<r.length;t++){var n=r[t];if(!or(n))return!1}return!0}function or(e){switch(e.kind){case 118:case 134:case 132:case 121:case 135:case 104:case 137:case 94:case 129:case 171:return!0;case 162:return or(e.elementType);case 157:return ir(e)}return!1}function sr(e){return e.type&&or(e.type)||!e.type&&!e.initializer}function cr(e){if(!(150===e.kind||e.type&&or(e.type)))return!1;for(var t=0,r=e.parameters;t<r.length;t++){var n=r[t];if(!sr(n))return!1}return!0}function ur(e){if(e.declarations&&1===e.declarations.length){var t=e.declarations[0];if(t)switch(t.kind){case 147:case 146:return sr(t);case 149:case 148:case 150:return cr(t)}}return!1}function _r(t){for(var r=e.createMap(),n=0,a=t;n<a.length;n++){var i=a[n];r[i.name]=i}return r}function lr(t,r,n){for(var a=e.createMap(),i=0,o=t;i<o.length;i++){var s=o[i];a[s.name]=n&&ur(s)?s:ui(s,r)}return a}function dr(e,t){for(var r=0,n=t;r<n.length;r++){var a=n[r];e[a.name]||(e[a.name]=a)}}function pr(e){if(!e.declaredProperties){var t=e.symbol;e.declaredProperties=Se(t.members),e.declaredCallSignatures=dn(t.members.__call),e.declaredConstructSignatures=dn(t.members.__new),e.declaredStringIndexInfo=Sn(t,0),e.declaredNumberIndexInfo=Sn(t,1)}return e}function fr(t,r){return 4&k(t)?Fn(t.target,e.concatenate(t.typeArguments,[r||t.target.thisType])):t}function mr(t,r,n,a){var i,o,s,c,u,_;e.rangeEquals(n,a,0,n.length)?(i=ai,o=r.symbol?r.symbol.members:_r(r.declaredProperties),s=r.declaredCallSignatures,c=r.declaredConstructSignatures,u=r.declaredStringIndexInfo,_=r.declaredNumberIndexInfo):(i=ti(n,a),o=lr(r.declaredProperties,i,1===n.length),s=Qa(r.declaredCallSignatures,i),c=Qa(r.declaredConstructSignatures,i),u=vi(r.declaredStringIndexInfo,i),_=vi(r.declaredNumberIndexInfo,i));var l=Ut(r);if(l.length){r.symbol&&o===r.symbol.members&&(o=_r(r.declaredProperties));for(var d=e.lastOrUndefined(a),p=0,f=l;p<f.length;p++){var m=f[p],g=d?fr(gi(m,i),d):m;dr(o,Kr(g)),s=e.concatenate(s,Qr(g,0)),c=e.concatenate(c,Qr(g,1)),u=u||$r(g,0),_=_||$r(g,1)}}Ce(t,o,s,c,u,_)}function gr(e){mr(e,pr(e),_g,_g)}function yr(t){var r=pr(t.target),n=e.concatenate(r.typeParameters,[r.thisType]),a=t.typeArguments&&t.typeArguments.length===n.length?t.typeArguments:e.concatenate(t.typeArguments,[t]);mr(t,r,n,a)}function vr(e,t,r,n,a,i,o,s,c){var u=new sg(kg);return u.declaration=e,u.typeParameters=t,u.parameters=n,u.thisParameter=r,u.resolvedReturnType=a,u.typePredicate=i,u.minArgumentCount=o,u.hasRestParameter=s,u.hasLiteralTypes=c,u}function hr(e){return vr(e.declaration,e.typeParameters,e.thisParameter,e.parameters,e.resolvedReturnType,e.typePredicate,e.minArgumentCount,e.hasRestParameter,e.hasLiteralTypes)}function br(t){var r=Vt(t),n=Qr(r,1);if(0===n.length)return[vr(void 0,t.localTypeParameters,void 0,_g,t,void 0,0,!1,!1)];for(var a=Jt(t),i=e.map(a.typeArguments,Ha),o=i?i.length:0,s=[],c=0,u=n;c<u.length;c++){var _=u[c],l=_.typeParameters?_.typeParameters.length:0;if(l===o){var d=l?vn(_,i):hr(_);d.typeParameters=t.localTypeParameters,d.resolvedReturnType=t,s.push(d)}}return s}function kr(e,t,r,n,a){for(var i=0,o=e;i<o.length;i++){var s=o[i];if(Xi(s,t,r,n,a,Si))return s}}function xr(t,r,n){if(r.typeParameters){if(n>0)return;for(var a=1;a<t.length;a++)if(!kr(t[a],r,!1,!1,!1))return;return[r]}for(var i=void 0,a=0;a<t.length;a++){var o=a===n?r:kr(t[a],r,!0,!0,!0);if(!o)return;e.contains(i,o)||(i||(i=[])).push(o)}return i}function Dr(t,r){for(var n=e.map(t,function(e){return Qr(e,r)}),a=void 0,i=0;i<n.length;i++)for(var o=0,s=n[i];o<s.length;o++){var c=s[o];if(!a||!kr(a,c,!1,!0,!0)){var u=xr(n,c,i);if(u){var _=c;if(u.length>1){if(_=hr(c),e.forEach(u,function(e){return e.thisParameter})){var l=ma(e.map(u,function(e){return Pt(e.thisParameter)||Pg}),!0);_.thisParameter=yo(c.thisParameter,l)}_.resolvedReturnType=void 0,_.unionSignatures=u}(a||(a=[])).push(_)}}}return a||_g}function Sr(e,t){for(var r=[],n=!1,a=0,i=e;a<i.length;a++){var o=i[a],s=$r(o,t);if(!s)return;r.push(s.type),n=n||s.isReadonly}return Dn(ma(r,!0),n)}function Cr(e){var t=Dr(e.types,0),r=Dr(e.types,1),n=Sr(e.types,0),a=Sr(e.types,1);Ce(e,lg,t,r,n,a)}function Er(e,t){return e?t?ba([e,t]):e:t}function Tr(e,t){return e?t?Dn(ba([e.type,t.type]),e.isReadonly&&t.isReadonly):e:t}function Nr(e,t){return e&&t&&Dn(ma([e.type,t.type]),e.isReadonly||t.isReadonly)}function Ar(t){for(var r=_g,n=_g,a=void 0,i=void 0,o=0,s=t.types;o<s.length;o++){var c=s[o];r=e.concatenate(r,Qr(c,0)),n=e.concatenate(n,Qr(c,1)),a=Tr(a,$r(c,0)),i=Tr(i,$r(c,1))}Ce(t,lg,r,n,a,i)}function wr(e){var t=e.symbol;if(e.target){var r=lr(Kr(e.target),e.mapper,!1),n=Qa(Qr(e.target,0),e.mapper),a=Qa(Qr(e.target,1),e.mapper),i=vi($r(e.target,0),e.mapper),o=vi($r(e.target,1),e.mapper);Ce(e,r,n,a,i,o)}else if(2048&t.flags){var r=t.members,n=dn(r.__call),a=dn(r.__new),i=Sn(t,0),o=Sn(t,1);Ce(e,r,n,a,i,o)}else{var r=lg,a=_g;if(1952&t.flags&&(r=ue(t)),32&t.flags){var s=Xt(t);a=dn(t.members.__constructor),a.length||(a=br(s));var c=Vt(s);32768&c.flags&&(r=_r(Se(r)),dr(r,Kr(c)))}var o=384&t.flags?By:void 0;Ce(e,r,_g,a,void 0,o),8208&t.flags&&(e.callSignatures=dn(t))}}function Pr(t){function r(e){var r=Za(i,e),o=t.mapper?ii(t.mapper,r):r,d=gi(s,o);if(32&e.flags){var p=e.text,f=Gr(c,p),m=_||!!(f&&536870912&f.flags),g=l(67108868|(m?536870912:0),p);g.type=d,g.isReadonly=u||f&&O_(f),a[p]=g}else 2&e.flags&&(n=Dn(d,u))}var n,a=e.createMap();Ce(t,lg,_g,_g,void 0,void 0);var i=Fr(t),o=Or(t),s=Ir(t),c=Ur(Rr(t)),u=!!t.declaration.readonlyToken,_=!!t.declaration.questionToken;if(168===t.declaration.typeParameter.constraint.kind)Ts(Sa(c),r),$r(c,0)&&r(Bg);else{var d=540672&o.flags?Ur(o):o,p=262144&d.flags?Ca(Ur(d.type)):d;Ts(p,r)}Ce(t,a,_g,_g,n,void 0)}function Fr(e){return e.typeParameter||(e.typeParameter=rr(fe(e.declaration.typeParameter)))}function Or(e){return e.constraintType||(e.constraintType=gi(Tn(Fr(e)),e.mapper||ai)||Og)}function Ir(e){return e.templateType||(e.templateType=e.declaration.type?gi(pt(Ha(e.declaration.type),!!e.declaration.questionToken),e.mapper||ai):Og)}function Rr(e){if(!e.modifiersType){var t=e.declaration.typeParameter.constraint;if(168===t.kind)e.modifiersType=gi(Ha(t.type),e.mapper||ai);else{var r=Oa(e.declaration),n=Or(r),a=n&&16384&n.flags?Tn(n):n;e.modifiersType=a&&262144&a.flags?gi(a.type,e.mapper||ai):Hg}}return e.modifiersType}function Lr(e){return gi(Ir(e),Za(Fr(e),Pg))}function Mr(e){if(32&k(e)){var t=Or(e);return V_(t,802816)}return!1}function Br(e){return e.members||(32768&e.flags?4&e.objectFlags?yr(e):3&e.objectFlags?gr(e):16&e.objectFlags?wr(e):32&e.objectFlags&&Pr(e):65536&e.flags?Cr(e):131072&e.flags&&Ar(e)),e}function Kr(e){return 32768&e.flags?Br(e).properties:_g}function Jr(e,t){if(32768&e.flags){var r=Br(e),n=r.members[t];if(n&&ye(n))return n}}function zr(e){for(var t=0,r=e.types;t<r.length;t++){for(var n=r[t],a=0,i=jr(n);a<i.length;a++){var o=i[a];Wr(e,o.name)}if(65536&e.flags)break}var s=e.resolvedProperties;if(s){var c=[];for(var u in s){var o=s[u];268435456&o.flags&&o.isPartial||c.push(o)}return c}return _g}function jr(e){return e=Ur(e),196608&e.flags?zr(e):Kr(e)}function Vr(e){if(!e.resolvedApparentType){for(var t=Nn(e);t&&16384&t.flags;)t=Nn(t);e.resolvedApparentType=fr(t||Hg,e)}return e.resolvedApparentType}function Ur(e){var t=540672&e.flags?Vr(e):e;return 262178&t.flags?oy:340&t.flags?sy:136&t.flags?cy:512&t.flags?fy():t}function qr(t,r){for(var n,a=t.types,i=131072&t.flags?536870912:0,o=!1,s=!1,c=0,u=a;c<u.length;c++){var _=u[c],d=Ur(_);if(d!==Og){var p=Gr(d,r);!p||24&vu(p)?65536&t.flags&&(s=!0):(i&=p.flags,n?e.contains(n,p)||n.push(p):n=[p],O_(p)&&(o=!0))}}if(n){if(1===n.length&&!s)return n[0];for(var f=[],m=[],g=void 0,y=!1,v=0,h=n;v<h.length;v++){var p=h[v];p.declarations&&e.addRange(m,p.declarations);var d=Pt(p);g?d!==g&&(y=!0):g=d,f.push(d)}var b=l(335544324|i,r);return b.containingType=t,b.hasNonUniformType=y,b.isPartial=s,b.declarations=m,b.isReadonly=o,b.type=65536&t.flags?ma(f):ba(f),b}}function Wr(t,r){var n=t.resolvedProperties||(t.resolvedProperties=e.createMap()),a=n[r];return a||(a=qr(t,r),a&&(n[r]=a)),a}function Hr(e,t){var r=Wr(e,t);return!r||268435456&r.flags&&r.isPartial?void 0:r}function Gr(e,t){if(e=Ur(e),32768&e.flags){var r=Br(e),n=r.members[t];if(n&&ye(n))return n;if(r===Yg||r.callSignatures.length||r.constructSignatures.length){var a=Jr(ny,t);if(a)return a}return Jr(ry,t)}if(196608&e.flags)return Hr(e,t)}function Xr(e,t){if(229376&e.flags){var r=Br(e);return 0===t?r.callSignatures:r.constructSignatures}return _g}function Qr(e,t){return Xr(Ur(e),t)}function Yr(e,t){if(229376&e.flags){var r=Br(e);return 0===t?r.stringIndexInfo:r.numberIndexInfo}}function Zr(e,t){var r=Yr(e,t);return r&&r.type}function $r(e,t){return Yr(Ur(e),t)}function en(e,t){return Zr(Ur(e),t)}function tn(e,t){if(go(e)){for(var r=[],n=0,a=jr(e);n<a.length;n++){var i=a[n];(0===t||Gc(i.name))&&r.push(Pt(i))}if(r.length)return ma(r,!0)}}function rn(t){if(65536&t.flags){var r=e.getJSDocTemplateTag(t);if(r)return nn(r.typeParameters)}}function nn(t){var r=[];return e.forEach(t,function(t){var n=rr(t.symbol);e.contains(r,n)||r.push(n)}),r}function an(e){var t=[];for(var r in e)De(r)||t.push(e[r]);return t}function on(t){if(65536&t.flags){if(t.type&&273===t.type.kind)return!0;var r=e.getJSDocParameterTags(t);if(r)for(var n=0,a=r;n<a.length;n++){var i=a[n];if(i.isBracketed)return!0;if(i.typeExpression)return 273===i.typeExpression.type.kind}}}function sn(t,r){if(!e.isExternalModuleNameRelative(t)){var n=D(Ky,'"'+t+'"',512);return n&&r?pe(n):n}}function cn(t){if(e.hasQuestionToken(t)||on(t))return!0;if(t.initializer){var r=t.parent,n=_n(r),a=e.indexOf(r.parameters,t);return e.Debug.assert(a>=0),a>=n.minArgumentCount}return!1}function un(e){if(70===e.parameterName.kind){var t=e.parameterName;return{kind:1,parameterName:t?t.text:void 0,parameterIndex:t?El(e.parent.parameters,t):void 0,type:Ha(e.type)}}return{kind:0,type:Ha(e.type)}}function _n(t){var r=b(t);if(!r.resolvedSignature){for(var n=[],a=!1,i=-1,o=void 0,s=void 0,c=e.isJSDocConstructSignature(t),u=c?1:0,_=t.parameters.length;u<_;u++){var l=t.parameters[u],d=l.symbol;if(d&&4&d.flags&&!e.isBindingPattern(l.name)){var p=E(l,d.name,107455,void 0,void 0);d=p}0===u&&"this"===d.name?(s=!0,o=l.symbol):n.push(d),l.type&&171===l.type.kind&&(a=!0),l.initializer||l.questionToken||l.dotDotDotToken||on(l)?i<0&&(i=u-(s?1:0)):i=-1}if(!(151!==t.kind&&152!==t.kind||e.hasDynamicName(t)||s&&o)){var f=151===t.kind?152:151,m=e.getDeclarationOfKind(t.symbol,f);m&&(o=Dt(m))}i<0&&(i=t.parameters.length-(s?1:0)),c&&i--;var g=150===t.kind?Xt(pe(t.parent.symbol)):void 0,y=g?g.localTypeParameters:t.typeParameters?nn(t.typeParameters):rn(t),v=ln(t,c,g),h=t.type&&156===t.type.kind?un(t.type):void 0;r.resolvedSignature=vr(t,y,o,n,v,h,i,e.hasRestParameter(t),a)}return r.resolvedSignature}function ln(t,r,n){if(r)return Ha(t.parameters[0].type);if(n)return n;if(t.type)return Ha(t.type);if(65536&t.flags){var a=k_(t);if(a&&a!==Og)return a}if(151===t.kind&&!e.hasDynamicName(t)){var i=e.getDeclarationOfKind(t.symbol,152);return xt(i)}return e.nodeIsMissing(t.body)?Pg:void 0}function dn(e){if(!e)return _g;for(var t=[],r=0,n=e.declarations.length;r<n;r++){var a=e.declarations[r];switch(a.kind){case 158:case 159:case 225:case 149:case 148:case 150:case 153:case 154:case 155:case 151:case 152:case 184:case 185:case 274:if(r>0&&a.body){var i=e.declarations[r-1];if(a.parent===i.parent&&a.kind===i.kind&&a.pos===i.end)break}t.push(_n(a))}}return t}function pn(e){var t=te(e,e);if(t){var r=ae(t);if(r)return Pt(r)}return Pg}function fn(e){if(e.thisParameter)return Pt(e.thisParameter)}function mn(t){if(!t.resolvedReturnType){if(!Ye(t,3))return Og;var r=void 0;if(r=t.target?gi(mn(t.target),t.mapper):t.unionSignatures?ma(e.map(t.unionSignatures,mn),!0):S_(t.declaration),!et()&&(r=Pg,dg.noImplicitAny)){var n=t.declaration;n.name?_(n.name,e.Diagnostics._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,e.declarationNameToString(n.name)):_(n,e.Diagnostics.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)}t.resolvedReturnType=r}return t.resolvedReturnType}function gn(t){if(t.hasRestParameter){var r=Pt(e.lastOrUndefined(t.parameters));if(4&k(r)&&r.target===ay)return r.typeArguments[0]}return Pg}function yn(t,r){var n=t.instantiations||(t.instantiations=e.createMap()),a=wn(r);return n[a]||(n[a]=vn(t,r))}function vn(e,t){return ci(e,ti(e.typeParameters,t),!0)}function hn(e){return e.typeParameters?(e.erasedSignatureCache||(e.erasedSignatureCache=ci(e,ri(e.typeParameters),!0)),e.erasedSignatureCache):e}function bn(e){if(!e.isolatedSignatureType){var t=150===e.declaration.kind||154===e.declaration.kind,r=xe(16);r.members=lg,r.properties=_g,r.callSignatures=t?_g:[e],r.constructSignatures=t?[e]:_g,e.isolatedSignatureType=r}return e.isolatedSignatureType}function kn(e){return e.members.__index}function xn(e,t){var r=1===t?132:134,n=kn(e);if(n)for(var a=0,i=n.declarations;a<i.length;a++){var o=i[a],s=o;if(1===s.parameters.length){var c=s.parameters[0];if(c&&c.type&&c.type.kind===r)return s}}}function Dn(e,t,r){return{type:e,isReadonly:t,declaration:r}}function Sn(t,r){var n=xn(t,r);if(n)return Dn(n.type?Ha(n.type):Pg,0!==(64&e.getModifierFlags(n)),n)}function Cn(t){return e.getDeclarationOfKind(t.symbol,143).constraint}function En(t,r){for(var n;t&&16384&t.flags&&!t.isThisType&&!e.contains(n,t);){if(t===r)return!0;(n||(n=[])).push(t);var a=Cn(t);t=a&&Ha(a)}return!1}function Tn(t){if(!t.constraint)if(t.target){var r=Tn(t.target);t.constraint=r?gi(r,t.mapper):Oy}else{var n=Cn(t),a=Ha(n);En(a,t)&&(_(n,e.Diagnostics.Type_parameter_0_has_a_circular_constraint,ze(t)),a=Og),t.constraint=a}return t.constraint===Oy?void 0:t.constraint}function Nn(e){return 16384&e.flags?Tn(e):524288&e.flags?e.constraint:void 0}function An(t){return fe(e.getDeclarationOfKind(t.symbol,143).parent)}function wn(e){var t="";if(e)for(var r=e.length,n=0;n<r;){for(var a=e[n].id,i=1;n+i<r&&e[n+i].id===a+i;)i++;t.length&&(t+=","),t+=a,i>1&&(t+=":"+i),n+=i}return t}function Pn(e,t){for(var r=0,n=0,a=e;n<a.length;n++){var i=a[n];i.flags&t||(r|=i.flags)}return 14680064&r}function Fn(e,t){var r=wn(t),n=e.instantiations[r];return n||(n=e.instantiations[r]=xe(4,e.symbol),n.flags|=t?Pn(t,0):0,n.target=e,n.typeArguments=t),n}function On(e){var t=he(e.flags);return t.symbol=e.symbol,t.objectFlags=e.objectFlags,t.target=e.target,t.typeArguments=e.typeArguments,t}function In(e){return e.target.typeParameters?e.target.typeParameters.length:0}function Rn(t,r){var n=ar(pe(r)),a=n.localTypeParameters;return a?t.typeArguments&&t.typeArguments.length===a.length?Fn(n,e.concatenate(n.outerTypeParameters,e.map(t.typeArguments,Ha))):(_(t,e.Diagnostics.Generic_type_0_requires_1_type_argument_s,ze(n,void 0,1),a.length),Og):t.typeArguments?(_(t,e.Diagnostics.Type_0_is_not_generic,ze(n)),Og):n}function Ln(e,t){var r=ar(e),n=h(e),a=n.typeParameters,i=wn(t);return n.instantiations[i]||(n.instantiations[i]=yi(r,ti(a,t)))}function Mn(t,r){var n=ar(r),a=h(r).typeParameters;if(a){if(!t.typeArguments||t.typeArguments.length!==a.length)return _(t,e.Diagnostics.Generic_type_0_requires_1_type_argument_s,Ke(r),a.length),Og;var i=e.map(t.typeArguments,Ha);return Ln(r,i)}return t.typeArguments?(_(t,e.Diagnostics.Type_0_is_not_generic,Ke(r)),Og):n}function Bn(t,r){return t.typeArguments?(_(t,e.Diagnostics.Type_0_is_not_generic,Ke(r)),Og):ar(r)}function Kn(t){switch(t.kind){case 157:return t.typeName;case 272:return t.name;case 199:var r=t.expression;if(e.isEntityNameExpression(r))return r}}function Jn(e){return e?ee(e,793064)||Ag:Ag}function zn(e,t){return t===Ag?Og:96&t.flags?Rn(e,t):524288&t.flags?Mn(e,t):107455&t.flags&&272===e.kind?Pt(t):Bn(e,t)}function jn(t){var r=b(t);if(!r.resolvedType){var n=void 0,a=void 0;if(272===t.kind){var i=Kn(t);n=Jn(i),a=zn(t,n)}else{var o=157===t.kind?t.typeName:e.isEntityNameExpression(t.expression)?t.expression:void 0;n=o&&ee(o,793064)||Ag,a=n===Ag?Og:96&n.flags?Rn(t,n):524288&n.flags?Mn(t,n):Bn(t,n)}r.resolvedSymbol=n,r.resolvedType=a}return r.resolvedType}function Vn(e){var t=b(e);return t.resolvedType||(t.resolvedType=xo(kl(e.exprName))),t.resolvedType}function Un(t,r){function n(e){for(var t=e.declarations,r=0,n=t;r<n.length;r++){var a=n[r];switch(a.kind){case 226:case 227:case 229:return a}}}if(!t)return r?Qg:Hg;var a=ar(t);return 32768&a.flags?(a.typeParameters?a.typeParameters.length:0)!==r?(_(n(t),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,t.name,r),r?Qg:Hg):a:(_(n(t),e.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,t.name),r?Qg:Hg)}function qn(t){return Hn(t,107455,e.Diagnostics.Cannot_find_global_value_0)}function Wn(t){return Hn(t,793064,e.Diagnostics.Cannot_find_global_type_0)}function Hn(e,t,r){return E(void 0,e,t,r,e)}function Gn(e,t){return void 0===t&&(t=0),Un(Wn(e),t)}function Xn(e,t){var r=Hn(e,1920,void 0),n=r&&D(r.exports,t,793064);return n&&ar(n)}function Qn(e){var t=xy();return t!==Qg?Fn(t,[e]):Hg}function Yn(e,t){return e!==Qg?Fn(e,t):Hg}function Zn(e){return Yn(my(),[e])}function $n(e){return Yn(yy(),[e])}function ea(e){return Yn(ay,[e])}function ta(e){var t=b(e);return t.resolvedType||(t.resolvedType=ea(Ha(e.elementType))),t.resolvedType}function ra(t){for(var r=[],n=[],a=0;a<t;a++){var i=he(16384);r.push(i);var o=l(67108868,""+a);o.type=i,n.push(o)}var s=xe(12);return s.typeParameters=r,s.outerTypeParameters=void 0,s.localTypeParameters=r,s.instantiations=e.createMap(),s.instantiations[wn(s.typeParameters)]=s,s.target=s,s.typeArguments=s.typeParameters,s.thisType=he(16384),s.thisType.isThisType=!0,s.thisType.constraint=s,s.declaredProperties=n,s.declaredCallSignatures=_g,s.declaredConstructSignatures=_g,s.declaredStringIndexInfo=void 0,s.declaredNumberIndexInfo=void 0,s}function na(e){return xg[e]||(xg[e]=ra(e))}function aa(e){return Fn(na(e.length),e)}function ia(t){var r=b(t);return r.resolvedType||(r.resolvedType=aa(e.map(t.elementTypes,Ha))),r.resolvedType}function oa(e,t){for(var r=0,n=e.length-1,a=t.id;r<=n;){var i=r+(n-r>>1),o=e[i].id;if(o===a)return i;o>a?n=i-1:r=i+1}return~r}function sa(e,t){return oa(e,t)>=0}function ca(e,t){var r=t.flags;if(65536&r)ua(e,t.types);else if(1&r)e.containsAny=!0;else if(!yg&&6144&r)2048&r&&(e.containsUndefined=!0),4096&r&&(e.containsNull=!0),2097152&r||(e.containsNonWideningType=!0);else if(!(8192&r)){2&r&&(e.containsString=!0),4&r&&(e.containsNumber=!0),96&r&&(e.containsStringOrNumberLiteral=!0);var n=e.length,a=n&&t.id>e[n-1].id?~n:oa(e,t);a<0&&(32768&r&&16&t.objectFlags&&t.symbol&&8208&t.symbol.flags&&_a(e,t)||e.splice(~a,0,t))}}function ua(e,t){for(var r=0,n=t;r<n.length;r++){var a=n[r];ca(e,a)}}function _a(e,t){for(var r=0,n=e;r<n.length;r++){var a=n[r];if(Di(a,t))return!0}return!1}function la(e,t){for(var r=0,n=t.length;r<n;r++)if(e!==t[r]&&Ei(e,t[r]))return!0;return!1}function da(e){var t=e[0];if(256&t.flags){for(var r=me(t.symbol),n=1;n<e.length;n++){var a=e[n];if(!(256&a.flags)||r!==me(a.symbol))return!1}return!0}return!1}function pa(t){if(0!==t.length&&!da(t))for(var r=t.length;r>0;)r--,la(t[r],t)&&e.orderedRemoveItemAt(t,r)}function fa(t){for(var r=t.length;r>0;){r--;var n=t[r],a=32&n.flags&&t.containsString||64&n.flags&&t.containsNumber||96&n.flags&&1048576&n.flags&&sa(t,n.regularType);a&&e.orderedRemoveItemAt(t,r)}}function ma(e,t,r,n){if(0===e.length)return qg;if(1===e.length)return e[0];var a=[];return ua(a,e),a.containsAny?Pg:(t?pa(a):a.containsStringOrNumberLiteral&&fa(a),0===a.length?a.containsNull?a.containsNonWideningType?Lg:Mg:a.containsUndefined?a.containsNonWideningType?Ig:Rg:qg:ga(a,r,n))}function ga(e,t,r){if(0===e.length)return qg;if(1===e.length)return e[0];var n=wn(e),a=Dg[n];if(!a){var i=Pn(e,6144);a=Dg[n]=he(65536|i),a.types=e,a.aliasSymbol=t,a.aliasTypeArguments=r}return a}function ya(t){var r=b(t);return r.resolvedType||(r.resolvedType=ma(e.map(t.types,Ha),!1,Ra(t),La(t))),r.resolvedType}function va(t,r){131072&r.flags?ha(t,r.types):1&r.flags?t.containsAny=!0:8192&r.flags||!yg&&6144&r.flags||e.contains(t,r)||(65536&r.flags&&void 0===t.unionIndex&&(t.unionIndex=t.length),t.push(r))}function ha(e,t){for(var r=0,n=t;r<n.length;r++){var a=n[r];va(e,a)}}function ba(t,r,n){if(0===t.length)return Hg;var a=[];if(ha(a,t),a.containsAny)return Pg;if(1===a.length)return a[0];var i=a.unionIndex;if(void 0!==i){var o=a[i];return ma(e.map(o.types,function(t){return ba(e.replaceElement(a,i,t))}),!1,r,n)}var s=wn(a),c=Sg[s];if(!c){var u=Pn(a,6144);c=Sg[s]=he(131072|u),c.types=a,c.aliasSymbol=r,c.aliasTypeArguments=n}return c}function ka(t){var r=b(t);return r.resolvedType||(r.resolvedType=ba(e.map(t.types,Ha),Ra(t),La(t))),r.resolvedType}function xa(e){return e.resolvedIndexType||(e.resolvedIndexType=he(262144),e.resolvedIndexType.type=e),e.resolvedIndexType}function Da(t){return 24&vu(t)||e.startsWith(t.name,"__@")?qg:za(32,e.unescapeIdentifier(t.name))}function Sa(t){return ma(e.map(jr(t),Da))}function Ca(e){return V_(e,540672)?xa(e):32&k(e)?Or(e):1&e.flags||$r(e,0)?Bg:Sa(e)}function Ea(e){var t=Ca(e);return t!==qg?t:Bg}function Ta(e){var t=b(e);return t.resolvedType||(t.resolvedType=Ca(Ha(e.type))),t.resolvedType}function Na(e,t){var r=he(524288);if(r.objectType=e,r.indexType=t,229376&r.objectType.flags)r.constraint=en(r.objectType,0);else if(540672&r.objectType.flags){var n=Vr(r.objectType);n!==Hg&&(r.constraint=U_(r.indexType,262178)?Pa(n,r.indexType):en(n,0))}return r}function Aa(t,r,n,a){var i=n&&178===n.kind?n:void 0,o=352&r.flags?r.text:i&&Fu(i.argumentExpression,r,!1)?e.getPropertyNameForKnownSymbolName(i.argumentExpression.name.text):void 0;if(o){var s=Gr(t,o);if(s){if(i){if(e.isAssignmentTarget(i)&&(I_(i,s)||R_(i)))return _(i.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property,Ke(s)),Og;a&&(b(n).resolvedSymbol=s)}return Pt(s)}}if(Wc(r,263030)){if(at(t))return Pg;var c=Wc(r,340)&&$r(t,1)||$r(t,0)||void 0;if(c)return i&&e.isAssignmentTarget(i)&&c.isReadonly?(_(i,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,ze(t)),Og):c.type;if(i&&!q_(t))return dg.noImplicitAny&&!dg.suppressImplicitAnyIndexErrors&&(en(t,1)?_(i.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number):_(i,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,ze(t))),Pg}if(n){var u=178===n.kind?n.argumentExpression:n.indexType;96&r.flags?_(u,e.Diagnostics.Property_0_does_not_exist_on_type_1,r.text,ze(t)):6&r.flags?_(u,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,ze(t),ze(r)):_(u,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,ze(r))}return Og}function wa(t,r,n){var a=n&&178===n.kind?n:void 0;if(a&&e.isAssignmentTarget(a)&&t.declaration.readonlyToken)return _(a,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,ze(t)),Og;var i=Za(Fr(t),r),o=t.mapper?ii(t.mapper,i):i;return gi(Ir(t),o)}function Pa(t,r,n){if(V_(r,802816)||V_(t,540672)&&(!n||178!==n.kind)||Mr(t)){if(1&t.flags)return t;if(n&&!Ti(r,Ca(t)))return _(n,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,ze(r),ze(t)),Og;if(Mr(t))return wa(t,r,n);var a=t.id+","+r.id;return Tg[a]||(Tg[a]=Na(t,r))}var i=Ur(t);if(65536&r.flags&&!(8190&r.flags)){for(var o=[],s=0,c=r.types;s<c.length;s++){var u=c[s],l=Aa(i,u,n,!1);if(l===Og)return Og;o.push(l)}return ma(o)}return Aa(i,r,n,!0)}function Fa(e){var t=b(e);return t.resolvedType||(t.resolvedType=Pa(Ha(e.objectType),Ha(e.indexType),e)),t.resolvedType}function Oa(e){var t=b(e);if(!t.resolvedType){var r=xe(32,e.symbol);r.declaration=e,r.aliasSymbol=Ra(e),r.aliasTypeArguments=La(e),t.resolvedType=r,Or(r)}return t.resolvedType}function Ia(t){var r=b(t);if(!r.resolvedType){var n=Ra(t);if(e.isEmpty(t.symbol.members)&&!n)r.resolvedType=Xg;else{var a=xe(16,t.symbol);a.aliasSymbol=n,a.aliasTypeArguments=La(t),r.resolvedType=a}}return r.resolvedType}function Ra(e){return 228===e.parent.kind?fe(e.parent):void 0}function La(e){var t=Ra(e);return t?Mt(t):void 0}function Ma(t,r,n){if(1&t.flags||1&r.flags)return Pg;if(t=Ns(t,function(e){return!(6144&e.flags)}),8192&t.flags)return r;if(r=Ns(r,function(e){return!(6144&e.flags)}),8192&r.flags)return t;if(65536&t.flags)return As(t,function(e){return Ma(e,r,n)});if(65536&r.flags)return As(r,function(e){return Ma(t,e,n)});var a,i,o=e.createMap(),s=e.createMap();t===Hg?(a=$r(r,0),i=$r(r,1)):(a=Nr($r(t,0),$r(r,0)),i=Nr($r(t,1),$r(r,1)));for(var c=0,u=jr(r);c<u.length;c++){var _=u[c],d=!(8192&_.flags)||n,p=65536&_.flags&&!(32768&_.flags);24&vu(_)?s[_.name]=!0:d&&!p&&(o[_.name]=_)}for(var f=0,m=jr(t);f<m.length;f++){var g=m[f];if(!(65536&g.flags&&!(32768&g.flags)||g.name in s))if(g.name in o){var _=o[g.name],y=Pt(_);if(V_(y,2048)||536870912&_.flags){var v=e.concatenate(g.declarations,_.declarations),h=67108868|536870912&g.flags,b=l(h,g.name);b.type=ma([Pt(g),ns(y,131072)]),b.leftSpread=g,b.rightSpread=_,b.declarations=v,b.isReadonly=O_(g)||O_(_),o[g.name]=b}}else o[g.name]=g}return Ee(void 0,o,_g,_g,a,i)}function Ba(e,t){var r=he(e);return r.text=t,r}function Ka(e){if(96&e.flags&&!(1048576&e.flags)){if(!e.freshType){var t=Ba(1048576|e.flags,e.text);t.regularType=e,e.freshType=t}return e.freshType}return e}function Ja(e){return 96&e.flags&&1048576&e.flags?e.regularType:e}function za(e,t){var r=32&e?Cg:Eg;return r[t]||(r[t]=Ba(e,t))}function ja(e){var t=b(e);return t.resolvedType||(t.resolvedType=Ja(kl(e.literal))),t.resolvedType}function Va(e){var t=b(e);if(!t.resolvedType){var r=Ha(e.type);t.resolvedType=r?ea(r):Og}return t.resolvedType}function Ua(t){var r=b(t);if(!r.resolvedType){var n=e.map(t.types,Ha);r.resolvedType=aa(n)}return r.resolvedType}function qa(t){var r=e.getThisContainer(t,!1),n=r&&r.parent;return!n||!e.isClassLike(n)&&227!==n.kind||32&e.getModifierFlags(r)||150===r.kind&&!e.isNodeDescendantOf(t,r.body)?(_(t,e.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Og):Xt(fe(n)).thisType}function Wa(e){var t=b(e);return t.resolvedType||(t.resolvedType=qa(e)),t.resolvedType}function Ha(e){switch(e.kind){case 118:case 263:case 264:return Pg;case 134:return Bg;case 132:return Kg;case 121:return jg;case 135:return Vg;case 104:return Ug;case 137:return Ig;case 94:return Lg;case 129:return qg;case 289:return Lg;case 290:return Ig;case 291:return qg;case 167:case 98:return Wa(e);case 171:return ja(e);case 288:return ja(e.literal);case 157:case 272:return jn(e);case 156:return jg;case 199:return jn(e);case 160:return Vn(e);case 162:case 265:return ta(e);case 163:return ia(e);case 164:case 266:return ya(e);case 165:return ka(e);case 166:case 268:case 269:case 276:case 277:case 273:return Ha(e.type);case 270:return Ha(e.literal);case 158:case 159:case 161:case 287:case 274:return Ia(e);case 168:return Ta(e);case 169:return Fa(e);case 170:return Oa(e);case 70:case 141:var t=lf(e);return t&&ar(t);case 267:return Ua(e);case 275:return Va(e);default:return Og}}function Ga(e,t,r){if(e&&e.length){for(var n=[],a=0,i=e;a<i.length;a++){var o=i[a];n.push(r(o,t))}return n}return e}function Xa(e,t){return Ga(e,t,gi)}function Qa(e,t){return Ga(e,t,ci)}function Ya(e,t,r){var n=t.instantiations||(t.instantiations=[]);return n[e.id]||(n[e.id]=r(e,t))}function Za(e,t){return function(r){return r===e?t:r}}function $a(e,t,r,n){return function(a){return a===e?t:a===r?n:a}}function ei(e,t){return function(r){for(var n=0;n<e.length;n++)if(r===e[n])return t?t[n]:Pg;return r}}function ti(e,t){var r=e.length,n=1==r?Za(e[0],t?t[0]:Pg):2==r?$a(e[0],t?t[0]:Pg,e[1],t?t[1]:Pg):ei(e,t);return n.mappedTypes=e,n}function ri(e){return ti(e,void 0)}function ni(e){if(!e.mapper){var t=function(t){for(var r=e.signature.typeParameters,n=0;n<r.length;n++)if(t===r[n])return e.inferences[n].isFixed=!0,Ko(e,n);return t};t.mappedTypes=e.signature.typeParameters,t.context=e,e.mapper=t}return e.mapper}function ai(e){return e}function ii(e,t){var r=function(r){return gi(e(r),t)};return r.mappedTypes=e.mappedTypes,r}function oi(e){var t=he(16384);return t.symbol=e.symbol,t.target=e,t}function si(t,r){return e.isIdentifierTypePredicate(t)?{kind:1,parameterName:t.parameterName,parameterIndex:t.parameterIndex,type:gi(t.type,r)}:{kind:0,type:gi(t.type,r)}}function ci(t,r,n){var a,i;if(t.typeParameters&&!n){a=e.map(t.typeParameters,oi),r=ii(ti(t.typeParameters,a),r);for(var o=0,s=a;o<s.length;o++){var c=s[o];c.mapper=r}}t.typePredicate&&(i=si(t.typePredicate,r));var u=vr(t.declaration,a,t.thisParameter&&ui(t.thisParameter,r),Ga(t.parameters,r,ui),gi(t.resolvedReturnType,r),i,t.minArgumentCount,t.hasRestParameter,t.hasLiteralTypes);return u.target=t,u.mapper=r,u}function ui(e,t){if(16777216&e.flags){var r=h(e);e=r.target,t=ii(r.mapper,t)}var n=l(83886080|e.flags,e.name);return n.declarations=e.declarations,n.parent=e.parent,n.target=e,n.mapper=t,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration),n}function _i(e,t){var r=xe(80,e.symbol);return r.target=64&e.objectFlags?e.target:e,r.mapper=64&e.objectFlags?ii(e.mapper,t):t,r.aliasSymbol=e.aliasSymbol,r.aliasTypeArguments=Xa(e.aliasTypeArguments,t),r}function li(e,t){var r=Or(e);if(262144&r.flags){var n=r.type,a=gi(n,t);if(n!==a)return As(a,function(r){if(di(r)){var a=Za(n,r),i=t.mappedTypes&&1===t.mappedTypes.length?a:ii(a,t);return i.mappedTypes=t.mappedTypes,pi(e,i)}return r})}return pi(e,t)}function di(e){return 704512&e.flags}function pi(e,t){var r=xe(96,e.symbol);
return r.declaration=e.declaration,r.mapper=e.mapper?ii(e.mapper,t):t,r.aliasSymbol=e.aliasSymbol,r.aliasTypeArguments=Xa(e.aliasTypeArguments,t),r}function fi(t,r){if(!t.declarations||!t.declarations.length)return!1;for(var n=r.mappedTypes,a=t.declarations[0];a;){switch(a.kind){case 158:case 159:case 225:case 149:case 148:case 150:case 153:case 154:case 155:case 151:case 152:case 184:case 185:case 226:case 197:case 227:case 228:var i=a;if(i.typeParameters)for(var o=0,s=i.typeParameters;o<s.length;o++){var c=s[o];if(e.contains(n,rr(fe(c))))return!0}if(e.isClassLike(a)||227===a.kind){var u=Xt(fe(a)).thisType;if(u&&e.contains(n,u))return!0}break;case 274:for(var _=a,l=0,d=_.parameters;l<d.length;l++){var p=d[l];if(e.contains(n,ff(p)))return!0}break;case 230:case 261:return!1}a=a.parent}return!1}function mi(e){if(e.declarations&&e.declarations.length){var t=e.declarations[0].parent.kind;return 261===t||231===t}return!1}function gi(e,t){return e&&t!==ai?e.aliasSymbol&&mi(e.aliasSymbol)?e.aliasTypeArguments?Ln(e.aliasSymbol,Xa(e.aliasTypeArguments,t)):e:yi(e,t):e}function yi(e,t){if(16384&e.flags)return t(e);if(32768&e.flags){if(16&e.objectFlags)return e.symbol&&14384&e.symbol.flags&&(64&e.objectFlags||fi(e.symbol,t))?Ya(e,t,_i):e;if(32&e.objectFlags)return Ya(e,t,li);if(4&e.objectFlags)return Fn(e.target,Xa(e.typeArguments,t))}return 65536&e.flags&&!(8190&e.flags)?ma(Xa(e.types,t),!1,e.aliasSymbol,Xa(e.aliasTypeArguments,t)):131072&e.flags?ba(Xa(e.types,t),e.aliasSymbol,Xa(e.aliasTypeArguments,t)):262144&e.flags?Ca(gi(e.type,t)):524288&e.flags?Pa(gi(e.objectType,t),gi(e.indexType,t)):e}function vi(e,t){return e&&Dn(gi(e.type,t),e.isReadonly,e.declaration)}function hi(t){switch(e.Debug.assert(149!==t.kind||e.isObjectLiteralMethod(t)),t.kind){case 184:case 185:return bi(t);case 176:return e.forEach(t.properties,hi);case 175:return e.forEach(t.elements,hi);case 193:return hi(t.whenTrue)||hi(t.whenFalse);case 192:return 53===t.operatorToken.kind&&(hi(t.left)||hi(t.right));case 257:return hi(t.initializer);case 149:case 148:return bi(t);case 183:return hi(t.expression)}return!1}function bi(t){if(t.typeParameters)return!1;if(e.forEach(t.parameters,function(e){return!e.type}))return!0;if(185===t.kind)return!1;var r=e.firstOrUndefined(t.parameters);return!(r&&e.parameterIsThisKeyword(r))}function ki(t){return(Lc(t)||e.isObjectLiteralMethod(t))&&bi(t)}function xi(e){if(32768&e.flags){var t=Br(e);if(t.constructSignatures.length){var r=xe(16,e.symbol);r.members=t.members,r.properties=t.properties,r.callSignatures=_g,r.constructSignatures=_g,e=r}}return e}function Di(e,t){return ji(e,t,hv)}function Si(e,t){return ji(e,t,hv)?-1:0}function Ci(e,t){return ji(e,t,yv)?-1:0}function Ei(e,t){return ji(e,t,gv)}function Ti(e,t){return ji(e,t,yv)}function Ni(e,t){return e===t||Ei(e,t)&&!Di(e,t)}function Ai(e,t){return ji(e,t,vv)}function wi(e,t){return Ai(e,t)||Ai(t,e)}function Pi(e,t,r,n,a){return Vi(e,t,gv,r,n,a)}function Fi(e,t,r,n,a){return Vi(e,t,yv,r,n,a)}function Oi(e,t,r,n,a){return Vi(e,t,vv,r,n,a)}function Ii(e,t,r){return 0!==Ri(e,t,r,!1,void 0,Ci)}function Ri(t,r,n,a,i,o){if(t===r)return-1;if(!r.hasRestParameter&&t.minArgumentCount>r.parameters.length)return 0;t=hn(t),r=hn(r);var s=-1,c=fn(t);if(c&&c!==Ug){var u=fn(r);if(u){var _=o(c,u,!1)||o(u,c,a);if(!_)return a&&i(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;s&=_}}for(var l=Bi(t),d=Bi(r),p=Ki(t,l,r,d),f=t.parameters,m=r.parameters,g=0;g<p;g++){var y=g<l?g_(f[g]):gn(t),v=g<d?g_(m[g]):gn(r),_=o(y,v,!1)||o(v,y,a);if(!_)return a&&i(e.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,f[g<l?g:l].name,m[g<d?g:d].name),0;s&=_}if(!n){var h=mn(r);if(h===Ug)return s;var b=mn(t);if(r.typePredicate){if(t.typePredicate)s&=Li(t.typePredicate,r.typePredicate,a,i,o);else if(e.isIdentifierTypePredicate(r.typePredicate))return a&&i(e.Diagnostics.Signature_0_must_have_a_type_predicate,Je(t)),0}else s&=o(b,h,a)}return s}function Li(t,r,n,a,i){if(t.kind!==r.kind)return n&&(a(e.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),a(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,je(t),je(r))),0;if(1===t.kind){var o=t,s=r;if(o.parameterIndex!==s.parameterIndex)return n&&(a(e.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1,o.parameterName,s.parameterName),a(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,je(t),je(r))),0}var c=i(t.type,r.type,n);return 0===c&&n&&a(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,je(t),je(r)),c}function Mi(e,t){var r=hn(e),n=hn(t),a=mn(r),i=mn(n);return!(i!==Ug&&!ji(i,a,yv)&&!ji(a,i,yv))&&Ii(r,n,!0)}function Bi(e){var t=e.parameters.length;return e.hasRestParameter?t-1:t}function Ki(e,t,r,n){return e.hasRestParameter===r.hasRestParameter?e.hasRestParameter?Math.max(t,n)+1:Math.min(t,n):e.hasRestParameter?n:t}function Ji(t,r,n){if(t===r)return!0;var a=t.id+","+r.id;if(void 0!==bv[a])return bv[a];if(!(t.symbol.name===r.symbol.name&&256&t.symbol.flags&&256&r.symbol.flags&&(65536&t.flags)===(65536&r.flags)))return bv[a]=!1;for(var i=Pt(r.symbol),o=0,s=jr(Pt(t.symbol));o<s.length;o++){var c=s[o];if(8&c.flags){var u=Gr(i,c.name);if(!(u&&8&u.flags))return n&&n(e.Diagnostics.Property_0_is_missing_in_type_1,c.name,ze(r,void 0,128)),bv[a]=!1}}return bv[a]=!0}function zi(e,t,r,n){if(8192&t.flags)return!1;if(1&t.flags||8192&e.flags)return!0;if(262178&e.flags&&2&t.flags)return!0;if(340&e.flags&&4&t.flags)return!0;if(136&e.flags&&8&t.flags)return!0;if(256&e.flags&&16&t.flags&&e.baseType===t)return!0;if(16&e.flags&&16&t.flags&&Ji(e,t,n))return!0;if(2048&e.flags&&(!yg||3072&t.flags))return!0;if(4096&e.flags&&(!yg||4096&t.flags))return!0;if(r===yv||r===vv){if(1&e.flags)return!0;if(4&e.flags|64&e.flags&&272&t.flags)return!0;if(256&e.flags&&256&t.flags&&e.text===t.text&&Ji(e.baseType,t.baseType,n))return!0;if(256&e.flags&&16&t.flags&&Ji(t,e.baseType,n))return!0}return!1}function ji(e,t,r){if(96&e.flags&&1048576&e.flags&&(e=e.regularType),96&t.flags&&1048576&t.flags&&(t=t.regularType),e===t||r!==hv&&zi(e,t,r))return!0;if(32768&e.flags&&32768&t.flags){var n=r!==hv||e.id<t.id?e.id+","+t.id:t.id+","+e.id,a=r[n];if(void 0!==a)return 1===a}return!!(507904&e.flags||507904&t.flags)&&Vi(e,t,r,void 0,void 0,void 0)}function Vi(t,r,n,a,i,o){function s(t,r,n,i){e.Debug.assert(!!a),L=e.chainDiagnosticMessages(L,t,r,n,i)}function c(t,r,a){var i=ze(r),o=ze(a);i===o&&(i=ze(r,void 0,128),o=ze(a,void 0,128)),t||(t=n===vv?e.Diagnostics.Type_0_is_not_comparable_to_type_1:i===o?e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:e.Diagnostics.Type_0_is_not_assignable_to_type_1),s(t,i,o)}function u(t,r){var n=ze(t),a=ze(r);(oy===t&&Bg===r||sy===t&&Kg===r||cy===t&&jg===r||fy()===t&&Vg===r)&&s(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,a,n)}function l(e){if(!(196608&e.flags))return!1;for(var t=!1,r=0,n=e.types;r<n.length;r++){var a=n[r];if(!(6144&a.flags)){if(t)return!0;t=!0}}return!1}function d(t,r,a,i){var o;if(96&t.flags&&1048576&t.flags&&(t=t.regularType),96&r.flags&&1048576&r.flags&&(r=r.regularType),t===r)return-1;if(n===hv)return p(t,r);if(zi(t,r,n,a?s:void 0))return-1;if(128&k(t)&&1048576&t.flags){if(g(t,r,a))return a&&c(i,t,r),0;l(r)&&(t=ho(t))}var _=L;if(65536&t.flags){if(o=n===vv?b(t,r,a&&!(8190&t.flags)):x(t,r,a&&!(8190&t.flags)))return o}else if(65536&r.flags){if(o=v(t,r,a&&!(8190&t.flags)&&!(8190&r.flags)))return o}else if(131072&r.flags){if(o=h(t,r,a))return o}else if(131072&t.flags){if(o=b(t,r,!1))return o}else if(16384&r.flags)if(32&k(t)&&Or(t)===Ca(r)){if(!t.declaration.questionToken){var f=Ir(t),m=Pa(r,Fr(t));if(o=d(f,m,a))return o}}else{var y=Tn(r);if(y&&262144&y.flags&&(o=d(t,y,a)))return o}else if(262144&r.flags){if(262144&t.flags&&(o=d(r.type,t.type,!1)))return o;if(540672&r.type.flags){var y=Nn(r.type);if(y&&(o=d(t,Ca(y),a)))return o}}else if(524288&r.flags){if(524288&t.flags&&t.indexType===r.indexType&&(o=d(t.objectType,r.objectType,a)))return o;if(r.constraint&&(o=d(t,r.constraint,a)))return L=_,o}if(16384&t.flags)if(32&k(r)&&Or(r)===Ca(t)){var m=Pa(t,Fr(r)),f=Ir(r);if(o=d(m,f,a))return L=_,o}else{var y=Tn(t);(!y||1&y.flags)&&(y=Hg),y=fr(y,t);var C=a&&y!==Hg;if(o=d(y,r,C))return L=_,o}else if(524288&t.flags){if(t.constraint&&(o=d(t.constraint,r,a)))return L=_,o}else{if(4&k(t)&&4&k(r)&&t.target===r.target&&(o=D(t,r,a)))return o;var E=Ur(t);if(163840&E.flags&&32768&r.flags){var T=a&&L===_&&!(8190&t.flags);if(o=S(E,t,r,T))return L=_,o}}return a&&(32768&t.flags&&8190&r.flags?u(t,r):t.symbol&&32768&t.flags&&ry===t&&s(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead),c(i,t,r)),0}function p(e,t){var r;return 32768&e.flags&&32768&t.flags?4&k(e)&&4&k(t)&&e.target===t.target&&(r=D(e,t,!1))?r:S(e,e,t,!1):(65536&e.flags&&65536&t.flags||131072&e.flags&&131072&t.flags)&&(r=y(e,t))&&(r&=y(t,e))?r:0}function f(e,t){if(32768&e.flags){var r=Br(e);if((n===yv||n===vv)&&(e===ry||m(r))||r.stringIndexInfo||r.numberIndexInfo&&Gc(t)||Gr(e,t))return!0}else if(196608&e.flags)for(var a=0,i=e.types;a<i.length;a++){var o=i[a];if(f(o,t))return!0}return!1}function m(e){return 0===e.properties.length&&0===e.callSignatures.length&&0===e.constructSignatures.length&&!e.stringIndexInfo&&!e.numberIndexInfo}function g(t,r,n){if(V_(r,32768)&&!(512&k(r)))for(var i=0,o=Kr(t);i<o.length;i++){var c=o[i];if(!f(r,c.name))return n&&(e.Debug.assert(!!a),a=c.valueDeclaration,s(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Ke(c),ze(r))),!0}return!1}function y(e,t){for(var r=-1,n=e.types,a=0,i=n;a<i.length;a++){var o=i[a],s=v(o,t,!1);if(!s)return 0;r&=s}return r}function v(e,t,r){var n=t.types;if(65536&t.flags&&sa(n,e))return-1;for(var a=n.length,i=0;i<a;i++){var o=d(e,n[i],r&&i===a-1);if(o)return o}return 0}function h(e,t,r){for(var n=-1,a=t.types,i=0,o=a;i<o.length;i++){var s=o[i],c=d(e,s,r);if(!c)return 0;n&=c}return n}function b(e,t,r){var n=e.types;if(65536&e.flags&&sa(n,t))return-1;for(var a=n.length,i=0;i<a;i++){var o=d(n[i],t,r&&i===a-1);if(o)return o}return 0}function x(e,t,r){for(var n=-1,a=e.types,i=0,o=a;i<o.length;i++){var s=o[i],c=d(s,t,r);if(!c)return 0;n&=c}return n}function D(e,t,r){var a=e.typeArguments||_g,i=t.typeArguments||_g;if(a.length!==i.length&&n===hv)return 0;for(var o=a.length<=i.length?a.length:i.length,s=-1,c=0;c<o;c++){var u=d(a[c],i[c],r);if(!u)return 0;s&=u}return s}function S(t,r,a,i){if(j)return 0;var o=n!==hv||t.id<a.id?t.id+","+a.id:a.id+","+t.id,s=n[o];if(void 0!==s){if(!i||2!==s)return 1===s?-1:0;n[o]=3}if(z>0){for(var c=0;c<z;c++)if(K[c][o])return 1;if(100===z)return j=!0,0}else M=[],B=[],K=[],J=0;M[z]=t,B[z]=a,K[z]=e.createMap(),K[z][o]=1,z++;var u=J;1&J||!qi(t,M,z)||(J|=1),2&J||!qi(a,B,z)||(J|=2);var _;if(3===J?_=1:Mr(t)||Mr(a)?_=C(t,a,i):(_=E(t,a,i),_&&(_&=N(t,a,0,i),_&&(_&=N(t,a,1,i),_&&(_&=O(t,r,a,0,i),_&&(_&=O(t,r,a,1,i)))))),J=u,z--,_){var l=K[z],d=_===-1||0===z?n:K[z-1];e.copyProperties(l,d)}else n[o]=i?3:2;return _}function C(e,t,r){if(Mr(t)){if(Mr(e)){var a;if(n===hv){var i=!e.declaration.readonlyToken==!t.declaration.readonlyToken,o=!e.declaration.questionToken==!t.declaration.questionToken;if(i&&o&&(a=d(Or(t),Or(e),r)))return a&d(Lr(e),Lr(t),r)}else if((n===vv||!e.declaration.questionToken||t.declaration.questionToken)&&(a=d(Or(t),Or(e),r)))return a&d(Ir(e),Ir(t),r)}}else if(n!==hv){var s=Br(t);if(m(s)||s.stringIndexInfo&&1&s.stringIndexInfo.type.flags)return-1}return 0}function E(t,r,a){if(n===hv)return T(t,r);for(var i=-1,o=Kr(r),c=n===gv&&!(128&k(t)),u=0,_=o;u<_.length;u++){var l=_[u],p=Gr(t,l.name);if(p!==l)if(p){if(!(134217728&l.flags)){var f=vu(p),m=vu(l);if(8&f||8&m){if(p.valueDeclaration!==l.valueDeclaration)return a&&(8&f&&8&m?s(e.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,Ke(l)):s(e.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,Ke(l),ze(8&f?t:r),ze(8&f?r:t))),0}else if(16&m){var g=p.parent&&32&p.parent.flags,y=g?ar(me(p)):void 0,v=ar(me(l));if(!y||!Ot(y,v))return a&&s(e.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,Ke(l),ze(y||t),ze(v)),0}else if(16&f)return a&&s(e.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,Ke(l),ze(t),ze(r)),0;var h=d(Pt(p),Pt(l),a);if(!h)return a&&s(e.Diagnostics.Types_of_property_0_are_incompatible,Ke(l)),0;if(i&=h,n!==vv&&536870912&p.flags&&!(536870912&l.flags))return a&&s(e.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,Ke(l),ze(t),ze(r)),0}}else if(!(536870912&l.flags)||c)return a&&s(e.Diagnostics.Property_0_is_missing_in_type_1,Ke(l),ze(t)),0}return i}function T(e,t){if(!(32768&e.flags&&32768&t.flags))return 0;var r=Kr(e),n=Kr(t);if(r.length!==n.length)return 0;for(var a=-1,i=0,o=r;i<o.length;i++){var s=o[i],c=Jr(t,s.name);if(!c)return 0;var u=Hi(s,c,d);if(!u)return 0;a&=u}return a}function N(t,r,a,i){if(n===hv)return w(t,r,a);if(r===Yg||t===Yg)return-1;var o=Qr(t,a),c=Qr(r,a);if(1===a&&o.length&&c.length){if(Ui(t)&&!Ui(r))return i&&s(e.Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!R(o[0],c[0],i))return 0}var u=-1,_=L;e:for(var l=0,d=c;l<d.length;l++){for(var p=d[l],f=i,m=0,g=o;m<g.length;m++){var y=g[m],v=A(y,p,f);if(v){u&=v,L=_;continue e}f=!1}return f&&s(e.Diagnostics.Type_0_provides_no_match_for_the_signature_1,ze(t),Je(p,void 0,void 0,a)),0}return u}function A(e,t,r){return Ri(e,t,!1,r,s,d)}function w(e,t,r){var n=Qr(e,r),a=Qr(t,r);if(n.length!==a.length)return 0;for(var i=-1,o=0,s=n.length;o<s;o++){var c=Xi(n[o],a[o],!1,!1,!1,d);if(!c)return 0;i&=c}return i}function P(t,r,n,a){for(var i=-1,o=0,c=Kr(t);o<c.length;o++){var u=c[o];if(0===n||Gc(u.name)){var _=d(Pt(u),r,a);if(!_)return a&&s(e.Diagnostics.Property_0_is_incompatible_with_index_signature,Ke(u)),0;i&=_}}return i}function F(t,r,n){var a=d(t.type,r.type,n);return!a&&n&&s(e.Diagnostics.Index_signatures_are_incompatible),a}function O(t,r,a,i,o){if(n===hv)return I(t,a,i);var c=$r(a,i);if(!c||1&c.type.flags&&!(8190&r.flags))return-1;var u=$r(t,i)||1===i&&$r(t,0);if(u)return F(u,c,o);if(go(t)){var _=-1;if(0===i){var l=$r(t,1);l&&(_=F(l,c,o))}return _&&(_&=P(t,c.type,i,o)),_}return o&&s(e.Diagnostics.Index_signature_is_missing_in_type_0,ze(t)),0}function I(e,t,r){var n=$r(t,r),a=$r(e,r);return a||n?a&&n&&a.isReadonly===n.isReadonly?d(a.type,n.type):0:-1}function R(t,r,n){if(!t.declaration||!r.declaration)return!0;var a=24&e.getModifierFlags(t.declaration),i=24&e.getModifierFlags(r.declaration);return 8===i||(16===i&&8!==a||(16!==i&&!a||(n&&s(e.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,Ue(a),Ue(i)),!1)))}var L,M,B,K,J,z=0,j=!1;e.Debug.assert(n!==hv||!a,"no error reporting in identity checking");var V=d(t,r,!!a,i);return j?_(a,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,ze(t),ze(r)):L&&(o&&(L=e.concatenateDiagnosticMessageChains(o,L)),iv.add(e.createDiagnosticForNodeFromMessageChain(a,L))),0!==V}function Ui(t){if(16&k(t)){var r=t.symbol;if(r&&32&r.flags){var n=hp(r);if(n&&128&e.getModifierFlags(n))return!0}}return!1}function qi(e,t,r){if(68&k(e)&&r>=5)for(var n=e.symbol,a=0,i=0;i<r;i++){var o=t[i];if(68&k(o)&&o.symbol===n&&(a++,a>=5))return!0}return!1}function Wi(e,t){return 0!==Hi(e,t,Si)}function Hi(e,t,r){if(e===t)return-1;var n=24&vu(e),a=24&vu(t);if(n!==a)return 0;if(n){if(vp(e)!==vp(t))return 0}else if((536870912&e.flags)!==(536870912&t.flags))return 0;return O_(e)!==O_(t)?0:r(Pt(e),Pt(t))}function Gi(e,t,r){if(e.parameters.length===t.parameters.length&&e.minArgumentCount===t.minArgumentCount&&e.hasRestParameter===t.hasRestParameter)return!0;var n=e.hasRestParameter?1:0,a=t.hasRestParameter?1:0;return!!(r&&e.minArgumentCount<=t.minArgumentCount&&(n>a||n===a&&e.parameters.length>=t.parameters.length))}function Xi(e,t,r,n,a,i){if(e===t)return-1;if(!Gi(e,t,r))return 0;if((e.typeParameters?e.typeParameters.length:0)!==(t.typeParameters?t.typeParameters.length:0))return 0;e=hn(e),t=hn(t);var o=-1;if(!n){var s=fn(e);if(s){var c=fn(t);if(c){var u=i(s,c);if(!u)return 0;o&=u}}}for(var _=t.parameters.length,l=0;l<_;l++){var d=Qi(e,l)?gn(e):g_(e.parameters[l]),p=Qi(t,l)?gn(t):g_(t.parameters[l]),u=i(d,p);if(!u)return 0;o&=u}return a||(o&=i(mn(e),mn(t))),o}function Qi(e,t){return e.hasRestParameter&&t>=e.parameters.length-1}function Yi(e,t){for(var r=0,n=t;r<n.length;r++){var a=n[r];if(e!==a&&!Ei(a,e))return!1}return!0}function Zi(e){for(var t,r=0,n=e;r<n.length;r++){var a=n[r],i=so(a);if(t||(t=i),i===a||i!==t)return!1}return!0}function $i(t){return Zi(t)?ma(t):e.forEach(t,function(e){return Yi(e,t)?e:void 0})}function eo(t){if(!yg)return $i(t);var r=e.filter(t,function(e){return!(6144&e.flags)});if(!r.length)return ma(t,!0);var n=$i(r);return n&&po(n,6144&_o(t))}function to(t,r,n){for(var a,i,o=0,s=0;s<t.length;s++){for(var c=0,u=void 0,_=0;_<t.length;_++)Ei(t[_],t[s])?c++:u||(u=t[_]);if(e.Debug.assert(!!u,"If there is no common supertype, each type should have a downfallType"),c>o&&(a=t[s],i=u,o=c),o===t.length-1)break}Pi(i,a,r,e.Diagnostics.Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0,n)}function ro(e){return 4&k(e)&&e.target===ay}function no(e){return 4&k(e)&&(e.target===ay||e.target===iy)||!(6144&e.flags)&&Ti(e,dy)}function ao(e){return!!Gr(e,"0")}function io(e){return 0!==(6624&e.flags)}function oo(t){return!!(8&t.flags)||(65536&t.flags?!!(16&t.flags)||!e.forEach(t.types,function(e){return!io(e)}):io(t))}function so(t){return 32&t.flags?Bg:64&t.flags?Kg:128&t.flags?jg:256&t.flags?t.baseType:65536&t.flags&&!(16&t.flags)?ma(e.sameMap(t.types,so)):t}function co(t){return 32&t.flags&&1048576&t.flags?Bg:64&t.flags&&1048576&t.flags?Kg:128&t.flags?jg:256&t.flags?t.baseType:65536&t.flags&&!(16&t.flags)?ma(e.sameMap(t.types,co)):t}function uo(e){return!!(4&k(e)&&8&e.target.objectFlags)}function _o(e){for(var t=0,r=0,n=e;r<n.length;r++){var a=n[r];t|=lo(a)}return t}function lo(e){return 65536&e.flags?_o(e.types):32&e.flags?""===e.text?32:0:64&e.flags?"0"===e.text?64:0:128&e.flags?e===zg?128:0:7406&e.flags}function po(e,t){if((lo(e)&t)===t)return e;var r=[e];return 262178&t&&r.push(Vy),340&t&&r.push(Uy),136&t&&r.push(zg),1024&t&&r.push(Ug),2048&t&&r.push(Ig),4096&t&&r.push(Lg),ma(r,!0)}function fo(e){return 7392&lo(e)?Ns(e,function(e){return!(7392&lo(e))}):e}function mo(e){return yg?ns(e,524288):e}function go(e){return e.symbol&&0!==(6144&e.symbol.flags)&&0===Qr(e,0).length&&0===Qr(e,1).length}function yo(e,t){var r=l(67108864|e.flags,e.name);return r.declarations=e.declarations,r.parent=e.parent,r.type=t,r.target=e,e.valueDeclaration&&(r.valueDeclaration=e.valueDeclaration),r}function vo(t,r){for(var n=e.createMap(),a=0,i=Kr(t);a<i.length;a++){var o=i[a],s=Pt(o),c=r(s);n[o.name]=c===s?o:yo(o,c)}return n}function ho(e){if(!(128&k(e)&&1048576&e.flags))return e;var t=e.regularType;if(t)return t;var r=e,n=vo(e,ho),a=Ee(r.symbol,n,r.callSignatures,r.constructSignatures,r.stringIndexInfo,r.numberIndexInfo);return a.flags=r.flags&-1048577,a.objectFlags|=128,e.regularType=a,a}function bo(e){var t=vo(e,function(e){var t=xo(e);return e===t?e:t}),r=$r(e,0),n=$r(e,1);return Ee(e.symbol,t,_g,_g,r&&Dn(xo(r.type),r.isReadonly),n&&Dn(xo(n.type),n.isReadonly))}function ko(e){return 6144&e.flags?e:xo(e)}function xo(t){if(6291456&t.flags){if(6144&t.flags)return Pg;if(128&k(t))return bo(t);if(65536&t.flags)return ma(e.sameMap(t.types,ko));if(ro(t)||uo(t))return Fn(t.target,e.sameMap(t.typeArguments,xo))}return t}function Do(t){var r=!1;if(65536&t.flags)for(var n=0,a=t.types;n<a.length;n++){var i=a[n];Do(i)&&(r=!0)}if(ro(t)||uo(t))for(var o=0,s=t.typeArguments;o<s.length;o++){var i=s[o];Do(i)&&(r=!0)}if(128&k(t))for(var c=0,u=Kr(t);c<u.length;c++){var l=u[c],i=Pt(l);2097152&i.flags&&(Do(i)||_(l.valueDeclaration,e.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,l.name,ze(xo(i))),r=!0)}return r}function So(t,r){var n,a=ze(xo(r));switch(t.kind){case 147:case 146:n=e.Diagnostics.Member_0_implicitly_has_an_1_type;break;case 144:n=t.dotDotDotToken?e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:e.Diagnostics.Parameter_0_implicitly_has_an_1_type;break;case 174:n=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type;break;case 225:case 149:case 148:case 151:case 152:case 184:case 185:if(!t.name)return void _(t,e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,a);n=e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type;break;default:n=e.Diagnostics.Variable_0_implicitly_has_an_1_type}_(t,n,e.declarationNameToString(t.name),a)}function Co(e,t){i&&dg.noImplicitAny&&2097152&t.flags&&(Do(t)||So(e,t))}function Eo(e,t,r){var n,a=e.parameters.length,i=t.parameters.length;n=e.hasRestParameter&&t.hasRestParameter?Math.max(a,i):e.hasRestParameter?i:t.hasRestParameter?a:Math.min(a,i);for(var o=0;o<n;o++)r(y_(e,o),y_(t,o))}function To(t,r){var n=e.map(t.typeParameters,No);return{signature:t,inferUnionTypes:r,inferences:n,inferredTypes:new Array(t.typeParameters.length)}}function No(){return{primary:void 0,secondary:void 0,topLevel:!0,isFixed:!1}}function Ao(t){var r=k(t);return!!(540672&t.flags||4&r&&e.forEach(t.typeArguments,Ao)||16&r&&t.symbol&&10272&t.symbol.flags||32&r||196608&t.flags&&wo(t))}function wo(t){return void 0===t.couldContainTypeVariables&&(t.couldContainTypeVariables=e.forEach(t.types,Ao)),t.couldContainTypeVariables}function Po(t,r){return t===r||196608&t.flags&&e.forEach(t.types,function(e){return Po(e,r)})}function Fo(e,t){function r(e){s.primary=void 0,s.secondary=void 0,Io(o,c,e,u);var t=s.primary||s.secondary;return t&&ma(t,!0)}var n=jr(e),a=$r(e,0);if(0!==n.length||a){for(var i=Pa(Or(t).type,Fr(t)),o=[i],s=No(),c=[s],u=Ir(t),_=!t.declaration.readonlyToken,d=t.declaration.questionToken?0:536870912,p=_r(n),f=0,m=n;f<m.length;f++){var g=m[f],y=r(Pt(g));if(!y)return;var v=l(67108868|g.flags&d,g.name);v.declarations=g.declarations,v.type=y,v.isReadonly=_&&O_(g),p[g.name]=v}if(a){var h=r(a.type);if(!h)return;a=Dn(h,_&&a.isReadonly)}return Ee(void 0,p,_g,_g,a,void 0)}}function Oo(e,t,r){Io(e.signature.typeParameters,e.inferences,t,r)}function Io(t,r,n,a){function i(e,t){for(var r=0;r<m;r++)if(e===p[r]&&t===f[r])return!0;return!1}function o(n,c){if(Ao(c))if(n.aliasSymbol&&n.aliasTypeArguments&&n.aliasSymbol===c.aliasSymbol)for(var u=n.aliasTypeArguments,_=c.aliasTypeArguments,l=0;l<u.length;l++)o(u[l],_[l]);else{if(65536&n.flags&&65536&c.flags&&!(16&n.flags&&16&c.flags)||131072&n.flags&&131072&c.flags){if(n===c){for(var d=0,v=n.types;d<v.length;d++){var h=v[d];o(h,h)}return}for(var b=void 0,x=0,D=n.types;x<D.length;x++){var h=D[x];if(Ro(h,c.types))(b||(b=[])).push(h),o(h,h);else if(96&h.flags){var S=so(h);Ro(S,c.types)&&(b||(b=[])).push(h,S)}}b&&(n=Lo(n,b),c=Lo(c,b))}if(540672&c.flags){if(8388608&n.flags)return;for(var l=0;l<t.length;l++)if(c===t[l]){var C=r[l];if(!C.isFixed){var E=g?C.secondary||(C.secondary=[]):C.primary||(C.primary=[]);e.contains(E,n)||E.push(n),16384&c.flags&&!Po(a,c)&&(C.topLevel=!1)}return}}else if(4&k(n)&&4&k(c)&&n.target===c.target)for(var u=n.typeArguments||_g,_=c.typeArguments||_g,T=u.length<_.length?u.length:_.length,l=0;l<T;l++)o(u[l],_[l]);else if(196608&c.flags){for(var _=c.types,N=0,A=void 0,w=0,P=_;w<P.length;w++){var h=P[w];540672&h.flags&&e.contains(t,h)?(A=h,N++):o(n,h)}1===N&&(g++,o(n,A),g--)}else if(196608&n.flags)for(var u=n.types,F=0,O=u;F<O.length;F++){var I=O[F];o(I,c)}else if(n=Ur(n),32768&n.flags){if(i(n,c))return;if(qi(n,p,m)&&qi(c,f,m))return;var R=n.id+","+c.id;if(y[R])return;y[R]=!0,0===m&&(p=[],f=[]),p[m]=n,f[m]=c,m++,s(n,c),m--}}}function s(n,a){if(32&k(a)){var i=Or(a);if(262144&i.flags){var s=e.indexOf(t,i.type);if(s>=0&&!r[s].isFixed){var _=Fo(n,a);_&&(g++,o(_,t[s]),g--)}return}if(16384&i.flags)return o(Ca(n),i),void o(ma(e.map(jr(n),Pt)),Ir(a))}c(n,a),u(n,a,0),u(n,a,1),d(n,a)}function c(e,t){for(var r=Kr(t),n=0,a=r;n<a.length;n++){var i=a[n],s=Jr(e,i.name);s&&o(Pt(s),Pt(i))}}function u(e,t,r){for(var n=Qr(e,r),a=Qr(t,r),i=n.length,o=a.length,s=i<o?i:o,c=0;c<s;c++)l(hn(n[i-s+c]),hn(a[o-s+c]))}function _(e,t){return o(e,t)}function l(e,t){Eo(e,t,_),e.typePredicate&&t.typePredicate&&e.typePredicate.kind===t.typePredicate.kind?o(e.typePredicate.type,t.typePredicate.type):o(mn(e),mn(t))}function d(e,t){var r=en(t,0);if(r){var n=en(e,0)||tn(e,0);n&&o(n,r)}var a=en(t,1);if(a){var n=en(e,1)||en(e,0)||tn(e,1);n&&o(n,a)}}var p,f,m=0,g=0,y=e.createMap();o(n,a)}function Ro(e,t){for(var r=0,n=t;r<n.length;r++){var a=n[r];if(Di(a,e))return!0}return!1}function Lo(e,t){for(var r=[],n=0,a=e.types;n<a.length;n++){var i=a[n];Ro(i,t)||r.push(i)}return 65536&e.flags?ma(r):ba(r)}function Mo(e,t){var r=e.inferences[t];return r.primary||r.secondary||_g}function Bo(e){var t=Tn(e);return t&&V_(t,270334)}function Ko(t,r){var n,a=t.inferredTypes[r];if(!a){var i=Mo(t,r);if(i.length){var o=t.signature,s=t.inferences[r].topLevel&&!Bo(o.typeParameters[r])&&(t.inferences[r].isFixed||!Po(mn(o),o.typeParameters[r])),c=s?e.sameMap(i,co):i,u=t.inferUnionTypes?ma(c,!0):eo(c);a=u?xo(u):Og,n=!!u}else a=Hg,n=!0;if(t.inferredTypes[r]=a,n){var _=Tn(t.signature.typeParameters[r]);if(_){var l=gi(_,ni(t));Ti(a,fr(l,a))||(t.inferredTypes[r]=a=l)}}else(void 0===t.failedTypeParameterIndex||t.failedTypeParameterIndex>r)&&(t.failedTypeParameterIndex=r)}return a}function Jo(e){for(var t=0;t<e.inferredTypes.length;t++)Ko(e,t);return e.inferredTypes}function zo(t){var r=b(t);return r.resolvedSymbol||(r.resolvedSymbol=!e.nodeIsMissing(t)&&E(t,t.text,1156031,e.Diagnostics.Cannot_find_name_0,t)||Ag),r.resolvedSymbol}function jo(t){for(;t;)switch(t.kind){case 160:return!0;case 70:case 141:t=t.parent;continue;default:return!1}e.Debug.fail("should not get here")}function Vo(e){if(70===e.kind){var t=zo(e);return t!==Ag?""+r(t):void 0}if(98===e.kind)return"0";if(177===e.kind){var n=Vo(e.expression);return n&&n+"."+e.name.text}}function Uo(e,t){switch(e.kind){case 70:return 70===t.kind&&zo(e)===zo(t)||(223===t.kind||174===t.kind)&&ge(zo(e))===fe(t);case 98:return 98===t.kind;case 177:return 177===t.kind&&e.name.text===t.name.text&&Uo(e.expression,t.expression)}return!1}function qo(e,t){for(;177===e.kind;)if(e=e.expression,Uo(e,t))return!0;return!1}function Wo(e,t){return 177===t.kind&&qo(e,t.expression)&&Go(Ho(t.expression),t.name.text)}function Ho(e){if(70===e.kind)return Pt(zo(e));if(177===e.kind){var t=Ho(e.expression);return t&&nt(t,e.name.text)}}function Go(e,t){if(e&&65536&e.flags){var r=Wr(e,t);if(r&&268435456&r.flags)return void 0===r.isDiscriminantProperty&&(r.isDiscriminantProperty=r.hasNonUniformType&&oo(Pt(r))),r.isDiscriminantProperty}return!1}function Xo(e,t){return Uo(e,t)||qo(e,t)}function Qo(e,t){if(e.arguments)for(var r=0,n=e.arguments;r<n.length;r++){var a=n[r];if(Xo(t,a))return!0}return!(177!==e.expression.kind||!Xo(t,e.expression.expression))}function Yo(e){return e.id||(e.id=c,c++),e.id}function Zo(e,t){if(!(65536&e.flags))return Ti(e,t);for(var r=0,n=e.types;r<n.length;r++){var a=n[r];if(Ti(a,t))return!0}return!1}function $o(e,t){if(e!==t){if(8192&t.flags)return t;var r=Ns(e,function(e){return Zo(t,e)});if(!(8192&r.flags))return r}return e}function es(e){for(var t=0,r=0,n=e;r<n.length;r++){var a=n[r];t|=rs(a)}return t}function ts(e){var t=Br(e);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.bind&&Ei(e,ny))}function rs(e){var t=e.flags;if(2&t)return yg?4079361:4194049;if(32&t)return yg?""===e.text?3030785:1982209:""===e.text?3145473:4194049;if(20&t)return yg?4079234:4193922;if(320&t){var r="0"===e.text;return yg?r?3030658:1982082:r?3145346:4193922}if(8&t)return yg?4078980:4193668;if(136&t)return yg?e===zg?3030404:1981828:e===zg?3145092:4193668;if(32768&t)return ts(e)?yg?6164448:8376288:yg?6166480:8378320;if(3072&t)return 2457472;if(4096&t)return 2340752;if(512&t)return yg?1981320:4193160;if(16384&t){var n=Tn(e);return rs(n||Hg)}return 196608&t?es(e.types):8388607}function ns(e,t){return Ns(e,function(e){return 0!==(rs(e)&t)})}function as(e,t){if(t){var r=bl(t);return ma([ns(e,131072),r])}return e}function is(t,r){var n=e.getTextOfPropertyName(r);return nt(t,n)||Gc(n)&&en(t,1)||en(t,0)||Og}function os(e,t){return ao(e)&&nt(e,""+t)||Gd(e,void 0,!1)||Og}function ss(e){return ea(Gd(e,void 0,!1)||Og)}function cs(e){return 175===e.parent.kind||257===e.parent.kind?as(ps(e),e.right):bl(e.right)}function us(t,r){return os(ps(t),e.indexOf(t.elements,r))}function _s(e){return ss(ps(e.parent))}function ls(e){return is(ps(e.parent),e.name)}function ds(e){return as(ls(e),e.objectAssignmentInitializer)}function ps(e){var t=e.parent;switch(t.kind){case 212:return Bg;case 213:return Hd(t.expression)||Og;case 192:return cs(t);case 186:return Ig;case 175:return us(t,e);case 196:return _s(t);case 257:return ls(t);case 258:return ds(t)}return Og}function fs(t){var r=t.parent,n=ys(r.parent),a=172===r.kind?is(n,t.propertyName||t.name):t.dotDotDotToken?ss(n):os(n,e.indexOf(r.elements,t));return as(a,t.initializer)}function ms(e){var t=b(e);return t.resolvedType||bl(e)}function gs(e){return e.initializer?ms(e.initializer):212===e.parent.parent.kind?Bg:213===e.parent.parent.kind?Hd(e.parent.parent.expression)||Og:Og}function ys(e){return 223===e.kind?gs(e):fs(e)}function vs(e){return 223===e.kind||174===e.kind?ys(e):ps(e)}function hs(e){return 223===e.kind&&e.initializer&&dt(e.initializer)||174!==e.kind&&192===e.parent.kind&&dt(e.parent.right)}function bs(e){switch(e.kind){case 183:return bs(e.expression);case 192:switch(e.operatorToken.kind){case 57:return bs(e.left);case 25:return bs(e.right)}}return e}function ks(e){var t=e.parent;return 183===t.kind||192===t.kind&&57===t.operatorToken.kind&&t.left===e||192===t.kind&&25===t.operatorToken.kind&&t.right===e?ks(t):e}function xs(e){if(253===e.kind){var t=Ja(bl(e.expression));return io(t)?t:void 0}return qg}function Ds(t){var r=b(t);if(!r.switchTypes){var n=e.map(t.caseBlock.clauses,xs);r.switchTypes=e.contains(n,void 0)?_g:n}return r.switchTypes}function Ss(t,r){return 65536&t.flags?!e.forEach(t.types,function(t){return!e.contains(r,t)}):e.contains(r,t)}function Cs(e,t){return e===t||65536&t.flags&&Es(e,t)}function Es(e,t){if(65536&e.flags){for(var r=0,n=e.types;r<n.length;r++){var a=n[r];if(!sa(t.types,a))return!1}return!0}return!!(256&e.flags&&16&t.flags&&e.baseType===t)||sa(t.types,e)}function Ts(t,r){return 65536&t.flags?e.forEach(t.types,r):r(t)}function Ns(t,r){if(65536&t.flags){var n=t.types,a=e.filter(n,r);return a===n?t:ga(a)}return r(t)?t:qg}function As(t,r){return 65536&t.flags?ma(e.map(t.types,r)):r(t)}function ws(e,t){return Ns(e,function(e){return 0!==(e.flags&t)})}function Ps(e,t){return Cs(Bg,e)&&V_(t,32)||Cs(Kg,e)&&V_(t,64)?As(e,function(e){return 2&e.flags?ws(t,34):4&e.flags?ws(t,68):e}):e}function Fs(e){return 0===e.flags}function Os(e){return 0===e.flags?e.type:e}function Is(e,t){return t?{flags:0,type:e}:e}function Rs(e){var t=xe(256);return t.elementType=e,t}function Ls(e){return Ng[e.id]||(Ng[e.id]=Rs(e))}function Ms(e,t){var r=so(bl(t));return Cs(r,e.elementType)?e:Ls(ma([e.elementType,r]))}function Bs(e){return 8192&e.flags?ly:ea(65536&e.flags?ma(e.types,!0):e)}function Ks(e){return e.finalArrayType||(e.finalArrayType=Bs(e.elementType))}function Js(e){return 256&k(e)?Ks(e):e}function zs(e){return 256&k(e)?e.elementType:qg}function js(e){for(var t=!1,r=0,n=e;r<n.length;r++){var a=n[r];if(!(8192&a.flags)){if(!(256&k(a)))return!1;t=!0}}return t}function Vs(t,r){return js(t)?Ls(ma(e.map(t,zs))):ma(e.sameMap(t,Js),r)}function Us(t){var r=ks(t),n=r.parent,a=177===n.kind&&("length"===n.name.text||179===n.parent.kind&&e.isPushOrUnshiftIdentifier(n.name)),i=178===n.kind&&n.expression===r&&192===n.parent.kind&&57===n.parent.operatorToken.kind&&n.parent.left===n&&!e.isAssignmentTarget(n.parent)&&Wc(bl(n.argumentExpression),2388);return a||i}function qs(e){var t=b(e);return void 0===t.maybeTypePredicate&&(t.maybeTypePredicate=Ws(e)),t.maybeTypePredicate;
}function Ws(t){if(96!==t.expression.kind){var r=ku(t.expression);if(r!==Wg){var n=Ur(r);if(n!==Og){var a=Qr(n,0);return!!e.forEach(a,function(e){return e.typePredicate})}}}return!1}function Hs(t,r,n,a){function i(e){for(;;){if(1024&e.flags)for(var n=E;n<jy;n++)if(tv[n]===e)return rv[n];var i=void 0;if(16&e.flags){if(i=o(e),!i){e=e.antecedent;continue}}else if(96&e.flags)i=c(e);else if(128&e.flags)i=u(e);else if(12&e.flags){if(1===e.antecedents.length){e=e.antecedents[0];continue}i=4&e.flags?_(e):l(e)}else if(256&e.flags){if(i=s(e),!i){e=e.antecedent;continue}}else if(2&e.flags){var d=e.container;if(d&&d!==a&&177!==t.kind){e=d.flowNode;continue}i=C}else i=Fd(r);return 1024&e.flags&&(tv[jy]=e,rv[jy]=i,jy++),i}}function o(n){var a=n.node;if(Uo(t,a)){if(2===e.getAssignmentTargetKind(a)){var o=i(n.antecedent);return Is(so(Os(o)),Fs(o))}if(r===Fg||r===ly){if(hs(a))return Ls(qg);var s=so(vs(a));return Ti(s,r)?s:_y}return 65536&r.flags?$o(r,vs(a)):r}if(qo(t,a))return r}function s(e){var r=e.node,n=179===r.kind?r.expression.expression:r.left.expression;if(Uo(t,bs(n))){var a=i(e.antecedent),o=Os(a);if(256&k(o)){var s=o;if(179===r.kind)for(var c=0,u=r.arguments;c<u.length;c++){var _=u[c];s=Ms(s,_)}else{var l=bl(r.left.argumentExpression);Wc(l,2388)&&(s=Ms(s,r.right))}return s===o?a:Is(s,Fs(a))}return a}}function c(e){var t=i(e.antecedent),r=Os(t);if(8192&r.flags)return t;var n=0!==(32&e.flags),a=Js(r),o=D(a,e.expression,n);if(o===a)return t;var s=Fs(t),c=s&&8192&o.flags?Wg:o;return Is(c,s)}function u(e){var r=i(e.antecedent),n=Os(r),a=e.switchStatement.expression;return Uo(t,a)?n=v(n,e.switchStatement,e.clauseStart,e.clauseEnd):d(a)&&(n=p(n,a,function(t){return v(t,e.switchStatement,e.clauseStart,e.clauseEnd)})),Is(n,Fs(r))}function _(t){for(var n=[],a=!1,o=!1,s=0,c=t.antecedents;s<c.length;s++){var u=c[s],_=i(u),l=Os(_);if(l===r&&r===C)return l;e.contains(n,l)||n.push(l),Cs(l,r)||(a=!0),Fs(_)&&(o=!0)}return Is(Vs(n,a),o)}function l(n){var a=Yo(n),o=Yy[a]||(Yy[a]=e.createMap());if(S||(S=Vo(t)),o[S])return o[S];for(var s=Jy;s<zy;s++)if(Zy[s]===n&&$y[s]===S&&ev[s].length)return Is(Vs(ev[s],!1),!0);var c,u=[],_=!1;Zy[zy]=n,$y[zy]=S,ev[zy]=u;for(var l=0,d=n.antecedents;l<d.length;l++){var p=d[l];zy++;var f=i(p);zy--,c||(c=f);var m=Os(f);if(o[S])return o[S];if(e.contains(u,m)||u.push(m),Cs(m,r)||(_=!0),m===r)break}var g=Vs(u,_);return Fs(c)?Is(g,!0):o[S]=g}function d(e){return 177===e.kind&&65536&r.flags&&Uo(t,e.expression)&&Go(r,e.name.text)}function p(e,t,r){var n=t.name.text,a=nt(e,n),i=a&&r(a);return a===i?e:Ns(e,function(e){return Ai(nt(e,n),i)})}function f(e,n,a){return Uo(t,n)?ns(e,a?1048576:2097152):d(n)?p(e,n,function(e){return ns(e,a?1048576:2097152)}):Wo(t,n)?r:e}function m(e,n,a){switch(n.operatorToken.kind){case 57:return f(e,n.left,a);case 31:case 32:case 33:case 34:var i=n.operatorToken.kind,o=bs(n.left),s=bs(n.right);if(187===o.kind&&9===s.kind)return y(e,o,i,s,a);if(187===s.kind&&9===o.kind)return y(e,s,i,o,a);if(Uo(t,o))return g(e,i,s,a);if(Uo(t,s))return g(e,i,o,a);if(d(o))return p(e,o,function(e){return g(e,i,s,a)});if(d(s))return p(e,s,function(e){return g(e,i,o,a)});if(Wo(t,o)||Wo(t,s))return r;break;case 92:return h(e,n,a);case 25:return D(e,n.right,a)}return e}function g(e,t,r,n){if(1&e.flags)return e;32!==t&&34!==t||(n=!n);var a=bl(r);if(6144&a.flags){if(!yg)return e;var i=31===t||32===t,o=i?n?65536:524288:94===r.kind?n?32768:262144:n?16384:131072;return ns(e,o)}if(33281&e.flags)return e;if(n){var s=Ns(e,function(e){return wi(e,a)});return 8192&s.flags?e:Ps(s,a)}if(io(a)){var c=Ja(a);return Ns(e,function(e){return Ja(e)!==c})}return e}function y(e,n,a,i,o){var s=bs(n.expression);if(!Uo(t,s))return qo(t,s)?r:e;if(32!==a&&34!==a||(o=!o),o&&!(65536&e.flags)){var c=pv[i.text];if(c&&Ei(c,e))return c}var u=o?lv[i.text]||64:dv[i.text]||8192;return ns(e,u)}function v(t,r,n,a){var i=Ds(r);if(!i.length)return t;var o=i.slice(n,a),s=n===a||e.contains(o,qg),c=ma(o),u=8192&c.flags?qg:Ps(Ns(t,function(e){return Ai(c,e)}),c);if(!s)return u;var _=Ns(t,function(t){return!(io(t)&&e.contains(i,Ja(t)))});return 8192&u.flags?_:ma([u,_])}function h(n,a,i){var o=bs(a.left);if(!Uo(t,o))return qo(t,o)?r:n;var s=bl(a.right);if(!Ei(s,ny))return n;var c,u=Gr(s,"prototype");if(u){var _=Pt(u);at(_)||(c=_)}if(at(n)&&(c===ry||c===ny))return n;if(!c){var l=void 0;2&k(s)?l=pr(s).declaredConstructSignatures:16&k(s)&&(l=Qr(s,1)),l&&l.length&&(c=ma(e.map(l,function(e){return mn(hn(e))})))}return c?b(n,c,i,Ni):n}function b(e,t,r,n){if(!r)return Ns(e,function(e){return!n(e,t)});if(65536&e.flags){var a=Ns(e,function(e){return n(e,t)});if(!(8192&a.flags))return a}var i=16384&e.flags?Ur(e):e;return Ei(t,e)?t:Ti(e,t)?e:Ti(t,i)?t:ba([e,t])}function x(n,a,i){if(!Qo(a,t)||!qs(a))return n;var o=c_(a),s=o.typePredicate;if(!s)return n;if(at(n)&&(s.type===ry||s.type===ny))return n;if(e.isIdentifierTypePredicate(s)){var c=a.arguments[s.parameterIndex];if(c){if(Uo(t,c))return b(n,s.type,i,Ei);if(qo(t,c))return r}}else{var u=e.skipParentheses(a.expression);if(178===u.kind||177===u.kind){var _=u,l=e.skipParentheses(_.expression);if(Uo(t,l))return b(n,s.type,i,Ei);if(qo(t,l))return r}}return n}function D(e,t,r){switch(t.kind){case 70:case 98:case 177:return f(e,t,r);case 179:return x(e,t,r);case 183:return D(e,t.expression,r);case 192:return m(e,t,r);case 190:if(50===t.operator)return D(e,t.operand,!r)}return e}var S;if(!t.flowNode||n&&!(1033215&r.flags))return r;var C=n?r:r===Fg||r===ly?Ig:po(r,2048),E=jy,T=Os(i(t.flowNode));jy=E;var N=256&k(T)&&Us(t)?_y:Js(T);return 201===t.parent.kind&&8192&ns(N,524288).flags?r:N}function Gs(t,r){if(70===r.kind&&(e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),e.isPartOfExpression(r)&&!e.isAssignmentTarget(r))){var n=bl(r);if(ge(b(r).resolvedSymbol)===t)return n}return Pt(t)}function Xs(t){for(;;)if(t=t.parent,e.isFunctionLike(t)&&!e.getImmediatelyInvokedFunctionExpression(t)||231===t.kind||261===t.kind||147===t.kind)return t}function Qs(t){var r=e.getRootDeclaration(t.valueDeclaration).parent,n=b(r);return 4194304&n.flags||(n.flags|=4194304,Ys(r)||Zs(r)),t.isAssigned||!1}function Ys(t){for(;;){if(t=t.parent,!t)return!1;if(e.isFunctionLike(t)&&4194304&b(t).flags)return!0}}function Zs(t){if(70===t.kind){if(e.isAssignmentTarget(t)){var r=zo(t);r.valueDeclaration&&144===e.getRootDeclaration(r.valueDeclaration).kind&&(r.isAssigned=!0)}}else e.forEachChild(t,Zs)}function $s(e){return 3&e.flags&&0!==(2&hu(e))&&Pt(e)!==ly}function ec(t){var r=zo(t);if(r===Ag)return Og;if(r===bg){var n=e.getContainingFunction(t);return pg<2&&(185===n.kind?_(t,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):e.hasModifier(n,256)&&_(t,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),16384&t.flags&&(b(n).flags|=8192),Pt(r)}8388608&r.flags&&!jo(t)&&!Ff(X(r))&&Y(r);var a=ge(r);if(32&a.flags){var i=a.valueDeclaration;if(226===i.kind&&e.nodeIsDecorated(i))for(var n=e.getContainingClass(t);void 0!==n;){if(n===i&&n.name!==t){b(i).flags|=8388608,b(t).flags|=16777216;break}n=e.getContainingClass(n)}else if(197===i.kind)for(var n=e.getThisContainer(t,!1);void 0!==n;){if(n.parent===i){147===n.kind&&e.hasModifier(n,32)&&(b(i).flags|=8388608,b(t).flags|=16777216);break}n=e.getThisContainer(n,!1)}}Td(t,t),Cd(t,t),rc(t,r);var o=Pt(a),s=a.valueDeclaration,c=e.getAssignmentTargetKind(t);if(c){if(!(3&a.flags))return _(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,Ke(r)),Og;if(O_(a))return _(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property,Ke(r)),Og}if(!(3&a.flags&&1!==c&&s))return o;for(var u=144===e.getRootDeclaration(s).kind,l=Xs(s),d=Xs(t),p=d!==l;d!==l&&(184===d.kind||185===d.kind||e.isObjectLiteralOrClassExpressionMethod(d))&&($s(a)||u&&!Qs(a));)d=Xs(d);var f=u||p||o!==Fg&&o!==ly&&(!yg||0!==(1&o.flags))||e.isInAmbientContext(s),m=Hs(t,o,f,d);if(o===Fg||o===ly){if(m===Fg||m===ly)return dg.noImplicitAny&&(_(s.name,e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Ke(r),ze(m)),_(t,e.Diagnostics.Variable_0_implicitly_has_an_1_type,Ke(r),ze(m))),Fd(m)}else if(!f&&!(2048&lo(o))&&2048&lo(m))return _(t,e.Diagnostics.Variable_0_is_used_before_being_assigned,Ke(r)),o;return c?so(m):m}function tc(t,r){for(var n=t;n&&n!==r;){if(e.isFunctionLike(n))return!0;n=n.parent}return!1}function rc(t,r){if(!(pg>=2||0===(34&r.flags)||256===r.valueDeclaration.parent.kind)){for(var n=e.getEnclosingBlockScopeContainer(r.valueDeclaration),a=tc(t.parent,n),i=n,o=!1;i&&!e.nodeStartsNewLexicalEnvironment(i);){if(e.isIterationStatement(i,!1)){o=!0;break}i=i.parent}o&&(a&&(b(i).flags|=65536),211===n.kind&&e.getAncestor(r.valueDeclaration,224).parent===n&&nc(t,n)&&(b(r.valueDeclaration).flags|=2097152),b(r.valueDeclaration).flags|=262144),a&&(b(r.valueDeclaration).flags|=131072)}}function nc(t,r){for(var n=t;183===n.parent.kind;)n=n.parent;var a=!1;if(e.isAssignmentTarget(n))a=!0;else if(190===n.parent.kind||191===n.parent.kind){var i=n.parent;a=42===i.operator||43===i.operator}if(!a)return!1;for(;n!==r;){if(n===r.statement)return!0;n=n.parent}return!1}function ac(e,t){if(b(e).flags|=2,147===t.kind||150===t.kind){var r=t.parent;b(r).flags|=4}else b(t).flags|=4}function ic(t){if(e.isSuperCall(t))return t;if(!e.isFunctionLike(t))return e.forEachChild(t,ic)}function oc(e){var t=b(e);return void 0===t.hasSuperCall&&(t.superCall=ic(e.body),t.hasSuperCall=!!t.superCall),t.superCall}function sc(e){var t=fe(e),r=ar(t),n=Vt(r);return n===Mg}function cc(t,r,n){var a=r.parent,i=e.getClassExtendsHeritageClauseElement(a);if(i&&!sc(a)){var o=oc(r);(!o||o.end>t.pos)&&_(t,n)}}function uc(t){var r=e.getThisContainer(t,!0),n=!1;switch(150===r.kind&&cc(t,r,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),185===r.kind&&(r=e.getThisContainer(r,!1),n=pg<2),r.kind){case 230:_(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 229:_(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 150:lc(t,r)&&_(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 147:case 146:32&e.getModifierFlags(r)&&_(t,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 142:_(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}if(n&&ac(t,r),e.isFunctionLike(r)&&(!vc(t)||e.getThisParameter(r))){if(184===r.kind&&e.isInJavaScriptFile(r.parent)&&3===e.getSpecialPropertyAssignmentKind(r.parent)){var a=r.parent.left.expression.expression,i=kl(a).symbol;if(i&&i.members&&16&i.flags)return __(i)}var o=St(r)||pc(r);if(o)return o}if(e.isClassLike(r.parent)){var s=fe(r.parent),c=e.hasModifier(r,32)?Pt(s):ar(s).thisType;return Hs(t,c,!0,void 0)}if(e.isInJavaScriptFile(t)){var c=_c(r);if(c&&c!==Og)return c}return dg.noImplicitThis&&_(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation),Pg}function _c(t){var r=e.getJSDocType(t);if(r&&274===r.kind){var n=r;if(n.parameters.length>0&&277===n.parameters[0].type.kind)return Ha(n.parameters[0].type)}}function lc(e,t){for(var r=e;r&&r!==t;r=r.parent)if(144===r.kind)return!0;return!1}function dc(t){function r(t){return!!t&&(n?150===t.kind:!(!e.isClassLike(t.parent)&&176!==t.parent.kind)&&(32&e.getModifierFlags(t)?149===t.kind||148===t.kind||151===t.kind||152===t.kind:149===t.kind||148===t.kind||151===t.kind||152===t.kind||147===t.kind||146===t.kind||150===t.kind))}var n=179===t.parent.kind&&t.parent.expression===t,a=e.getSuperContainer(t,!0),i=!1;if(!n)for(;a&&185===a.kind;)a=e.getSuperContainer(a,!0),i=pg<2;var o=r(a),s=0;if(!o){for(var c=t;c&&c!==a&&142!==c.kind;)c=c.parent;return c&&142===c.kind?_(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):n?_(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):a&&a.parent&&(e.isClassLike(a.parent)||176===a.parent.kind)?_(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):_(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Og}if(n||150!==a.kind||cc(t,a,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),s=32&e.getModifierFlags(a)||n?512:256,b(t).flags|=s,149===a.kind&&256&e.getModifierFlags(a)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?b(a).flags|=4096:b(a).flags|=2048),i&&ac(t.parent,a),176===a.parent.kind)return pg<2?(_(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Og):Pg;var u=a.parent,l=ar(fe(u)),d=l&&Ut(l)[0];return d?150===a.kind&&lc(t,a)?(_(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),Og):512===s?Vt(l):fr(d,l.thisType):(e.getClassExtendsHeritageClauseElement(u)||_(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),Og)}function pc(e){if(ki(e)&&185!==e.kind){var t=Kc(e);if(t){var r=t.thisParameter;if(r)return Pt(r)}}}function fc(t){var r=t.parent;if(ki(r)){var n=e.getImmediatelyInvokedFunctionExpression(r);if(n){var a=e.indexOf(r.parameters,t);if(n.arguments&&a<n.arguments.length){if(t.dotDotDotToken){for(var i=[],o=a;o<n.arguments.length;o++)i.push(co(kl(n.arguments[o])));return ea(ma(i))}var s=b(n),c=s.resolvedSignature;s.resolvedSignature=Iy;var u=co(kl(n.arguments[a]));return s.resolvedSignature=c,u}}var _=Kc(r);if(_){var l=e.hasRestParameter(r),d=r.parameters.length-(l?1:0),a=e.indexOf(r.parameters,t);if(a<d)return y_(_,a);if(l&&a===r.parameters.length-1&&Qi(_,r.parameters.length-1))return Pt(e.lastOrUndefined(_.parameters))}}}function mc(t){var r=t.parent;if(t===r.initializer){if(r.type)return Ha(r.type);if(144===r.kind){var n=fc(r);if(n)return n}if(e.isBindingPattern(r.name))return vt(r.name,!0,!1);if(e.isBindingPattern(r.parent)){var a=r.parent.parent,i=r.propertyName||r.name;if(e.isVariableLike(a)&&a.type&&!e.isBindingPattern(i)){var o=e.getTextOfPropertyName(i);if(o)return nt(Ha(a.type),o)}}}}function gc(t){var r=e.getContainingFunction(t);if(e.isAsyncFunctionLike(r)){var n=hc(r);if(n)return td(n)}else if(r&&!r.asteriskToken)return hc(r)}function yc(t){var r=e.getContainingFunction(t);if(r){var n=hc(r);if(n)return t.asteriskToken?n:Zd(n)}}function vc(t){for(;t.parent&&!e.isFunctionLike(t.parent);){if(144===t.parent.kind&&t.parent.initializer===t)return!0;t=t.parent}return!1}function hc(t){if(t.type||150===t.kind||151===t.kind&&e.getSetAccessorTypeAnnotationNode(e.getDeclarationOfKind(t.symbol,152)))return mn(_n(t));var r=Mc(t);return r?mn(r):void 0}function bc(t,r){var n=Uu(t),a=e.indexOf(n,r);if(a>=0){var i=u_(t);return y_(i,a)}}function kc(e,t){if(181===e.parent.kind)return bc(e.parent,t)}function xc(t){var r=t.parent,n=r.operatorToken.kind;if(n>=57&&n<=69){if(0!==e.getSpecialPropertyAssignmentKind(r))return;if(t===r.right)return bl(r.left)}else{if(53===n){var a=Oc(r);return a||t!==r.right||(a=bl(r.left)),a}if((52===n||25===n)&&t===r.right)return Oc(r)}}function Dc(e,t){if(!(65536&e.flags))return t(e);for(var r,n,a=e.types,i=0,o=a;i<o.length;i++){var s=o[i],c=t(s);c&&(r?n?n.push(c):n=[r,c]:r=c)}return n?ma(n):r}function Sc(e,t){return Dc(e,function(e){var r=229376&e.flags?Gr(e,t):void 0;return r?Pt(r):void 0})}function Cc(e,t){return Dc(e,function(e){return Zr(e,t)})}function Ec(t){return!!(65536&t.flags?e.forEach(t.types,ao):ao(t))}function Tc(t){if(e.Debug.assert(e.isObjectLiteralMethod(t)),!$p(t))return Nc(t)}function Nc(t){var r=t.parent,n=Fc(r);if(n){if(!e.hasDynamicName(t)){var a=fe(t).name,i=Sc(n,a);if(i)return i}return Uc(t.name)&&Cc(n,1)||Cc(n,0)}}function Ac(t){var r=t.parent,n=Fc(r);if(n){var a=e.indexOf(r.elements,t);return Sc(n,""+a)||Cc(n,1)||(pg>=2?Qd(n,void 0):void 0)}}function wc(e){var t=e.parent;return e===t.whenTrue||e===t.whenFalse?Oc(t):void 0}function Pc(t){var r=t.kind,n=t.parent,a=_u(n);if(250===t.kind){if(!a||at(a))return;return nt(a,t.name.text)}return 251===t.kind?a:void e.Debug.fail("Expected JsxAttribute or JsxSpreadAttribute, got ts.SyntaxKind["+r+"]")}function Fc(e){var t=Oc(e);return t&&Ur(t)}function Oc(t){if(!$p(t)){if(t.contextualType)return t.contextualType;var r=t.parent;switch(r.kind){case 223:case 144:case 147:case 146:case 174:return mc(t);case 185:case 216:return gc(t);case 195:return yc(r);case 179:case 180:return bc(r,t);case 182:case 200:return Ha(r.type);case 192:return xc(t);case 257:case 258:return Nc(r);case 175:return Ac(t);case 193:return wc(t);case 202:return e.Debug.assert(194===r.parent.kind),kc(r.parent,t);case 183:return Oc(r);case 252:return Oc(r);case 250:case 251:return Pc(r)}}}function Ic(e,t){var r=Xr(e,0);if(1===r.length){var n=r[0];if(!n.typeParameters&&!Rc(n,t))return n}}function Rc(t,r){for(var n=0;n<r.parameters.length;n++){var a=r.parameters[n];if(a.initializer||a.questionToken||a.dotDotDotToken||on(a))break}r.parameters.length&&e.parameterIsThisKeyword(r.parameters[0])&&n--;var i=t.hasRestParameter?Number.MAX_VALUE:t.parameters.length;return i<n}function Lc(e){return 184===e.kind||185===e.kind}function Mc(t){return Lc(t)||e.isObjectLiteralMethod(t)?Kc(t):void 0}function Bc(t){return e.isObjectLiteralMethod(t)?Tc(t):Fc(t)}function Kc(t){e.Debug.assert(149!==t.kind||e.isObjectLiteralMethod(t));var r=Bc(t);if(r){if(!(65536&r.flags))return Ic(r,t);for(var n,a=r.types,i=0,o=a;i<o.length;i++){var s=o[i],c=Ic(s,t);if(c)if(n){if(!Xi(n[0],c,!1,!0,!0,Si))return;n.push(c)}else n=[c]}var u;return n&&(u=hr(n[0]),u.resolvedReturnType=void 0,u.unionSignatures=n),u}}function Jc(e){return e&&e.context}function zc(e,t){var r=kl(e.expression,t);return Gd(r,e.expression,!1)}function jc(e){return 174===e.kind&&!!e.initializer||192===e.kind&&57===e.operatorToken.kind}function Vc(t,r){for(var n=t.elements,a=!1,i=[],o=e.isAssignmentTarget(t),s=0,c=n;s<c.length;s++){var u=c[s];if(o&&196===u.kind){var l=kl(u.expression,r),d=en(l,1)||(pg>=2?Qd(l,void 0):void 0);d&&i.push(d)}else{var p=gl(u,r);i.push(p)}a=a||196===u.kind}if(!a){if(o&&i.length){var p=On(aa(i));return p.pattern=t,p}var f=Fc(t);if(f&&Ec(f)){var m=f.pattern;if(m&&(173===m.kind||175===m.kind))for(var g=m.elements,y=i.length;y<g.length;y++){var v=g[y];jc(v)?i.push(f.typeArguments[y]):(198!==v.kind&&_(v,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),i.push(Og))}if(i.length)return aa(i)}}return ea(i.length?ma(i,!0):yg?qg:Rg)}function Uc(e){return 142===e.kind?qc(e):Gc(e.text)}function qc(e){return Wc(Xc(e),340)}function Wc(e,t){return at(e)||U_(e,t)}function Hc(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e}function Gc(e){return(+e).toString()===e}function Xc(t){var r=b(t.expression);return r.resolvedType||(r.resolvedType=kl(t.expression),Wc(r.resolvedType,263030)?Fu(t.expression,r.resolvedType,!0):_(t,e.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)),r.resolvedType}function Qc(e,t,r,n){for(var a=[],i=0;i<r.length;i++)(0===n||Uc(e[i+t].name))&&a.push(Pt(r[i]));var o=a.length?ma(a,!0):Ig;return Dn(o,!1)}function Yc(t,r){function n(){var e=m?Qc(t.properties,y,o,0):void 0,r=g?Qc(t.properties,y,o,1):void 0,n=Ee(t.symbol,i,_g,_g,e,r),s=dg.suppressExcessPropertyErrors?0:1048576;return n.flags|=4194304|s|14680064&p,n.objectFlags|=128,f&&(n.objectFlags|=512),a&&(n.pattern=t),6144&n.flags||(c|=14680064&n.flags),n}var a=e.isAssignmentTarget(t);Em(t,a);for(var i=e.createMap(),o=[],s=Hg,c=0,u=Fc(t),d=u&&u.pattern&&(172===u.pattern.kind||176===u.pattern.kind),p=0,f=!1,m=!1,g=!1,y=0,v=0;v<t.properties.length;v++){var h=t.properties[v],b=h.symbol;if(257===h.kind||258===h.kind||e.isObjectLiteralMethod(h)){var x=void 0;257===h.kind?x=yl(h,r):149===h.kind?x=vl(h,r):(e.Debug.assert(258===h.kind),x=gl(h.name,r)),p|=x.flags;var D=l(67108868|b.flags,b.name);if(a){var S=257===h.kind&&jc(h.initializer)||258===h.kind&&h.objectAssignmentInitializer;S&&(D.flags|=536870912),e.hasDynamicName(h)&&(f=!0)}else if(d&&!(512&k(u))){var C=Gr(u,b.name);C?D.flags|=536870912&C.flags:dg.suppressExcessPropertyErrors||$r(u,0)||_(h.name,e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Ke(b),ze(u))}D.declarations=b.declarations,D.parent=b.parent,b.valueDeclaration&&(D.valueDeclaration=b.valueDeclaration),D.type=x,D.target=b,b=D}else{if(259===h.kind){pg<5&&Zf(h,2),o.length>0&&(s=Ma(s,n(),!0),o=[],i=e.createMap(),m=!1,g=!1,p=0);var x=kl(h.expression);if(!Zc(x))return _(h,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),Og;s=Ma(s,x,!1),y=v+1;continue}e.Debug.assert(151===h.kind||152===h.kind),Ml(h)}e.hasDynamicName(h)?Uc(h.name)?g=!0:m=!0:i[b.name]=b,o.push(b)}if(d)for(var E=0,T=jr(u);E<T.length;E++){var D=T[E];i[D.name]||(536870912&D.flags||_(D.valueDeclaration||D.bindingElement,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),i[D.name]=D,o.push(D))}return s!==Hg?(o.length>0&&(s=Ma(s,n(),!0)),32768&s.flags&&(s.flags|=c,s.symbol=t.symbol),s):n()}function Zc(t){return!!(6145&t.flags||32768&t.flags&&!Mr(t)||196608&t.flags&&!e.forEach(t.types,function(e){return!Zc(e)}))}function $c(e){return mu(e),ov||Pg}function eu(e){mu(e.openingElement),ru(e.closingElement.tagName)?ou(e.closingElement):kl(e.closingElement.tagName);for(var t=0,r=e.children;t<r.length;t++){var n=r[t];switch(n.kind){case 252:gu(n);break;case 246:eu(n);break;case 247:$c(n)}}return ov||Pg}function tu(e){return e.indexOf("-")<0}function ru(t){return 177!==t.kind&&98!==t.kind&&e.isIntrinsicJsxName(t.text)}function nu(t,r,n){var a=void 0;if(r===Hg&&tu(t.name.text))_(t.parent,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,cu());else if(r&&!at(r)){var i=Gr(r,t.name.text);if(a=i&&Pt(i),tu(t.name.text)){var o=nt(r,e.getTextOfPropertyName(t.name))||en(r,0);if(o)a=o;else if(!a)return _(t.name,e.Diagnostics.Property_0_does_not_exist_on_type_1,t.name.text,ze(r)),Og}}var s;return s=t.initializer?kl(t.initializer):jg,a&&Fi(s,a,t),n[t.name.text]=!0,s}function au(t,r,n){2===dg.jsx&&Zf(t,2);for(var a=kl(t.expression),i=jr(a),o=0,s=i;o<s.length;o++){var c=s[o];if(!n[c.name]){var u=Gr(r,c.name);if(u){var _=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property,c.name);Fi(Pt(c),Pt(u),t,void 0,_)}n[c.name]=!0}}return a}function iu(e){return void 0===fv[e]?fv[e]=Xn(mv.JSX,e)||Og:fv[e]}function ou(t){var r=b(t);if(!r.resolvedSymbol){var n=iu(mv.IntrinsicElements);if(n!==Og){var a=Gr(n,t.tagName.text);if(a)return r.jsxFlags|=1,r.resolvedSymbol=a;var i=en(n,0);return i?(r.jsxFlags|=2,r.resolvedSymbol=n.symbol):(_(t,e.Diagnostics.Property_0_does_not_exist_on_type_1,t.tagName.text,"JSX."+mv.IntrinsicElements),r.resolvedSymbol=Ag)}return dg.noImplicitAny&&_(t,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,mv.IntrinsicElements),r.resolvedSymbol=Ag}return r.resolvedSymbol}function su(t,r){if(e.Debug.assert(!(65536&r.flags)),at(r))return Pg;var n=Qr(r,1);return 0===n.length&&(n=Qr(r,0),0===n.length)?(_(t.tagName,e.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,e.getTextOfNode(t.tagName)),Og):ma(e.map(n,mn),!0)}function cu(){var t=Hn(mv.JSX,1920,void 0),r=t&&D(t.exports,mv.ElementAttributesPropertyNameContainer,793064),n=r&&ar(r),a=n&&jr(n);return a?0===a.length?"":1===a.length?a[0].name:void _(r.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,mv.ElementAttributesPropertyNameContainer):void 0}function uu(t,r,n){if(r||(r=kl(t.tagName)),65536&r.flags){var a=r.types;return ma(e.map(a,function(e){return uu(t,e,n)}),!0)}if(2&r.flags)return Pg;if(32&r.flags){var i=iu(mv.IntrinsicElements);if(i!==Og){var o=r.text,s=Gr(i,o);if(s)return Pt(s);var c=en(i,0);if(c)return c;_(t,e.Diagnostics.Property_0_does_not_exist_on_type_1,o,"JSX."+mv.IntrinsicElements)}return Pg}var u=su(t,r);if((!n||!Ti(u,n))&&ov){var l=r&&Qr(r,0),d=l&&l.length>0&&l[0],p=d&&mn(d),f=p&&(0===d.parameters.length?Hg:Pt(d.parameters[0]));if(p&&Ti(p,ov)){var m=iu(mv.IntrinsicAttributes);return m!==Og&&(f=Er(m,f)),f}}if(n&&Vi(u,n,yv,t,e.Diagnostics.JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements),at(u))return u;var g=cu();if(void 0===g)return Pg;if(""===g)return u;var y=nt(u,g);if(y){if(at(y)||y===Og)return y;if(65536&y.flags)return _(t.tagName,e.Diagnostics.JSX_element_attributes_type_0_may_not_be_a_union_type,ze(y)),Pg;var v=y,h=iu(mv.IntrinsicClassAttributes);if(h!==Og){var b=Mt(h.symbol);b?1===b.length&&(v=Er(Fn(h,[u]),v)):v=Er(y,h)}var k=iu(mv.IntrinsicAttributes);return k!==Og&&(v=Er(k,v)),v}return Hg}function _u(e){var t=b(e);if(!t.resolvedJsxType){if(ru(e.tagName)){var r=ou(e);return 1&t.jsxFlags?t.resolvedJsxType=Pt(r):2&t.jsxFlags?t.resolvedJsxType=Sn(r,0).type:t.resolvedJsxType=Og}var n=du();return t.resolvedJsxType=uu(e,void 0,n)}return t.resolvedJsxType}function lu(e){var t=_u(e.parent),r=Gr(t,e.name.text);return r||Ag}function du(){return Ay||(Ay=Xn(mv.JSX,mv.ElementClass)),Ay}function pu(){var e=iu(mv.IntrinsicElements);return e?jr(e):_g}function fu(t){0===(dg.jsx||0)&&_(t,e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===ov&&dg.noImplicitAny&&_(t,e.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function mu(t){Tm(t),fu(t);var r=2===dg.jsx?e.Diagnostics.Cannot_find_name_0:void 0,n=o(),a=E(t.tagName,n,107455,r,n);a&&(a.isReferenced=!0,8388608&a.flags&&!Ff(X(a))&&Y(a));for(var i=_u(t),s=e.createMap(),c=!1,u=t.attributes.length-1;u>=0;u--)if(250===t.attributes[u].kind)nu(t.attributes[u],i,s);else{e.Debug.assert(251===t.attributes[u].kind);var l=au(t.attributes[u],i,s);at(l)&&(c=!0)}if(i&&!c)for(var d=jr(i),u=0;u<d.length;u++)536870912&d[u].flags||s[d[u].name]||_(t,e.Diagnostics.Property_0_is_missing_in_type_1,d[u].name,ze(i))}function gu(e){return e.expression?kl(e.expression):Og}function yu(e){return e.valueDeclaration?e.valueDeclaration.kind:147}function vu(t){return t.valueDeclaration?e.getCombinedModifierFlags(t.valueDeclaration):134217728&t.flags?36:0}function hu(t){return t.valueDeclaration?e.getCombinedNodeFlags(t.valueDeclaration):0}function bu(t,r,n,a){var i=vu(a),o=ar(me(a)),s=177===t.kind||223===t.kind?t.name:t.right;if(96===r.kind){if(pg<2&&149!==yu(a))return _(s,e.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(128&i)return _(s,e.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Ke(a),ze(o)),!1}if(!(24&i))return!0;if(8&i){var c=hp(me(a));return!!sf(t,c)||(_(s,e.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,Ke(a),ze(o)),!1)}if(96===r.kind)return!0;var u=of(t,function(e){var t=ar(fe(e));return Ot(t,o)?t:void 0});return u?!!(32&i)||(16384&n.flags&&n.isThisType&&(n=Tn(n)),!!(3&k(Ft(n))&&Ot(n,u))||(_(s,e.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1,Ke(a),ze(u)),!1)):(_(s,e.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Ke(a),ze(o)),!1)}function ku(t){var r=kl(t);if(yg){var n=6144&lo(r);return n&&_(t,2048&n?4096&n?e.Diagnostics.Object_is_possibly_null_or_undefined:e.Diagnostics.Object_is_possibly_undefined:e.Diagnostics.Object_is_possibly_null),mo(r)}return r}function xu(e){return Eu(e,e.expression,e.name)}function Du(e){return Eu(e,e.left,e.right)}function Su(t,r){var n;if(65536&r.flags&&!(8190&r.flags))for(var a=0,i=r.types;a<i.length;a++){var o=i[a];if(!Gr(o,t.text)){n=e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(t),ze(o));break}}n=e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(t),ze(r)),iv.add(e.createDiagnosticForNodeFromMessageChain(t,n))}function Cu(t){t&&mg&&106500&t.flags&&t.valueDeclaration&&8&e.getModifierFlags(t.valueDeclaration)&&(16777216&t.flags?h(t).target.isReferenced=!0:t.isReferenced=!0)}function Eu(t,r,n){var a=ku(r);if(at(a)||a===Wg)return a;var i=Ur(xo(a));if(i===Og||16384&a.flags&&at(i))return i;var o=Gr(i,n.text);if(!o)return n.text&&!N(t)&&Su(n,16384&a.flags&&a.isThisType?i:a),Og;Cu(o),b(t).resolvedSymbol=o,o.parent&&32&o.parent.flags&&bu(t,r,i,o);var s=Pt(o),c=e.getAssignmentTargetKind(t);if(c&&(I_(t,o)||R_(t)))return _(n,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property,n.text),Og;if(!(177===t.kind&&1!==c&&(98311&o.flags||8192&o.flags&&65536&s.flags)))return s;var u=Hs(t,s,!0,void 0);return c?so(u):u}function Tu(e,t){var r=177===e.kind?e.expression:e.left,n=kl(r);if(n!==Og&&!at(n)){var a=Gr(xo(n),t);if(a&&a.parent&&32&a.parent.flags)return bu(e,r,n,a)}return!0}function Nu(t){var r=t.initializer;if(224===r.kind){var n=r.declarations[0];if(n&&!e.isBindingPattern(n.name))return fe(n)}else if(70===r.kind)return zo(r)}function Au(e){return en(e,1)&&!en(e,0)}function wu(t){var r=e.skipParentheses(t);if(70===r.kind){var n=zo(r);if(3&n.flags)for(var a=t,i=t.parent;i;){if(212===i.kind&&a===i.statement&&Nu(i)===n&&Au(bl(i.expression)))return!0;a=i,i=i.parent}}return!1}function Pu(t){var r=ku(t.expression),n=t.argumentExpression;if(!n){var a=e.getSourceFileOfNode(t);if(180===t.parent.kind&&t.parent.expression===t){var i=e.skipTrivia(a.text,t.expression.end),o=t.end;Um(a,i,o-i,e.Diagnostics.new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead)}else{var i=t.end-"]".length,o=t.end;Um(a,i,o-i,e.Diagnostics.Expression_expected)}return Og}var s=wu(n)?Kg:kl(n);return r===Og||r===Wg?r:q_(r)&&9!==n.kind?(_(n,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Og):Pa(r,s,t)}function Fu(t,r,n){if(r===Og)return!1;if(!e.isWellKnownSymbolSyntactically(t))return!1;if(0===(512&r.flags))return n&&_(t,e.Diagnostics.A_computed_property_name_of_the_form_0_must_be_of_type_symbol,e.getTextOfNode(t)),!1;var a=t.expression,i=zo(a);if(!i)return!1;var o=$g();return!!o&&(i===o||(n&&_(a,e.Diagnostics.Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object),!1))}function Ou(t){return 181===t.kind?kl(t.template):145!==t.kind&&e.forEach(t.arguments,function(e){kl(e)}),Iy}function Iu(e){return Ou(e),Ry}function Ru(t,r){var n,a,i,o,s=0,c=-1;e.Debug.assert(!r.length);for(var u=0,_=t;u<_.length;u++){var l=_[u],d=l.declaration&&fe(l.declaration),p=l.declaration&&l.declaration.parent;a&&d!==a?(i=s=r.length,n=p):n&&p===n?i++:(n=p,i=s),a=d,l.hasLiteralTypes?(c++,o=c,s++):o=i,r.splice(o,0,l)}}function Lu(e){for(var t=0;t<e.length;t++){var r=e[t];if(r&&196===r.kind)return t}return-1}function Mu(t,r,n,a){void 0===a&&(a=!1);var i,o,s,c,u=-1;if(181===t.kind){var _=t;if(i=r.length,o=void 0,194===_.template.kind){var l=_.template,d=e.lastOrUndefined(l.templateSpans);e.Debug.assert(void 0!==d),s=e.nodeIsMissing(d.literal)||!!d.literal.isUnterminated}else{var p=_.template;e.Debug.assert(12===p.kind),s=!!p.isUnterminated}}else if(145===t.kind)c=!0,o=void 0,i=qu(t,void 0,n);else{var f=t;if(!f.arguments)return e.Debug.assert(180===f.kind),0===n.minArgumentCount;i=a?r.length+1:r.length,s=f.arguments.end===f.end,o=f.typeArguments,u=Lu(r)}var m=!o||n.typeParameters&&o.length===n.typeParameters.length;if(!m)return!1;if(u>=0)return Qi(n,u);if(!n.hasRestParameter&&i>n.parameters.length)return!1;var g=i>=n.minArgumentCount;return s||g}function Bu(e){if(32768&e.flags){var t=Br(e);if(1===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.properties.length&&!t.stringIndexInfo&&!t.numberIndexInfo)return t.callSignatures[0]}}function Ku(e,t,r){var n=To(e,!0);return Eo(t,e,function(e,t){Oo(n,gi(e,r),t)}),yn(e,Jo(n))}function Ju(e,t,r,n,a){for(var i=t.typeParameters,o=ni(a),s=0;s<i.length;s++)a.inferences[s].isFixed||(a.inferredTypes[s]=void 0);void 0===a.failedTypeParameterIndex||a.inferences[a.failedTypeParameterIndex].isFixed||(a.failedTypeParameterIndex=void 0);
var c=fn(t);if(c){var u=Vu(e),_=u?kl(u):Ug;Oo(a,_,c)}for(var l=qu(e,r,t),s=0;s<l;s++){var d=Yu(e,r,s);if(void 0===d||198!==d.kind){var p=y_(t,s),f=Qu(e,s);if(void 0===f){var m=n&&void 0!==n[s]?ai:o;f=ll(d,p,m)}Oo(a,f,p)}}if(n)for(var s=0;s<l;s++)if(n[s]===!1){var d=r[s],p=y_(t,s);Oo(a,ll(d,p,o),p)}Jo(a)}function zu(t,r,n,a,i){for(var o,s=t.typeParameters,c=!0,u=0;u<s.length;u++)if(c){var _=Tn(s[u]);if(_){var l=void 0,d=e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1;a&&i&&(l=e.chainDiagnosticMessages(l,d),d=i),o||(o=ti(s,n));var p=n[u];c=Fi(p,fr(gi(_,o),p),a?r[u]:void 0,d,l)}}return c}function ju(t,r,n,a,i,o){var s=fn(n);if(s&&s!==Ug&&180!==t.kind){var c=Vu(t),u=c?kl(c):Ug,_=o?c||t:void 0,l=e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!Vi(u,fn(n),a,_,l))return!1}for(var d=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,p=qu(t,r,n),f=0;f<p;f++){var m=Yu(t,r,f);if(void 0===m||198!==m.kind){var g=y_(n,f),y=Qu(t,f);void 0===y&&(y=ll(m,g,i&&i[f]?ai:void 0));var _=o?Zu(t,f,m):void 0;if(!Vi(y,g,a,_,d))return!1}}return!0}function Vu(e){if(179===e.kind){var t=e.expression;if(177===t.kind)return t.expression;if(178===t.kind)return t.expression}}function Uu(t){var r;if(181===t.kind){var n=t.template;r=[void 0],194===n.kind&&e.forEach(n.templateSpans,function(e){r.push(e.expression)})}else{if(145===t.kind)return;r=t.arguments||_g}return r}function qu(e,t,r){if(145!==e.kind)return t.length;switch(e.parent.kind){case 226:case 197:return 1;case 147:return 2;case 149:case 151:case 152:return 0===pg?2:r.parameters.length>=3?3:2;case 144:return 3}}function Wu(t){if(226===t.kind){var r=fe(t);return Pt(r)}if(144===t.kind&&(t=t.parent,150===t.kind)){var r=fe(t);return Pt(r)}return 147===t.kind||149===t.kind||151===t.kind||152===t.kind?vf(t):(e.Debug.fail("Unsupported decorator target."),Og)}function Hu(t){if(226===t.kind)return e.Debug.fail("Class decorators should not have a second synthetic argument."),Og;if(144===t.kind&&(t=t.parent,150===t.kind))return Pg;if(147===t.kind||149===t.kind||151===t.kind||152===t.kind){var r=t;switch(r.name.kind){case 70:case 8:case 9:return za(32,r.name.text);case 142:var n=Xc(r.name);return U_(n,512)?n:Bg;default:return e.Debug.fail("Unsupported property name."),Og}}return e.Debug.fail("Unsupported decorator target."),Og}function Gu(t){if(226===t.kind)return e.Debug.fail("Class decorators should not have a third synthetic argument."),Og;if(144===t.kind)return Kg;if(147===t.kind)return e.Debug.fail("Property decorators should not have a third synthetic argument."),Og;if(149===t.kind||151===t.kind||152===t.kind){var r=ff(t);return Qn(r)}return e.Debug.fail("Unsupported decorator target."),Og}function Xu(t,r){return 0===r?Wu(t.parent):1===r?Hu(t.parent):2===r?Gu(t.parent):(e.Debug.fail("Decorators should not have a fourth synthetic argument."),Og)}function Qu(e,t){return 145===e.kind?Xu(e,t):0===t&&181===e.kind?py():void 0}function Yu(e,t,r){if(145!==e.kind&&(0!==r||181!==e.kind))return t[r]}function Zu(e,t,r){return 145===e.kind?e.expression:0===t&&181===e.kind?e.template:r}function $u(t,r,n,a){function o(r,n,i,o){var s;s=e.chainDiagnosticMessages(s,r,n,i,o),a&&(s=e.chainDiagnosticMessages(s,a)),iv.add(e.createDiagnosticForNodeFromMessageChain(t,s))}function s(r,n,a){void 0===a&&(a=!1);for(var i=0,o=r;i<o.length;i++){var s=o[i];if(Mu(t,p,s,a)){for(var u=void 0,_=void 0,l=s.typeParameters?To(s,!1):void 0;;){if(u=s,u.typeParameters){var f=void 0;if(c?(f=e.map(c,Ha),_=zu(u,c,f,!1)):(Ju(t,u,p,d,l),_=void 0===l.failedTypeParameterIndex,f=l.inferredTypes),!_)break;u=yn(u,f)}if(!ju(t,p,u,n,d,!1))break;var v=d?e.indexOf(d,!0):-1;if(v<0)return u;d[v]=!1}if(s.typeParameters){var h=u;_?m=h:(g=s,c||(y=l))}else e.Debug.assert(s===u),m=s}}}var c,u=181===t.kind,_=145===t.kind;u||_||(c=t.typeArguments,96!==t.expression.kind&&e.forEach(c,Up));var l=n||[];if(Ru(r,l),!l.length)return o(e.Diagnostics.Supplied_parameters_do_not_match_any_signature_of_call_target),Iu(t);var d,p=Uu(t);if(!_)for(var f=u?1:0;f<p.length;f++)hi(p[f])&&(d||(d=new Array(p.length)),d[f]=!0);var m,g,y,v,h=n&&179===t.kind&&t.arguments.hasTrailingComma;if(l.length>1&&(v=s(l,gv,h)),v||(m=void 0,g=void 0,y=void 0,v=s(l,yv,h)),v)return v;if(m)ju(t,p,m,yv,void 0,!0);else if(g)if(u||_||!c){e.Debug.assert(y.failedTypeParameterIndex>=0);var b=g.typeParameters[y.failedTypeParameterIndex],k=Mo(y,y.failedTypeParameterIndex),x=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly,ze(b));a&&(x=e.chainDiagnosticMessages(x,a)),to(k,t.expression||t.tag,x)}else{var D=t.typeArguments;zu(g,D,e.map(D,Ha),!0,a)}else o(e.Diagnostics.Supplied_parameters_do_not_match_any_signature_of_call_target);if(!i)for(var S=0,C=l;S<C.length;S++){var E=C[S];if(Mu(t,p,E))return E.typeParameters&&c&&(E=yn(E,e.map(c,Ha))),E}return Iu(t)}function e_(t,r){if(96===t.expression.kind){var n=dc(t.expression);if(n!==Og){var a=e.getClassExtendsHeritageClauseElement(e.getContainingClass(t));if(a){var i=jt(n,a.typeArguments);return $u(t,i,r)}}return Ou(t)}var o=ku(t.expression);if(o===Wg)return My;var s=Ur(o);if(s===Og)return Iu(t);var c=Qr(s,0),u=Qr(s,1);return t_(o,s,c.length,u.length)?(o!==Og&&t.typeArguments&&_(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Ou(t)):c.length?$u(t,c,r):(u.length?_(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,ze(o)):_(t,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,ze(s)),Iu(t))}function t_(e,t,r,n){return!!at(e)||(!!(at(t)&&16384&e.flags)||!r&&!n&&(!(65536&e.flags)&&Ti(e,ny)))}function r_(t,r){if(t.arguments&&pg<1){var n=Lu(t.arguments);n>=0&&_(t.arguments[n],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var a=ku(t.expression);if(a===Wg)return My;if(a=Ur(a),a===Og)return Iu(t);var i=a.symbol&&hp(a.symbol);if(i&&128&e.getModifierFlags(i))return _(t,e.Diagnostics.Cannot_create_an_instance_of_the_abstract_class_0,e.declarationNameToString(i.name)),Iu(t);if(at(a))return t.typeArguments&&_(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Ou(t);var o=Qr(a,1);if(o.length)return n_(t,o[0])?$u(t,o,r):Iu(t);var s=Qr(a,0);if(s.length){var c=$u(t,s,r);return mn(c)!==Ug&&_(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),fn(c)===Ug&&_(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void),c}return _(t,e.Diagnostics.Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature),Iu(t)}function n_(t,r){if(!r||!r.declaration)return!0;var n=r.declaration,a=e.getModifierFlags(n);if(!(24&a))return!0;var i=hp(n.parent.symbol),o=ar(n.parent.symbol);if(!sf(t,i)){var s=e.getContainingClass(t);if(s)for(var c=ff(s),u=Ut(c);u.length;){var l=u[0];if(16&a&&l.symbol===n.parent.symbol)return!0;u=Ut(l)}return 8&a&&_(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,ze(o)),16&a&&_(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,ze(o)),!1}return!0}function a_(t,r){var n=kl(t.tag),a=Ur(n);if(a===Og)return Iu(t);var i=Qr(a,0),o=Qr(a,1);return t_(n,a,i.length,o.length)?Ou(t):i.length?$u(t,i,r):(_(t,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,ze(a)),Iu(t))}function i_(t){switch(t.parent.kind){case 226:case 197:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 144:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 147:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 149:case 151:case 152:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression}}function o_(t,r){var n=kl(t.expression),a=Ur(n);if(a===Og)return Iu(t);var i=Qr(a,0),o=Qr(a,1);if(t_(n,a,i.length,o.length))return Ou(t);var s=i_(t);if(!i.length){var c=void 0;return c=e.chainDiagnosticMessages(c,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,ze(a)),c=e.chainDiagnosticMessages(c,s),iv.add(e.createDiagnosticForNodeFromMessageChain(t,c)),Iu(t)}return $u(t,i,r,s)}function s_(t,r){switch(t.kind){case 179:return e_(t,r);case 180:return r_(t,r);case 181:return a_(t,r);case 145:return o_(t,r)}e.Debug.fail("Branch in 'resolveSignature' should be unreachable.")}function c_(e,t){var r=b(e),n=r.resolvedSignature;if(n&&n!==Ly&&!t)return n;r.resolvedSignature=Ly;var a=s_(e,t);return r.resolvedSignature=Jy===zy?a:n,a}function u_(e){return b(e).resolvedSignature===Ly?Ly:c_(e)}function __(e){var t=h(e);return t.inferredClassType||(t.inferredClassType=Ee(e,e.members,_g,_g,void 0,void 0)),t.inferredClassType}function l_(t){ym(t,t.typeArguments)||hm(t,t.arguments);var r=c_(t);if(96===t.expression.kind)return Ug;if(180===t.kind){var n=r.declaration;if(n&&150!==n.kind&&154!==n.kind&&159!==n.kind&&!e.isJSDocConstructSignature(n)){var a=70===t.expression.kind?zo(t.expression):kl(t.expression).symbol;return a&&a.members&&(16&a.flags||e.isDeclarationOfFunctionExpression(a))?__(a):(dg.noImplicitAny&&_(t,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Pg)}}return e.isInJavaScriptFile(t)&&d_(t)?pn(t.arguments[0]):mn(r)}function d_(t){if(!e.isRequireCall(t,!0))return!1;var r=E(t.expression,t.expression.text,107455,void 0,void 0);if(!r)return!0;if(8388608&r.flags)return!1;var n=16&r.flags?225:3&r.flags?223:0;if(0!==n){var a=e.getDeclarationOfKind(r,n);return e.isInAmbientContext(a)}return!1}function p_(e){return mn(c_(e))}function f_(t){var r=ho(so(kl(t.expression)));Up(t.type);var n=Ha(t.type);if(i&&n!==Og){var a=xo(r);Ai(n,a)||Oi(r,n,t,e.Diagnostics.Type_0_cannot_be_converted_to_type_1)}return n}function m_(e){return mo(kl(e.expression))}function g_(e){var t=Pt(e);if(yg){var r=e.valueDeclaration;if(r&&r.initializer)return po(t,2048)}return t}function y_(e,t){return e.hasRestParameter?t<e.parameters.length-1?g_(e.parameters[t]):gn(e):t<e.parameters.length?g_(e.parameters[t]):Pg}function v_(t,r,n){var a=t.parameters.length-(t.hasRestParameter?1:0);if(Jc(n))for(var i=0;i<a;i++){var o=t.parameters[i].valueDeclaration;o.type&&Oo(n.context,Ha(o.type),y_(r,i))}if(r.thisParameter){var s=t.thisParameter;(!s||s.valueDeclaration&&!s.valueDeclaration.type)&&(s||(t.thisParameter=yo(r.thisParameter,void 0)),b_(t.thisParameter,Pt(r.thisParameter),n))}for(var i=0;i<a;i++){var s=t.parameters[i];if(!s.valueDeclaration.type){var c=y_(r,i);b_(s,c,n)}}if(t.hasRestParameter&&Qi(r,t.parameters.length-1)){var s=e.lastOrUndefined(t.parameters);if(!s.valueDeclaration.type){var c=Pt(e.lastOrUndefined(r.parameters));b_(s,c,n)}}}function h_(t){if(e.isBindingPattern(t.name))for(var r=0,n=t.name.elements;r<n.length;r++){var a=n[r];e.isOmittedExpression(a)||(70===a.name.kind&&(h(fe(a)).type=ut(a)),h_(a))}}function b_(e,t,r){var n=h(e);n.type?Jc(r)&&Oo(r.context,n.type,gi(t,r)):(n.type=gi(t,r),n.type!==Hg||172!==e.valueDeclaration.name.kind&&173!==e.valueDeclaration.name.kind||(n.type=vt(e.valueDeclaration.name)),h_(e.valueDeclaration))}function k_(t){var r=e.getJSDocReturnTag(t);if(r&&r.typeExpression)return Ha(r.typeExpression.type)}function x_(e){var t=Dy();return t!==Qg?(e=nd(e),Fn(t,[e])):Hg}function D_(t,r){var n=x_(r);return n===Hg?(_(t,e.Diagnostics.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Og):n}function S_(t,r){var n=Mc(t);if(!t.body)return Og;var a,i=e.isAsyncFunctionLike(t);if(204!==t.body.kind)a=dl(t.body,r),i&&(a=ad(a,t,e.Diagnostics.Return_expression_in_async_function_does_not_have_a_valid_callable_then_member));else{var o=void 0,s=!!t.asteriskToken;if(s){if(o=C_(t,r),0===o.length){var c=$n(Pg);return dg.noImplicitAny&&_(t.asteriskToken,e.Diagnostics.Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type,ze(c)),c}}else{if(o=N_(t,r),!o)return i?D_(t,qg):qg;if(0===o.length)return i?D_(t,Ug):Ug}a=ma(o,!0),s&&(a=$n(a))}n||Co(t,a),!io(a)||n&&ml(n===_n(t)?a:mn(n))||(a=co(a));var u=xo(a);return i?D_(t,u):u}function C_(t,r){var n=[];return e.forEachYieldExpression(t.body,function(t){var a=t.expression;if(a){var i=dl(a,r);t.asteriskToken&&(i=Xd(i,t.expression)),e.contains(n,i)||n.push(i)}}),n}function E_(e){if(!e.possiblyExhaustive)return!1;var t=bl(e.expression);if(!oo(t))return!1;var r=Ds(e);return!!r.length&&Ss(As(t,Ja),r)}function T_(t){if(!(128&t.flags))return!1;var r=e.lastOrUndefined(t.body.statements);return!r||218!==r.kind||!E_(r)}function N_(t,r){var n=e.isAsyncFunctionLike(t),a=[],i=T_(t),o=!1;if(e.forEachReturnStatement(t.body,function(s){var c=s.expression;if(c){var u=dl(c,r);n&&(u=ad(u,t,e.Diagnostics.Return_expression_in_async_function_does_not_have_a_valid_callable_then_member)),8192&u.flags?o=!0:e.contains(a,u)||a.push(u)}else i=!0}),0!==a.length||i||!o&&184!==t.kind&&185!==t.kind)return yg&&a.length&&i&&(e.contains(a,Ig)||a.push(Ig)),a}function A_(t,r){if(i&&(!r||!V_(r,1025))&&!e.nodeIsMissing(t.body)&&204===t.body.kind&&T_(t)){var n=256&t.flags;if(r&&8192&r.flags)_(t.type,e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(r&&!n)_(t.type,e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(r&&yg&&!Ti(Ig,r))_(t.type,e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(dg.noImplicitReturns){if(!r){if(!n)return;var a=mn(_n(t));if(rp(t,a))return}_(t.type||t,e.Diagnostics.Not_all_code_paths_return_a_value)}}}function w_(t,r){e.Debug.assert(149!==t.kind||e.isObjectLiteralMethod(t));var n=dm(t);if(n||184!==t.kind||Sm(t),r===ai&&hi(t))return qp(t),Yg;var a=b(t),o=Pt(t.symbol),s=hi(t),c=s&&Jc(r);if(c||!(1024&a.flags)){var u=Kc(t),_=!!(1024&a.flags);if(c||!_){if(a.flags|=1024,u){var l=Qr(o,0)[0];if(s&&v_(l,u,r||ai),c||!t.type&&!l.resolvedReturnType){var d=S_(t,r);l.resolvedReturnType||(l.resolvedReturnType=d)}}_||(wl(t),qp(t))}}return i&&149!==t.kind&&(Td(t,t.name),Cd(t,t.name)),o}function P_(t){e.Debug.assert(149!==t.kind||e.isObjectLiteralMethod(t));var r=e.isAsyncFunctionLike(t),n=t.type&&(r?id(t):Ha(t.type));if(t.asteriskToken||A_(t,n),t.body){if(t.type||mn(_n(t)),204===t.body.kind)Up(t.body);else{var a=kl(t.body);if(n)if(r){var i=ad(a,t.body,e.Diagnostics.Expression_body_for_async_arrow_function_does_not_have_a_valid_callable_then_member);Fi(i,n,t.body)}else Fi(a,n,t.body)}dd(t)}}function F_(e,t,r){return!!Wc(t,340)||(_(e,r),!1)}function O_(e){return e.isReadonly||4&e.flags&&0!==(64&vu(e))||3&e.flags&&0!==(2&hu(e))||98304&e.flags&&!(65536&e.flags)||0!==(8&e.flags)}function I_(t,r){if(O_(r)){if(4&r.flags&&(177===t.kind||178===t.kind)&&98===t.expression.kind){var n=e.getContainingFunction(t);return!n||150!==n.kind||!(n.parent===r.valueDeclaration.parent||n===r.valueDeclaration.parent)}return!0}return!1}function R_(t){if(177===t.kind||178===t.kind){var r=e.skipParentheses(t.expression);if(70===r.kind){var n=b(r).resolvedSymbol;if(8388608&n.flags){var a=R(n);return a&&237===a.kind}}}return!1}function L_(t,r){var n=e.skipParentheses(t);return 70===n.kind||177===n.kind||178===n.kind||(_(t,r),!1)}function M_(e){return kl(e.expression),jg}function B_(e){return kl(e.expression),Bg}function K_(e){return kl(e.expression),Rg}function J_(t){i&&(16384&t.flags||Vm(t,e.Diagnostics.await_expression_is_only_allowed_within_an_async_function),vc(t)&&_(t,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer));var r=kl(t.expression);return ad(r,t)}function z_(t){var r=kl(t.operand);if(r===Wg)return Wg;if(37===t.operator&&8===t.operand.kind)return Ka(za(64,""+-t.operand.text));switch(t.operator){case 36:case 37:case 51:return V_(r,512)&&_(t.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(t.operator)),Kg;case 50:var n=3145728&rs(r);return 1048576===n?zg:2097152===n?Jg:jg;case 42:case 43:var a=F_(t.operand,mo(r),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type);return a&&L_(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access),Kg}return Og}function j_(t){var r=kl(t.operand);if(r===Wg)return Wg;var n=F_(t.operand,mo(r),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type);return n&&L_(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access),Kg}function V_(e,t){if(e.flags&t)return!0;if(196608&e.flags)for(var r=e.types,n=0,a=r;n<a.length;n++){var i=a[n];if(V_(i,t))return!0}return!1}function U_(e,t){if(e.flags&t)return!0;if(65536&e.flags){for(var r=e.types,n=0,a=r;n<a.length;n++){var i=a[n];if(!U_(i,t))return!1}return!0}if(131072&e.flags)for(var r=e.types,o=0,s=r;o<s.length;o++){var i=s[o];if(U_(i,t))return!0}return!1}function q_(e){return 16&k(e)&&e.symbol&&W_(e.symbol)}function W_(e){return 0!==(128&e.flags)}function H_(t,r,n,a){return n===Wg||a===Wg?Wg:(U_(n,8190)&&_(t,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),at(a)||Ei(a,ny)||_(r,e.Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),jg)}function G_(t,r,n,a){return n===Wg||a===Wg?Wg:(Ai(n,Bg)||U_(n,852)||_(t,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol),Wc(a,573440)||_(r,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),jg)}function X_(e,t){for(var r=e.properties,n=0,a=r;n<a.length;n++){var i=a[n];Q_(t,i,r)}return t}function Q_(t,r,n){if(257===r.kind||258===r.kind){var a=r.name;if(142===a.kind&&Xc(a),st(a))return;var i=e.getTextOfPropertyName(a),o=at(t)?t:nt(t,i)||Gc(i)&&en(t,1)||en(t,0);if(o)return 258===r.kind?$_(r,o):$_(r.initializer,o);_(a,e.Diagnostics.Type_0_has_no_property_1_and_no_string_index_signature,ze(t),e.declarationNameToString(a))}else{if(259===r.kind){pg<5&&Zf(r,4);var s=[];if(n)for(var c=0;c<n.length-1;c++)s.push(n[c].name);var o=ct(t,s,t.symbol);return $_(r.expression,o)}_(r,e.Diagnostics.Property_assignment_expected)}}function Y_(e,t,r){for(var n=Gd(t,e,!1)||Og,a=e.elements,i=0;i<a.length;i++)Z_(e,t,i,n,r);return t}function Z_(t,r,n,a,i){var o=t.elements,s=o[n];if(198!==s.kind)if(196!==s.kind){var c=""+n,u=at(r)?r:ao(r)?nt(r,c):a;if(u)return $_(s,u,i);kl(s),uo(r)?_(s,e.Diagnostics.Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2,ze(r),In(r),o.length):_(s,e.Diagnostics.Type_0_has_no_property_1,ze(r),c)}else if(n<o.length-1)_(s,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{var l=s.expression;if(192!==l.kind||57!==l.operatorToken.kind)return $_(l,ea(a),i);_(l.operatorToken,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}function $_(e,t,r){var n;if(258===e.kind){var a=e;a.objectAssignmentInitializer&&(!yg||2048&lo(kl(a.objectAssignmentInitializer))||(t=ns(t,131072)),il(a.name,a.equalsToken,a.objectAssignmentInitializer,r)),n=e.name}else n=e;return 192===n.kind&&57===n.operatorToken.kind&&(al(n,r),n=n.left),176===n.kind?X_(n,t):175===n.kind?Y_(n,t,r):el(n,t,r)}function el(t,r,n){var a=kl(t,n),i=259===t.parent.kind?e.Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access;return L_(t,i)&&Fi(r,a,t,void 0),r}function tl(t){switch(t=e.skipParentheses(t),t.kind){case 70:case 9:case 11:case 181:case 194:case 12:case 8:case 100:case 85:case 94:case 137:case 184:case 197:case 185:case 175:case 176:case 187:case 201:case 247:case 246:return!0;case 193:return tl(t.whenTrue)&&tl(t.whenFalse);case 192:return!e.isAssignmentOperator(t.operatorToken.kind)&&(tl(t.left)&&tl(t.right));case 190:case 191:switch(t.operator){case 50:case 36:case 37:case 51:return!0}return!1;case 188:case 182:case 200:default:return!1}}function rl(e,t){return 0!==(6144&t.flags)||Ai(e,t)}function nl(e,t){var r=Ti(e,t),n=Ti(t,e);return n&&!r?e:r&&!n?t:ma([e,t],!0)}function al(e,t){return il(e.left,e.operatorToken,e.right,t,e)}function il(t,r,n,a,o){function s(r){var a=V_(p,512)?t:V_(f,512)?n:void 0;return!a||(_(a,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(r)),!1)}function c(e){switch(e){case 48:case 68:return 53;case 49:case 69:return 34;case 47:case 67:return 52;default:return}}function u(r){i&&d>=57&&d<=69&&L_(t,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access)&&Fi(r,p,t,void 0)}function l(){_(o||r,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,e.tokenToString(r.kind),ze(p),ze(f))}var d=r.kind;if(57===d&&(176===t.kind||175===t.kind))return $_(t,kl(n,a),a);var p=kl(t,a),f=kl(n,a);switch(d){case 38:case 39:case 60:case 61:case 40:case 62:case 41:case 63:case 37:case 59:case 44:case 64:case 45:case 65:case 46:case 66:case 48:case 68:case 49:case 69:case 47:case 67:if(p===Wg||f===Wg)return Wg;6144&p.flags&&(p=f),6144&f.flags&&(f=p),p=mo(p),f=mo(f);var m=void 0;if(136&p.flags&&136&f.flags&&void 0!==(m=c(r.kind)))_(o||r,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(r.kind),e.tokenToString(m));else{var g=F_(t,p,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type),y=F_(n,f,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type);g&&y&&u(Kg)}return Kg;case 36:case 58:if(p===Wg||f===Wg)return Wg;6144&p.flags&&(p=f),6144&f.flags&&(f=p),p=mo(p),f=mo(f);var v=void 0;if(U_(p,340)&&U_(f,340))v=Kg;else if(U_(p,262178)||U_(f,262178)?v=Bg:(at(p)||at(f))&&(v=p===Og||f===Og?Og:Pg),v&&!s(d))return v;return v?(58===d&&u(v),v):(l(),Pg);case 26:case 28:case 29:case 30:return s(d)&&(p=so(p),f=so(f),Ai(p,f)||Ai(f,p)||l()),jg;case 31:case 32:case 33:case 34:var h=oo(p),b=oo(f);return h&&b||(p=h?so(p):p,f=b?so(f):f),rl(p,f)||rl(f,p)||l(),jg;case 92:return H_(t,n,p,f);case 91:return G_(t,n,p,f);case 52:return 1048576&rs(p)?po(f,lo(yg?p:so(f))):p;case 53:return 2097152&rs(p)?nl(fo(p),f):p;case 57:return u(f),ho(f);case 25:return!dg.allowUnreachableCode&&tl(t)&&_(t,e.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects),f}}function ol(t){for(var r=t,n=t.parent;n;){if(e.isFunctionLike(n)&&r===n.body)return!1;if(e.isClassLike(r))return!0;r=n,n=n.parent}return!1}function sl(t){if(i&&(4096&t.flags&&!ol(t)||Vm(t,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),vc(t)&&_(t,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer)),t.expression){var r=e.getContainingFunction(t);if(r&&r.asteriskToken){var n=dl(t.expression,void 0),a=void 0,o=!!t.asteriskToken;if(o&&(a=Xd(n,t.expression)),r.type){var s=Zd(Ha(r.type))||Pg;o?Fi(a,s,t.expression,void 0):Fi(n,s,t.expression,void 0)}}}return Pg}function cl(e,t){kl(e.condition);var r=kl(e.whenTrue,t),n=kl(e.whenFalse,t);return nl(r,n)}function ul(e){switch(8===e.kind&&$m(e),e.kind){case 9:return Ka(za(32,e.text));case 8:return Ka(za(64,e.text));case 100:return Jg;case 85:return zg}}function _l(t){return e.forEach(t.templateSpans,function(e){kl(e.expression)}),Bg}function ll(e,t,r){var n=e.contextualType;e.contextualType=t;var a=kl(e,r);return e.contextualType=n,a}function dl(e,t){var r=b(e);if(!r.resolvedType){var n=Jy;Jy=zy,r.resolvedType=kl(e,t),Jy=n}return r.resolvedType}function pl(t){return t=e.skipParentheses(t),182===t.kind||200===t.kind}function fl(t){var r=dl(t.initializer);return 2&e.getCombinedNodeFlags(t)||64&e.getCombinedModifierFlags(t)&&!e.isParameterPropertyDeclaration(t)||pl(t.initializer)?r:co(r)}function ml(e){if(e){if(540672&e.flags){var t=Vr(e);if(30&t.flags)return!0;e=t}return V_(e,262624)}return!1}function gl(e,t){var r=kl(e,t);return pl(e)||ml(Oc(e))?r:co(r)}function yl(e,t){return 142===e.name.kind&&Xc(e.name),gl(e.initializer,t)}function vl(e,t){Om(e),142===e.name.kind&&Xc(e.name);var r=w_(e,t);return hl(e,r,t)}function hl(e,t,r){if(Jc(r)){var n=Bu(t);if(n&&n.typeParameters){var a=Fc(e);if(a){var i=Bu(a);if(i&&!i.typeParameters)return bn(Ku(n,i,r))}}}return t}function bl(e){if(179===e.kind&&96!==e.expression.kind){var t=ku(e.expression),r=Bu(t);if(r&&!r.typeParameters)return mn(r)}return kl(e)}function kl(t,r){var n;if(141===t.kind)n=Du(t);else{var a=xl(t,r);n=hl(t,a,r)}if(q_(n)){var i=177===t.parent.kind&&t.parent.expression===t||178===t.parent.kind&&t.parent.expression===t||(70===t.kind||141===t.kind)&&uf(t);i||_(t,e.Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment)}return n}function xl(t,r){switch(t.kind){case 70:return ec(t);case 98:return uc(t);case 96:return dc(t);case 94:return Mg;case 9:case 8:case 100:case 85:return ul(t);case 194:return _l(t);case 12:return Bg;case 11:return uy;case 175:return Vc(t,r);case 176:return Yc(t,r);case 177:return xu(t);case 178:return Pu(t);case 179:case 180:return l_(t);case 181:return p_(t);case 183:return kl(t.expression,r);case 197:return pp(t);case 184:case 185:return w_(t,r);case 187:return B_(t);case 182:case 200:return f_(t);case 201:return m_(t);case 186:return M_(t);case 188:return K_(t);case 189:return J_(t);case 190:return z_(t);case 191:return j_(t);case 192:return al(t,r);case 193:return cl(t,r);case 196:return zc(t,r);case 198:return Rg;case 195:return sl(t);case 252:return gu(t);case 246:return eu(t);case 247:return $c(t);case 248:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return Og}function Dl(t){t.expression&&Vm(t.expression,e.Diagnostics.Type_expected),Up(t.constraint),Tn(rr(fe(t))),i&&_p(t.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function Sl(t){nm(t)||am(t),Od(t);var r=e.getContainingFunction(t);92&e.getModifierFlags(t)&&(r=e.getContainingFunction(t),150===r.kind&&e.nodeIsPresent(r.body)||_(t,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation)),t.questionToken&&e.isBindingPattern(t.name)&&r.body&&_(t,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),"this"===t.name.text&&(0!==e.indexOf(r.parameters,t)&&_(t,e.Diagnostics.A_this_parameter_must_be_the_first_parameter),150!==r.kind&&154!==r.kind&&159!==r.kind||_(t,e.Diagnostics.A_constructor_cannot_have_a_this_parameter)),!t.dotDotDotToken||e.isBindingPattern(t.name)||ro(Pt(t.symbol))||_(t,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function Cl(e){return!(!e.asteriskToken||!e.body)&&(149===e.kind||225===e.kind||184===e.kind)}function El(e,t){if(e)for(var r=0;r<e.length;r++){var n=e[r];if(70===n.name.kind&&n.name.text===t.text)return r}return-1}function Tl(t){var r=Nl(t);if(!r)return void _(t,e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);var n=_n(r).typePredicate;if(n){var a=t.parameterName;if(e.isThisTypePredicate(n))Wa(a);else if(n.parameterIndex>=0)if(r.parameters[n.parameterIndex].dotDotDotToken)_(a,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter);else{var i=e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);Fi(n.type,ff(r.parameters[n.parameterIndex]),t.type,void 0,i)}else if(a){for(var o=!1,s=0,c=r.parameters;s<c.length;s++){var u=c[s].name;if(e.isBindingPattern(u)&&Al(u,a,n.parameterName)){o=!0;break}}o||_(t.parameterName,e.Diagnostics.Cannot_find_parameter_0,n.parameterName)}}}function Nl(e){switch(e.parent.kind){case 185:case 153:case 225:case 184:case 158:case 149:case 148:var t=e.parent;if(e===t.type)return t}}function Al(t,r,n){for(var a=0,i=t.elements;a<i.length;a++){var o=i[a];if(!e.isOmittedExpression(o)){var s=o.name;if(70===s.kind&&s.text===n)return _(r,e.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,n),!0;if((173===s.kind||172===s.kind)&&Al(s,r,n))return!0}}}function wl(t){if(155===t.kind?mm(t):158!==t.kind&&225!==t.kind&&159!==t.kind&&153!==t.kind&&150!==t.kind&&154!==t.kind||dm(t),e.isAsyncFunctionLike(t)&&pg<4&&(Zf(t,64),pg<2&&Zf(t,128)),lp(t.typeParameters),e.forEach(t.parameters,Sl),t.type&&Up(t.type),i){if(Dd(t),dg.noImplicitAny&&!t.type)switch(t.kind){case 154:_(t,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 153:_(t,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(t.type)if(pg>=2&&Cl(t)){var r=Ha(t.type);if(r===Ug)_(t.type,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var n=Zd(r)||Pg,a=$n(n);Fi(a,r,t.type)}}else e.isAsyncFunctionLike(t)&&id(t);mg&&!t.body&&bd(t)}}function Pl(t){function r(t,r,n,a){var i=t[n];i?i&a?_(r,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(r)):t[n]=i|a:t[n]=a}var n;!function(e){e[e.Getter=1]="Getter",e[e.Setter=2]="Setter",e[e.Property=3]="Property"}(n||(n={}));for(var a=e.createMap(),i=e.createMap(),o=0,s=t.members;o<s.length;o++){var c=s[o];if(150===c.kind)for(var u=0,l=c.parameters;u<l.length;u++){var d=l[u];e.isParameterPropertyDeclaration(d)&&r(a,d.name,d.name.text,3)}else{var p=e.forEach(c.modifiers,function(e){return 114===e.kind}),f=p?i:a,m=c.name&&e.getPropertyNameForPropertyNameNode(c.name);if(m)switch(c.kind){case 151:r(f,c.name,m,1);break;case 152:r(f,c.name,m,2);break;case 147:r(f,c.name,m,3)}}}}function Fl(t){for(var r=e.createMap(),n=0,a=t.members;n<a.length;n++){var i=a[n];if(146==i.kind){var o=void 0;switch(i.name.kind){case 9:case 8:case 70:o=i.name.text;break;default:continue}r[o]?(_(i.symbol.valueDeclaration.name,e.Diagnostics.Duplicate_identifier_0,o),_(i.name,e.Diagnostics.Duplicate_identifier_0,o)):r[o]=!0}}}function Ol(t){if(227===t.kind){var r=fe(t);if(r.declarations.length>0&&r.declarations[0]!==t)return}var n=kn(fe(t));if(n)for(var a=!1,i=!1,o=0,s=n.declarations;o<s.length;o++){var c=s[o],u=c;if(1===u.parameters.length&&u.parameters[0].type)switch(u.parameters[0].type.kind){case 134:i?_(u,e.Diagnostics.Duplicate_string_index_signature):i=!0;break;case 132:a?_(u,e.Diagnostics.Duplicate_number_index_signature):a=!0}}}function Il(e){nm(e)||am(e)||Gm(e)||Dm(e.name),Od(e)}function Rl(t){Om(t)||Dm(t.name),ld(t),128&e.getModifierFlags(t)&&t.body&&_(t,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(t.name))}function Ll(t){function r(t){return!(147!==t.kind||32&e.getModifierFlags(t)||!t.initializer)}wl(t),Wm(t)||Hm(t),Up(t.body),dd(t);var n=fe(t),a=e.getDeclarationOfKind(n,t.kind);if(t===a&&Zl(n),!e.nodeIsMissing(t.body)&&i){var o=t.parent;if(e.getClassExtendsHeritageClauseElement(o)){ac(t.parent,o);var s=sc(o),c=oc(t);if(c){s&&_(c,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null);var u=e.forEach(t.parent.members,r)||e.forEach(t.parameters,function(t){return 92&e.getModifierFlags(t)});if(u){for(var l=t.body.statements,d=void 0,p=0,f=l;p<f.length;p++){var m=f[p];if(207===m.kind&&e.isSuperCall(m.expression)){d=m;break}if(!e.isPrologueDirective(m))break}d||_(t,e.Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties)}}else s||_(t,e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}}function Ml(t){if(i){if(dm(t)||Am(t)||Dm(t.name),ud(t),wl(t),151===t.kind&&!e.isInAmbientContext(t)&&e.nodeIsPresent(t.body)&&128&t.flags&&(256&t.flags||_(t.name,e.Diagnostics.A_get_accessor_must_return_a_value)),142===t.name.kind&&Xc(t.name),
!e.hasDynamicName(t)){var r=151===t.kind?152:151,n=e.getDeclarationOfKind(t.symbol,r);n&&((28&e.getModifierFlags(t))!==(28&e.getModifierFlags(n))&&_(t.name,e.Diagnostics.Getter_and_setter_accessors_do_not_agree_in_visibility),e.hasModifier(t,128)!==e.hasModifier(n,128)&&_(t.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),Bl(t,n,xt,e.Diagnostics.get_and_set_accessor_must_have_the_same_type),Bl(t,n,St,e.Diagnostics.get_and_set_accessor_must_have_the_same_this_type))}var a=Ct(fe(t));151===t.kind&&A_(t,a)}176!==t.parent.kind?(Up(t.body),dd(t)):qp(t)}function Bl(e,t,r,n){var a=r(e),i=r(t);a&&i&&!Di(a,i)&&_(e,n)}function Kl(e){Up(e.body),dd(e)}function Jl(e){ud(e)}function zl(t,r){for(var n,a,i=!0,o=0;o<t.length;o++){var s=Tn(t[o]);if(s){n||(n=e.map(r,Ha),a=ti(t,n));var c=n[o];i=i&&Fi(c,fr(gi(s,a),c),r[o],e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)}}return i}function jl(t){ym(t,t.typeArguments);var r=jn(t);if(r!==Og){if(t.typeArguments&&(e.forEach(t.typeArguments,Up),i)){var n=b(t).resolvedSymbol,a=524288&n.flags?h(n).typeParameters:r.target.localTypeParameters;zl(a,t.typeArguments)}16&r.flags&&!r.memberTypes&&8&b(t).resolvedSymbol.flags&&_(t,e.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,ze(r))}}function Vl(e){Vn(e)}function Ul(t){if(e.forEach(t.members,Up),i){var r=Ia(t);up(r),Ol(t),Fl(t)}}function ql(e){Up(e.elementType)}function Wl(t){var r=um(t.elementTypes);r||0!==t.elementTypes.length||qm(t,e.Diagnostics.A_tuple_type_element_list_cannot_be_empty),e.forEach(t.elementTypes,Up)}function Hl(t){e.forEach(t.types,Up)}function Gl(e){Fa(e)}function Xl(e){Up(e.typeParameter),Up(e.type);var t=Oa(e),r=Or(t),n=540672&r.flags?Vr(r):r;Fi(n,Bg,e.typeParameter.constraint)}function Ql(t){return 8&e.getModifierFlags(t)&&e.isInAmbientContext(t)}function Yl(t,r){var n=e.getCombinedModifierFlags(t);return 227!==t.parent.kind&&226!==t.parent.kind&&197!==t.parent.kind&&e.isInAmbientContext(t)&&(2&n||(n|=1),n|=2),n&r}function Zl(t){function r(e,t){var r=void 0!==t&&t.parent===e[0].parent;return r?t:e[0]}function n(t,n,a,i,o){var s=i^o;if(0!==s){var c=Yl(r(t,n),a);e.forEach(t,function(t){var r=Yl(t,a)^c;1&r?_(t.name,e.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):2&r?_(t.name,e.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):24&r?_(t.name||t,e.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):128&r&&_(t.name,e.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function a(t,n,a,i){if(a!==i){var o=e.hasQuestionToken(r(t,n));e.forEach(t,function(t){var r=e.hasQuestionToken(t)!==o;r&&_(t.name,e.Diagnostics.Overload_signatures_must_all_be_optional_or_required)})}}function o(t){if(!t.name||!e.nodeIsMissing(t.name)){var r=!1,n=e.forEachChild(t.parent,function(e){return r?e:void(r=e===t)});if(n&&n.pos===t.end&&n.kind===t.kind){var a=n.name||n;if(t.name&&n.name&&t.name.text===n.name.text){var i=(149===t.kind||148===t.kind)&&(32&e.getModifierFlags(t))!==(32&e.getModifierFlags(n));if(i){var o=32&e.getModifierFlags(t)?e.Diagnostics.Function_overload_must_be_static:e.Diagnostics.Function_overload_must_not_be_static;_(a,o)}return}if(e.nodeIsPresent(n.body))return void _(a,e.Diagnostics.Function_implementation_name_must_be_0,e.declarationNameToString(t.name))}var s=t.name||t;v?_(s,e.Diagnostics.Constructor_implementation_is_missing):128&e.getModifierFlags(t)?_(s,e.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):_(s,e.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}if(i){for(var s,c,u,l=155,d=0,p=l,f=!1,m=!0,g=!1,y=t.declarations,v=0!==(16384&t.flags),h=!1,b=!1,k=0,x=y;k<x.length;k++){var D=x[k],S=D,C=e.isInAmbientContext(S),E=227===S.parent.kind||161===S.parent.kind||C;if(E&&(u=void 0),225===S.kind||149===S.kind||148===S.kind||150===S.kind){var T=Yl(S,l);d|=T,p&=T,f=f||e.hasQuestionToken(S),m=m&&e.hasQuestionToken(S),e.nodeIsPresent(S.body)&&s?v?b=!0:h=!0:u&&u.parent===S.parent&&u.end!==S.pos&&o(u),e.nodeIsPresent(S.body)?s||(s=S):g=!0,u=S,E||(c=S)}}if(b&&e.forEach(y,function(t){_(t,e.Diagnostics.Multiple_constructor_implementations_are_not_allowed)}),h&&e.forEach(y,function(t){_(t.name,e.Diagnostics.Duplicate_function_implementation)}),!c||c.body||128&e.getModifierFlags(c)||c.questionToken||o(c),g&&(n(y,s,l,d,p),a(y,s,f,m),s))for(var N=dn(t),A=_n(s),w=0,P=N;w<P.length;w++){var F=P[w];if(!Mi(A,F)){_(F.declaration,e.Diagnostics.Overload_signature_is_not_compatible_with_function_implementation);break}}}}function $l(t){function r(t){switch(t.kind){case 227:return 2097152;case 230:return e.isAmbientModule(t)||0!==e.getModuleInstanceState(t)?5242880:4194304;case 226:case 229:return 3145728;case 234:var n=0,a=X(fe(t));return e.forEach(a.declarations,function(e){n|=r(e)}),n;default:return 1048576}}if(i){var n=t.localSymbol;if((n||(n=fe(t),7340032&n.flags))&&e.getDeclarationOfKind(n,t.kind)===t){for(var a=0,o=0,s=0,c=0,u=n.declarations;c<u.length;c++){var l=u[c],d=r(l),p=Yl(l,513);1&p?512&p?s|=d:a|=d:o|=d}var f=a|o,m=a&o,g=s&f;if(m||g)for(var y=0,v=n.declarations;y<v.length;y++){var l=v[y],d=r(l);d&g?_(l.name,e.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,e.declarationNameToString(l.name)):d&m&&_(l.name,e.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,e.declarationNameToString(l.name))}}}}function ed(t,r,n){return t=xo(t),at(t)||it(t)||!Ti(t,Ny())?t:(r&&(n||(n=e.Diagnostics.Operand_for_await_does_not_have_a_valid_callable_then_member),_(r,n)),Og)}function td(t){if(!at(t)){if(4&k(t)&&(t.target===Sy()||t.target===Cy()))return t.typeArguments[0];var r=Ey();if(r!==Hg&&Ti(t,r)){var n=nt(t,"then");if(n&&!at(n)){var a=Qr(n,0);if(0!==a.length){var i=ns(ma(e.map(a,rd)),524288);if(!at(i)){var o=Qr(i,0);if(0!==o.length)return ma(e.map(o,rd),!0)}}}}}}function rd(e){return e.parameters.length>0?y_(e,0):qg}function nd(e){return ad(e,void 0,void 0)}function ad(t,r,n){function a(t){if(65536&t.flags){for(var i=[],o=0,s=t.types;o<s.length;o++){var c=s[o];i.push(a(c))}return ma(i,!0)}var u=td(t);if(void 0===u)return ed(t,r,n);if(t.id===u.id||e.indexOf(av,u.id)>=0)return r&&_(r,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method,Ke(t.symbol)),Og;av.push(t.id);var l=a(u);return av.pop(),l}return a(t)}function id(t){var r=Ha(t.type);if(pg>=2){if(r===Og)return Og;var n=Dy();if(n!==Qg&&n!==Ft(r))return _(t.type,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),Og}else{if(sd(t.type),r===Og)return Og;var a=e.getEntityNameFromTypeNode(t.type);if(void 0===a)return _(t.type,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,ze(r)),Og;var i=ee(a,107455,!0),o=i?Pt(i):Og;if(o===Og)return _(t.type,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)),Og;var s=Ty();if(s===Hg)return _(t.type,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)),Og;if(!Fi(o,s,t.type,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return Og;var c=a&&Fp(a),u=D(t.locals,c.text,107455);if(u)return _(u.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,c.text,e.entityNameToString(a)),Og}return ad(r,t,e.Diagnostics.An_async_function_or_method_must_have_a_valid_awaitable_return_type)}function od(t){var r=c_(t),n=mn(r);if(!(1&n.flags)){var a,i,o=i_(t);switch(t.parent.kind){case 226:var s=fe(t.parent),c=Pt(s);a=ma([c,Ug]);break;case 144:a=Ug,i=e.chainDiagnosticMessages(i,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 147:a=Ug,i=e.chainDiagnosticMessages(i,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 149:case 151:case 152:var u=ff(t.parent),_=Qn(u);a=ma([_,Ug])}Fi(n,a,t,o,i)}}function sd(t){var r=t&&e.getEntityNameFromTypeNode(t),n=r&&Fp(r),a=n&&E(n,n.text,8388608|(70===r.kind?793064:1920),void 0,void 0);a&&8388608&a.flags&&ye(a)&&!Ff(X(a))&&Y(a)}function cd(t){return t.dotDotDotToken?e.getRestParameterElementType(t.type):t.type}function ud(t){if(t.decorators&&e.nodeCanBeDecorated(t)){dg.experimentalDecorators||_(t,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning);var r=t.decorators[0];if(Zf(r,8),144===t.kind&&Zf(r,32),dg.emitDecoratorMetadata)switch(Zf(r,16),t.kind){case 226:var n=e.getFirstConstructorWithBody(t);if(n)for(var a=0,i=n.parameters;a<i.length;a++){var o=i[a];sd(cd(o))}break;case 149:case 151:case 152:for(var s=0,c=t.parameters;s<c.length;s++){var o=c[s];sd(cd(o))}sd(t.type);break;case 147:sd(cd(t));break;case 144:sd(t.type)}e.forEach(t.decorators,od)}}function _d(e){i&&(ld(e)||Sm(e),Td(e,e.name),Cd(e,e.name),Nd(e,e.name),Ad(e,e.name))}function ld(t){ud(t),wl(t);var r=e.isAsyncFunctionLike(t);if(t.name&&142===t.name.kind&&Xc(t.name),!e.hasDynamicName(t)){var n=fe(t),a=t.localSymbol||n,o=e.forEach(a.declarations,function(r){return r.kind!==t.kind||e.isSourceFileJavaScript(e.getSourceFileOfNode(r))?void 0:r});t===o&&Zl(a),n.parent&&e.getDeclarationOfKind(n,t.kind)===t&&Zl(n)}if(Up(t.body),!t.asteriskToken){var s=t.type&&(r?id(t):Ha(t.type));A_(t,s)}i&&!t.type&&(dg.noImplicitAny&&e.nodeIsMissing(t.body)&&!Ql(t)&&So(t,Pg),t.asteriskToken&&e.nodeIsPresent(t.body)&&mn(_n(t))),dd(t)}function dd(e){Py&&Py.push(e)}function pd(){if(Py)for(var e=0,t=Py;e<t.length;e++){var r=t[e];switch(r.kind){case 261:case 230:kd(r);break;case 226:case 197:hd(r),bd(r);break;case 227:bd(r);break;case 204:case 232:case 211:case 212:case 213:fd(r);break;case 150:case 184:case 225:case 185:case 149:case 151:case 152:r.body&&fd(r),bd(r);break;case 148:case 153:case 154:case 155:case 158:case 159:bd(r)}}}function fd(t){if(227!==t.parent.kind&&mg&&!e.isInAmbientContext(t)){var r=function(r){var n=t.locals[r];if(!n.isReferenced)if(n.valueDeclaration&&144===e.getRootDeclaration(n.valueDeclaration).kind){var a=e.getRootDeclaration(n.valueDeclaration);!dg.noUnusedParameters||e.isParameterPropertyDeclaration(a)||e.parameterIsThisKeyword(a)||yd(n.valueDeclaration.name)||_(n.valueDeclaration.name,e.Diagnostics._0_is_declared_but_never_used,n.name)}else dg.noUnusedLocals&&e.forEach(n.declarations,function(e){return gd(e.name||e,n.name)})};for(var n in t.locals)r(n)}}function md(t){if(e.isBindingElement(t)&&e.isObjectBindingPattern(t.parent)){var r=e.lastOrUndefined(t.parent.elements);return r!==t&&!!r.dotDotDotToken}return!1}function gd(t,r){if(vd(t)){var n=e.getRootDeclaration(t.parent);if(223===n.kind&&(212===n.parent.parent.kind||213===n.parent.parent.kind))return}md(70===t.kind?t.parent:t)||_(t,e.Diagnostics._0_is_declared_but_never_used,r)}function yd(e){return e&&vd(e)}function vd(e){return 70===e.kind&&95===e.text.charCodeAt(0)}function hd(t){if(dg.noUnusedLocals&&!e.isInAmbientContext(t)&&t.members)for(var r=0,n=t.members;r<n.length;r++){var a=n[r];if(149===a.kind||147===a.kind)!a.symbol.isReferenced&&8&e.getModifierFlags(a)&&_(a.name,e.Diagnostics._0_is_declared_but_never_used,a.symbol.name);else if(150===a.kind)for(var i=0,o=a.parameters;i<o.length;i++){var s=o[i];!s.symbol.isReferenced&&8&e.getModifierFlags(s)&&_(s.name,e.Diagnostics.Property_0_is_declared_but_never_used,s.symbol.name)}}}function bd(t){if(dg.noUnusedLocals&&!e.isInAmbientContext(t)&&t.typeParameters){var r=fe(t),n=r&&r.declarations&&e.lastOrUndefined(r.declarations);if(n!==t)return;for(var a=0,i=t.typeParameters;a<i.length;a++){var o=i[a];pe(o.symbol).isReferenced||_(o.name,e.Diagnostics._0_is_declared_but_never_used,o.symbol.name)}}}function kd(t){if(dg.noUnusedLocals&&!e.isInAmbientContext(t))for(var r in t.locals){var n=t.locals[r];if(!n.isReferenced&&!n.exportSymbol)for(var a=0,i=n.declarations;a<i.length;a++){var o=i[a];e.isAmbientModule(o)||gd(o.name,n.name)}}}function xd(t){204===t.kind&&Zm(t),e.forEach(t.statements,Up),t.locals&&dd(t)}function Dd(t){!e.hasDeclaredRestParameter(t)||e.isInAmbientContext(t)||e.nodeIsMissing(t.body)||e.forEach(t.parameters,function(t){t.name&&!e.isBindingPattern(t.name)&&t.name.text===bg.name&&_(t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function Sd(t,r,n){if(!r||r.text!==n)return!1;if(147===t.kind||146===t.kind||149===t.kind||148===t.kind||151===t.kind||152===t.kind)return!1;if(e.isInAmbientContext(t))return!1;var a=e.getRootDeclaration(t);return 144!==a.kind||!e.nodeIsMissing(a.parent.body)}function Cd(e,t){Sd(e,t,"_this")&&nv.push(e)}function Ed(t){for(var r=t;r;){if(4&Rf(r)){var n=70!==t.kind;return void(n?_(t.name,e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):_(t,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference))}r=r.parent}}function Td(t,r){if(Sd(t,r,"_super")){var n=e.getContainingClass(t);if(n&&!e.isInAmbientContext(n)&&e.getClassExtendsHeritageClauseElement(n)){var a=70!==t.kind;a?_(t,e.Diagnostics.Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference):_(t,e.Diagnostics.Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference)}}}function Nd(t,r){if(!(fg>=e.ModuleKind.ES2015)&&(Sd(t,r,"require")||Sd(t,r,"exports"))&&(230!==t.kind||1===e.getModuleInstanceState(t))){var n=tt(t);261===n.kind&&e.isExternalOrCommonJsModule(n)&&_(r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(r),e.declarationNameToString(r))}}function Ad(t,r){if(!(pg>=4)&&Sd(t,r,"Promise")&&(230!==t.kind||1===e.getModuleInstanceState(t))){var n=tt(t);261===n.kind&&e.isExternalOrCommonJsModule(n)&&1024&n.flags&&_(r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(r),e.declarationNameToString(r))}}function wd(t){if(0===(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(223!==t.kind||t.initializer)){var r=fe(t);if(1&r.flags){var n=E(t,t.name.text,3,void 0,void 0);if(n&&n!==r&&2&n.flags&&3&hu(n)){var a=e.getAncestor(n.valueDeclaration,224),i=205===a.parent.kind&&a.parent.parent?a.parent.parent:void 0,o=i&&(204===i.kind&&e.isFunctionLike(i.parent)||231===i.kind||230===i.kind||261===i.kind);if(!o){var s=Ke(n);_(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,s,s)}}}}}function Pd(t){function r(a){if(!e.isTypeNode(a)&&!e.isDeclarationName(a)){if(177===a.kind)return r(a.expression);if(70!==a.kind)return e.forEachChild(a,r);var i=E(a,a.text,8496063,void 0,void 0);if(i&&i!==Ag&&i.valueDeclaration){if(i.valueDeclaration===t)return void _(a,e.Diagnostics.Parameter_0_cannot_be_referenced_in_its_initializer,e.declarationNameToString(t.name));var o=e.getEnclosingBlockScopeContainer(i.valueDeclaration);if(o===n){if(144===i.valueDeclaration.kind||174===i.valueDeclaration.kind){if(i.valueDeclaration.pos<t.pos)return;for(var s=a;s!==t.initializer;){if(e.isFunctionLike(s.parent))return;if(147===s.parent.kind&&!e.hasModifier(s.parent,32)&&e.isClassLike(s.parent.parent))return;s=s.parent}}_(a,e.Diagnostics.Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(t.name),e.declarationNameToString(a))}}}}if(144===e.getRootDeclaration(t).kind){var n=e.getContainingFunction(t);r(t.initializer)}}function Fd(e){return e===Fg?Pg:e===ly?_y:e}function Od(t){if(ud(t),Up(t.type),142===t.name.kind&&(Xc(t.name),t.initializer&&dl(t.initializer)),174===t.kind){172===t.parent.kind&&pg<5&&!e.isInAmbientContext(t)&&Zf(t,4),t.propertyName&&142===t.propertyName.kind&&Xc(t.propertyName);var r=t.parent.parent,n=ot(r),a=t.propertyName||t.name,i=Gr(n,e.getTextOfPropertyName(a));Cu(i),r.initializer&&i&&me(i)&&bu(r,r.initializer,n,i)}if(e.isBindingPattern(t.name)&&e.forEach(t.name.elements,Up),t.initializer&&144===e.getRootDeclaration(t).kind&&e.nodeIsMissing(e.getContainingFunction(t).body))return void _(t,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);if(e.isBindingPattern(t.name))return void(t.initializer&&212!==t.parent.parent.kind&&(Fi(dl(t.initializer),ht(t),t,void 0),Pd(t)));var o=fe(t),s=Fd(kt(o));if(t===o.valueDeclaration)t.initializer&&212!==t.parent.parent.kind&&(Fi(dl(t.initializer),s,t,void 0),Pd(t));else{var c=Fd(ht(t));s===Og||c===Og||Di(s,c)||_(t.name,e.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,e.declarationNameToString(t.name),ze(s),ze(c)),t.initializer&&Fi(dl(t.initializer),c,t,void 0),Id(t,o.valueDeclaration)||(_(o.valueDeclaration.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name)),_(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name)))}147!==t.kind&&146!==t.kind&&($l(t),223!==t.kind&&174!==t.kind||wd(t),Td(t,t.name),Cd(t,t.name),Nd(t,t.name),Ad(t,t.name))}function Id(t,r){if(144===t.kind&&223===r.kind||223===t.kind&&144===r.kind)return!0;if(e.hasQuestionToken(t)!==e.hasQuestionToken(r))return!1;var n=504;return(e.getModifierFlags(t)&n)===(e.getModifierFlags(r)&n)}function Rd(e){return Mm(e),Od(e)}function Ld(e){return Rm(e),Od(e)}function Md(t){nm(t)||am(t)||Km(t.declarationList)||zm(t),e.forEach(t.declarationList.declarations,Up)}function Bd(t){if(t.modifiers&&176===t.parent.kind){if(!e.isAsyncFunctionLike(t))return Vm(t,e.Diagnostics.Modifiers_cannot_appear_here);if(t.modifiers.length>1)return Vm(t,e.Diagnostics.Modifiers_cannot_appear_here)}}function Kd(e){Zm(e),kl(e.expression)}function Jd(t){Zm(t),kl(t.expression),Up(t.thenStatement),206===t.thenStatement.kind&&_(t.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),Up(t.elseStatement)}function zd(e){Zm(e),Up(e.statement),kl(e.expression)}function jd(e){Zm(e),kl(e.expression),Up(e.statement)}function Vd(t){Zm(t)||t.initializer&&224===t.initializer.kind&&Km(t.initializer),t.initializer&&(224===t.initializer.kind?e.forEach(t.initializer.declarations,Rd):kl(t.initializer)),t.condition&&kl(t.condition),t.incrementor&&kl(t.incrementor),Up(t.statement),t.locals&&dd(t)}function Ud(t){if(Nm(t),224===t.initializer.kind)Wd(t);else{var r=t.initializer,n=Hd(t.expression);if(175===r.kind||176===r.kind)$_(r,n||Og);else{var a=kl(r);L_(r,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access),n&&Fi(n,a,r,void 0)}}Up(t.statement),t.locals&&dd(t)}function qd(t){Nm(t);var r=ku(t.expression);if(224===t.initializer.kind){var n=t.initializer.declarations[0];n&&e.isBindingPattern(n.name)&&_(n.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),Wd(t)}else{var a=t.initializer,i=kl(a);175===a.kind||176===a.kind?_(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):Ti(Ea(r),i)?L_(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access):_(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}Wc(r,573440)||_(t.expression,e.Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter),Up(t.statement),t.locals&&dd(t)}function Wd(e){var t=e.initializer;if(t.declarations.length>=1){var r=t.declarations[0];Rd(r)}}function Hd(e){var t=ku(e);return Gd(t,e,!0)}function Gd(t,r,n){if(at(t))return t;if(pg>=2)return Xd(t,r);if(n)return $d(t,r);if(no(t)){var a=en(t,1);if(a)return a}return r&&_(r,e.Diagnostics.Type_0_is_not_an_array_type,ze(t)),Og}function Xd(e,t){var r=Qd(e,t);return t&&r&&Fi(e,Zn(r),t),r||Pg}function Qd(t,r){if(!at(t)){var n=t;if(!n.iterableElementType)if(4&k(t)&&t.target===my())n.iterableElementType=t.typeArguments[0];else{var a=nt(t,e.getPropertyNameForKnownSymbolName("iterator"));if(at(a))return;var i=a?Qr(a,0):_g;if(0===i.length)return void(r&&_(r,e.Diagnostics.Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator));n.iterableElementType=Yd(ma(e.map(i,mn),!0),r)}return n.iterableElementType}}function Yd(t,r){if(!at(t)){var n=t;if(!n.iteratorElementType)if(4&k(t)&&t.target===gy())n.iteratorElementType=t.typeArguments[0];else{var a=nt(t,"next");if(at(a))return;var i=a?Qr(a,0):_g;if(0===i.length)return void(r&&_(r,e.Diagnostics.An_iterator_must_have_a_next_method));var o=ma(e.map(i,mn),!0);if(at(o))return;var s=nt(o,"value");if(!s)return void(r&&_(r,e.Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property));n.iteratorElementType=s}return n.iteratorElementType}}function Zd(e){if(!at(e))return 4&k(e)&&e.target===yy()?e.typeArguments[0]:Qd(e,void 0)||Yd(e,void 0)}function $d(t,r){e.Debug.assert(pg<2);var n=t;if(65536&t.flags){var a=t.types,i=e.filter(a,function(e){return!(262178&e.flags)});i!==a&&(n=ma(i,!0))}else 262178&t.flags&&(n=qg);var o=t!==n,s=!1;if(o&&(pg<1&&(_(r,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),s=!0),8192&n.flags))return Bg;if(!no(n)){if(!s){var c=o?e.Diagnostics.Type_0_is_not_an_array_type:e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type;_(r,c,ze(n))}return o?Bg:Og}var u=en(n,1)||Og;return o?262178&u.flags?Bg:ma([u,Bg],!0):u}function ep(e){Zm(e)||Im(e)}function tp(t){return!(151!==t.kind||!e.getSetAccessorTypeAnnotationNode(e.getDeclarationOfKind(t.symbol,152)))}function rp(t,r){var n=e.isAsyncFunctionLike(t)?td(r):r;return n&&V_(n,1025)}function np(t){if(!Zm(t)){var r=e.getContainingFunction(t);r||Vm(t,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body)}var n=e.getContainingFunction(t);if(n){var a=_n(n),i=mn(a);if(yg||t.expression||8192&i.flags){var o=t.expression?dl(t.expression):Ig;if(n.asteriskToken)return;if(152===n.kind)t.expression&&_(t.expression,e.Diagnostics.Setters_cannot_return_a_value);else if(150===n.kind)t.expression&&!Fi(o,i,t.expression)&&_(t.expression,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(n.type||tp(n))if(e.isAsyncFunctionLike(n)){var s=td(i),c=ad(o,t.expression||t,e.Diagnostics.Return_expression_in_async_function_does_not_have_a_valid_callable_then_member);s&&Fi(c,s,t.expression||t)}else Fi(o,i,t.expression||t)}else 150!==n.kind&&dg.noImplicitReturns&&!rp(n,i)&&_(t,e.Diagnostics.Not_all_code_paths_return_a_value)}}function ap(t){Zm(t)||16384&t.flags&&Vm(t,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),kl(t.expression);var r=e.getSourceFileOfNode(t);if(!jm(r)){var n=e.getSpanOfTokenAtPosition(r,t.pos).start,a=t.statement.pos;Um(r,n,a-n,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function ip(t){Zm(t);var r,n=!1,a=kl(t.expression),o=oo(a);e.forEach(t.caseBlock.clauses,function(s){if(254===s.kind&&!n)if(void 0===r)r=s;else{var c=e.getSourceFileOfNode(t),u=e.skipTrivia(c.text,s.pos),_=s.statements.length>0?s.statements[0].pos:s.end;Um(c,u,_-u,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),n=!0}if(i&&253===s.kind){var l=s,d=kl(l.expression),p=oo(d),f=a;p&&o||(d=p?so(d):d,f=so(a)),rl(f,d)||Oi(d,f,l.expression,void 0)}e.forEach(s.statements,Up)}),t.caseBlock.locals&&dd(t.caseBlock)}function op(t){if(!Zm(t))for(var r=t.parent;r&&!e.isFunctionLike(r);){if(219===r.kind&&r.label.text===t.label.text){var n=e.getSourceFileOfNode(t);qm(t.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNodeFromSourceText(n.text,t.label));break}r=r.parent}Up(t.statement)}function sp(t){Zm(t)||void 0===t.expression&&eg(t,e.Diagnostics.Line_break_not_permitted_here),t.expression&&kl(t.expression)}function cp(t){Zm(t),xd(t.tryBlock);var r=t.catchClause;if(r){if(r.variableDeclaration)if(r.variableDeclaration.type)Vm(r.variableDeclaration.type,e.Diagnostics.Catch_clause_variable_cannot_have_a_type_annotation);else if(r.variableDeclaration.initializer)Vm(r.variableDeclaration.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var n=r.block.locals;if(n)for(var a in r.locals){var i=n[a];i&&0!==(2&i.flags)&&qm(i.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,a)}}xd(r.block)}t.finallyBlock&&xd(t.finallyBlock)}function up(t){function r(t,r,n,a,i,o){if(i&&(1!==o||Uc(t.valueDeclaration.name))){var s;if(142===t.valueDeclaration.name.kind||t.parent===n.symbol)s=t.valueDeclaration;else if(a)s=a;else if(2&k(n)){var c=e.forEach(Ut(n),function(e){return Jr(e,t.name)&&en(e,o)});s=c?void 0:n.symbol.declarations[0]}if(s&&!Ti(r,i)){var u=0===o?e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2:e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2;_(s,u,Ke(t),ze(r),ze(i))}}}var n=xn(t.symbol,1),a=xn(t.symbol,0),i=en(t,0),o=en(t,1);if((i||o)&&(e.forEach(Kr(t),function(e){var s=Pt(e);r(e,s,t,a,i,0),r(e,s,t,n,o,1)}),1&k(t)&&e.isClassLike(t.symbol.valueDeclaration)))for(var s=t.symbol.valueDeclaration,c=0,u=s.members;c<u.length;c++){var l=u[c];if(!(32&e.getModifierFlags(l))&&e.hasDynamicName(l)){var d=Pt(l.symbol);r(l.symbol,d,t,a,i,0),r(l.symbol,d,t,n,o,1)}}var p;if(i&&o&&(p=n||a,!p&&2&k(t))){var f=e.forEach(Ut(t),function(e){return en(e,0)&&en(e,1)});p=f?void 0:t.symbol.declarations[0]}p&&!Ti(o,i)&&_(p,e.Diagnostics.Numeric_index_type_0_is_not_assignable_to_string_index_type_1,ze(o),ze(i))}function _p(e,t){switch(e.text){case"any":case"number":case"boolean":case"string":case"symbol":case"void":_(e,t,e.text)}}function lp(t){if(t)for(var r=0,n=t.length;r<n;r++){var a=t[r];if(Dl(a),i)for(var o=0;o<r;o++)t[o].symbol===a.symbol&&_(a.name,e.Diagnostics.Duplicate_identifier_0,e.declarationNameToString(a.name))}}function dp(t,r){if(1!==r.declarations.length)for(var n,a=0,i=r.declarations;a<i.length;a++){var o=i[a];226!==o.kind&&227!==o.kind||(n?xp(n.typeParameters,t.typeParameters)||_(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,t.name.text):n=o)}}function pp(e){return gp(e),qp(e),Pt(fe(e))}function fp(t){e.forEach(t.members,Up),dd(t)}function mp(t){t.name||512&e.getModifierFlags(t)||Vm(t,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),gp(t),e.forEach(t.members,Up),dd(t)}function gp(t){km(t),ud(t),t.name&&(_p(t.name,e.Diagnostics.Class_name_cannot_be_0),Cd(t,t.name),Nd(t,t.name),Ad(t,t.name)),lp(t.typeParameters),$l(t);var r=fe(t),n=ar(r),a=fr(n),o=Pt(r);dp(t,r),Pl(t);var s=e.getClassExtendsHeritageClauseElement(t);if(s){pg<2&&!e.isInAmbientContext(t)&&Zf(s.parent,1);var c=Ut(n);if(c.length&&i){var u=c[0],l=Vt(n);if(yp(l,s),Up(s.expression),s.typeArguments){e.forEach(s.typeArguments,Up);for(var d=0,p=zt(l,s.typeArguments);d<p.length;d++){var f=p[d];if(!zl(f.typeParameters,s.typeArguments))break}}if(Fi(a,fr(u,n.thisType),t.name||t,e.Diagnostics.Class_0_incorrectly_extends_base_class_1),Fi(o,xi(l),t.name||t,e.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1),u.symbol.valueDeclaration&&!e.isInAmbientContext(u.symbol.valueDeclaration)&&226===u.symbol.valueDeclaration.kind&&(C(u.symbol.valueDeclaration,t)||_(s,e.Diagnostics.A_class_must_be_declared_after_its_base_class)),!(l.symbol&&32&l.symbol.flags)){var m=jt(l,s.typeArguments);e.forEach(m,function(e){return mn(e)!==u})&&_(s.expression,e.Diagnostics.Base_constructors_must_all_have_the_same_return_type)}bp(n,u)}}var g=e.getClassImplementsHeritageClauseElements(t);if(g)for(var y=0,v=g;y<v.length;y++){var h=v[y];if(e.isEntityNameExpression(h.expression)||_(h.expression,e.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),jl(h),i){var b=Ha(h);if(b!==Og){var x=4&k(b)?b.target:b;3&k(x)?Fi(a,fr(b,n.thisType),t.name||t,e.Diagnostics.Class_0_incorrectly_implements_interface_1):_(h,e.Diagnostics.A_class_may_only_implement_another_class_or_interface)}}}i&&(up(n),Ol(t))}function yp(t,r){var n=Qr(t,1);if(n.length){var a=n[0].declaration;if(a&&8&e.getModifierFlags(a)){var i=hp(t.symbol);sf(r,i)||_(r,e.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,$(t.symbol))}}}function vp(e){return 16777216&e.flags?h(e).target:e}function hp(t){return e.forEach(t.declarations,function(t){return e.isClassLike(t)?t:void 0})}function bp(t,r){for(var n=Kr(r),a=0,i=n;a<i.length;a++){var o=i[a],s=vp(o);if(!(134217728&s.flags)){var c=vp(Jr(t,s.name)),u=vu(s);if(e.Debug.assert(!!c,"derived should point to something, even if it is the base class' declaration."),c)if(c===s){var l=hp(t.symbol);!(128&u)||l&&128&e.getModifierFlags(l)||(197===l.kind?_(l,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Ke(o),ze(r)):_(l,e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,ze(t),Ke(o),ze(r)))}else{var d=vu(c);if(8&u||8&d)continue;if((32&u)!==(32&d))continue;if(s.flags&c.flags&8192||98308&s.flags&&98308&c.flags)continue;var p=void 0;8192&s.flags?98304&c.flags?p=e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:(e.Debug.assert(0!==(4&c.flags)),p=e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_property):4&s.flags?(e.Debug.assert(0!==(8192&c.flags)),p=e.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function):(e.Debug.assert(0!==(98304&s.flags)),e.Debug.assert(0!==(8192&c.flags)),p=e.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function),_(c.valueDeclaration.name,p,ze(r),Ke(s),ze(t))}}}}function kp(e){return 151===e||152===e}function xp(e,t){if(!e&&!t)return!0;if(!e||!t||e.length!==t.length)return!1;for(var r=0,n=e.length;r<n;r++){var a=e[r],i=t[r];if(a.name.text!==i.name.text)return!1;if(a.constraint||i.constraint){if(!a.constraint||!i.constraint)return!1;if(!Di(Ha(a.constraint),Ha(i.constraint)))return!1}}return!0}function Dp(t,r){var n=Ut(t);if(n.length<2)return!0;var a=e.createMap();e.forEach(pr(t).declaredProperties,function(e){a[e.name]={prop:e,containingType:t}});for(var i=!0,o=0,s=n;o<s.length;o++)for(var c=s[o],u=Kr(fr(c,t.thisType)),_=0,l=u;_<l.length;_++){var d=l[_],p=a[d.name];if(p){var f=p.containingType!==t;if(f&&!Wi(p.prop,d)){i=!1;var m=ze(p.containingType),g=ze(c),y=e.chainDiagnosticMessages(void 0,e.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,Ke(d),m,g);y=e.chainDiagnosticMessages(y,e.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,ze(t),m,g),iv.add(e.createDiagnosticForNodeFromMessageChain(r,y))}}else a[d.name]={prop:d,containingType:c}}return i}function Sp(t){if(nm(t)||am(t)||xm(t),lp(t.typeParameters),i){_p(t.name,e.Diagnostics.Interface_name_cannot_be_0),$l(t);var r=fe(t);dp(t,r);var n=e.getDeclarationOfKind(r,227);if(t===n){var a=ar(r),o=fr(a);if(Dp(a,t.name)){for(var s=0,c=Ut(a);s<c.length;s++){var u=c[s];Fi(o,fr(u,a.thisType),t.name,e.Diagnostics.Interface_0_incorrectly_extends_interface_1)}up(a)}}Fl(t)}e.forEach(e.getInterfaceBaseTypeNodes(t),function(t){e.isEntityNameExpression(t.expression)||_(t.expression,e.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),jl(t)}),e.forEach(t.members,Up),i&&(Ol(t),dd(t))}function Cp(t){nm(t)||am(t),
_p(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),lp(t.typeParameters),Up(t.type)}function Ep(t){function r(t,r,n,a){function i(r){switch(r.kind){case 190:var n=i(r.operand);if(void 0===n)return;switch(r.operator){case 36:return n;case 37:return-n;case 51:return~n}return;case 192:var a=i(r.left);if(void 0===a)return;var s=i(r.right);if(void 0===s)return;switch(r.operatorToken.kind){case 48:return a|s;case 47:return a&s;case 45:return a>>s;case 46:return a>>>s;case 44:return a<<s;case 49:return a^s;case 38:return a*s;case 40:return a/s;case 36:return a+s;case 37:return a-s;case 41:return a%s}return;case 8:return+r.text;case 183:return i(r.expression);case 70:case 178:case 177:var c,u=t.parent,l=Pt(fe(u.parent)),d=void 0;if(70===r.kind)c=l,d=r.text;else{var p=void 0;if(178===r.kind){if(void 0===r.argumentExpression||9!==r.argumentExpression.kind)return;p=r.expression,d=r.argumentExpression.text}else p=r.expression,d=r.name.text;for(var f=p;f&&70!==f.kind;){if(177!==f.kind)return;f=f.expression}if(c=bl(p),!(c.symbol&&384&c.symbol.flags))return}if(void 0===d)return;var m=Jr(c,d);if(!(m&&8&m.flags))return;var g=m.valueDeclaration;if(u===g)return;return C(g,u)?b(g).enumMemberValue:(o=!1,void _(r,e.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums))}}var o=!0,s=i(t);return o&&(void 0===s?n?_(t,e.Diagnostics.In_const_enum_declarations_member_initializer_must_be_constant_expression):a?_(t,e.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):Fi(kl(t),r,t,void 0):n&&(isNaN(s)?_(t,e.Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN):isFinite(s)||_(t,e.Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value))),s}var n=b(t);if(!(16384&n.flags)){for(var a=fe(t),i=ar(a),o=0,s=e.isInAmbientContext(t),c=e.isConst(t),u=0,l=t.members;u<l.length;u++){var d=l[u];if(st(d.name))_(d.name,e.Diagnostics.Computed_property_names_are_not_allowed_in_enums);else{var p=e.getTextOfPropertyName(d.name);Gc(p)&&!Hc(p)&&_(d.name,e.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}var f=void 0===o,m=d.initializer;m?o=r(m,i,c,s):s&&!c?o=void 0:f&&_(d.name,e.Diagnostics.Enum_member_must_have_initializer),void 0!==o&&(b(d).enumMemberValue=o,o++)}n.flags|=16384}}function Tp(t){if(i){nm(t)||am(t),_p(t.name,e.Diagnostics.Enum_name_cannot_be_0),Cd(t,t.name),Nd(t,t.name),Ad(t,t.name),$l(t),Ep(t);var r=e.isConst(t);dg.isolatedModules&&r&&e.isInAmbientContext(t)&&_(t.name,e.Diagnostics.Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided);var n=fe(t),a=e.getDeclarationOfKind(n,t.kind);if(t===a){n.declarations.length>1&&e.forEach(n.declarations,function(t){e.isConstEnumDeclaration(t)!==r&&_(t.name,e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)});var o=!1;e.forEach(n.declarations,function(t){if(229!==t.kind)return!1;var r=t;if(!r.members.length)return!1;var n=r.members[0];n.initializer||(o?_(n.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):o=!0)})}}}function Np(t){for(var r=t.declarations,n=0,a=r;n<a.length;n++){var i=a[n];if((226===i.kind||225===i.kind&&e.nodeIsPresent(i.body))&&!e.isInAmbientContext(i))return i}}function Ap(t,r){var n=e.getEnclosingBlockScopeContainer(t),a=e.getEnclosingBlockScopeContainer(r);return x(n)?x(a):!x(a)&&n===a}function wp(t){if(i){var r=e.isGlobalScopeAugmentation(t),n=e.isInAmbientContext(t);r&&!n&&_(t.name,e.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var a=e.isAmbientModule(t),o=a?e.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:e.Diagnostics.A_namespace_declaration_is_only_allowed_in_a_namespace_or_module;if(Kp(t,o))return;nm(t)||am(t)||n||9!==t.name.kind||qm(t.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(t.name)&&(Cd(t,t.name),Nd(t,t.name),Ad(t,t.name)),$l(t);var s=fe(t);if(512&s.flags&&s.declarations.length>1&&!n&&e.isInstantiatedModule(t,dg.preserveConstEnums||dg.isolatedModules)){var c=Np(s);c&&(e.getSourceFileOfNode(t)!==e.getSourceFileOfNode(c)?_(t.name,e.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):t.pos<c.pos&&_(t.name,e.Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));var u=e.getDeclarationOfKind(s,226);u&&Ap(t,u)&&(b(t).flags|=32768)}if(a)if(e.isExternalModuleAugmentation(t)){var l=r||33554432&fe(t).flags;if(l&&t.body)for(var d=0,p=t.body.statements;d<p.length;d++){var f=p[d];Pp(f,r)}}else x(t.parent)?r?_(t.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):e.isExternalModuleNameRelative(t.name.text)&&_(t.name,e.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):r?_(t.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):_(t.name,e.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}t.body&&(Up(t.body),e.isGlobalScopeAugmentation(t)||dd(t))}function Pp(t,r){switch(t.kind){case 205:for(var n=0,a=t.declarationList.declarations;n<a.length;n++){var i=a[n];Pp(i,r)}break;case 240:case 241:Vm(t,e.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 234:case 235:Vm(t,e.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 174:case 223:var o=t.name;if(e.isBindingPattern(o)){for(var s=0,c=o.elements;s<c.length;s++){var u=c[s];Pp(u,r)}break}case 226:case 229:case 225:case 227:case 230:case 228:if(r)return;var _=fe(t);if(_){var l=!(33554432&_.flags);l||(l=e.isExternalModuleAugmentation(_.parent.declarations[0]))}}}function Fp(e){switch(e.kind){case 70:return e;case 141:do e=e.left;while(70!==e.kind);return e;case 177:do e=e.expression;while(70!==e.kind);return e}}function Op(t){var r=e.getExternalModuleName(t);if(!e.nodeIsMissing(r)&&9!==r.kind)return _(r,e.Diagnostics.String_literal_expected),!1;var n=231===t.parent.kind&&e.isAmbientModule(t.parent.parent);return 261===t.parent.kind||n?!(n&&e.isExternalModuleNameRelative(r.text)&&!We(t))||(_(t,e.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1):(_(r,241===t.kind?e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace:e.Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module),!1)}function Ip(t){var r=fe(t),n=X(r);if(n!==Ag){var a=(1156031&r.flags?107455:0)|(793064&r.flags?793064:0)|(1920&r.flags?1920:0);if(n.flags&a){var i=243===t.kind?e.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:e.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0;_(t,i,Ke(r))}}}function Rp(e){Cd(e,e.name),Nd(e,e.name),Ad(e,e.name),Ip(e)}function Lp(t){if(!Kp(t,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(nm(t)||am(t)||0===e.getModifierFlags(t)||Vm(t,e.Diagnostics.An_import_declaration_cannot_have_modifiers),Op(t))){var r=t.importClause;r&&(r.name&&Rp(r),r.namedBindings&&(237===r.namedBindings.kind?Rp(r.namedBindings):e.forEach(r.namedBindings.elements,Rp)))}}function Mp(t){if(!Kp(t,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(nm(t)||am(t),e.isInternalModuleImportEqualsDeclaration(t)||Op(t)))if(Rp(t),1&e.getModifierFlags(t)&&Q(t),e.isInternalModuleImportEqualsDeclaration(t)){var r=X(fe(t));if(r!==Ag){if(107455&r.flags){var n=Fp(t.moduleReference);1920&ee(n,108479).flags||_(n,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(n))}793064&r.flags&&_p(t.name,e.Diagnostics.Import_name_cannot_be_0)}}else fg!==e.ModuleKind.ES2015||e.isInAmbientContext(t)||qm(t,e.Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}function Bp(t){if(!Kp(t,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)&&(nm(t)||am(t)||0===e.getModifierFlags(t)||Vm(t,e.Diagnostics.An_export_declaration_cannot_have_modifiers),!t.moduleSpecifier||Op(t)))if(t.exportClause){e.forEach(t.exportClause.elements,Jp);var r=231===t.parent.kind&&e.isAmbientModule(t.parent.parent);261===t.parent.kind||r||_(t,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var n=te(t,t.moduleSpecifier);n&&oe(n)&&_(t.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Ke(n))}}function Kp(e,t){var r=261===e.parent.kind||231===e.parent.kind||230===e.parent.kind;return r||Vm(e,t),!r}function Jp(t){if(Ip(t),!t.parent.parent.moduleSpecifier){var r=t.propertyName||t.name,n=E(r,r.text,9289727,void 0,void 0);n&&(n===hg||x(tt(n.declarations[0])))?_(r,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,r.text):Q(t)}}function zp(t){if(!Kp(t,e.Diagnostics.An_export_assignment_can_only_be_used_in_a_module)){var r=261===t.parent.kind?t.parent:t.parent.parent;if(230===r.kind&&!e.isAmbientModule(r))return void _(t,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace);nm(t)||am(t)||0===e.getModifierFlags(t)||Vm(t,e.Diagnostics.An_export_assignment_cannot_have_modifiers),70===t.expression.kind?Q(t):dl(t.expression),Vp(r),t.isExportEquals&&!e.isInAmbientContext(t)&&(fg===e.ModuleKind.ES2015?qm(t,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_export_default_or_another_module_format_instead):fg===e.ModuleKind.System&&qm(t,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}}function jp(e){for(var t in e.exports)if("export="!==t)return!0;return!1}function Vp(t){function r(e){return 225!==e.kind&&149!==e.kind||!!e.body}var n=fe(t),a=h(n);if(!a.exportsChecked){var i=n.exports["export="];if(i&&jp(n)){var o=R(i)||i.valueDeclaration;We(o)||_(o,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var s=_e(n);for(var c in s)if("__export"!==c){var u=s[c],l=u.declarations,d=u.flags;if(!(1984&d)){var p=e.countWhere(l,r);if(!(524288&d&&p<=2)&&p>1)for(var f=0,m=l;f<m.length;f++){var o=m[f];r(o)&&iv.add(e.createDiagnosticForNode(o,e.Diagnostics.Cannot_redeclare_exported_variable_0,c))}}}a.exportsChecked=!0}}function Up(e){if(e){var t=e.kind;if(rg)switch(t){case 230:case 226:case 227:case 225:rg.throwIfCancellationRequested()}switch(t){case 143:return Dl(e);case 144:return Sl(e);case 147:case 146:return Il(e);case 158:case 159:case 153:case 154:return wl(e);case 155:return wl(e);case 149:case 148:return Rl(e);case 150:return Ll(e);case 151:case 152:return Ml(e);case 157:return jl(e);case 156:return Tl(e);case 160:return Vl(e);case 161:return Ul(e);case 162:return ql(e);case 163:return Wl(e);case 164:case 165:return Hl(e);case 166:case 168:return Up(e.type);case 169:return Gl(e);case 170:return Xl(e);case 225:return _d(e);case 204:case 231:return xd(e);case 205:return Md(e);case 207:return Kd(e);case 208:return Jd(e);case 209:return zd(e);case 210:return jd(e);case 211:return Vd(e);case 212:return qd(e);case 213:return Ud(e);case 214:case 215:return ep(e);case 216:return np(e);case 217:return ap(e);case 218:return ip(e);case 219:return op(e);case 220:return sp(e);case 221:return cp(e);case 223:return Rd(e);case 174:return Ld(e);case 226:return mp(e);case 227:return Sp(e);case 228:return Cp(e);case 229:return Tp(e);case 230:return wp(e);case 235:return Lp(e);case 234:return Mp(e);case 241:return Bp(e);case 240:return zp(e);case 206:return void Zm(e);case 222:return void Zm(e);case 244:return Jl(e)}}}function qp(e){wy&&wy.push(e)}function Wp(){for(var e=0,t=wy;e<t.length;e++){var r=t[e];switch(r.kind){case 184:case 185:case 149:case 148:P_(r);break;case 151:case 152:Kl(r);break;case 197:fp(r)}}}function Hp(t){e.performance.mark("beforeCheck"),Gp(t),e.performance.mark("afterCheck"),e.performance.measure("Check","beforeCheck","afterCheck")}function Gp(t){var r=b(t);if(!(1&r.flags)){if(dg.skipLibCheck&&t.isDeclarationFile||dg.skipDefaultLibCheck&&t.hasNoDefaultLib)return;Ym(t),nv.length=0,wy=[],Py=i&&mg?[]:void 0,e.forEach(t.statements,Up),Wp(),e.isExternalModule(t)&&dd(t),t.isDeclarationFile||pd(),wy=void 0,Py=void 0,e.isExternalOrCommonJsModule(t)&&Vp(t),nv.length&&(e.forEach(nv,Ed),nv.length=0),r.flags|=1}}function Xp(e,t){try{return rg=t,Qp(e)}finally{rg=void 0}}function Qp(t){if(Zp(),t){var r=iv.getGlobalDiagnostics(),a=r.length;Hp(t);var i=iv.getDiagnostics(t.fileName),o=iv.getGlobalDiagnostics();if(o!==r){var s=e.relativeComplement(r,o,e.compareDiagnostics);return e.concatenate(s,i)}return 0===a&&o.length>0?e.concatenate(o,i):i}return e.forEach(n.getSourceFiles(),Hp),iv.getDiagnostics()}function Yp(){return Zp(),iv.getGlobalDiagnostics()}function Zp(){if(!i)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function $p(e){if(e)for(;e.parent;){if(217===e.parent.kind&&e.parent.statement===e)return!0;e=e.parent}return!1}function ef(t,r){function n(){for(;t;){switch(t.locals&&!x(t)&&i(t.locals,r),t.kind){case 261:if(!e.isExternalOrCommonJsModule(t))break;case 230:i(fe(t).exports,8914931&r);break;case 229:i(fe(t).exports,8&r);break;case 197:var n=t.name;n&&a(t.symbol,r);case 226:case 227:32&s||i(fe(t).members,793064&r);break;case 184:var o=t.name;o&&a(t.symbol,r)}e.introducesArgumentsExoticObject(t)&&a(bg,r),s=e.getModifierFlags(t),t=t.parent}i(Ky,r)}function a(e,t){if(e.flags&t){var r=e.name;o[r]||(o[r]=e)}}function i(e,t){if(t)for(var r in e){var n=e[r];a(n,t)}}var o=e.createMap(),s=0;return $p(t)?[]:(n(),an(o))}function tf(e){return 70===e.kind&&rf(e.parent)&&e.parent.name===e}function rf(e){switch(e.kind){case 143:case 226:case 227:case 228:case 229:return!0}}function nf(e){for(var t=e;t.parent&&141===t.parent.kind;)t=t.parent;return t.parent&&(157===t.parent.kind||272===t.parent.kind)}function af(e){for(var t=e;t.parent&&177===t.parent.kind;)t=t.parent;return t.parent&&199===t.parent.kind}function of(t,r){for(var n;;){if(t=e.getContainingClass(t),!t)break;if(n=r(t))break}return n}function sf(e,t){return!!of(e,function(e){return e===t})}function cf(e){for(;141===e.parent.kind;)e=e.parent;return 234===e.parent.kind?e.parent.moduleReference===e&&e.parent:240===e.parent.kind?e.parent.expression===e&&e.parent:void 0}function uf(e){return void 0!==cf(e)}function _f(t){if(e.isDeclarationName(t))return fe(t.parent);if(e.isInJavaScriptFile(t)&&177===t.parent.kind){var r=e.getSpecialPropertyAssignmentKind(t.parent.parent);switch(r){case 1:case 3:return fe(t.parent);case 4:case 2:return fe(t.parent.parent)}}if(240===t.parent.kind&&e.isEntityNameExpression(t))return ee(t,9289727);if(177!==t.kind&&uf(t)){var n=e.getAncestor(t,234);return e.Debug.assert(void 0!==n),Z(t,!0)}if(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),af(t)){var a=0;return 199===t.parent.kind?(a=793064,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(a|=107455)):a=1920,a|=8388608,ee(t,a)}if(e.isPartOfExpression(t)){if(e.nodeIsMissing(t))return;if(70===t.kind)return e.isJSXTagName(t)&&ru(t)?ou(t.parent):ee(t,107455,!1,!0);if(177===t.kind){var i=b(t).resolvedSymbol;return i||xu(t),b(t).resolvedSymbol}if(141===t.kind){var i=b(t).resolvedSymbol;return i||Du(t),b(t).resolvedSymbol}}else{if(nf(t)){var a=157===t.parent.kind||272===t.parent.kind?793064:1920;return ee(t,a,!1,!0)}if(250===t.parent.kind)return lu(t.parent)}return 156===t.parent.kind?ee(t,1):void 0}function lf(t){if(261===t.kind)return e.isExternalModule(t)?pe(t.symbol):void 0;if(!$p(t)){if(e.isDeclarationName(t))return fe(t.parent);if(e.isLiteralComputedPropertyDeclarationName(t))return fe(t.parent.parent);if(70===t.kind){if(uf(t))return _f(t);if(174===t.parent.kind&&172===t.parent.parent.kind&&t===t.parent.propertyName){var r=ff(t.parent.parent),n=r&&Gr(r,t.text);if(n)return n}}switch(t.kind){case 70:case 177:case 141:return _f(t);case 98:var a=e.getThisContainer(t,!1);if(e.isFunctionLike(a)){var i=_n(a);if(i.thisParameter)return i.thisParameter}case 96:var o=e.isPartOfExpression(t)?bl(t):Ha(t);return o.symbol;case 167:return Ha(t).symbol;case 122:var s=t.parent;if(s&&150===s.kind)return s.parent.symbol;return;case 9:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(235===t.parent.kind||241===t.parent.kind)&&t.parent.moduleSpecifier===t)return te(t,t);if(e.isInJavaScriptFile(t)&&e.isRequireCall(t.parent,!1))return te(t,t);case 8:if(178===t.parent.kind&&t.parent.argumentExpression===t){var c=bl(t.parent.expression);if(c===Og)return;var u=Ur(c);if(u===Og)return;return Gr(u,t.text)}}}}function df(e){if(e&&258===e.kind)return ee(e.name,8496063)}function pf(e){return e.parent.parent.moduleSpecifier?j(e.parent.parent,e):ee(e.propertyName||e.name,9289727)}function ff(t){if($p(t))return Og;if(e.isPartOfTypeNode(t))return Ha(t);if(e.isPartOfExpression(t))return yf(t);if(e.isExpressionWithTypeArgumentsInClassExtendsClause(t))return Ut(ar(fe(t.parent.parent)))[0];if(rf(t)){var r=fe(t);return ar(r)}if(tf(t)){var r=lf(t);return r&&ar(r)}if(e.isDeclaration(t)){var r=fe(t);return Pt(r)}if(e.isDeclarationName(t)){var r=lf(t);return r&&Pt(r)}if(e.isBindingPattern(t))return ft(t.parent,!0);if(uf(t)){var r=lf(t),n=r&&ar(r);return n!==Og?n:Pt(r)}return Og}function mf(t){if(e.Debug.assert(176===t.kind||175===t.kind),213===t.parent.kind){var r=Hd(t.parent.expression);return $_(t,r||Og)}if(192===t.parent.kind){var r=bl(t.parent.right);return $_(t,r||Og)}if(257===t.parent.kind){var n=mf(t.parent.parent);return Q_(n||Og,t.parent)}e.Debug.assert(175===t.parent.kind);var a=mf(t.parent),i=Gd(a||Og,t.parent,!1)||Og;return Z_(t.parent,a,e.indexOf(t.parent.elements,t),i||Og)}function gf(e){var t=mf(e.parent.parent);return t&&Gr(t,e.text)}function yf(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),Ja(bl(t))}function vf(t){var r=fe(t.parent);return 32&e.getModifierFlags(t)?Pt(r):ar(r)}function hf(t){t=Ur(t);var r=_r(jr(t));return(Qr(t,0).length||Qr(t,1).length)&&e.forEach(jr(ny),function(e){r[e.name]||(r[e.name]=e)}),Se(r)}function bf(t){if(268435456&t.flags){var r=[],n=t.name;return e.forEach(h(t).containingType.types,function(e){var t=Gr(e,n);t&&r.push(t)}),r}if(67108864&t.flags){if(t.leftSpread){var a=t;return[a.leftSpread,a.rightSpread]}for(var i=void 0,o=t;o=h(o).target;)i=o;if(i)return[i]}return[t]}function kf(t){return!(e.isGeneratedIdentifier(t)||!(t=e.getParseTreeNode(t,e.isIdentifier)))&&qf(t)===bg}function xf(t){function r(e){return e=G(e),e&&!!(107455&e.flags)}var n=te(t.parent,t);if(!n||e.isShorthandAmbientModuleSymbol(n))return!0;var a=oe(n);n=ae(n);var i=h(n);return void 0===i.exportsSomeValue&&(i.exportsSomeValue=a?!!(107455&n.flags):e.forEachProperty(_e(n),r)),i.exportsSomeValue}function Df(t){var r=t.parent;return r&&e.isModuleOrEnumDeclaration(r)&&t===r.name}function Sf(t,r){if(t=e.getParseTreeNode(t,e.isIdentifier)){var n=qf(t,Df(t));if(n){if(1048576&n.flags){var a=pe(n.exportSymbol);if(!r&&944&a.flags)return;n=a}var i=me(n);if(i){if(512&i.flags&&261===i.valueDeclaration.kind){var o=i.valueDeclaration,s=e.getSourceFileOfNode(t),c=o!==s;return c?void 0:o}for(var u=t.parent;u;u=u.parent)if(e.isModuleOrEnumDeclaration(u)&&fe(u)===i)return u}}}}function Cf(t){if(t=e.getParseTreeNode(t,e.isIdentifier)){var r=qf(t);if(r&&8388608&r.flags)return R(r)}}function Ef(t){if(418&t.flags){var r=h(t);if(void 0===r.isDeclarationWithCollidingName){var n=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(n)){var a=b(t.valueDeclaration);if(E(n.parent,t.name,107455,void 0,void 0))r.isDeclarationWithCollidingName=!0;else if(131072&a.flags){var i=262144&a.flags,o=e.isIterationStatement(n,!1),s=204===n.kind&&e.isIterationStatement(n.parent,!1);r.isDeclarationWithCollidingName=!(e.isBlockScopedContainerTopLevel(n)||i&&(o||s))}else r.isDeclarationWithCollidingName=!1}}return r.isDeclarationWithCollidingName}return!1}function Tf(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var r=qf(t);if(r&&Ef(r))return r.valueDeclaration}}function Nf(t){if(t=e.getParseTreeNode(t,e.isDeclaration)){var r=fe(t);if(r)return Ef(r)}return!1}function Af(t){if(t=e.getParseTreeNode(t),void 0===t)return!0;switch(t.kind){case 234:case 236:case 237:case 239:case 243:return Pf(fe(t)||Ag);case 241:var r=t.exportClause;return r&&e.forEach(r.elements,Af);case 240:return!t.expression||70!==t.expression.kind||Pf(fe(t)||Ag)}return!1}function wf(t){if(t=e.getParseTreeNode(t,e.isImportEqualsDeclaration),void 0===t||261!==t.parent.kind||!e.isInternalModuleImportEqualsDeclaration(t))return!1;var r=Pf(fe(t));return r&&t.moduleReference&&!e.nodeIsMissing(t.moduleReference)}function Pf(e){var t=X(e);return t===Ag||107455&t.flags&&(dg.preserveConstEnums||!Ff(t))}function Ff(e){return W_(e)||e.constEnumOnlyModule}function Of(t,r){if(t=e.getParseTreeNode(t),void 0===t)return!0;if(e.isAliasSymbolDeclaration(t)){var n=fe(t);if(n&&h(n).referenced)return!0}return!!r&&e.forEachChild(t,function(e){return Of(e,r)})}function If(t){if(e.nodeIsPresent(t.body)){var r=fe(t),n=dn(r);return n.length>1||1===n.length&&n[0].declaration!==t}return!1}function Rf(t){return t=e.getParseTreeNode(t),t?b(t).flags:void 0}function Lf(e){return Ep(e.parent),b(e).enumMemberValue}function Mf(t){if(260===t.kind)return Lf(t);var r=b(t).resolvedSymbol;return r&&8&r.flags&&e.isConstEnumDeclaration(r.valueDeclaration.parent)?Lf(r.valueDeclaration):void 0}function Bf(e){return 32768&e.flags&&Qr(e,0).length>0}function Kf(t,r){var n=ee(t,107455,!0,!1,r),a=ty();if(a&&n===a)return e.TypeReferenceSerializationKind.Promise;var i=n?Pt(n):void 0;if(i&&Kt(i))return e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue;var o=ee(t,793064,!0,!1,r);if(!o)return e.TypeReferenceSerializationKind.ObjectType;var s=ar(o);return s===Og?e.TypeReferenceSerializationKind.Unknown:1&s.flags?e.TypeReferenceSerializationKind.ObjectType:U_(s,15360)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:U_(s,136)?e.TypeReferenceSerializationKind.BooleanType:U_(s,340)?e.TypeReferenceSerializationKind.NumberLikeType:U_(s,262178)?e.TypeReferenceSerializationKind.StringLikeType:uo(s)?e.TypeReferenceSerializationKind.ArrayLikeType:U_(s,512)?e.TypeReferenceSerializationKind.ESSymbolType:Bf(s)?e.TypeReferenceSerializationKind.TypeWithCallSignature:ro(s)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function Jf(e,t,r,n){var a=fe(e),i=!a||133120&a.flags?Og:co(Pt(a));Ge().buildTypeDisplay(i,n,t,r)}function zf(e,t,r,n){var a=_n(e);Ge().buildTypeDisplay(mn(a),n,t,r)}function jf(e,t,r,n){var a=xo(yf(e));Ge().buildTypeDisplay(a,n,t,r)}function Vf(e,t,r,n){var a=ar(fe(e));qt(a);var i=a.resolvedBaseTypes.length?a.resolvedBaseTypes[0]:Og;Ge().buildTypeDisplay(i,n,t,r)}function Uf(e){return!!Ky[e]}function qf(t,r){var n=b(t).resolvedSymbol;if(n)return n;var a=t;if(r){var i=t.parent;e.isDeclaration(i)&&t===i.name&&(a=tt(i))}return E(a,t.text,9544639,void 0,void 0)}function Wf(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var r=qf(t);if(r)return ge(r).valueDeclaration}}function Hf(t){if(e.isConst(t)){var r=Pt(fe(t));return!!(96&r.flags&&1048576&r.flags)}return!1}function Gf(e,t){var r=Pt(fe(e));t.writeStringLiteral(He(r))}function Xf(){function t(e){if(i){var t=177===e.kind||70===e.kind&&jo(e)?1156031:794600,n=ee(e,t,!0);return n&&n!==Ag?r(n,t):void 0}}function r(t,r){if(i&&a(t)){for(var n,o=0,s=t.declarations;o<s.length;o++){var c=s[o];if(c.symbol&&c.symbol.flags&r){var u=e.getSourceFileOfNode(c),_=i.get(u.path);if(!_)return;(n||(n=[])).push(_)}}return n}}function a(t){if(!t.declarations)return!1;for(var r=t;;){var n=me(r);if(!n)break;r=n}if(r.valueDeclaration&&261===r.valueDeclaration.kind&&512&r.flags)return!1;for(var a=0,o=t.declarations;a<o.length;a++){var s=o[a],c=e.getSourceFileOfNode(s);if(i.contains(c.path))return!0}return!1}var i,o=n.getResolvedTypeReferenceDirectives();if(o){i=e.createFileMap();for(var s in o){var c=o[s];if(c){var u=n.getSourceFile(c.resolvedFileName);i.set(u.path,s)}}}return{getReferencedExportContainer:Sf,getReferencedImportDeclaration:Cf,getReferencedDeclarationWithCollidingName:Tf,isDeclarationWithCollidingName:Nf,isValueAliasDeclaration:Af,hasGlobalName:Uf,isReferencedAliasDeclaration:Of,getNodeCheckFlags:Rf,isTopLevelValueImportEqualsWithEntityName:wf,isDeclarationVisible:Xe,isImplementationOfOverload:If,writeTypeOfDeclaration:Jf,writeReturnTypeOfSignatureDeclaration:zf,writeTypeOfExpression:jf,writeBaseConstructorTypeOfClass:Vf,isSymbolAccessible:Fe,isEntityNameVisible:Re,getConstantValue:Mf,collectLinkedAliases:Qe,getReferencedValueDeclaration:Wf,getTypeReferenceSerializationKind:Kf,isOptionalParameter:cn,moduleExportsSomeValue:xf,isArgumentsLocalBinding:kf,getExternalModuleFileFromDeclaration:Qf,getTypeReferenceDirectivesForEntityName:t,getTypeReferenceDirectivesForSymbol:r,isLiteralConstDeclaration:Hf,writeLiteralConstValue:Gf,getJsxFactoryEntity:function(){return cv}}}function Qf(t){var r=e.getExternalModuleName(t),n=re(r,r,void 0);if(n)return e.getDeclarationOfKind(n,261)}function Yf(){for(var t=0,r=n.getSourceFiles();t<r.length;t++){var a=r[t];e.bindSourceFile(a,dg)}for(var i,o=0,s=n.getSourceFiles();o<s.length;o++){var a=s[o];if(e.isExternalOrCommonJsModule(a)||g(Ky,a.locals),a.patternAmbientModules&&a.patternAmbientModules.length&&(Zg=e.concatenate(Zg,a.patternAmbientModules)),a.moduleAugmentations.length&&(i||(i=[])).push(a.moduleAugmentations),a.symbol&&a.symbol.globalExports){var c=a.symbol.globalExports;for(var u in c)u in Ky||(Ky[u]=c[u])}}if(i)for(var _=0,l=i;_<l.length;_++)for(var d=l[_],p=0,f=d;p<f.length;p++){var m=f[p];y(m)}v(Ky,kv,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0),h(hg).type=Rg,h(bg).type=Gn("IArguments"),h(Ag).type=Og,ay=Gn("Array",1),ry=Gn("Object"),ny=Gn("Function"),oy=Gn("String"),sy=Gn("Number"),cy=Gn("Boolean"),uy=Gn("RegExp"),ov=Xn("JSX",mv.Element),vy=e.memoize(function(){return Gn("ClassDecorator")}),by=e.memoize(function(){return Gn("PropertyDecorator")}),ky=e.memoize(function(){return Gn("MethodDecorator")}),hy=e.memoize(function(){return Gn("ParameterDecorator")}),xy=e.memoize(function(){return Gn("TypedPropertyDescriptor",1)}),$g=e.memoize(function(){return qn("Symbol")}),Dy=e.memoize(function(){return Gn("Promise",1)}),Sy=e.memoize(function(){return Hn("Promise",793064,void 0)&&Dy()}),Cy=e.memoize(function(){return Gn("PromiseLike",1)}),Ey=e.memoize(tm),ey=e.memoize(function(){return qn("Promise")}),ty=e.memoize(function(){return Hn("Promise",107455,void 0)&&ey()}),Ty=e.memoize(function(){return Gn("PromiseConstructorLike")}),Ny=e.memoize(rm),py=e.memoize(function(){return Gn("TemplateStringsArray")}),pg>=2?(fy=e.memoize(function(){return Gn("Symbol")}),my=e.memoize(function(){return Gn("Iterable",1)}),gy=e.memoize(function(){return Gn("Iterator",1)}),yy=e.memoize(function(){return Gn("IterableIterator",1)})):(fy=e.memoize(function(){return Hg}),my=e.memoize(function(){return Qg}),gy=e.memoize(function(){return Qg}),yy=e.memoize(function(){return Qg})),_y=ea(Pg),ly=ea(Fg);var b=Hn("ReadonlyArray",793064,void 0);iy=b&&Un(b,1),dy=iy?Yn(iy,[Pg]):_y}function Zf(t,r){if((ng&r)!==r&&dg.importHelpers){var n=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(n,dg)){var a=em(n,t);if(a!==Ag)for(var i=r&~ng,o=1;o<=128;o<<=1)if(i&o){var s=$f(o),c=D(a.exports,e.escapeIdentifier(s),107455);c||_(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1,e.externalHelpersModuleNameText,s)}ng|=r}}}function $f(e){switch(e){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";case 16:return"__metadata";case 32:return"__param";case 64:return"__awaiter";case 128:return"__generator"}}function em(t,r){return ag||(ag=ne(t,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,r)||Ag),ag}function tm(){var e=Cy();return e!==Qg?Fn(e,[Pg]):Hg}function rm(){var e=l(67108868,"then");h(e).type=ny;var t=xe(16);return t.properties=[e],t.members=_r(t.properties),t.callSignatures=[],t.constructSignatures=[],t}function nm(t){if(!t.decorators)return!1;if(!e.nodeCanBeDecorated(t))return 149!==t.kind||e.nodeIsPresent(t.body)?Vm(t,e.Diagnostics.Decorators_are_not_valid_here):Vm(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(151===t.kind||152===t.kind){var r=e.getAllAccessorDeclarations(t.parent.members,t);if(r.firstAccessor.decorators&&t===r.secondAccessor)return Vm(t,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}function am(t){var r=im(t);if(void 0!==r)return r;for(var n,a,i,o,s,c,u=0,_=0,l=t.modifiers;_<l.length;_++){var d=l[_];if(130!==d.kind){if(146===t.kind||148===t.kind)return qm(d,e.Diagnostics._0_modifier_cannot_appear_on_a_type_member,e.tokenToString(d.kind));if(155===t.kind)return qm(d,e.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,e.tokenToString(d.kind))}switch(d.kind){case 75:if(229!==t.kind&&226===t.parent.kind)return qm(t,e.Diagnostics.A_class_member_cannot_have_the_0_keyword,e.tokenToString(75));break;case 113:case 112:case 111:var p=Ue(e.modifierToFlag(d.kind));if(112===d.kind?i=d:111===d.kind&&(a=d),28&u)return qm(d,e.Diagnostics.Accessibility_modifier_already_seen);if(32&u)return qm(d,e.Diagnostics._0_modifier_must_precede_1_modifier,p,"static");if(64&u)return qm(d,e.Diagnostics._0_modifier_must_precede_1_modifier,p,"readonly");if(256&u)return qm(d,e.Diagnostics._0_modifier_must_precede_1_modifier,p,"async");if(231===t.parent.kind||261===t.parent.kind)return qm(d,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,p);if(128&u)return 111===d.kind?qm(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,p,"abstract"):qm(d,e.Diagnostics._0_modifier_must_precede_1_modifier,p,"abstract");u|=e.modifierToFlag(d.kind);break;case 114:if(32&u)return qm(d,e.Diagnostics._0_modifier_already_seen,"static");if(64&u)return qm(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(256&u)return qm(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(231===t.parent.kind||261===t.parent.kind)return qm(d,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(144===t.kind)return qm(d,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(128&u)return qm(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");u|=32,n=d;break;case 130:if(64&u)return qm(d,e.Diagnostics._0_modifier_already_seen,"readonly");if(147!==t.kind&&146!==t.kind&&155!==t.kind&&144!==t.kind)return qm(d,e.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);u|=64,c=d;break;case 83:if(1&u)return qm(d,e.Diagnostics._0_modifier_already_seen,"export");if(2&u)return qm(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(128&u)return qm(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(256&u)return qm(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(226===t.parent.kind)return qm(d,e.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"export");if(144===t.kind)return qm(d,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");u|=1;break;case 123:if(2&u)return qm(d,e.Diagnostics._0_modifier_already_seen,"declare");if(256&u)return qm(d,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");
if(226===t.parent.kind)return qm(d,e.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"declare");if(144===t.kind)return qm(d,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(e.isInAmbientContext(t.parent)&&231===t.parent.kind)return qm(d,e.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);u|=2,o=d;break;case 116:if(128&u)return qm(d,e.Diagnostics._0_modifier_already_seen,"abstract");if(226!==t.kind){if(149!==t.kind&&147!==t.kind&&151!==t.kind&&152!==t.kind)return qm(d,e.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(226===t.parent.kind&&128&e.getModifierFlags(t.parent)))return qm(d,e.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(32&u)return qm(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(8&u)return qm(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract")}u|=128;break;case 119:if(256&u)return qm(d,e.Diagnostics._0_modifier_already_seen,"async");if(2&u||e.isInAmbientContext(t.parent))return qm(d,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(144===t.kind)return qm(d,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");u|=256,s=d}}return 150!==t.kind?(235===t.kind||234===t.kind)&&2&u?qm(o,e.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):144===t.kind&&92&u&&e.isBindingPattern(t.name)?qm(t,e.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern):144===t.kind&&92&u&&t.dotDotDotToken?qm(t,e.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter):256&u?cm(t,s):void 0:32&u?qm(n,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):128&u?qm(n,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"abstract"):256&u?qm(s,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):64&u?qm(c,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"readonly"):void 0}function im(t){return!!t.modifiers&&(om(t)?Vm(t,e.Diagnostics.Modifiers_cannot_appear_here):void 0)}function om(t){switch(t.kind){case 151:case 152:case 150:case 147:case 146:case 149:case 148:case 155:case 230:case 235:case 234:case 241:case 240:case 184:case 185:case 144:return!1;default:if(231===t.parent.kind||261===t.parent.kind)return!1;switch(t.kind){case 225:return sm(t,119);case 226:return sm(t,116);case 227:case 205:case 228:return!0;case 229:return sm(t,75);default:return e.Debug.fail(),!1}}}function sm(e,t){return e.modifiers.length>1||e.modifiers[0].kind!==t}function cm(t,r){switch(t.kind){case 149:case 225:case 184:case 185:if(!t.asteriskToken)return!1}return qm(r,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}function um(t){if(t&&t.hasTrailingComma){var r=t.end-",".length,n=t.end,a=e.getSourceFileOfNode(t[0]);return Um(a,r,n-r,e.Diagnostics.Trailing_comma_not_allowed)}}function _m(t,r){if(um(t))return!0;if(t&&0===t.length){var n=t.pos-"<".length,a=e.skipTrivia(r.text,t.end)+">".length;return Um(r,n,a-n,e.Diagnostics.Type_parameter_list_cannot_be_empty)}}function lm(t){for(var r=!1,n=t.length,a=0;a<n;a++){var i=t[a];if(i.dotDotDotToken){if(a!==n-1)return qm(i.dotDotDotToken,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(e.isBindingPattern(i.name))return qm(i.name,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern);if(i.questionToken)return qm(i.questionToken,e.Diagnostics.A_rest_parameter_cannot_be_optional);if(i.initializer)return qm(i.name,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(i.questionToken){if(r=!0,i.initializer)return qm(i.name,e.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(r&&!i.initializer)return qm(i.name,e.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter)}}function dm(t){var r=e.getSourceFileOfNode(t);return nm(t)||am(t)||_m(t.typeParameters,r)||lm(t.parameters)||pm(t,r)}function pm(t,r){if(185===t.kind){var n=t,a=e.getLineAndCharacterOfPosition(r,n.equalsGreaterThanToken.pos).line,i=e.getLineAndCharacterOfPosition(r,n.equalsGreaterThanToken.end).line;if(a!==i)return qm(n.equalsGreaterThanToken,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}return!1}function fm(t){var r=t.parameters[0];return 1!==t.parameters.length?r?qm(r.name,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter):qm(t,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter):r.dotDotDotToken?qm(r.dotDotDotToken,e.Diagnostics.An_index_signature_cannot_have_a_rest_parameter):0!==e.getModifierFlags(r)?qm(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier):r.questionToken?qm(r.questionToken,e.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark):r.initializer?qm(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer):r.type?134!==r.type.kind&&132!==r.type.kind?qm(r.name,e.Diagnostics.An_index_signature_parameter_type_must_be_string_or_number):t.type?void 0:qm(t,e.Diagnostics.An_index_signature_must_have_a_type_annotation):qm(r.name,e.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation)}function mm(e){return nm(e)||am(e)||fm(e)}function gm(t,r){if(r&&0===r.length){var n=e.getSourceFileOfNode(t),a=r.pos-"<".length,i=e.skipTrivia(n.text,r.end)+">".length;return Um(n,a,i-a,e.Diagnostics.Type_argument_list_cannot_be_empty)}}function ym(e,t){return um(t)||gm(e,t)}function vm(t,r){if(r)for(var n=e.getSourceFileOfNode(t),a=0,i=r;a<i.length;a++){var o=i[a];if(198===o.kind)return Um(n,o.pos,0,e.Diagnostics.Argument_expression_expected)}}function hm(e,t){return vm(e,t)}function bm(t){var r=t.types;if(um(r))return!0;if(r&&0===r.length){var n=e.tokenToString(t.token),a=e.getSourceFileOfNode(t);return Um(a,r.pos,0,e.Diagnostics._0_list_cannot_be_empty,n)}}function km(t){var r=!1,n=!1;if(!nm(t)&&!am(t)&&t.heritageClauses)for(var a=0,i=t.heritageClauses;a<i.length;a++){var o=i[a];if(84===o.token){if(r)return Vm(o,e.Diagnostics.extends_clause_already_seen);if(n)return Vm(o,e.Diagnostics.extends_clause_must_precede_implements_clause);if(o.types.length>1)return Vm(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);r=!0}else{if(e.Debug.assert(107===o.token),n)return Vm(o,e.Diagnostics.implements_clause_already_seen);n=!0}bm(o)}}function xm(t){var r=!1;if(t.heritageClauses)for(var n=0,a=t.heritageClauses;n<a.length;n++){var i=a[n];if(84!==i.token)return e.Debug.assert(107===i.token),Vm(i,e.Diagnostics.Interface_declaration_cannot_have_implements_clause);if(r)return Vm(i,e.Diagnostics.extends_clause_already_seen);r=!0,bm(i)}return!1}function Dm(t){if(142!==t.kind)return!1;var r=t;return 192===r.expression.kind&&25===r.expression.operatorToken.kind?qm(r.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name):void 0}function Sm(t){if(t.asteriskToken){if(e.Debug.assert(225===t.kind||184===t.kind||149===t.kind),e.isInAmbientContext(t))return qm(t.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!t.body)return qm(t.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator);if(pg<2)return qm(t.asteriskToken,e.Diagnostics.Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher)}}function Cm(e,t){if(e)return qm(e,t)}function Em(t,r){for(var n=e.createMap(),a=1,i=2,o=4,s=i|o,c=0,u=t.properties;c<u.length;c++){var _=u[c];if(259!==_.kind){var l=_.name;if(142===l.kind&&Dm(l),258===_.kind&&!r&&_.objectAssignmentInitializer)return qm(_.equalsToken,e.Diagnostics.can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment);if(_.modifiers)for(var d=0,p=_.modifiers;d<p.length;d++){var f=p[d];119===f.kind&&149===_.kind||qm(f,e.Diagnostics._0_modifier_cannot_be_used_here,e.getTextOfNode(f))}var m=void 0;257===_.kind||258===_.kind?(Cm(_.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional),8===l.kind&&$m(l),m=a):149===_.kind?m=a:151===_.kind?m=i:152===_.kind?m=o:e.Debug.fail("Unexpected syntax kind:"+_.kind);var g=e.getPropertyNameForPropertyNameNode(l);if(void 0!==g)if(n[g]){var y=n[g];if(m===a&&y===a)qm(l,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(l));else{if(!(m&s&&y&s))return qm(l,e.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(y===s||m===y)return qm(l,e.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);n[g]=m|y}}else n[g]=m}}}function Tm(t){for(var r=e.createMap(),n=0,a=t.attributes;n<a.length;n++){var i=a[n];if(251!==i.kind){var o=i,s=o.name;if(r[s.text])return qm(s,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);r[s.text]=!0;var c=o.initializer;if(c&&252===c.kind&&!c.expression)return qm(o.initializer,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}}function Nm(t){if(Zm(t))return!0;if(224===t.initializer.kind){var r=t.initializer;if(!Km(r)){var n=r.declarations;if(!n.length)return!1;if(n.length>1){var a=212===t.kind?e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return Vm(r.declarations[1],a)}var i=n[0];if(i.initializer){var a=212===t.kind?e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return qm(i.name,a)}if(i.type){var a=212===t.kind?e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:e.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return qm(i,a)}}}return!1}function Am(t){var r=t.kind;if(pg<1)return qm(t.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(e.isInAmbientContext(t))return qm(t.name,e.Diagnostics.An_accessor_cannot_be_declared_in_an_ambient_context);if(!(void 0!==t.body||128&e.getModifierFlags(t)))return Um(e.getSourceFileOfNode(t),t.end-1,";".length,e.Diagnostics._0_expected,"{");if(t.body&&128&e.getModifierFlags(t))return qm(t,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(t.typeParameters)return qm(t.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!wm(t))return qm(t.name,151===r?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(152===r){if(t.type)return qm(t.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var n=t.parameters[0];if(n.dotDotDotToken)return qm(n.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(n.questionToken)return qm(n.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(n.initializer)return qm(t.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}}function wm(e){return Pm(e)||e.parameters.length===(151===e.kind?0:1)}function Pm(t){if(t.parameters.length===(151===t.kind?1:2))return e.getThisParameter(t)}function Fm(t,r){if(e.isDynamicName(t))return qm(t,r)}function Om(t){if(Bd(t)||dm(t)||Sm(t))return!0;if(176===t.parent.kind){if(Cm(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(void 0===t.body)return Um(e.getSourceFileOfNode(t),t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(e.isClassLike(t.parent)){if(e.isInAmbientContext(t))return Fm(t.name,e.Diagnostics.A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol);if(!t.body)return Fm(t.name,e.Diagnostics.A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol)}else{if(227===t.parent.kind)return Fm(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol);if(161===t.parent.kind)return Fm(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol)}}function Im(t){for(var r=t;r;){if(e.isFunctionLike(r))return qm(t,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(r.kind){case 219:if(t.label&&r.label.text===t.label.text){var n=214===t.kind&&!e.isIterationStatement(r.statement,!0);return!!n&&qm(t,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement)}break;case 218:if(215===t.kind&&!t.label)return!1;break;default:if(e.isIterationStatement(r,!1)&&!t.label)return!1}r=r.parent}if(t.label){var a=215===t.kind?e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return qm(t,a)}var a=215===t.kind?e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return qm(t,a)}function Rm(t){if(t.dotDotDotToken){var r=t.parent.elements;if(t!==e.lastOrUndefined(r))return qm(t,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(173===t.name.kind||172===t.name.kind)return qm(t.name,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern);if(t.initializer)return Um(e.getSourceFileOfNode(t),t.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}function Lm(e){return 9===e.kind||8===e.kind||190===e.kind&&37===e.operator&&8===e.operand.kind}function Mm(t){if(212!==t.parent.parent.kind&&213!==t.parent.parent.kind)if(e.isInAmbientContext(t)){if(t.initializer){if(!e.isConst(t)||t.type){var r="=".length;return Um(e.getSourceFileOfNode(t),t.initializer.pos-r,r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}if(!Lm(t.initializer))return qm(t.initializer,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal)}if(t.initializer&&(!e.isConst(t)||!Lm(t.initializer))){var r="=".length;return Um(e.getSourceFileOfNode(t),t.initializer.pos-r,r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return qm(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isConst(t))return qm(t,e.Diagnostics.const_declarations_must_be_initialized)}var n=e.isLet(t)||e.isConst(t);return n&&Bm(t.name)}function Bm(t){if(70===t.kind){if(109===t.originalKeywordKind)return qm(t,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else for(var r=t.elements,n=0,a=r;n<a.length;n++){var i=a[n];e.isOmittedExpression(i)||Bm(i.name)}}function Km(t){var r=t.declarations;return!!um(t.declarations)||(t.declarations.length?void 0:Um(e.getSourceFileOfNode(t),r.pos,r.end-r.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty))}function Jm(e){switch(e.kind){case 208:case 209:case 210:case 217:case 211:case 212:case 213:return!1;case 219:return Jm(e.parent)}return!0}function zm(t){if(!Jm(t.parent)){if(e.isLet(t.declarationList))return qm(t,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);if(e.isConst(t.declarationList))return qm(t,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}}function jm(e){return e.parseDiagnostics.length>0}function Vm(t,r,n,a,i){var o=e.getSourceFileOfNode(t);if(!jm(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return iv.add(e.createFileDiagnostic(o,s.start,s.length,r,n,a,i)),!0}}function Um(t,r,n,a,i,o,s){if(!jm(t))return iv.add(e.createFileDiagnostic(t,r,n,a,i,o,s)),!0}function qm(t,r,n,a,i){var o=e.getSourceFileOfNode(t);if(!jm(o))return iv.add(e.createDiagnosticForNode(t,r,n,a,i)),!0}function Wm(t){if(t.typeParameters)return Um(e.getSourceFileOfNode(t),t.typeParameters.pos,t.typeParameters.end-t.typeParameters.pos,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}function Hm(t){if(t.type)return qm(t.type,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}function Gm(t){if(e.isClassLike(t.parent)){if(Fm(t.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol))return!0}else if(227===t.parent.kind){if(Fm(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol))return!0;if(t.initializer)return qm(t.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(161===t.parent.kind){if(Fm(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol))return!0;if(t.initializer)return qm(t.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(e.isInAmbientContext(t)&&t.initializer)return Vm(t.initializer,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}function Xm(t){return!(227===t.kind||228===t.kind||235===t.kind||234===t.kind||241===t.kind||240===t.kind||233===t.kind||515&e.getModifierFlags(t))&&Vm(t,e.Diagnostics.A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file)}function Qm(t){for(var r=0,n=t.statements;r<n.length;r++){var a=n[r];if((e.isDeclaration(a)||205===a.kind)&&Xm(a))return!0}}function Ym(t){return e.isInAmbientContext(t)&&Qm(t)}function Zm(t){if(e.isInAmbientContext(t)){if(kp(t.parent.kind))return b(t).hasReportedStatementInAmbientContext=!0;var r=b(t);if(!r.hasReportedStatementInAmbientContext&&e.isFunctionLike(t.parent))return b(t).hasReportedStatementInAmbientContext=Vm(t,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(204===t.parent.kind||231===t.parent.kind||261===t.parent.kind){var n=b(t.parent);if(!n.hasReportedStatementInAmbientContext)return n.hasReportedStatementInAmbientContext=Vm(t,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}}function $m(t){if(t.isOctalLiteral){var r=void 0;if(pg>=1?r=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfLiteralType(t)&&(r=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0),r){var n=e.isPrefixUnaryExpression(t.parent)&&37===t.parent.operator,a=(n?"-":"")+"0o"+t.text;return qm(n?t.parent:t,r,a)}}}function eg(t,r,n,a,i){var o=e.getSourceFileOfNode(t);if(!jm(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return iv.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,r,n,a,i)),!0}}function tg(){var e=[];for(var t in Ky)a.test(t)&&e.push(Ky[t]);return e}var rg,ng,ag,ig=e.objectAllocator.getSymbolConstructor(),og=e.objectAllocator.getTypeConstructor(),sg=e.objectAllocator.getSignatureConstructor(),cg=0,ug=0,_g=[],lg=e.createMap(),dg=n.getCompilerOptions(),pg=dg.target||0,fg=e.getEmitModuleKind(dg),mg=!!dg.noUnusedLocals||!!dg.noUnusedParameters,gg="undefined"!=typeof dg.allowSyntheticDefaultImports?dg.allowSyntheticDefaultImports:fg===e.ModuleKind.System,yg=dg.strictNullChecks,vg=Xf(),hg=l(67108868,"undefined");hg.declarations=[];var bg=l(67108868,"arguments"),kg={getNodeCount:function(){return e.sum(n.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(n.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(n.getSourceFiles(),"symbolCount")+ug},getTypeCount:function(){return cg},isUndefinedSymbol:function(e){return e===hg},isArgumentsSymbol:function(e){return e===bg},isUnknownSymbol:function(e){return e===Ag},getDiagnostics:Xp,getGlobalDiagnostics:Yp,getTypeOfSymbolAtLocation:Gs,getSymbolsOfParameterPropertyDeclaration:S,getDeclaredTypeOfSymbol:ar,getPropertiesOfType:jr,getPropertyOfType:Gr,getSignaturesOfType:Qr,getIndexTypeOfType:en,getBaseTypes:Ut,getReturnTypeOfSignature:mn,getNonNullableType:mo,getSymbolsInScope:ef,getSymbolAtLocation:lf,getShorthandAssignmentValueSymbol:df,getExportSpecifierLocalTargetSymbol:pf,getTypeAtLocation:ff,getPropertySymbolOfDestructuringAssignment:gf,typeToString:ze,getSymbolDisplayBuilder:Ge,symbolToString:Ke,getAugmentedPropertiesOfType:hf,getRootSymbols:bf,getContextualType:Oc,getFullyQualifiedName:$,getResolvedSignature:c_,getConstantValue:Mf,isValidPropertyAccess:Tu,getSignatureFromDeclaration:_n,isImplementationOfOverload:If,getAliasedSymbol:X,getEmitResolver:u,getExportsOfModule:se,getAmbientModules:tg,getJsxElementAttributesType:_u,getJsxIntrinsicTagNames:pu,isOptionalParameter:cn,tryGetMemberInModuleExports:ce,tryFindAmbientModuleWithoutAugmentations:function(e){return sn(e,!1)}},xg=[],Dg=e.createMap(),Sg=e.createMap(),Cg=e.createMap(),Eg=e.createMap(),Tg=e.createMap(),Ng=[],Ag=l(67108868,"unknown"),wg=l(67108864,"__resolving__"),Pg=be(1,"any"),Fg=be(1,"any"),Og=be(1,"unknown"),Ig=be(2048,"undefined"),Rg=yg?Ig:be(2099200,"undefined"),Lg=be(4096,"null"),Mg=yg?Lg:be(2101248,"null"),Bg=be(2,"string"),Kg=be(4,"number"),Jg=be(128,"true"),zg=be(128,"false"),jg=ke([Jg,zg]),Vg=be(512,"symbol"),Ug=be(1024,"void"),qg=be(8192,"never"),Wg=be(8192,"never"),Hg=Ee(void 0,lg,_g,_g,void 0,void 0),Gg=l(67110912,"__type");Gg.members=e.createMap();var Xg=Ee(Gg,lg,_g,_g,void 0,void 0),Qg=Ee(void 0,lg,_g,_g,void 0,void 0);Qg.instantiations=e.createMap();var Yg=Ee(void 0,lg,_g,_g,void 0,void 0);Yg.flags|=8388608;var Zg,$g,ey,ty,ry,ny,ay,iy,oy,sy,cy,uy,_y,ly,dy,py,fy,my,gy,yy,vy,hy,by,ky,xy,Dy,Sy,Cy,Ey,Ty,Ny,Ay,wy,Py,Fy,Oy=Ee(void 0,lg,_g,_g,void 0,void 0),Iy=vr(void 0,void 0,void 0,_g,Pg,void 0,0,!1,!1),Ry=vr(void 0,void 0,void 0,_g,Og,void 0,0,!1,!1),Ly=vr(void 0,void 0,void 0,_g,Pg,void 0,0,!1,!1),My=vr(void 0,void 0,void 0,_g,Wg,void 0,0,!1,!1),By=Dn(Bg,!0),Ky=e.createMap(),Jy=0,zy=0,jy=0,Vy=za(32,""),Uy=za(64,"0"),qy=[],Wy=[],Hy=[],Gy=[],Xy=[],Qy=[],Yy=[],Zy=[],$y=[],ev=[],tv=[],rv=[],nv=[],av=[],iv=e.createDiagnosticCollection();!function(e){e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBoolean=4]="TypeofEQBoolean",e[e.TypeofEQSymbol=8]="TypeofEQSymbol",e[e.TypeofEQObject=16]="TypeofEQObject",e[e.TypeofEQFunction=32]="TypeofEQFunction",e[e.TypeofEQHostObject=64]="TypeofEQHostObject",e[e.TypeofNEString=128]="TypeofNEString",e[e.TypeofNENumber=256]="TypeofNENumber",e[e.TypeofNEBoolean=512]="TypeofNEBoolean",e[e.TypeofNESymbol=1024]="TypeofNESymbol",e[e.TypeofNEObject=2048]="TypeofNEObject",e[e.TypeofNEFunction=4096]="TypeofNEFunction",e[e.TypeofNEHostObject=8192]="TypeofNEHostObject",e[e.EQUndefined=16384]="EQUndefined",e[e.EQNull=32768]="EQNull",e[e.EQUndefinedOrNull=65536]="EQUndefinedOrNull",e[e.NEUndefined=131072]="NEUndefined",e[e.NENull=262144]="NENull",e[e.NEUndefinedOrNull=524288]="NEUndefinedOrNull",e[e.Truthy=1048576]="Truthy",e[e.Falsy=2097152]="Falsy",e[e.Discriminatable=4194304]="Discriminatable",e[e.All=8388607]="All",e[e.BaseStringStrictFacts=933633]="BaseStringStrictFacts",e[e.BaseStringFacts=3145473]="BaseStringFacts",e[e.StringStrictFacts=4079361]="StringStrictFacts",e[e.StringFacts=4194049]="StringFacts",e[e.EmptyStringStrictFacts=3030785]="EmptyStringStrictFacts",e[e.EmptyStringFacts=3145473]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=1982209]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=4194049]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=933506]="BaseNumberStrictFacts",e[e.BaseNumberFacts=3145346]="BaseNumberFacts",e[e.NumberStrictFacts=4079234]="NumberStrictFacts",e[e.NumberFacts=4193922]="NumberFacts",e[e.ZeroStrictFacts=3030658]="ZeroStrictFacts",e[e.ZeroFacts=3145346]="ZeroFacts",e[e.NonZeroStrictFacts=1982082]="NonZeroStrictFacts",e[e.NonZeroFacts=4193922]="NonZeroFacts",e[e.BaseBooleanStrictFacts=933252]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=3145092]="BaseBooleanFacts",e[e.BooleanStrictFacts=4078980]="BooleanStrictFacts",e[e.BooleanFacts=4193668]="BooleanFacts",e[e.FalseStrictFacts=3030404]="FalseStrictFacts",e[e.FalseFacts=3145092]="FalseFacts",e[e.TrueStrictFacts=1981828]="TrueStrictFacts",e[e.TrueFacts=4193668]="TrueFacts",e[e.SymbolStrictFacts=1981320]="SymbolStrictFacts",e[e.SymbolFacts=4193160]="SymbolFacts",e[e.ObjectStrictFacts=6166480]="ObjectStrictFacts",e[e.ObjectFacts=8378320]="ObjectFacts",e[e.FunctionStrictFacts=6164448]="FunctionStrictFacts",e[e.FunctionFacts=8376288]="FunctionFacts",e[e.UndefinedFacts=2457472]="UndefinedFacts",e[e.NullFacts=2340752]="NullFacts"}(Fy||(Fy={}));var ov,sv,cv,uv,_v,lv=e.createMap({string:1,number:2,"boolean":4,symbol:8,undefined:16384,object:16,"function":32}),dv=e.createMap({string:128,number:256,"boolean":512,symbol:1024,undefined:131072,object:2048,"function":4096}),pv=e.createMap({string:Bg,number:Kg,"boolean":jg,symbol:Vg,undefined:Ig}),fv=e.createMap(),mv={JSX:"JSX",IntrinsicElements:"IntrinsicElements",ElementClass:"ElementClass",ElementAttributesPropertyNameContainer:"ElementAttributesProperty",Element:"Element",IntrinsicAttributes:"IntrinsicAttributes",IntrinsicClassAttributes:"IntrinsicClassAttributes"},gv=e.createMap(),yv=e.createMap(),vv=e.createMap(),hv=e.createMap(),bv=e.createMap();!function(e){e[e.Type=0]="Type",e[e.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",e[e.DeclaredType=2]="DeclaredType",e[e.ResolvedReturnType=3]="ResolvedReturnType"}(_v||(_v={}));var kv=e.createMap();return kv[hg.name]=hg,Yf(),kg}var a=/^".+"$/,i=1,o=1,s=1,c=1;e.getNodeId=t,e.getSymbolId=r,e.createTypeChecker=n}(ts||(ts={}));var ts;!function(e){function t(e,t,r){return e?t(r,e):r}function r(e,t,r){return e?t(r,e):r}function n(n,a,i,o){if(void 0===n)return a;var s=o?r:e.reduceLeft,c=o||i,u=n.kind;if(u>0&&u<=140)return a;if(u>=156&&u<=171)return a;var _=a;switch(n.kind){case 203:case 206:case 198:case 222:case 293:break;case 142:_=t(n.expression,i,_);break;case 144:_=s(n.decorators,c,_),_=s(n.modifiers,c,_),_=t(n.name,i,_),_=t(n.type,i,_),_=t(n.initializer,i,_);break;case 145:_=t(n.expression,i,_);break;case 147:_=s(n.decorators,c,_),_=s(n.modifiers,c,_),_=t(n.name,i,_),_=t(n.type,i,_),_=t(n.initializer,i,_);break;case 149:_=s(n.decorators,c,_),_=s(n.modifiers,c,_),_=t(n.name,i,_),_=s(n.typeParameters,c,_),_=s(n.parameters,c,_),_=t(n.type,i,_),_=t(n.body,i,_);break;case 150:_=s(n.modifiers,c,_),_=s(n.parameters,c,_),_=t(n.body,i,_);break;case 151:_=s(n.decorators,c,_),_=s(n.modifiers,c,_),_=t(n.name,i,_),_=s(n.parameters,c,_),_=t(n.type,i,_),_=t(n.body,i,_);break;case 152:_=s(n.decorators,c,_),_=s(n.modifiers,c,_),_=t(n.name,i,_),_=s(n.parameters,c,_),_=t(n.body,i,_);break;case 172:case 173:_=s(n.elements,c,_);break;case 174:_=t(n.propertyName,i,_),_=t(n.name,i,_),_=t(n.initializer,i,_);break;case 175:_=s(n.elements,c,_);break;case 176:_=s(n.properties,c,_);break;case 177:_=t(n.expression,i,_),_=t(n.name,i,_);break;case 178:_=t(n.expression,i,_),_=t(n.argumentExpression,i,_);break;case 179:_=t(n.expression,i,_),_=s(n.typeArguments,c,_),_=s(n.arguments,c,_);break;case 180:_=t(n.expression,i,_),_=s(n.typeArguments,c,_),_=s(n.arguments,c,_);break;case 181:_=t(n.tag,i,_),_=t(n.template,i,_);break;case 184:_=s(n.modifiers,c,_),_=t(n.name,i,_),_=s(n.typeParameters,c,_),_=s(n.parameters,c,_),_=t(n.type,i,_),_=t(n.body,i,_);break;case 185:_=s(n.modifiers,c,_),_=s(n.typeParameters,c,_),_=s(n.parameters,c,_),_=t(n.type,i,_),_=t(n.body,i,_);break;case 183:case 186:case 187:case 188:case 189:case 195:case 196:case 201:_=t(n.expression,i,_);break;case 190:case 191:_=t(n.operand,i,_);break;case 192:_=t(n.left,i,_),_=t(n.right,i,_);break;case 193:_=t(n.condition,i,_),_=t(n.whenTrue,i,_),_=t(n.whenFalse,i,_);break;case 194:_=t(n.head,i,_),_=s(n.templateSpans,c,_);break;case 197:_=s(n.modifiers,c,_),_=t(n.name,i,_),_=s(n.typeParameters,c,_),_=s(n.heritageClauses,c,_),_=s(n.members,c,_);break;case 199:_=t(n.expression,i,_),_=s(n.typeArguments,c,_);break;case 202:_=t(n.expression,i,_),_=t(n.literal,i,_);break;case 204:_=s(n.statements,c,_);break;case 205:_=s(n.modifiers,c,_),_=t(n.declarationList,i,_);break;case 207:_=t(n.expression,i,_);break;case 208:_=t(n.expression,i,_),_=t(n.thenStatement,i,_),_=t(n.elseStatement,i,_);break;case 209:_=t(n.statement,i,_),_=t(n.expression,i,_);break;case 210:case 217:_=t(n.expression,i,_),_=t(n.statement,i,_);break;case 211:_=t(n.initializer,i,_),_=t(n.condition,i,_),_=t(n.incrementor,i,_),_=t(n.statement,i,_);break;case 212:case 213:_=t(n.initializer,i,_),_=t(n.expression,i,_),_=t(n.statement,i,_);break;case 216:case 220:_=t(n.expression,i,_);break;case 218:_=t(n.expression,i,_),_=t(n.caseBlock,i,_);break;case 219:_=t(n.label,i,_),_=t(n.statement,i,_);break;case 221:_=t(n.tryBlock,i,_),_=t(n.catchClause,i,_),_=t(n.finallyBlock,i,_);break;case 223:_=t(n.name,i,_),_=t(n.type,i,_),_=t(n.initializer,i,_);break;case 224:_=s(n.declarations,c,_);break;case 225:_=s(n.decorators,c,_),_=s(n.modifiers,c,_),_=t(n.name,i,_),_=s(n.typeParameters,c,_),_=s(n.parameters,c,_),_=t(n.type,i,_),_=t(n.body,i,_);break;case 226:_=s(n.decorators,c,_),_=s(n.modifiers,c,_),_=t(n.name,i,_),_=s(n.typeParameters,c,_),_=s(n.heritageClauses,c,_),_=s(n.members,c,_);break;case 232:_=s(n.clauses,c,_);break;case 235:_=s(n.decorators,c,_),_=s(n.modifiers,c,_),_=t(n.importClause,i,_),_=t(n.moduleSpecifier,i,_);break;case 236:_=t(n.name,i,_),_=t(n.namedBindings,i,_);break;case 237:_=t(n.name,i,_);break;case 238:case 242:_=s(n.elements,c,_);break;case 239:case 243:_=t(n.propertyName,i,_),_=t(n.name,i,_);break;case 240:_=e.reduceLeft(n.decorators,i,_),_=e.reduceLeft(n.modifiers,i,_),_=t(n.expression,i,_);break;case 241:_=e.reduceLeft(n.decorators,i,_),_=e.reduceLeft(n.modifiers,i,_),_=t(n.exportClause,i,_),_=t(n.moduleSpecifier,i,_);break;case 246:_=t(n.openingElement,i,_),_=e.reduceLeft(n.children,i,_),_=t(n.closingElement,i,_);break;case 247:case 248:_=t(n.tagName,i,_),_=s(n.attributes,c,_);break;case 249:_=t(n.tagName,i,_);break;case 250:_=t(n.name,i,_),_=t(n.initializer,i,_);break;case 251:_=t(n.expression,i,_);break;case 252:_=t(n.expression,i,_);break;case 253:_=t(n.expression,i,_);case 254:_=s(n.statements,c,_);break;case 255:_=s(n.types,c,_);break;case 256:_=t(n.variableDeclaration,i,_),_=t(n.block,i,_);break;case 257:_=t(n.name,i,_),_=t(n.initializer,i,_);break;case 258:_=t(n.name,i,_),_=t(n.objectAssignmentInitializer,i,_);break;case 259:_=t(n.expression,i,_);break;case 261:_=s(n.statements,c,_);break;case 294:_=t(n.expression,i,_);break;default:var l=b[u];if(l)for(var d=0,p=l;d<p.length;d++){var f=p[d],m=n[f.name];void 0!==m&&(_=e.isArray(m)?s(m,c,_):i(_,m))}}return _}function a(t,r,n,a,i,o,s){if(void 0===t||void 0===r)return t;f(t);var c=r(t);if(c===t)return t;var u;return void 0===c?void(a||k.failNotOptional()):(u=e.isArray(c)?(i||p)(c):c,void 0!==o&&(u=o(u,s)),k.assertNode(u,n),f(u),u)}function i(t,r,n,a,i,o,s){if(void 0!==t){var c,u=t.length;(void 0===a||a<0)&&(a=0),(void 0===i||i>u-a)&&(i=u-a),(a>0||i<u)&&(c=e.createNodeArray([],void 0,t.hasTrailingComma&&a+i===u));for(var _=0;_<i;_++){var l=t[_+a];f(l);var d=void 0!==l?r(l):void 0;if((void 0!==c||void 0===d||d!==l)&&(void 0===c&&(c=e.createNodeArray(t.slice(0,_),t,t.hasTrailingComma)),d))if(e.isArray(d))for(var p=0,m=d;p<m.length;p++){var g=m[p];g=o?o(g,s):g,k.assertNode(g,n),f(g),c.push(g)}else{var g=o?o(d,s):d;k.assertNode(g,n),f(g),c.push(g)}}return c||t}}function o(t,r,n,a,o){n.startLexicalEnvironment(),t=i(t,r,e.isStatement,a),o&&!e.startsWithUseStrict(t)&&(t=e.createNodeArray([e.createStatement(e.createLiteral("use strict"))].concat(t),t));var s=n.endLexicalEnvironment();return e.createNodeArray(e.concatenate(t,s),t)}function s(t,r,n){n.startLexicalEnvironment();var a=i(t,r,e.isParameterDeclaration);return n.suspendLexicalEnvironment(),a}function c(t,r,n){n.resumeLexicalEnvironment();var i=a(t,r,e.isConciseBody),o=n.endLexicalEnvironment();if(e.some(o)){var s=e.convertToFunctionBody(i),c=_(s.statements,o);return e.updateBlock(s,c)}return i}function u(t,r,n){if(void 0!==t){var u=t.kind;if(u>0&&u<=140)return t;if(u>=156&&u<=171)return t;switch(t.kind){case 203:case 206:case 198:case 222:return t;case 142:return e.updateComputedPropertyName(t,a(t.expression,r,e.isExpression));case 144:return e.updateParameter(t,i(t.decorators,r,e.isDecorator),i(t.modifiers,r,e.isModifier),t.dotDotDotToken,a(t.name,r,e.isBindingName),a(t.type,r,e.isTypeNode,!0),a(t.initializer,r,e.isExpression,!0));
case 147:return e.updateProperty(t,i(t.decorators,r,e.isDecorator),i(t.modifiers,r,e.isModifier),a(t.name,r,e.isPropertyName),a(t.type,r,e.isTypeNode,!0),a(t.initializer,r,e.isExpression,!0));case 149:return e.updateMethod(t,i(t.decorators,r,e.isDecorator),i(t.modifiers,r,e.isModifier),a(t.name,r,e.isPropertyName),i(t.typeParameters,r,e.isTypeParameter),s(t.parameters,r,n),a(t.type,r,e.isTypeNode,!0),c(t.body,r,n));case 150:return e.updateConstructor(t,i(t.decorators,r,e.isDecorator),i(t.modifiers,r,e.isModifier),s(t.parameters,r,n),c(t.body,r,n));case 151:return e.updateGetAccessor(t,i(t.decorators,r,e.isDecorator),i(t.modifiers,r,e.isModifier),a(t.name,r,e.isPropertyName),s(t.parameters,r,n),a(t.type,r,e.isTypeNode,!0),c(t.body,r,n));case 152:return e.updateSetAccessor(t,i(t.decorators,r,e.isDecorator),i(t.modifiers,r,e.isModifier),a(t.name,r,e.isPropertyName),s(t.parameters,r,n),c(t.body,r,n));case 172:return e.updateObjectBindingPattern(t,i(t.elements,r,e.isBindingElement));case 173:return e.updateArrayBindingPattern(t,i(t.elements,r,e.isArrayBindingElement));case 174:return e.updateBindingElement(t,t.dotDotDotToken,a(t.propertyName,r,e.isPropertyName,!0),a(t.name,r,e.isBindingName),a(t.initializer,r,e.isExpression,!0));case 175:return e.updateArrayLiteral(t,i(t.elements,r,e.isExpression));case 176:return e.updateObjectLiteral(t,i(t.properties,r,e.isObjectLiteralElementLike));case 177:return e.updatePropertyAccess(t,a(t.expression,r,e.isExpression),a(t.name,r,e.isIdentifier));case 178:return e.updateElementAccess(t,a(t.expression,r,e.isExpression),a(t.argumentExpression,r,e.isExpression));case 179:return e.updateCall(t,a(t.expression,r,e.isExpression),i(t.typeArguments,r,e.isTypeNode),i(t.arguments,r,e.isExpression));case 180:return e.updateNew(t,a(t.expression,r,e.isExpression),i(t.typeArguments,r,e.isTypeNode),i(t.arguments,r,e.isExpression));case 181:return e.updateTaggedTemplate(t,a(t.tag,r,e.isExpression),a(t.template,r,e.isTemplateLiteral));case 183:return e.updateParen(t,a(t.expression,r,e.isExpression));case 184:return e.updateFunctionExpression(t,i(t.modifiers,r,e.isModifier),a(t.name,r,e.isPropertyName),i(t.typeParameters,r,e.isTypeParameter),s(t.parameters,r,n),a(t.type,r,e.isTypeNode,!0),c(t.body,r,n));case 185:return e.updateArrowFunction(t,i(t.modifiers,r,e.isModifier),i(t.typeParameters,r,e.isTypeParameter),s(t.parameters,r,n),a(t.type,r,e.isTypeNode,!0),c(t.body,r,n));case 186:return e.updateDelete(t,a(t.expression,r,e.isExpression));case 187:return e.updateTypeOf(t,a(t.expression,r,e.isExpression));case 188:return e.updateVoid(t,a(t.expression,r,e.isExpression));case 189:return e.updateAwait(t,a(t.expression,r,e.isExpression));case 192:return e.updateBinary(t,a(t.left,r,e.isExpression),a(t.right,r,e.isExpression));case 190:return e.updatePrefix(t,a(t.operand,r,e.isExpression));case 191:return e.updatePostfix(t,a(t.operand,r,e.isExpression));case 193:return e.updateConditional(t,a(t.condition,r,e.isExpression),a(t.whenTrue,r,e.isExpression),a(t.whenFalse,r,e.isExpression));case 194:return e.updateTemplateExpression(t,a(t.head,r,e.isTemplateHead),i(t.templateSpans,r,e.isTemplateSpan));case 195:return e.updateYield(t,a(t.expression,r,e.isExpression));case 196:return e.updateSpread(t,a(t.expression,r,e.isExpression));case 197:return e.updateClassExpression(t,i(t.modifiers,r,e.isModifier),a(t.name,r,e.isIdentifier,!0),i(t.typeParameters,r,e.isTypeParameter),i(t.heritageClauses,r,e.isHeritageClause),i(t.members,r,e.isClassElement));case 199:return e.updateExpressionWithTypeArguments(t,i(t.typeArguments,r,e.isTypeNode),a(t.expression,r,e.isExpression));case 202:return e.updateTemplateSpan(t,a(t.expression,r,e.isExpression),a(t.literal,r,e.isTemplateMiddleOrTemplateTail));case 204:return e.updateBlock(t,i(t.statements,r,e.isStatement));case 205:return e.updateVariableStatement(t,i(t.modifiers,r,e.isModifier),a(t.declarationList,r,e.isVariableDeclarationList));case 207:return e.updateStatement(t,a(t.expression,r,e.isExpression));case 208:return e.updateIf(t,a(t.expression,r,e.isExpression),a(t.thenStatement,r,e.isStatement,!1,d),a(t.elseStatement,r,e.isStatement,!0,d));case 209:return e.updateDo(t,a(t.statement,r,e.isStatement,!1,d),a(t.expression,r,e.isExpression));case 210:return e.updateWhile(t,a(t.expression,r,e.isExpression),a(t.statement,r,e.isStatement,!1,d));case 211:return e.updateFor(t,a(t.initializer,r,e.isForInitializer),a(t.condition,r,e.isExpression),a(t.incrementor,r,e.isExpression),a(t.statement,r,e.isStatement,!1,d));case 212:return e.updateForIn(t,a(t.initializer,r,e.isForInitializer),a(t.expression,r,e.isExpression),a(t.statement,r,e.isStatement,!1,d));case 213:return e.updateForOf(t,a(t.initializer,r,e.isForInitializer),a(t.expression,r,e.isExpression),a(t.statement,r,e.isStatement,!1,d));case 214:return e.updateContinue(t,a(t.label,r,e.isIdentifier,!0));case 215:return e.updateBreak(t,a(t.label,r,e.isIdentifier,!0));case 216:return e.updateReturn(t,a(t.expression,r,e.isExpression,!0));case 217:return e.updateWith(t,a(t.expression,r,e.isExpression),a(t.statement,r,e.isStatement,!1,d));case 218:return e.updateSwitch(t,a(t.expression,r,e.isExpression),a(t.caseBlock,r,e.isCaseBlock));case 219:return e.updateLabel(t,a(t.label,r,e.isIdentifier),a(t.statement,r,e.isStatement,!1,d));case 220:return e.updateThrow(t,a(t.expression,r,e.isExpression));case 221:return e.updateTry(t,a(t.tryBlock,r,e.isBlock),a(t.catchClause,r,e.isCatchClause,!0),a(t.finallyBlock,r,e.isBlock,!0));case 223:return e.updateVariableDeclaration(t,a(t.name,r,e.isBindingName),a(t.type,r,e.isTypeNode,!0),a(t.initializer,r,e.isExpression,!0));case 224:return e.updateVariableDeclarationList(t,i(t.declarations,r,e.isVariableDeclaration));case 225:return e.updateFunctionDeclaration(t,i(t.decorators,r,e.isDecorator),i(t.modifiers,r,e.isModifier),a(t.name,r,e.isPropertyName),i(t.typeParameters,r,e.isTypeParameter),s(t.parameters,r,n),a(t.type,r,e.isTypeNode,!0),c(t.body,r,n));case 226:return e.updateClassDeclaration(t,i(t.decorators,r,e.isDecorator),i(t.modifiers,r,e.isModifier),a(t.name,r,e.isIdentifier,!0),i(t.typeParameters,r,e.isTypeParameter),i(t.heritageClauses,r,e.isHeritageClause),i(t.members,r,e.isClassElement));case 232:return e.updateCaseBlock(t,i(t.clauses,r,e.isCaseOrDefaultClause));case 235:return e.updateImportDeclaration(t,i(t.decorators,r,e.isDecorator),i(t.modifiers,r,e.isModifier),a(t.importClause,r,e.isImportClause,!0),a(t.moduleSpecifier,r,e.isExpression));case 236:return e.updateImportClause(t,a(t.name,r,e.isIdentifier,!0),a(t.namedBindings,r,e.isNamedImportBindings,!0));case 237:return e.updateNamespaceImport(t,a(t.name,r,e.isIdentifier));case 238:return e.updateNamedImports(t,i(t.elements,r,e.isImportSpecifier));case 239:return e.updateImportSpecifier(t,a(t.propertyName,r,e.isIdentifier,!0),a(t.name,r,e.isIdentifier));case 240:return e.updateExportAssignment(t,i(t.decorators,r,e.isDecorator),i(t.modifiers,r,e.isModifier),a(t.expression,r,e.isExpression));case 241:return e.updateExportDeclaration(t,i(t.decorators,r,e.isDecorator),i(t.modifiers,r,e.isModifier),a(t.exportClause,r,e.isNamedExports,!0),a(t.moduleSpecifier,r,e.isExpression,!0));case 242:return e.updateNamedExports(t,i(t.elements,r,e.isExportSpecifier));case 243:return e.updateExportSpecifier(t,a(t.propertyName,r,e.isIdentifier,!0),a(t.name,r,e.isIdentifier));case 246:return e.updateJsxElement(t,a(t.openingElement,r,e.isJsxOpeningElement),i(t.children,r,e.isJsxChild),a(t.closingElement,r,e.isJsxClosingElement));case 247:return e.updateJsxSelfClosingElement(t,a(t.tagName,r,e.isJsxTagNameExpression),i(t.attributes,r,e.isJsxAttributeLike));case 248:return e.updateJsxOpeningElement(t,a(t.tagName,r,e.isJsxTagNameExpression),i(t.attributes,r,e.isJsxAttributeLike));case 249:return e.updateJsxClosingElement(t,a(t.tagName,r,e.isJsxTagNameExpression));case 250:return e.updateJsxAttribute(t,a(t.name,r,e.isIdentifier),a(t.initializer,r,e.isStringLiteralOrJsxExpression));case 251:return e.updateJsxSpreadAttribute(t,a(t.expression,r,e.isExpression));case 252:return e.updateJsxExpression(t,a(t.expression,r,e.isExpression));case 253:return e.updateCaseClause(t,a(t.expression,r,e.isExpression),i(t.statements,r,e.isStatement));case 254:return e.updateDefaultClause(t,i(t.statements,r,e.isStatement));case 255:return e.updateHeritageClause(t,i(t.types,r,e.isExpressionWithTypeArguments));case 256:return e.updateCatchClause(t,a(t.variableDeclaration,r,e.isVariableDeclaration),a(t.block,r,e.isBlock));case 257:return e.updatePropertyAssignment(t,a(t.name,r,e.isPropertyName),a(t.initializer,r,e.isExpression));case 258:return e.updateShorthandPropertyAssignment(t,a(t.name,r,e.isIdentifier),a(t.objectAssignmentInitializer,r,e.isExpression));case 259:return e.updateSpreadAssignment(t,a(t.expression,r,e.isExpression));case 261:return e.updateSourceFileNode(t,o(t.statements,r,n));case 294:return e.updatePartiallyEmittedExpression(t,a(t.expression,r,e.isExpression));default:var _=void 0,l=b[u];if(l)for(var p=0,f=l;p<f.length;p++){var m=f[p],g=t[m.name];if(void 0!==g){var y=e.isArray(g)?i(g,r,m.test,0,g.length,m.parenthesize,t):a(g,r,m.test,m.optional,m.lift,m.parenthesize,t);void 0===_&&y===g||(void 0===_&&(_=e.getMutableClone(t)),y!==g&&(_[m.name]=y))}}return _?e.updateNode(_,t):t}}}function _(t,r){return e.some(r)?e.isNodeArray(t)?e.createNodeArray(e.concatenate(t,r),t):e.addRange(t,r):t}function l(t,r){return t&&void 0!==r&&r.length>0?e.isBlock(t)?e.updateBlock(t,e.createNodeArray(e.concatenate(t.statements,r),t.statements)):e.createBlock(e.createNodeArray([e.createReturn(t,t)].concat(r),t),t,!0):t}function d(t){return k.assert(e.every(t,e.isStatement),"Cannot lift nodes to a Block."),e.singleOrUndefined(t)||e.createBlock(t)}function p(t){return k.assert(t.length<=1,"Too many nodes written to output."),e.singleOrUndefined(t)}function f(e){return m(e),e}function m(t){if(void 0===t)return 0;if(536870912&t.transformFlags)return t.transformFlags&~e.getTransformFlagsSubtreeExclusions(t.kind);var r=y(t);return e.computeTransformFlagsForNode(t,r)}function g(e){if(void 0===e)return 0;for(var t=0,r=0,n=0,a=e;n<a.length;n++){var i=a[n];t|=m(i),r|=i.transformFlags&-536870913}return e.transformFlags=536870912|r,t}function y(t){return e.hasModifier(t,2)||e.isTypeNode(t)&&199!==t.kind?0:n(t,0,v,h)}function v(e,t){return e|m(t)}function h(e,t){return e|g(t)}var b=e.createMap((x={},x[141]=[{name:"left",test:e.isEntityName},{name:"right",test:e.isIdentifier}],x[145]=[{name:"expression",test:e.isLeftHandSideExpression}],x[182]=[{name:"type",test:e.isTypeNode},{name:"expression",test:e.isUnaryExpression}],x[200]=[{name:"expression",test:e.isExpression},{name:"type",test:e.isTypeNode}],x[201]=[{name:"expression",test:e.isLeftHandSideExpression}],x[229]=[{name:"decorators",test:e.isDecorator},{name:"modifiers",test:e.isModifier},{name:"name",test:e.isIdentifier},{name:"members",test:e.isEnumMember}],x[230]=[{name:"decorators",test:e.isDecorator},{name:"modifiers",test:e.isModifier},{name:"name",test:e.isModuleName},{name:"body",test:e.isModuleBody}],x[231]=[{name:"statements",test:e.isStatement}],x[234]=[{name:"decorators",test:e.isDecorator},{name:"modifiers",test:e.isModifier},{name:"name",test:e.isIdentifier},{name:"moduleReference",test:e.isModuleReference}],x[245]=[{name:"expression",test:e.isExpression,optional:!0}],x[260]=[{name:"name",test:e.isPropertyName},{name:"initializer",test:e.isExpression,optional:!0,parenthesize:e.parenthesizeExpressionForList}],x));e.reduceEachChild=n,e.visitNode=a,e.visitNodes=i,e.visitLexicalEnvironment=o,e.visitParameterList=s,e.visitFunctionBody=c,e.visitEachChild=u,e.mergeLexicalEnvironment=_,e.mergeFunctionBodyLexicalEnvironment=l,e.liftToBlock=d,e.aggregateTransformFlags=f;var k;!function(t){function r(e){if("function"!=typeof e)return"";if(e.hasOwnProperty("name"))return e.name;var t=Function.prototype.toString.call(e),r=/^function\s+([\w\$]+)\s*\(/.exec(t);return r?r[1]:""}t.failNotOptional=t.shouldAssert(1)?function(e){return t.assert(!1,e||"Node not optional.")}:e.noop,t.failBadSyntaxKind=t.shouldAssert(1)?function(r,n){return t.assert(!1,n||"Unexpected node.",function(){return"Node "+e.formatSyntaxKind(r.kind)+" was unexpected."})}:e.noop,t.assertEachNode=t.shouldAssert(1)?function(n,a,i){return t.assert(void 0===a||e.every(n,a),i||"Unexpected node.",function(){return"Node array did not pass test '"+r(a)+"'."})}:e.noop,t.assertNode=t.shouldAssert(1)?function(n,a,i){return t.assert(void 0===a||a(n),i||"Unexpected node.",function(){return"Node "+e.formatSyntaxKind(n.kind)+" did not pass test '"+r(a)+"'."})}:e.noop,t.assertOptionalNode=t.shouldAssert(1)?function(n,a,i){return t.assert(void 0===a||void 0===n||a(n),i||"Unexpected node.",function(){return"Node "+e.formatSyntaxKind(n.kind)+" did not pass test '"+r(a)+"'."})}:e.noop,t.assertOptionalToken=t.shouldAssert(1)?function(r,n,a){return t.assert(void 0===n||void 0===r||r.kind===n,a||"Unexpected node.",function(){return"Node "+e.formatSyntaxKind(r.kind)+" was not a '"+e.formatSyntaxKind(n)+"' token."})}:e.noop,t.assertMissingNode=t.shouldAssert(1)?function(r,n){return t.assert(void 0===r,n||"Unexpected node.",function(){return"Node "+e.formatSyntaxKind(r.kind)+" was unexpected'."})}:e.noop}(k=e.Debug||(e.Debug={}));var x}(ts||(ts={}));var ts;!function(e){function t(t,r,a,i,o,s){function u(t){e.setEmitFlags(t,64),e.aggregateTransformFlags(t),g=e.append(g,t)}function l(t,n,a,i){e.Debug.assertNode(t,s?e.isIdentifier:e.isExpression);var o=s?s(t,n,a):e.createAssignment(e.visitNode(t,r,e.isExpression),n,a);o.original=i,u(o)}var p,m=t;if(e.isDestructuringAssignment(t))for(p=t.right;e.isEmptyObjectLiteralOrArrayLiteral(t.left);){if(!e.isDestructuringAssignment(p))return p;m=t=p,p=t.right}var g,y={context:a,level:i,hoistTempVariables:!0,emitExpression:u,emitBindingOrAssignment:l,createArrayBindingOrAssignmentPattern:_,createObjectBindingOrAssignmentPattern:d,createArrayBindingOrAssignmentElement:f,visitor:r};if(p&&(p=e.visitNode(p,r,e.isExpression),o?p=c(y,p,!0,m):e.nodeIsSynthesized(t)&&(m=p)),n(y,t,p,m,e.isDestructuringAssignment(t)),p&&o){if(!e.some(g))return p;g.push(p)}return e.aggregateTransformFlags(e.inlineExpressions(g))||e.createOmittedExpression()}function r(t,r,a,i,o,s,c){function _(t){f=e.append(f,t)}function d(t,r,n,a){e.Debug.assertNode(t,e.isBindingName),f&&(r=e.inlineExpressions(e.append(f,r)),f=void 0),m.push({pendingExpressions:f,name:t,value:r,location:n,original:a})}var f,m=[],g=[],y={context:a,level:i,hoistTempVariables:s,emitExpression:_,emitBindingOrAssignment:d,createArrayBindingOrAssignmentPattern:u,createObjectBindingOrAssignmentPattern:l,createArrayBindingOrAssignmentElement:p,visitor:r};if(n(y,t,o,t,c),f){var v=e.createTempVariable(void 0);if(s){var h=e.inlineExpressions(f);f=void 0,d(v,h,void 0,void 0)}else{a.hoistVariableDeclaration(v);var b=e.lastOrUndefined(m);b.pendingExpressions=e.append(b.pendingExpressions,e.createAssignment(v,b.value)),e.addRange(b.pendingExpressions,f),b.value=v}}for(var k=0,x=m;k<x.length;k++){var D=x[k],S=D.pendingExpressions,C=D.name,h=D.value,E=D.location,T=D.original,N=e.createVariableDeclaration(C,void 0,S?e.inlineExpressions(e.append(S,h)):h,E);N.original=T,e.isIdentifier(C)&&e.setEmitFlags(N,64),e.aggregateTransformFlags(N),g.push(N)}return g}function n(t,r,n,s,c){if(!c){var u=e.visitNode(e.getInitializerOfBindingOrAssignmentElement(r),t.visitor,e.isExpression);u?n=n?o(t,n,u,s):u:n||(n=e.createVoidZero())}var _=e.getTargetOfBindingOrAssignmentElement(r);e.isObjectBindingOrAssignmentPattern(_)?a(t,r,_,n,s):e.isArrayBindingOrAssignmentPattern(_)?i(t,r,_,n,s):t.emitBindingOrAssignment(_,n,s,r)}function a(t,r,a,i,o){var u=e.getElementsOfBindingOrAssignmentPattern(a),_=u.length;if(1!==_){var l=!e.isDeclarationBindingElement(r)||0!==_;i=c(t,i,l,o)}for(var d,p,f=0;f<_;f++){var g=u[f];if(e.getRestIndicatorOfBindingOrAssignmentElement(g)){if(f===_-1){d&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(d),i,o,a),d=void 0);var y=m(t.context,i,u,p,a);n(t,g,y,g)}}else{var v=e.getPropertyNameOfBindingOrAssignmentElement(g);if(!(t.level>=1)||1572864&g.transformFlags||1572864&e.getTargetOfBindingOrAssignmentElement(g).transformFlags||e.isComputedPropertyName(v)){d&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(d),i,o,a),d=void 0);var y=s(t,i,v);e.isComputedPropertyName(v)&&(p=e.append(p,y.argumentExpression)),n(t,g,y,g)}else d=e.append(d,g)}}d&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(d),i,o,a)}function i(t,r,a,i,o){var s=e.getElementsOfBindingOrAssignmentPattern(a),u=s.length;if(1!==u&&(t.level<1||0===u)){var _=!e.isDeclarationBindingElement(r)||0!==u;i=c(t,i,_,o)}for(var l,d,p=0;p<u;p++){var f=s[p];if(t.level>=1)if(1048576&f.transformFlags){var m=e.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(m),d=e.append(d,[m,f]),l=e.append(l,t.createArrayBindingOrAssignmentElement(m))}else l=e.append(l,f);else{if(e.isOmittedExpression(f))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(f)){if(p===u-1){var g=e.createArraySlice(i,p);n(t,f,g,f)}}else{var g=e.createElementAccess(i,p);n(t,f,g,f)}}}if(l&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(l),i,o,a),d)for(var y=0,v=d;y<v.length;y++){var h=v[y],b=h[0],f=h[1];n(t,f,b,f)}}function o(t,r,n,a){return r=c(t,r,!0,a),e.createConditional(e.createTypeCheck(r,"undefined"),n,r)}function s(t,r,n){if(e.isComputedPropertyName(n)){var a=c(t,n.expression,!1,n);return e.createElementAccess(r,a)}if(e.isStringOrNumericLiteral(n)){var a=e.getSynthesizedClone(n);return a.text=e.unescapeIdentifier(a.text),e.createElementAccess(r,a)}var i=e.createIdentifier(e.unescapeIdentifier(n.text));return e.createPropertyAccess(r,i)}function c(t,r,n,a){if(e.isIdentifier(r)&&n)return r;var i=e.createTempVariable(void 0);return t.hoistTempVariables?(t.context.hoistVariableDeclaration(i),t.emitExpression(e.createAssignment(i,r,a))):t.emitBindingOrAssignment(i,r,a,void 0),i}function u(t){return e.Debug.assertEachNode(t,e.isArrayBindingElement),e.createArrayBindingPattern(t)}function _(t){return e.createArrayLiteral(e.map(t,e.convertToArrayAssignmentElement))}function l(t){return e.Debug.assertEachNode(t,e.isBindingElement),e.createObjectBindingPattern(t)}function d(t){return e.createObjectLiteral(e.map(t,e.convertToObjectAssignmentElement))}function p(t){return e.createBindingElement(void 0,void 0,t)}function f(e){return e}function m(t,r,n,a,i){t.requestEmitHelper(y);for(var o=[],s=0,c=0;c<n.length-1;c++){var u=e.getPropertyNameOfBindingOrAssignmentElement(n[c]);if(u)if(e.isComputedPropertyName(u)){var _=a[s];s++,o.push(e.createConditional(e.createTypeCheck(_,"symbol"),_,e.createAdd(_,e.createLiteral(""))))}else o.push(e.createLiteral(u))}return e.createCall(e.getHelperName("__rest"),void 0,[r,e.createArrayLiteral(o,i)])}var g;!function(e){e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest"}(g=e.FlattenLevel||(e.FlattenLevel={})),e.flattenDestructuringAssignment=t,e.flattenDestructuringBinding=r;var y={name:"typescript:rest",scoped:!1,text:'\n            var __rest = (this && this.__rest) || function (s, e) {\n                var t = {};\n                for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n                    t[p] = s[p];\n                if (s != null && typeof Object.getOwnPropertySymbols === "function")\n                    for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)\n                        t[p[i]] = s[p[i]];\n                return t;\n            };'}}(ts||(ts={}));var ts;!function(e){function t(t){function i(r){if(e.isDeclarationFile(r))return r;Zt=r;var n=s(r,h);return e.addEmitHelpers(n,t.readEmitHelpers()),Zt=void 0,n}function s(e,t){var r=tr,n=rr;c(e);var a=t(e);return tr!==r&&(rr=n),tr=r,a}function c(t){switch(t.kind){case 261:case 232:case 231:case 204:tr=t,rr=void 0;break;case 226:case 225:if(e.hasModifier(t,2))break;Qe(t)}}function u(e){return s(e,_)}function _(r){return 1&r.transformFlags?v(r):2&r.transformFlags?e.visitEachChild(r,u,t):r}function l(e){return s(e,d)}function d(e){switch(e.kind){case 235:return rt(e);case 234:return lt(e);case 240:return ot(e);case 241:return st(e);default:return _(e)}}function p(e){return s(e,f)}function f(r){if(241!==r.kind&&235!==r.kind&&236!==r.kind&&(234!==r.kind||245!==r.moduleReference.kind))return 1&r.transformFlags||e.hasModifier(r,1)?v(r):2&r.transformFlags?e.visitEachChild(r,u,t):r}function m(e){return s(e,g)}function g(t){switch(t.kind){case 150:return;case 147:case 155:case 151:case 152:case 149:return _(t);case 203:return t;default:return void e.Debug.failBadSyntaxKind(t)}}function y(t){if(!(2270&e.modifierToFlag(t.kind)||$t&&83===t.kind))return t}function v(r){if(e.hasModifier(r,2)&&e.isStatement(r))return e.createNotEmittedStatement(r);switch(r.kind){case 83:case 78:return $t?void 0:r;case 113:case 111:case 112:case 116:case 75:case 123:case 130:case 162:case 163:case 161:case 156:case 143:case 118:case 121:case 134:case 132:case 129:case 104:case 135:case 159:case 158:case 160:case 157:case 164:case 165:case 166:case 167:case 168:case 169:case 170:case 171:case 155:case 145:case 228:case 147:return;case 150:return Ee(r);case 227:return e.createNotEmittedStatement(r);case 226:return x(r);case 197:return C(r);case 255:return De(r);case 199:return Se(r);case 149:return Te(r);case 151:return Ae(r);case 152:return we(r);case 225:return Pe(r);case 184:return Fe(r);case 185:return Oe(r);case 144:return Ie(r);case 183:return Be(r);case 182:case 200:return Ke(r);case 179:return ze(r);case 180:return je(r);case 201:return Je(r);case 229:return Ue(r);case 205:return Re(r);case 223:return Me(r);case 230:return $e(r);case 234:return lt(r);default:return e.Debug.failBadSyntaxKind(r),e.visitEachChild(r,u,t)}}function h(r){var n=Ht.alwaysStrict&&!(e.isExternalModule(r)&&Xt===e.ModuleKind.ES2015);return e.updateSourceFileNode(r,e.visitLexicalEnvironment(r.statements,l,t,0,n))}function b(t){if(t.decorators&&t.decorators.length>0)return!0;var r=e.getFirstConstructorWithBody(t);return!!r&&e.forEach(r.parameters,k)}function k(e){return void 0!==e.decorators&&e.decorators.length>0}function x(t){var r=I(t,!0),n=void 0!==e.getClassExtendsHeritageClauseElement(t),a=b(t),i=t.name;!i&&r.length>0&&(i=e.getGeneratedNameForNode(t));var o=a?S(t,i,n):D(t,i,n,r.length>0),s=[o];return r.length&&B(s,r,e.getLocalName(t)),Z(s,t,!1),Z(s,t,!0),te(s,t),dt(t)?yt(s,t):a&&(mt(t)?s.push(e.createExportDefault(e.getLocalName(t,!1,!0))):ft(t)&&s.push(e.createExternalModuleExport(e.getLocalName(t,!1,!0)))),s.length>1&&(s.push(e.createEndOfDeclarationMarker(t)),e.setEmitFlags(o,2097152|e.getEmitFlags(o))),e.singleOrMany(s)}function D(t,r,n,a){var i=e.createClassDeclaration(void 0,e.visitNodes(t.modifiers,y,e.isModifier),r,void 0,e.visitNodes(t.heritageClauses,u,e.isHeritageClause),E(t,n),t),o=e.getEmitFlags(t);return a&&(o|=32),e.setOriginalNode(i,t),e.setEmitFlags(i,o),i}function S(t,r,n){var a=e.moveRangePastDecorators(t),i=Dt(t),o=e.getLocalName(t,!1,!0),s=e.visitNodes(t.heritageClauses,u,e.isHeritageClause),c=E(t,n),_=e.createClassExpression(void 0,r,void 0,s,c,a);e.setOriginalNode(_,t);var l=e.createLetStatement(o,i?e.createAssignment(i,_):_,a);return e.setOriginalNode(l,t),e.setCommentRange(l,t),l}function C(t){var r=I(t,!0),n=e.visitNodes(t.heritageClauses,u,e.isHeritageClause),a=E(t,e.some(n,function(e){return 84===e.token})),i=e.setOriginalNode(e.createClassExpression(void 0,t.name,void 0,n,a,t),t);if(r.length>0){var o=[],s=e.createTempVariable(qt);return 8388608&Wt.getNodeCheckFlags(t)&&(Tt(),ar[e.getOriginalNodeId(t)]=e.getSynthesizedClone(s)),e.setEmitFlags(i,32768|e.getEmitFlags(i)),o.push(e.startOnNewLine(e.createAssignment(s,i))),e.addRange(o,K(r,s)),o.push(e.startOnNewLine(s)),e.inlineExpressions(o)}return i}function E(t,r){var n=[],a=T(t,r);return a&&n.push(a),e.addRange(n,e.visitNodes(t.members,m,e.isClassElement)),e.createNodeArray(n,t.members)}function T(r,n){var a=e.forEach(r.members,L),i=262144&r.transformFlags,o=e.getFirstConstructorWithBody(r);if(!a&&!i)return e.visitEachChild(o,u,t);var s=N(o),c=A(r,o,n);return e.startOnNewLine(e.setOriginalNode(e.createConstructor(void 0,void 0,s,c,o||r),o))}function N(r){return e.visitParameterList(r&&r.parameters,u,t)||[]}function A(t,r,n){var a=[],i=0;if(Vt(),r){i=w(r,a);var o=P(r);e.addRange(a,e.map(o,O))}else n&&a.push(e.createStatement(e.createCall(e.createSuper(),void 0,[e.createSpread(e.createIdentifier("arguments"))])));var s=I(t,!1);return B(a,s,e.createThis()),r&&e.addRange(a,e.visitNodes(r.body.statements,u,e.isStatement,i)),e.addRange(a,Ut()),e.createBlock(e.createNodeArray(a,r?r.body.statements:t.members),r?r.body:void 0,!0)}function w(t,r){if(t.body){var n=t.body.statements,a=e.addPrologueDirectives(r,n,!1,u);if(a===n.length)return a;var i=n[a];return 207===i.kind&&e.isSuperCall(i.expression)?(r.push(e.visitNode(i,u,e.isStatement)),a+1):a}return 0}function P(t){return e.filter(t.parameters,F)}function F(t){return e.hasModifier(t,92)&&e.isIdentifier(t.name)}function O(t){e.Debug.assert(e.isIdentifier(t.name));var r=t.name,n=e.getMutableClone(r);e.setEmitFlags(n,1584);var a=e.getMutableClone(r);return e.setEmitFlags(a,1536),e.startOnNewLine(e.createStatement(e.createAssignment(e.createPropertyAccess(e.createThis(),n,t.name),a),e.moveRangePos(t,-1)))}function I(t,r){return e.filter(t.members,r?R:L)}function R(e){return M(e,!0)}function L(e){return M(e,!1)}function M(t,r){return 147===t.kind&&r===e.hasModifier(t,32)&&void 0!==t.initializer}function B(t,r,n){for(var a=0,i=r;a<i.length;a++){var o=i[a],s=e.createStatement(J(o,n));e.setSourceMapRange(s,e.moveRangePastModifiers(o)),e.setCommentRange(s,o),t.push(s)}}function K(t,r){for(var n=[],a=0,i=t;a<i.length;a++){var o=i[a],s=J(o,r);s.startsOnNewLine=!0,e.setSourceMapRange(s,e.moveRangePastModifiers(o)),e.setCommentRange(s,o),n.push(s)}return n}function J(t,r){var n=xe(t),a=e.visitNode(t.initializer,u,e.isExpression),i=e.createMemberAccessForPropertyName(r,n,n);return e.createAssignment(i,a)}function z(t,r){return e.filter(t.members,r?j:V)}function j(e){return U(e,!0)}function V(e){return U(e,!1)}function U(t,r){return e.nodeOrChildIsDecorated(t)&&r===e.hasModifier(t,32)}function q(e){var t;if(e)for(var r=e.parameters,n=0;n<r.length;n++){var a=r[n];(t||a.decorators)&&(t||(t=new Array(r.length)),t[n]=a.decorators)}return t}function W(t){var r=t.decorators,n=q(e.getFirstConstructorWithBody(t));if(r||n)return{decorators:r,parameters:n}}function H(e,t){switch(t.kind){case 151:case 152:return G(e,t);case 149:return X(t);case 147:return Q(t);default:return}}function G(t,r){if(r.body){var n=e.getAllAccessorDeclarations(t.members,r),a=n.firstAccessor,i=n.secondAccessor,o=n.setAccessor,s=a.decorators?a:i&&i.decorators?i:void 0;if(s&&r===s){var c=s.decorators,u=q(o);if(c||u)return{decorators:c,parameters:u}}}}function X(e){if(e.body){var t=e.decorators,r=q(e);if(t||r)return{decorators:t,parameters:r}}}function Q(e){var t=e.decorators;if(t)return{decorators:t}}function Y(t,r,n){if(n){var a=[];return e.addRange(a,e.map(n.decorators,ne)),e.addRange(a,e.flatMap(n.parameters,ae)),ie(t,r,a),a}}function Z(t,r,n){e.addRange(t,e.map($(r,n),gt))}function $(e,t){for(var r,n=z(e,t),a=0,i=n;a<i.length;a++){var o=i[a],s=ee(e,o);s&&(r?r.push(s):r=[s])}return r}function ee(r,n){var i=H(r,n),o=Y(n,r,i);if(o){var s=Ct(r,n),c=ke(n,!0),u=Gt>0?147===n.kind?e.createVoidZero():e.createNull():void 0,_=a(t,o,s,c,u,e.moveRangePastDecorators(n));return e.setEmitFlags(_,1536),_}}function te(t,r){var n=re(r);n&&t.push(e.setOriginalNode(e.createStatement(n),r))}function re(r){var n=W(r),i=Y(r,r,n);if(i){var o=ar&&ar[e.getOriginalNodeId(r)],s=e.getLocalName(r,!1,!0),c=a(t,i,s),u=e.createAssignment(s,o?e.createAssignment(o,c):c);return e.setEmitFlags(u,1536),e.setSourceMapRange(u,e.moveRangePastDecorators(r)),u}}function ne(t){return e.visitNode(t.expression,u,e.isExpression)}function ae(n,a){var i;if(n){i=[];for(var o=0,s=n;o<s.length;o++){var c=s[o],u=r(t,ne(c),a,c.expression);e.setEmitFlags(u,1536),i.push(u)}}return i}function ie(e,t,r){o?se(e,t,r):oe(e,t,r)}function oe(e,r,a){Ht.emitDecoratorMetadata&&(ce(e)&&a.push(n(t,"design:type",le(e))),_e(e)&&a.push(n(t,"design:paramtypes",de(e,r))),ue(e)&&a.push(n(t,"design:returntype",fe(e))))}function se(r,a,i){if(Ht.emitDecoratorMetadata){var o=void 0;ce(r)&&(o||(o=[])).push(e.createPropertyAssignment("type",e.createArrowFunction(void 0,void 0,[],void 0,e.createToken(35),le(r)))),_e(r)&&(o||(o=[])).push(e.createPropertyAssignment("paramTypes",e.createArrowFunction(void 0,void 0,[],void 0,e.createToken(35),de(r,a)))),ue(r)&&(o||(o=[])).push(e.createPropertyAssignment("returnType",e.createArrowFunction(void 0,void 0,[],void 0,e.createToken(35),fe(r)))),o&&i.push(n(t,"design:typeinfo",e.createObjectLiteral(o,void 0,!0)))}}function ce(e){var t=e.kind;return 149===t||151===t||152===t||147===t}function ue(e){return 149===e.kind}function _e(t){switch(t.kind){case 226:case 197:return void 0!==e.getFirstConstructorWithBody(t);case 149:case 151:case 152:return!0}return!1}function le(t){switch(t.kind){case 147:case 144:case 151:return me(t.type);case 152:return me(e.getSetAccessorTypeAnnotationNode(t));case 226:case 197:case 149:return e.createIdentifier("Function");default:return e.createVoidZero()}}function de(t,r){var n=e.isClassLike(t)?e.getFirstConstructorWithBody(t):e.isFunctionLike(t)&&e.nodeIsPresent(t.body)?t:void 0,a=[];if(n)for(var i=pe(n,r),o=i.length,s=0;s<o;s++){var c=i[s];0===s&&e.isIdentifier(c.name)&&"this"===c.name.text||(c.dotDotDotToken?a.push(me(e.getRestParameterElementType(c.type))):a.push(le(c)))}return e.createArrayLiteral(a)}function pe(t,r){if(r&&151===t.kind){var n=e.getAllAccessorDeclarations(r.members,t).setAccessor;if(n)return n.parameters}return t.parameters}function fe(t){return e.isFunctionLike(t)&&t.type?me(t.type):e.isAsyncFunctionLike(t)?e.createIdentifier("Promise"):e.createVoidZero()}function me(t){if(void 0===t)return e.createIdentifier("Object");switch(t.kind){case 104:case 137:case 94:case 129:return e.createVoidZero();case 166:return me(t.type);case 158:case 159:return e.createIdentifier("Function");case 162:case 163:return e.createIdentifier("Array");case 156:case 121:return e.createIdentifier("Boolean");case 134:return e.createIdentifier("String");case 171:switch(t.literal.kind){case 9:return e.createIdentifier("String");case 8:return e.createIdentifier("Number");case 100:case 85:return e.createIdentifier("Boolean");default:e.Debug.failBadSyntaxKind(t.literal)}break;case 132:return e.createIdentifier("Number");case 135:return Gt<2?be():e.createIdentifier("Symbol");case 157:return ye(t);case 165:case 164:return ge(t);case 160:case 168:case 169:case 170:case 161:case 118:case 167:break;default:e.Debug.failBadSyntaxKind(t)}return e.createIdentifier("Object")}function ge(t){for(var r,n=0,a=t.types;n<a.length;n++){var i=a[n],o=me(i);if(e.isVoidExpression(o))r||(r=o);else{if(e.isIdentifier(o)&&"Object"===o.text)return o;if(r&&!e.isVoidExpression(r)){if(!e.isIdentifier(r)||!e.isIdentifier(o)||r.text!==o.text)return e.createIdentifier("Object")}else r=o}}return r}function ye(t){switch(Wt.getTypeReferenceSerializationKind(t.typeName,tr)){case e.TypeReferenceSerializationKind.Unknown:var r=ve(t.typeName,!0),n=e.createTempVariable(qt);return e.createLogicalOr(e.createLogicalAnd(e.createTypeCheck(e.createAssignment(n,r),"function"),n),e.createIdentifier("Object"));case e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return ve(t.typeName,!1);case e.TypeReferenceSerializationKind.VoidNullableOrNeverType:return e.createVoidZero();case e.TypeReferenceSerializationKind.BooleanType:return e.createIdentifier("Boolean");case e.TypeReferenceSerializationKind.NumberLikeType:return e.createIdentifier("Number");case e.TypeReferenceSerializationKind.StringLikeType:return e.createIdentifier("String");case e.TypeReferenceSerializationKind.ArrayLikeType:
return e.createIdentifier("Array");case e.TypeReferenceSerializationKind.ESSymbolType:return Gt<2?be():e.createIdentifier("Symbol");case e.TypeReferenceSerializationKind.TypeWithCallSignature:return e.createIdentifier("Function");case e.TypeReferenceSerializationKind.Promise:return e.createIdentifier("Promise");case e.TypeReferenceSerializationKind.ObjectType:default:return e.createIdentifier("Object")}}function ve(t,r){switch(t.kind){case 70:var n=e.getMutableClone(t);return n.flags&=-9,n.original=void 0,n.parent=tr,r?e.createLogicalAnd(e.createStrictInequality(e.createTypeOf(n),e.createLiteral("undefined")),n):n;case 141:return he(t,r)}}function he(t,r){var n;if(70===t.left.kind)n=ve(t.left,r);else if(r){var a=e.createTempVariable(qt);n=e.createLogicalAnd(e.createAssignment(a,ve(t.left,!0)),a)}else n=ve(t.left,!1);return e.createPropertyAccess(n,t.right)}function be(){return e.createConditional(e.createTypeCheck(e.createIdentifier("Symbol"),"function"),e.createIdentifier("Symbol"),e.createIdentifier("Object"))}function ke(t,r){var n=t.name;return e.isComputedPropertyName(n)?r?e.getGeneratedNameForNode(n):n.expression:e.isIdentifier(n)?e.createLiteral(e.unescapeIdentifier(n.text)):e.getSynthesizedClone(n)}function xe(t){var r=t.name;if(e.isComputedPropertyName(r)){var n=e.visitNode(r.expression,u,e.isExpression);if(t.decorators){var a=e.getGeneratedNameForNode(r);qt(a),n=e.createAssignment(a,n)}return e.setOriginalNode(e.createComputedPropertyName(n,r),r)}return r}function De(t){if(84===t.token){var r=e.visitNodes(t.types,u,e.isExpressionWithTypeArguments,0,1);return e.createHeritageClause(84,r,t)}}function Se(t){var r=e.visitNode(t.expression,u,e.isLeftHandSideExpression);return e.createExpressionWithTypeArguments(void 0,r,t)}function Ce(t){return!e.nodeIsMissing(t.body)}function Ee(r){if(Ce(r))return e.visitEachChild(r,u,t)}function Te(r){if(Ce(r)){var n=e.updateMethod(r,void 0,e.visitNodes(r.modifiers,y,e.isModifier),xe(r),void 0,e.visitParameterList(r.parameters,u,t),void 0,e.visitFunctionBody(r.body,u,t));return n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r))),n}}function Ne(t){return!(e.nodeIsMissing(t.body)&&e.hasModifier(t,128))}function Ae(r){if(Ne(r)){var n=e.updateGetAccessor(r,void 0,e.visitNodes(r.modifiers,y,e.isModifier),xe(r),e.visitParameterList(r.parameters,u,t),void 0,e.visitFunctionBody(r.body,u,t)||e.createBlock([]));return n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r))),n}}function we(r){if(Ne(r)){var n=e.updateSetAccessor(r,void 0,e.visitNodes(r.modifiers,y,e.isModifier),xe(r),e.visitParameterList(r.parameters,u,t),e.visitFunctionBody(r.body,u,t)||e.createBlock([]));return n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r))),n}}function Pe(r){if(!Ce(r))return e.createNotEmittedStatement(r);var n=e.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,y,e.isModifier),r.name,void 0,e.visitParameterList(r.parameters,u,t),void 0,e.visitFunctionBody(r.body,u,t)||e.createBlock([]));if(dt(r)){var a=[n];return yt(a,r),a}return n}function Fe(r){if(e.nodeIsMissing(r.body))return e.createOmittedExpression();var n=e.updateFunctionExpression(r,e.visitNodes(r.modifiers,y,e.isModifier),r.name,void 0,e.visitParameterList(r.parameters,u,t),void 0,e.visitFunctionBody(r.body,u,t));return n}function Oe(r){var n=e.updateArrowFunction(r,e.visitNodes(r.modifiers,y,e.isModifier),void 0,e.visitParameterList(r.parameters,u,t),void 0,e.visitFunctionBody(r.body,u,t));return n}function Ie(t){if(!e.parameterIsThisKeyword(t)){var r=e.createParameter(void 0,void 0,t.dotDotDotToken,e.visitNode(t.name,u,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,u,e.isExpression),e.moveRangePastModifiers(t));return e.setOriginalNode(r,t),e.setCommentRange(r,t),e.setSourceMapRange(r,e.moveRangePastModifiers(t)),e.setEmitFlags(r.name,32),r}}function Re(r){if(dt(r)){var n=e.getInitializedVariables(r.declarationList);if(0===n.length)return;return e.createStatement(e.inlineExpressions(e.map(n,Le)),r)}return e.visitEachChild(r,u,t)}function Le(r){var n=r.name;return e.isBindingPattern(n)?e.flattenDestructuringAssignment(r,u,t,0,!1,ht):e.createAssignment(bt(n),e.visitNode(r.initializer,u,e.isExpression),r)}function Me(t){return e.updateVariableDeclaration(t,e.visitNode(t.name,u,e.isBindingName),void 0,e.visitNode(t.initializer,u,e.isExpression))}function Be(r){var n=e.skipOuterExpressions(r.expression,-3);if(e.isAssertionExpression(n)){var a=e.visitNode(r.expression,u,e.isExpression);return e.createPartiallyEmittedExpression(a,r)}return e.visitEachChild(r,u,t)}function Ke(t){var r=e.visitNode(t.expression,u,e.isExpression);return e.createPartiallyEmittedExpression(r,t)}function Je(t){var r=e.visitNode(t.expression,u,e.isLeftHandSideExpression);return e.createPartiallyEmittedExpression(r,t)}function ze(t){return e.updateCall(t,e.visitNode(t.expression,u,e.isExpression),void 0,e.visitNodes(t.arguments,u,e.isExpression))}function je(t){return e.updateNew(t,e.visitNode(t.expression,u,e.isExpression),void 0,e.visitNodes(t.arguments,u,e.isExpression))}function Ve(t){return!e.isConst(t)||Ht.preserveConstEnums||Ht.isolatedModules}function Ue(t){if(Ve(t)){var r=[],n=2;Ze(r,t)&&(Xt===e.ModuleKind.System&&tr===Zt||(n|=512));var a=kt(t),i=xt(t),o=e.hasModifier(t,1)?e.getExternalModuleOrNamespaceExportName(er,t,!1,!0):e.getLocalName(t,!1,!0),s=e.createLogicalOr(o,e.createAssignment(o,e.createObjectLiteral()));if(Xe(t)){var c=e.getLocalName(t,!1,!0);s=e.createAssignment(c,s)}var u=e.createStatement(e.createCall(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,a)],void 0,qe(t,i)),void 0,[s]),t);return e.setOriginalNode(u,t),e.setEmitFlags(u,n),r.push(u),r.push(e.createEndOfDeclarationMarker(t)),r}}function qe(t,r){var n=er;er=r;var a=[];return jt(),e.addRange(a,e.map(t.members,We)),e.addRange(a,Ut()),er=n,e.createBlock(e.createNodeArray(a,t.members),void 0,!0)}function We(t){var r=ke(t,!1);return e.createStatement(e.createAssignment(e.createElementAccess(er,e.createAssignment(e.createElementAccess(er,r),He(t))),r,t),t)}function He(t){var r=Wt.getConstantValue(t);return void 0!==r?e.createLiteral(r):(Et(),t.initializer?e.visitNode(t.initializer,u,e.isExpression):e.createVoidZero())}function Ge(t){return e.isInstantiatedModule(t,Ht.preserveConstEnums||Ht.isolatedModules)}function Xe(t){return dt(t)||pt(t)&&Xt!==e.ModuleKind.ES2015&&Xt!==e.ModuleKind.System}function Qe(t){var r=t.symbol&&t.symbol.name;r&&(rr||(rr=e.createMap()),r in rr||(rr[r]=t))}function Ye(e){if(rr){var t=e.symbol&&e.symbol.name;if(t)return rr[t]===e}return!1}function Ze(t,r){var n=e.createVariableStatement(e.visitNodes(r.modifiers,y,e.isModifier),[e.createVariableDeclaration(e.getLocalName(r,!1,!0))]);if(e.setOriginalNode(n,r),Qe(r),Ye(r))return 229===r.kind?e.setSourceMapRange(n.declarationList,r):e.setSourceMapRange(n,r),e.setCommentRange(n,r),e.setEmitFlags(n,2098176),t.push(n),!0;var a=e.createMergeDeclarationMarker(n);return e.setEmitFlags(a,2098688),t.push(a),!1}function $e(t){if(!Ge(t))return e.createNotEmittedStatement(t);e.Debug.assert(e.isIdentifier(t.name),"TypeScript module should have an Identifier name."),Nt();var r=[],n=2;Ze(r,t)&&(Xt===e.ModuleKind.System&&tr===Zt||(n|=512));var a=kt(t),i=xt(t),o=e.hasModifier(t,1)?e.getExternalModuleOrNamespaceExportName(er,t,!1,!0):e.getLocalName(t,!1,!0),s=e.createLogicalOr(o,e.createAssignment(o,e.createObjectLiteral()));if(Xe(t)){var c=e.getLocalName(t,!1,!0);s=e.createAssignment(c,s)}var u=e.createStatement(e.createCall(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,a)],void 0,et(t,i)),void 0,[s]),t);return e.setOriginalNode(u,t),e.setEmitFlags(u,n),r.push(u),r.push(e.createEndOfDeclarationMarker(t)),r}function et(t,r){var n=er,a=$t,i=rr;er=r,$t=t,rr=void 0;var o=[];jt();var c,u,_=t.body;if(231===_.kind)s(_,function(t){return e.addRange(o,e.visitNodes(t.statements,p,e.isStatement))}),c=_.statements,u=_;else{var l=$e(_);l&&(e.isArray(l)?e.addRange(o,l):o.push(l));var d=tt(t).body;c=e.moveRangePos(d.statements,-1)}e.addRange(o,Ut()),er=n,$t=a,rr=i;var f=e.createBlock(e.createNodeArray(o,c),u,!0);return 231!==_.kind&&e.setEmitFlags(f,1536|e.getEmitFlags(f)),f}function tt(e){if(230===e.body.kind){var t=tt(e.body);return t||e.body}}function rt(t){if(!t.importClause)return t;var r=e.visitNode(t.importClause,nt,e.isImportClause,!0);return r?e.updateImportDeclaration(t,void 0,void 0,r,t.moduleSpecifier):void 0}function nt(t){var r=Wt.isReferencedAliasDeclaration(t)?t.name:void 0,n=e.visitNode(t.namedBindings,at,e.isNamedImportBindings,!0);return r||n?e.updateImportClause(t,r,n):void 0}function at(t){if(237===t.kind)return Wt.isReferencedAliasDeclaration(t)?t:void 0;var r=e.visitNodes(t.elements,it,e.isImportSpecifier);return e.some(r)?e.updateNamedImports(t,r):void 0}function it(e){return Wt.isReferencedAliasDeclaration(e)?e:void 0}function ot(r){return Wt.isValueAliasDeclaration(r)?e.visitEachChild(r,u,t):void 0}function st(t){if(!t.exportClause)return Wt.moduleExportsSomeValue(t.moduleSpecifier)?t:void 0;if(Wt.isValueAliasDeclaration(t)){var r=e.visitNode(t.exportClause,ct,e.isNamedExports,!0);return r?e.updateExportDeclaration(t,void 0,void 0,r,t.moduleSpecifier):void 0}}function ct(t){var r=e.visitNodes(t.elements,ut,e.isExportSpecifier);return e.some(r)?e.updateNamedExports(t,r):void 0}function ut(e){return Wt.isValueAliasDeclaration(e)?e:void 0}function _t(t){return Wt.isReferencedAliasDeclaration(t)||!e.isExternalModule(Zt)&&Wt.isTopLevelValueImportEqualsWithEntityName(t)}function lt(r){if(e.isExternalModuleImportEqualsDeclaration(r))return Wt.isReferencedAliasDeclaration(r)?e.visitEachChild(r,u,t):void 0;if(_t(r)){var n=e.createExpressionFromEntityName(r.moduleReference);return e.setEmitFlags(n,3584),ft(r)||!dt(r)?e.setOriginalNode(e.createVariableStatement(e.visitNodes(r.modifiers,y,e.isModifier),e.createVariableDeclarationList([e.setOriginalNode(e.createVariableDeclaration(r.name,void 0,n),r)]),r),r):e.setOriginalNode(vt(r.name,n,r),r)}}function dt(t){return void 0!==$t&&e.hasModifier(t,1)}function pt(t){return void 0===$t&&e.hasModifier(t,1)}function ft(t){return pt(t)&&!e.hasModifier(t,512)}function mt(t){return pt(t)&&e.hasModifier(t,512)}function gt(t){return e.createStatement(t,void 0)}function yt(t,r){var n=e.createAssignment(e.getExternalModuleOrNamespaceExportName(er,r,!1,!0),e.getLocalName(r));e.setSourceMapRange(n,e.createRange(r.name.pos,r.end));var a=e.createStatement(n);e.setSourceMapRange(a,e.createRange(-1,r.end)),t.push(a)}function vt(t,r,n){return e.createStatement(e.createAssignment(e.getNamespaceMemberName(er,t,!1,!0),r),n)}function ht(t,r,n){return e.createAssignment(bt(t),r,n)}function bt(t){return e.getNamespaceMemberName(er,t,!1,!0)}function kt(t){var r=e.getGeneratedNameForNode(t);return e.setSourceMapRange(r,t.name),r}function xt(t){return e.getGeneratedNameForNode(t)}function Dt(t){if(8388608&Wt.getNodeCheckFlags(t)){Tt();var r=e.createUniqueName(t.name&&!e.isGeneratedIdentifier(t.name)?t.name.text:"default");return ar[e.getOriginalNodeId(t)]=r,qt(r),r}}function St(t){return e.createPropertyAccess(e.getDeclarationName(t),"prototype")}function Ct(t,r){return e.hasModifier(r,32)?e.getDeclarationName(t):St(t)}function Et(){0===(8&nr)&&(nr|=8,t.enableSubstitution(70))}function Tt(){0===(1&nr)&&(nr|=1,t.enableSubstitution(70),ar=e.createMap())}function Nt(){0===(2&nr)&&(nr|=2,t.enableSubstitution(70),t.enableSubstitution(258),t.enableEmitNotification(230))}function At(t){return 230===e.getOriginalNode(t).kind}function wt(t){return 229===e.getOriginalNode(t).kind}function Pt(e,t,r){var n=ir;2&nr&&At(t)&&(ir|=2),8&nr&&wt(t)&&(ir|=8),Qt(e,t,r),ir=n}function Ft(t,r){return r=Yt(t,r),1===t?It(r):e.isShorthandPropertyAssignment(r)?Ot(r):r}function Ot(t){if(2&nr){var r=t.name,n=Mt(r);if(n){if(t.objectAssignmentInitializer){var a=e.createAssignment(n,t.objectAssignmentInitializer);return e.createPropertyAssignment(r,a,t)}return e.createPropertyAssignment(r,n,t)}}return t}function It(e){switch(e.kind){case 70:return Rt(e);case 177:return Bt(e);case 178:return Kt(e)}return e}function Rt(e){return Lt(e)||Mt(e)||e}function Lt(t){if(1&nr&&16777216&Wt.getNodeCheckFlags(t)){var r=Wt.getReferencedValueDeclaration(t);if(r){var n=ar[r.id];if(n){var a=e.getSynthesizedClone(n);return e.setSourceMapRange(a,t),e.setCommentRange(a,t),a}}}}function Mt(t){if(nr&ir&&!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var r=Wt.getReferencedExportContainer(t,!1);if(r&&261!==r.kind){var n=2&ir&&230===r.kind||8&ir&&229===r.kind;if(n)return e.createPropertyAccess(e.getGeneratedNameForNode(r),t,t)}}}function Bt(e){return Jt(e)}function Kt(e){return Jt(e)}function Jt(t){var r=zt(t);if(void 0!==r){var n=e.createLiteral(r);if(e.setSourceMapRange(n,t),e.setCommentRange(n,t),!Ht.removeComments){var a=e.isPropertyAccessExpression(t)?e.declarationNameToString(t.name):e.getTextOfNode(t.argumentExpression);n.trailingComment=" "+a+" "}return e.setConstantValue(t,r),n}return t}function zt(t){if(!Ht.isolatedModules)return e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)?Wt.getConstantValue(t):void 0}var jt=t.startLexicalEnvironment,Vt=t.resumeLexicalEnvironment,Ut=t.endLexicalEnvironment,qt=t.hoistVariableDeclaration,Wt=t.getEmitResolver(),Ht=t.getCompilerOptions(),Gt=e.getEmitScriptTarget(Ht),Xt=e.getEmitModuleKind(Ht),Qt=t.onEmitNode,Yt=t.onSubstituteNode;t.onEmitNode=Pt,t.onSubstituteNode=Ft,t.enableSubstitution(177),t.enableSubstitution(178);var Zt,$t,er,tr,rr,nr,ar,ir;return i}function r(t,r,n,a){return t.requestEmitHelper(s),e.createCall(e.getHelperName("__param"),void 0,[e.createLiteral(n),r],a)}function n(t,r,n){return t.requestEmitHelper(c),e.createCall(e.getHelperName("__metadata"),void 0,[e.createLiteral(r),n])}function a(t,r,n,a,i,o){t.requestEmitHelper(u);var s=[];return s.push(e.createArrayLiteral(r,void 0,!0)),s.push(n),a&&(s.push(a),i&&s.push(i)),e.createCall(e.getHelperName("__decorate"),void 0,s,o)}var i,o=!1;!function(e){e[e.ClassAliases=1]="ClassAliases",e[e.NamespaceExports=2]="NamespaceExports",e[e.NonQualifiedEnumMembers=8]="NonQualifiedEnumMembers"}(i||(i={})),e.transformTypeScript=t;var s={name:"typescript:param",scoped:!1,priority:4,text:"\n            var __param = (this && this.__param) || function (paramIndex, decorator) {\n                return function (target, key) { decorator(target, key, paramIndex); }\n            };"},c={name:"typescript:metadata",scoped:!1,priority:3,text:'\n            var __metadata = (this && this.__metadata) || function (k, v) {\n                if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n            };'},u={name:"typescript:decorate",scoped:!1,priority:2,text:'\n            var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n                var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n                if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);\n                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;\n                return c > 3 && r && Object.defineProperty(target, key, r), r;\n            };'}}(ts||(ts={}));var ts;!function(e){function t(t){function n(r){if(e.isDeclarationFile(r))return r;var n=e.visitEachChild(r,a,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}function a(e){return o(e,!1)}function i(e){return o(e,!0)}function o(r,n){if(0===(8&r.transformFlags))return r;switch(r.kind){case 176:return c(r);case 192:return l(r,n);case 223:return d(r);case 213:return m(r);case 211:return p(r);case 188:return f(r);case 150:return y(r);case 149:return b(r);case 151:return v(r);case 152:return h(r);case 225:return k(r);case 184:return D(r);case 185:return x(r);case 144:return g(r);case 207:return u(r);case 183:return _(r,n);default:return e.visitEachChild(r,a,t)}}function s(t){for(var r,n=[],i=0,o=t;i<o.length;i++){var s=o[i];if(259===s.kind){r&&(n.push(e.createObjectLiteral(r)),r=void 0);var c=s.expression;n.push(e.visitNode(c,a,e.isExpression))}else if(r||(r=[]),257===s.kind){var u=s;r.push(e.createPropertyAssignment(u.name,e.visitNode(u.initializer,a,e.isExpression)))}else r.push(s)}return r&&n.push(e.createObjectLiteral(r)),n}function c(n){if(1048576&n.transformFlags){var i=s(n.properties);return i.length&&176!==i[0].kind&&i.unshift(e.createObjectLiteral()),r(t,i)}return e.visitEachChild(n,a,t)}function u(r){return e.visitEachChild(r,i,t)}function _(r,n){return e.visitEachChild(r,n?i:a,t)}function l(r,n){return e.isDestructuringAssignment(r)&&1048576&r.left.transformFlags?e.flattenDestructuringAssignment(r,a,t,1,!n):25===r.operatorToken.kind?e.updateBinary(r,e.visitNode(r.left,i,e.isExpression),e.visitNode(r.right,n?i:a,e.isExpression)):e.visitEachChild(r,a,t)}function d(r){return e.isBindingPattern(r.name)&&1048576&r.name.transformFlags?e.flattenDestructuringBinding(r,a,t,1):e.visitEachChild(r,a,t)}function p(t){return e.updateFor(t,e.visitNode(t.initializer,i,e.isForInitializer),e.visitNode(t.condition,a,e.isExpression),e.visitNode(t.incrementor,a,e.isExpression),e.visitNode(t.statement,a,e.isStatement))}function f(r){return e.visitEachChild(r,i,t)}function m(r){var n,i,o=e.skipParentheses(r.initializer);if(1048576&o.transformFlags)if(e.isVariableDeclarationList(o)){i=e.createTempVariable(void 0);var s=e.firstOrUndefined(o.declarations),c=e.flattenDestructuringBinding(s,a,t,1,i,!1,!0);if(e.some(c)){var u=e.createVariableStatement(void 0,e.updateVariableDeclarationList(o,c),o);n=e.append(n,u)}}else if(e.isAssignmentPattern(o)){i=e.createTempVariable(void 0);var _=e.flattenDestructuringAssignment(e.aggregateTransformFlags(e.createAssignment(o,i,r.initializer)),a,t,1);n=e.append(n,e.createStatement(_,r.initializer))}if(i){var _=e.visitNode(r.expression,a,e.isExpression),u=e.visitNode(r.statement,a,e.isStatement),l=e.isBlock(u)?e.updateBlock(u,e.createNodeArray(e.concatenate(n,u.statements),u.statements)):e.createBlock(e.append(n,u),u,!0);return e.updateForOf(r,e.createVariableDeclarationList([e.createVariableDeclaration(i,void 0,void 0,r.initializer)],r.initializer,1),_,l)}return e.visitEachChild(r,a,t)}function g(r){return 1048576&r.transformFlags?e.updateParameter(r,void 0,void 0,r.dotDotDotToken,e.getGeneratedNameForNode(r),void 0,e.visitNode(r.initializer,a,e.isExpression)):e.visitEachChild(r,a,t)}function y(r){return e.updateConstructor(r,void 0,r.modifiers,e.visitParameterList(r.parameters,a,t),S(r))}function v(r){return e.updateGetAccessor(r,void 0,r.modifiers,e.visitNode(r.name,a,e.isPropertyName),e.visitParameterList(r.parameters,a,t),void 0,S(r))}function h(r){return e.updateSetAccessor(r,void 0,r.modifiers,e.visitNode(r.name,a,e.isPropertyName),e.visitParameterList(r.parameters,a,t),S(r))}function b(r){return e.updateMethod(r,void 0,r.modifiers,e.visitNode(r.name,a,e.isPropertyName),void 0,e.visitParameterList(r.parameters,a,t),void 0,S(r))}function k(r){return e.updateFunctionDeclaration(r,void 0,r.modifiers,r.name,void 0,e.visitParameterList(r.parameters,a,t),void 0,S(r))}function x(r){return e.updateArrowFunction(r,r.modifiers,void 0,e.visitParameterList(r.parameters,a,t),void 0,S(r))}function D(r){return e.updateFunctionExpression(r,r.modifiers,r.name,void 0,e.visitParameterList(r.parameters,a,t),void 0,S(r))}function S(r){C();for(var n,i=0,o=r.parameters;i<o.length;i++){var s=o[i];if(1048576&s.transformFlags){var c=e.getGeneratedNameForNode(s),u=e.flattenDestructuringBinding(s,a,t,1,c,!1,!0);if(e.some(u)){var _=e.createVariableStatement(void 0,e.createVariableDeclarationList(u));e.setEmitFlags(_,524288),n=e.append(n,_)}}}var l=e.visitNode(r.body,a,e.isConciseBody),d=E();if(e.some(n)||e.some(d)){var p=e.convertToFunctionBody(l,!0);return e.updateBlock(p,e.createNodeArray(e.concatenate(e.concatenate(n,p.statements),d),p.statements))}return l}var C=t.resumeLexicalEnvironment,E=t.endLexicalEnvironment;return n}function r(t,r){return t.requestEmitHelper(n),e.createCall(e.getHelperName("__assign"),void 0,r)}e.transformESNext=t;var n={name:"typescript:assign",scoped:!1,priority:1,text:"\n            var __assign = (this && this.__assign) || Object.assign || function(t) {\n                for (var s, i = 1, n = arguments.length; i < n; i++) {\n                    s = arguments[i];\n                    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                        t[p] = s[p];\n                }\n                return t;\n            };"};e.createAssignHelper=r}(ts||(ts={}));var ts;!function(e){function t(t){function n(r){if(e.isDeclarationFile(r))return r;b=r;var n=e.visitEachChild(r,a,t);return e.addEmitHelpers(n,t.readEmitHelpers()),b=void 0,n}function a(e){return 4&e.transformFlags?i(e):e}function i(r){switch(r.kind){case 246:return s(r,!1);case 247:return c(r,!1);case 252:return h(r);default:return e.visitEachChild(r,a,t)}}function o(t){switch(t.kind){case 10:return p(t);case 252:return h(t);case 246:return s(t,!0);case 247:return c(t,!0);default:return void e.Debug.failBadSyntaxKind(t)}}function s(e,t){return u(e.openingElement,e.children,t,e)}function c(e,t){return u(e,void 0,t,e)}function u(r,n,a,i){var s,c=y(r),u=r.attributes;if(0===u.length)s=e.createNull();else{var d=e.flatten(e.spanMap(u,e.isJsxSpreadAttribute,function(t,r){return r?e.map(t,_):e.createObjectLiteral(e.map(t,l))}));e.isJsxSpreadAttribute(u[0])&&d.unshift(e.createObjectLiteral()),s=e.singleOrUndefined(d),s||(s=e.createAssignHelper(t,d))}var p=e.createExpressionForJsxElement(t.getEmitResolver().getJsxFactoryEntity(),k.reactNamespace,c,s,e.filter(e.map(n,o),e.isDefined),r,i);return a&&e.startOnNewLine(p),p}function _(t){return e.visitNode(t.expression,a,e.isExpression)}function l(t){var r=v(t),n=d(t.initializer);return e.createPropertyAssignment(r,n)}function d(t){if(void 0===t)return e.createLiteral(!0);if(9===t.kind){var r=g(t.text);return r?e.createLiteral(r,t):t}return 252===t.kind?void 0===t.expression?e.createLiteral(!0):h(t):void e.Debug.failBadSyntaxKind(t)}function p(t){for(var r,n=e.getTextOfNode(t,!0),a=0,i=-1,o=0;o<n.length;o++){var s=n.charCodeAt(o);if(e.isLineBreak(s)){if(a!==-1&&i-a+1>0){var c=n.substr(a,i-a+1);r||(r=[]),r.push(e.createLiteral(m(c)))}a=-1}else e.isWhiteSpace(s)||(i=o,a===-1&&(a=o))}if(a!==-1){var c=n.substr(a);r||(r=[]),r.push(e.createLiteral(m(c)))}if(r)return e.reduceLeft(r,f)}function f(t,r){return e.createAdd(e.createAdd(t,e.createLiteral(" ")),r)}function m(e){return e.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,function(e,t,n,a,i,o,s){if(i)return String.fromCharCode(parseInt(i,10));if(o)return String.fromCharCode(parseInt(o,16));var c=r[s];return c?String.fromCharCode(c):e})}function g(e){var t=m(e);return t===e?void 0:t}function y(t){if(246===t.kind)return y(t.openingElement);var r=t.tagName;return e.isIdentifier(r)&&e.isIntrinsicJsxName(r.text)?e.createLiteral(r.text):e.createExpressionFromEntityName(r)}function v(t){var r=t.name;return/^[A-Za-z_]\w*$/.test(r.text)?r:e.createLiteral(r.text)}function h(t){return e.visitNode(t.expression,a,e.isExpression)}var b,k=t.getCompilerOptions();return n}e.transformJsx=t;var r=e.createMap({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})}(ts||(ts={}));var ts;!function(e){function t(t){function n(r){if(e.isDeclarationFile(r))return r;C=r;var n=e.visitEachChild(r,a,t);return e.addEmitHelpers(n,t.readEmitHelpers()),C=void 0,n}function a(r){if(0===(16&r.transformFlags))return r;switch(r.kind){case 119:return;case 189:return s(r);case 149:return c(r);case 225:return u(r);case 184:return _(r);case 185:return l(r);default:return e.visitEachChild(r,a,t)}}function s(t){return e.setOriginalNode(e.createYield(void 0,e.visitNode(t.expression,a,e.isExpression),t),t)}function c(r){return e.updateMethod(r,void 0,e.visitNodes(r.modifiers,a,e.isModifier),r.name,void 0,e.visitParameterList(r.parameters,a,t),void 0,e.isAsyncFunctionLike(r)?d(r):e.visitFunctionBody(r.body,a,t))}function u(r){return e.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,a,e.isModifier),r.name,void 0,e.visitParameterList(r.parameters,a,t),void 0,e.isAsyncFunctionLike(r)?d(r):e.visitFunctionBody(r.body,a,t))}function _(r){return e.nodeIsMissing(r.body)?e.createOmittedExpression():e.updateFunctionExpression(r,void 0,r.name,void 0,e.visitParameterList(r.parameters,a,t),void 0,e.isAsyncFunctionLike(r)?d(r):e.visitFunctionBody(r.body,a,t))}function l(r){return e.updateArrowFunction(r,e.visitNodes(r.modifiers,a,e.isModifier),void 0,e.visitParameterList(r.parameters,a,t),void 0,e.isAsyncFunctionLike(r)?d(r):e.visitFunctionBody(r.body,a,t))}function d(n){A();var s=e.getOriginalNode(n,e.isFunctionLike),c=s.type,u=O<2?f(c):void 0,_=185===n.kind,l=0!==(8192&P.getNodeCheckFlags(n));if(_){var d=r(t,l,u,p(n.body)),g=w();if(e.some(g)){var y=e.convertToFunctionBody(d);return e.updateBlock(y,e.createNodeArray(e.concatenate(y.statements,g),y.statements))}return d}var v=[],h=e.addPrologueDirectives(v,n.body.statements,!1,a);v.push(e.createReturn(r(t,l,u,p(n.body,h)))),e.addRange(v,w());var y=e.createBlock(v,n.body,!0);return O>=2&&(4096&P.getNodeCheckFlags(n)?(m(),e.addEmitHelper(y,o)):2048&P.getNodeCheckFlags(n)&&(m(),e.addEmitHelper(y,i))),y}function p(r,n){if(e.isBlock(r))return e.updateBlock(r,e.visitLexicalEnvironment(r.statements,a,t,n));N();var i=e.convertToFunctionBody(e.visitNode(r,a,e.isConciseBody)),o=w();return e.updateBlock(i,e.createNodeArray(e.concatenate(i.statements,o),i.statements))}function f(t){var r=t&&e.getEntityNameFromTypeNode(t);if(r&&e.isEntityName(r)){var n=P.getTypeReferenceSerializationKind(r);if(n===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||n===e.TypeReferenceSerializationKind.Unknown)return r}}function m(){0===(1&E)&&(E|=1,t.enableSubstitution(179),t.enableSubstitution(177),t.enableSubstitution(178),t.enableEmitNotification(226),t.enableEmitNotification(149),t.enableEmitNotification(151),t.enableEmitNotification(152),t.enableEmitNotification(150))}function g(e){switch(e.kind){case 177:return y(e);case 178:return v(e);case 179:if(1&E)return h(e)}return e}function y(t){if(1&E&&96===t.expression.kind){var r=S();if(r)return D(e.createLiteral(t.name.text),r,t)}return t}function v(e){if(1&E&&96===e.expression.kind){var t=S();if(t)return D(e.argumentExpression,t,e)}return e}function h(t){var r=t.expression;if(e.isSuperProperty(r)){var n=S();if(n){var a=e.isPropertyAccessExpression(r)?y(r):v(r);return e.createCall(e.createPropertyAccess(a,"call"),void 0,[e.createThis()].concat(t.arguments))}}return t}function b(e){var t=e.kind;return 226===t||150===t||149===t||151===t||152===t}function k(e,t,r){if(1&E&&b(t)){var n=T;T=t,I(e,t,r),T=n}else I(e,t,r)}function x(e,t){return t=R(e,t),1===e?g(t):t}function D(t,r,n){return 4096&r?e.createPropertyAccess(e.createCall(e.createIdentifier("_super"),void 0,[t]),"value",n):e.createCall(e.createIdentifier("_super"),void 0,[t],n)}function S(){return void 0!==T&&6144&P.getNodeCheckFlags(T)}var C,E,T,N=t.startLexicalEnvironment,A=t.resumeLexicalEnvironment,w=t.endLexicalEnvironment,P=t.getEmitResolver(),F=t.getCompilerOptions(),O=e.getEmitScriptTarget(F),I=t.onEmitNode,R=t.onSubstituteNode;return t.onEmitNode=k,t.onSubstituteNode=x,n}function r(t,r,n,i){t.requestEmitHelper(a);var o=e.createFunctionExpression(void 0,e.createToken(38),void 0,void 0,[],void 0,i);return(o.emitNode||(o.emitNode={})).flags|=131072,e.createCall(e.getHelperName("__awaiter"),void 0,[e.createThis(),r?e.createIdentifier("arguments"):e.createVoidZero(),n?e.createExpressionFromEntityName(n):e.createVoidZero(),o])}var n;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(n||(n={})),e.transformES2017=t;var a={name:"typescript:awaiter",scoped:!1,priority:5,text:'\n            var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n                return new (P || (P = Promise))(function (resolve, reject) {\n                    function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n                    function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n                    function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\n                    step((generator = generator.apply(thisArg, _arguments || [])).next());\n                });\n            };'},i={name:"typescript:async-super",scoped:!0,text:"\n            const _super = name => super[name];"},o={name:"typescript:advanced-async-super",scoped:!0,text:"\n            const _super = (function (geti, seti) {\n                const cache = Object.create(null);\n                return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n            })(name => super[name], (name, value) => super[name] = value);"}}(ts||(ts={}));var ts;!function(e){function t(t){function r(r){return e.isDeclarationFile(r)?r:e.visitEachChild(r,n,t)}function n(r){if(0===(32&r.transformFlags))return r;switch(r.kind){case 192:return a(r);default:return e.visitEachChild(r,n,t)}}function a(r){switch(r.operatorToken.kind){case 61:return i(r);case 39:return o(r);
default:return e.visitEachChild(r,n,t)}}function i(t){var r,a,i=e.visitNode(t.left,n,e.isExpression),o=e.visitNode(t.right,n,e.isExpression);if(e.isElementAccessExpression(i)){var c=e.createTempVariable(s),u=e.createTempVariable(s);r=e.createElementAccess(e.createAssignment(c,i.expression,i.expression),e.createAssignment(u,i.argumentExpression,i.argumentExpression),i),a=e.createElementAccess(c,u,i)}else if(e.isPropertyAccessExpression(i)){var c=e.createTempVariable(s);r=e.createPropertyAccess(e.createAssignment(c,i.expression,i.expression),i.name,i),a=e.createPropertyAccess(c,i.name,i)}else r=i,a=i;return e.createAssignment(r,e.createMathPow(a,o,t),t)}function o(t){var r=e.visitNode(t.left,n,e.isExpression),a=e.visitNode(t.right,n,e.isExpression);return e.createMathPow(r,a,t)}var s=t.hoistVariableDeclaration;return r}e.transformES2016=t}(ts||(ts={}));var ts;!function(e){function t(t){function n(r){if(e.isDeclarationFile(r))return r;mt=r,gt=r.text;var n=o(r,m);return e.addEmitHelpers(n,t.readEmitHelpers()),mt=void 0,gt=void 0,n}function a(e){return o(e,i)}function i(e){return Et?d(e):l(e)}function o(t,r){var n=xt,a=Dt,i=St,o=bt,c=kt,u=ht,_=yt,l=vt,d=Et,p=Ct;e.nodeStartsNewLexicalEnvironment(t)&&(Ct=!1,Et=void 0),s(t);var f=r(t);return Ct=p,Et=d,xt=n,Dt=a,St=i,bt=o,kt=c,ht=u,yt=_,vt=l,f}function s(t){if(vt)switch(e.isBlockScope(vt,yt)&&(bt=vt,kt=yt),e.isFunctionLike(vt)&&(xt=vt,185!==vt.kind&&(Dt=vt,131072&e.getEmitFlags(vt)||(St=vt))),vt.kind){case 205:ht=vt;break;case 224:case 223:case 174:case 172:case 173:break;default:ht=void 0}yt=vt,vt=t}function c(t){return e.setOriginalNode(e.createReturn(e.createIdentifier("_this")),t)}function u(e){return Ct&&216===e.kind&&!e.expression}function _(t){return 0!==(64&t.transformFlags)||219===t.kind||e.isIterationStatement(t,!1)&&fe(t)}function l(r){return u(r)?c(r):_(r)?f(r):128&r.transformFlags||Ct&&!e.isExpression(r)?e.visitEachChild(r,a,t):r}function d(e){var t;return t=_(e)?f(e):p(e)}function p(r){switch(r.kind){case 216:return r=u(r)?c(r):r,y(r);case 205:return te(r);case 218:return g(r);case 215:case 214:return b(r);case 98:return v(r);case 70:return h(r);default:return e.visitEachChild(r,a,t)}}function f(r){switch(r.kind){case 114:return;case 226:return k(r);case 197:return x(r);case 144:return O(r);case 225:return X(r);case 185:return H(r);case 184:return G(r);case 223:return ie(r);case 70:return h(r);case 224:return re(r);case 219:return oe(r);case 209:return se(r);case 210:return ce(r);case 211:return ue(r);case 212:return _e(r);case 213:return le(r);case 207:return Z(r);case 176:return pe(r);case 256:return Te(r);case 258:return we(r);case 175:return Fe(r);case 179:return Oe(r);case 180:return Le(r);case 183:return $(r,!0);case 192:return ee(r,!0);case 12:case 13:case 14:case 15:return Ve(r);case 181:return Ue(r);case 194:return We(r);case 195:return Pe(r);case 196:return ze(r);case 96:return Qe();case 195:return e.visitEachChild(r,a,t);case 149:return Ae(r);case 205:return te(r);default:return e.Debug.failBadSyntaxKind(r),e.visitEachChild(r,a,t)}}function m(t){var r=[];ct();var n=e.addPrologueDirectives(r,t.statements,!1,a);return J(r,t),e.addRange(r,e.visitNodes(t.statements,a,e.isStatement,n)),e.addRange(r,_t()),e.updateSourceFileNode(t,e.createNodeArray(r,t.statements))}function g(r){e.Debug.assert(void 0!==Et);var n=Et.allowedNonLabeledJumps;Et.allowedNonLabeledJumps|=2;var i=e.visitEachChild(r,a,t);return Et.allowedNonLabeledJumps=n,i}function y(t){return e.Debug.assert(void 0!==Et),Et.nonLocalJumps|=8,e.createReturn(e.createObjectLiteral([e.createPropertyAssignment(e.createIdentifier("value"),t.expression?e.visitNode(t.expression,a,e.isExpression):e.createVoidZero())]))}function v(t){return e.Debug.assert(void 0!==Et),xt&&185===xt.kind?(Et.containsLexicalThis=!0,t):Et.thisName||(Et.thisName=e.createUniqueName("this"))}function h(t){return Et?e.isGeneratedIdentifier(t)?t:"arguments"===t.text||dt.isArgumentsLocalBinding(t)?Et.argumentsName||(Et.argumentsName=e.createUniqueName("arguments")):t:t}function b(r){if(Et){var n=215===r.kind?2:4,i=r.label&&Et.labels&&Et.labels[r.label.text]||!r.label&&Et.allowedNonLabeledJumps&n;if(!i){var o=void 0;r.label?215===r.kind?(o="break-"+r.label.text,be(Et,!0,r.label.text,o)):(o="continue-"+r.label.text,be(Et,!1,r.label.text,o)):215===r.kind?(Et.nonLocalJumps|=2,o="break"):(Et.nonLocalJumps|=4,o="continue");var s=e.createLiteral(o);if(Et.loopOutParameters.length){for(var c=Et.loopOutParameters,u=void 0,_=0;_<c.length;_++){var l=ye(c[_],1);u=0===_?l:e.createBinary(u,25,l)}s=e.createBinary(u,25,s)}return e.createReturn(s)}}return e.visitEachChild(r,a,t)}function k(t){var r=e.createVariableDeclaration(e.getLocalName(t,!0),void 0,D(t));e.setOriginalNode(r,t);var n=[],a=e.createVariableStatement(void 0,e.createVariableDeclarationList([r]),t);if(e.setOriginalNode(a,t),e.startOnNewLine(a),n.push(a),e.hasModifier(t,1)){var i=e.hasModifier(t,512)?e.createExportDefault(e.getLocalName(t)):e.createExternalModuleExport(e.getLocalName(t));e.setOriginalNode(i,a),n.push(i)}var o=e.getEmitFlags(t);return 0===(2097152&o)&&(n.push(e.createEndOfDeclarationMarker(t)),e.setEmitFlags(a,2097152|o)),e.singleOrMany(n)}function x(e){return D(e)}function D(t){t.name&&Ze();var r=e.getClassExtendsHeritageClauseElement(t),n=e.createFunctionExpression(void 0,void 0,void 0,void 0,r?[e.createParameter(void 0,void 0,void 0,"_super")]:[],void 0,S(t,r));32768&e.getEmitFlags(t)&&e.setEmitFlags(n,32768);var i=e.createPartiallyEmittedExpression(n);i.end=t.end,e.setEmitFlags(i,1536);var o=e.createPartiallyEmittedExpression(i);return o.end=e.skipTrivia(gt,t.pos),e.setEmitFlags(o,1536),e.createParen(e.createCall(o,void 0,r?[e.visitNode(r.expression,a,e.isExpression)]:[]))}function S(t,r){var n=[];ct(),C(n,t,r),E(n,t,r),j(n,t);var a=e.createTokenRange(e.skipTrivia(gt,t.members.end),17),i=e.getLocalName(t),o=e.createPartiallyEmittedExpression(i);o.end=a.end,e.setEmitFlags(o,1536);var s=e.createReturn(o);s.pos=a.pos,e.setEmitFlags(s,1920),n.push(s),e.addRange(n,_t());var c=e.createBlock(e.createNodeArray(n,t.members),void 0,!0);return e.setEmitFlags(c,1536),c}function C(n,a,i){i&&n.push(e.createStatement(r(t,e.getLocalName(a)),i))}function E(t,r,n){var a=e.getFirstConstructorWithBody(r),i=st(a,void 0!==n),o=e.createFunctionDeclaration(void 0,void 0,void 0,e.getDeclarationName(r),void 0,T(a,i),void 0,N(a,r,n,i),a||r);n&&e.setEmitFlags(o,8),t.push(o)}function T(r,n){return e.visitParameterList(r&&!n&&r.parameters,a,t)||[]}function N(t,r,n,i){var s=[];ut();var c=-1;i?c=0:t&&(c=e.addPrologueDirectives(s,t.body.statements,!1,a)),t&&(R(s,t),K(s,t,i),e.Debug.assert(c>=0,"statementOffset not initialized correctly!"));var u=n&&94!==e.skipOuterExpressions(n.expression).kind,_=w(s,t,u,i,c);if(1!==_&&2!==_||c++,t){var l=o(t,function(t){return Ct=1===_,e.visitNodes(t.body.statements,a,e.isStatement,c)});e.addRange(s,l)}!u||2===_||t&&A(t.body)||s.push(e.createReturn(e.createIdentifier("_this"))),e.addRange(s,_t());var d=e.createBlock(e.createNodeArray(s,t?t.body.statements:r.members),t?t.body:r,!0);return t||e.setEmitFlags(d,1536),d}function A(t){if(216===t.kind)return!0;if(208===t.kind){var r=t;if(r.elseStatement)return A(r.thenStatement)&&A(r.elseStatement)}else if(204===t.kind){var n=e.lastOrUndefined(t.statements);if(n&&A(n))return!0}return!1}function w(t,r,n,a,i){if(!n)return r&&J(t,r),0;if(!r)return t.push(e.createReturn(F())),2;if(a)return z(t,r,F()),$e(),1;var s,c,u=r.body.statements;if(i<u.length&&(s=u[i],207===s.kind&&e.isSuperCall(s.expression))){var _=s.expression;c=e.setOriginalNode(o(_,Ie),_)}if(c&&i===u.length-1&&!(49152&r.transformFlags)){var l=e.createReturn(c);return 192===c.kind&&179===c.left.kind||e.Debug.fail("Assumed generated super call would have form 'super.call(...) || this'."),e.setCommentRange(l,e.getCommentRange(e.setEmitFlags(c.left,1536))),t.push(l),2}return z(t,r,c||P(),s),c?1:0}function P(){return e.setEmitFlags(e.createThis(),4)}function F(){return e.createLogicalOr(e.createLogicalAnd(e.createStrictInequality(e.createIdentifier("_super"),e.createNull()),e.createFunctionApply(e.createIdentifier("_super"),P(),e.createIdentifier("arguments"))),P())}function O(t){return t.dotDotDotToken?void 0:e.isBindingPattern(t.name)?e.setOriginalNode(e.createParameter(void 0,void 0,void 0,e.getGeneratedNameForNode(t),void 0,void 0,void 0,t),t):t.initializer?e.setOriginalNode(e.createParameter(void 0,void 0,void 0,t.name,void 0,void 0,void 0,t),t):t}function I(e){return 0!==(131072&e.transformFlags)}function R(t,r){if(I(r))for(var n=0,a=r.parameters;n<a.length;n++){var i=a[n],o=i.name,s=i.initializer,c=i.dotDotDotToken;c||(e.isBindingPattern(o)?L(t,i,o,s):s&&M(t,i,o,s))}}function L(r,n,i,o){var s=e.getGeneratedNameForNode(n);i.elements.length>0?r.push(e.setEmitFlags(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(n,a,t,0,s))),524288)):o&&r.push(e.setEmitFlags(e.createStatement(e.createAssignment(s,e.visitNode(o,a,e.isExpression))),524288))}function M(t,r,n,i){i=e.visitNode(i,a,e.isExpression);var o=e.createIf(e.createTypeCheck(e.getSynthesizedClone(n),"undefined"),e.setEmitFlags(e.createBlock([e.createStatement(e.createAssignment(e.setEmitFlags(e.getMutableClone(n),48),e.setEmitFlags(i,48|e.getEmitFlags(i)),r))],r),417),void 0,r);o.startsOnNewLine=!0,e.setEmitFlags(o,524704),t.push(o)}function B(e,t){return e&&e.dotDotDotToken&&70===e.name.kind&&!t}function K(t,r,n){var a=e.lastOrUndefined(r.parameters);if(B(a,n)){var i=e.getMutableClone(a.name);e.setEmitFlags(i,48);var o=e.getSynthesizedClone(a.name),s=r.parameters.length-1,c=e.createLoopVariable();t.push(e.setEmitFlags(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(i,void 0,e.createArrayLiteral([]))]),a),524288));var u=e.createFor(e.createVariableDeclarationList([e.createVariableDeclaration(c,void 0,e.createLiteral(s))],a),e.createLessThan(c,e.createPropertyAccess(e.createIdentifier("arguments"),"length"),a),e.createPostfixIncrement(c,a),e.createBlock([e.startOnNewLine(e.createStatement(e.createAssignment(e.createElementAccess(o,0===s?c:e.createSubtract(c,e.createLiteral(s))),e.createElementAccess(e.createIdentifier("arguments"),c)),a))]));e.setEmitFlags(u,524288),e.startOnNewLine(u),t.push(u)}}function J(t,r){32768&r.transformFlags&&185!==r.kind&&z(t,r,e.createThis())}function z(t,r,n,a){$e();var i=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("_this",void 0,n)]),a);e.setEmitFlags(i,525824),e.setSourceMapRange(i,r),t.push(i)}function j(t,r){for(var n=0,a=r.members;n<a.length;n++){var i=a[n];switch(i.kind){case 203:t.push(V(i));break;case 149:t.push(U(ot(r,i),i));break;case 151:case 152:var o=e.getAllAccessorDeclarations(r.members,i);i===o.firstAccessor&&t.push(q(ot(r,i),o));break;case 150:break;default:e.Debug.failBadSyntaxKind(r)}}}function V(t){return e.createEmptyStatement(t)}function U(t,r){var n=e.getCommentRange(r),i=e.getSourceMapRange(r),o=e.createMemberAccessForPropertyName(t,e.visitNode(r.name,a,e.isPropertyName),r.name),s=Q(r,r,void 0);e.setEmitFlags(s,1536),e.setSourceMapRange(s,i);var c=e.createStatement(e.createAssignment(o,s),r);return e.setOriginalNode(c,r),e.setCommentRange(c,n),e.setEmitFlags(c,48),c}function q(t,r){var n=e.createStatement(W(t,r,!1),e.getSourceMapRange(r.firstAccessor));return e.setEmitFlags(n,1536),n}function W(t,r,n){var i=r.firstAccessor,o=r.getAccessor,s=r.setAccessor,c=e.getMutableClone(t);e.setEmitFlags(c,1568),e.setSourceMapRange(c,i.name);var u=e.createExpressionForPropertyName(e.visitNode(i.name,a,e.isPropertyName));e.setEmitFlags(u,1552),e.setSourceMapRange(u,i.name);var _=[];if(o){var l=Q(o,void 0,void 0);e.setSourceMapRange(l,e.getSourceMapRange(o)),e.setEmitFlags(l,512);var d=e.createPropertyAssignment("get",l);e.setCommentRange(d,e.getCommentRange(o)),_.push(d)}if(s){var p=Q(s,void 0,void 0);e.setSourceMapRange(p,e.getSourceMapRange(s)),e.setEmitFlags(p,512);var f=e.createPropertyAssignment("set",p);e.setCommentRange(f,e.getCommentRange(s)),_.push(f)}_.push(e.createPropertyAssignment("enumerable",e.createLiteral(!0)),e.createPropertyAssignment("configurable",e.createLiteral(!0)));var m=e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[c,u,e.createObjectLiteral(_,void 0,!0)]);return n&&(m.startsOnNewLine=!0),m}function H(r){16384&r.transformFlags&&$e();var n=e.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(r.parameters,a,t),void 0,Y(r),r);return e.setOriginalNode(n,r),e.setEmitFlags(n,8),n}function G(r){return e.updateFunctionExpression(r,void 0,r.name,void 0,e.visitParameterList(r.parameters,a,t),void 0,64&r.transformFlags?Y(r):e.visitFunctionBody(r.body,a,t))}function X(r){return e.updateFunctionDeclaration(r,void 0,r.modifiers,r.name,void 0,e.visitParameterList(r.parameters,a,t),void 0,64&r.transformFlags?Y(r):e.visitFunctionBody(r.body,a,t))}function Q(r,n,i){var s=Dt;185!==r.kind&&(Dt=r);var c=e.setOriginalNode(e.createFunctionExpression(void 0,r.asteriskToken,i,void 0,e.visitParameterList(r.parameters,a,t),void 0,o(r,Y),n),r);return Dt=s,c}function Y(r){var n,i,o,s=!1,c=!1,u=[],_=r.body;if(ut(),e.isBlock(_)&&(o=e.addPrologueDirectives(u,_.statements,!1,a)),J(u,r),R(u,r),K(u,r,!1),!s&&u.length>0&&(s=!0),e.isBlock(_))n=_.statements,e.addRange(u,e.visitNodes(_.statements,a,e.isStatement,o)),!s&&_.multiLine&&(s=!0);else{e.Debug.assert(185===r.kind),n=e.moveRangeEnd(_,-1);var l=r.equalsGreaterThanToken;e.nodeIsSynthesized(l)||e.nodeIsSynthesized(_)||(e.rangeEndIsOnSameLineAsRangeStart(l,_,mt)?c=!0:s=!0);var d=e.visitNode(_,a,e.isExpression),p=e.createReturn(d,_);e.setEmitFlags(p,1440),u.push(p),i=_}var f=t.endLexicalEnvironment();e.addRange(u,f),!s&&f&&f.length&&(s=!0);var m=e.createBlock(e.createNodeArray(u,n),r.body,s);return!s&&c&&e.setEmitFlags(m,1),i&&e.setTokenSourceMapRange(m,17,i),e.setOriginalNode(m,r.body),m}function Z(r){switch(r.expression.kind){case 183:return e.updateStatement(r,$(r.expression,!1));case 192:return e.updateStatement(r,ee(r.expression,!1))}return e.visitEachChild(r,a,t)}function $(r,n){if(!n)switch(r.expression.kind){case 183:return e.updateParen(r,$(r.expression,!1));case 192:return e.updateParen(r,ee(r.expression,!1))}return e.visitEachChild(r,a,t)}function ee(r,n){if(e.isDestructuringAssignment(r))return e.flattenDestructuringAssignment(r,a,t,0,n)}function te(r){if(Et&&0==(3&e.getCombinedNodeFlags(r.declarationList))){for(var n=void 0,i=0,o=r.declarationList.declarations;i<o.length;i++){var s=o[i];if(me(Et,s),s.initializer){var c=void 0;c=e.isBindingPattern(s.name)?e.flattenDestructuringAssignment(s,a,t,0):e.createBinary(s.name,57,e.visitNode(s.initializer,a,e.isExpression)),(n||(n=[])).push(c)}}return n?e.createStatement(e.reduceLeft(n,function(t,r){return e.createBinary(r,25,t)}),r):void 0}return e.visitEachChild(r,a,t)}function re(t){3&t.flags&&Ze();var r=e.flatten(e.map(t.declarations,1&t.flags?ae:ie)),n=e.createVariableDeclarationList(r,t);if(e.setOriginalNode(n,t),e.setCommentRange(n,t),8388608&t.transformFlags&&(e.isBindingPattern(t.declarations[0].name)||e.isBindingPattern(e.lastOrUndefined(t.declarations).name))){var a=e.firstOrUndefined(r),i=e.lastOrUndefined(r);e.setSourceMapRange(n,e.createRange(a.pos,i.end))}return n}function ne(t){var r=dt.getNodeCheckFlags(t),n=131072&r,a=262144&r,i=e.isBlockScopedContainerTopLevel(bt)||n&&a&&e.isBlock(bt)&&e.isIterationStatement(kt,!1),o=!i&&212!==bt.kind&&213!==bt.kind&&(!dt.isDeclarationWithCollidingName(t)||a&&!n&&!e.isIterationStatement(bt,!1));return o}function ae(r){var n=r.name;if(e.isBindingPattern(n))return ie(r);if(!r.initializer&&ne(r)){var i=e.getMutableClone(r);return i.initializer=e.createVoidZero(),i}return e.visitEachChild(r,a,t)}function ie(r){if(e.isBindingPattern(r.name)){var n=ht&&e.hasModifier(ht,1);return e.flattenDestructuringBinding(r,a,t,0,void 0,n)}return e.visitEachChild(r,a,t)}function oe(r){Et&&(Et.labels||(Et.labels=e.createMap()),Et.labels[r.label.text]=r.label.text);var n;return n=e.isIterationStatement(r.statement,!1)&&fe(r.statement)?e.visitNodes(e.createNodeArray([r.statement]),a,e.isStatement):e.visitEachChild(r,a,t),Et&&(Et.labels[r.label.text]=void 0),n}function se(e){return ge(e)}function ce(e){return ge(e)}function ue(e){return ge(e)}function _e(e){return ge(e)}function le(e){return ge(e,de)}function de(r,n){var i=e.visitNode(r.expression,a,e.isExpression),o=r.initializer,s=[],c=e.createLoopVariable(),u=70===i.kind?e.createUniqueName(i.text):e.createTempVariable(void 0),_=e.createElementAccess(u,c);if(e.isVariableDeclarationList(o)){3&o.flags&&Ze();var l=e.firstOrUndefined(o.declarations);if(l&&e.isBindingPattern(l.name)){var d=e.flattenDestructuringBinding(l,a,t,0,_),p=e.createVariableDeclarationList(d,o);e.setOriginalNode(p,o);var f=d[0],m=e.lastOrUndefined(d);e.setSourceMapRange(p,e.createRange(f.pos,m.end)),s.push(e.createVariableStatement(void 0,p))}else s.push(e.createVariableStatement(void 0,e.setOriginalNode(e.createVariableDeclarationList([e.createVariableDeclaration(l?l.name:e.createTempVariable(void 0),void 0,e.createElementAccess(u,c))],e.moveRangePos(o,-1)),o),e.moveRangeEnd(o,-1)))}else{var g=e.createAssignment(o,_);e.isDestructuringAssignment(g)?s.push(e.createStatement(e.flattenDestructuringAssignment(g,a,t,0))):(g.end=o.end,s.push(e.createStatement(g,e.moveRangeEnd(o,-1))))}var y,v;if(n)e.addRange(s,n);else{var h=e.visitNode(r.statement,a,e.isStatement);e.isBlock(h)?(e.addRange(s,h.statements),y=h,v=h.statements):s.push(h)}e.setEmitFlags(i,48|e.getEmitFlags(i));var b=e.createBlock(e.createNodeArray(s,v),y);e.setEmitFlags(b,432);var k=e.createFor(e.setEmitFlags(e.createVariableDeclarationList([e.createVariableDeclaration(c,void 0,e.createLiteral(0),e.moveRangePos(r.expression,-1)),e.createVariableDeclaration(u,void 0,i,r.expression)],r.expression),1048576),e.createLessThan(c,e.createPropertyAccess(u,"length"),r.expression),e.createPostfixIncrement(c,r.expression),b,r);return e.setEmitFlags(k,256),k}function pe(t){for(var r=t.properties,n=r.length,i=n,o=0;o<n;o++){var s=r[o];if(16777216&s.transformFlags||142===s.name.kind){i=o;break}}e.Debug.assert(i!==n);var c=e.createTempVariable(lt),u=[],_=e.createAssignment(c,e.setEmitFlags(e.createObjectLiteral(e.visitNodes(r,a,e.isObjectLiteralElementLike,0,i),void 0,t.multiLine),32768));return t.multiLine&&(_.startsOnNewLine=!0),u.push(_),De(u,t,c,i),u.push(t.multiLine?e.startOnNewLine(e.getMutableClone(c)):c),e.inlineExpressions(u)}function fe(e){return 0!==(65536&dt.getNodeCheckFlags(e))}function me(t,r){function n(r){if(70===r.kind)t.hoistedLocalVariables.push(r);else for(var a=0,i=r.elements;a<i.length;a++){var o=i[a];e.isOmittedExpression(o)||n(o.name)}}t.hoistedLocalVariables||(t.hoistedLocalVariables=[]),n(r.name)}function ge(r,n){if(!fe(r)){var i=void 0;Et&&(i=Et.allowedNonLabeledJumps,Et.allowedNonLabeledJumps=6);var o=n?n(r,void 0):e.visitEachChild(r,a,t);return Et&&(Et.allowedNonLabeledJumps=i),o}var s,c=e.createUniqueName("_loop");switch(r.kind){case 211:case 212:case 213:var u=r.initializer;u&&224===u.kind&&(s=u)}var _=[],l=[];if(s&&3&e.getCombinedNodeFlags(s))for(var d=0,p=s.declarations;d<p.length;d++){var f=p[d];xe(f,_,l)}var m=Et;Et={loopOutParameters:l},m&&(m.argumentsName&&(Et.argumentsName=m.argumentsName),m.thisName&&(Et.thisName=m.thisName),m.hoistedLocalVariables&&(Et.hoistedLocalVariables=m.hoistedLocalVariables)),ct();var g=e.visitNode(r.statement,a,e.isStatement,!1,e.liftToBlock),y=_t(),v=Et;if(Et=m,l.length||y){var h=e.isBlock(g)?g.statements.slice():[g];l.length&&ve(l,1,h),e.addRange(h,y),g=e.createBlock(h,void 0,!0)}e.isBlock(g)?g.multiLine=!0:g=e.createBlock([g],void 0,!0);var b=Dt&&0!==(131072&e.getEmitFlags(Dt))&&0!==(16777216&r.statement.transformFlags),k=0;v.containsLexicalThis&&(k|=8),b&&(k|=131072);var x,D=e.createVariableStatement(void 0,e.setEmitFlags(e.createVariableDeclarationList([e.createVariableDeclaration(c,void 0,e.setEmitFlags(e.createFunctionExpression(void 0,b?e.createToken(38):void 0,void 0,void 0,_,void 0,g),k))]),1048576)),S=[D];if(v.argumentsName&&(m?m.argumentsName=v.argumentsName:(x||(x=[])).push(e.createVariableDeclaration(v.argumentsName,void 0,e.createIdentifier("arguments")))),v.thisName&&(m?m.thisName=v.thisName:(x||(x=[])).push(e.createVariableDeclaration(v.thisName,void 0,e.createIdentifier("this")))),v.hoistedLocalVariables)if(m)m.hoistedLocalVariables=v.hoistedLocalVariables;else{x||(x=[]);for(var C=0,E=v.hoistedLocalVariables;C<E.length;C++){var T=E[C];x.push(e.createVariableDeclaration(T))}}if(l.length){x||(x=[]);for(var N=0,A=l;N<A.length;N++){var w=A[N];x.push(e.createVariableDeclaration(w.outParamName))}}x&&S.push(e.createVariableStatement(void 0,e.createVariableDeclarationList(x)));var P,F=he(c,_,v,b);return n?P=n(r,F):(P=e.getMutableClone(r),P.statement=void 0,P=e.visitEachChild(P,a,t),P.statement=e.createBlock(F,void 0,!0),P.transformFlags=0,e.aggregateTransformFlags(P)),S.push(219===yt.kind?e.createLabel(yt.label,P):P),S}function ye(t,r){var n=0===r?t.outParamName:t.originalName,a=0===r?t.originalName:t.outParamName;return e.createBinary(a,57,n)}function ve(t,r,n){for(var a=0,i=t;a<i.length;a++){var o=i[a];n.push(e.createStatement(ye(o,r)))}}function he(t,r,n,a){var i=Et,o=[],s=!(n.nonLocalJumps&-5||n.labeledNonLocalBreaks||n.labeledNonLocalContinues),c=e.createCall(t,void 0,e.map(r,function(e){return e.name})),u=a?e.createYield(e.createToken(38),c):c;if(s)o.push(e.createStatement(u)),ve(n.loopOutParameters,0,o);else{var _=e.createUniqueName("state"),l=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(_,void 0,u)]));if(o.push(l),ve(n.loopOutParameters,0,o),8&n.nonLocalJumps){var d=void 0;i?(i.nonLocalJumps|=8,d=e.createReturn(_)):d=e.createReturn(e.createPropertyAccess(_,"value")),o.push(e.createIf(e.createBinary(e.createTypeOf(_),33,e.createLiteral("object")),d))}if(2&n.nonLocalJumps&&o.push(e.createIf(e.createBinary(_,33,e.createLiteral("break")),e.createBreak())),n.labeledNonLocalBreaks||n.labeledNonLocalContinues){var p=[];ke(n.labeledNonLocalBreaks,!0,_,i,p),ke(n.labeledNonLocalContinues,!1,_,i,p),o.push(e.createSwitch(_,e.createCaseBlock(p)))}}return o}function be(t,r,n,a){r?(t.labeledNonLocalBreaks||(t.labeledNonLocalBreaks=e.createMap()),t.labeledNonLocalBreaks[n]=a):(t.labeledNonLocalContinues||(t.labeledNonLocalContinues=e.createMap()),t.labeledNonLocalContinues[n]=a)}function ke(t,r,n,a,i){if(t)for(var o in t){var s=t[o],c=[];if(!a||a.labels&&a.labels[o]){var u=e.createIdentifier(o);c.push(r?e.createBreak(u):e.createContinue(u))}else be(a,r,o,s),c.push(e.createReturn(n));i.push(e.createCaseClause(e.createLiteral(s),c))}}function xe(t,r,n){var a=t.name;if(e.isBindingPattern(a))for(var i=0,o=a.elements;i<o.length;i++){var s=o[i];e.isOmittedExpression(s)||xe(s,r,n)}else if(r.push(e.createParameter(void 0,void 0,void 0,a)),2097152&dt.getNodeCheckFlags(t)){var c=e.createUniqueName("out_"+a.text);n.push({originalName:a,outParamName:c})}}function De(t,r,n,a){for(var i=r.properties,o=i.length,s=a;s<o;s++){var c=i[s];switch(c.kind){case 151:case 152:var u=e.getAllAccessorDeclarations(r.properties,c);c===u.firstAccessor&&t.push(W(n,u,r.multiLine));break;case 257:t.push(Se(c,n,r.multiLine));break;case 258:t.push(Ce(c,n,r.multiLine));break;case 149:t.push(Ee(c,n,r.multiLine));break;default:e.Debug.failBadSyntaxKind(r)}}}function Se(t,r,n){var i=e.createAssignment(e.createMemberAccessForPropertyName(r,e.visitNode(t.name,a,e.isPropertyName)),e.visitNode(t.initializer,a,e.isExpression),t);return n&&(i.startsOnNewLine=!0),i}function Ce(t,r,n){var i=e.createAssignment(e.createMemberAccessForPropertyName(r,e.visitNode(t.name,a,e.isPropertyName)),e.getSynthesizedClone(t.name),t);return n&&(i.startsOnNewLine=!0),i}function Ee(t,r,n){var i=e.createAssignment(e.createMemberAccessForPropertyName(r,e.visitNode(t.name,a,e.isPropertyName)),Q(t,t,void 0),t);return n&&(i.startsOnNewLine=!0),i}function Te(r){e.Debug.assert(e.isBindingPattern(r.variableDeclaration.name));var n=e.createTempVariable(void 0),i=e.createVariableDeclaration(n,void 0,void 0,r.variableDeclaration),o=e.flattenDestructuringBinding(r.variableDeclaration,a,t,0,n),s=e.createVariableDeclarationList(o,r.variableDeclaration,r.variableDeclaration.flags),c=e.createVariableStatement(void 0,s);return e.updateCatchClause(r,i,Ne(r.block,c))}function Ne(t,r){var n=e.visitNodes(t.statements,a,e.isStatement);return e.updateBlock(t,[r].concat(n))}function Ae(t){e.Debug.assert(!e.isComputedPropertyName(t.name));var r=Q(t,e.moveRangePos(t,-1),void 0);return e.setEmitFlags(r,512|e.getEmitFlags(r)),e.createPropertyAssignment(t.name,r,t)}function we(t){return e.createPropertyAssignment(t.name,e.getSynthesizedClone(t.name),t)}function Pe(r){return e.visitEachChild(r,a,t)}function Fe(e){return Me(e.elements,!0,e.multiLine,e.elements.hasTrailingComma)}function Oe(e){return Re(e,!0)}function Ie(e){return Re(e,!1)}function Re(t,r){var n=e.createCallBinding(t.expression,lt),i=n.target,o=n.thisArg;96===t.expression.kind&&e.setEmitFlags(o,4);var s;if(s=524288&t.transformFlags?e.createFunctionApply(e.visitNode(i,a,e.isExpression),e.visitNode(o,a,e.isExpression),Me(t.arguments,!1,!1,!1)):e.createFunctionCall(e.visitNode(i,a,e.isExpression),e.visitNode(o,a,e.isExpression),e.visitNodes(t.arguments,a,e.isExpression),t),96===t.expression.kind){var c=e.createThis();e.setEmitFlags(c,4);var u=e.createLogicalOr(s,c);return r?e.createAssignment(e.createIdentifier("_this"),u):u}return s}function Le(t){e.Debug.assert(0!==(524288&t.transformFlags));var r=e.createCallBinding(e.createPropertyAccess(t.expression,"bind"),lt),n=r.target,i=r.thisArg;return e.createNew(e.createFunctionApply(e.visitNode(n,a,e.isExpression),i,Me(e.createNodeArray([e.createVoidZero()].concat(t.arguments)),!1,!1,!1)),void 0,[])}function Me(t,r,n,a){var i=t.length,o=e.flatten(e.spanMap(t,Be,function(e,t,r,o){return t(e,n,a&&o===i)}));if(1===o.length){var s=t[0];return r&&e.isSpreadExpression(s)&&175!==s.expression.kind?e.createArraySlice(o[0]):o[0]}return e.createArrayConcat(o.shift(),o)}function Be(t){return e.isSpreadExpression(t)?Ke:Je}function Ke(t){return e.map(t,je)}function Je(t,r,n){return e.createArrayLiteral(e.visitNodes(e.createNodeArray(t,void 0,n),a,e.isExpression),void 0,r)}function ze(t){return e.visitNode(t.expression,a,e.isExpression)}function je(t){return e.visitNode(t.expression,a,e.isExpression)}function Ve(t){return e.createLiteral(t.text,t)}function Ue(t){var r=e.visitNode(t.tag,a,e.isExpression),n=e.createTempVariable(lt),i=[n],o=[],s=[],c=t.template;if(e.isNoSubstitutionTemplateLiteral(c))o.push(e.createLiteral(c.text)),s.push(qe(c));else{o.push(e.createLiteral(c.head.text)),s.push(qe(c.head));for(var u=0,_=c.templateSpans;u<_.length;u++){var l=_[u];o.push(e.createLiteral(l.literal.text)),s.push(qe(l.literal)),i.push(e.visitNode(l.expression,a,e.isExpression))}}return e.createParen(e.inlineExpressions([e.createAssignment(n,e.createArrayLiteral(o)),e.createAssignment(e.createPropertyAccess(n,"raw"),e.createArrayLiteral(s)),e.createCall(r,void 0,i)]))}function qe(t){var r=e.getSourceTextOfNodeFromSourceFile(mt,t),n=12===t.kind||15===t.kind;return r=r.substring(1,r.length-(n?1:2)),r=r.replace(/\r\n?/g,"\n"),e.createLiteral(r,t)}function We(t){var r=[];Ge(r,t),Xe(r,t);var n=e.reduceLeft(r,e.createAdd);return e.nodeIsSynthesized(n)&&e.setTextRange(n,t),n}function He(t){return e.Debug.assert(0!==t.templateSpans.length),0!==t.head.text.length||0===t.templateSpans[0].literal.text.length}function Ge(t,r){He(r)&&t.push(e.createLiteral(r.head.text))}function Xe(t,r){for(var n=0,i=r.templateSpans;n<i.length;n++){var o=i[n];t.push(e.visitNode(o.expression,a,e.isExpression)),0!==o.literal.text.length&&t.push(e.createLiteral(o.literal.text))}}function Qe(){return St&&e.isClassElement(St)&&!e.hasModifier(St,32)&&179!==yt.kind?e.createPropertyAccess(e.createIdentifier("_super"),"prototype"):e.createIdentifier("_super")}function Ye(t,r,n){var a=xt;1&Tt&&e.isFunctionLike(r)&&(xt=r),ft(t,r,n),xt=a}function Ze(){0===(2&Tt)&&(Tt|=2,t.enableSubstitution(70))}function $e(){0===(1&Tt)&&(Tt|=1,t.enableSubstitution(98),t.enableEmitNotification(150),t.enableEmitNotification(149),t.enableEmitNotification(151),t.enableEmitNotification(152),t.enableEmitNotification(185),t.enableEmitNotification(184),t.enableEmitNotification(225))}function et(t,r){return r=pt(t,r),1===t?nt(r):e.isIdentifier(r)?tt(r):r}function tt(t){if(2&Tt){var r=e.getParseTreeNode(t,e.isIdentifier);if(r&&rt(r))return e.getGeneratedNameForNode(r)}return t}function rt(e){var t=e.parent;switch(t.kind){case 174:case 226:case 229:case 223:return t.name===e&&dt.isDeclarationWithCollidingName(t)}return!1}function nt(e){switch(e.kind){case 70:return at(e);case 98:return it(e)}return e}function at(t){if(2&Tt){var r=dt.getReferencedDeclarationWithCollidingName(t);if(r)return e.getGeneratedNameForNode(r.name)}return t}function it(t){return 1&Tt&&xt&&8&e.getEmitFlags(xt)?e.createIdentifier("_this",t):t}function ot(t,r){var n=e.getLocalName(t);return e.hasModifier(r,32)?n:e.createPropertyAccess(n,"prototype")}function st(t,r){if(!t||!r)return!1;if(e.some(t.parameters))return!1;var n=e.firstOrUndefined(t.body.statements);if(!n||!e.nodeIsSynthesized(n)||207!==n.kind)return!1;var a=n.expression;if(!e.nodeIsSynthesized(a)||179!==a.kind)return!1;var i=a.expression;if(!e.nodeIsSynthesized(i)||96!==i.kind)return!1;var o=e.singleOrUndefined(a.arguments);if(!o||!e.nodeIsSynthesized(o)||196!==o.kind)return!1;var s=o.expression;return e.isIdentifier(s)&&"arguments"===s.text}var ct=t.startLexicalEnvironment,ut=t.resumeLexicalEnvironment,_t=t.endLexicalEnvironment,lt=t.hoistVariableDeclaration,dt=t.getEmitResolver(),pt=t.onSubstituteNode,ft=t.onEmitNode;t.onEmitNode=Ye,t.onSubstituteNode=et;var mt,gt,yt,vt,ht,bt,kt,xt,Dt,St,Ct,Et,Tt;return n}function r(t,r){return t.requestEmitHelper(s),e.createCall(e.getHelperName("__extends"),void 0,[r,e.createIdentifier("_super")])}var n;!function(e){e[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings"}(n||(n={}));var a;!function(e){e[e.ToOriginal=0]="ToOriginal",e[e.ToOutParameter=1]="ToOutParameter"}(a||(a={}));var i;!function(e){e[e.Break=2]="Break",e[e.Continue=4]="Continue",e[e.Return=8]="Return"}(i||(i={}));var o;!function(e){e[e.NoReplacement=0]="NoReplacement",e[e.ReplaceSuperCapture=1]="ReplaceSuperCapture",e[e.ReplaceWithReturn=2]="ReplaceWithReturn"}(o||(o={})),e.transformES2015=t;var s={name:"typescript:extends",scoped:!1,priority:0,text:"\n            var __extends = (this && this.__extends) || function (d, b) {\n                for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n                function __() { this.constructor = d; }\n                d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n            };"}}(ts||(ts={}));var ts;!function(e){function t(t){function n(r){if(e.isDeclarationFile(r)||0===(512&r.transformFlags))return r;Ot=r;var n=e.visitEachChild(r,a,t);return e.addEmitHelpers(n,t.readEmitHelpers()),Ot=void 0,n}function a(r){var n=r.transformFlags;return Mt?i(r):Lt?o(r):256&n?u(r):512&n?e.visitEachChild(r,a,t):r}function i(e){switch(e.kind){case 209:return J(e);case 210:return j(e);case 218:return te(e);case 219:return ne(e);default:return o(e)}}function o(r){switch(r.kind){case 225:return _(r);case 184:return l(r);case 151:case 152:return d(r);case 205:return f(r);case 211:return U(r);case 212:return W(r);case 215:return Q(r);case 214:return G(r);case 216:return Z(r);default:return 16777216&r.transformFlags?s(r):33554944&r.transformFlags?e.visitEachChild(r,a,t):r}}function s(r){switch(r.kind){case 192:return m(r);case 193:return x(r);case 195:return D(r);case 175:return S(r);case 176:return E(r);case 178:return T(r);case 179:return N(r);case 180:return A(r);default:return e.visitEachChild(r,a,t)}}function u(r){switch(r.kind){case 225:return _(r);case 184:return l(r);default:return e.Debug.failBadSyntaxKind(r),
e.visitEachChild(r,a,t)}}function _(r){if(r.asteriskToken&&131072&e.getEmitFlags(r))r=e.setOriginalNode(e.createFunctionDeclaration(void 0,r.modifiers,void 0,r.name,void 0,e.visitParameterList(r.parameters,a,t),void 0,p(r.body),r),r);else{var n=Lt,i=Mt;Lt=!1,Mt=!1,r=e.visitEachChild(r,a,t),Lt=n,Mt=i}return Lt?void Tt(r):r}function l(r){if(r.asteriskToken&&131072&e.getEmitFlags(r))r=e.setOriginalNode(e.createFunctionExpression(void 0,void 0,r.name,void 0,e.visitParameterList(r.parameters,a,t),void 0,p(r.body),r),r);else{var n=Lt,i=Mt;Lt=!1,Mt=!1,r=e.visitEachChild(r,a,t),Lt=n,Mt=i}return r}function d(r){var n=Lt,i=Mt;return Lt=!1,Mt=!1,r=e.visitEachChild(r,a,t),Lt=n,Mt=i,r}function p(t){var r=[],n=Lt,i=Mt,o=Bt,s=Kt,c=Jt,u=zt,_=jt,l=Vt,d=rr,p=Ut,f=qt,m=Wt,g=Ht;Lt=!0,Mt=!1,Bt=void 0,Kt=void 0,Jt=void 0,zt=void 0,jt=void 0,Vt=void 0,rr=1,Ut=void 0,qt=void 0,Wt=void 0,Ht=e.createTempVariable(void 0),Ct();var y=e.addPrologueDirectives(r,t.statements,!1,a);w(t.statements,y);var v=it();return e.addRange(r,Et()),r.push(e.createReturn(v)),Lt=n,Mt=i,Bt=o,Kt=s,Jt=c,zt=u,jt=_,Vt=l,rr=d,Ut=p,qt=f,Wt=m,Ht=g,e.createBlock(r,t,t.multiLine)}function f(t){if(16777216&t.transformFlags)return void L(t.declarationList);if(524288&e.getEmitFlags(t))return t;for(var r=0,n=t.declarationList.declarations;r<n.length;r++){var a=n[r];Nt(a.name)}var i=e.getInitializedVariables(t.declarationList);if(0!==i.length)return e.createStatement(e.inlineExpressions(e.map(i,M)))}function m(t){switch(e.getExpressionAssociativity(t)){case 0:return h(t);case 1:return v(t);default:e.Debug.fail("Unknown associativity.")}}function g(e){return e>=58&&e<=69}function y(e){switch(e){case 58:return 36;case 59:return 37;case 60:return 38;case 61:return 39;case 62:return 40;case 63:return 41;case 64:return 44;case 65:return 45;case 66:return 46;case 67:return 47;case 68:return 48;case 69:return 49}}function v(r){var n=r.left,i=r.right;if(oe(i)){var o=void 0;switch(n.kind){case 177:o=e.updatePropertyAccess(n,le(e.visitNode(n.expression,a,e.isLeftHandSideExpression)),n.name);break;case 178:o=e.updateElementAccess(n,le(e.visitNode(n.expression,a,e.isLeftHandSideExpression)),le(e.visitNode(n.argumentExpression,a,e.isExpression)));break;default:o=e.visitNode(n,a,e.isExpression)}var s=r.operatorToken.kind;return g(s)?e.createBinary(o,57,e.createBinary(le(o),y(s),e.visitNode(i,a,e.isExpression),r),r):e.updateBinary(r,o,e.visitNode(i,a,e.isExpression))}return e.visitEachChild(r,a,t)}function h(r){if(oe(r.right)){if(e.isLogicalOperator(r.operatorToken.kind))return b(r);if(25===r.operatorToken.kind)return k(r);var n=e.getMutableClone(r);return n.left=le(e.visitNode(r.left,a,e.isExpression)),n.right=e.visitNode(r.right,a,e.isExpression),n}return e.visitEachChild(r,a,t)}function b(t){var r=pe(),n=de();return Xe(n,e.visitNode(t.left,a,e.isExpression),t.left),52===t.operatorToken.kind?Ze(r,n,t.left):Ye(r,n,t.left),Xe(n,e.visitNode(t.right,a,e.isExpression),t.right),fe(r),n}function k(t){function r(t){e.isBinaryExpression(t)&&25===t.operatorToken.kind?(r(t.left),r(t.right)):(oe(t)&&n.length>0&&(at(1,[e.createStatement(e.inlineExpressions(n))]),n=[]),n.push(e.visitNode(t,a,e.isExpression)))}var n=[];return r(t.left),r(t.right),e.inlineExpressions(n)}function x(r){if(oe(r.whenTrue)||oe(r.whenFalse)){var n=pe(),i=pe(),o=de();return Ze(n,e.visitNode(r.condition,a,e.isExpression),r.condition),Xe(o,e.visitNode(r.whenTrue,a,e.isExpression),r.whenTrue),Qe(i),fe(n),Xe(o,e.visitNode(r.whenFalse,a,e.isExpression),r.whenFalse),fe(i),o}return e.visitEachChild(r,a,t)}function D(t){var r=pe(),n=e.visitNode(t.expression,a,e.isExpression);return t.asteriskToken?$e(n,t):et(n,t),fe(r),We(t)}function S(e){return C(e.elements,void 0,void 0,e.multiLine)}function C(t,r,n,i){function o(t,n){return oe(n)&&t.length>0&&(Xe(c,u?e.createArrayConcat(c,[e.createArrayLiteral(t,void 0,i)]):e.createArrayLiteral(r?[r].concat(t):t,void 0,i)),u=!0,r=void 0,t=[]),t.push(e.visitNode(n,a,e.isExpression)),t}var s=se(t),c=de(),u=!1;if(s>0){var _=e.visitNodes(t,a,e.isExpression,0,s);Xe(c,e.createArrayLiteral(r?[r].concat(_):_)),r=void 0,u=!0}var l=e.reduceLeft(t,o,[],s);return u?e.createArrayConcat(c,[e.createArrayLiteral(l,void 0,i)]):e.createArrayLiteral(r?[r].concat(l):l,n,i)}function E(t){function r(r,n){oe(n)&&r.length>0&&(Ge(e.createStatement(e.inlineExpressions(r))),r=[]);var o=e.createExpressionForObjectLiteralElementLike(t,n,s),c=e.visitNode(o,a,e.isExpression);return c&&(i&&(c.startsOnNewLine=!0),r.push(c)),r}var n=t.properties,i=t.multiLine,o=se(n),s=de();Xe(s,e.createObjectLiteral(e.visitNodes(n,a,e.isObjectLiteralElementLike,0,o),void 0,i));var c=e.reduceLeft(n,r,[],o);return c.push(i?e.startOnNewLine(e.getMutableClone(s)):s),e.inlineExpressions(c)}function T(r){if(oe(r.argumentExpression)){var n=e.getMutableClone(r);return n.expression=le(e.visitNode(r.expression,a,e.isLeftHandSideExpression)),n.argumentExpression=e.visitNode(r.argumentExpression,a,e.isExpression),n}return e.visitEachChild(r,a,t)}function N(r){if(e.forEach(r.arguments,oe)){var n=e.createCallBinding(r.expression,Nt,wt,!0),i=n.target,o=n.thisArg;return e.setOriginalNode(e.createFunctionApply(le(e.visitNode(i,a,e.isLeftHandSideExpression)),o,C(r.arguments),r),r)}return e.visitEachChild(r,a,t)}function A(r){if(e.forEach(r.arguments,oe)){var n=e.createCallBinding(e.createPropertyAccess(r.expression,"bind"),Nt),i=n.target,o=n.thisArg;return e.setOriginalNode(e.createNew(e.createFunctionApply(le(e.visitNode(i,a,e.isExpression)),o,C(r.arguments,e.createVoidZero())),void 0,[],r),r)}return e.visitEachChild(r,a,t)}function w(e,t){void 0===t&&(t=0);for(var r=e.length,n=t;n<r;n++)F(e[n])}function P(t){e.isBlock(t)?w(t.statements):F(t)}function F(e){var t=Mt;Mt||(Mt=oe(e)),O(e),Mt=t}function O(t){switch(t.kind){case 204:return I(t);case 207:return R(t);case 208:return B(t);case 209:return K(t);case 210:return z(t);case 211:return V(t);case 212:return q(t);case 214:return H(t);case 215:return X(t);case 216:return Y(t);case 217:return $(t);case 218:return ee(t);case 219:return re(t);case 220:return ae(t);case 221:return ie(t);default:return Ge(e.visitNode(t,a,e.isStatement,!0))}}function I(t){oe(t)?w(t.statements):Ge(e.visitNode(t,a,e.isStatement))}function R(t){Ge(e.visitNode(t,a,e.isStatement))}function L(t){for(var r=0,n=t.declarations;r<n.length;r++){var a=n[r],i=e.getSynthesizedClone(a.name);e.setCommentRange(i,a.name),Nt(i)}for(var o=e.getInitializedVariables(t),s=o.length,c=0,u=[];c<s;){for(var _=c;_<s;_++){var a=o[_];if(oe(a.initializer)&&u.length>0)break;u.push(M(a))}u.length&&(Ge(e.createStatement(e.inlineExpressions(u))),c+=u.length,u=[])}}function M(t){return e.createAssignment(e.getSynthesizedClone(t.name),e.visitNode(t.initializer,a,e.isExpression))}function B(t){if(oe(t))if(oe(t.thenStatement)||oe(t.elseStatement)){var r=pe(),n=t.elseStatement?pe():void 0;Ze(t.elseStatement?n:r,e.visitNode(t.expression,a,e.isExpression),t.expression),P(t.thenStatement),t.elseStatement&&(Qe(r),fe(n),P(t.elseStatement)),fe(r)}else Ge(e.visitNode(t,a,e.isStatement));else Ge(e.visitNode(t,a,e.isStatement))}function K(t){if(oe(t)){var r=pe(),n=pe();Ne(r),fe(n),P(t.statement),fe(r),Ye(n,e.visitNode(t.expression,a,e.isExpression)),Ae()}else Ge(e.visitNode(t,a,e.isStatement))}function J(r){return Mt?(Te(),r=e.visitEachChild(r,a,t),Ae(),r):e.visitEachChild(r,a,t)}function z(t){if(oe(t)){var r=pe(),n=Ne(r);fe(r),Ze(n,e.visitNode(t.expression,a,e.isExpression)),P(t.statement),Qe(r),Ae()}else Ge(e.visitNode(t,a,e.isStatement))}function j(r){return Mt?(Te(),r=e.visitEachChild(r,a,t),Ae(),r):e.visitEachChild(r,a,t)}function V(t){if(oe(t)){var r=pe(),n=pe(),i=Ne(n);if(t.initializer){var o=t.initializer;e.isVariableDeclarationList(o)?L(o):Ge(e.createStatement(e.visitNode(o,a,e.isExpression),o))}fe(r),t.condition&&Ze(i,e.visitNode(t.condition,a,e.isExpression)),P(t.statement),fe(n),t.incrementor&&Ge(e.createStatement(e.visitNode(t.incrementor,a,e.isExpression),t.incrementor)),Qe(r),Ae()}else Ge(e.visitNode(t,a,e.isStatement))}function U(r){Mt&&Te();var n=r.initializer;if(e.isVariableDeclarationList(n)){for(var i=0,o=n.declarations;i<o.length;i++){var s=o[i];Nt(s.name)}var c=e.getInitializedVariables(n);r=e.updateFor(r,c.length>0?e.inlineExpressions(e.map(c,M)):void 0,e.visitNode(r.condition,a,e.isExpression,!0),e.visitNode(r.incrementor,a,e.isExpression,!0),e.visitNode(r.statement,a,e.isStatement,!1,e.liftToBlock))}else r=e.visitEachChild(r,a,t);return Mt&&Ae(),r}function q(t){if(oe(t)){var r=de(),n=de(),i=e.createLoopVariable(),o=t.initializer;Nt(i),Xe(r,e.createArrayLiteral()),Ge(e.createForIn(n,e.visitNode(t.expression,a,e.isExpression),e.createStatement(e.createCall(e.createPropertyAccess(r,"push"),void 0,[n])))),Xe(i,e.createLiteral(0));var s=pe(),c=pe(),u=Ne(c);fe(s),Ze(u,e.createLessThan(i,e.createPropertyAccess(r,"length")));var _=void 0;if(e.isVariableDeclarationList(o)){for(var l=0,d=o.declarations;l<d.length;l++){var p=d[l];Nt(p.name)}_=e.getSynthesizedClone(o.declarations[0].name)}else _=e.visitNode(o,a,e.isExpression),e.Debug.assert(e.isLeftHandSideExpression(_));Xe(_,e.createElementAccess(r,i)),P(t.statement),fe(c),Ge(e.createStatement(e.createPostfixIncrement(i))),Qe(s),Ae()}else Ge(e.visitNode(t,a,e.isStatement))}function W(r){Mt&&Te();var n=r.initializer;if(e.isVariableDeclarationList(n)){for(var i=0,o=n.declarations;i<o.length;i++){var s=o[i];Nt(s.name)}r=e.updateForIn(r,n.declarations[0].name,e.visitNode(r.expression,a,e.isExpression),e.visitNode(r.statement,a,e.isStatement,!1,e.liftToBlock))}else r=e.visitEachChild(r,a,t);return Mt&&Ae(),r}function H(t){var r=ze(t.label?t.label.text:void 0);e.Debug.assert(r>0,"Expected continue statment to point to a valid Label."),Qe(r,t)}function G(r){if(Mt){var n=ze(r.label&&r.label.text);if(n>0)return Ue(n,r)}return e.visitEachChild(r,a,t)}function X(t){var r=Je(t.label?t.label.text:void 0);e.Debug.assert(r>0,"Expected break statment to point to a valid Label."),Qe(r,t)}function Q(r){if(Mt){var n=Je(r.label&&r.label.text);if(n>0)return Ue(n,r)}return e.visitEachChild(r,a,t)}function Y(t){tt(e.visitNode(t.expression,a,e.isExpression,!0),t)}function Z(t){return qe(e.visitNode(t.expression,a,e.isExpression,!0),t)}function $(t){oe(t)?(he(le(e.visitNode(t.expression,a,e.isExpression))),P(t.statement),be()):Ge(e.visitNode(t,a,e.isStatement))}function ee(t){if(oe(t.caseBlock)){for(var r=t.caseBlock,n=r.clauses.length,i=Pe(),o=le(e.visitNode(t.expression,a,e.isExpression)),s=[],c=-1,u=0;u<n;u++){var _=r.clauses[u];s.push(pe()),254===_.kind&&c===-1&&(c=u)}for(var l=0,d=[];l<n;){for(var p=0,u=l;u<n;u++){var _=r.clauses[u];if(253===_.kind){var f=_;if(oe(f.expression)&&d.length>0)break;d.push(e.createCaseClause(e.visitNode(f.expression,a,e.isExpression),[Ue(s[u],f.expression)]))}else p++}d.length&&(Ge(e.createSwitch(o,e.createCaseBlock(d))),l+=d.length,d=[]),p>0&&(l+=p,p=0)}Qe(c>=0?s[c]:i);for(var u=0;u<n;u++)fe(s[u]),w(r.clauses[u].statements);Fe()}else Ge(e.visitNode(t,a,e.isStatement))}function te(r){return Mt&&we(),r=e.visitEachChild(r,a,t),Mt&&Fe(),r}function re(t){oe(t)?(Ie(t.label.text),P(t.statement),Re()):Ge(e.visitNode(t,a,e.isStatement))}function ne(r){return Mt&&Oe(r.label.text),r=e.visitEachChild(r,a,t),Mt&&Re(),r}function ae(t){rt(e.visitNode(t.expression,a,e.isExpression),t)}function ie(r){oe(r)?(xe(),P(r.tryBlock),r.catchClause&&(De(r.catchClause.variableDeclaration),P(r.catchClause.block)),r.finallyBlock&&(Se(),P(r.finallyBlock)),Ce()):Ge(e.visitEachChild(r,a,t))}function oe(e){return e&&0!==(16777216&e.transformFlags)}function se(e){for(var t=e.length,r=0;r<t;r++)if(oe(e[r]))return r;return-1}function ce(e,t){return t=Ft(e,t),1===e?ue(t):t}function ue(t){return e.isIdentifier(t)?_e(t):t}function _e(t){if(It&&e.hasProperty(It,t.text)){var r=e.getOriginalNode(t);if(e.isIdentifier(r)&&r.parent){var n=Pt.getReferencedValueDeclaration(r);if(n){var a=e.getProperty(Rt,String(e.getOriginalNodeId(n)));if(a){var i=e.getMutableClone(a);return e.setSourceMapRange(i,t),e.setCommentRange(i,t),i}}}}return t}function le(t){var r;return e.isGeneratedIdentifier(t)?t:(r=e.createTempVariable(Nt),Xe(r,t,t),r)}function de(t){var r=t?e.createUniqueName(t):e.createTempVariable(void 0);return Nt(r),r}function pe(){jt||(jt=[]);var e=rr;return rr++,jt[e]=-1,e}function fe(t){e.Debug.assert(void 0!==jt,"No labels were defined."),jt[t]=Ut?Ut.length:0}function me(e){Bt||(Bt=[],Jt=[],Kt=[],zt=[]);var t=Jt.length;return Jt[t]=0,Kt[t]=Ut?Ut.length:0,Bt[t]=e,zt.push(e),t}function ge(){var t=ye();e.Debug.assert(void 0!==t,"beginBlock was never called.");var r=Jt.length;return Jt[r]=1,Kt[r]=Ut?Ut.length:0,Bt[r]=t,zt.pop(),t}function ye(){return e.lastOrUndefined(zt)}function ve(){var e=ye();return e&&e.kind}function he(e){var t=pe(),r=pe();fe(t),me({kind:1,expression:e,startLabel:t,endLabel:r})}function be(){e.Debug.assert(1===ve());var t=ge();fe(t.endLabel)}function ke(e){return 1===e.kind}function xe(){var e=pe(),t=pe();return fe(e),me({kind:0,state:0,startLabel:e,endLabel:t}),He(),t}function De(r){e.Debug.assert(0===ve());var n=r.name.text,a=de(n);It||(It=e.createMap(),Rt=e.createMap(),t.enableSubstitution(70)),It[n]=!0,Rt[e.getOriginalNodeId(r)]=a;var i=ye();e.Debug.assert(i.state<1);var o=i.endLabel;Qe(o);var s=pe();fe(s),i.state=1,i.catchVariable=a,i.catchLabel=s,Xe(a,e.createCall(e.createPropertyAccess(Ht,"sent"),void 0,[])),He()}function Se(){e.Debug.assert(0===ve());var t=ye();e.Debug.assert(t.state<2);var r=t.endLabel;Qe(r);var n=pe();fe(n),t.state=2,t.finallyLabel=n}function Ce(){e.Debug.assert(0===ve());var t=ge(),r=t.state;r<2?Qe(t.endLabel):nt(),fe(t.endLabel),He(),t.state=3}function Ee(e){return 0===e.kind}function Te(){me({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function Ne(e){var t=pe();return me({kind:3,isScript:!1,breakLabel:t,continueLabel:e}),t}function Ae(){e.Debug.assert(3===ve());var t=ge(),r=t.breakLabel;t.isScript||fe(r)}function we(){me({kind:2,isScript:!0,breakLabel:-1})}function Pe(){var e=pe();return me({kind:2,isScript:!1,breakLabel:e}),e}function Fe(){e.Debug.assert(2===ve());var t=ge(),r=t.breakLabel;t.isScript||fe(r)}function Oe(e){me({kind:4,isScript:!0,labelText:e,breakLabel:-1})}function Ie(e){var t=pe();me({kind:4,isScript:!1,labelText:e,breakLabel:t})}function Re(){e.Debug.assert(4===ve());var t=ge();t.isScript||fe(t.breakLabel)}function Le(e){return 2===e.kind||3===e.kind}function Me(e){return 4===e.kind}function Be(e){return 3===e.kind}function Ke(e,t){for(var r=t;r>=0;r--){var n=zt[r];if(!Me(n))break;if(n.labelText===e)return!0}return!1}function Je(t){if(e.Debug.assert(void 0!==Bt),t)for(var r=zt.length-1;r>=0;r--){var n=zt[r];if(Me(n)&&n.labelText===t)return n.breakLabel;if(Le(n)&&Ke(t,r-1))return n.breakLabel}else for(var r=zt.length-1;r>=0;r--){var n=zt[r];if(Le(n))return n.breakLabel}return 0}function ze(t){if(e.Debug.assert(void 0!==Bt),t)for(var r=zt.length-1;r>=0;r--){var n=zt[r];if(Be(n)&&Ke(t,r-1))return n.continueLabel}else for(var r=zt.length-1;r>=0;r--){var n=zt[r];if(Be(n))return n.continueLabel}return 0}function je(t){if(t>0){void 0===Vt&&(Vt=[]);var r=e.createLiteral(-1);return void 0===Vt[t]?Vt[t]=[r]:Vt[t].push(r),r}return e.createOmittedExpression()}function Ve(t){var r=e.createLiteral(t);return r.trailingComment=c[t],r}function Ue(t,r){return e.Debug.assert(t>0,"Invalid label: "+t),e.createReturn(e.createArrayLiteral([Ve(3),je(t)]),r)}function qe(t,r){return e.createReturn(e.createArrayLiteral(t?[Ve(2),t]:[Ve(2)]),r)}function We(t){return e.createCall(e.createPropertyAccess(Ht,"sent"),void 0,[],t)}function He(){at(0)}function Ge(e){e?at(1,[e]):He()}function Xe(e,t,r){at(2,[e,t],r)}function Qe(e,t){at(3,[e],t)}function Ye(e,t,r){at(4,[e,t],r)}function Ze(e,t,r){at(5,[e,t],r)}function $e(e,t){at(7,[e],t)}function et(e,t){at(6,[e],t)}function tt(e,t){at(8,[e],t)}function rt(e,t){at(9,[e],t)}function nt(){at(10)}function at(e,t,r){void 0===Ut&&(Ut=[],qt=[],Wt=[]),void 0===jt&&fe(pe());var n=Ut.length;Ut[n]=e,qt[n]=t,Wt[n]=r}function it(){nr=0,ar=0,Gt=void 0,Xt=!1,Qt=!1,Yt=void 0,Zt=void 0,$t=void 0,er=void 0,tr=void 0;var n=ot();return r(t,e.setEmitFlags(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,Ht)],void 0,e.createBlock(n,void 0,n.length>0)),262144))}function ot(){if(Ut){for(var t=0;t<Ut.length;t++)ft(t);ct(Ut.length)}else ct(0);if(Yt){var r=e.createPropertyAccess(Ht,"label"),n=e.createSwitch(r,e.createCaseBlock(Yt));return n.startsOnNewLine=!0,[n]}return Zt?Zt:[]}function st(){Zt&&(_t(!Xt),Xt=!1,Qt=!1,ar++)}function ct(e){ut(e)&&(lt(e),tr=void 0,vt(void 0,void 0)),Zt&&Yt&&_t(!1),dt()}function ut(e){if(!Qt)return!0;if(!jt||!Vt)return!1;for(var t=0;t<jt.length;t++)if(jt[t]===e&&Vt[t])return!0;return!1}function _t(t){if(Yt||(Yt=[]),Zt){if(tr)for(var r=tr.length-1;r>=0;r--){var n=tr[r];Zt=[e.createWith(n.expression,e.createBlock(Zt))]}if(er){var a=er.startLabel,i=er.catchLabel,o=er.finallyLabel,s=er.endLabel;Zt.unshift(e.createStatement(e.createCall(e.createPropertyAccess(e.createPropertyAccess(Ht,"trys"),"push"),void 0,[e.createArrayLiteral([je(a),je(i),je(o),je(s)])]))),er=void 0}t&&Zt.push(e.createStatement(e.createAssignment(e.createPropertyAccess(Ht,"label"),e.createLiteral(ar+1))))}Yt.push(e.createCaseClause(e.createLiteral(ar),Zt||[])),Zt=void 0}function lt(e){if(jt)for(var t=0;t<jt.length;t++)jt[t]===e&&(st(),void 0===Gt&&(Gt=[]),void 0===Gt[ar]?Gt[ar]=[t]:Gt[ar].push(t))}function dt(){if(void 0!==Vt&&void 0!==Gt)for(var e=0;e<Gt.length;e++){var t=Gt[e];if(void 0!==t)for(var r=0,n=t;r<n.length;r++){var a=n[r],i=Vt[a];if(void 0!==i)for(var o=0,s=i;o<s.length;o++){var c=s[o];c.text=String(e)}}}}function pt(e){if(Bt)for(;nr<Jt.length&&Kt[nr]<=e;nr++){var t=Bt[nr],r=Jt[nr];Ee(t)?0===r?($t||($t=[]),Zt||(Zt=[]),$t.push(er),er=t):1===r&&(er=$t.pop()):ke(t)&&(0===r?(tr||(tr=[]),tr.push(t)):1===r&&tr.pop())}}function ft(e){if(lt(e),pt(e),!Xt){Xt=!1,Qt=!1;var t=Ut[e];if(0!==t){if(10===t)return St();var r=qt[e];if(1===t)return mt(r[0]);var n=Wt[e];switch(t){case 2:return gt(r[0],r[1],n);case 3:return ht(r[0],n);case 4:return bt(r[0],r[1],n);case 5:return kt(r[0],r[1],n);case 6:return xt(r[0],n);case 7:return Dt(r[0],n);case 8:return vt(r[0],n);case 9:return yt(r[0],n)}}}}function mt(e){e&&(Zt?Zt.push(e):Zt=[e])}function gt(t,r,n){mt(e.createStatement(e.createAssignment(t,r),n))}function yt(t,r){Xt=!0,Qt=!0,mt(e.createThrow(t,r))}function vt(t,r){Xt=!0,Qt=!0,mt(e.setEmitFlags(e.createReturn(e.createArrayLiteral(t?[Ve(2),t]:[Ve(2)]),r),384))}function ht(t,r){Xt=!0,mt(e.setEmitFlags(e.createReturn(e.createArrayLiteral([Ve(3),je(t)]),r),384))}function bt(t,r,n){mt(e.setEmitFlags(e.createIf(r,e.setEmitFlags(e.createReturn(e.createArrayLiteral([Ve(3),je(t)]),n),384)),1))}function kt(t,r,n){mt(e.setEmitFlags(e.createIf(e.createLogicalNot(r),e.setEmitFlags(e.createReturn(e.createArrayLiteral([Ve(3),je(t)]),n),384)),1))}function xt(t,r){Xt=!0,mt(e.setEmitFlags(e.createReturn(e.createArrayLiteral(t?[Ve(4),t]:[Ve(4)]),r),384))}function Dt(t,r){Xt=!0,mt(e.setEmitFlags(e.createReturn(e.createArrayLiteral([Ve(5),t]),r),384))}function St(){Xt=!0,mt(e.createReturn(e.createArrayLiteral([Ve(7)])))}var Ct=t.resumeLexicalEnvironment,Et=t.endLexicalEnvironment,Tt=t.hoistFunctionDeclaration,Nt=t.hoistVariableDeclaration,At=t.getCompilerOptions(),wt=e.getEmitScriptTarget(At),Pt=t.getEmitResolver(),Ft=t.onSubstituteNode;t.onSubstituteNode=ce;var Ot,It,Rt,Lt,Mt,Bt,Kt,Jt,zt,jt,Vt,Ut,qt,Wt,Ht,Gt,Xt,Qt,Yt,Zt,$t,er,tr,rr=1,nr=0,ar=0;return n}function r(t,r){return t.requestEmitHelper(_),e.createCall(e.getHelperName("__generator"),void 0,[e.createThis(),r])}var n;!function(e){e[e.Nop=0]="Nop",e[e.Statement=1]="Statement",e[e.Assign=2]="Assign",e[e.Break=3]="Break",e[e.BreakWhenTrue=4]="BreakWhenTrue",e[e.BreakWhenFalse=5]="BreakWhenFalse",e[e.Yield=6]="Yield",e[e.YieldStar=7]="YieldStar",e[e.Return=8]="Return",e[e.Throw=9]="Throw",e[e.Endfinally=10]="Endfinally"}(n||(n={}));var a;!function(e){e[e.Open=0]="Open",e[e.Close=1]="Close"}(a||(a={}));var i;!function(e){e[e.Exception=0]="Exception",e[e.With=1]="With",e[e.Switch=2]="Switch",e[e.Loop=3]="Loop",e[e.Labeled=4]="Labeled"}(i||(i={}));var o;!function(e){e[e.Try=0]="Try",e[e.Catch=1]="Catch",e[e.Finally=2]="Finally",e[e.Done=3]="Done"}(o||(o={}));var s;!function(e){e[e.Next=0]="Next",e[e.Throw=1]="Throw",e[e.Return=2]="Return",e[e.Break=3]="Break",e[e.Yield=4]="Yield",e[e.YieldStar=5]="YieldStar",e[e.Catch=6]="Catch",e[e.Endfinally=7]="Endfinally"}(s||(s={}));var c=e.createMap((u={},u[2]="return",u[3]="break",u[4]="yield",u[5]="yield*",u[7]="endfinally",u));e.transformGenerators=t;var u,_={name:"typescript:generator",scoped:!1,priority:6,text:'\n            var __generator = (this && this.__generator) || function (thisArg, body) {\n                var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t;\n                return { next: verb(0), "throw": verb(1), "return": verb(2) };\n                function verb(n) { return function (v) { return step([n, v]); }; }\n                function step(op) {\n                    if (f) throw new TypeError("Generator is already executing.");\n                    while (_) try {\n                        if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;\n                        if (y = 0, t) op = [0, t.value];\n                        switch (op[0]) {\n                            case 0: case 1: t = op; break;\n                            case 4: _.label++; return { value: op[1], done: false };\n                            case 5: _.label++; y = op[1]; op = [0]; continue;\n                            case 7: op = _.ops.pop(); _.trys.pop(); continue;\n                            default:\n                                if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n                                if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n                                if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n                                if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n                                if (t[2]) _.ops.pop();\n                                _.trys.pop(); continue;\n                        }\n                        op = body.call(thisArg, _);\n                    } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n                    if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n                }\n            };'}}(ts||(ts={}));var ts;!function(e){function t(t){function r(e){return e}function n(t,r,n){switch(r.kind){case 248:case 249:case 247:var a=r.tagName;u[e.getOriginalNodeId(a)]=!0}c(t,r,n)}function a(t,r){return r.id&&u&&u[r.id]?l(t,r):(r=l(t,r),e.isPropertyAccessExpression(r)?i(r):e.isPropertyAssignment(r)?o(r):r)}function i(t){var r=s(t.name);return r?e.createElementAccess(t.expression,r,t):t}function o(t){var r=e.isIdentifier(t.name)&&s(t.name);return r?e.updatePropertyAssignment(t,r,t.initializer):t}function s(t){var r=t.originalKeywordKind||(e.nodeIsSynthesized(t)?e.stringToToken(t.text):void 0);if(r>=71&&r<=106)return e.createLiteral(t,t)}var c,u,_=t.getCompilerOptions();1===_.jsx&&(c=t.onEmitNode,t.onEmitNode=n,t.enableEmitNotification(248),t.enableEmitNotification(249),t.enableEmitNotification(247),u=[]);var l=t.onSubstituteNode;return t.onSubstituteNode=a,t.enableSubstitution(177),t.enableSubstitution(257),r}e.transformES5=t}(ts||(ts={}));var ts;!function(e){function t(t){function r(r){if(e.isDeclarationFile(r))return r;if(e.isExternalModule(r)||c.isolatedModules){var a=e.getOrCreateExternalHelpersModuleNameIfNeeded(r,c);if(a){var i=[],o=e.addPrologueDirectives(i,r.statements);return e.append(i,e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,e.createNamespaceImport(a)),e.createLiteral(e.externalHelpersModuleNameText))),e.addRange(i,e.visitNodes(r.statements,n,e.isStatement,o)),e.updateSourceFileNode(r,e.createNodeArray(i,r.statements))}return e.visitEachChild(r,n,t)}return r}function n(e){switch(e.kind){case 234:return;case 240:return a(e)}return e}function a(e){return e.isExportEquals?void 0:e}function i(t,r,n){e.isSourceFile(r)?(l=r,u(t,r,n),l=void 0):u(t,r,n)}function o(t,r){return r=_(t,r),e.isIdentifier(r)&&1===t?s(r):r}function s(t){if(4096&e.getEmitFlags(t)){var r=e.getExternalHelpersModuleName(l);if(r)return e.createPropertyAccess(r,t)}return t}var c=t.getCompilerOptions(),u=t.onEmitNode,_=t.onSubstituteNode;t.onEmitNode=i,t.onSubstituteNode=o,t.enableEmitNotification(261),t.enableSubstitution(70);var l;return r}e.transformES2015Module=t}(ts||(ts={}));var ts;!function(e){function t(t){function r(t){if(e.isDeclarationFile(t)||!e.isExternalModule(t)&&!de.isolatedModules)return t;var r=e.getOriginalNodeId(t);ye=t,xe=t,ve=Se[r]=e.collectExternalModuleInfo(t,pe,de),he=Ee[r]=e.createUniqueName("exports"),be=e.createUniqueName("context");var i=n(ve.externalImports),o=a(t,i),s=e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,he),e.createParameter(void 0,void 0,void 0,be)],void 0,o),c=e.tryGetModuleNameFromFile(t,fe,de),u=e.createArrayLiteral(e.map(i,function(e){return e.name})),_=e.setEmitFlags(e.updateSourceFileNode(t,e.createNodeArray([e.createStatement(e.createCall(e.createPropertyAccess(e.createIdentifier("System"),"register"),void 0,c?[c,u,s]:[u,s]))],t.statements)),1024);return de.outFile||de.out||e.moveEmitHelpers(_,o,function(e){return!e.scoped}),De&&(Te[r]=De,De=void 0),ye=void 0,ve=void 0,he=void 0,be=void 0,ke=void 0,xe=void 0,e.aggregateTransformFlags(_)}function n(t){for(var r=e.createMap(),n=[],a=0;a<t.length;a++){var i=t[a],o=e.getExternalModuleNameLiteral(i,ye,fe,pe,de),s=o.text;if(e.hasProperty(r,s)){var c=r[s];n[c].externalImports.push(i)}else r[s]=n.length,n.push({name:o,externalImports:[i]})}return n}function a(t,r){var n=[];ue();var a=e.addPrologueDirectives(n,t.statements,!de.noImplicitUseStrict,c);n.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("__moduleName",void 0,e.createLogicalAnd(be,e.createPropertyAccess(be,"id")))]))),e.visitNode(ve.externalHelpersImportDeclaration,c,e.isStatement,!0);var o=e.visitNodes(t.statements,c,e.isStatement,a);e.addRange(n,ke),e.addRange(n,_e());var u=i(n);return n.push(e.createReturn(e.setMultiLine(e.createObjectLiteral([e.createPropertyAssignment("setters",s(u,r)),e.createPropertyAssignment("execute",e.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,e.createBlock(o,void 0,!0)))]),!0))),e.createBlock(n,void 0,!0)}function i(t){if(ve.hasExportStarsToExportValues){if(!ve.exportedNames&&e.isEmpty(ve.exportSpecifiers)){for(var r=!1,n=0,a=ve.externalImports;n<a.length;n++){var i=a[n];if(241===i.kind&&i.exportClause){r=!0;break}}if(!r){var s=o(void 0);return t.push(s),s.name}}var c=[];if(ve.exportedNames)for(var u=0,_=ve.exportedNames;u<_.length;u++){var l=_[u];"default"!==l.text&&c.push(e.createPropertyAssignment(e.createLiteral(l),e.createLiteral(!0)))}for(var d=0,p=ve.externalImports;d<p.length;d++){var i=p[d];if(241===i.kind){var f=i;if(f.exportClause)for(var m=0,g=f.exportClause.elements;m<g.length;m++){var y=g[m];c.push(e.createPropertyAssignment(e.createLiteral((y.name||y.propertyName).text),e.createLiteral(!0)))}}}var v=e.createUniqueName("exportedNames");t.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(v,void 0,e.createObjectLiteral(c,void 0,!0))])));var h=o(v);return t.push(h),h.name}}function o(t){var r=e.createUniqueName("exportStar"),n=e.createIdentifier("m"),a=e.createIdentifier("n"),i=e.createIdentifier("exports"),o=e.createStrictInequality(a,e.createLiteral("default"));return t&&(o=e.createLogicalAnd(o,e.createLogicalNot(e.createCall(e.createPropertyAccess(t,"hasOwnProperty"),void 0,[a])))),e.createFunctionDeclaration(void 0,void 0,void 0,r,void 0,[e.createParameter(void 0,void 0,void 0,n)],void 0,e.createBlock([e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(i,void 0,e.createObjectLiteral([]))])),e.createForIn(e.createVariableDeclarationList([e.createVariableDeclaration(a,void 0)]),n,e.createBlock([e.setEmitFlags(e.createIf(o,e.createStatement(e.createAssignment(e.createElementAccess(i,a),e.createElementAccess(n,a)))),1)])),e.createStatement(e.createCall(he,void 0,[i]))],void 0,!0))}function s(t,r){for(var n=[],a=0,i=r;a<i.length;a++){for(var o=i[a],s=e.forEach(o.externalImports,function(t){return e.getLocalNameForExternalImport(t,ye)}),c=s?e.getGeneratedNameForNode(s):e.createUniqueName(""),u=[],_=0,l=o.externalImports;_<l.length;_++){var d=l[_],p=e.getLocalNameForExternalImport(d,ye);switch(d.kind){case 235:if(!d.importClause)break;case 234:e.Debug.assert(void 0!==p),u.push(e.createStatement(e.createAssignment(p,c)));break;case 241:if(e.Debug.assert(void 0!==p),d.exportClause){for(var f=[],m=0,g=d.exportClause.elements;m<g.length;m++){var y=g[m];f.push(e.createPropertyAssignment(e.createLiteral(y.name.text),e.createElementAccess(c,e.createLiteral((y.propertyName||y.name).text))))}u.push(e.createStatement(e.createCall(he,void 0,[e.createObjectLiteral(f,void 0,!0)])))}else u.push(e.createStatement(e.createCall(t,void 0,[c])))}}n.push(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,c)],void 0,e.createBlock(u,void 0,!0)))}return e.createArrayLiteral(n,void 0,!0)}function c(e){switch(e.kind){case 235:return u(e);case 234:return _(e);case 241:return;case 240:return l(e);default:return O(e)}}function u(t){var r;if(t.importClause&&le(e.getLocalNameForExternalImport(t,ye)),x(t)){var n=e.getOriginalNodeId(t);Ce[n]=S(Ce[n],t)}else r=S(r,t);return e.singleOrMany(r)}function _(t){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer.");var r;if(le(e.getLocalNameForExternalImport(t,ye)),x(t)){var n=e.getOriginalNodeId(t);Ce[n]=C(Ce[n],t)}else r=C(r,t);return e.singleOrMany(r)}function l(t){if(!t.isExportEquals){var r=e.visitNode(t.expression,Q,e.isExpression),n=t.original;if(!n||!x(n))return P(e.createIdentifier("default"),r,!0);var a=e.getOriginalNodeId(t);Ce[a]=w(Ce[a],e.createIdentifier("default"),r,!0)}}function d(t){if(ke=e.hasModifier(t,1)?e.append(ke,e.updateFunctionDeclaration(t,t.decorators,e.visitNodes(t.modifiers,$,e.isModifier),e.getDeclarationName(t,!0,!0),void 0,e.visitNodes(t.parameters,Q,e.isParameterDeclaration),void 0,e.visitNode(t.body,Q,e.isBlock))):e.append(ke,t),x(t)){var r=e.getOriginalNodeId(t);Ce[r]=N(Ce[r],t)}else ke=N(ke,t)}function p(t){var r,n=e.getLocalName(t);if(le(n),r=e.append(r,e.createStatement(e.createAssignment(n,e.createClassExpression(void 0,t.name,void 0,e.visitNodes(t.heritageClauses,Q,e.isHeritageClause),e.visitNodes(t.members,Q,e.isClassElement),t)),t)),x(t)){var a=e.getOriginalNodeId(t);Ce[a]=N(Ce[a],t)}else r=N(r,t);return e.singleOrMany(r)}function f(t){if(!g(t.declarationList))return e.visitNode(t,Q,e.isStatement);for(var r,n=e.hasModifier(t,1),a=x(t),i=0,o=t.declarationList.declarations;i<o.length;i++){var s=o[i];s.initializer?r=e.append(r,y(s,n&&!a)):m(s)}var c;if(r&&(c=e.append(c,e.createStatement(e.inlineExpressions(r),t))),a){var u=e.getOriginalNodeId(t);Ce[u]=E(Ce[u],t,n)}else c=E(c,t,!1);return e.singleOrMany(c)}function m(t){if(e.isBindingPattern(t.name))for(var r=0,n=t.name.elements;r<n.length;r++){var a=n[r];e.isOmittedExpression(a)||m(a)}else le(e.getSynthesizedClone(t.name))}function g(t){return 0===(1048576&e.getEmitFlags(t))&&(261===xe.kind||0===(3&e.getOriginalNode(t).flags))}function y(r,n){var a=n?v:h;return e.isBindingPattern(r.name)?e.flattenDestructuringAssignment(r,Q,t,0,!1,a):a(r.name,e.visitNode(r.initializer,Q,e.isExpression))}function v(e,t,r){return b(e,t,r,!0)}function h(e,t,r){return b(e,t,r,!1);
}function b(t,r,n,a){return le(e.getSynthesizedClone(t)),a?F(t,se(e.createAssignment(t,r,n))):se(e.createAssignment(t,r,n))}function k(t){if(x(t)&&205===t.original.kind){var r=e.getOriginalNodeId(t),n=e.hasModifier(t.original,1);Ce[r]=E(Ce[r],t.original,n)}return t}function x(t){return 0!==(2097152&e.getEmitFlags(t))}function D(t){var r=e.getOriginalNodeId(t),n=Ce[r];return n?(delete Ce[r],e.append(n,t)):t}function S(e,t){if(ve.exportEquals)return e;var r=t.importClause;if(!r)return e;r.name&&(e=A(e,r));var n=r.namedBindings;if(n)switch(n.kind){case 237:e=A(e,n);break;case 238:for(var a=0,i=n.elements;a<i.length;a++){var o=i[a];e=A(e,o)}}return e}function C(e,t){return ve.exportEquals?e:A(e,t)}function E(e,t,r){if(ve.exportEquals)return e;for(var n=0,a=t.declarationList.declarations;n<a.length;n++){var i=a[n];(i.initializer||r)&&(e=T(e,i,r))}return e}function T(t,r,n){if(ve.exportEquals)return t;if(e.isBindingPattern(r.name))for(var a=0,i=r.name.elements;a<i.length;a++){var o=i[a];e.isOmittedExpression(o)||(t=T(t,o,n))}else if(!e.isGeneratedIdentifier(r.name)){var s=void 0;n&&(t=w(t,r.name,e.getLocalName(r)),s=r.name.text),t=A(t,r,s)}return t}function N(t,r){if(ve.exportEquals)return t;var n;if(e.hasModifier(r,1)){var a=e.hasModifier(r,512)?e.createLiteral("default"):r.name;t=w(t,a,e.getLocalName(r)),n=a.text}return r.name&&(t=A(t,r,n)),t}function A(t,r,n){if(ve.exportEquals)return t;var a=e.getDeclarationName(r),i=ve.exportSpecifiers[a.text];if(i)for(var o=0,s=i;o<s.length;o++){var c=s[o];c.name.text!==n&&(t=w(t,c.name,a))}return t}function w(t,r,n,a){return t=e.append(t,P(r,n,a))}function P(t,r,n){var a=e.createStatement(F(t,r));return e.startOnNewLine(a),n||e.setEmitFlags(a,1536),a}function F(t,r){var n=e.isIdentifier(t)?e.createLiteral(t):t;return e.createCall(he,void 0,[n,r])}function O(e){switch(e.kind){case 205:return f(e);case 225:return d(e);case 226:return p(e);case 211:return I(e);case 212:return R(e);case 213:return L(e);case 209:return K(e);case 210:return J(e);case 219:return z(e);case 217:return j(e);case 218:return V(e);case 232:return U(e);case 253:return q(e);case 254:return W(e);case 221:return H(e);case 256:return G(e);case 204:return X(e);case 295:return k(e);case 296:return D(e);default:return Q(e)}}function I(t){var r=xe;return xe=t,t=e.updateFor(t,B(t.initializer),e.visitNode(t.condition,Q,e.isExpression,!0),e.visitNode(t.incrementor,Q,e.isExpression,!0),e.visitNode(t.statement,O,e.isStatement)),xe=r,t}function R(t){var r=xe;return xe=t,t=e.updateForIn(t,B(t.initializer),e.visitNode(t.expression,Q,e.isExpression),e.visitNode(t.statement,O,e.isStatement,!1,e.liftToBlock)),xe=r,t}function L(t){var r=xe;return xe=t,t=e.updateForOf(t,B(t.initializer),e.visitNode(t.expression,Q,e.isExpression),e.visitNode(t.statement,O,e.isStatement,!1,e.liftToBlock)),xe=r,t}function M(t){return e.isVariableDeclarationList(t)&&g(t)}function B(r){if(M(r)){for(var n=void 0,a=0,i=r.declarations;a<i.length;a++){var o=i[a];n=e.append(n,y(o,!1))}return n?e.inlineExpressions(n):e.createOmittedExpression()}return e.visitEachChild(r,O,t)}function K(t){return e.updateDo(t,e.visitNode(t.statement,O,e.isStatement,!1,e.liftToBlock),e.visitNode(t.expression,Q,e.isExpression))}function J(t){return e.updateWhile(t,e.visitNode(t.expression,Q,e.isExpression),e.visitNode(t.statement,O,e.isStatement,!1,e.liftToBlock))}function z(t){return e.updateLabel(t,t.label,e.visitNode(t.statement,O,e.isStatement,!1,e.liftToBlock))}function j(t){return e.updateWith(t,e.visitNode(t.expression,Q,e.isExpression),e.visitNode(t.statement,O,e.isStatement,!1,e.liftToBlock))}function V(t){return e.updateSwitch(t,e.visitNode(t.expression,Q,e.isExpression),e.visitNode(t.caseBlock,O,e.isCaseBlock))}function U(t){var r=xe;return xe=t,t=e.updateCaseBlock(t,e.visitNodes(t.clauses,O,e.isCaseOrDefaultClause)),xe=r,t}function q(t){return e.updateCaseClause(t,e.visitNode(t.expression,Q,e.isExpression),e.visitNodes(t.statements,O,e.isStatement))}function W(r){return e.visitEachChild(r,O,t)}function H(r){return e.visitEachChild(r,O,t)}function G(t){var r=xe;return xe=t,t=e.updateCatchClause(t,t.variableDeclaration,e.visitNode(t.block,O,e.isBlock)),xe=r,t}function X(r){var n=xe;return xe=r,r=e.visitEachChild(r,O,t),xe=n,r}function Q(r){return 1024&r.transformFlags&&192===r.kind?Y(r):2048&r.transformFlags?e.visitEachChild(r,Q,t):r}function Y(r){return Z(r.left)?e.flattenDestructuringAssignment(r,Q,t,0,!0):e.visitEachChild(r,Q,t)}function Z(t){if(e.isAssignmentExpression(t))return Z(t.left);if(e.isSpreadExpression(t))return Z(t.expression);if(e.isObjectLiteralExpression(t))return e.some(t.properties,Z);if(e.isArrayLiteralExpression(t))return e.some(t.elements,Z);if(e.isShorthandPropertyAssignment(t))return Z(t.name);if(e.isPropertyAssignment(t))return Z(t.initializer);if(e.isIdentifier(t)){var r=pe.getReferencedExportContainer(t);return void 0!==r&&261===r.kind}return!1}function $(e){switch(e.kind){case 83:case 78:return}return e}function ee(t,r,n){if(261===r.kind){var a=e.getOriginalNodeId(r);ye=r,ve=Se[a],he=Ee[a],De=Te[a],De&&delete Te[a],ge(t,r,n),ye=void 0,ve=void 0,he=void 0,De=void 0}else ge(t,r,n)}function te(e,t){return t=me(e,t),ce(t)?t:1===e?re(t):t}function re(e){switch(e.kind){case 70:return ne(e);case 192:return ae(e);case 190:case 191:return ie(e)}return e}function ne(t){if(4096&e.getEmitFlags(t)){var r=e.getExternalHelpersModuleName(ye);return r?e.createPropertyAccess(r,t):t}if(!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var n=pe.getReferencedImportDeclaration(t);if(n){if(e.isImportClause(n))return e.createPropertyAccess(e.getGeneratedNameForNode(n.parent),e.createIdentifier("default"),t);if(e.isImportSpecifier(n))return e.createPropertyAccess(e.getGeneratedNameForNode(n.parent.parent.parent),e.getSynthesizedClone(n.propertyName||n.name),t)}}return t}function ae(t){if(e.isAssignmentOperator(t.operatorToken.kind)&&e.isIdentifier(t.left)&&!e.isGeneratedIdentifier(t.left)&&!e.isLocalName(t.left)&&!e.isDeclarationNameOfEnumOrNamespace(t.left)){var r=oe(t.left);if(r){for(var n=t,a=0,i=r;a<i.length;a++){var o=i[a];n=F(o,se(n))}return n}}return t}function ie(t){if((42===t.operator||43===t.operator)&&e.isIdentifier(t.operand)&&!e.isGeneratedIdentifier(t.operand)&&!e.isLocalName(t.operand)&&!e.isDeclarationNameOfEnumOrNamespace(t.operand)){var r=oe(t.operand);if(r){for(var n=191===t.kind?e.createPrefix(t.operator,t.operand,t):t,a=0,i=r;a<i.length;a++){var o=i[a];n=F(o,se(n))}return 191===t.kind&&(n=42===t.operator?e.createSubtract(se(n),e.createLiteral(1)):e.createAdd(se(n),e.createLiteral(1))),n}}return t}function oe(t){var r;if(!e.isGeneratedIdentifier(t)){var n=pe.getReferencedImportDeclaration(t)||pe.getReferencedValueDeclaration(t);if(n){var a=pe.getReferencedExportContainer(t,!1);a&&261===a.kind&&(r=e.append(r,e.getDeclarationName(n))),r=e.addRange(r,ve&&ve.exportedBindings[e.getOriginalNodeId(n)])}}return r}function se(t){return void 0===De&&(De=e.createMap()),De[e.getNodeId(t)]=!0,t}function ce(e){return De&&e.id&&De[e.id]}var ue=t.startLexicalEnvironment,_e=t.endLexicalEnvironment,le=t.hoistVariableDeclaration,de=t.getCompilerOptions(),pe=t.getEmitResolver(),fe=t.getEmitHost(),me=t.onSubstituteNode,ge=t.onEmitNode;t.onSubstituteNode=te,t.onEmitNode=ee,t.enableSubstitution(70),t.enableSubstitution(192),t.enableSubstitution(190),t.enableSubstitution(191),t.enableEmitNotification(261);var ye,ve,he,be,ke,xe,De,Se=e.createMap(),Ce=e.createMap(),Ee=e.createMap(),Te=e.createMap();return r}e.transformSystemModule=t}(ts||(ts={}));var ts;!function(e){function t(t){function n(t){if(e.isDeclarationFile(t)||!e.isExternalModule(t)&&!U.isolatedModules)return t;Y=t,Z=ee[e.getOriginalNodeId(t)]=e.collectExternalModuleInfo(t,q,U);var r=z[G]||z[e.ModuleKind.None],n=r(t);return Y=void 0,Z=void 0,e.aggregateTransformFlags(n)}function a(t){j();var n=[],a=e.addPrologueDirectives(n,t.statements,!U.noImplicitUseStrict,_);e.append(n,e.visitNode(Z.externalHelpersImportDeclaration,_,e.isStatement,!0)),e.addRange(n,e.visitNodes(t.statements,_,e.isStatement,a)),e.addRange(n,V()),u(n,!1);var i=e.updateSourceFileNode(t,e.createNodeArray(n,t.statements));return Z.hasExportStarsToExportValues&&e.addEmitHelper(i,r),i}function i(t){var r=e.createIdentifier("define"),n=e.tryGetModuleNameFromFile(t,W,U),a=s(t,!0),i=a.aliasedModuleNames,o=a.unaliasedModuleNames,u=a.importAliasNames;return e.updateSourceFileNode(t,e.createNodeArray([e.createStatement(e.createCall(r,void 0,(n?[n]:[]).concat([e.createArrayLiteral([e.createLiteral("require"),e.createLiteral("exports")].concat(i,o)),e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")].concat(u),void 0,c(t))])))],t.statements))}function o(t){var r=s(t,!1),n=r.aliasedModuleNames,a=r.unaliasedModuleNames,i=r.importAliasNames,o=e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"factory")],void 0,e.createBlock([e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("module"),"object"),e.createTypeCheck(e.createPropertyAccess(e.createIdentifier("module"),"exports"),"object")),e.createBlock([e.createVariableStatement(void 0,[e.createVariableDeclaration("v",void 0,e.createCall(e.createIdentifier("factory"),void 0,[e.createIdentifier("require"),e.createIdentifier("exports")]))]),e.setEmitFlags(e.createIf(e.createStrictInequality(e.createIdentifier("v"),e.createIdentifier("undefined")),e.createStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier("module"),"exports"),e.createIdentifier("v")))),1)]),e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("define"),"function"),e.createPropertyAccess(e.createIdentifier("define"),"amd")),e.createBlock([e.createStatement(e.createCall(e.createIdentifier("define"),void 0,[e.createArrayLiteral([e.createLiteral("require"),e.createLiteral("exports")].concat(n,a)),e.createIdentifier("factory")]))])))],void 0,!0));return e.updateSourceFileNode(t,e.createNodeArray([e.createStatement(e.createCall(o,void 0,[e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")].concat(i),void 0,c(t))]))],t.statements))}function s(t,r){for(var n=[],a=[],i=[],o=0,s=t.amdDependencies;o<s.length;o++){var c=s[o];c.name?(n.push(e.createLiteral(c.path)),i.push(e.createParameter(void 0,void 0,void 0,c.name))):a.push(e.createLiteral(c.path))}for(var u=0,_=Z.externalImports;u<_.length;u++){var l=_[u],d=e.getExternalModuleNameLiteral(l,Y,W,q,U),p=e.getLocalNameForExternalImport(l,Y);r&&p?(e.setEmitFlags(p,4),n.push(d),i.push(e.createParameter(void 0,void 0,void 0,p))):a.push(d)}return{aliasedModuleNames:n,unaliasedModuleNames:a,importAliasNames:i}}function c(t){j();var n=[],a=e.addPrologueDirectives(n,t.statements,!U.noImplicitUseStrict,_);e.append(n,e.visitNode(Z.externalHelpersImportDeclaration,_,e.isStatement,!0)),e.addRange(n,e.visitNodes(t.statements,_,e.isStatement,a)),e.addRange(n,V()),u(n,!0);var i=e.createBlock(n,void 0,!0);return Z.hasExportStarsToExportValues&&e.addEmitHelper(i,r),i}function u(t,r){if(Z.exportEquals)if(r){var n=e.createReturn(Z.exportEquals.expression,Z.exportEquals);e.setEmitFlags(n,1920),t.push(n)}else{var n=e.createStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier("module"),"exports"),Z.exportEquals.expression),Z.exportEquals);e.setEmitFlags(n,1536),t.push(n)}}function _(e){switch(e.kind){case 235:return l(e);case 234:return p(e);case 241:return f(e);case 240:return m(e);case 205:return v(e);case 225:return g(e);case 226:return y(e);case 295:return b(e);case 296:return x(e);default:return e}}function l(t){var r,n=e.getNamespaceDeclarationNode(t);if(G!==e.ModuleKind.AMD){if(!t.importClause)return e.createStatement(d(t),t);var a=[];n&&!e.isDefaultImport(t)?a.push(e.createVariableDeclaration(e.getSynthesizedClone(n.name),void 0,d(t))):(a.push(e.createVariableDeclaration(e.getGeneratedNameForNode(t),void 0,d(t))),n&&e.isDefaultImport(t)&&a.push(e.createVariableDeclaration(e.getSynthesizedClone(n.name),void 0,e.getGeneratedNameForNode(t)))),r=e.append(r,e.createVariableStatement(void 0,e.createVariableDeclarationList(a,void 0,H>=2?2:0),t))}else n&&e.isDefaultImport(t)&&(r=e.append(r,e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedClone(n.name),void 0,e.getGeneratedNameForNode(t),t)],void 0,H>=2?2:0))));if(k(t)){var i=e.getOriginalNodeId(t);te[i]=D(te[i],t)}else r=D(r,t);return e.singleOrMany(r)}function d(t){var r=e.getExternalModuleNameLiteral(t,Y,W,q,U),n=[];return r&&n.push(r),e.createCall(e.createIdentifier("require"),void 0,n)}function p(t){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer.");var r;if(G!==e.ModuleKind.AMD?r=e.hasModifier(t,1)?e.append(r,e.createStatement(P(t.name,d(t)),t)):e.append(r,e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedClone(t.name),void 0,d(t))],void 0,H>=2?2:0),t)):e.hasModifier(t,1)&&(r=e.append(r,e.createStatement(P(e.getExportName(t),e.getLocalName(t)),t))),k(t)){var n=e.getOriginalNodeId(t);te[n]=S(te[n],t)}else r=S(r,t);return e.singleOrMany(r)}function f(t){if(t.moduleSpecifier){var r=e.getGeneratedNameForNode(t);if(t.exportClause){var n=[];G!==e.ModuleKind.AMD&&n.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(r,void 0,d(t))]),t));for(var a=0,i=t.exportClause.elements;a<i.length;a++){var o=i[a],s=e.createPropertyAccess(r,o.propertyName||o.name);n.push(e.createStatement(P(e.getExportName(o),s),o))}return e.singleOrMany(n)}return e.createStatement(e.createCall(e.createIdentifier("__export"),void 0,[G!==e.ModuleKind.AMD?d(t):r]),t)}}function m(t){if(!t.isExportEquals){var r,n=t.original;if(n&&k(n)){var a=e.getOriginalNodeId(t);te[a]=A(te[a],e.createIdentifier("default"),t.expression,t,!0)}else r=A(r,e.createIdentifier("default"),t.expression,t,!0);return e.singleOrMany(r)}}function g(t){var r;if(r=e.hasModifier(t,1)?e.append(r,e.setOriginalNode(e.createFunctionDeclaration(void 0,e.visitNodes(t.modifiers,F,e.isModifier),t.asteriskToken,e.getDeclarationName(t,!0,!0),void 0,t.parameters,void 0,t.body,t),t)):e.append(r,t),k(t)){var n=e.getOriginalNodeId(t);te[n]=T(te[n],t)}else r=T(r,t);return e.singleOrMany(r)}function y(t){var r;if(r=e.hasModifier(t,1)?e.append(r,e.setOriginalNode(e.createClassDeclaration(void 0,e.visitNodes(t.modifiers,F,e.isModifier),e.getDeclarationName(t,!0,!0),void 0,t.heritageClauses,t.members,t),t)):e.append(r,t),k(t)){var n=e.getOriginalNodeId(t);te[n]=T(te[n],t)}else r=T(r,t);return e.singleOrMany(r)}function v(t){var r,n,a;if(e.hasModifier(t,1)){for(var i=void 0,o=0,s=t.declarationList.declarations;o<s.length;o++){var c=s[o];e.isIdentifier(c.name)&&e.isLocalName(c.name)?(i||(i=e.visitNodes(t.modifiers,F,e.isModifier)),n=e.append(n,c)):c.initializer&&(a=e.append(a,h(c)))}n&&(r=e.append(r,e.updateVariableStatement(t,i,e.updateVariableDeclarationList(t.declarationList,n)))),a&&(r=e.append(r,e.createStatement(e.inlineExpressions(a),t)))}else r=e.append(r,t);if(k(t)){var u=e.getOriginalNodeId(t);te[u]=C(te[u],t)}else r=C(r,t);return e.singleOrMany(r)}function h(r){return e.isBindingPattern(r.name)?e.flattenDestructuringAssignment(r,void 0,t,0,!1,P):e.createAssignment(e.createPropertyAccess(e.createIdentifier("exports"),r.name,r.name),r.initializer)}function b(t){if(k(t)&&205===t.original.kind){var r=e.getOriginalNodeId(t);te[r]=C(te[r],t.original)}return t}function k(t){return 0!==(2097152&e.getEmitFlags(t))}function x(t){var r=e.getOriginalNodeId(t),n=te[r];return n?(delete te[r],e.append(n,t)):t}function D(e,t){if(Z.exportEquals)return e;var r=t.importClause;if(!r)return e;r.name&&(e=N(e,r));var n=r.namedBindings;if(n)switch(n.kind){case 237:e=N(e,n);break;case 238:for(var a=0,i=n.elements;a<i.length;a++){var o=i[a];e=N(e,o)}}return e}function S(e,t){return Z.exportEquals?e:N(e,t)}function C(e,t){if(Z.exportEquals)return e;for(var r=0,n=t.declarationList.declarations;r<n.length;r++){var a=n[r];e=E(e,a)}return e}function E(t,r){if(Z.exportEquals)return t;if(e.isBindingPattern(r.name))for(var n=0,a=r.name.elements;n<a.length;n++){var i=a[n];e.isOmittedExpression(i)||(t=E(t,i))}else e.isGeneratedIdentifier(r.name)||(t=N(t,r));return t}function T(t,r){if(Z.exportEquals)return t;if(e.hasModifier(r,1)){var n=e.hasModifier(r,512)?e.createIdentifier("default"):r.name;t=A(t,n,e.getLocalName(r),r)}return r.name&&(t=N(t,r)),t}function N(t,r){var n=e.getDeclarationName(r),a=Z.exportSpecifiers[n.text];if(a)for(var i=0,o=a;i<o.length;i++){var s=o[i];t=A(t,s.name,n,s.name)}return t}function A(t,r,n,a,i){if("default"===r.text){var o=e.getOriginalNode(Y,e.isSourceFile);o&&!o.symbol.exports.___esModule&&(t=0===H?e.append(t,e.createStatement(P(e.createIdentifier("__esModule"),e.createLiteral(!0)))):e.append(t,e.createStatement(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[e.createIdentifier("exports"),e.createLiteral("__esModule"),e.createObjectLiteral([e.createPropertyAssignment("value",e.createLiteral(!0))])]))))}return t=e.append(t,w(r,n,a,i))}function w(t,r,n,a){var i=e.createStatement(P(t,r),n);return e.startOnNewLine(i),a||e.setEmitFlags(i,1536),i}function P(t,r,n){return e.createAssignment(e.createPropertyAccess(e.createIdentifier("exports"),e.getSynthesizedClone(t)),r,n)}function F(e){switch(e.kind){case 83:case 78:return}return e}function O(t,r,n){261===r.kind?(Y=r,Z=ee[e.getOriginalNodeId(Y)],$=e.createMap(),Q(t,r,n),Y=void 0,Z=void 0,$=void 0):Q(t,r,n)}function I(t,r){return r=X(t,r),r.id&&$[r.id]?r:1===t?L(r):e.isShorthandPropertyAssignment(r)?R(r):r}function R(t){var r=t.name,n=M(r);if(n!==r){if(t.objectAssignmentInitializer){var a=e.createAssignment(n,t.objectAssignmentInitializer);return e.createPropertyAssignment(r,a,t)}return e.createPropertyAssignment(r,n,t)}return t}function L(e){switch(e.kind){case 70:return M(e);case 192:return B(e);case 191:case 190:return K(e)}return e}function M(t){if(4096&e.getEmitFlags(t)){var r=e.getExternalHelpersModuleName(Y);return r?e.createPropertyAccess(r,t):t}if(!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var n=q.getReferencedExportContainer(t,e.isExportName(t));if(n&&261===n.kind)return e.createPropertyAccess(e.createIdentifier("exports"),e.getSynthesizedClone(t),t);var a=q.getReferencedImportDeclaration(t);if(a){if(e.isImportClause(a))return e.createPropertyAccess(e.getGeneratedNameForNode(a.parent),e.createIdentifier("default"),t);if(e.isImportSpecifier(a)){var i=a.propertyName||a.name;return e.createPropertyAccess(e.getGeneratedNameForNode(a.parent.parent.parent),e.getSynthesizedClone(i),t)}}}return t}function B(t){if(e.isAssignmentOperator(t.operatorToken.kind)&&e.isIdentifier(t.left)&&!e.isGeneratedIdentifier(t.left)&&!e.isLocalName(t.left)&&!e.isDeclarationNameOfEnumOrNamespace(t.left)){var r=J(t.left);if(r){for(var n=t,a=0,i=r;a<i.length;a++){var o=i[a];$[e.getNodeId(n)]=!0,n=P(o,n,t)}return n}}return t}function K(t){if((42===t.operator||43===t.operator)&&e.isIdentifier(t.operand)&&!e.isGeneratedIdentifier(t.operand)&&!e.isLocalName(t.operand)&&!e.isDeclarationNameOfEnumOrNamespace(t.operand)){var r=J(t.operand);if(r){for(var n=191===t.kind?e.createBinary(t.operand,e.createToken(42===t.operator?58:59),e.createLiteral(1),t):t,a=0,i=r;a<i.length;a++){var o=i[a];$[e.getNodeId(n)]=!0,n=P(o,n)}return n}}return t}function J(t){if(!e.isGeneratedIdentifier(t)){var r=q.getReferencedImportDeclaration(t)||q.getReferencedValueDeclaration(t);if(r)return Z&&Z.exportedBindings[e.getOriginalNodeId(r)]}}var z=e.createMap((re={},re[e.ModuleKind.None]=a,re[e.ModuleKind.CommonJS]=a,re[e.ModuleKind.AMD]=i,re[e.ModuleKind.UMD]=o,re)),j=t.startLexicalEnvironment,V=t.endLexicalEnvironment,U=t.getCompilerOptions(),q=t.getEmitResolver(),W=t.getEmitHost(),H=e.getEmitScriptTarget(U),G=e.getEmitModuleKind(U),X=t.onSubstituteNode,Q=t.onEmitNode;t.onSubstituteNode=I,t.onEmitNode=O,t.enableSubstitution(70),t.enableSubstitution(192),t.enableSubstitution(190),t.enableSubstitution(191),t.enableSubstitution(258),t.enableEmitNotification(261);var Y,Z,$,ee=e.createMap(),te=e.createMap();return n;var re}e.transformModule=t;var r={name:"typescript:export-star",scoped:!0,text:"\n            function __export(m) {\n                for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n            }"}}(ts||(ts={}));var ts;!function(e){function t(t){var r=t.jsx,n=e.getEmitScriptTarget(t),i=e.getEmitModuleKind(t),o=[];return o.push(e.transformTypeScript),2===r&&o.push(e.transformJsx),n<5&&o.push(e.transformESNext),n<4&&o.push(e.transformES2017),n<3&&o.push(e.transformES2016),n<2&&(o.push(e.transformES2015),o.push(e.transformGenerators)),o.push(a[i]||a[e.ModuleKind.None]),n<1&&o.push(e.transformES5),o}function r(t,r,n,a){function i(t){return e.isDeclarationFile(t)?t:w(t)}function o(e){D[e]|=1}function s(t){return 0!==(1&D[t.kind])&&0===(4&e.getEmitFlags(t))}function c(e,t,r){if(t){if(s(t)){var n=A.onSubstituteNode(e,t);if(n&&n!==t)return void r(e,n)}r(e,t)}}function u(e){D[e]|=2}function _(t){return 0!==(2&D[t.kind])||0!==(2&e.getEmitFlags(t))}function l(e,t,r){t&&(_(t)?A.onEmitNode(e,t,r):r(e,t))}function d(t){e.Debug.assert(!S,"Cannot modify the lexical environment during the print phase.");var r=e.createVariableDeclaration(t);b?b.push(r):b=[r]}function p(t){e.Debug.assert(!S,"Cannot modify the lexical environment during the print phase."),k?k.push(t):k=[t]}function f(){e.Debug.assert(!S,"Cannot start a lexical environment during the print phase."),e.Debug.assert(!N,"Lexical environment is suspended."),C[T]=b,E[T]=k,T++,b=void 0,k=void 0}function m(){e.Debug.assert(!S,"Cannot suspend a lexical environment during the print phase."),e.Debug.assert(!N,"Lexical environment is already suspended."),N=!0}function g(){e.Debug.assert(!S,"Cannot resume a lexical environment during the print phase."),e.Debug.assert(N,"Lexical environment is not suspended."),N=!1}function y(){e.Debug.assert(!S,"Cannot end a lexical environment during the print phase."),e.Debug.assert(!N,"Lexical environment is suspended.");var t;if((b||k)&&(k&&(t=k.slice()),b)){var r=e.createVariableStatement(void 0,e.createVariableDeclarationList(b));t?t.push(r):t=[r]}return T--,b=C[T],k=E[T],0===T&&(C=[],E=[]),t}function v(t){e.Debug.assert(!S,"Cannot modify the lexical environment during the print phase."),e.Debug.assert(!t.scoped,"Cannot request a scoped emit helper."),x=e.append(x,t)}function h(){e.Debug.assert(!S,"Cannot modify the lexical environment during the print phase.");var t=x;return x=void 0,t}var b,k,x,D=new Array(297),S=!1,C=[],E=[],T=0,N=!1,A={getCompilerOptions:function(){return r.getCompilerOptions()},getEmitResolver:function(){return t},getEmitHost:function(){return r},startLexicalEnvironment:f,suspendLexicalEnvironment:m,resumeLexicalEnvironment:g,endLexicalEnvironment:y,hoistVariableDeclaration:d,hoistFunctionDeclaration:p,requestEmitHelper:v,readEmitHelpers:h,onSubstituteNode:function(e,t){return t},enableSubstitution:o,isSubstitutionEnabled:s,onEmitNode:function(e,t,r){return r(e,t)},enableEmitNotification:u,isEmitNotificationEnabled:_},w=e.chain.apply(void 0,a)(A),P=e.map(n,i);return S=!0,{transformed:P,emitNodeWithSubstitution:c,emitNodeWithNotification:l}}var n,a=e.createMap((i={},i[e.ModuleKind.ES2015]=e.transformES2015Module,i[e.ModuleKind.System]=e.transformSystemModule,i[e.ModuleKind.AMD]=e.transformModule,i[e.ModuleKind.CommonJS]=e.transformModule,i[e.ModuleKind.UMD]=e.transformModule,i[e.ModuleKind.None]=e.transformModule,i));!function(e){e[e.Substitution=1]="Substitution",e[e.EmitNotifications=2]="EmitNotifications"}(n||(n={})),e.getTransformers=t,e.transformFiles=r;var i}(ts||(ts={}));var ts;!function(e){function t(t,r){function i(r,n,i,s){S||(k&&o(),f=void 0,m=void 0,y=-1,v=void 0,h=a,b=0,k={sourceMapFilePath:n,jsSourceMappingURL:x.inlineSourceMap?void 0:e.getBaseFileName(e.normalizeSlashes(n)),sourceMapFile:e.getBaseFileName(e.normalizeSlashes(r)),sourceMapSourceRoot:x.sourceRoot||"",sourceMapSources:[],inputSourceFileNames:[],sourceMapNames:[],sourceMapMappings:"",sourceMapSourcesContent:x.inlineSources?[]:void 0,sourceMapDecodedMappings:[]},k.sourceMapSourceRoot=e.normalizeSlashes(k.sourceMapSourceRoot),k.sourceMapSourceRoot.length&&47!==k.sourceMapSourceRoot.charCodeAt(k.sourceMapSourceRoot.length-1)&&(k.sourceMapSourceRoot+=e.directorySeparator),x.mapRoot?(g=e.normalizeSlashes(x.mapRoot),s||(e.Debug.assert(1===i.length),g=e.getDirectoryPath(e.getSourceFilePathInNewDir(i[0],t,g))),e.isRootedDiskPath(g)||e.isUrl(g)?k.jsSourceMappingURL=e.combinePaths(g,k.jsSourceMappingURL):(g=e.combinePaths(t.getCommonSourceDirectory(),g),k.jsSourceMappingURL=e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizePath(r)),e.combinePaths(g,k.jsSourceMappingURL),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):g=e.getDirectoryPath(e.normalizePath(r)))}function o(){S||(f=void 0,g=void 0,y=void 0,v=void 0,h=void 0,b=void 0,k=void 0)}function s(){if(v&&v!==h){var t=h.emittedColumn;if(h.emittedLine===v.emittedLine)k.sourceMapMappings&&(k.sourceMapMappings+=",");else{for(var r=h.emittedLine;r<v.emittedLine;r++)k.sourceMapMappings+=";";t=1}k.sourceMapMappings+=n(v.emittedColumn-t),k.sourceMapMappings+=n(v.sourceIndex-h.sourceIndex),k.sourceMapMappings+=n(v.sourceLine-h.sourceLine),k.sourceMapMappings+=n(v.sourceColumn-h.sourceColumn),v.nameIndex>=0&&(e.Debug.assert(!1,"We do not support name index right now, Make sure to update updateLastEncodedAndRecordedSpans when we start using this"),k.sourceMapMappings+=n(v.nameIndex-b),b=v.nameIndex),h=v,k.sourceMapDecodedMappings.push(h)}}function c(t){if(!S&&!e.positionIsSynthesized(t)){D&&e.performance.mark("beforeSourcemap");var n=e.getLineAndCharacterOfPosition(f,t);n.line++,n.character++;var a=r.getLine(),i=r.getColumn();!v||v.emittedLine!==a||v.emittedColumn!==i||v.sourceIndex===y&&(v.sourceLine>n.line||v.sourceLine===n.line&&v.sourceColumn>n.character)?(s(),v={emittedLine:a,emittedColumn:i,sourceLine:n.line,sourceColumn:n.character,sourceIndex:y}):(v.sourceLine=n.line,v.sourceColumn=n.character,v.sourceIndex=y),D&&(e.performance.mark("afterSourcemap"),e.performance.measure("Source Map","beforeSourcemap","afterSourcemap"))}}function u(t,r,n){if(S)return n(t,r);if(r){var a=r.emitNode,i=a&&a.flags,o=a&&a.sourceMapRange||r,s=o.pos,u=o.end;293!==r.kind&&0===(16&i)&&s>=0&&c(e.skipTrivia(m,s)),64&i?(S=!0,n(t,r),S=!1):n(t,r),293!==r.kind&&0===(32&i)&&u>=0&&c(u)}}function _(t,r,n,a){if(S)return a(r,n);var i=t&&t.emitNode,o=i&&i.flags,s=i&&i.tokenSourceMapRanges&&i.tokenSourceMapRanges[r];return n=e.skipTrivia(m,s?s.pos:n),0===(128&o)&&n>=0&&c(n),n=a(r,n),s&&(n=s.end),0===(256&o)&&n>=0&&c(n),n}function l(r){if(!S){f=r,m=f.text;var n=x.sourceRoot?t.getCommonSourceDirectory():g,a=e.getRelativePathToDirectoryOrUrl(n,f.fileName,t.getCurrentDirectory(),t.getCanonicalFileName,!0);y=e.indexOf(k.sourceMapSources,a),y===-1&&(y=k.sourceMapSources.length,k.sourceMapSources.push(a),k.inputSourceFileNames.push(f.fileName),x.inlineSources&&k.sourceMapSourcesContent.push(f.text))}}function d(){if(!S)return s(),JSON.stringify({version:3,file:k.sourceMapFile,sourceRoot:k.sourceMapSourceRoot,sources:k.sourceMapSources,names:k.sourceMapNames,mappings:k.sourceMapMappings,sourcesContent:k.sourceMapSourcesContent})}function p(){if(!S){if(x.inlineSourceMap){var t=e.convertToBase64(d());return k.jsSourceMappingURL="data:application/json;base64,"+t}return k.jsSourceMappingURL}}var f,m,g,y,v,h,b,k,x=t.getCompilerOptions(),D=x.extendedDiagnostics,S=!(x.sourceMap||x.inlineSourceMap);return{initialize:i,reset:o,getSourceMapData:function(){return k},setSourceFile:l,emitPos:c,emitNodeWithSourceMap:u,emitTokenWithSourceMap:_,getText:d,getSourceMappingURL:p}}function r(e){if(e<64)return i.charAt(e);throw TypeError(e+": not a 64 based value")}function n(e){e<0?e=(-e<<1)+1:e<<=1;var t="";do{var n=31&e;e>>=5,e>0&&(n=32|n),t+=r(n)}while(e>0);return t}var a={emittedLine:1,emittedColumn:1,sourceLine:1,sourceColumn:1,sourceIndex:0};e.createSourceMapWriter=t;var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"}(ts||(ts={}));var ts;!function(e){function t(t,r,n){function a(t,r,n){if(I)return void n(t,r);if(r){var a=e.getCommentRange(r),i=a.pos,s=a.end,c=e.getEmitFlags(r);if(i<0&&s<0||i===s)2048&c?(I=!0,n(t,r),I=!1):n(t,r);else{T&&e.performance.mark("preEmitNodeWithComment");var _=293!==r.kind,l=i<0||0!==(512&c),d=s<0||0!==(1024&c);l||o(i,_);var p=w,f=P,m=F;l||(w=i),d||(P=s,224===r.kind&&(F=s)),T&&e.performance.measure("commentTime","preEmitNodeWithComment"),2048&c?(I=!0,n(t,r),I=!1):n(t,r),T&&e.performance.mark("beginEmitNodeWithComment"),w=p,P=f,F=m,!d&&_&&u(s),T&&e.performance.measure("commentTime","beginEmitNodeWithComment")}}}function i(t,n,a){T&&e.performance.mark("preEmitBodyWithDetachedComments");var i=n.pos,s=n.end,c=e.getEmitFlags(t),u=i<0||0!==(512&c),_=I||s<0||0!==(1024&c);u||h(n),T&&e.performance.measure("commentTime","preEmitBodyWithDetachedComments"),2048&c&&!I?(I=!0,a(t),I=!1):a(t),T&&e.performance.mark("beginEmitBodyWithDetachedCommetns"),_||(o(n.end,!0),O&&!r.isAtStartOfLine()&&r.writeLine()),T&&e.performance.measure("commentTime","beginEmitBodyWithDetachedCommetns")}function o(e,t){O=!1,t?p(e,c):0===e&&p(e,s)}function s(e,t,r,n,a){k(e,t)&&c(e,t,r,n,a)}function c(t,n,a,i,o){O||(e.emitNewLineBeforeLeadingCommentOfPosition(S,r,o,t),O=!0),A(t),e.writeCommentRange(D,S,r,t,n,N),A(n),i?r.writeLine():r.write(" ")}function u(e){f(e,_)}function _(t,n,a,i){r.isAtStartOfLine()||r.write(" "),A(t),e.writeCommentRange(D,S,r,t,n,N),A(n),i&&r.writeLine()}function l(t){I||(T&&e.performance.mark("beforeEmitTrailingCommentsOfPosition"),f(t,d),T&&e.performance.measure("commentTime","beforeEmitTrailingCommentsOfPosition"))}function d(t,n,a,i){A(t),e.writeCommentRange(D,S,r,t,n,N),A(n),i?r.writeLine():r.write(" ")}function p(t,r){w!==-1&&t===w||(y(t)?v(r):e.forEachLeadingCommentRange(D,t,r,t))}function f(t,r){(P===-1||t!==P&&t!==F)&&e.forEachTrailingCommentRange(D,t,r)}function m(){x=void 0,D=void 0,S=void 0,C=void 0}function g(t){x=t,D=x.text,S=e.getLineStarts(x),C=void 0}function y(t){return void 0!==C&&e.lastOrUndefined(C).nodePos===t}function v(t){var r=e.lastOrUndefined(C).detachedCommentEndPos;C.length-1?C.pop():C=void 0,e.forEachLeadingCommentRange(D,r,t,r)}function h(t){var n=e.emitDetachedComments(D,S,r,b,t,N,I);n&&(C?C.push(n):C=[n])}function b(t,r,n,a,i,o){A(a),e.writeCommentRange(t,r,n,a,i,o),A(i)}function k(t,r){if(47===D.charCodeAt(t+1)&&t+2<r&&47===D.charCodeAt(t+2)){var n=D.substring(t,r);return!(!n.match(e.fullTripleSlashReferencePathRegEx)&&!n.match(e.fullTripleSlashAMDReferencePathRegEx))}return!1}var x,D,S,C,E=t.getCompilerOptions(),T=E.extendedDiagnostics,N=t.getNewLine(),A=n.emitPos,w=-1,P=-1,F=-1,O=!1,I=E.removeComments;return{reset:m,setSourceFile:g,emitNodeWithComments:a,emitBodyWithDetachedComments:i,emitTrailingCommentsOfPosition:l}}e.createCommentWriter=t}(ts||(ts={}));var ts;!function(e){function t(t,n,a){function i(e,a,i){var s=e.declarationFilePath;r(t,n,o,s,a,i,!1)}var o=e.createDiagnosticCollection();return e.forEachExpectedEmitFile(t,i,a),o.getDiagnostics(a?a.fileName:void 0)}function r(t,r,n,a,i,o,s){function c(e){var t=ye.substring(e.pos,e.end);return t.indexOf("@internal")>=0}function u(t){if(t){var r=e.getLeadingCommentRanges(ye,t.pos);if(e.forEach(r,c))return;ie(t)}}function _(){var t=e.createTextWriter(pe);t.trackSymbol=m,t.reportInaccessibleThisError=g,t.writeKeyword=t.write,t.writeOperator=t.write,t.writePunctuation=t.write,t.writeSpace=t.write,t.writeStringLiteral=t.writeLiteral,t.writeParameter=t.write,t.writeProperty=t.write,t.writeSymbol=t.write,l(t)}function l(e){de=e,se=e.write,le=e.writeTextOfNode,ce=e.writeLine,ue=e.increaseIndent,_e=e.decreaseIndent;
}function d(t){var r=de;e.forEach(t,function(t){var r;223===t.kind?r=t.parent.parent:238===t.kind||239===t.kind||236===t.kind?e.Debug.fail("We should be getting ImportDeclaration instead to write"):r=t;var n=e.forEach(Ne,function(e){return e.node===r?e:void 0});if(!n&&De&&(n=e.forEach(De,function(e){return e.node===r?e:void 0})),n)if(235===n.node.kind)n.isVisible=!0;else{_();for(var a=n.indent;a;a--)ue();230===r.kind&&(e.Debug.assert(void 0===De),De=[]),w(r),230===r.kind&&(n.subModuleElementDeclarationEmitInfo=De,De=void 0),n.asynchronousOutput=de.getText()}}),l(r)}function p(t){if(t){Se||(Se=e.createMap());for(var r=0,n=t;r<n.length;r++){var a=n[r];a in Se||(Se[a]=a)}}}function f(t){if(0===t.accessibility)t&&t.aliasesToMakeVisible&&d(t.aliasesToMakeVisible);else{Ce=!0;var r=de.getSymbolAccessibilityDiagnostic(t);r&&(r.typeName?n.add(e.createDiagnosticForNode(t.errorNode||r.errorNode,r.diagnosticMessage,e.getTextOfNodeFromSourceText(ye,r.typeName),t.errorSymbolName,t.errorModuleName)):n.add(e.createDiagnosticForNode(t.errorNode||r.errorNode,r.diagnosticMessage,t.errorSymbolName,t.errorModuleName)))}}function m(e,t,n){f(r.isSymbolAccessible(e,t,n,!0)),p(r.getTypeReferenceDirectivesForSymbol(e,n))}function g(){ke&&(Ce=!0,n.add(e.createDiagnosticForNode(ke,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_this_type_A_type_annotation_is_necessary,e.declarationNameToString(ke))))}function y(e,t,n){de.getSymbolAccessibilityDiagnostic=n,se(": "),t?S(t):(ke=e.name,r.writeTypeOfDeclaration(e,me,1026,de),ke=void 0)}function v(e,t){de.getSymbolAccessibilityDiagnostic=t,se(": "),e.type?S(e.type):(ke=e.name,r.writeReturnTypeOfSignatureDeclaration(e,me,1026,de),ke=void 0)}function h(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];Te(n)}}function b(e,t,r,n){for(var a=de.getTextPos(),i=0,o=e;i<o.length;i++){var s=o[i];n&&!n(s)||(a!==de.getTextPos()&&se(t),a=de.getTextPos(),r(s))}}function k(e,t,r){b(e,", ",t,r)}function x(t){if(t){var r=e.getJSDocCommentRanges(t,ye);e.emitNewLineBeforeLeadingComments(ve,de,t,r),e.emitComments(ye,ve,de,r,!1,!0,pe,e.writeCommentRange)}}function D(e,t){de.getSymbolAccessibilityDiagnostic=t,S(e)}function S(t){function n(e){if(70===e.kind)le(ye,e);else{var t=141===e.kind?e.left:e.expression,r=141===e.kind?e.right:e.name;n(t),se("."),le(ye,r)}}function a(e){var t=r.isEntityNameVisible(e,234===e.parent.kind?e.parent:me);f(t),p(r.getTypeReferenceDirectivesForEntityName(e)),n(e)}function i(t){e.isEntityNameExpression(t.expression)&&(e.Debug.assert(70===t.expression.kind||177===t.expression.kind),a(t.expression),t.typeArguments&&(se("<"),k(t.typeArguments,S),se(">")))}function o(e){a(e.typeName),e.typeArguments&&(se("<"),k(e.typeArguments,S),se(">"))}function s(e){le(ye,e.parameterName),se(" is "),S(e.type)}function c(e){se("typeof "),a(e.exprName)}function u(e){S(e.elementType),se("[]")}function _(e){se("["),k(e.elementTypes,S),se("]")}function l(e){b(e.types," | ",S)}function d(e){b(e.types," & ",S)}function m(e){se("("),S(e.type),se(")")}function g(t){se(e.tokenToString(t.operator)),se(" "),S(t.type)}function y(e){S(e.objectType),se("["),S(e.indexType),se("]")}function v(e){var t=me;me=e,se("{"),ce(),ue(),e.readonlyToken&&se("readonly "),se("["),n(e.typeParameter.name),se(" in "),S(e.typeParameter.constraint),se("]"),e.questionToken&&se("?"),se(": "),S(e.type),se(";"),ce(),_e(),se("}"),me=t}function x(e){se("{"),e.members.length&&(ce(),ue(),h(e.members),_e()),se("}")}switch(t.kind){case 118:case 134:case 132:case 121:case 135:case 104:case 137:case 94:case 129:case 167:case 171:return le(ye,t);case 199:return i(t);case 157:return o(t);case 160:return c(t);case 162:return u(t);case 163:return _(t);case 164:return l(t);case 165:return d(t);case 166:return m(t);case 168:return g(t);case 169:return y(t);case 170:return v(t);case 158:case 159:return re(t);case 161:return x(t);case 70:return a(t);case 141:return a(t);case 156:return s(t)}}function C(t){ye=t.text,ve=e.getLineStarts(t),he=t.identifiers,be=e.isExternalModule(t),me=t,e.emitDetachedComments(ye,ve,de,e.writeCommentRange,t,pe,!0),h(t.statements)}function E(){var e="_default";if(!(e in he))return e;for(var t=0;;){t++;var r=e+"_"+t;if(!(r in he))return r}}function T(t){function n(){return{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:t}}if(70===t.expression.kind)se(t.isExportEquals?"export = ":"export default "),le(ye,t.expression);else{var a=E();xe||se("declare "),se("var "),se(a),se(": "),de.getSymbolAccessibilityDiagnostic=n,r.writeTypeOfExpression(t.expression,me,1026,de),se(";"),ce(),se(t.isExportEquals?"export = ":"export default "),se(a)}if(se(";"),ce(),70===t.expression.kind){var i=r.collectLinkedAliases(t.expression);d(i)}}function N(e){return r.isDeclarationVisible(e)}function A(e,t){if(t)w(e);else if(234===e.kind||261===e.parent.kind&&be){var n=void 0;if(De&&261!==e.parent.kind)De.push({node:e,outputPos:de.getTextPos(),indent:de.getIndent(),isVisible:n});else{if(235===e.kind){var a=e;a.importClause&&(n=a.importClause.name&&r.isDeclarationVisible(a.importClause)||I(a.importClause.namedBindings))}Ne.push({node:e,outputPos:de.getTextPos(),indent:de.getIndent(),isVisible:n})}}}function w(t){switch(t.kind){case 225:return te(t);case 205:return $(t);case 227:return G(t);case 226:return H(t);case 228:return z(t);case 229:return j(t);case 230:return J(t);case 234:return O(t);case 235:return R(t);default:e.Debug.fail("Unknown symbol kind")}}function P(t){if(261===t.parent.kind){var r=e.getModifierFlags(t);1&r&&se("export "),512&r?se("default "):227===t.kind||xe||se("declare ")}}function F(e){8&e?se("private "):16&e&&se("protected "),32&e&&se("static "),64&e&&se("readonly "),128&e&&se("abstract ")}function O(t){function r(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}Ee(t),e.hasModifier(t,1)&&se("export "),se("import "),le(ye,t.name),se(" = "),e.isInternalModuleImportEqualsDeclaration(t)?(D(t.moduleReference,r),se(";")):(se("require("),L(t),se(");")),de.writeLine()}function I(t){if(t)return 237===t.kind?r.isDeclarationVisible(t):e.forEach(t.elements,function(e){return r.isDeclarationVisible(e)})}function R(t){if(Ee(t),e.hasModifier(t,1)&&se("export "),se("import "),t.importClause){var n=de.getTextPos();t.importClause.name&&r.isDeclarationVisible(t.importClause)&&le(ye,t.importClause.name),t.importClause.namedBindings&&I(t.importClause.namedBindings)&&(n!==de.getTextPos()&&se(", "),237===t.importClause.namedBindings.kind?(se("* as "),le(ye,t.importClause.namedBindings.name)):(se("{ "),k(t.importClause.namedBindings.elements,M,r.isDeclarationVisible),se(" }"))),se(" from ")}L(t),se(";"),de.writeLine()}function L(n){ge=ge||230!==n.kind;var a;if(234===n.kind){var i=n;a=e.getExternalModuleImportEqualsDeclarationExpression(i)}else if(230===n.kind)a=n.name;else{var i=n;a=i.moduleSpecifier}if(9===a.kind&&o&&(fe.out||fe.outFile)){var s=e.getExternalModuleNameFromDeclaration(t,r,n);if(s)return se('"'),se(s),void se('"')}le(ye,a)}function M(e){e.propertyName&&(le(ye,e.propertyName),se(" as ")),le(ye,e.name)}function B(e){M(e);var t=r.collectLinkedAliases(e.propertyName||e.name);d(t)}function K(e){Ee(e),se("export "),e.exportClause?(se("{ "),k(e.exportClause.elements,B),se(" }")):se("*"),e.moduleSpecifier&&(se(" from "),L(e)),se(";"),de.writeLine()}function J(t){for(Ee(t),P(t),e.isGlobalScopeAugmentation(t)?se("global "):(se(16&t.flags?"namespace ":"module "),e.isExternalModuleAugmentation(t)?L(t):le(ye,t.name));t.body&&231!==t.body.kind;)t=t.body,se("."),le(ye,t.name);var r=me;t.body?(me=t,se(" {"),ce(),ue(),h(t.body.statements),_e(),se("}"),ce(),me=r):se(";")}function z(t){function r(){return{diagnosticMessage:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:t.type,typeName:t.name}}var n=me;me=t,Ee(t),P(t),se("type "),le(ye,t.name),q(t.typeParameters),se(" = "),D(t.type,r),se(";"),ce(),me=n}function j(t){Ee(t),P(t),e.isConst(t)&&se("const "),se("enum "),le(ye,t.name),se(" {"),ce(),ue(),h(t.members),_e(),se("}"),ce()}function V(e){Ee(e),le(ye,e.name);var t=r.getConstantValue(e);void 0!==t&&(se(" = "),se(t.toString())),se(","),ce()}function U(t){return 149===t.parent.kind&&e.hasModifier(t.parent,8)}function q(t){function r(t){function r(){var r;switch(t.parent.kind){case 226:r=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 227:r=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 154:r=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 153:r=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 149:case 148:r=e.hasModifier(t.parent,32)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:226===t.parent.parent.kind?e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 225:r=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 228:r=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:e.Debug.fail("This is unknown parent for type parameter: "+t.parent.kind)}return{diagnosticMessage:r,errorNode:t,typeName:t.name}}ue(),Ee(t),_e(),le(ye,t.name),t.constraint&&!U(t)&&(se(" extends "),158===t.parent.kind||159===t.parent.kind||t.parent.parent&&161===t.parent.parent.kind?(e.Debug.assert(149===t.parent.kind||148===t.parent.kind||158===t.parent.kind||159===t.parent.kind||153===t.parent.kind||154===t.parent.kind),S(t.constraint)):D(t.constraint,r))}t&&(se("<"),k(t,r),se(">"))}function W(t,n){function a(t){function a(){var r;return r=226===t.parent.parent.kind?n?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.Extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.Extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:r,errorNode:t,typeName:t.parent.parent.name}}e.isEntityNameExpression(t.expression)?D(t,a):n||94!==t.expression.kind?(de.getSymbolAccessibilityDiagnostic=a,r.writeBaseConstructorTypeOfClass(me,me,1026,de)):se("null")}t&&(se(n?" implements ":" extends "),k(t,a))}function H(t){function r(t){t&&e.forEach(t.parameters,function(t){e.hasModifier(t,92)&&X(t)})}Ee(t),P(t),e.hasModifier(t,128)&&se("abstract "),se("class "),le(ye,t.name);var n=me;me=t,q(t.typeParameters);var a=e.getClassExtendsHeritageClauseElement(t);a&&W([a],!1),W(e.getClassImplementsHeritageClauseElements(t),!0),se(" {"),ce(),ue(),r(e.getFirstConstructorWithBody(t)),h(t.members),_e(),se("}"),ce(),me=n}function G(t){Ee(t),P(t),se("interface "),le(ye,t.name);var r=me;me=t,q(t.typeParameters);var n=e.filter(e.getInterfaceBaseTypeNodes(t),function(t){return e.isEntityNameExpression(t.expression)});n&&n.length&&W(n,!1),se(" {"),ce(),ue(),h(t.members),_e(),se("}"),ce(),me=r}function X(t){e.hasDynamicName(t)||(Ee(t),F(e.getModifierFlags(t)),Q(t),se(";"),ce())}function Q(t){function n(r){return 223===t.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1:147===t.kind||146===t.kind?e.hasModifier(t,32)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:226===t.parent.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}function a(e){var r=n(e);return void 0!==r?{diagnosticMessage:r,errorNode:t,typeName:t.name}:void 0}function i(e){for(var t=[],r=0,n=e.elements;r<n.length;r++){var a=n[r];198!==a.kind&&t.push(a)}k(t,o)}function o(t){function r(e){var r=n(e);return void 0!==r?{diagnosticMessage:r,errorNode:t,typeName:t.name}:void 0}t.name&&(e.isBindingPattern(t.name)?i(t.name):(le(ye,t.name),y(t,void 0,r)))}(223!==t.kind||r.isDeclarationVisible(t))&&(e.isBindingPattern(t.name)?i(t.name):(le(ye,t.name),(147===t.kind||146===t.kind||144===t.kind&&!e.isParameterPropertyDeclaration(t))&&e.hasQuestionToken(t)&&se("?"),147!==t.kind&&146!==t.kind||161!==t.parent.kind?r.isLiteralConstDeclaration(t)?(se(" = "),r.writeLiteralConstValue(t,de)):e.hasModifier(t,8)||y(t,t.type,a):Y(t)))}function Y(e){e.type&&(se(": "),S(e.type))}function Z(t){return e.forEach(t.declarationList.declarations,function(e){return r.isDeclarationVisible(e)})}function $(t){Ee(t),P(t),se(e.isLet(t.declarationList)?"let ":e.isConst(t.declarationList)?"const ":"var "),k(t.declarationList.declarations,Q,r.isDeclarationVisible),se(";"),ce()}function ee(t){function r(e){if(e)return 151===e.kind?e.type:e.parameters.length>0?e.parameters[0].type:void 0}function n(t){var r;return 152===a.kind?(r=e.hasModifier(a.parent,32)?t.errorModuleName?e.Diagnostics.Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:r,errorNode:a.parameters[0],typeName:a.name}):(r=e.hasModifier(a,32)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0:t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0,{diagnosticMessage:r,errorNode:a.name,typeName:void 0})}if(!e.hasDynamicName(t)){var a,i=e.getAllAccessorDeclarations(t.parent.members,t);if(t===i.firstAccessor){if(Ee(i.getAccessor),Ee(i.setAccessor),F(e.getModifierFlags(t)|(i.setAccessor?0:64)),le(ye,t.name),!e.hasModifier(t,8)){a=t;var o=r(t);if(!o){var s=151===t.kind?i.setAccessor:i.getAccessor;o=r(s),o&&(a=s)}y(t,o,n)}se(";"),ce()}}}function te(t){e.hasDynamicName(t)||r.isImplementationOfOverload(t)||(Ee(t),225===t.kind?P(t):149!==t.kind&&150!==t.kind||F(e.getModifierFlags(t)),225===t.kind?(se("function "),le(ye,t.name)):150===t.kind?se("constructor"):(le(ye,t.name),e.hasQuestionToken(t)&&se("?")),ne(t))}function re(e){Ee(e),ne(e)}function ne(t){function r(r){var n;switch(t.kind){case 154:n=r.errorModuleName?e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 153:n=r.errorModuleName?e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 155:n=r.errorModuleName?e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 149:case 148:n=e.hasModifier(t,32)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:226===t.parent.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:r.errorModuleName?e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 225:n=r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:e.Debug.fail("This is unknown kind for signature: "+t.kind)}return{diagnosticMessage:n,errorNode:t.name||t}}var n=me;me=t;var a=!1;if(155===t.kind)F(e.getModifierFlags(t)),se("[");else{if(154===t.kind||159===t.kind)se("new ");else if(158===t.kind){var i=de.getText();t.typeParameters&&"<"===i.charAt(i.length-1)&&(a=!0,se("("))}q(t.typeParameters),se("(")}k(t.parameters,ae),se(155===t.kind?"]":")");var o=158===t.kind||159===t.kind;o||161===t.parent.kind?t.type&&(se(o?" => ":": "),S(t.type)):150===t.kind||e.hasModifier(t,8)||v(t,r),me=n,o?a&&se(")"):(se(";"),ce())}function ae(t){function n(e){var r=a(e);return void 0!==r?{diagnosticMessage:r,errorNode:t,typeName:t.name}:void 0}function a(r){switch(t.parent.kind){case 150:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 154:return r.errorModuleName?e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 153:return r.errorModuleName?e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 155:return r.errorModuleName?e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 149:case 148:return e.hasModifier(t.parent,32)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:226===t.parent.parent.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 225:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;default:e.Debug.fail("This is unknown parent for parameter: "+t.parent.kind)}}function i(e){if(172===e.kind)se("{"),k(e.elements,o),se("}");else if(173===e.kind){se("[");var t=e.elements;k(t,o),t&&t.hasTrailingComma&&se(", "),se("]")}}function o(t){198===t.kind?se(" "):174===t.kind&&(t.propertyName&&(le(ye,t.propertyName),se(": ")),t.name&&(e.isBindingPattern(t.name)?i(t.name):(e.Debug.assert(70===t.name.kind),t.dotDotDotToken&&se("..."),le(ye,t.name))))}ue(),Ee(t),t.dotDotDotToken&&se("..."),e.isBindingPattern(t.name)?i(t.name):le(ye,t.name),r.isOptionalParameter(t)&&se("?"),_e(),158===t.parent.kind||159===t.parent.kind||161===t.parent.parent.kind?Y(t):e.hasModifier(t.parent,8)||y(t,t.type,n)}function ie(e){switch(e.kind){case 225:case 230:case 234:case 227:case 226:case 228:case 229:return A(e,N(e));case 205:return A(e,Z(e));case 235:return A(e,!e.importClause);case 241:return K(e);case 150:case 149:case 148:return te(e);case 154:case 153:case 155:return re(e);case 151:case 152:return ee(e);case 147:case 146:return X(e);case 260:return V(e);case 240:return T(e);case 261:return C(e)}}function oe(r,n,i){function o(t,a,i){i&&!n||(e.Debug.assert(!!t.declarationFilePath||e.isSourceFileJavaScript(r),"Declaration file is not present only for javascript files"),s=t.declarationFilePath||t.jsFilePath,c=i)}var s,c=!1;return e.isDeclarationFile(r)?s=r.fileName:e.forEachExpectedEmitFile(t,o,r,i),s&&(s=e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizeSlashes(a)),s,t.getCurrentDirectory(),t.getCanonicalFileName,!1),Ae+='/// <reference path="'+s+'" />'+pe),c}var se,ce,ue,_e,le,de,pe=t.getNewLine(),fe=t.getCompilerOptions();_();var me,ge,ye,ve,he,be,ke,xe,De,Se,Ce=!1,Ee=fe.removeComments?e.noop:x,Te=fe.stripInternal?u:ie,Ne=[],Ae="",we=[],Pe=!1,Fe=[];if(e.forEach(i,function(r){if(!e.isSourceFileJavaScript(r)){if(fe.noResolve||e.forEach(r.referencedFiles,function(n){var a=e.tryResolveScriptReference(t,r,n);a&&!e.contains(we,a)&&(oe(a,!o&&!Pe,s)&&(Pe=!0),we.push(a))}),ge=!1,o&&e.isExternalModule(r)?e.isExternalModule(r)&&(xe=!0,se('declare module "'+e.getResolvedExternalModuleName(t,r)+'" {'),ce(),ue(),C(r),_e(),se("}"),ce()):(xe=!1,C(r)),Ne.length){var n=de;e.forEach(Ne,function(t){if(t.isVisible&&!t.asynchronousOutput){e.Debug.assert(235===t.node.kind),_(),e.Debug.assert(0===t.indent||1===t.indent&&o);for(var r=0;r<t.indent;r++)ue();R(t.node),t.asynchronousOutput=de.getText();for(var r=0;r<t.indent;r++)_e()}}),l(n),Fe=Fe.concat(Ne),Ne=[]}!o&&e.isExternalModule(r)&&r.moduleAugmentations.length&&!ge&&(se("export {};"),ce())}}),Se)for(var Oe in Se)Ae+='/// <reference types="'+Oe+'" />'+pe;return{reportedDeclarationError:Ce,moduleElementDeclarationEmitInfo:Fe,synchronousDeclarationOutput:de.getText(),referencesOutput:Ae}}function n(t,n,a,i,o,s,c){function u(t,r){var n=0,a="";return e.forEach(r,function(e){e.asynchronousOutput&&(a+=t.substring(n,e.outputPos),a+=u(e.asynchronousOutput,e.subModuleElementDeclarationEmitInfo),n=e.outputPos)}),a+=t.substring(n)}var _=r(i,o,s,t,n,a,c),l=_.reportedDeclarationError||i.isEmitBlocked(t)||i.getCompilerOptions().noEmit;if(!l){var d=_.referencesOutput+u(_.synchronousDeclarationOutput,_.moduleElementDeclarationEmitInfo);e.writeFile(i,s,t,d,i.getCompilerOptions().emitBOM,n)}return l}e.getDeclarationDiagnostics=t,e.writeDeclarationFile=n}(ts||(ts={}));var ts;!function(e){function t(t,r,n,i){function o(n,a,o,c,u){r.isEmitBlocked(n)||pn.noEmit?On=!0:i||s(n,a,c,u),o&&(On=e.writeDeclarationFile(o,e.getOriginalSourceFiles(c),u,r,t,vn,i)||On),!On&&yn&&(i||yn.push(n),a&&yn.push(a),o&&yn.push(o))}function s(t,n,a,i){if(En.initialize(t,n,a,i),tn=[],rn=[],nn=e.createMap(),un=i?e.createMap():void 0,_n=!i,i&&mn)for(var o=0,s=a;o<s.length;o++){var u=s[o];rr(u,!0)}e.forEach(a,c),Dn();var _=En.getSourceMappingURL();_&&xn("//# sourceMappingURL="+_),pn.sourceMap&&!pn.inlineSourceMap&&e.writeFile(r,vn,n,En.getText(),!1,a),gn&&gn.push(En.getSourceMapData()),e.writeFile(r,vn,t,kn.getText(),pn.emitBOM,a),En.reset(),An.reset(),kn.reset(),an=0,on=void 0,sn=void 0,_n=!1}function c(e){on=e,sn=e.text,cn=e.identifiers,En.setSourceFile(e),An.setSourceFile(e),d(0,e)}function u(e){d(3,e)}function _(e){d(2,e)}function l(e){d(1,e)}function d(e,t){Bn(e,t,p)}function p(e,t){return 0===e?void f(e,t):void wn(e,t,f)}function f(e,t){return 0===e||2===e?void m(e,t):void Tn(e,t,m)}function m(e,t){Mn(e,t,g)}function g(e,t){switch(e){case 0:return y(t);case 2:return v(t);case 3:return h(t);case 1:return b(t)}}function y(e){var t=e.kind;switch(t){case 261:return Zt(e)}}function v(e){var t=e.kind;switch(t){case 70:return D(e)}}function h(t){var r=t.kind;switch(r){case 13:case 14:case 15:return x(t);case 70:return D(t);case 75:case 78:case 83:case 104:case 111:case 112:case 113:case 114:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 124:case 125:case 127:case 128:case 129:case 130:case 131:case 132:case 133:case 134:case 135:case 136:case 137:case 138:case 139:case 140:return void Cr(r);case 141:return S(t);case 142:return E(t);case 143:return T(t);case 144:return N(t);case 145:return A(t);case 146:return w(t);case 147:return P(t);case 148:return F(t);case 149:return O(t);case 150:return I(t);case 151:case 152:return R(t);case 153:return L(t);case 154:return M(t);case 155:return B(t);case 156:return J(t);case 157:return z(t);case 158:return j(t);case 159:return V(t);case 160:return U(t);case 161:return q(t);case 162:return W(t);case 163:return H(t);case 164:return G(t);case 165:return X(t);case 166:return Q(t);case 199:return Pe(t);case 167:return Y();case 168:return Z(t);case 169:return $(t);case 170:return ee(t);case 171:return te(t);case 172:return re(t);case 173:return ne(t);case 174:return ae(t);case 202:return Ie(t);case 203:return K();case 204:return Re(t);case 205:return Me(t);case 206:return Be();case 207:return Ke(t);case 208:return Je(t);case 209:return ze(t);case 210:return je(t);case 211:return Ve(t);case 212:return Ue(t);case 213:return qe(t);case 214:return He(t);case 215:return Ge(t);case 216:return Xe(t);case 217:return Qe(t);case 218:return Ye(t);case 219:return Ze(t);case 220:return $e(t);case 221:return et(t);case 222:return tt(t);case 223:return rt(t);case 224:return nt(t);case 225:return at(t);case 226:return dt(t);case 227:return ft(t);case 228:return mt(t);case 229:return gt(t);case 230:return yt(t);case 231:return vt(t);case 232:return ht(t);case 234:return bt(t);case 235:return xt(t);case 236:return Dt(t);case 237:return St(t);case 238:return Ct(t);case 239:return Et(t);case 240:return Tt(t);case 241:return Nt(t);case 242:return At(t);case 243:return wt(t);case 244:return;case 245:return Ot(t);case 10:return Mt(t);case 248:return Lt(t);case 249:return Bt(t);case 250:return Kt(t);case 251:return Jt(t);case 252:return zt(t);case 253:return Vt(t);case 254:return Ut(t);case 255:return Wt(t);case 256:return Ht(t);case 257:return Gt(t);case 258:return Xt(t);case 259:return Qt(t);case 260:return Yt(t)}if(e.isExpression(t))return m(1,t)}function b(e){var t=e.kind;switch(t){case 8:return k(e);case 9:case 11:case 12:return x(e);case 70:return D(e);case 85:case 94:case 96:case 100:case 98:return void Cr(t);case 175:return ie(e);case 176:return oe(e);case 177:return se(e);case 178:return ue(e);case 179:return _e(e);case 180:return le(e);case 181:return de(e);case 182:return pe(e);case 183:return fe(e);case 184:return me(e);case 185:return ge(e);case 186:return ve(e);case 187:return he(e);case 188:return be(e);case 189:return ke(e);case 190:return xe(e);case 191:return Se(e);case 192:return Ce(e);case 193:return Ee(e);case 194:return Te(e);case 195:return Ne(e);case 196:return Ae(e);case 197:return we(e);case 198:return;case 200:return Fe(e);case 201:return Oe(e);case 246:return It(e);case 247:return Rt(e);case 294:return er(e)}}function k(e){x(e),e.trailingComment&&xn(" /*"+e.trailingComment+"*/")}function x(t){var r=Rr(t);!pn.sourceMap&&!pn.inlineSourceMap||9!==t.kind&&!e.isTemplateLiteralKind(t.kind)?xn(r):kn.writeLiteral(r)}function D(e){xn(Ir(e,!1))}function S(e){C(e.left),xn("."),u(e.right)}function C(e){70===e.kind?l(e):u(e)}function E(e){xn("["),l(e.expression),xn("]")}function T(e){u(e.name),sr(" extends ",e.constraint)}function N(e){dr(e,e.decorators),or(e,e.modifiers),Dr(e.dotDotDotToken,"..."),u(e.name),Dr(e.questionToken,"?"),cr(" = ",e.initializer),sr(": ",e.type)}function A(e){xn("@"),l(e.expression)}function w(e){dr(e,e.decorators),or(e,e.modifiers),u(e.name),Dr(e.questionToken,"?"),sr(": ",e.type),xn(";")}function P(e){dr(e,e.decorators),or(e,e.modifiers),u(e.name),sr(": ",e.type),cr(" = ",e.initializer),xn(";")}function F(e){dr(e,e.decorators),or(e,e.modifiers),u(e.name),Dr(e.questionToken,"?"),fr(e,e.typeParameters),mr(e,e.parameters),sr(": ",e.type),xn(";")}function O(e){dr(e,e.decorators),or(e,e.modifiers),Dr(e.asteriskToken,"*"),u(e.name),ot(e,st)}function I(e){or(e,e.modifiers),xn("constructor"),ot(e,st)}function R(e){dr(e,e.decorators),or(e,e.modifiers),xn(151===e.kind?"get ":"set "),u(e.name),ot(e,st)}function L(e){dr(e,e.decorators),or(e,e.modifiers),fr(e,e.typeParameters),mr(e,e.parameters),sr(": ",e.type),xn(";")}function M(e){dr(e,e.decorators),or(e,e.modifiers),xn("new "),fr(e,e.typeParameters),mr(e,e.parameters),sr(": ",e.type),xn(";")}function B(e){dr(e,e.decorators),or(e,e.modifiers),yr(e,e.parameters),sr(": ",e.type),xn(";")}function K(){xn(";")}function J(e){u(e.parameterName),xn(" is "),u(e.type)}function z(e){u(e.typeName),pr(e,e.typeArguments)}function j(e){fr(e,e.typeParameters),gr(e,e.parameters),xn(" => "),u(e.type)}function V(e){xn("new "),fr(e,e.typeParameters),gr(e,e.parameters),xn(" => "),u(e.type)}function U(e){xn("typeof "),u(e.exprName)}function q(e){xn("{"),vr(e,e.members,65),xn("}")}function W(e){u(e.elementType),xn("[]")}function H(e){xn("["),vr(e,e.elementTypes,336),xn("]")}function G(e){vr(e,e.types,260)}function X(e){vr(e,e.types,264)}function Q(e){xn("("),u(e.type),xn(")")}function Y(){xn("this")}function Z(e){Cr(e.operator),xn(" "),u(e.type)}function $(e){u(e.objectType),xn("["),u(e.indexType),xn("]")}function ee(e){xn("{"),Dn(),Sn(),e.readonlyToken&&xn("readonly "),xn("["),u(e.typeParameter.name),xn(" in "),u(e.typeParameter.constraint),xn("]"),e.questionToken&&xn("?"),xn(": "),u(e.type),xn(";"),Dn(),Cn(),xn("}")}function te(e){l(e.literal)}function re(e){var t=e.elements;0===t.length?xn("{}"):(xn("{"),vr(e,t,432),xn("}"))}function ne(e){var t=e.elements;0===t.length?xn("[]"):(xn("["),vr(e,e.elements,304),xn("]"))}function ae(e){_r(e.propertyName,": "),Dr(e.dotDotDotToken,"..."),u(e.name),cr(" = ",e.initializer)}function ie(e){var t=e.elements;if(0===t.length)xn("[]");else{var r=e.multiLine?32768:0;
hr(e,t,4466|r)}}function oe(t){var r=t.properties;if(0===r.length)xn("{}");else{var n=32768&e.getEmitFlags(t);n&&Sn();var a=t.multiLine?32768:0,i=fn>=1?32:0;vr(t,r,978|i|a),n&&Cn()}}function se(t){var r=!1,n=!1;if(!(65536&e.getEmitFlags(t))){var a=t.expression.end,i=e.skipTrivia(sn,t.expression.end)+1,o={kind:22,pos:a,end:i};r=Fr(t,t.expression,o),n=Fr(t,o,t.name)}l(t.expression),Er(r);var s=!r&&ce(t.expression);xn(s?"..":"."),Er(n),u(t.name),Tr(r,n)}function ce(t){if(8===t.kind){var r=Rr(t);return r.indexOf(e.tokenToString(22))<0}if(e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)){var n=e.getConstantValue(t);return isFinite(n)&&Math.floor(n)===n&&pn.removeComments}}function ue(e){l(e.expression),xn("["),l(e.argumentExpression),xn("]")}function _e(e){l(e.expression),pr(e,e.typeArguments),hr(e,e.arguments,1296)}function le(e){xn("new "),l(e.expression),pr(e,e.typeArguments),hr(e,e.arguments,9488)}function de(e){l(e.tag),xn(" "),l(e.template)}function pe(e){e.type&&(xn("<"),u(e.type),xn(">")),l(e.expression)}function fe(e){xn("("),l(e.expression),xn(")")}function me(e){it(e)}function ge(e){dr(e,e.decorators),or(e,e.modifiers),ot(e,ye)}function ye(e){fr(e,e.typeParameters),gr(e,e.parameters),sr(": ",e.type),xn(" =>")}function ve(e){xn("delete "),l(e.expression)}function he(e){xn("typeof "),l(e.expression)}function be(e){xn("void "),l(e.expression)}function ke(e){xn("await "),l(e.expression)}function xe(e){Cr(e.operator),De(e)&&xn(" "),l(e.operand)}function De(e){var t=e.operand;return 190===t.kind&&(36===e.operator&&(36===t.operator||42===t.operator)||37===e.operator&&(37===t.operator||43===t.operator))}function Se(e){l(e.operand),Cr(e.operator)}function Ce(e){var t=25!==e.operatorToken.kind,r=Fr(e,e.left,e.operatorToken),n=Fr(e,e.operatorToken,e.right);l(e.left),Er(r,t?" ":void 0),Cr(e.operatorToken.kind),Er(n," "),l(e.right),Tr(r,n)}function Ee(e){var t=Fr(e,e.condition,e.questionToken),r=Fr(e,e.questionToken,e.whenTrue),n=Fr(e,e.whenTrue,e.colonToken),a=Fr(e,e.colonToken,e.whenFalse);l(e.condition),Er(t," "),xn("?"),Er(r," "),l(e.whenTrue),Tr(t,r),Er(n," "),xn(":"),Er(a," "),l(e.whenFalse),Tr(n,a)}function Te(e){u(e.head),vr(e,e.templateSpans,131072)}function Ne(e){xn(e.asteriskToken?"yield*":"yield"),cr(" ",e.expression)}function Ae(e){xn("..."),l(e.expression)}function we(e){pt(e)}function Pe(e){l(e.expression),pr(e,e.typeArguments)}function Fe(e){l(e.expression),e.type&&(xn(" as "),u(e.type))}function Oe(e){l(e.expression),xn("!")}function Ie(e){l(e.expression),u(e.literal)}function Re(e){Lr(e)?(Sr(16,e.pos,e),xn(" "),Sr(17,e.statements.end,e)):(Sr(16,e.pos,e),Le(e),Sr(17,e.statements.end,e))}function Le(t){1&e.getEmitFlags(t)?vr(t,t.statements,384):vr(t,t.statements,65)}function Me(e){or(e,e.modifiers),u(e.declarationList),xn(";")}function Be(){xn(";")}function Ke(e){l(e.expression),xn(";")}function Je(e){var t=Sr(89,e.pos,e);xn(" "),Sr(18,t,e),l(e.expression),Sr(19,e.expression.end,e),lr(e,e.thenStatement),e.elseStatement&&(kr(e),Sr(81,e.thenStatement.end,e),208===e.elseStatement.kind?(xn(" "),u(e.elseStatement)):lr(e,e.elseStatement))}function ze(t){xn("do"),lr(t,t.statement),e.isBlock(t.statement)?xn(" "):kr(t),xn("while ("),l(t.expression),xn(");")}function je(e){xn("while ("),l(e.expression),xn(")"),lr(e,e.statement)}function Ve(e){var t=Sr(87,e.pos);xn(" "),Sr(18,t,e),We(e.initializer),xn(";"),cr(" ",e.condition),xn(";"),cr(" ",e.incrementor),xn(")"),lr(e,e.statement)}function Ue(e){var t=Sr(87,e.pos);xn(" "),Sr(18,t),We(e.initializer),xn(" in "),l(e.expression),Sr(19,e.expression.end),lr(e,e.statement)}function qe(e){var t=Sr(87,e.pos);xn(" "),Sr(18,t),We(e.initializer),xn(" of "),l(e.expression),Sr(19,e.expression.end),lr(e,e.statement)}function We(e){void 0!==e&&(224===e.kind?u(e):l(e))}function He(e){Sr(76,e.pos),sr(" ",e.label),xn(";")}function Ge(e){Sr(71,e.pos),sr(" ",e.label),xn(";")}function Xe(e){Sr(95,e.pos,e),cr(" ",e.expression),xn(";")}function Qe(e){xn("with ("),l(e.expression),xn(")"),lr(e,e.statement)}function Ye(e){var t=Sr(97,e.pos);xn(" "),Sr(18,t),l(e.expression),Sr(19,e.expression.end),xn(" "),u(e.caseBlock)}function Ze(e){u(e.label),xn(": "),u(e.statement)}function $e(e){xn("throw"),cr(" ",e.expression),xn(";")}function et(e){xn("try "),u(e.tryBlock),e.catchClause&&(kr(e),u(e.catchClause)),e.finallyBlock&&(kr(e),xn("finally "),u(e.finallyBlock))}function tt(e){Sr(77,e.pos),xn(";")}function rt(e){u(e.name),sr(": ",e.type),cr(" = ",e.initializer)}function nt(t){xn(e.isLet(t)?"let ":e.isConst(t)?"const ":"var "),vr(t,t.declarations,272)}function at(e){it(e)}function it(e){dr(e,e.decorators),or(e,e.modifiers),xn(e.asteriskToken?"function* ":"function "),_(e.name),ot(e,st)}function ot(t,r){var n=t.body;if(n)if(e.isBlock(n)){var a=32768&e.getEmitFlags(t);if(a&&Sn(),262144&e.getEmitFlags(t))r(t),ut(n);else{var i=an;an=0,r(t),ut(n),an=i}a&&Cn()}else r(t),xn(" "),l(n);else r(t),xn(";")}function st(e){fr(e,e.typeParameters),mr(e,e.parameters),sr(": ",e.type)}function ct(t){if(1&e.getEmitFlags(t))return!0;if(t.multiLine)return!1;if(!e.nodeIsSynthesized(t)&&!e.rangeIsOnSingleLine(t,on))return!1;if(Nr(t,t.statements,2)||wr(t,t.statements,2))return!1;for(var r,n=0,a=t.statements;n<a.length;n++){var i=a[n];if(Ar(r,i,2))return!1;r=i}return!0}function ut(e){xn(" {"),Sn(),Pn(e,e.statements,ct(e)?_t:lt),Cn(),Sr(17,e.statements.end,e)}function _t(e){lt(e,!0)}function lt(e,t){var r=tr(e.statements,!0),n=rr(e);0===r&&!n&&t?(Cn(),vr(e,e.statements,384),Sn()):vr(e,e.statements,1,r)}function dt(e){pt(e)}function pt(t){dr(t,t.decorators),or(t,t.modifiers),xn("class"),ur(" ",t.name,_);var r=32768&e.getEmitFlags(t);r&&Sn(),fr(t,t.typeParameters),vr(t,t.heritageClauses,256);var n=an;an=0,xn(" {"),vr(t,t.members,65),xn("}"),r&&Cn(),an=n}function ft(e){dr(e,e.decorators),or(e,e.modifiers),xn("interface "),u(e.name),fr(e,e.typeParameters),vr(e,e.heritageClauses,256),xn(" {"),vr(e,e.members,65),xn("}")}function mt(e){dr(e,e.decorators),or(e,e.modifiers),xn("type "),u(e.name),fr(e,e.typeParameters),xn(" = "),u(e.type),xn(";")}function gt(e){or(e,e.modifiers),xn("enum "),u(e.name);var t=an;an=0,xn(" {"),vr(e,e.members,81),xn("}"),an=t}function yt(e){or(e,e.modifiers),xn(16&e.flags?"namespace ":"module "),u(e.name);for(var t=e.body;230===t.kind;)xn("."),u(t.name),t=t.body;xn(" "),u(t)}function vt(e){if(Mr(e))xn("{ }");else{var t=an;an=0,xn("{"),Sn(),Le(e),xn("}"),an=t}}function ht(e){Sr(16,e.pos),vr(e,e.clauses,65),Sr(17,e.clauses.end)}function bt(e){or(e,e.modifiers),xn("import "),u(e.name),xn(" = "),kt(e.moduleReference),xn(";")}function kt(e){70===e.kind?l(e):u(e)}function xt(e){or(e,e.modifiers),xn("import "),e.importClause&&(u(e.importClause),xn(" from ")),l(e.moduleSpecifier),xn(";")}function Dt(e){u(e.name),e.name&&e.namedBindings&&xn(", "),u(e.namedBindings)}function St(e){xn("* as "),u(e.name)}function Ct(e){Pt(e)}function Et(e){Ft(e)}function Tt(e){xn(e.isExportEquals?"export = ":"export default "),l(e.expression),xn(";")}function Nt(e){xn("export "),e.exportClause?u(e.exportClause):xn("*"),e.moduleSpecifier&&(xn(" from "),l(e.moduleSpecifier)),xn(";")}function At(e){Pt(e)}function wt(e){Ft(e)}function Pt(e){xn("{"),vr(e,e.elements,432),xn("}")}function Ft(e){e.propertyName&&(u(e.propertyName),xn(" as ")),u(e.name)}function Ot(e){xn("require("),l(e.expression),xn(")")}function It(e){u(e.openingElement),vr(e,e.children,131072),u(e.closingElement)}function Rt(e){xn("<"),jt(e.tagName),xn(" "),vr(e,e.attributes,131328),xn("/>")}function Lt(e){xn("<"),jt(e.tagName),xr(e.attributes," "),vr(e,e.attributes,131328),xn(">")}function Mt(e){kn.writeLiteral(Ir(e,!0))}function Bt(e){xn("</"),jt(e.tagName),xn(">")}function Kt(e){u(e.name),sr("=",e.initializer)}function Jt(e){xn("{..."),l(e.expression),xn("}")}function zt(e){e.expression&&(xn("{"),l(e.expression),xn("}"))}function jt(e){70===e.kind?l(e):u(e)}function Vt(e){xn("case "),l(e.expression),xn(":"),qt(e,e.statements)}function Ut(e){xn("default:"),qt(e,e.statements)}function qt(t,r){var n=1===r.length&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r[0])||e.rangeStartPositionsAreOnSameLine(t,r[0],on));n?(xn(" "),u(r[0])):vr(t,r,81985)}function Wt(e){xn(" "),Cr(e.token),xn(" "),vr(e,e.types,272)}function Ht(e){Dn();var t=Sr(73,e.pos);xn(" "),Sr(18,t),u(e.variableDeclaration),Sr(19,e.variableDeclaration?e.variableDeclaration.end:t),xn(" "),u(e.block)}function Gt(t){u(t.name),xn(": ");var r=t.initializer;if(0===(512&e.getEmitFlags(r))){var n=e.getCommentRange(r);Fn(n.pos)}l(r)}function Xt(e){u(e.name),e.objectAssignmentInitializer&&(xn(" = "),l(e.objectAssignmentInitializer))}function Qt(e){e.expression&&(xn("..."),l(e.expression))}function Yt(e){u(e.name),cr(" = ",e.initializer)}function Zt(e){Dn(),ir(),Pn(e,e.statements,$t)}function $t(e){var t=e.statements,r=tr(t),n=an;an=0,rr(e),vr(e,t,1,r),an=n}function er(e){l(e.expression)}function tr(t,r){for(var n=0;n<t.length;n++){if(!e.isPrologueDirective(t[n]))return n;(r||n>0)&&Dn(),u(t[n])}return t.length}function rr(t,r){var n=e.isSourceFile(t)?t:on,a=pn.noEmitHelpers||n&&void 0!==e.getExternalHelpersModuleName(n),i=e.isSourceFile(t)&&!_n,o=!1,s=e.getEmitHelpers(t);if(s)for(var c=0,u=e.stableSort(s,e.compareEmitHelpers);c<u.length;c++){var _=u[c];if(_.scoped){if(r)continue}else{if(a)continue;if(i){if(un[_.name])continue;un[_.name]=!0}}nr(_.text),o=!0}return o&&Dn(),o}function nr(e){for(var t=e.split(/\r\n?|\n/g),r=ar(t),n=0;n<t.length;n++){var a=r?t[n].slice(r):t[n];a.length&&(n>0&&Dn(),xn(a))}}function ar(t){for(var r,n=0,a=t;n<a.length;n++)for(var i=a[n],o=0;o<i.length&&(void 0===r||o<r);o++)if(!e.isWhiteSpace(i.charCodeAt(o))&&(void 0===r||o<r)){r=o;break}return r}function ir(){var t=e.getShebang(sn);t&&(xn(t),Dn())}function or(e,t){t&&t.length&&(vr(e,t,256),xn(" "))}function sr(e,t){ur(e,t,u)}function cr(e,t){ur(e,t,l)}function ur(e,t,r){t&&(xn(e),r(t))}function _r(e,t){e&&(u(e),xn(t))}function lr(t,r){e.isBlock(r)||1&e.getEmitFlags(t)?(xn(" "),u(r)):(Dn(),Sn(),u(r),Cn())}function dr(e,t){vr(e,t,24577)}function pr(e,t){vr(e,t,26960)}function fr(e,t){vr(e,t,26960)}function mr(e,t){vr(e,t,1360)}function gr(e,t){t&&1===t.length&&void 0===t[0].type&&t[0].pos===e.pos?u(t[0]):mr(e,t)}function yr(e,t){vr(e,t,4432)}function vr(e,t,r,n,a){br(u,e,t,r,n,a)}function hr(e,t,r,n,a){br(l,e,t,r,n,a)}function br(t,r,n,a,i,o){void 0===i&&(i=0),void 0===o&&(o=n?n.length-i:0);var s=void 0===n;if(!(s&&8192&a)){var c=s||0===n.length||i>=n.length||0===o;if(!(c&&16384&a)){if(7680&a&&xn($r(a)),c)1&a?Dn():128&a&&xn(" ");else{var u=0===(131072&a),_=u;Nr(r,n,a)?(Dn(),_=!1):128&a&&xn(" "),64&a&&Sn();for(var l=void 0,d=void 0,p=Yr(a),f=0;f<o;f++){var m=n[i+f];if(l&&(xn(p),Ar(l,m,a)?(0===(67&a)&&(Sn(),d=!0),Dn(),_=!1):l&&256&a&&xn(" ")),_){var g=e.getCommentRange(m);Fn(g.pos)}else _=u;t(m),d&&(Cn(),d=!1),l=m}var y=32&a&&n.hasTrailingComma;16&a&&y&&xn(","),64&a&&Cn(),wr(r,n,a)?Dn():128&a&&xn(" ")}7680&a&&xn(en(a))}}}function kr(t){1&e.getEmitFlags(t)?xn(" "):Dn()}function xr(e,t){e&&e.length>0&&xn(t)}function Dr(e,t){void 0!==e&&xn(t)}function Sr(e,t,r){return Nn(r,e,t,Cr)}function Cr(t,r){var n=e.tokenToString(t);return xn(n),r<0?r:r+n.length}function Er(e,t){e?(Sn(),Dn()):t&&xn(t)}function Tr(e,t){e&&Cn(),t&&Cn()}function Nr(t,r,n){if(1&n)return!0;if(2&n){if(32768&n)return!0;var a=r[0];return void 0===a?!e.rangeIsOnSingleLine(t,on):e.positionIsSynthesized(t.pos)||e.nodeIsSynthesized(a)?Pr(a,n):!e.rangeStartPositionsAreOnSameLine(t,a,on)}return!1}function Ar(t,r,n){return!!(1&n)||(2&n?void 0!==t&&void 0!==r&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r)?Pr(t,n)||Pr(r,n):!e.rangeEndIsOnSameLineAsRangeStart(t,r,on)):r.startsOnNewLine)}function wr(t,r,n){if(1&n)return 0===(65536&n);if(2&n){if(32768&n)return!0;var a=e.lastOrUndefined(r);return void 0===a?!e.rangeIsOnSingleLine(t,on):e.positionIsSynthesized(t.pos)||e.nodeIsSynthesized(a)?Pr(a,n):!e.rangeEndPositionsAreOnSameLine(t,a,on)}return!1}function Pr(t,r){if(e.nodeIsSynthesized(t)){var n=t.startsOnNewLine;return void 0===n?0!==(32768&r):n}return 0!==(32768&r)}function Fr(t,r,n){return t=Or(t),r=Or(r),n=Or(n),!!n.startsOnNewLine||!(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r)||e.nodeIsSynthesized(n)||e.rangeEndIsOnSameLineAsRangeStart(r,n,on))}function Or(t){for(;183===t.kind&&e.nodeIsSynthesized(t);)t=t.expression;return t}function Ir(t,r){return e.isGeneratedIdentifier(t)?Xr(t):!e.isIdentifier(t)||!e.nodeIsSynthesized(t)&&t.parent?9===t.kind&&t.textSourceNode?Ir(t.textSourceNode,r):!e.isLiteralExpression(t)||!e.nodeIsSynthesized(t)&&t.parent?e.getSourceTextOfNodeFromSourceFile(on,t,r):t.text:e.unescapeIdentifier(t.text)}function Rr(t){if(9===t.kind&&t.textSourceNode){var r=t.textSourceNode;return e.isIdentifier(r)?'"'+e.escapeNonAsciiCharacters(e.escapeString(Ir(r)))+'"':Rr(r)}return e.getLiteralText(t,on,fn)}function Lr(e){return!e.multiLine&&Mr(e)}function Mr(t){return 0===t.statements.length&&e.rangeEndIsOnSameLineAsRangeStart(t,t,on)}function Br(r){return!t.hasGlobalName(r)&&!e.hasProperty(cn,r)&&!e.hasProperty(nn,r)}function Kr(t,r){for(var n=r;e.isNodeDescendantOf(n,r);n=n.nextContainer)if(n.locals&&e.hasProperty(n.locals,t)&&9544639&n.locals[t].flags)return!1;return!0}function Jr(e){if(e&&!(an&e)){var t=268435456===e?"_i":"_n";if(Br(t))return an|=e,t}for(;;){var r=268435455&an;if(an++,8!==r&&13!==r){var n=r<26?"_"+String.fromCharCode(97+r):"_"+(r-26);if(Br(n))return n}}}function zr(e){95!==e.charCodeAt(e.length-1)&&(e+="_");for(var t=1;;){var r=e+t;if(Br(r))return nn[r]=r;t++}}function jr(e){var t=Ir(e.name);return Kr(t,e)?t:zr(t)}function Vr(t){var r=e.getExternalModuleName(t),n=9===r.kind?e.escapeIdentifier(e.makeIdentifierFromModuleName(r.text)):"module";return zr(n)}function Ur(){return zr("default")}function qr(){return zr("class")}function Wr(e){switch(e.kind){case 70:return zr(Ir(e));case 230:case 229:return jr(e);case 235:case 241:return Vr(e);case 225:case 226:case 240:return Ur();case 197:return qr();default:return Jr(0)}}function Hr(t){switch(t.autoGenerateKind){case 1:return Jr(0);case 2:return Jr(268435456);case 3:return zr(t.text)}e.Debug.fail("Unsupported GeneratedIdentifierKind.")}function Gr(t){for(var r=t.autoGenerateId,n=t,a=n.original;a&&(n=a,!e.isIdentifier(n)||4!==n.autoGenerateKind||n.autoGenerateId===r);)a=n.original;return n}function Xr(t){if(4===t.autoGenerateKind){var r=Gr(t),n=e.getNodeId(r);return tn[n]||(tn[n]=e.unescapeIdentifier(Wr(r)))}var a=t.autoGenerateId;return rn[a]||(rn[a]=e.unescapeIdentifier(Hr(t)))}function Qr(){var e=[];return e[0]="",e[16]=",",e[4]=" |",e[8]=" &",e}function Yr(e){return ln[28&e]}function Zr(){var e=[];return e[512]=["{","}"],e[1024]=["(",")"],e[2048]=["<",">"],e[4096]=["[","]"],e}function $r(e){return dn[7680&e][0]}function en(e){return dn[7680&e][1]}var tn,rn,nn,an,on,sn,cn,un,_n,ln=Qr(),dn=Zr(),pn=r.getCompilerOptions(),fn=e.getEmitScriptTarget(pn),mn=e.getEmitModuleKind(pn),gn=pn.sourceMap||pn.inlineSourceMap?[]:void 0,yn=pn.listEmittedFiles?[]:void 0,vn=e.createDiagnosticCollection(),hn=r.getNewLine(),bn=i?a:e.getTransformers(pn),kn=e.createTextWriter(hn),xn=kn.write,Dn=kn.writeLine,Sn=kn.increaseIndent,Cn=kn.decreaseIndent,En=e.createSourceMapWriter(r,kn),Tn=En.emitNodeWithSourceMap,Nn=En.emitTokenWithSourceMap,An=e.createCommentWriter(r,kn,En),wn=An.emitNodeWithComments,Pn=An.emitBodyWithDetachedComments,Fn=An.emitTrailingCommentsOfPosition,On=!1,In=e.getSourceFilesToEmit(r,n);e.performance.mark("beforeTransform");var Rn=e.transformFiles(t,r,In,bn),Ln=Rn.transformed,Mn=Rn.emitNodeWithSubstitution,Bn=Rn.emitNodeWithNotification;e.performance.measure("transformTime","beforeTransform"),e.performance.mark("beforePrint"),e.forEachTransformedEmitFile(r,Ln,o,i),e.performance.measure("printTime","beforePrint");for(var Kn=0,Jn=In;Kn<Jn.length;Kn++){var zn=Jn[Kn];e.disposeEmitNodes(zn)}return{emitSkipped:On,diagnostics:vn.getDiagnostics(),emittedFiles:yn,sourceMaps:gn}}var r;!function(e){e[e.Auto=0]="Auto",e[e.CountMask=268435455]="CountMask",e[e._i=268435456]="_i"}(r||(r={}));var n=function(e){return e},a=[function(e){return n}];e.emitFiles=t;var i;!function(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.DelimitersMask=28]="DelimitersMask",e[e.AllowTrailingComma=32]="AllowTrailingComma",e[e.Indented=64]="Indented",e[e.SpaceBetweenBraces=128]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=256]="SpaceBetweenSiblings",e[e.Braces=512]="Braces",e[e.Parenthesis=1024]="Parenthesis",e[e.AngleBrackets=2048]="AngleBrackets",e[e.SquareBrackets=4096]="SquareBrackets",e[e.BracketsMask=7680]="BracketsMask",e[e.OptionalIfUndefined=8192]="OptionalIfUndefined",e[e.OptionalIfEmpty=16384]="OptionalIfEmpty",e[e.Optional=24576]="Optional",e[e.PreferNewLine=32768]="PreferNewLine",e[e.NoTrailingNewLine=65536]="NoTrailingNewLine",e[e.NoInterveningComments=131072]="NoInterveningComments",e[e.Modifiers=256]="Modifiers",e[e.HeritageClauses=256]="HeritageClauses",e[e.TypeLiteralMembers=65]="TypeLiteralMembers",e[e.TupleTypeElements=336]="TupleTypeElements",e[e.UnionTypeConstituents=260]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=264]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=432]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=304]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=978]="ObjectLiteralExpressionProperties",e[e.ArrayLiteralExpressionElements=4466]="ArrayLiteralExpressionElements",e[e.CallExpressionArguments=1296]="CallExpressionArguments",e[e.NewExpressionArguments=9488]="NewExpressionArguments",e[e.TemplateExpressionSpans=131072]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=384]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=65]="MultiLineBlockStatements",e[e.VariableDeclarationList=272]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=384]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=256]="ClassHeritageClauses",e[e.ClassMembers=65]="ClassMembers",e[e.InterfaceMembers=65]="InterfaceMembers",e[e.EnumMembers=81]="EnumMembers",e[e.CaseBlockClauses=65]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=432]="NamedImportsOrExportsElements",e[e.JsxElementChildren=131072]="JsxElementChildren",e[e.JsxElementAttributes=131328]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=81985]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=272]="HeritageClauseTypes",e[e.SourceFileStatements=65537]="SourceFileStatements",e[e.Decorators=24577]="Decorators",e[e.TypeArguments=26960]="TypeArguments",e[e.TypeParameters=26960]="TypeParameters",e[e.Parameters=1360]="Parameters",e[e.IndexSignatureParameters=4432]="IndexSignatureParameters"}(i||(i={}))}(ts||(ts={}));var ts;!function(e){function t(t,r,n){for(void 0===n&&(n="tsconfig.json");;){var a=e.combinePaths(t,n);if(r(a))return a;var i=e.getDirectoryPath(t);if(i===t)break;t=i}}function r(t,r){var n=e.getDirectoryPath(r),a=e.isRootedDiskPath(t)?t:e.combinePaths(n,t);return e.normalizePath(a)}function n(t,r,n){var a,i=e.forEach(t,function(t){var i=e.getNormalizedPathComponents(t,r);if(i.pop(),!a)return void(a=i);for(var o=0,s=Math.min(a.length,i.length);o<s;o++)if(n(a[o])!==n(i[o])){if(0===o)return!0;a.length=o;break}i.length<a.length&&(a.length=i.length)});return i?"":a?e.getNormalizedPathFromPathComponents(a):r}function a(t,r){function n(t){return e.sys.useCaseSensitiveFileNames?t:t.toLowerCase()}function a(n,a,i){var o;try{e.performance.mark("beforeIORead"),o=e.sys.readFile(n,t.charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(s){i&&i(s.number===d?e.createCompilerDiagnostic(e.Diagnostics.Unsupported_file_encoding).messageText:s.message),o=""}return void 0!==o?e.createSourceFile(n,o,a,r):void 0}function i(t){return t in l||!!e.sys.directoryExists(t)&&(l[t]=!0,!0)}function o(t){if(t.length>e.getRootLength(t)&&!i(t)){var r=e.getDirectoryPath(t);o(r),e.sys.createDirectory(t)}}function s(t,r,n){_||(_=e.createMap());var a=e.sys.createHash(r),i=e.sys.getModifiedTime(t);if(i&&t in _){var o=_[t];if(o.byteOrderMark===n&&o.hash===a&&o.mtime.getTime()===i.getTime())return}e.sys.writeFile(t,r,n);var s=e.sys.getModifiedTime(t);_[t]={hash:a,byteOrderMark:n,mtime:s}}function c(r,n,a,i){try{e.performance.mark("beforeIOWrite"),o(e.getDirectoryPath(e.normalizePath(r))),e.isWatchSet(t)&&e.sys.createHash&&e.sys.getModifiedTime?s(r,n,a):e.sys.writeFile(r,n,a),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(c){i&&i(c.message)}}function u(){return e.getDirectoryPath(e.normalizePath(e.sys.getExecutingFilePath()))}var _,l=e.createMap(),d=-2147024809,p=e.getNewLineCharacter(t),f=e.sys.realpath&&function(t){return e.sys.realpath(t)};return{getSourceFile:a,getDefaultLibLocation:u,getDefaultLibFileName:function(t){return e.combinePaths(u(),e.getDefaultLibFileName(t))},writeFile:c,getCurrentDirectory:e.memoize(function(){return e.sys.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return e.sys.useCaseSensitiveFileNames},getCanonicalFileName:n,getNewLine:function(){return p},fileExists:function(t){return e.sys.fileExists(t)},readFile:function(t){return e.sys.readFile(t)},trace:function(t){return e.sys.write(t+p)},directoryExists:function(t){return e.sys.directoryExists(t)},getEnvironmentVariable:function(t){return e.sys.getEnvironmentVariable?e.sys.getEnvironmentVariable(t):""},getDirectories:function(t){return e.sys.getDirectories(t)},realpath:f}}function i(t,r,n){var a=t.getOptionsDiagnostics(n).concat(t.getSyntacticDiagnostics(r,n),t.getGlobalDiagnostics(n),t.getSemanticDiagnostics(r,n));return t.getCompilerOptions().declaration&&(a=a.concat(t.getDeclarationDiagnostics(r,n))),e.sortAndDeduplicateDiagnostics(a)}function o(t,r){for(var n="",a=0,i=t;a<i.length;a++){var o=i[a];if(o.file){var c=e.getLineAndCharacterOfPosition(o.file,o.start),u=c.line,_=c.character,l=o.file.fileName,d=e.convertToRelativePath(l,r.getCurrentDirectory(),function(e){return r.getCanonicalFileName(e)});n+=d+"("+(u+1)+","+(_+1)+"): "}var p=e.DiagnosticCategory[o.category].toLowerCase();n+=p+" TS"+o.code+": "+s(o.messageText,r.getNewLine())+r.getNewLine()}return n}function s(e,t){if("string"==typeof e)return e;for(var r=e,n="",a=0;r;){if(a){n+=t;for(var i=0;i<a;i++)n+="  "}n+=r.messageText,a++,r=r.next}return n}function c(t,r,n){if(0===t.length)return[];for(var a=[],i=e.createMap(),o=0,s=t;o<s.length;o++){var c=s[o],u=c in i?i[c]:i[c]=n(c,r);a.push(u)}return a}function u(t,i,o,s){function u(){if(void 0===re){var t=e.filterSourceFilesInDirectory(oe,g);re=i.rootDir&&Z(t,i.rootDir)?e.getNormalizedAbsolutePath(i.rootDir,ye):Y(t),re&&re[re.length-1]!==e.directorySeparator&&(re+=e.directorySeparator)}return re}function d(){if(!ie){h(),ie=e.createMap();for(var t=0,r=oe;t<r.length;t++){var n=r[t];e.copyProperties(n.classifiableNames,ie)}}return ie}function p(t,r,n,a){function c(t,r){if(!r)return!1;var n=e.getResolvedModule(r.file,t);if(n)return!1;var a=s.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(t);if(!a||!a.declarations)return!1;var c=e.forEach(a.declarations,function(t){var n=e.getSourceFileOfNode(t);return!e.contains(r.modifiedFilePaths,n.path)&&n});return!!c&&(e.isTraceEnabled(i,o)&&e.trace(o,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,t,c.fileName),!0)}if(!a&&!n.ambientModuleNames.length)return fe(t,r);for(var u,_,d={},p=0;p<t.length;p++){var f=t[p],m=!1;e.contains(n.ambientModuleNames,f)?(m=!0,e.isTraceEnabled(i,o)&&e.trace(o,e.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,f,r)):m=c(f,a),m?(u||(_=new Array(t.length),u=t.slice(0,p)),_[p]=d):u&&u.push(f)}if(!u)return fe(t,r);for(var g=u.length?fe(u,r):l,y=0,p=0;p<_.length;p++)_[p]==d?_[p]=void 0:(_[p]=g[y],y++);return e.Debug.assert(y===g.length),_}function f(){if(!s)return!1;var r=s.getCompilerOptions();if(e.changesAffectModuleResolution(r,i))return!1;e.Debug.assert(!s.structureIsReused);var n=s.getRootFileNames();if(!e.arrayIsEqualTo(n,t))return!1;if(!e.arrayIsEqualTo(i.types,r.types))return!1;for(var a=[],c=[],u=[],_=0,l=s.getSourceFiles();_<l.length;_++){var d=l[_],f=o.getSourceFileByPath?o.getSourceFileByPath(d.fileName,d.path,i.target):o.getSourceFile(d.fileName,i.target);if(!f)return!1;if(f.path=d.path,c.push(f.path),d!==f){if(d.hasNoDefaultLib!==f.hasNoDefaultLib)return!1;if(!e.arrayIsEqualTo(d.referencedFiles,f.referencedFiles,B))return!1;if(z(f),!e.arrayIsEqualTo(d.imports,f.imports,K))return!1;if(!e.arrayIsEqualTo(d.moduleAugmentations,f.moduleAugmentations,K))return!1;if(!e.arrayIsEqualTo(d.typeReferenceDirectives,f.typeReferenceDirectives,B))return!1;u.push({oldFile:d,newFile:f})}else f=d;a.push(f)}for(var m=u.map(function(e){return e.newFile.path}),g=0,y=u;g<y.length;g++){var v=y[g],d=v.oldFile,f=v.newFile,h=e.getNormalizedAbsolutePath(f.fileName,ye);if(fe){var b=e.map(e.concatenate(f.imports,f.moduleAugmentations),J),k=p(b,h,f,{file:d,program:s,modifiedFilePaths:m}),x=e.hasChangesInResolutions(b,k,d.resolvedModules,e.moduleResolutionIsEqualTo);if(x)return!1}if(ke){var D=e.map(f.typeReferenceDirectives,function(e){return e.fileName}),k=ke(D,h),x=e.hasChangesInResolutions(D,k,d.resolvedTypeReferenceDirectiveNames,e.typeDirectiveIsEqualTo);if(x)return!1}f.resolvedModules=d.resolvedModules,f.resolvedTypeReferenceDirectiveNames=d.resolvedTypeReferenceDirectiveNames}for(var S=0,C=a.length;S<C;S++)De.set(c[S],a[S]);oe=a,ce=s.getFileProcessingDiagnostics();for(var E=0,T=u;E<T.length;E++){var N=T[E];ce.reattachFileDiagnostics(N.newFile)}return se=s.getResolvedTypeReferenceDirectives(),s.structureIsReused=!0,!0}function m(e){return{getCanonicalFileName:X,getCommonSourceDirectory:te.getCommonSourceDirectory,getCompilerOptions:te.getCompilerOptions,getCurrentDirectory:function(){return ye},getNewLine:function(){return o.getNewLine()},getSourceFile:te.getSourceFile,getSourceFileByPath:te.getSourceFileByPath,getSourceFiles:te.getSourceFiles,isSourceFileFromExternalLibrary:g,writeFile:e||function(e,t,r,n,a){return o.writeFile(e,t,r,n,a)},isEmitBlocked:k}}function g(e){return de[e.path]}function y(){return ne||(ne=e.createTypeChecker(te,!0))}function v(){ne=void 0}function h(){return ae||(ae=e.createTypeChecker(te,!1))}function b(e,t,r,n){return w(function(){return x(te,e,t,r,n)})}function k(t){return he.contains(e.toPath(t,ye,X))}function x(t,r,n,a,o){var s=[];if(i.noEmit)return{diagnostics:s,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};if(i.noEmitOnError){var c=t.getOptionsDiagnostics(a).concat(t.getSyntacticDiagnostics(r,a),t.getGlobalDiagnostics(a),t.getSemanticDiagnostics(r,a));if(0===c.length&&t.getCompilerOptions().declaration&&(s=t.getDeclarationDiagnostics(void 0,a)),c.length>0||s.length>0)return{diagnostics:e.concatenate(c,s),sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}var u=y().getEmitResolver(i.outFile||i.out?void 0:r);e.performance.mark("beforeEmit");var _=e.emitFiles(u,m(n),r,o);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),_}function D(t){return S(e.toPath(t,ye,X))}function S(e){return De.get(e)}function C(t,r,n){if(t)return r(t,n);var a=[];return e.forEach(te.getSourceFiles(),function(t){n&&n.throwIfCancellationRequested(),e.addRange(a,r(t,n))}),e.sortAndDeduplicateDiagnostics(a)}function E(e,t){return C(e,A,t)}function T(e,t){return C(e,P,t)}function N(e,t){var r=te.getCompilerOptions();return!e||r.out||r.outFile?O(e,t):C(e,I,t)}function A(t){return e.isSourceFileJavaScript(t)?(t.additionalSyntacticDiagnostics||(t.additionalSyntacticDiagnostics=F(t)),e.concatenate(t.additionalSyntacticDiagnostics,t.parseDiagnostics)):t.parseDiagnostics}function w(t){try{return t()}catch(r){throw r instanceof e.OperationCanceledException&&(ae=void 0,ne=void 0),r}}function P(t,r){return w(function(){var n=y();e.Debug.assert(!!t.bindDiagnostics);var a=t.bindDiagnostics,i=e.isSourceFileJavaScript(t)?[]:n.getDiagnostics(t,r),o=ce.getDiagnostics(t.fileName),s=ge.getDiagnostics(t.fileName);return a.concat(i,o,s)})}function F(t){return w(function(){function r(t){switch(u.kind){case 144:case 147:if(u.questionToken===t)return void c.push(s(t,e.Diagnostics._0_can_only_be_used_in_a_ts_file,"?"));case 149:case 148:case 150:case 151:case 152:case 184:case 225:case 185:case 225:case 223:if(u.type===t)return void c.push(s(t,e.Diagnostics.types_can_only_be_used_in_a_ts_file))}switch(t.kind){case 234:return void c.push(s(t,e.Diagnostics.import_can_only_be_used_in_a_ts_file));case 240:if(t.isExportEquals)return void c.push(s(t,e.Diagnostics.export_can_only_be_used_in_a_ts_file));break;case 255:var a=t;if(107===a.token)return void c.push(s(t,e.Diagnostics.implements_clauses_can_only_be_used_in_a_ts_file));break;case 227:return void c.push(s(t,e.Diagnostics.interface_declarations_can_only_be_used_in_a_ts_file));case 230:return void c.push(s(t,e.Diagnostics.module_declarations_can_only_be_used_in_a_ts_file));case 228:return void c.push(s(t,e.Diagnostics.type_aliases_can_only_be_used_in_a_ts_file));case 229:return void c.push(s(t,e.Diagnostics.enum_declarations_can_only_be_used_in_a_ts_file));case 182:var i=t;return void c.push(s(i.type,e.Diagnostics.type_assertion_expressions_can_only_be_used_in_a_ts_file))}var o=u;u=t,e.forEachChild(t,r,n),u=o}function n(t){switch(u.decorators!==t||i.experimentalDecorators||c.push(s(u,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning)),u.kind){case 226:case 149:case 148:case 150:case 151:case 152:case 184:case 225:case 185:case 225:if(t===u.typeParameters)return void c.push(o(t,e.Diagnostics.type_parameter_declarations_can_only_be_used_in_a_ts_file));case 205:if(t===u.modifiers)return a(t,205===u.kind);break;case 147:if(t===u.modifiers){for(var n=0,_=t;n<_.length;n++){var l=_[n];114!==l.kind&&c.push(s(l,e.Diagnostics._0_can_only_be_used_in_a_ts_file,e.tokenToString(l.kind)))}return}break;case 144:if(t===u.modifiers)return void c.push(o(t,e.Diagnostics.parameter_modifiers_can_only_be_used_in_a_ts_file));break;case 179:case 180:case 199:if(t===u.typeArguments)return void c.push(o(t,e.Diagnostics.type_arguments_can_only_be_used_in_a_ts_file))}for(var d=0,p=t;d<p.length;d++){var f=p[d];r(f)}}function a(t,r){for(var n=0,a=t;n<a.length;n++){var i=a[n];switch(i.kind){case 75:if(r)continue;case 113:case 111:case 112:case 130:case 123:case 116:c.push(s(i,e.Diagnostics._0_can_only_be_used_in_a_ts_file,e.tokenToString(i.kind)));break;case 114:case 83:case 78:}}}function o(r,n,a,i,o){var s=r.pos;return e.createFileDiagnostic(t,s,r.end-s,n,a,i,o)}function s(r,n,a,i,o){return e.createDiagnosticForNodeInSourceFile(t,r,n,a,i,o)}var c=[],u=t;return r(t),c})}function O(t,r){return w(function(){var n=y().getEmitResolver(t,r);return e.getDeclarationDiagnostics(m(e.noop),n,t)})}function I(t,r){return e.isDeclarationFile(t)?[]:O(t,r)}function R(){var t=[];return e.addRange(t,ce.getGlobalDiagnostics()),e.addRange(t,ge.getGlobalDiagnostics()),e.sortAndDeduplicateDiagnostics(t)}function L(){var t=[];return e.addRange(t,y().getGlobalDiagnostics()),e.sortAndDeduplicateDiagnostics(t)}function M(t,r){j(e.normalizePath(t),r)}function B(e,t){return e.fileName===t.fileName}function K(e,t){return e.text===t.text}function J(e){return e.text}function z(t){function r(n,i){switch(n.kind){case 235:case 234:case 241:var c=e.getExternalModuleName(n);if(!c||9!==c.kind)break;if(!c.text)break;i&&e.isExternalModuleNameRelative(c.text)||(a||(a=[])).push(c);break;case 230:if(e.isAmbientModule(n)&&(i||e.hasModifier(n,2)||e.isDeclarationFile(t))){var l=n.name;if(u||i&&!e.isExternalModuleNameRelative(l.text))(o||(o=[])).push(l);else if(!i){
_&&(s||(s=[])).push(l.text);var d=n.body;if(d)for(var p=0,f=d.statements;p<f.length;p++){var m=f[p];r(m,!0)}}}}}function n(t){e.isRequireCall(t,!0)?(a||(a=[])).push(t.arguments[0]):e.forEachChild(t,n)}if(!t.imports){var a,o,s,c=e.isSourceFileJavaScript(t),u=e.isExternalModule(t),_=e.isDeclarationFile(t);if(i.importHelpers&&(i.isolatedModules||u)&&!t.isDeclarationFile){var d=e.createSynthesizedNode(9);d.text=e.externalHelpersModuleNameText;var p=e.createSynthesizedNode(235);p.parent=t,d.parent=p,a=[d]}for(var f=0,m=t.statements;f<m.length;f++){var g=m[f];r(g,!1),c&&n(g)}t.imports=a||l,t.moduleAugmentations=o||l,t.ambientModuleNames=s||l}}function j(t,r,n,a,s){var c,u;if(e.hasExtension(t))i.allowNonTsExtensions||e.forEach(ve,function(r){return e.fileExtensionIs(o.getCanonicalFileName(t),r)})?U(t,e.toPath(t,ye,X),r,n,a,s)?n&&o.getCanonicalFileName(t)===o.getCanonicalFileName(n.fileName)&&(u=e.Diagnostics.A_file_cannot_have_a_reference_to_itself,c=[t]):(u=e.Diagnostics.File_0_not_found,c=[t]):(u=e.Diagnostics.File_0_has_unsupported_extension_The_only_supported_extensions_are_1,c=[t,"'"+ve.join("', '")+"'"]);else{var _=i.allowNonTsExtensions&&U(t,e.toPath(t,ye,X),r,n,a,s);_||(i.allowNonTsExtensions?(u=e.Diagnostics.File_0_not_found,c=[t]):e.forEach(ve,function(i){return U(t+i,e.toPath(t+i,ye,X),r,n,a,s)})||(u=e.Diagnostics.File_0_not_found,t+=".ts",c=[t]))}u&&(void 0!==n&&void 0!==s&&void 0!==a?ce.add(e.createFileDiagnostic.apply(void 0,[n,a,s-a,u].concat(c))):ce.add(e.createCompilerDiagnostic.apply(void 0,[u].concat(c))))}function V(t,r,n,a,i){void 0!==n&&void 0!==a&&void 0!==i?ce.add(e.createFileDiagnostic(n,a,i-a,e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,t,r)):ce.add(e.createCompilerDiagnostic(e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,t,r))}function U(t,r,n,a,s,c){if(De.contains(r)){var u=De.get(r);return u&&i.forceConsistentCasingInFileNames&&e.getNormalizedAbsolutePath(u.fileName,ye)!==e.getNormalizedAbsolutePath(t,ye)&&V(t,u.fileName,a,s,c),u&&de[u.path]&&0==_e?(de[u.path]=!1,i.noResolve||(q(u,n),W(u)),le[u.path]=!1,Q(u)):u&&le[u.path]&&_e<ue&&(le[u.path]=!1,Q(u)),u}var _=o.getSourceFile(t,i.target,function(r){void 0!==a&&void 0!==s&&void 0!==c?ce.add(e.createFileDiagnostic(a,s,c-s,e.Diagnostics.Cannot_read_file_0_Colon_1,t,r)):ce.add(e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,r))});if(De.set(r,_),_){if(de[r]=_e>0,_.path=r,o.useCaseSensitiveFileNames()){var l=Se.get(r);l?V(t,l.fileName,a,s,c):Se.set(r,_)}me=me||_.hasNoDefaultLib,i.noResolve||(q(_,n),W(_)),Q(_),n?oe.unshift(_):oe.push(_)}return _}function q(t,n){e.forEach(t.referencedFiles,function(e){var a=r(e.fileName,t.fileName);j(a,n,t,e.pos,e.end)})}function W(t){for(var r=e.map(t.typeReferenceDirectives,function(e){return e.fileName.toLocaleLowerCase()}),n=ke(r,t.fileName),a=0;a<r.length;a++){var i=t.typeReferenceDirectives[a],o=n[a],s=i.fileName.toLocaleLowerCase();e.setResolvedTypeReferenceDirective(t,s,o),H(s,o,t,i.pos,i.end)}}function H(t,r,n,a,i){var s=se[t];if(!s||!s.primary){var c=!0;if(r)if(r.primary)j(r.resolvedFileName,!1,n,a,i);else if(s){if(r.resolvedFileName!==s.resolvedFileName){var u=o.readFile(r.resolvedFileName);u!==D(s.resolvedFileName).text&&ce.add(G(n,a,i,e.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,t,r.resolvedFileName,s.resolvedFileName))}c=!1}else j(r.resolvedFileName,!1,n,a,i);else ce.add(G(n,a,i,e.Diagnostics.Cannot_find_type_definition_file_for_0,t));c&&(se[t]=r)}}function G(t,r,n,a){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];return void 0===t||void 0===r||void 0===n?e.createCompilerDiagnostic.apply(void 0,[a].concat(i)):e.createFileDiagnostic.apply(void 0,[t,r,n-r,a].concat(i))}function X(e){return o.getCanonicalFileName(e)}function Q(t){if(z(t),t.imports.length||t.moduleAugmentations.length){t.resolvedModules=e.createMap();var r=e.filter(t.moduleAugmentations,function(e){return 9===e.kind}),n=e.map(e.concatenate(t.imports,r),J),a=p(n,e.getNormalizedAbsolutePath(t.fileName,ye),t);e.Debug.assert(a.length===n.length);for(var o=0;o<n.length;o++){var s=a[o];if(e.setResolvedModule(t,n[o],s),s){var c=s.isExternalLibraryImport,u=c&&!e.extensionIsTypeScript(s.extension),l=s.resolvedFileName;c&&_e++;var d=u&&_e>ue,f=l&&!_(i,s)&&!i.noResolve&&o<t.imports.length&&!d;if(d)le[t.path]=!0;else if(f){var m=e.toPath(l,ye,X),g=e.skipTrivia(t.text,t.imports[o].pos);U(l,m,!1,t,g,t.imports[o].end)}c&&_e--}}}else t.resolvedModules=void 0}function Y(e){for(var t=[],r=0,a=e;r<a.length;r++){var i=a[r];i.isDeclarationFile||t.push(i.fileName)}return n(t,ye,X)}function Z(t,r){var n=!0;if(t)for(var a=o.getCanonicalFileName(e.getNormalizedAbsolutePath(r,ye)),s=0,c=t;s<c.length;s++){var u=c[s];if(!e.isDeclarationFile(u)){var _=o.getCanonicalFileName(e.getNormalizedAbsolutePath(u.fileName,ye));0!==_.indexOf(a)&&(ge.add(e.createCompilerDiagnostic(e.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,u.fileName,i.rootDir)),n=!1)}}return n}function $(){function t(t,r){if(t){var n=e.toPath(t,ye,X);if(De.contains(n)){var a;i.configFilePath||(a=e.chainDiagnosticMessages(void 0,e.Diagnostics.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)),a=e.chainDiagnosticMessages(a,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,t),ee(t,e.createCompilerDiagnosticFromMessageChain(a))}r.contains(n)?ee(t,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,t)):r.set(n,!0)}}if(i.isolatedModules&&(i.declaration&&ge.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declaration","isolatedModules")),i.noEmitOnError&&ge.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noEmitOnError","isolatedModules")),i.out&&ge.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules")),i.outFile&&ge.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules"))),i.inlineSourceMap&&(i.sourceMap&&ge.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap")),i.mapRoot&&ge.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap"))),i.paths&&void 0===i.baseUrl&&ge.add(e.createCompilerDiagnostic(e.Diagnostics.Option_paths_cannot_be_used_without_specifying_baseUrl_option)),i.paths)for(var r in i.paths)if(e.hasProperty(i.paths,r))if(e.hasZeroOrOneAsteriskCharacter(r)||ge.add(e.createCompilerDiagnostic(e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,r)),e.isArray(i.paths[r])){0===i.paths[r].length&&ge.add(e.createCompilerDiagnostic(e.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,r));for(var n=0,a=i.paths[r];n<a.length;n++){var s=a[n],c=typeof s;"string"===c?e.hasZeroOrOneAsteriskCharacter(s)||ge.add(e.createCompilerDiagnostic(e.Diagnostics.Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character,s,r)):ge.add(e.createCompilerDiagnostic(e.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,s,r,c))}}else ge.add(e.createCompilerDiagnostic(e.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,r));i.sourceMap||i.inlineSourceMap||(i.inlineSources&&ge.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources")),i.sourceRoot&&ge.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot"))),i.out&&i.outFile&&ge.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile")),i.mapRoot&&!i.sourceMap&&ge.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"mapRoot","sourceMap")),i.declarationDir&&(i.declaration||ge.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"declarationDir","declaration")),(i.out||i.outFile)&&ge.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",i.out?"out":"outFile"))),i.lib&&i.noLib&&ge.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib")),i.noImplicitUseStrict&&i.alwaysStrict&&ge.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict"));var _=i.target||0,l=i.outFile||i.out,d=e.forEach(oe,function(t){return e.isExternalModule(t)&&!e.isDeclarationFile(t)?t:void 0});if(i.isolatedModules){i.module===e.ModuleKind.None&&_<2&&ge.add(e.createCompilerDiagnostic(e.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher));var p=e.forEach(oe,function(t){return e.isExternalModule(t)||e.isDeclarationFile(t)?void 0:t});if(p){var f=e.getErrorSpanForNode(p,p);ge.add(e.createFileDiagnostic(p,f.start,f.length,e.Diagnostics.Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided))}}else if(d&&_<2&&i.module===e.ModuleKind.None){var g=e.getErrorSpanForNode(d,d.externalModuleIndicator);ge.add(e.createFileDiagnostic(d,g.start,g.length,e.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(l)if(i.module&&i.module!==e.ModuleKind.AMD&&i.module!==e.ModuleKind.System)ge.add(e.createCompilerDiagnostic(e.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,i.out?"out":"outFile"));else if(void 0===i.module&&d){var y=e.getErrorSpanForNode(d,d.externalModuleIndicator);ge.add(e.createFileDiagnostic(d,y.start,y.length,e.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,i.out?"out":"outFile"))}if(i.outDir||i.sourceRoot||i.mapRoot){var v=u();i.outDir&&""===v&&e.forEach(oe,function(t){return e.getRootLength(t.fileName)>1})&&ge.add(e.createCompilerDiagnostic(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files))}if(!i.noEmit&&i.allowJs&&i.declaration&&ge.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"allowJs","declaration")),i.emitDecoratorMetadata&&!i.experimentalDecorators&&ge.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators")),i.jsxFactory?(i.reactNamespace&&ge.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory")),e.parseIsolatedEntityName(i.jsxFactory,_)||ge.add(e.createCompilerDiagnostic(e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,i.jsxFactory))):i.reactNamespace&&!e.isIdentifierText(i.reactNamespace,_)&&ge.add(e.createCompilerDiagnostic(e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,i.reactNamespace)),!i.noEmit&&!i.suppressOutputPathCheck){var h=m(),b=e.createFileMap(o.useCaseSensitiveFileNames()?void 0:function(e){return e.toLocaleLowerCase()});e.forEachExpectedEmitFile(h,function(e){t(e.jsFilePath,b),t(e.declarationFilePath,b)})}}function ee(t,r){he.set(e.toPath(t,ye,X),!0),ge.add(r)}var te,re,ne,ae,ie,oe=[],se=e.createMap(),ce=e.createDiagnosticCollection(),ue="number"==typeof i.maxNodeModuleJsDepth?i.maxNodeModuleJsDepth:0,_e=0,le=e.createMap(),de=e.createMap();e.performance.mark("beforeProgram"),o=o||a(i);var pe,fe,me=i.noLib,ge=e.createDiagnosticCollection(),ye=o.getCurrentDirectory(),ve=e.getSupportedExtensions(i),he=e.createFileMap(X);if(o.resolveModuleNames)fe=function(t,r){return o.resolveModuleNames(t,r).map(function(t){if(!t||void 0!==t.extension)return t;var r=e.clone(t);return r.extension=e.extensionFromPath(t.resolvedFileName),r})};else{pe=e.createModuleResolutionCache(ye,function(e){return o.getCanonicalFileName(e)});var be=function(t,r){return e.resolveModuleName(t,r,i,o,pe).resolvedModule};fe=function(e,t){return c(e,t,be)}}var ke;if(o.resolveTypeReferenceDirectives)ke=function(e,t){return o.resolveTypeReferenceDirectives(e,t)};else{var xe=function(t,r){return e.resolveTypeReferenceDirective(t,r,i,o).resolvedTypeReferenceDirective};ke=function(e,t){return c(e,t,xe)}}var De=e.createFileMap(),Se=o.useCaseSensitiveFileNames()?e.createFileMap(function(e){return e.toLowerCase()}):void 0;if(!f()){e.forEach(t,function(e){return M(e,!1)});var Ce=e.getAutomaticTypeDirectiveNames(i,o);if(Ce.length)for(var Ee=i.configFilePath?e.getDirectoryPath(i.configFilePath):o.getCurrentDirectory(),Te=e.combinePaths(Ee,"__inferred type names__.ts"),Ne=ke(Ce,Te),Ae=0;Ae<Ce.length;Ae++)H(Ce[Ae],Ne[Ae]);if(!me)if(i.lib){var we=o.getDefaultLibLocation?o.getDefaultLibLocation():e.getDirectoryPath(o.getDefaultLibFileName(i));e.forEach(i.lib,function(t){M(e.combinePaths(we,t),!0)})}else M(o.getDefaultLibFileName(i),!0)}return pe=void 0,s=void 0,te={getRootFileNames:function(){return t},getSourceFile:D,getSourceFileByPath:S,getSourceFiles:function(){return oe},getCompilerOptions:function(){return i},getSyntacticDiagnostics:E,getOptionsDiagnostics:R,getGlobalDiagnostics:L,getSemanticDiagnostics:T,getDeclarationDiagnostics:N,getTypeChecker:h,getClassifiableNames:d,getDiagnosticsProducingTypeChecker:y,getCommonSourceDirectory:u,emit:b,getCurrentDirectory:function(){return ye},getNodeCount:function(){return y().getNodeCount()},getIdentifierCount:function(){return y().getIdentifierCount()},getSymbolCount:function(){return y().getSymbolCount()},getTypeCount:function(){return y().getTypeCount()},getFileProcessingDiagnostics:function(){return ce},getResolvedTypeReferenceDirectives:function(){return se},isSourceFileFromExternalLibrary:g,dropDiagnosticsProducingTypeChecker:v},$(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),te}function _(t,r){function n(){return t.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function a(){return t.allowJs?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_allowJs_is_not_set}var i=r.extension;switch(i){case e.Extension.Ts:case e.Extension.Dts:return;case e.Extension.Tsx:return n();case e.Extension.Jsx:return n()||a();case e.Extension.Js:return a()}}var l=[];e.findConfigFile=t,e.resolveTripleslashReference=r,e.computeCommonSourceDirectoryOfFilenames=n,e.createCompilerHost=a,e.getPreEmitDiagnostics=i,e.formatDiagnostics=o,e.flattenDiagnosticMessageText=s,e.createProgram=u,e.getResolutionDiagnostic=_}(ts||(ts={}));var ts;!function(e){function t(e){if(e&&void 0!==e.enableAutoDiscovery&&void 0===e.enable){var t={enable:e.enableAutoDiscovery,include:e.include||[],exclude:e.exclude||[]};return t}return e}function r(){if(P)return P;var t=e.createMap(),r=e.createMap();return e.forEach(e.optionDeclarations,function(e){t[e.name.toLowerCase()]=e,e.shortName&&(r[e.shortName]=e.name)}),P={optionNameMap:t,shortOptionNames:r}}function n(t){var r=Object.keys(t.type).map(function(e){return"'"+e+"'"}).join(", ");return e.createCompilerDiagnostic(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--"+t.name,r)}function a(e,t,r){return h(e,k(t||""),r)}function i(t,r,n){if(void 0===r&&(r=""),r=k(r),!e.startsWith(r,"-")){if(""===r)return[];var i=r.split(",");switch(t.element.type){case"number":return e.map(i,parseInt);case"string":return e.map(i,function(e){return e||""});default:return e.filter(e.map(i,function(e){return a(t.element,e,n)}),function(e){return!!e})}}}function o(t,n){function o(t){for(var r=0;r<t.length;){var n=t[r];if(r++,64===n.charCodeAt(0))s(n.slice(1));else if(45===n.charCodeAt(0))if(n=n.slice(45===n.charCodeAt(1)?2:1).toLowerCase(),n in p&&(n=p[n]),n in d){var o=d[n];if(o.isTSConfigOnly)_.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file,o.name));else switch(t[r]||"boolean"===o.type||_.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_expects_an_argument,o.name)),o.type){case"number":c[o.name]=parseInt(t[r]),r++;break;case"boolean":var l=t[r];c[o.name]="false"!==l,"false"!==l&&"true"!==l||r++;break;case"string":c[o.name]=t[r]||"",r++;break;case"list":var f=i(o,t[r],_);c[o.name]=f||[],f&&r++;break;default:c[o.name]=a(o,t[r],_),r++}}else _.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_compiler_option_0,n));else u.push(n)}}function s(t){var r=n?n(t):e.sys.readFile(t);if(!r)return void _.push(e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,t));for(var a=[],i=0;;){for(;i<r.length&&r.charCodeAt(i)<=32;)i++;if(i>=r.length)break;var s=i;if(34===r.charCodeAt(s)){for(i++;i<r.length&&34!==r.charCodeAt(i);)i++;i<r.length?(a.push(r.substring(s+1,i)),i++):_.push(e.createCompilerDiagnostic(e.Diagnostics.Unterminated_quoted_string_in_response_file_0,t))}else{for(;r.charCodeAt(i)>32;)i++;a.push(r.substring(s,i))}}o(a)}var c={},u=[],_=[],l=r(),d=l.optionNameMap,p=l.shortOptionNames;return o(t),{options:c,fileNames:u,errors:_}}function s(t,r){var n="";try{n=r(t)}catch(a){return{error:e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,a.message)}}return c(t,n)}function c(t,r,n){void 0===n&&(n=!0);try{var a=n?_(r):r;return{config:/\S/.test(a)?JSON.parse(a):{}}}catch(i){return{error:e.createCompilerDiagnostic(e.Diagnostics.Failed_to_parse_file_0_Colon_1,t,i.message)}}}function u(t,n){function a(e){return"string"===e.type||"number"===e.type||"boolean"===e.type?void 0:"list"===e.type?a(e.element):e.type}function i(e,t){for(var r in t)if(t[r]===e)return r}function o(t){var n=e.createMap(),o=r().optionNameMap;for(var s in t)if(e.hasProperty(t,s))switch(s){case"init":case"watch":case"version":case"help":case"project":break;default:var c=t[s],u=o[s.toLowerCase()];if(u){var _=a(u);if(_)if("list"===u.type){for(var l=[],d=0,p=c;d<p.length;d++){var f=p[d];l.push(i(f,_))}n[s]=l}else n[s]=i(c,_);else n[s]=c}}return n}var s=e.extend(t,e.defaultInitCompilerOptions),c={compilerOptions:o(s)};return n&&n.length&&(c.files=n),c}function _(t){for(var r,n="",a=e.createScanner(1,!1,0,t);1!==(r=a.scan());)switch(r){case 2:case 3:n+=a.getTokenText().replace(/\S/g," ");break;default:n+=a.getTokenText()}return n}function l(t,r,n,a,i,o,c){function u(a){if(!(e.isRootedDiskPath(a)||e.startsWith(e.normalizeSlashes(a),"./")||e.startsWith(e.normalizeSlashes(a),"../")))return void p.push(e.createCompilerDiagnostic(e.Diagnostics.A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not,a));var i=e.toPath(a,n,f);if(!r.fileExists(i)&&!e.endsWith(i,".json")&&(i+=".json",!r.fileExists(i)))return void p.push(e.createCompilerDiagnostic(e.Diagnostics.File_0_does_not_exist,a));var c=s(i,function(e){return r.readFile(e)});if(c.error)return void p.push(c.error);var u=e.getDirectoryPath(i),_=e.convertToRelativePath(u,n,f),d=function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(_,t)},m=l(c.config,r,u,void 0,e.getBaseFileName(i),o.concat([y]));p.push.apply(p,m.errors);var g=e.map(["include","exclude","files"],function(r){if(!t[r]&&c.config[r])return e.map(c.config[r],d)}),v=g[0],h=g[1],b=g[2];return[v,h,b,m.options]}function _(a){var s;e.hasProperty(t,"files")&&(e.isArray(t.files)?(s=t.files,0===s.length&&a.push(e.createCompilerDiagnostic(e.Diagnostics.The_files_list_in_config_file_0_is_empty,i||"tsconfig.json"))):a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"files","Array")));var u;e.hasProperty(t,"include")&&(e.isArray(t.include)?u=t.include:a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"include","Array")));var _;if(e.hasProperty(t,"exclude"))e.isArray(t.exclude)?_=t.exclude:a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"exclude","Array"));else if(e.hasProperty(t,"excludes"))a.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));else{_=u?[]:["node_modules","bower_components","jspm_packages"];var l=t.compilerOptions&&t.compilerOptions.outDir;l&&_.push(l)}void 0===s&&void 0===u&&(u=["**/*"]);var d=x(s,u,_,n,v,r,a,c);return 0!==d.fileNames.length||e.hasProperty(t,"files")||0!==o.length||a.push(e.createCompilerDiagnostic(e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,i||"tsconfig.json",JSON.stringify(u||[]),JSON.stringify(_||[]))),d}void 0===a&&(a={}),void 0===o&&(o=[]),void 0===c&&(c=[]);var p=[],f=e.createGetCanonicalFileName(r.useCaseSensitiveFileNames),y=e.toPath(i||"",n,f);if(o.indexOf(y)>=0)return{options:{},fileNames:[],typeAcquisition:{},raw:t,errors:[e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,o.concat([y]).join(" -> "))],wildcardDirectories:{}};var v=m(t.compilerOptions,n,p,i),h=t.typeAcquisition||t.typingOptions,b=g(h,n,p,i);if(t["extends"]){var k=[void 0,void 0,void 0,{}],D=k[0],S=k[1],C=k[2],E=k[3];"string"==typeof t["extends"]?(P=u(t["extends"])||[D,S,C,E],D=P[0],S=P[1],C=P[2],E=P[3]):p.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string")),D&&!t.include&&(t.include=D),S&&!t.exclude&&(t.exclude=S),C&&!t.files&&(t.files=C),v=e.assign({},E,v)}v=e.extend(a,v),v.configFilePath=i;var T=_(p),N=T.fileNames,A=T.wildcardDirectories,w=d(t,n,p);return{options:v,fileNames:N,typeAcquisition:b,raw:t,errors:p,wildcardDirectories:A,compileOnSave:w};var P}function d(t,r,n){if(!e.hasProperty(t,e.compileOnSaveCommandLineOption.name))return!1;var a=v(e.compileOnSaveCommandLineOption,t.compileOnSave,r,n);return!("boolean"!=typeof a||!a)&&a}function p(e,t,r){var n=[],a=m(e,t,n,r);return{options:a,errors:n}}function f(e,t,r){var n=[],a=g(e,t,n,r);return{options:a,errors:n}}function m(t,r,n,a){var i="jsconfig.json"===e.getBaseFileName(a)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0}:{};return y(e.optionDeclarations,t,r,i,e.Diagnostics.Unknown_compiler_option_0,n),i}function g(r,n,a,i){var o={enable:"jsconfig.json"===e.getBaseFileName(i),include:[],exclude:[]},s=t(r);return y(e.typeAcquisitionDeclarations,s,n,o,e.Diagnostics.Unknown_type_acquisition_option_0,a),o}function y(t,r,n,a,i,o){if(r){var s=e.arrayToMap(t,function(e){return e.name});for(var c in r)if(c in s){var u=s[c];a[u.name]=v(u,r[c],n,o)}else o.push(e.createCompilerDiagnostic(i,c))}}function v(t,r,n,a){var i=t.type,o="string"==typeof i?i:"string";return"list"===i&&e.isArray(r)?b(t,r,n,a):typeof r===o?"string"!=typeof i?h(t,r,a):(t.isFilePath&&(r=e.normalizePath(e.combinePaths(n,r)),""===r&&(r=".")),r):void a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,o))}function h(e,t,r){var a=t.toLowerCase();return a in e.type?e.type[a]:void r.push(n(e))}function b(t,r,n,a){return e.filter(e.map(r,function(e){return v(t.element,e,n,a)}),function(e){return!!e})}function k(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}function x(t,r,n,a,i,o,s,c){a=e.normalizePath(a);var u=o.useCaseSensitiveFileNames?A:w,_=e.createMap(),l=e.createMap();r&&(r=D(r,s,!1)),n&&(n=D(n,s,!0));var d=S(r,n,a,o.useCaseSensitiveFileNames),p=e.getSupportedExtensions(i,c);if(t)for(var f=0,m=t;f<m.length;f++){var g=m[f],y=e.combinePaths(a,g);_[u(y)]=y}if(r&&r.length>0)for(var v=0,h=o.readDirectory(a,p,n,r);v<h.length;v++){var y=h[v];if(!E(y,_,l,p,u)){T(y,l,p,u);var b=u(y);b in _||b in l||(l[b]=y)}}var k=e.reduceProperties(_,N,[]),x=e.reduceProperties(l,N,[]);return x.sort(o.useCaseSensitiveFileNames?e.compareStrings:e.compareStringsCaseInsensitive),{fileNames:k.concat(x),wildcardDirectories:d}}function D(t,r,n){for(var a=[],i=0,o=t;i<o.length;i++){var s=o[i];!n&&F.test(s)?r.push(e.createCompilerDiagnostic(e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,s)):O.test(s)?r.push(e.createCompilerDiagnostic(e.Diagnostics.File_specification_cannot_contain_multiple_recursive_directory_wildcards_Asterisk_Asterisk_Colon_0,s)):I.test(s)?r.push(e.createCompilerDiagnostic(e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,s)):a.push(s)}return a}function S(t,r,n,a){var i=e.getRegularExpressionForWildcard(r,n,"exclude"),o=i&&new RegExp(i,a?"":"i"),s=e.createMap();if(void 0!==t){for(var c=[],u=0,_=t;u<_.length;u++){var l=_[u],d=e.normalizePath(e.combinePaths(n,l));if(!o||!o.test(d)){var p=C(d,a);if(p){var f=p.key,m=p.flags,g=s[f];(void 0===g||g<m)&&(s[f]=m,1===m&&c.push(f))}}}for(var f in s)for(var y=0,v=c;y<v.length;y++){var h=v[y];f!==h&&e.containsPath(h,f,n,!a)&&delete s[f]}}return s}function C(t,r){var n=L.exec(t);return n?{key:r?n[0]:n[0].toLowerCase(),flags:R.test(t)?1:0}:e.isImplicitGlob(t)?{key:t,flags:1}:void 0}function E(t,r,n,a,i){for(var o=e.getExtensionPriority(t,a),s=e.adjustExtensionPriority(o),c=0;c<s;c++){var u=a[c],_=i(e.changeExtension(t,u));if(_ in r||_ in n)return!0}return!1}function T(t,r,n,a){for(var i=e.getExtensionPriority(t,n),o=e.getNextLowestExtensionPriority(i),s=o;s<n.length;s++){var c=n[s],u=a(e.changeExtension(t,c));delete r[u]}}function N(e,t){return e.push(t),e}function A(e){return e}function w(e){return e.toLowerCase()}e.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean"},e.optionDeclarations=[{name:"charset",type:"string"},e.compileOnSaveCommandLineOption,{name:"declaration",shortName:"d",type:"boolean",description:e.Diagnostics.Generates_corresponding_d_ts_file},{name:"declarationDir",type:"string",isFilePath:!0,paramType:e.Diagnostics.DIRECTORY},{name:"diagnostics",type:"boolean"},{name:"extendedDiagnostics",type:"boolean",experimental:!0},{name:"emitBOM",type:"boolean"},{name:"help",shortName:"h",type:"boolean",description:e.Diagnostics.Print_this_message},{name:"help",shortName:"?",type:"boolean"},{name:"init",type:"boolean",description:e.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file},{name:"inlineSourceMap",type:"boolean"},{name:"inlineSources",type:"boolean"},{name:"jsx",type:e.createMap({preserve:1,react:2}),paramType:e.Diagnostics.KIND,description:e.Diagnostics.Specify_JSX_code_generation_Colon_preserve_or_react},{name:"reactNamespace",type:"string",description:e.Diagnostics.Specify_the_object_invoked_for_createElement_and_spread_when_targeting_react_JSX_emit},{name:"jsxFactory",type:"string",description:e.Diagnostics.Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h},{name:"listFiles",type:"boolean"},{name:"locale",type:"string"},{name:"mapRoot",type:"string",isFilePath:!0,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations,paramType:e.Diagnostics.LOCATION},{name:"module",shortName:"m",type:e.createMap({none:e.ModuleKind.None,commonjs:e.ModuleKind.CommonJS,amd:e.ModuleKind.AMD,system:e.ModuleKind.System,umd:e.ModuleKind.UMD,es6:e.ModuleKind.ES2015,es2015:e.ModuleKind.ES2015}),description:e.Diagnostics.Specify_module_code_generation_Colon_commonjs_amd_system_umd_or_es2015,paramType:e.Diagnostics.KIND},{name:"newLine",type:e.createMap({crlf:0,lf:1}),description:e.Diagnostics.Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix,paramType:e.Diagnostics.NEWLINE},{name:"noEmit",type:"boolean",description:e.Diagnostics.Do_not_emit_outputs},{name:"noEmitHelpers",type:"boolean"},{name:"noEmitOnError",type:"boolean",description:e.Diagnostics.Do_not_emit_outputs_if_any_errors_were_reported},{name:"noErrorTruncation",type:"boolean"},{name:"noImplicitAny",type:"boolean",description:e.Diagnostics.Raise_error_on_expressions_and_declarations_with_an_implied_any_type},{name:"noImplicitThis",type:"boolean",description:e.Diagnostics.Raise_error_on_this_expressions_with_an_implied_any_type},{name:"noUnusedLocals",type:"boolean",description:e.Diagnostics.Report_errors_on_unused_locals},{name:"noUnusedParameters",type:"boolean",description:e.Diagnostics.Report_errors_on_unused_parameters},{name:"noLib",type:"boolean"},{name:"noResolve",type:"boolean"},{name:"skipDefaultLibCheck",type:"boolean"},{name:"skipLibCheck",type:"boolean",description:e.Diagnostics.Skip_type_checking_of_declaration_files},{name:"out",type:"string",isFilePath:!1,paramType:e.Diagnostics.FILE},{name:"outFile",type:"string",isFilePath:!0,description:e.Diagnostics.Concatenate_and_emit_output_to_single_file,paramType:e.Diagnostics.FILE},{name:"outDir",type:"string",isFilePath:!0,description:e.Diagnostics.Redirect_output_structure_to_the_directory,paramType:e.Diagnostics.DIRECTORY},{name:"preserveConstEnums",type:"boolean",description:e.Diagnostics.Do_not_erase_const_enum_declarations_in_generated_code},{name:"pretty",description:e.Diagnostics.Stylize_errors_and_messages_using_color_and_context_experimental,type:"boolean"},{name:"project",shortName:"p",type:"string",isFilePath:!0,description:e.Diagnostics.Compile_the_project_in_the_given_directory,paramType:e.Diagnostics.DIRECTORY},{name:"removeComments",type:"boolean",description:e.Diagnostics.Do_not_emit_comments_to_output},{name:"rootDir",type:"string",isFilePath:!0,paramType:e.Diagnostics.LOCATION,description:e.Diagnostics.Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir},{name:"isolatedModules",type:"boolean"},{name:"sourceMap",type:"boolean",description:e.Diagnostics.Generates_corresponding_map_file},{name:"sourceRoot",type:"string",isFilePath:!0,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations,paramType:e.Diagnostics.LOCATION},{name:"suppressExcessPropertyErrors",type:"boolean",description:e.Diagnostics.Suppress_excess_property_checks_for_object_literals,experimental:!0},{name:"suppressImplicitAnyIndexErrors",type:"boolean",description:e.Diagnostics.Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures},{name:"stripInternal",type:"boolean",description:e.Diagnostics.Do_not_emit_declarations_for_code_that_has_an_internal_annotation,experimental:!0},{name:"target",shortName:"t",type:e.createMap({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,esnext:5}),description:e.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT,paramType:e.Diagnostics.VERSION},{name:"version",shortName:"v",type:"boolean",description:e.Diagnostics.Print_the_compiler_s_version},{name:"watch",shortName:"w",type:"boolean",description:e.Diagnostics.Watch_input_files},{name:"experimentalDecorators",type:"boolean",description:e.Diagnostics.Enables_experimental_support_for_ES7_decorators},{name:"emitDecoratorMetadata",type:"boolean",experimental:!0,description:e.Diagnostics.Enables_experimental_support_for_emitting_type_metadata_for_decorators},{name:"moduleResolution",type:e.createMap({node:e.ModuleResolutionKind.NodeJs,classic:e.ModuleResolutionKind.Classic}),description:e.Diagnostics.Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6,paramType:e.Diagnostics.STRATEGY},{name:"allowUnusedLabels",type:"boolean",description:e.Diagnostics.Do_not_report_errors_on_unused_labels},{name:"noImplicitReturns",type:"boolean",description:e.Diagnostics.Report_error_when_not_all_code_paths_in_function_return_a_value},{name:"noFallthroughCasesInSwitch",type:"boolean",description:e.Diagnostics.Report_errors_for_fallthrough_cases_in_switch_statement},{name:"allowUnreachableCode",type:"boolean",description:e.Diagnostics.Do_not_report_errors_on_unreachable_code},{name:"forceConsistentCasingInFileNames",type:"boolean",description:e.Diagnostics.Disallow_inconsistently_cased_references_to_the_same_file
},{name:"baseUrl",type:"string",isFilePath:!0,description:e.Diagnostics.Base_directory_to_resolve_non_absolute_module_names},{name:"paths",type:"object",isTSConfigOnly:!0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0}},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0}},{name:"types",type:"list",element:{name:"types",type:"string"},description:e.Diagnostics.Type_declaration_files_to_be_included_in_compilation},{name:"traceResolution",type:"boolean",description:e.Diagnostics.Enable_tracing_of_the_name_resolution_process},{name:"allowJs",type:"boolean",description:e.Diagnostics.Allow_javascript_files_to_be_compiled},{name:"allowSyntheticDefaultImports",type:"boolean",description:e.Diagnostics.Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking},{name:"noImplicitUseStrict",type:"boolean",description:e.Diagnostics.Do_not_emit_use_strict_directives_in_module_output},{name:"maxNodeModuleJsDepth",type:"number",description:e.Diagnostics.The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files},{name:"listEmittedFiles",type:"boolean"},{name:"lib",type:"list",element:{name:"lib",type:e.createMap({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",dom:"lib.dom.d.ts","dom.iterable":"lib.dom.iterable.d.ts",webworker:"lib.webworker.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","es2017.object":"lib.es2017.object.d.ts","es2017.sharedmemory":"lib.es2017.sharedmemory.d.ts","es2017.string":"lib.es2017.string.d.ts"})},description:e.Diagnostics.Specify_library_files_to_be_included_in_the_compilation_Colon},{name:"disableSizeLimit",type:"boolean"},{name:"strictNullChecks",type:"boolean",description:e.Diagnostics.Enable_strict_null_checks},{name:"importHelpers",type:"boolean",description:e.Diagnostics.Import_emit_helpers_from_tslib},{name:"alwaysStrict",type:"boolean",description:e.Diagnostics.Parse_in_strict_mode_and_emit_use_strict_for_each_source_file}],e.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean"},{name:"enable",type:"boolean"},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}}],e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:1,noImplicitAny:!1,sourceMap:!1};var P;e.convertEnableAutoDiscoveryToEnable=t,e.getOptionNameMap=r,e.createCompilerDiagnosticForInvalidCustomType=n,e.parseCustomTypeOption=a,e.parseListTypeOption=i,e.parseCommandLine=o,e.readConfigFile=s,e.parseConfigFileTextToJson=c,e.generateTSConfig=u,e.parseJsonConfigFileContent=l,e.convertCompileOnSaveOptionFromJson=d,e.convertCompilerOptionsFromJson=p,e.convertTypeAcquisitionFromJson=f;var F=/(^|\/)\*\*\/?$/,O=/(^|\/)\*\*\/(.*\/)?\*\*($|\/)/,I=/(^|\/)\*\*\/(.*\/)?\.\.($|\/)/,R=/\/[^\/]*?[*?][^\/]*\//,L=/^[^*?]*(?=\/[^\/]*[*?])/}(ts||(ts={}));var ts;!function(e){var t;!function(e){function t(e){return new r(e)}var r=function(){function e(e){this.text=e}return e.prototype.getText=function(e,t){return 0===e&&t===this.text.length?this.text:this.text.substring(e,t)},e.prototype.getLength=function(){return this.text.length},e.prototype.getChangeRange=function(){},e}();e.fromString=t}(t=e.ScriptSnapshot||(e.ScriptSnapshot={}));var r=function(){function e(){}return e}();e.TextChange=r;var n;!function(e){e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference"}(n=e.HighlightSpanKind||(e.HighlightSpanKind={}));var a;!function(e){e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart"}(a=e.IndentStyle||(e.IndentStyle={}));var i;!function(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"}(i=e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={}));var o;!function(e){e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration"}(o=e.OutputFileType||(e.OutputFileType={}));var s;!function(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"}(s=e.EndOfLineState||(e.EndOfLineState={}));var c;!function(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.StringLiteral=7]="StringLiteral",e[e.RegExpLiteral=8]="RegExpLiteral"}(c=e.TokenClass||(e.TokenClass={}));var u;!function(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="const",e.variableElement="var",e.localVariableElement="local var",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",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"}(u=e.ScriptElementKind||(e.ScriptElementKind={}));var _;!function(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.ScriptElementKindModifier||(e.ScriptElementKindModifier={}));var l=function(){function e(){}return e}();l.comment="comment",l.identifier="identifier",l.keyword="keyword",l.numericLiteral="number",l.operator="operator",l.stringLiteral="string",l.whiteSpace="whitespace",l.text="text",l.punctuation="punctuation",l.className="class name",l.enumName="enum name",l.interfaceName="interface name",l.moduleName="module name",l.typeParameterName="type parameter name",l.typeAliasName="type alias name",l.parameterName="parameter name",l.docCommentTagName="doc comment tag name",l.jsxOpenTagName="jsx open tag name",l.jsxCloseTagName="jsx close tag name",l.jsxSelfClosingTagName="jsx self closing tag name",l.jsxAttribute="jsx attribute",l.jsxText="jsx text",l.jsxAttributeStringLiteralValue="jsx attribute string literal value",e.ClassificationTypeNames=l;var d;!function(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"}(d=e.ClassificationType||(e.ClassificationType={}))}(ts||(ts={}));var ts;!function(e){function t(t){switch(t.kind){case 144:case 223:case 174:case 147:case 146:case 257:case 258:case 260:case 149:case 148:case 150:case 151:case 152:case 225:case 184:case 185:case 256:return 1;case 143:case 227:case 228:case 161:return 2;case 226:case 229:return 3;case 230:return e.isAmbientModule(t)?5:1===e.getModuleInstanceState(t)?5:4;case 238:case 239:case 234:case 235:case 240:case 241:return 7;case 261:return 5}return 7}function r(r){return 240===r.parent.kind?7:a(r)?n(r):e.isDeclarationName(r)?t(r.parent):c(r)?2:i(r)?4:1}function n(t){return e.Debug.assert(70===t.kind),141===t.parent.kind&&t.parent.right===t&&234===t.parent.parent.kind?7:4}function a(t){for(;141===t.parent.kind;)t=t.parent;return e.isInternalModuleImportEqualsDeclaration(t.parent)&&t.parent.moduleReference===t}function i(e){return o(e)||s(e)}function o(e){var t=e,r=!0;if(141===t.parent.kind){for(;t.parent&&141===t.parent.kind;)t=t.parent;r=t.right===e}return 157===t.parent.kind&&!r}function s(e){var t=e,r=!0;if(177===t.parent.kind){for(;t.parent&&177===t.parent.kind;)t=t.parent;r=t.name===e}if(!r&&199===t.parent.kind&&255===t.parent.parent.kind){var n=t.parent.parent.parent;return 226===n.kind&&107===t.parent.parent.token||227===n.kind&&84===t.parent.parent.token}return!1}function c(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),157===t.parent.kind||199===t.parent.kind&&!e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)||98===t.kind&&!e.isPartOfExpression(t)||167===t.kind}function u(e){return l(e,179)}function _(e){return l(e,180)}function l(e,t){var r=d(e);return r&&r.parent&&r.parent.kind===t&&r.parent.expression===r}function d(e){return v(e)?e.parent:e}function p(e,t){for(;e;){if(219===e.kind&&e.label.text===t)return e.label;e=e.parent}}function f(e){return 70===e.kind&&(215===e.parent.kind||214===e.parent.kind)&&e.parent.label===e}function m(e){return 70===e.kind&&219===e.parent.kind&&e.parent.label===e}function g(e){return m(e)||f(e)}function y(e){return 141===e.parent.kind&&e.parent.right===e}function v(e){return e&&e.parent&&177===e.parent.kind&&e.parent.name===e}function h(e){return 230===e.parent.kind&&e.parent.name===e}function b(t){return 70===t.kind&&e.isFunctionLike(t.parent)&&t.parent.name===t}function k(e){if(9===e.kind||8===e.kind)switch(e.parent.kind){case 147:case 146:case 257:case 260:case 149:case 148:case 151:case 152:case 230:return e.parent.name===e;case 178:return e.parent.argumentExpression===e;case 142:return!0}return!1}function x(t){return e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t}function D(t,r,n){function a(r){return e.forEach(r,function(e){if(e.pos<n&&n<e.end)return!0;if(n===e.end){var r=t.text,a=e.end-e.pos;return a<=2||47===r.charCodeAt(e.pos+1)||!(47===r.charCodeAt(e.end-1)&&42===r.charCodeAt(e.end-2))}return!1})}return n<=r.getStart(t)&&(a(e.getTrailingCommentRanges(t.text,r.getFullStart()))||a(e.getLeadingCommentRanges(t.text,r.getFullStart())))}function S(e){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 261:case 149:case 148:case 225:case 184:case 151:case 152:case 226:case 227:case 229:case 230:return e}}}function C(t){function r(t){return e.isConst(t)?e.ScriptElementKind.constElement:e.isLet(t)?e.ScriptElementKind.letElement:e.ScriptElementKind.variableElement}switch(t.kind){case 261:return e.isExternalModule(t)?e.ScriptElementKind.moduleElement:e.ScriptElementKind.scriptElement;case 230:return e.ScriptElementKind.moduleElement;case 226:case 197:return e.ScriptElementKind.classElement;case 227:return e.ScriptElementKind.interfaceElement;case 228:return e.ScriptElementKind.typeElement;case 229:return e.ScriptElementKind.enumElement;case 223:return r(t);case 174:return r(e.getRootDeclaration(t));case 185:case 225:case 184:return e.ScriptElementKind.functionElement;case 151:return e.ScriptElementKind.memberGetAccessorElement;case 152:return e.ScriptElementKind.memberSetAccessorElement;case 149:case 148:return e.ScriptElementKind.memberFunctionElement;case 147:case 146:return e.ScriptElementKind.memberVariableElement;case 155:return e.ScriptElementKind.indexSignatureElement;case 154:return e.ScriptElementKind.constructSignatureElement;case 153:return e.ScriptElementKind.callSignatureElement;case 150:return e.ScriptElementKind.constructorImplementationElement;case 143:return e.ScriptElementKind.typeParameterElement;case 260:return e.ScriptElementKind.enumMemberElement;case 144:return e.hasModifier(t,92)?e.ScriptElementKind.memberVariableElement:e.ScriptElementKind.parameterElement;case 234:case 239:case 236:case 243:case 237:return e.ScriptElementKind.alias;case 285:return e.ScriptElementKind.typeElement;default:return e.ScriptElementKind.unknown}}function E(e,t){var r=171===e.parent.kind?e.parent:e,n=t.getTypeAtLocation(r);if(n&&32&n.flags)return n}function T(t){switch(t.kind){case 98:return!0;case 70:return e.identifierIsThisKeyword(t)&&144===t.parent.kind;default:return!1}}function N(e,t){var r=t.getLineStarts(),n=t.getLineAndCharacterOfPosition(e).line;return r[n]}function A(e,t){return w(e.pos,e.end,t)}function w(e,t,r){return e<=r.pos&&t>=r.end}function P(e,t,r){return e.pos<=t&&e.end>=r}function F(e,t,r){return O(e.pos,e.end,t,r)}function O(e,t,r,n){var a=Math.max(e,r),i=Math.min(t,n);return a<i}function I(e,t,r){return e.end>t||!R(e,r)}function R(t,r){if(e.nodeIsMissing(t))return!1;switch(t.kind){case 226:case 227:case 229:case 176:case 172:case 161:case 204:case 231:case 232:case 238:case 242:return L(t,17,r);case 256:return R(t.block,r);case 180:if(!t.arguments)return!0;case 179:case 183:case 166:return L(t,19,r);case 158:case 159:return R(t.type,r);case 150:case 151:case 152:case 225:case 184:case 149:case 148:case 154:case 153:case 185:return t.body?R(t.body,r):t.type?R(t.type,r):B(t,19,r);case 230:return t.body&&R(t.body,r);case 208:return t.elseStatement?R(t.elseStatement,r):R(t.thenStatement,r);case 207:return R(t.expression,r)||B(t,24);case 175:case 173:case 178:case 142:case 163:return L(t,21,r);case 155:return t.type?R(t.type,r):B(t,21,r);case 253:case 254:return!1;case 211:case 212:case 213:case 210:return R(t.statement,r);case 209:var n=K(t,105,r);return n?L(t,19,r):R(t.statement,r);case 160:return R(t.exprName,r);case 187:case 186:case 188:case 195:case 196:var a=t;return R(a.expression,r);case 181:return R(t.template,r);case 194:var i=e.lastOrUndefined(t.templateSpans);return R(i,r);case 202:return e.nodeIsPresent(t.literal);case 241:case 235:return e.nodeIsPresent(t.moduleSpecifier);case 190:return R(t.operand,r);case 192:return R(t.right,r);case 193:return R(t.whenFalse,r);default:return!0}}function L(t,r,n){var a=t.getChildren(n);if(a.length){var i=e.lastOrUndefined(a);if(i.kind===r)return!0;if(24===i.kind&&1!==a.length)return a[a.length-2].kind===r}return!1}function M(t){var r=J(t);if(r){var n=r.getChildren(),a=e.indexOf(n,t);return{listItemIndex:a,list:r}}}function B(e,t,r){return!!K(e,t,r)}function K(t,r,n){return e.forEach(t.getChildren(n),function(e){return e.kind===r&&e})}function J(t){var r=e.forEach(t.parent.getChildren(),function(e){if(292===e.kind&&e.pos<=t.pos&&e.end>=t.end)return e});return e.Debug.assert(!r||e.contains(r.getChildren(),t)),r}function z(e,t,r){return void 0===r&&(r=!1),V(e,t,function(e){return oe(e.kind)},r)}function j(e,t,r){return void 0===r&&(r=!1),V(e,t,function(e){return se(e.kind)},r)}function V(e,t,r,n){return void 0===n&&(n=!1),q(e,t,!1,r,n)}function U(e,t,r){return void 0===r&&(r=!1),q(e,t,!0,void 0,r)}function q(t,r,n,a,i){void 0===i&&(i=!1);var o=t;e:for(;;){if(ie(o))return o;if(i)for(var s=e.filter(o.getChildren(),e.isJSDocNode),c=0,u=s;c<u.length;c++){var _=u[c],l=n?_.getFullStart():_.getStart(t,i);if(l<=r){var d=_.getEnd();if(r<d||r===d&&1===_.kind){o=_;continue e}if(a&&d===r){var p=G(r,t,_);if(p&&a(p))return p}}}for(var f=0,m=o.getChildCount(t);f<m;f++){var g=o.getChildAt(f);if(!e.isJSDocNode(g)){var l=n?g.getFullStart():g.getStart(t,i);if(l<=r){var d=g.getEnd();if(r<d||r===d&&1===g.kind){o=g;continue e}if(a&&d===r){var p=G(r,t,g);if(p&&a(p))return p}}}}return o}}function W(e,t){var r=U(e,t);return ie(r)&&t>r.getStart(e)&&t<r.getEnd()?r:G(t,e)}function H(e,t){function r(t){if(ie(t)&&t.pos===e.end)return t;for(var n=t.getChildren(),a=0,i=n;a<i.length;a++){var o=i[a],s=o.pos<=e.pos&&o.end>e.end||o.pos===e.end;if(s&&re(o))return r(o)}}return r(t)}function G(t,r,n){function a(e){if(ie(e))return e;var t=e.getChildren(),r=o(t,t.length);return r&&a(r)}function i(s){if(ie(s))return s;for(var c=s.getChildren(),u=0,_=c.length;u<_;u++){var l=c[u];if(t<l.end&&(re(l)||10===l.kind)){var d=l.getStart(r),p=d>=t||10===l.kind&&d===l.end;if(p){var f=o(c,u);return f&&a(f)}return i(l)}}if(e.Debug.assert(void 0!==n||261===s.kind),c.length){var f=o(c,c.length);return f&&a(f)}}function o(e,t){for(var r=t-1;r>=0;r--)if(re(e[r]))return e[r]}return i(n||r)}function X(e,t){var r=G(t,e);if(r&&9===r.kind){var n=r.getStart(),a=r.getEnd();if(n<t&&t<a)return!0;if(t===a)return!!r.isUnterminated}return!1}function Q(e,t){return $(e,t,void 0)}function Y(e,t){var r=U(e,t);return!!r&&(10===r.kind||(26===r.kind&&10===r.parent.kind||(26===r.kind&&252===r.parent.kind||(!(!r||17!==r.kind||252!==r.parent.kind)||26===r.kind&&249===r.parent.kind))))}function Z(t,r){var n=U(t,r);return e.isTemplateLiteralKind(n.kind)&&r>n.getStart(t)}function $(t,r,n){var a=U(t,r);if(a&&r<=a.getStart(t)){var i=e.getLeadingCommentRanges(t.text,a.pos);return n?e.forEach(i,function(e){return e.pos<r&&(2==e.kind?r<=e.end:r<e.end)&&n(e)}):e.forEach(i,function(e){return e.pos<r&&(2==e.kind?r<=e.end:r<e.end)})}return!1}function ee(t,r){function n(e){var r=t.text;return r.length>=e.pos+3&&"/"===r[e.pos]&&"*"===r[e.pos+1]&&"*"===r[e.pos+2]}var a=U(t,r),i=e.getLeadingCommentRanges(t.text,a.pos);return e.forEach(i,n)}function te(t,r){var n=e.getTokenAtPosition(t,r);if(ie(n))switch(n.kind){case 103:case 109:case 75:n=void 0===n.parent?void 0:n.parent.parent;break;default:n=n.parent}if(n&&n.jsDoc)for(var a=0,i=n.jsDoc;a<i.length;a++){var o=i[a];if(o.tags)for(var s=0,c=o.tags;s<c.length;s++){var u=c[s];if(u.pos<=r&&r<=u.end)return u}}}function re(e){return 0!==e.getWidth()}function ne(t){var r=e.getCombinedModifierFlags(t),n=[];return 8&r&&n.push(e.ScriptElementKindModifier.privateMemberModifier),16&r&&n.push(e.ScriptElementKindModifier.protectedMemberModifier),4&r&&n.push(e.ScriptElementKindModifier.publicMemberModifier),32&r&&n.push(e.ScriptElementKindModifier.staticModifier),128&r&&n.push(e.ScriptElementKindModifier.abstractModifier),1&r&&n.push(e.ScriptElementKindModifier.exportedModifier),e.isInAmbientContext(t)&&n.push(e.ScriptElementKindModifier.ambientModifier),n.length>0?n.join(","):e.ScriptElementKindModifier.none}function ae(t){return 157===t.kind||179===t.kind?t.typeArguments:e.isFunctionLike(t)||226===t.kind||227===t.kind?t.typeParameters:void 0}function ie(e){return e.kind>=0&&e.kind<=140}function oe(t){return 70===t||e.isKeyword(t)}function se(e){return 9===e||8===e||oe(e)}function ce(e){return 2===e||3===e}function ue(t){return!(9!==t&&11!==t&&!e.isTemplateLiteralKind(t))}function _e(e){return 16<=e&&e<=69}function le(t,r){return e.isTemplateLiteralKind(t.kind)&&t.getStart()<r&&r<t.getEnd()||!!t.isUnterminated&&r===t.getEnd()}function de(e){switch(e){case 113:case 111:case 112:return!0}return!1}function pe(e,t){for(var r in e)if("object"==typeof e[r]){if(!pe(e[r],t[r]))return!1}else if("function"!=typeof e[r]&&e[r]!==t[r])return!1;return!0}function fe(e){if(175===e.kind||176===e.kind){if(192===e.parent.kind&&e.parent.left===e&&57===e.parent.operatorToken.kind)return!0;if(213===e.parent.kind&&e.parent.initializer===e)return!0;if(fe(257===e.parent.kind?e.parent.parent:e.parent))return!0}return!1}function me(e){var t=e.charAt(e.length-1);return"/"===t||"\\"===t}function ge(e,t){function r(t){var r=e.text.substring(t.pos,t.end);return he.test(r)}return $(e,t,r)}function ye(e,t){function r(t){var r=e.text.substring(t.pos,t.end);return!he.test(r)}return $(e,t,r)}e.scanner=e.createScanner(5,!0),e.emptyArray=[];var ve;!function(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"}(ve=e.SemanticMeaning||(e.SemanticMeaning={})),e.getMeaningFromDeclaration=t,e.getMeaningFromLocation=r,e.isCallExpressionTarget=u,e.isNewExpressionTarget=_,e.climbPastPropertyAccess=d,e.getTargetLabel=p,e.isJumpStatementTarget=f,e.isLabelName=g,e.isRightSideOfQualifiedName=y,e.isRightSideOfPropertyAccess=v,e.isNameOfModuleDeclaration=h,e.isNameOfFunctionDeclaration=b,e.isLiteralNameOfPropertyDeclarationOrIndexAccess=k,e.isExpressionOfExternalModuleImportEqualsDeclaration=x,e.isInsideComment=D,e.getContainerNode=S,e.getNodeKind=C,e.getStringLiteralTypeForNode=E,e.isThis=T;var he=/^\/\/\/\s*</;e.getLineStartPositionForPosition=N,e.rangeContainsRange=A,e.startEndContainsRange=w,e.rangeContainsStartEnd=P,e.rangeOverlapsWithStartEnd=F,e.startEndOverlapsWithStartEnd=O,e.positionBelongsToNode=I,e.isCompletedNode=R,e.findListItemInfo=M,e.hasChildOfKind=B,e.findChildOfKind=K,e.findContainingList=J,e.getTouchingWord=z,e.getTouchingPropertyName=j,e.getTouchingToken=V,e.getTokenAtPosition=U,e.findTokenOnLeftOfPosition=W,e.findNextToken=H,e.findPrecedingToken=G,e.isInString=X,e.isInComment=Q,e.isInsideJsxElementOrAttribute=Y,e.isInTemplateString=Z,e.isInCommentHelper=$,e.hasDocComment=ee,e.getJsDocTagAtPosition=te,e.getNodeModifiers=ne,e.getTypeArgumentOrTypeParameterList=ae,e.isToken=ie,e.isWord=oe,e.isComment=ce,e.isStringOrRegularExpressionOrTemplateLiteral=ue,e.isPunctuation=_e,e.isInsideTemplateLiteral=le,e.isAccessibilityModifier=de,e.compareDataObjects=pe,e.isArrayLiteralOrObjectLiteralDestructuringPattern=fe,e.hasTrailingDirectorySeparator=me,e.isInReferenceComment=ge,e.isInNonReferenceComment=ye}(ts||(ts={})),function(e){function t(e){return e.declarations&&e.declarations.length>0&&144===e.declarations[0].kind}function r(){function t(){if(u){var t=e.getIndentString(_);t&&c.push(a(t,e.SymbolDisplayPartKind.space)),u=!1}}function r(e,r){t(),c.push(a(e,r))}function i(e,r){t(),c.push(n(e,r))}function o(){c.push(d()),u=!0}function s(){c=[],u=!0,_=0}var c,u,_;return s(),{displayParts:function(){return c},writeKeyword:function(t){return r(t,e.SymbolDisplayPartKind.keyword)},writeOperator:function(t){return r(t,e.SymbolDisplayPartKind.operator)},writePunctuation:function(t){return r(t,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(t){return r(t,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(t){return r(t,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(t){return r(t,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(t){return r(t,e.SymbolDisplayPartKind.propertyName)},writeSymbol:i,writeLine:o,increaseIndent:function(){_++},decreaseIndent:function(){_--},clear:s,trackSymbol:e.noop,reportInaccessibleThisError:e.noop}}function n(r,n){function i(r){var n=r.flags;return 3&n?t(r)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:4&n?e.SymbolDisplayPartKind.propertyName:32768&n?e.SymbolDisplayPartKind.propertyName:65536&n?e.SymbolDisplayPartKind.propertyName:8&n?e.SymbolDisplayPartKind.enumMemberName:16&n?e.SymbolDisplayPartKind.functionName:32&n?e.SymbolDisplayPartKind.className:64&n?e.SymbolDisplayPartKind.interfaceName:384&n?e.SymbolDisplayPartKind.enumName:1536&n?e.SymbolDisplayPartKind.moduleName:8192&n?e.SymbolDisplayPartKind.methodName:262144&n?e.SymbolDisplayPartKind.typeParameterName:524288&n?e.SymbolDisplayPartKind.aliasName:8388608&n?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}return a(r,i(n))}function a(t,r){return{text:t,kind:e.SymbolDisplayPartKind[r]}}function i(){return a(" ",e.SymbolDisplayPartKind.space)}function o(t){return a(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function s(t){return a(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation)}function c(t){return a(e.tokenToString(t),e.SymbolDisplayPartKind.operator)}function u(t){var r=e.stringToToken(t);return void 0===r?_(t):o(r)}function _(t){return a(t,e.SymbolDisplayPartKind.text)}function l(e){return e.getNewLine?e.getNewLine():S}function d(){return a("\n",e.SymbolDisplayPartKind.lineBreak)}function p(e){e(D);var t=D.displayParts();return D.clear(),t}function f(e,t,r,n){return p(function(a){e.getSymbolDisplayBuilder().buildTypeDisplay(t,a,r,n)})}function m(e,t,r,n,a){return p(function(i){e.getSymbolDisplayBuilder().buildSymbolDisplay(t,i,r,n,a)})}function g(e,t,r,n){return p(function(a){e.getSymbolDisplayBuilder().buildSignatureDisplay(t,a,r,n)})}function y(t,r,n){if(v(n))return n.getText();if(e.isStringOrNumericLiteral(n)&&142===n.parent.kind)return n.text;var a=e.getLocalSymbolForExportDefault(r),i=t.symbolToString(a||r);return i}function v(e){return e.parent&&(239===e.parent.kind||243===e.parent.kind)&&e.parent.propertyName===e}function h(e){var t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&(34===e.charCodeAt(0)||39===e.charCodeAt(0))?e.substring(1,t-1):e}function b(t,r){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];var i=k(t,r);return e.forEach(n,function(e){return e===i})}function k(t,r){var n;return r&&r.getScriptKind&&(n=r.getScriptKind(t)),n||(n=e.getScriptKindFromFileName(t)),e.ensureScriptKind(t,n)}function x(t,r){for(var n={fileName:"config.js",compilerOptions:{target:2,removeComments:!0},reportDiagnostics:!0},a=e.transpileModule("("+r+")",n),i=a.outputText,o=a.diagnostics,s=i.trim(),c=0,u=o;c<u.length;c++){var _=u[c];_.start=_.start-1}var l=e.parseConfigFileTextToJson(t,s.substring(1,s.length-2),!1),d=l.config,p=l.error;return{configJsonObject:d||{},diagnostics:p?e.concatenate(o,[p]):o}}e.isFirstDeclarationOfSymbolParameter=t;var D=r();e.symbolPart=n,e.displayPart=a,e.spacePart=i,e.keywordPart=o,e.punctuationPart=s,e.operatorPart=c,e.textOrKeywordPart=u,e.textPart=_;var S="\r\n";e.getNewLineOrDefaultFromHost=l,e.lineBreakPart=d,e.mapToDisplayParts=p,e.typeToDisplayParts=f,e.symbolToDisplayParts=m,e.signatureToDisplayParts=g,e.getDeclaredName=y,e.isImportOrExportSpecifierName=v,e.stripQuotes=h,e.scriptKindIs=b,e.getScriptKind=k,e.sanitizeConfigFile=x}(ts||(ts={}));var ts;!function(e){function t(){function t(t,r){return!e.isAccessibilityModifier(t)||(124===r||133===r||122===r||114===r)}function r(t,r){for(var a=[],i=t.spans,o=0,s=0,c=i.length;s<c;s+=3){var u=i[s],_=i[s+1],l=i[s+2];if(o>=0){var d=u-o;d>0&&a.push({length:d,classification:e.TokenClass.Whitespace})}a.push({length:_,classification:n(l)}),o=u+_}var p=r.length-o;return p>0&&a.push({length:p,classification:e.TokenClass.Whitespace}),{entries:a,finalLexState:t.endOfLineState}}function n(t){switch(t){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;case 5:return e.TokenClass.Operator;case 6:return e.TokenClass.StringLiteral;case 8:return e.TokenClass.Whitespace;case 10:return e.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:default:return e.TokenClass.Identifier}}function a(e,t,n){return r(i(e,t,n),e)}function i(r,n,a){function i(){var t=_.getTokenPos(),n=_.getTextPos();if(o(t,n,u(p)),n>=r.length)if(9===p){var a=_.getTokenText();if(_.isUnterminated()){for(var i=a.length-1,s=0;92===a.charCodeAt(i-s);)s++;if(1&s){var c=a.charCodeAt(0);m.endOfLineState=34===c?3:2}}}else 3===p?_.isUnterminated()&&(m.endOfLineState=1):e.isTemplateLiteralKind(p)?_.isUnterminated()&&(15===p?m.endOfLineState=5:12===p?m.endOfLineState=4:e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+p)):d.length>0&&13===e.lastOrUndefined(d)&&(m.endOfLineState=6)}function o(e,t,r){if(8!==r){0===e&&s>0&&(e+=s),e-=s,t-=s;var n=t-e;n>0&&(m.spans.push(e),m.spans.push(n),m.spans.push(r))}}for(var s=0,p=0,f=0;d.length>0;)d.pop();switch(n){case 3:r='"\\\n'+r,s=3;break;case 2:r="'\\\n"+r,s=3;break;case 1:r="/*\n"+r,s=3;break;case 4:r="`\n"+r,s=2;break;case 5:r="}\n"+r,s=2;case 6:d.push(13)}_.setText(r);var m={endOfLineState:0,spans:[]},g=0;do{if(p=_.scan(),!e.isTrivia(p)){if(40!==p&&62!==p||l[f]){if(22===f&&c(p))p=70;else if(c(f)&&c(p)&&!t(f,p))p=70;else if(70===f&&26===p)g++;else if(28===p&&g>0)g--;else if(118===p||134===p||132===p||121===p||135===p)g>0&&!a&&(p=70);else if(13===p)d.push(p);else if(16===p)d.length>0&&d.push(p);else if(17===p&&d.length>0){var y=e.lastOrUndefined(d);13===y?(p=_.reScanTemplateToken(),15===p?d.pop():e.Debug.assert(14===p,"Should have been a template middle. Was "+p)):(e.Debug.assert(16===y,"Should have been an open brace. Was: "+p),d.pop())}}else 11===_.reScanSlashToken()&&(p=11);f=p}i()}while(1!==p);return m}function o(e){switch(e){case 38:case 40:case 41:case 36:case 37:case 44:case 45:case 46:case 26:case 28:case 29:case 30:case 92:case 91:case 117:case 31:case 32:case 33:case 34:case 47:case 49:case 48:case 52:case 53:case 68:case 67:case 69:case 64:case 65:case 66:case 58:case 59:case 60:case 62:case 63:case 57:case 25:return!0;default:return!1}}function s(e){switch(e){case 36:case 37:case 51:case 50:case 42:case 43:return!0;default:return!1}}function c(e){return e>=71&&e<=140}function u(t){if(c(t))return 3;if(o(t)||s(t))return 5;if(t>=16&&t<=69)return 10;switch(t){case 8:return 4;case 9:return 6;case 11:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 70:default:return e.isTemplateLiteralKind(t)?6:2}}var _=e.createScanner(5,!1),l=[];l[70]=!0,l[9]=!0,l[8]=!0,l[11]=!0,l[98]=!0,l[42]=!0,l[43]=!0,l[19]=!0,l[21]=!0,l[17]=!0,l[100]=!0,l[85]=!0;var d=[];return{getClassificationsForLine:a,getEncodedLexicalClassifications:i}}function r(e,t,r,n,i){return o(a(e,t,r,n,i))}function n(e,t){switch(t){case 230:case 226:case 227:case 225:e.throwIfCancellationRequested()}}function a(t,r,a,i,o){function s(e,t,r){_.push(e),_.push(t),_.push(r)}function c(t,r){function n(t){return e.forEach(t.declarations,function(t){return 230===t.kind&&1===e.getModuleInstanceState(t)})}var a=t.getFlags();if(0!==(788448&a)){if(32&a)return 11;if(384&a)return 12;if(524288&a)return 16;if(2&r){if(64&a)return 13;if(262144&a)return 15}else if(1536&a&&(4&r||1&r&&n(t)))return 14}}function u(a){if(a&&e.textSpanIntersectsWith(o,a.getFullStart(),a.getFullWidth())){var _=a.kind;if(n(r,_),70===_&&!e.nodeIsMissing(a)){var l=a;if(i[l.text]){var d=t.getSymbolAtLocation(a);if(d){var p=c(d,e.getMeaningFromLocation(a));p&&s(a.getStart(),a.getWidth(),p)}}}e.forEachChild(a,u)}}var _=[];return u(a),{spans:_,endOfLineState:0}}function i(t){switch(t){case 1:return e.ClassificationTypeNames.comment;case 2:return e.ClassificationTypeNames.identifier;case 3:return e.ClassificationTypeNames.keyword;case 4:return e.ClassificationTypeNames.numericLiteral;case 5:return e.ClassificationTypeNames.operator;case 6:return e.ClassificationTypeNames.stringLiteral;case 8:return e.ClassificationTypeNames.whiteSpace;case 9:return e.ClassificationTypeNames.text;case 10:
return e.ClassificationTypeNames.punctuation;case 11:return e.ClassificationTypeNames.className;case 12:return e.ClassificationTypeNames.enumName;case 13:return e.ClassificationTypeNames.interfaceName;case 14:return e.ClassificationTypeNames.moduleName;case 15:return e.ClassificationTypeNames.typeParameterName;case 16:return e.ClassificationTypeNames.typeAliasName;case 17:return e.ClassificationTypeNames.parameterName;case 18:return e.ClassificationTypeNames.docCommentTagName;case 19:return e.ClassificationTypeNames.jsxOpenTagName;case 20:return e.ClassificationTypeNames.jsxCloseTagName;case 21:return e.ClassificationTypeNames.jsxSelfClosingTagName;case 22:return e.ClassificationTypeNames.jsxAttribute;case 23:return e.ClassificationTypeNames.jsxText;case 24:return e.ClassificationTypeNames.jsxAttributeStringLiteralValue}}function o(t){e.Debug.assert(t.spans.length%3===0);for(var r=t.spans,n=[],a=0,o=r.length;a<o;a+=3)n.push({textSpan:e.createTextSpan(r[a],r[a+1]),classificationType:i(r[a+2])});return n}function s(e,t,r){return o(c(e,t,r))}function c(t,r,a){function i(e,t,r){k.push(e),k.push(t),k.push(r)}function o(t){for(h.setTextPos(t.pos);;){var n=h.getTextPos();if(!e.couldStartTrivia(r.text,n))return n;var a=h.scan(),o=h.getTextPos(),c=o-n;if(!e.isTrivia(a))return n;if(4!==a&&5!==a)if(e.isComment(a))s(t,a,n,c),h.setTextPos(o);else if(7===a){var u=r.text,_=u.charCodeAt(n);if(60===_||62===_){i(n,c,1);continue}e.Debug.assert(61===_),l(u,n,o)}}}function s(t,n,a,i){if(3===n){var o=e.parseIsolatedJSDocComment(r.text,a,i);if(o&&o.jsDoc)return o.jsDoc.parent=t,void u(o.jsDoc)}c(a,i)}function c(e,t){i(e,t,1)}function u(e){function t(e){e.preParameterName&&(c(r,e.preParameterName.pos-r),i(e.preParameterName.pos,e.preParameterName.end-e.preParameterName.pos,17),r=e.preParameterName.end),e.typeExpression&&(c(r,e.typeExpression.pos-r),g(e.typeExpression),r=e.typeExpression.end),e.postParameterName&&(c(r,e.postParameterName.pos-r),i(e.postParameterName.pos,e.postParameterName.end-e.postParameterName.pos,17),r=e.postParameterName.end)}var r=e.pos;if(e.tags)for(var n=0,a=e.tags;n<a.length;n++){var o=a[n];switch(o.pos!==r&&c(r,o.pos-r),i(o.atToken.pos,o.atToken.end-o.atToken.pos,10),i(o.tagName.pos,o.tagName.end-o.tagName.pos,18),r=o.tagName.end,o.kind){case 281:t(o);break;case 284:_(o);break;case 283:g(o.typeExpression);break;case 282:g(o.typeExpression)}r=o.end}r!==e.end&&c(r,e.end-r)}function _(e){for(var t=0,r=e.getChildren();t<r.length;t++){var n=r[t];g(n)}}function l(t,r,n){var a;for(a=r;a<n&&!e.isLineBreak(t.charCodeAt(a));a++);for(i(r,a-r,1),b.setTextPos(a);b.getTextPos()<n;)d()}function d(){var e=b.getTextPos(),t=b.scan(),r=b.getTextPos(),n=m(t);n&&i(e,r-e,n)}function p(t){if(e.isJSDocTag(t))return!0;if(e.nodeIsMissing(t))return!0;var r=f(t);if(!e.isToken(t)&&10!==t.kind&&void 0===r)return!1;var n=10===t.kind?t.pos:o(t),a=t.end-n;if(e.Debug.assert(a>=0),a>0){var s=r||m(t.kind,t);s&&i(n,a,s)}return!0}function f(e){switch(e.parent&&e.parent.kind){case 248:if(e.parent.tagName===e)return 19;break;case 249:if(e.parent.tagName===e)return 20;break;case 247:if(e.parent.tagName===e)return 21;break;case 250:if(e.parent.name===e)return 22}}function m(t,r){if(e.isKeyword(t))return 3;if((26===t||28===t)&&r&&e.getTypeArgumentOrTypeParameterList(r.parent))return 10;if(e.isPunctuation(t)){if(r){if(57===t&&(223===r.parent.kind||147===r.parent.kind||144===r.parent.kind||250===r.parent.kind))return 5;if(192===r.parent.kind||190===r.parent.kind||191===r.parent.kind||193===r.parent.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 250===r.parent.kind?24:6;if(11===t)return 6;if(e.isTemplateLiteralKind(t))return 6;if(10===t)return 23;if(70===t){if(r)switch(r.parent.kind){case 226:if(r.parent.name===r)return 11;return;case 143:if(r.parent.name===r)return 15;return;case 227:if(r.parent.name===r)return 13;return;case 229:if(r.parent.name===r)return 12;return;case 230:if(r.parent.name===r)return 14;return;case 144:if(r.parent.name===r)return e.isThisIdentifier(r)?3:17;return}return 2}}function g(a){if(a&&e.decodedTextSpanIntersectsWith(y,v,a.pos,a.getFullWidth())){n(t,a.kind);for(var i=a.getChildren(r),o=0,s=i.length;o<s;o++){var c=i[o];p(c)||g(c)}}}var y=a.start,v=a.length,h=e.createScanner(5,!1,r.languageVariant,r.text),b=e.createScanner(5,!1,r.languageVariant,r.text),k=[];return g(r),{spans:k,endOfLineState:0}}e.createClassifier=t,e.getSemanticClassifications=r,e.getEncodedSemanticClassifications=a,e.getSyntacticClassifications=s,e.getEncodedSyntacticClassifications=c}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r,n,a,p,m){function v(t,r,n){var i=[],o=e.getNameTable(t);for(var c in o)if(o[c]!==r&&!n[c]){n[c]=c;var u=s(e.unescapeIdentifier(c),a.target,!0);if(u){var _={name:u,kind:e.ScriptElementKind.warning,kindModifiers:"",sortText:"1"};i.push(_)}}return i}function h(t,n,i){var s=o(r,t,a.target,i,n);if(s)return{name:s,kind:e.SymbolDisplay.getSymbolKind(r,t,n),kindModifiers:e.SymbolDisplay.getSymbolModifiers(t),sortText:"0"}}function b(t,r,a,i){var o=e.timestamp(),s=e.createMap();if(t)for(var c=0,u=t;c<u.length;c++){var _=u[c],l=h(_,a,i);if(l){var d=e.escapeIdentifier(l.name);s[d]||(r.push(l),s[d]=d)}}return n("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(e.timestamp()-o)),s}function k(t,r){var n=e.findPrecedingToken(r,t);if(n&&9===n.kind){if(257===n.parent.kind&&176===n.parent.parent.kind&&n.parent.name===n)return x(n.parent);if(e.isElementAccessExpression(n.parent)&&n.parent.argumentExpression===n)return S(n.parent);if(235===n.parent.kind||e.isExpressionOfExternalModuleImportEqualsDeclaration(n)||e.isRequireCall(n.parent,!1))return T(n);var a=e.SignatureHelp.getContainingArgumentInfo(n,r,t);return a?D(a):C(n)}}function x(e){var t=r.getContextualType(e.parent),n=[];if(t&&(b(t.getApparentProperties(),n,e,!1),n.length))return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!0,entries:n}}function D(e){var t=[],n=[];r.getResolvedSignature(e.invocation,t);for(var a=0,i=t;a<i.length;a++){var o=i[a];if(o.parameters.length>e.argumentIndex){var s=o.parameters[e.argumentIndex];E(r.getTypeAtLocation(s.valueDeclaration),n)}}if(n.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:n}}function S(e){var t=r.getTypeAtLocation(e.expression),n=[];if(t&&(b(t.getApparentProperties(),n,e,!1),n.length))return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!0,entries:n}}function C(e){var t=r.getContextualType(e);if(t){var n=[];if(E(t,n),n.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:n}}}function E(t,r){t&&(65536&t.flags?e.forEach(t.types,function(e){return E(e,r)}):32&t.flags&&r.push({name:t.text,kindModifiers:e.ScriptElementKindModifier.none,kind:e.ScriptElementKind.variableElement,sortText:"0"}))}function T(t){var r,n=e.normalizeSlashes(t.text),i=t.getSourceFile().path,o=e.getDirectoryPath(i),s=J(t.text,t.getStart()+1);return r=z(n)||e.isRootedDiskPath(n)?a.rootDirs?A(a.rootDirs,n,o,e.getSupportedExtensions(a),!1,s,i):w(n,o,e.getSupportedExtensions(a),!1,s,i):P(n,o,s),{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:r}}function N(t,r,n,a){t=e.map(t,function(t){return e.normalizePath(e.isRootedDiskPath(t)?t:e.combinePaths(r,t))});for(var i,o=0,s=t;o<s.length;o++){var c=s[o];if(e.containsPath(c,n,r,a)){i=n.substr(c.length);break}}return e.deduplicate(e.map(t,function(t){return e.combinePaths(t,i)}))}function A(e,r,n,i,o,s,c){for(var u=a.project||t.getCurrentDirectory(),_=!(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames()),l=N(e,u,n,_),d=[],p=0,f=l;p<f.length;p++){var m=f[p];w(r,m,i,o,s,c,d)}return d}function w(r,n,a,i,o,s,_){void 0===_&&(_=[]),void 0===r&&(r=""),r=e.normalizeSlashes(r),r=e.getDirectoryPath(r),""===r&&(r="."+e.directorySeparator),r=e.ensureTrailingDirectorySeparator(r);var l=j(e.isRootedDiskPath(r)?r:e.combinePaths(n,r)),p=e.getDirectoryPath(l),f=!(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames());if(d(t,p)){var m=u(t,p,a,void 0,["./*"]);if(m){for(var g=e.createMap(),y=0,v=m;y<v.length;y++){var h=v[y];if(h=e.normalizePath(h),!s||0!==e.comparePaths(h,s,n,f)){var b=i?e.getBaseFileName(h):e.removeFileExtension(e.getBaseFileName(h));g[b]||(g[b]=!0)}}for(var k in g)_.push(K(k,e.ScriptElementKind.scriptElement,o))}var x=c(t,p);if(x)for(var D=0,S=x;D<S.length;D++){var C=S[D],E=e.getBaseFileName(e.normalizePath(C));_.push(K(E,e.ScriptElementKind.directory,o))}}return _}function P(r,n,i){var o,s=a.baseUrl,c=a.paths;if(s){var u=e.getSupportedExtensions(a),_=a.project||t.getCurrentDirectory(),l=e.isRootedDiskPath(s)?s:e.combinePaths(_,s);if(o=w(r,e.normalizePath(l),u,!1,i),c)for(var d in c)if(c.hasOwnProperty(d))if("*"===d){if(c[d])for(var p=0,f=c[d];p<f.length;p++)for(var m=f[p],g=0,y=F(r,s,m,u);g<y.length;g++){var v=y[g];o.push(K(v,e.ScriptElementKind.externalModuleName,i))}}else if(e.startsWith(d,r)){var h=c[d]&&1===c[d].length&&c[d][0];h&&o.push(K(d,e.ScriptElementKind.externalModuleName,i))}}else o=[];R(t,a,n,i,o);for(var b=0,k=O(r,n,a);b<k.length;b++){var x=k[b];o.push(K(x,e.ScriptElementKind.externalModuleName,i))}return o}function F(r,n,a,i){if(t.readDirectory){var o=e.hasZeroOrOneAsteriskCharacter(a)?e.tryParsePattern(a):void 0;if(o){var s=j(o.prefix),c=e.getDirectoryPath(s),_=e.getBaseFileName(s),l=r.indexOf(e.directorySeparator)!==-1,d=l?e.combinePaths(c,_+e.getDirectoryPath(r)):c,p=e.normalizePath(o.suffix),f=e.combinePaths(n,d),m=l?f:e.ensureTrailingDirectorySeparator(f)+_,g=p?"**/*":"./*",y=u(t,f,i,void 0,[g]);if(y){for(var v=[],h=0,b=y;h<b.length;h++){var k=b[h],x=e.normalizePath(k);if(e.endsWith(x,p)&&e.startsWith(x,m)){var D=m.length,S=x.length-D-p.length;v.push(e.removeFileExtension(x.substr(D,S)))}}return v}}}}function O(n,a,i){var o=n.indexOf(e.directorySeparator)!==-1,s=o?n.substr(0,n.lastIndexOf(e.directorySeparator)):void 0,c=e.map(r.getAmbientModules(),function(t){return e.stripQuotes(t.name)}),_=e.filter(c,function(t){return e.startsWith(t,n)});if(o){var l=e.ensureTrailingDirectorySeparator(s);_=e.map(_,function(t){return e.startsWith(n,l)?t.substr(l.length):t})}if(!i.moduleResolution||i.moduleResolution===e.ModuleResolutionKind.NodeJs)for(var d=0,p=B(t,a);d<p.length;d++){var f=p[d];if(o){if(e.startsWith(f.moduleName,s)){var m=u(t,f.moduleDir,e.supportedTypeScriptExtensions,void 0,["./*"]);if(m)for(var g=0,y=m;g<y.length;g++){var v=y[g];v=e.normalizePath(v);var h=e.removeFileExtension(e.getBaseFileName(v));_.push(h)}}}else _.push(f.moduleName)}return e.deduplicate(_)}function I(r,n){var i=e.getTokenAtPosition(r,n);if(i){var o=e.getLeadingCommentRanges(r.text,i.pos);if(o&&o.length){var s=e.forEach(o,function(e){return n>=e.pos&&n<=e.end&&e});if(s){var c={isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:[]},u=r.text.substr(s.pos,n-s.pos),_=g.exec(u);if(_){var l=_[1],d=_[2],p=_[3],f=e.getDirectoryPath(r.path);if("path"===d){var m=J(p,s.pos+l.length);c.entries=w(p,f,e.getSupportedExtensions(a),!0,m,r.path)}else{var y={start:s.pos+l.length,length:_[0].length-l.length};c.entries=R(t,a,f,y)}}return c}}}}function R(t,r,n,a,i){if(void 0===i&&(i=[]),r.types)for(var o=0,s=r.types;o<s.length;o++){var c=s[o];i.push(K(c,e.ScriptElementKind.externalModuleName,a))}else if(t.getDirectories){var u=void 0;try{u=e.getEffectiveTypeRoots(r,t)}catch(_){}if(u)for(var l=0,d=u;l<d.length;l++){var p=d[l];L(t,p,a,i)}}if(t.getDirectories)for(var f=0,m=M(n);f<m.length;f++){var g=m[f],y=e.combinePaths(e.getDirectoryPath(g),"node_modules/@types");L(t,y,a,i)}return i}function L(t,r,n,a){if(t.getDirectories&&d(t,r)){var i=c(t,r);if(i)for(var o=0,s=i;o<s.length;o++){var u=s[o];u=e.normalizePath(u),a.push(K(e.getBaseFileName(u),e.ScriptElementKind.externalModuleName,n))}}}function M(r){for(var n,a=[];;){if(n=e.findConfigFile(r,function(e){return l(t,e)},"package.json"),!n)break;a.push(n),r=e.getDirectoryPath(n);var i=e.getDirectoryPath(r);if(r===i)break;r=i}return a}function B(t,r){function n(e){try{var r=_(t,e);return r?JSON.parse(r):void 0}catch(n){return}}function a(t,r){if(t)for(var n in t)t.hasOwnProperty(n)&&!e.startsWith(n,"@types/")&&r.push(n)}var i=[];if(t.readFile&&t.fileExists)for(var o=0,s=M(r);o<s.length;o++){var c=s[o],u=n(c);if(!u)return;for(var l=e.combinePaths(e.getDirectoryPath(c),"node_modules"),d=[],p=0,f=y;p<f.length;p++){var m=f[p];a(u[m],d)}for(var g=0,v=d;g<v.length;g++){var h=v[g],b=e.combinePaths(l,h);i.push({moduleName:h,moduleDir:b})}}return i}function K(t,r,n){return{name:t,kind:r,kindModifiers:e.ScriptElementKindModifier.none,sortText:t,replacementSpan:n}}function J(t,r){var n=t.lastIndexOf(e.directorySeparator),a=n!==-1?n+1:0;return{start:r+a,length:t.length-a}}function z(e){if(e&&e.length>=2&&46===e.charCodeAt(0)){var t=e.length>=3&&46===e.charCodeAt(1)?2:1,r=e.charCodeAt(t);return 47===r||92===r}return!1}function j(t){return e.hasTrailingDirectorySeparator(t)?e.ensureTrailingDirectorySeparator(e.normalizePath(t)):e.normalizePath(t)}if(e.isInReferenceComment(p,m))return I(p,m);if(e.isInString(p,m))return k(p,m);var V=i(r,n,p,m);if(V){var U=V.symbols,q=V.isGlobalCompletion,W=V.isMemberCompletion,H=V.isNewIdentifierLocation,G=V.location,X=V.isJsDocTagName;if(X)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e.JsDoc.getAllJsDocCompletionEntries()};var Q=[];if(e.isSourceFileJavaScript(p)){var Y=b(U,Q,G,!0);e.addRange(Q,v(p,G.pos,Y))}else{if(!U||0===U.length){if(1!==p.languageVariant||!G.parent||249!==G.parent.kind)return;var Z=G.parent.parent.openingElement.tagName;Q.push({name:Z.text,kind:void 0,kindModifiers:void 0,sortText:"0"})}b(U,Q,G,!0)}return W||X||e.addRange(Q,f),{isGlobalCompletion:q,isMemberCompletion:W,isNewIdentifierLocation:H,entries:Q}}}function n(t,r,n,a,s,c){var u=i(t,r,a,s);if(u){var _=u.symbols,l=u.location,d=e.forEach(_,function(e){return o(t,e,n.target,!1,l)===c?e:void 0});if(d){var p=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,d,a,l,l,7),m=p.displayParts,g=p.documentation,y=p.symbolKind,v=p.tags;return{name:c,kindModifiers:e.SymbolDisplay.getSymbolModifiers(d),kind:y,displayParts:m,documentation:g,tags:v}}}var h=e.forEach(f,function(e){return e.name===c});if(h)return{name:c,kind:e.ScriptElementKind.keyword,kindModifiers:e.ScriptElementKindModifier.none,displayParts:[e.displayPart(c,e.SymbolDisplayPartKind.keyword)],documentation:void 0,tags:void 0}}function a(t,r,n,a,s,c){var u=i(t,r,a,s);if(u){var _=u.symbols,l=u.location;return e.forEach(_,function(e){return o(t,e,n.target,!1,l)===c?e:void 0})}}function i(t,r,n,a){function i(){if(q=!1,j=!0,V=!1,70===R.kind||141===R.kind||177===R.kind){var r=t.getSymbolAtLocation(R);if(r&&8388608&r.flags&&(r=t.getAliasedSymbol(r)),r&&1952&r.flags){var n=t.getExportsOfModule(r);e.forEach(n,function(e){t.isValidPropertyAccess(R.parent,e.name)&&W.push(e)})}}var a=t.getTypeAtLocation(R);o(a)}function o(e){if(e){for(var r=0,n=e.getApparentProperties();r<n.length;r++){var a=n[r];t.isValidPropertyAccess(R.parent,a.name)&&W.push(a)}if(S&&65536&e.flags)for(var i=e,s=0,c=i.types;s<c.length;s++){var u=c[s];o(u)}}}function s(){var r,i,o;if(r=m(O))return p(r);if(i=g(O))return f(i);if(o=y(O)){var s=void 0;if((247===o.kind||248===o.kind)&&(s=t.getJsxElementAttributesType(o)))return W=D(t.getPropertiesOfType(s),o.attributes),j=!0,V=!1,!0}j=!1,V=l(O),F!==O&&e.Debug.assert(!!F,"Expected 'contextToken' to be defined when different from 'previousToken'.");var u=F!==O?F.getStart():a,_=c(O,u,n)||n;_&&(q=261===_.kind||194===_.kind||252===_.kind||e.isStatement(_));var d=9289727;return W=t.getSymbolsInScope(_,d),!0}function c(t,r,n){for(var a=t;a&&!e.positionBelongsToNode(a,r,n);)a=a.parent;return a}function u(t){var n=e.timestamp(),a=d(t)||h(t)||b(t)||_(t);return r("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-n)),a}function _(e){if(10===e.kind)return!0;if(28===e.kind&&e.parent){if(248===e.parent.kind)return!0;if(249===e.parent.kind||247===e.parent.kind)return e.parent.parent&&246===e.parent.parent.kind}return!1}function l(e){if(e){var t=e.parent.kind;switch(e.kind){case 25:return 179===t||150===t||180===t||175===t||192===t||158===t;case 18:return 179===t||150===t||180===t||183===t||166===t;case 20:return 175===t||155===t||142===t;case 127:case 128:return!0;case 22:return 230===t;case 16:return 226===t;case 57:return 223===t||192===t;case 13:return 194===t;case 14:return 202===t;case 113:case 111:case 112:return 147===t}switch(e.getText()){case"public":case"protected":case"private":return!0}}return!1}function d(t){if(9===t.kind||11===t.kind||e.isTemplateLiteralKind(t.kind)){var r=t.getStart(),n=t.getEnd();if(r<a&&a<n)return!0;if(a===n)return!!t.isUnterminated||11===t.kind}return!1}function p(r){j=!0;var n,a;if(176===r.kind)V=!0,n=t.getContextualType(r),n=n&&n.getNonNullableType(),a=r.properties;else if(172===r.kind){V=!1;var i=e.getRootDeclaration(r.parent);if(e.isVariableLike(i)){var o=!(!i.initializer&&!i.type);o||144!==i.kind||(e.isExpression(i.parent)?o=!!t.getContextualType(i.parent):149!==i.parent.kind&&152!==i.parent.kind||(o=e.isExpression(i.parent.parent)&&!!t.getContextualType(i.parent.parent))),o&&(n=t.getTypeAtLocation(r),a=r.elements)}else e.Debug.fail("Root declaration is not variable-like.")}else e.Debug.fail("Expected object literal or binding pattern, got "+r.kind);if(!n)return!1;var s=t.getPropertiesOfType(n);return s&&s.length>0&&(W=x(s,a)),!0}function f(r){var n=238===r.kind?235:241,a=e.getAncestor(r,n),i=a.moduleSpecifier;if(!i)return!1;j=!0,V=!1;var o,s=t.getSymbolAtLocation(a.moduleSpecifier);return s&&(o=t.getExportsOfModule(s)),W=o?k(o,r.elements):e.emptyArray,!0}function m(e){if(e)switch(e.kind){case 16:case 25:var t=e.parent;if(t&&(176===t.kind||172===t.kind))return t}}function g(e){if(e)switch(e.kind){case 16:case 25:switch(e.parent.kind){case 238:case 242:return e.parent}}}function y(e){if(e){var t=e.parent;switch(e.kind){case 27:case 40:case 70:case 250:case 251:if(t&&(247===t.kind||248===t.kind))return t;if(250===t.kind)return t.parent;break;case 9:if(t&&(250===t.kind||251===t.kind))return t.parent;break;case 17:if(t&&252===t.kind&&t.parent&&250===t.parent.kind)return t.parent.parent;if(t&&251===t.kind)return t.parent}}}function v(e){switch(e){case 184:case 185:case 225:case 149:case 148:case 151:case 152:case 153:case 154:case 155:return!0}return!1}function h(e){var t=e.parent.kind;switch(e.kind){case 25:return 223===t||224===t||205===t||229===t||v(t)||226===t||197===t||227===t||173===t||228===t;case 22:return 173===t;case 55:return 174===t;case 20:return 173===t;case 18:return 256===t||v(t);case 16:return 229===t||227===t||161===t;case 24:return 146===t&&e.parent&&e.parent.parent&&(227===e.parent.parent.kind||161===e.parent.parent.kind);case 26:return 226===t||197===t||227===t||228===t||v(t);case 114:return 147===t;case 23:return 144===t||e.parent&&e.parent.parent&&173===e.parent.parent.kind;case 113:case 111:case 112:return 144===t;case 117:return 239===t||243===t||237===t;case 74:case 82:case 108:case 88:case 103:case 124:case 133:case 90:case 109:case 75:case 115:case 136:return!0}switch(e.getText()){case"abstract":case"async":case"class":case"const":case"declare":case"enum":case"function":case"interface":case"let":case"private":case"protected":case"public":case"static":case"var":case"yield":return!0}return!1}function b(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}function k(t,r){for(var n=e.createMap(),i=0,o=r;i<o.length;i++){var s=o[i];if(!(s.getStart()<=a&&a<=s.getEnd())){var c=s.propertyName||s.name;n[c.text]=!0}}return e.someProperties(n)?e.filter(t,function(e){return"default"!==e.name&&!n[e.name]}):e.filter(t,function(e){return"default"!==e.name})}function x(t,r){if(!r||0===r.length)return t;for(var n=e.createMap(),i=0,o=r;i<o.length;i++){var s=o[i];if(!(257!==s.kind&&258!==s.kind&&174!==s.kind&&149!==s.kind&&151!==s.kind&&152!==s.kind||s.getStart()<=a&&a<=s.getEnd())){var c=void 0;174===s.kind&&s.propertyName?70===s.propertyName.kind&&(c=s.propertyName.text):c=s.name.text,n[c]=!0}}return e.filter(t,function(e){return!n[e.name]})}function D(t,r){for(var n=e.createMap(),i=0,o=r;i<o.length;i++){var s=o[i];s.getStart()<=a&&a<=s.getEnd()||250===s.kind&&(n[s.name.text]=!0)}return e.filter(t,function(e){return!n[e.name]})}var S=e.isSourceFileJavaScript(n),C=!1,E=e.timestamp(),T=e.getTokenAtPosition(n,a);r("getCompletionData: Get current token: "+(e.timestamp()-E)),E=e.timestamp();var N=e.isInsideComment(n,T,a);if(r("getCompletionData: Is inside comment: "+(e.timestamp()-E)),N){e.hasDocComment(n,a)&&64===n.text.charCodeAt(a-1)&&(C=!0);var A=!1,w=e.getJsDocTagAtPosition(n,a);if(w)switch(w.tagName.pos<=a&&a<=w.tagName.end&&(C=!0),w.kind){case 283:case 281:case 282:var P=w;P.typeExpression&&(A=P.typeExpression.pos<a&&a<P.typeExpression.end)}if(C)return{symbols:void 0,isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,location:void 0,isRightOfDot:!1,isJsDocTagName:C};if(!A)return void r("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}E=e.timestamp();var F=e.findPrecedingToken(a,n);r("getCompletionData: Get previous token 1: "+(e.timestamp()-E));var O=F;if(O&&a<=O.end&&e.isWord(O.kind)){var I=e.timestamp();O=e.findPrecedingToken(O.getFullStart(),n),r("getCompletionData: Get previous token 2: "+(e.timestamp()-I))}var R=T,L=!1,M=!1,B=!1,K=e.getTouchingPropertyName(n,a);if(O){if(u(O))return void r("Returning an empty list because completion was requested in an invalid position.");var J=O.parent,z=O.kind;if(22===z)if(177===J.kind)R=O.parent.expression,L=!0;else{if(141!==J.kind)return;R=O.parent.left,L=!0}else 1===n.languageVariant&&(26===z?(M=!0,K=O):40===z&&249===O.parent.kind&&(B=!0,K=O))}var j,V,U=e.timestamp(),q=!1,W=[];if(L)i();else if(M){var H=t.getJsxIntrinsicTagNames();W=s()?H.concat(W.filter(function(e){return!!(8496063&e.flags)})):H,j=!0,V=!1}else if(B){var G=O.parent.parent.openingElement.tagName,X=t.getSymbolAtLocation(G);t.isUnknownSymbol(X)||(W=[X]),j=!0,V=!1}else if(!s())return;return r("getCompletionData: Semantic work: "+(e.timestamp()-U)),{symbols:W,isGlobalCompletion:q,isMemberCompletion:j,isNewIdentifierLocation:V,location:K,isRightOfDot:L||M,isJsDocTagName:C}}function o(t,r,n,a,i){var o=e.getDeclaredName(t,r,i);if(o){var c=o.charCodeAt(0);if(1920&r.flags&&(39===c||34===c))return}return s(o,n,a)}function s(t,r,n){if(t&&(t=e.stripQuotes(t),t&&(!n||e.isIdentifierText(t,r))))return t}function c(e,t){return p(e,e.getDirectories,t)}function u(e,t,r,n,a){return p(e,e.readDirectory,t,r,n,a)}function _(e,t){return p(e,e.readFile,t)}function l(e,t){return p(e,e.fileExists,t)}function d(t,r){try{return e.directoryProbablyExists(r,t)}catch(n){}}function p(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];try{return t&&t.apply(e,r)}catch(a){}}t.getCompletionsAtPosition=r,t.getCompletionEntryDetails=n,t.getCompletionEntrySymbol=a;for(var f=[],m=71;m<=140;m++)f.push({name:e.tokenToString(m),kind:e.ScriptElementKind.keyword,kindModifiers:e.ScriptElementKindModifier.none,sortText:"0"});var g=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,y=["dependencies","devDependencies","peerDependencies","optionalDependencies"]}(t=e.Completions||(e.Completions={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r,a,i,o){function s(t){var r=t.getStart(),n=t.getEnd();return{fileName:a.fileName,textSpan:e.createTextSpanFromBounds(r,n),kind:e.HighlightSpanKind.none}}function c(n){function a(t){if(t){for(var r=e.createMap(),n=[],a=0,i=t;a<i.length;a++)for(var o=i[a],s=0,c=o.references;s<c.length;s++){var u=c[s],_=u.fileName,l=r[_];l||(l={fileName:_,highlightSpans:[]},r[_]=l,n.push(l)),l.highlightSpans.push({textSpan:u.textSpan,kind:u.isWriteAccess?e.HighlightSpanKind.writtenReference:e.HighlightSpanKind.reference})}return n}}if(70===n.kind||98===n.kind||167===n.kind||96===n.kind||9===n.kind||e.isLiteralNameOfPropertyDeclarationOrIndexAccess(n)){var i=e.FindAllReferences.getReferencedSymbolsForNode(t,r,n,o,!1,!1,!1);return a(i)}}function u(t){function r(e,t){return void 0!==e&&e.kind===t}function i(e){return e&&e.parent}function o(t){if(t)switch(t.kind){case 89:case 81:if(r(t.parent,208))return D(t.parent);break;case 95:if(r(t.parent,216))return x(t.parent);break;case 99:if(r(t.parent,220))return k(t.parent);break;case 73:if(r(i(i(t)),221))return b(t.parent.parent);break;case 101:case 86:if(r(i(t),221))return b(t.parent);break;case 97:if(r(t.parent,218))return h(t.parent);break;case 72:case 78:if(r(i(i(i(t))),218))return h(t.parent.parent.parent);break;case 71:case 76:if(r(t.parent,215)||r(t.parent,214))return v(t.parent);break;case 87:if(r(t.parent,211)||r(t.parent,212)||r(t.parent,213))return y(t.parent);break;case 105:case 80:if(r(t.parent,210)||r(t.parent,209))return y(t.parent);break;case 122:if(r(t.parent,150))return g(t.parent);break;case 124:case 133:if(r(t.parent,151)||r(t.parent,152))return m(t.parent);break;default:if(e.isModifierKind(t.kind)&&t.parent&&(e.isDeclaration(t.parent)||205===t.parent.kind))return p(t.kind,t.parent)}}function c(t){function r(t){if(220===t.kind)n.push(t);else if(221===t.kind){var a=t;r(a.catchClause?a.catchClause:a.tryBlock),a.finallyBlock&&r(a.finallyBlock)}else e.isFunctionLike(t)||e.forEachChild(t,r)}var n=[];return r(t),n}function u(t){for(var r=t;r.parent;){var n=r.parent;if(e.isFunctionBlock(n)||261===n.kind)return n;if(221===n.kind){var a=n;if(a.tryBlock===r&&a.catchClause)return r}r=n}}function _(t){function r(t){215===t.kind||214===t.kind?n.push(t):e.isFunctionLike(t)||e.forEachChild(t,r)}var n=[];return r(t),n}function l(e,t){var r=d(t);return r&&r===e}function d(t){for(var r=t.parent;r;r=r.parent)switch(r.kind){case 218:if(214===t.kind)continue;case 211:case 212:case 213:case 210:case 209:if(!t.label||n(r,t.label.text))return r;break;default:if(e.isFunctionLike(r))return}}function p(t,n){function a(t){switch(t){case 113:return 4;case 111:return 8;case 112:return 16;case 114:return 32;case 83:return 1;case 123:return 2;case 116:return 128;default:e.Debug.fail()}}var i=n.parent;if(e.isAccessibilityModifier(t)){if(!(226===i.kind||197===i.kind||144===n.kind&&r(i,150)))return}else if(114===t){if(226!==i.kind&&197!==i.kind)return}else if(83===t||123===t){if(231!==i.kind&&261!==i.kind)return}else{if(116!==t)return;if(226!==i.kind&&226!==n.kind)return}var o,c=[],u=a(t);switch(i.kind){case 231:case 261:o=128&u?n.members.concat(n):i.statements;break;case 150:o=i.parameters.concat(i.parent.members);break;case 226:case 197:if(o=i.members,28&u){var _=e.forEach(i.members,function(e){return 150===e.kind&&e});_&&(o=o.concat(_.parameters))}else 128&u&&(o=o.concat(i));break;default:e.Debug.fail("Invalid container kind.")}return e.forEach(o,function(r){e.getModifierFlags(r)&u&&e.forEach(r.modifiers,function(e){return f(c,e,t)})}),e.map(c,s)}function f(t,r){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];return!(!r||!e.contains(n,r.kind))&&(t.push(r),!0)}function m(t){function r(t,r){var a=e.getDeclarationOfKind(t,r);a&&e.forEach(a.getChildren(),function(e){return f(n,e,124,133)})}var n=[];return r(t.symbol,151),r(t.symbol,152),e.map(n,s)}function g(t){var r=t.symbol.getDeclarations(),n=[];return e.forEach(r,function(t){e.forEach(t.getChildren(),function(e){return f(n,e,122)})}),e.map(n,s)}function y(t){var r=[];if(f(r,t.getFirstToken(),87,105,80)&&209===t.kind)for(var n=t.getChildren(),a=n.length-1;a>=0&&!f(r,n[a],105);a--);var i=_(t.statement);return e.forEach(i,function(e){l(t,e)&&f(r,e.getFirstToken(),71,76)}),e.map(r,s)}function v(e){var t=d(e);if(t)switch(t.kind){case 211:case 212:case 213:case 209:case 210:return y(t);case 218:return h(t)}}function h(t){var r=[];return f(r,t.getFirstToken(),97),e.forEach(t.caseBlock.clauses,function(n){f(r,n.getFirstToken(),72,78);var a=_(n);e.forEach(a,function(e){l(t,e)&&f(r,e.getFirstToken(),71)})}),e.map(r,s)}function b(t){var r=[];if(f(r,t.getFirstToken(),101),t.catchClause&&f(r,t.catchClause.getFirstToken(),73),t.finallyBlock){var n=e.findChildOfKind(t,86,a);f(r,n,86)}return e.map(r,s)}function k(t){var r=u(t);if(r){var n=[];return e.forEach(c(r),function(e){f(n,e.getFirstToken(),99)}),e.isFunctionBlock(r)&&e.forEachReturnStatement(r,function(e){f(n,e.getFirstToken(),95)}),e.map(n,s)}}function x(t){var n=e.getContainingFunction(t);if(n&&r(n.body,204)){var a=[];return e.forEachReturnStatement(n.body,function(e){f(a,e.getFirstToken(),95)}),e.forEach(c(n.body),function(e){f(a,e.getFirstToken(),99)}),e.map(a,s)}}function D(t){for(var n=[];r(t.parent,208)&&t.parent.elseStatement===t;)t=t.parent;for(;t;){var i=t.getChildren();f(n,i[0],89);for(var o=i.length-1;o>=0&&!f(n,i[o],81);o--);if(!r(t.elseStatement,208))break;t=t.elseStatement}for(var c=[],o=0;o<n.length;o++){if(81===n[o].kind&&o<n.length-1){for(var u=n[o],_=n[o+1],l=!0,d=_.getStart()-1;d>=u.end;d--)if(!e.isWhiteSpaceSingleLine(a.text.charCodeAt(d))){l=!1;break}if(l){c.push({fileName:S,textSpan:e.createTextSpanFromBounds(u.getStart(),_.end),kind:e.HighlightSpanKind.reference}),o++;continue}}c.push(s(n[o]))}return c}var S=a.fileName,C=o(t);if(C&&0!==C.length)return[{fileName:S,highlightSpans:C}]}var _=e.getTouchingWord(a,i);if(_)return c(_)||u(_)}function n(e,t){for(var r=e.parent;219===r.kind;r=r.parent)if(r.label.text===t)return!0;return!1}t.getDocumentHighlights=r}(t=e.DocumentHighlights||(e.DocumentHighlights={}))}(ts||(ts={}));var ts;!function(e){function t(t,r){function n(e){return"_"+e.target+"|"+e.module+"|"+e.noResolve+"|"+e.jsx+"|"+e.allowJs+"|"+e.baseUrl+"|"+JSON.stringify(e.typeRoots)+"|"+JSON.stringify(e.rootDirs)+"|"+JSON.stringify(e.paths)}function a(t,r){var n=p[t];return!n&&r&&(p[t]=n=e.createFileMap()),n}function i(){var e=Object.keys(p).filter(function(e){return e&&"_"===e.charAt(0)}).map(function(e){var t=p[e],r=[];return t.forEachValue(function(e,t){r.push({name:e,refCount:t.languageServiceRefCount,references:t.owners.slice(0)})}),r.sort(function(e,t){return t.refCount-e.refCount}),{bucket:e,sourceFiles:r}});return JSON.stringify(e,void 0,2)}function o(t,a,i,o,c){var u=e.toPath(t,r,f),_=n(a);return s(t,u,a,_,i,o,c)}function s(e,t,r,n,a,i,o){return _(e,t,r,n,a,i,!0,o)}function c(t,a,i,o,s){var c=e.toPath(t,r,f),_=n(a);return u(t,c,a,_,i,o,s)}function u(e,t,r,n,a,i,o){return _(e,t,r,n,a,i,!1,o)}function _(t,r,n,i,o,s,c,u){var _=a(i,!0),l=_.get(r);if(l)l.sourceFile.version!==s&&(l.sourceFile=e.updateLanguageServiceSourceFile(l.sourceFile,o,s,o.getChangeRange(l.sourceFile.scriptSnapshot)));else{e.Debug.assert(c,"How could we be trying to update a document that the registry doesn't have?");var d=e.createLanguageServiceSourceFile(t,o,n.target,s,!1,u);l={sourceFile:d,languageServiceRefCount:0,owners:[]},_.set(r,l)}return c&&l.languageServiceRefCount++,l.sourceFile}function l(t,a){var i=e.toPath(t,r,f),o=n(a);return d(i,o)}function d(t,r){var n=a(r,!1);e.Debug.assert(void 0!==n);var i=n.get(t);i.languageServiceRefCount--,e.Debug.assert(i.languageServiceRefCount>=0),0===i.languageServiceRefCount&&n.remove(t)}void 0===r&&(r="");var p=e.createMap(),f=e.createGetCanonicalFileName(!!t);return{acquireDocument:o,acquireDocumentWithKey:s,updateDocument:c,updateDocumentWithKey:u,releaseDocument:l,releaseDocumentWithKey:d,reportStats:i,getKeyForCompilationSettings:n}}e.createDocumentRegistry=t}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r,a,i,o,s,c){var u=e.getTouchingPropertyName(i,o,!0);if(u!==i)switch(u.kind){case 8:if(!e.isLiteralNameOfPropertyDeclarationOrIndexAccess(u))break;case 70:case 98:case 122:case 9:return n(t,r,u,a,s,c,!1)}}function n(t,r,n,a,o,u,d){function m(r){var a=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,r,n.getSourceFile(),e.getContainerNode(n),n),i=e.map(a.displayParts,function(e){return e.text}).join(""),o=r.declarations;if(o&&0!==o.length)return{containerKind:"",containerName:"",name:i,kind:a.symbolKind,fileName:o[0].getSourceFile().fileName,textSpan:e.createTextSpan(o[0].getStart(),0),
displayParts:a.displayParts}}function g(r,n){if(8388608&r.flags){var a=e.getDeclarationOfKind(r,236);if(a)return t.getAliasedSymbol(r);var i=e.forEach(r.declarations,function(e){return 239===e.kind||243===e.kind?e:void 0});if(i&&(!i.propertyName||i.propertyName===n))return 239===i.kind?t.getAliasedSymbol(r):t.getExportSpecifierLocalTargetSymbol(i)}}function y(e,t){return g(e,t)||e}function v(r){return e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent.parent)&&t.getPropertySymbolOfDestructuringAssignment(r)}function h(t){var r=e.getDeclarationOfKind(t,174);return r&&172===r.parent.kind&&!r.propertyName}function b(r){if(h(r)){var n=e.getDeclarationOfKind(r,174),a=t.getTypeAtLocation(n.parent);return a&&t.getPropertyOfType(a,n.name.text)}}function k(t,r){if(e.isImportOrExportSpecifierName(r))return r.getText();var n=e.getLocalSymbolForExportDefault(t);return t=n||t,e.stripQuotes(t.name)}function x(t){var r=t.valueDeclaration;if(r&&(184===r.kind||197===r.kind))return r;if(8196&t.flags){var n=e.forEach(t.getDeclarations(),function(t){return 8&e.getModifierFlags(t)?t:void 0});if(n)return e.getAncestor(n,226)}if(!(8388608&t.flags||h(t)||t.parent||268435456&t.flags)){var a,i=t.getDeclarations();if(i)for(var o=0,s=i;o<s.length;o++){var c=s[o],u=e.getContainerNode(c);if(!u)return;if(a&&a!==u)return;if(261===u.kind&&!e.isExternalModule(u))return;a=u}return a}}function D(t,n,a,i){var o=[];if(!n||!n.length)return o;for(var s=t.text,c=s.length,u=n.length,_=s.indexOf(n,a);_>=0&&(r.throwIfCancellationRequested(),!(_>i));){var l=_+u;0!==_&&e.isIdentifierPart(s.charCodeAt(_-1),5)||l!==c&&e.isIdentifierPart(s.charCodeAt(l),5)||o.push(_),_=s.indexOf(n,_+u+1)}return o}function S(t,n){var a=[],i=t.getSourceFile(),o=n.text,s=D(i,o,t.getStart(),t.getEnd());e.forEach(s,function(t){r.throwIfCancellationRequested();var s=e.getTouchingWord(i,t);s&&s.getWidth()===o.length&&(s===n||e.isJumpStatementTarget(s)&&e.getTargetLabel(s,o)===n)&&a.push(c(s))});var u={containerKind:"",containerName:"",fileName:n.getSourceFile().fileName,kind:e.ScriptElementKind.label,name:o,textSpan:e.createTextSpanFromBounds(n.getStart(),n.getEnd()),displayParts:[e.displayPart(o,e.SymbolDisplayPartKind.text)]};return[{definition:u,references:a}]}function C(t,r){if(t)switch(t.kind){case 70:return t.getWidth()===r.length;case 9:if(e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t)||f(t))return t.getWidth()===r.length+2;break;case 8:if(e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t))return t.getWidth()===r.length}return!1}function E(n,a,i,o,s,u,l,f,g){function v(){if(d){var e=h(o);if(e){var r=t.getTypeAtLocation(e.expression);if(r){if(r.symbol&&96&r.symbol.flags&&r.symbol!==a.parent)return[r.symbol];if(196608&r.flags)return N(r)}}}}function h(t){return e.isRightSideOfPropertyAccess(t)&&t.parent}function b(t,r){e.Debug.assert(e.isClassLike(a.valueDeclaration));var n=r.parent;if(t===a&&e.isClassLike(n))e.Debug.assert(n.name===r),k(x(a));else{var i=p(r);i&&e.isClassLike(i)&&y(t,r)===a&&k(S(i))}}function k(t){if(t.length){var r=E(a);e.addRange(r.references,e.map(t,c))}}function x(t){for(var r=[],n=0,a=t.members.__constructor.declarations;n<a.length;n++){var i=a[n];e.Debug.assert(150===i.kind);var o=i.getChildAt(0);e.Debug.assert(122===o.kind),r.push(o)}return e.forEachProperty(t.exports,function(t){var n=t.valueDeclaration;if(n&&149===n.kind){var a=n.body;a&&_(a,98,function(t){e.isNewExpressionTarget(t)&&r.push(t)})}}),r}function S(t){var r=t.symbol,n=r.members.__constructor;if(!n)return[];for(var a=[],i=0,o=n.declarations;i<o.length;i++){var s=o[i];e.Debug.assert(150===s.kind);var c=s.body;c&&_(c,96,function(t){e.isCallExpressionTarget(t)&&a.push(t)})}return a}function E(t){var r=e.getSymbolId(t),n=g[r];return void 0===n&&(n=f.length,g[r]=n,f.push({definition:m(t),references:[]})),f[n]}function A(e,t){var r=E(t).references;d?T(e,r):r.push(c(e))}var w=n.getSourceFile(),P=l?n.getFullStart():n.getStart(),F=D(w,i,P,n.getEnd()),O=v(),I=e.createMap();if(F.length){var R=L(a,o);e.forEach(F,function(n){r.throwIfCancellationRequested();var a=e.getTouchingPropertyName(w,n);if(!C(a,i))return void(!d&&(u&&e.isInString(w,n)||l&&e.isInNonReferenceComment(w,n))&&f.push({definition:void 0,references:[{fileName:w.fileName,textSpan:e.createTextSpan(n,i.length),isWriteAccess:!1,isDefinition:!1}]}));if(e.getMeaningFromLocation(a)&s){var c=t.getSymbolAtLocation(a);if(c){var _=c.valueDeclaration,p=t.getShorthandAssignmentValueSymbol(_),m=B(R,c,a,122===o.kind,O,I);m?A(a,m):!(67108864&c.flags)&&R.indexOf(p)>=0?A(_.name,p):122===o.kind&&b(c,a)}}})}}function T(r,n){function a(t){e.forEach(n,function(e){return t.fileName===e.fileName&&t.textSpan.start===e.textSpan.start&&t.textSpan.length===e.textSpan.length})||n.push(t)}if(e.isDeclarationName(r)&&i(r.parent))n.push(c(r.parent));else if(70===r.kind){258===r.parent.kind&&s(r,t,n);var o=w(r);if(o)return void n.push(c(o));var u=A(r);if(u){var _=u.parent;e.isVariableLike(_)&&_.type===u&&_.initializer&&P(_.initializer)?a(c(_.initializer)):e.isFunctionLike(_)&&_.type===u&&_.body?204===_.body.kind?e.forEachReturnStatement(_.body,function(e){e.expression&&P(e.expression)&&a(c(e.expression))}):P(_.body)&&a(c(_.body)):e.isAssertionExpression(_)&&P(_.expression)&&a(c(_.expression))}}}function N(e,t){void 0===t&&(t=[]);for(var r=0,n=e.types;r<n.length;r++){var a=n[r];a.symbol&&96&a.symbol.getFlags()&&t.push(a.symbol),196608&a.getFlags()&&N(a,t)}return t}function A(t){for(var r=void 0;t;)e.isTypeNode(t)&&(r=t),t=t.parent;return r}function w(t){if(t&&t.parent){if(199===t.kind&&255===t.parent.kind&&e.isClassLike(t.parent.parent))return t.parent.parent;if(70===t.kind||177===t.kind)return w(t.parent)}}function P(e){return 183===e.kind?P(e.expression):185===e.kind||184===e.kind||176===e.kind||197===e.kind||175===e.kind}function F(r,n,a){function i(t){if(t===n)return!0;var r=e.getSymbolId(t)+","+e.getSymbolId(n);if(r in a)return a[r];a[r]=!1;var i=e.forEach(t.getDeclarations(),function(t){if(e.isClassLike(t)){if(s){var r=e.getClassImplementsHeritageClauseElements(t);if(r)for(var n=0,a=r;n<a.length;n++){var i=a[n];if(o(i))return!0}}return o(e.getClassExtendsHeritageClauseElement(t))}return!(227!==t.kind||!s)&&e.forEach(e.getInterfaceBaseTypeNodes(t),o)});return a[r]=i,i}function o(e){if(e){var r=t.getTypeAtLocation(e);if(r&&r.symbol)return i(r.symbol)}return!1}var s=64&n.getFlags();return i(r)}function O(t){var n=e.getSuperContainer(t,!1);if(n){var a=32;switch(n.kind){case 147:case 146:case 149:case 148:case 150:case 151:case 152:a&=e.getModifierFlags(n),n=n.parent;break;default:return}var i=[],o=n.getSourceFile(),s=D(o,"super",n.getStart(),n.getEnd());e.forEach(s,function(t){r.throwIfCancellationRequested();var s=e.getTouchingWord(o,t);if(s&&96===s.kind){var u=e.getSuperContainer(s,!1);u&&(32&e.getModifierFlags(u))===a&&u.parent.symbol===n.symbol&&i.push(c(s))}});var u=m(n.symbol);return[{definition:u,references:i}]}}function I(a,i){function o(t,n,a,i){e.forEach(a,function(a){r.throwIfCancellationRequested();var o=e.getTouchingWord(t,a);if(o&&e.isThis(o)){var s=e.getThisContainer(o,!1);switch(n.kind){case 184:case 225:n.symbol===s.symbol&&i.push(c(o));break;case 149:case 148:e.isObjectLiteralMethod(n)&&n.symbol===s.symbol&&i.push(c(o));break;case 197:case 226:s.parent&&n.symbol===s.parent.symbol&&(32&e.getModifierFlags(s))===u&&i.push(c(o));break;case 261:261!==s.kind||e.isExternalModule(s)||i.push(c(o))}}})}var s=e.getThisContainer(a,!1),u=32;switch(s.kind){case 149:case 148:if(e.isObjectLiteralMethod(s))break;case 147:case 146:case 150:case 151:case 152:u&=e.getModifierFlags(s),s=s.parent;break;case 261:if(e.isExternalModule(s))return;case 225:case 184:break;default:return}var _,l=[];if(261===s.kind)e.forEach(i,function(e){_=D(e,"this",e.getStart(),e.getEnd()),o(e,e,_,l)});else{var d=s.getSourceFile();_=D(d,"this",s.getStart(),s.getEnd()),o(d,s,_,l)}var p=t.getSymbolAtLocation(a),f=p&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,p,a.getSourceFile(),e.getContainerNode(a),a).displayParts;return[{definition:{containerKind:"",containerName:"",fileName:n.getSourceFile().fileName,kind:e.ScriptElementKind.variableElement,name:"this",textSpan:e.createTextSpanFromBounds(n.getStart(),n.getEnd()),displayParts:f},references:l}]}function R(n,a){function i(n,a,i,o){for(var s=0,u=i;s<u.length;s++){var _=u[s];r.throwIfCancellationRequested();var l=e.getTouchingWord(n,_);if(!l||9!==l.kind)return;var d=e.getStringLiteralTypeForNode(l,t);d===a&&o.push(c(l))}}var o=e.getStringLiteralTypeForNode(n,t);if(o){for(var s=[],u=0,_=a;u<_.length;u++){var l=_[u],d=D(l,o.text,l.getStart(),l.getEnd());i(l,o,d,s)}return[{definition:{containerKind:"",containerName:"",fileName:n.getSourceFile().fileName,kind:e.ScriptElementKind.variableElement,name:o.text,textSpan:e.createTextSpanFromBounds(n.getStart(),n.getEnd()),displayParts:[e.displayPart(e.getTextOfNode(n),e.SymbolDisplayPartKind.stringLiteral)]},references:s}]}}function L(r,n){var a=[r],i=l(n);if(i&&258!==i.kind){var o=v(n);o&&a.push(o)}var s=g(r,n);if(s&&(a=a.concat(L(s,n))),i){e.forEach(J(i),function(r){e.addRange(a,t.getRootSymbols(r))});var c=t.getShorthandAssignmentValueSymbol(n.parent);c&&a.push(c)}r.valueDeclaration&&144===r.valueDeclaration.kind&&e.isParameterPropertyDeclaration(r.valueDeclaration)&&(a=a.concat(t.getSymbolsOfParameterPropertyDeclaration(r.valueDeclaration,r.name)));var u=b(r);return u&&a.push(u),e.forEach(t.getRootSymbols(r),function(t){t!==r&&a.push(t),!d&&t.parent&&96&t.parent.flags&&M(t.parent,t.getName(),a,e.createMap())}),a}function M(r,n,a,i){function o(e){if(e){var o=t.getTypeAtLocation(e);if(o){var s=t.getPropertyOfType(o,n);s&&a.push.apply(a,t.getRootSymbols(s)),i[r.name]=r,M(o.symbol,n,a,i)}}}r&&(r.name in i||96&r.flags&&e.forEach(r.getDeclarations(),function(t){e.isClassLike(t)?(o(e.getClassExtendsHeritageClauseElement(t)),e.forEach(e.getClassImplementsHeritageClauseElements(t),o)):227===t.kind&&e.forEach(e.getInterfaceBaseTypeNodes(t),o)}))}function B(r,n,a,i,o,s){if(e.contains(r,n))return(!i||e.isNewExpressionTarget(a))&&n;var c=g(n,a);if(c)return B(r,c,a,i,o,s);var u=l(a);if(u){var _=e.forEach(J(u),function(n){return e.forEach(t.getRootSymbols(n),function(e){return r.indexOf(e)>=0?e:void 0})});if(_)return _;var d=v(a);if(d&&r.indexOf(d)>=0)return d}var p=b(n);return p&&r.indexOf(p)>=0?p:e.forEach(t.getRootSymbols(n),function(t){if(r.indexOf(t)>=0)return t;if(t.parent&&96&t.parent.flags){if(o&&!e.forEach(o,function(e){return F(t.parent,e,s)}))return;var n=[];return M(t.parent,t.getName(),n,e.createMap()),e.forEach(n,function(e){return r.indexOf(e)>=0?e:void 0})}})}function K(t){if(142!==t.name.kind)return t.name.text;var r=t.name.expression;return e.isStringOrNumericLiteral(r)?r.text:void 0}function J(r){var n=r.parent,a=t.getContextualType(n),i=K(r);if(i&&a){var o=[],s=a.getProperty(i);return s&&o.push(s),65536&a.flags&&e.forEach(a.types,function(e){var t=e.getProperty(i);t&&o.push(t)}),o}}function z(t,r){if(r){var n=void 0;do{n=t;for(var a=0,i=r;a<i.length;a++){var o=i[a],s=e.getMeaningFromDeclaration(o);s&t&&(t|=s)}}while(t!==n)}return t}if(!d){if(e.isLabelName(n)){if(e.isJumpStatementTarget(n)){var j=e.getTargetLabel(n.parent,n.text);return j?S(j.parent,j):void 0}return S(n.parent,n)}if(e.isThis(n))return I(n,a);if(96===n.kind)return O(n)}var V=t.getSymbolAtLocation(n);if(!d&&!V&&9===n.kind)return R(n,a);if(V){var U=V.declarations;if(U&&U.length){var q,W=z(e.getMeaningFromLocation(n),U),H=e.stripQuotes(e.getDeclaredName(t,V,n)),G=x(V),X=[];if(G)q=[],E(G,V,H,n,W,o,u,q,X);else for(var Q=k(V,n),Y=0,Z=a;Y<Z.length;Y++){var $=Z[Y];r.throwIfCancellationRequested();var ee=e.getNameTable($);void 0!==ee[Q]&&(q=q||[],E($,V,H,n,W,o,u,q,X))}return q}}}function a(t){if(t){for(var r=[],n=0,a=t;n<a.length;n++){var i=a[n];e.addRange(r,i.references)}return r}}function i(t){if(!t)return!1;if(e.isVariableLike(t)){if(t.initializer)return!0;if(223===t.kind){var r=o(t);return r&&e.hasModifier(r,2)}}else{if(e.isFunctionLike(t))return!!t.body||e.hasModifier(t,2);switch(t.kind){case 226:case 197:case 229:case 230:return!0}}return!1}function o(t){if(t.parent&&t.parent.parent&&205===t.parent.parent.kind)return e.Debug.assert(224===t.parent.kind),t.parent.parent}function s(t,r,n){var a=r.getSymbolAtLocation(t),i=r.getShorthandAssignmentValueSymbol(a.valueDeclaration);if(i)for(var o=0,s=i.getDeclarations();o<s.length;o++){var u=s[o];1&e.getMeaningFromDeclaration(u)&&n.push(c(u))}}function c(t){var r=t.getStart(),n=t.getEnd();return 9===t.kind&&(r+=1,n-=1),{fileName:t.getSourceFile().fileName,textSpan:e.createTextSpanFromBounds(r,n),isWriteAccess:u(t),isDefinition:e.isDeclarationName(t)||e.isLiteralComputedPropertyDeclarationName(t)}}function u(t){if(70===t.kind&&e.isDeclarationName(t))return!0;var r=t.parent;if(r){if(191===r.kind||190===r.kind)return!0;if(192===r.kind&&r.left===t){var n=r.operatorToken.kind;return 57<=n&&n<=69}}return!1}function _(t,r,n){e.forEachChild(t,function(e){e.kind===r&&n(e),_(e,r,n)})}function l(e){switch(e.kind){case 9:case 8:if(142===e.parent.kind)return d(e.parent.parent)?e.parent.parent:void 0;case 70:return d(e.parent)&&e.parent.name===e?e.parent:void 0}}function d(e){switch(e.kind){case 257:case 258:case 149:case 151:case 152:return!0}return!1}function p(t){return e.tryGetClassExtendingExpressionWithTypeArguments(e.climbPastPropertyAccess(t).parent)}function f(t){return 9===t.kind&&(e.isNameOfModuleDeclaration(t)||e.isExpressionOfExternalModuleImportEqualsDeclaration(t))}t.findReferencedSymbols=r,t.getReferencedSymbolsForNode=n,t.convertReferences=a,t.getReferenceEntriesForShorthandPropertyAssignment=s,t.getReferenceEntryFromNode=c}(t=e.FindAllReferences||(e.FindAllReferences={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r,n){var o=c(r.referencedFiles,n);if(o){var _=e.tryResolveScriptReference(t,r,o);if(_)return[u(o.fileName,_.fileName)]}else{var l=c(r.typeReferenceDirectives,n);if(l){var _=t.getResolvedTypeReferenceDirectives()[l.fileName];if(_&&_.resolvedFileName)return[u(l.fileName,_.resolvedFileName)]}else{var p=e.getTouchingPropertyName(r,n);if(p!==r){if(e.isJumpStatementTarget(p)){var f=p.text,m=e.getTargetLabel(p.parent,p.text);return m?[i(m,e.ScriptElementKind.label,f,void 0)]:void 0}var g=t.getTypeChecker(),y=d(g,p);if(y)return[s(g,y)];var v=g.getSymbolAtLocation(p);if(v){if(8388608&v.flags){var h=v.declarations[0];70===p.kind&&(p.parent===h||239===h.kind&&h.parent&&238===h.parent.kind)&&(v=g.getAliasedSymbol(v))}if(258===p.parent.kind){var b=g.getShorthandAssignmentValueSymbol(v.valueDeclaration);if(!b)return[];var k=b.getDeclarations(),x=e.SymbolDisplay.getSymbolKind(g,b,p),D=g.symbolToString(b),S=g.symbolToString(v.parent,p);return e.map(k,function(e){return i(e,x,D,S)})}return a(g,v,p)}}}}}function n(t,r,n){var i=e.getTouchingPropertyName(r,n);if(i!==r){var o=t.getSymbolAtLocation(i);if(o){var s=t.getTypeOfSymbolAtLocation(o,i);if(s){if(65536&s.flags&&!(16&s.flags)){var c=[];return e.forEach(s.types,function(r){r.symbol&&e.addRange(c,a(t,r.symbol,i))}),c}if(s.symbol)return a(t,s.symbol,i)}}}}function a(t,r,n){function a(t,r,n,a,i,o){if((e.isNewExpressionTarget(r)||122===r.kind)&&32&t.flags){for(var s=0,u=t.getDeclarations();s<u.length;s++){var _=u[s];if(e.isClassLike(_))return c(_.members,!0,n,a,i,o)}e.Debug.fail("Expected declaration to have at least one class-like declaration")}return!1}function s(t,r,n,a,i,o){return!!(e.isCallExpressionTarget(r)||e.isNewExpressionTarget(r)||e.isNameOfFunctionDeclaration(r))&&c(t.declarations,!1,n,a,i,o)}function c(t,r,n,a,o,s){var c,u=[];return e.forEach(t,function(e){(r&&150===e.kind||!r&&(225===e.kind||149===e.kind||148===e.kind))&&(u.push(e),e.body&&(c=e))}),c?(s.push(i(c,n,a,o)),!0):!!u.length&&(s.push(i(e.lastOrUndefined(u),n,a,o)),!0)}var u=[],_=r.getDeclarations(),l=o(t,r,n),d=l.symbolName,p=l.symbolKind,f=l.containerName;return a(r,n,p,d,f,u)||s(r,n,p,d,f,u)||e.forEach(_,function(e){u.push(i(e,p,d,f))}),u}function i(t,r,n,a){return{fileName:t.getSourceFile().fileName,textSpan:e.createTextSpanFromBounds(t.getStart(),t.getEnd()),kind:r,name:n,containerKind:void 0,containerName:a}}function o(t,r,n){return{symbolName:t.symbolToString(r),symbolKind:e.SymbolDisplay.getSymbolKind(t,r,n),containerName:r.parent?t.symbolToString(r.parent,n):""}}function s(e,t){var r=o(e,t.symbol,t),n=r.symbolName,a=r.symbolKind,s=r.containerName;return i(t,a,n,s)}function c(e,t){for(var r=0,n=e;r<n.length;r++){var a=n[r];if(a.pos<=t&&t<a.end)return a}}function u(t,r){return{fileName:r,textSpan:e.createTextSpanFromBounds(0,0),kind:e.ScriptElementKind.scriptElement,name:t,containerName:void 0,containerKind:void 0}}function _(t){var r=l(t),n=r.parent;return n&&e.isCallLikeExpression(n)&&e.getInvokedExpression(n)===r&&n}function l(t){return e.isRightSideOfPropertyAccess(t)?l(t.parent):t}function d(e,t){var r=_(t);return r&&e.getResolvedSignature(r).declaration}t.getDefinitionAtPosition=r,t.getTypeDefinitionAtPosition=n}(t=e.GoToDefinition||(e.GoToDefinition={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r,n,a){if(258===a.parent.kind){var i=[];return e.FindAllReferences.getReferenceEntriesForShorthandPropertyAssignment(a,t,i),i.length>0?i:void 0}if(96===a.kind||e.isSuperProperty(a.parent)){var o=t.getSymbolAtLocation(a);return o.valueDeclaration&&[e.FindAllReferences.getReferenceEntryFromNode(o.valueDeclaration)]}var s=e.FindAllReferences.getReferencedSymbolsForNode(t,r,a,n,!1,!1,!0),i=e.flatMap(s,function(t){return e.map(t.references,function(e){var t=e.textSpan,r=e.fileName;return{textSpan:t,fileName:r}})});return i&&i.length>0?i:void 0}t.getImplementationAtPosition=r}(t=e.GoToImplementation||(e.GoToImplementation={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t){var r=[];return a(t,function(t){var n=e.getCommentsFromJSDoc(t);if(n)for(var a=0,i=n;a<i.length;a++){var o=i[a];o&&(r.length&&r.push(e.lineBreakPart()),r.push(e.textPart(o)))}}),r}function n(t){var r=[];return a(t,function(t){var n=e.getJSDocs(t);if(n)for(var a=0,i=n;a<i.length;a++){var o=i[a],s=o.tags;s&&r.push.apply(r,s.filter(function(e){return 279===e.kind}).map(function(e){return{name:e.tagName.text,text:e.comment}}))}}),r}function a(t,r){if(t)for(var n=0,a=t.length;n<a;n++)if(e.indexOf(t,t[n])===n){var i=r(t[n],n);if(i)return i}}function i(){return u||(u=e.map(_,function(t){return{name:t,kind:e.ScriptElementKind.keyword,kindModifiers:"",sortText:"0"}}))}function o(t,r,n){if(!(e.isInString(r,n)||e.isInComment(r,n)||e.hasDocComment(r,n))){var a=e.getTokenAtPosition(r,n),i=a.getStart();if(a&&!(i<n)){var o;e:for(o=a;o;o=o.parent)switch(o.kind){case 225:case 149:case 150:case 226:case 205:break e;case 261:return;case 230:if(230===o.parent.kind)return;break e}if(o&&!(o.getStart()<n)){for(var c=s(o),u=r.getLineAndCharacterOfPosition(n),_=r.getLineStarts()[u.line],l=r.text.substr(_,u.character),d=e.hasJavaScriptFileExtension(r.fileName),p="",f=0,m=c.length;f<m;f++){var g=c[f].name,y=70===g.kind?g.text:"param"+f;p+=d?l+" * @param {any} "+y+t:l+" * @param "+y+t}var v="/**"+t+l+" * ",h=v+t+p+l+" */"+(i===n?t+l:"");return{newText:h,caretOffset:v.length}}}}}function s(t){if(e.isFunctionLike(t))return t.parameters;if(205===t.kind){var r=t,n=r.declarationList.declarations;if(1===n.length&&n[0].initializer)return c(n[0].initializer)}return e.emptyArray}function c(t){for(;183===t.kind;)t=t.expression;switch(t.kind){case 184:case 185:return t.parameters;case 197:for(var r=0,n=t.members;r<n.length;r++){var a=n[r];if(150===a.kind)return a.parameters}}return e.emptyArray}var u,_=["augments","author","argument","borrows","class","constant","constructor","constructs","default","deprecated","description","event","example","extends","field","fileOverview","function","ignore","inner","lends","link","memberOf","method","name","namespace","param","private","property","public","requires","returns","see","since","static","throws","type","typedef","property","prop","version"];t.getJsDocCommentsFromDeclarations=r,t.getJsDocTagsFromDeclarations=n,t.getAllJsDocCompletionEntries=i,t.getDocCommentTemplateAtPosition=o}(t=e.JsDoc||(e.JsDoc={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r,o,s,c,u,_){function l(e){if(e)for(var t=0,r=e;t<r.length;t++){var n=r[t];n in m||(m[n]=void 0)}}function d(r,n){t.fileExists(r)&&n.push(r);var a=e.readConfigFile(r,function(e){return t.readFile(e)});if(a.config){var i=a.config;i.dependencies&&l(e.getOwnKeys(i.dependencies)),i.devDependencies&&l(e.getOwnKeys(i.devDependencies)),i.optionalDependencies&&l(e.getOwnKeys(i.optionalDependencies)),i.peerDependencies&&l(e.getOwnKeys(i.peerDependencies))}}function p(t){var r=e.filter(t,e.hasJavaScriptFileExtension),i=e.map(r,function(t){return e.removeFileExtension(e.getBaseFileName(t.toLowerCase()))}),o=e.map(i,function(e){return e.replace(/((?:\.|-)min(?=\.|$))|((?:-|\.)\d+)/g,"")});n!==a&&l(e.filter(o,function(e){return e in n}));var s=e.forEach(t,function(t){return 2===e.ensureScriptKind(t,e.getScriptKindFromFileName(t))});s&&l(["react"])}function f(r){if(t.directoryExists(r)){for(var n=[],a=t.readDirectory(r,[".json"],void 0,void 0,2),i=0,o=a;i<o.length;i++){var s=o[i],c=e.normalizePath(s);if("package.json"===e.getBaseFileName(c)){var u=e.readConfigFile(c,function(e){return t.readFile(e)});if(u.config){var _=u.config;if((!_._requiredBy||0!==e.filter(_._requiredBy,function(e){return"#"===e[0]||"/"===e}).length)&&_.name)if(_.typings){var d=e.getNormalizedAbsolutePath(_.typings,e.getDirectoryPath(c));m[_.name]=d}else n.push(_.name)}}}l(n)}}var m=e.createMap();if(!u||!u.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};if(r=e.filter(e.map(r,e.normalizePath),function(t){var r=e.ensureScriptKind(t,e.getScriptKindFromFileName(t));return 1===r||2===r}),!n){var g=e.readConfigFile(s,function(e){return t.readFile(e)});n=g.config?e.createMap(g.config):a}var y=[],v=[],h=[];l(u.include),h=u.exclude||[];var b=e.map(r,e.getDirectoryPath);o&&b.push(o),v=e.deduplicate(b);for(var k=0,x=v;k<x.length;k++){var D=x[k],S=e.combinePaths(D,"package.json");d(S,y);var C=e.combinePaths(D,"bower.json");d(C,y);var E=e.combinePaths(D,"node_modules");f(E)}if(p(r),_)for(var T=0,N=_;T<N.length;T++){var A=N[T],w=A in i?"node":A;w in m||(m[w]=void 0)}for(var P in c)P in m&&!m[P]&&(m[P]=c[P]);for(var F=0,O=h;F<O.length;F++){var I=O[F];delete m[I]}var R=[],L=[];for(var M in m)void 0!==m[M]?L.push(m[M]):R.push(M);return{cachedTypingPaths:L,newTypingNames:R,filesToWatch:y}}var n,a=e.createMap();t.nodeCoreModuleList=["buffer","querystring","events","http","cluster","zlib","os","https","punycode","repl","readline","vm","child_process","url","dns","net","dgram","fs","path","string_decoder","tls","crypto","stream","util","assert","tty","domain","constants","process","v8","timers","console"];var i=e.arrayToMap(t.nodeCoreModuleList,function(e){return e});t.discoverTypings=r}(t=e.JsTyping||(e.JsTyping={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r,n,a,i,o){function s(t){e.Debug.assert(t.length>0);for(var r=0,n=t;r<n.length;r++){var a=n[r];if(!a.isCaseSensitive)return!1}return!0}function c(e){if(e&&(70===e.kind||9===e.kind||8===e.kind))return e.text}function u(e,t){if(e&&e.name){var r=c(e.name);if(void 0===r)return 142===e.name.kind&&_(e.name.expression,t,!0);t.unshift(r)}return!0}function _(e,t,r){var n=c(e);if(void 0!==n)return r&&t.unshift(n),!0;if(177===e.kind){var a=e;return r&&t.unshift(a.name.text),_(a.expression,t,!0)}return!1}function l(t){var r=[];if(142!==t.name.kind||_(t.name.expression,r,!1)){for(t=e.getContainerNode(t);t;){if(!u(t,r))return;t=e.getContainerNode(t)}return r}}function d(t){e.Debug.assert(t.length>0);for(var r=e.PatternMatchKind.camelCase,n=0,a=t;n<a.length;n++){var i=a[n],o=i.kind;o<r&&(r=o)}return r}function p(t,r){return t.matchKind-r.matchKind||e.compareStringsCaseInsensitive(t.name,r.name)||e.compareStrings(t.name,r.name)}function f(t){var r=t.declaration,n=e.getContainerNode(r);return{name:t.name,kind:e.getNodeKind(r),kindModifiers:e.getNodeModifiers(r),matchKind:e.PatternMatchKind[t.matchKind],isCaseSensitive:t.isCaseSensitive,fileName:t.fileName,textSpan:e.createTextSpanFromBounds(r.getStart(),r.getEnd()),containerName:n&&n.name?n.name.text:"",containerKind:n&&n.name?e.getNodeKind(n):""}}var m=e.createPatternMatcher(a),g=[];e.forEach(t,function(t){if(n.throwIfCancellationRequested(),!o||!e.fileExtensionIs(t.fileName,".d.ts")){var r=t.getNamedDeclarations();for(var a in r){var i=r[a];if(i){var c=m.getMatchesForLastSegmentOfPattern(a);if(!c)continue;for(var u=0,_=i;u<_.length;u++){var p=_[u];if(m.patternContainsDots){var f=l(p);if(!f)return;if(c=m.getMatches(f,a),!c)continue}var y=t.fileName,v=d(c);g.push({name:a,fileName:y,matchKind:v,isCaseSensitive:s(c),declaration:p})}}}}}),g=e.filter(g,function(e){var t=e.declaration;if(236===t.kind||239===t.kind||234===t.kind){var n=r.getSymbolAtLocation(t.name),a=r.getAliasedSymbol(n);return n.name!==a.name}return!0}),g.sort(p),void 0!==i&&(g=g.slice(0,i));var y=e.map(g,f);return y}t.getNavigateToItems=r}(t=e.NavigateTo||(e.NavigateTo={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t){w=t;var r=e.map(b(s(t)),x);return w=void 0,r}function n(e){w=e;var t=k(s(e));return w=void 0,t}function a(e){return e.getText(w)}function i(e){return e.node.kind}function o(e,t){e.children?e.children.push(t):e.children=[t]}function s(t){e.Debug.assert(!F.length);var r={node:t,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};P=r;for(var n=0,a=t.statements;n<a.length;n++){var i=a[n];p(i)}return l(),e.Debug.assert(!P&&!F.length),r}function c(e){o(P,u(e))}function u(e){return{node:e,additionalNodes:void 0,parent:P,children:void 0,indent:P.indent+1}}function _(e){var t=u(e);o(P,t),F.push(P),P=t}function l(){P.children&&(f(P.children),m(P.children)),P=F.pop()}function d(e,t){_(e),p(t),l()}function p(t){if(t&&!e.isToken(t))switch(t.kind){case 150:var r=t;d(r,r.body);for(var n=0,a=r.parameters;n<a.length;n++){var i=a[n];e.isParameterPropertyDeclaration(i)&&c(i)}break;case 149:case 151:case 152:case 148:e.hasDynamicName(t)||d(t,t.body);break;case 147:case 146:e.hasDynamicName(t)||c(t);break;case 236:var o=t;o.name&&c(o);var s=o.namedBindings;if(s)if(237===s.kind)c(s);else for(var u=0,f=s.elements;u<f.length;u++){var m=f[u];c(m)}break;case 174:case 223:var g=t,y=g.name;e.isBindingPattern(y)?p(y):g.initializer&&A(g.initializer)?p(g.initializer):d(g,g.initializer);break;case 185:case 225:case 184:d(t,t.body);break;case 229:_(t);for(var v=0,h=t.members;v<h.length;v++){var b=h[v];E(b)||c(b)}l();break;case 226:case 197:case 227:_(t);for(var k=0,x=t.members;k<x.length;k++){var b=x[k];p(b)}l();break;case 230:d(t,C(t).body);break;case 243:case 234:case 155:case 153:case 154:case 228:c(t);break;default:e.forEach(t.jsDoc,function(t){e.forEach(t.tags,function(e){285===e.kind&&c(e)})}),e.forEachChild(t,p)}}function f(t){function r(e,t){function r(e,t){return e.body.kind===t.body.kind&&(230!==e.body.kind||r(e.body,t.body))}return e.kind===t.kind&&(230!==e.kind||r(e,t))}function n(t,r){t.additionalNodes=t.additionalNodes||[],t.additionalNodes.push(r.node),r.additionalNodes&&(n=t.additionalNodes).push.apply(n,r.additionalNodes),t.children=e.concatenate(t.children,r.children),t.children&&(f(t.children),m(t.children));var n}var i=e.createMap();e.filterMutate(t,function(e){function t(e,t){return!!r(e.node,t.node)&&(n(e,t),!0)}var o=e.node,s=o.name&&a(o.name);if(!s)return!0;var c=i[s];if(!c)return i[s]=e,!0;if(c instanceof Array){for(var u=0,_=c;u<_.length;u++){var l=_[u];if(t(l,e))return!1}return c.push(e),!0}var l=c;return!t(l,e)&&(i[s]=[l,e],!0)})}function m(e){e.sort(g)}function g(e,t){var r=y(e.node),n=y(t.node);if(r&&n){var a=I(r,n);return 0!==a?a:i(e)-i(t)}return r?1:n?-1:i(e)-i(t)}function y(t){if(230===t.kind)return S(t);var r=t;if(r.name)return e.getPropertyNameForPropertyNameNode(r.name);switch(t.kind){case 184:case 185:case 197:return N(t);case 285:return h(t);default:return}}function v(t){if(230===t.kind)return S(t);var r=t.name;if(r){var n=a(r);if(n.length>0)return n}switch(t.kind){case 261:var i=t;return e.isExternalModule(i)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName))))+'"':"<global>";case 185:case 225:case 184:case 226:case 197:return 512&e.getModifierFlags(t)?"default":N(t);case 150:return"constructor";case 154:return"new()";case 153:return"()";case 155:return"[]";case 285:return h(t);default:return"<unknown>"}}function h(e){if(e.name)return e.name.text;var t=e.parent&&e.parent.parent;if(t&&205===t.kind&&t.declarationList.declarations.length>0){var r=t.declarationList.declarations[0].name;if(70===r.kind)return r.text}return"<typedef>"}function b(t){function r(e){if(n(e)&&(a.push(e),e.children))for(var t=0,i=e.children;t<i.length;t++){var o=i[t];r(o)}}function n(t){function r(e){if(!e.node.body)return!1;switch(i(e.parent)){case 231:case 261:case 149:case 150:return!0;default:return n(e)}}function n(t){return e.forEach(t.children,function(e){var t=i(e);return 223!==t&&174!==t})}switch(i(t)){case 226:case 197:case 229:case 227:case 230:case 261:case 228:case 285:return!0;case 150:case 149:case 151:case 152:case 223:return n(t);case 185:case 225:case 184:return r(t);default:return!1}}var a=[];return r(t),a}function k(t){return{text:v(t.node),kind:e.getNodeKind(t.node),kindModifiers:e.getNodeModifiers(t.node),spans:D(t),childItems:e.map(t.children,k)}}function x(t){function r(t){return{text:v(t.node),kind:e.getNodeKind(t.node),kindModifiers:e.getNodeModifiers(t.node),spans:D(t),childItems:R,indent:0,bolded:!1,grayed:!1}}return{text:v(t.node),kind:e.getNodeKind(t.node),kindModifiers:e.getNodeModifiers(t.node),spans:D(t),childItems:e.map(t.children,r)||R,indent:t.indent,bolded:!1,grayed:!1}}function D(e){var t=[T(e.node)];if(e.additionalNodes)for(var r=0,n=e.additionalNodes;r<n.length;r++){var a=n[r];t.push(T(a))}return t}function S(t){if(e.isAmbientModule(t))return e.getTextOfNode(t.name);var r=[];for(r.push(t.name.text);t.body&&230===t.body.kind;)t=t.body,r.push(t.name.text);return r.join(".")}function C(e){return 230===e.body.kind?C(e.body):e}function E(e){return!e.name||142===e.name.kind}function T(t){return 261===t.kind?e.createTextSpanFromBounds(t.getFullStart(),t.getEnd()):e.createTextSpanFromBounds(t.getStart(w),t.getEnd())}function N(t){return t.name&&e.getFullWidth(t.name)>0?e.declarationNameToString(t.name):223===t.parent.kind?e.declarationNameToString(t.parent.name):192===t.parent.kind&&57===t.parent.operatorToken.kind?a(t.parent.left).replace(L,""):257===t.parent.kind&&t.parent.name?a(t.parent.name):512&e.getModifierFlags(t)?"default":e.isClassLike(t)?"<class>":"<function>"}function A(e){return 184===e.kind||185===e.kind||197===e.kind}t.getNavigationBarItems=r,t.getNavigationTree=n;var w,P,F=[],O=e.collator&&e.collator.compare("a","B")<0,I=O?e.collator.compare:function(t,r){for(var n=0;n<Math.min(t.length,r.length);n++){var a=t.charAt(n),i=r.charAt(n);if('"'===a&&"'"===i)return 1;if("'"===a&&'"'===i)return-1;var o=e.compareStrings(a.toLocaleLowerCase(),i.toLocaleLowerCase());if(0!==o)return o}return t.length-r.length},R=[],L=/\s+/g}(t=e.NavigationBar||(e.NavigationBar={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t){function r(t,r,n,a){if(t&&r&&n){var i={textSpan:e.createTextSpanFromBounds(r.pos,n.end),hintSpan:e.createTextSpanFromBounds(t.getStart(),t.end),bannerText:u,autoCollapse:a};c.push(i)}}function n(t,r){if(t){var n={textSpan:e.createTextSpanFromBounds(t.pos,t.end),hintSpan:e.createTextSpanFromBounds(t.pos,t.end),bannerText:u,autoCollapse:r};c.push(n)}}function a(r){var a=e.getLeadingCommentRangesOfNode(r,t);if(a){for(var o=-1,s=-1,c=!0,u=0,_=0,l=a;_<l.length;_++){var d=l[_];2===d.kind?(c&&(o=d.pos),c=!1,s=d.end,u++):3===d.kind&&(i(u,o,s),n(d,!1),u=0,s=-1,c=!0)}i(u,o,s)}}function i(e,t,r){if(e>1){var a={pos:t,end:r,kind:2};n(a,!1)}}function o(t){return e.isFunctionBlock(t)&&185!==t.parent.kind}function s(n){if(!(_>l)){switch(e.isDeclaration(n)&&a(n),
n.kind){case 204:if(!e.isFunctionBlock(n)){var i=n.parent,d=e.findChildOfKind(n,16,t),p=e.findChildOfKind(n,17,t);if(209===i.kind||212===i.kind||213===i.kind||211===i.kind||208===i.kind||210===i.kind||217===i.kind||256===i.kind){r(i,d,p,o(n));break}if(221===i.kind){var f=i;if(f.tryBlock===n){r(i,d,p,o(n));break}if(f.finallyBlock===n){var m=e.findChildOfKind(f,86,t);if(m){r(m,d,p,o(n));break}}}var g=e.createTextSpanFromBounds(n.getStart(),n.end);c.push({textSpan:g,hintSpan:g,bannerText:u,autoCollapse:o(n)});break}case 231:var d=e.findChildOfKind(n,16,t),p=e.findChildOfKind(n,17,t);r(n.parent,d,p,o(n));break;case 226:case 227:case 229:case 176:case 232:var d=e.findChildOfKind(n,16,t),p=e.findChildOfKind(n,17,t);r(n,d,p,o(n));break;case 175:var y=e.findChildOfKind(n,20,t),v=e.findChildOfKind(n,21,t);r(n,y,v,o(n))}_++,e.forEachChild(n,s),_--}}var c=[],u="...",_=0,l=20;return s(t),c}t.collectElements=r}(t=e.OutliningElementsCollector||(e.OutliningElementsCollector={}))}(ts||(ts={}));var ts;!function(e){function t(e,t,r,n){return{kind:e,punctuationStripped:t,isCaseSensitive:r,camelCaseWeight:n}}function r(r){function o(e){return b||!e}function c(t){if(!o(t))return f(t,e.lastOrUndefined(h))}function _(t,r){if(!o(r)){var n=f(r,e.lastOrUndefined(h));if(n&&(t=t||[],!(h.length-1>t.length))){for(var a=n,i=h.length-2,s=t.length-1;i>=0;i-=1,s-=1){var c=h[i],u=t[s],_=f(u,c);if(!_)return;e.addRange(a,_)}return a}}}function l(e){return e in v||(v[e]=m(e)),v[e]}function d(r,n,a){var o=s(r,n.textLowerCase);if(0===o)return n.text.length===r.length?t(k.exact,a,r===n.text):t(k.prefix,a,e.startsWith(r,n.text));var c=n.isLowerCase;if(c){if(o>0)for(var u=l(r),_=0,d=u;_<d.length;_++){var p=d[_];if(g(r,p,n.text,!0))return t(k.substring,a,g(r,p,n.text,!1))}}else if(r.indexOf(n.text)>0)return t(k.substring,a,!0);if(!c&&n.characterSpans.length>0){var f=l(r),m=y(r,f,n,!1);if(void 0!==m)return t(k.camelCase,a,!0,m);if(m=y(r,f,n,!0),void 0!==m)return t(k.camelCase,a,!1,m)}return c&&n.text.length<r.length&&o>0&&i(r.charCodeAt(o))?t(k.substring,a,!1):void 0}function p(e){for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(32===r||42===r)return!0}return!1}function f(e,t){if(!p(t.totalTextChunk.text)){var r=d(e,t.totalTextChunk,!1);if(r)return[r]}for(var n=t.subWordTextChunks,a=void 0,i=0,o=n;i<o.length;i++){var s=o[i],c=d(e,s,!0);if(!c)return;a=a||[],a.push(c)}return a}function g(e,t,r,n,a){var i=a?a.start:0,o=a?a.length:r.length;if(o>t.length)return!1;if(n)for(var s=0;s<o;s++){var c=r.charCodeAt(i+s),_=e.charCodeAt(t.start+s);if(u(c)!==u(_))return!1}else for(var s=0;s<o;s++){var c=r.charCodeAt(i+s),_=e.charCodeAt(t.start+s);if(c!==_)return!1}return!0}function y(t,r,n,a){for(var o=n.characterSpans,s=0,c=0,u=void 0,_=void 0;;){if(c===o.length){var l=0;return _&&(l+=1),0===u&&(l+=2),l}if(s===r.length)return;for(var d=r[s],p=!1;c<o.length;c++){var f=o[c];if(p&&(!i(n.text.charCodeAt(o[c-1].start))||!i(n.text.charCodeAt(o[c].start))))break;if(!g(t,d,n.text,a,f))break;p=!0,u=void 0===u?s:u,_=void 0===_||_,d=e.createTextSpan(d.start+f.length,d.length-f.length)}p||void 0===_||(_=!1),s++}}var v=e.createMap();r=r.trim();var h=r.split(".").map(function(e){return n(e.trim())}),b=0===h.length||e.forEach(h,a);return{getMatches:_,getMatchesForLastSegmentOfPattern:c,patternContainsDots:h.length>1}}function n(e){return{totalTextChunk:p(e),subWordTextChunks:d(e)}}function a(e){return 0===e.subWordTextChunks.length}function i(t){if(t>=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,5))return!1;var r=String.fromCharCode(t);return r===r.toUpperCase()}function o(t){if(t>=97&&t<=122)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,5))return!1;var r=String.fromCharCode(t);return r===r.toLowerCase()}function s(e,t){for(var r=0,n=e.length-t.length;r<=n;r++)if(c(e,t,r))return r;return-1}function c(e,t,r){for(var n=0,a=t.length;n<a;n++){var i=u(e.charCodeAt(n+r)),o=t.charCodeAt(n);if(i!==o)return!1}return!0}function u(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function _(e){return e>=48&&e<=57}function l(e){return i(e)||o(e)||_(e)||95===e||36===e}function d(e){for(var t=[],r=0,n=0,a=0;a<e.length;a++){var i=e.charCodeAt(a);l(i)?(0===n&&(r=a),n++):n>0&&(t.push(p(e.substr(r,n))),n=0)}return n>0&&t.push(p(e.substr(r,n))),t}function p(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:f(e)}}function f(e){return g(e,!1)}function m(e){return g(e,!0)}function g(t,r){for(var n=[],a=0,i=1,o=t.length;i<o;i++){var s=_(t.charCodeAt(i-1)),c=_(t.charCodeAt(i)),u=b(t,r,i),l=h(t,r,i,a);(y(t.charCodeAt(i-1))||y(t.charCodeAt(i))||s!==c||u||l)&&(v(t,a,i)||n.push(e.createTextSpan(a,i-a)),a=i)}return v(t,a,t.length)||n.push(e.createTextSpan(a,t.length-a)),n}function y(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 v(e,t,r){for(var n=t;n<r;n++){var a=e.charCodeAt(n);if(!y(a)||95===a||36===a)return!1}return!0}function h(e,t,r,n){if(t&&r!==n&&r+1<e.length){var a=i(e.charCodeAt(r)),s=o(e.charCodeAt(r+1));if(a&&s){for(var c=n;c<r;c++)if(!i(e.charCodeAt(c)))return!1;return!0}}return!1}function b(e,t,r){var n=i(e.charCodeAt(r-1)),a=i(e.charCodeAt(r)),o=t?a&&!n:a;return o}var k;!function(e){e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase"}(k=e.PatternMatchKind||(e.PatternMatchKind={})),e.createPatternMatcher=r,e.breakIntoCharacterSpans=f,e.breakIntoWordSpans=m}(ts||(ts={}));var ts;!function(e){function t(t,r,n){function a(){var t=e.scanner.scan();return 16===t?k++:17===t&&k--,t}function i(){var r=e.getLeadingCommentRanges(t,0);e.forEach(r,function(r){var n=t.substring(r.pos,r.end),a=e.getFileReferenceFromReferencePath(n,r);if(a){b=a.isNoDefaultLib;var i=a.fileReference;if(i){var o=a.isTypeReferenceDirective?v:y;o.push(i)}}})}function o(){var t=e.scanner.getTokenValue(),r=e.scanner.getTokenPos();return{fileName:t,pos:r,end:r+t.length}}function s(){g||(g=[]),g.push({ref:o(),depth:k})}function c(){h.push(o()),u()}function u(){0===k&&(x=!0)}function _(){var t=e.scanner.getToken();return 123===t&&(t=a(),127===t&&(t=a(),9===t&&s()),!0)}function l(){var t=e.scanner.getToken();if(90===t){if(t=a(),9===t)return c(),!0;if(70===t||e.isKeyword(t))if(t=a(),138===t){if(t=a(),9===t)return c(),!0}else if(57===t){if(p(!0))return!0}else{if(25!==t)return!0;t=a()}if(16===t){for(t=a();17!==t&&1!==t;)t=a();17===t&&(t=a(),138===t&&(t=a(),9===t&&c()))}else 38===t&&(t=a(),117===t&&(t=a(),(70===t||e.isKeyword(t))&&(t=a(),138===t&&(t=a(),9===t&&c()))));return!0}return!1}function d(){var t=e.scanner.getToken();if(83===t){if(u(),t=a(),16===t){for(t=a();17!==t&&1!==t;)t=a();17===t&&(t=a(),138===t&&(t=a(),9===t&&c()))}else if(38===t)t=a(),138===t&&(t=a(),9===t&&c());else if(90===t&&(t=a(),(70===t||e.isKeyword(t))&&(t=a(),57===t&&p(!0))))return!0;return!0}return!1}function p(t){var r=t?a():e.scanner.getToken();return 131===r&&(r=a(),18===r&&(r=a(),9===r&&c()),!0)}function f(){var t=e.scanner.getToken();if(70===t&&"define"===e.scanner.getTokenValue()){if(t=a(),18!==t)return!0;if(t=a(),9===t){if(t=a(),25!==t)return!0;t=a()}if(20!==t)return!0;t=a();for(var r=0;21!==t&&1!==t;)9===t&&(c(),r++),t=a();return!0}return!1}function m(){for(e.scanner.setText(t),a();;){if(1===e.scanner.getToken())break;_()||l()||d()||n&&(p(!1)||f())||a()}e.scanner.setText(void 0)}void 0===r&&(r=!0),void 0===n&&(n=!1);var g,y=[],v=[],h=[],b=!1,k=0,x=!1;if(r&&m(),i(),x){if(g)for(var D=0,S=g;D<S.length;D++){var C=S[D];h.push(C.ref)}return{referencedFiles:y,typeReferenceDirectives:v,importedFiles:h,isLibFile:b,ambientExternalModules:void 0}}var E=void 0;if(g)for(var T=0,N=g;T<N.length;T++){var C=N[T];0===C.depth?(E||(E=[]),E.push(C.ref.fileName)):h.push(C.ref)}return{referencedFiles:y,typeReferenceDirectives:v,importedFiles:h,isLibFile:b,ambientExternalModules:E}}e.preProcessFile=t}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r,n,a,i){function o(e){return{canRename:!1,localizedErrorMessage:e,displayName:void 0,fullDisplayName:void 0,kind:void 0,kindModifiers:void 0,triggerSpan:void 0}}function s(t){if(r){var a=t.getSourceFile(),i=n(e.normalizePath(a.fileName));if(i===u)return!0}return!1}function c(t,r){var n=t.getStart(r),a=t.getWidth(r);return 9===t.kind&&(n+=1,a-=2),e.createTextSpan(n,a)}var u=n(e.normalizePath(r)),_=e.getTouchingWord(a,i,!0);if(_&&(70===_.kind||9===_.kind||e.isLiteralNameOfPropertyDeclarationOrIndexAccess(_)||e.isThis(_))){var l=t.getSymbolAtLocation(_);if(l){var d=l.getDeclarations();if(d&&d.length>0){if(e.forEach(d,s))return o(e.getLocaleSpecificMessage(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library));var p=e.stripQuotes(e.getDeclaredName(t,l,_)),f=e.SymbolDisplay.getSymbolKind(t,l,_);if(f)return{canRename:!0,kind:f,displayName:p,localizedErrorMessage:void 0,fullDisplayName:t.getFullyQualifiedName(l),kindModifiers:e.SymbolDisplay.getSymbolModifiers(l),triggerSpan:c(_,a)}}}else if(9===_.kind){var m=e.getStringLiteralTypeForNode(_,t);if(m){if(s(_))return o(e.getLocaleSpecificMessage(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library));var p=e.stripQuotes(m.text);return{canRename:!0,kind:e.ScriptElementKind.variableElement,displayName:p,localizedErrorMessage:void 0,fullDisplayName:p,kindModifiers:e.ScriptElementKindModifier.none,triggerSpan:c(_,a)}}}}return o(e.getLocaleSpecificMessage(e.Diagnostics.You_cannot_rename_this_element))}t.getRenameInfo=r}(t=e.Rename||(e.Rename={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r,a,i){var o=t.getTypeChecker(),s=e.findTokenOnLeftOfPosition(r,a);if(s){var c=l(s,a,r);if(i.throwIfCancellationRequested(),c){var u=c.invocation,_=[],d=o.getResolvedSignature(u,_);if(i.throwIfCancellationRequested(),_.length)return f(_,d,c,o);if(e.isSourceFileJavaScript(r))return n(c,t)}}}function n(e,t){if(179===e.invocation.kind){var r=e.invocation,n=r.expression,a=70===n.kind?n:177===n.kind?n.name:void 0;if(a&&a.text)for(var i=t.getTypeChecker(),o=0,s=t.getSourceFiles();o<s.length;o++){var c=s[o],u=c.getNamedDeclarations(),_=u[a.text];if(_)for(var l=0,d=_;l<d.length;l++){var p=d[l],m=p.symbol;if(m){var g=i.getTypeOfSymbolAtLocation(m,p);if(g){var y=g.getCallSignatures();if(y&&y.length)return f(y,y[0],e,i)}}}}}}function a(t,r,n){if(179!==t.parent.kind&&180!==t.parent.kind)if(12===t.kind&&181===t.parent.kind){if(e.isInsideTemplateLiteral(t,r))return c(t.parent,0,n)}else{if(13===t.kind&&181===t.parent.parent.kind){var a=t.parent,_=a.parent;e.Debug.assert(194===a.kind);var l=e.isInsideTemplateLiteral(t,r)?0:1;return c(_,l,n)}if(202===t.parent.kind&&181===t.parent.parent.parent.kind){var p=t.parent,a=p.parent,_=a.parent;if(e.Debug.assert(194===a.kind),15===t.kind&&!e.isInsideTemplateLiteral(t,r))return;var f=a.templateSpans.indexOf(p),l=s(f,t,r);return c(_,l,n)}}else{var m=t.parent;if(26===t.kind||18===t.kind){var g=d(m,t,n),y=m.typeArguments&&m.typeArguments.pos===g.pos;return e.Debug.assert(void 0!==g),{kind:y?0:1,invocation:m,argumentsSpan:u(g,n),argumentIndex:0,argumentCount:o(g)}}var v=e.findListItemInfo(t);if(v){var g=v.list,y=m.typeArguments&&m.typeArguments.pos===g.pos,l=i(g,t),h=o(g);return e.Debug.assert(0===l||l<h,"argumentCount < argumentIndex, "+h+" < "+l),{kind:y?0:1,invocation:m,argumentsSpan:u(g,n),argumentIndex:l,argumentCount:h}}}}function i(e,t){for(var r=0,n=e.getChildren(),a=0,i=n;a<i.length;a++){var o=i[a];if(o===t)break;25!==o.kind&&r++}return r}function o(t){var r=t.getChildren(),n=e.countWhere(r,function(e){return 25!==e.kind});return r.length>0&&25===e.lastOrUndefined(r).kind&&n++,n}function s(t,r,n){return e.Debug.assert(n>=r.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralKind(r.kind)?e.isInsideTemplateLiteral(r,n)?0:t+2:t+1}function c(t,r,n){var a=12===t.template.kind?1:t.template.templateSpans.length+1;return e.Debug.assert(0===r||r<a,"argumentCount < argumentIndex, "+a+" < "+r),{kind:2,invocation:t,argumentsSpan:_(t,n),argumentIndex:r,argumentCount:a}}function u(t,r){var n=t.getFullStart(),a=e.skipTrivia(r.text,t.getEnd(),!1);return e.createTextSpan(n,a-n)}function _(t,r){var n=t.template,a=n.getStart(),i=n.getEnd();if(194===n.kind){var o=e.lastOrUndefined(n.templateSpans);0===o.literal.getFullWidth()&&(i=e.skipTrivia(r.text,i,!1))}return e.createTextSpan(a,i-a)}function l(t,r,n){for(var i=t;261!==i.kind;i=i.parent){if(e.isFunctionBlock(i))return;(i.pos<i.parent.pos||i.end>i.parent.end)&&e.Debug.fail("Node of kind "+i.kind+" is not a subspan of its parent of kind "+i.parent.kind);var o=a(i,r,n);if(o)return o}}function d(t,r,n){var a=t.getChildren(n),i=a.indexOf(r);return e.Debug.assert(i>=0&&a.length>i+1),a[i+1]}function p(e,t){for(var r=-1,n=-1,a=0;a<e.length;a++){var i=e[a];if(i.hasRestParameter||i.parameters.length>=t)return a;i.parameters.length>n&&(n=i.parameters.length,r=a)}return r}function f(t,r,n,a){function i(t){var r=e.mapToDisplayParts(function(e){return a.getSymbolDisplayBuilder().buildParameterDisplay(t,e,u)});return{name:t.name,documentation:t.getDocumentationComment(),displayParts:r,isOptional:a.isOptionalParameter(t.valueDeclaration)}}function o(t){var r=e.mapToDisplayParts(function(e){return a.getSymbolDisplayBuilder().buildTypeParameterDisplay(t,e,u)});return{name:t.symbol.name,documentation:g,displayParts:r,isOptional:!1}}var s=n.argumentsSpan,c=0===n.kind,u=n.invocation,_=e.getInvokedExpression(u),l=a.getSymbolAtLocation(_),d=l&&e.symbolToDisplayParts(a,l,void 0,void 0),f=e.map(t,function(t){var r,n=[],s=[];d&&e.addRange(n,d);var _;if(c){_=!1,n.push(e.punctuationPart(26));var l=t.typeParameters;r=l&&l.length>0?e.map(l,o):g,s.push(e.punctuationPart(28));var p=e.mapToDisplayParts(function(e){return a.getSymbolDisplayBuilder().buildDisplayForParametersAndDelimiters(t.thisParameter,t.parameters,e,u)});e.addRange(s,p)}else{_=t.hasRestParameter;var f=e.mapToDisplayParts(function(e){return a.getSymbolDisplayBuilder().buildDisplayForTypeParametersAndDelimiters(t.typeParameters,e,u)});e.addRange(n,f),n.push(e.punctuationPart(18));var m=t.parameters;r=m.length>0?e.map(m,i):g,s.push(e.punctuationPart(19))}var y=e.mapToDisplayParts(function(e){return a.getSymbolDisplayBuilder().buildReturnTypeDisplay(t,e,u)});return e.addRange(s,y),{isVariadic:_,prefixDisplayParts:n,suffixDisplayParts:s,separatorDisplayParts:[e.punctuationPart(25),e.spacePart()],parameters:r,documentation:t.getDocumentationComment(),tags:t.getJsDocTags()}}),m=n.argumentIndex,y=n.argumentCount,v=t.indexOf(r);return v<0&&(v=p(t,y)),e.Debug.assert(0===m||m<y,"argumentCount < argumentIndex, "+y+" < "+m),{items:f,applicableSpan:s,selectedItemIndex:v,argumentIndex:m,argumentCount:y}}var m,g=[];!function(e){e[e.TypeArguments=0]="TypeArguments",e[e.CallArguments=1]="CallArguments",e[e.TaggedTemplateArguments=2]="TaggedTemplateArguments"}(m=t.ArgumentListKind||(t.ArgumentListKind={})),t.getSignatureHelpItems=r,t.getContainingArgumentInfo=l}(t=e.SignatureHelp||(e.SignatureHelp={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r,a){var i=r.getFlags();if(32&i)return e.getDeclarationOfKind(r,197)?e.ScriptElementKind.localClassElement:e.ScriptElementKind.classElement;if(384&i)return e.ScriptElementKind.enumElement;if(524288&i)return e.ScriptElementKind.typeElement;if(64&i)return e.ScriptElementKind.interfaceElement;if(262144&i)return e.ScriptElementKind.typeParameterElement;var o=n(t,r,i,a);if(o===e.ScriptElementKind.unknown){if(262144&i)return e.ScriptElementKind.typeParameterElement;if(8&i)return e.ScriptElementKind.variableElement;if(8388608&i)return e.ScriptElementKind.alias;if(1536&i)return e.ScriptElementKind.moduleElement}return o}function n(t,r,n,a){if(t.isUndefinedSymbol(r))return e.ScriptElementKind.variableElement;if(t.isArgumentsSymbol(r))return e.ScriptElementKind.localVariableElement;if(98===a.kind&&e.isExpression(a))return e.ScriptElementKind.parameterElement;if(3&n)return e.isFirstDeclarationOfSymbolParameter(r)?e.ScriptElementKind.parameterElement:r.valueDeclaration&&e.isConst(r.valueDeclaration)?e.ScriptElementKind.constElement:e.forEach(r.declarations,e.isLet)?e.ScriptElementKind.letElement:o(r)?e.ScriptElementKind.localVariableElement:e.ScriptElementKind.variableElement;if(16&n)return o(r)?e.ScriptElementKind.localFunctionElement:e.ScriptElementKind.functionElement;if(32768&n)return e.ScriptElementKind.memberGetAccessorElement;if(65536&n)return e.ScriptElementKind.memberSetAccessorElement;if(8192&n)return e.ScriptElementKind.memberFunctionElement;if(16384&n)return e.ScriptElementKind.constructorImplementationElement;if(4&n){if(268435456&n){var i=e.forEach(t.getRootSymbols(r),function(t){var r=t.getFlags();return 98311&r?e.ScriptElementKind.memberVariableElement:void e.Debug.assert(!!(8192&r))});if(!i){var s=t.getTypeOfSymbolAtLocation(r,a);return s.getCallSignatures().length?e.ScriptElementKind.memberFunctionElement:e.ScriptElementKind.memberVariableElement}return i}return e.ScriptElementKind.memberVariableElement}return e.ScriptElementKind.unknown}function a(t){return t&&t.declarations&&t.declarations.length>0?e.getNodeModifiers(t.declarations[0]):e.ScriptElementKindModifier.none}function i(t,a,i,o,s,c){function u(){b.length&&b.push(e.lineBreakPart())}function _(){b.push(e.spacePart()),b.push(e.keywordPart(91)),b.push(e.spacePart())}function l(r,n){var a=e.symbolToDisplayParts(t,r,n||i,void 0,3);e.addRange(b,a)}function d(t,r){u(),r&&(p(r),b.push(e.spacePart()),l(t))}function p(t){switch(t){case e.ScriptElementKind.variableElement:case e.ScriptElementKind.functionElement:case e.ScriptElementKind.letElement:case e.ScriptElementKind.constElement:case e.ScriptElementKind.constructorImplementationElement:return void b.push(e.textOrKeywordPart(t));default:return b.push(e.punctuationPart(18)),b.push(e.textOrKeywordPart(t)),void b.push(e.punctuationPart(19))}}function f(r,n,a){e.addRange(b,e.signatureToDisplayParts(t,r,o,32|a)),n.length>1&&(b.push(e.spacePart()),b.push(e.punctuationPart(18)),b.push(e.operatorPart(36)),b.push(e.displayPart((n.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),b.push(e.spacePart()),b.push(e.textPart(2===n.length?"overload":"overloads")),b.push(e.punctuationPart(19))),g=r.getDocumentationComment(),y=r.getJsDocTags()}function m(r,n){var a=e.mapToDisplayParts(function(e){t.getSymbolDisplayBuilder().buildTypeParameterDisplayFromSymbol(r,e,n)});e.addRange(b,a)}void 0===c&&(c=e.getMeaningFromLocation(s));var g,y,v,h,b=[],k=a.flags,x=n(t,a,k,s),D=98===s.kind&&e.isExpression(s);if(x!==e.ScriptElementKind.unknown||32&k||8388608&k){x!==e.ScriptElementKind.memberGetAccessorElement&&x!==e.ScriptElementKind.memberSetAccessorElement||(x=e.ScriptElementKind.memberVariableElement);var S=void 0;if(h=D?t.getTypeAtLocation(s):t.getTypeOfSymbolAtLocation(a,s)){if(s.parent&&177===s.parent.kind){var C=s.parent.name;(C===s||C&&0===C.getFullWidth())&&(s=s.parent)}var E=void 0;if(179===s.kind||180===s.kind?E=s:(e.isCallExpressionTarget(s)||e.isNewExpressionTarget(s))&&(E=s.parent),E){var T=[];S=t.getResolvedSignature(E,T),!S&&T.length&&(S=T[0]);var N=180===E.kind||96===E.expression.kind,A=N?h.getConstructSignatures():h.getCallSignatures();if(e.contains(A,S.target)||e.contains(A,S)||(S=A.length?A[0]:void 0),S){switch(N&&32&k?(x=e.ScriptElementKind.constructorImplementationElement,d(h.symbol,x)):8388608&k?(x=e.ScriptElementKind.alias,p(x),b.push(e.spacePart()),N&&(b.push(e.keywordPart(93)),b.push(e.spacePart())),l(a)):d(a,x),x){case e.ScriptElementKind.memberVariableElement:case e.ScriptElementKind.variableElement:case e.ScriptElementKind.constElement:case e.ScriptElementKind.letElement:case e.ScriptElementKind.parameterElement:case e.ScriptElementKind.localVariableElement:b.push(e.punctuationPart(55)),b.push(e.spacePart()),N&&(b.push(e.keywordPart(93)),b.push(e.spacePart())),32768&h.flags&&16&h.objectFlags||!h.symbol||e.addRange(b,e.symbolToDisplayParts(t,h.symbol,o,void 0,1)),f(S,A,8);break;default:f(S,A)}v=!0}}else if(e.isNameOfFunctionDeclaration(s)&&!(98304&a.flags)||122===s.kind&&150===s.parent.kind){var w=s.parent,A=150===w.kind?h.getNonNullableType().getConstructSignatures():h.getNonNullableType().getCallSignatures();S=t.isImplementationOfOverload(w)?A[0]:t.getSignatureFromDeclaration(w),150===w.kind?(x=e.ScriptElementKind.constructorImplementationElement,d(h.symbol,x)):d(153!==w.kind||2048&h.symbol.flags||4096&h.symbol.flags?a:h.symbol,x),f(S,A),v=!0}}}if(32&k&&!v&&!D&&(e.getDeclarationOfKind(a,197)?p(e.ScriptElementKind.localClassElement):b.push(e.keywordPart(74)),b.push(e.spacePart()),l(a),m(a,i)),64&k&&2&c&&(u(),b.push(e.keywordPart(108)),b.push(e.spacePart()),l(a),m(a,i)),524288&k&&(u(),b.push(e.keywordPart(136)),b.push(e.spacePart()),l(a),m(a,i),b.push(e.spacePart()),b.push(e.operatorPart(57)),b.push(e.spacePart()),e.addRange(b,e.typeToDisplayParts(t,t.getDeclaredTypeOfSymbol(a),o,512))),384&k&&(u(),e.forEach(a.declarations,e.isConstEnumDeclaration)&&(b.push(e.keywordPart(75)),b.push(e.spacePart())),b.push(e.keywordPart(82)),b.push(e.spacePart()),l(a)),1536&k){u();var P=e.getDeclarationOfKind(a,230),F=P&&P.name&&70===P.name.kind;b.push(e.keywordPart(F?128:127)),b.push(e.spacePart()),l(a)}if(262144&k&&2&c)if(u(),b.push(e.punctuationPart(18)),b.push(e.textPart("type parameter")),b.push(e.punctuationPart(19)),b.push(e.spacePart()),l(a),a.parent)_(),l(a.parent,o),m(a.parent,o);else{var P=e.getDeclarationOfKind(a,143);if(e.Debug.assert(void 0!==P),P=P.parent)if(e.isFunctionLikeKind(P.kind)){_();var S=t.getSignatureFromDeclaration(P);154===P.kind?(b.push(e.keywordPart(93)),b.push(e.spacePart())):153!==P.kind&&P.name&&l(P.symbol),e.addRange(b,e.signatureToDisplayParts(t,S,i,32))}else 228===P.kind&&(_(),b.push(e.keywordPart(136)),b.push(e.spacePart()),l(P.symbol),m(P.symbol,i))}if(8&k){d(a,"enum member");var P=a.declarations[0];if(260===P.kind){var O=t.getConstantValue(P);void 0!==O&&(b.push(e.spacePart()),b.push(e.operatorPart(57)),b.push(e.spacePart()),b.push(e.displayPart(O.toString(),e.SymbolDisplayPartKind.numericLiteral)))}}if(8388608&k&&(u(),233===a.declarations[0].kind?(b.push(e.keywordPart(83)),b.push(e.spacePart()),b.push(e.keywordPart(128))):b.push(e.keywordPart(90)),b.push(e.spacePart()),l(a),e.forEach(a.declarations,function(r){if(234===r.kind){var n=r;if(e.isExternalModuleImportEqualsDeclaration(n))b.push(e.spacePart()),b.push(e.operatorPart(57)),b.push(e.spacePart()),b.push(e.keywordPart(131)),b.push(e.punctuationPart(18)),b.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(n)),e.SymbolDisplayPartKind.stringLiteral)),b.push(e.punctuationPart(19));else{var a=t.getSymbolAtLocation(n.moduleReference);a&&(b.push(e.spacePart()),b.push(e.operatorPart(57)),b.push(e.spacePart()),l(a,o))}return!0}})),!v)if(x!==e.ScriptElementKind.unknown){if(h)if(D?(u(),b.push(e.keywordPart(98))):d(a,x),x===e.ScriptElementKind.memberVariableElement||3&k||x===e.ScriptElementKind.localVariableElement||D)if(b.push(e.punctuationPart(55)),b.push(e.spacePart()),h.symbol&&262144&h.symbol.flags){var I=e.mapToDisplayParts(function(e){t.getSymbolDisplayBuilder().buildTypeParameterDisplay(h,e,o)});e.addRange(b,I)}else e.addRange(b,e.typeToDisplayParts(t,h,o));else if(16&k||8192&k||16384&k||131072&k||98304&k||x===e.ScriptElementKind.memberFunctionElement){var A=h.getNonNullableType().getCallSignatures();f(A[0],A)}}else x=r(t,a,s);if(!g&&(g=a.getDocumentationComment(),y=a.getJsDocTags(),0===g.length&&4&a.flags&&a.parent&&e.forEach(a.parent.declarations,function(e){return 261===e.kind})))for(var R=0,L=a.declarations;R<L.length;R++){var P=L[R];if(P.parent&&192===P.parent.kind){var M=t.getSymbolAtLocation(P.parent.right);if(M&&(g=M.getDocumentationComment(),y=M.getJsDocTags(),g.length>0))break}}return{displayParts:b,documentation:g,symbolKind:x,tags:y}}function o(t){return!t.parent&&e.forEach(t.declarations,function(t){if(184===t.kind)return!0;if(223!==t.kind&&225!==t.kind)return!1;for(var r=t.parent;!e.isFunctionBlock(r);r=r.parent)if(261===r.kind||231===r.kind)return!1;return!0})}t.getSymbolKind=r,t.getSymbolModifiers=a,t.getSymbolDisplayPartsDocumentationAndSymbolKind=i}(t=e.SymbolDisplay||(e.SymbolDisplay={}))}(ts||(ts={}));var ts;!function(e){function t(t,r){var a=[],i=r.compilerOptions?n(r.compilerOptions,a):e.getDefaultCompilerOptions();i.isolatedModules=!0,i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0,i.noLib=!0,i.lib=void 0,i.types=void 0,i.noEmit=void 0,i.noEmitOnError=void 0,i.paths=void 0,i.rootDirs=void 0,i.declaration=void 0,i.declarationDir=void 0,i.out=void 0,i.outFile=void 0,i.noResolve=!0;var o=r.fileName||(i.jsx?"module.tsx":"module.ts"),s=e.createSourceFile(o,t,i.target);r.moduleName&&(s.moduleName=r.moduleName),r.renamedDependencies&&(s.renamedDependencies=e.createMap(r.renamedDependencies));var c,u,_=e.getNewLineCharacter(i),l={getSourceFile:function(t){return t===e.normalizePath(o)?s:void 0},writeFile:function(t,r){e.fileExtensionIs(t,".map")?(e.Debug.assert(void 0===u,"Unexpected multiple source map outputs for the file '"+t+"'"),u=r):(e.Debug.assert(void 0===c,"Unexpected multiple outputs for the file: '"+t+"'"),c=r)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(e){return e},getCurrentDirectory:function(){return""},getNewLine:function(){return _},fileExists:function(e){return e===o},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},d=e.createProgram([o],i,l);return r.reportDiagnostics&&(e.addRange(a,d.getSyntacticDiagnostics(s)),e.addRange(a,d.getOptionsDiagnostics())),d.emit(),e.Debug.assert(void 0!==c,"Output generation failed"),{outputText:c,diagnostics:a,sourceMapText:u}}function r(r,n,a,i,o){var s=t(r,{compilerOptions:n,fileName:a,reportDiagnostics:!!i,moduleName:o});return e.addRange(i,s.diagnostics),s.outputText}function n(t,r){a=a||e.filter(e.optionDeclarations,function(t){return"object"==typeof t.type&&!e.forEachProperty(t.type,function(e){return"number"!=typeof e})}),t=e.clone(t);for(var n=function(n){if(!e.hasProperty(t,n.name))return"continue";var a=t[n.name];"string"==typeof a?t[n.name]=e.parseCustomTypeOption(n,a,r):e.forEachProperty(n.type,function(e){return e===a})||r.push(e.createCompilerDiagnosticForInvalidCustomType(n))},i=0,o=a;i<o.length;i++){var s=o[i];n(s)}return t}e.transpileModule=t,e.transpile=r;var a}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r,a){function s(){e.Debug.assert(void 0!==n,"Scanner should be present"),x=void 0;var t=n.getStartPos()!==r;t&&(h?(e.Debug.assert(0!==h.length),D=4===e.lastOrUndefined(h).kind):D=!1),v=void 0,h=void 0,t||n.scan();for(var i=n.getStartPos();i<a;){var o=n.getToken();if(!e.isTrivia(o))break;n.scan();var s={pos:i,end:n.getStartPos(),kind:o};i=n.getStartPos(),v||(v=[]),v.push(s)}b=n.getStartPos()}function c(e){if(e)switch(e.kind){case 30:case 65:case 66:case 46:case 45:return!0}return!1}function u(e){if(e.parent)switch(e.parent.kind){case 250:case 248:case 249:case 247:return 70===e.kind}return!1}function _(e){return e&&10===e.kind}function l(e){return 11===e.kind}function d(e){return 14===e.kind||15===e.kind}function p(e){return 40===e||62===e}function f(t){if(e.Debug.assert(void 0!==n),!m())return{leadingTrivia:v,trailingTrivia:void 0,token:void 0};var r=c(t)?1:l(t)?2:d(t)?3:u(t)?4:_(t)?5:0;if(x&&r===k)return g(x,t);n.getStartPos()!==b&&(e.Debug.assert(void 0!==x),n.setTextPos(b),n.scan());var i=n.getToken();1===r&&28===i?(i=n.reScanGreaterToken(),e.Debug.assert(t.kind===i),k=1):2===r&&p(i)?(i=n.reScanSlashToken(),e.Debug.assert(t.kind===i),k=2):3===r&&17===i?(i=n.reScanTemplateToken(),k=3):4===r&&70===i?(i=n.scanJsxIdentifier(),k=4):5===r?(i=n.reScanJsxToken(),k=5):k=0;var o={pos:n.getStartPos(),end:n.getTextPos(),kind:i};for(h&&(h=void 0);n.getStartPos()<a&&(i=n.scan(),e.isTrivia(i));){var s={pos:n.getStartPos(),end:n.getTextPos(),kind:i};if(h||(h=[]),h.push(s),4===i){n.scan();break}}return x={leadingTrivia:v,trailingTrivia:h,token:o},g(x,t)}function m(){e.Debug.assert(void 0!==n);var t=x&&x.token.kind||n.getToken(),r=x&&x.token.pos||n.getStartPos();return r<a&&1!==t&&!e.isTrivia(t)}function g(t,r){return e.isToken(r)&&t.token.kind!==r.kind&&(t.token.kind=r.kind),t}function y(e){n.setTextPos(e.end),b=n.getStartPos(),k=void 0,x=void 0,D=!1,v=void 0,h=void 0}e.Debug.assert(void 0===n,"Scanner should be undefined"),n=1===t.languageVariant?o:i,n.setText(t.text),n.setTextPos(r);var v,h,b,k,x,D=!0;return{advance:s,readTokenInfo:f,isOnToken:m,getCurrentLeadingTrivia:function(){return v},lastTrailingTriviaWasNewLine:function(){return D},skipToEndOf:y,close:function(){e.Debug.assert(void 0!==n),x=void 0,n.setText(void 0),n=void 0}}}var n,a,i=e.createScanner(5,!1,0),o=e.createScanner(5,!1,1);!function(e){e[e.Scan=0]="Scan",e[e.RescanGreaterThanToken=1]="RescanGreaterThanToken",e[e.RescanSlashToken=2]="RescanSlashToken",e[e.RescanTemplateToken=3]="RescanTemplateToken",e[e.RescanJsxIdentifier=4]="RescanJsxIdentifier",e[e.RescanJsxText=5]="RescanJsxText"}(a||(a={})),t.getFormattingScanner=r}(t=e.formatting||(e.formatting={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){var r=function(){function t(e,t){this.sourceFile=e,this.formattingRequestKind=t}return t.prototype.updateContext=function(t,r,n,a,i){e.Debug.assert(void 0!==t,"currentTokenSpan is null"),e.Debug.assert(void 0!==r,"currentTokenParent is null"),e.Debug.assert(void 0!==n,"nextTokenSpan is null"),e.Debug.assert(void 0!==a,"nextTokenParent is null"),e.Debug.assert(void 0!==i,"commonParent is null"),this.currentTokenSpan=t,this.currentTokenParent=r,this.nextTokenSpan=n,this.nextTokenParent=a,this.contextNode=i,this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0},t.prototype.ContextNodeAllOnSameLine=function(){return void 0===this.contextNodeAllOnSameLine&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine},t.prototype.NextNodeAllOnSameLine=function(){return void 0===this.nextNodeAllOnSameLine&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine},t.prototype.TokensAreOnSameLine=function(){if(void 0===this.tokensAreOnSameLine){var e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine},t.prototype.ContextNodeBlockIsOnOneLine=function(){return void 0===this.contextNodeBlockIsOnOneLine&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine},t.prototype.NextNodeBlockIsOnOneLine=function(){return void 0===this.nextNodeBlockIsOnOneLine&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine},t.prototype.NodeIsOnOneLine=function(e){var t=this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line,r=this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;return t===r},t.prototype.BlockIsOnOneLine=function(t){var r=e.findChildOfKind(t,16,this.sourceFile),n=e.findChildOfKind(t,17,this.sourceFile);if(r&&n){var a=this.sourceFile.getLineAndCharacterOfPosition(r.getEnd()).line,i=this.sourceFile.getLineAndCharacterOfPosition(n.getStart(this.sourceFile)).line;return a===i}return!1},t}();t.FormattingContext=r}(t=e.formatting||(e.formatting={}))}(ts||(ts={}));var ts;!function(e){var t;!function(e){var t;!function(e){e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnClosingCurlyBrace=4]="FormatOnClosingCurlyBrace"}(t=e.FormattingRequestKind||(e.FormattingRequestKind={}));
}(t=e.formatting||(e.formatting={}))}(ts||(ts={}));var ts;!function(e){var t;!function(e){var t=function(){function e(e,t,r){void 0===r&&(r=0),this.Descriptor=e,this.Operation=t,this.Flag=r}return e.prototype.toString=function(){return"[desc="+this.Descriptor+",operation="+this.Operation+",flag="+this.Flag+"]"},e}();e.Rule=t}(t=e.formatting||(e.formatting={}))}(ts||(ts={}));var ts;!function(e){var t;!function(e){var t;!function(e){e[e.Ignore=1]="Ignore",e[e.Space=2]="Space",e[e.NewLine=4]="NewLine",e[e.Delete=8]="Delete"}(t=e.RuleAction||(e.RuleAction={}))}(t=e.formatting||(e.formatting={}))}(ts||(ts={}));var ts;!function(e){var t;!function(e){var t=function(){function t(e,t){this.LeftTokenRange=e,this.RightTokenRange=t}return t.prototype.toString=function(){return"[leftRange="+this.LeftTokenRange+",rightRange="+this.RightTokenRange+"]"},t.create1=function(r,n){return t.create4(e.Shared.TokenRange.FromToken(r),e.Shared.TokenRange.FromToken(n))},t.create2=function(r,n){return t.create4(r,e.Shared.TokenRange.FromToken(n))},t.create3=function(r,n){return t.create4(e.Shared.TokenRange.FromToken(r),n)},t.create4=function(e,r){return new t(e,r)},t}();e.RuleDescriptor=t}(t=e.formatting||(e.formatting={}))}(ts||(ts={}));var ts;!function(e){var t;!function(e){var t;!function(e){e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines"}(t=e.RuleFlags||(e.RuleFlags={}))}(t=e.formatting||(e.formatting={}))}(ts||(ts={}));var ts;!function(e){var t;!function(e){var t=function(){function t(e,t){this.Context=e,this.Action=t}return t.prototype.toString=function(){return"[context="+this.Context+",action="+this.Action+"]"},t.create1=function(r){return t.create2(e.RuleOperationContext.Any,r)},t.create2=function(e,r){return new t(e,r)},t}();e.RuleOperation=t}(t=e.formatting||(e.formatting={}))}(ts||(ts={}));var ts;!function(e){var t;!function(e){var t=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.customContextChecks=e}return e.prototype.IsAny=function(){return this===e.Any},e.prototype.InContext=function(e){if(this.IsAny())return!0;for(var t=0,r=this.customContextChecks;t<r.length;t++){var n=r[t];if(!n(e))return!1}return!0},e}();t.Any=new t,e.RuleOperationContext=t}(t=e.formatting||(e.formatting={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){var r=function(){function r(){this.IgnoreBeforeComment=new t.Rule(t.RuleDescriptor.create4(t.Shared.TokenRange.Any,t.Shared.TokenRange.Comments),t.RuleOperation.create1(1)),this.IgnoreAfterLineComment=new t.Rule(t.RuleDescriptor.create3(2,t.Shared.TokenRange.Any),t.RuleOperation.create1(1)),this.NoSpaceBeforeSemicolon=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,24),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceBeforeColon=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,55),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsNotBinaryOpContext),8)),this.NoSpaceBeforeQuestionMark=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,54),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsNotBinaryOpContext),8)),this.SpaceAfterColon=new t.Rule(t.RuleDescriptor.create3(55,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsNotBinaryOpContext),2)),this.SpaceAfterQuestionMarkInConditionalOperator=new t.Rule(t.RuleDescriptor.create3(54,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsConditionalOperatorContext),2)),this.NoSpaceAfterQuestionMark=new t.Rule(t.RuleDescriptor.create3(54,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.SpaceAfterSemicolon=new t.Rule(t.RuleDescriptor.create3(24,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),2)),this.SpaceAfterCloseBrace=new t.Rule(t.RuleDescriptor.create3(17,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsAfterCodeBlockContext),2)),this.SpaceBetweenCloseBraceAndElse=new t.Rule(t.RuleDescriptor.create1(17,81),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),2)),this.SpaceBetweenCloseBraceAndWhile=new t.Rule(t.RuleDescriptor.create1(17,105),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),2)),this.NoSpaceAfterCloseBrace=new t.Rule(t.RuleDescriptor.create3(17,t.Shared.TokenRange.FromTokens([19,21,25,24])),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceBeforeDot=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,22),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceAfterDot=new t.Rule(t.RuleDescriptor.create3(22,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceBeforeOpenBracket=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,20),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceAfterCloseBracket=new t.Rule(t.RuleDescriptor.create3(21,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsNotBeforeBlockInFunctionDeclarationContext),8)),this.FunctionOpenBraceLeftTokenRange=t.Shared.TokenRange.AnyIncludingMultilineComments,this.SpaceBeforeOpenBraceInFunction=new t.Rule(t.RuleDescriptor.create2(this.FunctionOpenBraceLeftTokenRange,16),t.RuleOperation.create2(new t.RuleOperationContext(r.IsFunctionDeclContext,r.IsBeforeBlockContext,r.IsNotFormatOnEnter,r.IsSameLineTokenOrBeforeMultilineBlockContext),2),1),this.TypeScriptOpenBraceLeftTokenRange=t.Shared.TokenRange.FromTokens([70,3,74,83,90]),this.SpaceBeforeOpenBraceInTypeScriptDeclWithBlock=new t.Rule(t.RuleDescriptor.create2(this.TypeScriptOpenBraceLeftTokenRange,16),t.RuleOperation.create2(new t.RuleOperationContext(r.IsTypeScriptDeclWithBlockContext,r.IsNotFormatOnEnter,r.IsSameLineTokenOrBeforeMultilineBlockContext),2),1),this.ControlOpenBraceLeftTokenRange=t.Shared.TokenRange.FromTokens([19,3,80,101,86,81]),this.SpaceBeforeOpenBraceInControl=new t.Rule(t.RuleDescriptor.create2(this.ControlOpenBraceLeftTokenRange,16),t.RuleOperation.create2(new t.RuleOperationContext(r.IsControlDeclContext,r.IsNotFormatOnEnter,r.IsSameLineTokenOrBeforeMultilineBlockContext),2),1),this.SpaceAfterOpenBrace=new t.Rule(t.RuleDescriptor.create3(16,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsSingleLineBlockContext),2)),this.SpaceBeforeCloseBrace=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,17),t.RuleOperation.create2(new t.RuleOperationContext(r.IsSingleLineBlockContext),2)),this.NoSpaceAfterOpenBrace=new t.Rule(t.RuleDescriptor.create3(16,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsSingleLineBlockContext),8)),this.NoSpaceBeforeCloseBrace=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,17),t.RuleOperation.create2(new t.RuleOperationContext(r.IsSingleLineBlockContext),8)),this.NoSpaceBetweenEmptyBraceBrackets=new t.Rule(t.RuleDescriptor.create1(16,17),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsObjectContext),8)),this.NewLineAfterOpenBraceInBlockContext=new t.Rule(t.RuleDescriptor.create3(16,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsMultilineBlockContext),4)),this.NewLineBeforeCloseBraceInBlockContext=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.AnyIncludingMultilineComments,17),t.RuleOperation.create2(new t.RuleOperationContext(r.IsMultilineBlockContext),4)),this.NoSpaceAfterUnaryPrefixOperator=new t.Rule(t.RuleDescriptor.create4(t.Shared.TokenRange.UnaryPrefixOperators,t.Shared.TokenRange.UnaryPrefixExpressions),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsNotBinaryOpContext),8)),this.NoSpaceAfterUnaryPreincrementOperator=new t.Rule(t.RuleDescriptor.create3(42,t.Shared.TokenRange.UnaryPreincrementExpressions),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceAfterUnaryPredecrementOperator=new t.Rule(t.RuleDescriptor.create3(43,t.Shared.TokenRange.UnaryPredecrementExpressions),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceBeforeUnaryPostincrementOperator=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.UnaryPostincrementExpressions,42),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceBeforeUnaryPostdecrementOperator=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.UnaryPostdecrementExpressions,43),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.SpaceAfterPostincrementWhenFollowedByAdd=new t.Rule(t.RuleDescriptor.create1(42,36),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsBinaryOpContext),2)),this.SpaceAfterAddWhenFollowedByUnaryPlus=new t.Rule(t.RuleDescriptor.create1(36,36),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsBinaryOpContext),2)),this.SpaceAfterAddWhenFollowedByPreincrement=new t.Rule(t.RuleDescriptor.create1(36,42),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsBinaryOpContext),2)),this.SpaceAfterPostdecrementWhenFollowedBySubtract=new t.Rule(t.RuleDescriptor.create1(43,37),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsBinaryOpContext),2)),this.SpaceAfterSubtractWhenFollowedByUnaryMinus=new t.Rule(t.RuleDescriptor.create1(37,37),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsBinaryOpContext),2)),this.SpaceAfterSubtractWhenFollowedByPredecrement=new t.Rule(t.RuleDescriptor.create1(37,43),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsBinaryOpContext),2)),this.NoSpaceBeforeComma=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,25),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.SpaceAfterCertainKeywords=new t.Rule(t.RuleDescriptor.create4(t.Shared.TokenRange.FromTokens([103,99,93,79,95,102,120]),t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),2)),this.SpaceAfterLetConstInVariableDeclaration=new t.Rule(t.RuleDescriptor.create4(t.Shared.TokenRange.FromTokens([109,75]),t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsStartOfVariableDeclarationList),2)),this.NoSpaceBeforeOpenParenInFuncCall=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,18),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsFunctionCallOrNewContext,r.IsPreviousTokenNotComma),8)),this.SpaceAfterFunctionInFuncDecl=new t.Rule(t.RuleDescriptor.create3(88,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsFunctionDeclContext),2)),this.SpaceBeforeOpenParenInFuncDecl=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,18),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsFunctionDeclContext),2)),this.NoSpaceBeforeOpenParenInFuncDecl=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,18),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsFunctionDeclContext),8)),this.SpaceAfterVoidOperator=new t.Rule(t.RuleDescriptor.create3(104,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsVoidOpContext),2)),this.NoSpaceBetweenReturnAndSemicolon=new t.Rule(t.RuleDescriptor.create1(95,24),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.SpaceBetweenStatements=new t.Rule(t.RuleDescriptor.create4(t.Shared.TokenRange.FromTokens([19,80,81,72]),t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsNonJsxElementContext,r.IsNotForContext),2)),this.SpaceAfterTryFinally=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.FromTokens([101,86]),16),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),2)),this.SpaceAfterGetSetInMember=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.FromTokens([124,133]),70),t.RuleOperation.create2(new t.RuleOperationContext(r.IsFunctionDeclContext),2)),this.SpaceBeforeBinaryKeywordOperator=new t.Rule(t.RuleDescriptor.create4(t.Shared.TokenRange.Any,t.Shared.TokenRange.BinaryKeywordOperators),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsBinaryOpContext),2)),this.SpaceAfterBinaryKeywordOperator=new t.Rule(t.RuleDescriptor.create4(t.Shared.TokenRange.BinaryKeywordOperators,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsBinaryOpContext),2)),this.SpaceAfterConstructor=new t.Rule(t.RuleDescriptor.create1(122,18),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),2)),this.NoSpaceAfterConstructor=new t.Rule(t.RuleDescriptor.create1(122,18),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceAfterModuleImport=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.FromTokens([127,131]),18),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.SpaceAfterCertainTypeScriptKeywords=new t.Rule(t.RuleDescriptor.create4(t.Shared.TokenRange.FromTokens([116,74,123,78,82,83,84,124,107,90,108,127,128,111,113,112,130,133,114,136,138,126]),t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),2)),this.SpaceBeforeCertainTypeScriptKeywords=new t.Rule(t.RuleDescriptor.create4(t.Shared.TokenRange.Any,t.Shared.TokenRange.FromTokens([84,107,138])),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),2)),this.SpaceAfterModuleName=new t.Rule(t.RuleDescriptor.create1(9,16),t.RuleOperation.create2(new t.RuleOperationContext(r.IsModuleDeclContext),2)),this.SpaceBeforeArrow=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,35),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),2)),this.SpaceAfterArrow=new t.Rule(t.RuleDescriptor.create3(35,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),2)),this.NoSpaceAfterEllipsis=new t.Rule(t.RuleDescriptor.create1(23,70),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceAfterOptionalParameters=new t.Rule(t.RuleDescriptor.create3(54,t.Shared.TokenRange.FromTokens([19,25])),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsNotBinaryOpContext),8)),this.NoSpaceBeforeOpenAngularBracket=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.TypeNames,26),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsTypeArgumentOrParameterOrAssertionContext),8)),this.NoSpaceBetweenCloseParenAndAngularBracket=new t.Rule(t.RuleDescriptor.create1(19,26),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsTypeArgumentOrParameterOrAssertionContext),8)),this.NoSpaceAfterOpenAngularBracket=new t.Rule(t.RuleDescriptor.create3(26,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsTypeArgumentOrParameterOrAssertionContext),8)),this.NoSpaceBeforeCloseAngularBracket=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,28),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsTypeArgumentOrParameterOrAssertionContext),8)),this.NoSpaceAfterCloseAngularBracket=new t.Rule(t.RuleDescriptor.create3(28,t.Shared.TokenRange.FromTokens([18,20,28,25])),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsTypeArgumentOrParameterOrAssertionContext),8)),this.NoSpaceBetweenEmptyInterfaceBraceBrackets=new t.Rule(t.RuleDescriptor.create1(16,17),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsObjectTypeContext),8)),this.SpaceBeforeAt=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,56),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),2)),this.NoSpaceAfterAt=new t.Rule(t.RuleDescriptor.create3(56,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.SpaceAfterDecorator=new t.Rule(t.RuleDescriptor.create4(t.Shared.TokenRange.Any,t.Shared.TokenRange.FromTokens([116,70,83,78,74,114,113,111,112,124,133,20,38])),t.RuleOperation.create2(new t.RuleOperationContext(r.IsEndOfDecoratorContextOnSameLine),2)),this.NoSpaceBetweenFunctionKeywordAndStar=new t.Rule(t.RuleDescriptor.create1(88,38),t.RuleOperation.create2(new t.RuleOperationContext(r.IsFunctionDeclarationOrFunctionExpressionContext),8)),this.SpaceAfterStarInGeneratorDeclaration=new t.Rule(t.RuleDescriptor.create3(38,t.Shared.TokenRange.FromTokens([70,18])),t.RuleOperation.create2(new t.RuleOperationContext(r.IsFunctionDeclarationOrFunctionExpressionContext),2)),this.NoSpaceBetweenYieldKeywordAndStar=new t.Rule(t.RuleDescriptor.create1(115,38),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsYieldOrYieldStarWithOperand),8)),this.SpaceBetweenYieldOrYieldStarAndOperand=new t.Rule(t.RuleDescriptor.create4(t.Shared.TokenRange.FromTokens([115,38]),t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsYieldOrYieldStarWithOperand),2)),this.SpaceBetweenAsyncAndOpenParen=new t.Rule(t.RuleDescriptor.create1(119,18),t.RuleOperation.create2(new t.RuleOperationContext(r.IsArrowFunctionContext,r.IsNonJsxSameLineTokenContext),2)),this.SpaceBetweenAsyncAndFunctionKeyword=new t.Rule(t.RuleDescriptor.create1(119,88),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),2)),this.NoSpaceBetweenTagAndTemplateString=new t.Rule(t.RuleDescriptor.create3(70,t.Shared.TokenRange.FromTokens([12,13])),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.SpaceBeforeJsxAttribute=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,70),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNextTokenParentJsxAttribute,r.IsNonJsxSameLineTokenContext),2)),this.SpaceBeforeSlashInJsxOpeningElement=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,40),t.RuleOperation.create2(new t.RuleOperationContext(r.IsJsxSelfClosingElementContext,r.IsNonJsxSameLineTokenContext),2)),this.NoSpaceBeforeGreaterThanTokenInJsxOpeningElement=new t.Rule(t.RuleDescriptor.create1(40,28),t.RuleOperation.create2(new t.RuleOperationContext(r.IsJsxSelfClosingElementContext,r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceBeforeEqualInJsxAttribute=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,57),t.RuleOperation.create2(new t.RuleOperationContext(r.IsJsxAttributeContext,r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceAfterEqualInJsxAttribute=new t.Rule(t.RuleDescriptor.create3(57,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsJsxAttributeContext,r.IsNonJsxSameLineTokenContext),8)),this.HighPriorityCommonRules=[this.IgnoreBeforeComment,this.IgnoreAfterLineComment,this.NoSpaceBeforeColon,this.SpaceAfterColon,this.NoSpaceBeforeQuestionMark,this.SpaceAfterQuestionMarkInConditionalOperator,this.NoSpaceAfterQuestionMark,this.NoSpaceBeforeDot,this.NoSpaceAfterDot,this.NoSpaceAfterUnaryPrefixOperator,this.NoSpaceAfterUnaryPreincrementOperator,this.NoSpaceAfterUnaryPredecrementOperator,this.NoSpaceBeforeUnaryPostincrementOperator,this.NoSpaceBeforeUnaryPostdecrementOperator,this.SpaceAfterPostincrementWhenFollowedByAdd,this.SpaceAfterAddWhenFollowedByUnaryPlus,this.SpaceAfterAddWhenFollowedByPreincrement,this.SpaceAfterPostdecrementWhenFollowedBySubtract,this.SpaceAfterSubtractWhenFollowedByUnaryMinus,this.SpaceAfterSubtractWhenFollowedByPredecrement,this.NoSpaceAfterCloseBrace,this.NewLineBeforeCloseBraceInBlockContext,this.SpaceAfterCloseBrace,this.SpaceBetweenCloseBraceAndElse,this.SpaceBetweenCloseBraceAndWhile,this.NoSpaceBetweenEmptyBraceBrackets,this.NoSpaceBetweenFunctionKeywordAndStar,this.SpaceAfterStarInGeneratorDeclaration,this.SpaceAfterFunctionInFuncDecl,this.NewLineAfterOpenBraceInBlockContext,this.SpaceAfterGetSetInMember,this.NoSpaceBetweenYieldKeywordAndStar,this.SpaceBetweenYieldOrYieldStarAndOperand,this.NoSpaceBetweenReturnAndSemicolon,this.SpaceAfterCertainKeywords,this.SpaceAfterLetConstInVariableDeclaration,this.NoSpaceBeforeOpenParenInFuncCall,this.SpaceBeforeBinaryKeywordOperator,this.SpaceAfterBinaryKeywordOperator,this.SpaceAfterVoidOperator,this.SpaceBetweenAsyncAndOpenParen,this.SpaceBetweenAsyncAndFunctionKeyword,this.NoSpaceBetweenTagAndTemplateString,this.SpaceBeforeJsxAttribute,this.SpaceBeforeSlashInJsxOpeningElement,this.NoSpaceBeforeGreaterThanTokenInJsxOpeningElement,this.NoSpaceBeforeEqualInJsxAttribute,this.NoSpaceAfterEqualInJsxAttribute,this.NoSpaceAfterModuleImport,this.SpaceAfterCertainTypeScriptKeywords,this.SpaceBeforeCertainTypeScriptKeywords,this.SpaceAfterModuleName,this.SpaceBeforeArrow,this.SpaceAfterArrow,this.NoSpaceAfterEllipsis,this.NoSpaceAfterOptionalParameters,this.NoSpaceBetweenEmptyInterfaceBraceBrackets,this.NoSpaceBeforeOpenAngularBracket,this.NoSpaceBetweenCloseParenAndAngularBracket,this.NoSpaceAfterOpenAngularBracket,this.NoSpaceBeforeCloseAngularBracket,this.NoSpaceAfterCloseAngularBracket,this.SpaceBeforeAt,this.NoSpaceAfterAt,this.SpaceAfterDecorator],this.LowPriorityCommonRules=[this.NoSpaceBeforeSemicolon,this.SpaceBeforeOpenBraceInControl,this.SpaceBeforeOpenBraceInFunction,this.SpaceBeforeOpenBraceInTypeScriptDeclWithBlock,this.NoSpaceBeforeComma,this.NoSpaceBeforeOpenBracket,this.NoSpaceAfterCloseBracket,this.SpaceAfterSemicolon,this.SpaceBetweenStatements,this.SpaceAfterTryFinally],this.SpaceAfterComma=new t.Rule(t.RuleDescriptor.create3(25,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsNonJsxElementContext,r.IsNextTokenNotCloseBracket),2)),this.NoSpaceAfterComma=new t.Rule(t.RuleDescriptor.create3(25,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsNonJsxElementContext),8)),this.SpaceBeforeBinaryOperator=new t.Rule(t.RuleDescriptor.create4(t.Shared.TokenRange.Any,t.Shared.TokenRange.BinaryOperators),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsBinaryOpContext),2)),this.SpaceAfterBinaryOperator=new t.Rule(t.RuleDescriptor.create4(t.Shared.TokenRange.BinaryOperators,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsBinaryOpContext),2)),this.NoSpaceBeforeBinaryOperator=new t.Rule(t.RuleDescriptor.create4(t.Shared.TokenRange.Any,t.Shared.TokenRange.BinaryOperators),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsBinaryOpContext),8)),this.NoSpaceAfterBinaryOperator=new t.Rule(t.RuleDescriptor.create4(t.Shared.TokenRange.BinaryOperators,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsBinaryOpContext),8)),this.SpaceAfterKeywordInControl=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Keywords,18),t.RuleOperation.create2(new t.RuleOperationContext(r.IsControlDeclContext),2)),this.NoSpaceAfterKeywordInControl=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Keywords,18),t.RuleOperation.create2(new t.RuleOperationContext(r.IsControlDeclContext),8)),this.NewLineBeforeOpenBraceInFunction=new t.Rule(t.RuleDescriptor.create2(this.FunctionOpenBraceLeftTokenRange,16),t.RuleOperation.create2(new t.RuleOperationContext(r.IsFunctionDeclContext,r.IsBeforeMultilineBlockContext),4),1),this.NewLineBeforeOpenBraceInTypeScriptDeclWithBlock=new t.Rule(t.RuleDescriptor.create2(this.TypeScriptOpenBraceLeftTokenRange,16),t.RuleOperation.create2(new t.RuleOperationContext(r.IsTypeScriptDeclWithBlockContext,r.IsBeforeMultilineBlockContext),4),1),this.NewLineBeforeOpenBraceInControl=new t.Rule(t.RuleDescriptor.create2(this.ControlOpenBraceLeftTokenRange,16),t.RuleOperation.create2(new t.RuleOperationContext(r.IsControlDeclContext,r.IsBeforeMultilineBlockContext),4),1),this.SpaceAfterSemicolonInFor=new t.Rule(t.RuleDescriptor.create3(24,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsForContext),2)),this.NoSpaceAfterSemicolonInFor=new t.Rule(t.RuleDescriptor.create3(24,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsForContext),8)),this.SpaceAfterOpenParen=new t.Rule(t.RuleDescriptor.create3(18,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),2)),this.SpaceBeforeCloseParen=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,19),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),2)),this.NoSpaceBetweenParens=new t.Rule(t.RuleDescriptor.create1(18,19),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceAfterOpenParen=new t.Rule(t.RuleDescriptor.create3(18,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceBeforeCloseParen=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,19),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.SpaceAfterOpenBracket=new t.Rule(t.RuleDescriptor.create3(20,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),2)),this.SpaceBeforeCloseBracket=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,21),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),2)),this.NoSpaceBetweenBrackets=new t.Rule(t.RuleDescriptor.create1(20,21),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceAfterOpenBracket=new t.Rule(t.RuleDescriptor.create3(20,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceBeforeCloseBracket=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,21),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceAfterTemplateHeadAndMiddle=new t.Rule(t.RuleDescriptor.create4(t.Shared.TokenRange.FromTokens([13,14]),t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.SpaceAfterTemplateHeadAndMiddle=new t.Rule(t.RuleDescriptor.create4(t.Shared.TokenRange.FromTokens([13,14]),t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),2)),this.NoSpaceBeforeTemplateMiddleAndTail=new t.Rule(t.RuleDescriptor.create4(t.Shared.TokenRange.Any,t.Shared.TokenRange.FromTokens([14,15])),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.SpaceBeforeTemplateMiddleAndTail=new t.Rule(t.RuleDescriptor.create4(t.Shared.TokenRange.Any,t.Shared.TokenRange.FromTokens([14,15])),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),2)),this.NoSpaceAfterOpenBraceInJsxExpression=new t.Rule(t.RuleDescriptor.create3(16,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsJsxExpressionContext),8)),this.SpaceAfterOpenBraceInJsxExpression=new t.Rule(t.RuleDescriptor.create3(16,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsJsxExpressionContext),2)),this.NoSpaceBeforeCloseBraceInJsxExpression=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,17),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsJsxExpressionContext),8)),this.SpaceBeforeCloseBraceInJsxExpression=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,17),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsJsxExpressionContext),2)),this.SpaceAfterAnonymousFunctionKeyword=new t.Rule(t.RuleDescriptor.create1(88,18),t.RuleOperation.create2(new t.RuleOperationContext(r.IsFunctionDeclContext),2)),this.NoSpaceAfterAnonymousFunctionKeyword=new t.Rule(t.RuleDescriptor.create1(88,18),t.RuleOperation.create2(new t.RuleOperationContext(r.IsFunctionDeclContext),8)),this.NoSpaceAfterTypeAssertion=new t.Rule(t.RuleDescriptor.create3(28,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsTypeAssertionContext),8)),this.SpaceAfterTypeAssertion=new t.Rule(t.RuleDescriptor.create3(28,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsTypeAssertionContext),2))}return r.prototype.getRuleName=function(e){var t=this;for(var r in t)if(t[r]===e)return r;throw new Error("Unknown rule")},r.IsForContext=function(e){return 211===e.contextNode.kind},r.IsNotForContext=function(e){return!r.IsForContext(e)},r.IsBinaryOpContext=function(e){switch(e.contextNode.kind){case 192:case 193:case 200:case 243:case 239:case 156:case 164:case 165:return!0;case 174:case 228:case 234:case 223:case 144:case 260:case 147:case 146:return 57===e.currentTokenSpan.kind||57===e.nextTokenSpan.kind;case 212:case 143:return 91===e.currentTokenSpan.kind||91===e.nextTokenSpan.kind;case 213:return 140===e.currentTokenSpan.kind||140===e.nextTokenSpan.kind}return!1},r.IsNotBinaryOpContext=function(e){return!r.IsBinaryOpContext(e)},r.IsConditionalOperatorContext=function(e){return 193===e.contextNode.kind},r.IsSameLineTokenOrBeforeMultilineBlockContext=function(e){return e.TokensAreOnSameLine()||r.IsBeforeMultilineBlockContext(e)},r.IsBeforeMultilineBlockContext=function(e){return r.IsBeforeBlockContext(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())},r.IsMultilineBlockContext=function(e){return r.IsBlockContext(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())},r.IsSingleLineBlockContext=function(e){return r.IsBlockContext(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())},r.IsBlockContext=function(e){return r.NodeIsBlockContext(e.contextNode)},r.IsBeforeBlockContext=function(e){return r.NodeIsBlockContext(e.nextTokenParent)},r.NodeIsBlockContext=function(e){if(r.NodeIsTypeScriptDeclWithBlockContext(e))return!0;switch(e.kind){case 204:case 232:case 176:case 231:return!0}return!1},r.IsFunctionDeclContext=function(e){switch(e.contextNode.kind){case 225:case 149:case 148:case 151:case 152:case 153:case 184:case 150:case 185:case 227:return!0}return!1},r.IsFunctionDeclarationOrFunctionExpressionContext=function(e){return 225===e.contextNode.kind||184===e.contextNode.kind},r.IsTypeScriptDeclWithBlockContext=function(e){return r.NodeIsTypeScriptDeclWithBlockContext(e.contextNode)},r.NodeIsTypeScriptDeclWithBlockContext=function(e){switch(e.kind){case 226:case 197:case 227:case 229:case 161:case 230:case 241:case 242:case 235:case 238:return!0}return!1},r.IsAfterCodeBlockContext=function(e){switch(e.currentTokenParent.kind){case 226:case 230:case 229:case 256:case 231:case 218:return!0;case 204:var t=e.currentTokenParent.parent;if(185!==t.kind&&184!==t.kind)return!0}return!1},r.IsControlDeclContext=function(e){switch(e.contextNode.kind){
case 208:case 218:case 211:case 212:case 213:case 210:case 221:case 209:case 217:case 256:return!0;default:return!1}},r.IsObjectContext=function(e){return 176===e.contextNode.kind},r.IsFunctionCallContext=function(e){return 179===e.contextNode.kind},r.IsNewContext=function(e){return 180===e.contextNode.kind},r.IsFunctionCallOrNewContext=function(e){return r.IsFunctionCallContext(e)||r.IsNewContext(e)},r.IsPreviousTokenNotComma=function(e){return 25!==e.currentTokenSpan.kind},r.IsNextTokenNotCloseBracket=function(e){return 21!==e.nextTokenSpan.kind},r.IsArrowFunctionContext=function(e){return 185===e.contextNode.kind},r.IsNonJsxSameLineTokenContext=function(e){return e.TokensAreOnSameLine()&&10!==e.contextNode.kind},r.IsNonJsxElementContext=function(e){return 246!==e.contextNode.kind},r.IsJsxExpressionContext=function(e){return 252===e.contextNode.kind},r.IsNextTokenParentJsxAttribute=function(e){return 250===e.nextTokenParent.kind},r.IsJsxAttributeContext=function(e){return 250===e.contextNode.kind},r.IsJsxSelfClosingElementContext=function(e){return 247===e.contextNode.kind},r.IsNotBeforeBlockInFunctionDeclarationContext=function(e){return!r.IsFunctionDeclContext(e)&&!r.IsBeforeBlockContext(e)},r.IsEndOfDecoratorContextOnSameLine=function(e){return e.TokensAreOnSameLine()&&e.contextNode.decorators&&r.NodeIsInDecoratorContext(e.currentTokenParent)&&!r.NodeIsInDecoratorContext(e.nextTokenParent)},r.NodeIsInDecoratorContext=function(t){for(;e.isPartOfExpression(t);)t=t.parent;return 145===t.kind},r.IsStartOfVariableDeclarationList=function(e){return 224===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos},r.IsNotFormatOnEnter=function(e){return 2!==e.formattingRequestKind},r.IsModuleDeclContext=function(e){return 230===e.contextNode.kind},r.IsObjectTypeContext=function(e){return 161===e.contextNode.kind},r.IsTypeArgumentOrParameterOrAssertion=function(e,t){if(26!==e.kind&&28!==e.kind)return!1;switch(t.kind){case 157:case 182:case 228:case 226:case 197:case 227:case 225:case 184:case 185:case 149:case 148:case 153:case 154:case 179:case 180:case 199:return!0;default:return!1}},r.IsTypeArgumentOrParameterOrAssertionContext=function(e){return r.IsTypeArgumentOrParameterOrAssertion(e.currentTokenSpan,e.currentTokenParent)||r.IsTypeArgumentOrParameterOrAssertion(e.nextTokenSpan,e.nextTokenParent)},r.IsTypeAssertionContext=function(e){return 182===e.contextNode.kind},r.IsVoidOpContext=function(e){return 104===e.currentTokenSpan.kind&&188===e.currentTokenParent.kind},r.IsYieldOrYieldStarWithOperand=function(e){return 195===e.contextNode.kind&&void 0!==e.contextNode.expression},r}();t.Rules=r}(t=e.formatting||(e.formatting={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){var r=function(){function r(){this.map=[],this.mapRowLength=0}return r.create=function(e){var t=new r;return t.Initialize(e),t},r.prototype.Initialize=function(e){this.mapRowLength=141,this.map=new Array(this.mapRowLength*this.mapRowLength);var t=new Array(this.map.length);return this.FillRules(e,t),this.map},r.prototype.FillRules=function(e,t){var r=this;e.forEach(function(e){r.FillRule(e,t)})},r.prototype.GetRuleBucketIndex=function(t,r){e.Debug.assert(t<=140&&r<=140,"Must compute formatting context from tokens");var n=t*this.mapRowLength+r;return n},r.prototype.FillRule=function(e,r){var n=this,a=e.Descriptor.LeftTokenRange!==t.Shared.TokenRange.Any&&e.Descriptor.RightTokenRange!==t.Shared.TokenRange.Any;e.Descriptor.LeftTokenRange.GetTokens().forEach(function(t){e.Descriptor.RightTokenRange.GetTokens().forEach(function(i){var o=n.GetRuleBucketIndex(t,i),c=n.map[o];void 0===c&&(c=n.map[o]=new s),c.AddRule(e,a,r,o)})})},r.prototype.GetRule=function(e){var t=this.GetRuleBucketIndex(e.currentTokenSpan.kind,e.nextTokenSpan.kind),r=this.map[t];if(r)for(var n=0,a=r.Rules();n<a.length;n++){var i=a[n];if(i.Operation.Context.InContext(e))return i}},r}();t.RulesMap=r;var n,a=5,i=31;!function(e){e[e.IgnoreRulesSpecific=0]="IgnoreRulesSpecific",e[e.IgnoreRulesAny=1*a]="IgnoreRulesAny",e[e.ContextRulesSpecific=2*a]="ContextRulesSpecific",e[e.ContextRulesAny=3*a]="ContextRulesAny",e[e.NoContextRulesSpecific=4*a]="NoContextRulesSpecific",e[e.NoContextRulesAny=5*a]="NoContextRulesAny"}(n=t.RulesPosition||(t.RulesPosition={}));var o=function(){function t(){this.rulesInsertionIndexBitmap=0}return t.prototype.GetInsertionIndex=function(e){for(var t=0,r=0,n=this.rulesInsertionIndexBitmap;r<=e;)t+=n&i,n>>=a,r+=a;return t},t.prototype.IncreaseInsertionIndex=function(t){var r=this.rulesInsertionIndexBitmap>>t&i;r++,e.Debug.assert((r&i)===r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules.");var n=this.rulesInsertionIndexBitmap&~(i<<t);n|=r<<t,this.rulesInsertionIndexBitmap=n},t}();t.RulesBucketConstructionState=o;var s=function(){function e(){this.rules=[]}return e.prototype.Rules=function(){return this.rules},e.prototype.AddRule=function(e,t,r,a){var i;i=1===e.Operation.Action?t?n.IgnoreRulesSpecific:n.IgnoreRulesAny:e.Operation.Context.IsAny()?t?n.NoContextRulesSpecific:n.NoContextRulesAny:t?n.ContextRulesSpecific:n.ContextRulesAny;var s=r[a];void 0===s&&(s=r[a]=new o);var c=s.GetInsertionIndex(i);this.rules.splice(c,0,e),s.IncreaseInsertionIndex(i)},e}();t.RulesBucket=s}(t=e.formatting||(e.formatting={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){var r;!function(t){var r=function(){function t(t,r,n){this.tokens=[];for(var a=t;a<=r;a++)e.indexOf(n,a)<0&&this.tokens.push(a)}return t.prototype.GetTokens=function(){return this.tokens},t.prototype.Contains=function(e){return this.tokens.indexOf(e)>=0},t}();t.TokenRangeAccess=r;var n=function(){function e(e){this.tokens=e&&e.length?e:[]}return e.prototype.GetTokens=function(){return this.tokens},e.prototype.Contains=function(e){return this.tokens.indexOf(e)>=0},e}();t.TokenValuesAccess=n;var a=function(){function e(e){this.token=e}return e.prototype.GetTokens=function(){return[this.token]},e.prototype.Contains=function(e){return e===this.token},e}();t.TokenSingleValueAccess=a;var i=function(){function e(){}return e.prototype.GetTokens=function(){for(var e=[],t=0;t<=140;t++)e.push(t);return e},e.prototype.Contains=function(){return!0},e.prototype.toString=function(){return"[allTokens]"},e}();t.TokenAllAccess=i;var o=function(){function e(e){this.tokenAccess=e}return e.FromToken=function(t){return new e(new a(t))},e.FromTokens=function(t){return new e(new n(t))},e.FromRange=function(t,n,a){return void 0===a&&(a=[]),new e(new r(t,n,a))},e.AllTokens=function(){return new e(new i)},e.prototype.GetTokens=function(){return this.tokenAccess.GetTokens()},e.prototype.Contains=function(e){return this.tokenAccess.Contains(e)},e.prototype.toString=function(){return this.tokenAccess.toString()},e}();o.Any=o.AllTokens(),o.AnyIncludingMultilineComments=o.FromTokens(o.Any.GetTokens().concat([3])),o.Keywords=o.FromRange(71,140),o.BinaryOperators=o.FromRange(26,69),o.BinaryKeywordOperators=o.FromTokens([91,92,140,117,125]),o.UnaryPrefixOperators=o.FromTokens([42,43,51,50]),o.UnaryPrefixExpressions=o.FromTokens([8,70,18,20,16,98,93]),o.UnaryPreincrementExpressions=o.FromTokens([70,18,98,93]),o.UnaryPostincrementExpressions=o.FromTokens([70,19,21,93]),o.UnaryPredecrementExpressions=o.FromTokens([70,18,98,93]),o.UnaryPostdecrementExpressions=o.FromTokens([70,19,21,93]),o.Comments=o.FromTokens([2,3]),o.TypeNames=o.FromTokens([70,132,134,121,135,104,118]),t.TokenRange=o}(r=t.Shared||(t.Shared={}))}(t=e.formatting||(e.formatting={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){var r=function(){function r(){this.globalRules=new t.Rules}return r.prototype.getRuleName=function(e){return this.globalRules.getRuleName(e)},r.prototype.getRuleByName=function(e){return this.globalRules[e]},r.prototype.getRulesMap=function(){return this.rulesMap},r.prototype.ensureUpToDate=function(r){if(!this.options||!e.compareDataObjects(this.options,r)){var n=this.createActiveRules(r),a=t.RulesMap.create(n);this.activeRules=n,this.rulesMap=a,this.options=e.clone(r)}},r.prototype.createActiveRules=function(e){var t=this.globalRules.HighPriorityCommonRules.slice(0);return e.insertSpaceAfterConstructor?t.push(this.globalRules.SpaceAfterConstructor):t.push(this.globalRules.NoSpaceAfterConstructor),e.insertSpaceAfterCommaDelimiter?t.push(this.globalRules.SpaceAfterComma):t.push(this.globalRules.NoSpaceAfterComma),e.insertSpaceAfterFunctionKeywordForAnonymousFunctions?t.push(this.globalRules.SpaceAfterAnonymousFunctionKeyword):t.push(this.globalRules.NoSpaceAfterAnonymousFunctionKeyword),e.insertSpaceAfterKeywordsInControlFlowStatements?t.push(this.globalRules.SpaceAfterKeywordInControl):t.push(this.globalRules.NoSpaceAfterKeywordInControl),e.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis?(t.push(this.globalRules.SpaceAfterOpenParen),t.push(this.globalRules.SpaceBeforeCloseParen),t.push(this.globalRules.NoSpaceBetweenParens)):(t.push(this.globalRules.NoSpaceAfterOpenParen),t.push(this.globalRules.NoSpaceBeforeCloseParen),t.push(this.globalRules.NoSpaceBetweenParens)),e.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets?(t.push(this.globalRules.SpaceAfterOpenBracket),t.push(this.globalRules.SpaceBeforeCloseBracket),t.push(this.globalRules.NoSpaceBetweenBrackets)):(t.push(this.globalRules.NoSpaceAfterOpenBracket),t.push(this.globalRules.NoSpaceBeforeCloseBracket),t.push(this.globalRules.NoSpaceBetweenBrackets)),e.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces!==!1?(t.push(this.globalRules.SpaceAfterOpenBrace),t.push(this.globalRules.SpaceBeforeCloseBrace),t.push(this.globalRules.NoSpaceBetweenEmptyBraceBrackets)):(t.push(this.globalRules.NoSpaceAfterOpenBrace),t.push(this.globalRules.NoSpaceBeforeCloseBrace),t.push(this.globalRules.NoSpaceBetweenEmptyBraceBrackets)),e.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces?(t.push(this.globalRules.SpaceAfterTemplateHeadAndMiddle),t.push(this.globalRules.SpaceBeforeTemplateMiddleAndTail)):(t.push(this.globalRules.NoSpaceAfterTemplateHeadAndMiddle),t.push(this.globalRules.NoSpaceBeforeTemplateMiddleAndTail)),e.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces?(t.push(this.globalRules.SpaceAfterOpenBraceInJsxExpression),t.push(this.globalRules.SpaceBeforeCloseBraceInJsxExpression)):(t.push(this.globalRules.NoSpaceAfterOpenBraceInJsxExpression),t.push(this.globalRules.NoSpaceBeforeCloseBraceInJsxExpression)),e.insertSpaceAfterSemicolonInForStatements?t.push(this.globalRules.SpaceAfterSemicolonInFor):t.push(this.globalRules.NoSpaceAfterSemicolonInFor),e.insertSpaceBeforeAndAfterBinaryOperators?(t.push(this.globalRules.SpaceBeforeBinaryOperator),t.push(this.globalRules.SpaceAfterBinaryOperator)):(t.push(this.globalRules.NoSpaceBeforeBinaryOperator),t.push(this.globalRules.NoSpaceAfterBinaryOperator)),e.insertSpaceBeforeFunctionParenthesis?t.push(this.globalRules.SpaceBeforeOpenParenInFuncDecl):t.push(this.globalRules.NoSpaceBeforeOpenParenInFuncDecl),e.placeOpenBraceOnNewLineForControlBlocks&&t.push(this.globalRules.NewLineBeforeOpenBraceInControl),e.placeOpenBraceOnNewLineForFunctions&&(t.push(this.globalRules.NewLineBeforeOpenBraceInFunction),t.push(this.globalRules.NewLineBeforeOpenBraceInTypeScriptDeclWithBlock)),e.insertSpaceAfterTypeAssertion?t.push(this.globalRules.SpaceAfterTypeAssertion):t.push(this.globalRules.NoSpaceAfterTypeAssertion),t=t.concat(this.globalRules.LowPriorityCommonRules)},r}();t.RulesProvider=r}(t=e.formatting||(e.formatting={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r,n,a){var i=r.getLineAndCharacterOfPosition(t).line;if(0===i)return[];for(var o=e.getEndLinePosition(i,r);e.isWhiteSpaceSingleLine(r.text.charCodeAt(o));)o--;e.isLineBreak(r.text.charCodeAt(o))&&o--;var s={pos:e.getStartPositionOfLine(i-1,r),end:o+1};return f(s,r,a,n,2)}function n(e,t,r,n){return s(e,24,t,n,r,3)}function a(e,t,r,n){return s(e,17,t,n,r,4)}function i(e,t,r){var n={pos:0,end:e.text.length};return f(n,e,r,t,0)}function o(t,r,n,a,i){var o={pos:e.getLineStartPositionForPosition(t,n),end:r};return f(o,n,i,a,1)}function s(t,r,n,a,i,o){var s=c(t,r,n);if(!s)return[];var u={pos:e.getLineStartPositionForPosition(s.getStart(n),n),end:s.end};return f(u,n,a,i,o)}function c(t,r,n){var a=e.findPrecedingToken(t,n);if(a&&a.kind===r&&t===a.getEnd()){for(var i=a;i&&i.parent&&i.parent.end===a.end&&!u(i.parent,i);)i=i.parent;return i}}function u(t,r){switch(t.kind){case 226:case 227:return e.rangeContainsRange(t.members,r);case 230:var n=t.body;return n&&231===n.kind&&e.rangeContainsRange(n.statements,r);case 261:case 204:case 231:return e.rangeContainsRange(t.statements,r);case 256:return e.rangeContainsRange(t.block.statements,r)}return!1}function _(t,r){function n(a){var i=e.forEachChild(a,function(n){return e.startEndContainsRange(n.getStart(r),n.end,t)&&n});if(i){var o=n(i);if(o)return o}return a}return n(r)}function l(t,r){function n(){return!1}if(!t.length)return n;var a=t.filter(function(t){return e.rangeOverlapsWithStartEnd(r,t.start,t.start+t.length)}).sort(function(e,t){return e.start-t.start});if(!a.length)return n;var i=0;return function(t){for(;;){if(i>=a.length)return!1;var r=a[i];if(t.end<=r.start)return!1;if(e.startEndOverlapsWithStartEnd(t.pos,t.end,r.start,r.start+r.length))return!0;i++}}}function d(t,r,n){var a=t.getStart(n);if(a===r.pos&&t.end===r.end)return a;var i=e.findPrecedingToken(r.pos,n);return i?i.end>=r.pos?t.pos:i.end:t.pos}function p(e,r,n){for(var a,i=-1;e;){var o=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(i!==-1&&o!==i)break;if(t.SmartIndenter.shouldIndentChildNode(e,a))return r.indentSize;i=o,a=e,e=e.parent}return 0}function f(r,n,a,i,o){function s(r,i,o,s,c){if(e.rangeOverlapsWithStartEnd(s,r,i)||e.rangeContainsStartEnd(s,r,i)){if(c!==-1)return c}else{var u=n.getLineAndCharacterOfPosition(r).line,_=e.getLineStartPositionForPosition(r,n),l=t.SmartIndenter.findFirstNonWhitespaceColumn(_,r,n,a);if(u!==o||r===l){var d=t.SmartIndenter.getBaseIndentation(a);return d>l?d:l}}return-1}function c(e,r,i,o,s,c){var u=i,_=t.SmartIndenter.shouldIndentChildNode(e)?a.indentSize:0;return c===r?(u=r===M?B:s.getIndentation(),_=Math.min(a.indentSize,s.getDelta(e)+_)):u===-1&&(u=t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(o,e,r,n)?s.getIndentation():s.getIndentation()+s.getDelta(e)),{indentation:u,delta:_}}function u(e){if(e.modifiers&&e.modifiers.length)return e.modifiers[0].kind;switch(e.kind){case 226:return 74;case 227:return 108;case 225:return 88;case 229:return 229;case 151:return 124;case 152:return 133;case 149:if(e.asteriskToken)return 38;case 147:case 144:return e.name.kind}}function f(e,r,n,i){function o(r,n){return t.SmartIndenter.nodeWillIndentChild(e,n,!0)?r:0}return{getIndentationForComment:function(e,t,r){switch(e){case 17:case 21:case 19:return n+o(i,r)}return t!==-1?t:n},getIndentationForToken:function(t,a,s){if(r!==t&&e.decorators&&a===u(e))return n;switch(a){case 16:case 17:case 18:case 19:case 81:case 105:case 56:return n;case 40:case 28:if(248===s.kind||249===s.kind||247===s.kind)return n;break;case 20:case 21:if(170!==s.kind)return n}return r!==t?n+o(i,s):n},getIndentation:function(){return n},getDelta:function(e){return o(i,e)},recomputeIndentation:function(r){e.parent&&t.SmartIndenter.shouldIndentChildNode(e.parent,e)&&(r?n+=a.indentSize:n-=a.indentSize,i=t.SmartIndenter.shouldIndentChildNode(e)?a.indentSize:0)}}}function v(t,a,i,o,u,_){function l(a,i,o,u,_,l,d,f){var m=a.getStart(n),g=n.getLineAndCharacterOfPosition(m).line,y=g;a.decorators&&(y=n.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(a,n)).line);var h=-1;if(d&&(h=s(m,a.end,_,r,i),h!==-1&&(i=h)),!e.rangeOverlapsWithStartEnd(r,a.pos,a.end))return a.end<r.pos&&j.skipToEndOf(a),i;if(0===a.getFullWidth())return i;for(;j.isOnToken();){var b=j.readTokenInfo(t);if(b.token.end>m)break;p(b,t,u,t)}if(!j.isOnToken())return i;if(e.isToken(a)&&10!==a.kind){var b=j.readTokenInfo(a);return e.Debug.assert(b.token.end===a.end,"Token end is child end"),p(b,t,u,a),i}var x=145===a.kind?g:l,D=c(a,g,h,t,u,x);return v(a,k,g,y,D.indentation,D.delta),k=t,f&&175===o.kind&&i===-1&&(i=D.indentation),i}function d(r,a,i,o){var s=m(a,r),u=g(s),_=o,d=i;if(0!==s)for(;j.isOnToken();){var y=j.readTokenInfo(a);if(y.token.end>r.pos)break;if(y.token.kind===s){d=n.getLineAndCharacterOfPosition(y.token.pos).line;var v=c(y.token,d,-1,a,o,i);_=f(a,i,v.indentation,v.delta),p(y,a,_,a)}else p(y,a,o,a)}for(var h=-1,b=0;b<r.length;b++){var k=r[b];h=l(k,h,t,_,d,d,!0,0===b)}if(0!==u&&j.isOnToken()){var y=j.readTokenInfo(a);y.token.kind===u&&e.rangeContainsRange(a,y.token)&&p(y,a,_,a)}}function p(t,a,i,o){e.Debug.assert(e.rangeContainsRange(a,t.token));var s=j.lastTrailingTriviaWasNewLine(),c=!1;t.leadingTrivia&&h(t.leadingTrivia,a,k,i);var u,_=e.rangeContainsRange(r,t.token),l=n.getLineAndCharacterOfPosition(t.token.pos);if(_){var d=K(t.token),p=I;if(u=b(t.token,l,a,k,i),d)c=!1;else if(void 0!==u)c=u;else{var f=p&&n.getLineAndCharacterOfPosition(p.end).line;c=s&&l.line!==f}}if(t.trailingTrivia&&h(t.trailingTrivia,a,k,i),c){var m=_&&!K(t.token)?i.getIndentationForToken(l.line,t.token.kind,o):-1,g=!0;if(t.leadingTrivia)for(var y=i.getIndentationForComment(t.token.kind,m,o),v=0,D=t.leadingTrivia;v<D.length;v++){var S=D[v],E=e.rangeContainsRange(r,S);switch(S.kind){case 3:E&&C(S,y,!g),g=!1;break;case 2:g&&E&&x(S.pos,y,!1),g=!1;break;case 4:g=!0}}m!==-1&&g&&(x(t.token.pos,m,u),M=l.line,B=m)}j.advance(),k=a}if(e.rangeOverlapsWithStartEnd(r,t.getStart(n),t.getEnd())){var y=f(t,i,u,_),k=a;for(e.forEachChild(t,function(e){l(e,-1,t,y,i,o,!1)},function(e){d(e,t,i,y)});j.isOnToken();){var D=j.readTokenInfo(t);if(D.token.end>t.end)break;p(D,t,y,t)}}}function h(t,a,i,o){for(var s=0,c=t;s<c.length;s++){var u=c[s];if(e.isComment(u.kind)&&e.rangeContainsRange(r,u)){var _=n.getLineAndCharacterOfPosition(u.pos);b(u,_,a,i,o)}}}function b(e,t,a,i,o){var s,c=K(e);if(!c&&!O)if(I)s=k(e,t.line,a,I,L,R,i,o);else{var u=n.getLineAndCharacterOfPosition(r.pos);E(u.line,t.line)}return I=e,R=a,L=t.line,O=c,s}function k(e,t,r,a,o,s,c,u){J.updateContext(a,s,e,r,c);var _,l,d=i.getRulesMap().GetRule(J);return d?(F(d,a,o,e,t),10&d.Operation.Action&&t!==o?(l=!1,r.getStart(n)===e.pos&&u.recomputeIndentation(!1)):4&d.Operation.Action&&t===o&&(l=!0,r.getStart(n)===e.pos&&u.recomputeIndentation(!0)),_=!(8&d.Operation.Action)&&1!==d.Flag):_=!0,t!==o&&_&&E(o,t,a),l}function x(t,r,i){var o=y(r,a);if(i)P(t,0,o);else{var s=n.getLineAndCharacterOfPosition(t),c=e.getStartPositionOfLine(s.line,n);(r!==D(c,s.character)||S(o,c))&&P(c,s.character,o)}}function D(e,t){for(var r=0,i=0;i<t;i++)9===n.text.charCodeAt(e+i)?r+=a.tabSize-r%a.tabSize:r++;return r}function S(e,t){return e!==n.text.substr(t,e.length)}function C(r,i,o){var s,c=n.getLineAndCharacterOfPosition(r.pos).line,u=n.getLineAndCharacterOfPosition(r.end).line;if(c===u)return void(o||x(r.pos,i,!1));s=[];for(var _=r.pos,l=c;l<u;l++){var d=e.getEndLinePosition(l,n);s.push({pos:_,end:d}),_=e.getStartPositionOfLine(l+1,n)}s.push({pos:_,end:r.end});var p=e.getStartPositionOfLine(c,n),f=t.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(p,s[0].pos,n,a);if(i!==f.column){var m=0;o&&(m=1,c++);for(var g=i-f.column,v=m,h=s.length;v<h;v++,c++){var b=e.getStartPositionOfLine(c,n),k=0===v?f:t.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(s[v].pos,s[v].end,n,a),D=k.column+g;if(D>0){var S=y(D,a);P(b,k.character,S)}else w(b,k.character)}}}function E(t,r,a){for(var i=t;i<r;i++){var o=e.getStartPositionOfLine(i,n),s=e.getEndLinePosition(i,n);if(!(a&&(e.isComment(a.kind)||e.isStringOrRegularExpressionOrTemplateLiteral(a.kind))&&a.pos<=s&&a.end>s)){var c=T(o,s);c!==-1&&(e.Debug.assert(c===o||!e.isWhiteSpaceSingleLine(n.text.charCodeAt(c-1))),w(c,s+1-c))}}}function T(t,r){for(var a=r;a>=t&&e.isWhiteSpaceSingleLine(n.text.charCodeAt(a));)a--;return a!==r?a+1:-1}function N(){var e=I?I.end:r.pos,t=n.getLineAndCharacterOfPosition(e).line,a=n.getLineAndCharacterOfPosition(r.end).line;E(t,a+1,I)}function A(t,r,n){return{span:e.createTextSpan(t,r),newText:n}}function w(e,t){t&&U.push(A(e,t,""))}function P(e,t,r){(t||r)&&U.push(A(e,t,r))}function F(e,t,r,i,o){switch(e.Operation.Action){case 1:return;case 8:t.end!==i.pos&&w(t.end,i.pos-t.end);break;case 4:if(1!==e.Flag&&r!==o)return;var s=o-r;1!==s&&P(t.end,i.pos-t.end,a.newLineCharacter);break;case 2:if(1!==e.Flag&&r!==o)return;var c=i.pos-t.end;1===c&&32===n.text.charCodeAt(t.end)||P(t.end,i.pos-t.end," ")}}var O,I,R,L,M,B,K=l(n.parseDiagnostics,r),J=new t.FormattingContext(n,o),z=_(r,n),j=t.getFormattingScanner(n,d(z,r,n),r.end),V=t.SmartIndenter.getIndentationForNode(z,r,n,a),U=[];if(j.advance(),j.isOnToken()){var q=n.getLineAndCharacterOfPosition(z.getStart(n)).line,W=q;z.decorators&&(W=n.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(z,n)).line);var H=p(z,a,n);v(z,z,q,W,V,H)}if(!j.isOnToken()){var G=j.getCurrentLeadingTrivia();G&&(h(G,z,z,void 0),N())}return j.close(),U}function m(e,t){switch(e.kind){case 150:case 225:case 184:case 149:case 148:case 185:if(e.typeParameters===t)return 26;if(e.parameters===t)return 18;break;case 179:case 180:if(e.typeArguments===t)return 26;if(e.arguments===t)return 18;break;case 157:if(e.typeArguments===t)return 26}return 0}function g(e){switch(e){case 18:return 19;case 26:return 28}return 0}function y(e,t){function r(e,t){for(var r="",n=0;n<t;n++)r+=e;return r}var n=!h||h.tabSize!==t.tabSize||h.indentSize!==t.indentSize;if(n&&(h={tabSize:t.tabSize,indentSize:t.indentSize},b=k=void 0),t.convertTabsToSpaces){var a=void 0,i=Math.floor(e/t.indentSize),o=e%t.indentSize;return k||(k=[]),void 0===k[i]?(a=r(" ",t.indentSize*i),k[i]=a):a=k[i],o?a+r(" ",o):a}var s=Math.floor(e/t.tabSize),c=e-s*t.tabSize,u=void 0;return b||(b=[]),void 0===b[s]?b[s]=u=r("\t",s):u=b[s],c?u+r(" ",c):u}var v;!function(e){e[e.Unknown=-1]="Unknown"}(v||(v={})),t.formatOnEnter=r,t.formatOnSemicolon=n,t.formatOnClosingCurly=a,t.formatDocument=i,t.formatSelection=o;var h,b,k;t.getIndentationString=y}(t=e.formatting||(e.formatting={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){var r;!function(t){function r(r,n,o){if(r>n.text.length)return a(o);if(o.indentStyle===e.IndentStyle.None)return 0;var c=e.findPrecedingToken(r,n);if(!c)return a(o);var l=e.isStringOrRegularExpressionOrTemplateLiteral(c.kind);if(l&&c.getStart(n)<=r&&c.end>r)return 0;var d=n.getLineAndCharacterOfPosition(r).line;if(o.indentStyle===e.IndentStyle.Block){for(var m=r;m>0;){var g=n.text.charCodeAt(m);if(!e.isWhiteSpace(g))break;m--}var y=e.getLineStartPositionForPosition(m,n);return t.findFirstNonWhitespaceColumn(y,m,n,o)}if(25===c.kind&&192!==c.parent.kind){var v=s(c,n,o);if(v!==-1)return v}for(var h,b,x,D=c;D;){if(e.positionBelongsToNode(D,r,n)&&k(D,h)){b=_(D,n),x=u(c,D,d,n)?0:d!==b.line?o.indentSize:0;break}var v=p(D,n,o);if(v!==-1)return v;if(v=f(D,n,o),v!==-1)return v+o.indentSize;h=D,D=D.parent}return D?i(D,b,void 0,x,n,o):a(o)}function n(e,t,r,n){var a=r.getLineAndCharacterOfPosition(e.getStart(r));return i(e,a,t,0,r,n)}function a(e){return e.baseIndentSize||0}function i(e,t,r,n,i,s){for(var u,_=e.parent;_;){var d=!0;if(r){var m=e.getStart(i);d=m<r.pos||m>r.end}if(d){var g=p(e,i,s);if(g!==-1)return g+n}u=o(_,e,i);var y=u.line===t.line||l(_,e,t.line,i);if(d){var g=c(e,_,t,y,i,s);if(g!==-1)return g+n;if(g=f(e,i,s),g!==-1)return g+n}k(_,e)&&!y&&(n+=s.indentSize),e=_,t=u,_=e.parent}return n+a(s)}function o(e,t,r){var n=d(t,r);return n?r.getLineAndCharacterOfPosition(n.pos):r.getLineAndCharacterOfPosition(e.getStart(r))}function s(t,r,n){var a=e.findListItemInfo(t);return a&&a.listItemIndex>0?m(a.list.getChildren(),a.listItemIndex-1,r,n):-1}function c(t,r,n,a,i,o){var s=(e.isDeclaration(t)||e.isStatementButNotDeclaration(t))&&(261===r.kind||!a);return s?g(n,i,o):-1}function u(t,r,n,a){var i=e.findNextToken(t,r);if(!i)return!1;if(16===i.kind)return!0;if(17===i.kind){var o=_(i,a).line;return n===o}return!1}function _(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function l(t,r,n,a){if(208===t.kind&&t.elseStatement===r){var i=e.findChildOfKind(t,81,a);e.Debug.assert(void 0!==i);var o=_(i,a).line;return o===n}return!1}function d(t,r){if(t.parent)switch(t.parent.kind){case 157:if(t.parent.typeArguments&&e.rangeContainsStartEnd(t.parent.typeArguments,t.getStart(r),t.getEnd()))return t.parent.typeArguments;break;case 176:return t.parent.properties;case 175:return t.parent.elements;case 225:case 184:case 185:case 149:case 148:case 153:case 154:var n=t.getStart(r);if(t.parent.typeParameters&&e.rangeContainsStartEnd(t.parent.typeParameters,n,t.getEnd()))return t.parent.typeParameters;if(e.rangeContainsStartEnd(t.parent.parameters,n,t.getEnd()))return t.parent.parameters;break;case 180:case 179:var n=t.getStart(r);if(t.parent.typeArguments&&e.rangeContainsStartEnd(t.parent.typeArguments,n,t.getEnd()))return t.parent.typeArguments;if(t.parent.arguments&&e.rangeContainsStartEnd(t.parent.arguments,n,t.getEnd()))return t.parent.arguments}}function p(t,r,n){function a(a){var i=e.indexOf(a,t);return i!==-1?m(a,i,r,n):-1}var i=d(t,r);return i?a(i):-1}function f(e,t,r){function n(e){for(;;)switch(e.kind){case 179:case 180:case 177:case 178:e=e.expression;break;default:return e}}if(19===e.kind)return-1;if(e.parent&&(179===e.parent.kind||180===e.parent.kind)&&e.parent.expression!==e){var a=e.parent.expression,i=n(a);if(a===i)return-1;var o=t.getLineAndCharacterOfPosition(a.end),s=t.getLineAndCharacterOfPosition(i.end);return o.line===s.line?-1:g(o,t,r)}return-1}function m(t,r,n,a){e.Debug.assert(r>=0&&r<t.length);for(var i=t[r],o=_(i,n),s=r-1;s>=0;s--)if(25!==t[s].kind){var c=n.getLineAndCharacterOfPosition(t[s].end).line;if(c!==o.line)return g(o,n,a);o=_(t[s],n)}return-1}function g(e,t,r){var n=t.getPositionOfLineAndCharacter(e.line,0);return v(n,n+e.character,t,r)}function y(t,r,n,a){for(var i=0,o=0,s=t;s<r;s++){var c=n.text.charCodeAt(s);if(!e.isWhiteSpaceSingleLine(c))break;9===c?o+=a.tabSize+o%a.tabSize:o++,i++}return{column:o,character:i}}function v(e,t,r,n){return y(e,t,r,n).column}function h(e){switch(e){case 207:case 226:case 197:case 227:case 229:case 228:case 175:case 204:case 231:case 176:case 161:case 170:case 163:case 232:case 254:case 253:case 183:case 177:case 179:case 180:case 205:case 223:case 240:case 216:case 193:case 173:case 172:case 248:case 247:case 252:case 148:case 153:case 154:case 144:case 158:case 159:case 166:case 181:case 189:case 242:case 238:case 243:case 239:return!0}return!1}function b(e,t,r){var n=t?t.kind:0;switch(e.kind){case 209:case 210:case 212:case 213:case 211:case 208:case 225:case 184:case 149:case 185:case 150:case 151:case 152:return 204!==n;case 241:return 242!==n;case 235:return 236!==n||t.namedBindings&&238!==t.namedBindings.kind;case 246:return 249!==n}return r}function k(e,t){return h(e.kind)||b(e,t,!1)}var x;!function(e){e[e.Unknown=-1]="Unknown"}(x||(x={})),t.getIndentation=r,t.getIndentationForNode=n,t.getBaseIndentation=a,t.childStartsOnTheSameLineWithElseInIfStatement=l,t.findFirstNonWhitespaceCharacterAndColumn=y,t.findFirstNonWhitespaceColumn=v,t.nodeWillIndentChild=b,t.shouldIndentChildNode=k}(r=t.SmartIndenter||(t.SmartIndenter={}))}(t=e.formatting||(e.formatting={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t){e.forEach(t.errorCodes,function(e){var r=i[e];r||(r=[],i[e]=r),r.push(t)})}function n(){return Object.keys(i)}function a(t){var r=i[t.errorCode],n=[];return e.forEach(r,function(e){var r=e.getCodeActions(t);r&&r.length>0&&(n=n.concat(r))}),n}var i=e.createMap();t.registerCodeFix=r,t.getSupportedErrorCodes=n,t.getFixes=a}(t=e.codefix||(e.codefix={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(e,t){return e.body.getFirstToken(t).getEnd()}t.registerCodeFix({errorCodes:[e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code],getCodeActions:function(t){var n=t.sourceFile,a=e.getTokenAtPosition(n,t.span.start);if(122===a.kind){var i=r(a.parent,n);return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Add_missing_super_call),changes:[{fileName:n.fileName,textChanges:[{newText:"super();",span:{start:i,length:0}}]}]}]}}}),t.registerCodeFix({errorCodes:[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],getCodeActions:function(t){function n(t){if(207===t.kind&&e.isSuperCall(t.expression))return t;if(!e.isFunctionLike(t))return e.forEachChild(t,n)}var a=t.sourceFile,i=e.getTokenAtPosition(a,t.span.start);if(98===i.kind){var o=e.getContainingFunction(i),s=n(o.body);if(s){if(s.expression&&179==s.expression.kind)for(var c=s.expression.arguments,u=0;u<c.length;u++)if(c[u].expression===i)return;var _=r(o,a),l=[{fileName:a.fileName,textChanges:[{newText:s.getText(a),span:{start:_,length:0}},{newText:"",span:{start:s.getStart(a),length:s.getWidth(a)}}]}];return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Make_super_call_the_first_statement_in_the_constructor),changes:l}]}}}})}(t=e.codefix||(e.codefix={}))}(ts||(ts={}));var ts;!function(e){function t(e,t,r,n){var a=e>=141?new y(e,t,r):70===e?new k(70,t,r):new b(e,t,r);return a.parent=n,a}function r(){return{getNodeConstructor:function(){return y},getTokenConstructor:function(){return b},getIdentifierConstructor:function(){return k},getSourceFileConstructor:function(){return S},getSymbolConstructor:function(){return h},getTypeConstructor:function(){return x},getSignatureConstructor:function(){return D}}}function n(t){var r=!0;for(var n in t)if(e.hasProperty(t,n)&&!a(n)){r=!1;break}if(r)return t;var i={};for(var n in t)if(e.hasProperty(t,n)){var o=a(n)?n:n.charAt(0).toLowerCase()+n.substr(1);i[o]=t[n]}return i}function a(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function i(t){return t?e.map(t,function(e){return e.text}).join(""):""}function o(){return{target:1,jsx:1}}function s(){return e.codefix.getSupportedErrorCodes()}function c(e,t,r){e.version=r,e.scriptSnapshot=t}function u(t,r,n,a,i,o){var s=r.getText(0,r.getLength()),u=e.createSourceFile(t,s,n,i,o);return c(u,r,a),u}function _(t,r,n,a,i){if(a&&n!==t.version&&!e.disableIncrementalParsing){var o=void 0,s=0!==a.span.start?t.text.substr(0,a.span.start):"",_=e.textSpanEnd(a.span)!==t.text.length?t.text.substr(e.textSpanEnd(a.span)):"";if(0===a.newLength)o=s&&_?s+_:s||_;else{var l=r.getText(a.span.start,a.span.start+a.newLength);o=s&&_?s+l+_:s?s+l:l+_}var d=e.updateSourceFile(t,o,a,i);return c(d,r,n),d.nameTable=void 0,t!==d&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),d}return u(t.fileName,r,t.languageVersion,n,!0,t.scriptKind)}function l(t,r){function a(e){t.log&&t.log(e)}function i(e){var t=ne.getSourceFile(e);if(!t)throw new Error("Could not find file: '"+e+"'.");return t}function o(t){return re||(re=new e.formatting.RulesProvider),re.ensureUpToDate(t),re}function s(){function n(t){return i(t,e.toPath(t,ue,_e))}function i(t,n){e.Debug.assert(void 0!==_);var a=_.getOrCreateEntryByPath(t,n);if(a){if(!p){var i=ne&&ne.getSourceFileByPath(n);if(i)return e.Debug.assert(a.scriptKind===i.scriptKind,"Registered script kind ("+i.scriptKind+") should match new script kind ("+a.scriptKind+") for file: "+n),r.updateDocumentWithKey(t,n,d,m,a.scriptSnapshot,a.version,a.scriptKind)}return r.acquireDocumentWithKey(t,n,d,m,a.scriptSnapshot,a.version,a.scriptKind)}}function o(t){if(!t)return!1;var r=t.path||e.toPath(t.fileName,ue,_e);return t.version===_.getVersion(r)}function s(){if(!ne)return!1;var t=_.getRootFileNames();if(ne.getSourceFiles().length!==t.length)return!1;for(var r=0,n=t;r<n.length;r++){var a=n[r];if(!o(ne.getSourceFile(a)))return!1}return e.compareDataObjects(ne.getCompilerOptions(),_.compilationSettings())}if(t.getProjectVersion){var c=t.getProjectVersion();if(c){if(ae===c)return;ae=c}}var u=t.getTypeRootsVersion?t.getTypeRootsVersion():0;oe!==u&&(a("TypeRoots version has changed; provide new program"),ne=void 0,oe=u);var _=new C(t,_e);if(!s()){var l=ne&&ne.getCompilerOptions(),d=_.compilationSettings(),p=l&&(l.target!==d.target||l.module!==d.module||l.moduleResolution!==d.moduleResolution||l.noResolve!==d.noResolve||l.jsx!==d.jsx||l.allowJs!==d.allowJs||l.disableSizeLimit!==l.disableSizeLimit||l.baseUrl!==d.baseUrl||!e.equalOwnProperties(l.paths,d.paths)),f={
getSourceFile:n,getSourceFileByPath:i,getCancellationToken:function(){return ce},getCanonicalFileName:_e,useCaseSensitiveFileNames:function(){return se},getNewLine:function(){return e.getNewLineOrDefaultFromHost(t)},getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return ue},fileExists:function(e){return void 0!==_.getOrCreateEntry(e)},readFile:function(e){var t=_.getOrCreateEntry(e);return t&&t.scriptSnapshot.getText(0,t.scriptSnapshot.getLength())},directoryExists:function(r){return e.directoryProbablyExists(r,t)},getDirectories:function(e){return t.getDirectories?t.getDirectories(e):[]}};t.trace&&(f.trace=function(e){return t.trace(e)}),t.resolveModuleNames&&(f.resolveModuleNames=function(e,r){return t.resolveModuleNames(e,r)}),t.resolveTypeReferenceDirectives&&(f.resolveTypeReferenceDirectives=function(e,r){return t.resolveTypeReferenceDirectives(e,r)});var m=r.getKeyForCompilationSettings(d),g=e.createProgram(_.getRootFileNames(),d,f,ne);if(ne)for(var y=ne.getSourceFiles(),v=r.getKeyForCompilationSettings(l),h=0,b=y;h<b.length;h++){var k=b[h];g.getSourceFile(k.fileName)&&!p||r.releaseDocumentWithKey(k.path,v)}_=void 0,ne=g,ne.getTypeChecker()}}function c(){return s(),ne}function u(){ne=void 0}function _(){ne&&e.forEach(ne.getSourceFiles(),function(e){return r.releaseDocument(e.fileName,ne.getCompilerOptions())})}function l(e){return s(),ne.getSyntacticDiagnostics(i(e),ce)}function d(t){s();var r=i(t),n=ne.getSemanticDiagnostics(r,ce);if(!ne.getCompilerOptions().declaration)return n;var a=ne.getDeclarationDiagnostics(r,ce);return e.concatenate(n,a)}function p(){return s(),ne.getOptionsDiagnostics(ce).concat(ne.getGlobalDiagnostics(ce))}function f(r,n){return s(),e.Completions.getCompletionsAtPosition(t,ne.getTypeChecker(),a,ne.getCompilerOptions(),i(r),n)}function m(t,r,n){return s(),e.Completions.getCompletionEntryDetails(ne.getTypeChecker(),a,ne.getCompilerOptions(),i(t),r,n)}function g(t,r,n){return s(),e.Completions.getCompletionEntrySymbol(ne.getTypeChecker(),a,ne.getCompilerOptions(),i(t),r,n)}function y(t,r){s();var n=i(t),a=e.getTouchingPropertyName(n,r);if(a!==n&&!e.isLabelName(a)){var o=ne.getTypeChecker(),c=o.getSymbolAtLocation(a);if(c&&!o.isUnknownSymbol(c)){var u=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(o,c,n,e.getContainerNode(a),a);return{kind:u.symbolKind,kindModifiers:e.SymbolDisplay.getSymbolModifiers(c),textSpan:e.createTextSpan(a.getStart(),a.getWidth()),displayParts:u.displayParts,documentation:u.documentation,tags:u.tags}}switch(a.kind){case 70:case 177:case 141:case 98:case 167:case 96:var _=o.getTypeAtLocation(a);if(_)return{kind:e.ScriptElementKind.unknown,kindModifiers:e.ScriptElementKindModifier.none,textSpan:e.createTextSpan(a.getStart(),a.getWidth()),displayParts:e.typeToDisplayParts(o,_,e.getContainerNode(a)),documentation:_.symbol?_.symbol.getDocumentationComment():void 0,tags:_.symbol?_.symbol.getJsDocTags():void 0}}}}function v(t,r){return s(),e.GoToDefinition.getDefinitionAtPosition(ne,i(t),r)}function h(t,r){return s(),e.GoToImplementation.getImplementationAtPosition(ne.getTypeChecker(),ce,ne.getSourceFiles(),e.getTouchingPropertyName(i(t),r))}function b(t,r){return s(),e.GoToDefinition.getTypeDefinitionAtPosition(ne.getTypeChecker(),i(t),r)}function k(t,r){var n=D(t,r);if(n){var a=_e(e.normalizeSlashes(t));n=e.filter(n,function(t){return _e(e.normalizeSlashes(t.fileName))===a})}return n}function x(t,r,n){s();var a=e.map(n,function(e){return ne.getSourceFile(e)}),o=i(t);return e.DocumentHighlights.getDocumentHighlights(ne.getTypeChecker(),ce,o,r,a)}function D(t,r){function n(t){if(t){for(var r=[],n=0,a=t;n<a.length;n++)for(var i=a[n],o=0,s=i.highlightSpans;o<s.length;o++){var c=s[o];r.push({fileName:i.fileName,textSpan:c.textSpan,isWriteAccess:c.kind===e.HighlightSpanKind.writtenReference,isDefinition:!1})}return r}}return s(),n(x(t,r,[t]))}function S(t,r,n,a){var i=w(t,r,n,a);return e.FindAllReferences.convertReferences(i)}function N(t,r){var n=w(t,r,!1,!1);return e.FindAllReferences.convertReferences(n)}function A(t,r){var n=w(t,r,!1,!1);return e.filter(n,function(e){return!!e.definition})}function w(t,r,n,a){return s(),e.FindAllReferences.findReferencedSymbols(ne.getTypeChecker(),ce,ne.getSourceFiles(),i(t),r,n,a)}function P(t,r,n,a){s();var o=n?[i(n)]:ne.getSourceFiles();return e.NavigateTo.getNavigateToItems(o,ne.getTypeChecker(),ce,t,r,a)}function F(e,t){function r(e,t,r){a.push({name:e,writeByteOrderMark:r,text:t})}s();var n=i(e),a=[],o=ne.emit(n,r,ce,t);return{outputFiles:a,emitSkipped:o.emitSkipped}}function O(t,r){s();var n=i(t);return e.SignatureHelp.getSignatureHelpItems(ne,n,r,ce)}function I(e){return ie.getCurrentSourceFile(e)}function R(e){return I(e)}function L(t,r,n){var a=ie.getCurrentSourceFile(t),i=e.getTouchingPropertyName(a,r);if(i!==a){switch(i.kind){case 177:case 141:case 9:case 85:case 100:case 94:case 96:case 98:case 167:case 70:break;default:return}for(var o=i;;)if(e.isRightSideOfPropertyAccess(o)||e.isRightSideOfQualifiedName(o))o=o.parent;else{if(!e.isNameOfModuleDeclaration(o))break;if(230!==o.parent.parent.kind||o.parent.parent.body!==o.parent)break;o=o.parent.parent.name}return e.createTextSpanFromBounds(o.getStart(),i.getEnd())}}function M(t,r){var n=ie.getCurrentSourceFile(t);return e.BreakpointResolver.spanInSourceFileAtLocation(n,r)}function B(t){return e.NavigationBar.getNavigationBarItems(ie.getCurrentSourceFile(t))}function K(t){return e.NavigationBar.getNavigationTree(ie.getCurrentSourceFile(t))}function J(r){var n=e.getScriptKind(r,t);return 3===n||4===n}function z(t,r){return J(t)?(s(),e.getSemanticClassifications(ne.getTypeChecker(),ce,i(t),ne.getClassifiableNames(),r)):[]}function j(t,r){return J(t)?(s(),e.getEncodedSemanticClassifications(ne.getTypeChecker(),ce,i(t),ne.getClassifiableNames(),r)):{spans:[],endOfLineState:0}}function V(t,r){return e.getSyntacticClassifications(ce,ie.getCurrentSourceFile(t),r)}function U(t,r){return e.getEncodedSyntacticClassifications(ce,ie.getCurrentSourceFile(t),r)}function q(t){var r=ie.getCurrentSourceFile(t);return e.OutliningElementsCollector.collectElements(r)}function W(t,r){function n(e){switch(e.kind){case 16:return 17;case 18:return 19;case 20:return 21;case 26:return 28;case 17:return 16;case 19:return 18;case 21:return 20;case 28:return 26}}var a=ie.getCurrentSourceFile(t),i=[],o=e.getTouchingToken(a,r);if(o.getStart(a)===r){var s=n(o);if(s)for(var c=o.parent,u=c.getChildren(a),_=0,l=u;_<l.length;_++){var d=l[_];if(d.kind===s){var p=e.createTextSpan(o.getStart(a),o.getWidth(a)),f=e.createTextSpan(d.getStart(a),d.getWidth(a));p.start<f.start?i.push(p,f):i.push(f,p);break}}}return i}function H(t,r,i){var o=e.timestamp(),s=n(i),c=ie.getCurrentSourceFile(t);a("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-o)),o=e.timestamp();var u=e.formatting.SmartIndenter.getIndentation(r,c,s);return a("getIndentationAtPosition: computeIndentation  : "+(e.timestamp()-o)),u}function G(t,r,a,i){var s=ie.getCurrentSourceFile(t),c=n(i);return e.formatting.formatSelection(r,a,s,o(c),c)}function X(t,r){var a=ie.getCurrentSourceFile(t),i=n(r);return e.formatting.formatDocument(a,o(i),i)}function Q(t,r,a,i){var s=ie.getCurrentSourceFile(t),c=n(i);return"}"===a?e.formatting.formatOnClosingCurly(r,s,o(c),c):";"===a?e.formatting.formatOnSemicolon(r,s,o(c),c):"\n"===a?e.formatting.formatOnEnter(r,s,o(c),c):[]}function Y(r,n,a,o){s();var c=i(r),u={start:n,length:a-n},_=e.getNewLineOrDefaultFromHost(t),l=[];return e.forEach(o,function(r){ce.throwIfCancellationRequested();var n={errorCode:r,sourceFile:c,span:u,program:ne,newLineCharacter:_,host:t,cancellationToken:ce},a=e.codefix.getFixes(n);a&&(l=l.concat(a))}),l}function Z(r,n){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(t),ie.getCurrentSourceFile(r),n)}function $(t,r,n){if(60===n)return!1;var a=ie.getCurrentSourceFile(t);return!e.isInString(a,r)&&(e.isInsideJsxElementOrAttribute(a,r)?123===n:!e.isInTemplateString(a,r))}function ee(t,r){function n(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function a(){var t=/(?:\/\/+\s*)/.source,a=/(?:\/\*+\s*)/.source,i=/(?:^(?:\s|\*)*)/.source,o="("+i+"|"+t+"|"+a+")",s="(?:"+e.map(r,function(e){return"("+n(e.text)+")"}).join("|")+")",c=/(?:$|\*\/)/.source,u=/(?:.*?)/.source,_="("+s+u+")",l=o+_+c;return new RegExp(l,"gim")}function o(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}s();var c=i(t);ce.throwIfCancellationRequested();var u=c.text,_=[];if(r.length>0)for(var l=a(),d=void 0;d=l.exec(u);){ce.throwIfCancellationRequested();var p=3;e.Debug.assert(d.length===r.length+p);var f=d[1],m=d.index+f.length,g=e.getTokenAtPosition(c,m);if(e.isInsideComment(c,g,m)){for(var y=void 0,v=0,h=r.length;v<h;v++)d[v+p]&&(y=r[v]);if(e.Debug.assert(void 0!==y),!o(u.charCodeAt(m+y.text.length))){var b=d[2];_.push({descriptor:y,message:b,position:m})}}}return _}function te(r,n){s();var a=t.getDefaultLibFileName(t.getCompilationSettings());return e.Rename.getRenameInfo(ne.getTypeChecker(),a,_e,i(r),n)}void 0===r&&(r=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory()));var re,ne,ae,ie=new E(t),oe=0,se=t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),ce=new T(t.getCancellationToken&&t.getCancellationToken()),ue=t.getCurrentDirectory();!e.localizedDiagnosticMessages&&t.getLocalizedDiagnosticMessages&&(e.localizedDiagnosticMessages=t.getLocalizedDiagnosticMessages());var _e=e.createGetCanonicalFileName(se);return{dispose:_,cleanupSemanticCache:u,getSyntacticDiagnostics:l,getSemanticDiagnostics:d,getCompilerOptionsDiagnostics:p,getSyntacticClassifications:V,getSemanticClassifications:z,getEncodedSyntacticClassifications:U,getEncodedSemanticClassifications:j,getCompletionsAtPosition:f,getCompletionEntryDetails:m,getCompletionEntrySymbol:g,getSignatureHelpItems:O,getQuickInfoAtPosition:y,getDefinitionAtPosition:v,getImplementationAtPosition:h,getTypeDefinitionAtPosition:b,getReferencesAtPosition:N,findReferences:A,getOccurrencesAtPosition:k,getDocumentHighlights:x,getNameOrDottedNameSpan:L,getBreakpointStatementAtPosition:M,getNavigateToItems:P,getRenameInfo:te,findRenameLocations:S,getNavigationBarItems:B,getNavigationTree:K,getOutliningSpans:q,getTodoComments:ee,getBraceMatchingAtPosition:W,getIndentationAtPosition:H,getFormattingEditsForRange:G,getFormattingEditsForDocument:X,getFormattingEditsAfterKeystroke:Q,getDocCommentTemplateAtPosition:Z,isValidBraceCompletionAtPosition:$,getCodeFixesAtPosition:Y,getEmitOutput:F,getNonBoundSourceFile:I,getSourceFile:R,getProgram:c}}function d(e){return e.nameTable||p(e),e.nameTable}function p(t){function r(t){switch(t.kind){case 70:n[t.text]=void 0===n[t.text]?t.pos:-1;break;case 9:case 8:(e.isDeclarationName(t)||245===t.parent.kind||f(t)||e.isLiteralComputedPropertyDeclarationName(t))&&(n[t.text]=void 0===n[t.text]?t.pos:-1);break;default:if(e.forEachChild(t,r),t.jsDoc)for(var a=0,i=t.jsDoc;a<i.length;a++){var o=i[a];e.forEachChild(o,r)}}}var n=e.createMap();r(t),t.nameTable=n}function f(e){return e&&e.parent&&178===e.parent.kind&&e.parent.argumentExpression===e}function m(t){if("undefined"!=typeof __dirname)return __dirname+e.directorySeparator+e.getDefaultLibFileName(t);throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}function g(){e.objectAllocator=r()}e.servicesVersion="0.5";var y=function(){function r(e,t,r){this.pos=t,this.end=r,this.flags=0,this.transformFlags=void 0,this.parent=void 0,this.kind=e}return r.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},r.prototype.getStart=function(t,r){return e.getTokenPosOfNode(this,t,r)},r.prototype.getFullStart=function(){return this.pos},r.prototype.getEnd=function(){return this.end},r.prototype.getWidth=function(e){return this.getEnd()-this.getStart(e)},r.prototype.getFullWidth=function(){return this.end-this.pos},r.prototype.getLeadingTriviaWidth=function(e){return this.getStart(e)-this.pos},r.prototype.getFullText=function(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)},r.prototype.getText=function(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},r.prototype.addSyntheticNodes=function(r,n,a,i){for(e.scanner.setTextPos(n);n<a;){var o=i?e.scanner.scanJSDocToken():e.scanner.scan(),s=e.scanner.getTextPos();s<=a&&r.push(t(o,n,s,this)),n=s}return n},r.prototype.createSyntaxList=function(e){var r=t(292,e.pos,e.end,this);r._children=[];for(var n=e.pos,a=0,i=e;a<i.length;a++){var o=i[a];n<o.pos&&(n=this.addSyntheticNodes(r._children,n,o.pos)),r._children.push(o),n=o.end}return n<e.end&&this.addSyntheticNodes(r._children,n,e.end),r},r.prototype.createChildren=function(t){var r,n=this;if(this.kind>=141){e.scanner.setText((t||this.getSourceFile()).text),r=[];var a=this.pos,i=this.kind>=278&&this.kind<=291,o=function(t){var o=e.isJSDocTag(t);!o&&a<t.pos&&(a=n.addSyntheticNodes(r,a,t.pos,i)),r.push(t),o||(a=t.end)},s=function(e){a<e.pos&&(a=n.addSyntheticNodes(r,a,e.pos,i)),r.push(n.createSyntaxList(e)),a=e.end};if(this.jsDoc)for(var c=0,u=this.jsDoc;c<u.length;c++){var _=u[c];o(_)}a=this.pos,e.forEachChild(this,o,s),a<this.end&&this.addSyntheticNodes(r,a,this.end),e.scanner.setText(void 0)}this._children=r||e.emptyArray},r.prototype.getChildCount=function(e){return this._children||this.createChildren(e),this._children.length},r.prototype.getChildAt=function(e,t){return this._children||this.createChildren(t),this._children[e]},r.prototype.getChildren=function(e){return this._children||this.createChildren(e),this._children},r.prototype.getFirstToken=function(e){var t=this.getChildren(e);if(t.length){var r=t[0];return r.kind<141?r:r.getFirstToken(e)}},r.prototype.getLastToken=function(t){var r=this.getChildren(t),n=e.lastOrUndefined(r);if(n)return n.kind<141?n:n.getLastToken(t)},r}(),v=function(){function t(e,t){this.pos=e,this.end=t,this.flags=0,this.parent=void 0}return t.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},t.prototype.getStart=function(t,r){return e.getTokenPosOfNode(this,t,r)},t.prototype.getFullStart=function(){return this.pos},t.prototype.getEnd=function(){return this.end},t.prototype.getWidth=function(e){return this.getEnd()-this.getStart(e)},t.prototype.getFullWidth=function(){return this.end-this.pos},t.prototype.getLeadingTriviaWidth=function(e){return this.getStart(e)-this.pos},t.prototype.getFullText=function(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)},t.prototype.getText=function(e){return(e||this.getSourceFile()).text.substring(this.getStart(),this.getEnd())},t.prototype.getChildCount=function(){return 0},t.prototype.getChildAt=function(){},t.prototype.getChildren=function(){return e.emptyArray},t.prototype.getFirstToken=function(){},t.prototype.getLastToken=function(){},t}(),h=function(){function t(e,t){this.flags=e,this.name=t}return t.prototype.getFlags=function(){return this.flags},t.prototype.getName=function(){return this.name},t.prototype.getDeclarations=function(){return this.declarations},t.prototype.getDocumentationComment=function(){return void 0===this.documentationComment&&(this.documentationComment=e.JsDoc.getJsDocCommentsFromDeclarations(this.declarations)),this.documentationComment},t.prototype.getJsDocTags=function(){return void 0===this.tags&&(this.tags=e.JsDoc.getJsDocTagsFromDeclarations(this.declarations)),this.tags},t}(),b=function(e){function t(t,r,n){var a=e.call(this,r,n)||this;return a.kind=t,a}return __extends(t,e),t}(v),k=function(e){function t(t,r,n){return e.call(this,r,n)||this}return __extends(t,e),t}(v);k.prototype.kind=70;var x=function(){function e(e,t){this.checker=e,this.flags=t}return e.prototype.getFlags=function(){return this.flags},e.prototype.getSymbol=function(){return this.symbol},e.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},e.prototype.getProperty=function(e){return this.checker.getPropertyOfType(this,e)},e.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},e.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},e.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},e.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},e.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},e.prototype.getBaseTypes=function(){return 32768&this.flags&&3&this.objectFlags?this.checker.getBaseTypes(this):void 0},e.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},e}(),D=function(){function t(e){this.checker=e}return t.prototype.getDeclaration=function(){return this.declaration},t.prototype.getTypeParameters=function(){return this.typeParameters},t.prototype.getParameters=function(){return this.parameters},t.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},t.prototype.getDocumentationComment=function(){return void 0===this.documentationComment&&(this.documentationComment=this.declaration?e.JsDoc.getJsDocCommentsFromDeclarations([this.declaration]):[]),this.documentationComment},t.prototype.getJsDocTags=function(){return void 0===this.jsDocTags&&(this.jsDocTags=this.declaration?e.JsDoc.getJsDocTagsFromDeclarations([this.declaration]):[]),this.jsDocTags},t}(),S=function(t){function r(e,r,n){return t.call(this,e,r,n)||this}return __extends(r,t),r.prototype.update=function(t,r){return e.updateSourceFile(this,t,r)},r.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},r.prototype.getLineStarts=function(){return e.getLineStarts(this)},r.prototype.getPositionOfLineAndCharacter=function(t,r){return e.getPositionOfLineAndCharacter(this,t,r)},r.prototype.getLineEndOfPosition=function(e){var t,r=this.getLineAndCharacterOfPosition(e).line,n=this.getLineStarts();r+1>=n.length&&(t=this.getEnd()),t||(t=n[r+1]-1);var a=this.getFullText();return"\n"===a[t]&&"\r"===a[t-1]?t-1:t},r.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},r.prototype.computeNamedDeclarations=function(){function t(t){var r=n(t);r&&e.multiMapAdd(o,r,t)}function r(e){return o[e]||(o[e]=[])}function n(e){if(e.name){var t=a(e.name);if(void 0!==t)return t;if(142===e.name.kind){var r=e.name.expression;return 177===r.kind?r.name.text:a(r)}}}function a(e){if(e&&(70===e.kind||9===e.kind||8===e.kind))return e.text}function i(a){switch(a.kind){case 225:case 184:case 149:case 148:var o=a,s=n(o);if(s){var c=r(s),u=e.lastOrUndefined(c);u&&o.parent===u.parent&&o.symbol===u.symbol?o.body&&!u.body&&(c[c.length-1]=o):c.push(o)}e.forEachChild(a,i);break;case 226:case 197:case 227:case 228:case 229:case 230:case 234:case 243:case 239:case 234:case 236:case 237:case 151:case 152:case 161:t(a),e.forEachChild(a,i);break;case 144:if(!e.hasModifier(a,92))break;case 223:case 174:var _=a;if(e.isBindingPattern(_.name)){e.forEachChild(_.name,i);break}_.initializer&&i(_.initializer);case 260:case 147:case 146:t(a);break;case 241:a.exportClause&&e.forEach(a.exportClause.elements,i);break;case 235:var l=a.importClause;l&&(l.name&&t(l),l.namedBindings&&(237===l.namedBindings.kind?t(l.namedBindings):e.forEach(l.namedBindings.elements,i)));break;default:e.forEachChild(a,i)}}var o=e.createMap();return e.forEachChild(this,i),o},r}(y);e.toEditorSettings=n,e.displayPartsToString=i,e.getDefaultCompilerOptions=o,e.getSupportedCodeFixes=s;var C=function(){function t(t,r){this.host=t,this.getCanonicalFileName=r,this.currentDirectory=t.getCurrentDirectory(),this.fileNameToEntry=e.createFileMap();for(var n=t.getScriptFileNames(),a=0,i=n;a<i.length;a++){var s=i[a];this.createEntry(s,e.toPath(s,this.currentDirectory,r))}this._compilationSettings=t.getCompilationSettings()||o()}return t.prototype.compilationSettings=function(){return this._compilationSettings},t.prototype.createEntry=function(t,r){var n,a=this.host.getScriptSnapshot(t);return a&&(n={hostFileName:t,version:this.host.getScriptVersion(t),scriptSnapshot:a,scriptKind:e.getScriptKind(t,this.host)}),this.fileNameToEntry.set(r,n),n},t.prototype.getEntry=function(e){return this.fileNameToEntry.get(e)},t.prototype.contains=function(e){return this.fileNameToEntry.contains(e)},t.prototype.getOrCreateEntry=function(t){var r=e.toPath(t,this.currentDirectory,this.getCanonicalFileName);return this.getOrCreateEntryByPath(t,r)},t.prototype.getOrCreateEntryByPath=function(e,t){return this.contains(t)?this.getEntry(t):this.createEntry(e,t)},t.prototype.getRootFileNames=function(){var e=[];return this.fileNameToEntry.forEachValue(function(t,r){r&&e.push(r.hostFileName)}),e},t.prototype.getVersion=function(e){var t=this.getEntry(e);return t&&t.version},t.prototype.getScriptSnapshot=function(e){var t=this.getEntry(e);return t&&t.scriptSnapshot},t}(),E=function(){function t(e){this.host=e}return t.prototype.getCurrentSourceFile=function(t){var r=this.host.getScriptSnapshot(t);if(!r)throw new Error("Could not find file: '"+t+"'.");var n,a=e.getScriptKind(t,this.host),i=this.host.getScriptVersion(t);if(this.currentFileName!==t)n=u(t,r,5,i,!0,a);else if(this.currentFileVersion!==i){var o=r.getChangeRange(this.currentFileScriptSnapshot);n=_(this.currentSourceFile,r,i,o)}return n&&(this.currentFileVersion=i,this.currentFileName=t,this.currentFileScriptSnapshot=r,this.currentSourceFile=n),this.currentSourceFile},t}();e.createLanguageServiceSourceFile=u,e.disableIncrementalParsing=!1,e.updateLanguageServiceSourceFile=_;var T=function(){function t(e){this.cancellationToken=e}return t.prototype.isCancellationRequested=function(){return this.cancellationToken&&this.cancellationToken.isCancellationRequested()},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},t}();e.createLanguageService=l,e.getNameTable=d,e.getDefaultLibFilePath=m,g()}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r){function n(r,n){var a=r.decorators?e.skipTrivia(t.text,r.decorators.end):r.getStart(t);return e.createTextSpanFromBounds(a,(n||r).getEnd())}function a(t,r){return n(t,e.findNextToken(r,r.parent))}function i(e,r){return u(e&&l===t.getLineAndCharacterOfPosition(e.getStart(t)).line?e:r)}function o(r){return e.createTextSpanFromBounds(e.skipTrivia(t.text,r.pos),r.end)}function s(r){return u(e.findPrecedingToken(r.pos,t))}function c(t){return u(e.findNextToken(t,t.parent))}function u(r){function _(r){var a=r.parent.declarations;return a&&a[0]===r?n(e.findPrecedingToken(r.pos,t,r.parent),r):n(r)}function l(r){if(212===r.parent.parent.kind)return u(r.parent.parent);if(e.isBindingPattern(r.name))return b(r.name);if(r.initializer||e.hasModifier(r,1)||213===r.parent.parent.kind)return _(r);var n=r.parent.declarations;return n&&n[0]!==r?u(e.findPrecedingToken(r.pos,t,r.parent)):void 0}function d(t){return!!t.initializer||void 0!==t.dotDotDotToken||e.hasModifier(t,12)}function p(t){if(e.isBindingPattern(t.name))return b(t.name);if(d(t))return n(t);var r=t.parent,a=e.indexOf(r.parameters,t);return a?p(r.parameters[a-1]):u(r.body)}function f(t){return e.hasModifier(t,1)||226===t.parent.kind&&150!==t.kind}function m(e){if(e.body)return f(e)?n(e):u(e.body)}function g(e){var t=e.statements.length?e.statements[0]:e.getLastToken();return f(e.parent)?i(e.parent,t):u(t)}function y(r){switch(r.parent.kind){case 230:if(1!==e.getModuleInstanceState(r.parent))return;case 210:case 208:case 212:return i(r.parent,r.statements[0]);case 211:case 213:return i(e.findPrecedingToken(r.pos,t,r.parent),r.statements[0])}return u(r.statements[0])}function v(e){if(224!==e.initializer.kind)return u(e.initializer);var t=e.initializer;return t.declarations.length>0?u(t.declarations[0]):void 0}function h(e){return e.initializer?v(e):e.condition?n(e.condition):e.incrementor?n(e.incrementor):void 0}function b(t){var r=e.forEach(t.elements,function(e){return 198!==e.kind?e:void 0});return r?u(r):174===t.parent.kind?n(t.parent):_(t.parent)}function k(t){e.Debug.assert(173!==t.kind&&172!==t.kind);var r=175===t.kind?t.elements:t.properties,a=e.forEach(r,function(e){return 198!==e.kind?e:void 0});return a?u(a):n(192===t.parent.kind?t.parent:t)}function x(r){switch(r.parent.kind){case 229:var n=r.parent;return i(e.findPrecedingToken(r.pos,t,r.parent),n.members.length?n.members[0]:n.getLastToken(t));case 226:var a=r.parent;return i(e.findPrecedingToken(r.pos,t,r.parent),a.members.length?a.members[0]:a.getLastToken(t));case 232:return i(r.parent.parent,r.parent.clauses[0])}return u(r.parent)}function D(t){switch(t.parent.kind){case 231:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 229:case 226:return n(t);case 204:if(e.isFunctionBlock(t.parent))return n(t);case 256:return u(e.lastOrUndefined(t.parent.statements));case 232:var r=t.parent,a=e.lastOrUndefined(r.clauses);if(a)return u(e.lastOrUndefined(a.statements));return;case 172:var i=t.parent;return u(e.lastOrUndefined(i.elements)||i);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var o=t.parent;return n(e.lastOrUndefined(o.properties)||o)}return u(t.parent)}}function S(t){switch(t.parent.kind){case 173:var r=t.parent;return n(e.lastOrUndefined(r.elements)||r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var a=t.parent;return n(e.lastOrUndefined(a.elements)||a)}return u(t.parent)}}function C(e){return 209===e.parent.kind||179===e.parent.kind||180===e.parent.kind?s(e):183===e.parent.kind?c(e):u(e.parent)}function E(e){switch(e.parent.kind){case 184:case 225:case 185:case 149:case 148:case 151:case 152:case 150:case 210:case 209:case 211:case 213:case 179:case 180:case 183:return s(e);default:return u(e.parent)}}function T(t){return e.isFunctionLike(t.parent)||257===t.parent.kind||144===t.parent.kind?s(t):u(t.parent)}function N(e){return 182===e.parent.kind?c(e):u(e.parent)}function A(e){return 209===e.parent.kind?a(e,e.parent.expression):u(e.parent)}function w(e){return 213===e.parent.kind?c(e):u(e.parent)}if(r)switch(r.kind){case 205:return l(r.declarationList.declarations[0]);case 223:case 147:case 146:return l(r);case 144:return p(r);case 225:case 149:case 148:case 151:case 152:case 150:case 184:case 185:return m(r);case 204:if(e.isFunctionBlock(r))return g(r);case 231:return y(r);case 256:return y(r.block);case 207:return n(r.expression);case 216:return n(r.getChildAt(0),r.expression);case 210:return a(r,r.expression);case 209:return u(r.statement);case 222:return n(r.getChildAt(0));case 208:return a(r,r.expression);case 219:return u(r.statement);case 215:case 214:return n(r.getChildAt(0),r.label);case 211:return h(r);case 212:return a(r,r.expression);case 213:return v(r);case 218:return a(r,r.expression);case 253:case 254:return u(r.statements[0]);case 221:return y(r.tryBlock);case 220:return n(r,r.expression);case 240:return n(r,r.expression);case 234:return n(r,r.moduleReference);case 235:return n(r,r.moduleSpecifier);case 241:return n(r,r.moduleSpecifier);case 230:if(1!==e.getModuleInstanceState(r))return;case 226:case 229:case 260:case 174:return n(r);case 217:return u(r.statement);case 145:return o(r.parent.decorators);case 172:case 173:return b(r);case 227:case 228:return;case 24:case 1:return i(e.findPrecedingToken(r.pos,t));case 25:return s(r);case 16:return x(r);case 17:return D(r);case 21:return S(r);case 18:return C(r);case 19:return E(r);case 55:return T(r);case 28:case 26:return N(r);case 105:return A(r);case 81:case 73:case 86:return c(r);case 140:return w(r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return k(r);if((70===r.kind||196==r.kind||257===r.kind||258===r.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent))return n(r);if(192===r.kind){var P=r;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(P.left))return k(P.left);if(57===P.operatorToken.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(P.parent))return n(r);if(25===P.operatorToken.kind)return u(P.left)}if(e.isPartOfExpression(r))switch(r.parent.kind){case 209:return s(r);case 145:return u(r.parent);case 211:case 213:return n(r);case 192:if(25===r.parent.operatorToken.kind)return n(r);break;case 185:if(r.parent.body===r)return n(r)}if(257===r.parent.kind&&r.parent.name===r&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent.parent))return u(r.parent.initializer);if(182===r.parent.kind&&r.parent.type===r)return c(r.parent.type);if(e.isFunctionLike(r.parent)&&r.parent.type===r)return s(r);if(223===r.parent.kind||144===r.parent.kind){var F=r.parent;if(F.initializer===r||F.type===r||e.isAssignmentOperator(r.kind))return s(r)}if(192===r.parent.kind){var P=r.parent;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(P.left)&&(P.right===r||P.operatorToken===r))return s(r)}return u(r.parent)}}if(!t.isDeclarationFile){var _=e.getTokenAtPosition(t,r),l=t.getLineAndCharacterOfPosition(r).line;if((!(t.getLineAndCharacterOfPosition(_.getStart(t)).line>l)||(_=e.findPrecedingToken(_.pos,t),_&&t.getLineAndCharacterOfPosition(_.getEnd()).line===l))&&!e.isInAmbientContext(_))return u(_)}}t.spanInSourceFileAtLocation=r}(t=e.BreakpointResolver||(e.BreakpointResolver={}))}(ts||(ts={}));var debugObjectHost=function(){return this}(),ts;!function(e){function t(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}function r(t,r,n,a){var i;a&&(t.log(r),i=e.timestamp());var o=n();if(a){var s=e.timestamp();if(t.log(r+" completed in "+(s-i)+" msec"),"string"==typeof o){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),t.log("  result.length="+c.length+", result='"+JSON.stringify(c)+"'")}}return o}function n(e,t,r,n){return a(e,t,!0,r,n)}function a(n,a,i,o,s){try{var c=r(n,a,o,s);return i?JSON.stringify({result:c}):c}catch(u){return u instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(t(n,u),u.description=a,JSON.stringify({error:u}))}}function i(e,t){return e.map(function(e){return o(e,t)})}function o(t,r){return{message:e.flattenDiagnosticMessageText(t.messageText,r),start:t.start,length:t.length,category:e.DiagnosticCategory[t.category].toLowerCase(),code:t.code}}function s(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var c=function(){function t(e){this.scriptSnapshotShim=e}return t.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)},t.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},t.prototype.getChangeRange=function(t){var r=t,n=this.scriptSnapshotShim.getChangeRange(r.scriptSnapshotShim);if(null==n)return null;var a=JSON.parse(n);return e.createTextChangeRange(e.createTextSpan(a.span.start,a.span.length),a.newLength)},t.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},t}(),u=function(){function t(t){var r=this;this.shimHost=t,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(t,n){var a=JSON.parse(r.shimHost.getModuleResolutionsForFile(n));return e.map(t,function(t){var r=e.getProperty(a,t);return r?{resolvedFileName:r,extension:e.extensionFromPath(r),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return r.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(t,n){var a=JSON.parse(r.shimHost.getTypeReferenceDirectiveResolutionsForFile(n));return e.map(t,function(t){return e.getProperty(a,t)})})}return t.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e)},t.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e)},t.prototype.error=function(e){this.shimHost.error(e)},t.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion();
},t.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},t.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},t.prototype.getCompilationSettings=function(){var e=this.shimHost.getCompilationSettings();if(null==e||""==e)throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");return JSON.parse(e)},t.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return this.files=JSON.parse(e)},t.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new c(t)},t.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},t.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},t.prototype.getLocalizedDiagnosticMessages=function(){var e=this.shimHost.getLocalizedDiagnosticMessages();if(null==e||""==e)return null;try{return JSON.parse(e)}catch(t){return this.log(t.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},t.prototype.getCancellationToken=function(){var e=this.shimHost.getCancellationToken();return new _(e)},t.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},t.prototype.readDirectory=function(t,r,n,a,i){var o=e.getFileMatcherPatterns(t,n,a,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,i))},t.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t}();e.LanguageServiceShimHostAdapter=u;var _=function(){function t(e){this.hostCancellationToken=e,this.lastCancellationCheckTime=0}return t.prototype.isCancellationRequested=function(){var t=e.timestamp(),r=Math.abs(t-this.lastCancellationCheckTime);return r>10&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t}(),l=function(){function t(e){var t=this;this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return t.shimHost.directoryExists(e)}),"realpath"in this.shimHost&&(this.realpath=function(e){return t.shimHost.realpath(e)})}return t.prototype.readDirectory=function(t,r,n,a,i){try{var o=e.getFileMatcherPatterns(t,n,a,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,i))}catch(s){for(var c=[],u=0,_=r;u<_.length;u++)for(var l=_[u],d=0,p=this.readDirectoryFallback(t,l,n);d<p.length;d++){var f=p[d];e.contains(c,f)||c.push(f)}return c}},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t.prototype.readFile=function(e){return this.shimHost.readFile(e)},t.prototype.readDirectoryFallback=function(e,t,r){return JSON.parse(this.shimHost.readDirectory(e,t,JSON.stringify(r)))},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t}();e.CoreServicesShimHostAdapter=l;var d=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();e.realizeDiagnostics=i;var p=function(t){function r(e,r,n){var a=t.call(this,e)||this;return a.host=r,a.languageService=n,a.logPerformance=!1,a.logger=a.host,a}return __extends(r,t),r.prototype.forwardJSONCall=function(e,t){return n(this.logger,e,t,this.logPerformance)},r.prototype.dispose=function(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,debugObjectHost&&debugObjectHost.CollectGarbage&&(debugObjectHost.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,t.prototype.dispose.call(this,e)},r.prototype.refresh=function(e){this.forwardJSONCall("refresh("+e+")",function(){return null})},r.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return e.languageService.cleanupSemanticCache(),null})},r.prototype.realizeDiagnostics=function(t){var r=e.getNewLineOrDefaultFromHost(this.host);return e.realizeDiagnostics(t,r)},r.prototype.getSyntacticClassifications=function(t,r,n){var a=this;return this.forwardJSONCall("getSyntacticClassifications('"+t+"', "+r+", "+n+")",function(){return a.languageService.getSyntacticClassifications(t,e.createTextSpan(r,n))})},r.prototype.getSemanticClassifications=function(t,r,n){var a=this;return this.forwardJSONCall("getSemanticClassifications('"+t+"', "+r+", "+n+")",function(){return a.languageService.getSemanticClassifications(t,e.createTextSpan(r,n))})},r.prototype.getEncodedSyntacticClassifications=function(t,r,n){var a=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+t+"', "+r+", "+n+")",function(){return s(a.languageService.getEncodedSyntacticClassifications(t,e.createTextSpan(r,n)))})},r.prototype.getEncodedSemanticClassifications=function(t,r,n){var a=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+t+"', "+r+", "+n+")",function(){return s(a.languageService.getEncodedSemanticClassifications(t,e.createTextSpan(r,n)))})},r.prototype.getSyntacticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+e+"')",function(){var r=t.languageService.getSyntacticDiagnostics(e);return t.realizeDiagnostics(r)})},r.prototype.getSemanticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('"+e+"')",function(){var r=t.languageService.getSemanticDiagnostics(e);return t.realizeDiagnostics(r)})},r.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var t=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(t)})},r.prototype.getQuickInfoAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+e+"', "+t+")",function(){return r.languageService.getQuickInfoAtPosition(e,t)})},r.prototype.getNameOrDottedNameSpan=function(e,t,r){var n=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+t+", "+r+")",function(){return n.languageService.getNameOrDottedNameSpan(e,t,r)})},r.prototype.getBreakpointStatementAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+t+")",function(){return r.languageService.getBreakpointStatementAtPosition(e,t)})},r.prototype.getSignatureHelpItems=function(e,t){var r=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+t+")",function(){return r.languageService.getSignatureHelpItems(e,t)})},r.prototype.getDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+t+")",function(){return r.languageService.getDefinitionAtPosition(e,t)})},r.prototype.getTypeDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+t+")",function(){return r.languageService.getTypeDefinitionAtPosition(e,t)})},r.prototype.getImplementationAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+t+")",function(){return r.languageService.getImplementationAtPosition(e,t)})},r.prototype.getRenameInfo=function(e,t){var r=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+t+")",function(){return r.languageService.getRenameInfo(e,t)})},r.prototype.findRenameLocations=function(e,t,r,n){var a=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+t+", "+r+", "+n+")",function(){return a.languageService.findRenameLocations(e,t,r,n)})},r.prototype.getBraceMatchingAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+t+")",function(){return r.languageService.getBraceMatchingAtPosition(e,t)})},r.prototype.isValidBraceCompletionAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+t+", "+r+")",function(){return n.languageService.isValidBraceCompletionAtPosition(e,t,r)})},r.prototype.getIndentationAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getIndentationAtPosition('"+e+"', "+t+")",function(){var a=JSON.parse(r);return n.languageService.getIndentationAtPosition(e,t,a)})},r.prototype.getReferencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getReferencesAtPosition('"+e+"', "+t+")",function(){return r.languageService.getReferencesAtPosition(e,t)})},r.prototype.findReferences=function(e,t){var r=this;return this.forwardJSONCall("findReferences('"+e+"', "+t+")",function(){return r.languageService.findReferences(e,t)})},r.prototype.getOccurrencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+t+")",function(){return r.languageService.getOccurrencesAtPosition(e,t)})},r.prototype.getDocumentHighlights=function(t,r,n){var a=this;return this.forwardJSONCall("getDocumentHighlights('"+t+"', "+r+")",function(){var i=a.languageService.getDocumentHighlights(t,r,JSON.parse(n)),o=e.normalizeSlashes(t).toLowerCase();return e.filter(i,function(t){return e.normalizeSlashes(t.fileName).toLowerCase()===o})})},r.prototype.getCompletionsAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+t+")",function(){return r.languageService.getCompletionsAtPosition(e,t)})},r.prototype.getCompletionEntryDetails=function(e,t,r){var n=this;return this.forwardJSONCall("getCompletionEntryDetails('"+e+"', "+t+", '"+r+"')",function(){return n.languageService.getCompletionEntryDetails(e,t,r)})},r.prototype.getFormattingEditsForRange=function(e,t,r,n){var a=this;return this.forwardJSONCall("getFormattingEditsForRange('"+e+"', "+t+", "+r+")",function(){var i=JSON.parse(n);return a.languageService.getFormattingEditsForRange(e,t,r,i)})},r.prototype.getFormattingEditsForDocument=function(e,t){var r=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+e+"')",function(){var n=JSON.parse(t);return r.languageService.getFormattingEditsForDocument(e,n)})},r.prototype.getFormattingEditsAfterKeystroke=function(e,t,r,n){var a=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+e+"', "+t+", '"+r+"')",function(){var i=JSON.parse(n);return a.languageService.getFormattingEditsAfterKeystroke(e,t,r,i)})},r.prototype.getDocCommentTemplateAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+t+")",function(){return r.languageService.getDocCommentTemplateAtPosition(e,t)})},r.prototype.getNavigateToItems=function(e,t,r){var n=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+t+", "+r+")",function(){return n.languageService.getNavigateToItems(e,t,r)})},r.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('"+e+"')",function(){return t.languageService.getNavigationBarItems(e)})},r.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('"+e+"')",function(){return t.languageService.getNavigationTree(e)})},r.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('"+e+"')",function(){return t.languageService.getOutliningSpans(e)})},r.prototype.getTodoComments=function(e,t){var r=this;return this.forwardJSONCall("getTodoComments('"+e+"')",function(){return r.languageService.getTodoComments(e,JSON.parse(t))})},r.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('"+e+"')",function(){return t.languageService.getEmitOutput(e)})},r.prototype.getEmitOutputObject=function(e){var t=this;return a(this.logger,"getEmitOutput('"+e+"')",!1,function(){return t.languageService.getEmitOutput(e)},this.logPerformance)},r}(d),f=function(t){function r(r,n){var a=t.call(this,r)||this;return a.logger=n,a.logPerformance=!1,a.classifier=e.createClassifier(),a}return __extends(r,t),r.prototype.getEncodedLexicalClassifications=function(e,t,r){var a=this;return n(this.logger,"getEncodedLexicalClassifications",function(){return s(a.classifier.getEncodedLexicalClassifications(e,t,r))},this.logPerformance)},r.prototype.getClassificationsForLine=function(e,t,r){for(var n=this.classifier.getClassificationsForLine(e,t,r),a="",i=0,o=n.entries;i<o.length;i++){var s=o[i];a+=s.length+"\n",a+=s.classification+"\n"}return a+=n.finalLexState},r}(d),m=function(t){function r(e,r,n){var a=t.call(this,e)||this;return a.logger=r,a.host=n,a.logPerformance=!1,a}return __extends(r,t),r.prototype.forwardJSONCall=function(e,t){return n(this.logger,e,t,this.logPerformance)},r.prototype.resolveModuleName=function(t,r,n){var a=this;return this.forwardJSONCall("resolveModuleName('"+t+"')",function(){var i=JSON.parse(n),o=e.resolveModuleName(r,e.normalizeSlashes(t),i,a.host),s=o.resolvedModule?o.resolvedModule.resolvedFileName:void 0;return s&&!i.allowJs&&e.fileExtensionIs(s,".js")?{resolvedFileName:void 0,failedLookupLocations:[]}:{resolvedFileName:s,failedLookupLocations:o.failedLookupLocations}})},r.prototype.resolveTypeReferenceDirective=function(t,r,n){var a=this;return this.forwardJSONCall("resolveTypeReferenceDirective("+t+")",function(){var i=JSON.parse(n),o=e.resolveTypeReferenceDirective(r,e.normalizeSlashes(t),i,a.host);return{resolvedFileName:o.resolvedTypeReferenceDirective?o.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:!o.resolvedTypeReferenceDirective||o.resolvedTypeReferenceDirective.primary,failedLookupLocations:o.failedLookupLocations}})},r.prototype.getPreProcessedFileInfo=function(t,r){var n=this;return this.forwardJSONCall("getPreProcessedFileInfo('"+t+"')",function(){var t=e.preProcessFile(r.getText(0,r.getLength()),!0,!0);return{referencedFiles:n.convertFileReferences(t.referencedFiles),importedFiles:n.convertFileReferences(t.importedFiles),ambientExternalModules:t.ambientExternalModules,isLibFile:t.isLibFile,typeReferenceDirectives:n.convertFileReferences(t.typeReferenceDirectives)}})},r.prototype.getAutomaticTypeDirectiveNames=function(t){var r=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('"+t+"')",function(){var n=JSON.parse(t);return e.getAutomaticTypeDirectiveNames(n,r.host)})},r.prototype.convertFileReferences=function(t){if(t){for(var r=[],n=0,a=t;n<a.length;n++){var i=a[n];r.push({path:e.normalizeSlashes(i.fileName),position:i.pos,length:i.end-i.pos})}return r}},r.prototype.getTSConfigFileInfo=function(t,r){var n=this;return this.forwardJSONCall("getTSConfigFileInfo('"+t+"')",function(){var a=r.getText(0,r.getLength()),s=e.parseConfigFileTextToJson(t,a);if(s.error)return{options:{},typeAcquisition:{},files:[],raw:{},errors:[o(s.error,"\r\n")]};var c=e.normalizeSlashes(t),u=e.parseJsonConfigFileContent(s.config,n.host,e.getDirectoryPath(c),{},c);return{options:u.options,typeAcquisition:u.typeAcquisition,files:u.fileNames,raw:u.raw,errors:i(u.errors,"\r\n")}})},r.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",function(){return e.getDefaultCompilerOptions()})},r.prototype.discoverTypings=function(t){var r=this,n=e.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",function(){var a=JSON.parse(t);return e.JsTyping.discoverTypings(r.host,a.fileNames,e.toPath(a.projectRootPath,a.projectRootPath,n),e.toPath(a.safeListPath,a.safeListPath,n),a.packageNameToTypingLocation,a.typeAcquisition,a.unresolvedImports)})},r}(d),g=function(){function r(){this._shims=[]}return r.prototype.getServicesVersion=function(){return e.servicesVersion},r.prototype.createLanguageServiceShim=function(r){try{void 0===this.documentRegistry&&(this.documentRegistry=e.createDocumentRegistry(r.useCaseSensitiveFileNames&&r.useCaseSensitiveFileNames(),r.getCurrentDirectory()));var n=new u(r),a=e.createLanguageService(n,this.documentRegistry);return new p(this,r,a)}catch(i){throw t(r,i),i}},r.prototype.createClassifierShim=function(e){try{return new f(this,e)}catch(r){throw t(e,r),r}},r.prototype.createCoreServicesShim=function(e){try{var r=new l(e);return new m(this,e,r)}catch(n){throw t(e,n),n}},r.prototype.close=function(){this._shims=[],this.documentRegistry=void 0},r.prototype.registerShim=function(e){this._shims.push(e)},r.prototype.unregisterShim=function(e){for(var t=0,r=this._shims.length;t<r;t++)if(this._shims[t]===e)return void delete this._shims[t];throw new Error("Invalid operation")},r}();e.TypeScriptServicesFactory=g,"undefined"!=typeof module&&module.exports&&(module.exports=e)}(ts||(ts={}));var TypeScript;!function(e){var t;!function(e){e.TypeScriptServicesFactory=ts.TypeScriptServicesFactory}(t=e.Services||(e.Services={}))}(TypeScript||(TypeScript={}));var toolsVersion="2.1";define("vs/language/typescript/lib/typescriptServices",[],function(){return ts});
