dengzedong
2024-12-25 e9f7b18c8e2d31ce16c1341b54889d8d5b136929
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*!-----------------------------------------------------------------------------
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * monaco-typescript version: 2.3.0(fd172013f77fa599e03a1c17b79aab62637569fa)
 * 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 __assign=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},__extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),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.JsxTextAllWhiteSpaces=11]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=12]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=13]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=14]="TemplateHead",e[e.TemplateMiddle=15]="TemplateMiddle",e[e.TemplateTail=16]="TemplateTail",e[e.OpenBraceToken=17]="OpenBraceToken",e[e.CloseBraceToken=18]="CloseBraceToken",e[e.OpenParenToken=19]="OpenParenToken",e[e.CloseParenToken=20]="CloseParenToken",e[e.OpenBracketToken=21]="OpenBracketToken",e[e.CloseBracketToken=22]="CloseBracketToken",e[e.DotToken=23]="DotToken",e[e.DotDotDotToken=24]="DotDotDotToken",e[e.SemicolonToken=25]="SemicolonToken",e[e.CommaToken=26]="CommaToken",e[e.LessThanToken=27]="LessThanToken",e[e.LessThanSlashToken=28]="LessThanSlashToken",e[e.GreaterThanToken=29]="GreaterThanToken",e[e.LessThanEqualsToken=30]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=31]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=32]="EqualsEqualsToken",e[e.ExclamationEqualsToken=33]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=34]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=35]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=36]="EqualsGreaterThanToken",e[e.PlusToken=37]="PlusToken",e[e.MinusToken=38]="MinusToken",e[e.AsteriskToken=39]="AsteriskToken",e[e.AsteriskAsteriskToken=40]="AsteriskAsteriskToken",e[e.SlashToken=41]="SlashToken",e[e.PercentToken=42]="PercentToken",e[e.PlusPlusToken=43]="PlusPlusToken",e[e.MinusMinusToken=44]="MinusMinusToken",e[e.LessThanLessThanToken=45]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=46]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=47]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=48]="AmpersandToken",e[e.BarToken=49]="BarToken",e[e.CaretToken=50]="CaretToken",e[e.ExclamationToken=51]="ExclamationToken",e[e.TildeToken=52]="TildeToken",e[e.AmpersandAmpersandToken=53]="AmpersandAmpersandToken",e[e.BarBarToken=54]="BarBarToken",e[e.QuestionToken=55]="QuestionToken",e[e.ColonToken=56]="ColonToken",e[e.AtToken=57]="AtToken",e[e.EqualsToken=58]="EqualsToken",e[e.PlusEqualsToken=59]="PlusEqualsToken",e[e.MinusEqualsToken=60]="MinusEqualsToken",e[e.AsteriskEqualsToken=61]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=62]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=63]="SlashEqualsToken",e[e.PercentEqualsToken=64]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=65]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=66]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=67]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=68]="AmpersandEqualsToken",e[e.BarEqualsToken=69]="BarEqualsToken",e[e.CaretEqualsToken=70]="CaretEqualsToken",e[e.Identifier=71]="Identifier",e[e.BreakKeyword=72]="BreakKeyword",e[e.CaseKeyword=73]="CaseKeyword",e[e.CatchKeyword=74]="CatchKeyword",e[e.ClassKeyword=75]="ClassKeyword",e[e.ConstKeyword=76]="ConstKeyword",e[e.ContinueKeyword=77]="ContinueKeyword",e[e.DebuggerKeyword=78]="DebuggerKeyword",e[e.DefaultKeyword=79]="DefaultKeyword",e[e.DeleteKeyword=80]="DeleteKeyword",e[e.DoKeyword=81]="DoKeyword",e[e.ElseKeyword=82]="ElseKeyword",e[e.EnumKeyword=83]="EnumKeyword",e[e.ExportKeyword=84]="ExportKeyword",e[e.ExtendsKeyword=85]="ExtendsKeyword",e[e.FalseKeyword=86]="FalseKeyword",e[e.FinallyKeyword=87]="FinallyKeyword",e[e.ForKeyword=88]="ForKeyword",e[e.FunctionKeyword=89]="FunctionKeyword",e[e.IfKeyword=90]="IfKeyword",e[e.ImportKeyword=91]="ImportKeyword",e[e.InKeyword=92]="InKeyword",e[e.InstanceOfKeyword=93]="InstanceOfKeyword",e[e.NewKeyword=94]="NewKeyword",e[e.NullKeyword=95]="NullKeyword",e[e.ReturnKeyword=96]="ReturnKeyword",e[e.SuperKeyword=97]="SuperKeyword",e[e.SwitchKeyword=98]="SwitchKeyword",e[e.ThisKeyword=99]="ThisKeyword",e[e.ThrowKeyword=100]="ThrowKeyword",e[e.TrueKeyword=101]="TrueKeyword",e[e.TryKeyword=102]="TryKeyword",e[e.TypeOfKeyword=103]="TypeOfKeyword",e[e.VarKeyword=104]="VarKeyword",e[e.VoidKeyword=105]="VoidKeyword",e[e.WhileKeyword=106]="WhileKeyword",e[e.WithKeyword=107]="WithKeyword",e[e.ImplementsKeyword=108]="ImplementsKeyword",e[e.InterfaceKeyword=109]="InterfaceKeyword",e[e.LetKeyword=110]="LetKeyword",e[e.PackageKeyword=111]="PackageKeyword",e[e.PrivateKeyword=112]="PrivateKeyword",e[e.ProtectedKeyword=113]="ProtectedKeyword",e[e.PublicKeyword=114]="PublicKeyword",e[e.StaticKeyword=115]="StaticKeyword",e[e.YieldKeyword=116]="YieldKeyword",e[e.AbstractKeyword=117]="AbstractKeyword",e[e.AsKeyword=118]="AsKeyword",e[e.AnyKeyword=119]="AnyKeyword",e[e.AsyncKeyword=120]="AsyncKeyword",e[e.AwaitKeyword=121]="AwaitKeyword",e[e.BooleanKeyword=122]="BooleanKeyword",e[e.ConstructorKeyword=123]="ConstructorKeyword",e[e.DeclareKeyword=124]="DeclareKeyword",e[e.GetKeyword=125]="GetKeyword",e[e.IsKeyword=126]="IsKeyword",e[e.KeyOfKeyword=127]="KeyOfKeyword",e[e.ModuleKeyword=128]="ModuleKeyword",e[e.NamespaceKeyword=129]="NamespaceKeyword",e[e.NeverKeyword=130]="NeverKeyword",e[e.ReadonlyKeyword=131]="ReadonlyKeyword",e[e.RequireKeyword=132]="RequireKeyword",e[e.NumberKeyword=133]="NumberKeyword",e[e.ObjectKeyword=134]="ObjectKeyword",e[e.SetKeyword=135]="SetKeyword",e[e.StringKeyword=136]="StringKeyword",e[e.SymbolKeyword=137]="SymbolKeyword",e[e.TypeKeyword=138]="TypeKeyword",e[e.UndefinedKeyword=139]="UndefinedKeyword",e[e.FromKeyword=140]="FromKeyword",e[e.GlobalKeyword=141]="GlobalKeyword",e[e.OfKeyword=142]="OfKeyword",e[e.QualifiedName=143]="QualifiedName",e[e.ComputedPropertyName=144]="ComputedPropertyName",e[e.TypeParameter=145]="TypeParameter",e[e.Parameter=146]="Parameter",e[e.Decorator=147]="Decorator",e[e.PropertySignature=148]="PropertySignature",e[e.PropertyDeclaration=149]="PropertyDeclaration",e[e.MethodSignature=150]="MethodSignature",e[e.MethodDeclaration=151]="MethodDeclaration",e[e.Constructor=152]="Constructor",e[e.GetAccessor=153]="GetAccessor",e[e.SetAccessor=154]="SetAccessor",e[e.CallSignature=155]="CallSignature",e[e.ConstructSignature=156]="ConstructSignature",e[e.IndexSignature=157]="IndexSignature",e[e.TypePredicate=158]="TypePredicate",e[e.TypeReference=159]="TypeReference",e[e.FunctionType=160]="FunctionType",e[e.ConstructorType=161]="ConstructorType",e[e.TypeQuery=162]="TypeQuery",e[e.TypeLiteral=163]="TypeLiteral",e[e.ArrayType=164]="ArrayType",e[e.TupleType=165]="TupleType",e[e.UnionType=166]="UnionType",e[e.IntersectionType=167]="IntersectionType",e[e.ParenthesizedType=168]="ParenthesizedType",e[e.ThisType=169]="ThisType",e[e.TypeOperator=170]="TypeOperator",e[e.IndexedAccessType=171]="IndexedAccessType",e[e.MappedType=172]="MappedType",e[e.LiteralType=173]="LiteralType",e[e.ObjectBindingPattern=174]="ObjectBindingPattern",e[e.ArrayBindingPattern=175]="ArrayBindingPattern",e[e.BindingElement=176]="BindingElement",e[e.ArrayLiteralExpression=177]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=178]="ObjectLiteralExpression",e[e.PropertyAccessExpression=179]="PropertyAccessExpression",e[e.ElementAccessExpression=180]="ElementAccessExpression",e[e.CallExpression=181]="CallExpression",e[e.NewExpression=182]="NewExpression",e[e.TaggedTemplateExpression=183]="TaggedTemplateExpression",e[e.TypeAssertionExpression=184]="TypeAssertionExpression",e[e.ParenthesizedExpression=185]="ParenthesizedExpression",e[e.FunctionExpression=186]="FunctionExpression",e[e.ArrowFunction=187]="ArrowFunction",e[e.DeleteExpression=188]="DeleteExpression",e[e.TypeOfExpression=189]="TypeOfExpression",e[e.VoidExpression=190]="VoidExpression",e[e.AwaitExpression=191]="AwaitExpression",e[e.PrefixUnaryExpression=192]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=193]="PostfixUnaryExpression",e[e.BinaryExpression=194]="BinaryExpression",e[e.ConditionalExpression=195]="ConditionalExpression",e[e.TemplateExpression=196]="TemplateExpression",e[e.YieldExpression=197]="YieldExpression",e[e.SpreadElement=198]="SpreadElement",e[e.ClassExpression=199]="ClassExpression",e[e.OmittedExpression=200]="OmittedExpression",e[e.ExpressionWithTypeArguments=201]="ExpressionWithTypeArguments",e[e.AsExpression=202]="AsExpression",e[e.NonNullExpression=203]="NonNullExpression",e[e.MetaProperty=204]="MetaProperty",e[e.TemplateSpan=205]="TemplateSpan",e[e.SemicolonClassElement=206]="SemicolonClassElement",e[e.Block=207]="Block",e[e.VariableStatement=208]="VariableStatement",e[e.EmptyStatement=209]="EmptyStatement",e[e.ExpressionStatement=210]="ExpressionStatement",e[e.IfStatement=211]="IfStatement",e[e.DoStatement=212]="DoStatement",e[e.WhileStatement=213]="WhileStatement",e[e.ForStatement=214]="ForStatement",e[e.ForInStatement=215]="ForInStatement",e[e.ForOfStatement=216]="ForOfStatement",e[e.ContinueStatement=217]="ContinueStatement",e[e.BreakStatement=218]="BreakStatement",e[e.ReturnStatement=219]="ReturnStatement",e[e.WithStatement=220]="WithStatement",e[e.SwitchStatement=221]="SwitchStatement",e[e.LabeledStatement=222]="LabeledStatement",e[e.ThrowStatement=223]="ThrowStatement",e[e.TryStatement=224]="TryStatement",e[e.DebuggerStatement=225]="DebuggerStatement",e[e.VariableDeclaration=226]="VariableDeclaration",e[e.VariableDeclarationList=227]="VariableDeclarationList",e[e.FunctionDeclaration=228]="FunctionDeclaration",e[e.ClassDeclaration=229]="ClassDeclaration",e[e.InterfaceDeclaration=230]="InterfaceDeclaration",e[e.TypeAliasDeclaration=231]="TypeAliasDeclaration",e[e.EnumDeclaration=232]="EnumDeclaration",e[e.ModuleDeclaration=233]="ModuleDeclaration",e[e.ModuleBlock=234]="ModuleBlock",e[e.CaseBlock=235]="CaseBlock",e[e.NamespaceExportDeclaration=236]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=237]="ImportEqualsDeclaration",e[e.ImportDeclaration=238]="ImportDeclaration",e[e.ImportClause=239]="ImportClause",e[e.NamespaceImport=240]="NamespaceImport",e[e.NamedImports=241]="NamedImports",e[e.ImportSpecifier=242]="ImportSpecifier",e[e.ExportAssignment=243]="ExportAssignment",e[e.ExportDeclaration=244]="ExportDeclaration",e[e.NamedExports=245]="NamedExports",e[e.ExportSpecifier=246]="ExportSpecifier",e[e.MissingDeclaration=247]="MissingDeclaration",e[e.ExternalModuleReference=248]="ExternalModuleReference",e[e.JsxElement=249]="JsxElement",e[e.JsxSelfClosingElement=250]="JsxSelfClosingElement",e[e.JsxOpeningElement=251]="JsxOpeningElement",e[e.JsxClosingElement=252]="JsxClosingElement",e[e.JsxAttribute=253]="JsxAttribute",e[e.JsxAttributes=254]="JsxAttributes",e[e.JsxSpreadAttribute=255]="JsxSpreadAttribute",e[e.JsxExpression=256]="JsxExpression",e[e.CaseClause=257]="CaseClause",e[e.DefaultClause=258]="DefaultClause",e[e.HeritageClause=259]="HeritageClause",e[e.CatchClause=260]="CatchClause",e[e.PropertyAssignment=261]="PropertyAssignment",e[e.ShorthandPropertyAssignment=262]="ShorthandPropertyAssignment",e[e.SpreadAssignment=263]="SpreadAssignment",e[e.EnumMember=264]="EnumMember",e[e.SourceFile=265]="SourceFile",e[e.Bundle=266]="Bundle",e[e.JSDocTypeExpression=267]="JSDocTypeExpression",e[e.JSDocAllType=268]="JSDocAllType",e[e.JSDocUnknownType=269]="JSDocUnknownType",e[e.JSDocArrayType=270]="JSDocArrayType",e[e.JSDocUnionType=271]="JSDocUnionType",e[e.JSDocTupleType=272]="JSDocTupleType",e[e.JSDocNullableType=273]="JSDocNullableType",e[e.JSDocNonNullableType=274]="JSDocNonNullableType",e[e.JSDocRecordType=275]="JSDocRecordType",e[e.JSDocRecordMember=276]="JSDocRecordMember",e[e.JSDocTypeReference=277]="JSDocTypeReference",e[e.JSDocOptionalType=278]="JSDocOptionalType",e[e.JSDocFunctionType=279]="JSDocFunctionType",e[e.JSDocVariadicType=280]="JSDocVariadicType",e[e.JSDocConstructorType=281]="JSDocConstructorType",e[e.JSDocThisType=282]="JSDocThisType",e[e.JSDocComment=283]="JSDocComment",e[e.JSDocTag=284]="JSDocTag",e[e.JSDocAugmentsTag=285]="JSDocAugmentsTag",e[e.JSDocClassTag=286]="JSDocClassTag",e[e.JSDocParameterTag=287]="JSDocParameterTag",e[e.JSDocReturnTag=288]="JSDocReturnTag",e[e.JSDocTypeTag=289]="JSDocTypeTag",e[e.JSDocTemplateTag=290]="JSDocTemplateTag",e[e.JSDocTypedefTag=291]="JSDocTypedefTag",e[e.JSDocPropertyTag=292]="JSDocPropertyTag",e[e.JSDocTypeLiteral=293]="JSDocTypeLiteral",e[e.JSDocLiteralType=294]="JSDocLiteralType",e[e.SyntaxList=295]="SyntaxList",e[e.NotEmittedStatement=296]="NotEmittedStatement",e[e.PartiallyEmittedExpression=297]="PartiallyEmittedExpression",e[e.CommaListExpression=298]="CommaListExpression",e[e.MergeDeclarationMarker=299]="MergeDeclarationMarker",e[e.EndOfDeclarationMarker=300]="EndOfDeclarationMarker",e[e.Count=301]="Count",e[e.FirstAssignment=58]="FirstAssignment",e[e.LastAssignment=70]="LastAssignment",e[e.FirstCompoundAssignment=59]="FirstCompoundAssignment",e[e.LastCompoundAssignment=70]="LastCompoundAssignment",e[e.FirstReservedWord=72]="FirstReservedWord",e[e.LastReservedWord=107]="LastReservedWord",e[e.FirstKeyword=72]="FirstKeyword",e[e.LastKeyword=142]="LastKeyword",e[e.FirstFutureReservedWord=108]="FirstFutureReservedWord",e[e.LastFutureReservedWord=116]="LastFutureReservedWord",e[e.FirstTypeNode=158]="FirstTypeNode",e[e.LastTypeNode=173]="LastTypeNode",e[e.FirstPunctuation=17]="FirstPunctuation",e[e.LastPunctuation=70]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=142]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=8]="FirstLiteralToken",e[e.LastLiteralToken=13]="LastLiteralToken",e[e.FirstTemplateToken=13]="FirstTemplateToken",e[e.LastTemplateToken=16]="LastTemplateToken",e[e.FirstBinaryOperator=27]="FirstBinaryOperator",e[e.LastBinaryOperator=70]="LastBinaryOperator",e[e.FirstNode=143]="FirstNode",e[e.FirstJSDocNode=267]="FirstJSDocNode",e[e.LastJSDocNode=294]="LastJSDocNode",e[e.FirstJSDocTagNode=284]="FirstJSDocTagNode",e[e.LastJSDocTagNode=294]="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.PossiblyContainsDynamicImport=524288]="PossiblyContainsDynamicImport",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.None=0]="None",e[e.Scientific=2]="Scientific",e[e.Octal=4]="Octal",e[e.HexSpecifier=8]="HexSpecifier",e[e.BinarySpecifier=16]="BinarySpecifier",e[e.OctalSpecifier=32]="OctalSpecifier",e[e.BinaryOrOctalSpecifier=48]="BinaryOrOctalSpecifier"}(s=e.NumericLiteralFlags||(e.NumericLiteralFlags={}));var c;!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.PreFinally=2048]="PreFinally",e[e.AfterFinally=4096]="AfterFinally",e[e.Label=12]="Label",e[e.Condition=96]="Condition"}(c=e.FlowFlags||(e.FlowFlags={}));var u=function(){function e(){}return e}();e.OperationCanceledException=u;var _;!function(e){e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely"}(_=e.StructureIsReused||(e.StructureIsReused={}));var l;!function(e){e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated"}(l=e.ExitStatus||(e.ExitStatus={}));var d;!function(e){e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.AllowThisInObjectLiteral=1024]="AllowThisInObjectLiteral",e[e.AllowQualifedNameInPlaceOfIdentifier=2048]="AllowQualifedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=8192]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=16384]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=32768]="AllowEmptyTuple",e[e.IgnoreErrors=60416]="IgnoreErrors",e[e.InObjectTypeLiteral=1048576]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias"}(d=e.NodeBuilderFlags||(e.NodeBuilderFlags={}));var p;!function(e){e[e.None=0]="None",e[e.WriteArrayAsGenericType=1]="WriteArrayAsGenericType",e[e.UseTypeOfFunction=4]="UseTypeOfFunction",e[e.NoTruncation=8]="NoTruncation",e[e.WriteArrowStyleSignature=16]="WriteArrowStyleSignature",e[e.WriteOwnNameForAnyLike=32]="WriteOwnNameForAnyLike",e[e.WriteTypeArgumentsOfSignature=64]="WriteTypeArgumentsOfSignature",e[e.InElementType=128]="InElementType",e[e.UseFullyQualifiedType=256]="UseFullyQualifiedType",e[e.InFirstTypeArgument=512]="InFirstTypeArgument",e[e.InTypeAlias=1024]="InTypeAlias",e[e.UseTypeAliasValue=2048]="UseTypeAliasValue",e[e.SuppressAnyReturnType=4096]="SuppressAnyReturnType",e[e.AddUndefined=8192]="AddUndefined",e[e.WriteClassExpressionAsTypeLiteral=16384]="WriteClassExpressionAsTypeLiteral"}(p=e.TypeFormatFlags||(e.TypeFormatFlags={}));var f;!function(e){e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing"}(f=e.SymbolFormatFlags||(e.SymbolFormatFlags={}));var m;!function(e){e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed"}(m=e.SymbolAccessibility||(e.SymbolAccessibility={}));var g;!function(e){e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread"}(g=e.SyntheticSymbolKind||(e.SyntheticSymbolKind={}));var y;!function(e){e[e.This=0]="This",e[e.Identifier=1]="Identifier"}(y=e.TypePredicateKind||(e.TypePredicateKind={}));var v;!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"}(v=e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={}));var h;!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.Prototype=16777216]="Prototype",e[e.ExportStar=33554432]="ExportStar",e[e.Optional=67108864]="Optional",e[e.Transient=134217728]="Transient",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"}(h=e.SymbolFlags||(e.SymbolFlags={}));var b;!function(e){e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal"}(b=e.EnumKind||(e.EnumKind={}));var k;!function(e){e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.Partial=16]="Partial",e[e.HasNonUniformType=32]="HasNonUniformType",e[e.ContainsPublic=64]="ContainsPublic",e[e.ContainsProtected=128]="ContainsProtected",e[e.ContainsPrivate=256]="ContainsPrivate",e[e.ContainsStatic=512]="ContainsStatic",e[e.Synthetic=6]="Synthetic"}(k=e.CheckFlags||(e.CheckFlags={}));var x;!function(e){e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",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"}(x=e.NodeCheckFlags||(e.NodeCheckFlags={}));var C;!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.NonPrimitive=16777216]="NonPrimitive",e[e.JsxAttributes=33554432]="JsxAttributes",e[e.Nullable=6144]="Nullable",e[e.Literal=224]="Literal",e[e.StringOrNumberLiteral=96]="StringOrNumberLiteral",e[e.DefinitelyFalsy=7392]="DefinitelyFalsy",e[e.PossiblyFalsy=7406]="PossiblyFalsy",e[e.Intrinsic=16793231]="Intrinsic",e[e.Primitive=8190]="Primitive",e[e.StringLike=262178]="StringLike",e[e.NumberLike=84]="NumberLike",e[e.BooleanLike=136]="BooleanLike",e[e.EnumLike=272]="EnumLike",e[e.UnionOrIntersection=196608]="UnionOrIntersection",e[e.StructuredType=229376]="StructuredType",e[e.StructuredOrTypeVariable=1032192]="StructuredOrTypeVariable",e[e.TypeVariable=540672]="TypeVariable",e[e.Narrowable=17810175]="Narrowable",e[e.NotUnionOrUnit=16810497]="NotUnionOrUnit",e[e.RequiresWidening=6291456]="RequiresWidening",e[e.PropagatingFlags=14680064]="PropagatingFlags"}(C=e.TypeFlags||(e.TypeFlags={}));var D;!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"}(D=e.ObjectFlags||(e.ObjectFlags={}));var S;!function(e){e[e.Call=0]="Call",e[e.Construct=1]="Construct"}(S=e.SignatureKind||(e.SignatureKind={}));var T;!function(e){e[e.String=0]="String",e[e.Number=1]="Number"}(T=e.IndexKind||(e.IndexKind={}));var E;!function(e){e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.MappedType=2]="MappedType",e[e.ReturnType=4]="ReturnType"}(E=e.InferencePriority||(e.InferencePriority={}));var N;!function(e){e[e.InferUnionTypes=1]="InferUnionTypes",e[e.NoDefault=2]="NoDefault",e[e.AnyDefault=4]="AnyDefault"}(N=e.InferenceFlags||(e.InferenceFlags={}));var A;!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",e[e.Property=5]="Property"}(A=e.SpecialPropertyAssignmentKind||(e.SpecialPropertyAssignmentKind={}));var w;!function(e){e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Message=2]="Message"}(w=e.DiagnosticCategory||(e.DiagnosticCategory={}));var P;!function(e){e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs"}(P=e.ModuleResolutionKind||(e.ModuleResolutionKind={}));var F;!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",e[e.ESNext=6]="ESNext"}(F=e.ModuleKind||(e.ModuleKind={}));var O;!function(e){e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative"}(O=e.JsxEmit||(e.JsxEmit={}));var I;!function(e){e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed"}(I=e.NewLineKind||(e.NewLineKind={}));var R;!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",e[e.External=5]="External"}(R=e.ScriptKind||(e.ScriptKind={}));var M;!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"}(M=e.ScriptTarget||(e.ScriptTarget={}));var L;!function(e){e[e.Standard=0]="Standard",e[e.JSX=1]="JSX"}(L=e.LanguageVariant||(e.LanguageVariant={}));var B;!function(e){e[e.Simple=0]="Simple",e[e.Pretty=1]="Pretty"}(B=e.DiagnosticStyle||(e.DiagnosticStyle={}));var J;!function(e){e[e.None=0]="None",e[e.Recursive=1]="Recursive"}(J=e.WatchDirectoryFlags||(e.WatchDirectoryFlags={}));var z;!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"}(z=e.CharacterCodes||(e.CharacterCodes={}));var K;!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"}(K=e.Extension||(e.Extension={}));var j;!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.ContainsDynamicImport=67108864]="ContainsDynamicImport",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"}(j=e.TransformFlags||(e.TransformFlags={}));var V;!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.InternalName=32768]="InternalName",e[e.Indented=65536]="Indented",e[e.NoIndentation=131072]="NoIndentation",e[e.AsyncFunctionBody=262144]="AsyncFunctionBody",e[e.ReuseTempVariableScope=524288]="ReuseTempVariableScope",e[e.CustomPrologue=1048576]="CustomPrologue",e[e.NoHoisting=2097152]="NoHoisting",e[e.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping"}(V=e.EmitFlags||(e.EmitFlags={}));var U;!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.Values=256]="Values",e[e.Read=512]="Read",e[e.Spread=1024]="Spread",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=32768]="LastEmitHelper"}(U=e.ExternalEmitHelpers||(e.ExternalEmitHelpers={}));var q;!function(e){e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.Unspecified=3]="Unspecified"}(q=e.EmitHint||(e.EmitHint={}))}(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&&(_.set(t,e.timestamp()),u.set(t,(u.get(t)||0)+1),d(t))}function n(t,r,n){if(p){var a=n&&_.get(n)||e.timestamp(),i=r&&_.get(r)||f;l.set(t,(l.get(t)||0)+(a-i))}}function a(e){return u&&u.get(e)||0}function i(e){return l&&l.get(e)||0}function o(e){l.forEach(function(t,r){e(r,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.4.1"}(ts||(ts={})),function(e){function t(){var e=Object.create(null);return e.__=void 0,delete e.__,e}function r(){return new pr}function n(e){var t=new pr;for(var r in e)mr.call(e,r)&&t.set(r,e[r]);return t}function a(){var e=function(){function e(e,t){this.index=0,this.data=e,this.selector=t,this.keys=Object.keys(e)}return e.prototype.next=function(){var e=this.index;return e<this.keys.length?(this.index++,{value:this.selector(this.data,this.keys[e]),done:!1}):{value:void 0,done:!0}},e}();return function(){function r(){this.data=t(),this.size=0}return r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.has(e)||this.size++,this.data[e]=t,this},r.prototype.has=function(e){return e in this.data},r.prototype["delete"]=function(e){return!!this.has(e)&&(this.size--,delete this.data[e],!0)},r.prototype.clear=function(){this.data=t(),this.size=0},r.prototype.keys=function(){return new e(this.data,function(e,t){return t})},r.prototype.values=function(){return new e(this.data,function(e,t){return e[t]})},r.prototype.entries=function(){return new e(this.data,function(e,t){return[t,e[t]]})},r.prototype.forEach=function(e){for(var t in this.data)e(this.data[t],t)},r}()}function i(e){function t(e){_.forEach(function(t,r){e(r,t)})}function n(){return ne(_.keys())}function a(e){return _.get(u(e))}function i(e,t){_.set(u(e),t)}function o(e){return _.has(u(e))}function s(e){_["delete"](u(e))}function c(){_.clear()}function u(t){return e?e(t):t}var _=r();return{get:a,set:i,contains:o,remove:s,forEachValue:t,getKeys:n,clear:c}}function o(e,t,r){var n=$e(e)?Ue(e):nt(e,t);return r(n)}function s(e){return e?e.length:0}function c(e,t){if(e)for(var r=0;r<e.length;r++){var n=t(e[r],r);if(n)return n}}function u(e,t){for(;e;){var r=t(e);if("quit"===r)return;if(r)return e;e=e.parent}}function _(e,t,r){Sr.assert(e.length===t.length);for(var n=0;n<e.length;n++)r(e[n],t[n],n)}function l(e,t){Sr.assert(e.length===t.length);for(var n=r(),a=0;a<e.length;++a)n.set(e[a],t[a]);return n}function d(e,t){if(e)for(var r=0;r<e.length;r++)if(!t(e[r],r))return!1;return!0}function p(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(t(n,r))return n}}function f(e,t){for(var r=0;r<e.length;r++)if(t(e[r],r))return r;return-1}function m(e,t){for(var r=0;r<e.length;r++){var n=t(e[r],r);if(n)return n}Sr.fail()}function g(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 y(e,t){if(e)for(var r=0;r<e.length;r++)if(e[r]===t)return r;return-1}function v(e,t,r){for(var n=r||0;n<e.length;n++)if(g(t,e.charCodeAt(n)))return n;return-1}function h(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 b(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 k(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 x(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 C(e,t){var r;if(e){r=[];for(var n=0;n<e.length;n++)r.push(t(e[n],n))}return r}function D(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 S(e){var t;if(e){t=[];for(var r=0,n=e;r<n.length;r++){var a=n[r];a&&(ye(a)?j(t,a):t.push(a))}}return t}function T(e,t){var r;if(e){r=[];for(var n=0;n<e.length;n++){var a=t(e[n],n);a&&(ye(a)?j(r,a):r.push(a))}}return r}function E(e,t){var r;if(e)for(var n=0;n<e.length;n++){var a=e[n],i=t(a,n);(r||a!==i||ye(i))&&(r||(r=e.slice(0,n)),ye(i)?j(r,i):r.push(i))}return r||e}function N(e,t){for(var r=[],n=0;n<e.length;n++){var a=e[n],i=t(a,n);void 0!==i&&r.push(i)}return r}function A(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 w(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 P(e,t){if(e){var n=r();return e.forEach(function(e,r){var a=t(r,e),i=a[0],o=a[1];n.set(i,o)}),n}}function F(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 O(e,t){return F(t)?F(e)?e.concat(t):t:e}function I(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 R(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 M(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&&R(e.lib,t.lib)&&R(e.typeRoots,t.typeRoots)&&R(e.rootDirs,t.rootDirs)&&ue(e.paths,t.paths))}function L(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 B(e,t,r,n,a){if(void 0===r&&(r=Oe),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 J(e,t){for(var r=0,n=0,a=e;n<a.length;n++){var i=a[n];r+=i[t]}return r}function z(e,t){return void 0===t?e:void 0===e?[t]:(e.push(t),e)}function K(e,t){return t<0?e.length+t:t}function j(e,t,r,n){if(void 0===t)return e;if(void 0===e)return t.slice(r,n);r=void 0===r?0:K(t,r),n=void 0===n?t.length:K(t,n);for(var a=r;a<n&&a<t.length;a++){var i=t[a];void 0!==i&&e.push(t[a])}return e}function V(e,t){return void 0===t&&(t=Oe),e.map(function(e,t){return t}).sort(function(r,n){return t(e[r],e[n])||Oe(r,n)}).map(function(t){return e[t]})}function U(e,t,r,n){for(;r<n;){if(e[r]!==t[r])return!1;r++}return!0}function q(e,t){if(e&&(t=K(e,t),t<e.length))return e[t]}function W(e){return q(e,0)}function H(e){return q(e,-1)}function G(e){return e&&1===e.length?e[0]:void 0}function X(e){return e&&1===e.length?e[0]:e}function Q(e,t,r){var n=e.slice(0);return n[t]=r,n}function Y(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 $(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 ee(e,t){return mr.call(e,t)}function te(e,t){return mr.call(e,t)?e[t]:void 0}function re(e){var t=[];for(var r in e)mr.call(e,r)&&t.push(r);return t}function ne(e,t){for(var r=[],n=e.next(),a=n.value,i=n.done;!i;o=e.next(),a=o.value,i=o.done,o)r.push(t?t(a):a);return r;var o}function ae(e,t){for(var r=[],n=e.next(),a=n.value,i=n.done;!i;o=e.next(),a=o.value,i=o.done,o)r.push(t(a));return r;var o}function ie(e,t){for(var r=e.entries(),n=r.next(),a=n.value,i=n.done;!i;u=r.next(),a=u.value,i=u.done,u){var o=a[0],s=a[1],c=t(s,o);if(c)return c}return;var u}function oe(e,t){for(var r=e.keys(),n=r.next(),a=n.value,i=n.done;!i;s=r.next(),a=s.value,i=s.done,s){var o=t(a);if(o)return o}return;var s}function se(e,t){e.forEach(function(e,r){t.set(r,e)})}function ce(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++){var i=a[n];for(var o in i)ee(i,o)&&(e[o]=i[o])}return e}function ue(e,t,r){if(e===t)return!0;if(!e||!t)return!1;for(var n in e)if(mr.call(e,n)){if(void 0===!mr.call(t,n))return!1;if(r?!r(e[n],t[n]):e[n]!==t[n])return!1}for(var n in t)if(mr.call(t,n)&&!mr.call(e,n))return!1;return!0}function _e(e,t,n){for(var a=r(),i=0,o=e;i<o.length;i++){var s=o[i];a.set(t(s),n?n(s):s)}return a}function le(e){var t=r();return se(e,t),t}function de(e){var t={};for(var r in e)mr.call(e,r)&&(t[r]=e[r]);return t}function pe(e,t){var r={};for(var n in t)mr.call(t,n)&&(r[n]=t[n]);for(var n in e)mr.call(e,n)&&(r[n]=e[n]);return r}function fe(){var e=r();return e.add=me,e.remove=ge,e}function me(e,t){var r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}function ge(e,t){var r=this.get(e);r&&(Zt(r,t),r.length||this["delete"](e))}function ye(e){return Array.isArray?Array.isArray(e):e instanceof Array}function ve(e,t){return void 0!==e&&t(e)?e:void 0}function he(e,t){return void 0!==e&&t(e)?e:void Sr.fail("Invalid cast. The supplied value did not pass the test '"+Sr.getFunctionName(t)+"'.")}function be(){}function ke(){throw new Error("Not implemented")}function xe(e){var t;return function(){return e&&(t=e(),e=void 0),t}}function Ce(e,t,r,n,a){if(a){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return function(e){return De.apply(void 0,C(i,function(t){return t(e)}))}}return n?function(a){return De(e(a),t(a),r(a),n(a))}:r?function(n){return De(e(n),t(n),r(n))}:t?function(r){return De(e(r),t(r))}:e?function(t){return De(e(t))}:function(e){return function(e){return e}}}function De(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 Se(e,t,r){return r=r||0,e.replace(/{(\d+)}/g,function(e,n){return t[+n+r]})}function Te(t){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[t.key]||t.message}function Ee(e,t,r,n){var a=t+r;Sr.assert(t>=0,"start must be non-negative, is "+t),Sr.assert(r>=0,"length must be non-negative, is "+r),e&&(Sr.assert(t<=e.text.length,"start must be within the bounds of the file. "+t+" > "+e.text.length),Sr.assert(a<=e.text.length,"end must be the bounds of the file. "+a+" > "+e.text.length));var i=Te(n);return arguments.length>4&&(i=Se(i,arguments,4)),{file:e,start:t,length:r,messageText:i,category:n.category,code:n.code}}function Ne(e,t){var r=Te(t);return arguments.length>2&&(r=Se(r,arguments,2)),r}function Ae(e){var t=Te(e);return arguments.length>1&&(t=Se(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code}}function we(e){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText}}function Pe(e,t){var r=Te(t);return arguments.length>2&&(r=Se(r,arguments,2)),{messageText:r,category:t.category,code:t.code,next:e}}function Fe(e,t){for(var r=e;r.next;)r=r.next;return r.next=t,e}function Oe(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e<t?-1:1}function Ie(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){var a=e.localeCompareIsCorrect?e.collator.compare(t,r):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 Re(e,t){return Ie(e,t,!0)}function Me(e){return e.file?e.file.fileName:void 0}function Le(e,t){return Oe(Me(e),Me(t))||Oe(e.start,t.start)||Oe(e.length,t.length)||Oe(e.code,t.code)||Be(e.messageText,t.messageText)||0}function Be(e,t){for(;e&&t;){var r="string"==typeof e?e:e.messageText,n="string"==typeof t?t:t.messageText,a=Oe(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 Je(e){return ze(e.sort(Le))}function ze(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===Le(a,r);i||(t.push(a),r=a)}return t}function Ke(e){return e.replace(/\\/g,"/")}function je(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 Ve(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&&".."!==H(a)?a.pop():s&&a.push(s))}return a}function Ue(t){t=Ke(t);var r=je(t),n=t.substr(0,r),a=Ve(t,r);if(a.length){var i=n+a.join(e.directorySeparator);return qe(t)?i+e.directorySeparator:i}return n}function qe(e){return e.charCodeAt(e.length-1)===gr}function We(t){return t.substr(0,Math.max(je(t),t.lastIndexOf(e.directorySeparator)))}function He(e){return e&&!$e(e)&&e.indexOf("://")!==-1}function Ge(e){return/^\.\.?($|[\\/])/.test(e)}function Xe(e){return e.target||0}function Qe(t){return"number"==typeof t.module?t.module:Xe(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function Ye(t){var r=t.moduleResolution;return void 0===r&&(r=Qe(t)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),r}function Ze(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 $e(e){return 0!==je(e)}function et(e,t,r){return $e(e)?st(t,e,t,r,!1):e}function tt(e,t){var r=Ve(e,t);return[e.substr(0,t)].concat(r)}function rt(e,t){e=Ke(e);var r=je(e);return 0===r&&(e=ut(Ke(t),e),r=je(e)),tt(e,r)}function nt(e,t){return at(rt(e,t))}function at(t){if(t&&t.length)return t[0]+t.slice(1).join(e.directorySeparator)}function it(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,tt(t,n)):[t+e.directorySeparator]}function ot(e,t){return He(e)?it(e):rt(e,t)}function st(t,r,n,a,i){var o=ot(r,n),s=ot(t,n);s.length>1&&""===H(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=at(o);return i&&$e(l)&&(l="file:///"+l),l}function ct(t){if(void 0!==t){var r=t.lastIndexOf(e.directorySeparator);return r<0?t:t.substring(r+1)}}function ut(t,r){return t&&t.length?r&&r.length?0!==je(r)?r:t.charAt(t.length-1)===e.directorySeparator?t+r:t+e.directorySeparator+r:t:r}function _t(t){return t.charAt(t.length-1)===e.directorySeparator?t.substr(0,t.length-1):t}function lt(t){return t.charAt(t.length-1)!==e.directorySeparator?t+e.directorySeparator:t}function dt(e,t,r,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;e=_t(e),t=_t(t);for(var a=rt(e,r),i=rt(t,r),o=Math.min(a.length,i.length),s=0;s<o;s++){var c=Ie(a[s],i[s],n);if(0!==c)return c}return Oe(a.length,i.length)}function pt(e,t,r,n){if(void 0===e||void 0===t)return!1;if(e===t)return!0;if(e=_t(e),t=_t(t),e===t)return!0;var a=rt(e,r),i=rt(t,r);if(i.length<a.length)return!1;for(var o=0;o<a.length;o++){var s=Ie(a[o],i[o],n);if(0!==s)return!1}return!0}function ft(e,t){return 0===e.lastIndexOf(t,0)}function mt(e,t){return ft(e,t)?e.substr(t.length):e}function gt(e,t){var r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function yt(e){return ct(e).indexOf(".")>=0}function vt(e,t){return e.length>t.length&&gt(e,t)}function ht(e,t){for(var r=0,n=t;r<n.length;r++){var a=n[r];if(vt(e,a))return!0}return!1}function bt(e,t,r){var n=kt(e,t,r);if(n&&n.length){var a=n.map(function(e){return"("+e+")"}).join("|"),i="exclude"===r?"($|/)":"$";return"^("+a+")"+i}}function kt(e,t,r){if(void 0!==e&&0!==e.length){var n="files"===r?Dt:St,a="files"===r?hr:br,i="exclude"===r?"(/.+?)?":"(/[^/.][^/]*)*?";return T(e,function(e){return e&&Ct(e,t,r,a,i,n)})}}function xt(e){return!/[.*?]/.test(e)}function Ct(t,r,n,a,i,o){var s="",c=!1,u=!1,_=rt(t,r),l=H(_);if("exclude"===n||"**"!==l){_[0]=_t(_[0]),xt(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(yr,o);u=!0}for(;d>0;)s+=")?",d--;return s}}function Dt(e){return Tt(e,hr)}function St(e){return Tt(e,br)}function Tt(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function Et(e,t,r,n,a){e=Ue(e),a=Ue(a);var i=ut(a,e);return{includeFilePatterns:C(kt(r,i,"files"),function(e){return"^"+e+"$"}),includeFilePattern:bt(r,i,"files"),includeDirectoryPattern:bt(r,i,"directories"),excludePattern:bt(t,i,"exclude"),basePaths:At(e,r,n)}}function Nt(e,t,r,n,a,i,o){function s(e,r){var n=o(e),a=n.files,i=n.directories;a=a.slice().sort(m),i=i.slice().sort(m);for(var c=function(n){var a=ut(e,n),i=ut(r,n);if(t&&!ht(a,t))return"continue";if(d&&d.test(i))return"continue";if(_){var o=f(_,function(e){return e.test(i)});o!==-1&&p[o].push(a)}else p[0].push(a)},u=0,g=a;u<g.length;u++){var y=g[u];c(y)}for(var v=0,h=i;v<h.length;v++){var y=h[v],b=ut(e,y),k=ut(r,y);l&&!l.test(k)||d&&d.test(k)||s(b,k)}}e=Ue(e),i=Ue(i);for(var c=Et(e,r,n,a,i),u=a?"":"i",_=c.includeFilePatterns&&c.includeFilePatterns.map(function(e){return new RegExp(e,u)}),l=c.includeDirectoryPattern&&new RegExp(c.includeDirectoryPattern,u),d=c.excludePattern&&new RegExp(c.excludePattern,u),p=_?_.map(function(){return[]}):[[]],m=a?Ie:Re,g=0,y=c.basePaths;g<y.length;g++){var v=y[g];s(v,ut(i,v))}return S(p)}function At(t,r,n){var a=[t];if(r){for(var i=[],o=0,s=r;o<s.length;o++){var c=s[o],u=$e(c)?c:Ue(ut(t,c));i.push(wt(u))}i.sort(n?Ie:Re);for(var _=function(r){e.every(a,function(e){return!pt(e,r,t,!n)})&&a.push(r)},l=0,d=i;l<d.length;l++){var p=d[l];_(p)}}return a}function wt(t){var r=v(t,vr);return r<0?yt(t)?_t(We(t)):t:t.substring(0,t.lastIndexOf(e.directorySeparator,r))}function Pt(e,t){return t||Ft(e)||3}function Ft(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 Ot(t,r){var n=t&&t.allowJs;if(!r||0===r.length||!n)return n?kr:e.supportedTypeScriptExtensions;for(var a=kr.slice(0),i=0,o=r;i<o.length;i++){var s=o[i];a.indexOf(s.extension)===-1&&a.push(s.extension)}return a}function It(t){return c(e.supportedJavascriptExtensions,function(e){return vt(t,e)})}function Rt(t){return c(e.supportedTypeScriptExtensions,function(e){return vt(t,e)})}function Mt(e,t,r){if(!e)return!1;for(var n=0,a=Ot(t,r);n<a.length;n++){var i=a[n];if(vt(e,i))return!0}return!1}function Lt(e,t){for(var r=t.length-1;r>=0;r--)if(vt(e,t[r]))return Bt(r,t);return 0}function Bt(e,t){return e<2?0:e<t.length?2:t.length}function Jt(e,t){return e<2?2:t.length}function zt(e){for(var t=0,r=Cr;t<r.length;t++){var n=r[t],a=Kt(e,n);if(void 0!==a)return a}return e}function Kt(e,t){return vt(e,t)?jt(e,t):void 0}function jt(e,t){return e.substring(0,e.length-t.length)}function Vt(e,t){return zt(e)+t}function Ut(e,t){this.flags=e,this.name=t,this.declarations=void 0}function qt(e,t){this.flags=t,Sr.isDebugging&&(this.checker=e)}function Wt(){}function Ht(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 Gt(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||function(e){return e}}function Xt(e,t){for(var r=0;r<e.length;r++)if(e[r]===t)return Qt(e,r),!0;return!1}function Qt(e,t){for(var r=t;r<e.length-1;r++)e[r]=e[r+1];e.pop()}function Yt(e,t){e[t]=e[e.length-1],e.pop()}function Zt(e,t){$t(e,function(e){return e===t})}function $t(e,t){for(var r=0;r<e.length;r++)if(t(e[r])){Yt(e,r);break}}function er(e){return e?function(e){return e}:function(e){return e.toLowerCase()}}function tr(e,t){for(var r=[],n=0,a=e;n<a.length;n++){var i=a[n],o=or(i);if(o)r.push(o);else if(i===t)return i}return ar(r,function(e){return e},t)}function rr(e){var t=e.prefix,r=e.suffix;return t+"*"+r}function nr(e,t){return Sr.assert(ir(e,t)),t.substr(e.prefix.length,t.length-e.suffix.length)}function ar(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);ir(c,r)&&c.prefix.length>a&&(a=c.prefix.length,n=s)}return n}function ir(e,t){var r=e.prefix,n=e.suffix;return t.length>=r.length+n.length&&ft(t,r)&&gt(t,n)}function or(e){Sr.assert(Ze(e));var t=e.indexOf("*");return t===-1?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function sr(e){return!(e>=0)}function cr(t){return t<=e.Extension.LastTypeScriptExtension}function ur(e){var t=_r(e);return void 0!==t?t:void Sr.fail("File "+e+" has unknown extension.")}function _r(t){return vt(t,".d.ts")?e.Extension.Dts:vt(t,".ts")?e.Extension.Ts:vt(t,".tsx")?e.Extension.Tsx:vt(t,".js")?e.Extension.Js:vt(t,".jsx")?e.Extension.Jsx:void 0}function lr(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}var dr;!function(e){e[e.False=0]="False",e[e.Maybe=1]="Maybe",e[e.True=-1]="True"}(dr=e.Ternary||(e.Ternary={})),e.collator="object"==typeof Intl&&"function"==typeof Intl.Collator?new Intl.Collator((void 0),{usage:"sort",sensitivity:"accent"}):void 0,e.localeCompareIsCorrect=e.collator&&e.collator.compare("a","B")<0,e.createMap=r,e.createMapFromTemplate=n;var pr="undefined"!=typeof Map&&"entries"in Map.prototype?Map:a();e.createFileMap=i,e.toPath=o;var fr;!function(e){e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan"}(fr=e.Comparison||(e.Comparison={})),e.length=s,e.forEach=c,e.findAncestor=u,e.zipWith=_,e.zipToMap=l,e.every=d,e.find=p,e.findIndex=f,e.findMap=m,e.contains=g,e.indexOf=y,e.indexOfAnyCharCode=v,e.countWhere=h,e.filter=b,e.removeWhere=k,e.filterMutate=x,e.map=C,e.sameMap=D,e.flatten=S,e.flatMap=T,e.sameFlatMap=E,e.mapDefined=N,e.span=A,e.spanMap=w,e.mapEntries=P,e.some=F,e.concatenate=O,e.deduplicate=I,e.arrayIsEqualTo=R,e.changesAffectModuleResolution=M,e.compact=L,e.relativeComplement=B,e.sum=J,e.append=z,e.addRange=j,e.stableSort=V,e.rangeEquals=U,e.elementAt=q,e.firstOrUndefined=W,e.lastOrUndefined=H,e.singleOrUndefined=G,e.singleOrMany=X,e.replaceElement=Q,e.binarySearch=Y,e.reduceLeft=Z,e.reduceRight=$;var mr=Object.prototype.hasOwnProperty;e.hasProperty=ee,e.getProperty=te,e.getOwnKeys=re,e.arrayFrom=ne,e.convertToArray=ae,e.forEachEntry=ie,e.forEachKey=oe,e.copyEntries=se,e.assign=ce,e.equalOwnProperties=ue,e.arrayToMap=_e,e.cloneMap=le,e.clone=de,e.extend=pe,e.createMultiMap=fe,e.isArray=ye,e.tryCast=ve,e.cast=he,e.noop=be,e.notImplemented=ke,e.memoize=xe,e.chain=Ce,e.compose=De,e.formatStringFromArgs=Se,e.localizedDiagnosticMessages=void 0,e.getLocaleSpecificMessage=Te,e.createFileDiagnostic=Ee,e.formatMessage=Ne,e.createCompilerDiagnostic=Ae,e.createCompilerDiagnosticFromMessageChain=we,e.chainDiagnosticMessages=Pe,e.concatenateDiagnosticMessageChains=Fe,e.compareValues=Oe,e.compareStrings=Ie,e.compareStringsCaseInsensitive=Re,e.compareDiagnostics=Le,e.sortAndDeduplicateDiagnostics=Je,e.deduplicateSortedDiagnostics=ze,e.normalizeSlashes=Ke,e.getRootLength=je,e.directorySeparator="/";var gr=47;e.normalizePath=Ue,e.pathEndsWithDirectorySeparator=qe,e.getDirectoryPath=We,e.isUrl=He,e.isExternalModuleNameRelative=Ge,e.getEmitScriptTarget=Xe,e.getEmitModuleKind=Qe,e.getEmitModuleResolutionKind=Ye,e.hasZeroOrOneAsteriskCharacter=Ze,e.isRootedDiskPath=$e,e.convertToRelativePath=et,e.getNormalizedPathComponents=rt,e.getNormalizedAbsolutePath=nt,e.getNormalizedPathFromPathComponents=at,e.getRelativePathToDirectoryOrUrl=st,e.getBaseFileName=ct,e.combinePaths=ut,e.removeTrailingDirectorySeparator=_t,e.ensureTrailingDirectorySeparator=lt,e.comparePaths=dt,e.containsPath=pt,e.startsWith=ft,e.removePrefix=mt,e.endsWith=gt,e.hasExtension=yt,e.fileExtensionIs=vt,e.fileExtensionIsOneOf=ht;var yr=/[^\w\s\/]/g,vr=[42,63],hr="([^./]|(\\.(?!min\\.js$))?)*",br="[^/]*";e.getRegularExpressionForWildcard=bt,e.isImplicitGlob=xt,e.getFileMatcherPatterns=Et,e.matchFiles=Nt,e.ensureScriptKind=Pt,e.getScriptKindFromFileName=Ft,e.supportedTypeScriptExtensions=[".ts",".tsx",".d.ts"],e.supportedTypescriptExtensionsForExtractExtension=[".d.ts",".ts",".tsx"],e.supportedJavascriptExtensions=[".js",".jsx"];var kr=e.supportedTypeScriptExtensions.concat(e.supportedJavascriptExtensions);e.getSupportedExtensions=Ot,e.hasJavaScriptFileExtension=It,
e.hasTypeScriptFileExtension=Rt,e.isSupportedSourceFileName=Mt;var xr;!function(e){e[e.TypeScriptFiles=0]="TypeScriptFiles",e[e.DeclarationAndJavaScriptFiles=2]="DeclarationAndJavaScriptFiles",e[e.Highest=0]="Highest",e[e.Lowest=2]="Lowest"}(xr=e.ExtensionPriority||(e.ExtensionPriority={})),e.getExtensionPriority=Lt,e.adjustExtensionPriority=Bt,e.getNextLowestExtensionPriority=Jt;var Cr=[".d.ts",".ts",".js",".tsx",".jsx"];e.removeFileExtension=zt,e.tryRemoveExtension=Kt,e.removeExtension=jt,e.changeExtension=Vt,e.objectAllocator={getNodeConstructor:function(){return Ht},getTokenConstructor:function(){return Ht},getIdentifierConstructor:function(){return Ht},getSourceFileConstructor:function(){return Ht},getSymbolConstructor:function(){return Ut},getTypeConstructor:function(){return qt},getSignatureConstructor:function(){return Wt},getSourceMapSourceConstructor:function(){return Gt}};var Dr;!function(e){e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive"}(Dr=e.AssertionLevel||(e.AssertionLevel={}));var Sr;!function(e){function t(t){return e.currentAssertionLevel>=t}function r(e,t,a,i){e||(a&&(t+="\r\nVerbose Debug Information: "+a()),n(t?"False expression: "+t:"False expression.",i||r))}function n(e,t){var r=new Error(e?"Debug Failure. ":"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(r,t||n),r}function a(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]:""}e.currentAssertionLevel=0,e.isDebugging=!1,e.shouldAssert=t,e.assert=r,e.fail=n,e.getFunctionName=a}(Sr=e.Debug||(e.Debug={})),e.orderedRemoveItem=Xt,e.orderedRemoveItemAt=Qt,e.unorderedRemoveItemAt=Yt,e.unorderedRemoveItem=Zt,e.createGetCanonicalFileName=er,e.matchPatternOrExact=tr,e.patternText=rr,e.matchedText=nr,e.findBestPatternMatch=ar,e.tryParsePattern=or,e.positionIsSynthesized=sr,e.extensionIsTypeScript=cr,e.extensionFromPath=ur,e.tryGetExtensionFromPath=_r,e.isCheckJsEnabledForFile=lr}(ts||(ts={}));var ts;!function(e){function t(){if("undefined"!=typeof process){var e=process.version;if(e){var t=e.indexOf(".");if(t!==-1)return parseInt(e.substring(1,t))}}}e.getNodeMajorVersion=t,e.sys=function(){function r(){function r(){function t(t){var r=e.getDirectoryPath(t),n=c.get(r);n&&(n.referenceCount-=1,n.referenceCount<=0&&(n.close(),c["delete"](r)))}function r(e){var t=c.get(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.set(e,t))}function n(e,t){u.add(e,t)}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(e,t){u.remove(e,t)}function s(t,r,n){var a="string"!=typeof r?void 0:e.getNormalizedAbsolutePath(r,n);if("change"===t||"rename"===t){var i=u.get(a);if(i)for(var o=0,s=i;o<s.length;o++){var c=s[o];c(a)}}}var c=e.createMap(),u=e.createMultiMap();return{addFile:a,removeFile:i}}function n(){return"win32"!==k&&"win64"!==k&&(!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,x,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=r(),h=t(),b=h>=4,k=m.platform(),x=n();!function(e){e[e.File=0]="File",e[e.Directory=1]="Directory"}(d||(d={}));var C={close:e.noop},D={args:process.argv.slice(2),newLine:m.EOL,useCaseSensitiveFileNames:x,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,r,n){var a;return _(t)?(a=!b||"win32"!==process.platform&&"darwin"!==process.platform?{persistent:!0}:{persistent:!0,recursive:!!n},p.watch(t,a,function(n,a){"rename"===n&&r(a?e.normalizePath(e.combinePaths(t,a)):a)})):C},resolvePath:function(e){return f.resolve(e)},fileExists:u,directoryExists:_,createDirectory:function(e){D.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)},debugMode:e.some(process.execArgv,function(e){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)}),tryEnableSourceMapsForHost:function(){try{require("source-map-support").install()}catch(e){}},setTimeout:setTimeout,clearTimeout:clearTimeout};return D}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 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),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!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."},The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:{code:1058,category:e.DiagnosticCategory.Error,key:"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058",message:"The return type of an async function must either be a valid promise or must not contain a callable 'then' member."},A_promise_must_have_a_then_method:{code:1059,category:e.DiagnosticCategory.Error,key:"A_promise_must_have_a_then_method_1059",message:"A promise must have a 'then' method."},The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:{code:1060,category:e.DiagnosticCategory.Error,key:"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060",message:"The first parameter of the 'then' method of a promise must be a callback."},Enum_member_must_have_initializer:{code:1061,category:e.DiagnosticCategory.Error,key:"Enum_member_must_have_initializer_1061",message:"Enum member must have initializer."},Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:{code:1062,category:e.DiagnosticCategory.Error,key:"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062",message:"Type 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_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator:{code:1103,category:e.DiagnosticCategory.Error,key:"A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator_1103",message:"A 'for-await-of' statement is only allowed within an async function or async generator."},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."},Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided:{code:1205,category:e.DiagnosticCategory.Error,key:"Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided_1205",message:"Cannot re-export a type when the '--isolatedModules' flag is provided."},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."},Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:{code:1216,category:e.DiagnosticCategory.Error,key:"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216",message:"Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."},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."},A_default_export_can_only_be_used_in_an_ECMAScript_style_module:{code:1319,category:e.DiagnosticCategory.Error,key:"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319",message:"A default export can only be used in an ECMAScript-style module."},Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:{code:1320,category:e.DiagnosticCategory.Error,key:"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320",message:"Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."},Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:{code:1321,category:e.DiagnosticCategory.Error,key:"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321",message:"Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."},Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:{code:1322,category:e.DiagnosticCategory.Error,key:"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322",message:"Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."},Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules:{code:1323,category:e.DiagnosticCategory.Error,key:"Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules_1323",message:"Dynamic import cannot be used when targeting ECMAScript 2015 modules."},Dynamic_import_must_have_one_specifier_as_an_argument:{code:1324,category:e.DiagnosticCategory.Error,key:"Dynamic_import_must_have_one_specifier_as_an_argument_1324",message:"Dynamic import must have one specifier as an argument."},Specifier_of_dynamic_import_cannot_be_spread_element:{code:1325,category:e.DiagnosticCategory.Error,key:"Specifier_of_dynamic_import_cannot_be_spread_element_1325",message:"Specifier of dynamic import cannot be spread element."},Dynamic_import_cannot_have_type_arguments:{code:1326,category:e.DiagnosticCategory.Error,key:"Dynamic_import_cannot_have_type_arguments_1326",message:"Dynamic import cannot have type arguments"},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}'."},Call_target_does_not_contain_any_signatures:{code:2346,category:e.DiagnosticCategory.Error,key:"Call_target_does_not_contain_any_signatures_2346",message:"Call target does not contain any signatures."},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."},Class_0_used_before_its_declaration:{code:2449,category:e.DiagnosticCategory.Error,key:"Class_0_used_before_its_declaration_2449",message:"Class '{0}' used before its declaration."},Enum_0_used_before_its_declaration:{code:2450,category:e.DiagnosticCategory.Error,key:"Enum_0_used_before_its_declaration_2450",message:"Enum '{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}'."},Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:{code:2504,category:e.DiagnosticCategory.Error,key:"Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504",message:"Type must have a '[Symbol.asyncIterator]()' method that returns an async iterator."},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."},An_async_iterator_must_have_a_next_method:{code:2519,category:e.DiagnosticCategory.Error,key:"An_async_iterator_must_have_a_next_method_2519",message:"An async iterator must have a 'next()' method."},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."},Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:{code:2543,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543",message:"Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."},Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:{code:2544,category:e.DiagnosticCategory.Error,key:"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544",message:"Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."},A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:{code:2545,category:e.DiagnosticCategory.Error,key:"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545",message:"A mixin class must have a constructor with a single rest parameter of type 'any[]'."},Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1:{code:2546,category:e.DiagnosticCategory.Error,key:"Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1_2546",message:"Property '{0}' has conflicting declarations and is inaccessible in type '{1}'."},The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:{code:2547,category:e.DiagnosticCategory.Error,key:"The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value__2547",message:"The type returned by the 'next()' method of an async iterator must be a promise for a type with a 'value' property."},Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:{code:2548,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548",message:"Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."},Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:{code:2549,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549",message:"Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."},Generic_type_instantiation_is_excessively_deep_and_possibly_infinite:{code:2550,category:e.DiagnosticCategory.Error,key:"Generic_type_instantiation_is_excessively_deep_and_possibly_infinite_2550",message:"Generic type instantiation is excessively deep and possibly infinite."},Property_0_does_not_exist_on_type_1_Did_you_mean_2:{code:2551,category:e.DiagnosticCategory.Error,key:"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551",message:"Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"},Cannot_find_name_0_Did_you_mean_1:{code:2552,category:e.DiagnosticCategory.Error,key:"Cannot_find_name_0_Did_you_mean_1_2552",message:"Cannot find name '{0}'. Did you mean '{1}'?"},Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:{code:2553,category:e.DiagnosticCategory.Error,key:"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553",message:"Computed values are not permitted in an enum with string valued members."},Expected_0_arguments_but_got_1:{code:2554,category:e.DiagnosticCategory.Error,key:"Expected_0_arguments_but_got_1_2554",message:"Expected {0} arguments, but got {1}."},Expected_at_least_0_arguments_but_got_1:{code:2555,category:e.DiagnosticCategory.Error,key:"Expected_at_least_0_arguments_but_got_1_2555",message:"Expected at least {0} arguments, but got {1}."},Expected_0_arguments_but_got_a_minimum_of_1:{code:2556,category:e.DiagnosticCategory.Error,key:"Expected_0_arguments_but_got_a_minimum_of_1_2556",message:"Expected {0} arguments, but got a minimum of {1}."},Expected_at_least_0_arguments_but_got_a_minimum_of_1:{code:2557,category:e.DiagnosticCategory.Error,key:"Expected_at_least_0_arguments_but_got_a_minimum_of_1_2557",message:"Expected at least {0} arguments, but got a minimum of {1}."},Expected_0_type_arguments_but_got_1:{code:2558,category:e.DiagnosticCategory.Error,key:"Expected_0_type_arguments_but_got_1_2558",message:"Expected {0} type arguments, but got {1}."},Type_0_has_no_properties_in_common_with_type_1:{code:2559,category:e.DiagnosticCategory.Error,key:"Type_0_has_no_properties_in_common_with_type_1_2559",message:"Type '{0}' has no properties in common with type '{1}'."},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."},JSX_spread_child_must_be_an_array_type:{code:2609,category:e.DiagnosticCategory.Error,key:"JSX_spread_child_must_be_an_array_type_2609",message:"JSX spread child must be an array type."},Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:{code:2649,category:e.DiagnosticCategory.Error,key:"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649",message:"Cannot augment module '{0}' with value exports because it resolves to a non-module entity."},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'?"},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."},Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:{code:2699,category:e.DiagnosticCategory.Error,key:"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699",message:"Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."},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."},The_operand_of_a_delete_operator_must_be_a_property_reference:{code:2703,category:e.DiagnosticCategory.Error,key:"The_operand_of_a_delete_operator_must_be_a_property_reference_2703",message:"The operand of a delete operator must be a property reference."},The_operand_of_a_delete_operator_cannot_be_a_read_only_property:{code:2704,category:e.DiagnosticCategory.Error,key:"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704",message:"The operand of a delete operator cannot be a read-only property."},An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:{code:2705,category:e.DiagnosticCategory.Error,key:"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705",message:"An async function or method in ES5/ES3 requires the 'Promise' constructor.  Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option."},Required_type_parameters_may_not_follow_optional_type_parameters:{code:2706,category:e.DiagnosticCategory.Error,key:"Required_type_parameters_may_not_follow_optional_type_parameters_2706",message:"Required type parameters may not follow optional type parameters."},Generic_type_0_requires_between_1_and_2_type_arguments:{code:2707,category:e.DiagnosticCategory.Error,key:"Generic_type_0_requires_between_1_and_2_type_arguments_2707",message:"Generic type '{0}' requires between {1} and {2} type arguments."},Cannot_use_namespace_0_as_a_value:{code:2708,category:e.DiagnosticCategory.Error,key:"Cannot_use_namespace_0_as_a_value_2708",message:"Cannot use namespace '{0}' as a value."},Cannot_use_namespace_0_as_a_type:{code:2709,category:e.DiagnosticCategory.Error,key:"Cannot_use_namespace_0_as_a_type_2709",message:"Cannot use namespace '{0}' as a type."},_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:{code:2710,category:e.DiagnosticCategory.Error,key:"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710",message:"'{0}' are specified twice. The attribute named '{0}' will be overwritten."},A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:{code:2711,category:e.DiagnosticCategory.Error,key:"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711",message:"A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your `--lib` option."},A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:{code:2712,category:e.DiagnosticCategory.Error,key:"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712",message:"A dynamic import call in ES5/ES3 requires the 'Promise' constructor.  Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option."},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}'."},Property_0_of_exported_class_expression_may_not_be_private_or_protected:{code:4094,category:e.DiagnosticCategory.Error,key:"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094",message:"Property '{0}' of exported class expression may not be private or protected."},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}."},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_es2015_or_ESNext:{code:6016,category:e.DiagnosticCategory.Message,key:"Specify_module_code_generation_Colon_commonjs_amd_system_umd_es2015_or_ESNext_6016",message:"Specify module code generation: 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'."},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_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:{code:6020,category:e.DiagnosticCategory.Message,key:"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020",message:"Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."},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"},FILE_OR_DIRECTORY:{code:6040,category:e.DiagnosticCategory.Message,key:"FILE_OR_DIRECTORY_6040",message:"FILE OR DIRECTORY"},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_react_native_or_react:{code:6080,category:e.DiagnosticCategory.Message,key:"Specify_JSX_code_generation_Colon_preserve_react_native_or_react_6080",message:"Specify JSX code generation: 'preserve', 'react-native', 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."},Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:{code:6084,category:e.DiagnosticCategory.Message,key:"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084",message:"[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement 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_target_file_type_1:{code:6095,category:e.DiagnosticCategory.Message,key:"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095",message:"Loading module as file / folder, candidate module location '{0}', target file type '{1}'."},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_target_file_type_1:{code:6098,category:e.DiagnosticCategory.Message,key:"Loading_module_0_from_node_modules_folder_target_file_type_1_6098",message:"Loading module '{0}' from 'node_modules' folder, target file type '{1}'."},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_0_field:{code:6100,category:e.DiagnosticCategory.Message,key:"package_json_does_not_have_a_0_field_6100",message:"'package.json' does not have a '{0}' 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."},Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:{code:6137,category:e.DiagnosticCategory.Error,key:"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137",message:"Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."},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."},Directory_0_does_not_exist_skipping_all_lookups_in_it:{code:6148,category:e.DiagnosticCategory.Message,key:"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148",message:"Directory '{0}' does not exist, skipping all lookups in it."},Show_diagnostic_information:{code:6149,category:e.DiagnosticCategory.Message,key:"Show_diagnostic_information_6149",message:"Show diagnostic information."},Show_verbose_diagnostic_information:{code:6150,category:e.DiagnosticCategory.Message,key:"Show_verbose_diagnostic_information_6150",message:"Show verbose diagnostic information."},Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:{code:6151,category:e.DiagnosticCategory.Message,key:"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151",message:"Emit a single file with source maps instead of having a separate file."},Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:{code:6152,category:e.DiagnosticCategory.Message,key:"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152",message:"Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."},Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:{code:6153,category:e.DiagnosticCategory.Message,key:"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153",message:"Transpile each file as a separate module (similar to 'ts.transpileModule')."},Print_names_of_generated_files_part_of_the_compilation:{code:6154,category:e.DiagnosticCategory.Message,key:"Print_names_of_generated_files_part_of_the_compilation_6154",message:"Print names of generated files part of the compilation."},Print_names_of_files_part_of_the_compilation:{code:6155,category:e.DiagnosticCategory.Message,key:"Print_names_of_files_part_of_the_compilation_6155",message:"Print names of files part of the compilation."},The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:{code:6156,category:e.DiagnosticCategory.Message,key:"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156",message:"The locale used when displaying messages to the user (e.g. 'en-us')"},Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:{code:6157,category:e.DiagnosticCategory.Message,key:"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157",message:"Do not generate custom helper functions like '__extends' in compiled output."},Do_not_include_the_default_library_file_lib_d_ts:{code:6158,category:e.DiagnosticCategory.Message,key:"Do_not_include_the_default_library_file_lib_d_ts_6158",message:"Do not include the default library file (lib.d.ts)."},Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:{code:6159,category:e.DiagnosticCategory.Message,key:"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159",message:"Do not add triple-slash references or imported modules to the list of compiled files."},Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:{code:6160,category:e.DiagnosticCategory.Message,key:"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160",message:"[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."},List_of_folders_to_include_type_definitions_from:{code:6161,category:e.DiagnosticCategory.Message,key:"List_of_folders_to_include_type_definitions_from_6161",message:"List of folders to include type definitions from."},Disable_size_limitations_on_JavaScript_projects:{code:6162,category:e.DiagnosticCategory.Message,key:"Disable_size_limitations_on_JavaScript_projects_6162",message:"Disable size limitations on JavaScript projects."},The_character_set_of_the_input_files:{code:6163,category:e.DiagnosticCategory.Message,key:"The_character_set_of_the_input_files_6163",message:"The character set of the input files."},Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:{code:6164,category:e.DiagnosticCategory.Message,key:"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6164",message:"Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."},Do_not_truncate_error_messages:{code:6165,category:e.DiagnosticCategory.Message,key:"Do_not_truncate_error_messages_6165",message:"Do not truncate error messages."},Output_directory_for_generated_declaration_files:{code:6166,category:e.DiagnosticCategory.Message,key:"Output_directory_for_generated_declaration_files_6166",message:"Output directory for generated declaration files."},A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:{code:6167,category:e.DiagnosticCategory.Message,key:"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167",message:"A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."},List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:{code:6168,category:e.DiagnosticCategory.Message,key:"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168",message:"List of root folders whose combined content represents the structure of the project at runtime."},Show_all_compiler_options:{code:6169,category:e.DiagnosticCategory.Message,key:"Show_all_compiler_options_6169",message:"Show all compiler options."},Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:{code:6170,category:e.DiagnosticCategory.Message,key:"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170",message:"[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"},Command_line_Options:{code:6171,category:e.DiagnosticCategory.Message,key:"Command_line_Options_6171",message:"Command-line Options"},Basic_Options:{code:6172,category:e.DiagnosticCategory.Message,key:"Basic_Options_6172",message:"Basic Options"},Strict_Type_Checking_Options:{code:6173,category:e.DiagnosticCategory.Message,key:"Strict_Type_Checking_Options_6173",message:"Strict Type-Checking Options"},Module_Resolution_Options:{code:6174,category:e.DiagnosticCategory.Message,key:"Module_Resolution_Options_6174",message:"Module Resolution Options"},Source_Map_Options:{code:6175,category:e.DiagnosticCategory.Message,key:"Source_Map_Options_6175",message:"Source Map Options"},Additional_Checks:{code:6176,category:e.DiagnosticCategory.Message,key:"Additional_Checks_6176",message:"Additional Checks"},Experimental_Options:{code:6177,category:e.DiagnosticCategory.Message,key:"Experimental_Options_6177",message:"Experimental Options"},Advanced_Options:{code:6178,category:e.DiagnosticCategory.Message,key:"Advanced_Options_6178",message:"Advanced Options"},Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:{code:6179,category:e.DiagnosticCategory.Message,key:"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179",message:"Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."},Enable_all_strict_type_checking_options:{code:6180,category:e.DiagnosticCategory.Message,key:"Enable_all_strict_type_checking_options_6180",message:"Enable all strict type-checking options."},List_of_language_service_plugins:{code:6181,category:e.DiagnosticCategory.Message,key:"List_of_language_service_plugins_6181",message:"List of language service plugins."},Scoped_package_detected_looking_in_0:{code:6182,category:e.DiagnosticCategory.Message,key:"Scoped_package_detected_looking_in_0_6182",message:"Scoped package detected, looking in '{0}'"},Reusing_resolution_of_module_0_to_file_1_from_old_program:{code:6183,category:e.DiagnosticCategory.Message,key:"Reusing_resolution_of_module_0_to_file_1_from_old_program_6183",message:"Reusing resolution of module '{0}' to file '{1}' from old program."},Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program:{code:6184,category:e.DiagnosticCategory.Message,key:"Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program_6184",message:"Reusing module resolutions originating in '{0}' since resolutions are unchanged from old program."},Disable_strict_checking_of_generic_signatures_in_function_types:{code:6185,category:e.DiagnosticCategory.Message,key:"Disable_strict_checking_of_generic_signatures_in_function_types_6185",message:"Disable strict checking of generic signatures in function types."},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."},Try_npm_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:{code:7035,category:e.DiagnosticCategory.Error,key:"Try_npm_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_mod_7035",message:"Try `npm install @types/{0}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"},Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:{code:7036,category:e.DiagnosticCategory.Error,key:"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036",message:"Dynamic import's specifier must be of type 'string', but here has type '{0}'."},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_clause:{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' clause."},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."},_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:{code:17012,category:e.DiagnosticCategory.Error,key:"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012",message:"'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"},Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:{code:17013,category:e.DiagnosticCategory.Error,key:"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013",message:"Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."},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_declaration_for_Colon_0:{code:90004,category:e.DiagnosticCategory.Message,key:"Remove_declaration_for_Colon_0_90004",message:"Remove declaration for: '{0}'."},Implement_interface_0:{code:90006,category:e.DiagnosticCategory.Message,key:"Implement_interface_0_90006",message:"Implement interface '{0}'."},Implement_inherited_abstract_class:{code:90007,category:e.DiagnosticCategory.Message,key:"Implement_inherited_abstract_class_90007",message:"Implement inherited abstract class."},Add_this_to_unresolved_variable:{code:90008,category:e.DiagnosticCategory.Message,key:"Add_this_to_unresolved_variable_90008",message:"Add 'this.' to unresolved variable."},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}."},Declare_property_0:{code:90016,category:e.DiagnosticCategory.Message,key:"Declare_property_0_90016",message:"Declare property '{0}'."},Add_index_signature_for_property_0:{code:90017,category:e.DiagnosticCategory.Message,key:"Add_index_signature_for_property_0_90017",message:"Add index signature for property '{0}'."},Disable_checking_for_this_file:{code:90018,category:e.DiagnosticCategory.Message,key:"Disable_checking_for_this_file_90018",message:"Disable checking for this file."},Ignore_this_error_message:{code:90019,category:e.DiagnosticCategory.Message,key:"Ignore_this_error_message_90019",message:"Ignore this error message."},Initialize_property_0_in_the_constructor:{code:90020,category:e.DiagnosticCategory.Message,key:"Initialize_property_0_in_the_constructor_90020",message:"Initialize property '{0}' in the constructor."},Initialize_static_property_0:{code:90021,category:e.DiagnosticCategory.Message,key:"Initialize_static_property_0_90021",message:"Initialize static property '{0}'."},Change_spelling_to_0:{code:90022,category:e.DiagnosticCategory.Message,key:"Change_spelling_to_0_90022",message:"Change spelling to '{0}'."},Declare_method_0:{code:90023,category:e.DiagnosticCategory.Message,key:"Declare_method_0_90023",message:"Declare method '{0}'."},Declare_static_method_0:{code:90024,category:e.DiagnosticCategory.Message,key:"Declare_static_method_0_90024",message:"Declare static method '{0}'."},Prefix_0_with_an_underscore:{code:90025,category:e.DiagnosticCategory.Message,key:"Prefix_0_with_an_underscore_90025",message:"Prefix '{0}' with an underscore."},Convert_function_to_an_ES2015_class:{code:95001,category:e.DiagnosticCategory.Message,key:"Convert_function_to_an_ES2015_class_95001",message:"Convert function to an ES2015 class"},Convert_function_0_to_class:{code:95002,category:e.DiagnosticCategory.Message,key:"Convert_function_0_to_class_95002",message:"Convert function '{0}' to class"},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}'."},Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:{code:8018,category:e.DiagnosticCategory.Error,key:"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018",message:"Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."},Report_errors_in_js_files:{code:8019,category:e.DiagnosticCategory.Message,key:"Report_errors_in_js_files_8019",message:"Report errors in .js files."}}}(ts||(ts={}));var ts;!function(e){function t(e){return e>=71}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,K):r(e,J)}function a(e,t){return t>=1?r(e,j):r(e,z)}function i(e){var t=[];return e.forEach(function(e,r){t[e]=r}),t}function o(e){return V[e]}function s(e){return B.get(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 124: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 124:case 61:case 62:if(k(t,r)){r=x(t,r);continue}break;case 35:if(0===r&&C(t,r)){r=D(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+U<t.length){for(var a=0;a<U;a++)if(t.charCodeAt(r+a)!==n)return!1;return 61===n||32===t.charCodeAt(r+U)}}return!1}function x(t,r,n){n&&n(e.Diagnostics.Merge_conflict_marker_encountered,U);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(124===a||61===a);r<i;){var o=t.charCodeAt(r);if((61===o||62===o)&&o!==a&&k(t,r))break;r++}return r}function C(t,r){return e.Debug.assert(0===r),q.test(t)}function D(e,t){var r=q.exec(e)[0];return t+=r.length}function S(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 T(e,t,r,n){return S(!1,e,t,!1,r,n)}function E(e,t,r,n){return S(!1,e,t,!0,r,n)}function N(e,t,r,n,a){return S(!0,e,t,!1,r,n,a)}function A(e,t,r,n,a){return S(!0,e,t,!0,r,n,a)}function w(e,t,r,n,a,i){return i||(i=[]),i.push({kind:r,pos:e,end:t,hasTrailingNewLine:n}),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){var t=q.exec(e);if(t)return t[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 M(e,t){if(!I(e.charCodeAt(0),t))return!1;for(var r=1;r<e.length;r++)if(!R(e.charCodeAt(r),t))return!1;return!0}function L(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++,le=2,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 h(e,!1)}function p(e){return h(e,!0)}function h(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 b(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+=T(),a=re;else{if(g(o)){n+=i.substring(a,re),_e=!0,u(e.Diagnostics.Unterminated_string_literal);break}re++}}return n}function S(){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?13:16;break}var o=i.charCodeAt(re);if(96===o){a+=i.substring(n,re),re++,r=t?13:16;break}if(36===o&&re+1<ne&&123===i.charCodeAt(re+1)){a+=i.substring(n,re),re+=2,r=t?14:15;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+=T(),n=re)}return e.Debug.assert(void 0!==r),se=a,r}function T(){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++,N()):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 N(){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?"":A(t)}function A(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 w(){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 P(){for(var e="",t=re;re<ne;){var n=i.charCodeAt(re);if(R(n,r))re++;else{if(92!==n)break;if(n=w(),!(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 F(){var e=se.length;if(e>=2&&e<=11){var t=se.charCodeAt(0);if(t>=97&&t<=122&&(oe=B.get(se),void 0!==oe))return oe}return oe=71}function O(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 M(){for(ae=re,ue=!1,ce=!1,_e=!1,le=0;;){if(ie=re,re>=ne)return oe=1;var t=i.charCodeAt(re);if(35===t&&0===re&&C(i,re)){if(re=D(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=35):(re+=2,oe=33):(re++,oe=51);case 34:case 39:return se=b(),oe=9;case 96:return oe=S();case 37:return 61===i.charCodeAt(re+1)?(re+=2,oe=64):(re++,oe=42);case 38:return 38===i.charCodeAt(re+1)?(re+=2,oe=53):61===i.charCodeAt(re+1)?(re+=2,oe=68):(re++,oe=48);case 40:return re++,oe=19;case 41:return re++,oe=20;case 42:return 61===i.charCodeAt(re+1)?(re+=2,oe=61):42===i.charCodeAt(re+1)?61===i.charCodeAt(re+2)?(re+=3,oe=62):(re+=2,oe=40):(re++,oe=39);case 43:return 43===i.charCodeAt(re+1)?(re+=2,oe=43):61===i.charCodeAt(re+1)?(re+=2,oe=59):(re++,oe=37);case 44:return re++,oe=26;case 45:return 45===i.charCodeAt(re+1)?(re+=2,oe=44):61===i.charCodeAt(re+1)?(re+=2,oe=60):(re++,oe=38);case 46:return y(i.charCodeAt(re+1))?(se=_(),oe=8):46===i.charCodeAt(re+1)&&46===i.charCodeAt(re+2)?(re+=3,oe=24):(re++,oe=23);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=63):(re++,oe=41);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,le=8,oe=8}if(re+2<ne&&(66===i.charCodeAt(re+1)||98===i.charCodeAt(re+1))){re+=2;var c=O(2);return c<0&&(u(e.Diagnostics.Binary_digit_expected),c=0),se=""+c,le=16,oe=8}if(re+2<ne&&(79===i.charCodeAt(re+1)||111===i.charCodeAt(re+1))){re+=2;var c=O(8);return c<0&&(u(e.Diagnostics.Octal_digit_expected),c=0),se=""+c,le=32,oe=8}if(re+1<ne&&v(i.charCodeAt(re+1)))return se=""+l(),le=4,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=56;case 59:return re++,oe=25;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=65):(re+=2,oe=45):61===i.charCodeAt(re+1)?(re+=2,oe=30):1===a&&47===i.charCodeAt(re+1)&&42!==i.charCodeAt(re+2)?(re+=2,oe=28):(re++,oe=27);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=34):(re+=2,oe=32):62===i.charCodeAt(re+1)?(re+=2,oe=36):(re++,oe=58);case 62:if(k(i,re)){if(re=x(i,re,u),n)continue;return oe=7}return re++,oe=29;case 63:return re++,oe=55;case 91:return re++,oe=21;case 93:return re++,oe=22;case 94:return 61===i.charCodeAt(re+1)?(re+=2,oe=70):(re++,oe=50);case 123:return re++,oe=17;case 124:if(k(i,re)){if(re=x(i,re,u),n)continue;return oe=7}return 124===i.charCodeAt(re+1)?(re+=2,oe=54):61===i.charCodeAt(re+1)?(re+=2,oe=69):(re++,oe=49);case 125:return re++,oe=18;case 126:return re++,oe=52;case 64:return re++,oe=57;case 92:var d=w();return d>=0&&I(d,r)?(re+=6,se=String.fromCharCode(d)+P(),oe=F()):(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+=P()),oe=F()}if(m(t)){re++;continue}if(g(t)){ce=!0,re++;continue}return u(e.Diagnostics.Invalid_character),re++,oe=0}}}function L(){if(29===oe){if(62===i.charCodeAt(re))return 62===i.charCodeAt(re+1)?61===i.charCodeAt(re+2)?(re+=3,oe=67):(re+=2,oe=47):61===i.charCodeAt(re+1)?(re+=2,oe=66):(re++,oe=46);if(61===i.charCodeAt(re))return re++,oe=31}return oe}function J(){if(41===oe||63===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=12}return oe}function z(){return e.Debug.assert(18===oe,"'reScanTemplateToken' should only be called on a '}'"),re=ie,oe=S()}function K(){return re=ie=ae,oe=j()}function j(){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=28):(re++,oe=27);if(123===e)return re++,oe=17;for(var t=0;re<ne&&(e=i.charCodeAt(re),123!==e);){if(60===e){if(k(i,re))return re=x(i,re,u),oe=7;break}g(e)&&0===t?t=-1:f(e)||(t=re),re++}return t===-1?11:10}function V(){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 U(){switch(ae=re,i.charCodeAt(re)){case 34:case 39:return se=b(!1),oe=9;default:return M()}}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=57;case 10:case 13:return re++,oe=4;case 42:return re++,oe=39;case 123:return re++,oe=17;case 125:return re++,oe=18;case 91:return re++,oe=21;case 93:return re++,oe=22;case 61:return re++,oe=58;case 44:return re++,oe=26;case 46:return re++,oe=23}if(I(e,5)){for(re++;R(i.charCodeAt(re),5)&&re<ne;)re++;return oe=71}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,le;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 71===oe||oe>107},isReservedWord:function(){return oe>=72&&oe<=107;
},isUnterminated:function(){return _e},getNumericLiteralFlags:function(){return le},reScanGreaterToken:L,reScanSlashToken:J,reScanTemplateToken:z,scanJsxIdentifier:V,scanJsxAttributeValue:U,reScanJsxToken:K,scanJsxToken:j,scanJSDocToken:q,scan:M,getText:Q,setText:Y,setScriptTarget:$,setLanguageVariant:ee,setOnError:Z,setTextPos:te,tryScan:X,lookAhead:G,scanRange:H}}e.tokenIsIdentifierOrKeyword=t;var B=e.createMapFromTemplate({"abstract":117,any:119,as:118,"boolean":122,"break":72,"case":73,"catch":74,"class":75,"continue":77,"const":76,constructor:123,"debugger":78,declare:124,"default":79,"delete":80,"do":81,"else":82,"enum":83,"export":84,"extends":85,"false":86,"finally":87,"for":88,from:140,"function":89,get:125,"if":90,"implements":108,"import":91,"in":92,"instanceof":93,"interface":109,is:126,keyof:127,"let":110,module:128,namespace:129,never:130,"new":94,"null":95,number:133,object:134,"package":111,"private":112,"protected":113,"public":114,readonly:131,require:132,global:141,"return":96,set:135,"static":115,string:136,"super":97,"switch":98,symbol:137,"this":99,"throw":100,"true":101,"try":102,type:138,"typeof":103,undefined:139,"var":104,"void":105,"while":106,"with":107,"yield":116,async:120,await:121,of:142,"{":17,"}":18,"(":19,")":20,"[":21,"]":22,".":23,"...":24,";":25,",":26,"<":27,">":29,"<=":30,">=":31,"==":32,"!=":33,"===":34,"!==":35,"=>":36,"+":37,"-":38,"**":40,"*":39,"/":41,"%":42,"++":43,"--":44,"<<":45,"</":28,">>":46,">>>":47,"&":48,"|":49,"^":50,"!":51,"~":52,"&&":53,"||":54,"?":55,":":56,"=":58,"+=":59,"-=":60,"*=":61,"**=":62,"/=":63,"%=":64,"<<=":65,">>=":66,">>>=":67,"&=":68,"|=":69,"^=":70,"@":57}),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,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],z=[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],K=[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,e.isWhiteSpaceLike=f,e.isWhiteSpaceSingleLine=m,e.isLineBreak=g,e.isOctalDigit=v,e.couldStartTrivia=h,e.skipTrivia=b;var U="<<<<<<<".length,q=/^#!.*/;e.forEachLeadingCommentRange=T,e.forEachTrailingCommentRange=E,e.reduceEachLeadingCommentRange=N,e.reduceEachTrailingCommentRange=A,e.getLeadingCommentRanges=P,e.getTrailingCommentRanges=F,e.getShebang=O,e.isIdentifierStart=I,e.isIdentifierPart=R,e.isIdentifierText=M,e.createScanner=L}(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(e,t){var r=e.declarations;if(r)for(var n=0,a=r;n<a.length;n++){var i=a[n];if(t(i))return i}}function n(){if(0===ca.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,reportPrivateInBaseOfClassExpression:e.noop}}return ca.pop()}function a(e){e.clear(),ca.push(e)}function i(e){return e.end-e.pos}function o(e,t){return!!(e&&e.resolvedModules&&e.resolvedModules.get(t))}function s(e,t){return o(e,t)?e.resolvedModules.get(t):void 0}function c(t,r,n){t.resolvedModules||(t.resolvedModules=e.createMap()),t.resolvedModules.set(r,n)}function u(t,r,n){t.resolvedTypeReferenceDirectiveNames||(t.resolvedTypeReferenceDirectiveNames=e.createMap()),t.resolvedTypeReferenceDirectiveNames.set(r,n)}function _(e,t){return e.isExternalLibraryImport===t.isExternalLibraryImport&&e.extension===t.extension&&e.resolvedFileName===t.resolvedFileName}function l(e,t){return e.resolvedFileName===t.resolvedFileName&&e.primary===t.primary}function d(t,r,n,a){e.Debug.assert(t.length===r.length);for(var i=0;i<t.length;i++){var o=r[i],s=n&&n.get(t[i]),c=s?!o||!a(s,o):o;if(c)return!0}return!1}function p(e){return f(e),0!==(131072&e.flags)}function f(t){if(!(262144&t.flags)){var r=0!==(32768&t.flags)||e.forEachChild(t,p);r&&(t.flags|=131072),t.flags|=262144}}function m(e){for(;e&&265!==e.kind;)e=e.parent;return e}function g(e){switch(e.kind){case 207:case 235:case 214:case 215:case 216:return!0}return!1}function y(t,r){return e.Debug.assert(t>=0),e.getLineStarts(r)[t]}function v(t){var r=m(t),n=e.getLineAndCharacterOfPosition(r,t.pos);return r.fileName+"("+(n.line+1)+","+(n.character+1)+")"}function h(e){return e.pos}function b(e){return void 0!==e}function k(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 x(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function C(e){return!x(e)}function D(t,r,n){return x(t)?t.pos:e.isJSDocNode(t)?e.skipTrivia((r||m(t)).text,t.pos,!1,!0):n&&t.jsDoc&&t.jsDoc.length>0?D(t.jsDoc[0]):295===t.kind&&t._children.length>0?D(t._children[0],r,n):e.skipTrivia((r||m(t)).text,t.pos)}function S(t,r){return x(t)||!t.decorators?D(t,r):e.skipTrivia((r||m(t)).text,t.decorators.end)}function T(t,r,n){if(void 0===n&&(n=!1),x(r))return"";var a=t.text;return a.substring(n?r.pos:e.skipTrivia(a,r.pos),r.end)}function E(t,r){return x(r)?"":t.substring(e.skipTrivia(t,r.pos),r.end)}function N(e,t){return void 0===t&&(t=!1),T(m(e),e,t)}function A(t,r){if(!$t(t)&&t.parent)return T(r,t);var n=16777216&e.getEmitFlags(t)?_r:fr;switch(t.kind){case 9:return'"'+n(t.text)+'"';case 13:return"`"+n(t.text)+"`";case 14:return"`"+n(t.text)+"${";case 15:return"}"+n(t.text)+"${";case 16:return"}"+n(t.text)+"`";case 8:return t.text}e.Debug.fail("Literal kind '"+t.kind+"' not accounted for.")}function w(e){return"string"==typeof e?'"'+fr(e)+'"':""+e}function P(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function F(t){return e.getBaseFileName(t).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function O(t){return 0!==(3&e.getCombinedNodeFlags(t))||I(t)}function I(e){var t=Yt(e);return 226===t.kind&&260===t.parent.kind}function R(e){return e&&233===e.kind&&(9===e.name.kind||J(e))}function M(e){return L(e.valueDeclaration)}function L(e){return e&&233===e.kind&&!e.body}function B(t){return 265===t.kind||233===t.kind||e.isFunctionLike(t)}function J(e){return!!(512&e.flags)}function z(t){if(!t||!R(t))return!1;switch(t.parent.kind){case 265:return e.isExternalModule(t.parent);case 234:return R(t.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function K(t,r){return e.isExternalModule(t)||r.isolatedModules}function j(t,r){switch(t.kind){case 265:case 235:case 260:case 233:case 214:case 215:case 216:case 152:case 151:case 153:case 154:case 228:case 186:case 187:return!0;case 207:return r&&!e.isFunctionLike(r)}return!1}function V(e){for(var t=e.parent;t;){if(j(t,t.parent))return t;t=t.parent}}function U(e){return 0===i(e)?"(Missing)":N(e)}function q(e){return e.declaration?U(e.declaration.parameters[0].name):void 0}function W(e){switch(e.kind){case 71:return e.text;case 9:case 8:return e.text;case 144:if(jt(e.expression))return e.expression.text}}function H(t){switch(t.kind){case 71:return 0===i(t)?e.unescapeIdentifier(t.text):N(t);case 143:return H(t.left)+"."+H(t.right);case 179:return H(t.expression)+"."+H(t.name)}}function G(e,t,r,n,a){var i=m(e);return X(i,e,t,r,n,a)}function X(t,r,n,a,i,o){var s=$(t,r);return e.createFileDiagnostic(t,s.start,s.length,n,a,i,o)}function Q(e,t){var r=m(e),n=$(r,e);return{file:r,start:n.start,length:n.length,code:t.code,category:t.category,messageText:t.next?t:t.messageText}}function Y(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 Z(t,r){var n=e.skipTrivia(t.text,r.pos);if(r.body&&207===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,k(a,t)-n+1)}return e.createTextSpanFromBounds(n,r.end)}function $(t,r){var n=r;switch(r.kind){case 265:var a=e.skipTrivia(t.text,0,!1);return a===t.text.length?e.createTextSpan(0,0):Y(t,a);case 226:case 176:case 229:case 199:case 230:case 233:case 232:case 264:case 228:case 186:case 151:case 153:case 154:case 231:n=r.name;break;case 187:return Z(t,r)}if(void 0===n)return Y(t,r.pos);var i=x(n)?n.pos:e.skipTrivia(t.text,n.pos);return e.createTextSpanFromBounds(i,n.end)}function ee(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)}function te(e){return 232===e.kind&&re(e)}function re(t){return!!(2&e.getCombinedNodeFlags(t))||!!(2048&e.getCombinedModifierFlags(t))}function ne(t){return!!(1&e.getCombinedNodeFlags(t))}function ae(e){return 181===e.kind&&97===e.expression.kind}function ie(e){return 181===e.kind&&91===e.expression.kind}function oe(e){return 210===e.kind&&9===e.expression.kind}function se(t,r){return e.getLeadingCommentRanges(r.text,t.pos)}function ce(t,r){return e.getLeadingCommentRanges(r,t.pos)}function ue(t,r){var n=146===t.kind||145===t.kind||186===t.kind||187===t.kind?e.concatenate(e.getTrailingCommentRanges(r,t.pos),e.getLeadingCommentRanges(r,t.pos)):ce(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 _e(t){if(158<=t.kind&&t.kind<=173)return!0;switch(t.kind){case 119:case 133:case 136:case 122:case 137:case 139:case 130:return!0;case 105:return 190!==t.parent.kind;case 201:return!ln(t);case 71:143===t.parent.kind&&t.parent.right===t?t=t.parent:179===t.parent.kind&&t.parent.name===t&&(t=t.parent),e.Debug.assert(71===t.kind||143===t.kind||179===t.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 143:case 179:case 99:var r=t.parent;if(162===r.kind)return!1;if(158<=r.kind&&r.kind<=173)return!0;switch(r.kind){case 201:return!ln(r);case 145:return t===r.constraint;case 149:case 148:case 146:case 226:return t===r.type;case 228:case 186:case 187:case 152:case 151:case 150:case 153:case 154:return t===r.type;case 155:case 156:case 157:return t===r.type;case 184:return t===r.type;case 181:case 182:return r.typeArguments&&e.indexOf(r.typeArguments,t)>=0;case 183:return!1}}return!1}function le(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function de(t,r){function n(t){switch(t.kind){case 219:return r(t);case 235:case 207:case 211:case 212:case 213:case 214:case 215:case 216:case 220:case 221:case 257:case 258:case 222:case 224:case 260:return e.forEachChild(t,n)}}return n(t)}function pe(t,r){function n(t){switch(t.kind){case 197:r(t);var a=t.expression;return void(a&&n(a));case 232:case 230:case 233:case 231:case 229:case 199:return;default:if(e.isFunctionLike(t)){var i=t.name;if(i&&144===i.kind)return void n(i.expression)}else _e(t)||e.forEachChild(t,n)}}return n(t)}function fe(t){return t&&164===t.kind?t.elementType:t&&159===t.kind?e.singleOrUndefined(t.typeArguments):void 0}function me(e){if(e)switch(e.kind){case 176:case 264:case 146:case 261:case 149:case 148:case 262:case 226:return!0}return!1}function ge(e){switch(e.kind){case 151:case 150:case 152:case 153:case 154:case 228:case 186:return!0}return!1}function ye(e,t){for(;;){if(t&&t(e),222!==e.statement.kind)return e.statement;e=e.statement}}function ve(t){return t&&207===t.kind&&e.isFunctionLike(t.parent)}function he(e){return e&&151===e.kind&&178===e.parent.kind}function be(e){return 151===e.kind&&(178===e.parent.kind||199===e.parent.kind)}function ke(e){return e&&1===e.kind}function xe(e){return e&&0===e.kind}function Ce(t){for(;;)if(t=t.parent,!t||e.isFunctionLike(t))return t}function De(t){for(;;)if(t=t.parent,!t||e.isClassLike(t))return t}function Se(t,r){for(;;){if(t=t.parent,!t)return;switch(t.kind){case 144:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 147:146===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 187:if(!r)continue;case 228:case 186:case 233:case 149:case 148:case 151:case 150:case 152:case 153:case 154:case 155:case 156:case 157:case 232:case 265:return t}}}function Te(e){var t=Se(e,!1);if(t)switch(t.kind){case 152:case 228:case 186:return t}}function Ee(t,r){for(;;){if(t=t.parent,!t)return t;switch(t.kind){case 144:t=t.parent;break;case 228:case 186:case 187:if(!r)continue;case 149:case 148:case 151:case 150:case 152:case 153:case 154:return t;case 147:146===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent)}}}function Ne(e){if(186===e.kind||187===e.kind){for(var t=e,r=e.parent;185===r.kind;)t=r,r=r.parent;if(181===r.kind&&r.expression===t)return r}}function Ae(e){var t=e.kind;return(179===t||180===t)&&97===e.expression.kind}function we(e){switch(e.kind){case 159:case 277:return e.typeName;case 201:return pn(e.expression)?e.expression:void 0;case 71:case 143:return e}}function Pe(t){return 183===t.kind?t.tag:e.isJsxOpeningLikeElement(t)?t.tagName:t.expression}function Fe(e){switch(e.kind){case 229:return!0;case 149:return 229===e.parent.kind;case 153:case 154:case 151:return void 0!==e.body&&229===e.parent.kind;case 146:return void 0!==e.parent.body&&(152===e.parent.kind||151===e.parent.kind||154===e.parent.kind)&&229===e.parent.parent.kind}return!1}function Oe(e){return void 0!==e.decorators&&Fe(e)}function Ie(e){return Oe(e)||Re(e)}function Re(t){switch(t.kind){case 229:return e.forEach(t.members,Ie);case 151:case 154:return e.forEach(t.parameters,Oe)}}function Me(e){var t=e.parent;return(251===t.kind||250===t.kind||252===t.kind)&&t.tagName===e}function Le(e){switch(e.kind){case 99:case 97:case 95:case 101:case 86:case 12:case 177:case 178:case 179:case 180:case 181:case 182:case 183:case 202:case 184:case 203:case 185:case 186:case 199:case 187:case 190:case 188:case 189:case 192:case 193:case 194:case 195:case 198:case 196:case 13:case 200:case 249:case 250:case 197:case 191:case 204:return!0;case 143:for(;143===e.parent.kind;)e=e.parent;return 162===e.parent.kind||Me(e);case 71:if(162===e.parent.kind||Me(e))return!0;case 8:case 9:case 99:var t=e.parent;switch(t.kind){case 226:case 146:case 149:case 148:case 264:case 261:case 176:return t.initializer===e;case 210:case 211:case 212:case 213:case 219:case 220:case 221:case 257:case 223:case 221:return t.expression===e;case 214:var r=t;return r.initializer===e&&227!==r.initializer.kind||r.condition===e||r.incrementor===e;case 215:case 216:var n=t;return n.initializer===e&&227!==n.initializer.kind||n.expression===e;case 184:case 202:return e===t.expression;case 205:return e===t.expression;case 144:return e===t.expression;case 147:case 256:case 255:case 263:return!0;case 201:return t.expression===e&&ln(t);default:if(Le(t))return!0}}return!1}function Be(t,r){var n=e.getModuleInstanceState(t);return 1===n||r&&2===n}function Je(e){return 237===e.kind&&248===e.moduleReference.kind}function ze(t){return e.Debug.assert(Je(t)),t.moduleReference.expression}function Ke(e){return 237===e.kind&&248!==e.moduleReference.kind}function je(e){return Ve(e)}function Ve(e){return e&&!!(65536&e.flags)}function Ue(e,t){if(181!==e.kind)return!1;var r=e,n=r.expression,a=r.arguments;if(71!==n.kind||"require"!==n.text)return!1;if(1!==a.length)return!1;var i=a[0];return!t||9===i.kind||13===i.kind}function qe(e){return 39===e||34===e}function We(e){if(e.valueDeclaration&&226===e.valueDeclaration.kind){var t=e.valueDeclaration;return t.initializer&&(186===t.initializer.kind||199===t.initializer.kind)}return!1}function He(e){for(;sn(e,!0);)e=e.right;return e}function Ge(t){return e.isIdentifier(t)&&"exports"===t.text}function Xe(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.expression)&&"module"===t.expression.text&&"exports"===t.name.text}function Qe(e){if(!Ve(e))return 0;var t=e;if(58!==t.operatorToken.kind||179!==t.left.kind)return 0;var r=t.left;if(71===r.expression.kind){var n=r.expression;return"exports"===n.text?1:"module"===n.text&&"exports"===r.name.text?2:5}if(99===r.expression.kind)return 4;if(179===r.expression.kind){var a=r.expression;if(71===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 Ye(e){if(238===e.kind)return e.moduleSpecifier;if(237===e.kind){var t=e.moduleReference;if(248===t.kind)return t.expression}return 244===e.kind?e.moduleSpecifier:233===e.kind&&9===e.name.kind?e.name:void 0}function Ze(e){if(237===e.kind)return e;var t=e.importClause;return t&&t.namedBindings&&240===t.namedBindings.kind?t.namedBindings:void 0}function $e(e){return 238===e.kind&&e.importClause&&!!e.importClause.name}function et(e){if(e)switch(e.kind){case 146:case 151:case 150:case 262:case 261:case 149:case 148:return void 0!==e.questionToken}return!1}function tt(e){return 279===e.kind&&e.parameters.length>0&&281===e.parameters[0].type.kind}function rt(t){return e.map(ot(t),function(e){return e.comment})}function nt(e){var t=at(e,287);return t&&t.length>0}function at(t,r){return e.flatMap(ot(t),function(t){return 283===t.kind?e.filter(t.tags,function(e){return e.kind===r}):t.kind===r&&t})}function it(t,r){return t&&e.firstOrUndefined(at(t,r))}function ot(t){function r(t){var a=t.parent,i=me(a)&&a.initializer===t&&208===a.parent.parent.kind,o=me(t)&&208===a.parent.kind,s=i?a.parent.parent:o?a.parent:void 0;s&&r(s);var c=a&&a.parent&&194===a.kind&&58===a.operatorToken.kind&&210===a.parent.kind;c&&r(a.parent);var u=233===t.kind&&a&&233===a.kind,_=a&&261===a.kind;
(u||_)&&r(a),146===t.kind&&(n=e.concatenate(n,st(t))),me(t)&&t.initializer&&(n=e.concatenate(n,t.initializer.jsDoc)),n=e.concatenate(n,t.jsDoc)}if(e.isJSDocTypedefTag(t))return[t.parent];var n=t.jsDocCache;return n||(r(t),t.jsDocCache=n),n}function st(t){var r=t.parent,n=at(r,287);if(t.name){if(71===t.name.kind){var a=t.name.text;return e.filter(n,function(e){return 287===e.kind&&e.name.text===a})}}else{var i=r.parameters.indexOf(t),o=e.filter(n,function(e){return 287===e.kind});if(o&&0<=i&&i<o.length)return[o[i]]}}function ct(t){var r=t.name.text,n=t.parent.parent;if(e.Debug.assert(283===t.parent.kind),e.isFunctionLike(n))return e.find(n.parameters,function(e){return 71===e.name.kind&&e.name.text===r})}function ut(t){var r=t.name.text,n=t.parent.parent.parent.typeParameters;return e.find(n,function(e){return e.name.text===r})}function _t(t){var r=it(t,289);if(!r&&146===t.kind){var n=st(t);n&&(r=e.find(n,function(e){return!!e.typeExpression}))}return r&&r.typeExpression&&r.typeExpression.type}function lt(e){return it(e,285)}function dt(e){return it(e,286)}function pt(e){return it(e,288)}function ft(e){var t=pt(e);return t&&t.typeExpression&&t.typeExpression.type}function mt(e){return it(e,290)}function gt(t){return vt(e.lastOrUndefined(t.parameters))}function yt(t){return ht(e.lastOrUndefined(t.parameters))}function vt(t){return!!(t&&65536&t.flags&&(t.type&&280===t.type.kind||e.forEach(st(t),function(e){return e.typeExpression&&280===e.typeExpression.type.kind})))||ht(t)}function ht(e){return e&&void 0!==e.dotDotDotToken}function bt(e){for(var t=e.parent;;){switch(t.kind){case 194:var r=t.operatorToken.kind;return an(r)&&t.left===e?58===r?1:2:0;case 192:case 193:var n=t.operator;return 43===n||44===n?2:0;case 215:case 216:return t.initializer===e?1:0;case 185:case 177:case 198:e=t;break;case 262:if(t.name!==e)return 0;e=t.parent;break;case 261:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function kt(e){return 0!==bt(e)}function xt(e){if(179!==e.kind&&180!==e.kind)return!1;for(e=e.parent;e&&185===e.kind;)e=e.parent;return e&&188===e.kind}function Ct(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function Dt(e){for(;e;){if($r(e,2)||265===e.kind&&e.isDeclarationFile)return!0;e=e.parent}return!1}function St(t){switch(t.kind){case 71:case 9:case 8:return e.isDeclaration(t.parent)&&t.parent.name===t;default:return!1}}function Tt(t){switch(t.kind){case 71:case 9:case 8:if(e.isDeclaration(t.parent))return t.parent.name===t;var r=t.parent.parent;return e.isBinaryExpression(r)&&0!==Qe(r)&&e.getNameOfDeclaration(r)===t;default:return!1}}function Et(t){return(9===t.kind||8===t.kind)&&144===t.parent.kind&&e.isDeclaration(t.parent.parent)}function Nt(e){var t=e.parent;switch(t.kind){case 149:case 148:case 151:case 150:case 153:case 154:case 264:case 261:case 179:return t.name===e;case 143:if(t.right===e){for(;143===t.kind;)t=t.parent;return 162===t.kind}return!1;case 176:case 242:return t.propertyName===e;case 246:return!0}return!1}function At(e){return 237===e.kind||236===e.kind||239===e.kind&&!!e.name||240===e.kind||242===e.kind||246===e.kind||243===e.kind&&wt(e)}function wt(e){return pn(e.expression)}function Pt(e){var t=It(e.heritageClauses,85);return t&&t.types.length>0?t.types[0]:void 0}function Ft(e){var t=It(e.heritageClauses,108);return t?t.types:void 0}function Ot(e){var t=It(e.heritageClauses,85);return t?t.types:void 0}function It(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 Rt(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 Mt(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Lt(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),s=i||o;if(s){var c=r.pos+s[1].length+s[2].length;return{fileReference:{pos:c,end:c+s[3].length,fileName:s[3]},isNoDefaultLib:!1,isTypeReferenceDirective:!!o}}return{diagnosticMessage:e.Diagnostics.Invalid_reference_directive_syntax,isNoDefaultLib:!1}}}function Bt(e){return 72<=e&&e<=142}function Jt(e){return 2<=e&&e<=7}function zt(e){if(!e)return 4;var t=0;switch(e.kind){case 228:case 186:case 151:e.asteriskToken&&(t|=1);case 187:$r(e,256)&&(t|=2)}return e.body||(t|=4),t}function Kt(e){switch(e.kind){case 228:case 186:case 187:case 151:return void 0!==e.body&&void 0===e.asteriskToken&&$r(e,256)}return!1}function jt(e){var t=e.kind;return 9===t||8===t}function Vt(t){var r=e.getNameOfDeclaration(t);return r&&Ut(r)}function Ut(e){return 144===e.kind&&!jt(e.expression)&&!qt(e.expression)}function qt(t){return e.isPropertyAccessExpression(t)&&Gt(t.expression)}function Wt(e){if(71===e.kind||9===e.kind||8===e.kind||146===e.kind)return e.text;if(144===e.kind){var t=e.expression;if(qt(t)){var r=t.name.text;return Ht(r)}if(9===t.kind||8===t.kind)return t.text}}function Ht(e){return"__@"+e}function Gt(e){return 71===e.kind&&"Symbol"===e.text}function Xt(e){return"push"===e.text||"unshift"===e.text}function Qt(e){var t=Yt(e);return 146===t.kind}function Yt(e){for(;176===e.kind;)e=e.parent.parent;return e}function Zt(e){var t=e.kind;return 152===t||186===t||228===t||187===t||151===t||153===t||154===t||233===t||265===t}function $t(t){return e.positionIsSynthesized(t.pos)||e.positionIsSynthesized(t.end)}function er(t){return 266===t.kind?e.updateBundle(t,e.sameMap(t.sourceFiles,tr)):tr(t)}function tr(t){return e.getParseTreeNode(t,e.isSourceFile)||t}function rr(t){return e.sameMap(t,tr)}function nr(t){return t=e.getOriginalNode(t),t?e.getNodeId(t):0}function ar(e){var t=sr(e),r=182===e.kind&&void 0!==e.arguments;return ir(e.kind,t,r)}function ir(e,t,r){switch(e){case 182:return r?0:1;case 192:case 189:case 190:case 188:case 191:case 195:case 197:return 1;case 194:switch(t){case 40:case 58:case 59:case 60:case 62:case 61:case 63:case 64:case 65:case 66:case 67:case 68:case 70:case 69:return 1}}return 0}function or(e){var t=sr(e),r=182===e.kind&&void 0!==e.arguments;return cr(e.kind,t,r)}function sr(e){return 194===e.kind?e.operatorToken.kind:192===e.kind||193===e.kind?e.operator:e.kind}function cr(e,t,r){switch(e){case 99:case 97:case 71:case 95:case 101:case 86:case 8:case 9:case 177:case 178:case 186:case 187:case 199:case 249:case 250:case 12:case 13:case 196:case 185:case 200:return 19;case 183:case 179:case 180:return 18;case 182:return r?18:17;case 181:return 17;case 193:return 16;case 192:case 189:case 190:case 188:case 191:return 15;case 194:switch(t){case 51:case 52:return 15;case 40:case 39:case 41:case 42:return 14;case 37:case 38:return 13;case 45:case 46:case 47:return 12;case 27:case 30:case 29:case 31:case 92:case 93:return 11;case 32:case 34:case 33:case 35:return 10;case 48:return 9;case 50:return 8;case 49:return 7;case 53:return 6;case 54:return 5;case 58:case 59:case 60:case 62:case 61:case 63:case 64:case 65:case 66:case 67:case 68:case 70:case 69:return 3;case 26:return 0;default:return-1}case 195:return 4;case 197:return 2;case 198:return 1;case 298:return 0;default:return-1}}function ur(){function t(){return _}function r(t){e.forEach(c.get(t.fileName),function(e){return e.file=t})}function n(e){var t;e.file?(t=c.get(e.file.fileName),t||(t=[],c.set(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.get(t)||[];var n=[];return e.forEach(s,r),c.forEach(function(t){e.forEach(t,r)}),e.sortAndDeduplicateDiagnostics(n)}function o(){u&&(u=!1,s=e.sortAndDeduplicateDiagnostics(s),c.forEach(function(t,r){c.set(r,e.sortAndDeduplicateDiagnostics(t))}))}var s=[],c=e.createMap(),u=!1,_=0;return{add:n,getGlobalDiagnostics:a,getDiagnostics:i,getModificationCount:t,reattachFileDiagnostics:r}}function _r(e){return e.replace(da,lr)}function lr(e){return pa.get(e)||pr(e.charCodeAt(0))}function dr(e){var t=e.substr(0,1);return t.toLowerCase()===t}function pr(e){var t=e.toString(16).toUpperCase(),r=("0000"+t).slice(-4);return"\\u"+r}function fr(e){return e=_r(e),fa.test(e)?e.replace(fa,function(e){return pr(e.charCodeAt(0))}):e}function mr(e){return void 0===ma[e]&&(ma[e]=mr(e-1)+ma[1]),ma[e]}function gr(){return ma[1].length}function yr(t){function r(e){e&&e.length&&(_&&(c+=mr(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(E(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*gr()+1:c.length-d+1},getText:function(){return c},isAtStartOfLine:function(){return _},reset:n}}function vr(e,t){return t.moduleName||br(e,t.fileName)}function hr(e,t,r){var n=t.getExternalModuleFileFromDeclaration(r);if(n&&!n.isDeclarationFile)return vr(e,n)}function br(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 kr(t,r,n){var a,i=r.getCompilerOptions();return a=i.outDir?e.removeFileExtension(Nr(t,r,i.outDir)):e.removeFileExtension(t.fileName),a+n}function xr(t,r){var n=r.getCompilerOptions(),a=n.declarationDir||n.outDir,i=a?Nr(t,r,a):t.fileName;return e.removeFileExtension(i)+".d.ts"}function Cr(t,r){var n=t.getCompilerOptions(),a=function(e){return t.isSourceFileFromExternalLibrary(e)};if(n.outFile||n.out){var i=e.getEmitModuleKind(n),o=i===e.ModuleKind.AMD||i===e.ModuleKind.System;return e.filter(t.getSourceFiles(),function(t){return(o||!e.isExternalModule(t))&&Dr(t,n,a)})}var s=void 0===r?t.getSourceFiles():[r];return e.filter(s,function(e){return Dr(e,n,a)})}function Dr(e,t,r){return!(t.noEmitForJsFiles&&je(e)||e.isDeclarationFile||r(e))}function Sr(t,r,n,a){var i=e.isArray(n)?n:Cr(t,n),o=t.getCompilerOptions();if(o.outFile||o.out){if(i.length){var s=o.outFile||o.out,c=Tr(s,o),u=o.declaration?e.removeFileExtension(s)+".d.ts":"";r({jsFilePath:s,sourceMapFilePath:c,declarationFilePath:u},e.createBundle(i),a)}}else for(var _=0,l=i;_<l.length;_++){var d=l[_],s=kr(d,t,Er(d,o)),c=Tr(s,o),u=je(d)||!a&&!o.declaration?void 0:xr(d,t);r({jsFilePath:s,sourceMapFilePath:c,declarationFilePath:u},d,a)}}function Tr(e,t){return t.sourceMap?e+".map":void 0}function Er(t,r){if(1===r.jsx)if(je(t)){if(e.fileExtensionIs(t.fileName,".jsx"))return".jsx"}else if(1===t.languageVariant)return".jsx";return".js"}function Nr(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 Ar(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 wr(t,r){return e.getLineAndCharacterOfPosition(t,r).line}function Pr(t,r){return e.computeLineAndCharacterOfPosition(t,r).line}function Fr(t){return e.forEach(t.members,function(e){if(152===e.kind&&C(e.body))return e})}function Or(e){if(e&&e.parameters.length>0){var t=2===e.parameters.length&&Mr(e.parameters[0]);return e.parameters[t?1:0]}}function Ir(e){var t=Or(e);return t&&t.type}function Rr(e){if(e.parameters.length){var t=e.parameters[0];if(Mr(t))return t}}function Mr(e){return Lr(e.name)}function Lr(e){return e&&71===e.kind&&Br(e)}function Br(e){return 99===e.originalKeywordKind}function Jr(t,r){var n,a,i,o;return Vt(r)?(n=r,153===r.kind?i=r:154===r.kind?o=r:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,function(e){if((153===e.kind||154===e.kind)&&$r(e,32)===$r(r,32)){var t=Wt(e.name),s=Wt(r.name);t===s&&(n?a||(a=e):n=e,153!==e.kind||i||(i=e),154!==e.kind||o||(o=e))}}),{firstAccessor:n,secondAccessor:a,getAccessor:i,setAccessor:o}}function zr(e){return e.type?e.type:65536&e.flags?_t(e):void 0}function Kr(e){return e.type?e.type:65536&e.flags?ft(e):void 0}function jr(e){if(e.typeParameters)return e.typeParameters;if(65536&e.flags){var t=mt(e);return t&&t.typeParameters}}function Vr(e){var t=Or(e);return t&&zr(t)}function Ur(e,t,r,n){qr(e,t,r.pos,n)}function qr(e,t,r,n){n&&n.length&&r!==n[0].pos&&Pr(e,r)!==Pr(e,n[0].pos)&&t.writeLine()}function Wr(e,t,r,n){r!==n&&Pr(e,r)!==Pr(e,n)&&t.writeLine()}function Hr(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 Gr(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=Pr(r,d.end),y=Pr(r,m.pos);if(y>=g+2)break}l.push(m),d=m}if(l.length){var g=Pr(r,e.lastOrUndefined(l).end),v=Pr(r,e.skipTrivia(t,i.pos));v>=g+2&&(Ur(r,n,i,u),Hr(t,r,n,l,!1,!0,o,a),_={nodePos:i.pos,detachedCommentEndPos:e.lastOrUndefined(l).end})}}return _}function Xr(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=Yr(t,r[s.line],a));var p=n.getIndent()*gr(),f=p-u+Yr(t,_,d);if(f>0){var m=f%gr(),g=mr((f-m)/gr());for(n.rawWrite(g);m;)n.rawWrite(" "),m--}else n.rawWrite("")}Qr(t,i,n,o,_,d),_=d}else n.write(t.substring(a,i))}function Qr(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 Yr(t,r,n){for(var a=0;r<n&&e.isWhiteSpaceSingleLine(t.charCodeAt(r));r++)9===t.charCodeAt(r)?a+=gr()-a%gr():a++;return a}function Zr(e){return 0!==en(e)}function $r(e,t){return 0!==(en(e)&t)}function en(e){if(536870912&e.modifierFlagsCache)return e.modifierFlagsCache&-536870913;var t=tn(e);return e.modifierFlagsCache=536870912|t,t}function tn(e){var t=0;if(e.modifiers)for(var r=0,n=e.modifiers;r<n.length;r++){var a=n[r];t|=rn(a.kind)}return(4&e.flags||71===e.kind&&e.isInJSDocNamespace)&&(t|=1),t}function rn(e){switch(e){case 115:return 32;case 114:return 4;case 113:return 16;case 112:return 8;case 117:return 128;case 84:return 1;case 124:return 2;case 76:return 2048;case 79:return 512;case 120:return 256;case 131:return 64}return 0}function nn(e){return 54===e||53===e||51===e}function an(e){return e>=58&&e<=70}function on(t){if(201===t.kind&&85===t.parent.token&&e.isClassLike(t.parent.parent))return t.parent.parent}function sn(t,r){return e.isBinaryExpression(t)&&(r?58===t.operatorToken.kind:an(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function cn(e){if(sn(e,!0)){var t=e.left.kind;return 178===t||177===t}return!1}function un(e){return _n(e.expression)}function _n(t){return 71===t.kind||!!e.isPropertyAccessExpression(t)&&_n(t.expression)}function ln(e){return void 0!==on(e)}function dn(t){return 201===t.kind&&pn(t.expression)&&t.parent&&108===t.parent.token&&t.parent.parent&&e.isClassLike(t.parent.parent)}function pn(e){return 71===e.kind||179===e.kind&&pn(e.expression)}function fn(e){return 143===e.parent.kind&&e.parent.right===e||179===e.parent.kind&&e.parent.name===e}function mn(e){return 178===e.kind&&0===e.properties.length}function gn(e){return 177===e.kind&&0===e.elements.length}function yn(e){return vn(e)?e.declarations[0].localSymbol:void 0}function vn(t){return t&&e.length(t.declarations)>0&&$r(t.declarations[0],512)}function hn(t){return e.find(e.supportedTypescriptExtensionsForExtractExtension,function(r){return e.fileExtensionIs(t,r)})}function bn(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 kn(e){for(var t,r,n,a,i="",o=bn(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+=ga.charAt(t)+ga.charAt(r)+ga.charAt(n)+ga.charAt(a),s+=3;return i}function xn(t){switch(t.newLine){case 0:return ya;case 1:return va}return e.sys?e.sys.newLine:ya}function Cn(e){return Dn(e,0)}function Dn(e,t){if(t<=5){var r=e.kind;if(9===r||8===r||12===r||13===r||71===r||99===r||97===r||101===r||86===r||95===r)return!0;if(179===r)return Dn(e.expression,t+1);if(180===r)return Dn(e.expression,t+1)&&Dn(e.argumentExpression,t+1);if(192===r||193===r)return Dn(e.operand,t+1);if(194===r)return 40!==e.operatorToken.kind&&Dn(e.left,t+1)&&Dn(e.right,t+1);if(195===r)return Dn(e.condition,t+1)&&Dn(e.whenTrue,t+1)&&Dn(e.whenFalse,t+1);if(190===r||189===r||188===r)return Dn(e.expression,t+1);if(177===r)return 0===e.elements.length;if(178===r)return 0===e.properties.length;if(181===r){if(!Dn(e.expression,t+1))return!1;for(var n=0,a=e.arguments;n<a.length;n++){var i=a[n];if(!Dn(i,t+1))return!1}return!0}}return!1}function Sn(e,t,r){void 0===e&&(e=0);var n=Tn(t);if(0===e)return n.length>0&&0===n[0][0]?n[0][1]:"0";if(r){for(var a="",i=e,o=n.length-1;o>=0&&0!==i;o--){var s=n[o],c=s[0],u=s[1];0!==c&&(i&c)===c&&(i&=~c,a=""+u+(a?", ":"")+a)}if(0===i)return a}else for(var _=0,l=n;_<l.length;_++){var d=l[_],c=d[0],u=d[1];if(c===e)return u}return e.toString()}function Tn(t){var r=[];for(var n in t){var a=t[n];"number"==typeof a&&r.push([a,n])}return e.stableSort(r,function(t,r){return e.compareValues(t[0],r[0])})}function En(t){return Sn(t,e.SyntaxKind,!1)}function Nn(t){return Sn(t,e.ModifierFlags,!0)}function An(t){return Sn(t,e.TransformFlags,!0)}function wn(t){return Sn(t,e.EmitFlags,!0)}function Pn(t){return Sn(t,e.SymbolFlags,!0)}function Fn(t){return Sn(t,e.TypeFlags,!0)}function On(t){return Sn(t,e.ObjectFlags,!0)}function In(e){return e?e.pos:-1}function Rn(e){return e?e.end:-1}function Mn(t,r){return e.positionIsSynthesized(t)?-1:t+r}function Ln(e,t){return{pos:e,end:t}}function Bn(e,t){return Ln(e.pos,t)}function Jn(e,t){return Ln(t,e.end)}function zn(e){return e.decorators&&e.decorators.length>0?Jn(e,e.decorators.end):e}function Kn(e){return e.modifiers&&e.modifiers.length>0?Jn(e,e.modifiers.end):zn(e)}function jn(e){return e.pos===e.end}function Vn(e){return jn(e)?e:Bn(e,e.pos)}function Un(e){return jn(e)?e:Jn(e,e.end)}function qn(t,r){return Ln(t,t+e.tokenToString(r).length)}function Wn(e,t){return Xn(e,e,t)}function Hn(e,t,r){return Yn(Zn(e,r),Zn(t,r),r)}function Gn(e,t,r){return Yn(e.end,t.end,r)}function Xn(e,t,r){return Yn(Zn(e,r),t.end,r)}function Qn(e,t,r){return Yn(e.end,Zn(t,r),r)}function Yn(e,t,r){return e===t||wr(r,e)===wr(r,t)}function Zn(t,r){return e.positionIsSynthesized(t.pos)?-1:e.skipTrivia(r.text,t.pos)}function $n(t){var r=e.getParseTreeNode(t);if(r)switch(r.parent.kind){case 232:case 233:return r===r.parent.name}return!1}function ea(t){return e.filter(t.declarations,ta)}function ta(e){return void 0!==e.initializer}function ra(e){if(e.symbol)for(var t=0,r=e.symbol.declarations;t<r.length;t++){var n=r[t];if(229===n.kind&&n!==e)return!0}return!1}function na(e,r){return e.symbol&&t(e.symbol,r)===e}function aa(e){return e.watch&&e.hasOwnProperty("watch")}function ia(e){return 134217728&e.flags?e.checkFlags:0}function oa(t){if(t.valueDeclaration){var r=e.getCombinedModifierFlags(t.valueDeclaration);return t.parent&&32&t.parent.flags?r:r&-29}if(6&ia(t)){var n=t.checkFlags,a=256&n?8:64&n?4:16,i=512&n?32:0;return a|i}return 16777216&t.flags?36:0}function sa(e,t){for(var r=new Array(t.length+1),n=new Array(t.length+1),a=0;a<t.length+1;a++)r[a]=a,n[a]=-1;for(var a=1;a<e.length+1;a++){n[0]=a;for(var i=1;i<t.length+1;i++)n[i]=Math.min(r[i]+1,n[i-1]+1,r[i-1]+(e[a-1]===t[i-1]?0:2));var o=r;r=n,n=o}return r[r.length-1]}e.externalHelpersModuleNameText="tslib",e.getDeclarationOfKind=t,e.findDeclaration=r;var ca=[];e.getSingleLineStringWriter=n,e.releaseStringWriter=a,e.getFullWidth=i,e.hasResolvedModule=o,e.getResolvedModule=s,e.setResolvedModule=c,e.setResolvedTypeReferenceDirective=u,e.moduleResolutionIsEqualTo=_,e.typeDirectiveIsEqualTo=l,e.hasChangesInResolutions=d,e.containsParseError=p,e.getSourceFileOfNode=m,e.isStatementWithLocals=g,e.getStartPositionOfLine=y,e.nodePosToString=v,e.getStartPosOfNode=h,e.isDefined=b,e.getEndLinePosition=k,e.nodeIsMissing=x,e.nodeIsPresent=C,e.getTokenPosOfNode=D,e.getNonDecoratorTokenPosOfNode=S,e.getSourceTextOfNodeFromSourceFile=T,e.getTextOfNodeFromSourceText=E,e.getTextOfNode=N,e.getLiteralText=A,e.getTextOfConstantValue=w,e.escapeIdentifier=P,e.makeIdentifierFromModuleName=F,e.isBlockOrCatchScoped=O,e.isCatchClauseVariableDeclarationOrBindingElement=I,e.isAmbientModule=R,e.isShorthandAmbientModuleSymbol=M,e.isBlockScopedContainerTopLevel=B,e.isGlobalScopeAugmentation=J,e.isExternalModuleAugmentation=z,e.isEffectiveExternalModule=K,e.isBlockScope=j,e.getEnclosingBlockScopeContainer=V,e.declarationNameToString=U,e.getNameFromIndexInfo=q,e.getTextOfPropertyName=W,e.entityNameToString=H,e.createDiagnosticForNode=G,e.createDiagnosticForNodeInSourceFile=X,e.createDiagnosticForNodeFromMessageChain=Q,e.getSpanOfTokenAtPosition=Y,e.getErrorSpanForNode=$,e.isExternalOrCommonJsModule=ee,e.isConstEnumDeclaration=te,e.isConst=re,e.isLet=ne,e.isSuperCall=ae,e.isImportCall=ie,e.isPrologueDirective=oe,e.getLeadingCommentRangesOfNode=se,e.getLeadingCommentRangesOfNodeFromText=ce,e.getJSDocCommentRanges=ue,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=_e,e.isChildOfNodeWithKind=le,e.forEachReturnStatement=de,e.forEachYieldExpression=pe,e.getRestParameterElementType=fe,e.isVariableLike=me,e.introducesArgumentsExoticObject=ge,e.unwrapInnermostStatementOfLabel=ye,e.isFunctionBlock=ve,e.isObjectLiteralMethod=he,e.isObjectLiteralOrClassExpressionMethod=be,e.isIdentifierTypePredicate=ke,e.isThisTypePredicate=xe,e.getContainingFunction=Ce,e.getContainingClass=De,e.getThisContainer=Se,e.getNewTargetContainer=Te,e.getSuperContainer=Ee,e.getImmediatelyInvokedFunctionExpression=Ne,e.isSuperProperty=Ae,e.getEntityNameFromTypeNode=we,e.getInvokedExpression=Pe,e.nodeCanBeDecorated=Fe,e.nodeIsDecorated=Oe,e.nodeOrChildIsDecorated=Ie,e.childIsDecorated=Re,e.isJSXTagName=Me,e.isPartOfExpression=Le,e.isInstantiatedModule=Be,e.isExternalModuleImportEqualsDeclaration=Je,e.getExternalModuleImportEqualsDeclarationExpression=ze,e.isInternalModuleImportEqualsDeclaration=Ke,e.isSourceFileJavaScript=je,e.isInJavaScriptFile=Ve,e.isRequireCall=Ue,e.isSingleOrDoubleQuote=qe,e.isDeclarationOfFunctionOrClassExpression=We,e.getRightMostAssignedExpression=He,e.isExportsIdentifier=Ge,e.isModuleExportsPropertyAccessExpression=Xe,e.getSpecialPropertyAssignmentKind=Qe,e.getExternalModuleName=Ye,e.getNamespaceDeclarationNode=Ze,e.isDefaultImport=$e,e.hasQuestionToken=et,e.isJSDocConstructSignature=tt,e.getCommentsFromJSDoc=rt,e.hasJSDocParameterTags=nt,e.getJSDocs=ot,e.getJSDocParameterTags=st,e.getParameterFromJSDoc=ct,e.getTypeParameterFromJsDoc=ut,e.getJSDocType=_t,e.getJSDocAugmentsTag=lt,e.getJSDocClassTag=dt,e.getJSDocReturnTag=pt,e.getJSDocReturnType=ft,e.getJSDocTemplateTag=mt,e.hasRestParameter=gt,e.hasDeclaredRestParameter=yt,e.isRestParameter=vt,e.isDeclaredRestParam=ht;var ua;!function(e){e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound"}(ua=e.AssignmentKind||(e.AssignmentKind={})),e.getAssignmentTargetKind=bt,e.isAssignmentTarget=kt,e.isDeleteTarget=xt,e.isNodeDescendantOf=Ct,e.isInAmbientContext=Dt,e.isDeclarationName=St,e.isAnyDeclarationName=Tt,e.isLiteralComputedPropertyDeclarationName=Et,e.isIdentifierName=Nt,e.isAliasSymbolDeclaration=At,e.exportAssignmentIsAlias=wt,e.getClassExtendsHeritageClauseElement=Pt,e.getClassImplementsHeritageClauseElements=Ft,e.getInterfaceBaseTypeNodes=Ot,e.getHeritageClause=It,e.tryResolveScriptReference=Rt,e.getAncestor=Mt,e.getFileReferenceFromReferencePath=Lt,e.isKeyword=Bt,e.isTrivia=Jt;var _a;!function(e){e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator"}(_a=e.FunctionFlags||(e.FunctionFlags={})),e.getFunctionFlags=zt,e.isAsyncFunction=Kt,e.isStringOrNumericLiteral=jt,e.hasDynamicName=Vt,e.isDynamicName=Ut,e.isWellKnownSymbolSyntactically=qt,e.getPropertyNameForPropertyNameNode=Wt,e.getPropertyNameForKnownSymbolName=Ht,e.isESSymbolIdentifier=Gt,e.isPushOrUnshiftIdentifier=Xt,e.isParameterDeclaration=Qt,e.getRootDeclaration=Yt,e.nodeStartsNewLexicalEnvironment=Zt,e.nodeIsSynthesized=$t,e.getOriginalSourceFileOrBundle=er,e.getOriginalSourceFiles=rr,e.getOriginalNodeId=nr;var la;!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(la=e.Associativity||(e.Associativity={})),e.getExpressionAssociativity=ar,e.getOperatorAssociativity=ir,e.getExpressionPrecedence=or,e.getOperator=sr,e.getOperatorPrecedence=cr,e.createDiagnosticCollection=ur;var da=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,pa=e.createMapFromTemplate({"\0":"\\0","\t":"\\t","\x0B":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085"});e.escapeString=_r,e.isIntrinsicJsxName=dr;var fa=/[^\u0000-\u007F]/g;e.escapeNonAsciiString=fr;var ma=["","    "];e.getIndentString=mr,e.getIndentSize=gr,e.createTextWriter=yr,e.getResolvedExternalModuleName=vr,e.getExternalModuleNameFromDeclaration=hr,e.getExternalModuleNameFromPath=br,e.getOwnEmitOutputFilePath=kr,e.getDeclarationEmitOutputFilePath=xr,e.getSourceFilesToEmit=Cr,e.sourceFileMayBeEmitted=Dr,e.forEachEmittedFile=Sr,e.getSourceFilePathInNewDir=Nr,e.writeFile=Ar,e.getLineOfLocalPosition=wr,e.getLineOfLocalPositionFromLineMap=Pr,e.getFirstConstructorWithBody=Fr,e.getSetAccessorTypeAnnotationNode=Ir,e.getThisParameter=Rr,e.parameterIsThisKeyword=Mr,e.isThisIdentifier=Lr,e.identifierIsThisKeyword=Br,e.getAllAccessorDeclarations=Jr,e.getEffectiveTypeAnnotationNode=zr,e.getEffectiveReturnTypeNode=Kr,e.getEffectiveTypeParameterDeclarations=jr,e.getEffectiveSetAccessorTypeAnnotationNode=Vr,e.emitNewLineBeforeLeadingComments=Ur,e.emitNewLineBeforeLeadingCommentsOfPosition=qr,e.emitNewLineBeforeLeadingCommentOfPosition=Wr,e.emitComments=Hr,e.emitDetachedComments=Gr,e.writeCommentRange=Xr,e.hasModifiers=Zr,e.hasModifier=$r,e.getModifierFlags=en,e.getModifierFlagsNoCache=tn,e.modifierToFlag=rn,e.isLogicalOperator=nn,e.isAssignmentOperator=an,e.tryGetClassExtendingExpressionWithTypeArguments=on,e.isAssignmentExpression=sn,e.isDestructuringAssignment=cn,e.isSupportedExpressionWithTypeArguments=un,e.isExpressionWithTypeArgumentsInClassExtendsClause=ln,e.isExpressionWithTypeArgumentsInClassImplementsClause=dn,e.isEntityNameExpression=pn,e.isRightSideOfQualifiedNameOrPropertyAccess=fn,e.isEmptyObjectLiteral=mn,e.isEmptyArrayLiteral=gn,e.getLocalSymbolForExportDefault=yn,e.tryExtractTypeScriptExtension=hn;var ga="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.convertToBase64=kn;var ya="\r\n",va="\n";e.getNewLineCharacter=xn,e.isSimpleExpression=Cn,e.formatSyntaxKind=En,e.formatModifierFlags=Nn,e.formatTransformFlags=An,e.formatEmitFlags=wn,e.formatSymbolFlags=Pn,e.formatTypeFlags=Fn,e.formatObjectFlags=On,e.getRangePos=In,e.getRangeEnd=Rn,e.movePos=Mn,e.createRange=Ln,e.moveRangeEnd=Bn,e.moveRangePos=Jn,e.moveRangePastDecorators=zn,e.moveRangePastModifiers=Kn,e.isCollapsedRange=jn,e.collapseRangeToStart=Vn,e.collapseRangeToEnd=Un,e.createTokenRange=qn,e.rangeIsOnSingleLine=Wn,e.rangeStartPositionsAreOnSameLine=Hn,e.rangeEndPositionsAreOnSameLine=Gn,e.rangeStartIsOnSameLineAsRangeEnd=Xn,e.rangeEndIsOnSameLineAsRangeStart=Qn,e.positionsAreOnSameLine=Yn,e.getStartPositionOfRange=Zn,e.isDeclarationNameOfEnumOrNamespace=$n,e.getInitializedVariables=ea,e.isMergedWithClass=ra,e.isFirstDeclarationOfKind=na,e.isWatchSet=aa,e.getCheckFlags=ia,e.getDeclarationModifierFlagsFromSymbol=oa,e.levenshtein=sa}(ts||(ts={})),function(e){function t(e){switch(e.target){case 5:return"lib.esnext.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.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&&145===t.kind)for(var r=t;r;r=r.parent)if(e.isFunctionLike(r)||e.isClassLike(r)||230===r.kind)return r}function b(t){return e.hasModifier(t,92)&&152===t.parent.kind&&e.isClassLike(t.parent.parent)}function k(t){for(;t&&(176===t.kind||e.isBindingPattern(t));)t=t.parent;return t}function x(t){t=k(t);var r=e.getModifierFlags(t);return 226===t.kind&&(t=t.parent),t&&227===t.kind&&(r|=e.getModifierFlags(t),t=t.parent),t&&208===t.kind&&(r|=e.getModifierFlags(t)),r}function C(e){e=k(e);var t=e.flags;return 226===e.kind&&(e=e.parent),e&&227===e.kind&&(t|=e.flags,e=e.parent),e&&208===e.kind&&(t|=e.flags),t}function D(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)}function S(e,t){if(e)for(;void 0!==e.original;)e=e.original;return!t||t(e)?e:void 0}function T(e){return 0===(8&e.flags)}function E(e,t){return void 0===e||T(e)?e:(e=S(e),!T(e)||t&&!t(e)?void 0:e)}function N(e){return e.length>=3&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95===e.charCodeAt(2)?e.substr(1):e}function A(t){if(t){if(194!==t.kind)return t.name;var r=t;switch(e.getSpecialPropertyAssignmentKind(r)){case 1:case 4:case 5:
case 3:return r.left.name;default:return}}}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=C,e.validateLocaleAndSetLanguage=D,e.getOriginalNode=S,e.isParseTreeNode=T,e.getParseTreeNode=E,e.unescapeIdentifier=N,e.getNameOfDeclaration=A}(ts||(ts={})),function(e){function t(e){return 8===e.kind}function r(e){return 9===e.kind}function n(e){return 10===e.kind}function a(e){return 12===e.kind}function i(e){return 13===e.kind}function o(e){return 14===e.kind}function s(e){return 15===e.kind}function c(e){return 16===e.kind}function u(e){return 71===e.kind}function _(e){return 143===e.kind}function l(e){return 144===e.kind}function d(e){return 145===e.kind}function p(e){return 146===e.kind}function f(e){return 147===e.kind}function m(e){return 148===e.kind}function g(e){return 149===e.kind}function y(e){return 150===e.kind}function v(e){return 151===e.kind}function h(e){return 152===e.kind}function b(e){return 153===e.kind}function k(e){return 154===e.kind}function x(e){return 155===e.kind}function C(e){return 156===e.kind}function D(e){return 157===e.kind}function S(e){return 158===e.kind}function T(e){return 159===e.kind}function E(e){return 160===e.kind}function N(e){return 161===e.kind}function A(e){return 162===e.kind}function w(e){return 163===e.kind}function P(e){return 164===e.kind}function F(e){return 165===e.kind}function O(e){return 166===e.kind}function I(e){return 167===e.kind}function R(e){return 168===e.kind}function M(e){return 169===e.kind}function L(e){return 170===e.kind}function B(e){return 171===e.kind}function J(e){return 172===e.kind}function z(e){return 173===e.kind}function K(e){return 174===e.kind}function j(e){return 175===e.kind}function V(e){return 176===e.kind}function U(e){return 177===e.kind}function q(e){return 178===e.kind}function W(e){return 179===e.kind}function H(e){return 180===e.kind}function G(e){return 181===e.kind}function X(e){return 182===e.kind}function Q(e){return 183===e.kind}function Y(e){return 184===e.kind}function Z(e){return 185===e.kind}function $(e){return 186===e.kind}function ee(e){return 187===e.kind}function te(e){return 188===e.kind}function re(e){return 191===e.kind}function ne(e){return 190===e.kind}function ae(e){return 191===e.kind}function ie(e){return 192===e.kind}function oe(e){return 193===e.kind}function se(e){return 194===e.kind}function ce(e){return 195===e.kind}function ue(e){return 196===e.kind}function _e(e){return 197===e.kind}function le(e){return 198===e.kind}function de(e){return 199===e.kind}function pe(e){return 200===e.kind}function fe(e){return 201===e.kind}function me(e){return 202===e.kind}function ge(e){return 203===e.kind}function ye(e){return 204===e.kind}function ve(e){return 205===e.kind}function he(e){return 206===e.kind}function be(e){return 207===e.kind}function ke(e){return 208===e.kind}function xe(e){return 209===e.kind}function Ce(e){return 210===e.kind}function De(e){return 211===e.kind}function Se(e){return 212===e.kind}function Te(e){return 213===e.kind}function Ee(e){return 214===e.kind}function Ne(e){return 215===e.kind}function Ae(e){return 216===e.kind}function we(e){return 217===e.kind}function Pe(e){return 218===e.kind}function Fe(e){return 219===e.kind}function Oe(e){return 220===e.kind}function Ie(e){return 221===e.kind}function Re(e){return 222===e.kind}function Me(e){return 223===e.kind}function Le(e){return 224===e.kind}function Be(e){return 225===e.kind}function Je(e){return 226===e.kind}function ze(e){return 227===e.kind}function Ke(e){return 228===e.kind}function je(e){return 229===e.kind}function Ve(e){return 230===e.kind}function Ue(e){return 231===e.kind}function qe(e){return 232===e.kind}function We(e){return 233===e.kind}function He(e){return 234===e.kind}function Ge(e){return 235===e.kind}function Xe(e){return 236===e.kind}function Qe(e){return 237===e.kind}function Ye(e){return 238===e.kind}function Ze(e){return 239===e.kind}function $e(e){return 240===e.kind}function et(e){return 241===e.kind}function tt(e){return 242===e.kind}function rt(e){return 243===e.kind}function nt(e){return 244===e.kind}function at(e){return 245===e.kind}function it(e){return 246===e.kind}function ot(e){return 247===e.kind}function st(e){return 248===e.kind}function ct(e){return 249===e.kind}function ut(e){return 250===e.kind}function _t(e){return 251===e.kind}function lt(e){return 252===e.kind}function dt(e){return 253===e.kind}function pt(e){return 254===e.kind}function ft(e){return 255===e.kind}function mt(e){return 256===e.kind}function gt(e){return 257===e.kind}function yt(e){return 258===e.kind}function vt(e){return 259===e.kind}function ht(e){return 260===e.kind}function bt(e){return 261===e.kind}function kt(e){return 262===e.kind}function xt(e){return 263===e.kind}function Ct(e){return 264===e.kind}function Dt(e){return 265===e.kind}function St(e){return 266===e.kind}function Tt(e){return 267===e.kind}function Et(e){return 268===e.kind}function Nt(e){return 269===e.kind}function At(e){return 270===e.kind}function wt(e){return 271===e.kind}function Pt(e){return 272===e.kind}function Ft(e){return 273===e.kind}function Ot(e){return 274===e.kind}function It(e){return 275===e.kind}function Rt(e){return 276===e.kind}function Mt(e){return 277===e.kind}function Lt(e){return 278===e.kind}function Bt(e){return 279===e.kind}function Jt(e){return 280===e.kind}function zt(e){return 281===e.kind}function Kt(e){return 282===e.kind}function jt(e){return 283===e.kind}function Vt(e){return 285===e.kind}function Ut(e){return 287===e.kind}function qt(e){return 288===e.kind}function Wt(e){return 289===e.kind}function Ht(e){return 290===e.kind}function Gt(e){return 291===e.kind}function Xt(e){return 292===e.kind}function Qt(e){return 293===e.kind}function Yt(e){return 294===e.kind}e.isNumericLiteral=t,e.isStringLiteral=r,e.isJsxText=n,e.isRegularExpressionLiteral=a,e.isNoSubstitutionTemplateLiteral=i,e.isTemplateHead=o,e.isTemplateMiddle=s,e.isTemplateTail=c,e.isIdentifier=u,e.isQualifiedName=_,e.isComputedPropertyName=l,e.isTypeParameterDeclaration=d,e.isParameter=p,e.isDecorator=f,e.isPropertySignature=m,e.isPropertyDeclaration=g,e.isMethodSignature=y,e.isMethodDeclaration=v,e.isConstructorDeclaration=h,e.isGetAccessorDeclaration=b,e.isSetAccessorDeclaration=k,e.isCallSignatureDeclaration=x,e.isConstructSignatureDeclaration=C,e.isIndexSignatureDeclaration=D,e.isTypePredicateNode=S,e.isTypeReferenceNode=T,e.isFunctionTypeNode=E,e.isConstructorTypeNode=N,e.isTypeQueryNode=A,e.isTypeLiteralNode=w,e.isArrayTypeNode=P,e.isTupleTypeNode=F,e.isUnionTypeNode=O,e.isIntersectionTypeNode=I,e.isParenthesizedTypeNode=R,e.isThisTypeNode=M,e.isTypeOperatorNode=L,e.isIndexedAccessTypeNode=B,e.isMappedTypeNode=J,e.isLiteralTypeNode=z,e.isObjectBindingPattern=K,e.isArrayBindingPattern=j,e.isBindingElement=V,e.isArrayLiteralExpression=U,e.isObjectLiteralExpression=q,e.isPropertyAccessExpression=W,e.isElementAccessExpression=H,e.isCallExpression=G,e.isNewExpression=X,e.isTaggedTemplateExpression=Q,e.isTypeAssertion=Y,e.isParenthesizedExpression=Z,e.isFunctionExpression=$,e.isArrowFunction=ee,e.isDeleteExpression=te,e.isTypeOfExpression=re,e.isVoidExpression=ne,e.isAwaitExpression=ae,e.isPrefixUnaryExpression=ie,e.isPostfixUnaryExpression=oe,e.isBinaryExpression=se,e.isConditionalExpression=ce,e.isTemplateExpression=ue,e.isYieldExpression=_e,e.isSpreadElement=le,e.isClassExpression=de,e.isOmittedExpression=pe,e.isExpressionWithTypeArguments=fe,e.isAsExpression=me,e.isNonNullExpression=ge,e.isMetaProperty=ye,e.isTemplateSpan=ve,e.isSemicolonClassElement=he,e.isBlock=be,e.isVariableStatement=ke,e.isEmptyStatement=xe,e.isExpressionStatement=Ce,e.isIfStatement=De,e.isDoStatement=Se,e.isWhileStatement=Te,e.isForStatement=Ee,e.isForInStatement=Ne,e.isForOfStatement=Ae,e.isContinueStatement=we,e.isBreakStatement=Pe,e.isReturnStatement=Fe,e.isWithStatement=Oe,e.isSwitchStatement=Ie,e.isLabeledStatement=Re,e.isThrowStatement=Me,e.isTryStatement=Le,e.isDebuggerStatement=Be,e.isVariableDeclaration=Je,e.isVariableDeclarationList=ze,e.isFunctionDeclaration=Ke,e.isClassDeclaration=je,e.isInterfaceDeclaration=Ve,e.isTypeAliasDeclaration=Ue,e.isEnumDeclaration=qe,e.isModuleDeclaration=We,e.isModuleBlock=He,e.isCaseBlock=Ge,e.isNamespaceExportDeclaration=Xe,e.isImportEqualsDeclaration=Qe,e.isImportDeclaration=Ye,e.isImportClause=Ze,e.isNamespaceImport=$e,e.isNamedImports=et,e.isImportSpecifier=tt,e.isExportAssignment=rt,e.isExportDeclaration=nt,e.isNamedExports=at,e.isExportSpecifier=it,e.isMissingDeclaration=ot,e.isExternalModuleReference=st,e.isJsxElement=ct,e.isJsxSelfClosingElement=ut,e.isJsxOpeningElement=_t,e.isJsxClosingElement=lt,e.isJsxAttribute=dt,e.isJsxAttributes=pt,e.isJsxSpreadAttribute=ft,e.isJsxExpression=mt,e.isCaseClause=gt,e.isDefaultClause=yt,e.isHeritageClause=vt,e.isCatchClause=ht,e.isPropertyAssignment=bt,e.isShorthandPropertyAssignment=kt,e.isSpreadAssignment=xt,e.isEnumMember=Ct,e.isSourceFile=Dt,e.isBundle=St,e.isJSDocTypeExpression=Tt,e.isJSDocAllType=Et,e.isJSDocUnknownType=Nt,e.isJSDocArrayType=At,e.isJSDocUnionType=wt,e.isJSDocTupleType=Pt,e.isJSDocNullableType=Ft,e.isJSDocNonNullableType=Ot,e.isJSDocRecordType=It,e.isJSDocRecordMember=Rt,e.isJSDocTypeReference=Mt,e.isJSDocOptionalType=Lt,e.isJSDocFunctionType=Bt,e.isJSDocVariadicType=Jt,e.isJSDocConstructorType=zt,e.isJSDocThisType=Kt,e.isJSDoc=jt,e.isJSDocAugmentsTag=Vt,e.isJSDocParameterTag=Ut,e.isJSDocReturnTag=qt,e.isJSDocTypeTag=Wt,e.isJSDocTemplateTag=Ht,e.isJSDocTypedefTag=Gt,e.isJSDocPropertyTag=Xt,e.isJSDocTypeLiteral=Qt,e.isJSDocLiteralType=Yt}(ts||(ts={})),function(e){function t(e){return r(e.kind)}function r(e){return e>=143}function n(e){return e.kind>=0&&e.kind<=142}function a(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")}function i(e){return 8<=e&&e<=13}function o(e){return i(e.kind)}function s(e){return 13<=e&&e<=16}function c(e){var t=e.kind;return 15===t||16===t}function u(t){return e.isIdentifier(t)&&t.autoGenerateKind>0}function _(e){switch(e){case 117:case 120:case 76:case 124:case 79:case 84:case 114:case 112:case 113:case 131:case 115:return!0}return!1}function l(e){return _(e.kind)}function d(e){var t=e.kind;return 143===t||71===t}function p(e){var t=e.kind;return 71===t||9===t||8===t||144===t}function f(e){var t=e.kind;return 71===t||174===t||175===t}function m(e){return e&&g(e.kind)}function g(e){switch(e){case 152:case 186:case 228:case 187:case 151:case 150:case 153:case 154:case 155:case 156:case 157:case 160:case 161:return!0}return!1}function y(e){var t=e.kind;return 152===t||149===t||151===t||153===t||154===t||157===t||206===t||247===t}function v(e){return e&&(229===e.kind||199===e.kind)}function h(e){return e&&(153===e.kind||154===e.kind)}function b(e){var t=e.kind;return 156===t||155===t||148===t||150===t||157===t||247===t}function k(e){var t=e.kind;return 261===t||262===t||263===t||151===t||153===t||154===t||247===t}function x(e){return e>=158&&e<=173||119===e||133===e||134===e||122===e||136===e||137===e||99===e||105===e||139===e||95===e||130===e||201===e}function C(e){return x(e.kind)}function D(e){switch(e.kind){case 160:case 161:return!0}return!1}function S(e){if(e){var t=e.kind;return 175===t||174===t}return!1}function T(e){var t=e.kind;return 177===t||178===t}function E(e){var t=e.kind;return 176===t||200===t}function N(e){switch(e.kind){case 226:case 146:case 176:return!0}return!1}function A(e){return w(e)||P(e)}function w(e){switch(e.kind){case 174:case 178:return!0}return!1}function P(e){switch(e.kind){case 175:case 177:return!0}return!1}function F(e){var t=e.kind;return 179===t||143===t}function O(e){switch(e.kind){case 251:case 250:case 181:case 182:case 183:case 147:return!0;default:return!1}}function I(e){return 181===e.kind||182===e.kind}function R(e){var t=e.kind;return 196===t||13===t}function M(e){return 179===e||180===e||182===e||181===e||249===e||250===e||183===e||177===e||185===e||178===e||199===e||186===e||71===e||12===e||8===e||9===e||13===e||196===e||86===e||95===e||99===e||101===e||97===e||203===e||204===e}function L(t){return M(e.skipPartiallyEmittedExpressions(t).kind)}function B(e){return 192===e||193===e||188===e||189===e||190===e||191===e||184===e||M(e)}function J(t){return B(e.skipPartiallyEmittedExpressions(t).kind)}function z(e){return 195===e||197===e||187===e||194===e||198===e||202===e||200===e||298===e||B(e)}function K(t){return z(e.skipPartiallyEmittedExpressions(t).kind)}function j(e){var t=e.kind;return 184===t||202===t}function V(e){return 297===e.kind}function U(e){return 296===e.kind}function q(e){return U(e)||V(e)}function W(e,t){switch(e.kind){case 214:case 215:case 216:case 212:case 213:return!0;case 222:return t&&W(e.statement,t)}return!1}function H(e){return 215===e.kind||216===e.kind}function G(t){return e.isBlock(t)||K(t)}function X(t){return e.isBlock(t)}function Q(t){return e.isVariableDeclarationList(t)||K(t)}function Y(e){var t=e.kind;return 234===t||233===t||71===t}function Z(e){var t=e.kind;return 234===t||233===t}function $(e){var t=e.kind;return 71===t||233===t}function ee(e){var t=e.kind;return 241===t||240===t}function te(e){return 233===e.kind||232===e.kind}function re(e){return 187===e||176===e||229===e||199===e||152===e||232===e||264===e||246===e||228===e||186===e||153===e||239===e||237===e||242===e||230===e||253===e||151===e||150===e||233===e||236===e||240===e||146===e||261===e||149===e||148===e||154===e||262===e||231===e||145===e||226===e||291===e}function ne(e){return 228===e||247===e||229===e||230===e||231===e||232===e||233===e||238===e||237===e||244===e||243===e||236===e}function ae(e){return 218===e||217===e||225===e||212===e||210===e||209===e||215===e||216===e||214===e||211===e||222===e||219===e||221===e||223===e||224===e||208===e||213===e||220===e||296===e||300===e||299===e}function ie(t){return 145===t.kind?290!==t.parent.kind||e.isInJavaScriptFile(t):re(t.kind)}function oe(e){return ne(e.kind)}function se(e){return ae(e.kind)}function ce(e){var t=e.kind;return ae(t)||ne(t)||207===t}function ue(e){var t=e.kind;return 248===t||143===t||71===t}function _e(e){var t=e.kind;return 99===t||71===t||179===t}function le(e){var t=e.kind;return 249===t||256===t||250===t||10===t}function de(e){var t=e.kind;return 253===t||255===t}function pe(e){var t=e.kind;return 9===t||256===t}function fe(e){var t=e.kind;return 251===t||250===t}function me(e){var t=e.kind;return 257===t||258===t}function ge(e){return e.kind>=267&&e.kind<=294}function ye(e){return 283===e.kind||ve(e)}function ve(e){return e.kind>=284&&e.kind<=294}e.isNode=t,e.isNodeKind=r,e.isToken=n,e.isNodeArray=a,e.isLiteralKind=i,e.isLiteralExpression=o,e.isTemplateLiteralKind=s,e.isTemplateMiddleOrTemplateTail=c,e.isGeneratedIdentifier=u,e.isModifierKind=_,e.isModifier=l,e.isEntityName=d,e.isPropertyName=p,e.isBindingName=f,e.isFunctionLike=m,e.isFunctionLikeKind=g,e.isClassElement=y,e.isClassLike=v,e.isAccessor=h,e.isTypeElement=b,e.isObjectLiteralElementLike=k,e.isTypeNode=C,e.isFunctionOrConstructorTypeNode=D,e.isBindingPattern=S,e.isAssignmentPattern=T,e.isArrayBindingElement=E,e.isDeclarationBindingElement=N,e.isBindingOrAssignmentPattern=A,e.isObjectBindingOrAssignmentPattern=w,e.isArrayBindingOrAssignmentPattern=P,e.isPropertyAccessOrQualifiedName=F,e.isCallLikeExpression=O,e.isCallOrNewExpression=I,e.isTemplateLiteral=R,e.isLeftHandSideExpression=L,e.isUnaryExpression=J,e.isExpression=K,e.isAssertionExpression=j,e.isPartiallyEmittedExpression=V,e.isNotEmittedStatement=U,e.isNotEmittedOrPartiallyEmittedNode=q,e.isIterationStatement=W,e.isForInOrOfStatement=H,e.isConciseBody=G,e.isFunctionBody=X,e.isForInitializer=Q,e.isModuleBody=Y,e.isNamespaceBody=Z,e.isJSDocNamespaceBody=$,e.isNamedImportBindings=ee,e.isModuleOrEnumDeclaration=te,e.isDeclaration=ie,e.isDeclarationStatement=oe,e.isStatementButNotDeclaration=se,e.isStatement=ce,e.isModuleReference=ue,e.isJsxTagNameExpression=_e,e.isJsxChild=le,e.isJsxAttributeLike=de,e.isStringLiteralOrJsxExpression=pe,e.isJsxOpeningLikeElement=fe,e.isCaseOrDefaultClause=me,e.isJSDocNode=ge,e.isJSDocCommentContainingNode=ye,e.isJSDocTag=ve}(ts||(ts={}));var ts;!function(e){function t(t){var r=e.createNode(t,-1,-1);return r.flags|=8,r}function r(t,r){return t!==r&&(Ya(t,r),Ea(t,r),r.startsOnNewLine&&(t.startsOnNewLine=!0),e.aggregateTransformFlags(t)),t}function n(t,r){if(t){if(e.isNodeArray(t))return t}else t=[];var n=t;return n.pos=-1,n.end=-1,n.hasTrailingComma=r,n}function a(e){var r=t(e.kind);r.flags|=e.flags,Ya(r,e);for(var n in e)!r.hasOwnProperty(n)&&e.hasOwnProperty(n)&&(r[n]=e[n]);return r}function i(e){return"number"==typeof e?o(e+""):"boolean"==typeof e?e?h():b():"string"==typeof e?s(e):c(e)}function o(e){var r=t(8);return r.text=e,r.numericLiteralFlags=0,r}function s(e){var r=t(9);return r.text=e,r}function c(e){var t=s(e.text);return t.textSourceNode=e,t}function u(r,a){var i=t(71);return i.text=e.escapeIdentifier(r),i.originalKeywordKind=r?e.stringToToken(r):0,i.autoGenerateKind=0,i.autoGenerateId=0,a&&(i.typeArguments=n(a)),i}function _(e,t){return e.typeArguments!==t?r(u(e.text,t),e):e}function l(e){var t=u("");return t.autoGenerateKind=1,t.autoGenerateId=ei,ei++,e&&e(t),t}function d(){var e=u("");return e.autoGenerateKind=2,e.autoGenerateId=ei,ei++,e}function p(e){var t=u(e);return t.autoGenerateKind=3,t.autoGenerateId=ei,ei++,t}function f(e){var t=u("");return t.autoGenerateKind=4,t.autoGenerateId=ei,t.original=e,ei++,t}function m(e){return t(e)}function g(){return t(97)}function y(){return t(99)}function v(){return t(95)}function h(){return t(101)}function b(){return t(86)}function k(e,r){var n=t(143);return n.left=e,n.right=ka(r),n}function x(e,t,n){return e.left!==t||e.right!==n?r(k(t,n),e):e}function C(e){var r=t(144);return r.expression=e,r}function D(e,t){return e.expression!==t?r(C(t),e):e}function S(e,r,n){var a=t(145);return a.name=ka(e),a.constraint=r,a["default"]=n,a}function T(e,t,n,a){return e.name!==t||e.constraint!==n||e["default"]!==a?r(S(t,n,a),e):e}function E(r,n,a,i,o,s,c){var u=t(146);return u.decorators=Ca(r),u.modifiers=Ca(n),u.dotDotDotToken=a,u.name=ka(i),u.questionToken=o,u.type=s,u.initializer=c?e.parenthesizeExpressionForList(c):void 0,u}function N(e,t,n,a,i,o,s,c){return e.decorators!==t||e.modifiers!==n||e.dotDotDotToken!==a||e.name!==i||e.questionToken!==o||e.type!==s||e.initializer!==c?r(E(t,n,a,i,e.questionToken,s,c),e):e}function A(r){var n=t(147);return n.expression=e.parenthesizeForAccess(r),n}function w(e,t){return e.expression!==t?r(A(t),e):e}function P(e,r,n,a,i){var o=t(148);return o.modifiers=Ca(e),o.name=ka(r),o.questionToken=n,o.type=a,o.initializer=i,o}function F(e,t,n,a,i,o){return e.modifiers!==t||e.name!==n||e.questionToken!==a||e.type!==i||e.initializer!==o?r(P(t,n,a,i,o),e):e}function O(e,r,n,a,i,o){var s=t(149);return s.decorators=Ca(e),s.modifiers=Ca(r),s.name=ka(n),s.questionToken=a,s.type=i,s.initializer=o,s}function I(e,t,n,a,i,o){return e.decorators!==t||e.modifiers!==n||e.name!==a||e.type!==i||e.initializer!==o?r(O(t,n,a,e.questionToken,i,o),e):e}function R(e,t,r,n,a){var i=Y(150,e,t,r);return i.name=ka(n),i.questionToken=a,i}function M(e,t,n,a,i,o){return e.typeParameters!==t||e.parameters!==n||e.type!==a||e.name!==i||e.questionToken!==o?r(R(t,n,a,i,o),e):e}function L(e,r,a,i,o,s,c,u,_){var l=t(151);return l.decorators=Ca(e),l.modifiers=Ca(r),l.asteriskToken=a,l.name=ka(i),l.questionToken=o,l.typeParameters=Ca(s),l.parameters=n(c),l.type=u,l.body=_,l}function B(e,t,n,a,i,o,s,c,u,_){return e.decorators!==t||e.modifiers!==n||e.asteriskToken!==a||e.name!==i||e.typeParameters!==s||e.parameters!==c||e.type!==u||e.body!==_?r(L(t,n,a,i,o,s,c,u,_),e):e}function J(e,r,a,i){var o=t(152);return o.decorators=Ca(e),o.modifiers=Ca(r),o.typeParameters=void 0,o.parameters=n(a),o.type=void 0,o.body=i,o}function z(e,t,n,a,i){return e.decorators!==t||e.modifiers!==n||e.parameters!==a||e.body!==i?r(J(t,n,a,i),e):e}function K(e,r,a,i,o,s){var c=t(153);return c.decorators=Ca(e),c.modifiers=Ca(r),c.name=ka(a),c.typeParameters=void 0,c.parameters=n(i),c.type=o,c.body=s,c}function j(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(K(t,n,a,i,o,s),e):e}function V(e,r,a,i,o){var s=t(154);return s.decorators=Ca(e),s.modifiers=Ca(r),s.name=ka(a),s.typeParameters=void 0,s.parameters=n(i),s.body=o,s}function U(e,t,n,a,i,o){return e.decorators!==t||e.modifiers!==n||e.name!==a||e.parameters!==i||e.body!==o?r(V(t,n,a,i,o),e):e}function q(e,t,r){return Y(155,e,t,r)}function W(e,t,r,n){return Z(e,t,r,n)}function H(e,t,r){return Y(156,e,t,r)}function G(e,t,r,n){return Z(e,t,r,n)}function X(e,r,a,i){var o=t(157);return o.decorators=Ca(e),o.modifiers=Ca(r),o.parameters=n(a),o.type=i,o}function Q(e,t,n,a,i){return e.parameters!==a||e.type!==i||e.decorators!==t||e.modifiers!==n?r(X(t,n,a,i),e):e}function Y(e,r,n,a){var i=t(e);return i.typeParameters=Ca(r),i.parameters=Ca(n),i.type=a,i}function Z(e,t,n,a){return e.typeParameters!==t||e.parameters!==n||e.type!==a?r(Y(e.kind,t,n,a),e):e}function $(e){return t(e)}function ee(e,r){var n=t(158);return n.parameterName=ka(e),n.type=r,n}function te(e,t,n){return e.parameterName!==t||e.type!==n?r(ee(t,n),e):e}function re(r,n){var a=t(159);return a.typeName=ka(r),a.typeArguments=n&&e.parenthesizeTypeParameters(n),a}function ne(e,t,n){return e.typeName!==t||e.typeArguments!==n?r(re(t,n),e):e}function ae(e,t,r){return Y(160,e,t,r)}function ie(e,t,r,n){return Z(e,t,r,n)}function oe(e,t,r){return Y(161,e,t,r)}function se(e,t,r,n){return Z(e,t,r,n)}function ce(e){var r=t(162);return r.exprName=e,r}function ue(e,t){return e.exprName!==t?r(ce(t),e):e}function _e(e){var r=t(163);return r.members=n(e),r}function le(e,t){return e.members!==t?r(_e(t),e):e}function de(r){var n=t(164);return n.elementType=e.parenthesizeElementTypeMember(r),n}function pe(e,t){return e.elementType!==t?r(de(t),e):e}function fe(e){var r=t(165);return r.elementTypes=n(e),r}function me(e,t){return e.elementTypes!==t?r(fe(t),e):e}function ge(e){return be(166,e)}function ye(e,t){return ke(e,t)}function ve(e){return be(167,e)}function he(e,t){return ke(e,t)}function be(r,n){var a=t(r);return a.types=e.parenthesizeElementTypeMembers(n),a}function ke(e,t){return e.types!==t?r(be(e.kind,t),e):e}function xe(e){var r=t(168);return r.type=e,r}function Ce(e,t){return e.type!==t?r(xe(t),e):e}function De(){return t(169)}function Se(r){var n=t(170);return n.operator=127,n.type=e.parenthesizeElementTypeMember(r),n}function Te(e,t){return e.type!==t?r(Se(t),e):e}function Ee(r,n){var a=t(171);return a.objectType=e.parenthesizeElementTypeMember(r),a.indexType=n,a}function Ne(e,t,n){return e.objectType!==t||e.indexType!==n?r(Ee(t,n),e):e}function Ae(e,r,n,a){var i=t(172);return i.readonlyToken=e,i.typeParameter=r,i.questionToken=n,i.type=a,i}function we(e,t,n,a,i){return e.readonlyToken!==t||e.typeParameter!==n||e.questionToken!==a||e.type!==i?r(Ae(t,n,a,i),e):e}function Pe(e){var r=t(173);return r.literal=e,r}function Fe(e,t){return e.literal!==t?r(Pe(t),e):e}function Oe(e){var r=t(174);return r.elements=n(e),r}function Ie(e,t){return e.elements!==t?r(Oe(t),e):e}function Re(e){var r=t(175);return r.elements=n(e),r}function Me(e,t){return e.elements!==t?r(Re(t),e):e}function Le(e,r,n,a){var i=t(176);return i.dotDotDotToken=e,i.propertyName=ka(r),i.name=ka(n),i.initializer=a,i}function Be(e,t,n,a,i){return e.propertyName!==n||e.dotDotDotToken!==t||e.name!==a||e.initializer!==i?r(Le(t,n,a,i),e):e}function Je(r,a){var i=t(177);return i.elements=e.parenthesizeListElements(n(r)),a&&(i.multiLine=!0),i}function ze(e,t){return e.elements!==t?r(Je(t,e.multiLine),e):e}function Ke(e,r){var a=t(178);return a.properties=n(e),r&&(a.multiLine=!0),a}function je(e,t){return e.properties!==t?r(Ke(t,e.multiLine),e):e}function Ve(r,n){var a=t(179);return a.expression=e.parenthesizeForAccess(r),a.name=ka(n),Aa(a,131072),a}function Ue(e,t,n){return e.expression!==t||e.name!==n?r(Aa(Ve(t,n),Na(e)),e):e}function qe(r,n){var a=t(180);return a.expression=e.parenthesizeForAccess(r),a.argumentExpression=xa(n),a}function We(e,t,n){return e.expression!==t||e.argumentExpression!==n?r(qe(t,n),e):e}function He(r,a,i){var o=t(181);return o.expression=e.parenthesizeForAccess(r),o.typeArguments=Ca(a),o.arguments=e.parenthesizeListElements(n(i)),o}function Ge(e,t,n,a){return e.expression!==t||e.typeArguments!==n||e.arguments!==a?r(He(t,n,a),e):e}function Xe(r,a,i){var o=t(182);return o.expression=e.parenthesizeForNew(r),o.typeArguments=Ca(a),o.arguments=i?e.parenthesizeListElements(n(i)):void 0,o}function Qe(e,t,n,a){return e.expression!==t||e.typeArguments!==n||e.arguments!==a?r(Xe(t,n,a),e):e}function Ye(r,n){var a=t(183);return a.tag=e.parenthesizeForAccess(r),a.template=n,a}function Ze(e,t,n){return e.tag!==t||e.template!==n?r(Ye(t,n),e):e}function $e(r,n){var a=t(184);return a.type=r,a.expression=e.parenthesizePrefixOperand(n),a}function et(e,t,n){return e.type!==t||e.expression!==n?r($e(t,n),e):e}function tt(e){var r=t(185);return r.expression=e,r}function rt(e,t){return e.expression!==t?r(tt(t),e):e}function nt(e,r,a,i,o,s,c){var u=t(186);return u.modifiers=Ca(e),u.asteriskToken=r,u.name=ka(a),u.typeParameters=Ca(i),u.parameters=n(o),u.type=s,u.body=c,u}function at(e,t,n,a,i,o,s,c){return e.name!==a||e.modifiers!==t||e.asteriskToken!==n||e.typeParameters!==i||e.parameters!==o||e.type!==s||e.body!==c?r(nt(t,n,a,i,o,s,c),e):e}function it(r,a,i,o,s,c){var u=t(187);return u.modifiers=Ca(r),u.typeParameters=Ca(a),u.parameters=n(i),u.type=o,u.equalsGreaterThanToken=s||m(36),u.body=e.parenthesizeConciseBody(c),u}function ot(e,t,n,a,i,o){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==a||e.type!==i||e.body!==o?r(it(t,n,a,i,e.equalsGreaterThanToken,o),e):e}function st(r){var n=t(188);return n.expression=e.parenthesizePrefixOperand(r),n}function ct(e,t){return e.expression!==t?r(st(t),e):e}function ut(r){var n=t(189);return n.expression=e.parenthesizePrefixOperand(r),n}function _t(e,t){return e.expression!==t?r(ut(t),e):e}function lt(r){var n=t(190);return n.expression=e.parenthesizePrefixOperand(r),n}function dt(e,t){return e.expression!==t?r(lt(t),e):e}function pt(r){var n=t(191);return n.expression=e.parenthesizePrefixOperand(r),n}function ft(e,t){return e.expression!==t?r(pt(t),e):e}function mt(r,n){var a=t(192);return a.operator=r,a.operand=e.parenthesizePrefixOperand(n),a}function gt(e,t){return e.operand!==t?r(mt(e.operator,t),e):e}function yt(r,n){var a=t(193);return a.operand=e.parenthesizePostfixOperand(r),a.operator=n,a}function vt(e,t){return e.operand!==t?r(yt(t,e.operator),e):e}function ht(r,n,a){var i=t(194),o=Da(n),s=o.kind;return i.left=e.parenthesizeBinaryOperand(s,r,!0,void 0),i.operatorToken=o,i.right=e.parenthesizeBinaryOperand(s,a,!1,i.left),i}function bt(e,t,n,a){return e.left!==t||e.right!==n?r(ht(t,a||e.operatorToken,n),e):e}function kt(r,n,a,i,o){var s=t(195);return s.condition=e.parenthesizeForConditionalHead(r),s.questionToken=o?n:m(55),s.whenTrue=e.parenthesizeSubexpressionOfConditionalExpression(o?a:n),s.colonToken=o?i:m(56),s.whenFalse=e.parenthesizeSubexpressionOfConditionalExpression(o?o:a),s}function xt(e,t,n,a){return e.condition!==t||e.whenTrue!==n||e.whenFalse!==a?r(kt(t,e.questionToken,n,e.colonToken,a),e):e}function Ct(e,r){var a=t(196);return a.head=e,a.templateSpans=n(r),a}function Dt(e,t,n){return e.head!==t||e.templateSpans!==n?r(Ct(t,n),e):e}function St(e,r){var n=t(197);return n.asteriskToken=e&&39===e.kind?e:void 0,n.expression=e&&39!==e.kind?e:r,n}function Tt(e,t,n){return e.expression!==n||e.asteriskToken!==t?r(St(t,n),e):e}function Et(r){var n=t(198);return n.expression=e.parenthesizeExpressionForList(r),n}function Nt(e,t){return e.expression!==t?r(Et(t),e):e}function At(e,r,a,i,o){var s=t(199);return s.decorators=void 0,s.modifiers=Ca(e),s.name=ka(r),s.typeParameters=Ca(a),s.heritageClauses=Ca(i),s.members=n(o),s}function wt(e,t,n,a,i,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==a||e.heritageClauses!==i||e.members!==o?r(At(t,n,a,i,o),e):e}function Pt(){return t(200)}function Ft(r,n){var a=t(201);return a.expression=e.parenthesizeForAccess(n),a.typeArguments=Ca(r),a}function Ot(e,t,n){return e.typeArguments!==t||e.expression!==n?r(Ft(t,n),e):e}function It(e,r){var n=t(202);return n.expression=e,n.type=r,n}function Rt(e,t,n){return e.expression!==t||e.type!==n?r(It(t,n),e):e}function Mt(r){var n=t(203);return n.expression=e.parenthesizeForAccess(r),n}function Lt(e,t){return e.expression!==t?r(Mt(t),e):e}function Bt(e,r){var n=t(204);return n.keywordToken=e,n.name=r,n}function Jt(e,t){return e.name!==t?r(Bt(e.keywordToken,t),e):e}function zt(e,r){var n=t(205);return n.expression=e,n.literal=r,n}function Kt(e,t,n){return e.expression!==t||e.literal!==n?r(zt(t,n),e):e}function jt(){return t(206)}function Vt(e,r){var a=t(207);return a.statements=n(e),r&&(a.multiLine=r),a}function Ut(e,t){return e.statements!==t?r(Vt(t,e.multiLine),e):e}function qt(r,n){var a=t(208);return a.decorators=void 0,a.modifiers=Ca(r),a.declarationList=e.isArray(n)?Er(n):n,a}function Wt(e,t,n){return e.modifiers!==t||e.declarationList!==n?r(qt(t,n),e):e}function Ht(){return t(209)}function Gt(r){var n=t(210);return n.expression=e.parenthesizeExpressionForExpressionStatement(r),n}function Xt(e,t){return e.expression!==t?r(Gt(t),e):e}function Qt(e,r,n){var a=t(211);return a.expression=e,a.thenStatement=r,a.elseStatement=n,a}function Yt(e,t,n,a){return e.expression!==t||e.thenStatement!==n||e.elseStatement!==a?r(Qt(t,n,a),e):e}function Zt(e,r){var n=t(212);return n.statement=e,n.expression=r,n}function $t(e,t,n){return e.statement!==t||e.expression!==n?r(Zt(t,n),e):e}function er(e,r){var n=t(213);return n.expression=e,n.statement=r,n}function tr(e,t,n){return e.expression!==t||e.statement!==n?r(er(t,n),e):e}function rr(e,r,n,a){var i=t(214);return i.initializer=e,i.condition=r,i.incrementor=n,i.statement=a,i}function nr(e,t,n,a,i){return e.initializer!==t||e.condition!==n||e.incrementor!==a||e.statement!==i?r(rr(t,n,a,i),e):e}function ar(e,r,n){var a=t(215);return a.initializer=e,a.expression=r,a.statement=n,a}function ir(e,t,n,a){return e.initializer!==t||e.expression!==n||e.statement!==a?r(ar(t,n,a),e):e}function or(e,r,n,a){var i=t(216);return i.awaitModifier=e,i.initializer=r,i.expression=n,i.statement=a,i}function sr(e,t,n,a,i){return e.awaitModifier!==t||e.initializer!==n||e.expression!==a||e.statement!==i?r(or(t,n,a,i),e):e}function cr(e){var r=t(217);return r.label=ka(e),r}function ur(e,t){return e.label!==t?r(cr(t),e):e}function _r(e){var r=t(218);return r.label=ka(e),r}function lr(e,t){return e.label!==t?r(_r(t),e):e}function dr(e){var r=t(219);return r.expression=e,r}function pr(e,t){return e.expression!==t?r(dr(t),e):e}function fr(e,r){var n=t(220);return n.expression=e,n.statement=r,n}function mr(e,t,n){return e.expression!==t||e.statement!==n?r(fr(t,n),e):e}function gr(r,n){var a=t(221);return a.expression=e.parenthesizeExpressionForList(r),a.caseBlock=n,a}function yr(e,t,n){return e.expression!==t||e.caseBlock!==n?r(gr(t,n),e):e}function vr(e,r){var n=t(222);return n.label=ka(e),n.statement=r,n}function hr(e,t,n){return e.label!==t||e.statement!==n?r(vr(t,n),e):e}function br(e){var r=t(223);return r.expression=e,r}function kr(e,t){return e.expression!==t?r(br(t),e):e}function xr(e,r,n){var a=t(224);return a.tryBlock=e,a.catchClause=r,a.finallyBlock=n,a}function Cr(e,t,n,a){
return e.tryBlock!==t||e.catchClause!==n||e.finallyBlock!==a?r(xr(t,n,a),e):e}function Dr(){return t(225)}function Sr(r,n,a){var i=t(226);return i.name=ka(r),i.type=n,i.initializer=void 0!==a?e.parenthesizeExpressionForList(a):void 0,i}function Tr(e,t,n,a){return e.name!==t||e.type!==n||e.initializer!==a?r(Sr(t,n,a),e):e}function Er(e,r){var a=t(227);return a.flags|=3&r,a.declarations=n(e),a}function Nr(e,t){return e.declarations!==t?r(Er(t,e.flags),e):e}function Ar(e,r,a,i,o,s,c,u){var _=t(228);return _.decorators=Ca(e),_.modifiers=Ca(r),_.asteriskToken=a,_.name=ka(i),_.typeParameters=Ca(o),_.parameters=n(s),_.type=c,_.body=u,_}function wr(e,t,n,a,i,o,s,c,u){return e.decorators!==t||e.modifiers!==n||e.asteriskToken!==a||e.name!==i||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==u?r(Ar(t,n,a,i,o,s,c,u),e):e}function Pr(e,r,a,i,o,s){var c=t(229);return c.decorators=Ca(e),c.modifiers=Ca(r),c.name=ka(a),c.typeParameters=Ca(i),c.heritageClauses=Ca(o),c.members=n(s),c}function Fr(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(Pr(t,n,a,i,o,s),e):e}function Or(e,r,a,i,o,s){var c=t(230);return c.decorators=Ca(e),c.modifiers=Ca(r),c.name=ka(a),c.typeParameters=Ca(i),c.heritageClauses=Ca(o),c.members=n(s),c}function Ir(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(Or(t,n,a,i,o,s),e):e}function Rr(e,r,n,a,i){var o=t(231);return o.decorators=Ca(e),o.modifiers=Ca(r),o.name=ka(n),o.typeParameters=Ca(a),o.type=i,o}function Mr(e,t,n,a,i,o){return e.decorators!==t||e.modifiers!==n||e.name!==a||e.typeParameters!==i||e.type!==o?r(Rr(t,n,a,i,o),e):e}function Lr(e,r,a,i){var o=t(232);return o.decorators=Ca(e),o.modifiers=Ca(r),o.name=ka(a),o.members=n(i),o}function Br(e,t,n,a,i){return e.decorators!==t||e.modifiers!==n||e.name!==a||e.members!==i?r(Lr(t,n,a,i),e):e}function Jr(e,r,n,a,i){var o=t(233);return o.flags|=532&i,o.decorators=Ca(e),o.modifiers=Ca(r),o.name=n,o.body=a,o}function zr(e,t,n,a,i){return e.decorators!==t||e.modifiers!==n||e.name!==a||e.body!==i?r(Jr(t,n,a,i,e.flags),e):e}function Kr(e){var r=t(234);return r.statements=n(e),r}function jr(e,t){return e.statements!==t?r(Kr(t),e):e}function Vr(e){var r=t(235);return r.clauses=n(e),r}function Ur(e,t){return e.clauses!==t?r(Vr(t),e):e}function qr(e){var r=t(236);return r.name=ka(e),r}function Wr(e,t){return e.name!==t?r(qr(t),e):e}function Hr(e,r,n,a){var i=t(237);return i.decorators=Ca(e),i.modifiers=Ca(r),i.name=ka(n),i.moduleReference=a,i}function Gr(e,t,n,a,i){return e.decorators!==t||e.modifiers!==n||e.name!==a||e.moduleReference!==i?r(Hr(t,n,a,i),e):e}function Xr(e,r,n,a){var i=t(238);return i.decorators=Ca(e),i.modifiers=Ca(r),i.importClause=n,i.moduleSpecifier=a,i}function Qr(e,t,n,a,i){return e.decorators!==t||e.modifiers!==n||e.importClause!==a||e.moduleSpecifier!==i?r(Xr(t,n,a,i),e):e}function Yr(e,r){var n=t(239);return n.name=e,n.namedBindings=r,n}function Zr(e,t,n){return e.name!==t||e.namedBindings!==n?r(Yr(t,n),e):e}function $r(e){var r=t(240);return r.name=e,r}function en(e,t){return e.name!==t?r($r(t),e):e}function tn(e){var r=t(241);return r.elements=n(e),r}function rn(e,t){return e.elements!==t?r(tn(t),e):e}function nn(e,r){var n=t(242);return n.propertyName=e,n.name=r,n}function an(e,t,n){return e.propertyName!==t||e.name!==n?r(nn(t,n),e):e}function on(e,r,n,a){var i=t(243);return i.decorators=Ca(e),i.modifiers=Ca(r),i.isExportEquals=n,i.expression=a,i}function sn(e,t,n,a){return e.decorators!==t||e.modifiers!==n||e.expression!==a?r(on(t,n,e.isExportEquals,a),e):e}function cn(e,r,n,a){var i=t(244);return i.decorators=Ca(e),i.modifiers=Ca(r),i.exportClause=n,i.moduleSpecifier=a,i}function un(e,t,n,a,i){return e.decorators!==t||e.modifiers!==n||e.exportClause!==a||e.moduleSpecifier!==i?r(cn(t,n,a,i),e):e}function _n(e){var r=t(245);return r.elements=n(e),r}function ln(e,t){return e.elements!==t?r(_n(t),e):e}function dn(e,r){var n=t(246);return n.propertyName=ka(e),n.name=ka(r),n}function pn(e,t,n){return e.propertyName!==t||e.name!==n?r(dn(t,n),e):e}function fn(e){var r=t(248);return r.expression=e,r}function mn(e,t){return e.expression!==t?r(fn(t),e):e}function gn(e,r,a){var i=t(249);return i.openingElement=e,i.children=n(r),i.closingElement=a,i}function yn(e,t,n,a){return e.openingElement!==t||e.children!==n||e.closingElement!==a?r(gn(t,n,a),e):e}function vn(e,r){var n=t(250);return n.tagName=e,n.attributes=r,n}function hn(e,t,n){return e.tagName!==t||e.attributes!==n?r(vn(t,n),e):e}function bn(e,r){var n=t(251);return n.tagName=e,n.attributes=r,n}function kn(e,t,n){return e.tagName!==t||e.attributes!==n?r(bn(t,n),e):e}function xn(e){var r=t(252);return r.tagName=e,r}function Cn(e,t){return e.tagName!==t?r(xn(t),e):e}function Dn(e,r){var n=t(253);return n.name=e,n.initializer=r,n}function Sn(e,t,n){return e.name!==t||e.initializer!==n?r(Dn(t,n),e):e}function Tn(e){var r=t(254);return r.properties=n(e),r}function En(e,t){return e.properties!==t?r(Tn(t),e):e}function Nn(e){var r=t(255);return r.expression=e,r}function An(e,t){return e.expression!==t?r(Nn(t),e):e}function wn(e,r){var n=t(256);return n.dotDotDotToken=e,n.expression=r,n}function Pn(e,t){return e.expression!==t?r(wn(e.dotDotDotToken,t),e):e}function Fn(r,a){var i=t(257);return i.expression=e.parenthesizeExpressionForList(r),i.statements=n(a),i}function On(e,t,n){return e.expression!==t||e.statements!==n?r(Fn(t,n),e):e}function In(e){var r=t(258);return r.statements=n(e),r}function Rn(e,t){return e.statements!==t?r(In(t),e):e}function Mn(e,r){var a=t(259);return a.token=e,a.types=n(r),a}function Ln(e,t){return e.types!==t?r(Mn(e.token,t),e):e}function Bn(e,r){var n=t(260);return n.variableDeclaration="string"==typeof e?Sr(e):e,n.block=r,n}function Jn(e,t,n){return e.variableDeclaration!==t||e.block!==n?r(Bn(t,n),e):e}function zn(r,n){var a=t(261);return a.name=ka(r),a.questionToken=void 0,a.initializer=void 0!==n?e.parenthesizeExpressionForList(n):void 0,a}function Kn(e,t,n){return e.name!==t||e.initializer!==n?r(zn(t,n),e):e}function jn(r,n){var a=t(262);return a.name=ka(r),a.objectAssignmentInitializer=void 0!==n?e.parenthesizeExpressionForList(n):void 0,a}function Vn(e,t,n){return e.name!==t||e.objectAssignmentInitializer!==n?r(jn(t,n),e):e}function Un(r){var n=t(263);return n.expression=void 0!==r?e.parenthesizeExpressionForList(r):void 0,n}function qn(e,t){return e.expression!==t?r(Un(t),e):e}function Wn(r,n){var a=t(264);return a.name=ka(r),a.initializer=n&&e.parenthesizeExpressionForList(n),a}function Hn(e,t,n){return e.name!==t||e.initializer!==n?r(Wn(t,n),e):e}function Gn(e,a){if(e.statements!==a){var i=t(265);return i.flags|=e.flags,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 Xn(e){var t=a(e);return t.pos=e.pos,t.end=e.end,t.parent=e.parent,t}function Qn(e){var r=t(296);return r.original=e,Ea(r,e),r}function Yn(e){var r=t(300);return r.emitNode={},r.original=e,r}function Zn(e){var r=t(299);return r.emitNode={},r.original=e,r}function $n(e,r){var n=t(297);return n.expression=e,n.original=r,Ea(n,r),n}function ea(e,t){return e.expression!==t?r($n(t,e.original),e):e}function ta(t){if(e.nodeIsSynthesized(t)&&!e.isParseTreeNode(t)&&!t.original&&!t.emitNode&&!t.id){if(298===t.kind)return t.elements;if(e.isBinaryExpression(t)&&26===t.operatorToken.kind)return[t.left,t.right]}return t}function ra(r){var a=t(298);return a.elements=n(e.sameFlatMap(r,ta)),a}function na(e,t){return e.elements!==t?r(ra(t),e):e}function aa(t){var r=e.createNode(266);return r.sourceFiles=t,r}function ia(e,t){return e.sourceFiles!==t?aa(t):e}function oa(e,t,r){return He(nt(void 0,void 0,void 0,void 0,t?[t]:[],void 0,Vt(e,!0)),void 0,r?[r]:[])}function sa(e,t){return ht(e,26,t)}function ca(e,t){return ht(e,27,t)}function ua(e,t){return ht(e,58,t)}function _a(e,t){return ht(e,34,t)}function la(e,t){return ht(e,35,t)}function da(e,t){return ht(e,37,t)}function pa(e,t){return ht(e,38,t)}function fa(e){return yt(e,43)}function ma(e,t){return ht(e,53,t)}function ga(e,t){return ht(e,54,t)}function ya(e){return mt(51,e)}function va(){return lt(i(0))}function ha(e){return on(void 0,void 0,!1,e)}function ba(e){return cn(void 0,void 0,_n([dn(void 0,e)]))}function ka(e){return"string"==typeof e?u(e):e}function xa(e){return"string"==typeof e||"number"==typeof e?i(e):e}function Ca(e){return e?n(e):void 0}function Da(e){return"number"==typeof e?m(e):e}function Sa(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 Ta(t){if(!t.emitNode){if(e.isParseTreeNode(t)){if(265===t.kind)return t.emitNode={annotatedNodes:[t]};var r=e.getSourceFileOfNode(t);Ta(r).annotatedNodes.push(t)}t.emitNode={}}return t.emitNode}function Ea(e,t){return t&&(e.pos=t.pos,e.end=t.end),e}function Na(e){var t=e.emitNode;return t&&t.flags}function Aa(e,t){return Ta(e).flags=t,e}function wa(e){var t=e.emitNode;return t&&t.sourceMapRange||e}function Pa(e,t){return Ta(e).sourceMapRange=t,e}function Fa(t,r,n){return new(ti||(ti=e.objectAllocator.getSourceMapSourceConstructor()))(t,r,n)}function Oa(e,t){var r=e.emitNode,n=r&&r.tokenSourceMapRanges;return n&&n[t]}function Ia(e,t,r){var n=Ta(e),a=n.tokenSourceMapRanges||(n.tokenSourceMapRanges=[]);return a[t]=r,e}function Ra(e){var t=e.emitNode;return t&&t.commentRange||e}function Ma(e,t){return Ta(e).commentRange=t,e}function La(e){var t=e.emitNode;return t&&t.leadingComments}function Ba(e,t){return Ta(e).leadingComments=t,e}function Ja(t,r,n,a){return Ba(t,e.append(La(t),{kind:r,pos:-1,end:-1,hasTrailingNewLine:a,text:n}))}function za(e){var t=e.emitNode;return t&&t.trailingComments}function Ka(e,t){return Ta(e).trailingComments=t,e}function ja(t,r,n,a){return Ka(t,e.append(za(t),{kind:r,pos:-1,end:-1,hasTrailingNewLine:a,text:n}))}function Va(e){var t=e.emitNode;return t&&t.constantValue}function Ua(e,t){var r=Ta(e);return r.constantValue=t,e}function qa(t,r){var n=Ta(t);return n.helpers=e.append(n.helpers,r),t}function Wa(t,r){if(e.some(r))for(var n=Ta(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 Ha(t,r){var n=t.emitNode;if(n){var a=n.helpers;if(a)return e.orderedRemoveItem(a,r)}return!1}function Ga(e){var t=e.emitNode;return t&&t.helpers}function Xa(t,r,n){var a=t.emitNode,i=a&&a.helpers;if(e.some(i)){for(var o=Ta(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 Qa(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 Ya(e,t){if(e.original=t,t){var r=t.emitNode;r&&(e.emitNode=Za(r,e.emitNode))}return e}function Za(t,r){var n=t.flags,a=t.leadingComments,i=t.trailingComments,o=t.commentRange,s=t.sourceMapRange,c=t.tokenSourceMapRanges,u=t.constantValue,_=t.helpers;return r||(r={}),a&&(r.leadingComments=e.addRange(a.slice(),r.leadingComments)),i&&(r.trailingComments=e.addRange(i.slice(),r.trailingComments)),n&&(r.flags=n),o&&(r.commentRange=o),s&&(r.sourceMapRange=s),c&&(r.tokenSourceMapRanges=$a(c,r.tokenSourceMapRanges)),void 0!==u&&(r.constantValue=u),_&&(r.helpers=e.addRange(r.helpers,_)),r}function $a(e,t){t||(t=[]);for(var r in e)t[r]=e[r];return t}e.updateNode=r,e.createNodeArray=n,e.getSynthesizedClone=a,e.createLiteral=i,e.createNumericLiteral=o,e.createIdentifier=u,e.updateIdentifier=_;var ei=0;e.createTempVariable=l,e.createLoopVariable=d,e.createUniqueName=p,e.getGeneratedNameForNode=f,e.createToken=m,e.createSuper=g,e.createThis=y,e.createNull=v,e.createTrue=h,e.createFalse=b,e.createQualifiedName=k,e.updateQualifiedName=x,e.createComputedPropertyName=C,e.updateComputedPropertyName=D,e.createTypeParameterDeclaration=S,e.updateTypeParameterDeclaration=T,e.createParameter=E,e.updateParameter=N,e.createDecorator=A,e.updateDecorator=w,e.createPropertySignature=P,e.updatePropertySignature=F,e.createProperty=O,e.updateProperty=I,e.createMethodSignature=R,e.updateMethodSignature=M,e.createMethod=L,e.updateMethod=B,e.createConstructor=J,e.updateConstructor=z,e.createGetAccessor=K,e.updateGetAccessor=j,e.createSetAccessor=V,e.updateSetAccessor=U,e.createCallSignature=q,e.updateCallSignature=W,e.createConstructSignature=H,e.updateConstructSignature=G,e.createIndexSignature=X,e.updateIndexSignature=Q,e.createSignatureDeclaration=Y,e.createKeywordTypeNode=$,e.createTypePredicateNode=ee,e.updateTypePredicateNode=te,e.createTypeReferenceNode=re,e.updateTypeReferenceNode=ne,e.createFunctionTypeNode=ae,e.updateFunctionTypeNode=ie,e.createConstructorTypeNode=oe,e.updateConstructorTypeNode=se,e.createTypeQueryNode=ce,e.updateTypeQueryNode=ue,e.createTypeLiteralNode=_e,e.updateTypeLiteralNode=le,e.createArrayTypeNode=de,e.updateArrayTypeNode=pe,e.createTupleTypeNode=fe,e.updateTypleTypeNode=me,e.createUnionTypeNode=ge,e.updateUnionTypeNode=ye,e.createIntersectionTypeNode=ve,e.updateIntersectionTypeNode=he,e.createUnionOrIntersectionTypeNode=be,e.createParenthesizedType=xe,e.updateParenthesizedType=Ce,e.createThisTypeNode=De,e.createTypeOperatorNode=Se,e.updateTypeOperatorNode=Te,e.createIndexedAccessTypeNode=Ee,e.updateIndexedAccessTypeNode=Ne,e.createMappedTypeNode=Ae,e.updateMappedTypeNode=we,e.createLiteralTypeNode=Pe,e.updateLiteralTypeNode=Fe,e.createObjectBindingPattern=Oe,e.updateObjectBindingPattern=Ie,e.createArrayBindingPattern=Re,e.updateArrayBindingPattern=Me,e.createBindingElement=Le,e.updateBindingElement=Be,e.createArrayLiteral=Je,e.updateArrayLiteral=ze,e.createObjectLiteral=Ke,e.updateObjectLiteral=je,e.createPropertyAccess=Ve,e.updatePropertyAccess=Ue,e.createElementAccess=qe,e.updateElementAccess=We,e.createCall=He,e.updateCall=Ge,e.createNew=Xe,e.updateNew=Qe,e.createTaggedTemplate=Ye,e.updateTaggedTemplate=Ze,e.createTypeAssertion=$e,e.updateTypeAssertion=et,e.createParen=tt,e.updateParen=rt,e.createFunctionExpression=nt,e.updateFunctionExpression=at,e.createArrowFunction=it,e.updateArrowFunction=ot,e.createDelete=st,e.updateDelete=ct,e.createTypeOf=ut,e.updateTypeOf=_t,e.createVoid=lt,e.updateVoid=dt,e.createAwait=pt,e.updateAwait=ft,e.createPrefix=mt,e.updatePrefix=gt,e.createPostfix=yt,e.updatePostfix=vt,e.createBinary=ht,e.updateBinary=bt,e.createConditional=kt,e.updateConditional=xt,e.createTemplateExpression=Ct,e.updateTemplateExpression=Dt,e.createYield=St,e.updateYield=Tt,e.createSpread=Et,e.updateSpread=Nt,e.createClassExpression=At,e.updateClassExpression=wt,e.createOmittedExpression=Pt,e.createExpressionWithTypeArguments=Ft,e.updateExpressionWithTypeArguments=Ot,e.createAsExpression=It,e.updateAsExpression=Rt,e.createNonNullExpression=Mt,e.updateNonNullExpression=Lt,e.createMetaProperty=Bt,e.updateMetaProperty=Jt,e.createTemplateSpan=zt,e.updateTemplateSpan=Kt,e.createSemicolonClassElement=jt,e.createBlock=Vt,e.updateBlock=Ut,e.createVariableStatement=qt,e.updateVariableStatement=Wt,e.createEmptyStatement=Ht,e.createStatement=Gt,e.updateStatement=Xt,e.createIf=Qt,e.updateIf=Yt,e.createDo=Zt,e.updateDo=$t,e.createWhile=er,e.updateWhile=tr,e.createFor=rr,e.updateFor=nr,e.createForIn=ar,e.updateForIn=ir,e.createForOf=or,e.updateForOf=sr,e.createContinue=cr,e.updateContinue=ur,e.createBreak=_r,e.updateBreak=lr,e.createReturn=dr,e.updateReturn=pr,e.createWith=fr,e.updateWith=mr,e.createSwitch=gr,e.updateSwitch=yr,e.createLabel=vr,e.updateLabel=hr,e.createThrow=br,e.updateThrow=kr,e.createTry=xr,e.updateTry=Cr,e.createDebuggerStatement=Dr,e.createVariableDeclaration=Sr,e.updateVariableDeclaration=Tr,e.createVariableDeclarationList=Er,e.updateVariableDeclarationList=Nr,e.createFunctionDeclaration=Ar,e.updateFunctionDeclaration=wr,e.createClassDeclaration=Pr,e.updateClassDeclaration=Fr,e.createInterfaceDeclaration=Or,e.updateInterfaceDeclaration=Ir,e.createTypeAliasDeclaration=Rr,e.updateTypeAliasDeclaration=Mr,e.createEnumDeclaration=Lr,e.updateEnumDeclaration=Br,e.createModuleDeclaration=Jr,e.updateModuleDeclaration=zr,e.createModuleBlock=Kr,e.updateModuleBlock=jr,e.createCaseBlock=Vr,e.updateCaseBlock=Ur,e.createNamespaceExportDeclaration=qr,e.updateNamespaceExportDeclaration=Wr,e.createImportEqualsDeclaration=Hr,e.updateImportEqualsDeclaration=Gr,e.createImportDeclaration=Xr,e.updateImportDeclaration=Qr,e.createImportClause=Yr,e.updateImportClause=Zr,e.createNamespaceImport=$r,e.updateNamespaceImport=en,e.createNamedImports=tn,e.updateNamedImports=rn,e.createImportSpecifier=nn,e.updateImportSpecifier=an,e.createExportAssignment=on,e.updateExportAssignment=sn,e.createExportDeclaration=cn,e.updateExportDeclaration=un,e.createNamedExports=_n,e.updateNamedExports=ln,e.createExportSpecifier=dn,e.updateExportSpecifier=pn,e.createExternalModuleReference=fn,e.updateExternalModuleReference=mn,e.createJsxElement=gn,e.updateJsxElement=yn,e.createJsxSelfClosingElement=vn,e.updateJsxSelfClosingElement=hn,e.createJsxOpeningElement=bn,e.updateJsxOpeningElement=kn,e.createJsxClosingElement=xn,e.updateJsxClosingElement=Cn,e.createJsxAttribute=Dn,e.updateJsxAttribute=Sn,e.createJsxAttributes=Tn,e.updateJsxAttributes=En,e.createJsxSpreadAttribute=Nn,e.updateJsxSpreadAttribute=An,e.createJsxExpression=wn,e.updateJsxExpression=Pn,e.createCaseClause=Fn,e.updateCaseClause=On,e.createDefaultClause=In,e.updateDefaultClause=Rn,e.createHeritageClause=Mn,e.updateHeritageClause=Ln,e.createCatchClause=Bn,e.updateCatchClause=Jn,e.createPropertyAssignment=zn,e.updatePropertyAssignment=Kn,e.createShorthandPropertyAssignment=jn,e.updateShorthandPropertyAssignment=Vn,e.createSpreadAssignment=Un,e.updateSpreadAssignment=qn,e.createEnumMember=Wn,e.updateEnumMember=Hn,e.updateSourceFileNode=Gn,e.getMutableClone=Xn,e.createNotEmittedStatement=Qn,e.createEndOfDeclarationMarker=Yn,e.createMergeDeclarationMarker=Zn,e.createPartiallyEmittedExpression=$n,e.updatePartiallyEmittedExpression=ea,e.createCommaList=ra,e.updateCommaList=na,e.createBundle=aa,e.updateBundle=ia,e.createImmediatelyInvokedFunctionExpression=oa,e.createComma=sa,e.createLessThan=ca,e.createAssignment=ua,e.createStrictEquality=_a,e.createStrictInequality=la,e.createAdd=da,e.createSubtract=pa,e.createPostfixIncrement=fa,e.createLogicalAnd=ma,e.createLogicalOr=ga,e.createLogicalNot=ya,e.createVoidZero=va,e.createExportDefault=ha,e.createExternalModuleExport=ba,e.disposeEmitNodes=Sa,e.getOrCreateEmitNode=Ta,e.setTextRange=Ea,e.getEmitFlags=Na,e.setEmitFlags=Aa,e.getSourceMapRange=wa,e.setSourceMapRange=Pa;var ti;e.createSourceMapSource=Fa,e.getTokenSourceMapRange=Oa,e.setTokenSourceMapRange=Ia,e.getCommentRange=Ra,e.setCommentRange=Ma,e.getSyntheticLeadingComments=La,e.setSyntheticLeadingComments=Ba,e.addSyntheticLeadingComment=Ja,e.getSyntheticTrailingComments=za,e.setSyntheticTrailingComments=Ka,e.addSyntheticTrailingComment=ja,e.getConstantValue=Va,e.setConstantValue=Ua,e.addEmitHelper=qa,e.addEmitHelpers=Wa,e.removeEmitHelper=Ha,e.getEmitHelpers=Ga,e.moveEmitHelpers=Xa,e.compareEmitHelpers=Qa,e.setOriginalNode=Ya}(ts||(ts={})),function(e){function t(t,r){return"undefined"===r?e.createStrictEquality(t,e.createVoidZero()):e.createStrictEquality(e.createTypeOf(t),e.createLiteral(r))}function r(t,r,n){if(e.isComputedPropertyName(r))return e.setTextRange(e.createElementAccess(t,r.expression),n);var a=e.setTextRange(e.isIdentifier(r)?e.createPropertyAccess(t,r):e.createElementAccess(t,r),r);return e.getOrCreateEmitNode(a).flags|=64,a}function n(t,r,n,a){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"call"),void 0,[r].concat(n)),a)}function a(t,r,n,a){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"apply"),void 0,[r,n]),a)}function i(t,r){var n=[];return void 0!==r&&n.push("number"==typeof r?e.createLiteral(r):r),e.createCall(e.createPropertyAccess(t,"slice"),void 0,n)}function o(t,r){return e.createCall(e.createPropertyAccess(t,"concat"),void 0,r)}function s(t,r,n){return e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Math"),"pow"),void 0,[t,r]),n)}function c(t,r){var n=e.createIdentifier(t||"React");return n.flags&=-9,n.parent=e.getParseTreeNode(r),n}function u(t,r){if(e.isQualifiedName(t)){var n=u(t.left,r),a=e.createIdentifier(t.right.text);return a.text=t.right.text,e.createPropertyAccess(n,a)}return c(t.text,r)}function _(t,r,n){return t?u(t,n):e.createPropertyAccess(c(r,n),"createElement")}function l(t,r,n,a,i,o,s){var c=[n];if(a&&c.push(a),i&&i.length>0)if(a||c.push(e.createNull()),i.length>1)for(var u=0,l=i;u<l.length;u++){var d=l[u];d.startsOnNewLine=!0,c.push(d)}else c.push(i[0]);return e.setTextRange(e.createCall(_(t,r,o),void 0,c),s)}function d(t){return e.setEmitFlags(e.createIdentifier(t),4098)}function p(t,r,n){return t.requestEmitHelper(ze),e.setTextRange(e.createCall(d("__values"),void 0,[r]),n)}function f(t,r,n,a){return t.requestEmitHelper(Ke),e.setTextRange(e.createCall(d("__read"),void 0,void 0!==n?[r,e.createLiteral(n)]:[r]),a)}function m(t,r,n){return t.requestEmitHelper(Ke),t.requestEmitHelper(je),e.setTextRange(e.createCall(d("__spread"),void 0,r),n)}function g(t,r){if(e.isVariableDeclarationList(t)){var n=e.firstOrUndefined(t.declarations),a=e.updateVariableDeclaration(n,n.name,void 0,r);return e.setTextRange(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[a])),t)}var i=e.setTextRange(e.createAssignment(t,r),t);return e.setTextRange(e.createStatement(i),t)}function y(t,r){return e.isBlock(t)?e.updateBlock(t,e.setTextRange(e.createNodeArray([r].concat(t.statements)),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)}function v(t,r,n){if(!r)return t;var a=e.updateLabel(r,r.label,222===r.statement.kind?v(t,r.statement):t);return n&&n(r),a}function h(e,t){var r=pe(e);switch(r.kind){case 71:return t;case 99:case 8:case 9:return!1;case 177:var n=r.elements;return 0!==n.length;case 178:return r.properties.length>0;default:return!0}}function b(t,r,n,a){var i,o,s=de(t,7);if(e.isSuperProperty(s))i=e.createThis(),o=s;else if(97===s.kind)i=e.createThis(),o=n<2?e.setTextRange(e.createIdentifier("_super"),s):s;else if(4096&e.getEmitFlags(s))i=e.createVoidZero(),o=ee(s);else switch(s.kind){case 179:h(s.expression,a)?(i=e.createTempVariable(r),o=e.createPropertyAccess(e.setTextRange(e.createAssignment(i,s.expression),s.expression),s.name),e.setTextRange(o,s)):(i=s.expression,o=s);break;case 180:h(s.expression,a)?(i=e.createTempVariable(r),o=e.createElementAccess(e.setTextRange(e.createAssignment(i,s.expression),s.expression),s.argumentExpression),e.setTextRange(o,s)):(i=s.expression,o=s);break;default:i=e.createVoidZero(),o=ee(t)}return{target:o,thisArg:i}}function k(t){return t.length>10?e.createCommaList(t):e.reduceLeft(t,e.createComma)}function x(t){if(e.isQualifiedName(t)){var r=x(t.left),n=e.getMutableClone(t.right);return e.setTextRange(e.createPropertyAccess(r,n),t)}return e.getMutableClone(t)}function C(t){return e.isIdentifier(t)?e.createLiteral(t):e.isComputedPropertyName(t)?e.getMutableClone(t.expression):e.getMutableClone(t)}function D(e,t,r){switch(t.kind){case 153:case 154:return S(e.properties,t,r,e.multiLine);case 261:return T(t,r);case 262:return E(t,r);case 151:return N(t,r)}}function S(t,r,n,a){var i=e.getAllAccessorDeclarations(t,r),o=i.firstAccessor,s=i.getAccessor,c=i.setAccessor;if(r===o){var u=[];if(s){var _=e.createFunctionExpression(s.modifiers,void 0,void 0,void 0,s.parameters,void 0,s.body);e.setTextRange(_,s),e.setOriginalNode(_,s);var l=e.createPropertyAssignment("get",_);u.push(l)}if(c){var d=e.createFunctionExpression(c.modifiers,void 0,void 0,void 0,c.parameters,void 0,c.body);e.setTextRange(d,c),e.setOriginalNode(d,c);var p=e.createPropertyAssignment("set",d);u.push(p)}u.push(e.createPropertyAssignment("enumerable",e.createTrue())),u.push(e.createPropertyAssignment("configurable",e.createTrue()));var f=e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[n,C(r.name),e.createObjectLiteral(u,a)]),o);return e.aggregateTransformFlags(f)}}function T(t,n){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(r(n,t.name,t.name),t.initializer),t),t))}function E(t,n){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(r(n,t.name,t.name),e.getSynthesizedClone(t.name)),t),t))}function N(t,n){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(r(n,t.name,t.name),e.setOriginalNode(e.setTextRange(e.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t))}function A(e,t,r){return M(e,t,r,49152)}function w(t){return 0!==(32768&e.getEmitFlags(t))}function P(e,t,r){return M(e,t,r,16384)}function F(t){return 0!==(16384&e.getEmitFlags(t))}function O(e,t,r){return M(e,t,r,8192)}function I(t){return 0!==(8192&e.getEmitFlags(t))}function R(e,t,r){return M(e,t,r)}function M(t,r,n,a){var i=e.getNameOfDeclaration(t);if(i&&e.isIdentifier(i)&&!e.isGeneratedIdentifier(i)){var o=e.getMutableClone(i);return a|=e.getEmitFlags(i),n||(a|=48),r||(a|=1536),a&&e.setEmitFlags(o,a),o}return e.getGeneratedNameForNode(t)}function L(t,r,n,a){return t&&e.hasModifier(r,1)?B(t,M(r),n,a):O(r,n,a)}function B(t,r,n,a){var i=e.createPropertyAccess(t,e.nodeIsSynthesized(r)?r:e.getSynthesizedClone(r));e.setTextRange(i,r);var o;return a||(o|=48),n||(o|=1536),o&&e.setEmitFlags(i,o),i}function J(t,r){return e.isBlock(t)?t:e.setTextRange(e.createBlock([e.setTextRange(e.createReturn(t),t)],r),t)}function z(t){e.Debug.assert(!!t.body);var r=e.createFunctionExpression(t.modifiers,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);return e.setOriginalNode(r,t),e.setTextRange(r,t),t.startsOnNewLine&&(r.startsOnNewLine=!0),e.aggregateTransformFlags(r),r}function K(e){return"use strict"===e.expression.text}function j(e,t,r,n){var a=V(e,t,r);return U(e,t,a,n)}function V(t,r,n){e.Debug.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");for(var a=!1,i=0,o=r.length;i<o;){var s=r[i];if(!e.isPrologueDirective(s))break;K(s)&&(a=!0),t.push(s),i++}return n&&!a&&t.push(ve(e.createStatement(e.createLiteral("use strict")))),i}function U(t,r,n,a){for(var i=r.length;n<i;){var o=r[n];if(!(1048576&e.getEmitFlags(o)))break;t.push(a?e.visitNode(o,a,e.isStatement):o),n++}return n}function q(t){var r=e.firstOrUndefined(t);return void 0!==r&&e.isPrologueDirective(r)&&K(r)}function W(t){for(var r=!1,n=0,a=t;n<a.length;n++){var i=a[n];if(!e.isPrologueDirective(i))break;if(K(i)){r=!0;break}}return r?t:e.setTextRange(e.createNodeArray([ve(e.createStatement(e.createLiteral("use strict")))].concat(t)),t)}function H(t,r,n,a){var i=me(r);return 185===i.kind?r:G(t,r,n,a)?e.createParen(r):r}function G(t,r,n,a){var i=e.getOperatorPrecedence(194,t),o=e.getOperatorAssociativity(194,t),s=me(r),c=e.getExpressionPrecedence(s);switch(e.compareValues(c,i)){case-1:return!(!n&&1===o&&197===r.kind);case 1:return!1;case 0:if(n)return 1===o;if(e.isBinaryExpression(s)&&s.operatorToken.kind===t){if(X(t))return!1;if(37===t){var u=a?Q(a):0;if(e.isLiteralKind(u)&&u===Q(s))return!1}}var _=e.getExpressionAssociativity(s);return 0===_}}function X(e){return 39===e||49===e||48===e||50===e}function Q(t){if(t=me(t),e.isLiteralKind(t.kind))return t.kind;if(194===t.kind&&37===t.operatorToken.kind){if(void 0!==t.cachedLiteralKind)return t.cachedLiteralKind;var r=Q(t.left),n=e.isLiteralKind(r)&&r===Q(t.right)?r:0;return t.cachedLiteralKind=n,n}return 0}function Y(t){var r=e.getOperatorPrecedence(195,55),n=me(t),a=e.getExpressionPrecedence(n);return e.compareValues(a,r)===-1?e.createParen(t):t}function Z(t){return 194===t.kind&&26===t.operatorToken.kind?e.createParen(t):t}function $(t){var r=me(t);switch(r.kind){case 181:return e.createParen(t);case 182:return r.arguments?t:e.createParen(t)}return ee(t)}function ee(t){var r=me(t);return e.isLeftHandSideExpression(r)&&(182!==r.kind||r.arguments)?t:e.setTextRange(e.createParen(t),t)}function te(t){return e.isLeftHandSideExpression(t)?t:e.setTextRange(e.createParen(t),t)}function re(t){return e.isUnaryExpression(t)?t:e.setTextRange(e.createParen(t),t)}function ne(t){for(var r,n=0;n<t.length;n++){var a=ae(t[n]);void 0===r&&a===t[n]||(void 0===r&&(r=t.slice(0,n)),r.push(a))}return void 0!==r?e.setTextRange(e.createNodeArray(r,t.hasTrailingComma),t):t}function ae(t){var r=me(t),n=e.getExpressionPrecedence(r),a=e.getOperatorPrecedence(194,26);return n>a?t:e.setTextRange(e.createParen(t),t)}function ie(t){var r=me(t);if(e.isCallExpression(r)){var n=r.expression,a=me(n).kind;if(186===a||187===a){var i=e.getMutableClone(r);return i.expression=e.setTextRange(e.createParen(n),n),ye(t,i,4)}}else{var o=ue(r).kind;if(178===o||186===o)return e.setTextRange(e.createParen(t),t)}return t}function oe(t){switch(t.kind){case 166:case 167:case 160:case 161:return e.createParenthesizedType(t)}return t}function se(t){return e.createNodeArray(e.sameMap(t,oe))}function ce(t){if(e.some(t)){for(var r=e.createNodeArray(),n=0;n<t.length;++n){var a=t[n];r.push(0===n&&e.isFunctionOrConstructorTypeNode(a)&&a.typeParameters?e.createParenthesizedType(a):a)}return r}}function ue(e){for(;;){switch(e.kind){case 193:e=e.operand;continue;case 194:e=e.left;continue;case 195:e=e.condition;continue;case 181:case 180:case 179:e=e.expression;continue;case 297:e=e.expression;continue}return e}}function _e(t){return e.isBlock(t)||178!==ue(t).kind?t:e.setTextRange(e.createParen(t),t)}function le(e,t){switch(void 0===t&&(t=7),e.kind){case 185:return 0!==(1&t);case 184:case 202:case 203:return 0!==(2&t);case 297:return 0!==(4&t)}return!1}function de(e,t){void 0===t&&(t=7);var r;do r=e,1&t&&(e=pe(e)),2&t&&(e=fe(e)),4&t&&(e=me(e));while(r!==e);return e}function pe(e){for(;185===e.kind;)e=e.expression;return e}function fe(t){for(;e.isAssertionExpression(t)||203===t.kind;)t=t.expression;return t}function me(e){for(;297===e.kind;)e=e.expression;return e}function ge(t,r){switch(t.kind){case 185:return e.updateParen(t,r);case 184:return e.updateTypeAssertion(t,t.type,r);case 202:return e.updateAsExpression(t,r,t.type);case 203:return e.updateNonNullExpression(t,r);case 297:return e.updatePartiallyEmittedExpression(t,r)}}function ye(e,t,r){return void 0===r&&(r=7),
e&&le(e,r)?ge(e,ye(e.expression,t)):t}function ve(e){return e.startsOnNewLine=!0,e}function he(t){var r=e.getOriginalNode(t,e.isSourceFile),n=r&&r.emitNode;return n&&n.externalHelpersModuleName}function be(t,r,n){if(r.importHelpers&&e.isEffectiveExternalModule(t,r)){var a=he(t);if(a)return a;var i=e.getEmitModuleKind(r),o=n&&i!==e.ModuleKind.System&&i!==e.ModuleKind.ES2015;if(!o){var s=e.getEmitHelpers(t);if(s)for(var c=0,u=s;c<u.length;c++){var _=u[c];if(!_.scoped){o=!0;break}}}if(o){var l=e.getOriginalNode(t,e.isSourceFile),d=e.getOrCreateEmitNode(l);return d.externalHelpersModuleName||(d.externalHelpersModuleName=e.createUniqueName(e.externalHelpersModuleNameText))}}}function ke(t,r){var n=e.getNamespaceDeclarationNode(t);if(n&&!e.isDefaultImport(t)){var a=n.name;return e.isGeneratedIdentifier(a)?a:e.createIdentifier(e.getSourceTextOfNodeFromSourceFile(r,n.name))}return 238===t.kind&&t.importClause?e.getGeneratedNameForNode(t):244===t.kind&&t.moduleSpecifier?e.getGeneratedNameForNode(t):void 0}function xe(t,r,n,a,i){var o=e.getExternalModuleName(t);if(9===o.kind)return Se(t,n,a,i)||Ce(o,r)||e.getSynthesizedClone(o)}function Ce(t,r){var n=r.renamedDependencies&&r.renamedDependencies.get(t.text);return n&&e.createLiteral(n)}function De(t,r,n){if(t)return t.moduleName?e.createLiteral(t.moduleName):t.isDeclarationFile||!n.out&&!n.outFile?void 0:e.createLiteral(e.getExternalModuleNameFromPath(r,t.fileName))}function Se(e,t,r,n){return De(r.getExternalModuleFileFromDeclaration(e),t,n)}function Te(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.isSpreadElement(t)?Te(t.expression):void 0}function Ee(t){if(e.isDeclarationBindingElement(t))return t.name;{if(!e.isObjectLiteralElementLike(t))return e.isAssignmentExpression(t,!0)?Ee(t.left):e.isSpreadElement(t)?Ee(t.expression):t;switch(t.kind){case 261:return Ee(t.initializer);case 262:return t.name;case 263:return Ee(t.expression)}}}function Ne(e){switch(e.kind){case 146:case 176:return e.dotDotDotToken;case 198:case 263:return e}}function Ae(t){switch(t.kind){case 176:if(t.propertyName){var r=t.propertyName;return e.isComputedPropertyName(r)&&e.isStringOrNumericLiteral(r.expression)?r.expression:r}break;case 261:if(t.name){var r=t.name;return e.isComputedPropertyName(r)&&e.isStringOrNumericLiteral(r.expression)?r.expression:r}break;case 263:return t.name}var n=Ee(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 we(e){switch(e.kind){case 174:case 175:case 177:return e.elements;case 178:return e.properties}}function Pe(t){if(e.isBindingElement(t)){if(t.dotDotDotToken)return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createSpread(t.name),t),t);var r=Me(t.name);return t.initializer?e.setOriginalNode(e.setTextRange(e.createAssignment(r,t.initializer),t),t):r}return e.Debug.assertNode(t,e.isExpression),t}function Fe(t){if(e.isBindingElement(t)){if(t.dotDotDotToken)return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createSpreadAssignment(t.name),t),t);if(t.propertyName){var r=Me(t.name);return e.setOriginalNode(e.setTextRange(e.createPropertyAssignment(t.propertyName,t.initializer?e.createAssignment(r,t.initializer):r),t),t)}return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createShorthandPropertyAssignment(t.name,t.initializer),t),t)}return e.Debug.assertNode(t,e.isObjectLiteralElementLike),t}function Oe(e){switch(e.kind){case 175:case 177:return Re(e);case 174:case 178:return Ie(e)}}function Ie(t){return e.isObjectBindingPattern(t)?e.setOriginalNode(e.setTextRange(e.createObjectLiteral(e.map(t.elements,Fe)),t),t):(e.Debug.assertNode(t,e.isObjectLiteralExpression),t)}function Re(t){return e.isArrayBindingPattern(t)?e.setOriginalNode(e.setTextRange(e.createArrayLiteral(e.map(t.elements,Pe)),t),t):(e.Debug.assertNode(t,e.isArrayLiteralExpression),t)}function Me(t){return e.isBindingPattern(t)?Oe(t):(e.Debug.assertNode(t,e.isExpression),t)}function Le(t,r,n){for(var a,i=[],o=e.createMultiMap(),s=[],c=e.createMap(),u=!1,_=void 0,l=!1,d=0,p=t.statements;d<p.length;d++){var f=p[d];switch(f.kind){case 238:i.push(f);break;case 237:248===f.moduleReference.kind&&i.push(f);break;case 244:if(f.moduleSpecifier)f.exportClause?i.push(f):(i.push(f),l=!0);else for(var m=0,g=f.exportClause.elements;m<g.length;m++){var y=g[m];if(!c.get(y.name.text)){var v=y.propertyName||y.name;o.add(v.text,y);var h=r.getReferencedImportDeclaration(v)||r.getReferencedValueDeclaration(v);h&&Je(s,e.getOriginalNodeId(h),y.name),c.set(y.name.text,!0),a=e.append(a,y.name)}}break;case 243:f.isExportEquals&&!_&&(_=f);break;case 208:if(e.hasModifier(f,1))for(var b=0,k=f.declarationList.declarations;b<k.length;b++){var h=k[b];a=Be(h,c,a)}break;case 228:if(e.hasModifier(f,1))if(e.hasModifier(f,512))u||(Je(s,e.getOriginalNodeId(f),R(f)),u=!0);else{var v=f.name;c.get(v.text)||(Je(s,e.getOriginalNodeId(f),v),c.set(v.text,!0),a=e.append(a,v))}break;case 229:if(e.hasModifier(f,1))if(e.hasModifier(f,512))u||(Je(s,e.getOriginalNodeId(f),R(f)),u=!0);else{var v=f.name;c.get(v.text)||(Je(s,e.getOriginalNodeId(f),v),c.set(v.text,!0),a=e.append(a,v))}}}var x=be(t,n,l),C=x&&e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,e.createNamespaceImport(x)),e.createLiteral(e.externalHelpersModuleNameText));return C&&i.unshift(C),{externalImports:i,exportSpecifiers:o,exportEquals:_,hasExportStarsToExportValues:l,exportedBindings:s,exportedNames:a,externalHelpersImportDeclaration:C}}function Be(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=Be(o,r,n))}else e.isGeneratedIdentifier(t.name)||r.get(t.name.text)||(r.set(t.name.text,!0),n=e.append(n,t.name));return n}function Je(e,t,r){var n=e[t];return n?n.push(r):e[t]=n=[r],n}e.nullTransformationContext={enableEmitNotification:e.noop,enableSubstitution:e.noop,endLexicalEnvironment:function(){},getCompilerOptions:e.notImplemented,getEmitHost:e.notImplemented,getEmitResolver:e.notImplemented,hoistFunctionDeclaration:e.noop,hoistVariableDeclaration:e.noop,isEmitNotificationEnabled:e.notImplemented,isSubstitutionEnabled:e.notImplemented,onEmitNode:e.noop,onSubstituteNode:e.notImplemented,readEmitHelpers:e.notImplemented,requestEmitHelper:e.noop,resumeLexicalEnvironment:e.noop,startLexicalEnvironment:e.noop,suspendLexicalEnvironment:e.noop},e.createTypeCheck=t,e.createMemberAccessForPropertyName=r,e.createFunctionCall=n,e.createFunctionApply=a,e.createArraySlice=i,e.createArrayConcat=o,e.createMathPow=s,e.createExpressionForJsxElement=l,e.getHelperName=d;var ze={name:"typescript:values",scoped:!1,text:'\n            var __values = (this && this.__values) || function (o) {\n                var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;\n                if (m) return m.call(o);\n                return {\n                    next: function () {\n                        if (o && i >= o.length) o = void 0;\n                        return { value: o && o[i++], done: !o };\n                    }\n                };\n            };\n        '};e.createValuesHelper=p;var Ke={name:"typescript:read",scoped:!1,text:'\n            var __read = (this && this.__read) || function (o, n) {\n                var m = typeof Symbol === "function" && o[Symbol.iterator];\n                if (!m) return o;\n                var i = m.call(o), r, ar = [], e;\n                try {\n                    while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n                }\n                catch (error) { e = { error: error }; }\n                finally {\n                    try {\n                        if (r && !r.done && (m = i["return"])) m.call(i);\n                    }\n                    finally { if (e) throw e.error; }\n                }\n                return ar;\n            };\n        '};e.createReadHelper=f;var je={name:"typescript:spread",scoped:!1,text:"\n            var __spread = (this && this.__spread) || function () {\n                for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n                return ar;\n            };"};e.createSpreadHelper=m,e.createForOfBindingStatement=g,e.insertLeadingStatement=y,e.restoreEnclosingLabel=v,e.createCallBinding=b,e.inlineExpressions=k,e.createExpressionFromEntityName=x,e.createExpressionForPropertyName=C,e.createExpressionForObjectLiteralElementLike=D,e.getInternalName=A,e.isInternalName=w,e.getLocalName=P,e.isLocalName=F,e.getExportName=O,e.isExportName=I,e.getDeclarationName=R,e.getExternalModuleOrNamespaceExportName=L,e.getNamespaceMemberName=B,e.convertToFunctionBody=J,e.convertFunctionDeclarationToExpression=z,e.addPrologue=j,e.addStandardPrologue=V,e.addCustomPrologue=U,e.startsWithUseStrict=q,e.ensureUseStrict=W,e.parenthesizeBinaryOperand=H,e.parenthesizeForConditionalHead=Y,e.parenthesizeSubexpressionOfConditionalExpression=Z,e.parenthesizeForNew=$,e.parenthesizeForAccess=ee,e.parenthesizePostfixOperand=te,e.parenthesizePrefixOperand=re,e.parenthesizeListElements=ne,e.parenthesizeExpressionForList=ae,e.parenthesizeExpressionForExpressionStatement=ie,e.parenthesizeElementTypeMember=oe,e.parenthesizeElementTypeMembers=se,e.parenthesizeTypeParameters=ce,e.parenthesizeConciseBody=_e;var Ve;!function(e){e[e.Parentheses=1]="Parentheses",e[e.Assertions=2]="Assertions",e[e.PartiallyEmittedExpressions=4]="PartiallyEmittedExpressions",e[e.All=7]="All"}(Ve=e.OuterExpressionKinds||(e.OuterExpressionKinds={})),e.isOuterExpression=le,e.skipOuterExpressions=de,e.skipParentheses=pe,e.skipAssertions=fe,e.skipPartiallyEmittedExpressions=me,e.recreateOuterExpressions=ye,e.startOnNewLine=ve,e.getExternalHelpersModuleName=he,e.getOrCreateExternalHelpersModuleNameIfNeeded=be,e.getLocalNameForExternalImport=ke,e.getExternalModuleNameLiteral=xe,e.tryGetModuleNameFromFile=De,e.getInitializerOfBindingOrAssignmentElement=Te,e.getTargetOfBindingOrAssignmentElement=Ee,e.getRestIndicatorOfBindingOrAssignmentElement=Ne,e.getPropertyNameOfBindingOrAssignmentElement=Ae,e.getElementsOfBindingOrAssignmentPattern=we,e.convertToArrayAssignmentElement=Pe,e.convertToObjectAssignmentElement=Fe,e.convertToAssignmentPattern=Oe,e.convertToObjectAssignmentPattern=Ie,e.convertToArrayAssignmentPattern=Re,e.convertToAssignmentElementTarget=Me,e.collectExternalModuleInfo=Le}(ts||(ts={}));var ts;!function(e){function t(t,r,n){return 265===t?new(m||(m=e.objectAllocator.getSourceFileConstructor()))(t,r,n):71===t?new(f||(f=e.objectAllocator.getIdentifierConstructor()))(t,r,n):e.isNodeKind(t)?new(d||(d=e.objectAllocator.getNodeConstructor()))(t,r,n):new(p||(p=e.objectAllocator.getTokenConstructor()))(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 143:return r(t,e.left)||r(t,e.right);case 145:return r(t,e.name)||r(t,e.constraint)||r(t,e["default"])||r(t,e.expression);case 262: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 263:return r(t,e.expression);case 146:case 149:case 148:case 261:case 226:case 176: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 160:case 161:case 155:case 156:case 157:return o(s,e.decorators)||o(s,e.modifiers)||o(s,e.typeParameters)||o(s,e.parameters)||r(t,e.type);case 151:case 150:case 152:case 153:case 154:case 186:case 228:case 187: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 159:return r(t,e.typeName)||o(s,e.typeArguments);case 158:return r(t,e.parameterName)||r(t,e.type);case 162:return r(t,e.exprName);case 163:return o(s,e.members);case 164:return r(t,e.elementType);case 165:return o(s,e.elementTypes);case 166:case 167:return o(s,e.types);case 168:case 170:return r(t,e.type);case 171:return r(t,e.objectType)||r(t,e.indexType);case 172:return r(t,e.readonlyToken)||r(t,e.typeParameter)||r(t,e.questionToken)||r(t,e.type);case 173:return r(t,e.literal);case 174:case 175:return o(s,e.elements);case 177:return o(s,e.elements);case 178:return o(s,e.properties);case 179:return r(t,e.expression)||r(t,e.name);case 180:return r(t,e.expression)||r(t,e.argumentExpression);case 181:case 182:return r(t,e.expression)||o(s,e.typeArguments)||o(s,e.arguments);case 183:return r(t,e.tag)||r(t,e.template);case 184:return r(t,e.type)||r(t,e.expression);case 185:return r(t,e.expression);case 188:return r(t,e.expression);case 189:return r(t,e.expression);case 190:return r(t,e.expression);case 192:return r(t,e.operand);case 197:return r(t,e.asteriskToken)||r(t,e.expression);case 191:return r(t,e.expression);case 193:return r(t,e.operand);case 194:return r(t,e.left)||r(t,e.operatorToken)||r(t,e.right);case 202:return r(t,e.expression)||r(t,e.type);case 203:return r(t,e.expression);case 204:return r(t,e.name);case 195:return r(t,e.condition)||r(t,e.questionToken)||r(t,e.whenTrue)||r(t,e.colonToken)||r(t,e.whenFalse);case 198:return r(t,e.expression);case 207:case 234:return o(s,e.statements);case 265:return o(s,e.statements)||r(t,e.endOfFileToken);case 208:return o(s,e.decorators)||o(s,e.modifiers)||r(t,e.declarationList);case 227:return o(s,e.declarations);case 210:return r(t,e.expression);case 211:return r(t,e.expression)||r(t,e.thenStatement)||r(t,e.elseStatement);case 212:return r(t,e.statement)||r(t,e.expression);case 213:return r(t,e.expression)||r(t,e.statement);case 214:return r(t,e.initializer)||r(t,e.condition)||r(t,e.incrementor)||r(t,e.statement);case 215:return r(t,e.initializer)||r(t,e.expression)||r(t,e.statement);case 216:return r(t,e.awaitModifier)||r(t,e.initializer)||r(t,e.expression)||r(t,e.statement);case 217:case 218:return r(t,e.label);case 219:return r(t,e.expression);case 220:return r(t,e.expression)||r(t,e.statement);case 221:return r(t,e.expression)||r(t,e.caseBlock);case 235:return o(s,e.clauses);case 257:return r(t,e.expression)||o(s,e.statements);case 258:return o(s,e.statements);case 222:return r(t,e.label)||r(t,e.statement);case 223:return r(t,e.expression);case 224:return r(t,e.tryBlock)||r(t,e.catchClause)||r(t,e.finallyBlock);case 260:return r(t,e.variableDeclaration)||r(t,e.block);case 147:return r(t,e.expression);case 229:case 199: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 230: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 231:return o(s,e.decorators)||o(s,e.modifiers)||r(t,e.name)||o(s,e.typeParameters)||r(t,e.type);case 232:return o(s,e.decorators)||o(s,e.modifiers)||r(t,e.name)||o(s,e.members);case 264:return r(t,e.name)||r(t,e.initializer);case 233:return o(s,e.decorators)||o(s,e.modifiers)||r(t,e.name)||r(t,e.body);case 237:return o(s,e.decorators)||o(s,e.modifiers)||r(t,e.name)||r(t,e.moduleReference);case 238:return o(s,e.decorators)||o(s,e.modifiers)||r(t,e.importClause)||r(t,e.moduleSpecifier);case 239:return r(t,e.name)||r(t,e.namedBindings);case 236:return r(t,e.name);case 240:return r(t,e.name);case 241:case 245:return o(s,e.elements);case 244:return o(s,e.decorators)||o(s,e.modifiers)||r(t,e.exportClause)||r(t,e.moduleSpecifier);case 242:case 246:return r(t,e.propertyName)||r(t,e.name);case 243:return o(s,e.decorators)||o(s,e.modifiers)||r(t,e.expression);case 196:return r(t,e.head)||o(s,e.templateSpans);case 205:return r(t,e.expression)||r(t,e.literal);case 144:return r(t,e.expression);case 259:return o(s,e.types);case 201:return r(t,e.expression)||o(s,e.typeArguments);case 248:return r(t,e.expression);case 247:return o(s,e.decorators);case 298:return o(s,e.elements);case 249:return r(t,e.openingElement)||o(s,e.children)||r(t,e.closingElement);case 250:case 251:return r(t,e.tagName)||r(t,e.attributes);case 254:return o(s,e.properties);case 253:return r(t,e.name)||r(t,e.initializer);case 255:return r(t,e.expression);case 256:return r(t,e.dotDotDotToken)||r(t,e.expression);case 252:return r(t,e.tagName);case 267:return r(t,e.type);case 271:return o(s,e.types);case 272:return o(s,e.types);case 270:return r(t,e.elementType);case 274:return r(t,e.type);case 273:return r(t,e.type);case 275:return r(t,e.literal);case 277:return r(t,e.name)||o(s,e.typeArguments);case 278:return r(t,e.type);case 279:return o(s,e.parameters)||r(t,e.type);case 280:return r(t,e.type);case 281:return r(t,e.type);case 282:return r(t,e.type);case 276:return r(t,e.name)||r(t,e.type);case 283:return o(s,e.tags);case 287:return r(t,e.preParameterName)||r(t,e.typeExpression)||r(t,e.postParameterName);case 288:return r(t,e.typeExpression);case 289:return r(t,e.typeExpression);case 285:return r(t,e.typeExpression);case 290:return o(s,e.typeParameters);case 291:return r(t,e.typeExpression)||r(t,e.fullName)||r(t,e.name)||r(t,e.jsDocTypeLiteral);case 293:return o(s,e.jsDocPropertyTags);case 292:return r(t,e.typeExpression)||r(t,e.name);case 297:return r(t,e.expression);case 294: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){var a=y.updateSourceFile(e,t,r,n);return a.flags|=524288&e.flags,a}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),L();var r=He(!0),n=1===M()&&!ri.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){Ya=e.objectAllocator.getNodeConstructor(),Za=e.objectAllocator.getTokenConstructor(),$a=e.objectAllocator.getIdentifierConstructor(),ei=e.objectAllocator.getSourceFileConstructor(),ii=t,ni=n,ri=[],ui=0,si=e.createMap(),ci=0,oi=0,_i=1===i||2===i?65536:0,pi=!1,li.setText(ii),li.setOnError(O),li.setScriptTarget(r),li.setLanguageVariant(a(i))}function s(){li.setText(""),li.setOnError(void 0),ri=void 0,ti=void 0,si=void 0,ni=void 0,ii=void 0}function c(t,r,n,a){return ti=l(t,r,a),ti.flags=_i,L(),Xa(ti),ti.statements=we(0,Kn),e.Debug.assert(1===M()),ti.endOfFileToken=u(Z()),Qa(ti),ti.nodeCount=oi,ti.identifierCount=ci,ti.identifiers=si,ti.parseDiagnostics=ri,n&&_(ti),ti}function u(t){var r=e.getJSDocCommentRanges(t,ti.text);if(r)for(var n=0,a=r;n<a.length;n++){var i=a[n],o=gi.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 ei(265,0,ii.length);return oi++,i.text=ii,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?_i|=t:_i&=~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&_i;if(r){d(!1,r);var n=t();return d(!0,r),n}return t()}function v(e,t){var r=e&~_i;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 C(e){return v(16384,e)}function D(e){return y(16384,e)}function S(e){return v(20480,e)}function T(e){return 0!==(_i&e)}function E(){return T(4096)}function N(){return T(2048)}function A(){return T(8192)}function w(){return T(16384)}function P(e,t){var r=li.getTokenPos(),n=li.getTextPos()-r;F(r,n,e,t)}function F(t,r,n,a){var i=e.lastOrUndefined(ri);i&&t===i.start||ri.push(e.createFileDiagnostic(ti,t,r,n,a)),pi=!0}function O(e,t){var r=li.getTextPos();F(r,t||0,e)}function I(){return li.getStartPos()}function R(){return li.getStartPos()}function M(){return ai}function L(){return ai=li.scan()}function B(){return ai=li.reScanGreaterToken()}function J(){return ai=li.reScanSlashToken()}function z(){return ai=li.reScanTemplateToken()}function K(){return ai=li.scanJsxIdentifier()}function j(){return ai=li.scanJsxToken()}function V(){return ai=li.scanJsxAttributeValue()}function U(t,r){var n=ai,a=ri.length,i=pi,o=_i,s=r?li.lookAhead(t):li.tryScan(t);return e.Debug.assert(o===_i),s&&!r||(ai=n,ri.length=a,pi=i),s}function q(e){return U(e,!0)}function W(e){return U(e,!1)}function H(){return 71===M()||(116!==M()||!E())&&((121!==M()||!w())&&M()>107)}function G(t,r,n){return void 0===n&&(n=!0),M()===t?(n&&L(),!0):(r?P(r):P(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function X(e){return M()===e&&(L(),!0)}function Q(e){if(M()===e)return Z()}function Y(e,t,r,n){return Q(e)||ae(e,t,r,n)}function Z(){var e=te(M());return L(),ne(e)}function $(){return 25===M()||(18===M()||1===M()||li.hasPrecedingLineBreak())}function ee(){return $()?(25===M()&&L(),!0):G(25)}function te(t,r){return oi++,r>=0||(r=li.getStartPos()),e.isNodeKind(t)?new Ya(t,r,r):71===t?new $a(t,r,r):new Za(t,r,r)}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?li.getStartPos():t,_i&&(e.flags|=_i),pi&&(pi=!1,e.flags|=32768),e}function ae(e,t,r,n){t?F(li.getStartPos(),0,r,n):P(r,n);var a=te(e,li.getStartPos());return a.text="",ne(a)}function ie(t){t=e.escapeIdentifier(t);var r=si.get(t);return void 0===r&&si.set(t,r=t),r}function oe(t,r){if(ci++,t){var n=te(71);return 71!==M()&&(n.originalKeywordKind=M()),n.text=ie(li.getTokenValue()),L(),ne(n)}return ae(71,!1,r||e.Diagnostics.Identifier_expected)}function se(e){return oe(H(),e)}function ce(){return oe(e.tokenIsIdentifierOrKeyword(M()))}function ue(){return e.tokenIsIdentifierOrKeyword(M())||9===M()||8===M()}function _e(e){return 9===M()||8===M()?Ye(!0):e&&21===M()?fe():ce()}function le(){return _e(!0)}function de(){return _e(!1)}function pe(){return 9===M()||8===M()||e.tokenIsIdentifierOrKeyword(M())}function fe(){var e=te(144);return G(21),e.expression=h(er),G(22),ne(e)}function me(e){return M()===e&&W(ye)}function ge(){return L(),!li.hasPrecedingLineBreak()&&he()}function ye(){return 76===M()?83===L():84===M()?(L(),79===M()?q(be):39!==M()&&118!==M()&&17!==M()&&he()):79===M()?be():115===M()?(L(),he()):ge()}function ve(){return e.isModifierKind(M())&&W(ye)}function he(){return 21===M()||17===M()||39===M()||24===M()||ue()}function be(){return L(),75===M()||89===M()||109===M()||117===M()&&q(On)||120===M()&&q(In)}function ke(t,r){var n=Fe(t);if(n)return!0;switch(t){case 0:case 1:case 3:return!(25===M()&&r)&&Bn();case 2:return 73===M()||79===M();case 4:return q(bt);case 5:return q(ua)||25===M()&&!r;case 6:return 21===M()||ue();case 12:return 21===M()||39===M()||24===M()||ue();case 17:return ue();case 9:return 21===M()||24===M()||ue();case 7:return 17===M()?q(xe):r?H()&&!Se():Yt()&&!Se();case 8:return Xn();case 10:return 26===M()||24===M()||Xn();case 18:return H();case 11:case 15:return 26===M()||24===M()||Zt();case 16:return ct();case 19:case 20:return 26===M()||Rt();case 21:return xa();case 22:return e.tokenIsIdentifierOrKeyword(M());case 13:return e.tokenIsIdentifierOrKeyword(M())||17===M();case 14:return!0;case 23:case 24:case 26:return gi.isJSDocType();case 25:return pe()}e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function xe(){if(e.Debug.assert(17===M()),18===L()){var t=L();return 26===t||17===t||85===t||108===t}return!0}function Ce(){return L(),H()}function De(){return L(),e.tokenIsIdentifierOrKeyword(M())}function Se(){return(108===M()||85===M())&&q(Te)}function Te(){return L(),Zt()}function Ee(e){if(1===M())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 22:return 18===M();case 3:return 18===M()||73===M()||79===M();case 7:return 17===M()||85===M()||108===M();case 8:return Ne();case 18:return 29===M()||19===M()||17===M()||85===M()||108===M();case 11:return 20===M()||25===M();case 15:case 20:case 10:return 22===M();case 16:case 17:return 20===M()||22===M();case 19:return 26!==M();case 21:return 17===M()||18===M();case 13:return 29===M()||41===M();case 14:return 27===M()&&q(Ia);case 23:return 20===M()||56===M()||18===M();case 24:return 29===M()||18===M();case 26:return 22===M()||18===M();case 25:return 18===M()}}function Ne(){return!!$()||(!!yr(M())||36===M())}function Ae(){for(var e=0;e<27;e++)if(ui&1<<e&&(ke(e,!0)||Ee(e)))return!0;return!1}function we(e,t){var r=ui;ui|=1<<e;for(var n=re();!Ee(e);)if(ke(e,!1)){var a=Pe(e,t);n.push(a)}else if(je(e))break;return n.end=R(),ui=r,n}function Pe(e,t){var r=Fe(e);return r?Oe(r):t()}function Fe(t){if(!pi&&ni){var r=ni.currentNode(li.getStartPos());if(!e.nodeIsMissing(r)&&!r.intersectsChange&&!e.containsParseError(r)){var n=96256&r.flags;if(n===_i&&Ie(r,t))return r}}}function Oe(e){return li.setTextPos(e.end),L(),e}function Ie(e,t){switch(t){case 5:return Re(e);case 2:return Me(e);case 0:case 1:case 3:return Le(e);case 6:return Be(e);case 4:return Je(e);case 8:return ze(e);case 16:return Ke(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 152:case 157:case 153:case 154:case 149:case 206:return!0;case 151:var t=e,r=71===t.name.kind&&123===t.name.originalKeywordKind;return!r}return!1}function Me(e){if(e)switch(e.kind){case 257:case 258:return!0}return!1}function Le(e){if(e)switch(e.kind){case 228:case 208:case 207:case 211:case 210:case 223:case 219:case 221:case 218:case 217:case 215:case 216:case 214:case 213:case 220:case 209:case 224:case 222:case 212:case 225:case 238:case 237:case 244:case 243:case 233:case 229:case 230:case 232:case 231:return!0}return!1}function Be(e){return 264===e.kind}function Je(e){if(e)switch(e.kind){case 156:case 150:case 157:case 148:case 155:return!0}return!1}function ze(e){if(226!==e.kind)return!1;var t=e;return void 0===t.initializer}function Ke(e){if(146!==e.kind)return!1;var t=e;return void 0===t.initializer}function je(e){return P(Ve(e)),!!Ae()||(L(),!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=ui;ui|=1<<e;for(var a=re(),i=-1;;)if(ke(e,!1)){if(a.push(Pe(e,t)),i=li.getTokenPos(),X(26))continue;if(i=-1,Ee(e))break;G(26),r&&25===M()&&!li.hasPrecedingLineBreak()&&L()}else{if(Ee(e))break;if(je(e))break}return i>=0&&(a.hasTrailingComma=!0),a.end=R(),ui=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(23);){var n=te(143,r.pos);n.left=r,n.right=Ge(e),r=ne(n)}return r}function Ge(t){if(li.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(M())){var r=q(Fn);if(r)return ae(71,!0,e.Diagnostics.Identifier_expected)}return t?ce():se()}function Xe(){var t=te(196);t.head=Ze(),e.Debug.assert(14===t.head.kind,"Template head has wrong token kind");var r=re();do r.push(Qe());while(15===e.lastOrUndefined(r).literal.kind);return r.end=R(),t.templateSpans=r,ne(t)}function Qe(){var t=te(205);t.expression=h(er);var r;return 18===M()?(z(),r=$e()):r=Y(16,!1,e.Diagnostics._0_expected,e.tokenToString(18)),t.literal=r,ne(t)}function Ye(e){return et(M(),e)}function Ze(){var t=et(M(),!1);return e.Debug.assert(14===t.kind,"Template head has wrong token kind"),t}function $e(){var t=et(M(),!1);return e.Debug.assert(15===t.kind||16===t.kind,"Template fragment has wrong token kind"),t}function et(e,t){var r=te(e),n=li.getTokenValue();return r.text=t?ie(n):n,li.hasExtendedUnicodeEscape()&&(r.hasExtendedUnicodeEscape=!0),li.isUnterminated()&&(r.isUnterminated=!0),8===r.kind&&(r.numericLiteralFlags=li.getNumericLiteralFlags()),L(),ne(r),r}function tt(){var t=te(159);return t.typeName=He(!1,e.Diagnostics.Type_expected),li.hasPrecedingLineBreak()||27!==M()||(t.typeArguments=We(19,Gt,27,29)),ne(t)}function rt(e){L();var t=te(158,e.pos);return t.parameterName=e,t.type=Gt(),ne(t)}function nt(){var e=te(169);return L(),ne(e)}function at(){var e=te(162);return G(103),e.exprName=He(!0),ne(e)}function it(){var e=te(145);return e.name=se(),X(85)&&(Rt()||!Zt()?e.constraint=Gt():e.expression=Ar()),X(58)&&(e["default"]=Gt()),ne(e)}function ot(){if(27===M())return We(18,it,27,29)}function st(){if(X(56))return Gt()}function ct(){return 24===M()||Xn()||e.isModifierKind(M())||57===M()||99===M()}function ut(){var t=te(146);return 99===M()?(t.name=oe(!0),t.type=st(),ne(t)):(t.decorators=_a(),t.modifiers=la(),t.dotDotDotToken=Q(24),t.name=Qn(),0===e.getFullWidth(t.name)&&!e.hasModifiers(t)&&e.isModifierKind(M())&&L(),t.questionToken=Q(55),t.type=st(),t.initializer=_t(!0),u(ne(t)))}function _t(e){return e?lt():oa()}function lt(){return tr(!0)}function dt(e,t,r,n,a){var i=36===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(19)){var n=E(),a=w();f(e),g(t);var i=Ue(16,ut);if(f(n),g(a),!G(20)&&r)return;return i}return r?void 0:qe()}function ft(){X(26)||ee()}function mt(e){var t=te(e);return 156===e&&G(94),dt(56,!1,!1,!1,t),ft(),u(ne(t))}function gt(){return 21===M()&&q(yt)}function yt(){if(L(),24===M()||22===M())return!0;if(e.isModifierKind(M())){if(L(),H())return!0}else{if(!H())return!1;L()}return 56===M()||26===M()||55===M()&&(L(),56===M()||26===M()||22===M())}function vt(e,t,r){var n=te(157,e);return n.decorators=t,n.modifiers=r,n.parameters=We(16,ut,21,22),n.type=Qt(),ft(),ne(n)}function ht(e,t){var r=le(),n=Q(55);if(19===M()||27===M()){var a=te(150,e);return a.modifiers=t,a.name=r,a.questionToken=n,
dt(56,!1,!1,!1,a),ft(),u(ne(a))}var i=te(148,e);return i.modifiers=t,i.name=r,i.questionToken=n,i.type=Qt(),58===M()&&(i.initializer=oa()),ft(),u(ne(i))}function bt(){if(19===M()||27===M())return!0;for(var t;e.isModifierKind(M());)t=!0,L();return 21===M()||(ue()&&(t=!0,L()),!!t&&(19===M()||27===M()||55===M()||56===M()||26===M()||$()))}function kt(){if(19===M()||27===M())return mt(155);if(94===M()&&q(xt))return mt(156);var e=I(),t=la();return gt()?vt(e,void 0,t):ht(e,t)}function xt(){return L(),19===M()||27===M()}function Ct(){var e=te(163);return e.members=Dt(),ne(e)}function Dt(){var e;return G(17)?(e=we(4,kt),G(18)):e=qe(),e}function St(){return L(),131===M()&&L(),21===M()&&Ce()&&92===L()}function Tt(){var e=te(145);return e.name=se(),G(92),e.constraint=Gt(),ne(e)}function Et(){var e=te(172);return G(17),e.readonlyToken=Q(131),G(21),e.typeParameter=Tt(),G(22),e.questionToken=Q(55),e.type=Qt(),ee(),G(18),ne(e)}function Nt(){var e=te(165);return e.elementTypes=We(20,Gt,21,22),ne(e)}function At(){var e=te(168);return G(19),e.type=Gt(),G(20),ne(e)}function wt(e){var t=te(e);return 161===e&&G(94),dt(36,!1,!1,!1,t),ne(t)}function Pt(){var e=Z();return 23===M()?void 0:e}function Ft(){var e=te(173);return e.literal=wr(),ne(e),e}function Ot(){return 8===L()}function It(){switch(M()){case 119:case 136:case 133:case 122:case 137:case 139:case 130:case 134:var e=W(Pt);return e||tt();case 9:case 8:case 101:case 86:return Ft();case 38:return q(Ot)?Ft():tt();case 105:case 95:return Z();case 99:var t=nt();return 126!==M()||li.hasPrecedingLineBreak()?t:rt(t);case 103:return at();case 17:return q(St)?Et():Ct();case 21:return Nt();case 19:return At();default:return tt()}}function Rt(){switch(M()){case 119:case 136:case 133:case 122:case 137:case 105:case 139:case 95:case 99:case 103:case 130:case 17:case 21:case 27:case 49:case 48:case 94:case 9:case 8:case 101:case 86:case 134:return!0;case 38:return q(Ot);case 19:return q(Mt);default:return H()}}function Mt(){return L(),20===M()||ct()||Rt()}function Lt(){for(var e=It();!li.hasPrecedingLineBreak()&&X(21);)if(Rt()){var t=te(171,e.pos);t.objectType=e,t.indexType=Gt(),G(22),e=ne(t)}else{var t=te(164,e.pos);t.elementType=e,G(22),e=ne(t)}return e}function Bt(e){var t=te(170);return G(e),t.operator=e,t.type=Jt(),ne(t)}function Jt(){switch(M()){case 127:return Bt(127)}return Lt()}function zt(e,t,r){X(r);var n=t();if(M()===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 Kt(){return zt(167,Jt,48)}function jt(){return zt(166,Kt,49)}function Vt(){return 27===M()||19===M()&&q(qt)}function Ut(){if(e.isModifierKind(M())&&la(),H()||99===M())return L(),!0;if(21===M()||17===M()){var t=ri.length;return Qn(),t===ri.length}return!1}function qt(){if(L(),20===M()||24===M())return!0;if(Ut()){if(56===M()||26===M()||55===M()||58===M())return!0;if(20===M()&&(L(),36===M()))return!0}return!1}function Wt(){var e=H()&&W(Ht),t=Gt();if(e){var r=te(158,e.pos);return r.parameterName=e,r.type=t,ne(r)}return t}function Ht(){var e=se();if(126===M()&&!li.hasPrecedingLineBreak())return L(),e}function Gt(){return y(20480,Xt)}function Xt(){return Vt()?wt(160):94===M()?wt(161):jt()}function Qt(){return X(56)?Gt():void 0}function Yt(){switch(M()){case 99:case 97:case 95:case 101:case 86:case 8:case 9:case 13:case 14:case 19:case 21:case 17:case 89:case 75:case 94:case 41:case 63:case 71:return!0;case 91:return q(xt);default:return H()}}function Zt(){if(Yt())return!0;switch(M()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 43:case 44:case 27:case 121:case 116:return!0;default:return!!hr()||H()}}function $t(){return 17!==M()&&89!==M()&&75!==M()&&57!==M()&&Zt()}function er(){var e=A();e&&m(!1);for(var t,r=rr();t=Q(26);)r=kr(r,t,rr());return e&&m(!0),r}function tr(e){if(58===M()||!(li.hasPrecedingLineBreak()||e&&17===M())&&Zt())return G(58),rr()}function rr(){if(nr())return ir();var t=sr()||lr();if(t)return t;var r=gr(0);return 71===r.kind&&36===M()?or(r):e.isLeftHandSideExpression(r)&&e.isAssignmentOperator(B())?kr(r,Z(),rr()):mr(r)}function nr(){return 116===M()&&(!!E()||q(Rn))}function ar(){return L(),!li.hasPrecedingLineBreak()&&H()}function ir(){var e=te(197);return L(),li.hasPrecedingLineBreak()||39!==M()&&!Zt()?ne(e):(e.asteriskToken=Q(39),e.expression=rr(),ne(e))}function or(t,r){e.Debug.assert(36===M(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var n;r?(n=te(187,r.pos),n.modifiers=r):n=te(187,t.pos);var a=te(146,t.pos);return a.name=t,ne(a),n.parameters=re([a],a.pos),n.parameters.end=a.end,n.equalsGreaterThanToken=Y(36,!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=M();return r.equalsGreaterThanToken=Y(36,!1,e.Diagnostics._0_expected,"=>"),r.body=36===a||17===a?fr(n):se(),u(ne(r))}}}function cr(){return 19===M()||27===M()||120===M()?q(ur):36===M()?1:0}function ur(){if(120===M()){if(L(),li.hasPrecedingLineBreak())return 0;if(19!==M()&&27!==M())return 0}var t=M(),r=L();if(19===t){if(20===r){var n=L();switch(n){case 36:case 56:case 17:return 1;default:return 0}}return 21===r||17===r?2:24===r?1:H()?56===L()?1:2:0}if(e.Debug.assert(27===t),!H())return 0;if(1===ti.languageVariant){var a=q(function(){var e=L();if(85===e){var t=L();switch(t){case 58:case 29:return!1;default:return!0}}else if(26===e)return!0;return!1});return a?1:0}return 2}function _r(){return pr(!1)}function lr(){if(120===M()){var e=q(dr);if(1===e){var t=da(),r=gr(0);return or(r,t)}}}function dr(){if(120===M()){if(L(),li.hasPrecedingLineBreak()||36===M())return 0;var e=gr(0);if(!li.hasPrecedingLineBreak()&&71===e.kind&&36===M())return 1}return 0}function pr(t){var r=te(187);r.modifiers=da();var n=!!(256&e.getModifierFlags(r));if(dt(56,!1,n,!t,r),r.parameters&&(t||36===M()||17===M()))return r}function fr(e){return 17===M()?fn(!1,e,!1):25!==M()&&89!==M()&&75!==M()&&Bn()&&!$t()?fn(!1,e,!0):e?C(rr):D(rr)}function mr(t){var r=Q(55);if(!r)return t;var n=te(195,t.pos);return n.condition=t,n.questionToken=r,n.whenTrue=y(di,rr),n.colonToken=Y(56,!1,e.Diagnostics._0_expected,e.tokenToString(56)),n.whenFalse=rr(),ne(n)}function gr(e){var t=Ar();return vr(e,t)}function yr(e){return 92===e||142===e}function vr(e,t){for(;;){B();var r=br(),n=40===M()?r>=e:r>e;if(!n)break;if(92===M()&&N())break;if(118===M()){if(li.hasPrecedingLineBreak())break;L(),t=xr(t,Gt())}else t=kr(t,Z(),gr(r))}return t}function hr(){return(!N()||92!==M())&&br()>0}function br(){switch(M()){case 54:return 1;case 53:return 2;case 49:return 3;case 50:return 4;case 48:return 5;case 32:case 33:case 34:case 35:return 6;case 27:case 29:case 30:case 31:case 93:case 92:case 118:return 7;case 45:case 46:case 47:return 8;case 37:case 38:return 9;case 39:case 41:case 42:return 10;case 40:return 11}return-1}function kr(e,t,r){var n=te(194,e.pos);return n.left=e,n.operatorToken=t,n.right=r,ne(n)}function xr(e,t){var r=te(202,e.pos);return r.expression=e,r.type=t,ne(r)}function Cr(){var e=te(192);return e.operator=M(),L(),e.operand=wr(),ne(e)}function Dr(){var e=te(188);return L(),e.expression=wr(),ne(e)}function Sr(){var e=te(189);return L(),e.expression=wr(),ne(e)}function Tr(){var e=te(190);return L(),e.expression=wr(),ne(e)}function Er(){return 121===M()&&(!!w()||q(ar))}function Nr(){var e=te(191);return L(),e.expression=wr(),ne(e)}function Ar(){if(Pr()){var t=Fr();return 40===M()?vr(br(),t):t}var r=M(),n=wr();if(40===M()){var a=e.skipTrivia(ii,n.pos);184===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(M()){case 37:case 38:case 52:case 51:return Cr();case 80:return Dr();case 103:return Sr();case 105:return Tr();case 27:return Gr();case 121:if(Er())return Nr();default:return Fr()}}function Pr(){switch(M()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 121:return!1;case 27:if(1!==ti.languageVariant)return!1;default:return!0}}function Fr(){if(43===M()||44===M()){var t=te(192);return t.operator=M(),L(),t.operand=Or(),ne(t)}if(1===ti.languageVariant&&27===M()&&q(De))return Lr(!0);var r=Or();if(e.Debug.assert(e.isLeftHandSideExpression(r)),(43===M()||44===M())&&!li.hasPrecedingLineBreak()){var t=te(193,r.pos);return t.operand=r,t.operator=M(),L(),ne(t)}return r}function Or(){var e;return 91===M()&&q(xt)?(ti.flags|=524288,e=Z()):e=97===M()?Rr():Ir(),Qr(e)}function Ir(){var e=en();return Xr(e)}function Rr(){var t=Z();if(19===M()||23===M()||21===M())return t;var r=te(179,t.pos);return r.expression=t,Y(23,!1,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),r.name=Ge(!0),ne(r)}function Mr(e,t){return e.kind===t.kind&&(71===e.kind?e.text===t.text:99===e.kind||e.name.text===t.name.text&&Mr(e.expression,t.expression))}function Lr(t){var r,n=jr(t);if(251===n.kind){var a=te(249,n.pos);a.openingElement=n,a.children=zr(a.openingElement.tagName),a.closingElement=Hr(t),Mr(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(ii,a.openingElement.tagName)),r=ne(a)}else e.Debug.assert(250===n.kind),r=n;if(t&&27===M()){var i=W(function(){return Lr(!0)});if(i){P(e.Diagnostics.JSX_expressions_must_have_one_parent_element);var o=te(194,r.pos);return o.end=i.end,o.left=r,o.right=i,o.operatorToken=ae(26,!1,void 0),o.operatorToken.pos=o.operatorToken.end=o.right.pos,o}}return r}function Br(){var e=te(10,li.getStartPos());return e.containsOnlyWhiteSpaces=11===ai,ai=li.scanJsxToken(),ne(e)}function Jr(){switch(M()){case 10:case 11:return Br();case 17:return Ur(!1);case 27:return Lr(!1)}e.Debug.fail("Unknown JSX child kind "+M())}function zr(t){var r=re(),n=ui;for(ui|=16384;;){if(ai=li.reScanJsxToken(),28===M())break;if(1===M()){F(t.pos,t.end-t.pos,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(ii,t));break}if(7===M())break;var a=Jr();a&&r.push(a)}return r.end=li.getTokenPos(),ui=n,r}function Kr(){var e=te(254);return e.properties=we(13,qr),ne(e)}function jr(e){var t=li.getStartPos();G(27);var r,n=Vr(),a=Kr();return 29===M()?(r=te(251,t),j()):(G(41),e?G(29):(G(29,void 0,!1),j()),r=te(250,t)),r.tagName=n,r.attributes=a,ne(r)}function Vr(){K();for(var e=99===M()?Z():ce();X(23);){var t=te(179,e.pos);t.expression=e,t.name=Ge(!0),e=ne(t)}return e}function Ur(e){var t=te(256);return G(17),18!==M()&&(t.dotDotDotToken=Q(24),t.expression=rr()),e?G(18):(G(18,void 0,!1),j()),ne(t)}function qr(){if(17===M())return Wr();K();var e=te(253);if(e.name=ce(),58===M())switch(V()){case 9:e.initializer=Ye();break;default:e.initializer=Ur(!0)}return ne(e)}function Wr(){var e=te(255);return G(17),G(24),e.expression=er(),G(18),ne(e)}function Hr(e){var t=te(252);return G(28),t.tagName=Vr(),e?G(29):(G(29,void 0,!1),j()),ne(t)}function Gr(){var e=te(184);return G(27),e.type=Gt(),G(29),e.expression=wr(),ne(e)}function Xr(e){for(;;){var t=Q(23);if(t){var r=te(179,e.pos);r.expression=e,r.name=Ge(!0),e=ne(r)}else if(51!==M()||li.hasPrecedingLineBreak())if(A()||!X(21)){if(13!==M()&&14!==M())return e;var n=te(183,e.pos);n.tag=e,n.template=13===M()?Ye():Xe(),e=ne(n)}else{var a=te(180,e.pos);if(a.expression=e,22!==M()&&(a.argumentExpression=h(er),9===a.argumentExpression.kind||8===a.argumentExpression.kind)){var i=a.argumentExpression;i.text=ie(i.text)}G(22),e=ne(a)}else{L();var o=te(203,e.pos);o.expression=e,e=ne(o)}}}function Qr(e){for(;;)if(e=Xr(e),27!==M()){if(19!==M())return e;var t=te(181,e.pos);t.expression=e,t.arguments=Yr(),e=ne(t)}else{var r=W(Zr);if(!r)return e;var t=te(181,e.pos);t.expression=e,t.typeArguments=r,t.arguments=Yr(),e=ne(t)}}function Yr(){G(19);var e=Ue(11,an);return G(20),e}function Zr(){if(X(27)){var e=Ue(19,Gt);if(G(29))return e&&$r()?e:void 0}}function $r(){switch(M()){case 19:case 23:case 20:case 22:case 56:case 25:case 55:case 32:case 34:case 33:case 35:case 53:case 54:case 50:case 48:case 49:case 18:case 1:return!0;case 26:case 17:default:return!1}}function en(){switch(M()){case 8:case 9:case 13:return Ye();case 99:case 97:case 95:case 101:case 86:return Z();case 19:return tn();case 21:return on();case 17:return un();case 120:if(!q(In))break;return _n();case 75:return fa();case 89:return _n();case 94:return dn();case 41:case 63:if(12===J())return Ye();break;case 14:return Xe()}return se(e.Diagnostics.Expression_expected)}function tn(){var e=te(185);return G(19),e.expression=h(er),G(20),ne(e)}function rn(){var e=te(198);return G(24),e.expression=rr(),ne(e)}function nn(){return 24===M()?rn():26===M()?te(200):rr()}function an(){return y(di,nn)}function on(){var e=te(177);return G(21),li.hasPrecedingLineBreak()&&(e.multiLine=!0),e.elements=Ue(15,nn),G(22),ne(e)}function sn(e,t,r){return me(125)?sa(153,e,t,r):me(135)?sa(154,e,t,r):void 0}function cn(){var e=li.getStartPos(),t=Q(24);if(t){var r=te(263,e);return r.expression=rr(),u(ne(r))}var n=_a(),a=la(),i=sn(e,n,a);if(i)return i;var o=Q(39),s=H(),c=le(),_=Q(55);if(o||19===M()||27===M())return na(e,n,a,o,c,_);var l=s&&(26===M()||18===M()||58===M());if(l){var d=te(262,e);d.name=c,d.questionToken=_;var p=Q(58);return p&&(d.equalsToken=p,d.objectAssignmentInitializer=h(rr)),u(ne(d))}var f=te(261,e);return f.modifiers=a,f.name=c,f.questionToken=_,G(56),f.initializer=h(rr),u(ne(f))}function un(){var e=te(178);return G(17),li.hasPrecedingLineBreak()&&(e.multiLine=!0),e.properties=Ue(12,cn,!0),G(18),ne(e)}function _n(){var t=A();t&&m(!1);var r=te(186);r.modifiers=la(),G(89),r.asteriskToken=Q(39);var n=!!r.asteriskToken,a=!!(256&e.getModifierFlags(r));return r.name=n&&a?S(ln):n?k(ln):a?C(ln):ln(),dt(56,n,a,!1,r),r.body=fn(n,a,!1),t&&m(!0),u(ne(r))}function ln(){return H()?se():void 0}function dn(){var e=li.getStartPos();if(G(94),X(23)){var t=te(204,e);return t.keywordToken=94,t.name=ce(),ne(t)}var r=te(182,e);return r.expression=Ir(),r.typeArguments=W(Zr),(r.typeArguments||19===M())&&(r.arguments=Yr()),ne(r)}function pn(e,t){var r=te(207);return G(17,t)||e?(li.hasPrecedingLineBreak()&&(r.multiLine=!0),r.statements=we(1,Kn),G(18)):r.statements=qe(),ne(r)}function fn(e,t,r,n){var a=E();f(e);var i=w();g(t);var o=A();o&&m(!1);var s=pn(r,n);return o&&m(!0),f(a),g(i),s}function mn(){var e=te(209);return G(25),ne(e)}function gn(){var e=te(211);return G(90),G(19),e.expression=h(er),G(20),e.thenStatement=Kn(),e.elseStatement=X(82)?Kn():void 0,ne(e)}function yn(){var e=te(212);return G(81),e.statement=Kn(),G(106),G(19),e.expression=h(er),G(20),X(25),ne(e)}function vn(){var e=te(213);return G(106),G(19),e.expression=h(er),G(20),e.statement=Kn(),ne(e)}function hn(){var e=I();G(88);var t=Q(121);G(19);var r=void 0;25!==M()&&(r=104===M()||110===M()||76===M()?Zn(!0):b(er));var n;if(t?G(142):X(142)){var a=te(216,e);a.awaitModifier=t,a.initializer=r,a.expression=h(rr),G(20),n=a}else if(X(92)){var i=te(215,e);i.initializer=r,i.expression=h(er),G(20),n=i}else{var o=te(214,e);o.initializer=r,G(25),25!==M()&&20!==M()&&(o.condition=h(er)),G(25),20!==M()&&(o.incrementor=h(er)),G(20),n=o}return n.statement=Kn(),ne(n)}function bn(e){var t=te(e);return G(218===e?72:77),$()||(t.label=se()),ee(),ne(t)}function kn(){var e=te(219);return G(96),$()||(e.expression=h(er)),ee(),ne(e)}function xn(){var e=te(220);return G(107),G(19),e.expression=h(er),G(20),e.statement=Kn(),ne(e)}function Cn(){var e=te(257);return G(73),e.expression=h(er),G(56),e.statements=we(3,Kn),ne(e)}function Dn(){var e=te(258);return G(79),G(56),e.statements=we(3,Kn),ne(e)}function Sn(){return 73===M()?Cn():Dn()}function Tn(){var e=te(221);G(98),G(19),e.expression=h(er),G(20);var t=te(235,li.getStartPos());return G(17),t.clauses=we(2,Sn),G(18),e.caseBlock=ne(t),ne(e)}function En(){var e=te(223);return G(100),e.expression=li.hasPrecedingLineBreak()?void 0:h(er),ee(),ne(e)}function Nn(){var e=te(224);return G(102),e.tryBlock=pn(!1),e.catchClause=74===M()?An():void 0,e.catchClause&&87!==M()||(G(87),e.finallyBlock=pn(!1)),ne(e)}function An(){var e=te(260);return G(74),G(19)&&(e.variableDeclaration=Yn()),G(20),e.block=pn(!1),ne(e)}function wn(){var e=te(225);return G(78),ee(),ne(e)}function Pn(){var e=li.getStartPos(),t=h(er);if(71===t.kind&&X(56)){var r=te(222,e);return r.label=t,r.statement=Kn(),u(ne(r))}var n=te(210,e);return n.expression=t,ee(),u(ne(n))}function Fn(){return L(),e.tokenIsIdentifierOrKeyword(M())&&!li.hasPrecedingLineBreak()}function On(){return L(),75===M()&&!li.hasPrecedingLineBreak()}function In(){return L(),89===M()&&!li.hasPrecedingLineBreak()}function Rn(){return L(),(e.tokenIsIdentifierOrKeyword(M())||8===M())&&!li.hasPrecedingLineBreak()}function Mn(){for(;;)switch(M()){case 104:case 110:case 76:case 89:case 75:case 83:return!0;case 109:case 138:return ar();case 128:case 129:return Vn();case 117:case 120:case 124:case 112:case 113:case 114:case 131:if(L(),li.hasPrecedingLineBreak())return!1;continue;case 141:return L(),17===M()||71===M()||84===M();case 91:return L(),9===M()||39===M()||17===M()||e.tokenIsIdentifierOrKeyword(M());case 84:if(L(),58===M()||39===M()||17===M()||79===M()||118===M())return!0;continue;case 115:L();continue;default:return!1}}function Ln(){return q(Mn)}function Bn(){switch(M()){case 57:case 25:case 17:case 104:case 110:case 89:case 75:case 83:case 90:case 81:case 106:case 88:case 77:case 72:case 96:case 107:case 98:case 100:case 102:case 78:case 74:case 87:return!0;case 91:return Ln()||q(xt);case 76:case 84:return Ln();case 120:case 124:case 109:case 128:case 129:case 138:case 141:return!0;case 114:case 112:case 113:case 115:case 131:return Ln()||!q(Fn);default:return Zt()}}function Jn(){return L(),H()||17===M()||21===M()}function zn(){return q(Jn)}function Kn(){switch(M()){case 25:return mn();case 17:return pn(!1);case 104:return ea(li.getStartPos(),void 0,void 0);case 110:if(zn())return ea(li.getStartPos(),void 0,void 0);break;case 89:return ta(li.getStartPos(),void 0,void 0);case 75:return ma(li.getStartPos(),void 0,void 0);case 90:return gn();case 81:return yn();case 106:return vn();case 88:return hn();case 77:return bn(217);case 72:return bn(218);case 96:return kn();case 107:return xn();case 98:return Tn();case 100:return En();case 102:case 74:case 87:return Nn();case 78:return wn();case 57:return jn();case 120:case 109:case 138:case 128:case 129:case 124:case 76:case 83:case 84:case 91:case 112:case 113:case 114:case 117:case 115:case 131:case 141:if(Ln())return jn()}return Pn()}function jn(){var t=I(),r=_a(),n=la();switch(M()){case 104:case 110:case 76:return ea(t,r,n);case 89:return ta(t,r,n);case 75:return ma(t,r,n);case 109:return Da(t,r,n);case 138:return Sa(t,r,n);case 83:return Ea(t,r,n);case 141:case 128:case 129:return Pa(t,r,n);case 91:return Ma(t,r,n);case 84:switch(L(),M()){case 79:case 58:return Ga(t,r,n);case 118:return Ra(t,r,n);default:return Ha(t,r,n)}default:if(r||n){var a=ae(247,!0,e.Diagnostics.Declaration_expected);return a.pos=t,a.decorators=r,a.modifiers=n,ne(a)}}}function Vn(){return L(),!li.hasPrecedingLineBreak()&&(H()||9===M())}function Un(e,t,r){return 17!==M()&&$()?void ee():fn(e,t,!1,r)}function qn(){if(26===M())return te(200);var e=te(176);return e.dotDotDotToken=Q(24),e.name=Qn(),e.initializer=_t(!1),ne(e)}function Wn(){var e=te(176);e.dotDotDotToken=Q(24);var t=H(),r=le();return t&&56!==M()?e.name=r:(G(56),e.propertyName=r,e.name=Qn()),e.initializer=_t(!1),ne(e)}function Hn(){var e=te(174);return G(17),e.elements=Ue(9,Wn),G(18),ne(e)}function Gn(){var e=te(175);return G(21),e.elements=Ue(10,qn),G(22),ne(e)}function Xn(){return 17===M()||21===M()||H()}function Qn(){return 21===M()?Gn():17===M()?Hn():se()}function Yn(){var e=te(226);return e.name=Qn(),e.type=Qt(),yr(M())||(e.initializer=tr(!1)),ne(e)}function Zn(t){var r=te(227);switch(M()){case 104:break;case 110:r.flags|=1;break;case 76:r.flags|=2;break;default:e.Debug.fail()}if(L(),142===M()&&q($n))r.declarations=qe();else{var n=N();p(t),r.declarations=Ue(8,Yn),p(n)}return ne(r)}function $n(){return Ce()&&20===L()}function ea(e,t,r){var n=te(208,e);return n.decorators=t,n.modifiers=r,n.declarationList=Zn(!1),ee(),u(ne(n))}function ta(t,r,n){var a=te(228,t);a.decorators=r,a.modifiers=n,G(89),a.asteriskToken=Q(39),a.name=e.hasModifier(a,512)?ln():se();var i=!!a.asteriskToken,o=e.hasModifier(a,256);return dt(56,i,o,!1,a),a.body=Un(i,o,e.Diagnostics.or_expected),u(ne(a))}function ra(t,r,n){var a=te(152,t);return a.decorators=r,a.modifiers=n,G(123),dt(56,!1,!1,!1,a),a.body=Un(!1,!1,e.Diagnostics.or_expected),u(ne(a))}function na(t,r,n,a,i,o,s){var c=te(151,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(56,_,l,!1,c),c.body=Un(_,l,s),u(ne(c))}function aa(t,r,n,a,i){var o=te(149,t);return o.decorators=r,o.modifiers=n,o.name=a,o.questionToken=i,o.type=Qt(),o.initializer=e.hasModifier(o,32)?h(oa):y(6144,oa),ee(),u(ne(o))}function ia(t,r,n){var a=Q(39),i=le(),o=Q(55);return a||19===M()||27===M()?na(t,r,n,a,i,o,e.Diagnostics.or_expected):aa(t,r,n,i,o)}function oa(){return tr(!1)}function sa(e,t,r,n){var a=te(e,t);return a.decorators=r,a.modifiers=n,a.name=le(),dt(56,!1,!1,!1,a),a.body=Un(!1,!1),u(ne(a))}function ca(e){switch(e){case 114:case 112:case 113:case 115:case 131:return!0;default:return!1}}function ua(){var t;if(57===M())return!0;for(;e.isModifierKind(M());){if(t=M(),ca(t))return!0;L()}if(39===M())return!0;if(ue()&&(t=M(),L()),21===M())return!0;if(void 0!==t){if(!e.isKeyword(t)||135===t||125===t)return!0;switch(M()){case 19:case 27:case 56:case 58:case 55:return!0;default:return $()}}return!1}function _a(){for(var e;;){var t=I();if(!X(57))break;var r=te(147,t);r.expression=x(Or),ne(r),e?e.push(r):e=re([r],t)}return e&&(e.end=R()),e}function la(e){for(var t;;){var r=li.getStartPos(),n=M();if(76===M()&&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=li.getStartPos()),t}function da(){var e;if(120===M()){var t=li.getStartPos(),r=M();L();var n=ne(te(r,t));e=re([n],t),e.end=li.getStartPos()}return e}function pa(){if(25===M()){var t=te(206);return L(),ne(t)}var r=I(),n=_a(),a=la(!0),i=sn(r,n,a);if(i)return i;if(123===M())return ra(r,n,a);if(gt())return vt(r,n,a);if(e.tokenIsIdentifierOrKeyword(M())||9===M()||8===M()||39===M()||21===M())return ia(r,n,a);if(n||a){var o=ae(71,!0,e.Diagnostics.Declaration_expected);return aa(r,n,a,o,void 0)}e.Debug.fail("Should not have attempted to parse class member declaration.")}function fa(){return ga(li.getStartPos(),void 0,void 0,199)}function ma(e,t,r){return ga(e,t,r,229)}function ga(e,t,r,n){var a=te(n,e);return a.decorators=t,a.modifiers=r,G(75),a.name=ya(),a.typeParameters=ot(),a.heritageClauses=ha(),G(17)?(a.members=Ca(),G(18)):a.members=qe(),u(ne(a))}function ya(){return H()&&!va()?se():void 0}function va(){return 108===M()&&q(De)}function ha(){if(xa())return we(21,ba)}function ba(){var e=M();if(85===e||108===e){var t=te(259);return t.token=e,L(),t.types=Ue(7,ka),ne(t)}}function ka(){var e=te(201);return e.expression=Or(),27===M()&&(e.typeArguments=We(19,Gt,27,29)),ne(e)}function xa(){return 85===M()||108===M()}function Ca(){return we(5,pa)}function Da(e,t,r){var n=te(230,e);return n.decorators=t,n.modifiers=r,G(109),n.name=se(),n.typeParameters=ot(),n.heritageClauses=ha(),n.members=Dt(),u(ne(n))}function Sa(e,t,r){var n=te(231,e);return n.decorators=t,n.modifiers=r,G(138),n.name=se(),n.typeParameters=ot(),G(58),n.type=Gt(),ee(),u(ne(n))}function Ta(){var e=te(264,li.getStartPos());return e.name=le(),e.initializer=h(oa),u(ne(e))}function Ea(e,t,r){var n=te(232,e);return n.decorators=t,n.modifiers=r,G(83),n.name=se(),G(17)?(n.members=Ue(6,Ta),G(18)):n.members=qe(),u(ne(n))}function Na(){var e=te(234,li.getStartPos());return G(17)?(e.statements=we(1,Kn),G(18)):e.statements=qe(),ne(e)}function Aa(e,t,r,n){var a=te(233,e),i=16&n;return a.decorators=t,a.modifiers=r,a.flags|=n,a.name=se(),a.body=X(23)?Aa(I(),void 0,void 0,4|i):Na(),u(ne(a))}function wa(e,t,r){var n=te(233,e);return n.decorators=t,n.modifiers=r,141===M()?(n.name=se(),n.flags|=512):n.name=Ye(!0),17===M()?n.body=Na():ee(),ne(n)}function Pa(e,t,r){var n=0;if(141===M())return wa(e,t,r);if(X(129))n|=16;else if(G(128),9===M())return wa(e,t,r);return Aa(e,t,r,n)}function Fa(){return 132===M()&&q(Oa)}function Oa(){return 19===L()}function Ia(){return 41===L()}function Ra(e,t,r){var n=te(236,e);return n.decorators=t,n.modifiers=r,G(118),G(129),n.name=se(),ee(),ne(n)}function Ma(e,t,r){G(91);var n,a=li.getStartPos();if(H()&&(n=se(),26!==M()&&140!==M()))return La(e,t,r,n);var i=te(238,e);return i.decorators=t,i.modifiers=r,(n||39===M()||17===M())&&(i.importClause=Ba(n,a),G(140)),i.moduleSpecifier=Ka(),ee(),ne(i)}function La(e,t,r,n){var a=te(237,e);return a.decorators=t,a.modifiers=r,a.name=n,G(58),a.moduleReference=Ja(),ee(),u(ne(a))}function Ba(e,t){var r=te(239,t);return e&&(r.name=e),r.name&&!X(26)||(r.namedBindings=39===M()?ja():Va(241)),ne(r)}function Ja(){return Fa()?za():He(!1)}function za(){var e=te(248);return G(132),G(19),e.expression=Ka(),G(20),ne(e)}function Ka(){if(9===M()){var e=Ye();return ie(e.text),e}return er()}function ja(){var e=te(240);return G(39),G(118),e.name=se(),ne(e)}function Va(e){var t=te(e);return t.elements=We(22,241===e?qa:Ua,17,18),ne(t)}function Ua(){return Wa(246)}function qa(){return Wa(242)}function Wa(t){var r=te(t),n=e.isKeyword(M())&&!H(),a=li.getTokenPos(),i=li.getTextPos(),o=ce();return 118===M()?(r.propertyName=o,G(118),n=e.isKeyword(M())&&!H(),a=li.getTokenPos(),i=li.getTextPos(),r.name=ce()):r.name=o,242===t&&n&&F(a,i-a,e.Diagnostics.Identifier_expected),ne(r)}function Ha(e,t,r){var n=te(244,e);return n.decorators=t,n.modifiers=r,X(39)?(G(140),n.moduleSpecifier=Ka()):(n.exportClause=Va(245),(140===M()||9===M()&&!li.hasPrecedingLineBreak())&&(G(140),n.moduleSpecifier=Ka())),ee(),ne(n)}function Ga(e,t,r){var n=te(243,e);return n.decorators=t,n.modifiers=r,X(58)?n.isExportEquals=!0:G(79),n.expression=rr(),ee(),ne(n)}function Xa(t){for(var r,n=e.createScanner(t.languageVersion,!1,0,ii),a=[],i=[],o=[],s=void 0;;){var c=n.scan();if(2!==c){if(e.isTrivia(c))continue;break}var u={kind:n.getToken(),pos:n.getTokenPos(),end:n.getTextPos()},_=ii.substring(u.pos,u.end),l=e.getFileReferenceFromReferencePath(_,u);if(l){var d=l.fileReference;t.hasNoDefaultLib=l.isNoDefaultLib;var p=l.diagnosticMessage;d&&(l.isTypeReferenceDirective?i.push(d):a.push(d)),p&&ri.push(e.createFileDiagnostic(t,u.pos,u.end-u.pos,p))}else{var f=/^\/\/\/\s*<amd-module\s+name\s*=\s*('|")(.+?)\1/gim,m=f.exec(_);m&&(r&&ri.push(e.createFileDiagnostic(t,u.pos,u.end-u.pos,e.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments)),r=m[2]);var g=/^\/\/\/\s*<amd-dependency\s/gim,y=/\spath\s*=\s*('|")(.+?)\1/gim,v=/\sname\s*=\s*('|")(.+?)\1/gim,h=g.exec(_);if(h){var b=y.exec(_),k=v.exec(_);if(b){var x={path:b[2],name:k?k[2]:void 0};o.push(x)}}var C=/^\/\/\/?\s*(@ts-check|@ts-nocheck)\s*$/gim,D=C.exec(_);D&&(s={enabled:0===e.compareStrings(D[1],"@ts-check",!0),end:u.end,pos:u.pos})}}t.referencedFiles=a,t.typeReferenceDirectives=i,t.amdDependencies=o,t.moduleName=r,t.checkJsDirective=s}function Qa(t){t.externalModuleIndicator=e.forEach(t.statements,function(t){return e.hasModifier(t,1)||237===t.kind&&248===t.moduleReference.kind||238===t.kind||243===t.kind||244===t.kind?t:void 0})}var Ya,Za,$a,ei,ti,ri,ni,ai,ii,oi,si,ci,ui,_i,li=e.createScanner(5,!0),di=10240,pi=!1;t.parseSourceFile=r,t.parseIsolatedEntityName=n,t.fixupParentReferences=_;var fi;!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"}(fi||(fi={}));var mi;!function(e){e[e.False=0]="False",e[e.True=1]="True",e[e.Unknown=2]="Unknown"}(mi||(mi={}));var gi;!function(t){function r(){switch(M()){case 39:case 55:case 19:case 21:case 51:case 17:case 89:case 24:case 94:case 99:return!0}return e.tokenIsIdentifierOrKeyword(M())}function n(e,t,r){o(e,5,void 0,1),ti=l("file.js",5,1),li.setText(e,t,r),ai=li.scan();var n=a(),i=ri;return s(),n?{jsDocTypeExpression:n,diagnostics:i}:void 0}function a(){var e=te(267,li.getTokenPos());return G(17),e.type=i(),G(18),_(e),ne(e)}function i(){var e=c();if(49===M()){var t=te(271,e.pos);t.types=T(e),e=ne(t)}if(58===M()){var r=te(278,e.pos);L(),r.type=e,e=ne(r)}return e}function c(){for(var e=u();;)if(21===M()){var t=te(270,e.pos);t.elementType=e,L(),G(22),e=ne(t)}else if(55===M()){var r=te(273,e.pos);r.type=e,L(),e=ne(r)}else{if(51!==M())break;var n=te(274,e.pos);n.type=e,L(),e=ne(n)}return e}function u(){switch(M()){case 39:return E();case 55:return A();case 19:return S();case 21:return C();case 51:return x();case 17:return k();case 89:if(q(Oa))return m();break;case 24:return f();case 94:return p();case 99:return d();case 119:case 136:case 133:case 122:case 137:case 105:case 95:case 139:case 130:return Z();case 9:case 8:case 101:case 86:return N()}return y()}function d(){var e=te(282);return L(),G(56),e.type=c(),ne(e)}function p(){var e=te(281);return L(),G(56),e.type=c(),ne(e)}function f(){var e=te(280);return L(),e.type=c(),ne(e)}function m(){var e=te(279);return L(),G(19),e.parameters=Ue(23,g),D(e.parameters),G(20),56===M()&&(L(),e.type=c()),ne(e)}function g(){var e=te(146);return e.type=c(),X(58)&&(e.questionToken=te(58)),ne(e)}function y(){var e=te(277);if(e.name=de(),27===M())e.typeArguments=v();else for(;X(23);){if(27===M()){e.typeArguments=v();break}e.name=b(e.name)}return ne(e)}function v(){L();var e=Ue(24,c);return D(e),h(e),G(29),e}function h(t){if(0===ri.length&&t&&0===t.length){var r=t.pos-"<".length,n=e.skipTrivia(ii,t.end)+">".length;return F(r,n-r,e.Diagnostics.Type_argument_list_cannot_be_empty)}}function b(e){var t=te(143,e.pos);return t.left=e,t.right=ce(),ne(t)}function k(){var e=te(275);return e.literal=Ct(),ne(e)}function x(){var e=te(274);return L(),e.type=c(),ne(e)}function C(){var e=te(272);return L(),e.types=Ue(26,c),D(e.types),G(22),ne(e)}function D(t){if(0===ri.length&&t.hasTrailingComma){var r=t.end-",".length;F(r,",".length,e.Diagnostics.Trailing_comma_not_allowed)}}function S(){var e=te(271);return L(),e.types=T(c()),G(20),ne(e)}function T(t){e.Debug.assert(!!t);for(var r=re([t],t.pos);X(49);)r.push(c());return r.end=li.getStartPos(),r}function E(){var e=te(268);return L(),ne(e)}function N(){var e=te(294);return e.literal=Ft(),ne(e)}function A(){var e=li.getStartPos();if(L(),26===M()||18===M()||20===M()||29===M()||58===M()||49===M()){var t=te(269,e);return ne(t)}var t=te(273,e);return t.type=c(),ne(t)}function w(e,t,r){o(e,5,void 0,1),ti={languageVariant:0,text:e};var n=I(t,r),a=ri;return s(),n?{jsDoc:n,
diagnostics:a}:void 0}function O(t,r,n){var a=ai,i=ri.length,o=pi,s=I(r,n);return s&&(s.parent=t),e.isInJavaScriptFile(t)&&(ti.jsDocDiagnostics||(ti.jsDocDiagnostics=[]),(c=ti.jsDocDiagnostics).push.apply(c,ri)),ai=a,ri.length=i,pi=o,s;var c}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(283,t);return e.tags=N,e.comment=w.length?w.join(""):void 0,ne(e,E)}function c(){for(;5===M()||4===M();)C()}function u(t){e.Debug.assert(57===M());var r=te(57,li.getTokenPos());r.end=li.getTextPos(),C();var n=D();if(c(),n){var a;if(n)switch(n.text){case"augments":a=v(r,n);break;case"class":case"constructor":a=h(r,n);break;case"arg":case"argument":case"param":a=m(r,n,!0);break;case"return":case"returns":a=g(r,n);break;case"template":a=x(r,n);break;case"type":a=y(r,n);break;case"typedef":a=b(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;57!==M()&&1!==M();){switch(M()){case 4:o>=1&&(o=0,a.push(li.getTokenText())),e=0;break;case 57:break;case 5:if(2===o)t(li.getTokenText());else{var s=li.getTokenText();void 0!==r&&e+s.length>r&&a.push(s.slice(r-e-1)),e+=s.length}break;case 39:if(0===o){o=1,e+=li.getTokenText().length;break}default:o=2,t(li.getTokenText())}if(57===M())break;C()}return n(a),i(a),a}function l(e,t){var r=te(284,e.pos);return r.atToken=e,r.tagName=t,ne(r)}function d(e,t){e.comment=t.join(""),N?N.push(e):N=re([e],e.pos),N.end=e.end}function p(){return W(function(){if(c(),17===M())return a()})}function f(){var e=X(21),t=D(!0);return e&&(c(),Q(58)&&er(),G(22)),{name:t,isBracketed:e}}function m(e,t,r){var n=p();c();var a=f(),i=a.name,o=a.isBracketed;c();var s,u;n?u=i:s=i,n||(n=p());var _=r?te(287,e.pos):te(292,e.pos);return _.atToken=e,_.tagName=t,_.preParameterName=s,_.typeExpression=n,_.postParameterName=u,_.name=u||s,_.isBracketed=o,ne(_)}function g(t,r){e.forEach(N,function(e){return 288===e.kind})&&F(r.pos,li.getTokenPos()-r.pos,e.Diagnostics._0_tag_already_specified,r.text);var n=te(288,t.pos);return n.atToken=t,n.tagName=r,n.typeExpression=p(),ne(n)}function y(t,r){e.forEach(N,function(e){return 289===e.kind})&&F(r.pos,li.getTokenPos()-r.pos,e.Diagnostics._0_tag_already_specified,r.text);var n=te(289,t.pos);return n.atToken=t,n.tagName=r,n.typeExpression=p(),ne(n)}function v(e,t){var r=p(),n=te(285,e.pos);return n.atToken=e,n.tagName=t,n.typeExpression=r,ne(n)}function h(e,t){var r=te(286,e.pos);return r.atToken=e,r.tagName=t,ne(r)}function b(e,t){function r(){for(var e=te(293,li.getStartPos()),t=li.getStartPos(),r=!0,n=!1,a=!1;1!==M()&&!a;)switch(C(),M()){case 57:r&&(a=!k(e),a||(t=li.getStartPos())),n=!1;break;case 4:t=li.getStartPos()-1,r=!0,n=!1;break;case 39:n&&(r=!1),n=!0;break;case 71:r=!1;break;case 1:}return li.setTextPos(t),ne(e)}function n(e){var t=li.getTokenPos(),r=D();if(r&&X(23)){var a=te(233,t);return a.flags|=e,a.name=r,a.body=n(4),ne(a)}return r&&4&e&&(r.isInJSDocNamespace=!0),r}var a=p();c();var i=te(291,e.pos);if(i.atToken=e,i.tagName=t,i.fullName=n(0),i.fullName)for(var o=i.fullName;;){if(71===o.kind||!o.body){i.name=71===o.kind?o:o.name;break}o=o.body}if(i.typeExpression=a,c(),a){if(277===a.type.kind){var s=a.type;if(71===s.name.kind){var u=s.name;"Object"!==u.text&&"object"!==u.text||(i.jsDocTypeLiteral=r())}}i.jsDocTypeLiteral||(i.jsDocTypeLiteral=a.type)}else i.jsDocTypeLiteral=r();return ne(i)}function k(t){e.Debug.assert(57===M());var r=te(57,li.getStartPos());r.end=li.getTextPos(),C();var n=D();if(c(),!n)return!1;switch(n.text){case"type":return!t.jsDocTypeTag&&(t.jsDocTypeTag=y(r,n),!0);case"prop":case"property":var a=m(r,n,!1);return!!a&&(t.jsDocPropertyTags||(t.jsDocPropertyTags=[]),t.jsDocPropertyTags.push(a),!0)}return!1}function x(t,r){e.forEach(N,function(e){return 290===e.kind})&&F(r.pos,li.getTokenPos()-r.pos,e.Diagnostics._0_tag_already_specified,r.text);for(var n=re();;){var a=D();if(c(),!a)return void F(li.getStartPos(),0,e.Diagnostics.Identifier_expected);var i=te(145,a.pos);if(i.name=a,ne(i),n.push(i),26!==M())break;C(),c()}var o=te(290,t.pos);return o.atToken=t,o.tagName=r,o.typeParameters=n,ne(o),n.end=o.end,o}function C(){return ai=li.scanJSDocToken()}function D(t){return void 0===t&&(t=!1),S(e.tokenIsIdentifierOrKeyword(M()),t)}function S(t,r){if(!t)return r?ae(71,!0,e.Diagnostics.Identifier_expected):void P(e.Diagnostics.Identifier_expected);var n=li.getTokenPos(),a=li.getTextPos(),i=te(71,n);return i.text=T.substring(n,a),ne(i,a),C(),i}var T=ii;t=t||0;var E=void 0===r?T.length:t+r;r=E-t,e.Debug.assert(t>=0),e.Debug.assert(t<=E),e.Debug.assert(E<=T.length);var N,A,w=[];return o(T,t)?(li.scanRange(t+3,r-5,function(){function e(e){o||(o=c),w.push(e),c+=e.length}var r=!0,a=1,o=void 0,c=t-Math.max(T.lastIndexOf("\n",t),0)+4;for(C();5===M();)C();for(4===M()&&(a=0,c=0,C());1!==M();){switch(M()){case 57:0===a||1===a?(i(w),u(c),a=0,r=!1,o=void 0,c++):e(li.getTokenText());break;case 4:w.push(li.getTokenText()),a=0,c=0;break;case 39:var _=li.getTokenText();1===a||2===a?(a=2,e(_)):(a=1,c+=_.length);break;case 71:e(li.getTokenText()),a=2;break;case 5:var l=li.getTokenText();2===a?w.push(l):void 0!==o&&c+l.length>o&&w.push(l.slice(o-c-1)),c+=l.length;break;case 1:break;default:a=2,e(li.getTokenText())}r?C():r=!0}n(w),i(w),A=s()}),A):A}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}(gi=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 71: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;c<t.length;c++){var u=t[c];if(u){if(u.pos===e)return n=t,a=c,o=u,!0;if(u.pos<e&&e<u.end)return i(u,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(230===r.kind||231===r.kind)return 0;if(e.isConstEnumDeclaration(r))return 2;if(238!==r.kind&&237!==r.kind||e.hasModifier(r,1)){if(234===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(233===r.kind){var a=r.body;return a?t(a):1}return 71===r.kind&&r.isInJSDocNamespace?0:1}return 0}function r(t,r){e.performance.mark("beforeBind"),M(t,r),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind")}function n(){function r(t,r){Nt=t,At=r,wt=e.getEmitScriptTarget(At),Wt=n(Nt,r),Gt=e.createMap(),Qt=0,Xt=Nt.isDeclarationFile,Ht=e.objectAllocator.getSymbolConstructor(),Nt.locals||(He(Nt),Nt.symbolCount=Qt,Nt.classifiableNames=Gt),Nt=void 0,At=void 0,wt=void 0,Pt=void 0,Ft=void 0,Ot=void 0,It=void 0,Rt=!1,Mt=void 0,Lt=void 0,Bt=void 0,Jt=void 0,zt=void 0,Kt=void 0,Vt=void 0,Ut=!1,qt=0,$t=0}function n(e,t){return!((void 0===t.alwaysStrict?!t.strict:!t.alwaysStrict)||e.isDeclarationFile)||!!e.externalModuleIndicator}function i(e,t){return Qt++,new Ht(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&&233===a.kind)&&(t.valueDeclaration=r)}}function s(t){var r=e.getNameOfDeclaration(t);if(r){if(e.isAmbientModule(t))return e.isGlobalScopeAugmentation(t)?"__global":'"'+r.text+'"';if(144===r.kind){var n=r.expression;return e.isStringOrNumericLiteral(n)?n.text:(e.Debug.assert(e.isWellKnownSymbolSyntactically(n)),e.getPropertyNameForKnownSymbolName(n.name.text))}return r.text}switch(t.kind){case 152:return"__constructor";case 160:case 155:return"__call";case 161:case 156:return"__new";case 157:return"__index";case 244:return"__export";case 243:return t.isExportEquals?"export=":"default";case 194:if(2===e.getSpecialPropertyAssignmentKind(t))return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 228:case 229:return e.hasModifier(t,512)?"default":void 0;case 279:return e.isJSDocConstructSignature(t)?"__new":"__call";case 146:e.Debug.assert(279===t.parent.kind);var a=t.parent,i=e.indexOf(a.parameters,t);return"arg"+i;case 291:var o=t.parent&&t.parent.parent,s=void 0;if(o&&208===o.kind&&o.declarationList.declarations.length>0){var c=o.declarationList.declarations[0].name;71===c.kind&&(s=c.text)}return s}}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.get(d),_||t.set(d,_=i(0,d)),d&&788448&a&&Gt.set(d,d),_.flags&u)if(_.isReplaceableByMethod)t.set(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||243===n.kind&&!n.isExportEquals)&&(p=e.Diagnostics.A_module_cannot_have_multiple_default_exports)),e.forEach(_.declarations,function(t){Nt.bindDiagnostics.push(e.createDiagnosticForNode(e.getNameOfDeclaration(t)||t,p,c(t)))}),Nt.bindDiagnostics.push(e.createDiagnosticForNode(e.getNameOfDeclaration(n)||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 246===t.kind||237===t.kind&&a?u(Ft.symbol.exports,Ft.symbol,t,r,n):u(Ft.locals,void 0,t,r,n);291===t.kind&&e.Debug.assert(e.isInJavaScriptFile(t));var i=291===t.kind&&t.name&&71===t.name.kind&&t.name.isInJSDocNamespace;if(!e.isAmbientModule(t)&&(a||32&Ft.flags)||i){var o=(107455&r?1048576:0)|(793064&r?2097152:0)|(1920&r?4194304:0),s=u(Ft.locals,void 0,t,o,n);return s.exportSymbol=u(Ft.symbol.exports,Ft.symbol,t,r,n),t.localSymbol=s,s}return u(Ft.locals,void 0,t,r,n)}function l(t,r){var n=Ft,a=Ot;if(1&r?(Ft=Ot=t,32&r&&(Ft.locals=e.createMap()),fe(Ft)):2&r&&(Ot=t,Ot.locals=void 0),4&r){var i=Mt,o=Lt,s=Bt,c=Jt,u=Vt,_=Ut,l=16&r&&!e.hasModifier(t,256)&&!!e.getImmediatelyInvokedFunctionExpression(t);l?Jt=x():(Mt={flags:2},144&r&&(Mt.container=t),Jt=void 0),Lt=void 0,Bt=void 0,Vt=void 0,Ut=!1,d(t),t.flags&=-1409,!(1&Mt.flags)&&8&r&&e.nodeIsPresent(t.body)&&(t.flags|=128,Ut&&(t.flags|=256)),265===t.kind&&(t.flags|=qt),l?(S(Jt,Mt),Mt=w(Jt)):Mt=i,Lt=o,Bt=s,Jt=c,Vt=u,Ut=_}else 64&r?(Rt=!1,d(t),t.flags=Rt?64|t.flags:t.flags&-65):d(t);Ft=n,Ot=a}function d(e){if(Xt)m(e);else if(536870912&e.transformFlags)Xt=!0,m(e),Xt=!1,$t|=e.transformFlags&~F(e.kind);else{var t=$t;$t=0,m(e),$t=t|a(e,$t)}}function p(t){if(void 0!==t)if(Xt)e.forEach(t,He);else{var r=$t;$t=0;for(var n=0,a=0,i=t;a<i.length;a++){var o=i[a];He(o),n|=o.transformFlags&-536870913}t.transformFlags=536870912|n,$t|=r}}function f(t){e.forEachChild(t,He,p)}function m(t){if(t.jsDoc)if(e.isInJavaScriptFile(t))for(var r=0,n=t.jsDoc;r<n.length;r++){var a=n[r];He(a)}else for(var i=0,o=t.jsDoc;i<o.length;i++){var a=o[i];O(t,a)}if(Et(t))return void f(t);switch(t.kind){case 213:B(t);break;case 212:J(t);break;case 214:z(t);break;case 215:case 216:K(t);break;case 211:j(t);break;case 219:case 223:V(t);break;case 218:case 217:W(t);break;case 224:H(t);break;case 221:G(t);break;case 235:X(t);break;case 257:Q(t);break;case 222:$(t);break;case 192:ne(t);break;case 193:ae(t);break;case 194:ie(t);break;case 188:oe(t);break;case 195:se(t);break;case 226:ue(t);break;case 181:de(t);break;case 283:_e(t);break;case 291:le(t);break;default:f(t)}}function g(e){switch(e.kind){case 71:case 99:case 179:return y(e);case 181:return v(e);case 185:return g(e.expression);case 194:return b(e);case 192:return 51===e.operator&&g(e.operand)}return!1}function y(e){return 71===e.kind||99===e.kind||97===e.kind||179===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!(179!==e.expression.kind||!y(e.expression.expression))}function h(e,t){return 189===e.kind&&k(e.expression)&&9===t.kind}function b(e){switch(e.operatorToken.kind){case 58:return y(e.left);case 32:case 33:case 34:case 35:return k(e.left)||k(e.right)||h(e.right,e.left)||h(e.left,e.right);case 93:return k(e.left);case 26:return g(e.right)}return!1}function k(e){switch(e.kind){case 185:return k(e.expression);case 194:switch(e.operatorToken.kind){case 58:return k(e.left);case 26:return k(e.right)}}return y(e)}function x(){return{flags:4,antecedents:void 0}}function C(){return{flags:8,antecedents:void 0}}function D(e){e.flags|=512&e.flags?1024:512}function S(t,r){1&r.flags||e.contains(t.antecedents,r)||((t.antecedents||(t.antecedents=[])).push(r),D(r))}function T(e,t,r){return 1&t.flags?t:r?101===r.kind&&64&e||86===r.kind&&32&e?Yt:g(r)?(D(t),{flags:e,expression:r,antecedent:t}):t:32&e?t:Yt}function E(e,t,r,n){return g(t.expression)?(D(e),{flags:128,switchStatement:t,clauseStart:r,clauseEnd:n,antecedent:e}):e}function N(e,t){return D(e),{flags:16,antecedent:e,node:t}}function A(e,t){return D(e),{flags:256,antecedent:e,node:t}}function w(e){var t=e.antecedents;return t?1===t.length?t[0]:e:Yt}function P(e){var t=e.parent;switch(t.kind){case 211:case 213:case 212:return t.expression===e;case 214:case 195:return t.condition===e}return!1}function I(e){for(;;)if(185===e.kind)e=e.expression;else{if(192!==e.kind||51!==e.operator)return 194===e.kind&&(53===e.operatorToken.kind||54===e.operatorToken.kind);e=e.operand}}function R(e){for(;185===e.parent.kind||192===e.parent.kind&&51===e.parent.operator;)e=e.parent;return!P(e)&&!I(e.parent)}function M(e,t,r){var n=zt,a=Kt;zt=t,Kt=r,He(e),zt=n,Kt=a,e&&I(e)||(S(t,T(32,Mt,e)),S(r,T(64,Mt,e)))}function L(e,t,r){var n=Lt,a=Bt;Lt=t,Bt=r,He(e),Lt=n,Bt=a}function B(e){var t=C(),r=x(),n=x();S(t,Mt),Mt=t,M(e.expression,r,n),Mt=w(r),L(e.statement,n,t),S(t,Mt),Mt=w(n)}function J(t){var r=C(),n=222===t.parent.kind?e.lastOrUndefined(Vt):void 0,a=n?n.continueTarget:x(),i=n?n.breakTarget:x();S(r,Mt),Mt=r,L(t.statement,i,a),S(a,Mt),Mt=w(a),M(t.expression,r,i),Mt=w(i)}function z(e){var t=C(),r=x(),n=x();He(e.initializer),S(t,Mt),Mt=t,M(e.condition,r,n),Mt=w(r),L(e.statement,n,t),He(e.incrementor),S(t,Mt),Mt=w(n)}function K(e){var t=C(),r=x();S(t,Mt),Mt=t,216===e.kind&&He(e.awaitModifier),He(e.expression),S(r,Mt),He(e.initializer),227!==e.initializer.kind&&te(e.initializer),L(e.statement,r,t),S(t,Mt),Mt=w(r)}function j(e){var t=x(),r=x(),n=x();M(e.expression,t,r),Mt=w(t),He(e.thenStatement),S(n,Mt),Mt=w(r),He(e.elseStatement),S(n,Mt),Mt=w(n)}function V(e){He(e.expression),219===e.kind&&(Ut=!0,Jt&&S(Jt,Mt)),Mt=Yt}function U(e){if(Vt)for(var t=0,r=Vt;t<r.length;t++){var n=r[t];if(n.name===e)return n}}function q(e,t,r){var n=218===e.kind?t:r;n&&(S(n,Mt),Mt=Yt)}function W(e){if(He(e.label),e.label){var t=U(e.label.text);t&&(t.referenced=!0,q(e,t.breakTarget,t.continueTarget))}else q(e,Lt,Bt)}function H(e){var t=x(),r=Mt;He(e.tryBlock),S(t,Mt);var n=Mt,a=Yt;if(e.catchClause&&(Mt=r,He(e.catchClause),S(t,Mt),a=Mt),e.finallyBlock){var i={flags:2048,antecedent:r,lock:{}};if(S(t,i),Mt=w(t),He(e.finallyBlock),1&Mt.flags||1&n.flags&&1&a.flags&&(Mt=n===Zt||a===Zt?Zt:Yt),!(1&Mt.flags)){var o={flags:4096,antecedent:Mt};i.lock=o,Mt=o}}else Mt=w(t)}function G(t){var r=x();He(t.expression);var n=Lt,a=jt;Lt=r,jt=Mt,He(t.caseBlock),S(r,Mt);var i=e.forEach(t.caseBlock.clauses,function(e){return 258===e.kind});t.possiblyExhaustive=!i&&!r.antecedents,i||S(r,E(jt,t,0,0)),Lt=n,jt=a,Mt=w(r)}function X(t){var r=$t;$t=0;for(var n=t.clauses,a=Yt,i=0;i<n.length;i++){for(var o=i;!n[i].statements.length&&i+1<n.length;)He(n[i]),i++;var s=x();S(s,E(jt,t.parent,o,i+1)),S(s,a),Mt=w(s);var c=n[i];He(c),a=Mt,1&Mt.flags||i===n.length-1||!At.noFallthroughCasesInSwitch||qe(c,e.Diagnostics.Fallthrough_case_in_switch)}n.transformFlags=536870912|$t,$t|=r}function Q(e){var t=Mt;Mt=jt,He(e.expression),Mt=t,p(e.statements)}function Y(e,t,r){var n={name:e,breakTarget:t,continueTarget:r,referenced:!1};return(Vt||(Vt=[])).push(n),n}function Z(){Vt.pop()}function $(t){var r=C(),n=x();He(t.label),S(r,Mt);var a=Y(t.label.text,n,r);He(t.statement),Z(),a.referenced||At.allowUnusedLabels||Nt.bindDiagnostics.push(e.createDiagnosticForNode(t.label,e.Diagnostics.Unused_label)),t.statement&&212===t.statement.kind||(S(n,Mt),Mt=w(n))}function ee(e){te(194===e.kind&&58===e.operatorToken.kind?e.left:e)}function te(e){if(y(e))Mt=N(Mt,e);else if(177===e.kind)for(var t=0,r=e.elements;t<r.length;t++){var n=r[t];198===n.kind?te(n.expression):ee(n)}else if(178===e.kind)for(var a=0,i=e.properties;a<i.length;a++){var o=i[a];261===o.kind?ee(o.initializer):262===o.kind?te(o.name):263===o.kind&&te(o.expression)}}function re(e,t,r){var n=x();53===e.operatorToken.kind?M(e.left,n,r):M(e.left,t,n),Mt=w(n),He(e.operatorToken),M(e.right,t,r)}function ne(e){if(51===e.operator){var t=zt;zt=Kt,Kt=t,f(e),Kt=zt,zt=t}else f(e),43!==e.operator&&44!==e.operator||te(e.operand)}function ae(e){f(e),43!==e.operator&&44!==e.operator||te(e.operand)}function ie(t){var r=t.operatorToken.kind;if(53===r||54===r)if(R(t)){var n=x();re(t,n,n),Mt=w(n)}else re(t,zt,Kt);else if(f(t),e.isAssignmentOperator(r)&&!e.isAssignmentTarget(t)&&(te(t.left),58===r&&180===t.left.kind)){var a=t.left;k(a.expression)&&(Mt=A(Mt,t))}}function oe(e){f(e),179===e.expression.kind&&te(e.expression)}function se(e){var t=x(),r=x(),n=x();M(e.condition,t,r),Mt=w(t),He(e.questionToken),He(e.whenTrue),S(n,Mt),Mt=w(r),He(e.colonToken),He(e.whenFalse),S(n,Mt),Mt=w(n)}function ce(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];ce(i)}else Mt=N(Mt,t)}function ue(t){f(t),(t.initializer||e.isForInOrOfStatement(t.parent.parent))&&ce(t)}function _e(t){e.forEachChild(t,function(e){291!==e.kind&&He(e)})}function le(t){e.forEachChild(t,function(e){t.fullName&&e===t.name&&71!==t.fullName.kind||He(e)})}function de(t){for(var r=t.expression;185===r.kind;)r=r.expression;if(186===r.kind||187===r.kind?(p(t.typeArguments),p(t.arguments),He(t.expression)):f(t),179===t.expression.kind){var n=t.expression;k(n.expression)&&e.isPushOrUnshiftIdentifier(n.name)&&(Mt=A(Mt,t))}}function pe(t){switch(t.kind){case 199:case 229:case 232:case 178:case 163:case 293:case 275:case 254:return 1;case 230:return 65;case 279:case 233:case 231:case 172:return 33;case 265:return 37;case 151:if(e.isObjectLiteralOrClassExpressionMethod(t))return 173;case 152:case 228:case 150:case 153:case 154:case 155:case 156:case 157:case 160:case 161:return 45;case 186:case 187:return 61;case 234:return 4;case 149:return t.initializer?4:0;case 260:case 214:case 215:case 216:case 235:return 2;case 207:return e.isFunctionLike(t.parent)?0:2}return 0}function fe(e){It&&(It.nextContainer=e),It=e}function me(e,t,r){return ge(e,t,r)}function ge(e,t,r){switch(Ft.kind){case 233:return _(e,t,r);case 265:return ve(e,t,r);case 199:case 229:return ye(e,t,r);case 232:return u(Ft.symbol.exports,Ft.symbol,e,t,r);case 163:case 178:case 230:case 275:case 293:case 254:return u(Ft.symbol.members,Ft.symbol,e,t,r);case 160:case 161:case 155:case 156:case 157:case 151:case 150:case 152:case 153:case 154:case 228:case 186:case 187:case 279:case 231:case 172:return u(Ft.locals,void 0,e,t,r)}}function ye(t,r,n){return e.hasModifier(t,32)?u(Ft.symbol.exports,Ft.symbol,t,r,n):u(Ft.symbol.members,Ft.symbol,t,r,n)}function ve(t,r,n){return e.isExternalModule(Nt)?_(t,r,n):u(Nt.locals,void 0,t,r,n)}function he(e){var t=265===e.kind?e:e.body;if(t&&(265===t.kind||234===t.kind))for(var r=0,n=t.statements;r<n.length;r++){var a=n[r];if(244===a.kind||243===a.kind)return!0}return!1}function be(t){e.isInAmbientContext(t)&&!he(t)?t.flags|=32:t.flags&=-33}function ke(t){if(be(t),e.isAmbientModule(t))if(e.hasModifier(t,1)&&qe(t,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),e.isExternalModuleAugmentation(t))xe(t);else{var r=void 0;if(9===t.name.kind){var n=t.name.text;e.hasZeroOrOneAsteriskCharacter(n)?r=e.tryParsePattern(n):qe(t.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,n)}var a=me(t,512,106639);r&&(Nt.patternAmbientModules||(Nt.patternAmbientModules=[])).push({pattern:r,symbol:a})}else{var i=xe(t);if(0!==i)if(304&t.symbol.flags)t.symbol.constEnumOnlyModule=!1;else{var o=2===i;void 0===t.symbol.constEnumOnlyModule?t.symbol.constEnumOnlyModule=o:t.symbol.constEnumOnlyModule=t.symbol.constEnumOnlyModule&&o}}}function xe(e){var r=t(e),n=0!==r;return me(e,n?512:1024,n?106639:0),r}function Ce(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.set(r.name,r)}function De(t){var r;if(function(e){e[e.Property=1]="Property",e[e.Accessor=2]="Accessor"}(r||(r={})),Wt)for(var n=e.createMap(),a=0,i=t.properties;a<i.length;a++){var o=i[a];if(263!==o.kind&&71===o.name.kind){var s=o.name,c=261===o.kind||262===o.kind||151===o.kind?1:2,u=n.get(s.text);if(u){if(1===c&&1===u){var _=e.getErrorSpanForNode(Nt,s);Nt.bindDiagnostics.push(e.createFileDiagnostic(Nt,_.start,_.length,e.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode))}}else n.set(s.text,c)}}return Ee(t,4096,"__object")}function Se(e){return Ee(e,4096,"__jsxAttributes")}function Te(e,t,r){return me(e,t,r)}function Ee(e,t,r){var n=i(t,r);o(n,e,t)}function Ne(t,r,n){switch(Ot.kind){case 233:_(t,r,n);break;case 265:if(e.isExternalModule(Ft)){_(t,r,n);break}default:Ot.locals||(Ot.locals=e.createMap(),fe(Ot)),u(Ot.locals,void 0,t,r,n)}}function Ae(e){Ne(e,2,107455)}function we(t){Wt&&t.originalKeywordKind>=108&&t.originalKeywordKind<=116&&!e.isIdentifierName(t)&&!e.isInAmbientContext(t)&&(Nt.parseDiagnostics.length||Nt.bindDiagnostics.push(e.createDiagnosticForNode(t,Pe(t),e.declarationNameToString(t))))}function Pe(t){return e.getContainingClass(t)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:Nt.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 Fe(t){Wt&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&Me(t,t.left)}function Oe(e){Wt&&e.variableDeclaration&&Me(e,e.variableDeclaration.name)}function Ie(t){if(Wt&&71===t.expression.kind){var r=e.getErrorSpanForNode(Nt,t.expression);Nt.bindDiagnostics.push(e.createFileDiagnostic(Nt,r.start,r.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Re(e){return 71===e.kind&&("eval"===e.text||"arguments"===e.text)}function Me(t,r){if(r&&71===r.kind){var n=r;if(Re(n)){var a=e.getErrorSpanForNode(Nt,r);Nt.bindDiagnostics.push(e.createFileDiagnostic(Nt,a.start,a.length,Le(t),n.text))}}}function Le(t){return e.getContainingClass(t)?e.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:Nt.externalModuleIndicator?e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:e.Diagnostics.Invalid_use_of_0_in_strict_mode}function Be(e){Wt&&Me(e,e.name)}function Je(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:Nt.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 ze(t){if(wt<2&&265!==Ot.kind&&233!==Ot.kind&&!e.isFunctionLike(Ot)){var r=e.getErrorSpanForNode(Nt,t);Nt.bindDiagnostics.push(e.createFileDiagnostic(Nt,r.start,r.length,Je(t)))}}function Ke(t){Wt&&4&t.numericLiteralFlags&&Nt.bindDiagnostics.push(e.createDiagnosticForNode(t,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}function je(e){Wt&&Me(e,e.operand)}function Ve(e){Wt&&(43!==e.operator&&44!==e.operator||Me(e,e.operand))}function Ue(t){Wt&&qe(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}function qe(t,r,n,a,i){var o=e.getSpanOfTokenAtPosition(Nt,t.pos);Nt.bindDiagnostics.push(e.createFileDiagnostic(Nt,o.start,o.length,r,n,a,i))}function We(t){return"__"+e.indexOf(t.parent.parameters,t)}function He(t){if(t){t.parent=Pt;var r=Wt;if(e.isInJavaScriptFile(t)&&Ge(t),Ye(t),t.kind>142){var n=Pt;Pt=t;var i=pe(t);0===i?d(t):l(t,i),Pt=n}else Xt||0!==(536870912&t.transformFlags)||($t|=a(t,0));Wt=r}}function Ge(e){if(e.jsDoc)for(var t=0,r=e.jsDoc;t<r.length;t++){var n=r[t];if(n.tags)for(var a=0,i=n.tags;a<i.length;a++){var o=i[a];if(291===o.kind){var s=Pt;Pt=n,He(o),Pt=s}}}}function Xe(t){if(!Wt)for(var r=0,n=t;r<n.length;r++){var a=n[r];if(!e.isPrologueDirective(a))return;if(Qe(a))return void(Wt=!0)}}function Qe(t){var r=e.getTextOfNodeFromSourceText(Nt.text,t.expression);return'"use strict"'===r||"'use strict'"===r}function Ye(t){switch(t.kind){case 71:if(t.isInJSDocNamespace){for(var r=t.parent;r&&291!==r.kind;)r=r.parent;Ne(r,524288,793064);break}case 99:return Mt&&(e.isExpression(t)||262===Pt.kind)&&(t.flowNode=Mt),we(t);case 179:Mt&&y(t)&&(t.flowNode=Mt);break;case 194:var n=e.getSpecialPropertyAssignmentKind(t);switch(n){case 1:ct(t);break;case 2:dt(t);break;case 3:ft(t);break;case 4:pt(t);break;case 5:mt(t);break;case 0:break;default:e.Debug.fail("Unknown special property assignment kind")}return Fe(t);case 260:return Oe(t);case 188:return Ie(t);case 8:return Ke(t);case 193:return je(t);case 192:return Ve(t);case 220:return Ue(t);case 169:return void(Rt=!0);case 158:return et(t);case 145:return me(t,262144,530920);case 146:return xt(t);case 226:case 176:return kt(t);case 149:case 148:return Ze(t);case 261:case 262:return St(t,4,0);case 264:return St(t,8,900095);case 263:case 255:for(var a=Ft,i=!1;a.parent;){if(178===a.kind&&194===a.parent.kind&&58===a.parent.operatorToken.kind&&a.parent.left===a){i=!0;break}a=a.parent}return;case 155:case 156:case 157:return me(t,131072,0);case 151:case 150:return St(t,8192|(t.questionToken?67108864:0),e.isObjectLiteralMethod(t)?0:99263);case 228:return Ct(t);case 152:return me(t,16384,0);case 153:return St(t,32768,41919);case 154:return St(t,65536,74687);case 160:case 161:return Ce(t);case 163:case 172:return $e(t);case 178:return De(t);case 186:case 187:return Dt(t);case 181:e.isInJavaScriptFile(t)&&vt(t);break;case 199:case 229:return Wt=!0,ht(t);case 230:return Ne(t,64,792968);case 231:return Ne(t,524288,793064);case 232:return bt(t);case 233:return ke(t);case 254:return Se(t);case 253:return Te(t,4,0);case 237:case 240:case 242:case 246:return me(t,8388608,8388608);case 236:return at(t);case 239:return ot(t);case 244:return it(t);case 243:return nt(t);case 265:return Xe(t.statements),tt();case 207:if(!e.isFunctionLike(t.parent))return;case 234:return Xe(t.statements);case 276:return Ze(t);case 292:return me(t,t.isBracketed||t.typeExpression&&278===t.typeExpression.type.kind?67108868:4,0);case 279:return Ce(t);case 293:case 275:return $e(t);case 291:var o=t.fullName;if(!o||71===o.kind)return Ne(t,524288,793064)}}function Ze(e){return St(e,4|(e.questionToken?67108864:0),0)}function $e(e){return Ee(e,2048,"__type")}function et(e){var t=e.parameterName,r=e.type;t&&71===t.kind&&we(t),t&&169===t.kind&&(Rt=!0),He(r)}function tt(){be(Nt),e.isExternalModule(Nt)&&rt()}function rt(){Ee(Nt,512,'"'+e.removeFileExtension(Nt.fileName)+'"')}function nt(t){if(Ft.symbol&&Ft.symbol.exports){var r=243===t.kind&&e.exportAssignmentIsAlias(t)?8388608:4;u(Ft.symbol.exports,Ft.symbol,t,r,8388660)}else Ee(t,8388608,s(t))}function at(t){if(t.modifiers&&t.modifiers.length&&Nt.bindDiagnostics.push(e.createDiagnosticForNode(t,e.Diagnostics.Modifiers_cannot_appear_here)),265!==t.parent.kind)return void Nt.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?(Nt.symbol.globalExports=Nt.symbol.globalExports||e.createMap(),void u(Nt.symbol.globalExports,Nt.symbol,t,8388608,8388608)):void Nt.bindDiagnostics.push(e.createDiagnosticForNode(t,e.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files)):void Nt.bindDiagnostics.push(e.createDiagnosticForNode(t,e.Diagnostics.Global_module_exports_may_only_appear_in_module_files));
}function it(e){Ft.symbol&&Ft.symbol.exports?e.exportClause||u(Ft.symbol.exports,Ft.symbol,e,33554432,0):Ee(e,33554432,s(e))}function ot(e){e.name&&me(e,8388608,8388608)}function st(e){Nt.commonJsModuleIndicator||(Nt.commonJsModuleIndicator=e,Nt.externalModuleIndicator||rt())}function ct(e){st(e),u(Nt.symbol.exports,Nt.symbol,e.left,7340036,0)}function ut(t){return e.isExportsIdentifier(t)||e.isModuleExportsPropertyAccessExpression(t)||_t(t)}function _t(e){if(71===e.kind){var t=gt(e.text);if(t&&t.valueDeclaration&&226===t.valueDeclaration.kind){var r=t.valueDeclaration;if(r.initializer)return lt(r.initializer)}}return!1}function lt(t){return ut(t)||e.isAssignmentExpression(t,!0)&&(lt(t.left)||lt(t.right))}function dt(t){var r=e.getRightMostAssignedExpression(t.right);return e.isEmptyObjectLiteral(r)||ut(r)?void st(t):(st(t),void u(Nt.symbol.exports,Nt.symbol,t,7340548,0))}function pt(t){e.Debug.assert(e.isInJavaScriptFile(t));var r=e.getThisContainer(t,!1);switch(r.kind){case 228:case 186:r.symbol.members=r.symbol.members||e.createMap(),u(r.symbol.members,r.symbol,t,4,0);break;case 152:case 149:case 151:case 153:case 154:var n=r.parent,a=u(e.hasModifier(r,32)?n.symbol.exports:n.symbol.members,n.symbol,t,4,0);a&&(a.isReplaceableByMethod=!0)}}function ft(e){var t=e.left,r=t.expression,n=r.expression;t.parent=e,n.parent=r,r.parent=t,yt(n.text,t,!0)}function mt(e){var t=e.left,r=t.expression;t.parent=e,r.parent=t,_t(r)?ct(e):yt(r.text,t,!1)}function gt(e){return Ft.symbol&&Ft.symbol.exports&&Ft.symbol.exports.get(e)||Ft.locals&&Ft.locals.get(e)}function yt(t,r,n){var a=gt(t);if(a&&e.isDeclarationOfFunctionOrClassExpression(a)&&(a=a.valueDeclaration.initializer.symbol),a&&48&a.flags){var i=n?a.members||(a.members=e.createMap()):a.exports||(a.exports=e.createMap());u(i,a,r,4,0)}}function vt(t){!Nt.commonJsModuleIndicator&&e.isRequireCall(t,!1)&&st(t)}function ht(t){if(229===t.kind)Ne(t,32,899519);else{var r=t.name?t.name.text:"__class";Ee(t,32,r),t.name&&Gt.set(t.name.text,t.name.text)}var n=t.symbol,a=i(16777220,"prototype"),o=n.exports.get(a.name);o&&(t.name&&(t.name.parent=t),Nt.bindDiagnostics.push(e.createDiagnosticForNode(o.declarations[0],e.Diagnostics.Duplicate_identifier_0,a.name))),n.exports.set(a.name,a),a.parent=n}function bt(t){return e.isConst(t)?Ne(t,128,899967):Ne(t,256,899327)}function kt(t){Wt&&Me(t,t.name),e.isBindingPattern(t.name)||(e.isBlockOrCatchScoped(t)?Ae(t):e.isParameterDeclaration(t)?me(t,1,107455):me(t,1,107454))}function xt(t){if(Wt&&!e.isInAmbientContext(t)&&Me(t,t.name),e.isBindingPattern(t.name)?Ee(t,1,We(t)):me(t,1,107455),e.isParameterPropertyDeclaration(t)){var r=t.parent.parent;u(r.symbol.members,r.symbol,t,4|(t.questionToken?67108864:0),0)}}function Ct(t){Nt.isDeclarationFile||e.isInAmbientContext(t)||e.isAsyncFunction(t)&&(qt|=1024),Be(t),Wt?(ze(t),Ne(t,16,106927)):me(t,16,106927)}function Dt(t){Nt.isDeclarationFile||e.isInAmbientContext(t)||e.isAsyncFunction(t)&&(qt|=1024),Mt&&(t.flowNode=Mt),Be(t);var r=t.name?t.name.text:"__function";return Ee(t,16,r)}function St(t,r,n){return Nt.isDeclarationFile||e.isInAmbientContext(t)||!e.isAsyncFunction(t)||(qt|=1024),Mt&&e.isObjectLiteralOrClassExpressionMethod(t)&&(t.flowNode=Mt),e.hasDynamicName(t)?Ee(t,r,"__computed"):me(t,r,n)}function Tt(e){var r=t(e);return 1===r||2===r&&At.preserveConstEnums}function Et(t){if(!(1&Mt.flags))return!1;if(Mt===Yt){var r=e.isStatementButNotDeclaration(t)&&209!==t.kind||229===t.kind||233===t.kind&&Tt(t)||232===t.kind&&(!e.isConstEnumDeclaration(t)||At.preserveConstEnums);if(r){Mt=Zt;var n=!At.allowUnreachableCode&&!e.isInAmbientContext(t)&&(208!==t.kind||3&e.getCombinedNodeFlags(t.declarationList)||e.forEach(t.declarationList.declarations,function(e){return e.initializer}));n&&qe(t,e.Diagnostics.Unreachable_code_detected)}}return!0}var Nt,At,wt,Pt,Ft,Ot,It,Rt,Mt,Lt,Bt,Jt,zt,Kt,jt,Vt,Ut,qt,Wt,Ht,Gt,Xt,Qt=0,Yt={flags:1},Zt={flags:1},$t=0;return r}function a(e,t){var r=e.kind;switch(r){case 181:return i(e,t);case 182:return s(e,t);case 233:return A(e,t);case 185:return _(e,t);case 194:return c(e,t);case 210:return N(e,t);case 146:return u(e,t);case 187:return x(e,t);case 186:return k(e,t);case 228:return b(e,t);case 226:return D(e,t);case 227:return w(e,t);case 208:return S(e,t);case 222:return T(e,t);case 229:return l(e,t);case 199:return d(e,t);case 259:return p(e,t);case 260:return f(e,t);case 201:return m(e,t);case 152:return g(e,t);case 149:return h(e,t);case 151:return y(e,t);case 153:case 154:return v(e,t);case 237:return E(e,t);case 179:return C(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),91===n.kind&&(r|=67108864),e.transformFlags=536870912|r,r&-537396546}function o(e,t){switch(t){case 97:return!0;case 179:case 180:var r=e.expression,n=r.kind;return 97===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 58===n&&178===a?r|=3272:58===n&&177===a?r|=3264:40!==n&&62!==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 202!==a&&184!==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 85:n|=192;break;case 108: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|=t.asteriskToken?8:16),t.asteriskToken&&(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|=t.asteriskToken?8:16),1048576&r&&(n|=8),163840&r&&(n|=192),t.asteriskToken&&(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|=t.asteriskToken?8:16),1048576&r&&(n|=8),163840&r&&(n|=192),t.asteriskToken&&(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 C(e,t){var r=t,n=e.expression,a=n.kind;return 97===a&&(r|=16384),e.transformFlags=536870912|r,r&-536872258}function D(e,t){var r=t;return r|=8388800,1048576&t&&(r|=8),e.type&&(r|=3),e.transformFlags=536870912|r,r&-536872258}function S(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 T(t,r){var n=r;return 4194304&r&&e.isIterationStatement(t,!0)&&(n|=192),t.transformFlags=536870912|n,n&-536872258}function E(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 120:case 191:n|=24;break;case 114:case 112:case 113:case 117:case 124:case 76:case 232:case 264:case 184:case 202:case 203:case 131:n|=3;break;case 249:case 250:case 251:case 10:case 252:case 253:case 254:case 255:case 256:n|=4;break;case 13:case 14:case 15:case 16:case 196:case 183:case 262:case 115:case 204:n|=192;break;case 9:e.hasExtendedUnicodeEscape&&(n|=192);break;case 8:48&e.numericLiteralFlags&&(n|=192);break;case 216:e.awaitModifier&&(n|=8),n|=192;break;case 197:n|=16777416;break;case 119:case 133:case 130:case 134:case 136:case 122:case 137:case 105:case 145:case 148:case 150: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 167:case 168:case 230:case 231:case 169:case 170:case 171:case 172:case 173:case 236:n=3,a=-3;break;case 144:n|=2097152,16384&r&&(n|=65536);break;case 198:n|=524480;break;case 263:n|=1048584;break;case 97:n|=192;break;case 99:n|=16384;break;case 174:n|=8388800,524288&r&&(n|=1048584),a=537396545;break;case 175:n|=8388800,a=537396545;break;case 176:n|=192,e.dotDotDotToken&&(n|=524288);break;case 147:n|=4099;break;case 178:a=540087617,2097152&r&&(n|=192),65536&r&&(n|=16384),1048576&r&&(n|=8);break;case 177:case 182:a=537396545,524288&r&&(n|=192);break;case 212:case 213:case 214:case 215:4194304&r&&(n|=192);break;case 265:32768&r&&(n|=192);break;case 219:case 217:case 218:n|=33554432}return e.transformFlags=536870912|n,n&~a}function F(e){if(e>=158&&e<=173)return-3;switch(e){case 181:case 182:case 177:return 537396545;case 233:return 574674241;case 146:return 536872257;case 187:return 601249089;case 186:case 228:return 601281857;case 227:return 546309441;case 229:case 199:return 539358529;case 152:return 601015617;case 151:case 153:case 154:return 601015617;case 119:case 133:case 130:case 136:case 134:case 122:case 137:case 105:case 145:case 148:case 150:case 155:case 156:case 157:case 230:case 231:return-3;case 178:return 540087617;case 260:return 537920833;case 174:case 175:return 537396545;default:return 536872257}}function O(t,r){r.parent=t,e.forEachChild(r,function(e){return O(r,e)})}var I;!function(e){e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly"}(I=e.ModuleInstanceState||(e.ModuleInstanceState={})),e.getModuleInstanceState=t;var R;!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"}(R||(R={}));var M=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,r){return{resolvedModule:e&&{resolvedFileName:e.path,extension:e.extension,isExternalLibraryImport:t},failedLookupLocations:r}}function i(t){return!(e.isRootedDiskPath(t)||e.isExternalModuleNameRelative(t))}function o(r,n,a,i){function o(r){if(!e.hasProperty(c,r))return void(i.traceEnabled&&t(i.host,e.Diagnostics.package_json_does_not_have_a_0_field,r));var n=c[r];if("string"!=typeof n)return void(i.traceEnabled&&t(i.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_string_got_1,r,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}var c=s(n,i.host);return r?o("typings")||o("types"):o("main")}function s(e,t){try{var r=t.readFile(e);return r?JSON.parse(r):{}}catch(n){return{}}}function c(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?u(n,r):void 0}function u(t,r){if(!r.directoryExists)return[e.combinePaths(t,U)];var n;return j(e.normalizePath(t),function(t){var a=e.combinePaths(t,U);r.directoryExists(a)&&(n||(n=[])).push(a)}),n}function _(a,i,o,s){function u(){return p&&p.length?(l&&t(s,e.Diagnostics.Resolving_with_primary_search_path_0,p.join(", ")),e.forEach(p,function(r){var i=e.combinePaths(r,a),o=e.getDirectoryPath(i),c=x(o,s);return!c&&l&&t(s,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,o),n(T(V.DtsOnly,i,f,!c,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=F(V.DtsOnly,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=c(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=u(),g=!0;m||(m=_(),g=!1);var y;return m&&(m=b(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 l(t,r){if(t.types)return t.types;var n=[];if(r.directoryExists&&r.getDirectories){var a=c(t,r);if(a)for(var i=0,o=a;i<o.length;i++){var u=o[i];if(r.directoryExists(u))for(var _=0,l=r.getDirectories(u);_<l.length;_++){var d=l[_],p=e.normalizePath(d),f=w(e.combinePaths(u,p)),m=r.fileExists(f)&&null===s(f,r).typings;m||n.push(e.getBaseFileName(p))}}}return n}function d(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(i(e)){var t=c.get(e);return t||(t=o(),c.set(e,t)),t}}function o(){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 p(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=_&&_.get(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=y(n,a,i,o,s);break;case e.ModuleResolutionKind.Classic:l=J(n,a,i,o,s);break;default:e.Debug.fail("Unexpected moduleResolution: "+d)}if(_){_.set(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 f(e,t,r,n,a,o){return i(t)?g(e,t,n,a,o):m(e,t,r,n,a,o)}function m(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,!x(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 k=e.getDirectoryPath(b),C=i(r,b,o,!x(k,s.host),s);if(C)return C}}s.traceEnabled&&t(s.host,e.Diagnostics.Module_resolution_using_rootDirs_has_failed)}}}function g(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);if(void 0!==l)return{path:l,extension:_}}return a(r,u,i,!x(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,!x(e.getDirectoryPath(_),o.host),o)}}function y(t,r,n,a,i){return h(t,e.getDirectoryPath(r),n,a,i,!1)}function v(t,r,n){var a=h(t,r,{moduleResolution:e.ModuleResolutionKind.NodeJs,allowJs:!0},n,void 0,!0),i=a.resolvedModule,o=a.failedLookupLocations;if(!i)throw new Error("Could not resolve JS module "+t+" starting at "+r+". Looked in: "+o.join(", "));return i.resolvedFileName}function h(n,o,s,c,u,_){function l(r){var a=function(e,t,r,n,a){return k(e,t,r,n,a,!0)},s=f(r,n,o,a,p,m);if(s)return K({resolved:s,isExternalLibraryImport:!1});if(i(n)){d&&t(c,e.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,n,V[r]);var _=F(r,n,o,p,m,u);return _&&{value:_.value&&{resolved:{path:b(_.value.path,c,d),extension:_.value.extension},isExternalLibraryImport:!0}}}var l=e.normalizePath(e.combinePaths(o,n)),g=k(r,l,p,!1,m,!0);return g&&K({resolved:g,isExternalLibraryImport:!1})}var d=r(s,c),p=[],m={compilerOptions:s,host:c,traceEnabled:d},g=_?l(V.JavaScript):l(V.TypeScript)||l(V.JavaScript);if(g&&g.value){var y=g.value,v=y.resolved,h=y.isExternalLibraryImport;return a(v,h,p)}return{resolvedModule:void 0,failedLookupLocations:p}}function b(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 k(r,n,a,i,o,s){if(o.traceEnabled&&t(o.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,n,V[r]),!e.pathEndsWithDirectorySeparator(n)){if(!i){var c=e.getDirectoryPath(n);x(c,o.host)||(o.traceEnabled&&t(o.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,c),i=!0)}var u=C(r,n,a,i,o);if(u)return u}if(!i){var _=x(n,o.host);_||(o.traceEnabled&&t(o.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,n),i=!0)}return T(r,n,a,i,o,s)}function x(e,t){return!t.directoryExists||t.directoryExists(e)}function C(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=!x(s,i.host))}switch(r){case V.DtsOnly:return o(".d.ts",e.Extension.Dts);case V.TypeScript:return o(".ts",e.Extension.Ts)||o(".tsx",e.Extension.Tsx)||o(".d.ts",e.Extension.Dts);case V.JavaScript:return o(".js",e.Extension.Js)||o(".jsx",e.Extension.Jsx)}}function S(r,n,a,i){if(!a){if(i.host.fileExists(r))return 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)}n.push(r)}function T(r,n,a,i,o,s){void 0===s&&(s=!0);var c=!i&&x(n,o.host);if(s){var u=w(n);if(c&&o.host.fileExists(u)){var _=E(u,r,n,a,o);if(_)return _}else c&&o.traceEnabled&&t(o.host,e.Diagnostics.File_0_does_not_exist,u),a.push(u)}return C(r,e.combinePaths(n,"index"),a,!c,o)}function E(r,n,a,i,s){s.traceEnabled&&t(s.host,e.Diagnostics.Found_package_json_at_0,r);var c=o(n!==V.JavaScript,r,a,s);if(c){var u=!x(e.getDirectoryPath(c),s.host),_=S(c,i,u,s);if(_){var l=_&&N(n,_);if(l)return l;s.traceEnabled&&t(s.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,_)}var d=n===V.DtsOnly?V.TypeScript:n;return k(d,c,i,u,s,!1)}}function N(t,r){var n=e.tryGetExtensionFromPath(r);return void 0!==n&&A(t,n)?{path:r,extension:n}:void 0}function A(t,r){switch(t){case V.JavaScript:return r===e.Extension.Js||r===e.Extension.Jsx;case V.TypeScript:return r===e.Extension.Ts||r===e.Extension.Tsx||r===e.Extension.Dts;case V.DtsOnly:return r===e.Extension.Dts}}function w(t){return e.combinePaths(t,"package.json")}function P(t,r,n,a,i,o){var s=e.normalizePath(e.combinePaths(n,r));return C(t,s,i,!a,o)||T(t,s,i,!a,o)}function F(e,t,r,n,a,i){return I(e,t,r,n,a,!1,i)}function O(e,t,r,n){return I(V.DtsOnly,e,t,r,n,!0,void 0)}function I(t,r,n,a,i,o,s){var c=s&&s.getOrCreateCacheForModuleName(r);return j(e.normalizeSlashes(n),function(n){if("node_modules"!==e.getBaseFileName(n)){var s=B(c,r,n,i.traceEnabled,i.host);return s?s:K(R(t,r,n,a,i,o))}})}function R(r,n,a,i,o,s){void 0===s&&(s=!1);var c=e.combinePaths(a,"node_modules"),u=x(c,o.host);!u&&o.traceEnabled&&t(o.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,c);var _=s?void 0:P(r,n,c,u,i,o);if(_)return _;if(r!==V.JavaScript){var l=e.combinePaths(c,"@types"),d=u;return u&&!x(l,o.host)&&(o.traceEnabled&&t(o.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),d=!1),P(V.DtsOnly,M(n,o),l,d,i,o)}}function M(r,n){if(e.startsWith(r,"@")){var a=r.replace(e.directorySeparator,q);if(a!==r){var i=a.slice(1);return n.traceEnabled&&t(n.host,e.Diagnostics.Scoped_package_detected_looking_in_0,i),i}}return r}function L(t){var r=e.removePrefix(t,"@types/");return r!==t?r.indexOf("__")!==-1?"@"+r.replace(q,e.directorySeparator):r:t}function B(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 J(t,n,o,s,c){function u(r){var n=f(r,t,p,C,d,l);if(n)return{value:n};var a=c&&c.getOrCreateCacheForModuleName(t);if(!i(t)){var o=e.normalizePath(e.combinePaths(p,t));return K(C(r,o,d,!1,l))}var u=j(p,function(n){var i=B(a,t,n,_,s);if(i)return i;var o=e.normalizePath(e.combinePaths(n,t));return K(C(r,o,d,!1,l))});return u?u:r===V.TypeScript?O(t,p,d,l):void 0}var _=r(o,s),l={compilerOptions:o,host:s,traceEnabled:_},d=[],p=e.getDirectoryPath(n),m=u(V.TypeScript)||u(V.JavaScript);return a(m&&m.value,!1,d)}function z(n,i,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,i,n,c);var _={compilerOptions:o,host:s,traceEnabled:u},l=[],d=R(V.DtsOnly,n,c,l,_);return a(d,!0,l)}function K(e){return void 0!==e?{value:e}:void 0}function j(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 V;!function(e){e[e.TypeScript=0]="TypeScript",e[e.JavaScript=1]="JavaScript",e[e.DtsOnly=2]="DtsOnly"}(V||(V={})),e.moduleHasNonRelativeName=i,e.getEffectiveTypeRoots=c;var U=e.combinePaths("node_modules","@types");e.resolveTypeReferenceDirective=_,e.getAutomaticTypeDirectiveNames=l,e.createModuleResolutionCache=d,e.resolveModuleName=p,e.nodeModuleNameResolver=y,e.resolveJavaScriptModule=v,e.directoryProbablyExists=x;var q="__";e.getPackageNameFromAtTypesDirectory=L,e.classicNameResolver=J,e.loadModuleFromGlobalCache=z}(ts||(ts={}));var ts;!function(e){function t(e){return e.id||(e.id=s,s++),e.id}function r(e){return e.id||(e.id=o,o++),e.id}function n(n,o){function s(){return ob||(ob="React",sv.jsxFactory?(sb=e.parseIsolatedEntityName(sv.jsxFactory,cv),sb&&(ob=bm(sb).text)):sv.reactNamespace&&(ob=sv.reactNamespace)),ob}function _(e,t){return Lm(e,t),mv}function l(t,r,n,a,i){var o=t?e.createDiagnosticForNode(t,r,n,a,i):e.createCompilerDiagnostic(r,n,a,i);ib.add(o)}function d(e,t){rv++;var r=new Zy(134217728|e,t);return r.checkFlags=0,r}function p(e){return 0!==(134217728&e.flags)}function f(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 m(e,t){t.mergeId||(t.mergeId=c,c++),Hh[t.mergeId]=e}function g(t){var r=d(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)),m(r,t),r}function y(t,r){if(t.flags&f(r.flags))if(1024&t.flags)l(e.getNameOfDeclaration(r.declarations[0]),e.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,He(t));else{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(t){l(e.getNameOfDeclaration(t)||t,n,He(r))}),e.forEach(t.declarations,function(t){l(e.getNameOfDeclaration(t)||t,n,He(r))})}else 512&r.flags&&512&t.flags&&t.constEnumOnlyModule&&!r.constEnumOnlyModule&&(t.constEnumOnlyModule=!1),t.flags|=r.flags,r.valueDeclaration&&(!t.valueDeclaration||233===t.valueDeclaration.kind&&233!==r.valueDeclaration.kind)&&(t.valueDeclaration=r.valueDeclaration),e.addRange(t.declarations,r.declarations),r.members&&(t.members||(t.members=e.createMap()),v(t.members,r.members)),r.exports&&(t.exports||(t.exports=e.createMap()),v(t.exports,r.exports)),m(t,r)}function v(e,t){t.forEach(function(t,r){var n=e.get(r);n?(134217728&n.flags||(n=g(n),e.set(r,n)),y(n,t)):e.set(r,t)})}function h(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))v(Mh,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=ce(t,t,n,!0);if(!a)return;a=_e(a),1920&a.flags?(a=134217728&a.flags?a:g(a),y(a,r.symbol)):l(t,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,t.text)}}function b(t,r,n){function a(t,r){return function(n){return ib.add(e.createDiagnosticForNode(n,r,t))}}r.forEach(function(r,i){var o=t.get(i);o?e.forEach(o.declarations,a(i,n)):t.set(i,r)})}function k(e){if(134217728&e.flags)return e;var t=r(e);return Gh[t]||(Gh[t]={})}function x(e){var r=t(e);return Xh[r]||(Xh[r]={flags:0})}function C(e){return 32768&e.flags?e.objectFlags:0}function D(t){return 265===t.kind&&!e.isExternalOrCommonJsModule(t)}function S(t,r,n){if(n){var a=t.get(r);if(a){if(e.Debug.assert(0===(1&e.getCheckFlags(a)),"Should never get an instantiated symbol here."),a.flags&n)return a;if(8388608&a.flags){var i=te(a);if(i===Tv||i.flags&n)return a}}}}function T(t,r){var n=t.parent,a=t.parent.parent,i=S(n.locals,r,107455),o=S(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 E(t,r){function a(t,r){var n=e.getEnclosingBlockScopeContainer(t);switch(t.parent.parent.kind){case 208:case 214:case 216:if(B(r,t,n))return!0}return e.isForInOrOfStatement(t.parent.parent)&&B(r,t.parent.parent.expression,n)}function i(t,r,n){return!!e.findAncestor(t,function(a){if(a===n)return"quit";if(e.isFunctionLike(a))return!0;var i=a.parent&&149===a.parent.kind&&a.parent.initializer===a;if(i)if(32&e.getModifierFlags(a.parent)){if(151===r.kind)return!0}else{var o=149===r.kind&&!(32&e.getModifierFlags(r));if(!o||e.getContainingClass(t)!==e.getContainingClass(r))return!0}})}var o=e.getSourceFileOfNode(t),s=e.getSourceFileOfNode(r);if(o!==s){if(uv&&(o.externalModuleIndicator||s.externalModuleIndicator)||!sv.outFile&&!sv.out||Ks(r)||e.isInAmbientContext(t))return!0;if(i(r,t))return!0;var c=n.getSourceFiles();return e.indexOf(c,o)<=e.indexOf(c,s)}if(t.pos<=r.pos){if(176===t.kind){var u=e.getAncestor(r,176);return u?e.findAncestor(u,e.isBindingElement)!==e.findAncestor(t,e.isBindingElement)||t.pos<u.pos:E(e.getAncestor(t,226),r)}return 226!==t.kind||!a(t,r)}if(246===r.parent.kind)return!0;var _=e.getEnclosingBlockScopeContainer(t);return Ks(r)||i(r,t,_)}function N(e,t,r,n,a,i){return A(e,t,r,n,a,S,i)}function A(t,r,n,a,i,o,s){var c,u,_,d,p=t,f=t,m=!1;e:for(;t;){if(t.locals&&!D(t)&&(c=o(t.locals,r,n))){var g=!0;if(e.isFunctionLike(t)&&u&&u!==t.body&&(n&c.flags&793064&&283!==u.kind&&(g=!!(262144&c.flags)&&(u===t.type||146===u.kind||145===u.kind)),107455&n&&1&c.flags&&(g=146===u.kind||u===t.type&&146===c.valueDeclaration.kind)),g)break e;c=void 0}switch(t.kind){case 265:if(!e.isExternalOrCommonJsModule(t))break;m=!0;case 233:var y=ke(t).exports;if(265===t.kind||e.isAmbientModule(t)){if(c=y.get("default")){var v=e.getLocalSymbolForExportDefault(c);if(v&&c.flags&n&&v.name===r)break e;c=void 0}var h=y.get(r);if(h&&8388608===h.flags&&e.getDeclarationOfKind(h,246))break}if(c=o(y,r,8914931&n))break e;break;case 232:if(c=o(ke(t).exports,r,8&n))break e;break;case 149:case 148:if(e.isClassLike(t.parent)&&!(32&e.getModifierFlags(t))){var b=Se(t.parent);b&&b.locals&&o(b.locals,r,107455&n)&&(_=t)}break;case 229:case 199:case 230:if(c=o(ke(t).members,r,793064&n)){
if(!w(c,t)){c=void 0;break}if(u&&32&e.getModifierFlags(u))return void l(f,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(199===t.kind&&32&n){var k=t.name;if(k&&r===k.text){c=t.symbol;break e}}break;case 144:if(d=t.parent.parent,(e.isClassLike(d)||230===d.kind)&&(c=o(ke(d).members,r,793064&n)))return void l(f,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 151:case 150:case 152:case 153:case 154:case 228:case 187:if(3&n&&"arguments"===r){c=vv;break e}break;case 186:if(3&n&&"arguments"===r){c=vv;break e}if(16&n){var x=t.name;if(x&&r===x.text){c=t.symbol;break e}}break;case 147:t.parent&&146===t.parent.kind&&(t=t.parent),t.parent&&e.isClassElement(t.parent)&&(t=t.parent)}u=t,t=t.parent}if(c&&a&&_v&&(c.isReferenced=!0),c||(c=o(Mh,r,n)),c){if(a){if(_){var C=_.name;return void l(f,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(C),"string"==typeof i?i:e.declarationNameToString(i))}if(f&&(2&n||(32&n||384&n)&&107455===(107455&n))){var S=Ce(c);(2&S.flags||32&S.flags||384&S.flags)&&L(S,f)}if(c&&m&&107455===(107455&n)){var T=c.declarations;T&&1===T.length&&236===T[0].kind&&l(f,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,r)}}return c}if(a&&!(f&&(P(f,r,i)||F(f)||I(f,r,n)||R(f,r,n)||M(f,r,n)))){var E=void 0;s&&qh<Wh&&(E=H_(p,r,n),E&&l(f,s,"string"==typeof i?i:e.declarationNameToString(i),E)),E||l(f,a,"string"==typeof i?i:e.declarationNameToString(i)),qh++}}function w(e,t){for(var r=0,n=e.declarations;r<n.length;r++){var a=n[r];if(145===a.kind&&a.parent===t)return!0}return!1}function P(t,r,n){if(71===t.kind&&qm(t)||Ks(t))return!1;for(var a=e.getThisContainer(t,!0),i=a;i;){if(e.isClassLike(i.parent)){var o=ke(i.parent);if(!o)break;var s=jt(o);if(yn(s,r))return l(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,"string"==typeof n?n:e.declarationNameToString(n),He(o)),!0;if(i===a&&!(32&e.getModifierFlags(i))){var c=vr(o).thisType;if(yn(c,r))return l(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 F(t){var r=O(t),n=!(!r||!oe(r,64,!0));return n&&l(t,e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,e.getTextOfNode(r)),n}function O(t){switch(t.kind){case 71:case 179:return t.parent?O(t.parent):void 0;case 201:return e.Debug.assert(e.isEntityNameExpression(t.expression)),t.expression;default:return}}function I(t,r,n){if(1920===n){var a=ee(N(t,r,792640,void 0,void 0));if(a)return l(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,r),!0}return!1}function R(t,r,n){if(107455&n){if("any"===r||"string"===r||"number"===r||"boolean"===r||"never"===r)return l(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,r),!0;var a=ee(N(t,r,792640,void 0,void 0));if(a&&!(1024&a.flags))return l(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,r),!0}return!1}function M(t,r,n){if(107031&n){var a=ee(N(t,r,1024,void 0,void 0));if(a)return l(t,e.Diagnostics.Cannot_use_namespace_0_as_a_value,r),!0}else if(792640&n){var a=ee(N(t,r,1024,void 0,void 0));if(a)return l(t,e.Diagnostics.Cannot_use_namespace_0_as_a_type,r),!0}return!1}function L(t,r){e.Debug.assert(!!(2&t.flags||32&t.flags||384&t.flags));var n=e.forEach(t.declarations,function(t){return e.isBlockOrCatchScoped(t)||e.isClassLike(t)||232===t.kind?t:void 0});e.Debug.assert(void 0!==n,"Declaration to checkResolvedBlockScopedVariable is undefined"),e.isInAmbientContext(n)||E(n,r)||(2&t.flags?l(r,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,e.declarationNameToString(e.getNameOfDeclaration(n))):32&t.flags?l(r,e.Diagnostics.Class_0_used_before_its_declaration,e.declarationNameToString(e.getNameOfDeclaration(n))):256&t.flags&&l(r,e.Diagnostics.Enum_0_used_before_its_declaration,e.declarationNameToString(e.getNameOfDeclaration(n))))}function B(t,r,n){return r&&!!e.findAncestor(t,function(t){return t===n||e.isFunctionLike(t)?"quit":t===r})}function J(t){if(e.isAliasSymbolDeclaration(t))return 237===t.kind?t:e.findAncestor(t,e.isImportDeclaration)}function z(t){return e.find(t.declarations,e.isAliasSymbolDeclaration)}function K(t,r){return 248===t.moduleReference.kind?_e(se(t,e.getExternalModuleImportEqualsDeclarationExpression(t))):ae(t.moduleReference,r)}function j(t,r){var n=se(t,t.parent.moduleSpecifier);if(n){var a=void 0;if(e.isShorthandAmbientModuleSymbol(n))a=n;else{var i=n.exports.get("export=");a=i?yn(jt(i),"default"):ee(n.exports.get("default"),r)}if(a||lv){if(!a&&lv)return _e(n,r)||ee(n,r)}else l(t.name,e.Diagnostics.Module_0_has_no_default_export,He(n));return a}}function V(e,t){var r=e.parent.parent.moduleSpecifier;return le(se(e,r),r,t)}function U(t,r){if(t===Tv&&r===Tv)return Tv;if(794600&t.flags)return t;var n=d(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 q(e,t,r){if(1536&e.flags)return ee(ge(e).get(t),r)}function W(e,t){if(3&e.flags){var r=e.valueDeclaration.type;if(r)return ee(yn(Li(r),t))}}function H(t,r,n){var a=se(t,t.moduleSpecifier),i=le(a,t.moduleSpecifier,n);if(i){var o=r.propertyName||r.name;if(o.text){if(e.isShorthandAmbientModuleSymbol(a))return a;var s=void 0;s=a&&a.exports&&a.exports.get("export=")?yn(jt(i),o.text):W(i,o.text),s=ee(s,n);var c=q(i,o.text,n);!c&&lv&&"default"===o.text&&(c=_e(a,n)||ee(a,n));var u=c&&s?U(s,c):c||s;return u||l(o,e.Diagnostics.Module_0_has_no_exported_member_1,ie(a),e.declarationNameToString(o)),u}}}function G(e,t){return H(e.parent.parent.parent,e,t)}function X(e,t){return _e(e.parent.symbol,t)}function Q(e,t,r){return e.parent.parent.moduleSpecifier?H(e.parent.parent,e,r):oe(e.propertyName||e.name,t,!1,r)}function Y(e,t){return oe(e.expression,901119,!1,t)}function Z(e,t){switch(e.kind){case 237:return K(e,t);case 239:return j(e,t);case 240:return V(e,t);case 242:return G(e,t);case 246:return Q(e,901119,t);case 243:return Y(e,t);case 236:return X(e,t)}}function $(e,t){return void 0===t&&(t=901119),e&&8388608===(e.flags&(8388608|t))}function ee(e,t){var r=!t&&$(e);return r?te(e):e}function te(t){e.Debug.assert(0!==(8388608&t.flags),"Should only get Alias here.");var r=k(t);if(r.target)r.target===Ev&&(r.target=Tv);else{r.target=Ev;var n=z(t);e.Debug.assert(!!n);var a=Z(n);r.target===Ev?r.target=a||Tv:l(n,e.Diagnostics.Circular_definition_of_import_alias_0,He(t))}return r.target}function re(e){var t=ke(e),r=te(t);if(r){var n=r===Tv||107455&r.flags&&!bg(r);n&&ne(t)}}function ne(t){var r=k(t);if(!r.referenced){r.referenced=!0;var n=z(t);e.Debug.assert(!!n),243===n.kind?Wd(n.expression):246===n.kind?Wd(n.propertyName||n.name):e.isInternalModuleImportEqualsDeclaration(n)&&Wd(n.moduleReference)}}function ae(t,r){return 71===t.kind&&e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),71===t.kind||143===t.parent.kind?oe(t,1920,!1,r):(e.Debug.assert(237===t.parent.kind),oe(t,901119,!1,r))}function ie(e){return e.parent?ie(e.parent)+"."+He(e):He(e)}function oe(t,r,n,a,i){if(!e.nodeIsMissing(t)){var o;if(71===t.kind){var s=1920===r?e.Diagnostics.Cannot_find_namespace_0:e.Diagnostics.Cannot_find_name_0;if(o=N(i||t,t.text,r,n?void 0:s,t),!o)return}else if(143===t.kind||179===t.kind){var c=void 0;if(143===t.kind)c=t.left;else{if(179!==t.kind||185!==t.expression.kind&&!e.isEntityNameExpression(t.expression))return;c=t.expression}var u=143===t.kind?t.right:t.name,_=oe(c,1920,n,!1,i);if(!_||e.nodeIsMissing(u))return;if(_===Tv)return _;if(o=S(ge(_),u.text,r),!o)return void(n||l(u,e.Diagnostics.Namespace_0_has_no_exported_member_1,ie(_),e.declarationNameToString(u)))}else{if(185===t.kind)return e.isEntityNameExpression(t.expression)?oe(t.expression,r,n,a,i):void 0;e.Debug.fail("Unknown entity name kind.")}return e.Debug.assert(0===(1&e.getCheckFlags(o)),"Should never get an instantiated symbol here."),o.flags&r||a?o:te(o)}}function se(t,r){return ce(t,r,e.Diagnostics.Cannot_find_module_0)}function ce(e,t,r,n){if(void 0===n&&(n=!1),9===t.kind||13===t.kind){var a=t;return ue(e,a.text,r,a,n)}}function ue(t,r,a,i,o){void 0===o&&(o=!1);var s=e.escapeIdentifier(r);if(void 0!==s){if(e.startsWith(r,"@types/")){var c=e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,u=e.removePrefix(r,"@types/");l(i,c,u,r)}var _=Nn(s,!0);if(_)return _;var d=e.isExternalModuleNameRelative(s),p=e.getResolvedModule(e.getSourceFileOfNode(t),r),f=p&&e.getResolutionDiagnostic(sv,p),m=p&&!f&&n.getSourceFile(p.resolvedFileName);if(m)return m.symbol?be(m.symbol):void(a&&l(i,e.Diagnostics.File_0_is_not_a_module,m.fileName));if(Qv){var g=e.findBestPatternMatch(Qv,function(e){return e.pattern},s);if(g)return be(g.symbol)}if(d||!p||e.extensionIsTypeScript(p.extension)){if(a)if(f)l(i,f,s,p.resolvedFileName);else{var y=e.tryExtractTypeScriptExtension(s);if(y){var c=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead;l(i,c,y,e.removeExtension(s,y))}else l(i,a,s)}}else if(o){var c=e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;l(i,c,r,p.resolvedFileName)}else if(pv&&a){var v=e.chainDiagnosticMessages(void 0,e.Diagnostics.Try_npm_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,r);v=e.chainDiagnosticMessages(v,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,r,p.resolvedFileName),ib.add(e.createDiagnosticForNodeFromMessageChain(i,v))}}}function _e(e,t){return e&&be(ee(e.exports.get("export="),t))||e}function le(t,r,n){var a=_e(t,n);return n||!a||1539&a.flags||l(r,e.Diagnostics.Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct,He(t)),a}function de(e){return void 0!==e.exports.get("export=")}function pe(e){return Tn(ye(e))}function fe(t){var r=pe(t),n=_e(t);return n!==t&&e.addRange(r,rn(jt(n))),r}function me(e,t){var r=ye(t);if(r)return r.get(e)}function ge(e){return 1536&e.flags?ye(e):e.exports||ov}function ye(e){var t=k(e);return t.resolvedExports||(t.resolvedExports=he(e))}function ve(t,r,n,a){r&&r.forEach(function(r,i){if("default"!==i){var o=t.get(i);if(o){if(n&&a&&o&&ee(o)!==ee(r)){var s=n.get(i);s.exportsWithDuplicate?s.exportsWithDuplicate.push(a):s.exportsWithDuplicate=[a]}}else t.set(i,r),n&&a&&n.set(i,{specifierText:e.getTextOfNode(a.moduleSpecifier)})}})}function he(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.get("__export");if(i){for(var o=e.createMap(),s=e.createMap(),c=0,u=i.declarations;c<u.length;c++){var _=u[c],l=se(_,_.moduleSpecifier),d=r(l);ve(o,d,s,_)}s.forEach(function(t,r){var n=t.exportsWithDuplicate;if("export="!==r&&n&&n.length&&!a.has(r))for(var i=0,o=n;i<o.length;i++){var c=o[i];ib.add(e.createDiagnosticForNode(c,e.Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,s.get(r).specifierText,r))}}),ve(a,o)}return a}}var n=[];return t=_e(t),r(t)||t.exports}function be(e){var t;return e&&e.mergeId&&(t=Hh[e.mergeId])?t:e}function ke(e){return be(e.symbol)}function xe(e){return be(e.parent)}function Ce(e){return e&&0!==(1048576&e.flags)?be(e.exportSymbol):e}function De(e){return!!(107455&e.flags||8388608&e.flags&&107455&te(e).flags)}function Se(t){for(var r=t.members,n=0,a=r;n<a.length;n++){var i=a[n];if(152===i.kind&&e.nodeIsPresent(i.body))return i}}function Te(e){var t=new $y(hv,e);return tv++,t.id=tv,t}function Ee(e,t){var r=Te(e);return r.intrinsicName=t,r}function Ne(e){var t=ni(e);return t.flags|=8,t.intrinsicName="boolean",t}function Ae(e,t){var r=Te(32768);return r.objectFlags=e,r.symbol=t,r}function we(){return ni(e.convertToArray(db.keys(),Pi))}function Pe(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)}function Fe(e){var t;return e.forEach(function(e,r){Pe(r)||(t||(t=[]),De(e)&&t.push(e))}),t||iv}function Oe(e,t,r,n,a,i){return e.members=t,e.properties=Fe(t),e.callSignatures=r,e.constructSignatures=n,a&&(e.stringIndexInfo=a),i&&(e.numberIndexInfo=i),e}function Ie(e,t,r,n,a,i){return Oe(Ae(16,e),t,r,n,a,i)}function Re(t,r){for(var n,a=t;a;a=a.parent){if(a.locals&&!D(a)&&(n=r(a.locals)))return n;switch(a.kind){case 265:if(!e.isExternalOrCommonJsModule(a))break;case 233:if(n=r(ke(a).exports))return n}}return r(Mh)}function Me(e){return 107455===e?107455:1920}function Le(t,r,n,a){function i(e){return o(e,[])}function o(i,s){function c(e,t){if(!Be(e,r,t))return!0;var n=Le(e.parent,r,Me(t),a);return!!n}function u(r,a){if(t===(a||r))return!e.forEach(r.declarations,Ke)&&c(r,n)}function _(r){return u(r.get(t.name))?[t]:e.forEachEntry(r,function(t){if(8388608&t.flags&&"export="!==t.name&&!e.getDeclarationOfKind(t,246)&&(!a||e.forEach(t.declarations,e.isExternalModuleImportEqualsDeclaration))){var r=te(t);if(u(t,r))return[t];var i=r.exports?o(r.exports,s):void 0;if(i&&c(t,Me(n)))return[t].concat(i)}})}if(!e.contains(s,i)){s.push(i);var l=_(i);return s.pop(),l}}if(t&&!Je(t))return Re(r,i)}function Be(t,r,n){var a=!1;return Re(r,function(r){var i=r.get(t.name);return!!i&&(i===t||(i=8388608&i.flags&&!e.getDeclarationOfKind(i,246)?te(i):i,!!(i.flags&n)&&(a=!0,!0)))}),a}function Je(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 149:case 151:case 153:case 154:continue;default:return!1}}return!0}return!1}function ze(t,r,n,a){function i(t){var r=e.findAncestor(t,Ke);return r&&ke(r)}if(t&&r&&!(262144&t.flags)){for(var o=t,s=n;t;){var c=Le(t,r,s,!1);if(c){var u=je(c[0],a);return u?u:{accessibility:1,errorSymbolName:He(o,r,n),errorModuleName:t!==o?He(t,r,1920):void 0}}s=Me(n),t=xe(t)}var _=e.forEach(o.declarations,i);if(_){var l=i(r);if(_!==l)return{accessibility:2,errorSymbolName:He(o,r,n),errorModuleName:He(_)}}return{accessibility:1,errorSymbolName:He(o,r,n)}}return{accessibility:0}}function Ke(t){return e.isAmbientModule(t)||265===t.kind&&e.isExternalOrCommonJsModule(t)}function je(t,r){function n(t){if(!it(t)){var n=J(t);return!(!n||1&e.getModifierFlags(n)||!it(n.parent))&&(r&&(x(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 Ve(t,r){var n;n=162===t.parent.kind||e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)?1156031:143===t.kind||179===t.kind||237===t.parent.kind?1920:793064;var a=bm(t),i=N(r,a.text,n,void 0,void 0);return i&&je(i,!0)||{accessibility:1,errorSymbolName:e.getTextOfNode(a),errorNode:a}}function Ue(t,r){t.writeKeyword(e.tokenToString(r))}function qe(t,r){t.writePunctuation(e.tokenToString(r))}function We(e){e.writeSpace(" ")}function He(t,r,n){var a=e.getSingleLineStringWriter();at().buildSymbolDisplay(t,a,r,n);var i=a.string();return e.releaseStringWriter(a),i}function Ge(t,r,n,a){var i=e.getSingleLineStringWriter();at().buildSignatureDisplay(t,i,r,n,a);var o=i.string();return e.releaseStringWriter(i),o}function Xe(t,r,n){function a(t){var r=e.NodeBuilderFlags.None;return t?(8&t&&(r|=e.NodeBuilderFlags.NoTruncation),256&t&&(r|=e.NodeBuilderFlags.UseFullyQualifiedType),4096&t&&(r|=e.NodeBuilderFlags.SuppressAnyReturnType),1&t&&(r|=e.NodeBuilderFlags.WriteArrayAsGenericType),64&t&&(r|=e.NodeBuilderFlags.WriteTypeArgumentsOfSignature),r):r}var i=gv.typeToTypeNode(t,r,a(n)|e.NodeBuilderFlags.IgnoreErrors|e.NodeBuilderFlags.WriteTypeParametersInQualifiedName);e.Debug.assert(void 0!==i,"should always get typenode");var o={removeComments:!0},s=e.createTextWriter(""),c=e.createPrinter(o),u=r&&e.getSourceFileOfNode(r);c.writeNode(3,i,u,s);var _=s.getText(),l=sv.noErrorTruncation||8&n?void 0:100;return l&&_.length>=l?_.substr(0,l-"...".length)+"...":_}function Qe(){function t(e,t){return{enclosingDeclaration:e,flags:t,encounteredError:!1,symbolStack:void 0}}function r(t,s){function _(t){e.Debug.assert(!!(32768&t.flags));var n=t.declaration&&t.declaration.readonlyToken?e.createToken(131):void 0,a=t.declaration&&t.declaration.questionToken?e.createToken(55):void 0,i=o(Hr(t),s),c=r(Xr(t),s),u=e.createMappedTypeNode(n,i,a,c);return e.setEmitFlags(u,1)}function l(t){function r(){var t=!!(8192&n.flags&&e.forEach(n.declarations,function(t){return 32&e.getModifierFlags(t)})),r=!!(16&n.flags)&&(n.parent||e.forEach(n.declarations,function(e){return 265===e.parent.kind||234===e.parent.kind}));if(t||r)return e.contains(s.symbolStack,n)}var n=t.symbol;if(n){if(32&n.flags&&!Mt(n)||896&n.flags||r())return p(n,107455);if(e.contains(s.symbolStack,n)){var a=et(t);if(a){var i=c(a,s,793064,!1);return e.createTypeReferenceNode(i,void 0)}return e.createKeywordTypeNode(119)}s.symbolStack||(s.symbolStack=[]),s.symbolStack.push(n);var o=d(t);return s.symbolStack.pop(),o}return d(t)}function d(t){if(32&t.objectFlags&&278528&Gr(t).flags)return _(t);var r=Zr(t);if(!r.properties.length&&!r.stringIndexInfo&&!r.numberIndexInfo){if(!r.callSignatures.length&&!r.constructSignatures.length)return e.setEmitFlags(e.createTypeLiteralNode(void 0),1);if(1===r.callSignatures.length&&!r.constructSignatures.length){var n=r.callSignatures[0],a=i(n,160,s);return a}if(1===r.constructSignatures.length&&!r.callSignatures.length){var n=r.constructSignatures[0],a=i(n,161,s);return a}}var o=s.flags;s.flags|=e.NodeBuilderFlags.InObjectTypeLiteral;var c=y(r);s.flags=o;var u=e.createTypeLiteralNode(c);return e.setEmitFlags(u,1)}function p(t,r){var n=c(t,s,r,!1);return e.createTypeQueryNode(n)}function f(t){var r=32&t.flags||!Pe(t.name)?c(t,s,793064,!1):e.createIdentifier("");return r}function m(t){var a=t.typeArguments||iv;if(t.target===$v){if(s.flags&e.NodeBuilderFlags.WriteArrayAsGenericType){var i=r(a[0],s);return e.createTypeReferenceNode("Array",[i])}var o=r(a[0],s);return e.createArrayTypeNode(o)}if(8&t.target.objectFlags){if(a.length>0){var c=n(a.slice(0,ra(t)),s);if(c&&c.length>0)return e.createTupleTypeNode(c)}return void(s.encounteredError||s.flags&e.NodeBuilderFlags.AllowEmptyTuple||(s.encounteredError=!0))}var u=t.target.outerTypeParameters,_=0,l=void 0;if(u)for(var d=u.length;_<d;){var p=_,m=Yn(u[_]);do _++;while(_<d&&Yn(u[_])===m);if(!e.rangeEquals(u,a,p,_)){var y=n(a.slice(p,_),s),v=y&&e.createNodeArray(y),h=f(m);(71===h.kind?h:h.right).typeArguments=v,l?(e.Debug.assert(!l.right),l=g(l,h),l=e.createQualifiedName(l,void 0)):l=e.createQualifiedName(h,void 0)}}var b=void 0,k=f(t.symbol);l?(e.Debug.assert(!l.right),l=g(l,k),b=l):b=k;var x=void 0;if(a.length>0){var C=(t.target.typeParameters||iv).length;x=n(a.slice(_,C),s)}if(x){var D=71===b.kind?b:b.right;D.typeArguments=void 0}return e.createTypeReferenceNode(b,x)}function g(t,r){if(e.Debug.assert(void 0===t.right),71===r.kind)return t.right=r,t;for(var n=r;71!==n.left.kind;)n=n.left;return t.right=n.left,n.left=t,r}function y(t){for(var n=[],o=0,u=t.callSignatures;o<u.length;o++){var _=u[o];n.push(i(_,155,s))}for(var l=0,d=t.constructSignatures;l<d.length;l++){var _=d[l];n.push(i(_,156,s))}t.stringIndexInfo&&n.push(a(t.stringIndexInfo,0,s)),t.numberIndexInfo&&n.push(a(t.numberIndexInfo,1,s));var p=t.properties;if(!p)return n;for(var f=0,m=p;f<m.length;f++){var g=m[f],y=jt(g),v=s.enclosingDeclaration;s.enclosingDeclaration=void 0;var h=c(g,s,107455,!0);s.enclosingDeclaration=v;var b=67108864&g.flags?e.createToken(55):void 0;if(8208&g.flags&&!$r(y).length)for(var k=hn(y,0),x=0,C=k;x<C.length;x++){var _=C[x],D=i(_,150,s);D.name=h,D.questionToken=b,n.push(D)}else{var S=y?r(y,s):e.createKeywordTypeNode(119),T=pd(g)?[e.createToken(131)]:void 0,E=e.createPropertySignature(T,h,b,S,void 0);n.push(E)}}return n.length?n:void 0}var v=s.flags&e.NodeBuilderFlags.InTypeAlias;if(s.flags&=~e.NodeBuilderFlags.InTypeAlias,!t)return void(s.encounteredError=!0);if(1&t.flags)return e.createKeywordTypeNode(119);if(2&t.flags)return e.createKeywordTypeNode(136);if(4&t.flags)return e.createKeywordTypeNode(133);if(8&t.flags)return e.createKeywordTypeNode(122);if(256&t.flags&&!(65536&t.flags)){var h=xe(t.symbol),b=c(h,s,793064,!1),k=vr(h)===t?b:e.createQualifiedName(b,u(t.symbol,s));return e.createTypeReferenceNode(k,void 0)}if(272&t.flags){var x=c(t.symbol,s,793064,!1);return e.createTypeReferenceNode(x,void 0)}if(32&t.flags)return e.createLiteralTypeNode(e.setEmitFlags(e.createLiteral(t.value),16777216));if(64&t.flags)return e.createLiteralTypeNode(e.createLiteral(t.value));if(128&t.flags)return"true"===t.intrinsicName?e.createTrue():e.createFalse();if(1024&t.flags)return e.createKeywordTypeNode(105);if(2048&t.flags)return e.createKeywordTypeNode(139);if(4096&t.flags)return e.createKeywordTypeNode(95);if(8192&t.flags)return e.createKeywordTypeNode(130);if(512&t.flags)return e.createKeywordTypeNode(137);if(16777216&t.flags)return e.createKeywordTypeNode(134);if(16384&t.flags&&t.isThisType)return s.flags&e.NodeBuilderFlags.InObjectTypeLiteral&&(s.encounteredError||s.flags&e.NodeBuilderFlags.AllowThisInObjectLiteral||(s.encounteredError=!0)),e.createThis();var D=C(t);if(4&D)return e.Debug.assert(!!(32768&t.flags)),m(t);if(16384&t.flags||3&D){var x=c(t.symbol,s,793064,!1);return e.createTypeReferenceNode(x,void 0)}if(!v&&t.aliasSymbol&&0===ze(t.aliasSymbol,s.enclosingDeclaration,793064,!1).accessibility){var x=f(t.aliasSymbol),S=n(t.aliasTypeArguments,s);return e.createTypeReferenceNode(x,S)}if(196608&t.flags){var T=65536&t.flags?Ze(t.types):t.types,E=n(T,s);if(E&&E.length>0){var N=e.createUnionOrIntersectionTypeNode(65536&t.flags?166:167,E);return N}return void(s.encounteredError||s.flags&e.NodeBuilderFlags.AllowEmptyUnionOrIntersection||(s.encounteredError=!0))}if(48&D)return e.Debug.assert(!!(32768&t.flags)),l(t);if(262144&t.flags){var A=t.type,w=r(A,s);return e.createTypeOperatorNode(w)}if(524288&t.flags){var P=r(t.objectType,s),w=r(t.indexType,s);return e.createIndexedAccessTypeNode(P,w)}e.Debug.fail("Should be unreachable.")}function n(t,n){if(e.some(t)){for(var a=[],i=0;i<t.length;++i){var o=t[i],s=r(o,n);s&&a.push(s)}return a}}function a(t,n,a){var i=e.getNameFromIndexInfo(t)||"x",o=e.createKeywordTypeNode(0===n?136:133),s=e.createParameter(void 0,void 0,void 0,i,void 0,o,void 0),c=r(t.type,a);return e.createIndexSignature(void 0,t.isReadonly?[e.createToken(131)]:void 0,[s],c)}function i(t,n,a){var i=t.typeParameters&&t.typeParameters.map(function(e){return o(e,a)}),c=t.parameters.map(function(e){return s(e,a)});if(t.thisParameter){var u=s(t.thisParameter,a);c.unshift(u)}var _;if(t.typePredicate){var l=t.typePredicate,d=1===l.kind?e.setEmitFlags(e.createIdentifier(l.parameterName),16777216):e.createThisTypeNode(),p=r(l.type,a);_=e.createTypePredicateNode(d,p)}else{var f=Jn(t);_=f&&r(f,a)}return a.flags&e.NodeBuilderFlags.SuppressAnyReturnType?_&&119===_.kind&&(_=void 0):_||(_=e.createKeywordTypeNode(119)),e.createSignatureDeclaration(n,i,c,_)}function o(t,n){var a=c(t.symbol,n,793064,!0),i=Qn(t),o=i&&r(i,n),s=dn(t),u=s&&r(s,n);return e.createTypeParameterDeclaration(a,o,u)}function s(t,n){function a(t){function r(t){var n=e.visitEachChild(t,r,e.nullTransformationContext,void 0,r),a=e.nodeIsSynthesized(n)?n:e.getSynthesizedClone(n);return 176===a.kind&&(a.initializer=void 0),e.setEmitFlags(a,16777217)}return r(t)}var i=e.getDeclarationOfKind(t,146);if(p(t)&&t.isRestParameter)return e.createParameter(void 0,void 0,t.isRestParameter?e.createToken(24):void 0,"args",void 0,r(oh,n),void 0);var o=i.modifiers&&i.modifiers.map(e.getSynthesizedClone),s=e.isRestParameter(i)?e.createToken(24):void 0,c=i.name?71===i.name.kind?e.setEmitFlags(e.getSynthesizedClone(i.name),16777216):a(i.name):t.name,u=An(i)?e.createToken(55):void 0,_=jt(t);Cg(i)&&(_=ps(_,2048));var l=r(_,n),d=e.createParameter(void 0,o,s,c,u,l,void 0);return d}function c(t,r,a,i){function o(t,a){e.Debug.assert(t&&0<=a&&a<t.length);var i,s=t[a];if(r.flags&e.NodeBuilderFlags.WriteTypeParametersInQualifiedName&&a>0){var c=t[a-1],_=void 0;if(1&e.getCheckFlags(s))_=Qt(c);else{var l=am(c);524384&l.flags&&(_=Xt(s))}i=n(_,r)}var d=u(s,r),p=e.setEmitFlags(e.createIdentifier(d,i),16777216);return a>0?e.createQualifiedName(o(t,a-1),p):p}function s(t,n,a){var i,o=Le(t,r.enclosingDeclaration,n,!1);if(!o||Be(o[0],r.enclosingDeclaration,1===o.length?n:Me(n))){var c=xe(o?o[0]:t);if(c){var u=s(c,Me(n),!1);u&&(i=c,o=u.concat(o||[t]))}}return o?o:!a&&(!i&&e.forEach(t.declarations,Ke)||6144&t.flags)?void 0:[t]}var c,_=262144&t.flags;return!_&&(r.enclosingDeclaration||r.flags&e.NodeBuilderFlags.UseFullyQualifiedType)?(c=s(t,a,!0),e.Debug.assert(c&&c.length>0)):c=[t],!i||1===c.length||r.encounteredError||r.flags&e.NodeBuilderFlags.AllowQualifedNameInPlaceOfIdentifier||(r.encounteredError=!0),o(c,c.length-1)}function u(t,r){var n=e.firstOrUndefined(t.declarations);if(n){var a=e.getNameOfDeclaration(n);if(a)return e.declarationNameToString(a);if(n.parent&&226===n.parent.kind)return e.declarationNameToString(n.parent.name);switch(r.encounteredError||r.flags&e.NodeBuilderFlags.AllowAnonymousIdentifier||(r.encounteredError=!0),n.kind){case 199:return"(Anonymous class)";case 186:case 187:return"(Anonymous function)"}}return t.name}return{typeToTypeNode:function(e,n,a){var i=t(n,a),o=r(e,i),s=i.encounteredError?void 0:o;return s},indexInfoToIndexSignatureDeclaration:function(e,r,n,i){var o=t(n,i),s=a(e,r,o),c=o.encounteredError?void 0:s;return c},signatureToSignatureDeclaration:function(e,r,n,a){var o=t(n,a),s=i(e,r,o),c=o.encounteredError?void 0:s;return c}}}function Ye(t,r,n){var a=e.getSingleLineStringWriter();at().buildTypePredicateDisplay(t,a,r,n);var i=a.string();return e.releaseStringWriter(a),i}function Ze(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?Jv:pr(a);if(65536&i.flags){var 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(Ov),2048&r&&t.push(Pv),t||e}function $e(e){return 8===e?"private":16===e?"protected":"public"}function et(t){if(t.symbol&&2048&t.symbol.flags){var r=e.findAncestor(t.symbol.declarations[0].parent,function(e){return 168!==e.kind});if(231===r.kind)return ke(r)}}function tt(t){return t&&t.parent&&234===t.parent.kind&&e.isExternalModuleAugmentation(t.parent.parent)}function rt(t){return 32&t.flags?'"'+e.escapeString(t.value)+'"':""+t.value}function nt(t){if(t.declarations&&t.declarations.length){var r=t.declarations[0],n=e.getNameOfDeclaration(r);if(n)return e.declarationNameToString(n);if(r.parent&&226===r.parent.kind)return e.declarationNameToString(r.parent.name);switch(r.kind){case 199:return"(Anonymous class)";case 186:case 187:return"(Anonymous function)"}}return t.name}function at(){function t(e,t){t.writeSymbol(nt(e),e)}function r(t,r){var n=nt(t),a=n.charCodeAt(0),i=!e.isIdentifierStart(a,cv);i?(qe(r,21),e.isSingleOrDoubleQuote(a)?r.writeStringLiteral(n):r.writeSymbol(n,t),qe(r,22)):(qe(r,23),r.writeSymbol(n,t))}function n(n,a,o,s,c,u){function _(n){if(p){if(1&c)if(1&e.getCheckFlags(n)){var s=Qt(8388608&p.flags?te(p):p);d(s,n.mapper,a,o)}else i(p,a,o);r(n,a)}else t(n,a);p=n}function l(t,r,n){var a=Le(t,o,r,!!(2&c));if(!a||Be(a[0],o,1===a.length?r:Me(r))){var i=xe(a?a[0]:t);i&&l(i,Me(r),!1)}if(a)for(var s=0,u=a;s<u.length;s++){var d=u[s];_(d)}else!n&&(!p&&e.forEach(t.declarations,Ke)||6144&t.flags)||_(t)}var p;a.trackSymbol(n,o,s);var f=262144&n.flags,m=256&u;f||!o&&!m?_(n):l(n,s,!0)}function a(r,a,i,o,s){function c(r,s){var u=s&-1025;if(16793231&r.flags)a.writeKeyword(32&o||!ft(r)?r.intrinsicName:"any");else if(16384&r.flags&&r.isThisType)D&&a.reportInaccessibleThisError(),a.writeKeyword("this");else if(4&C(r))l(r,u);else if(256&r.flags&&!(65536&r.flags)){var f=xe(r.symbol);n(f,a,i,793064,0,u),vr(f)!==r&&(qe(a,23),t(r.symbol,a))}else if(3&C(r)||16656&r.flags)n(r.symbol,a,i,793064,0,u);else if(1024&s||!r.aliasSymbol||0!==ze(r.aliasSymbol,i,793064,!1).accessibility)196608&r.flags?d(r,u):48&C(r)?p(r,u):96&r.flags?a.writeStringLiteral(rt(r)):262144&r.flags?(128&s&&qe(a,19),a.writeKeyword("keyof"),We(a),c(r.type,128),128&s&&qe(a,20)):524288&r.flags?(c(r.objectType,128),qe(a,21),c(r.indexType,0),qe(a,22)):(qe(a,17),We(a),qe(a,24),We(a),qe(a,18));else{var m=r.aliasTypeArguments;_(r.aliasSymbol,m,0,e.length(m),u)}}function u(e,t){for(var r=0;r<e.length;r++)r>0&&(26!==t&&We(a),qe(a,t),We(a)),c(e[r],26===t?0:128)}function _(e,t,r,o,s){if((32&e.flags||!Pe(e.name))&&n(e,a,i,793064,0,s),r<o){for(qe(a,27),c(t[r],512),r++;r<o;)qe(a,26),We(a),c(t[r],0),r++;qe(a,29)}}function l(t,r){var n=t.typeArguments||iv;if(t.target!==$v||1&r)if(8&t.target.objectFlags)qe(a,21),u(t.typeArguments.slice(0,ra(t)),26),qe(a,22);else if(16384&r&&t.symbol.valueDeclaration&&199===t.symbol.valueDeclaration.kind)p(ur(t.symbol),r);else{var i=t.target.outerTypeParameters,o=0;if(i)for(var s=i.length;o<s;){var l=o,d=Yn(i[o]);do o++;while(o<s&&Yn(i[o])===d);e.rangeEquals(i,n,l,o)||(_(d,n,l,o,r),qe(a,23))}var f=(t.target.typeParameters||iv).length;_(t.symbol,n,o,f,r)}else c(n[0],128),qe(a,21),qe(a,22)}function d(e,t){128&t&&qe(a,19),65536&e.flags?u(Ze(e.types),49):u(e.types,48),128&t&&qe(a,20)}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 265===e.parent.kind||234===e.parent.kind}));if(t||n)return!!(4&r)||e.contains(s,c)}var c=t.symbol;if(c)if(32&c.flags&&!Mt(c)&&!(199===c.valueDeclaration.kind&&16384&r)||896&c.flags)f(t,r);else if(o())f(t,r);else if(e.contains(s,c)){var u=et(t);u?n(u,a,i,793064,0,r):Ue(a,119)}else{s||(s=[]);var _=32768&t.flags&&16&C(t)&&t.symbol&&32&t.symbol.flags;_?h(t,r):(s.push(c),h(t,r),s.pop())}else h(t,r)}function f(e,t){Ue(a,103),We(a),n(e.symbol,a,i,107455,0,t)}function m(e){pd(e)&&(Ue(a,131),We(a)),n(e,a),67108864&e.flags&&qe(a,55)}function g(e,t){if(128&t)return!0;if(512&t){var r=e.target&&64&t?e.target.typeParameters:e.typeParameters;return r&&0!==r.length}return!1}function h(e,t){if(32&e.objectFlags&&278528&Gr(e).flags)return void k(e);var r=Zr(e);if(!r.properties.length&&!r.stringIndexInfo&&!r.numberIndexInfo){if(!r.callSignatures.length&&!r.constructSignatures.length)return qe(a,17),void qe(a,18);if(1===r.callSignatures.length&&!r.constructSignatures.length){var n=g(r.callSignatures[0],t);return n&&qe(a,19),y(r.callSignatures[0],a,i,16|x,void 0,s),void(n&&qe(a,20))}if(1===r.constructSignatures.length&&!r.callSignatures.length)return 128&t&&qe(a,19),Ue(a,94),We(a),y(r.constructSignatures[0],a,i,16|x,void 0,s),void(128&t&&qe(a,20))}var o=D;D=!0,qe(a,17),a.writeLine(),a.increaseIndent(),b(r),a.decreaseIndent(),qe(a,18),D=o}function b(t){for(var r=0,n=t.callSignatures;r<n.length;r++){var u=n[r];y(u,a,i,x,void 0,s),qe(a,25),a.writeLine()}for(var _=0,l=t.constructSignatures;_<l.length;_++){var u=l[_];y(u,a,i,x,1,s),qe(a,25),a.writeLine()}v(t.stringIndexInfo,a,0,i,o,s),v(t.numberIndexInfo,a,1,i,o,s);for(var d=0,p=t.properties;d<p.length;d++){var f=p[d];if(16384&o){if(16777216&f.flags)continue;24&e.getDeclarationModifierFlagsFromSymbol(f)&&a.reportPrivateInBaseOfClassExpression(f.name)}var g=jt(f);if(8208&f.flags&&!$r(g).length)for(var h=hn(g,0),b=0,k=h;b<k.length;b++){var u=k[b];m(f),y(u,a,i,x,void 0,s),qe(a,25),a.writeLine()}else m(f),qe(a,56),We(a),c(g,16384&o),qe(a,25),a.writeLine()}}function k(e){qe(a,17),a.writeLine(),a.increaseIndent(),e.declaration.readonlyToken&&(Ue(a,131),We(a)),qe(a,21),t(Hr(e).symbol,a),We(a),Ue(a,92),We(a),c(Gr(e),0),qe(a,22),e.declaration.questionToken&&qe(a,55),qe(a,56),We(a),c(Xr(e),0),qe(a,25),a.writeLine(),a.decreaseIndent(),qe(a,18)}var x=16416&o,D=!1;return c(r,o)}function i(e,t,r,n){var a=am(e);(32&a.flags||64&a.flags||524288&a.flags)&&_(Xt(e),t,r,n)}function o(e,r,n,i,o){
t(e.symbol,r);var s=on(e);s&&(We(r),Ue(r,85),We(r),a(s,r,n,i,o));var c=dn(e);c&&(We(r),qe(r,58),We(r),a(c,r,n,i,o))}function s(r,n,i,o,s){var u=r.valueDeclaration;(u?e.isRestParameter(u):p(r)&&r.isRestParameter)&&qe(n,24),u&&e.isBindingPattern(u.name)?c(u.name,n,i,o,s):t(r,n),u&&An(u)&&qe(n,55),qe(n,56),We(n);var _=jt(r);u&&Cg(u)&&(_=ps(_,2048)),a(_,n,i,o,s)}function c(e,t,r,n,a){if(174===e.kind)qe(t,17),l(e.elements,t,function(e){return u(e,t,r,n,a)}),qe(t,18);else if(175===e.kind){qe(t,21);var i=e.elements;l(i,t,function(e){return u(e,t,r,n,a)}),i&&i.hasTrailingComma&&qe(t,26),qe(t,22)}}function u(r,n,a,i,o){e.isOmittedExpression(r)||(e.Debug.assert(176===r.kind),r.propertyName&&(n.writeProperty(e.getTextOfNode(r.propertyName)),qe(n,56),We(n)),e.isBindingPattern(r.name)?c(r.name,n,a,i,o):(r.dotDotDotToken&&qe(n,24),t(r.symbol,n)))}function _(e,t,r,n,a){e&&e.length&&(qe(t,27),l(e,t,function(e){return o(e,t,r,n,a)}),qe(t,29))}function l(e,t,r){for(var n=0;n<e.length;n++)n>0&&(qe(t,26),We(t)),r(e[n])}function d(e,t,r,n){if(e&&e.length){qe(r,27);for(var i=512,o=0;o<e.length;o++)o>0&&(qe(r,26),We(r),i=0),a(t(e[o]),r,n,i);qe(r,29)}}function f(e,t,r,n,a,i){qe(r,19),e&&s(e,r,n,a,i);for(var o=0;o<t.length;o++)(o>0||e)&&(qe(r,26),We(r)),s(t[o],r,n,a,i);qe(r,20)}function m(t,r,n,i,o){e.isIdentifierTypePredicate(t)?r.writeParameter(t.parameterName):Ue(r,99),We(r),Ue(r,126),We(r),a(t.type,r,n,i,o)}function g(e,t,r,n,i){var o=Jn(e);4096&n&&ft(o)||(16&n?(We(t),qe(t,36)):qe(t,56),We(t),e.typePredicate?m(e.typePredicate,t,r,n,i):a(o,t,r,n,i))}function y(e,t,r,n,a,i){1===a&&(Ue(t,94),We(t)),e.target&&64&n?d(e.target.typeParameters,e.mapper,t,r):_(e.typeParameters,t,r,n,i),f(e.thisParameter,e.parameters,t,r,n,i),g(e,t,r,n,i)}function v(t,r,n,i,o,s){if(t){switch(t.isReadonly&&(Ue(r,131),We(r)),qe(r,21),r.writeParameter(t.declaration?e.declarationNameToString(t.declaration.parameters[0].name):"x"),qe(r,56),We(r),n){case 1:Ue(r,133);break;case 0:Ue(r,136)}qe(r,22),qe(r,56),We(r),a(t.type,r,i,o,s),qe(r,25),r.writeLine()}}return _b||(_b={buildSymbolDisplay:n,buildTypeDisplay:a,buildTypeParameterDisplay:o,buildTypePredicateDisplay:m,buildParameterDisplay:s,buildDisplayForParametersAndDelimiters:f,buildDisplayForTypeParametersAndDelimiters:_,buildTypeParameterDisplayFromSymbol:i,buildSignatureDisplay:y,buildIndexSignatureDisplay:v,buildReturnTypeDisplay:g})}function it(t){function r(){switch(t.kind){case 176:return it(t.parent.parent);case 226:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 233:case 229:case 230:case 231:case 228:case 232:case 237:if(e.isExternalModuleAugmentation(t))return!0;var r=lt(t);return 1&e.getCombinedModifierFlags(t)||237!==t.kind&&265!==r.kind&&e.isInAmbientContext(r)?it(r):D(r);case 149:case 148:case 153:case 154:case 151:case 150:if(24&e.getModifierFlags(t))return!1;case 152:case 156:case 155:case 157:case 146:case 234:case 160:case 161:case 163:case 159:case 164:case 165:case 166:case 167:case 168:return it(t.parent);case 239:case 240:case 242:return!1;case 145:case 265:case 236:return!0;case 243:return!1;default:return!1}}if(t){var n=x(t);return void 0===n.isVisible&&(n.isVisible=!!r()),n.isVisible}return!1}function ot(t){function r(t){e.forEach(t,function(t){x(t).isVisible=!0;var n=J(t)||t;if(e.contains(a,n)||a.push(n),e.isInternalModuleImportEqualsDeclaration(t)){var i=t.moduleReference,o=bm(i),s=N(t,o.text,901119,void 0,void 0);s&&r(s.declarations)}})}var n;t.parent&&243===t.parent.kind?n=N(t.parent,t.text,9289727,e.Diagnostics.Cannot_find_name_0,t):246===t.parent.kind&&(n=Q(t.parent,9289727));var a=[];return n&&r(n.declarations),a}function st(e,t){var r=ct(e,t);if(r>=0){for(var n=jh.length,a=r;a<n;a++)Vh[a]=!1;return!1}return jh.push(e),Vh.push(!0),Uh.push(t),!0}function ct(e,t){for(var r=jh.length-1;r>=0;r--){if(ut(jh[r],Uh[r]))return-1;if(jh[r]===e&&Uh[r]===t)return r}return-1}function ut(t,r){return 0===r?k(t).type:2===r?k(t).declaredType:1===r?t.resolvedBaseConstructorType:3===r?t.resolvedReturnType:void e.Debug.fail("Unhandled TypeSystemPropertyName "+r)}function _t(){return jh.pop(),Uh.pop(),Vh.pop()}function lt(t){return t=e.findAncestor(e.getRootDeclaration(t),function(e){switch(e.kind){case 226:case 227:case 242:case 241:case 240:case 239:return!1;default:return!0}}),t&&t.parent}function dt(t){var r=vr(xe(t));return r.typeParameters?ea(r,e.map(r.typeParameters,function(e){return Nv})):r}function pt(e,t){var r=yn(e,t);return r?jt(r):void 0}function ft(e){return e&&0!==(1&e.flags)}function mt(e){var t=ke(e);return t&&k(t).type||Ct(e,!1)}function gt(t){return 144===t.kind&&!e.isStringOrNumericLiteral(t.expression)}function yt(t,r,n){if(t=Nc(t,function(e){return!(6144&e.flags)}),8192&t.flags)return qv;if(65536&t.flags)return Ac(t,function(e){return yt(e,r,n)});for(var a=e.createMap(),i=e.createMap(),o=0,s=r;o<s.length;o++){var c=s[o];i.set(e.getTextOfPropertyName(c),!0)}for(var u=0,_=rn(t);u<_.length;u++){var l=_[u],d=i.has(l.name),p=24&e.getDeclarationModifierFlagsFromSymbol(l),f=65536&l.flags&&!(32768&l.flags);d||p||Ei(l)||f||a.set(l.name,l)}var m=xn(t,0),g=xn(t,1);return Ie(n,a,iv,iv,m,g)}function vt(t){var r=t.parent,n=mt(r.parent);if(n===wv)return wv;if(!n||ft(n))return t.initializer?Gd(t):n;var a;if(174===r.kind)if(t.dotDotDotToken){if(!i_(n))return l(t,e.Diagnostics.Rest_types_may_only_be_created_from_object_types),wv;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=yt(n,i,t.symbol)}else{var u=t.propertyName||t.name;if(gt(u))return Nv;t.initializer&&zu(t.initializer);var _=e.getTextOfPropertyName(u);if(a=pt(n,_)||t_(_)&&Cn(n,1)||Cn(n,0),!a)return l(u,e.Diagnostics.Type_0_has_no_property_1_and_no_string_index_signature,Xe(n),e.declarationNameToString(u)),wv}else{var d=If(n,r,!1,!1);if(t.dotDotDotToken)a=ja(d);else{var p=""+e.indexOf(r.elements,t);if(a=rs(n)?pt(n,p):d,!a)return ss(n)?l(t,e.Diagnostics.Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2,Xe(n),ra(n),r.elements.length):l(t,e.Diagnostics.Type_0_has_no_property_1,Xe(n),p),wv}}return!dv||!t.initializer||2048&us(Wd(t.initializer))||(a=rc(a,131072)),t.initializer?ni([a,Wd(t.initializer)],!0):a}function ht(t){var r=e.getJSDocType(t);if(r)return Li(r)}function bt(t){var r=e.skipParentheses(t);return 95===r.kind||71===r.kind&&zs(r)===yv}function kt(t){var r=e.skipParentheses(t);return 177===r.kind&&0===r.elements.length}function xt(e,t){return dv&&t?ps(e,2048):e}function Ct(t,r){if(215===t.parent.parent.kind){var n=pi(z_(t.parent.parent.expression));return 278528&n.flags?n:Rv}if(216===t.parent.parent.kind){var a=t.parent.parent;return Of(a.expression,a.awaitModifier)||Nv}if(e.isBindingPattern(t.parent))return vt(t);var i=e.getEffectiveTypeAnnotationNode(t);if(i){var o=Li(i);return xt(o,t.questionToken&&r)}if((pv||65536&t.flags)&&226===t.kind&&!e.isBindingPattern(t.name)&&!(1&e.getCombinedModifierFlags(t))&&!e.isInAmbientContext(t)){if(!(2&e.getCombinedNodeFlags(t))&&(!t.initializer||bt(t.initializer)))return Av;if(t.initializer&&kt(t.initializer))return sh}if(146===t.kind){var s=t.parent;if(154===s.kind&&!e.hasDynamicName(s)){var c=e.getDeclarationOfKind(t.parent.symbol,153);if(c){var u=On(c),_=ky(s);return _&&t===_?(e.Debug.assert(!_.type),jt(u.thisParameter)):Jn(u)}}var l=void 0;if(l="this"===t.symbol.name?bu(s):ku(t))return xt(l,t.questionToken&&r)}if(t.initializer){var l=Gd(t);return xt(l,t.questionToken&&r)}return e.isJsxAttribute(t)?Lv:262===t.kind?au(t.name):e.isBindingPattern(t.name)?Nt(t.name,!1,!0):void 0}function Dt(t){for(var r,n=[],a=!1,i=!1,o=0,s=t.declarations;o<s.length;o++){var c=s[o],u=194===c.kind?c:179===c.kind?e.getAncestor(c,194):void 0;if(!u)return wv;e.isPropertyAccessExpression(u.left)&&99===u.left.expression.kind&&(152===e.getThisContainer(u,!1).kind?a=!0:i=!0);var _=ht(u.parent);if(_){var d=xs(_);if(r){if(r!==wv&&d!==wv&&!yo(r,d)){var p=e.getNameOfDeclaration(c);l(p,e.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,e.declarationNameToString(p),Xe(r),Xe(d))}}else r=d}else r||n.push(os(Wd(u.right)))}var f=r||ni(n,!0);return xs(xt(f,i&&!a))}function St(t,r,n){return t.initializer?Gd(t):e.isBindingPattern(t.name)?Nt(t.name,r,n):(n&&pv&&!wt(t)&&Ds(t,Nv),Nv)}function Tt(t,r,n){var a,i=e.createMap(),o=!1;e.forEach(t.elements,function(t){var s=t.propertyName||t.name;if(gt(s))return void(o=!0);if(t.dotDotDotToken)return void(a=Hn(Nv,!1));var c=e.getTextOfPropertyName(s),u=4|(t.initializer?67108864:0),_=d(u,c);_.type=St(t,r,n),_.bindingElement=t,i.set(_.name,_)});var s=Ie(void 0,i,iv,iv,a,void 0);return r&&(s.pattern=t),o&&(s.objectFlags|=512),s}function Et(t,r,n){var a=t.elements,i=e.lastOrUndefined(a);if(0===a.length||!e.isOmittedExpression(i)&&i.dotDotDotToken)return cv>=2?za(Nv):oh;var o=e.map(a,function(t){return e.isOmittedExpression(t)?Nv:St(t,r,n)}),s=Wa(o);return r&&(s=ta(s),s.pattern=t),s}function Nt(e,t,r){return 174===e.kind?Tt(e,t,r):Et(e,t,r)}function At(e,t){var r=Ct(e,!0);return r?(t&&Ss(e,r),261===e.kind?r:xs(r)):(r=e.dotDotDotToken?oh:Nv,t&&pv&&(wt(e)||Ds(e,r)),r)}function wt(t){var r=e.getRootDeclaration(t),n=146===r.kind?r.parent:r;return Pp(n)}function Pt(t){var r=k(t);if(!r.type){if(16777216&t.flags)return r.type=dt(t);var n=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(n))return r.type=Nv;if(243===n.kind)return r.type=rp(n.expression);if(65536&n.flags&&292===n.kind&&n.typeExpression)return r.type=Li(n.typeExpression.type);if(!st(t,0))return wv;var a=void 0;a=194===n.kind||179===n.kind&&194===n.parent.kind?Dt(t):At(n,!0),_t()||(a=Kt(t)),r.type=a}return r.type}function Ft(t){if(t){if(153===t.kind){var r=e.getEffectiveReturnTypeNode(t);return r&&Li(r)}var n=e.getEffectiveSetAccessorTypeAnnotationNode(t);return n&&Li(n)}}function Ot(e){var t=ky(e);return t&&t.symbol}function It(e){return Bn(On(e))}function Rt(t){var r=k(t);if(!r.type){var n=e.getDeclarationOfKind(t,153),a=e.getDeclarationOfKind(t,154);if(n&&65536&n.flags){var i=ht(n);if(i)return r.type=i}if(!st(t,0))return wv;var o=void 0,s=Ft(n);if(s)o=s;else{var c=Ft(a);c?o=c:n&&n.body?o=ad(n):(pv&&(a?l(a,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,He(t)):(e.Debug.assert(!!n,"there must existed getter as we are current checking either setter or getter in this function"),l(n,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,He(t)))),o=Nv)}if(!_t()&&(o=Nv,pv)){var u=e.getDeclarationOfKind(t,153);l(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,He(t))}r.type=o}return r.type}function Mt(e){var t=rr(ur(e));return 540672&t.flags?t:void 0}function Lt(t){var r=k(t);if(!r.type)if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))r.type=Nv;else{var n=Ae(16,t);if(32&t.flags){var a=Mt(t);r.type=a?ci([n,a]):n}else r.type=dv&&67108864&t.flags?ps(n,2048):n}return r.type}function Bt(e){var t=k(e);return t.type||(t.type=mr(e)),t.type}function Jt(e){var t=k(e);if(!t.type){var r=te(e);t.type=107455&r.flags?jt(r):wv}return t.type}function zt(t){var r=k(t);if(!r.type)if(100===av)l(t.valueDeclaration,e.Diagnostics.Generic_type_instantiation_is_excessively_deep_and_possibly_infinite),r.type=wv;else{if(!st(t,0))return wv;av++;var n=uo(jt(r.target),r.mapper);av--,_t()||(n=Kt(t)),r.type=n}return r.type}function Kt(t){return e.getEffectiveTypeAnnotationNode(t.valueDeclaration)?(l(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,He(t)),wv):(pv&&l(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,He(t)),Nv)}function jt(t){return 1&e.getCheckFlags(t)?zt(t):7&t.flags?Pt(t):9136&t.flags?Lt(t):8&t.flags?Bt(t):98304&t.flags?Rt(t):8388608&t.flags?Jt(t):wv}function Vt(e,t){return void 0!==e&&void 0!==t&&0!==(4&C(e))&&e.target===t}function Ut(e){return 4&C(e)?e.target:e}function qt(t,r){function n(t){if(7&C(t)){var a=Ut(t);return a===r||e.forEach(nr(a),n)}if(131072&t.flags)return e.forEach(t.types,n)}return n(t)}function Wt(t,r){for(var n=0,a=r;n<a.length;n++){var i=a[n],o=gr(ke(i));t?e.contains(t,o)||t.push(o):t=[o]}return t}function Ht(e,t){for(;;){if(t=t.parent,!t)return e;if(229===t.kind||199===t.kind||228===t.kind||186===t.kind||151===t.kind||187===t.kind){var r=t.typeParameters;if(r)return Wt(Ht(e,t),r)}}}function Gt(t){var r=32&t.flags?t.valueDeclaration:e.getDeclarationOfKind(t,230);return Ht(void 0,r)}function Xt(e){for(var t,r=0,n=e.declarations;r<n.length;r++){var a=n[r];if(230===a.kind||229===a.kind||199===a.kind||231===a.kind){var i=a;i.typeParameters&&(t=Wt(t,i.typeParameters))}}return t}function Qt(t){return e.concatenate(Gt(t),Xt(t))}function Yt(e){var t=hn(e,1);if(1===t.length){var r=t[0];return!r.typeParameters&&1===r.parameters.length&&r.hasRestParameter&&Xl(r.parameters[0])===oh}return!1}function Zt(e){if(or(e)&&hn(e,1).length>0)return!0;if(540672&e.flags){var t=cn(e);return t&&or(t)&&Yt(t)}return!1}function $t(t){return e.getClassExtendsHeritageClauseElement(t.symbol.valueDeclaration)}function er(t,r,n){var a=e.length(r),i=e.isInJavaScriptFile(n);return e.filter(hn(t,1),function(t){return(i||a>=Pn(t.typeParameters))&&a<=e.length(t.typeParameters)})}function tr(t,r,n){var a=er(t,r,n),i=e.map(r,Li);return e.sameMap(a,function(t){return e.some(t.typeParameters)?Kn(t,i):t})}function rr(t){if(!t.resolvedBaseConstructorType){var r=$t(t);if(!r)return t.resolvedBaseConstructorType=Pv;if(!st(t,1))return wv;var n=rp(r.expression);if(163840&n.flags&&Zr(n),!_t())return l(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,He(t.symbol)),t.resolvedBaseConstructorType=wv;if(!(1&n.flags||n===Iv||Zt(n)))return l(r.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,Xe(n)),t.resolvedBaseConstructorType=wv;t.resolvedBaseConstructorType=n}return t.resolvedBaseConstructorType}function nr(t){return t.resolvedBaseTypes||(8&t.objectFlags?t.resolvedBaseTypes=[ja(ni(t.typeParameters))]:96&t.symbol.flags?(32&t.symbol.flags&&ar(t),64&t.symbol.flags&&sr(t)):e.Debug.fail("type must be class or interface")),t.resolvedBaseTypes}function ar(t){t.resolvedBaseTypes=t.resolvedBaseTypes||iv;var r=pn(rr(t));if(163841&r.flags){var n,a=$t(t),i=fa(a),o=r&&r.symbol?vr(r.symbol):void 0;if(r.symbol&&32&r.symbol.flags&&ir(o))n=na(a,r.symbol,i);else if(1&r.flags)n=r;else{var s=tr(r,a.typeArguments,a);if(!s.length)return void l(a.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments);n=Jn(s[0])}var c=t.symbol.valueDeclaration;if(c&&e.isInJavaScriptFile(c)){var u=e.getJSDocAugmentsTag(t.symbol.valueDeclaration);u&&(n=Li(u.typeExpression.type))}if(n!==wv)return or(n)?t===n||qt(n,t)?void l(c,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Xe(t,void 0,1)):void(t.resolvedBaseTypes===iv?t.resolvedBaseTypes=[n]:t.resolvedBaseTypes.push(n)):void l(a.expression,e.Diagnostics.Base_constructor_return_type_0_is_not_a_class_or_interface_type,Xe(n))}}function ir(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 or(t){return 16809985&t.flags&&!Yr(t)||131072&t.flags&&!e.forEach(t.types,function(e){return!or(e)})}function sr(t){t.resolvedBaseTypes=t.resolvedBaseTypes||iv;for(var r=0,n=t.symbol.declarations;r<n.length;r++){var a=n[r];if(230===a.kind&&e.getInterfaceBaseTypeNodes(a))for(var i=0,o=e.getInterfaceBaseTypeNodes(a);i<o.length;i++){var s=o[i],c=Li(s);c!==wv&&(or(c)?t===c||qt(c,t)?l(a,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Xe(t,void 0,1)):t.resolvedBaseTypes===iv?t.resolvedBaseTypes=[c]:t.resolvedBaseTypes.push(c):l(s,e.Diagnostics.An_interface_may_only_extend_a_class_or_another_interface))}}}function cr(t){for(var r=0,n=t.declarations;r<n.length;r++){var a=n[r];if(230===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=oe(c.expression,793064,!0);if(!u||!(64&u.flags)||ur(u).thisType)return!1}}}}return!0}function ur(t){var r=k(t);if(!r.declaredType){var n=32&t.flags?1:2,a=r.declaredType=Ae(n,t),i=Gt(t),o=Xt(t);(i||o||1===n||!cr(t))&&(a.objectFlags|=4,a.typeParameters=e.concatenate(i,o),a.outerTypeParameters=i,a.localTypeParameters=o,a.instantiations=e.createMap(),a.instantiations.set(Zn(a.typeParameters),a),a.target=a,a.typeArguments=a.typeParameters,a.thisType=Te(16384),a.thisType.isThisType=!0,a.thisType.symbol=t,a.thisType.constraint=a)}return r.declaredType}function _r(t){var r=k(t);if(!r.declaredType){if(!st(t,2))return wv;var n=e.getDeclarationOfKind(t,291),a=void 0;if(n?a=Li(n.jsDocTypeLiteral?n.jsDocTypeLiteral:n.typeExpression.type):(n=e.getDeclarationOfKind(t,231),a=Li(n.type)),_t()){var i=Xt(t);i&&(r.typeParameters=i,r.instantiations=e.createMap(),r.instantiations.set(Zn(i),a))}else a=wv,l(n.name,e.Diagnostics.Type_alias_0_circularly_references_itself,He(t));r.declaredType=a}return r.declaredType}function lr(t){var r=t.initializer;return r?9===r.kind||8===r.kind||192===r.kind&&38===r.operator&&8===r.operand.kind||71===r.kind&&(e.nodeIsMissing(r)||!!ke(t.parent).exports.get(r.text)):!e.isInAmbientContext(t)}function dr(e){var t=k(e);if(void 0!==t.enumKind)return t.enumKind;for(var r=!1,n=0,a=e.declarations;n<a.length;n++){var i=a[n];if(232===i.kind)for(var o=0,s=i.members;o<s.length;o++){var c=s[o];if(c.initializer&&9===c.initializer.kind)return t.enumKind=1;lr(c)||(r=!0)}}return t.enumKind=r?0:1}function pr(e){return 256&e.flags&&!(65536&e.flags)?vr(xe(e.symbol)):e}function fr(e){var t=k(e);if(t.declaredType)return t.declaredType;if(1===dr(e)){nv++;for(var r=[],n=0,a=e.declarations;n<a.length;n++){var i=a[n];if(232===i.kind)for(var o=0,s=i.members;o<s.length;o++){var c=s[o],u=Pi(Tg(c),nv,ke(c));k(ke(c)).declaredType=u,r.push(u)}}if(r.length){var _=ni(r,!1,e,void 0);return 65536&_.flags&&(_.flags|=256,_.symbol=e),t.declaredType=_}}var l=Te(16);return l.symbol=e,t.declaredType=l}function mr(e){var t=k(e);if(!t.declaredType){var r=fr(xe(e));t.declaredType||(t.declaredType=r)}return t.declaredType}function gr(e){var t=k(e);if(!t.declaredType){var r=Te(16384);r.symbol=e,t.declaredType=r}return t.declaredType}function yr(e){var t=k(e);return t.declaredType||(t.declaredType=vr(te(e))),t.declaredType}function vr(e){return 96&e.flags?ur(e):524288&e.flags?_r(e):262144&e.flags?gr(e):384&e.flags?fr(e):8&e.flags?mr(e):8388608&e.flags?yr(e):wv}function hr(e){if(e.typeArguments)for(var t=0,r=e.typeArguments;t<r.length;t++){var n=r[t];if(!br(n))return!1}return!0}function br(e){switch(e.kind){case 119:case 136:case 133:case 122:case 137:case 134:case 105:case 139:case 95:case 130:case 173:return!0;case 164:return br(e.elementType);case 159:return hr(e)}return!1}function kr(t){var r=e.getEffectiveTypeAnnotationNode(t);return r?br(r):!t.initializer}function xr(t){if(152!==t.kind){var r=e.getEffectiveReturnTypeNode(t);if(!r||!br(r))return!1}for(var n=0,a=t.parameters;n<a.length;n++){var i=a[n];if(!kr(i))return!1}return!0}function Cr(e){if(e.declarations&&1===e.declarations.length){var t=e.declarations[0];if(t)switch(t.kind){case 149:case 148:return kr(t);case 151:case 150:case 152:return xr(t)}}return!1}function Dr(t){for(var r=e.createMap(),n=0,a=t;n<a.length;n++){var i=a[n];r.set(i.name,i)}return r}function Sr(t,r,n){for(var a=e.createMap(),i=0,o=t;i<o.length;i++){var s=o[i];a.set(s.name,n&&Cr(s)?s:ro(s,r))}return a}function Tr(e,t){for(var r=0,n=t;r<n.length;r++){var a=n[r];e.has(a.name)||e.set(a.name,a)}}function Er(e){if(!e.declaredProperties){var t=e.symbol;e.declaredProperties=Fe(t.members),e.declaredCallSignatures=Mn(t.members.get("__call")),e.declaredConstructSignatures=Mn(t.members.get("__new")),e.declaredStringIndexInfo=Gn(t,0),e.declaredNumberIndexInfo=Gn(t,1)}return e}function Nr(t,r){if(4&C(t)){var n=t.target,a=t.typeArguments;if(e.length(n.typeParameters)===e.length(a))return ea(n,e.concatenate(a,[r||n.thisType]))}else if(131072&t.flags)return ci(e.map(t.types,function(e){return Nr(e,r)}));return t}function Ar(t,r,n,a){var i,o,s,c,u,_;e.rangeEquals(n,a,0,n.length)?(i=Qi,o=r.symbol?r.symbol.members:Dr(r.declaredProperties),s=r.declaredCallSignatures,c=r.declaredConstructSignatures,u=r.declaredStringIndexInfo,_=r.declaredNumberIndexInfo):(i=qi(n,a),o=Sr(r.declaredProperties,i,1===n.length),s=zi(r.declaredCallSignatures,i),c=zi(r.declaredConstructSignatures,i),u=lo(r.declaredStringIndexInfo,i),_=lo(r.declaredNumberIndexInfo,i));var l=nr(r);if(l.length){r.symbol&&o===r.symbol.members&&(o=Dr(r.declaredProperties));for(var d=e.lastOrUndefined(a),p=0,f=l;p<f.length;p++){var m=f[p],g=d?Nr(uo(m,i),d):m;Tr(o,rn(g)),s=e.concatenate(s,hn(g,0)),c=e.concatenate(c,hn(g,1)),u||(u=g===Nv?Hn(Nv,!1):xn(g,0)),_=_||xn(g,1)}}Oe(t,o,s,c,u,_)}function wr(e){Ar(e,Er(e),iv,iv)}function Pr(t){var r=Er(t.target),n=e.concatenate(r.typeParameters,[r.thisType]),a=t.typeArguments&&t.typeArguments.length===n.length?t.typeArguments:e.concatenate(t.typeArguments,[t]);Ar(t,r,n,a)}function Fr(e,t,r,n,a,i,o,s,c){var u=new ev(hv);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 Or(e){return Fr(e.declaration,e.typeParameters,e.thisParameter,e.parameters,e.resolvedReturnType,e.typePredicate,e.minArgumentCount,e.hasRestParameter,e.hasLiteralTypes)}function Ir(t){var r=rr(t),n=hn(r,1);if(0===n.length)return[Fr(void 0,t.localTypeParameters,void 0,iv,t,void 0,0,!1,!1)];for(var a=$t(t),i=e.isInJavaScriptFile(a),o=fa(a),s=e.length(o),c=[],u=0,_=n;u<_.length;u++){var l=_[u],d=Pn(l.typeParameters),p=e.length(l.typeParameters);if((i||s>=d)&&s<=p){var f=p?jn(l,Fn(o,l.typeParameters,d,a)):Or(l);f.typeParameters=t.localTypeParameters,f.resolvedReturnType=t,c.push(f)}}return c}function Rr(e,t,r,n,a){for(var i=0,o=e;i<o.length;i++){var s=o[i];if(Xo(s,t,r,n,a,vo))return s}}function Mr(t,r,n){if(r.typeParameters){if(n>0)return;for(var a=1;a<t.length;a++)if(!Rr(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:Rr(t[a],r,!0,!0,!0);if(!o)return;e.contains(i,o)||(i||(i=[])).push(o)}return i}function Lr(t,r){for(var n=e.map(t,function(e){return hn(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||!Rr(a,c,!1,!0,!0)){var u=Mr(n,c,i);if(u){var _=c;if(u.length>1){if(_=Or(c),e.forEach(u,function(e){return e.thisParameter})){var l=ni(e.map(u,function(e){return jt(e.thisParameter)||Nv}),!0);_.thisParameter=gs(c.thisParameter,l)}_.resolvedReturnType=void 0,_.unionSignatures=u}(a||(a=[])).push(_)}}}return a||iv}function Br(e,t){for(var r=[],n=!1,a=0,i=e;a<i.length;a++){var o=i[a],s=xn(o,t);if(!s)return;r.push(s.type),n=n||s.isReadonly}return Hn(ni(r,!0),n)}function Jr(e){var t=Lr(e.types,0),r=Lr(e.types,1),n=Br(e.types,0),a=Br(e.types,1);Oe(e,ov,t,r,n,a)}function zr(e,t){return e?t?ci([e,t]):e:t}function Kr(e,t){return e?t?Hn(ci([e.type,t.type]),e.isReadonly&&t.isReadonly):e:t}function jr(e,t){return e&&t&&Hn(ni([e.type,t.type]),e.isReadonly||t.isReadonly)}function Vr(e,t,r){for(var n=[],a=0;a<t.length;a++)a===r?n.push(e):Yt(t[a])&&n.push(Jn(hn(t[a],1)[0]));return ci(n)}function Ur(t){for(var r,n,a=iv,i=iv,o=t.types,s=e.countWhere(o,Yt),c=function(c){var u=t.types[c];if(0===s||s===o.length&&0===c||!Yt(u)){var _=hn(u,1);_.length&&s>0&&(_=e.map(_,function(e){var t=Or(e);return t.resolvedReturnType=Vr(Jn(e),o,c),t})),i=e.concatenate(i,_)}a=e.concatenate(a,hn(u,0)),r=Kr(r,xn(u,0)),n=Kr(n,xn(u,1))},u=0;u<o.length;u++)c(u);Oe(t,ov,a,i,r,n)}function qr(e){var t=e.symbol;if(e.target){var r=Sr($r(e.target),e.mapper,!1),n=zi(hn(e.target,0),e.mapper),a=zi(hn(e.target,1),e.mapper),i=lo(xn(e.target,0),e.mapper),o=lo(xn(e.target,1),e.mapper);Oe(e,r,n,a,i,o)}else if(2048&t.flags){var r=t.members,n=Mn(r.get("__call")),a=Mn(r.get("__new")),i=Gn(t,0),o=Gn(t,1);Oe(e,r,n,a,i,o)}else{var r=ov,a=iv,i=void 0;if(t.exports&&(r=ge(t)),32&t.flags){var s=ur(t);a=Mn(t.members.get("__constructor")),a.length||(a=Ir(s));var c=rr(s);704512&c.flags?(r=Dr(Fe(r)),Tr(r,rn(c))):c===Nv&&(i=Hn(Nv,!1))}var o=384&t.flags?Ih:void 0;Oe(e,r,iv,a,i,o),8208&t.flags&&(e.callSignatures=Mn(t))}}function Wr(t){function r(e,r){var o=qi([i],[e]),l=t.mapper?Yi(t.mapper,o):o,p=uo(s,l);if(32&e.flags){var f=e.value,m=yn(c,f),g=_||!!(m&&67108864&m.flags),y=d(4|(g?67108864:0),f);y.checkFlags=u||m&&pd(m)?8:0,y.type=p,r&&(y.syntheticOrigin=r,y.declarations=r.declarations),a.set(f,y)}else 2&e.flags&&(n=Hn(p,u))}var n,a=e.createMap();Oe(t,ov,iv,iv,void 0,void 0);var i=Hr(t),o=Gr(t),s=Xr(t),c=pn(Qr(t)),u=!!t.declaration.readonlyToken,_=!!t.declaration.questionToken;if(170===t.declaration.typeParameter.constraint.kind){for(var l=0,p=rn(c);l<p.length;l++){var f=p[l];r(li(f),f)}xn(c,0)&&r(Rv)}else{var m=540672&o.flags?pn(o):o,g=262144&m.flags?pi(pn(m.type)):m;Ec(g,r)}Oe(t,a,iv,iv,n,void 0)}function Hr(e){return e.typeParameter||(e.typeParameter=gr(ke(e.declaration.typeParameter)))}function Gr(e){return e.constraintType||(e.constraintType=uo(on(Hr(e)),e.mapper||Qi)||wv)}function Xr(e){return e.templateType||(e.templateType=e.declaration.type?uo(xt(Li(e.declaration.type),!!e.declaration.questionToken),e.mapper||Qi):wv)}function Qr(e){if(!e.modifiersType){var t=e.declaration.typeParameter.constraint;if(170===t.kind)e.modifiersType=uo(Li(t.type),e.mapper||Qi);else{var r=ki(e.declaration),n=Gr(r),a=n&&16384&n.flags?on(n):n;e.modifiersType=a&&262144&a.flags?uo(a.type,e.mapper||Qi):qv}}return e.modifiersType}function Yr(e){if(32&C(e)){var t=Gr(e);return Cd(t,802816)}return!1}function Zr(e){return e.members||(32768&e.flags?4&e.objectFlags?Pr(e):3&e.objectFlags?wr(e):16&e.objectFlags?qr(e):32&e.objectFlags&&Wr(e):65536&e.flags?Jr(e):131072&e.flags&&Ur(e)),e}function $r(e){return 32768&e.flags?Zr(e).properties:iv}function en(e,t){if(32768&e.flags){var r=Zr(e),n=r.members.get(t);if(n&&De(n))return n}}function tn(t){if(!t.resolvedProperties){for(var r=e.createMap(),n=0,a=t.types;n<a.length;n++){for(var i=a[n],o=0,s=rn(i);o<s.length;o++){var c=s[o];if(!r.has(c.name)){var u=gn(t,c.name);u&&r.set(c.name,u)}}if(65536&t.flags)break}t.resolvedProperties=Fe(r)}return t.resolvedProperties}function rn(e){return e=pn(e),196608&e.flags?tn(e):$r(e)}function nn(t){if(65536&t.flags){for(var r=e.createMap(),n=0,a=t.types;n<a.length;n++){var i=a[n];if(!(8190&i.flags))for(var o=0,s=rn(i);o<s.length;o++){var c=s[o].name;r.has(c)||r.set(c,fn(t,c))}}return e.arrayFrom(r.values())}return rn(t)}function an(e){return 16384&e.flags?on(e):524288&e.flags?sn(e):cn(e)}function on(e){return un(e)?Qn(e):void 0}function sn(e){var t=cn(e.objectType),r=cn(e.indexType);return t||r?hi(t||e.objectType,r||e.indexType):void 0}function cn(e){if(737280&e.flags){var t=_n(e);if(t!==Nh&&t!==Ah)return t}else if(262144&e.flags)return Rv}function un(e){return _n(e)!==Ah}function _n(t){function r(t){if(e.contains(a,t))return void(i=!0);a.push(t);var r=n(t);return a.pop(),r}function n(e){if(16384&e.flags){var t=Qn(e);return e.isThisType?t:t?r(t):void 0}if(196608&e.flags){for(var n=e.types,a=[],i=0,o=n;i<o.length;i++){var s=o[i],c=r(s);c&&a.push(c)}return 65536&e.flags&&a.length===n.length?ni(a):131072&e.flags&&a.length?ci(a):void 0}if(262144&e.flags)return Rv;if(524288&e.flags){var u=r(e.objectType),_=r(e.indexType),l=u&&_?hi(u,_):void 0;return l&&l!==wv?r(l):void 0}return e}var a,i;if(!t.resolvedBaseConstraint){a=[];var o=r(t);t.resolvedBaseConstraint=i?Ah:Nr(o||Nh,t)}return t.resolvedBaseConstraint}function ln(e){return e.resolvedApparentType||(e.resolvedApparentType=Nr(e,e))}function dn(t){if(!t["default"])if(t.target){var r=dn(t.target);t["default"]=r?uo(r,t.mapper):Nh}else{var n=t.symbol&&e.forEach(t.symbol.declarations,function(t){return e.isTypeParameterDeclaration(t)&&t["default"]});t["default"]=n?Li(n):Nh}return t["default"]===Nh?void 0:t["default"]}function pn(e){var t=540672&e.flags?cn(e)||qv:e;return 131072&t.flags?ln(t):262178&t.flags?th:84&t.flags?rh:136&t.flags?nh:512&t.flags?Da(cv>=2):16777216&t.flags?qv:t}function fn(t,r){for(var n,a=t.types,i=65536&t.flags,o=i?24:0,s=i?0:67108864,c=4,u=0,_=0,l=a;_<l.length;_++){var p=l[_],f=pn(p);if(f!==wv){var m=yn(f,r),g=m?e.getDeclarationModifierFlagsFromSymbol(m):0;!m||g&o?i&&(u|=16):(s&=m.flags,n?e.contains(n,m)||n.push(m):n=[m],u|=(pd(m)?8:0)|(24&g?0:64)|(16&g?128:0)|(8&g?256:0)|(32&g?512:0),B_(m)||(c=2))}}if(n){if(1===n.length&&!(16&u))return n[0];for(var y=[],v=[],h=void 0,b=0,k=n;b<k.length;b++){var m=k[b];m.declarations&&e.addRange(v,m.declarations);var f=jt(m);h?f!==h&&(u|=32):h=f,y.push(f)}var x=d(4|s,r);return x.checkFlags=c|u,x.containingType=t,x.declarations=v,x.type=i?ni(y):ci(y),x}}function mn(t,r){var n=t.propertyCache||(t.propertyCache=e.createMap()),a=n.get(r);return a||(a=fn(t,r),a&&n.set(r,a)),a}function gn(t,r){var n=mn(t,r);return!n||16&e.getCheckFlags(n)?void 0:n}function yn(e,t){if(e=pn(e),32768&e.flags){var r=Zr(e),n=r.members.get(t);if(n&&De(n))return n;if(r===Xv||r.callSignatures.length||r.constructSignatures.length){var a=en(Zv,t);if(a)return a}return en(Yv,t)}if(196608&e.flags)return gn(e,t)}function vn(e,t){if(229376&e.flags){var r=Zr(e);return 0===t?r.callSignatures:r.constructSignatures}return iv}function hn(e,t){return vn(pn(e),t)}function bn(e,t){if(229376&e.flags){var r=Zr(e);return 0===t?r.stringIndexInfo:r.numberIndexInfo}}function kn(e,t){var r=bn(e,t);return r&&r.type}function xn(e,t){return bn(pn(e),t)}function Cn(e,t){return kn(pn(e),t)}function Dn(e,t){if(ms(e)){for(var r=[],n=0,a=rn(e);n<a.length;n++){var i=a[n];(0===t||t_(i.name))&&r.push(jt(i))}if(r.length)return ni(r,!0)}}function Sn(t){var r;return e.forEach(e.getEffectiveTypeParameterDeclarations(t),function(t){var n=gr(t.symbol);e.contains(r,n)||(r||(r=[]),r.push(n))}),r}function Tn(e){var t=[];return e.forEach(function(e,r){Pe(r)||t.push(e)}),t}function En(t){if(65536&t.flags){if(t.type&&278===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 278===i.typeExpression.type.kind}}}function Nn(t,r){if(!e.isExternalModuleNameRelative(t)){var n=S(Mh,'"'+t+'"',512);return n&&r?be(n):n}}function An(t){if(e.hasQuestionToken(t)||En(t))return!0;if(t.initializer){var r=t.parent,n=On(r),a=e.indexOf(r.parameters,t);return e.Debug.assert(a>=0),a>=n.minArgumentCount}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!i&&(!t.type&&!t.dotDotDotToken&&e.indexOf(t.parent.parameters,t)>=i.arguments.length)}function wn(e){if(71===e.parameterName.kind){var t=e.parameterName;return{kind:1,parameterName:t?t.text:void 0,parameterIndex:t?op(e.parent.parameters,t):void 0,type:Li(e.type)}}return{kind:0,type:Li(e.type)}}function Pn(e){var t=0;if(e)for(var r=0;r<e.length;r++)dn(e[r])||(t=r+1);return t}function Fn(t,r,n,a){var i=e.length(r);if(i){var o=e.length(t),s=e.isInJavaScriptFile(a);if((s||o>=n)&&o<=i){t||(t=[]);for(var c=o;c<i;c++)t[c]=s?Nv:qv;for(var c=o;c<i;c++){var u=qi(r,t),_=dn(r[c]);t[c]=_?uo(_,u):s?Nv:qv}}}return t}function On(t){var r=x(t);if(!r.resolvedSignature){for(var n=[],a=!1,i=0,o=void 0,s=void 0,c=e.getImmediatelyInvokedFunctionExpression(t),u=e.isJSDocConstructSignature(t),_=!c&&!u&&e.isInJavaScriptFile(t)&&!e.hasJSDocParameterTags(t),l=u?1:0;l<t.parameters.length;l++){var p=t.parameters[l],f=p.symbol;if(f&&4&f.flags&&!e.isBindingPattern(p.name)){var m=N(p,f.name,107455,void 0,void 0);f=m}0===l&&"this"===f.name?(s=!0,o=p.symbol):n.push(f),p.type&&173===p.type.kind&&(a=!0);var g=p.initializer||p.questionToken||p.dotDotDotToken||c&&n.length>c.arguments.length&&!p.type||En(p)||_;g||(i=n.length)}if(!(153!==t.kind&&154!==t.kind||e.hasDynamicName(t)||s&&o)){var y=153===t.kind?154:153,v=e.getDeclarationOfKind(t.symbol,y);
v&&(o=Ot(v))}var h=152===t.kind?ur(be(t.parent.symbol)):void 0,b=h?h.localTypeParameters:Sn(t),k=In(t,u,h),C=t.type&&158===t.type.kind?wn(t.type):void 0,D=e.hasRestParameter(t);if(!D&&e.isInJavaScriptFile(t)&&!e.hasJSDocParameterTags(t)&&Rn(t)){D=!0;var S=d(3,"args");S.type=oh,S.isRestParameter=!0,n.push(S)}r.resolvedSignature=Fr(t,b,o,n,k,C,i,D,a)}return r.resolvedSignature}function In(t,r,n){if(r)return Li(t.parameters[0].type);if(n)return n;var a=e.getEffectiveReturnTypeNode(t);if(a)return Li(a);if(153===t.kind&&!e.hasDynamicName(t)){var i=e.getDeclarationOfKind(t.symbol,154);return Ft(i)}return e.nodeIsMissing(t.body)?Nv:void 0}function Rn(t){function r(t){if(!t)return!1;switch(t.kind){case 71:return"arguments"===t.text&&e.isPartOfExpression(t);case 149:case 151:case 153:case 154:return 144===t.name.kind&&r(t.name);default:return!e.nodeStartsNewLexicalEnvironment(t)&&!e.isPartOfTypeNode(t)&&e.forEachChild(t,r)}}var n=x(t);return void 0===n.containsArgumentsReference&&(8192&n.flags?n.containsArgumentsReference=!0:n.containsArgumentsReference=r(t.body)),n.containsArgumentsReference}function Mn(e){if(!e)return iv;for(var t=[],r=0;r<e.declarations.length;r++){var n=e.declarations[r];switch(n.kind){case 160:case 161:case 228:case 151:case 150:case 152:case 155:case 156:case 157:case 153:case 154:case 186:case 187:case 279:if(r>0&&n.body){var a=e.declarations[r-1];if(n.parent===a.parent&&n.kind===a.kind&&n.pos===a.end)break}t.push(On(n))}}return t}function Ln(e){var t=se(e,e);if(t){var r=_e(t);if(r)return jt(r)}return Nv}function Bn(e){if(e.thisParameter)return jt(e.thisParameter)}function Jn(t){if(!t.resolvedReturnType){if(!st(t,3))return wv;var r=void 0;if(r=t.target?uo(Jn(t.target),t.mapper):t.unionSignatures?ni(e.map(t.unionSignatures,Jn),!0):ad(t.declaration),!_t()&&(r=Nv,pv)){var n=t.declaration,a=e.getNameOfDeclaration(n);a?l(a,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(a)):l(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 zn(t){if(t.hasRestParameter){var r=jt(e.lastOrUndefined(t.parameters));if(4&C(r)&&r.target===$v)return r.typeArguments[0]}return Nv}function Kn(t,r){r=Fn(r,t.typeParameters,Pn(t.typeParameters));var n=t.instantiations||(t.instantiations=e.createMap()),a=Zn(r),i=n.get(a);return i||n.set(a,i=jn(t,r)),i}function jn(e,t){return to(e,qi(e.typeParameters,t),!0)}function Vn(e){return e.typeParameters?(e.erasedSignatureCache||(e.erasedSignatureCache=to(e,Wi(e.typeParameters),!0)),e.erasedSignatureCache):e}function Un(e){if(!e.isolatedSignatureType){var t=152===e.declaration.kind||156===e.declaration.kind,r=Ae(16);r.members=ov,r.properties=iv,r.callSignatures=t?iv:[e],r.constructSignatures=t?[e]:iv,e.isolatedSignatureType=r}return e.isolatedSignatureType}function qn(e){return e.members.get("__index")}function Wn(e,t){var r=1===t?133:136,n=qn(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 Hn(e,t,r){return{type:e,isReadonly:t,declaration:r}}function Gn(t,r){var n=Wn(t,r);if(n)return Hn(n.type?Li(n.type):Nv,0!==(64&e.getModifierFlags(n)),n)}function Xn(t){return e.getDeclarationOfKind(t.symbol,145).constraint}function Qn(e){if(!e.constraint)if(e.target){var t=on(e.target);e.constraint=t?uo(t,e.mapper):Nh}else{var r=Xn(e);e.constraint=r?Li(r):Nh}return e.constraint===Nh?void 0:e.constraint}function Yn(t){return ke(e.getDeclarationOfKind(t.symbol,145).parent)}function Zn(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 $n(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 ea(e,t){var r=Zn(t),n=e.instantiations.get(r);return n||(n=Ae(4,e.symbol),e.instantiations.set(r,n),n.flags|=t?$n(t,0):0,n.target=e,n.typeArguments=t),n}function ta(e){var t=Te(e.flags);return t.symbol=e.symbol,t.objectFlags=e.objectFlags,t.target=e.target,t.typeArguments=e.typeArguments,t}function ra(t){return e.length(t.target.typeParameters)}function na(t,r,n){var a=vr(be(r)),i=a.localTypeParameters;if(i){var o=e.length(t.typeArguments),s=Pn(i);if(!e.isInJavaScriptFile(t)&&(o<s||o>i.length))return l(t,s===i.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Xe(a,void 0,1),s,i.length),wv;var c=e.concatenate(a.outerTypeParameters,Fn(n,i,s,t));return ea(a,c)}return t.typeArguments?(l(t,e.Diagnostics.Type_0_is_not_generic,Xe(a)),wv):a}function aa(e,t){var r=vr(e),n=k(e),a=n.typeParameters,i=Zn(t),o=n.instantiations.get(i);return o||n.instantiations.set(i,o=_o(r,qi(a,Fn(t,a,Pn(a))))),o}function ia(t,r,n){var a=vr(r),i=k(r).typeParameters;if(i){var o=e.length(t.typeArguments),s=Pn(i);return o<s||o>i.length?(l(t,s===i.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,He(r),s,i.length),wv):aa(r,n)}return t.typeArguments?(l(t,e.Diagnostics.Type_0_is_not_generic,He(r)),wv):a}function oa(t,r){return t.typeArguments?(l(t,e.Diagnostics.Type_0_is_not_generic,He(r)),wv):vr(r)}function sa(t){switch(t.kind){case 159:return t.typeName;case 277:return t.name;case 201:var r=t.expression;if(e.isEntityNameExpression(r))return r}}function ca(e,t){return e?oe(e,t)||Tv:Tv}function ua(e,t){var r=fa(e);if(t===Tv)return wv;var n=_a(e,t,r);if(n)return n;if(107455&t.flags&&277===e.kind){var a=jt(t);if(a.symbol&&!Kl(a)){var i=_a(e,a.symbol,r);if(i)return i}return ca(sa(e),793064),a}return oa(e,t)}function _a(t,r,n){return 96&r.flags?na(t,r,n):524288&r.flags?ia(t,r,n):16&r.flags&&277===t.kind&&(r.members||e.getJSDocClassTag(r.valueDeclaration))?zl(r):void 0}function la(t){if(e.isIdentifier(t.name))switch(t.name.text){case"String":return Rv;case"Number":return Mv;case"Boolean":return Jv;case"Void":return Kv;case"Undefined":return Pv;case"Null":return Ov;case"Object":return Nv;case"Function":case"function":return Zv;case"Array":case"array":return t.typeArguments&&t.typeArguments.length?void 0:ja(Nv);case"Promise":case"promise":return t.typeArguments&&t.typeArguments.length?void 0:rd(Nv)}}function da(e){var t=Li(e.type);return dv?ni([t,Ov]):t}function pa(e){var t=x(e);if(!t.resolvedType){var r=void 0,n=void 0,a=793064;277===e.kind&&(n=la(e),a|=107455),n||(r=ca(sa(e),a),n=ua(e,r)),t.resolvedSymbol=r,t.resolvedType=n}return t.resolvedType}function fa(t){return e.map(t.typeArguments,Li)}function ma(e){var t=x(e);return t.resolvedType||(t.resolvedType=xs(rp(e.exprName))),t.resolvedType}function ga(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 229:case 230:case 232:return a}}}if(!t)return r?Gv:qv;var a=vr(t);return 32768&a.flags?e.length(a.typeParameters)!==r?(l(n(t),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,t.name,r),r?Gv:qv):a:(l(n(t),e.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,t.name),r?Gv:qv)}function ya(t,r){return ha(t,107455,r?e.Diagnostics.Cannot_find_global_value_0:void 0)}function va(t,r){return ha(t,793064,r?e.Diagnostics.Cannot_find_global_type_0:void 0)}function ha(e,t,r){return N(void 0,e,t,r,e)}function ba(e,t,r){var n=va(e,r);return n||r?ga(n,t):void 0}function ka(){return lh||(lh=ba("TypedPropertyDescriptor",1,!0))||Gv}function xa(){return kh||(kh=ba("TemplateStringsArray",0,!0))||qv}function Ca(e){return uh||(uh=ya("Symbol",e))}function Da(e){return _h||(_h=ba("Symbol",0,e))||qv}function Sa(e){return dh||(dh=ba("Promise",1,e))||Gv}function Ta(e){return ph||(ph=ya("Promise",e))}function Ea(e){return fh||(fh=ba("PromiseConstructorLike",0,e))||qv}function Na(e){return vh||(vh=ba("AsyncIterable",1,e))||Gv}function Aa(e){return hh||(hh=ba("AsyncIterator",1,e))||Gv}function wa(e){return bh||(bh=ba("AsyncIterableIterator",1,e))||Gv}function Pa(e){return mh||(mh=ba("Iterable",1,e))||Gv}function Fa(e){return gh||(gh=ba("Iterator",1,e))||Gv}function Oa(e){return yh||(yh=ba("IterableIterator",1,e))||Gv}function Ia(e,t){void 0===t&&(t=0);var r=ha(e,793064,void 0);return r&&ga(r,t)}function Ra(e,t){var r=ha(e,1920,void 0),n=r&&S(r.exports,t,793064);return n&&vr(n)}function Ma(e,t){return e!==Gv?ea(e,t):qv}function La(e){return Ma(ka(),[e])}function Ba(e){return Ma(Na(!0),[e])}function Ja(e){return Ma(wa(!0),[e])}function za(e){return Ma(Pa(!0),[e])}function Ka(e){return Ma(Oa(!0),[e])}function ja(e){return Ma($v,[e])}function Va(e){var t=x(e);return t.resolvedType||(t.resolvedType=ja(Li(e.elementType))),t.resolvedType}function Ua(t){for(var r=[],n=[],a=0;a<t;a++){var i=Te(16384);r.push(i);var o=d(4,""+a);o.type=i,n.push(o)}var s=Ae(12);return s.typeParameters=r,s.outerTypeParameters=void 0,s.localTypeParameters=r,s.instantiations=e.createMap(),s.instantiations.set(Zn(s.typeParameters),s),s.target=s,s.typeArguments=s.typeParameters,s.thisType=Te(16384),s.thisType.isThisType=!0,s.thisType.constraint=s,s.declaredProperties=n,s.declaredCallSignatures=iv,s.declaredConstructSignatures=iv,s.declaredStringIndexInfo=void 0,s.declaredNumberIndexInfo=void 0,s}function qa(e){return bv[e]||(bv[e]=Ua(e))}function Wa(e){return ea(qa(e.length),e)}function Ha(t){var r=x(t);return r.resolvedType||(r.resolvedType=Wa(e.map(t.elementTypes,Li))),r.resolvedType}function Ga(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 Xa(e,t){return Ga(e,t)>=0}function Qa(e,t){var r=t.flags;if(65536&r)Ya(e,t.types);else if(1&r)e.containsAny=!0;else if(!dv&&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:Ga(e,t);a<0&&(32768&r&&16&t.objectFlags&&t.symbol&&8208&t.symbol.flags&&Za(e,t)||e.splice(~a,0,t))}}function Ya(e,t){for(var r=0,n=t;r<n.length;r++){var a=n[r];Qa(e,a)}}function Za(e,t){for(var r=0,n=e;r<n.length;r++){var a=n[r];if(yo(a,t))return!0}return!1}function $a(e,t){for(var r=0,n=t;r<n.length;r++){var a=n[r];if(e!==a&&bo(e,a))return!0}return!1}function ei(e){var t=e[0];if(256&t.flags){for(var r=xe(t.symbol),n=1;n<e.length;n++){var a=e[n];if(!(256&a.flags)||r!==xe(a.symbol))return!1}return!0}return!1}function ti(t){if(0!==t.length&&!ei(t))for(var r=t.length;r>0;)r--,$a(t[r],t)&&e.orderedRemoveItemAt(t,r)}function ri(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&&Xa(t,n.regularType);a&&e.orderedRemoveItemAt(t,r)}}function ni(e,t,r,n){if(0===e.length)return jv;if(1===e.length)return e[0];var a=[];return Ya(a,e),a.containsAny?Nv:(t?ti(a):a.containsStringOrNumberLiteral&&ri(a),0===a.length?a.containsNull?a.containsNonWideningType?Ov:Iv:a.containsUndefined?a.containsNonWideningType?Pv:Fv:jv:ai(a,r,n))}function ai(e,t,r){if(0===e.length)return jv;if(1===e.length)return e[0];var n=Zn(e),a=kv.get(n);if(!a){var i=$n(e,6144);a=Te(65536|i),kv.set(n,a),a.types=e,a.aliasSymbol=t,a.aliasTypeArguments=r}return a}function ii(t){var r=x(t);return r.resolvedType||(r.resolvedType=ni(e.map(t.types,Li),!1,Ci(t),Di(t))),r.resolvedType}function oi(t,r){131072&r.flags?si(t,r.types):1&r.flags?t.containsAny=!0:8192&r.flags?t.containsNever=!0:16&C(r)&&Io(r)?t.containsEmptyObject=!0:!dv&&6144&r.flags||e.contains(t,r)||(32768&r.flags&&(t.containsObjectType=!0),65536&r.flags&&void 0===t.unionIndex&&(t.unionIndex=t.length),32768&r.flags&&16&r.objectFlags&&r.symbol&&8208&r.symbol.flags&&Za(t,r)||t.push(r))}function si(e,t){for(var r=0,n=t;r<n.length;r++){var a=n[r];oi(e,a)}}function ci(t,r,n){if(0===t.length)return qv;var a=[];if(si(a,t),a.containsNever)return jv;if(a.containsAny)return Nv;if(a.containsEmptyObject&&!a.containsObjectType&&a.push(qv),1===a.length)return a[0];var i=a.unionIndex;if(void 0!==i){var o=a[i];return ni(e.map(o.types,function(t){return ci(e.replaceElement(a,i,t))}),!1,r,n)}var s=Zn(a),c=xv.get(s);if(!c){var u=$n(a,6144);c=Te(131072|u),xv.set(s,c),c.types=a,c.aliasSymbol=r,c.aliasTypeArguments=n}return c}function ui(t){var r=x(t);return r.resolvedType||(r.resolvedType=ci(e.map(t.types,Li),Ci(t),Di(t))),r.resolvedType}function _i(e){return e.resolvedIndexType||(e.resolvedIndexType=Te(262144),e.resolvedIndexType.type=e),e.resolvedIndexType}function li(t){return 24&e.getDeclarationModifierFlagsFromSymbol(t)||e.startsWith(t.name,"__@")?jv:Pi(e.unescapeIdentifier(t.name))}function di(t){return ni(e.map(rn(t),li))}function pi(e){return Cd(e,540672)?_i(e):32&C(e)?Gr(e):1&e.flags||xn(e,0)?Rv:di(e)}function fi(e){var t=pi(e);return t!==jv?t:Rv}function mi(e){var t=x(e);return t.resolvedType||(t.resolvedType=pi(Li(e.type))),t.resolvedType}function gi(e,t){var r=Te(524288);return r.objectType=e,r.indexType=t,r}function yi(t,r,n,a){var i=n&&180===n.kind?n:void 0,o=96&r.flags?""+r.value:i&&nl(i.argumentExpression,r,!1)?e.getPropertyNameForKnownSymbolName(i.argumentExpression.name.text):void 0;if(void 0!==o){var s=yn(t,o);if(s){if(i){if(e.isAssignmentTarget(i)&&(fd(i,s)||md(i)))return l(i.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property,He(s)),wv;a&&(x(n).resolvedSymbol=s)}return jt(s)}}if($u(r,262774)){if(ft(t))return Nv;var c=$u(r,84)&&xn(t,1)||xn(t,0)||void 0;if(c)return i&&c.isReadonly&&(e.isAssignmentTarget(i)||e.isDeleteTarget(i))?(l(i,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Xe(t)),wv):c.type;if(i&&!Sd(t))return pv&&!sv.suppressImplicitAnyIndexErrors&&(Cn(t,1)?l(i.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number):l(i,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Xe(t))),Nv}if(n){var u=180===n.kind?n.argumentExpression:n.indexType;return 96&r.flags?l(u,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+r.value,Xe(t)):6&r.flags?l(u,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,Xe(t),Xe(r)):l(u,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Xe(r)),wv}return Nv}function vi(t,r,n){var a=n&&180===n.kind?n:void 0;if(a&&e.isAssignmentTarget(a)&&t.declaration.readonlyToken)return l(a,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Xe(t)),wv;var i=qi([Hr(t)],[r]),o=t.mapper?Yi(t.mapper,i):i;return uo(Xr(t),o)}function hi(e,t,r){if(Cd(t,802816)||Cd(e,540672)&&(!r||180!==r.kind)||Yr(e)){if(1&e.flags)return e;if(Yr(e))return vi(e,t,r);var n=e.id+","+t.id,a=Dv.get(n);return a||Dv.set(n,a=gi(e,t)),a}var i=pn(e);if(65536&t.flags&&!(8190&t.flags)){for(var o=[],s=0,c=t.types;s<c.length;s++){var u=c[s],_=yi(i,u,r,!1);if(_===wv)return wv;o.push(_)}return ni(o)}return yi(i,t,r,!0)}function bi(e){var t=x(e);return t.resolvedType||(t.resolvedType=hi(Li(e.objectType),Li(e.indexType),e)),t.resolvedType}function ki(e){var t=x(e);if(!t.resolvedType){var r=Ae(32,e.symbol);r.declaration=e,r.aliasSymbol=Ci(e),r.aliasTypeArguments=Di(e),t.resolvedType=r,Gr(r)}return t.resolvedType}function xi(e){var t=x(e);if(!t.resolvedType){var r=Ci(e);if(0!==e.symbol.members.size||r){var n=Ae(16,e.symbol);n.aliasSymbol=r,n.aliasTypeArguments=Di(e),t.resolvedType=n}else t.resolvedType=Hv}return t.resolvedType}function Ci(e){return 231===e.parent.kind?ke(e.parent):void 0}function Di(e){var t=Ci(e);return t?Xt(t):void 0}function Si(t,r){if(1&t.flags||1&r.flags)return Nv;if(8192&t.flags)return r;if(8192&r.flags)return t;if(65536&t.flags)return Ac(t,function(e){return Si(e,r)});if(65536&r.flags)return Ac(r,function(e){return Si(t,e)});if(16777216&r.flags)return qv;var n,a,i=e.createMap(),o=e.createMap();t===qv?(n=xn(r,0),a=xn(r,1)):(n=jr(xn(t,0),xn(r,0)),a=jr(xn(t,1),xn(r,1)));for(var s=0,c=rn(r);s<c.length;s++){var u=c[s],_=65536&u.flags&&!(32768&u.flags);24&e.getDeclarationModifierFlagsFromSymbol(u)?o.set(u.name,!0):Ei(u)||_||i.set(u.name,Ti(u))}for(var l=0,p=rn(t);l<p.length;l++){var f=p[l];if(!(65536&f.flags&&!(32768&f.flags)||o.has(f.name)||Ei(f)))if(i.has(f.name)){var u=i.get(f.name),m=jt(u);if(67108864&u.flags){var g=e.concatenate(f.declarations,u.declarations),y=4|67108864&f.flags,v=d(y,f.name);v.type=ni([jt(f),rc(m,131072)]),v.leftSpread=f,v.rightSpread=u,v.declarations=g,i.set(f.name,v)}}else i.set(f.name,Ti(f))}return Ie(void 0,i,iv,iv,n,a)}function Ti(e){if(!pd(e))return e;var t=4|67108864&e.flags,r=d(t,e.name);return r.type=jt(e),r.declarations=e.declarations,r.syntheticOrigin=e,r}function Ei(t){return 8192&t.flags&&e.find(t.declarations,function(t){return e.isClassLike(t.parent)})}function Ni(e,t,r){var n=Te(e);return n.symbol=r,n.value=t,n}function Ai(e){if(96&e.flags&&!(1048576&e.flags)){if(!e.freshType){var t=Ni(1048576|e.flags,e.value,e.symbol);t.regularType=e,e.freshType=t}return e.freshType}return e}function wi(e){return 96&e.flags&&1048576&e.flags?e.regularType:e}function Pi(e,t,r){var n="number"==typeof e?"#":"@",a=t?t+n+e:n+e,i=Cv.get(a);if(!i){var o=("number"==typeof e?64:32)|(t?256:0);Cv.set(a,i=Ni(o,e,r))}return i}function Fi(e){var t=x(e);return t.resolvedType||(t.resolvedType=wi(rp(e.literal))),t.resolvedType}function Oi(e){var t=x(e);if(!t.resolvedType){var r=Li(e.type);t.resolvedType=r?ja(r):wv}return t.resolvedType}function Ii(t){var r=x(t);if(!r.resolvedType){var n=e.map(t.types,Li);r.resolvedType=Wa(n)}return r.resolvedType}function Ri(t){var r=e.getThisContainer(t,!1),n=r&&r.parent;return!n||!e.isClassLike(n)&&230!==n.kind||32&e.getModifierFlags(r)||152===r.kind&&!e.isNodeDescendantOf(t,r.body)?(l(t,e.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),wv):ur(ke(n)).thisType}function Mi(e){var t=x(e);return t.resolvedType||(t.resolvedType=Ri(e)),t.resolvedType}function Li(e){switch(e.kind){case 119:case 268:case 269:return Nv;case 136:return Rv;case 133:return Mv;case 122:return Jv;case 137:return zv;case 105:return Kv;case 139:return Pv;case 95:return Ov;case 130:return jv;case 134:return Uv;case 169:case 99:return Mi(e);case 173:return Fi(e);case 294:return Fi(e.literal);case 159:case 277:return pa(e);case 158:return Jv;case 201:return pa(e);case 162:return ma(e);case 164:case 270:return Va(e);case 165:return Ha(e);case 166:case 271:return ii(e);case 167:return ui(e);case 273:return da(e);case 168:case 274:case 281:case 282:case 278:return Li(e.type);case 275:return Li(e.literal);case 160:case 161:case 163:case 293:case 279:return xi(e);case 170:return mi(e);case 171:return bi(e);case 172:return ki(e);case 71:case 143:var t=$m(e);return t&&vr(t);case 272:return Ii(e);case 280:return Oi(e);default:return wv}}function Bi(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 Ji(e,t){return Bi(e,t,uo)}function zi(e,t){return Bi(e,t,to)}function Ki(e,t,r){var n=t.instantiations||(t.instantiations=[]);return n[e.id]||(n[e.id]=r(e,t))}function ji(e,t){return function(r){return r===e?t:r}}function Vi(e,t,r,n){return function(a){return a===e?t:a===r?n:a}}function Ui(e,t){return function(r){for(var n=0;n<e.length;n++)if(r===e[n])return t?t[n]:Nv;return r}}function qi(e,t){var r=1===e.length?ji(e[0],t?t[0]:Nv):2===e.length?Vi(e[0],t?t[0]:Nv,e[1],t?t[1]:Nv):Ui(e,t);return r.mappedTypes=e,r}function Wi(e){return qi(e,void 0)}function Hi(t,r){var n=function(n){return e.indexOf(t,n)>=r?qv:n};return n.mappedTypes=t,n}function Gi(e){return!!e.signature}function Xi(e){return e&&Gi(e)?Es(e.signature,2|e.flags,e.inferences):e}function Qi(e){return e}function Yi(t,r){var n=function(e){return uo(t(e),r)};return n.mappedTypes=e.concatenate(t.mappedTypes,r.mappedTypes),n}function Zi(e,t,r){var n=function(n){return n===e?t:r(n)};return n.mappedTypes=r.mappedTypes,n}function $i(e){var t=Te(16384);return t.symbol=e.symbol,t.target=e,t}function eo(t,r){return e.isIdentifierTypePredicate(t)?{kind:1,parameterName:t.parameterName,parameterIndex:t.parameterIndex,type:uo(t.type,r)}:{kind:0,type:uo(t.type,r)}}function to(t,r,n){var a,i;if(t.typeParameters&&!n){a=e.map(t.typeParameters,$i),r=Yi(qi(t.typeParameters,a),r);for(var o=0,s=a;o<s.length;o++){var c=s[o];c.mapper=r}}t.typePredicate&&(i=eo(t.typePredicate,r));var u=Fr(t.declaration,a,t.thisParameter&&ro(t.thisParameter,r),Bi(t.parameters,r,ro),void 0,i,t.minArgumentCount,t.hasRestParameter,t.hasLiteralTypes);return u.target=t,u.mapper=r,u}function ro(t,r){if(1&e.getCheckFlags(t)){var n=k(t);t=n.target,r=Yi(n.mapper,r)}var a=d(t.flags,t.name);return a.checkFlags=1,a.declarations=t.declarations,a.parent=t.parent,a.target=t,a.mapper=r,t.valueDeclaration&&(a.valueDeclaration=t.valueDeclaration),a}function no(e,t){var r=Ae(80,e.symbol);return r.target=64&e.objectFlags?e.target:e,r.mapper=64&e.objectFlags?Yi(e.mapper,t):t,r.aliasSymbol=e.aliasSymbol,r.aliasTypeArguments=Ji(e.aliasTypeArguments,t),r}function ao(e,t){var r=Gr(e);if(262144&r.flags){var n=r.type;if(16384&n.flags){var a=uo(n,t);if(n!==a)return Ac(a,function(r){return io(r)?oo(e,Zi(n,r,t)):r})}}return oo(e,t)}function io(e){return 704512&e.flags}function oo(e,t){var r=Ae(96,e.symbol);return r.declaration=e.declaration,r.mapper=e.mapper?Yi(e.mapper,t):t,r.aliasSymbol=e.aliasSymbol,r.aliasTypeArguments=Ji(e.aliasTypeArguments,t),r}function so(t,r){if(!t.declarations||!t.declarations.length)return!1;var n=r.mappedTypes;return!!e.findAncestor(t.declarations[0],function(t){if(233===t.kind||265===t.kind)return"quit";switch(t.kind){case 160:case 161:case 228:case 151:case 150:case 152:case 155:case 156:case 157:case 153:case 154:case 186:case 187:case 229:case 199:case 230:case 231:var r=e.getEffectiveTypeParameterDeclarations(t);if(r)for(var a=0,i=r;a<i.length;a++){var o=i[a];if(e.contains(n,gr(ke(o))))return!0}if(e.isClassLike(t)||230===t.kind){var s=ur(ke(t)).thisType;if(s&&e.contains(n,s))return!0}break;case 172:if(e.contains(n,gr(ke(t.typeParameter))))return!0;break;case 279:for(var c=t,u=0,_=c.parameters;u<_.length;u++){var l=_[u];if(e.contains(n,rg(l)))return!0}}})}function co(e){if(e.declarations&&e.declarations.length){var t=e.declarations[0].parent.kind;return 265===t||234===t}return!1}function uo(e,t){return e&&t!==Qi?e.aliasSymbol&&co(e.aliasSymbol)?e.aliasTypeArguments?aa(e.aliasSymbol,Ji(e.aliasTypeArguments,t)):e:_o(e,t):e}function _o(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||so(e.symbol,t))?Ki(e,t,no):e;if(32&e.objectFlags)return Ki(e,t,ao);if(4&e.objectFlags)return ea(e.target,Ji(e.typeArguments,t))}return 65536&e.flags&&!(8190&e.flags)?ni(Ji(e.types,t),!1,e.aliasSymbol,Ji(e.aliasTypeArguments,t)):131072&e.flags?ci(Ji(e.types,t),e.aliasSymbol,Ji(e.aliasTypeArguments,t)):262144&e.flags?pi(uo(e.type,t)):524288&e.flags?hi(uo(e.objectType,t),uo(e.indexType,t)):e}function lo(e,t){return e&&Hn(uo(e.type,t),e.isReadonly,e.declaration)}function po(t){switch(e.Debug.assert(151!==t.kind||e.isObjectLiteralMethod(t)),t.kind){case 186:case 187:return fo(t);case 178:return e.forEach(t.properties,po);case 177:return e.forEach(t.elements,po);case 195:return po(t.whenTrue)||po(t.whenFalse);case 194:return 54===t.operatorToken.kind&&(po(t.left)||po(t.right));case 261:return po(t.initializer);case 151:case 150:return fo(t);case 185:return po(t.expression);case 254:return e.forEach(t.properties,po);case 253:return t.initializer&&po(t.initializer);case 256:return t.expression&&po(t.expression)}return!1}function fo(t){if(t.typeParameters)return!1;if(e.forEach(t.parameters,function(t){return!e.getEffectiveTypeAnnotationNode(t)}))return!0;if(187===t.kind)return!1;var r=e.firstOrUndefined(t.parameters);return!(r&&e.parameterIsThisKeyword(r))}function mo(t){return(Uu(t)||e.isObjectLiteralMethod(t))&&fo(t)}function go(t){if(32768&t.flags){var r=Zr(t);if(r.constructSignatures.length){var n=Ae(16,t.symbol);return n.members=r.members,n.properties=r.properties,n.callSignatures=iv,n.constructSignatures=iv,n}}else if(131072&t.flags)return ci(e.map(t.types,go));return t}function yo(e,t){return Lo(e,t,Cb)}function vo(e,t){return Lo(e,t,Cb)?-1:0}function ho(e,t){return Lo(e,t,kb)?-1:0}function bo(e,t){return Lo(e,t,bb)}function ko(e,t){return Lo(e,t,kb)}function xo(e,t){return Ut(e)===Ut(t)||bo(e,t)&&!yo(e,t)}function Co(e,t){return Lo(e,t,xb)}function Do(e,t){return Co(e,t)||Co(t,e)}function So(e,t,r,n,a){return Bo(e,t,kb,r,n,a)}function To(e,t,r,n,a){return Bo(e,t,xb,r,n,a)}function Eo(e,t,r){return 0!==No(e,t,!1,r,!1,void 0,ho)}function No(t,r,n,a,i,o,s){if(t===r)return-1;if(!r.hasRestParameter&&t.minArgumentCount>r.parameters.length)return 0;t.typeParameters&&(t=ll(t,r));var c=-1,u=Bn(t);if(u&&u!==Kv){var _=Bn(r);if(_){var l=s(u,_,!1)||s(_,u,i);if(!l)return i&&o(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;c&=l}}for(var d=Po(t),p=Po(r),f=Fo(t,d,r,p),m=t.parameters,g=r.parameters,y=0;y<f;y++){var v=y<d?Xl(m[y]):zn(t),h=y<p?Xl(g[y]):zn(r),b=_l(fs(v)),k=_l(fs(h)),x=b&&k&&!b.typePredicate&&!k.typePredicate&&(6144&us(v))===(6144&us(h)),l=x?No(k,b,!0,!1,i,o,s):!n&&s(v,h,!1)||s(h,v,i);if(!l)return i&&o(e.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,m[y<d?y:d].name,g[y<p?y:p].name),0;c&=l}if(!a){var C=Jn(r);if(C===Kv)return c;var D=Jn(t);if(r.typePredicate){if(t.typePredicate)c&=Ao(t.typePredicate,r.typePredicate,i,o,s);else if(e.isIdentifierTypePredicate(r.typePredicate))return i&&o(e.Diagnostics.Signature_0_must_have_a_type_predicate,Ge(t)),0}else c&=n&&s(C,D,!1)||s(D,C,i)}return c}function Ao(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,Ye(t),Ye(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,Ye(t),Ye(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,Ye(t),Ye(r)),c}function wo(e,t){var r=Vn(e),n=Vn(t),a=Jn(r),i=Jn(n);return!(i!==Kv&&!Lo(i,a,kb)&&!Lo(a,i,kb))&&Eo(r,n,!0)}function Po(e){var t=e.parameters.length;return e.hasRestParameter?t-1:t}function Fo(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 Oo(e){return 0===e.properties.length&&0===e.callSignatures.length&&0===e.constructSignatures.length&&!e.stringIndexInfo&&!e.numberIndexInfo}function Io(t){return 32768&t.flags?Oo(Zr(t)):!!(16777216&t.flags)||(65536&t.flags?e.forEach(t.types,Io):!!(131072&t.flags)&&!e.forEach(t.types,function(e){return!Io(e)}))}function Ro(t,n,a){if(t===n)return!0;var i=r(t)+","+r(n),o=Db.get(i);if(void 0!==o)return o;if(!(t.name===n.name&&256&t.flags&&256&n.flags))return Db.set(i,!1),!1;for(var s=jt(n),c=0,u=rn(jt(t));c<u.length;c++){var _=u[c];if(8&_.flags){var l=yn(s,_.name);if(!(l&&8&l.flags))return a&&a(e.Diagnostics.Property_0_is_missing_in_type_1,_.name,Xe(vr(n),void 0,256)),Db.set(i,!1),!1}}return Db.set(i,!0),!0}function Mo(e,t,r,n){var a=e.flags,i=t.flags;if(8192&i)return!1;if(1&i||8192&a)return!0;if(262178&a&&2&i)return!0;if(32&a&&256&a&&32&i&&!(256&i)&&e.value===t.value)return!0;if(84&a&&4&i)return!0;if(64&a&&256&a&&64&i&&!(256&i)&&e.value===t.value)return!0;if(136&a&&8&i)return!0;if(16&a&&16&i&&Ro(e.symbol,t.symbol,n))return!0;if(256&a&&256&i){if(65536&a&&65536&i&&Ro(e.symbol,t.symbol,n))return!0;if(224&a&&224&i&&e.value===t.value&&Ro(xe(e.symbol),xe(t.symbol),n))return!0}if(2048&a&&(!dv||3072&i))return!0;if(4096&a&&(!dv||4096&i))return!0;if(32768&a&&16777216&i)return!0;if(r===kb||r===xb){if(1&a)return!0;if(68&a&&!(256&a)&&(16&i||64&i&&256&i))return!0}return!1}function Lo(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!==Cb&&Mo(e,t,r))return!0;if(32768&e.flags&&32768&t.flags){var n=r!==Cb||e.id<t.id?e.id+","+t.id:t.id+","+e.id,a=r.get(n);if(void 0!==a)return 1===a}return!!(1032192&e.flags||1032192&t.flags)&&Bo(e,t,r,void 0)}function Bo(t,r,n,a,i,o){function s(t,r,n,i){e.Debug.assert(!!a),B=e.chainDiagnosticMessages(B,t,r,n,i)}function c(t,r,a){var i=Xe(r),o=Xe(a);i===o&&(i=Xe(r,void 0,256),o=Xe(a,void 0,256)),t||(t=n===xb?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=Xe(t),a=Xe(r);(th===t&&Rv===r||rh===t&&Mv===r||nh===t&&Jv===r||Da(!1)===t&&zv===r)&&s(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,a,n)}function _(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){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===Cb)return p(t,r);if(Mo(t,r,n,a?s:void 0))return-1;if(128&C(t)&&1048576&t.flags){if(f(t,r,a))return a&&c(i,t,r),0;_(r)&&(t=vs(t))}if(n!==xb&&!(196608&t.flags)&&!(65536&r.flags)&&!q&&t!==Yv&&rn(t).length>0&&E(r)&&!N(t,r))return a&&s(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,Xe(t),Xe(r)),0;var o=0,l=B,d=q;return q=!1,65536&t.flags?o=n===xb?h(t,r,a&&!(8190&t.flags)):b(t,r,a&&!(8190&t.flags)):(65536&r.flags?o=g(t,r,a&&!(8190&t.flags)&&!(8190&r.flags)):131072&r.flags?(q=!0,o=v(t,r,a)):131072&t.flags&&(o=h(t,r,!1)),!o&&(1032192&t.flags||1032192&r.flags)&&(o=x(t,r,a))&&(B=l)),q=d,!o&&a&&(32768&t.flags&&8190&r.flags?u(t,r):t.symbol&&32768&t.flags&&Yv===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)),o}function p(e,t){var r;return 32768&e.flags&&32768&t.flags?x(e,t,!1):(65536&e.flags&&65536&t.flags||131072&e.flags&&131072&t.flags)&&(r=m(e,t))&&(r&=m(t,e))?r:0}function f(t,r,i){if(Cd(r,32768)&&!(512&C(r))){var o=!!(33554432&t.flags);if((n===kb||n===xb)&&(Sc(Yv,r)||!o&&Io(r)))return!1;for(var c=function(n){if(!O_(r,n.name,o)){if(i)if(e.Debug.assert(!!a),e.isJsxAttributes(a)||e.isJsxOpeningLikeElement(a))s(e.Diagnostics.Property_0_does_not_exist_on_type_1,He(n),Xe(r));else{var c=t.symbol&&e.firstOrUndefined(t.symbol.declarations);n.valueDeclaration&&e.findAncestor(n.valueDeclaration,function(e){return e===c})&&(a=n.valueDeclaration),s(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,He(n),Xe(r))}return{value:!0}}},u=0,_=$r(t);u<_.length;u++){var l=_[u],d=c(l);if("object"==typeof d)return d.value}}return!1}function m(e,t){for(var r=-1,n=e.types,a=0,i=n;a<i.length;a++){var o=i[a],s=g(o,t,!1);if(!s)return 0;r&=s}return r}function g(e,t,r){var n=t.types;if(65536&t.flags&&Xa(n,e))return-1;for(var a=0,i=n;a<i.length;a++){var o=i[a],s=d(e,o,!1);if(s)return s}if(r){var c=y(e,t);d(e,c||n[n.length-1],!0)}return 0}function y(e,t){var r=$r(e);if(r)for(var n=0,a=r;n<a.length;n++){var i=a[n];if(Hs(t,i.name))for(var o=jt(i),s=0,c=t.types;s<c.length;s++){var u=c[s],_=pt(u,i.name);if(_&&d(o,_))return u}}}function v(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 h(e,t,r){var n=e.types;if(65536&e.flags&&Xa(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 b(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 k(e,t,r){var a=e.typeArguments||iv,i=t.typeArguments||iv;if(a.length!==i.length&&n===Cb)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 x(t,r,a){if(U)return 0;var i=n!==Cb||t.id<r.id?t.id+","+r.id:r.id+","+t.id,o=n.get(i);if(void 0!==o){if(!a||2!==o)return 1===o?-1:0;n.set(i,3)}if(V>0){for(var s=0;s<V;s++)if(K[s].get(i))return 1;if(100===V)return U=!0,0}else J=[],z=[],K=[],j=0;J[V]=t,z[V]=r,K[V]=e.createMap(),K[V].set(i,1),V++;var c=j;1&j||!qo(t,J,V)||(j|=1),2&j||!qo(r,z,V)||(j|=2);var u=3!==j?D(t,r,a):1;if(j=c,V--,u){var _=K[V],l=u===-1||0===V?n:K[V-1];e.copyEntries(_,l)}else n.set(i,a?3:2);return u}function D(e,t,r){var a,i=B;if(16384&t.flags){if(32&C(e)&&Gr(e)===pi(t)&&!e.declaration.questionToken){var o=Xr(e),s=hi(t,Hr(e));if(a=d(o,s,r))return a}}else if(262144&t.flags){if(262144&e.flags&&(a=d(t.type,e.type,!1)))return a;var c=an(t.type);if(c&&(a=d(e,pi(c),r)))return a}else if(524288&t.flags){var c=an(t);if(c&&(a=d(e,c,r)))return B=i,a}if(16384&e.flags)if(32&C(t)&&Gr(t)===pi(e)){var s=hi(e,Hr(t)),o=Xr(t);if(a=d(s,o,r))return B=i,a}else{var c=on(e);if(c||!(16777216&t.flags)){(!c||1&c.flags)&&(c=qv),c=Nr(c,e);var u=r&&c!==qv;if(a=d(c,t,u))return B=i,a}}else if(524288&e.flags){var c=an(e);if(c){if(a=d(c,t,r))return B=i,a}else if(524288&t.flags&&e.indexType===t.indexType&&(a=d(e.objectType,t.objectType,r)))return a}else{if(4&C(e)&&4&C(t)&&e.target===t.target&&(a=k(e,t,r)))return a;var _=!!(8190&e.flags);if(n!==Cb&&(e=pn(e)),163840&e.flags&&32768&t.flags){var l=r&&B===i&&!_;if(Yr(e)||Yr(t)?a=S(e,t,l):(a=T(e,t,l),a&&(a&=w(e,t,0,l),a&&(a&=w(e,t,1,l),a&&(a&=R(e,t,0,_,l),a&&(a&=R(e,t,1,_,l)))))),a)return B=i,a}}return 0}function S(e,t,r){if(Yr(t)){if(Yr(e)){var a=!!e.declaration.readonlyToken,i=!!e.declaration.questionToken,o=!!t.declaration.readonlyToken,s=!!t.declaration.questionToken,c=n===Cb?a===o&&i===s:n===xb||!i||s;if(c){var u;if(u=d(Gr(t),Gr(e),r)){var _=qi([Hr(e)],[Hr(t)]);return u&d(uo(Xr(e),_),Xr(t),r)}}}else if(t.declaration.questionToken&&Io(e))return-1}else if(n!==Cb){var l=Zr(t);if(Oo(l)||l.stringIndexInfo&&1&l.stringIndexInfo.type.flags)return-1}return 0}function T(t,r,a){if(n===Cb)return A(t,r);for(var i=-1,o=$r(r),c=n===bb&&!(128&C(t)),u=0,_=o;u<_.length;u++){var l=_[u],p=yn(t,l.name);if(p!==l)if(p){if(!(16777216&l.flags)){var f=e.getDeclarationModifierFlagsFromSymbol(p),m=e.getDeclarationModifierFlagsFromSymbol(l);if(8&f||8&m){if(256&e.getCheckFlags(p))return a&&s(e.Diagnostics.Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1,He(p),Xe(t)),0;if(p.valueDeclaration!==l.valueDeclaration)return a&&(8&f&&8&m?s(e.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,He(l)):s(e.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,He(l),Xe(8&f?t:r),Xe(8&f?r:t))),0}else if(16&m){if(!jo(p,l))return a&&s(e.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,He(l),Xe(zo(p)||t),Xe(zo(l)||r)),0}else if(16&f)return a&&s(e.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,He(l),Xe(t),Xe(r)),0;var g=d(jt(p),jt(l),a);if(!g)return a&&s(e.Diagnostics.Types_of_property_0_are_incompatible,He(l)),0;if(i&=g,n!==xb&&67108864&p.flags&&!(67108864&l.flags))return a&&s(e.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,He(l),Xe(t),Xe(r)),0}}else if(!(67108864&l.flags)||c)return a&&s(e.Diagnostics.Property_0_is_missing_in_type_1,He(l),Xe(t)),0}return i}function E(t){if(32768&t.flags){var r=Zr(t);return 0===r.callSignatures.length&&0===r.constructSignatures.length&&!r.stringIndexInfo&&!r.numberIndexInfo&&r.properties.length>0&&e.every(r.properties,function(e){return!!(67108864&e.flags)})}return!!(131072&t.flags)&&e.every(t.types,E)}function N(e,t){for(var r=!!(33554432&e.flags),n=0,a=rn(e);n<a.length;n++){var i=a[n];if(O_(t,i.name,r))return!0}return!1}function A(e,t){if(!(32768&e.flags&&32768&t.flags))return 0;var r=$r(e),n=$r(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=en(t,s.name);if(!c)return 0;var u=Ho(s,c,d);if(!u)return 0;a&=u}return a}function w(t,r,a,i){if(n===Cb)return F(t,r,a);if(r===Xv||t===Xv)return-1;var o=hn(t,a),c=hn(r,a);if(1===a&&o.length&&c.length){if(Uo(t)&&!Uo(r))return i&&s(e.Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!L(o[0],c[0],i))return 0}var u=-1,_=B;if(64&C(t)&&64&C(r)&&t.symbol===r.symbol)for(var l=0;l<c.length;l++){var d=P(o[l],c[l],!0,i);if(!d)return 0;u&=d}else if(1===o.length&&1===c.length){var p=n===xb||sv.noStrictGenericChecks;u=P(o[0],c[0],p,i)}else e:for(var f=0,m=c;f<m.length;f++){for(var g=m[f],y=i,v=0,h=o;v<h.length;v++){var b=h[v],d=P(b,g,!0,y);if(d){u&=d,B=_;continue e}y=!1}return y&&s(e.Diagnostics.Type_0_provides_no_match_for_the_signature_1,Xe(t),Ge(g,void 0,void 0,a)),0}return u}function P(e,t,r,n){return No(r?Vn(e):e,r?Vn(t):t,!1,!1,n,s,d)}function F(e,t,r){var n=hn(e,r),a=hn(t,r);if(n.length!==a.length)return 0;for(var i=-1,o=0;o<n.length;o++){var s=Xo(n[o],a[o],!1,!1,!1,d);if(!s)return 0;i&=s}return i}function O(t,r,n,a){for(var i=-1,o=0,c=$r(t);o<c.length;o++){var u=c[o];if(0===n||t_(u.name)){var _=d(jt(u),r,a);if(!_)return a&&s(e.Diagnostics.Property_0_is_incompatible_with_index_signature,He(u)),0;i&=_}}return i}function I(t,r,n){var a=d(t.type,r.type,n);return!a&&n&&s(e.Diagnostics.Index_signatures_are_incompatible),a}function R(t,r,a,i,o){if(n===Cb)return M(t,r,a);var c=xn(r,a);if(!c||1&c.type.flags&&!i)return-1;var u=xn(t,a)||1===a&&xn(t,0);if(u)return I(u,c,o);if(ms(t)){var _=-1;if(0===a){var l=xn(t,1);l&&(_=I(l,c,o))}return _&&(_&=O(t,c.type,a,o)),_}return o&&s(e.Diagnostics.Index_signature_is_missing_in_type_0,Xe(t)),0}function M(e,t,r){var n=xn(t,r),a=xn(e,r);return a||n?a&&n&&a.isReadonly===n.isReadonly?d(a.type,n.type):0:-1}function L(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,$e(a),$e(i)),!1)))}var B,J,z,K,j,V=0,U=!1,q=!1;e.Debug.assert(n!==Cb||!a,"no error reporting in identity checking");var W=d(t,r,!!a,i);return U?l(a,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,Xe(t),Xe(r)):B&&(o&&(B=e.concatenateDiagnosticMessageChains(o,B)),ib.add(e.createDiagnosticForNodeFromMessageChain(a,B))),0!==W}function Jo(t,r){if(!(6&e.getCheckFlags(t)))return r(t);for(var n=0,a=t.containingType.types;n<a.length;n++){var i=a[n],o=yn(i,t.name),s=o&&Jo(o,r);if(s)return s}}function zo(e){return e.parent&&32&e.parent.flags?vr(xe(e)):void 0}function Ko(e,t){return Jo(e,function(e){var r=zo(e);return!!r&&qt(r,t)})}function jo(t,r){return!Jo(r,function(r){return!!(16&e.getDeclarationModifierFlagsFromSymbol(r))&&!Ko(t,zo(r))})}function Vo(t,r){return Jo(r,function(r){return!!(16&e.getDeclarationModifierFlagsFromSymbol(r))&&!qt(t,zo(r))})?void 0:t}function Uo(t){if(16&C(t)){var r=t.symbol;if(r&&32&r.flags){var n=im(r);if(n&&128&e.getModifierFlags(n))return!0}}return!1}function qo(e,t,r){if(r>=5&&32768&e.flags){var n=e.symbol;if(n)for(var a=0,i=0;i<r;i++){var o=t[i];if(32768&o.flags&&o.symbol===n&&(a++,a>=5))return!0}}return!1}function Wo(e,t){return 0!==Ho(e,t,vo)}function Ho(t,r,n){if(t===r)return-1;var a=24&e.getDeclarationModifierFlagsFromSymbol(t),i=24&e.getDeclarationModifierFlagsFromSymbol(r);if(a!==i)return 0;if(a){if(am(t)!==am(r))return 0}else if((67108864&t.flags)!==(67108864&r.flags))return 0;return pd(t)!==pd(r)?0:n(jt(t),jt(r))}function Go(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 Xo(t,r,n,a,i,o){if(t===r)return-1;if(!Go(t,r,n))return 0;if(e.length(t.typeParameters)!==e.length(r.typeParameters))return 0;t=Vn(t),r=Vn(r);var s=-1;if(!a){var c=Bn(t);if(c){var u=Bn(r);if(u){var _=o(c,u);if(!_)return 0;s&=_}}}for(var l=r.parameters.length,d=0;d<l;d++){var p=Qo(t,d)?zn(t):Xl(t.parameters[d]),f=Qo(r,d)?zn(r):Xl(r.parameters[d]),_=o(p,f);if(!_)return 0;s&=_}return i||(s&=o(Jn(t),Jn(r))),s}function Qo(e,t){return e.hasRestParameter&&t>=e.parameters.length-1}function Yo(e){for(var t,r=0,n=e;r<n.length;r++){var a=n[r],i=is(a);if(t||(t=i),i===a||i!==t)return!1}return!0}function Zo(t){return Yo(t)?ni(t):e.reduceLeft(t,function(e,t){return bo(e,t)?t:e})}function $o(t){if(!dv)return Zo(t);var r=e.filter(t,function(e){return!(6144&e.flags)});return r.length?ps(Zo(r),6144&cs(t)):ni(t,!0)}function es(e){return 4&C(e)&&e.target===$v}function ts(e){return 4&C(e)&&(e.target===$v||e.target===eh)||!(6144&e.flags)&&ko(e,ch)}function rs(e){return!!yn(e,"0")}function ns(e){return 0!==(6368&e.flags)}function as(t){return!!(8&t.flags)||(65536&t.flags?!!(256&t.flags)||!e.forEach(t.types,function(e){return!ns(e)}):ns(t))}function is(t){return 256&t.flags?pr(t):32&t.flags?Rv:64&t.flags?Mv:128&t.flags?Jv:65536&t.flags?ni(e.sameMap(t.types,is)):t}function os(t){return 256&t.flags?pr(t):32&t.flags&&1048576&t.flags?Rv:64&t.flags&&1048576&t.flags?Mv:128&t.flags?Jv:65536&t.flags?ni(e.sameMap(t.types,os)):t}function ss(e){return!!(4&C(e)&&8&e.target.objectFlags)}function cs(e){for(var t=0,r=0,n=e;r<n.length;r++){var a=n[r];t|=us(a)}return t}function us(e){return 65536&e.flags?cs(e.types):32&e.flags?""===e.value?32:0:64&e.flags?0===e.value?64:0:128&e.flags?e===Bv?128:0:7406&e.flags}function _s(e){return 7392&us(e)?Nc(e,function(e){return!(7392&us(e))}):e}function ls(e){return Ac(e,ds)}function ds(e){return 2&e.flags?zh:4&e.flags?Kh:8&e.flags||e===Bv?Bv:7168&e.flags||32&e.flags&&""===e.value||64&e.flags&&0===e.value?e:jv}function ps(e,t){var r=t&~e.flags&6144;return 0===r?e:ni(2048===r?[e,Pv]:4096===r?[e,Ov]:[e,Pv,Ov])}function fs(e){return dv?rc(e,524288):e}function ms(e){return e.symbol&&0!==(6144&e.symbol.flags)&&0===hn(e,0).length&&0===hn(e,1).length}function gs(e,t){var r=d(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 ys(t,r){for(var n=e.createMap(),a=0,i=$r(t);a<i.length;a++){var o=i[a],s=jt(o),c=r(s);n.set(o.name,c===s?o:gs(o,c))}return n}function vs(e){if(!(128&C(e)&&1048576&e.flags))return e;var t=e.regularType;if(t)return t;var r=e,n=ys(e,vs),a=Ie(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 hs(e){var t=jt(e),r=xs(t);return r===t?e:gs(e,r)}function bs(t){for(var r=e.createMap(),n=0,a=$r(t);n<a.length;n++){var i=a[n];r.set(i.name,4&i.flags?hs(i):i)}var o=xn(t,0),s=xn(t,1);return Ie(t.symbol,r,iv,iv,o&&Hn(xs(o.type),o.isReadonly),s&&Hn(xs(s.type),s.isReadonly))}function ks(e){return 6144&e.flags?e:xs(e)}function xs(t){if(6291456&t.flags){if(6144&t.flags)return Nv;if(128&C(t))return bs(t);if(65536&t.flags)return ni(e.sameMap(t.types,ks));if(es(t)||ss(t))return ea(t.target,e.sameMap(t.typeArguments,xs))}return t}function Cs(t){var r=!1;if(65536&t.flags)for(var n=0,a=t.types;n<a.length;n++){var i=a[n];Cs(i)&&(r=!0)}if(es(t)||ss(t))for(var o=0,s=t.typeArguments;o<s.length;o++){var i=s[o];Cs(i)&&(r=!0)}if(128&C(t))for(var c=0,u=$r(t);c<u.length;c++){var _=u[c],i=jt(_);2097152&i.flags&&(Cs(i)||l(_.valueDeclaration,e.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,_.name,Xe(xs(i))),r=!0)}return r}function Ds(t,r){var n,a=Xe(xs(r));switch(t.kind){case 149:case 148:n=e.Diagnostics.Member_0_implicitly_has_an_1_type;break;case 146:n=t.dotDotDotToken?e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:e.Diagnostics.Parameter_0_implicitly_has_an_1_type;break;case 176:n=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type;break;case 228:case 151:case 150:case 153:case 154:case 186:case 187:if(!t.name)return void l(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}l(t,n,e.declarationNameToString(e.getNameOfDeclaration(t)),a)}function Ss(e,t){o&&pv&&2097152&t.flags&&(Cs(t)||Ds(e,t))}function Ts(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(Ql(e,o),Ql(t,o))}function Es(t,r,n){function a(e){for(var t=0;t<i.length;t++)if(e===i[t].typeParameter)return i[t].isFixed=!0,Bs(o,t);return e}var i=n?e.map(n,As):e.map(t.typeParameters,Ns),o=a;return o.mappedTypes=t.typeParameters,o.signature=t,o.inferences=i,o.flags=r,o}function Ns(e){return{typeParameter:e,candidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1}}function As(e){return{typeParameter:e.typeParameter,candidates:e.candidates&&e.candidates.slice(),inferredType:e.inferredType,priority:e.priority,topLevel:e.topLevel,isFixed:e.isFixed}}function ws(t){var r=C(t);return!!(540672&t.flags||4&r&&e.forEach(t.typeArguments,ws)||16&r&&t.symbol&&10288&t.symbol.flags||32&r||196608&t.flags&&Ps(t))}function Ps(t){return void 0===t.couldContainTypeVariables&&(t.couldContainTypeVariables=e.forEach(t.types,ws)),t.couldContainTypeVariables}function Fs(t,r){return t===r||196608&t.flags&&e.forEach(t.types,function(e){return Fs(e,r)})}function Os(t,r){function n(e){return s.candidates=void 0,Is(c,e,u),s.candidates&&ni(s.candidates,!0)}var a=rn(t),i=xn(t,0);if(0!==a.length||i){for(var o=hi(Gr(r).type,Hr(r)),s=Ns(o),c=[s],u=Xr(r),_=!r.declaration.readonlyToken,l=r.declaration.questionToken?0:67108864,p=e.createMap(),f=0,m=a;f<m.length;f++){var g=m[f],y=n(jt(g));if(!y)return;var v=d(4|g.flags&l,g.name);v.checkFlags=_&&pd(g)?8:0,v.declarations=g.declarations,v.type=y,p.set(g.name,v)}if(i){var h=n(i.type);if(!h)return;i=Hn(h,_&&i.isReadonly)}return Ie(void 0,p,iv,iv,i,void 0)}}function Is(t,r,n,a){function i(t,r){if(ws(r))if(t.aliasSymbol&&t.aliasTypeArguments&&t.aliasSymbol===r.aliasSymbol)for(var c=t.aliasTypeArguments,u=r.aliasTypeArguments,_=0;_<c.length;_++)i(c[_],u[_]);else{if(65536&t.flags&&65536&r.flags&&!(256&t.flags&&256&r.flags)||131072&t.flags&&131072&r.flags){if(t===r){for(var l=0,d=t.types;l<d.length;l++){var m=d[l];i(m,m)}return}for(var g=void 0,y=0,v=t.types;y<v.length;y++){var m=v[y];if(Rs(m,r.types))(g||(g=[])).push(m),i(m,m);else if(96&m.flags){var h=is(m);Rs(h,r.types)&&(g||(g=[])).push(m,h)}}g&&(t=Ms(t,g),r=Ms(r,g))}if(540672&r.flags){if(8388608&t.flags||t===Vv)return;var b=o(r);if(b)return void(b.isFixed||(!b.candidates||a<b.priority?(b.candidates=[t],b.priority=a):a===b.priority&&b.candidates.push(t),4&a||!(16384&r.flags)||Fs(n,r)||(b.topLevel=!1)))}else if(4&C(t)&&4&C(r)&&t.target===r.target)for(var c=t.typeArguments||iv,u=r.typeArguments||iv,k=c.length<u.length?c.length:u.length,_=0;_<k;_++)i(c[_],u[_]);else if(196608&r.flags){for(var u=r.types,x=0,D=void 0,S=0,T=u;S<T.length;S++){var m=T[S];o(m)?(D=m,x++):i(t,m)}if(1===x){var E=a;a|=1,i(t,D),a=E}}else if(196608&t.flags)for(var c=t.types,N=0,A=c;N<A.length;N++){var w=A[N];i(w,r)}else if(t=pn(t),32768&t.flags){var P=t.id+","+r.id;if(f&&f.get(P))return;(f||(f=e.createMap())).set(P,!0);var F=32768&r.flags&&!(16&C(r)&&r.symbol&&32&r.symbol.flags),O=F?r.symbol:void 0;if(O){if(e.contains(p,O))return;(p||(p=[])).push(O),s(t,r),p.pop()}else s(t,r)}}}function o(e){if(540672&e.flags)for(var r=0,n=t;r<n.length;r++){var a=n[r];if(e===a.typeParameter)return a}}function s(t,r){if(32&C(r)){var n=Gr(r);if(262144&n.flags){var s=o(n.type);if(s&&!s.isFixed){var _=Os(t,r);if(_){var l=a;a|=2,i(_,s.typeParameter),a=l}}return}if(16384&n.flags)return i(pi(t),n),void i(ni(e.map(rn(t),jt)),Xr(r))}c(t,r),u(t,r,0),u(t,r,1),d(t,r)}function c(e,t){for(var r=$r(t),n=0,a=r;n<a.length;n++){var o=a[n],s=en(e,o.name);s&&i(jt(s),jt(o))}}function u(e,t,r){for(var n=hn(e,r),a=hn(t,r),i=n.length,o=a.length,s=i<o?i:o,c=0;c<s;c++)l(Vn(n[i-s+c]),Vn(a[o-s+c]))}function _(e,t){return i(e,t)}function l(e,t){Ts(e,t,_),e.typePredicate&&t.typePredicate&&e.typePredicate.kind===t.typePredicate.kind?i(e.typePredicate.type,t.typePredicate.type):i(Jn(e),Jn(t))}function d(e,t){var r=Cn(t,0);if(r){var n=Cn(e,0)||Dn(e,0);n&&i(n,r)}var a=Cn(t,1);if(a){var n=Cn(e,1)||Cn(e,0)||Dn(e,1);n&&i(n,a)}}void 0===a&&(a=0);var p,f;i(r,n)}function Rs(e,t){for(var r=0,n=t;r<n.length;r++){var a=n[r];if(yo(a,e))return!0}return!1}function Ms(e,t){for(var r=[],n=0,a=e.types;n<a.length;n++){var i=a[n];Rs(i,t)||r.push(i)}return 65536&e.flags?ni(r):ci(r)}function Ls(e){var t=on(e);return t&&Cd(t,270334)}function Bs(t,r){var n=t.inferences[r],a=n.inferredType;if(!a){if(n.candidates){var i=t.signature,o=n.topLevel&&!Ls(n.typeParameter)&&(n.isFixed||!Fs(Jn(i),n.typeParameter)),s=o?e.sameMap(n.candidates,os):n.candidates,c=1&t.flags||4&n.priority?ni(s,!0):$o(s);a=xs(c)}else if(2&t.flags)a=Vv;else{var u=dn(n.typeParameter);a=u?uo(u,Yi(Hi(t.signature.typeParameters,r),t)):4&t.flags?Nv:qv}n.inferredType=a;var _=on(t.signature.typeParameters[r]);if(_){var l=uo(_,t);ko(a,Nr(l,a))||(n.inferredType=a=l)}}return a}function Js(e){for(var t=[],r=0;r<e.inferences.length;r++)t.push(Bs(e,r));return t}function zs(t){var r=x(t);return r.resolvedSymbol||(r.resolvedSymbol=!e.nodeIsMissing(t)&&N(t,t.text,1156031,e.Diagnostics.Cannot_find_name_0,t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1)||Tv),r.resolvedSymbol}function Ks(t){return!!e.findAncestor(t,function(e){return 162===e.kind||71!==e.kind&&143!==e.kind&&"quit"})}function js(e){if(71===e.kind){var t=zs(e);return t!==Tv?(tu(e)?"@":"")+r(t):void 0}if(99===e.kind)return"0";if(179===e.kind){var n=js(e.expression);return n&&n+"."+e.name.text}}function Vs(e,t){switch(e.kind){case 71:return 71===t.kind&&zs(e)===zs(t)||(226===t.kind||176===t.kind)&&Ce(zs(e))===ke(t);case 99:return 99===t.kind;case 97:return 97===t.kind;case 179:return 179===t.kind&&e.name.text===t.name.text&&Vs(e.expression,t.expression)}return!1}function Us(e,t){for(;179===e.kind;)if(e=e.expression,Vs(e,t))return!0;return!1}function qs(e,t){return 179===t.kind&&Us(e,t.expression)&&Hs(Ws(t.expression),t.name.text)}function Ws(e){if(71===e.kind)return jt(zs(e));if(179===e.kind){var t=Ws(e.expression);return t&&pt(t,e.name.text)}}function Hs(t,r){if(t&&65536&t.flags){var n=mn(t,r);if(n&&2&e.getCheckFlags(n))return void 0===n.isDiscriminantProperty&&(n.isDiscriminantProperty=32&n.checkFlags&&as(jt(n))),n.isDiscriminantProperty}return!1}function Gs(e,t){return Vs(e,t)||Us(e,t)}function Xs(e,t){if(e.arguments)for(var r=0,n=e.arguments;r<n.length;r++){var a=n[r];if(Gs(t,a))return!0}return!(179!==e.expression.kind||!Gs(t,e.expression.expression))}function Qs(e){return e.id||(e.id=u,u++),e.id}function Ys(e,t){if(!(65536&e.flags))return ko(e,t);for(var r=0,n=e.types;r<n.length;r++){var a=n[r];if(ko(a,t))return!0}return!1}function Zs(e,t){if(e!==t){if(8192&t.flags)return t;var r=Nc(e,function(e){return Ys(t,e)});if(!(8192&r.flags))return r}return e}function $s(e){for(var t=0,r=0,n=e;r<n.length;r++){var a=n[r];t|=tc(a)}return t}function ec(e){var t=Zr(e);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&bo(e,Zv))}function tc(e){var t=e.flags;if(2&t)return dv?4079361:4194049;if(32&t){var r=""===e.value;return dv?r?3030785:1982209:r?3145473:4194049}if(20&t)return dv?4079234:4193922;if(64&t){var n=0===e.value;return dv?n?3030658:1982082:n?3145346:4193922}return 8&t?dv?4078980:4193668:136&t?dv?e===Bv?3030404:1981828:e===Bv?3145092:4193668:32768&t?ec(e)?dv?6164448:8376288:dv?6166480:8378320:3072&t?2457472:4096&t?2340752:512&t?dv?1981320:4193160:16777216&t?dv?6166480:8378320:540672&t?tc(cn(e)||qv):196608&t?$s(e.types):8388607}function rc(e,t){return Nc(e,function(e){return 0!==(tc(e)&t)})}function nc(e,t){if(t){var r=ep(t);return ni([rc(e,131072),r])}return e}function ac(t,r){var n=e.getTextOfPropertyName(r);return pt(t,n)||t_(n)&&Cn(t,1)||Cn(t,0)||wv}function ic(e,t){return rs(e)&&pt(e,""+t)||If(e,void 0,!1,!1)||wv}function oc(e){return ja(If(e,void 0,!1,!1)||wv)}function sc(e){var t=177===e.parent.kind&&cc(e.parent)||261===e.parent.kind&&cc(e.parent.parent);return t?nc(pc(e),e.right):ep(e.right)}function cc(e){return 194===e.parent.kind&&e.parent.left===e||216===e.parent.kind&&e.parent.initializer===e}function uc(t,r){return ic(pc(t),e.indexOf(t.elements,r))}function _c(e){return oc(pc(e.parent))}function lc(e){return ac(pc(e.parent),e.name)}function dc(e){return nc(lc(e),e.objectAssignmentInitializer)}function pc(e){var t=e.parent;switch(t.kind){case 215:return Rv;case 216:return Of(t.expression,t.awaitModifier)||wv;case 194:return sc(t);case 188:return Pv;case 177:return uc(t,e);case 198:return _c(t);case 261:return lc(t);case 262:return dc(t)}return wv}function fc(t){var r=t.parent,n=yc(r.parent),a=174===r.kind?ac(n,t.propertyName||t.name):t.dotDotDotToken?oc(n):ic(n,e.indexOf(r.elements,t));return nc(a,t.initializer)}function mc(e){var t=x(e);return t.resolvedType||ep(e)}function gc(e){return e.initializer?mc(e.initializer):215===e.parent.parent.kind?Rv:216===e.parent.parent.kind?Of(e.parent.parent.expression,e.parent.parent.awaitModifier)||wv:wv}function yc(e){return 226===e.kind?gc(e):fc(e)}function vc(e){return 226===e.kind||176===e.kind?yc(e):pc(e)}function hc(e){return 226===e.kind&&e.initializer&&kt(e.initializer)||176!==e.kind&&194===e.parent.kind&&kt(e.parent.right)}function bc(e){switch(e.kind){case 185:return bc(e.expression);case 194:switch(e.operatorToken.kind){case 58:return bc(e.left);case 26:return bc(e.right)}}return e}function kc(e){var t=e.parent;return 185===t.kind||194===t.kind&&58===t.operatorToken.kind&&t.left===e||194===t.kind&&26===t.operatorToken.kind&&t.right===e?kc(t):e}function xc(e){if(257===e.kind){var t=wi(ep(e.expression));return ns(t)?t:void 0}return jv}function Cc(t){var r=x(t);if(!r.switchTypes){var n=e.map(t.caseBlock.clauses,xc);r.switchTypes=e.contains(n,void 0)?iv:n}return r.switchTypes}function Dc(t,r){return 65536&t.flags?!e.forEach(t.types,function(t){return!e.contains(r,t)}):e.contains(r,t)}function Sc(e,t){return e===t||65536&t.flags&&Tc(e,t)}function Tc(e,t){if(65536&e.flags){for(var r=0,n=e.types;r<n.length;r++){var a=n[r];if(!Xa(t.types,a))return!1}return!0}return!!(256&e.flags&&pr(e)===t)||Xa(t.types,e)}function Ec(t,r){return 65536&t.flags?e.forEach(t.types,r):r(t)}function Nc(t,r){if(65536&t.flags){var n=t.types,a=e.filter(n,r);return a===n?t:ai(a)}return r(t)?t:jv}function Ac(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?ni(n):r}function wc(e,t){return Nc(e,function(e){return 0!==(e.flags&t)})}function Pc(e,t){return Sc(Rv,e)&&Cd(t,32)||Sc(Mv,e)&&Cd(t,64)?Ac(e,function(e){return 2&e.flags?wc(t,34):4&e.flags?wc(t,68):e}):e}function Fc(e){return 0===e.flags}function Oc(e){return 0===e.flags?e.type:e}function Ic(e,t){return t?{flags:0,type:e}:e}function Rc(e){var t=Ae(256);return t.elementType=e,t}function Mc(e){return Sv[e.id]||(Sv[e.id]=Rc(e))}function Lc(e,t){var r=is(tp(t));return Sc(r,e.elementType)?e:Mc(ni([e.elementType,r]))}function Bc(e){return 8192&e.flags?sh:ja(65536&e.flags?ni(e.types,!0):e)}function Jc(e){return e.finalArrayType||(e.finalArrayType=Bc(e.elementType))}function zc(e){return 256&C(e)?Jc(e):e}function Kc(e){return 256&C(e)?e.elementType:jv}function jc(e){for(var t=!1,r=0,n=e;r<n.length;r++){var a=n[r];if(!(8192&a.flags)){if(!(256&C(a)))return!1;t=!0}}return t}function Vc(t,r){return jc(t)?Mc(ni(e.map(t,Kc))):ni(e.sameMap(t,zc),r)}function Uc(t){var r=kc(t),n=r.parent,a=179===n.kind&&("length"===n.name.text||181===n.parent.kind&&e.isPushOrUnshiftIdentifier(n.name)),i=180===n.kind&&n.expression===r&&194===n.parent.kind&&58===n.parent.operatorToken.kind&&n.parent.left===n&&!e.isAssignmentTarget(n.parent)&&$u(ep(n.argumentExpression),2132);return a||i}function qc(e){var t=x(e);return void 0===t.maybeTypePredicate&&(t.maybeTypePredicate=Wc(e)),t.maybeTypePredicate}function Wc(t){if(97!==t.expression.kind){var r=z_(t.expression);if(r!==Vv){var n=pn(r);if(n!==wv){var a=hn(n,0);return!!e.forEach(a,function(e){return e.typePredicate})}}}return!1}function Hc(t,r,n,a,i){function o(e){for(;;){if(1024&e.flags)for(var i=T;i<Jh;i++)if(eb[i]===e)return tb[i];var p=void 0;if(4096&e.flags)e.locked=!0,p=o(e.antecedent),e.locked=!1;else{if(2048&e.flags){e=e.antecedent;continue}if(16&e.flags){if(p=s(e),!p){e=e.antecedent;continue}}else if(96&e.flags)p=u(e);else if(128&e.flags)p=_(e);else if(12&e.flags){if(1===e.antecedents.length){e=e.antecedents[0];continue}p=4&e.flags?l(e):d(e)}else if(256&e.flags){if(p=c(e),!p){e=e.antecedent;continue}}else if(2&e.flags){var f=e.container;if(f&&f!==a&&179!==t.kind&&99!==t.kind){e=f.flowNode;continue}p=n}else p=vf(r)}return 1024&e.flags&&(eb[Jh]=e,tb[Jh]=p,Jh++),p}}function s(n){var a=n.node;if(Vs(t,a)){if(2===e.getAssignmentTargetKind(a)){var i=o(n.antecedent);return Ic(is(Oc(i)),Fc(i))}if(r===Av||r===sh){if(hc(a))return Mc(jv);var s=is(vc(a));return ko(s,r)?s:oh}return 65536&r.flags?Zs(r,vc(a)):r}if(Us(t,a))return r}function c(e){var r=e.node,n=181===r.kind?r.expression.expression:r.left.expression;if(Vs(t,bc(n))){var a=o(e.antecedent),i=Oc(a);if(256&C(i)){var s=i;if(181===r.kind)for(var c=0,u=r.arguments;c<u.length;c++){var _=u[c];s=Lc(s,_)}else{var l=ep(r.left.argumentExpression);$u(l,2132)&&(s=Lc(s,r.right))}return s===i?a:Ic(s,Fc(a))}return a}}function u(e){var t=o(e.antecedent),r=Oc(t);if(8192&r.flags)return t;var n=0!==(32&e.flags),a=zc(r),i=D(a,e.expression,n);if(i===a)return t;var s=Fc(t),c=s&&8192&i.flags?Vv:i;return Ic(c,s)}function _(e){var r=o(e.antecedent),n=Oc(r),a=e.switchStatement.expression;return Vs(t,a)?n=h(n,e.switchStatement,e.clauseStart,e.clauseEnd):p(a)&&(n=f(n,a,function(t){return h(t,e.switchStatement,e.clauseStart,e.clauseEnd)})),Ic(n,Fc(r))}function l(t){for(var a=[],i=!1,s=!1,c=0,u=t.antecedents;c<u.length;c++){var _=u[c];if(!(2048&_.flags&&_.lock.locked)){var l=o(_),d=Oc(l);if(d===r&&r===n)return d;e.contains(a,d)||a.push(d),Sc(d,r)||(i=!0),Fc(l)&&(s=!0)}}return Ic(Vc(a,i),s)}function d(n){var a=Qs(n),i=Qh[a]||(Qh[a]=e.createMap());S||(S=js(t));var s=i.get(S);if(s)return s;for(var c=Lh;c<Bh;c++)if(Yh[c]===n&&Zh[c]===S&&$h[c].length)return Ic(Vc($h[c],!1),!0);var u,_=[],l=!1;Yh[Bh]=n,Zh[Bh]=S,$h[Bh]=_;for(var d=0,p=n.antecedents;d<p.length;d++){var f=p[d];Bh++;var m=o(f);Bh--,u||(u=m);var g=Oc(m),y=i.get(S);if(y)return y;if(e.contains(_,g)||_.push(g),Sc(g,r)||(l=!0),g===r)break}var v=Vc(_,l);return Fc(u)?Ic(v,!0):(i.set(S,v),v)}function p(e){return 179===e.kind&&65536&r.flags&&Vs(t,e.expression)&&Hs(r,e.name.text)}function f(e,t,r){var n=t.name.text,a=pt(e,n),i=a&&r(a);return a===i?e:Nc(e,function(e){return Co(pt(e,n),i)})}function m(e,n,a){return Vs(t,n)?rc(e,a?1048576:2097152):p(n)?f(e,n,function(e){return rc(e,a?1048576:2097152)}):qs(t,n)?r:e}function g(e,n,a){switch(n.operatorToken.kind){case 58:return m(e,n.left,a);case 32:case 33:case 34:case 35:var i=n.operatorToken.kind,o=bc(n.left),s=bc(n.right);if(189===o.kind&&9===s.kind)return v(e,o,i,s,a);if(189===s.kind&&9===o.kind)return v(e,s,i,o,a);if(Vs(t,o))return y(e,i,s,a);if(Vs(t,s))return y(e,i,o,a);if(p(o))return f(e,o,function(e){return y(e,i,s,a)});if(p(s))return f(e,s,function(e){return y(e,i,o,a)});if(qs(t,o)||qs(t,s))return r;break;case 93:return b(e,n,a);case 26:return D(e,n.right,a)}return e}function y(e,t,r,n){if(1&e.flags)return e;33!==t&&35!==t||(n=!n);var a=ep(r);if(6144&a.flags){if(!dv)return e;var i=32===t||33===t,o=i?n?65536:524288:95===r.kind?n?32768:262144:n?16384:131072;return rc(e,o)}if(16810497&e.flags)return e;if(n){var s=Nc(e,function(e){return Do(e,a)});return 8192&s.flags?e:Pc(s,a)}if(ns(a)){var c=wi(a);return Nc(e,function(e){return wi(e)!==c})}return e}function v(e,n,a,i,o){var s=bc(n.expression);if(!Vs(t,s))return Us(t,s)?r:e;if(33!==a&&35!==a||(o=!o),o&&!(65536&e.flags)){var c=fb.get(i.text);if(c){if(bo(c,e))return c;if(540672&e.flags){var u=cn(e)||Nv;if(bo(c,u))return ci([e,c])}}}var _=o?db.get(i.text)||64:pb.get(i.text)||8192;return rc(e,_)}function h(t,r,n,a){var i=Cc(r);if(!i.length)return t;var o=i.slice(n,a),s=n===a||e.contains(o,jv),c=ni(o),u=8192&c.flags?jv:Pc(Nc(t,function(e){return Co(c,e)}),c);if(!s)return u;var _=Nc(t,function(t){return!(ns(t)&&e.contains(i,wi(t)))});return 8192&u.flags?_:ni([u,_])}function b(n,a,i){var o=bc(a.left);if(!Vs(t,o))return Us(t,o)?r:n;var s=ep(a.right);if(!bo(s,Zv))return n;var c,u=yn(s,"prototype");if(u){var _=jt(u);ft(_)||(c=_)}if(ft(n)&&(c===Yv||c===Zv))return n;if(!c){var l=void 0;2&C(s)?l=Er(s).declaredConstructSignatures:16&C(s)&&(l=hn(s,1)),l&&l.length&&(c=ni(e.map(l,function(e){return Jn(Vn(e))})))}return c?k(n,c,i,xo):n}function k(e,t,r,n){if(!r)return Nc(e,function(e){return!n(e,t)});if(65536&e.flags){var a=Nc(e,function(e){return n(e,t)});if(!(8192&a.flags))return a}return bo(t,e)?t:ko(e,t)?e:ko(t,e)?t:ci([e,t])}function x(n,a,i){if(!Xs(a,t)||!qc(a))return n;var o=Ll(a),s=o.typePredicate;if(!s)return n;if(ft(n)&&(s.type===Yv||s.type===Zv))return n;if(e.isIdentifierTypePredicate(s)){var c=a.arguments[s.parameterIndex-(o.thisParameter?1:0)];if(c){if(Vs(t,c))return k(n,s.type,i,bo);if(Us(t,c))return r}}else{var u=e.skipParentheses(a.expression);if(180===u.kind||179===u.kind){var _=u,l=e.skipParentheses(_.expression);if(Vs(t,l))return k(n,s.type,i,bo);if(Us(t,l))return r}}return n}function D(e,t,r){switch(t.kind){case 71:case 99:case 97:case 179:return m(e,t,r);case 181:return x(e,t,r);case 185:return D(e,t.expression,r);case 194:return g(e,t,r);case 192:if(51===t.operator)return D(e,t.operand,!r)}return e}void 0===n&&(n=r);var S;if(!t.flowNode||!i&&!(17810175&r.flags))return r;var T=Jh,E=Oc(o(t.flowNode));Jh=T;var N=256&C(E)&&Uc(t)?oh:zc(E);return 203===t.parent.kind&&8192&rc(N,524288).flags?r:N}function Gc(t,r){if(71===r.kind&&(e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),e.isPartOfExpression(r)&&!e.isAssignmentTarget(r))){var n=ep(r);if(Ce(x(r).resolvedSymbol)===t)return n}return jt(t)}function Xc(t){return e.findAncestor(t.parent,function(t){return e.isFunctionLike(t)&&!e.getImmediatelyInvokedFunctionExpression(t)||234===t.kind||265===t.kind||149===t.kind})}function Qc(t){var r=e.getRootDeclaration(t.valueDeclaration).parent,n=x(r);return 4194304&n.flags||(n.flags|=4194304,Yc(r)||Zc(r)),t.isAssigned||!1}function Yc(t){return!!e.findAncestor(t.parent,function(t){return e.isFunctionLike(t)&&!!(4194304&x(t).flags)})}function Zc(t){if(71===t.kind){if(e.isAssignmentTarget(t)){var r=zs(t);r.valueDeclaration&&146===e.getRootDeclaration(r.valueDeclaration).kind&&(r.isAssigned=!0)}}else e.forEachChild(t,Zc)}function $c(e){return 3&e.flags&&0!==(2&L_(e))&&jt(e)!==sh}function eu(e,t){var r=dv&&146===t.kind&&t.initializer&&2048&us(e)&&!(2048&us(rp(t.initializer)));return r?rc(e,131072):e}function tu(e){var t=e.parent;return 179===t.kind||181===t.kind&&t.expression===e||180===t.kind&&t.expression===e}function ru(e){return 540672&e.flags&&Cd(cn(e)||qv,6144)}function nu(e,t){var r=jt(e);return tu(t)&&Ec(r,ru)?Ac(xs(r),pn):r}function au(t){var r=zs(t);if(r===Tv)return wv;if(r===vv){var n=e.getContainingFunction(t);return cv<2&&(187===n.kind?l(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)&&l(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)),x(n).flags|=8192,jt(r)}!$(r,107455)||Ks(t)||bg(te(r))||ne(r);var a=Ce(r);if(32&a.flags){var i=a.valueDeclaration;if(229===i.kind&&e.nodeIsDecorated(i))for(var n=e.getContainingClass(t);void 0!==n;){if(n===i&&n.name!==t){x(i).flags|=8388608,x(t).flags|=16777216;break}n=e.getContainingClass(n)}else if(199===i.kind)for(var n=e.getThisContainer(t,!1);void 0!==n;){if(n.parent===i){149===n.kind&&e.hasModifier(n,32)&&(x(i).flags|=8388608,
x(t).flags|=16777216);break}n=e.getThisContainer(n,!1)}}pf(t,t),uf(t,t),_f(t,t),ou(t,r);var o=nu(a,t),s=a.valueDeclaration,c=e.getAssignmentTargetKind(t);if(c){if(!(3&a.flags))return l(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,He(r)),wv;if(pd(a))return l(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property,He(r)),wv}if(!(3&a.flags&&1!==c&&s))return o;for(var u=146===e.getRootDeclaration(s).kind,_=Xc(s),d=Xc(t),p=d!==_;d!==_&&(186===d.kind||187===d.kind||e.isObjectLiteralOrClassExpressionMethod(d))&&($c(a)||u&&!Qc(a));)d=Xc(d);var f=u||p||o!==Av&&o!==sh&&(!dv||0!==(1&o.flags)||Ks(t)||246===t.parent.kind)||203===t.parent.kind||e.isInAmbientContext(s),m=f?u?eu(o,e.getRootDeclaration(s)):o:o===Av||o===sh?Pv:ps(o,2048),g=Hc(t,o,m,d,!f);if(o===Av||o===sh){if(g===Av||g===sh)return pv&&(l(e.getNameOfDeclaration(s),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,He(r),Xe(g)),l(t,e.Diagnostics.Variable_0_implicitly_has_an_1_type,He(r),Xe(g))),vf(g)}else if(!f&&!(2048&us(o))&&2048&us(g))return l(t,e.Diagnostics.Variable_0_is_used_before_being_assigned,He(r)),o;return c?is(g):g}function iu(t,r){return!!e.findAncestor(t,function(t){return t===r?"quit":e.isFunctionLike(t)})}function ou(t,r){if(!(cv>=2||0===(34&r.flags)||260===r.valueDeclaration.parent.kind)){for(var n=e.getEnclosingBlockScopeContainer(r.valueDeclaration),a=iu(t.parent,n),i=n,o=!1;i&&!e.nodeStartsNewLexicalEnvironment(i);){if(e.isIterationStatement(i,!1)){o=!0;break}i=i.parent}o&&(a&&(x(i).flags|=65536),214===n.kind&&e.getAncestor(r.valueDeclaration,227).parent===n&&su(t,n)&&(x(r.valueDeclaration).flags|=2097152),x(r.valueDeclaration).flags|=262144),a&&(x(r.valueDeclaration).flags|=131072)}}function su(t,r){for(var n=t;185===n.parent.kind;)n=n.parent;var a=!1;if(e.isAssignmentTarget(n))a=!0;else if(192===n.parent.kind||193===n.parent.kind){var i=n.parent;a=43===i.operator||44===i.operator}return!!a&&!!e.findAncestor(n,function(e){return e===r?"quit":e===r.statement})}function cu(e,t){if(x(e).flags|=2,149===t.kind||152===t.kind){var r=t.parent;x(r).flags|=4}else x(t).flags|=4}function uu(t){if(e.isSuperCall(t))return t;if(!e.isFunctionLike(t))return e.forEachChild(t,uu)}function _u(e){var t=x(e);return void 0===t.hasSuperCall&&(t.superCall=uu(e.body),t.hasSuperCall=!!t.superCall),t.superCall}function lu(e){var t=ke(e),r=vr(t),n=rr(r);return n===Iv}function du(t,r,n){var a=r.parent,i=e.getClassExtendsHeritageClauseElement(a);if(i&&!lu(a)){var o=_u(r);(!o||o.end>t.pos)&&l(t,n)}}function pu(t){var r=e.getThisContainer(t,!0),n=!1;switch(152===r.kind&&du(t,r,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),187===r.kind&&(r=e.getThisContainer(r,!1),n=cv<2),r.kind){case 233:l(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 232:l(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 152:mu(t,r)&&l(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 149:case 148:32&e.getModifierFlags(r)&&l(t,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 144:l(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}if(n&&cu(t,r),e.isFunctionLike(r)&&(!Su(t)||e.getThisParameter(r))){if(186===r.kind&&194===r.parent.kind&&3===e.getSpecialPropertyAssignmentKind(r.parent)){var a=r.parent.left.expression.expression,i=rp(a).symbol;if(i&&i.members&&16&i.flags)return zl(i)}var o=It(r)||bu(r);if(o)return o}if(e.isClassLike(r.parent)){var s=ke(r.parent),c=e.hasModifier(r,32)?jt(s):vr(s).thisType;return Hc(t,c)}if(e.isInJavaScriptFile(t)){var c=fu(r);if(c&&c!==wv)return c}return fv&&l(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation),Nv}function fu(t){var r=e.getJSDocType(t);if(r&&279===r.kind){var n=r;if(n.parameters.length>0&&282===n.parameters[0].type.kind)return Li(n.parameters[0].type)}}function mu(t,r){return!!e.findAncestor(t,function(e){return e===r?"quit":146===e.kind})}function gu(t){function r(t){return!!t&&(n?152===t.kind:!(!e.isClassLike(t.parent)&&178!==t.parent.kind)&&(32&e.getModifierFlags(t)?151===t.kind||150===t.kind||153===t.kind||154===t.kind:151===t.kind||150===t.kind||153===t.kind||154===t.kind||149===t.kind||148===t.kind||152===t.kind))}var n=181===t.parent.kind&&t.parent.expression===t,a=e.getSuperContainer(t,!0),i=!1;if(!n)for(;a&&187===a.kind;)a=e.getSuperContainer(a,!0),i=cv<2;var o=r(a),s=0;if(!o){var c=e.findAncestor(t,function(e){return e===a?"quit":144===e.kind});return c&&144===c.kind?l(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):n?l(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):a&&a.parent&&(e.isClassLike(a.parent)||178===a.parent.kind)?l(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):l(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),wv}if(n||152!==a.kind||du(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,x(t).flags|=s,151===a.kind&&256&e.getModifierFlags(a)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?x(a).flags|=4096:x(a).flags|=2048),i&&cu(t.parent,a),178===a.parent.kind)return cv<2?(l(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),wv):Nv;var u=a.parent,_=vr(ke(u)),d=_&&nr(_)[0];return d?152===a.kind&&mu(t,a)?(l(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),wv):512===s?rr(_):Nr(d,_.thisType):(e.getClassExtendsHeritageClauseElement(u)||l(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),wv)}function yu(e){return 151!==e.kind&&153!==e.kind&&154!==e.kind||178!==e.parent.kind?186===e.kind&&261===e.parent.kind?e.parent.parent:void 0:e.parent}function vu(e){return 4&C(e)&&e.target===ih?e.typeArguments[0]:void 0}function hu(t){return Ac(t,function(t){return 131072&t.flags?e.forEach(t.types,vu):vu(t)})}function bu(e){if(187!==e.kind){if(mo(e)){var t=Hu(e);if(t){var r=t.thisParameter;if(r)return jt(r)}}if(fv){var n=yu(e);if(n){for(var a=Ju(n),i=n,o=a;o;){var s=hu(o);if(s)return uo(s,Ku(n));if(261!==i.parent.kind)break;i=i.parent.parent,o=Ju(i)}return a?fs(a):Wd(n)}if(194===e.parent.kind&&58===e.parent.operatorToken.kind){var c=e.parent.left;if(179===c.kind||180===c.kind)return Wd(c.expression)}}}}function ku(t){var r=t.parent;if(mo(r)){var n=e.getImmediatelyInvokedFunctionExpression(r);if(n&&n.arguments){var a=e.indexOf(r.parameters,t);if(t.dotDotDotToken){for(var i=[],o=a;o<n.arguments.length;o++)i.push(os(rp(n.arguments[o])));return i.length?ja(ni(i)):void 0}var s=x(n),c=s.resolvedSignature;s.resolvedSignature=wh;var u=a<n.arguments.length?os(rp(n.arguments[a])):t.initializer?void 0:Fv;return s.resolvedSignature=c,u}var _=Hu(r);if(_){var l=e.hasRestParameter(r),d=r.parameters.length-(l?1:0),a=e.indexOf(r.parameters,t);if(a<d)return Ql(_,a);if(l&&a===r.parameters.length-1&&Qo(_,r.parameters.length-1))return jt(e.lastOrUndefined(_.parameters))}}}function xu(t){var r=t.parent;if(t===r.initializer){var n=e.getEffectiveTypeAnnotationNode(r);if(n)return Li(n);if(e.isInJavaScriptFile(r)){var a=ht(r);if(a)return a}if(146===r.kind){var i=ku(r);if(i)return i}if(e.isBindingPattern(r.name))return Nt(r.name,!0,!1);if(e.isBindingPattern(r.parent)){var o=r.parent.parent,s=r.propertyName||r.name;if(176!==o.kind){var c=e.getEffectiveTypeAnnotationNode(o);if(c&&!e.isBindingPattern(s)){var u=e.getTextOfPropertyName(s);if(u)return pt(Li(c),u)}}}}}function Cu(t){var r=e.getContainingFunction(t);if(r){var n=e.getFunctionFlags(r);if(1&n)return;var a=Tu(r);return 2&n?a&&Rp(a):a}}function Du(t){var r=e.getContainingFunction(t);if(r){var n=e.getFunctionFlags(r),a=Tu(r);if(a)return t.asteriskToken?a:Bf(a,0!==(2&n))}}function Su(t){for(;t.parent&&!e.isFunctionLike(t.parent);){if(146===t.parent.kind&&t.parent.initializer===t)return!0;t=t.parent}return!1}function Tu(t){if(152===t.kind||e.getEffectiveReturnTypeNode(t)||zf(t))return Jn(On(t));var r=qu(t);return r?Jn(r):void 0}function Eu(t,r){var n=yl(t),a=e.indexOf(n,r);if(a>=0){var i=Bl(t);return Ql(i,a)}}function Nu(e,t){if(183===e.parent.kind)return Eu(e.parent,t)}function Au(t){var r=t.parent,n=r.operatorToken.kind;if(e.isAssignmentOperator(n)){if(0!==e.getSpecialPropertyAssignmentKind(r))return;if(t===r.right)return ep(r.left)}else{if(54===n){var a=zu(r);return a||t!==r.right||(a=ep(r.left)),a}if((53===n||26===n)&&t===r.right)return zu(r)}}function wu(e,t){return Ac(e,function(e){var r=229376&e.flags?yn(e,t):void 0;return r?jt(r):void 0})}function Pu(e,t){return Ac(e,function(e){return kn(e,t)})}function Fu(t){return!!(65536&t.flags?e.forEach(t.types,rs):rs(t))}function Ou(t){if(e.Debug.assert(e.isObjectLiteralMethod(t)),!Km(t))return Iu(t)}function Iu(t){var r=t.parent,n=Ju(r);if(n){if(!e.hasDynamicName(t)){var a=ke(t).name,i=wu(n,a);if(i)return i}return Yu(t.name)&&Pu(n,1)||Pu(n,0)}}function Ru(t){var r=t.parent,n=Ju(r);if(n){var a=e.indexOf(r.elements,t);return wu(n,""+a)||Pu(n,1)||Rf(n,void 0,!1,!1,!1)}}function Mu(e){var t=e.parent;return e===t.whenTrue||e===t.whenFalse?zu(t):void 0}function Lu(t){var r=e.isJsxAttributeLike(t.parent)?t.parent.parent:t.parent.openingElement.attributes,n=zu(r);if(n&&!ft(n)){if(e.isJsxAttribute(t.parent))return pt(n,t.parent.name.text);if(249===t.parent.kind){var a=y_();return a&&""!==a?pt(n,a):Nv}return n}}function Bu(t){var r=zu(t.parent);if(e.isJsxAttribute(t)){if(!r||ft(r))return;return pt(r,t.name.text)}return r}function Ju(e){var t=zu(e);return t&&pn(t)}function zu(t){if(!Km(t)){if(t.contextualType)return t.contextualType;var r=t.parent;switch(r.kind){case 226:case 146:case 149:case 148:case 176:return xu(t);case 187:case 219:return Cu(t);case 197:return Du(r);case 181:case 182:return Eu(r,t);case 184:case 202:return Li(r.type);case 194:return Au(t);case 261:case 262:return Iu(r);case 263:return Ju(r.parent);case 177:return Ru(t);case 195:return Mu(t);case 205:return e.Debug.assert(196===r.parent.kind),Nu(r.parent,t);case 185:return zu(r);case 256:return Lu(r);case 253:case 255:return Bu(r);case 251:case 250:return S_(r)}}}function Ku(t){return t=e.findAncestor(t,function(e){return!!e.contextualMapper}),t?t.contextualMapper:Qi}function ju(e,t){var r=vn(e,0);if(1===r.length){var n=r[0];if(!Vu(n,t))return n}}function Vu(t,r){for(var n=0;n<r.parameters.length;n++){var a=r.parameters[n];if(a.initializer||a.questionToken||a.dotDotDotToken||En(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 Uu(e){return 186===e.kind||187===e.kind}function qu(t){return Uu(t)||e.isObjectLiteralMethod(t)?Hu(t):void 0}function Wu(t){return e.isObjectLiteralMethod(t)?Ou(t):Ju(t)}function Hu(t){e.Debug.assert(151!==t.kind||e.isObjectLiteralMethod(t));var r=Wu(t);if(r){if(!(65536&r.flags))return ju(r,t);for(var n,a=r.types,i=0,o=a;i<o.length;i++){var s=o[i],c=ju(s,t);if(c)if(n){if(!Xo(n[0],c,!1,!0,!0,vo))return;n.push(c)}else n=[c]}var u;return n&&(u=Or(n[0]),u.resolvedReturnType=void 0,u.unionSignatures=n),u}}function Gu(e,t){cv<2&&sv.downlevelIteration&&jg(e,1536);var r=rp(e.expression,t);return If(r,e.expression,!1,!1)}function Xu(e){return 176===e.kind&&!!e.initializer||194===e.kind&&58===e.operatorToken.kind}function Qu(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&&198===u.kind){var _=rp(u.expression,r),d=Cn(_,1)||Rf(_,void 0,!1,!1,!1);d&&i.push(d)}else{var p=Qd(u,r);i.push(p)}a=a||198===u.kind}if(!a){if(o&&i.length){var p=ta(Wa(i));return p.pattern=t,p}var f=Ju(t);if(f&&Fu(f)){var m=f.pattern;if(m&&(175===m.kind||177===m.kind))for(var g=m.elements,y=i.length;y<g.length;y++){var v=g[y];Xu(v)?i.push(f.typeArguments[y]):(200!==v.kind&&l(v,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),i.push(wv))}if(i.length)return Wa(i)}}return ja(i.length?ni(i,!0):dv?jv:Fv)}function Yu(e){return 144===e.kind?Zu(e):t_(e.text)}function Zu(e){return $u(r_(e),84)}function $u(e,t){return ft(e)||Dd(e,t)}function e_(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e}function t_(e){return(+e).toString()===e}function r_(t){var r=x(t.expression);return r.resolvedType||(r.resolvedType=rp(t.expression),$u(r.resolvedType,262774)?nl(t.expression,r.resolvedType,!0):l(t,e.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)),r.resolvedType}function n_(e,t,r,n){for(var a=[],i=0;i<r.length;i++)(0===n||Yu(e[i+t].name))&&a.push(jt(r[i]));var o=a.length?ni(a,!0):Pv;return Hn(o,!1)}function a_(t,r){function n(){var e=p?Rh:g?n_(t.properties,v,o,0):void 0,r=y&&!p?n_(t.properties,v,o,1):void 0,n=Ie(t.symbol,i,iv,iv,e,r),s=sv.suppressExcessPropertyErrors?0:1048576;return n.flags|=4194304|s|14680064&f,n.objectFlags|=128,m&&(n.objectFlags|=512),a&&(n.pattern=t),6144&n.flags||(c|=14680064&n.flags),n}var a=e.isAssignmentTarget(t);gy(t,a);for(var i=e.createMap(),o=[],s=qv,c=0,u=Ju(t),_=u&&u.pattern&&(174===u.pattern.kind||178===u.pattern.kind),p=!u&&e.isInJavaScriptFile(t),f=0,m=!1,g=!1,y=!1,v=0,h=0;h<t.properties.length;h++){var b=t.properties[h],k=b.symbol;if(261===b.kind||262===b.kind||e.isObjectLiteralMethod(b)){var x=void 0;261===b.kind?x=Yd(b,r):151===b.kind?x=Zd(b,r):(e.Debug.assert(262===b.kind),x=Qd(b.name,r)),f|=x.flags;var D=d(4|k.flags,k.name);if(a){var S=261===b.kind&&Xu(b.initializer)||262===b.kind&&b.objectAssignmentInitializer;S&&(D.flags|=67108864),e.hasDynamicName(b)&&(m=!0)}else if(_&&!(512&C(u))){var T=yn(u,k.name);T?D.flags|=67108864&T.flags:sv.suppressExcessPropertyErrors||xn(u,0)||l(b.name,e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,He(k),Xe(u))}D.declarations=k.declarations,D.parent=k.parent,k.valueDeclaration&&(D.valueDeclaration=k.valueDeclaration),D.type=x,D.target=k,k=D}else{if(263===b.kind){cv<2&&jg(b,2),o.length>0&&(s=Si(s,n()),o=[],i=e.createMap(),g=!1,y=!1,f=0);var x=rp(b.expression);if(!i_(x))return l(b,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),wv;s=Si(s,x),v=h+1;continue}e.Debug.assert(153===b.kind||154===b.kind),Om(b)}e.hasDynamicName(b)?Yu(b.name)?y=!0:g=!0:i.set(k.name,k),o.push(k)}if(_)for(var E=0,N=rn(u);E<N.length;E++){var D=N[E];i.get(D.name)||(67108864&D.flags||l(D.valueDeclaration||D.bindingElement,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),i.set(D.name,D),o.push(D))}return s!==qv?(o.length>0&&(s=Si(s,n())),32768&s.flags&&(s.flags|=c,s.flags|=1048576,s.objectFlags|=128,s.symbol=t.symbol),s):n()}function i_(t){return!!(16783361&t.flags||32768&t.flags&&!Yr(t)||196608&t.flags&&!e.forEach(t.types,function(e){return!i_(e)}))}function o_(e){return F_(e),N_()||Nv}function s_(e){return F_(e.openingElement),u_(e.closingElement.tagName)?p_(e.closingElement):rp(e.closingElement.tagName),N_()||Nv}function c_(e){return e.indexOf("-")<0}function u_(t){return 179!==t.kind&&99!==t.kind&&e.isIntrinsicJsxName(t.text)}function __(t,r,n){function a(e,t){var r=Ie(e,t,iv,iv,void 0,void 0);return r.flags|=37748736,r.objectFlags|=128,r}for(var i,o=t.attributes,s=e.createMap(),c=qv,u=[],_=!1,p=!1,f=y_(),m=0,g=o.properties;m<g.length;m++){var y=g[m],v=y.symbol;if(e.isJsxAttribute(y)){var h=y.initializer?rp(y.initializer,n):Lv,b=d(134217732|v.flags,v.name);b.declarations=v.declarations,b.parent=v.parent,v.valueDeclaration&&(b.valueDeclaration=v.valueDeclaration),b.type=h,b.target=v,s.set(b.name,b),u.push(b),y.name.text===f&&(p=!0)}else{e.Debug.assert(255===y.kind),u.length>0&&(c=Si(c,a(o.symbol,s)),u=[],s=e.createMap());var h=rp(y.expression);ft(h)&&(_=!0),i_(h)?c=Si(c,h):i=i?ci([i,h]):h}}if(!_){c!==qv&&(u.length>0&&(c=Si(c,a(o.symbol,s))),u=rn(c)),s=e.createMap();for(var k=0,x=u;k<x.length;k++){var C=x[k];r&&!r(C)||s.set(C.name,C)}}var D=249===t.parent.kind?t.parent:void 0;if(D&&D.openingElement===t&&D.children.length>0){for(var S=[],T=0,E=D.children;T<E.length;T++){var N=E[T];10===N.kind?N.containsOnlyWhiteSpaces||S.push(Rv):S.push(rp(N,n))}if(!_&&f&&""!==f){p&&l(o,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,f);var A=d(134217732,f);A.type=1===S.length?S[0]:ja(ni(S,!1)),s.set(f,A)}}if(_)return Nv;var w=a(o.symbol,s);return i&&s.size?ci([i,w]):i?i:w}function l_(e,t){return __(e.parent,void 0,t)}function d_(e){var t=vb.get(e);return void 0===t&&vb.set(e,t=Ra(hb.JSX,e)||wv),t}function p_(t){var r=x(t);if(!r.resolvedSymbol){var n=d_(hb.IntrinsicElements);if(n!==wv){var a=yn(n,t.tagName.text);if(a)return r.jsxFlags|=1,r.resolvedSymbol=a;var i=Cn(n,0);return i?(r.jsxFlags|=2,r.resolvedSymbol=n.symbol):(l(t,e.Diagnostics.Property_0_does_not_exist_on_type_1,t.tagName.text,"JSX."+hb.IntrinsicElements),r.resolvedSymbol=Tv)}return pv&&l(t,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,hb.IntrinsicElements),r.resolvedSymbol=Tv}return r.resolvedSymbol}function f_(t,r){if(e.Debug.assert(!(65536&r.flags)),ft(r))return Nv;var n=hn(r,1);if(0===n.length&&(n=hn(r,0),0===n.length))return l(t.tagName,e.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,e.getTextOfNode(t.tagName)),wv;for(var a=[],i=0,o=n;i<o.length;i++){var s=o[i];if(s.typeParameters){var c=Fn(void 0,s.typeParameters,0);a.push(Kn(s,c))}else a.push(s)}return ni(e.map(a,Jn),!0)}function m_(t){var r=ha(hb.JSX,1920,void 0),n=r&&S(r.exports,t,793064),a=n&&vr(n),i=a&&rn(a);if(i){if(0===i.length)return"";if(1===i.length)return i[0].name;i.length>1&&l(n.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,t)}}function g_(){return gb||(gb=!0,cb=m_(hb.ElementAttributesPropertyNameContainer)),cb}function y_(){return yb||(yb=!0,ub=m_(hb.ElementChildrenAttributeNameContainer)),ub}function v_(e){if(e){if(131072&e.flags){for(var t=[],r=0,n=e.types;r<n.length;r++){var a=n[r];t.push(pn(a))}return ci(t)}return pn(e)}}function h_(t,r,n,a){if(e.Debug.assert(!(65536&r.flags)),!a||!ko(n,a)){var i=A_();if(i){var o=Il(t,r,void 0);if(o!==Ph){var s=o&&Jn(o),c=s&&(0===o.parameters.length?qv:jt(o.parameters[0]));if(c=v_(c),s&&ko(s,i)){var u=d_(hb.IntrinsicAttributes);return u!==wv&&(c=zr(u,c)),c}}}}}function b_(t,r,n,a){if(e.Debug.assert(!(65536&r.flags)),!a||!ko(n,a)){var i=A_();if(i){var o=[];Il(t,r,o);for(var s=void 0,c=void 0,u=0,_=o;u<_.length;u++){var l=_[u],d=Jn(l),p=d&&(0===l.parameters.length?qv:jt(l.parameters[0]));if(p=v_(p),d&&ko(d,i)){for(var f=!0,m=0,g=t.attributes.properties;m<g.length;m++){var y=g[m];if(e.isJsxAttribute(y)&&c_(y.name.text)&&!yn(p,y.name.text)){f=!1;break}}f&&(s=zr(s,p)),c=zr(c,p)}}s||(s=c);var v=d_(hb.IntrinsicAttributes);return v!==wv&&(s=zr(v,s)),s}}}function k_(t,r,n,a){if(n||(n=rp(t.tagName)),65536&n.flags){var i=n.types;return ni(i.map(function(e){return k_(t,r,e,a)}),!0)}if(2&n.flags)return Nv;if(32&n.flags){var o=d_(hb.IntrinsicElements);if(o!==wv){var s=n.value,c=yn(o,s);if(c)return jt(c);var u=Cn(o,0);if(u)return u;l(t,e.Diagnostics.Property_0_does_not_exist_on_type_1,s,"JSX."+hb.IntrinsicElements)}return Nv}var _=f_(t,n),d=r?b_(t,n,_,a):h_(t,n,_,a);if(d)return d;if(a&&Bo(_,a,kb,t,e.Diagnostics.JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements),ft(_))return _;var p=g_();if(void 0===p)return Nv;if(""===p)return _;var f=pt(_,p);if(f){if(ft(f)||f===wv)return f;var m=f,g=d_(hb.IntrinsicClassAttributes);if(g!==wv){var y=Xt(g.symbol);y?1===y.length&&(m=zr(ea(g,[_]),m)):m=zr(f,g)}var v=d_(hb.IntrinsicAttributes);return v!==wv&&(m=zr(v,m)),m}return qv}function x_(t){e.Debug.assert(u_(t.tagName));var r=x(t);if(!r.resolvedJsxElementAttributesType){var n=p_(t);return 1&r.jsxFlags?r.resolvedJsxElementAttributesType=jt(n):2&r.jsxFlags?r.resolvedJsxElementAttributesType=Gn(n,0).type:r.resolvedJsxElementAttributesType=wv}return r.resolvedJsxElementAttributesType}function C_(e,t){var r=x(e);if(!r.resolvedJsxElementAttributesType){var n=E_();return r.resolvedJsxElementAttributesType=k_(e,t,void 0,n)}return r.resolvedJsxElementAttributesType}function D_(e){return u_(e.tagName)?x_(e):C_(e,!0)}function S_(e){return u_(e.tagName)?x_(e):C_(e,!1)}function T_(e){var t=S_(e.parent.parent),r=yn(t,e.name.text);return r||Tv}function E_(){return xh||(xh=Ra(hb.JSX,hb.ElementClass)),xh}function N_(){return Ch||(Ch=Ra(hb.JSX,hb.Element)),Ch}function A_(){if(!Dh){var e=N_();e&&(Dh=ni([e,Ov]))}return Dh}function w_(){var e=d_(hb.IntrinsicElements);return e?rn(e):iv}function P_(t){0===(sv.jsx||0)&&l(t,e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===N_()&&pv&&l(t,e.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function F_(t){yy(t),P_(t);var r=ib&&2===sv.jsx?e.Diagnostics.Cannot_find_name_0:void 0,n=s(),a=N(t.tagName,n,107455,r,n);a&&(a.isReferenced=!0,8388608&a.flags&&!bg(te(a))&&ne(a)),I_(t)}function O_(e,t,r){if(32768&e.flags){var n=Zr(e);if(n.stringIndexInfo||n.numberIndexInfo&&t_(t)||en(e,t)||r&&!c_(t))return!0}else if(196608&e.flags)for(var a=0,i=e.types;a<i.length;a++){var o=i[a];if(O_(o,t,r))return!0}return!1}function I_(t){var r=u_(t.tagName)?x_(t):C_(t,!1),n=__(t,function(e){return c_(e.name)||!!yn(r,e.name)});if(r===qv&&(ft(n)||n.properties.length>0))l(t,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,g_());else{var a=So(n,r,t.attributes.properties.length>0?t.attributes:t);if(a&&!ft(n)&&!ft(r))for(var i=0,o=t.attributes.properties;i<o.length;i++){var s=o[i];if(e.isJsxAttribute(s)&&!O_(r,s.name.text,!0)){l(s,e.Diagnostics.Property_0_does_not_exist_on_type_1,s.name.text,Xe(r));break}}}}function R_(t,r){if(t.expression){var n=rp(t.expression,r);return t.dotDotDotToken&&n!==Nv&&!es(n)&&l(t,e.Diagnostics.JSX_spread_child_must_be_an_array_type,t.toString(),Xe(n)),n}return wv}function M_(e){return e.valueDeclaration?e.valueDeclaration.kind:149}function L_(t){return t.valueDeclaration?e.getCombinedNodeFlags(t.valueDeclaration):0}function B_(t){return!!(8192&t.flags||4&e.getCheckFlags(t))}function J_(t,r,n,a){var i=e.getDeclarationModifierFlagsFromSymbol(a),o=179===t.kind||226===t.kind?t.name:t.right;if(256&e.getCheckFlags(a))return l(o,e.Diagnostics.Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1,He(a),Xe(n)),!1;if(97===r.kind){if(cv<2){var s=Jo(a,function(e){var t=M_(e);return 151!==t&&150!==t});if(s)return l(o,e.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1}if(128&i)return l(o,e.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,He(a),Xe(zo(a))),!1}if(!(24&i))return!0;if(8&i){var c=im(xe(a));return!!Gm(t,c)||(l(o,e.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,He(a),Xe(zo(a))),!1)}if(97===r.kind)return!0;var u=Hm(t,function(e){var t=vr(ke(e));return Vo(t,a)?t:void 0});return u?!!(32&i)||(16384&n.flags&&n.isThisType&&(n=on(n)),!!(3&C(Ut(n))&&qt(n,u))||(l(o,e.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1,He(a),Xe(u)),!1)):(l(o,e.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,He(a),Xe(zo(a)||n)),!1)}function z_(e){return K_(rp(e),e)}function K_(t,r){var n=6144&(dv?us(t):t.flags);if(n){l(r,2048&n?4096&n?e.Diagnostics.Object_is_possibly_null_or_undefined:e.Diagnostics.Object_is_possibly_undefined:e.Diagnostics.Object_is_possibly_null);var a=fs(t);return 14336&a.flags?wv:a}return t}function j_(e){return U_(e,e.expression,e.name)}function V_(e){return U_(e,e.left,e.right)}function U_(t,r,n){var a=z_(r);if(ft(a)||a===Vv)return a;var i=pn(xs(a));if(i===wv||16384&a.flags&&ft(i))return i;var o=yn(i,n.text);if(!o){var s=Cn(i,0);return s?s:(n.text&&!F(t)&&q_(n,16384&a.flags&&a.isThisType?i:a),wv)}o.valueDeclaration&&(Q_(t)&&!E(o.valueDeclaration,n)&&l(n,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,n.text),229!==o.valueDeclaration.kind||!t.parent||159===t.parent.kind||e.isInAmbientContext(o.valueDeclaration)||E(o.valueDeclaration,n)||l(n,e.Diagnostics.Class_0_used_before_its_declaration,n.text)),X_(o),x(t).resolvedSymbol=o,J_(t,r,i,o);var c=nu(o,t),u=e.getAssignmentTargetKind(t);if(u&&(fd(t,o)||md(t)))return l(n,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property,n.text),wv;if(!(179===t.kind&&1!==u&&(98311&o.flags||8192&o.flags&&65536&c.flags)))return c;var _=Hc(t,c);return u?is(_):_}function q_(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(!yn(o,t.text)){n=e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(t),Xe(o));break}}var s=W_(t,r);n=s?e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,e.declarationNameToString(t),Xe(r),s):e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(t),Xe(r)),ib.add(e.createDiagnosticForNodeFromMessageChain(t,n))}function W_(e,t){var r=G_(e.text,$r(t),107455);return r&&r.name}function H_(t,r,n){var a=A(t,r,n,void 0,r,function(t,r,n){var a=S(t,r,n);return a?a:G_(r,e.arrayFrom(t.values()),n)});if(a)return a.name}function G_(t,r,n){var a=.4*t.length,i=Math.min(3,.34*t.length),o=Number.MAX_VALUE,s=void 0,c=!1;if(!(t.length>30)){t=t.toLowerCase();for(var u=0,_=r;u<_.length;u++){var l=_[u];if(l.flags&n&&l.name&&Math.abs(l.name.length-t.length)<i){var d=l.name.toLowerCase();if(d===t)return l;if(c)continue;if(d.length<3||t.length<3||"eval"===d||"intl"===d||"undefined"===d||"map"===d||"nan"===d||"set"===d)continue;var p=e.levenshtein(t,d);if(p>a)continue;p<3?(c=!0,s=l):p<o&&(o=p,s=l)}}return s}}function X_(t){t&&_v&&106500&t.flags&&t.valueDeclaration&&8&e.getModifierFlags(t.valueDeclaration)&&(1&e.getCheckFlags(t)?k(t).target.isReferenced=!0:t.isReferenced=!0)}function Q_(e){for(;e;){if(e.parent&&149===e.parent.kind&&e.parent.initializer===e)return!0;e=e.parent}return!1}function Y_(e,t){var r=179===e.kind?e.expression:e.left;return Z_(e,r,t,xs(rp(r)))}function Z_(t,r,n,a){if(a!==wv&&!ft(a)){var i=yn(a,n);if(i)return J_(t,r,a,i);if(e.isInJavaScriptFile(r)&&65536&a.flags)for(var o=0,s=a.types;o<s.length;o++){var c=s[o];if(Z_(t,r,n,c))return!0}return!1}return!0}function $_(t){var r=t.initializer;if(227===r.kind){var n=r.declarations[0];if(n&&!e.isBindingPattern(n.name))return ke(n)}else if(71===r.kind)return zs(r)}function el(e){return Cn(e,1)&&!Cn(e,0)}function tl(t){var r=e.skipParentheses(t);if(71===r.kind){var n=zs(r);if(3&n.flags)for(var a=t,i=t.parent;i;){if(215===i.kind&&a===i.statement&&$_(i)===n&&el(ep(i.expression)))return!0;a=i,i=i.parent}}return!1}function rl(t){var r=z_(t.expression),n=t.argumentExpression;if(!n){var a=e.getSourceFileOfNode(t);if(182===t.parent.kind&&t.parent.expression===t){var i=e.skipTrivia(a.text,t.expression.end),o=t.end;My(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;My(a,i,o-i,e.Diagnostics.Expression_expected)}return wv}var s=tl(n)?Mv:rp(n);return r===wv||r===Vv?r:Sd(r)&&9!==n.kind?(l(n,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),wv):Np(hi(r,s,t),t)}function nl(t,r,n){if(r===wv)return!1;if(!e.isWellKnownSymbolSyntactically(t))return!1;if(0===(512&r.flags))return n&&l(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=zs(a);if(!i)return!1;var o=Ca(!0);return!!o&&(i===o||(n&&l(a,e.Diagnostics.Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object),!1))}function al(t){return e.isCallOrNewExpression(t)}function il(t){return al(t)&&e.forEach(t.typeArguments,Fm),183===t.kind?rp(t.template):147!==t.kind&&e.forEach(t.arguments,function(e){rp(e)}),wh}function ol(e){return il(e),Ph}function sl(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&&ke(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 cl(e){for(var t=0;t<e.length;t++){var r=e[t];if(r&&198===r.kind)return t}return-1}function ul(t,r,n,a){void 0===a&&(a=!1);var i,o,s,c,u=-1;if(e.isJsxOpeningLikeElement(t))return!0;if(183===t.kind){var _=t;if(i=r.length,o=void 0,196===_.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(13===p.kind),s=!!p.isUnterminated}}else if(147===t.kind)c=!0,o=void 0,i=vl(t,void 0,n);else{var f=t;if(!f.arguments)return e.Debug.assert(182===f.kind),0===n.minArgumentCount;i=a?r.length+1:r.length,s=f.arguments.end===f.end,o=f.typeArguments,u=cl(r)}var m=e.length(n.typeParameters),g=Pn(n.typeParameters),y=!o||o.length>=g&&o.length<=m;if(!y)return!1;if(u>=0)return Qo(n,u)||u>=n.minArgumentCount;if(!n.hasRestParameter&&i>n.parameters.length)return!1;var v=i>=n.minArgumentCount;return s||v}function _l(e){if(32768&e.flags){var t=Zr(e);if(1===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.properties.length&&!t.stringIndexInfo&&!t.numberIndexInfo)return t.callSignatures[0]}}function ll(e,t,r){var n=Es(e,1);return Ts(t,e,function(e,t){Is(n.inferences,uo(e,r||Qi),t)}),r||Is(n.inferences,Jn(t),Jn(e),4),Kn(e,Js(n))}function dl(t,r,n,a,i){for(var o=i.inferences,s=0;s<o.length;s++)o[s].isFixed||(o[s].inferredType=void 0);if(e.isExpression(t)){var c=zu(t);if(c){var u=uo(c,Xi(Ku(t))),_=_l(u),l=_&&_.typeParameters?Un(Kn(_,_.typeParameters)):u,d=Jn(r);Is(i.inferences,l,d,4)}}var p=Bn(r);if(p){var f=gl(t),m=f?rp(f):Kv;Is(i.inferences,m,p)}for(var g=vl(t,n,r),s=0;s<g;s++){var y=Dl(t,n,s);if(void 0===y||200!==y.kind){var v=Ql(r,s),h=Cl(t,s);if(void 0===h){var b=a&&void 0!==a[s]?Qi:i;h=qd(y,v,b)}Is(i.inferences,h,v)}}if(a)for(var s=0;s<g;s++)if(a[s]===!1){var y=n[s],v=Ql(r,s);Is(i.inferences,qd(y,v,i),v)}return Js(i)}function pl(t,r,n,a,i){for(var o,s=t.typeParameters,c=!0,u=0;u<r.length;u++)if(c){var _=on(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=qi(s,n));var p=n[u];c=So(p,Nr(uo(_,o),p),a?r[u]:void 0,d,l)}}return c}function fl(t,r,n){var a=t.attributes.end===t.end;if(a)return!0;for(var i=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,o=Ql(r,0),s=qd(t.attributes,o,void 0),c=rn(s),u=0,_=c;u<_.length;u++){var l=_[u];if(!yn(o,l.name)&&c_(l.name))return!1}return Bo(s,o,n,void 0,i)}function ml(t,r,n,a,i,o){if(e.isJsxOpeningLikeElement(t))return fl(t,n,a);var s=Bn(n);if(s&&s!==Kv&&182!==t.kind){var c=gl(t),u=c?rp(c):Kv,_=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(!Bo(u,Bn(n),a,_,l))return!1}for(var d=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,p=vl(t,r,n),f=0;f<p;f++){var m=Dl(t,r,f);if(void 0===m||200!==m.kind){var g=Ql(n,f),y=Cl(t,f);void 0===y&&(y=qd(m,g,i&&i[f]?Qi:void 0));var _=o?Sl(t,f,m):void 0;if(!Bo(y,g,a,_,d))return!1}}return!0}function gl(e){if(181===e.kind){var t=e.expression;if(179===t.kind)return t.expression;if(180===t.kind)return t.expression}}function yl(t){var r;if(183===t.kind){var n=t.template;r=[void 0],196===n.kind&&e.forEach(n.templateSpans,function(e){r.push(e.expression)})}else{if(147===t.kind)return;r=e.isJsxOpeningLikeElement(t)?t.attributes.properties.length>0?[t.attributes]:iv:t.arguments||iv}return r}function vl(e,t,r){if(147!==e.kind)return t.length;switch(e.parent.kind){case 229:case 199:return 1;case 149:return 2;case 151:case 153:case 154:
return 0===cv?2:r.parameters.length>=3?3:2;case 146:return 3}}function hl(t){if(229===t.kind){var r=ke(t);return jt(r)}if(146===t.kind&&(t=t.parent,152===t.kind)){var r=ke(t);return jt(r)}return 149===t.kind||151===t.kind||153===t.kind||154===t.kind?og(t):(e.Debug.fail("Unsupported decorator target."),wv)}function bl(t){if(229===t.kind)return e.Debug.fail("Class decorators should not have a second synthetic argument."),wv;if(146===t.kind&&(t=t.parent,152===t.kind))return Nv;if(149===t.kind||151===t.kind||153===t.kind||154===t.kind){var r=t;switch(r.name.kind){case 71:case 8:case 9:return Pi(r.name.text);case 144:var n=r_(r.name);return Dd(n,512)?n:Rv;default:return e.Debug.fail("Unsupported property name."),wv}}return e.Debug.fail("Unsupported decorator target."),wv}function kl(t){if(229===t.kind)return e.Debug.fail("Class decorators should not have a third synthetic argument."),wv;if(146===t.kind)return Mv;if(149===t.kind)return e.Debug.fail("Property decorators should not have a third synthetic argument."),wv;if(151===t.kind||153===t.kind||154===t.kind){var r=rg(t);return La(r)}return e.Debug.fail("Unsupported decorator target."),wv}function xl(t,r){return 0===r?hl(t.parent):1===r?bl(t.parent):2===r?kl(t.parent):(e.Debug.fail("Decorators should not have a fourth synthetic argument."),wv)}function Cl(e,t){return 147===e.kind?xl(e,t):0===t&&183===e.kind?xa():void 0}function Dl(e,t,r){if(147!==e.kind&&(0!==r||183!==e.kind))return t[r]}function Sl(e,t,r){return 147===e.kind?e.expression:0===t&&183===e.kind?e.template:r}function Tl(t,r,n,a){function i(r,n,a){void 0===a&&(a=!1),m=void 0,g=void 0;for(var i=0,o=r;i<o.length;i++){var c=o[i];if(ul(t,p,c,a))for(var u=void 0,_=c.typeParameters?Es(c,e.isInJavaScriptFile(t)?4:0):void 0;;){if(u=c,u.typeParameters){var l=void 0;if(s){if(l=Fn(e.map(s,Li),u.typeParameters,Pn(u.typeParameters)),!pl(u,s,l,!1)){g=c;break}}else l=dl(t,u,p,d,_);u=Kn(u,l)}if(!ml(t,p,u,n,d,!1)){m=u;break}var f=d?e.indexOf(d,!0):-1;if(f<0)return u;d[f]=!1}}}var s,c=183===t.kind,u=147===t.kind,_=e.isJsxOpeningLikeElement(t);c||u||_||(s=t.typeArguments,97!==t.expression.kind&&e.forEach(s,Fm));var l=n||[];if(sl(r,l),!l.length)return ib.add(e.createDiagnosticForNode(t,e.Diagnostics.Call_target_does_not_contain_any_signatures)),ol(t);var d,p=yl(t);if(!u)for(var f=c?1:0;f<p.length;f++)po(p[f])&&(d||(d=new Array(p.length)),d[f]=!0);var m,g,y,v=n&&181===t.kind&&t.arguments.hasTrailingComma;if(l.length>1&&(y=i(l,bb,v)),y||(y=i(l,kb,v)),y)return y;if(m){if(_)return m;ml(t,p,m,kb,void 0,!0)}else if(g){var h=t.typeArguments;pl(g,h,e.map(h,Li),!0,a)}else if(s&&e.every(r,function(t){return e.length(t.typeParameters)!==s.length})){for(var b=Number.POSITIVE_INFINITY,k=Number.NEGATIVE_INFINITY,x=0,C=r;x<C.length;x++){var D=C[x];b=Math.min(b,Pn(D.typeParameters)),k=Math.max(k,e.length(D.typeParameters))}var S=b<k?b+"-"+k:b;ib.add(e.createDiagnosticForNode(t,e.Diagnostics.Expected_0_type_arguments_but_got_1,S,s.length))}else if(p){for(var b=Number.POSITIVE_INFINITY,k=Number.NEGATIVE_INFINITY,T=0,E=r;T<E.length;T++){var D=E[T];b=Math.min(b,D.minArgumentCount),k=Math.max(k,D.parameters.length)}var N=e.some(r,function(e){return e.hasRestParameter}),A=cl(p)>-1,S=N?b:b<k?b+"-"+k:b,w=p.length-(A?1:0),P=N&&A?e.Diagnostics.Expected_at_least_0_arguments_but_got_a_minimum_of_1:N?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:A?e.Diagnostics.Expected_0_arguments_but_got_a_minimum_of_1:e.Diagnostics.Expected_0_arguments_but_got_1;ib.add(e.createDiagnosticForNode(t,P,S,w))}else a&&ib.add(e.createDiagnosticForNode(t,a));if(!o)for(var F=0,O=l;F<O.length;F++){var I=O[F];if(ul(t,p,I))return I.typeParameters&&s&&(I=Kn(I,e.map(s,Li))),I}return ol(t)}function El(t,r){if(97===t.expression.kind){var n=gu(t.expression);if(n!==wv){var a=e.getClassExtendsHeritageClauseElement(e.getContainingClass(t));if(a){var i=tr(n,a.typeArguments,a);return Tl(t,i,r)}}return il(t)}var o=z_(t.expression);if(o===Vv)return Oh;var s=pn(o);if(s===wv)return ol(t);var c=hn(s,0),u=hn(s,1);return Nl(o,s,c.length,u.length)?(o!==wv&&t.typeArguments&&l(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),il(t)):c.length?Tl(t,c,r):(u.length?l(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Xe(o)):l(t,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,Xe(s)),ol(t))}function Nl(e,t,r,n){return!!ft(e)||(!!(ft(t)&&16384&e.flags)||!r&&!n&&(!(65536&e.flags)&&ko(e,Zv)))}function Al(t,r){if(t.arguments&&cv<1){var n=cl(t.arguments);n>=0&&l(t.arguments[n],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var a=z_(t.expression);if(a===Vv)return Oh;if(a=pn(a),a===wv)return ol(t);var i=a.symbol&&im(a.symbol);if(i&&128&e.getModifierFlags(i))return l(t,e.Diagnostics.Cannot_create_an_instance_of_the_abstract_class_0,e.declarationNameToString(e.getNameOfDeclaration(i))),ol(t);if(ft(a))return t.typeArguments&&l(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),il(t);var o=hn(a,1);if(o.length)return wl(t,o[0])?Tl(t,o,r):ol(t);var s=hn(a,0);if(s.length){var c=Tl(t,s,r);return Jl(c.declaration)||Jn(c)===Kv||l(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),Bn(c)===Kv&&l(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void),c}return l(t,e.Diagnostics.Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature),ol(t)}function wl(t,r){if(!r||!r.declaration)return!0;var n=r.declaration,a=e.getModifierFlags(n);if(!(24&a))return!0;var i=im(n.parent.symbol),o=vr(n.parent.symbol);if(!Gm(t,i)){var s=e.getContainingClass(t);if(s)for(var c=rg(s),u=nr(c);u.length;){var _=u[0];if(16&a&&_.symbol===n.parent.symbol)return!0;u=nr(_)}return 8&a&&l(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Xe(o)),16&a&&l(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Xe(o)),!1}return!0}function Pl(t,r){var n=rp(t.tag),a=pn(n);if(a===wv)return ol(t);var i=hn(a,0),o=hn(a,1);return Nl(n,a,i.length,o.length)?il(t):i.length?Tl(t,i,r):(l(t,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,Xe(a)),ol(t))}function Fl(t){switch(t.parent.kind){case 229:case 199:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 146:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 149:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 151:case 153:case 154:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression}}function Ol(t,r){var n=rp(t.expression),a=pn(n);if(a===wv)return ol(t);var i=hn(a,0),o=hn(a,1);if(Nl(n,a,i.length,o.length))return il(t);var s=Fl(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,Xe(a)),c=e.chainDiagnosticMessages(c,s),ib.add(e.createDiagnosticForNodeFromMessageChain(t,c)),ol(t)}return Tl(t,i,r,s)}function Il(t,r,n){e.Debug.assert(!(65536&r.flags));var a=Rl(t,r,n);return a}function Rl(e,t,r){if(65536&t.flags){for(var n=t.types,a=void 0,i=0,o=n;i<o.length;i++){var s=o[i];a=a||Rl(e,s,r)}return a}var c=t&&hn(t,0);if(c&&c.length>0){var u=void 0;return u=Tl(e,c,r)}}function Ml(t,r){switch(t.kind){case 181:return El(t,r);case 182:return Al(t,r);case 183:return Pl(t,r);case 147:return Ol(t,r);case 251:case 250:return Rl(t,rp(t.tagName),r)}e.Debug.fail("Branch in 'resolveSignature' should be unreachable.")}function Ll(e,t){var r=x(e),n=r.resolvedSignature;if(n&&n!==Fh&&!t)return n;r.resolvedSignature=Fh;var a=Ml(e,t);return r.resolvedSignature=Lh===Bh?a:n,a}function Bl(e){return x(e).resolvedSignature===Fh?Fh:Ll(e)}function Jl(t){if(e.isInJavaScriptFile(t)){if(e.getJSDocClassTag(t))return!0;var r=e.isFunctionDeclaration(t)||e.isFunctionExpression(t)?ke(t):e.isVariableDeclaration(t)&&e.isFunctionExpression(t.initializer)?ke(t.initializer):void 0;return r&&void 0!==r.members}return!1}function zl(e){var t=k(e);return t.inferredClassType||(t.inferredClassType=Ie(e,e.members||ov,iv,iv,void 0,void 0)),t.inferredClassType}function Kl(e){return e.symbol&&16&C(e)&&k(e.symbol).inferredClassType===e}function jl(t){oy(t,t.typeArguments)||cy(t,t.arguments);var r=Ll(t);if(97===t.expression.kind)return Kv;if(182===t.kind){var n=r.declaration;if(n&&152!==n.kind&&156!==n.kind&&161!==n.kind&&!e.isJSDocConstructSignature(n)){var a=71===t.expression.kind?zs(t.expression):rp(t.expression).symbol;return a&&e.isDeclarationOfFunctionOrClassExpression(a)&&(a=ke(a.valueDeclaration.initializer)),a&&16&a.flags&&(a.members||e.getJSDocClassTag(a.valueDeclaration))?zl(a):(pv&&l(t,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Nv)}}return e.isInJavaScriptFile(t)&&Ul(t)?Ln(t.arguments[0]):Jn(r)}function Vl(t){if(cy(t,t.arguments)||Gy(t),0===t.arguments.length)return nd(t,Nv);for(var r=t.arguments[0],n=Wd(r),a=1;a<t.arguments.length;++a)Wd(t.arguments[a]);(2048&n.flags||4096&n.flags||!ko(n,Rv))&&l(r,e.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,Xe(n));var i=se(t,r);if(i){var o=le(i,r,!0);if(o)return nd(t,jt(o))}return nd(t,Nv)}function Ul(t){if(!e.isRequireCall(t,!0))return!1;var r=N(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?228:3&r.flags?226:0;if(0!==n){var a=e.getDeclarationOfKind(r,n);return e.isInAmbientContext(a)}return!1}function ql(e){return Jn(Ll(e))}function Wl(t){var r=vs(is(rp(t.expression)));Fm(t.type);var n=Li(t.type);if(o&&n!==wv){var a=xs(r);Co(n,a)||To(r,n,t,e.Diagnostics.Type_0_cannot_be_converted_to_type_1)}return n}function Hl(e){return fs(rp(e.expression))}function Gl(t){Oy(t);var r=e.getNewTargetContainer(t);if(r){if(152===r.kind){var n=ke(r.parent);return jt(n)}var n=ke(r);return jt(n)}return l(t,e.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),wv}function Xl(e){var t=jt(e);if(dv){var r=e.valueDeclaration;if(r&&r.initializer)return ps(t,2048)}return t}function Ql(e,t){return e.hasRestParameter?t<e.parameters.length-1?Xl(e.parameters[t]):zn(e):t<e.parameters.length?Xl(e.parameters[t]):Nv}function Yl(e){return e.parameters.length>0?Ql(e,0):jv}function Zl(t,r,n){for(var a=t.parameters.length-(t.hasRestParameter?1:0),i=0;i<a;i++){var o=t.parameters[i].valueDeclaration;if(o.type){var s=e.getEffectiveTypeAnnotationNode(o);s&&Is(n.inferences,Li(s),Ql(r,i))}}}function $l(t,r){if(t.typeParameters=r.typeParameters,r.thisParameter){var n=t.thisParameter;(!n||n.valueDeclaration&&!n.valueDeclaration.type)&&(n||(t.thisParameter=gs(r.thisParameter,void 0)),td(t.thisParameter,jt(r.thisParameter)))}for(var a=t.parameters.length-(t.hasRestParameter?1:0),i=0;i<a;i++){var n=t.parameters[i];if(!e.getEffectiveTypeAnnotationNode(n.valueDeclaration)){var o=Ql(r,i);td(n,o)}}if(t.hasRestParameter&&Qo(r,t.parameters.length-1)){var n=e.lastOrUndefined(t.parameters);if(!e.getEffectiveTypeAnnotationNode(n.valueDeclaration)){var o=jt(e.lastOrUndefined(r.parameters));td(n,o)}}}function ed(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)||(71===a.name.kind&&(k(ke(a)).type=vt(a)),ed(a))}}function td(t,r){var n=k(t);if(!n.type){n.type=r;var a=e.getNameOfDeclaration(t.valueDeclaration);n.type!==qv||174!==a.kind&&175!==a.kind||(n.type=Nt(a)),ed(t.valueDeclaration)}}function rd(e){var t=Sa(!0);return t!==Gv?(e=Bp(e)||qv,ea(t,[e])):qv}function nd(t,r){var n=rd(r);return n===qv?(l(t,e.isImportCall(t)?e.Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option: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),wv):(Ta(!0)||l(t,e.isImportCall(t)?e.Diagnostics.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),n)}function ad(t,r){var n=qu(t);if(!t.body)return wv;var a,i=e.getFunctionFlags(t);if(207!==t.body.kind)a=Wd(t.body,r),2&i&&(a=Lp(a,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member));else{var o=void 0;if(1&i){if(o=e.concatenate(id(t,r),cd(t,r)),!o||0===o.length){var s=2&i?Ja(Nv):Ka(Nv);return pv&&l(t.asteriskToken,e.Diagnostics.Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type,Xe(s)),s}}else{if(o=cd(t,r),!o)return 2&i?nd(t,jv):jv;if(0===o.length)return 2&i?nd(t,Kv):Kv}a=ni(o,!0),1&i&&(a=2&i?Ja(a):Ka(a))}n||Ss(t,a),!ns(a)||n&&Xd(n===On(t)?a:Jn(n))||(a=os(a));var c=xs(a);return 2===(3&i)?nd(t,c):c}function id(t,r){var n=[],a=e.getFunctionFlags(t);return e.forEachYieldExpression(t.body,function(t){var i=t.expression;if(i){var o=Wd(i,r);t.asteriskToken&&(o=If(o,t.expression,!1,0!==(2&a))),2&a&&(o=Lp(o,i,t.asteriskToken?e.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:e.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)),e.contains(n,o)||n.push(o)}}),n}function od(e){if(!e.possiblyExhaustive)return!1;var t=ep(e.expression);if(!as(t))return!1;var r=Cc(e);return!!r.length&&Dc(Ac(t,wi),r)}function sd(t){if(!(128&t.flags))return!1;var r=e.lastOrUndefined(t.body.statements);return!r||221!==r.kind||!od(r)}function cd(t,r){var n=e.getFunctionFlags(t),a=[],i=sd(t),o=!1;if(e.forEachReturnStatement(t.body,function(s){var c=s.expression;if(c){var u=Wd(c,r);2&n&&(u=Lp(u,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)),8192&u.flags?o=!0:e.contains(a,u)||a.push(u)}else i=!0}),0!==a.length||i||!o&&186!==t.kind&&187!==t.kind)return dv&&a.length&&i&&(e.contains(a,Pv)||a.push(Pv)),a}function ud(t,r){if(o&&(!r||!Cd(r,1025))&&!e.nodeIsMissing(t.body)&&207===t.body.kind&&sd(t)){var n=256&t.flags;if(r&&8192&r.flags)l(e.getEffectiveReturnTypeNode(t),e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(r&&!n)l(e.getEffectiveReturnTypeNode(t),e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(r&&dv&&!ko(Pv,r))l(e.getEffectiveReturnTypeNode(t),e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(sv.noImplicitReturns){if(!r){if(!n)return;var a=Jn(On(t));if(Kf(t,a))return}l(e.getEffectiveReturnTypeNode(t)||t,e.Diagnostics.Not_all_code_paths_return_a_value)}}}function _d(t,r){e.Debug.assert(151!==t.kind||e.isObjectLiteralMethod(t));var n=ey(t);if(n||186!==t.kind||fy(t),1===r&&po(t))return Om(t),Xv;var a=x(t),i=jt(t.symbol);if(!(1024&a.flags)){var s=Hu(t);if(!(1024&a.flags)){if(a.flags|=1024,s){var c=hn(i,0)[0];if(po(t)){var u=Ku(t);2===r&&Zl(c,s,u);var _=u===Qi?s:to(s,u);$l(c,_)}if(!e.getEffectiveReturnTypeNode(t)&&!c.resolvedReturnType){var l=ad(t,r);c.resolvedReturnType||(c.resolvedReturnType=l)}}_p(t),Om(t)}}return o&&151!==t.kind&&(pf(t,t.name),uf(t,t.name),_f(t,t.name)),i}function ld(t){e.Debug.assert(151!==t.kind||e.isObjectLiteralMethod(t));var r=e.getFunctionFlags(t),n=e.getEffectiveReturnTypeNode(t),a=n&&(2===(3&r)?Jp(t):Li(n));if(0===(1&r)&&ud(t,a),t.body){if(n||Jn(On(t)),207===t.body.kind)Fm(t.body);else{var i=rp(t.body);if(a)if(2===(3&r)){var o=Lp(i,t.body,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);So(o,a,t.body)}else So(i,a,t.body)}Xp(t)}}function dd(e,t,r){return!!$u(t,84)||(l(e,r),!1)}function pd(t){return!!(8&e.getCheckFlags(t)||4&t.flags&&64&e.getDeclarationModifierFlagsFromSymbol(t)||3&t.flags&&2&L_(t)||98304&t.flags&&!(65536&t.flags)||8&t.flags)}function fd(t,r){if(pd(r)){if(4&r.flags&&(179===t.kind||180===t.kind)&&99===t.expression.kind){var n=e.getContainingFunction(t);return!n||152!==n.kind||!(n.parent===r.valueDeclaration.parent||n===r.valueDeclaration.parent)}return!0}return!1}function md(t){if(179===t.kind||180===t.kind){var r=e.skipParentheses(t.expression);if(71===r.kind){var n=x(r).resolvedSymbol;if(8388608&n.flags){var a=z(n);return a&&240===a.kind}}}return!1}function gd(t,r){var n=e.skipOuterExpressions(t,3);return 71===n.kind||179===n.kind||180===n.kind||(l(t,r),!1)}function yd(t){rp(t.expression);var r=e.skipParentheses(t.expression);if(179!==r.kind&&180!==r.kind)return l(r,e.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),Jv;var n=x(r),a=Ce(n.resolvedSymbol);return a&&pd(a)&&l(r,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),Jv}function vd(e){return rp(e.expression),mb}function hd(e){return rp(e.expression),Fv}function bd(t){o&&(16384&t.flags||Ry(t,e.Diagnostics.await_expression_is_only_allowed_within_an_async_function),Su(t)&&l(t,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer));var r=rp(t.expression);return Lp(r,t,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function kd(t){var r=rp(t.operand);if(r===Vv)return Vv;if(38===t.operator&&8===t.operand.kind)return Ai(Pi(-t.operand.text));switch(t.operator){case 37:case 38:case 52:return K_(r,t.operand),Cd(r,512)&&l(t.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(t.operator)),Mv;case 51:var n=3145728&tc(r);return 1048576===n?Bv:2097152===n?Lv:Jv;case 43:case 44:var a=dd(t.operand,K_(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type);return a&&gd(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access),Mv}return wv}function xd(t){var r=rp(t.operand);if(r===Vv)return Vv;var n=dd(t.operand,K_(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type);return n&&gd(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access),Mv}function Cd(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(Cd(i,t))return!0}return!1}function Dd(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(!Dd(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(Dd(i,t))return!0}return!1}function Sd(e){return 16&C(e)&&e.symbol&&Td(e.symbol)}function Td(e){return 0!==(128&e.flags)}function Ed(t,r,n,a){return n===Vv||a===Vv?Vv:(Dd(n,8190)&&l(t,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),ft(a)||hn(a,0).length||hn(a,1).length||bo(a,Zv)||l(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),Jv)}function Nd(t,r,n,a){return n===Vv||a===Vv?Vv:(n=K_(n,t),a=K_(a,r),Co(n,Rv)||Dd(n,596)||l(t,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol),$u(a,17350656)||l(r,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Jv)}function Ad(e,t){for(var r=e.properties,n=0,a=r;n<a.length;n++){var i=a[n];wd(t,i,r)}return t}function wd(t,r,n){if(261===r.kind||262===r.kind){var a=r.name;if(144===a.kind&&r_(a),gt(a))return;var i=e.getTextOfPropertyName(a),o=ft(t)?t:pt(t,i)||t_(i)&&Cn(t,1)||Cn(t,0);if(o)return 262===r.kind?Od(r,o):Od(r.initializer,o);l(a,e.Diagnostics.Type_0_has_no_property_1_and_no_string_index_signature,Xe(t),e.declarationNameToString(a))}else{if(263===r.kind){cv<5&&jg(r,4);var s=[];if(n)for(var c=0;c<n.length-1;c++)s.push(n[c].name);var o=yt(t,s,t.symbol);return Od(r.expression,o)}l(r,e.Diagnostics.Property_assignment_expected)}}function Pd(e,t,r){cv<2&&sv.downlevelIteration&&jg(e,512);for(var n=If(t,e,!1,!1)||wv,a=e.elements,i=0;i<a.length;i++)Fd(e,t,i,n,r);return t}function Fd(t,r,n,a,i){var o=t.elements,s=o[n];if(200!==s.kind)if(198!==s.kind){var c=""+n,u=ft(r)?r:rs(r)?pt(r,c):a;if(u)return Od(s,u,i);rp(s),ss(r)?l(s,e.Diagnostics.Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2,Xe(r),ra(r),o.length):l(s,e.Diagnostics.Type_0_has_no_property_1,Xe(r),c)}else if(n<o.length-1)l(s,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{var _=s.expression;if(194!==_.kind||58!==_.operatorToken.kind)return Od(_,ja(a),i);l(_.operatorToken,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}function Od(e,t,r){var n;if(262===e.kind){var a=e;a.objectAssignmentInitializer&&(!dv||2048&us(rp(a.objectAssignmentInitializer))||(t=rc(t,131072)),Jd(a.name,a.equalsToken,a.objectAssignmentInitializer,r)),n=e.name}else n=e;return 194===n.kind&&58===n.operatorToken.kind&&(Bd(n,r),n=n.left),178===n.kind?Ad(n,t):177===n.kind?Pd(n,t,r):Id(n,t,r)}function Id(t,r,n){var a=rp(t,n),i=263===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 gd(t,i)&&So(r,a,t,void 0),r}function Rd(t){switch(t=e.skipParentheses(t),t.kind){case 71:case 9:case 12:case 183:case 196:case 13:case 8:case 101:case 86:case 95:case 139:case 186:case 199:case 187:case 177:case 178:case 189:case 203:case 250:case 249:return!0;case 195:return Rd(t.whenTrue)&&Rd(t.whenFalse);case 194:return!e.isAssignmentOperator(t.operatorToken.kind)&&(Rd(t.left)&&Rd(t.right));case 192:case 193:switch(t.operator){case 51:case 37:case 38:case 52:return!0}return!1;case 190:case 184:case 202:default:return!1}}function Md(e,t){return 0!==(6144&t.flags)||Co(e,t)}function Ld(e,t){var r=ko(e,t),n=ko(t,e);return n&&!r?e:r&&!n?t:ni([e,t],!0)}function Bd(e,t){return Jd(e.left,e.operatorToken,e.right,t,e)}function Jd(t,r,n,a,i){function s(e){return 71===e.kind&&"eval"===e.text}function c(r){var a=Cd(f,512)?t:Cd(m,512)?n:void 0;return!a||(l(a,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(r)),!1)}function u(e){switch(e){case 49:case 69:return 54;case 50:case 70:return 35;case 48:case 68:return 53;default:return}}function _(r){o&&e.isAssignmentOperator(p)&&gd(t,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access)&&So(r,f,t,void 0)}function d(){l(i||r,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,e.tokenToString(r.kind),Xe(f),Xe(m))}var p=r.kind;if(58===p&&(178===t.kind||177===t.kind))return Od(t,rp(n,a),a);var f=rp(t,a),m=rp(n,a);switch(p){case 39:case 40:case 61:case 62:case 41:case 63:case 42:case 64:case 38:case 60:case 45:case 65:case 46:case 66:case 47:case 67:case 49:case 69:case 50:case 70:case 48:case 68:if(f===Vv||m===Vv)return Vv;f=K_(f,t),m=K_(m,n);var g=void 0;if(136&f.flags&&136&m.flags&&void 0!==(g=u(r.kind)))l(i||r,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(r.kind),e.tokenToString(g));else{var y=dd(t,f,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type),v=dd(n,m,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type);y&&v&&_(Mv)}return Mv;case 37:case 59:if(f===Vv||m===Vv)return Vv;Dd(f,262179)||Dd(m,262179)||(f=K_(f,t),m=K_(m,n));var h=void 0;if(Dd(f,84)&&Dd(m,84))h=Mv;else if(Dd(f,262178)||Dd(m,262178)?h=Rv:(ft(f)||ft(m))&&(h=f===wv||m===wv?wv:Nv),h&&!c(p))return h;return h?(59===p&&_(h),h):(d(),Nv);case 27:case 29:case 30:case 31:return c(p)&&(f=is(K_(f,t)),m=is(K_(m,n)),Co(f,m)||Co(m,f)||d()),Jv;case 32:case 33:case 34:case 35:var b=as(f),k=as(m);return b&&k||(f=b?is(f):f,m=k?is(m):m),Md(f,m)||Md(m,f)||d(),Jv;case 93:return Ed(t,n,f,m);case 92:return Nd(t,n,f,m);case 53:return 1048576&tc(f)?ni([ls(dv?f:is(m)),m]):f;case 54:return 2097152&tc(f)?Ld(_s(f),m):f;case 58:return _(m),vs(m);case 26:return sv.allowUnreachableCode||!Rd(t)||s(n)||l(t,e.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects),m}}function zd(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 Kd(t){if(o&&(4096&t.flags&&!zd(t)||Ry(t,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),Su(t)&&l(t,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer)),t.expression){var r=e.getContainingFunction(t),n=r&&e.getFunctionFlags(r);if(t.asteriskToken&&(3===(3&n)&&cv<5&&jg(t,26624),1===(3&n)&&cv<2&&sv.downlevelIteration&&jg(t,256)),1&n){var a=Wd(t.expression,void 0),i=void 0,s=!!t.asteriskToken;s&&(i=If(a,t.expression,!1,0!==(2&n)));var c=e.getEffectiveReturnTypeNode(r);if(c){var u=Bf(Li(c),0!==(2&n))||Nv;s?So(2&n?Bp(i,t.expression,e.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):i,u,t.expression,void 0):So(2&n?Bp(a,t.expression,e.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):a,u,t.expression,void 0)}}}return Nv}function jd(e,t){rp(e.condition);var r=rp(e.whenTrue,t),n=rp(e.whenFalse,t);return Ld(r,n)}function Vd(e){switch(8===e.kind&&qy(e),e.kind){case 9:return Ai(Pi(e.text));case 8:return Ai(Pi(+e.text));case 101:return Lv;case 86:return Bv}}function Ud(t){return e.forEach(t.templateSpans,function(e){rp(e.expression)}),Rv}function qd(e,t,r){var n=e.contextualType,a=e.contextualMapper;e.contextualType=t,e.contextualMapper=r;var i=r===Qi?1:r?2:0,o=rp(e,i);return e.contextualType=n,e.contextualMapper=a,o}function Wd(e,t){var r=x(e);if(!r.resolvedType){var n=Lh;Lh=Bh,r.resolvedType=rp(e,t),Lh=n}return r.resolvedType}function Hd(t){return t=e.skipParentheses(t),184===t.kind||202===t.kind}function Gd(t){var r=ep(t.initializer,!0);return 2&e.getCombinedNodeFlags(t)||64&e.getCombinedModifierFlags(t)&&!e.isParameterPropertyDeclaration(t)||Hd(t.initializer)?r:os(r)}function Xd(e){if(e){if(540672&e.flags){var t=cn(e)||qv;if(30&t.flags)return!0;e=t}return Cd(e,262368)}return!1}function Qd(e,t){var r=rp(e,t);return Hd(e)||Xd(zu(e))?r:os(r)}function Yd(e,t){return 144===e.name.kind&&r_(e.name),Qd(e.initializer,t)}function Zd(e,t){Cy(e),144===e.name.kind&&r_(e.name);var r=_d(e,t);return $d(e,r,t)}function $d(e,t,r){if(2===r){var n=_l(t);if(n&&n.typeParameters){var a=Ju(e);if(a){var i=_l(fs(a));if(i&&!i.typeParameters)return Un(ll(n,i,Ku(e)))}}}return t}function ep(t,r){if(181===t.kind&&97!==t.expression.kind&&!e.isRequireCall(t,!0)){var n=z_(t.expression),a=_l(n);if(a&&!a.typeParameters)return Jn(a)}return r?Wd(t):rp(t)}function tp(e){var t=e.contextualType;e.contextualType=Nv;var r=ep(e);return e.contextualType=t,r}function rp(t,r){var n;if(143===t.kind)n=V_(t);else{var a=np(t,r);n=$d(t,a,r)}if(Sd(n)){var i=179===t.parent.kind&&t.parent.expression===t||180===t.parent.kind&&t.parent.expression===t||(71===t.kind||143===t.kind)&&Qm(t);i||l(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 np(t,r){switch(t.kind){case 71:return au(t);case 99:return pu(t);case 97:return gu(t);case 95:return Iv;case 9:case 8:case 101:case 86:return Vd(t);case 196:return Ud(t);case 13:return Rv;case 12:return ah;case 177:return Qu(t,r);case 178:return a_(t,r);case 179:return j_(t);case 180:return rl(t);case 181:if(91===t.expression.kind)return Vl(t);case 182:return jl(t);case 183:return ql(t);case 185:return rp(t.expression,r);case 199:return $f(t);case 186:case 187:return _d(t,r);case 189:return vd(t);case 184:case 202:return Wl(t);case 203:return Hl(t);case 204:return Gl(t);case 188:return yd(t);case 190:return hd(t);case 191:return bd(t);case 192:return kd(t);case 193:return xd(t);case 194:return Bd(t,r);case 195:return jd(t,r);case 198:return Gu(t,r);case 200:return Fv;case 197:return Kd(t);case 256:return R_(t,r);case 249:return s_(t);case 250:return o_(t);case 254:return l_(t,r);case 251:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return wv}function ap(t){t.expression&&Ry(t.expression,e.Diagnostics.Type_expected),Fm(t.constraint),Fm(t["default"]);var r=gr(ke(t));un(r)||l(t.constraint,e.Diagnostics.Type_parameter_0_has_a_circular_constraint,Xe(r));var n=on(r),a=dn(r);n&&a&&So(a,Nr(n,a),t["default"],e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),o&&Xf(t.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function ip(t){qg(t)||Wg(t),hf(t);var r=e.getContainingFunction(t);92&e.getModifierFlags(t)&&(r=e.getContainingFunction(t),152===r.kind&&e.nodeIsPresent(r.body)||l(t,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation)),t.questionToken&&e.isBindingPattern(t.name)&&r.body&&l(t,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),"this"===t.name.text&&(0!==e.indexOf(r.parameters,t)&&l(t,e.Diagnostics.A_this_parameter_must_be_the_first_parameter),152!==r.kind&&156!==r.kind&&161!==r.kind||l(t,e.Diagnostics.A_constructor_cannot_have_a_this_parameter)),!t.dotDotDotToken||e.isBindingPattern(t.name)||es(jt(t.symbol))||l(t,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function op(e,t){if(e)for(var r=0;r<e.length;r++){var n=e[r];if(71===n.name.kind&&n.name.text===t.text)return r}return-1}function sp(t){var r=cp(t);if(!r)return void l(t,e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);var n=On(r).typePredicate;if(n){var a=t.parameterName;if(e.isThisTypePredicate(n))Mi(a);else if(n.parameterIndex>=0)if(r.parameters[n.parameterIndex].dotDotDotToken)l(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);So(n.type,rg(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)&&up(u,a,n.parameterName)){o=!0;break}}o||l(t.parameterName,e.Diagnostics.Cannot_find_parameter_0,n.parameterName)}}}function cp(e){switch(e.parent.kind){case 187:case 155:case 228:case 186:case 160:case 151:case 150:var t=e.parent;if(e===t.type)return t}}function up(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(71===s.kind&&s.text===n)return l(r,e.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,n),!0;if((175===s.kind||174===s.kind)&&up(s,r,n))return!0}}}function _p(t){157===t.kind?ay(t):160!==t.kind&&228!==t.kind&&161!==t.kind&&155!==t.kind&&152!==t.kind&&156!==t.kind||ey(t);var r=e.getFunctionFlags(t);if(4&r||(3===(3&r)&&cv<5&&jg(t,6144),2===(3&r)&&cv<4&&jg(t,64),0!==(3&r)&&cv<2&&jg(t,128)),Qf(t.typeParameters),e.forEach(t.parameters,ip),t.type&&Fm(t.type),o){sf(t);var n=e.getEffectiveReturnTypeNode(t);if(pv&&!n)switch(t.kind){case 156:l(t,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 155:l(t,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(n){
var a=e.getFunctionFlags(t);if(1===(5&a)){var i=Li(n);if(i===Kv)l(n,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var s=Bf(i,0!==(2&a))||Nv,c=2&a?Ja(s):Ka(s);So(c,i,n)}}else 2===(3&a)&&Jp(t)}_v&&!t.body&&nf(t)}}function lp(t){function r(t,r,n,a){var i=t.get(n);i?4&i?4!==a&&l(r,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(r)):i&a?l(r,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(r)):t.set(n,i|a):t.set(n,a)}var n;!function(e){e[e.Getter=1]="Getter",e[e.Setter=2]="Setter",e[e.Method=4]="Method",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(152===c.kind)for(var u=0,_=c.parameters;u<_.length;u++){var d=_[u];e.isParameterPropertyDeclaration(d)&&r(a,d.name,d.name.text,3)}else{var p=32&e.getModifierFlags(c),f=p?i:a,m=c.name&&e.getPropertyNameForPropertyNameNode(c.name);if(m)switch(c.kind){case 153:r(f,c.name,m,1);break;case 154:r(f,c.name,m,2);break;case 149:r(f,c.name,m,3);break;case 151:r(f,c.name,m,4)}}}}function dp(t){for(var r=0,n=t.members;r<n.length;r++){var a=n[r],i=a.name,o=32&e.getModifierFlags(a);if(o&&i){var s=e.getPropertyNameForPropertyNameNode(i);switch(s){case"name":case"length":case"caller":case"arguments":case"prototype":var c=e.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,u=nt(ke(t));l(i,c,s,u)}}}}function pp(t){for(var r=e.createMap(),n=0,a=t.members;n<a.length;n++){var i=a[n];if(148===i.kind){var o=void 0;switch(i.name.kind){case 9:case 8:case 71:o=i.name.text;break;default:continue}r.get(o)?(l(e.getNameOfDeclaration(i.symbol.valueDeclaration),e.Diagnostics.Duplicate_identifier_0,o),l(i.name,e.Diagnostics.Duplicate_identifier_0,o)):r.set(o,!0)}}}function fp(t){if(230===t.kind){var r=ke(t);if(r.declarations.length>0&&r.declarations[0]!==t)return}var n=qn(ke(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 136:i?l(u,e.Diagnostics.Duplicate_string_index_signature):i=!0;break;case 133:a?l(u,e.Diagnostics.Duplicate_number_index_signature):a=!0}}}function mp(e){qg(e)||Wg(e)||zy(e)||py(e.name),hf(e)}function gp(t){Cy(t)||py(t.name),Gp(t),128&e.getModifierFlags(t)&&t.body&&l(t,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(t.name))}function yp(t){function r(t){return!(149!==t.kind||32&e.getModifierFlags(t)||!t.initializer)}_p(t),By(t)||Jy(t),Fm(t.body),Xp(t);var n=ke(t),a=e.getDeclarationOfKind(n,t.kind);if(t===a&&Op(n),!e.nodeIsMissing(t.body)&&o){var i=t.parent;if(e.getClassExtendsHeritageClauseElement(i)){cu(t.parent,i);var s=lu(i),c=_u(t);if(c){s&&l(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 _=t.body.statements,d=void 0,p=0,f=_;p<f.length;p++){var m=f[p];if(210===m.kind&&e.isSuperCall(m.expression)){d=m;break}if(!e.isPrologueDirective(m))break}d||l(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||l(t,e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}}function vp(t){if(o){if(ey(t)||hy(t)||py(t.name),Wp(t),_p(t),153===t.kind&&!e.isInAmbientContext(t)&&e.nodeIsPresent(t.body)&&128&t.flags&&(256&t.flags||l(t.name,e.Diagnostics.A_get_accessor_must_return_a_value)),144===t.name.kind&&r_(t.name),!e.hasDynamicName(t)){var r=153===t.kind?154:153,n=e.getDeclarationOfKind(t.symbol,r);n&&((28&e.getModifierFlags(t))!==(28&e.getModifierFlags(n))&&l(t.name,e.Diagnostics.Getter_and_setter_accessors_do_not_agree_in_visibility),e.hasModifier(t,128)!==e.hasModifier(n,128)&&l(t.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),hp(t,n,Ft,e.Diagnostics.get_and_set_accessor_must_have_the_same_type),hp(t,n,It,e.Diagnostics.get_and_set_accessor_must_have_the_same_this_type))}var a=Rt(ke(t));153===t.kind&&ud(t,a)}Fm(t.body),Xp(t)}function hp(e,t,r,n){var a=r(e),i=r(t);a&&i&&!yo(a,i)&&l(e,n)}function bp(e){Wp(e)}function kp(t,r){for(var n,a,i=Pn(t),o=!0,s=0;s<t.length;s++){var c=on(t[s]);if(c){n||(n=Fn(e.map(r,Li),t,i),a=qi(t,n));var u=n[s];o=o&&So(u,Nr(uo(c,a),u),r[s],e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)}}return o}function xp(t){oy(t,t.typeArguments);var r=pa(t);if(r!==wv){if(t.typeArguments&&(e.forEach(t.typeArguments,Fm),o)){var n=x(t).resolvedSymbol,a=524288&n.flags?k(n).typeParameters:r.target.localTypeParameters;kp(a,t.typeArguments)}16&r.flags&&8&x(t).resolvedSymbol.flags&&l(t,e.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,Xe(r))}}function Cp(e){ma(e)}function Dp(t){if(e.forEach(t.members,Fm),o){var r=xi(t);Gf(r),fp(t),pp(t)}}function Sp(e){Fm(e.elementType)}function Tp(t){var r=Yg(t.elementTypes);r||0!==t.elementTypes.length||Ly(t,e.Diagnostics.A_tuple_type_element_list_cannot_be_empty),e.forEach(t.elementTypes,Fm)}function Ep(t){e.forEach(t.types,Fm)}function Np(t,r){if(!(524288&t.flags))return t;var n=t.objectType,a=t.indexType;if(ko(a,pi(n)))return t;if(Cd(n,540672)&&Dd(a,84)){var i=cn(n);if(i&&xn(i,1))return t}return l(r,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Xe(a),Xe(n)),t}function Ap(e){Np(bi(e),e)}function wp(e){Fm(e.typeParameter),Fm(e.type);var t=ki(e),r=Gr(t);So(r,Rv,e.typeParameter.constraint)}function Pp(t){return 8&e.getModifierFlags(t)&&e.isInAmbientContext(t)}function Fp(t,r){var n=e.getCombinedModifierFlags(t);return 230!==t.parent.kind&&229!==t.parent.kind&&199!==t.parent.kind&&e.isInAmbientContext(t)&&(2&n||(n|=1),n|=2),n&r}function Op(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=Fp(r(t,n),a);e.forEach(t,function(t){var r=Fp(t,a)^c;1&r?l(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):2&r?l(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):24&r?l(e.getNameOfDeclaration(t)||t,e.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):128&r&&l(e.getNameOfDeclaration(t),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&&l(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_optional_or_required)})}}function i(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=(151===t.kind||150===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;l(a,o)}return}if(e.nodeIsPresent(n.body))return void l(a,e.Diagnostics.Function_implementation_name_must_be_0,e.declarationNameToString(t.name))}var s=t.name||t;v?l(s,e.Diagnostics.Constructor_implementation_is_missing):128&e.getModifierFlags(t)?l(s,e.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):l(s,e.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}if(o){for(var s,c,u,_=155,d=0,p=_,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 C=x[k],D=C,S=e.isInAmbientContext(D),T=230===D.parent.kind||163===D.parent.kind||S;if(T&&(u=void 0),228===D.kind||151===D.kind||150===D.kind||152===D.kind){var E=Fp(D,_);d|=E,p&=E,f=f||e.hasQuestionToken(D),m=m&&e.hasQuestionToken(D),e.nodeIsPresent(D.body)&&s?v?b=!0:h=!0:u&&u.parent===D.parent&&u.end!==D.pos&&i(u),e.nodeIsPresent(D.body)?s||(s=D):g=!0,u=D,T||(c=D)}}if(b&&e.forEach(y,function(t){l(t,e.Diagnostics.Multiple_constructor_implementations_are_not_allowed)}),h&&e.forEach(y,function(t){l(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_function_implementation)}),!c||c.body||128&e.getModifierFlags(c)||c.questionToken||i(c),g&&(n(y,s,_,d,p),a(y,s,f,m),s))for(var N=Mn(t),A=On(s),w=0,P=N;w<P.length;w++){var F=P[w];if(!wo(A,F)){l(F.declaration,e.Diagnostics.Overload_signature_is_not_compatible_with_function_implementation);break}}}}function Ip(t){function r(t){switch(t.kind){case 230:return 2097152;case 233:return e.isAmbientModule(t)||0!==e.getModuleInstanceState(t)?5242880:4194304;case 229:case 232:return 3145728;case 237:var n=0,a=te(ke(t));return e.forEach(a.declarations,function(e){n|=r(e)}),n;default:return 1048576}}if(o){var n=t.localSymbol;if((n||(n=ke(t),7340032&n.flags))&&e.getDeclarationOfKind(n,t.kind)===t){for(var a=0,i=0,s=0,c=0,u=n.declarations;c<u.length;c++){var _=u[c],d=r(_),p=Fp(_,513);1&p?512&p?s|=d:a|=d:i|=d}var f=a|i,m=a&i,g=s&f;if(m||g)for(var y=0,v=n.declarations;y<v.length;y++){var _=v[y],d=r(_),h=e.getNameOfDeclaration(_);d&g?l(h,e.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,e.declarationNameToString(h)):d&m&&l(h,e.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,e.declarationNameToString(h))}}}}function Rp(e,t,r){var n=Mp(e,t);return n&&Bp(n,t,r)}function Mp(t,r){if(!ft(t)){var n=t;if(n.promisedTypeOfPromise)return n.promisedTypeOfPromise;if(Vt(t,Sa(!1)))return n.promisedTypeOfPromise=t.typeArguments[0];var a=pt(t,"then");if(!ft(a)){var i=a?hn(a,0):iv;if(0===i.length)return void(r&&l(r,e.Diagnostics.A_promise_must_have_a_then_method));var o=rc(ni(e.map(i,Yl)),524288);if(!ft(o)){var s=hn(o,0);return 0===s.length?void(r&&l(r,e.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)):n.promisedTypeOfPromise=ni(e.map(s,Yl),!0)}}}}function Lp(e,t,r){return Bp(e,t,r)||wv}function Bp(t,r,n){var a=t;if(a.awaitedTypeOfType)return a.awaitedTypeOfType;if(ft(t))return a.awaitedTypeOfType=t;if(65536&t.flags){for(var i=void 0,o=0,s=t.types;o<s.length;o++){var c=s[o];i=e.append(i,Bp(c,r,n))}if(!i)return;return a.awaitedTypeOfType=ni(i,!0)}var u=Mp(t);if(u){if(t.id===u.id||e.indexOf(ab,u.id)>=0)return void(r&&l(r,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));ab.push(t.id);var _=Bp(u,r,n);if(ab.pop(),!_)return;return a.awaitedTypeOfType=_}var d=pt(t,"then");return d&&hn(d,0).length>0?void(r&&(e.Debug.assert(!!n),l(r,n))):a.awaitedTypeOfType=t}function Jp(t){var r=e.getEffectiveReturnTypeNode(t),n=Li(r);if(cv>=2){if(n===wv)return wv;var a=Sa(!0);if(a!==Gv&&!Vt(n,a))return l(r,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),wv}else{if(Kp(r),n===wv)return wv;var i=e.getEntityNameFromTypeNode(r);if(void 0===i)return l(r,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,Xe(n)),wv;var o=oe(i,107455,!0),s=o?jt(o):wv;if(s===wv)return 71===i.kind&&"Promise"===i.text&&Ut(n)===Sa(!1)?l(r,e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):l(r,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(i)),wv;var c=Ea(!0);if(c===qv)return l(r,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(i)),wv;if(!So(s,c,r,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 wv;var u=i&&bm(i),_=S(t.locals,u.text,107455);if(_)return l(_.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,u.text,e.entityNameToString(i)),wv}return Lp(n,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function zp(t){var r=Ll(t),n=Jn(r);if(!(1&n.flags)){var a,i,o=Fl(t);switch(t.parent.kind){case 229:var s=ke(t.parent),c=jt(s);a=ni([c,Kv]);break;case 146:a=Kv,i=e.chainDiagnosticMessages(i,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 149:a=Kv,i=e.chainDiagnosticMessages(i,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 151:case 153:case 154:var u=rg(t.parent),_=La(u);a=ni([_,Kv])}So(n,a,t,o,i)}}function Kp(t){jp(t&&e.getEntityNameFromTypeNode(t))}function jp(e){var t=e&&bm(e),r=t&&N(t,t.text,8388608|(71===e.kind?793064:1920),void 0,void 0);r&&8388608&r.flags&&De(r)&&!bg(te(r))&&ne(r)}function Vp(t){var r=Up(t);r&&e.isEntityName(r)&&jp(r)}function Up(t){if(t)switch(t.kind){case 167:case 166:for(var r=void 0,n=0,a=t.types;n<a.length;n++){var i=a[n],o=Up(i);if(!o)return;if(r){if(!e.isIdentifier(r)||!e.isIdentifier(o)||r.text!==o.text)return}else r=o}return r;case 168:return Up(t.type);case 159:return t.typeName}}function qp(t){var r=e.getEffectiveTypeAnnotationNode(t);return e.isRestParameter(t)?e.getRestParameterElementType(r):r}function Wp(t){if(t.decorators&&e.nodeCanBeDecorated(t)){sv.experimentalDecorators||l(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(jg(r,8),146===t.kind&&jg(r,32),sv.emitDecoratorMetadata)switch(jg(r,16),t.kind){case 229:var n=e.getFirstConstructorWithBody(t);if(n)for(var a=0,i=n.parameters;a<i.length;a++){var o=i[a];Vp(qp(o))}break;case 151:case 153:case 154:for(var s=0,c=t.parameters;s<c.length;s++){var o=c[s];Vp(qp(o))}Vp(e.getEffectiveReturnTypeNode(t));break;case 149:Vp(e.getEffectiveTypeAnnotationNode(t));break;case 146:Vp(qp(t))}e.forEach(t.decorators,zp)}}function Hp(e){o&&(Gp(e),fy(e),pf(e,e.name),uf(e,e.name),_f(e,e.name),ff(e,e.name),mf(e,e.name))}function Gp(t){Wp(t),_p(t);var r=e.getFunctionFlags(t);if(t.name&&144===t.name.kind&&r_(t.name),!e.hasDynamicName(t)){var n=ke(t),a=t.localSymbol||n,i=e.forEach(a.declarations,function(r){return r.kind!==t.kind||e.isSourceFileJavaScript(e.getSourceFileOfNode(r))?void 0:r});t===i&&Op(a),n.parent&&e.getDeclarationOfKind(n,t.kind)===t&&Op(n)}Fm(t.body);var s=e.getEffectiveReturnTypeNode(t);if(0===(1&r)){var c=s&&(2&r?Jp(t):Li(s));ud(t,c)}o&&!s&&(pv&&e.nodeIsMissing(t.body)&&!Pp(t)&&Ds(t,Nv),1&r&&e.nodeIsPresent(t.body)&&Jn(On(t))),Xp(t)}function Xp(e){Th&&Th.push(e)}function Qp(){if(Th)for(var e=0,t=Th;e<t.length;e++){var r=t[e];switch(r.kind){case 265:case 233:af(r);break;case 229:case 199:rf(r),nf(r);break;case 230:nf(r);break;case 207:case 235:case 214:case 215:case 216:Yp(r);break;case 152:case 186:case 228:case 187:case 151:case 153:case 154:r.body&&Yp(r),nf(r);break;case 150:case 155:case 156:case 157:case 160:case 161:nf(r)}}}function Yp(t){230!==t.parent.kind&&_v&&!e.isInAmbientContext(t)&&t.locals.forEach(function(t){if(!t.isReferenced)if(t.valueDeclaration&&146===e.getRootDeclaration(t.valueDeclaration).kind){var r=e.getRootDeclaration(t.valueDeclaration),n=e.getNameOfDeclaration(t.valueDeclaration);!sv.noUnusedParameters||e.isParameterPropertyDeclaration(r)||e.parameterIsThisKeyword(r)||ef(n)||l(n,e.Diagnostics._0_is_declared_but_never_used,t.name)}else sv.noUnusedLocals&&e.forEach(t.declarations,function(r){return $p(e.getNameOfDeclaration(r)||r,t.name)})})}function Zp(t){if(e.isBindingElement(t)&&e.isObjectBindingPattern(t.parent)){var r=e.lastOrUndefined(t.parent.elements);return r!==t&&!!r.dotDotDotToken}return!1}function $p(t,r){if(tf(t)){var n=e.getRootDeclaration(t.parent);if(226===n.kind&&e.isForInOrOfStatement(n.parent.parent))return}Zp(71===t.kind?t.parent:t)||l(t,e.Diagnostics._0_is_declared_but_never_used,r)}function ef(e){return e&&tf(e)}function tf(e){return 71===e.kind&&95===e.text.charCodeAt(0)}function rf(t){if(sv.noUnusedLocals&&!e.isInAmbientContext(t)&&t.members)for(var r=0,n=t.members;r<n.length;r++){var a=n[r];if(151===a.kind||149===a.kind)!a.symbol.isReferenced&&8&e.getModifierFlags(a)&&l(a.name,e.Diagnostics._0_is_declared_but_never_used,a.symbol.name);else if(152===a.kind)for(var i=0,o=a.parameters;i<o.length;i++){var s=o[i];!s.symbol.isReferenced&&8&e.getModifierFlags(s)&&l(s.name,e.Diagnostics.Property_0_is_declared_but_never_used,s.symbol.name)}}}function nf(t){if(sv.noUnusedLocals&&!e.isInAmbientContext(t)&&t.typeParameters){var r=ke(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];be(o.symbol).isReferenced||l(o.name,e.Diagnostics._0_is_declared_but_never_used,o.symbol.name)}}}function af(t){sv.noUnusedLocals&&!e.isInAmbientContext(t)&&t.locals.forEach(function(t){if(!t.isReferenced&&!t.exportSymbol)for(var r=0,n=t.declarations;r<n.length;r++){var a=n[r];e.isAmbientModule(a)||$p(e.getNameOfDeclaration(a),t.name)}})}function of(t){207===t.kind&&Uy(t),e.forEach(t.statements,Fm),t.locals&&Xp(t)}function sf(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===vv.name&&l(t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function cf(t,r,n){if(!r||r.text!==n)return!1;if(149===t.kind||148===t.kind||151===t.kind||150===t.kind||153===t.kind||154===t.kind)return!1;if(e.isInAmbientContext(t))return!1;var a=e.getRootDeclaration(t);return 146!==a.kind||!e.nodeIsMissing(a.parent.body)}function uf(e,t){cf(e,t,"_this")&&rb.push(e)}function _f(e,t){cf(e,t,"_newTarget")&&nb.push(e)}function lf(t){e.findAncestor(t,function(r){if(4&Sg(r)){var n=71!==t.kind;return n?l(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):l(t,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0}})}function df(t){e.findAncestor(t,function(r){if(8&Sg(r)){var n=71!==t.kind;return n?l(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):l(t,e.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0}})}function pf(t,r){if(cf(t,r,"_super")){var n=e.getContainingClass(t);if(n&&!e.isInAmbientContext(n)&&e.getClassExtendsHeritageClauseElement(n)){var a=71!==t.kind;a?l(t,e.Diagnostics.Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference):l(t,e.Diagnostics.Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference)}}}function ff(t,r){if(!(uv>=e.ModuleKind.ES2015)&&(cf(t,r,"require")||cf(t,r,"exports"))&&(233!==t.kind||1===e.getModuleInstanceState(t))){var n=lt(t);265===n.kind&&e.isExternalOrCommonJsModule(n)&&l(r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(r),e.declarationNameToString(r))}}function mf(t,r){if(!(cv>=4)&&cf(t,r,"Promise")&&(233!==t.kind||1===e.getModuleInstanceState(t))){var n=lt(t);265===n.kind&&e.isExternalOrCommonJsModule(n)&&1024&n.flags&&l(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 gf(t){if(0===(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(226!==t.kind||t.initializer)){var r=ke(t);if(1&r.flags){var n=N(t,t.name.text,3,void 0,void 0);if(n&&n!==r&&2&n.flags&&3&L_(n)){var a=e.getAncestor(n.valueDeclaration,227),i=208===a.parent.kind&&a.parent.parent?a.parent.parent:void 0,o=i&&(207===i.kind&&e.isFunctionLike(i.parent)||234===i.kind||233===i.kind||265===i.kind);if(!o){var s=He(n);l(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,s,s)}}}}}function yf(t){function r(a){if(!e.isTypeNode(a)&&!e.isDeclarationName(a)){if(179===a.kind)return r(a.expression);if(71!==a.kind)return e.forEachChild(a,r);var i=N(a,a.text,8496063,void 0,void 0);if(i&&i!==Tv&&i.valueDeclaration){if(i.valueDeclaration===t)return void l(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(146===i.valueDeclaration.kind||176===i.valueDeclaration.kind){if(i.valueDeclaration.pos<t.pos)return;if(e.findAncestor(a,function(r){return r===t.initializer?"quit":e.isFunctionLike(r.parent)||149===r.parent.kind&&!e.hasModifier(r.parent,32)&&e.isClassLike(r.parent.parent)}))return}l(a,e.Diagnostics.Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(t.name),e.declarationNameToString(a))}}}}if(146===e.getRootDeclaration(t).kind){var n=e.getContainingFunction(t);r(t.initializer)}}function vf(e){return e===Av?Nv:e===sh?oh:e}function hf(t){if(Wp(t),Fm(t.type),144===t.name.kind&&(r_(t.name),t.initializer&&Wd(t.initializer)),176===t.kind){174===t.parent.kind&&cv<5&&jg(t,4),t.propertyName&&144===t.propertyName.kind&&r_(t.propertyName);var r=t.parent.parent,n=mt(r),a=t.propertyName||t.name,i=yn(n,e.getTextOfPropertyName(a));X_(i),r.initializer&&i&&J_(r,r.initializer,n,i)}if(e.isBindingPattern(t.name)&&(175===t.name.kind&&cv<2&&sv.downlevelIteration&&jg(t,512),e.forEach(t.name.elements,Fm)),t.initializer&&146===e.getRootDeclaration(t).kind&&e.nodeIsMissing(e.getContainingFunction(t).body))return void l(t,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);if(e.isBindingPattern(t.name))return void(t.initializer&&215!==t.parent.parent.kind&&(So(Wd(t.initializer),At(t),t,void 0),yf(t)));var o=ke(t),s=vf(Pt(o));if(t===o.valueDeclaration)t.initializer&&215!==t.parent.parent.kind&&(So(Wd(t.initializer),s,t,void 0),yf(t));else{var c=vf(At(t));s===wv||c===wv||yo(s,c)||l(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),Xe(s),Xe(c)),t.initializer&&So(Wd(t.initializer),c,t,void 0),bf(t,o.valueDeclaration)||(l(e.getNameOfDeclaration(o.valueDeclaration),e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name)),l(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name)))}149!==t.kind&&148!==t.kind&&(Ip(t),226!==t.kind&&176!==t.kind||gf(t),pf(t,t.name),uf(t,t.name),_f(t,t.name),ff(t,t.name),mf(t,t.name))}function bf(t,r){if(146===t.kind&&226===r.kind||226===t.kind&&146===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 kf(e){return Ey(e),hf(e)}function xf(e){return Sy(e),hf(e)}function Cf(t){qg(t)||Wg(t)||wy(t.declarationList)||Fy(t),e.forEach(t.declarationList.declarations,Fm)}function Df(t){if(t.modifiers&&178===t.parent.kind){if(!(2&e.getFunctionFlags(t)))return Ry(t,e.Diagnostics.Modifiers_cannot_appear_here);if(t.modifiers.length>1)return Ry(t,e.Diagnostics.Modifiers_cannot_appear_here)}}function Sf(e){Uy(e),rp(e.expression)}function Tf(t){Uy(t),rp(t.expression),Fm(t.thenStatement),209===t.thenStatement.kind&&l(t.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),Fm(t.elseStatement)}function Ef(e){Uy(e),Fm(e.statement),rp(e.expression)}function Nf(e){Uy(e),rp(e.expression),Fm(e.statement)}function Af(t){Uy(t)||t.initializer&&227===t.initializer.kind&&wy(t.initializer),t.initializer&&(227===t.initializer.kind?e.forEach(t.initializer.declarations,kf):rp(t.initializer)),t.condition&&rp(t.condition),t.incrementor&&rp(t.incrementor),Fm(t.statement),t.locals&&Xp(t)}function wf(t){if(vy(t),216===t.kind)if(t.awaitModifier){var r=e.getFunctionFlags(e.getContainingFunction(t));2===(6&r)&&cv<5&&jg(t,16384)}else sv.downlevelIteration&&cv<2&&jg(t,256);if(227===t.initializer.kind)Ff(t);else{var n=t.initializer,a=Of(t.expression,t.awaitModifier);if(177===n.kind||178===n.kind)Od(n,a||wv);else{var i=rp(n);gd(n,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access),a&&So(a,i,n,void 0)}}Fm(t.statement),t.locals&&Xp(t)}function Pf(t){vy(t);var r=z_(t.expression);if(227===t.initializer.kind){var n=t.initializer.declarations[0];n&&e.isBindingPattern(n.name)&&l(n.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),Ff(t)}else{var a=t.initializer,i=rp(a);177===a.kind||178===a.kind?l(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):ko(fi(r),i)?gd(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access):l(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}$u(r,17350656)||l(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),Fm(t.statement),t.locals&&Xp(t)}function Ff(e){var t=e.initializer;if(t.declarations.length>=1){var r=t.declarations[0];kf(r)}}function Of(e,t){var r=z_(e);return If(r,e,!0,void 0!==t)}function If(e,t,r,n){return ft(e)?e:Rf(e,t,r,n,!0)||Nv}function Rf(t,r,n,a,i){var o=cv>=2,s=!o&&sv.downlevelIteration;if(o||s||a){var c=Mf(t,o?r:void 0,a,!0,i);if(c||o)return c}var u=t,_=!1,d=!1;if(n){if(65536&u.flags){var p=t.types,f=e.filter(p,function(e){return!(262178&e.flags)});f!==p&&(u=ni(f,!0))}else 262178&u.flags&&(u=jv);if(d=u!==t,d&&(cv<1&&r&&(l(r,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),_=!0),8192&u.flags))return Rv}if(!ts(u)){if(r&&!_){var m=!n||d?s?e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:e.Diagnostics.Type_0_is_not_an_array_type:s?e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type;l(r,m,Xe(u))}return d?Rv:void 0}var g=Cn(u,1);return d&&g?262178&g.flags?Rv:ni([g,Rv],!0):g}function Mf(t,r,n,a,i){function o(t){var o=t;if(n){if(o.iteratedTypeOfAsyncIterable)return o.iteratedTypeOfAsyncIterable;if(Vt(t,Na(!1))||Vt(t,wa(!1)))return o.iteratedTypeOfAsyncIterable=t.typeArguments[0]}if(a){if(o.iteratedTypeOfIterable)return o.iteratedTypeOfIterable;if(Vt(t,Pa(!1))||Vt(t,Oa(!1)))return o.iteratedTypeOfIterable=t.typeArguments[0]}var s=n&&pt(t,e.getPropertyNameForKnownSymbolName("asyncIterator")),c=s||a&&pt(t,e.getPropertyNameForKnownSymbolName("iterator"));if(!ft(c)){var u=c&&hn(c,0);if(!e.some(u))return void(r&&(l(r,n?e.Diagnostics.Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator),r=void 0));var _=ni(e.map(u,Jn),!0),d=Lf(_,r,!!s);return i&&r&&d&&So(t,s?Ba(d):za(d),r),s?o.iteratedTypeOfAsyncIterable=d:o.iteratedTypeOfIterable=d}}if(!ft(t))return Ac(t,o)}function Lf(t,r,n){if(!ft(t)){var a=t;if(n?a.iteratedTypeOfAsyncIterator:a.iteratedTypeOfIterator)return n?a.iteratedTypeOfAsyncIterator:a.iteratedTypeOfIterator;var i=n?Aa:Fa;if(Vt(t,i(!1)))return n?a.iteratedTypeOfAsyncIterator=t.typeArguments[0]:a.iteratedTypeOfIterator=t.typeArguments[0];var o=pt(t,"next");if(!ft(o)){var s=o?hn(o,0):iv;if(0===s.length)return void(r&&l(r,n?e.Diagnostics.An_async_iterator_must_have_a_next_method:e.Diagnostics.An_iterator_must_have_a_next_method));var c=ni(e.map(s,Jn),!0);if(!(ft(c)||n&&(c=Rp(c,r,e.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property),ft(c)))){var u=c&&pt(c,"value");return u?n?a.iteratedTypeOfAsyncIterator=u:a.iteratedTypeOfIterator=u:void(r&&l(r,n?e.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:e.Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property))}}}}function Bf(e,t){if(!ft(e))return Mf(e,void 0,t,!t,!1)||Lf(e,void 0,t)}function Jf(e){Uy(e)||Dy(e)}function zf(t){return 153===t.kind&&void 0!==e.getEffectiveSetAccessorTypeAnnotationNode(e.getDeclarationOfKind(t.symbol,154))}function Kf(t,r){var n=2===(3&e.getFunctionFlags(t))?Mp(r):r;return n&&Cd(n,1025)}function jf(t){if(!Uy(t)){var r=e.getContainingFunction(t);r||Ry(t,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body)}var n=e.getContainingFunction(t);if(n){var a=On(n),i=Jn(a);if(dv||t.expression||8192&i.flags){var o=t.expression?Wd(t.expression):Pv,s=e.getFunctionFlags(n);if(1&s)return;if(154===n.kind)t.expression&&l(t,e.Diagnostics.Setters_cannot_return_a_value);else if(152===n.kind)t.expression&&!So(o,i,t)&&l(t,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(e.getEffectiveReturnTypeNode(n)||zf(n))if(2&s){var c=Mp(i),u=Lp(o,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);c&&So(u,c,t)}else So(o,i,t)}else 152!==n.kind&&sv.noImplicitReturns&&!Kf(n,i)&&l(t,e.Diagnostics.Not_all_code_paths_return_a_value)}}function Vf(t){Uy(t)||16384&t.flags&&Ry(t,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),rp(t.expression);var r=e.getSourceFileOfNode(t);if(!Iy(r)){var n=e.getSpanOfTokenAtPosition(r,t.pos).start,a=t.statement.pos;My(r,n,a-n,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function Uf(t){Uy(t);var r,n=!1,a=rp(t.expression),i=as(a);e.forEach(t.caseBlock.clauses,function(s){if(258===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;My(c,u,_-u,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),n=!0}if(o&&257===s.kind){var l=s,d=rp(l.expression),p=as(d),f=a;p&&i||(d=p?is(d):d,f=is(a)),Md(f,d)||To(d,f,l.expression,void 0)}e.forEach(s.statements,Fm)}),t.caseBlock.locals&&Xp(t.caseBlock)}function qf(t){Uy(t)||e.findAncestor(t.parent,function(r){if(e.isFunctionLike(r))return"quit";if(222===r.kind&&r.label.text===t.label.text){var n=e.getSourceFileOfNode(t);return Ly(t.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNodeFromSourceText(n.text,t.label)),!0}}),Fm(t.statement)}function Wf(t){Uy(t)||void 0===t.expression&&Wy(t,e.Diagnostics.Line_break_not_permitted_here),t.expression&&rp(t.expression)}function Hf(t){Uy(t),of(t.tryBlock);var r=t.catchClause;if(r){if(r.variableDeclaration)if(r.variableDeclaration.type)Ry(r.variableDeclaration.type,e.Diagnostics.Catch_clause_variable_cannot_have_a_type_annotation);else if(r.variableDeclaration.initializer)Ry(r.variableDeclaration.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var n=r.block.locals;n&&e.forEachKey(r.locals,function(t){var r=n.get(t);r&&0!==(2&r.flags)&&Ly(r.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,t)})}of(r.block)}t.finallyBlock&&of(t.finallyBlock)}function Gf(t){function r(t,r,n,a,i,o){if(i){var s=t.valueDeclaration;if(1!==o||(s?Yu(e.getNameOfDeclaration(s)):t_(t.name))){var c;if(!s||194!==s.kind&&144!==e.getNameOfDeclaration(s).kind&&t.parent!==n.symbol){if(a)c=a;else if(2&C(n)){var u=e.forEach(nr(n),function(e){return en(e,t.name)&&Cn(e,o)});c=u?void 0:n.symbol.declarations[0]}}else c=s;if(c&&!ko(r,i)){var _=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;
l(c,_,He(t),Xe(r),Xe(i))}}}}var n=Wn(t.symbol,1),a=Wn(t.symbol,0),i=Cn(t,0),o=Cn(t,1);if((i||o)&&(e.forEach($r(t),function(e){var s=jt(e);r(e,s,t,a,i,0),r(e,s,t,n,o,1)}),1&C(t)&&e.isClassLike(t.symbol.valueDeclaration)))for(var s=t.symbol.valueDeclaration,c=0,u=s.members;c<u.length;c++){var _=u[c];if(!(32&e.getModifierFlags(_))&&e.hasDynamicName(_)){var d=jt(_.symbol);r(_.symbol,d,t,a,i,0),r(_.symbol,d,t,n,o,1)}}var p;if(i&&o&&(p=n||a,!p&&2&C(t))){var f=e.forEach(nr(t),function(e){return Cn(e,0)&&Cn(e,1)});p=f?void 0:t.symbol.declarations[0]}p&&!ko(o,i)&&l(p,e.Diagnostics.Numeric_index_type_0_is_not_assignable_to_string_index_type_1,Xe(o),Xe(i))}function Xf(e,t){switch(e.text){case"any":case"number":case"boolean":case"string":case"symbol":case"void":case"object":l(e,t,e.text)}}function Qf(t){if(t)for(var r=!1,n=0;n<t.length;n++){var a=t[n];if(ap(a),o){a["default"]?r=!0:r&&l(a,e.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var i=0;i<n;i++)t[i].symbol===a.symbol&&l(a.name,e.Diagnostics.Duplicate_identifier_0,e.declarationNameToString(a.name))}}}function Yf(t){if(1!==t.declarations.length){var r=k(t);if(!r.typeParametersChecked){r.typeParametersChecked=!0;var n=om(t);if(n.length<=1)return;var a=vr(t);if(!Zf(n,a.localTypeParameters))for(var i=He(t),o=0,s=n;o<s.length;o++){var c=s[o];l(c.name,e.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,i)}}}}function Zf(t,r){for(var n=e.length(r),a=Pn(r),i=0,o=t;i<o.length;i++){var s=o[i],c=e.length(s.typeParameters);if(c<a||c>n)return!1;for(var u=0;u<c;u++){var _=s.typeParameters[u],l=r[u];if(_.name.text!==l.symbol.name)return!1;var d=_.constraint&&Li(_.constraint),p=Qn(l);if((d||p)&&(!d||!p||!yo(d,p)))return!1;var f=_["default"]&&Li(_["default"]),m=dn(l);if(f&&m&&!yo(f,m))return!1}}return!0}function $f(e){return rm(e),Om(e),jt(ke(e))}function em(t){e.forEach(t.members,Fm),Xp(t)}function tm(t){t.name||512&e.getModifierFlags(t)||Ry(t,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),rm(t),e.forEach(t.members,Fm),Xp(t)}function rm(t){ty(t),Wp(t),t.name&&(Xf(t.name,e.Diagnostics.Class_name_cannot_be_0),uf(t,t.name),_f(t,t.name),ff(t,t.name),mf(t,t.name)),Qf(t.typeParameters),Ip(t);var r=ke(t),n=vr(r),a=Nr(n),i=jt(r);Yf(r),lp(t),e.isInAmbientContext(t)||dp(t);var s=e.getClassExtendsHeritageClauseElement(t);if(s){cv<2&&jg(s.parent,1);var c=nr(n);if(c.length&&o){var u=c[0],_=rr(n),d=pn(_);if(nm(d,s),Fm(s.expression),e.some(s.typeArguments)){e.forEach(s.typeArguments,Fm);for(var p=0,f=er(d,s.typeArguments,s);p<f.length;p++){var m=f[p];if(!kp(m.typeParameters,s.typeArguments))break}}if(So(a,Nr(u,n.thisType),t.name||t,e.Diagnostics.Class_0_incorrectly_extends_base_class_1),So(i,go(d),t.name||t,e.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1),540672&_.flags&&!Yt(i)&&l(t.name||t,e.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any),!(d.symbol&&32&d.symbol.flags||540672&_.flags)){var g=tr(d,s.typeArguments,s);e.forEach(g,function(e){return Jn(e)!==u})&&l(s.expression,e.Diagnostics.Base_constructors_must_all_have_the_same_return_type)}sm(n,u)}}var y=e.getClassImplementsHeritageClauseElements(t);if(y)for(var v=0,h=y;v<h.length;v++){var b=h[v];if(e.isEntityNameExpression(b.expression)||l(b.expression,e.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),xp(b),o){var k=Li(b);k!==wv&&(or(k)?So(a,Nr(k,n.thisType),t.name||t,e.Diagnostics.Class_0_incorrectly_implements_interface_1):l(b,e.Diagnostics.A_class_may_only_implement_another_class_or_interface))}}o&&(Gf(n),fp(t))}function nm(t,r){var n=hn(t,1);if(n.length){var a=n[0].declaration;if(a&&8&e.getModifierFlags(a)){var i=im(t.symbol);Gm(r,i)||l(r,e.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,ie(t.symbol))}}}function am(t){return 1&e.getCheckFlags(t)?t.target:t}function im(t){return e.forEach(t.declarations,function(t){return e.isClassLike(t)?t:void 0})}function om(t){return e.filter(t.declarations,function(e){return 229===e.kind||230===e.kind})}function sm(t,r){for(var n=rn(r),a=0,i=n;a<i.length;a++){var o=i[a],s=am(o);if(!(16777216&s.flags)){var c=am(en(t,s.name)),u=e.getDeclarationModifierFlagsFromSymbol(s);if(e.Debug.assert(!!c,"derived should point to something, even if it is the base class' declaration."),c)if(c===s){var _=im(t.symbol);!(128&u)||_&&128&e.getModifierFlags(_)||(199===_.kind?l(_,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,He(o),Xe(r)):l(_,e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Xe(t),He(o),Xe(r)))}else{var d=e.getDeclarationModifierFlagsFromSymbol(c);if(8&u||8&d)continue;if(B_(s)&&B_(c)||98308&s.flags&&98308&c.flags)continue;var p=void 0;p=B_(s)?98304&c.flags?e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_property:4&s.flags?e.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:e.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function,l(e.getNameOfDeclaration(c.valueDeclaration)||c.valueDeclaration,p,Xe(r),He(s),Xe(t))}}}}function cm(t,r){var n=nr(t);if(n.length<2)return!0;var a=e.createMap();e.forEach(Er(t).declaredProperties,function(e){a.set(e.name,{prop:e,containingType:t})});for(var i=!0,o=0,s=n;o<s.length;o++)for(var c=s[o],u=rn(Nr(c,t.thisType)),_=0,l=u;_<l.length;_++){var d=l[_],p=a.get(d.name);if(p){var f=p.containingType!==t;if(f&&!Wo(p.prop,d)){i=!1;var m=Xe(p.containingType),g=Xe(c),y=e.chainDiagnosticMessages(void 0,e.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,He(d),m,g);y=e.chainDiagnosticMessages(y,e.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,Xe(t),m,g),ib.add(e.createDiagnosticForNodeFromMessageChain(r,y))}}else a.set(d.name,{prop:d,containingType:c})}return i}function um(t){if(qg(t)||Wg(t)||dy(t),Qf(t.typeParameters),o){Xf(t.name,e.Diagnostics.Interface_name_cannot_be_0),Ip(t);var r=ke(t);Yf(r);var n=e.getDeclarationOfKind(r,230);if(t===n){var a=vr(r),i=Nr(a);if(cm(a,t.name)){for(var s=0,c=nr(a);s<c.length;s++){var u=c[s];So(i,Nr(u,a.thisType),t.name,e.Diagnostics.Interface_0_incorrectly_extends_interface_1)}Gf(a)}}pp(t)}e.forEach(e.getInterfaceBaseTypeNodes(t),function(t){e.isEntityNameExpression(t.expression)||l(t.expression,e.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),xp(t)}),e.forEach(t.members,Fm),o&&(fp(t),Xp(t))}function _m(t){qg(t)||Wg(t),Xf(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),Qf(t.typeParameters),Fm(t.type)}function lm(e){var t=x(e);if(!(16384&t.flags)){t.flags|=16384;for(var r=0,n=0,a=e.members;n<a.length;n++){var i=a[n],o=dm(i,r);x(i).enumMemberValue=o,r="number"==typeof o?o+1:void 0}}}function dm(t,r){if(gt(t.name))l(t.name,e.Diagnostics.Computed_property_names_are_not_allowed_in_enums);else{var n=e.getTextOfPropertyName(t.name);t_(n)&&!e_(n)&&l(t.name,e.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}if(t.initializer)return pm(t);if(!e.isInAmbientContext(t.parent)||e.isConst(t.parent))return void 0!==r?r:void l(t.name,e.Diagnostics.Enum_member_must_have_initializer)}function pm(t){function r(a){switch(a.kind){case 192:var i=r(a.operand);if("number"==typeof i)switch(a.operator){case 37:return i;case 38:return-i;case 52:return~i}break;case 194:var o=r(a.left),s=r(a.right);if("number"==typeof o&&"number"==typeof s)switch(a.operatorToken.kind){case 49:return o|s;case 48:return o&s;case 46:return o>>s;case 47:return o>>>s;case 45:return o<<s;case 50:return o^s;case 39:return o*s;case 41:return o/s;case 37:return o+s;case 38:return o-s;case 42:return o%s}break;case 9:return a.text;case 8:return qy(a),+a.text;case 185:return r(a.expression);case 71:return e.nodeIsMissing(a)?0:n(a,ke(t.parent),a.text);case 180:case 179:if(fm(a)){var c=ep(a.expression);if(c.symbol&&384&c.symbol.flags){var u=179===a.kind?a.name.text:a.argumentExpression.text;return n(a,c.symbol,u)}}}}function n(r,n,a){var i=n.exports.get(a);if(i){var o=i.valueDeclaration;if(o!==t)return E(o,t)?x(o).enumMemberValue:(l(r,e.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0)}}var a=dr(ke(t.parent)),i=e.isConst(t.parent),o=t.initializer,s=1!==a||lr(t)?r(o):void 0;if(void 0!==s)i&&"number"==typeof s&&!isFinite(s)&&l(o,isNaN(s)?e.Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:e.Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value);else{if(1===a)return l(o,e.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;i?l(o,e.Diagnostics.In_const_enum_declarations_member_initializer_must_be_constant_expression):e.isInAmbientContext(t.parent)?l(o,e.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):So(rp(o),vr(ke(t.parent)),o,void 0)}return s}function fm(e){return 71===e.kind||179===e.kind&&fm(e.expression)||180===e.kind&&fm(e.expression)&&9===e.argumentExpression.kind}function mm(t){if(o){qg(t)||Wg(t),Xf(t.name,e.Diagnostics.Enum_name_cannot_be_0),uf(t,t.name),_f(t,t.name),ff(t,t.name),mf(t,t.name),Ip(t),lm(t);var r=e.isConst(t);sv.isolatedModules&&r&&e.isInAmbientContext(t)&&l(t.name,e.Diagnostics.Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided);var n=ke(t),a=e.getDeclarationOfKind(n,t.kind);if(t===a){n.declarations.length>1&&e.forEach(n.declarations,function(t){e.isConstEnumDeclaration(t)!==r&&l(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)});var i=!1;e.forEach(n.declarations,function(t){if(232!==t.kind)return!1;var r=t;if(!r.members.length)return!1;var n=r.members[0];n.initializer||(i?l(n.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):i=!0)})}}}function gm(t){for(var r=t.declarations,n=0,a=r;n<a.length;n++){var i=a[n];if((229===i.kind||228===i.kind&&e.nodeIsPresent(i.body))&&!e.isInAmbientContext(i))return i}}function ym(t,r){var n=e.getEnclosingBlockScopeContainer(t),a=e.getEnclosingBlockScopeContainer(r);return D(n)?D(a):!D(a)&&n===a}function vm(t){if(o){var r=e.isGlobalScopeAugmentation(t),n=e.isInAmbientContext(t);r&&!n&&l(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),i=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(Em(t,i))return;qg(t)||Wg(t)||n||9!==t.name.kind||Ly(t.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(t.name)&&(uf(t,t.name),ff(t,t.name),mf(t,t.name)),Ip(t);var s=ke(t);if(512&s.flags&&s.declarations.length>1&&!n&&e.isInstantiatedModule(t,sv.preserveConstEnums||sv.isolatedModules)){var c=gm(s);c&&(e.getSourceFileOfNode(t)!==e.getSourceFileOfNode(c)?l(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&&l(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,229);u&&ym(t,u)&&(x(t).flags|=32768)}if(a)if(e.isExternalModuleAugmentation(t)){var _=r||134217728&ke(t).flags;if(_&&t.body)for(var d=0,p=t.body.statements;d<p.length;d++){var f=p[d];hm(f,r)}}else D(t.parent)?r?l(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)&&l(t.name,e.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):r?l(t.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):l(t.name,e.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}t.body&&(Fm(t.body),e.isGlobalScopeAugmentation(t)||Xp(t))}function hm(t,r){switch(t.kind){case 208:for(var n=0,a=t.declarationList.declarations;n<a.length;n++){var i=a[n];hm(i,r)}break;case 243:case 244:Ry(t,e.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 237:case 238:Ry(t,e.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 176:case 226:var o=t.name;if(e.isBindingPattern(o)){for(var s=0,c=o.elements;s<c.length;s++){var u=c[s];hm(u,r)}break}case 229:case 232:case 228:case 230:case 233:case 231:if(r)return;var _=ke(t);if(_){var l=!(134217728&_.flags);l||(l=e.isExternalModuleAugmentation(_.parent.declarations[0]))}}}function bm(e){switch(e.kind){case 71:return e;case 143:do e=e.left;while(71!==e.kind);return e;case 179:do e=e.expression;while(71!==e.kind);return e}}function km(t){var r=e.getExternalModuleName(t);if(!e.nodeIsMissing(r)&&9!==r.kind)return l(r,e.Diagnostics.String_literal_expected),!1;var n=234===t.parent.kind&&e.isAmbientModule(t.parent.parent);return 265===t.parent.kind||n?!(n&&e.isExternalModuleNameRelative(r.text)&&!tt(t))||(l(t,e.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1):(l(r,244===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 xm(t){var r=ke(t),n=te(r);if(n!==Tv){var a=(1156031&r.flags?107455:0)|(793064&r.flags?793064:0)|(1920&r.flags?1920:0);if(n.flags&a){var i=246===t.kind?e.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:e.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0;l(t,i,He(r))}!sv.isolatedModules||246!==t.kind||107455&n.flags||e.isInAmbientContext(t)||l(t,e.Diagnostics.Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided)}}function Cm(e){uf(e,e.name),ff(e,e.name),mf(e,e.name),xm(e)}function Dm(t){if(!Em(t,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(qg(t)||Wg(t)||0===e.getModifierFlags(t)||Ry(t,e.Diagnostics.An_import_declaration_cannot_have_modifiers),km(t))){var r=t.importClause;r&&(r.name&&Cm(r),r.namedBindings&&(240===r.namedBindings.kind?Cm(r.namedBindings):e.forEach(r.namedBindings.elements,Cm)))}}function Sm(t){if(!Em(t,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(qg(t)||Wg(t),e.isInternalModuleImportEqualsDeclaration(t)||km(t)))if(Cm(t),1&e.getModifierFlags(t)&&re(t),e.isInternalModuleImportEqualsDeclaration(t)){var r=te(ke(t));if(r!==Tv){if(107455&r.flags){var n=bm(t.moduleReference);1920&oe(n,108479).flags||l(n,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(n))}793064&r.flags&&Xf(t.name,e.Diagnostics.Import_name_cannot_be_0)}}else uv!==e.ModuleKind.ES2015||e.isInAmbientContext(t)||Ly(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 Tm(t){if(!Em(t,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)&&(qg(t)||Wg(t)||0===e.getModifierFlags(t)||Ry(t,e.Diagnostics.An_export_declaration_cannot_have_modifiers),!t.moduleSpecifier||km(t)))if(t.exportClause){e.forEach(t.exportClause.elements,Nm);var r=234===t.parent.kind&&e.isAmbientModule(t.parent.parent),n=!r&&234===t.parent.kind&&!t.moduleSpecifier&&e.isInAmbientContext(t);265===t.parent.kind||r||n||l(t,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var a=se(t,t.moduleSpecifier);a&&de(a)&&l(t.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,He(a)),uv!==e.ModuleKind.System&&uv!==e.ModuleKind.ES2015&&jg(t,32768)}}function Em(e,t){var r=265===e.parent.kind||234===e.parent.kind||233===e.parent.kind;return r||Ry(e,t),!r}function Nm(t){if(xm(t),!t.parent.parent.moduleSpecifier){var r=t.propertyName||t.name,n=N(r,r.text,9289727,void 0,void 0);n&&(n===yv||D(lt(n.declarations[0])))?l(r,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,r.text):re(t)}}function Am(t){if(!Em(t,e.Diagnostics.An_export_assignment_can_only_be_used_in_a_module)){var r=265===t.parent.kind?t.parent:t.parent.parent;if(233===r.kind&&!e.isAmbientModule(r))return void(t.isExportEquals?l(t,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):l(t,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module));qg(t)||Wg(t)||0===e.getModifierFlags(t)||Ry(t,e.Diagnostics.An_export_assignment_cannot_have_modifiers),71===t.expression.kind?re(t):Wd(t.expression),Pm(r),t.isExportEquals&&!e.isInAmbientContext(t)&&(uv===e.ModuleKind.ES2015?Ly(t,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_export_default_or_another_module_format_instead):uv===e.ModuleKind.System&&Ly(t,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}}function wm(t){return e.forEachEntry(t.exports,function(e,t){return"export="!==t})}function Pm(t){function r(e){return 228!==e.kind&&151!==e.kind||!!e.body}var n=ke(t),a=k(n);if(!a.exportsChecked){var i=n.exports.get("export=");if(i&&wm(n)){var o=z(i)||i.valueDeclaration;tt(o)||l(o,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var s=ye(n);s&&s.forEach(function(t,n){var a=t.declarations,i=t.flags;if("__export"!==n&&!(1984&i)){var o=e.countWhere(a,r);if(!(524288&i&&o<=2)&&o>1)for(var s=0,c=a;s<c.length;s++){var u=c[s];r(u)&&ib.add(e.createDiagnosticForNode(u,e.Diagnostics.Cannot_redeclare_exported_variable_0,n))}}}),a.exportsChecked=!0}}function Fm(e){if(e){var t=e.kind;if(Xy)switch(t){case 233:case 229:case 230:case 228:Xy.throwIfCancellationRequested()}switch(t){case 145:return ap(e);case 146:return ip(e);case 149:case 148:return mp(e);case 160:case 161:case 155:case 156:return _p(e);case 157:return _p(e);case 151:case 150:return gp(e);case 152:return yp(e);case 153:case 154:return vp(e);case 159:return xp(e);case 158:return sp(e);case 162:return Cp(e);case 163:return Dp(e);case 164:return Sp(e);case 165:return Tp(e);case 166:case 167:return Ep(e);case 168:case 170:return Fm(e.type);case 171:return Ap(e);case 172:return wp(e);case 228:return Hp(e);case 207:case 234:return of(e);case 208:return Cf(e);case 210:return Sf(e);case 211:return Tf(e);case 212:return Ef(e);case 213:return Nf(e);case 214:return Af(e);case 215:return Pf(e);case 216:return wf(e);case 217:case 218:return Jf(e);case 219:return jf(e);case 220:return Vf(e);case 221:return Uf(e);case 222:return qf(e);case 223:return Wf(e);case 224:return Hf(e);case 226:return kf(e);case 176:return xf(e);case 229:return tm(e);case 230:return um(e);case 231:return _m(e);case 232:return mm(e);case 233:return vm(e);case 238:return Dm(e);case 237:return Sm(e);case 244:return Tm(e);case 243:return Am(e);case 209:return void Uy(e);case 225:return void Uy(e);case 247:return bp(e)}}}function Om(e){Sh&&Sh.push(e)}function Im(){for(var e=0,t=Sh;e<t.length;e++){var r=t[e];switch(r.kind){case 186:case 187:case 151:case 150:ld(r);break;case 153:case 154:vp(r);break;case 199:em(r)}}}function Rm(t){e.performance.mark("beforeCheck"),Mm(t),e.performance.mark("afterCheck"),e.performance.measure("Check","beforeCheck","afterCheck")}function Mm(t){var r=x(t);if(!(1&r.flags)){if(sv.skipLibCheck&&t.isDeclarationFile||sv.skipDefaultLibCheck&&t.hasNoDefaultLib)return;Vy(t),rb.length=0,nb.length=0,Sh=[],Th=o&&_v?[]:void 0,e.forEach(t.statements,Fm),Im(),e.isExternalModule(t)&&Xp(t),t.isDeclarationFile||Qp(),Sh=void 0,Th=void 0,e.isExternalOrCommonJsModule(t)&&Pm(t),rb.length&&(e.forEach(rb,lf),rb.length=0),nb.length&&(e.forEach(nb,df),nb.length=0),r.flags|=1}}function Lm(e,t){try{return Xy=t,Bm(e)}finally{Xy=void 0}}function Bm(t){if(zm(),t){var r=ib.getGlobalDiagnostics(),a=r.length;Rm(t);var i=ib.getDiagnostics(t.fileName),o=ib.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(),Rm),ib.getDiagnostics()}function Jm(){return zm(),ib.getGlobalDiagnostics()}function zm(){if(!o)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function Km(e){if(e)for(;e.parent;){if(220===e.parent.kind&&e.parent.statement===e)return!0;e=e.parent}return!1}function jm(t,r){function n(){for(;t;){switch(t.locals&&!D(t)&&i(t.locals,r),t.kind){case 265:if(!e.isExternalOrCommonJsModule(t))break;case 233:i(ke(t).exports,8914931&r);break;case 232:i(ke(t).exports,8&r);break;case 199:var n=t.name;n&&a(t.symbol,r);case 229:case 230:32&s||i(ke(t).members,793064&r);break;case 186:var o=t.name;o&&a(t.symbol,r)}e.introducesArgumentsExoticObject(t)&&a(vv,r),s=e.getModifierFlags(t),t=t.parent}i(Mh,r)}function a(e,t){if(e.flags&t){var r=e.name;o.has(r)||o.set(r,e)}}function i(e,t){t&&e.forEach(function(e){a(e,t)})}if(Km(t))return[];var o=e.createMap(),s=0;return n(),Tn(o)}function Vm(e){return 71===e.kind&&Um(e.parent)&&e.parent.name===e}function Um(e){switch(e.kind){case 145:case 229:case 230:case 231:case 232:return!0}}function qm(e){for(var t=e;t.parent&&143===t.parent.kind;)t=t.parent;return t.parent&&(159===t.parent.kind||277===t.parent.kind)}function Wm(e){for(var t=e;t.parent&&179===t.parent.kind;)t=t.parent;return t.parent&&201===t.parent.kind}function Hm(t,r){for(var n;;){if(t=e.getContainingClass(t),!t)break;if(n=r(t))break}return n}function Gm(e,t){return!!Hm(e,function(e){return e===t})}function Xm(e){for(;143===e.parent.kind;)e=e.parent;return 237===e.parent.kind?e.parent.moduleReference===e&&e.parent:243===e.parent.kind?e.parent.expression===e&&e.parent:void 0}function Qm(e){return void 0!==Xm(e)}function Ym(t){var r=e.getSpecialPropertyAssignmentKind(t.parent.parent);switch(r){case 1:case 3:return ke(t.parent);case 4:case 2:case 5:return ke(t.parent.parent)}}function Zm(t){if(e.isDeclarationName(t))return ke(t.parent);if(e.isInJavaScriptFile(t)&&179===t.parent.kind&&t.parent===t.parent.parent.left){var r=Ym(t);if(r)return r}if(243===t.parent.kind&&e.isEntityNameExpression(t))return oe(t,9289727);if(179!==t.kind&&Qm(t)){var n=e.getAncestor(t,237);return e.Debug.assert(void 0!==n),ae(t,!0)}if(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),Wm(t)){var a=0;201===t.parent.kind?(a=793064,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(a|=107455)):a=1920,a|=8388608;var i=oe(t,a);if(i)return i}if(287===t.parent.kind){var o=e.getParameterFromJSDoc(t.parent);return o&&o.symbol}if(145===t.parent.kind&&290===t.parent.parent.kind){e.Debug.assert(!e.isInJavaScriptFile(t));var s=e.getTypeParameterFromJsDoc(t.parent);return s&&s.symbol}if(e.isPartOfExpression(t)){if(e.nodeIsMissing(t))return;if(71===t.kind)return e.isJSXTagName(t)&&u_(t)?p_(t.parent):oe(t,107455,!1,!0);if(179===t.kind){var c=x(t).resolvedSymbol;return c||j_(t),x(t).resolvedSymbol}if(143===t.kind){var c=x(t).resolvedSymbol;return c||V_(t),x(t).resolvedSymbol}}else{if(qm(t)){var a=159===t.parent.kind||277===t.parent.kind?793064:1920;return oe(t,a,!1,!0)}if(253===t.parent.kind)return T_(t.parent)}return 158===t.parent.kind?oe(t,1):void 0}function $m(t){if(265===t.kind)return e.isExternalModule(t)?be(t.symbol):void 0;if(!Km(t)){if(a(t))return ke(t.parent);if(e.isLiteralComputedPropertyDeclarationName(t))return ke(t.parent.parent);if(71===t.kind){if(Qm(t))return Zm(t);if(176===t.parent.kind&&174===t.parent.parent.kind&&t===t.parent.propertyName){var r=rg(t.parent.parent),n=r&&yn(r,t.text);if(n)return n}}switch(t.kind){case 71:case 179:case 143:return Zm(t);case 99:var i=e.getThisContainer(t,!1);if(e.isFunctionLike(i)){var o=On(i);if(o.thisParameter)return o.thisParameter}case 97:var s=e.isPartOfExpression(t)?ep(t):Li(t);return s.symbol;case 169:return Li(t).symbol;case 123:var c=t.parent;if(c&&152===c.kind)return c.parent.symbol;return;case 9:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(238===t.parent.kind||244===t.parent.kind)&&t.parent.moduleSpecifier===t||e.isInJavaScriptFile(t)&&e.isRequireCall(t.parent,!1)||e.isImportCall(t.parent))return se(t,t);case 8:if(180===t.parent.kind&&t.parent.argumentExpression===t){var u=ep(t.parent.expression);if(u===wv)return;var _=pn(u);if(_===wv)return;return yn(_,t.text)}}}}function eg(e){if(e&&262===e.kind)return oe(e.name,8496063)}function tg(e){return e.parent.parent.moduleSpecifier?H(e.parent.parent,e):oe(e.propertyName||e.name,9289727)}function rg(t){if(Km(t))return wv;if(e.isPartOfTypeNode(t)){var r=Li(t);if(r&&e.isExpressionWithTypeArgumentsInClassImplementsClause(t)){var n=e.getContainingClass(t),i=rg(n);r=Nr(r,i.thisType)}return r}if(e.isPartOfExpression(t))return ig(t);if(e.isExpressionWithTypeArgumentsInClassExtendsClause(t)){var o=e.getContainingClass(t),i=vr(ke(o)),s=nr(i)[0];return s&&Nr(s,i.thisType)}if(Um(t)){var c=ke(t);return vr(c)}if(Vm(t)){var c=$m(t);return c&&vr(c)}if(e.isDeclaration(t)){var c=ke(t);return jt(c)}if(a(t)){var c=$m(t);return c&&jt(c)}if(e.isBindingPattern(t))return Ct(t.parent,!0);if(Qm(t)){var c=$m(t),u=c&&vr(c);return u!==wv?u:jt(c)}return wv}function ng(t){if(e.Debug.assert(178===t.kind||177===t.kind),216===t.parent.kind){var r=Of(t.parent.expression,t.parent.awaitModifier);return Od(t,r||wv)}if(194===t.parent.kind){var r=ep(t.parent.right);return Od(t,r||wv)}if(261===t.parent.kind){var n=ng(t.parent.parent);return wd(n||wv,t.parent)}e.Debug.assert(177===t.parent.kind);var a=ng(t.parent),i=If(a||wv,t.parent,!1,!1)||wv;return Fd(t.parent,a,e.indexOf(t.parent.elements,t),i||wv)}function ag(e){var t=ng(e.parent.parent);return t&&yn(t,e.text)}function ig(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),wi(ep(t))}function og(t){var r=ke(t.parent);return 32&e.getModifierFlags(t)?jt(r):vr(r)}function sg(t){t=pn(t);var r=Dr(rn(t));return(hn(t,0).length||hn(t,1).length)&&e.forEach(rn(Zv),function(e){r.has(e.name)||r.set(e.name,e)}),Fe(r)}function cg(t){if(6&e.getCheckFlags(t)){var r=[],n=t.name;return e.forEach(k(t).containingType.types,function(e){var t=yn(e,n);t&&r.push(t)}),r}if(134217728&t.flags){var a=t;if(a.leftSpread)return cg(a.leftSpread).concat(cg(a.rightSpread));if(a.syntheticOrigin)return cg(a.syntheticOrigin);for(var i=void 0,o=t;o=k(o).target;)i=o;if(i)return[i]}return[t]}function ug(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var r=179===t.parent.kind&&t.parent.name===t;return!r&&Rg(t)===vv}return!1}function _g(t){function r(e){return e=ee(e),e&&!!(107455&e.flags)}var n=se(t.parent,t);if(!n||e.isShorthandAmbientModuleSymbol(n))return!0;var a=de(n);n=_e(n);var i=k(n);return void 0===i.exportsSomeValue&&(i.exportsSomeValue=a?!!(107455&n.flags):e.forEachEntry(ye(n),r)),i.exportsSomeValue}function lg(t){var r=t.parent;return r&&e.isModuleOrEnumDeclaration(r)&&t===r.name}function dg(t,r){if(t=e.getParseTreeNode(t,e.isIdentifier)){var n=Rg(t,lg(t));if(n){if(1048576&n.flags){var a=be(n.exportSymbol);if(!r&&944&a.flags)return;n=a}var i=xe(n);if(i){if(512&i.flags&&265===i.valueDeclaration.kind){var o=i.valueDeclaration,s=e.getSourceFileOfNode(t),c=o!==s;return c?void 0:o}return e.findAncestor(t.parent,function(t){return e.isModuleOrEnumDeclaration(t)&&ke(t)===i})}}}}function pg(t){if(t=e.getParseTreeNode(t,e.isIdentifier)){var r=Rg(t);if($(r,107455))return z(r)}}function fg(t){if(418&t.flags){var r=k(t);if(void 0===r.isDeclarationWithCollidingName){var n=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(n)){var a=x(t.valueDeclaration);if(N(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=207===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 mg(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var r=Rg(t);if(r&&fg(r))return r.valueDeclaration}}function gg(t){if(t=e.getParseTreeNode(t,e.isDeclaration)){var r=ke(t);if(r)return fg(r)}return!1}function yg(t){switch(t.kind){case 237:case 239:case 240:case 242:case 246:return hg(ke(t)||Tv);case 244:var r=t.exportClause;return r&&e.forEach(r.elements,yg);case 243:return!t.expression||71!==t.expression.kind||hg(ke(t)||Tv)}return!1}function vg(t){if(t=e.getParseTreeNode(t,e.isImportEqualsDeclaration),void 0===t||265!==t.parent.kind||!e.isInternalModuleImportEqualsDeclaration(t))return!1;var r=hg(ke(t));return r&&t.moduleReference&&!e.nodeIsMissing(t.moduleReference)}function hg(e){var t=te(e);return t===Tv||107455&t.flags&&(sv.preserveConstEnums||!bg(t))}function bg(e){return Td(e)||e.constEnumOnlyModule}function kg(t,r){if(e.isAliasSymbolDeclaration(t)){var n=ke(t);if(n&&k(n).referenced)return!0}return!!r&&e.forEachChild(t,function(e){return kg(e,r)})}function xg(t){if(e.nodeIsPresent(t.body)){var r=ke(t),n=Mn(r);return n.length>1||1===n.length&&n[0].declaration!==t}return!1}function Cg(t){return dv&&!An(t)&&t.initializer&&!(92&e.getModifierFlags(t))}function Dg(t){return dv&&An(t)&&!t.initializer&&!!(92&e.getModifierFlags(t))}function Sg(e){return x(e).flags}function Tg(e){return lm(e.parent),x(e).enumMemberValue}function Eg(e){switch(e.kind){case 264:case 179:case 180:return!0}return!1}function Ng(t){if(264===t.kind)return Tg(t);var r=x(t).resolvedSymbol;return r&&8&r.flags&&e.isConstEnumDeclaration(r.valueDeclaration.parent)?Tg(r.valueDeclaration):void 0}function Ag(e){return 32768&e.flags&&hn(e,0).length>0}function wg(t,r){var n=oe(t,107455,!0,!1,r),a=oe(t,793064,!0,!1,r);if(n&&n===a){var i=Ta(!1);if(i&&n===i)return e.TypeReferenceSerializationKind.Promise;var o=jt(n);if(o&&Zt(o))return e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!a)return e.TypeReferenceSerializationKind.ObjectType;var s=vr(a);return s===wv?e.TypeReferenceSerializationKind.Unknown:1&s.flags?e.TypeReferenceSerializationKind.ObjectType:Dd(s,15360)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:Dd(s,136)?e.TypeReferenceSerializationKind.BooleanType:Dd(s,84)?e.TypeReferenceSerializationKind.NumberLikeType:Dd(s,262178)?e.TypeReferenceSerializationKind.StringLikeType:ss(s)?e.TypeReferenceSerializationKind.ArrayLikeType:Dd(s,512)?e.TypeReferenceSerializationKind.ESSymbolType:Ag(s)?e.TypeReferenceSerializationKind.TypeWithCallSignature:es(s)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function Pg(e,t,r,n){var a=ke(e),i=!a||133120&a.flags?wv:os(jt(a));8192&r&&(i=ps(i,2048)),at().buildTypeDisplay(i,n,t,r)}function Fg(e,t,r,n){var a=On(e);at().buildTypeDisplay(Jn(a),n,t,r)}function Og(e,t,r,n){var a=xs(ig(e));at().buildTypeDisplay(a,n,t,r)}function Ig(e){return Mh.has(e)}function Rg(t,r){var n=x(t).resolvedSymbol;if(n)return n;var a=t;if(r){var i=t.parent;e.isDeclaration(i)&&t===i.name&&(a=lt(i))}return N(a,t.text,9544639,void 0,void 0)}function Mg(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var r=Rg(t);if(r)return Ce(r).valueDeclaration}}function Lg(t){if(e.isConst(t)){var r=jt(ke(t));return!!(96&r.flags&&1048576&r.flags)}return!1}function Bg(e,t){var r=jt(ke(e));t.writeStringLiteral(rt(r))}function Jg(){function t(e){if(i){var t=179===e.kind||71===e.kind&&Ks(e)?1156031:794600,n=oe(e,t,!0);
return n&&n!==Tv?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=xe(r);if(!n)break;r=n}if(r.valueDeclaration&&265===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();return o&&(i=e.createFileMap(),o.forEach(function(e,t){if(e){var r=n.getSourceFile(e.resolvedFileName);i.set(r.path,t)}})),{getReferencedExportContainer:dg,getReferencedImportDeclaration:pg,getReferencedDeclarationWithCollidingName:mg,isDeclarationWithCollidingName:gg,isValueAliasDeclaration:function(t){return t=e.getParseTreeNode(t),!t||yg(t)},hasGlobalName:Ig,isReferencedAliasDeclaration:function(t,r){return t=e.getParseTreeNode(t),!t||kg(t,r)},getNodeCheckFlags:function(t){return t=e.getParseTreeNode(t),t?Sg(t):void 0},isTopLevelValueImportEqualsWithEntityName:vg,isDeclarationVisible:it,isImplementationOfOverload:xg,isRequiredInitializedParameter:Cg,isOptionalUninitializedParameterProperty:Dg,writeTypeOfDeclaration:Pg,writeReturnTypeOfSignatureDeclaration:Fg,writeTypeOfExpression:Og,isSymbolAccessible:ze,isEntityNameVisible:Ve,getConstantValue:function(t){return t=e.getParseTreeNode(t,Eg),t?Ng(t):void 0},collectLinkedAliases:ot,getReferencedValueDeclaration:Mg,getTypeReferenceSerializationKind:wg,isOptionalParameter:An,moduleExportsSomeValue:_g,isArgumentsLocalBinding:ug,getExternalModuleFileFromDeclaration:zg,getTypeReferenceDirectivesForEntityName:t,getTypeReferenceDirectivesForSymbol:r,isLiteralConstDeclaration:Lg,writeLiteralConstValue:Bg,getJsxFactoryEntity:function(){return sb}}}function zg(t){var r=e.getExternalModuleName(t),n=ce(r,r,void 0);if(n)return e.getDeclarationOfKind(n,265)}function Kg(){for(var t=0,r=n.getSourceFiles();t<r.length;t++){var a=r[t];e.bindSourceFile(a,sv)}for(var i,o=0,s=n.getSourceFiles();o<s.length;o++){var a=s[o];if(e.isExternalOrCommonJsModule(a)||v(Mh,a.locals),a.patternAmbientModules&&a.patternAmbientModules.length&&(Qv=e.concatenate(Qv,a.patternAmbientModules)),a.moduleAugmentations.length&&(i||(i=[])).push(a.moduleAugmentations),a.symbol&&a.symbol.globalExports){var c=a.symbol.globalExports;c.forEach(function(e,t){Mh.has(t)||Mh.set(t,e)})}}if(i)for(var u=0,_=i;u<_.length;u++)for(var l=_[u],d=0,p=l;d<p.length;d++){var f=p[d];h(f)}b(Mh,Tb,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0),k(yv).type=Fv,k(vv).type=ba("IArguments",0,!0),k(Tv).type=wv,$v=ba("Array",1,!0),Yv=ba("Object",0,!0),Zv=ba("Function",0,!0),th=ba("String",0,!0),rh=ba("Number",0,!0),nh=ba("Boolean",0,!0),ah=ba("RegExp",0,!0),oh=ja(Nv),sh=ja(Av),eh=Ia("ReadonlyArray",1),ch=eh?Ma(eh,[Nv]):oh,ih=Ia("ThisType",1)}function jg(t,r){if((Qy&r)!==r&&sv.importHelpers){var n=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(n,sv)&&!e.isInAmbientContext(t)){var a=Ug(n,t);if(a!==Tv)for(var i=r&~Qy,o=1;o<=32768;o<<=1)if(i&o){var s=Vg(o),c=S(a.exports,e.escapeIdentifier(s),107455);c||l(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1,e.externalHelpersModuleNameText,s)}Qy|=r}}}function Vg(t){switch(t){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";case 256:return"__values";case 512:return"__read";case 1024:return"__spread";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";default:e.Debug.fail("Unrecognized helper")}}function Ug(t,r){return Yy||(Yy=ue(t,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,r)||Tv),Yy}function qg(t){if(!t.decorators)return!1;if(!e.nodeCanBeDecorated(t))return 151!==t.kind||e.nodeIsPresent(t.body)?Ry(t,e.Diagnostics.Decorators_are_not_valid_here):Ry(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(153===t.kind||154===t.kind){var r=e.getAllAccessorDeclarations(t.parent.members,t);if(r.firstAccessor.decorators&&t===r.secondAccessor)return Ry(t,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}function Wg(t){var r=Hg(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(131!==d.kind){if(148===t.kind||150===t.kind)return Ly(d,e.Diagnostics._0_modifier_cannot_appear_on_a_type_member,e.tokenToString(d.kind));if(157===t.kind)return Ly(d,e.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,e.tokenToString(d.kind))}switch(d.kind){case 76:if(232!==t.kind&&229===t.parent.kind)return Ly(t,e.Diagnostics.A_class_member_cannot_have_the_0_keyword,e.tokenToString(76));break;case 114:case 113:case 112:var p=$e(e.modifierToFlag(d.kind));if(113===d.kind?i=d:112===d.kind&&(a=d),28&u)return Ly(d,e.Diagnostics.Accessibility_modifier_already_seen);if(32&u)return Ly(d,e.Diagnostics._0_modifier_must_precede_1_modifier,p,"static");if(64&u)return Ly(d,e.Diagnostics._0_modifier_must_precede_1_modifier,p,"readonly");if(256&u)return Ly(d,e.Diagnostics._0_modifier_must_precede_1_modifier,p,"async");if(234===t.parent.kind||265===t.parent.kind)return Ly(d,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,p);if(128&u)return 112===d.kind?Ly(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,p,"abstract"):Ly(d,e.Diagnostics._0_modifier_must_precede_1_modifier,p,"abstract");u|=e.modifierToFlag(d.kind);break;case 115:if(32&u)return Ly(d,e.Diagnostics._0_modifier_already_seen,"static");if(64&u)return Ly(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(256&u)return Ly(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(234===t.parent.kind||265===t.parent.kind)return Ly(d,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(146===t.kind)return Ly(d,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(128&u)return Ly(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");u|=32,n=d;break;case 131:if(64&u)return Ly(d,e.Diagnostics._0_modifier_already_seen,"readonly");if(149!==t.kind&&148!==t.kind&&157!==t.kind&&146!==t.kind)return Ly(d,e.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);u|=64,c=d;break;case 84:if(1&u)return Ly(d,e.Diagnostics._0_modifier_already_seen,"export");if(2&u)return Ly(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(128&u)return Ly(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(256&u)return Ly(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(229===t.parent.kind)return Ly(d,e.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"export");if(146===t.kind)return Ly(d,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");u|=1;break;case 124:if(2&u)return Ly(d,e.Diagnostics._0_modifier_already_seen,"declare");if(256&u)return Ly(d,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(229===t.parent.kind)return Ly(d,e.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"declare");if(146===t.kind)return Ly(d,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(e.isInAmbientContext(t.parent)&&234===t.parent.kind)return Ly(d,e.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);u|=2,o=d;break;case 117:if(128&u)return Ly(d,e.Diagnostics._0_modifier_already_seen,"abstract");if(229!==t.kind){if(151!==t.kind&&149!==t.kind&&153!==t.kind&&154!==t.kind)return Ly(d,e.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(229===t.parent.kind&&128&e.getModifierFlags(t.parent)))return Ly(d,e.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(32&u)return Ly(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(8&u)return Ly(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract")}u|=128;break;case 120:if(256&u)return Ly(d,e.Diagnostics._0_modifier_already_seen,"async");if(2&u||e.isInAmbientContext(t.parent))return Ly(d,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(146===t.kind)return Ly(d,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");u|=256,s=d}}return 152!==t.kind?(238===t.kind||237===t.kind)&&2&u?Ly(o,e.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):146===t.kind&&92&u&&e.isBindingPattern(t.name)?Ly(t,e.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern):146===t.kind&&92&u&&t.dotDotDotToken?Ly(t,e.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter):256&u?Qg(t,s):void 0:32&u?Ly(n,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):128&u?Ly(n,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"abstract"):256&u?Ly(s,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):64&u?Ly(c,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"readonly"):void 0}function Hg(t){return!!t.modifiers&&(Gg(t)?Ry(t,e.Diagnostics.Modifiers_cannot_appear_here):void 0)}function Gg(t){switch(t.kind){case 153:case 154:case 152:case 149:case 148:case 151:case 150:case 157:case 233:case 238:case 237:case 244:case 243:case 186:case 187:case 146:return!1;default:if(234===t.parent.kind||265===t.parent.kind)return!1;switch(t.kind){case 228:return Xg(t,120);case 229:return Xg(t,117);case 230:case 208:case 231:return!0;case 232:return Xg(t,76);default:return e.Debug.fail(),!1}}}function Xg(e,t){return e.modifiers.length>1||e.modifiers[0].kind!==t}function Qg(t,r){switch(t.kind){case 151:case 228:case 186:case 187:return!1}return Ly(r,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}function Yg(t){if(t&&t.hasTrailingComma){var r=t.end-",".length,n=t.end,a=e.getSourceFileOfNode(t[0]);return My(a,r,n-r,e.Diagnostics.Trailing_comma_not_allowed)}}function Zg(t,r){if(Yg(t))return!0;if(t&&0===t.length){var n=t.pos-"<".length,a=e.skipTrivia(r.text,t.end)+">".length;return My(r,n,a-n,e.Diagnostics.Type_parameter_list_cannot_be_empty)}}function $g(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 Ly(i.dotDotDotToken,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(e.isBindingPattern(i.name))return Ly(i.name,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern);if(i.questionToken)return Ly(i.questionToken,e.Diagnostics.A_rest_parameter_cannot_be_optional);if(i.initializer)return Ly(i.name,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(i.questionToken){if(r=!0,i.initializer)return Ly(i.name,e.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(r&&!i.initializer)return Ly(i.name,e.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter)}}function ey(t){var r=e.getSourceFileOfNode(t);return qg(t)||Wg(t)||Zg(t.typeParameters,r)||$g(t.parameters)||ry(t,r)}function ty(t){var r=e.getSourceFileOfNode(t);return ly(t)||Zg(t.typeParameters,r)}function ry(t,r){if(187===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 Ly(n.equalsGreaterThanToken,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}return!1}function ny(t){var r=t.parameters[0];return 1!==t.parameters.length?r?Ly(r.name,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter):Ly(t,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter):r.dotDotDotToken?Ly(r.dotDotDotToken,e.Diagnostics.An_index_signature_cannot_have_a_rest_parameter):0!==e.getModifierFlags(r)?Ly(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier):r.questionToken?Ly(r.questionToken,e.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark):r.initializer?Ly(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer):r.type?136!==r.type.kind&&133!==r.type.kind?Ly(r.name,e.Diagnostics.An_index_signature_parameter_type_must_be_string_or_number):t.type?void 0:Ly(t,e.Diagnostics.An_index_signature_must_have_a_type_annotation):Ly(r.name,e.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation)}function ay(e){return qg(e)||Wg(e)||ny(e)}function iy(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 My(n,a,i-a,e.Diagnostics.Type_argument_list_cannot_be_empty)}}function oy(e,t){return Yg(t)||iy(e,t)}function sy(t,r){if(r)for(var n=e.getSourceFileOfNode(t),a=0,i=r;a<i.length;a++){var o=i[a];if(200===o.kind)return My(n,o.pos,0,e.Diagnostics.Argument_expression_expected)}}function cy(e,t){return sy(e,t)}function uy(t){var r=t.types;if(Yg(r))return!0;if(r&&0===r.length){var n=e.tokenToString(t.token),a=e.getSourceFileOfNode(t);return My(a,r.pos,0,e.Diagnostics._0_list_cannot_be_empty,n)}return e.forEach(r,_y)}function _y(e){return oy(e,e.typeArguments)}function ly(t){var r=!1,n=!1;if(!qg(t)&&!Wg(t)&&t.heritageClauses)for(var a=0,i=t.heritageClauses;a<i.length;a++){var o=i[a];if(85===o.token){if(r)return Ry(o,e.Diagnostics.extends_clause_already_seen);if(n)return Ry(o,e.Diagnostics.extends_clause_must_precede_implements_clause);if(o.types.length>1)return Ry(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);r=!0}else{if(e.Debug.assert(108===o.token),n)return Ry(o,e.Diagnostics.implements_clause_already_seen);n=!0}uy(o)}}function dy(t){var r=!1;if(t.heritageClauses)for(var n=0,a=t.heritageClauses;n<a.length;n++){var i=a[n];if(85!==i.token)return e.Debug.assert(108===i.token),Ry(i,e.Diagnostics.Interface_declaration_cannot_have_implements_clause);if(r)return Ry(i,e.Diagnostics.extends_clause_already_seen);r=!0,uy(i)}return!1}function py(t){if(144!==t.kind)return!1;var r=t;return 194===r.expression.kind&&26===r.expression.operatorToken.kind?Ly(r.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name):void 0}function fy(t){if(t.asteriskToken){if(e.Debug.assert(228===t.kind||186===t.kind||151===t.kind),e.isInAmbientContext(t))return Ly(t.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!t.body)return Ly(t.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function my(e,t){if(e)return Ly(e,t)}function gy(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(263!==_.kind){var l=_.name;if(144===l.kind&&py(l),262===_.kind&&!r&&_.objectAssignmentInitializer)return Ly(_.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];120===f.kind&&151===_.kind||Ly(f,e.Diagnostics._0_modifier_cannot_be_used_here,e.getTextOfNode(f))}var m=void 0;261===_.kind||262===_.kind?(my(_.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional),8===l.kind&&qy(l),m=a):151===_.kind?m=a:153===_.kind?m=i:154===_.kind?m=o:e.Debug.fail("Unexpected syntax kind:"+_.kind);var g=e.getPropertyNameForPropertyNameNode(l);if(void 0!==g){var y=n.get(g);if(y)if(m===a&&y===a)Ly(l,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(l));else{if(!(m&s&&y&s))return Ly(l,e.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(y===s||m===y)return Ly(l,e.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);n.set(g,m|y)}else n.set(g,m)}}}}function yy(t){for(var r=e.createMap(),n=0,a=t.attributes.properties;n<a.length;n++){var i=a[n];if(255!==i.kind){var o=i,s=o.name;if(r.get(s.text))return Ly(s,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);r.set(s.text,!0);var c=o.initializer;if(c&&256===c.kind&&!c.expression)return Ly(o.initializer,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}}function vy(t){if(Uy(t))return!0;if(216===t.kind&&t.awaitModifier&&0===(16384&t.flags))return Ly(t.awaitModifier,e.Diagnostics.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator);if(227===t.initializer.kind){var r=t.initializer;if(!wy(r)){var n=r.declarations;if(!n.length)return!1;if(n.length>1){var a=215===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 Ry(r.declarations[1],a)}var i=n[0];if(i.initializer){var a=215===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 Ly(i.name,a)}if(i.type){var a=215===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 Ly(i,a)}}}return!1}function hy(t){var r=t.kind;if(cv<1)return Ly(t.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(e.isInAmbientContext(t))return Ly(t.name,e.Diagnostics.An_accessor_cannot_be_declared_in_an_ambient_context);if(!(void 0!==t.body||128&e.getModifierFlags(t)))return My(e.getSourceFileOfNode(t),t.end-1,";".length,e.Diagnostics._0_expected,"{");if(t.body&&128&e.getModifierFlags(t))return Ly(t,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(t.typeParameters)return Ly(t.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!by(t))return Ly(t.name,153===r?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(154===r){if(t.type)return Ly(t.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var n=t.parameters[0];if(n.dotDotDotToken)return Ly(n.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(n.questionToken)return Ly(n.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(n.initializer)return Ly(t.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}}function by(e){return ky(e)||e.parameters.length===(153===e.kind?0:1)}function ky(t){if(t.parameters.length===(153===t.kind?1:2))return e.getThisParameter(t)}function xy(t,r){if(e.isDynamicName(t))return Ly(t,r)}function Cy(t){if(Df(t)||ey(t)||fy(t))return!0;if(178===t.parent.kind){if(my(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(void 0===t.body)return My(e.getSourceFileOfNode(t),t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(e.isClassLike(t.parent)){if(e.isInAmbientContext(t))return xy(t.name,e.Diagnostics.A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol);if(!t.body)return xy(t.name,e.Diagnostics.A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol)}else{if(230===t.parent.kind)return xy(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol);if(163===t.parent.kind)return xy(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol)}}function Dy(t){for(var r=t;r;){if(e.isFunctionLike(r))return Ly(t,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(r.kind){case 222:if(t.label&&r.label.text===t.label.text){var n=217===t.kind&&!e.isIterationStatement(r.statement,!0);return!!n&&Ly(t,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement)}break;case 221:if(218===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=218===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 Ly(t,a)}var a=218===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 Ly(t,a)}function Sy(t){if(t.dotDotDotToken){var r=t.parent.elements;if(t!==e.lastOrUndefined(r))return Ly(t,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(175===t.name.kind||174===t.name.kind)return Ly(t.name,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern);if(t.initializer)return My(e.getSourceFileOfNode(t),t.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}function Ty(e){return 9===e.kind||8===e.kind||192===e.kind&&38===e.operator&&8===e.operand.kind}function Ey(t){if(215!==t.parent.parent.kind&&216!==t.parent.parent.kind)if(e.isInAmbientContext(t)){if(t.initializer){if(!e.isConst(t)||t.type){var r="=".length;return My(e.getSourceFileOfNode(t),t.initializer.pos-r,r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}if(!Ty(t.initializer))return Ly(t.initializer,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal)}if(t.initializer&&(!e.isConst(t)||!Ty(t.initializer))){var r="=".length;return My(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 Ly(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isConst(t))return Ly(t,e.Diagnostics.const_declarations_must_be_initialized)}sv.module===e.ModuleKind.ES2015||sv.module===e.ModuleKind.System||sv.noEmit||e.isInAmbientContext(t.parent.parent)||!e.hasModifier(t.parent.parent,1)||Ny(t.name);var n=e.isLet(t)||e.isConst(t);return n&&Ay(t.name)}function Ny(t){if(71===t.kind){if("__esModule"===e.unescapeIdentifier(t.text))return Ly(t,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var r=t.elements,n=0,a=r;n<a.length;n++){var i=a[n];if(!e.isOmittedExpression(i))return Ny(i.name)}}function Ay(t){if(71===t.kind){if(110===t.originalKeywordKind)return Ly(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)||Ay(i.name)}}function wy(t){var r=t.declarations;return!!Yg(t.declarations)||(t.declarations.length?void 0:My(e.getSourceFileOfNode(t),r.pos,r.end-r.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty))}function Py(e){switch(e.kind){case 211:case 212:case 213:case 220:case 214:case 215:case 216:return!1;case 222:return Py(e.parent)}return!0}function Fy(t){if(!Py(t.parent)){if(e.isLet(t.declarationList))return Ly(t,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);if(e.isConst(t.declarationList))return Ly(t,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}}function Oy(t){if(94===t.keywordToken&&"target"!==t.name.text)return Ly(t.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,t.name.text,e.tokenToString(t.keywordToken),"target")}function Iy(e){return e.parseDiagnostics.length>0}function Ry(t,r,n,a,i){var o=e.getSourceFileOfNode(t);if(!Iy(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return ib.add(e.createFileDiagnostic(o,s.start,s.length,r,n,a,i)),!0}}function My(t,r,n,a,i,o,s){if(!Iy(t))return ib.add(e.createFileDiagnostic(t,r,n,a,i,o,s)),!0}function Ly(t,r,n,a,i){var o=e.getSourceFileOfNode(t);if(!Iy(o))return ib.add(e.createDiagnosticForNode(t,r,n,a,i)),!0}function By(t){if(t.typeParameters)return My(e.getSourceFileOfNode(t),t.typeParameters.pos,t.typeParameters.end-t.typeParameters.pos,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}function Jy(t){if(t.type)return Ly(t.type,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}function zy(t){if(e.isClassLike(t.parent)){if(xy(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(230===t.parent.kind){if(xy(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 Ly(t.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(163===t.parent.kind){if(xy(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 Ly(t.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(e.isInAmbientContext(t)&&t.initializer)return Ry(t.initializer,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}function Ky(t){return!(230===t.kind||231===t.kind||238===t.kind||237===t.kind||244===t.kind||243===t.kind||236===t.kind||515&e.getModifierFlags(t))&&Ry(t,e.Diagnostics.A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file)}function jy(t){for(var r=0,n=t.statements;r<n.length;r++){var a=n[r];if((e.isDeclaration(a)||208===a.kind)&&Ky(a))return!0}}function Vy(t){return e.isInAmbientContext(t)&&jy(t)}function Uy(t){if(e.isInAmbientContext(t)){if(e.isAccessor(t.parent))return x(t).hasReportedStatementInAmbientContext=!0;var r=x(t);if(!r.hasReportedStatementInAmbientContext&&e.isFunctionLike(t.parent))return x(t).hasReportedStatementInAmbientContext=Ry(t,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(207===t.parent.kind||234===t.parent.kind||265===t.parent.kind){var n=x(t.parent);if(!n.hasReportedStatementInAmbientContext)return n.hasReportedStatementInAmbientContext=Ry(t,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}}function qy(t){if(4&t.numericLiteralFlags){var r=void 0;if(cv>=1?r=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,173)?r=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,264)&&(r=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),r){var n=e.isPrefixUnaryExpression(t.parent)&&38===t.parent.operator,a=(n?"-":"")+"0o"+t.text;return Ly(n?t.parent:t,r,a)}}}function Wy(t,r,n,a,i){var o=e.getSourceFileOfNode(t);if(!Iy(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return ib.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,r,n,a,i)),!0}}function Hy(){var e=[];return Mh.forEach(function(t,r){i.test(r)&&e.push(t)}),e}function Gy(t){if(uv===e.ModuleKind.ES2015)return Ly(t,e.Diagnostics.Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules);if(t.typeArguments)return Ly(t,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var r=t.arguments;return 1!==r.length?Ly(t,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument):e.isSpreadElement(r[0])?Ly(r[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element):void 0}var Xy,Qy,Yy,Zy=e.objectAllocator.getSymbolConstructor(),$y=e.objectAllocator.getTypeConstructor(),ev=e.objectAllocator.getSignatureConstructor(),tv=0,rv=0,nv=0,av=0,iv=[],ov=e.createMap(),sv=n.getCompilerOptions(),cv=e.getEmitScriptTarget(sv),uv=e.getEmitModuleKind(sv),_v=!!sv.noUnusedLocals||!!sv.noUnusedParameters,lv="undefined"!=typeof sv.allowSyntheticDefaultImports?sv.allowSyntheticDefaultImports:uv===e.ModuleKind.System,dv=void 0===sv.strictNullChecks?sv.strict:sv.strictNullChecks,pv=void 0===sv.noImplicitAny?sv.strict:sv.noImplicitAny,fv=void 0===sv.noImplicitThis?sv.strict:sv.noImplicitThis,mv=Jg(),gv=Qe(),yv=d(4,"undefined");yv.declarations=[];var vv=d(4,"arguments"),hv={getNodeCount:function(){return e.sum(n.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(n.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(n.getSourceFiles(),"symbolCount")+rv},getTypeCount:function(){return tv},isUndefinedSymbol:function(e){return e===yv},isArgumentsSymbol:function(e){return e===vv},isUnknownSymbol:function(e){return e===Tv},getMergedSymbol:be,getDiagnostics:Lm,getGlobalDiagnostics:Jm,getTypeOfSymbolAtLocation:function(t,r){return r=e.getParseTreeNode(r),r?Gc(t,r):wv},getSymbolsOfParameterPropertyDeclaration:function(t,r){return t=e.getParseTreeNode(t,e.isParameter),e.Debug.assert(void 0!==t,"Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."),T(t,r)},getDeclaredTypeOfSymbol:vr,getPropertiesOfType:rn,getPropertyOfType:yn,getIndexInfoOfType:xn,getSignaturesOfType:hn,getIndexTypeOfType:Cn,getBaseTypes:nr,getBaseTypeOfLiteralType:is,getWidenedType:xs,getTypeFromTypeNode:function(t){return t=e.getParseTreeNode(t,e.isTypeNode),t?Li(t):wv},getParameterType:Ql,getReturnTypeOfSignature:Jn,getNonNullableType:fs,typeToTypeNode:gv.typeToTypeNode,indexInfoToIndexSignatureDeclaration:gv.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:gv.signatureToSignatureDeclaration,getSymbolsInScope:function(t,r){return t=e.getParseTreeNode(t),t?jm(t,r):[]},getSymbolAtLocation:function(t){return t=e.getParseTreeNode(t),t?$m(t):void 0},getShorthandAssignmentValueSymbol:function(t){return t=e.getParseTreeNode(t),t?eg(t):void 0},getExportSpecifierLocalTargetSymbol:function(t){return t=e.getParseTreeNode(t,e.isExportSpecifier),t?tg(t):void 0},getTypeAtLocation:function(t){return t=e.getParseTreeNode(t),t?rg(t):wv},getPropertySymbolOfDestructuringAssignment:function(t){return t=e.getParseTreeNode(t,e.isIdentifier),t?ag(t):void 0},signatureToString:function(t,r,n,a){return Ge(t,e.getParseTreeNode(r),n,a)},typeToString:function(t,r,n){return Xe(t,e.getParseTreeNode(r),n)},getSymbolDisplayBuilder:at,symbolToString:function(t,r,n){return He(t,e.getParseTreeNode(r),n)},getAugmentedPropertiesOfType:sg,getRootSymbols:cg,getContextualType:function(t){return t=e.getParseTreeNode(t,e.isExpression),t?zu(t):void 0},getFullyQualifiedName:ie,getResolvedSignature:function(t,r){return t=e.getParseTreeNode(t,e.isCallLikeExpression),t?Ll(t,r):void 0},getConstantValue:function(t){return t=e.getParseTreeNode(t,Eg),t?Ng(t):void 0},isValidPropertyAccess:function(t,r){return t=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedName),!!t&&Y_(t,r)},getSignatureFromDeclaration:function(t){return t=e.getParseTreeNode(t,e.isFunctionLike),t?On(t):void 0},isImplementationOfOverload:function(t){return t=e.getParseTreeNode(t,e.isFunctionLike),t?xg(t):void 0},getImmediateAliasedSymbol:function(t){e.Debug.assert(0!==(8388608&t.flags),"Should only get Alias here.");var r=k(t);if(!r.immediateTarget){var n=z(t);e.Debug.assert(!!n),r.immediateTarget=Z(n,!0)}return r.immediateTarget},getAliasedSymbol:te,getEmitResolver:_,getExportsOfModule:pe,getExportsAndPropertiesOfModule:fe,getAmbientModules:Hy,getAllAttributesTypeFromJsxOpeningLikeElement:function(t){return t=e.getParseTreeNode(t,e.isJsxOpeningLikeElement),t?D_(t):void 0},getJsxIntrinsicTagNames:w_,isOptionalParameter:function(t){return t=e.getParseTreeNode(t,e.isParameter),!!t&&An(t)},tryGetMemberInModuleExports:me,tryFindAmbientModuleWithoutAugmentations:function(e){return Nn(e,!1)},getApparentType:pn,getAllPossiblePropertiesOfType:nn,getSuggestionForNonexistentProperty:W_,getSuggestionForNonexistentSymbol:H_,getBaseConstraintOfType:cn,getJsxNamespace:s,resolveNameAtLocation:function(t,r,n){return t=e.getParseTreeNode(t),N(t,r,n,void 0,r)}},bv=[],kv=e.createMap(),xv=e.createMap(),Cv=e.createMap(),Dv=e.createMap(),Sv=[],Tv=d(4,"unknown"),Ev=d(0,"__resolving__"),Nv=Ee(1,"any"),Av=Ee(1,"any"),wv=Ee(1,"unknown"),Pv=Ee(2048,"undefined"),Fv=dv?Pv:Ee(2099200,"undefined"),Ov=Ee(4096,"null"),Iv=dv?Ov:Ee(2101248,"null"),Rv=Ee(2,"string"),Mv=Ee(4,"number"),Lv=Ee(128,"true"),Bv=Ee(128,"false"),Jv=Ne([Lv,Bv]),zv=Ee(512,"symbol"),Kv=Ee(1024,"void"),jv=Ee(8192,"never"),Vv=Ee(8192,"never"),Uv=Ee(16777216,"object"),qv=Ie(void 0,ov,iv,iv,void 0,void 0),Wv=d(2048,"__type");
Wv.members=e.createMap();var Hv=Ie(Wv,ov,iv,iv,void 0,void 0),Gv=Ie(void 0,ov,iv,iv,void 0,void 0);Gv.instantiations=e.createMap();var Xv=Ie(void 0,ov,iv,iv,void 0,void 0);Xv.flags|=8388608;var Qv,Yv,Zv,$v,eh,th,rh,nh,ah,ih,oh,sh,ch,uh,_h,lh,dh,ph,fh,mh,gh,yh,vh,hh,bh,kh,xh,Ch,Dh,Sh,Th,Eh,Nh=Ie(void 0,ov,iv,iv,void 0,void 0),Ah=Ie(void 0,ov,iv,iv,void 0,void 0),wh=Fr(void 0,void 0,void 0,iv,Nv,void 0,0,!1,!1),Ph=Fr(void 0,void 0,void 0,iv,wv,void 0,0,!1,!1),Fh=Fr(void 0,void 0,void 0,iv,Nv,void 0,0,!1,!1),Oh=Fr(void 0,void 0,void 0,iv,Vv,void 0,0,!1,!1),Ih=Hn(Rv,!0),Rh=Hn(Nv,!1),Mh=e.createMap(),Lh=0,Bh=0,Jh=0,zh=Pi(""),Kh=Pi(0),jh=[],Vh=[],Uh=[],qh=0,Wh=10,Hh=[],Gh=[],Xh=[],Qh=[],Yh=[],Zh=[],$h=[],eb=[],tb=[],rb=[],nb=[],ab=[],ib=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"}(Eh||(Eh={}));var ob,sb,cb,ub,_b,lb,db=e.createMapFromTemplate({string:1,number:2,"boolean":4,symbol:8,undefined:16384,object:16,"function":32}),pb=e.createMapFromTemplate({string:128,number:256,"boolean":512,symbol:1024,undefined:131072,object:2048,"function":4096}),fb=e.createMapFromTemplate({string:Rv,number:Mv,"boolean":Jv,symbol:zv,undefined:Pv}),mb=we(),gb=!1,yb=!1,vb=e.createMap(),hb={JSX:"JSX",IntrinsicElements:"IntrinsicElements",ElementClass:"ElementClass",ElementAttributesPropertyNameContainer:"ElementAttributesProperty",ElementChildrenAttributeNameContainer:"ElementChildrenAttribute",Element:"Element",IntrinsicAttributes:"IntrinsicAttributes",IntrinsicClassAttributes:"IntrinsicClassAttributes"},bb=e.createMap(),kb=e.createMap(),xb=e.createMap(),Cb=e.createMap(),Db=e.createMap();!function(e){e[e.Type=0]="Type",e[e.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",e[e.DeclaredType=2]="DeclaredType",e[e.ResolvedReturnType=3]="ResolvedReturnType"}(lb||(lb={}));var Sb;!function(e){e[e.Normal=0]="Normal",e[e.SkipContextSensitive=1]="SkipContextSensitive",e[e.Inferential=2]="Inferential"}(Sb||(Sb={}));var Tb=e.createMap();return Tb.set(yv.name,yv),Kg(),hv}function a(t){switch(t.parent.kind){case 242:case 246:return!0;default:return e.isDeclarationName(t)}}var i=/^".+"$/,o=1,s=1,c=1,u=1;e.getNodeId=t,e.getSymbolId=r,e.createTypeChecker=n}(ts||(ts={}));var ts;!function(e){function t(t,r,n,a){if(void 0===t||void 0===r)return t;e.aggregateTransformFlags(t);var i=r(t);if(i===t)return t;var o;if(void 0!==i)return o=e.isArray(i)?(a||s)(i):i,e.Debug.assertNode(o,n),e.aggregateTransformFlags(o),o}function r(t,r,n,a,i){if(void 0===t||void 0===r)return t;var o,s=t.length;(void 0===a||a<0)&&(a=0),(void 0===i||i>s-a)&&(i=s-a),(a>0||i<s)&&(o=e.createNodeArray([],t.hasTrailingComma&&a+i===s));for(var c=0;c<i;c++){var u=t[c+a];e.aggregateTransformFlags(u);var _=void 0!==u?r(u):void 0;if((void 0!==o||void 0===_||_!==u)&&(void 0===o&&(o=e.createNodeArray(t.slice(0,c),t.hasTrailingComma),e.setTextRange(o,t)),_))if(e.isArray(_))for(var l=0,d=_;l<d.length;l++){var p=d[l];e.Debug.assertNode(p,n),e.aggregateTransformFlags(p),o.push(p)}else e.Debug.assertNode(_,n),e.aggregateTransformFlags(_),o.push(_)}return o||t}function n(t,n,a,i,o){a.startLexicalEnvironment(),t=r(t,n,e.isStatement,i),o&&!e.startsWithUseStrict(t)&&(t=e.setTextRange(e.createNodeArray([e.createStatement(e.createLiteral("use strict"))].concat(t)),t));var s=a.endLexicalEnvironment();return e.setTextRange(e.createNodeArray(e.concatenate(t,s)),t)}function a(t,n,a,i){void 0===i&&(i=r),a.startLexicalEnvironment();var o=i(t,n,e.isParameterDeclaration);return a.suspendLexicalEnvironment(),o}function i(r,n,a){a.resumeLexicalEnvironment();var i=t(r,n,e.isConciseBody),o=a.endLexicalEnvironment();if(e.some(o)){var s=e.convertToFunctionBody(i),c=e.mergeLexicalEnvironment(s.statements,o);return e.updateBlock(s,c)}return i}function o(o,s,c,u,_){if(void 0===u&&(u=r),void 0!==o){var l=o.kind;if(l>0&&l<=142||169===l)return o;switch(l){case 71:return e.updateIdentifier(o,u(o.typeArguments,s,e.isTypeNode));case 143:return e.updateQualifiedName(o,t(o.left,s,e.isEntityName),t(o.right,s,e.isIdentifier));case 144:return e.updateComputedPropertyName(o,t(o.expression,s,e.isExpression));case 145:return e.updateTypeParameterDeclaration(o,t(o.name,s,e.isIdentifier),t(o.constraint,s,e.isTypeNode),t(o["default"],s,e.isTypeNode));case 146:return e.updateParameter(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.dotDotDotToken,_,e.isToken),t(o.name,s,e.isBindingName),t(o.questionToken,_,e.isToken),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 147:return e.updateDecorator(o,t(o.expression,s,e.isExpression));case 148:return e.updatePropertySignature(o,u(o.modifiers,s,e.isToken),t(o.name,s,e.isPropertyName),t(o.questionToken,_,e.isToken),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 149:return e.updateProperty(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 150:return e.updateMethodSignature(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode),t(o.name,s,e.isPropertyName),t(o.questionToken,_,e.isToken));case 151:return e.updateMethod(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.asteriskToken,_,e.isToken),t(o.name,s,e.isPropertyName),t(o.questionToken,_,e.isToken),u(o.typeParameters,s,e.isTypeParameterDeclaration),a(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),i(o.body,s,c));case 152:return e.updateConstructor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),a(o.parameters,s,c,u),i(o.body,s,c));case 153:return e.updateGetAccessor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),a(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),i(o.body,s,c));case 154:return e.updateSetAccessor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),a(o.parameters,s,c,u),i(o.body,s,c));case 155:return e.updateCallSignature(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 156:return e.updateConstructSignature(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 157:return e.updateIndexSignature(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 158:return e.updateTypePredicateNode(o,t(o.parameterName,s),t(o.type,s,e.isTypeNode));case 159:return e.updateTypeReferenceNode(o,t(o.typeName,s,e.isEntityName),u(o.typeArguments,s,e.isTypeNode));case 160:return e.updateFunctionTypeNode(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 161:return e.updateConstructorTypeNode(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 162:return e.updateTypeQueryNode(o,t(o.exprName,s,e.isEntityName));case 163:return e.updateTypeLiteralNode(o,u(o.members,s,e.isTypeElement));case 164:return e.updateArrayTypeNode(o,t(o.elementType,s,e.isTypeNode));case 165:return e.updateTypleTypeNode(o,u(o.elementTypes,s,e.isTypeNode));case 166:return e.updateUnionTypeNode(o,u(o.types,s,e.isTypeNode));case 167:return e.updateIntersectionTypeNode(o,u(o.types,s,e.isTypeNode));case 168:return e.updateParenthesizedType(o,t(o.type,s,e.isTypeNode));case 170:return e.updateTypeOperatorNode(o,t(o.type,s,e.isTypeNode));case 171:return e.updateIndexedAccessTypeNode(o,t(o.objectType,s,e.isTypeNode),t(o.indexType,s,e.isTypeNode));case 172:return e.updateMappedTypeNode(o,t(o.readonlyToken,_,e.isToken),t(o.typeParameter,s,e.isTypeParameterDeclaration),t(o.questionToken,_,e.isToken),t(o.type,s,e.isTypeNode));case 173:return e.updateLiteralTypeNode(o,t(o.literal,s,e.isExpression));case 174:return e.updateObjectBindingPattern(o,u(o.elements,s,e.isBindingElement));case 175:return e.updateArrayBindingPattern(o,u(o.elements,s,e.isArrayBindingElement));case 176:return e.updateBindingElement(o,t(o.dotDotDotToken,_,e.isToken),t(o.propertyName,s,e.isPropertyName),t(o.name,s,e.isBindingName),t(o.initializer,s,e.isExpression));case 177:return e.updateArrayLiteral(o,u(o.elements,s,e.isExpression));case 178:return e.updateObjectLiteral(o,u(o.properties,s,e.isObjectLiteralElementLike));case 179:return e.updatePropertyAccess(o,t(o.expression,s,e.isExpression),t(o.name,s,e.isIdentifier));case 180:return e.updateElementAccess(o,t(o.expression,s,e.isExpression),t(o.argumentExpression,s,e.isExpression));case 181:return e.updateCall(o,t(o.expression,s,e.isExpression),u(o.typeArguments,s,e.isTypeNode),u(o.arguments,s,e.isExpression));case 182:return e.updateNew(o,t(o.expression,s,e.isExpression),u(o.typeArguments,s,e.isTypeNode),u(o.arguments,s,e.isExpression));case 183:return e.updateTaggedTemplate(o,t(o.tag,s,e.isExpression),t(o.template,s,e.isTemplateLiteral));case 184:return e.updateTypeAssertion(o,t(o.type,s,e.isTypeNode),t(o.expression,s,e.isExpression));case 185:return e.updateParen(o,t(o.expression,s,e.isExpression));case 186:return e.updateFunctionExpression(o,u(o.modifiers,s,e.isModifier),t(o.asteriskToken,_,e.isToken),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),a(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),i(o.body,s,c));case 187:return e.updateArrowFunction(o,u(o.modifiers,s,e.isModifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),a(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),i(o.body,s,c));case 188:return e.updateDelete(o,t(o.expression,s,e.isExpression));case 189:return e.updateTypeOf(o,t(o.expression,s,e.isExpression));case 190:return e.updateVoid(o,t(o.expression,s,e.isExpression));case 191:return e.updateAwait(o,t(o.expression,s,e.isExpression));case 192:return e.updatePrefix(o,t(o.operand,s,e.isExpression));case 193:return e.updatePostfix(o,t(o.operand,s,e.isExpression));case 194:return e.updateBinary(o,t(o.left,s,e.isExpression),t(o.right,s,e.isExpression),t(o.operatorToken,s,e.isToken));case 195:return e.updateConditional(o,t(o.condition,s,e.isExpression),t(o.whenTrue,s,e.isExpression),t(o.whenFalse,s,e.isExpression));case 196:return e.updateTemplateExpression(o,t(o.head,s,e.isTemplateHead),u(o.templateSpans,s,e.isTemplateSpan));case 197:return e.updateYield(o,t(o.asteriskToken,_,e.isToken),t(o.expression,s,e.isExpression));case 198:return e.updateSpread(o,t(o.expression,s,e.isExpression));case 199:return e.updateClassExpression(o,u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.heritageClauses,s,e.isHeritageClause),u(o.members,s,e.isClassElement));case 201:return e.updateExpressionWithTypeArguments(o,u(o.typeArguments,s,e.isTypeNode),t(o.expression,s,e.isExpression));case 202:return e.updateAsExpression(o,t(o.expression,s,e.isExpression),t(o.type,s,e.isTypeNode));case 203:return e.updateNonNullExpression(o,t(o.expression,s,e.isExpression));case 204:return e.updateMetaProperty(o,t(o.name,s,e.isIdentifier));case 205:return e.updateTemplateSpan(o,t(o.expression,s,e.isExpression),t(o.literal,s,e.isTemplateMiddleOrTemplateTail));case 207:return e.updateBlock(o,u(o.statements,s,e.isStatement));case 208:return e.updateVariableStatement(o,u(o.modifiers,s,e.isModifier),t(o.declarationList,s,e.isVariableDeclarationList));case 210:return e.updateStatement(o,t(o.expression,s,e.isExpression));case 211:return e.updateIf(o,t(o.expression,s,e.isExpression),t(o.thenStatement,s,e.isStatement,e.liftToBlock),t(o.elseStatement,s,e.isStatement,e.liftToBlock));case 212:return e.updateDo(o,t(o.statement,s,e.isStatement,e.liftToBlock),t(o.expression,s,e.isExpression));case 213:return e.updateWhile(o,t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 214:return e.updateFor(o,t(o.initializer,s,e.isForInitializer),t(o.condition,s,e.isExpression),t(o.incrementor,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 215:return e.updateForIn(o,t(o.initializer,s,e.isForInitializer),t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 216:return e.updateForOf(o,o.awaitModifier,t(o.initializer,s,e.isForInitializer),t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 217:return e.updateContinue(o,t(o.label,s,e.isIdentifier));case 218:return e.updateBreak(o,t(o.label,s,e.isIdentifier));case 219:return e.updateReturn(o,t(o.expression,s,e.isExpression));case 220:return e.updateWith(o,t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 221:return e.updateSwitch(o,t(o.expression,s,e.isExpression),t(o.caseBlock,s,e.isCaseBlock));case 222:return e.updateLabel(o,t(o.label,s,e.isIdentifier),t(o.statement,s,e.isStatement,e.liftToBlock));case 223:return e.updateThrow(o,t(o.expression,s,e.isExpression));case 224:return e.updateTry(o,t(o.tryBlock,s,e.isBlock),t(o.catchClause,s,e.isCatchClause),t(o.finallyBlock,s,e.isBlock));case 226:return e.updateVariableDeclaration(o,t(o.name,s,e.isBindingName),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 227:return e.updateVariableDeclarationList(o,u(o.declarations,s,e.isVariableDeclaration));case 228:return e.updateFunctionDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.asteriskToken,_,e.isToken),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),a(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),i(o.body,s,c));case 229:return e.updateClassDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.heritageClauses,s,e.isHeritageClause),u(o.members,s,e.isClassElement));case 230:return e.updateInterfaceDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.heritageClauses,s,e.isHeritageClause),u(o.members,s,e.isTypeElement));case 231:return e.updateTypeAliasDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),t(o.type,s,e.isTypeNode));case 232:return e.updateEnumDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.members,s,e.isEnumMember));case 233:return e.updateModuleDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),t(o.body,s,e.isModuleBody));case 234:return e.updateModuleBlock(o,u(o.statements,s,e.isStatement));case 235:return e.updateCaseBlock(o,u(o.clauses,s,e.isCaseOrDefaultClause));case 236:return e.updateNamespaceExportDeclaration(o,t(o.name,s,e.isIdentifier));case 237:return e.updateImportEqualsDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),t(o.moduleReference,s,e.isModuleReference));case 238:return e.updateImportDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.importClause,s,e.isImportClause),t(o.moduleSpecifier,s,e.isExpression));case 239:return e.updateImportClause(o,t(o.name,s,e.isIdentifier),t(o.namedBindings,s,e.isNamedImportBindings));case 240:return e.updateNamespaceImport(o,t(o.name,s,e.isIdentifier));case 241:return e.updateNamedImports(o,u(o.elements,s,e.isImportSpecifier));case 242:return e.updateImportSpecifier(o,t(o.propertyName,s,e.isIdentifier),t(o.name,s,e.isIdentifier));case 243:return e.updateExportAssignment(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.expression,s,e.isExpression));case 244:return e.updateExportDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.exportClause,s,e.isNamedExports),t(o.moduleSpecifier,s,e.isExpression));case 245:return e.updateNamedExports(o,u(o.elements,s,e.isExportSpecifier));case 246:return e.updateExportSpecifier(o,t(o.propertyName,s,e.isIdentifier),t(o.name,s,e.isIdentifier));case 248:return e.updateExternalModuleReference(o,t(o.expression,s,e.isExpression));case 249:return e.updateJsxElement(o,t(o.openingElement,s,e.isJsxOpeningElement),u(o.children,s,e.isJsxChild),t(o.closingElement,s,e.isJsxClosingElement));case 250:return e.updateJsxSelfClosingElement(o,t(o.tagName,s,e.isJsxTagNameExpression),t(o.attributes,s,e.isJsxAttributes));case 251:return e.updateJsxOpeningElement(o,t(o.tagName,s,e.isJsxTagNameExpression),t(o.attributes,s,e.isJsxAttributes));case 252:return e.updateJsxClosingElement(o,t(o.tagName,s,e.isJsxTagNameExpression));case 253:return e.updateJsxAttribute(o,t(o.name,s,e.isIdentifier),t(o.initializer,s,e.isStringLiteralOrJsxExpression));case 254:return e.updateJsxAttributes(o,u(o.properties,s,e.isJsxAttributeLike));case 255:return e.updateJsxSpreadAttribute(o,t(o.expression,s,e.isExpression));case 256:return e.updateJsxExpression(o,t(o.expression,s,e.isExpression));case 257:return e.updateCaseClause(o,t(o.expression,s,e.isExpression),u(o.statements,s,e.isStatement));case 258:return e.updateDefaultClause(o,u(o.statements,s,e.isStatement));case 259:return e.updateHeritageClause(o,u(o.types,s,e.isExpressionWithTypeArguments));case 260:return e.updateCatchClause(o,t(o.variableDeclaration,s,e.isVariableDeclaration),t(o.block,s,e.isBlock));case 261:return e.updatePropertyAssignment(o,t(o.name,s,e.isPropertyName),t(o.initializer,s,e.isExpression));case 262:return e.updateShorthandPropertyAssignment(o,t(o.name,s,e.isIdentifier),t(o.objectAssignmentInitializer,s,e.isExpression));case 263:return e.updateSpreadAssignment(o,t(o.expression,s,e.isExpression));case 264:return e.updateEnumMember(o,t(o.name,s,e.isPropertyName),t(o.initializer,s,e.isExpression));case 265:return e.updateSourceFileNode(o,n(o.statements,s,c));case 297:return e.updatePartiallyEmittedExpression(o,t(o.expression,s,e.isExpression));case 298:return e.updateCommaList(o,u(o.elements,s,e.isExpression));default:return o}}}function s(t){return e.Debug.assert(t.length<=1,"Too many nodes written to output."),e.singleOrUndefined(t)}e.visitNode=t,e.visitNodes=r,e.visitLexicalEnvironment=n,e.visitParameterList=a,e.visitFunctionBody=i,e.visitEachChild=o}(ts||(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<=142)return a;if(u>=158&&u<=173)return a;var _=a;switch(n.kind){case 206:case 209:case 200:case 225:case 296:break;case 143:_=t(n.left,i,_),_=t(n.right,i,_);break;case 144:_=t(n.expression,i,_);break;case 146:_=s(n.decorators,c,_),_=s(n.modifiers,c,_),_=t(n.name,i,_),_=t(n.type,i,_),_=t(n.initializer,i,_);break;case 147:_=t(n.expression,i,_);break;case 148:_=s(n.modifiers,c,_),_=t(n.name,i,_),_=t(n.questionToken,i,_),_=t(n.type,i,_),_=t(n.initializer,i,_);break;case 149:_=s(n.decorators,c,_),_=s(n.modifiers,c,_),_=t(n.name,i,_),_=t(n.type,i,_),_=t(n.initializer,i,_);break;case 151:_=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 152:_=s(n.modifiers,c,_),_=s(n.parameters,c,_),_=t(n.body,i,_);break;case 153:_=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 154:_=s(n.decorators,c,_),_=s(n.modifiers,c,_),_=t(n.name,i,_),_=s(n.parameters,c,_),_=t(n.body,i,_);break;case 174:case 175:_=s(n.elements,c,_);break;case 176:_=t(n.propertyName,i,_),_=t(n.name,i,_),_=t(n.initializer,i,_);break;case 177:_=s(n.elements,c,_);break;case 178:_=s(n.properties,c,_);break;case 179:_=t(n.expression,i,_),_=t(n.name,i,_);break;case 180:_=t(n.expression,i,_),_=t(n.argumentExpression,i,_);break;case 181:_=t(n.expression,i,_),_=s(n.typeArguments,c,_),_=s(n.arguments,c,_);break;case 182:_=t(n.expression,i,_),_=s(n.typeArguments,c,_),_=s(n.arguments,c,_);break;case 183:_=t(n.tag,i,_),_=t(n.template,i,_);break;case 184:_=t(n.type,i,_),_=t(n.expression,i,_);break;case 186:_=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 187:_=s(n.modifiers,c,_),_=s(n.typeParameters,c,_),_=s(n.parameters,c,_),_=t(n.type,i,_),_=t(n.body,i,_);break;case 185:case 188:case 189:case 190:case 191:case 197:case 198:case 203:_=t(n.expression,i,_);break;case 192:case 193:_=t(n.operand,i,_);break;case 194:_=t(n.left,i,_),_=t(n.right,i,_);break;case 195:_=t(n.condition,i,_),_=t(n.whenTrue,i,_),_=t(n.whenFalse,i,_);break;case 196:_=t(n.head,i,_),_=s(n.templateSpans,c,_);break;case 199:_=s(n.modifiers,c,_),_=t(n.name,i,_),_=s(n.typeParameters,c,_),_=s(n.heritageClauses,c,_),_=s(n.members,c,_);break;case 201:_=t(n.expression,i,_),_=s(n.typeArguments,c,_);break;case 202:_=t(n.expression,i,_),_=t(n.type,i,_);break;case 203:_=t(n.expression,i,_);break;case 205:_=t(n.expression,i,_),_=t(n.literal,i,_);break;case 207:_=s(n.statements,c,_);break;case 208:_=s(n.modifiers,c,_),_=t(n.declarationList,i,_);break;case 210:_=t(n.expression,i,_);break;case 211:_=t(n.expression,i,_),_=t(n.thenStatement,i,_),_=t(n.elseStatement,i,_);break;case 212:_=t(n.statement,i,_),_=t(n.expression,i,_);break;case 213:case 220:_=t(n.expression,i,_),_=t(n.statement,i,_);break;case 214:_=t(n.initializer,i,_),_=t(n.condition,i,_),_=t(n.incrementor,i,_),_=t(n.statement,i,_);break;case 215:case 216:_=t(n.initializer,i,_),_=t(n.expression,i,_),_=t(n.statement,i,_);break;case 219:case 223:_=t(n.expression,i,_);break;case 221:_=t(n.expression,i,_),_=t(n.caseBlock,i,_);break;case 222:_=t(n.label,i,_),_=t(n.statement,i,_);break;case 224:_=t(n.tryBlock,i,_),_=t(n.catchClause,i,_),_=t(n.finallyBlock,i,_);break;case 226:_=t(n.name,i,_),_=t(n.type,i,_),_=t(n.initializer,i,_);break;case 227:_=s(n.declarations,c,_);break;case 228:_=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 229:_=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.decorators,c,_),_=s(n.modifiers,c,_),_=t(n.name,i,_),_=s(n.members,c,_);break;case 233:_=s(n.decorators,c,_),_=s(n.modifiers,c,_),_=t(n.name,i,_),_=t(n.body,i,_);break;case 234:_=s(n.statements,c,_);break;case 235:_=s(n.clauses,c,_);break;case 237:_=s(n.decorators,c,_),_=s(n.modifiers,c,_),_=t(n.name,i,_),_=t(n.moduleReference,i,_);break;case 238:_=s(n.decorators,c,_),_=s(n.modifiers,c,_),_=t(n.importClause,i,_),_=t(n.moduleSpecifier,i,_);break;case 239:_=t(n.name,i,_),_=t(n.namedBindings,i,_);break;case 240:_=t(n.name,i,_);break;case 241:case 245:_=s(n.elements,c,_);break;case 242:case 246:_=t(n.propertyName,i,_),_=t(n.name,i,_);break;case 243:_=e.reduceLeft(n.decorators,i,_),_=e.reduceLeft(n.modifiers,i,_),_=t(n.expression,i,_);break;case 244:_=e.reduceLeft(n.decorators,i,_),_=e.reduceLeft(n.modifiers,i,_),_=t(n.exportClause,i,_),_=t(n.moduleSpecifier,i,_);break;case 248:_=t(n.expression,i,_);break;case 249:_=t(n.openingElement,i,_),_=e.reduceLeft(n.children,i,_),_=t(n.closingElement,i,_);break;case 250:case 251:_=t(n.tagName,i,_),_=t(n.attributes,i,_);break;case 254:_=s(n.properties,c,_);break;case 252:_=t(n.tagName,i,_);break;case 253:_=t(n.name,i,_),_=t(n.initializer,i,_);break;case 255:_=t(n.expression,i,_);break;case 256:_=t(n.expression,i,_);break;case 257:_=t(n.expression,i,_);case 258:_=s(n.statements,c,_);break;case 259:_=s(n.types,c,_);break;case 260:_=t(n.variableDeclaration,i,_),_=t(n.block,i,_);break;case 261:_=t(n.name,i,_),_=t(n.initializer,i,_);break;case 262:_=t(n.name,i,_),_=t(n.objectAssignmentInitializer,i,_);break;case 263:_=t(n.expression,i,_);break;case 264:_=t(n.name,i,_),_=t(n.initializer,i,_);break;case 265:_=s(n.statements,c,_);break;case 297:_=t(n.expression,i,_);break;case 298:_=s(n.elements,c,_)}return _}function a(t,r){return e.some(r)?e.isNodeArray(t)?e.setTextRange(e.createNodeArray(e.concatenate(t,r)),t):e.addRange(t,r):t}function i(t){return d.assert(e.every(t,e.isStatement),"Cannot lift nodes to a Block."),e.singleOrUndefined(t)||e.createBlock(t)}function o(e){return s(e),e}function s(t){if(void 0===t)return 0;if(536870912&t.transformFlags)return t.transformFlags&~e.getTransformFlagsSubtreeExclusions(t.kind);var r=u(t);return e.computeTransformFlagsForNode(t,r)}function c(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|=s(i),r|=i.transformFlags&-536870913}return e.transformFlags=536870912|r,t}function u(t){return e.hasModifier(t,2)||e.isTypeNode(t)&&201!==t.kind?0:n(t,0,_,l)}function _(e,t){return e|s(t)}function l(e,t){return e|c(t)}e.reduceEachChild=n,e.mergeLexicalEnvironment=a,e.liftToBlock=i,e.aggregateTransformFlags=o;var d;!function(t){function r(){if(!n){Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__debugFlags:{get:function(){return e.formatSymbolFlags(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__debugFlags:{get:function(){return e.formatTypeFlags(this.flags)}},__debugObjectFlags:{get:function(){return 32768&this.flags?e.formatObjectFlags(this.objectFlags):""}},__debugTypeToString:{value:function(){return this.checker.typeToString(this)}}});for(var t=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()],r=0,a=t;r<a.length;r++){var i=a[r];i.prototype.hasOwnProperty("__debugKind")||Object.defineProperties(i.prototype,{__debugKind:{get:function(){return e.formatSyntaxKind(this.kind)}},__debugModifierFlags:{get:function(){return e.formatModifierFlags(e.getModifierFlagsNoCache(this))}},__debugTransformFlags:{get:function(){return e.formatTransformFlags(this.transformFlags)}},__debugEmitFlags:{get:function(){return e.formatEmitFlags(e.getEmitFlags(this))}},__debugGetText:{value:function(t){if(e.nodeIsSynthesized(this))return"";var r=e.getParseTreeNode(this),n=r&&e.getSourceFileOfNode(r);return n?e.getSourceTextOfNodeFromSourceFile(n,r,t):""}}})}n=!0}}var n=!1;t.failBadSyntaxKind=t.shouldAssert(1)?function(r,n){return t.fail((n||"Unexpected node.")+"\r\nNode "+e.formatSyntaxKind(r.kind)+" was unexpected.",t.failBadSyntaxKind)}:e.noop,t.assertEachNode=t.shouldAssert(1)?function(r,n,a){return t.assert(void 0===n||e.every(r,n),a||"Unexpected node.",function(){return"Node array did not pass test '"+t.getFunctionName(n)+"'."},t.assertEachNode)}:e.noop,t.assertNode=t.shouldAssert(1)?function(r,n,a){return t.assert(void 0===n||n(r),a||"Unexpected node.",function(){return"Node "+e.formatSyntaxKind(r.kind)+" did not pass test '"+t.getFunctionName(n)+"'."},t.assertNode)}:e.noop,t.assertOptionalNode=t.shouldAssert(1)?function(r,n,a){return t.assert(void 0===n||void 0===r||n(r),a||"Unexpected node.",function(){return"Node "+e.formatSyntaxKind(r.kind)+" did not pass test '"+t.getFunctionName(n)+"'."},t.assertOptionalNode)}: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."},t.assertOptionalToken)}: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'."},t.assertMissingNode)}:e.noop,t.enableDebugInfo=r}(d=e.Debug||(e.Debug={}))}(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.setTextRange(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.isEmptyArrayLiteral(t.left)||e.isEmptyObjectLiteral(t.left);){if(!e.isDestructuringAssignment(p))return p;m=t=p,p=t.right}var g,y={context:a,level:i,downlevelIteration:a.getCompilerOptions().downlevelIteration,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,downlevelIteration:a.getCompilerOptions().downlevelIteration,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 C=x[k],D=C.pendingExpressions,S=C.name,h=C.value,T=C.location,E=C.original,N=e.createVariableDeclaration(S,void 0,D?e.inlineExpressions(e.append(D,h)):h);
N.original=E,e.setTextRange(N,T),e.isIdentifier(S)&&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(t.level<1&&t.downlevelIteration)i=c(t,e.createReadHelper(t.context,i,u>0&&e.getRestIndicatorOfBindingOrAssignmentElement(s[u-1])?void 0:u,o),!1,o);else 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.setTextRange(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.setTextRange(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(r.isDeclarationFile)return r;$t=r;var n=s(r,h);return e.addEmitHelpers(n,t.readEmitHelpers()),$t=void 0,n}function s(e,t){var r=rr,n=nr;c(e);var a=t(e);return rr!==r&&(nr=n),rr=r,a}function c(t){switch(t.kind){case 265:case 235:case 234:case 207:rr=t,nr=void 0;break;case 229:case 228:if(e.hasModifier(t,2))break;Ye(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 238:return nt(e);case 237:return dt(e);case 243:return st(e);case 244:return ct(e);default:return _(e)}}function p(e){return s(e,f)}function f(r){if(244!==r.kind&&238!==r.kind&&239!==r.kind&&(237!==r.kind||248!==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 152:return;case 149:case 157:case 153:case 154:case 151:return _(t);case 206:return t;default:return void e.Debug.failBadSyntaxKind(t)}}function y(t){if(!(2270&e.modifierToFlag(t.kind)||er&&84===t.kind))return t}function v(r){if(e.hasModifier(r,2)&&e.isStatement(r))return e.createNotEmittedStatement(r);switch(r.kind){case 84:case 79:return er?void 0:r;case 114:case 112:case 113:case 117:case 76:case 124:case 131:case 164:case 165:case 163:case 158:case 145:case 119:case 122:case 136:case 133:case 130:case 105:case 137:case 161:case 160:case 162:case 159:case 166:case 167:case 168:case 169:case 170:case 171:case 172:case 173:case 157:case 147:case 231:case 149:case 236:return;case 152:return Ee(r);case 230:return e.createNotEmittedStatement(r);case 229:return C(r);case 199:return T(r);case 259:return De(r);case 201:return Se(r);case 151:return Ne(r);case 153:return we(r);case 154:return Pe(r);case 228:return Fe(r);case 186:return Oe(r);case 187:return Ie(r);case 146:return Re(r);case 185:return Je(r);case 184:case 202:return ze(r);case 181:return je(r);case 182:return Ve(r);case 203:return Ke(r);case 232:return qe(r);case 208:return Me(r);case 226:return Be(r);case 233:return et(r);case 237:return dt(r);default:return e.Debug.failBadSyntaxKind(r),e.visitEachChild(r,u,t)}}function h(r){var n=(void 0===Gt.alwaysStrict?Gt.strict:Gt.alwaysStrict)&&!(e.isExternalModule(r)&&Qt===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,r){var n=0;return e.some(r)&&(n|=1),e.getClassExtendsHeritageClauseElement(t)&&(n|=64),b(t)&&(n|=2),e.childIsDecorated(t)&&(n|=4),pt(t)?n|=8:gt(t)?n|=32:mt(t)&&(n|=16),Xt<=1&&7&n&&(n|=128),n}function C(r){var n=R(r,!0),a=x(r,n);128&a&&t.startLexicalEnvironment();var i=r.name||(5&a?e.getGeneratedNameForNode(r):void 0),o=2&a?S(r,i,a):D(r,i,a),s=[o];if(1&a&&J(s,n,128&a?e.getInternalName(r):e.getLocalName(r)),$(s,r,!1),$(s,r,!0),re(s,r),128&a){var c=e.createTokenRange(e.skipTrivia($t.text,r.members.end),18),u=e.getInternalName(r),_=e.createPartiallyEmittedExpression(u);_.end=c.end,e.setEmitFlags(_,1536);var l=e.createReturn(_);l.pos=c.pos,e.setEmitFlags(l,1920),s.push(l),e.addRange(s,t.endLexicalEnvironment());var d=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(r,!1,!1),void 0,e.createImmediatelyInvokedFunctionExpression(s))]));e.setOriginalNode(d,r),e.setCommentRange(d,r),e.setSourceMapRange(d,e.moveRangePastDecorators(r)),e.startOnNewLine(d),s=[d]}return 8&a?vt(s,r):(128&a||2&a)&&(32&a?s.push(e.createExportDefault(e.getLocalName(r,!1,!0))):16&a&&s.push(e.createExternalModuleExport(e.getLocalName(r,!1,!0)))),s.length>1&&(s.push(e.createEndOfDeclarationMarker(r)),e.setEmitFlags(o,4194304|e.getEmitFlags(o))),e.singleOrMany(s)}function D(t,r,n){var a=128&n?void 0:e.visitNodes(t.modifiers,y,e.isModifier),i=e.createClassDeclaration(void 0,a,r,void 0,e.visitNodes(t.heritageClauses,u,e.isHeritageClause),E(t,0!==(64&n))),o=e.getEmitFlags(t);return 1&n&&(o|=32),e.setTextRange(i,t),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,0!==(64&n)),_=e.createClassExpression(void 0,r,void 0,s,c);e.setOriginalNode(_,t),e.setTextRange(_,a);var l=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(o,void 0,i?e.createAssignment(i,_):_)],1));return e.setOriginalNode(l,t),e.setTextRange(l,a),e.setCommentRange(l,t),l}function T(t){var r=R(t,!0),n=e.visitNodes(t.heritageClauses,u,e.isHeritageClause),a=E(t,e.some(n,function(e){return 85===e.token})),i=e.createClassExpression(void 0,t.name,void 0,n,a);if(e.setOriginalNode(i,t),e.setTextRange(i,t),r.length>0){var o=[],s=e.createTempVariable(Wt);return 8388608&Ht.getNodeCheckFlags(t)&&(Nt(),ir[e.getOriginalNodeId(t)]=e.getSynthesizedClone(s)),e.setEmitFlags(i,65536|e.getEmitFlags(i)),o.push(e.startOnNewLine(e.createAssignment(s,i))),e.addRange(o,z(r,s)),o.push(e.startOnNewLine(s)),e.inlineExpressions(o)}return i}function E(t,r){var n=[],a=N(t,r);return a&&n.push(a),e.addRange(n,e.visitNodes(t.members,m,e.isClassElement)),e.setTextRange(e.createNodeArray(n),t.members)}function N(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=A(o),c=w(r,o,n);return e.startOnNewLine(e.setOriginalNode(e.setTextRange(e.createConstructor(void 0,void 0,s,c),o||r),o))}function A(r){return e.visitParameterList(r&&r.parameters,u,t)||[]}function w(t,r,n){var a=[],i=0;if(Ut(),r){i=P(r,a);var o=F(r);e.addRange(a,e.map(o,I))}else n&&a.push(e.createStatement(e.createCall(e.createSuper(),void 0,[e.createSpread(e.createIdentifier("arguments"))])));var s=R(t,!1);return J(a,s,e.createThis()),r&&e.addRange(a,e.visitNodes(r.body.statements,u,e.isStatement,i)),a=e.mergeLexicalEnvironment(a,qt()),e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(a),r?r.body.statements:t.members),!0),r?r.body:void 0)}function P(t,r){if(t.body){var n=t.body.statements,a=e.addPrologue(r,n,!1,u);if(a===n.length)return a;var i=n[a];return 210===i.kind&&e.isSuperCall(i.expression)?(r.push(e.visitNode(i,u,e.isStatement)),a+1):a}return 0}function F(t){return e.filter(t.parameters,O)}function O(t){return e.hasModifier(t,92)&&e.isIdentifier(t.name)}function I(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.setTextRange(e.createStatement(e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createThis(),n),t.name),a)),e.moveRangePos(t,-1)))}function R(t,r){return e.filter(t.members,r?M:L)}function M(e){return B(e,!0)}function L(e){return B(e,!1)}function B(t,r){return 149===t.kind&&r===e.hasModifier(t,32)&&void 0!==t.initializer}function J(t,r,n){for(var a=0,i=r;a<i.length;a++){var o=i[a],s=e.createStatement(K(o,n));e.setSourceMapRange(s,e.moveRangePastModifiers(o)),e.setCommentRange(s,o),t.push(s)}}function z(t,r){for(var n=[],a=0,i=t;a<i.length;a++){var o=i[a],s=K(o,r);s.startsOnNewLine=!0,e.setSourceMapRange(s,e.moveRangePastModifiers(o)),e.setCommentRange(s,o),n.push(s)}return n}function K(t,r){var n=Ce(t),a=e.visitNode(t.initializer,u,e.isExpression),i=e.createMemberAccessForPropertyName(r,n,n);return e.createAssignment(i,a)}function j(t,r){return e.filter(t.members,r?V:U)}function V(e){return q(e,!0)}function U(e){return q(e,!1)}function q(t,r){return e.nodeOrChildIsDecorated(t)&&r===e.hasModifier(t,32)}function W(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 H(t){var r=t.decorators,n=W(e.getFirstConstructorWithBody(t));if(r||n)return{decorators:r,parameters:n}}function G(e,t){switch(t.kind){case 153:case 154:return X(e,t);case 151:return Q(t);case 149:return Y(t);default:return}}function X(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=W(o);if(c||u)return{decorators:c,parameters:u}}}}function Q(e){if(e.body){var t=e.decorators,r=W(e);if(t||r)return{decorators:t,parameters:r}}}function Y(e){var t=e.decorators;if(t)return{decorators:t}}function Z(t,r,n){if(n){var a=[];return e.addRange(a,e.map(n.decorators,ae)),e.addRange(a,e.flatMap(n.parameters,ie)),oe(t,r,a),a}}function $(t,r,n){e.addRange(t,e.map(ee(r,n),yt))}function ee(e,t){for(var r,n=j(e,t),a=0,i=n;a<i.length;a++){var o=i[a],s=te(e,o);s&&(r?r.push(s):r=[s])}return r}function te(n,a){var i=G(n,a),o=Z(a,n,i);if(o){var s=Tt(n,a),c=xe(a,!0),u=Xt>0?149===a.kind?e.createVoidZero():e.createNull():void 0,_=r(t,o,s,c,u,e.moveRangePastDecorators(a));return e.setEmitFlags(_,1536),_}}function re(t,r){var n=ne(r);n&&t.push(e.setOriginalNode(e.createStatement(n),r))}function ne(n){var a=H(n),i=Z(n,n,a);if(i){var o=ir&&ir[e.getOriginalNodeId(n)],s=e.getLocalName(n,!1,!0),c=r(t,i,s),u=e.createAssignment(s,o?e.createAssignment(o,c):c);return e.setEmitFlags(u,1536),e.setSourceMapRange(u,e.moveRangePastDecorators(n)),u}}function ae(t){return e.visitNode(t.expression,u,e.isExpression)}function ie(r,n){var i;if(r){i=[];for(var o=0,s=r;o<s.length;o++){var c=s[o],u=a(t,ae(c),n,c.expression);e.setEmitFlags(u,1536),i.push(u)}}return i}function oe(e,t,r){o?ce(e,t,r):se(e,t,r)}function se(e,r,a){Gt.emitDecoratorMetadata&&(ue(e)&&a.push(n(t,"design:type",de(e))),le(e)&&a.push(n(t,"design:paramtypes",pe(e,r))),_e(e)&&a.push(n(t,"design:returntype",me(e))))}function ce(r,a,i){if(Gt.emitDecoratorMetadata){var o=void 0;ue(r)&&(o||(o=[])).push(e.createPropertyAssignment("type",e.createArrowFunction(void 0,void 0,[],void 0,e.createToken(36),de(r)))),le(r)&&(o||(o=[])).push(e.createPropertyAssignment("paramTypes",e.createArrowFunction(void 0,void 0,[],void 0,e.createToken(36),pe(r,a)))),_e(r)&&(o||(o=[])).push(e.createPropertyAssignment("returnType",e.createArrowFunction(void 0,void 0,[],void 0,e.createToken(36),me(r)))),o&&i.push(n(t,"design:typeinfo",e.createObjectLiteral(o,!0)))}}function ue(e){var t=e.kind;return 151===t||153===t||154===t||149===t}function _e(e){return 151===e.kind}function le(t){switch(t.kind){case 229:case 199:return void 0!==e.getFirstConstructorWithBody(t);case 151:case 153:case 154:return!0}return!1}function de(t){switch(t.kind){case 149:case 146:case 153:return ge(t.type);case 154:return ge(e.getSetAccessorTypeAnnotationNode(t));case 229:case 199:case 151:return e.createIdentifier("Function");default:return e.createVoidZero()}}function pe(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=fe(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(ge(e.getRestParameterElementType(c.type))):a.push(de(c)))}return e.createArrayLiteral(a)}function fe(t,r){if(r&&153===t.kind){var n=e.getAllAccessorDeclarations(r.members,t).setAccessor;if(n)return n.parameters}return t.parameters}function me(t){return e.isFunctionLike(t)&&t.type?ge(t.type):e.isAsyncFunction(t)?e.createIdentifier("Promise"):e.createVoidZero()}function ge(t){if(void 0===t)return e.createIdentifier("Object");switch(t.kind){case 105:case 139:case 95:case 130:return e.createVoidZero();case 168:return ge(t.type);case 160:case 161:return e.createIdentifier("Function");case 164:case 165:return e.createIdentifier("Array");case 158:case 122:return e.createIdentifier("Boolean");case 136:return e.createIdentifier("String");case 134:return e.createIdentifier("Object");case 173:switch(t.literal.kind){case 9:return e.createIdentifier("String");case 8:return e.createIdentifier("Number");case 101:case 86:return e.createIdentifier("Boolean");default:e.Debug.failBadSyntaxKind(t.literal)}break;case 133:return e.createIdentifier("Number");case 137:return Xt<2?ke():e.createIdentifier("Symbol");case 159:return ve(t);case 167:case 166:return ye(t);case 162:case 170:case 171:case 172:case 163:case 119:case 169:break;default:e.Debug.failBadSyntaxKind(t)}return e.createIdentifier("Object")}function ye(t){for(var r,n=0,a=t.types;n<a.length;n++){var i=a[n],o=ge(i);if(e.isIdentifier(o)&&"Object"===o.text)return o;if(r){if(!e.isIdentifier(r)||!e.isIdentifier(o)||r.text!==o.text)return e.createIdentifier("Object")}else r=o}return r}function ve(t){switch(Ht.getTypeReferenceSerializationKind(t.typeName,rr)){case e.TypeReferenceSerializationKind.Unknown:var r=he(t.typeName,!0),n=e.createTempVariable(Wt);return e.createLogicalOr(e.createLogicalAnd(e.createTypeCheck(e.createAssignment(n,r),"function"),n),e.createIdentifier("Object"));case e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return he(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 Xt<2?ke():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 he(t,r){switch(t.kind){case 71:var n=e.getMutableClone(t);return n.flags&=-9,n.original=void 0,n.parent=rr,r?e.createLogicalAnd(e.createStrictInequality(e.createTypeOf(n),e.createLiteral("undefined")),n):n;case 143:return be(t,r)}}function be(t,r){var n;if(71===t.left.kind)n=he(t.left,r);else if(r){var a=e.createTempVariable(Wt);n=e.createLogicalAnd(e.createAssignment(a,he(t.left,!0)),a)}else n=he(t.left,!1);return e.createPropertyAccess(n,t.right)}function ke(){return e.createConditional(e.createTypeCheck(e.createIdentifier("Symbol"),"function"),e.createIdentifier("Symbol"),e.createIdentifier("Object"))}function xe(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 Ce(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);Wt(a),n=e.createAssignment(a,n)}return e.updateComputedPropertyName(r,n)}return r}function De(t){if(85===t.token){var r=e.visitNodes(t.types,u,e.isExpressionWithTypeArguments,0,1);return e.setTextRange(e.createHeritageClause(85,r),t)}}function Se(t){return e.updateExpressionWithTypeArguments(t,void 0,e.visitNode(t.expression,u,e.isLeftHandSideExpression))}function Te(t){return!e.nodeIsMissing(t.body)}function Ee(r){if(Te(r))return e.updateConstructor(r,e.visitNodes(r.decorators,u,e.isDecorator),e.visitNodes(r.modifiers,u,e.isModifier),e.visitParameterList(r.parameters,u,t),e.visitFunctionBody(r.body,u,t))}function Ne(r){if(Te(r)){var n=e.updateMethod(r,void 0,e.visitNodes(r.modifiers,y,e.isModifier),r.asteriskToken,Ce(r),void 0,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 Ae(t){return!(e.nodeIsMissing(t.body)&&e.hasModifier(t,128))}function we(r){if(Ae(r)){var n=e.updateGetAccessor(r,void 0,e.visitNodes(r.modifiers,y,e.isModifier),Ce(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 Pe(r){if(Ae(r)){var n=e.updateSetAccessor(r,void 0,e.visitNodes(r.modifiers,y,e.isModifier),Ce(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 Fe(r){if(!Te(r))return e.createNotEmittedStatement(r);var n=e.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,y,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,u,t),void 0,e.visitFunctionBody(r.body,u,t)||e.createBlock([]));if(pt(r)){var a=[n];return vt(a,r),a}return n}function Oe(r){if(!Te(r))return e.createOmittedExpression();var n=e.updateFunctionExpression(r,e.visitNodes(r.modifiers,y,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,u,t),void 0,e.visitFunctionBody(r.body,u,t)||e.createBlock([]));return n}function Ie(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 Re(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));return e.setOriginalNode(r,t),e.setTextRange(r,e.moveRangePastModifiers(t)),e.setCommentRange(r,t),e.setSourceMapRange(r,e.moveRangePastModifiers(t)),e.setEmitFlags(r.name,32),r}}function Me(r){if(pt(r)){var n=e.getInitializedVariables(r.declarationList);if(0===n.length)return;return e.setTextRange(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,bt):e.setTextRange(e.createAssignment(kt(n),e.visitNode(r.initializer,u,e.isExpression)),r)}function Be(t){return e.updateVariableDeclaration(t,e.visitNode(t.name,u,e.isBindingName),void 0,e.visitNode(t.initializer,u,e.isExpression))}function Je(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 ze(t){var r=e.visitNode(t.expression,u,e.isExpression);return e.createPartiallyEmittedExpression(r,t)}function Ke(t){var r=e.visitNode(t.expression,u,e.isLeftHandSideExpression);return e.createPartiallyEmittedExpression(r,t)}function je(t){return e.updateCall(t,e.visitNode(t.expression,u,e.isExpression),void 0,e.visitNodes(t.arguments,u,e.isExpression))}function Ve(t){return e.updateNew(t,e.visitNode(t.expression,u,e.isExpression),void 0,e.visitNodes(t.arguments,u,e.isExpression))}function Ue(t){return!e.isConst(t)||Gt.preserveConstEnums||Gt.isolatedModules}function qe(t){if(Ue(t)){var r=[],n=2;$e(r,t)&&(Qt===e.ModuleKind.System&&rr===$t||(n|=512));var a=xt(t),i=Ct(t),o=e.hasModifier(t,1)?e.getExternalModuleOrNamespaceExportName(tr,t,!1,!0):e.getLocalName(t,!1,!0),s=e.createLogicalOr(o,e.createAssignment(o,e.createObjectLiteral()));if(Qe(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,We(t,i)),void 0,[s]));return e.setOriginalNode(u,t),e.setTextRange(u,t),e.setEmitFlags(u,n),r.push(u),r.push(e.createEndOfDeclarationMarker(t)),r}}function We(t,r){var n=tr;tr=r;var a=[];return Vt(),e.addRange(a,e.map(t.members,He)),e.addRange(a,qt()),tr=n,e.createBlock(e.setTextRange(e.createNodeArray(a),t.members),!0)}function He(t){var r=xe(t,!1),n=Ge(t),a=e.createAssignment(e.createElementAccess(tr,r),n),i=9===n.kind?a:e.createAssignment(e.createElementAccess(tr,a),r);return e.setTextRange(e.createStatement(e.setTextRange(i,t)),t)}function Ge(t){var r=Ht.getConstantValue(t);return void 0!==r?e.createLiteral(r):(Et(),t.initializer?e.visitNode(t.initializer,u,e.isExpression):e.createVoidZero())}function Xe(t){return e.isInstantiatedModule(t,Gt.preserveConstEnums||Gt.isolatedModules)}function Qe(t){return pt(t)||ft(t)&&Qt!==e.ModuleKind.ES2015&&Qt!==e.ModuleKind.System}function Ye(t){var r=t.symbol&&t.symbol.name;r&&(nr||(nr=e.createMap()),nr.has(r)||nr.set(r,t))}function Ze(e){if(nr){var t=e.symbol&&e.symbol.name;if(t)return nr.get(t)===e}return!1}function $e(t,r){var n=e.createVariableStatement(e.visitNodes(r.modifiers,y,e.isModifier),e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(r,!1,!0))],265===rr.kind?0:1));if(e.setOriginalNode(n,r),Ye(r),Ze(r))return 232===r.kind?e.setSourceMapRange(n.declarationList,r):e.setSourceMapRange(n,r),e.setCommentRange(n,r),e.setEmitFlags(n,4195328),t.push(n),!0;var a=e.createMergeDeclarationMarker(n);return e.setEmitFlags(a,4195840),t.push(a),!1}function et(t){if(!Xe(t))return e.createNotEmittedStatement(t);e.Debug.assert(e.isIdentifier(t.name),"TypeScript module should have an Identifier name."),At();var r=[],n=2;$e(r,t)&&(Qt===e.ModuleKind.System&&rr===$t||(n|=512));var a=xt(t),i=Ct(t),o=e.hasModifier(t,1)?e.getExternalModuleOrNamespaceExportName(tr,t,!1,!0):e.getLocalName(t,!1,!0),s=e.createLogicalOr(o,e.createAssignment(o,e.createObjectLiteral()));if(Qe(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,tt(t,i)),void 0,[s]));return e.setOriginalNode(u,t),e.setTextRange(u,t),e.setEmitFlags(u,n),r.push(u),r.push(e.createEndOfDeclarationMarker(t)),r}function tt(t,r){var n=tr,a=er,i=nr;tr=r,er=t,nr=void 0;var o=[];Vt();var c,u,_=t.body;if(234===_.kind)s(_,function(t){return e.addRange(o,e.visitNodes(t.statements,p,e.isStatement))}),c=_.statements,u=_;else{var l=et(_);l&&(e.isArray(l)?e.addRange(o,l):o.push(l));var d=rt(t).body;c=e.moveRangePos(d.statements,-1)}e.addRange(o,qt()),tr=n,er=a,nr=i;var f=e.createBlock(e.setTextRange(e.createNodeArray(o),c),!0);return e.setTextRange(f,u),234!==_.kind&&e.setEmitFlags(f,1536|e.getEmitFlags(f)),f}function rt(e){if(233===e.body.kind){var t=rt(e.body);return t||e.body}}function nt(t){if(!t.importClause)return t;var r=e.visitNode(t.importClause,at,e.isImportClause);return r?e.updateImportDeclaration(t,void 0,void 0,r,t.moduleSpecifier):void 0}function at(t){var r=Ht.isReferencedAliasDeclaration(t)?t.name:void 0,n=e.visitNode(t.namedBindings,it,e.isNamedImportBindings);return r||n?e.updateImportClause(t,r,n):void 0}function it(t){if(240===t.kind)return Ht.isReferencedAliasDeclaration(t)?t:void 0;var r=e.visitNodes(t.elements,ot,e.isImportSpecifier);return e.some(r)?e.updateNamedImports(t,r):void 0}function ot(e){return Ht.isReferencedAliasDeclaration(e)?e:void 0}function st(r){return Ht.isValueAliasDeclaration(r)?e.visitEachChild(r,u,t):void 0}function ct(t){if(!t.exportClause)return Gt.isolatedModules||Ht.moduleExportsSomeValue(t.moduleSpecifier)?t:void 0;if(Ht.isValueAliasDeclaration(t)){var r=e.visitNode(t.exportClause,ut,e.isNamedExports);return r?e.updateExportDeclaration(t,void 0,void 0,r,t.moduleSpecifier):void 0}}function ut(t){var r=e.visitNodes(t.elements,_t,e.isExportSpecifier);return e.some(r)?e.updateNamedExports(t,r):void 0}function _t(e){return Ht.isValueAliasDeclaration(e)?e:void 0}function lt(t){return Ht.isReferencedAliasDeclaration(t)||!e.isExternalModule($t)&&Ht.isTopLevelValueImportEqualsWithEntityName(t)}function dt(r){if(e.isExternalModuleImportEqualsDeclaration(r))return Ht.isReferencedAliasDeclaration(r)?e.visitEachChild(r,u,t):void 0;if(lt(r)){var n=e.createExpressionFromEntityName(r.moduleReference);return e.setEmitFlags(n,3584),mt(r)||!pt(r)?e.setOriginalNode(e.setTextRange(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(ht(r.name,n,r),r)}}function pt(t){return void 0!==er&&e.hasModifier(t,1)}function ft(t){return void 0===er&&e.hasModifier(t,1)}function mt(t){return ft(t)&&!e.hasModifier(t,512)}function gt(t){return ft(t)&&e.hasModifier(t,512)}function yt(t){return e.createStatement(t)}function vt(t,r){var n=e.createAssignment(e.getExternalModuleOrNamespaceExportName(tr,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 ht(t,r,n){return e.setTextRange(e.createStatement(e.createAssignment(e.getNamespaceMemberName(tr,t,!1,!0),r)),n)}function bt(t,r,n){return e.setTextRange(e.createAssignment(kt(t),r),n)}function kt(t){return e.getNamespaceMemberName(tr,t,!1,!0)}function xt(t){var r=e.getGeneratedNameForNode(t);return e.setSourceMapRange(r,t.name),r}function Ct(t){return e.getGeneratedNameForNode(t)}function Dt(t){if(8388608&Ht.getNodeCheckFlags(t)){Nt();var r=e.createUniqueName(t.name&&!e.isGeneratedIdentifier(t.name)?e.unescapeIdentifier(t.name.text):"default");return ir[e.getOriginalNodeId(t)]=r,Wt(r),r}}function St(t){return e.createPropertyAccess(e.getDeclarationName(t),"prototype")}function Tt(t,r){return e.hasModifier(r,32)?e.getDeclarationName(t):St(t)}function Et(){0===(8&ar)&&(ar|=8,t.enableSubstitution(71))}function Nt(){0===(1&ar)&&(ar|=1,t.enableSubstitution(71),ir=[])}function At(){0===(2&ar)&&(ar|=2,t.enableSubstitution(71),t.enableSubstitution(262),t.enableEmitNotification(233))}function wt(t){return 233===e.getOriginalNode(t).kind}function Pt(t){return 232===e.getOriginalNode(t).kind}function Ft(t,r,n){var a=or,i=$t;e.isSourceFile(r)&&($t=r),2&ar&&wt(r)&&(or|=2),8&ar&&Pt(r)&&(or|=8),Yt(t,r,n),or=a,$t=i}function Ot(t,r){return r=Zt(t,r),1===t?Rt(r):e.isShorthandPropertyAssignment(r)?It(r):r}function It(t){if(2&ar){var r=t.name,n=Bt(r);if(n){if(t.objectAssignmentInitializer){var a=e.createAssignment(n,t.objectAssignmentInitializer);return e.setTextRange(e.createPropertyAssignment(r,a),t)}return e.setTextRange(e.createPropertyAssignment(r,n),t)}}return t}function Rt(e){switch(e.kind){case 71:return Mt(e);case 179:return Jt(e);case 180:return zt(e)}return e}function Mt(e){return Lt(e)||Bt(e)||e}function Lt(t){if(1&ar&&16777216&Ht.getNodeCheckFlags(t)){var r=Ht.getReferencedValueDeclaration(t);if(r){var n=ir[r.id];if(n){var a=e.getSynthesizedClone(n);return e.setSourceMapRange(a,t),e.setCommentRange(a,t),a}}}}function Bt(t){if(ar&or&&!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var r=Ht.getReferencedExportContainer(t,!1);if(r&&265!==r.kind){var n=2&or&&233===r.kind||8&or&&232===r.kind;if(n)return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(r),t),t)}}}function Jt(e){return Kt(e)}function zt(e){return Kt(e)}function Kt(t){var r=jt(t);if(void 0!==r){e.setConstantValue(t,r);var n=e.createLiteral(r);if(!Gt.removeComments){var a=e.isPropertyAccessExpression(t)?e.declarationNameToString(t.name):e.getTextOfNode(t.argumentExpression);e.addSyntheticTrailingComment(n,3," "+a+" ")}return n}return t}function jt(t){if(!Gt.isolatedModules)return e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)?Ht.getConstantValue(t):void 0}var Vt=t.startLexicalEnvironment,Ut=t.resumeLexicalEnvironment,qt=t.endLexicalEnvironment,Wt=t.hoistVariableDeclaration,Ht=t.getEmitResolver(),Gt=t.getCompilerOptions(),Xt=e.getEmitScriptTarget(Gt),Qt=e.getEmitModuleKind(Gt),Yt=t.onEmitNode,Zt=t.onSubstituteNode;
t.onEmitNode=Ft,t.onSubstituteNode=Ot,t.enableSubstitution(179),t.enableSubstitution(180);var $t,er,tr,rr,nr,ar,ir,or;return i}function r(t,r,n,a,i,o){var s=[];return s.push(e.createArrayLiteral(r,!0)),s.push(n),a&&(s.push(a),i&&s.push(i)),t.requestEmitHelper(c),e.setTextRange(e.createCall(e.getHelperName("__decorate"),void 0,s),o)}function n(t,r,n){return t.requestEmitHelper(u),e.createCall(e.getHelperName("__metadata"),void 0,[e.createLiteral(r),n])}function a(t,r,n,a){return t.requestEmitHelper(_),e.setTextRange(e.createCall(e.getHelperName("__param"),void 0,[e.createLiteral(n),r]),a)}var i,o=!1;!function(e){e[e.ClassAliases=1]="ClassAliases",e[e.NamespaceExports=2]="NamespaceExports",e[e.NonQualifiedEnumMembers=8]="NonQualifiedEnumMembers"}(i||(i={}));var s;!function(e){e[e.None=0]="None",e[e.HasStaticInitializedProperties=1]="HasStaticInitializedProperties",e[e.HasConstructorDecorators=2]="HasConstructorDecorators",e[e.HasMemberDecorators=4]="HasMemberDecorators",e[e.IsExportOfNamespace=8]="IsExportOfNamespace",e[e.IsNamedExternalExport=16]="IsNamedExternalExport",e[e.IsDefaultExternalExport=32]="IsDefaultExternalExport",e[e.HasExtendsClause=64]="HasExtendsClause",e[e.UseImmediatelyInvokedFunctionExpression=128]="UseImmediatelyInvokedFunctionExpression",e[e.HasAnyDecorators=6]="HasAnyDecorators",e[e.NeedsName=5]="NeedsName",e[e.MayNeedImmediatelyInvokedFunctionExpression=7]="MayNeedImmediatelyInvokedFunctionExpression",e[e.IsExported=56]="IsExported"}(s||(s={})),e.transformTypeScript=t;var c={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            };'},u={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            };'},_={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            };"}}(ts||(ts={}));var ts;!function(e){function t(t){function n(r){if(r.isDeclarationFile)return r;x=r;var n=e.visitEachChild(r,a,t);return e.addEmitHelpers(n,t.readEmitHelpers()),x=void 0,n}function a(r){if(0===(16&r.transformFlags))return r;switch(r.kind){case 120:return;case 191:return i(r);case 151:return o(r);case 228:return s(r);case 186:return c(r);case 187:return u(r);default:return e.visitEachChild(r,a,t)}}function i(t){return e.setOriginalNode(e.setTextRange(e.createYield(void 0,e.visitNode(t.expression,a,e.isExpression)),t),t)}function o(r){return e.updateMethod(r,void 0,e.visitNodes(r.modifiers,a,e.isModifier),r.asteriskToken,r.name,void 0,void 0,e.visitParameterList(r.parameters,a,t),void 0,2&e.getFunctionFlags(r)?_(r):e.visitFunctionBody(r.body,a,t))}function s(r){return e.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,a,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,a,t),void 0,2&e.getFunctionFlags(r)?_(r):e.visitFunctionBody(r.body,a,t))}function c(r){return e.updateFunctionExpression(r,e.visitNodes(r.modifiers,a,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,a,t),void 0,2&e.getFunctionFlags(r)?_(r):e.visitFunctionBody(r.body,a,t))}function u(r){return e.updateArrowFunction(r,e.visitNodes(r.modifiers,a,e.isModifier),void 0,e.visitParameterList(r.parameters,a,t),void 0,2&e.getFunctionFlags(r)?_(r):e.visitFunctionBody(r.body,a,t))}function _(n){S();var i=e.getOriginalNode(n,e.isFunctionLike),o=i.type,s=A<2?d(o):void 0,c=187===n.kind,u=0!==(8192&E.getNodeCheckFlags(n));if(c){var _=r(t,u,s,l(n.body)),f=T();if(e.some(f)){var m=e.convertToFunctionBody(_);return e.updateBlock(m,e.setTextRange(e.createNodeArray(e.concatenate(m.statements,f)),m.statements))}return _}var g=[],y=e.addPrologue(g,n.body.statements,!1,a);g.push(e.createReturn(r(t,u,s,l(n.body,y)))),e.addRange(g,T());var m=e.createBlock(g,!0);return e.setTextRange(m,n.body),A>=2&&(4096&E.getNodeCheckFlags(n)?(p(),e.addEmitHelper(m,e.advancedAsyncSuperHelper)):2048&E.getNodeCheckFlags(n)&&(p(),e.addEmitHelper(m,e.asyncSuperHelper))),m}function l(r,n){if(e.isBlock(r))return e.updateBlock(r,e.visitLexicalEnvironment(r.statements,a,t,n));D();var i=e.convertToFunctionBody(e.visitNode(r,a,e.isConciseBody)),o=T();return e.updateBlock(i,e.setTextRange(e.createNodeArray(e.concatenate(i.statements,o)),i.statements))}function d(t){var r=t&&e.getEntityNameFromTypeNode(t);if(r&&e.isEntityName(r)){var n=E.getTypeReferenceSerializationKind(r);if(n===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||n===e.TypeReferenceSerializationKind.Unknown)return r}}function p(){0===(1&C)&&(C|=1,t.enableSubstitution(181),t.enableSubstitution(179),t.enableSubstitution(180),t.enableEmitNotification(229),t.enableEmitNotification(151),t.enableEmitNotification(153),t.enableEmitNotification(154),t.enableEmitNotification(152))}function f(e,t,r){if(1&C&&b(t)){var n=6144&E.getNodeCheckFlags(t);if(n!==w){var a=w;return w=n,P(e,t,r),void(w=a)}}P(e,t,r)}function m(e,t){return t=F(e,t),1===e&&w?g(t):t}function g(e){switch(e.kind){case 179:return y(e);case 180:return v(e);case 181:return h(e)}return e}function y(t){return 97===t.expression.kind?k(e.createLiteral(t.name.text),t):t}function v(e){return 97===e.expression.kind?k(e.argumentExpression,e):e}function h(t){var r=t.expression;if(e.isSuperProperty(r)){var n=e.isPropertyAccessExpression(r)?y(r):v(r);return e.createCall(e.createPropertyAccess(n,"call"),void 0,[e.createThis()].concat(t.arguments))}return t}function b(e){var t=e.kind;return 229===t||152===t||151===t||153===t||154===t}function k(t,r){return 4096&w?e.setTextRange(e.createPropertyAccess(e.createCall(e.createIdentifier("_super"),void 0,[t]),"value"),r):e.setTextRange(e.createCall(e.createIdentifier("_super"),void 0,[t]),r)}var x,C,D=t.startLexicalEnvironment,S=t.resumeLexicalEnvironment,T=t.endLexicalEnvironment,E=t.getEmitResolver(),N=t.getCompilerOptions(),A=e.getEmitScriptTarget(N),w=0,P=t.onEmitNode,F=t.onSubstituteNode;return t.onEmitNode=f,t.onSubstituteNode=m,n}function r(t,r,n,i){t.requestEmitHelper(a);var o=e.createFunctionExpression(void 0,e.createToken(39),void 0,void 0,[],void 0,i);return(o.emitNode||(o.emitNode={})).flags|=262144,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            };'};e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:"\n            const _super = name => super[name];\n        "},e.advancedAsyncSuperHelper={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);\n        "}}(ts||(ts={}));var ts;!function(e){function t(t){function s(r){if(r.isDeclarationFile)return r;var n=e.visitEachChild(r,c,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}function c(e){return l(e,!1)}function u(e){return l(e,!0)}function _(e){if(120!==e.kind)return e}function l(r,n){if(0===(8&r.transformFlags))return r;switch(r.kind){case 191:return d(r);case 197:return p(r);case 222:return f(r);case 178:return g(r);case 194:return h(r,n);case 226:return b(r);case 216:return C(r,void 0);case 214:return k(r);case 190:return x(r);case 152:return A(r);case 151:return F(r);case 153:return w(r);case 154:return P(r);case 228:return O(r);case 186:return R(r);case 187:return I(r);case 146:return N(r);case 210:return y(r);case 185:return v(r,n);default:return e.visitEachChild(r,c,t)}}function d(r){return 2&ne&&1&ne?e.setOriginalNode(e.setTextRange(e.createYield(n(t,e.visitNode(r.expression,c,e.isExpression))),r),r):e.visitEachChild(r,c,t)}function p(r){if(2&ne&&1&ne&&r.asteriskToken){var a=e.visitNode(r.expression,c,e.isExpression);return e.setOriginalNode(e.setTextRange(e.createYield(n(t,e.updateYield(r,r.asteriskToken,i(t,o(t,a,a),a)))),r),r)}return e.visitEachChild(r,c,t)}function f(r){if(2&ne&&1&ne){var n=e.unwrapInnermostStatementOfLabel(r);return 216===n.kind&&n.awaitModifier?C(n,r):e.restoreEnclosingLabel(e.visitEachChild(r,c,t),r)}return e.visitEachChild(r,c,t)}function m(t){for(var r,n=[],a=0,i=t;a<i.length;a++){var o=i[a];if(263===o.kind){r&&(n.push(e.createObjectLiteral(r)),r=void 0);var s=o.expression;n.push(e.visitNode(s,c,e.isExpression))}else if(r||(r=[]),261===o.kind){var u=o;r.push(e.createPropertyAssignment(u.name,e.visitNode(u.initializer,c,e.isExpression)))}else r.push(o)}return r&&n.push(e.createObjectLiteral(r)),n}function g(n){if(1048576&n.transformFlags){var a=m(n.properties);return a.length&&178!==a[0].kind&&a.unshift(e.createObjectLiteral()),r(t,a)}return e.visitEachChild(n,c,t)}function y(r){return e.visitEachChild(r,u,t)}function v(r,n){return e.visitEachChild(r,n?u:c,t)}function h(r,n){return e.isDestructuringAssignment(r)&&1048576&r.left.transformFlags?e.flattenDestructuringAssignment(r,c,t,1,!n):26===r.operatorToken.kind?e.updateBinary(r,e.visitNode(r.left,u,e.isExpression),e.visitNode(r.right,n?u:c,e.isExpression)):e.visitEachChild(r,c,t)}function b(r){return e.isBindingPattern(r.name)&&1048576&r.name.transformFlags?e.flattenDestructuringBinding(r,c,t,1):e.visitEachChild(r,c,t)}function k(t){return e.updateFor(t,e.visitNode(t.initializer,u,e.isForInitializer),e.visitNode(t.condition,c,e.isExpression),e.visitNode(t.incrementor,c,e.isExpression),e.visitNode(t.statement,c,e.isStatement))}function x(r){return e.visitEachChild(r,u,t)}function C(r,n){return 1048576&r.initializer.transformFlags&&(r=D(r)),r.awaitModifier?E(r,n):e.restoreEnclosingLabel(e.visitEachChild(r,c,t),n)}function D(t){var r=e.skipParentheses(t.initializer);if(e.isVariableDeclarationList(r)||e.isAssignmentPattern(r)){var n=void 0,a=void 0,i=e.createTempVariable(void 0),o=[e.createForOfBindingStatement(r,i)];return e.isBlock(t.statement)&&(e.addRange(o,t.statement.statements),n=t.statement,a=t.statement.statements),e.updateForOf(t,t.awaitModifier,e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(i),t.initializer)],1),t.initializer),t.expression,e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(o),a),!0),n))}return t}function S(t,r){var n,a,i=e.createForOfBindingStatement(t.initializer,r),o=[e.visitNode(i,c,e.isStatement)],s=e.visitNode(t.statement,c,e.isStatement);return e.isBlock(s)?(e.addRange(o,s.statements),n=s,a=s.statements):o.push(s),e.setEmitFlags(e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(o),a),!0),n),432)}function T(r){return 1&ne?e.createYield(void 0,n(t,r)):e.createAwait(r)}function E(r,n){var a=e.visitNode(r.expression,c,e.isExpression),i=e.isIdentifier(a)?e.getGeneratedNameForNode(a):e.createTempVariable(void 0),s=e.isIdentifier(a)?e.getGeneratedNameForNode(i):e.createTempVariable(void 0),u=e.createUniqueName("e"),_=e.getGeneratedNameForNode(u),l=e.createTempVariable(void 0),d=o(t,a,r.expression),p=e.createCall(e.createPropertyAccess(i,"next"),void 0,[]),f=e.createPropertyAccess(s,"done"),m=e.createPropertyAccess(s,"value"),g=e.createFunctionCall(l,i,[]);Q(u),Q(l);var y=e.setEmitFlags(e.setTextRange(e.createFor(e.setEmitFlags(e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(i,void 0,d),r.expression),e.createVariableDeclaration(s)]),r.expression),2097152),e.createComma(e.createAssignment(s,T(p)),e.createLogicalNot(f)),void 0,S(r,T(m))),r),256);return e.createTry(e.createBlock([e.restoreEnclosingLabel(y,n)]),e.createCatchClause(e.createVariableDeclaration(_),e.setEmitFlags(e.createBlock([e.createStatement(e.createAssignment(u,e.createObjectLiteral([e.createPropertyAssignment("error",_)])))]),1)),e.createBlock([e.createTry(e.createBlock([e.setEmitFlags(e.createIf(e.createLogicalAnd(e.createLogicalAnd(s,e.createLogicalNot(f)),e.createAssignment(l,e.createPropertyAccess(i,"return"))),e.createStatement(T(g))),1)]),void 0,e.setEmitFlags(e.createBlock([e.setEmitFlags(e.createIf(u,e.createThrow(e.createPropertyAccess(u,"error"))),1)]),1))]))}function N(r){return 1048576&r.transformFlags?e.updateParameter(r,void 0,void 0,r.dotDotDotToken,e.getGeneratedNameForNode(r),void 0,void 0,e.visitNode(r.initializer,c,e.isExpression)):e.visitEachChild(r,c,t)}function A(r){var n=ne;ne=0;var a=e.updateConstructor(r,void 0,r.modifiers,e.visitParameterList(r.parameters,c,t),L(r));return ne=n,a}function w(r){var n=ne;ne=0;var a=e.updateGetAccessor(r,void 0,r.modifiers,e.visitNode(r.name,c,e.isPropertyName),e.visitParameterList(r.parameters,c,t),void 0,L(r));return ne=n,a}function P(r){var n=ne;ne=0;var a=e.updateSetAccessor(r,void 0,r.modifiers,e.visitNode(r.name,c,e.isPropertyName),e.visitParameterList(r.parameters,c,t),L(r));return ne=n,a}function F(r){var n=ne;ne=e.getFunctionFlags(r);var a=e.updateMethod(r,void 0,1&ne?e.visitNodes(r.modifiers,_,e.isModifier):r.modifiers,2&ne?void 0:r.asteriskToken,e.visitNode(r.name,c,e.isPropertyName),e.visitNode(void 0,c,e.isToken),void 0,e.visitParameterList(r.parameters,c,t),void 0,2&ne&&1&ne?M(r):L(r));return ne=n,a}function O(r){var n=ne;ne=e.getFunctionFlags(r);var a=e.updateFunctionDeclaration(r,void 0,1&ne?e.visitNodes(r.modifiers,_,e.isModifier):r.modifiers,2&ne?void 0:r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,c,t),void 0,2&ne&&1&ne?M(r):L(r));return ne=n,a}function I(r){var n=ne;ne=e.getFunctionFlags(r);var a=e.updateArrowFunction(r,r.modifiers,void 0,e.visitParameterList(r.parameters,c,t),void 0,L(r));return ne=n,a}function R(r){var n=ne;ne=e.getFunctionFlags(r);var a=e.updateFunctionExpression(r,1&ne?e.visitNodes(r.modifiers,_,e.isModifier):r.modifiers,2&ne?void 0:r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,c,t),void 0,2&ne&&1&ne?M(r):L(r));return ne=n,a}function M(r){G();var n=[],i=e.addPrologue(n,r.body.statements,!1,c);B(n,r),n.push(e.createReturn(a(t,e.createFunctionExpression(void 0,e.createToken(39),r.name&&e.getGeneratedNameForNode(r.name),void 0,[],void 0,e.updateBlock(r.body,e.visitLexicalEnvironment(r.body.statements,c,t,i)))))),e.addRange(n,X());var o=e.updateBlock(r.body,n);return $>=2&&(4096&Y.getNodeCheckFlags(r)?(J(),e.addEmitHelper(o,e.advancedAsyncSuperHelper)):2048&Y.getNodeCheckFlags(r)&&(J(),e.addEmitHelper(o,e.asyncSuperHelper))),o}function L(t){G();var r=0,n=[],a=e.visitNode(t.body,c,e.isConciseBody);e.isBlock(a)&&(r=e.addPrologue(n,a.statements,!1,c)),e.addRange(n,B(void 0,t));var i=X();if(r>0||e.some(n)||e.some(i)){var o=e.convertToFunctionBody(a,!0);return e.addRange(n,o.statements.slice(r)),e.addRange(n,i),e.updateBlock(o,e.setTextRange(e.createNodeArray(n),o.statements))}return a}function B(r,n){for(var a=0,i=n.parameters;a<i.length;a++){var o=i[a];if(1048576&o.transformFlags){var s=e.getGeneratedNameForNode(o),u=e.flattenDestructuringBinding(o,c,t,1,s,!1,!0);if(e.some(u)){var _=e.createVariableStatement(void 0,e.createVariableDeclarationList(u));e.setEmitFlags(_,1048576),r=e.append(r,_)}}}return r}function J(){0===(1&re)&&(re|=1,t.enableSubstitution(181),t.enableSubstitution(179),t.enableSubstitution(180),t.enableEmitNotification(229),t.enableEmitNotification(151),t.enableEmitNotification(153),t.enableEmitNotification(154),t.enableEmitNotification(152))}function z(e,t,r){if(1&re&&W(t)){var n=6144&Y.getNodeCheckFlags(t);if(n!==ae){var a=ae;return ae=n,ee(e,t,r),void(ae=a)}}ee(e,t,r)}function K(e,t){return t=te(e,t),1===e&&ae?j(t):t}function j(e){switch(e.kind){case 179:return V(e);case 180:return U(e);case 181:return q(e)}return e}function V(t){return 97===t.expression.kind?H(e.createLiteral(t.name.text),t):t}function U(e){return 97===e.expression.kind?H(e.argumentExpression,e):e}function q(t){var r=t.expression;if(e.isSuperProperty(r)){var n=e.isPropertyAccessExpression(r)?V(r):U(r);return e.createCall(e.createPropertyAccess(n,"call"),void 0,[e.createThis()].concat(t.arguments))}return t}function W(e){var t=e.kind;return 229===t||152===t||151===t||153===t||154===t}function H(t,r){return 4096&ae?e.setTextRange(e.createPropertyAccess(e.createCall(e.createIdentifier("_super"),void 0,[t]),"value"),r):e.setTextRange(e.createCall(e.createIdentifier("_super"),void 0,[t]),r)}var G=t.resumeLexicalEnvironment,X=t.endLexicalEnvironment,Q=t.hoistVariableDeclaration,Y=t.getEmitResolver(),Z=t.getCompilerOptions(),$=e.getEmitScriptTarget(Z),ee=t.onEmitNode;t.onEmitNode=z;var te=t.onSubstituteNode;t.onSubstituteNode=K;var re,ne,ae=0;return s}function r(t,r){return t.getCompilerOptions().target>=2?e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"assign"),void 0,r):(t.requestEmitHelper(c),e.createCall(e.getHelperName("__assign"),void 0,r))}function n(t,r){return t.requestEmitHelper(u),e.createCall(e.getHelperName("__await"),void 0,[r])}function a(t,r){return t.requestEmitHelper(u),t.requestEmitHelper(_),(r.emitNode||(r.emitNode={})).flags|=262144,e.createCall(e.getHelperName("__asyncGenerator"),void 0,[e.createThis(),e.createIdentifier("arguments"),r])}function i(t,r,n){return t.requestEmitHelper(u),t.requestEmitHelper(l),e.setTextRange(e.createCall(e.getHelperName("__asyncDelegator"),void 0,[r]),n)}function o(t,r,n){return t.requestEmitHelper(d),e.setTextRange(e.createCall(e.getHelperName("__asyncValues"),void 0,[r]),n)}var s;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(s||(s={})),e.transformESNext=t;var c={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;var u={name:"typescript:await",scoped:!1,text:"\n            var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }\n        "},_={name:"typescript:asyncGenerator",scoped:!1,text:'\n            var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n                if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n                var g = generator.apply(thisArg, _arguments || []), i, q = [];\n                return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;\n                function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n                function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n                function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);  }\n                function fulfill(value) { resume("next", value); }\n                function reject(value) { resume("throw", value); }\n                function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n            };\n        '},l={name:"typescript:asyncDelegator",scoped:!1,text:'\n            var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n                var i, p;\n                return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n                function verb(n, f) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; }; }\n            };\n        '},d={name:"typescript:asyncValues",scoped:!1,text:'\n            var __asyncValues = (this && this.__asyncIterator) || function (o) {\n                if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n                var m = o[Symbol.asyncIterator];\n                return m ? m.call(o) : typeof __values === "function" ? __values(o) : o[Symbol.iterator]();\n            };\n        '}}(ts||(ts={}));var ts;!function(e){function t(t){function n(r){if(r.isDeclarationFile)return r;var n=e.visitEachChild(r,a,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}function a(e){return 4&e.transformFlags?i(e):e}function i(r){switch(r.kind){case 249:return s(r,!1);case 250:return c(r,!1);case 256:return b(r);default:return e.visitEachChild(r,a,t)}}function o(t){switch(t.kind){case 10:return p(t);case 256:return b(t);case 249:return s(t,!0);case 250: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=v(r),u=r.attributes.properties;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=h(t),n=d(t.initializer);return e.createPropertyAssignment(r,n)}function d(t){if(void 0===t)return e.createTrue();if(9===t.kind){var r=y(t.text);return r?e.setTextRange(e.createLiteral(r),t):t}return 256===t.kind?void 0===t.expression?e.createTrue():b(t):void e.Debug.failBadSyntaxKind(t)}function p(t){var r=f(e.getTextOfNode(t,!0));return void 0===r?void 0:e.createLiteral(r)}function f(t){for(var r,n=0,a=-1,i=0;i<t.length;i++){var o=t.charCodeAt(i);e.isLineBreak(o)?(n!==-1&&a!==-1&&(r=m(r,t.substr(n,a-n+1))),n=-1):e.isWhiteSpaceSingleLine(o)||(a=i,n===-1&&(n=i))}return n!==-1?m(r,t.substr(n)):r}function m(e,t){var r=g(t);return void 0===e?r:e+" "+r}function g(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.get(s);return c?String.fromCharCode(c):e})}function y(e){var t=g(e);return t===e?void 0:t}function v(t){if(249===t.kind)return v(t.openingElement);var r=t.tagName;return e.isIdentifier(r)&&e.isIntrinsicJsxName(r.text)?e.createLiteral(r.text):e.createExpressionFromEntityName(r)}function h(t){var r=t.name;return/^[A-Za-z_]\w*$/.test(r.text)?r:e.createLiteral(r.text)}function b(t){return e.visitNode(t.expression,a,e.isExpression)}var k=t.getCompilerOptions();return n}e.transformJsx=t;var r=e.createMapFromTemplate({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 r(r){return r.isDeclarationFile?r:e.visitEachChild(r,n,t)}function n(r){if(0===(32&r.transformFlags))return r;switch(r.kind){case 194:return a(r);default:return e.visitEachChild(r,n,t)}}function a(r){switch(r.operatorToken.kind){case 62:return i(r);case 40: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.setTextRange(e.createElementAccess(e.setTextRange(e.createAssignment(c,i.expression),i.expression),e.setTextRange(e.createAssignment(u,i.argumentExpression),i.argumentExpression)),i),a=e.setTextRange(e.createElementAccess(c,u),i)}else if(e.isPropertyAccessExpression(i)){var c=e.createTempVariable(s);r=e.setTextRange(e.createPropertyAccess(e.setTextRange(e.createAssignment(c,i.expression),i.expression),i.name),i),a=e.setTextRange(e.createPropertyAccess(c,i.name),i)}else r=i,a=i;return e.setTextRange(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(r.isDeclarationFile)return r;Ft=r,Ot=r.text;var n=f(r);return e.addEmitHelpers(n,t.readEmitHelpers()),Ft=void 0,Ot=void 0,It=0,n}function a(e,t){var r=It;return It=16383&(It&~e|t),r}function i(e,t,r){It=(It&~t|r)&-16384|e}function o(e){return 4096&It&&219===e.kind&&!e.expression}function s(t){if(!e.isVariableStatement(t))return!1;var r=e.singleOrUndefined(t.declarationList.declarations);return r&&r.initializer&&e.isIdentifier(r.name)&&(e.isClassLike(r.initializer)||e.isAssignmentExpression(r.initializer)&&e.isIdentifier(r.initializer.left)&&e.isClassLike(r.initializer.right))}function c(t){var r=e.tryCast(t,e.isCallExpression);if(!r||e.isParseTreeNode(r)||e.some(r.typeArguments)||e.some(r.arguments))return!1;var n=e.tryCast(e.skipOuterExpressions(r.expression),e.isFunctionExpression);if(!n||e.isParseTreeNode(n)||e.some(n.typeParameters)||e.some(n.parameters)||n.type||!n.body)return!1;var a=n.body.statements;if(a.length<2)return!1;var i=a[0];if(e.isParseTreeNode(i)||!e.isClassLike(i)&&!s(i))return!1;var o=e.elementAt(a,-1),c=e.tryCast(e.isVariableStatement(o)?e.elementAt(a,-2):o,e.isReturnStatement);return!!(c&&c.expression&&e.isIdentifier(e.skipOuterExpressions(c.expression)))}function u(t){return 0!==(128&t.transformFlags)||void 0!==Rt||4096&It&&e.isStatement(t)||e.isIterationStatement(t,!1)&&Ce(t)||c(t)}function _(e){return u(e)?p(e):e}function l(e){return u(e)?te(e,!0):e}function d(e){return 97===e.kind?_t(!0):_(e)}function p(r){switch(r.kind){case 115:return;case 229:return x(r);case 199:return C(r);case 146:return I(r);case 228:return Y(r);case 187:return X(r);case 186:return Q(r);case 226:return ue(r);case 71:return b(r);case 227:return oe(r);case 221:return m(r);case 235:return g(r);case 207:return te(r,!1);case 218:case 217:return k(r);case 222:return de(r);case 212:case 213:return me(r,void 0);case 214:return ge(r,void 0);case 215:return ye(r,void 0);case 216:return ve(r,void 0);case 210:return re(r);case 178:return xe(r);case 260:return Me(r);case 262:return ze(r);case 144:return Ke(r);case 177:return Ve(r);case 181:return Ue(r);case 182:return Ge(r);case 185:return ne(r,!0);case 194:return ae(r,!0);case 13:case 14:case 15:case 16:return tt(r);case 9:return rt(r);case 8:return nt(r);case 183:return at(r);case 196:return ot(r);case 197:return je(r);case 198:return $e(r);case 97:return _t(!1);case 99:return h(r);case 204:return lt(r);case 151:return Be(r);case 153:case 154:return Je(r);case 208:return ie(r);case 219:return v(r);default:return e.visitEachChild(r,_,t)}}function f(t){var r=a(3968,64),n=[];Dt();var o=e.addStandardPrologue(n,t.statements,!1);return K(n,t),o=e.addCustomPrologue(n,t.statements,o,_),e.addRange(n,e.visitNodes(t.statements,_,e.isStatement,o)),e.addRange(n,Tt()),i(r,0,0),e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray(n),t.statements))}function m(r){if(void 0!==Rt){var n=Rt.allowedNonLabeledJumps;Rt.allowedNonLabeledJumps|=2;var a=e.visitEachChild(r,_,t);return Rt.allowedNonLabeledJumps=n,a}return e.visitEachChild(r,_,t)}function g(r){var n=a(4032,0),o=e.visitEachChild(r,_,t);return i(n,0,0),o}function y(t){return e.setOriginalNode(e.createReturn(e.createIdentifier("_this")),t)}function v(r){return Rt?(Rt.nonLocalJumps|=8,o(r)&&(r=y(r)),e.createReturn(e.createObjectLiteral([e.createPropertyAssignment(e.createIdentifier("value"),r.expression?e.visitNode(r.expression,_,e.isExpression):e.createVoidZero())]))):o(r)?y(r):e.visitEachChild(r,_,t)}function h(t){return Rt?2&It?(Rt.containsLexicalThis=!0,t):Rt.thisName||(Rt.thisName=e.createUniqueName("this")):t}function b(t){return Rt?e.isGeneratedIdentifier(t)?t:"arguments"===t.text&&At.isArgumentsLocalBinding(t)?Rt.argumentsName||(Rt.argumentsName=e.createUniqueName("arguments")):t:t;
}function k(r){if(Rt){var n=218===r.kind?2:4,a=r.label&&Rt.labels&&Rt.labels.get(r.label.text)||!r.label&&Rt.allowedNonLabeledJumps&n;if(!a){var i=void 0;r.label?218===r.kind?(i="break-"+r.label.text,Ae(Rt,!0,r.label.text,i)):(i="continue-"+r.label.text,Ae(Rt,!1,r.label.text,i)):218===r.kind?(Rt.nonLocalJumps|=2,i="break"):(Rt.nonLocalJumps|=4,i="continue");var o=e.createLiteral(i);if(Rt.loopOutParameters.length){for(var s=Rt.loopOutParameters,c=void 0,u=0;u<s.length;u++){var l=Te(s[u],1);c=0===u?l:e.createBinary(c,26,l)}o=e.createBinary(c,26,o)}return e.createReturn(o)}}return e.visitEachChild(r,_,t)}function x(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]));if(e.setOriginalNode(a,t),e.setTextRange(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===(4194304&o)&&(n.push(e.createEndOfDeclarationMarker(t)),e.setEmitFlags(a,4194304|o)),e.singleOrMany(n)}function C(e){return D(e)}function D(t){t.name&&pt();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));65536&e.getEmitFlags(t)&&e.setEmitFlags(n,65536);var a=e.createPartiallyEmittedExpression(n);a.end=t.end,e.setEmitFlags(a,1536);var i=e.createPartiallyEmittedExpression(a);return i.end=e.skipTrivia(Ot,t.pos),e.setEmitFlags(i,1536),e.createParen(e.createCall(i,void 0,r?[e.visitNode(r.expression,_,e.isExpression)]:[]))}function S(t,r){var n=[];Dt(),T(n,t,r),E(n,t,r),U(n,t);var a=e.createTokenRange(e.skipTrivia(Ot,t.members.end),18),i=e.getInternalName(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,Tt());var c=e.createBlock(e.setTextRange(e.createNodeArray(n),t.members),!0);return e.setEmitFlags(c,1536),c}function T(n,a,i){i&&n.push(e.setTextRange(e.createStatement(r(t,e.getLocalName(a))),i))}function E(t,r,n){var o=Rt;Rt=void 0;var s=a(16278,73),c=e.getFirstConstructorWithBody(r),u=Ct(c,void 0!==n),_=e.createFunctionDeclaration(void 0,void 0,void 0,e.getInternalName(r),void 0,N(c,u),void 0,A(c,r,n,u));e.setTextRange(_,c||r),n&&e.setEmitFlags(_,8),t.push(_),i(s,49152,0),Rt=o}function N(r,n){return e.visitParameterList(r&&!n&&r.parameters,_,t)||[]}function A(t,r,n,a){var i=[];St();var o=-1;a?o=0:t&&(o=e.addStandardPrologue(i,t.body.statements,!1)),t&&(M(i,t),z(i,t,a),a||(o=e.addCustomPrologue(i,t.body.statements,o,_)),e.Debug.assert(o>=0,"statementOffset not initialized correctly!"));var s=n&&95!==e.skipOuterExpressions(n.expression).kind,c=P(i,t,s,a,o);1!==c&&2!==c||o++,t&&(1===c&&(It|=4096),e.addRange(i,e.visitNodes(t.body.statements,_,e.isStatement,o))),!s||2===c||t&&w(t.body)||i.push(e.createReturn(e.createIdentifier("_this"))),e.addRange(i,Tt()),t&&V(i,t,!1);var u=e.createBlock(e.setTextRange(e.createNodeArray(i),t?t.body.statements:r.members),!0);return e.setTextRange(u,t?t.body:r),t||e.setEmitFlags(u,1536),u}function w(t){if(219===t.kind)return!0;if(211===t.kind){var r=t;if(r.elseStatement)return w(r.thenStatement)&&w(r.elseStatement)}else if(207===t.kind){var n=e.lastOrUndefined(t.statements);if(n&&w(n))return!0}return!1}function P(t,r,n,a,i){if(!n)return r&&K(t,r),0;if(!r)return t.push(e.createReturn(O())),2;if(a)return j(t,r,O()),ft(),1;var o,s,c=r.body.statements;if(i<c.length&&(o=c[i],210===o.kind&&e.isSuperCall(o.expression)&&(s=We(o.expression))),s&&i===c.length-1&&!(49152&r.transformFlags)){var u=e.createReturn(s);return 194===s.kind&&181===s.left.kind||e.Debug.fail("Assumed generated super call would have form 'super.call(...) || this'."),e.setCommentRange(u,e.getCommentRange(e.setEmitFlags(s.left,1536))),t.push(u),2}return j(t,r,s||F(),o),s?1:0}function F(){return e.setEmitFlags(e.createThis(),4)}function O(){return e.createLogicalOr(e.createLogicalAnd(e.createStrictInequality(e.createIdentifier("_super"),e.createNull()),e.createFunctionApply(e.createIdentifier("_super"),F(),e.createIdentifier("arguments"))),F())}function I(t){return t.dotDotDotToken?void 0:e.isBindingPattern(t.name)?e.setOriginalNode(e.setTextRange(e.createParameter(void 0,void 0,void 0,e.getGeneratedNameForNode(t),void 0,void 0,void 0),t),t):t.initializer?e.setOriginalNode(e.setTextRange(e.createParameter(void 0,void 0,void 0,t.name,void 0,void 0,void 0),t),t):t}function R(e){return 0!==(131072&e.transformFlags)}function M(t,r){if(R(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&&B(t,i,o,s))}}function L(r,n,a,i){var o=e.getGeneratedNameForNode(n);a.elements.length>0?r.push(e.setEmitFlags(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(n,_,t,0,o))),1048576)):i&&r.push(e.setEmitFlags(e.createStatement(e.createAssignment(o,e.visitNode(i,_,e.isExpression))),1048576))}function B(t,r,n,a){a=e.visitNode(a,_,e.isExpression);var i=e.createIf(e.createTypeCheck(e.getSynthesizedClone(n),"undefined"),e.setEmitFlags(e.setTextRange(e.createBlock([e.createStatement(e.setTextRange(e.createAssignment(e.setEmitFlags(e.getMutableClone(n),48),e.setEmitFlags(a,48|e.getEmitFlags(a))),r))]),r),417));i.startsOnNewLine=!0,e.setTextRange(i,r),e.setEmitFlags(i,1048992),t.push(i)}function J(e,t){return e&&e.dotDotDotToken&&71===e.name.kind&&!t}function z(t,r,n){var a=e.lastOrUndefined(r.parameters);if(J(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.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(i,void 0,e.createArrayLiteral([]))])),a),1048576));var u=e.createFor(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(c,void 0,e.createLiteral(s))]),a),e.setTextRange(e.createLessThan(c,e.createPropertyAccess(e.createIdentifier("arguments"),"length")),a),e.setTextRange(e.createPostfixIncrement(c),a),e.createBlock([e.startOnNewLine(e.setTextRange(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,1048576),e.startOnNewLine(u),t.push(u)}}function K(t,r){32768&r.transformFlags&&187!==r.kind&&j(t,r,e.createThis())}function j(t,r,n,a){ft();var i=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("_this",void 0,n)]));e.setEmitFlags(i,1050112),e.setTextRange(i,a),e.setSourceMapRange(i,r),t.push(i)}function V(t,r,n){if(16384&It){var a=void 0;switch(r.kind){case 187:return t;case 151:case 153:case 154:a=e.createVoidZero();break;case 152:a=e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor");break;case 228:case 186:a=e.createConditional(e.createLogicalAnd(e.setEmitFlags(e.createThis(),4),e.createBinary(e.setEmitFlags(e.createThis(),4),93,e.getLocalName(r))),e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor"),e.createVoidZero());break;default:e.Debug.failBadSyntaxKind(r)}var i=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("_newTarget",void 0,a)]));if(n)return[i].concat(t);t.unshift(i)}return t}function U(t,r){for(var n=0,a=r.members;n<a.length;n++){var i=a[n];switch(i.kind){case 206:t.push(q(i));break;case 151:t.push(W(xt(r,i),i,r));break;case 153:case 154:var o=e.getAllAccessorDeclarations(r.members,i);i===o.firstAccessor&&t.push(H(xt(r,i),o,r));break;case 152:break;default:e.Debug.failBadSyntaxKind(r)}}}function q(t){return e.setTextRange(e.createEmptyStatement(),t)}function W(t,r,n){var o=a(0,0),s=e.getCommentRange(r),c=e.getSourceMapRange(r),u=e.createMemberAccessForPropertyName(t,e.visitNode(r.name,_,e.isPropertyName),r.name),l=Z(r,r,void 0,n);e.setEmitFlags(l,1536),e.setSourceMapRange(l,c);var d=e.setTextRange(e.createStatement(e.createAssignment(u,l)),r);return e.setOriginalNode(d,r),e.setCommentRange(d,s),e.setEmitFlags(d,48),i(o,49152,49152&It?16384:0),d}function H(t,r,n){var a=e.createStatement(G(t,r,n,!1));return e.setEmitFlags(a,1536),e.setSourceMapRange(a,e.getSourceMapRange(r.firstAccessor)),a}function G(t,r,n,o){var s=r.firstAccessor,c=r.getAccessor,u=r.setAccessor,l=a(0,0),d=e.getMutableClone(t);e.setEmitFlags(d,1568),e.setSourceMapRange(d,s.name);var p=e.createExpressionForPropertyName(e.visitNode(s.name,_,e.isPropertyName));e.setEmitFlags(p,1552),e.setSourceMapRange(p,s.name);var f=[];if(c){var m=Z(c,void 0,void 0,n);e.setSourceMapRange(m,e.getSourceMapRange(c)),e.setEmitFlags(m,512);var g=e.createPropertyAssignment("get",m);e.setCommentRange(g,e.getCommentRange(c)),f.push(g)}if(u){var y=Z(u,void 0,void 0,n);e.setSourceMapRange(y,e.getSourceMapRange(u)),e.setEmitFlags(y,512);var v=e.createPropertyAssignment("set",y);e.setCommentRange(v,e.getCommentRange(u)),f.push(v)}f.push(e.createPropertyAssignment("enumerable",e.createTrue()),e.createPropertyAssignment("configurable",e.createTrue()));var h=e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[d,p,e.createObjectLiteral(f,!0)]);return o&&(h.startsOnNewLine=!0),i(l,49152,49152&It?16384:0),h}function X(r){16384&r.transformFlags&&ft();var n=Rt;Rt=void 0;var o=a(16256,66),s=e.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(r.parameters,_,t),void 0,$(r));return e.setTextRange(s,r),e.setOriginalNode(s,r),e.setEmitFlags(s,8),i(o,0,0),Rt=n,s}function Q(r){var n=262144&e.getEmitFlags(r)?a(16278,69):a(16286,65),o=Rt;Rt=void 0;var s=e.visitParameterList(r.parameters,_,t),c=64&r.transformFlags?$(r):ee(r),u=16384&It?e.getLocalName(r):r.name;return i(n,49152,0),Rt=o,e.updateFunctionExpression(r,void 0,r.asteriskToken,u,void 0,s,void 0,c)}function Y(r){var n=Rt;Rt=void 0;var o=a(16286,65),s=e.visitParameterList(r.parameters,_,t),c=64&r.transformFlags?$(r):ee(r),u=16384&It?e.getLocalName(r):r.name;return i(o,49152,0),Rt=n,e.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,_,e.isModifier),r.asteriskToken,u,void 0,s,void 0,c)}function Z(r,n,o,s){var c=Rt;Rt=void 0;var u=s&&e.isClassLike(s)&&!e.hasModifier(r,32)?a(16286,73):a(16286,65),l=e.visitParameterList(r.parameters,_,t),d=$(r);return 16384&It&&!o&&(228===r.kind||186===r.kind)&&(o=e.getGeneratedNameForNode(r)),i(u,49152,0),Rt=c,e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,r.asteriskToken,o,void 0,l,void 0,d),n),r)}function $(r){var n,a,i,o=!1,s=!1,c=[],u=r.body;if(St(),e.isBlock(u)&&(i=e.addStandardPrologue(c,u.statements,!1)),K(c,r),M(c,r),z(c,r,!1),!o&&c.length>0&&(o=!0),e.isBlock(u))i=e.addCustomPrologue(c,u.statements,i,_),n=u.statements,e.addRange(c,e.visitNodes(u.statements,_,e.isStatement,i)),!o&&u.multiLine&&(o=!0);else{e.Debug.assert(187===r.kind),n=e.moveRangeEnd(u,-1);var l=r.equalsGreaterThanToken;e.nodeIsSynthesized(l)||e.nodeIsSynthesized(u)||(e.rangeEndIsOnSameLineAsRangeStart(l,u,Ft)?s=!0:o=!0);var d=e.visitNode(u,_,e.isExpression),p=e.createReturn(d);e.setTextRange(p,u),e.setEmitFlags(p,1440),c.push(p),a=u}var f=t.endLexicalEnvironment();e.addRange(c,f),V(c,r,!1),!o&&f&&f.length&&(o=!0);var m=e.createBlock(e.setTextRange(e.createNodeArray(c),n),o);return e.setTextRange(m,r.body),!o&&s&&e.setEmitFlags(m,1),a&&e.setTokenSourceMapRange(m,18,a),e.setOriginalNode(m,r.body),m}function ee(r){var n=e.visitFunctionBody(r.body,l,t);return e.updateBlock(n,e.setTextRange(e.createNodeArray(V(n.statements,r,!0)),n.statements))}function te(r,n){if(n)return e.visitEachChild(r,_,t);var o=256&It?a(4032,512):a(3904,128),s=e.visitEachChild(r,_,t);return i(o,0,0),s}function re(r){switch(r.expression.kind){case 185:return e.updateStatement(r,ne(r.expression,!1));case 194:return e.updateStatement(r,ae(r.expression,!1))}return e.visitEachChild(r,_,t)}function ne(r,n){if(!n)switch(r.expression.kind){case 185:return e.updateParen(r,ne(r.expression,!1));case 194:return e.updateParen(r,ae(r.expression,!1))}return e.visitEachChild(r,_,t)}function ae(r,n){return e.isDestructuringAssignment(r)?e.flattenDestructuringAssignment(r,_,t,0,n):e.visitEachChild(r,_,t)}function ie(r){var n,o=a(0,e.hasModifier(r,1)?32:0);if(Rt&&0===(3&r.declarationList.flags)){for(var s=void 0,c=0,u=r.declarationList.declarations;c<u.length;c++){var l=u[c];if(De(Rt,l),l.initializer){var d=void 0;e.isBindingPattern(l.name)?d=e.flattenDestructuringAssignment(l,_,t,0):(d=e.createBinary(l.name,58,e.visitNode(l.initializer,_,e.isExpression)),e.setTextRange(d,l)),s=e.append(s,d)}}n=s?e.setTextRange(e.createStatement(e.inlineExpressions(s)),r):void 0}else n=e.visitEachChild(r,_,t);return i(o,0,0),n}function oe(r){if(64&r.transformFlags){3&r.flags&&pt();var n=e.flatMap(r.declarations,1&r.flags?ce:ue),a=e.createVariableDeclarationList(n);if(e.setOriginalNode(a,r),e.setTextRange(a,r),e.setCommentRange(a,r),8388608&r.transformFlags&&(e.isBindingPattern(r.declarations[0].name)||e.isBindingPattern(e.lastOrUndefined(r.declarations).name))){var i=e.firstOrUndefined(n),o=e.lastOrUndefined(n);e.setSourceMapRange(a,e.createRange(i.pos,o.end))}return a}return e.visitEachChild(r,_,t)}function se(e){var t=At.getNodeCheckFlags(e),r=131072&t,n=262144&t,a=0!==(64&It)||r&&n&&0!==(512&It),i=!a&&0===(2048&It)&&(!At.isDeclarationWithCollidingName(e)||n&&!r&&0===(3072&It));return i}function ce(r){var n=r.name;if(e.isBindingPattern(n))return ue(r);if(!r.initializer&&se(r)){var a=e.getMutableClone(r);return a.initializer=e.createVoidZero(),a}return e.visitEachChild(r,_,t)}function ue(r){var n,o=a(32,0);return n=e.isBindingPattern(r.name)?e.flattenDestructuringBinding(r,_,t,0,void 0,0!==(32&o)):e.visitEachChild(r,_,t),i(o,0,0),n}function _e(e){Rt.labels.set(e.label.text,e.label.text)}function le(e){Rt.labels.set(e.label.text,void 0)}function de(t){Rt&&!Rt.labels&&(Rt.labels=e.createMap());var r=e.unwrapInnermostStatementOfLabel(t,Rt&&_e);return e.isIterationStatement(r,!1)?pe(r,t):e.restoreEnclosingLabel(e.visitNode(r,_,e.isStatement),t,Rt&&le)}function pe(e,t){switch(e.kind){case 212:case 213:return me(e,t);case 214:return ge(e,t);case 215:return ye(e,t);case 216:return ve(e,t)}}function fe(e,t,r,n,o){var s=a(e,t),c=Se(r,n,o);return i(s,0,0),c}function me(e,t){return fe(0,256,e,t)}function ge(e,t){return fe(3008,1280,e,t)}function ye(e,t){return fe(1984,2304,e,t)}function ve(e,t){return fe(1984,2304,e,t,Nt.downlevelIteration?ke:be)}function he(r,n,a){var i=[];if(e.isVariableDeclarationList(r.initializer)){3&r.initializer.flags&&pt();var o=e.firstOrUndefined(r.initializer.declarations);if(o&&e.isBindingPattern(o.name)){var s=e.flattenDestructuringBinding(o,_,t,0,n),c=e.setTextRange(e.createVariableDeclarationList(s),r.initializer);e.setOriginalNode(c,r.initializer);var u=s[0],l=e.lastOrUndefined(s);e.setSourceMapRange(c,e.createRange(u.pos,l.end)),i.push(e.createVariableStatement(void 0,c))}else i.push(e.setTextRange(e.createVariableStatement(void 0,e.setOriginalNode(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(o?o.name:e.createTempVariable(void 0),void 0,n)]),e.moveRangePos(r.initializer,-1)),r.initializer)),e.moveRangeEnd(r.initializer,-1)))}else{var d=e.createAssignment(r.initializer,n);e.isDestructuringAssignment(d)?(e.aggregateTransformFlags(d),i.push(e.createStatement(ae(d,!1)))):(d.end=r.initializer.end,i.push(e.setTextRange(e.createStatement(e.visitNode(d,_,e.isExpression)),e.moveRangeEnd(r.initializer,-1))))}var p,f;if(a)e.addRange(i,a);else{var m=e.visitNode(r.statement,_,e.isStatement,e.liftToBlock);e.isBlock(m)?(e.addRange(i,m.statements),p=m,f=m.statements):i.push(m)}return e.setEmitFlags(e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(i),f),!0),p),432)}function be(t,r,n){var a=e.visitNode(t.expression,_,e.isExpression),i=e.createLoopVariable(),o=e.isIdentifier(a)?e.getGeneratedNameForNode(a):e.createTempVariable(void 0);e.setEmitFlags(a,48|e.getEmitFlags(a));var s=e.setTextRange(e.createFor(e.setEmitFlags(e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(i,void 0,e.createLiteral(0)),e.moveRangePos(t.expression,-1)),e.setTextRange(e.createVariableDeclaration(o,void 0,a),t.expression)]),t.expression),2097152),e.setTextRange(e.createLessThan(i,e.createPropertyAccess(o,"length")),t.expression),e.setTextRange(e.createPostfixIncrement(i),t.expression),he(t,e.createElementAccess(o,i),n)),t);return e.setEmitFlags(s,256),e.setTextRange(s,t),e.restoreEnclosingLabel(s,r,Rt&&le)}function ke(r,n,a){var i=e.visitNode(r.expression,_,e.isExpression),o=e.isIdentifier(i)?e.getGeneratedNameForNode(i):e.createTempVariable(void 0),s=e.isIdentifier(i)?e.getGeneratedNameForNode(o):e.createTempVariable(void 0),c=e.createUniqueName("e"),u=e.getGeneratedNameForNode(c),l=e.createTempVariable(void 0),d=e.createValuesHelper(t,i,r.expression),p=e.createCall(e.createPropertyAccess(o,"next"),void 0,[]);Et(c),Et(l);var f=e.setEmitFlags(e.setTextRange(e.createFor(e.setEmitFlags(e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(o,void 0,d),r.expression),e.createVariableDeclaration(s,void 0,p)]),r.expression),2097152),e.createLogicalNot(e.createPropertyAccess(s,"done")),e.createAssignment(s,p),he(r,e.createPropertyAccess(s,"value"),a)),r),256);return e.createTry(e.createBlock([e.restoreEnclosingLabel(f,n,Rt&&le)]),e.createCatchClause(e.createVariableDeclaration(u),e.setEmitFlags(e.createBlock([e.createStatement(e.createAssignment(c,e.createObjectLiteral([e.createPropertyAssignment("error",u)])))]),1)),e.createBlock([e.createTry(e.createBlock([e.setEmitFlags(e.createIf(e.createLogicalAnd(e.createLogicalAnd(s,e.createLogicalNot(e.createPropertyAccess(s,"done"))),e.createAssignment(l,e.createPropertyAccess(o,"return"))),e.createStatement(e.createFunctionCall(l,o,[]))),1)]),void 0,e.setEmitFlags(e.createBlock([e.setEmitFlags(e.createIf(c,e.createThrow(e.createPropertyAccess(c,"error"))),1)]),1))]))}function xe(r){for(var n=r.properties,a=n.length,i=a,o=a,s=0;s<a;s++){var c=n[s];if(16777216&c.transformFlags&&4&It&&s<o&&(o=s),144===c.name.kind){i=s;break}}if(i!==a){o<i&&(i=o);var u=e.createTempVariable(Et),l=[],d=e.createAssignment(u,e.setEmitFlags(e.createObjectLiteral(e.visitNodes(n,_,e.isObjectLiteralElementLike,0,i),r.multiLine),65536));return r.multiLine&&(d.startsOnNewLine=!0),l.push(d),Fe(l,r,u,i),l.push(r.multiLine?e.startOnNewLine(e.getMutableClone(u)):u),e.inlineExpressions(l)}return e.visitEachChild(r,_,t)}function Ce(e){return 0!==(65536&At.getNodeCheckFlags(e))}function De(t,r){function n(r){if(71===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 Se(r,n,a){if(!Ce(r)){var i=void 0;Rt&&(i=Rt.allowedNonLabeledJumps,Rt.allowedNonLabeledJumps=6);var o=a?a(r,n,void 0):e.restoreEnclosingLabel(e.visitEachChild(r,_,t),n,Rt&&le);return Rt&&(Rt.allowedNonLabeledJumps=i),o}var s,c=e.createUniqueName("_loop");switch(r.kind){case 214:case 215:case 216:var u=r.initializer;u&&227===u.kind&&(s=u)}var l=[],d=[];if(s&&3&e.getCombinedNodeFlags(s))for(var p=0,f=s.declarations;p<f.length;p++){var m=f[p];Pe(m,l,d)}var g=Rt;Rt={loopOutParameters:d},g&&(g.argumentsName&&(Rt.argumentsName=g.argumentsName),g.thisName&&(Rt.thisName=g.thisName),g.hoistedLocalVariables&&(Rt.hoistedLocalVariables=g.hoistedLocalVariables)),Dt();var y=e.visitNode(r.statement,_,e.isStatement,e.liftToBlock),v=Tt(),h=Rt;if(Rt=g,d.length||v){var b=e.isBlock(y)?y.statements.slice():[y];d.length&&Ee(d,1,b),e.addRange(b,v),y=e.createBlock(b,!0)}e.isBlock(y)?y.multiLine=!0:y=e.createBlock([y],!0);var k=0!==(16777216&r.statement.transformFlags),x=k&&0!==(4&It),C=0;h.containsLexicalThis&&(C|=8),x&&(C|=262144);var D,S=e.createVariableStatement(void 0,e.setEmitFlags(e.createVariableDeclarationList([e.createVariableDeclaration(c,void 0,e.setEmitFlags(e.createFunctionExpression(void 0,k?e.createToken(39):void 0,void 0,void 0,l,void 0,y),C))]),2097152)),T=[S];if(h.argumentsName&&(g?g.argumentsName=h.argumentsName:(D||(D=[])).push(e.createVariableDeclaration(h.argumentsName,void 0,e.createIdentifier("arguments")))),h.thisName&&(g?g.thisName=h.thisName:(D||(D=[])).push(e.createVariableDeclaration(h.thisName,void 0,e.createIdentifier("this")))),h.hoistedLocalVariables)if(g)g.hoistedLocalVariables=h.hoistedLocalVariables;else{D||(D=[]);for(var E=0,N=h.hoistedLocalVariables;E<N.length;E++){var A=N[E];D.push(e.createVariableDeclaration(A))}}if(d.length){D||(D=[]);for(var w=0,P=d;w<P.length;w++){var F=P[w];D.push(e.createVariableDeclaration(F.outParamName))}}D&&T.push(e.createVariableStatement(void 0,e.createVariableDeclarationList(D)));var O,I=Ne(c,l,h,k);if(a)O=a(r,n,I);else{var R=e.getMutableClone(r);R.statement=void 0,R=e.visitEachChild(R,_,t),R.statement=e.createBlock(I,!0),R.transformFlags=0,e.aggregateTransformFlags(R),O=e.restoreEnclosingLabel(R,n,Rt&&le)}return T.push(O),T}function Te(t,r){var n=0===r?t.outParamName:t.originalName,a=0===r?t.originalName:t.outParamName;return e.createBinary(a,58,n)}function Ee(t,r,n){for(var a=0,i=t;a<i.length;a++){var o=i[a];n.push(e.createStatement(Te(o,r)))}}function Ne(t,r,n,a){var i=Rt,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(39),e.setEmitFlags(c,8388608)):c;if(s)o.push(e.createStatement(u)),Ee(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),Ee(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(_),34,e.createLiteral("object")),d))}if(2&n.nonLocalJumps&&o.push(e.createIf(e.createBinary(_,34,e.createLiteral("break")),e.createBreak())),n.labeledNonLocalBreaks||n.labeledNonLocalContinues){var p=[];we(n.labeledNonLocalBreaks,!0,_,i,p),we(n.labeledNonLocalContinues,!1,_,i,p),o.push(e.createSwitch(_,e.createCaseBlock(p)))}}return o}function Ae(t,r,n,a){r?(t.labeledNonLocalBreaks||(t.labeledNonLocalBreaks=e.createMap()),t.labeledNonLocalBreaks.set(n,a)):(t.labeledNonLocalContinues||(t.labeledNonLocalContinues=e.createMap()),t.labeledNonLocalContinues.set(n,a))}function we(t,r,n,a,i){t&&t.forEach(function(t,o){var s=[];if(!a||a.labels&&a.labels.get(o)){var c=e.createIdentifier(o);s.push(r?e.createBreak(c):e.createContinue(c))}else Ae(a,r,o,t),s.push(e.createReturn(n));i.push(e.createCaseClause(e.createLiteral(t),s))})}function Pe(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)||Pe(s,r,n)}else if(r.push(e.createParameter(void 0,void 0,void 0,a)),2097152&At.getNodeCheckFlags(t)){var c=e.createUniqueName("out_"+e.unescapeIdentifier(a.text));n.push({originalName:a,outParamName:c})}}function Fe(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 153:case 154:var u=e.getAllAccessorDeclarations(r.properties,c);c===u.firstAccessor&&t.push(G(n,u,r,r.multiLine));break;case 151:t.push(Re(c,n,r,r.multiLine));break;case 261:t.push(Oe(c,n,r.multiLine));break;case 262:t.push(Ie(c,n,r.multiLine));break;default:e.Debug.failBadSyntaxKind(r)}}}function Oe(t,r,n){var a=e.createAssignment(e.createMemberAccessForPropertyName(r,e.visitNode(t.name,_,e.isPropertyName)),e.visitNode(t.initializer,_,e.isExpression));return e.setTextRange(a,t),n&&(a.startsOnNewLine=!0),a}function Ie(t,r,n){var a=e.createAssignment(e.createMemberAccessForPropertyName(r,e.visitNode(t.name,_,e.isPropertyName)),e.getSynthesizedClone(t.name));return e.setTextRange(a,t),n&&(a.startsOnNewLine=!0),a}function Re(t,r,n,o){var s=a(0,0),c=e.createAssignment(e.createMemberAccessForPropertyName(r,e.visitNode(t.name,_,e.isPropertyName)),Z(t,t,void 0,n));return e.setTextRange(c,t),o&&(c.startsOnNewLine=!0),i(s,49152,49152&It?16384:0),c}function Me(r){var n,o=a(4032,0);if(e.isBindingPattern(r.variableDeclaration.name)){var s=e.createTempVariable(void 0),c=e.createVariableDeclaration(s);e.setTextRange(c,r.variableDeclaration);var u=e.flattenDestructuringBinding(r.variableDeclaration,_,t,0,s),l=e.createVariableDeclarationList(u);e.setTextRange(l,r.variableDeclaration);var d=e.createVariableStatement(void 0,l);n=e.updateCatchClause(r,c,Le(r.block,d))}else n=e.visitEachChild(r,_,t);return i(o,0,0),n}function Le(t,r){var n=e.visitNodes(t.statements,_,e.isStatement);return e.updateBlock(t,[r].concat(n))}function Be(t){e.Debug.assert(!e.isComputedPropertyName(t.name));var r=Z(t,e.moveRangePos(t,-1),void 0,void 0);return e.setEmitFlags(r,512|e.getEmitFlags(r)),e.setTextRange(e.createPropertyAssignment(t.name,r),t)}function Je(r){e.Debug.assert(!e.isComputedPropertyName(r.name));var n=Rt;Rt=void 0;var o,s=a(16286,65);if(32768&r.transformFlags){var c=e.visitParameterList(r.parameters,_,t),u=$(r);o=153===r.kind?e.updateGetAccessor(r,r.decorators,r.modifiers,r.name,c,r.type,u):e.updateSetAccessor(r,r.decorators,r.modifiers,r.name,c,u)}else o=e.visitEachChild(r,_,t);return i(s,49152,0),Rt=n,o}function ze(t){return e.setTextRange(e.createPropertyAssignment(t.name,e.getSynthesizedClone(t.name)),t)}function Ke(r){var n=a(0,8192),o=e.visitEachChild(r,_,t);return i(n,49152,49152&It?32768:0),o}function je(r){return e.visitEachChild(r,_,t)}function Ve(r){return 64&r.transformFlags?Xe(r.elements,!0,r.multiLine,r.elements.hasTrailingComma):e.visitEachChild(r,_,t)}function Ue(t){return c(t)?qe(t):64&t.transformFlags?He(t,!0):e.updateCall(t,e.visitNode(t.expression,d,e.isExpression),void 0,e.visitNodes(t.arguments,_,e.isExpression))}function qe(t){var r=e.cast(e.skipOuterExpressions(t.expression),e.isFunctionExpression).body,n=e.visitNodes(r.statements,_,e.isStatement,0,1),a=e.visitNodes(r.statements,_,e.isStatement,1,r.statements.length-1),i=e.cast(e.firstOrUndefined(n),e.isVariableStatement),o=i.declarationList.declarations[0],s=e.skipOuterExpressions(o.initializer),c=e.tryCast(s,e.isAssignmentExpression),u=e.cast(c?e.skipOuterExpressions(c.right):s,e.isCallExpression),l=e.cast(e.skipOuterExpressions(u.expression),e.isFunctionExpression),d=l.body.statements,p=0,f=-1,m=[];if(c){var g=e.tryCast(d[p],e.isExpressionStatement);g&&(m.push(g),p++),m.push(d[p]),p++,m.push(e.createStatement(e.createAssignment(c.left,e.cast(o.name,e.isIdentifier))))}for(;!e.isReturnStatement(e.elementAt(d,f));)f--;return e.addRange(m,d,p,f),f<-1&&e.addRange(m,d,f+1),e.addRange(m,a),e.addRange(m,n,1),e.recreateOuterExpressions(t.expression,e.recreateOuterExpressions(o.initializer,e.recreateOuterExpressions(c&&c.right,e.updateCall(u,e.recreateOuterExpressions(u.expression,e.updateFunctionExpression(l,void 0,void 0,void 0,void 0,l.parameters,void 0,e.updateBlock(l.body,m))),void 0,u.arguments))))}function We(e){return He(e,!1)}function He(t,r){var n=e.createCallBinding(t.expression,Et),a=n.target,i=n.thisArg;97===t.expression.kind&&e.setEmitFlags(i,4);var o;if(o=524288&t.transformFlags?e.createFunctionApply(e.visitNode(a,d,e.isExpression),e.visitNode(i,_,e.isExpression),Xe(t.arguments,!1,!1,!1)):e.createFunctionCall(e.visitNode(a,d,e.isExpression),e.visitNode(i,_,e.isExpression),e.visitNodes(t.arguments,_,e.isExpression),t),97===t.expression.kind){var s=e.createThis();e.setEmitFlags(s,4);var c=e.createLogicalOr(o,s);o=r?e.createAssignment(e.createIdentifier("_this"),c):c}return e.setOriginalNode(o,t)}function Ge(r){if(524288&r.transformFlags){var n=e.createCallBinding(e.createPropertyAccess(r.expression,"bind"),Et),a=n.target,i=n.thisArg;return e.createNew(e.createFunctionApply(e.visitNode(a,_,e.isExpression),i,Xe(e.createNodeArray([e.createVoidZero()].concat(r.arguments)),!1,!1,!1)),void 0,[])}return e.visitEachChild(r,_,t)}function Xe(r,n,a,i){var o=r.length,s=e.flatten(e.spanMap(r,Qe,function(e,t,r,n){return t(e,a,i&&n===o)}));if(Nt.downlevelIteration){if(1===s.length){var c=s[0];if(e.isCallExpression(c)&&e.isIdentifier(c.expression)&&4096&e.getEmitFlags(c.expression)&&"___spread"===c.expression.text)return s[0]}return e.createSpreadHelper(t,s)}if(1===s.length){var u=r[0];return n&&e.isSpreadElement(u)&&177!==u.expression.kind?e.createArraySlice(s[0]):s[0]}return e.createArrayConcat(s.shift(),s)}function Qe(t){return e.isSpreadElement(t)?Ye:Ze}function Ye(t){return e.map(t,et)}function Ze(t,r,n){return e.createArrayLiteral(e.visitNodes(e.createNodeArray(t,n),_,e.isExpression),r)}function $e(t){return e.visitNode(t.expression,_,e.isExpression)}function et(t){return e.visitNode(t.expression,_,e.isExpression)}function tt(t){return e.setTextRange(e.createLiteral(t.text),t)}function rt(t){return t.hasExtendedUnicodeEscape?e.setTextRange(e.createLiteral(t.text),t):t}function nt(t){return 48&t.numericLiteralFlags?e.setTextRange(e.createNumericLiteral(t.text),t):t}function at(t){var r=e.visitNode(t.tag,_,e.isExpression),n=e.createTempVariable(Et),a=[n],i=[],o=[],s=t.template;if(e.isNoSubstitutionTemplateLiteral(s))i.push(e.createLiteral(s.text)),o.push(it(s));else{i.push(e.createLiteral(s.head.text)),o.push(it(s.head));for(var c=0,u=s.templateSpans;c<u.length;c++){var l=u[c];i.push(e.createLiteral(l.literal.text)),o.push(it(l.literal)),a.push(e.visitNode(l.expression,_,e.isExpression))}}return e.createParen(e.inlineExpressions([e.createAssignment(n,e.createArrayLiteral(i)),e.createAssignment(e.createPropertyAccess(n,"raw"),e.createArrayLiteral(o)),e.createCall(r,void 0,a)]))}function it(t){var r=e.getSourceTextOfNodeFromSourceFile(Ft,t),n=13===t.kind||16===t.kind;return r=r.substring(1,r.length-(n?1:2)),r=r.replace(/\r\n?/g,"\n"),e.setTextRange(e.createLiteral(r),t)}function ot(t){var r=[];ct(r,t),ut(r,t);var n=e.reduceLeft(r,e.createAdd);return e.nodeIsSynthesized(n)&&(n.pos=t.pos,n.end=t.end),n}function st(t){return e.Debug.assert(0!==t.templateSpans.length),0!==t.head.text.length||0===t.templateSpans[0].literal.text.length}function ct(t,r){st(r)&&t.push(e.createLiteral(r.head.text))}function ut(t,r){for(var n=0,a=r.templateSpans;n<a.length;n++){var i=a[n];t.push(e.visitNode(i.expression,_,e.isExpression)),0!==i.literal.text.length&&t.push(e.createLiteral(i.literal.text))}}function _t(t){return 8&It&&!t?e.createPropertyAccess(e.createIdentifier("_super"),"prototype"):e.createIdentifier("_super")}function lt(t){return 94===t.keywordToken&&"target"===t.name.text?(It|=8192&It?32768:16384,e.createIdentifier("_newTarget")):t}function dt(t,r,n){if(1&Mt&&e.isFunctionLike(r)){var o=a(16286,8&e.getEmitFlags(r)?81:65);return Pt(t,r,n),void i(o,0,0)}Pt(t,r,n)}function pt(){0===(2&Mt)&&(Mt|=2,t.enableSubstitution(71))}function ft(){0===(1&Mt)&&(Mt|=1,t.enableSubstitution(99),t.enableEmitNotification(152),t.enableEmitNotification(151),t.enableEmitNotification(153),t.enableEmitNotification(154),t.enableEmitNotification(187),t.enableEmitNotification(186),t.enableEmitNotification(228))}function mt(t,r){return r=wt(t,r),1===t?vt(r):e.isIdentifier(r)?gt(r):r}function gt(t){if(2&Mt&&!e.isInternalName(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r&&yt(r))return e.setTextRange(e.getGeneratedNameForNode(r),t)}return t}function yt(e){var t=e.parent;switch(t.kind){case 176:case 229:case 232:case 226:return t.name===e&&At.isDeclarationWithCollidingName(t)}return!1}function vt(e){switch(e.kind){case 71:return ht(e);case 99:return kt(e)}return e}function ht(t){if(2&Mt&&!e.isInternalName(t)){var r=At.getReferencedDeclarationWithCollidingName(t);if(r&&(!e.isClassLike(r)||!bt(r,t)))return e.setTextRange(e.getGeneratedNameForNode(e.getNameOfDeclaration(r)),t)}return t}function bt(t,r){var n=e.getParseTreeNode(r);
if(!n||n===t||n.end<=t.pos||n.pos>=t.end)return!1;for(var a=e.getEnclosingBlockScopeContainer(t);n;){if(n===a||n===t)return!1;if(e.isClassElement(n)&&n.parent===t)return!0;n=n.parent}return!1}function kt(t){return 1&Mt&&16&It?e.setTextRange(e.createIdentifier("_this"),t):t}function xt(t,r){return e.hasModifier(r,32)?e.getInternalName(t):e.createPropertyAccess(e.getInternalName(t),"prototype")}function Ct(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)||210!==n.kind)return!1;var a=n.expression;if(!e.nodeIsSynthesized(a)||181!==a.kind)return!1;var i=a.expression;if(!e.nodeIsSynthesized(i)||97!==i.kind)return!1;var o=e.singleOrUndefined(a.arguments);if(!o||!e.nodeIsSynthesized(o)||198!==o.kind)return!1;var s=o.expression;return e.isIdentifier(s)&&"arguments"===s.text}var Dt=t.startLexicalEnvironment,St=t.resumeLexicalEnvironment,Tt=t.endLexicalEnvironment,Et=t.hoistVariableDeclaration,Nt=t.getCompilerOptions(),At=t.getEmitResolver(),wt=t.onSubstituteNode,Pt=t.onEmitNode;t.onEmitNode=dt,t.onSubstituteNode=mt;var Ft,Ot,It,Rt,Mt;return n}function r(t,r){return t.requestEmitHelper(c),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={}));var s;!function(e){e[e.None=0]="None",e[e.Function=1]="Function",e[e.ArrowFunction=2]="ArrowFunction",e[e.AsyncFunctionBody=4]="AsyncFunctionBody",e[e.NonStaticClassElement=8]="NonStaticClassElement",e[e.CapturesThis=16]="CapturesThis",e[e.ExportedVariableStatement=32]="ExportedVariableStatement",e[e.TopLevel=64]="TopLevel",e[e.Block=128]="Block",e[e.IterationStatement=256]="IterationStatement",e[e.IterationStatementBlock=512]="IterationStatementBlock",e[e.ForStatement=1024]="ForStatement",e[e.ForInOrForOfStatement=2048]="ForInOrForOfStatement",e[e.ConstructorWithCapturedSuper=4096]="ConstructorWithCapturedSuper",e[e.ComputedPropertyName=8192]="ComputedPropertyName",e[e.AncestorFactsMask=16383]="AncestorFactsMask",e[e.BlockScopeIncludes=0]="BlockScopeIncludes",e[e.BlockScopeExcludes=4032]="BlockScopeExcludes",e[e.SourceFileIncludes=64]="SourceFileIncludes",e[e.SourceFileExcludes=3968]="SourceFileExcludes",e[e.FunctionIncludes=65]="FunctionIncludes",e[e.FunctionExcludes=16286]="FunctionExcludes",e[e.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",e[e.AsyncFunctionBodyExcludes=16278]="AsyncFunctionBodyExcludes",e[e.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=16256]="ArrowFunctionExcludes",e[e.ConstructorIncludes=73]="ConstructorIncludes",e[e.ConstructorExcludes=16278]="ConstructorExcludes",e[e.DoOrWhileStatementIncludes=256]="DoOrWhileStatementIncludes",e[e.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",e[e.ForStatementIncludes=1280]="ForStatementIncludes",e[e.ForStatementExcludes=3008]="ForStatementExcludes",e[e.ForInOrForOfStatementIncludes=2304]="ForInOrForOfStatementIncludes",e[e.ForInOrForOfStatementExcludes=1984]="ForInOrForOfStatementExcludes",e[e.BlockIncludes=128]="BlockIncludes",e[e.BlockExcludes=3904]="BlockExcludes",e[e.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",e[e.IterationStatementBlockExcludes=4032]="IterationStatementBlockExcludes",e[e.ComputedPropertyNameIncludes=8192]="ComputedPropertyNameIncludes",e[e.ComputedPropertyNameExcludes=0]="ComputedPropertyNameExcludes",e[e.NewTarget=16384]="NewTarget",e[e.NewTargetInComputedPropertyName=32768]="NewTargetInComputedPropertyName",e[e.SubtreeFactsMask=-16384]="SubtreeFactsMask",e[e.PropagateNewTargetMask=49152]="PropagateNewTargetMask"}(s||(s={})),e.transformES2015=t;var c={name:"typescript:extends",scoped:!1,priority:0,text:"\n            var __extends = (this && this.__extends) || (function () {\n                var extendStatics = Object.setPrototypeOf ||\n                    ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n                    function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n                return function (d, b) {\n                    extendStatics(d, b);\n                    function __() { this.constructor = d; }\n                    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\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 251:case 252:case 250: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.setTextRange(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>=72&&r<=107)return e.setTextRange(e.createLiteral(t),t)}var c,u,_=t.getCompilerOptions();1!==_.jsx&&3!==_.jsx||(c=t.onEmitNode,t.onEmitNode=n,t.enableEmitNotification(251),t.enableEmitNotification(252),t.enableEmitNotification(250),u=[]);var l=t.onSubstituteNode;return t.onSubstituteNode=a,t.enableSubstitution(179),t.enableSubstitution(261),r}e.transformES5=t}(ts||(ts={}));var ts;!function(e){function t(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally"}}function r(r){function a(t){if(t.isDeclarationFile||0===(512&t.transformFlags))return t;Ot=t;var n=e.visitEachChild(t,i,r);return e.addEmitHelpers(n,r.readEmitHelpers()),Ot=void 0,n}function i(t){var n=t.transformFlags;return Lt?o(t):Mt?s(t):256&n?u(t):512&n?e.visitEachChild(t,i,r):t}function o(e){switch(e.kind){case 212:return z(e);case 213:return j(e);case 221:return te(e);case 222:return ne(e);default:return s(e)}}function s(t){switch(t.kind){case 228:return _(t);case 186:return l(t);case 153:case 154:return d(t);case 208:return f(t);case 214:return U(t);case 215:return W(t);case 218:return Q(t);case 217:return G(t);case 219:return Z(t);default:return 16777216&t.transformFlags?c(t):33554944&t.transformFlags?e.visitEachChild(t,i,r):t}}function c(t){switch(t.kind){case 194:return m(t);case 195:return x(t);case 197:return C(t);case 177:return D(t);case 178:return T(t);case 180:return E(t);case 181:return N(t);case 182:return A(t);default:return e.visitEachChild(t,i,r)}}function u(t){switch(t.kind){case 228:return _(t);case 186:return l(t);default:return e.Debug.failBadSyntaxKind(t),e.visitEachChild(t,i,r)}}function _(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,t.modifiers,void 0,t.name,void 0,e.visitParameterList(t.parameters,i,r),void 0,p(t.body)),t),t);else{var n=Mt,a=Lt;Mt=!1,Lt=!1,t=e.visitEachChild(t,i,r),Mt=n,Lt=a}return Mt?void Et(t):t}function l(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,void 0,t.name,void 0,e.visitParameterList(t.parameters,i,r),void 0,p(t.body)),t),t);else{var n=Mt,a=Lt;Mt=!1,Lt=!1,t=e.visitEachChild(t,i,r),Mt=n,Lt=a}return t}function d(t){var n=Mt,a=Lt;return Mt=!1,Lt=!1,t=e.visitEachChild(t,i,r),Mt=n,Lt=a,t}function p(t){var r=[],n=Mt,a=Lt,o=Bt,s=Jt,c=zt,u=Kt,_=jt,l=Vt,d=rr,p=Ut,f=qt,m=Wt,g=Ht;Mt=!0,Lt=!1,Bt=void 0,Jt=void 0,zt=void 0,Kt=void 0,jt=void 0,Vt=void 0,rr=1,Ut=void 0,qt=void 0,Wt=void 0,Ht=e.createTempVariable(void 0),St();var y=e.addPrologue(r,t.statements,!1,i);w(t.statements,y);var v=it();return e.addRange(r,Tt()),r.push(e.createReturn(v)),Mt=n,Lt=a,Bt=o,Jt=s,zt=c,Kt=u,jt=_,Vt=l,rr=d,Ut=p,qt=f,Wt=m,Ht=g,e.setTextRange(e.createBlock(r,t.multiLine),t)}function f(t){if(16777216&t.transformFlags)return void M(t.declarationList);if(1048576&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.setSourceMapRange(e.createStatement(e.inlineExpressions(e.map(i,L))),t)}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>=59&&e<=70}function y(e){switch(e){case 59:return 37;case 60:return 38;case 61:return 39;case 62:return 40;case 63:return 41;case 64:return 42;case 65:return 45;case 66:return 46;case 67:return 47;case 68:return 48;case 69:return 49;case 70:return 50}}function v(t){var n=t.left,a=t.right;if(oe(a)){var o=void 0;switch(n.kind){case 179:o=e.updatePropertyAccess(n,le(e.visitNode(n.expression,i,e.isLeftHandSideExpression)),n.name);break;case 180:o=e.updateElementAccess(n,le(e.visitNode(n.expression,i,e.isLeftHandSideExpression)),le(e.visitNode(n.argumentExpression,i,e.isExpression)));break;default:o=e.visitNode(n,i,e.isExpression)}var s=t.operatorToken.kind;return g(s)?e.setTextRange(e.createAssignment(o,e.setTextRange(e.createBinary(le(o),y(s),e.visitNode(a,i,e.isExpression)),t)),t):e.updateBinary(t,o,e.visitNode(a,i,e.isExpression))}return e.visitEachChild(t,i,r)}function h(t){if(oe(t.right)){if(e.isLogicalOperator(t.operatorToken.kind))return b(t);if(26===t.operatorToken.kind)return k(t);var n=e.getMutableClone(t);return n.left=le(e.visitNode(t.left,i,e.isExpression)),n.right=e.visitNode(t.right,i,e.isExpression),n}return e.visitEachChild(t,i,r)}function b(t){var r=pe(),n=de();return Xe(n,e.visitNode(t.left,i,e.isExpression),t.left),53===t.operatorToken.kind?Ze(r,n,t.left):Ye(r,n,t.left),Xe(n,e.visitNode(t.right,i,e.isExpression),t.right),fe(r),n}function k(t){function r(t){e.isBinaryExpression(t)&&26===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,i,e.isExpression)))}var n=[];return r(t.left),r(t.right),e.inlineExpressions(n)}function x(t){if(oe(t.whenTrue)||oe(t.whenFalse)){var n=pe(),a=pe(),o=de();return Ze(n,e.visitNode(t.condition,i,e.isExpression),t.condition),Xe(o,e.visitNode(t.whenTrue,i,e.isExpression),t.whenTrue),Qe(a),fe(n),Xe(o,e.visitNode(t.whenFalse,i,e.isExpression),t.whenFalse),fe(a),o}return e.visitEachChild(t,i,r)}function C(t){var n=pe(),a=e.visitNode(t.expression,i,e.isExpression);if(t.asteriskToken){var o=0===(8388608&e.getEmitFlags(t.expression))?e.createValuesHelper(r,a,t):a;$e(o,t)}else et(a,t);return fe(n),We(t)}function D(e){return S(e.elements,void 0,void 0,e.multiLine)}function S(t,r,n,a){function o(t,n){if(oe(n)&&t.length>0){var o=void 0!==s;s||(s=de()),Xe(s,o?e.createArrayConcat(s,[e.createArrayLiteral(t,a)]):e.createArrayLiteral(r?[r].concat(t):t,a)),r=void 0,t=[]}return t.push(e.visitNode(n,i,e.isExpression)),t}var s,c=se(t);if(c>0){s=de();var u=e.visitNodes(t,i,e.isExpression,0,c);Xe(s,e.createArrayLiteral(r?[r].concat(u):u)),r=void 0}var _=e.reduceLeft(t,o,[],c);return s?e.createArrayConcat(s,[e.createArrayLiteral(_,a)]):e.setTextRange(e.createArrayLiteral(r?[r].concat(_):_,a),n)}function T(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,i,e.isExpression);return c&&(a&&(c.startsOnNewLine=!0),r.push(c)),r}var n=t.properties,a=t.multiLine,o=se(n),s=de();Xe(s,e.createObjectLiteral(e.visitNodes(n,i,e.isObjectLiteralElementLike,0,o),a));var c=e.reduceLeft(n,r,[],o);return c.push(a?e.startOnNewLine(e.getMutableClone(s)):s),e.inlineExpressions(c)}function E(t){if(oe(t.argumentExpression)){var n=e.getMutableClone(t);return n.expression=le(e.visitNode(t.expression,i,e.isLeftHandSideExpression)),n.argumentExpression=e.visitNode(t.argumentExpression,i,e.isExpression),n}return e.visitEachChild(t,i,r)}function N(t){if(e.forEach(t.arguments,oe)){var n=e.createCallBinding(t.expression,Nt,wt,!0),a=n.target,o=n.thisArg;return e.setOriginalNode(e.createFunctionApply(le(e.visitNode(a,i,e.isLeftHandSideExpression)),o,S(t.arguments),t),t)}return e.visitEachChild(t,i,r)}function A(t){if(e.forEach(t.arguments,oe)){var n=e.createCallBinding(e.createPropertyAccess(t.expression,"bind"),Nt),a=n.target,o=n.thisArg;return e.setOriginalNode(e.setTextRange(e.createNew(e.createFunctionApply(le(e.visitNode(a,i,e.isExpression)),o,S(t.arguments,e.createVoidZero())),void 0,[]),t),t)}return e.visitEachChild(t,i,r)}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=Lt;Lt||(Lt=oe(e)),O(e),Lt=t}function O(t){switch(t.kind){case 207:return I(t);case 210:return R(t);case 211:return B(t);case 212:return J(t);case 213:return K(t);case 214:return V(t);case 215:return q(t);case 217:return H(t);case 218:return X(t);case 219:return Y(t);case 220:return $(t);case 221:return ee(t);case 222:return re(t);case 223:return ae(t);case 224:return ie(t);default:return Ge(e.visitNode(t,i,e.isStatement))}}function I(t){oe(t)?w(t.statements):Ge(e.visitNode(t,i,e.isStatement))}function R(t){Ge(e.visitNode(t,i,e.isStatement))}function M(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(L(a))}u.length&&(Ge(e.createStatement(e.inlineExpressions(u))),c+=u.length,u=[])}}function L(t){return e.setSourceMapRange(e.createAssignment(e.setSourceMapRange(e.getSynthesizedClone(t.name),t.name),e.visitNode(t.initializer,i,e.isExpression)),t)}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,i,e.isExpression),t.expression),P(t.thenStatement),t.elseStatement&&(Qe(r),fe(n),P(t.elseStatement)),fe(r)}else Ge(e.visitNode(t,i,e.isStatement));else Ge(e.visitNode(t,i,e.isStatement))}function J(t){if(oe(t)){var r=pe(),n=pe();Ne(r),fe(n),P(t.statement),fe(r),Ye(n,e.visitNode(t.expression,i,e.isExpression)),Ae()}else Ge(e.visitNode(t,i,e.isStatement))}function z(t){return Lt?(Ee(),t=e.visitEachChild(t,i,r),Ae(),t):e.visitEachChild(t,i,r)}function K(t){if(oe(t)){var r=pe(),n=Ne(r);fe(r),Ze(n,e.visitNode(t.expression,i,e.isExpression)),P(t.statement),Qe(r),Ae()}else Ge(e.visitNode(t,i,e.isStatement))}function j(t){return Lt?(Ee(),t=e.visitEachChild(t,i,r),Ae(),t):e.visitEachChild(t,i,r)}function V(t){if(oe(t)){var r=pe(),n=pe(),a=Ne(n);if(t.initializer){var o=t.initializer;e.isVariableDeclarationList(o)?M(o):Ge(e.setTextRange(e.createStatement(e.visitNode(o,i,e.isExpression)),o))}fe(r),t.condition&&Ze(a,e.visitNode(t.condition,i,e.isExpression)),P(t.statement),fe(n),t.incrementor&&Ge(e.setTextRange(e.createStatement(e.visitNode(t.incrementor,i,e.isExpression)),t.incrementor)),Qe(r),Ae()}else Ge(e.visitNode(t,i,e.isStatement))}function U(t){Lt&&Ee();var n=t.initializer;if(n&&e.isVariableDeclarationList(n)){for(var a=0,o=n.declarations;a<o.length;a++){var s=o[a];Nt(s.name)}var c=e.getInitializedVariables(n);t=e.updateFor(t,c.length>0?e.inlineExpressions(e.map(c,L)):void 0,e.visitNode(t.condition,i,e.isExpression),e.visitNode(t.incrementor,i,e.isExpression),e.visitNode(t.statement,i,e.isStatement,e.liftToBlock))}else t=e.visitEachChild(t,i,r);return Lt&&Ae(),t}function q(t){if(oe(t)){var r=de(),n=de(),a=e.createLoopVariable(),o=t.initializer;Nt(a),Xe(r,e.createArrayLiteral()),Ge(e.createForIn(n,e.visitNode(t.expression,i,e.isExpression),e.createStatement(e.createCall(e.createPropertyAccess(r,"push"),void 0,[n])))),Xe(a,e.createLiteral(0));var s=pe(),c=pe(),u=Ne(c);fe(s),Ze(u,e.createLessThan(a,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,i,e.isExpression),e.Debug.assert(e.isLeftHandSideExpression(_));Xe(_,e.createElementAccess(r,a)),P(t.statement),fe(c),Ge(e.createStatement(e.createPostfixIncrement(a))),Qe(s),Ae()}else Ge(e.visitNode(t,i,e.isStatement))}function W(t){Lt&&Ee();var n=t.initializer;if(e.isVariableDeclarationList(n)){for(var a=0,o=n.declarations;a<o.length;a++){var s=o[a];Nt(s.name)}t=e.updateForIn(t,n.declarations[0].name,e.visitNode(t.expression,i,e.isExpression),e.visitNode(t.statement,i,e.isStatement,e.liftToBlock))}else t=e.visitEachChild(t,i,r);return Lt&&Ae(),t}function H(t){var r=Ke(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(t){if(Lt){var n=Ke(t.label&&t.label.text);if(n>0)return Ue(n,t)}return e.visitEachChild(t,i,r)}function X(t){var r=ze(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(t){if(Lt){var n=ze(t.label&&t.label.text);if(n>0)return Ue(n,t)}return e.visitEachChild(t,i,r)}function Y(t){tt(e.visitNode(t.expression,i,e.isExpression),t)}function Z(t){return qe(e.visitNode(t.expression,i,e.isExpression),t)}function $(t){oe(t)?(he(le(e.visitNode(t.expression,i,e.isExpression))),P(t.statement),be()):Ge(e.visitNode(t,i,e.isStatement))}function ee(t){if(oe(t.caseBlock)){for(var r=t.caseBlock,n=r.clauses.length,a=Pe(),o=le(e.visitNode(t.expression,i,e.isExpression)),s=[],c=-1,u=0;u<n;u++){var _=r.clauses[u];s.push(pe()),258===_.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(257===_.kind){var f=_;if(oe(f.expression)&&d.length>0)break;d.push(e.createCaseClause(e.visitNode(f.expression,i,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]:a);for(var u=0;u<n;u++)fe(s[u]),w(r.clauses[u].statements);Fe()}else Ge(e.visitNode(t,i,e.isStatement))}function te(t){return Lt&&we(),t=e.visitEachChild(t,i,r),Lt&&Fe(),t}function re(t){oe(t)?(Ie(t.label.text),P(t.statement),Re()):Ge(e.visitNode(t,i,e.isStatement))}function ne(t){return Lt&&Oe(t.label.text),t=e.visitEachChild(t,i,r),Lt&&Re(),t}function ae(t){rt(e.visitNode(t.expression,i,e.isExpression),t)}function ie(t){oe(t)?(xe(),P(t.tryBlock),t.catchClause&&(Ce(t.catchClause.variableDeclaration),P(t.catchClause.block)),t.finallyBlock&&(De(),P(t.finallyBlock)),Se()):Ge(e.visitEachChild(t,i,r))}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(!e.isGeneratedIdentifier(t)&&It&&It.has(t.text)){var r=e.getOriginalNode(t);if(e.isIdentifier(r)&&r.parent){var n=Pt.getReferencedValueDeclaration(r);if(n){var a=Rt[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)||4096&e.getEmitFlags(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=[],zt=[],Jt=[],Kt=[]);var t=zt.length;return zt[t]=0,Jt[t]=Ut?Ut.length:0,Bt[t]=e,Kt.push(e),t}function ge(){var t=ye();e.Debug.assert(void 0!==t,"beginBlock was never called.");var r=zt.length;return zt[r]=1,Jt[r]=Ut?Ut.length:0,Bt[r]=t,Kt.pop(),t}function ye(){return e.lastOrUndefined(Kt)}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 Ce(t){e.Debug.assert(0===ve());var n;if(e.isGeneratedIdentifier(t.name))n=t.name,Nt(t.name);else{var a=t.name.text;n=de(a),It||(It=e.createMap(),Rt=[],r.enableSubstitution(71)),It.set(a,!0),Rt[e.getOriginalNodeId(t)]=n}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=n,i.catchLabel=s,Xe(n,e.createCall(e.createPropertyAccess(Ht,"sent"),void 0,[])),He()}function De(){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 Se(){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 Te(e){return 0===e.kind}function Ee(){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 Me(e){return 2===e.kind||3===e.kind}function Le(e){return 4===e.kind}function Be(e){return 3===e.kind}function Je(e,t){for(var r=t;r>=0;r--){var n=Kt[r];if(!Le(n))break;if(n.labelText===e)return!0}return!1}function ze(t){if(e.Debug.assert(void 0!==Bt),t)for(var r=Kt.length-1;r>=0;r--){var n=Kt[r];if(Le(n)&&n.labelText===t)return n.breakLabel;if(Me(n)&&Je(t,r-1))return n.breakLabel}else for(var r=Kt.length-1;r>=0;r--){var n=Kt[r];if(Me(n))return n.breakLabel}return 0}function Ke(t){if(e.Debug.assert(void 0!==Bt),t)for(var r=Kt.length-1;r>=0;r--){var n=Kt[r];if(Be(n)&&Je(t,r-1))return n.continueLabel}else for(var r=Kt.length-1;r>=0;r--){var n=Kt[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(r){var n=e.createLiteral(r);return e.addSyntheticTrailingComment(n,3,t(r)),n}function Ue(t,r){return e.Debug.assert(t>0,"Invalid label: "+t),e.setTextRange(e.createReturn(e.createArrayLiteral([Ve(3),je(t)])),r)}function qe(t,r){return e.setTextRange(e.createReturn(e.createArrayLiteral(t?[Ve(2),t]:[Ve(2)])),r)}function We(t){return e.setTextRange(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 t=ot();return n(r,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(t,t.length>0)),524288))}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<zt.length&&Jt[nr]<=e;nr++){var t=Bt[nr],r=zt[nr];Te(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 Dt();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 Ct(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.setTextRange(e.createStatement(e.createAssignment(t,r)),n))}function yt(t,r){Xt=!0,Qt=!0,mt(e.setTextRange(e.createThrow(t),r))}function vt(t,r){Xt=!0,Qt=!0,mt(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral(t?[Ve(2),t]:[Ve(2)])),r),384))}function ht(t,r){Xt=!0,mt(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([Ve(3),je(t)])),r),384))}function bt(t,r,n){mt(e.setEmitFlags(e.createIf(r,e.setEmitFlags(e.setTextRange(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.setTextRange(e.createReturn(e.createArrayLiteral([Ve(3),je(t)])),n),384)),1))}function xt(t,r){Xt=!0,mt(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral(t?[Ve(4),t]:[Ve(4)])),r),384))}function Ct(t,r){Xt=!0,mt(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([Ve(5),t])),r),384))}function Dt(){Xt=!0,mt(e.createReturn(e.createArrayLiteral([Ve(7)])))}var St=r.resumeLexicalEnvironment,Tt=r.endLexicalEnvironment,Et=r.hoistFunctionDeclaration,Nt=r.hoistVariableDeclaration,At=r.getCompilerOptions(),wt=e.getEmitScriptTarget(At),Pt=r.getEmitResolver(),Ft=r.onSubstituteNode;r.onSubstituteNode=ce;var Ot,It,Rt,Mt,Lt,Bt,Jt,zt,Kt,jt,Vt,Ut,qt,Wt,Ht,Gt,Xt,Qt,Yt,Zt,$t,er,tr,rr=1,nr=0,ar=0;return a}function n(t,r){return t.requestEmitHelper(u),e.createCall(e.getHelperName("__generator"),void 0,[e.createThis(),r])}var a;!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"}(a||(a={}));var i;!function(e){e[e.Open=0]="Open",e[e.Close=1]="Close"}(i||(i={}));var o;!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"}(o||(o={}));var s;!function(e){e[e.Try=0]="Try",e[e.Catch=1]="Catch",e[e.Finally=2]="Finally",e[e.Done=3]="Done"}(s||(s={}));var c;!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"}(c||(c={})),e.transformGenerators=r;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, g;\n                return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\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 i(t){switch(t){case e.ModuleKind.AMD:return u;case e.ModuleKind.UMD:return _;default:return c}}function o(t){if(t.isDeclarationFile||!(e.isExternalModule(t)||$.isolatedModules||67108864&t.transformFlags))return t;oe=t,se=e.collectExternalModuleInfo(t,ee,$),_e[e.getOriginalNodeId(t)]=se;var r=i(ne),n=r(t);return oe=void 0,se=void 0,ue=!1,e.aggregateTransformFlags(n)}function s(){return!(se.exportEquals||!e.isExternalModule(oe))}function c(r){Y();var a=[],i=$.alwaysStrict||!$.noImplicitUseStrict&&e.isExternalModule(oe),o=e.addPrologue(a,r.statements,i,f);s()&&e.append(a,J()),e.append(a,e.visitNode(se.externalHelpersImportDeclaration,f,e.isStatement)),e.addRange(a,e.visitNodes(r.statements,f,e.isStatement,o)),p(a,!1),e.addRange(a,Z());var c=e.updateSourceFileNode(r,e.setTextRange(e.createNodeArray(a),r.statements));return se.hasExportStarsToExportValues&&!$.importHelpers&&e.addEmitHelper(c,n),e.addEmitHelpers(c,t.readEmitHelpers()),c}function u(t){var r=e.createIdentifier("define"),n=e.tryGetModuleNameFromFile(t,te,$),a=l(t,!0),i=a.aliasedModuleNames,o=a.unaliasedModuleNames,s=a.importAliasNames;return e.updateSourceFileNode(t,e.setTextRange(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(s),void 0,d(t))])))]),t.statements))}function _(t){var r=l(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.setTextRange(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")]))])))],!0),void 0));
return e.updateSourceFileNode(t,e.setTextRange(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,d(t))]))]),t.statements))}function l(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,_=se.externalImports;u<_.length;u++){var l=_[u],d=e.getExternalModuleNameLiteral(l,oe,te,ee,$),p=e.getLocalNameForExternalImport(l,oe);d&&(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 d(t){Y();var r=[],i=e.addPrologue(r,t.statements,!$.noImplicitUseStrict,f);s()&&e.append(r,J()),e.append(r,e.visitNode(se.externalHelpersImportDeclaration,f,e.isStatement)),e.addRange(r,e.visitNodes(t.statements,f,e.isStatement,i)),p(r,!0),e.addRange(r,Z());var o=e.createBlock(r,!0);return se.hasExportStarsToExportValues&&!$.importHelpers&&e.addEmitHelper(o,n),ue&&e.addEmitHelper(o,a),o}function p(t,r){if(se.exportEquals)if(r){var n=e.createReturn(se.exportEquals.expression);e.setTextRange(n,se.exportEquals),e.setEmitFlags(n,1920),t.push(n)}else{var n=e.createStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier("module"),"exports"),se.exportEquals.expression));e.setTextRange(n,se.exportEquals),e.setEmitFlags(n,1536),t.push(n)}}function f(r){switch(r.kind){case 238:return b(r);case 237:return x(r);case 244:return C(r);case 243:return D(r);case 208:return E(r);case 228:return S(r);case 229:return T(r);case 299:return A(r);case 300:return P(r);default:return e.visitEachChild(r,m,t)}}function m(r){return 67108864&r.transformFlags?e.isImportCall(r)?g(r):e.visitEachChild(r,m,t):r}function g(t){switch($.module){case e.ModuleKind.AMD:return v(t);case e.ModuleKind.UMD:return y(t);case e.ModuleKind.CommonJS:default:return h(t)}}function y(t){return ue=!0,e.createConditional(e.createIdentifier("__syncRequire"),h(t),v(t))}function v(t){var r=e.createUniqueName("resolve"),n=e.createUniqueName("reject");return e.createNew(e.createIdentifier("Promise"),void 0,[e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,r),e.createParameter(void 0,void 0,void 0,n)],void 0,e.createBlock([e.createStatement(e.createCall(e.createIdentifier("require"),void 0,[e.createArrayLiteral([e.firstOrUndefined(t.arguments)||e.createOmittedExpression()]),r,n]))]))])}function h(t){return e.createCall(e.createPropertyAccess(e.createCall(e.createPropertyAccess(e.createIdentifier("Promise"),"resolve"),void 0,[]),"then"),void 0,[e.createFunctionExpression(void 0,void 0,void 0,void 0,void 0,void 0,e.createBlock([e.createReturn(e.createCall(e.createIdentifier("require"),void 0,t.arguments))]))])}function b(t){var r,n=e.getNamespaceDeclarationNode(t);if(ne!==e.ModuleKind.AMD){if(!t.importClause)return e.setTextRange(e.createStatement(k(t)),t);var a=[];n&&!e.isDefaultImport(t)?a.push(e.createVariableDeclaration(e.getSynthesizedClone(n.name),void 0,k(t))):(a.push(e.createVariableDeclaration(e.getGeneratedNameForNode(t),void 0,k(t))),n&&e.isDefaultImport(t)&&a.push(e.createVariableDeclaration(e.getSynthesizedClone(n.name),void 0,e.getGeneratedNameForNode(t)))),r=e.append(r,e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList(a,re>=2?2:0)),t))}else n&&e.isDefaultImport(t)&&(r=e.append(r,e.createVariableStatement(void 0,e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(e.getSynthesizedClone(n.name),void 0,e.getGeneratedNameForNode(t)),t)],re>=2?2:0))));if(w(t)){var i=e.getOriginalNodeId(t);le[i]=F(le[i],t)}else r=F(r,t);return e.singleOrMany(r)}function k(t){var r=e.getExternalModuleNameLiteral(t,oe,te,ee,$),n=[];return r&&n.push(r),e.createCall(e.createIdentifier("require"),void 0,n)}function x(t){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer.");var r;if(ne!==e.ModuleKind.AMD?r=e.hasModifier(t,1)?e.append(r,e.setTextRange(e.createStatement(K(t.name,k(t))),t)):e.append(r,e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedClone(t.name),void 0,k(t))],re>=2?2:0)),t)):e.hasModifier(t,1)&&(r=e.append(r,e.setTextRange(e.createStatement(K(e.getExportName(t),e.getLocalName(t))),t))),w(t)){var n=e.getOriginalNodeId(t);le[n]=O(le[n],t)}else r=O(r,t);return e.singleOrMany(r)}function C(n){if(n.moduleSpecifier){var a=e.getGeneratedNameForNode(n);if(n.exportClause){var i=[];ne!==e.ModuleKind.AMD&&i.push(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(a,void 0,k(n))])),n));for(var o=0,s=n.exportClause.elements;o<s.length;o++){var c=s[o],u=e.createPropertyAccess(a,c.propertyName||c.name);i.push(e.setTextRange(e.createStatement(K(e.getExportName(c),u)),c))}return e.singleOrMany(i)}return e.setTextRange(e.createStatement(r(t,ne!==e.ModuleKind.AMD?k(n):a)),n)}}function D(t){if(!t.isExportEquals){var r,n=t.original;if(n&&w(n)){var a=e.getOriginalNodeId(t);le[a]=B(le[a],e.createIdentifier("default"),t.expression,t,!0)}else r=B(r,e.createIdentifier("default"),t.expression,t,!0);return e.singleOrMany(r)}}function S(r){var n;if(n=e.hasModifier(r,1)?e.append(n,e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,e.visitNodes(r.modifiers,j,e.isModifier),r.asteriskToken,e.getDeclarationName(r,!0,!0),void 0,e.visitNodes(r.parameters,m),void 0,e.visitEachChild(r.body,m,t)),r),r)):e.append(n,e.visitEachChild(r,m,t)),w(r)){var a=e.getOriginalNodeId(r);le[a]=M(le[a],r)}else n=M(n,r);return e.singleOrMany(n)}function T(r){var n;if(n=e.hasModifier(r,1)?e.append(n,e.setOriginalNode(e.setTextRange(e.createClassDeclaration(void 0,e.visitNodes(r.modifiers,j,e.isModifier),e.getDeclarationName(r,!0,!0),void 0,e.visitNodes(r.heritageClauses,m),r.members),r),r)):e.append(n,e.visitEachChild(r,m,t)),w(r)){var a=e.getOriginalNodeId(r);le[a]=M(le[a],r)}else n=M(n,r);return e.singleOrMany(n)}function E(r){var n,a,i;if(e.hasModifier(r,1)){for(var o=void 0,s=0,c=r.declarationList.declarations;s<c.length;s++){var u=c[s];e.isIdentifier(u.name)&&e.isLocalName(u.name)?(o||(o=e.visitNodes(r.modifiers,j,e.isModifier)),a=e.append(a,u)):u.initializer&&(i=e.append(i,N(u)))}a&&(n=e.append(n,e.updateVariableStatement(r,o,e.updateVariableDeclarationList(r.declarationList,a)))),i&&(n=e.append(n,e.setTextRange(e.createStatement(e.inlineExpressions(i)),r)))}else n=e.append(n,e.visitEachChild(r,m,t));if(w(r)){var _=e.getOriginalNodeId(r);le[_]=I(le[_],r)}else n=I(n,r);return e.singleOrMany(n)}function N(r){return e.isBindingPattern(r.name)?e.flattenDestructuringAssignment(e.visitNode(r,m),void 0,t,0,!1,K):e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createIdentifier("exports"),r.name),r.name),e.visitNode(r.initializer,m))}function A(t){if(w(t)&&208===t.original.kind){var r=e.getOriginalNodeId(t);le[r]=I(le[r],t.original)}return t}function w(t){return 0!==(4194304&e.getEmitFlags(t))}function P(t){var r=e.getOriginalNodeId(t),n=le[r];return n?(delete le[r],e.append(n,t)):t}function F(e,t){if(se.exportEquals)return e;var r=t.importClause;if(!r)return e;r.name&&(e=L(e,r));var n=r.namedBindings;if(n)switch(n.kind){case 240:e=L(e,n);break;case 241:for(var a=0,i=n.elements;a<i.length;a++){var o=i[a];e=L(e,o)}}return e}function O(e,t){return se.exportEquals?e:L(e,t)}function I(e,t){if(se.exportEquals)return e;for(var r=0,n=t.declarationList.declarations;r<n.length;r++){var a=n[r];e=R(e,a)}return e}function R(t,r){if(se.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=R(t,i))}else e.isGeneratedIdentifier(r.name)||(t=L(t,r));return t}function M(t,r){if(se.exportEquals)return t;if(e.hasModifier(r,1)){var n=e.hasModifier(r,512)?e.createIdentifier("default"):r.name;t=B(t,n,e.getLocalName(r),r)}return r.name&&(t=L(t,r)),t}function L(t,r){var n=e.getDeclarationName(r),a=se.exportSpecifiers.get(n.text);if(a)for(var i=0,o=a;i<o.length;i++){var s=o[i];t=B(t,s.name,n,s.name)}return t}function B(t,r,n,a,i){return t=e.append(t,z(r,n,a,i))}function J(){var t;return t=0===re?e.createStatement(K(e.createIdentifier("__esModule"),e.createLiteral(!0))):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))])])),e.setEmitFlags(t,1048576),t}function z(t,r,n,a){var i=e.setTextRange(e.createStatement(K(t,r)),n);return e.startOnNewLine(i),a||e.setEmitFlags(i,1536),i}function K(t,r,n){return e.setTextRange(e.createAssignment(e.createPropertyAccess(e.createIdentifier("exports"),e.getSynthesizedClone(t)),r),n)}function j(e){switch(e.kind){case 84:case 79:return}return e}function V(t,r,n){265===r.kind?(oe=r,se=_e[e.getOriginalNodeId(oe)],ce=[],ie(t,r,n),oe=void 0,se=void 0,ce=void 0):ie(t,r,n)}function U(t,r){return r=ae(t,r),r.id&&ce[r.id]?r:1===t?W(r):e.isShorthandPropertyAssignment(r)?q(r):r}function q(t){var r=t.name,n=H(r);if(n!==r){if(t.objectAssignmentInitializer){var a=e.createAssignment(n,t.objectAssignmentInitializer);return e.setTextRange(e.createPropertyAssignment(r,a),t)}return e.setTextRange(e.createPropertyAssignment(r,n),t)}return t}function W(e){switch(e.kind){case 71:return H(e);case 194:return G(e);case 193:case 192:return X(e)}return e}function H(t){if(4096&e.getEmitFlags(t)){var r=e.getExternalHelpersModuleName(oe);return r?e.createPropertyAccess(r,t):t}if(!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var n=ee.getReferencedExportContainer(t,e.isExportName(t));if(n&&265===n.kind)return e.setTextRange(e.createPropertyAccess(e.createIdentifier("exports"),e.getSynthesizedClone(t)),t);var a=ee.getReferencedImportDeclaration(t);if(a){if(e.isImportClause(a))return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(a.parent),e.createIdentifier("default")),t);if(e.isImportSpecifier(a)){var i=a.propertyName||a.name;return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(a.parent.parent.parent),e.getSynthesizedClone(i)),t)}}}return t}function G(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=Q(t.left);if(r){for(var n=t,a=0,i=r;a<i.length;a++){var o=i[a];ce[e.getNodeId(n)]=!0,n=K(o,n,t)}return n}}return t}function X(t){if((43===t.operator||44===t.operator)&&e.isIdentifier(t.operand)&&!e.isGeneratedIdentifier(t.operand)&&!e.isLocalName(t.operand)&&!e.isDeclarationNameOfEnumOrNamespace(t.operand)){var r=Q(t.operand);if(r){for(var n=193===t.kind?e.setTextRange(e.createBinary(t.operand,e.createToken(43===t.operator?59:60),e.createLiteral(1)),t):t,a=0,i=r;a<i.length;a++){var o=i[a];ce[e.getNodeId(n)]=!0,n=K(o,n)}return n}}return t}function Q(t){if(!e.isGeneratedIdentifier(t)){var r=ee.getReferencedImportDeclaration(t)||ee.getReferencedValueDeclaration(t);if(r)return se&&se.exportedBindings[e.getOriginalNodeId(r)]}}var Y=t.startLexicalEnvironment,Z=t.endLexicalEnvironment,$=t.getCompilerOptions(),ee=t.getEmitResolver(),te=t.getEmitHost(),re=e.getEmitScriptTarget($),ne=e.getEmitModuleKind($),ae=t.onSubstituteNode,ie=t.onEmitNode;t.onSubstituteNode=U,t.onEmitNode=V,t.enableSubstitution(71),t.enableSubstitution(194),t.enableSubstitution(192),t.enableSubstitution(193),t.enableSubstitution(262),t.enableEmitNotification(265);var oe,se,ce,ue,_e=[],le=[];return o}function r(t,r){var n=t.getCompilerOptions();return n.importHelpers?e.createCall(e.getHelperName("__exportStar"),void 0,[r,e.createIdentifier("exports")]):e.createCall(e.createIdentifier("__export"),void 0,[r])}e.transformModule=t;var n={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            }\n        "},a={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n            var __syncRequire = typeof module === "object" && typeof module.exports === "object";'}}(ts||(ts={}));var ts;!function(e){function t(t){function r(t){if(t.isDeclarationFile||!(e.isEffectiveExternalModule(t,pe)||67108864&t.transformFlags))return t;var r=e.getOriginalNodeId(t);ve=t,Ce=t,he=Se[r]=e.collectExternalModuleInfo(t,fe,pe),be=e.createUniqueName("exports"),Ee[r]=be,ke=e.createUniqueName("context");var i=n(he.externalImports),o=a(t,i),s=e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,be),e.createParameter(void 0,void 0,void 0,ke)],void 0,o),c=e.tryGetModuleNameFromFile(t,me,pe),u=e.createArrayLiteral(e.map(i,function(e){return e.name})),_=e.setEmitFlags(e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createStatement(e.createCall(e.createPropertyAccess(e.createIdentifier("System"),"register"),void 0,c?[c,u,s]:[u,s]))]),t.statements)),1024);return pe.outFile||pe.out||e.moveEmitHelpers(_,o,function(e){return!e.scoped}),De&&(Ne[r]=De,De=void 0),ve=void 0,he=void 0,be=void 0,ke=void 0,xe=void 0,Ce=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,ve,me,fe,pe);if(o){var s=o.text,c=r.get(s);void 0!==c?n[c].externalImports.push(i):(r.set(s,n.length),n.push({name:o,externalImports:[i]}))}}return n}function a(t,r){var n=[];_e();var a=pe.alwaysStrict||!pe.noImplicitUseStrict&&e.isExternalModule(ve),o=e.addPrologue(n,t.statements,a,c);n.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("__moduleName",void 0,e.createLogicalAnd(ke,e.createPropertyAccess(ke,"id")))]))),e.visitNode(he.externalHelpersImportDeclaration,c,e.isStatement);var u=e.visitNodes(t.statements,c,e.isStatement,o);e.addRange(n,xe),e.addRange(n,le());var _=i(n),l=e.createObjectLiteral([e.createPropertyAssignment("setters",s(_,r)),e.createPropertyAssignment("execute",e.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,e.createBlock(u,!0)))]);return l.multiLine=!0,n.push(e.createReturn(l)),e.createBlock(n,!0)}function i(t){if(he.hasExportStarsToExportValues){if(!he.exportedNames&&0===he.exportSpecifiers.size){for(var r=!1,n=0,a=he.externalImports;n<a.length;n++){var i=a[n];if(244===i.kind&&i.exportClause){r=!0;break}}if(!r){var s=o(void 0);return t.push(s),s.name}}var c=[];if(he.exportedNames)for(var u=0,_=he.exportedNames;u<_.length;u++){var l=_[u];"default"!==l.text&&c.push(e.createPropertyAssignment(e.createLiteral(l),e.createTrue()))}for(var d=0,p=he.externalImports;d<p.length;d++){var i=p[d];if(244===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.createTrue()))}}}var v=e.createUniqueName("exportedNames");t.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(v,void 0,e.createObjectLiteral(c,!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(be,void 0,[i]))],!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,ve)}),c=s?e.getGeneratedNameForNode(s):e.createUniqueName(""),u=[],_=0,l=o.externalImports;_<l.length;_++){var d=l[_],p=e.getLocalNameForExternalImport(d,ve);switch(d.kind){case 238:if(!d.importClause)break;case 237:e.Debug.assert(void 0!==p),u.push(e.createStatement(e.createAssignment(p,c)));break;case 244: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(be,void 0,[e.createObjectLiteral(f,!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,!0)))}return e.createArrayLiteral(n,!0)}function c(e){switch(e.kind){case 238:return u(e);case 237:return _(e);case 244:return;case 243:return l(e);default:return O(e)}}function u(t){var r;if(t.importClause&&de(e.getLocalNameForExternalImport(t,ve)),x(t)){var n=e.getOriginalNodeId(t);Te[n]=D(Te[n],t)}else r=D(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(de(e.getLocalNameForExternalImport(t,ve)),x(t)){var n=e.getOriginalNodeId(t);Te[n]=S(Te[n],t)}else r=S(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);Te[a]=w(Te[a],e.createIdentifier("default"),r,!0)}}function d(r){if(xe=e.hasModifier(r,1)?e.append(xe,e.updateFunctionDeclaration(r,r.decorators,e.visitNodes(r.modifiers,ee,e.isModifier),r.asteriskToken,e.getDeclarationName(r,!0,!0),void 0,e.visitNodes(r.parameters,Q,e.isParameterDeclaration),void 0,e.visitNode(r.body,Q,e.isBlock))):e.append(xe,e.visitEachChild(r,Q,t)),x(r)){var n=e.getOriginalNodeId(r);Te[n]=N(Te[n],r)}else xe=N(xe,r)}function p(t){var r,n=e.getLocalName(t);if(de(n),r=e.append(r,e.setTextRange(e.createStatement(e.createAssignment(n,e.setTextRange(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);Te[a]=N(Te[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.setTextRange(e.createStatement(e.inlineExpressions(r)),t))),a){var u=e.getOriginalNodeId(t);Te[u]=T(Te[u],t,n)}else c=T(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 de(e.getSynthesizedClone(t.name))}function g(t){return 0===(2097152&e.getEmitFlags(t))&&(265===Ce.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 de(e.getSynthesizedClone(t)),a?F(t,ce(e.setTextRange(e.createAssignment(t,r),n))):ce(e.setTextRange(e.createAssignment(t,r),n))}function k(t){if(x(t)&&208===t.original.kind){var r=e.getOriginalNodeId(t),n=e.hasModifier(t.original,1);Te[r]=T(Te[r],t.original,n)}return t}function x(t){return 0!==(4194304&e.getEmitFlags(t))}function C(t){var r=e.getOriginalNodeId(t),n=Te[r];return n?(delete Te[r],e.append(n,t)):t}function D(e,t){if(he.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 240:e=A(e,n);break;case 241:for(var a=0,i=n.elements;a<i.length;a++){var o=i[a];e=A(e,o)}}return e}function S(e,t){return he.exportEquals?e:A(e,t)}function T(e,t,r){if(he.exportEquals)return e;for(var n=0,a=t.declarationList.declarations;n<a.length;n++){var i=a[n];(i.initializer||r)&&(e=E(e,i,r))}return e}function E(t,r,n){if(he.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=E(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(he.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(he.exportEquals)return t;var a=e.getDeclarationName(r),i=he.exportSpecifiers.get(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(be,void 0,[n,r])}function O(e){switch(e.kind){case 208:return f(e);case 228:return d(e);case 229:return p(e);case 214:return I(e);case 215:return R(e);case 216:return M(e);case 212:return J(e);case 213:return z(e);case 222:return K(e);case 220:return j(e);case 221:return V(e);case 235:return U(e);case 257:return q(e);case 258:return W(e);case 224:return H(e);case 260:return G(e);case 207:return X(e);case 299:return k(e);case 300:return C(e);default:return Q(e)}}function I(t){var r=Ce;return Ce=t,t=e.updateFor(t,B(t.initializer),e.visitNode(t.condition,Q,e.isExpression),e.visitNode(t.incrementor,Q,e.isExpression),e.visitNode(t.statement,O,e.isStatement)),Ce=r,t}function R(t){var r=Ce;return Ce=t,t=e.updateForIn(t,B(t.initializer),e.visitNode(t.expression,Q,e.isExpression),e.visitNode(t.statement,O,e.isStatement,e.liftToBlock)),Ce=r,t}function M(t){var r=Ce;return Ce=t,t=e.updateForOf(t,t.awaitModifier,B(t.initializer),e.visitNode(t.expression,Q,e.isExpression),e.visitNode(t.statement,O,e.isStatement,e.liftToBlock)),Ce=r,t}function L(t){return e.isVariableDeclarationList(t)&&g(t)}function B(r){if(!r)return r;if(L(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 J(t){return e.updateDo(t,e.visitNode(t.statement,O,e.isStatement,e.liftToBlock),e.visitNode(t.expression,Q,e.isExpression))}function z(t){return e.updateWhile(t,e.visitNode(t.expression,Q,e.isExpression),e.visitNode(t.statement,O,e.isStatement,e.liftToBlock))}function K(t){return e.updateLabel(t,t.label,e.visitNode(t.statement,O,e.isStatement,e.liftToBlock))}function j(t){return e.updateWith(t,e.visitNode(t.expression,Q,e.isExpression),e.visitNode(t.statement,O,e.isStatement,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=Ce;return Ce=t,t=e.updateCaseBlock(t,e.visitNodes(t.clauses,O,e.isCaseOrDefaultClause)),Ce=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=Ce;return Ce=t,t=e.updateCatchClause(t,t.variableDeclaration,e.visitNode(t.block,O,e.isBlock)),Ce=r,t}function X(r){var n=Ce;return Ce=r,r=e.visitEachChild(r,O,t),Ce=n,r}function Q(r){return 1024&r.transformFlags&&194===r.kind?Z(r):e.isImportCall(r)?Y(r):2048&r.transformFlags||67108864&r.transformFlags?e.visitEachChild(r,Q,t):r}function Y(t){return e.createCall(e.createPropertyAccess(ke,e.createIdentifier("import")),void 0,t.arguments)}function Z(r){return $(r.left)?e.flattenDestructuringAssignment(r,Q,t,0,!0):e.visitEachChild(r,Q,t)}function $(t){if(e.isAssignmentExpression(t,!0))return $(t.left);if(e.isSpreadElement(t))return $(t.expression);if(e.isObjectLiteralExpression(t))return e.some(t.properties,$);if(e.isArrayLiteralExpression(t))return e.some(t.elements,$);if(e.isShorthandPropertyAssignment(t))return $(t.name);if(e.isPropertyAssignment(t))return $(t.initializer);if(e.isIdentifier(t)){var r=fe.getReferencedExportContainer(t);return void 0!==r&&265===r.kind}return!1}function ee(e){switch(e.kind){case 84:case 79:return}return e}function te(t,r,n){if(265===r.kind){var a=e.getOriginalNodeId(r);ve=r,he=Se[a],be=Ee[a],De=Ne[a],De&&delete Ne[a],ye(t,r,n),ve=void 0,he=void 0,be=void 0,De=void 0}else ye(t,r,n)}function re(e,t){return t=ge(e,t),ue(t)?t:1===e?ne(t):t}function ne(e){switch(e.kind){case 71:return ae(e);case 194:return ie(e);case 192:case 193:return oe(e)}return e}function ae(t){if(4096&e.getEmitFlags(t)){var r=e.getExternalHelpersModuleName(ve);return r?e.createPropertyAccess(r,t):t}if(!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var n=fe.getReferencedImportDeclaration(t);if(n){if(e.isImportClause(n))return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(n.parent),e.createIdentifier("default")),t);if(e.isImportSpecifier(n))return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(n.parent.parent.parent),e.getSynthesizedClone(n.propertyName||n.name)),t)}}return t}function ie(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=se(t.left);if(r){for(var n=t,a=0,i=r;a<i.length;a++){var o=i[a];n=F(o,ce(n))}return n}}return t}function oe(t){if((43===t.operator||44===t.operator)&&e.isIdentifier(t.operand)&&!e.isGeneratedIdentifier(t.operand)&&!e.isLocalName(t.operand)&&!e.isDeclarationNameOfEnumOrNamespace(t.operand)){var r=se(t.operand);if(r){for(var n=193===t.kind?e.setTextRange(e.createPrefix(t.operator,t.operand),t):t,a=0,i=r;a<i.length;a++){var o=i[a];n=F(o,ce(n))}return 193===t.kind&&(n=43===t.operator?e.createSubtract(ce(n),e.createLiteral(1)):e.createAdd(ce(n),e.createLiteral(1))),n}}return t}function se(t){var r;if(!e.isGeneratedIdentifier(t)){var n=fe.getReferencedImportDeclaration(t)||fe.getReferencedValueDeclaration(t);if(n){var a=fe.getReferencedExportContainer(t,!1);a&&265===a.kind&&(r=e.append(r,e.getDeclarationName(n))),r=e.addRange(r,he&&he.exportedBindings[e.getOriginalNodeId(n)])}}return r}function ce(t){return void 0===De&&(De=[]),De[e.getNodeId(t)]=!0,t}function ue(e){return De&&e.id&&De[e.id]}var _e=t.startLexicalEnvironment,le=t.endLexicalEnvironment,de=t.hoistVariableDeclaration,pe=t.getCompilerOptions(),fe=t.getEmitResolver(),me=t.getEmitHost(),ge=t.onSubstituteNode,ye=t.onEmitNode;t.onSubstituteNode=re,t.onEmitNode=te,t.enableSubstitution(71),t.enableSubstitution(194),t.enableSubstitution(192),t.enableSubstitution(193),t.enableEmitNotification(265);var ve,he,be,ke,xe,Ce,De,Se=[],Te=[],Ee=[],Ne=[];return r}e.transformSystemModule=t}(ts||(ts={}));var ts;!function(e){function t(t){function r(r){if(r.isDeclarationFile)return r;if(e.isExternalModule(r)||c.isolatedModules){var a=e.getOrCreateExternalHelpersModuleNameIfNeeded(r,c);if(a){var i=[],o=e.addPrologue(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.setTextRange(e.createNodeArray(i),r.statements))}return e.visitEachChild(r,n,t)}return r}function n(e){switch(e.kind){case 237:return;case 243: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(265),t.enableSubstitution(71);var l;return r}e.transformES2015Module=t}(ts||(ts={}));var ts;!function(e){function t(t){switch(t){case e.ModuleKind.ESNext:case e.ModuleKind.ES2015:return e.transformES2015Module;case e.ModuleKind.System:return e.transformSystemModule;default:return e.transformModule}}function r(r,n){var a=r.jsx,i=e.getEmitScriptTarget(r),o=e.getEmitModuleKind(r),s=[];return e.addRange(s,n&&n.before),s.push(e.transformTypeScript),2===a&&s.push(e.transformJsx),i<5&&s.push(e.transformESNext),i<4&&s.push(e.transformES2017),i<3&&s.push(e.transformES2016),i<2&&(s.push(e.transformES2015),s.push(e.transformGenerators)),s.push(t(o)),i<1&&s.push(e.transformES5),e.addRange(s,n&&n.after),s}function n(t,r,n,a,i,o){function s(t){return!t||e.isSourceFile(t)&&t.isDeclarationFile?t:B(t)}function c(t){e.Debug.assert(O<2,"Cannot modify the transformation context after transformation has completed."),T[t]|=1}function u(t){return 0!==(1&T[t.kind])&&0===(4&e.getEmitFlags(t))}function _(t,r){return e.Debug.assert(O<3,"Cannot substitute a node after the result is disposed."),r&&u(r)&&P(t,r)||r}function l(t){e.Debug.assert(O<2,"Cannot modify the transformation context after transformation has completed."),T[t]|=2}function d(t){return 0!==(2&T[t.kind])||0!==(2&e.getEmitFlags(t))}function p(t,r,n){e.Debug.assert(O<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),r&&(d(r)?F(t,r,n):n(t,r))}function f(t){e.Debug.assert(O>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(O<2,"Cannot modify the lexical environment after transformation has completed.");var r=e.setEmitFlags(e.createVariableDeclaration(t),64);C?C.push(r):C=[r]}function m(t){e.Debug.assert(O>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(O<2,"Cannot modify the lexical environment after transformation has completed."),D?D.push(t):D=[t]}function g(){e.Debug.assert(O>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(O<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!w,"Lexical environment is suspended."),E[A]=C,N[A]=D,A++,C=void 0,D=void 0}function y(){e.Debug.assert(O>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(O<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!w,"Lexical environment is already suspended."),w=!0}function v(){e.Debug.assert(O>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(O<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(w,"Lexical environment is not suspended."),w=!1}function h(){e.Debug.assert(O>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(O<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!w,"Lexical environment is suspended.");var t;if((C||D)&&(D&&(t=D.slice()),C)){var r=e.createVariableStatement(void 0,e.createVariableDeclarationList(C));t?t.push(r):t=[r]}return A--,C=E[A],D=N[A],0===A&&(E=[],N=[]),t}function b(t){e.Debug.assert(O>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(O<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!t.scoped,"Cannot request a scoped emit helper."),
S=e.append(S,t)}function k(){e.Debug.assert(O>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(O<2,"Cannot modify the transformation context after transformation has completed.");var t=S;return S=void 0,t}function x(){if(O<3){for(var t=0,r=a;t<r.length;t++){var n=r[t];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(n)))}C=void 0,E=void 0,D=void 0,N=void 0,P=void 0,F=void 0,S=void 0,O=3}}for(var C,D,S,T=new Array(301),E=[],N=[],A=0,w=!1,P=function(e,t){return t},F=function(e,t,r){return r(e,t)},O=0,I={getCompilerOptions:function(){return n},getEmitResolver:function(){return t},getEmitHost:function(){return r},startLexicalEnvironment:g,suspendLexicalEnvironment:y,resumeLexicalEnvironment:v,endLexicalEnvironment:h,hoistVariableDeclaration:f,hoistFunctionDeclaration:m,requestEmitHelper:b,readEmitHelpers:k,enableSubstitution:c,enableEmitNotification:l,isSubstitutionEnabled:u,isEmitNotificationEnabled:d,get onSubstituteNode(){return P},set onSubstituteNode(t){e.Debug.assert(O<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),P=t},get onEmitNode(){return F},set onEmitNode(t){e.Debug.assert(O<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),F=t}},R=0,M=a;R<M.length;R++){var L=M[R];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(L)))}e.performance.mark("beforeTransform");var B=e.chain.apply(void 0,i)(I);O=1;var J=e.map(a,o?B:s);return O=2,e.performance.mark("afterTransform"),e.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:J,substituteNode:_,emitNodeWithNotification:p,dispose:x}}var a;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Completed=2]="Completed",e[e.Disposed=3]="Disposed"}(a||(a={}));var i;!function(e){e[e.Substitution=1]="Substitution",e[e.EmitNotifications=2]="EmitNotifications"}(i||(i={})),e.getTransformers=r,e.transformNodes=n}(ts||(ts={}));var ts;!function(e){function t(t,r){function i(t){return m.skipTrivia?m.skipTrivia(t):e.skipTrivia(g,t)}function o(r,n,i){S||(x&&s(),m=void 0,g=void 0,v=-1,h=void 0,b=a,k=0,x={sourceMapFilePath:n,jsSourceMappingURL:C.inlineSourceMap?void 0:e.getBaseFileName(e.normalizeSlashes(n)),sourceMapFile:e.getBaseFileName(e.normalizeSlashes(r)),sourceMapSourceRoot:C.sourceRoot||"",sourceMapSources:[],inputSourceFileNames:[],sourceMapNames:[],sourceMapMappings:"",sourceMapSourcesContent:C.inlineSources?[]:void 0,sourceMapDecodedMappings:[]},x.sourceMapSourceRoot=e.normalizeSlashes(x.sourceMapSourceRoot),x.sourceMapSourceRoot.length&&47!==x.sourceMapSourceRoot.charCodeAt(x.sourceMapSourceRoot.length-1)&&(x.sourceMapSourceRoot+=e.directorySeparator),C.mapRoot?(y=e.normalizeSlashes(C.mapRoot),265===i.kind&&(y=e.getDirectoryPath(e.getSourceFilePathInNewDir(i,t,y))),e.isRootedDiskPath(y)||e.isUrl(y)?x.jsSourceMappingURL=e.combinePaths(y,x.jsSourceMappingURL):(y=e.combinePaths(t.getCommonSourceDirectory(),y),x.jsSourceMappingURL=e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizePath(r)),e.combinePaths(y,x.jsSourceMappingURL),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):y=e.getDirectoryPath(e.normalizePath(r)))}function s(){S||(m=void 0,y=void 0,v=void 0,h=void 0,b=void 0,k=void 0,x=void 0)}function c(){if(h&&h!==b){var t=b.emittedColumn;if(b.emittedLine===h.emittedLine)x.sourceMapMappings&&(x.sourceMapMappings+=",");else{for(var r=b.emittedLine;r<h.emittedLine;r++)x.sourceMapMappings+=";";t=1}x.sourceMapMappings+=n(h.emittedColumn-t),x.sourceMapMappings+=n(h.sourceIndex-b.sourceIndex),x.sourceMapMappings+=n(h.sourceLine-b.sourceLine),x.sourceMapMappings+=n(h.sourceColumn-b.sourceColumn),h.nameIndex>=0&&(e.Debug.assert(!1,"We do not support name index right now, Make sure to update updateLastEncodedAndRecordedSpans when we start using this"),x.sourceMapMappings+=n(h.nameIndex-k),k=h.nameIndex),b=h,x.sourceMapDecodedMappings.push(b)}}function u(t){if(!S&&!e.positionIsSynthesized(t)){D&&e.performance.mark("beforeSourcemap");var n=e.getLineAndCharacterOfPosition(m,t);n.line++,n.character++;var a=r.getLine(),i=r.getColumn();!h||h.emittedLine!==a||h.emittedColumn!==i||h.sourceIndex===v&&(h.sourceLine>n.line||h.sourceLine===n.line&&h.sourceColumn>n.character)?(c(),h={emittedLine:a,emittedColumn:i,sourceLine:n.line,sourceColumn:n.character,sourceIndex:v}):(h.sourceLine=n.line,h.sourceColumn=n.character,h.sourceIndex=v),D&&(e.performance.mark("afterSourcemap"),e.performance.measure("Source Map","beforeSourcemap","afterSourcemap"))}}function _(e,t,r){if(S)return r(e,t);if(t){var n=t.emitNode,a=n&&n.flags,o=n&&n.sourceMapRange,s=o||t,c=s.pos,_=s.end,l=o&&o.source,p=m;l===p&&(l=void 0),l&&d(l),296!==t.kind&&0===(16&a)&&c>=0&&u(i(c)),l&&d(p),64&a?(S=!0,r(e,t),S=!1):r(e,t),l&&d(l),296!==t.kind&&0===(32&a)&&_>=0&&u(_),l&&d(p)}}function l(e,t,r,n){if(S)return n(t,r);var a=e&&e.emitNode,o=a&&a.flags,s=a&&a.tokenSourceMapRanges&&a.tokenSourceMapRanges[t];return r=i(s?s.pos:r),0===(128&o)&&r>=0&&u(r),r=n(t,r),s&&(r=s.end),0===(256&o)&&r>=0&&u(r),r}function d(r){if(!S){m=r,g=m.text;var n=C.sourceRoot?t.getCommonSourceDirectory():y,a=e.getRelativePathToDirectoryOrUrl(n,m.fileName,t.getCurrentDirectory(),t.getCanonicalFileName,!0);v=e.indexOf(x.sourceMapSources,a),v===-1&&(v=x.sourceMapSources.length,x.sourceMapSources.push(a),x.inputSourceFileNames.push(m.fileName),C.inlineSources&&x.sourceMapSourcesContent.push(m.text))}}function p(){if(!S)return c(),JSON.stringify({version:3,file:x.sourceMapFile,sourceRoot:x.sourceMapSourceRoot,sources:x.sourceMapSources,names:x.sourceMapNames,mappings:x.sourceMapMappings,sourcesContent:x.sourceMapSourcesContent})}function f(){if(!S){if(C.inlineSourceMap){var t=e.convertToBase64(p());return x.jsSourceMappingURL="data:application/json;base64,"+t}return x.jsSourceMappingURL}}var m,g,y,v,h,b,k,x,C=t.getCompilerOptions(),D=C.extendedDiagnostics,S=!(C.sourceMap||C.inlineSourceMap);return{initialize:o,reset:s,getSourceMapData:function(){return x},setSourceFile:d,emitPos:u,emitNodeWithSourceMap:_,emitTokenWithSourceMap:l,getText:p,getSourceMappingURL:f}}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){function n(t,r,n){if(z)return void n(t,r);if(r){J=!1;var i=r.emitNode,o=i&&i.flags,s=i&&i.commentRange||r,c=s.pos,u=s.end;if(c<0&&u<0||c===u)a(t,r,i,o,n);else{I&&e.performance.mark("preEmitNodeWithComment");var _=296!==r.kind,d=c<0||0!==(512&o)||10===r.kind,p=u<0||0!==(1024&o)||10===r.kind;d||l(c,_);var f=M,g=L,y=B;d||(M=c),p||(L=u,227===r.kind&&(B=u)),I&&e.performance.measure("commentTime","preEmitNodeWithComment"),a(t,r,i,o,n),I&&e.performance.mark("postEmitNodeWithComment"),M=f,L=g,B=y,!p&&_&&m(u),I&&e.performance.measure("commentTime","postEmitNodeWithComment")}}}function a(t,r,n,a,s){var c=n&&n.leadingComments;e.some(c)&&(I&&e.performance.mark("preEmitNodeWithSynthesizedComments"),e.forEach(c,i),I&&e.performance.measure("commentTime","preEmitNodeWithSynthesizedComments")),u(t,r,a,s);var _=n&&n.trailingComments;e.some(_)&&(I&&e.performance.mark("postEmitNodeWithSynthesizedComments"),e.forEach(_,o),I&&e.performance.measure("commentTime","postEmitNodeWithSynthesizedComments"))}function i(e){2===e.kind&&A.writeLine(),s(e),e.hasTrailingNewLine||2===e.kind?A.writeLine():A.write(" ")}function o(e){A.isAtStartOfLine()||A.write(" "),s(e),e.hasTrailingNewLine&&A.writeLine()}function s(t){var r=c(t),n=3===t.kind?e.computeLineStarts(r):void 0;e.writeCommentRange(r,n,A,0,r.length,R)}function c(e){return 3===e.kind?"/*"+e.text+"*/":"//"+e.text}function u(e,t,r,n){2048&r?(z=!0,n(e,t),z=!1):n(e,t)}function _(t,r,n){I&&e.performance.mark("preEmitBodyWithDetachedComments");var a=r.pos,i=r.end,o=e.getEmitFlags(t),s=a<0||0!==(512&o),c=z||i<0||0!==(1024&o);s||T(r),I&&e.performance.measure("commentTime","preEmitBodyWithDetachedComments"),2048&o&&!z?(z=!0,n(t),z=!1):n(t),I&&e.performance.mark("beginEmitBodyWithDetachedCommetns"),c||(l(r.end,!0),J&&!A.isAtStartOfLine()&&A.writeLine()),I&&e.performance.measure("commentTime","beginEmitBodyWithDetachedCommetns")}function l(e,t){J=!1,t?h(e,p):0===e&&h(e,d)}function d(e,t,r,n,a){N(e,t)&&p(e,t,r,n,a)}function p(t,n,a,i,o){J||(e.emitNewLineBeforeLeadingCommentOfPosition(F,A,o,t),J=!0),r&&r(t),e.writeCommentRange(P,F,A,t,n,R),r&&r(n),i?A.writeLine():A.write(" ")}function f(e){z||e===-1||l(e,!0)}function m(e){b(e,g)}function g(t,n,a,i){A.isAtStartOfLine()||A.write(" "),r&&r(t),e.writeCommentRange(P,F,A,t,n,R),r&&r(n),i&&A.writeLine()}function y(t){z||(I&&e.performance.mark("beforeEmitTrailingCommentsOfPosition"),b(t,v),I&&e.performance.measure("commentTime","beforeEmitTrailingCommentsOfPosition"))}function v(t,n,a,i){r&&r(t),e.writeCommentRange(P,F,A,t,n,R),r&&r(n),i?A.writeLine():A.write(" ")}function h(t,r){M!==-1&&t===M||(D(t)?S(r):e.forEachLeadingCommentRange(P,t,r,t))}function b(t,r){(L===-1||t!==L&&t!==B)&&e.forEachTrailingCommentRange(P,t,r)}function k(){w=void 0,P=void 0,F=void 0,O=void 0}function x(e){A=e}function C(t){w=t,P=w.text,F=e.getLineStarts(w),O=void 0}function D(t){return void 0!==O&&e.lastOrUndefined(O).nodePos===t}function S(t){var r=e.lastOrUndefined(O).detachedCommentEndPos;O.length-1?O.pop():O=void 0,e.forEachLeadingCommentRange(P,r,t,r)}function T(t){var r=e.emitDetachedComments(P,F,A,E,t,R,z);r&&(O?O.push(r):O=[r])}function E(t,n,a,i,o,s){r&&r(i),e.writeCommentRange(t,n,a,i,o,s),r&&r(o)}function N(t,r){if(47===P.charCodeAt(t+1)&&t+2<r&&47===P.charCodeAt(t+2)){var n=P.substring(t,r);return!(!n.match(e.fullTripleSlashReferencePathRegEx)&&!n.match(e.fullTripleSlashAMDReferencePathRegEx))}return!1}var A,w,P,F,O,I=t.extendedDiagnostics,R=e.getNewLineCharacter(t),M=-1,L=-1,B=-1,J=!1,z=t.removeComments;return{reset:k,setWriter:x,setSourceFile:C,emitNodeWithComments:n,emitBodyWithDetachedComments:_,emitTrailingCommentsOfPosition:y,emitLeadingCommentsOfPosition:f}}e.createCommentWriter=t}(ts||(ts={}));var ts;!function(e){function t(t,n,a){function i(e,a){var i=e.declarationFilePath;r(t,n,o,i,a,!1)}var o=e.createDiagnosticCollection();return e.forEachEmittedFile(t,i,a),o.getDiagnostics(a?a.fileName:void 0)}function r(t,r,n,a,i,o){function s(e){var t=be.substring(e.pos,e.end);return t.indexOf("@internal")>=0}function c(t){if(t){var r=e.getLeadingCommentRanges(be,t.pos);if(e.forEach(r,s))return;oe(t)}}function u(){var t=e.createTextWriter(ge);t.trackSymbol=f,t.reportInaccessibleThisError=g,t.reportPrivateInBaseOfClassExpression=m,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,_(t)}function _(e){pe=e,ce=e.write,de=e.writeTextOfNode,ue=e.writeLine,_e=e.increaseIndent,le=e.decreaseIndent}function l(t){var r=pe;e.forEach(t,function(t){var r;226===t.kind?r=t.parent.parent:241===t.kind||242===t.kind||239===t.kind?e.Debug.fail("We should be getting ImportDeclaration instead to write"):r=t;var n=e.forEach(Pe,function(e){return e.node===r?e:void 0});if(!n&&Se&&(n=e.forEach(Se,function(e){return e.node===r?e:void 0})),n)if(238===n.node.kind)n.isVisible=!0;else{u();for(var a=n.indent;a;a--)_e();233===r.kind&&(e.Debug.assert(void 0===Se),Se=[]),P(r),233===r.kind&&(n.subModuleElementDeclarationEmitInfo=Se,Se=void 0),n.asynchronousOutput=pe.getText()}}),_(r)}function d(t){if(t){Te||(Te=e.createMap());for(var r=0,n=t;r<n.length;r++){var a=n[r];Te.has(a)||Te.set(a,a)}}}function p(t){if(0===t.accessibility)t&&t.aliasesToMakeVisible&&l(t.aliasesToMakeVisible);else{Ee=!0;var r=pe.getSymbolAccessibilityDiagnostic(t);r&&(r.typeName?n.add(e.createDiagnosticForNode(t.errorNode||r.errorNode,r.diagnosticMessage,e.getTextOfNodeFromSourceText(be,r.typeName),t.errorSymbolName,t.errorModuleName)):n.add(e.createDiagnosticForNode(t.errorNode||r.errorNode,r.diagnosticMessage,t.errorSymbolName,t.errorModuleName)))}}function f(e,t,n){p(r.isSymbolAccessible(e,t,n,!0)),d(r.getTypeReferenceDirectivesForSymbol(e,n))}function m(t){De&&(Ee=!0,n.add(e.createDiagnosticForNode(De,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,t)))}function g(){De&&(Ee=!0,n.add(e.createDiagnosticForNode(De,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_this_type_A_type_annotation_is_necessary,e.declarationNameToString(De))))}function y(e,t,n){pe.getSymbolAccessibilityDiagnostic=n,ce(": ");var a=146===e.kind&&(r.isRequiredInitializedParameter(e)||r.isOptionalUninitializedParameterProperty(e));if(t&&!a)D(t);else{De=e.name;var i=18436|(a?8192:0);r.writeTypeOfDeclaration(e,ve,i,pe),De=void 0}}function v(e,t){pe.getSymbolAccessibilityDiagnostic=t,ce(": "),e.type?D(e.type):(De=e.name,r.writeReturnTypeOfSignatureDeclaration(e,ve,18436,pe),De=void 0)}function h(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];Ae(n)}}function b(e,t,r,n){for(var a=pe.getTextPos(),i=0,o=e;i<o.length;i++){var s=o[i];n&&!n(s)||(a!==pe.getTextPos()&&ce(t),a=pe.getTextPos(),r(s))}}function k(e,t,r){b(e,", ",t,r)}function x(t){if(t){var r=e.getJSDocCommentRanges(t,be);e.emitNewLineBeforeLeadingComments(ke,pe,t,r),e.emitComments(be,ke,pe,r,!1,!0,ge,e.writeCommentRange)}}function C(e,t){pe.getSymbolAccessibilityDiagnostic=t,D(e)}function D(t){function n(e){if(71===e.kind)de(be,e);else{var t=143===e.kind?e.left:e.expression,r=143===e.kind?e.right:e.name;n(t),ce("."),de(be,r)}}function a(e){var t=r.isEntityNameVisible(e,237===e.parent.kind?e.parent:ve);p(t),d(r.getTypeReferenceDirectivesForEntityName(e)),n(e)}function i(t){e.isEntityNameExpression(t.expression)&&(e.Debug.assert(71===t.expression.kind||179===t.expression.kind),a(t.expression),t.typeArguments&&(ce("<"),k(t.typeArguments,D),ce(">")))}function o(e){a(e.typeName),e.typeArguments&&(ce("<"),k(e.typeArguments,D),ce(">"))}function s(e){de(be,e.parameterName),ce(" is "),D(e.type)}function c(e){ce("typeof "),a(e.exprName)}function u(e){D(e.elementType),ce("[]")}function _(e){ce("["),k(e.elementTypes,D),ce("]")}function l(e){b(e.types," | ",D)}function f(e){b(e.types," & ",D)}function m(e){ce("("),D(e.type),ce(")")}function g(t){ce(e.tokenToString(t.operator)),ce(" "),D(t.type)}function y(e){D(e.objectType),ce("["),D(e.indexType),ce("]")}function v(e){var t=ve;ve=e,ce("{"),ue(),_e(),e.readonlyToken&&ce("readonly "),ce("["),n(e.typeParameter.name),ce(" in "),D(e.typeParameter.constraint),ce("]"),e.questionToken&&ce("?"),ce(": "),D(e.type),ce(";"),ue(),le(),ce("}"),ve=t}function x(e){ce("{"),e.members.length&&(ue(),_e(),h(e.members),le()),ce("}")}switch(t.kind){case 119:case 136:case 133:case 122:case 134:case 137:case 105:case 139:case 95:case 130:case 169:case 173:return de(be,t);case 201:return i(t);case 159:return o(t);case 162:return c(t);case 164:return u(t);case 165:return _(t);case 166:return l(t);case 167:return f(t);case 168:return m(t);case 170:return g(t);case 171:return y(t);case 172:return v(t);case 160:case 161:return ne(t);case 163:return x(t);case 71:return a(t);case 143:return a(t);case 158:return s(t)}}function S(t){be=t.text,ke=e.getLineStarts(t),xe=t.identifiers,Ce=e.isExternalModule(t),ve=t,e.emitDetachedComments(be,ke,pe,e.writeCommentRange,t,ge,!0),h(t.statements)}function T(e){if(!xe.has(e))return e;for(var t=0;;){t++;var r=e+"_"+t;if(!xe.has(r))return r}}function E(e,t,n,a){var i=T(t);return a&&ce("declare "),ce("const "),ce(i),ce(": "),pe.getSymbolAccessibilityDiagnostic=function(){return n},r.writeTypeOfExpression(e,ve,18436,pe),ce(";"),ue(),i}function N(t){if(71===t.expression.kind)ce(t.isExportEquals?"export = ":"export default "),de(be,t.expression);else{var n=E(t.expression,"_default",{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:t},we);ce(t.isExportEquals?"export = ":"export default "),ce(n)}if(ce(";"),ue(),71===t.expression.kind){var a=r.collectLinkedAliases(t.expression);l(a)}}function A(e){return r.isDeclarationVisible(e)}function w(e,t){if(t)P(e);else if(237===e.kind||265===e.parent.kind&&Ce){var n=void 0;if(Se&&265!==e.parent.kind)Se.push({node:e,outputPos:pe.getTextPos(),indent:pe.getIndent(),isVisible:n});else{if(238===e.kind){var a=e;a.importClause&&(n=a.importClause.name&&r.isDeclarationVisible(a.importClause)||R(a.importClause.namedBindings))}Pe.push({node:e,outputPos:pe.getTextPos(),indent:pe.getIndent(),isVisible:n})}}}function P(t){switch(t.kind){case 228:return re(t);case 208:return ee(t);case 230:return X(t);case 229:return G(t);case 231:return j(t);case 232:return V(t);case 233:return K(t);case 237:return I(t);case 238:return M(t);default:e.Debug.fail("Unknown symbol kind")}}function F(t){if(265===t.parent.kind){var r=e.getModifierFlags(t);1&r&&ce("export "),512&r?ce("default "):230!==t.kind&&we&&ce("declare ")}}function O(e){8&e?ce("private "):16&e&&ce("protected "),32&e&&ce("static "),64&e&&ce("readonly "),128&e&&ce("abstract ")}function I(t){function r(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}Ne(t),e.hasModifier(t,1)&&ce("export "),ce("import "),de(be,t.name),ce(" = "),e.isInternalModuleImportEqualsDeclaration(t)?(C(t.moduleReference,r),ce(";")):(ce("require("),L(t),ce(");")),pe.writeLine()}function R(t){if(t)return 240===t.kind?r.isDeclarationVisible(t):e.forEach(t.elements,function(e){return r.isDeclarationVisible(e)})}function M(t){if(Ne(t),e.hasModifier(t,1)&&ce("export "),ce("import "),t.importClause){var n=pe.getTextPos();t.importClause.name&&r.isDeclarationVisible(t.importClause)&&de(be,t.importClause.name),t.importClause.namedBindings&&R(t.importClause.namedBindings)&&(n!==pe.getTextPos()&&ce(", "),240===t.importClause.namedBindings.kind?(ce("* as "),de(be,t.importClause.namedBindings.name)):(ce("{ "),k(t.importClause.namedBindings.elements,B,r.isDeclarationVisible),ce(" }"))),ce(" from ")}L(t),ce(";"),pe.writeLine()}function L(n){he=he||233!==n.kind;var a;if(237===n.kind){var i=n;a=e.getExternalModuleImportEqualsDeclarationExpression(i)}else if(233===n.kind)a=n.name;else{var i=n;a=i.moduleSpecifier}if(9===a.kind&&me&&(ye.out||ye.outFile)){var o=e.getExternalModuleNameFromDeclaration(t,r,n);if(o)return ce('"'),ce(o),void ce('"')}de(be,a)}function B(e){e.propertyName&&(de(be,e.propertyName),ce(" as ")),de(be,e.name)}function J(e){B(e);var t=r.collectLinkedAliases(e.propertyName||e.name);l(t)}function z(e){Ne(e),ce("export "),e.exportClause?(ce("{ "),k(e.exportClause.elements,J),ce(" }")):ce("*"),e.moduleSpecifier&&(ce(" from "),L(e)),ce(";"),pe.writeLine()}function K(t){for(Ne(t),F(t),e.isGlobalScopeAugmentation(t)?ce("global "):(ce(16&t.flags?"namespace ":"module "),e.isExternalModuleAugmentation(t)?L(t):de(be,t.name));t.body&&234!==t.body.kind;)t=t.body,ce("."),de(be,t.name);var r=ve;t.body?(ve=t,ce(" {"),ue(),_e(),h(t.body.statements),le(),ce("}"),ue(),ve=r):ce(";")}function j(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=ve;ve=t,Ne(t),F(t),ce("type "),de(be,t.name),W(t.typeParameters),ce(" = "),C(t.type,r),ce(";"),ue(),ve=n}function V(t){Ne(t),F(t),e.isConst(t)&&ce("const "),ce("enum "),de(be,t.name),ce(" {"),ue(),_e(),h(t.members),le(),ce("}"),ue()}function U(t){Ne(t),de(be,t.name);var n=r.getConstantValue(t);void 0!==n&&(ce(" = "),ce(e.getTextOfConstantValue(n))),ce(","),ue()}function q(t){return 151===t.parent.kind&&e.hasModifier(t.parent,8)}function W(t){function r(t){function r(){var r;switch(t.parent.kind){case 229:r=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 230:r=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 156:r=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 155:r=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 151:case 150: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:229===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 228:r=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 231: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}}_e(),Ne(t),le(),de(be,t.name),t.constraint&&!q(t)&&(ce(" extends "),160===t.parent.kind||161===t.parent.kind||t.parent.parent&&163===t.parent.parent.kind?(e.Debug.assert(151===t.parent.kind||150===t.parent.kind||160===t.parent.kind||161===t.parent.kind||155===t.parent.kind||156===t.parent.kind),D(t.constraint)):C(t.constraint,r)),t["default"]&&!q(t)&&(ce(" = "),160===t.parent.kind||161===t.parent.kind||t.parent.parent&&163===t.parent.parent.kind?(e.Debug.assert(151===t.parent.kind||150===t.parent.kind||160===t.parent.kind||161===t.parent.kind||155===t.parent.kind||156===t.parent.kind),D(t["default"])):C(t["default"],r))}t&&(ce("<"),k(t,r),ce(">"))}function H(t,r){function n(t){function n(){var n;return n=229===t.parent.parent.kind?r?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:n,errorNode:t,typeName:e.getNameOfDeclaration(t.parent.parent)}}e.isEntityNameExpression(t.expression)?C(t,n):r||95!==t.expression.kind||ce("null")}t&&(ce(r?" implements ":" extends "),k(t,n))}function G(t){function r(t){t&&e.forEach(t.parameters,function(t){e.hasModifier(t,92)&&Q(t)})}var n=ve;ve=t;var a,i=e.getClassExtendsHeritageClauseElement(t);i&&!e.isEntityNameExpression(i.expression)&&(a=95===i.expression.kind?"null":E(i.expression,t.name.text+"_base",{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:i,typeName:t.name},!e.findAncestor(t,function(e){return 233===e.kind}))),Ne(t),F(t),e.hasModifier(t,128)&&ce("abstract "),ce("class "),de(be,t.name),W(t.typeParameters),i&&(e.isEntityNameExpression(i.expression)?H([i],!1):(ce(" extends "),ce(a),i.typeArguments&&(ce("<"),k(i.typeArguments,D),ce(">")))),H(e.getClassImplementsHeritageClauseElements(t),!0),ce(" {"),ue(),_e(),r(e.getFirstConstructorWithBody(t)),h(t.members),le(),ce("}"),ue(),ve=n}function X(t){Ne(t),F(t),ce("interface "),de(be,t.name);var r=ve;ve=t,W(t.typeParameters);var n=e.filter(e.getInterfaceBaseTypeNodes(t),function(t){return e.isEntityNameExpression(t.expression)});n&&n.length&&H(n,!1),ce(" {"),ue(),_e(),h(t.members),le(),ce("}"),ue(),ve=r}function Q(t){e.hasDynamicName(t)||(Ne(t),O(e.getModifierFlags(t)),Y(t),ce(";"),ue())}function Y(t){function n(r){return 226===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:149===t.kind||148===t.kind||146===t.kind&&e.hasModifier(t.parent,8)?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:229===t.parent.kind||146===t.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];200!==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):(de(be,t.name),y(t,void 0,r)))}(226!==t.kind||r.isDeclarationVisible(t))&&(e.isBindingPattern(t.name)?i(t.name):(de(be,t.name),(149===t.kind||148===t.kind||146===t.kind&&!e.isParameterPropertyDeclaration(t))&&e.hasQuestionToken(t)&&ce("?"),149!==t.kind&&148!==t.kind||163!==t.parent.kind?r.isLiteralConstDeclaration(t)?(ce(" = "),r.writeLiteralConstValue(t,pe)):e.hasModifier(t,8)||y(t,t.type,a):Z(t)))}function Z(e){e.type&&(ce(": "),D(e.type))}function $(t){return e.forEach(t.declarationList.declarations,function(e){return r.isDeclarationVisible(e)})}function ee(t){Ne(t),F(t),ce(e.isLet(t.declarationList)?"let ":e.isConst(t.declarationList)?"const ":"var "),k(t.declarationList.declarations,Y,r.isDeclarationVisible),ce(";"),ue()}function te(t){function r(e){if(e)return 153===e.kind?e.type:e.parameters.length>0?e.parameters[0].type:void 0}function n(t){var r;return 154===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(Ne(i.getAccessor),Ne(i.setAccessor),O(e.getModifierFlags(t)|(i.setAccessor?0:64)),de(be,t.name),!e.hasModifier(t,8)){a=t;var o=r(t);if(!o){var s=153===t.kind?i.setAccessor:i.getAccessor;o=r(s),o&&(a=s)}y(t,o,n)}ce(";"),ue()}}}function re(t){e.hasDynamicName(t)||r.isImplementationOfOverload(t)||(Ne(t),228===t.kind?F(t):151!==t.kind&&152!==t.kind||O(e.getModifierFlags(t)),228===t.kind?(ce("function "),de(be,t.name)):152===t.kind?ce("constructor"):(de(be,t.name),e.hasQuestionToken(t)&&ce("?")),ae(t))}function ne(e){Ne(e),ae(e)}function ae(t){function r(r){var n;switch(t.kind){case 156: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 155: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 157: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 151:case 150: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:229===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 228: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=ve;ve=t;var a=!1;if(157===t.kind)O(e.getModifierFlags(t)),ce("[");else{if(152===t.kind&&e.hasModifier(t,8))return ce("();"),void ue();if(156===t.kind||161===t.kind)ce("new ");else if(160===t.kind){var i=pe.getText();t.typeParameters&&"<"===i.charAt(i.length-1)&&(a=!0,ce("("))}W(t.typeParameters),ce("(")}k(t.parameters,ie),ce(157===t.kind?"]":")");var o=160===t.kind||161===t.kind;o||163===t.parent.kind?t.type&&(ce(o?" => ":": "),D(t.type)):152===t.kind||e.hasModifier(t,8)||v(t,r),ve=n,o?a&&ce(")"):(ce(";"),ue())}function ie(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 152: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 156: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 155: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 157: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 151:case 150: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:229===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 228: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(174===e.kind)ce("{"),k(e.elements,o),ce("}");else if(175===e.kind){ce("[");var t=e.elements;k(t,o),t&&t.hasTrailingComma&&ce(", "),ce("]")}}function o(t){200===t.kind?ce(" "):176===t.kind&&(t.propertyName&&(de(be,t.propertyName),ce(": ")),t.name&&(e.isBindingPattern(t.name)?i(t.name):(e.Debug.assert(71===t.name.kind),t.dotDotDotToken&&ce("..."),de(be,t.name))))}_e(),Ne(t),t.dotDotDotToken&&ce("..."),e.isBindingPattern(t.name)?i(t.name):de(be,t.name),r.isOptionalParameter(t)&&ce("?"),le(),160===t.parent.kind||161===t.parent.kind||163===t.parent.parent.kind?Z(t):e.hasModifier(t.parent,8)||y(t,t.type,n)}function oe(e){switch(e.kind){case 228:case 233:case 237:case 230:case 229:case 231:case 232:return w(e,A(e));case 208:return w(e,$(e));case 238:return w(e,!e.importClause);case 244:return z(e);case 152:case 151:case 150:return re(e);case 156:case 155:case 157:return ne(e);case 153:case 154:return te(e);case 149:case 148:return Q(e);case 264:return U(e);case 243:return N(e);case 265:return S(e)}}function se(r,n,i){function o(t,a){var i=266===a.kind;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 r.isDeclarationFile?s=r.fileName:e.forEachEmittedFile(t,o,r,i),s&&(s=e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizeSlashes(a)),s,t.getCurrentDirectory(),t.getCanonicalFileName,!1),Fe+='/// <reference path="'+s+'" />'+ge),c}var ce,ue,_e,le,de,pe,fe=266===i.kind?i.sourceFiles:[i],me=266===i.kind,ge=t.getNewLine(),ye=t.getCompilerOptions();u();var ve,he,be,ke,xe,Ce,De,Se,Te,Ee=!1,Ne=ye.removeComments?e.noop:x,Ae=ye.stripInternal?c:oe,we=!0,Pe=[],Fe="",Oe=[],Ie=!1,Re=[];return e.forEach(fe,function(r){if(!e.isSourceFileJavaScript(r)){if(ye.noResolve||e.forEach(r.referencedFiles,function(n){var a=e.tryResolveScriptReference(t,r,n);a&&!e.contains(Oe,a)&&(se(a,!me&&!Ie,o)&&(Ie=!0),Oe.push(a))}),he=!1,me&&e.isExternalModule(r)?e.isExternalModule(r)&&(we=!1,ce('declare module "'+e.getResolvedExternalModuleName(t,r)+'" {'),ue(),_e(),S(r),le(),ce("}"),ue()):(we=!0,S(r)),Pe.length){var n=pe;e.forEach(Pe,function(t){if(t.isVisible&&!t.asynchronousOutput){e.Debug.assert(238===t.node.kind),u(),e.Debug.assert(0===t.indent||1===t.indent&&me);for(var r=0;r<t.indent;r++)_e();M(t.node),t.asynchronousOutput=pe.getText();for(var r=0;r<t.indent;r++)le()}}),_(n),Re=Re.concat(Pe),Pe=[]}!me&&e.isExternalModule(r)&&r.moduleAugmentations.length&&!he&&(ce("export {};"),ue())}}),Te&&e.forEachKey(Te,function(e){Fe+='/// <reference types="'+e+'" />'+ge}),{reportedDeclarationError:Ee,moduleElementDeclarationEmitInfo:Re,synchronousDeclarationOutput:pe.getText(),referencesOutput:Fe}}function n(t,n,a,i,o,s){function c(t,r){var n=0,a="";return e.forEach(r,function(e){e.asynchronousOutput&&(a+=t.substring(n,e.outputPos),a+=c(e.asynchronousOutput,e.subModuleElementDeclarationEmitInfo),n=e.outputPos)}),a+=t.substring(n)}var u=r(a,i,o,t,n,s),_=u.reportedDeclarationError||a.isEmitBlocked(t)||a.getCompilerOptions().noEmit;if(!_){var l=266===n.kind?n.sourceFiles:[n],d=u.referencesOutput+c(u.synchronousDeclarationOutput,u.moduleElementDeclarationEmitInfo);e.writeFile(a,o,t,d,a.getCompilerOptions().emitBOM,l)}return _}e.getDeclarationDiagnostics=t,e.writeDeclarationFile=n}(ts||(ts={}));var ts;!function(e){function t(t,n,a,i,o){function s(r,a){var o=r.jsFilePath,s=r.sourceMapFilePath,u=r.declarationFilePath;n.isEmitBlocked(o)||f.noEmit?x=!0:i||c(o,s,a),u&&(x=e.writeDeclarationFile(u,e.getOriginalSourceFileOrBundle(a),n,t,v,i)||x),!x&&y&&(i||y.push(o),s&&y.push(s),u&&y.push(u))}function c(t,r,a){var i=266===a.kind?a:void 0,o=265===a.kind?a:void 0,s=i?i.sourceFiles:[o];k.initialize(t,r,a),i?(d=e.createMap(),p=!1,S.writeBundle(i,b)):(p=!0,S.writeFile(o,b)),b.writeLine();var c=k.getSourceMappingURL();c&&b.write("//# sourceMappingURL="+c),f.sourceMap&&!f.inlineSourceMap&&e.writeFile(n,v,r,k.getText(),!1,s),g&&g.push(k.getSourceMapData()),e.writeFile(n,v,t,b.getText(),f.emitBOM,s),k.reset(),b.reset(),l=void 0,d=void 0,p=!1}function u(e){l=e,k.setSourceFile(e)}function _(t,r){var n=!1,a=266===t.kind?t:void 0;if(!a||m!==e.ModuleKind.None){for(var i=a?a.sourceFiles.length:1,o=0;o<i;o++){var s=a?a.sourceFiles[o]:t,c=e.isSourceFile(s)?s:l,u=f.noEmitHelpers||void 0!==e.getExternalHelpersModuleName(c),_=e.isSourceFile(s)&&!p,g=e.getEmitHelpers(s);if(g)for(var y=0,v=e.stableSort(g,e.compareEmitHelpers);y<v.length;y++){var h=v[y];if(h.scoped){if(a)continue}else{if(u)continue;if(_){if(d.get(h.name))continue;d.set(h.name,!0)}}r(h.text),n=!0}}return n}}var l,d,p,f=n.getCompilerOptions(),m=e.getEmitModuleKind(f),g=f.sourceMap||f.inlineSourceMap?[]:void 0,y=f.listEmittedFiles?[]:void 0,v=e.createDiagnosticCollection(),h=n.getNewLine(),b=e.createTextWriter(h),k=e.createSourceMapWriter(n,b),x=!1,C=e.getSourceFilesToEmit(n,a),D=e.transformNodes(t,n,f,C,o,!1),S=r(f,{hasGlobalName:t.hasGlobalName,onEmitNode:D.emitNodeWithNotification,substituteNode:D.substituteNode,onEmitSourceMapOfNode:k.emitNodeWithSourceMap,onEmitSourceMapOfToken:k.emitTokenWithSourceMap,onEmitSourceMapOfPosition:k.emitPos,onEmitHelpers:_,onSetSourceFile:u});return e.performance.mark("beforePrint"),e.forEachEmittedFile(n,s,D.transformed,i),e.performance.measure("printTime","beforePrint"),D.dispose(),{emitSkipped:x,diagnostics:v.getDiagnostics(),emittedFiles:y,sourceMaps:g}}function r(t,r){function n(t,r,n){switch(t){case 0:e.Debug.assert(e.isSourceFile(r),"Expected a SourceFile node.");break;case 2:e.Debug.assert(e.isIdentifier(r),"Expected an Identifier node.");break;case 1:e.Debug.assert(e.isExpression(r),"Expected an Expression node.")}switch(r.kind){case 265:return c(r);case 266:return i(r)}return u(t,r,n,d()),p()}function i(e){return _(e,d()),p()}function c(e){return l(e,d()),p()}function u(e,t,r,n){var a=Nn;g(n),f(e,t,r),y(),Nn=a}function _(e,t){var r=Nn;g(t),vr(e),yr(e),w(e);for(var n=0,a=e.sourceFiles;n<a.length;n++){var i=a[n];f(0,i,i)}y(),Nn=r}function l(e,t){var r=Nn;g(t),vr(e),yr(e),f(0,e,e),y(),Nn=r}function d(){return An||(An=e.createTextWriter(jn))}function p(){var e=An.getText();return An.reset(),e}function f(e,t,r){r&&m(r),k(e,t)}function m(e){xn=e,Vn.setSourceFile(e),Mn&&Mn(e)}function g(e){Nn=e,Vn.setWriter(e)}function y(){Cn=[],Dn=[],Sn=e.createMap(),Tn=[],En=0,Vn.reset(),g(void 0)}function v(e){k(3,e)}function h(e){k(2,e)}function b(e){k(1,e)}function k(e,t){In?In(e,t,x):x(e,t)}function x(e,t){t=A(e,t),Un&&0!==e?Un(e,t,C):C(e,t)}function C(e,t){Pn&&0!==e&&2!==e?Pn(e,t,D):D(e,t)}function D(e,t){switch(e){case 0:return S(t);case 2:return T(t);case 1:return N(t);case 3:return E(t)}}function S(t){e.Debug.assertNode(t,e.isSourceFile),dr(t)}function T(t){e.Debug.assertNode(t,e.isIdentifier),O(t)}function E(t){var r=t.kind;if(e.isKeyword(r))return void jr(t);switch(r){case 14:case 15:case 16:return F(t);case 71:return O(t);case 143:return I(t);case 144:return M(t);case 145:return L(t);case 146:return B(t);case 147:return J(t);case 148:return z(t);case 149:return K(t);case 150:return j(t);case 151:return V(t);case 152:return U(t);case 153:case 154:return q(t);case 155:return W(t);case 156:return H(t);case 157:return G(t);case 158:return Q(t);case 159:return Y(t);case 160:return Z(t);case 161:return $(t);case 162:return ee(t);case 163:return te(t);case 164:return re(t);case 165:return ne(t);case 166:return ae(t);case 167:return ie(t);case 168:return oe(t);case 201:return Ke(t);case 169:return se();case 170:return ce(t);case 171:return ue(t);case 172:return _e(t);case 173:return le(t);case 174:return de(t);case 175:return pe(t);case 176:return fe(t);case 205:return qe(t);case 206:return X();case 207:return We(t);case 208:return Ge(t);case 209:return Xe();case 210:return Qe(t);case 211:return Ye(t);case 212:return Ze(t);case 213:return $e(t);case 214:return et(t);case 215:return tt(t);case 216:return rt(t);case 217:return at(t);case 218:return it(t);case 219:return ot(t);case 220:return st(t);case 221:return ct(t);case 222:return ut(t);case 223:return _t(t);case 224:return lt(t);case 225:return dt(t);case 226:return pt(t);case 227:return ft(t);case 228:return mt(t);case 229:return Dt(t);case 230:return Tt(t);case 231:return Et(t);case 232:return Nt(t);case 233:return At(t);case 234:return wt(t);case 235:return Pt(t);case 236:return Kt(t);case 237:return Ft(t);case 238:return It(t);case 239:return Rt(t);case 240:return Mt(t);case 241:return Lt(t);case 242:return Bt(t);case 243:return Jt(t);case 244:return zt(t);case 245:return jt(t);case 246:return Vt(t);case 247:return;case 248:return Wt(t);case 10:return Qt(t);case 251:return Xt(t);case 252:return Yt(t);case 253:return $t(t);case 254:return Zt(t);case 255:return er(t);case 256:return tr(t);case 257:return nr(t);case 258:return ar(t);case 259:return or(t);case 260:return sr(t);case 261:return cr(t);case 262:return ur(t);case 263:return _r(t);case 264:return lr(t)}return e.isExpression(t)?N(A(1,t)):e.isToken(t)?void jr(t):void 0}function N(e){var t=e.kind;switch(t){case 8:return P(e);case 9:case 12:case 13:return F(e);case 71:return O(e);case 86:case 95:case 97:case 101:case 99:case 91:return void jr(e);case 177:return me(e);case 178:return ge(e);case 179:return ye(e);case 180:return he(e);case 181:return be(e);case 182:return ke(e);case 183:return xe(e);case 184:return Ce(e);case 185:return De(e);case 186:return Se(e);case 187:return Te(e);case 188:return Ne(e);case 189:return Ae(e);case 190:return we(e);case 191:return Pe(e);case 192:return Fe(e);case 193:return Ie(e);case 194:return Re(e);case 195:return Me(e);case 196:return Le(e);case 197:return Be(e);case 198:return Je(e);case 199:return ze(e);case 200:return;case 202:return je(e);case 203:return Ve(e);case 204:return Ue(e);case 249:return Ht(e);case 250:return Gt(e);case 297:return fr(e);case 298:return mr(e)}}function A(e,t){return t&&Ln&&Ln(e,t)||t}function w(e){Rn&&Rn(e,qr)}function P(e){F(e)}function F(r){var n=an(r);!t.sourceMap&&!t.inlineSourceMap||9!==r.kind&&!e.isTemplateLiteralKind(r.kind)?Rr(n):Nn.writeLiteral(n)}function O(e){Rr(nn(e,!1)),Tr(e,e.typeArguments)}function I(e){R(e.left),Rr("."),v(e.right)}function R(e){71===e.kind?b(e):v(e)}function M(e){Rr("["),b(e.expression),Rr("]")}function L(e){v(e.name),br(" extends ",e.constraint),br(" = ",e["default"])}function B(e){Sr(e,e.decorators),hr(e,e.modifiers),zr(e.dotDotDotToken,"..."),v(e.name),zr(e.questionToken,"?"),br(": ",e.type),kr(" = ",e.initializer)}function J(e){Rr("@"),b(e.expression)}function z(e){Sr(e,e.decorators),hr(e,e.modifiers),v(e.name),zr(e.questionToken,"?"),br(": ",e.type),Rr(";")}function K(e){Sr(e,e.decorators),hr(e,e.modifiers),v(e.name),zr(e.questionToken,"?"),br(": ",e.type),kr(" = ",e.initializer),Rr(";")}function j(e){Sr(e,e.decorators),hr(e,e.modifiers),v(e.name),zr(e.questionToken,"?"),Er(e,e.typeParameters),Nr(e,e.parameters),br(": ",e.type),Rr(";")}function V(e){Sr(e,e.decorators),hr(e,e.modifiers),zr(e.asteriskToken,"*"),v(e.name),zr(e.questionToken,"?"),vt(e,ht)}function U(e){hr(e,e.modifiers),Rr("constructor"),vt(e,ht)}function q(e){Sr(e,e.decorators),hr(e,e.modifiers),Rr(153===e.kind?"get ":"set "),v(e.name),vt(e,ht)}function W(e){Sr(e,e.decorators),hr(e,e.modifiers),Er(e,e.typeParameters),Nr(e,e.parameters),br(": ",e.type),Rr(";")}function H(e){Sr(e,e.decorators),hr(e,e.modifiers),Rr("new "),Er(e,e.typeParameters),Nr(e,e.parameters),br(": ",e.type),Rr(";")}function G(e){Sr(e,e.decorators),hr(e,e.modifiers),Pr(e,e.parameters),br(": ",e.type),Rr(";")}function X(){Rr(";")}function Q(e){v(e.parameterName),Rr(" is "),v(e.type)}function Y(e){v(e.typeName),Tr(e,e.typeArguments)}function Z(e){Er(e,e.typeParameters),wr(e,e.parameters),Rr(" => "),v(e.type)}function $(e){Rr("new "),Er(e,e.typeParameters),Nr(e,e.parameters),Rr(" => "),v(e.type)}function ee(e){Rr("typeof "),v(e.exprName)}function te(t){Rr("{"),t.members.length>0&&Fr(t,t.members,1&e.getEmitFlags(t)?448:65),Rr("}")}function re(e){v(e.elementType),Rr("[]")}function ne(e){Rr("["),Fr(e,e.elementTypes,336),Rr("]")}function ae(e){Fr(e,e.types,260)}function ie(e){Fr(e,e.types,264)}function oe(e){Rr("("),v(e.type),Rr(")")}function se(){Rr("this")}function ce(e){Vr(e.operator),Rr(" "),v(e.type)}function ue(e){v(e.objectType),Rr("["),v(e.indexType),Rr("]")}function _e(t){var r=e.getEmitFlags(t);Rr("{"),1&r?Rr(" "):(Mr(),Lr()),zr(t.readonlyToken,"readonly "),Rr("["),v(t.typeParameter.name),Rr(" in "),v(t.typeParameter.constraint),Rr("]"),zr(t.questionToken,"?"),Rr(": "),v(t.type),Rr(";"),1&r?Rr(" "):(Mr(),Br()),Rr("}")}function le(e){b(e.literal)}function de(e){var t=e.elements;0===t.length?Rr("{}"):(Rr("{"),Fr(e,t,432),Rr("}"))}function pe(e){var t=e.elements;0===t.length?Rr("[]"):(Rr("["),Fr(e,e.elements,304),Rr("]"))}function fe(e){Cr(e.propertyName,": "),zr(e.dotDotDotToken,"..."),v(e.name),kr(" = ",e.initializer)}function me(e){var t=e.elements;if(0===t.length)Rr("[]");else{var r=e.multiLine?32768:0;Or(e,t,4466|r)}}function ge(t){var r=t.properties;if(0===r.length)Rr("{}");else{var n=65536&e.getEmitFlags(t);n&&Lr();var a=t.multiLine?32768:0,i=xn.languageVersion>=1?32:0;Fr(t,r,978|i|a),n&&Br()}}function ye(t){var r=!1,n=!1;if(!(131072&e.getEmitFlags(t))){var a=t.expression.end,i=e.skipTrivia(xn.text,t.expression.end)+1,o={kind:23,pos:a,end:i};r=$r(t,t.expression,o),n=$r(t,o,t.name)}b(t.expression),Hr(r);var s=!r&&ve(t.expression);Rr(s?"..":"."),Hr(n),v(t.name),Gr(r,n)}function ve(r){if(r=e.skipPartiallyEmittedExpressions(r),e.isNumericLiteral(r)){var n=an(r);return!r.numericLiteralFlags&&n.indexOf(e.tokenToString(23))<0}if(e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r)){var a=e.getConstantValue(r);return"number"==typeof a&&isFinite(a)&&Math.floor(a)===a&&t.removeComments}}function he(e){b(e.expression),Rr("["),b(e.argumentExpression),Rr("]")}function be(e){b(e.expression),Tr(e,e.typeArguments),Or(e,e.arguments,1296)}function ke(e){Rr("new "),b(e.expression),Tr(e,e.typeArguments),Or(e,e.arguments,9488)}function xe(e){b(e.tag),Rr(" "),b(e.template)}function Ce(e){Rr("<"),v(e.type),Rr(">"),b(e.expression)}function De(e){Rr("("),b(e.expression),Rr(")")}function Se(e){gt(e)}function Te(e){Sr(e,e.decorators),hr(e,e.modifiers),vt(e,Ee)}function Ee(e){Er(e,e.typeParameters),wr(e,e.parameters),br(": ",e.type),Rr(" =>")}function Ne(e){Rr("delete "),b(e.expression)}function Ae(e){Rr("typeof "),b(e.expression)}function we(e){Rr("void "),b(e.expression)}function Pe(e){Rr("await "),b(e.expression)}function Fe(e){Vr(e.operator),Oe(e)&&Rr(" "),b(e.operand)}function Oe(e){var t=e.operand;return 192===t.kind&&(37===e.operator&&(37===t.operator||43===t.operator)||38===e.operator&&(38===t.operator||44===t.operator))}function Ie(e){b(e.operand),Vr(e.operator)}function Re(e){var t=26!==e.operatorToken.kind,r=$r(e,e.left,e.operatorToken),n=$r(e,e.operatorToken,e.right);b(e.left),Hr(r,t?" ":void 0),jr(e.operatorToken),Hr(n," "),b(e.right),Gr(r,n)}function Me(e){var t=$r(e,e.condition,e.questionToken),r=$r(e,e.questionToken,e.whenTrue),n=$r(e,e.whenTrue,e.colonToken),a=$r(e,e.colonToken,e.whenFalse);b(e.condition),Hr(t," "),Rr("?"),Hr(r," "),b(e.whenTrue),Gr(t,r),Hr(n," "),Rr(":"),Hr(a," "),b(e.whenFalse),Gr(n,a)}function Le(e){v(e.head),Fr(e,e.templateSpans,131072)}function Be(e){Rr(e.asteriskToken?"yield*":"yield"),kr(" ",e.expression)}function Je(e){Rr("..."),b(e.expression)}function ze(e){St(e)}function Ke(e){b(e.expression),Tr(e,e.typeArguments)}function je(e){b(e.expression),e.type&&(Rr(" as "),v(e.type))}function Ve(e){b(e.expression),Rr("!")}function Ue(e){Kr(e.keywordToken,e.pos),Rr("."),v(e.name)}function qe(e){b(e.expression),v(e.literal)}function We(e){en(e)?(Kr(17,e.pos,e),Rr(" "),Kr(18,e.statements.end,e)):(Kr(17,e.pos,e),He(e),Lr(),Hn(e.statements.end),Br(),Kr(18,e.statements.end,e))}function He(t){1&e.getEmitFlags(t)?Fr(t,t.statements,384):Fr(t,t.statements,65)}function Ge(e){hr(e,e.modifiers),v(e.declarationList),Rr(";")}function Xe(){Rr(";")}function Qe(e){b(e.expression),Rr(";")}function Ye(e){var t=Kr(90,e.pos,e);Rr(" "),Kr(19,t,e),b(e.expression),Kr(20,e.expression.end,e),Dr(e,e.thenStatement),e.elseStatement&&(Ur(e),Kr(82,e.thenStatement.end,e),211===e.elseStatement.kind?(Rr(" "),v(e.elseStatement)):Dr(e,e.elseStatement))}function Ze(t){Rr("do"),Dr(t,t.statement),e.isBlock(t.statement)?Rr(" "):Ur(t),Rr("while ("),b(t.expression),Rr(");")}function $e(e){Rr("while ("),b(e.expression),Rr(")"),Dr(e,e.statement)}function et(e){var t=Kr(88,e.pos);Rr(" "),Kr(19,t,e),nt(e.initializer),Rr(";"),kr(" ",e.condition),Rr(";"),kr(" ",e.incrementor),Rr(")"),Dr(e,e.statement)}function tt(e){var t=Kr(88,e.pos);Rr(" "),Kr(19,t),nt(e.initializer),Rr(" in "),b(e.expression),Kr(20,e.expression.end),Dr(e,e.statement)}function rt(e){var t=Kr(88,e.pos);Rr(" "),Cr(e.awaitModifier," "),Kr(19,t),nt(e.initializer),Rr(" of "),b(e.expression),Kr(20,e.expression.end),Dr(e,e.statement)}function nt(e){void 0!==e&&(227===e.kind?v(e):b(e))}function at(e){Kr(77,e.pos),br(" ",e.label),Rr(";")}function it(e){Kr(72,e.pos),br(" ",e.label),Rr(";")}function ot(e){Kr(96,e.pos,e),kr(" ",e.expression),Rr(";")}function st(e){Rr("with ("),b(e.expression),Rr(")"),Dr(e,e.statement)}function ct(e){var t=Kr(98,e.pos);Rr(" "),Kr(19,t),b(e.expression),Kr(20,e.expression.end),Rr(" "),v(e.caseBlock)}function ut(e){v(e.label),Rr(": "),v(e.statement)}function _t(e){Rr("throw"),kr(" ",e.expression),Rr(";")}function lt(e){Rr("try "),v(e.tryBlock),e.catchClause&&(Ur(e),v(e.catchClause)),e.finallyBlock&&(Ur(e),Rr("finally "),v(e.finallyBlock))}function dt(e){Kr(78,e.pos),Rr(";")}function pt(e){v(e.name),br(": ",e.type),kr(" = ",e.initializer)}function ft(t){Rr(e.isLet(t)?"let ":e.isConst(t)?"const ":"var "),Fr(t,t.declarations,272)}function mt(e){gt(e)}function gt(e){Sr(e,e.decorators),hr(e,e.modifiers),Rr(e.asteriskToken?"function* ":"function "),h(e.name),vt(e,ht)}function yt(e,t){kt(t)}function vt(t,r){var n=t.body;if(n)if(e.isBlock(n)){var a=65536&e.getEmitFlags(t);a&&Lr(),524288&e.getEmitFlags(t)?(r(t),In?In(3,n,yt):kt(n)):(on(),r(t),In?In(3,n,yt):kt(n),sn()),a&&Br()}else r(t),Rr(" "),b(n);else r(t),Rr(";")}function ht(e){Er(e,e.typeParameters),Nr(e,e.parameters),br(": ",e.type)}function bt(t){if(1&e.getEmitFlags(t))return!0;if(t.multiLine)return!1;if(!e.nodeIsSynthesized(t)&&!e.rangeIsOnSingleLine(t,xn))return!1;if(Xr(t,t.statements,2)||Yr(t,t.statements,2))return!1;for(var r,n=0,a=t.statements;n<a.length;n++){var i=a[n];if(Qr(r,i,2))return!1;r=i}return!0}function kt(e){Rr(" {"),Lr();var t=bt(e)?xt:Ct;qn?qn(e,e.statements,t):t(e),Br(),Kr(18,e.statements.end,e)}function xt(e){Ct(e,!0)}function Ct(e,t){var r=gr(e.statements,!0),n=Nn.getTextPos();w(e),0===r&&n===Nn.getTextPos()&&t?(Br(),Fr(e,e.statements,384),Lr()):Fr(e,e.statements,1,r)}function Dt(e){St(e)}function St(t){Sr(t,t.decorators),hr(t,t.modifiers),Rr("class"),xr(" ",t.name,h);var r=65536&e.getEmitFlags(t);r&&Lr(),Er(t,t.typeParameters),Fr(t,t.heritageClauses,256),on(),Rr(" {"),Fr(t,t.members,65),Rr("}"),sn(),r&&Br()}function Tt(e){Sr(e,e.decorators),hr(e,e.modifiers),Rr("interface "),v(e.name),Er(e,e.typeParameters),Fr(e,e.heritageClauses,256),Rr(" {"),Fr(e,e.members,65),Rr("}")}function Et(e){Sr(e,e.decorators),hr(e,e.modifiers),Rr("type "),v(e.name),Er(e,e.typeParameters),Rr(" = "),v(e.type),Rr(";")}function Nt(e){hr(e,e.modifiers),Rr("enum "),v(e.name),on(),Rr(" {"),Fr(e,e.members,81),Rr("}"),sn()}function At(e){hr(e,e.modifiers),Rr(16&e.flags?"namespace ":"module "),v(e.name);for(var t=e.body;233===t.kind;)Rr("."),v(t.name),t=t.body;Rr(" "),v(t)}function wt(e){tn(e)?Rr("{ }"):(on(),Rr("{"),He(e),Rr("}"),sn())}function Pt(e){Kr(17,e.pos),Fr(e,e.clauses,65),Kr(18,e.clauses.end)}function Ft(e){hr(e,e.modifiers),Rr("import "),v(e.name),Rr(" = "),Ot(e.moduleReference),Rr(";")}function Ot(e){71===e.kind?b(e):v(e)}function It(e){hr(e,e.modifiers),Rr("import "),e.importClause&&(v(e.importClause),Rr(" from ")),b(e.moduleSpecifier),Rr(";")}function Rt(e){v(e.name),e.name&&e.namedBindings&&Rr(", "),v(e.namedBindings)}function Mt(e){Rr("* as "),v(e.name)}function Lt(e){Ut(e)}function Bt(e){qt(e)}function Jt(e){Rr(e.isExportEquals?"export = ":"export default "),b(e.expression),Rr(";")}function zt(e){Rr("export "),e.exportClause?v(e.exportClause):Rr("*"),e.moduleSpecifier&&(Rr(" from "),b(e.moduleSpecifier)),Rr(";")}function Kt(e){Rr("export as namespace "),v(e.name),Rr(";")}function jt(e){Ut(e)}function Vt(e){qt(e)}function Ut(e){Rr("{"),Fr(e,e.elements,432),Rr("}")}function qt(e){e.propertyName&&(v(e.propertyName),Rr(" as ")),v(e.name)}function Wt(e){Rr("require("),b(e.expression),Rr(")")}function Ht(e){v(e.openingElement),Fr(e,e.children,131072),v(e.closingElement)}function Gt(e){Rr("<"),rr(e.tagName),Rr(" "),e.attributes.properties&&e.attributes.properties.length>0&&v(e.attributes),Rr("/>")}function Xt(e){Rr("<"),rr(e.tagName),Jr(e.attributes.properties," "),e.attributes.properties&&e.attributes.properties.length>0&&v(e.attributes),Rr(">")}function Qt(e){Nn.writeLiteral(nn(e,!0))}function Yt(e){Rr("</"),rr(e.tagName),Rr(">")}function Zt(e){Fr(e,e.properties,131328)}function $t(e){v(e.name),br("=",e.initializer)}function er(e){Rr("{..."),b(e.expression),Rr("}")}function tr(e){e.expression&&(Rr("{"),e.dotDotDotToken&&Rr("..."),b(e.expression),Rr("}"))}function rr(e){71===e.kind?b(e):v(e)}function nr(e){Rr("case "),b(e.expression),Rr(":"),ir(e,e.statements)}function ar(e){Rr("default:"),ir(e,e.statements)}function ir(t,r){var n=1===r.length&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r[0])||e.rangeStartPositionsAreOnSameLine(t,r[0],xn));r.length>0&&Wn(r.pos),n?(Rr(" "),v(r[0])):Fr(t,r,81985)}function or(e){Rr(" "),Vr(e.token),Rr(" "),Fr(e,e.types,272)}function sr(e){var t=Kr(74,e.pos);Rr(" "),Kr(19,t),v(e.variableDeclaration),Kr(20,e.variableDeclaration?e.variableDeclaration.end:t),Rr(" "),v(e.block)}function cr(t){v(t.name),Rr(": ");var r=t.initializer;if(Wn&&0===(512&e.getEmitFlags(r))){var n=e.getCommentRange(r);Wn(n.pos)}b(r)}function ur(e){v(e.name),e.objectAssignmentInitializer&&(Rr(" = "),b(e.objectAssignmentInitializer))}function _r(e){e.expression&&(Rr("..."),b(e.expression))}function lr(e){v(e.name),kr(" = ",e.initializer)}function dr(t){Mr();var r=t.statements;if(qn){var n=0===r.length||!e.isPrologueDirective(r[0])||e.nodeIsSynthesized(r[0]);if(n)return void qn(t,r,pr)}pr(t)}function pr(t){var r=t.statements;on(),w(t);var n=e.findIndex(r,function(t){return!e.isPrologueDirective(t)});Fr(t,r,1,n===-1?r.length:n),sn()}function fr(e){b(e.expression)}function mr(e){Or(e,e.elements,272)}function gr(t,r,n){for(var a=0;a<t.length;a++){var i=t[a];if(!e.isPrologueDirective(i))return a;var o=!n||!n.has(i.expression.text);o&&((r||a>0)&&Mr(),v(i),n&&n.set(i.expression.text,i.expression.text))}return t.length}function yr(t){if(e.isSourceFile(t))m(t),gr(t.statements);else for(var r=e.createMap(),n=0,a=t.sourceFiles;n<a.length;n++){var i=a[n];m(i),gr(i.statements,!0,r)}}function vr(t){if(e.isSourceFile(t)){var r=e.getShebang(t.text);if(r)return Rr(r),Mr(),!0}else for(var n=0,a=t.sourceFiles;n<a.length;n++){var i=a[n];if(vr(i))break}}function hr(e,t){t&&t.length&&(Fr(e,t,131328),Rr(" "))}function br(e,t){xr(e,t,v)}function kr(e,t){xr(e,t,b)}function xr(e,t,r){t&&(Rr(e),r(t))}function Cr(e,t){e&&(v(e),Rr(t))}function Dr(t,r){e.isBlock(r)||1&e.getEmitFlags(t)?(Rr(" "),v(r)):(Mr(),Lr(),v(r),Br())}function Sr(e,t){Fr(e,t,24577)}function Tr(e,t){Fr(e,t,26960)}function Er(e,t){Fr(e,t,26960)}function Nr(e,t){Fr(e,t,1360)}function Ar(t,r){var n=e.singleOrUndefined(r);return n&&n.pos===t.pos&&!(e.isArrowFunction(t)&&t.type)&&!e.some(t.decorators)&&!e.some(t.modifiers)&&!e.some(t.typeParameters)&&!e.some(n.decorators)&&!e.some(n.modifiers)&&!n.dotDotDotToken&&!n.questionToken&&!n.type&&!n.initializer&&e.isIdentifier(n.name)}function wr(e,t){Ar(e,t)?v(t[0]):Nr(e,t)}function Pr(e,t){Fr(e,t,4432)}function Fr(e,t,r,n,a){Ir(v,e,t,r,n,a)}function Or(e,t,r,n,a){Ir(b,e,t,r,n,a)}function Ir(t,r,n,i,c,u){void 0===c&&(c=0),void 0===u&&(u=n?n.length-c:0);var _=void 0===n;if(!(_&&8192&i)){var l=_||0===n.length||c>=n.length||0===u;if(!(l&&16384&i)){if(7680&i&&Rr(o(i)),Bn&&Bn(n),l)1&i?Mr():128&i&&Rr(" ");else{var d=0===(131072&i),p=d;Xr(r,n,i)?(Mr(),p=!1):128&i&&Rr(" "),64&i&&Lr();for(var f=void 0,m=void 0,g=a(i),y=0;y<u;y++){var v=n[c+y];if(f&&(g&&f.end!==r.end&&Hn(f.end),Rr(g),Qr(f,v,i)?(0===(67&i)&&(Lr(),m=!0),Mr(),p=!1):f&&256&i&&Rr(" ")),p){if(Wn){var h=e.getCommentRange(v);Wn(h.pos)}}else p=d;t(v),m&&(Br(),m=!1),f=v}var b=32&i&&n.hasTrailingComma;16&i&&b&&Rr(","),f&&g&&f.end!==r.end&&Hn(f.end),64&i&&Br(),Yr(r,n,i)?Mr():128&i&&Rr(" ")}Jn&&Jn(n),7680&i&&Rr(s(i))}}}function Rr(e){Nn.write(e)}function Mr(){Nn.writeLine()}function Lr(){Nn.increaseIndent()}function Br(){Nn.decreaseIndent()}function Jr(t,r){e.some(t)&&Rr(r)}function zr(e,t){e&&Rr(t)}function Kr(e,t,r){return Fn?Fn(r,e,t,Vr):Vr(e,t)}function jr(e){zn&&zn(e),Vr(e.kind),Kn&&Kn(e)}function Vr(t,r){var n=e.tokenToString(t);return Rr(n),r<0?r:r+n.length}function Ur(t){1&e.getEmitFlags(t)?Rr(" "):Mr()}function qr(e){for(var t=e.split(/\r\n?|\n/g),r=Wr(t),n=0;n<t.length;n++){var a=r?t[n].slice(r):t[n];a.length&&(Mr(),Rr(a),Mr())}}function Wr(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.isWhiteSpaceLike(i.charCodeAt(o))&&(void 0===r||o<r)){r=o;break}return r}function Hr(e,t){e?(Lr(),Mr()):t&&Rr(t)}function Gr(e,t){e&&Br(),t&&Br()}function Xr(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,xn):e.positionIsSynthesized(t.pos)||e.nodeIsSynthesized(a)?Zr(a,n):!e.rangeStartPositionsAreOnSameLine(t,a,xn)}return!1}function Qr(t,r,n){return!!(1&n)||(2&n?void 0!==t&&void 0!==r&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r)?Zr(t,n)||Zr(r,n):!e.rangeEndIsOnSameLineAsRangeStart(t,r,xn)):r.startsOnNewLine)}function Yr(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,xn):e.positionIsSynthesized(t.pos)||e.nodeIsSynthesized(a)?Zr(a,n):!e.rangeEndPositionsAreOnSameLine(t,a,xn)}return!1}function Zr(t,r){if(e.nodeIsSynthesized(t)){var n=t.startsOnNewLine;return void 0===n?0!==(32768&r):n}return 0!==(32768&r)}function $r(t,r,n){return t=rn(t),r=rn(r),n=rn(n),!!n.startsOnNewLine||!(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r)||e.nodeIsSynthesized(n)||e.rangeEndIsOnSameLineAsRangeStart(r,n,xn))}function en(e){return!e.multiLine&&tn(e)}function tn(t){return 0===t.statements.length&&e.rangeEndIsOnSameLineAsRangeStart(t,t,xn)}function rn(t){for(;185===t.kind&&e.nodeIsSynthesized(t);)t=t.expression;return t}function nn(t,r){return e.isGeneratedIdentifier(t)?cn(t):!e.isIdentifier(t)||!e.nodeIsSynthesized(t)&&t.parent?9===t.kind&&t.textSourceNode?nn(t.textSourceNode,r):!e.isLiteralExpression(t)||!e.nodeIsSynthesized(t)&&t.parent?e.getSourceTextOfNodeFromSourceFile(xn,t,r):t.text:e.unescapeIdentifier(t.text)}function an(t){if(9===t.kind&&t.textSourceNode){var r=t.textSourceNode;return e.isIdentifier(r)?16777216&e.getEmitFlags(t)?'"'+e.escapeString(nn(r))+'"':'"'+e.escapeNonAsciiString(nn(r))+'"':an(r)}return e.getLiteralText(t,xn)}function on(){Tn.push(En),En=0}function sn(){En=Tn.pop()}function cn(t){if(4===t.autoGenerateKind){var r=kn(t);return un(r)}var n=t.autoGenerateId;return Dn[n]||(Dn[n]=e.unescapeIdentifier(bn(t)))}function un(t){var r=e.getNodeId(t);return Cn[r]||(Cn[r]=e.unescapeIdentifier(hn(t)))}function _n(e){return!(wn&&wn(e)||xn.identifiers.has(e)||Sn.has(e))}function ln(t,r){for(var n=r;e.isNodeDescendantOf(n,r);n=n.nextContainer)if(n.locals){var a=n.locals.get(t);if(a&&9544639&a.flags)return!1}return!0}function dn(e){if(e&&!(En&e)){var t=268435456===e?"_i":"_n";if(_n(t))return En|=e,t}for(;;){var r=268435455&En;if(En++,8!==r&&13!==r){var t=r<26?"_"+String.fromCharCode(97+r):"_"+(r-26);if(_n(t))return t}}}function pn(e){95!==e.charCodeAt(e.length-1)&&(e+="_");for(var t=1;;){var r=e+t;if(_n(r))return Sn.set(r,r),r;t++}}function fn(e){var t=nn(e.name);return ln(t,e)?t:pn(t)}function mn(t){var r=e.getExternalModuleName(t),n=9===r.kind?e.escapeIdentifier(e.makeIdentifierFromModuleName(r.text)):"module";return pn(n)}function gn(){return pn("default")}function yn(){return pn("class")}function vn(t){return e.isIdentifier(t.name)?un(t.name):dn(0)}function hn(e){switch(e.kind){case 71:return pn(nn(e));case 233:case 232:return fn(e);case 238:case 244:return mn(e);case 228:case 229:case 243:return gn();case 199:return yn();case 151:case 153:case 154:return vn(e);default:return dn(0)}}function bn(t){switch(t.autoGenerateKind){case 1:return dn(0);case 2:return dn(268435456);case 3:return pn(e.unescapeIdentifier(t.text))}e.Debug.fail("Unsupported GeneratedIdentifierKind.")}function kn(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}void 0===t&&(t={}),void 0===r&&(r={});var xn,Cn,Dn,Sn,Tn,En,Nn,An,wn=r.hasGlobalName,Pn=r.onEmitSourceMapOfNode,Fn=r.onEmitSourceMapOfToken,On=r.onEmitSourceMapOfPosition,In=r.onEmitNode,Rn=r.onEmitHelpers,Mn=r.onSetSourceFile,Ln=r.substituteNode,Bn=r.onBeforeEmitNodeArray,Jn=r.onAfterEmitNodeArray,zn=r.onBeforeEmitToken,Kn=r.onAfterEmitToken,jn=e.getNewLineCharacter(t),Vn=e.createCommentWriter(t,On),Un=Vn.emitNodeWithComments,qn=Vn.emitBodyWithDetachedComments,Wn=Vn.emitTrailingCommentsOfPosition,Hn=Vn.emitLeadingCommentsOfPosition;return y(),{printNode:n,printFile:c,printBundle:i,writeNode:u,writeFile:l,writeBundle:_}}function n(){var e=[];return e[0]="",e[16]=",",e[4]=" |",e[8]=" &",e}function a(e){return c[28&e]}function i(){var e=[];return e[512]=["{","}"],e[1024]=["(",")"],e[2048]=["<",">"],e[4096]=["[","]"],e}function o(e){return u[7680&e][0]}function s(e){return u[7680&e][1]}var c=n(),u=i();e.emitFiles=t,e.createPrinter=r;var _;!function(e){e[e.Auto=0]="Auto",e[e.CountMask=268435455]="CountMask",e[e._i=268435456]="_i"}(_||(_={}));var l;!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=131328]="Modifiers",e[e.HeritageClauses=256]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=448]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=65]="MultiLineTypeLiteralMembers",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.CommaListElements=272]="CommaListElements",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"}(l||(l={}))}(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=Math.min(a.length,i.length),s=0;s<o;s++)if(n(a[s])!==n(i[s])){if(0===s)return!0;a.length=s;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.message),o=""}return void 0!==o?e.createSourceFile(n,o,a,r):void 0}function i(t){return!!l.has(t)||!!e.sys.directoryExists(t)&&(l.set(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){var o=_.get(t);if(o&&o.byteOrderMark===n&&o.hash===a&&o.mtime.getTime()===i.getTime())return}e.sys.writeFile(t,r,n);var s=e.sys.getModifiedTime(t);_.set(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=e.getNewLineCharacter(t),p=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 d},fileExists:function(t){return e.sys.fileExists(t)},readFile:function(t){return e.sys.readFile(t)},trace:function(t){return e.sys.write(t+d)},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:p}}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 s=e.getLineAndCharacterOfPosition(o.file,o.start),c=s.line,u=s.character,_=o.file.fileName,d=e.convertToRelativePath(_,r.getCurrentDirectory(),function(e){return r.getCanonicalFileName(e)});n+=d+"("+(c+1)+","+(u+1)+"): "}var p=e.DiagnosticCategory[o.category].toLowerCase();n+=p+" TS"+o.code+": "+l(o.messageText,r.getNewLine())+r.getNewLine()}return n}function s(t){switch(t){case e.DiagnosticCategory.Warning:return v;case e.DiagnosticCategory.Error:return y;case e.DiagnosticCategory.Message:return h}}function c(e,t){return t+e+x}function u(e,t){for(;e.length<t;)e=" "+e;return e}function _(t,r){for(var n="",a=0,i=t;a<i.length;a++){var o=i[a];if(o.file){var _=o.start,d=o.length,p=o.file,f=e.getLineAndCharacterOfPosition(p,_),m=f.line,g=f.character,v=e.getLineAndCharacterOfPosition(p,_+d),h=v.line,D=v.character,S=e.getLineAndCharacterOfPosition(p,p.text.length).line,T=r?e.convertToRelativePath(p.fileName,r.getCurrentDirectory(),function(e){return r.getCanonicalFileName(e)}):p.fileName,E=h-m>=4,N=(h+1+"").length;E&&(N=Math.max(C.length,N)),n+=e.sys.newLine;for(var A=m;A<=h;A++){E&&m+1<A&&A<h-1&&(n+=c(u(C,N),b)+k+e.sys.newLine,A=h-1);var w=e.getPositionOfLineAndCharacter(p,A,0),P=A<S?e.getPositionOfLineAndCharacter(p,A+1,0):p.text.length,F=p.text.slice(w,P);if(F=F.replace(/\s+$/g,""),F=F.replace("\t"," "),n+=c(u(A+1+"",N),b)+k,n+=F+e.sys.newLine,n+=c(u("",N),b)+k,n+=y,A===m){var O=A===h?D:void 0;n+=F.slice(0,g).replace(/\S/g," "),n+=F.slice(g,O).replace(/./g,"~")}else n+=A===h?F.slice(0,D).replace(/./g,"~"):F.replace(/./g,"~");n+=x,n+=e.sys.newLine}n+=e.sys.newLine,n+=T+"("+(m+1)+","+(g+1)+"): "}var I=s(o.category),R=e.DiagnosticCategory[o.category].toLowerCase();n+=c(R,I)+" TS"+o.code+": "+l(o.messageText,e.sys.newLine)}return n}function l(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 d(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=void 0;i.has(c)?u=i.get(c):i.set(c,u=n(c,r)),a.push(u)}return a}function p(t,i,o,s){function c(){if(void 0===ue){var t=e.filter(fe,function(t){return e.sourceFileMayBeEmitted(t,i,y)});ue=i.rootDir&&ie(t,i.rootDir)?e.getNormalizedAbsolutePath(i.rootDir,Ee):ae(t),ue&&ue[ue.length-1]!==e.directorySeparator&&(ue+=e.directorySeparator)}return ue}function u(){if(!de){b(),de=e.createMap();for(var t=0,r=fe;t<r.length;t++){var n=r[t];e.copyEntries(n.classifiableNames,de)}}return de}function _(t,r,n,a){function s(t,r){var n=e.getResolvedModule(r.file,t);if(n)return!1;var a=r.program&&r.program.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(t);if(!a||!a.declarations)return!1;var s=e.forEach(a.declarations,function(t){var n=e.getSourceFileOfNode(t);return!e.contains(r.modifiedFilePaths,n.path)&&n});return!!s&&(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,s.fileName),!0)}if(0===Re&&!n.ambientModuleNames.length)return De(t,r);var c=a.program&&a.program.getSourceFile(r);if(c!==n&&n.resolvedModules){for(var u=[],_=0,l=t;_<l.length;_++){var d=l[_],p=n.resolvedModules.get(d);u.push(p)}return u}for(var f,g,y={},v=0;v<t.length;v++){var d=t[v];if(n===c){var h=c&&c.resolvedModules.get(d);if(h){e.isTraceEnabled(i,o)&&e.trace(o,e.Diagnostics.Reusing_resolution_of_module_0_to_file_1_from_old_program,d,r),(g||(g=new Array(t.length)))[v]=h;continue}}var b=!1;e.contains(n.ambientModuleNames,d)?(b=!0,e.isTraceEnabled(i,o)&&e.trace(o,e.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,d,r)):b=s(d,a),b?(g||(g=new Array(t.length)))[v]=y:(f||(f=[])).push(d)}var k=f&&f.length?De(f,r):m;if(!g)return e.Debug.assert(k.length===t.length),k;for(var x=0,v=0;v<g.length;v++)g[v]?g[v]===y&&(g[v]=void 0):(g[v]=k[x],x++);return e.Debug.assert(x===k.length),g}function l(){if(!s)return 0;var r=s.getCompilerOptions();if(e.changesAffectModuleResolution(r,i))return s.structureIsReused=0;e.Debug.assert(!(3&s.structureIsReused));var n=s.getRootFileNames();if(!e.arrayIsEqualTo(n,t))return s.structureIsReused=0;if(!e.arrayIsEqualTo(i.types,r.types))return s.structureIsReused=0;var a=[],c=[],u=[];s.structureIsReused=2;for(var l=0,d=s.getSourceFiles();l<d.length;l++){var p=d[l],f=o.getSourceFileByPath?o.getSourceFileByPath(p.fileName,p.path,i.target):o.getSourceFile(p.fileName,i.target);if(!f)return s.structureIsReused=0;f.path=p.path,c.push(f.path),p!==f&&(p.hasNoDefaultLib!==f.hasNoDefaultLib&&(s.structureIsReused=1),e.arrayIsEqualTo(p.referencedFiles,f.referencedFiles,V)||(s.structureIsReused=1),W(f),e.arrayIsEqualTo(p.imports,f.imports,U)||(s.structureIsReused=1),e.arrayIsEqualTo(p.moduleAugmentations,f.moduleAugmentations,U)||(s.structureIsReused=1),(524288&p.flags)!==(524288&f.flags)&&(s.structureIsReused=1),e.arrayIsEqualTo(p.typeReferenceDirectives,f.typeReferenceDirectives,V)||(s.structureIsReused=1),u.push({oldFile:p,newFile:f})),a.push(f)}if(2!==s.structureIsReused)return s.structureIsReused;pe=u.map(function(e){return e.newFile.path});for(var m=0,g=u;m<g.length;m++){var y=g[m],p=y.oldFile,f=y.newFile,v=e.getNormalizedAbsolutePath(f.fileName,Ee);if(De){var h=e.map(e.concatenate(f.imports,f.moduleAugmentations),q),b={program:s,file:p,modifiedFilePaths:pe},k=_(h,v,f,b),x=e.hasChangesInResolutions(h,k,p.resolvedModules,e.moduleResolutionIsEqualTo);x?(s.structureIsReused=1,f.resolvedModules=e.zipToMap(h,k)):f.resolvedModules=p.resolvedModules}if(Pe){var C=e.map(f.typeReferenceDirectives,function(e){return e.fileName}),k=Pe(C,v),x=e.hasChangesInResolutions(C,k,p.resolvedTypeReferenceDirectiveNames,e.typeDirectiveIsEqualTo);x?(s.structureIsReused=1,f.resolvedTypeReferenceDirectiveNames=e.zipToMap(C,k)):f.resolvedTypeReferenceDirectiveNames=p.resolvedTypeReferenceDirectiveNames}}if(2!==s.structureIsReused)return s.structureIsReused;for(var D=0;D<a.length;D++)Oe.set(c[D],a[D]);fe=a,ve=s.getFileProcessingDiagnostics();for(var S=0,T=u;S<T.length;S++){var E=T[S];ve.reattachFileDiagnostics(E.newFile)}return ye=s.getResolvedTypeReferenceDirectives(),s.structureIsReused=2}function p(e){return{getCanonicalFileName:re,getCommonSourceDirectory:ce.getCommonSourceDirectory,getCompilerOptions:ce.getCompilerOptions,getCurrentDirectory:function(){return Ee},getNewLine:function(){return o.getNewLine()},getSourceFile:ce.getSourceFile,getSourceFileByPath:ce.getSourceFileByPath,getSourceFiles:ce.getSourceFiles,isSourceFileFromExternalLibrary:y,writeFile:e||function(e,t,r,n,a){return o.writeFile(e,t,r,n,a)},isEmitBlocked:x}}function y(e){return xe.get(e.path)}function v(){return _e||(_e=e.createTypeChecker(ce,!0))}function h(){_e=void 0}function b(){return le||(le=e.createTypeChecker(ce,!1))}function k(e,t,r,n,a){return P(function(){return C(ce,e,t,r,n,a)})}function x(t){return Ae.contains(e.toPath(t,Ee,re))}function C(t,r,n,a,o,s){var c=[];if(i.noEmit)return{diagnostics:c,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};if(i.noEmitOnError){var u=t.getOptionsDiagnostics(a).concat(t.getSyntacticDiagnostics(r,a),t.getGlobalDiagnostics(a),t.getSemanticDiagnostics(r,a));if(0===u.length&&t.getCompilerOptions().declaration&&(c=t.getDeclarationDiagnostics(void 0,a)),u.length>0||c.length>0)return{diagnostics:e.concatenate(u,c),sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}var _=v().getEmitResolver(i.outFile||i.out?void 0:r);e.performance.mark("beforeEmit");var l=o?[]:e.getTransformers(i,s),d=e.emitFiles(_,p(n),r,o,l);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),d}function D(t){return S(e.toPath(t,Ee,re))}function S(e){return Oe.get(e)}function T(t,r,n){return t?r(t,n):e.sortAndDeduplicateDiagnostics(e.flatMap(ce.getSourceFiles(),function(e){return n&&n.throwIfCancellationRequested(),r(e,n)}))}function E(e,t){return T(e,w,t)}function N(e,t){return T(e,F,t)}function A(e,t){var r=ce.getCompilerOptions();return!e||r.out||r.outFile?M(e,t):T(e,J,t)}function w(t){return e.isSourceFileJavaScript(t)?(t.additionalSyntacticDiagnostics||(t.additionalSyntacticDiagnostics=R(t),e.isCheckJsEnabledForFile(t,i)&&(t.additionalSyntacticDiagnostics=e.concatenate(t.additionalSyntacticDiagnostics,t.jsDocDiagnostics))),e.concatenate(t.additionalSyntacticDiagnostics,t.parseDiagnostics)):t.parseDiagnostics}function P(t){try{return t()}catch(r){throw r instanceof e.OperationCanceledException&&(le=void 0,_e=void 0),r}}function F(e,t){return B(e,t,me,O)}function O(t,r){return P(function(){if(i.skipLibCheck&&t.isDeclarationFile||i.skipDefaultLibCheck&&t.hasNoDefaultLib)return m;var n=v();e.Debug.assert(!!t.bindDiagnostics);var a=!e.isSourceFileJavaScript(t)||e.isCheckJsEnabledForFile(t,i),o=a?t.bindDiagnostics:m,s=a?n.getDiagnostics(t,r):m,c=ve.getDiagnostics(t.fileName),u=Te.getDiagnostics(t.fileName),_=o.concat(s,c,u);return e.isSourceFileJavaScript(t)?e.filter(_,I):_})}function I(t){var r=t.file,n=t.start;if(r)for(var a=e.getLineStarts(r),i=e.computeLineAndCharacterOfPosition(a,n).line;i>0;){var o=r.text.slice(a[i-1],a[i]),s=g.exec(o);if(!s)return!0;if(s[3])return!1;i--}return!0}function R(t){return P(function(){function r(t){switch(u.kind){case 146:case 149:if(u.questionToken===t)return void c.push(s(t,e.Diagnostics._0_can_only_be_used_in_a_ts_file,"?"));case 151:case 150:case 152:case 153:case 154:case 186:case 228:case 187:case 228:case 226: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 237:return void c.push(s(t,e.Diagnostics.import_can_only_be_used_in_a_ts_file));case 243:if(t.isExportEquals)return void c.push(s(t,e.Diagnostics.export_can_only_be_used_in_a_ts_file));break;case 259:var a=t;if(108===a.token)return void c.push(s(t,e.Diagnostics.implements_clauses_can_only_be_used_in_a_ts_file));break;case 230:return void c.push(s(t,e.Diagnostics.interface_declarations_can_only_be_used_in_a_ts_file));case 233:return void c.push(s(t,e.Diagnostics.module_declarations_can_only_be_used_in_a_ts_file));case 231:return void c.push(s(t,e.Diagnostics.type_aliases_can_only_be_used_in_a_ts_file));case 232:return void c.push(s(t,e.Diagnostics.enum_declarations_can_only_be_used_in_a_ts_file));case 184: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 229:case 151:case 150:case 152:case 153:case 154:case 186:case 228:case 187:case 228:if(t===u.typeParameters)return void c.push(o(t,e.Diagnostics.type_parameter_declarations_can_only_be_used_in_a_ts_file));case 208:if(t===u.modifiers)return a(t,208===u.kind);break;case 149:if(t===u.modifiers){for(var n=0,_=t;n<_.length;n++){var l=_[n];115!==l.kind&&c.push(s(l,e.Diagnostics._0_can_only_be_used_in_a_ts_file,e.tokenToString(l.kind)))}return}break;case 146:if(t===u.modifiers)return void c.push(o(t,e.Diagnostics.parameter_modifiers_can_only_be_used_in_a_ts_file));break;case 181:case 182:case 201: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 76:if(r)continue;case 114:case 112:case 113:case 131:case 124:case 117:c.push(s(i,e.Diagnostics._0_can_only_be_used_in_a_ts_file,e.tokenToString(i.kind)));break;case 115:case 84:case 79:}}}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 M(e,t){return B(e,t,ge,L)}function L(t,r){return P(function(){var n=v().getEmitResolver(t,r);return e.getDeclarationDiagnostics(p(e.noop),n,t)})}function B(t,r,n,a){var i=t?n.perFile&&n.perFile.get(t.path):n.allDiagnostics;if(i)return i;var o=a(t,r)||m;return t?(n.perFile||(n.perFile=e.createFileMap()),n.perFile.set(t.path,o)):n.allDiagnostics=o,o}function J(e,t){return e.isDeclarationFile?[]:M(e,t)}function z(){return e.sortAndDeduplicateDiagnostics(e.concatenate(ve.getGlobalDiagnostics(),Te.getGlobalDiagnostics()))}function K(){return e.sortAndDeduplicateDiagnostics(v().getGlobalDiagnostics().slice())}function j(t,r){X(e.normalizePath(t),r)}function V(e,t){return e.fileName===t.fileName}function U(e,t){return e.text===t.text}function q(e){return e.text}function W(t){function r(n,i){switch(n.kind){case 238:case 237:case 244: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 233:if(e.isAmbientModule(n)&&(i||e.hasModifier(n,2)||t.isDeclarationFile)){var _=n.name;if(u||i&&!e.isExternalModuleNameRelative(_.text))(o||(o=[])).push(_);else if(!i){t.isDeclarationFile&&(s||(s=[])).push(_.text);var l=n.body;if(l)for(var d=0,p=l.statements;d<p.length;d++){var f=p[d];r(f,!0)}}}}}function n(t){e.isRequireCall(t,!0)?(a||(a=[])).push(t.arguments[0]):e.isImportCall(t)&&1===t.arguments.length&&9===t.arguments[0].kind?(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);if(i.importHelpers&&(i.isolatedModules||u)&&!t.isDeclarationFile){var _=e.createLiteral(e.externalHelpersModuleNameText),l=e.createImportDeclaration(void 0,void 0,void 0);_.parent=l,l.parent=t,a=[_]}for(var d=0,p=t.statements;d<p.length;d++){var f=p[d];r(f,!1),(524288&t.flags||c)&&n(f)}t.imports=a||m,t.moduleAugmentations=o||m,t.ambientModuleNames=s||m}}function H(t,n){return G(r(n.fileName,t.fileName),function(t){return Oe.get(e.toPath(t,Ee,re))})}function G(t,r,n,a){if(e.hasExtension(t)){if(!i.allowNonTsExtensions&&!e.forEach(Ne,function(r){return e.fileExtensionIs(o.getCanonicalFileName(t),r)}))return void(n&&n(e.Diagnostics.File_0_has_unsupported_extension_The_only_supported_extensions_are_1,t,"'"+Ne.join("', '")+"'"));var s=r(t);return n&&(s?a&&o.getCanonicalFileName(t)===o.getCanonicalFileName(a.fileName)&&n(e.Diagnostics.A_file_cannot_have_a_reference_to_itself,t):n(e.Diagnostics.File_0_not_found,t)),s}var c=i.allowNonTsExtensions&&r(t);if(c)return c;if(n&&i.allowNonTsExtensions)return void n(e.Diagnostics.File_0_not_found,t);var u=e.forEach(Ne,function(e){return r(t+e)});return n&&!u&&n(e.Diagnostics.File_0_not_found,t+".ts"),u}function X(t,r,n,a,i){G(t,function(t){return Y(t,e.toPath(t,Ee,re),r,n,a,i)},function(t){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];ve.add(void 0!==n&&void 0!==i&&void 0!==a?e.createFileDiagnostic.apply(void 0,[n,a,i-a,t].concat(r)):e.createCompilerDiagnostic.apply(void 0,[t].concat(r)))},n)}function Q(t,r,n,a,i){void 0!==n&&void 0!==a&&void 0!==i?ve.add(e.createFileDiagnostic(n,a,i-a,e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,t,r)):ve.add(e.createCompilerDiagnostic(e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,t,r))}function Y(t,r,n,a,s,c){if(Oe.contains(r)){var u=Oe.get(r);return u&&i.forceConsistentCasingInFileNames&&e.getNormalizedAbsolutePath(u.fileName,Ee)!==e.getNormalizedAbsolutePath(t,Ee)&&Q(t,u.fileName,a,s,c),u&&xe.get(u.path)&&0===be?(xe.set(u.path,!1),i.noResolve||(Z(u,n),$(u)),ke.set(u.path,!1),ne(u)):u&&ke.get(u.path)&&be<he&&(ke.set(u.path,!1),ne(u)),u}var _=o.getSourceFile(t,i.target,function(r){void 0!==a&&void 0!==s&&void 0!==c?ve.add(e.createFileDiagnostic(a,s,c-s,e.Diagnostics.Cannot_read_file_0_Colon_1,t,r)):ve.add(e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,r))});if(Oe.set(r,_),_){if(xe.set(r,be>0),_.path=r,o.useCaseSensitiveFileNames()){var l=Ie.get(r);l?Q(t,l.fileName,a,s,c):Ie.set(r,_)}Se=Se||_.hasNoDefaultLib,i.noResolve||(Z(_,n),$(_)),ne(_),n?fe.unshift(_):fe.push(_)}return _}function Z(t,n){e.forEach(t.referencedFiles,function(e){var a=r(e.fileName,t.fileName);X(a,n,t,e.pos,e.end)})}function $(t){for(var r=e.map(t.typeReferenceDirectives,function(e){return e.fileName.toLocaleLowerCase()}),n=Pe(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),ee(s,o,t,i.pos,i.end)}}function ee(t,r,n,a,i){var s=ye.get(t);if(!s||!s.primary){var c=!0;if(r)if(r.primary)X(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&&ve.add(te(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 X(r.resolvedFileName,!1,n,a,i);else ve.add(te(n,a,i,e.Diagnostics.Cannot_find_type_definition_file_for_0,t));c&&ye.set(t,r)}}function te(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 re(e){return o.getCanonicalFileName(e)}function ne(t){if(W(t),t.imports.length||t.moduleAugmentations.length){var r=e.filter(t.moduleAugmentations,function(e){return 9===e.kind}),n=e.map(e.concatenate(t.imports,r),q),a={program:s,file:t,modifiedFilePaths:pe},o=_(n,e.getNormalizedAbsolutePath(t.fileName,Ee),t,a);e.Debug.assert(o.length===n.length);for(var c=0;c<n.length;c++){var u=o[c];if(e.setResolvedModule(t,n[c],u),u){var l=u.isExternalLibraryImport,d=l&&!e.extensionIsTypeScript(u.extension),p=u.resolvedFileName;l&&be++;var m=d&&be>he,g=p&&!f(i,u)&&!i.noResolve&&c<t.imports.length&&!m;if(m)ke.set(t.path,!0);else if(g){var y=e.toPath(p,Ee,re),v=e.skipTrivia(t.text,t.imports[c].pos);Y(p,y,!1,t,v,t.imports[c].end)}l&&be--}}}else t.resolvedModules=void 0}function ae(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,Ee,re)}function ie(t,r){var n=!0;if(t)for(var a=o.getCanonicalFileName(e.getNormalizedAbsolutePath(r,Ee)),s=0,c=t;s<c.length;s++){var u=c[s];if(!u.isDeclarationFile){var _=o.getCanonicalFileName(e.getNormalizedAbsolutePath(u.fileName,Ee));0!==_.indexOf(a)&&(Te.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 oe(){function t(t,r){if(t){var n=e.toPath(t,Ee,re);if(Oe.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),se(t,e.createCompilerDiagnosticFromMessageChain(a))}r.contains(n)?se(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&&Te.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declaration","isolatedModules")),i.noEmitOnError&&Te.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noEmitOnError","isolatedModules")),i.out&&Te.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules")),i.outFile&&Te.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules"))),i.inlineSourceMap&&(i.sourceMap&&Te.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap")),i.mapRoot&&Te.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap"))),i.paths&&void 0===i.baseUrl&&Te.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)||Te.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&&Te.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],u=typeof s;"string"===u?e.hasZeroOrOneAsteriskCharacter(s)||Te.add(e.createCompilerDiagnostic(e.Diagnostics.Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character,s,r)):Te.add(e.createCompilerDiagnostic(e.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,s,r,u))}}else Te.add(e.createCompilerDiagnostic(e.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,r));i.sourceMap||i.inlineSourceMap||(i.inlineSources&&Te.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources")),i.sourceRoot&&Te.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&&Te.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile")),i.mapRoot&&!i.sourceMap&&Te.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"mapRoot","sourceMap")),i.declarationDir&&(i.declaration||Te.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"declarationDir","declaration")),(i.out||i.outFile)&&Te.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",i.out?"out":"outFile"))),i.lib&&i.noLib&&Te.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib")),i.noImplicitUseStrict&&(void 0===i.alwaysStrict?i.strict:i.alwaysStrict)&&Te.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(fe,function(t){return e.isExternalModule(t)&&!t.isDeclarationFile?t:void 0});if(i.isolatedModules){i.module===e.ModuleKind.None&&_<2&&Te.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 f=e.forEach(fe,function(t){return e.isExternalModule(t)||t.isDeclarationFile?void 0:t});if(f){var m=e.getErrorSpanForNode(f,f);Te.add(e.createFileDiagnostic(f,m.start,m.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);Te.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)Te.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);Te.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=c();i.outDir&&""===v&&e.forEach(fe,function(t){return e.getRootLength(t.fileName)>1})&&Te.add(e.createCompilerDiagnostic(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files))}if(!i.noEmit&&i.allowJs&&i.declaration&&Te.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"allowJs","declaration")),i.checkJs&&!i.allowJs&&Te.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),i.emitDecoratorMetadata&&!i.experimentalDecorators&&Te.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators")),i.jsxFactory?(i.reactNamespace&&Te.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory")),e.parseIsolatedEntityName(i.jsxFactory,_)||Te.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,_)&&Te.add(e.createCompilerDiagnostic(e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,i.reactNamespace)),!i.noEmit&&!i.suppressOutputPathCheck){var h=p(),b=e.createFileMap(o.useCaseSensitiveFileNames()?void 0:function(e){return e.toLocaleLowerCase()});e.forEachEmittedFile(h,function(e){t(e.jsFilePath,b),t(e.declarationFilePath,b)})}}function se(t,r){Ae.set(e.toPath(t,Ee,re),!0),Te.add(r)}var ce,ue,_e,le,de,pe,fe=[],me={},ge={},ye=e.createMap(),ve=e.createDiagnosticCollection(),he="number"==typeof i.maxNodeModuleJsDepth?i.maxNodeModuleJsDepth:0,be=0,ke=e.createMap(),xe=e.createMap();e.performance.mark("beforeProgram"),o=o||a(i);var Ce,De,Se=i.noLib,Te=e.createDiagnosticCollection(),Ee=o.getCurrentDirectory(),Ne=e.getSupportedExtensions(i),Ae=e.createFileMap(re);if(o.resolveModuleNames)De=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{Ce=e.createModuleResolutionCache(Ee,function(e){return o.getCanonicalFileName(e)});var we=function(t,r){return e.resolveModuleName(t,r,i,o,Ce).resolvedModule};De=function(e,t){return d(e,t,we)}}var Pe;if(o.resolveTypeReferenceDirectives)Pe=function(e,t){return o.resolveTypeReferenceDirectives(e,t)};else{var Fe=function(t,r){return e.resolveTypeReferenceDirective(t,r,i,o).resolvedTypeReferenceDirective};Pe=function(e,t){return d(e,t,Fe)}}var Oe=e.createFileMap(),Ie=o.useCaseSensitiveFileNames()?e.createFileMap(function(e){
return e.toLowerCase()}):void 0,Re=l();if(2!==Re){e.forEach(t,function(e){return j(e,!1)});var Me=e.getAutomaticTypeDirectiveNames(i,o);if(Me.length)for(var Le=i.configFilePath?e.getDirectoryPath(i.configFilePath):o.getCurrentDirectory(),Be=e.combinePaths(Le,"__inferred type names__.ts"),Je=Pe(Me,Be),ze=0;ze<Me.length;ze++)ee(Me[ze],Je[ze]);if(!Se)if(i.lib){var Ke=o.getDefaultLibLocation?o.getDefaultLibLocation():e.getDirectoryPath(o.getDefaultLibFileName(i));e.forEach(i.lib,function(t){j(e.combinePaths(Ke,t),!0)})}else j(o.getDefaultLibFileName(i),!0)}return Ce=void 0,s=void 0,ce={getRootFileNames:function(){return t},getSourceFile:D,getSourceFileByPath:S,getSourceFiles:function(){return fe},getCompilerOptions:function(){return i},getSyntacticDiagnostics:E,getOptionsDiagnostics:z,getGlobalDiagnostics:K,getSemanticDiagnostics:N,getDeclarationDiagnostics:A,getTypeChecker:b,getClassifiableNames:u,getDiagnosticsProducingTypeChecker:v,getCommonSourceDirectory:c,emit:k,getCurrentDirectory:function(){return Ee},getNodeCount:function(){return v().getNodeCount()},getIdentifierCount:function(){return v().getIdentifierCount()},getSymbolCount:function(){return v().getSymbolCount()},getTypeCount:function(){return v().getTypeCount()},getFileProcessingDiagnostics:function(){return ve},getResolvedTypeReferenceDirectives:function(){return ye},isSourceFileFromExternalLibrary:y,dropDiagnosticsProducingTypeChecker:h,getSourceFileFromReference:H},oe(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),ce}function f(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 m=[],g=/(^\s*$)|(^\s*\/\/\/?\s*(@ts-ignore)?)/;e.findConfigFile=t,e.resolveTripleslashReference=r,e.computeCommonSourceDirectoryOfFilenames=n,e.createCompilerHost=a,e.getPreEmitDiagnostics=i,e.formatDiagnostics=o;var y="",v="",h="",b="",k=" ",x="",C="...";e.formatDiagnosticsWithColorAndContext=_,e.flattenDiagnosticMessageText=l,e.createProgram=p,e.getResolutionDiagnostic=f}(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(R)return R;var t=e.createMap(),r=e.createMap();return e.forEach(e.optionDeclarations,function(e){t.set(e.name.toLowerCase(),e),e.shortName&&r.set(e.shortName,e.name)}),R={optionNameMap:t,shortOptionNames:r}}function n(t){var r=e.arrayFrom(t.type.keys()).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 x(e,D(t||""),r)}function i(t,r,n){if(void 0===r&&(r=""),r=D(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,r){function n(t){for(var r=0;r<t.length;){var n=t[r];if(r++,64===n.charCodeAt(0))o(n.slice(1));else if(45===n.charCodeAt(0)){var l=s(n.slice(45===n.charCodeAt(1)?2:1),!0);if(l)if(l.isTSConfigOnly)_.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file,l.name));else switch(t[r]||"boolean"===l.type||_.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_expects_an_argument,l.name)),l.type){case"number":c[l.name]=parseInt(t[r]),r++;break;case"boolean":var d=t[r];c[l.name]="false"!==d,"false"!==d&&"true"!==d||r++;break;case"string":c[l.name]=t[r]||"",r++;break;case"list":var p=i(l,t[r],_);c[l.name]=p||[],p&&r++;break;default:c[l.name]=a(l,t[r],_),r++}else _.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_compiler_option_0,n))}else u.push(n)}}function o(t){var a=r?r(t):e.sys.readFile(t);if(!a)return void _.push(e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,t));for(var i=[],o=0;;){for(;o<a.length&&a.charCodeAt(o)<=32;)o++;if(o>=a.length)break;var s=o;if(34===a.charCodeAt(s)){for(o++;o<a.length&&34!==a.charCodeAt(o);)o++;o<a.length?(i.push(a.substring(s+1,o)),o++):_.push(e.createCompilerDiagnostic(e.Diagnostics.Unterminated_quoted_string_in_response_file_0,t))}else{for(;a.charCodeAt(o)>32;)o++;i.push(a.substring(s,o))}}n(i)}var c={},u=[],_=[];return n(t),{options:c,fileNames:u,errors:_}}function s(e,t){void 0===t&&(t=!1),e=e.toLowerCase();var n=r(),a=n.optionNameMap,i=n.shortOptionNames;if(t){var o=i.get(e);void 0!==o&&(e=o)}return a.get(e)}function c(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 u(t,n)}function u(t,r,n){void 0===n&&(n=!0);try{var a=n?l(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 _(t,n,a){function i(e){return"string"===e.type||"number"===e.type||"boolean"===e.type?void 0:"list"===e.type?i(e.element):e.type}function o(t,r){return e.forEachEntry(r,function(e,r){if(e===t)return r})}function s(t){var n={},a=r().optionNameMap;for(var s in t)if(e.hasProperty(t,s)){if(a.has(s)&&a.get(s).category===e.Diagnostics.Command_line_Options)continue;var c=t[s],u=a.get(s.toLowerCase());if(u){var _=i(u);if(_)if("list"===u.type){for(var l=[],d=0,p=c;d<p.length;d++){var f=p[d];l.push(o(f,_))}n[s]=l}else n[s]=o(c,_);else n[s]=c}}return n}function c(t){switch(t.type){case"number":return 1;case"boolean":return!0;case"string":return t.isFilePath?"./":"";case"list":return[];case"object":return{};default:return e.arrayFrom(t.type.keys())[0]}}function u(e){return Array(e+1).join(" ")}function _(){var t=e.reduceLeft(e.filter(e.optionDeclarations,function(t){return t.category!==e.Diagnostics.Command_line_Options&&t.category!==e.Diagnostics.Advanced_Options}),function(t,r){if(r.category){var n=e.getLocaleSpecificMessage(r.category);(t[n]||(t[n]=[])).push(r)}return t},{}),r=0,n=0,i=[],o=[],s=e.getOwnKeys(d.compilerOptions).length;for(var _ in t){0!==i.length&&(i.push(""),o.push("")),i.push("/* "+_+" */"),o.push("");for(var l=0,p=t[_];l<p.length;l++){var f=p[l],m=void 0;m=e.hasProperty(d.compilerOptions,f.name)?'"'+f.name+'": '+JSON.stringify(d.compilerOptions[f.name])+((n+=1)===s?"":","):'// "'+f.name+'": '+JSON.stringify(c(f))+",",i.push(m),o.push("/* "+(f.description&&e.getLocaleSpecificMessage(f.description)||f.name)+" */"),r=Math.max(m.length,r)}}var g=u(2),y=[];y.push("{"),y.push(g+'"compilerOptions": {');for(var v=0;v<i.length;v++){var m=i[v],h=o[v];y.push(m&&""+g+g+m+(h&&u(r-m.length+2)+h))}if(d.files&&d.files.length){y.push(g+"},"),y.push(g+'"files": [');for(var v=0;v<d.files.length;v++)y.push(""+g+g+JSON.stringify(d.files[v])+(v===d.files.length-1?"":","));y.push(g+"]")}else y.push(g+"}");return y.push("}"),y.join(a)}var l=e.extend(t,e.defaultInitCompilerOptions),d={compilerOptions:s(l)};return n&&n.length&&(d.files=n),_()}function l(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 d(t,r,n,a,i,o,s){function c(){var a;e.hasProperty(t,"files")&&(e.isArray(t.files)?(a=t.files,0===a.length&&u.push(e.createCompilerDiagnostic(e.Diagnostics.The_files_list_in_config_file_0_is_empty,i||"tsconfig.json"))):u.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"files","Array")));var c;e.hasProperty(t,"include")&&(e.isArray(t.include)?c=t.include:u.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"include","Array")));var l;if(e.hasProperty(t,"exclude"))e.isArray(t.exclude)?l=t.exclude:u.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"exclude","Array"));else{l=c?[]:["node_modules","bower_components","jspm_packages"];var d=t.compilerOptions&&t.compilerOptions.outDir;d&&l.push(d)}void 0===a&&void 0===c&&(c=["**/*"]);var p=S(a,c,l,n,_,r,u,s);return 0!==p.fileNames.length||e.hasProperty(t,"files")||0!==o.length||u.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(c||[]),JSON.stringify(l||[]))),p}void 0===a&&(a={}),void 0===o&&(o=[]),void 0===s&&(s=[]);var u=[],_=function(){var e=p(t,r,n,i,o,u),a=e.include,s=e.exclude,c=e.files,_=e.options,l=e.compileOnSave;return a&&(t.include=a),s&&(t.exclude=s),c&&(t.files=c),void 0!==l&&(t.compileOnSave=l),_}();_=e.extend(a,_),_.configFilePath=i;var l=t.typeAcquisition||t.typingOptions,d=h(l,n,u,i),f=c(),g=f.fileNames,y=f.wildcardDirectories,v=m(t,n,u);return{options:_,fileNames:g,typeAcquisition:d,raw:t,errors:u,wildcardDirectories:y,compileOnSave:v}}function p(t,r,n,a,i,o){n=e.normalizeSlashes(n);var s=e.createGetCanonicalFileName(r.useCaseSensitiveFileNames),c=e.toPath(a||"",n,s);if(i.indexOf(c)>=0)return o.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,i.concat([c]).join(" -> "))),{include:void 0,exclude:void 0,files:void 0,options:{},compileOnSave:void 0};e.hasProperty(t,"excludes")&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var u=v(t.compilerOptions,n,o,a),_=t.include,l=t.exclude,d=t.files,p=t.compileOnSave;if(t["extends"]){i=i.concat([c]);var m=f(t["extends"],r,n,s,i,o);m&&(_=_||m.include,l=l||m.exclude,d=d||m.files,void 0===p&&(p=m.compileOnSave),u=e.assign({},m.options,u))}return{include:_,exclude:l,files:d,options:u,compileOnSave:p}}function f(t,r,n,a,i,o){if("string"!=typeof t)return void o.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));if(t=e.normalizeSlashes(t),!(e.isRootedDiskPath(t)||e.startsWith(t,"./")||e.startsWith(t,"../")))return void o.push(e.createCompilerDiagnostic(e.Diagnostics.A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not,t));var s=e.toPath(t,n,a);if(!r.fileExists(s)&&!e.endsWith(s,".json")&&(s+=".json",!r.fileExists(s)))return void o.push(e.createCompilerDiagnostic(e.Diagnostics.File_0_does_not_exist,t));var u=c(s,function(e){return r.readFile(e)});if(u.error)return void o.push(u.error);var _=e.getDirectoryPath(s),l=e.convertToRelativePath(_,n,a),d=function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(l,t)},f=p(u.config,r,_,e.getBaseFileName(s),i,o),m=f.include,g=f.exclude,y=f.files,v=f.options,h=f.compileOnSave;return{include:e.map(m,d),exclude:e.map(g,d),files:e.map(y,d),compileOnSave:h,options:v}}function m(t,r,n){if(!e.hasProperty(t,e.compileOnSaveCommandLineOption.name))return!1;var a=k(e.compileOnSaveCommandLineOption,t.compileOnSave,r,n);return!("boolean"!=typeof a||!a)&&a}function g(e,t,r){var n=[],a=v(e,t,n,r);return{options:a,errors:n}}function y(e,t,r){var n=[],a=h(e,t,n,r);return{options:a,errors:n}}function v(t,r,n,a){var i="jsconfig.json"===e.getBaseFileName(a)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0}:{};return b(e.optionDeclarations,t,r,i,e.Diagnostics.Unknown_compiler_option_0,n),i}function h(r,n,a,i){var o={enable:"jsconfig.json"===e.getBaseFileName(i),include:[],exclude:[]},s=t(r);return b(e.typeAcquisitionDeclarations,s,n,o,e.Diagnostics.Unknown_type_acquisition_option_0,a),o}function b(t,r,n,a,i,o){if(r){var s=e.arrayToMap(t,function(e){return e.name});for(var c in r){var u=s.get(c);u?a[u.name]=k(u,r[c],n,o):o.push(e.createCompilerDiagnostic(i,c))}}}function k(t,r,n,a){var i=t.type,o="string"==typeof i?i:"string";return"list"===i&&e.isArray(r)?C(t,r,n,a):typeof r===o?"string"!=typeof i?x(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 x(e,t,r){var a=t.toLowerCase(),i=e.type.get(a);return void 0!==i?i:void r.push(n(e))}function C(t,r,n,a){return e.filter(e.map(r,function(e){return k(t.element,e,n,a)}),function(e){return!!e})}function D(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}function S(t,r,n,a,i,o,s,c){a=e.normalizePath(a);var u=o.useCaseSensitiveFileNames?P:F,_=e.createMap(),l=e.createMap();r&&(r=T(r,s,!1)),n&&(n=T(n,s,!0));var d=E(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);_.set(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(!A(y,_,l,p,u)){w(y,l,p,u);var b=u(y);_.has(b)||l.has(b)||l.set(b,y)}}var k=e.arrayFrom(_.values()),x=e.arrayFrom(l.values());return{fileNames:k.concat(x),wildcardDirectories:d}}function T(t,r,n){for(var a=[],i=0,o=t;i<o.length;i++){var s=o[i];!n&&M.test(s)?r.push(e.createCompilerDiagnostic(e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,s)):L.test(s)?r.push(e.createCompilerDiagnostic(e.Diagnostics.File_specification_cannot_contain_multiple_recursive_directory_wildcards_Asterisk_Asterisk_Colon_0,s)):B.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 E(t,r,n,a){var i=e.getRegularExpressionForWildcard(r,n,"exclude"),o=i&&new RegExp(i,a?"":"i"),s={};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=N(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)if(e.hasProperty(s,f))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 N(t,r){var n=z.exec(t);return n?{key:r?n[0]:n[0].toLowerCase(),flags:J.test(t)?1:0}:e.isImplicitGlob(t)?{key:t,flags:1}:void 0}function A(t,r,n,a,i){for(var o=e.getExtensionPriority(t,a),s=e.adjustExtensionPriority(o,a),c=0;c<s;c++){var u=a[c],_=i(e.changeExtension(t,u));if(r.has(_)||n.has(_))return!0}return!1}function w(t,r,n,a){for(var i=e.getExtensionPriority(t,n),o=e.getNextLowestExtensionPriority(i,n),s=o;s<n.length;s++){var c=n[s],u=a(e.changeExtension(t,c));r["delete"](u)}}function P(e){return e}function F(e){return e.toLowerCase()}function O(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=s(r);void 0!==n&&(t[r]=I(e[r],n))}return t}function I(t,r){switch(r.type){case"object":return"";case"string":return"";case"number":return"number"==typeof t?t:"";case"boolean":return"boolean"==typeof t?t:"";case"list":var n=r.element;return e.isArray(t)?t.map(function(e){return I(e,n)}):"";default:return e.forEachEntry(r.type,function(e,r){if(e===t)return r})}}e.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean"},e.optionDeclarations=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_this_message},{name:"help",shortName:"?",type:"boolean"},{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_all_compiler_options},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_the_compiler_s_version},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,paramType:e.Diagnostics.FILE_OR_DIRECTORY,description:e.Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Stylize_errors_and_messages_using_color_and_context_experimental},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files},{name:"target",shortName:"t",type:e.createMapFromTemplate({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,esnext:5}),paramType:e.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT},{name:"module",shortName:"m",type:e.createMapFromTemplate({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,esnext:e.ModuleKind.ESNext}),paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_module_code_generation_Colon_commonjs_amd_system_umd_es2015_or_ESNext},{name:"lib",type:"list",element:{name:"lib",type:e.createMapFromTemplate({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",esnext:"lib.esnext.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","es2017.intl":"lib.es2017.intl.d.ts","esnext.asynciterable":"lib.esnext.asynciterable.d.ts"})},showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_library_files_to_be_included_in_the_compilation_Colon},{name:"allowJs",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Allow_javascript_files_to_be_compiled},{name:"checkJs",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Report_errors_in_js_files},{name:"jsx",type:e.createMapFromTemplate({preserve:1,"react-native":3,react:2}),paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_JSX_code_generation_Colon_preserve_react_native_or_react},{name:"declaration",shortName:"d",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_d_ts_file},{name:"sourceMap",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_map_file},{name:"outFile",type:"string",isFilePath:!0,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Concatenate_and_emit_output_to_single_file},{name:"outDir",type:"string",isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Redirect_output_structure_to_the_directory},{name:"rootDir",type:"string",isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir},{name:"removeComments",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_comments_to_output},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_outputs},{name:"importHelpers",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Import_emit_helpers_from_tslib},{name:"downlevelIteration",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3},{name:"isolatedModules",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule},{name:"strict",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_all_strict_type_checking_options},{name:"noImplicitAny",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_expressions_and_declarations_with_an_implied_any_type},{name:"strictNullChecks",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_null_checks},{name:"noImplicitThis",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_this_expressions_with_an_implied_any_type},{name:"alwaysStrict",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Parse_in_strict_mode_and_emit_use_strict_for_each_source_file},{name:"noUnusedLocals",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_locals},{name:"noUnusedParameters",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_parameters},{name:"noImplicitReturns",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_error_when_not_all_code_paths_in_function_return_a_value},{name:"noFallthroughCasesInSwitch",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_for_fallthrough_cases_in_switch_statement},{name:"moduleResolution",type:e.createMapFromTemplate({node:e.ModuleResolutionKind.NodeJs,classic:e.ModuleResolutionKind.Classic}),paramType:e.Diagnostics.STRATEGY,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6},{name:"baseUrl",type:"string",isFilePath:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Base_directory_to_resolve_non_absolute_module_names},{name:"paths",type:"object",isTSConfigOnly:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_folders_to_include_type_definitions_from},{name:"types",type:"list",element:{name:"types",type:"string"},showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Type_declaration_files_to_be_included_in_compilation},{name:"allowSyntheticDefaultImports",type:"boolean",category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking},{name:"sourceRoot",type:"string",isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations},{name:"mapRoot",type:"string",isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file},{name:"inlineSources",type:"boolean",category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set},{name:"experimentalDecorators",type:"boolean",category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_ES7_decorators},{name:"emitDecoratorMetadata",type:"boolean",category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_emitting_type_metadata_for_decorators},{name:"jsxFactory",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h},{name:"diagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_diagnostic_information},{name:"extendedDiagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_verbose_diagnostic_information},{name:"traceResolution",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Enable_tracing_of_the_name_resolution_process},{name:"listFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_files_part_of_the_compilation},{name:"listEmittedFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_generated_files_part_of_the_compilation},{name:"out",type:"string",isFilePath:!1,category:e.Diagnostics.Advanced_Options,paramType:e.Diagnostics.FILE,description:e.Diagnostics.Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file},{name:"reactNamespace",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit},{name:"skipDefaultLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files},{name:"charset",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_character_set_of_the_input_files},{name:"emitBOM",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files},{name:"locale",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_locale_used_when_displaying_messages_to_the_user_e_g_en_us},{name:"newLine",type:e.createMapFromTemplate({crlf:0,lf:1}),paramType:e.Diagnostics.NEWLINE,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix},{name:"noErrorTruncation",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_truncate_error_messages},{name:"noLib",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_include_the_default_library_file_lib_d_ts},{name:"noResolve",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files},{name:"stripInternal",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_declarations_for_code_that_has_an_internal_annotation},{name:"disableSizeLimit",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_size_limitations_on_JavaScript_projects},{name:"noImplicitUseStrict",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_use_strict_directives_in_module_output},{name:"noEmitHelpers",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_generate_custom_helper_functions_like_extends_in_compiled_output},{name:"noEmitOnError",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_outputs_if_any_errors_were_reported},{name:"preserveConstEnums",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_erase_const_enum_declarations_in_generated_code},{name:"declarationDir",type:"string",isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Skip_type_checking_of_declaration_files},{name:"allowUnusedLabels",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unused_labels},{name:"allowUnreachableCode",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unreachable_code},{name:"suppressExcessPropertyErrors",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_excess_property_checks_for_object_literals},{name:"suppressImplicitAnyIndexErrors",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures},{name:"forceConsistentCasingInFileNames",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disallow_inconsistently_cased_references_to_the_same_file},{name:"maxNodeModuleJsDepth",type:"number",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files},{name:"noStrictGenericChecks",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:e.Diagnostics.List_of_language_service_plugins}],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,strict:!0};var R;e.convertEnableAutoDiscoveryToEnable=t,e.createCompilerDiagnosticForInvalidCustomType=n,e.parseCustomTypeOption=a,e.parseListTypeOption=i,e.parseCommandLine=o,e.readConfigFile=c,e.parseConfigFileTextToJson=u,e.generateTSConfig=_,e.parseJsonConfigFileContent=d,e.convertCompileOnSaveOptionFromJson=m,e.convertCompilerOptionsFromJson=g,e.convertTypeAcquisitionFromJson=y;var M=/(^|\/)\*\*\/?$/,L=/(^|\/)\*\*\/(.*\/)?\*\*($|\/)/,B=/(^|\/)\*\*\/(.*\/)?\.\.($|\/)/,J=/\/[^\/]*?[*?][^\/]*\//,z=/^[^*?]*(?=\/[^\/]*[*?])/;e.convertCompilerOptionsForTelemetry=O}(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="enum member",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",e.jsxAttribute="JSX attribute"}(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.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value",e}();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 146:case 226:case 176:case 149:case 148:case 261:case 262:case 151:case 150:case 152:case 153:case 154:case 228:case 186:case 187:case 260:case 253:return 1;case 145:case 230:case 231:case 163:return 2;case 291:return void 0===t.name?3:2;case 264:case 229:return 3;case 233:return e.isAmbientModule(t)?5:1===e.getModuleInstanceState(t)?5:4;case 232:case 241:case 242:case 237:case 238:case 243:case 244:return 7;case 265:return 5}return 7}function r(r){return 265===r.kind?1:243===r.parent.kind?7:a(r)?n(r):e.isDeclarationName(r)?t(r.parent):c(r)?2:i(r)?4:e.isTypeParameterDeclaration(r.parent)?(e.Debug.assert(e.isJSDocTemplateTag(r.parent.parent)),2):1}function n(t){return e.Debug.assert(71===t.kind),143===t.parent.kind&&t.parent.right===t&&237===t.parent.parent.kind?7:4}function a(t){for(;143===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(143===t.parent.kind){for(;t.parent&&143===t.parent.kind;)t=t.parent;r=t.right===e}return 159===t.parent.kind&&!r}function s(e){var t=e,r=!0;if(179===t.parent.kind){for(;t.parent&&179===t.parent.kind;)t=t.parent;r=t.name===e}if(!r&&201===t.parent.kind&&259===t.parent.parent.kind){var n=t.parent.parent.parent;return 229===n.kind&&108===t.parent.parent.token||230===n.kind&&85===t.parent.parent.token}return!1}function c(t){switch(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),t.kind){case 99:return!e.isPartOfExpression(t);case 169:return!0}switch(t.parent.kind){case 159:case 277:return!0;case 201:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)}return!1}function u(e){return l(e,181)}function _(e){return l(e,182)}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(222===e.kind&&e.label.text===t)return e.label;e=e.parent}}function f(e){return 71===e.kind&&(218===e.parent.kind||217===e.parent.kind)&&e.parent.label===e}function m(e){return 71===e.kind&&222===e.parent.kind&&e.parent.label===e}function g(e){return m(e)||f(e)}function y(e){return 143===e.parent.kind&&e.parent.right===e}function v(e){return e&&e.parent&&179===e.parent.kind&&e.parent.name===e}function h(e){return 233===e.parent.kind&&e.parent.name===e}function b(t){return 71===t.kind&&e.isFunctionLike(t.parent)&&t.parent.name===t}function k(t){if(9===t.kind||8===t.kind)switch(t.parent.kind){case 149:case 148:case 261:case 264:case 151:case 150:case 153:case 154:case 233:return e.getNameOfDeclaration(t.parent)===t;case 180:return t.parent.argumentExpression===t;case 144:return!0}return!1}function x(t){return e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t}function C(e){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 265:case 151:case 150:case 228:case 186:case 153:case 154:case 229:case 230:case 232:case 233:return e}}}function D(t){function r(t){return e.isConst(t)?e.ScriptElementKind.constElement:e.isLet(t)?e.ScriptElementKind.letElement:e.ScriptElementKind.variableElement}switch(t.kind){case 265:return e.isExternalModule(t)?e.ScriptElementKind.moduleElement:e.ScriptElementKind.scriptElement;case 233:return e.ScriptElementKind.moduleElement;case 229:case 199:return e.ScriptElementKind.classElement;case 230:return e.ScriptElementKind.interfaceElement;case 231:return e.ScriptElementKind.typeElement;case 232:return e.ScriptElementKind.enumElement;case 226:return r(t);case 176:return r(e.getRootDeclaration(t));case 187:case 228:case 186:return e.ScriptElementKind.functionElement;case 153:return e.ScriptElementKind.memberGetAccessorElement;case 154:return e.ScriptElementKind.memberSetAccessorElement;case 151:case 150:return e.ScriptElementKind.memberFunctionElement;case 149:case 148:return e.ScriptElementKind.memberVariableElement;case 157:return e.ScriptElementKind.indexSignatureElement;case 156:return e.ScriptElementKind.constructSignatureElement;case 155:return e.ScriptElementKind.callSignatureElement;case 152:return e.ScriptElementKind.constructorImplementationElement;case 145:return e.ScriptElementKind.typeParameterElement;case 264:return e.ScriptElementKind.enumMemberElement;case 146:return e.hasModifier(t,92)?e.ScriptElementKind.memberVariableElement:e.ScriptElementKind.parameterElement;case 237:case 242:case 239:case 246:case 240:return e.ScriptElementKind.alias;case 291:return e.ScriptElementKind.typeElement;default:return e.ScriptElementKind.unknown}}function S(t){switch(t.kind){case 99:return!0;case 71:return e.identifierIsThisKeyword(t)&&146===t.parent.kind;default:return!1}}function T(t,r){var n=e.getLineStarts(r),a=r.getLineAndCharacterOfPosition(t).line;return n[a]}function E(e,t){return N(e.pos,e.end,t)}function N(e,t,r){return e<=r.pos&&t>=r.end}function A(e,t,r){return e.pos<=t&&e.end>=r}function w(e,t,r){return P(e.pos,e.end,t,r)}function P(e,t,r,n){var a=Math.max(e,r),i=Math.min(t,n);return a<i}function F(e,t,r){return e.end>t||!O(e,r)}function O(t,r){if(e.nodeIsMissing(t))return!1;switch(t.kind){case 229:case 230:case 232:case 178:case 174:case 163:case 207:case 234:case 235:case 241:case 245:return I(t,18,r);case 260:return O(t.block,r);case 182:if(!t.arguments)return!0;case 181:case 185:case 168:return I(t,20,r);case 160:case 161:return O(t.type,r);case 152:case 153:case 154:case 228:case 186:case 151:case 150:case 156:case 155:case 187:return t.body?O(t.body,r):t.type?O(t.type,r):M(t,20,r);case 233:return t.body&&O(t.body,r);case 211:return t.elseStatement?O(t.elseStatement,r):O(t.thenStatement,r);case 210:return O(t.expression,r)||M(t,25);case 177:case 175:case 180:case 144:case 165:return I(t,22,r);case 157:return t.type?O(t.type,r):M(t,22,r);case 257:case 258:return!1;case 214:case 215:case 216:case 213:return O(t.statement,r);case 212:var n=L(t,106,r);return n?I(t,20,r):O(t.statement,r);case 162:return O(t.exprName,r);case 189:case 188:case 190:case 197:case 198:var a=t;return O(a.expression,r);case 183:return O(t.template,r);case 196:var i=e.lastOrUndefined(t.templateSpans);return O(i,r);case 205:return e.nodeIsPresent(t.literal);case 244:case 238:return e.nodeIsPresent(t.moduleSpecifier);case 192:return O(t.operand,r);case 194:return O(t.right,r);case 195:return O(t.whenFalse,r);default:return!0}}function I(t,r,n){var a=t.getChildren(n);if(a.length){var i=e.lastOrUndefined(a);if(i.kind===r)return!0;if(25===i.kind&&1!==a.length)return a[a.length-2].kind===r}return!1}function R(t){var r=B(t);if(r){var n=r.getChildren(),a=e.indexOf(n,t);return{listItemIndex:a,list:r}}}function M(e,t,r){return!!L(e,t,r)}function L(t,r,n){return e.forEach(t.getChildren(n),function(e){return e.kind===r&&e})}function B(t){var r=e.forEach(t.parent.getChildren(),function(e){if(295===e.kind&&e.pos<=t.pos&&e.end>=t.end)return e});return e.Debug.assert(!r||e.contains(r.getChildren(),t)),r}function J(e,t,r){return K(e,t,r,function(e){return re(e.kind)})}function z(e,t,r){return K(e,t,r,function(e){return ne(e.kind)})}function K(e,t,r,n){return V(e,t,!1,n,!1,r)}function j(e,t,r,n){return V(e,t,!0,void 0,n,r)}function V(t,r,n,a,i,o){var s=t;e:for(;;){if(e.isToken(s))return s;for(var c=0,u=s.getChildren();c<u.length;c++){var _=u[c];if(o||!e.isJSDocNode(_)){var l=n?_.getFullStart():_.getStart(t,o);if(!(l>r)){var d=_.getEnd();if(r<d||r===d&&(1===_.kind||i)){s=_;continue e}if(a&&d===r){var p=W(r,t,_);if(p&&a(p))return p}}}}return s}}function U(t,r){var n=j(t,r,!1);return e.isToken(n)&&r>n.getStart(t)&&r<n.getEnd()?n:W(r,t)}function q(t,r){function n(r){if(e.isToken(r)&&r.pos===t.end)return r;for(var a=r.getChildren(),i=0,o=a;i<o.length;i++){var s=o[i],c=s.pos<=t.pos&&s.end>t.end||s.pos===t.end;if(c&&$(s))return n(s)}}return n(r)}function W(t,r,n,a){function i(t){if(e.isToken(t))return t;var r=t.getChildren(),n=s(r,r.length);return n&&i(n)}function o(c){if(e.isToken(c))return c;for(var u=c.getChildren(),_=0;_<u.length;_++){var l=u[_];if(t<l.end&&($(l)||10===l.kind)){var d=l.getStart(r,a),p=d>=t||10===l.kind&&d===l.end;if(p){var f=s(u,_);return f&&i(f)}return o(l)}}if(e.Debug.assert(void 0!==n||265===c.kind||e.isJSDocCommentContainingNode(c)),u.length){var f=s(u,u.length);return f&&i(f)}}function s(e,t){for(var r=t-1;r>=0;r--)if($(e[r]))return e[r]}return o(n||r)}function H(e,t){var r=W(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 G(e,t){var r=j(e,t,!1);return!!r&&(10===r.kind||(27===r.kind&&10===r.parent.kind||(27===r.kind&&256===r.parent.kind||(!(!r||18!==r.kind||256!==r.parent.kind)||27===r.kind&&252===r.parent.kind))))}function X(t,r){var n=j(t,r,!1);return e.isTemplateLiteralKind(n.kind)&&r>n.getStart(t)}function Q(t,r,n,a){function i(n){return e.forEach(n,function(e){return Y(e,r,t.text)&&(!a||a(e))})}return void 0===n&&(n=j(t,r,!1)),r<=n.getStart(t)&&(i(e.getLeadingCommentRanges(t.text,n.pos))||i(e.getTrailingCommentRanges(t.text,n.pos)))}function Y(e,t,r){var n=e.pos,a=e.end,i=e.kind;return n<t&&t<a||t===a&&(2===i||!(47===r.charCodeAt(a-1)&&42===r.charCodeAt(a-2)))}function Z(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=j(t,r,!1),i=e.getLeadingCommentRanges(t.text,a.pos);return e.forEach(i,n)}function $(e){return 0!==e.getWidth()}function ee(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 te(t){return 159===t.kind||181===t.kind?t.typeArguments:e.isFunctionLike(t)||229===t.kind||230===t.kind?t.typeParameters:void 0}function re(t){return 71===t||e.isKeyword(t)}function ne(e){return 9===e||8===e||re(e)}function ae(e){return 2===e||3===e}function ie(t){return!(9!==t&&12!==t&&!e.isTemplateLiteralKind(t))}function oe(e){return 17<=e&&e<=70}function se(t,r){return e.isTemplateLiteralKind(t.kind)&&t.getStart()<r&&r<t.getEnd()||!!t.isUnterminated&&r===t.getEnd()}function ce(e){switch(e){case 114:case 112:case 113:return!0}return!1}function ue(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e)if("object"==typeof e[r]){if(!ue(e[r],t[r]))return!1}else if("function"!=typeof e[r]&&e[r]!==t[r])return!1;return!0}function _e(e){if(177===e.kind||178===e.kind){if(194===e.parent.kind&&e.parent.left===e&&58===e.parent.operatorToken.kind)return!0;if(216===e.parent.kind&&e.parent.initializer===e)return!0;if(_e(261===e.parent.kind?e.parent.parent:e.parent))return!0}return!1}function le(e){var t=e.charAt(e.length-1);return"/"===t||"\\"===t}function de(e,t){return Q(e,t,void 0,function(t){var r=e.text.substring(t.pos,t.end);return be.test(r)})}function pe(e,t){return Q(e,t,void 0,function(t){var r=e.text.substring(t.pos,t.end);return!be.test(r)})}function fe(t,r){return e.createTextSpanFromBounds(t.getStart(r),t.getEnd())}function me(t){return e.createTextSpanFromBounds(t.pos,t.end)}function ge(e){switch(e){case 119:case 122:case 130:case 133:case 134:case 136:case 137:case 105:return!0;default:return!1}}function ye(t){return e.Debug.assert(!!(1536&t.flags)),34===t.name.charCodeAt(0)}function ve(){var t=[];return function(r){var n=e.getNodeId(r);return!t[n]&&(t[n]=!0)}}e.scanner=e.createScanner(5,!0),e.emptyArray=[];var he;!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"}(he=e.SemanticMeaning||(e.SemanticMeaning={})),e.getMeaningFromDeclaration=t,e.getMeaningFromLocation=r,e.isInRightSideOfInternalImportEqualsDeclaration=a,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.getContainerNode=C,e.getNodeKind=D,e.isThis=S;var be=/^\/\/\/\s*</;e.getLineStartPositionForPosition=T,e.rangeContainsRange=E,e.startEndContainsRange=N,e.rangeContainsStartEnd=A,e.rangeOverlapsWithStartEnd=w,e.startEndOverlapsWithStartEnd=P,e.positionBelongsToNode=F,e.isCompletedNode=O,e.findListItemInfo=R,e.hasChildOfKind=M,e.findChildOfKind=L,e.findContainingList=B,e.getTouchingWord=J,e.getTouchingPropertyName=z,e.getTouchingToken=K,e.getTokenAtPosition=j,e.findTokenOnLeftOfPosition=U,e.findNextToken=q,e.findPrecedingToken=W,e.isInString=H,e.isInsideJsxElementOrAttribute=G,e.isInTemplateString=X,e.isInComment=Q,e.hasDocComment=Z,e.getNodeModifiers=ee,e.getTypeArgumentOrTypeParameterList=te,e.isWord=re,e.isComment=ae,e.isStringOrRegularExpressionOrTemplateLiteral=ie,e.isPunctuation=oe,e.isInsideTemplateLiteral=se,e.isAccessibilityModifier=ce,e.compareDataObjects=ue,e.isArrayLiteralOrObjectLiteralDestructuringPattern=_e,e.hasTrailingDirectorySeparator=le,e.isInReferenceComment=de,e.isInNonReferenceComment=pe,e.createTextSpanFromNode=fe,e.createTextSpanFromRange=me,e.isTypeKeyword=ge,e.isExternalModuleSymbol=ye,e.nodeSeenTracker=ve}(ts||(ts={})),function(e){function t(e){return e.declarations&&e.declarations.length>0&&146===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,reportPrivateInBaseOfClassExpression: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():E}function d(){return a("\n",e.SymbolDisplayPartKind.lineBreak)}function p(e){e(T);var t=T.displayParts();return T.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)||e.isStringOrNumericLiteral(n)&&144===n.parent.kind)return n.text;var a=e.getLocalSymbolForExportDefault(r);return t.symbolToString(a||r)}function v(e){return e.parent&&(242===e.parent.kind||246===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}}function C(t,r){for(;e.isWhiteSpaceLike(t.charCodeAt(r));)r+=1;return r}function D(e,t){return e.body.getFirstToken(t)}function S(t,r){return e.getTokenAtPosition(r,t.members.pos-1,!1)}e.isFirstDeclarationOfSymbolParameter=t;var T=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 E="\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,e.getFirstNonSpaceCharacterPosition=C,e.getOpenBrace=D,e.getOpenBraceOfClassLike=S}(ts||(ts={}));var ts;!function(e){function t(){function t(t,r){return!e.isAccessibilityModifier(t)||(125===r||135===r||123===r||115===r)}function r(t,r){for(var a=[],i=t.spans,o=0,s=0;s<i.length;s+=3){var c=i[s],u=i[s+1],_=i[s+2];if(o>=0){var l=c-o;l>0&&a.push({length:l,classification:e.TokenClass.Whitespace})}a.push({length:u,classification:n(_)}),o=c+u}var d=r.length-o;return d>0&&a.push({length:d,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()&&(16===p?m.endOfLineState=5:13===p?m.endOfLineState=4:e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+p)):d.length>0&&14===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(14)}_.setText(r);var m={endOfLineState:0,spans:[]},g=0;do{if(p=_.scan(),!e.isTrivia(p)){if(41!==p&&63!==p||l[f]){if(23===f&&c(p))p=71;else if(c(f)&&c(p)&&!t(f,p))p=71;else if(71===f&&27===p)g++;else if(29===p&&g>0)g--;else if(119===p||136===p||133===p||122===p||137===p)g>0&&!a&&(p=71);else if(14===p)d.push(p);else if(17===p)d.length>0&&d.push(p);else if(18===p&&d.length>0){var y=e.lastOrUndefined(d);14===y?(p=_.reScanTemplateToken(),16===p?d.pop():e.Debug.assert(15===p,"Should have been a template middle. Was "+p)):(e.Debug.assert(17===y,"Should have been an open brace. Was: "+p),d.pop())}}else 12===_.reScanSlashToken()&&(p=12);f=p}i()}while(1!==p);return m}function o(e){switch(e){case 39:case 41:case 42:case 37:case 38:case 45:case 46:case 47:case 27:case 29:case 30:case 31:case 93:case 92:case 118:case 32:case 33:case 34:case 35:case 48:case 50:case 49:case 53:case 54:case 69:case 68:case 70:case 65:case 66:case 67:case 59:case 60:case 61:case 63:case 64:case 58:case 26:return!0;default:return!1}}function s(e){switch(e){case 37:case 38:case 52:case 51:case 43:case 44:return!0;default:return!1}}function c(e){return e>=72&&e<=142}function u(t){if(c(t))return 3;if(o(t)||s(t))return 5;if(t>=17&&t<=70)return 10;switch(t){case 8:return 4;case 9:return 6;case 12:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 71:default:return e.isTemplateLiteralKind(t)?6:2}}var _=e.createScanner(5,!1),l=[];l[71]=!0,l[9]=!0,l[8]=!0,l[12]=!0,l[99]=!0,l[43]=!0,l[44]=!0,l[20]=!0,l[22]=!0,l[18]=!0,l[101]=!0,l[86]=!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 233:case 229:case 230:case 228: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 233===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,_),71===_&&!e.nodeIsMissing(a)){var l=a;if(i.get(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;a<r.length;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(124===_||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 287:t(o);break;case 290:_(o);break;case 289:g(o.typeExpression);break;case 288: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.isJSDoc(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 251:if(e.parent.tagName===e)return 19;break;case 252:if(e.parent.tagName===e)return 20;break;case 250:if(e.parent.tagName===e)return 21;break;case 253:if(e.parent.name===e)return 22}}function m(t,r){if(e.isKeyword(t))return 3;if((27===t||29===t)&&r&&e.getTypeArgumentOrTypeParameterList(r.parent))return 10;if(e.isPunctuation(t)){if(r){if(58===t&&(226===r.parent.kind||149===r.parent.kind||146===r.parent.kind||253===r.parent.kind))return 5;if(194===r.parent.kind||192===r.parent.kind||193===r.parent.kind||195===r.parent.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 253===r.parent.kind?24:6;if(12===t)return 6;
if(e.isTemplateLiteralKind(t))return 6;if(10===t)return 23;if(71===t){if(r)switch(r.parent.kind){case 229:if(r.parent.name===r)return 11;return;case 145:if(r.parent.name===r)return 15;return;case 230:if(r.parent.name===r)return 13;return;case 232:if(r.parent.name===r)return 12;return;case 233:if(r.parent.name===r)return 14;return;case 146: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=0,o=a.getChildren(r);i<o.length;i++){var s=o[i];p(s)||g(s)}}}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){var r;!function(t){function r(t,r,n,s){var c,u=e.normalizeSlashes(t.text),_=t.getSourceFile().path,l=e.getDirectoryPath(_),d=m(t.text,t.getStart()+1);if(g(u)||e.isRootedDiskPath(u)){var p=e.getSupportedExtensions(r);c=r.rootDirs?a(r.rootDirs,u,l,p,!1,d,r,n,_):i(u,l,p,!1,d,n,_)}else c=o(u,l,d,r,n,s);return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:c}}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,t,r,a,o,s,c,u,_){for(var l=c.project||u.getCurrentDirectory(),d=!(u.useCaseSensitiveFileNames&&u.useCaseSensitiveFileNames()),p=n(e,l,r,d),f=[],m=0,g=p;m<g.length;m++){var y=g[m];i(t,y,a,o,s,u,_,f)}return f}function i(t,r,n,a,i,o,s,c){void 0===c&&(c=[]),void 0===t&&(t=""),t=e.normalizeSlashes(t),t=e.getDirectoryPath(t),""===t&&(t="."+e.directorySeparator),t=e.ensureTrailingDirectorySeparator(t);var u=y(e.isRootedDiskPath(t)?t:e.combinePaths(r,t)),_=e.getDirectoryPath(u),l=!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames());if(x(o,_)){var d=h(o,_,n,void 0,["./*"]);if(d){for(var p=e.createMap(),m=0,g=d;m<g.length;m++){var b=g[m];if(b=e.normalizePath(b),!s||0!==e.comparePaths(b,s,r,l)){var k=a?e.getBaseFileName(b):e.removeFileExtension(e.getBaseFileName(b));p.get(k)||p.set(k,!0)}}e.forEachKey(p,function(t){c.push(f(t,e.ScriptElementKind.scriptElement,i))})}var C=v(o,_);if(C)for(var D=0,S=C;D<S.length;D++){var T=S[D],E=e.getBaseFileName(e.normalizePath(T));c.push(f(E,e.ScriptElementKind.directory,i))}}return c}function o(t,r,n,a,o,u){var l,d=a.baseUrl,p=a.paths;if(d){var m=e.getSupportedExtensions(a),g=a.project||o.getCurrentDirectory(),y=e.isRootedDiskPath(d)?d:e.combinePaths(g,d);if(l=i(t,e.normalizePath(y),m,!1,n,o),p)for(var v in p)if(p.hasOwnProperty(v))if("*"===v){if(p[v])for(var h=0,b=p[v];h<b.length;h++)for(var k=b[h],x=0,C=s(t,d,k,m,o);x<C.length;x++){var D=C[x];l.push(f(D,e.ScriptElementKind.externalModuleName,n))}}else if(e.startsWith(v,t)){var S=p[v]&&1===p[v].length&&p[v][0];S&&l.push(f(v,e.ScriptElementKind.externalModuleName,n))}}else l=[];_(o,a,r,n,l);for(var T=0,E=c(t,r,a,u,o);T<E.length;T++){var N=E[T];l.push(f(N,e.ScriptElementKind.externalModuleName,n))}return l}function s(t,r,n,a,i){if(i.readDirectory){var o=e.hasZeroOrOneAsteriskCharacter(n)?e.tryParsePattern(n):void 0;if(o){var s=y(o.prefix),c=e.getDirectoryPath(s),u=e.getBaseFileName(s),_=t.indexOf(e.directorySeparator)!==-1,l=_?e.combinePaths(c,u+e.getDirectoryPath(t)):c,d=e.normalizePath(o.suffix),p=e.combinePaths(r,l),f=_?p:e.ensureTrailingDirectorySeparator(p)+u,m=d?"**/*":"./*",g=h(i,p,a,void 0,[m]);if(g){for(var v=[],b=0,k=g;b<k.length;b++){var x=k[b],C=e.normalizePath(x);if(e.endsWith(C,d)&&e.startsWith(C,f)){var D=f.length,S=C.length-D-d.length;v.push(e.removeFileExtension(C.substr(D,S)))}}return v}}}}function c(t,r,n,a,i){var o=t.indexOf(e.directorySeparator)!==-1,s=o?t.substr(0,t.lastIndexOf(e.directorySeparator)):void 0,c=e.map(a.getAmbientModules(),function(t){return e.stripQuotes(t.name)}),u=e.filter(c,function(r){return e.startsWith(r,t)});if(o){var _=e.ensureTrailingDirectorySeparator(s);u=e.map(u,function(t){return e.removePrefix(t,_)})}if(!n.moduleResolution||n.moduleResolution===e.ModuleResolutionKind.NodeJs)for(var l=0,d=p(i,r);l<d.length;l++){var f=d[l];if(o){if(e.startsWith(f.moduleName,s)){var m=h(i,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 b=e.removeFileExtension(e.getBaseFileName(v));u.push(b)}}}else u.push(f.moduleName)}return e.deduplicate(u)}function u(t,r,n,a){var o=e.getTokenAtPosition(t,r,!1);if(o){var s=e.getLeadingCommentRanges(t.text,o.pos);if(s&&s.length){var c=e.forEach(s,function(e){return r>=e.pos&&r<=e.end&&e});if(c){var u={isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:[]},l=t.text.substr(c.pos,r-c.pos),d=D.exec(l);if(d){var p=d[1],f=d[2],g=d[3],y=e.getDirectoryPath(t.path);if("path"===f){var v=m(g,c.pos+p.length);u.entries=i(g,y,e.getSupportedExtensions(n),!0,v,a,t.path)}else{var h={start:c.pos+p.length,length:d[0].length-p.length};u.entries=_(a,n,y,h)}}return u}}}}function _(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(f(c,e.ScriptElementKind.externalModuleName,a))}else if(t.getDirectories){var u=void 0;try{u=e.getEffectiveTypeRoots(r,t)}catch(_){}if(u)for(var p=0,m=u;p<m.length;p++){var g=m[p];l(t,g,a,i)}}if(t.getDirectories)for(var y=0,v=d(n,t);y<v.length;y++){var h=v[y],b=e.combinePaths(e.getDirectoryPath(h),"node_modules/@types");l(t,b,a,i)}return i}function l(t,r,n,a){if(t.getDirectories&&x(t,r)){var i=v(t,r);if(i)for(var o=0,s=i;o<s.length;o++){var c=s[o];c=e.normalizePath(c),a.push(f(e.getBaseFileName(c),e.ScriptElementKind.externalModuleName,n))}}}function d(t,r){for(var n,a=[];;){if(n=e.findConfigFile(t,function(e){return k(r,e)},"package.json"),!n)break;a.push(n),t=e.getDirectoryPath(n);var i=e.getDirectoryPath(t);if(t===i)break;t=i}return a}function p(t,r){function n(e){try{var r=b(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=d(r,t);o<s.length;o++){var c=s[o],u=n(c);if(!u)return;for(var _=e.combinePaths(e.getDirectoryPath(c),"node_modules"),l=[],p=0,f=S;p<f.length;p++){var m=f[p];a(u[m],l)}for(var g=0,y=l;g<y.length;g++){var v=y[g],h=e.combinePaths(_,v);i.push({moduleName:v,moduleDir:h})}}return i}function f(t,r,n){return{name:t,kind:r,kindModifiers:e.ScriptElementKindModifier.none,sortText:t,replacementSpan:n}}function m(t,r){var n=t.lastIndexOf(e.directorySeparator),a=n!==-1?n+1:0;return{start:r+a,length:t.length-a}}function g(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 y(t){return e.hasTrailingDirectorySeparator(t)?e.ensureTrailingDirectorySeparator(e.normalizePath(t)):e.normalizePath(t)}function v(e,t){return C(e,e.getDirectories,t)}function h(e,t,r,n,a){return C(e,e.readDirectory,t,r,n,a)}function b(e,t){return C(e,e.readFile,t)}function k(e,t){return C(e,e.fileExists,t)}function x(t,r){try{return e.directoryProbablyExists(r,t)}catch(n){}}function C(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.getStringLiteralCompletionEntriesFromModuleNames=r,t.getTripleSlashReferenceCompletion=u;var D=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,S=["dependencies","devDependencies","peerDependencies","optionalDependencies"]}(r=t.PathCompletions||(t.PathCompletions={}))}(t=e.Completions||(e.Completions={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(r,a,s,c,u,_){if(e.isInReferenceComment(u,_))return t.PathCompletions.getTripleSlashReferenceCompletion(u,_,c,r);if(e.isInString(u,_))return o(u,_,a,c,r,s);var l=f(a,s,u,_);if(l){var d=l.symbols,p=l.isGlobalCompletion,m=l.isMemberCompletion,g=l.isNewIdentifierLocation,y=l.location,v=l.request,h=l.hasFilteredClassMemberKeywords;if(1===u.languageVariant&&y&&y.parent&&252===y.parent.kind){var b=y.parent.parent.openingElement.tagName;return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,entries:[{name:b.getFullText(),kind:e.ScriptElementKind.classElement,kindModifiers:void 0,sortText:"0"}]}}if(v){var k="JsDocTagName"===v.kind?e.JsDoc.getJSDocTagNameCompletions():"JsDocTag"===v.kind?e.JsDoc.getJSDocTagCompletions():e.JsDoc.getJSDocParameterNameCompletions(v.tag);return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:k}}var x=[];if(e.isSourceFileJavaScript(u)){var D=i(d,x,y,!0,a,c.target,s);e.addRange(x,n(u,y.pos,D,c.target))}else{if(!(d&&0!==d.length||h))return;i(d,x,y,!0,a,c.target,s)}return h?e.addRange(x,S):m||e.addRange(x,C),{isGlobalCompletion:p,isMemberCompletion:m,isNewIdentifierLocation:g,entries:x}}}function n(t,r,n,a){var i=[],o=e.getNameTable(t);return o.forEach(function(t,o){if(t!==r&&!n.get(o)){n.set(o,o);var s=g(e.unescapeIdentifier(o),a,!0);if(s){var c={name:s,kind:e.ScriptElementKind.warning,kindModifiers:"",sortText:"1"};i.push(c)}}}),i}function a(t,r,n,a,i){var o=m(a,t,i,n,r);if(o)return{name:o,kind:e.SymbolDisplay.getSymbolKind(a,t,r),kindModifiers:e.SymbolDisplay.getSymbolModifiers(t),sortText:"0"}}function i(t,r,n,i,o,s,c){var u=e.timestamp(),_=e.createMap();if(t)for(var l=0,d=t;l<d.length;l++){var p=d[l],f=a(p,n,i,o,s);if(f){var m=e.escapeIdentifier(f.name);_.get(m)||(r.push(f),_.set(m,m))}}return c("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(e.timestamp()-u)),_}function o(r,n,a,i,o,l){var d=e.findPrecedingToken(n,r);if(d&&9===d.kind){if(261===d.parent.kind&&178===d.parent.parent.kind&&d.parent.name===d)return s(d.parent,a,i.target,l);if(e.isElementAccessExpression(d.parent)&&d.parent.argumentExpression===d)return u(d.parent,a,i.target,l);if(238===d.parent.kind||e.isExpressionOfExternalModuleImportEqualsDeclaration(d)||e.isRequireCall(d.parent,!1))return t.PathCompletions.getStringLiteralCompletionEntriesFromModuleNames(d,i,o,a);if(h(d.parent))return _(a.getTypeAtLocation(d.parent.left===d?d.parent.right:d.parent.left),a);if(e.isCaseOrDefaultClause(d.parent))return _(a.getTypeAtLocation(d.parent.parent.parent.expression),a);var p=e.SignatureHelp.getImmediatelyContainingArgumentInfo(d,n,r);return p?c(p,a):_(a.getContextualType(d),a)}}function s(e,t,r,n){var a=t.getContextualType(e.parent),o=[];if(a&&(i(a.getApparentProperties(),o,e,!1,t,r,n),o.length))return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!0,entries:o}}function c(t,r){var n=[],a=[],i=e.createMap();r.getResolvedSignature(t.invocation,n);for(var o=0,s=n;o<s.length;o++){var c=s[o];l(r.getParameterType(c,t.argumentIndex),a,r,i)}if(a.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:a}}function u(e,t,r,n){var a=t.getTypeAtLocation(e.expression),o=[];if(a&&(i(a.getApparentProperties(),o,e,!1,t,r,n),o.length))return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!0,entries:o}}function _(e,t){if(e){var r=[];if(l(e,r,t),r.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:r}}}function l(t,r,n,a){if(void 0===a&&(a=e.createMap()),t&&16384&t.flags&&(t=n.getBaseConstraintOfType(t)),t)if(65536&t.flags)for(var i=0,o=t.types;i<o.length;i++){var s=o[i];l(s,r,n,a)}else if(32&t.flags){var c=t.value;a.has(c)||(a.set(c,!0),r.push({name:c,kindModifiers:e.ScriptElementKindModifier.none,kind:e.ScriptElementKind.variableElement,sortText:"0"}))}}function d(t,r,n,a,i,o){var s=f(t,r,a,i);if(s){var c=s.symbols,u=s.location,_=e.forEach(c,function(e){return m(t,e,n.target,!1,u)===o?e:void 0});if(_){var l=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,_,a,u,u,7),d=l.displayParts,p=l.documentation,g=l.symbolKind,y=l.tags;return{name:o,kindModifiers:e.SymbolDisplay.getSymbolModifiers(_),kind:g,displayParts:d,documentation:p,tags:y}}}var v=e.forEach(C,function(e){return e.name===o});if(v)return{name:o,kind:e.ScriptElementKind.keyword,kindModifiers:e.ScriptElementKindModifier.none,displayParts:[e.displayPart(o,e.SymbolDisplayPartKind.keyword)],documentation:void 0,tags:void 0}}function p(t,r,n,a,i,o){var s=f(t,r,a,i);if(s){var c=s.symbols,u=s.location;return e.forEach(c,function(e){return m(t,e,n.target,!1,u)===o?e:void 0})}}function f(t,r,n,a){function i(e){switch(e.kind){case 285:case 287:case 292:case 288:case 289:case 291:return!0}}function o(){ne=!1,ee=!0,te=!1;var r=e.isPartOfTypeNode(G.parent)||j,n=e.isInRightSideOfInternalImportEqualsDeclaration(G);if(71===G.kind||143===G.kind||179===G.kind){var a=t.getSymbolAtLocation(G);if(a&&8388608&a.flags&&(a=t.getAliasedSymbol(a)),a&&1952&a.flags){var i=t.getExportsOfModule(a),o=function(e){return t.isValidPropertyAccess(G.parent,e.name)},c=function(e){return d(e)},u=n?function(e){return c(e)||o(e)}:r?c:o;e.forEach(i,function(e){u(e)&&ie.push(e)})}}if(!r){var _=t.getTypeAtLocation(G);s(_)}}function s(e){if(e){for(var r=0,n=e.getApparentProperties();r<n.length;r++){var a=n[r];t.isValidPropertyAccess(G.parent,a.name)&&ie.push(a)}if(B&&65536&e.flags)for(var i=e,o=0,c=i.types;o<c.length;o++){var u=c[o];s(u)}}}function c(){var r,i,o,s;if(r=D(W))return b(r);if(i=S(W))return x(i);if(o=E(W))return C(o),!0;if(s=N(W)){var c=void 0;if((250===s.kind||251===s.kind)&&(c=t.getAllAttributesTypeFromJsxOpeningLikeElement(s)))return ie=R(t.getPropertiesOfType(c),s.attributes.properties),ee=!0,te=!1,!0}ee=!1,te=g(W),q!==W&&e.Debug.assert(!!q,"Expected 'contextToken' to be defined when different from 'previousToken'.");var _=q!==W?q.getStart():a,l=p(W,_,n)||n;l&&(ne=265===l.kind||196===l.kind||256===l.kind||e.isStatement(l));var d=9289727;return ie=u(t.getSymbolsInScope(l,d)),!0}function u(r){return e.filter(r,function(r){if(!e.isSourceFile(Z)){if(e.isExportAssignment(Z.parent))return!0;if(r&&8388608&r.flags&&(r=t.getAliasedSymbol(r)),e.isInRightSideOfInternalImportEqualsDeclaration(Z))return!!(1920&r.flags);if(j||!_(W)&&(e.isPartOfTypeNode(Z)||l(W)))return d(r)}return!!(107455&r.flags)})}function _(e){return e&&103===e.kind&&162===e.parent.kind}function l(t){if(t){var r=t.parent.kind;switch(t.kind){case 56:return 149===r||148===r||146===r||226===r||e.isFunctionLikeKind(r);case 58:return 231===r;case 118:return 202===r}}}function d(r){if(r&&8388608&r.flags&&(r=t.getAliasedSymbol(r)),793064&r.flags)return!0;if(1536&r.flags){var n=t.getExportsOfModule(r);return e.forEach(n,d)}}function p(t,r,n){for(var a=t;a&&!e.positionBelongsToNode(a,r,n);)a=a.parent;return a}function f(t){var n=e.timestamp(),a=h(t)||A(t)||P(t)||m(t);return r("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-n)),a}function m(e){if(10===e.kind)return!0;if(29===e.kind&&e.parent){if(251===e.parent.kind)return!0;if(252===e.parent.kind||250===e.parent.kind)return e.parent.parent&&249===e.parent.parent.kind}return!1}function g(e){if(e){var t=e.parent.kind;switch(e.kind){case 26:return 181===t||152===t||182===t||177===t||194===t||160===t;case 19:return 181===t||152===t||182===t||185===t||168===t;case 21:return 177===t||157===t||144===t;case 128:case 129:return!0;case 23:return 233===t;case 17:return 229===t;case 58:return 226===t||194===t;case 14:return 196===t;case 15:return 205===t;case 114:case 112:case 113:return 149===t}switch(e.getText()){case"public":case"protected":case"private":return!0}}return!1}function h(t){if(9===t.kind||12===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||12===t.kind}return!1}function b(r){ee=!0;var n,a;if(178===r.kind){te=!0;var i=t.getContextualType(r);if(!i)return!1;n=t.getAllPossiblePropertiesOfType(i),a=r.properties}else{e.Debug.assert(174===r.kind),te=!1;var o=e.getRootDeclaration(r.parent);if(!e.isVariableLike(o))throw e.Debug.fail("Root declaration is not variable-like.");var s=o.initializer||o.type||216===o.parent.parent.kind;if(s||146!==o.kind||(e.isExpression(o.parent)?s=!!t.getContextualType(o.parent):151!==o.parent.kind&&154!==o.parent.kind||(s=e.isExpression(o.parent.parent)&&!!t.getContextualType(o.parent.parent))),s){var i=t.getTypeAtLocation(r);if(!i)return!1;n=t.getPropertiesOfType(i),a=r.elements}}return n&&n.length>0&&(ie=O(n,a)),!0}function x(r){var n=241===r.kind?238:244,a=e.getAncestor(r,n),i=a.moduleSpecifier;if(!i)return!1;ee=!0,te=!1;var o=t.getSymbolAtLocation(i);if(!o)return ie=e.emptyArray,!0;var s=t.getExportsAndPropertiesOfModule(o);return ie=F(s,r.elements),!0}function C(r){ee=!0,te=!0,ae=!0;var n=e.getClassExtendsHeritageClauseElement(r),a=e.getClassImplementsHeritageClauseElements(r);if(n||a){var i=W.parent,o=e.isClassElement(i)&&e.getModifierFlags(i);if(71===W.kind&&!M(W))switch(W.getText()){case"private":o=8|o;break;case"static":o=32|o}if(!(8&o)){var s=void 0;n&&(s=t.getTypeAtLocation(n),32&o&&(s=t.getTypeOfSymbolAtLocation(s.symbol,r)));var c=32&o?void 0:e.flatMap(a,function(e){return t.getPropertiesOfType(t.getTypeAtLocation(e))});ie=I(s?t.getPropertiesOfType(s):void 0,c,r.members,o)}}}function D(t){if(t)switch(t.kind){case 17:case 26:var r=t.parent;if(e.isObjectLiteralExpression(r)||e.isObjectBindingPattern(r))return r}}function S(e){if(e)switch(e.kind){case 17:case 26:switch(e.parent.kind){case 241:case 245:return e.parent}}}function T(t){return e.isClassElement(t.parent)&&e.isClassLike(t.parent.parent)}function E(t){if(t)switch(t.kind){case 17:if(e.isClassLike(t.parent))return t.parent;break;case 26:case 25:case 18:if(e.isClassLike(Z))return Z;break;default:if(T(t)&&(y(t.kind)||v(t.getText())))return t.parent.parent}if(Z&&295===Z.kind&&e.isClassLike(Z.parent))return Z.parent}function N(e){if(e){var t=e.parent;switch(e.kind){case 28:case 41:case 71:case 179:case 254:case 253:case 255:if(t&&(250===t.kind||251===t.kind))return t;if(253===t.kind)return t.parent.parent;break;case 9:if(t&&(253===t.kind||255===t.kind))return t.parent.parent;break;case 18:if(t&&256===t.kind&&t.parent&&253===t.parent.kind)return t.parent.parent.parent;if(t&&255===t.kind)return t.parent.parent}}}function A(t){var r=t.parent.kind;switch(t.kind){case 26:return 226===r||227===r||208===r||232===r||w(r)||229===r||199===r||230===r||175===r||231===r;case 23:return 175===r;case 56:return 176===r;case 21:return 175===r;case 19:return 260===r||w(r);case 17:return 232===r||230===r||163===r;case 25:return 148===r&&t.parent&&t.parent.parent&&(230===t.parent.parent.kind||163===t.parent.parent.kind);case 27:return 229===r||199===r||230===r||231===r||e.isFunctionLikeKind(r);case 115:return 149===r&&!e.isClassLike(t.parent.parent);case 24:return 146===r||t.parent&&t.parent.parent&&175===t.parent.parent.kind;case 114:case 112:case 113:return 146===r;case 118:return 242===r||246===r||240===r;case 125:case 135:if(T(t))return!1;case 75:case 83:case 109:case 89:case 104:case 91:case 110:case 76:case 116:case 138:return!0}if(v(t.getText())&&T(t))return!1;switch(t.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 w(t){return e.isFunctionLikeKind(t)&&152!==t}function P(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}function F(t,r){for(var n=e.createMap(),a=0,i=r;a<i.length;a++){var o=i[a];if(!M(o)){var s=o.propertyName||o.name;n.set(s.text,!0)}}return 0===n.size?e.filter(t,function(e){return"default"!==e.name}):e.filter(t,function(e){return"default"!==e.name&&!n.get(e.name)})}function O(t,r){if(!r||0===r.length)return t;for(var n=e.createMap(),a=0,i=r;a<i.length;a++){var o=i[a];if((261===o.kind||262===o.kind||176===o.kind||151===o.kind||153===o.kind||154===o.kind)&&!M(o)){var s=void 0;176===o.kind&&o.propertyName?71===o.propertyName.kind&&(s=o.propertyName.text):s=e.getNameOfDeclaration(o).text,n.set(s,!0)}}return e.filter(t,function(e){return!n.get(e.name)})}function I(t,r,n,a){function i(t,r){return!o.get(t.name)&&t.getDeclarations()&&!(e.getDeclarationModifierFlagsFromSymbol(t)&r)}for(var o=e.createMap(),s=0,c=n;s<c.length;s++){var u=c[s];if(!(149!==u.kind&&151!==u.kind&&153!==u.kind&&154!==u.kind||M(u)||e.hasModifier(u,8))){var _=e.hasModifier(u,32),l=!!(32&a);if(!(_&&!l||!_&&l)){var d=e.getPropertyNameForPropertyNameNode(u.name);d&&o.set(d,!0)}}}return e.concatenate(e.filter(t,function(e){return i(e,8)}),e.filter(r,function(e){return i(e,24)}))}function R(t,r){for(var n=e.createMap(),a=0,i=r;a<i.length;a++){var o=i[a];M(o)||253===o.kind&&n.set(o.name.text,!0)}return e.filter(t,function(e){return!n.get(e.name)})}function M(e){return e.getStart()<=a&&a<=e.getEnd()}var L,B=e.isSourceFileJavaScript(n),J=e.timestamp(),z=e.getTokenAtPosition(n,a,!1);r("getCompletionData: Get current token: "+(e.timestamp()-J)),J=e.timestamp();var K=e.isInComment(n,a,z);r("getCompletionData: Is inside comment: "+(e.timestamp()-J));var j=!1;if(K){if(e.hasDocComment(n,a))if(64===n.text.charCodeAt(a-1))L={kind:"JsDocTagName"};else{var V=e.getLineStartPositionForPosition(a,n);n.text.substring(V,a).match(/[^\*|\s|(\/\*\*)]/)||(L={kind:"JsDocTag"})}var U=k(z,a);if(U&&(U.tagName.pos<=a&&a<=U.tagName.end&&(L={kind:"JsDocTagName"}),i(U)&&U.typeExpression&&(z=e.getTokenAtPosition(n,a,!0),z&&(e.isDeclarationName(z)||292===z.parent.kind&&z.parent.name===z)||(j=M(U.typeExpression))),e.isJSDocParameterTag(U)&&(e.nodeIsMissing(U.name)||U.name.pos<=a&&a<=U.name.end)&&(L={kind:"JsDocParameterName",tag:U})),L)return{symbols:void 0,isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,location:void 0,isRightOfDot:!1,request:L,hasFilteredClassMemberKeywords:!1};if(!j)return void r("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}J=e.timestamp();var q=e.findPrecedingToken(a,n,void 0,j);r("getCompletionData: Get previous token 1: "+(e.timestamp()-J));var W=q;if(W&&a<=W.end&&e.isWord(W.kind)){var H=e.timestamp();W=e.findPrecedingToken(W.getFullStart(),n,void 0,j),r("getCompletionData: Get previous token 2: "+(e.timestamp()-H))}var G=z,X=!1,Q=!1,Y=!1,Z=e.getTouchingPropertyName(n,a,j);if(W){if(f(W))return void r("Returning an empty list because completion was requested in an invalid position.");var $=W.parent;if(23===W.kind)if(179===$.kind)G=W.parent.expression,X=!0;else{if(143!==$.kind)return;G=W.parent.left,X=!0}else if(1===n.languageVariant)switch($&&179===$.kind&&(W=$,$=$.parent),$.kind){case 252:41===W.kind&&(Y=!0,Z=W);break;case 194:if(!(32768&$.left.flags))break;case 250:case 249:case 251:27===W.kind&&(Q=!0,Z=W)}}var ee,te,re=e.timestamp(),ne=!1,ae=!1,ie=[];if(X)o();else if(Q){var oe=t.getJsxIntrinsicTagNames();ie=c()?oe.concat(ie.filter(function(e){return!!(8496063&e.flags)})):oe,ee=!0,te=!1}else if(Y){var se=W.parent.parent.openingElement.tagName,ce=t.getSymbolAtLocation(se);t.isUnknownSymbol(ce)||(ie=[ce]),ee=!0,te=!1}else if(!c())return;return r("getCompletionData: Semantic work: "+(e.timestamp()-re)),{symbols:ie,isGlobalCompletion:ne,isMemberCompletion:ee,isNewIdentifierLocation:te,location:Z,isRightOfDot:X||Q,request:L,hasFilteredClassMemberKeywords:ae}}function m(t,r,n,a,i){var o=e.getDeclaredName(t,r,i);if(o){var s=o.charCodeAt(0);if(1920&r.flags&&(39===s||34===s))return}return g(o,n,a)}function g(t,r,n){if(t&&(t=e.stripQuotes(t),t&&(!n||e.isIdentifierText(t,r))))return t}function y(e){switch(e){case 114:case 113:case 112:case 117:case 115:case 123:case 131:case 125:case 135:case 120:return!0}}function v(t){return y(e.stringToToken(t))}function h(t){return e.isBinaryExpression(t)&&b(t.operatorToken.kind)}function b(e){return 32===e||33===e||34===e||35===e}function k(e,t){var r=x(e).jsDoc;if(r)for(var n=0,a=r;n<a.length;n++){var i=a[n],o=i.pos,s=i.end,c=i.tags;if(!(!c||t<o||t>s))for(var u=c.length-1;u>=0;u--){var _=c[u];if(t>=_.pos)return _}}}function x(t){if(!e.isToken(t))return t;switch(t.kind){case 104:case 110:case 76:return t.parent.parent;default:return t.parent}}t.getCompletionsAtPosition=r,t.getCompletionEntryDetails=d,t.getCompletionEntrySymbol=p;for(var C=[],D=72;D<=142;D++)C.push({name:e.tokenToString(D),kind:e.ScriptElementKind.keyword,kindModifiers:e.ScriptElementKindModifier.none,sortText:"0"});var S=e.filter(C,function(e){return v(e.name)})}(t=e.Completions||(e.Completions={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r,i,s,c){var u=e.getTouchingWord(i,s,!0);if(u){if(e.isJsxOpeningElement(u.parent)&&u.parent.tagName===u||e.isJsxClosingElement(u.parent)){var _=u.parent.parent,l=_.openingElement,d=_.closingElement,p=[l,d].map(function(e){var t=e.tagName;return n(t,i)});return[{fileName:i.fileName,highlightSpans:p}]}return a(u,t,r,c)||o(u,i)}}function n(t,r){return{fileName:r.fileName,textSpan:e.createTextSpanFromNode(t,r),kind:e.HighlightSpanKind.none}}function a(t,r,n,a){var o=e.FindAllReferences.getReferenceEntriesForNode(t,r,a,n);return o&&i(o)}function i(t){for(var r=e.createMap(),n=0,a=t;n<a.length;n++){var i=a[n],o=e.FindAllReferences.toHighlightSpan(i),s=o.fileName,c=o.span,u=r.get(s);u||r.set(s,u=[]),u.push(c)}return e.arrayFrom(r.entries(),function(e){var t=e[0],r=e[1];return{fileName:t,highlightSpans:r}})}function o(e,t){var r=u(e,t);if(r&&0!==r.length)return[{fileName:t.fileName,highlightSpans:r}]}function s(e,t){return void 0!==e&&e.kind===t}function c(e){return e&&e.parent}function u(t,r){function a(e){return e&&e.map(function(e){return n(e,r)})}if(t)switch(t.kind){case 90:case 82:if(s(t.parent,211))return S(t.parent,r);break;case 96:if(s(t.parent,219))return a(D(t.parent));break;case 100:if(s(t.parent,223))return a(C(t.parent));break;case 102:case 74:case 87:var i=c(74===t.kind?c(t):t);if(s(i,224))return a(x(i,r));break;case 98:if(s(t.parent,221))return a(k(t.parent));break;case 73:case 79:if(s(c(c(c(t))),221))return a(k(t.parent.parent.parent));break;case 72:case 77:if(s(t.parent,218)||s(t.parent,217))return a(b(t.parent));break;case 88:if(s(t.parent,214)||s(t.parent,215)||s(t.parent,216))return a(h(t.parent));break;case 106:case 81:if(s(t.parent,213)||s(t.parent,212))return a(h(t.parent));break;case 123:if(s(t.parent,152))return a(v(t.parent));break;case 125:case 135:if(s(t.parent,153)||s(t.parent,154))return a(y(t.parent));break;default:if(e.isModifierKind(t.kind)&&t.parent&&(e.isDeclaration(t.parent)||208===t.parent.kind))return a(m(t.kind,t.parent))}}function _(t){function r(t){if(223===t.kind)n.push(t);else if(224===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 l(t){for(var r=t;r.parent;){var n=r.parent;if(e.isFunctionBlock(n)||265===n.kind)return n;if(224===n.kind){var a=n;if(a.tryBlock===r&&a.catchClause)return r}r=n}}function d(t){function r(t){218===t.kind||217===t.kind?n.push(t):e.isFunctionLike(t)||e.forEachChild(t,r)}var n=[];return r(t),n}function p(e,t){var r=f(t);return r&&r===e}function f(t){for(var r=t.parent;r;r=r.parent)switch(r.kind){case 221:if(217===t.kind)continue;case 214:case 215:case 216:case 213:case 212:if(!t.label||T(r,t.label.text))return r;break;default:if(e.isFunctionLike(r))return}}function m(t,r){function n(t){switch(t){case 114:return 4;case 112:return 8;case 113:return 16;case 115:return 32;case 84:return 1;case 124:return 2;case 117:return 128;default:e.Debug.fail()}}var a=r.parent;if(e.isAccessibilityModifier(t)){if(!(229===a.kind||199===a.kind||146===r.kind&&s(a,152)))return}else if(115===t){if(229!==a.kind&&199!==a.kind)return}else if(84===t||124===t){if(234!==a.kind&&265!==a.kind)return}else{if(117!==t)return;if(229!==a.kind&&229!==r.kind)return}var i,o=[],c=n(t);switch(a.kind){case 234:case 265:i=128&c?r.members.concat(r):a.statements;break;case 152:i=a.parameters.concat(a.parent.members);break;case 229:case 199:if(i=a.members,28&c){var u=e.forEach(a.members,function(e){return 152===e.kind&&e});u&&(i=i.concat(u.parameters))}else 128&c&&(i=i.concat(a));break;default:e.Debug.fail("Invalid container kind.")}return e.forEach(i,function(r){e.getModifierFlags(r)&c&&e.forEach(r.modifiers,function(e){return g(o,e,t)})}),o}function g(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 y(t){function r(t,r){var a=e.getDeclarationOfKind(t,r);a&&e.forEach(a.getChildren(),function(e){return g(n,e,125,135)})}var n=[];return r(t.symbol,153),r(t.symbol,154),n}function v(t){var r=t.symbol.getDeclarations(),n=[];return e.forEach(r,function(t){e.forEach(t.getChildren(),function(e){return g(n,e,123)})}),n}function h(t){var r=[];if(g(r,t.getFirstToken(),88,106,81)&&212===t.kind)for(var n=t.getChildren(),a=n.length-1;a>=0&&!g(r,n[a],106);a--);var i=d(t.statement);return e.forEach(i,function(e){p(t,e)&&g(r,e.getFirstToken(),72,77)}),r}function b(e){var t=f(e);if(t)switch(t.kind){case 214:case 215:case 216:case 212:case 213:return h(t);case 221:return k(t)}}function k(t){var r=[];return g(r,t.getFirstToken(),98),e.forEach(t.caseBlock.clauses,function(n){g(r,n.getFirstToken(),73,79);var a=d(n);e.forEach(a,function(e){p(t,e)&&g(r,e.getFirstToken(),72)})}),r}function x(t,r){var n=[];if(g(n,t.getFirstToken(),102),t.catchClause&&g(n,t.catchClause.getFirstToken(),74),t.finallyBlock){var a=e.findChildOfKind(t,87,r);g(n,a,87)}return n}function C(t){var r=l(t);if(r){var n=[];return e.forEach(_(r),function(e){g(n,e.getFirstToken(),100)}),e.isFunctionBlock(r)&&e.forEachReturnStatement(r,function(e){g(n,e.getFirstToken(),96)}),n}}function D(t){var r=e.getContainingFunction(t);if(r&&s(r.body,207)){var n=[];return e.forEachReturnStatement(r.body,function(e){g(n,e.getFirstToken(),96)}),e.forEach(_(r.body),function(e){g(n,e.getFirstToken(),100)}),n}}function S(t,r){for(var a=[];s(t.parent,211)&&t.parent.elseStatement===t;)t=t.parent;for(;t;){var i=t.getChildren();g(a,i[0],90);for(var o=i.length-1;o>=0&&!g(a,i[o],82);o--);if(!s(t.elseStatement,211))break;t=t.elseStatement}for(var c=[],o=0;o<a.length;o++){if(82===a[o].kind&&o<a.length-1){for(var u=a[o],_=a[o+1],l=!0,d=_.getStart()-1;d>=u.end;d--)if(!e.isWhiteSpaceSingleLine(r.text.charCodeAt(d))){l=!1;break}if(l){c.push({fileName:r.fileName,textSpan:e.createTextSpanFromBounds(u.getStart(),_.end),kind:e.HighlightSpanKind.reference}),o++;continue}}c.push(n(a[o],r))}return c}function T(e,t){for(var r=e.parent;222===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.get(t);return!n&&r&&p.set(t,n=e.createFileMap()),n}function i(){var t=e.arrayFrom(p.keys()).filter(function(e){return e&&"_"===e.charAt(0)}).map(function(e){var t=p.get(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(t,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(e,t,r){var i=s(e,t,r);return function(o,s,c){var u=n(e,i,s,t,r),_=u.directImports,l=u.indirectUsers;return __assign({indirectUsers:l},a(_,o,s.exportKind,t,c))}}function n(t,r,n,a,o){function s(){if(b)return t;for(var r=0,n=p.declarations;r<n.length;r++){var a=n[r];e.isExternalModuleAugmentation(a)&&_(a)}return k.map(e.getSourceFileOfNode)}function c(t){var r=d(t);if(r)for(var n=0,i=r;n<i.length;n++){var s=i[n];if(m(s))switch(o.throwIfCancellationRequested(),s.kind){case 181:if(!b){var l=s.parent;if(2===f&&226===l.kind){var p=l.name;if(71===p.kind){y.push(p);break}}_(s.getSourceFile())}break;case 237:u(s,s.name,e.hasModifier(s,1));break;case 238:var g=s.importClause&&s.importClause.namedBindings;g&&240===g.kind?u(s,g.name):y.push(s);break;case 244:s.exportClause?y.push(s):c(v(s,a))}}}function u(t,r,n){if(2===f)y.push(t);else if(!b){var o=h(t);e.Debug.assert(265===o.kind||233===o.kind),n||i(o,r,a)?l(o):_(o)}}function _(t){e.Debug.assert(!b);var r=g(t);return r&&k.push(t),r}function l(t){if(_(t)){var r=a.getMergedSymbol(t.symbol);e.Debug.assert(!!(1536&r.flags));var n=d(r);if(n)for(var i=0,o=n;i<o.length;i++){var s=o[i];l(h(s))}}}function d(t){return r.get(e.getSymbolId(t).toString())}var p=n.exportingModuleSymbol,f=n.exportKind,m=e.nodeSeenTracker(),g=e.nodeSeenTracker(),y=[],b=!!p.globalExports,k=b?void 0:[];return c(p),{directImports:y,indirectUsers:s()}}function a(t,r,n,a,i){function o(e,t){l.push([e,t])}function s(t){if(237===t.kind)return void(k(t)&&c(t.name));if(71===t.kind)return void c(t);if(9===t.moduleSpecifier.kind){if(244===t.kind)return void u(t.exportClause);if(t.importClause){var s=t.importClause,l=s.namedBindings;if(l&&240===l.kind)return void c(l.name);if(0===n)u(l);else{var d=s.name;if(d&&(!i||d.text===g(r))){var p=a.getSymbolAtLocation(d);o(d,p)}i||1!==n||(e.Debug.assert("default"===_),u(l))}}}}function c(e){2!==n||i&&e.text!==_||o(e,a.getSymbolAtLocation(e))}function u(e){if(e)for(var t=0,r=e.elements;t<r.length;t++){var n=r[t],s=n.name,c=n.propertyName;if((c||s).text===_)if(c)d.push(c),i||o(s,a.getSymbolAtLocation(s));else{var u=246===n.kind&&n.propertyName?a.getExportSpecifierLocalTargetSymbol(n):a.getSymbolAtLocation(s);o(s,u)}}}var _=r.name,l=[],d=[];if(t)for(var p=0,f=t;p<f.length;p++){var m=f[p];s(m)}return{importSearches:l,singleReferences:d}}function i(e,t,r){var n=r.getSymbolAtLocation(t);return c(e,function(e){if(244===e.kind){var t=e,a=t.exportClause,i=t.moduleSpecifier;if(!i&&a)for(var o=0,s=a.elements;o<s.length;o++){var c=s[o];if(r.getExportSpecifierLocalTargetSymbol(c)===n)return!0}}})}function o(e,t,r){for(var n=[],a=e.getTypeChecker(),i=0,o=t;i<o.length;i++){var s=o[i],c=r.valueDeclaration;if(265===c.kind){for(var _=0,l=s.referencedFiles;_<l.length;_++){var d=l[_];e.getSourceFileFromReference(s,d)===c&&n.push({kind:"reference",referencingFile:s,ref:d})}for(var p=0,f=s.typeReferenceDirectives;p<f.length;p++){var d=f[p],m=e.getResolvedTypeReferenceDirectives().get(d.fileName);void 0!==m&&m.resolvedFileName===c.fileName&&n.push({kind:"reference",referencingFile:s,ref:d})}}u(s,function(e,t){var i=a.getSymbolAtLocation(t);i===r&&n.push({kind:"import",literal:t})})}return n}function s(t,r,n){for(var a=e.createMap(),i=0,o=t;i<o.length;i++){var s=o[i];n.throwIfCancellationRequested(),u(s,function(t,n){var i=r.getSymbolAtLocation(n);if(i){var o=e.getSymbolId(i).toString(),s=a.get(o);s||a.set(o,s=[]),s.push(t)}})}return a}function c(t,r){return e.forEach(265===t.kind?t.statements:t.body.statements,function(t){return r(t)||b(t)&&e.forEach(t.body&&t.body.statements,r)})}function u(e,t){if(e.externalModuleIndicator||void 0!==e.imports)for(var r=0,n=e.imports;r<n.length;r++){var a=n[r];t(_(a),a)}else c(e,function(e){switch(e.kind){case 244:case 238:var r=e;r.moduleSpecifier&&9===r.moduleSpecifier.kind&&t(r,r.moduleSpecifier);break;case 237:var r=e,n=r.moduleReference;248===n.kind&&9===n.expression.kind&&t(r,n.expression)}})}function _(t){var r=t.parent;switch(r.kind){case 181:case 238:case 244:return r;case 248:return r.parent;default:e.Debug.fail("Unexpected module specifier parent: "+r.kind)}}function l(t,r,n,a){function i(){function i(t){var n=t.symbol.parent;return e.Debug.assert(!!n),{kind:1,symbol:r,exportInfo:{exportingModuleSymbol:n,exportKind:2}}}function o(t,a){var i;switch(e.getSpecialPropertyAssignmentKind(t)){case 1:i=0;break;case 2:i=2;break;default:return}var o=a?n.getSymbolAtLocation(t.left.name):r;return o&&s(o,i)}var u=t.parent;if(7340032&r.flags){if(179===u.kind)return r.declarations.some(function(e){return e===u})&&e.isBinaryExpression(u.parent)?o(u.parent,!1):void 0;var _=r.exportSymbol;return e.Debug.assert(!!_),s(_,c(u))}var l=p(u);if(l&&e.hasModifier(l,1)){if(e.isImportEqualsDeclaration(l)&&l.moduleReference===t){if(a)return;var d=n.getSymbolAtLocation(l.name);return{kind:0,symbol:d,isNamedImport:!1}}return s(r,c(l))}return e.isExportAssignment(u)?i(u):e.isExportAssignment(u.parent)?i(u.parent):e.isBinaryExpression(u)?o(u,!0):e.isBinaryExpression(u.parent)?o(u.parent,!0):void 0}function o(){var e=f(t);if(e){var a=n.getImmediateAliasedSymbol(r);if(a)return a=y(a,n),"export="===a.name&&(a=d(a,n)),g(a)===r.name?__assign({kind:0,symbol:a},e):void 0}}function s(e,t){var r=m(e,t,n);return r&&{kind:1,symbol:e,exportInfo:r}}function c(t){return e.hasModifier(t,512)?1:0}return a?i():i()||o()}function d(t,r){if(8388608&t.flags)return r.getImmediateAliasedSymbol(t);var n=t.valueDeclaration;return e.isExportAssignment(n)?n.expression.symbol:e.isBinaryExpression(n)?n.right.symbol:void e.Debug.fail()}function p(e){if(226===e.kind){var t=e;return 260===t.parent.kind?void 0:208===t.parent.parent.kind?t.parent.parent:void 0}return e}function f(t){var r=t.parent;switch(r.kind){case 237:return r.name===t&&k(r)?{isNamedImport:!1}:void 0;case 242:return r.propertyName?void 0:{isNamedImport:!0};case 239:case 240:return e.Debug.assert(r.name===t),{isNamedImport:!1};default:return}}function m(t,r,n){var a=n.getMergedSymbol(t.parent);return e.isExternalModuleSymbol(a)?{exportingModuleSymbol:a,exportKind:r}:void 0}function g(t){return"default"!==t.name?t.name:e.forEach(t.declarations,function(t){if(e.isExportAssignment(t))return e.isIdentifier(t.expression)?t.expression.text:void 0;var r=e.getNameOfDeclaration(t);return r&&71===r.kind&&r.text})}function y(t,r){if(t.declarations)for(var n=0,a=t.declarations;n<a.length;n++){var i=a[n];if(e.isExportSpecifier(i)&&!i.propertyName&&!i.parent.parent.moduleSpecifier)return r.getExportSpecifierLocalTargetSymbol(i)}return t}function v(e,t){return t.getMergedSymbol(h(e).symbol)}function h(t){if(181===t.kind)return t.getSourceFile();var r=t.parent;return 265===r.kind?r:(e.Debug.assert(234===r.kind&&b(r.parent)),r.parent)}function b(e){return 233===e.kind&&9===e.name.kind}function k(e){var t=e.moduleReference;return 248===t.kind&&9===t.expression.kind}t.createImportTracker=r;var x;!function(e){e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals"}(x=t.ExportKind||(t.ExportKind={}));var C;!function(e){e[e.Import=0]="Import",e[e.Export=1]="Export"}(C=t.ImportExport||(t.ImportExport={})),t.findModuleReferences=o,t.getImportOrExportSymbol=l,t.getExportInfo=m}(t=e.FindAllReferences||(e.FindAllReferences={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(e,t){return{type:"node",node:e,isInString:t}}function n(e,t,r,n,a){var i=c(e,t,r,n,a);if(i&&i.length){for(var o=[],s=e.getTypeChecker(),u=0,l=i;u<l.length;u++){var p=l[u],f=p.definition,m=p.references;f&&o.push({definition:_(f,s),references:m.map(d)})}return o}}function a(t,r,n,a,o){var s=e.getTouchingPropertyName(a,o,!1),c=i(t,r,n,s),u=t.getTypeChecker();return e.map(c,function(e){return p(e,u)})}function i(n,a,i,o){if(265!==o.kind){var c=n.getTypeChecker();if(262===o.parent.kind){var u=[];return t.Core.getReferenceEntriesForShorthandPropertyAssignment(o,c,function(e){return u.push(r(e))}),u}if(97===o.kind||e.isSuperProperty(o.parent)){var _=c.getSymbolAtLocation(o);return _.valueDeclaration&&[r(_.valueDeclaration)]}return s(o,n,i,a,{implementations:!0})}}function o(t,r,n,a,i,o){var s=u(c(t,r,n,a,i,o));return e.map(s,d)}function s(e,r,n,a,i){return void 0===i&&(i={}),u(t.Core.getReferencedSymbolsForNode(e,r,n,a,i))}function c(r,n,a,i,o,s){var c=e.getTouchingPropertyName(i,o,!0);return t.Core.getReferencedSymbolsForNode(c,r,a,n,s)}function u(t){return t&&e.flatMap(t,function(e){return e.references})}function _(t,r){var n=function(){switch(t.type){case"symbol":var n=t.symbol,a=t.node,i=l(n,a,r),o=i.displayParts,s=i.kind,c=o.map(function(e){return e.text}).join("");return{node:a,name:c,kind:s,displayParts:o};case"label":var u=t.node;return{node:u,name:u.text,kind:e.ScriptElementKind.label,displayParts:[e.displayPart(u.text,e.SymbolDisplayPartKind.text)]};case"keyword":var _=t.node,d=e.tokenToString(_.kind);return{node:_,name:d,kind:e.ScriptElementKind.keyword,displayParts:[{text:d,kind:e.ScriptElementKind.keyword}]};case"this":var p=t.node,n=r.getSymbolAtLocation(p),f=n&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(r,n,p.getSourceFile(),e.getContainerNode(p),p).displayParts;return{node:p,name:"this",kind:e.ScriptElementKind.variableElement,displayParts:f};case"string":var m=t.node;return{node:m,name:m.text,kind:e.ScriptElementKind.variableElement,displayParts:[e.displayPart(e.getTextOfNode(m),e.SymbolDisplayPartKind.stringLiteral)]}}}();if(n){var a=n.node,i=n.name,o=n.kind,s=n.displayParts,c=a.getSourceFile();return{containerKind:"",containerName:"",fileName:c.fileName,kind:o,name:i,textSpan:e.createTextSpanFromNode(a,c),displayParts:s}}}function l(t,r,n){var a=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(n,t,r.getSourceFile(),e.getContainerNode(r),r),i=a.displayParts,o=a.symbolKind;return{displayParts:i,kind:o}}function d(t){if("span"===t.type)return{textSpan:t.textSpan,fileName:t.fileName,isWriteAccess:!1,isDefinition:!1};var r=t.node,n=t.isInString;return{fileName:r.getSourceFile().fileName,textSpan:g(r),isWriteAccess:y(r),isDefinition:e.isAnyDeclarationName(r)||e.isLiteralComputedPropertyDeclarationName(r),isInString:n}}function p(t,r){if("node"===t.type){var n=t.node;return __assign({textSpan:g(n),fileName:n.getSourceFile().fileName},f(n,r))}var a=t.textSpan,i=t.fileName;return{textSpan:a,fileName:i,kind:e.ScriptElementKind.unknown,displayParts:[]}}function f(t,r){var n=r.getSymbolAtLocation(e.isDeclaration(t)&&t.name?t.name:t);return n?l(n,t,r):178===t.kind?{kind:e.ScriptElementKind.interfaceElement,displayParts:[e.punctuationPart(19),e.textPart("object literal"),e.punctuationPart(20)]}:199===t.kind?{kind:e.ScriptElementKind.localClassElement,displayParts:[e.punctuationPart(19),e.textPart("anonymous local class"),e.punctuationPart(20)]}:{kind:e.getNodeKind(t),displayParts:[]}}function m(t){if("span"===t.type){var r=t.fileName,n=t.textSpan;return{fileName:r,span:{textSpan:n,kind:e.HighlightSpanKind.reference}}}var a=t.node,i=t.isInString,o=t.node.getSourceFile().fileName,s=y(a),c={textSpan:g(a),kind:s?e.HighlightSpanKind.writtenReference:e.HighlightSpanKind.reference,isInString:i};return{fileName:o,span:c}}function g(t){var r=t.getStart(),n=t.getEnd();return 9===t.kind&&(r+=1,n-=1),e.createTextSpanFromBounds(r,n)}function y(t){if(e.isAnyDeclarationName(t))return!0;var r=t.parent;switch(r&&r.kind){case 193:case 192:return!0;case 194:return r.left===t&&e.isAssignmentOperator(r.operatorToken.kind);default:return!1}}t.nodeEntry=r,t.findReferencedSymbols=n,t.getImplementationsAtPosition=a,t.findReferencedEntries=o,t.getReferenceEntriesForNode=s,t.toHighlightSpan=m}(t=e.FindAllReferences||(e.FindAllReferences={}))}(ts||(ts={})),function(e){var t;!function(t){var r;!function(r){function n(e,t,r,n,c){if(void 0===c&&(c={}),265!==e.kind){if(!c.implementations){var u=o(e,r,n);if(u)return u}var _=t.getTypeChecker(),l=_.getSymbolAtLocation(e);if(l)return 1536&l.flags&&a(e)?i(t,l,r):s(l,e,r,_,n,c);if(!c.implementations&&9===e.kind)return j(e,r,n)}}function a(t){if(9!==t.kind)return!1;switch(t.parent.kind){case 233:case 248:case 238:case 244:return!0;case 181:return e.isRequireCall(t.parent,!1)||e.isImportCall(t.parent);default:return!1}}function i(r,n,a){e.Debug.assert(!!n.valueDeclaration);for(var i=t.findModuleReferences(r,a,n).map(function(t){return"import"===t.kind?{type:"node",node:t.literal}:{type:"span",fileName:t.referencingFile.fileName,textSpan:e.createTextSpanFromRange(t.ref)}}),o=0,s=n.declarations;o<s.length;o++){var c=s[o];switch(c.kind){case 265:break;case 233:i.push({type:"node",node:c.name});break;default:e.Debug.fail("Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}}return[{definition:{type:"symbol",symbol:n,node:n.valueDeclaration},references:i}]}function o(t,r,n){if(e.isTypeKeyword(t.kind))return h(r,t.kind,n);if(e.isLabelName(t)){if(e.isJumpStatementTarget(t)){var a=e.getTargetLabel(t.parent,t.text);return a&&y(a.parent,a)}return y(t.parent,t)}return e.isThis(t)?K(t,r,n):97===t.kind?z(t):void 0}function s(t,r,n,a,i,o){t=c(t,r,a);var s=G(e.getMeaningFromLocation(r),t.declarations),u=[],_=new re(n,123===r.kind,a,i,s,o,u),d=_.createSearch(r,t,void 0,{allSearchSymbols:V(t,r,a,o.implementations)}),p=m(t);if(p)x(p,p.getSourceFile(),d,_);else for(var f=0,g=_.sourceFiles;f<g.length;f++){var y=g[f];_.cancellationToken.throwIfCancellationRequested(),l(y,d,_)}return u}function c(t,r,n){var a=r.parent;return e.isExportSpecifier(a)?S(r,t,a,n):e.isImportSpecifier(a)&&a.propertyName===r?n.getImmediateAliasedSymbol(t):t}function u(e,t,r,n){var a=n.getImportSearches(t,r),i=a.importSearches,o=a.singleReferences,s=a.indirectUsers;if(o.length)for(var c=n.referenceAdder(t,e),u=0,_=o;u<_.length;u++){var d=_[u];c(d)}for(var p=0,f=i;p<f.length;p++){var m=f[p],g=m[0],y=m[1];k(g.getSourceFile(),n.createSearch(g,y,1),n)}if(s.length){var v=void 0;switch(r.exportKind){case 0:v=n.createSearch(e,t,1);break;case 1:v=n.options.isForRename?void 0:n.createSearch(e,t,1,{text:"default"});break;case 2:}if(v)for(var h=0,b=s;h<b.length;h++){var x=b[h];l(x,v,n)}}}function _(e,t){for(var r=0,n=e.declarations;r<n.length;r++){var a=n[r];k(a.getSourceFile(),t.createSearch(a,e,0),t)}}function l(t,r,n){void 0!==e.getNameTable(t).get(r.escapedText)&&k(t,r,n)}function d(t,r){return e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent.parent)&&r.getPropertySymbolOfDestructuringAssignment(t)}function p(t){var r=e.getDeclarationOfKind(t,176);return r&&174===r.parent.kind&&!r.propertyName}function f(t,r){if(p(t)){var n=e.getDeclarationOfKind(t,176),a=r.getTypeAtLocation(n.parent);return a&&r.getPropertyOfType(a,n.name.text)}}function m(t){var r=t.declarations,n=t.flags,a=t.parent,i=t.valueDeclaration;if(i&&(186===i.kind||199===i.kind))return i;if(r)if(8196&n){var o=e.find(r,function(t){return e.hasModifier(t,8)});if(o)return e.getAncestor(o,229)}else if(!p(t)&&(!a||1536&a.flags&&e.isExternalModuleSymbol(a)&&!a.globalExports)){for(var s,c=0,u=r;c<u.length;c++){var _=u[c],l=e.getContainerNode(_);if(s&&s!==l)return;if(!l||265===l.kind&&!e.isExternalOrCommonJsModule(l))return;s=l}return a?s.getSourceFile():s}}function g(t,r,n){void 0===n&&(n=t);var a=[];if(!r||!r.length)return a;for(var i=t.text,o=i.length,s=r.length,c=i.indexOf(r,n.pos);c>=0&&!(c>n.end);){var u=c+s;0!==c&&e.isIdentifierPart(i.charCodeAt(c-1),5)||u!==o&&e.isIdentifierPart(i.charCodeAt(u),5)||a.push(c),c=i.indexOf(r,c+s+1)}return a}function y(r,n){for(var a=[],i=r.getSourceFile(),o=n.text,s=g(i,o,r),c=0,u=s;c<u.length;c++){var _=u[c],l=e.getTouchingWord(i,_,!1);l&&(l===n||e.isJumpStatementTarget(l)&&e.getTargetLabel(l,o)===n)&&a.push(t.nodeEntry(l))}return[{definition:{type:"label",node:n},references:a}]}function v(t,r){switch(t&&t.kind){case 71:return e.unescapeIdentifier(t.text).length===r.length;case 9:return(e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t)||ee(t))&&t.text.length===r.length;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t)&&t.text.length===r.length;default:return!1}}function h(t,r,n){for(var a=[],i=0,o=t;i<o.length;i++){var s=o[i];n.throwIfCancellationRequested(),b(s,r,e.tokenToString(r),a)}return a.length?[{definition:{type:"keyword",node:a[0].node},references:a}]:void 0}function b(r,n,a,i){for(var o=g(r,a,r),s=0,c=o;s<c.length;s++){var u=c[s],_=e.getTouchingPropertyName(r,u,!0);_.kind===n&&i.push(t.nodeEntry(_))}}function k(e,t,r){return r.cancellationToken.throwIfCancellationRequested(),x(e,e,t,r)}function x(e,t,r,n){if(n.markSearchedSymbol(t,r.symbol))for(var a=0,i=g(t,r.text,e);a<i.length;a++){var o=i[a];C(t,o,r,n)}}function C(t,r,n,a){var i=e.getTouchingPropertyName(t,r,!0);if(!v(i,n.text))return void(!a.options.implementations&&(a.options.findInStrings&&e.isInString(t,r)||a.options.findInComments&&e.isInNonReferenceComment(t,r))&&a.addStringOrCommentReference(t.fileName,e.createTextSpan(r,n.text.length)));if(e.getMeaningFromLocation(i)&a.searchMeaning){var o=a.checker.getSymbolAtLocation(i);if(o){var s=i.parent;if(!e.isImportSpecifier(s)||s.propertyName!==i){if(e.isExportSpecifier(s))return e.Debug.assert(71===i.kind),void D(i,o,s,n,a);var c=q(n,o,i,a);if(!c)return void N(o,n,a);a.isForConstructor?w(i,t,n,a):A(i,c,n.location,a),E(i,o,n,a)}}}}function D(r,n,a,i,o){function s(){A(r,f,i.location,o)}var c=a.parent,l=a.propertyName,d=a.name,p=c.parent,f=S(r,n,a,o.checker);if(i.includes(f)){if(l?r===l?(p.moduleSpecifier||s(),!o.options.isForRename&&o.markSeenReExportRHS(d)&&A(d,n,d,o)):o.markSeenReExportRHS(r)&&s():s(),r!==l||!o.options.isForRename){var m=79===r.originalKeywordKind?1:0,g=t.getExportInfo(n,m,o.checker);e.Debug.assert(!!g),u(r,n,g,o)}1!==i.comingFrom&&p.moduleSpecifier&&!l&&_(o.checker.getExportSpecifierLocalTargetSymbol(a),o)}}function S(e,t,r,n){return T(e,r)?n.getExportSpecifierLocalTargetSymbol(r):t}function T(t,r){var n=r.parent,a=r.propertyName,i=r.name;return e.Debug.assert(a===t||i===t),a?a===t:!n.parent.moduleSpecifier}function E(e,r,n,a){var i=t.getImportOrExportSymbol(e,r,a.checker,1===n.comingFrom);if(i){var o=i.symbol;0===i.kind?a.options.isForRename&&!i.isNamedImport||_(o,a):u(e,o,i.exportInfo,a)}}function N(t,r,n){var a=t.flags,i=t.valueDeclaration,o=n.checker.getShorthandAssignmentValueSymbol(i);134217728&a||!r.includes(o)||A(e.getNameOfDeclaration(i),o,r.location,n)}function A(e,t,r,n){var a=n.referenceAdder(t,r);n.options.implementations?I(e,a,n):a(e)}function w(t,r,n,a){e.isNewExpressionTarget(t)&&A(t,n.symbol,n.location,a);var i=a.referenceAdder(n.symbol,n.location);if(e.isClassLike(t.parent))e.Debug.assert(t.parent.name===t),F(n.symbol,r,i);else{var o=$(t);o&&e.isClassLike(o)&&O(o,i)}}function P(t){return e.isRightSideOfPropertyAccess(t)&&t.parent}function F(t,r,n){for(var a=0,i=t.members.get("__constructor").declarations;a<i.length;a++){var o=i[a],s=e.findChildOfKind(o,123,r);e.Debug.assert(152===o.kind&&!!s),n(s)}t.exports.forEach(function(t){var r=t.valueDeclaration;if(r&&151===r.kind){var a=r.body;a&&Z(a,99,function(t){e.isNewExpressionTarget(t)&&n(t)})}})}function O(t,r){var n=t.symbol,a=n.members.get("__constructor");if(a)for(var i=0,o=a.declarations;i<o.length;i++){var s=o[i];e.Debug.assert(152===s.kind);var c=s.body;c&&Z(c,97,function(t){e.isCallExpressionTarget(t)&&r(t)})}}function I(t,r,n){if(e.isDeclarationName(t)&&X(t.parent))return void r(t.parent);if(71===t.kind){262===t.parent.kind&&Y(t,n.checker,r);var a=L(t);if(a)return void r(a);var i=M(t);if(i&&n.markSeenContainingTypeReference(i)){var o=i.parent;e.isVariableLike(o)&&o.type===i&&o.initializer&&B(o.initializer)?r(o.initializer):e.isFunctionLike(o)&&o.type===i&&o.body?207===o.body.kind?e.forEachReturnStatement(o.body,function(e){e.expression&&B(e.expression)&&r(e.expression)}):B(o.body)&&r(o.body):e.isAssertionExpression(o)&&B(o.expression)&&r(o.expression)}}}function R(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()&&R(a,t)}return t}function M(t){for(var r=void 0;t;)e.isTypeNode(t)&&(r=t),t=t.parent;return r}function L(t){if(t&&t.parent){if(201===t.kind&&259===t.parent.kind&&e.isClassLike(t.parent.parent))return t.parent.parent;if(71===t.kind||179===t.kind)return L(t.parent)}}function B(e){switch(e.kind){case 185:return B(e.expression);case 187:case 186:case 178:case 199:case 177:return!0;default:return!1}}function J(t,r,n,a){function i(t){if(t===r)return!0;var a=e.getSymbolId(t)+","+e.getSymbolId(r),i=n.get(a);if(void 0!==i)return i;n.set(a,!1);var c=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!(230!==t.kind||!s)&&e.forEach(e.getInterfaceBaseTypeNodes(t),o)});return n.set(a,c),c}function o(e){if(e){var t=a.getTypeAtLocation(e);if(t&&t.symbol)return i(t.symbol)}return!1}var s=64&r.getFlags();return i(t)}function z(r){var n=e.getSuperContainer(r,!1);if(n){var a=32;switch(n.kind){case 149:case 148:case 151:case 150:case 152:case 153:case 154:a&=e.getModifierFlags(n),n=n.parent;break;default:return}for(var i=[],o=n.getSourceFile(),s=g(o,"super",n),c=0,u=s;c<u.length;c++){var _=u[c],l=e.getTouchingWord(o,_,!1);if(l&&97===l.kind){var d=e.getSuperContainer(l,!1);d&&(32&e.getModifierFlags(d))===a&&d.parent.symbol===n.symbol&&i.push(t.nodeEntry(l))}}return[{definition:{type:"symbol",symbol:n.symbol,node:r},references:i}]}}function K(r,n,a){function i(r,n,a,i){e.forEach(a,function(a){var o=e.getTouchingWord(r,a,!1);if(o&&e.isThis(o)){var c=e.getThisContainer(o,!1);switch(n.kind){case 186:case 228:n.symbol===c.symbol&&i.push(t.nodeEntry(o));break;case 151:case 150:e.isObjectLiteralMethod(n)&&n.symbol===c.symbol&&i.push(t.nodeEntry(o));break;case 199:case 229:c.parent&&n.symbol===c.parent.symbol&&(32&e.getModifierFlags(c))===s&&i.push(t.nodeEntry(o));break;case 265:265!==c.kind||e.isExternalModule(c)||i.push(t.nodeEntry(o))}}})}var o=e.getThisContainer(r,!1),s=32;switch(o.kind){case 151:case 150:if(e.isObjectLiteralMethod(o))break;case 149:case 148:case 152:case 153:case 154:s&=e.getModifierFlags(o),o=o.parent;break;case 265:if(e.isExternalModule(o))return;case 228:case 186:break;default:return}var c,u=[];if(265===o.kind)e.forEach(n,function(e){a.throwIfCancellationRequested(),c=g(e,"this"),i(e,e,c,u)});else{var _=o.getSourceFile();c=g(_,"this",o),i(_,o,c,u)}return[{definition:{type:"this",node:r},references:u}]}function j(r,n,a){function i(r,n,a,i){for(var o=0,s=a;o<s.length;o++){var c=s[o],u=e.getTouchingWord(r,c,!1);u&&9===u.kind&&u.text===n&&i.push(t.nodeEntry(u,!0))}}for(var o=[],s=0,c=n;s<c.length;s++){var u=c[s];a.throwIfCancellationRequested();var _=g(u,r.text);i(u,r.text,_,o)}return[{definition:{type:"string",node:r},references:o}]}function V(t,r,n,a){var i=[t],o=e.getContainingObjectLiteralElement(r);if(o){if(262!==o.kind){var s=d(r,n);s&&i.push(s)}e.forEach(H(o,n),function(t){e.addRange(i,n.getRootSymbols(t))});var c=n.getShorthandAssignmentValueSymbol(r.parent);c&&i.push(c)}t.valueDeclaration&&146===t.valueDeclaration.kind&&e.isParameterPropertyDeclaration(t.valueDeclaration)&&e.addRange(i,n.getSymbolsOfParameterPropertyDeclaration(t.valueDeclaration,t.name));var u=f(t,n);u&&i.push(u);for(var _=0,l=n.getRootSymbols(t);_<l.length;_++){var p=l[_];p!==t&&i.push(p),!a&&p.parent&&96&p.parent.flags&&U(p.parent,p.getName(),i,e.createMap(),n)}return i}function U(t,r,n,a,i){function o(e){if(e){var o=i.getTypeAtLocation(e);if(o){var s=i.getPropertyOfType(o,r);s&&n.push.apply(n,i.getRootSymbols(s)),a.set(t.name,t),U(o.symbol,r,n,a,i)}}}t&&(a.has(t.name)||96&t.flags&&e.forEach(t.getDeclarations(),function(t){e.isClassLike(t)?(o(e.getClassExtendsHeritageClauseElement(t)),e.forEach(e.getClassImplementsHeritageClauseElements(t),o)):230===t.kind&&e.forEach(e.getInterfaceBaseTypeNodes(t),o)}))}function q(t,r,n,a){if(t.includes(r))return r;var i=e.getContainingObjectLiteralElement(n);if(i){var o=e.forEach(H(i,a.checker),function(r){return e.find(a.checker.getRootSymbols(r),t.includes)});if(o)return o;var s=d(n,a.checker);if(s&&t.includes(s))return s}var c=f(r,a.checker);return c&&t.includes(c)?c:e.forEach(a.checker.getRootSymbols(r),function(r){if(t.includes(r))return r;if(r.parent&&96&r.parent.flags){if(t.parents&&!e.some(t.parents,function(e){return J(r.parent,e,a.inheritsFromCache,a.checker)}))return;var n=[];return U(r.parent,r.getName(),n,e.createMap(),a.checker),e.find(n,t.includes)}})}function W(t){if(144!==t.name.kind)return t.name.text;var r=t.name.expression;return e.isStringOrNumericLiteral(r)?r.text:void 0}function H(t,r){var n=t.parent,a=r.getContextualType(n),i=W(t);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 G(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}function X(t){if(!t)return!1;if(e.isVariableLike(t)){if(t.initializer)return!0;if(226===t.kind){var r=Q(t);return r&&e.hasModifier(r,2)}}else{if(e.isFunctionLike(t))return!!t.body||e.hasModifier(t,2);switch(t.kind){case 229:case 199:case 232:case 233:return!0}}return!1}function Q(t){if(t.parent&&t.parent.parent&&208===t.parent.parent.kind)return e.Debug.assert(227===t.parent.kind),t.parent.parent}function Y(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 c=s[o];1&e.getMeaningFromDeclaration(c)&&n(c)}}function Z(t,r,n){e.forEachChild(t,function(e){e.kind===r&&n(e),Z(e,r,n)})}function $(t){return e.tryGetClassExtendingExpressionWithTypeArguments(e.climbPastPropertyAccess(t).parent)}function ee(t){return 9===t.kind&&(e.isNameOfModuleDeclaration(t)||e.isExpressionOfExternalModuleImportEqualsDeclaration(t))}function te(e,t,r){var n=P(e);if(n){var a=r.getTypeAtLocation(n.expression);if(a)return a.symbol&&96&a.symbol.flags&&a.symbol!==t.parent?[a.symbol]:196608&a.flags?R(a):void 0}}r.getReferencedSymbolsForNode=n;var re=function(){function r(t,r,n,a,i,o,s){this.sourceFiles=t,this.isForConstructor=r,this.checker=n,this.cancellationToken=a,this.searchMeaning=i,this.options=o,this.result=s,this.inheritsFromCache=e.createMap(),this.markSeenContainingTypeReference=e.nodeSeenTracker(),this.markSeenReExportRHS=e.nodeSeenTracker(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}return r.prototype.getImportSearches=function(e,r){return this.importTracker||(this.importTracker=t.createImportTracker(this.sourceFiles,this.checker,this.cancellationToken)),this.importTracker(e,r,this.options.isForRename)},r.prototype.createSearch=function(t,r,n,a){void 0===a&&(a={});var i=a.text,o=void 0===i?e.stripQuotes(e.getDeclaredName(this.checker,r,t)):i,s=a.allSearchSymbols,c=void 0===s?void 0:s,u=e.escapeIdentifier(o),_=this.options.implementations&&te(t,r,this.checker);return{location:t,symbol:r,comingFrom:n,text:o,escapedText:u,parents:_,includes:function(t){return c?e.contains(c,t):t===r}}},r.prototype.referenceAdder=function(r,n){var a=e.getSymbolId(r),i=this.symbolIdToReferences[a];return i||(i=this.symbolIdToReferences[a]=[],this.result.push({definition:{type:"symbol",symbol:r,node:n},references:i})),function(e){return i.push(t.nodeEntry(e))}},r.prototype.addStringOrCommentReference=function(e,t){this.result.push({definition:void 0,references:[{type:"span",fileName:e,textSpan:t}]})},r.prototype.markSearchedSymbol=function(t,r){var n=e.getNodeId(t),a=e.getSymbolId(r),i=this.sourceFileToSeenSymbols[n]||(this.sourceFileToSeenSymbols[n]=[]);return!i[a]&&(i[a]=!0)},r}();r.getReferenceEntriesForShorthandPropertyAssignment=Y}(r=t.Core||(t.Core={}))}(t=e.FindAllReferences||(e.FindAllReferences={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r,n){var o=l(r.referencedFiles,n);if(o){var u=e.tryResolveScriptReference(t,r,o);if(u)return[d(o.fileName,u.fileName)]}var p=l(r.typeReferenceDirectives,n);if(p){var u=t.getResolvedTypeReferenceDirectives().get(p.fileName);return u&&u.resolvedFileName&&[d(p.fileName,u.resolvedFileName)]}var f=e.getTouchingPropertyName(r,n,!0);if(f!==r){if(e.isJumpStatementTarget(f)){var g=f.text,y=e.getTargetLabel(f.parent,f.text);return y?[c(y,e.ScriptElementKind.label,g,void 0)]:void 0}var v=t.getTypeChecker(),h=m(v,f);if(h)return[_(v,h)];var b=v.getSymbolAtLocation(f);if(b){if(8388608&b.flags&&a(f,b.declarations[0])){var k=v.getAliasedSymbol(b);k.declarations&&(b=k)}if(262===f.parent.kind){var x=v.getShorthandAssignmentValueSymbol(b.valueDeclaration);if(!x)return[];var C=x.getDeclarations(),D=e.SymbolDisplay.getSymbolKind(v,x,f),S=v.symbolToString(x),T=v.symbolToString(b.parent,f);return e.map(C,function(e){return s(e,D,S,T)})}var E=e.getContainingObjectLiteralElement(f);return E&&v.getContextualType(E.parent)?e.flatMap(e.getPropertySymbolsFromContextualType(v,E),function(e){return i(v,e,f)}):i(v,b,f)}}}function n(t,r,n){var a=e.getTouchingPropertyName(r,n,!0);if(a!==r){var o=t.getSymbolAtLocation(a);if(o){var s=t.getTypeOfSymbolAtLocation(o,a);if(s){if(65536&s.flags&&!(16&s.flags)){var c=[];return e.forEach(s.types,function(r){r.symbol&&e.addRange(c,i(t,r.symbol,a))}),c}if(s.symbol)return i(t,s.symbol,a)}}}}function a(e,t){if(71!==e.kind)return!1;if(e.parent===t)return!0;switch(t.kind){case 239:case 237:return!0;case 242:return 241===t.parent.kind;default:return!1}}function i(t,r,n){function a(t,r,n,a,i,o){if((e.isNewExpressionTarget(r)||123===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 i(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,i,c){if(!t)return!1;for(var u,_=[],l=0,d=t;l<d.length;l++){var p=d[l];(r?152===p.kind:o(p))&&(_.push(p),p.body&&(u=p))}return!!_.length&&(c.push(s(u||e.lastOrUndefined(_),n,a,i)),!0)}var _=[],l=r.getDeclarations(),d=u(t,r,n),p=d.symbolName,f=d.symbolKind,m=d.containerName;return a(r,n,f,p,m,_)||i(r,n,f,p,m,_)||e.forEach(l,function(e){_.push(s(e,f,p,m))}),_}function o(e){switch(e.kind){case 152:case 228:case 151:case 150:return!0;default:return!1}}function s(t,r,n,a){return c(e.getNameOfDeclaration(t)||t,r,n,a)}function c(t,r,n,a){var i=t.getSourceFile();return{fileName:i.fileName,textSpan:e.createTextSpanFromNode(t,i),kind:r,name:n,containerKind:void 0,containerName:a}}function u(t,r,n){return{symbolName:t.symbolToString(r),symbolKind:e.SymbolDisplay.getSymbolKind(t,r,n),containerName:r.parent?t.symbolToString(r.parent,n):""}}function _(e,t){var r=u(e,t.symbol,t),n=r.symbolName,a=r.symbolKind,i=r.containerName;return s(t,a,n,i)}function l(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 d(t,r){return{fileName:r,textSpan:e.createTextSpanFromBounds(0,0),kind:e.ScriptElementKind.scriptElement,name:t,containerName:void 0,containerKind:void 0}}function p(t){var r=f(t),n=r.parent;return n&&e.isCallLikeExpression(n)&&e.getInvokedExpression(n)===r&&n}function f(t){return e.isRightSideOfPropertyAccess(t)?f(t.parent):t}function m(e,t){var r=p(t),n=r&&e.getResolvedSignature(r);
if(n){var a=n.declaration;if(a&&o(a))return a}}t.getDefinitionAtPosition=r,t.getTypeDefinitionAtPosition=n}(t=e.GoToDefinition||(e.GoToDefinition={}))}(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 284===e.kind}).map(function(e){return{name:e.tagName.text,text:e.comment}}))}}),r}function a(t,r){if(t)for(var n=0;n<t.length;n++)if(e.indexOf(t,t[n])===n){var a=r(t[n],n);if(a)return a}}function i(){return l||(l=e.map(p,function(t){return{name:t,kind:e.ScriptElementKind.keyword,kindModifiers:"",sortText:"0"}}))}function o(){return d||(d=e.map(p,function(t){return{name:"@"+t,kind:e.ScriptElementKind.keyword,kindModifiers:"",sortText:"0"}}))}function s(t){var r=t.name.text,n=t.parent,a=n.parent;return e.isFunctionLike(a)?e.mapDefined(a.parameters,function(a){if(e.isIdentifier(a.name)){var i=a.name.text;if(!n.tags.some(function(r){return r!==t&&e.isJSDocParameterTag(r)&&r.name.text===i})&&(void 0===r||e.startsWith(i,r)))return{name:i,kind:e.ScriptElementKind.parameterElement,kindModifiers:"",sortText:"0"}}}):[]}function c(t,r,n){if(!(e.isInString(r,n)||e.isInComment(r,n)||e.hasDocComment(r,n))){var a=e.getTokenAtPosition(r,n,!1),i=a.getStart();if(a&&!(i<n)){var o;e:for(o=a;o;o=o.parent)switch(o.kind){case 228:case 151:case 152:case 229:case 208:break e;case 265:return;case 233:if(233===o.parent.kind)return;break e}if(o&&!(o.getStart()<n)){for(var s=u(o),c=r.getLineAndCharacterOfPosition(n),_=r.getLineStarts()[c.line],l=r.text.substr(_,c.character).replace(/\S/i,function(){return" "}),d=e.hasJavaScriptFileExtension(r.fileName),p="",f=0;f<s.length;f++){var m=s[f].name,g=71===m.kind?m.text:"param"+f;p+=d?l+" * @param {any} "+g+t:l+" * @param "+g+t}var y="/**"+t+l+" * ",v=y+t+p+l+" */"+(i===n?t+l:"");return{newText:v,caretOffset:y.length}}}}}function u(t){if(e.isFunctionLike(t))return t.parameters;if(208===t.kind){var r=t,n=r.declarationList.declarations;if(1===n.length&&n[0].initializer)return _(n[0].initializer)}return e.emptyArray}function _(t){for(;185===t.kind;)t=t.expression;switch(t.kind){case 186:case 187:return t.parameters;case 199:for(var r=0,n=t.members;r<n.length;r++){var a=n[r];if(152===a.kind)return a.parameters}}return e.emptyArray}var l,d,p=["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","prop","property","public","requires","returns","see","since","static","throws","type","typedef","version"];t.getJsDocCommentsFromDeclarations=r,t.getJsDocTagsFromDeclarations=n,t.getJSDocTagNameCompletions=i,t.getJSDocTagCompletions=o,t.getJSDocParameterNameCompletions=s,t.getDocCommentTemplateAtPosition=c}(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];m.has(n)||m.set(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.mapDefined(o,function(e){return n.get(e)}));var s=e.forEach(t,function(t){return 2===e.ensureScriptKind(t,e.getScriptKindFromFileName(t))});s&&l(["react"])}function f(r){if(y.push(r),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),u=e.getBaseFileName(c);if("package.json"===u||"bower.json"===u){var _=e.readConfigFile(c,function(e){return t.readFile(e)});if(_.config){var d=_.config;if(("package.json"!==u||!d._requiredBy||0!==e.filter(d._requiredBy,function(e){return"#"===e[0]||"/"===e}).length)&&d.name)if(d.typings){var p=e.getNormalizedAbsolutePath(d.typings,e.getDirectoryPath(c));m.set(d.name,p)}else n.push(d.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.createMapFromTemplate(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 C=x[k],D=e.combinePaths(C,"package.json");d(D,y);var S=e.combinePaths(C,"bower.json");d(S,y);var T=e.combinePaths(C,"bower_components");f(T);var E=e.combinePaths(C,"node_modules");f(E)}if(p(r),_)for(var N=0,A=_;N<A.length;N++){var w=A[N],P=i.has(w)?"node":w;m.has(P)||m.set(P,void 0)}c.forEach(function(e,t){m.has(t)&&void 0===m.get(t)&&m.set(t,e)});for(var F=0,O=h;F<O.length;F++){var I=O[F];m["delete"](I)}var R=[],M=[];return m.forEach(function(e,t){void 0!==e?M.push(e):R.push(t)}),{cachedTypingPaths:M,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&&(71===e.kind||9===e.kind||8===e.kind))return e.text}function u(t,r){if(t){var n=e.getNameOfDeclaration(t);if(n){var a=c(n);if(void 0===a)return 144===n.kind&&_(n.expression,r,!0);r.unshift(a)}}return!0}function _(e,t,r){var n=c(e);if(void 0!==n)return r&&t.unshift(n),!0;if(179===e.kind){var a=e;return r&&t.unshift(a.name.text),_(a.expression,t,!0)}return!1}function l(t){var r=[],n=e.getNameOfDeclaration(t);if(144!==n.kind||_(n.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),a=n&&e.getNameOfDeclaration(n);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.createTextSpanFromNode(r),containerName:a?a.text:"",containerKind:a?e.getNodeKind(n):""}}for(var m=e.createPatternMatcher(a),g=[],y=function(t){return n.throwIfCancellationRequested(),o&&e.fileExtensionIs(t.fileName,".d.ts")?"continue":void e.forEachEntry(t.getNamedDeclarations(),function(e,r){if(e){var n=m.getMatchesForLastSegmentOfPattern(r);if(!n)return;for(var a=0,i=e;a<i.length;a++){var o=i[a];if(m.patternContainsDots){var c=l(o);if(!c)return!0;if(n=m.getMatches(c,r),!n)return}var u=t.fileName,_=d(n);g.push({name:r,fileName:u,matchKind:_,isCaseSensitive:s(n),declaration:o})}}})},v=0,h=t;v<h.length;v++){var b=h[v];y(b)}g=e.filter(g,function(e){var t=e.declaration;if(239===t.kind||242===t.kind||237===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 k=e.map(g,f);return k}t.getNavigateToItems=r}(t=e.NavigateTo||(e.NavigateTo={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r){F=r,O=t;try{return e.map(k(c(t)),C)}finally{a()}}function n(e,t){F=t,O=e;try{return x(c(e))}finally{a()}}function a(){O=void 0,F=void 0,M=[],I=void 0,L=[]}function i(e){return e.getText(O)}function o(e){return e.node.kind}function s(e,t){e.children?e.children.push(t):e.children=[t]}function c(t){e.Debug.assert(!M.length);var r={node:t,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};I=r;for(var n=0,a=t.statements;n<a.length;n++){var i=a[n];f(i)}return d(),e.Debug.assert(!I&&!M.length),r}function u(e){s(I,_(e))}function _(e){return{node:e,additionalNodes:void 0,parent:I,children:void 0,indent:I.indent+1}}function l(e){var t=_(e);s(I,t),M.push(I),I=t}function d(){I.children&&(m(I.children),g(I.children)),I=M.pop()}function p(e,t){l(e),f(t),d()}function f(t){if(F.throwIfCancellationRequested(),t&&!e.isToken(t))switch(t.kind){case 152:var r=t;p(r,r.body);for(var n=0,a=r.parameters;n<a.length;n++){var i=a[n];e.isParameterPropertyDeclaration(i)&&u(i)}break;case 151:case 153:case 154:case 150:e.hasDynamicName(t)||p(t,t.body);break;case 149:case 148:e.hasDynamicName(t)||u(t);break;case 239:var o=t;o.name&&u(o);var s=o.namedBindings;if(s)if(240===s.kind)u(s);else for(var c=0,_=s.elements;c<_.length;c++){var m=_[c];u(m)}break;case 176:case 226:var g=t,y=g.name;e.isBindingPattern(y)?f(y):g.initializer&&P(g.initializer)?f(g.initializer):p(g,g.initializer);break;case 187:case 228:case 186:p(t,t.body);break;case 232:l(t);for(var v=0,h=t.members;v<h.length;v++){var b=h[v];E(b)||u(b)}d();break;case 229:case 199:case 230:l(t);for(var k=0,x=t.members;k<x.length;k++){var b=x[k];f(b)}d();break;case 233:p(t,T(t).body);break;case 246:case 237:case 157:case 155:case 156:case 231:u(t);break;default:e.forEach(t.jsDoc,function(t){e.forEach(t.tags,function(e){291===e.kind&&u(e)})}),e.forEachChild(t,f)}}function m(t){function r(e,t){function r(e,t){return e.body.kind===t.body.kind&&(233!==e.body.kind||r(e.body,t.body))}return e.kind===t.kind&&(233!==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&&(m(t.children),g(t.children));var n}var a=e.createMap();e.filterMutate(t,function(t){function o(e,t){return!!r(e.node,t.node)&&(n(e,t),!0)}var s=e.getNameOfDeclaration(t.node),c=s&&i(s);if(!c)return!0;var u=a.get(c);if(!u)return a.set(c,t),!0;if(u instanceof Array){for(var _=0,l=u;_<l.length;_++){var d=l[_];if(o(d,t))return!1}return u.push(t),!0}var d=u;return!o(d,t)&&(a.set(c,[d,t]),!0)})}function g(e){e.sort(y)}function y(t,r){var n=v(t.node),a=v(r.node);if(n&&a){var i=e.compareStringsCaseInsensitive(n,a);return 0!==i?i:o(t)-o(r)}return n?1:a?-1:o(t)-o(r)}function v(t){if(233===t.kind)return S(t);var r=e.getNameOfDeclaration(t);if(r)return e.getPropertyNameForPropertyNameNode(r);switch(t.kind){case 186:case 187:case 199:return w(t);case 291:return b(t);default:return}}function h(t){if(233===t.kind)return S(t);var r=e.getNameOfDeclaration(t);if(r){var n=i(r);if(n.length>0)return n}switch(t.kind){case 265:var a=t;return e.isExternalModule(a)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(a.fileName))))+'"':"<global>";case 187:case 228:case 186:case 229:case 199:return 512&e.getModifierFlags(t)?"default":w(t);case 152:return"constructor";case 156:return"new()";case 155:return"()";case 157:return"[]";case 291:return b(t);default:return"<unknown>"}}function b(e){if(e.name)return e.name.text;var t=e.parent&&e.parent.parent;if(t&&208===t.kind&&t.declarationList.declarations.length>0){var r=t.declarationList.declarations[0].name;if(71===r.kind)return r.text}return"<typedef>"}function k(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(o(e.parent)){case 234:case 265:case 151:case 152:return!0;default:return n(e)}}function n(t){return e.forEach(t.children,function(e){var t=o(e);return 226!==t&&176!==t})}switch(o(t)){case 229:case 199:case 232:case 230:case 233:case 265:case 231:case 291:return!0;case 152:case 151:case 153:case 154:case 226:return n(t);case 187:case 228:case 186:return r(t);default:return!1}}var a=[];return r(t),a}function x(t){return{text:h(t.node),kind:e.getNodeKind(t.node),kindModifiers:A(t.node),spans:D(t),childItems:e.map(t.children,x)}}function C(t){function r(t){return{text:h(t.node),kind:e.getNodeKind(t.node),kindModifiers:e.getNodeModifiers(t.node),spans:D(t),childItems:L,indent:0,bolded:!1,grayed:!1}}return{text:h(t.node),kind:e.getNodeKind(t.node),kindModifiers:A(t.node),spans:D(t),childItems:e.map(t.children,r)||L,indent:t.indent,bolded:!1,grayed:!1}}function D(e){var t=[N(e.node)];if(e.additionalNodes)for(var r=0,n=e.additionalNodes;r<n.length;r++){var a=n[r];t.push(N(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&&233===t.body.kind;)t=t.body,r.push(t.name.text);return r.join(".")}function T(e){return 233===e.body.kind?T(e.body):e}function E(e){return!e.name||144===e.name.kind}function N(t){return 265===t.kind?e.createTextSpanFromBounds(t.getFullStart(),t.getEnd()):e.createTextSpanFromNode(t,O)}function A(t){return t.parent&&226===t.parent.kind&&(t=t.parent),e.getNodeModifiers(t)}function w(t){return t.name&&e.getFullWidth(t.name)>0?e.declarationNameToString(t.name):226===t.parent.kind?e.declarationNameToString(t.parent.name):194===t.parent.kind&&58===t.parent.operatorToken.kind?i(t.parent.left).replace(R,""):261===t.parent.kind&&t.parent.name?i(t.parent.name):512&e.getModifierFlags(t)?"default":e.isClassLike(t)?"<class>":"<function>"}function P(e){return 186===e.kind||187===e.kind||199===e.kind}var F,O,I,R=/\s+/g,M=[],L=[];t.getNavigationBarItems=r,t.getNavigationTree=n}(t=e.NavigationBar||(e.NavigationBar={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r){function n(r,n,a,i){if(r&&n&&a){var o={textSpan:e.createTextSpanFromBounds(n.pos,a.end),hintSpan:e.createTextSpanFromNode(r,t),bannerText:_,autoCollapse:i};u.push(o)}}function a(t,r){if(t){var n={textSpan:e.createTextSpanFromBounds(t.pos,t.end),hintSpan:e.createTextSpanFromBounds(t.pos,t.end),bannerText:_,autoCollapse:r};u.push(n)}}function i(n){var i=e.getLeadingCommentRangesOfNode(n,t);if(i){for(var s=-1,c=-1,u=!0,_=0,l=0,d=i;l<d.length;l++){var p=d[l];r.throwIfCancellationRequested(),2===p.kind?(u&&(s=p.pos),u=!1,c=p.end,_++):3===p.kind&&(o(_,s,c),a(p,!1),_=0,c=-1,u=!0)}o(_,s,c)}}function o(e,t,r){if(e>1){var n={kind:2,pos:t,end:r};a(n,!1)}}function s(t){return e.isFunctionBlock(t)&&187!==t.parent.kind}function c(a){if(r.throwIfCancellationRequested(),!(l>d)){switch(e.isDeclaration(a)&&i(a),a.kind){case 207:if(!e.isFunctionBlock(a)){var o=a.parent,p=e.findChildOfKind(a,17,t),f=e.findChildOfKind(a,18,t);if(212===o.kind||215===o.kind||216===o.kind||214===o.kind||211===o.kind||213===o.kind||220===o.kind||260===o.kind){n(o,p,f,s(a));break}if(224===o.kind){var m=o;if(m.tryBlock===a){n(o,p,f,s(a));break}if(m.finallyBlock===a){var g=e.findChildOfKind(m,87,t);if(g){n(g,p,f,s(a));break}}}var y=e.createTextSpanFromNode(a);u.push({textSpan:y,hintSpan:y,bannerText:_,autoCollapse:s(a)});break}case 234:var p=e.findChildOfKind(a,17,t),f=e.findChildOfKind(a,18,t);n(a.parent,p,f,s(a));break;case 229:case 230:case 232:case 178:case 235:var p=e.findChildOfKind(a,17,t),f=e.findChildOfKind(a,18,t);n(a,p,f,s(a));break;case 177:var v=e.findChildOfKind(a,21,t),h=e.findChildOfKind(a,22,t);n(a,v,h,s(a))}l++,e.forEachChild(a,c),l--}}var u=[],_="...",l=0,d=20;return c(t),u}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){var t=v.get(e);return t||v.set(e,t=m(e)),t}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=e.length-t.length,n=0;n<=r;n++)if(c(e,t,n))return n;return-1}function c(e,t,r){for(var n=0;n<t.length;n++){var a=u(e.charCodeAt(n+r)),i=t.charCodeAt(n);if(a!==i)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;i<t.length;i++){var o=_(t.charCodeAt(i-1)),s=_(t.charCodeAt(i)),c=b(t,r,i),u=h(t,r,i,a);(y(t.charCodeAt(i-1))||y(t.charCodeAt(i))||o!==s||c||u)&&(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 17===t?k++:18===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 124===t&&(t=a(),128===t&&(t=a(),9===t&&s()),!0)}function l(){var t=e.scanner.getToken();if(91===t){if(t=a(),19===t){if(t=a(),9===t)return c(),!0}else{if(9===t)return c(),!0;if(71===t||e.isKeyword(t))if(t=a(),140===t){if(t=a(),9===t)return c(),!0}else if(58===t){if(p(!0))return!0}else{if(26!==t)return!0;t=a()}if(17===t){for(t=a();18!==t&&1!==t;)t=a();18===t&&(t=a(),140===t&&(t=a(),9===t&&c()))}else 39===t&&(t=a(),118===t&&(t=a(),(71===t||e.isKeyword(t))&&(t=a(),140===t&&(t=a(),9===t&&c()))))}return!0}return!1}function d(){var t=e.scanner.getToken();if(84===t){if(u(),t=a(),17===t){for(t=a();18!==t&&1!==t;)t=a();18===t&&(t=a(),140===t&&(t=a(),9===t&&c()))}else if(39===t)t=a(),140===t&&(t=a(),9===t&&c());else if(91===t&&(t=a(),(71===t||e.isKeyword(t))&&(t=a(),58===t&&p(!0))))return!0;return!0}return!1}function p(t){var r=t?a():e.scanner.getToken();return 132===r&&(r=a(),19===r&&(r=a(),9===r&&c()),!0)}function f(){var t=e.scanner.getToken();if(71===t&&"define"===e.scanner.getTokenValue()){if(t=a(),19!==t)return!0;if(t=a(),9===t){if(t=a(),26!==t)return!0;t=a()}if(21!==t)return!0;t=a();for(var r=0;22!==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 C=0,D=g;C<D.length;C++){var S=D[C];h.push(S.ref)}return{referencedFiles:y,typeReferenceDirectives:v,importedFiles:h,isLibFile:b,ambientExternalModules:void 0}}var T=void 0;if(g)for(var E=0,N=g;E<N.length;E++){var S=N[E];0===S.depth?(T||(T=[]),T.push(S.ref.fileName)):h.push(S.ref)}return{referencedFiles:y,typeReferenceDirectives:v,importedFiles:h,isLibFile:b,ambientExternalModules:T}}e.preProcessFile=t}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r,a,o,c){function u(t){if(!r)return!1;var n=t.getSourceFile(),i=a(e.normalizePath(n.fileName));return i===_()}var _=e.memoize(function(){return a(e.normalizePath(r))}),l=e.getTouchingWord(o,c,!0),d=l&&s(l)?n(l,t,o,u):void 0;return d||i(e.Diagnostics.You_cannot_rename_this_element)}function n(t,r,n,o){var s=r.getSymbolAtLocation(t);if(s){var c=s.getDeclarations();if(c&&c.length>0){if(e.some(c,o))return i(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(71===t.kind&&79===t.originalKeywordKind&&1536&s.parent.flags)return;var u=e.stripQuotes(e.getDeclaredName(r,s,t)),_=e.SymbolDisplay.getSymbolKind(r,s,t);return _?a(u,r.getFullyQualifiedName(s),_,e.SymbolDisplay.getSymbolModifiers(s),t,n):void 0}}else if(9===t.kind){if(o(t))return i(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);var u=e.stripQuotes(t.text);return a(u,u,e.ScriptElementKind.variableElement,e.ScriptElementKindModifier.none,t,n)}}function a(e,t,r,n,a,i){return{canRename:!0,kind:r,displayName:e,localizedErrorMessage:void 0,fullDisplayName:t,kindModifiers:n,triggerSpan:o(a,i)}}function i(t){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(t),displayName:void 0,fullDisplayName:void 0,kind:void 0,kindModifiers:void 0,triggerSpan:void 0}}function o(t,r){var n=t.getStart(r),a=t.getWidth(r);return 9===t.kind&&(n+=1,a-=2),e.createTextSpan(n,a)}function s(t){return 71===t.kind||9===t.kind||e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t)||e.isThis(t)}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(181===e.invocation.kind){var r=e.invocation,n=r.expression,a=71===n.kind?n:179===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.get(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(e.isCallOrNewExpression(t.parent)){var a=t.parent;if(27===t.kind||19===t.kind){var _=d(a,t,n),l=a.typeArguments&&a.typeArguments.pos===_.pos;return e.Debug.assert(void 0!==_),{kind:l?0:1,invocation:a,argumentsSpan:u(_,n),argumentIndex:0,argumentCount:o(_)}}var p=e.findListItemInfo(t);if(p){var _=p.list,l=a.typeArguments&&a.typeArguments.pos===_.pos,f=i(_,t),m=o(_);return e.Debug.assert(0===f||f<m,"argumentCount < argumentIndex, "+m+" < "+f),{kind:l?0:1,invocation:a,argumentsSpan:u(_,n),argumentIndex:f,argumentCount:m}}}else if(13===t.kind&&183===t.parent.kind){if(e.isInsideTemplateLiteral(t,r))return c(t.parent,0,n)}else{if(14===t.kind&&183===t.parent.parent.kind){var g=t.parent,y=g.parent;e.Debug.assert(196===g.kind);var f=e.isInsideTemplateLiteral(t,r)?0:1;return c(y,f,n)}if(205===t.parent.kind&&183===t.parent.parent.parent.kind){var v=t.parent,g=v.parent,y=g.parent;if(e.Debug.assert(196===g.kind),16===t.kind&&!e.isInsideTemplateLiteral(t,r))return;var h=g.templateSpans.indexOf(v),f=s(h,t,r);return c(y,f,n)}if(t.parent&&e.isJsxOpeningLikeElement(t.parent)){var b=t.parent.attributes.getFullStart(),k=e.skipTrivia(n.text,t.parent.attributes.getEnd(),!1);return{kind:3,invocation:t.parent,argumentsSpan:e.createTextSpan(b,k-b),argumentIndex:0,argumentCount:1}}}}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;26!==o.kind&&r++}return r}function o(t){var r=t.getChildren(),n=e.countWhere(r,function(e){return 26!==e.kind});return r.length>0&&26===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=13===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(196===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;265!==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(27));var l=t.typeParameters;r=l&&l.length>0?e.map(l,o):g,s.push(e.punctuationPart(29));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(19));var m=t.parameters;r=m.length>0?e.map(m,i):g,s.push(e.punctuationPart(20))}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(26),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",e[e.JSXAttributesArguments=3]="JSXAttributesArguments"}(m=t.ArgumentListKind||(t.ArgumentListKind={})),t.getSignatureHelpItems=r,t.getImmediatelyContainingArgumentInfo=a,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.flags;if(32&i)return e.getDeclarationOfKind(r,199)?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,a);if(o===e.ScriptElementKind.unknown){if(262144&i)return e.ScriptElementKind.typeParameterElement;if(8&i)return e.ScriptElementKind.enumMemberElement;if(8388608&i)return e.ScriptElementKind.alias;if(1536&i)return e.ScriptElementKind.moduleElement}return o}function n(t,r,n){if(t.isUndefinedSymbol(r))return e.ScriptElementKind.variableElement;if(t.isArgumentsSymbol(r))return e.ScriptElementKind.localVariableElement;if(99===n.kind&&e.isExpression(n))return e.ScriptElementKind.parameterElement;var a=r.flags;if(3&a)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&a)return o(r)?e.ScriptElementKind.localFunctionElement:e.ScriptElementKind.functionElement;
if(32768&a)return e.ScriptElementKind.memberGetAccessorElement;if(65536&a)return e.ScriptElementKind.memberSetAccessorElement;if(8192&a)return e.ScriptElementKind.memberFunctionElement;if(16384&a)return e.ScriptElementKind.constructorImplementationElement;if(4&a){if(134217728&a&&6&r.checkFlags){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,n);return s.getCallSignatures().length?e.ScriptElementKind.memberFunctionElement:e.ScriptElementKind.memberVariableElement}return i}return n.parent&&e.isJsxAttribute(n.parent)?e.ScriptElementKind.jsxAttribute: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(92)),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(19)),b.push(e.textOrKeywordPart(t)),void b.push(e.punctuationPart(20))}}function f(r,n,a){e.addRange(b,e.signatureToDisplayParts(t,r,o,64|a)),n.length>1&&(b.push(e.spacePart()),b.push(e.punctuationPart(19)),b.push(e.operatorPart(37)),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(20))),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,s),C=99===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 D=void 0;if(h=C?t.getTypeAtLocation(s):t.getTypeOfSymbolAtLocation(a,s)){if(s.parent&&179===s.parent.kind){var S=s.parent.name;(S===s||S&&0===S.getFullWidth())&&(s=s.parent)}var T=void 0;if(e.isCallOrNewExpression(s)?T=s:e.isCallExpressionTarget(s)||e.isNewExpressionTarget(s)?T=s.parent:s.parent&&e.isJsxOpeningLikeElement(s.parent)&&e.isFunctionLike(a.valueDeclaration)&&(T=s.parent),T){var E=[];D=t.getResolvedSignature(T,E),!D&&E.length&&(D=E[0]);var N=182===T.kind||e.isCallExpression(T)&&97===T.expression.kind,A=N?h.getConstructSignatures():h.getCallSignatures();if(e.contains(A,D.target)||e.contains(A,D)||(D=A.length?A[0]:void 0),D){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(94)),b.push(e.spacePart())),l(a)):d(a,x),x){case e.ScriptElementKind.jsxAttribute: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(56)),b.push(e.spacePart()),N&&(b.push(e.keywordPart(94)),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(D,A,16);break;default:f(D,A)}v=!0}}else if(e.isNameOfFunctionDeclaration(s)&&!(98304&a.flags)||123===s.kind&&152===s.parent.kind){var w=s.parent,P=e.findDeclaration(a,function(e){return e===(123===s.kind?w.parent:w)});if(P){var A=152===w.kind?h.getNonNullableType().getConstructSignatures():h.getNonNullableType().getCallSignatures();D=t.isImplementationOfOverload(w)?A[0]:t.getSignatureFromDeclaration(w),152===w.kind?(x=e.ScriptElementKind.constructorImplementationElement,d(h.symbol,x)):d(155!==w.kind||2048&h.symbol.flags||4096&h.symbol.flags?a:h.symbol,x),f(D,A),v=!0}}}}if(32&k&&!v&&!C&&(e.getDeclarationOfKind(a,199)?p(e.ScriptElementKind.localClassElement):b.push(e.keywordPart(75)),b.push(e.spacePart()),l(a),m(a,i)),64&k&&2&c&&(u(),b.push(e.keywordPart(109)),b.push(e.spacePart()),l(a),m(a,i)),524288&k&&(u(),b.push(e.keywordPart(138)),b.push(e.spacePart()),l(a),m(a,i),b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),e.addRange(b,e.typeToDisplayParts(t,t.getDeclaredTypeOfSymbol(a),o,1024))),384&k&&(u(),e.forEach(a.declarations,e.isConstEnumDeclaration)&&(b.push(e.keywordPart(76)),b.push(e.spacePart())),b.push(e.keywordPart(83)),b.push(e.spacePart()),l(a)),1536&k){u();var F=e.getDeclarationOfKind(a,233),O=F&&F.name&&71===F.name.kind;b.push(e.keywordPart(O?129:128)),b.push(e.spacePart()),l(a)}if(262144&k&&2&c)if(u(),b.push(e.punctuationPart(19)),b.push(e.textPart("type parameter")),b.push(e.punctuationPart(20)),b.push(e.spacePart()),l(a),a.parent)_(),l(a.parent,o),m(a.parent,o);else{var I=e.getDeclarationOfKind(a,145);e.Debug.assert(void 0!==I);var F=I.parent;if(F)if(e.isFunctionLikeKind(F.kind)){_();var D=t.getSignatureFromDeclaration(F);156===F.kind?(b.push(e.keywordPart(94)),b.push(e.spacePart())):155!==F.kind&&F.name&&l(F.symbol),e.addRange(b,e.signatureToDisplayParts(t,D,i,64))}else 231===F.kind&&(_(),b.push(e.keywordPart(138)),b.push(e.spacePart()),l(F.symbol),m(F.symbol,i))}if(8&k){x=e.ScriptElementKind.enumMemberElement,d(a,"enum member");var F=a.declarations[0];if(264===F.kind){var R=t.getConstantValue(F);void 0!==R&&(b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),b.push(e.displayPart(e.getTextOfConstantValue(R),"number"==typeof R?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}}if(8388608&k&&(u(),236===a.declarations[0].kind?(b.push(e.keywordPart(84)),b.push(e.spacePart()),b.push(e.keywordPart(129))):b.push(e.keywordPart(91)),b.push(e.spacePart()),l(a),e.forEach(a.declarations,function(r){if(237===r.kind){var n=r;if(e.isExternalModuleImportEqualsDeclaration(n))b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),b.push(e.keywordPart(132)),b.push(e.punctuationPart(19)),b.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(n)),e.SymbolDisplayPartKind.stringLiteral)),b.push(e.punctuationPart(20));else{var a=t.getSymbolAtLocation(n.moduleReference);a&&(b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),l(a,o))}return!0}})),!v)if(x!==e.ScriptElementKind.unknown){if(h)if(C?(u(),b.push(e.keywordPart(99))):d(a,x),x===e.ScriptElementKind.memberVariableElement||x===e.ScriptElementKind.jsxAttribute||3&k||x===e.ScriptElementKind.localVariableElement||C)if(b.push(e.punctuationPart(56)),b.push(e.spacePart()),h.symbol&&262144&h.symbol.flags){var M=e.mapToDisplayParts(function(e){t.getSymbolDisplayBuilder().buildTypeParameterDisplay(h,e,o)});e.addRange(b,M)}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 265===e.kind})))for(var L=0,B=a.declarations;L<B.length;L++){var F=B[L];if(F.parent&&194===F.parent.kind){var J=t.getSymbolAtLocation(F.parent.right);if(J&&(g=J.getDocumentationComment(),y=J.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(186===t.kind)return!0;if(226!==t.kind&&228!==t.kind)return!1;for(var r=t.parent;!e.isFunctionBlock(r);r=r.parent)if(265===r.kind||234===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.createMapFromTemplate(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(void 0,void 0,void 0,void 0,r.transformers),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.forEachEntry(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.forEachEntry(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;e.fixupCompilerOptions=n}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r,a,s){function c(){e.Debug.assert(void 0!==n,"Scanner should be present"),C=void 0;var t=n.getStartPos()!==a;t&&(b?(e.Debug.assert(0!==b.length),D=4===e.lastOrUndefined(b).kind):D=!1),h=void 0,b=void 0,t||n.scan();for(var r=n.getStartPos();r<s;){var i=n.getToken();if(!e.isTrivia(i))break;n.scan();var o={pos:r,end:n.getStartPos(),kind:i};r=n.getStartPos(),h||(h=[]),h.push(o)}k=n.getStartPos()}function u(e){if(e)switch(e.kind){case 31:case 66:case 67:case 47:case 46:return!0}return!1}function _(e){if(e.parent)switch(e.parent.kind){case 253:case 251:case 252:case 250:return 71===e.kind}return!1}function l(e){return e&&10===e.kind}function d(e){return 12===e.kind}function p(e){return 15===e.kind||16===e.kind}function f(e){return 41===e||63===e}function m(t){if(e.Debug.assert(void 0!==n),!g())return{leadingTrivia:h,trailingTrivia:void 0,token:void 0};var r=u(t)?1:d(t)?2:p(t)?3:_(t)?4:l(t)?5:0;if(C&&r===x)return y(C,t);n.getStartPos()!==k&&(e.Debug.assert(void 0!==C),n.setTextPos(k),n.scan());var a=n.getToken();1===r&&29===a?(a=n.reScanGreaterToken(),e.Debug.assert(t.kind===a),x=1):2===r&&f(a)?(a=n.reScanSlashToken(),e.Debug.assert(t.kind===a),x=2):3===r&&18===a?(a=n.reScanTemplateToken(),x=3):4===r&&71===a?(a=n.scanJsxIdentifier(),x=4):5===r?(a=n.reScanJsxToken(),x=5):x=0;var i={pos:n.getStartPos(),end:n.getTextPos(),kind:a};for(b&&(b=void 0);n.getStartPos()<s&&(a=n.scan(),e.isTrivia(a));){var o={pos:n.getStartPos(),end:n.getTextPos(),kind:a};if(b||(b=[]),b.push(o),4===a){n.scan();break}}return C={leadingTrivia:h,trailingTrivia:b,token:i},y(C,t)}function g(){e.Debug.assert(void 0!==n);var t=C?C.token.kind:n.getToken(),r=C?C.token.pos:n.getStartPos();return r<s&&1!==t&&!e.isTrivia(t)}function y(t,r){return e.isToken(r)&&t.token.kind!==r.kind&&(t.token.kind=r.kind),t}function v(e){n.setTextPos(e.end),k=n.getStartPos(),x=void 0,C=void 0,D=!1,h=void 0,b=void 0}e.Debug.assert(void 0===n,"Scanner should be undefined"),n=1===r?o:i,n.setText(t),n.setTextPos(a);var h,b,k,x,C,D=!0;return{advance:c,readTokenInfo:m,isOnToken:g,getCurrentLeadingTrivia:function(){return h},lastTrailingTriviaWasNewLine:function(){return D},skipToEndOf:v,close:function(){e.Debug.assert(void 0!==n),C=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,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}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,17,this.sourceFile),n=e.findChildOfKind(t,18,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.Any=new e,e}();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,25),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceBeforeColon=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,56),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsNotBinaryOpContext),8)),this.NoSpaceBeforeQuestionMark=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,55),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsNotBinaryOpContext),8)),this.SpaceAfterColon=new t.Rule(t.RuleDescriptor.create3(56,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsNotBinaryOpContext),2)),this.SpaceAfterQuestionMarkInConditionalOperator=new t.Rule(t.RuleDescriptor.create3(55,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsConditionalOperatorContext),2)),this.NoSpaceAfterQuestionMark=new t.Rule(t.RuleDescriptor.create3(55,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.SpaceAfterSemicolon=new t.Rule(t.RuleDescriptor.create3(25,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),2)),this.SpaceAfterCloseBrace=new t.Rule(t.RuleDescriptor.create3(18,t.Shared.TokenRange.FromRange(0,142,[20])),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsAfterCodeBlockContext),2)),this.SpaceBetweenCloseBraceAndElse=new t.Rule(t.RuleDescriptor.create1(18,82),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),2)),this.SpaceBetweenCloseBraceAndWhile=new t.Rule(t.RuleDescriptor.create1(18,106),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),2)),this.NoSpaceAfterCloseBrace=new t.Rule(t.RuleDescriptor.create3(18,t.Shared.TokenRange.FromTokens([22,26,25])),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceBeforeDot=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,23),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceAfterDot=new t.Rule(t.RuleDescriptor.create3(23,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceBeforeOpenBracket=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.AnyExcept(120),21),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceAfterCloseBracket=new t.Rule(t.RuleDescriptor.create3(22,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,17),t.RuleOperation.create2(new t.RuleOperationContext(r.IsFunctionDeclContext,r.IsBeforeBlockContext,r.IsNotFormatOnEnter,r.IsSameLineTokenOrBeforeMultilineBlockContext),2),1),this.TypeScriptOpenBraceLeftTokenRange=t.Shared.TokenRange.FromTokens([71,3,75,84,91]),this.SpaceBeforeOpenBraceInTypeScriptDeclWithBlock=new t.Rule(t.RuleDescriptor.create2(this.TypeScriptOpenBraceLeftTokenRange,17),t.RuleOperation.create2(new t.RuleOperationContext(r.IsTypeScriptDeclWithBlockContext,r.IsNotFormatOnEnter,r.IsSameLineTokenOrBeforeMultilineBlockContext),2),1),this.ControlOpenBraceLeftTokenRange=t.Shared.TokenRange.FromTokens([20,3,81,102,87,82]),this.SpaceBeforeOpenBraceInControl=new t.Rule(t.RuleDescriptor.create2(this.ControlOpenBraceLeftTokenRange,17),t.RuleOperation.create2(new t.RuleOperationContext(r.IsControlDeclContext,r.IsNotFormatOnEnter,r.IsSameLineTokenOrBeforeMultilineBlockContext),2),1),this.SpaceAfterOpenBrace=new t.Rule(t.RuleDescriptor.create3(17,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionEnabledOrUndefined("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),r.IsBraceWrappedContext),2)),this.SpaceBeforeCloseBrace=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,18),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionEnabledOrUndefined("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),r.IsBraceWrappedContext),2)),this.NoSpaceAfterOpenBrace=new t.Rule(t.RuleDescriptor.create3(17,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionDisabled("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceBeforeCloseBrace=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,18),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionDisabled("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceBetweenEmptyBraceBrackets=new t.Rule(t.RuleDescriptor.create1(17,18),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsObjectContext),8)),this.NewLineAfterOpenBraceInBlockContext=new t.Rule(t.RuleDescriptor.create3(17,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,18),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(43,t.Shared.TokenRange.UnaryPreincrementExpressions),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceAfterUnaryPredecrementOperator=new t.Rule(t.RuleDescriptor.create3(44,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,43),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceBeforeUnaryPostdecrementOperator=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.UnaryPostdecrementExpressions,44),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.SpaceAfterPostincrementWhenFollowedByAdd=new t.Rule(t.RuleDescriptor.create1(43,37),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsBinaryOpContext),2)),this.SpaceAfterAddWhenFollowedByUnaryPlus=new t.Rule(t.RuleDescriptor.create1(37,37),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsBinaryOpContext),2)),this.SpaceAfterAddWhenFollowedByPreincrement=new t.Rule(t.RuleDescriptor.create1(37,43),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsBinaryOpContext),2)),this.SpaceAfterPostdecrementWhenFollowedBySubtract=new t.Rule(t.RuleDescriptor.create1(44,38),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsBinaryOpContext),2)),this.SpaceAfterSubtractWhenFollowedByUnaryMinus=new t.Rule(t.RuleDescriptor.create1(38,38),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsBinaryOpContext),2)),this.SpaceAfterSubtractWhenFollowedByPredecrement=new t.Rule(t.RuleDescriptor.create1(38,44),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsBinaryOpContext),2)),this.NoSpaceBeforeComma=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,26),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.SpaceAfterCertainKeywords=new t.Rule(t.RuleDescriptor.create4(t.Shared.TokenRange.FromTokens([104,100,94,80,96,103,121]),t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),2)),this.NoSpaceAfterNewKeywordOnConstructorSignature=new t.Rule(t.RuleDescriptor.create1(94,19),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsConstructorSignatureContext),8)),this.SpaceAfterLetConstInVariableDeclaration=new t.Rule(t.RuleDescriptor.create4(t.Shared.TokenRange.FromTokens([110,76]),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,19),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsFunctionCallOrNewContext,r.IsPreviousTokenNotComma),8)),this.SpaceAfterFunctionInFuncDecl=new t.Rule(t.RuleDescriptor.create3(89,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,19),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionEnabled("insertSpaceBeforeFunctionParenthesis"),r.IsNonJsxSameLineTokenContext,r.IsFunctionDeclContext),2)),this.NoSpaceBeforeOpenParenInFuncDecl=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,19),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionDisabledOrUndefined("insertSpaceBeforeFunctionParenthesis"),r.IsNonJsxSameLineTokenContext,r.IsFunctionDeclContext),8)),this.SpaceAfterVoidOperator=new t.Rule(t.RuleDescriptor.create3(105,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsVoidOpContext),2)),this.NoSpaceBetweenReturnAndSemicolon=new t.Rule(t.RuleDescriptor.create1(96,25),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.SpaceBetweenStatements=new t.Rule(t.RuleDescriptor.create4(t.Shared.TokenRange.FromTokens([20,81,82,73]),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([102,87]),17),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),2)),this.SpaceAfterGetSetInMember=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.FromTokens([125,135]),71),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(123,19),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionEnabled("insertSpaceAfterConstructor"),r.IsNonJsxSameLineTokenContext),2)),this.NoSpaceAfterConstructor=new t.Rule(t.RuleDescriptor.create1(123,19),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionDisabledOrUndefined("insertSpaceAfterConstructor"),r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceAfterModuleImport=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.FromTokens([128,132]),19),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.SpaceAfterCertainTypeScriptKeywords=new t.Rule(t.RuleDescriptor.create4(t.Shared.TokenRange.FromTokens([117,75,124,79,83,84,85,125,108,91,109,128,129,112,114,113,131,135,115,138,140,127]),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([85,108,140])),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),2)),this.SpaceAfterModuleName=new t.Rule(t.RuleDescriptor.create1(9,17),t.RuleOperation.create2(new t.RuleOperationContext(r.IsModuleDeclContext),2)),this.SpaceBeforeArrow=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,36),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),2)),this.SpaceAfterArrow=new t.Rule(t.RuleDescriptor.create3(36,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),2)),this.NoSpaceAfterEllipsis=new t.Rule(t.RuleDescriptor.create1(24,71),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceAfterOptionalParameters=new t.Rule(t.RuleDescriptor.create3(55,t.Shared.TokenRange.FromTokens([20,26])),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsNotBinaryOpContext),8)),
this.NoSpaceBeforeOpenAngularBracket=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.TypeNames,27),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsTypeArgumentOrParameterOrAssertionContext),8)),this.NoSpaceBetweenCloseParenAndAngularBracket=new t.Rule(t.RuleDescriptor.create1(20,27),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsTypeArgumentOrParameterOrAssertionContext),8)),this.NoSpaceAfterOpenAngularBracket=new t.Rule(t.RuleDescriptor.create3(27,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,29),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsTypeArgumentOrParameterOrAssertionContext),8)),this.NoSpaceAfterCloseAngularBracket=new t.Rule(t.RuleDescriptor.create3(29,t.Shared.TokenRange.FromTokens([19,21,29,26])),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsTypeArgumentOrParameterOrAssertionContext),8)),this.NoSpaceBetweenEmptyInterfaceBraceBrackets=new t.Rule(t.RuleDescriptor.create1(17,18),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsObjectTypeContext),8)),this.SpaceBeforeAt=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,57),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),2)),this.NoSpaceAfterAt=new t.Rule(t.RuleDescriptor.create3(57,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([117,71,84,79,75,115,114,112,113,125,135,21,39])),t.RuleOperation.create2(new t.RuleOperationContext(r.IsEndOfDecoratorContextOnSameLine),2)),this.NoSpaceBetweenFunctionKeywordAndStar=new t.Rule(t.RuleDescriptor.create1(89,39),t.RuleOperation.create2(new t.RuleOperationContext(r.IsFunctionDeclarationOrFunctionExpressionContext),8)),this.SpaceAfterStarInGeneratorDeclaration=new t.Rule(t.RuleDescriptor.create3(39,t.Shared.TokenRange.FromTokens([71,19])),t.RuleOperation.create2(new t.RuleOperationContext(r.IsFunctionDeclarationOrFunctionExpressionContext),2)),this.NoSpaceBetweenYieldKeywordAndStar=new t.Rule(t.RuleDescriptor.create1(116,39),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsYieldOrYieldStarWithOperand),8)),this.SpaceBetweenYieldOrYieldStarAndOperand=new t.Rule(t.RuleDescriptor.create4(t.Shared.TokenRange.FromTokens([116,39]),t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsYieldOrYieldStarWithOperand),2)),this.SpaceBetweenAsyncAndOpenParen=new t.Rule(t.RuleDescriptor.create1(120,19),t.RuleOperation.create2(new t.RuleOperationContext(r.IsArrowFunctionContext,r.IsNonJsxSameLineTokenContext),2)),this.SpaceBetweenAsyncAndFunctionKeyword=new t.Rule(t.RuleDescriptor.create1(120,89),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),2)),this.NoSpaceBetweenTagAndTemplateString=new t.Rule(t.RuleDescriptor.create3(71,t.Shared.TokenRange.FromTokens([13,14])),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.SpaceBeforeJsxAttribute=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,71),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNextTokenParentJsxAttribute,r.IsNonJsxSameLineTokenContext),2)),this.SpaceBeforeSlashInJsxOpeningElement=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,41),t.RuleOperation.create2(new t.RuleOperationContext(r.IsJsxSelfClosingElementContext,r.IsNonJsxSameLineTokenContext),2)),this.NoSpaceBeforeGreaterThanTokenInJsxOpeningElement=new t.Rule(t.RuleDescriptor.create1(41,29),t.RuleOperation.create2(new t.RuleOperationContext(r.IsJsxSelfClosingElementContext,r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceBeforeEqualInJsxAttribute=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,58),t.RuleOperation.create2(new t.RuleOperationContext(r.IsJsxAttributeContext,r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceAfterEqualInJsxAttribute=new t.Rule(t.RuleDescriptor.create3(58,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsJsxAttributeContext,r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceBeforeNonNullAssertionOperator=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,51),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext,r.IsNonNullAssertionContext),8)),this.SpaceAfterComma=new t.Rule(t.RuleDescriptor.create3(26,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionEnabled("insertSpaceAfterCommaDelimiter"),r.IsNonJsxSameLineTokenContext,r.IsNonJsxElementContext,r.IsNextTokenNotCloseBracket),2)),this.NoSpaceAfterComma=new t.Rule(t.RuleDescriptor.create3(26,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionDisabledOrUndefined("insertSpaceAfterCommaDelimiter"),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.IsOptionEnabled("insertSpaceBeforeAndAfterBinaryOperators"),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.IsOptionEnabled("insertSpaceBeforeAndAfterBinaryOperators"),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.IsOptionDisabledOrUndefined("insertSpaceBeforeAndAfterBinaryOperators"),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.IsOptionDisabledOrUndefined("insertSpaceBeforeAndAfterBinaryOperators"),r.IsNonJsxSameLineTokenContext,r.IsBinaryOpContext),8)),this.SpaceAfterKeywordInControl=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Keywords,19),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionEnabled("insertSpaceAfterKeywordsInControlFlowStatements"),r.IsControlDeclContext),2)),this.NoSpaceAfterKeywordInControl=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Keywords,19),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionDisabledOrUndefined("insertSpaceAfterKeywordsInControlFlowStatements"),r.IsControlDeclContext),8)),this.NewLineBeforeOpenBraceInFunction=new t.Rule(t.RuleDescriptor.create2(this.FunctionOpenBraceLeftTokenRange,17),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionEnabled("placeOpenBraceOnNewLineForFunctions"),r.IsFunctionDeclContext,r.IsBeforeMultilineBlockContext),4),1),this.NewLineBeforeOpenBraceInTypeScriptDeclWithBlock=new t.Rule(t.RuleDescriptor.create2(this.TypeScriptOpenBraceLeftTokenRange,17),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionEnabled("placeOpenBraceOnNewLineForFunctions"),r.IsTypeScriptDeclWithBlockContext,r.IsBeforeMultilineBlockContext),4),1),this.NewLineBeforeOpenBraceInControl=new t.Rule(t.RuleDescriptor.create2(this.ControlOpenBraceLeftTokenRange,17),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionEnabled("placeOpenBraceOnNewLineForControlBlocks"),r.IsControlDeclContext,r.IsBeforeMultilineBlockContext),4),1),this.SpaceAfterSemicolonInFor=new t.Rule(t.RuleDescriptor.create3(25,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionEnabled("insertSpaceAfterSemicolonInForStatements"),r.IsNonJsxSameLineTokenContext,r.IsForContext),2)),this.NoSpaceAfterSemicolonInFor=new t.Rule(t.RuleDescriptor.create3(25,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionDisabledOrUndefined("insertSpaceAfterSemicolonInForStatements"),r.IsNonJsxSameLineTokenContext,r.IsForContext),8)),this.SpaceAfterOpenParen=new t.Rule(t.RuleDescriptor.create3(19,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionEnabled("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),r.IsNonJsxSameLineTokenContext),2)),this.SpaceBeforeCloseParen=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,20),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionEnabled("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),r.IsNonJsxSameLineTokenContext),2)),this.NoSpaceBetweenParens=new t.Rule(t.RuleDescriptor.create1(19,20),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceAfterOpenParen=new t.Rule(t.RuleDescriptor.create3(19,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionDisabledOrUndefined("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceBeforeCloseParen=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,20),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionDisabledOrUndefined("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),r.IsNonJsxSameLineTokenContext),8)),this.SpaceAfterOpenBracket=new t.Rule(t.RuleDescriptor.create3(21,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionEnabled("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),r.IsNonJsxSameLineTokenContext),2)),this.SpaceBeforeCloseBracket=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,22),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionEnabled("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),r.IsNonJsxSameLineTokenContext),2)),this.NoSpaceBetweenBrackets=new t.Rule(t.RuleDescriptor.create1(21,22),t.RuleOperation.create2(new t.RuleOperationContext(r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceAfterOpenBracket=new t.Rule(t.RuleDescriptor.create3(21,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionDisabledOrUndefined("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceBeforeCloseBracket=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,22),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionDisabledOrUndefined("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),r.IsNonJsxSameLineTokenContext),8)),this.NoSpaceAfterTemplateHeadAndMiddle=new t.Rule(t.RuleDescriptor.create4(t.Shared.TokenRange.FromTokens([14,15]),t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionDisabledOrUndefined("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),r.IsNonJsxSameLineTokenContext),8)),this.SpaceAfterTemplateHeadAndMiddle=new t.Rule(t.RuleDescriptor.create4(t.Shared.TokenRange.FromTokens([14,15]),t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionEnabled("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),r.IsNonJsxSameLineTokenContext),2)),this.NoSpaceBeforeTemplateMiddleAndTail=new t.Rule(t.RuleDescriptor.create4(t.Shared.TokenRange.Any,t.Shared.TokenRange.FromTokens([15,16])),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionDisabledOrUndefined("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),r.IsNonJsxSameLineTokenContext),8)),this.SpaceBeforeTemplateMiddleAndTail=new t.Rule(t.RuleDescriptor.create4(t.Shared.TokenRange.Any,t.Shared.TokenRange.FromTokens([15,16])),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionEnabled("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),r.IsNonJsxSameLineTokenContext),2)),this.NoSpaceAfterOpenBraceInJsxExpression=new t.Rule(t.RuleDescriptor.create3(17,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionDisabledOrUndefined("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),r.IsNonJsxSameLineTokenContext,r.IsJsxExpressionContext),8)),this.SpaceAfterOpenBraceInJsxExpression=new t.Rule(t.RuleDescriptor.create3(17,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionEnabled("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),r.IsNonJsxSameLineTokenContext,r.IsJsxExpressionContext),2)),this.NoSpaceBeforeCloseBraceInJsxExpression=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,18),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionDisabledOrUndefined("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),r.IsNonJsxSameLineTokenContext,r.IsJsxExpressionContext),8)),this.SpaceBeforeCloseBraceInJsxExpression=new t.Rule(t.RuleDescriptor.create2(t.Shared.TokenRange.Any,18),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionEnabled("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),r.IsNonJsxSameLineTokenContext,r.IsJsxExpressionContext),2)),this.SpaceAfterAnonymousFunctionKeyword=new t.Rule(t.RuleDescriptor.create1(89,19),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionEnabled("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),r.IsFunctionDeclContext),2)),this.NoSpaceAfterAnonymousFunctionKeyword=new t.Rule(t.RuleDescriptor.create1(89,19),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionDisabledOrUndefined("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),r.IsFunctionDeclContext),8)),this.NoSpaceAfterTypeAssertion=new t.Rule(t.RuleDescriptor.create3(29,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionDisabledOrUndefined("insertSpaceAfterTypeAssertion"),r.IsNonJsxSameLineTokenContext,r.IsTypeAssertionContext),8)),this.SpaceAfterTypeAssertion=new t.Rule(t.RuleDescriptor.create3(29,t.Shared.TokenRange.Any),t.RuleOperation.create2(new t.RuleOperationContext(r.IsOptionEnabled("insertSpaceAfterTypeAssertion"),r.IsNonJsxSameLineTokenContext,r.IsTypeAssertionContext),2)),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.NoSpaceBeforeNonNullAssertionOperator,this.NoSpaceAfterNewKeywordOnConstructorSignature],this.UserConfigurableRules=[this.SpaceAfterConstructor,this.NoSpaceAfterConstructor,this.SpaceAfterComma,this.NoSpaceAfterComma,this.SpaceAfterAnonymousFunctionKeyword,this.NoSpaceAfterAnonymousFunctionKeyword,this.SpaceAfterKeywordInControl,this.NoSpaceAfterKeywordInControl,this.SpaceAfterOpenParen,this.SpaceBeforeCloseParen,this.NoSpaceBetweenParens,this.NoSpaceAfterOpenParen,this.NoSpaceBeforeCloseParen,this.SpaceAfterOpenBracket,this.SpaceBeforeCloseBracket,this.NoSpaceBetweenBrackets,this.NoSpaceAfterOpenBracket,this.NoSpaceBeforeCloseBracket,this.SpaceAfterOpenBrace,this.SpaceBeforeCloseBrace,this.NoSpaceBetweenEmptyBraceBrackets,this.NoSpaceAfterOpenBrace,this.NoSpaceBeforeCloseBrace,this.SpaceAfterTemplateHeadAndMiddle,this.SpaceBeforeTemplateMiddleAndTail,this.NoSpaceAfterTemplateHeadAndMiddle,this.NoSpaceBeforeTemplateMiddleAndTail,this.SpaceAfterOpenBraceInJsxExpression,this.SpaceBeforeCloseBraceInJsxExpression,this.NoSpaceAfterOpenBraceInJsxExpression,this.NoSpaceBeforeCloseBraceInJsxExpression,this.SpaceAfterSemicolonInFor,this.NoSpaceAfterSemicolonInFor,this.SpaceBeforeBinaryOperator,this.SpaceAfterBinaryOperator,this.NoSpaceBeforeBinaryOperator,this.NoSpaceAfterBinaryOperator,this.SpaceBeforeOpenParenInFuncDecl,this.NoSpaceBeforeOpenParenInFuncDecl,this.NewLineBeforeOpenBraceInControl,this.NewLineBeforeOpenBraceInFunction,this.NewLineBeforeOpenBraceInTypeScriptDeclWithBlock,this.SpaceAfterTypeAssertion,this.NoSpaceAfterTypeAssertion],this.LowPriorityCommonRules=[this.NoSpaceBeforeSemicolon,this.SpaceBeforeOpenBraceInControl,this.SpaceBeforeOpenBraceInFunction,this.SpaceBeforeOpenBraceInTypeScriptDeclWithBlock,this.NoSpaceBeforeComma,this.NoSpaceBeforeOpenBracket,this.NoSpaceAfterCloseBracket,this.SpaceAfterSemicolon,this.SpaceBetweenStatements,this.SpaceAfterTryFinally]}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.IsOptionEnabled=function(e){return function(t){return t.options&&t.options.hasOwnProperty(e)&&!!t.options[e]}},r.IsOptionDisabled=function(e){return function(t){return t.options&&t.options.hasOwnProperty(e)&&!t.options[e]}},r.IsOptionDisabledOrUndefined=function(e){return function(t){return!t.options||!t.options.hasOwnProperty(e)||!t.options[e]}},r.IsOptionEnabledOrUndefined=function(e){return function(t){return!t.options||!t.options.hasOwnProperty(e)||!!t.options[e]}},r.IsForContext=function(e){return 214===e.contextNode.kind},r.IsNotForContext=function(e){return!r.IsForContext(e)},r.IsBinaryOpContext=function(e){switch(e.contextNode.kind){case 194:case 195:case 202:case 246:case 242:case 158:case 166:case 167:return!0;case 176:case 231:case 237:case 226:case 146:case 264:case 149:case 148:return 58===e.currentTokenSpan.kind||58===e.nextTokenSpan.kind;case 215:case 145:return 92===e.currentTokenSpan.kind||92===e.nextTokenSpan.kind;case 216:return 142===e.currentTokenSpan.kind||142===e.nextTokenSpan.kind}return!1},r.IsNotBinaryOpContext=function(e){return!r.IsBinaryOpContext(e)},r.IsConditionalOperatorContext=function(e){return 195===e.contextNode.kind},r.IsSameLineTokenOrBeforeMultilineBlockContext=function(e){return e.TokensAreOnSameLine()||r.IsBeforeMultilineBlockContext(e)},r.IsBraceWrappedContext=function(e){return 174===e.contextNode.kind||r.IsSingleLineBlockContext(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 207:case 235:case 178:case 234:return!0}return!1},r.IsFunctionDeclContext=function(e){switch(e.contextNode.kind){case 228:case 151:case 150:case 153:case 154:case 155:case 186:case 152:case 187:case 230:return!0}return!1},r.IsFunctionDeclarationOrFunctionExpressionContext=function(e){return 228===e.contextNode.kind||186===e.contextNode.kind},r.IsTypeScriptDeclWithBlockContext=function(e){return r.NodeIsTypeScriptDeclWithBlockContext(e.contextNode)},r.NodeIsTypeScriptDeclWithBlockContext=function(e){switch(e.kind){case 229:case 199:case 230:case 232:case 163:case 233:case 244:case 245:case 238:case 241:return!0}return!1},r.IsAfterCodeBlockContext=function(e){switch(e.currentTokenParent.kind){case 229:case 233:case 232:case 260:case 234:case 221:return!0;case 207:var t=e.currentTokenParent.parent;if(187!==t.kind&&186!==t.kind)return!0}return!1},r.IsControlDeclContext=function(e){switch(e.contextNode.kind){case 211:case 221:case 214:case 215:case 216:case 213:case 224:case 212:case 220:case 260:return!0;default:return!1}},r.IsObjectContext=function(e){return 178===e.contextNode.kind},r.IsFunctionCallContext=function(e){return 181===e.contextNode.kind},r.IsNewContext=function(e){return 182===e.contextNode.kind},r.IsFunctionCallOrNewContext=function(e){return r.IsFunctionCallContext(e)||r.IsNewContext(e)},r.IsPreviousTokenNotComma=function(e){return 26!==e.currentTokenSpan.kind},r.IsNextTokenNotCloseBracket=function(e){return 22!==e.nextTokenSpan.kind},r.IsArrowFunctionContext=function(e){return 187===e.contextNode.kind},r.IsNonJsxSameLineTokenContext=function(e){return e.TokensAreOnSameLine()&&10!==e.contextNode.kind},r.IsNonJsxElementContext=function(e){return 249!==e.contextNode.kind},r.IsJsxExpressionContext=function(e){return 256===e.contextNode.kind},r.IsNextTokenParentJsxAttribute=function(e){return 253===e.nextTokenParent.kind},r.IsJsxAttributeContext=function(e){return 253===e.contextNode.kind},r.IsJsxSelfClosingElementContext=function(e){return 250===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 147===t.kind},r.IsStartOfVariableDeclarationList=function(e){return 227===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos},r.IsNotFormatOnEnter=function(e){return 2!==e.formattingRequestKind},r.IsModuleDeclContext=function(e){return 233===e.contextNode.kind},r.IsObjectTypeContext=function(e){return 163===e.contextNode.kind},r.IsConstructorSignatureContext=function(e){return 156===e.contextNode.kind},r.IsTypeArgumentOrParameterOrAssertion=function(e,t){if(27!==e.kind&&29!==e.kind)return!1;switch(t.kind){case 159:case 184:case 231:case 229:case 199:case 230:case 228:case 186:case 187:case 151:case 150:case 155:case 156:case 181:case 182:case 201: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 184===e.contextNode.kind},r.IsVoidOpContext=function(e){return 105===e.currentTokenSpan.kind&&190===e.currentTokenParent.kind},r.IsYieldOrYieldStarWithOperand=function(e){return 197===e.contextNode.kind&&void 0!==e.contextNode.expression},r.IsNonNullAssertionContext=function(e){return 203===e.contextNode.kind},r}();t.Rules=r}(t=e.formatting||(e.formatting={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){var r=function(){function t(){this.map=[],this.mapRowLength=0}return t.create=function(e){var r=new t;return r.Initialize(e),r},t.prototype.Initialize=function(e){this.mapRowLength=143,this.map=new Array(this.mapRowLength*this.mapRowLength);var t=new Array(this.map.length);return this.FillRules(e,t),this.map},t.prototype.FillRules=function(e,t){var r=this;e.forEach(function(e){r.FillRule(e,t)})},t.prototype.GetRuleBucketIndex=function(t,r){e.Debug.assert(t<=142&&r<=142,"Must compute formatting context from tokens");var n=t*this.mapRowLength+r;return n},t.prototype.FillRule=function(e,t){var r=this,n=e.Descriptor.LeftTokenRange.isSpecific()&&e.Descriptor.RightTokenRange.isSpecific();e.Descriptor.LeftTokenRange.GetTokens().forEach(function(a){e.Descriptor.RightTokenRange.GetTokens().forEach(function(i){var o=r.GetRuleBucketIndex(a,i),c=r.map[o];void 0===c&&(c=r.map[o]=new s),c.AddRule(e,n,t,o)})})},t.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}},t}();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){for(var r=[],n=0;n<=142;n++)r.push(n);var a,i=function(){function e(e){void 0===e&&(e=[]),this.tokens=e}return e.prototype.GetTokens=function(){return this.tokens},e.prototype.Contains=function(e){return this.tokens.indexOf(e)>=0},e.prototype.isSpecific=function(){return!0},e}(),o=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.prototype.isSpecific=function(){return!0},e}(),s=function(){function e(){}return e.prototype.GetTokens=function(){return r},e.prototype.Contains=function(){return!0},e.prototype.toString=function(){return"[allTokens]"},e.prototype.isSpecific=function(){return!1},e}(),c=function(){function e(e){this.except=e}return e.prototype.GetTokens=function(){var e=this;return r.filter(function(t){return t!==e.except})},e.prototype.Contains=function(e){return e!==this.except},e.prototype.isSpecific=function(){return!1},e}();!function(t){function n(e){return new o(e)}function a(e){return new i(e)}function u(t,r,n){void 0===n&&(n=[]);for(var a=[],o=t;o<=r;o++)e.indexOf(n,o)<0&&a.push(o);return new i(a)}function _(e){return new c(e)}t.FromToken=n,t.FromTokens=a,t.FromRange=u,t.AnyExcept=_,t.Any=new s,t.AnyIncludingMultilineComments=t.FromTokens(r.concat([3])),t.Keywords=t.FromRange(72,142),t.BinaryOperators=t.FromRange(27,70),t.BinaryKeywordOperators=t.FromTokens([92,93,142,118,126]),t.UnaryPrefixOperators=t.FromTokens([43,44,52,51]),t.UnaryPrefixExpressions=t.FromTokens([8,71,19,21,17,99,94]),t.UnaryPreincrementExpressions=t.FromTokens([71,19,99,94]),t.UnaryPostincrementExpressions=t.FromTokens([71,20,22,94]),t.UnaryPredecrementExpressions=t.FromTokens([71,19,99,94]),t.UnaryPostdecrementExpressions=t.FromTokens([71,20,22,94]),t.Comments=t.FromTokens([2,3]),t.TypeNames=t.FromTokens([71,133,136,122,137,105,119])}(a=t.TokenRange||(t.TokenRange={}))}(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;var e=this.globalRules.HighPriorityCommonRules.slice(0).concat(this.globalRules.UserConfigurableRules).concat(this.globalRules.LowPriorityCommonRules);this.rulesMap=t.RulesMap.create(e)}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.getFormatOptions=function(){return this.options},r.prototype.ensureUpToDate=function(t){this.options&&e.compareDataObjects(this.options,t)||(this.options=e.clone(t))},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 m(s,r,a,n,2)}function n(e,t,r,n){return s(e,25,t,n,r,3)}function a(e,t,r,n){return s(e,18,t,n,r,4)}function i(e,t,r){var n={pos:0,end:e.text.length};return m(n,e,r,t,0)}function o(t,r,n,a,i){var o={pos:e.getLineStartPositionForPosition(t,n),end:r};return m(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 m(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 229:case 230:return e.rangeContainsRange(t.members,r);case 233:var n=t.body;return n&&234===n.kind&&e.rangeContainsRange(n.statements,r);case 265:case 207:case 234:return e.rangeContainsRange(t.statements,r);case 260: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(e,r,n,a,i,o){var s={pos:0,end:r.text.length};return g(s,e,a,i,t.getFormattingScanner(r.text,n,s.pos,s.end),o.getFormatOptions(),o,1,function(e){return!1},r)}function m(e,r,n,a,i){var o=_(e,r);return g(e,o,t.SmartIndenter.getIndentationForNode(o,e,r,n),p(o,n,r),t.getFormattingScanner(r.text,r.languageVariant,d(o,e,r),e.end),n,a,i,l(r.parseDiagnostics,e),r)}function g(r,n,a,i,o,s,c,u,_,l){function d(r,n,a,i,o){if(e.rangeOverlapsWithStartEnd(i,r,n)||e.rangeContainsStartEnd(i,r,n)){if(o!==-1)return o}else{var c=l.getLineAndCharacterOfPosition(r).line,u=e.getLineStartPositionForPosition(r,l),_=t.SmartIndenter.findFirstNonWhitespaceColumn(u,r,l,s);if(c!==a||r===_){var d=t.SmartIndenter.getBaseIndentation(s);return d>_?d:_}}return-1}function p(e,r,n,a,i,o){var c=n,u=t.SmartIndenter.shouldIndentChildNode(e)?s.indentSize:0;return o===r?(c=r===B?J:i.getIndentation(),u=Math.min(s.indentSize,i.getDelta(e)+u)):c===-1&&(c=t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(a,e,r,l)?i.getIndentation():i.getIndentation()+i.getDelta(e)),{indentation:c,delta:u}}function f(t){if(t.modifiers&&t.modifiers.length)return t.modifiers[0].kind;switch(t.kind){case 229:return 75;case 230:return 109;case 228:return 89;case 232:return 232;case 153:return 125;case 154:return 135;case 151:if(t.asteriskToken)return 39;case 149:case 146:return e.getNameOfDeclaration(t).kind}}function m(e,r,n,a){function i(r,n){return t.SmartIndenter.nodeWillIndentChild(e,n,!0)?r:0}return{getIndentationForComment:function(e,t,r){switch(e){case 18:case 22:case 20:return n+i(a,r)}return t!==-1?t:n},getIndentationForToken:function(t,o,s){if(r!==t&&e.decorators&&o===f(e))return n;switch(o){case 17:case 18:case 19:case 20:case 82:case 106:case 57:return n;case 41:case 29:if(251===s.kind||252===s.kind||250===s.kind)return n;break;case 21:case 22:if(172!==s.kind)return n}return r!==t?n+i(a,s):n},getIndentation:function(){return n},getDelta:function(e){return i(a,e)},recomputeIndentation:function(r){e.parent&&t.SmartIndenter.shouldIndentChildNode(e.parent,e)&&(r?n+=s.indentSize:n-=s.indentSize,a=t.SmartIndenter.shouldIndentChildNode(e)?s.indentSize:0)}}}function g(t,n,a,i,s,c){function u(n,a,i,s,c,u,_,f){var m=n.getStart(l),y=l.getLineAndCharacterOfPosition(m).line,v=y;n.decorators&&(v=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(n,l)).line);var b=-1;if(_&&(b=d(m,n.end,c,r,a),b!==-1&&(a=b)),!e.rangeOverlapsWithStartEnd(r,n.pos,n.end))return n.end<r.pos&&o.skipToEndOf(n),a;if(0===n.getFullWidth())return a;for(;o.isOnToken();){var k=o.readTokenInfo(t);if(k.token.end>m)break;h(k,t,s,t)}if(!o.isOnToken())return a;if(e.isToken(n)&&10!==n.kind){var k=o.readTokenInfo(n);return e.Debug.assert(k.token.end===n.end,"Token end is child end"),h(k,t,s,n),a}var x=147===n.kind?y:u,C=p(n,y,b,t,s,x);return g(n,D,y,v,C.indentation,C.delta),D=t,f&&177===i.kind&&a===-1&&(a=C.indentation),a}function f(r,n,a,i){var s=y(n,r),c=v(s),_=i,d=a;if(0!==s)for(;o.isOnToken();){var f=o.readTokenInfo(n);if(f.token.end>r.pos)break;if(f.token.kind===s){d=l.getLineAndCharacterOfPosition(f.token.pos).line;var g=p(f.token,d,-1,n,i,a);_=m(n,a,g.indentation,g.delta),h(f,n,_,n)}else h(f,n,i,n)}for(var b=-1,k=0;k<r.length;k++){var x=r[k];b=u(x,b,t,_,d,d,!0,0===k)}if(0!==c&&o.isOnToken()){var f=o.readTokenInfo(n);f.token.kind===c&&e.rangeContainsRange(n,f.token)&&h(f,n,_,n)}}function h(t,n,a,i){e.Debug.assert(e.rangeContainsRange(n,t.token));var s=o.lastTrailingTriviaWasNewLine(),c=!1;t.leadingTrivia&&b(t.leadingTrivia,n,D,a);var u,d=e.rangeContainsRange(r,t.token),p=l.getLineAndCharacterOfPosition(t.token.pos);if(d){var f=_(t.token),m=R;if(u=k(t.token,p,n,D,a),f)c=!1;else if(void 0!==u)c=u;else{var g=m&&l.getLineAndCharacterOfPosition(m.end).line;c=s&&p.line!==g}}if(t.trailingTrivia&&b(t.trailingTrivia,n,D,a),c){var y=d&&!_(t.token)?a.getIndentationForToken(p.line,t.token.kind,i):-1,v=!0;if(t.leadingTrivia)for(var h=a.getIndentationForComment(t.token.kind,y,i),x=0,S=t.leadingTrivia;x<S.length;x++){var E=S[x],N=e.rangeContainsRange(r,E);switch(E.kind){case 3:N&&T(E,h,!v),v=!1;break;case 2:v&&N&&C(E.pos,h,!1),v=!1;break;case 4:v=!0}}y!==-1&&v&&(C(t.token.pos,y,u),B=p.line,J=y)}o.advance(),D=n}if(e.rangeOverlapsWithStartEnd(r,t.getStart(l),t.getEnd())){var x=m(t,a,s,c),D=n;for(e.forEachChild(t,function(e){u(e,-1,t,x,a,i,!1)},function(e){f(e,t,a,x)});o.isOnToken();){var S=o.readTokenInfo(t);if(S.token.end>t.end)break;h(S,t,x,t)}}}function b(t,n,a,i){for(var o=0,s=t;o<s.length;o++){var c=s[o];if(e.isComment(c.kind)&&e.rangeContainsRange(r,c)){var u=l.getLineAndCharacterOfPosition(c.pos);k(c,u,n,a,i)}}}function k(e,t,n,a,i){var o,s=_(e);if(!s&&!I)if(R)o=x(e,t.line,n,R,L,M,a,i);else{var c=l.getLineAndCharacterOfPosition(r.pos);E(c.line,t.line)}return R=e,M=n,L=t.line,I=s,o}function x(e,t,r,n,a,i,o,s){z.updateContext(n,i,e,r,o);var u,_,d=c.getRulesMap().GetRule(z);return d?(O(d,n,a,e,t),10&d.Operation.Action&&t!==a?(_=!1,r.getStart(l)===e.pos&&s.recomputeIndentation(!1)):4&d.Operation.Action&&t===a&&(_=!0,r.getStart(l)===e.pos&&s.recomputeIndentation(!0)),u=!(8&d.Operation.Action)&&1!==d.Flag):u=!0,t!==a&&u&&E(a,t,n),_}function C(t,r,n){var a=h(r,s);if(n)F(t,0,a);else{var i=l.getLineAndCharacterOfPosition(t),o=e.getStartPositionOfLine(i.line,l);(r!==D(o,i.character)||S(a,o))&&F(o,i.character,a)}}function D(e,t){for(var r=0,n=0;n<t;n++)9===l.text.charCodeAt(e+n)?r+=s.tabSize-r%s.tabSize:r++;return r}function S(e,t){return e!==l.text.substr(t,e.length)}function T(r,n,a){var i,o=l.getLineAndCharacterOfPosition(r.pos).line,c=l.getLineAndCharacterOfPosition(r.end).line;if(o===c)return void(a||C(r.pos,n,!1));i=[];for(var u=r.pos,_=o;_<c;_++){var d=e.getEndLinePosition(_,l);i.push({pos:u,end:d}),u=e.getStartPositionOfLine(_+1,l)}i.push({pos:u,end:r.end});var p=e.getStartPositionOfLine(o,l),f=t.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(p,i[0].pos,l,s);if(n!==f.column){var m=0;a&&(m=1,o++);for(var g=n-f.column,y=m;y<i.length;y++,o++){var v=e.getStartPositionOfLine(o,l),b=0===y?f:t.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(i[y].pos,i[y].end,l,s),k=b.column+g;if(k>0){var x=h(k,s);F(v,b.character,x)}else P(v,b.character)}}}function E(t,r,n){for(var a=t;a<r;a++){var i=e.getStartPositionOfLine(a,l),o=e.getEndLinePosition(a,l);if(!(n&&(e.isComment(n.kind)||e.isStringOrRegularExpressionOrTemplateLiteral(n.kind))&&n.pos<=o&&n.end>o)){var s=N(i,o);s!==-1&&(e.Debug.assert(s===i||!e.isWhiteSpaceSingleLine(l.text.charCodeAt(s-1))),P(s,o+1-s))}}}function N(t,r){for(var n=r;n>=t&&e.isWhiteSpaceSingleLine(l.text.charCodeAt(n));)n--;return n!==r?n+1:-1}function A(){var e=R?R.end:r.pos,t=l.getLineAndCharacterOfPosition(e).line,n=l.getLineAndCharacterOfPosition(r.end).line;E(t,n+1,R)}function w(t,r,n){return{span:e.createTextSpan(t,r),newText:n}}function P(e,t){t&&K.push(w(e,t,""))}function F(e,t,r){(t||r)&&K.push(w(e,t,r))}function O(e,t,r,n,a){switch(e.Operation.Action){case 1:return;case 8:t.end!==n.pos&&P(t.end,n.pos-t.end);break;case 4:if(1!==e.Flag&&r!==a)return;var i=a-r;1!==i&&F(t.end,n.pos-t.end,s.newLineCharacter);break;case 2:if(1!==e.Flag&&r!==a)return;var o=n.pos-t.end;1===o&&32===l.text.charCodeAt(t.end)||F(t.end,n.pos-t.end," ")}}var I,R,M,L,B,J,z=new t.FormattingContext(l,u,s),K=[];if(o.advance(),o.isOnToken()){var j=l.getLineAndCharacterOfPosition(n.getStart(l)).line,V=j;n.decorators&&(V=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(n,l)).line),g(n,n,j,V,a,i)}if(!o.isOnToken()){var U=o.getCurrentLeadingTrivia();U&&(b(U,n,n,void 0),A())}return o.close(),K}function y(e,t){switch(e.kind){case 152:case 228:case 186:case 151:case 150:case 187:if(e.typeParameters===t)return 27;if(e.parameters===t)return 19;break;case 181:case 182:if(e.typeArguments===t)return 27;if(e.arguments===t)return 19;break;case 159:if(e.typeArguments===t)return 27}return 0}function v(e){switch(e){case 19:return 20;case 27:return 29}return 0}function h(e,t){function r(e,t){for(var r="",n=0;n<t;n++)r+=e;return r}var n=!k||k.tabSize!==t.tabSize||k.indentSize!==t.indentSize;if(n&&(k={tabSize:t.tabSize,indentSize:t.indentSize},x=C=void 0),t.convertTabsToSpaces){var a=void 0,i=Math.floor(e/t.indentSize),o=e%t.indentSize;return C||(C=[]),void 0===C[i]?(a=r(" ",t.indentSize*i),C[i]=a):a=C[i],o?a+r(" ",o):a}var s=Math.floor(e/t.tabSize),c=e-s*t.tabSize,u=void 0;return x||(x=[]),void 0===x[s]?x[s]=u=r("\t",s):u=x[s],c?u+r(" ",c):u}var b;!function(e){e[e.Unknown=-1]="Unknown"}(b||(b={})),t.formatOnEnter=r,t.formatOnSemicolon=n,t.formatOnClosingCurly=a,t.formatDocument=i,t.formatSelection=o,t.formatNode=f;var k,x,C;t.getIndentationString=h}(t=e.formatting||(e.formatting={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){var r;!function(t){function r(r,n,o,c){if(void 0===c&&(c=!1),r>n.text.length)return a(o);if(o.indentStyle===e.IndentStyle.None)return 0;var l=e.findPrecedingToken(r,n);if(!l)return a(o);var d=e.isStringOrRegularExpressionOrTemplateLiteral(l.kind);if(d&&l.getStart(n)<=r&&l.end>r)return 0;var p=n.getLineAndCharacterOfPosition(r).line;if(o.indentStyle===e.IndentStyle.Block){for(var g=r;g>0;){var y=n.text.charCodeAt(g);if(!e.isWhiteSpaceLike(y))break;g--}var v=e.getLineStartPositionForPosition(g,n);return t.findFirstNonWhitespaceColumn(v,g,n,o)}if(26===l.kind&&194!==l.parent.kind){var h=s(l,n,o);if(h!==-1)return h}for(var b,k,C,D=l;D;){if(e.positionBelongsToNode(D,r,n)&&x(D,b)){k=_(D,n);var S=u(l,D,p,n);C=0!==S?c&&2===S?o.indentSize:0:p!==k.line?o.indentSize:0;break}var h=f(D,n,o);if(h!==-1)return h;if(h=m(D,n,o),h!==-1)return h+o.indentSize;b=D,D=D.parent}return D?i(D,k,void 0,C,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 p=e.getStart(i);d=p<r.pos||p>r.end}if(d){var g=f(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=m(e,i,s),g!==-1)return g+n}x(_,e)&&!y&&(n+=s.indentSize),e=_,t=u,_=e.parent}return n+a(s)}function o(e,t,r){var n=p(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?g(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))&&(265===r.kind||!a);return s?y(n,i,o):-1}function u(t,r,n,a){var i=e.findNextToken(t,r);if(!i)return 0;if(17===i.kind)return 1;if(18===i.kind){var o=_(i,a).line;return n===o?2:0}return 0}function _(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function l(t,r,n,a){if(211===t.kind&&t.elseStatement===r){var i=e.findChildOfKind(t,82,a);e.Debug.assert(void 0!==i);var o=_(i,a).line;return o===n}return!1}function d(t,r,n){return t&&e.rangeContainsStartEnd(t,r,n)?t:void 0}function p(e,t){if(e.parent)switch(e.parent.kind){case 159:return d(e.parent.typeArguments,e.getStart(t),e.getEnd());case 178:return e.parent.properties;case 177:return e.parent.elements;case 228:case 186:case 187:case 151:case 150:case 155:case 152:case 161:case 156:var r=e.getStart(t);return d(e.parent.typeParameters,r,e.getEnd())||d(e.parent.parameters,r,e.getEnd());case 229:return d(e.parent.typeParameters,e.getStart(t),e.getEnd());case 182:case 181:var r=e.getStart(t);return d(e.parent.typeArguments,r,e.getEnd())||d(e.parent.arguments,r,e.getEnd());case 227:return d(e.parent.declarations,e.getStart(t),e.getEnd());case 241:case 245:return d(e.parent.elements,e.getStart(t),e.getEnd())}}function f(t,r,n){function a(a){var i=e.indexOf(a,t);return i!==-1?g(a,i,r,n):-1}var i=p(t,r);return i?a(i):-1}function m(t,r,n){function a(e){for(;;)switch(e.kind){case 181:case 182:case 179:case 180:e=e.expression;break;default:return e}}if(20===t.kind)return-1;if(t.parent&&e.isCallOrNewExpression(t.parent)&&t.parent.expression!==t){var i=t.parent.expression,o=a(i);if(i===o)return-1;var s=r.getLineAndCharacterOfPosition(i.end),c=r.getLineAndCharacterOfPosition(o.end);return s.line===c.line?-1:y(s,r,n)}return-1}function g(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(26!==t[s].kind){var c=n.getLineAndCharacterOfPosition(t[s].end).line;if(c!==o.line)return y(o,n,a);o=_(t[s],n)}return-1}function y(e,t,r){var n=t.getPositionOfLineAndCharacter(e.line,0);return h(n,n+e.character,t,r)}function v(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 h(e,t,r,n){return v(e,t,r,n).column}function b(e){switch(e){case 210:case 229:case 199:case 230:case 232:case 231:case 177:case 207:case 234:case 178:case 163:case 172:case 165:case 235:case 258:case 257:case 185:case 179:case 181:case 182:case 208:case 226:case 243:case 219:case 195:case 175:case 174:case 251:case 250:case 256:case 150:case 155:case 156:case 146:case 160:case 161:case 168:case 183:case 191:case 245:case 241:case 246:case 242:return!0}return!1}function k(e,t,r){var n=t?t.kind:0;switch(e.kind){case 212:case 213:case 215:case 216:case 214:case 211:case 228:case 186:case 151:case 187:case 152:case 153:case 154:return 207!==n;case 244:return 245!==n;case 238:return 239!==n||t.namedBindings&&241!==t.namedBindings.kind;case 249:return 252!==n}return r}function x(e,t){return b(e.kind)||k(e,t,!1)}var C;!function(e){e[e.Unknown=-1]="Unknown"}(C||(C={})),t.getIndentation=r,t.getIndentationForNode=n,t.getBaseIndentation=a;var D;!function(e){e[e.Unknown=0]="Unknown",e[e.OpenBrace=1]="OpenBrace",e[e.CloseBrace=2]="CloseBrace"}(D||(D={})),t.childStartsOnTheSameLineWithElseInIfStatement=l,t.getContainingList=p,t.findFirstNonWhitespaceCharacterAndColumn=v,t.findFirstNonWhitespaceColumn=h,t.nodeWillIndentChild=k,t.shouldIndentChildNode=x}(r=t.SmartIndenter||(t.SmartIndenter={}))}(t=e.formatting||(e.formatting={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(e){return e.__pos}function n(e,t){e.__pos=t}function a(e){return e.__end}function i(e,t){e.__end=t}function o(t,r){return e.skipTrivia(t,r,!1,!0)}function s(t,r){for(var n=r;n<t.length;){var a=t.charCodeAt(n);{if(!e.isWhiteSpaceSingleLine(a))return 47===a;n++}}return!1}function c(t){return e.tokenToString(t.kind)}function u(t,r,n,a){if(n.useNonAdjustedStartPosition)return r.getFullStart();var i=r.getFullStart(),s=r.getStart(t);if(i===s)return s;var c=e.getLineStartPositionForPosition(i,t),u=e.getLineStartPositionForPosition(s,t);if(u===c)return a===h.Start?s:i;var _=e.getStartPositionOfLine(e.getLineOfLocalPosition(t,c)+1,t);return _=o(t.text,_),e.getStartPositionOfLine(e.getLineOfLocalPosition(t,_),t)}function _(t,r,n){if(n.useNonAdjustedEndPosition)return r.getEnd();var a=r.getEnd(),i=e.skipTrivia(t.text,a,!0);return i!==a&&e.isLineBreak(t.text.charCodeAt(i-1))?i:a}function l(e,t){return t&&e.parent&&(26===t.kind||25===t.kind&&178===e.parent.kind)}function d(e){for(var t="",r=0;r<e;r++)t+=" ";return t}function p(t,r,n){var a={newLine:n,target:r&&r.languageVersion},i=new k(e.getNewLineCharacter(a)),o=e.createPrinter(a,i);return o.writeNode(3,t,r,i),{text:i.getText(),node:y(t)}}function f(t,r,n,a,i){var o=e.computeLineStarts(t.text),s={text:t.text,lineMap:o,getLineAndCharacterOfPosition:function(t){return e.computeLineAndCharacterOfPosition(o,t)}},c=e.formatting.formatNode(t.node,s,r.languageVariant,n,a,i);return m(t.text,c)}function m(t,r){for(var n=r.length-1;n>=0;n--){var a=r[n];t=""+t.substring(0,a.span.start)+a.newText+t.substring(e.textSpanEnd(a.span))}return t}function g(t){return e.skipTrivia(t,0)===t.length}function y(t){function n(){}var i=e.visitEachChild(t,y,e.nullTransformationContext,v,y),o=e.nodeIsSynthesized(i)?i:(n.prototype=i,new n);return o.pos=r(t),o.end=a(t),o}function v(t,n,i,o,s){var c=e.visitNodes(t,n,i,o,s);if(!c)return c;var u=c===t?e.createNodeArray(c.slice(0)):c;return u.pos=r(t),u.end=a(t),u}var h;!function(e){e[e.FullStart=0]="FullStart",e[e.Start=1]="Start"}(h=t.Position||(t.Position={})),t.getSeparatorCharacter=c,t.getAdjustedStartPosition=u,t.getAdjustedEndPosition=_;var b=function(){function t(t,r,n){this.newLine=t,this.rulesProvider=r,this.validator=n,this.changes=[],this.newLineCharacter=e.getNewLineCharacter({newLine:t})}return t.fromCodeFixContext=function(e){return new t("\n"===e.newLineCharacter?1:0,e.rulesProvider)},t.prototype.deleteNode=function(e,t,r){void 0===r&&(r={});var n=u(e,t,r,h.FullStart),a=_(e,t,r);return this.changes.push({sourceFile:e,options:r,range:{pos:n,end:a}}),this},t.prototype.deleteRange=function(e,t){return this.changes.push({sourceFile:e,range:t}),this},t.prototype.deleteNodeRange=function(e,t,r,n){void 0===n&&(n={});var a=u(e,t,n,h.FullStart),i=_(e,r,n);return this.changes.push({sourceFile:e,options:n,range:{pos:a,end:i}}),this},t.prototype.deleteNodeInList=function(t,r){var n=e.formatting.SmartIndenter.getContainingList(r,t);if(!n)return e.Debug.fail("node is not a list element"),this;var a=n.indexOf(r);if(a<0)return this;if(1===n.length)return this.deleteNode(t,r),this;if(a!==n.length-1){var i=e.getTokenAtPosition(t,r.end,!1);if(i&&l(r,i)){var o=e.skipTrivia(t.text,u(t,r,{},h.FullStart),!1,!0),s=n[a+1],c=e.skipTrivia(t.text,u(t,s,{},h.FullStart),!1,!0);this.deleteRange(t,{pos:o,end:c})}}else{var _=e.getTokenAtPosition(t,n[a-1].end,!1);_&&l(r,_)&&this.deleteNodeRange(t,_,r)}return this},t.prototype.replaceRange=function(e,t,r,n){return void 0===n&&(n={}),this.changes.push({sourceFile:e,range:t,options:n,node:r}),this},t.prototype.replaceNode=function(e,t,r,n){void 0===n&&(n={});var a=u(e,t,n,h.Start),i=_(e,t,n);return this.changes.push({sourceFile:e,options:n,useIndentationFromFile:!0,node:r,range:{pos:a,end:i}}),this},t.prototype.replaceNodeRange=function(e,t,r,n,a){void 0===a&&(a={});var i=u(e,t,a,h.Start),o=_(e,r,a);return this.changes.push({sourceFile:e,options:a,useIndentationFromFile:!0,node:n,range:{pos:i,end:o}}),this},t.prototype.insertNodeAt=function(e,t,r,n){return void 0===n&&(n={}),this.changes.push({sourceFile:e,options:n,node:r,range:{pos:t,end:t}}),this},t.prototype.insertNodeBefore=function(e,t,r,n){void 0===n&&(n={});var a=u(e,t,n,h.Start);return this.changes.push({sourceFile:e,options:n,useIndentationFromFile:!0,node:r,range:{pos:a,end:a}}),this},t.prototype.insertNodeAfter=function(t,r,n,a){void 0===a&&(a={}),(e.isStatementButNotDeclaration(r)||149===r.kind||148===r.kind||150===r.kind)&&59!==t.text.charCodeAt(r.end-1)&&this.changes.push({sourceFile:t,options:{},range:{pos:r.end,end:r.end},node:e.createToken(25)});var i=_(t,r,a);return this.changes.push({sourceFile:t,options:a,useIndentationFromFile:!0,node:n,range:{pos:i,end:i}}),this},t.prototype.insertNodeInListAfter=function(t,r,n){var a=e.formatting.SmartIndenter.getContainingList(r,t);if(!a)return e.Debug.fail("node is not a list element"),this;var i=a.indexOf(r);if(i<0)return this;var c=r.getEnd();if(i!==a.length-1){var u=e.getTokenAtPosition(t,r.end,!1);if(u&&l(r,u)){var _=e.getLineAndCharacterOfPosition(t,o(t.text,a[i+1].getFullStart())),p=e.getLineAndCharacterOfPosition(t,u.end),f=void 0,m=void 0;p.line===_.line?(m=u.end,f=d(_.character-p.character)):m=e.getStartPositionOfLine(_.line,t),this.changes.push({sourceFile:t,range:{pos:m,end:a[i+1].getStart(t)},node:n,useIndentationFromFile:!0,options:{prefix:f,suffix:""+e.tokenToString(u.kind)+t.text.substring(u.end,a[i+1].getStart(t))}})}}else{var g=r.getStart(t),y=e.getLineStartPositionForPosition(g,t),v=void 0,h=!1;if(1===a.length)v=26;else{var b=e.findPrecedingToken(r.pos,t);v=l(r,b)?b.kind:26;var k=e.getLineStartPositionForPosition(a[i-1].getStart(t),t);h=k!==y}if(s(t.text,r.end)&&(h=!0),h){this.changes.push({sourceFile:t,range:{pos:c,end:c},node:e.createToken(v),options:{}});var x=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(y,g,t,this.rulesProvider.getFormatOptions()),C=e.skipTrivia(t.text,c,!0,!1);C!==c&&e.isLineBreak(t.text.charCodeAt(C-1))&&C--,this.changes.push({sourceFile:t,range:{pos:C,end:C},node:n,options:{indentation:x,prefix:this.newLineCharacter}})}else this.changes.push({sourceFile:t,range:{pos:c,end:c},node:n,options:{prefix:e.tokenToString(v)+" "}})}return this},t.prototype.getChanges=function(){for(var r=this,n=e.createFileMap(),a=0,i=this.changes;a<i.length;a++){var o=i[a],s=n.get(o.sourceFile.path);s||n.set(o.sourceFile.path,s=[]),s.push(o)}var c=[];return n.forEachValue(function(e){for(var a=n.get(e),i=a[0].sourceFile,o={fileName:i.fileName,textChanges:[]},s=0,u=t.normalize(a);s<u.length;s++){var _=u[s];o.textChanges.push({span:r.computeSpan(_,i),newText:r.computeNewText(_,i)})}c.push(o)}),c},t.prototype.computeSpan=function(t,r){return e.createTextSpanFromBounds(t.range.pos,t.range.end)},t.prototype.computeNewText=function(t,r){if(!t.node)return"";var n=t.options||{},a=p(t.node,r,this.newLine);this.validator&&this.validator(a);var i=this.rulesProvider.getFormatOptions(),o=t.range.pos,s=e.getLineStartPositionForPosition(o,r)===o,c=void 0!==t.options.indentation?t.options.indentation:t.useIndentationFromFile?e.formatting.SmartIndenter.getIndentation(t.range.pos,r,i,s||t.options.prefix===this.newLineCharacter):0,u=void 0!==t.options.delta?t.options.delta:e.formatting.SmartIndenter.shouldIndentChildNode(t.node)?i.indentSize:0,_=f(a,r,c,u,this.rulesProvider);return _=s||void 0!==t.options.indentation?_:_.replace(/^\s+/,""),(n.prefix||"")+_+(n.suffix||"")},t.normalize=function(t){for(var r=e.stableSort(t,function(e,t){return e.range.pos-t.range.pos}),n=0;n<r.length-2;n++)e.Debug.assert(r[n].range.end<=r[n+1].range.pos);return r},t}();t.ChangeTracker=b,t.getNonformattedText=p,t.applyFormatting=f,t.applyChanges=m;var k=function(){function t(t){var r=this;this.lastNonTriviaPosition=0,this.writer=e.createTextWriter(t),this.onEmitNode=function(e,t,a){t&&n(t,r.lastNonTriviaPosition),a(e,t),t&&i(t,r.lastNonTriviaPosition)},this.onBeforeEmitNodeArray=function(e){e&&n(e,r.lastNonTriviaPosition)},this.onAfterEmitNodeArray=function(e){e&&i(e,r.lastNonTriviaPosition)},this.onBeforeEmitToken=function(e){e&&n(e,r.lastNonTriviaPosition)},this.onAfterEmitToken=function(e){e&&i(e,r.lastNonTriviaPosition)}}return t.prototype.setLastNonTriviaPosition=function(t,r){if(r||!g(t)){this.lastNonTriviaPosition=this.writer.getTextPos();for(var n=0;e.isWhiteSpaceLike(t.charCodeAt(t.length-n-1));)n++;this.lastNonTriviaPosition-=n}},t.prototype.write=function(e){this.writer.write(e),this.setLastNonTriviaPosition(e,!1)},t.prototype.writeTextOfNode=function(e,t){this.writer.writeTextOfNode(e,t)},t.prototype.writeLine=function(){this.writer.writeLine()},t.prototype.increaseIndent=function(){this.writer.increaseIndent()},t.prototype.decreaseIndent=function(){this.writer.decreaseIndent()},t.prototype.getText=function(){return this.writer.getText()},t.prototype.rawWrite=function(e){this.writer.rawWrite(e),this.setLastNonTriviaPosition(e,!1)},t.prototype.writeLiteral=function(e){this.writer.writeLiteral(e),this.setLastNonTriviaPosition(e,!0)},t.prototype.getTextPos=function(){return this.writer.getTextPos()},t.prototype.getLine=function(){return this.writer.getLine()},t.prototype.getColumn=function(){return this.writer.getColumn()},t.prototype.getIndent=function(){return this.writer.getIndent()},t.prototype.isAtStartOfLine=function(){return this.writer.isAtStartOfLine()},t.prototype.reset=function(){this.writer.reset(),this.lastNonTriviaPosition=0},t}()}(t=e.textChanges||(e.textChanges={}))}(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=[];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){i.set(e.name,e)}function n(e){var t,r=[];i.forEach(function(e){r.push(e)});for(var n=0,a=r;n<a.length;n++){var o=a[n];if(e.cancellationToken&&e.cancellationToken.isCancellationRequested())return t;var s=o.getAvailableActions(e);s&&s.length&&(c=t||(t=[])).push.apply(c,s)}return t;var c}function a(e,t,r){var n=i.get(t);return n&&n.getEditsForAction(e,r)}var i=e.createMap();t.registerRefactor=r,t.getApplicableRefactors=n,t.getEditsForRefactor=a}(t=e.refactor||(e.refactor={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(r){function n(e,t,r,n){if(!r){var a=c.getIndexInfoOfType(e,t);if(a){var i=c.indexInfoToIndexSignatureDeclaration(a,t,u);n.push(i)}}}function a(e,n,a){var i={description:a,changes:t.newNodesToChanges(n,_,r)};e.push(i)}var i=r.sourceFile,o=r.span.start,s=e.getTokenAtPosition(i,o,!1),c=r.program.getTypeChecker(),u=e.getContainingClass(s);if(u){for(var _=e.getOpenBraceOfClassLike(u,i),l=c.getTypeAtLocation(u),d=e.getClassImplementsHeritageClauseElements(u),p=!!c.getIndexTypeOfType(l,1),f=!!c.getIndexTypeOfType(l,0),m=[],g=0,y=d;g<y.length;g++){var v=y[g],h=c.getTypeAtLocation(v),b=c.getPropertiesOfType(h),k=b.filter(function(t){return!(8&e.getModifierFlags(t.valueDeclaration))}),x=[];n(h,1,p,x),n(h,0,f,x),x=x.concat(t.createMissingMemberNodes(u,k,c));var C=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Implement_interface_0),[v.getText()]);x.length>0&&a(m,x,C)}return m}}t.registerCodeFix({errorCodes:[e.Diagnostics.Class_0_incorrectly_implements_interface_1.code],getCodeActions:r})}(t=e.codefix||(e.codefix={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(r){function n(t,n){var a,o=i(!1);if(o&&(a=[o]),n){if(199===t.kind)return a;var s=t.name.getText(),c=e.createStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier(s),_),e.createIdentifier("undefined"))),u=e.textChanges.ChangeTracker.fromCodeFixContext(r);u.insertNodeAfter(y,t,c,{suffix:r.newLineCharacter});var l={description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Initialize_static_property_0),[_]),changes:u.getChanges()};return(a||(a=[])).push(l),a}var d=e.getFirstConstructorWithBody(t);if(!d)return a;var p=e.createStatement(e.createAssignment(e.createPropertyAccess(e.createThis(),_),e.createIdentifier("undefined"))),f=e.textChanges.ChangeTracker.fromCodeFixContext(r);f.insertNodeAt(y,d.body.getEnd()-1,p,{prefix:r.newLineCharacter,suffix:r.newLineCharacter});var m={description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Initialize_property_0_in_the_constructor),[_]),changes:f.getChanges()};return(a||(a=[])).push(m),a}function a(t,n){var a,o=i(!0);o&&(a=[o]);var s;if(194===c.parent.parent.kind){var u=c.parent.parent,l=c.parent===u.left?u.right:u.left,d=r.program.getTypeChecker(),p=d.getWidenedType(d.getBaseTypeOfLiteralType(d.getTypeAtLocation(l)));s=d.typeToTypeNode(p,t)}s=s||e.createKeywordTypeNode(119);var f=e.createProperty(void 0,n?[e.createToken(115)]:void 0,_,void 0,s,void 0),m=e.textChanges.ChangeTracker.fromCodeFixContext(r);if(m.insertNodeAfter(y,v,f,{suffix:r.newLineCharacter}),(a||(a=[])).push({description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Declare_property_0),[_]),changes:m.getChanges()}),!n){var g=e.createKeywordTypeNode(136),h=e.createParameter(void 0,void 0,void 0,"x",void 0,g,void 0),b=e.createIndexSignature(void 0,void 0,[h],s),k=e.textChanges.ChangeTracker.fromCodeFixContext(r);k.insertNodeAfter(y,v,b,{suffix:r.newLineCharacter}),a.push({description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Add_index_signature_for_property_0),[_]),changes:k.getChanges()})}return a}function i(n){if(181===c.parent.parent.kind){var a=c.parent.parent,i=t.createMethodFromCallExpression(a,_,n,l),o=e.textChanges.ChangeTracker.fromCodeFixContext(r);return o.insertNodeAfter(y,v,i,{suffix:r.newLineCharacter}),{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(l?e.Diagnostics.Declare_method_0:e.Diagnostics.Declare_static_method_0),[_]),changes:o.getChanges()}}}var o=r.sourceFile,s=r.span.start,c=e.getTokenAtPosition(o,s,!1);if(71===c.kind&&e.isPropertyAccessExpression(c.parent)){var u,_=c.getText(o),l=!1;if(99===c.parent.expression.kind){var d=e.getThisContainer(c,!1);if(!e.isClassElement(d))return;u=d.parent,l=u&&e.hasModifier(d,32)}else{var p=r.program.getTypeChecker(),f=c.parent.expression,m=p.getTypeAtLocation(f);if(32768&m.flags){var g=m.symbol;32&g.flags&&(u=g.declarations&&g.declarations[0],m!==p.getDeclaredTypeOfSymbol(g)&&(l=!0))}}if(u&&e.isClassLike(u)){var y=e.getSourceFileOfNode(u),v=e.getOpenBraceOfClassLike(u,y);return e.isInJavaScriptFile(y)?n(u,l):a(u,l)}}}t.registerCodeFix({errorCodes:[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code],getCodeActions:r})}(t=e.codefix||(e.codefix={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t){var r,a=t.sourceFile,i=e.getTokenAtPosition(a,t.span.start,!1),o=t.program.getTypeChecker();if(71===i.kind&&e.isPropertyAccessExpression(i.parent)){var s=o.getTypeAtLocation(i.parent.expression);r=o.getSuggestionForNonexistentProperty(i,s)}else{var c=e.getMeaningFromLocation(i);r=o.getSuggestionForNonexistentSymbol(i,e.getTextOfNode(i),n(c))}if(r)return[{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Change_spelling_to_0),[r]),changes:[{fileName:a.fileName,textChanges:[{span:{start:i.getStart(),length:i.getWidth()},newText:r}]}]}]}function n(e){var t=0;return 4&e&&(t|=1920),2&e&&(t|=793064),1&e&&(t|=107455),t}t.registerCodeFix({errorCodes:[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code],getCodeActions:r})}(t=e.codefix||(e.codefix={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(r){var a=r.sourceFile,i=r.span.start,o=e.getTokenAtPosition(a,i,!1),s=r.program.getTypeChecker();if(e.isClassLike(o.parent)){var c=o.parent,u=e.getClassExtendsHeritageClauseElement(c),_=s.getTypeAtLocation(u),l=s.getPropertiesOfType(_),d=l.filter(n),p=t.createMissingMemberNodes(c,d,s),f=t.newNodesToChanges(p,e.getOpenBraceOfClassLike(c,a),r);if(f&&f.length>0)return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Implement_inherited_abstract_class),changes:f}]}}function n(t){var r=t.getDeclarations();e.Debug.assert(!!(r&&r.length>0));var n=e.getModifierFlags(r[0]);return!(8&n||!(128&n))}t.registerCodeFix({errorCodes:[e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code],getCodeActions:r}),t.registerCodeFix({errorCodes:[e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],getCodeActions:r})}(t=e.codefix||(e.codefix={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){t.registerCodeFix({errorCodes:[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],getCodeActions:function(t){function r(t){if(210===t.kind&&e.isSuperCall(t.expression))return t;if(!e.isFunctionLike(t))return e.forEachChild(t,r)}var n=t.sourceFile,a=e.getTokenAtPosition(n,t.span.start,!1);if(99===a.kind){var i=e.getContainingFunction(a),o=r(i.body);if(o){if(o.expression&&181===o.expression.kind)for(var s=o.expression.arguments,c=0;c<s.length;c++)if(s[c].expression===a)return;var u=e.textChanges.ChangeTracker.fromCodeFixContext(t);return u.insertNodeAfter(n,e.getOpenBrace(i,n),o,{suffix:t.newLineCharacter}),u.deleteNode(n,o),[{description:e.getLocaleSpecificMessage(e.Diagnostics.Make_super_call_the_first_statement_in_the_constructor),changes:u.getChanges()}]}}}})}(t=e.codefix||(e.codefix={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){t.registerCodeFix({errorCodes:[e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code],getCodeActions:function(t){var r=t.sourceFile,n=e.getTokenAtPosition(r,t.span.start,!1);
if(123===n.kind){var a=e.textChanges.ChangeTracker.fromCodeFixContext(t),i=e.createStatement(e.createCall(e.createSuper(),void 0,e.emptyArray));return a.insertNodeAfter(r,e.getOpenBrace(n.parent,r),i,{suffix:t.newLineCharacter}),[{description:e.getLocaleSpecificMessage(e.Diagnostics.Add_missing_super_call),changes:a.getChanges()}]}}})}(t=e.codefix||(e.codefix={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){t.registerCodeFix({errorCodes:[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code],getCodeActions:function(t){var r=t.sourceFile,n=t.span.start,a=e.getTokenAtPosition(r,n,!1),i=e.getContainingClass(a);if(71===a.kind&&e.isClassLike(i)){var o=i.heritageClauses;if(o&&o.length>0){var s=o[0].getFirstToken();if(s&&85===s.kind){var c=e.textChanges.ChangeTracker.fromCodeFixContext(t);c.replaceNode(r,s,e.createToken(108));for(var u=1;u<o.length;u++){var _=o[u].getFirstToken();_&&c.replaceNode(r,_,e.createToken(26))}var l=[{description:e.getLocaleSpecificMessage(e.Diagnostics.Change_extends_to_implements),changes:c.getChanges()}];return l}}}}})}(t=e.codefix||(e.codefix={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){t.registerCodeFix({errorCodes:[e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code],getCodeActions:function(t){var r=t.sourceFile,n=e.getTokenAtPosition(r,t.span.start,!1);if(71===n.kind){var a=e.textChanges.ChangeTracker.fromCodeFixContext(t);return a.replaceNode(r,n,e.createPropertyAccess(e.createThis(),n)),[{description:e.getLocaleSpecificMessage(e.Diagnostics.Add_this_to_unresolved_variable),changes:a.getChanges()}]}}})}(t=e.codefix||(e.codefix={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){t.registerCodeFix({errorCodes:[e.Diagnostics._0_is_declared_but_never_used.code,e.Diagnostics.Property_0_is_declared_but_never_used.code],getCodeActions:function(t){function r(){return e.isDeclarationName(f)?o(f.parent):e.isLiteralComputedPropertyDeclarationName(f)?o(f.parent.parent):void 0}function n(t){var r=t.getStart(d,!1);return{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Prefix_0_with_an_underscore),{0:f.getText()}),changes:[{fileName:d.path,textChanges:[{span:{start:r,length:0},newText:"_"}]}]}}function a(t){var a=t.parent;switch(a.kind){case 226:return i(t,a);case 145:var _=a.parent.typeParameters;if(1===_.length){var l=e.getTokenAtPosition(d,_.pos-1,!1),p=e.getTokenAtPosition(d,_.end,!1);return e.Debug.assert(27===l.kind),e.Debug.assert(29===p.kind),[u(l,p)]}return[c(a)];case 146:var f=a.parent;return[1===f.parameters.length?o(a):c(a),n(t)];case 237:var m=e.getAncestor(t,237);return[o(m)];case 242:var g=a.parent;if(1===g.elements.length){var y=e.getAncestor(t,238);return[o(y)]}return[c(a)];case 239:var v=a;if(v.namedBindings){var h=v.name.getStart(d),p=e.getTokenAtPosition(d,v.name.end,!1);return p&&26===p.kind?[s({pos:h,end:e.skipTrivia(d.text,p.end,!1,!0)})]:[o(v.name)]}var b=e.getAncestor(v,238);return[o(b)];case 240:var k=a;if(k.name!==t||k.parent.name){var l=e.getTokenAtPosition(d,k.pos-1,!1);if(l&&26===l.kind){var x=e.textChanges.getAdjustedStartPosition(d,l,{},e.textChanges.Position.FullStart);return[s({pos:x,end:k.end})]}return[s(k)]}var b=e.getAncestor(k,238);return[o(b)];default:return[r()]}}function i(t,r){switch(r.parent.parent.kind){case 214:var a=r.parent.parent,i=a.initializer;return[1===i.declarations.length?o(i):c(r)];case 216:var s=r.parent.parent;e.Debug.assert(227===s.initializer.kind);var u=s.initializer;return[_(u.declarations[0],e.createObjectLiteral()),n(t)];case 215:return[n(t)];default:var l=r.parent.parent;return 1===l.declarationList.declarations.length?[o(l)]:[c(r)]}}function o(r){return l(e.textChanges.ChangeTracker.fromCodeFixContext(t).deleteNode(d,r))}function s(r){return l(e.textChanges.ChangeTracker.fromCodeFixContext(t).deleteRange(d,r))}function c(r){return l(e.textChanges.ChangeTracker.fromCodeFixContext(t).deleteNodeInList(d,r))}function u(r,n){return l(e.textChanges.ChangeTracker.fromCodeFixContext(t).deleteNodeRange(d,r,n))}function _(r,n){return l(e.textChanges.ChangeTracker.fromCodeFixContext(t).replaceNode(d,r,n))}function l(t){return{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Remove_declaration_for_Colon_0),{0:f.getText()}),changes:t.getChanges()}}var d=t.sourceFile,p=t.span.start,f=e.getTokenAtPosition(d,p,!1);switch(21===f.kind&&(f=e.getTokenAtPosition(d,p+1,!1)),f.kind){case 71:return a(f);case 149:case 240:return[o(f.parent)];default:return[r()]}}})}(t=e.codefix||(e.codefix={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t){function r(e){function t(e){for(var t=e;t;){if(238===t.kind)return t;if(237===t.kind)return t;t=t.parent}}var r=n(e),a=y[r];if(a)return a;for(var i=[],o=0,s=_.imports;o<s.length;o++){var c=s[o],u=l.getSymbolAtLocation(c);u===e&&i.push(t(c))}return y[r]=i,i}function n(t){return 8388608&t.flags?e.getSymbolId(l.getAliasedSymbol(t)):e.getSymbolId(t)}function i(t,r){var n=t.getDeclarations();return!!n&&e.some(t.declarations,function(t){return!!(e.getMeaningFromDeclaration(t)&r)})}function o(n,a,i,o){function l(t){function r(e){return e.moduleReference&&248===e.moduleReference.kind?e.moduleReference.expression.getText():e.moduleReference.getText()}function n(t){var r=t.namedBindings,n=e.createImportSpecifier(void 0,e.createIdentifier(m));if(!r||0===r.elements.length){var a=e.createImportClause(t.name,e.createNamedImports([n]));return s().replaceNode(_,t,a).getChanges()}return s().insertNodeInListAfter(_,r.elements[r.elements.length-1],n).getChanges()}function a(t){var r;return r=238===t.kind?t.importClause.namedBindings.name.getText():t.name.getText(),r=e.stripQuotes(r),c(e.Diagnostics.Change_0_to_1,[m,r+"."+m],s().replaceNode(_,f,e.createPropertyAccess(e.createIdentifier(r),m)).getChanges(),"CodeChange")}for(var i,u,l,p=[],g=0,y=t;g<y.length;g++){var v=y[g];if(238===v.kind){var h=v.importClause&&v.importClause.namedBindings;h&&240===h.kind?i=v:u=v,l=v.moduleSpecifier.getText()}else i=v,l=r(v)}if(i&&p.push(a(i)),!o&&u&&u.importClause&&(u.importClause.name||u.importClause.namedBindings)){var b=n(u.importClause),k=e.stripQuotes(u.moduleSpecifier.getText());p.push(c(e.Diagnostics.Add_0_to_existing_import_declaration_from_1,[m,k],b,"InsertingIntoExistingImport",k))}else p.push(d(l));return p}function d(r){function l(){function r(){var t=n.valueDeclaration;if(e.isModuleDeclaration(t)&&e.isStringLiteral(t.name))return t.name.text}function a(){if(p.baseUrl){var t=m(u,p.baseUrl);if(t){var r=e.removeFileExtension(t);if(t=f(t),p.paths)for(var n in p.paths)for(var a=0,i=p.paths[n];a<i.length;a++){var o=i[a],s=o.indexOf("*");if(0!==s||1!==o.length)if(s!==-1){var c=o.substr(0,s),_=o.substr(s+1);if(t.length>=c.length+_.length&&e.startsWith(t,c)&&e.endsWith(t,_)){var l=t.substr(c.length,t.length-_.length);return n.replace("*",l)}}else if(o===t||o===r)return n}return t}}}function i(){if(p.rootDirs){var t=d(u,p.rootDirs),r=d(l,p.rootDirs);if(void 0!==t){var n=void 0!==r?g(t,r):t;return e.removeFileExtension(n)}}}function o(){var r=e.getEffectiveTypeRoots(p,t.host);if(r)for(var n=e.map(r,function(t){return e.toPath(t,void 0,h)}),a=0,i=n;a<i.length;a++){var o=i[a];if(e.startsWith(u,o)){var s=u.substring(o.length+1);return f(s)}}}function s(){if(e.getEmitModuleResolutionKind(p)===e.ModuleResolutionKind.NodeJs){var r=u.indexOf("node_modules");if(!(r<0)){var n;if(n=0===l.indexOf(u.substring(0,r-1))?u.substring(r+13):g(u,l),n=e.removeFileExtension(n),e.endsWith(n,"/index"))n=e.getDirectoryPath(n);else try{var a=e.getDirectoryPath(u),i=JSON.parse(t.host.readFile(e.combinePaths(a,"package.json")));if(i){var o=i.main||i.typings;if(o){var s=e.toPath(o,a,h);e.removeFileExtension(s)===e.removeFileExtension(u)&&(n=e.getDirectoryPath(n))}}}catch(c){}return e.getPackageNameFromAtTypesDirectory(n)}}}var c=_.fileName,u=n.valueDeclaration.getSourceFile().fileName,l=e.getDirectoryPath(c),p=t.program.getCompilerOptions();return r()||o()||s()||a()||i()||e.removeFileExtension(g(u,l))}function d(e,t){for(var r=0,n=t;r<n.length;r++){var a=n[r],i=m(e,a);if(void 0!==i)return i}}function f(t){return t=e.removeFileExtension(t),e.endsWith(t,"/index")&&(t=t.substr(0,t.length-6)),t}function m(t,r){var n=e.getRelativePathToDirectoryOrUrl(r,t,r,h,!1);return e.isRootedDiskPath(n)||e.startsWith(n,"..")?void 0:n}function g(t,r){var n=e.getRelativePathToDirectoryOrUrl(r,t,r,h,!1);return e.moduleHasNonRelativeName(n)?"./"+n:n}if(!u)for(var y=_.statements.length-1;y>=0;y--){var v=_.statements[y];if(237===v.kind||238===v.kind){u=v;break}}var h=e.createGetCanonicalFileName(p),b=e.stripQuotes(r||l()),k=s(),x=i?e.createImportClause(e.createIdentifier(a),void 0):o?e.createImportClause(void 0,e.createNamespaceImport(e.createIdentifier(a))):e.createImportClause(void 0,e.createNamedImports([e.createImportSpecifier(void 0,e.createIdentifier(a))])),C=e.createImportDeclaration(void 0,void 0,x,e.createLiteral(b));return u?k.insertNodeAfter(_,u,C,{suffix:t.newLineCharacter}):k.insertNodeAt(_,_.getStart(),C,{suffix:""+t.newLineCharacter+t.newLineCharacter}),c(e.Diagnostics.Import_0_from_1,[a,'"'+b+'"'],k.getChanges(),"NewImport",b)}var g=r(n);return g.length>0?l(g):[d()]}function s(){return e.textChanges.ChangeTracker.fromCodeFixContext(t)}function c(t,r,n,a,i){return{description:e.formatMessage.apply(void 0,[void 0,t].concat(r)),changes:n,kind:a,moduleSpecifier:i}}var u,_=t.sourceFile,l=t.program.getTypeChecker(),d=t.program.getSourceFiles(),p=!!t.host.useCaseSensitiveFileNames&&t.host.useCaseSensitiveFileNames(),f=e.getTokenAtPosition(_,t.span.start,!1),m=f.getText(),g=new a,y=[],v=e.getMeaningFromLocation(f);if(t.errorCode===e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code){var h=l.getSymbolAtLocation(f),b=void 0,k=void 0;return 8388608&h.flags?(b=l.getAliasedSymbol(h),k=m):e.isJsxOpeningLikeElement(f.parent)&&f.parent.tagName===f?(b=l.getAliasedSymbol(l.resolveNameAtLocation(f,l.getJsxNamespace(),107455)),k=b.name):e.Debug.fail("Either the symbol or the JSX namespace should be a UMD global if we got here"),o(b,k,!1,!0)}for(var x=l.getAmbientModules(),C=0,D=d;C<D.length;C++){var S=D[C];S!==_&&e.isExternalOrCommonJsModule(S)&&x.push(S.symbol)}for(var T=0,E=x;T<E.length;T++){var N=E[T];t.cancellationToken.throwIfCancellationRequested();var A=l.tryGetMemberInModuleExports("default",N);if(A){var w=e.getLocalSymbolForExportDefault(A);if(w&&w.name===m&&i(w,v)){var P=n(w);g.addActions(P,o(N,m,!0))}}var F=l.tryGetMemberInModuleExports(m,N);if(F&&i(F,v)){var P=n(F);g.addActions(P,o(N,m))}}return g.getAllActions()}t.registerCodeFix({errorCodes:[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_namespace_0.code,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code],getCodeActions:r});var n;!function(e){e[e.Better=0]="Better",e[e.Equal=1]="Equal",e[e.Worse=2]="Worse"}(n||(n={}));var a=function(){function t(){this.symbolIdToActionMap=[]}return t.prototype.addAction=function(e,t){if(t){var r=this.symbolIdToActionMap[e];if(!r)return void(this.symbolIdToActionMap[e]=[t]);if("CodeChange"===t.kind)return void r.push(t);for(var a=[],i=0,o=this.symbolIdToActionMap[e];i<o.length;i++){var s=o[i];if("CodeChange"!==s.kind)switch(this.compareModuleSpecifiers(s.moduleSpecifier,t.moduleSpecifier)){case n.Better:if("NewImport"===t.kind)return;case n.Equal:a.push(s);break;case n.Worse:continue}else a.push(s)}a.push(t),this.symbolIdToActionMap[e]=a}},t.prototype.addActions=function(e,t){for(var r=0,n=t;r<n.length;r++){var a=n[r];this.addAction(e,a)}},t.prototype.getAllActions=function(){var t=[];for(var r in this.symbolIdToActionMap)t=e.concatenate(t,this.symbolIdToActionMap[r]);return t},t.prototype.compareModuleSpecifiers=function(t,r){if(t===r)return n.Equal;if(0===r.indexOf(t))return n.Better;if(0===t.indexOf(r))return n.Worse;if(e.isExternalModuleNameRelative(t)&&e.isExternalModuleNameRelative(r)){var a=new RegExp(e.directorySeparator,"g"),i=(t.match(a)||[]).length,o=(r.match(a)||[]).length;return i<o?n.Better:i===o?n.Equal:n.Worse}return n.Equal},t}()}(t=e.codefix||(e.codefix={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(){var t=e.Diagnostics;return Object.keys(t).filter(function(r){return t[r]&&t[r].category===e.DiagnosticCategory.Error}).map(function(e){return t[e].code})}function n(t,r,n){var a=e.getLineAndCharacterOfPosition(t,r).line,i=e.getStartPositionOfLine(a,t),o=e.getFirstNonSpaceCharacterPosition(t.text,i);if(!e.isInComment(t,o)&&!e.isInString(t,o)&&!e.isInTemplateString(t,o)){var s=e.getTouchingToken(t,o,!1),c=e.getLeadingCommentRangesOfNode(s,t);if(!c||!c.length||c[0].pos>=o)return{span:{start:o,length:0},newText:"// @ts-ignore"+n}}return{span:{start:r,length:0},newText:(r===o?"":n)+"// @ts-ignore"+n}}function a(t){var r=t.sourceFile,a=t.program,i=t.newLineCharacter,o=t.span;if(e.isInJavaScriptFile(r)&&e.isCheckJsEnabledForFile(r,a.getCompilerOptions()))return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Ignore_this_error_message),changes:[{fileName:r.fileName,textChanges:[n(r,o.start,i)]}]},{description:e.getLocaleSpecificMessage(e.Diagnostics.Disable_checking_for_this_file),changes:[{fileName:r.fileName,textChanges:[{span:{start:r.checkJsDirective?r.checkJsDirective.pos:0,length:r.checkJsDirective?r.checkJsDirective.end-r.checkJsDirective.pos:0},newText:"// @ts-nocheck"+i}]}]}]}t.registerCodeFix({errorCodes:r(),getCodeActions:a})}(t=e.codefix||(e.codefix={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r,n){for(var a=n.sourceFile,i=e.textChanges.ChangeTracker.fromCodeFixContext(n),o=0,s=t;o<s.length;o++){var c=s[o];i.insertNodeAfter(a,r,c,{suffix:n.newLineCharacter})}var u=i.getChanges();if(!e.some(u))return u;e.Debug.assert(1===u.length);var _=[{fileName:u[0].fileName,textChanges:[{span:u[0].textChanges[0].span,newText:u[0].textChanges.reduce(function(e,t){return e+t.newText},"")}]}];return _}function n(e,t,r){for(var n=e.symbol.members,i=t.filter(function(e){return!n.has(e.getName())}),o=[],s=0,c=i;s<c.length;s++){var u=c[s],_=a(u,e,r);_&&(Array.isArray(_)?o=o.concat(_):o.push(_))}return o}function a(t,r,n){function a(t,r,a){var i=n.signatureToSignatureDeclaration(t,151,r,e.NodeBuilderFlags.SuppressAnyReturnType);return i&&(i.decorators=void 0,i.modifiers=d,i.name=c,i.questionToken=f?e.createToken(55):void 0,i.body=a),i}var i=t.getDeclarations();if(i&&i.length){var o=i[0],c=e.getSynthesizedClone(e.getNameOfDeclaration(o)),l=_(e.getModifierFlags(o)),d=l?e.createNodeArray([l]):void 0,p=n.getWidenedType(n.getTypeOfSymbolAtLocation(t,r)),f=!!(67108864&t.flags);switch(o.kind){case 153:case 154:case 148:case 149:var m=n.typeToTypeNode(p,r),g=e.createProperty(void 0,d,c,f?e.createToken(55):void 0,m,void 0);return g;case 150:case 151:var y=n.getSignaturesOfType(p,0);if(!e.some(y))return;if(1===i.length){e.Debug.assert(1===y.length);var v=y[0];return a(v,r,u())}for(var h=[],b=0;b<y.length;b++){var v=y[b],k=a(v,r);k&&h.push(k)}if(i.length>y.length){var v=n.getSignatureFromDeclaration(i[i.length-1]),k=a(v,r,u());k&&h.push(k)}else{e.Debug.assert(i.length===y.length);var x=s(y,c,f,d);h.push(x)}return h;default:return}}}function i(t,r,n,a){var i,s=o(t.arguments.length,void 0,void 0,n);if(n)for(var c=e.length(t.typeArguments),_=0;_<c;_++){var l=c<8?String.fromCharCode(84+_):"T"+_,d=e.createTypeParameterDeclaration(l,void 0,void 0);(i?i:i=[]).push(d)}var p=e.createMethod(void 0,a?[e.createToken(115)]:void 0,void 0,r,void 0,i,s,n?e.createKeywordTypeNode(119):void 0,u());return p}function o(t,r,n,a){for(var i=[],o=0;o<t;o++){var s=e.createParameter(void 0,void 0,void 0,r&&r[o]||"arg"+o,void 0!==n&&o>=n?e.createToken(55):void 0,a?e.createKeywordTypeNode(119):void 0,void 0);i.push(s)}return i}function s(t,r,n,a){for(var i=t[0],s=t[0].minArgumentCount,u=!1,_=0;_<t.length;_++){var l=t[_];s=Math.min(l.minArgumentCount,s),l.hasRestParameter&&(u=!0),l.parameters.length>=i.parameters.length&&(!l.hasRestParameter||i.hasRestParameter)&&(i=l)}var d=i.parameters.length-(i.hasRestParameter?1:0),p=i.parameters.map(function(e){return e.getName()}),f=o(d,p,s,!0);if(u){var m=e.createArrayTypeNode(e.createKeywordTypeNode(119)),g=e.createParameter(void 0,void 0,e.createToken(24),p[d]||"rest",d>=s?e.createToken(55):void 0,m,void 0);f.push(g)}return c(a,r,n,void 0,f,void 0)}function c(t,r,n,a,i,o){return e.createMethod(void 0,t,void 0,r,n?e.createToken(55):void 0,a,i,o,u())}function u(){return e.createBlock([e.createThrow(e.createNew(e.createIdentifier("Error"),void 0,[e.createLiteral("Method not implemented.")]))],!0)}function _(t){return 4&t?e.createToken(114):16&t?e.createToken(113):void 0}t.newNodesToChanges=r,t.createMissingMemberNodes=n,t.createMethodFromCallExpression=i,t.createStubbedMethod=c}(t=e.codefix||(e.codefix={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t){var r=t.startPosition,n=e.getTokenAtPosition(t.file,r,!1),o=t.program.getTypeChecker(),s=o.getSymbolAtLocation(n);if(s&&e.isDeclarationOfFunctionOrClassExpression(s)&&(s=s.valueDeclaration.initializer.symbol),s&&16&s.flags&&s.members&&s.members.size>0)return[{name:i.name,description:i.description,actions:[{description:i.description,name:a}]}]}function n(t,r){function n(t,r){void 0===r&&(r=!1),f.some(function(r){return e.isNodeDescendantOf(t,r)})||(f.push(t),r?m.push(function(){return h.deleteNodeInList(u,t)}):m.push(function(){return h.deleteNode(u,t)}))}function i(t){function r(t,r){return e.isFunctionLike(r)}function a(t,a){if(4&t.flags){var i=t.valueDeclaration,o=i.parent;if(r(i,o.right)){var s=o.parent&&210===o.parent.kind?o.parent:o;if(n(s),!o.right)return e.createProperty([],a,t.name,void 0,void 0,void 0);switch(o.right.kind){case 186:var c=o.right;return e.createMethod(void 0,a,void 0,i.name,void 0,void 0,c.parameters,void 0,c.body);case 187:var _=o.right,l=_.body,d=void 0;if(207===l.kind)d=l;else{var p=l;d=e.createBlock([e.createReturn(p)])}return e.createMethod(void 0,a,void 0,i.name,void 0,void 0,_.parameters,void 0,d);default:if(e.isSourceFileJavaScript(u))return;return e.createProperty(void 0,a,i.name,void 0,void 0,o.right)}}}}var i=[];return t.members&&t.members.forEach(function(e){var t=a(e,void 0);t&&i.push(t)}),t.exports&&t.exports.forEach(function(t){var r=a(t,[e.createToken(115)]);r&&i.push(r)}),i}function o(t){var r=t.initializer;if(r&&186===r.kind&&71===t.name.kind){var n=i(r.symbol);return r.body&&n.unshift(e.createConstructor(void 0,void 0,r.parameters,r.body)),e.createClassDeclaration(void 0,void 0,t.name,void 0,void 0,n)}}function s(t){var r=i(d);return t.body&&r.unshift(e.createConstructor(void 0,void 0,t.parameters,t.body)),e.createClassDeclaration(void 0,void 0,t.name,void 0,void 0,r)}if(a===r){var c=t.startPosition,u=t.file,_=t.program.getTypeChecker(),l=e.getTokenAtPosition(u,c,!1),d=_.getSymbolAtLocation(l),p=t.rulesProvider.getFormatOptions().newLineCharacter,f=[],m=[];if(19&d.flags){var g,y,v=d.valueDeclaration,h=e.textChanges.ChangeTracker.fromCodeFixContext(t);switch(v.kind){case 228:g=v,n(v),y=s(v);break;case 226:g=v.parent.parent,1===v.parent.declarations.length?n(g):n(v,!0),y=o(v)}if(y){h.insertNodeAfter(u,g,y,{suffix:p});for(var b=0,k=m;b<k.length;b++){var x=k[b];x()}return{edits:h.getChanges()}}}}}var a="convert",i={name:"Convert to ES2015 class",description:e.Diagnostics.Convert_function_to_an_ES2015_class.message,getEditsForAction:n,getAvailableActions:r};t.registerRefactor(i)}(t=e.refactor||(e.refactor={}))}(ts||(ts={}));var ts;!function(e){function t(t,r,n,a){var i=e.isNodeKind(t)?new b(t,r,n):71===t?new D(71,r,n):new C(t,r,n);return i.parent=a,i}function r(){return{getNodeConstructor:function(){return b},getTokenConstructor:function(){return C},getIdentifierConstructor:function(){return D},getSourceFileConstructor:function(){return E},getSymbolConstructor:function(){return x},getTypeConstructor:function(){return S},getSignatureConstructor:function(){return T},getSourceMapSourceConstructor:function(){return N}}}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=se.getSourceFile(e);if(!t)throw new Error("Could not find file: '"+e+"'.");return t}function o(e){return h.ensureUpToDate(e),h}function s(){function n(t){return i(t,e.toPath(t,de,pe))}function i(t,n){e.Debug.assert(void 0!==_);var a=_.getOrCreateEntryByPath(t,n);if(a){if(!p){var i=se&&se.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,de,pe);return t.version===_.getVersion(r)}function s(){if(!se)return!1;var t=_.getRootFileNames();if(se.getSourceFiles().length!==t.length)return!1;for(var r=0,n=t;r<n.length;r++){var a=n[r];if(!o(se.getSourceFile(a)))return!1}return e.compareDataObjects(se.getCompilerOptions(),_.compilationSettings())}if(t.getProjectVersion){var c=t.getProjectVersion();if(c){if(ce===c)return;ce=c}}var u=t.getTypeRootsVersion?t.getTypeRootsVersion():0;ue!==u&&(a("TypeRoots version has changed; provide new program"),se=void 0,ue=u);var _=new A(t,pe);if(!s()){var l=se&&se.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 le},getCanonicalFileName:pe,useCaseSensitiveFileNames:function(){return _e},getNewLine:function(){return e.getNewLineOrDefaultFromHost(t)},getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return de},fileExists:function(r){var n=e.toPath(r,de,pe);return _.containsEntryByPath(n)?!!_.getEntryByPath(n):t.fileExists&&t.fileExists(r)},readFile:function(r){var n=e.toPath(r,de,pe);if(_.containsEntryByPath(n)){var a=_.getEntryByPath(n);return a&&a.scriptSnapshot.getText(0,a.scriptSnapshot.getLength())}return t.readFile&&t.readFile(r)},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,se);if(se)for(var y=se.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,se=g,se.getTypeChecker()}}function c(){return s(),se}function u(){se=void 0}function _(){se&&(e.forEach(se.getSourceFiles(),function(e){return r.releaseDocument(e.fileName,se.getCompilerOptions())}),se=void 0),t=void 0}function l(e){return s(),se.getSyntacticDiagnostics(i(e),le)}function d(t){s();var r=i(t),n=se.getSemanticDiagnostics(r,le);if(!se.getCompilerOptions().declaration)return n;var a=se.getDeclarationDiagnostics(r,le);return e.concatenate(n,a)}function p(){return s(),se.getOptionsDiagnostics(le).concat(se.getGlobalDiagnostics(le))}function f(r,n){return s(),e.Completions.getCompletionsAtPosition(t,se.getTypeChecker(),a,se.getCompilerOptions(),i(r),n)}function m(t,r,n){return s(),e.Completions.getCompletionEntryDetails(se.getTypeChecker(),a,se.getCompilerOptions(),i(t),r,n)}function g(t,r,n){return s(),e.Completions.getCompletionEntrySymbol(se.getTypeChecker(),a,se.getCompilerOptions(),i(t),r,n)}function y(t,r){s();var n=i(t),a=e.getTouchingPropertyName(n,r,!0);if(a!==n&&!e.isLabelName(a)){var o=se.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 71:case 179:case 143:case 99:case 169:case 97: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(se,i(t),r)}function b(t,r){return s(),e.GoToDefinition.getTypeDefinitionAtPosition(se.getTypeChecker(),i(t),r)}function k(t,r){return s(),e.FindAllReferences.getImplementationsAtPosition(se,le,se.getSourceFiles(),i(t),r)}function x(t,r){var n=D(t,r);if(n){var a=pe(e.normalizeSlashes(t));n=e.filter(n,function(t){return pe(e.normalizeSlashes(t.fileName))===a})}return n}function C(t,r,n){s();var a=e.map(n,function(e){return se.getSourceFile(e)}),o=i(t);return e.DocumentHighlights.getDocumentHighlights(se,le,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,isInString:c.isInString})}return r}}return n(C(t,r,[t]))}function S(e,t,r,n){return E(e,t,{findInStrings:r,findInComments:n,isForRename:!0})}function T(e,t){return E(e,t)}function E(t,r,n){return s(),e.FindAllReferences.findReferencedEntries(se,le,se.getSourceFiles(),i(t),r,n)}function N(t,r){return s(),e.FindAllReferences.findReferencedSymbols(se,le,se.getSourceFiles(),i(t),r)}function F(t,r,n,a){s();var o=n?[i(n)]:se.getSourceFiles();return e.NavigateTo.getNavigateToItems(o,se.getTypeChecker(),le,t,r,a)}function O(e,r){function n(e,t,r){o.push({name:e,writeByteOrderMark:r,text:t})}s();var a=i(e),o=[],c=t.getCustomTransformers&&t.getCustomTransformers(),u=se.emit(a,n,le,r,c);return{outputFiles:o,emitSkipped:u.emitSkipped}}function I(t,r){s();var n=i(t);return e.SignatureHelp.getSignatureHelpItems(se,n,r,le)}function R(e){return oe.getCurrentSourceFile(e)}function M(e){return R(e)}function L(t,r,n){var a=oe.getCurrentSourceFile(t),i=e.getTouchingPropertyName(a,r,!1);if(i!==a){switch(i.kind){case 179:case 143:case 9:case 86:case 101:case 95:case 97:case 99:case 169:case 71:break;default:return}for(var o=i;;)if(e.isRightSideOfPropertyAccess(o)||e.isRightSideOfQualifiedName(o))o=o.parent;else{if(!e.isNameOfModuleDeclaration(o))break;if(233!==o.parent.parent.kind||o.parent.parent.body!==o.parent)break;o=o.parent.parent.name}return e.createTextSpanFromBounds(o.getStart(),i.getEnd())}}function B(t,r){var n=oe.getCurrentSourceFile(t);return e.BreakpointResolver.spanInSourceFileAtLocation(n,r)}function J(t){return e.NavigationBar.getNavigationBarItems(oe.getCurrentSourceFile(t),le)}function z(t){return e.NavigationBar.getNavigationTree(oe.getCurrentSourceFile(t),le)}function K(r){var n=e.getScriptKind(r,t);return 3===n||4===n}function j(t,r){return K(t)?(s(),e.getSemanticClassifications(se.getTypeChecker(),le,i(t),se.getClassifiableNames(),r)):[]}function V(t,r){return K(t)?(s(),e.getEncodedSemanticClassifications(se.getTypeChecker(),le,i(t),se.getClassifiableNames(),r)):{spans:[],endOfLineState:0}}function U(t,r){return e.getSyntacticClassifications(le,oe.getCurrentSourceFile(t),r)}function q(t,r){return e.getEncodedSyntacticClassifications(le,oe.getCurrentSourceFile(t),r)}function W(t){var r=oe.getCurrentSourceFile(t);return e.OutliningElementsCollector.collectElements(r,le)}function H(t,r){function n(e){switch(e.kind){case 17:return 18;case 19:return 20;case 21:return 22;case 27:return 29;case 18:return 17;case 20:return 19;case 22:return 21;case 29:return 27}}var a=oe.getCurrentSourceFile(t),i=[],o=e.getTouchingToken(a,r,!1);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 G(t,r,i){var o=e.timestamp(),s=n(i),c=oe.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 X(t,r,a,i){var s=oe.getCurrentSourceFile(t),c=n(i);return e.formatting.formatSelection(r,a,s,o(c),c)}function Q(t,r){var a=oe.getCurrentSourceFile(t),i=n(r);return e.formatting.formatDocument(a,o(i),i)}function Y(t,r,a,i){var s=oe.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 Z(r,n,a,c,u){s();var _=i(r),l={start:n,length:a-n},d=e.getNewLineOrDefaultFromHost(t),p=[];return e.forEach(e.deduplicate(c),function(r){le.throwIfCancellationRequested();var n={errorCode:r,sourceFile:_,span:l,program:se,newLineCharacter:d,host:t,cancellationToken:le,rulesProvider:o(u)},a=e.codefix.getFixes(n);a&&(p=p.concat(a))}),p}function $(r,n){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(t),oe.getCurrentSourceFile(r),n)}function ee(t,r,n){if(60===n)return!1;var a=oe.getCurrentSourceFile(t);return!e.isInString(a,r)&&(e.isInsideJsxElementOrAttribute(a,r)?123===n:!e.isInTemplateString(a,r))}function te(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);le.throwIfCancellationRequested();var u=c.text,_=[];if(r.length>0)for(var l=a(),d=void 0;d=l.exec(u);){le.throwIfCancellationRequested();var p=3;e.Debug.assert(d.length===r.length+p);var f=d[1],m=d.index+f.length;if(e.isInComment(c,m)){for(var g=void 0,y=0;y<r.length;y++)d[y+p]&&(g=r[y]);if(e.Debug.assert(void 0!==g),!o(u.charCodeAt(m+g.text.length))){var v=d[2];_.push({descriptor:g,message:v,position:m})}}}return _}function re(r,n){
s();var a=t.getDefaultLibFileName(t.getCompilationSettings());return e.Rename.getRenameInfo(se.getTypeChecker(),a,pe,i(r),n)}function ne(e,r,n){var a="number"==typeof r?[r,void 0]:[r.pos,r.end],i=a[0],s=a[1];return{file:e,startPosition:i,endPosition:s,program:c(),newLineCharacter:t.getNewLine(),rulesProvider:o(n),cancellationToken:le}}function ae(t,r){s();var n=i(t);return e.refactor.getApplicableRefactors(ne(n,r))}function ie(t,r,n,a,o){s();var c=i(t);return e.refactor.getEditsForRefactor(ne(c,n,r),a,o)}void 0===r&&(r=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory()));var oe=new w(t);h=h||new e.formatting.RulesProvider;var se,ce,ue=0,_e=t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),le=new P(t.getCancellationToken&&t.getCancellationToken()),de=t.getCurrentDirectory();!e.localizedDiagnosticMessages&&t.getLocalizedDiagnosticMessages&&(e.localizedDiagnosticMessages=t.getLocalizedDiagnosticMessages());var pe=e.createGetCanonicalFileName(_e);return{dispose:_,cleanupSemanticCache:u,getSyntacticDiagnostics:l,getSemanticDiagnostics:d,getCompilerOptionsDiagnostics:p,getSyntacticClassifications:U,getSemanticClassifications:j,getEncodedSyntacticClassifications:q,getEncodedSemanticClassifications:V,getCompletionsAtPosition:f,getCompletionEntryDetails:m,getCompletionEntrySymbol:g,getSignatureHelpItems:I,getQuickInfoAtPosition:y,getDefinitionAtPosition:v,getImplementationAtPosition:k,getTypeDefinitionAtPosition:b,getReferencesAtPosition:T,findReferences:N,getOccurrencesAtPosition:x,getDocumentHighlights:C,getNameOrDottedNameSpan:L,getBreakpointStatementAtPosition:B,getNavigateToItems:F,getRenameInfo:re,findRenameLocations:S,getNavigationBarItems:J,getNavigationTree:z,getOutliningSpans:W,getTodoComments:te,getBraceMatchingAtPosition:H,getIndentationAtPosition:G,getFormattingEditsForRange:X,getFormattingEditsForDocument:Q,getFormattingEditsAfterKeystroke:Y,getDocCommentTemplateAtPosition:$,isValidBraceCompletionAtPosition:ee,getCodeFixesAtPosition:Z,getEmitOutput:O,getNonBoundSourceFile:R,getSourceFile:M,getProgram:c,getApplicableRefactors:ae,getEditsForRefactor:ie}}function d(e){return e.nameTable||p(e),e.nameTable}function p(t){function r(t){switch(t.kind){case 71:n(t.text,t);break;case 9:case 8:(e.isDeclarationName(t)||248===t.parent.kind||y(t)||e.isLiteralComputedPropertyDeclarationName(t))&&n(t.text,t);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)}}}function n(e,t){a.set(e,void 0===a.get(e)?t.pos:-1)}var a=e.createMap();r(t),t.nameTable=a}function f(e){switch(e.kind){case 253:case 255:case 261:case 262:case 151:case 153:case 154:return!0}return!1}function m(e){switch(e.kind){case 9:case 8:if(144===e.parent.kind)return f(e.parent.parent)?e.parent.parent:void 0;case 71:return!f(e.parent)||178!==e.parent.parent.kind&&254!==e.parent.parent.kind||e.parent.name!==e?void 0:e.parent}}function g(t,r){var n=r.parent,a=t.getContextualType(n),i=e.getTextOfPropertyName(r.name);if(i&&a){var o=[],s=a.getProperty(i);if(65536&a.flags)return e.forEach(a.types,function(e){var t=e.getProperty(i);t&&o.push(t)}),o;if(s)return o.push(s),o}}function y(e){return e&&e.parent&&180===e.parent.kind&&e.parent.argumentExpression===e}function v(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. ")}e.servicesVersion="0.5";var h,b=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){for(e.scanner.setTextPos(n);n<a;){var i=e.scanner.scan();e.Debug.assert(1!==i);var o=e.scanner.getTextPos();o<=a&&r.push(t(i,n,o,this)),n=o}return n},r.prototype.createSyntaxList=function(e){var r=t(295,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=this;if(!e.isNodeKind(this.kind))return void(this._children=e.emptyArray);if(e.isJSDocCommentContainingNode(this)){var n=[];return this.forEachChild(function(e){n.push(e)}),void(this._children=n)}var a=[];e.scanner.setText((t||this.getSourceFile()).text);var i=this.pos,o=function(e){i=r.addSyntheticNodes(a,i,e.pos),a.push(e),i=e.end},s=function(e){i<e.pos&&(i=r.addSyntheticNodes(a,i,e.pos)),a.push(r.createSyntaxList(e)),i=e.end};if(this.jsDoc)for(var c=0,u=this.jsDoc;c<u.length;c++){var _=u[c];o(_)}i=this.pos,e.forEachChild(this,o,s),i<this.end&&this.addSyntheticNodes(a,i,this.end),e.scanner.setText(void 0),this._children=a},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(t){var r=this.getChildren(t);if(r.length){var n=e.find(r,function(e){return e.kind<267||e.kind>294});return n.kind<143?n:n.getFirstToken(t)}},r.prototype.getLastToken=function(t){var r=this.getChildren(t),n=e.lastOrUndefined(r);if(n)return n.kind<143?n:n.getLastToken(t)},r.prototype.forEachChild=function(t,r){return e.forEachChild(this,t,r)},r}(),k=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.prototype.forEachChild=function(){},t}(),x=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}(),C=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}(k),D=function(e){function t(t,r,n){return e.call(this,r,n)||this}return __extends(t,e),t}(k);D.prototype.kind=71;var S=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}(),T=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}(),E=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(e){var t=n(e);t&&o.add(t,e)}function r(e){var t=o.get(e);return t||o.set(e,t=[]),t}function n(t){var r=e.getNameOfDeclaration(t);if(r){var n=a(r);if(void 0!==n)return n;if(144===r.kind){var i=r.expression;return 179===i.kind?i.name.text:a(i)}}}function a(e){if(e&&(71===e.kind||9===e.kind||8===e.kind))return e.text}function i(a){switch(a.kind){case 228:case 186:case 151:case 150: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 229:case 199:case 230:case 231:case 232:case 233:case 237:case 246:case 242:case 237:case 239:case 240:case 153:case 154:case 163:t(a),e.forEachChild(a,i);break;case 146:if(!e.hasModifier(a,92))break;case 226:case 176:var _=a;if(e.isBindingPattern(_.name)){e.forEachChild(_.name,i);break}_.initializer&&i(_.initializer);case 264:case 149:case 148:t(a);break;case 244:a.exportClause&&e.forEach(a.exportClause.elements,i);break;case 238:var l=a.importClause;l&&(l.name&&t(l),l.namedBindings&&(240===l.namedBindings.kind?t(l.namedBindings):e.forEach(l.namedBindings.elements,i)));break;default:e.forEachChild(a,i)}}var o=e.createMultiMap();return e.forEachChild(this,i),o},r}(b),N=function(){function t(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}return t.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},t}();e.toEditorSettings=n,e.displayPartsToString=i,e.getDefaultCompilerOptions=o,e.getSupportedCodeFixes=s;var A=function(){function t(t,r){this.host=t,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.getEntryByPath=function(e){return this.fileNameToEntry.get(e)},t.prototype.containsEntryByPath=function(e){return this.fileNameToEntry.contains(e)},t.prototype.getOrCreateEntryByPath=function(e,t){return this.containsEntryByPath(t)?this.getEntryByPath(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.getEntryByPath(e);return t&&t.version},t.prototype.getScriptSnapshot=function(e){var t=this.getEntryByPath(e);return t&&t.scriptSnapshot},t}(),w=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 P=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}(),F=function(){function t(e,t){void 0===t&&(t=20),this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}return t.prototype.isCancellationRequested=function(){var t=e.timestamp(),r=Math.abs(t-this.lastCancellationCheckTime);return r>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},t}();e.ThrottledCancellationToken=F,e.createLanguageService=l,e.getNameTable=d,e.getContainingObjectLiteralElement=m,e.getPropertySymbolsFromContextualType=g,e.getDefaultLibFilePath=v,e.objectAllocator=r()}(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){return 227===r.parent.kind&&r.parent.declarations[0]===r?n(e.findPrecedingToken(r.pos,t,r.parent),r):n(r)}function l(r){return 215===r.parent.parent.kind?u(r.parent.parent):e.isBindingPattern(r.name)?b(r.name):r.initializer||e.hasModifier(r,1)||216===r.parent.parent.kind?_(r):227===r.parent.kind&&r.parent.declarations[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)||229===t.parent.kind&&152!==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 233:if(1!==e.getModuleInstanceState(r.parent))return;case 213:case 211:case 215:return i(r.parent,r.statements[0]);case 214:case 216:return i(e.findPrecedingToken(r.pos,t,r.parent),r.statements[0])}return u(r.statements[0])}function v(e){if(227!==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 200!==e.kind?e:void 0});return r?u(r):176===t.parent.kind?n(t.parent):_(t.parent)}function k(t){e.Debug.assert(175!==t.kind&&174!==t.kind);var r=177===t.kind?t.elements:t.properties,a=e.forEach(r,function(e){return 200!==e.kind?e:void 0});return a?u(a):n(194===t.parent.kind?t.parent:t)}function x(r){switch(r.parent.kind){case 232:var n=r.parent;return i(e.findPrecedingToken(r.pos,t,r.parent),n.members.length?n.members[0]:n.getLastToken(t));case 229:var a=r.parent;return i(e.findPrecedingToken(r.pos,t,r.parent),a.members.length?a.members[0]:a.getLastToken(t));case 235:return i(r.parent.parent,r.parent.clauses[0])}return u(r.parent)}function C(t){switch(t.parent.kind){case 234:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 232:case 229:return n(t);case 207:if(e.isFunctionBlock(t.parent))return n(t);case 260:return u(e.lastOrUndefined(t.parent.statements));case 235:var r=t.parent,a=e.lastOrUndefined(r.clauses);if(a)return u(e.lastOrUndefined(a.statements));return;case 174: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 D(t){switch(t.parent.kind){case 175: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 S(e){return 212===e.parent.kind||181===e.parent.kind||182===e.parent.kind?s(e):185===e.parent.kind?c(e):u(e.parent)}function T(e){switch(e.parent.kind){case 186:case 228:case 187:case 151:case 150:case 153:case 154:case 152:case 213:case 212:case 214:case 216:case 181:case 182:case 185:return s(e);default:return u(e.parent)}}function E(t){return e.isFunctionLike(t.parent)||261===t.parent.kind||146===t.parent.kind?s(t):u(t.parent)}function N(e){return 184===e.parent.kind?c(e):u(e.parent)}function A(e){return 212===e.parent.kind?a(e,e.parent.expression):u(e.parent)}function w(e){return 216===e.parent.kind?c(e):u(e.parent)}if(r)switch(r.kind){case 208:return l(r.declarationList.declarations[0]);case 226:case 149:case 148:return l(r);case 146:return p(r);case 228:case 151:case 150:case 153:case 154:case 152:case 186:case 187:return m(r);case 207:if(e.isFunctionBlock(r))return g(r);case 234:return y(r);case 260:return y(r.block);case 210:return n(r.expression);case 219:return n(r.getChildAt(0),r.expression);case 213:return a(r,r.expression);case 212:return u(r.statement);case 225:return n(r.getChildAt(0));case 211:return a(r,r.expression);case 222:return u(r.statement);case 218:case 217:return n(r.getChildAt(0),r.label);case 214:return h(r);case 215:return a(r,r.expression);case 216:return v(r);case 221:return a(r,r.expression);case 257:case 258:return u(r.statements[0]);case 224:return y(r.tryBlock);case 223:return n(r,r.expression);case 243:return n(r,r.expression);case 237:return n(r,r.moduleReference);case 238:return n(r,r.moduleSpecifier);case 244:return n(r,r.moduleSpecifier);case 233:if(1!==e.getModuleInstanceState(r))return;case 229:case 232:case 264:case 176:return n(r);case 220:return u(r.statement);case 147:return o(r.parent.decorators);case 174:case 175:return b(r);case 230:case 231:return;case 25:case 1:return i(e.findPrecedingToken(r.pos,t));case 26:return s(r);case 17:return x(r);case 18:return C(r);case 22:return D(r);case 19:return S(r);case 20:return T(r);case 56:return E(r);case 29:case 27:return N(r);case 106:return A(r);case 82:case 74:case 87:return c(r);case 142:return w(r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return k(r);if((71===r.kind||198===r.kind||261===r.kind||262===r.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent))return n(r);if(194===r.kind){var P=r;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(P.left))return k(P.left);if(58===P.operatorToken.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(P.parent))return n(r);if(26===P.operatorToken.kind)return u(P.left)}if(e.isPartOfExpression(r))switch(r.parent.kind){case 212:return s(r);case 147:return u(r.parent);case 214:case 216:return n(r);case 194:if(26===r.parent.operatorToken.kind)return n(r);break;case 187:if(r.parent.body===r)return n(r)}if(261===r.parent.kind&&r.parent.name===r&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent.parent))return u(r.parent.initializer);if(184===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(226===r.parent.kind||146===r.parent.kind){var F=r.parent;if(F.initializer===r||F.type===r||e.isAssignmentOperator(r.kind))return s(r)}if(194===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,!1),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 ts;!function(e){function t(t,r,n){var a=[];n=e.fixupCompilerOptions(n,a);var i=e.isArray(t)?t:[t],o=e.transformNodes(void 0,void 0,n,i,r,!0);return o.diagnostics=e.concatenate(o.diagnostics,a),o}e.transform=t}(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");var t=JSON.parse(e);return t.allowNonTsExtensions=!0,t},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 t=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(t)},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){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=_;var l=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 d=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}(l),p=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}(l),f=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 o.resolvedModule&&o.resolvedModule.extension!==e.Extension.Ts&&o.resolvedModule.extension!==e.Extension.Tsx&&o.resolvedModule.extension!==e.Extension.Dts&&(s=void 0),{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}(l),m=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 d(this,r,a)}catch(i){throw t(r,i),i}},r.prototype.createClassifierShim=function(e){try{return new p(this,e)}catch(r){throw t(e,r),r}},r.prototype.createCoreServicesShim=function(e){try{var r=new _(e);return new f(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;t<this._shims.length;t++)if(this._shims[t]===e)return void delete this._shims[t];throw new Error("Invalid operation")},r}();e.TypeScriptServicesFactory=m,"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.4";define("vs/language/typescript/lib/typescriptServices",[],function(){return ts});