1 line
1.7 MiB
1 line
1.7 MiB
webpackJsonp([1],{"+r0j":function(e,t,n){t.SourceMapGenerator=n("O8K4").SourceMapGenerator,t.SourceMapConsumer=n("G4xT").SourceMapConsumer,t.SourceNode=n("E+dE").SourceNode},"31j4":function(e,t){t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,n,r,i){if(0===n.length)return-1;var a=function e(n,r,i,a,o,s){var c=Math.floor((r-n)/2)+n,u=o(i,a[c],!0);return 0===u?c:u>0?r-c>1?e(c,r,i,a,o,s):s==t.LEAST_UPPER_BOUND?r<a.length?r:-1:c:c-n>1?e(n,c,i,a,o,s):s==t.LEAST_UPPER_BOUND?c:n<0?-1:n}(-1,n.length,e,n,r,i||t.GREATEST_LOWER_BOUND);if(a<0)return-1;for(;a-1>=0&&0===r(n[a],n[a-1],!0);)--a;return a}},"601G":function(e,t,n){var r=n("l5q4"),i=Object.prototype.hasOwnProperty,a="undefined"!=typeof Map;function o(){this._array=[],this._set=a?new Map:Object.create(null)}o.fromArray=function(e,t){for(var n=new o,r=0,i=e.length;r<i;r++)n.add(e[r],t);return n},o.prototype.size=function(){return a?this._set.size:Object.getOwnPropertyNames(this._set).length},o.prototype.add=function(e,t){var n=a?e:r.toSetString(e),o=a?this.has(e):i.call(this._set,n),s=this._array.length;o&&!t||this._array.push(e),o||(a?this._set.set(e,s):this._set[n]=s)},o.prototype.has=function(e){if(a)return this._set.has(e);var t=r.toSetString(e);return i.call(this._set,t)},o.prototype.indexOf=function(e){if(a){var t=this._set.get(e);if(t>=0)return t}else{var n=r.toSetString(e);if(i.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},o.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},o.prototype.toArray=function(){return this._array.slice()},t.ArraySet=o},"8Grq":function(e,t,n){var r=n("l5q4");function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}i.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},i.prototype.add=function(e){var t,n,i,a;(a=(n=e).generatedLine)>(i=(t=this._last).generatedLine)||a==i&&n.generatedColumn>=t.generatedColumn||r.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.MappingList=i},"9jCM":function(e,t,n){"use strict";(function(e,r,i,a,o){var s,c=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},u=this&&this.__extends||(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});!function(e){var t;!function(e){e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan"}(e.Comparison||(e.Comparison={})),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.InferKeyword=126]="InferKeyword",e[e.IsKeyword=127]="IsKeyword",e[e.KeyOfKeyword=128]="KeyOfKeyword",e[e.ModuleKeyword=129]="ModuleKeyword",e[e.NamespaceKeyword=130]="NamespaceKeyword",e[e.NeverKeyword=131]="NeverKeyword",e[e.ReadonlyKeyword=132]="ReadonlyKeyword",e[e.RequireKeyword=133]="RequireKeyword",e[e.NumberKeyword=134]="NumberKeyword",e[e.ObjectKeyword=135]="ObjectKeyword",e[e.SetKeyword=136]="SetKeyword",e[e.StringKeyword=137]="StringKeyword",e[e.SymbolKeyword=138]="SymbolKeyword",e[e.TypeKeyword=139]="TypeKeyword",e[e.UndefinedKeyword=140]="UndefinedKeyword",e[e.UniqueKeyword=141]="UniqueKeyword",e[e.FromKeyword=142]="FromKeyword",e[e.GlobalKeyword=143]="GlobalKeyword",e[e.OfKeyword=144]="OfKeyword",e[e.QualifiedName=145]="QualifiedName",e[e.ComputedPropertyName=146]="ComputedPropertyName",e[e.TypeParameter=147]="TypeParameter",e[e.Parameter=148]="Parameter",e[e.Decorator=149]="Decorator",e[e.PropertySignature=150]="PropertySignature",e[e.PropertyDeclaration=151]="PropertyDeclaration",e[e.MethodSignature=152]="MethodSignature",e[e.MethodDeclaration=153]="MethodDeclaration",e[e.Constructor=154]="Constructor",e[e.GetAccessor=155]="GetAccessor",e[e.SetAccessor=156]="SetAccessor",e[e.CallSignature=157]="CallSignature",e[e.ConstructSignature=158]="ConstructSignature",e[e.IndexSignature=159]="IndexSignature",e[e.TypePredicate=160]="TypePredicate",e[e.TypeReference=161]="TypeReference",e[e.FunctionType=162]="FunctionType",e[e.ConstructorType=163]="ConstructorType",e[e.TypeQuery=164]="TypeQuery",e[e.TypeLiteral=165]="TypeLiteral",e[e.ArrayType=166]="ArrayType",e[e.TupleType=167]="TupleType",e[e.UnionType=168]="UnionType",e[e.IntersectionType=169]="IntersectionType",e[e.ConditionalType=170]="ConditionalType",e[e.InferType=171]="InferType",e[e.ParenthesizedType=172]="ParenthesizedType",e[e.ThisType=173]="ThisType",e[e.TypeOperator=174]="TypeOperator",e[e.IndexedAccessType=175]="IndexedAccessType",e[e.MappedType=176]="MappedType",e[e.LiteralType=177]="LiteralType",e[e.ObjectBindingPattern=178]="ObjectBindingPattern",e[e.ArrayBindingPattern=179]="ArrayBindingPattern",e[e.BindingElement=180]="BindingElement",e[e.ArrayLiteralExpression=181]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=182]="ObjectLiteralExpression",e[e.PropertyAccessExpression=183]="PropertyAccessExpression",e[e.ElementAccessExpression=184]="ElementAccessExpression",e[e.CallExpression=185]="CallExpression",e[e.NewExpression=186]="NewExpression",e[e.TaggedTemplateExpression=187]="TaggedTemplateExpression",e[e.TypeAssertionExpression=188]="TypeAssertionExpression",e[e.ParenthesizedExpression=189]="ParenthesizedExpression",e[e.FunctionExpression=190]="FunctionExpression",e[e.ArrowFunction=191]="ArrowFunction",e[e.DeleteExpression=192]="DeleteExpression",e[e.TypeOfExpression=193]="TypeOfExpression",e[e.VoidExpression=194]="VoidExpression",e[e.AwaitExpression=195]="AwaitExpression",e[e.PrefixUnaryExpression=196]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=197]="PostfixUnaryExpression",e[e.BinaryExpression=198]="BinaryExpression",e[e.ConditionalExpression=199]="ConditionalExpression",e[e.TemplateExpression=200]="TemplateExpression",e[e.YieldExpression=201]="YieldExpression",e[e.SpreadElement=202]="SpreadElement",e[e.ClassExpression=203]="ClassExpression",e[e.OmittedExpression=204]="OmittedExpression",e[e.ExpressionWithTypeArguments=205]="ExpressionWithTypeArguments",e[e.AsExpression=206]="AsExpression",e[e.NonNullExpression=207]="NonNullExpression",e[e.MetaProperty=208]="MetaProperty",e[e.TemplateSpan=209]="TemplateSpan",e[e.SemicolonClassElement=210]="SemicolonClassElement",e[e.Block=211]="Block",e[e.VariableStatement=212]="VariableStatement",e[e.EmptyStatement=213]="EmptyStatement",e[e.ExpressionStatement=214]="ExpressionStatement",e[e.IfStatement=215]="IfStatement",e[e.DoStatement=216]="DoStatement",e[e.WhileStatement=217]="WhileStatement",e[e.ForStatement=218]="ForStatement",e[e.ForInStatement=219]="ForInStatement",e[e.ForOfStatement=220]="ForOfStatement",e[e.ContinueStatement=221]="ContinueStatement",e[e.BreakStatement=222]="BreakStatement",e[e.ReturnStatement=223]="ReturnStatement",e[e.WithStatement=224]="WithStatement",e[e.SwitchStatement=225]="SwitchStatement",e[e.LabeledStatement=226]="LabeledStatement",e[e.ThrowStatement=227]="ThrowStatement",e[e.TryStatement=228]="TryStatement",e[e.DebuggerStatement=229]="DebuggerStatement",e[e.VariableDeclaration=230]="VariableDeclaration",e[e.VariableDeclarationList=231]="VariableDeclarationList",e[e.FunctionDeclaration=232]="FunctionDeclaration",e[e.ClassDeclaration=233]="ClassDeclaration",e[e.InterfaceDeclaration=234]="InterfaceDeclaration",e[e.TypeAliasDeclaration=235]="TypeAliasDeclaration",e[e.EnumDeclaration=236]="EnumDeclaration",e[e.ModuleDeclaration=237]="ModuleDeclaration",e[e.ModuleBlock=238]="ModuleBlock",e[e.CaseBlock=239]="CaseBlock",e[e.NamespaceExportDeclaration=240]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=241]="ImportEqualsDeclaration",e[e.ImportDeclaration=242]="ImportDeclaration",e[e.ImportClause=243]="ImportClause",e[e.NamespaceImport=244]="NamespaceImport",e[e.NamedImports=245]="NamedImports",e[e.ImportSpecifier=246]="ImportSpecifier",e[e.ExportAssignment=247]="ExportAssignment",e[e.ExportDeclaration=248]="ExportDeclaration",e[e.NamedExports=249]="NamedExports",e[e.ExportSpecifier=250]="ExportSpecifier",e[e.MissingDeclaration=251]="MissingDeclaration",e[e.ExternalModuleReference=252]="ExternalModuleReference",e[e.JsxElement=253]="JsxElement",e[e.JsxSelfClosingElement=254]="JsxSelfClosingElement",e[e.JsxOpeningElement=255]="JsxOpeningElement",e[e.JsxClosingElement=256]="JsxClosingElement",e[e.JsxFragment=257]="JsxFragment",e[e.JsxOpeningFragment=258]="JsxOpeningFragment",e[e.JsxClosingFragment=259]="JsxClosingFragment",e[e.JsxAttribute=260]="JsxAttribute",e[e.JsxAttributes=261]="JsxAttributes",e[e.JsxSpreadAttribute=262]="JsxSpreadAttribute",e[e.JsxExpression=263]="JsxExpression",e[e.CaseClause=264]="CaseClause",e[e.DefaultClause=265]="DefaultClause",e[e.HeritageClause=266]="HeritageClause",e[e.CatchClause=267]="CatchClause",e[e.PropertyAssignment=268]="PropertyAssignment",e[e.ShorthandPropertyAssignment=269]="ShorthandPropertyAssignment",e[e.SpreadAssignment=270]="SpreadAssignment",e[e.EnumMember=271]="EnumMember",e[e.SourceFile=272]="SourceFile",e[e.Bundle=273]="Bundle",e[e.JSDocTypeExpression=274]="JSDocTypeExpression",e[e.JSDocAllType=275]="JSDocAllType",e[e.JSDocUnknownType=276]="JSDocUnknownType",e[e.JSDocNullableType=277]="JSDocNullableType",e[e.JSDocNonNullableType=278]="JSDocNonNullableType",e[e.JSDocOptionalType=279]="JSDocOptionalType",e[e.JSDocFunctionType=280]="JSDocFunctionType",e[e.JSDocVariadicType=281]="JSDocVariadicType",e[e.JSDocComment=282]="JSDocComment",e[e.JSDocTypeLiteral=283]="JSDocTypeLiteral",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.SyntaxList=293]="SyntaxList",e[e.NotEmittedStatement=294]="NotEmittedStatement",e[e.PartiallyEmittedExpression=295]="PartiallyEmittedExpression",e[e.CommaListExpression=296]="CommaListExpression",e[e.MergeDeclarationMarker=297]="MergeDeclarationMarker",e[e.EndOfDeclarationMarker=298]="EndOfDeclarationMarker",e[e.Count=299]="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=144]="LastKeyword",e[e.FirstFutureReservedWord=108]="FirstFutureReservedWord",e[e.LastFutureReservedWord=116]="LastFutureReservedWord",e[e.FirstTypeNode=160]="FirstTypeNode",e[e.LastTypeNode=177]="LastTypeNode",e[e.FirstPunctuation=17]="FirstPunctuation",e[e.LastPunctuation=70]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=144]="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=145]="FirstNode",e[e.FirstJSDocNode=274]="FirstJSDocNode",e[e.LastJSDocNode=292]="LastJSDocNode",e[e.FirstJSDocTagNode=284]="FirstJSDocTagNode",e[e.LastJSDocTagNode=292]="LastJSDocTagNode",e[e.FirstContextualKeyword=117]="FirstContextualKeyword",e[e.LastContextualKeyword=144]="LastContextualKeyword"}(e.SyntaxKind||(e.SyntaxKind={})),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.JSDoc=1048576]="JSDoc",e[e.Ambient=2097152]="Ambient",e[e.InWithStatement=4194304]="InWithStatement",e[e.BlockScoped=3]="BlockScoped",e[e.ReachabilityCheckFlags=384]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=1408]="ReachabilityAndEmitFlags",e[e.ContextFlags=6387712]="ContextFlags",e[e.TypeExcludesFlags=20480]="TypeExcludesFlags"}(e.NodeFlags||(e.NodeFlags={})),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"}(e.ModifierFlags||(e.ModifierFlags={})),function(e){e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement"}(e.JsxFlags||(e.JsxFlags={})),function(e){e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.FailedAndReported=3]="FailedAndReported"}(e.RelationComparisonResult||(e.RelationComparisonResult={})),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",e[e.KindMask=7]="KindMask",e[e.SkipNameGenerationScope=8]="SkipNameGenerationScope",e[e.ReservedInNestedScopes=16]="ReservedInNestedScopes"}(e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={})),function(e){e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.NumericLiteralFlags=1008]="NumericLiteralFlags"}(e.TokenFlags||(e.TokenFlags={})),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"}(e.FlowFlags||(e.FlowFlags={})),e.OperationCanceledException=function(){},function(e){e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely"}(e.StructureIsReused||(e.StructureIsReused={})),function(e){e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated"}(e.ExitStatus||(e.ExitStatus={})),function(e){e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype"}(e.UnionReduction||(e.UnionReduction={})),function(e){e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.IgnoreErrors=3112960]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e[e.InReverseMappedType=33554432]="InReverseMappedType"}(e.NodeBuilderFlags||(e.NodeBuilderFlags={})),function(e){e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",e[e.NodeBuilderFlagsMask=9469291]="NodeBuilderFlagsMask"}(e.TypeFormatFlags||(e.TypeFormatFlags={})),function(e){e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope"}(e.SymbolFormatFlags||(e.SymbolFormatFlags={})),function(e){e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed"}(e.SymbolAccessibility||(e.SymbolAccessibility={})),function(e){e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread"}(e.SyntheticSymbolKind||(e.SyntheticSymbolKind={})),function(e){e[e.This=0]="This",e[e.Identifier=1]="Identifier"}(e.TypePredicateKind||(e.TypePredicateKind={})),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"}(e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={})),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.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.JSContainer=67108864]="JSContainer",e[e.All=67108863]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=67216319]="Value",e[e.Type=67901928]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=67216318]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=67216319]="BlockScopedVariableExcludes",e[e.ParameterExcludes=67216319]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=68008959]="EnumMemberExcludes",e[e.FunctionExcludes=67215791]="FunctionExcludes",e[e.ClassExcludes=68008383]="ClassExcludes",e[e.InterfaceExcludes=67901832]="InterfaceExcludes",e[e.RegularEnumExcludes=68008191]="RegularEnumExcludes",e[e.ConstEnumExcludes=68008831]="ConstEnumExcludes",e[e.ValueModuleExcludes=67215503]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=67208127]="MethodExcludes",e[e.GetAccessorExcludes=67150783]="GetAccessorExcludes",e[e.SetAccessorExcludes=67183551]="SetAccessorExcludes",e[e.TypeParameterExcludes=67639784]="TypeParameterExcludes",e[e.TypeAliasExcludes=67901928]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="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.ClassMember=106500]="ClassMember",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6240]="LateBindingContainer"}(e.SymbolFlags||(e.SymbolFlags={})),function(e){e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal"}(e.EnumKind||(e.EnumKind={})),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.Late=1024]="Late",e[e.ReverseMapped=2048]="ReverseMapped",e[e.Synthetic=6]="Synthetic"}(e.CheckFlags||(e.CheckFlags={})),function(e){e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default"}(e.InternalSymbolName||(e.InternalSymbolName={})),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"}(e.NodeCheckFlags||(e.NodeCheckFlags={})),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.UniqueESSymbol=1024]="UniqueESSymbol",e[e.Void=2048]="Void",e[e.Undefined=4096]="Undefined",e[e.Null=8192]="Null",e[e.Never=16384]="Never",e[e.TypeParameter=32768]="TypeParameter",e[e.Object=65536]="Object",e[e.Union=131072]="Union",e[e.Intersection=262144]="Intersection",e[e.Index=524288]="Index",e[e.IndexedAccess=1048576]="IndexedAccess",e[e.Conditional=2097152]="Conditional",e[e.Substitution=4194304]="Substitution",e[e.FreshLiteral=8388608]="FreshLiteral",e[e.ContainsWideningType=16777216]="ContainsWideningType",e[e.ContainsObjectLiteral=33554432]="ContainsObjectLiteral",e[e.ContainsAnyFunctionType=67108864]="ContainsAnyFunctionType",e[e.NonPrimitive=134217728]="NonPrimitive",e[e.GenericMappedType=536870912]="GenericMappedType",e[e.Nullable=12288]="Nullable",e[e.Literal=224]="Literal",e[e.Unit=13536]="Unit",e[e.StringOrNumberLiteral=96]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=1120]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=14560]="DefinitelyFalsy",e[e.PossiblyFalsy=14574]="PossiblyFalsy",e[e.Intrinsic=134249103]="Intrinsic",e[e.Primitive=16382]="Primitive",e[e.StringLike=524322]="StringLike",e[e.NumberLike=84]="NumberLike",e[e.BooleanLike=136]="BooleanLike",e[e.EnumLike=272]="EnumLike",e[e.ESSymbolLike=1536]="ESSymbolLike",e[e.UnionOrIntersection=393216]="UnionOrIntersection",e[e.StructuredType=458752]="StructuredType",e[e.TypeVariable=1081344]="TypeVariable",e[e.InstantiableNonPrimitive=7372800]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=524288]="InstantiablePrimitive",e[e.Instantiable=7897088]="Instantiable",e[e.StructuredOrInstantiable=8355840]="StructuredOrInstantiable",e[e.Narrowable=142575359]="Narrowable",e[e.NotUnionOrUnit=134283777]="NotUnionOrUnit",e[e.RequiresWidening=50331648]="RequiresWidening",e[e.PropagatingFlags=117440512]="PropagatingFlags"}(e.TypeFlags||(e.TypeFlags={})),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.ContainsSpread=1024]="ContainsSpread",e[e.ReverseMapped=2048]="ReverseMapped",e[e.JsxAttributes=4096]="JsxAttributes",e[e.MarkerType=8192]="MarkerType",e[e.ClassOrInterface=3]="ClassOrInterface"}(e.ObjectFlags||(e.ObjectFlags={})),function(e){e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent"}(e.Variance||(e.Variance={})),function(e){e[e.Call=0]="Call",e[e.Construct=1]="Construct"}(e.SignatureKind||(e.SignatureKind={})),function(e){e[e.String=0]="String",e[e.Number=1]="Number"}(e.IndexKind||(e.IndexKind={})),function(e){e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.HomomorphicMappedType=2]="HomomorphicMappedType",e[e.MappedTypeConstraint=4]="MappedTypeConstraint",e[e.ReturnType=8]="ReturnType",e[e.LiteralKeyof=16]="LiteralKeyof",e[e.NoConstraints=32]="NoConstraints",e[e.AlwaysStrict=64]="AlwaysStrict",e[e.PriorityImpliesCombination=28]="PriorityImpliesCombination"}(e.InferencePriority||(e.InferencePriority={})),function(e){e[e.None=0]="None",e[e.InferUnionTypes=1]="InferUnionTypes",e[e.NoDefault=2]="NoDefault",e[e.AnyDefault=4]="AnyDefault"}(e.InferenceFlags||(e.InferenceFlags={})),function(e){e[e.False=0]="False",e[e.Maybe=1]="Maybe",e[e.True=-1]="True"}(e.Ternary||(e.Ternary={})),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",e[e.Prototype=6]="Prototype"}(e.SpecialPropertyAssignmentKind||(e.SpecialPropertyAssignmentKind={})),function(e){e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message"}(t=e.DiagnosticCategory||(e.DiagnosticCategory={})),e.diagnosticCategoryName=function(e,n){void 0===n&&(n=!0);var r=t[e.category];return n?r.toLowerCase():r},function(e){e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs"}(e.ModuleResolutionKind||(e.ModuleResolutionKind={})),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"}(e.ModuleKind||(e.ModuleKind={})),function(e){e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative"}(e.JsxEmit||(e.JsxEmit={})),function(e){e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed"}(e.NewLineKind||(e.NewLineKind={})),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",e[e.JSON=6]="JSON"}(e.ScriptKind||(e.ScriptKind={})),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.ES2018=5]="ES2018",e[e.ESNext=6]="ESNext",e[e.Latest=6]="Latest"}(e.ScriptTarget||(e.ScriptTarget={})),function(e){e[e.Standard=0]="Standard",e[e.JSX=1]="JSX"}(e.LanguageVariant||(e.LanguageVariant={})),function(e){e[e.Simple=0]="Simple",e[e.Pretty=1]="Pretty"}(e.DiagnosticStyle||(e.DiagnosticStyle={})),function(e){e[e.None=0]="None",e[e.Recursive=1]="Recursive"}(e.WatchDirectoryFlags||(e.WatchDirectoryFlags={})),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"}(e.CharacterCodes||(e.CharacterCodes={})),function(e){e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json"}(e.Extension||(e.Extension={})),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.Super=134217728]="Super",e[e.ContainsSuper=268435456]="ContainsSuper",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.OuterExpressionExcludes=536872257]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=671089985]="PropertyAccessExcludes",e[e.NodeExcludes=939525441]="NodeExcludes",e[e.ArrowFunctionExcludes=1003902273]="ArrowFunctionExcludes",e[e.FunctionExcludes=1003935041]="FunctionExcludes",e[e.ConstructorExcludes=1003668801]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=1003668801]="MethodOrAccessorExcludes",e[e.ClassExcludes=942011713]="ClassExcludes",e[e.ModuleExcludes=977327425]="ModuleExcludes",e[e.TypeExcludes=-3]="TypeExcludes",e[e.ObjectLiteralExcludes=942740801]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=940049729]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=948962625]="VariableDeclarationListExcludes",e[e.ParameterExcludes=939525441]="ParameterExcludes",e[e.CatchClauseExcludes=940574017]="CatchClauseExcludes",e[e.BindingPatternExcludes=940049729]="BindingPatternExcludes",e[e.TypeScriptClassSyntaxMask=274432]="TypeScriptClassSyntaxMask",e[e.ES2015FunctionSyntaxMask=163840]="ES2015FunctionSyntaxMask"}(e.TransformFlags||(e.TransformFlags={})),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",e[e.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=67108864]="NeverApplyImportHelper"}(e.EmitFlags||(e.EmitFlags={})),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.MakeTemplateObject=65536]="MakeTemplateObject",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=65536]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes"}(e.ExternalEmitHelpers||(e.ExternalEmitHelpers={})),function(e){e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified"}(e.EmitHint||(e.EmitHint={})),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.NoSpaceIfEmpty=262144]="NoSpaceIfEmpty",e[e.SingleElement=524288]="SingleElement",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=262576]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=262448]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=263122]="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.JsxElementOrFragmentChildren=131072]="JsxElementOrFragmentChildren",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=26896]="TypeArguments",e[e.TypeParameters=26896]="TypeParameters",e[e.Parameters=1296]="Parameters",e[e.IndexSignatureParameters=4432]="IndexSignatureParameters"}(e.ListFormat||(e.ListFormat={})),function(e){e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default"}(e.PragmaKindFlags||(e.PragmaKindFlags={})),e.commentPragmas={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4}}}(l||(l={})),function(e){e.timestamp="undefined"!=typeof performance&&performance.now?function(){return performance.now()}:Date.now?Date.now:function(){return+new Date}}(l||(l={})),function(e){var t,n,r,i,a,o,s;t=e.performance||(e.performance={}),a="function"==typeof onProfilerEvent&&!0===onProfilerEvent.profiler?onProfilerEvent:function(){},o=!1,s=0,t.mark=function(t){o&&(r.set(t,e.timestamp()),n.set(t,(n.get(t)||0)+1),a(t))},t.measure=function(t,n,a){if(o){var c=a&&r.get(a)||e.timestamp(),u=n&&r.get(n)||s;i.set(t,(i.get(t)||0)+(c-u))}},t.getCount=function(e){return n&&n.get(e)||0},t.getDuration=function(e){return i&&i.get(e)||0},t.forEachMeasure=function(e){i.forEach(function(t,n){e(n,t)})},t.enable=function(){n=e.createMap(),r=e.createMap(),i=e.createMap(),o=!0,s=e.timestamp()},t.disable=function(){o=!1}}(l||(l={})),function(e){e.versionMajorMinor="2.8",e.version=e.versionMajorMinor+".1"}(l||(l={})),function(e){e.isExternalModuleNameRelative=function(t){return e.pathIsRelative(t)||e.isRootedDiskPath(t)},e.sortAndDeduplicateDiagnostics=function(t){return e.sortAndDeduplicate(t,e.compareDiagnostics)}}(l||(l={})),function(e){function t(){var e=Object.create(null);return e.__=void 0,delete e.__,e}function n(){return new i}e.emptyArray=[],e.closeFileWatcher=function(e){e.close()},e.createMap=n,e.createUnderscoreEscapedMap=function(){return new i},e.createSymbolTable=function(e){var t=n();if(e)for(var r=0,i=e;r<i.length;r++){var a=i[r];t.set(a.escapedName,a)}return t},e.createMapFromTemplate=function(e){var t=new i;for(var n in e)E.call(e,n)&&t.set(n,e[n]);return t};var r,i="undefined"!=typeof Map&&"entries"in Map.prototype?Map:(r=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}(),function(){function e(){this.data=t(),this.size=0}return e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.has(e)||this.size++,this.data[e]=t,this},e.prototype.has=function(e){return e in this.data},e.prototype.delete=function(e){return!!this.has(e)&&(this.size--,delete this.data[e],!0)},e.prototype.clear=function(){this.data=t(),this.size=0},e.prototype.keys=function(){return new r(this.data,function(e,t){return t})},e.prototype.values=function(){return new r(this.data,function(e,t){return e[t]})},e.prototype.entries=function(){return new r(this.data,function(e,t){return[t,e[t]]})},e.prototype.forEach=function(e){for(var t in this.data)e(this.data[t],t)},e}());function a(e,t){if(e)for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r)return r}}function o(e,t){if(e)for(var n=0;n<e.length;n++)if(!t(e[n],n))return!1;return!0}function s(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r,n))return r}}function c(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n))return n;return-1}function u(e,t,n){if(void 0===n&&(n=q),e)for(var r=0,i=e;r<i.length;r++)if(n(i[r],t))return!0;return!1}function l(e,t,n){for(var r=n||0;r<e.length;r++)if(u(t,e.charCodeAt(r)))return r;return-1}function _(e,t){var n;if(e){n=[];for(var r=0;r<e.length;r++)n.push(t(e[r],r))}return n}function d(e){var t;if(e){t=[];for(var n=0,r=e;n<r.length;n++){var i=r[n];i&&(R(i)?h(t,i):t.push(i))}}return t}function p(e,t){var n;if(e){n=[];for(var r=0;r<e.length;r++){var i=t(e[r],r);i&&(R(i)?h(n,i):n.push(i))}}return n}function f(e,t){if(e){if(!t)return e.length>0;for(var n=0,r=e;n<r.length;n++)if(t(r[n]))return!0}return!1}function m(e,t,n){return e?0===e.length?[]:1===e.length?e.slice():n?function(e,t,n){var r=e.map(function(e,t){return t});b(e,r,n);for(var i=e[r[0]],a=[r[0]],o=1;o<r.length;o++){var s=r[o],c=e[s];t(i,c)||(a.push(s),i=c)}return a.sort(),a.map(function(t){return e[t]})}(e,t,n):function(e,t){for(var n=[],r=0,i=e;r<i.length;r++)v(n,i[r],t);return n}(e,t):void 0}function g(e,t,n){if(void 0===n&&(n=q),!e||!t)return e===t;if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function y(e,t){return t<0?e.length+t:t}function h(e,t,n,r){if(void 0===t||0===t.length)return e;if(void 0===e)return t.slice(n,r);n=void 0===n?0:y(t,n),r=void 0===r?t.length:y(t,r);for(var i=n;i<r&&i<t.length;i++)void 0!==t[i]&&e.push(t[i]);return e}function v(e,t,n){return!u(e,t,n)&&(e.push(t),!0)}function b(e,t,n){t.sort(function(t,r){return n(e[t],e[r])||X(t,r)})}function x(e,t){return e.slice().sort(t)}function k(e){var t=0;return{next:function(){return t===e.length?{value:void 0,done:!0}:{value:e[++t-1],done:!1}}}}function S(e,t){if(e&&(t=y(e,t))<e.length)return e[t]}function D(e){return S(e,-1)}function C(e,t,n,r,i){if(!e||0===e.length)return-1;for(var a=i||0,o=e.length-1,s=n(t);a<=o;){var c=a+(o-a>>1);switch(r(n(e[c]),s)){case-1:a=c+1;break;case 0:return c;case 1:o=c-1}}return~a}function T(e,t,n,r,i){if(e&&e.length>0){var a=e.length;if(a>0){var o=void 0===r||r<0?0:r,s=void 0===i||o+i>a-1?a-1:o+i,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=n;o<=s;)c=t(c,e[o],o),o++;return c}}return n}e.toPath=function(e,t,n){return n(fe(e)?oe(e):ye(e,t))},e.length=function(e){return e?e.length:0},e.forEach=a,e.firstDefined=function(e,t){if(void 0!==e)for(var n=0;n<e.length;n++){var r=t(e[n],n);if(void 0!==r)return r}},e.firstDefinedIterator=function(e,t){for(;;){var n=e.next(),r=n.value;if(n.done)return;var i=t(r);if(void 0!==i)return i}},e.findAncestor=function(e,t){for(;e;){var n=t(e);if("quit"===n)return;if(n)return e;e=e.parent}},e.zipWith=function(e,t,n){var r=[];Ge.assertEqual(e.length,t.length);for(var i=0;i<e.length;i++)r.push(n(e[i],t[i],i));return r},e.zipToIterator=function(e,t){Ge.assertEqual(e.length,t.length);var n=0;return{next:function(){return n===e.length?{value:void 0,done:!0}:{value:[e[++n-1],t[n-1]],done:!1}}}},e.zipToMap=function(e,t){Ge.assert(e.length===t.length);for(var r=n(),i=0;i<e.length;++i)r.set(e[i],t[i]);return r},e.every=o,e.find=s,e.findLast=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(t(r,n))return r}},e.findIndex=c,e.findMap=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r)return r}Ge.fail()},e.contains=u,e.arraysEqual=function(e,t,n){return void 0===n&&(n=q),e.length===t.length&&e.every(function(e,r){return n(e,t[r])})},e.indexOfAnyCharCode=l,e.countWhere=function(e,t){var n=0;if(e)for(var r=0;r<e.length;r++)t(e[r],r)&&n++;return n},e.filter=function(e,t){if(e){for(var n=e.length,r=0;r<n&&t(e[r]);)r++;if(r<n){var i=e.slice(0,r);for(r++;r<n;){var a=e[r];t(a)&&i.push(a),r++}return i}}return e},e.filterMutate=function(e,t){for(var n=0,r=0;r<e.length;r++)t(e[r],r,e)&&(e[n]=e[r],n++);e.length=n},e.clear=function(e){e.length=0},e.map=_,e.mapIterator=function(e,t){return{next:function(){var n=e.next();return n.done?n:{value:t(n.value),done:!1}}}},e.sameMap=function(e,t){if(e)for(var n=0;n<e.length;n++){var r=e[n],i=t(r,n);if(r!==i){var a=e.slice(0,n);for(a.push(i),n++;n<e.length;n++)a.push(t(e[n],n));return a}}return e},e.flatten=d,e.flatMap=p,e.flatMapIterator=function(t,n){var r=t.next();if(r.done)return e.emptyIterator;var i=a(r.value);return{next:function(){for(;;){var e=i.next();if(!e.done)return e;var n=t.next();if(n.done)return n;i=a(n.value)}}};function a(t){var r=n(t);return void 0===r?e.emptyIterator:R(r)?k(r):r}},e.sameFlatMap=function(e,t){var n;if(e)for(var r=0;r<e.length;r++){var i=e[r],a=t(i,r);(n||i!==a||R(a))&&(n||(n=e.slice(0,r)),R(a)?h(n,a):n.push(a))}return n||e},e.mapAllOrFail=function(e,t){for(var n=[],r=0;r<e.length;r++){var i=t(e[r],r);if(void 0===i)return;n.push(i)}return n},e.mapDefined=function(e,t){var n=[];if(e)for(var r=0;r<e.length;r++){var i=t(e[r],r);void 0!==i&&n.push(i)}return n},e.mapDefinedIterator=function(e,t){return{next:function(){for(;;){var n=e.next();if(n.done)return n;var r=t(n.value);if(void 0!==r)return{value:r,done:!1}}}}},e.emptyIterator={next:function(){return{value:void 0,done:!0}}},e.singleIterator=function(e){var t=!1;return{next:function(){var n=t;return t=!0,n?{value:void 0,done:!0}:{value:e,done:!1}}}},e.span=function(e,t){if(e){for(var n=0;n<e.length;n++)if(!t(e[n],n))return[e.slice(0,n),e.slice(n)];return[e.slice(0),[]]}},e.spanMap=function(e,t,n){var r;if(e){r=[];for(var i=e.length,a=void 0,o=void 0,s=0,c=0;s<i;){for(;c<i;){if(o=t(e[c],c),0===c)a=o;else if(o!==a)break;c++}if(s<c){var u=n(e.slice(s,c),a,s,c);u&&r.push(u),s=c}a=o,c++}}return r},e.mapEntries=function(e,t){if(e){var r=n();return e.forEach(function(e,n){var i=t(n,e);r.set(i[0],i[1])}),r}},e.some=f,e.concatenate=function(e,t){return f(t)?f(e)?e.concat(t):t:e},e.deduplicate=m,e.insertSorted=function(e,t,n){if(0!==e.length){var r=C(e,t,j,n);r<0&&e.splice(~r,0,t)}else e.push(t)},e.sortAndDeduplicate=function(e,t,n){return function(e,t){if(e){if(0===e.length)return[];for(var n=e[0],r=[n],i=1;i<e.length;i++){var a=e[i];switch(t(a,n)){case!0:case 0:continue;case-1:return Ge.fail("Array is unsorted.")}r.push(n=a)}return r}}(x(e,t),n||t)},e.arrayIsEqualTo=g,e.changesAffectModuleResolution=function(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&&g(e.lib,t.lib)&&g(e.typeRoots,t.typeRoots)&&g(e.rootDirs,t.rootDirs)&&w(e.paths,t.paths))},e.compact=function(e){var t;if(e)for(var n=0;n<e.length;n++){var r=e[n];!t&&r||(t||(t=e.slice(0,n)),r&&t.push(r))}return t||e},e.relativeComplement=function(e,t,n){if(!t||!e||0===t.length||0===e.length)return t;var r=[];e:for(var i=0,a=0;a<t.length;a++){a>0&&Ge.assertGreaterThanOrEqual(n(t[a],t[a-1]),0);t:for(var o=i;i<e.length;i++)switch(i>o&&Ge.assertGreaterThanOrEqual(n(e[i],e[i-1]),0),n(t[a],e[i])){case-1:r.push(t[a]);continue e;case 0:continue e;case 1:continue t}}return r},e.sum=function(e,t){for(var n=0,r=0,i=e;r<i.length;r++)n+=i[r][t];return n},e.append=function(e,t){return void 0===t?e:void 0===e?[t]:(e.push(t),e)},e.addRange=h,e.pushIfUnique=v,e.appendIfUnique=function(e,t,n){return e?(v(e,t,n),e):[t]},e.sort=x,e.best=function(e,t){var n=e.next();if(!n.done)for(var r=n.value;;){var i=e.next(),a=i.value;if(i.done)return r;t(a,r)&&(r=a)}},e.arrayIterator=k,e.stableSort=function(e,t){var n=e.map(function(e,t){return t});return b(e,n,t),n.map(function(t){return e[t]})},e.rangeEquals=function(e,t,n,r){for(;n<r;){if(e[n]!==t[n])return!1;n++}return!0},e.elementAt=S,e.firstOrUndefined=function(e){return S(e,0)},e.first=function(e){return Ge.assert(0!==e.length),e[0]},e.lastOrUndefined=D,e.last=function(e){return Ge.assert(0!==e.length),e[e.length-1]},e.singleOrUndefined=function(e){return e&&1===e.length?e[0]:void 0},e.singleOrMany=function(e){return e&&1===e.length?e[0]:e},e.replaceElement=function(e,t,n){var r=e.slice(0);return r[t]=n,r},e.binarySearch=C,e.reduceLeft=T;var E=Object.prototype.hasOwnProperty;function N(e,t){return E.call(e,t)}function A(e,t){for(var n,r=[],i=e.next(),a=i.value,o=i.done;!o;a=(n=e.next()).value,o=n.done,n)r.push(t?t(a):a);return r}function P(e,t){e.forEach(function(e,n){t.set(n,e)})}function w(e,t,n){if(void 0===n&&(n=q),e===t)return!0;if(!e||!t)return!1;for(var r in e)if(E.call(e,r)){if(void 0===!E.call(t,r))return!1;if(!n(e[r],t[r]))return!1}for(var r in t)if(E.call(t,r)&&!E.call(e,r))return!1;return!0}function F(e,t,r){void 0===r&&(r=j);for(var i=n(),a=0,o=e;a<o.length;a++){var s=o[a];i.set(t(s),r(s))}return i}function I(e,t,n){void 0===n&&(n=j);for(var r=O(),i=0,a=e;i<a.length;i++){var o=a[i];r.add(t(o),n(o))}return r}function O(){var e=n();return e.add=M,e.remove=L,e}function M(e,t){var n=this.get(e);return n?n.push(t):this.set(e,n=[t]),n}function L(e,t){var n=this.get(e);n&&(ot(n,t),n.length||this.delete(e))}function R(e){return Array.isArray?Array.isArray(e):e instanceof Array}function B(e){return"string"==typeof e}function z(e){}function j(e){return e}function J(e){return e.toLowerCase()}function K(e,t,n,r,i){if(i){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];return function(e){return T(a,function(e,t){return t(e)},e)}}return r?function(i){return r(n(t(e(i))))}:n?function(r){return n(t(e(r)))}:t?function(n){return t(e(n))}:e?function(t){return e(t)}:function(e){return e}}function U(e,t,n){return n=n||0,e.replace(/{(\d+)}/g,function(e,r){return t[+r+n]})}function V(t){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[t.key]||t.message}function q(e,t){return e===t}function W(e,t){return e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase()}function H(e,t){return q(e,t)}function G(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e<t?-1:1}function X(e,t){return G(e,t)}function Q(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}function Y(e,t){return G(e,t)}e.hasProperty=N,e.getProperty=function(e,t){return E.call(e,t)?e[t]:void 0},e.getOwnKeys=function(e){var t=[];for(var n in e)E.call(e,n)&&t.push(n);return t},e.getOwnValues=function(e){var t=[];for(var n in e)E.call(e,n)&&t.push(e[n]);return t},e.arrayFrom=A,e.forEachEntry=function(e,t){for(var n,r=e.entries(),i=r.next(),a=i.value,o=i.done;!o;a=(n=r.next()).value,o=n.done,n){var s=t(a[1],a[0]);if(s)return s}},e.forEachKey=function(e,t){for(var n,r=e.keys(),i=r.next(),a=i.value,o=i.done;!o;a=(n=r.next()).value,o=n.done,n){var s=t(a);if(s)return s}},e.copyEntries=P,e.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=t;r<i.length;r++){var a=i[r];for(var o in a)N(a,o)&&(e[o]=a[o])}return e},e.equalOwnProperties=w,e.arrayToMap=F,e.arrayToNumericMap=function(e,t,n){void 0===n&&(n=j);for(var r=[],i=0,a=e;i<a.length;i++){var o=a[i];r[t(o)]=n(o)}return r},e.arrayToSet=function(e,t){return F(e,t||function(e){return e},function(){return!0})},e.arrayToMultiMap=I,e.group=function(e,t){return A(I(e,t).values())},e.cloneMap=function(e){var t=n();return P(e,t),t},e.clone=function(e){var t={};for(var n in e)E.call(e,n)&&(t[n]=e[n]);return t},e.extend=function(e,t){var n={};for(var r in t)E.call(t,r)&&(n[r]=t[r]);for(var r in e)E.call(e,r)&&(n[r]=e[r]);return n},e.createMultiMap=O,e.isArray=R,e.toArray=function(e){return R(e)?e:[e]},e.isString=B,e.tryCast=function(e,t){return void 0!==e&&t(e)?e:void 0},e.cast=function(e,t){if(void 0!==e&&t(e))return e;Ge.fail(e&&"number"==typeof e.kind?"Invalid cast. The supplied "+Ge.showSyntaxKind(e)+" did not pass the test '"+Ge.getFunctionName(t)+"'.":"Invalid cast. The supplied value did not pass the test '"+Ge.getFunctionName(t)+"'.")},e.noop=z,e.returnFalse=function(){return!1},e.returnTrue=function(){return!0},e.identity=j,e.toLowerCase=J,e.notImplemented=function(){throw new Error("Not implemented")},e.memoize=function(e){var t;return function(){return e&&(t=e(),e=void 0),t}},e.chain=function(e,t,n,r,i){if(i){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];return function(e){return K.apply(void 0,_(a,function(t){return t(e)}))}}return r?function(i){return K(e(i),t(i),n(i),r(i))}:n?function(r){return K(e(r),t(r),n(r))}:t?function(n){return K(e(n),t(n))}:e?function(t){return K(e(t))}:function(e){return function(e){return e}}},e.compose=K,e.formatStringFromArgs=U,e.getLocaleSpecificMessage=V,e.createFileDiagnostic=function(e,t,n,r){Ge.assertGreaterThanOrEqual(t,0),Ge.assertGreaterThanOrEqual(n,0),e&&(Ge.assertLessThanOrEqual(t,e.text.length),Ge.assertLessThanOrEqual(t+n,e.text.length));var i=V(r);return arguments.length>4&&(i=U(i,arguments,4)),{file:e,start:t,length:n,messageText:i,category:r.category,code:r.code}},e.formatMessage=function(e,t){var n=V(t);return arguments.length>2&&(n=U(n,arguments,2)),n},e.createCompilerDiagnostic=function(e){var t=V(e);return arguments.length>1&&(t=U(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code}},e.createCompilerDiagnosticFromMessageChain=function(e){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText}},e.chainDiagnosticMessages=function(e,t){var n=V(t);return arguments.length>2&&(n=U(n,arguments,2)),{messageText:n,category:t.category,code:t.code,next:e}},e.concatenateDiagnosticMessageChains=function(e,t){for(var n=e;n.next;)n=n.next;return n.next=t,e},e.equateValues=q,e.equateStringsCaseInsensitive=W,e.equateStringsCaseSensitive=H,e.compareValues=X,e.compareStringsCaseInsensitive=Q,e.compareStringsCaseSensitive=Y;var $,Z,ee=function(){var e,t,n="object"==typeof Intl&&"function"==typeof Intl.Collator?function(e){var t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return function(e,n){return r(e,n,t)}}:"function"==typeof String.prototype.localeCompare&&"function"==typeof String.prototype.toLocaleUpperCase&&"a".localeCompare("B")<0?function(e){return void 0!==e?i():function(e,n){return r(e,n,t)};function t(e,t){return e.localeCompare(t)}}:i;return function(r){return void 0===r?e||(e=n(r)):"en-US"===r?t||(t=n(r)):n(r)};function r(e,t,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;var r=n(e,t);return r<0?-1:r>0?1:0}function i(){return function(t,n){return r(t,n,e)};function e(e,n){return t(e.toUpperCase(),n.toUpperCase())||t(e,n)}function t(e,t){return e<t?-1:e>t?1:0}}}();function te(e){return e.file?e.file.fileName:void 0}function ne(e){return e.replace(/\\/g,"/")}function re(e){if(47===e.charCodeAt(0)){if(47!==e.charCodeAt(1))return 1;var t=e.indexOf("/",2);if(t<0)return 2;var n=e.indexOf("/",t+1);return n<0?t+1:n+1}if(58===e.charCodeAt(1)&&(47===e.charCodeAt(2)||92===e.charCodeAt(2)))return 3;if(0===e.lastIndexOf("file:///",0))return"file:///".length;var r=e.indexOf("://");return-1!==r?r+"://".length:0}e.getUILocale=function(){return Z},e.setUILocale=function(e){Z!==e&&(Z=e,$=void 0)},e.compareStringsCaseSensitiveUI=function(e,t){return($||($=ee(Z)))(e,t)},e.compareProperties=function(e,t,n,r){return e===t?0:void 0===e?-1:void 0===t?1:r(e[n],t[n])},e.compareDiagnostics=function(e,t){return Y(te(e),te(t))||X(e.start,t.start)||X(e.length,t.length)||X(e.code,t.code)||function(e,t){for(;e&&t;){var n=Y(B(e)?e:e.messageText,B(t)?t:t.messageText);if(n)return n;e=B(e)?void 0:e.next,t=B(t)?void 0:t.next}return e||t?e?1:-1:0}(e.messageText,t.messageText)||0},e.compareBooleans=function(e,t){return X(e?1:0,t?1:0)},e.normalizeSlashes=ne,e.getRootLength=re,e.directorySeparator="/";var ie=47;function ae(t,n){for(var r=[],i=0,a=t.substr(n).split(e.directorySeparator);i<a.length;i++){var o=a[i];"."!==o&&(".."===o&&r.length>0&&".."!==D(r)?r.pop():o&&r.push(o))}return r}function oe(e){return se(e).path}function se(t){var n=re(t=ne(t)),r=t.substr(0,n),i=ae(t,n);if(i.length){var a=r+i.join(e.directorySeparator);return{path:ce(t)?a+e.directorySeparator:a,parts:i}}return{path:r,parts:i}}function ce(e){return e.charCodeAt(e.length-1)===ie}function ue(t){return t.substr(0,Math.max(re(t),t.lastIndexOf(e.directorySeparator)))}function le(e){return e&&!fe(e)&&Ee(e,"://")}function _e(e){return e.target||0}function de(t){return"number"==typeof t.module?t.module:_e(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function pe(e){for(var t=!1,n=0;n<e.length;n++)if(42===e.charCodeAt(n)){if(t)return!1;t=!0}return!0}function fe(e){return e&&0!==re(e)}function me(e,t){var n=ae(e,t);return[e.substr(0,t)].concat(n)}function ge(e,t){var n=re(e=ne(e));return 0===n&&(n=re(e=ke(ne(t),e))),me(e,n)}function ye(e,t){return he(ge(e,t))}function he(t){if(t&&t.length)return t[0]+t.slice(1).join(e.directorySeparator)}function ve(t,n){return le(t)?function(t){for(var n=t.length,r=t.indexOf("://")+"://".length;r<n&&47===t.charCodeAt(r);)r++;if(r===n)return[t];var i=t.indexOf(e.directorySeparator,r);return-1!==i?me(t,r=i+1):[t+e.directorySeparator]}(t):ge(t,n)}function be(t,n,r,i,a){var o,s=ve(n,r),c=ve(t,r);for(c.length>1&&""===D(c)&&c.pop(),o=0;o<s.length&&o<c.length&&i(c[o])===i(s[o]);o++);if(o){for(var u="",l=s.slice(o,s.length);o<c.length;o++)""!==c[o]&&(u=u+".."+e.directorySeparator);return u+l.join(e.directorySeparator)}var _=he(s);return a&&fe(_)&&(_="file:///"+_),_}function xe(t){if(void 0!==t){var n=t.lastIndexOf(e.directorySeparator);return n<0?t:t.substring(n+1)}}function ke(t,n){return t&&t.length?n&&n.length?0!==re(n)?n:t.charAt(t.length-1)===e.directorySeparator?t+n:t+e.directorySeparator+n:t:n}function Se(t){return t.charAt(t.length-1)===e.directorySeparator?t.substr(0,t.length-1):t}function De(e,t,n,r){if(void 0===e||void 0===t)return!1;if(e===t)return!0;if((e=Se(e))===(t=Se(t)))return!0;var i=ge(e,n),a=ge(t,n);if(a.length<i.length)return!1;for(var o=r?W:H,s=0;s<i.length;s++)if(!o(i[s],a[s]))return!1;return!0}function Ce(e,t){return 0===e.lastIndexOf(t,0)}function Te(e,t){var n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}function Ee(e,t){return-1!==e.indexOf(t)}function Ne(e){return Ee(xe(e),".")}function Ae(e,t){return e.length>t.length&&Te(e,t)}function Pe(e,t){for(var n=0,r=t;n<r.length;n++)if(Ae(e,r[n]))return!0;return!1}e.normalizePath=oe,e.normalizePathAndParts=se,e.pathEndsWithDirectorySeparator=ce,e.getDirectoryPath=ue,e.isUrl=le,e.pathIsRelative=function(e){return/^\.\.?($|[\\/])/.test(e)},e.getEmitScriptTarget=_e,e.getEmitModuleKind=de,e.getEmitModuleResolutionKind=function(t){var n=t.moduleResolution;return void 0===n&&(n=de(t)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),n},e.getAllowSyntheticDefaultImports=function(t){var n=de(t);return void 0!==t.allowSyntheticDefaultImports?t.allowSyntheticDefaultImports:t.esModuleInterop?n!==e.ModuleKind.None&&n<e.ModuleKind.ES2015:n===e.ModuleKind.System},e.getStrictOptionValue=function(e,t){return void 0===e[t]?e.strict:e[t]},e.hasZeroOrOneAsteriskCharacter=pe,e.isRootedDiskPath=fe,e.convertToRelativePath=function(e,t,n){return fe(e)?be(t,e,t,n,!1):e},e.getNormalizedPathComponents=ge,e.getNormalizedAbsolutePath=ye,e.getNormalizedPathFromPathComponents=he,e.getRelativePathToDirectoryOrUrl=be,e.getBaseFileName=xe,e.combinePaths=ke,e.removeTrailingDirectorySeparator=Se,e.ensureTrailingDirectorySeparator=function(t){return t.charAt(t.length-1)!==e.directorySeparator?t+e.directorySeparator:t},e.comparePaths=function(e,t,n,r){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;e=Se(e),t=Se(t);for(var i=ge(e,n),a=ge(t,n),o=Math.min(i.length,a.length),s=r?Q:Y,c=0;c<o;c++){var u=s(i[c],a[c]);if(0!==u)return u}return X(i.length,a.length)},e.containsPath=De,e.startsWith=Ce,e.removePrefix=function(e,t){return Ce(e,t)?e.substr(t.length):e},e.endsWith=Te,e.removeSuffix=function(e,t){return Te(e,t)?e.slice(0,e.length-t.length):e},e.stringContains=Ee,e.hasExtension=Ne,e.fileExtensionIs=Ae,e.fileExtensionIsOneOf=Pe;var we=/[^\w\s\/]/g,Fe=[42,63];e.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var Ie="(?!("+e.commonPackageFolders.join("|")+")(/|$))",Oe={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/"+Ie+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return Je(e,Oe.singleAsteriskRegexFragment)}},Me={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/"+Ie+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return Je(e,Me.singleAsteriskRegexFragment)}},Le={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(e){return Je(e,Le.singleAsteriskRegexFragment)}},Re={files:Oe,directories:Me,exclude:Le};function Be(e,t,n){var r=ze(e,t,n);if(r&&r.length)return"^("+r.map(function(e){return"("+e+")"}).join("|")+")"+("exclude"===n?"($|/)":"$")}function ze(t,n,r){if(void 0!==t&&0!==t.length)return p(t,function(t){return t&&function(t,n,r,i){var a=i.singleAsteriskRegexFragment,o=i.doubleAsteriskRegexFragment,s=i.replaceWildcardCharacter,c="",u=!1,l=ge(t,n),_=D(l);if("exclude"===r||"**"!==_){l[0]=Se(l[0]),je(_)&&l.push("**","*");for(var d=0,p=0,f=l;p<f.length;p++){var m=f[p];if("**"===m)c+=o;else if("directories"===r&&(c+="(",d++),u&&(c+=e.directorySeparator),"exclude"!==r){var g="";42===m.charCodeAt(0)?(g+="([^./]"+a+")?",m=m.substr(1)):63===m.charCodeAt(0)&&(g+="[^./]",m=m.substr(1)),(g+=m.replace(we,s))!==m&&(c+=Ie),c+=g}else c+=m.replace(we,s);u=!0}for(;d>0;)c+=")?",d--;return c}}(t,n,r,Re[r])})}function je(e){return!/[.*?]/.test(e)}function Je(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function Ke(e,t,n,r,i){e=oe(e);var a=ke(i=oe(i),e);return{includeFilePatterns:_(ze(n,a,"files"),function(e){return"^"+e+"$"}),includeFilePattern:Be(n,a,"files"),includeDirectoryPattern:Be(n,a,"directories"),excludePattern:Be(t,a,"exclude"),basePaths:function(e,t,n){var r=[e];if(t){for(var i=[],a=0,s=t;a<s.length;a++){var c=s[a],u=fe(c)?c:oe(ke(e,c));i.push(Ue(u))}i.sort(n?Y:Q);for(var l=function(t){o(r,function(r){return!De(r,t,e,!n)})&&r.push(t)},_=0,d=i;_<d.length;_++)l(d[_])}return r}(e,n,r)}}function Ue(t){var n=l(t,Fe);return n<0?Ne(t)?Se(ue(t)):t:t.substring(0,t.lastIndexOf(e.directorySeparator,n))}function Ve(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":return 1;case".jsx":return 2;case".ts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}e.getRegularExpressionForWildcard=Be,e.isImplicitGlob=je,e.getFileMatcherPatterns=Ke,e.matchFiles=function(e,t,n,r,i,a,o,s){for(var u=Ke(e=oe(e),n,r,i,a=oe(a)),l=i?"":"i",_=u.includeFilePatterns&&u.includeFilePatterns.map(function(e){return new RegExp(e,l)}),p=u.includeDirectoryPattern&&new RegExp(u.includeDirectoryPattern,l),f=u.excludePattern&&new RegExp(u.excludePattern,l),m=_?_.map(function(){return[]}):[[]],g=0,y=u.basePaths;g<y.length;g++){var h=y[g];v(h,ke(a,h),o)}return d(m);function v(e,n,r){for(var i=s(e),a=i.directories,o=function(r){var i=ke(e,r),a=ke(n,r);if(t&&!Pe(i,t))return"continue";if(f&&f.test(a))return"continue";if(_){var o=c(_,function(e){return e.test(a)});-1!==o&&m[o].push(i)}else m[0].push(i)},u=0,l=x(i.files,Y);u<l.length;u++)o(y=l[u]);if(void 0===r||0!=--r)for(var d=0,g=x(a,Y);d<g.length;d++){var y,h=ke(e,y=g[d]),b=ke(n,y);p&&!p.test(b)||f&&f.test(b)||v(h,b,r)}}},e.ensureScriptKind=function(e,t){return t||Ve(e)||3},e.getScriptKindFromFileName=Ve,e.supportedTypeScriptExtensions=[".ts",".tsx",".d.ts"],e.supportedTypescriptExtensionsForExtractExtension=[".d.ts",".ts",".tsx"],e.supportedJavascriptExtensions=[".js",".jsx"];var qe=e.supportedTypeScriptExtensions.concat(e.supportedJavascriptExtensions);function We(t,n){var r=t&&t.allowJs;return n&&0!==n.length&&r?m(qe.concat(n.map(function(e){return e.extension})),H,Y):r?qe:e.supportedTypeScriptExtensions}function He(e,t){return e<2?0:e<t.length?2:t.length}e.getSupportedExtensions=We,e.hasJavaScriptFileExtension=function(t){return a(e.supportedJavascriptExtensions,function(e){return Ae(t,e)})},e.hasTypeScriptFileExtension=function(t){return a(e.supportedTypeScriptExtensions,function(e){return Ae(t,e)})},e.isSupportedSourceFileName=function(e,t,n){if(!e)return!1;for(var r=0,i=We(t,n);r<i.length;r++)if(Ae(e,i[r]))return!0;return!1},function(e){e[e.TypeScriptFiles=0]="TypeScriptFiles",e[e.DeclarationAndJavaScriptFiles=2]="DeclarationAndJavaScriptFiles",e[e.Highest=0]="Highest",e[e.Lowest=2]="Lowest"}(e.ExtensionPriority||(e.ExtensionPriority={})),e.getExtensionPriority=function(e,t){for(var n=t.length-1;n>=0;n--)if(Ae(e,t[n]))return He(n,t);return 0},e.adjustExtensionPriority=He,e.getNextLowestExtensionPriority=function(e,t){return e<2?2:t.length};var Ge,Xe=[".d.ts",".ts",".js",".tsx",".jsx"];function Qe(e){for(var t=0,n=Xe;t<n.length;t++){var r=Ye(e,n[t]);if(void 0!==r)return r}return e}function Ye(e,t){return Ae(e,t)?$e(e,t):void 0}function $e(e,t){return e.substring(0,e.length-t.length)}function Ze(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function et(e,t){this.flags=t,Ge.isDebugging&&(this.checker=e)}function tt(){}function nt(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0}function rt(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||function(e){return e}}function it(e,t){for(var n=t;n<e.length-1;n++)e[n]=e[n+1];e.pop()}function at(e,t){e[t]=e[e.length-1],e.pop()}function ot(e,t){!function(e,n){for(var r=0;r<e.length;r++)if(e[r]===t){at(e,r);break}}(e)}function st(e,t,n){for(var r,i=-1,a=0,o=e;a<o.length;a++){var s=o[a],c=t(s);ct(c,n)&&c.prefix.length>i&&(i=c.prefix.length,r=s)}return r}function ct(e,t){var n=e.prefix,r=e.suffix;return t.length>=n.length+r.length&&Ce(t,n)&&Te(t,r)}function ut(e){Ge.assert(pe(e));var t=e.indexOf("*");return-1===t?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function lt(t){return s(e.supportedTypescriptExtensionsForExtractExtension,function(e){return Ae(t,e)})||s(e.supportedJavascriptExtensions,function(e){return Ae(t,e)})}e.removeFileExtension=Qe,e.tryRemoveExtension=Ye,e.removeExtension=$e,e.changeExtension=function(e,t){return Qe(e)+t},e.removeMinAndVersionNumbers=function(e){var t=/[.-]((min)|(\d+(\.\d+)*))$/;return e.replace(t,"").replace(t,"")},e.objectAllocator={getNodeConstructor:function(){return nt},getTokenConstructor:function(){return nt},getIdentifierConstructor:function(){return nt},getSourceFileConstructor:function(){return nt},getSymbolConstructor:function(){return Ze},getTypeConstructor:function(){return et},getSignatureConstructor:function(){return tt},getSourceMapSourceConstructor:function(){return rt}},function(e){e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive"}(e.AssertionLevel||(e.AssertionLevel={})),function(t){function n(e,t,i,a){e||(i&&(t+="\r\nVerbose Debug Information: "+("string"==typeof i?i:i())),r(t?"False expression: "+t:"False expression.",a||n))}function r(e,t){var n=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(n,t||r),n}function i(e,t){return n(void 0!==e&&null!==e,t),e}function a(t){var n=e.SyntaxKind;return n?n[t.kind]:t.kind.toString()}t.currentAssertionLevel=0,t.isDebugging=!1,t.shouldAssert=function(e){return t.currentAssertionLevel>=e},t.assert=n,t.assertEqual=function(e,t,n,i){e!==t&&r("Expected "+e+" === "+t+". "+(n?i?n+" "+i:n:""))},t.assertLessThan=function(e,t,n){e>=t&&r("Expected "+e+" < "+t+". "+(n||""))},t.assertLessThanOrEqual=function(e,t){e>t&&r("Expected "+e+" <= "+t)},t.assertGreaterThanOrEqual=function(e,t){e<t&&r("Expected "+e+" >= "+t)},t.fail=r,t.assertDefined=i,t.assertEachDefined=function(e,t){for(var n=0,r=e;n<r.length;n++)i(r[n],t);return e},t.assertNever=function e(t,n,i){return r(n||"Illegal value: "+t,i||e)},t.getFunctionName=function(e){if("function"!=typeof e)return"";if(e.hasOwnProperty("name"))return e.name;var t=Function.prototype.toString.call(e),n=/^function\s+([\w\$]+)\s*\(/.exec(t);return n?n[1]:""},t.showSymbol=function(t){var n=e.SymbolFlags;return"{ flags: "+(n?function(e,t){for(var n=[],r=0;r<=30;r++){var i=1<<r;e&i&&n.push(t[i])}return n.join("|")}(t.flags,n):t.flags)+"; declarations: "+_(t.declarations,a)+" }"},t.showSyntaxKind=a}(Ge=e.Debug||(e.Debug={})),e.orderedRemoveItem=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return it(e,n),!0;return!1},e.orderedRemoveItemAt=it,e.unorderedRemoveItemAt=at,e.unorderedRemoveItem=ot,e.createGetCanonicalFileName=function(e){return e?j:J},e.matchPatternOrExact=function(e,t){for(var n=[],r=0,i=e;r<i.length;r++){var a=i[r],o=ut(a);if(o)n.push(o);else if(a===t)return a}return st(n,function(e){return e},t)},e.patternText=function(e){return e.prefix+"*"+e.suffix},e.matchedText=function(e,t){return Ge.assert(ct(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)},e.findBestPatternMatch=st,e.tryParsePattern=ut,e.positionIsSynthesized=function(e){return!(e>=0)},e.extensionIsTypeScript=function(e){return".ts"===e||".tsx"===e||".d.ts"===e},e.extensionFromPath=function(e){var t=lt(e);if(void 0!==t)return t;Ge.fail("File "+e+" has unknown extension.")},e.isAnySupportedFileExtension=function(e){return void 0!==lt(e)},e.tryGetExtensionFromPath=lt,e.getAnyExtensionFromPath=function(e){var t=xe(e),n=t.lastIndexOf(".");if(n>=0)return t.substring(n)},e.isCheckJsEnabledForFile=function(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs},e.and=function(e,t){return function(n){return e(n)&&t(n)}},e.or=function(e,t){return function(n){return e(n)||t(n)}},e.assertTypeIsNever=function(e){},e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray},e.singleElementArray=function(e){return void 0===e?void 0:[e]},e.enumerateInsertsAndDeletes=function(e,t,n,r,i,a){a=a||z;for(var o=0,s=0,c=e.length,u=t.length;o<c&&s<u;){var l=e[o],_=t[s],d=n(l,_);-1===d?(r(l),o++):1===d?(i(_),s++):(a(_,l),o++,s++)}for(;o<c;)r(e[o++]);for(;s<u;)i(t[s++])}}(l||(l={})),function(t){var a,o;t.setStackTraceLimit=function(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)},function(e){e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted"}(a=t.FileWatcherEventKind||(t.FileWatcherEventKind={})),function(e){e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low"}(o=t.PollingInterval||(t.PollingInterval={}));var s=[250,500,2e3];function u(e){return(t={})[o.Low]=e.Low,t[o.Medium]=e.Medium,t[o.High]=e.High,t;var t}t.watchFileUsingPriorityPollingInterval=function(e,t,n,r){return e.watchFile(t,n,function(e){return s[e]}(r))},t.missingFileModifiedTime=new Date(0);var l={Low:32,Medium:64,High:256},_=u(l);function d(e){if(e.getEnvironmentVariable){var n=function(e,t){var n=r("TSC_WATCH_POLLINGINTERVAL");return!!n&&(i("Low"),i("Medium"),i("High"),!0);function i(e){t[e]=n[e]||t[e]}}(0,o);_=i("TSC_WATCH_POLLINGCHUNKSIZE",l)||_,t.unchangedPollThresholds=i("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",l)||t.unchangedPollThresholds}function r(t){var n;return r("Low"),r("Medium"),r("High"),n;function r(r){var i=function(n,r){return e.getEnvironmentVariable(t+"_"+r.toUpperCase())}(0,r);i&&((n||(n={}))[r]=Number(i))}}function i(e,t){var i=r(e);return(n||i)&&u(i?c({},t,i):t)}}function p(e){var n=[],r=[],i=c(o.Low),a=c(o.Medium),s=c(o.High);return function(e,r,i){var a={fileName:e,callback:r,unchangedPolls:0,mtime:h(e)};return n.push(a),m(a,i),{close:function(){a.isClosed=!0,t.unorderedRemoveItem(n,a)}}};function c(e){var t=[];return t.pollingInterval=e,t.pollIndex=0,t.pollScheduled=!1,t}function u(e){e.pollIndex=d(e,e.pollingInterval,e.pollIndex,_[e.pollingInterval]),e.length?y(e.pollingInterval):(t.Debug.assert(0===e.pollIndex),e.pollScheduled=!1)}function l(e){d(r,o.Low,0,r.length),u(e),!e.pollScheduled&&r.length&&y(o.Low)}function d(e,n,i,a){for(var s=e.length,c=i,u=0;u<a&&s>0;++i===e.length&&(c<i&&(e.length=c),i=0,c=0),s--){var l=e[i];if(l)if(l.isClosed)e[i]=void 0;else{u++;var _=f(l,h(l.fileName));l.isClosed?e[i]=void 0:_?(l.unchangedPolls=0,e!==r&&(e[i]=void 0,r.push(l),g(o.Low))):l.unchangedPolls!==t.unchangedPollThresholds[n]?l.unchangedPolls++:e===r?(l.unchangedPolls=1,e[i]=void 0,m(l,o.Low)):n!==o.High&&(l.unchangedPolls++,e[i]=void 0,m(l,n===o.Low?o.Medium:o.High)),e[i]&&(c<i&&(e[c]=l,e[i]=void 0),c++)}}return i}function p(e){switch(e){case o.Low:return i;case o.Medium:return a;case o.High:return s}}function m(e,t){p(t).push(e),g(t)}function g(e){p(e).pollScheduled||y(e)}function y(t){p(t).pollScheduled=e.setTimeout(t===o.Low?l:u,t,p(t))}function h(n){return e.getModifiedTime(n)||t.missingFileModifiedTime}}function f(e,t){var n=e.mtime.getTime(),r=t.getTime();return n!==r&&(e.mtime=t,e.callback(e.fileName,0===n?a.Created:0===r?a.Deleted:a.Changed),!0)}function m(e){return n;function n(n,i){var a=e.watchDirectory(n,function(e){i(e),r(o,i)}),o={close:function(){a.close(),o.childWatches.forEach(t.closeFileWatcher),o=void 0},dirName:n,childWatches:t.emptyArray};return r(o,i),o}function r(r,i){r&&(r.childWatches=function(r,i,a){var o;return t.enumerateInsertsAndDeletes(e.directoryExists(r)?e.getAccessileSortedChildDirectories(r):t.emptyArray,i,function(n,i){return e.filePathComparer(t.getNormalizedAbsolutePath(n,r),i.dirName)},function(e){s(n(t.getNormalizedAbsolutePath(e,r),a))},t.closeFileWatcher,s),o||t.emptyArray;function s(e){(o||(o=[])).push(e)}}(r.dirName,r.childWatches,i))}}function g(){if("undefined"!=typeof e){var t=e.version;if(t){var n=t.indexOf(".");if(-1!==n)return parseInt(t.substring(1,n))}}}t.unchangedPollThresholds=u(l),t.setCustomPollingValues=d,t.createDynamicPriorityPollingWatchFile=p,t.onWatchedFileStat=f,t.createRecursiveDirectoryWatcher=m,t.getNodeMajorVersion=g,t.sys=function(){var s,c;if("undefined"!=typeof ChakraHost?(c=ChakraHost.realpath&&function(e){return ChakraHost.realpath(e)},s={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,n){n&&(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(e,n,r,i,a){var o=t.getFileMatcherPatterns(e,r,i,!!ChakraHost.useCaseSensitiveFileNames,ChakraHost.currentDirectory);return ChakraHost.readDirectory(e,n,o.basePaths,o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern)},exit:ChakraHost.quit,realpath:c}):"undefined"!=typeof e&&e.nextTick&&!e.browser&&(s=function(){var s,c=n("Ya8g"),u=n("o/zv"),l=n("gAs1");try{s=n("Ya8g")}catch(e){s=void 0}var _,d,f=g()>=4,y=l.platform(),h="win32"!==y&&"win64"!==y&&!O((d=r,d.replace(/\w/g,function(e){var t=e.toUpperCase();return e===t?e.toLowerCase():t})));!function(e){e[e.File=0]="File",e[e.Directory=1]="Directory"}(_||(_={}));var v,b=e.env.TSC_NONPOLLING_WATCHER,x=e.env.TSC_WATCHFILE,k=e.env.TSC_WATCHDIRECTORY,S={args:e.argv.slice(2),newLine:l.EOL,useCaseSensitiveFileNames:h,write:function(t){e.stdout.write(t)},readFile:function(e,t){if(O(e)){var n=c.readFileSync(e),r=n.length;if(r>=2&&254===n[0]&&255===n[1]){r&=-2;for(var i=0;i<r;i+=2){var a=n[i];n[i]=n[i+1],n[i+1]=a}return n.toString("utf16le",2)}return r>=2&&255===n[0]&&254===n[1]?n.toString("utf16le",2):r>=3&&239===n[0]&&187===n[1]&&191===n[2]?n.toString("utf8",3):n.toString("utf8")}},writeFile:function(e,t,n){var r;n&&(t="\ufeff"+t);try{r=c.openSync(e,"w"),c.writeSync(r,t,void 0,"utf8")}finally{void 0!==r&&c.closeSync(r)}},watchFile:function(){switch(x){case"PriorityPollingInterval":return C;case"DynamicPriorityPolling":return p({getModifiedTime:L,setTimeout:setTimeout});case"UseFsEvents":return N;case"UseFsEventsWithFallbackDynamicPolling":return v=p({getModifiedTime:L,setTimeout:setTimeout}),e=v,function(t,n,r){return E(t,0,T(t,n),!1,e,r)};case"UseFsEventsOnParentDirectory":return D()}var e;return b?D():function(e,t){return C(e,t)}}(),watchDirectory:function(){if(f&&("win32"===e.platform||"darwin"===e.platform))return P;var n="RecursiveDirectoryUsingFsWatchFile"===k?w(C):"RecursiveDirectoryUsingDynamicPriorityPolling"===k?w(v||p({getModifiedTime:L,setTimeout:setTimeout})):P,r=m({filePathComparer:h?t.compareStringsCaseSensitive:t.compareStringsCaseInsensitive,directoryExists:M,getAccessileSortedChildDirectories:function(e){return F(e).directories},watchDirectory:n});return function(e,t,i){if(i)return r(e,t);n(e,t)}}(),resolvePath:function(e){return u.resolve(e)},fileExists:O,directoryExists:M,createDirectory:function(e){S.directoryExists(e)||c.mkdirSync(e)},getExecutingFilePath:function(){return r},getCurrentDirectory:function(){return e.cwd()},getDirectories:function(e){return t.filter(c.readdirSync(e),function(n){return I(t.combinePaths(e,n),1)})},getEnvironmentVariable:function(t){return e.env[t]||""},readDirectory:function(n,r,i,a,o){return t.matchFiles(n,r,i,a,h,e.cwd(),o,F)},getModifiedTime:L,createHash:s?function(e){var t=s.createHash("md5");return t.update(e),t.digest("hex")}:function(e){return""+e.split("").map(function(e){return e.charCodeAt(0)}).reduce(function(e,t){return(e<<5)+e+t},5381)},getMemoryUsage:function(){return i.gc&&i.gc(),e.memoryUsage().heapUsed},getFileSize:function(e){try{var t=c.statSync(e);if(t.isFile())return t.size}catch(e){}return 0},exit:function(t){e.exit(t)},realpath:function(e){try{return c.realpathSync(e)}catch(t){return e}},debugMode:t.some(e.execArgv,function(e){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)}),tryEnableSourceMapsForHost:function(){try{n("mtjK").install()}catch(e){}},setTimeout:setTimeout,clearTimeout:clearTimeout,clearScreen:function(){e.stdout.write("\x1bc")},setBlocking:function(){e.stdout&&e.stdout._handle&&e.stdout._handle.setBlocking&&e.stdout._handle.setBlocking(!0)}};return S;function D(){var e=t.createMultiMap(),n=t.createMap(),r=t.createGetCanonicalFileName(h);return function(i,o){var s=r(i);e.add(s,o);var c=t.getDirectoryPath(s)||".",u=n.get(c)||function(i,o){var s=A(i,function(n,o){var s=t.isString(o)?t.getNormalizedAbsolutePath(o,i):void 0,c=e.get(r(s));if(c)for(var u=0,l=c;u<l.length;u++)(0,l[u])(s,a.Changed)});return s.referenceCount=0,n.set(o,s),s}(t.getDirectoryPath(i)||".",c);return u.referenceCount++,{close:function(){1===u.referenceCount?(u.close(),n.delete(c)):u.referenceCount--,e.remove(s,o)}}}}function C(e,t,n){var r;return c.watchFile(e,{persistent:!0,interval:n||250},i),{close:function(){return c.unwatchFile(e,i)}};function i(n,i){var o=0==+i.mtime||r===a.Deleted;if(0==+n.mtime){if(o)return;r=a.Deleted}else if(o)r=a.Created;else{if(+n.mtime==+i.mtime)return;r=a.Changed}t(e,r)}}function T(e,t){return function(n){t(e,"rename"===n?O(e)?a.Created:a.Deleted:a.Changed)}}function E(t,n,r,i,o,s){var u,l=I(t,n)?d():p();return{close:function(){l.close(),l=void 0}};function _(e){r("rename",""),l&&(l.close(),l=e())}function d(){void 0===u&&(u=!f||"win32"!==e.platform&&"darwin"!==e.platform?{persistent:!0}:{persistent:!0,recursive:!!i});try{var n=c.watch(t,u,r);return n.on("error",function(){return _(p)}),n}catch(e){return o(t,function(e){return function(t,n){return e(n===a.Changed?"change":"rename","")}}(r),s)}}function p(){return o(t,function(e,r){r===a.Created&&I(t,n)&&_(d)},s)}}function N(e,t,n){return E(e,0,T(e,t),!1,C,n)}function A(e,t,n){return E(e,1,t,!!n,C)}function P(e,n,r){return A(e,function(e,n){return function(r,i){"rename"===r&&n(i?t.normalizePath(t.combinePaths(e,i)):e)}}(e,n),r)}function w(e){return function(t,n){return e(t,function(){return n(t)},o.Medium)}}function F(e){try{for(var n=c.readdirSync(e||".").sort(),r=[],i=[],a=0,o=n;a<o.length;a++){var s=o[a];if("."!==s&&".."!==s){var u=t.combinePaths(e,s),l=void 0;try{l=c.statSync(u)}catch(e){continue}l.isFile()?r.push(s):l.isDirectory()&&i.push(s)}}return{files:r,directories:i}}catch(e){return t.emptyFileSystemEntries}}function I(e,t){try{var n=c.statSync(e);switch(t){case 0:return n.isFile();case 1:return n.isDirectory()}}catch(e){return!1}}function O(e){return I(e,0)}function M(e){return I(e,1)}function L(e){try{return c.statSync(e).mtime}catch(e){return}}}()),s){var u=s.writeFile;s.writeFile=function(e,n,r){var i=t.getDirectoryPath(t.normalizeSlashes(e));i&&!s.directoryExists(i)&&function e(n,r){var i=t.getDirectoryPath(n),a=""!==i&&n!==i&&!r.directoryExists(i);a&&e(i,r),!a&&r.directoryExists(n)||r.createDirectory(n)}(i,s),u.call(s,e,n,r)}}return s}(),t.sys&&t.sys.getEnvironmentVariable&&(d(t.sys),t.Debug.currentAssertionLevel=/^development$/i.test(t.sys.getEnvironmentVariable("NODE_ENV"))?1:0),t.sys&&t.sys.debugMode&&(t.Debug.isDebugging=!0)}(l||(l={})),function(e){function t(e,t,n,r){return{code:e,category:t,key:n,message:r}}e.Diagnostics={Unterminated_string_literal:t(1002,e.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:t(1003,e.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:t(1005,e.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:t(1006,e.DiagnosticCategory.Error,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),Trailing_comma_not_allowed:t(1009,e.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:t(1010,e.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),Unexpected_token:t(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_must_be_last_in_a_parameter_list:t(1014,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:t(1015,e.DiagnosticCategory.Error,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:t(1016,e.DiagnosticCategory.Error,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:t(1017,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:t(1018,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:t(1019,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:t(1020,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:t(1021,e.DiagnosticCategory.Error,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:t(1022,e.DiagnosticCategory.Error,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),An_index_signature_parameter_type_must_be_string_or_number:t(1023,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_string_or_number_1023","An index signature parameter type must be 'string' or 'number'."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:t(1024,e.DiagnosticCategory.Error,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),Accessibility_modifier_already_seen:t(1028,e.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:t(1029,e.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:t(1030,e.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_a_class_element:t(1031,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_class_element_1031","'{0}' modifier cannot appear on a class element."),super_must_be_followed_by_an_argument_list_or_member_access:t(1034,e.DiagnosticCategory.Error,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:t(1035,e.DiagnosticCategory.Error,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:t(1036,e.DiagnosticCategory.Error,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:t(1038,e.DiagnosticCategory.Error,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:t(1039,e.DiagnosticCategory.Error,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:t(1040,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_with_a_class_declaration:t(1041,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_class_declaration_1041","'{0}' modifier cannot be used with a class declaration."),_0_modifier_cannot_be_used_here:t(1042,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_data_property:t(1043,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_data_property_1043","'{0}' modifier cannot appear on a data property."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:t(1044,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),A_0_modifier_cannot_be_used_with_an_interface_declaration:t(1045,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_interface_declaration_1045","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:t(1046,e.DiagnosticCategory.Error,"A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file_1046","A 'declare' modifier is required for a top level declaration in a .d.ts file."),A_rest_parameter_cannot_be_optional:t(1047,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:t(1048,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:t(1049,e.DiagnosticCategory.Error,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:t(1051,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:t(1052,e.DiagnosticCategory.Error,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:t(1053,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:t(1054,e.DiagnosticCategory.Error,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:t(1055,e.DiagnosticCategory.Error,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","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:t(1056,e.DiagnosticCategory.Error,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),An_async_function_or_method_must_have_a_valid_awaitable_return_type:t(1057,e.DiagnosticCategory.Error,"An_async_function_or_method_must_have_a_valid_awaitable_return_type_1057","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:t(1058,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:t(1059,e.DiagnosticCategory.Error,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:t(1060,e.DiagnosticCategory.Error,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:t(1061,e.DiagnosticCategory.Error,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:t(1062,e.DiagnosticCategory.Error,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:t(1063,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:t(1064,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1064","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:t(1066,e.DiagnosticCategory.Error,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:t(1068,e.DiagnosticCategory.Error,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),_0_modifier_cannot_appear_on_a_type_member:t(1070,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:t(1071,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:t(1079,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:t(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:t(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),An_accessor_cannot_be_declared_in_an_ambient_context:t(1086,e.DiagnosticCategory.Error,"An_accessor_cannot_be_declared_in_an_ambient_context_1086","An accessor cannot be declared in an ambient context."),_0_modifier_cannot_appear_on_a_constructor_declaration:t(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:t(1090,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:t(1091,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:t(1092,e.DiagnosticCategory.Error,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:t(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:t(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:t(1095,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:t(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:t(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:t(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:t(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:t(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:t(1101,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:t(1102,e.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'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:t(1103,e.DiagnosticCategory.Error,"A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator_1103","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:t(1104,e.DiagnosticCategory.Error,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:t(1105,e.DiagnosticCategory.Error,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),Jump_target_cannot_cross_function_boundary:t(1107,e.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:t(1108,e.DiagnosticCategory.Error,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:t(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:t(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:t(1113,e.DiagnosticCategory.Error,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:t(1114,e.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:t(1115,e.DiagnosticCategory.Error,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:t(1116,e.DiagnosticCategory.Error,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode:t(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117","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:t(1118,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:t(1119,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:t(1120,e.DiagnosticCategory.Error,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:t(1121,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),A_tuple_type_element_list_cannot_be_empty:t(1122,e.DiagnosticCategory.Error,"A_tuple_type_element_list_cannot_be_empty_1122","A tuple type element list cannot be empty."),Variable_declaration_list_cannot_be_empty:t(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:t(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:t(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:t(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:t(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:t(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:t(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:t(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:t(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:t(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:t(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:t(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:t(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:t(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:t(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:t(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:t(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:t(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:t(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:t(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:t(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:t(1147,e.DiagnosticCategory.Error,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:t(1148,e.DiagnosticCategory.Error,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:t(1149,e.DiagnosticCategory.Error,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead:t(1150,e.DiagnosticCategory.Error,"new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead_1150","'new T[]' cannot be used to create an array. Use 'new Array<T>()' instead."),const_declarations_must_be_initialized:t(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:t(1156,e.DiagnosticCategory.Error,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:t(1157,e.DiagnosticCategory.Error,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:t(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:t(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:t(1162,e.DiagnosticCategory.Error,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:t(1163,e.DiagnosticCategory.Error,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:t(1164,e.DiagnosticCategory.Error,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1165,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_1166","A computed property name in a class property declaration must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1168,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1169,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1170,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:t(1171,e.DiagnosticCategory.Error,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:t(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:t(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:t(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:t(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:t(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:t(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:t(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:t(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:t(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:t(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:t(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:t(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:t(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:t(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:t(1186,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:t(1187,e.DiagnosticCategory.Error,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:t(1188,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:t(1189,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:t(1190,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:t(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:t(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:t(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:t(1194,e.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),Catch_clause_variable_cannot_have_a_type_annotation:t(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_a_type_annotation_1196","Catch clause variable cannot have a type annotation."),Catch_clause_variable_cannot_have_an_initializer:t(1197,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:t(1198,e.DiagnosticCategory.Error,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:t(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:t(1200,e.DiagnosticCategory.Error,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:t(1202,e.DiagnosticCategory.Error,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202","Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:t(1203,e.DiagnosticCategory.Error,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided:t(1205,e.DiagnosticCategory.Error,"Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided_1205","Cannot re-export a type when the '--isolatedModules' flag is provided."),Decorators_are_not_valid_here:t(1206,e.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:t(1207,e.DiagnosticCategory.Error,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided:t(1208,e.DiagnosticCategory.Error,"Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided_1208","Cannot compile namespaces when the '--isolatedModules' flag is provided."),Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided:t(1209,e.DiagnosticCategory.Error,"Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided_1209","Ambient const enums are not allowed when the '--isolatedModules' flag is provided."),Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:t(1210,e.DiagnosticCategory.Error,"Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode_1210","Invalid use of '{0}'. Class definitions are automatically in strict mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:t(1211,e.DiagnosticCategory.Error,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:t(1212,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t(1213,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:t(1214,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:t(1215,e.DiagnosticCategory.Error,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:t(1216,e.DiagnosticCategory.Error,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:t(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","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:t(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","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:t(1220,e.DiagnosticCategory.Error,"Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher_1220","Generators are only available when targeting ECMAScript 2015 or higher."),Generators_are_not_allowed_in_an_ambient_context:t(1221,e.DiagnosticCategory.Error,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:t(1222,e.DiagnosticCategory.Error,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:t(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:t(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:t(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:t(1226,e.DiagnosticCategory.Error,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:t(1227,e.DiagnosticCategory.Error,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:t(1228,e.DiagnosticCategory.Error,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:t(1229,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:t(1230,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_can_only_be_used_in_a_module:t(1231,e.DiagnosticCategory.Error,"An_export_assignment_can_only_be_used_in_a_module_1231","An export assignment can only be used in a module."),An_import_declaration_can_only_be_used_in_a_namespace_or_module:t(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232","An import declaration can only be used in a namespace or module."),An_export_declaration_can_only_be_used_in_a_module:t(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_in_a_module_1233","An export declaration can only be used in a module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:t(1234,e.DiagnosticCategory.Error,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_in_a_namespace_or_module:t(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235","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:t(1236,e.DiagnosticCategory.Error,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:t(1237,e.DiagnosticCategory.Error,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:t(1238,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:t(1239,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:t(1240,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:t(1241,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:t(1242,e.DiagnosticCategory.Error,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:t(1243,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:t(1244,e.DiagnosticCategory.Error,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:t(1245,e.DiagnosticCategory.Error,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:t(1246,e.DiagnosticCategory.Error,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:t(1247,e.DiagnosticCategory.Error,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:t(1248,e.DiagnosticCategory.Error,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:t(1249,e.DiagnosticCategory.Error,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:t(1250,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","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:t(1251,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","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:t(1252,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","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:t(1253,e.DiagnosticCategory.Error,"_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag_1253","'{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:t(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_1254","A 'const' initializer in an ambient context must be a string or numeric literal."),A_definite_assignment_assertion_is_not_permitted_in_this_context:t(1255,e.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),with_statements_are_not_allowed_in_an_async_function_block:t(1300,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expression_is_only_allowed_within_an_async_function:t(1308,e.DiagnosticCategory.Error,"await_expression_is_only_allowed_within_an_async_function_1308","'await' expression is only allowed within an async function."),can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment:t(1312,e.DiagnosticCategory.Error,"can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment_1312","'=' can only be used in an object literal property inside a destructuring assignment."),The_body_of_an_if_statement_cannot_be_the_empty_statement:t(1313,e.DiagnosticCategory.Error,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:t(1314,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:t(1315,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:t(1316,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:t(1317,e.DiagnosticCategory.Error,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:t(1318,e.DiagnosticCategory.Error,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:t(1319,e.DiagnosticCategory.Error,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1320,e.DiagnosticCategory.Error,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1321,e.DiagnosticCategory.Error,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1322,e.DiagnosticCategory.Error,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules:t(1323,e.DiagnosticCategory.Error,"Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules_1323","Dynamic import cannot be used when targeting ECMAScript 2015 modules."),Dynamic_import_must_have_one_specifier_as_an_argument:t(1324,e.DiagnosticCategory.Error,"Dynamic_import_must_have_one_specifier_as_an_argument_1324","Dynamic import must have one specifier as an argument."),Specifier_of_dynamic_import_cannot_be_spread_element:t(1325,e.DiagnosticCategory.Error,"Specifier_of_dynamic_import_cannot_be_spread_element_1325","Specifier of dynamic import cannot be spread element."),Dynamic_import_cannot_have_type_arguments:t(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments"),String_literal_with_double_quotes_expected:t(1327,e.DiagnosticCategory.Error,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:t(1328,e.DiagnosticCategory.Error,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:t(1329,e.DiagnosticCategory.Error,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:t(1330,e.DiagnosticCategory.Error,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:t(1331,e.DiagnosticCategory.Error,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:t(1332,e.DiagnosticCategory.Error,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:t(1333,e.DiagnosticCategory.Error,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:t(1334,e.DiagnosticCategory.Error,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:t(1335,e.DiagnosticCategory.Error,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead:t(1336,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead_1336","An index signature parameter type cannot be a type alias. Consider writing '[{0}: {1}]: {2}' instead."),An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead:t(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead_1337","An index signature parameter type cannot be a union type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:t(1338,e.DiagnosticCategory.Error,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Duplicate_identifier_0:t(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:t(2301,e.DiagnosticCategory.Error,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:t(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:t(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:t(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:t(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:t(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0:t(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_2307","Cannot find module '{0}'."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:t(2308,e.DiagnosticCategory.Error,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:t(2309,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:t(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),A_class_may_only_extend_another_class:t(2311,e.DiagnosticCategory.Error,"A_class_may_only_extend_another_class_2311","A class may only extend another class."),An_interface_may_only_extend_a_class_or_another_interface:t(2312,e.DiagnosticCategory.Error,"An_interface_may_only_extend_a_class_or_another_interface_2312","An interface may only extend a class or another interface."),Type_parameter_0_has_a_circular_constraint:t(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:t(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:t(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:t(2316,e.DiagnosticCategory.Error,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:t(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:t(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:t(2319,e.DiagnosticCategory.Error,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:t(2320,e.DiagnosticCategory.Error,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:t(2321,e.DiagnosticCategory.Error,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:t(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:t(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:t(2324,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:t(2325,e.DiagnosticCategory.Error,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:t(2326,e.DiagnosticCategory.Error,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:t(2327,e.DiagnosticCategory.Error,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:t(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_is_missing_in_type_0:t(2329,e.DiagnosticCategory.Error,"Index_signature_is_missing_in_type_0_2329","Index signature is missing in type '{0}'."),Index_signatures_are_incompatible:t(2330,e.DiagnosticCategory.Error,"Index_signatures_are_incompatible_2330","Index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:t(2331,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:t(2332,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:t(2333,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:t(2334,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:t(2335,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:t(2336,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:t(2337,e.DiagnosticCategory.Error,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:t(2338,e.DiagnosticCategory.Error,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:t(2339,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:t(2340,e.DiagnosticCategory.Error,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:t(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),An_index_expression_argument_must_be_of_type_string_number_symbol_or_any:t(2342,e.DiagnosticCategory.Error,"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342","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:t(2343,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1_2343","This syntax requires an imported helper named '{1}', but module '{0}' has no exported member '{1}'."),Type_0_does_not_satisfy_the_constraint_1:t(2344,e.DiagnosticCategory.Error,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:t(2345,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:t(2346,e.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:t(2347,e.DiagnosticCategory.Error,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:t(2348,e.DiagnosticCategory.Error,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures:t(2349,e.DiagnosticCategory.Error,"Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatur_2349","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:t(2350,e.DiagnosticCategory.Error,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","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:t(2351,e.DiagnosticCategory.Error,"Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature_2351","Cannot use 'new' with an expression whose type lacks a call or construct signature."),Type_0_cannot_be_converted_to_type_1:t(2352,e.DiagnosticCategory.Error,"Type_0_cannot_be_converted_to_type_1_2352","Type '{0}' cannot be converted to type '{1}'."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:t(2353,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:t(2354,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:t(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","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:t(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type_2356","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:t(2357,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2358,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:t(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","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:t(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol_2360","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:t(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter_2361","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:t(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2362","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:t(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2363","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:t(2364,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:t(2365,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:t(2366,e.DiagnosticCategory.Error,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),Type_parameter_name_cannot_be_0:t(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:t(2369,e.DiagnosticCategory.Error,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:t(2370,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:t(2371,e.DiagnosticCategory.Error,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_be_referenced_in_its_initializer:t(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_be_referenced_in_its_initializer_2372","Parameter '{0}' cannot be referenced in its initializer."),Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it:t(2373,e.DiagnosticCategory.Error,"Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Initializer of parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_string_index_signature:t(2374,e.DiagnosticCategory.Error,"Duplicate_string_index_signature_2374","Duplicate string index signature."),Duplicate_number_index_signature:t(2375,e.DiagnosticCategory.Error,"Duplicate_number_index_signature_2375","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:t(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376","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:t(2377,e.DiagnosticCategory.Error,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:t(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Getter_and_setter_accessors_do_not_agree_in_visibility:t(2379,e.DiagnosticCategory.Error,"Getter_and_setter_accessors_do_not_agree_in_visibility_2379","Getter and setter accessors do not agree in visibility."),get_and_set_accessor_must_have_the_same_type:t(2380,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_type_2380","'get' and 'set' accessor must have the same type."),A_signature_with_an_implementation_cannot_use_a_string_literal_type:t(2381,e.DiagnosticCategory.Error,"A_signature_with_an_implementation_cannot_use_a_string_literal_type_2381","A signature with an implementation cannot use a string literal type."),Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature:t(2382,e.DiagnosticCategory.Error,"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382","Specialized overload signature is not assignable to any non-specialized signature."),Overload_signatures_must_all_be_exported_or_non_exported:t(2383,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:t(2384,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:t(2385,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:t(2386,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:t(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:t(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:t(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:t(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:t(2391,e.DiagnosticCategory.Error,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:t(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:t(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),Overload_signature_is_not_compatible_with_function_implementation:t(2394,e.DiagnosticCategory.Error,"Overload_signature_is_not_compatible_with_function_implementation_2394","Overload signature is not compatible with function implementation."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:t(2395,e.DiagnosticCategory.Error,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:t(2396,e.DiagnosticCategory.Error,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:t(2397,e.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:t(2399,e.DiagnosticCategory.Error,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:t(2400,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:t(2401,e.DiagnosticCategory.Error,"Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference_2401","Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:t(2402,e.DiagnosticCategory.Error,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:t(2403,e.DiagnosticCategory.Error,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:t(2404,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:t(2405,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:t(2406,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2407,e.DiagnosticCategory.Error,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_2407","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:t(2408,e.DiagnosticCategory.Error,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:t(2409,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:t(2410,e.DiagnosticCategory.Error,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Property_0_of_type_1_is_not_assignable_to_string_index_type_2:t(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_string_index_type_2_2411","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:t(2412,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2_2412","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:t(2413,e.DiagnosticCategory.Error,"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413","Numeric index type '{0}' is not assignable to string index type '{1}'."),Class_name_cannot_be_0:t(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:t(2415,e.DiagnosticCategory.Error,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:t(2416,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:t(2417,e.DiagnosticCategory.Error,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Class_0_incorrectly_implements_interface_1:t(2420,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_may_only_implement_another_class_or_interface:t(2422,e.DiagnosticCategory.Error,"A_class_may_only_implement_another_class_or_interface_2422","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:t(2423,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_property:t(2424,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_proper_2424","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:t(2425,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:t(2426,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:t(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:t(2428,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:t(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:t(2431,e.DiagnosticCategory.Error,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:t(2432,e.DiagnosticCategory.Error,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:t(2433,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:t(2434,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:t(2435,e.DiagnosticCategory.Error,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:t(2436,e.DiagnosticCategory.Error,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:t(2437,e.DiagnosticCategory.Error,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:t(2438,e.DiagnosticCategory.Error,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:t(2439,e.DiagnosticCategory.Error,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:t(2440,e.DiagnosticCategory.Error,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:t(2441,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:t(2442,e.DiagnosticCategory.Error,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:t(2443,e.DiagnosticCategory.Error,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:t(2444,e.DiagnosticCategory.Error,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:t(2445,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1:t(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_2446","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:t(2447,e.DiagnosticCategory.Error,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:t(2448,e.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:t(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:t(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:t(2451,e.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:t(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","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:t(2453,e.DiagnosticCategory.Error,"The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_typ_2453","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:t(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","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:t(2455,e.DiagnosticCategory.Error,"Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0_2455","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:t(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:t(2457,e.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:t(2458,e.DiagnosticCategory.Error,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Type_0_has_no_property_1_and_no_string_index_signature:t(2459,e.DiagnosticCategory.Error,"Type_0_has_no_property_1_and_no_string_index_signature_2459","Type '{0}' has no property '{1}' and no string index signature."),Type_0_has_no_property_1:t(2460,e.DiagnosticCategory.Error,"Type_0_has_no_property_1_2460","Type '{0}' has no property '{1}'."),Type_0_is_not_an_array_type:t(2461,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:t(2462,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:t(2463,e.DiagnosticCategory.Error,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:t(2464,e.DiagnosticCategory.Error,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:t(2465,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:t(2466,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:t(2467,e.DiagnosticCategory.Error,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:t(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:t(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object:t(2470,e.DiagnosticCategory.Error,"Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object_2470","'Symbol' reference does not refer to the global Symbol constructor object."),A_computed_property_name_of_the_form_0_must_be_of_type_symbol:t(2471,e.DiagnosticCategory.Error,"A_computed_property_name_of_the_form_0_must_be_of_type_symbol_2471","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:t(2472,e.DiagnosticCategory.Error,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:t(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),In_const_enum_declarations_member_initializer_must_be_constant_expression:t(2474,e.DiagnosticCategory.Error,"In_const_enum_declarations_member_initializer_must_be_constant_expression_2474","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_or_type_query:t(2475,e.DiagnosticCategory.Error,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:t(2476,e.DiagnosticCategory.Error,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:t(2477,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:t(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),Property_0_does_not_exist_on_const_enum_1:t(2479,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_const_enum_1_2479","Property '{0}' does not exist on 'const' enum '{1}'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:t(2480,e.DiagnosticCategory.Error,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:t(2481,e.DiagnosticCategory.Error,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:t(2483,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:t(2484,e.DiagnosticCategory.Error,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:t(2487,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2488,e.DiagnosticCategory.Error,"Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:t(2489,e.DiagnosticCategory.Error,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property:t(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property_2490","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:t(2491,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:t(2492,e.DiagnosticCategory.Error,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2:t(2493,e.DiagnosticCategory.Error,"Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2_2493","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:t(2494,e.DiagnosticCategory.Error,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:t(2495,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:t(2496,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","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:t(2497,e.DiagnosticCategory.Error,"Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct_2497","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:t(2498,e.DiagnosticCategory.Error,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2499,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2500,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:t(2501,e.DiagnosticCategory.Error,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:t(2502,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:t(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:t(2504,e.DiagnosticCategory.Error,"Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:t(2505,e.DiagnosticCategory.Error,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:t(2506,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:t(2507,e.DiagnosticCategory.Error,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:t(2508,e.DiagnosticCategory.Error,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_a_class_or_interface_type:t(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_a_class_or_interface_type_2509","Base constructor return type '{0}' is not a class or interface type."),Base_constructors_must_all_have_the_same_return_type:t(2510,e.DiagnosticCategory.Error,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:t(2511,e.DiagnosticCategory.Error,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:t(2512,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:t(2513,e.DiagnosticCategory.Error,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),Classes_containing_abstract_methods_must_be_marked_abstract:t(2514,e.DiagnosticCategory.Error,"Classes_containing_abstract_methods_must_be_marked_abstract_2514","Classes containing abstract methods must be marked abstract."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:t(2515,e.DiagnosticCategory.Error,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:t(2516,e.DiagnosticCategory.Error,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:t(2517,e.DiagnosticCategory.Error,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:t(2518,e.DiagnosticCategory.Error,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:t(2519,e.DiagnosticCategory.Error,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:t(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions:t(2521,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions_2521","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:t(2522,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","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:t(2523,e.DiagnosticCategory.Error,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:t(2524,e.DiagnosticCategory.Error,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'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:t(2525,e.DiagnosticCategory.Error,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","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:t(2526,e.DiagnosticCategory.Error,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:t(2527,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:t(2528,e.DiagnosticCategory.Error,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:t(2529,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:t(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:t(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:t(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:t(2533,e.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:t(2534,e.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:t(2535,e.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:t(2536,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:t(2537,e.DiagnosticCategory.Error,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:t(2538,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:t(2539,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property:t(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property_2540","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:t(2541,e.DiagnosticCategory.Error,"The_target_of_an_assignment_must_be_a_variable_or_a_property_access_2541","The target of an assignment must be a variable or a property access."),Index_signature_in_type_0_only_permits_reading:t(2542,e.DiagnosticCategory.Error,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:t(2543,e.DiagnosticCategory.Error,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:t(2544,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:t(2545,e.DiagnosticCategory.Error,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1:t(2546,e.DiagnosticCategory.Error,"Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1_2546","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:t(2547,e.DiagnosticCategory.Error,"The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value__2547","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:t(2548,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2549,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Generic_type_instantiation_is_excessively_deep_and_possibly_infinite:t(2550,e.DiagnosticCategory.Error,"Generic_type_instantiation_is_excessively_deep_and_possibly_infinite_2550","Generic type instantiation is excessively deep and possibly infinite."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:t(2551,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:t(2552,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:t(2553,e.DiagnosticCategory.Error,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:t(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:t(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),Expected_0_arguments_but_got_1_or_more:t(2556,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_or_more_2556","Expected {0} arguments, but got {1} or more."),Expected_at_least_0_arguments_but_got_1_or_more:t(2557,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_or_more_2557","Expected at least {0} arguments, but got {1} or more."),Expected_0_type_arguments_but_got_1:t(2558,e.DiagnosticCategory.Error,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:t(2559,e.DiagnosticCategory.Error,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:t(2560,e.DiagnosticCategory.Error,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:t(2561,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:t(2562,e.DiagnosticCategory.Error,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:t(2563,e.DiagnosticCategory.Error,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:t(2564,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:t(2565,e.DiagnosticCategory.Error,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:t(2566,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:t(2567,e.DiagnosticCategory.Error,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),JSX_element_attributes_type_0_may_not_be_a_union_type:t(2600,e.DiagnosticCategory.Error,"JSX_element_attributes_type_0_may_not_be_a_union_type_2600","JSX element attributes type '{0}' may not be a union type."),The_return_type_of_a_JSX_element_constructor_must_return_an_object_type:t(2601,e.DiagnosticCategory.Error,"The_return_type_of_a_JSX_element_constructor_must_return_an_object_type_2601","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:t(2602,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:t(2603,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:t(2604,e.DiagnosticCategory.Error,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements:t(2605,e.DiagnosticCategory.Error,"JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements_2605","JSX element type '{0}' is not a constructor function for JSX elements."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:t(2606,e.DiagnosticCategory.Error,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:t(2607,e.DiagnosticCategory.Error,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:t(2608,e.DiagnosticCategory.Error,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:t(2609,e.DiagnosticCategory.Error,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:t(2649,e.DiagnosticCategory.Error,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:t(2651,e.DiagnosticCategory.Error,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:t(2652,e.DiagnosticCategory.Error,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:t(2653,e.DiagnosticCategory.Error,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_package_author_to_update_the_package_definition:t(2654,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_pack_2654","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:t(2656,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_2656","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:t(2657,e.DiagnosticCategory.Error,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:t(2658,e.DiagnosticCategory.Error,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:t(2659,e.DiagnosticCategory.Error,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:t(2660,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:t(2661,e.DiagnosticCategory.Error,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:t(2662,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:t(2663,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:t(2664,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:t(2665,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:t(2666,e.DiagnosticCategory.Error,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:t(2667,e.DiagnosticCategory.Error,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:t(2668,e.DiagnosticCategory.Error,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:t(2669,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:t(2670,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:t(2671,e.DiagnosticCategory.Error,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:t(2672,e.DiagnosticCategory.Error,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:t(2673,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:t(2674,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:t(2675,e.DiagnosticCategory.Error,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:t(2676,e.DiagnosticCategory.Error,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:t(2677,e.DiagnosticCategory.Error,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:t(2678,e.DiagnosticCategory.Error,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:t(2679,e.DiagnosticCategory.Error,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:t(2680,e.DiagnosticCategory.Error,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:t(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),get_and_set_accessor_must_have_the_same_this_type:t(2682,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_this_type_2682","'get' and 'set' accessor must have the same 'this' type."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:t(2683,e.DiagnosticCategory.Error,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:t(2684,e.DiagnosticCategory.Error,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:t(2685,e.DiagnosticCategory.Error,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:t(2686,e.DiagnosticCategory.Error,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:t(2687,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:t(2688,e.DiagnosticCategory.Error,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:t(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:t(2691,e.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","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:t(2692,e.DiagnosticCategory.Error,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:t(2693,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:t(2694,e.DiagnosticCategory.Error,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:t(2695,e.DiagnosticCategory.Error,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects."),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:t(2696,e.DiagnosticCategory.Error,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2697,e.DiagnosticCategory.Error,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your `--lib` option."),Spread_types_may_only_be_created_from_object_types:t(2698,e.DiagnosticCategory.Error,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:t(2699,e.DiagnosticCategory.Error,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:t(2700,e.DiagnosticCategory.Error,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:t(2701,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:t(2702,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:t(2703,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a delete operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:t(2704,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a delete operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2705,e.DiagnosticCategory.Error,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","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:t(2706,e.DiagnosticCategory.Error,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:t(2707,e.DiagnosticCategory.Error,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:t(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:t(2709,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:t(2710,e.DiagnosticCategory.Error,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2711,e.DiagnosticCategory.Error,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your `--lib` option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2712,e.DiagnosticCategory.Error,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","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."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:t(2713,e.DiagnosticCategory.Error,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:t(2714,e.DiagnosticCategory.Error,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:t(2715,e.DiagnosticCategory.Error,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:t(2716,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:t(2717,e.DiagnosticCategory.Error,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_declaration_0:t(2718,e.DiagnosticCategory.Error,"Duplicate_declaration_0_2718","Duplicate declaration '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:t(2719,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:t(2720,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:t(2721,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:t(2722,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:t(2723,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),Module_0_has_no_exported_member_1_Did_you_mean_2:t(2724,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_2_2724","Module '{0}' has no exported member '{1}'. Did you mean '{2}'?"),Import_declaration_0_is_using_private_name_1:t(4e3,e.DiagnosticCategory.Error,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:t(4002,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:t(4004,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4006,e.DiagnosticCategory.Error,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4008,e.DiagnosticCategory.Error,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4010,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4012,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4014,e.DiagnosticCategory.Error,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4016,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4019,e.DiagnosticCategory.Error,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4020,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:t(4022,e.DiagnosticCategory.Error,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4023,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:t(4024,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:t(4025,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4026,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4027,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t(4028,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4029,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4030,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:t(4031,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4032,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:t(4033,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4034,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4035,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4036,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4037,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4038,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4039,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4040,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4041,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4042,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4043,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4044,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:t(4045,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4046,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:t(4047,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4048,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:t(4049,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4050,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4051,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:t(4052,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4053,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4054,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t(4055,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4056,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:t(4057,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4058,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:t(4059,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:t(4060,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4061,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4062,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:t(4063,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4064,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4065,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4066,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4067,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4068,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4069,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4070,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4071,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4072,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4073,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4074,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4075,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4076,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:t(4077,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4078,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:t(4081,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:t(4082,e.DiagnosticCategory.Error,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:t(4083,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:t(4090,e.DiagnosticCategory.Error,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","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:t(4091,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:t(4092,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:t(4094,e.DiagnosticCategory.Error,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4095,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4096,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:t(4097,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4098,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4099,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:t(4100,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4101,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:t(4102,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),The_current_host_does_not_support_the_0_option:t(5001,e.DiagnosticCategory.Error,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:t(5009,e.DiagnosticCategory.Error,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5010,e.DiagnosticCategory.Error,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:t(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:t(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:t(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:t(5024,e.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Could_not_write_file_0_Colon_1:t(5033,e.DiagnosticCategory.Error,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:t(5042,e.DiagnosticCategory.Error,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:t(5047,e.DiagnosticCategory.Error,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:t(5051,e.DiagnosticCategory.Error,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:t(5052,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:t(5053,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:t(5054,e.DiagnosticCategory.Error,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:t(5055,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:t(5056,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:t(5057,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:t(5058,e.DiagnosticCategory.Error,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:t(5059,e.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Option_paths_cannot_be_used_without_specifying_baseUrl_option:t(5060,e.DiagnosticCategory.Error,"Option_paths_cannot_be_used_without_specifying_baseUrl_option_5060","Option 'paths' cannot be used without specifying '--baseUrl' option."),Pattern_0_can_have_at_most_one_Asterisk_character:t(5061,e.DiagnosticCategory.Error,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character:t(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' in can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:t(5063,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:t(5064,e.DiagnosticCategory.Error,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5065,e.DiagnosticCategory.Error,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:t(5066,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:t(5067,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:t(5068,e.DiagnosticCategory.Error,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Concatenate_and_emit_output_to_single_file:t(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:t(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:t(6003,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6003","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:t(6004,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:t(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:t(6006,e.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:t(6007,e.DiagnosticCategory.Message,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:t(6008,e.DiagnosticCategory.Message,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:t(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:t(6010,e.DiagnosticCategory.Message,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:t(6011,e.DiagnosticCategory.Message,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:t(6012,e.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:t(6013,e.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:t(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_or_ESNEXT:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_or_ESNEXT_6015","Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'."),Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext_6016","Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'."),Print_this_message:t(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:t(6019,e.DiagnosticCategory.Message,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:t(6020,e.DiagnosticCategory.Message,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:t(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:t(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:t(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:t(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:t(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:t(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:t(6030,e.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:t(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:t(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:t(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:t(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:t(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:t(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:t(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:t(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:t(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Compilation_complete_Watching_for_file_changes:t(6042,e.DiagnosticCategory.Message,"Compilation_complete_Watching_for_file_changes_6042","Compilation complete. Watching for file changes."),Generates_corresponding_map_file:t(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:t(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:t(6045,e.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:t(6046,e.DiagnosticCategory.Error,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:t(6048,e.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'."),Unsupported_locale_0:t(6049,e.DiagnosticCategory.Error,"Unsupported_locale_0_6049","Unsupported locale '{0}'."),Unable_to_open_file_0:t(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:t(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:t(6052,e.DiagnosticCategory.Message,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:t(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_unsupported_extension_The_only_supported_extensions_are_1:t(6054,e.DiagnosticCategory.Error,"File_0_has_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:t(6055,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:t(6056,e.DiagnosticCategory.Message,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:t(6058,e.DiagnosticCategory.Message,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:t(6059,e.DiagnosticCategory.Error,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:t(6060,e.DiagnosticCategory.Message,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:t(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file:t(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_6064","Option '{0}' can only be specified in 'tsconfig.json' file."),Enables_experimental_support_for_ES7_decorators:t(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:t(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Enables_experimental_support_for_ES7_async_functions:t(6068,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_async_functions_6068","Enables experimental support for ES7 async functions."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:t(6069,e.DiagnosticCategory.Message,"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069","Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:t(6070,e.DiagnosticCategory.Message,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:t(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:t(6072,e.DiagnosticCategory.Message,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:t(6073,e.DiagnosticCategory.Message,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:t(6074,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:t(6075,e.DiagnosticCategory.Message,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:t(6076,e.DiagnosticCategory.Message,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:t(6077,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:t(6078,e.DiagnosticCategory.Message,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:t(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation_Colon_preserve_react_native_or_react:t(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_Colon_preserve_react_native_or_react_6080","Specify JSX code generation: 'preserve', 'react-native', or 'react'."),File_0_has_an_unsupported_extension_so_skipping_it:t(6081,e.DiagnosticCategory.Message,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:t(6082,e.DiagnosticCategory.Error,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:t(6083,e.DiagnosticCategory.Message,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:t(6084,e.DiagnosticCategory.Message,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:t(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:t(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:t(6087,e.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:t(6088,e.DiagnosticCategory.Message,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:t(6089,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:t(6090,e.DiagnosticCategory.Message,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:t(6091,e.DiagnosticCategory.Message,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:t(6092,e.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:t(6093,e.DiagnosticCategory.Message,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:t(6094,e.DiagnosticCategory.Message,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1:t(6095,e.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:t(6096,e.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:t(6097,e.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:t(6098,e.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:t(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:t(6100,e.DiagnosticCategory.Message,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:t(6101,e.DiagnosticCategory.Message,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:t(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Option_0_should_have_array_of_strings_as_a_value:t(6103,e.DiagnosticCategory.Error,"Option_0_should_have_array_of_strings_as_a_value_6103","Option '{0}' should have array of strings as a value."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:t(6104,e.DiagnosticCategory.Message,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_string_got_1:t(6105,e.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_string_got_1_6105","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:t(6106,e.DiagnosticCategory.Message,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:t(6107,e.DiagnosticCategory.Message,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:t(6108,e.DiagnosticCategory.Message,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:t(6109,e.DiagnosticCategory.Message,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:t(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:t(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:t(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:t(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:t(6114,e.DiagnosticCategory.Error,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:t(6115,e.DiagnosticCategory.Message,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:t(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Resolving_using_primary_search_paths:t(6117,e.DiagnosticCategory.Message,"Resolving_using_primary_search_paths_6117","Resolving using primary search paths..."),Resolving_from_node_modules_folder:t(6118,e.DiagnosticCategory.Message,"Resolving_from_node_modules_folder_6118","Resolving from node_modules folder..."),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:t(6119,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:t(6120,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:t(6121,e.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:t(6122,e.DiagnosticCategory.Message,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:t(6123,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:t(6124,e.DiagnosticCategory.Message,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:t(6125,e.DiagnosticCategory.Message,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:t(6126,e.DiagnosticCategory.Message,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:t(6127,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:t(6128,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:t(6130,e.DiagnosticCategory.Message,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:t(6131,e.DiagnosticCategory.Error,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:t(6132,e.DiagnosticCategory.Message,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:t(6133,e.DiagnosticCategory.Error,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read."),Report_errors_on_unused_locals:t(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:t(6135,e.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:t(6136,e.DiagnosticCategory.Message,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:t(6137,e.DiagnosticCategory.Error,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:t(6138,e.DiagnosticCategory.Error,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read."),Import_emit_helpers_from_tslib:t(6139,e.DiagnosticCategory.Message,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:t(6140,e.DiagnosticCategory.Error,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:t(6141,e.DiagnosticCategory.Message,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:t(6142,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:t(6144,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:t(6145,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","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:t(6146,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:t(6147,e.DiagnosticCategory.Message,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:t(6148,e.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:t(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:t(6150,e.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:t(6151,e.DiagnosticCategory.Message,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:t(6152,e.DiagnosticCategory.Message,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:t(6153,e.DiagnosticCategory.Message,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:t(6154,e.DiagnosticCategory.Message,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:t(6155,e.DiagnosticCategory.Message,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:t(6156,e.DiagnosticCategory.Message,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:t(6157,e.DiagnosticCategory.Message,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:t(6158,e.DiagnosticCategory.Message,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:t(6159,e.DiagnosticCategory.Message,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:t(6160,e.DiagnosticCategory.Message,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:t(6161,e.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:t(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:t(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:t(6164,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6164","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Do_not_truncate_error_messages:t(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:t(6166,e.DiagnosticCategory.Message,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:t(6167,e.DiagnosticCategory.Message,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:t(6168,e.DiagnosticCategory.Message,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:t(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:t(6170,e.DiagnosticCategory.Message,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:t(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Basic_Options:t(6172,e.DiagnosticCategory.Message,"Basic_Options_6172","Basic Options"),Strict_Type_Checking_Options:t(6173,e.DiagnosticCategory.Message,"Strict_Type_Checking_Options_6173","Strict Type-Checking Options"),Module_Resolution_Options:t(6174,e.DiagnosticCategory.Message,"Module_Resolution_Options_6174","Module Resolution Options"),Source_Map_Options:t(6175,e.DiagnosticCategory.Message,"Source_Map_Options_6175","Source Map Options"),Additional_Checks:t(6176,e.DiagnosticCategory.Message,"Additional_Checks_6176","Additional Checks"),Experimental_Options:t(6177,e.DiagnosticCategory.Message,"Experimental_Options_6177","Experimental Options"),Advanced_Options:t(6178,e.DiagnosticCategory.Message,"Advanced_Options_6178","Advanced Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:t(6179,e.DiagnosticCategory.Message,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:t(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:t(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:t(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_to_file_1_from_old_program:t(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_to_file_1_from_old_program_6183","Reusing resolution of module '{0}' to file '{1}' from old program."),Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program:t(6184,e.DiagnosticCategory.Message,"Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program_6184","Reusing module resolutions originating in '{0}' since resolutions are unchanged from old program."),Disable_strict_checking_of_generic_signatures_in_function_types:t(6185,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6185","Disable strict checking of generic signatures in function types."),Enable_strict_checking_of_function_types:t(6186,e.DiagnosticCategory.Message,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:t(6187,e.DiagnosticCategory.Message,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:t(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:t(6189,e.DiagnosticCategory.Error,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Found_package_json_at_0_Package_ID_is_1:t(6190,e.DiagnosticCategory.Message,"Found_package_json_at_0_Package_ID_is_1_6190","Found 'package.json' at '{0}'. Package ID is '{1}'."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:t(6191,e.DiagnosticCategory.Message,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:t(6192,e.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused."),Variable_0_implicitly_has_an_1_type:t(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:t(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:t(7008,e.DiagnosticCategory.Error,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:t(7009,e.DiagnosticCategory.Error,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:t(7010,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7011,e.DiagnosticCategory.Error,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7013,e.DiagnosticCategory.Error,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:t(7015,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:t(7016,e.DiagnosticCategory.Error,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:t(7017,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:t(7018,e.DiagnosticCategory.Error,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:t(7019,e.DiagnosticCategory.Error,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7020,e.DiagnosticCategory.Error,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:t(7022,e.DiagnosticCategory.Error,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7023,e.DiagnosticCategory.Error,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7024,e.DiagnosticCategory.Error,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type:t(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_typ_7025","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:t(7026,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:t(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected."),Unused_label:t(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label."),Fallthrough_case_in_switch:t(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:t(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:t(7031,e.DiagnosticCategory.Error,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:t(7032,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:t(7033,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:t(7034,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:t(7035,e.DiagnosticCategory.Error,"Try_npm_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_mod_7035","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:t(7036,e.DiagnosticCategory.Error,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:t(7037,e.DiagnosticCategory.Message,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime:t(7038,e.DiagnosticCategory.Error,"A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_7038","A namespace-style import cannot be called or constructed, and will cause a failure at runtime."),Mapped_object_type_implicitly_has_an_any_template_type:t(7039,e.DiagnosticCategory.Error,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),You_cannot_rename_this_element:t(8e3,e.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:t(8001,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_a_ts_file:t(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_a_ts_file_8002","'import ... =' can only be used in a .ts file."),export_can_only_be_used_in_a_ts_file:t(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_a_ts_file_8003","'export=' can only be used in a .ts file."),type_parameter_declarations_can_only_be_used_in_a_ts_file:t(8004,e.DiagnosticCategory.Error,"type_parameter_declarations_can_only_be_used_in_a_ts_file_8004","'type parameter declarations' can only be used in a .ts file."),implements_clauses_can_only_be_used_in_a_ts_file:t(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_a_ts_file_8005","'implements clauses' can only be used in a .ts file."),interface_declarations_can_only_be_used_in_a_ts_file:t(8006,e.DiagnosticCategory.Error,"interface_declarations_can_only_be_used_in_a_ts_file_8006","'interface declarations' can only be used in a .ts file."),module_declarations_can_only_be_used_in_a_ts_file:t(8007,e.DiagnosticCategory.Error,"module_declarations_can_only_be_used_in_a_ts_file_8007","'module declarations' can only be used in a .ts file."),type_aliases_can_only_be_used_in_a_ts_file:t(8008,e.DiagnosticCategory.Error,"type_aliases_can_only_be_used_in_a_ts_file_8008","'type aliases' can only be used in a .ts file."),_0_can_only_be_used_in_a_ts_file:t(8009,e.DiagnosticCategory.Error,"_0_can_only_be_used_in_a_ts_file_8009","'{0}' can only be used in a .ts file."),types_can_only_be_used_in_a_ts_file:t(8010,e.DiagnosticCategory.Error,"types_can_only_be_used_in_a_ts_file_8010","'types' can only be used in a .ts file."),type_arguments_can_only_be_used_in_a_ts_file:t(8011,e.DiagnosticCategory.Error,"type_arguments_can_only_be_used_in_a_ts_file_8011","'type arguments' can only be used in a .ts file."),parameter_modifiers_can_only_be_used_in_a_ts_file:t(8012,e.DiagnosticCategory.Error,"parameter_modifiers_can_only_be_used_in_a_ts_file_8012","'parameter modifiers' can only be used in a .ts file."),non_null_assertions_can_only_be_used_in_a_ts_file:t(8013,e.DiagnosticCategory.Error,"non_null_assertions_can_only_be_used_in_a_ts_file_8013","'non-null assertions' can only be used in a .ts file."),enum_declarations_can_only_be_used_in_a_ts_file:t(8015,e.DiagnosticCategory.Error,"enum_declarations_can_only_be_used_in_a_ts_file_8015","'enum declarations' can only be used in a .ts file."),type_assertion_expressions_can_only_be_used_in_a_ts_file:t(8016,e.DiagnosticCategory.Error,"type_assertion_expressions_can_only_be_used_in_a_ts_file_8016","'type assertion expressions' can only be used in a .ts file."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:t(8017,e.DiagnosticCategory.Error,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:t(8018,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:t(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:t(8020,e.DiagnosticCategory.Error,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:t(8021,e.DiagnosticCategory.Error,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:t(8022,e.DiagnosticCategory.Error,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:t(8023,e.DiagnosticCategory.Error,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:t(8024,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:t(8025,e.DiagnosticCategory.Error,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one `@augments` or `@extends` tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:t(8026,e.DiagnosticCategory.Error,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:t(8027,e.DiagnosticCategory.Error,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:t(8028,e.DiagnosticCategory.Error,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:t(8029,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause:t(9002,e.DiagnosticCategory.Error,"Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_clas_9002","Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clause."),class_expressions_are_not_currently_supported:t(9003,e.DiagnosticCategory.Error,"class_expressions_are_not_currently_supported_9003","'class' expressions are not currently supported."),Language_service_is_disabled:t(9004,e.DiagnosticCategory.Error,"Language_service_is_disabled_9004","Language service is disabled."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:t(17e3,e.DiagnosticCategory.Error,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:t(17001,e.DiagnosticCategory.Error,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:t(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),JSX_attribute_expected:t(17003,e.DiagnosticCategory.Error,"JSX_attribute_expected_17003","JSX attribute expected."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:t(17004,e.DiagnosticCategory.Error,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:t(17005,e.DiagnosticCategory.Error,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17006,e.DiagnosticCategory.Error,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17007,e.DiagnosticCategory.Error,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:t(17008,e.DiagnosticCategory.Error,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:t(17009,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:t(17010,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:t(17011,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:t(17012,e.DiagnosticCategory.Error,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:t(17013,e.DiagnosticCategory.Error,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:t(17014,e.DiagnosticCategory.Error,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:t(17015,e.DiagnosticCategory.Error,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),JSX_fragment_is_not_supported_when_using_jsxFactory:t(17016,e.DiagnosticCategory.Error,"JSX_fragment_is_not_supported_when_using_jsxFactory_17016","JSX fragment is not supported when using --jsxFactory"),JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma:t(17017,e.DiagnosticCategory.Error,"JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma_17017","JSX fragment is not supported when using an inline JSX factory pragma"),Circularity_detected_while_resolving_configuration_Colon_0:t(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not:t(18001,e.DiagnosticCategory.Error,"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001","A path in an 'extends' option must be relative or rooted, but '{0}' is not."),The_files_list_in_config_file_0_is_empty:t(18002,e.DiagnosticCategory.Error,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:t(18003,e.DiagnosticCategory.Error,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module:t(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module_80001","File is a CommonJS module; it may be converted to an ES6 module."),This_constructor_function_may_be_converted_to_a_class_declaration:t(80002,e.DiagnosticCategory.Suggestion,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:t(80003,e.DiagnosticCategory.Suggestion,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:t(80004,e.DiagnosticCategory.Suggestion,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),Add_missing_super_call:t(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:t(90002,e.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:t(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_declaration_for_Colon_0:t(90004,e.DiagnosticCategory.Message,"Remove_declaration_for_Colon_0_90004","Remove declaration for: '{0}'"),Remove_import_from_0:t(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:t(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:t(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_this_to_unresolved_variable:t(90008,e.DiagnosticCategory.Message,"Add_this_to_unresolved_variable_90008","Add 'this.' to unresolved variable"),Import_0_from_module_1:t(90013,e.DiagnosticCategory.Message,"Import_0_from_module_1_90013","Import '{0}' from module \"{1}\""),Change_0_to_1:t(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Add_0_to_existing_import_declaration_from_1:t(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015","Add '{0}' to existing import declaration from \"{1}\""),Declare_property_0:t(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:t(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:t(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:t(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:t(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:t(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:t(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:t(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:t(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:t(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:t(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:t(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:t(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:t(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Convert_function_to_an_ES2015_class:t(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_function_0_to_class:t(95002,e.DiagnosticCategory.Message,"Convert_function_0_to_class_95002","Convert function '{0}' to class"),Extract_to_0_in_1:t(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:t(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:t(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:t(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:t(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:t(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Annotate_with_types_from_JSDoc:t(95010,e.DiagnosticCategory.Message,"Annotate_with_types_from_JSDoc_95010","Annotate with types from JSDoc"),Infer_type_of_0_from_usage:t(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:t(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:t(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:t(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:t(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:t(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES6_module:t(95017,e.DiagnosticCategory.Message,"Convert_to_ES6_module_95017","Convert to ES6 module"),Add_undefined_type_to_property_0:t(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:t(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:t(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'")}}(l||(l={})),function(e){function t(e){return e>=71}e.tokenIsIdentifierOrKeyword=t,e.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 29===e||t(e)};var n=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:142,function:89,get:125,if:90,implements:108,import:91,in:92,infer:126,instanceof:93,interface:109,is:127,keyof:128,let:110,module:129,namespace:130,never:131,new:94,null:95,number:134,object:135,package:111,private:112,protected:113,public:114,readonly:132,require:133,global:143,return:96,set:136,static:115,string:137,super:97,switch:98,symbol:138,this:99,throw:100,true:101,try:102,type:139,typeof:103,undefined:140,unique:141,var:104,void:105,while:106,with:107,yield:116,async:120,await:121,of:144,"{":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}),r=[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],i=[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],a=[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],o=[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];function s(e,t){if(e<t[0])return!1;for(var n,r=0,i=t.length;r+1<i;){if(n=r+(i-r)/2,t[n-=n%2]<=e&&e<=t[n+1])return!0;e<t[n]?i=n:r=n+2}return!1}function c(e,t){return s(e,t>=1?a:r)}e.isUnicodeIdentifierStart=c;var u,l=(u=[],n.forEach(function(e,t){u[e]=t}),u);function _(e){for(var t=new Array,n=0,r=0;n<e.length;){var i=e.charCodeAt(n);switch(n++,i){case 13:10===e.charCodeAt(n)&&n++;case 10:t.push(r),r=n;break;default:i>127&&y(i)&&(t.push(r),r=n)}}return t.push(r),t}function d(t,n,r,i){(n<0||n>=t.length)&&e.Debug.fail("Bad line number. Line: "+n+", lineStarts.length: "+t.length+" , line map is correct? "+(void 0!==i?e.arraysEqual(t,_(i)):"unknown"));var a=t[n]+r;return n<t.length-1?e.Debug.assert(a<t[n+1]):void 0!==i&&e.Debug.assert(a<=i.length),a}function p(e){return e.lineMap||(e.lineMap=_(e.text))}function f(t,n){var r=e.binarySearch(t,n,e.identity,e.compareValues);return r<0&&e.Debug.assert(-1!=(r=~r-1),"position cannot precede the beginning of the file"),{line:r,character:n-t[r]}}function m(e){return g(e)||y(e)}function g(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 y(e){return 10===e||13===e||8232===e||8233===e}function h(e){return e>=48&&e<=57}function v(e){return e>=48&&e<=55}e.tokenToString=function(e){return l[e]},e.stringToToken=function(e){return n.get(e)},e.computeLineStarts=_,e.getPositionOfLineAndCharacter=function(e,t,n){return d(p(e),t,n,e.text)},e.computePositionOfLineAndCharacter=d,e.getLineStarts=p,e.computeLineAndCharacterOfPosition=f,e.getLineAndCharacterOfPosition=function(e,t){return f(p(e),t)},e.isWhiteSpaceLike=m,e.isWhiteSpaceSingleLine=g,e.isLineBreak=y,e.isOctalDigit=v,e.couldStartTrivia=function(e,t){var n=e.charCodeAt(t);switch(n){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===t;default:return n>127}},e.skipTrivia=function(t,n,r,i){if(void 0===i&&(i=!1),e.positionIsSynthesized(n))return n;for(;;){var a=t.charCodeAt(n);switch(a){case 13:10===t.charCodeAt(n+1)&&n++;case 10:if(n++,r)return n;continue;case 9:case 11:case 12:case 32:n++;continue;case 47:if(i)break;if(47===t.charCodeAt(n+1)){for(n+=2;n<t.length&&!y(t.charCodeAt(n));)n++;continue}if(42===t.charCodeAt(n+1)){for(n+=2;n<t.length;){if(42===t.charCodeAt(n)&&47===t.charCodeAt(n+1)){n+=2;break}n++}continue}break;case 60:case 124:case 61:case 62:if(x(t,n)){n=k(t,n);continue}break;case 35:if(0===n&&D(t,n)){n=C(t,n);continue}break;default:if(a>127&&m(a)){n++;continue}}return n}};var b="<<<<<<<".length;function x(t,n){if(e.Debug.assert(n>=0),0===n||y(t.charCodeAt(n-1))){var r=t.charCodeAt(n);if(n+b<t.length){for(var i=0;i<b;i++)if(t.charCodeAt(n+i)!==r)return!1;return 61===r||32===t.charCodeAt(n+b)}}return!1}function k(t,n,r){r&&r(e.Diagnostics.Merge_conflict_marker_encountered,n,b);var i=t.charCodeAt(n),a=t.length;if(60===i||62===i)for(;n<a&&!y(t.charCodeAt(n));)n++;else for(e.Debug.assert(124===i||61===i);n<a;){var o=t.charCodeAt(n);if((61===o||62===o)&&o!==i&&x(t,n))break;n++}return n}var S=/^#!.*/;function D(t,n){return e.Debug.assert(0===n),S.test(t)}function C(e,t){return t+S.exec(e)[0].length}function T(e,t,n,r,i,a,o){var s,c,u,l,_=!1,d=r||0===n,p=o;e:for(;n>=0&&n<t.length;){var f=t.charCodeAt(n);switch(f){case 13:10===t.charCodeAt(n+1)&&n++;case 10:if(n++,r)break e;d=!0,_&&(l=!0);continue;case 9:case 11:case 12:case 32:n++;continue;case 47:var g=t.charCodeAt(n+1),h=!1;if(47===g||42===g){var v=47===g?2:3,b=n;if(n+=2,47===g)for(;n<t.length;){if(y(t.charCodeAt(n))){h=!0;break}n++}else for(;n<t.length;){if(42===t.charCodeAt(n)&&47===t.charCodeAt(n+1)){n+=2;break}n++}if(d){if(_){if(p=i(s,c,u,l,a,p),!e&&p)return p;_=!1}s=b,c=n,u=v,l=h,_=!0}continue}break e;default:if(f>127&&m(f)){_&&y(f)&&(l=!0),n++;continue}break e}}return _&&(p=i(s,c,u,l,a,p)),p}function E(e,t,n,r,i){return T(!0,e,t,!1,n,r,i)}function N(e,t,n,r,i){return T(!0,e,t,!0,n,r,i)}function A(e,t,n,r,i,a){return a||(a=[]),a.push({kind:n,pos:e,end:t,hasTrailingNewLine:r}),a}function P(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&c(e,t)}function w(e,t){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||e>127&&function(t,n){return s(e,n>=1?o:i)}(0,t)}e.forEachLeadingCommentRange=function(e,t,n,r){return T(!1,e,t,!1,n,r)},e.forEachTrailingCommentRange=function(e,t,n,r){return T(!1,e,t,!0,n,r)},e.reduceEachLeadingCommentRange=E,e.reduceEachTrailingCommentRange=N,e.getLeadingCommentRanges=function(e,t){return E(e,t,A,void 0,void 0)},e.getTrailingCommentRanges=function(e,t){return N(e,t,A,void 0,void 0)},e.getShebang=function(e){var t=S.exec(e);if(t)return t[0]},e.isIdentifierStart=P,e.isIdentifierPart=w,e.isIdentifierText=function(e,t){if(!P(e.charCodeAt(0),t))return!1;for(var n=1;n<e.length;n++)if(!w(e.charCodeAt(n),t))return!1;return!0},e.createScanner=function(r,i,a,o,s,c,u){var l,_,d,p,f,b,S;return void 0===a&&(a=0),W(o,c,u),{getStartPos:function(){return d},getTextPos:function(){return l},getToken:function(){return f},getTokenPos:function(){return p},getTokenText:function(){return o.substring(p,l)},getTokenValue:function(){return b},hasExtendedUnicodeEscape:function(){return 0!=(8&S)},hasPrecedingLineBreak:function(){return 0!=(1&S)},isIdentifier:function(){return 71===f||f>107},isReservedWord:function(){return f>=72&&f<=107},isUnterminated:function(){return 0!=(4&S)},getTokenFlags:function(){return S},reScanGreaterToken:function(){if(29===f){if(62===o.charCodeAt(l))return 62===o.charCodeAt(l+1)?61===o.charCodeAt(l+2)?(l+=3,f=67):(l+=2,f=47):61===o.charCodeAt(l+1)?(l+=2,f=66):(l++,f=46);if(61===o.charCodeAt(l))return l++,f=31}return f},reScanSlashToken:function(){if(41===f||63===f){for(var t=p+1,n=!1,i=!1;;){if(t>=_){S|=4,T(e.Diagnostics.Unterminated_regular_expression_literal);break}var a=o.charCodeAt(t);if(y(a)){S|=4,T(e.Diagnostics.Unterminated_regular_expression_literal);break}if(n)n=!1;else{if(47===a&&!i){t++;break}91===a?i=!0:92===a?n=!0:93===a&&(i=!1)}t++}for(;t<_&&w(o.charCodeAt(t),r);)t++;b=o.substring(p,l=t),f=12}return f},reScanTemplateToken:function(){return e.Debug.assert(18===f,"'reScanTemplateToken' should only be called on a '}'"),l=p,f=L()},scanJsxIdentifier:function(){if(t(f)){for(var e=l;l<_;){var n=o.charCodeAt(l);if(45!==n&&(e===l?!P(n,r):!w(n,r)))break;l++}b+=o.substring(e,l)}return f},scanJsxAttributeValue:function(){switch(d=l,o.charCodeAt(l)){case 34:case 39:return b=M(!0),f=9;default:return U()}},reScanJsxToken:function(){return l=p=d,f=V()},scanJsxToken:V,scanJSDocToken:function(){if(l>=_)return f=1;d=l,p=l;var e=o.charCodeAt(l);switch(l++,e){case 9:case 11:case 12:case 32:for(;l<_&&g(o.charCodeAt(l));)l++;return f=5;case 64:return f=57;case 10:case 13:return f=4;case 42:return f=39;case 123:return f=17;case 125:return f=18;case 91:return f=21;case 93:return f=22;case 60:return f=27;case 61:return f=58;case 44:return f=26;case 46:return f=23}if(P(e,6)){for(;w(o.charCodeAt(l),6)&&l<_;)l++;return b=o.substring(p,l),f=71}return f=0},scan:U,getText:function(){return o},setText:W,setScriptTarget:function(e){r=e},setLanguageVariant:function(e){a=e},setOnError:function(e){s=e},setTextPos:H,tryScan:function(e){return q(e,!1)},lookAhead:function(e){return q(e,!0)},scanRange:function(e,t,n){var r=_,i=l,a=d,s=p,c=f,u=b,m=S;W(o,e,t);var g=n();return _=r,l=i,d=a,p=s,f=c,b=u,S=m,g}};function T(e,t,n){if(void 0===t&&(t=l),s){var r=l;l=t,s(e,n||0),l=r}}function E(){for(var t=l,n=!1,r=!1,i="";;){var a=o.charCodeAt(l);if(95!==a){if(!h(a))break;n=!0,r=!1,l++}else S|=512,n?(n=!1,r=!0,i+=o.substring(t,l)):T(r?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1),t=++l}return 95===o.charCodeAt(l-1)&&T(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),i+o.substring(t,l)}function N(){var t,n,r=l,i=E();46===o.charCodeAt(l)&&(l++,t=E());var a=l;if(69===o.charCodeAt(l)||101===o.charCodeAt(l)){S|=16,43!==o.charCodeAt(++l)&&45!==o.charCodeAt(l)||l++;var s=l,c=E();c?(n=o.substring(a,s)+c,a=l):T(e.Diagnostics.Digit_expected)}if(512&S){var u=i;return t&&(u+="."+t),n&&(u+=n),""+ +u}return""+ +o.substring(r,a)}function A(){for(var e=l;v(o.charCodeAt(l));)l++;return+o.substring(e,l)}function F(e,t){return O(e,!1,t)}function I(e,t){return O(e,!0,t)}function O(t,n,r){for(var i=0,a=0,s=!1,c=!1;i<t||n;){var u=o.charCodeAt(l);if(r&&95===u)S|=512,s?(s=!1,c=!0):T(c?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1),l++;else{if(s=r,u>=48&&u<=57)a=16*a+u-48;else if(u>=65&&u<=70)a=16*a+u-65+10;else{if(!(u>=97&&u<=102))break;a=16*a+u-97+10}l++,i++,c=!1}}return i<t&&(a=-1),95===o.charCodeAt(l-1)&&T(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),a}function M(t){void 0===t&&(t=!1);for(var n=o.charCodeAt(l),r="",i=++l;;){if(l>=_){r+=o.substring(i,l),S|=4,T(e.Diagnostics.Unterminated_string_literal);break}var a=o.charCodeAt(l);if(a===n){r+=o.substring(i,l),l++;break}if(92!==a||t){if(y(a)&&!t){r+=o.substring(i,l),S|=4,T(e.Diagnostics.Unterminated_string_literal);break}l++}else r+=o.substring(i,l),r+=R(),i=l}return r}function L(){for(var t,n=96===o.charCodeAt(l),r=++l,i="";;){if(l>=_){i+=o.substring(r,l),S|=4,T(e.Diagnostics.Unterminated_template_literal),t=n?13:16;break}var a=o.charCodeAt(l);if(96===a){i+=o.substring(r,l),l++,t=n?13:16;break}if(36===a&&l+1<_&&123===o.charCodeAt(l+1)){i+=o.substring(r,l),l+=2,t=n?14:15;break}92!==a?13!==a?l++:(i+=o.substring(r,l),++l<_&&10===o.charCodeAt(l)&&l++,i+="\n",r=l):(i+=o.substring(r,l),i+=R(),r=l)}return e.Debug.assert(void 0!==t),b=i,t}function R(){if(++l>=_)return T(e.Diagnostics.Unexpected_end_of_text),"";var t,n,r=o.charCodeAt(l);switch(l++,r){case 48:return"\0";case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:return l<_&&123===o.charCodeAt(l)?(S|=8,l++,n=!1,(t=I(1,!1))<0?(T(e.Diagnostics.Hexadecimal_digit_expected),n=!0):t>1114111&&(T(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),l>=_?(T(e.Diagnostics.Unexpected_end_of_text),n=!0):125===o.charCodeAt(l)?l++:(T(e.Diagnostics.Unterminated_Unicode_escape_sequence),n=!0),n?"":function(t){if(e.Debug.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);var n=Math.floor((t-65536)/1024)+55296;return String.fromCharCode(n,(t-65536)%1024+56320)}(t)):B(4);case 120:return B(2);case 13:l<_&&10===o.charCodeAt(l)&&l++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(r)}}function B(t){var n=F(t,!1);return n>=0?String.fromCharCode(n):(T(e.Diagnostics.Hexadecimal_digit_expected),"")}function z(){if(l+5<_&&117===o.charCodeAt(l+1)){var e=l;l+=2;var t=F(4,!1);return l=e,t}return-1}function j(){for(var e="",t=l;l<_;){var n=o.charCodeAt(l);if(w(n,r))l++;else{if(92!==n)break;if(!((n=z())>=0&&w(n,r)))break;e+=o.substring(t,l),e+=String.fromCharCode(n),t=l+=6}}return e+o.substring(t,l)}function J(){var e=b.length;if(e>=2&&e<=11){var t=b.charCodeAt(0);if(t>=97&&t<=122&&void 0!==(f=n.get(b)))return f}return f=71}function K(t){e.Debug.assert(2===t||8===t,"Expected either base 2 or base 8");for(var n=0,r=0,i=!1,a=!1;;){var s=o.charCodeAt(l);if(95!==s){i=!0;var c=s-48;if(!h(s)||c>=t)break;n=n*t+c,l++,r++,a=!1}else S|=512,i?(i=!1,a=!0):T(a?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1),l++}return 0===r?-1:95===o.charCodeAt(l-1)?(T(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),n):n}function U(){for(d=l,S=0;;){if(p=l,l>=_)return f=1;var t=o.charCodeAt(l);if(35===t&&0===l&&D(o,l)){if(l=C(o,l),i)continue;return f=6}switch(t){case 10:case 13:if(S|=1,i){l++;continue}return 13===t&&l+1<_&&10===o.charCodeAt(l+1)?l+=2:l++,f=4;case 9:case 11:case 12:case 32:if(i){l++;continue}for(;l<_&&g(o.charCodeAt(l));)l++;return f=5;case 33:return 61===o.charCodeAt(l+1)?61===o.charCodeAt(l+2)?(l+=3,f=35):(l+=2,f=33):(l++,f=51);case 34:case 39:return b=M(),f=9;case 96:return f=L();case 37:return 61===o.charCodeAt(l+1)?(l+=2,f=64):(l++,f=42);case 38:return 38===o.charCodeAt(l+1)?(l+=2,f=53):61===o.charCodeAt(l+1)?(l+=2,f=68):(l++,f=48);case 40:return l++,f=19;case 41:return l++,f=20;case 42:return 61===o.charCodeAt(l+1)?(l+=2,f=61):42===o.charCodeAt(l+1)?61===o.charCodeAt(l+2)?(l+=3,f=62):(l+=2,f=40):(l++,f=39);case 43:return 43===o.charCodeAt(l+1)?(l+=2,f=43):61===o.charCodeAt(l+1)?(l+=2,f=59):(l++,f=37);case 44:return l++,f=26;case 45:return 45===o.charCodeAt(l+1)?(l+=2,f=44):61===o.charCodeAt(l+1)?(l+=2,f=60):(l++,f=38);case 46:return h(o.charCodeAt(l+1))?(b=N(),f=8):46===o.charCodeAt(l+1)&&46===o.charCodeAt(l+2)?(l+=3,f=24):(l++,f=23);case 47:if(47===o.charCodeAt(l+1)){for(l+=2;l<_&&!y(o.charCodeAt(l));)l++;if(i)continue;return f=2}if(42===o.charCodeAt(l+1)){42===o.charCodeAt(l+=2)&&47!==o.charCodeAt(l+1)&&(S|=2);for(var n=!1;l<_;){var s=o.charCodeAt(l);if(42===s&&47===o.charCodeAt(l+1)){l+=2,n=!0;break}y(s)&&(S|=1),l++}if(n||T(e.Diagnostics.Asterisk_Slash_expected),i)continue;return n||(S|=4),f=3}return 61===o.charCodeAt(l+1)?(l+=2,f=63):(l++,f=41);case 48:var c;if(l+2<_&&(88===o.charCodeAt(l+1)||120===o.charCodeAt(l+1)))return l+=2,(c=I(1,!0))<0&&(T(e.Diagnostics.Hexadecimal_digit_expected),c=0),b=""+c,S|=64,f=8;if(l+2<_&&(66===o.charCodeAt(l+1)||98===o.charCodeAt(l+1)))return l+=2,(c=K(2))<0&&(T(e.Diagnostics.Binary_digit_expected),c=0),b=""+c,S|=128,f=8;if(l+2<_&&(79===o.charCodeAt(l+1)||111===o.charCodeAt(l+1)))return l+=2,(c=K(8))<0&&(T(e.Diagnostics.Octal_digit_expected),c=0),b=""+c,S|=256,f=8;if(l+1<_&&v(o.charCodeAt(l+1)))return b=""+A(),S|=32,f=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return b=N(),f=8;case 58:return l++,f=56;case 59:return l++,f=25;case 60:if(x(o,l)){if(l=k(o,l,T),i)continue;return f=7}return 60===o.charCodeAt(l+1)?61===o.charCodeAt(l+2)?(l+=3,f=65):(l+=2,f=45):61===o.charCodeAt(l+1)?(l+=2,f=30):1===a&&47===o.charCodeAt(l+1)&&42!==o.charCodeAt(l+2)?(l+=2,f=28):(l++,f=27);case 61:if(x(o,l)){if(l=k(o,l,T),i)continue;return f=7}return 61===o.charCodeAt(l+1)?61===o.charCodeAt(l+2)?(l+=3,f=34):(l+=2,f=32):62===o.charCodeAt(l+1)?(l+=2,f=36):(l++,f=58);case 62:if(x(o,l)){if(l=k(o,l,T),i)continue;return f=7}return l++,f=29;case 63:return l++,f=55;case 91:return l++,f=21;case 93:return l++,f=22;case 94:return 61===o.charCodeAt(l+1)?(l+=2,f=70):(l++,f=50);case 123:return l++,f=17;case 124:if(x(o,l)){if(l=k(o,l,T),i)continue;return f=7}return 124===o.charCodeAt(l+1)?(l+=2,f=54):61===o.charCodeAt(l+1)?(l+=2,f=69):(l++,f=49);case 125:return l++,f=18;case 126:return l++,f=52;case 64:return l++,f=57;case 92:var u=z();return u>=0&&P(u,r)?(l+=6,b=String.fromCharCode(u)+j(),f=J()):(T(e.Diagnostics.Invalid_character),l++,f=0);default:if(P(t,r)){for(l++;l<_&&w(t=o.charCodeAt(l),r);)l++;return b=o.substring(p,l),92===t&&(b+=j()),f=J()}if(g(t)){l++;continue}if(y(t)){S|=1,l++;continue}return T(e.Diagnostics.Invalid_character),l++,f=0}}}function V(){if(d=p=l,l>=_)return f=1;var e=o.charCodeAt(l);if(60===e)return 47===o.charCodeAt(l+1)?(l+=2,f=28):(l++,f=27);if(123===e)return l++,f=17;for(var t=0;l<_&&123!==(e=o.charCodeAt(l));){if(60===e){if(x(o,l))return l=k(o,l,T),f=7;break}y(e)&&0===t?t=-1:m(e)||(t=l),l++}return-1===t?11:10}function q(e,t){var n=l,r=d,i=p,a=f,o=b,s=S,c=e();return c&&!t||(l=n,d=r,p=i,f=a,b=o,S=s),c}function W(e,t,n){o=e||"",_=void 0===n?o.length:t+n,H(t||0)}function H(t){e.Debug.assert(t>=0),l=t,d=t,p=t,f=0,b=void 0,S=0}}}(l||(l={})),function(e){e.resolvingEmptyArray=[],e.emptyMap=e.createMap(),e.emptyUnderscoreEscapedMap=e.emptyMap,e.externalHelpersModuleNameText="tslib",e.getDeclarationOfKind=function(e,t){var n=e.declarations;if(n)for(var r=0,i=n;r<i.length;r++){var a=i[r];if(a.kind===t)return a}};var t,n,r=(t="",{getText:function(){return t},write:n=function(e){return t+=e},rawWrite:n,writeTextOfNode:n,writeKeyword:n,writeOperator:n,writePunctuation:n,writeSpace:n,writeStringLiteral:n,writeLiteral:n,writeParameter:n,writeProperty:n,writeSymbol:n,getTextPos:function(){return t.length},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return!1},writeLine:function(){return t+=" "},increaseIndent:e.noop,decreaseIndent:e.noop,clear:function(){return t=""},trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop});function i(e){return e.end-e.pos}function a(e){for(;e&&272!==e.kind;)e=e.parent;return e}function o(t,n){e.Debug.assert(t>=0);var r=e.getLineStarts(n),i=t,a=n.text;if(i+1===r.length)return a.length-1;var o=r[i],s=r[i+1]-1;for(e.Debug.assert(e.isLineBreak(a.charCodeAt(s)));o<=s&&e.isLineBreak(a.charCodeAt(s));)s--;return s}function s(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function c(e){return!s(e)}function u(e,t){return 42===e.charCodeAt(t.pos+1)&&33===e.charCodeAt(t.pos+2)}function l(t,n,r){return s(t)?t.pos:e.isJSDocNode(t)?e.skipTrivia((n||a(t)).text,t.pos,!1,!0):r&&e.hasJSDocNodes(t)?l(t.jsDoc[0]):293===t.kind&&t._children.length>0?l(t._children[0],n,r):e.skipTrivia((n||a(t)).text,t.pos)}function _(e,t,n){return void 0===n&&(n=!1),d(e.text,t,n)}function d(t,n,r){return void 0===r&&(r=!1),s(n)?"":t.substring(r?n.pos:e.skipTrivia(t,n.pos),n.end)}function p(e,t){return void 0===t&&(t=!1),_(a(e),e,t)}function f(e){return e.pos}function m(e){var t=e.emitNode;return t&&t.flags}function g(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function y(e){var t=be(e);return 230===t.kind&&267===t.parent.kind}function h(t){return e.isModuleDeclaration(t)&&(9===t.name.kind||b(t))}function v(t){return e.isModuleDeclaration(t)&&9===t.name.kind}function b(e){return!!(512&e.flags)}function x(t){switch(t.parent.kind){case 272:return e.isExternalModule(t.parent);case 238:return h(t.parent.parent)&&e.isSourceFile(t.parent.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function k(t,n){switch(t.kind){case 272:case 239:case 267:case 237:case 218:case 219:case 220:case 154:case 153:case 155:case 156:case 232:case 190:case 191:return!0;case 211:return n&&!e.isFunctionLike(n)}return!1}function S(e){return 0===i(e)?"(Missing)":p(e)}function D(t){switch(t.kind){case 71:return t.escapedText;case 9:case 8:return g(t.text);case 146:return pe(t.expression)?g(t.expression.text):void 0;default:e.Debug.assertNever(t)}}function C(t,n,r,i,a,o,s){var c=E(t,n);return e.createFileDiagnostic(t,c.start,c.length,r,i,a,o,s)}function T(t,n){var r=e.createScanner(t.languageVersion,!0,t.languageVariant,t.text,void 0,n);r.scan();var i=r.getTokenPos();return e.createTextSpanFromBounds(i,r.getTextPos())}function E(t,n){var r=n;switch(n.kind){case 272:var i=e.skipTrivia(t.text,0,!1);return i===t.text.length?e.createTextSpan(0,0):T(t,i);case 230:case 180:case 233:case 203:case 234:case 237:case 236:case 271:case 232:case 190:case 153:case 155:case 156:case 235:r=n.name;break;case 191:return function(t,n){var r=e.skipTrivia(t.text,n.pos);if(n.body&&211===n.body.kind){var i=e.getLineAndCharacterOfPosition(t,n.body.pos).line;if(i<e.getLineAndCharacterOfPosition(t,n.body.end).line)return e.createTextSpan(r,o(i,t)-r+1)}return e.createTextSpanFromBounds(r,n.end)}(t,n)}if(void 0===r)return T(t,n.pos);var a=s(r),c=a?r.pos:e.skipTrivia(t.text,r.pos);return a?(e.Debug.assert(c===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(c>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(c,r.end)}function N(t){return!!(2&e.getCombinedNodeFlags(t))||!!(2048&e.getCombinedModifierFlags(t))}e.usingSingleLineStringWriter=function(e){var t=r.getText();try{return e(r),r.getText()}finally{r.clear(),r.writeKeyword(t)}},e.getFullWidth=i,e.getResolvedModule=function(e,t){return e&&e.resolvedModules&&e.resolvedModules.get(t)},e.setResolvedModule=function(t,n,r){t.resolvedModules||(t.resolvedModules=e.createMap()),t.resolvedModules.set(n,r)},e.setResolvedTypeReferenceDirective=function(t,n,r){t.resolvedTypeReferenceDirectiveNames||(t.resolvedTypeReferenceDirectiveNames=e.createMap()),t.resolvedTypeReferenceDirectiveNames.set(n,r)},e.moduleResolutionIsEqualTo=function(e,t){return e.isExternalLibraryImport===t.isExternalLibraryImport&&e.extension===t.extension&&e.resolvedFileName===t.resolvedFileName&&e.originalPath===t.originalPath&&((n=e.packageId)===(r=t.packageId)||n&&r&&n.name===r.name&&n.subModuleName===r.subModuleName&&n.version===r.version);var n,r},e.packageIdToString=function(e){var t=e.name,n=e.subModuleName;return(n?t+"/"+n:t)+"@"+e.version},e.typeDirectiveIsEqualTo=function(e,t){return e.resolvedFileName===t.resolvedFileName&&e.primary===t.primary},e.hasChangesInResolutions=function(t,n,r,i){e.Debug.assert(t.length===n.length);for(var a=0;a<t.length;a++){var o=n[a],s=r&&r.get(t[a]);if(s?!o||!i(s,o):o)return!0}return!1},e.containsParseError=function t(n){return function(n){262144&n.flags||((0!=(32768&n.flags)||e.forEachChild(n,t))&&(n.flags|=131072),n.flags|=262144)}(n),0!=(131072&n.flags)},e.getSourceFileOfNode=a,e.isStatementWithLocals=function(e){switch(e.kind){case 211:case 239:case 218:case 219:case 220:return!0}return!1},e.getStartPositionOfLine=function(t,n){return e.Debug.assert(t>=0),e.getLineStarts(n)[t]},e.nodePosToString=function(t){var n=a(t),r=e.getLineAndCharacterOfPosition(n,t.pos);return n.fileName+"("+(r.line+1)+","+(r.character+1)+")"},e.getEndLinePosition=o,e.nodeIsMissing=s,e.nodeIsPresent=c,e.isRecognizedTripleSlashComment=function(t,n,r){if(47===t.charCodeAt(n+1)&&n+2<r&&47===t.charCodeAt(n+2)){var i=t.substring(n,r);return!!(i.match(e.fullTripleSlashReferencePathRegEx)||i.match(e.fullTripleSlashAMDReferencePathRegEx)||i.match(A)||i.match(P))}return!1},e.isPinnedComment=u,e.getTokenPosOfNode=l,e.getNonDecoratorTokenPosOfNode=function(t,n){return s(t)||!t.decorators?l(t,n):e.skipTrivia((n||a(t)).text,t.decorators.end)},e.getSourceTextOfNodeFromSourceFile=_,e.getTextOfNodeFromSourceText=d,e.getTextOfNode=p,e.indexOfNode=function(t,n){return e.binarySearch(t,n,f,e.compareValues)},e.getEmitFlags=m,e.getLiteralText=function(t,n){if(!xe(t)&&t.parent&&!(e.isNumericLiteral(t)&&512&t.numericLiteralFlags))return _(n,t);var r=16777216&m(t)?Ae:Ie;switch(t.kind){case 9:return t.singleQuote?"'"+r(t.text,39)+"'":'"'+r(t.text,34)+'"';case 13:return"`"+r(t.text,96)+"`";case 14:return"`"+r(t.text,96)+"${";case 15:return"}"+r(t.text,96)+"${";case 16:return"}"+r(t.text,96)+"`";case 8:case 12:return t.text}e.Debug.fail("Literal kind '"+t.kind+"' not accounted for.")},e.getTextOfConstantValue=function(t){return e.isString(t)?'"'+Ie(t)+'"':""+t},e.escapeLeadingUnderscores=g,e.escapeIdentifier=function(e){return e},e.makeIdentifierFromModuleName=function(t){return e.getBaseFileName(t).replace(/^(\d)/,"_$1").replace(/\W/g,"_")},e.isBlockOrCatchScoped=function(t){return 0!=(3&e.getCombinedNodeFlags(t))||y(t)},e.isCatchClauseVariableDeclarationOrBindingElement=y,e.isAmbientModule=h,e.isModuleWithStringLiteralName=v,e.isNonGlobalAmbientModule=function(t){return e.isModuleDeclaration(t)&&e.isStringLiteral(t.name)},e.isShorthandAmbientModuleSymbol=function(e){return(t=e.valueDeclaration)&&237===t.kind&&!t.body;var t},e.isBlockScopedContainerTopLevel=function(t){return 272===t.kind||237===t.kind||e.isFunctionLike(t)},e.isGlobalScopeAugmentation=b,e.isExternalModuleAugmentation=function(e){return h(e)&&x(e)},e.isModuleAugmentationExternal=x,e.isEffectiveExternalModule=function(t,n){return e.isExternalModule(t)||n.isolatedModules||e.getEmitModuleKind(n)===e.ModuleKind.CommonJS&&!!t.commonJsModuleIndicator},e.isBlockScope=k,e.isDeclarationWithTypeParameters=function(t){switch(t.kind){case 157:case 158:case 152:case 159:case 162:case 163:case 280:case 233:case 203:case 234:case 235:case 290:case 232:case 153:case 154:case 155:case 156:case 190:case 191:return!0;default:return e.assertTypeIsNever(t),!1}},e.isAnyImportSyntax=function(e){switch(e.kind){case 242:case 241:return!0;default:return!1}},e.getEnclosingBlockScopeContainer=function(e){for(var t=e.parent;t;){if(k(t,t.parent))return t;t=t.parent}},e.declarationNameToString=S,e.getNameFromIndexInfo=function(e){return e.declaration?S(e.declaration.parameters[0].name):void 0},e.getTextOfPropertyName=D,e.entityNameToString=function t(n){switch(n.kind){case 71:return 0===i(n)?e.idText(n):p(n);case 145:return t(n.left)+"."+t(n.right);case 183:return t(n.expression)+"."+t(n.name)}},e.createDiagnosticForNode=function(e,t,n,r,i,o){return C(a(e),e,t,n,r,i,o)},e.createDiagnosticForNodeArray=function(t,n,r,i,a,o,s){var c=e.skipTrivia(t.text,n.pos);return e.createFileDiagnostic(t,c,n.end-c,r,i,a,o,s)},e.createDiagnosticForNodeInSourceFile=C,e.createDiagnosticForNodeSpan=function(t,n,r,i,a,o,s,c){var u=e.skipTrivia(t.text,n.pos);return e.createFileDiagnostic(t,u,r.end-u,i,a,o,s,c)},e.createDiagnosticForNodeFromMessageChain=function(e,t){var n=a(e),r=E(n,e);return{file:n,start:r.start,length:r.length,code:t.code,category:t.category,messageText:t.next?t:t.messageText}},e.getSpanOfTokenAtPosition=T,e.getErrorSpanForNode=E,e.isExternalOrCommonJsModule=function(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)},e.isConstEnumDeclaration=function(e){return 236===e.kind&&N(e)},e.isConst=N,e.isLet=function(t){return!!(1&e.getCombinedNodeFlags(t))},e.isSuperCall=function(e){return 185===e.kind&&97===e.expression.kind},e.isImportCall=function(e){return 185===e.kind&&91===e.expression.kind},e.isPrologueDirective=function(e){return 214===e.kind&&9===e.expression.kind},e.getLeadingCommentRangesOfNode=function(t,n){return 10!==t.kind?e.getLeadingCommentRanges(n.text,t.pos):void 0},e.getJSDocCommentRanges=function(t,n){var r=148===t.kind||147===t.kind||190===t.kind||191===t.kind||189===t.kind?e.concatenate(e.getTrailingCommentRanges(n,t.pos),e.getLeadingCommentRanges(n,t.pos)):e.getLeadingCommentRanges(n,t.pos);return e.filter(r,function(e){return 42===n.charCodeAt(e.pos+1)&&42===n.charCodeAt(e.pos+2)&&47!==n.charCodeAt(e.pos+3)})},e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*<reference\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;var A=/^(\/\/\/\s*<reference\s+types\s*=\s*)('|")(.+?)\2.*?\/>/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;var P=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)('|")(.+?)\2\s*\/>/;function w(t){if(160<=t.kind&&t.kind<=177)return!0;switch(t.kind){case 119:case 134:case 137:case 122:case 138:case 140:case 131:return!0;case 105:return 194!==t.parent.kind;case 205:return!lt(t);case 147:return 176===t.parent.kind||171===t.parent.kind;case 71:145===t.parent.kind&&t.parent.right===t?t=t.parent:183===t.parent.kind&&t.parent.name===t&&(t=t.parent),e.Debug.assert(71===t.kind||145===t.kind||183===t.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 145:case 183:case 99:var n=t.parent;if(164===n.kind)return!1;if(160<=n.kind&&n.kind<=177)return!0;switch(n.kind){case 205:return!lt(n);case 147:return t===n.constraint;case 151:case 150:case 148:case 230:return t===n.type;case 232:case 190:case 191:case 154:case 153:case 152:case 155:case 156:return t===n.type;case 157:case 158:case 159:case 188:return t===n.type;case 185:case 186:return e.contains(n.typeArguments,t);case 187:return!1}}return!1}function F(e){if(e)switch(e.kind){case 180:case 271:case 148:case 268:case 151:case 150:case 269:case 230:return!0}return!1}function I(e){return 231===e.parent.kind&&212===e.parent.parent.kind}function O(t,n){for(;;){if(!(t=t.parent))return;switch(t.kind){case 146:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 149:148===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 191:if(!n)continue;case 232:case 190:case 237:case 151:case 150:case 153:case 152:case 154:case 155:case 156:case 157:case 158:case 159:case 236:case 272:return t}}}function M(e,t,n){switch(e.kind){case 233:return!0;case 151:return 233===t.kind;case 155:case 156:case 153:return void 0!==e.body&&233===t.kind;case 148:return void 0!==t.body&&(154===t.kind||153===t.kind||156===t.kind)&&233===n.kind}return!1}function L(e,t,n){return void 0!==e.decorators&&M(e,t,n)}function R(e,t,n){return L(e,t,n)||B(e,t)}function B(t,n){switch(t.kind){case 233:return e.forEach(t.members,function(e){return R(e,t,n)});case 153:case 156:return e.forEach(t.parameters,function(e){return L(e,t,n)})}}function z(e){var t=e.parent;return(255===t.kind||254===t.kind||256===t.kind)&&t.tagName===e}function j(e){switch(e.kind){case 97:case 95:case 101:case 86:case 12:case 181:case 182:case 183:case 184:case 185:case 186:case 187:case 206:case 188:case 207:case 189:case 190:case 203:case 191:case 194:case 192:case 193:case 196:case 197:case 198:case 199:case 202:case 200:case 13:case 204:case 253:case 254:case 257:case 201:case 195:case 208:return!0;case 145:for(;145===e.parent.kind;)e=e.parent;return 164===e.parent.kind||z(e);case 71:if(164===e.parent.kind||z(e))return!0;case 8:case 9:case 99:return J(e);default:return!1}}function J(e){var t=e.parent;switch(t.kind){case 230:case 148:case 151:case 150:case 271:case 268:case 180:return t.initializer===e;case 214:case 215:case 216:case 217:case 223:case 224:case 225:case 264:case 227:return t.expression===e;case 218:return t.initializer===e&&231!==t.initializer.kind||t.condition===e||t.incrementor===e;case 219:case 220:return t.initializer===e&&231!==t.initializer.kind||t.expression===e;case 188:case 206:case 209:case 146:return e===t.expression;case 149:case 263:case 262:case 270:return!0;case 205:return t.expression===e&<(t);default:return j(t)}}function K(e){return 241===e.kind&&252===e.moduleReference.kind}function U(e){return V(e)}function V(e){return e&&!!(65536&e.flags)}function q(t){if(t&&e.isVariableDeclaration(t)&&t.initializer)return H(t.initializer,!1)||e.isIdentifier(t.name)&&G(t.name,t.initializer,!1)}function W(t){if(t&&t.parent&&e.isBinaryExpression(t.parent)&&58===t.parent.operatorToken.kind){var n=e.isPropertyAccessExpression(t.parent.left)&&"prototype"===t.parent.left.name.escapedText;return H(t.parent.right,n)||G(t.parent.left,t.parent.right,n)}}function H(t,n){if(e.isCallExpression(t)){var r=se(t.expression);return 190===r.kind||191===r.kind?t:void 0}return 190===t.kind||203===t.kind?t:e.isObjectLiteralExpression(t)&&(0===t.properties.length||n)?t:void 0}function G(t,n,r){var i=e.isBinaryExpression(n)&&54===n.operatorToken.kind&&H(n.right,r);if(i&&function t(n,r){return e.isIdentifier(n)&&e.isIdentifier(r)?n.escapedText===r.escapedText:e.isIdentifier(n)&&e.isPropertyAccessExpression(r)?(99===r.expression.kind||e.isIdentifier(r.expression)&&("window"===r.expression.escapedText||"self"===r.expression.escapedText||"global"===r.expression.escapedText))&&t(n,r.name):!(!e.isPropertyAccessExpression(n)||!e.isPropertyAccessExpression(r))&&n.name.escapedText===r.name.escapedText&&t(n.expression,r.expression)}(t,n.left))return i}function X(t){if(!V(t)||58!==t.operatorToken.kind||!e.isPropertyAccessExpression(t.left))return 0;var n=t.left;if(99===n.expression.kind)return 4;if(e.isIdentifier(n.expression)&&"module"===n.expression.escapedText&&"exports"===n.name.escapedText)return 2;if(_t(n.expression)){if("prototype"===n.name.escapedText&&e.isObjectLiteralExpression(t.right))return 6;if(e.isPropertyAccessExpression(n.expression)&&"prototype"===n.expression.name.escapedText)return 3;for(var r=n;e.isPropertyAccessExpression(r.expression);)r=r.expression;e.Debug.assert(e.isIdentifier(r.expression));var i=r.expression;return"exports"===i.escapedText||"module"===i.escapedText&&"exports"===r.name.escapedText?1:5}return 0}function Q(t){return e.isExpressionStatement(t)&&t.expression&&e.isBinaryExpression(t.expression)&&58===t.expression.operatorToken.kind&&t.expression.right}function Y(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&0!==X(t.expression)&&e.isBinaryExpression(t.expression.right)&&54===t.expression.right.operatorToken.kind&&t.expression.right.right}function $(e){switch(e.kind){case 212:var t=Z(e);return t&&t.initializer;case 151:return e.initializer}}function Z(t){return e.isVariableStatement(t)&&t.declarationList.declarations.length>0&&t.declarationList.declarations[0]}function ee(e){return 237===e.kind&&e.body&&237===e.body.kind&&e.body}function te(t){var n=ne(t),r=Y(n)||Q(n)||$(n)||Z(n)||ee(n)||n;return r&&e.isFunctionLike(r)?r:void 0}function ne(t){return e.Debug.assert(282===t.parent.kind),t.parent.parent}function re(e){return void 0!==e.dotDotDotToken}function ie(e){for(var t=e.parent;;){switch(t.kind){case 198:var n=t.operatorToken.kind;return st(n)&&t.left===e?58===n?1:2:0;case 196:case 197:var r=t.operator;return 43===r||44===r?2:0;case 219:case 220:return t.initializer===e?1:0;case 189:case 181:case 202:case 207:e=t;break;case 269:if(t.name!==e)return 0;e=t.parent;break;case 268:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function ae(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function oe(e){return ae(e,189)}function se(e){for(;189===e.kind;)e=e.expression;return e}function ce(e){return _t(e.expression)}function ue(e,t){if(e)for(var n=0,r=e;n<r.length;n++){var i=r[n];if(i.token===t)return i}}function le(e){return 72<=e&&e<=144}function _e(e){return 117<=e&&e<=144}function de(e){return le(e)&&!_e(e)}function pe(e){var t=e.kind;return 9===t||8===t}function fe(t){var n=e.getNameOfDeclaration(t);return n&&me(n)}function me(e){return 146===e.kind&&!pe(e.expression)&&!ge(e.expression)}function ge(t){return e.isPropertyAccessExpression(t)&&ve(t.expression)}function ye(t){if(71===t.kind)return t.escapedText;if(9===t.kind||8===t.kind)return g(t.text);if(146===t.kind){var n=t.expression;if(ge(n))return he(e.idText(n.name));if(9===n.kind||8===n.kind)return g(n.text)}}function he(e){return"__@"+e}function ve(e){return 71===e.kind&&"Symbol"===e.escapedText}function be(e){for(;180===e.kind;)e=e.parent.parent;return e}function xe(t){return e.positionIsSynthesized(t.pos)||e.positionIsSynthesized(t.end)}function ke(e,t,n){switch(e){case 186:return n?0:1;case 196:case 193:case 194:case 192:case 195:case 199:case 201:return 1;case 198: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 Se(e){return 198===e.kind?e.operatorToken.kind:196===e.kind||197===e.kind?e.operator:e.kind}function De(e,t,n){switch(e){case 99:case 97:case 71:case 95:case 101:case 86:case 8:case 9:case 181:case 182:case 190:case 191:case 203:case 253:case 254:case 257:case 12:case 13:case 200:case 189:case 204:return 19;case 187:case 183:case 184:return 18;case 186:return n?18:17;case 185:return 17;case 197:return 16;case 196:case 193:case 194:case 192:case 195:return 15;case 198: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 199:return 4;case 201:return 2;case 202:return 1;case 296:return 0;default:return-1}}e.isPartOfTypeNode=w,e.isChildOfNodeWithKind=function(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1},e.forEachReturnStatement=function(t,n){return function t(r){switch(r.kind){case 223:return n(r);case 239:case 211:case 215:case 216:case 217:case 218:case 219:case 220:case 224:case 225:case 264:case 265:case 226:case 228:case 267:return e.forEachChild(r,t)}}(t)},e.forEachYieldExpression=function(t,n){return function t(r){switch(r.kind){case 201:n(r);var i=r.expression;return void(i&&t(i));case 236:case 234:case 237:case 235:case 233:case 203:return;default:if(e.isFunctionLike(r)){if(r.name&&146===r.name.kind)return void t(r.name.expression)}else w(r)||e.forEachChild(r,t)}}(t)},e.getRestParameterElementType=function(t){return t&&166===t.kind?t.elementType:t&&161===t.kind?e.singleOrUndefined(t.typeArguments):void 0},e.getMembersOfDeclaration=function(e){switch(e.kind){case 234:case 233:case 203:case 165:return e.members;case 182:return e.properties}},e.isVariableLike=F,e.isVariableDeclarationInVariableStatement=I,e.isValidESSymbolDeclaration=function(t){return e.isVariableDeclaration(t)?N(t)&&e.isIdentifier(t.name)&&I(t):e.isPropertyDeclaration(t)?nt(t)&&tt(t):e.isPropertySignature(t)&&nt(t)},e.introducesArgumentsExoticObject=function(e){switch(e.kind){case 153:case 152:case 154:case 155:case 156:case 232:case 190:return!0}return!1},e.unwrapInnermostStatementOfLabel=function(e,t){for(;;){if(t&&t(e),226!==e.statement.kind)return e.statement;e=e.statement}},e.isFunctionBlock=function(t){return t&&211===t.kind&&e.isFunctionLike(t.parent)},e.isObjectLiteralMethod=function(e){return e&&153===e.kind&&182===e.parent.kind},e.isObjectLiteralOrClassExpressionMethod=function(e){return 153===e.kind&&(182===e.parent.kind||203===e.parent.kind)},e.isIdentifierTypePredicate=function(e){return e&&1===e.kind},e.isThisTypePredicate=function(e){return e&&0===e.kind},e.getPropertyAssignment=function(t,n,r){return e.filter(t.properties,function(e){if(268===e.kind){var t=D(e.name);return n===t||r&&r===t}})},e.getContainingFunction=function(t){return e.findAncestor(t.parent,e.isFunctionLike)},e.getContainingClass=function(t){return e.findAncestor(t.parent,e.isClassLike)},e.getThisContainer=O,e.getNewTargetContainer=function(e){var t=O(e,!1);if(t)switch(t.kind){case 154:case 232:case 190:return t}},e.getSuperContainer=function(t,n){for(;;){if(!(t=t.parent))return t;switch(t.kind){case 146:t=t.parent;break;case 232:case 190:case 191:if(!n)continue;case 151:case 150:case 153:case 152:case 154:case 155:case 156:return t;case 149:148===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent)}}},e.getImmediatelyInvokedFunctionExpression=function(e){if(190===e.kind||191===e.kind){for(var t=e,n=e.parent;189===n.kind;)t=n,n=n.parent;if(185===n.kind&&n.expression===t)return n}},e.isSuperProperty=function(e){var t=e.kind;return(183===t||184===t)&&97===e.expression.kind},e.isThisProperty=function(e){var t=e.kind;return(183===t||184===t)&&99===e.expression.kind},e.getEntityNameFromTypeNode=function(e){switch(e.kind){case 161:return e.typeName;case 205:return _t(e.expression)?e.expression:void 0;case 71:case 145:return e}},e.getInvokedExpression=function(e){switch(e.kind){case 187:return e.tag;case 255:case 254:return e.tagName;default:return e.expression}},e.nodeCanBeDecorated=M,e.nodeIsDecorated=L,e.nodeOrChildIsDecorated=R,e.childIsDecorated=B,e.isJSXTagName=z,e.isExpressionNode=j,e.isInExpressionContext=J,e.isExternalModuleImportEqualsDeclaration=K,e.getExternalModuleImportEqualsDeclarationExpression=function(t){return e.Debug.assert(K(t)),t.moduleReference.expression},e.isInternalModuleImportEqualsDeclaration=function(e){return 241===e.kind&&252!==e.moduleReference.kind},e.isSourceFileJavaScript=U,e.isInJavaScriptFile=V,e.isInJSDoc=function(e){return e&&!!(1048576&e.flags)},e.isJSDocIndexSignature=function(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText&&t.typeArguments&&2===t.typeArguments.length&&(137===t.typeArguments[0].kind||134===t.typeArguments[0].kind)},e.isRequireCall=function(e,t){if(185!==e.kind)return!1;var n=e.expression,r=e.arguments;if(71!==n.kind||"require"!==n.escapedText)return!1;if(1!==r.length)return!1;var i=r[0];return!t||9===i.kind||13===i.kind},e.isSingleOrDoubleQuote=function(e){return 39===e||34===e},e.isStringDoubleQuoted=function(e,t){return 34===_(t,e).charCodeAt(0)},e.getJSInitializerSymbol=function(e){if(!e||!e.valueDeclaration)return e;var t=e.valueDeclaration,n=q(t)||W(t);return n&&n.symbol?n.symbol:e},e.getDeclaredJavascriptInitializer=q,e.getAssignedJavascriptInitializer=W,e.getJavascriptInitializer=H,e.getOuterNameOfJsInitializer=function(t){if(e.isBinaryExpression(t.parent)){var n=54===t.parent.operatorToken.kind&&e.isBinaryExpression(t.parent.parent)?t.parent.parent:t.parent;if(58===n.operatorToken.kind&&e.isIdentifier(n.left))return n.left}else if(e.isVariableDeclaration(t.parent))return t.parent.name},e.getRightMostAssignedExpression=function(e){for(;ut(e,!0);)e=e.right;return e},e.isExportsIdentifier=function(t){return e.isIdentifier(t)&&"exports"===t.escapedText},e.isModuleExportsPropertyAccessExpression=function(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.expression)&&"module"===t.expression.escapedText&&"exports"===t.name.escapedText},e.getSpecialPropertyAssignmentKind=X,e.isSpecialPropertyDeclaration=function(t){return V(t)&&t.parent&&214===t.parent.kind&&!!e.getJSDocTypeTag(t.parent)},e.getExternalModuleName=function(e){if(242===e.kind)return e.moduleSpecifier;if(241===e.kind){var t=e.moduleReference;if(252===t.kind)return t.expression}return 248===e.kind?e.moduleSpecifier:v(e)?e.name:void 0},e.getNamespaceDeclarationNode=function(t){switch(t.kind){case 242:return t.importClause&&e.tryCast(t.importClause.namedBindings,e.isNamespaceImport);case 241:return t;case 248:return;default:return e.Debug.assertNever(t)}},e.isDefaultImport=function(e){return 242===e.kind&&e.importClause&&!!e.importClause.name},e.hasQuestionToken=function(e){if(e)switch(e.kind){case 148:case 153:case 152:case 269:case 268:case 151:case 150:return void 0!==e.questionToken}return!1},e.isJSDocConstructSignature=function(e){return 280===e.kind&&e.parameters.length>0&&e.parameters[0].name&&"new"===e.parameters[0].name.escapedText},e.getJSDocCommentsAndTags=function(t){var n;return function t(r){var i=r.parent;i&&(268===i.kind||151===i.kind||ee(i))&&t(i),i&&i.parent&&(Z(i.parent)===r||Q(i.parent))&&t(i.parent),i&&i.parent&&i.parent.parent&&($(i.parent.parent)===r||Y(i.parent.parent))&&t(i.parent.parent),(e.isBinaryExpression(r)&&0!==X(r)||183===r.kind&&r.parent&&214===r.parent.kind)&&t(i),148===r.kind&&(n=e.addRange(n,e.getJSDocParameterTags(r))),F(r)&&e.hasInitializer(r)&&e.hasJSDocNodes(r.initializer)&&(n=e.addRange(n,r.initializer.jsDoc)),e.hasJSDocNodes(r)&&(n=e.addRange(n,r.jsDoc))}(t),n||e.emptyArray},e.getParameterSymbolFromJSDoc=function(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t.name)){var n=t.name.escapedText,r=te(t);if(r){var i=e.find(r.parameters,function(e){return 71===e.name.kind&&e.name.escapedText===n});return i&&i.symbol}}},e.getHostSignatureFromJSDoc=te,e.getJSDocHost=ne,e.getTypeParameterFromJsDoc=function(t){var n=t.name.escapedText;return e.find(t.parent.parent.parent.typeParameters,function(e){return e.name.escapedText===n})},e.hasRestParameter=function(t){var n=e.lastOrUndefined(t.parameters);return n&&re(n)},e.isRestParameter=re,function(e){e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound"}(e.AssignmentKind||(e.AssignmentKind={})),e.getAssignmentTargetKind=ie,e.isAssignmentTarget=function(e){return 0!==ie(e)},e.isNodeWithPossibleHoistedDeclaration=function(e){switch(e.kind){case 211:case 212:case 224:case 215:case 225:case 239:case 264:case 265:case 226:case 218:case 219:case 220:case 216:case 217:case 228:case 267:return!0}return!1},e.walkUpParenthesizedTypes=function(e){return ae(e,172)},e.walkUpParenthesizedExpressions=oe,e.skipParentheses=se,e.isDeleteTarget=function(e){return(183===e.kind||184===e.kind)&&(e=oe(e.parent))&&192===e.kind},e.isNodeDescendantOf=function(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1},e.isDeclarationName=function(t){return!e.isSourceFile(t)&&!e.isBindingPattern(t)&&e.isDeclaration(t.parent)&&t.parent.name===t},e.isAnyDeclarationName=function(t){switch(t.kind){case 71:case 9:case 8:if(e.isDeclaration(t.parent))return t.parent.name===t;var n=t.parent.parent;return e.isBinaryExpression(n)&&0!==X(n)&&e.getNameOfDeclaration(n)===t;default:return!1}},e.isLiteralComputedPropertyDeclarationName=function(t){return(9===t.kind||8===t.kind)&&146===t.parent.kind&&e.isDeclaration(t.parent.parent)},e.isIdentifierName=function(e){var t=e.parent;switch(t.kind){case 151:case 150:case 153:case 152:case 155:case 156:case 271:case 268:case 183:return t.name===e;case 145:if(t.right===e){for(;145===t.kind;)t=t.parent;return 164===t.kind}return!1;case 180:case 246:return t.propertyName===e;case 250:case 260:return!0}return!1},e.isAliasSymbolDeclaration=function(e){return 241===e.kind||240===e.kind||243===e.kind&&!!e.name||244===e.kind||246===e.kind||250===e.kind||247===e.kind&&ce(e)},e.exportAssignmentIsAlias=ce,e.getClassExtendsHeritageClauseElement=function(e){var t=ue(e.heritageClauses,85);return t&&t.types.length>0?t.types[0]:void 0},e.getClassImplementsHeritageClauseElements=function(e){var t=ue(e.heritageClauses,108);return t?t.types:void 0},e.getInterfaceBaseTypeNodes=function(e){var t=ue(e.heritageClauses,85);return t?t.types:void 0},e.getHeritageClause=ue,e.tryResolveScriptReference=function(t,n,r){if(!t.getCompilerOptions().noResolve){var i=e.isRootedDiskPath(r.fileName)?r.fileName:e.combinePaths(e.getDirectoryPath(n.fileName),r.fileName);return t.getSourceFile(i)}},e.getAncestor=function(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}},e.isKeyword=le,e.isContextualKeyword=_e,e.isNonContextualKeyword=de,e.isStringANonContextualKeyword=function(t){var n=e.stringToToken(t);return void 0!==n&&de(n)},e.isTrivia=function(e){return 2<=e&&e<=7},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"}(e.FunctionFlags||(e.FunctionFlags={})),e.getFunctionFlags=function(e){if(!e)return 4;var t=0;switch(e.kind){case 232:case 190:case 153:e.asteriskToken&&(t|=1);case 191:et(e,256)&&(t|=2)}return e.body||(t|=4),t},e.isAsyncFunction=function(e){switch(e.kind){case 232:case 190:case 191:case 153:return void 0!==e.body&&void 0===e.asteriskToken&&et(e,256)}return!1},e.isStringOrNumericLiteral=pe,e.hasDynamicName=fe,e.isDynamicName=me,e.isWellKnownSymbolSyntactically=ge,e.getPropertyNameForPropertyNameNode=ye,e.isPropertyNameLiteral=function(e){switch(e.kind){case 71:case 9:case 13:case 8:return!0;default:return!1}},e.getTextOfIdentifierOrLiteral=function(t){return 71===t.kind?e.idText(t):t.text},e.getEscapedTextOfIdentifierOrLiteral=function(e){return 71===e.kind?e.escapedText:g(e.text)},e.getPropertyNameForKnownSymbolName=he,e.isKnownSymbol=function(t){return e.startsWith(t.escapedName,"__@")},e.isESSymbolIdentifier=ve,e.isPushOrUnshiftIdentifier=function(e){return"push"===e.escapedText||"unshift"===e.escapedText},e.isParameterDeclaration=function(e){return 148===be(e).kind},e.getRootDeclaration=be,e.nodeStartsNewLexicalEnvironment=function(e){var t=e.kind;return 154===t||190===t||232===t||191===t||153===t||155===t||156===t||237===t||272===t},e.nodeIsSynthesized=xe,e.getOriginalSourceFile=function(t){return e.getParseTreeNode(t,e.isSourceFile)||t},function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(e.Associativity||(e.Associativity={})),e.getExpressionAssociativity=function(e){var t=Se(e);return ke(e.kind,t,186===e.kind&&void 0!==e.arguments)},e.getOperatorAssociativity=ke,e.getExpressionPrecedence=function(e){var t=Se(e);return De(e.kind,t,186===e.kind&&void 0!==e.arguments)},e.getOperator=Se,e.getOperatorPrecedence=De,e.createDiagnosticCollection=function(){var t=[],n=[],r=e.createMap(),i=!1,a=0;return{add:function(o){var s;o.file?(s=r.get(o.file.fileName))||(r.set(o.file.fileName,s=[]),e.insertSorted(n,o.file.fileName,e.compareStringsCaseSensitive)):(i&&(i=!1,t=t.slice()),s=t),e.insertSorted(s,o,e.compareDiagnostics),a++},getGlobalDiagnostics:function(){return i=!0,t},getDiagnostics:function(i){if(i)return r.get(i)||[];var a=e.flatMap(n,function(e){return r.get(e)});return t.length?(a.unshift.apply(a,t),a):a},getModificationCount:function(){return a},reattachFileDiagnostics:function(t){e.forEach(r.get(t.fileName),function(e){return e.file=t})}}};var Ce=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Te=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Ee=/[\\\`\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Ne=e.createMapFromTemplate({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085"});function Ae(e,t){return e.replace(96===t?Ee:39===t?Te:Ce,Pe)}function Pe(e,t,n){if(0===e.charCodeAt(0)){var r=n.charCodeAt(t+e.length);return r>=48&&r<=57?"\\x00":"\\0"}return Ne.get(e)||we(e.charCodeAt(0))}function we(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}e.escapeString=Ae,e.isIntrinsicJsxName=function(e){var t=e.charCodeAt(0);return t>=97&&t<=122||e.indexOf("-")>-1};var Fe=/[^\u0000-\u007F]/g;function Ie(e,t){return e=Ae(e,t),Fe.test(e)?e.replace(Fe,function(e){return we(e.charCodeAt(0))}):e}e.escapeNonAsciiString=Ie;var Oe=[""," "];function Me(e){return void 0===Oe[e]&&(Oe[e]=Me(e-1)+Oe[1]),Oe[e]}function Le(){return Oe[1].length}function Re(e,t){return t.moduleName||Be(e,t.fileName)}function Be(t,n){var r=function(e){return t.getCanonicalFileName(e)},i=e.toPath(t.getCommonSourceDirectory(),t.getCurrentDirectory(),r),a=e.getNormalizedAbsolutePath(n,t.getCurrentDirectory()),o=e.getRelativePathToDirectoryOrUrl(i,a,i,r,!1);return e.removeFileExtension(o)}function ze(e,t,n){return!(t.noEmitForJsFiles&&U(e)||e.isDeclarationFile||n(e))}function je(t,n,r){var i=e.getNormalizedAbsolutePath(t.fileName,n.getCurrentDirectory()),a=n.getCommonSourceDirectory();return i=0===n.getCanonicalFileName(i).indexOf(n.getCanonicalFileName(a))?i.substring(a.length):i,e.combinePaths(r,i)}function Je(t,n){return e.getLineAndCharacterOfPosition(t,n).line}function Ke(t,n){return e.computeLineAndCharacterOfPosition(t,n).line}function Ue(e){if(e&&e.parameters.length>0){var t=2===e.parameters.length&&Ve(e.parameters[0]);return e.parameters[t?1:0]}}function Ve(e){return qe(e.name)}function qe(e){return e&&71===e.kind&&We(e)}function We(e){return 99===e.originalKeywordKind}function He(t){return t.type||(V(t)?e.getJSDocType(t):void 0)}function Ge(t){var n=e.getJSDocTemplateTag(t);return n&&n.typeParameters}function Xe(e,t,n,r){Qe(e,t,n.pos,r)}function Qe(e,t,n,r){r&&r.length&&n!==r[0].pos&&Ke(e,n)!==Ke(e,r[0].pos)&&t.writeLine()}function Ye(e,t,n,r,i,a,o,s){if(r&&r.length>0){i&&n.write(" ");for(var c=!1,u=0,l=r;u<l.length;u++){var _=l[u];c&&(n.write(" "),c=!1),s(e,t,n,_.pos,_.end,o),_.hasTrailingNewLine?n.writeLine():c=!0}c&&a&&n.write(" ")}}function $e(e,t,n,r,i,a){var o=Math.min(t,a-1),s=e.substring(i,o).replace(/^\s+|\s+$/g,"");s?(n.write(s),o!==t&&n.writeLine()):n.writeLiteral(r)}function Ze(t,n,r){for(var i=0;n<r&&e.isWhiteSpaceSingleLine(t.charCodeAt(n));n++)9===t.charCodeAt(n)?i+=Le()-i%Le():i++;return i}function et(e,t){return!!rt(e,t)}function tt(e){return et(e,32)}function nt(e){return et(e,64)}function rt(e,t){return it(e)&t}function it(e){if(536870912&e.modifierFlagsCache)return-536870913&e.modifierFlagsCache;var t=at(e);return e.modifierFlagsCache=536870912|t,t}function at(e){var t=0;if(e.modifiers)for(var n=0,r=e.modifiers;n<r.length;n++)t|=ot(r[n].kind);return(4&e.flags||71===e.kind&&e.isInJSDocNamespace)&&(t|=1),t}function ot(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 132:return 64}return 0}function st(e){return e>=58&&e<=70}function ct(t){if(205===t.kind&&85===t.parent.token&&e.isClassLike(t.parent.parent))return t.parent.parent}function ut(t,n){return e.isBinaryExpression(t)&&(n?58===t.operatorToken.kind:st(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function lt(e){return void 0!==ct(e)}function _t(e){return 71===e.kind||183===e.kind&&_t(e.expression)}e.getIndentString=Me,e.getIndentSize=Le,e.createTextWriter=function(t){var n,r,i,a,o;function s(e){e&&e.length&&(i&&(n+=Me(r),i=!1),n+=e)}function c(){n="",r=0,i=!0,a=0,o=0}return c(),{write:s,rawWrite:function(e){void 0!==e&&(i&&(i=!1),n+=e)},writeTextOfNode:function(e,t){s(d(e,t))},writeLiteral:function(t){if(t&&t.length){s(t);var r=e.computeLineStarts(t);r.length>1&&(a=a+r.length-1,o=n.length-t.length+e.lastOrUndefined(r))}},writeLine:function(){i||(a++,o=(n+=t).length,i=!0)},increaseIndent:function(){r++},decreaseIndent:function(){r--},getIndent:function(){return r},getTextPos:function(){return n.length},getLine:function(){return a+1},getColumn:function(){return i?r*Le()+1:n.length-o+1},getText:function(){return n},isAtStartOfLine:function(){return i},clear:c,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:e.noop,writeKeyword:s,writeOperator:s,writeParameter:s,writeProperty:s,writePunctuation:s,writeSpace:s,writeStringLiteral:s,writeSymbol:s}},e.getResolvedExternalModuleName=Re,e.getExternalModuleNameFromDeclaration=function(e,t,n){var r=t.getExternalModuleFileFromDeclaration(n);if(r&&!r.isDeclarationFile)return Re(e,r)},e.getExternalModuleNameFromPath=Be,e.getOwnEmitOutputFilePath=function(t,n,r){var i=n.getCompilerOptions();return e.removeFileExtension(i.outDir?je(t,n,i.outDir):t.fileName)+r},e.getDeclarationEmitOutputFilePath=function(t,n){var r=n.getCompilerOptions(),i=r.declarationDir||r.outDir,a=i?je(t,n,i):t.fileName;return e.removeFileExtension(a)+".d.ts"},e.getSourceFilesToEmit=function(t,n){var r=t.getCompilerOptions(),i=function(e){return t.isSourceFileFromExternalLibrary(e)};if(r.outFile||r.out){var a=e.getEmitModuleKind(r),o=a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(t.getSourceFiles(),function(t){return(o||!e.isExternalModule(t))&&ze(t,r,i)})}var s=void 0===n?t.getSourceFiles():[n];return e.filter(s,function(e){return ze(e,r,i)})},e.sourceFileMayBeEmitted=ze,e.getSourceFilePathInNewDir=je,e.writeFile=function(t,n,r,i,a,o){t.writeFile(r,i,a,function(t){n.add(e.createCompilerDiagnostic(e.Diagnostics.Could_not_write_file_0_Colon_1,r,t))},o)},e.getLineOfLocalPosition=Je,e.getLineOfLocalPositionFromLineMap=Ke,e.getFirstConstructorWithBody=function(t){return e.forEach(t.members,function(e){if(154===e.kind&&c(e.body))return e})},e.getSetAccessorTypeAnnotationNode=function(e){var t=Ue(e);return t&&t.type},e.getThisParameter=function(e){if(e.parameters.length){var t=e.parameters[0];if(Ve(t))return t}},e.parameterIsThisKeyword=Ve,e.isThisIdentifier=qe,e.identifierIsThisKeyword=We,e.getAllAccessorDeclarations=function(t,n){var r,i,a,o;return fe(n)?(r=n,155===n.kind?a=n:156===n.kind?o=n:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,function(e){155!==e.kind&&156!==e.kind||et(e,32)!==et(n,32)||ye(e.name)===ye(n.name)&&(r?i||(i=e):r=e,155!==e.kind||a||(a=e),156!==e.kind||o||(o=e))}),{firstAccessor:r,secondAccessor:i,getAccessor:a,setAccessor:o}},e.getEffectiveTypeAnnotationNode=He,e.getEffectiveReturnTypeNode=function(t){return t.type||(V(t)?e.getJSDocReturnType(t):void 0)},e.getEffectiveTypeParameterDeclarations=function(e){return e.typeParameters||(V(e)?Ge(e):void 0)},e.getJSDocTypeParameterDeclarations=Ge,e.getEffectiveSetAccessorTypeAnnotationNode=function(e){var t=Ue(e);return t&&He(t)},e.emitNewLineBeforeLeadingComments=Xe,e.emitNewLineBeforeLeadingCommentsOfPosition=Qe,e.emitNewLineBeforeLeadingCommentOfPosition=function(e,t,n,r){n!==r&&Ke(e,n)!==Ke(e,r)&&t.writeLine()},e.emitComments=Ye,e.emitDetachedComments=function(t,n,r,i,a,o,s){var c,l;if(s?0===a.pos&&(c=e.filter(e.getLeadingCommentRanges(t,a.pos),function(e){return u(t,e)})):c=e.getLeadingCommentRanges(t,a.pos),c){for(var _=[],d=void 0,p=0,f=c;p<f.length;p++){var m=f[p];if(d){var g=Ke(n,d.end);if(Ke(n,m.pos)>=g+2)break}_.push(m),d=m}_.length&&(g=Ke(n,e.lastOrUndefined(_).end),Ke(n,e.skipTrivia(t,a.pos))>=g+2&&(Xe(n,r,a,c),Ye(t,n,r,_,!1,!0,o,i),l={nodePos:a.pos,detachedCommentEndPos:e.lastOrUndefined(_).end}))}return l},e.writeCommentRange=function(t,n,r,i,a,o){if(42===t.charCodeAt(i+1))for(var s=e.computeLineAndCharacterOfPosition(n,i),c=n.length,u=void 0,l=i,_=s.line;l<a;_++){var d=_+1===c?t.length+1:n[_+1];if(l!==i){void 0===u&&(u=Ze(t,n[s.line],i));var p=r.getIndent()*Le()-u+Ze(t,l,d);if(p>0){var f=p%Le(),m=Me((p-f)/Le());for(r.rawWrite(m);f;)r.rawWrite(" "),f--}else r.rawWrite("")}$e(t,a,r,o,l,d),l=d}else r.write(t.substring(i,a))},e.hasModifiers=function(e){return 0!==it(e)},e.hasModifier=et,e.hasStaticModifier=tt,e.hasReadonlyModifier=nt,e.getSelectedModifierFlags=rt,e.getModifierFlags=it,e.getModifierFlagsNoCache=at,e.modifierToFlag=ot,e.isLogicalOperator=function(e){return 54===e||53===e||51===e},e.isAssignmentOperator=st,e.tryGetClassExtendingExpressionWithTypeArguments=ct,e.isAssignmentExpression=ut,e.isDestructuringAssignment=function(e){if(ut(e,!0)){var t=e.left.kind;return 182===t||181===t}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=lt,e.isExpressionWithTypeArgumentsInClassImplementsClause=function(t){return 205===t.kind&&_t(t.expression)&&t.parent&&108===t.parent.token&&t.parent.parent&&e.isClassLike(t.parent.parent)},e.isEntityNameExpression=_t,e.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 145===e.parent.kind&&e.parent.right===e||183===e.parent.kind&&e.parent.name===e},e.isEmptyObjectLiteral=function(e){return 182===e.kind&&0===e.properties.length},e.isEmptyArrayLiteral=function(e){return 181===e.kind&&0===e.elements.length},e.getLocalSymbolForExportDefault=function(t){return function(t){return t&&e.length(t.declarations)>0&&et(t.declarations[0],512)}(t)?t.declarations[0].localSymbol:void 0},e.tryExtractTypeScriptExtension=function(t){return e.find(e.supportedTypescriptExtensionsForExtractExtension,function(n){return e.fileExtensionIs(t,n)})};var dt,pt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function ft(t,n,r){void 0===t&&(t=0);var i=function(t){var n=[];for(var r in t){var i=t[r];"number"==typeof i&&n.push([i,r])}return e.stableSort(n,function(t,n){return e.compareValues(t[0],n[0])})}(n);if(0===t)return i.length>0&&0===i[0][0]?i[0][1]:"0";if(r){for(var a="",o=t,s=i.length-1;s>=0&&0!==o;s--){var c=i[s],u=c[1];0!==(d=c[0])&&(o&d)===d&&(o&=~d,a=u+(a?", ":"")+a)}if(0===o)return a}else for(var l=0,_=i;l<_.length;l++){var d,p=_[l];if(u=p[1],(d=p[0])===t)return u}return t.toString()}function mt(e,t){return{pos:e,end:t}}function gt(e,t){return mt(t,e.end)}function yt(e){return e.decorators&&e.decorators.length>0?gt(e,e.decorators.end):e}function ht(e,t,n){return vt(bt(e,n),t.end,n)}function vt(e,t,n){return e===t||Je(n,e)===Je(n,t)}function bt(t,n){return e.positionIsSynthesized(t.pos)?-1:e.skipTrivia(n.text,t.pos)}function xt(e){return void 0!==e.initializer}function kt(e){return 33554432&e.flags?e.checkFlags:0}function St(e){var t=e.parent;if(!t)return 0;switch(t.kind){case 197:case 196:var n=t.operator;return 43===n||44===n?r():0;case 198:return t.left===e&&st(t.operatorToken.kind)?r():0;case 183:return t.name!==e?0:St(t);default:return 0}function r(){return t.parent&&214===t.parent.kind?1:2}}function Dt(t,n){for(;;){var r=n(t);if(void 0!==r)return r;var i=e.getDirectoryPath(t);if(i===t)return;t=i}}function Ct(e){if(32&e.flags){var t=Tt(e);return!!t&&et(t,128)}return!1}function Tt(t){return e.find(t.declarations,e.isClassLike)}function Et(e){return 65536&e.flags?e.objectFlags:0}e.convertToBase64=function(t){for(var n,r,i,a="",o=function(t){for(var n=[],r=t.length,i=0;i<r;i++){var a=t.charCodeAt(i);a<128?n.push(a):a<2048?(n.push(a>>6|192),n.push(63&a|128)):a<65536?(n.push(a>>12|224),n.push(a>>6&63|128),n.push(63&a|128)):a<131072?(n.push(a>>18|240),n.push(a>>12&63|128),n.push(a>>6&63|128),n.push(63&a|128)):e.Debug.assert(!1,"Unexpected code point")}return n}(t),s=0,c=o.length;s<c;)n=(3&o[s])<<4|o[s+1]>>4,r=(15&o[s+1])<<2|o[s+2]>>6,i=63&o[s+2],s+1>=c?r=i=64:s+2>=c&&(i=64),a+=pt.charAt(o[s]>>2)+pt.charAt(n)+pt.charAt(r)+pt.charAt(i),s+=3;return a},e.getNewLineCharacter=function(t,n){switch(t.newLine){case 0:return"\r\n";case 1:return"\n"}return n?n():e.sys?e.sys.newLine:"\r\n"},e.formatSyntaxKind=function(t){return ft(t,e.SyntaxKind,!1)},e.formatModifierFlags=function(t){return ft(t,e.ModifierFlags,!0)},e.formatTransformFlags=function(t){return ft(t,e.TransformFlags,!0)},e.formatEmitFlags=function(t){return ft(t,e.EmitFlags,!0)},e.formatSymbolFlags=function(t){return ft(t,e.SymbolFlags,!0)},e.formatTypeFlags=function(t){return ft(t,e.TypeFlags,!0)},e.formatObjectFlags=function(t){return ft(t,e.ObjectFlags,!0)},e.createRange=mt,e.moveRangeEnd=function(e,t){return mt(e.pos,t)},e.moveRangePos=gt,e.moveRangePastDecorators=yt,e.moveRangePastModifiers=function(e){return e.modifiers&&e.modifiers.length>0?gt(e,e.modifiers.end):yt(e)},e.isCollapsedRange=function(e){return e.pos===e.end},e.createTokenRange=function(t,n){return mt(t,t+e.tokenToString(n).length)},e.rangeIsOnSingleLine=function(e,t){return ht(e,e,t)},e.rangeStartPositionsAreOnSameLine=function(e,t,n){return vt(bt(e,n),bt(t,n),n)},e.rangeEndPositionsAreOnSameLine=function(e,t,n){return vt(e.end,t.end,n)},e.rangeStartIsOnSameLineAsRangeEnd=ht,e.rangeEndIsOnSameLineAsRangeStart=function(e,t,n){return vt(e.end,bt(t,n),n)},e.positionsAreOnSameLine=vt,e.getStartPositionOfRange=bt,e.isDeclarationNameOfEnumOrNamespace=function(t){var n=e.getParseTreeNode(t);if(n)switch(n.parent.kind){case 236:case 237:return n===n.parent.name}return!1},e.getInitializedVariables=function(t){return e.filter(t.declarations,xt)},e.isWatchSet=function(e){return e.watch&&e.hasOwnProperty("watch")},e.getCheckFlags=kt,e.getDeclarationModifierFlagsFromSymbol=function(t){if(t.valueDeclaration){var n=e.getCombinedModifierFlags(t.valueDeclaration);return t.parent&&32&t.parent.flags?n:-29&n}if(6&kt(t)){var r=t.checkFlags;return(256&r?8:64&r?4:16)|(512&r?32:0)}return 4194304&t.flags?36:0},e.skipAlias=function(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e},e.getCombinedLocalAndExportSymbolFlags=function(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags},e.isWriteOnlyAccess=function(e){return 1===St(e)},e.isWriteAccess=function(e){return 0!==St(e)},function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(dt||(dt={})),e.compareDataObjects=function e(t,n){if(!t||!n||Object.keys(t).length!==Object.keys(n).length)return!1;for(var r in t)if("object"==typeof t[r]){if(!e(t[r],n[r]))return!1}else if("function"!=typeof t[r]&&t[r]!==n[r])return!1;return!0},e.clearMap=function(e,t){e.forEach(t),e.clear()},e.mutateMap=function(e,t,n){var r=n.createNewValue,i=n.onDeleteValue,a=n.onExistingValue;e.forEach(function(n,r){var o=t.get(r);void 0===o?(e.delete(r),i(n,r)):a&&a(n,o,r)}),t.forEach(function(t,n){e.has(n)||e.set(n,r(n,t))})},e.forEachAncestorDirectory=Dt,e.isAbstractConstructorType=function(e){return!!(16&Et(e))&&!!e.symbol&&Ct(e.symbol)},e.isAbstractConstructorSymbol=Ct,e.getClassLikeDeclarationOfSymbol=Tt,e.getObjectFlags=Et,e.typeHasCallOrConstructSignatures=function(e,t){return 0!==t.getSignaturesOfType(e,0).length||0!==t.getSignaturesOfType(e,1).length},e.forSomeAncestorDirectory=function(e,t){return!!Dt(e,function(e){return!!t(e)||void 0})},e.isUMDExportSymbol=function(t){return t&&t.declarations&&t.declarations[0]&&e.isNamespaceExportDeclaration(t.declarations[0])},e.showModuleSpecifier=function(t){var n=t.moduleSpecifier;return e.isStringLiteral(n)?n.text:p(n)}}(l||(l={})),function(e){function t(e){return e.start+e.length}function n(e){return 0===e.length}function r(e,t){var n=a(e,t);return n&&0===n.length?void 0:n}function i(e,t,n,r){return n<=e+t&&n+r>=e}function a(e,n){var r=Math.max(e.start,n.start),i=Math.min(t(e),t(n));return r<=i?s(r,i):void 0}function o(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function s(e,t){return o(e,t-e)}function c(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function u(t){return!!e.isBindingPattern(t)&&e.every(t.elements,l)}function l(t){return!!e.isOmittedExpression(t)||u(t.name)}function _(t){for(;t&&(180===t.kind||e.isBindingPattern(t));)t=t.parent;return t}function d(e,t){if(e)for(;void 0!==e.original;)e=e.original;return!t||t(e)?e:void 0}function p(e){return 0==(8&e.flags)}function f(e){var t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function m(t){var n=y(t);return e.isIdentifier(n)?n:void 0}function g(t){return t.name||function(t){var n=t.parent.parent;if(n){if(e.isDeclaration(n))return m(n);switch(n.kind){case 212:return n.declarationList&&n.declarationList.declarations[0]?m(n.declarationList.declarations[0]):void 0;case 214:var r=n.expression;switch(r.kind){case 183:return r.name;case 184:var i=r.argumentExpression;if(e.isIdentifier(i))return i}return;case 1:return;case 189:return m(n.expression);case 226:return e.isDeclaration(n.statement)||e.isExpression(n.statement)?m(n.statement):void 0;default:e.Debug.assertNever(n,"Found typedef tag attached to node which it should not be!")}}}(t)}function y(t){if(t){switch(t.kind){case 71:return t;case 292:case 287:var n=t.name;if(145===n.kind)return n.right;break;case 198:var r=t;switch(e.getSpecialPropertyAssignmentKind(r)){case 1:case 4:case 5:case 3:return r.left.name;default:return}case 291:return g(t);case 247:var i=t.expression;return e.isIdentifier(i)?i:void 0}return t.name}}function h(t){if(t.name&&e.isIdentifier(t.name)){var n=t.name.escapedText;return b(t.parent).filter(function(t){return e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===n})}}function v(e){return x(e,288)}function b(t){var n=t.jsDocCache;return void 0===n&&(t.jsDocCache=n=e.flatMap(e.getJSDocCommentsAndTags(t),function(t){return e.isJSDoc(t)?t.tags:t})),n}function x(t,n){var r=b(t);return e.find(r,function(e){return e.kind===n})}e.getDefaultLibFileName=function(e){switch(e.target){case 6: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"}},e.textSpanEnd=t,e.textSpanIsEmpty=n,e.textSpanContainsPosition=function(e,n){return n>=e.start&&n<t(e)},e.textSpanContainsTextSpan=function(e,n){return n.start>=e.start&&t(n)<=t(e)},e.textSpanOverlapsWith=function(e,t){return void 0!==r(e,t)},e.textSpanOverlap=r,e.textSpanIntersectsWithTextSpan=function(e,t){return i(e.start,e.length,t.start,t.length)},e.textSpanIntersectsWith=function(e,t,n){return i(e.start,e.length,t,n)},e.decodedTextSpanIntersectsWith=i,e.textSpanIntersectsWithPosition=function(e,n){return n<=t(e)&&n>=e.start},e.textSpanIntersection=a,e.createTextSpan=o,e.createTextSpanFromBounds=s,e.textChangeRangeNewSpan=function(e){return o(e.span.start,e.newLength)},e.textChangeRangeIsUnchanged=function(e){return n(e.span)&&0===e.newLength},e.createTextChangeRange=c,e.unchangedTextChangeRange=c(o(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=function(n){if(0===n.length)return e.unchangedTextChangeRange;if(1===n.length)return n[0];for(var r=n[0],i=r.span.start,a=t(r.span),o=i+r.newLength,u=1;u<n.length;u++){var l=n[u],_=i,d=a,p=o,f=l.span.start,m=t(l.span),g=f+l.newLength;i=Math.min(_,f),a=Math.max(d,d+(m-p)),o=Math.max(g,g+(p-m))}return c(s(i,a),o-i)},e.getTypeParameterOwner=function(t){if(t&&147===t.kind)for(var n=t;n;n=n.parent)if(e.isFunctionLike(n)||e.isClassLike(n)||234===n.kind)return n},e.isParameterPropertyDeclaration=function(t){return e.hasModifier(t,92)&&154===t.parent.kind&&e.isClassLike(t.parent.parent)},e.isEmptyBindingPattern=u,e.isEmptyBindingElement=l,e.getCombinedModifierFlags=function(t){t=_(t);var n=e.getModifierFlags(t);return 230===t.kind&&(t=t.parent),t&&231===t.kind&&(n|=e.getModifierFlags(t),t=t.parent),t&&212===t.kind&&(n|=e.getModifierFlags(t)),n},e.getCombinedNodeFlags=function(e){var t=(e=_(e)).flags;return 230===e.kind&&(e=e.parent),e&&231===e.kind&&(t|=e.flags,e=e.parent),e&&212===e.kind&&(t|=e.flags),t},e.validateLocaleAndSetLanguage=function(t,n,r){var i=/^([a-z]+)([_\-]([a-z]+))?$/.exec(t.toLowerCase());if(i){var a=i[1];o(a,i[3],r)||o(a,void 0,r),e.setUILocale(t)}else r&&r.push(e.createCompilerDiagnostic(e.Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));function o(t,r,i){var a=e.normalizePath(n.getExecutingFilePath()),o=e.getDirectoryPath(a),s=e.combinePaths(o,t);if(r&&(s=s+"-"+r),s=n.resolvePath(e.combinePaths(s,"diagnosticMessages.generated.json")),!n.fileExists(s))return!1;var c="";try{c=n.readFile(s)}catch(t){return i&&i.push(e.createCompilerDiagnostic(e.Diagnostics.Unable_to_open_file_0,s)),!1}try{e.localizedDiagnosticMessages=JSON.parse(c)}catch(t){return i&&i.push(e.createCompilerDiagnostic(e.Diagnostics.Corrupted_locale_file_0,s)),!1}return!0}},e.getOriginalNode=d,e.isParseTreeNode=p,e.getParseTreeNode=function(e,t){return void 0===e||p(e)?e:!p(e=d(e))||t&&!t(e)?void 0:e},e.unescapeLeadingUnderscores=f,e.idText=function(e){return f(e.escapedText)},e.symbolName=function(e){return f(e.escapedName)},e.unescapeIdentifier=function(e){return e},e.getNameOfJSDocTypedef=g,e.isNamedDeclaration=function(e){return!!e.name},e.getNameOfDeclaration=y,e.getJSDocParameterTags=h,e.hasJSDocParameterTags=function(e){return!!x(e,287)},e.getJSDocAugmentsTag=function(e){return x(e,285)},e.getJSDocClassTag=function(e){return x(e,286)},e.getJSDocReturnTag=v,e.getJSDocTemplateTag=function(e){return x(e,290)},e.getJSDocTypeTag=function(e){var t=x(e,289);if(t&&t.typeExpression&&t.typeExpression.type)return t},e.getJSDocType=function(t){var n=x(t,289);if(!n&&148===t.kind){var r=h(t);r&&(n=e.find(r,function(e){return!!e.typeExpression}))}return n&&n.typeExpression&&n.typeExpression.type},e.getJSDocReturnType=function(e){var t=v(e);return t&&t.typeExpression&&t.typeExpression.type},e.getJSDocTags=b,e.getAllJSDocTagsOfKind=function(t,n){var r=b(t);return e.filter(r,function(e){return e.kind===n})}}(l||(l={})),function(e){e.isNumericLiteral=function(e){return 8===e.kind},e.isStringLiteral=function(e){return 9===e.kind},e.isJsxText=function(e){return 10===e.kind},e.isRegularExpressionLiteral=function(e){return 12===e.kind},e.isNoSubstitutionTemplateLiteral=function(e){return 13===e.kind},e.isTemplateHead=function(e){return 14===e.kind},e.isTemplateMiddle=function(e){return 15===e.kind},e.isTemplateTail=function(e){return 16===e.kind},e.isIdentifier=function(e){return 71===e.kind},e.isQualifiedName=function(e){return 145===e.kind},e.isComputedPropertyName=function(e){return 146===e.kind},e.isTypeParameterDeclaration=function(e){return 147===e.kind},e.isParameter=function(e){return 148===e.kind},e.isDecorator=function(e){return 149===e.kind},e.isPropertySignature=function(e){return 150===e.kind},e.isPropertyDeclaration=function(e){return 151===e.kind},e.isMethodSignature=function(e){return 152===e.kind},e.isMethodDeclaration=function(e){return 153===e.kind},e.isConstructorDeclaration=function(e){return 154===e.kind},e.isGetAccessorDeclaration=function(e){return 155===e.kind},e.isSetAccessorDeclaration=function(e){return 156===e.kind},e.isCallSignatureDeclaration=function(e){return 157===e.kind},e.isConstructSignatureDeclaration=function(e){return 158===e.kind},e.isIndexSignatureDeclaration=function(e){return 159===e.kind},e.isTypePredicateNode=function(e){return 160===e.kind},e.isTypeReferenceNode=function(e){return 161===e.kind},e.isFunctionTypeNode=function(e){return 162===e.kind},e.isConstructorTypeNode=function(e){return 163===e.kind},e.isTypeQueryNode=function(e){return 164===e.kind},e.isTypeLiteralNode=function(e){return 165===e.kind},e.isArrayTypeNode=function(e){return 166===e.kind},e.isTupleTypeNode=function(e){return 167===e.kind},e.isUnionTypeNode=function(e){return 168===e.kind},e.isIntersectionTypeNode=function(e){return 169===e.kind},e.isConditionalTypeNode=function(e){return 170===e.kind},e.isInferTypeNode=function(e){return 171===e.kind},e.isParenthesizedTypeNode=function(e){return 172===e.kind},e.isThisTypeNode=function(e){return 173===e.kind},e.isTypeOperatorNode=function(e){return 174===e.kind},e.isIndexedAccessTypeNode=function(e){return 175===e.kind},e.isMappedTypeNode=function(e){return 176===e.kind},e.isLiteralTypeNode=function(e){return 177===e.kind},e.isObjectBindingPattern=function(e){return 178===e.kind},e.isArrayBindingPattern=function(e){return 179===e.kind},e.isBindingElement=function(e){return 180===e.kind},e.isArrayLiteralExpression=function(e){return 181===e.kind},e.isObjectLiteralExpression=function(e){return 182===e.kind},e.isPropertyAccessExpression=function(e){return 183===e.kind},e.isElementAccessExpression=function(e){return 184===e.kind},e.isCallExpression=function(e){return 185===e.kind},e.isNewExpression=function(e){return 186===e.kind},e.isTaggedTemplateExpression=function(e){return 187===e.kind},e.isTypeAssertion=function(e){return 188===e.kind},e.isParenthesizedExpression=function(e){return 189===e.kind},e.skipPartiallyEmittedExpressions=function(e){for(;295===e.kind;)e=e.expression;return e},e.isFunctionExpression=function(e){return 190===e.kind},e.isArrowFunction=function(e){return 191===e.kind},e.isDeleteExpression=function(e){return 192===e.kind},e.isTypeOfExpression=function(e){return 193===e.kind},e.isVoidExpression=function(e){return 194===e.kind},e.isAwaitExpression=function(e){return 195===e.kind},e.isPrefixUnaryExpression=function(e){return 196===e.kind},e.isPostfixUnaryExpression=function(e){return 197===e.kind},e.isBinaryExpression=function(e){return 198===e.kind},e.isConditionalExpression=function(e){return 199===e.kind},e.isTemplateExpression=function(e){return 200===e.kind},e.isYieldExpression=function(e){return 201===e.kind},e.isSpreadElement=function(e){return 202===e.kind},e.isClassExpression=function(e){return 203===e.kind},e.isOmittedExpression=function(e){return 204===e.kind},e.isExpressionWithTypeArguments=function(e){return 205===e.kind},e.isAsExpression=function(e){return 206===e.kind},e.isNonNullExpression=function(e){return 207===e.kind},e.isMetaProperty=function(e){return 208===e.kind},e.isTemplateSpan=function(e){return 209===e.kind},e.isSemicolonClassElement=function(e){return 210===e.kind},e.isBlock=function(e){return 211===e.kind},e.isVariableStatement=function(e){return 212===e.kind},e.isEmptyStatement=function(e){return 213===e.kind},e.isExpressionStatement=function(e){return 214===e.kind},e.isIfStatement=function(e){return 215===e.kind},e.isDoStatement=function(e){return 216===e.kind},e.isWhileStatement=function(e){return 217===e.kind},e.isForStatement=function(e){return 218===e.kind},e.isForInStatement=function(e){return 219===e.kind},e.isForOfStatement=function(e){return 220===e.kind},e.isContinueStatement=function(e){return 221===e.kind},e.isBreakStatement=function(e){return 222===e.kind},e.isBreakOrContinueStatement=function(e){return 222===e.kind||221===e.kind},e.isReturnStatement=function(e){return 223===e.kind},e.isWithStatement=function(e){return 224===e.kind},e.isSwitchStatement=function(e){return 225===e.kind},e.isLabeledStatement=function(e){return 226===e.kind},e.isThrowStatement=function(e){return 227===e.kind},e.isTryStatement=function(e){return 228===e.kind},e.isDebuggerStatement=function(e){return 229===e.kind},e.isVariableDeclaration=function(e){return 230===e.kind},e.isVariableDeclarationList=function(e){return 231===e.kind},e.isFunctionDeclaration=function(e){return 232===e.kind},e.isClassDeclaration=function(e){return 233===e.kind},e.isInterfaceDeclaration=function(e){return 234===e.kind},e.isTypeAliasDeclaration=function(e){return 235===e.kind},e.isEnumDeclaration=function(e){return 236===e.kind},e.isModuleDeclaration=function(e){return 237===e.kind},e.isModuleBlock=function(e){return 238===e.kind},e.isCaseBlock=function(e){return 239===e.kind},e.isNamespaceExportDeclaration=function(e){return 240===e.kind},e.isImportEqualsDeclaration=function(e){return 241===e.kind},e.isImportDeclaration=function(e){return 242===e.kind},e.isImportClause=function(e){return 243===e.kind},e.isNamespaceImport=function(e){return 244===e.kind},e.isNamedImports=function(e){return 245===e.kind},e.isImportSpecifier=function(e){return 246===e.kind},e.isExportAssignment=function(e){return 247===e.kind},e.isExportDeclaration=function(e){return 248===e.kind},e.isNamedExports=function(e){return 249===e.kind},e.isExportSpecifier=function(e){return 250===e.kind},e.isMissingDeclaration=function(e){return 251===e.kind},e.isExternalModuleReference=function(e){return 252===e.kind},e.isJsxElement=function(e){return 253===e.kind},e.isJsxSelfClosingElement=function(e){return 254===e.kind},e.isJsxOpeningElement=function(e){return 255===e.kind},e.isJsxClosingElement=function(e){return 256===e.kind},e.isJsxFragment=function(e){return 257===e.kind},e.isJsxOpeningFragment=function(e){return 258===e.kind},e.isJsxClosingFragment=function(e){return 259===e.kind},e.isJsxAttribute=function(e){return 260===e.kind},e.isJsxAttributes=function(e){return 261===e.kind},e.isJsxSpreadAttribute=function(e){return 262===e.kind},e.isJsxExpression=function(e){return 263===e.kind},e.isCaseClause=function(e){return 264===e.kind},e.isDefaultClause=function(e){return 265===e.kind},e.isHeritageClause=function(e){return 266===e.kind},e.isCatchClause=function(e){return 267===e.kind},e.isPropertyAssignment=function(e){return 268===e.kind},e.isShorthandPropertyAssignment=function(e){return 269===e.kind},e.isSpreadAssignment=function(e){return 270===e.kind},e.isEnumMember=function(e){return 271===e.kind},e.isSourceFile=function(e){return 272===e.kind},e.isBundle=function(e){return 273===e.kind},e.isJSDocTypeExpression=function(e){return 274===e.kind},e.isJSDocAllType=function(e){return 275===e.kind},e.isJSDocUnknownType=function(e){return 276===e.kind},e.isJSDocNullableType=function(e){return 277===e.kind},e.isJSDocNonNullableType=function(e){return 278===e.kind},e.isJSDocOptionalType=function(e){return 279===e.kind},e.isJSDocFunctionType=function(e){return 280===e.kind},e.isJSDocVariadicType=function(e){return 281===e.kind},e.isJSDoc=function(e){return 282===e.kind},e.isJSDocAugmentsTag=function(e){return 285===e.kind},e.isJSDocParameterTag=function(e){return 287===e.kind},e.isJSDocReturnTag=function(e){return 288===e.kind},e.isJSDocTypeTag=function(e){return 289===e.kind},e.isJSDocTemplateTag=function(e){return 290===e.kind},e.isJSDocTypedefTag=function(e){return 291===e.kind},e.isJSDocPropertyTag=function(e){return 292===e.kind},e.isJSDocPropertyLikeTag=function(e){return 292===e.kind||287===e.kind},e.isJSDocTypeLiteral=function(e){return 283===e.kind}}(l||(l={})),function(e){function t(e){return e>=145}function n(e){return 8<=e&&e<=13}function r(e){return 13<=e&&e<=16}function i(e){switch(e){case 117:case 120:case 76:case 124:case 79:case 84:case 114:case 112:case 113:case 132:case 115:return!0}return!1}function a(e){return e&&s(e.kind)}function o(e){switch(e){case 232:case 153:case 154:case 155:case 156:case 190:case 191:return!0;default:return!1}}function s(e){switch(e){case 152:case 157:case 158:case 159:case 162:case 280:case 163:return!0;default:return o(e)}}function c(e){switch(e.kind){case 178:case 182:return!0}return!1}function u(e){switch(e.kind){case 179:case 181:return!0}return!1}function l(e){switch(e){case 183:case 184:case 186:case 185:case 253:case 254:case 257:case 187:case 181:case 189:case 182:case 203:case 190:case 71:case 12:case 8:case 9:case 13:case 200:case 86:case 95:case 99:case 101:case 97:case 207:case 208:case 91:return!0;default:return!1}}function _(e){switch(e){case 196:case 197:case 192:case 193:case 194:case 195:case 188:return!0;default:return l(e)}}function d(t){return function(e){switch(e){case 199:case 201:case 191:case 198:case 202:case 206:case 204:case 296:case 295:return!0;default:return _(e)}}(e.skipPartiallyEmittedExpressions(t).kind)}function p(e){return 295===e.kind}function f(e){return 294===e.kind}function m(e){return 232===e||251===e||233===e||234===e||235===e||236===e||237===e||242===e||241===e||248===e||247===e||240===e}function g(e){return 222===e||221===e||229===e||216===e||214===e||213===e||219===e||220===e||218===e||215===e||226===e||223===e||225===e||227===e||228===e||212===e||217===e||224===e||294===e||298===e||297===e}function y(e){return e.kind>=284&&e.kind<=292}function h(e){return!!e.initializer}e.isSyntaxList=function(e){return 293===e.kind},e.isNode=function(e){return t(e.kind)},e.isNodeKind=t,e.isToken=function(e){return e.kind>=0&&e.kind<=144},e.isNodeArray=function(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")},e.isLiteralKind=n,e.isLiteralExpression=function(e){return n(e.kind)},e.isTemplateLiteralKind=r,e.isTemplateMiddleOrTemplateTail=function(e){var t=e.kind;return 15===t||16===t},e.isStringTextContainingNode=function(e){return 9===e.kind||r(e.kind)},e.isGeneratedIdentifier=function(t){return e.isIdentifier(t)&&(7&t.autoGenerateFlags)>0},e.isModifierKind=i,e.isModifier=function(e){return i(e.kind)},e.isEntityName=function(e){var t=e.kind;return 145===t||71===t},e.isPropertyName=function(e){var t=e.kind;return 71===t||9===t||8===t||146===t},e.isBindingName=function(e){var t=e.kind;return 71===t||178===t||179===t},e.isFunctionLike=a,e.isFunctionLikeDeclaration=function(e){return e&&o(e.kind)},e.isFunctionLikeKind=s,e.isFunctionOrModuleBlock=function(t){return e.isSourceFile(t)||e.isModuleBlock(t)||e.isBlock(t)&&a(t.parent)},e.isClassElement=function(e){var t=e.kind;return 154===t||151===t||153===t||155===t||156===t||159===t||210===t||251===t},e.isClassLike=function(e){return e&&(233===e.kind||203===e.kind)},e.isAccessor=function(e){return e&&(155===e.kind||156===e.kind)},e.isMethodOrAccessor=function(e){switch(e.kind){case 153:case 155:case 156:return!0;default:return!1}},e.isTypeElement=function(e){var t=e.kind;return 158===t||157===t||150===t||152===t||159===t||251===t},e.isObjectLiteralElementLike=function(e){var t=e.kind;return 268===t||269===t||270===t||153===t||155===t||156===t||251===t},e.isTypeNode=function(e){return(t=e.kind)>=160&&t<=177||119===t||134===t||135===t||122===t||137===t||138===t||99===t||105===t||140===t||95===t||131===t||205===t||275===t||276===t||277===t||278===t||279===t||280===t||281===t;var t},e.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 162:case 163:return!0}return!1},e.isBindingPattern=function(e){if(e){var t=e.kind;return 179===t||178===t}return!1},e.isAssignmentPattern=function(e){var t=e.kind;return 181===t||182===t},e.isArrayBindingElement=function(e){var t=e.kind;return 180===t||204===t},e.isDeclarationBindingElement=function(e){switch(e.kind){case 230:case 148:case 180:return!0}return!1},e.isBindingOrAssignmentPattern=function(e){return c(e)||u(e)},e.isObjectBindingOrAssignmentPattern=c,e.isArrayBindingOrAssignmentPattern=u,e.isPropertyAccessOrQualifiedName=function(e){var t=e.kind;return 183===t||145===t},e.isCallLikeExpression=function(e){switch(e.kind){case 255:case 254:case 185:case 186:case 187:case 149:return!0;default:return!1}},e.isCallOrNewExpression=function(e){return 185===e.kind||186===e.kind},e.isTemplateLiteral=function(e){var t=e.kind;return 200===t||13===t},e.isLeftHandSideExpression=function(t){return l(e.skipPartiallyEmittedExpressions(t).kind)},e.isUnaryExpression=function(t){return _(e.skipPartiallyEmittedExpressions(t).kind)},e.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 197:return!0;case 196:return 43===e.operator||44===e.operator;default:return!1}},e.isExpression=d,e.isAssertionExpression=function(e){var t=e.kind;return 188===t||206===t},e.isPartiallyEmittedExpression=p,e.isNotEmittedStatement=f,e.isNotEmittedOrPartiallyEmittedNode=function(e){return f(e)||p(e)},e.isIterationStatement=function e(t,n){switch(t.kind){case 218:case 219:case 220:case 216:case 217:return!0;case 226:return n&&e(t.statement,n)}return!1},e.isForInOrOfStatement=function(e){return 219===e.kind||220===e.kind},e.isConciseBody=function(t){return e.isBlock(t)||d(t)},e.isFunctionBody=function(t){return e.isBlock(t)},e.isForInitializer=function(t){return e.isVariableDeclarationList(t)||d(t)},e.isModuleBody=function(e){var t=e.kind;return 238===t||237===t||71===t},e.isNamespaceBody=function(e){var t=e.kind;return 238===t||237===t},e.isJSDocNamespaceBody=function(e){var t=e.kind;return 71===t||237===t},e.isNamedImportBindings=function(e){var t=e.kind;return 245===t||244===t},e.isModuleOrEnumDeclaration=function(e){return 237===e.kind||236===e.kind},e.isDeclaration=function(t){return 147===t.kind?290!==t.parent.kind||e.isInJavaScriptFile(t):191===(n=t.kind)||180===n||233===n||203===n||154===n||236===n||271===n||250===n||232===n||190===n||155===n||243===n||241===n||246===n||234===n||260===n||153===n||152===n||237===n||240===n||244===n||148===n||268===n||151===n||150===n||156===n||269===n||235===n||147===n||230===n||291===n;var n},e.isDeclarationStatement=function(e){return m(e.kind)},e.isStatementButNotDeclaration=function(e){return g(e.kind)},e.isStatement=function(t){var n=t.kind;return g(n)||m(n)||function(t){return 211===t.kind&&(void 0===t.parent||228!==t.parent.kind&&267!==t.parent.kind)&&!e.isFunctionBlock(t)}(t)},e.isModuleReference=function(e){var t=e.kind;return 252===t||145===t||71===t},e.isJsxTagNameExpression=function(e){var t=e.kind;return 99===t||71===t||183===t},e.isJsxChild=function(e){var t=e.kind;return 253===t||263===t||254===t||10===t||257===t},e.isJsxAttributeLike=function(e){var t=e.kind;return 260===t||262===t},e.isStringLiteralOrJsxExpression=function(e){var t=e.kind;return 9===t||263===t},e.isJsxOpeningLikeElement=function(e){var t=e.kind;return 255===t||254===t},e.isCaseOrDefaultClause=function(e){var t=e.kind;return 264===t||265===t},e.isJSDocNode=function(e){return e.kind>=274&&e.kind<=292},e.isJSDocCommentContainingNode=function(t){return 282===t.kind||y(t)||e.isJSDocTypeLiteral(t)},e.isJSDocTag=y,e.isSetAccessor=function(e){return 156===e.kind},e.isGetAccessor=function(e){return 155===e.kind},e.hasJSDocNodes=function(e){return!!e.jsDoc&&e.jsDoc.length>0},e.hasType=function(e){return!!e.type},e.hasInitializer=h,e.hasOnlyExpressionInitializer=function(t){return h(t)&&!e.isForStatement(t)&&!e.isForInStatement(t)&&!e.isForOfStatement(t)&&!e.isJsxAttribute(t)},e.isObjectLiteralElement=function(e){switch(e.kind){case 260:case 262:case 268:case 269:case 153:case 155:case 156:return!0;default:return!1}},e.isTypeReferenceType=function(e){return 161===e.kind||205===e.kind},e.isStringLiteralLike=function(e){return 9===e.kind||13===e.kind}}(l||(l={})),function(e){var t,n,r,i,a,o,s;function c(e,t){return t&&e(t)}function u(e,t,n){if(n){if(t)return t(n);for(var r=0,i=n;r<i.length;r++){var a=e(i[r]);if(a)return a}}}function l(e,t,n){if(e&&!(e.kind<=144))switch(e.kind){case 145:return c(t,e.left)||c(t,e.right);case 147:return c(t,e.name)||c(t,e.constraint)||c(t,e.default)||c(t,e.expression);case 269:return u(t,n,e.decorators)||u(t,n,e.modifiers)||c(t,e.name)||c(t,e.questionToken)||c(t,e.equalsToken)||c(t,e.objectAssignmentInitializer);case 270:return c(t,e.expression);case 148:return u(t,n,e.decorators)||u(t,n,e.modifiers)||c(t,e.dotDotDotToken)||c(t,e.name)||c(t,e.questionToken)||c(t,e.type)||c(t,e.initializer);case 151:return u(t,n,e.decorators)||u(t,n,e.modifiers)||c(t,e.name)||c(t,e.questionToken)||c(t,e.exclamationToken)||c(t,e.type)||c(t,e.initializer);case 150:return u(t,n,e.decorators)||u(t,n,e.modifiers)||c(t,e.name)||c(t,e.questionToken)||c(t,e.type)||c(t,e.initializer);case 268:return u(t,n,e.decorators)||u(t,n,e.modifiers)||c(t,e.name)||c(t,e.questionToken)||c(t,e.initializer);case 230:return u(t,n,e.decorators)||u(t,n,e.modifiers)||c(t,e.name)||c(t,e.exclamationToken)||c(t,e.type)||c(t,e.initializer);case 180:return u(t,n,e.decorators)||u(t,n,e.modifiers)||c(t,e.dotDotDotToken)||c(t,e.propertyName)||c(t,e.name)||c(t,e.initializer);case 162:case 163:case 157:case 158:case 159:return u(t,n,e.decorators)||u(t,n,e.modifiers)||u(t,n,e.typeParameters)||u(t,n,e.parameters)||c(t,e.type);case 153:case 152:case 154:case 155:case 156:case 190:case 232:case 191:return u(t,n,e.decorators)||u(t,n,e.modifiers)||c(t,e.asteriskToken)||c(t,e.name)||c(t,e.questionToken)||u(t,n,e.typeParameters)||u(t,n,e.parameters)||c(t,e.type)||c(t,e.equalsGreaterThanToken)||c(t,e.body);case 161:return c(t,e.typeName)||u(t,n,e.typeArguments);case 160:return c(t,e.parameterName)||c(t,e.type);case 164:return c(t,e.exprName);case 165:return u(t,n,e.members);case 166:return c(t,e.elementType);case 167:return u(t,n,e.elementTypes);case 168:case 169:return u(t,n,e.types);case 170:return c(t,e.checkType)||c(t,e.extendsType)||c(t,e.trueType)||c(t,e.falseType);case 171:return c(t,e.typeParameter);case 172:case 174:return c(t,e.type);case 175:return c(t,e.objectType)||c(t,e.indexType);case 176:return c(t,e.readonlyToken)||c(t,e.typeParameter)||c(t,e.questionToken)||c(t,e.type);case 177:return c(t,e.literal);case 178:case 179:case 181:return u(t,n,e.elements);case 182:return u(t,n,e.properties);case 183:return c(t,e.expression)||c(t,e.name);case 184:return c(t,e.expression)||c(t,e.argumentExpression);case 185:case 186:return c(t,e.expression)||u(t,n,e.typeArguments)||u(t,n,e.arguments);case 187:return c(t,e.tag)||c(t,e.template);case 188:return c(t,e.type)||c(t,e.expression);case 189:case 192:case 193:case 194:return c(t,e.expression);case 196:return c(t,e.operand);case 201:return c(t,e.asteriskToken)||c(t,e.expression);case 195:return c(t,e.expression);case 197:return c(t,e.operand);case 198:return c(t,e.left)||c(t,e.operatorToken)||c(t,e.right);case 206:return c(t,e.expression)||c(t,e.type);case 207:return c(t,e.expression);case 208:return c(t,e.name);case 199:return c(t,e.condition)||c(t,e.questionToken)||c(t,e.whenTrue)||c(t,e.colonToken)||c(t,e.whenFalse);case 202:return c(t,e.expression);case 211:case 238:return u(t,n,e.statements);case 272:return u(t,n,e.statements)||c(t,e.endOfFileToken);case 212:return u(t,n,e.decorators)||u(t,n,e.modifiers)||c(t,e.declarationList);case 231:return u(t,n,e.declarations);case 214:return c(t,e.expression);case 215:return c(t,e.expression)||c(t,e.thenStatement)||c(t,e.elseStatement);case 216:return c(t,e.statement)||c(t,e.expression);case 217:return c(t,e.expression)||c(t,e.statement);case 218:return c(t,e.initializer)||c(t,e.condition)||c(t,e.incrementor)||c(t,e.statement);case 219:return c(t,e.initializer)||c(t,e.expression)||c(t,e.statement);case 220:return c(t,e.awaitModifier)||c(t,e.initializer)||c(t,e.expression)||c(t,e.statement);case 221:case 222:return c(t,e.label);case 223:return c(t,e.expression);case 224:return c(t,e.expression)||c(t,e.statement);case 225:return c(t,e.expression)||c(t,e.caseBlock);case 239:return u(t,n,e.clauses);case 264:return c(t,e.expression)||u(t,n,e.statements);case 265:return u(t,n,e.statements);case 226:return c(t,e.label)||c(t,e.statement);case 227:return c(t,e.expression);case 228:return c(t,e.tryBlock)||c(t,e.catchClause)||c(t,e.finallyBlock);case 267:return c(t,e.variableDeclaration)||c(t,e.block);case 149:return c(t,e.expression);case 233:case 203:case 234:return u(t,n,e.decorators)||u(t,n,e.modifiers)||c(t,e.name)||u(t,n,e.typeParameters)||u(t,n,e.heritageClauses)||u(t,n,e.members);case 235:return u(t,n,e.decorators)||u(t,n,e.modifiers)||c(t,e.name)||u(t,n,e.typeParameters)||c(t,e.type);case 236:return u(t,n,e.decorators)||u(t,n,e.modifiers)||c(t,e.name)||u(t,n,e.members);case 271:return c(t,e.name)||c(t,e.initializer);case 237:return u(t,n,e.decorators)||u(t,n,e.modifiers)||c(t,e.name)||c(t,e.body);case 241:return u(t,n,e.decorators)||u(t,n,e.modifiers)||c(t,e.name)||c(t,e.moduleReference);case 242:return u(t,n,e.decorators)||u(t,n,e.modifiers)||c(t,e.importClause)||c(t,e.moduleSpecifier);case 243:return c(t,e.name)||c(t,e.namedBindings);case 240:case 244:return c(t,e.name);case 245:case 249:return u(t,n,e.elements);case 248:return u(t,n,e.decorators)||u(t,n,e.modifiers)||c(t,e.exportClause)||c(t,e.moduleSpecifier);case 246:case 250:return c(t,e.propertyName)||c(t,e.name);case 247:return u(t,n,e.decorators)||u(t,n,e.modifiers)||c(t,e.expression);case 200:return c(t,e.head)||u(t,n,e.templateSpans);case 209:return c(t,e.expression)||c(t,e.literal);case 146:return c(t,e.expression);case 266:return u(t,n,e.types);case 205:return c(t,e.expression)||u(t,n,e.typeArguments);case 252:return c(t,e.expression);case 251:return u(t,n,e.decorators);case 296:return u(t,n,e.elements);case 253:return c(t,e.openingElement)||u(t,n,e.children)||c(t,e.closingElement);case 257:return c(t,e.openingFragment)||u(t,n,e.children)||c(t,e.closingFragment);case 254:case 255:return c(t,e.tagName)||c(t,e.attributes);case 261:return u(t,n,e.properties);case 260:return c(t,e.name)||c(t,e.initializer);case 262:return c(t,e.expression);case 263:return c(t,e.dotDotDotToken)||c(t,e.expression);case 256:return c(t,e.tagName);case 274:case 278:case 277:case 279:return c(t,e.type);case 280:return u(t,n,e.parameters)||c(t,e.type);case 281:return c(t,e.type);case 282:return u(t,n,e.tags);case 287:case 292:return e.isNameFirst?c(t,e.name)||c(t,e.typeExpression):c(t,e.typeExpression)||c(t,e.name);case 288:case 289:return c(t,e.typeExpression);case 285:return c(t,e.class);case 290:return u(t,n,e.typeParameters);case 291:return e.typeExpression&&274===e.typeExpression.kind?c(t,e.typeExpression)||c(t,e.fullName):c(t,e.fullName)||c(t,e.typeExpression);case 283:if(e.jsDocPropertyTags)for(var r=0,i=e.jsDocPropertyTags;r<i.length;r++)c(t,i[r]);return;case 295:return c(t,e.expression)}}function _(t,n){for(var r=e.createScanner(t.languageVersion,!1,0,n),i=[];;){var a=r.scan();if(!e.isTrivia(a))break;var o={kind:r.getToken(),pos:r.getTokenPos(),end:r.getTextPos()};y(i,o,n.substring(o.pos,o.end))}t.pragmas=e.createMap();for(var s=0,c=i;s<c.length;s++){var u=c[s];if(t.pragmas.has(u.name)){var l=t.pragmas.get(u.name);l instanceof Array?l.push(u.args):t.pragmas.set(u.name,[l,u.args])}else t.pragmas.set(u.name,u.args)}}function d(t,n){t.checkJsDirective=void 0,t.referencedFiles=[],t.typeReferenceDirectives=[],t.amdDependencies=[],t.hasNoDefaultLib=!1,t.pragmas.forEach(function(r,i){switch(i){case"reference":var a=t.referencedFiles,o=t.typeReferenceDirectives;e.forEach(e.toArray(r),function(r){r.arguments["no-default-lib"]?t.hasNoDefaultLib=!0:r.arguments.types?o.push({pos:r.arguments.types.pos,end:r.arguments.types.end,fileName:r.arguments.types.value}):r.arguments.path?a.push({pos:r.arguments.path.pos,end:r.arguments.path.end,fileName:r.arguments.path.value}):n(r.range.pos,r.range.end-r.range.pos,e.Diagnostics.Invalid_reference_directive_syntax)});break;case"amd-dependency":t.amdDependencies=e.map(e.toArray(r),function(e){var t=e.arguments;return{name:t.name,path:t.path}});break;case"amd-module":if(r instanceof Array)for(var s=0,c=r;s<c.length;s++){var u=c[s];t.moduleName&&n(u.range.pos,u.range.end-u.range.pos,e.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments),t.moduleName=u.arguments.name}else t.moduleName=r.arguments.name;break;case"ts-nocheck":case"ts-check":e.forEach(e.toArray(r),function(e){(!t.checkJsDirective||e.range.pos>t.checkJsDirective.pos)&&(t.checkJsDirective={enabled:"ts-check"===i,end:e.range.end,pos:e.range.pos})});break;case"jsx":return;default:e.Debug.fail("Unhandled pragma kind")}})}!function(e){e[e.None=0]="None",e[e.Yield=1]="Yield",e[e.Await=2]="Await",e[e.Type=4]="Type",e[e.RequireCompleteParameterList=8]="RequireCompleteParameterList",e[e.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",e[e.JSDoc=32]="JSDoc"}(t||(t={})),e.createNode=function(t,o,s){return 272===t?new(a||(a=e.objectAllocator.getSourceFileConstructor()))(t,o,s):71===t?new(i||(i=e.objectAllocator.getIdentifierConstructor()))(t,o,s):e.isNodeKind(t)?new(n||(n=e.objectAllocator.getNodeConstructor()))(t,o,s):new(r||(r=e.objectAllocator.getTokenConstructor()))(t,o,s)},e.forEachChild=l,e.createSourceFile=function(t,n,r,i,a){void 0===i&&(i=!1),e.performance.mark("beforeParse");var s=o.parseSourceFile(t,n,r,void 0,i,a);return e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),s},e.parseIsolatedEntityName=function(e,t){return o.parseIsolatedEntityName(e,t)},e.parseJsonText=function(e,t){return o.parseJsonText(e,t)},e.isExternalModule=function(e){return void 0!==e.externalModuleIndicator},e.updateSourceFile=function(e,t,n,r){var i=s.updateSourceFile(e,t,n,r);return i.flags|=524288&e.flags,i},e.parseIsolatedJSDocComment=function(e,t,n){var r=o.JSDocParser.parseIsolatedJSDocComment(e,t,n);return r&&r.jsDoc&&o.fixupParentReferences(r.jsDoc),r},e.parseJSDocTypeExpressionForTests=function(e,t,n){return o.JSDocParser.parseJSDocTypeExpressionForTests(e,t,n)},function(t){var n,r,i,a,o,s,c,u,p,f,m,g,y,h,v,b,x,k=e.createScanner(6,!0),S=10240,D=!1;function C(e){return 4===e||2===e||1===e||6===e?1:0}function T(t,o,u,l){switch(n=e.objectAllocator.getNodeConstructor(),r=e.objectAllocator.getTokenConstructor(),i=e.objectAllocator.getIdentifierConstructor(),a=e.objectAllocator.getSourceFileConstructor(),p=t,c=u,s=[],y=0,m=e.createMap(),g=0,f=0,l){case 1:case 2:case 6:h=65536;break;default:h=0}D=!1,k.setText(p),k.setOnError(G),k.setScriptTarget(o),k.setLanguageVariant(C(l))}function E(){k.setText(""),k.setOnError(void 0),s=void 0,o=void 0,m=void 0,c=void 0,p=void 0}function N(t,n,r,i){var a=function(t){return e.fileExtensionIs(t,".d.ts")}(t);return a&&(h|=2097152),(o=w(t,n,i,a)).flags=h,Y(),_(o,p),d(o,function(t,n,r){s.push(e.createFileDiagnostic(o,t,n,r))}),o.statements=Re(0,Dn),e.Debug.assert(1===Q()),o.endOfFileToken=A(ue()),function(t){t.externalModuleIndicator=e.forEach(t.statements,function(t){return e.hasModifier(t,1)||241===t.kind&&252===t.moduleReference.kind||242===t.kind||247===t.kind||248===t.kind?t:void 0})}(o),o.nodeCount=f,o.identifierCount=g,o.identifiers=m,o.parseDiagnostics=s,r&&P(o),o}function A(t){var n=e.getJSDocCommentRanges(t,o.text);if(n)for(var r=0,i=n;r<i.length;r++){var a=i[r];t.jsDoc=e.append(t.jsDoc,x.parseJSDocComment(t,a.pos,a.end-a.pos))}return t}function P(t){var n=t;l(t,function t(r){if(r.parent!==n){r.parent=n;var i=n;if(n=r,l(r,t),e.hasJSDocNodes(r))for(var a=0,o=r.jsDoc;a<o.length;a++){var s=o[a];s.parent=r,n=s,l(s,t)}n=i}})}function w(t,n,r,i){var o=new a(272,0,p.length);return f++,o.text=p,o.bindDiagnostics=[],o.languageVersion=n,o.fileName=e.normalizePath(t),o.languageVariant=C(r),o.isDeclarationFile=i,o.scriptKind=r,o}function F(e,t){e?h|=t:h&=~t}function I(e){F(e,2048)}function O(e){F(e,4096)}function M(e){F(e,8192)}function L(e){F(e,16384)}function R(e,t){var n=e&h;if(n){F(!1,n);var r=t();return F(!0,n),r}return t()}function B(e,t){var n=e&~h;if(n){F(!0,n);var r=t();return F(!1,n),r}return t()}function z(e){return R(2048,e)}function j(e){return B(16384,e)}function J(e){return 0!=(h&e)}function K(){return J(4096)}function U(){return J(2048)}function V(){return J(8192)}function q(){return J(16384)}function W(e,t){var n=k.getTokenPos();H(n,k.getTextPos()-n,e,t)}function H(t,n,r,i){var a=e.lastOrUndefined(s);a&&t===a.start||s.push(e.createFileDiagnostic(o,t,n,r,i)),D=!0}function G(e,t){H(k.getTextPos(),t||0,e)}function X(){return k.getStartPos()}function Q(){return u}function Y(){return u=k.scan()}function $(){return u=k.reScanGreaterToken()}function Z(){return u=k.scanJsxIdentifier()}function ee(){return u=k.scanJsxToken()}function te(t,n){var r=u,i=s.length,a=D,o=h,c=n?k.lookAhead(t):k.tryScan(t);return e.Debug.assert(o===h),c&&!n||(u=r,s.length=i,D=a),c}function ne(e){return te(e,!0)}function re(e){return te(e,!1)}function ie(){return 71===Q()||(116!==Q()||!K())&&(121!==Q()||!q())&&Q()>107}function ae(t,n,r){return void 0===r&&(r=!0),Q()===t?(r&&Y(),!0):(n?W(n):W(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function oe(e){return Q()===e&&(Y(),!0)}function se(e){if(Q()===e)return ue()}function ce(t,n,r){return se(t)||ge(t,!1,n||e.Diagnostics._0_expected,r||e.tokenToString(t))}function ue(){var e=de(Q());return Y(),me(e)}function le(){return 25===Q()||18===Q()||1===Q()||k.hasPrecedingLineBreak()}function _e(){return le()?(25===Q()&&Y(),!0):ae(25)}function de(t,a){f++;var o=a>=0?a:k.getStartPos();return e.isNodeKind(t)||0===t?new n(t,o,o):71===t?new i(t,o,o):new r(t,o,o)}function pe(e){var t=de(e);return 2&k.getTokenFlags()&&A(t),t}function fe(e,t,n){var r=e.length,i=r>=1&&r<=4?e.slice():e;return i.pos=t,i.end=void 0===n?k.getStartPos():n,i}function me(e,t){return e.end=void 0===t?k.getStartPos():t,h&&(e.flags|=h),D&&(D=!1,e.flags|=32768),e}function ge(t,n,r,i){n?H(k.getStartPos(),0,r,i):W(r,i);var a=de(t);return 71===t?a.escapedText="":(e.isLiteralKind(t)||e.isTemplateLiteralKind(t))&&(a.text=""),me(a)}function ye(e){var t=m.get(e);return void 0===t&&m.set(e,t=e),t}function he(t,n){if(g++,t){var r=de(71);return 71!==Q()&&(r.originalKeywordKind=Q()),r.escapedText=e.escapeLeadingUnderscores(ye(k.getTokenValue())),Y(),me(r)}return ge(71,1===Q(),n||e.Diagnostics.Identifier_expected)}function ve(e){return he(ie(),e)}function be(t){return he(e.tokenIsIdentifierOrKeyword(Q()),t)}function xe(){return e.tokenIsIdentifierOrKeyword(Q())||9===Q()||8===Q()}function ke(){return function(e){if(9===Q()||8===Q()){var t=Xe();return t.text=ye(t.text),t}return 21===Q()?function(){var e=de(146);return ae(21),e.expression=z(It),ae(22),me(e)}():be()}()}function Se(e){return Q()===e&&re(Ce)}function De(){return Y(),!k.hasPrecedingLineBreak()&&Te()}function Ce(){return 76===Q()?83===Y():84===Q()?(Y(),79===Q()?ne(Ee):39!==Q()&&118!==Q()&&17!==Q()&&Te()):79===Q()?Ee():115===Q()?(Y(),Te()):De()}function Te(){return 21===Q()||17===Q()||39===Q()||24===Q()||xe()}function Ee(){return Y(),75===Q()||89===Q()||109===Q()||117===Q()&&ne(yn)||120===Q()&&ne(hn)}function Ne(t,n){if(ze(t))return!0;switch(t){case 0:case 1:case 3:return!(25===Q()&&n)&&kn();case 2:return 73===Q()||79===Q();case 4:return ne(lt);case 5:return ne(Un)||25===Q()&&!n;case 6:return 21===Q()||xe();case 12:return 21===Q()||39===Q()||24===Q()||xe();case 17:return xe();case 9:return 21===Q()||24===Q()||xe();case 7:return 17===Q()?ne(Ae):n?ie()&&!Ie():wt()&&!Ie();case 8:return wn();case 10:return 26===Q()||24===Q()||wn();case 18:return ie();case 15:if(26===Q())return!0;case 11:return 24===Q()||Ft();case 16:return nt();case 19:case 20:return 26===Q()||vt();case 21:return er();case 22:return e.tokenIsIdentifierOrKeyword(Q());case 13:return e.tokenIsIdentifierOrKeyword(Q())||17===Q();case 14:return!0}e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function Ae(){if(e.Debug.assert(17===Q()),18===Y()){var t=Y();return 26===t||17===t||85===t||108===t}return!0}function Pe(){return Y(),ie()}function we(){return Y(),e.tokenIsIdentifierOrKeyword(Q())}function Fe(){return Y(),e.tokenIsIdentifierOrKeywordOrGreaterThan(Q())}function Ie(){return(108===Q()||85===Q())&&ne(Oe)}function Oe(){return Y(),Ft()}function Me(){return Y(),vt()}function Le(e){if(1===Q())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 22:return 18===Q();case 3:return 18===Q()||73===Q()||79===Q();case 7:return 17===Q()||85===Q()||108===Q();case 8:return!!le()||!!Ut(Q())||36===Q();case 18:return 29===Q()||19===Q()||17===Q()||85===Q()||108===Q();case 11:return 20===Q()||25===Q();case 15:case 20:case 10:return 22===Q();case 16:case 17:return 20===Q()||22===Q();case 19:return 26!==Q();case 21:return 17===Q()||18===Q();case 13:return 29===Q()||41===Q();case 14:return 27===Q()&&ne(ar)}}function Re(e,t){var n=y;y|=1<<e;for(var r=[],i=X();!Le(e);)if(Ne(e,!1)){var a=Be(e,t);r.push(a)}else if(je(e))break;return y=n,fe(r,i)}function Be(e,t){var n=ze(e);return n?function(e){return k.setTextPos(e.end),Y(),e}(n):t()}function ze(t){if(!D&&c){var n=c.currentNode(k.getStartPos());if(!e.nodeIsMissing(n)&&!n.intersectsChange&&!e.containsParseError(n)&&(6387712&n.flags)===h&&function(e,t){switch(t){case 5:return function(e){if(e)switch(e.kind){case 154:case 159:case 155:case 156:case 151:case 210:return!0;case 153:return!(71===e.name.kind&&123===e.name.originalKeywordKind)}return!1}(e);case 2:return function(e){if(e)switch(e.kind){case 264:case 265:return!0}return!1}(e);case 0:case 1:case 3:return function(e){if(e)switch(e.kind){case 232:case 212:case 211:case 215:case 214:case 227:case 223:case 225:case 222:case 221:case 219:case 220:case 218:case 217:case 224:case 213:case 228:case 226:case 216:case 229:case 242:case 241:case 248:case 247:case 237:case 233:case 234:case 236:case 235:return!0}return!1}(e);case 6:return function(e){return 271===e.kind}(e);case 4:return function(e){if(e)switch(e.kind){case 158:case 152:case 159:case 150:case 157:return!0}return!1}(e);case 8:return function(e){return 230===e.kind&&void 0===e.initializer}(e);case 16:return function(e){return 148===e.kind&&void 0===e.initializer}(e);case 17:return!1}return!1}(n,t))return n.jsDocCache&&(n.jsDocCache=void 0),n}}function je(t){return W(function(n){switch(t){case 0: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:case 13:case 14:return e.Diagnostics.Identifier_expected}}()),!!function(){for(var e=0;e<23;e++)if(y&1<<e&&(Ne(e,!0)||Le(e)))return!0;return!1}()||(Y(),!1)}function Je(e,t,n){var r=y;y|=1<<e;for(var i=[],a=X(),o=-1;;)if(Ne(e,!1)){var s=k.getStartPos();if(i.push(Be(e,t)),o=k.getTokenPos(),oe(26))continue;if(o=-1,Le(e))break;ae(26),n&&25===Q()&&!k.hasPrecedingLineBreak()&&Y(),s===k.getStartPos()&&Y()}else{if(Le(e))break;if(je(e))break}y=r;var c=fe(i,a);return o>=0&&(c.hasTrailingComma=!0),c}function Ke(){return fe([],X())}function Ue(e,t,n,r){if(ae(n)){var i=Je(e,t);return ae(r),i}return Ke()}function Ve(e,t){for(var n=e?be(t):ve(t),r=k.getStartPos();oe(23);){if(27===Q()){n.jsdocDotPos=r;break}r=k.getStartPos(),n=qe(n,We(e))}return n}function qe(e,t){var n=de(145,e.pos);return n.left=e,n.right=t,me(n)}function We(t){return k.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(Q())&&ne(gn)?ge(71,!0,e.Diagnostics.Identifier_expected):t?be():ve()}function He(){var t,n=de(200);n.head=(t=Qe(Q()),e.Debug.assert(14===t.kind,"Template head has wrong token kind"),t),e.Debug.assert(14===n.head.kind,"Template head has wrong token kind");var r=[],i=X();do{r.push(Ge())}while(15===e.lastOrUndefined(r).literal.kind);return n.templateSpans=fe(r,i),me(n)}function Ge(){var t,n,r=de(209);return r.expression=z(It),18===Q()?(u=k.reScanTemplateToken(),n=Qe(Q()),e.Debug.assert(15===n.kind||16===n.kind,"Template fragment has wrong token kind"),t=n):t=ce(16,e.Diagnostics._0_expected,e.tokenToString(18)),r.literal=t,me(r)}function Xe(){return Qe(Q())}function Qe(e){var t=de(e),n=k.getTokenValue();return t.text=n,k.hasExtendedUnicodeEscape()&&(t.hasExtendedUnicodeEscape=!0),k.isUnterminated()&&(t.isUnterminated=!0),8===t.kind&&(t.numericLiteralFlags=1008&k.getTokenFlags()),Y(),me(t),t}function Ye(){var t=de(161);return t.typeName=Ve(!0,e.Diagnostics.Type_expected),k.hasPrecedingLineBreak()||27!==Q()||(t.typeArguments=Ue(19,Nt,27,29)),me(t)}function $e(){var e=de(148);return 99!==Q()&&94!==Q()||(e.name=be(),ae(56)),e.type=Nt(),me(e)}function Ze(){var e=de(147);return e.name=ve(),oe(85)&&(vt()||!Ft()?e.constraint=Nt():e.expression=Ht()),oe(58)&&(e.default=Nt()),me(e)}function et(){if(27===Q())return Ue(18,Ze,27,29)}function tt(){if(oe(56))return Nt()}function nt(){return 24===Q()||wn()||e.isModifierKind(Q())||57===Q()||vt(!0)}function rt(){var t=pe(148);return 99===Q()?(t.name=he(!0),t.type=tt(),me(t)):(t.decorators=Vn(),t.modifiers=qn(),t.dotDotDotToken=se(24),t.name=Fn(),0===e.getFullWidth(t.name)&&!e.hasModifiers(t)&&e.isModifierKind(Q())&&Y(),t.questionToken=se(55),t.type=tt(),t.initializer=Ot(),me(t))}function it(t,n,r){32&n||(r.typeParameters=et()),r.parameters=function(e){if(ae(19)){var t=K(),n=q();O(!!(1&e)),L(!!(2&e));var r=Je(16,32&e?$e:rt);if(O(t),L(n),!ae(20)&&8&e)return;return r}return 8&e?void 0:Ke()}(n),r.type=function(t,r){return function(t,n){return 36===t?(ae(t),!0):!!oe(56)||!(!n||36!==Q())&&(W(e.Diagnostics._0_expected,e.tokenToString(56)),Y(),!0)}(t,!!(4&n))?function(){var e=ie()&&re(Et),t=Nt();if(e){var n=de(160,e.pos);return n.parameterName=e,n.type=t,me(n)}return t}():void 0}(t)}function at(){oe(26)||_e()}function ot(e){var t=pe(e);return 158===e&&ae(94),it(56,4,t),at(),me(t)}function st(){return 21===Q()&&ne(ct)}function ct(){if(Y(),24===Q()||22===Q())return!0;if(e.isModifierKind(Q())){if(Y(),ie())return!0}else{if(!ie())return!1;Y()}return 56===Q()||26===Q()||55===Q()&&(Y(),56===Q()||26===Q()||22===Q())}function ut(e){return e.kind=159,e.parameters=Ue(16,rt,21,22),e.type=Pt(),at(),me(e)}function lt(){if(19===Q()||27===Q())return!0;for(var t;e.isModifierKind(Q());)t=!0,Y();return 21===Q()||(xe()&&(t=!0,Y()),!!t&&(19===Q()||27===Q()||55===Q()||56===Q()||26===Q()||le()))}function _t(){if(19===Q()||27===Q())return ot(157);if(94===Q()&&ne(dt))return ot(158);var e=pe(0);return e.modifiers=qn(),st()?ut(e):function(e){return e.name=ke(),e.questionToken=se(55),19===Q()||27===Q()?(e.kind=152,it(56,4,e)):(e.kind=150,e.type=Pt(),58===Q()&&(e.initializer=Ot())),at(),me(e)}(e)}function dt(){return Y(),19===Q()||27===Q()}function pt(){var e;return ae(17)?(e=Re(4,_t),ae(18)):e=Ke(),e}function ft(){return Y(),37===Q()||38===Q()?132===Y():(132===Q()&&Y(),21===Q()&&Pe()&&92===Y())}function mt(e){var t=pe(e);return 163===e&&ae(94),it(36,4,t),me(t)}function gt(){var e=ue();return 23===Q()?void 0:e}function yt(e){var t,n=de(177);e&&((t=de(196)).operator=38,Y());var r=101===Q()||86===Q()?ue():Qe(Q());return e&&(t.operand=r,me(t),r=t),n.literal=r,me(n)}function ht(){return 8===Y()}function vt(e){switch(Q()){case 119:case 137:case 134:case 122:case 138:case 141:case 105:case 140:case 95:case 99:case 103:case 131:case 17:case 21:case 27:case 49:case 48:case 94:case 9:case 8:case 101:case 86:case 135:case 39:case 55:case 51:case 24:case 126:return!0;case 38:return!e&&ne(ht);case 19:return!e&&ne(bt);default:return ie()}}function bt(){return Y(),20===Q()||nt()||vt()}function xt(){for(var e=function e(){switch(Q()){case 119:case 137:case 134:case 138:case 122:case 140:case 131:case 135:return re(gt)||Ye();case 39:return r=de(275),Y(),me(r);case 55:return function(){var e,t=k.getStartPos();return Y(),26===Q()||18===Q()||20===Q()||29===Q()||58===Q()||49===Q()?me(e=de(276,t)):((e=de(277,t)).type=Nt(),me(e))}();case 89:return function(){if(ne(ir)){var e=pe(280);return Y(),it(56,36,e),me(e)}var t=de(161);return t.typeName=be(),me(t)}();case 51:return function(t){var n=de(278);return Y(),n.type=e(),me(n)}();case 13:case 9:case 8:case 101:case 86:return yt();case 38:return ne(ht)?yt(!0):Ye();case 105:case 95:return ue();case 99:var t=(n=de(173),Y(),me(n));return 127!==Q()||k.hasPrecedingLineBreak()?t:function(e){Y();var t=de(160,e.pos);return t.parameterName=e,t.type=Nt(),me(t)}(t);case 103:return function(){var e=de(164);return ae(103),e.exprName=Ve(!0),me(e)}();case 17:return ne(ft)?function(){var e=de(176);return ae(17),132!==Q()&&37!==Q()&&38!==Q()||(e.readonlyToken=ue(),132!==e.readonlyToken.kind&&ce(132)),ae(21),e.typeParameter=function(){var e=de(147);return e.name=ve(),ae(92),e.constraint=Nt(),me(e)}(),ae(22),55!==Q()&&37!==Q()&&38!==Q()||(e.questionToken=ue(),55!==e.questionToken.kind&&ce(55)),e.type=Pt(),_e(),ae(18),me(e)}():function(){var e=de(165);return e.members=pt(),me(e)}();case 21:return function(){var e=de(167);return e.elementTypes=Ue(20,Nt,21,22),me(e)}();case 19:return function(){var e=de(172);return ae(19),e.type=Nt(),ae(20),me(e)}();default:return Ye()}var n,r}();!k.hasPrecedingLineBreak();)switch(Q()){case 58:if(!(1048576&h))return e;e=kt(279,e);break;case 51:e=kt(278,e);break;case 55:if(!(1048576&h)&&ne(Me))return e;e=kt(277,e);break;case 21:var t;ae(21),vt()?((t=de(175,e.pos)).objectType=e,t.indexType=Nt(),ae(22),e=me(t)):((t=de(166,e.pos)).elementType=e,ae(22),e=me(t));break;default:return e}return e}function kt(e,t){Y();var n=de(e,t.pos);return n.type=t,me(n)}function St(){var e=Q();switch(e){case 128:case 141:return function(e){var t=de(174);return ae(e),t.operator=e,t.type=St(),me(t)}(e);case 126:return function(){var e=de(171);ae(126);var t=de(147);return t.name=ve(),e.typeParameter=me(t),me(e)}();case 24:var t=de(281);return Y(),t.type=xt(),me(t)}return xt()}function Dt(e,t,n){oe(n);var r=t();if(Q()===n){for(var i=[r];oe(n);)i.push(t());var a=de(e,r.pos);a.types=fe(i,r.pos),r=me(a)}return r}function Ct(){return Dt(169,St,48)}function Tt(){if(Y(),20===Q()||24===Q())return!0;if(function(){if(e.isModifierKind(Q())&&qn(),ie()||99===Q())return Y(),!0;if(21===Q()||17===Q()){var t=s.length;return Fn(),t===s.length}return!1}()){if(56===Q()||26===Q()||55===Q()||58===Q())return!0;if(20===Q()&&(Y(),36===Q()))return!0}return!1}function Et(){var e=ve();if(127===Q()&&!k.hasPrecedingLineBreak())return Y(),e}function Nt(){return R(20480,At)}function At(e){if(27===Q()||19===Q()&&ne(Tt))return mt(162);if(94===Q())return mt(163);var t=Dt(168,Ct,49);if(!e&&!k.hasPrecedingLineBreak()&&oe(85)){var n=de(170,t.pos);return n.checkType=t,n.extendsType=At(!0),ae(55),n.trueType=At(),ae(56),n.falseType=At(),me(n)}return t}function Pt(){return oe(56)?Nt():void 0}function wt(){switch(Q()){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 ne(dt);default:return ie()}}function Ft(){if(wt())return!0;switch(Q()){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!(U()&&92===Q()||!(qt()>0))||ie()}}function It(){var e=V();e&&M(!1);for(var t,n=Mt();t=se(26);)n=Wt(n,t,Mt());return e&&M(!0),n}function Ot(){return oe(58)?Mt():void 0}function Mt(){if(116===Q()&&(K()||ne(vn)))return t=de(201),Y(),k.hasPrecedingLineBreak()||39!==Q()&&!Ft()?me(t):(t.asteriskToken=se(39),t.expression=Mt(),me(t));var t,n=function(){var t=19===Q()||27===Q()||120===Q()?ne(Rt):36===Q()?1:0;if(0!==t){var n=1===t?jt(!0):re(Bt);if(n){var r=e.hasModifier(n,256),i=Q();return n.equalsGreaterThanToken=ce(36),n.body=36===i||17===i?Jt(r):ve(),me(n)}}}()||function(){if(120===Q()&&1===ne(zt)){var e=Wn();return Lt(Kt(0),e)}}();if(n)return n;var r=Kt(0);return 71===r.kind&&36===Q()?Lt(r):e.isLeftHandSideExpression(r)&&e.isAssignmentOperator($())?Wt(r,ue(),Mt()):function(t){var n=se(55);if(!n)return t;var r=de(199,t.pos);return r.condition=t,r.questionToken=n,r.whenTrue=R(S,Mt),r.colonToken=ce(56),r.whenFalse=e.nodeIsPresent(r.colonToken)?Mt():ge(71,!1,e.Diagnostics._0_expected,e.tokenToString(56)),me(r)}(r)}function Lt(t,n){var r;e.Debug.assert(36===Q(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>"),n?(r=de(191,n.pos)).modifiers=n:r=de(191,t.pos);var i=de(148,t.pos);return i.name=t,me(i),r.parameters=fe([i],i.pos,i.end),r.equalsGreaterThanToken=ce(36),r.body=Jt(!!n),A(me(r))}function Rt(){if(120===Q()){if(Y(),k.hasPrecedingLineBreak())return 0;if(19!==Q()&&27!==Q())return 0}var t=Q(),n=Y();if(19===t){if(20===n)switch(Y()){case 36:case 56:case 17:return 1;default:return 0}if(21===n||17===n)return 2;if(24===n)return 1;if(e.isModifierKind(n)&&120!==n&&ne(Pe))return 1;if(!ie())return 0;switch(Y()){case 56:return 1;case 55:return Y(),56===Q()||26===Q()||58===Q()||20===Q()?1:0;case 26:case 58:case 20:return 2}return 0}return e.Debug.assert(27===t),ie()?1===o.languageVariant?ne(function(){var e=Y();if(85===e)switch(Y()){case 58:case 29:return!1;default:return!0}else if(26===e)return!0;return!1})?1:0:2:0}function Bt(){return jt(!1)}function zt(){if(120===Q()){if(Y(),k.hasPrecedingLineBreak()||36===Q())return 0;var e=Kt(0);if(!k.hasPrecedingLineBreak()&&71===e.kind&&36===Q())return 1}return 0}function jt(t){var n=pe(191);if(n.modifiers=Wn(),it(56,(e.hasModifier(n,256)?2:0)|(t?0:8),n),n.parameters&&(t||36===Q()||17===Q()))return n}function Jt(e){return 17===Q()?pn(e?2:0):25===Q()||89===Q()||75===Q()||!kn()||17!==Q()&&89!==Q()&&75!==Q()&&57!==Q()&&Ft()?e?j(Mt):R(16384,Mt):pn(16|(e?2:0))}function Kt(e){return Vt(e,Ht())}function Ut(e){return 92===e||144===e}function Vt(e,t){for(;;){$();var n=qt();if(!(40===Q()?n>=e:n>e))break;if(92===Q()&&U())break;if(118===Q()){if(k.hasPrecedingLineBreak())break;Y(),r=t,i=Nt(),a=void 0,(a=de(206,r.pos)).expression=r,a.type=i,t=me(a)}else t=Wt(t,ue(),Kt(n))}var r,i,a;return t}function qt(){switch(Q()){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 Wt(e,t,n){var r=de(198,e.pos);return r.left=e,r.operatorToken=t,r.right=n,me(r)}function Ht(){if(function(){switch(Q()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 121:return!1;case 27:if(1!==o.languageVariant)return!1;default:return!0}}()){var t=Gt();return 40===Q()?Vt(qt(),t):t}var n=Q(),r=function e(){switch(Q()){case 37:case 38:case 52:case 51:return(t=de(196)).operator=Q(),Y(),t.operand=e(),me(t);case 80:return function(){var t=de(192);return Y(),t.expression=e(),me(t)}();case 103:return function(){var t=de(193);return Y(),t.expression=e(),me(t)}();case 105:return function(){var t=de(194);return Y(),t.expression=e(),me(t)}();case 27:return function(){var t=de(188);return ae(27),t.type=Nt(),ae(29),t.expression=e(),me(t)}();case 121:if(121===Q()&&(q()||ne(vn)))return function(){var t=de(195);return Y(),t.expression=e(),me(t)}();default:return Gt()}var t}();if(40===Q()){var i=e.skipTrivia(p,r.pos);188===r.kind?H(i,r.end-i,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):H(i,r.end-i,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(n))}return r}function Gt(){if(43===Q()||44===Q())return(t=de(196)).operator=Q(),Y(),t.operand=Xt(),me(t);if(1===o.languageVariant&&27===Q()&&ne(Fe))return Qt(!0);var t,n=Xt();return e.Debug.assert(e.isLeftHandSideExpression(n)),43!==Q()&&44!==Q()||k.hasPrecedingLineBreak()?n:((t=de(197,n.pos)).operand=n,t.operator=Q(),Y(),me(t))}function Xt(){var t;return 91===Q()&&ne(dt)?(o.flags|=524288,t=ue()):t=97===Q()?function(){var t=ue();if(19===Q()||23===Q()||21===Q())return t;var n=de(183,t.pos);return n.expression=t,ce(23,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),n.name=We(!0),me(n)}():function t(){return nn(function(){switch(Q()){case 8:case 9:case 13:return Xe();case 99:case 97:case 95:case 101:case 86:return ue();case 19:return n=pe(189),ae(19),n.expression=z(It),ae(20),me(n);case 21:return function(){var e=de(181);return ae(21),k.hasPrecedingLineBreak()&&(e.multiLine=!0),e.elements=Je(15,on),ae(22),me(e)}();case 17:return un();case 120:if(!ne(hn))break;return ln();case 75:return Xn(pe(0),203);case 89:return ln();case 94:return function(){var e=k.getStartPos();if(ae(94),oe(23)){var n=de(208,e);return n.keywordToken=94,n.name=be(),me(n)}var r=de(186,e);return r.expression=t(),r.typeArguments=re(an),(r.typeArguments||19===Q())&&(r.arguments=rn()),me(r)}();case 41:case 63:if(12===(u=k.reScanSlashToken()))return Xe();break;case 14:return He()}var n;return ve(e.Diagnostics.Expression_expected)}())}(),function(e){for(;;)if(e=nn(e),27!==Q()){if(19!==Q())return e;(t=de(185,e.pos)).expression=e,t.arguments=rn(),e=me(t)}else{var t,n=re(an);if(!n)return e;(t=de(185,e.pos)).expression=e,t.typeArguments=n,t.arguments=rn(),e=me(t)}}(t)}function Qt(t){var n,r=function(e){var t=k.getStartPos();if(ae(27),29===Q()){var n=de(258,t);return ee(),me(n)}var r,i,a=Zt(),o=((i=de(261)).properties=Re(13,tn),me(i));return 29===Q()?(r=de(255,t),ee()):(ae(41),e?ae(29):(ae(29,void 0,!1),ee()),r=de(254,t)),r.tagName=a,r.attributes=o,me(r)}(t);if(255===r.kind)(i=de(253,r.pos)).openingElement=r,i.children=$t(i.openingElement),i.closingElement=function(e){var t=de(256);return ae(28),t.tagName=Zt(),e?ae(29):(ae(29,void 0,!1),ee()),me(t)}(t),function e(t,n){return t.kind===n.kind&&(71===t.kind?t.escapedText===n.escapedText:99===t.kind||t.name.escapedText===n.name.escapedText&&e(t.expression,n.expression))}(i.openingElement.tagName,i.closingElement.tagName)||H(i.closingElement.pos,i.closingElement.end-i.closingElement.pos,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(p,i.openingElement.tagName)),n=me(i);else if(258===r.kind){var i;(i=de(257,r.pos)).openingFragment=r,i.children=$t(i.openingFragment),i.closingFragment=function(t){var n=de(259);if(ae(28),e.tokenIsIdentifierOrKeyword(Q())){var r=Zt();H(r.pos,r.end-r.pos,e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment)}return t?ae(29):(ae(29,void 0,!1),ee()),me(n)}(t),n=me(i)}else e.Debug.assert(254===r.kind),n=r;if(t&&27===Q()){var a=re(function(){return Qt(!0)});if(a){W(e.Diagnostics.JSX_expressions_must_have_one_parent_element);var o=de(198,n.pos);return o.end=a.end,o.left=n,o.right=a,o.operatorToken=ge(26,!1,void 0),o.operatorToken.pos=o.operatorToken.end=o.right.pos,o}}return n}function Yt(){switch(Q()){case 10:case 11:return(t=de(10)).containsOnlyWhiteSpaces=11===u,u=k.scanJsxToken(),me(t);case 17:return en(!1);case 27:return Qt(!1)}var t;e.Debug.fail("Unknown JSX child kind "+Q())}function $t(t){var n=[],r=X(),i=y;for(y|=16384;u=k.reScanJsxToken(),28!==Q();){if(1===Q()){if(e.isJsxOpeningFragment(t))H(t.pos,t.end-t.pos,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var a=t.tagName;H(a.pos,a.end-a.pos,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(p,a))}break}if(7===Q())break;var o=Yt();o&&n.push(o)}return y=i,fe(n,r)}function Zt(){Z();for(var e=99===Q()?ue():be();oe(23);){var t=de(183,e.pos);t.expression=e,t.name=We(!0),e=me(t)}return e}function en(e){var t=de(263);if(ae(17))return 18!==Q()&&(t.dotDotDotToken=se(24),t.expression=Mt()),e?ae(18):(ae(18,void 0,!1),ee()),me(t)}function tn(){if(17===Q())return function(){var e=de(262);return ae(17),ae(24),e.expression=It(),ae(18),me(e)}();Z();var e=de(260);if(e.name=be(),58===Q())switch(u=k.scanJsxAttributeValue()){case 9:e.initializer=Xe();break;default:e.initializer=en(!0)}return me(e)}function nn(e){for(;;)if(se(23)){var t=de(183,e.pos);t.expression=e,t.name=We(!0),e=me(t)}else if(51!==Q()||k.hasPrecedingLineBreak())if(V()||!oe(21)){if(13!==Q()&&14!==Q())return e;var n=de(187,e.pos);n.tag=e,n.template=13===Q()?Xe():He(),e=me(n)}else{var r=de(184,e.pos);if(r.expression=e,22!==Q()&&(r.argumentExpression=z(It),9===r.argumentExpression.kind||8===r.argumentExpression.kind)){var i=r.argumentExpression;i.text=ye(i.text)}ae(22),e=me(r)}else{Y();var a=de(207,e.pos);a.expression=e,e=me(a)}}function rn(){ae(19);var e=Je(11,sn);return ae(20),e}function an(){if(oe(27)){var e=Je(19,Nt);if(ae(29))return e&&function(){switch(Q()){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}}()?e:void 0}}function on(){return 24===Q()?(e=de(202),ae(24),e.expression=Mt(),me(e)):26===Q()?de(204):Mt();var e}function sn(){return R(S,on)}function cn(){var e=pe(0);if(se(24))return e.kind=270,e.expression=Mt(),me(e);if(e.decorators=Vn(),e.modifiers=qn(),Se(125))return Jn(e,155);if(Se(136))return Jn(e,156);var t=se(39),n=ie();if(e.name=ke(),e.questionToken=se(55),t||19===Q()||27===Q())return zn(e,t);if(!n||26!==Q()&&18!==Q()&&58!==Q())e.kind=268,ae(56),e.initializer=z(Mt);else{e.kind=269;var r=se(58);r&&(e.equalsToken=r,e.objectAssignmentInitializer=z(Mt))}return me(e)}function un(){var e=de(182);return ae(17),k.hasPrecedingLineBreak()&&(e.multiLine=!0),e.properties=Je(12,cn,!0),ae(18),me(e)}function ln(){var t=V();t&&M(!1);var n=pe(190);n.modifiers=qn(),ae(89),n.asteriskToken=se(39);var r=n.asteriskToken?1:0,i=e.hasModifier(n,256)?2:0;return n.name=r&&i?B(20480,_n):r?B(4096,_n):i?j(_n):_n(),it(56,r|i,n),n.body=pn(r|i),t&&M(!0),me(n)}function _n(){return ie()?ve():void 0}function dn(e,t){var n=de(211);return ae(17,t)||e?(k.hasPrecedingLineBreak()&&(n.multiLine=!0),n.statements=Re(1,Dn),ae(18)):n.statements=Ke(),me(n)}function pn(e,t){var n=K();O(!!(1&e));var r=q();L(!!(2&e));var i=V();i&&M(!1);var a=dn(!!(16&e),t);return i&&M(!0),O(n),L(r),a}function fn(e){var t=de(e);return ae(222===e?72:77),le()||(t.label=ve()),_e(),me(t)}function mn(){return 73===Q()?(e=de(264),ae(73),e.expression=z(It),ae(56),e.statements=Re(3,Dn),me(e)):function(){var e=de(265);return ae(79),ae(56),e.statements=Re(3,Dn),me(e)}();var e}function gn(){return Y(),e.tokenIsIdentifierOrKeyword(Q())&&!k.hasPrecedingLineBreak()}function yn(){return Y(),75===Q()&&!k.hasPrecedingLineBreak()}function hn(){return Y(),89===Q()&&!k.hasPrecedingLineBreak()}function vn(){return Y(),(e.tokenIsIdentifierOrKeyword(Q())||8===Q()||9===Q())&&!k.hasPrecedingLineBreak()}function bn(){for(;;)switch(Q()){case 104:case 110:case 76:case 89:case 75:case 83:return!0;case 109:case 139:return Y(),!k.hasPrecedingLineBreak()&&ie();case 129:case 130:return Y(),!k.hasPrecedingLineBreak()&&(ie()||9===Q());case 117:case 120:case 124:case 112:case 113:case 114:case 132:if(Y(),k.hasPrecedingLineBreak())return!1;continue;case 143:return Y(),17===Q()||71===Q()||84===Q();case 91:return Y(),9===Q()||39===Q()||17===Q()||e.tokenIsIdentifierOrKeyword(Q());case 84:if(Y(),58===Q()||39===Q()||17===Q()||79===Q()||118===Q())return!0;continue;case 115:Y();continue;default:return!1}}function xn(){return ne(bn)}function kn(){switch(Q()){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 xn()||ne(dt);case 76:case 84:return xn();case 120:case 124:case 109:case 129:case 130:case 139:case 143:return!0;case 114:case 112:case 113:case 115:case 132:return xn()||!ne(gn);default:return Ft()}}function Sn(){return Y(),ie()||17===Q()||21===Q()}function Dn(){switch(Q()){case 25:return e=de(213),ae(25),me(e);case 17:return dn(!1);case 104:return Rn(pe(230));case 110:if(ne(Sn))return Rn(pe(230));break;case 89:return Bn(pe(232));case 75:return Gn(pe(233));case 90:return function(){var e=de(215);return ae(90),ae(19),e.expression=z(It),ae(20),e.thenStatement=Dn(),e.elseStatement=oe(82)?Dn():void 0,me(e)}();case 81:return function(){var e=de(216);return ae(81),e.statement=Dn(),ae(106),ae(19),e.expression=z(It),ae(20),oe(25),me(e)}();case 106:return function(){var e=de(217);return ae(106),ae(19),e.expression=z(It),ae(20),e.statement=Dn(),me(e)}();case 88:return function(){var e=X();ae(88);var t,n,r=se(121);if(ae(19),25!==Q()&&(t=104===Q()||110===Q()||76===Q()?Mn(!0):B(2048,It)),r?ae(144):oe(144)){var i=de(220,e);i.awaitModifier=r,i.initializer=t,i.expression=z(Mt),ae(20),n=i}else if(oe(92)){var a=de(219,e);a.initializer=t,a.expression=z(It),ae(20),n=a}else{var o=de(218,e);o.initializer=t,ae(25),25!==Q()&&20!==Q()&&(o.condition=z(It)),ae(25),20!==Q()&&(o.incrementor=z(It)),ae(20),n=o}return n.statement=Dn(),me(n)}();case 77:return fn(221);case 72:return fn(222);case 96:return function(){var e=de(223);return ae(96),le()||(e.expression=z(It)),_e(),me(e)}();case 107:return function(){var e=de(224);return ae(107),ae(19),e.expression=z(It),ae(20),e.statement=B(4194304,Dn),me(e)}();case 98:return function(){var e=de(225);ae(98),ae(19),e.expression=z(It),ae(20);var t=de(239);return ae(17),t.clauses=Re(2,mn),ae(18),e.caseBlock=me(t),me(e)}();case 100:return function(){var e=de(227);return ae(100),e.expression=k.hasPrecedingLineBreak()?void 0:z(It),_e(),me(e)}();case 102:case 74:case 87:return function(){var e,t=de(228);return ae(102),t.tryBlock=dn(!1),t.catchClause=74===Q()?(e=de(267),ae(74),oe(19)?(e.variableDeclaration=On(),ae(20)):e.variableDeclaration=void 0,e.block=dn(!1),me(e)):void 0,t.catchClause&&87!==Q()||(ae(87),t.finallyBlock=dn(!1)),me(t)}();case 78:return function(){var e=de(229);return ae(78),_e(),me(e)}();case 57:return Tn();case 120:case 109:case 139:case 129:case 130:case 124:case 76:case 83:case 84:case 91:case 112:case 113:case 114:case 117:case 115:case 132:case 143:if(xn())return Tn()}var e;return function(){var e=pe(0),t=z(It);return 71===t.kind&&oe(56)?(e.kind=226,e.label=t,e.statement=Dn()):(e.kind=214,e.expression=t,_e()),me(e)}()}function Cn(e){return 124===e.kind}function Tn(){var t=pe(0);if(t.decorators=Vn(),t.modifiers=qn(),e.some(t.modifiers,Cn)){for(var n=0,r=t.modifiers;n<r.length;n++)r[n].flags|=2097152;return B(2097152,function(){return En(t)})}return En(t)}function En(t){switch(Q()){case 104:case 110:case 76:return Rn(t);case 89:return Bn(t);case 75:return Gn(t);case 109:return function(e){return e.kind=234,ae(109),e.name=ve(),e.typeParameters=et(),e.heritageClauses=Qn(),e.members=pt(),me(e)}(t);case 139:return function(e){return e.kind=235,ae(139),e.name=ve(),e.typeParameters=et(),ae(58),e.type=Nt(),_e(),me(e)}(t);case 83:return function(e){return e.kind=236,ae(83),e.name=ve(),ae(17)?(e.members=Je(6,tr),ae(18)):e.members=Ke(),me(e)}(t);case 143:case 129:case 130:return function(e){var t=0;if(143===Q())return rr(e);if(oe(130))t|=16;else if(ae(129),9===Q())return rr(e);return function e(t,n){t.kind=237;var r=16&n;return t.flags|=n,t.name=ve(),t.body=oe(23)?e(de(0),4|r):nr(),me(t)}(e,t)}(t);case 91:return function(e){ae(91);var t,n=k.getStartPos();return ie()&&(t=ve(),26!==Q()&&142!==Q())?function(e,t){return e.kind=241,e.name=t,ae(58),e.moduleReference=function(){return 133===Q()&&ne(ir)?(e=de(252),ae(133),ae(19),e.expression=or(),ae(20),me(e)):Ve(!1);var e}(),_e(),me(e)}(e,t):(e.kind=242,(t||39===Q()||17===Q())&&(e.importClause=function(e,t){var r,i=de(243,n);return e&&(i.name=e),i.name&&!oe(26)||(i.namedBindings=39===Q()?(r=de(244),ae(39),ae(118),r.name=ve(),me(r)):sr(245)),me(i)}(t),ae(142)),e.moduleSpecifier=or(),_e(),me(e))}(t);case 84:switch(Y(),Q()){case 79:case 58:return function(e){return e.kind=247,oe(58)?e.isExportEquals=!0:ae(79),e.expression=Mt(),_e(),me(e)}(t);case 118:return function(e){return e.kind=240,ae(118),ae(130),e.name=ve(),_e(),me(e)}(t);default:return function(e){return e.kind=248,oe(39)?(ae(142),e.moduleSpecifier=or()):(e.exportClause=sr(249),(142===Q()||9===Q()&&!k.hasPrecedingLineBreak())&&(ae(142),e.moduleSpecifier=or())),_e(),me(e)}(t)}default:if(t.decorators||t.modifiers){var n=ge(251,!0,e.Diagnostics.Declaration_expected);return n.pos=t.pos,n.decorators=t.decorators,n.modifiers=t.modifiers,me(n)}}}function Nn(e,t){if(17===Q()||!le())return pn(e,t);_e()}function An(){if(26===Q())return de(204);var e=de(180);return e.dotDotDotToken=se(24),e.name=Fn(),e.initializer=Ot(),me(e)}function Pn(){var e=de(180);e.dotDotDotToken=se(24);var t=ie(),n=ke();return t&&56!==Q()?e.name=n:(ae(56),e.propertyName=n,e.name=Fn()),e.initializer=Ot(),me(e)}function wn(){return 17===Q()||21===Q()||ie()}function Fn(){return 21===Q()?(e=de(179),ae(21),e.elements=Je(10,An),ae(22),me(e)):17===Q()?function(){var e=de(178);return ae(17),e.elements=Je(9,Pn),ae(18),me(e)}():ve();var e}function In(){return On(!0)}function On(e){var t=de(230);return t.name=Fn(),e&&71===t.name.kind&&51===Q()&&!k.hasPrecedingLineBreak()&&(t.exclamationToken=ue()),t.type=Pt(),Ut(Q())||(t.initializer=Ot()),me(t)}function Mn(t){var n=de(231);switch(Q()){case 104:break;case 110:n.flags|=1;break;case 76:n.flags|=2;break;default:e.Debug.fail()}if(Y(),144===Q()&&ne(Ln))n.declarations=Ke();else{var r=U();I(t),n.declarations=Je(8,t?On:In),I(r)}return me(n)}function Ln(){return Pe()&&20===Y()}function Rn(e){return e.kind=212,e.declarationList=Mn(!1),_e(),me(e)}function Bn(t){t.kind=232,ae(89),t.asteriskToken=se(39),t.name=e.hasModifier(t,512)?_n():ve();var n=t.asteriskToken?1:0,r=e.hasModifier(t,256)?2:0;return it(56,n|r,t),t.body=Nn(n|r,e.Diagnostics.or_expected),me(t)}function zn(t,n,r){t.kind=153,t.asteriskToken=n;var i=n?1:0,a=e.hasModifier(t,256)?2:0;return it(56,i|a,t),t.body=Nn(i|a,r),me(t)}function jn(t){return t.kind=151,t.questionToken||51!==Q()||k.hasPrecedingLineBreak()||(t.exclamationToken=ue()),t.type=Pt(),t.initializer=e.hasModifier(t,32)?z(Ot):R(6144,Ot),_e(),me(t)}function Jn(e,t){return e.kind=t,e.name=ke(),it(56,0,e),e.body=Nn(0),me(e)}function Kn(e){switch(e){case 114:case 112:case 113:case 115:case 132:return!0;default:return!1}}function Un(){var t;if(57===Q())return!0;for(;e.isModifierKind(Q());){if(Kn(t=Q()))return!0;Y()}if(39===Q())return!0;if(xe()&&(t=Q(),Y()),21===Q())return!0;if(void 0!==t){if(!e.isKeyword(t)||136===t||125===t)return!0;switch(Q()){case 19:case 27:case 51:case 56:case 58:case 55:return!0;default:return le()}}return!1}function Vn(){for(var e,t=X();;){var n=X();if(!oe(57))break;var r=de(149,n);r.expression=B(8192,Xt),me(r),(e||(e=[])).push(r)}return e&&fe(e,t)}function qn(t){for(var n,r=X();;){var i=k.getStartPos(),a=Q();if(76===Q()&&t){if(!re(De))break}else if(!e.isModifierKind(Q())||!re(Ce))break;var o=me(de(a,i));(n||(n=[])).push(o)}return n&&fe(n,r)}function Wn(){var e;if(120===Q()){var t=k.getStartPos(),n=Q();Y(),e=fe([me(de(n,t))],t)}return e}function Hn(){if(25===Q()){var t=de(210);return Y(),me(t)}var n=pe(0);return n.decorators=Vn(),n.modifiers=qn(!0),Se(125)?Jn(n,155):Se(136)?Jn(n,156):123===Q()?function(t){return t.kind=154,ae(123),it(56,0,t),t.body=Nn(0,e.Diagnostics.or_expected),me(t)}(n):st()?ut(n):e.tokenIsIdentifierOrKeyword(Q())||9===Q()||8===Q()||39===Q()||21===Q()?function(t){var n=se(39);return t.name=ke(),t.questionToken=se(55),n||19===Q()||27===Q()?zn(t,n,e.Diagnostics.or_expected):jn(t)}(n):n.decorators||n.modifiers?(n.name=ge(71,!0,e.Diagnostics.Declaration_expected),jn(n)):void e.Debug.fail("Should not have attempted to parse class member declaration.")}function Gn(e){return Xn(e,233)}function Xn(e,t){return e.kind=t,ae(75),e.name=!ie()||108===Q()&&ne(we)?void 0:ve(),e.typeParameters=et(),e.heritageClauses=Qn(),ae(17)?(e.members=Re(5,Hn),ae(18)):e.members=Ke(),me(e)}function Qn(){if(er())return Re(21,Yn)}function Yn(){var e=Q();if(85===e||108===e){var t=de(266);return t.token=e,Y(),t.types=Je(7,$n),me(t)}}function $n(){var e=de(205);return e.expression=Xt(),e.typeArguments=Zn(),me(e)}function Zn(){return 27===Q()?Ue(19,Nt,27,29):void 0}function er(){return 85===Q()||108===Q()}function tr(){var e=pe(271);return e.name=ke(),e.initializer=z(Ot),me(e)}function nr(){var e=de(238);return ae(17)?(e.statements=Re(1,Dn),ae(18)):e.statements=Ke(),me(e)}function rr(e){return e.kind=237,143===Q()?(e.name=ve(),e.flags|=512):(e.name=Xe(),e.name.text=ye(e.name.text)),17===Q()?e.body=nr():_e(),me(e)}function ir(){return 19===Y()}function ar(){return 41===Y()}function or(){if(9===Q()){var e=Xe();return e.text=ye(e.text),e}return It()}function sr(e){var t=de(e);return t.elements=Ue(22,245===e?ur:cr,17,18),me(t)}function cr(){return lr(250)}function ur(){return lr(246)}function lr(t){var n=de(t),r=e.isKeyword(Q())&&!ie(),i=k.getTokenPos(),a=k.getTextPos(),o=be();return 118===Q()?(n.propertyName=o,ae(118),r=e.isKeyword(Q())&&!ie(),i=k.getTokenPos(),a=k.getTextPos(),n.name=be()):n.name=o,246===t&&r&&H(i,a-i,e.Diagnostics.Identifier_expected),me(n)}t.parseSourceFile=function(t,n,r,i,a,o){T(n,r,i,o=e.ensureScriptKind(t,o));var s=N(t,r,a,o);return E(),s},t.parseIsolatedEntityName=function(e,t){T(e,t,void 0,1),Y();var n=Ve(!0),r=1===Q()&&!s.length;return E(),r?n:void 0},t.parseJsonText=function(t,n){T(n,2,void 0,6);var r=o=w(t,2,6,!1);return Y(),1===Q()?o.endOfFileToken=ue():17===Q()||ne(function(){return 9===Q()})?(r.jsonObject=un(),o.endOfFileToken=ce(1,e.Diagnostics.Unexpected_token)):ae(17),o.parseDiagnostics=s,E(),r},t.fixupParentReferences=P,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.Count=23]="Count"}(v||(v={})),function(e){e[e.False=0]="False",e[e.True=1]="True",e[e.Unknown=2]="Unknown"}(b||(b={})),function(t){function n(e){var t=de(274,k.getTokenPos()),n=(e?oe:ae)(17);return t.type=B(1048576,Nt),e&&!n||ae(18),P(t),me(t)}var r,i;function a(t,r){var i=p;t=t||0;var a,o,s,c=void 0===r?i.length:t+r;r=c-t,e.Debug.assert(t>=0),e.Debug.assert(t<=c),e.Debug.assert(c<=i.length);var l,_=[];return function(e,t){return 47===e.charCodeAt(t)&&42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&42!==e.charCodeAt(t+3)}(i,t)?(k.scanRange(t+3,r-5,function(){var e,n=1,r=t-Math.max(i.lastIndexOf("\n",t),0)+4;function u(t){e||(e=r),_.push(t),r+=t.length}for(var p=E();5===p;)p=E();4===p&&(n=0,r=0,p=E());e:for(;;){switch(p){case 57:0===n||1===n?(f(_),g(r),n=0,e=void 0,r++):u(k.getTokenText());break;case 4:_.push(k.getTokenText()),n=0,r=0;break;case 39:var m=k.getTokenText();1===n||2===n?(n=2,u(m)):(n=1,r+=m.length);break;case 71:u(k.getTokenText()),n=2;break;case 5:var y=k.getTokenText();2===n?_.push(y):void 0!==e&&r+y.length>e&&_.push(y.slice(e-r-1)),r+=y.length;break;case 1:break e;default:n=2,u(k.getTokenText())}p=E()}d(_),f(_),l=function(){var e=de(282,t);return e.tags=a&&fe(a,o,s),e.comment=_.length?_.join(""):void 0,me(e,c)}()}),l):l;function d(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function f(e){for(;e.length&&("\n"===e[e.length-1]||"\r"===e[e.length-1]);)e.pop()}function m(){for(;5===Q()||4===Q();)E()}function g(t){e.Debug.assert(57===Q());var n=de(57,k.getTokenPos());n.end=k.getTextPos(),E();var r=N();if(m(),r){var i;if(r)switch(r.escapedText){case"augments":case"extends":i=function(e,t){var n=de(285,e.pos);return n.atToken=e,n.tagName=t,n.class=function(){var e=oe(17),t=de(205);t.expression=function(){for(var e=N(!0);oe(23);){var t=de(183,e.pos);t.expression=e,t.name=N(),e=me(t)}return e}(),t.typeArguments=Zn();var n=me(t);return e&&ae(18),n}(),me(n)}(n,r);break;case"class":case"constructor":i=function(e,t){var n=de(286,e.pos);return n.atToken=e,n.tagName=t,me(n)}(n,r);break;case"arg":case"argument":case"param":i=x(n,r,1);break;case"return":case"returns":i=function(t,n){e.forEach(a,function(e){return 288===e.kind})&&H(n.pos,k.getTokenPos()-n.pos,e.Diagnostics._0_tag_already_specified,n.escapedText);var r=de(288,t.pos);return r.atToken=t,r.tagName=n,r.typeExpression=v(),me(r)}(n,r);break;case"template":i=function(t,n){e.some(a,e.isJSDocTemplateTag)&&H(n.pos,k.getTokenPos()-n.pos,e.Diagnostics._0_tag_already_specified,n.escapedText);for(var r,i,o=[],s=X();;){var c=de(147),u=(r=oe(17),i=N(),r&&ae(18),i);if(m(),!u)return void H(k.getStartPos(),0,e.Diagnostics.Identifier_expected);if(c.name=u,me(c),o.push(c),26!==Q())break;E(),m()}var l=de(290,t.pos);return l.atToken=t,l.tagName=n,l.typeParameters=fe(o,s),me(l),l}(n,r);break;case"type":i=S(n,r);break;case"typedef":i=function(t,n){var r=v();m();var i=de(291,t.pos);if(i.atToken=t,i.tagName=n,i.fullName=function e(t){var n=k.getTokenPos(),r=N();if(r&&oe(23)){var i=de(237,n);return i.flags|=t,i.name=r,i.body=e(4),me(i)}return r&&4&t&&(r.isInJSDocNamespace=!0),r}(0),i.fullName)for(var a=i.fullName;;){if(71===a.kind||!a.body){i.name=71===a.kind?a:a.name;break}a=a.body}if(m(),i.typeExpression=r,!r||b(r.type)){for(var o=void 0,s=void 0,c=void 0,u=k.getStartPos();o=re(function(){return C(0)});)if(s||(s=de(283,u)),289===o.kind){if(c)break;c=o}else s.jsDocPropertyTags=e.append(s.jsDocPropertyTags,o);s&&(r&&166===r.type.kind&&(s.isArrayType=!0),i.typeExpression=c&&c.typeExpression&&!b(c.typeExpression.type)?c.typeExpression:me(s))}return me(i)}(n,r);break;default:i=h(n,r)}else i=h(n,r);i&&(i.comment=y(t+i.end-i.pos),function(e){a?a.push(e):(a=[e],o=e.pos),s=e.end}(i))}}function y(e){var t,n=[],r=0;function i(r){t||(t=e),n.push(r),e+=r.length}var a=Q();e:for(;;){switch(a){case 4:r>=1&&(r=0,n.push(k.getTokenText())),e=0;break;case 57:k.setTextPos(k.getTextPos()-1);case 1:break e;case 5:if(2===r)i(k.getTokenText());else{var o=k.getTokenText();void 0!==t&&e+o.length>t&&n.push(o.slice(t-e-1)),e+=o.length}break;case 39:if(0===r){r=1,e+=1;break}default:r=2,i(k.getTokenText())}a=E()}return d(n),f(n),0===n.length?void 0:n.join("")}function h(e,t){var n=de(284,e.pos);return n.atToken=e,n.tagName=t,me(n)}function v(){return m(),17===Q()?n():void 0}function b(t){switch(t.kind){case 135:return!0;case 166:return b(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText}}function x(t,n,r){var i=v(),a=!i;m();var o=function(){var e=oe(21),t=function(){var e=N(!0);for(oe(21)&&ae(22);oe(23);){var t=N(!0);oe(21)&&ae(22),e=qe(e,t)}return e}();return e&&(m(),se(58)&&It(),ae(22)),{name:t,isBracketed:e}}(),s=o.name,c=o.isBracketed;m(),a&&(i=v());var u=de(1===r?287:292,t.pos),l=function(t,n){if(t&&b(t.type)){for(var r=de(274,k.getTokenPos()),i=void 0,a=void 0,o=k.getStartPos(),s=void 0;i=re(function(){return C(1,n)});)s=e.append(s,i);if(s)return(a=de(283,o)).jsDocPropertyTags=s,166===t.type.kind&&(a.isArrayType=!0),r.type=me(a),me(r)}}(i,s);return l&&(i=l,a=!0),u.atToken=t,u.tagName=n,u.typeExpression=i,u.name=s,u.isNameFirst=a,u.isBracketed=c,me(u)}function S(t,r){e.forEach(a,function(e){return 289===e.kind})&&H(r.pos,k.getTokenPos()-r.pos,e.Diagnostics._0_tag_already_specified,r.escapedText);var i=de(289,t.pos);return i.atToken=t,i.tagName=r,i.typeExpression=n(!0),me(i)}function D(t,n){for(;!e.isIdentifier(t)||!e.isIdentifier(n);){if(e.isIdentifier(t)||e.isIdentifier(n)||t.right.escapedText!==n.right.escapedText)return!1;t=t.left,n=n.left}return t.escapedText===n.escapedText}function C(t,n){for(var r=!0,i=!1;;)switch(E()){case 57:if(r){var a=T(t);return!(a&&287===a.kind&&(e.isIdentifier(a.name)||!D(n,a.name.left)))&&a}i=!1;break;case 4:r=!0,i=!1;break;case 39:i&&(r=!1),i=!0;break;case 71:r=!1;break;case 1:return!1}}function T(t){e.Debug.assert(57===Q());var n=de(57);n.end=k.getTextPos(),E();var r,i=N();if(m(),!i)return!1;switch(i.escapedText){case"type":return 0===t&&S(n,i);case"prop":case"property":r=0;break;case"arg":case"argument":case"param":r=1;break;default:return!1}if(t!==r)return!1;var a=x(n,i,t);return a.comment=y(a.end-a.pos),a}function E(){return u=k.scanJSDocToken()}function N(t){if(void 0===t&&(t=!1),!e.tokenIsIdentifierOrKeyword(Q()))return t?ge(71,!0,e.Diagnostics.Identifier_expected):void W(e.Diagnostics.Identifier_expected);var n=k.getTokenPos(),r=k.getTextPos(),a=de(71,n);return a.escapedText=e.escapeLeadingUnderscores(i.substring(n,r)),me(a,r),E(),a}}t.parseJSDocTypeExpressionForTests=function(e,t,r){T(e,6,void 0,1),o=w("file.js",6,1,!1),k.setText(e,t,r),u=k.scan();var i=n(),a=s;return E(),i?{jsDocTypeExpression:i,diagnostics:a}:void 0},t.parseJSDocTypeExpression=n,t.parseIsolatedJSDocComment=function(e,t,n){T(e,6,void 0,1),o={languageVariant:0,text:e};var r=a(t,n),i=s;return E(),r?{jsDoc:r,diagnostics:i}:void 0},t.parseJSDocComment=function(e,t,n){var r,i=u,c=s.length,l=D,_=a(t,n);return _&&(_.parent=e),65536&h&&(o.jsDocDiagnostics||(o.jsDocDiagnostics=[]),(r=o.jsDocDiagnostics).push.apply(r,s)),u=i,s.length=c,D=l,_},function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments"}(r||(r={})),function(e){e[e.Property=0]="Property",e[e.Parameter=1]="Parameter"}(i||(i={})),t.parseJSDocCommentWorker=a}(x=t.JSDocParser||(t.JSDocParser={}))}(o||(o={})),function(t){function n(t,n,i,o,s,c){return void(n?_(t):u(t));function u(t){var n="";if(c&&r(t)&&(n=o.substring(t.pos,t.end)),t._children&&(t._children=void 0),t.pos+=i,t.end+=i,c&&r(t)&&e.Debug.assert(n===s.substring(t.pos,t.end)),l(t,u,_),e.hasJSDocNodes(t))for(var d=0,p=t.jsDoc;d<p.length;d++)l(p[d],u,_);a(t,c)}function _(e){e._children=void 0,e.pos+=i,e.end+=i;for(var t=0,n=e;t<n.length;t++)u(n[t])}}function r(e){switch(e.kind){case 9:case 8:case 71:return!0}return!1}function i(t,n,r,i,a){e.Debug.assert(t.end>=n,"Adjusting an element that was entirely before the change range"),e.Debug.assert(t.pos<=r,"Adjusting an element that was entirely after the change range"),e.Debug.assert(t.pos<=t.end),t.pos=Math.min(t.pos,i),t.end>=r?t.end+=a:t.end=Math.min(t.end,i),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 a(t,n){if(n){var r=t.pos;l(t,function(t){e.Debug.assert(t.pos>=r),r=t.end}),e.Debug.assert(r<=t.end)}}function s(t,n){var r,i=t;if(l(t,function t(a){if(!e.nodeIsMissing(a))return a.pos<=n?(a.pos>=i.pos&&(i=a),n<a.end?(l(a,t),!0):(e.Debug.assert(a.end<=n),void(r=a))):(e.Debug.assert(a.pos>n),!0)}),r){var a=function(e){for(;;){var t=o(e);if(!t)return e;e=t}}(r);a.pos>i.pos&&(i=a)}return i;function o(t){var n;return l(t,function(t){e.nodeIsPresent(t)&&(n=t)}),n}}function c(t,n,r,i){var a=t.text;if(r&&(e.Debug.assert(a.length-r.span.length+r.newLength===n.length),i||e.Debug.shouldAssert(3))){var o=a.substr(0,r.span.start),s=n.substr(0,r.span.start);e.Debug.assert(o===s);var c=a.substring(e.textSpanEnd(r.span),a.length),u=n.substring(e.textSpanEnd(e.textChangeRangeNewSpan(r)),n.length);e.Debug.assert(c===u)}}var u;t.updateSourceFile=function(t,r,u,_){if(c(t,r,u,_=_||e.Debug.shouldAssert(2)),e.textChangeRangeIsUnchanged(u))return t;if(0===t.statements.length)return o.parseSourceFile(t.fileName,r,t.languageVersion,void 0,!0,t.scriptKind);var d=t;e.Debug.assert(!d.hasBeenIncrementallyParsed),d.hasBeenIncrementallyParsed=!0;var p=t.text,f=function(t){var n=t.statements,r=0;e.Debug.assert(r<n.length);var i=n[r],a=-1;return{currentNode:function(o){return o!==a&&(i&&i.end===o&&r<n.length-1&&(i=n[++r]),i&&i.pos===o||function(e){return n=void 0,r=-1,i=void 0,void l(t,a,o);function a(t){return e>=t.pos&&e<t.end&&(l(t,a,o),!0)}function o(t){if(e>=t.pos&&e<t.end)for(var s=0;s<t.length;s++){var c=t[s];if(c){if(c.pos===e)return n=t,r=s,i=c,!0;if(c.pos<e&&e<c.end)return l(c,a,o),!0}}return!1}}(o)),a=o,e.Debug.assert(!i||i.pos===o),i}}}(t),m=function(t,n){for(var r=n.span.start,i=0;r>0&&i<=1;i++){var a=s(t,r);e.Debug.assert(a.pos<=r),r=Math.max(0,a.pos-1)}var o=e.createTextSpanFromBounds(r,e.textSpanEnd(n.span));return e.createTextChangeRange(o,n.newLength+(n.span.start-r))}(t,u);c(t,r,m,_),e.Debug.assert(m.span.start<=u.span.start),e.Debug.assert(e.textSpanEnd(m.span)===e.textSpanEnd(u.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(m))===e.textSpanEnd(e.textChangeRangeNewSpan(u)));var g=e.textChangeRangeNewSpan(m).length-m.span.length;return function(t,r,o,s,c,u,_,d){return void p(t);function p(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)n(t,!1,c,u,_,d);else{var m=t.end;if(m>=r)return t.intersectsChange=!0,t._children=void 0,i(t,r,o,s,c),l(t,p,f),void a(t,d);e.Debug.assert(m<r)}}function f(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)n(t,!0,c,u,_,d);else{var a=t.end;if(a>=r){t.intersectsChange=!0,t._children=void 0,i(t,r,o,s,c);for(var l=0,f=t;l<f.length;l++)p(f[l])}else e.Debug.assert(a<r)}}}(d,m.span.start,e.textSpanEnd(m.span),e.textSpanEnd(e.textChangeRangeNewSpan(m)),g,p,r,_),o.parseSourceFile(t.fileName,r,t.languageVersion,f,!0,t.scriptKind)},function(e){e[e.Value=-1]="Value"}(u||(u={}))}(s||(s={})),e.processCommentPragmas=_,e.processPragmasIntoFields=d;var p=e.createMap();function f(e){if(p.has(e))return p.get(e);var t=new RegExp("(\\s"+e+"\\s*=\\s*)('|\")(.+?)\\2","im");return p.set(e,t),t}var m=/^\/\/\/\s*<(\S+)\s.*?\/>/im,g=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function y(t,n,r){var i=m.exec(r);if(i){var a=i[1].toLowerCase(),o=e.commentPragmas[a];if(!(o&&1&o.kind))return;if(o.args){for(var s={},c=0,u=o.args;c<u.length;c++){var l=u[c],_=f(l.name).exec(r);if(!_&&!l.optional)return;if(_)if(l.captureSpan){var d=n.pos+_.index+_[1].length+_[2].length;s[l.name]={value:_[3],pos:d,end:d+_[3].length}}else s[l.name]=_[3]}t.push({name:a,args:{arguments:s,range:n}})}else t.push({name:a,args:{arguments:{},range:n}})}else{var p=g.exec(r);if(p)return h(t,n,2,p);for(var y,v=/\s*@(\S+)\s*(.*)\s*$/gim;y=v.exec(r);)h(t,n,4,y)}}function h(t,n,r,i){if(i){var a=i[1].toLowerCase(),o=e.commentPragmas[a];if(o&&o.kind&r){var s=function(t,n){if(!n)return{};if(!t.args)return{};for(var r=n.split(/\s+/),i={},a=0;a<t.args.length;a++){var o=t.args[a];if(!r[a]&&!o.optional)return"fail";if(o.captureSpan)return e.Debug.fail("Capture spans not yet implemented for non-xml pragmas");i[o.name]=r[a]}return i}(o,i[2]);"fail"!==s&&t.push({name:a,args:{arguments:s,range:n}})}}}}(l||(l={})),function(e){var t;function n(t){return t.body?function t(r){switch(r.kind){case 234:case 235:return 0;case 236:if(e.isConst(r))return 2;break;case 242:case 241:if(!e.hasModifier(r,1))return 0;break;case 238:var i=0;return e.forEachChild(r,function(n){var r=t(n);switch(r){case 0:return;case 2:return void(i=2);case 1:return i=1,!0;default:e.Debug.assertNever(r)}}),i;case 237:return n(r);case 71:if(r.isInJSDocNamespace)return 0}return 1}(t.body):1}!function(e){e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly"}(e.ModuleInstanceState||(e.ModuleInstanceState={})),e.getModuleInstanceState=n,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"}(t||(t={}));var r=function(){var t,r,l,_,d,p,f,m,g,y,h,v,b,x,k,S,D,C,T,E,N,A,P=0,w={flags:1},F={flags:1},I=0;function O(n,r,i,a,o){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(n)||t,n,r,i,a,o)}return function(n,i){t=n,l=e.getEmitScriptTarget(r=i),T=function(t,n){return!(!e.getStrictOptionValue(n,"alwaysStrict")||t.isDeclarationFile)||!!t.externalModuleIndicator}(t,i),N=e.createUnderscoreEscapedMap(),P=0,A=t.isDeclarationFile,E=e.objectAllocator.getSymbolConstructor(),t.locals||(he(t),t.symbolCount=P,t.classifiableNames=N),t=void 0,r=void 0,l=void 0,_=void 0,d=void 0,p=void 0,f=void 0,m=!1,g=void 0,y=void 0,h=void 0,v=void 0,b=void 0,x=void 0,S=void 0,D=!1,C=0,I=0};function M(e,t){return P++,new E(e,t)}function L(t,n,r){if(t.flags|=r,n.symbol=t,t.declarations?t.declarations.push(n):t.declarations=[n],1952&r&&!t.exports&&(t.exports=e.createSymbolTable()),6240&r&&!t.members&&(t.members=e.createSymbolTable()),67216319&r){var i=t.valueDeclaration;(!i||i.kind!==n.kind&&237===i.kind)&&(t.valueDeclaration=n)}}function R(t){if(247===t.kind)return t.isExportEquals?"export=":"default";var n=e.getNameOfDeclaration(t);if(n){if(e.isAmbientModule(t)){var r=e.getTextOfIdentifierOrLiteral(n);return e.isGlobalScopeAugmentation(t)?"__global":'"'+r+'"'}if(146===n.kind){var i=n.expression;return e.isStringOrNumericLiteral(i)?e.escapeLeadingUnderscores(i.text):(e.Debug.assert(e.isWellKnownSymbolSyntactically(i)),e.getPropertyNameForKnownSymbolName(e.idText(i.name)))}return e.isPropertyNameLiteral(n)?e.getEscapedTextOfIdentifierOrLiteral(n):void 0}switch(t.kind){case 154:return"__constructor";case 162:case 157:return"__call";case 163:case 158:return"__new";case 159:return"__index";case 248:return"__export";case 198:if(2===e.getSpecialPropertyAssignmentKind(t))return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 232:case 233:return e.hasModifier(t,512)?"default":void 0;case 280:return e.isJSDocConstructSignature(t)?"__new":"__call";case 148:return e.Debug.assert(280===t.parent.kind,"Impossible parameter parent kind",function(){return"parent is: "+(e.SyntaxKind?e.SyntaxKind[t.parent.kind]:t.parent.kind)+", expected JSDocFunctionType"}),"arg"+t.parent.parameters.indexOf(t);case 291:var a=e.getNameOfJSDocTypedef(t);return"undefined"!=typeof a?a.escapedText:void 0}}function B(t){return e.isNamedDeclaration(t)?e.declarationNameToString(t.name):e.unescapeLeadingUnderscores(R(t))}function z(n,r,i,a,o,s){e.Debug.assert(!e.hasDynamicName(i));var c,u=e.hasModifier(i,512),l=u&&r?"default":R(i);if(void 0===l)c=M(0,"__missing");else if(c=n.get(l),2885600&a&&N.set(l,!0),c){if(s&&!c.isReplaceableByMethod)return c;if(c.flags&o)if(c.isReplaceableByMethod)n.set(l,c=M(0,l));else{e.isNamedDeclaration(i)&&(i.name.parent=i);var _=2&c.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0;(384&c.flags||384&a)&&(_=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations),c.declarations&&c.declarations.length&&(u?_=e.Diagnostics.A_module_cannot_have_multiple_default_exports:c.declarations&&c.declarations.length&&(u||247===i.kind&&!i.isExportEquals)&&(_=e.Diagnostics.A_module_cannot_have_multiple_default_exports)),e.forEach(c.declarations,function(n){t.bindDiagnostics.push(O(e.getNameOfDeclaration(n)||n,_,B(n)))}),t.bindDiagnostics.push(O(e.getNameOfDeclaration(i)||i,_,B(i))),c=M(0,l)}}else n.set(l,c=M(0,l)),s&&(c.isReplaceableByMethod=!0);return L(c,i,a),c.parent?e.Debug.assert(c.parent===r,"Existing symbol parent should match new one"):c.parent=r,c}function j(t,n,r){var i=1&e.getCombinedModifierFlags(t);if(2097152&n)return 250===t.kind||241===t.kind&&i?z(d.symbol.exports,d.symbol,t,n,r):z(d.locals,void 0,t,n,r);291===t.kind&&e.Debug.assert(e.isInJavaScriptFile(t));var a=e.isJSDocTypedefTag(t)&&t.name&&71===t.name.kind&&t.name.isInJSDocNamespace;if(!e.isAmbientModule(t)&&(i||32&d.flags)||a){var o=z(d.locals,void 0,t,67216319&n?1048576:0,r);return o.exportSymbol=z(d.symbol.exports,d.symbol,t,n,r),t.localSymbol=o,o}return z(d.locals,void 0,t,n,r)}function J(e){if(A)V(e);else if(536870912&e.transformFlags)A=!0,V(e),A=!1,I|=e.transformFlags&~c(e.kind);else{var t=I;I=0,V(e),I=t|s(e,I)}}function K(t){if(void 0!==t)if(A)e.forEach(t,he);else{var n=I;I=0;for(var r=0,i=0,a=t;i<a.length;i++){var o=a[i];he(o),r|=-536870913&o.transformFlags}t.transformFlags=536870912|r,I|=n}}function U(t){e.forEachChild(t,he,K)}function V(i){if(e.hasJSDocNodes(i))if(e.isInJavaScriptFile(i))for(var a=0,o=i.jsDoc;a<o.length;a++)he(o[a]);else for(var s=0,c=i.jsDoc;s<c.length;s++)u(i,c[s]);if(function(t){return!!(1&g.flags)&&(g===w&&(e.isStatementButNotDeclaration(t)&&213!==t.kind||233===t.kind||237===t.kind&&function(e){var t=n(e);return 1===t||2===t&&r.preserveConstEnums}(t)||236===t.kind&&(!e.isConstEnumDeclaration(t)||r.preserveConstEnums))&&(g=F,!r.allowUnreachableCode&&!(2097152&t.flags)&&(212!==t.kind||3&e.getCombinedNodeFlags(t.declarationList)||e.forEach(t.declarationList.declarations,function(e){return e.initializer}))&&ye(t,e.Diagnostics.Unreachable_code_detected)),!0)}(i))U(i);else switch(i.kind){case 217:!function(e){var t={flags:8,antecedents:void 0},n={flags:4,antecedents:void 0},r={flags:4,antecedents:void 0};Q(t,g),g=t,re(e.expression,n,r),g=te(n),ie(e.statement,r,t),Q(t,g),g=te(r)}(i);break;case 216:!function(t){var n={flags:8,antecedents:void 0},r=226===t.parent.kind?e.lastOrUndefined(S):void 0,i=r?r.continueTarget:{flags:4,antecedents:void 0},a=r?r.breakTarget:{flags:4,antecedents:void 0};Q(n,g),g=n,ie(t.statement,a,i),Q(i,g),g=te(i),re(t.expression,n,a),g=te(a)}(i);break;case 218:!function(e){var t={flags:8,antecedents:void 0},n={flags:4,antecedents:void 0},r={flags:4,antecedents:void 0};he(e.initializer),Q(t,g),g=t,re(e.condition,n,r),g=te(n),ie(e.statement,r,t),he(e.incrementor),Q(t,g),g=te(r)}(i);break;case 219:case 220:!function(e){var t={flags:8,antecedents:void 0},n={flags:4,antecedents:void 0};Q(t,g),g=t,220===e.kind&&he(e.awaitModifier),he(e.expression),Q(n,g),he(e.initializer),231!==e.initializer.kind&&se(e.initializer),ie(e.statement,n,t),Q(t,g),g=te(n)}(i);break;case 215:!function(e){var t={flags:4,antecedents:void 0},n={flags:4,antecedents:void 0},r={flags:4,antecedents:void 0};re(e.expression,t,n),g=te(t),he(e.thenStatement),Q(r,g),g=te(n),he(e.elseStatement),Q(r,g),g=te(r)}(i);break;case 223:case 227:!function(e){he(e.expression),223===e.kind&&(D=!0,v&&Q(v,g)),g=w}(i);break;case 222:case 221:!function(e){if(he(e.label),e.label){var t=function(e){if(S)for(var t=0,n=S;t<n.length;t++){var r=n[t];if(r.name===e)return r}}(e.label.escapedText);t&&(t.referenced=!0,ae(e,t.breakTarget,t.continueTarget))}else ae(e,y,h)}(i);break;case 228:!function(e){var t={flags:4,antecedents:void 0},n=g;he(e.tryBlock),Q(t,g);var r=g,i=w;if(e.catchClause&&(g=n,he(e.catchClause),Q(t,g),i=g),e.finallyBlock){var a={flags:2048,antecedent:n,lock:{}};if(Q(t,a),g=te(t),he(e.finallyBlock),1&g.flags||1&r.flags&&1&i.flags&&(g=r===F||i===F?F:w),!(1&g.flags)){var o={flags:4096,antecedent:g};a.lock=o,g=o}}else g=te(t)}(i);break;case 225:!function(t){var n={flags:4,antecedents:void 0};he(t.expression);var r=y,i=k;y=n,k=g,he(t.caseBlock),Q(n,g);var a=e.forEach(t.caseBlock.clauses,function(e){return 265===e.kind});t.possiblyExhaustive=!a&&!n.antecedents,a||Q(n,$(k,t,0,0)),y=r,k=i,g=te(n)}(i);break;case 239:!function(t){var n=I;I=0;for(var i=t.clauses,a=w,o=0;o<i.length;o++){for(var s=o;!i[o].statements.length&&o+1<i.length;)he(i[o]),o++;var c={flags:4,antecedents:void 0};Q(c,$(k,t.parent,s,o+1)),Q(c,a),g=te(c);var u=i[o];he(u),a=g,1&g.flags||o===i.length-1||!r.noFallthroughCasesInSwitch||ye(u,e.Diagnostics.Fallthrough_case_in_switch)}i.transformFlags=536870912|I,I|=n}(i);break;case 264:!function(e){var t=g;g=k,he(e.expression),g=t,K(e.statements)}(i);break;case 226:!function(n){var i={flags:8,antecedents:void 0},a={flags:4,antecedents:void 0};he(n.label),Q(i,g);var o=function(e,t,r){var o={name:n.label.escapedText,breakTarget:a,continueTarget:i,referenced:!1};return(S||(S=[])).push(o),o}();he(n.statement),S.pop(),o.referenced||r.allowUnusedLabels||t.bindDiagnostics.push(O(n.label,e.Diagnostics.Unused_label)),n.statement&&216===n.statement.kind||(Q(a,g),g=te(a))}(i);break;case 196:!function(e){if(51===e.operator){var t=b;b=x,x=t,U(e),x=b,b=t}else U(e),43!==e.operator&&44!==e.operator||se(e.operand)}(i);break;case 197:!function(e){U(e),(43===e.operator||44===e.operator)&&se(e.operand)}(i);break;case 198:!function(t){var n=t.operatorToken.kind;if(53===n||54===n)if(function(e){for(;189===e.parent.kind||196===e.parent.kind&&51===e.parent.operator;)e=e.parent;return!function(e){var t=e.parent;switch(t.kind){case 215:case 217:case 216:return t.expression===e;case 218:case 199:return t.condition===e}return!1}(e)&&!ne(e.parent)}(t)){var r={flags:4,antecedents:void 0};ce(t,r,r),g=te(r)}else ce(t,b,x);else U(t),e.isAssignmentOperator(n)&&!e.isAssignmentTarget(t)&&(se(t.left),58===n&&184===t.left.kind)&&G(t.left.expression)&&(g=ee(g,t))}(i);break;case 192:!function(e){U(e),183===e.expression.kind&&se(e.expression)}(i);break;case 199:!function(e){var t={flags:4,antecedents:void 0},n={flags:4,antecedents:void 0},r={flags:4,antecedents:void 0};re(e.condition,t,n),g=te(t),he(e.questionToken),he(e.whenTrue),Q(r,g),g=te(n),he(e.colonToken),he(e.whenFalse),Q(r,g),g=te(r)}(i);break;case 230:!function(t){U(t),(t.initializer||e.isForInOrOfStatement(t.parent.parent))&&function t(n){var r=e.isOmittedExpression(n)?void 0:n.name;if(e.isBindingPattern(r))for(var i=0,a=r.elements;i<a.length;i++)t(a[i]);else g=Z(g,n)}(t)}(i);break;case 185:!function(t){for(var n=t.expression;189===n.kind;)n=n.expression;if(190===n.kind||191===n.kind?(K(t.typeArguments),K(t.arguments),he(t.expression)):U(t),183===t.expression.kind){var r=t.expression;G(r.expression)&&e.isPushOrUnshiftIdentifier(r.name)&&(g=ee(g,t))}}(i);break;case 282:!function(t){e.forEachChild(t,function(e){291!==e.kind&&he(e)})}(i);break;case 291:!function(t){e.forEachChild(t,function(e){t.fullName&&e===t.name&&71!==t.fullName.kind||he(e)})}(i);break;default:U(i)}}function q(t){switch(t.kind){case 71:case 99:case 183:return W(t);case 185:return function(e){if(e.arguments)for(var t=0,n=e.arguments;t<n.length;t++)if(W(n[t]))return!0;return!(183!==e.expression.kind||!W(e.expression.expression))}(t);case 189:return q(t.expression);case 198:return function(t){switch(t.operatorToken.kind){case 58:return W(t.left);case 32:case 33:case 34:case 35:return G(t.left)||G(t.right)||H(t.right,t.left)||H(t.left,t.right);case 93:return G(t.left);case 92:return n=t.right,e.isStringLiteralLike(t.left)&&q(n);case 26:return q(t.right)}var n;return!1}(t);case 196:return 51===t.operator&&q(t.operand)}return!1}function W(e){return 71===e.kind||99===e.kind||97===e.kind||183===e.kind&&W(e.expression)}function H(t,n){return e.isTypeOfExpression(t)&&G(t.expression)&&e.isStringLiteralLike(n)}function G(e){switch(e.kind){case 189:return G(e.expression);case 198:switch(e.operatorToken.kind){case 58:return G(e.left);case 26:return G(e.right)}}return W(e)}function X(e){e.flags|=512&e.flags?1024:512}function Q(t,n){1&n.flags||e.contains(t.antecedents,n)||((t.antecedents||(t.antecedents=[])).push(n),X(n))}function Y(e,t,n){return 1&t.flags?t:n?101===n.kind&&64&e||86===n.kind&&32&e?w:q(n)?(X(t),{flags:e,expression:n,antecedent:t}):t:32&e?t:w}function $(e,t,n,r){return q(t.expression)?(X(e),{flags:128,switchStatement:t,clauseStart:n,clauseEnd:r,antecedent:e}):e}function Z(e,t){return X(e),{flags:16,antecedent:e,node:t}}function ee(e,t){return X(e),{flags:256,antecedent:e,node:t}}function te(e){var t=e.antecedents;return t?1===t.length?t[0]:e:w}function ne(e){for(;;)if(189===e.kind)e=e.expression;else{if(196!==e.kind||51!==e.operator)return 198===e.kind&&(53===e.operatorToken.kind||54===e.operatorToken.kind);e=e.operand}}function re(e,t,n){var r=b,i=x;b=t,x=n,he(e),b=r,x=i,e&&ne(e)||(Q(t,Y(32,g,e)),Q(n,Y(64,g,e)))}function ie(e,t,n){var r=y,i=h;y=t,h=n,he(e),y=r,h=i}function ae(e,t,n){var r=222===e.kind?t:n;r&&(Q(r,g),g=w)}function oe(e){se(198===e.kind&&58===e.operatorToken.kind?e.left:e)}function se(e){if(W(e))g=Z(g,e);else if(181===e.kind)for(var t=0,n=e.elements;t<n.length;t++){var r=n[t];202===r.kind?se(r.expression):oe(r)}else if(182===e.kind)for(var i=0,a=e.properties;i<a.length;i++){var o=a[i];268===o.kind?oe(o.initializer):269===o.kind?se(o.name):270===o.kind&&se(o.expression)}}function ce(e,t,n){var r={flags:4,antecedents:void 0};53===e.operatorToken.kind?re(e.left,r,n):re(e.left,t,r),g=te(r),he(e.operatorToken),re(e.right,t,n)}function ue(e){f&&(f.nextContainer=e),f=e}function le(n,r,i){switch(d.kind){case 237:return j(n,r,i);case 272:return function(n,r,i){return e.isExternalModule(t)?j(n,r,i):z(t.locals,void 0,n,r,i)}(n,r,i);case 203:case 233:return function(t,n,r){return e.hasModifier(t,32)?z(d.symbol.exports,d.symbol,t,n,r):z(d.symbol.members,d.symbol,t,n,r)}(n,r,i);case 236:return z(d.symbol.exports,d.symbol,n,r,i);case 165:case 283:case 182:case 234:case 261:return z(d.symbol.members,d.symbol,n,r,i);case 162:case 163:case 157:case 158:case 159:case 153:case 152:case 154:case 155:case 156:case 232:case 190:case 191:case 280:case 235:case 176:return z(d.locals,void 0,n,r,i)}}function _e(e){2097152&e.flags&&!function(e){var t=272===e.kind?e:e.body;if(t&&(272===t.kind||238===t.kind))for(var n=0,r=t.statements;n<r.length;n++){var i=r[n];if(248===i.kind||247===i.kind)return!0}return!1}(e)?e.flags|=32:e.flags&=-33}function de(e){var t=n(e),r=0!==t;return le(e,r?512:1024,r?67215503:0),t}function pe(e,t,n){var r=M(t,n);106508&t&&(r.parent=d.symbol),L(r,e,t)}function fe(t,n,r){switch(p.kind){case 237:j(t,n,r);break;case 272:if(e.isExternalModule(d)){j(t,n,r);break}default:p.locals||(p.locals=e.createSymbolTable(),ue(p)),z(p.locals,void 0,t,n,r)}}function me(n,r){if(r&&71===r.kind){var i=r;if(e.isIdentifier(o=i)&&("eval"===o.escapedText||"arguments"===o.escapedText)){var a=e.getErrorSpanForNode(t,r);t.bindDiagnostics.push(e.createFileDiagnostic(t,a.start,a.length,e.getContainingClass(n)?e.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:e.Diagnostics.Invalid_use_of_0_in_strict_mode,e.idText(i)))}}var o}function ge(e){T&&me(e,e.name)}function ye(n,r,i,a,o){var s=e.getSpanOfTokenAtPosition(t,n.pos);t.bindDiagnostics.push(e.createFileDiagnostic(t,s.start,s.length,r,i,a,o))}function he(n){if(n){n.parent=_;var r=T;if(e.isInJavaScriptFile(n)&&function(t){if(e.hasJSDocNodes(t))for(var n=0,r=t.jsDoc;n<r.length;n++){var i=r[n];if(i.tags)for(var a=0,o=i.tags;a<o.length;a++){var s=o[a];if(291===s.kind){var c=_;_=i,he(s),_=c}}}}(n),function(n){switch(n.kind){case 71:if(n.isInJSDocNamespace){for(var r=n.parent;r&&291!==r.kind;)r=r.parent;fe(r,524288,67901928);break}case 99:return g&&(e.isExpression(n)||269===_.kind)&&(n.flowNode=g),function(n){!(T&&n.originalKeywordKind>=108&&n.originalKeywordKind<=116)||e.isIdentifierName(n)||2097152&n.flags||t.parseDiagnostics.length||t.bindDiagnostics.push(O(n,function(n){return e.getContainingClass(n)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t.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}(n),e.declarationNameToString(n)))}(n);case 183:g&&W(n)&&(n.flowNode=g),e.isSpecialPropertyDeclaration(n)&&function(t){99===t.expression.kind?Se(t):e.isEntityNameExpression(t)&&272===t.parent.parent.kind&&(e.isPropertyAccessExpression(t.expression)&&"prototype"===t.expression.name.escapedText?De(t,t.parent):Ce(t))}(n);break;case 198:switch(e.getSpecialPropertyAssignmentKind(n)){case 1:ke(n);break;case 2:!function(n){var r=e.getRightMostAssignedExpression(n.right);e.isEmptyObjectLiteral(r)||d===t&&i(t,r)?xe(n):(xe(n),z(t.symbol.exports,t.symbol,n,1049092,0))}(n);break;case 3:De(n.left,n);break;case 6:!function(e){e.left.parent=e,e.right.parent=e;var t=e.left;Te(t,t,!1)}(n);break;case 4:Se(n);break;case 5:!function(n){var r=n.left;n.left.parent=n,n.right.parent=n,e.isIdentifier(r.expression)&&d===t&&a(t,r.expression)?ke(n):Ce(r)}(n);break;case 0:break;default:e.Debug.fail("Unknown special property assignment kind")}return function(t){T&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&me(t,t.left)}(n);case 267:return function(e){T&&e.variableDeclaration&&me(e,e.variableDeclaration.name)}(n);case 192:return function(n){if(T&&71===n.expression.kind){var r=e.getErrorSpanForNode(t,n.expression);t.bindDiagnostics.push(e.createFileDiagnostic(t,r.start,r.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(n);case 8:return function(n){T&&32&n.numericLiteralFlags&&t.bindDiagnostics.push(O(n,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}(n);case 197:return function(e){T&&me(e,e.operand)}(n);case 196:return function(e){T&&(43!==e.operator&&44!==e.operator||me(e,e.operand))}(n);case 224:return function(t){T&&ye(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}(n);case 173:return void(m=!0);case 160:break;case 147:return function(t){if(171===t.parent.kind){var n=function(e){for(;e;){var t=e.parent;if(t&&170===t.kind&&t.extendsType===e)return t;e=t}}(t.parent);n?(n.locals||(n.locals=e.createSymbolTable()),z(n.locals,void 0,t,262144,67639784)):pe(t,262144,R(t))}else le(t,262144,67639784)}(n);case 148:return function(t){if(!T||2097152&t.flags||me(t,t.name),e.isBindingPattern(t.name)?pe(t,1,"__"+t.parent.parameters.indexOf(t)):le(t,1,67216319),e.isParameterPropertyDeclaration(t)){var n=t.parent.parent;z(n.symbol.members,n.symbol,t,4|(t.questionToken?16777216:0),0)}}(n);case 230:return Ae(n);case 180:return n.flowNode=g,Ae(n);case 151:case 150:return function(e){return Pe(e,4|(e.questionToken?16777216:0),0)}(n);case 268:case 269:return Pe(n,4,0);case 271:return Pe(n,8,68008959);case 157:case 158:case 159:return le(n,131072,0);case 153:case 152:return Pe(n,8192|(n.questionToken?16777216:0),e.isObjectLiteralMethod(n)?0:67208127);case 232:return function(n){t.isDeclarationFile||2097152&n.flags||e.isAsyncFunction(n)&&(C|=1024),ge(n),T?(function(n){if(l<2&&272!==p.kind&&237!==p.kind&&!e.isFunctionLike(p)){var r=e.getErrorSpanForNode(t,n);t.bindDiagnostics.push(e.createFileDiagnostic(t,r.start,r.length,function(n){return e.getContainingClass(n)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t.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}(n)))}}(n),fe(n,16,67215791)):le(n,16,67215791)}(n);case 154:return le(n,16384,0);case 155:return Pe(n,32768,67150783);case 156:return Pe(n,65536,67183551);case 162:case 280:case 163:return function(t){var n=M(131072,R(t));L(n,t,131072);var r=M(2048,"__type");L(r,t,2048),r.members=e.createSymbolTable(),r.members.set(n.escapedName,n)}(n);case 165:case 283:case 176:return function(e){return pe(e,2048,"__type")}(n);case 182:return function(n){var r;if(function(e){e[e.Property=1]="Property",e[e.Accessor=2]="Accessor"}(r||(r={})),T)for(var i=e.createUnderscoreEscapedMap(),a=0,o=n.properties;a<o.length;a++){var s=o[a];if(270!==s.kind&&71===s.name.kind){var c=s.name,u=268===s.kind||269===s.kind||153===s.kind?1:2,l=i.get(c.escapedText);if(l){if(1===u&&1===l){var _=e.getErrorSpanForNode(t,c);t.bindDiagnostics.push(e.createFileDiagnostic(t,_.start,_.length,e.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode))}}else i.set(c.escapedText,u)}}return pe(n,4096,"__object")}(n);case 190:case 191:return function(n){return t.isDeclarationFile||2097152&n.flags||e.isAsyncFunction(n)&&(C|=1024),g&&(n.flowNode=g),ge(n),pe(n,16,n.name?n.name.escapedText:"__function")}(n);case 185:e.isInJavaScriptFile(n)&&function(n){!t.commonJsModuleIndicator&&e.isRequireCall(n,!1)&&xe(n)}(n);break;case 203:case 233:return T=!0,function(n){233===n.kind?fe(n,32,68008383):(pe(n,32,n.name?n.name.escapedText:"__class"),n.name&&N.set(n.name.escapedText,!0));var r=n.symbol,i=M(4194308,"prototype"),a=r.exports.get(i.escapedName);a&&(n.name&&(n.name.parent=n),t.bindDiagnostics.push(O(a.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.symbolName(i)))),r.exports.set(i.escapedName,i),i.parent=r}(n);case 234:return fe(n,64,67901832);case 235:return fe(n,524288,67901928);case 236:return function(t){return e.isConst(t)?fe(t,128,68008831):fe(t,256,68008191)}(n);case 237:return function(n){if(_e(n),e.isAmbientModule(n))if(e.hasModifier(n,1)&&ye(n,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),e.isModuleAugmentationExternal(n))de(n);else{var r=void 0;if(9===n.name.kind){var i=n.name.text;e.hasZeroOrOneAsteriskCharacter(i)?r=e.tryParsePattern(i):ye(n.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,i)}var a=le(n,512,67215503);t.patternAmbientModules=e.append(t.patternAmbientModules,r&&{pattern:r,symbol:a})}else{var o=de(n);0!==o&&((a=n.symbol).constEnumOnlyModule=!(304&a.flags)&&2===o&&!1!==a.constEnumOnlyModule)}}(n);case 261:return function(e){return pe(e,4096,"__jsxAttributes")}(n);case 260:return function(e,t,n){return le(e,4,0)}(n);case 241:case 244:case 246:case 250:return le(n,2097152,2097152);case 240:return function(n){if(n.modifiers&&n.modifiers.length&&t.bindDiagnostics.push(O(n,e.Diagnostics.Modifiers_cannot_appear_here)),272===n.parent.kind){var r=n.parent;e.isExternalModule(r)?r.isDeclarationFile?(t.symbol.globalExports=t.symbol.globalExports||e.createSymbolTable(),z(t.symbol.globalExports,t.symbol,n,2097152,2097152)):t.bindDiagnostics.push(O(n,e.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files)):t.bindDiagnostics.push(O(n,e.Diagnostics.Global_module_exports_may_only_appear_in_module_files))}else t.bindDiagnostics.push(O(n,e.Diagnostics.Global_module_exports_may_only_appear_at_top_level))}(n);case 243:return function(e){e.name&&le(e,2097152,2097152)}(n);case 248:return function(e){d.symbol&&d.symbol.exports?e.exportClause||z(d.symbol.exports,d.symbol,e,8388608,0):pe(e,8388608,R(e))}(n);case 247:return function(t){if(d.symbol&&d.symbol.exports){var n=247===t.kind&&e.exportAssignmentIsAlias(t)?2097152:4;z(d.symbol.exports,d.symbol,t,n,67108863)}else pe(t,2097152,R(t))}(n);case 272:return ve(n.statements),_e(t),void(e.isExternalModule(t)&&be());case 211:if(!e.isFunctionLike(n.parent))return;case 238:return ve(n.statements);case 287:if(283!==n.parent.kind)break;case 292:return le(n,n.isBracketed||n.typeExpression&&279===n.typeExpression.type.kind?16777220:4,0);case 291:var o=n.fullName;o&&71!==o.kind||fe(n,524288,67901928)}}(n),n.kind>144){var o=_;_=n;var c=function(t){switch(t.kind){case 203:case 233:case 236:case 182:case 165:case 283:case 261:return 1;case 234:return 65;case 237:case 235:case 176:return 33;case 272:return 37;case 153:if(e.isObjectLiteralOrClassExpressionMethod(t))return 173;case 154:case 232:case 152:case 155:case 156:case 157:case 280:case 162:case 158:case 159:case 163:return 45;case 190:case 191:return 61;case 238:return 4;case 151:return t.initializer?4:0;case 267:case 218:case 219:case 220:case 239:return 2;case 211:return e.isFunctionLike(t.parent)?0:2}return 0}(n);0===c?J(n):function(t,n){var r=d,i=p;if(1&n?(d=p=t,32&n&&(d.locals=e.createSymbolTable()),ue(d)):2&n&&((p=t).locals=void 0),4&n){var a=g,o=y,s=h,c=v,u=S,l=D,_=16&n&&!e.hasModifier(t,256)&&!!e.getImmediatelyInvokedFunctionExpression(t);_||(g={flags:2},144&n&&(g.container=t)),v=_||154===t.kind?{flags:4,antecedents:void 0}:void 0,y=void 0,h=void 0,S=void 0,D=!1,J(t),t.flags&=-1409,!(1&g.flags)&&8&n&&e.nodeIsPresent(t.body)&&(t.flags|=128,D&&(t.flags|=256)),272===t.kind&&(t.flags|=C),v&&(Q(v,g),g=te(v),154===t.kind&&(t.returnFlowNode=g)),_||(g=a),y=o,h=s,v=c,S=u,D=l}else 64&n?(m=!1,J(t),t.flags=m?64|t.flags:-65&t.flags):J(t);d=r,p=i}(n,c),_=o}else A||0!=(536870912&n.transformFlags)||(I|=s(n,0));T=r}}function ve(n){if(!T)for(var r=0,i=n;r<i.length;r++){var a=i[r];if(!e.isPrologueDirective(a))return;if('"use strict"'===(o=e.getSourceTextOfNodeFromSourceFile(t,a.expression))||"'use strict'"===o)return void(T=!0)}var o}function be(){pe(t,512,'"'+e.removeFileExtension(t.fileName)+'"')}function xe(e){t.commonJsModuleIndicator||(t.commonJsModuleIndicator=e,t.externalModuleIndicator||be())}function ke(t){xe(t);var n=t.left,r=Ne(n.expression,function(t,n){if(n){var r=e.getJSInitializerSymbol(n);return L(r,t,67110400),r}});r&&z(r.exports,r,n,1048580,0)}function Se(t){e.Debug.assert(e.isInJavaScriptFile(t));var n=e.getThisContainer(t,!1);switch(n.kind){case 232:case 190:n.symbol.members=n.symbol.members||e.createSymbolTable(),z(n.symbol.members,n.symbol,t,4,0);break;case 154:case 151:case 153:case 155:case 156:var r=n.parent;z(e.hasModifier(n,32)?r.symbol.exports:r.symbol.members,r.symbol,t,4,0,!0)}}function De(e,t){var n=e.expression,r=n.expression;e.parent=t,r.parent=n,n.parent=e,Te(r,e,!0)}function Ce(e){e.expression.parent=e,Te(e.expression,e,!1)}function Te(t,n,r){var i,a=e.getJSInitializerSymbol(Ee(t));if(e.isBinaryExpression(n.parent)){var o=e.isPropertyAccessExpression(n.parent.left)&&"prototype"===n.parent.left.name.escapedText;i=272===n.parent.parent.parent.kind&&!!e.getJavascriptInitializer(n.parent.right,o)}else i=272===n.parent.parent.kind;r||a&&1920&a.flags||!i||Ne(n.expression,function(e,t){return t?(L(t,e,67110400),t):a=z(a?a.exports:d.locals,a,e,67110400,106639)}),a&&5168&a.flags&&z(r?a.members||(a.members=e.createSymbolTable()):a.exports||(a.exports=e.createSymbolTable()),a,n,4|(i?67108864:0),0&~(i?67108864:0))}function Ee(t){if(e.isIdentifier(t))return o(d,t.escapedText);var n=e.getJSInitializerSymbol(Ee(t.expression));return n&&n.exports&&n.exports.get(t.name.escapedText)}function Ne(n,r){if(i(t,n))return t.symbol;if(e.isIdentifier(n))return r(n,Ee(n));var a=e.getJSInitializerSymbol(Ne(n.expression,r));return e.Debug.assert(!!a&&!!a.exports),r(n.name,a.exports.get(n.name.escapedText))}function Ae(t){T&&me(t,t.name),e.isBindingPattern(t.name)||(e.isBlockOrCatchScoped(t)?function(e){fe(e,2,67216319)}(t):e.isParameterDeclaration(t)?le(t,1,67216319):le(t,1,67216318))}function Pe(n,r,i){return t.isDeclarationFile||2097152&n.flags||!e.isAsyncFunction(n)||(C|=1024),g&&e.isObjectLiteralOrClassExpressionMethod(n)&&(n.flowNode=g),e.hasDynamicName(n)?pe(n,r,"__computed"):le(n,r,i)}}();function i(t,n){return e.isExportsIdentifier(n)||e.isModuleExportsPropertyAccessExpression(n)||e.isIdentifier(n)&&a(t,n)}function a(t,n){var r=o(t,n.escapedText);return r&&r.valueDeclaration&&e.isVariableDeclaration(r.valueDeclaration)&&r.valueDeclaration.initializer&&function t(n,r){return i(n,r)||e.isAssignmentExpression(r,!0)&&(t(n,r.left)||t(n,r.right))}(t,r.valueDeclaration.initializer)}function o(e,t){var n=e.locals&&e.locals.get(t);return n?n.exportSymbol||n:e.symbol&&e.symbol.exports&&e.symbol.exports.get(t)}function s(t,n){var r=t.kind;switch(r){case 185:return function(e,t){var n=t,r=e.expression;return e.typeArguments&&(n|=3),(524288&t||402653184&r.transformFlags)&&(n|=192,268435456&r.transformFlags&&(n|=16384)),91===r.kind&&(n|=67108864,16384&t&&(n|=32768)),e.transformFlags=536870912|n,-940049730&n}(t,n);case 186:return function(e,t){var n=t;return e.typeArguments&&(n|=3),524288&t&&(n|=192),e.transformFlags=536870912|n,-940049730&n}(t,n);case 237:return function(t,n){var r=3;return 0==(2&e.getModifierFlags(t))&&(r|=n),t.transformFlags=536870912|r,-977327426&r}(t,n);case 189:return function(e,t){var n=t,r=e.expression,i=r.kind;return 206!==i&&188!==i||(n|=3),1024&r.transformFlags&&(n|=1024),e.transformFlags=536870912|n,-536872258&n}(t,n);case 198:return function(e,t){var n=t,r=e.operatorToken.kind,i=e.left.kind;return 58===r&&182===i?n|=3272:58===r&&181===i?n|=3264:40!==r&&62!==r||(n|=32),e.transformFlags=536870912|n,-939525442&n}(t,n);case 214:return function(e,t){var n=t;return 1024&e.expression.transformFlags&&(n|=192),e.transformFlags=536870912|n,-939525442&n}(t,n);case 148:return function(t,n){var r=n,i=t.initializer,a=t.dotDotDotToken;return(t.questionToken||t.type||4096&n||e.isThisIdentifier(t.name))&&(r|=3),e.hasModifier(t,92)&&(r|=262147),1048576&n&&(r|=8),(8388608&n||i||a)&&(r|=131264),t.transformFlags=536870912|r,-939525442&r}(t,n);case 191:return function(t,n){var r=192|n;return(e.hasModifier(t,2270)||t.typeParameters||t.type)&&(r|=3),e.hasModifier(t,256)&&(r|=16),1048576&n&&(r|=8),16384&n&&(r|=32768),t.transformFlags=536870912|r,-1003902274&r}(t,n);case 190:return function(t,n){var r=n;return(e.hasModifier(t,2270)||t.typeParameters||t.type)&&(r|=3),e.hasModifier(t,256)&&(r|=t.asteriskToken?8:16),1048576&n&&(r|=8),163840&n&&(r|=192),t.asteriskToken&&(r|=768),t.transformFlags=536870912|r,-1003935042&r}(t,n);case 232:return function(t,n){var r,i=e.getModifierFlags(t);return!t.body||2&i?r=3:(r=33554432|n,(2270&i||t.typeParameters||t.type)&&(r|=3),256&i&&(r|=t.asteriskToken?8:16),1048576&n&&(r|=8),163840&n&&(r|=192),t.asteriskToken&&(r|=768)),t.transformFlags=536870912|r,-1003935042&r}(t,n);case 230:return function(e,t){var n=t;return n|=8388800,1048576&t&&(n|=8),e.type&&(n|=3),e.transformFlags=536870912|n,-939525442&n}(t,n);case 231:return function(e,t){var n=33554432|t;return 8388608&t&&(n|=192),3&e.flags&&(n|=4194496),e.transformFlags=536870912|n,-948962626&n}(t,n);case 212:return function(t,n){var r,i=t.declarationList.transformFlags;return e.hasModifier(t,2)?r=3:(r=n,8388608&i&&(r|=192)),t.transformFlags=536870912|r,-939525442&r}(t,n);case 226:return function(t,n){var r=n;return 4194304&n&&e.isIterationStatement(t,!0)&&(r|=192),t.transformFlags=536870912|r,-939525442&r}(t,n);case 233:return function(t,n){var r;return e.hasModifier(t,2)?r=3:(r=192|n,(274432&n||t.typeParameters)&&(r|=3),65536&n&&(r|=16384)),t.transformFlags=536870912|r,-942011714&r}(t,n);case 203:return function(e,t){var n=192|t;return(274432&t||e.typeParameters)&&(n|=3),65536&t&&(n|=16384),e.transformFlags=536870912|n,-942011714&n}(t,n);case 266:return function(t,n){var r=n;switch(t.token){case 85:r|=192;break;case 108:r|=3;break;default:e.Debug.fail("Unexpected token for heritage clause")}return t.transformFlags=536870912|r,-939525442&r}(t,n);case 267:return function(t,n){var r=n;return t.variableDeclaration?e.isBindingPattern(t.variableDeclaration.name)&&(r|=192):r|=8,t.transformFlags=536870912|r,-940574018&r}(t,n);case 205:return function(e,t){var n=192|t;return e.typeArguments&&(n|=3),e.transformFlags=536870912|n,-939525442&n}(t,n);case 154:return function(t,n){var r=n;return!e.hasModifier(t,2270)&&t.body||(r|=3),1048576&n&&(r|=8),t.transformFlags=536870912|r,-1003668802&r}(t,n);case 151:return function(e,t){var n=3|t;return e.initializer&&(n|=8192),e.transformFlags=536870912|n,-939525442&n}(t,n);case 153:return function(t,n){var r=192|n;return(t.decorators||e.hasModifier(t,2270)||t.typeParameters||t.type||t.name&&e.isComputedPropertyName(t.name)||!t.body)&&(r|=3),1048576&n&&(r|=8),e.hasModifier(t,256)&&(r|=t.asteriskToken?8:16),t.asteriskToken&&(r|=768),t.transformFlags=536870912|r,-1003668802&r}(t,n);case 155:case 156:return function(t,n){var r=n;return(t.decorators||e.hasModifier(t,2270)||t.type||t.name&&e.isComputedPropertyName(t.name)||!t.body)&&(r|=3),1048576&n&&(r|=8),t.transformFlags=536870912|r,-1003668802&r}(t,n);case 241:return function(t,n){var r=n;return e.isExternalModuleImportEqualsDeclaration(t)||(r|=3),t.transformFlags=536870912|r,-939525442&r}(t,n);case 183:return function(e,t){var n=t;return 134217728&n&&(n^=134217728,n|=268435456),e.transformFlags=536870912|n,-671089986&n}(t,n);case 184:return function(e,t){var n=t;return 134217728&e.expression.transformFlags&&(n&=-134217729,n|=268435456),e.transformFlags=536870912|n,-671089986&n}(t,n);default:return function(e,t,n){var r=n,i=939525441;switch(t){case 120:case 195:r|=24;break;case 188:case 206:case 295:r|=3,i=536872257;break;case 114:case 112:case 113:case 117:case 124:case 76:case 236:case 271:case 207:case 132:r|=3;break;case 253:case 254:case 255:case 10:case 256:case 257:case 258:case 259:case 260:case 261:case 262:case 263:r|=4;break;case 13:case 14:case 15:case 16:case 200:case 187:case 269:case 115:case 208:r|=192;break;case 9:e.hasExtendedUnicodeEscape&&(r|=192);break;case 8:384&e.numericLiteralFlags&&(r|=192);break;case 220:e.awaitModifier&&(r|=8),r|=192;break;case 201:r|=16777416;break;case 119:case 134:case 131:case 135:case 137:case 122:case 138:case 105:case 147:case 150:case 152: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 169:case 170:case 171:case 172:case 234:case 235:case 173:case 174:case 175:case 176:case 177:case 240:r=3,i=-3;break;case 146:r|=2097152,16384&n&&(r|=65536);break;case 202:r|=524480;break;case 270:r|=1048584;break;case 97:r|=134217920,i=536872257;break;case 99:r|=16384;break;case 178:r|=8388800,524288&n&&(r|=1048584),i=940049729;break;case 179:r|=8388800,i=940049729;break;case 180:r|=192,e.dotDotDotToken&&(r|=524288);break;case 149:r|=4099;break;case 182:i=942740801,2097152&n&&(r|=192),65536&n&&(r|=16384),1048576&n&&(r|=8);break;case 181:case 186:i=940049729,524288&n&&(r|=192);break;case 216:case 217:case 218:case 219:4194304&n&&(r|=192);break;case 272:32768&n&&(r|=192);break;case 223:case 221:case 222:r|=33554432}return e.transformFlags=536870912|r,r&~i}(t,r,n)}}function c(e){if(e>=160&&e<=177)return-3;switch(e){case 185:case 186:case 181:return 940049729;case 237:return 977327425;case 148:return 939525441;case 191:return 1003902273;case 190:case 232:return 1003935041;case 231:return 948962625;case 233:case 203:return 942011713;case 154:return 1003668801;case 153:case 155:case 156:return 1003668801;case 119:case 134:case 131:case 137:case 135:case 122:case 138:case 105:case 147:case 150:case 152:case 157:case 158:case 159:case 234:case 235:return-3;case 182:return 942740801;case 267:return 940574017;case 178:case 179:return 940049729;case 188:case 206:case 295:case 189:case 97:return 536872257;case 183:case 184:return 671089985;default:return 939525441}}function u(t,n){n.parent=t,e.forEachChild(n,function(e){return u(n,e)})}e.bindSourceFile=function(t,n){e.performance.mark("beforeBind"),r(t,n),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind")},e.isExportsOrModuleExportsOrAlias=i,e.computeTransformFlagsForNode=s,e.getTransformFlagsSubtreeExclusions=c}(l||(l={})),function(e){e.createGetSymbolWalker=function(t,n,r,i,a,o,s,c,u,l){return function(_){void 0===_&&(_=function(){return!0});var d=[],p=[];return{walkType:function(t){try{return f(t),{visitedTypes:e.getOwnValues(d),visitedSymbols:e.getOwnValues(p)}}finally{e.clear(d),e.clear(p)}},walkSymbol:function(t){try{return y(t),{visitedTypes:e.getOwnValues(d),visitedSymbols:e.getOwnValues(p)}}finally{e.clear(d),e.clear(p)}}};function f(t){if(t&&!d[t.id]&&(d[t.id]=t,!y(t.symbol))){if(65536&t.flags){var n=t,r=n.objectFlags;4&r&&function(t){f(t.target),e.forEach(t.typeArguments,f)}(t),32&r&&function(e){f(e.typeParameter),f(e.constraintType),f(e.templateType),f(e.modifiersType)}(t),3&r&&(g(a=t),e.forEach(a.typeParameters,f),e.forEach(i(a),f),f(a.thisType)),24&r&&g(n)}var a;32768&t.flags&&function(e){f(u(e))}(t),393216&t.flags&&function(t){e.forEach(t.types,f)}(t),524288&t.flags&&function(e){f(e.type)}(t),1048576&t.flags&&function(e){f(e.objectType),f(e.indexType),f(e.constraint)}(t)}}function m(i){var a=n(i);a&&f(a.type),e.forEach(i.typeParameters,f);for(var o=0,s=i.parameters;o<s.length;o++)y(s[o]);f(t(i)),f(r(i))}function g(e){f(c(e,0)),f(c(e,1));for(var t=a(e),n=0,r=t.callSignatures;n<r.length;n++)m(r[n]);for(var i=0,o=t.constructSignatures;i<o.length;i++)m(o[i]);for(var s=0,u=t.properties;s<u.length;s++)y(u[s])}function y(t){if(t){var n=e.getSymbolId(t);if(!p[n]){if(p[n]=t,!_(t))return!0;f(o(t)),1952&t.flags&&t.exports.forEach(y),e.forEach(t.declarations,function(e){e.type&&164===e.type.kind&&y(s(l(e.type.exprName)))})}}}}}}(l||(l={})),function(e){function t(t){t.trace(e.formatMessage.apply(void 0,arguments))}function n(e,t){return e.traceResolution&&void 0!==t.trace}function r(e,t){return t&&{path:t.path,extension:t.ext,packageId:e}}function i(e){return r(void 0,e)}var a;function o(t){if(t)return e.Debug.assert(e.extensionIsTypeScript(t.extension)),{fileName:t.path,packageId:t.packageId}}function s(e,t,n,r){return{resolvedModule:e&&{resolvedFileName:e.path,originalPath:t,extension:e.extension,isExternalLibraryImport:n,packageId:e.packageId},failedLookupLocations:r}}function u(n,r,i,a){return n?o("typings")||o("types"):o("main");function o(n){if(e.hasProperty(r,n)){var o=r[n];if(e.isString(o)){var s=e.normalizePath(e.combinePaths(i,o));return a.traceEnabled&&t(a.host,e.Diagnostics.package_json_has_0_field_1_that_references_2,n,o,s),s}a.traceEnabled&&t(a.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_string_got_1,n,typeof o)}else a.traceEnabled&&t(a.host,e.Diagnostics.package_json_does_not_have_a_0_field,n)}}function l(e,t){try{var n=t.readFile(e);return n?JSON.parse(n):{}}catch(e){return{}}}function _(t,n){return t.typeRoots?t.typeRoots:(t.configFilePath?r=e.getDirectoryPath(t.configFilePath):n.getCurrentDirectory&&(r=n.getCurrentDirectory()),void 0!==r?function(t,n){return n.directoryExists?(e.forEachAncestorDirectory(e.normalizePath(t),function(t){var i=e.combinePaths(t,d);n.directoryExists(i)&&(r||(r=[])).push(i)}),r):[e.combinePaths(t,d)];var r}(r,n):void 0);var r}e.trace=t,e.isTraceEnabled=n,function(e){e[e.TypeScript=0]="TypeScript",e[e.JavaScript=1]="JavaScript",e[e.DtsOnly=2]="DtsOnly"}(a||(a={})),e.getEffectiveTypeRoots=_;var d=e.combinePaths("node_modules","@types");function p(t,n,r,i){return{getOrCreateCacheForDirectory:function(n){var a=e.toPath(n,r,i),o=t.get(a);return o||(o=e.createMap(),t.set(a,o)),o},getOrCreateCacheForModuleName:function(t){if(!e.isExternalModuleNameRelative(t)){var a,o=n.get(t);return o||(a=e.createMap(),n.set(t,o={get:function(t){return a.get(e.toPath(t,r,i))},set:function(t,n){var o=e.toPath(t,r,i);if(!a.has(o)){a.set(o,n);for(var s=function(t,n){if(void 0!==n){for(var a=e.toPath(e.getDirectoryPath(n),r,i),o=0;o<Math.min(t.length,a.length)&&t.charCodeAt(o)===a.charCodeAt(o);)o++;var s=t.lastIndexOf(e.directorySeparator,o);if(!(s<0))return t.substr(0,s)}}(o,n.resolvedModule&&n.resolvedModule.resolvedFileName),c=o;;){var u=e.getDirectoryPath(c);if(u===c||a.has(u))break;if(a.set(u,n),(c=u)===s)break}}}})),o}}}}function f(n,r,a,o,s,c){return e.isExternalModuleNameRelative(r)?function(n,r,i,a,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,r);for(var c,u,l=e.normalizePath(e.combinePaths(i,r)),_=0,d=s.compilerOptions.rootDirs;_<d.length;_++){var p=e.normalizePath(v=d[_]);e.endsWith(p,e.directorySeparator)||(p+=e.directorySeparator);var f=e.startsWith(l,p)&&(void 0===u||u.length<p.length);s.traceEnabled&&t(s.host,e.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2,p,l,f),f&&(u=p,c=v)}if(u){s.traceEnabled&&t(s.host,e.Diagnostics.Longest_matching_prefix_for_0_is_1,l,u);var m=l.substr(u.length);s.traceEnabled&&t(s.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,m,u,l);var g=a(n,l,o,!k(i,s.host),s);if(g)return g;s.traceEnabled&&t(s.host,e.Diagnostics.Trying_other_entries_in_rootDirs);for(var y=0,h=s.compilerOptions.rootDirs;y<h.length;y++){var v;if((v=h[y])!==c){var b=e.combinePaths(e.normalizePath(v),m);s.traceEnabled&&t(s.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,m,v,b);var x=a(n,b,o,!k(e.getDirectoryPath(b),s.host),s);if(x)return x}}s.traceEnabled&&t(s.host,e.Diagnostics.Module_resolution_using_rootDirs_has_failed)}}}(n,r,a,o,s,c):function(n,r,a,o,s){if(s.compilerOptions.baseUrl){var c;if(s.traceEnabled&&t(s.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s.compilerOptions.baseUrl,r),s.compilerOptions.paths&&(s.traceEnabled&&t(s.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,r),c=e.matchPatternOrExact(e.getOwnKeys(s.compilerOptions.paths),r)),c){var u=e.isString(c)?void 0:e.matchedText(c,r),l=e.isString(c)?c:e.patternText(c);return s.traceEnabled&&t(s.host,e.Diagnostics.Module_name_0_matched_pattern_1,r,l),e.forEach(s.compilerOptions.paths[l],function(r){var c=u?r.replace("*",u):r,l=e.normalizePath(e.combinePaths(s.compilerOptions.baseUrl,c));s.traceEnabled&&t(s.host,e.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,r,c);var _=e.tryGetExtensionFromPath(l);if(void 0!==_){var d=T(l,o,!1,s);if(void 0!==d)return i({path:d,ext:_})}return a(n,l,o,!k(e.getDirectoryPath(l),s.host),s)})}var _=e.normalizePath(e.combinePaths(s.compilerOptions.baseUrl,r));return s.traceEnabled&&t(s.host,e.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,r,s.compilerOptions.baseUrl,_),a(n,_,o,!k(e.getDirectoryPath(_),s.host),s)}}(n,r,o,s,c)}function m(t,n,r,i,a){return g(t,e.getDirectoryPath(n),r,i,a,!1)}function g(r,i,o,u,l,_){var d=n(o,u),p=[],m={compilerOptions:o,host:u,traceEnabled:d},g=_?b(a.JavaScript):b(a.TypeScript)||b(a.JavaScript);if(g&&g.value){var v=g.value;return s(v.resolved,v.originalPath,v.isExternalLibraryImport,p)}return{resolvedModule:void 0,failedLookupLocations:p};function b(n){var s=f(n,r,i,function(e,t,n,r,i){return h(e,t,n,r,i,!0)},p,m);if(s)return J({resolved:s,isExternalLibraryImport:!1});if(e.isExternalModuleNameRelative(r)){var _=e.normalizePathAndParts(e.combinePaths(i,r)),g=_.parts,v=h(n,_.path,p,!1,m,!0);return v&&J({resolved:v,isExternalLibraryImport:e.contains(g,"node_modules")})}d&&t(u,e.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,r,a[n]);var b=I(n,r,i,p,m,l);if(b){var x=b.value,k=void 0;if(!o.preserveSymlinks&&x){k=x.path;var S=y(b.value.path,u,d);S===k&&(k=void 0),x=c({},x,{path:S})}return{value:x&&{resolved:x,originalPath:k,isExternalLibraryImport:!0}}}}}function y(n,r,i){if(!r.realpath)return n;var a=e.normalizePath(r.realpath(n));return i&&t(r,e.Diagnostics.Resolving_real_path_for_0_result_1,n,a),a}function h(n,i,o,s,c,u){if(c.traceEnabled&&t(c.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,i,a[n]),!e.pathEndsWithDirectorySeparator(i)){if(!s){var l=e.getDirectoryPath(i);k(l,c.host)||(c.traceEnabled&&t(c.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),s=!0)}var _=D(n,i,o,s,c);if(_){var d=u?function(t){var n=e.normalizePath(t.path),r=n.lastIndexOf(v);if(-1!==r){var i=r+v.length,a=b(n,i);return 64===n.charCodeAt(i)&&(a=b(n,a)),{packageDirectory:n.slice(0,a),subModuleName:e.removeExtension(n.slice(a+1),t.ext)+".d.ts"}}}(_):void 0;return r(d&&A(d.packageDirectory,d.subModuleName,o,!1,c).packageId,_)}}return s||k(i,c.host)||(c.traceEnabled&&t(c.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,i),s=!0),E(n,i,o,s,c,u)}e.resolveTypeReferenceDirective=function(r,i,s,u){var l=n(s,u),d={compilerOptions:s,host:u,traceEnabled:l},p=_(s,u);l&&(void 0===i?void 0===p?t(u,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,r):t(u,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,r,p):void 0===p?t(u,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,r,i):t(u,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,r,i,p));var f,m=[],g=function(){if(p&&p.length)return l&&t(u,e.Diagnostics.Resolving_with_primary_search_path_0,p.join(", ")),e.forEach(p,function(n){var i=e.combinePaths(n,r),s=e.getDirectoryPath(i),c=k(s,u);return!c&&l&&t(u,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,s),o(E(a.DtsOnly,i,m,!c,d))});l&&t(u,e.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)}(),h=!0;return g||(g=function(){var n,s=i&&e.getDirectoryPath(i);if(void 0!==s){l&&t(u,e.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,s);var c=I(a.DtsOnly,r,s,m,d,void 0);return!(n=o(c&&c.value))&&l&&t(u,e.Diagnostics.Type_reference_directive_0_was_not_resolved,r),n}l&&t(u,e.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}(),h=!1),g&&(s.preserveSymlinks||(g=c({},g,{fileName:y(g.fileName,u,l)})),l&&t(u,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,r,g.fileName,h),f={primary:h,resolvedFileName:g.fileName,packageId:g.packageId}),{resolvedTypeReferenceDirective:f,failedLookupLocations:m}},e.getAutomaticTypeDirectiveNames=function(t,n){if(t.types)return t.types;var r=[];if(n.directoryExists&&n.getDirectories){var i=_(t,n);if(i)for(var a=0,o=i;a<o.length;a++){var s=o[a];if(n.directoryExists(s))for(var c=0,u=n.getDirectories(s);c<u.length;c++){var d=e.normalizePath(u[c]),p=P(e.combinePaths(s,d));n.fileExists(p)&&null===l(p,n).typings||r.push(e.getBaseFileName(d))}}}return r},e.createModuleResolutionCache=function(t,n){return p(e.createMap(),e.createMap(),t,n)},e.createModuleResolutionCacheWithMaps=p,e.resolveModuleName=function(r,i,a,o,s){var c=n(a,o);c&&t(o,e.Diagnostics.Resolving_module_0_from_1,r,i);var u=e.getDirectoryPath(i),l=s&&s.getOrCreateCacheForDirectory(u),_=l&&l.get(r);if(_)c&&t(o,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,r,u);else{var d=a.moduleResolution;switch(void 0===d?(d=e.getEmitModuleKind(a)===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:_=m(r,i,a,o,s);break;case e.ModuleResolutionKind.Classic:_=j(r,i,a,o,s);break;default:e.Debug.fail("Unexpected moduleResolution: "+d)}if(l){l.set(r,_);var p=s.getOrCreateCacheForModuleName(r);p&&p.set(u,_)}}return c&&(_.resolvedModule?t(o,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1,r,_.resolvedModule.resolvedFileName):t(o,e.Diagnostics.Module_name_0_was_not_resolved,r)),_},e.nodeModuleNameResolver=m,e.resolveJavaScriptModule=function(t,n,r){var i=g(t,n,{moduleResolution:e.ModuleResolutionKind.NodeJs,allowJs:!0},r,void 0,!0),a=i.resolvedModule;if(!a)throw new Error("Could not resolve JS module '"+t+"' starting at '"+n+"'. Looked in: "+i.failedLookupLocations.join(", "));return a.resolvedFileName};var v="/node_modules/";function b(t,n){var r=t.indexOf(e.directorySeparator,n+1);return-1===r?n:r}function x(t){return""===t?"index.d.ts":e.endsWith(t,".d.ts")?t:e.endsWith(t,"/index")?t+".d.ts":t+"/index.d.ts"}function k(e,t){return!t.directoryExists||t.directoryExists(e)}function S(e,t,n,r,a){return i(D(e,t,n,r,a))}function D(n,r,i,a,o){var s=C(r,n,i,a,o);if(s)return s;if(e.hasJavaScriptFileExtension(r)){var c=e.removeFileExtension(r);if(o.traceEnabled){var u=r.substring(c.length);t(o.host,e.Diagnostics.File_name_0_has_a_1_extension_stripping_it,r,u)}return C(c,n,i,a,o)}}function C(t,n,r,i,o){if(!i){var s=e.getDirectoryPath(t);s&&(i=!k(s,o.host))}switch(n){case a.DtsOnly:return c(".d.ts");case a.TypeScript:return c(".ts")||c(".tsx")||c(".d.ts");case a.JavaScript:return c(".js")||c(".jsx")}function c(e){var n=T(t+e,r,i,o);return n&&{path:n,ext:e}}}function T(n,r,i,a){if(!i){if(a.host.fileExists(n))return a.traceEnabled&&t(a.host,e.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,n),n;a.traceEnabled&&t(a.host,e.Diagnostics.File_0_does_not_exist,n)}r.push(n)}function E(e,t,n,i,a,o){void 0===o&&(o=!0);var s=o?A(t,"",n,i,a):{packageJsonContent:void 0,packageId:void 0};return r(s.packageId,N(e,t,n,i,a,s.packageJsonContent))}function N(n,r,i,o,s,c){var l=c&&function(n,r,i,o,s){var l=u(r!==a.JavaScript,c,i,s);if(l){var _=!k(e.getDirectoryPath(l),s.host),d=T(l,o,_,s);if(d){var p=d&&function(t,n){var r=e.tryGetExtensionFromPath(n);return void 0!==r&&function(e,t){switch(e){case a.JavaScript:return".js"===t||".jsx"===t;case a.TypeScript:return".ts"===t||".tsx"===t||".d.ts"===t;case a.DtsOnly:return".d.ts"===t}}(t,r)?{path:n,ext:r}:void 0}(r,d);if(p)return p;s.traceEnabled&&t(s.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,d)}var f=h(r===a.DtsOnly?a.TypeScript:r,l,o,_,s,!1);return f?(e.Debug.assert(void 0===f.packageId),{path:f.path,ext:f.extension}):void 0}}(0,n,r,i,s);if(l)return l;var _=!o&&k(r,s.host);return D(n,e.combinePaths(r,"index"),i,!_,s)}function A(n,r,i,a,o){var s=o.host,c=o.traceEnabled,_=!a&&k(n,s),d=P(n);if(_&&s.fileExists(d)){var p=l(d,s);if(""===r){var f=u(!0,p,n,o);if("string"==typeof f)r=x(f.substring(n.length+1));else{var m=u(!1,p,n,o);r="string"==typeof m?e.removeExtension(e.removeExtension(m.substring(n.length+1),".js"),".jsx")+".d.ts":"index.d.ts"}}e.endsWith(r,".d.ts")||(r=x(r));var g="string"==typeof p.name&&"string"==typeof p.version?{name:p.name,subModuleName:r,version:p.version}:void 0;return c&&(g?t(s,e.Diagnostics.Found_package_json_at_0_Package_ID_is_1,d,e.packageIdToString(g)):t(s,e.Diagnostics.Found_package_json_at_0,d)),{found:!0,packageJsonContent:p,packageId:g}}return _&&c&&t(s,e.Diagnostics.File_0_does_not_exist,d),i.push(d),{found:!1,packageJsonContent:void 0,packageId:void 0}}function P(t){return e.combinePaths(t,"package.json")}function w(t,n,i,a,o,s){var c,u,l=e.normalizePath(e.combinePaths(i,n)),_=A(l,"",o,!a,s);if(_.found)c=_.packageJsonContent,u=_.packageId;else{var d=F(n),p=d.rest;""!==p&&(u=A(e.combinePaths(i,d.packageName),p,o,!a,s).packageId)}return r(u,D(t,l,o,!a,s)||N(t,l,o,!a,s,c))}function F(t){var n=t.indexOf(e.directorySeparator);return"@"===t[0]&&(n=t.indexOf(e.directorySeparator,n+1)),-1===n?{packageName:t,rest:""}:{packageName:t.slice(0,n),rest:t.slice(n+1)}}function I(e,t,n,r,i,a){return O(e,t,n,r,i,!1,a)}function O(t,n,r,i,a,o,s){var c=s&&s.getOrCreateCacheForModuleName(n);return e.forEachAncestorDirectory(e.normalizeSlashes(r),function(r){if("node_modules"!==e.getBaseFileName(r))return z(c,n,r,a.traceEnabled,a.host,i)||J(M(t,n,r,i,a,o))})}function M(n,r,i,o,s,c){void 0===c&&(c=!1);var u=e.combinePaths(i,"node_modules"),l=k(u,s.host);!l&&s.traceEnabled&&t(s.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,u);var _=c?void 0:w(n,r,u,l,o,s);if(_)return _;if(n!==a.JavaScript){var d=e.combinePaths(u,"@types"),p=l;return l&&!k(d,s.host)&&(s.traceEnabled&&t(s.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,d),p=!1),w(a.DtsOnly,function(n,r){var i=R(n);return r.traceEnabled&&i!==n&&t(r.host,e.Diagnostics.Scoped_package_detected_looking_in_0,i),i}(r,s),d,p,o,s)}}e.directoryProbablyExists=k,e.getPackageName=F;var L="__";function R(t){if(e.startsWith(t,"@")){var n=t.replace(e.directorySeparator,L);if(n!==t)return n.slice(1)}return t}function B(t){return e.stringContains(t,L)?"@"+t.replace(L,e.directorySeparator):t}function z(n,r,i,a,o,s){var c=n&&n.get(i);if(c)return a&&t(o,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,r,i),s.push.apply(s,c.failedLookupLocations),{value:c.resolvedModule&&{path:c.resolvedModule.resolvedFileName,extension:c.resolvedModule.extension,packageId:c.resolvedModule.packageId}}}function j(t,r,i,o,c){var u=n(i,o),l={compilerOptions:i,host:o,traceEnabled:u},_=[],d=e.getDirectoryPath(r),p=m(a.TypeScript)||m(a.JavaScript);return s(p&&p.value,void 0,!1,_);function m(n){var r=f(n,t,d,S,_,l);if(r)return{value:r};var i=c&&c.getOrCreateCacheForModuleName(t);if(e.isExternalModuleNameRelative(t)){var s=e.normalizePath(e.combinePaths(d,t));return J(S(n,s,_,!1,l))}return e.forEachAncestorDirectory(d,function(r){var a=z(i,t,r,u,o,_);if(a)return a;var s=e.normalizePath(e.combinePaths(r,t));return J(S(n,s,_,!1,l))})||(n===a.TypeScript?function(e,t,n,r){return O(a.DtsOnly,e,d,n,r,!0,void 0)}(t,0,_,l):void 0)}}function J(e){return void 0!==e?{value:e}:void 0}e.getTypesPackageName=function(e){return"@types/"+R(e)},e.getMangledNameForScopedPackage=R,e.getPackageNameFromAtTypesDirectory=function(t){var n=e.removePrefix(t,"@types/");return n!==t?B(n):t},e.getUnmangledNameForScopedPackage=B,e.classicNameResolver=j,e.loadModuleFromGlobalCache=function(r,i,o,c,u){var l=n(o,c);l&&t(c,e.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,i,r,u);var _=[];return s(M(a.DtsOnly,r,u,_,{compilerOptions:o,host:c,traceEnabled:l}),void 0,!0,_)}}(l||(l={})),function(e){var t,n=/^".+"$/,r=1,i=1,a=1,o=1;function s(e){return e.id||(e.id=i,i++),e.id}function u(e){return e.id||(e.id=r,r++),e.id}function l(t,n){var r=e.getModuleInstanceState(t);return 1===r||n&&2===r}function _(t){switch(t.parent.kind){case 246:case 250:return e.isIdentifier(t);default:return e.isDeclarationName(t)}}function d(e){switch(e.kind){case 243:case 241:case 244:case 246:return!0;case 71:return 246===e.parent.kind;default:return!1}}e.getNodeId=s,e.getSymbolId=u,e.isInstantiatedModule=l,e.createTypeChecker=function(r,i){var p,f,m,g=e.objectAllocator.getSymbolConstructor(),y=e.objectAllocator.getTypeConstructor(),h=e.objectAllocator.getSignatureConstructor(),v=0,b=0,x=0,k=0,S=e.createSymbolTable(),D=e.identity,C=r.getCompilerOptions(),T=e.getEmitScriptTarget(C),E=e.getEmitModuleKind(C),N=!!C.noUnusedLocals||!!C.noUnusedParameters,A=e.getAllowSyntheticDefaultImports(C),P=e.getStrictOptionValue(C,"strictNullChecks"),w=e.getStrictOptionValue(C,"strictFunctionTypes"),F=e.getStrictOptionValue(C,"strictPropertyInitialization"),I=e.getStrictOptionValue(C,"noImplicitAny"),O=e.getStrictOptionValue(C,"noImplicitThis"),M=function(){var t,n=r.getResolvedTypeReferenceDirectives();return n&&(t=e.createMap(),n.forEach(function(e,n){if(e){var i=r.getSourceFile(e.resolvedFileName);t.set(i.path,n)}})),{getReferencedExportContainer:$f,getReferencedImportDeclaration:Zf,getReferencedDeclarationWithCollidingName:tm,isDeclarationWithCollidingName:nm,isValueAliasDeclaration:function(t){return!(t=e.getParseTreeNode(t))||rm(t)},hasGlobalName:hm,isReferencedAliasDeclaration:function(t,n){return!(t=e.getParseTreeNode(t))||function t(n,r){if(e.isAliasSymbolDeclaration(n)){var i=ir(n);if(i&&yn(i).referenced)return!0;var a=yn(i).target;if(a&&1&e.getModifierFlags(n)&&67216319&a.flags)return!0}return!!r&&e.forEachChild(n,function(e){return t(e,r)})}(t,n)},getNodeCheckFlags:function(t){return(t=e.getParseTreeNode(t))?lm(t):void 0},isTopLevelValueImportEqualsWithEntityName:im,isDeclarationVisible:Or,isImplementationOfOverload:sm,isRequiredInitializedParameter:cm,isOptionalUninitializedParameterProperty:um,writeTypeOfDeclaration:mm,writeReturnTypeOfSignatureDeclaration:gm,writeTypeOfExpression:ym,isSymbolAccessible:xr,isEntityNameVisible:Dr,getConstantValue:function(t){return(t=e.getParseTreeNode(t,dm))?pm(t):void 0},collectLinkedAliases:Mr,getReferencedValueDeclaration:bm,getTypeReferenceSerializationKind:fm,isOptionalParameter:qa,moduleExportsSomeValue:Yf,isArgumentsLocalBinding:Qf,getExternalModuleFileFromDeclaration:Sm,getTypeReferenceDirectivesForEntityName:function(e){if(t){var n=183===e.kind||71===e.kind&&Mu(e)?68264895:67903464,r=Un(e,n,!0);return r&&r!==X?i(r,n):void 0}},getTypeReferenceDirectivesForSymbol:i,isLiteralConstDeclaration:xm,isLateBound:function(t){var n=(t=e.getParseTreeNode(t,e.isDeclaration))&&ir(t);return!!(n&&1024&e.getCheckFlags(n))},writeLiteralConstValue:km,getJsxFactoryEntity:function(t){return t?(sn(t),e.getSourceFileOfNode(t).localJsxFactory||jt):jt}};function i(n,r){if(t&&function(n){if(!n.declarations)return!1;for(var r=n;;){var i=ar(r);if(!i)break;r=i}if(r.valueDeclaration&&272===r.valueDeclaration.kind&&512&r.flags)return!1;for(var a=0,o=n.declarations;a<o.length;a++){var s=e.getSourceFileOfNode(o[a]);if(t.has(s.path))return!0}return!1}(n)){for(var i,a=0,o=n.declarations;a<o.length;a++){var s=o[a];if(s.symbol&&s.symbol.flags&r){var c=e.getSourceFileOfNode(s),u=t.get(c.path);if(!u)return;(i||(i=[])).push(u)}}return i}}}(),L=function(){return{typeToTypeNode:function(r,i,a,o){e.Debug.assert(void 0===i||0==(8&i.flags));var s=t(i,a,o),c=n(r,s);return s.encounteredError?void 0:c},indexInfoToIndexSignatureDeclaration:function(n,r,a,o,s){e.Debug.assert(void 0===a||0==(8&a.flags));var c=t(a,o,s),u=i(n,r,c);return c.encounteredError?void 0:u},signatureToSignatureDeclaration:function(n,r,i,o,s){e.Debug.assert(void 0===i||0==(8&i.flags));var c=t(i,o,s),u=a(n,r,c);return c.encounteredError?void 0:u},symbolToEntityName:function(n,r,i,a,o){e.Debug.assert(void 0===i||0==(8&i.flags));var s=t(i,a,o),c=_(n,s,r,!1);return s.encounteredError?void 0:c},symbolToExpression:function(n,r,i,a,o){e.Debug.assert(void 0===i||0==(8&i.flags));var s=t(i,a,o),u=function(t,n,r){var i=c(t,n,r);return function t(r,i){var a=l(r,i,n),o=r[i];0===i&&(n.flags|=16777216);var s=Ir(o,n);0===i&&(n.flags^=16777216);var c=s.charCodeAt(0),u=e.isIdentifierStart(c,T);if(0===i||u){var _=e.setEmitFlags(e.createIdentifier(s,a),16777216);return _.symbol=o,i>0?e.createPropertyAccess(t(r,i-1),_):_}91===c&&(c=(s=s.substring(1,s.length-1)).charCodeAt(0));var d=void 0;return e.isSingleOrDoubleQuote(c)?(d=e.createLiteral(s.substring(1,s.length-1).replace(/\\./g,function(e){return e.substring(1)}))).singleQuote=39===c:""+ +s===s&&(d=e.createLiteral(+s)),d||((d=e.setEmitFlags(e.createIdentifier(s,a),16777216)).symbol=o),e.createElementAccess(t(r,i-1),d)}(i,i.length-1)}(n,s,r);return s.encounteredError?void 0:u},symbolToTypeParameterDeclarations:function(n,r,i,a){e.Debug.assert(void 0===r||0==(8&r.flags));var o=t(r,i,a),s=u(n,o);return o.encounteredError?void 0:s},symbolToParameterDeclaration:function(n,r,i,a){e.Debug.assert(void 0===r||0==(8&r.flags));var o=t(r,i,a),c=s(n,o);return o.encounteredError?void 0:c},typeParameterToDeclaration:function(n,r,i,a){e.Debug.assert(void 0===r||0==(8&r.flags));var s=t(r,i,a),c=o(n,s);return s.encounteredError?void 0:c}};function t(t,n,r){return{enclosingDeclaration:t,flags:n,tracker:r&&r.trackSymbol?r:{trackSymbol:e.noop},encounteredError:!1,symbolStack:void 0,inferTypeParameters:void 0}}function n(t,s){var c=8388608&s.flags;if(s.flags&=-8388609,t){if(1&t.flags)return e.createKeywordTypeNode(119);if(2&t.flags)return e.createKeywordTypeNode(137);if(4&t.flags)return e.createKeywordTypeNode(134);if(8&t.flags)return e.createKeywordTypeNode(122);if(256&t.flags&&!(131072&t.flags)){var u=ar(t.symbol),l=_(u,s,67901928,!1),d=wi(u)===t?l:e.createQualifiedName(l,e.symbolName(t.symbol));return e.createTypeReferenceNode(d,void 0)}if(272&t.flags){var p=_(t.symbol,s,67901928,!1);return e.createTypeReferenceNode(p,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){if(!(1048576&s.flags)){if(br(t.symbol,s.enclosingDeclaration))return e.createTypeQueryNode(_(t.symbol,s,67216319,!1));s.tracker.reportInaccessibleUniqueSymbolError&&s.tracker.reportInaccessibleUniqueSymbolError()}return e.createTypeOperatorNode(141,e.createKeywordTypeNode(138))}if(2048&t.flags)return e.createKeywordTypeNode(105);if(4096&t.flags)return e.createKeywordTypeNode(140);if(8192&t.flags)return e.createKeywordTypeNode(95);if(16384&t.flags)return e.createKeywordTypeNode(131);if(512&t.flags)return e.createKeywordTypeNode(138);if(134217728&t.flags)return e.createKeywordTypeNode(135);if(32768&t.flags&&t.isThisType)return 4194304&s.flags&&(s.encounteredError||32768&s.flags||(s.encounteredError=!0),s.tracker.reportInaccessibleThisError&&s.tracker.reportInaccessibleThisError()),e.createThis();var f=e.getObjectFlags(t);if(4&f)return e.Debug.assert(!!(65536&t.flags)),function(t){var i=t.typeArguments||e.emptyArray;if(t.target===Pe){if(2&s.flags){var a=n(i[0],s);return e.createTypeReferenceNode("Array",[a])}var o=n(i[0],s);return e.createArrayTypeNode(o)}if(8&t.target.objectFlags){if(i.length>0){var c=r(i.slice(0,xo(t)),s);if(c&&c.length>0)return e.createTupleTypeNode(c)}return s.encounteredError||524288&s.flags?e.createTupleTypeNode([]):void(s.encounteredError=!0)}if(2048&s.flags&&t.symbol.valueDeclaration&&203===t.symbol.valueDeclaration.kind)return D(t);var u=t.target.outerTypeParameters,l=0,_=void 0;if(u)for(var d=u.length;l<d;){var p=l,f=go(u[l]);do{l++}while(l<d&&go(u[l])===f);if(!e.rangeEquals(u,i,p,l)){var m=r(i.slice(p,l),s),g=m&&e.createNodeArray(m),y=T(f);(71===y.kind?y:y.right).typeArguments=g,_?(e.Debug.assert(!_.right),_=E(_,y),_=e.createQualifiedName(_,void 0)):_=e.createQualifiedName(y,void 0)}}var h=void 0,v=T(t.symbol);_?(e.Debug.assert(!_.right),h=_=E(_,v)):h=v;var b=void 0;return i.length>0&&(b=r(i.slice(l,(t.target.typeParameters||e.emptyArray).length),s)),b&&((71===h.kind?h:h.right).typeArguments=void 0),e.createTypeReferenceNode(h,b)}(t);if(32768&t.flags||3&f)return 32768&t.flags&&e.contains(s.inferTypeParameters,t)?e.createInferTypeNode(e.createTypeParameterDeclaration(Ir(t.symbol))):(p=t.symbol?_(t.symbol,s,67901928,!1):e.createIdentifier("?"),e.createTypeReferenceNode(p,void 0));if(!c&&t.aliasSymbol&&(16384&s.flags||0===xr(t.aliasSymbol,s.enclosingDeclaration,67901928,!1).accessibility)){p=T(t.aliasSymbol);var m=r(t.aliasTypeArguments,s);return e.createTypeReferenceNode(p,m)}if(393216&t.flags){var g=r(131072&t.flags?function(e){for(var t=[],n=0,r=0;r<e.length;r++){var i=e[r];if(n|=i.flags,!(12288&i.flags)){if(384&i.flags){var a=128&i.flags?ue:Ei(i);if(131072&a.flags){var o=a.types.length;if(r+o<=e.length&&e[r+o-1]===a.types[o-1]){t.push(a),r+=o-1;continue}}}t.push(i)}}return 8192&n&&t.push(re),4096&n&&t.push(te),t||e}(t.types):t.types,s);if(g&&g.length>0)return e.createUnionOrIntersectionTypeNode(131072&t.flags?168:169,g);s.encounteredError||262144&s.flags||(s.encounteredError=!0)}else{if(48&f)return e.Debug.assert(!!(65536&t.flags)),D(t);if(524288&t.flags){var y=n(t.type,s);return e.createTypeOperatorNode(y)}if(1048576&t.flags){var h=n(t.objectType,s);return y=n(t.indexType,s),e.createIndexedAccessTypeNode(h,y)}if(2097152&t.flags){var v=n(t.checkType,s),b=s.inferTypeParameters;s.inferTypeParameters=t.root.inferTypeParameters;var x=n(t.extendsType,s);s.inferTypeParameters=b;var k=n(Es(t),s),S=n(Ns(t),s);return e.createConditionalTypeNode(v,x,k,S)}if(4194304&t.flags)return n(t.typeVariable,s);e.Debug.fail("Should be unreachable.")}}else s.encounteredError=!0;function D(t){var n=t.symbol;if(n){if(32&n.flags&&!ai(n)&&!(203===n.valueDeclaration.kind&&2048&s.flags)||896&n.flags||function(){var t=!!(8192&n.flags)&&e.some(n.declarations,function(t){return e.hasModifier(t,32)}),r=!!(16&n.flags)&&(n.parent||e.forEach(n.declarations,function(e){return 272===e.parent.kind||238===e.parent.kind}));if(t||r)return(!!(4096&s.flags)||e.contains(s.symbolStack,n))&&(!(8&s.flags)||br(n,s.enclosingDeclaration))}())return function(t,n){var r=_(t,s,67216319,!1);return e.createTypeQueryNode(r)}(n);if(e.contains(s.symbolStack,n)){var r=function(t){if(t.symbol&&2048&t.symbol.flags){var n=e.findAncestor(t.symbol.declarations[0].parent,function(e){return 172!==e.kind});if(235===n.kind)return ir(n)}}(t);if(r){var i=_(r,s,67901928,!1);return e.createTypeReferenceNode(i,void 0)}return e.createKeywordTypeNode(119)}if(s.symbolStack||(s.symbolStack=[]),16&e.getObjectFlags(t)&&t.symbol&&32&t.symbol.flags)return C(t);s.symbolStack.push(n);var a=C(t);return s.symbolStack.pop(),a}return C(t)}function C(t){if(pa(t))return function(t){e.Debug.assert(!!(65536&t.flags));var r=t.declaration.readonlyToken?e.createToken(t.declaration.readonlyToken.kind):void 0,i=t.declaration.questionToken?e.createToken(t.declaration.questionToken.kind):void 0,a=o(oa(t),s,sa(t)),c=n(ca(t),s),u=e.createMappedTypeNode(r,a,i,c);return e.setEmitFlags(u,1)}(t);var r=fa(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)return a(r.callSignatures[0],162,s);if(1===r.constructSignatures.length&&!r.callSignatures.length)return a(r.constructSignatures[0],163,s)}var c=s.flags;s.flags|=4194304;var u=function(t){for(var r=[],o=0,c=t.callSignatures;o<c.length;o++)r.push(a(c[o],157,s));for(var u=0,l=t.constructSignatures;u<l.length;u++)r.push(a(l[u],158,s));if(t.stringIndexInfo){var d=2048&t.objectFlags?po(Y,t.stringIndexInfo.isReadonly,t.stringIndexInfo.declaration):t.stringIndexInfo;r.push(i(d,0,s))}t.numberIndexInfo&&r.push(i(t.numberIndexInfo,1,s));var p=t.properties;if(!p)return r;for(var f=0,m=p;f<m.length;f++){var g=m[f];if(2048&s.flags){if(4194304&g.flags)continue;24&e.getDeclarationModifierFlagsFromSymbol(g)&&s.tracker.reportPrivateInBaseOfClassExpression&&s.tracker.reportPrivateInBaseOfClassExpression(e.unescapeLeadingUnderscores(g.escapedName))}var y=2048&e.getCheckFlags(g)&&33554432&s.flags?Y:ci(g),h=s.enclosingDeclaration;if(s.enclosingDeclaration=void 0,1024&e.getCheckFlags(g)){var v=e.firstOrUndefined(g.declarations),b=Ki(v)&&Un(v.name.expression,67216319);b&&s.tracker.trackSymbol&&s.tracker.trackSymbol(b,h,67216319)}var x=_(g,s,67216319,!0);s.enclosingDeclaration=h;var k=16777216&g.flags?e.createToken(55):void 0;if(8208&g.flags&&!ma(y).length)for(var S=0,D=La(y,0);S<D.length;S++){var C=a(D[S],152,s);C.name=x,C.questionToken=k,r.push(C)}else{var T=s.flags;s.flags|=2048&e.getCheckFlags(g)?33554432:0;var E=y?n(y,s):e.createKeywordTypeNode(119);s.flags=T;var N=Md(g)?[e.createToken(132)]:void 0,A=e.createPropertySignature(N,x,k,E,void 0);r.push(A)}}return r.length?r:void 0}(r);s.flags=c;var l=e.createTypeLiteralNode(u);return e.setEmitFlags(l,1024&s.flags?0:1)}function T(t){return 32&t.flags||!dr(t.escapedName)?_(t,s,67901928,!1):e.createIdentifier("")}function E(t,n){if(e.Debug.assert(void 0===t.right),71===n.kind)return t.right=n,t;for(var r=n;71!==r.left.kind;)r=r.left;return t.right=r.left,r.left=t,n}}function r(t,r){if(e.some(t)){for(var i=[],a=0,o=t;a<o.length;a++){var s=n(o[a],r);s&&i.push(s)}return i}}function i(t,r,i){var a=e.getNameFromIndexInfo(t)||"x",o=e.createKeywordTypeNode(0===r?137:134),s=e.createParameter(void 0,void 0,void 0,a,void 0,o,void 0),c=n(t.type?t.type:Y,i);return t.type||2097152&i.flags||(i.encounteredError=!0),e.createIndexSignature(void 0,t.isReadonly?[e.createToken(132)]:void 0,[s],c)}function a(t,r,i){var a,c;32&i.flags&&t.target&&t.mapper&&t.target.typeParameters?c=t.target.typeParameters.map(function(e){return n(ac(e,t.mapper),i)}):a=t.typeParameters&&t.typeParameters.map(function(e){return o(e,i)});var u,l=t.parameters.map(function(e){return s(e,i)});if(t.thisParameter){var _=s(t.thisParameter,i);l.unshift(_)}var d=to(t);if(d){var p=1===d.kind?e.setEmitFlags(e.createIdentifier(d.parameterName),16777216):e.createThisTypeNode(),f=n(d.type,i);u=e.createTypePredicateNode(p,f)}else{var m=no(t);u=m&&n(m,i)}return 256&i.flags?u&&119===u.kind&&(u=void 0):u||(u=e.createKeywordTypeNode(119)),e.createSignatureDeclaration(r,a,l,u,c)}function o(t,r,i){void 0===i&&(i=mo(t));var a=r.flags;r.flags&=-513;var o=_(t.symbol,r,67901928,!0),s=i&&n(i,r),c=Aa(t),u=c&&n(c,r);return r.flags=a,e.createTypeParameterDeclaration(o,s,u)}function s(t,r){var i=e.getDeclarationOfKind(t,148);e.Debug.assert(!!i||ln(t)&&!!t.isRestParameter);var a=ci(t);i&&cm(i)&&(a=au(a));var o=n(a,r),s=!(8192&r.flags)&&i&&i.modifiers&&i.modifiers.map(e.getSynthesizedClone),c=!i||e.isRestParameter(i)?e.createToken(24):void 0,u=i&&i.name?71===i.name.kind?e.setEmitFlags(e.getSynthesizedClone(i.name),16777216):function t(n){var r=e.visitEachChild(n,t,e.nullTransformationContext,void 0,t),i=e.nodeIsSynthesized(r)?r:e.getSynthesizedClone(r);return 180===i.kind&&(i.initializer=void 0),e.setEmitFlags(i,16777217)}(i.name):e.symbolName(t),l=i&&qa(i)?e.createToken(55):void 0;return e.createParameter(void 0,s,c,u,l,o,void 0)}function c(t,n,r){var i;return n.tracker.trackSymbol(t,n.enclosingDeclaration,r),262144&t.flags||!(n.enclosingDeclaration||64&n.flags)?i=[t]:(i=function t(r,i,a){var o,s=hr(r,n.enclosingDeclaration,i,!!(128&n.flags));if(!s||vr(s[0],n.enclosingDeclaration,1===s.length?i:yr(i))){var c=ar(s?s[0]:r);if(c){var u=t(c,yr(i),!1);u&&(o=c,s=u.concat(s||[r]))}}return s||(!a&&(!o&&e.forEach(r.declarations,kr)||6144&r.flags)?void 0:[r])}(t,r,!0),e.Debug.assert(i&&i.length>0)),i}function u(t,n){var r;return 524384&vf(t).flags&&(r=e.createNodeArray(e.map(mi(t),function(e){return o(e,n)}))),r}function l(t,n,i){e.Debug.assert(t&&0<=n&&n<t.length);var a,o=t[n];if(512&i.flags&&n<t.length-1){var s=o,c=t[n+1];if(1&e.getCheckFlags(c)){var l=function(t){return e.concatenate(fi(t),mi(t))}(2097152&s.flags?Bn(s):s);a=r(e.map(l,c.mapper),i)}else a=u(o,i)}return a}function _(t,n,r,i){var a=c(t,n,r);return!i||1===a.length||n.encounteredError||65536&n.flags||(n.encounteredError=!0),function t(r,i){var a=l(r,i,n),o=r[i];0===i&&(n.flags|=16777216);var s=Ir(o,n);0===i&&(n.flags^=16777216);var c=e.setEmitFlags(e.createIdentifier(s,a),16777216);return c.symbol=o,i>0?e.createQualifiedName(t(r,i-1),c):c}(a,a.length-1)}}(),R=un(4,"undefined");R.declarations=[];var B,z,j=un(4,"arguments"),J={getNodeCount:function(){return e.sum(r.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(r.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(r.getSourceFiles(),"symbolCount")+b},getTypeCount:function(){return v},isUndefinedSymbol:function(e){return e===R},isArgumentsSymbol:function(e){return e===j},isUnknownSymbol:function(e){return e===X},getMergedSymbol:rr,getDiagnostics:Rf,getGlobalDiagnostics:function(){return Bf(),Lt.getGlobalDiagnostics()},getTypeOfSymbolAtLocation:function(t,n){return(n=e.getParseTreeNode(n))?function(t,n){if(t=t.exportSymbol||t,71===n.kind&&(e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),e.isExpressionNode(n)&&!e.isAssignmentTarget(n))){var r=ip(n);if(or(hn(n).resolvedSymbol)===t)return r}return ci(t)}(t,n):ee},getSymbolsOfParameterPropertyDeclaration:function(t,n){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."),function(t,n){var r=t.parent.parent,i=bn(t.parent.locals,n,67216319),a=bn(Hi(r.symbol),n,67216319);if(i&&a)return[i,a];e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(t,e.escapeLeadingUnderscores(n))},getDeclaredTypeOfSymbol:wi,getPropertiesOfType:ha,getPropertyOfType:function(t,n){return Oa(t,e.escapeLeadingUnderscores(n))},getIndexInfoOfType:za,getSignaturesOfType:La,getIndexTypeOfType:ja,getBaseTypes:ki,getBaseTypeOfLiteralType:Xc,getWidenedType:pu,getTypeFromTypeNode:function(t){return(t=e.getParseTreeNode(t,e.isTypeNode))?Us(t):ee},getParameterType:Sd,getReturnTypeOfSignature:no,getNullableType:iu,getNonNullableType:ou,typeToTypeNode:L.typeToTypeNode,indexInfoToIndexSignatureDeclaration:L.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:L.signatureToSignatureDeclaration,symbolToEntityName:L.symbolToEntityName,symbolToExpression:L.symbolToExpression,symbolToTypeParameterDeclarations:L.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:L.symbolToParameterDeclaration,typeParameterToDeclaration:L.typeParameterToDeclaration,getSymbolsInScope:function(t,n){return(t=e.getParseTreeNode(t))?function(t,n){if(4194304&t.flags)return[];var r=e.createSymbolTable(),i=!1;return function(){for(;t;){switch(t.locals&&!vn(t)&&o(t.locals,n),t.kind){case 237:o(ir(t).exports,2623475&n);break;case 236:o(ir(t).exports,8&n);break;case 203:t.name&&a(t.symbol,n);case 233:case 234:i||o(Hi(ir(t)),67901928&n);break;case 190:t.name&&a(t.symbol,n)}e.introducesArgumentsExoticObject(t)&&a(j,n),i=e.hasModifier(t,32),t=t.parent}o(_t,n)}(),Ka(r);function a(t,n){if(e.getCombinedLocalAndExportSymbolFlags(t)&n){var i=t.escapedName;r.has(i)||r.set(i,t)}}function o(e,t){t&&e.forEach(function(e){a(e,t)})}}(t,n):[]},getSymbolAtLocation:function(t){return(t=e.getParseTreeNode(t))?qf(t):void 0},getShorthandAssignmentValueSymbol:function(t){return(t=e.getParseTreeNode(t))?function(e){if(t&&269===t.kind)return Un(t.name,69313471)}():void 0},getExportSpecifierLocalTargetSymbol:function(t){return(t=e.getParseTreeNode(t,e.isExportSpecifier))?function(e){return e.parent.parent.moduleSpecifier?In(e.parent.parent,e):Un(e.propertyName||e.name,70107135)}(t):void 0},getExportSymbolOfSymbol:function(e){return rr(e.exportSymbol||e)},getTypeAtLocation:function(t){return(t=e.getParseTreeNode(t))?Wf(t):ee},getPropertySymbolOfDestructuringAssignment:function(t){return(t=e.getParseTreeNode(t,e.isIdentifier))?function(t){var n=function t(n){if(e.Debug.assert(182===n.kind||181===n.kind),220===n.parent.kind)return Wd(n,rf(n.parent.expression,n.parent.awaitModifier)||ee);if(198===n.parent.kind)return Wd(n,ip(n.parent.right)||ee);if(268===n.parent.kind)return Vd(t(n.parent.parent)||ee,n.parent);e.Debug.assert(181===n.parent.kind);var r=t(n.parent),i=af(r||ee,n.parent,!1,!1)||ee;return qd(n.parent,r,n.parent.elements.indexOf(n),i||ee)}(t.parent.parent);return n&&Oa(n,t.escapedText)}(t):void 0},signatureToString:function(t,n,r,i){return Tr(t,e.getParseTreeNode(n),r,i)},typeToString:function(t,n,r){return Er(t,e.getParseTreeNode(n),r)},symbolToString:function(t,n,r,i){return Cr(t,e.getParseTreeNode(n),r,i)},typePredicateToString:function(t,n,r){return Ar(t,e.getParseTreeNode(n),r)},writeSignature:function(t,n,r,i,a){return Tr(t,e.getParseTreeNode(n),r,i,a)},writeType:function(t,n,r,i){return Er(t,e.getParseTreeNode(n),r,i)},writeSymbol:function(t,n,r,i,a){return Cr(t,e.getParseTreeNode(n),r,i,a)},writeTypePredicate:function(t,n,r,i){return Ar(t,e.getParseTreeNode(n),r,i)},getSymbolDisplayBuilder:function(){return{buildTypeDisplay:function(e,n,r,i){Er(e,r,i,t(n))},buildSymbolDisplay:function(e,n,r,i,a){Cr(e,r,i,4|a,t(n))},buildSignatureDisplay:function(e,n,r,i,a){Tr(e,r,i,a,t(n))},buildIndexSignatureDisplay:function(n,r,i,a,o){var s=L.indexInfoToIndexSignatureDeclaration(n,i,a,3112960|Nr(o),r);e.createPrinter({removeComments:!0}).writeNode(4,s,e.getSourceFileOfNode(e.getParseTreeNode(a)),t(r))},buildParameterDisplay:function(n,r,i,a){var o=L.symbolToParameterDeclaration(n,i,3112960|Nr(a),r);e.createPrinter({removeComments:!0}).writeNode(4,o,e.getSourceFileOfNode(e.getParseTreeNode(i)),t(r))},buildTypeParameterDisplay:function(n,r,i,a){var o=L.typeParameterToDeclaration(n,i,3121152|Nr(a),r);e.createPrinter({removeComments:!0}).writeNode(4,o,e.getSourceFileOfNode(e.getParseTreeNode(i)),t(r))},buildTypePredicateDisplay:function(e,n,r,i){Ar(e,r,i,t(n))},buildTypeParameterDisplayFromSymbol:function(n,r,i,a){var o=L.symbolToTypeParameterDeclarations(n,i,3112960|Nr(a),r);e.createPrinter({removeComments:!0}).writeList(26896,o,e.getSourceFileOfNode(e.getParseTreeNode(i)),t(r))},buildDisplayForParametersAndDelimiters:function(n,r,i,a,o){var s=e.createPrinter({removeComments:!0}),c=3121152|Nr(o),u=n?[L.symbolToParameterDeclaration(n,a,c)]:[],l=e.createNodeArray(u.concat(e.map(r,function(e){return L.symbolToParameterDeclaration(e,a,c)})));s.writeList(1296,l,e.getSourceFileOfNode(e.getParseTreeNode(a)),t(i))},buildDisplayForTypeParametersAndDelimiters:function(n,r,i,a){var o=e.createPrinter({removeComments:!0}),s=e.createNodeArray(e.map(n,function(e){return L.typeParameterToDeclaration(e,i,Nr(a))}));o.writeList(26896,s,e.getSourceFileOfNode(e.getParseTreeNode(i)),t(r))},buildReturnTypeDisplay:function(n,r,i,a){r.writePunctuation(":"),r.writeSpace(" ");var o=to(n);if(o)return Ar(o,i,a,t(r));var s=L.typeToTypeNode(no(n),i,3112960|Nr(a),r);e.createPrinter({removeComments:!0}).writeNode(4,s,e.getSourceFileOfNode(e.getParseTreeNode(i)),t(r))}};function t(t){return{write:e.noop,writeTextOfNode:e.noop,writeLine:e.noop,increaseIndent:function(){return t.increaseIndent()},decreaseIndent:function(){return t.decreaseIndent()},getText:function(){return""},rawWrite:e.noop,writeLiteral:function(e){return t.writeStringLiteral(e)},getTextPos:function(){return 0},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return!1},clear:function(){return t.clear()},writeKeyword:function(e){return t.writeKeyword(e)},writeOperator:function(e){return t.writeOperator(e)},writePunctuation:function(e){return t.writePunctuation(e)},writeSpace:function(e){return t.writeSpace(e)},writeStringLiteral:function(e){return t.writeStringLiteral(e)},writeParameter:function(e){return t.writeParameter(e)},writeProperty:function(e){return t.writeProperty(e)},writeSymbol:function(e,n){return t.writeSymbol(e,n)},trackSymbol:function(e,n,r){return t.trackSymbol&&t.trackSymbol(e,n,r)},reportInaccessibleThisError:function(){return t.reportInaccessibleThisError&&t.reportInaccessibleThisError()},reportPrivateInBaseOfClassExpression:function(e){return t.reportPrivateInBaseOfClassExpression&&t.reportPrivateInBaseOfClassExpression(e)},reportInaccessibleUniqueSymbolError:function(){return t.reportInaccessibleUniqueSymbolError&&t.reportInaccessibleUniqueSymbolError()}}}},getAugmentedPropertiesOfType:Gf,getRootSymbols:function t(n){var r=function(t){if(6&e.getCheckFlags(t))return e.mapDefined(yn(t).containingType.types,function(e){return Oa(e,t.escapedName)});if(33554432&t.flags){var n=t.leftSpread,r=t.syntheticOrigin;return n?[n,t.rightSpread]:r?[r]:e.singleElementArray(function(e){for(var t,n=e;n=yn(n).target;)t=n;return t}(t))}}(n);return r?e.flatMap(r,t):[n]},getContextualType:function(t){return(t=e.getParseTreeNode(t,e.isExpression))?Wl(t):void 0},getContextualTypeForArgumentAtIndex:function(t,n){return(t=e.getParseTreeNode(t,e.isCallLikeExpression))&&zl(t,n)},getContextualTypeForJsxAttribute:function(t){return(t=e.getParseTreeNode(t,e.isJsxAttributeLike))&&Vl(t)},isContextSensitive:cc,getFullyQualifiedName:Kn,getResolvedSignature:function(t,n,r){t=e.getParseTreeNode(t,e.isCallLikeExpression),B=r;var i=t?dd(t,n):void 0;return B=void 0,i},getConstantValue:function(t){return(t=e.getParseTreeNode(t,dm))?pm(t):void 0},isValidPropertyAccess:function(t,n){return!!(t=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedName))&&function(e,t){var n=183===e.kind?e.expression:e.left;return z_(e,n,t,pu(ap(n)))}(t,e.escapeLeadingUnderscores(n))},isValidPropertyAccessForCompletions:function(t,n,r){return!!(t=e.getParseTreeNode(t,e.isPropertyAccessExpression))&&function(t,n,r){return z_(t,t.expression,r.escapedName,n)&&(!(8192&r.flags)||(i=n,a=La(ou(oi(r)),0),e.Debug.assert(0!==a.length),a.some(function(e){var t=Za(e);return!t||gc(i,function(e,t,n){if(!e.typeParameters)return t;var r=hu(e.typeParameters,e,0);return Tu(r.inferences,n,t),ac(t,oo(e,Iu(r)))}(e,t,i))})));var i,a}(t,n,r)},getSignatureFromDeclaration:function(t){return(t=e.getParseTreeNode(t,e.isFunctionLike))?Qa(t):void 0},isImplementationOfOverload:function(t){var n=e.getParseTreeNode(t,e.isFunctionLike);return n?sm(n):void 0},getImmediateAliasedSymbol:function(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var n=yn(t);if(!n.immediateTarget){var r=Pn(t);e.Debug.assert(!!r),n.immediateTarget=Mn(r,!0)}return n.immediateTarget},getAliasedSymbol:Bn,getEmitResolver:function(e,t){return Rf(e,t),M},getExportsOfModule:Yn,getExportsAndPropertiesOfModule:function(t){var n=Yn(t),r=Gn(t);return r!==t&&e.addRange(n,ha(ci(r))),n},getSymbolWalker:e.createGetSymbolWalker(ro,to,no,ki,fa,ci,Ou,Ba,mo,Cf),getAmbientModules:function(){return Te||(Te=[],_t.forEach(function(e,t){n.test(t)&&Te.push(e)})),Te},getAllAttributesTypeFromJsxOpeningLikeElement:function(t){return(t=e.getParseTreeNode(t,e.isJsxOpeningLikeElement))?function(e){return s_(e.tagName)?h_(e):v_(e,!0)}(t):void 0},getJsxIntrinsicTagNamesAt:function(n){var r=__(t.IntrinsicElements,n);return r?ha(r):e.emptyArray},isOptionalParameter:function(t){return!!(t=e.getParseTreeNode(t,e.isParameter))&&qa(t)},tryGetMemberInModuleExports:function(t,n){return $n(e.escapeLeadingUnderscores(t),n)},tryGetMemberInModuleExportsAndProperties:function(t,n){return function(e,t){var n=$n(e,t);if(n)return n;var r=Gn(t);if(r!==t){var i=ci(r);return 16382&i.flags?void 0:Oa(i,e)}}(e.escapeLeadingUnderscores(t),n)},tryFindAmbientModuleWithoutAugmentations:function(e){return Va(e,!1)},getApparentType:Pa,getUnionType:ss,createAnonymousType:mr,createSignature:Yi,createSymbol:un,createIndexInfo:po,getAnyType:function(){return Y},getStringType:function(){return ae},getNumberType:function(){return oe},createPromiseType:Td,createArrayType:Zo,getBooleanType:function(){return ue},getVoidType:function(){return _e},getUndefinedType:function(){return te},getNullType:function(){return re},getESSymbolType:function(){return le},getNeverType:function(){return de},isSymbolAccessible:xr,isArrayLikeType:qc,getAllPossiblePropertiesOfTypes:function(t){var n=ss(t);if(!(131072&n.flags))return Gf(n);for(var r=e.createSymbolTable(),i=0,a=t;i<a.length;i++)for(var o=0,s=Gf(a[i]);o<s.length;o++){var c=s[o].escapedName;if(!r.has(c)){var u=wa(n,c);u&&r.set(c,u)}}return e.arrayFrom(r.values())},getSuggestionForNonexistentProperty:function(e,t){return O_(e,t)},getSuggestionForNonexistentSymbol:function(t,n,r){return M_(t,e.escapeLeadingUnderscores(n),r)},getBaseConstraintOfType:Da,getDefaultFromTypeParameter:function(e){return e&&32768&e.flags?Aa(e):void 0},resolveName:function(t,n,r,i){return kn(n,e.escapeLeadingUnderscores(t),r,void 0,void 0,!1,i)},getJsxNamespace:function(t){return e.unescapeLeadingUnderscores(sn(t))},getAccessibleSymbolChain:hr,getTypePredicateOfSignature:to,resolveExternalModuleSymbol:Gn,tryGetThisTypeAt:function(t){return(t=e.getParseTreeNode(t))&&Al(t)},getTypeArgumentConstraint:function(t){return(t=e.getParseTreeNode(t,e.isTypeNode))&&function(t){var n=e.tryCast(t.parent,e.isTypeReferenceType);if(n){var r=gp(n),i=ba(r[n.typeArguments.indexOf(t)]);return i&&ac(i,Hs(r,fp(n,r)))}}(t)},getSuggestionDiagnostics:function(t){return Rt.get(t.fileName)||e.emptyArray}},K=[],U=e.createMap(),V=e.createMap(),q=e.createMap(),W=e.createMap(),H=[],G=e.createMap(),X=un(4,"unknown"),Q=un(0,"__resolving__"),Y=lr(1,"any"),$=lr(1,"any"),Z=lr(1,"any"),ee=lr(1,"unknown"),te=lr(4096,"undefined"),ne=P?te:lr(16781312,"undefined"),re=lr(8192,"null"),ie=P?re:lr(16785408,"null"),ae=lr(2,"string"),oe=lr(4,"number"),se=lr(128,"true"),ce=lr(128,"false"),ue=((z=ss([se,ce])).flags|=8,z.intrinsicName="boolean",z),le=lr(512,"symbol"),_e=lr(2048,"void"),de=lr(16384,"never"),pe=lr(16384,"never"),fe=lr(16384,"never"),me=lr(134217728,"object"),ge=mr(void 0,S,e.emptyArray,e.emptyArray,void 0,void 0),ye=un(2048,"__type");ye.members=e.createSymbolTable();var he=mr(ye,S,e.emptyArray,e.emptyArray,void 0,void 0),ve=mr(void 0,S,e.emptyArray,e.emptyArray,void 0,void 0);ve.instantiations=e.createMap();var be=mr(void 0,S,e.emptyArray,e.emptyArray,void 0,void 0);be.flags|=67108864;var xe=mr(void 0,S,e.emptyArray,e.emptyArray,void 0,void 0),ke=mr(void 0,S,e.emptyArray,e.emptyArray,void 0,void 0),Se=mr(void 0,S,e.emptyArray,e.emptyArray,void 0,void 0),De=ur(32768),Ce=ur(32768);Ce.constraint=De;var Te,Ee,Ne,Ae,Pe,we,Fe,Ie,Oe,Me,Le,Re,Be,ze,je,Je,Ke,Ue,Ve,qe,We,He,Ge,Xe,Qe,Ye,$e,Ze,et,tt,nt,rt=ur(32768),it=Wa("<<unresolved>>",0,Y),at=Yi(void 0,void 0,void 0,e.emptyArray,Y,void 0,0,!1,!1),ot=Yi(void 0,void 0,void 0,e.emptyArray,ee,void 0,0,!1,!1),st=Yi(void 0,void 0,void 0,e.emptyArray,Y,void 0,0,!1,!1),ct=Yi(void 0,void 0,void 0,e.emptyArray,pe,void 0,0,!1,!1),ut=po(ae,!0),lt=po(Y,!1),_t=e.createSymbolTable(),dt=e.createMap(),pt=0,ft=0,mt=0,gt=!1,yt=js(""),ht=js(0),vt=[],bt=[],xt=[],kt=0,St=10,Dt=[],Ct=[],Tt=[],Et=[],Nt=[],At=[],Pt=[],wt=[],Ft=[],It=[],Ot=[],Mt=[],Lt=e.createDiagnosticCollection(),Rt=e.createMultiMap();function Bt(t){Rt.add(t.file.fileName,c({},t,{category:e.DiagnosticCategory.Suggestion}))}!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.All=4194303]="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=1972176]="ObjectStrictFacts",e[e.ObjectFacts=4184016]="ObjectFacts",e[e.FunctionStrictFacts=1970144]="FunctionStrictFacts",e[e.FunctionFacts=4181984]="FunctionFacts",e[e.UndefinedFacts=2457472]="UndefinedFacts",e[e.NullFacts=2340752]="NullFacts"}(nt||(nt={}));var zt,jt,Jt,Kt,Ut,Vt,qt,Wt,Ht,Gt=e.createMapFromTemplate({string:1,number:2,boolean:4,symbol:8,undefined:16384,object:16,function:32}),Xt=e.createMapFromTemplate({string:128,number:256,boolean:512,symbol:1024,undefined:131072,object:2048,function:4096}),Qt=e.createMapFromTemplate({string:ae,number:oe,boolean:ue,symbol:le,undefined:te}),Yt=ss(e.arrayFrom(Gt.keys(),js)),$t=e.createMap(),Zt=e.createMap(),en=e.createMap(),tn=e.createMap(),nn=e.createMap(),rn=e.createMap();!function(e){e[e.Type=0]="Type",e[e.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",e[e.DeclaredType=2]="DeclaredType",e[e.ResolvedReturnType=3]="ResolvedReturnType",e[e.ResolvedBaseConstraint=4]="ResolvedBaseConstraint"}(Jt||(Jt={})),function(e){e[e.Normal=0]="Normal",e[e.SkipContextSensitive=1]="SkipContextSensitive",e[e.Inferential=2]="Inferential",e[e.Contextual=3]="Contextual"}(Kt||(Kt={})),function(e){e[e.None=0]="None",e[e.Bivariant=1]="Bivariant",e[e.Strict=2]="Strict"}(Ut||(Ut={})),function(e){e[e.IncludeReadonly=1]="IncludeReadonly",e[e.ExcludeReadonly=2]="ExcludeReadonly",e[e.IncludeOptional=4]="IncludeOptional",e[e.ExcludeOptional=8]="ExcludeOptional"}(Vt||(Vt={})),function(e){e[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.Both=3]="Both"}(qt||(qt={})),function(e){e[e.Any=1]="Any",e[e.Undefined=2]="Undefined",e[e.Null=4]="Null",e[e.Never=8]="Never",e[e.NonWideningType=16]="NonWideningType",e[e.String=32]="String",e[e.Number=64]="Number",e[e.ESSymbol=128]="ESSymbol",e[e.LiteralOrUniqueESSymbol=256]="LiteralOrUniqueESSymbol",e[e.ObjectType=512]="ObjectType",e[e.EmptyObject=1024]="EmptyObject",e[e.Union=2048]="Union",e[e.Wildcard=4096]="Wildcard"}(Wt||(Wt={})),function(e){e.resolvedExports="resolvedExports",e.resolvedMembers="resolvedMembers"}(Ht||(Ht={}));var an=e.createSymbolTable();an.set(R.escapedName,R);var on=e.and(Ff,function(t){return!e.isAccessor(t)});return function(){for(var t=0,n=r.getSourceFiles();t<n.length;t++)e.bindSourceFile(s=n[t],C);for(var i,a=0,o=r.getSourceFiles();a<o.length;a++){var s;e.isExternalOrCommonJsModule(s=o[a])||mn(_t,s.locals),s.patternAmbientModules&&s.patternAmbientModules.length&&(Ee=e.concatenate(Ee,s.patternAmbientModules)),s.moduleAugmentations.length&&(i||(i=[])).push(s.moduleAugmentations),s.symbol&&s.symbol.globalExports&&s.symbol.globalExports.forEach(function(e,t){_t.has(t)||_t.set(t,e)})}if(i)for(var c=0,u=i;c<u.length;c++)for(var l=0,_=u[c];l<_.length;l++)e.isGlobalScopeAugmentation((g=_[l]).parent)&&gn(g);if(y=_t,h=e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,an.forEach(function(t,n){var r=y.get(n);r?e.forEach(r.declarations,function(t,n){return function(r){return Lt.add(e.createDiagnosticForNode(r,n,t))}}(e.unescapeLeadingUnderscores(n),h)):y.set(n,t)}),yn(R).type=ne,yn(j).type=Bo("IArguments",0,!0),yn(X).type=ee,Pe=Bo("Array",1,!0),Ne=Bo("Object",0,!0),Ae=Bo("Function",0,!0),Fe=Bo("String",0,!0),Ie=Bo("Number",0,!0),Oe=Bo("Boolean",0,!0),Me=Bo("RegExp",0,!0),Re=Zo(Y),(Be=Zo($))===ge&&(Be=mr(void 0,S,e.emptyArray,e.emptyArray,void 0,void 0)),we=Ho("ReadonlyArray",1),ze=we?Go(we,[Y]):Re,Le=Ho("ThisType",1),i)for(var d=0,p=i;d<p.length;d++)for(var f=0,m=p[d];f<m.length;f++){var g;e.isGlobalScopeAugmentation((g=m[f]).parent)||gn(g)}var y,h}(),J;function sn(t){if(t){var n=e.getSourceFileOfNode(t);if(n){if(n.localJsxNamespace)return n.localJsxNamespace;var r=n.pragmas.get("jsx");if(r){var i=e.isArray(r)?r[0]:r;if(n.localJsxFactory=e.parseIsolatedEntityName(i.arguments.factory,T),n.localJsxFactory)return n.localJsxNamespace=Cf(n.localJsxFactory).escapedText}}}return zt||(zt="React",C.jsxFactory?(jt=e.parseIsolatedEntityName(C.jsxFactory,T))&&(zt=Cf(jt).escapedText):C.reactNamespace&&(zt=e.escapeLeadingUnderscores(C.reactNamespace))),zt}function cn(t,n,r,i,a,o){var s=t?e.createDiagnosticForNode(t,n,r,i,a,o):e.createCompilerDiagnostic(n,r,i,a,o);Lt.add(s)}function un(e,t,n){b++;var r=new g(33554432|e,t);return r.checkFlags=n||0,r}function ln(e){return 0!=(33554432&e.flags)}function _n(e){var t=0;return 2&e&&(t|=67216319),1&e&&(t|=67216318),4&e&&(t|=0),8&e&&(t|=68008959),16&e&&(t|=67215791),32&e&&(t|=68008383),64&e&&(t|=67901832),256&e&&(t|=68008191),128&e&&(t|=68008831),512&e&&(t|=67215503),8192&e&&(t|=67208127),32768&e&&(t|=67150783),65536&e&&(t|=67183551),262144&e&&(t|=67639784),524288&e&&(t|=67901928),2097152&e&&(t|=2097152),t}function dn(e,t){t.mergeId||(t.mergeId=a,a++),Dt[t.mergeId]=e}function pn(t){var n=un(t.flags,t.escapedName);return n.declarations=t.declarations?t.declarations.slice():[],n.parent=t.parent,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration),t.constEnumOnlyModule&&(n.constEnumOnlyModule=!0),t.members&&(n.members=e.cloneMap(t.members)),t.exports&&(n.exports=e.cloneMap(t.exports)),dn(n,t),n}function fn(t,n){if(!(t.flags&_n(n.flags))||67108864&(n.flags|t.flags)){if(512&n.flags&&512&t.flags&&t.constEnumOnlyModule&&!n.constEnumOnlyModule&&(t.constEnumOnlyModule=!1),t.flags|=n.flags,n.valueDeclaration&&(!t.valueDeclaration||237===t.valueDeclaration.kind&&237!==n.valueDeclaration.kind)&&(t.valueDeclaration=n.valueDeclaration),e.addRange(t.declarations,n.declarations),n.members&&(t.members||(t.members=e.createSymbolTable()),mn(t.members,n.members)),n.exports&&(t.exports||(t.exports=e.createSymbolTable()),mn(t.exports,n.exports)),67108864&(n.flags|t.flags)){var r=e.getJSInitializerSymbol(n),i=e.getJSInitializerSymbol(t);r===n&&i===t||fn(i,r)}dn(t,n)}else if(1024&t.flags)cn(e.getNameOfDeclaration(n.declarations[0]),e.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Cr(t));else{var a=384&t.flags||384&n.flags?e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:2&t.flags||2&n.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0;e.forEach(n.declarations,function(t){cn((e.getJavascriptInitializer(t,!1)?e.getOuterNameOfJsInitializer(t):e.getNameOfDeclaration(t))||t,a,Cr(n))}),e.forEach(t.declarations,function(t){cn((e.getJavascriptInitializer(t,!1)?e.getOuterNameOfJsInitializer(t):e.getNameOfDeclaration(t))||t,a,Cr(n))})}}function mn(e,t){t.forEach(function(t,n){var r=e.get(n);r?(33554432&r.flags||(r=pn(r),e.set(n,r)),fn(r,t)):e.set(n,t)})}function gn(t){var n=t.parent;if(n.symbol.declarations[0]===n)if(e.isGlobalScopeAugmentation(n))mn(_t,n.symbol.exports);else{var r=qn(t,t,2097152&t.parent.parent.flags?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!0);if(!r)return;1920&(r=Gn(r)).flags?fn(r=33554432&r.flags?r:pn(r),n.symbol):cn(t,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,t.text)}else e.Debug.assert(n.symbol.declarations.length>1)}function yn(e){if(33554432&e.flags)return e;var t=u(e);return Ct[t]||(Ct[t]={})}function hn(e){var t=s(e);return Tt[t]||(Tt[t]={flags:0})}function vn(t){return 272===t.kind&&!e.isExternalOrCommonJsModule(t)}function bn(t,n,r){if(r){var i=t.get(n);if(i){if(e.Debug.assert(0==(1&e.getCheckFlags(i)),"Should never get an instantiated symbol here."),i.flags&r)return i;if(2097152&i.flags){var a=Bn(i);if(a===X||a.flags&r)return i}}}}function xn(t,n){var i=e.getSourceFileOfNode(t),a=e.getSourceFileOfNode(n);if(i!==a){if(E&&(i.externalModuleIndicator||a.externalModuleIndicator)||!C.outFile&&!C.out||Mu(n)||2097152&t.flags)return!0;if(u(n,t))return!0;var o=r.getSourceFiles();return o.indexOf(i)<=o.indexOf(a)}if(t.pos<=n.pos){if(180===t.kind){var s=e.getAncestor(n,180);return s?e.findAncestor(s,e.isBindingElement)!==e.findAncestor(t,e.isBindingElement)||t.pos<s.pos:xn(e.getAncestor(t,230),n)}return 230!==t.kind||!function(t,n){var r=e.getEnclosingBlockScopeContainer(t);switch(t.parent.parent.kind){case 212:case 218:case 220:if(Nn(n,t,r))return!0}return e.isForInOrOfStatement(t.parent.parent)&&Nn(n,t.parent.parent.expression,r)}(t,n)}if(250===n.parent.kind||247===n.parent.kind&&n.parent.isExportEquals)return!0;if(247===n.kind&&n.isExportEquals)return!0;var c=e.getEnclosingBlockScopeContainer(t);return Mu(n)||u(n,t,c);function u(t,n,r){return!!e.findAncestor(t,function(i){if(i===r)return"quit";if(e.isFunctionLike(i))return!0;if(i.parent&&151===i.parent.kind&&i.parent.initializer===i)if(e.hasModifier(i.parent,32)){if(153===n.kind)return!0}else if(151!==n.kind||e.hasModifier(n,32)||e.getContainingClass(t)!==e.getContainingClass(n))return!0})}}function kn(e,t,n,r,i,a,o,s){return void 0===o&&(o=!1),Sn(e,t,n,r,i,a,o,bn,s)}function Sn(t,n,r,i,a,o,s,c,u){var l,_,d,p,f,m=t,g=t,y=!1;e:for(;t;){if(t.locals&&!vn(t)&&(l=c(t.locals,n,r))){var h=!0;if(e.isFunctionLike(t)&&_&&_!==t.body?(r&l.flags&67901928&&282!==_.kind&&(h=!!(262144&l.flags)&&(_===t.type||148===_.kind||147===_.kind)),67216319&r&&1&l.flags&&(h=148===_.kind||_===t.type&&148===l.valueDeclaration.kind)):170===t.kind&&(h=_===t.trueType),h)break e;l=void 0}switch(t.kind){case 272:if(!e.isExternalOrCommonJsModule(t))break;y=!0;case 237:var v=ir(t).exports;if(272===t.kind||e.isAmbientModule(t)){if(l=v.get("default")){var b=e.getLocalSymbolForExportDefault(l);if(b&&l.flags&r&&b.escapedName===n)break e;l=void 0}var x=v.get(n);if(x&&2097152===x.flags&&e.getDeclarationOfKind(x,250))break}if(l=c(v,n,2623475&r))break e;break;case 236:if(l=c(ir(t).exports,n,8&r))break e;break;case 151:case 150:if(e.isClassLike(t.parent)&&!e.hasModifier(t,32)){var k=cr(t.parent);k&&k.locals&&c(k.locals,n,67216319&r)&&(p=t)}break;case 233:case 203:case 234:if(l=c(Hi(ir(t)),n,67901928&r)){if(!Tn(l,t)){l=void 0;break}if(_&&e.hasModifier(_,32))return void cn(g,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(203===t.kind&&32&r){var S=t.name;if(S&&n===S.escapedText){l=t.symbol;break e}}break;case 205:if(_===t.expression&&85===t.parent.token){var D=t.parent.parent;if(e.isClassLike(D)&&(l=c(ir(D).members,n,67901928&r)))return void(i&&cn(g,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 146:if((e.isClassLike(f=t.parent.parent)||234===f.kind)&&(l=c(ir(f).members,n,67901928&r)))return void cn(g,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 153:case 152:case 154:case 155:case 156:case 232:case 191:if(3&r&&"arguments"===n){l=j;break e}break;case 190:if(3&r&&"arguments"===n){l=j;break e}if(16&r){var C=t.name;if(C&&n===C.escapedText){l=t.symbol;break e}}break;case 149:t.parent&&148===t.parent.kind&&(t=t.parent),t.parent&&e.isClassElement(t.parent)&&(t=t.parent)}Dn(t)&&(d=t),_=t,t=t.parent}if(o&&l&&i&&N&&(!d||l!==d.symbol)&&(l.isReferenced|=r),!l){if(_&&(e.Debug.assert(272===_.kind),_.commonJsModuleIndicator&&"exports"===n))return _.symbol;s||(l=c(_t,n,r))}if(l){if(i){if(p)return void cn(g,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(p.name),Cn(a));if(g&&(2&r||(32&r||384&r)&&67216319==(67216319&r))){var T=or(l);(2&T.flags||32&T.flags||384&T.flags)&&function(t,n){e.Debug.assert(!!(2&t.flags||32&t.flags||384&t.flags));var r=e.forEach(t.declarations,function(t){return e.isBlockOrCatchScoped(t)||e.isClassLike(t)||236===t.kind?t:void 0});e.Debug.assert(void 0!==r,"Declaration to checkResolvedBlockScopedVariable is undefined"),2097152&r.flags||xn(r,n)||(2&t.flags?cn(n,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,e.declarationNameToString(e.getNameOfDeclaration(r))):32&t.flags?cn(n,e.Diagnostics.Class_0_used_before_its_declaration,e.declarationNameToString(e.getNameOfDeclaration(r))):256&t.flags&&cn(n,e.Diagnostics.Enum_0_used_before_its_declaration,e.declarationNameToString(e.getNameOfDeclaration(r))))}(T,g)}if(l&&y&&67216319==(67216319&r)){var E=l.declarations;E&&1===E.length&&240===E[0].kind&&cn(g,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(n))}}return l}if(i&&(!g||!(function(t,n,r){if(!e.isIdentifier(t)||t.escapedText!==n||jf(t)||Mu(t))return!1;for(var i=e.getThisContainer(t,!0),a=i;a;){if(e.isClassLike(a.parent)){var o=ir(a.parent);if(!o)break;if(Oa(ci(o),n))return cn(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Cn(r),Cr(o)),!0;if(a===i&&!e.hasModifier(a,32)&&Oa(wi(o).thisType,n))return cn(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Cn(r)),!0}a=a.parent}return!1}(g,n,a)||En(g)||function(t,n,r){var i=1920|(e.isInJavaScriptFile(t)?67216319:0);if(r===i){var a=Rn(kn(t,n,67901928&~i,void 0,void 0,!1)),o=t.parent;if(a){if(e.isQualifiedName(o)){e.Debug.assert(o.left===t,"Should only be resolving left side of qualified name as a namespace");var s=o.right.escapedText;if(Oa(wi(a),s))return cn(o,e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,e.unescapeLeadingUnderscores(n),e.unescapeLeadingUnderscores(s)),!0}return cn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(n)),!0}}return!1}(g,n,r)||function(t,n,r){if(67216319&r){if("any"===n||"string"===n||"number"===n||"boolean"===n||"never"===n)return cn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(n)),!0;var i=Rn(kn(t,n,792640,void 0,void 0,!1));if(i&&!(1024&i.flags))return cn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(n)),!0}return!1}(g,n,r)||function(t,n,r){if(107031&r){if(Rn(kn(t,n,1024,void 0,void 0,!1)))return cn(t,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(n)),!0}else if(792640&r&&Rn(kn(t,n,1536,void 0,void 0,!1)))return cn(t,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(n)),!0;return!1}(g,n,r)))){var A=void 0;u&&kt<St&&(A=M_(m,n,r))&&cn(g,u,Cn(a),A),A||cn(g,i,Cn(a)),kt++}}function Dn(e){switch(e.kind){case 232:case 233:case 234:case 236:case 235:case 237:return!0;default:return!1}}function Cn(t){return e.isString(t)?e.unescapeLeadingUnderscores(t):e.declarationNameToString(t)}function Tn(e,t){for(var n=0,r=e.declarations;n<r.length;n++){var i=r[n];if(147===i.kind&&i.parent===t)return!0}return!1}function En(t){var n=function t(n){switch(n.kind){case 71:case 183:return n.parent?t(n.parent):void 0;case 205:if(e.isEntityNameExpression(n.expression))return n.expression;default:return}}(t),r=!(!n||!Un(n,64,!0));return r&&cn(t,e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,e.getTextOfNode(n)),r}function Nn(t,n,r){return n&&!!e.findAncestor(t,function(t){return t===r||e.isFunctionLike(t)?"quit":t===n})}function An(e){switch(e.kind){case 241:return e;case 243:return e.parent;case 244:return e.parent.parent;case 246:return e.parent.parent.parent;default:return}}function Pn(t){return e.find(t.declarations,e.isAliasSymbolDeclaration)}function wn(e,t,n){var r=e.exports.get("export=");return r?Oa(ci(r),t):Rn(e.exports.get(t),n)}function Fn(t,n,r){return!!A&&(!t||t.isDeclarationFile?!wn(n,"default",r)&&!wn(n,e.escapeLeadingUnderscores("__esModule"),r):e.isSourceFileJavaScript(t)?!t.externalModuleIndicator&&!wn(n,e.escapeLeadingUnderscores("__esModule"),r):Qn(n))}function In(t,n,r){var i=Vn(t,t.moduleSpecifier),a=Xn(i,t.moduleSpecifier,r);if(a){var o=n.propertyName||n.name;if(o.escapedText){if(e.isShorthandAmbientModuleSymbol(i))return i;var s=void 0;s=Rn(s=i&&i.exports&&i.exports.get("export=")?Oa(ci(a),o.escapedText):function(e,t){if(3&a.flags){var n=a.valueDeclaration.type;if(n)return Rn(Oa(Us(n),t))}}(0,o.escapedText),r);var c=function(e,t,n){if(1536&a.flags)return Rn(Zn(a).get(t),n)}(0,o.escapedText,r);!c&&A&&"default"===o.escapedText&&(c=Gn(i,r)||Rn(i,r));var u=c&&s?function(t,n){if(t===X&&n===X)return X;if(67903464&t.flags)return t;var r=un(t.flags|n.flags,t.escapedName);return r.declarations=e.concatenate(t.declarations,n.declarations),r.parent=t.parent||n.parent,t.valueDeclaration&&(r.valueDeclaration=t.valueDeclaration),n.members&&(r.members=n.members),t.exports&&(r.exports=t.exports),r}(s,c):c||s;if(!u){var l=Kn(i),_=e.declarationNameToString(o),d=function(t,n){var r=n.exports&&L_(e.idText(t),Yn(n),2623475);return r&&e.symbolName(r)}(o,a);void 0!==d?cn(o,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_2,l,_,d):cn(o,e.Diagnostics.Module_0_has_no_exported_member_1,l,_)}return u}}}function On(e,t,n){return e.parent.parent.moduleSpecifier?In(e.parent.parent,e,n):Un(e.propertyName||e.name,t,!1,n)}function Mn(t,n){switch(t.kind){case 241:return function(t,n){return 252===t.moduleReference.kind?Gn(Vn(t,e.getExternalModuleImportEqualsDeclarationExpression(t))):Jn(t.moduleReference,n)}(t,n);case 243:return function(t,n){var r=Vn(t,t.parent.moduleSpecifier);if(r){var i;i=e.isShorthandAmbientModuleSymbol(r)?r:wn(r,"default",n);var a=Fn(e.find(r.declarations,e.isSourceFile),r,n);if(i||a){if(!i&&a)return Gn(r,n)||Rn(r,n)}else cn(t.name,e.Diagnostics.Module_0_has_no_default_export,Cr(r));return i}}(t,n);case 244:return function(e,t){var n=e.parent.parent.moduleSpecifier;return Xn(Vn(e,n),n,t)}(t,n);case 246:return function(e,t){return In(e.parent.parent.parent,e,n)}(t);case 250:return On(t,68009983,n);case 247:return function(e,t){return Un(e.expression,68009983,!1,n)}(t);case 240:return function(e,t){return Gn(e.parent.symbol,n)}(t)}}function Ln(e,t){return void 0===t&&(t=68009983),e&&2097152==(e.flags&(2097152|t))}function Rn(e,t){return!t&&Ln(e)?Bn(e):e}function Bn(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var n=yn(t);if(n.target)n.target===Q&&(n.target=X);else{n.target=Q;var r=Pn(t);e.Debug.assert(!!r);var i=Mn(r);n.target===Q?n.target=i||X:cn(r,e.Diagnostics.Circular_definition_of_import_alias_0,Cr(t))}return n.target}function zn(e){var t=ir(e),n=Bn(t);n&&(n===X||67216319&n.flags&&!om(n))&&jn(t)}function jn(t){var n=yn(t);if(!n.referenced){n.referenced=!0;var r=Pn(t);e.Debug.assert(!!r),247===r.kind?Yd(r.expression):250===r.kind?Yd(r.propertyName||r.name):e.isInternalModuleImportEqualsDeclaration(r)&&Yd(r.moduleReference)}}function Jn(t,n){return 71===t.kind&&e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),71===t.kind||145===t.parent.kind?Un(t,1920,!1,n):(e.Debug.assert(241===t.parent.kind),Un(t,68009983,!1,n))}function Kn(e){return e.parent?Kn(e.parent)+"."+Cr(e):Cr(e)}function Un(t,n,r,i,a){if(!e.nodeIsMissing(t)){var o,s=1920|(e.isInJavaScriptFile(t)?67216319&n:0);if(71===t.kind){if(!(o=kn(a||t,t.escapedText,n,r?void 0:n===s?e.Diagnostics.Cannot_find_namespace_0:e.Diagnostics.Cannot_find_name_0,t,!0)))return}else if(145===t.kind||183===t.kind){var c=145===t.kind?t.right:t.name,u=Un(145===t.kind?t.left:t.expression,s,r,!1,a);if(!u||e.nodeIsMissing(c))return;if(u===X)return u;if(e.isInJavaScriptFile(t)){var l=e.getDeclaredJavascriptInitializer(u.valueDeclaration)||e.getAssignedJavascriptInitializer(u.valueDeclaration);if(l&&(u=ir(l)),u.valueDeclaration&&e.isVariableDeclaration(u.valueDeclaration)&&u.valueDeclaration.initializer&&bd(u.valueDeclaration.initializer)){var _=u.valueDeclaration.initializer.arguments[0],d=Vn(_,_);if(d){var p=Gn(d);p&&(u=p)}}}if(!(o=bn(Zn(u),c.escapedText,n)))return void(r||cn(c,e.Diagnostics.Namespace_0_has_no_exported_member_1,Kn(u),e.declarationNameToString(c)))}else e.Debug.assertNever(t,"Unknown entity name kind.");return e.Debug.assert(0==(1&e.getCheckFlags(o)),"Should never get an instantiated symbol here."),o.flags&n||i?o:Bn(o)}}function Vn(t,n){return qn(t,n,e.Diagnostics.Cannot_find_module_0)}function qn(t,n,r,i){return void 0===i&&(i=!1),e.isStringLiteralLike(n)?Wn(t,n.text,r,n,i):void 0}function Wn(t,n,i,a,o){if(void 0===o&&(o=!1),void 0!==n){e.startsWith(n,"@types/")&&cn(a,e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,e.removePrefix(n,"@types/"),n);var s=Va(n,!0);if(s)return s;var c=e.getResolvedModule(e.getSourceFileOfNode(t),n),u=c&&e.getResolutionDiagnostic(C,c),l=c&&!u&&r.getSourceFile(c.resolvedFileName);if(l)return l.symbol?(c.isExternalLibraryImport&&!e.extensionIsTypeScript(c.extension)&&Bt(Hn(a,c,n)),rr(l.symbol)):void(i&&cn(a,e.Diagnostics.File_0_is_not_a_module,l.fileName));if(Ee){var _=e.findBestPatternMatch(Ee,function(e){return e.pattern},n);if(_)return rr(_.symbol)}if(c&&!e.extensionIsTypeScript(c.extension)&&void 0===u||u===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type)o?cn(a,e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,n,c.resolvedFileName):function(e,t){e?Lt.add(t):Bt(t)}(I&&!!i,Hn(a,c,n));else if(i)if(u)cn(a,u,n,c.resolvedFileName);else{var d=e.tryExtractTypeScriptExtension(n);d?cn(a,e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,d,e.removeExtension(n,d)):cn(a,i,n)}}}function Hn(t,n,r){var i=n.packageId,a=n.resolvedFileName,o=i&&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,e.getMangledNameForScopedPackage(i.name));return e.createDiagnosticForNodeFromMessageChain(t,e.chainDiagnosticMessages(o,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,r,a))}function Gn(e,t){return e&&rr(Rn(e.exports.get("export="),t))||e}function Xn(t,n,r){var i=Gn(t,r);if(!r&&i){if(!(1539&i.flags))return cn(n,e.Diagnostics.Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct,Cr(t)),i;if(C.esModuleInterop){var a=n.parent;if(e.isImportDeclaration(a)&&e.getNamespaceDeclarationNode(a)||e.isImportCall(a)){var o=ci(i),s=Ma(o,0);if(s&&s.length||(s=Ma(o,1)),s&&s.length){var c=vd(o,i,t),u=un(i.flags,i.escapedName);u.declarations=i.declarations?i.declarations.slice():[],u.parent=i.parent,u.target=i,u.originatingImport=a,i.valueDeclaration&&(u.valueDeclaration=i.valueDeclaration),i.constEnumOnlyModule&&(u.constEnumOnlyModule=!0),i.members&&(u.members=e.cloneMap(i.members)),i.exports&&(u.exports=e.cloneMap(i.exports));var l=fa(c);return u.type=mr(u,l.members,e.emptyArray,e.emptyArray,l.stringIndexInfo,l.numberIndexInfo),u}}}}return i}function Qn(e){return void 0!==e.exports.get("export=")}function Yn(e){return Ka(er(e))}function $n(e,t){var n=er(t);if(n)return n.get(e)}function Zn(e){return 32&e.flags?Wi(e,"resolvedExports"):1536&e.flags?er(e):e.exports||S}function er(e){var t=yn(e);return t.resolvedExports||(t.resolvedExports=nr(e))}function tr(t,n,r,i){n&&n.forEach(function(n,a){if("default"!==a){var o=t.get(a);if(o){if(r&&i&&o&&Rn(o)!==Rn(n)){var s=r.get(a);s.exportsWithDuplicate?s.exportsWithDuplicate.push(i):s.exportsWithDuplicate=[i]}}else t.set(a,n),r&&i&&r.set(a,{specifierText:e.getTextOfNode(i.moduleSpecifier)})}})}function nr(t){var n=[];return function t(r){if(r&&1952&r.flags&&e.pushIfUnique(n,r)){var i=e.cloneMap(r.exports),a=r.exports.get("__export");if(a){for(var o=e.createSymbolTable(),s=e.createMap(),c=0,u=a.declarations;c<u.length;c++){var l=u[c];tr(o,t(Vn(l,l.moduleSpecifier)),s,l)}s.forEach(function(t,n){var r=t.exportsWithDuplicate;if("export="!==n&&r&&r.length&&!i.has(n))for(var a=0,o=r;a<o.length;a++)Lt.add(e.createDiagnosticForNode(o[a],e.Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,s.get(n).specifierText,e.unescapeLeadingUnderscores(n)))}),tr(i,o)}return i}}(t=Gn(t))||S}function rr(e){var t;return e&&e.mergeId&&(t=Dt[e.mergeId])?t:e}function ir(e){return rr(e.symbol&&Gi(e.symbol))}function ar(e){return rr(e.parent&&Gi(e.parent))}function or(e){return e&&0!=(1048576&e.flags)?rr(e.exportSymbol):e}function sr(e){return!!(67216319&e.flags||2097152&e.flags&&67216319&Bn(e).flags)}function cr(t){for(var n=0,r=t.members;n<r.length;n++){var i=r[n];if(154===i.kind&&e.nodeIsPresent(i.body))return i}}function ur(e){var t=new y(J,e);return t.id=++v,t}function lr(e,t){var n=ur(e);return n.intrinsicName=t,n}function _r(e,t){var n=ur(65536);return n.objectFlags=e,n.symbol=t,n}function dr(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)}function pr(t){var n;return t.forEach(function(e,t){dr(t)||(n||(n=[]),sr(e)&&n.push(e))}),n||e.emptyArray}function fr(e,t,n,r,i,a){return e.members=t,e.properties=pr(t),e.callSignatures=n,e.constructSignatures=r,i&&(e.stringIndexInfo=i),a&&(e.numberIndexInfo=a),e}function mr(e,t,n,r,i,a){return fr(_r(16,e),t,n,r,i,a)}function gr(t,n){for(var r,i=t;i;i=i.parent){if(i.locals&&!vn(i)&&(r=n(i.locals)))return r;switch(i.kind){case 272:if(!e.isExternalOrCommonJsModule(i))break;case 237:if(r=n(ir(i).exports))return r}}return n(_t)}function yr(e){return 67216319===e?67216319:1920}function hr(t,n,r,i,a){if(void 0===a&&(a=e.createMap()),t&&!function(e){if(e.declarations&&e.declarations.length){for(var t=0,n=e.declarations;t<n.length;t++)switch(n[t].kind){case 151:case 153:case 155:case 156:continue;default:return!1}return!0}return!1}(t)){var o,s=""+u(t);return a.has(s)?o=a.get(s):a.set(s,o=[]),gr(n,function a(s,u){if(e.pushIfUnique(o,s)){var _=function(o,s){return l(o.get(t.escapedName),void 0,s)?[t]:e.forEachEntry(o,function(t){if(2097152&t.flags&&"export="!==t.escapedName&&"default"!==t.escapedName&&!(e.isUMDExportSymbol(t)&&n&&e.isExternalModule(e.getSourceFileOfNode(n)))&&(!i||e.some(t.declarations,e.isExternalModuleImportEqualsDeclaration))){var o=Bn(t);if(l(t,o,s))return[t];var u=Zn(o),_=u&&a(u,!0);if(_&&c(t,yr(r)))return[t].concat(_)}})}(s,u);return o.pop(),_}})}function c(e,t){return!vr(e,n,t)||!!hr(e.parent,n,yr(t),i,a)}function l(n,i,a){return t===(i||n)&&!e.some(n.declarations,kr)&&(a||c(n,r))}}function vr(t,n,r){var i=!1;return gr(n,function(n){var a=n.get(t.escapedName);return!!a&&(a===t||!!((a=2097152&a.flags&&!e.getDeclarationOfKind(a,250)?Bn(a):a).flags&r)&&(i=!0,!0))}),i}function br(e,t){return 0===xr(e,t,67216319,!1).accessibility}function xr(t,n,r,i){if(t&&n&&!(262144&t.flags)){for(var a=t,o=r;t;){var s=hr(t,n,o,!1);if(s)return Sr(s[0],i)||{accessibility:1,errorSymbolName:Cr(a,n,r),errorModuleName:t!==a?Cr(t,n,1920):void 0};o=yr(r),t=ar(t)}var c=e.forEach(a.declarations,u);return c&&c!==u(n)?{accessibility:2,errorSymbolName:Cr(a,n,r),errorModuleName:Cr(c)}:{accessibility:1,errorSymbolName:Cr(a,n,r)}}return{accessibility:0};function u(t){var n=e.findAncestor(t,kr);return n&&ir(n)}}function kr(t){return e.isAmbientModule(t)||272===t.kind&&e.isExternalOrCommonJsModule(t)}function Sr(t,n){var r;if(!e.forEach(t.declarations,function(t){return!function(t){if(!Or(t)){var i=An(t);return!(!i||e.hasModifier(i,1)||!Or(i.parent)||(n&&(hn(t).isVisible=!0,r=e.appendIfUnique(r,i)),0))}return!0}(t)}))return{accessibility:0,aliasesToMakeVisible:r}}function Dr(t,n){var r;r=164===t.parent.kind||e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)||146===t.parent.kind?68264895:145===t.kind||183===t.kind||241===t.parent.kind?1920:67901928;var i=Cf(t),a=kn(n,i.escapedText,r,void 0,void 0,!1);return a&&Sr(a,!0)||{accessibility:1,errorSymbolName:e.getTextOfNode(i),errorNode:i}}function Cr(t,n,r,i,a){void 0===i&&(i=4);var o=3112960;2&i&&(o|=128),1&i&&(o|=512),8&i&&(o|=16384);var s=4&i?L.symbolToExpression:L.symbolToEntityName;return a?c(a).getText():e.usingSingleLineStringWriter(c);function c(i){var a=s(t,r,n,o),c=e.createPrinter({removeComments:!0}),u=n&&e.getSourceFileOfNode(n);return c.writeNode(4,a,u,i),i}}function Tr(t,n,r,i,a){return a?o(a).getText():e.usingSingleLineStringWriter(o);function o(a){var o=L.signatureToSignatureDeclaration(t,262144&r?1===i?163:162:1===i?158:157,n,3113472|Nr(r)),s=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),c=n&&e.getSourceFileOfNode(n);return s.writeNode(4,o,c,a),a}}function Er(t,n,r,i){void 0===r&&(r=1048576),void 0===i&&(i=e.createTextWriter(""));var a=L.typeToTypeNode(t,n,3112960|Nr(r),i);e.Debug.assert(void 0!==a,"should always get typenode");var o=e.createPrinter({removeComments:!0}),s=n&&e.getSourceFileOfNode(n);o.writeNode(4,a,s,i);var c=i.getText(),u=C.noErrorTruncation||1&r?void 0:100;return u&&c&&c.length>=u?c.substr(0,u-"...".length)+"...":c}function Nr(e){return 9469291&e}function Ar(t,n,r,i){return i?a(i).getText():e.usingSingleLineStringWriter(a);function a(i){var a=e.createTypePredicateNode(1===t.kind?e.createIdentifier(t.parameterName):e.createThisTypeNode(),L.typeToTypeNode(t.type,n,3113472|Nr(r))),o=e.createPrinter({removeComments:!0}),s=n&&e.getSourceFileOfNode(n);return o.writeNode(4,a,s,i),i}}function Pr(e){return 8===e?"private":16===e?"protected":"public"}function wr(t){return t&&t.parent&&238===t.parent.kind&&e.isExternalModuleAugmentation(t.parent.parent)}function Fr(t){return 272===t.kind||e.isAmbientModule(t)}function Ir(t,n){if(n&&"default"===t.escapedName&&!(16384&n.flags)&&(!(16777216&n.flags)||!t.declarations||n.enclosingDeclaration&&e.findAncestor(t.declarations[0],Fr)!==e.findAncestor(n.enclosingDeclaration,Fr)))return"default";if(t.declarations&&t.declarations.length){var r=t.declarations[0],i=e.getNameOfDeclaration(r);if(i)return e.declarationNameToString(i);if(r.parent&&230===r.parent.kind)return e.declarationNameToString(r.parent.name);switch(!n||n.encounteredError||131072&n.flags||(n.encounteredError=!0),r.kind){case 203:return"(Anonymous class)";case 190:case 191:return"(Anonymous function)"}}if(t.nameType&&32&t.nameType.flags){var a=t.nameType.value;if(!e.isIdentifierText(a,C.target))return'"'+e.escapeString(a,34)+'"'}return e.symbolName(t)}function Or(t){if(t){var n=hn(t);return void 0===n.isVisible&&(n.isVisible=!!function(){switch(t.kind){case 180:return Or(t.parent.parent);case 230:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 237:case 233:case 234:case 235:case 232:case 236:case 241:if(e.isExternalModuleAugmentation(t))return!0;var n=jr(t);return 1&e.getCombinedModifierFlags(t)||241!==t.kind&&272!==n.kind&&2097152&n.flags?Or(n):vn(n);case 151:case 150:case 155:case 156:case 153:case 152:if(e.hasModifier(t,24))return!1;case 154:case 158:case 157:case 159:case 148:case 238:case 162:case 163:case 165:case 161:case 166:case 167:case 168:case 169:case 172:return Or(t.parent);case 243:case 244:case 246:return!1;case 147:case 272:case 240:return!0;case 247:default:return!1}}()),n.isVisible}return!1}function Mr(t,n){var r,i;return t.parent&&247===t.parent.kind?r=kn(t,t.escapedText,70107135,void 0,t,!1):250===t.parent.kind&&(r=On(t.parent,70107135)),r&&function t(r){e.forEach(r,function(r){var a=An(r)||r;if(n?hn(r).isVisible=!0:e.pushIfUnique(i=i||[],a),e.isInternalModuleImportEqualsDeclaration(r)){var o=kn(r,Cf(r.moduleReference).escapedText,68009983,void 0,void 0,!1);o&&t(o.declarations)}})}(r.declarations),i}function Lr(e,t){var n=Rr(e,t);if(n>=0){for(var r=vt.length,i=n;i<r;i++)bt[i]=!1;return!1}return vt.push(e),bt.push(!0),xt.push(t),!0}function Rr(e,t){for(var n=vt.length-1;n>=0;n--){if(Br(vt[n],xt[n]))return-1;if(vt[n]===e&&xt[n]===t)return n}return-1}function Br(t,n){if(0===n)return yn(t).type;if(2===n)return yn(t).declaredType;if(1===n)return t.resolvedBaseConstructorType;if(3===n)return t.resolvedReturnType;if(4===n){var r=t.resolvedBaseConstraint;return r&&r!==ke}e.Debug.fail("Unhandled TypeSystemPropertyName "+n)}function zr(){return vt.pop(),xt.pop(),bt.pop()}function jr(t){return(t=e.findAncestor(e.getRootDeclaration(t),function(e){switch(e.kind){case 230:case 231:case 246:case 245:case 244:case 243:return!1;default:return!0}}))&&t.parent}function Jr(e,t){var n=Oa(e,t);return n?ci(n):void 0}function Kr(e){return e&&0!=(1&e.flags)}function Ur(e){var t=ir(e);return t&&yn(t).type||Qr(e,!1)}function Vr(t){return 146===t.kind&&!e.isStringOrNumericLiteral(t.expression)}function qr(t,n,r){if(16384&(t=rl(t,function(e){return!(12288&e.flags)})).flags)return ge;if(131072&t.flags)return il(t,function(e){return qr(e,n,r)});for(var i=e.createSymbolTable(),a=e.createUnderscoreEscapedMap(),o=0,s=n;o<s.length;o++)a.set(e.getTextOfPropertyName(s[o]),!0);for(var c=0,u=ha(t);c<u.length;c++){var l=u[c],_=a.has(l.escapedName),d=24&e.getDeclarationModifierFlagsFromSymbol(l),p=65536&l.flags&&!(32768&l.flags);_||d||Ls(l)||p||i.set(l.escapedName,l)}var f=za(t,0),m=za(t,1);return mr(r,i,e.emptyArray,e.emptyArray,f,m)}function Wr(t){var n,r=t.parent,i=Ur(r.parent);if(i===ee)return ee;if(!i)return t.initializer?Zd(t):i;if(Kr(i))return i;if(178===r.kind)if(t.dotDotDotToken){if(!a_(i))return cn(t,e.Diagnostics.Rest_types_may_only_be_created_from_object_types),ee;for(var a=[],o=0,s=r.elements;o<s.length;o++){var c=s[o];c.dotDotDotToken||a.push(c.propertyName||c.name)}n=qr(i,a,t.symbol)}else{var u=t.propertyName||t.name;if(Vr(u))return Y;var l=e.getTextOfPropertyName(u);P&&2097152&t.flags&&e.isParameterDeclaration(t)&&(i=ou(i));var _=Jr(i,l),d=_&&kl(_,t.name);if(!(n=d&&ml(t,d)||n_(l)&&ja(i,1)||ja(i,0)))return cn(u,e.Diagnostics.Type_0_has_no_property_1_and_no_string_index_signature,Er(i),e.declarationNameToString(u)),ee}else{var p=af(i,r,!1,!1);if(t.dotDotDotToken)n=Zo(p);else{var f=""+r.elements.indexOf(t);if(!(n=Wc(i)?Jr(i,f):p))return Zc(i)?cn(t,e.Diagnostics.Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2,Er(i),xo(i),r.elements.length):cn(t,e.Diagnostics.Type_0_has_no_property_1,Er(i),f),ee}}return!P||!t.initializer||4096&tu(Yd(t.initializer))||(n=Uu(n,131072)),t.initializer?ss([n,Yd(t.initializer)],2):n}function Hr(t){var n=e.getJSDocType(t);if(n)return Us(n)}function Gr(t){var n=e.skipParentheses(t);return 181===n.kind&&0===n.elements.length}function Xr(e,t){return void 0===t&&(t=!0),P&&t?au(e):e}function Qr(t,n){if(e.isVariableDeclaration(t)&&219===t.parent.parent.kind){var r=fs(N_(t.parent.parent.expression));return 557056&r.flags?r:ae}if(e.isVariableDeclaration(t)&&220===t.parent.parent.kind){var i=t.parent.parent;return rf(i.expression,i.awaitModifier)||Y}if(e.isBindingPattern(t.parent))return Wr(t);var a=!1;if(n){if(e.isInJavaScriptFile(t)&&e.isParameter(t)){var o=e.getJSDocParameterTags(t);a=!!(o&&o.length>0&&e.find(o,function(e){return e.isBracketed}))}e.isBindingElement(t)||e.isVariableDeclaration(t)||!t.questionToken||(a=!0)}var s,c,u=ti(t);if(u)return Xr(u,a);if((I||e.isInJavaScriptFile(t))&&230===t.kind&&!e.isBindingPattern(t.name)&&!(1&e.getCombinedModifierFlags(t))&&!(2097152&t.flags)){if(!(2&e.getCombinedNodeFlags(t)||t.initializer&&(s=t.initializer,c=e.skipParentheses(s),95!==c.kind&&(71!==c.kind||Ou(c)!==R))))return $;if(t.initializer&&Gr(t.initializer))return Be}if(148===t.kind){var l=t.parent;if(156===l.kind&&!Ui(l)){var _=e.getDeclarationOfKind(ir(t.parent),155);if(_){var d=Qa(_),p=zm(l);return p&&t===p?(e.Debug.assert(!p.type),ci(d.thisParameter)):no(d)}}var f=void 0;if(f="this"===t.symbol.escapedName?Ol(l):Ml(t))return Xr(f,a)}return t.initializer?Xr(f=Zd(t),a):e.isJsxAttribute(t)?se:e.isBindingPattern(t.name)?$r(t.name,!1,!0):void 0}function Yr(t,n,r){return t.initializer?Zd(t):e.isBindingPattern(t.name)?$r(t.name,n,r):(r&&I&&!ei(t)&&mu(t,Y),Y)}function $r(t,n,r){return 178===t.kind?function(t,n,r){var i,a=e.createSymbolTable(),o=!1;e.forEach(t.elements,function(t){var s=t.propertyName||t.name;if(Vr(s))o=!0;else if(t.dotDotDotToken)i=po(Y,!1);else{var c=e.getTextOfPropertyName(s),u=un(4|(t.initializer?16777216:0),c);u.type=Yr(t,n,r),u.bindingElement=t,a.set(u.escapedName,u)}});var s=mr(void 0,a,e.emptyArray,e.emptyArray,i,void 0);return n&&(s.pattern=t),o&&(s.objectFlags|=512),s}(t,n,r):function(t,n,r){var i=t.elements,a=e.lastOrUndefined(i);if(0===i.length||!e.isOmittedExpression(a)&&a.dotDotDotToken)return T>=2?Yo(Y):Re;var o=es(e.map(i,function(t){return e.isOmittedExpression(t)?Y:Yr(t,n,r)}));return n&&((o=bo(o)).pattern=t),o}(t,n,r)}function Zr(t,n){var r=Qr(t,!0);return r?(n&&gu(t,r),1024&r.flags&&(e.isBindingElement(t)||!t.type)&&r.symbol!==ir(t)&&(r=le),pu(r)):(r=e.isParameter(t)&&t.dotDotDotToken?Re:Y,n&&I&&(ei(t)||mu(t,r)),r)}function ei(t){var n=e.getRootDeclaration(t);return vp(148===n.kind?n.parent:n)}function ti(t){var n=e.getEffectiveTypeAnnotationNode(t);if(n)return Us(n)}function ni(t){if(t){if(155===t.kind){var n=e.getEffectiveReturnTypeNode(t);return n&&Us(n)}var r=e.getEffectiveSetAccessorTypeAnnotationNode(t);return r&&Us(r)}}function ri(e){return Za(Qa(e))}function ii(t){var n=yn(t);if(!n.type){var r=e.getDeclarationOfKind(t,155),i=e.getDeclarationOfKind(t,156);if(r&&e.isInJavaScriptFile(r)){var a=Hr(r);if(a)return n.type=a}if(!Lr(t,0))return ee;var o=void 0,s=ni(r);if(s)o=s;else{var c=ni(i);c?o=c:r&&r.body?o=Nd(r):(I&&(i?cn(i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Cr(t)):(e.Debug.assert(!!r,"there must existed getter as we are current checking either setter or getter in this function"),cn(r,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Cr(t)))),o=Y)}zr()||(o=Y,I&&cn(e.getDeclarationOfKind(t,155),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,Cr(t))),n.type=o}return n.type}function ai(e){var t=xi(Di(e));return 1081344&t.flags?t:void 0}function oi(t){var n=yn(t);if(!n.type)if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))n.type=Y;else{var r=_r(16,t);if(32&t.flags){var i=ai(t);n.type=i?ds([r,i]):r}else n.type=P&&16777216&t.flags?au(r):r}return n.type}function si(t){return e.getEffectiveTypeAnnotationNode(t.valueDeclaration)?(cn(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Cr(t)),ee):(I&&cn(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,Cr(t)),Y)}function ci(t){return 1&e.getCheckFlags(t)?function(t){var n=yn(t);if(!n.type)if(100===k)cn(t.valueDeclaration,e.Diagnostics.Generic_type_instantiation_is_excessively_deep_and_possibly_infinite),n.type=ee;else{if(!Lr(t,0))return ee;k++;var r=ac(ci(n.target),n.mapper);k--,zr()||(r=si(t)),n.type=r}return n.type}(t):2048&e.getCheckFlags(t)?function(e){return Su(e.propertyType,e.mappedType)}(t):7&t.flags?function(t){var n,r=yn(t);if(!r.type){if(4194304&t.flags)return r.type=(n=wi(ar(t))).typeParameters?vo(n,e.map(n.typeParameters,function(e){return Y})):n;var i=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(i))return r.type=Y;if(247===i.kind)return r.type=ap(i.expression);if(e.isInJavaScriptFile(i)&&e.isJSDocPropertyLikeTag(i)&&i.typeExpression)return r.type=Us(i.typeExpression.type);if(!Lr(t,0))return ee;var a=void 0;if(198===i.kind||183===i.kind&&198===i.parent.kind)a=function(t){var n=e.getAssignedJavascriptInitializer(t.valueDeclaration);if(n)return Qc(Yd(n));for(var r,i=[],a=!1,o=!1,s=0,c=t.declarations;s<c.length;s++){var u=c[s],l=198===u.kind?u:183===u.kind?e.getAncestor(u,198):void 0;if(!l)return ee;e.isPropertyAccessExpression(l.left)&&99===l.left.expression.kind&&(154===e.getThisContainer(l,!1).kind?a=!0:o=!0);var _=Hr(l.parent);if(_){var d=pu(_);r?r===ee||d===ee||dc(r,d)||67108864&t.flags||ef(r,u,d):r=d}else r||i.push(Qc(Yd(l.right)))}return pu(Xr(r||ss(i,2),o&&!a))}(t);else if(e.isJSDocPropertyTag(i)||e.isPropertyAccessExpression(i)||e.isIdentifier(i)||e.isMethodDeclaration(i)&&!e.isObjectLiteralMethod(i)||e.isMethodSignature(i)){if(9136&t.flags)return oi(t);a=ti(i)||Y}else e.isPropertyAssignment(i)?a=ti(i)||tp(i):e.isJsxAttribute(i)?a=ti(i)||c_(i):e.isShorthandPropertyAssignment(i)?a=ti(i)||ep(i.name,0):e.isObjectLiteralMethod(i)?a=ti(i)||np(i,0):e.isParameter(i)||e.isPropertyDeclaration(i)||e.isPropertySignature(i)||e.isVariableDeclaration(i)||e.isBindingElement(i)?a=Zr(i,!0):e.Debug.fail("Unhandled declaration kind! "+e.Debug.showSyntaxKind(i));zr()||(a=si(t)),r.type=a}return r.type}(t):9136&t.flags?oi(t):8&t.flags?function(e){var t=yn(e);return t.type||(t.type=Ai(e)),t.type}(t):98304&t.flags?ii(t):2097152&t.flags?function(e){var t=yn(e);if(!t.type){var n=Bn(e);t.type=67216319&n.flags?ci(n):ee}return t.type}(t):ee}function ui(t,n){return void 0!==t&&void 0!==n&&0!=(4&e.getObjectFlags(t))&&t.target===n}function li(t){return 4&e.getObjectFlags(t)?t.target:t}function _i(t,n){return function t(r){if(7&e.getObjectFlags(r)){var i=li(r);return i===n||e.forEach(ki(i),t)}if(262144&r.flags)return e.forEach(r.types,t)}(t)}function di(t,n){for(var r=0,i=n;r<i.length;r++){var a=Pi(ir(i[r]));t=e.appendIfUnique(t,a)}return t}function pi(t,n){for(;;){if(!(t=t.parent))return;switch(t.kind){case 233:case 203:case 234:case 157:case 158:case 152:case 162:case 163:case 280:case 232:case 153:case 190:case 191:case 235:case 290:case 176:case 170:var r=pi(t,n);if(176===t.kind)return e.append(r,Pi(ir(t.typeParameter)));if(170===t.kind)return e.concatenate(r,As(t));var i=di(r,e.getEffectiveTypeParameterDeclarations(t)||e.emptyArray),a=n&&(233===t.kind||203===t.kind||234===t.kind)&&Di(ir(t)).thisType;return a?e.append(i,a):i}}}function fi(t){return pi(32&t.flags?t.valueDeclaration:e.getDeclarationOfKind(t,234))}function mi(e){for(var t,n=0,r=e.declarations;n<r.length;n++){var i=r[n];234!==i.kind&&233!==i.kind&&203!==i.kind&&235!==i.kind||i.typeParameters&&(t=di(t,i.typeParameters))}return t}function gi(e){var t=La(e,1);if(1===t.length){var n=t[0];return!n.typeParameters&&1===n.parameters.length&&n.hasRestParameter&&kd(n.parameters[0])===Re}return!1}function yi(e){if(Si(e)&&La(e,1).length>0)return!0;if(1081344&e.flags){var t=Da(e);return t&&Si(t)&&gi(t)}return!1}function hi(t){var n=t.symbol.valueDeclaration;if(e.isInJavaScriptFile(n)){var r=e.getJSDocAugmentsTag(n);if(r)return r.class}return e.getClassExtendsHeritageClauseElement(n)}function vi(t,n,r){var i=e.length(n),a=e.isInJavaScriptFile(r);return e.filter(La(t,1),function(t){return(a||i>=Ga(t.typeParameters))&&i<=e.length(t.typeParameters)})}function bi(t,n,r){var i=vi(t,n,r),a=e.map(n,Us);return e.sameMap(i,function(t){return e.some(t.typeParameters)?io(t,a,e.isInJavaScriptFile(r)):t})}function xi(t){if(!t.resolvedBaseConstructorType){var n=e.getClassExtendsHeritageClauseElement(t.symbol.valueDeclaration),r=hi(t);if(!r)return t.resolvedBaseConstructorType=te;if(!Lr(t,1))return ee;var i=ap(r.expression);if(n&&r!==n&&(e.Debug.assert(!n.typeArguments),ap(n.expression)),327680&i.flags&&fa(i),!zr())return cn(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Cr(t.symbol)),t.resolvedBaseConstructorType=ee;if(!(1&i.flags||i===ie||yi(i)))return cn(r.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,Er(i)),t.resolvedBaseConstructorType=ee;t.resolvedBaseConstructorType=i}return t.resolvedBaseConstructorType}function ki(t){return t.resolvedBaseTypes||(8&t.objectFlags?t.resolvedBaseTypes=[Zo(ss(t.typeParameters))]:96&t.symbol.flags?(32&t.symbol.flags&&function(t){t.resolvedBaseTypes=e.resolvingEmptyArray;var n=Pa(xi(t));if(!(327681&n.flags))return t.resolvedBaseTypes=e.emptyArray;var r,i=hi(t),a=Io(i),o=n&&n.symbol?wi(n.symbol):void 0;if(n.symbol&&32&n.symbol.flags&&function(e){var t=o.outerTypeParameters;if(t){var n=t.length-1;return t[n].symbol!==o.typeArguments[n].symbol}return!0}())r=ko(i,n.symbol,a);else if(1&n.flags)r=n;else{var s=bi(n,i.typeArguments,i);if(!s.length)return cn(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),t.resolvedBaseTypes=e.emptyArray;r=no(s[0])}r===ee?t.resolvedBaseTypes=e.emptyArray:Si(r)?t===r||_i(r,t)?(cn(t.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Er(t,void 0,2)),t.resolvedBaseTypes=e.emptyArray):(t.resolvedBaseTypes===e.resolvingEmptyArray&&(t.members=void 0),t.resolvedBaseTypes=[r]):(cn(i.expression,e.Diagnostics.Base_constructor_return_type_0_is_not_a_class_or_interface_type,Er(r)),t.resolvedBaseTypes=e.emptyArray)}(t),64&t.symbol.flags&&function(t){t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray;for(var n=0,r=t.symbol.declarations;n<r.length;n++){var i=r[n];if(234===i.kind&&e.getInterfaceBaseTypeNodes(i))for(var a=0,o=e.getInterfaceBaseTypeNodes(i);a<o.length;a++){var s=o[a],c=Us(s);c!==ee&&(Si(c)?t===c||_i(c,t)?cn(i,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Er(t,void 0,2)):t.resolvedBaseTypes===e.emptyArray?t.resolvedBaseTypes=[c]:t.resolvedBaseTypes.push(c):cn(s,e.Diagnostics.An_interface_may_only_extend_a_class_or_another_interface))}}}(t)):e.Debug.fail("type must be class or interface")),t.resolvedBaseTypes}function Si(t){return 134283265&t.flags&&!pa(t)||262144&t.flags&&!e.forEach(t.types,function(e){return!Si(e)})}function Di(t){var n=yn(t);if(!n.declaredType){var r=32&t.flags?1:2,i=n.declaredType=_r(r,t),a=fi(t),o=mi(t);(a||o||1===r||!function(t){for(var n=0,r=t.declarations;n<r.length;n++){var i=r[n];if(234===i.kind){if(64&i.flags)return!1;var a=e.getInterfaceBaseTypeNodes(i);if(a)for(var o=0,s=a;o<s.length;o++){var c=s[o];if(e.isEntityNameExpression(c.expression)){var u=Un(c.expression,67901928,!0);if(!u||!(64&u.flags)||Di(u).thisType)return!1}}}}return!0}(t))&&(i.objectFlags|=4,i.typeParameters=e.concatenate(a,o),i.outerTypeParameters=a,i.localTypeParameters=o,i.instantiations=e.createMap(),i.instantiations.set(yo(i.typeParameters),i),i.target=i,i.typeArguments=i.typeParameters,i.thisType=ur(32768),i.thisType.isThisType=!0,i.thisType.symbol=t,i.thisType.constraint=i)}return n.declaredType}function Ci(t){var n=t.initializer;if(!n)return!(2097152&t.flags);switch(n.kind){case 9:case 8:return!0;case 196:return 38===n.operator&&8===n.operand.kind;case 71:return e.nodeIsMissing(n)||!!ir(t.parent).exports.get(n.escapedText);default:return!1}}function Ti(e){var t=yn(e);if(void 0!==t.enumKind)return t.enumKind;for(var n=!1,r=0,i=e.declarations;r<i.length;r++){var a=i[r];if(236===a.kind)for(var o=0,s=a.members;o<s.length;o++){var c=s[o];if(c.initializer&&9===c.initializer.kind)return t.enumKind=1;Ci(c)||(n=!0)}}return t.enumKind=n?0:1}function Ei(e){return 256&e.flags&&!(131072&e.flags)?wi(ar(e.symbol)):e}function Ni(e){var t=yn(e);if(t.declaredType)return t.declaredType;if(1===Ti(e)){x++;for(var n=[],r=0,i=e.declarations;r<i.length;r++){var a=i[r];if(236===a.kind)for(var o=0,s=a.members;o<s.length;o++){var c=s[o],u=js(_m(c),x,ir(c));yn(ir(c)).declaredType=u,n.push(u)}}if(n.length){var l=ss(n,1,e,void 0);return 131072&l.flags&&(l.flags|=256,l.symbol=e),t.declaredType=l}}var _=ur(16);return _.symbol=e,t.declaredType=_}function Ai(e){var t=yn(e);if(!t.declaredType){var n=Ni(ar(e));t.declaredType||(t.declaredType=n)}return t.declaredType}function Pi(e){var t=yn(e);if(!t.declaredType){var n=ur(32768);n.symbol=e,t.declaredType=n}return t.declaredType}function wi(e){return Fi(e)||ee}function Fi(t){return 96&t.flags?Di(t):524288&t.flags?function(t){var n=yn(t);if(!n.declaredType){if(!Lr(t,2))return ee;var r=e.find(t.declarations,function(e){return 291===e.kind||235===e.kind}),i=291===r.kind?r.typeExpression:r.type,a=i?Us(i):ee;if(zr()){var o=mi(t);o&&(n.typeParameters=o,n.instantiations=e.createMap(),n.instantiations.set(yo(o),a))}else a=ee,cn(r.name,e.Diagnostics.Type_alias_0_circularly_references_itself,Cr(t));n.declaredType=a}return n.declaredType}(t):262144&t.flags?Pi(t):384&t.flags?Ni(t):8&t.flags?Ai(t):2097152&t.flags?function(e){var t=yn(e);return t.declaredType||(t.declaredType=wi(Bn(e))),t.declaredType}(t):void 0}function Ii(e){switch(e.kind){case 119:case 137:case 134:case 122:case 138:case 135:case 105:case 140:case 95:case 131:case 177:return!0;case 166:return Ii(e.elementType);case 161:return!e.typeArguments||e.typeArguments.every(Ii)}return!1}function Oi(e){return!e.constraint||Ii(e.constraint)}function Mi(t){var n=e.getEffectiveTypeAnnotationNode(t);return n?Ii(n):!e.hasInitializer(t)}function Li(t){if(t.declarations&&1===t.declarations.length){var n=t.declarations[0];if(n)switch(n.kind){case 151:case 150:return Mi(n);case 153:case 152:case 154:return i=e.getEffectiveReturnTypeNode(r=n),(154===r.kind||i&&Ii(i))&&r.parameters.every(Mi)&&(!r.typeParameters||r.typeParameters.every(Oi))}}var r,i;return!1}function Ri(t,n,r){for(var i=e.createSymbolTable(),a=0,o=t;a<o.length;a++){var s=o[a];i.set(s.escapedName,r&&Li(s)?s:ec(s,n))}return i}function Bi(e,t){for(var n=0,r=t;n<r.length;n++){var i=r[n];e.has(i.escapedName)||e.set(i.escapedName,i)}}function zi(e){if(!e.declaredProperties){var t=e.symbol,n=Hi(t);e.declaredProperties=pr(n),e.declaredCallSignatures=$a(n.get("__call")),e.declaredConstructSignatures=$a(n.get("__new")),e.declaredStringIndexInfo=fo(t,0),e.declaredNumberIndexInfo=fo(t,1)}return e}function ji(e){return!!(1120&e.flags)}function Ji(t){return e.isComputedPropertyName(t)&&e.isEntityNameExpression(t.expression)&&ji(r_(t))}function Ki(t){var n=e.getNameOfDeclaration(t);return n&&Ji(n)}function Ui(t){return e.hasDynamicName(t)&&!Ki(t)}function Vi(t){return 1024&t.flags?"__@"+t.symbol.escapedName+"@"+u(t.symbol):96&t.flags?e.escapeLeadingUnderscores(""+t.value):void 0}function qi(t,n,r,i){e.Debug.assert(!!i.symbol,"The member is expected to have a symbol.");var a=hn(i);if(!a.resolvedSymbol){a.resolvedSymbol=i.symbol;var o=r_(i.name);if(ji(o)){var s=Vi(o),c=i.symbol.flags,u=r.get(s);u||r.set(s,u=un(0,s,1024));var l=n&&n.get(s);if(u.flags&_n(c)||l){var _=l?e.concatenate(l.declarations,u.declarations):u.declarations,d=e.declarationNameToString(i.name);e.forEach(_,function(t){return cn(e.getNameOfDeclaration(t)||t,e.Diagnostics.Duplicate_declaration_0,d)}),cn(i.name||i,e.Diagnostics.Duplicate_declaration_0,d),u=un(0,s,1024)}var p=yn(u);return p.nameType||(p.nameType=o),function(t,n,r){if(e.Debug.assert(!!(1024&e.getCheckFlags(t)),"Expected a late-bound symbol."),t.flags|=r,yn(n.symbol).lateSymbol=t,t.declarations?t.declarations.push(n):t.declarations=[n],67216319&r){var i=t.valueDeclaration;i&&i.kind===n.kind||(t.valueDeclaration=n)}}(u,i,c),u.parent?e.Debug.assert(u.parent===t,"Existing symbol parent should match new one"):u.parent=t,a.resolvedSymbol=u}}return a.resolvedSymbol}function Wi(t,n){var r=yn(t);if(!r[n]){var i="resolvedExports"===n,a=i?1536&t.flags?nr(t):t.exports:t.members;r[n]=a||S;for(var o=e.createSymbolTable(),s=0,c=t.declarations;s<c.length;s++){var u=e.getMembersOfDeclaration(c[s]);if(u)for(var l=0,_=u;l<_.length;l++){var d=_[l];i===e.hasStaticModifier(d)&&Ki(d)&&qi(t,a,o,d)}}r[n]=function(t,n){if(!t||0===t.size)return n;if(!n||0===n.size)return t;var r=e.createSymbolTable();return mn(r,t),mn(r,n),r}(a,o)||S}return r[n]}function Hi(e){return 6240&e.flags?Wi(e,"resolvedMembers"):e.members||S}function Gi(t){if(106500&t.flags&&"__computed"===t.escapedName){var n=yn(t);return!n.lateSymbol&&e.some(t.declarations,Ki)&&(e.some(t.declarations,e.hasStaticModifier)?Zn(t.parent):Hi(t.parent)),n.lateSymbol||(n.lateSymbol=t)}return t}function Xi(t,n,r){if(4&e.getObjectFlags(t)){var i=t.target,a=t.typeArguments;if(e.length(i.typeParameters)===e.length(a)){var o=vo(i,e.concatenate(a,[n||i.thisType]));return r?Pa(o):o}}else if(262144&t.flags)return ds(e.map(t.types,function(e){return Xi(e,n,r)}));return r?Pa(t):t}function Qi(t,n,r,i){var a,o,s,c,u,l;e.rangeEquals(r,i,0,r.length)?(a=D,o=n.symbol?Hi(n.symbol):e.createSymbolTable(n.declaredProperties),s=n.declaredCallSignatures,c=n.declaredConstructSignatures,u=n.declaredStringIndexInfo,l=n.declaredNumberIndexInfo):(a=Hs(r,i),o=Ri(n.declaredProperties,a,1===r.length),s=Ws(n.declaredCallSignatures,a),c=Ws(n.declaredConstructSignatures,a),u=sc(n.declaredStringIndexInfo,a),l=sc(n.declaredNumberIndexInfo,a));var _=ki(n);if(_.length){n.symbol&&o===Hi(n.symbol)&&(o=e.createSymbolTable(n.declaredProperties)),fr(t,o,s,c,u,l);for(var d=e.lastOrUndefined(i),p=0,f=_;p<f.length;p++){var m=f[p],g=d?Xi(ac(m,a),d):m;Bi(o,ha(g)),s=e.concatenate(s,La(g,0)),c=e.concatenate(c,La(g,1)),u||(u=g===Y?po(Y,!1):za(g,0)),l=l||za(g,1)}}fr(t,o,s,c,u,l)}function Yi(e,t,n,r,i,a,o,s,c){var u=new h(J);return u.declaration=e,u.typeParameters=t,u.parameters=r,u.thisParameter=n,u.resolvedReturnType=i,u.resolvedTypePredicate=a,u.minArgumentCount=o,u.hasRestParameter=s,u.hasLiteralTypes=c,u.target=void 0,u.mapper=void 0,u}function $i(e){return Yi(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,e.hasRestParameter,e.hasLiteralTypes)}function Zi(e,t,n,r,i){for(var a=0,o=e;a<o.length;a++){var s=o[a];if(Jc(s,t,n,r,i,pc))return s}}function ea(t,n,r){if(n.typeParameters){if(r>0)return;for(var i=1;i<t.length;i++)if(!Zi(t[i],n,!1,!1,!1))return;return[n]}var a;for(i=0;i<t.length;i++){var o=i===r?n:Zi(t[i],n,!0,!0,!0);if(!o)return;a=e.appendIfUnique(a,o)}return a}function ta(t,n){for(var r,i=e.map(t,function(e){return La(e,n)}),a=0;a<i.length;a++)for(var o=0,s=i[a];o<s.length;o++){var c=s[o];if(!r||!Zi(r,c,!1,!0,!0)){var u=ea(i,c,a);if(u){var l=c;if(u.length>1){var _=c.thisParameter;if(e.forEach(u,function(e){return e.thisParameter})){var d=ss(e.map(u,function(e){return e.thisParameter?ci(e.thisParameter):Y}),2);_=cu(c.thisParameter,d)}(l=$i(c)).thisParameter=_,l.unionSignatures=u}(r||(r=[])).push(l)}}}return r||e.emptyArray}function na(e,t){for(var n=[],r=!1,i=0,a=e;i<a.length;i++){var o=za(a[i],t);if(!o)return;n.push(o.type),r=r||o.isReadonly}return po(ss(n,2),r)}function ra(e,t){return e?t?ds([e,t]):e:t}function ia(e,t){return e?t?po(ds([e.type,t.type]),e.isReadonly&&t.isReadonly):e:t}function aa(e,t){return e&&t&&po(ss([e.type,t.type]),e.isReadonly||t.isReadonly)}function oa(e){return e.typeParameter||(e.typeParameter=Pi(ir(e.declaration.typeParameter)))}function sa(e){return e.constraintType||(e.constraintType=ac(ba(oa(e)),e.mapper||D)||ee)}function ca(e){return e.templateType||(e.templateType=e.declaration.type?ac(Xr(Us(e.declaration.type),!!(4&la(e))),e.mapper||D):ee)}function ua(e){if(!e.modifiersType){var t=e.declaration.typeParameter.constraint;if(174===t.kind&&128===t.operator)e.modifiersType=ac(Us(t.type),e.mapper||D);else{var n=sa(Ds(e.declaration)),r=n&&32768&n.flags?ba(n):n;e.modifiersType=r&&524288&r.flags?ac(r.type,e.mapper||D):ge}}return e.modifiersType}function la(e){var t=e.declaration;return(t.readonlyToken?38===t.readonlyToken.kind?2:1:0)|(t.questionToken?38===t.questionToken.kind?8:4:0)}function _a(e){var t=la(e);return 8&t?-1:4&t?1:0}function da(e){var t=_a(e),n=ua(e);return t||(pa(n)?_a(n):0)}function pa(t){return 32&e.getObjectFlags(t)&&ys(sa(t))}function fa(t){return t.members||(65536&t.flags?4&t.objectFlags?function(t){var n=zi(t.target),r=e.concatenate(n.typeParameters,[n.thisType]);Qi(t,n,r,t.typeArguments&&t.typeArguments.length===r.length?t.typeArguments:e.concatenate(t.typeArguments,[t]))}(t):3&t.objectFlags?function(t){Qi(t,zi(t),e.emptyArray,e.emptyArray)}(t):2048&t.objectFlags?function(t){for(var n=za(t.source,0),r=la(t.mappedType),i=!(1&r),a=4&r?0:16777216,o=n&&po(Su(n.type,t.mappedType),i&&n.isReadonly),s=e.createSymbolTable(),c=0,u=ha(t.source);c<u.length;c++){var l=u[c],_=2048|(i&&Md(l)?8:0),d=un(4|l.flags&a,l.escapedName,_);d.declarations=l.declarations,d.propertyType=ci(l),d.mappedType=t.mappedType,s.set(l.escapedName,d)}fr(t,s,e.emptyArray,e.emptyArray,o,void 0)}(t):16&t.objectFlags?function(t){var n=t.symbol;if(t.target)fr(t,r=Ri(ma(t.target),t.mapper,!1),Ws(La(t.target,0),t.mapper),o=Ws(La(t.target,1),t.mapper),i=sc(za(t.target,0),t.mapper),sc(za(t.target,1),t.mapper));else if(2048&n.flags)fr(t,r=Hi(n),$a(r.get("__call")),o=$a(r.get("__new")),i=fo(n,0),fo(n,1));else{var r=S,i=void 0;if(n.exports&&(r=Zn(n)),fr(t,r,e.emptyArray,e.emptyArray,void 0,void 0),32&n.flags){var a=xi(s=Di(n));1409024&a.flags?Bi(r=e.createSymbolTable(pr(r)),ha(a)):a===Y&&(i=po(Y,!1))}if(fr(t,r,e.emptyArray,e.emptyArray,i,384&n.flags?ut:void 0),8208&n.flags&&(t.callSignatures=$a(n)),32&n.flags){var o,s=Di(n);(o=$a(n.members.get("__constructor"))).length||(o=function(t){var n=La(xi(t),1);if(0===n.length)return[Yi(void 0,t.localTypeParameters,void 0,e.emptyArray,t,void 0,0,!1,!1)];for(var r=hi(t),i=e.isInJavaScriptFile(r),a=Io(r),o=e.length(a),s=[],c=0,u=n;c<u.length;c++){var l=u[c],_=Ga(l.typeParameters),d=e.length(l.typeParameters);if(i||o>=_&&o<=d){var p=d?ao(l,Xa(a,l.typeParameters,_,i)):$i(l);p.typeParameters=t.localTypeParameters,p.resolvedReturnType=t,s.push(p)}}return s}(s)),t.constructSignatures=o}}}(t):32&t.objectFlags&&function(t){var n,r=e.createSymbolTable();fr(t,S,e.emptyArray,e.emptyArray,void 0,void 0);var i=oa(t),a=sa(t),o=ca(t.target||t),s=Pa(ua(t)),c=la(t),u=t.declaration.typeParameter.constraint;if(174===u.kind&&128===u.operator){for(var l=0,_=ha(s);l<_.length;l++){var d=_[l];f(ps(d),d)}(1&s.flags||za(s,0))&&f(ae)}else{var p=7372800&a.flags?Pa(a):a;nl(524288&p.flags?fs(Pa(p.type)):p,f)}function f(e,a){var u;"object"==typeof a&&(u=a);var l=Xs(t.mapper,Hs([i],[e])),_=ac(o,l);if(32&e.flags){var d=Vi(e),p=Oa(s,d),f=!!(4&c||!(8&c)&&p&&16777216&p.flags),m=!!(1&c||!(2&c)&&p&&Md(p)),g=un(4|(f?16777216:0),d,m?8:0);g.type=P&&f&&!gc(te,_)?au(_):P&&!f&&p&&16777216&p.flags?Uu(_,131072):_,u&&(g.syntheticOrigin=u,g.declarations=u.declarations),g.nameType=e,r.set(d,g)}else 3&e.flags&&(n=po(_,!!(1&c)))}fr(t,r,e.emptyArray,e.emptyArray,n,void 0)}(t):131072&t.flags?function(e){var t=ta(e.types,0),n=ta(e.types,1),r=na(e.types,0),i=na(e.types,1);fr(e,S,t,n,r,i)}(t):262144&t.flags&&function(t){for(var n,r,i=e.emptyArray,a=e.emptyArray,o=t.types,s=e.countWhere(o,gi),c=function(c){var u=t.types[c];if(0===s||s===o.length&&0===c||!gi(u)){var l=La(u,1);l.length&&s>0&&(l=e.map(l,function(e){var t=$i(e);return t.resolvedReturnType=function(e,t,n){for(var r=[],i=0;i<t.length;i++)i===n?r.push(e):gi(t[i])&&r.push(no(La(t[i],1)[0]));return ds(r)}(no(e),o,c),t})),a=e.concatenate(a,l)}i=e.concatenate(i,La(u,0)),n=ia(n,za(u,0)),r=ia(r,za(u,1))},u=0;u<o.length;u++)c(u);fr(t,S,i,a,n,r)}(t)),t}function ma(t){return 65536&t.flags?fa(t).properties:e.emptyArray}function ga(e,t){if(65536&e.flags){var n=fa(e).members.get(t);if(n&&sr(n))return n}}function ya(t){if(!t.resolvedProperties){for(var n=e.createSymbolTable(),r=0,i=t.types;r<i.length;r++){for(var a=0,o=ha(i[r]);a<o.length;a++){var s=o[a];if(!n.has(s.escapedName)){var c=Ia(t,s.escapedName);c&&n.set(s.escapedName,c)}}if(131072&t.flags)break}t.resolvedProperties=pr(n)}return t.resolvedProperties}function ha(e){return 393216&(e=Pa(e)).flags?ya(e):ma(e)}function va(e){return 32768&e.flags?ba(e):1048576&e.flags?function(e){var t=bs(e);if(t)return t;var n=Da(e.objectType),r=Da(e.indexType);return r===ae&&!za(n||e.objectType,0)||!n&&!r?void 0:ks(n||e.objectType,r||e.indexType)}(e):2097152&e.flags?Sa(e):Da(e)}function ba(e){return Ta(e)?mo(e):void 0}function xa(e){return ss([Es(e),Ns(e)])}function ka(e){if(e.root.isDistributive){var t=va(e.checkType);if(t)return ic(e,Xs(Hs([e.root.checkType],[t]),e.mapper))}}function Sa(e){return ka(e)||xa(e)}function Da(e){var t=function(e){if(7766016&e.flags){var t=Ea(e);if(t!==xe&&t!==ke)return t}}(e);return!t&&524288&e.flags?ae:t}function Ca(e){return Da(e)||e}function Ta(e){return Ea(e)!==ke}function Ea(e){var t;if(!e.resolvedBaseConstraint){var n=function e(n){if(Lr(n,4)){var r=function(t){if(32768&t.flags){var n=mo(t);return t.isThisType||!n?n:e(n)}if(393216&t.flags){for(var r=t.types,i=[],a=0,o=r;a<o.length;a++){var s=e(o[a]);s&&i.push(s)}return 131072&t.flags&&i.length===r.length?ss(i):262144&t.flags&&i.length?ds(i):void 0}if(524288&t.flags)return ae;if(1048576&t.flags){var c=bs(t);if(c)return e(c);var u=e(t.objectType),l=e(t.indexType),_=u&&l?ks(u,l):void 0;return _&&_!==ee?e(_):void 0}return 2097152&t.flags?(n=Sa(t))&&e(n):4194304&t.flags?e(t.substitute):pa(t)?ge:t}(n);if(zr())return r;t=!0}else t=!0}(e);e.resolvedBaseConstraint=t?ke:Xi(n||xe,e)}return e.resolvedBaseConstraint}function Na(t){if(t.default)t.default===Se&&(t.default=ke);else if(t.target){var n=Na(t.target);t.default=n?ac(n,t.mapper):xe}else{t.default=Se;var r=t.symbol&&e.forEach(t.symbol.declarations,function(t){return e.isTypeParameterDeclaration(t)&&t.default}),i=r?Us(r):xe;t.default===Se&&(t.default=i)}return t.default}function Aa(e){var t=Na(e);return t!==xe&&t!==ke?t:void 0}function Pa(e){var t=7897088&e.flags?Da(e)||ge:e;return 262144&t.flags?t.resolvedApparentType||(t.resolvedApparentType=Xi(t,t,!0)):524322&t.flags?Fe:84&t.flags?Ie:136&t.flags?Oe:1536&t.flags?jo(T>=2):134217728&t.flags?ge:t}function wa(t,n){for(var r,i=131072&t.flags,a=i?24:0,o=i?0:16777216,s=4,c=0,u=0,l=t.types;u<l.length;u++)if((h=Pa(l[u]))!==ee){var _=(y=Oa(h,n))?e.getDeclarationModifierFlagsFromSymbol(y):0;!y||_&a?i&&(c|=16):(o&=y.flags,r=e.appendIfUnique(r,y),c|=(Md(y)?8:0)|(24&_?0:64)|(16&_?128:0)|(8&_?256:0)|(32&_?512:0),C_(y)||(s=2))}if(r){if(1===r.length&&!(16&c))return r[0];for(var d,p=[],f=[],m=0,g=r;m<g.length;m++){var y;(y=g[m]).declarations&&e.addRange(f,y.declarations);var h=ci(y);d?h!==d&&(c|=32):d=h,p.push(h)}var v=un(4|o,n,s|c);return v.containingType=t,v.declarations=f,v.type=i?ss(p):ds(p),v}}function Fa(t,n){var r=t.propertyCache||(t.propertyCache=e.createSymbolTable()),i=r.get(n);return i||(i=wa(t,n))&&r.set(n,i),i}function Ia(t,n){var r=Fa(t,n);return!r||16&e.getCheckFlags(r)?void 0:r}function Oa(e,t){if(65536&(e=Pa(e)).flags){var n=fa(e),r=n.members.get(t);if(r&&sr(r))return r;if(n===be||n.callSignatures.length||n.constructSignatures.length){var i=ga(Ae,t);if(i)return i}return ga(Ne,t)}if(393216&e.flags)return Ia(e,t)}function Ma(t,n){if(458752&t.flags){var r=fa(t);return 0===n?r.callSignatures:r.constructSignatures}return e.emptyArray}function La(e,t){return Ma(Pa(e),t)}function Ra(e,t){if(458752&e.flags){var n=fa(e);return 0===t?n.stringIndexInfo:n.numberIndexInfo}}function Ba(e,t){var n=Ra(e,t);return n&&n.type}function za(e,t){return Ra(Pa(e),t)}function ja(e,t){return Ba(Pa(e),t)}function Ja(e,t){if(su(e)){for(var n=[],r=0,i=ha(e);r<i.length;r++){var a=i[r];(0===t||n_(a.escapedName))&&n.push(ci(a))}if(n.length)return ss(n,2)}}function Ka(e){var t=[];return e.forEach(function(e,n){dr(n)||t.push(e)}),t}function Ua(t){if(e.isInJavaScriptFile(t)){if(t.type&&279===t.type.kind)return!0;var n=e.getJSDocParameterTags(t);if(n)for(var r=0,i=n;r<i.length;r++){var a=i[r];if(a.isBracketed)return!0;if(a.typeExpression)return 279===a.typeExpression.type.kind}}}function Va(t,n){if(!e.isExternalModuleNameRelative(t)){var r=bn(_t,'"'+t+'"',512);return r&&n?rr(r):r}}function qa(t){if(e.hasQuestionToken(t)||Ua(t))return!0;if(t.initializer){var n=Qa(t.parent),r=t.parent.parameters.indexOf(t);return e.Debug.assert(r>=0),r>=n.minArgumentCount}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!i&&!t.type&&!t.dotDotDotToken&&t.parent.parameters.indexOf(t)>=i.arguments.length}function Wa(e,t,n){return{kind:1,parameterName:e,parameterIndex:t,type:n}}function Ha(e){return{kind:0,type:e}}function Ga(t){var n,r=0;if(t)for(var i=0;i<t.length;i++)(n=t[i]).symbol&&e.forEach(n.symbol.declarations,function(t){return e.isTypeParameterDeclaration(t)&&t.default})||(r=i+1);return r}function Xa(t,n,r,i){var a=e.length(n);if(a){var o=e.length(t);if(i||o>=r&&o<=a){t||(t=[]);for(var s=o;s<a;s++)t[s]=Fu(i);for(s=o;s<a;s++){var c=Hs(n,t),u=Aa(n[s]);u&&dc(u,ge)&&i&&(u=Y),t[s]=u?ac(u,c):Fu(i)}t.length=n.length}}return t}function Qa(t){var n,r=hn(t);if(!r.resolvedSignature){for(var i=[],a=!1,o=0,s=void 0,c=void 0,u=e.getImmediatelyInvokedFunctionExpression(t),l=e.isJSDocConstructSignature(t),_=!u&&!l&&e.isInJavaScriptFile(t)&&!e.hasJSDocParameterTags(t),d=l?1:0;d<t.parameters.length;d++){var p=t.parameters[d],f=p.symbol;f&&4&f.flags&&!e.isBindingPattern(p.name)&&(f=kn(p,f.escapedName,67216319,void 0,void 0,!1)),0===d&&"this"===f.escapedName?(c=!0,s=p.symbol):i.push(f),p.type&&177===p.type.kind&&(a=!0),p.initializer||p.questionToken||p.dotDotDotToken||u&&i.length>u.arguments.length&&!p.type||Ua(p)||_||(o=i.length)}if(!(155!==t.kind&&156!==t.kind||Ui(t)||c&&s)){var m=155===t.kind?156:155,g=e.getDeclarationOfKind(ir(t),m);g&&(s=(n=zm(g))&&n.symbol)}var y=154===t.kind?Di(rr(t.parent.symbol)):void 0,h=y?y.localTypeParameters:function(t){var n;return e.forEach(e.getEffectiveTypeParameterDeclarations(t),function(t){var r=Pi(t.symbol);n=e.appendIfUnique(n,r)}),n}(t),v=function(t,n,r){if(n)return Us(t.parameters[0].type);if(r)return r;var i=e.getEffectiveReturnTypeNode(t);return i?Us(i):155!==t.kind||Ui(t)?e.nodeIsMissing(t.body)?Y:void 0:ni(e.getDeclarationOfKind(ir(t),156))}(t,l,y),b=e.hasRestParameter(t)||e.isInJavaScriptFile(t)&&function(t,n){if(!Ya(t))return!1;var r=e.lastOrUndefined(t.parameters),i=r?e.getJSDocParameterTags(r):e.getJSDocTags(t).filter(e.isJSDocParameterTag),a=e.firstDefined(i,function(t){return t.typeExpression&&e.isJSDocVariadicType(t.typeExpression.type)?t.typeExpression.type:void 0}),o=un(3,"args");return o.type=a?Zo(Us(a.type)):Re,o.isRestParameter=!0,a&&n.pop(),n.push(o),!0}(t,i);r.resolvedSignature=Yi(t,h,s,i,v,void 0,o,b,a)}return r.resolvedSignature}function Ya(t){var n=hn(t);return void 0===n.containsArgumentsReference&&(n.containsArgumentsReference=!!(8192&n.flags)||function t(n){if(!n)return!1;switch(n.kind){case 71:return"arguments"===n.escapedText&&e.isExpressionNode(n);case 151:case 153:case 155:case 156:return 146===n.name.kind&&t(n.name);default:return!e.nodeStartsNewLexicalEnvironment(n)&&!e.isPartOfTypeNode(n)&&e.forEachChild(n,t)}}(t.body)),n.containsArgumentsReference}function $a(t){if(!t)return e.emptyArray;for(var n=[],r=0;r<t.declarations.length;r++){var i=t.declarations[r];switch(i.kind){case 162:case 163:case 232:case 153:case 152:case 154:case 157:case 158:case 159:case 155:case 156:case 190:case 191:case 280:if(r>0&&i.body){var a=t.declarations[r-1];if(i.parent===a.parent&&i.kind===a.kind&&i.pos===a.end)break}n.push(Qa(i))}}return n}function Za(e){if(e.thisParameter)return ci(e.thisParameter)}function eo(e){return void 0!==to(e)}function to(t){if(!t.resolvedTypePredicate){if(t.target){var n=to(t.target);t.resolvedTypePredicate=n?(c=t.mapper,e.isIdentifierTypePredicate(s=n)?{kind:1,parameterName:s.parameterName,parameterIndex:s.parameterIndex,type:ac(s.type,c)}:{kind:0,type:ac(s.type,c)}):it}else if(t.unionSignatures)t.resolvedTypePredicate=function(n){for(var r,i=[],a=0,o=t.unionSignatures;a<o.length;a++){var s=to(o[a]);if(s){if(r){if(!cs(r,s))return}else r=s;i.push(s.type)}}if(r){var c=ss(i);return e.isIdentifierTypePredicate(r)?Wa(r.parameterName,r.parameterIndex,c):Ha(c)}}()||it;else{var r=t.declaration;t.resolvedTypePredicate=r&&r.type&&160===r.type.kind?(a=(i=r.type).parameterName,o=Us(i.type),71===a.kind?Wa(a&&a.escapedText,a&&function(e,t){if(e)for(var n=0;n<e.length;n++){var r=e[n];if(71===r.name.kind&&r.name.escapedText===t.escapedText)return n}return-1}(i.parent.parameters,a),o):Ha(o)):it}e.Debug.assert(!!t.resolvedTypePredicate)}var i,a,o,s,c;return t.resolvedTypePredicate===it?void 0:t.resolvedTypePredicate}function no(t){if(!t.resolvedReturnType){if(!Lr(t,3))return ee;var n=void 0;if(n=t.target?ac(no(t.target),t.mapper):t.unionSignatures?ss(e.map(t.unionSignatures,no),2):Nd(t.declaration),!zr()&&(n=Y,I)){var r=t.declaration,i=e.getNameOfDeclaration(r);i?cn(i,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(i)):cn(r,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=n}return t.resolvedReturnType}function ro(t){if(t.hasRestParameter){var n=ci(e.lastOrUndefined(t.parameters));if(4&e.getObjectFlags(n)&&n.target===Pe)return n.typeArguments[0]}return Y}function io(t,n,r){n=Xa(n,t.typeParameters,Ga(t.typeParameters),r);var i=t.instantiations||(t.instantiations=e.createMap()),a=yo(n),o=i.get(a);return o||i.set(a,o=ao(t,n)),o}function ao(e,t){return Zs(e,oo(e,t),!0)}function oo(e,t){return Hs(e.typeParameters,t)}function so(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return Zs(e,Gs(e.typeParameters),!0)}(e)):e}function co(t){var n=t.typeParameters;if(n){var r=Gs(n);return Zs(t,Hs(n,e.map(n,function(e){return ac(Da(e),r)||ge})),!0)}return t}function uo(t){if(!t.isolatedSignatureType){var n=154===t.declaration.kind||158===t.declaration.kind,r=_r(16);r.members=S,r.properties=e.emptyArray,r.callSignatures=n?e.emptyArray:[t],r.constructSignatures=n?[t]:e.emptyArray,t.isolatedSignatureType=r}return t.isolatedSignatureType}function lo(e){return e.members.get("__index")}function _o(e,t){var n=1===t?134:137,r=lo(e);if(r)for(var i=0,a=r.declarations;i<a.length;i++){var o=a[i];if(1===o.parameters.length){var s=o.parameters[0];if(s&&s.type&&s.type.kind===n)return o}}}function po(e,t,n){return{type:e,isReadonly:t,declaration:n}}function fo(t,n){var r=_o(t,n);if(r)return po(r.type?Us(r.type):Y,e.hasModifier(r,64),r)}function mo(t){if(!t.constraint)if(t.target){var n=ba(t.target);t.constraint=n?ac(n,t.mapper):xe}else{var r=(i=t).symbol&&e.getDeclarationOfKind(i.symbol,147).constraint;t.constraint=r?Us(r):function(t){var n;if(t.symbol)for(var r=0,i=t.symbol.declarations;r<i.length;r++){var a=i[r];if(171===a.parent.kind&&161===a.parent.parent.kind){var o=a.parent.parent,s=gp(o);if(s){var c=o.typeArguments.indexOf(a.parent);if(c<s.length){var u=ba(s[c]);if(u){var l=ac(u,Hs(s,fp(o,s)));l!==t&&(n=e.append(n,l))}}}}}return n&&ds(n)}(t)||xe}var i;return t.constraint===xe?void 0:t.constraint}function go(t){return ir(e.getDeclarationOfKind(t.symbol,147).parent)}function yo(e){var t="";if(e)for(var n=e.length,r=0;r<n;){for(var i=e[r].id,a=1;r+a<n&&e[r+a].id===i+a;)a++;t.length&&(t+=","),t+=i,a>1&&(t+=":"+a),r+=a}return t}function ho(e,t){for(var n=0,r=0,i=e;r<i.length;r++){var a=i[r];a.flags&t||(n|=a.flags)}return 117440512&n}function vo(e,t){var n=yo(t),r=e.instantiations.get(n);return r||(r=_r(4,e.symbol),e.instantiations.set(n,r),r.flags|=t?ho(t,0):0,r.target=e,r.typeArguments=t),r}function bo(e){var t=ur(e.flags);return t.symbol=e.symbol,t.objectFlags=e.objectFlags,t.target=e.target,t.typeArguments=e.typeArguments,t}function xo(t){return e.length(t.target.typeParameters)}function ko(t,n,r){var i=wi(rr(n)),a=i.localTypeParameters;if(a){var o=e.length(t.typeArguments),s=Ga(a),c=e.isInJavaScriptFile(t);if((I||!c)&&(o<s||o>a.length)){var u=c&&285!==t.parent.kind;if(cn(t,s===a.length?u?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:u?e.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Er(i,void 0,2),s,a.length),!c)return ee}return vo(i,e.concatenate(i.outerTypeParameters,Xa(r,a,s,c)))}return wo(t,n)?i:ee}function So(t,n){var r=wi(t),i=yn(t),a=i.typeParameters,o=yo(n),s=i.instantiations.get(o);return s||i.instantiations.set(o,s=ac(r,Hs(a,Xa(n,a,Ga(a),e.isInJavaScriptFile(t.valueDeclaration))))),s}function Do(t){switch(t.kind){case 161:return t.typeName;case 205:var n=t.expression;if(e.isEntityNameExpression(n))return n}}function Co(e,t){return e&&Un(e,t)||X}function To(t,n,r){return 96&n.flags?ko(t,n,r):524288&n.flags?function(t,n,r){var i=wi(n),a=yn(n).typeParameters;if(a){var o=e.length(t.typeArguments),s=Ga(a);return o<s||o>a.length?(cn(t,s===a.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Cr(n),s,a.length),ee):So(n,r)}return wo(t,n)?i:ee}(t,n,r):16&n.flags&&Po(t)&&(n.members||e.getJSDocClassTag(n.valueDeclaration))?gd(n):void 0}function Eo(e){return 167===e.kind&&1===e.elementTypes.length}function No(e,t,n){return Eo(t)&&Eo(n)?No(e,t.elementTypes[0],n.elementTypes[0]):Cs(Us(t))===e?Us(n):void 0}function Ao(t,n){for(var r;e.isPartOfTypeNode(n);){var i=n.parent;if(170===i.kind&&n===i.trueType){var a=No(t,i.checkType,i.extendsType);a&&(r=e.append(r,a))}n=i}return r?function(e,t){var n=ur(4194304);return n.typeVariable=e,n.substitute=t,n}(t,ds(e.append(r,t))):t}function Po(e){return 1048576&e.flags&&161===e.kind}function wo(t,n){return!t.typeArguments||(cn(t,e.Diagnostics.Type_0_is_not_generic,n?Cr(n):e.declarationNameToString(t.typeName)),!1)}function Fo(t){var n=hn(t);if(!n.resolvedType){var r=void 0,i=void 0,a=67901928;Po(t)&&(i=function(t){if(e.isIdentifier(t.typeName)){var n=t.typeArguments;switch(t.typeName.escapedText){case"String":return wo(t),ae;case"Number":return wo(t),oe;case"Boolean":return wo(t),ue;case"Void":return wo(t),_e;case"Undefined":return wo(t),te;case"Null":return wo(t),re;case"Function":case"function":return wo(t),Ae;case"Array":case"array":return n&&n.length?void 0:Re;case"Promise":case"promise":return n&&n.length?void 0:Td(Y);case"Object":if(n&&2===n.length){if(e.isJSDocIndexSignature(t)){var r=Us(n[0]),i=po(Us(n[1]),!1);return mr(void 0,S,e.emptyArray,e.emptyArray,r===ae&&i,r===oe&&i)}return Y}return wo(t),Y}}}(t),a|=67216319),i||(i=function(e,t){var n=Io(e);if(t===X)return ee;var r=To(e,t,n);if(r)return r;var i=Fi(t);if(i)return wo(e,t)?32768&i.flags?Ao(i,e):i:ee;if(!(67216319&t.flags&&Po(e)))return ee;var a=fd(t),o=ci(t),s=o.symbol&&!yd(o)&&To(e,o.symbol,n);return s||a?s&&a?ds([a,s]):s||a:(Co(Do(e),67901928),o)}(t,r=Co(Do(t),a))),n.resolvedSymbol=r,n.resolvedType=i}return n.resolvedType}function Io(t){return e.map(t.typeArguments,Us)}function Oo(e){var t=hn(e);return t.resolvedType||(t.resolvedType=pu(ap(e.exprName))),t.resolvedType}function Mo(t,n){function r(e){for(var t=0,n=e.declarations;t<n.length;t++){var r=n[t];switch(r.kind){case 233:case 234:case 236:return r}}}if(!t)return n?ve:ge;var i=wi(t);return 65536&i.flags?e.length(i.typeParameters)!==n?(cn(r(t),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(t),n),n?ve:ge):i:(cn(r(t),e.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,e.symbolName(t)),n?ve:ge)}function Lo(t,n){return Ro(t,67216319,n?e.Diagnostics.Cannot_find_global_value_0:void 0)}function Ro(e,t,n){return kn(void 0,e,t,n,e,!1)}function Bo(t,n,r){var i=function(t,n){return Ro(t,67901928,n?e.Diagnostics.Cannot_find_global_type_0:void 0)}(t,r);return i||r?Mo(i,n):void 0}function zo(e){return Je||(Je=Lo("Symbol",e))}function jo(e){return Ke||(Ke=Bo("Symbol",0,e))||ge}function Jo(e){return Ve||(Ve=Bo("Promise",1,e))||ve}function Ko(e){return qe||(qe=Lo("Promise",e))}function Uo(e){return Qe||(Qe=Bo("AsyncIterable",1,e))||ve}function Vo(e){return $e||($e=Bo("AsyncIterableIterator",1,e))||ve}function qo(e){return He||(He=Bo("Iterable",1,e))||ve}function Wo(e){return Xe||(Xe=Bo("IterableIterator",1,e))||ve}function Ho(e,t){void 0===t&&(t=0);var n=Ro(e,67901928,void 0);return n&&Mo(n,t)}function Go(e,t){return e!==ve?vo(e,t):ge}function Xo(e){return Go(Ue||(Ue=Bo("TypedPropertyDescriptor",1,!0))||ve,[e])}function Qo(e){return Go(Vo(!0),[e])}function Yo(e){return Go(qo(!0),[e])}function $o(e){return Go(Wo(!0),[e])}function Zo(e){return Go(Pe,[e])}function es(t){return vo(K[n=t.length]||(K[n]=function(t){for(var n=[],r=[],i=0;i<t;i++){var a=ur(32768);n.push(a);var o=un(4,""+i);o.type=a,r.push(o)}var s=un(4,"length");s.type=js(t),r.push(s);var c=_r(12);return c.typeParameters=n,c.outerTypeParameters=void 0,c.localTypeParameters=n,c.instantiations=e.createMap(),c.instantiations.set(yo(c.typeParameters),c),c.target=c,c.typeArguments=c.typeParameters,c.thisType=ur(32768),c.thisType.isThisType=!0,c.thisType.constraint=c,c.declaredProperties=r,c.declaredCallSignatures=e.emptyArray,c.declaredConstructSignatures=e.emptyArray,c.declaredStringIndexInfo=void 0,c.declaredNumberIndexInfo=void 0,c}(n)),t);var n}function ts(e){return e.id}function ns(t,n){return e.binarySearch(t,n,ts,e.compareValues)>=0}function rs(t,n,r){var i=r.flags;if(131072&i)n=is(t,n,r.types);else if(1&i)n|=1,r===Z&&(n|=4096);else if(!P&&12288&i)4096&i&&(n|=2),8192&i&&(n|=4),16777216&i||(n|=16);else if(!(16384&i||262144&i&&function(e){for(var t=0,n=0,r=e.types;n<r.length;n++){var i=r[n];if(13536&i.flags&&13536&t)return!0;if(12288&(t|=i.flags)&&134283264&t)return!0}return!1}(r))){2&i&&(n|=32),4&i&&(n|=64),512&i&&(n|=128),1120&i&&(n|=256);var a=t.length,o=a&&r.id>t[a-1].id?~a:e.binarySearch(t,r,ts,e.compareValues);o<0&&(65536&i&&16&r.objectFlags&&r.symbol&&8208&r.symbol.flags&&as(t,r)||t.splice(~o,0,r))}return n}function is(e,t,n){for(var r=0,i=n;r<i.length;r++)t=rs(e,t,i[r]);return t}function as(e,t){for(var n=0,r=e;n<r.length;n++)if(dc(r[n],t))return!0;return!1}function os(t,n){for(var r=0,i=n;r<i.length;r++){var a=i[r];if(t!==a&&mc(t,a)&&(!(1&e.getObjectFlags(li(t)))||!(1&e.getObjectFlags(li(a)))||yc(t,a)))return!0}return!1}function ss(t,n,r,i){if(void 0===n&&(n=1),0===t.length)return de;if(1===t.length)return t[0];var a=[],o=is(a,0,t);if(1&o)return 4096&o?Z:Y;switch(n){case 1:256&o&&function(t,n){for(var r=t.length;r>0;){var i=t[--r];(32&i.flags&&32&n||64&i.flags&&64&n||1024&i.flags&&128&n||96&i.flags&&8388608&i.flags&&ns(t,i.regularType))&&e.orderedRemoveItemAt(t,r)}}(a,o);break;case 2:!function(t){if(0!==t.length&&!function(e){var t=e[0];if(256&t.flags){for(var n=ar(t.symbol),r=1;r<e.length;r++){var i=e[r];if(!(256&i.flags)||n!==ar(i.symbol))return!1}return!0}return!1}(t))for(var n=t.length;n>0;)os(t[--n],t)&&e.orderedRemoveItemAt(t,n)}(a)}return 0===a.length?4&o?16&o?re:ie:2&o?16&o?te:ne:de:us(a,r,i)}function cs(t,n){return e.isIdentifierTypePredicate(t)?e.isIdentifierTypePredicate(n)&&t.parameterIndex===n.parameterIndex:!e.isIdentifierTypePredicate(n)}function us(e,t,n){if(0===e.length)return de;if(1===e.length)return e[0];var r=yo(e),i=U.get(r);return i||(i=ur(131072|ho(e,12288)),U.set(r,i),i.types=e,i.aliasSymbol=t,i.aliasTypeArguments=n),i}function ls(t,n,r){var i=r.flags;return 262144&i?n=_s(t,n,r.types):1&i?(n|=1,r===Z&&(n|=4096)):16384&i?n|=8:16&e.getObjectFlags(r)&&Dc(r)?n|=1024:!P&&12288&i||e.contains(t,r)||(65536&i&&(n|=512),131072&i&&(n|=2048),65536&i&&16&r.objectFlags&&r.symbol&&8208&r.symbol.flags&&as(t,r)||t.push(r)),n}function _s(e,t,n){for(var r=0,i=n;r<i.length;r++)t=ls(e,t,zs(i[r]));return t}function ds(t,n,r){if(0===t.length)return ge;var i=[],a=_s(i,0,t);if(8&a)return de;if(1&a)return 4096&a?Z:Y;if(1024&a&&!(512&a)&&i.push(ge),1===i.length)return i[0];if(2048&a){var o=e.findIndex(i,function(e){return 0!=(131072&e.flags)});return ss(e.map(i[o].types,function(t){return ds(e.replaceElement(i,o,t))}),1,n,r)}var s=yo(i),c=V.get(s);return c||(c=ur(262144|ho(i,12288)),V.set(s,c),c.types=i,c.aliasSymbol=n,c.aliasTypeArguments=r),c}function ps(t){var n=yn(Gi(t));return n.nameType||(n.target&&n.target!==X&&n.target!==Q?(e.Debug.assert(n.target.escapedName===t.escapedName||"__computed"===n.target.escapedName,"Target symbol and symbol do not have the same name"),n.nameType=ps(n.target)):n.nameType=24&e.getDeclarationModifierFlagsFromSymbol(t)||e.isKnownSymbol(t)?de:js(e.symbolName(t))),n.nameType}function fs(t){return 262144&t.flags?ss(e.map(t.types,function(e){return fs(e)})):zd(t,7372800)?function(e){return e.resolvedIndexType||(e.resolvedIndexType=ur(524288),e.resolvedIndexType.type=e),e.resolvedIndexType}(t):32&e.getObjectFlags(t)?sa(t):t===Z?Z:1&t.flags||za(t,0)?ae:function(t){return ss(e.map(ha(t),ps))}(t)}function ms(t,n,r,i){var a=r&&184===r.kind?r:void 0,o=ji(n)?Vi(n):a&&J_(a.argumentExpression,n,!1)?e.getPropertyNameForKnownSymbolName(e.idText(a.argumentExpression.name)):void 0;if(void 0!==o){var s=Oa(t,o);if(s){if(a){if(B_(s,a,99===a.expression.kind),e.isAssignmentTarget(a)&&(Ld(a,s)||Rd(a)))return cn(a.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property,Cr(s)),ee;i&&(hn(r).resolvedSymbol=s)}return ci(s)}}if(!(12288&n.flags)&&jd(n,525942)){if(Kr(t))return t;var c=jd(n,84)&&za(t,1)||za(t,0)||void 0;if(c)return a&&c.isReadonly&&(e.isAssignmentTarget(a)||e.isDeleteTarget(a))&&cn(a,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Er(t)),c.type;if(a&&!Kd(t))return I&&!C.suppressImplicitAnyIndexErrors&&(ja(t,1)?cn(a.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number):cn(a,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Er(t))),Y}if(r){var u=184===r.kind?r.argumentExpression:r.indexType;return 96&n.flags?cn(u,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+n.value,Er(t)):6&n.flags?cn(u,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,Er(t),Er(n)):cn(u,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Er(n)),ee}return Y}function gs(e){return zd(e,544243712)}function ys(e){return zd(e,7897088)}function hs(e){if(65536&e.flags&&!pa(e)){var t=fa(e);return 0===t.properties.length&&0===t.callSignatures.length&&0===t.constructSignatures.length&&t.stringIndexInfo&&!t.numberIndexInfo}return!1}function vs(t){return 32&e.getObjectFlags(t)&&ca(t)===de}function bs(t){var n=t.objectType;if(262144&n.flags&&gs(n)){if(e.some(n.types,hs)){for(var r=[],i=[],a=0,o=n.types;a<o.length;a++){var s=o[a];hs(s)?i.push(ja(s,0)):r.push(s)}return ss([ks(ds(r),t.indexType),ds(i)])}if(e.some(n.types,vs))return ks(ds(e.filter(n.types,function(e){return!vs(e)})),t.indexType)}if(pa(n))return xs(n,t);if(32768&n.flags){var c=mo(n);if(c&&pa(c))return xs(c,t)}}function xs(e,t){var n=Hs([oa(e)],[t.indexType]),r=Xs(e.mapper,n);return ac(ca(e),r)}function ks(e,t,n){if(e===Z||t===Z)return Z;if(ys(t)||(!n||184!==n.kind)&&gs(e)){if(1&e.flags)return e;var r=e.id+","+t.id,i=W.get(r);return i||W.set(r,i=function(e,t){var n=ur(1048576);return n.objectType=e,n.indexType=t,n}(e,t)),i}var a=Pa(e);if(131072&t.flags&&!(8&t.flags)){for(var o=[],s=0,c=t.types;s<c.length;s++){var u=ms(a,c[s],n,!1);if(u===ee)return ee;o.push(u)}return ss(o)}return ms(a,t,n,!0)}function Ss(e){var t=hn(e);if(!t.resolvedType){var n=Us(e.objectType),r=Us(e.indexType),i=ks(n,r,e);t.resolvedType=1048576&i.flags&&i.objectType===n&&i.indexType===r?Ao(i,e):i}return t.resolvedType}function Ds(e){var t=hn(e);if(!t.resolvedType){var n=_r(32,e.symbol);n.declaration=e,n.aliasSymbol=ws(e),n.aliasTypeArguments=Fs(e),t.resolvedType=n,sa(n)}return t.resolvedType}function Cs(e){return 4194304&e.flags?e.typeVariable:e}function Ts(e,t){var n=ac(e.checkType,t),r=ac(e.extendsType,t);if(n===Z||r===Z)return Z;if(!e.isDistributive||!zd(n,7897088)){var i=void 0;if(e.inferTypeParameters){var a=hu(e.inferTypeParameters,void 0,0);Tu(a.inferences,n,r,96),i=Xs(t,a)}if(1&n.flags)return ss([ac(e.trueType,i||t),ac(e.falseType,t)]);var o=i?ac(e.extendsType,i):r;if(!gc(oc(n),oc(o)))return ac(e.falseType,t);if(Ac(n,o,en,void 0))return ac(e.trueType,i||t)}var s=Cs(n),c=ur(2097152);return c.root=e,c.checkType=s,c.extendsType=r,c.mapper=t,c.aliasSymbol=e.aliasSymbol,c.aliasTypeArguments=qs(e.aliasTypeArguments,t),c}function Es(e){return e.resolvedTrueType||(e.resolvedTrueType=ac(e.root.trueType,e.mapper))}function Ns(e){return e.resolvedFalseType||(e.resolvedFalseType=ac(e.root.falseType,e.mapper))}function As(t){var n;return t.locals&&t.locals.forEach(function(t){262144&t.flags&&(n=e.append(n,wi(t)))}),n}function Ps(t){var n=hn(t);if(!n.resolvedType){var r=ws(t);if(0!==Hi(t.symbol).size||r){var i=_r(16,t.symbol);i.aliasSymbol=r,i.aliasTypeArguments=Fs(t),e.isJSDocTypeLiteral(t)&&t.isArrayType&&(i=Zo(i)),n.resolvedType=i}else n.resolvedType=he}return n.resolvedType}function ws(e){return 235===e.parent.kind?ir(e.parent):void 0}function Fs(e){var t=ws(e);return t?mi(t):void 0}function Is(t,n,r,i,a){if(1&t.flags||1&n.flags)return Y;if(16384&t.flags)return n;if(16384&n.flags)return t;if(131072&t.flags)return il(t,function(e){return Is(e,n,r,i,a)});if(131072&n.flags)return il(n,function(e){return Is(t,e,r,i,a)});if(134742526&n.flags)return t;var o,s,c=e.createSymbolTable(),u=e.createUnderscoreEscapedMap();t===ge?(o=za(n,0),s=za(n,1)):(o=aa(za(t,0),za(n,0)),s=aa(za(t,1),za(n,1)));for(var l=0,_=ha(n);l<_.length;l++){var d=65536&(g=_[l]).flags&&!(32768&g.flags);24&e.getDeclarationModifierFlagsFromSymbol(g)?u.set(g.escapedName,!0):Ls(g)||d||c.set(g.escapedName,Os(g))}for(var p=0,f=ha(t);p<f.length;p++){var m=f[p];if(!(65536&m.flags&&!(32768&m.flags)||u.has(m.escapedName)||Ls(m)))if(c.has(m.escapedName)){var g,y=ci(g=c.get(m.escapedName));if(16777216&g.flags){var h=e.concatenate(m.declarations,g.declarations),v=un(4|16777216&m.flags,m.escapedName);v.type=ss([ci(m),Uu(y,131072)]),v.leftSpread=m,v.rightSpread=g,v.declarations=h,c.set(m.escapedName,v)}}else c.set(m.escapedName,Os(m))}var b=mr(r,c,e.emptyArray,e.emptyArray,Ms(o),Ms(s));return b.flags|=33554432|i,b.objectFlags|=1152|a,b}function Os(e){if(!Md(e))return e;var t=un(4|16777216&e.flags,e.escapedName);return t.type=ci(e),t.declarations=e.declarations,t.syntheticOrigin=e,t}function Ms(e){return e&&e.isReadonly?po(e.type,!1,e.declaration):e}function Ls(t){return 8192&t.flags&&e.find(t.declarations,function(t){return e.isClassLike(t.parent)})}function Rs(e,t,n){var r=ur(e);return r.symbol=n,r.value=t,r}function Bs(e){if(96&e.flags&&!(8388608&e.flags)){if(!e.freshType){var t=Rs(8388608|e.flags,e.value,e.symbol);t.regularType=e,e.freshType=t}return e.freshType}return e}function zs(e){return 96&e.flags&&8388608&e.flags?e.regularType:e}function js(e,t,n){var r="number"==typeof e?"#":"@",i=t?t+r+e:r+e,a=q.get(i);return a||q.set(i,a=Rs(("number"==typeof e?64:32)|(t?256:0),e,n)),a}function Js(t){if(e.isValidESSymbolDeclaration(t)){var n=ir(t),r=yn(n);return r.uniqueESSymbolType||(r.uniqueESSymbolType=function(e){var t=ur(1024);return t.symbol=e,t}(n))}return le}function Ks(t){var n=hn(t);return n.resolvedType||(n.resolvedType=function(t){var n=e.getThisContainer(t,!1),r=n&&n.parent;return!r||!e.isClassLike(r)&&234!==r.kind||e.hasModifier(n,32)||154===n.kind&&!e.isNodeDescendantOf(t,n.body)?(cn(t,e.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),ee):Di(ir(r)).thisType}(t)),n.resolvedType}function Us(t){switch(t.kind){case 119:case 275:case 276:return Y;case 137:return ae;case 134:return oe;case 122:return ue;case 138:return le;case 105:return _e;case 140:return te;case 95:return re;case 131:return de;case 135:return 65536&t.flags?Y:me;case 173:case 99:return Ks(t);case 177:return function(e){var t=hn(e);return t.resolvedType||(t.resolvedType=zs(ap(e.literal))),t.resolvedType}(t);case 161:return Fo(t);case 160:return ue;case 205:return Fo(t);case 164:return Oo(t);case 166:return function(e){var t=hn(e);return t.resolvedType||(t.resolvedType=Zo(Us(e.elementType))),t.resolvedType}(t);case 167:return function(t){var n=hn(t);return n.resolvedType||(n.resolvedType=es(e.map(t.elementTypes,Us))),n.resolvedType}(t);case 168:return function(t){var n=hn(t);return n.resolvedType||(n.resolvedType=ss(e.map(t.types,Us),1,ws(t),Fs(t))),n.resolvedType}(t);case 169:return function(t){var n=hn(t);return n.resolvedType||(n.resolvedType=ds(e.map(t.types,Us),ws(t),Fs(t))),n.resolvedType}(t);case 277:return function(e){var t=Us(e.type);return P?iu(t,8192):t}(t);case 279:return Xr(Us(t.type));case 172:case 278:case 274:return Us(t.type);case 281:return function(t){var n=Us(t.type),r=t.parent,i=r.parent;if(e.isJSDocTypeExpression(r)&&e.isJSDocParameterTag(i)){var a=e.getHostSignatureFromJSDoc(i);if(a){var o=e.lastOrUndefined(a.parameters),s=e.getParameterSymbolFromJSDoc(i);if(!o||s&&o.symbol===s&&e.isRestParameter(o))return Zo(n)}}return Xr(n)}(t);case 162:case 163:case 165:case 283:case 280:return Ps(t);case 174:return function(t){var n=hn(t);if(!n.resolvedType)switch(t.operator){case 128:n.resolvedType=fs(Us(t.type));break;case 141:n.resolvedType=138===t.type.kind?Js(e.walkUpParenthesizedTypes(t.parent)):ee}return n.resolvedType}(t);case 175:return Ss(t);case 176:return Ds(t);case 170:return function(t){var n=hn(t);if(!n.resolvedType){var r=Us(t.checkType),i=Fs(t),a=pi(t,!0),o=i?a:e.filter(a,function(e){return nc(e,t)}),s={node:t,checkType:r,extendsType:Us(t.extendsType),trueType:Us(t.trueType),falseType:Us(t.falseType),isDistributive:!!(32768&r.flags),inferTypeParameters:As(t),outerTypeParameters:o,instantiations:void 0,aliasSymbol:ws(t),aliasTypeArguments:i};n.resolvedType=Ts(s,void 0),o&&(s.instantiations=e.createMap(),s.instantiations.set(yo(o),n.resolvedType))}return n.resolvedType}(t);case 171:return function(e){var t=hn(e);return t.resolvedType||(t.resolvedType=Pi(ir(e.typeParameter))),t.resolvedType}(t);case 71:case 145:var n=qf(t);return n&&wi(n);default:return ee}}function Vs(e,t,n){if(e&&e.length)for(var r=0;r<e.length;r++){var i=e[r],a=n(i,t);if(i!==a){var o=0===r?[]:e.slice(0,r);for(o.push(a),r++;r<e.length;r++)o.push(n(e[r],t));return o}}return e}function qs(e,t){return Vs(e,t,ac)}function Ws(e,t){return Vs(e,t,Zs)}function Hs(t,n){return e.Debug.assert(void 0===n||t.length===n.length),1===t.length?(s=t[0],c=n?n[0]:Y,function(e){return e===s?c:e}):2===t.length?(r=t[0],i=n?n[0]:Y,a=t[1],o=n?n[1]:Y,function(e){return e===r?i:e===a?o:e}):function(e,t){return function(n){for(var r=0;r<e.length;r++)if(n===e[r])return t?t[r]:Y;return n}}(t,n);var r,i,a,o,s,c}function Gs(e){return Hs(e,void 0)}function Xs(e,t){return e?t?function(n){return ac(e(n),t)}:e:t}function Qs(e,t,n){return function(r){return r===e?t:n(r)}}function Ys(e){return 32768&e.flags?Z:e}function $s(e){var t=ur(32768);return t.symbol=e.symbol,t.target=e,t}function Zs(t,n,r){var i;if(t.typeParameters&&!r){i=e.map(t.typeParameters,$s),n=Xs(Hs(t.typeParameters,i),n);for(var a=0,o=i;a<o.length;a++)o[a].mapper=n}var s=Yi(t.declaration,i,t.thisParameter&&ec(t.thisParameter,n),Vs(t.parameters,n,ec),void 0,void 0,t.minArgumentCount,t.hasRestParameter,t.hasLiteralTypes);return s.target=t,s.mapper=n,s}function ec(t,n){var r=yn(t);if(r.type&&!zd(r.type,7962624))return t;1&e.getCheckFlags(t)&&(t=r.target,n=Xs(r.mapper,n));var i=un(t.flags,t.escapedName,1);return i.declarations=t.declarations,i.parent=t.parent,i.target=t,i.mapper=n,t.valueDeclaration&&(i.valueDeclaration=t.valueDeclaration),t.isRestParameter&&(i.isRestParameter=t.isRestParameter),i}function tc(t,n){var r=64&t.objectFlags?t.target:t,i=r.symbol,a=yn(i),o=a.outerTypeParameters;if(!o){var s=i.declarations[0],c=pi(s,!0)||e.emptyArray;o=2048&i.flags&&!r.aliasTypeArguments?e.filter(c,function(e){return nc(e,s)}):c,a.outerTypeParameters=o,o.length&&(a.instantiations=e.createMap(),a.instantiations.set(yo(o),r))}if(o.length){var u=64&t.objectFlags?Xs(t.mapper,n):n,l=e.map(o,u),_=yo(l),d=a.instantiations.get(_);if(!d){var p=Hs(o,l);d=32&r.objectFlags?function(e,t){var n=sa(e);if(524288&n.flags){var r=n.type;if(32768&r.flags){var i=ac(r,t);if(r!==i)return il(i,function(n){return 7700481&n.flags?rc(e,Qs(r,n,t)):n})}}return rc(e,t)}(r,p):rc(r,p),a.instantiations.set(_,d)}return d}return t}function nc(t,n){if(t.symbol&&t.symbol.declarations&&1===t.symbol.declarations.length){var r=t.symbol.declarations[0].parent;if(e.findAncestor(n,function(e){return 211===e.kind?"quit":e===r}))return e.forEachChild(n,function n(r){switch(r.kind){case 173:return t.isThisType;case 71:return!t.isThisType&&e.isPartOfTypeNode(r)&&Us(r)===t;case 164:return!0}return e.forEachChild(r,n)})}return!0}function rc(e,t){var n=_r(64|e.objectFlags,e.symbol);return 32&e.objectFlags&&(n.declaration=e.declaration),n.target=e,n.mapper=t,n.aliasSymbol=e.aliasSymbol,n.aliasTypeArguments=qs(e.aliasTypeArguments,t),n}function ic(t,n){var r=t.root;if(r.outerTypeParameters){var i=e.map(r.outerTypeParameters,n),a=yo(i),o=r.instantiations.get(a);return o||(o=function(e,t){if(e.isDistributive){var n=e.checkType,r=t(n);if(n!==r&&147456&r.flags)return il(r,function(r){return Ts(e,Qs(n,r,t))})}return Ts(e,t)}(r,Hs(r.outerTypeParameters,i)),r.instantiations.set(a,o)),o}return t}function ac(e,t){if(e&&t&&t!==D){if(32768&e.flags)return t(e);if(65536&e.flags){if(16&e.objectFlags)return e.symbol&&14384&e.symbol.flags&&e.symbol.declarations?tc(e,t):e;if(32&e.objectFlags)return tc(e,t);if(4&e.objectFlags){var n=e.typeArguments,r=qs(n,t);return r!==n?vo(e.target,r):e}}var i,a;if(131072&e.flags&&!(16382&e.flags))return(a=qs(i=e.types,t))!==i?ss(a,1,e.aliasSymbol,qs(e.aliasTypeArguments,t)):e;if(262144&e.flags)return(a=qs(i=e.types,t))!==i?ds(a,e.aliasSymbol,qs(e.aliasTypeArguments,t)):e;if(524288&e.flags)return fs(ac(e.type,t));if(1048576&e.flags)return ks(ac(e.objectType,t),ac(e.indexType,t));if(2097152&e.flags)return ic(e,Xs(e.mapper,t));if(4194304&e.flags)return ac(e.typeVariable,t)}return e}function oc(e){return 32767&e.flags?e:e.wildcardInstantiation||(e.wildcardInstantiation=ac(e,Ys))}function sc(e,t){return e&&po(ac(e.type,t),e.isReadonly,e.declaration)}function cc(t){switch(e.Debug.assert(153!==t.kind||e.isObjectLiteralMethod(t)),t.kind){case 190:case 191:case 153:return uc(t);case 182:return e.forEach(t.properties,cc);case 181:return e.forEach(t.elements,cc);case 199:return cc(t.whenTrue)||cc(t.whenFalse);case 198:return 54===t.operatorToken.kind&&(cc(t.left)||cc(t.right));case 268:return cc(t.initializer);case 189:return cc(t.expression);case 261:return e.forEach(t.properties,cc);case 260:return t.initializer&&cc(t.initializer);case 263:return t.expression&&cc(t.expression)}return!1}function uc(t){if(t.typeParameters)return!1;if(e.forEach(t.parameters,function(t){return!e.getEffectiveTypeAnnotationNode(t)}))return!0;if(191!==t.kind){var n=e.firstOrUndefined(t.parameters);if(!n||!e.parameterIsThisKeyword(n))return!0}return 211!==t.body.kind&&cc(t.body)}function lc(t){return(Yl(t)||e.isObjectLiteralMethod(t))&&uc(t)}function _c(t){if(65536&t.flags){var n=fa(t);if(n.constructSignatures.length){var r=_r(16,t.symbol);return r.members=n.members,r.properties=n.properties,r.callSignatures=e.emptyArray,r.constructSignatures=e.emptyArray,r}}else if(262144&t.flags)return ds(e.map(t.types,_c));return t}function dc(e,t){return Ec(e,t,nn)}function pc(e,t){return Ec(e,t,nn)?-1:0}function fc(e,t){return Ec(e,t,Zt)?-1:0}function mc(e,t){return Ec(e,t,$t)}function gc(e,t){return Ec(e,t,Zt)}function yc(t,n){return 131072&t.flags?e.every(t.types,function(e){return yc(e,n)}):131072&n.flags?e.some(n.types,function(e){return yc(t,e)}):7372800&t.flags?yc(Da(t)||ge,n):n===Ne||n===Ae?mc(t,n):_i(t,li(n))}function hc(e,t){return Ec(e,t,tn)}function vc(e,t){return hc(e,t)||hc(t,e)}function bc(e,t,n,r,i){return Ac(e,t,Zt,n,r,i)}function xc(e,t,n,r,i){return Ac(e,t,tn,n,r,i)}function kc(t,n,r,i,a,o,s){if(t===n)return-1;if(!n.hasRestParameter&&t.minArgumentCount>n.parameters.length)return 0;var c;t.typeParameters&&t.typeParameters!==n.typeParameters&&(t=G_(t,n=(c=n).typeParameters?c.canonicalSignatureCache||(c.canonicalSignatureCache=function(t){return io(t,e.map(t.typeParameters,function(e){return e.target&&!ba(e.target)?e.target:e}),e.isInJavaScriptFile(t.declaration))}(c)):c,void 0,s));var u=n.declaration?n.declaration.kind:0,l=!r&&w&&153!==u&&152!==u&&154!==u,_=-1,d=Za(t);if(d&&d!==_e){var p=Za(n);if(p){if(!(b=!l&&s(d,p,!1)||s(p,d,a)))return a&&o(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;_&=b}}for(var f=Sc(t),m=Sc(n),g=function(e,t,n,r){return e.hasRestParameter===n.hasRestParameter?e.hasRestParameter?Math.max(t,r)+1:Math.min(t,r):e.hasRestParameter?r:t}(t,f,n,m),y=t.parameters,h=n.parameters,v=0;v<g;v++){var b,x=v<f?kd(y[v]):ro(t),k=v<m?kd(h[v]):ro(n),S=r?void 0:H_(ou(x)),D=r?void 0:H_(ou(k));if(!(b=S&&D&&!eo(S)&&!eo(D)&&(12288&tu(x))==(12288&tu(k))?kc(D,S,l?2:1,!1,a,o,s):!r&&!l&&s(x,k,!1)||s(k,x,a)))return a&&o(e.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,e.symbolName(y[v<f?v:f]),e.symbolName(h[v<m?v:m])),0;_&=b}if(!i){var C=no(n);if(C===_e)return _;var T=no(t),E=to(n);if(E){var N=to(t);if(N)_&=function(t,n,r,i,a,o,s){if(t.kind!==n.kind)return a&&(o(e.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),o(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Ar(t),Ar(n))),0;if(1===t.kind){var c=n;if(t.parameterIndex-(e.getThisParameter(r)?1:0)!=c.parameterIndex-(e.getThisParameter(i)?1:0))return a&&(o(e.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1,t.parameterName,c.parameterName),o(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Ar(t),Ar(n))),0}var u=s(t.type,n.type,a);return 0===u&&a&&o(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Ar(t),Ar(n)),u}(N,E,t.declaration,n.declaration,a,o,s);else if(e.isIdentifierTypePredicate(E))return a&&o(e.Diagnostics.Signature_0_must_be_a_type_predicate,Tr(t)),0}else _&=1===r&&s(C,T,!1)||s(T,C,a)}return _}function Sc(e){var t=e.parameters.length;return e.hasRestParameter?t-1:t}function Dc(t){return 65536&t.flags?0===(n=fa(t)).properties.length&&0===n.callSignatures.length&&0===n.constructSignatures.length&&!n.stringIndexInfo&&!n.numberIndexInfo:!!(134217728&t.flags)||(131072&t.flags?e.forEach(t.types,Dc):!!(262144&t.flags)&&!e.forEach(t.types,function(e){return!Dc(e)}));var n}function Cc(t,n,r){if(t===n)return!0;var i=u(t)+","+u(n),a=rn.get(i);if(void 0!==a)return a;if(!(t.escapedName===n.escapedName&&256&t.flags&&256&n.flags))return rn.set(i,!1),!1;for(var o=ci(n),s=0,c=ha(ci(t));s<c.length;s++){var l=c[s];if(8&l.flags){var _=Oa(o,l.escapedName);if(!(_&&8&_.flags))return r&&r(e.Diagnostics.Property_0_is_missing_in_type_1,e.symbolName(l),Er(wi(n),void 0,64)),rn.set(i,!1),!1}}return rn.set(i,!0),!0}function Tc(e,t,n,r){var i=e.flags,a=t.flags;if(1&a||16384&i||e===Z)return!0;if(16384&a)return!1;if(524322&i&&2&a)return!0;if(32&i&&256&i&&32&a&&!(256&a)&&e.value===t.value)return!0;if(84&i&&4&a)return!0;if(64&i&&256&i&&64&a&&!(256&a)&&e.value===t.value)return!0;if(136&i&&8&a)return!0;if(1536&i&&512&a)return!0;if(16&i&&16&a&&Cc(e.symbol,t.symbol,r))return!0;if(256&i&&256&a){if(131072&i&&131072&a&&Cc(e.symbol,t.symbol,r))return!0;if(224&i&&224&a&&e.value===t.value&&Cc(ar(e.symbol),ar(t.symbol),r))return!0}if(4096&i&&(!P||6144&a))return!0;if(8192&i&&(!P||8192&a))return!0;if(65536&i&&134217728&a)return!0;if(1024&i||1024&a)return!1;if(n===Zt||n===en||n===tn){if(1&i)return!0;if(68&i&&!(256&i)&&(16&a||64&a&&256&a))return!0}return!1}function Ec(e,t,n){if(96&e.flags&&8388608&e.flags&&(e=e.regularType),96&t.flags&&8388608&t.flags&&(t=t.regularType),e===t||n===tn&&!(16384&t.flags)&&Tc(t,e,n)||n!==nn&&Tc(e,t,n))return!0;if(65536&e.flags&&65536&t.flags){var r=n.get(Mc(e,t,n));if(void 0!==r)return 1===r}return!!(8355840&e.flags||8355840&t.flags)&&Ac(e,t,n,void 0)}function Nc(t,n,r){return 4096&e.getObjectFlags(t)&&!(o_(n.escapedName)||r)}function Ac(t,n,r,i,a,o){var s,c,u,l,_=0,d=0,p=0,f=!1,m=!1;e.Debug.assert(r!==nn||!i,"no error reporting in identity checking");var g=x(t,n,!!i,a);if(f)cn(i,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,Er(t),Er(n));else if(s){if(o){var y=o();y&&(s=e.concatenateDiagnosticMessageChains(y,s))}Lt.add(e.createDiagnosticForNodeFromMessageChain(i,s))}if(a&&i&&!g&&t.symbol){var h=yn(t.symbol);h.originatingImport&&!e.isImportCall(h.originatingImport)&&Ac(ci(h.target),n,r,void 0)&&Lt.add(e.createDiagnosticForNode(h.originatingImport,e.Diagnostics.A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime))}return 0!==g;function v(t,n,r,a){e.Debug.assert(!!i),s=e.chainDiagnosticMessages(s,t,n,r,a)}function b(t,n,i){var a=Er(n),o=Er(i);a===o&&(a=Er(n,void 0,64),o=Er(i,void 0,64)),t||(t=r===tn?e.Diagnostics.Type_0_is_not_comparable_to_type_1:a===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),v(t,a,o)}function x(t,n,a,o){if(96&t.flags&&8388608&t.flags&&(t=t.regularType),96&n.flags&&8388608&n.flags&&(n=n.regularType),4194304&t.flags&&(t=r===en?t.typeVariable:t.substitute),4194304&n.flags&&(n=n.typeVariable),t===n)return-1;if(r===nn)return function(e,t){var n,r=e.flags&t.flags;return 65536&r?E(e,t,!1):393216&r&&(n=k(e,t))&&(n&=k(t,e))?n:524288&r?x(e.type,t.type,!1):1048576&r&&(n=x(e.objectType,t.objectType,!1))&&(n&=x(e.indexType,t.indexType,!1))?n:2097152&r&&e.root.isDistributive===t.root.isDistributive&&(n=x(e.checkType,t.checkType,!1))&&(n&=x(e.extendsType,t.extendsType,!1))&&(n&=x(Es(e),Es(t),!1))&&(n&=x(Ns(e),Ns(t),!1))?n:4194304&r?x(e.substitute,t.substitute,!1):0}(t,n);if(r===tn&&!(16384&n.flags)&&Tc(n,t,r)||Tc(t,n,r,a?v:void 0))return-1;if(Au(t)&&8388608&t.flags){var c=131072&n.flags?D(t,n):void 0;if(function t(n,a,o,s){if(zd(a,65536)&&!(512&e.getObjectFlags(a))){var c=!!(4096&e.getObjectFlags(n));if((r===Zt||r===en||r===tn)&&(tl(Ne,a)||!c&&Dc(a)))return!1;if(o)return t(n,o,void 0,s);for(var u=function(t){if(!S_(a,t.escapedName,c)){if(s)if(e.Debug.assert(!!i),e.isJsxAttributes(i)||e.isJsxOpeningLikeElement(i))v(e.Diagnostics.Property_0_does_not_exist_on_type_1,Cr(t),Er(a));else{var r=n.symbol&&e.firstOrUndefined(n.symbol.declarations),o=void 0;if(t.valueDeclaration&&e.findAncestor(t.valueDeclaration,function(e){return e===r})){var u=t.valueDeclaration;e.Debug.assertNode(u,e.isObjectLiteralElementLike),i=u,e.isIdentifier(u.name)&&(o=O_(u.name,a))}void 0!==o?v(e.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Cr(t),Er(a),o):v(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Cr(t),Er(a))}return{value:!0}}},l=0,_=ma(n);l<_.length;l++){var d=u(_[l]);if("object"==typeof d)return d.value}}return!1}(t,n,c,a))return a&&b(o,t,n),0;(function(e){if(!(393216&e.flags))return!1;for(var t=!1,n=0,r=e.types;n<r.length;n++)if(!(12288&r[n].flags)){if(t)return!0;t=!0}return!1})(n)&&!c&&(t=uu(t))}if(r!==tn&&!(393216&t.flags)&&!(131072&n.flags)&&!m&&t!==Ne&&(ha(t).length>0||Xf(t))&&A(n)&&!function(t,n){for(var r=!!(4096&e.getObjectFlags(t)),i=0,a=ha(t);i<a.length;i++)if(S_(n,a[i].escapedName,r))return!0;return!1}(t,n)){if(a){var u=La(t,0),l=La(t,1);u.length>0&&x(no(u[0]),n,!1)||l.length>0&&x(no(l[0]),n,!1)?v(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Er(t),Er(n)):v(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,Er(t),Er(n))}return 0}var _=0,d=s,p=m;return m=!1,131072&t.flags?_=r===tn?T(t,n,a&&!(16382&t.flags)):function(e,t,n){for(var r=-1,i=0,a=e.types;i<a.length;i++){var o=x(a[i],t,n);if(!o)return 0;r&=o}return r}(t,n,a&&!(16382&t.flags)):(131072&n.flags?_=S(t,n,a&&!(16382&t.flags)&&!(16382&n.flags)):262144&n.flags?(m=!0,_=function(e,t,n){for(var r=-1,i=0,a=t.types;i<a.length;i++){var o=x(e,a[i],n);if(!o)return 0;r&=o}return r}(t,n,a)):262144&t.flags&&(_=T(t,n,!1)),!_&&(8355840&t.flags||8355840&n.flags)&&(_=E(t,n,a))&&(s=d)),m=p,!_&&a&&(65536&t.flags&&16382&n.flags?function(t,n){var r=Er(t),i=Er(n);(Fe===t&&ae===n||Ie===t&&oe===n||Oe===t&&ue===n||jo(!1)===t&&le===n)&&v(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,i,r)}(t,n):t.symbol&&65536&t.flags&&Ne===t&&v(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead),b(o,t,n)),_}function k(e,t){for(var n=-1,r=0,i=e.types;r<i.length;r++){var a=S(i[r],t,!1);if(!a)return 0;n&=a}return n}function S(e,t,n){var r=t.types;if(131072&t.flags&&ns(r,e))return-1;for(var i=0,a=r;i<a.length;i++){var o=x(e,a[i],!1);if(o)return o}return n&&x(e,D(e,t)||r[r.length-1],!0),0}function D(e,t){var n,r=ma(e);if(r){var i=function(e,t){for(var n,r=0,i=e;r<i.length;r++){var a=i[r];if(ju(t,a.escapedName)){if(n){n.push(a);continue}n=[a]}}return n}(r,t);if(i)for(var a=0,o=i;a<o.length;a++)for(var s=o[a],c=ci(s),u=0,l=t.types;u<l.length;u++){var _=l[u],d=Jr(_,s.escapedName);if(d&&x(c,d)){if(_===n)continue;if(n)return;n=_}}}return n}function T(e,t,n){var r=e.types;if(131072&e.flags&&ns(r,t))return-1;for(var i=r.length,a=0;a<i;a++){var o=x(r[a],t,n&&a===i-1);if(o)return o}return 0}function E(t,n,i){if(f)return 0;var a=Mc(t,n,r),o=r.get(a);if(void 0!==o){if(!i||2!==o)return 1===o?-1:0;r.set(a,3)}if(c){for(var m=0;m<_;m++)if(a===c[m])return 1;if(100===d)return f=!0,0}else c=[],u=[],l=[];var g=_;c[_]=a,_++,u[d]=t,l[d]=n,d++;var y=p;1&p||!zc(t,u,d)||(p|=1),2&p||!zc(n,l,d)||(p|=2);var h=3!==p?function(t,n,i){var a,o,c,u=s;if(32768&n.flags){if(32&e.getObjectFlags(t)&&sa(t)===fs(n)&&!(4&la(t))&&(a=x(ca(t),ks(n,oa(t)),i)))return a}else if(524288&n.flags){if(524288&t.flags&&(a=x(n.type,t.type,!1)))return a;if((_=N(n.type))&&(a=x(t,fs(_),i)))return a}else if(1048576&n.flags){if((_=N(n))&&(a=x(t,_,i)))return s=u,a}else if(pa(n)){var l=ca(n);if(!(8&la(n))){if(1048576&l.flags&&l.objectType===t&&l.indexType===oa(n))return-1;if(!pa(t)&&sa(n)===fs(t)&&(a=x(ks(t,oa(n)),ca(n),i)))return s=u,a}}if(32768&t.flags){if(((_=N(t))||!(134217728&n.flags))&&((!_||1&_.flags)&&(_=ge),a=x(_,n,i&&_!==ge)))return s=u,a}else if(1048576&t.flags){var _;if(_=N(t)){if(a=x(_,n,i))return s=u,a}else if(1048576&n.flags&&((a=x(t.objectType,n.objectType,i))&&(a&=x(t.indexType,n.indexType,i)),a))return s=u,a}else if(2097152&t.flags){if(2097152&n.flags){if(dc(t.checkType,n.checkType)&&dc(t.extendsType,n.extendsType)&&((a=x(Es(t),Es(n),i))&&(a&=x(Ns(t),Ns(n),i)),a))return s=u,a}else if(r!==en){var d=ka(t);if(d&&(a=x(d,n,i)))return s=u,a;var p=xa(t);if(p&&(a=x(p,n,i)))return s=u,a}}else{if(4&e.getObjectFlags(t)&&4&e.getObjectFlags(n)&&t.target===n.target&&!(8192&e.getObjectFlags(t)||8192&e.getObjectFlags(n))){var f=wc(t.target);if(a=function(t,n,i,a){var o=t.typeArguments||e.emptyArray,s=n.typeArguments||e.emptyArray;if(o.length!==s.length&&r===nn)return 0;for(var c=o.length<=s.length?o.length:s.length,u=-1,l=0;l<c;l++){var _=l<i.length?i[l]:1;if(4!==_){var d=o[l],p=s[l],f=-1;if(1===_?f=x(d,p,a):2===_?f=x(p,d,a):3===_?(f=x(p,d,!1))||(f=x(d,p,a)):(f=x(d,p,a))&&(f&=x(p,d,a)),!f)return 0;u&=f}}return u}(t,n,f,i))return a;if(f!==e.emptyArray&&!function(e,t){for(var n=0;n<t.length;n++)if(1===t[n]&&2048&e.typeArguments[n].flags)return!0;return!1}(n,f)){if(!i||!e.some(f,function(e){return 0===e}))return 0;o=s,s=u}}var m=!!(16382&t.flags);if(r!==nn&&(t=Pa(t)),327680&t.flags&&65536&n.flags){var g=i&&s===u&&!m;if(32&e.getObjectFlags(c=n)&&4&la(c)&&!pa(t)&&Dc(t)?a=-1:pa(n)?a=pa(t)?function(e,t,n){var i;if((r===tn||(r===nn?la(e)===la(t):da(e)<=da(t)))&&(i=x(sa(t),sa(e),n))){var a=Hs([oa(e)],[oa(t)]);return i&x(ac(ca(e),a),ca(t),n)}return 0}(t,n,g):0:(a=function(t,n,i){if(r===nn)return function(e,t){if(!(65536&e.flags&&65536&t.flags))return 0;var n=ma(e),r=ma(t);if(n.length!==r.length)return 0;for(var i=-1,a=0,o=n;a<o.length;a++){var s=o[a],c=ga(t,s.escapedName);if(!c)return 0;var u=jc(s,c,x);if(!u)return 0;i&=u}return i}(t,n);var a,o,s=Du(t,n,!(r!==$t||Au(t)||(a=t,o=Vc(a)?a.typeArguments[0]:void 0,o===ne||o===fe)));if(s)return i&&v(e.Diagnostics.Property_0_is_missing_in_type_1,Cr(s),Er(t)),0;if(Au(n))for(var c=0,u=ha(t);c<u.length;c++)if(!ga(n,(f=u[c]).escapedName)){var l=ci(f);if(l!==te&&l!==ne)return i&&v(e.Diagnostics.Property_0_does_not_exist_on_type_1,Cr(f),Er(n)),0}for(var _=-1,d=0,p=ma(n);d<p.length;d++){var f,m=p[d];if(!(4194304&m.flags)&&(f=Oa(t,m.escapedName))&&f!==m){if(Nc(t,f,ci(m)))continue;var g=e.getDeclarationModifierFlagsFromSymbol(f),y=e.getDeclarationModifierFlagsFromSymbol(m);if(8&g||8&y){if(256&e.getCheckFlags(f))return i&&v(e.Diagnostics.Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1,Cr(f),Er(t)),0;if(f.valueDeclaration!==m.valueDeclaration)return i&&(8&g&&8&y?v(e.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,Cr(m)):v(e.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,Cr(m),Er(8&g?t:n),Er(8&g?n:t))),0}else if(16&y){if(!Bc(f,m))return i&&v(e.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,Cr(m),Er(Rc(f)||t),Er(Rc(m)||n)),0}else if(16&g)return i&&v(e.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,Cr(m),Er(t),Er(n)),0;var h=x(ci(f),ci(m),i);if(!h)return i&&v(e.Diagnostics.Types_of_property_0_are_incompatible,Cr(m)),0;if(_&=h,r!==tn&&16777216&f.flags&&!(16777216&m.flags))return i&&v(e.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,Cr(m),Er(t),Er(n)),0}}return _}(t,n,g))&&(a&=P(t,n,0,g))&&(a&=P(t,n,1,g))&&(a&=I(t,n,0,m,g))&&(a&=I(t,n,1,m,g)),a){if(!o)return s=u,a;s=o}}}return 0}(t,n,i):1;if(p=y,d--,h){if(-1===h||0===d){for(m=g;m<_;m++)r.set(c[m],1);_=g}}else r.set(a,i?3:2),_=g;return h}function N(e){return r===en?void 0:va(e)}function A(t){if(65536&t.flags){var n=fa(t);return 0===n.callSignatures.length&&0===n.constructSignatures.length&&!n.stringIndexInfo&&!n.numberIndexInfo&&n.properties.length>0&&e.every(n.properties,function(e){return!!(16777216&e.flags)})}return!!(262144&t.flags)&&e.every(t.types,A)}function P(t,n,i,a){if(r===nn)return function(e,t,n){var r=La(e,n),i=La(t,n);if(r.length!==i.length)return 0;for(var a=-1,o=0;o<r.length;o++){var s=Jc(r[o],i[o],!1,!1,!1,x);if(!s)return 0;a&=s}return a}(t,n,i);if(n===be||t===be)return-1;var o=La(t,i),c=La(n,i);if(1===i&&o.length&&c.length){if(e.isAbstractConstructorType(t)&&!e.isAbstractConstructorType(n))return a&&v(e.Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!function(t,n,r){if(!t.declaration||!n.declaration)return!0;var i=e.getSelectedModifierFlags(t.declaration,24),a=e.getSelectedModifierFlags(n.declaration,24);return 8===a||16===a&&8!==i||16!==a&&!i||(r&&v(e.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,Pr(i),Pr(a)),!1)}(o[0],c[0],a))return 0}var u=-1,l=s;if(64&e.getObjectFlags(t)&&64&e.getObjectFlags(n)&&t.symbol===n.symbol)for(var _=0;_<c.length;_++){if(!(h=w(o[_],c[_],!0,a)))return 0;u&=h}else if(1===o.length&&1===c.length)u=w(o[0],c[0],r===tn||C.noStrictGenericChecks,a);else e:for(var d=0,p=c;d<p.length;d++){for(var f=p[d],m=a,g=0,y=o;g<y.length;g++){var h;if(h=w(y[g],f,!0,m)){u&=h,s=l;continue e}m=!1}return m&&v(e.Diagnostics.Type_0_provides_no_match_for_the_signature_1,Er(t),Tr(f,void 0,void 0,i)),0}return u}function w(e,t,n,r){return kc(n?so(e):e,n?so(t):t,0,!1,r,v,x)}function F(t,n,r){var i=x(t.type,n.type,r);return!i&&r&&v(e.Diagnostics.Index_signatures_are_incompatible),i}function I(t,n,i,a,o){if(r===nn)return function(e,t,n){var r=za(t,n),i=za(e,n);return i||r?i&&r&&i.isReadonly===r.isReadonly?x(i.type,r.type):0:-1}(t,n,i);var s=za(n,i);if(!s||1&s.type.flags&&!a)return-1;var c=za(t,i)||1===i&&za(t,0);if(c)return F(c,s,o);if(pa(t))return 0===i&&x(ca(t),s.type,o);if(su(t)){var u=-1;if(0===i){var l=za(t,1);l&&(u=F(l,s,o))}return u&&(u&=function(t,n,r,i){for(var a=-1,o=0,s=ma(t);o<s.length;o++){var c=s[o];if(!Nc(t,c,void 0)){var u=ps(c);if((void 0===u||x(u,ae)||x(u,oe))&&(0===r||n_(c.escapedName))){var l=x(ci(c),n,i);if(!l)return i&&v(e.Diagnostics.Property_0_is_incompatible_with_index_signature,Cr(c)),0;a&=l}}}return a}(t,s.type,i,o)),u}return o&&v(e.Diagnostics.Index_signature_is_missing_in_type_0,Er(t)),0}}function Pc(t,n,r){var i=vo(t,e.map(t.typeParameters,function(e){return e===n?r:e}));return i.objectFlags|=8192,i}function wc(t){if(!w)return e.emptyArray;var n=t.typeParameters||e.emptyArray,r=t.variances;if(!r){if(t===Pe||t===we)r=[1];else{t.variances=e.emptyArray,r=[];for(var i=0,a=n;i<a.length;i++){var o=a[i],s=Pc(t,o,De),c=Pc(t,o,Ce),u=(gc(c,s)?1:0)|(gc(s,c)?2:0);3===u&&gc(Pc(t,o,rt),s)&&(u=4),r.push(u)}}t.variances=r}return r}function Fc(e){return 32768&e.flags&&!mo(e)}function Ic(t){return 4&e.getObjectFlags(t)&&e.some(t.typeArguments,function(e){return Fc(e)||Ic(e)})}function Oc(e,t,n){void 0===n&&(n=0);for(var r=""+e.target.id,i=0,a=e.typeArguments;i<a.length;i++){var o=a[i];if(Fc(o)){var s=t.indexOf(o);s<0&&(s=t.length,t.push(o)),r+="="+s}else n<4&&Ic(o)?r+="<"+Oc(o,t,n+1)+">":r+="-"+o.id}return r}function Mc(e,t,n){if(n===nn&&e.id>t.id){var r=e;e=t,t=r}if(Ic(e)&&Ic(t)){var i=[];return Oc(e,i)+","+Oc(t,i)}return e.id+","+t.id}function Lc(t,n){if(!(6&e.getCheckFlags(t)))return n(t);for(var r=0,i=t.containingType.types;r<i.length;r++){var a=Oa(i[r],t.escapedName),o=a&&Lc(a,n);if(o)return o}}function Rc(e){return e.parent&&32&e.parent.flags?wi(ar(e)):void 0}function Bc(t,n){return!Lc(n,function(n){return!!(16&e.getDeclarationModifierFlagsFromSymbol(n))&&(r=t,i=Rc(n),!Lc(r,function(e){var t=Rc(e);return!!t&&_i(t,i)}));var r,i})}function zc(e,t,n){if(n>=5&&65536&e.flags){var r=e.symbol;if(r)for(var i=0,a=0;a<n;a++){var o=t[a];if(65536&o.flags&&o.symbol===r&&++i>=5)return!0}}return!1}function jc(t,n,r){if(t===n)return-1;var i=24&e.getDeclarationModifierFlagsFromSymbol(t);if(i!==(24&e.getDeclarationModifierFlagsFromSymbol(n)))return 0;if(i){if(vf(t)!==vf(n))return 0}else if((16777216&t.flags)!=(16777216&n.flags))return 0;return Md(t)!==Md(n)?0:r(ci(t),ci(n))}function Jc(t,n,r,i,a,o){if(t===n)return-1;if(!function(e,t,n){if(e.parameters.length===t.parameters.length&&e.minArgumentCount===t.minArgumentCount&&e.hasRestParameter===t.hasRestParameter)return!0;var r=e.hasRestParameter?1:0,i=t.hasRestParameter?1:0;return!!(n&&e.minArgumentCount<=t.minArgumentCount&&(r>i||r===i&&e.parameters.length>=t.parameters.length))}(t,n,r))return 0;if(e.length(t.typeParameters)!==e.length(n.typeParameters))return 0;t=so(t),n=so(n);var s=-1;if(!i){var c=Za(t);if(c){var u=Za(n);if(u){if(!(d=o(c,u)))return 0;s&=d}}}for(var l=n.parameters.length,_=0;_<l;_++){var d;if(!(d=o(Kc(t,_)?ro(t):kd(t.parameters[_]),Kc(n,_)?ro(n):kd(n.parameters[_]))))return 0;s&=d}if(!a){var p=to(t),f=to(n);s&=void 0!==p||void 0!==f?function(e,t,n){return void 0!==e&&void 0!==t&&cs(e,t)?n(e.type,t.type):0}(p,f,o):o(no(t),no(n))}return s}function Kc(e,t){return e.hasRestParameter&&t>=e.parameters.length-1}function Uc(t){return function(e){for(var t,n=0,r=e;n<r.length;n++){var i=r[n],a=Xc(i);if(t||(t=a),a===i||a!==t)return!1}return!0}(t)?ss(t):e.reduceLeft(t,function(e,t){return mc(e,t)?t:e})}function Vc(t){return 4&e.getObjectFlags(t)&&t.target===Pe}function qc(t){return 4&e.getObjectFlags(t)&&(t.target===Pe||t.target===we)||!(12288&t.flags)&&gc(t,ze)}function Wc(e){return!!Oa(e,"0")}function Hc(e){return!!(13536&e.flags)}function Gc(t){return!!(8&t.flags)||(131072&t.flags?!!(256&t.flags)||!e.forEach(t.types,function(e){return!Hc(e)}):Hc(t))}function Xc(t){return 256&t.flags?Ei(t):32&t.flags?ae:64&t.flags?oe:128&t.flags?ue:131072&t.flags?ss(e.sameMap(t.types,Xc)):t}function Qc(t){return 256&t.flags?Ei(t):32&t.flags&&8388608&t.flags?ae:64&t.flags&&8388608&t.flags?oe:128&t.flags?ue:131072&t.flags?ss(e.sameMap(t.types,Qc)):t}function Yc(t){return 1024&t.flags?le:131072&t.flags?ss(e.sameMap(t.types,Yc)):t}function $c(t,n){return function t(n,r){if(r){if(393216&r.flags)return e.some(r.types,function(e){return t(n,e)});if(7372800&r.flags){var i=Da(r)||ge;return 2&i.flags&&zd(n,32)||4&i.flags&&zd(n,64)||8&i.flags&&zd(n,128)||512&i.flags&&zd(n,1024)||t(n,i)}return 524320&r.flags&&zd(n,32)||64&r.flags&&zd(n,64)||128&r.flags&&zd(n,128)||1024&r.flags&&zd(n,1024)}return!1}(t,n)||(t=Yc(Qc(t))),t}function Zc(t){return!!(4&e.getObjectFlags(t)&&8&t.target.objectFlags)}function eu(e){for(var t=0,n=0,r=e;n<r.length;n++)t|=tu(r[n]);return t}function tu(e){return 131072&e.flags?eu(e.types):32&e.flags?""===e.value?32:0:64&e.flags?0===e.value?64:0:128&e.flags?e===ce?128:0:14574&e.flags}function nu(e){return 14560&tu(e)?rl(e,function(e){return!(14560&tu(e))}):e}function ru(e){return 2&e.flags?yt:4&e.flags?ht:8&e.flags||e===ce?ce:14336&e.flags||32&e.flags&&""===e.value||64&e.flags&&0===e.value?e:de}function iu(e,t){var n=t&~e.flags&12288;return 0===n?e:ss(4096===n?[e,te]:8192===n?[e,re]:[e,te,re])}function au(t){return e.Debug.assert(P),4096&t.flags?t:ss([t,te])}function ou(e){return P?function(e){return je||(je=Ro("NonNullable",524288,void 0)||X),je!==X?So(je,[e]):Uu(e,524288)}(e):e}function su(e){return e.symbol&&0!=(6656&e.symbol.flags)&&!Xf(e)}function cu(e,t){var n=un(e.flags,e.escapedName);return n.declarations=e.declarations,n.parent=e.parent,n.type=t,n.target=e,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration),n}function uu(t){if(!(Au(t)&&8388608&t.flags))return t;var n=t.regularType;if(n)return n;var r=t,i=function(t,n){for(var r=e.createSymbolTable(),i=0,a=ma(t);i<a.length;i++){var o=a[i],s=ci(o),c=n(s);r.set(o.escapedName,c===s?o:cu(o,c))}return r}(t,uu),a=mr(r.symbol,i,r.callSignatures,r.constructSignatures,r.stringIndexInfo,r.numberIndexInfo);return a.flags=-8388609&r.flags,a.objectFlags|=128,t.regularType=a,a}function lu(e,t,n){return{parent:e,propertyName:t,siblings:n,resolvedPropertyNames:void 0}}function _u(e,t){var n=ci(e),r=fu(n,t&&lu(t,e.escapedName,void 0));return r===n?e:cu(e,r)}function du(t){var n=G.get(t);if(n)return n;var r=un(16777220,t);r.type=te;var i=js(e.unescapeLeadingUnderscores(t));return 32&i.flags&&(r.nameType=i),G.set(t,r),r}function pu(e){return fu(e,void 0)}function fu(t,n){if(50331648&t.flags){if(12288&t.flags)return Y;if(Au(t))return function(t,n){for(var r=e.createSymbolTable(),i=0,a=ma(t);i<a.length;i++){var o=a[i];r.set(o.escapedName,4&o.flags?_u(o,n):o)}if(n)for(var s=0,c=function(t){if(!t.resolvedPropertyNames){for(var n=e.createMap(),r=0,i=function e(t){if(!t.siblings){for(var n=[],r=0,i=e(t.parent);r<i.length;r++){var a=i[r];if(Au(a)){var o=ga(a,t.propertyName);o&&nl(ci(o),function(e){n.push(e)})}}t.siblings=n}return t.siblings}(t);r<i.length;r++){var a=i[r];if(Au(a)&&!(1024&e.getObjectFlags(a)))for(var o=0,s=ha(a);o<s.length;o++)n.set(s[o].escapedName,!0)}t.resolvedPropertyNames=e.arrayFrom(n.keys())}return t.resolvedPropertyNames}(n);s<c.length;s++){var u=c[s];r.has(u)||r.set(u,du(u))}var l=za(t,0),_=za(t,1);return mr(t.symbol,r,e.emptyArray,e.emptyArray,l&&po(pu(l.type),l.isReadonly),_&&po(pu(_.type),_.isReadonly))}(t,n);if(131072&t.flags){var r=n||lu(void 0,void 0,t.types),i=e.sameMap(t.types,function(e){return 12288&e.flags?e:fu(e,r)});return ss(i,e.some(i,Dc)?2:1)}if(Vc(t)||Zc(t))return vo(t.target,e.sameMap(t.typeArguments,pu))}return t}function mu(t,n){var r,i=Er(pu(n));switch(t.kind){case 151:case 150:r=e.Diagnostics.Member_0_implicitly_has_an_1_type;break;case 148:r=t.dotDotDotToken?e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:e.Diagnostics.Parameter_0_implicitly_has_an_1_type;break;case 180:r=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type;break;case 232:case 153:case 152:case 155:case 156:case 190:case 191:if(!t.name)return void cn(t,e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);r=e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type;break;case 176:return void cn(t,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type);default:r=e.Diagnostics.Variable_0_implicitly_has_an_1_type}cn(t,r,e.declarationNameToString(e.getNameOfDeclaration(t)),i)}function gu(t,n){i&&I&&16777216&n.flags&&(function t(n){var r=!1;if(16777216&n.flags){if(131072&n.flags)if(e.some(n.types,Dc))r=!0;else for(var i=0,a=n.types;i<a.length;i++)t(l=a[i])&&(r=!0);if(Vc(n)||Zc(n))for(var o=0,s=n.typeArguments;o<s.length;o++)t(l=s[o])&&(r=!0);if(Au(n))for(var c=0,u=ma(n);c<u.length;c++){var l,_=u[c];16777216&(l=ci(_)).flags&&(t(l)||cn(_.valueDeclaration,e.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,Cr(_),Er(pu(l))),r=!0)}}return r}(n)||mu(t,n))}function yu(e,t,n){var r,i=e.parameters.length,a=t.parameters.length;r=e.hasRestParameter&&t.hasRestParameter?Math.max(i,a):e.hasRestParameter?a:t.hasRestParameter?i:Math.min(i,a);for(var o=0;o<r;o++)n(Sd(e,o),Sd(t,o))}function hu(e,t,n,r,i){var a=i?i.map(bu):e.map(vu),o=function(e){for(var t=0;t<a.length;t++)if(e===a[t].typeParameter)return a[t].isFixed=!0,wu(o,t);return e};return o.typeParameters=e,o.signature=t,o.inferences=a,o.flags=n,o.compareTypes=r||fc,o}function vu(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1}}function bu(e){return{typeParameter:e.typeParameter,candidates:e.candidates&&e.candidates.slice(),contraCandidates:e.contraCandidates&&e.contraCandidates.slice(),inferredType:e.inferredType,priority:e.priority,topLevel:e.topLevel,isFixed:e.isFixed}}function xu(t){var n=e.getObjectFlags(t);return!!(7897088&t.flags||4&n&&e.forEach(t.typeArguments,xu)||16&n&&t.symbol&&10288&t.symbol.flags||32&n||393216&t.flags&&function(t){return void 0===t.couldContainTypeVariables&&(t.couldContainTypeVariables=e.forEach(t.types,xu)),t.couldContainTypeVariables}(t))}function ku(t,n){return t===n||393216&t.flags&&e.forEach(t.types,function(e){return ku(e,n)})}function Su(e,t){var n=ks(sa(t).type,oa(t)),r=ca(t),i=vu(n);return Tu([i],e,r),Cu(i)}function Du(e,t,n){for(var r=0,i=262144&t.flags?ya(t):ma(t);r<i.length;r++){var a=i[r];if((n||!(16777216&a.flags))&&!Oa(e,a.escapedName))return a}}function Cu(e){return e.candidates?ss(e.candidates,2):e.contraCandidates?ds(e.contraCandidates):ge}function Tu(t,n,r,i){var a,o;void 0===i&&(i=0);var s,c=!1;function u(t,n){if(xu(n)){if(t===Z){var p=s;return s=t,u(n,n),void(s=p)}if(t.aliasSymbol&&t.aliasTypeArguments&&t.aliasSymbol===n.aliasSymbol)for(var f=t.aliasTypeArguments,m=n.aliasTypeArguments,g=0;g<f.length;g++)u(f[g],m[g]);else{if(131072&t.flags&&131072&n.flags&&!(256&t.flags&&256&n.flags)||262144&t.flags&&262144&n.flags){if(t===n){for(var y=0,h=t.types;y<h.length;y++)u(I=h[y],I);return}for(var v=void 0,b=0,x=t.types;b<x.length;b++)if(Eu(I=x[b],n.types))(v||(v=[])).push(I),u(I,I);else if(96&I.flags){var k=Xc(I);Eu(k,n.types)&&(v||(v=[])).push(I,k)}v&&(t=Nu(t,v),n=Nu(n,v))}if(1081344&n.flags){if(67108864&t.flags||t===pe)return;var S=_(n);if(S){if(!S.isFixed){if((void 0===S.priority||i<S.priority)&&(S.candidates=void 0,S.contraCandidates=void 0,S.priority=i),i===S.priority){var D=s||t;c?S.contraCandidates=e.append(S.contraCandidates,D):S.candidates=e.append(S.candidates,D)}8&i||!(32768&n.flags)||ku(r,n)||(S.topLevel=!1)}return}}if(4&e.getObjectFlags(t)&&4&e.getObjectFlags(n)&&t.target===n.target){var C=(f=t.typeArguments||e.emptyArray).length<(m=n.typeArguments||e.emptyArray).length?f.length:m.length,T=wc(t.target);for(g=0;g<C;g++)g<T.length&&2===T[g]?l(f[g],m[g]):u(f[g],m[g])}else if(524288&t.flags&&524288&n.flags)c=!c,u(t.type,n.type),c=!c;else if((Gc(t)||2&t.flags)&&524288&n.flags){var E=function(t){var n=e.createSymbolTable();nl(t,function(t){if(32&t.flags){var r=e.escapeLeadingUnderscores(t.value),i=un(4,r);i.type=Y,t.symbol&&(i.declarations=t.symbol.declarations,i.valueDeclaration=t.symbol.valueDeclaration),n.set(r,i)}});var r=2&t.flags?po(ge,!1):void 0;return mr(void 0,n,e.emptyArray,e.emptyArray,r,void 0)}(t);c=!c;var N=i;i|=16,u(E,n.type),i=N,c=!c}else if(1048576&t.flags&&1048576&n.flags)u(t.objectType,n.objectType),u(t.indexType,n.indexType);else if(2097152&t.flags&&2097152&n.flags)u(t.checkType,n.checkType),u(t.extendsType,n.extendsType),u(Es(t),Es(n)),u(Ns(t),Ns(n));else if(393216&n.flags){for(var A=0,P=void 0,w=0,F=m=n.types;w<F.length;w++){var I;_(I=F[w])?(P=I,A++):u(t,I)}1===A&&(N=i,i|=1,u(t,P),i=N)}else if(131072&t.flags)for(var O=0,M=f=t.types;O<M.length;O++)u(M[O],n);else if(32&i&&8159232&t.flags||(t=Pa(t)),327680&t.flags){var L=t.id+","+n.id;if(o&&o.get(L))return;(o||(o=e.createMap())).set(L,!0);var R=65536&n.flags&&!(16&e.getObjectFlags(n)&&n.symbol&&32&n.symbol.flags)?n.symbol:void 0;if(R){if(e.contains(a,R))return;(a||(a=[])).push(R),d(t,n),a.pop()}else d(t,n)}}}}function l(e,t){w||64&i?(c=!c,u(e,t),c=!c):u(e,t)}function _(e){if(1081344&e.flags)for(var n=0,r=t;n<r.length;n++){var i=r[n];if(e===i.typeParameter)return i}}function d(t,n){if(pa(t)&&pa(n)&&(u(sa(t),sa(n)),u(ca(t),ca(n))),32&e.getObjectFlags(n)){var r=sa(n);if(524288&r.flags){var a=_(r.type);if(a&&!a.isFixed){var o=function(e,t){var n=e.id+","+t.id;if(dt.has(n))return dt.get(n);dt.set(n,void 0);var r=function(e,t){var n=ha(e);if(0!==n.length||za(e,0)){for(var r=0,i=n;r<i.length;r++)if(67108864&ci(i[r]).flags)return;var a=_r(2064,void 0);return a.source=e,a.mappedType=t,a}}(e,t);return dt.set(n,r),r}(t,n);if(o){var s=i;i|=2,u(o,a.typeParameter),i=s}}return}if(32768&r.flags)return s=i,i|=4,u(fs(t),r),i=s,void u(ss(e.map(ha(t),ci)),ca(n))}Du(t,n,!1)&&Du(n,t,!1)||(function(e,t){for(var n=0,r=ma(t);n<r.length;n++){var i=r[n],a=Oa(e,i.escapedName);a&&u(ci(a),ci(i))}}(t,n),p(t,n,0),p(t,n,1),function(e,t){var n=ja(t,0);n&&(r=ja(e,0)||Ja(e,0))&&u(r,n);var r,i=ja(t,1);i&&(r=ja(e,1)||ja(e,0)||Ja(e,1))&&u(r,i)}(t,n))}function p(e,t,n){for(var r=La(e,n),i=La(t,n),a=r.length,o=i.length,s=a<o?a:o,c=0;c<s;c++)f(co(r[a-s+c]),co(i[o-s+c]))}function f(e,t){yu(e,t,l);var n=to(e),r=to(t);n&&r&&n.kind===r.kind?u(n.type,r.type):u(no(e),no(t))}u(n,r)}function Eu(e,t){for(var n=0,r=t;n<r.length;n++)if(dc(r[n],e))return!0;return!1}function Nu(e,t){for(var n=[],r=0,i=e.types;r<i.length;r++){var a=i[r];Eu(a,t)||n.push(a)}return 131072&e.flags?ss(n):ds(n)}function Au(t){return!!(128&e.getObjectFlags(t))}function Pu(t){return 28&t.priority?ds(t.contraCandidates):e.reduceLeft(t.contraCandidates,function(e,t){return mc(t,e)?t:e})}function wu(t,n){var r=t.inferences[n],i=r.inferredType;if(!i){var a=t.signature;if(a)if(r.candidates)16384&(i=function(t,n,r){var i,a=function(t){if(t.length>1){var n=e.filter(t,Au);if(n.length){var r=pu(ss(n,2));return e.concatenate(e.filter(t,function(e){return!Au(e)}),[r])}}return t}(t.candidates),o=!t.topLevel||(i=ba(t.typeParameter))&&zd(i,540670)||!t.isFixed&&ku(no(r),t.typeParameter)?a:e.sameMap(a,Qc);return pu(1&n.flags||28&t.priority?ss(o,2):function(t){if(!P)return Uc(t);var n=e.filter(t,function(e){return!(12288&e.flags)});return n.length?iu(Uc(n),12288&eu(t)):ss(t,2)}(o))}(r,t,a)).flags&&r.contraCandidates&&(i=Pu(r));else if(r.contraCandidates)i=Pu(r);else if(2&t.flags)i=pe;else{var o=Aa(r.typeParameter);i=o?ac(o,Xs(function(e,t){return function(n){return e.indexOf(n)>=t?ge:n}}(t.signature.typeParameters,n),t)):Fu(!!(4&t.flags))}else i=Cu(r);i=Yc(i),r.inferredType=i;var s=ba(r.typeParameter);if(s){var c=ac(s,t);t.compareTypes(i,Xi(c,i))||(r.inferredType=i=Yc(c))}}return i}function Fu(e){return e?Y:ge}function Iu(e){for(var t=[],n=0;n<e.inferences.length;n++)t.push(wu(e,n));return t}function Ou(t){var n=hn(t);return n.resolvedSymbol||(n.resolvedSymbol=!e.nodeIsMissing(t)&&kn(t,t.escapedText,68264895,e.Diagnostics.Cannot_find_name_0,t,!e.isWriteOnlyAccess(t),!1,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1)||X),n.resolvedSymbol}function Mu(t){return!!e.findAncestor(t,function(e){return 164===e.kind||71!==e.kind&&145!==e.kind&&"quit"})}function Lu(t){if(178!==t.parent.kind)return""+t.parent.elements.indexOf(t);var n=t.propertyName||t.name;switch(n.kind){case 71:return e.idText(n);case 146:return e.isStringOrNumericLiteral(n.expression)?n.expression.text:void 0;case 9:case 8:return n.text;default:e.Debug.fail("Unexpected name kind for binding element name")}}function Ru(e,t){switch(e.kind){case 71:return 71===t.kind&&Ou(e)===Ou(t)||(230===t.kind||180===t.kind)&&or(Ou(e))===ir(t);case 99:return 99===t.kind;case 97:return 97===t.kind;case 183:return 183===t.kind&&e.name.escapedText===t.name.escapedText&&Ru(e.expression,t.expression);case 180:if(183!==t.kind)return!1;var n=t;if(n.name.escapedText!==Lu(e))return!1;if(180===e.parent.parent.kind&&Ru(e.parent.parent,n.expression))return!0;if(230===e.parent.parent.kind){var r=e.parent.parent.initializer;return r&&Ru(r,n.expression)}}return!1}function Bu(e,t){for(;183===e.kind;)if(Ru(e=e.expression,t))return!0;return!1}function zu(e,t){return 183===t.kind&&Bu(e,t.expression)&&ju(function e(t){if(71===t.kind)return ci(Ou(t));if(183===t.kind){var n=e(t.expression);return n&&Jr(n,t.name.escapedText)}}(t.expression),t.name.escapedText)}function ju(t,n){if(t&&131072&t.flags){var r=Fa(t,n);if(r&&2&e.getCheckFlags(r))return void 0===r.isDiscriminantProperty&&(r.isDiscriminantProperty=32&r.checkFlags&&Gc(ci(r))),r.isDiscriminantProperty}return!1}function Ju(e,t){return Ru(e,t)||Bu(e,t)}function Ku(e){var t=e.flags;if(2&t)return P?4079361:4194049;if(32&t){var n=""===e.value;return P?n?3030785:1982209:n?3145473:4194049}if(20&t)return P?4079234:4193922;if(64&t){var r=0===e.value;return P?r?3030658:1982082:r?3145346:4193922}return 8&t?P?4078980:4193668:136&t?P?e===ce?3030404:1981828:e===ce?3145092:4193668:65536&t?function(e){var t=fa(e);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&mc(e,Ae))}(e)?P?1970144:4181984:P?1972176:4184016:6144&t?2457472:8192&t?2340752:1536&t?P?1981320:4193160:134217728&t?P?1972176:4184016:7897088&t?Ku(Da(e)||ge):393216&t?function(t){for(var n=0,r=0,i=e.types;r<i.length;r++)n|=Ku(i[r]);return n}():4194303}function Uu(e,t){return rl(e,function(e){return 0!=(Ku(e)&t)})}function Vu(e,t){if(t){var n=ip(t);return ss([Uu(e,131072),n])}return e}function qu(t,n){var r=e.getTextOfPropertyName(n);return Jr(t,r)||n_(r)&&ja(t,1)||ja(t,0)||ee}function Wu(e,t){return Wc(e)&&Jr(e,""+t)||af(e,void 0,!1,!1)||ee}function Hu(e){return Zo(af(e,void 0,!1,!1)||ee)}function Gu(e){return 198===e.parent.kind&&e.parent.left===e||220===e.parent.kind&&e.parent.initializer===e}function Xu(e){return qu(Qu(e.parent),e.name)}function Qu(e){var t=e.parent;switch(t.kind){case 219:return ae;case 220:return rf(t.expression,t.awaitModifier)||ee;case 198:return function(e){return 181===e.parent.kind&&Gu(e.parent)||268===e.parent.kind&&Gu(e.parent.parent)?Vu(Qu(e),e.right):ip(e.right)}(t);case 192:return te;case 181:return function(e,t){return Wu(Qu(e),e.elements.indexOf(t))}(t,e);case 202:return Hu(Qu(t.parent));case 268:return Xu(t);case 269:return function(e){return Vu(Xu(e),e.objectAssignmentInitializer)}(t)}return ee}function Yu(e){return 230===e.kind||180===e.kind?function e(t){return 230===t.kind?function(e){return e.initializer?function(e){return hn(e).resolvedType||ip(e)}(e.initializer):219===e.parent.parent.kind?ae:220===e.parent.parent.kind&&rf(e.parent.parent.expression,e.parent.parent.awaitModifier)||ee}(t):function(t){var n=t.parent,r=e(n.parent);return Vu(178===n.kind?qu(r,t.propertyName||t.name):t.dotDotDotToken?Hu(r):Wu(r,n.elements.indexOf(t)),t.initializer)}(t)}(e):Qu(e)}function $u(e){switch(e.kind){case 189:return $u(e.expression);case 198:switch(e.operatorToken.kind){case 58:return $u(e.left);case 26:return $u(e.right)}}return e}function Zu(e){if(264===e.kind){var t=zs(ip(e.expression));return Hc(t)?t:void 0}return de}function el(t){var n=hn(t);if(!n.switchTypes){n.switchTypes=[];for(var r=0,i=t.caseBlock.clauses;r<i.length;r++){var a=Zu(i[r]);if(void 0===a)return n.switchTypes=e.emptyArray;n.switchTypes.push(a)}}return n.switchTypes}function tl(e,t){return e===t||131072&t.flags&&function(e,t){if(131072&e.flags){for(var n=0,r=e.types;n<r.length;n++)if(!ns(t.types,r[n]))return!1;return!0}return!!(256&e.flags&&Ei(e)===t)||ns(t.types,e)}(e,t)}function nl(t,n){return 131072&t.flags?e.forEach(t.types,n):n(t)}function rl(t,n){if(131072&t.flags){var r=t.types,i=e.filter(r,n);return i===r?t:us(i)}return n(t)?t:de}function il(e,t,n){if(16384&e.flags)return e;if(!(131072&e.flags))return t(e);for(var r,i,a=0,o=e.types;a<o.length;a++){var s=t(o[a]);s&&(r?i?i.push(s):i=[r,s]:r=s)}return i?ss(i,n?0:1):r}function al(e,t){return rl(e,function(e){return 0!=(e.flags&t)})}function ol(e,t){return tl(ae,e)&&zd(t,32)||tl(oe,e)&&zd(t,64)?il(e,function(e){return 2&e.flags?al(t,34):4&e.flags?al(t,68):e}):e}function sl(e){return 0===e.flags}function cl(e){return 0===e.flags?e.type:e}function ul(e,t){return t?{flags:0,type:e}:e}function ll(e){return H[e.id]||(H[e.id]=function(e){var t=_r(256);return t.elementType=e,t}(e))}function _l(e,t){var n=Xc(function(e){var t=e.contextualType;e.contextualType=Y;var n=ip(e);return e.contextualType=t,n}(t));return tl(n,e.elementType)?e:ll(ss([e.elementType,n]))}function dl(t){return 256&e.getObjectFlags(t)?(n=t).finalArrayType||(n.finalArrayType=16384&(r=n.elementType).flags?Be:Zo(131072&r.flags?ss(r.types,2):r)):t;var n,r}function pl(t){return 256&e.getObjectFlags(t)?t.elementType:de}function fl(t,n){return function(t){for(var n=!1,r=0,i=t;r<i.length;r++){var a=i[r];if(!(16384&a.flags)){if(!(256&e.getObjectFlags(a)))return!1;n=!0}}return n}(t)?ll(ss(e.map(t,pl))):ss(e.sameMap(t,dl),n)}function ml(t,n,r,i,a){var s;void 0===r&&(r=n);var c=0;if(gt)return ee;if(!t.flowNode||!a&&!(142575359&n.flags))return n;var l=mt,_=cl(y(t.flowNode));mt=l;var d,p,f,m,g=256&e.getObjectFlags(_)&&(f=183===(p=(d=function e(t){var n=t.parent;return 189===n.kind||198===n.kind&&58===n.operatorToken.kind&&n.left===t||198===n.kind&&26===n.operatorToken.kind&&n.right===t?e(n):t}(t)).parent).kind&&("length"===p.name.escapedText||185===p.parent.kind&&e.isPushOrUnshiftIdentifier(p.name)),m=184===p.kind&&p.expression===d&&198===p.parent.kind&&58===p.parent.operatorToken.kind&&p.parent.left===p&&!e.isAssignmentTarget(p.parent)&&jd(ip(p.argumentExpression),84),f||m)?Re:dl(_);return t.parent&&207===t.parent.kind&&16384&Uu(g,524288).flags?n:g;function y(a){if(2500===c)return gt=!0,s=e.findAncestor(o=t,e.isFunctionOrModuleBlock),u=e.getSourceFileOfNode(o),_=e.getSpanOfTokenAtPosition(u,s.statements.pos),Lt.add(e.createFileDiagnostic(u,_.start,_.length,e.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis)),ee;var o,s,u,_;for(c++;;){var d=a.flags;if(1024&d)for(var p=l;p<mt;p++)if(wt[p]===a)return c--,Ft[p];var f=void 0;if(4096&d)a.locked=!0,f=y(a.antecedent),a.locked=!1;else{if(2048&d){a=a.antecedent;continue}if(16&d){if(!(f=h(a))){a=a.antecedent;continue}}else if(96&d)f=b(a);else if(128&d)f=x(a);else if(12&d){if(1===a.antecedents.length){a=a.antecedents[0];continue}f=4&d?k(a):S(a)}else if(256&d){if(!(f=v(a))){a=a.antecedent;continue}}else if(2&d){var m=a.container;if(m&&m!==i&&183!==t.kind&&99!==t.kind){a=m.flowNode;continue}f=r}else f=$p(n)}return 1024&d&&(wt[mt]=a,Ft[mt]=f,mt++),c--,f}}function h(r){var i=r.node;if(Ru(t,i)){if(2===e.getAssignmentTargetKind(i)){var a=y(r.antecedent);return ul(Xc(cl(a)),sl(a))}if(n===$||n===Be){if(function(e){return 230===e.kind&&e.initializer&&Gr(e.initializer)||180!==e.kind&&198===e.parent.kind&&Gr(e.parent.right)}(i))return ll(de);var o=Xc(Yu(i));return gc(o,n)?o:Re}return 131072&n.flags?function(e,t){if(e!==t){if(16384&t.flags)return t;var n=rl(e,function(e){return function(e,t){if(!(131072&e.flags))return gc(e,t);for(var n=0,r=e.types;n<r.length;n++)if(gc(r[n],t))return!0;return!1}(t,e)});if(!(16384&n.flags))return n}return e}(n,Yu(i)):n}if(Bu(t,i))return n}function v(r){if(n===$||n===Be){var i=r.node;if(Ru(t,$u(185===i.kind?i.expression.expression:i.left.expression))){var a=y(r.antecedent),o=cl(a);if(256&e.getObjectFlags(o)){var s=o;if(185===i.kind)for(var c=0,u=i.arguments;c<u.length;c++)s=_l(s,u[c]);else jd(ip(i.left.argumentExpression),84)&&(s=_l(s,i.right));return s===o?a:ul(s,sl(a))}return a}}}function b(e){var t=y(e.antecedent),n=cl(t);if(16384&n.flags)return t;var r=0!=(32&e.flags),i=dl(n),a=F(i,e.expression,r);if(a===i)return t;var o=sl(t);return ul(o&&16384&a.flags?pe:a,o)}function x(e){var n=y(e.antecedent),r=cl(n),i=e.switchStatement.expression;return Ru(t,i)?r=A(r,e.switchStatement,e.clauseStart,e.clauseEnd):D(i,r)&&(r=C(r,i,function(t){return A(t,e.switchStatement,e.clauseStart,e.clauseEnd)})),ul(r,sl(n))}function k(t){for(var i=[],a=!1,o=!1,s=0,c=t.antecedents;s<c.length;s++){var u=c[s];if(!(2048&u.flags&&u.lock.locked)){var l=y(u),_=cl(l);if(_===n&&n===r)return _;e.pushIfUnique(i,_),tl(_,n)||(a=!0),sl(l)&&(o=!0)}}return ul(fl(i,a?2:1),o)}function S(r){var i=function(e){return e.id||(e.id=o,o++),e.id}(r),a=Et[i]||(Et[i]=e.createMap());if(!s&&!(s=function t(n){if(71===n.kind){var r=Ou(n);return r!==X?(bl(n)?"@":"")+u(r):void 0}if(99===n.kind)return"0";if(183===n.kind)return(a=t(n.expression))&&a+"."+e.idText(n.name);if(180===n.kind){var i=n.parent.parent,a=180===i.kind?t(i):i.initializer&&t(i.initializer),o=Lu(n);return a&&o&&a+"."+o}}(t)))return n;var c=a.get(s);if(c)return c;for(var l=pt;l<ft;l++)if(Nt[l]===r&&At[l]===s&&Pt[l].length)return ul(fl(Pt[l],1),!0);var _,d=[],p=!1;Nt[ft]=r,At[ft]=s,Pt[ft]=d;for(var f=0,m=r.antecedents;f<m.length;f++){ft++;var g=y(m[f]);ft--,_||(_=g);var h=cl(g),v=a.get(s);if(v)return v;if(e.pushIfUnique(d,h),tl(h,n)||(p=!0),h===n)break}var b=fl(d,p?2:1);return sl(_)?ul(b,!0):(a.set(s,b),b)}function D(e,n){return 183===e.kind&&131072&n.flags&&Ru(t,e.expression)&&ju(n,e.name.escapedText)}function C(e,t,n){var r=t.name.escapedText,i=Jr(e,r),a=i&&n(i);return i===a?e:rl(e,function(e){return hc(Jr(e,r),a)})}function T(e,r,i){return Ru(t,r)?Uu(e,i?1048576:2097152):D(r,n)?C(e,r,function(e){return Uu(e,i?1048576:2097152)}):zu(t,r)?n:e}function E(e,t,n,r){if(1&e.flags)return e;33!==t&&35!==t||(r=!r);var i=ip(n);if(12288&i.flags)return P?Uu(e,32===t||33===t?r?65536:524288:95===n.kind?r?32768:262144:r?16384:131072):e;if(134283777&e.flags)return e;if(r){var a=rl(e,function(e){return vc(e,i)});return 16384&a.flags?e:ol(a,i)}if(Hc(i)){var o=zs(i);return rl(e,function(e){return zs(e)!==o})}return e}function N(e,r,i,a,o){var s=$u(r.expression);if(!Ru(t,s))return Bu(t,s)?n:e;if(33!==i&&35!==i||(o=!o),o&&!(131072&e.flags)){var c=Qt.get(a.text);if(c){if(mc(c,e))return c;if(7897088&e.flags&&mc(c,Da(e)||Y))return ds([e,c])}}return Uu(e,o?Gt.get(a.text)||64:Xt.get(a.text)||8192)}function A(t,n,r,i){var a=el(n);if(!a.length)return t;var o=a.slice(r,i),s=r===i||e.contains(o,de),c=ss(o),u=16384&c.flags?de:ol(rl(t,function(e){return vc(c,e)}),c);if(!s)return u;var l=rl(t,function(t){return!(Hc(t)&&e.contains(a,zs(t)))});return 16384&u.flags?l:ss([u,l])}function w(e,t,n,r){if(!n)return rl(e,function(e){return!r(e,t)});if(131072&e.flags){var i=rl(e,function(e){return r(e,t)});if(!(16384&i.flags))return i}return mc(t,e)?t:gc(e,t)?e:gc(t,e)?t:ds([e,t])}function F(r,i,a){switch(i.kind){case 71:case 99:case 97:case 183:return T(r,i,a);case 185:return function(r,i,a){if(!function(e,t){if(e.arguments)for(var n=0,r=e.arguments;n<r.length;n++)if(Ju(t,r[n]))return!0;return!(183!==e.expression.kind||!Ju(t,e.expression.expression))}(i,t)||(void 0===(s=hn(o=i)).maybeTypePredicate&&(s.maybeTypePredicate=function(t){if(97!==t.expression.kind){var n=N_(t.expression);if(n!==pe){var r=Pa(n);return r!==ee&&e.some(La(r,0),eo)}}return!1}(o)),!s.maybeTypePredicate))return r;var o,s,c=dd(i),u=to(c);if(!u)return r;if(Kr(r)&&(u.type===Ne||u.type===Ae))return r;if(e.isIdentifierTypePredicate(u)){var l=i.arguments[u.parameterIndex-(c.thisParameter?1:0)];if(l){if(Ru(t,l))return w(r,u.type,a,mc);if(Bu(t,l))return n}}else{var _=e.skipParentheses(i.expression);if(184===_.kind||183===_.kind){var d=e.skipParentheses(_.expression);if(Ru(t,d))return w(r,u.type,a,mc);if(Bu(t,d))return n}}return r}(r,i,a);case 189:return F(r,i.expression,a);case 198:return function(r,i,a){switch(i.operatorToken.kind){case 58:return T(r,i.left,a);case 32:case 33:case 34:case 35:var o=i.operatorToken.kind,s=$u(i.left),c=$u(i.right);if(193===s.kind&&e.isStringLiteralLike(c))return N(r,s,o,c,a);if(193===c.kind&&e.isStringLiteralLike(s))return N(r,c,o,s,a);if(Ru(t,s))return E(r,o,c,a);if(Ru(t,c))return E(r,o,s,a);if(D(s,n))return C(r,s,function(e){return E(e,o,c,a)});if(D(c,n))return C(r,c,function(e){return E(e,o,s,a)});if(zu(t,s)||zu(t,c))return n;break;case 93:return function(r,i,a){var o=$u(i.left);if(!Ru(t,o))return Bu(t,o)?n:r;var s,c=ip(i.right);if(!mc(c,Ae))return r;var u=Oa(c,"prototype");if(u){var l=ci(u);Kr(l)||(s=l)}if(Kr(r)&&(s===Ne||s===Ae))return r;if(!s){var _=void 0;2&e.getObjectFlags(c)?_=zi(c).declaredConstructSignatures:16&e.getObjectFlags(c)&&(_=La(c,1)),_&&_.length&&(s=ss(e.map(_,function(e){return no(so(e))})))}return s?w(r,s,a,yc):r}(r,i,a);case 92:var u=$u(i.right);if(e.isStringLiteralLike(i.left)&&Ru(t,u))return function(t,n,r){if(196608&t.flags||32768&t.flags&&t.isThisType){var a=e.escapeLeadingUnderscores(i.left.text);return rl(t,function(e){return function(e,t,n){if(za(e,0))return!0;var r=Oa(e,t);return r?!!(16777216&r.flags)||n:!n}(e,a,r)})}return t}(r,0,a);break;case 26:return F(r,i.right,a)}return r}(r,i,a);case 196:if(51===i.operator)return F(r,i.operand,!a)}return r}}function gl(t){return e.findAncestor(t.parent,function(t){return e.isFunctionLike(t)&&!e.getImmediatelyInvokedFunctionExpression(t)||238===t.kind||272===t.kind||151===t.kind})}function yl(t){var n=e.getRootDeclaration(t.valueDeclaration).parent,r=hn(n);return 4194304&r.flags||(r.flags|=4194304,e.findAncestor(n.parent,function(t){return e.isFunctionLike(t)&&!!(4194304&hn(t).flags)})||hl(n)),t.isAssigned||!1}function hl(t){if(71===t.kind){if(e.isAssignmentTarget(t)){var n=Ou(t);n.valueDeclaration&&148===e.getRootDeclaration(n.valueDeclaration).kind&&(n.isAssigned=!0)}}else e.forEachChild(t,hl)}function vl(e){return 3&e.flags&&0!=(2&D_(e))&&ci(e)!==Be}function bl(e){var t=e.parent;return 183===t.kind||185===t.kind&&t.expression===e||184===t.kind&&t.expression===e||180===t.kind&&t.name===e&&!!t.initializer}function xl(e){return 7372800&e.flags&&zd(Da(e)||ge,12288)}function kl(e,t){return bl(t)&&nl(e,xl)?il(pu(e),Ca):e}function Sl(e,t){!Ln(e,67216319)||Mu(t)||om(Bn(e))||jn(e)}function Dl(e,t){hn(e).flags|=2,151===t.kind||154===t.kind?hn(t.parent).flags|=4:hn(t).flags|=4}function Cl(t){return e.isSuperCall(t)?t:e.isFunctionLike(t)?void 0:e.forEachChild(t,Cl)}function Tl(e){var t=hn(e);return void 0===t.hasSuperCall&&(t.superCall=Cl(e.body),t.hasSuperCall=!!t.superCall),t.superCall}function El(e){return xi(wi(ir(e)))===ie}function Nl(t,n,r){var i=n.parent;if(e.getClassExtendsHeritageClauseElement(i)&&!El(i)){var a=Tl(n);(!a||a.end>t.pos)&&cn(t,r)}}function Al(t,n){if(void 0===n&&(n=e.getThisContainer(t,!1)),e.isFunctionLike(n)&&(!Ll(t)||e.getThisParameter(n))){if(190===n.kind&&198===n.parent.kind&&3===e.getSpecialPropertyAssignmentKind(n.parent)){var r=ap(n.parent.left.expression.expression).symbol;if(r&&r.members&&16&r.flags)return ml(t,gd(r))}var i=ri(n)||Ol(n);if(i)return ml(t,i)}if(e.isClassLike(n.parent)){var a=ir(n.parent);return ml(t,o=e.hasModifier(n,32)?ci(a):wi(a).thisType)}var o;if(e.isInJavaScriptFile(t)&&(o=function(t){var r=e.getJSDocType(n);if(r&&280===r.kind&&r.parameters.length>0&&r.parameters[0].name&&"this"===r.parameters[0].name.escapedText)return Us(r.parameters[0].type)}())&&o!==ee)return ml(t,o)}function Pl(t,n){return!!e.findAncestor(t,function(e){return e===n?"quit":148===e.kind})}function wl(t){var n,r=185===t.parent.kind&&t.parent.expression===t,i=e.getSuperContainer(t,!0),a=!1;if(!r)for(;i&&191===i.kind;)i=e.getSuperContainer(i,!0),a=T<2;if(!function(t){return!(!t||(r?154!==t.kind:!e.isClassLike(t.parent)&&182!==t.parent.kind||(e.hasModifier(t,32)?153!==t.kind&&152!==t.kind&&155!==t.kind&&156!==t.kind:153!==t.kind&&152!==t.kind&&155!==t.kind&&156!==t.kind&&151!==t.kind&&150!==t.kind&&154!==t.kind)))}(i)){var o=e.findAncestor(t,function(e){return e===i?"quit":146===e.kind});return o&&146===o.kind?cn(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):r?cn(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):i&&i.parent&&(e.isClassLike(i.parent)||182===i.parent.kind)?cn(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):cn(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),ee}if(r||154!==i.kind||Nl(t,i,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),n=e.hasModifier(i,32)||r?512:256,hn(t).flags|=n,153===i.kind&&e.hasModifier(i,256)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?hn(i).flags|=4096:hn(i).flags|=2048),a&&Dl(t.parent,i),182===i.parent.kind)return T<2?(cn(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),ee):Y;var s=i.parent;if(!e.getClassExtendsHeritageClauseElement(s))return cn(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),ee;var c=wi(ir(s)),u=c&&ki(c)[0];return u?154===i.kind&&Pl(t,i)?(cn(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),ee):512===n?xi(c):Xi(u,c.thisType):ee}function Fl(t){return 4&e.getObjectFlags(t)&&t.target===Le?t.typeArguments[0]:void 0}function Il(t){return il(t,function(t){return 262144&t.flags?e.forEach(t.types,Fl):Fl(t)})}function Ol(t){if(191!==t.kind){if(lc(t)){var n=Zl(t);if(n){var r=n.thisParameter;if(r)return ci(r)}}var i=e.isInJavaScriptFile(t);if(O||i){var a=function(e){return 153!==e.kind&&155!==e.kind&&156!==e.kind||182!==e.parent.kind?190===e.kind&&268===e.parent.kind?e.parent.parent:void 0:e.parent}(t);if(a){for(var o=ql(a),s=a,c=o;c;){var u=Il(c);if(u)return ac(u,Hl(a));if(268!==s.parent.kind)break;c=ql(s=s.parent.parent)}return o?ou(o):Yd(a)}var l=t.parent;if(198===l.kind&&58===l.operatorToken.kind){var _=l.left;if(183===_.kind||184===_.kind){var d=_.expression;if(i&&e.isIdentifier(d)){var p=e.getSourceFileOfNode(l);if(p.commonJsModuleIndicator&&Ou(d)===p.symbol)return}return Yd(d)}}}}}function Ml(t){var n=t.parent;if(lc(n)){var r=e.getImmediatelyInvokedFunctionExpression(n);if(r&&r.arguments){var i=n.parameters.indexOf(t);if(t.dotDotDotToken){for(var a=[],o=i;o<r.arguments.length;o++)a.push(Qc(ap(r.arguments[o])));return a.length?Zo(ss(a)):void 0}var s=hn(r),c=s.resolvedSignature;s.resolvedSignature=at;var u=i<r.arguments.length?Qc(ap(r.arguments[i])):t.initializer?void 0:ne;return s.resolvedSignature=c,u}var l=Zl(n);if(l){var _=e.hasRestParameter(n),d=n.parameters.length-(_?1:0);if(i=n.parameters.indexOf(t),void 0===e.getThisParameter(n)||l.thisParameter||(e.Debug.assert(0!==i),i-=1),i<d)return Sd(l,i);if(_&&i===n.parameters.length-1&&Kc(l,n.parameters.length-1))return ci(e.lastOrUndefined(l.parameters))}}}function Ll(t){for(var n=!1;t.parent&&!e.isFunctionLike(t.parent);){if(e.isParameter(t.parent)&&(n||t.parent.initializer===t))return!0;e.isBindingElement(t.parent)&&t.parent.initializer===t&&(n=!0),t=t.parent}return!1}function Rl(t){if(154===t.kind||e.getEffectiveReturnTypeNode(t)||lf(t))return no(Qa(t));var n=$l(t);return n&&!function(e){return!e.resolvedReturnType&&Rr(e,3)>=0}(n)?no(n):void 0}function Bl(e,t){var n=ed(e).indexOf(t);return-1===n?void 0:zl(e,n)}function zl(e,t){return Sd(hn(e).resolvedSignature===st?st:dd(e),t)}function jl(e,t){return il(e,function(e){var n=458752&e.flags?Oa(e,t):void 0;return n?ci(n):void 0},!0)}function Jl(e,t){return il(e,function(e){return Ba(e,t)},!0)}function Kl(e){var t=ql(e.parent);if(t){if(!Ui(e)){var n=jl(t,ir(e).escapedName);if(n)return n}return t_(e.name)&&Jl(t,1)||Jl(t,0)}}function Ul(e,t){return e&&(jl(e,""+t)||Jl(e,1)||of(e,void 0,!1,!1,!1))}function Vl(t){if(e.isJsxAttribute(t)){var n=ql(t.parent);if(!n||Kr(n))return;return jl(n,t.name.escapedText)}return Wl(t.parent)}function ql(t){var n,r=Wl(t);if(!((r=r&&il(r,Pa))&&131072&r.flags&&e.isObjectLiteralExpression(t)))return r;e:for(var i=0,a=t.properties;i<a.length;i++){var o=a[i];if(o.symbol&&268===o.kind&&ju(r,o.symbol.escapedName))for(var s=Wf(o.initializer),c=0,u=r.types;c<u.length;c++){var l=u[c],_=Jr(l,o.symbol.escapedName);if(_&&bc(s,_,void 0)){if(n){if(l===n)continue;n=void 0;break e}n=l}}}return n||r}function Wl(n){if(!(4194304&n.flags)){if(n.contextualType)return n.contextualType;var r=n.parent;switch(r.kind){case 230:case 148:case 151:case 150:case 180:return function(t){var n=t.parent;if(e.hasInitializer(n)&&t===n.initializer){var r=e.getEffectiveTypeAnnotationNode(n);if(r)return Us(r);if(148===n.kind){var i=Ml(n);if(i)return i}if(e.isBindingPattern(n.name))return $r(n.name,!0,!1);if(e.isBindingPattern(n.parent)){var a=n.parent.parent,o=n.propertyName||n.name;if(180!==a.kind){var s=e.getEffectiveTypeAnnotationNode(a);if(s&&!e.isBindingPattern(o)){var c=e.getTextOfPropertyName(o);if(c)return Jr(Us(s),c)}}}}}(n);case 191:case 223:return function(t){var n=e.getContainingFunction(t);if(n){var r=e.getFunctionFlags(n);if(1&r)return;var i=Rl(n);return 2&r?i&&Sp(i):i}}(n);case 201:return function(t){var n=e.getContainingFunction(t);if(n){var r=e.getFunctionFlags(n),i=Rl(n);if(i)return t.asteriskToken?i:uf(i,0!=(2&r))}}(r);case 185:case 186:return Bl(r,n);case 188:case 206:return Us(r.type);case 198:return function(t){var n=t.parent,r=n.left,i=n.right;switch(n.operatorToken.kind){case 58:return t===i&&function(t){var n=e.getSpecialPropertyAssignmentKind(t);switch(n){case 0:return!0;case 5:return!t.left.symbol;case 1:case 2:case 3:case 4:case 6:return!1;default:e.Debug.assertNever(n)}}(n)?ip(r):void 0;case 54:var a=Wl(n);return a||t!==i||e.getDeclaredJavascriptInitializer(n.parent)||e.getAssignedJavascriptInitializer(n)?a:ip(r,!0);case 53:case 26:return t===i?Wl(n):void 0;default:return}}(n);case 268:case 269:return Kl(r);case 270:return ql(r.parent);case 181:var i=r;return Ul(ql(i),e.indexOfNode(i.elements,n));case 199:return function(e){var t=e.parent;return e===t.whenTrue||e===t.whenFalse?Wl(t):void 0}(n);case 209:return e.Debug.assert(200===r.parent.kind),function(e,t){if(187===e.parent.kind)return Bl(e.parent,n)}(r.parent);case 189:var a=e.isInJavaScriptFile(r)?e.getJSDocTypeTag(r):void 0;return a?Us(a.typeExpression.type):Wl(r);case 263:return function(t){var n=t.parent;return e.isJsxAttributeLike(n)?Wl(t):e.isJsxElement(n)?function(e){var t=ql(e.openingElement.tagName),n=g_(p_(e));return t&&!Kr(t)&&n&&""!==n?jl(t,n):void 0}(n):void 0}(r);case 260:case 262:return Vl(r);case 255:case 254:return function(n){if(s_(n.tagName))return h_(n);var r=ap(n.tagName);if(Kr(r))return Y;var i=e.isInJavaScriptFile(n);return il(r,function(r){return function(n,r,i){if(2&n.flags)return Y;if(32&n.flags){var a=__(t.IntrinsicElements,i);if(a!==ee){var o=Oa(a,e.escapeLeadingUnderscores(n.value));if(o)return ci(o);var s=ja(a,0);if(s)return s}return Y}var c=La(n,1),u=!0;return 0===c.length&&(u=!1,0===(c=La(n,0)).length)?ee:ss(e.map(c,u?function(e){return function(e,t,n){var r=no(e);return r?Xl(r,t,n):Gl(e,n)}(e,r,i)}:function(e){return Gl(e,i)}),0)}(r,i,n)})}(r)}}}function Hl(t){return(t=e.findAncestor(t,function(e){return!!e.contextualMapper}))?t.contextualMapper:D}function Gl(e,n){var r=Dd(e),i=__(t.IntrinsicAttributes,n);return i!==ee&&(r=ra(i,r)),r}function Xl(e,n,r){if(Kr(e))return e;var i=m_(p_(r));if(void 0===i)return Y;if(""===i)return e;var a=Jr(e,i);if(a){if(Kr(a))return a;var o=a,s=__(t.IntrinsicClassAttributes,r);if(s!==ee){var c=mi(s.symbol);o=ra(c?vo(s,Xa([e],c,Ga(c),n)):s,o)}var u=__(t.IntrinsicAttributes,r);return u!==ee&&(o=ra(u,o)),o}return ge}function Ql(t,n){var r=La(t,0);if(1===r.length){var i=r[0];if(!function(t,n){for(var r=0;r<n.parameters.length;r++){var i=n.parameters[r];if(i.initializer||i.questionToken||i.dotDotDotToken||Ua(i))break}return n.parameters.length&&e.parameterIsThisKeyword(n.parameters[0])&&r--,(t.hasRestParameter?Number.MAX_VALUE:t.parameters.length)<r}(i,n))return i}}function Yl(e){return 190===e.kind||191===e.kind}function $l(t){return Yl(t)||e.isObjectLiteralMethod(t)?Zl(t):void 0}function Zl(t){e.Debug.assert(153!==t.kind||e.isObjectLiteralMethod(t));var n=function(t){return e.isObjectLiteralMethod(t)?function(t){if(e.Debug.assert(e.isObjectLiteralMethod(t)),!(4194304&t.flags))return Kl(t)}(t):ql(t)}(t);if(n){if(!(131072&n.flags))return Ql(n,t);for(var r,i,a=0,o=n.types;a<o.length;a++){var s=Ql(o[a],t);if(s)if(r){if(!Jc(r[0],s,!1,!0,!0,pc))return;r.push(s)}else r=[s]}return r&&((i=$i(r[0])).unionSignatures=r),i}}function e_(e){return 180===e.kind&&!!e.initializer||198===e.kind&&58===e.operatorToken.kind}function t_(e){switch(e.kind){case 146:return function(e){return jd(r_(e),84)}(e);case 71:return n_(e.escapedText);case 8:case 9:return n_(e.text);default:return!1}}function n_(e){return(+e).toString()===e}function r_(t){var n=hn(t.expression);return n.resolvedType||(n.resolvedType=ap(t.expression),12288&n.resolvedType.flags||!jd(n.resolvedType,525942)&&!gc(n.resolvedType,ss([ae,oe,le]))?cn(t,e.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any):J_(t.expression,n.resolvedType,!0)),n.resolvedType}function i_(e,t,n,r){for(var i=[],a=0;a<n.length;a++)(0===r||t_(e[a+t].name))&&i.push(ci(n[a]));return po(i.length?ss(i,2):te,!1)}function a_(t){return!!(134217729&t.flags||14560&tu(t)&&a_(nu(t))||65536&t.flags&&!pa(t)||393216&t.flags&&!e.forEach(t.types,function(e){return!a_(e)}))}function o_(t){return!e.stringContains(t,"-")}function s_(t){switch(t.kind){case 183:case 99:return!1;case 71:return e.isIntrinsicJsxName(t.escapedText);default:e.Debug.fail()}}function c_(e,t){return e.initializer?ep(e.initializer,t):se}function u_(t,n){for(var r,i=t.attributes,a=e.createSymbolTable(),o=ge,s=!1,c=!1,u=g_(p_(t)),l=0,_=i.properties;l<_.length;l++){var d=_[l],p=d.symbol;if(e.isJsxAttribute(d)){var f=c_(d,n),m=un(33554436|p.flags,p.escapedName);m.declarations=p.declarations,m.parent=p.parent,p.valueDeclaration&&(m.valueDeclaration=p.valueDeclaration),m.type=f,m.target=p,a.set(m.escapedName,m),d.name.escapedText===u&&(c=!0)}else e.Debug.assert(262===d.kind),a.size>0&&(o=Is(o,b(),i.symbol,0,4096),a=e.createSymbolTable()),Kr(f=Yd(d.expression,n))&&(s=!0),a_(f)?o=Is(o,f,t.symbol,0,4096):r=r?ds([r,f]):f}s||a.size>0&&(o=Is(o,b(),i.symbol,0,4096));var g=253===t.parent.kind?t.parent:void 0;if(g&&g.openingElement===t&&g.children.length>0){var y=l_(g,n);if(!s&&u&&""!==u){c&&cn(i,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(u));var h=un(33554436,u);h.type=1===y.length?y[0]:Zo(ss(y));var v=e.createSymbolTable();v.set(u,h),o=Is(o,mr(i.symbol,v,e.emptyArray,e.emptyArray,void 0,void 0),i.symbol,0,4096)}}return s?Y:r&&o!==ge?ds([r,o]):r||o;function b(){var t=mr(i.symbol,a,e.emptyArray,e.emptyArray,void 0,void 0);return t.flags|=33554432,t.objectFlags|=4224,t}}function l_(e,t){for(var n=[],r=0,i=e.children;r<i.length;r++){var a=i[r];10===a.kind?a.containsOnlyWhiteSpaces||n.push(ae):n.push(ep(a,t))}return n}function __(e,t){var n=p_(t),r=n&&Zn(n),i=r&&bn(r,e,67901928);return i?wi(i):ee}function d_(n){var r=hn(n);if(!r.resolvedSymbol){var i=__(t.IntrinsicElements,n);if(i!==ee){if(!e.isIdentifier(n.tagName))return e.Debug.fail();var a=Oa(i,n.tagName.escapedText);return a?(r.jsxFlags|=1,r.resolvedSymbol=a):ja(i,0)?(r.jsxFlags|=2,r.resolvedSymbol=i.symbol):(cn(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(n.tagName),"JSX."+t.IntrinsicElements),r.resolvedSymbol=X)}return I&&cn(n,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(t.IntrinsicElements)),r.resolvedSymbol=X}return r.resolvedSymbol}function p_(e){var n=sn(e),r=kn(e,n,1920,void 0,n,!1);if(r){var i=bn(Zn(Rn(r)),t.JSX,1920);if(i)return i}return Ro(t.JSX,1920,void 0)}function f_(t,n){var r=n&&bn(n.exports,t,67901928),i=r&&wi(r),a=i&&ha(i);if(a){if(0===a.length)return"";if(1===a.length)return a[0].escapedName;a.length>1&&cn(r.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t))}}function m_(e){return f_(t.ElementAttributesPropertyNameContainer,e)}function g_(e){return f_(t.ElementChildrenAttributeNameContainer,e)}function y_(e){if(e){if(262144&e.flags){for(var t=[],n=0,r=e.types;n<r.length;n++)t.push(Pa(r[n]));return ds(t)}return Pa(e)}}function h_(t){e.Debug.assert(s_(t.tagName));var n=hn(t);if(!n.resolvedJsxElementAttributesType){var r=d_(t);return n.resolvedJsxElementAttributesType=1&n.jsxFlags?ci(r):2&n.jsxFlags?fo(r,0).type:ee}return n.resolvedJsxElementAttributesType}function v_(n,r){return function n(r,i,a,o){if(131072&a.flags)return ss(a.types.map(function(e){return n(r,i,e,o)}),2);if(2&a.flags)return Y;if(32&a.flags){var s=__(t.IntrinsicElements,r);if(s!==ee){var c=a.value,u=Oa(s,e.escapeLeadingUnderscores(c));if(u)return ci(u);var l=ja(s,0);if(l)return l;cn(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,c,"JSX."+t.IntrinsicElements)}return Y}var _=function(t,n){if(e.Debug.assert(!(131072&n.flags)),Kr(n))return Y;var r=La(n,1);if(0===r.length&&0===(r=La(n,0)).length)return cn(t.tagName,e.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,e.getTextOfNode(t.tagName)),ee;for(var i=[],a=0,o=r;a<o.length;a++){var s=o[a];if(s.typeParameters){var c=e.isInJavaScriptFile(t),u=X_(s,t,hu(s.typeParameters,s,c?4:0));i.push(io(s,u,c))}else i.push(s)}return ss(e.map(i,no),2)}(r,a);return(i?function(n,r,i,a){if(e.Debug.assert(!(131072&r.flags)),!a||!gc(i,a)){var o=x_(n);if(o){var s=[];ld(n,r,s);for(var c=void 0,u=void 0,l=0,_=s;l<_.length;l++){var d=_[l],p=no(d),f=p&&(0===d.parameters.length?ge:ci(d.parameters[0]));if(f=y_(f),p&&gc(p,o)){for(var m=!0,g=0,y=n.attributes.properties;g<y.length;g++){var h=y[g];if(e.isJsxAttribute(h)&&o_(h.name.escapedText)&&!Oa(f,h.name.escapedText)){m=!1;break}}m&&(c=ra(c,f)),u=ra(u,f)}}c||(c=u);var v=__(t.IntrinsicAttributes,n);return v!==ee&&(c=ra(v,c)),c}}}(r,a,_,o):function(n,r,i,a){if(e.Debug.assert(!(131072&r.flags)),!a||!gc(i,a)){var o=x_(n);if(o){var s=ld(n,r,void 0);if(s!==ot){var c=s&&no(s),u=c&&(0===s.parameters.length?ge:ci(s.parameters[0]));if(u=y_(u),c&&gc(c,o)){var l=__(t.IntrinsicAttributes,n);return l!==ee&&(u=ra(l,u)),u}}}}}(r,a,_,o))||(o&&Ac(_,o,Zt,r,e.Diagnostics.JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements),Xl(_,e.isInJavaScriptFile(r),r))}(n,r,ap(n.tagName),(i=__(t.ElementClass,n))===ee?void 0:i);var i}function b_(e){return __(t.Element,e)}function x_(e){var t=b_(e);if(t)return ss([t,re])}function k_(t,n){var r,i=e.isJsxOpeningLikeElement(t);i&&function(t){for(var n=e.createUnderscoreEscapedMap(),r=0,i=t.attributes.properties;r<i.length;r++){var a=i[r];if(262!==a.kind){var o=a.name,s=a.initializer;if(n.get(o.escapedText))return Hm(o,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(n.set(o.escapedText,!0),s&&263===s.kind&&!s.expression)return Hm(s,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}}(t),r=t,0===(C.jsx||0)&&cn(r,e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===b_(r)&&I&&cn(r,e.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist);var a=Lt&&2===C.jsx?e.Diagnostics.Cannot_find_name_0:void 0,o=sn(t),s=kn(i?t.tagName:t,o,67216319,a,o,!0);s&&(s.isReferenced=67108863,2097152&s.flags&&!om(Bn(s))&&jn(s)),i?function(t,n){var r=s_(t.tagName)?h_(t):v_(t,!1),i=u_(t,n);if(r===ge&&(Kr(i)||ha(i).length>0))cn(t,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(m_(p_(t))));else if(bc(i,r,t.attributes.properties.length>0?t.attributes:t)&&!Kr(i)&&!Kr(r))for(var a=0,o=t.attributes.properties;a<o.length;a++){var s=o[a];if(e.isJsxAttribute(s)){var c=s.name;if((o_(e.idText(c))||Oa(r,c.escapedText))&&!S_(r,c.escapedText,!0)){cn(s,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(c),Er(r));break}}}}(t,n):l_(t.parent)}function S_(e,t,n){if(65536&e.flags){var r=fa(e);if(r.stringIndexInfo||r.numberIndexInfo&&n_(t)||ga(e,t)||n&&!o_(t))return!0}else if(393216&e.flags)for(var i=0,a=e.types;i<a.length;i++)if(S_(a[i],t,n))return!0;return!1}function D_(t){return t.valueDeclaration?e.getCombinedNodeFlags(t.valueDeclaration):0}function C_(t){return!!(8192&t.flags||4&e.getCheckFlags(t))}function T_(t,n,r,i){var a,o=e.getDeclarationModifierFlagsFromSymbol(i),s=183===t.kind||230===t.kind?t.name:t.right;if(256&e.getCheckFlags(i))return cn(s,e.Diagnostics.Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1,Cr(i),Er(r)),!1;if(97===n.kind){if(T<2&&E_(i))return cn(s,e.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(128&o)return cn(s,e.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Cr(i),Er(Rc(i))),!1}if(128&o&&e.isThisProperty(t)&&E_(i)&&(a=e.getClassLikeDeclarationOfSymbol(ar(i)))&&function(t,n){return e.findAncestor(t,function(t){return!(!e.isConstructorDeclaration(t)||!e.nodeIsPresent(t.body)||t.parent!==n)||!(t!==n&&!e.isFunctionLikeDeclaration(t))&&"quit"})}(t,a))return cn(s,e.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Cr(i),e.getTextOfIdentifierOrLiteral(a.name)),!1;if(!(24&o))return!0;if(8&o)return!!Kf(t,a=e.getClassLikeDeclarationOfSymbol(ar(i)))||(cn(s,e.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,Cr(i),Er(Rc(i))),!1);if(97===n.kind)return!0;var c=Jf(t,function(t){var n=wi(ir(t));return function(t,n){return Lc(n,function(n){return!!(16&e.getDeclarationModifierFlagsFromSymbol(n))&&!_i(t,Rc(n))})?void 0:t}(n,i)?n:void 0});return c?!!(32&o)||(32768&r.flags&&(r=r.isThisType?ba(r):Da(r)),!(!r||!_i(r,c))||(cn(s,e.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1,Cr(i),Er(c)),!1)):(cn(s,e.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Cr(i),Er(Rc(i)||r)),!1)}function E_(e){return Lc(e,function(e){var t,n=(t=e).valueDeclaration?t.valueDeclaration.kind:151;return 153!==n&&152!==n})}function N_(e,t,n,r){return A_(ap(e),e,t,n,r)}function A_(t,n,r,i,a){var o=12288&(P?tu(t):t.flags);if(o){cn(n,4096&o?8192&o?a||e.Diagnostics.Object_is_possibly_null_or_undefined:i||e.Diagnostics.Object_is_possibly_undefined:r||e.Diagnostics.Object_is_possibly_null);var s=ou(t);return 28672&s.flags?ee:s}return t}function P_(e){return F_(e,e.expression,e.name)}function w_(e){return F_(e,e.left,e.right)}function F_(t,n,r){var i,a=N_(n),o=hn(n).resolvedSymbol,s=Pa(pu(a));if(Kr(s)||s===pe)return e.isIdentifier(n)&&o&&Sl(o,t),s;var c=e.getAssignmentTargetKind(t),u=Oa(s,r.escapedText);if(!e.isIdentifier(n)||!o||u&&om(u)||Sl(o,t),u){if(function(t,n,r){var i=t.valueDeclaration;i&&(!function(t){return!!e.findAncestor(t,function(t){switch(t.kind){case 151:return!0;case 268:return!1;default:return!e.isExpressionNode(t)&&"quit"}})}(n)||xn(i,r)||function(e){if(!(32&e.parent.flags))return!1;for(var t=ci(e.parent);;){if(!(t=I_(t)))return!1;var n=ga(t,e.escapedName);if(n&&n.valueDeclaration)return!0}}(t)?233!==i.kind||161===n.parent.kind||2097152&i.flags||xn(i,r)||cn(r,e.Diagnostics.Class_0_used_before_its_declaration,e.idText(r)):cn(r,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,e.idText(r)))}(u,t,r),B_(u,t,99===n.kind),hn(t).resolvedSymbol=u,T_(t,n,s,u),c&&(Ld(t,u)||Rd(t)))return cn(r,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property,e.idText(r)),ee;i=kl(ci(u),t)}else{var l=za(s,0);if(!l||!l.type)return r.escapedText&&!En(t)&&function(t,n){var r;if(131072&n.flags&&!(16382&n.flags))for(var i=0,a=n.types;i<a.length;i++){var o=a[i];if(!Oa(o,t.escapedText)){r=e.chainDiagnosticMessages(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(t),Er(o));break}}var s=O_(t,n);r=void 0!==s?e.chainDiagnosticMessages(r,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,e.declarationNameToString(t),Er(n),s):e.chainDiagnosticMessages(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(t),Er(n)),Lt.add(e.createDiagnosticForNodeFromMessageChain(t,r))}(r,32768&a.flags&&a.isThisType?s:a),ee;l.isReadonly&&(e.isAssignmentTarget(t)||e.isDeleteTarget(t))&&cn(t,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Er(s)),i=l.type}if(183!==t.kind||1===c||u&&!(98311&u.flags)&&!(8192&u.flags&&131072&i.flags))return i;var _=!1;if(P&&F&&99===n.kind){var d=u&&u.valueDeclaration;if(d&&bf(d)){var p=gl(t);154===p.kind&&p.parent===d.parent&&(_=!0)}}var f=ml(t,i,_?au(i):i);return _&&!(4096&tu(i))&&4096&tu(f)?(cn(r,e.Diagnostics.Property_0_is_used_before_being_assigned,Cr(u)),i):c?Xc(f):f}function I_(t){var n=ki(t);if(0!==n.length)return e.Debug.assert(1===n.length),n[0]}function O_(t,n){var r=L_(e.idText(t),ha(n),67216319);return r&&e.symbolName(r)}function M_(t,n,r){e.Debug.assert(void 0!==n,"outername should always be defined");var i=Sn(t,n,r,void 0,n,!1,!1,function(t,r,i){return e.Debug.assertEqual(n,r,"name should equal outerName"),bn(t,r,i)||L_(e.unescapeLeadingUnderscores(r),e.arrayFrom(t.values()),i)});return i&&e.symbolName(i)}function L_(t,n,r){for(var i,a=Math.min(2,Math.floor(.34*t.length)),o=Math.floor(.4*t.length)+1,s=!1,c=t.toLowerCase(),u=0,l=n;u<l.length;u++){var _=l[u],d=e.symbolName(_);if(_.flags&r&&Math.abs(d.length-c.length)<=a){var p=d.toLowerCase();if(p===c)return _;if(!(s||d.length<3)){var f=R_(c,p,o-1);void 0!==f&&(f<3?(s=!0,i=_):(e.Debug.assert(f<o),o=f,i=_))}}}return i}function R_(e,t,n){for(var r=new Array(t.length+1),i=new Array(t.length+1),a=n+1,o=0;o<=t.length;o++)r[o]=o;for(o=1;o<=e.length;o++){var s=e.charCodeAt(o-1),c=o>n?o-n:1,u=t.length>n+o?n+o:t.length;i[0]=o;for(var l=o,_=1;_<c;_++)i[_]=a;for(_=c;_<=u;_++){var d=s===t.charCodeAt(_-1)?r[_-1]:Math.min(r[_]+1,i[_-1]+1,r[_-1]+2);i[_]=d,l=Math.min(l,d)}for(_=u+1;_<=t.length;_++)i[_]=a;if(l>n)return;var p=r;r=i,i=p}var f=r[t.length];return f>n?void 0:f}function B_(t,n,r){if(t&&N&&106500&t.flags&&t.valueDeclaration&&e.hasModifier(t.valueDeclaration,8)&&(!n||!e.isWriteOnlyAccess(n)||65536&t.flags&&!(32768&t.flags))){if(r){var i=e.findAncestor(n,e.isFunctionLikeDeclaration);if(i&&i.symbol===t)return}(1&e.getCheckFlags(t)?yn(t).target:t).isReferenced=67108863}}function z_(t,n,r,i){if(i===ee||Kr(i))return!0;var a=Oa(i,r);return a?T_(t,n,i,a):e.isInJavaScriptFile(t)&&131072&i.flags&&i.types.some(function(e){return z_(t,n,r,e)})}function j_(t){var n=t.initializer;if(231===n.kind){var r=n.declarations[0];if(r&&!e.isBindingPattern(r.name))return ir(r)}else if(71===n.kind)return Ou(n)}function J_(t,n,r){if(n===ee)return!1;if(!e.isWellKnownSymbolSyntactically(t))return!1;if(0==(1536&n.flags))return r&&cn(t,e.Diagnostics.A_computed_property_name_of_the_form_0_must_be_of_type_symbol,e.getTextOfNode(t)),!1;var i=t.expression,a=Ou(i);if(!a)return!1;var o=zo(!0);return!(!o||a!==o&&(r&&cn(i,e.Diagnostics.Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object),1))}function K_(t){return e.isCallOrNewExpression(t)}function U_(t){return K_(t)&&e.forEach(t.typeArguments,If),187===t.kind?ap(t.template):149!==t.kind&&e.forEach(t.arguments,function(e){ap(e)}),at}function V_(e){return U_(e),ot}function q_(e){for(var t=0;t<e.length;t++){var n=e[t];if(n&&202===n.kind)return t}return-1}function W_(t,n,r,i){var a,o,s;void 0===i&&(i=!1);var c=-1;if(e.isJsxOpeningLikeElement(t))return!0;if(187===t.kind)if(a=n.length,o=void 0,200===t.template.kind){var u=e.lastOrUndefined(t.template.templateSpans);e.Debug.assert(void 0!==u),s=e.nodeIsMissing(u.literal)||!!u.literal.isUnterminated}else{var l=t.template;e.Debug.assert(13===l.kind),s=!!l.isUnterminated}else if(149===t.kind)o=void 0,a=td(t,void 0,r);else{if(!t.arguments)return e.Debug.assert(186===t.kind),0===r.minArgumentCount;a=i?n.length+1:n.length,s=t.arguments.end===t.end,o=t.typeArguments,c=q_(n)}var _=e.length(r.typeParameters),d=Ga(r.typeParameters);return(!o||o.length>=d&&o.length<=_)&&(c>=0?Kc(r,c)||r.minArgumentCount<=c&&c<r.parameters.length:!(!r.hasRestParameter&&a>r.parameters.length)&&(s||a>=r.minArgumentCount))}function H_(e){if(65536&e.flags){var t=fa(e);if(1===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.properties.length&&!t.stringIndexInfo&&!t.numberIndexInfo)return t.callSignatures[0]}}function G_(t,n,r,i){var a=hu(t.typeParameters,t,1,i);return yu(n,t,function(e,t){Tu(a.inferences,ac(e,r||D),t)}),r||Tu(a.inferences,no(n),no(t),8),io(t,Iu(a),e.isInJavaScriptFile(n.declaration))}function X_(e,t,n){var r=Sd(e,0),i=Qd(t.attributes,r,D);Tu(n.inferences,i,r);var a=Sd(e,0),o=Qd(t.attributes,a,n);return Tu(n.inferences,o,a),Iu(n)}function Q_(t,n,r,i,a){for(var o=0,s=a.inferences;o<s.length;o++){var c=s[o];c.isFixed||(c.inferredType=void 0)}if(149!==t.kind){var u=Wl(t);if(u){var l=ac(u,function(e){return e&&function(e){return!!e.typeParameters}(e)?hu(e.typeParameters,e.signature,2|e.flags,e.compareTypes,e.inferences):e}(Hl(t))),_=H_(l),d=_&&_.typeParameters?uo(io(_,_.typeParameters,e.isInJavaScriptFile(t))):l,p=no(n);Tu(a.inferences,d,p,8)}}var f=Za(n);if(f){var m=Z_(t),g=m?ap(m):_e;Tu(a.inferences,g,f)}for(var y=td(t,r,n),h=0;h<y;h++)if(void 0===(x=rd(t,r,h))||204!==x.kind){var v=Sd(n,h),b=nd(t,h);void 0===b&&(b=Qd(x,v,i&&void 0!==i[h]?D:a)),Tu(a.inferences,b,v)}if(i)for(h=0;h<y;h++)if(!1===i[h]){var x=r[h];v=Sd(n,h),Tu(a.inferences,Qd(x,v,a),v)}return Iu(a)}function Y_(t,n,r,i){for(var a,o=e.isInJavaScriptFile(t.declaration),s=t.typeParameters,c=Xa(e.map(n,Us),s,Ga(s),o),u=0;u<n.length;u++){e.Debug.assert(void 0!==s[u],"Should not call checkTypeArguments with too many type arguments");var l=ba(s[u]);if(l){var _=r&&i&&function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)},d=i||e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1;a||(a=Hs(s,c));var p=c[u];if(!bc(p,Xi(ac(l,a),p),r?n[u]:void 0,d,_))return!1}}return c}function $_(t,n,r,i,a,o){if(e.isJsxOpeningLikeElement(t))return function(t,n,r){if(t.attributes.end===t.end)return!0;for(var i=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,a=Sd(n,0),o=Qd(t.attributes,a,void 0),s=0,c=ha(o);s<c.length;s++){var u=c[s];if(!Oa(a,u.escapedName)&&o_(u.escapedName))return!1}return Ac(o,a,r,void 0,i)}(t,r,i);var s=Za(r);if(s&&s!==_e&&186!==t.kind){var c=Z_(t),u=c?ap(c):_e,l=o?c||t:void 0,_=e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!Ac(u,Za(r),i,l,_))return!1}for(var d=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,p=td(t,n,r),f=0;f<p;f++){var m=rd(t,n,f);if(void 0===m||204!==m.kind){var g=Sd(r,f),y=nd(t,f)||Qd(m,g,a&&a[f]?D:void 0);if(!Ac(a?uu(y):y,g,i,l=o?id(t,f,m):void 0,d))return!1}}return!0}function Z_(e){if(185===e.kind){var t=e.expression;if(183===t.kind)return t.expression;if(184===t.kind)return t.expression}}function ed(t){if(187===t.kind){var n=t.template,r=[void 0];return 200===n.kind&&e.forEach(n.templateSpans,function(e){r.push(e.expression)}),r}return 149===t.kind?void 0:e.isJsxOpeningLikeElement(t)?t.attributes.properties.length>0?[t.attributes]:e.emptyArray:t.arguments||e.emptyArray}function td(e,t,n){if(149!==e.kind)return t.length;switch(e.parent.kind){case 233:case 203:return 1;case 151:return 2;case 153:case 155:case 156:return 0===T?2:n.parameters.length>=3?3:2;case 148:return 3}}function nd(t,n){return 149===t.kind?function(t,n){return 0===n?function(t){return 233===t.kind?ci(ir(t)):148===t.kind&&154===(t=t.parent).kind?ci(ir(t)):151===t.kind||153===t.kind||155===t.kind||156===t.kind?function(t){var n=ir(t.parent);return e.hasModifier(t,32)?ci(n):wi(n)}(t):(e.Debug.fail("Unsupported decorator target."),ee)}(t.parent):1===n?function(t){if(233===t.kind)return e.Debug.fail("Class decorators should not have a second synthetic argument."),ee;if(148===t.kind&&154===(t=t.parent).kind)return Y;if(151===t.kind||153===t.kind||155===t.kind||156===t.kind){var n=t;switch(n.name.kind){case 71:return js(e.idText(n.name));case 8:case 9:return js(n.name.text);case 146:var r=r_(n.name);return jd(r,1536)?r:ae;default:return e.Debug.fail("Unsupported property name."),ee}}return e.Debug.fail("Unsupported decorator target."),ee}(t.parent):2===n?function(t){return 233===t.kind?(e.Debug.fail("Class decorators should not have a third synthetic argument."),ee):148===t.kind?oe:151===t.kind?(e.Debug.fail("Property decorators should not have a third synthetic argument."),ee):153===t.kind||155===t.kind||156===t.kind?Xo(Wf(t)):(e.Debug.fail("Unsupported decorator target."),ee)}(t.parent):(e.Debug.fail("Decorators should not have a fourth synthetic argument."),ee)}(t,n):0===n&&187===t.kind?Ze||(Ze=Bo("TemplateStringsArray",0,!0))||ge:void 0}function rd(e,t,n){if(149!==e.kind&&(0!==n||187!==e.kind))return t[n]}function id(e,t,n){return 149===e.kind?e.expression:0===t&&187===e.kind?e.template:n}function ad(t,n,r,a){var o,s=187===t.kind,c=149===t.kind,u=e.isJsxOpeningLikeElement(t);s||c||u||(o=t.typeArguments,97!==t.expression.kind&&e.forEach(o,If));var l=r||[];if(function(t,n){var r,i,a,o,s=0,c=-1;e.Debug.assert(!n.length);for(var u=0,l=t;u<l.length;u++){var _=l[u],d=_.declaration&&ir(_.declaration),p=_.declaration&&_.declaration.parent;i&&d!==i?(a=s=n.length,r=p):r&&p===r?a++:(r=p,a=s),i=d,_.hasLiteralTypes?(o=++c,s++):o=a,n.splice(o,0,_)}}(n,l),!l.length)return Lt.add(e.createDiagnosticForNode(t,e.Diagnostics.Call_target_does_not_contain_any_signatures)),V_(t);var _,d,p,f,m=ed(t),g=1===l.length&&!l[0].typeParameters,y=0;if(!c&&!g)for(var h=s?1:0;h<m.length;h++)cc(m[h])&&(_||(_=new Array(m.length)),_[h]=!0,y++);var v=r&&185===t.kind&&t.arguments.hasTrailingComma;if(l.length>1&&(f=L(l,$t,v)),f||(f=L(l,Zt,v)),f)return f;if(d){if(u)return d;$_(t,m,d,Zt,void 0,!0)}else if(p)Y_(p,t.typeArguments,!0,a);else if(o&&e.every(n,function(t){return e.length(t.typeParameters)!==o.length})){for(var b=Number.POSITIVE_INFINITY,x=Number.NEGATIVE_INFINITY,k=0,S=n;k<S.length;k++){var D=S[k];b=Math.min(b,Ga(D.typeParameters)),x=Math.max(x,e.length(D.typeParameters))}var C=b<x?b+"-"+x:b;Lt.add(e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),o,e.Diagnostics.Expected_0_type_arguments_but_got_1,C,o.length))}else if(m){b=Number.POSITIVE_INFINITY,x=Number.NEGATIVE_INFINITY;for(var T=0,E=n;T<E.length;T++)D=E[T],b=Math.min(b,D.minArgumentCount),x=Math.max(x,D.parameters.length);var N=e.some(n,function(e){return e.hasRestParameter}),A=q_(m)>-1,P=(C=N?b:b<x?b+"-"+x:b,m.length);P<=x&&A&&P--,Lt.add(e.createDiagnosticForNode(t,N&&A?e.Diagnostics.Expected_at_least_0_arguments_but_got_1_or_more:N?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:A?e.Diagnostics.Expected_0_arguments_but_got_1_or_more:e.Diagnostics.Expected_0_arguments_but_got_1,C,P))}else a&&Lt.add(e.createDiagnosticForNode(t,a));if(!i){e.Debug.assert(l.length>0);var w=function(e,t){for(var n=-1,r=-1,i=0;i<e.length;i++){var a=e[i];if(a.hasRestParameter||a.parameters.length>=t)return i;a.parameters.length>r&&(r=a.parameters.length,n=i)}return n}(l,void 0===B?m.length:B),F=l[w],I=F.typeParameters;if(I&&K_(t)&&t.typeArguments){for(var O=t.typeArguments.map(Wf);O.length>I.length;)O.pop();for(;O.length<I.length;)O.push(Fu(e.isInJavaScriptFile(t)));var M=ao(F,O);return l[w]=M,M}return F}return V_(t);function L(n,r,i){if(void 0===i&&(i=!1),d=void 0,p=void 0,g){if(!W_(t,m,c=n[0],i))return;return $_(t,m,c,r,_,!1)?c:void(d=c)}for(var a=0;a<n.length;a++){var s=n[a];if(W_(t,m,s,i))for(var c=void 0,u=s.typeParameters?hu(s.typeParameters,s,e.isInJavaScriptFile(t)?4:0):void 0;;){if((c=s).typeParameters){var l=void 0;if(o){var f=Y_(c,o,!1);if(!f){p=s;break}l=f}else l=Q_(t,c,m,_,u);c=io(c,l,e.isInJavaScriptFile(c.declaration))}if(!$_(t,m,c,r,_,!1)){d=c;break}if(0===y)return n[a]=c,c;--y>0?_[_.indexOf(!0)]=!1:_=void 0}}}}function od(e,t,n,r){return Kr(e)||Kr(t)&&32768&e.flags||!n&&!r&&!(147456&t.flags)&&gc(e,Ae)}function sd(t,n,r){cn(t,0===r?e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures:e.Diagnostics.Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature,Er(n)),cd(n,r)}function cd(t,n){if(t.symbol){var r=yn(t.symbol).originatingImport;if(r&&!e.isImportCall(r)){var i=La(ci(yn(t.symbol).target),n);if(!i||!i.length)return;cn(r,e.Diagnostics.A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime)}}}function ud(t){switch(t.parent.kind){case 233:case 203:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 148:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 151:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 153:case 155:case 156:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression}}function ld(t,n,r){return e.Debug.assert(!(131072&n.flags)),_d(t,n,r)}function _d(e,t,n){if(131072&t.flags){for(var r=void 0,i=0,a=t.types;i<a.length;i++)r=r||_d(e,a[i],n);return r}var o=t&&La(t,0);if(o&&o.length>0)return ad(e,o,n)}function dd(t,n){var r=hn(t),i=r.resolvedSignature;if(i&&i!==st&&!n)return i;r.resolvedSignature=st;var a=function(t,n){switch(t.kind){case 185:return function(t,n){if(97===t.expression.kind){var r=wl(t.expression);if(r!==ee){var i=e.getClassExtendsHeritageClauseElement(e.getContainingClass(t));if(i)return ad(t,bi(r,i.typeArguments,i),n)}return U_(t)}var a=N_(t.expression,e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null,e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined,e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined);if(a===pe)return ct;var o=Pa(a);if(o===ee)return V_(t);var s=La(o,0),c=La(o,1);return od(a,o,s.length,c.length)?(a!==ee&&t.typeArguments&&cn(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),U_(t)):s.length?ad(t,s,n):(c.length?cn(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Er(a)):sd(t,o,0),V_(t))}(t,n);case 186:return function(t,n){if(t.arguments&&T<1){var r=q_(t.arguments);r>=0&&cn(t.arguments[r],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var i=N_(t.expression);if(i===pe)return ct;if((i=Pa(i))===ee)return V_(t);if(Kr(i))return t.typeArguments&&cn(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),U_(t);var a=La(i,1);if(a.length){if(!function(t,n){if(!n||!n.declaration)return!0;var r=n.declaration,i=e.getSelectedModifierFlags(r,24);if(!i)return!0;var a=e.getClassLikeDeclarationOfSymbol(r.parent.symbol),o=wi(r.parent.symbol);if(!Kf(t,a)){var s=e.getContainingClass(t);if(s)for(var c=ki(Wf(s));c.length;){var u=c[0];if(16&i&&u.symbol===r.parent.symbol)return!0;c=ki(u)}return 8&i&&cn(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Er(o)),16&i&&cn(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Er(o)),!1}return!0}(t,a[0]))return V_(t);var o=i.symbol&&e.getClassLikeDeclarationOfSymbol(i.symbol);return o&&e.hasModifier(o,128)?(cn(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),V_(t)):ad(t,a,n)}var s=La(i,0);if(s.length){var c=ad(t,s,n);return pd(c.declaration)||no(c)===_e||cn(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),Za(c)===_e&&cn(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void),c}return sd(t,i,1),V_(t)}(t,n);case 187:return function(e,t){var n=ap(e.tag),r=Pa(n);if(r===ee)return V_(e);var i=La(r,0),a=La(r,1);return od(n,r,i.length,a.length)?U_(e):i.length?ad(e,i,t):(sd(e,r,0),V_(e))}(t,n);case 149:return function(t,n){var r=ap(t.expression),i=Pa(r);if(i===ee)return V_(t);var a,o,s=La(i,0),c=La(i,1);if(od(r,i,s.length,c.length))return U_(t);if(a=t,(o=s).length&&e.every(o,function(e){return 0===e.minArgumentCount&&!e.hasRestParameter&&e.parameters.length<td(a,void 0,e)})){var u=e.getTextOfNode(t.expression,!1);return cn(t,e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,u),V_(t)}var l=ud(t);if(!s.length){var _=void 0;return _=e.chainDiagnosticMessages(_,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,Er(i)),_=e.chainDiagnosticMessages(_,l),Lt.add(e.createDiagnosticForNodeFromMessageChain(t,_)),cd(i,0),V_(t)}return ad(t,s,n,l)}(t,n);case 255:case 254:return _d(t,ap(t.tagName),n)||ot}e.Debug.assertNever(t,"Branch in 'resolveSignature' should be unreachable.")}(t,n);return r.resolvedSignature=pt===ft?a:i,a}function pd(t){if(t&&e.isInJavaScriptFile(t)){if(e.getJSDocClassTag(t))return!0;var n=e.isFunctionDeclaration(t)||e.isFunctionExpression(t)?ir(t):e.isVariableDeclaration(t)&&t.initializer&&e.isFunctionExpression(t.initializer)?ir(t.initializer):void 0;return n&&void 0!==n.members}return!1}function fd(t){var n=t.valueDeclaration,r=n&&n.parent&&(e.isBinaryExpression(n.parent)&&ir(n.parent.left)||e.isVariableDeclaration(n.parent)&&ir(n.parent));if(r){var i=e.forEach(r.declarations,md);if(i)return ap(i)}}function md(t){if(!t.parent)return!1;for(var n=t.parent;n&&183===n.kind;)n=n.parent;return n&&e.isBinaryExpression(n)&&e.isPropertyAccessExpression(n.left)&&"prototype"===n.left.name.escapedText&&58===n.operatorToken.kind&&e.isObjectLiteralExpression(n.right)&&n.right}function gd(t){var n=yn(t);return n.inferredClassType||(n.inferredClassType=mr(t,Hi(t)||S,e.emptyArray,e.emptyArray,void 0,void 0)),n.inferredClassType}function yd(t){return t.symbol&&16&e.getObjectFlags(t)&&yn(t.symbol).inferredClassType===t}function hd(t){if(!e.isCallExpression(t))return!1;var n=t.expression;if(e.isPropertyAccessExpression(n)&&"for"===n.name.escapedText&&(n=n.expression),!e.isIdentifier(n)||"Symbol"!==n.escapedText)return!1;var r=zo(!1);return!!r&&r===kn(n,"Symbol",67216319,void 0,void 0,!1)}function vd(t,n,r){if(A&&t&&t!==ee){var i=t;if(!i.syntheticType)if(Fn(e.find(r.declarations,e.isSourceFile),r,!1)){var a=e.createSymbolTable(),o=un(2097152,"default");o.target=Rn(n),a.set("default",o);var s=un(2048,"__type"),c=mr(s,a,e.emptyArray,e.emptyArray,void 0,void 0);s.type=c,i.syntheticType=a_(t)?Is(t,c,s,0,0):c}else i.syntheticType=t;return i.syntheticType}return t}function bd(t){if(!e.isRequireCall(t,!0))return!1;if(!e.isIdentifier(t.expression))return e.Debug.fail();var n=kn(t.expression,t.expression.escapedText,67216319,void 0,void 0,!0);if(!n)return!0;if(2097152&n.flags)return!1;var r=16&n.flags?232:3&n.flags?230:0;if(0!==r){var i=e.getDeclarationOfKind(n,r);return!!i&&!!(2097152&i.flags)}return!1}function xd(t,n,r,a){var o=uu(Xc(ap(r,a)));If(n);var s=Us(n);return i&&s!==ee&&(hc(s,pu(o))||xc(o,s,t,e.Diagnostics.Type_0_cannot_be_converted_to_type_1)),s}function kd(t){var n=ci(t);if(P){var r=t.valueDeclaration;if(r&&e.hasInitializer(r))return au(n)}return n}function Sd(e,t){return e.hasRestParameter?t<e.parameters.length-1?kd(e.parameters[t]):ro(e):t<e.parameters.length?kd(e.parameters[t]):Y}function Dd(e){return e.parameters.length>0?Sd(e,0):de}function Cd(t,n){var r=yn(t);if(!r.type){r.type=n;var i=t.valueDeclaration;71!==i.name.kind&&(r.type===ge&&(r.type=$r(i.name)),function t(n){for(var r=0,i=n.elements;r<i.length;r++){var a=i[r];e.isOmittedExpression(a)||(71===a.name.kind?yn(ir(a)).type=Wr(a):t(a.name))}}(i.name))}}function Td(e){var t=Jo(!0);return t!==ve?vo(t,[e=Tp(e)||ge]):ge}function Ed(t,n){var r=Td(n);return r===ge?(cn(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),ee):(Ko(!0)||cn(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),r)}function Nd(t,n){if(!t.body)return ee;var r,i=e.getFunctionFlags(t);if(211!==t.body.kind)r=Yd(t.body,n),2&i&&(r=Cp(r,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 a=function(t,n){var r=e.getFunctionFlags(t),i=[],a=Pd(t),o=!1;if(e.forEachReturnStatement(t.body,function(s){var c=s.expression;if(c){var u=Yd(c,n);2&r&&(u=Cp(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)),16384&u.flags&&(o=!0),e.pushIfUnique(i,u)}else a=!0}),0!==i.length||a||!o&&!function(e){switch(e.kind){case 190:case 191:return!0;case 153:return 182===e.parent.kind;default:return!1}}(t))return P&&i.length&&a&&e.pushIfUnique(i,te),i}(t,n);if(1&i){if(!(a=e.concatenate(function(t,n){var r=[],i=0!=(2&e.getFunctionFlags(t));return e.forEachYieldExpression(t.body,function(t){e.pushIfUnique(r,Ad(t,i,n))}),r}(t,n),a))||0===a.length){var o=2&i?Qo(Y):$o(Y);return I&&cn(t.asteriskToken,e.Diagnostics.Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type,Er(o)),o}}else{if(!a)return 2&i?Ed(t,de):de;if(0===a.length)return 2&i?Ed(t,_e):_e}r=ss(a,2)}var s=$l(t);if(s||gu(t,r),Hc(r)){var c=s?s===Qa(t)?r:no(s):void 0;if(c)switch(3&i){case 3:c=uf(c,!0);break;case 1:c=uf(c,!1);break;case 2:c=Dp(c)}r=$c(r,c)}var u=pu(r);switch(3&i){case 3:return Qo(u);case 1:return $o(u);case 2:return Td(u);default:return u}}function Ad(t,n,r){var i=t.expression||t,a=t.expression?Yd(t.expression,r):ne,o=t.asteriskToken?af(a,i,!1,n):a;return n?Tp(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):o}function Pd(t){return!!(128&t.flags)&&!e.some(t.body.statements,function(t){return 225===t.kind&&function(t){if(!t.possiblyExhaustive)return!1;var n=ip(t.expression);if(!Gc(n))return!1;var r,i,a=el(t);return!!a.length&&(r=il(n,zs),i=a,131072&r.flags?!e.forEach(r.types,function(t){return!e.contains(i,t)}):e.contains(i,r))}(t)})}function wd(t,n){if(i&&(!n||!zd(n,2049))&&152!==t.kind&&!e.nodeIsMissing(t.body)&&211===t.body.kind&&Pd(t)){var r=256&t.flags;if(n&&16384&n.flags)cn(e.getEffectiveReturnTypeNode(t),e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(n&&!r)cn(e.getEffectiveReturnTypeNode(t),e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(n&&P&&!gc(te,n))cn(e.getEffectiveReturnTypeNode(t),e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(C.noImplicitReturns){if(!n){if(!r)return;if(_f(t,no(Qa(t))))return}cn(e.getEffectiveReturnTypeNode(t)||t,e.Diagnostics.Not_all_code_paths_return_a_value)}}}function Fd(t,n){if(e.Debug.assert(153!==t.kind||e.isObjectLiteralMethod(t)),1===n&&cc(t))return Mf(t),be;Pm(t)||190!==t.kind||Lm(t);var r=hn(t),a=ci(t.symbol);if(!(1024&r.flags)){var o=Zl(t);if(!(1024&r.flags)){if(r.flags|=1024,o){var s=La(a,0)[0];if(cc(t)){var c=Hl(t);2===n&&function(t,n,r){for(var i=t.parameters.length-(t.hasRestParameter?1:0),a=0;a<i;a++){var o=t.parameters[a].valueDeclaration;if(o.type){var s=e.getEffectiveTypeAnnotationNode(o);s&&Tu(r.inferences,Us(s),Sd(n,a))}}}(s,o,c),function(t,n){t.typeParameters=n.typeParameters,n.thisParameter&&(!(a=t.thisParameter)||a.valueDeclaration&&!a.valueDeclaration.type)&&(a||(t.thisParameter=cu(n.thisParameter,void 0)),Cd(t.thisParameter,ci(n.thisParameter)));for(var r=t.parameters.length-(t.hasRestParameter?1:0),i=0;i<r;i++){var a;e.getEffectiveTypeAnnotationNode((a=t.parameters[i]).valueDeclaration)||Cd(a,Sd(n,i))}t.hasRestParameter&&Kc(n,t.parameters.length-1)&&(!ln(a=e.lastOrUndefined(t.parameters))&&e.getEffectiveTypeAnnotationNode(a.valueDeclaration)||Cd(a,ci(e.lastOrUndefined(n.parameters))))}(s,c===D?o:Zs(o,c))}if(!e.getEffectiveReturnTypeNode(t)&&!s.resolvedReturnType){var u=Nd(t,n);s.resolvedReturnType||(s.resolvedReturnType=u)}}up(t),Mf(t)}}return i&&153!==t.kind&&(Gp(t,t.name),Vp(t,t.name),qp(t,t.name)),a}function Id(t){e.Debug.assert(153!==t.kind||e.isObjectLiteralMethod(t));var n=e.getFunctionFlags(t),r=e.getEffectiveReturnTypeNode(t),i=r&&(2==(3&n)?Ep(t):Us(r));if(0==(1&n)&&wd(t,i),t.body){if(r||no(Qa(t)),211===t.body.kind)If(t.body);else{var a=ap(t.body);i&&bc(2==(3&n)?Cp(a,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):a,i,t.body)}Mp(t)}}function Od(e,t,n){return!!jd(t,84)||(cn(e,n),!1)}function Md(t){return!!(8&e.getCheckFlags(t)||4&t.flags&&64&e.getDeclarationModifierFlagsFromSymbol(t)||3&t.flags&&2&D_(t)||98304&t.flags&&!(65536&t.flags)||8&t.flags)}function Ld(t,n){if(Md(n)){if(4&n.flags&&(183===t.kind||184===t.kind)&&99===t.expression.kind){var r=e.getContainingFunction(t);return!r||154!==r.kind||!(r.parent===n.valueDeclaration.parent||r===n.valueDeclaration.parent)}return!0}return!1}function Rd(t){if(183===t.kind||184===t.kind){var n=e.skipParentheses(t.expression);if(71===n.kind){var r=hn(n).resolvedSymbol;if(2097152&r.flags){var i=Pn(r);return i&&244===i.kind}}}return!1}function Bd(t,n){var r=e.skipOuterExpressions(t,3);return 71===r.kind||183===r.kind||184===r.kind||(cn(t,n),!1)}function zd(e,t){if(e.flags&t||536870912&t&&pa(e))return!0;if(393216&e.flags)for(var n=0,r=e.types;n<r.length;n++)if(zd(r[n],t))return!0;return!1}function jd(e,t,n){return!!(e.flags&t)||!(n&&14337&e.flags)&&(84&t&&gc(e,oe)||524322&t&&gc(e,ae)||136&t&&gc(e,ue)||2048&t&&gc(e,_e)||16384&t&&gc(e,de)||8192&t&&gc(e,re)||4096&t&&gc(e,te)||512&t&&gc(e,le)||134217728&t&&gc(e,me))}function Jd(t,n,r){return 131072&t.flags?e.every(t.types,function(e){return Jd(e,n,r)}):jd(t,n,r)}function Kd(t){return 16&e.getObjectFlags(t)&&t.symbol&&Ud(t.symbol)}function Ud(e){return 0!=(128&e.flags)}function Vd(t,n,r){if(268===n.kind||269===n.kind){var i=n.name;if(146===i.kind&&r_(i),Vr(i))return;var a=e.getTextOfPropertyName(i);if(c=Kr(t)?t:Jr(t,a)||n_(a)&&ja(t,1)||ja(t,0))return Wd(269===n.kind?n:n.initializer,c);cn(i,e.Diagnostics.Type_0_has_no_property_1_and_no_string_index_signature,Er(t),e.declarationNameToString(i))}else{if(270===n.kind){T<6&&Dm(n,4);var o=[];if(r)for(var s=0;s<r.length-1;s++)o.push(r[s].name);var c=qr(t,o,t.symbol);return Wd(n.expression,c)}cn(n,e.Diagnostics.Property_assignment_expected)}}function qd(t,n,r,i,a){var o=t.elements,s=o[r];if(204!==s.kind)if(202!==s.kind){var c=""+r,u=Kr(n)?n:Wc(n)?Jr(n,c):i;if(u)return Wd(s,u,a);ap(s),Zc(n)?cn(s,e.Diagnostics.Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2,Er(n),xo(n),o.length):cn(s,e.Diagnostics.Type_0_has_no_property_1,Er(n),c)}else if(r<o.length-1)cn(s,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{var l=s.expression;if(198!==l.kind||58!==l.operatorToken.kind)return Wd(l,Zo(i),a);cn(l.operatorToken,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}function Wd(t,n,r){var i;if(269===t.kind){var a=t;a.objectAssignmentInitializer&&(!P||4096&tu(ap(a.objectAssignmentInitializer))||(n=Uu(n,131072)),Xd(a.name,a.equalsToken,a.objectAssignmentInitializer,r)),i=t.name}else i=t;return 198===i.kind&&58===i.operatorToken.kind&&(Gd(i,r),i=i.left),182===i.kind?function(e,t){var n=i.properties;if(P&&0===n.length)return A_(t,i);for(var r=0,a=n;r<a.length;r++)Vd(t,a[r],n);return t}(0,n):181===i.kind?function(e,t,n){T<2&&C.downlevelIteration&&Dm(e,512);for(var r=af(t,e,!1,!1)||ee,i=e.elements,a=0;a<i.length;a++)qd(e,t,a,r,n);return t}(i,n,r):function(t,n,r){var i=ap(t,r);return Bd(t,270===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)&&bc(n,i,t,void 0),n}(i,n,r)}function Hd(e,t){return 0!=(12288&t.flags)||hc(e,t)}function Gd(t,n){return e.isInJavaScriptFile(t)&&e.getAssignedJavascriptInitializer(t)?ap(t.right,n):Xd(t.left,t.operatorToken,t.right,n,t)}function Xd(t,n,r,a,o){var s=n.kind;if(58===s&&(182===t.kind||181===t.kind))return Wd(t,ap(r,a),a);var c,u,l=ap(t,a),_=ap(r,a);switch(s){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(l===pe||_===pe)return pe;l=A_(l,t),_=A_(_,r);var d=void 0;if(136&l.flags&&136&_.flags&&void 0!==(d=function(e){switch(n.kind){case 49:case 69:return 54;case 50:case 70:return 35;case 48:case 68:return 53;default:return}}()))cn(o||n,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(n.kind),e.tokenToString(d));else{var p=Od(t,l,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type),f=Od(r,_,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type);p&&f&&v(oe)}return oe;case 37:case 59:if(l===pe||_===pe)return pe;jd(l,524322)||jd(_,524322)||(l=A_(l,t),_=A_(_,r));var m=void 0;return jd(l,84,!0)&&jd(_,84,!0)?m=oe:jd(l,524322,!0)||jd(_,524322,!0)?m=ae:(Kr(l)||Kr(_))&&(m=l===ee||_===ee?ee:Y),m&&!h(s)?m:m?(59===s&&v(m),m):(b(),Y);case 27:case 29:case 30:case 31:return h(s)&&(l=Xc(A_(l,t)),_=Xc(A_(_,r)),hc(l,_)||hc(_,l)||b()),ue;case 32:case 33:case 34:case 35:var g=Gc(l),y=Gc(_);return g&&y||(l=g?Xc(l):l,_=y?Xc(_):_),Hd(l,_)||Hd(_,l)||b(),ue;case 93:return function(t,n,r,i){return r===pe||i===pe?pe:(!Kr(r)&&Jd(r,16382)&&cn(t,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Kr(i)||Xf(i)||mc(i,Ae)||cn(n,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),ue)}(t,r,l,_);case 92:return function(t,n,r,i){return r===pe||i===pe?pe:(r=A_(r,t),i=A_(i,n),hc(r,ae)||jd(r,1620)||cn(t,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol),jd(i,141590528)||cn(n,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),ue)}(t,r,l,_);case 53:return 1048576&Ku(l)?ss([(u=P?l:Xc(_),il(u,ru)),_]):l;case 54:return 2097152&Ku(l)?ss([nu(l),_],2):l;case 58:return v(_),uu(_);case 26:return!C.allowUnreachableCode&&function t(n){switch((n=e.skipParentheses(n)).kind){case 71:case 9:case 12:case 187:case 200:case 13:case 8:case 101:case 86:case 95:case 140:case 190:case 203:case 191:case 181:case 182:case 193:case 207:case 254:case 253:return!0;case 199:return t(n.whenTrue)&&t(n.whenFalse);case 198:return!e.isAssignmentOperator(n.operatorToken.kind)&&t(n.left)&&t(n.right);case 196:case 197:switch(n.operator){case 51:case 37:case 38:case 52:return!0}return!1;case 194:case 188:case 206:default:return!1}}(t)&&(71!==(c=r).kind||"eval"!==c.escapedText)&&cn(t,e.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects),_}function h(n){var i=zd(l,1536)?t:zd(_,1536)?r:void 0;return!i||(cn(i,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(n)),!1)}function v(n){i&&e.isAssignmentOperator(s)&&Bd(t,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access)&&bc(n,l,t,void 0)}function b(){cn(o||n,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,e.tokenToString(n.kind),Er(l),Er(_))}}function Qd(e,t,n){var r=function(e){return 261===e.kind?e.parent.parent:e}(e),i=r.contextualType,a=r.contextualMapper;r.contextualType=t,r.contextualMapper=n;var o=ap(e,n===D?1:n?2:3);return r.contextualType=i,r.contextualMapper=a,o}function Yd(e,t){var n=hn(e);if(!n.resolvedType){if(t)return ap(e,t);var r=pt;pt=ft,n.resolvedType=ap(e,t),pt=r}return n.resolvedType}function $d(t){return 188===(t=e.skipParentheses(t)).kind||206===t.kind}function Zd(t){var n=e.isInJavaScriptFile(t)&&e.getDeclaredJavascriptInitializer(t)||t.initializer,r=ip(n,!0);return 2&e.getCombinedNodeFlags(t)||64&e.getCombinedModifierFlags(t)&&!e.isParameterPropertyDeclaration(t)||$d(n)?r:Qc(r)}function ep(e,t,n){2===arguments.length&&(n=Wl(e));var r=ap(e,t);return $d(e)?r:$c(r,n)}function tp(e,t){return 146===e.name.kind&&r_(e.name),ep(e.initializer,t)}function np(e,t){return Jm(e),146===e.name.kind&&r_(e.name),rp(e,Fd(e,t),t)}function rp(e,t,n){if(2===n){var r=H_(t);if(r&&r.typeParameters){var i=ql(e);if(i){var a=H_(ou(i));if(a&&!a.typeParameters)return uo(G_(r,a,Hl(e)))}}}return t}function ip(t,n){if(185===t.kind&&97!==t.expression.kind&&!e.isRequireCall(t,!0)&&!hd(t)){var r=H_(N_(t.expression));if(r&&!r.typeParameters)return no(r)}return n?Yd(t):ap(t)}function ap(t,n){var r;return Kd(r=145===t.kind?w_(t):rp(t,function(t,n){switch(t.kind){case 71:return function(t){var n=Ou(t);if(n===X)return ee;if(n===j){var r=e.getContainingFunction(t);return T<2&&(191===r.kind?cn(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(r,256)&&cn(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)),hn(r).flags|=8192,ci(n)}t.parent&&e.isPropertyAccessExpression(t.parent)&&t.parent.expression===t||Sl(n,t);var i=or(n),a=i.valueDeclaration;if(32&i.flags)if(233===a.kind&&e.nodeIsDecorated(a))for(r=e.getContainingClass(t);void 0!==r;){if(r===a&&r.name!==t){hn(a).flags|=8388608,hn(t).flags|=16777216;break}r=e.getContainingClass(r)}else if(203===a.kind)for(r=e.getThisContainer(t,!1);void 0!==r;){if(r.parent===a){151===r.kind&&e.hasModifier(r,32)&&(hn(a).flags|=8388608,hn(t).flags|=16777216);break}r=e.getThisContainer(r,!1)}Gp(t,t),Vp(t,t),qp(t,t),function(t,n){if(!(T>=2||0==(34&n.flags)||267===n.valueDeclaration.parent.kind)){for(var r=e.getEnclosingBlockScopeContainer(n.valueDeclaration),i=function(t,n){return!!e.findAncestor(t,function(t){return t===n?"quit":e.isFunctionLike(t)})}(t.parent,r),a=r,o=!1;a&&!e.nodeStartsNewLexicalEnvironment(a);){if(e.isIterationStatement(a,!1)){o=!0;break}a=a.parent}o&&(i&&(hn(a).flags|=65536),218===r.kind&&e.getAncestor(n.valueDeclaration,231).parent===r&&function(t,n){for(var r=t;189===r.parent.kind;)r=r.parent;var i=!1;if(e.isAssignmentTarget(r))i=!0;else if(196===r.parent.kind||197===r.parent.kind){var a=r.parent;i=43===a.operator||44===a.operator}return!!i&&!!e.findAncestor(r,function(e){return e===n?"quit":e===n.statement})}(t,r)&&(hn(n.valueDeclaration).flags|=2097152),hn(n.valueDeclaration).flags|=262144),i&&(hn(n.valueDeclaration).flags|=131072)}}(t,n);var o=kl(ci(i),t),s=e.getAssignmentTargetKind(t);if(s){if(!(3&i.flags))return cn(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,Cr(n)),ee;if(Md(i))return cn(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property,Cr(n)),ee}var c=2097152&i.flags;if(3&i.flags){if(1===s)return o}else{if(!c)return o;a=e.find(n.declarations,d)}if(!a)return o;for(var u=148===e.getRootDeclaration(a).kind,l=gl(a),_=gl(t),p=_!==l,f=t.parent&&t.parent.parent&&e.isSpreadAssignment(t.parent)&&Gu(t.parent.parent);_!==l&&(190===_.kind||191===_.kind||e.isObjectLiteralOrClassExpressionMethod(_))&&(vl(i)||u&&!yl(i));)_=gl(_);var m=u||c||p||f||o!==$&&o!==Be&&(!P||0!=(1&o.flags)||Mu(t)||250===t.parent.kind)||207===t.parent.kind||230===a.kind&&a.exclamationToken||2097152&a.flags,g=ml(t,o,m?u?function(e,t){return P&&148===t.kind&&t.initializer&&4096&tu(e)&&!(4096&tu(ap(t.initializer)))?Uu(e,131072):e}(o,a):o:o===$||o===Be?te:au(o),_,!m);if(o===$||o===Be){if(g===$||g===Be)return I&&(cn(e.getNameOfDeclaration(a),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Cr(n),Er(g)),cn(t,e.Diagnostics.Variable_0_implicitly_has_an_1_type,Cr(n),Er(g))),$p(g)}else if(!m&&!(4096&tu(o))&&4096&tu(g))return cn(t,e.Diagnostics.Variable_0_is_used_before_being_assigned,Cr(n)),o;return s?Xc(g):g}(t);case 99:return function(t){var n=e.getThisContainer(t,!0),r=!1;switch(154===n.kind&&Nl(t,n,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),191===n.kind&&(n=e.getThisContainer(n,!1),r=T<2),n.kind){case 237:cn(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 236:cn(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 154:Pl(t,n)&&cn(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 151:case 150:e.hasModifier(n,32)&&cn(t,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 146:cn(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}r&&Dl(t,n);var i=Al(t,n);return!i&&O&&cn(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation),i||Y}(t);case 97:return wl(t);case 95:return ie;case 13:case 9:return Bs(js(t.text));case 8:return Xm(t),Bs(js(+t.text));case 101:return se;case 86:return ce;case 200:return function(t){return e.forEach(t.templateSpans,function(e){ap(e.expression)}),ae}(t);case 12:return Me;case 181:return function(t,n){for(var r=t.elements,i=!1,a=[],o=e.isAssignmentTarget(t),s=ql(t),c=0;c<r.length;c++){var u=r[c];if(o&&202===u.kind){var l=ap(u.expression,n),_=ja(l,1)||of(l,void 0,!1,!1,!1);_&&a.push(_)}else{var d=ep(u,n,Ul(s,c));a.push(d)}i=i||202===u.kind}if(!i){if(o&&a.length)return(d=bo(es(a))).pattern=t,d;if(s&&function(t){return!!(131072&t.flags?e.forEach(t.types,Wc):Wc(t))}(s)){var p=s.pattern;if(p&&(179===p.kind||181===p.kind))for(var f=p.elements,m=a.length;m<f.length;m++){var g=f[m];e_(g)?a.push(s.typeArguments[m]):(204!==g.kind&&cn(g,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),a.push(P?fe:ne))}if(a.length)return es(a)}}return Zo(a.length?ss(a,2):P?fe:ne)}(t,n);case 182:return function(t,n){var r,i=e.isAssignmentTarget(t);!function(t,n){var r;!function(e){e[e.Property=1]="Property",e[e.GetAccessor=2]="GetAccessor",e[e.SetAccessor=4]="SetAccessor",e[e.GetOrSetAccessor=6]="GetOrSetAccessor"}(r||(r={}));for(var i=e.createUnderscoreEscapedMap(),a=0,o=t.properties;a<o.length;a++){var s=o[a];if(270!==s.kind){var c=s.name;if(146===c.kind&&Mm(c),269===s.kind&&!n&&s.objectAssignmentInitializer)return Hm(s.equalsToken,e.Diagnostics.can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment);if(s.modifiers)for(var u=0,l=s.modifiers;u<l.length;u++){var _=l[u];120===_.kind&&153===s.kind||Hm(_,e.Diagnostics._0_modifier_cannot_be_used_here,e.getTextOfNode(_))}var d=void 0;switch(s.kind){case 268:case 269:Rm(s.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional),8===c.kind&&Xm(c);case 153:d=1;break;case 155:d=2;break;case 156:d=4;break;default:e.Debug.assertNever(s,"Unexpected syntax kind:"+s.kind)}var p=e.getPropertyNameForPropertyNameNode(c);if(void 0!==p){var f=i.get(p);if(f)if(1===d&&1===f)Hm(c,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(c));else{if(!(6&d&&6&f))return Hm(c,e.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(6===f||d===f)return Hm(c,e.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);i.set(p,d|f)}else i.set(p,d)}}}}(t,i);var a=[],o=ge,s=8388608,c=ql(t),u=c&&c.pattern&&(178===c.pattern.kind||182===c.pattern.kind),l=e.isInJavaScriptFile(t),_=!c&&l,d=0,p=!1,f=!1,m=!1;if(l&&0===t.properties.length){var g=ir(t);if(g.exports)return r=g.exports,g.exports.forEach(function(e){return a.push(rr(e))}),I()}r=e.createSymbolTable();for(var y=0,h=0;h<t.properties.length;h++){var v=t.properties[h],b=ir(v),x=void 0;if(268===v.kind||269===v.kind||e.isObjectLiteralMethod(v)){var k=void 0;l&&(k=Hr(v));var S=void 0;if(268===v.kind){if(146===v.name.kind){var D=r_(v.name);224&D.flags&&(x=e.escapeLeadingUnderscores(""+D.value))}S=tp(v,n)}else 153===v.kind?S=np(v,n):(e.Debug.assert(269===v.kind),S=ep(v.name,n));k&&(bc(S,k,v),S=k),d|=S.flags;var E=Ki(v)?r_(v.name):void 0,N=E&&ji(E),A=N?un(4|b.flags,Vi(E),1024):un(4|b.flags,x||b.escapedName);if(N&&(A.nameType=E),i)(268===v.kind&&e_(v.initializer)||269===v.kind&&v.objectAssignmentInitializer)&&(A.flags|=16777216),!x&&e.hasDynamicName(v)&&(p=!0);else if(u&&!(512&e.getObjectFlags(c))){var P=Oa(c,b.escapedName);P?A.flags|=16777216&P.flags:C.suppressExcessPropertyErrors||za(c,0)||cn(v.name,e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Cr(b),Er(c))}A.declarations=b.declarations,A.parent=b.parent,b.valueDeclaration&&(A.valueDeclaration=b.valueDeclaration),A.type=S,A.target=b,b=A}else{if(270===v.kind){if(T<2&&Dm(v,2),a.length>0&&(o=Is(o,I(),t.symbol,s,0),a=[],r=e.createSymbolTable(),f=!1,m=!1,d=0),!a_(S=ap(v.expression)))return cn(v,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),ee;o=Is(o,S,t.symbol,s,0),y=h+1;continue}e.Debug.assert(155===v.kind||156===v.kind),Mf(v)}!x&&Ui(v)?t_(v.name)?m=!0:f=!0:r.set(b.escapedName,b),a.push(b)}if(u)for(var w=0,F=ha(c);w<F.length;w++)r.get((A=F[w]).escapedName)||o&&Oa(o,A.escapedName)||(16777216&A.flags||cn(A.valueDeclaration||A.bindingElement,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),r.set(A.escapedName,A),a.push(A));return o!==ge?(a.length>0&&(o=Is(o,I(),t.symbol,s,0)),o):I();function I(){var n=_?lt:f?i_(t.properties,y,a,0):void 0,o=m&&!_?i_(t.properties,y,a,1):void 0,c=mr(t.symbol,r,e.emptyArray,e.emptyArray,n,o);return c.flags|=33554432|(C.suppressExcessPropertyErrors?0:8388608)|117440512&d,c.objectFlags|=128,p&&(c.objectFlags|=512),i&&(c.pattern=t),12288&c.flags||(s|=117440512&c.flags),c}}(t,n);case 183:return P_(t);case 184:return function(t){var n=N_(t.expression),r=t.argumentExpression;if(!r){var i,a=e.getSourceFileOfNode(t);return 186===t.parent.kind&&t.parent.expression===t?Wm(a,i=e.skipTrivia(a.text,t.expression.end),t.end-i,e.Diagnostics.new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead):Wm(a,i=t.end-"]".length,t.end-i,e.Diagnostics.Expression_expected),ee}var o=function(t){var n,r=e.skipParentheses(t);if(71===r.kind){var i=Ou(r);if(3&i.flags)for(var a=t,o=t.parent;o;){if(219===o.kind&&a===o.statement&&j_(o)===i&&ja(n=ip(o.expression),1)&&!ja(n,0))return!0;a=o,o=o.parent}}return!1}(r)?oe:ap(r);return n===ee||n===pe?n:Kd(n)&&9!==r.kind?(cn(r,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),ee):hp(ks(n,o,t),t)}(t);case 185:if(91===t.expression.kind)return function(t){if(Fm(t.arguments)||function(t){if(E===e.ModuleKind.ES2015)return Hm(t,e.Diagnostics.Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules);if(t.typeArguments)return Hm(t,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var n=t.arguments;if(1!==n.length)return Hm(t,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument);e.isSpreadElement(n[0])&&Hm(n[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element)}(t),0===t.arguments.length)return Ed(t,Y);for(var n=t.arguments[0],r=Yd(n),i=1;i<t.arguments.length;++i)Yd(t.arguments[i]);(4096&r.flags||8192&r.flags||!gc(r,ae))&&cn(n,e.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,Er(r));var a=Vn(t,n);if(a){var o=Xn(a,n,!0);if(o)return Ed(t,vd(ci(o),o,a))}return Ed(t,Y)}(t);case 186:return function(t){wm(t,t.typeArguments)||Fm(t.arguments);var n=dd(t);if(97===t.expression.kind)return _e;if(186===t.kind){var r=n.declaration;if(r&&154!==r.kind&&158!==r.kind&&163!==r.kind&&!e.isJSDocConstructSignature(r)){var i=ap(t.expression).symbol;return i||71!==t.expression.kind||(i=Ou(t.expression)),i&&function(t){var n,r=e.getDeclaredJavascriptInitializer(t.valueDeclaration);r&&(t=ir(r)),pd(t.valueDeclaration)&&(n=gd(t));var i=fd(t),a=ci(t);return a.symbol&&!yd(a)&&pd(a.symbol.valueDeclaration)&&(n=gd(a.symbol)),i&&n?ds([n,i]):i||n}(i)||(I&&cn(t,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Y)}}if(e.isInJavaScriptFile(t)&&bd(t))return function(e){var t=Vn(e,e);if(t){var n=Gn(t);if(n)return ci(n)}return Y}(t.arguments[0]);var a=no(n);return 1536&a.flags&&hd(t)?Js(e.walkUpParenthesizedExpressions(t.parent)):a}(t);case 187:return function(e){return T<2&&Dm(e,65536),no(dd(e))}(t);case 189:return function(t,n){var r=e.isInJavaScriptFile(t)?e.getJSDocTypeTag(t):void 0;return r?xd(r,r.typeExpression.type,t.expression,n):ap(t.expression,n)}(t,n);case 203:return function(e){return yf(e),Mf(e),ci(ir(e))}(t);case 190:case 191:return Fd(t,n);case 193:return function(e){return ap(e.expression),Yt}(t);case 188:case 206:return function(e){return xd(e,e.type,e.expression)}(t);case 207:return function(e){return ou(ap(e.expression))}(t);case 208:return function(t){!function(t){94===t.keywordToken&&"target"!==t.name.escapedText&&Hm(t.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,t.name.escapedText,e.tokenToString(t.keywordToken),"target")}(t);var n=e.getNewTargetContainer(t);return n?ci(ir(154===n.kind?n.parent:n)):(cn(t,e.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),ee)}(t);case 192:return function(t){ap(t.expression);var n=e.skipParentheses(t.expression);if(183!==n.kind&&184!==n.kind)return cn(n,e.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),ue;var r=or(hn(n).resolvedSymbol);return r&&Md(r)&&cn(n,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),ue}(t);case 194:return function(e){return ap(e.expression),ne}(t);case 195:return function(t){return i&&(16384&t.flags||qm(t,e.Diagnostics.await_expression_is_only_allowed_within_an_async_function),Ll(t)&&cn(t,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)),Cp(ap(t.expression),t,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(t);case 196:return function(t){var n=ap(t.operand);if(n===pe)return pe;if(8===t.operand.kind){if(38===t.operator)return Bs(js(-t.operand.text));if(37===t.operator)return Bs(js(+t.operand.text))}switch(t.operator){case 37:case 38:case 52:return A_(n,t.operand),zd(n,1536)&&cn(t.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(t.operator)),oe;case 51:var r=3145728&Ku(n);return 1048576===r?ce:2097152===r?se:ue;case 43:case 44:return Od(t.operand,A_(n,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type)&&Bd(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access),oe}return ee}(t);case 197:return function(t){var n=ap(t.operand);return n===pe?pe:(Od(t.operand,A_(n,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type)&&Bd(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access),oe)}(t);case 198:return Gd(t,n);case 199:return function(e,t){return ap(e.condition),ss([ap(e.whenTrue,t),ap(e.whenFalse,t)],2)}(t,n);case 202:return function(e,t){return T<2&&C.downlevelIteration&&Dm(e,1536),af(ap(e.expression,t),e.expression,!1,!1)}(t,n);case 204:return ne;case 201:return function(t){i&&(4096&t.flags&&!function(t){for(var n=t,r=t.parent;r;){if(e.isFunctionLike(r)&&n===r.body)return!1;if(e.isClassLike(n))return!0;n=r,r=r.parent}return!1}(t)||qm(t,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),Ll(t)&&cn(t,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer));var n=e.getContainingFunction(t),r=n?e.getFunctionFlags(n):0;if(!(1&r))return Y;t.asteriskToken&&(3==(3&r)&&T<6&&Dm(t,26624),1==(3&r)&&T<2&&C.downlevelIteration&&Dm(t,256));var a=0!=(2&r),o=Ad(t,a),s=e.getEffectiveReturnTypeNode(n);return s&&bc(o,uf(Us(s),a)||Y,t.expression||t,void 0),Y}(t);case 263:return function(t,n){if(t.expression){var r=ap(t.expression,n);return t.dotDotDotToken&&r!==Y&&!Vc(r)&&cn(t,e.Diagnostics.JSX_spread_child_must_be_an_array_type),r}return ee}(t,n);case 253:return function(e,t){return k_(e.openingElement,t),s_(e.closingElement.tagName)?d_(e.closingElement):ap(e.closingElement.tagName),b_(e)||Y}(t,n);case 254:return function(e,t){return k_(e,t),b_(e)||Y}(t,n);case 257:return function(t,n){return k_(t.openingFragment,n),2===C.jsx&&(C.jsxFactory||e.getSourceFileOfNode(t).pragmas.has("jsx"))&&cn(t,C.jsxFactory?e.Diagnostics.JSX_fragment_is_not_supported_when_using_jsxFactory:e.Diagnostics.JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma),b_(t)||Y}(t,n);case 261:return function(e,t){return u_(e.parent,t)}(t,n);case 255:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return ee}(t,n),n))&&(183===t.parent.kind&&t.parent.expression===t||184===t.parent.kind&&t.parent.expression===t||(71===t.kind||145===t.kind)&&Uf(t)||164===t.parent.kind&&t.parent.exprName===t||cn(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_or_type_query)),r}function op(t){t.expression&&qm(t.expression,e.Diagnostics.Type_expected),If(t.constraint),If(t.default);var n=Pi(ir(t));Ta(n)||cn(t.constraint,e.Diagnostics.Type_parameter_0_has_a_circular_constraint,Er(n)),function(e){return Na(e)!==ke}(n)||cn(t.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,Er(n));var r=ba(n),a=Aa(n);r&&a&&bc(a,Xi(r,a),t.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),i&&pf(t.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function sp(t){Tm(t),Zp(t);var n=e.getContainingFunction(t);e.hasModifier(t,92)&&(154===n.kind&&e.nodeIsPresent(n.body)||cn(t,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation)),t.questionToken&&e.isBindingPattern(t.name)&&n.body&&cn(t,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),t.name&&e.isIdentifier(t.name)&&("this"===t.name.escapedText||"new"===t.name.escapedText)&&(0!==n.parameters.indexOf(t)&&cn(t,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,t.name.escapedText),154!==n.kind&&158!==n.kind&&163!==n.kind||cn(t,e.Diagnostics.A_constructor_cannot_have_a_this_parameter)),!t.dotDotDotToken||e.isBindingPattern(t.name)||Vc(ci(t.symbol))||cn(t,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function cp(t,n,r){for(var i=0,a=t.elements;i<a.length;i++){var o=a[i];if(!e.isOmittedExpression(o)){var s=o.name;if(71===s.kind&&s.escapedText===r)return cn(n,e.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,r),!0;if((179===s.kind||178===s.kind)&&cp(s,n,r))return!0}}}function up(t){159===t.kind?function(t){Tm(t)||function(t){var n=t.parameters[0];if(1!==t.parameters.length)return Hm(n?n.name:t,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(n.dotDotDotToken)return Hm(n.dotDotDotToken,e.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(e.hasModifiers(n))return Hm(n.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(n.questionToken)return Hm(n.questionToken,e.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(n.initializer)return Hm(n.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!n.type)return Hm(n.name,e.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);if(137!==n.type.kind&&134!==n.type.kind){var r=Us(n.type);return 2&r.flags||4&r.flags?Hm(n.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead,e.getTextOfNode(n.name),Er(r),Er(Us(t.type))):Jd(r,32,!0)?Hm(n.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead):Hm(n.name,e.Diagnostics.An_index_signature_parameter_type_must_be_string_or_number)}t.type||Hm(t,e.Diagnostics.An_index_signature_must_have_a_type_annotation)}(t)}(t):162!==t.kind&&232!==t.kind&&163!==t.kind&&157!==t.kind&&154!==t.kind&&158!==t.kind||Pm(t);var n=e.getFunctionFlags(t);if(4&n||(3==(3&n)&&T<6&&Dm(t,6144),2==(3&n)&&T<4&&Dm(t,64),0!=(3&n)&&T<2&&Dm(t,128)),ff(t.typeParameters),e.forEach(t.parameters,sp),t.type&&If(t.type),i){!function(t){!e.hasRestParameter(t)||2097152&t.flags||e.nodeIsMissing(t.body)||e.forEach(t.parameters,function(t){t.name&&!e.isBindingPattern(t.name)&&t.name.escapedText===j.escapedName&&cn(t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}(t);var r=e.getEffectiveReturnTypeNode(t);if(I&&!r)switch(t.kind){case 158:cn(t,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 157:cn(t,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(r){var a=e.getFunctionFlags(t);if(1==(5&a)){var o=Us(r);if(o===_e)cn(r,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var s=uf(o,0!=(2&a))||Y;bc(2&a?Qo(s):$o(s),o,r)}}else 2==(3&a)&&Ep(t)}N&&!t.body&&jp(t)}}function lp(t){for(var n=e.createMap(),r=0,i=t.members;r<i.length;r++){var a=i[r];if(150===a.kind){var o=void 0;switch(a.name.kind){case 9:case 8:o=a.name.text;break;case 71:o=e.idText(a.name);break;default:continue}n.get(o)?(cn(e.getNameOfDeclaration(a.symbol.valueDeclaration),e.Diagnostics.Duplicate_identifier_0,o),cn(a.name,e.Diagnostics.Duplicate_identifier_0,o)):n.set(o,!0)}}}function _p(t){if(234===t.kind){var n=ir(t);if(n.declarations.length>0&&n.declarations[0]!==t)return}var r=lo(ir(t));if(r)for(var i=!1,a=!1,o=0,s=r.declarations;o<s.length;o++){var c=s[o];if(1===c.parameters.length&&c.parameters[0].type)switch(c.parameters[0].type.kind){case 137:a?cn(c,e.Diagnostics.Duplicate_string_index_signature):a=!0;break;case 134:i?cn(c,e.Diagnostics.Duplicate_number_index_signature):i=!0}}}function dp(t){if(i){if(Pm(t)||function(t){var n=t.kind;if(T<1)return Hm(t.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(2097152&t.flags)return Hm(t.name,e.Diagnostics.An_accessor_cannot_be_declared_in_an_ambient_context);if(void 0===t.body&&!e.hasModifier(t,128))return Wm(t,t.end-1,";".length,e.Diagnostics._0_expected,"{");if(t.body&&e.hasModifier(t,128))return Hm(t,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(t.typeParameters)return Hm(t.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!function(e){return zm(e)||e.parameters.length===(155===e.kind?0:1)}(t))return Hm(t.name,155===n?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(156===n){if(t.type)return Hm(t.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var r=t.parameters[0];if(r.dotDotDotToken)return Hm(r.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(r.questionToken)return Hm(r.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(r.initializer)return Hm(t.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}}(t)||Mm(t.name),Fp(t),up(t),155===t.kind&&!(2097152&t.flags)&&e.nodeIsPresent(t.body)&&128&t.flags&&(256&t.flags||cn(t.name,e.Diagnostics.A_get_accessor_must_return_a_value)),146===t.name.kind&&r_(t.name),!Ui(t)){var n=155===t.kind?156:155,r=e.getDeclarationOfKind(ir(t),n);if(r){var a=e.getModifierFlags(t),o=e.getModifierFlags(r);(28&a)!=(28&o)&&cn(t.name,e.Diagnostics.Getter_and_setter_accessors_do_not_agree_in_visibility),(128&a)!=(128&o)&&cn(t.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),pp(t,r,ni,e.Diagnostics.get_and_set_accessor_must_have_the_same_type),pp(t,r,ri,e.Diagnostics.get_and_set_accessor_must_have_the_same_this_type)}}var s=ii(ir(t));155===t.kind&&wd(t,s)}If(t.body),Mp(t)}function pp(e,t,n,r){var i=n(e),a=n(t);i&&a&&!dc(i,a)&&cn(e,r)}function fp(t,n){return Xa(e.map(t.typeArguments,Us),n,Ga(n),e.isInJavaScriptFile(t))}function mp(t,n){for(var r,i,a=!0,o=0;o<n.length;o++){var s=ba(n[o]);s&&(r||(i=Hs(n,r=fp(t,n))),a=a&&bc(r[o],ac(s,i),t.typeArguments[o],e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1))}return a}function gp(t){var n=Fo(t);if(n!==ee){var r=hn(t).resolvedSymbol;if(r)return 524288&r.flags&&yn(r).typeParameters||(4&e.getObjectFlags(n)?n.target.localTypeParameters:void 0)}}function yp(t){wm(t,t.typeArguments),161!==t.kind||void 0===t.typeName.jsdocDotPos||e.isInJavaScriptFile(t)||e.isInJSDoc(t)||Wm(t,t.typeName.jsdocDotPos,1,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments);var n=Fo(t);if(n!==ee){if(t.typeArguments&&(e.forEach(t.typeArguments,If),i)){var r=gp(t);r&&mp(t,r)}16&n.flags&&8&hn(t).resolvedSymbol.flags&&cn(t,e.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,Er(n))}}function hp(t,n){if(!(1048576&t.flags))return t;var r=t.objectType,i=t.indexType;return gc(i,fs(r))?(184===n.kind&&e.isAssignmentTarget(n)&&32&e.getObjectFlags(r)&&1&la(r)&&cn(n,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Er(r)),t):za(Pa(r),1)&&jd(i,84)?t:(cn(n,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Er(i),Er(r)),t)}function vp(t){return e.hasModifier(t,8)&&!!(2097152&t.flags)}function bp(t,n){var r=e.getCombinedModifierFlags(t);return 234!==t.parent.kind&&233!==t.parent.kind&&203!==t.parent.kind&&2097152&t.flags&&(2&r||(r|=1),r|=2),r&n}function xp(t){if(i){for(var n,r,a,o=0,s=155,c=!1,u=!0,l=!1,_=t.declarations,d=0!=(16384&t.flags),p=!1,f=!1,m=0,g=_;m<g.length;m++){var y=g[m],h=234===y.parent.kind||165===y.parent.kind||2097152&y.flags;if(h&&(a=void 0),232===y.kind||153===y.kind||152===y.kind||154===y.kind){var v=bp(y,155);o|=v,s&=v,c=c||e.hasQuestionToken(y),u=u&&e.hasQuestionToken(y),e.nodeIsPresent(y.body)&&n?d?f=!0:p=!0:a&&a.parent===y.parent&&a.end!==y.pos&&w(a),e.nodeIsPresent(y.body)?n||(n=y):l=!0,a=y,h||(r=y)}}if(f&&e.forEach(_,function(t){cn(t,e.Diagnostics.Multiple_constructor_implementations_are_not_allowed)}),p&&e.forEach(_,function(t){cn(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_function_implementation)}),!r||r.body||e.hasModifier(r,128)||r.questionToken||w(r),l&&(function(t,r,i,a,c){if(0!=(o^s)){var u=bp(P(t,n),155);e.forEach(t,function(t){var n=bp(t,155)^u;1&n?cn(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):2&n?cn(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):24&n?cn(e.getNameOfDeclaration(t)||t,e.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):128&n&&cn(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}(_),function(t,r,i,a){if(i!==a){var o=e.hasQuestionToken(P(t,n));e.forEach(t,function(t){e.hasQuestionToken(t)!==o&&cn(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_optional_or_required)})}}(_,0,c,u),n))for(var b=$a(t),x=Qa(n),k=0,S=b;k<S.length;k++){var D=S[k];if(C=D,T=so(x),E=so(C),N=no(T),(A=no(E))!==_e&&!Ec(A,N,Zt)&&!Ec(N,A,Zt)||0===kc(T,E,0,!0,!1,void 0,fc)){cn(D.declaration,e.Diagnostics.Overload_signature_is_not_compatible_with_function_implementation);break}}}var C,T,E,N,A;function P(e,t){return void 0!==t&&t.parent===e[0].parent?t:e[0]}function w(t){if(!t.name||!e.nodeIsMissing(t.name)){var n=!1,r=e.forEachChild(t.parent,function(e){if(n)return e;n=e===t});if(r&&r.pos===t.end&&r.kind===t.kind){var i=r.name||r,a=r.name;if(t.name&&a&&(e.isComputedPropertyName(t.name)&&e.isComputedPropertyName(a)||!e.isComputedPropertyName(t.name)&&!e.isComputedPropertyName(a)&&e.getEscapedTextOfIdentifierOrLiteral(t.name)===e.getEscapedTextOfIdentifierOrLiteral(a)))return void(153!==t.kind&&152!==t.kind||e.hasModifier(t,32)===e.hasModifier(r,32)||cn(i,e.hasModifier(t,32)?e.Diagnostics.Function_overload_must_be_static:e.Diagnostics.Function_overload_must_not_be_static));if(e.nodeIsPresent(r.body))return void cn(i,e.Diagnostics.Function_implementation_name_must_be_0,e.declarationNameToString(t.name))}var o=t.name||t;d?cn(o,e.Diagnostics.Constructor_implementation_is_missing):e.hasModifier(t,128)?cn(o,e.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):cn(o,e.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}}function kp(t){if(i){var n=t.localSymbol;if((n||(n=ir(t)).exportSymbol)&&e.getDeclarationOfKind(n,t.kind)===t){for(var r=0,a=0,o=0,s=0,c=n.declarations;s<c.length;s++){var u=h(g=c[s]),l=bp(g,513);1&l?512&l?o|=u:r|=u:a|=u}var _,d=r&a,p=o&(r|a);if(d||p)for(var f=0,m=n.declarations;f<m.length;f++){u=h(g=m[f]);var g,y=e.getNameOfDeclaration(g);u&p?cn(y,e.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,e.declarationNameToString(y)):u&d&&cn(y,e.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,e.declarationNameToString(y))}!function(e){e[e.None=0]="None",e[e.ExportValue=1]="ExportValue",e[e.ExportType=2]="ExportType",e[e.ExportNamespace=4]="ExportNamespace"}(_||(_={}))}}function h(t){switch(t.kind){case 234:case 235:case 291:return 2;case 237:return e.isAmbientModule(t)||0!==e.getModuleInstanceState(t)?5:4;case 233:case 236:return 3;case 272:return 7;case 241:case 244:case 243:var n=0,r=Bn(ir(t));return e.forEach(r.declarations,function(e){n|=h(e)}),n;case 230:case 180:case 232:case 246:return 1;default:e.Debug.fail(e.Debug.showSyntaxKind(t))}}}function Sp(e,t,n){var r=Dp(e,t);return r&&Tp(r,t,n)}function Dp(t,n){if(!Kr(t)){var r=t;if(r.promisedTypeOfPromise)return r.promisedTypeOfPromise;if(ui(t,Jo(!1)))return r.promisedTypeOfPromise=t.typeArguments[0];var i=Jr(t,"then");if(!Kr(i)){var a=i?La(i,0):e.emptyArray;if(0!==a.length){var o=Uu(ss(e.map(a,Dd)),524288);if(!Kr(o)){var s=La(o,0);if(0!==s.length)return r.promisedTypeOfPromise=ss(e.map(s,Dd),2);n&&cn(n,e.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}}else n&&cn(n,e.Diagnostics.A_promise_must_have_a_then_method)}}}function Cp(e,t,n){return Tp(e,t,n)||ee}function Tp(t,n,r){var i=t;if(i.awaitedTypeOfType)return i.awaitedTypeOfType;if(Kr(t))return i.awaitedTypeOfType=t;if(131072&t.flags){for(var a=void 0,o=0,s=t.types;o<s.length;o++)a=e.append(a,Tp(s[o],n,r));if(!a)return;return i.awaitedTypeOfType=ss(a)}var c=Dp(t);if(c){if(t.id===c.id||Mt.indexOf(c.id)>=0)return void(n&&cn(n,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));Mt.push(t.id);var u=Tp(c,n,r);if(Mt.pop(),!u)return;return i.awaitedTypeOfType=u}var l=Jr(t,"then");if(!(l&&La(l,0).length>0))return i.awaitedTypeOfType=t;n&&(e.Debug.assert(!!r),cn(n,r))}function Ep(t){var n=e.getEffectiveReturnTypeNode(t),r=Us(n);if(T>=2){if(r===ee)return ee;var i=Jo(!0);if(i!==ve&&!ui(r,i))return cn(n,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),ee}else{if(Ap(n&&e.getEntityNameFromTypeNode(n)),r===ee)return ee;var a=e.getEntityNameFromTypeNode(n);if(void 0===a)return cn(n,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,Er(r)),ee;var o=Un(a,67216319,!0),s=o?ci(o):ee;if(s===ee)return 71===a.kind&&"Promise"===a.escapedText&&li(r)===Jo(!1)?cn(n,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):cn(n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)),ee;var c=We||(We=Bo("PromiseConstructorLike",0,!0))||ge;if(c===ge)return cn(n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)),ee;if(!bc(s,c,n,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 ee;var u=a&&Cf(a),l=bn(t.locals,u.escapedText,67216319);if(l)return cn(l.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(u),e.entityNameToString(a)),ee}return Cp(r,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 Np(t){var n=no(dd(t));if(!(1&n.flags)){var r,i,a=ud(t);switch(t.parent.kind){case 233:r=ss([ci(ir(t.parent)),_e]);break;case 148:r=_e,i=e.chainDiagnosticMessages(i,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 151:r=_e,i=e.chainDiagnosticMessages(i,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 153:case 155:case 156:r=ss([Xo(Wf(t.parent)),_e])}bc(n,r,t,a,function(){return i})}}function Ap(e){if(e){var t=Cf(e),n=kn(t,t.escapedText,2097152|(71===e.kind?67901928:1920),void 0,void 0,!0);n&&2097152&n.flags&&sr(n)&&!om(Bn(n))&&jn(n)}}function Pp(t){var n=function t(n){if(n)switch(n.kind){case 169:case 168:for(var r=void 0,i=0,a=n.types;i<a.length;i++){for(var o=a[i];172===o.kind;)o=o.type;if(131!==o.kind&&(P||95!==o.kind&&140!==o.kind)){var s=t(o);if(!s)return;if(r){if(!e.isIdentifier(r)||!e.isIdentifier(s)||r.escapedText!==s.escapedText)return}else r=s}}return r;case 172:return t(n.type);case 161:return n.typeName}}(t);n&&e.isEntityName(n)&&Ap(n)}function wp(t){var n=e.getEffectiveTypeAnnotationNode(t);return e.isRestParameter(t)?e.getRestParameterElementType(n):n}function Fp(t){if(t.decorators&&e.nodeCanBeDecorated(t,t.parent,t.parent.parent)){C.experimentalDecorators||cn(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 n=t.decorators[0];if(Dm(n,8),148===t.kind&&Dm(n,32),C.emitDecoratorMetadata)switch(Dm(n,16),t.kind){case 233:var r=e.getFirstConstructorWithBody(t);if(r)for(var i=0,a=r.parameters;i<a.length;i++)Pp(wp(a[i]));break;case 153:case 155:case 156:for(var o=0,s=t.parameters;o<s.length;o++)Pp(wp(s[o]));Pp(e.getEffectiveReturnTypeNode(t));break;case 151:Pp(e.getEffectiveTypeAnnotationNode(t));break;case 148:Pp(wp(t));for(var c=0,u=t.parent.parameters;c<u.length;c++)Pp(wp(u[c]))}e.forEach(t.decorators,Np)}}function Ip(e){switch(e.kind){case 71:return e;case 183:return e.name;default:return}}function Op(t){Fp(t),up(t);var n=e.getFunctionFlags(t);if(t.name&&146===t.name.kind&&r_(t.name),!Ui(t)){var r=ir(t),a=t.localSymbol||r,o=e.find(a.declarations,function(e){return e.kind===t.kind&&!(65536&e.flags)});t===o&&xp(a),r.parent&&e.getDeclarationOfKind(r,t.kind)===t&&xp(r)}var s=152===t.kind?void 0:t.body;If(s);var c=e.getEffectiveReturnTypeNode(t);if(0==(1&n)){var u=c&&(2&n?Ep(t):Us(c));wd(t,u)}i&&!c&&(I&&e.nodeIsMissing(s)&&!vp(t)&&mu(t,Y),1&n&&e.nodeIsPresent(s)&&no(Qa(t))),Mp(t)}function Mp(e){tt&&tt.push(e)}function Lp(t){!N||2097152&t.flags||t.locals.forEach(function(t){if(262144&t.flags?3&t.flags&&!(3&t.isReferenced):!t.isReferenced)if(t.valueDeclaration&&148===e.getRootDeclaration(t.valueDeclaration).kind){var n=e.getRootDeclaration(t.valueDeclaration),r=e.getNameOfDeclaration(t.valueDeclaration);!C.noUnusedParameters||e.isParameterPropertyDeclaration(n)||e.parameterIsThisKeyword(n)||(i=r)&&Bp(i)||cn(r,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.symbolName(t))}else C.noUnusedLocals&&e.forEach(t.declarations,function(n){return Rp(n,e.symbolName(t))});var i})}function Rp(t,n){var r=e.getNameOfDeclaration(t)||t;if(Bp(r)){var i=e.getRootDeclaration(r.parent);if(230===i.kind&&e.isForInOrOfStatement(i.parent.parent)||147===i.kind)return}(function(t){if(e.isBindingElement(t)&&e.isObjectBindingPattern(t.parent)){var n=e.lastOrUndefined(t.parent.elements);return n!==t&&!!n.dotDotDotToken}return!1})(71===r.kind?r.parent:r)||Lt.add(e.createDiagnosticForNodeSpan(e.getSourceFileOfNode(t),t,r,e.Diagnostics._0_is_declared_but_its_value_is_never_read,n))}function Bp(t){return e.isIdentifier(t)&&95===e.idText(t).charCodeAt(0)}function zp(t){if(C.noUnusedLocals&&!(2097152&t.flags))for(var n=0,r=t.members;n<r.length;n++){var i=r[n];switch(i.kind){case 153:case 151:case 155:case 156:if(156===i.kind&&32768&i.symbol.flags)break;var a=ir(i);!a.isReferenced&&e.hasModifier(i,8)&&cn(i.name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Cr(a));break;case 154:for(var o=0,s=i.parameters;o<s.length;o++){var c=s[o];!c.symbol.isReferenced&&e.hasModifier(c,8)&&cn(c.name,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read,e.symbolName(c.symbol))}break;case 159:case 210:break;default:e.Debug.fail()}}}function jp(t){if(C.noUnusedParameters&&!(2097152&t.flags)&&t.typeParameters){var n=ir(t);if((n&&n.declarations&&e.lastOrUndefined(n.declarations))!==t)return;for(var r=0,i=t.typeParameters;r<i.length;r++){var a=i[r];262144&rr(a.symbol).isReferenced||Bp(a.name)||cn(a.name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.symbolName(a.symbol))}}}function Jp(t){if(C.noUnusedLocals&&!(2097152&t.flags)){var n=e.createMap();t.locals.forEach(function(t){var r,i;if(!t.isReferenced&&!t.exportSymbol)for(var a=0,o=t.declarations;a<o.length;a++){var c=o[a];if(!e.isAmbientModule(c))if(243===(i=c).kind||246===i.kind||244===i.kind){var u=243===(r=c).kind?r:244===r.kind?r.parent:r.parent.parent,l=String(s(u)),_=n.get(l);_?_[1].push(c):n.set(l,[u,[c]])}else Rp(c,e.symbolName(t))}}),n.forEach(function(t){var n=t[0],r=t[1],i=n.parent;if(function(t,n){var r=t.namedBindings;return t.name&&n(t)||r&&(244===r.kind?n(r):e.forEach(r.elements,n))}(n,function(t){return!e.contains(r,t)}))for(var a=0,o=r;a<o.length;a++){var s=o[a];Rp(s,e.idText(s.name))}else 1===r.length?cn(i,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(e.first(r).name)):cn(i,e.Diagnostics.All_imports_in_import_declaration_are_unused,e.showModuleSpecifier(i))})}}function Kp(t){if(211===t.kind&&Gm(t),e.isFunctionOrModuleBlock(t)){var n=gt;e.forEach(t.statements,If),gt=n}else e.forEach(t.statements,If);t.locals&&Mp(t)}function Up(t,n,r){if(!n||n.escapedText!==r)return!1;if(151===t.kind||150===t.kind||153===t.kind||152===t.kind||155===t.kind||156===t.kind)return!1;if(2097152&t.flags)return!1;var i=e.getRootDeclaration(t);return 148!==i.kind||!e.nodeIsMissing(i.parent.body)}function Vp(e,t){Up(e,t,"_this")&&It.push(e)}function qp(e,t){Up(e,t,"_newTarget")&&Ot.push(e)}function Wp(t){e.findAncestor(t,function(n){if(4&lm(n))return 71!==t.kind?cn(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):cn(t,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0})}function Hp(t){e.findAncestor(t,function(n){if(8&lm(n))return 71!==t.kind?cn(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):cn(t,e.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0})}function Gp(t,n){if(Up(t,n,"_super")){var r=e.getContainingClass(t);!r||2097152&r.flags||e.getClassExtendsHeritageClauseElement(r)&&cn(t,71!==t.kind?e.Diagnostics.Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:e.Diagnostics.Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference)}}function Xp(t,n){if(!(E>=e.ModuleKind.ES2015)&&(Up(t,n,"require")||Up(t,n,"exports"))&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var r=jr(t);272===r.kind&&e.isExternalOrCommonJsModule(r)&&cn(n,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(n),e.declarationNameToString(n))}}function Qp(t,n){if(!(T>=4)&&Up(t,n,"Promise")&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var r=jr(t);272===r.kind&&e.isExternalOrCommonJsModule(r)&&1024&r.flags&&cn(n,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(n),e.declarationNameToString(n))}}function Yp(t){if(148===e.getRootDeclaration(t).kind){var n=e.getContainingFunction(t);!function r(i){if(!e.isTypeNode(i)&&!e.isDeclarationName(i)){if(183===i.kind)return r(i.expression);if(71!==i.kind)return e.forEachChild(i,r);var a=kn(i,i.escapedText,69313471,void 0,void 0,!1);if(a&&a!==X&&a.valueDeclaration)if(a.valueDeclaration!==t){if(e.getEnclosingBlockScopeContainer(a.valueDeclaration)===n){if(148===a.valueDeclaration.kind||180===a.valueDeclaration.kind){if(a.valueDeclaration.pos<t.pos)return;if(e.findAncestor(i,function(n){return n===t.initializer?"quit":e.isFunctionLike(n.parent)||151===n.parent.kind&&!e.hasModifier(n.parent,32)&&e.isClassLike(n.parent.parent)}))return}cn(i,e.Diagnostics.Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(t.name),e.declarationNameToString(i))}}else cn(i,e.Diagnostics.Parameter_0_cannot_be_referenced_in_its_initializer,e.declarationNameToString(t.name))}}(t.initializer)}}function $p(e){return e===$?Y:e===Be?Re:e}function Zp(t){if(Fp(t),e.isBindingElement(t)||If(t.type),t.name){if(146===t.name.kind&&(r_(t.name),t.initializer&&Yd(t.initializer)),180===t.kind){178===t.parent.kind&&T<6&&Dm(t,4),t.propertyName&&146===t.propertyName.kind&&r_(t.propertyName);var n=t.parent.parent,r=Ur(n),i=t.propertyName||t.name;if(!e.isBindingPattern(i)){var a=Oa(r,e.getTextOfPropertyName(i));B_(a,void 0,!1),n.initializer&&a&&T_(n,n.initializer,r,a)}}if(e.isBindingPattern(t.name)&&(179===t.name.kind&&T<2&&C.downlevelIteration&&Dm(t,512),e.forEach(t.name.elements,If)),t.initializer&&148===e.getRootDeclaration(t).kind&&e.nodeIsMissing(e.getContainingFunction(t).body))cn(t,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);else if(e.isBindingPattern(t.name)){if(t.initializer&&219!==t.parent.parent.kind){var o=Yd(t.initializer);P&&0===t.name.elements.length?A_(o,t):bc(o,Zr(t),t,void 0),Yp(t)}}else{var s=ir(t),c=$p(ci(s));if(t===s.valueDeclaration)t.initializer&&219!==t.parent.parent.kind&&(bc(Yd(e.isInJavaScriptFile(t)&&e.getDeclaredJavascriptInitializer(t)||t.initializer),c,t,void 0),Yp(t));else{var u=$p(Zr(t));c===ee||u===ee||dc(c,u)||67108864&s.flags||ef(c,t,u),t.initializer&&bc(Yd(t.initializer),u,t,void 0),_=s.valueDeclaration,148===(l=t).kind&&230===_.kind||230===l.kind&&148===_.kind||e.hasQuestionToken(l)===e.hasQuestionToken(_)&&e.getSelectedModifierFlags(l,504)===e.getSelectedModifierFlags(_,504)||(cn(e.getNameOfDeclaration(s.valueDeclaration),e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name)),cn(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name)))}151!==t.kind&&150!==t.kind&&(kp(t),230!==t.kind&&180!==t.kind||function(t){if(0==(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(230!==t.kind||t.initializer)){var n=ir(t);if(1&n.flags){if(!e.isIdentifier(t.name))return e.Debug.fail();var r=kn(t,t.name.escapedText,3,void 0,void 0,!1);if(r&&r!==n&&2&r.flags&&3&D_(r)){var i=e.getAncestor(r.valueDeclaration,231),a=212===i.parent.kind&&i.parent.parent?i.parent.parent:void 0;if(!a||!(211===a.kind&&e.isFunctionLike(a.parent)||238===a.kind||237===a.kind||272===a.kind)){var o=Cr(r);cn(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o)}}}}}(t),Gp(t,t.name),Vp(t,t.name),qp(t,t.name),Xp(t,t.name),Qp(t,t.name))}}var l,_}function ef(t,n,r){var i=e.getNameOfDeclaration(n);cn(i,151===n.kind||150===n.kind?e.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:e.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,e.declarationNameToString(i),Er(t),Er(r))}function tf(t){return function(t){if(219!==t.parent.parent.kind&&220!==t.parent.parent.kind)if(2097152&t.flags){if(t.initializer){if(!e.isConst(t)||t.type)return Wm(t,t.initializer.pos-(n="=".length),n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(!Km(t.initializer))return Hm(t.initializer,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal)}var n;if(t.initializer&&(!e.isConst(t)||!Km(t.initializer)))return Wm(t,t.initializer.pos-(n="=".length),n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return Hm(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isConst(t))return Hm(t,e.Diagnostics.const_declarations_must_be_initialized)}if(t.exclamationToken&&(212!==t.parent.parent.kind||!t.type||t.initializer||2097152&t.flags))return Hm(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);C.module===e.ModuleKind.ES2015||C.module===e.ModuleKind.ESNext||C.module===e.ModuleKind.System||C.noEmit||2097152&t.parent.parent.flags||!e.hasModifier(t.parent.parent,1)||function t(n){if(71===n.kind){if("__esModule"===e.idText(n))return Hm(n,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var r=0,i=n.elements;r<i.length;r++){var a=i[r];if(!e.isOmittedExpression(a))return t(a.name)}}(t.name),(e.isLet(t)||e.isConst(t))&&function t(n){if(71===n.kind){if(110===n.originalKeywordKind)return Hm(n,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else for(var r=0,i=n.elements;r<i.length;r++){var a=i[r];e.isOmittedExpression(a)||t(a.name)}}(t.name)}(t),Zp(t)}function nf(e){var t=e.initializer;t.declarations.length>=1&&tf(t.declarations[0])}function rf(e,t){return af(N_(e),e,!0,void 0!==t)}function af(e,t,n,r){return Kr(e)?e:of(e,t,n,r,!0)||Y}function of(t,n,r,i,a){var o=T>=2,s=!o&&C.downlevelIteration;if(o||s||i){var c=sf(t,o?n:void 0,i,!0,a);if(c||o)return c}var u=t,l=!1,_=!1;if(r){if(131072&u.flags){var d=t.types,p=e.filter(d,function(e){return!(524322&e.flags)});p!==d&&(u=ss(p,2))}else 524322&u.flags&&(u=de);if((_=u!==t)&&(T<1&&n&&(cn(n,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),l=!0),16384&u.flags))return ae}if(!qc(u))return n&&!l&&cn(n,!r||_?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,Er(u)),_?ae:void 0;var f=ja(u,1);return _&&f?524322&f.flags?ae:ss([f,ae],2):f}function sf(t,n,r,i,a){if(!Kr(t))return il(t,function(t){var o=t;if(r){if(o.iteratedTypeOfAsyncIterable)return o.iteratedTypeOfAsyncIterable;if(ui(t,Uo(!1))||ui(t,Vo(!1)))return o.iteratedTypeOfAsyncIterable=t.typeArguments[0]}if(i){if(o.iteratedTypeOfIterable)return o.iteratedTypeOfIterable;if(ui(t,qo(!1))||ui(t,Wo(!1)))return o.iteratedTypeOfIterable=t.typeArguments[0]}var s=r&&Jr(t,e.getPropertyNameForKnownSymbolName("asyncIterator")),c=s||i&&Jr(t,e.getPropertyNameForKnownSymbolName("iterator"));if(!Kr(c)){var u=c&&La(c,0);if(e.some(u)){var l=cf(ss(e.map(u,no),2),n,!!s);return a&&n&&l&&bc(t,s?function(e){return Go(Uo(!0),[e])}(l):Yo(l),n),s?o.iteratedTypeOfAsyncIterable=l:o.iteratedTypeOfIterable=l}n&&(cn(n,r?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),n=void 0)}})}function cf(t,n,r){if(!Kr(t)){var i=t;if(r?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator)return r?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator;if(ui(t,(r?function(e){return Ye||(Ye=Bo("AsyncIterator",1,e))||ve}:function(e){return Ge||(Ge=Bo("Iterator",1,e))||ve})(!1)))return r?i.iteratedTypeOfAsyncIterator=t.typeArguments[0]:i.iteratedTypeOfIterator=t.typeArguments[0];var a=Jr(t,"next");if(!Kr(a)){var o=a?La(a,0):e.emptyArray;if(0!==o.length){var s=ss(e.map(o,no),2);if(!(Kr(s)||r&&Kr(s=Sp(s,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)))){var c=s&&Jr(s,"value");if(c)return r?i.iteratedTypeOfAsyncIterator=c:i.iteratedTypeOfIterator=c;n&&cn(n,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:e.Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property)}}else n&&cn(n,r?e.Diagnostics.An_async_iterator_must_have_a_next_method:e.Diagnostics.An_iterator_must_have_a_next_method)}}}function uf(e,t){if(!Kr(e))return sf(e,void 0,t,!t,!1)||cf(e,void 0,t)}function lf(t){return 155===t.kind&&void 0!==e.getEffectiveSetAccessorTypeAnnotationNode(e.getDeclarationOfKind(t.symbol,156))}function _f(t,n){var r=2==(3&e.getFunctionFlags(t))?Dp(n):n;return r&&zd(r,2049)}function df(t){var n,r=_o(t.symbol,1),i=_o(t.symbol,0),a=ja(t,0),o=ja(t,1);if((a||o)&&(e.forEach(ma(t),function(e){var n=ci(e);d(e,n,t,i,a,0),d(e,n,t,r,o,1)}),1&e.getObjectFlags(t)&&e.isClassLike(t.symbol.valueDeclaration)))for(var s=0,c=t.symbol.valueDeclaration.members;s<c.length;s++){var u=c[s];if(!e.hasModifier(u,32)&&Ui(u)){var l=ir(u),_=ci(l);d(l,_,t,i,a,0),d(l,_,t,r,o,1)}}function d(t,n,r,i,a,o){if(a&&!e.isKnownSymbol(t)){var s,c=t.valueDeclaration;(1!==o||(c?t_(e.getNameOfDeclaration(c)):n_(t.escapedName)))&&(!c||198!==c.kind&&146!==e.getNameOfDeclaration(c).kind&&t.parent!==r.symbol?i?s=i:2&e.getObjectFlags(r)&&(s=e.forEach(ki(r),function(e){return ga(e,t.escapedName)&&ja(e,o)})?void 0:r.symbol.declarations[0]):s=c,s&&!gc(n,a)&&cn(s,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,Cr(t),Er(n),Er(a)))}}a&&o&&!(n=r||i)&&2&e.getObjectFlags(t)&&(n=e.forEach(ki(t),function(e){return ja(e,0)&&ja(e,1)})?void 0:t.symbol.declarations[0]),n&&!gc(o,a)&&cn(n,e.Diagnostics.Numeric_index_type_0_is_not_assignable_to_string_index_type_1,Er(o),Er(a))}function pf(e,t){switch(e.escapedText){case"any":case"number":case"boolean":case"string":case"symbol":case"void":case"object":cn(e,t,e.escapedText)}}function ff(t){if(t)for(var n=!1,r=0;r<t.length;r++){var a=t[r];if(op(a),i){a.default?n=!0:n&&cn(a,e.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var o=0;o<r;o++)t[o].symbol===a.symbol&&cn(a.name,e.Diagnostics.Duplicate_identifier_0,e.declarationNameToString(a.name))}}}function mf(t){if(1!==t.declarations.length){var n=yn(t);if(!n.typeParametersChecked){n.typeParametersChecked=!0;var r=function(t){return e.filter(t.declarations,function(e){return 233===e.kind||234===e.kind})}(t);if(r.length<=1)return;if(!function(t,n){for(var r=e.length(n),i=Ga(n),a=0,o=t;a<o.length;a++){var s=o[a],c=e.length(s.typeParameters);if(c<i||c>r)return!1;for(var u=0;u<c;u++){var l=s.typeParameters[u],_=n[u];if(l.name.escapedText!==_.symbol.escapedName)return!1;var d=l.constraint&&Us(l.constraint),p=mo(_);if(d&&(!p||!dc(d,p)))return!1;var f=l.default&&Us(l.default),m=Aa(_);if(f&&m&&!dc(f,m))return!1}}return!0}(r,wi(t).localTypeParameters))for(var i=Cr(t),a=0,o=r;a<o.length;a++)cn(o[a].name,e.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,i)}}}function gf(t){e.forEach(t.members,If),Mp(t)}function yf(t){!function(t){var n=e.getSourceFileOfNode(t);(function(t){var n=!1,r=!1;if(!Tm(t)&&t.heritageClauses)for(var i=0,a=t.heritageClauses;i<a.length;i++){var o=a[i];if(85===o.token){if(n)return qm(o,e.Diagnostics.extends_clause_already_seen);if(r)return qm(o,e.Diagnostics.extends_clause_must_precede_implements_clause);if(o.types.length>1)return qm(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);n=!0}else{if(e.Debug.assert(108===o.token),r)return qm(o,e.Diagnostics.implements_clause_already_seen);r=!0}Im(o)}})(t)||Am(t.typeParameters,n)}(t),Fp(t),t.name&&(pf(t.name,e.Diagnostics.Class_name_cannot_be_0),Vp(t,t.name),qp(t,t.name),Xp(t,t.name),Qp(t,t.name)),ff(t.typeParameters),kp(t);var n=ir(t),r=wi(n),a=Xi(r),o=ci(n);mf(n),function(t){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 r=e.createUnderscoreEscapedMap(),i=e.createUnderscoreEscapedMap(),a=0,o=t.members;a<o.length;a++){var s=o[a];if(154===s.kind)for(var c=0,u=s.parameters;c<u.length;c++){var l=u[c];e.isParameterPropertyDeclaration(l)&&!e.isBindingPattern(l.name)&&p(r,l.name,l.name.escapedText,3)}else{var _=e.hasModifier(s,32)?i:r,d=s.name&&e.getPropertyNameForPropertyNameNode(s.name);if(d)switch(s.kind){case 155:p(_,s.name,d,1);break;case 156:p(_,s.name,d,2);break;case 151:p(_,s.name,d,3);break;case 153:p(_,s.name,d,4)}}}function p(t,n,r,i){var a=t.get(r);a?4&a?4!==i&&cn(n,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(n)):a&i?cn(n,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(n)):t.set(r,a|i):t.set(r,i)}}(t),2097152&t.flags||function(t){for(var n=0,r=t.members;n<r.length;n++){var i=r[n],a=i.name;if(e.hasModifier(i,32)&&a){var o=e.getPropertyNameForPropertyNameNode(a);switch(o){case"name":case"length":case"caller":case"arguments":case"prototype":cn(a,e.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,o,Ir(ir(t)))}}}}(t);var s=e.getClassExtendsHeritageClauseElement(t);if(s){T<2&&Dm(s.parent,1);var c=ki(r);if(c.length&&i){var u=c[0],l=xi(r),_=Pa(l);if(function(t,n){var r=La(t,1);if(r.length){var i=r[0].declaration;i&&e.hasModifier(i,8)&&(Kf(n,e.getClassLikeDeclarationOfSymbol(t.symbol))||cn(n,e.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Kn(t.symbol)))}}(_,s),If(s.expression),e.some(s.typeArguments)){e.forEach(s.typeArguments,If);for(var d=0,p=vi(_,s.typeArguments,s);d<p.length&&mp(s,p[d].typeParameters);d++);}if(bc(a,b=Xi(u,r.thisType),void 0)||hf(t,a,b,e.Diagnostics.Class_0_incorrectly_extends_base_class_1),bc(o,_c(_),t.name||t,e.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1),1081344&l.flags&&!gi(o)&&cn(t.name||t,e.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any),!(_.symbol&&32&_.symbol.flags||1081344&l.flags)){var f=bi(_,s.typeArguments,s);e.forEach(f,function(e){return no(e)!==u})&&cn(s.expression,e.Diagnostics.Base_constructors_must_all_have_the_same_return_type)}!function(t,n){for(var r=0,i=ha(n);r<i.length;r++){var a=i[r],o=vf(a);if(!(4194304&o.flags)){var s=vf(ga(t,o.escapedName)),c=e.getDeclarationModifierFlagsFromSymbol(o);if(e.Debug.assert(!!s,"derived should point to something, even if it is the base class' declaration."),s)if(s===o){var u=e.getClassLikeDeclarationOfSymbol(t.symbol);!(128&c)||u&&e.hasModifier(u,128)||(203===u.kind?cn(u,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Cr(a),Er(n)):cn(u,e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Er(t),Cr(a),Er(n)))}else{var l,_=e.getDeclarationModifierFlagsFromSymbol(s);if(8&c||8&_)continue;if(C_(o)&&C_(s)||98308&o.flags&&98308&s.flags)continue;l=C_(o)?98304&s.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&o.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,cn(e.getNameOfDeclaration(s.valueDeclaration)||s.valueDeclaration,l,Er(n),Cr(o),Er(t))}}}}(r,u)}}var m=e.getClassImplementsHeritageClauseElements(t);if(m)for(var g=0,y=m;g<y.length;g++){var h=y[g];if(e.isEntityNameExpression(h.expression)||cn(h.expression,e.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),yp(h),i){var v=Us(h);if(v!==ee)if(Si(v)){var b,x=v.symbol&&32&v.symbol.flags?e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:e.Diagnostics.Class_0_incorrectly_implements_interface_1;bc(a,b=Xi(v,r.thisType),void 0)||hf(t,a,b,x)}else cn(h,e.Diagnostics.A_class_may_only_implement_another_class_or_interface)}}i&&(df(r),_p(t),function(t){if(P&&F&&!(2097152&t.flags))for(var n=cr(t),r=0,i=t.members;r<i.length;r++){var a=i[r];if(bf(a)){var o=a.name;if(e.isIdentifier(o)){var s=ci(ir(a));1&s.flags||4096&tu(s)||n&&xf(o,s,n)||cn(a.name,e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,e.declarationNameToString(o))}}}}(t))}function hf(t,n,r,i){for(var a=!1,o=function(t){if(e.hasStaticModifier(t))return"continue";var i=t.name&&qf(t.name)||qf(t);if(i){var o=Oa(n,i.escapedName),s=Oa(r,i.escapedName);o&&s&&(bc(ci(o),ci(s),t.name||t,void 0,function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Cr(i),Er(n),Er(r))})||(a=!0))}},s=0,c=t.members;s<c.length;s++)o(c[s]);a||bc(n,r,t.name||t,i)}function vf(t){return 1&e.getCheckFlags(t)?t.target:t}function bf(t){return 151===t.kind&&!e.hasModifier(t,160)&&!t.exclamationToken&&!t.initializer}function xf(t,n,r){var i=e.createPropertyAccess(e.createThis(),t);return i.flowNode=r.returnFlowNode,!(4096&tu(ml(i,n,au(n))))}function kf(e){var t=hn(e);if(!(16384&t.flags)){t.flags|=16384;for(var n=0,r=0,i=e.members;r<i.length;r++){var a=i[r],o=Sf(a,n);hn(a).enumMemberValue=o,n="number"==typeof o?o+1:void 0}}}function Sf(t,n){if(Vr(t.name))cn(t.name,e.Diagnostics.Computed_property_names_are_not_allowed_in_enums);else{var r=e.getTextOfPropertyName(t.name);n_(r)&&"Infinity"!==(i=r)&&"-Infinity"!==i&&"NaN"!==i&&cn(t.name,e.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}var i;return t.initializer?function(t){var n=Ti(ir(t.parent)),r=e.isConst(t.parent),i=t.initializer,a=1!==n||Ci(t)?function n(r){switch(r.kind){case 196:var i=n(r.operand);if("number"==typeof i)switch(r.operator){case 37:return i;case 38:return-i;case 52:return~i}break;case 198:var a=n(r.left),s=n(r.right);if("number"==typeof a&&"number"==typeof s)switch(r.operatorToken.kind){case 49:return a|s;case 48:return a&s;case 46:return a>>s;case 47:return a>>>s;case 45:return a<<s;case 50:return a^s;case 39:return a*s;case 41:return a/s;case 37:return a+s;case 38:return a-s;case 42:return a%s;case 40:return Math.pow(a,s)}break;case 9:return r.text;case 8:return Xm(r),+r.text;case 189:return n(r.expression);case 71:return e.nodeIsMissing(r)?0:o(r,ir(t.parent),r.escapedText);case 184:case 183:var c=r;if(function e(t){return 71===t.kind||183===t.kind&&e(t.expression)||184===t.kind&&e(t.expression)&&9===t.argumentExpression.kind}(c)){var u=ip(c.expression);if(u.symbol&&384&u.symbol.flags){var l=void 0;if(183===c.kind)l=c.name.escapedText;else{var _=c.argumentExpression;e.Debug.assert(e.isLiteralExpression(_)),l=e.escapeLeadingUnderscores(_.text)}return o(r,u.symbol,l)}}}}(i):void 0;if(void 0!==a)r&&"number"==typeof a&&!isFinite(a)&&cn(i,isNaN(a)?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===n)return cn(i,e.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;r?cn(i,e.Diagnostics.In_const_enum_declarations_member_initializer_must_be_constant_expression):2097152&t.parent.flags?cn(i,e.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):bc(ap(i),wi(ir(t.parent)),i,void 0)}return a;function o(n,r,i){var a=r.exports.get(i);if(a){var o=a.valueDeclaration;if(o!==t)return xn(o,t)?_m(o):(cn(n,e.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0)}}}(t):2097152&t.parent.flags&&!e.isConst(t.parent)?void 0:void 0!==n?n:void cn(t.name,e.Diagnostics.Enum_member_must_have_initializer)}function Df(t,n){switch(t.kind){case 212:for(var r=0,i=t.declarationList.declarations;r<i.length;r++)Df(i[r],n);break;case 247:case 248:qm(t,e.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 241:case 242:qm(t,e.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 180:case 230:var a=t.name;if(e.isBindingPattern(a)){for(var o=0,s=a.elements;o<s.length;o++)Df(s[o],n);break}case 233:case 236:case 232:case 234:case 237:case 235:if(n)return;var c=ir(t);if(c){var u=!(33554432&c.flags);u||(u=e.isExternalModuleAugmentation(c.parent.declarations[0]))}}}function Cf(e){switch(e.kind){case 71:return e;case 145:do{e=e.left}while(71!==e.kind);return e;case 183:do{e=e.expression}while(71!==e.kind);return e}}function Tf(t){var n=e.getExternalModuleName(t);if(e.nodeIsMissing(n))return!1;if(!e.isStringLiteral(n))return cn(n,e.Diagnostics.String_literal_expected),!1;var r=238===t.parent.kind&&e.isAmbientModule(t.parent.parent);return 272===t.parent.kind||r?!(r&&e.isExternalModuleNameRelative(n.text)&&!wr(t)&&(cn(t,e.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),1)):(cn(n,248===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 Ef(t){var n=ir(t),r=Bn(n);r!==X&&(r.flags&((68264895&n.flags?67216319:0)|(67901928&n.flags?67901928:0)|(1920&n.flags?1920:0))&&cn(t,250===t.kind?e.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:e.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0,Cr(n)),!C.isolatedModules||250!==t.kind||67216319&r.flags||2097152&t.flags||cn(t,e.Diagnostics.Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided))}function Nf(e){Vp(e,e.name),Xp(e,e.name),Qp(e,e.name),Ef(e)}function Af(e,t){var n=272===e.parent.kind||238===e.parent.kind||237===e.parent.kind;return n||qm(e,t),!n}function Pf(t){if(Ef(t),C.declaration&&Mr(t.propertyName||t.name,!0),!t.parent.parent.moduleSpecifier){var n=t.propertyName||t.name,r=kn(n,n.escapedText,70107135,void 0,void 0,!0);r&&(r===R||vn(jr(r.declarations[0])))?cn(n,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,e.idText(n)):zn(t)}}function wf(t){var n=ir(t),r=yn(n);if(!r.exportsChecked){var i=n.exports.get("export=");if(i&&function(t){return e.forEachEntry(t.exports,function(e,t){return"export="!==t})}(n)){var a=Pn(i)||i.valueDeclaration;wr(a)||cn(a,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var o=er(n);o&&o.forEach(function(t,n){var r=t.declarations,i=t.flags;if("__export"!==n&&!(1984&i)){var a=e.countWhere(r,on);if(!(524288&i&&a<=2)&&a>1)for(var o=0,s=r;o<s.length;o++){var c=s[o];Ff(c)&&Lt.add(e.createDiagnosticForNode(c,e.Diagnostics.Cannot_redeclare_exported_variable_0,e.unescapeLeadingUnderscores(n)))}}}),r.exportsChecked=!0}}function Ff(e){return 232!==e.kind&&153!==e.kind||!!e.body}function If(t){if(t){if(e.isInJavaScriptFile(t)&&t.jsDoc)for(var n=0,r=t.jsDoc;n<r.length;n++)e.forEach(r[n].tags,If);var a=t.kind;if(p)switch(a){case 237:case 233:case 234:case 232:p.throwIfCancellationRequested()}switch(a){case 147:return op(t);case 148:return sp(t);case 151:case 150:return function(t){Tm(t)||function(t){if(e.isClassLike(t.parent)){if(jm(t.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0}else if(234===t.parent.kind){if(jm(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(t.initializer)return Hm(t.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(165===t.parent.kind){if(jm(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(t.initializer)return Hm(t.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}return 2097152&t.flags&&t.initializer?qm(t.initializer,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts):e.isPropertyDeclaration(t)&&t.exclamationToken&&(!e.isClassLike(t.parent)||!t.type||t.initializer||2097152&t.flags||e.hasModifier(t,160))?Hm(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context):void 0}(t)||Mm(t.name),Zp(t)}(t);case 162:case 163:case 157:case 158:case 159:return up(t);case 153:case 152:return function(t){Jm(t)||Mm(t.name),Op(t),e.hasModifier(t,128)&&153===t.kind&&t.body&&cn(t,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(t.name))}(t);case 154:return function(t){up(t),function(t){var n=e.getEffectiveTypeParameterDeclarations(t);if(n){var r=e.isNodeArray(n)?n:e.first(n),i=r.pos;return Wm(t,i,r.end-i,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(t)||function(t){var n=e.getEffectiveReturnTypeNode(t);n&&Hm(n,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}(t),If(t.body),Mp(t);var n=ir(t);if(t===e.getDeclarationOfKind(n,t.kind)&&xp(n),!e.nodeIsMissing(t.body)&&i){var r=t.parent;if(e.getClassExtendsHeritageClauseElement(r)){Dl(t.parent,r);var a=El(r),o=Tl(t);if(o){if(a&&cn(o,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),e.some(t.parent.members,function(t){return 151===t.kind&&!e.hasModifier(t,32)&&!!t.initializer})||e.some(t.parameters,function(t){return e.hasModifier(t,92)})){for(var s=void 0,c=0,u=t.body.statements;c<u.length;c++){var l=u[c];if(214===l.kind&&e.isSuperCall(l.expression)){s=l;break}if(!e.isPrologueDirective(l))break}s||cn(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 a||cn(t,e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}}(t);case 155:case 156:return dp(t);case 161:return yp(t);case 160:return function(t){var n=function(e){switch(e.parent.kind){case 191:case 157:case 232:case 190:case 162:case 153:case 152:var t=e.parent;if(e===t.type)return t}}(t);if(n){var r=to(Qa(n));if(r){If(t.type);var i=t.parameterName;if(e.isThisTypePredicate(r))Ks(i);else if(r.parameterIndex>=0)n.parameters[r.parameterIndex].dotDotDotToken?cn(i,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):bc(r.type,Wf(n.parameters[r.parameterIndex]),t.type,void 0,function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)});else if(i){for(var a=!1,o=0,s=n.parameters;o<s.length;o++){var c=s[o].name;if(e.isBindingPattern(c)&&cp(c,i,r.parameterName)){a=!0;break}}a||cn(t.parameterName,e.Diagnostics.Cannot_find_parameter_0,r.parameterName)}}}else cn(t,e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods)}(t);case 164:return function(e){Oo(e)}(t);case 165:return function(t){e.forEach(t.members,If),i&&(df(Ps(t)),_p(t),lp(t))}(t);case 166:return function(e){If(e.elementType)}(t);case 167:return function(t){Nm(t.elementTypes)||0!==t.elementTypes.length||Hm(t,e.Diagnostics.A_tuple_type_element_list_cannot_be_empty),e.forEach(t.elementTypes,If)}(t);case 168:case 169:return function(t){e.forEach(t.types,If)}(t);case 172:return If(t.type);case 174:return function(t){!function(t){if(141===t.operator){if(138!==t.type.kind)return Hm(t.type,e.Diagnostics._0_expected,e.tokenToString(138));var n=e.walkUpParenthesizedTypes(t.parent);switch(n.kind){case 230:var r=n;if(71!==r.name.kind)return Hm(t,e.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!e.isVariableDeclarationInVariableStatement(r))return Hm(t,e.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&r.parent.flags))return Hm(n.name,e.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 151:if(!e.hasModifier(n,32)||!e.hasModifier(n,64))return Hm(n.name,e.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 150:if(!e.hasModifier(n,64))return Hm(n.name,e.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:Hm(t,e.Diagnostics.unique_symbol_types_are_not_allowed_here)}}}(t),If(t.type)}(t);case 170:return function(t){e.forEachChild(t,If)}(t);case 171:return function(t){e.findAncestor(t,function(e){return e.parent&&170===e.parent.kind&&e.parent.extendsType===e})||Hm(t,e.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),If(t.typeParameter)}(t);case 285:return function(t){var n=e.getJSDocHost(t);if(e.isClassDeclaration(n)||e.isClassExpression(n)){var r=e.getAllJSDocTagsOfKind(n,285);e.Debug.assert(r.length>0),r.length>1&&cn(r[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var i=Ip(t.class.expression),a=e.getClassExtendsHeritageClauseElement(n);if(a){var o=Ip(a.expression);o&&i.escapedText!==o.escapedText&&cn(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(t.tagName),e.idText(i),e.idText(o))}}else cn(n,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 291:return function(t){t.typeExpression||cn(t.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags)}(t);case 287:return function(t){if(If(t.typeExpression),!e.getParameterSymbolFromJSDoc(t)){var n=e.getHostSignatureFromJSDoc(t);n&&(Ya(n)?e.findLast(e.getJSDocTags(n),e.isJSDocParameterTag)===t&&t.typeExpression&&t.typeExpression.type&&!Vc(Us(t.typeExpression.type))&&cn(t.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,e.idText(145===t.name.kind?t.name.right:t.name)):cn(t.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,e.idText(145===t.name.kind?t.name.right:t.name)))}}(t);case 280:up(t);case 278:case 277:case 275:case 276:return Of(t),void e.forEachChild(t,If);case 281:return void function(t){Of(t),If(t.type);var n=t.parent;e.isJSDocTypeExpression(n)||cn(t,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var r=n.parent;if(e.isJSDocParameterTag(r)){var i=e.getParameterSymbolFromJSDoc(r);if(i){var a=e.getHostSignatureFromJSDoc(r);a&&e.last(a.parameters).symbol===i||cn(t,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}}else cn(t,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature)}(t);case 274:return If(t.type);case 175:return function(e){If(e.objectType),If(e.indexType),hp(Ss(e),e)}(t);case 176:return function(e){If(e.typeParameter),If(e.type),I&&!e.type&&mu(e,Y),bc(sa(Ds(e)),ae,e.typeParameter.constraint)}(t);case 232:return function(e){i&&(Op(e),Lm(e),Gp(e,e.name),Vp(e,e.name),qp(e,e.name),Xp(e,e.name),Qp(e,e.name))}(t);case 211:case 238:return Kp(t);case 212:return function(t){Tm(t)||Um(t.declarationList)||function(t){if(!function e(t){switch(t.kind){case 215:case 216:case 217:case 224:case 218:case 219:case 220:return!1;case 226:return e(t.parent)}return!0}(t.parent)){if(e.isLet(t.declarationList))return Hm(t,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);e.isConst(t.declarationList)&&Hm(t,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}}(t),e.forEach(t.declarationList.declarations,If)}(t);case 214:return function(e){Gm(e),ap(e.expression)}(t);case 215:return function(t){Gm(t),ap(t.expression),If(t.thenStatement),213===t.thenStatement.kind&&cn(t.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),If(t.elseStatement)}(t);case 216:return function(e){Gm(e),If(e.statement),ap(e.expression)}(t);case 217:return function(e){Gm(e),ap(e.expression),If(e.statement)}(t);case 218:return function(t){Gm(t)||t.initializer&&231===t.initializer.kind&&Um(t.initializer),t.initializer&&(231===t.initializer.kind?e.forEach(t.initializer.declarations,tf):ap(t.initializer)),t.condition&&ap(t.condition),t.incrementor&&ap(t.incrementor),If(t.statement),t.locals&&Mp(t)}(t);case 219:return function(t){Bm(t);var n,r=N_(t.expression);if(231===t.initializer.kind){var i=t.initializer.declarations[0];i&&e.isBindingPattern(i.name)&&cn(i.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),nf(t)}else{var a=t.initializer,o=ap(a);181===a.kind||182===a.kind?cn(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):gc(16384&(n=fs(r)).flags?ae:n,o)?Bd(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access):cn(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}jd(r,141590528)||cn(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),If(t.statement),t.locals&&Mp(t)}(t);case 220:return function(t){if(Bm(t),220===t.kind&&(t.awaitModifier?2==(6&e.getFunctionFlags(e.getContainingFunction(t)))&&T<6&&Dm(t,16384):C.downlevelIteration&&T<2&&Dm(t,256)),231===t.initializer.kind)nf(t);else{var n=t.initializer,r=rf(t.expression,t.awaitModifier);if(181===n.kind||182===n.kind)Wd(n,r||ee);else{var i=ap(n);Bd(n,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access),r&&bc(r,i,n,void 0)}}If(t.statement),t.locals&&Mp(t)}(t);case 221:case 222:return function(t){Gm(t)||function(t){for(var n=t;n;){if(e.isFunctionLike(n))return Hm(t,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(n.kind){case 226:if(t.label&&n.label.escapedText===t.label.escapedText)return!(221!==t.kind||e.isIterationStatement(n.statement,!0))&&Hm(t,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);break;case 225:if(222===t.kind&&!t.label)return!1;break;default:if(e.isIterationStatement(n,!1)&&!t.label)return!1}n=n.parent}if(t.label)return Hm(t,222===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);Hm(t,222===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)}(t)}(t);case 223:return function(t){if(!Gm(t)){var n=e.getContainingFunction(t);if(n){var r=no(Qa(n)),i=e.getFunctionFlags(n),a=1&i;if(P||t.expression||16384&r.flags){var o=t.expression?Yd(t.expression):te;if(a)return;if(156===n.kind)t.expression&&cn(t,e.Diagnostics.Setters_cannot_return_a_value);else if(154===n.kind)t.expression&&!bc(o,r,t)&&cn(t,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(e.getEffectiveReturnTypeNode(n)||lf(n))if(2&i){var s=Dp(r),c=Cp(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);s&&bc(c,s,t)}else bc(o,r,t)}else 154===n.kind||!C.noImplicitReturns||_f(n,r)||a||cn(t,e.Diagnostics.Not_all_code_paths_return_a_value)}else qm(t,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body)}}(t);case 224:return function(t){Gm(t)||16384&t.flags&&qm(t,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),ap(t.expression);var n=e.getSourceFileOfNode(t);if(!Vm(n)){var r=e.getSpanOfTokenAtPosition(n,t.pos).start;Wm(n,r,t.statement.pos-r,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}(t);case 225:return function(t){var n;Gm(t);var r=!1,a=ap(t.expression),o=Gc(a);e.forEach(t.caseBlock.clauses,function(s){if(265===s.kind&&!r)if(void 0===n)n=s;else{var c=e.getSourceFileOfNode(t),u=e.skipTrivia(c.text,s.pos);Wm(c,u,(s.statements.length>0?s.statements[0].pos:s.end)-u,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),r=!0}if(i&&264===s.kind){var l=ap(s.expression),_=Gc(l),d=a;_&&o||(l=_?Xc(l):l,d=Xc(a)),Hd(d,l)||xc(l,d,s.expression,void 0)}e.forEach(s.statements,If)}),t.caseBlock.locals&&Mp(t.caseBlock)}(t);case 226:return function(t){Gm(t)||e.findAncestor(t.parent,function(n){return e.isFunctionLike(n)?"quit":226===n.kind&&n.label.escapedText===t.label.escapedText?(Hm(t.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNode(t.label)),!0):void 0}),If(t.statement)}(t);case 227:return function(t){Gm(t)||void 0===t.expression&&function(t,n,r,i,a){var o=e.getSourceFileOfNode(t);if(!Vm(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);Lt.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,n,void 0,void 0,void 0))}}(t,e.Diagnostics.Line_break_not_permitted_here),t.expression&&ap(t.expression)}(t);case 228:return function(t){Gm(t),Kp(t.tryBlock);var n=t.catchClause;if(n){if(n.variableDeclaration)if(n.variableDeclaration.type)qm(n.variableDeclaration.type,e.Diagnostics.Catch_clause_variable_cannot_have_a_type_annotation);else if(n.variableDeclaration.initializer)qm(n.variableDeclaration.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var r=n.block.locals;r&&e.forEachKey(n.locals,function(t){var n=r.get(t);n&&0!=(2&n.flags)&&Hm(n.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,t)})}Kp(n.block)}t.finallyBlock&&Kp(t.finallyBlock)}(t);case 230:return tf(t);case 180:return function(t){return function(t){if(t.dotDotDotToken){if(t!==e.last(t.parent.elements))return Hm(t,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(179===t.name.kind||178===t.name.kind)return Hm(t.name,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern);if(t.propertyName)return Hm(t.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name);t.initializer&&Wm(t,t.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}(t),Zp(t)}(t);case 233:return function(t){t.name||e.hasModifier(t,512)||qm(t,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),yf(t),e.forEach(t.members,If),Mp(t)}(t);case 234:return function(t){if(Tm(t)||function(t){var n=!1;if(t.heritageClauses)for(var r=0,i=t.heritageClauses;r<i.length;r++){var a=i[r];if(85!==a.token)return e.Debug.assert(108===a.token),qm(a,e.Diagnostics.Interface_declaration_cannot_have_implements_clause);if(n)return qm(a,e.Diagnostics.extends_clause_already_seen);n=!0,Im(a)}}(t),ff(t.typeParameters),i){pf(t.name,e.Diagnostics.Interface_name_cannot_be_0),kp(t);var n=ir(t);if(mf(n),t===e.getDeclarationOfKind(n,234)){var r=wi(n),a=Xi(r);if(function(t,n){var r=ki(t);if(r.length<2)return!0;var i=e.createUnderscoreEscapedMap();e.forEach(zi(t).declaredProperties,function(e){i.set(e.escapedName,{prop:e,containingType:t})});for(var a=!0,o=0,s=r;o<s.length;o++)for(var c=s[o],u=0,l=ha(Xi(c,t.thisType));u<l.length;u++){var _=l[u],d=i.get(_.escapedName);if(d){if(d.containingType!==t&&0===jc(d.prop,_,pc)){a=!1;var p=Er(d.containingType),f=Er(c),m=e.chainDiagnosticMessages(void 0,e.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,Cr(_),p,f);m=e.chainDiagnosticMessages(m,e.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,Er(t),p,f),Lt.add(e.createDiagnosticForNodeFromMessageChain(n,m))}}else i.set(_.escapedName,{prop:_,containingType:c})}return a}(r,t.name)){for(var o=0,s=ki(r);o<s.length;o++)bc(a,Xi(s[o],r.thisType),t.name,e.Diagnostics.Interface_0_incorrectly_extends_interface_1);df(r)}}lp(t)}e.forEach(e.getInterfaceBaseTypeNodes(t),function(t){e.isEntityNameExpression(t.expression)||cn(t.expression,e.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),yp(t)}),e.forEach(t.members,If),i&&(_p(t),Mp(t))}(t);case 235:return function(t){Tm(t),pf(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),ff(t.typeParameters),If(t.type),Mp(t)}(t);case 236:return function(t){if(i){Tm(t),pf(t.name,e.Diagnostics.Enum_name_cannot_be_0),Vp(t,t.name),qp(t,t.name),Xp(t,t.name),Qp(t,t.name),kp(t),kf(t);var n=e.isConst(t);C.isolatedModules&&n&&2097152&t.flags&&cn(t.name,e.Diagnostics.Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided);var r=ir(t);if(t===e.getDeclarationOfKind(r,t.kind)){r.declarations.length>1&&e.forEach(r.declarations,function(t){e.isConstEnumDeclaration(t)!==n&&cn(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)});var a=!1;e.forEach(r.declarations,function(t){if(236!==t.kind)return!1;var n=t;if(!n.members.length)return!1;var r=n.members[0];r.initializer||(a?cn(r.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):a=!0)})}}}(t);case 237:return function(t){if(i){var n=e.isGlobalScopeAugmentation(t),r=2097152&t.flags;n&&!r&&cn(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);if(Af(t,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))return;Tm(t)||r||9!==t.name.kind||Hm(t.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(t.name)&&(Vp(t,t.name),Xp(t,t.name),Qp(t,t.name)),kp(t);var o=ir(t);if(512&o.flags&&o.declarations.length>1&&!r&&l(t,C.preserveConstEnums||C.isolatedModules)){var s=function(t){for(var n=0,r=t.declarations;n<r.length;n++){var i=r[n];if((233===i.kind||232===i.kind&&e.nodeIsPresent(i.body))&&!(2097152&i.flags))return i}}(o);s&&(e.getSourceFileOfNode(t)!==e.getSourceFileOfNode(s)?cn(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<s.pos&&cn(t.name,e.Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));var c=e.getDeclarationOfKind(o,233);c&&(d=c,p=e.getEnclosingBlockScopeContainer(t),f=e.getEnclosingBlockScopeContainer(d),vn(p)?vn(f):!vn(f)&&p===f)&&(hn(t).flags|=32768)}if(a)if(e.isExternalModuleAugmentation(t)){if((n||33554432&ir(t).flags)&&t.body)for(var u=0,_=t.body.statements;u<_.length;u++)Df(_[u],n)}else vn(t.parent)?n?cn(t.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(t.name))&&cn(t.name,e.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):cn(t.name,n?e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:e.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}var d,p,f;t.body&&(If(t.body),e.isGlobalScopeAugmentation(t)||Mp(t))}(t);case 242:return function(t){if(!Af(t,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(!Tm(t)&&e.hasModifiers(t)&&qm(t,e.Diagnostics.An_import_declaration_cannot_have_modifiers),Tf(t))){var n=t.importClause;n&&(n.name&&Nf(n),n.namedBindings&&(244===n.namedBindings.kind?Nf(n.namedBindings):e.forEach(n.namedBindings.elements,Nf)))}}(t);case 241:return function(t){if(!Af(t,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(Tm(t),e.isInternalModuleImportEqualsDeclaration(t)||Tf(t)))if(Nf(t),e.hasModifier(t,1)&&zn(t),252!==t.moduleReference.kind){var n=Bn(ir(t));if(n!==X){if(67216319&n.flags){var r=Cf(t.moduleReference);1920&Un(r,67217343).flags||cn(r,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(r))}67901928&n.flags&&pf(t.name,e.Diagnostics.Import_name_cannot_be_0)}}else E>=e.ModuleKind.ES2015&&!(2097152&t.flags)&&Hm(t,e.Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}(t);case 248:return function(t){if(!Af(t,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)&&(!Tm(t)&&e.hasModifiers(t)&&qm(t,e.Diagnostics.An_export_declaration_cannot_have_modifiers),!t.moduleSpecifier||Tf(t)))if(t.exportClause){e.forEach(t.exportClause.elements,Pf);var n=238===t.parent.kind&&e.isAmbientModule(t.parent.parent);272===t.parent.kind||n||!n&&238===t.parent.kind&&!t.moduleSpecifier&&2097152&t.flags||cn(t,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var r=Vn(t,t.moduleSpecifier);r&&Qn(r)&&cn(t.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Cr(r)),E!==e.ModuleKind.System&&E!==e.ModuleKind.ES2015&&E!==e.ModuleKind.ESNext&&Dm(t,32768)}}(t);case 247:return function(t){if(!Af(t,e.Diagnostics.An_export_assignment_can_only_be_used_in_a_module)){var n=272===t.parent.kind?t.parent:t.parent.parent;237!==n.kind||e.isAmbientModule(n)?(!Tm(t)&&e.hasModifiers(t)&&qm(t,e.Diagnostics.An_export_assignment_cannot_have_modifiers),71===t.expression.kind?(zn(t),C.declaration&&Mr(t.expression,!0)):Yd(t.expression),wf(n),2097152&t.flags&&!e.isEntityNameExpression(t.expression)&&Hm(t.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),!t.isExportEquals||2097152&t.flags||(E>=e.ModuleKind.ES2015?Hm(t,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):E===e.ModuleKind.System&&Hm(t,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))):cn(t,t.isExportEquals?e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace:e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}}(t);case 213:case 229:return void Gm(t);case 251:return function(e){Fp(e)}(t)}}}function Of(t){e.isInJavaScriptFile(t)||Hm(t,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function Mf(e){et&&et.push(e)}function Lf(t){e.performance.mark("beforeCheck"),function(t){var n=hn(t);if(!(1&n.flags)){if(C.skipLibCheck&&t.isDeclarationFile||C.skipDefaultLibCheck&&t.hasNoDefaultLib)return;!function(t){2097152&t.flags&&function(t){for(var n=0,r=t.statements;n<r.length;n++){var i=r[n];if((e.isDeclaration(i)||212===i.kind)&&234!==(a=i).kind&&235!==a.kind&&242!==a.kind&&241!==a.kind&&248!==a.kind&&247!==a.kind&&240!==a.kind&&!e.hasModifier(a,515)&&qm(a,e.Diagnostics.A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file))return!0}var a}(t)}(t),e.clear(It),e.clear(Ot),et=[],tt=i&&N?[]:void 0,gt=!1,e.forEach(t.statements,If),function(){for(var e=0,t=et;e<t.length;e++){var n=t[e];switch(n.kind){case 190:case 191:case 153:case 152:Id(n);break;case 155:case 156:dp(n);break;case 203:gf(n)}}}(),e.isExternalOrCommonJsModule(t)&&Mp(t),t.isDeclarationFile||function(){if(tt)for(var t=0,n=tt;t<n.length;t++){var r=n[t];switch(r.kind){case 272:case 237:Jp(r);break;case 233:case 203:zp(r),jp(r);break;case 234:jp(r);break;case 211:case 239:case 218:case 219:case 220:Lp(r);break;case 154:case 190:case 232:case 191:case 153:case 155:case 156:r.body&&Lp(r),jp(r);break;case 152:case 157:case 158:case 162:case 163:case 235:jp(r);break;default:e.Debug.fail("Node should not have been registered for unused identifiers check")}}}(),et=void 0,tt=void 0,e.isExternalOrCommonJsModule(t)&&wf(t),It.length&&(e.forEach(It,Wp),e.clear(It)),Ot.length&&(e.forEach(Ot,Hp),e.clear(Ot)),n.flags|=1}}(t),e.performance.mark("afterCheck"),e.performance.measure("Check","beforeCheck","afterCheck")}function Rf(t,n){try{return p=n,function(t){if(Bf(),t){var n=Lt.getGlobalDiagnostics(),i=n.length;Lf(t);var a=Lt.getDiagnostics(t.fileName),o=Lt.getGlobalDiagnostics();if(o!==n){var s=e.relativeComplement(n,o,e.compareDiagnostics);return e.concatenate(s,a)}return 0===i&&o.length>0?e.concatenate(o,a):a}return e.forEach(r.getSourceFiles(),Lf),Lt.getDiagnostics()}(t)}finally{p=void 0}}function Bf(){if(!i)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function zf(e){switch(e.kind){case 147:case 233:case 234:case 235:case 236:return!0}}function jf(e){for(var t=e;t.parent&&145===t.parent.kind;)t=t.parent;return t.parent&&161===t.parent.kind}function Jf(t,n){for(var r;(t=e.getContainingClass(t))&&!(r=n(t)););return r}function Kf(e,t){return!!Jf(e,function(e){return e===t})}function Uf(e){return void 0!==function(e){for(;145===e.parent.kind;)e=e.parent;return 241===e.parent.kind?e.parent.moduleReference===e&&e.parent:247===e.parent.kind?e.parent.expression===e&&e.parent:void 0}(e)}function Vf(t){if(e.isDeclarationName(t))return ir(t.parent);if(e.isInJavaScriptFile(t)&&183===t.parent.kind&&t.parent===t.parent.parent.left){var n=function(t){switch(e.getSpecialPropertyAssignmentKind(t.parent.parent)){case 1:case 3:return ir(t.parent);case 4:case 2:case 5:return ir(t.parent.parent)}}(t);if(n)return n}if(247===t.parent.kind&&e.isEntityNameExpression(t))return Un(t,70107135);if(183!==t.kind&&Uf(t)){var r=e.getAncestor(t,241);return e.Debug.assert(void 0!==r),Jn(t,!0)}if(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),function(e){for(var t=e;t.parent&&183===t.parent.kind;)t=t.parent;return t.parent&&205===t.parent.kind}(t)){var i=0;205===t.parent.kind?(i=67901928,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(i|=67216319)):i=1920,i|=2097152;var a=e.isEntityNameExpression(t)?Un(t,i):void 0;if(a)return a}if(287===t.parent.kind)return e.getParameterSymbolFromJSDoc(t.parent);if(147===t.parent.kind&&290===t.parent.parent.kind){e.Debug.assert(!e.isInJavaScriptFile(t));var o=e.getTypeParameterFromJsDoc(t.parent);return o&&o.symbol}if(e.isExpressionNode(t)){if(e.nodeIsMissing(t))return;if(71===t.kind){if(e.isJSXTagName(t)&&s_(t)){var s=d_(t.parent);return s===X?void 0:s}return Un(t,67216319,!1,!0)}if(183===t.kind||145===t.kind){var c=hn(t);return c.resolvedSymbol?c.resolvedSymbol:(183===t.kind?P_(t):w_(t),c.resolvedSymbol)}}else{if(jf(t))return Un(t,i=161===t.parent.kind?67901928:1920,!1,!0);if(260===t.parent.kind)return Oa(s_((l=(u=t.parent).parent.parent).tagName)?h_(l):v_(l,!1),u.name.escapedText)||X}var u,l;return 160===t.parent.kind?Un(t,1):void 0}function qf(t){if(272===t.kind)return e.isExternalModule(t)?rr(t.symbol):void 0;if(!(4194304&t.flags)){if(_(t))return ir(t.parent);if(e.isLiteralComputedPropertyDeclarationName(t))return ir(t.parent.parent);if(71===t.kind){if(Uf(t))return Vf(t);if(180===t.parent.kind&&178===t.parent.parent.kind&&t===t.parent.propertyName){var n=Wf(t.parent.parent),r=n&&Oa(n,t.escapedText);if(r)return r}}switch(t.kind){case 71:case 183:case 145:return Vf(t);case 99:var i=e.getThisContainer(t,!1);if(e.isFunctionLike(i)){var a=Qa(i);if(a.thisParameter)return a.thisParameter}if(e.isInExpressionContext(t))return ap(t).symbol;case 173:return Ks(t).symbol;case 97:return ap(t).symbol;case 123:var o=t.parent;return o&&154===o.kind?o.parent.symbol:void 0;case 9:case 13:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(242===t.parent.kind||248===t.parent.kind)&&t.parent.moduleSpecifier===t||e.isInJavaScriptFile(t)&&e.isRequireCall(t.parent,!1)||e.isImportCall(t.parent))return Vn(t,t);case 8:var s=e.isElementAccessExpression(t.parent)?t.parent.argumentExpression===t?ip(t.parent.expression):void 0:e.isLiteralTypeNode(t.parent)&&e.isIndexedAccessTypeNode(t.parent.parent)?Us(t.parent.parent.objectType):void 0;return s&&Oa(s,e.escapeLeadingUnderscores(t.text));case 79:case 89:case 36:return ir(t.parent);default:return}}}function Wf(t){if(4194304&t.flags)return ee;if(e.isPartOfTypeNode(t)){var n=Us(t);return n&&e.isExpressionWithTypeArgumentsInClassImplementsClause(t)&&(n=Xi(n,(r=Wf(e.getContainingClass(t))).thisType)),n}if(e.isExpressionNode(t))return Hf(t);if(e.isExpressionWithTypeArgumentsInClassExtendsClause(t)){var r,i=ki(r=wi(ir(e.getContainingClass(t))))[0];return i&&Xi(i,r.thisType)}var a,o;if(zf(t))return wi(o=ir(t));if(71===(a=t).kind&&zf(a.parent)&&a.parent.name===a)return(o=qf(t))&&wi(o);if(e.isDeclaration(t))return ci(o=ir(t));if(_(t))return(o=qf(t))&&ci(o);if(e.isBindingPattern(t))return Qr(t.parent,!0);if(Uf(t)&&(o=qf(t))){var s=wi(o);return s!==ee?s:ci(o)}return ee}function Hf(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),zs(ip(t))}function Gf(t){t=Pa(t);var n=e.createSymbolTable(ha(t));return Xf(t)&&e.forEach(ha(Ae),function(e){n.has(e.escapedName)||n.set(e.escapedName,e)}),pr(n)}function Xf(t){return e.typeHasCallOrConstructSignatures(t,J)}function Qf(t){return!(e.isGeneratedIdentifier(t)||!(t=e.getParseTreeNode(t,e.isIdentifier))||183===t.parent.kind&&t.parent.name===t||vm(t)!==j)}function Yf(t){var n=Vn(t.parent,t);if(!n||e.isShorthandAmbientModuleSymbol(n))return!0;var r=Qn(n),i=yn(n=Gn(n));return void 0===i.exportsSomeValue&&(i.exportsSomeValue=r?!!(67216319&n.flags):e.forEachEntry(er(n),function(e){return(e=Rn(e))&&!!(67216319&e.flags)})),i.exportsSomeValue}function $f(t,n){if(t=e.getParseTreeNode(t,e.isIdentifier)){var r=vm(t,function(t){var n=t.parent;return n&&e.isModuleOrEnumDeclaration(n)&&t===n.name}(t));if(r){if(1048576&r.flags){var i=rr(r.exportSymbol);if(!n&&944&i.flags&&!(3&i.flags))return;r=i}var a=ar(r);if(a){if(512&a.flags&&272===a.valueDeclaration.kind){var o=a.valueDeclaration;return o!==e.getSourceFileOfNode(t)?void 0:o}return e.findAncestor(t.parent,function(t){return e.isModuleOrEnumDeclaration(t)&&ir(t)===a})}}}}function Zf(t){if(t=e.getParseTreeNode(t,e.isIdentifier)){var n=vm(t);if(Ln(n,67216319))return Pn(n)}}function em(t){if(418&t.flags){var n=yn(t);if(void 0===n.isDeclarationWithCollidingName){var r=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(r)){var i=hn(t.valueDeclaration);if(kn(r.parent,t.escapedName,67216319,void 0,void 0,!1))n.isDeclarationWithCollidingName=!0;else if(131072&i.flags){var a=262144&i.flags,o=e.isIterationStatement(r,!1),s=211===r.kind&&e.isIterationStatement(r.parent,!1);n.isDeclarationWithCollidingName=!(e.isBlockScopedContainerTopLevel(r)||a&&(o||s))}else n.isDeclarationWithCollidingName=!1}}return n.isDeclarationWithCollidingName}return!1}function tm(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var n=vm(t);if(n&&em(n))return n.valueDeclaration}}function nm(t){if(t=e.getParseTreeNode(t,e.isDeclaration)){var n=ir(t);if(n)return em(n)}return!1}function rm(t){switch(t.kind){case 241:case 243:case 244:case 246:case 250:return am(ir(t)||X);case 248:var n=t.exportClause;return n&&e.forEach(n.elements,rm);case 247:return!t.expression||71!==t.expression.kind||am(ir(t)||X)}return!1}function im(t){return!(void 0===(t=e.getParseTreeNode(t,e.isImportEqualsDeclaration))||272!==t.parent.kind||!e.isInternalModuleImportEqualsDeclaration(t))&&am(ir(t))&&t.moduleReference&&!e.nodeIsMissing(t.moduleReference)}function am(e){var t=Bn(e);return t===X||67216319&t.flags&&(C.preserveConstEnums||!om(t))}function om(e){return Ud(e)||e.constEnumOnlyModule}function sm(t){if(e.nodeIsPresent(t.body)){var n=$a(ir(t));return n.length>1||1===n.length&&n[0].declaration!==t}return!1}function cm(t){return P&&!qa(t)&&t.initializer&&!e.hasModifier(t,92)}function um(t){return P&&qa(t)&&!t.initializer&&e.hasModifier(t,92)}function lm(e){return hn(e).flags}function _m(e){return kf(e.parent),hn(e).enumMemberValue}function dm(e){switch(e.kind){case 271:case 183:case 184:return!0}return!1}function pm(t){if(271===t.kind)return _m(t);var n=hn(t).resolvedSymbol;return n&&8&n.flags&&e.isConstEnumDeclaration(n.valueDeclaration.parent)?_m(n.valueDeclaration):void 0}function fm(t,n){if(!(t=e.getParseTreeNode(t,e.isEntityName)))return e.TypeReferenceSerializationKind.Unknown;if(n&&!(n=e.getParseTreeNode(n)))return e.TypeReferenceSerializationKind.Unknown;var r=Un(t,67216319,!0,!1,n),i=Un(t,67901928,!0,!1,n);if(r&&r===i){var a=Ko(!1);if(a&&r===a)return e.TypeReferenceSerializationKind.Promise;var o=ci(r);if(o&&yi(o))return e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!i)return e.TypeReferenceSerializationKind.ObjectType;var s=wi(i);return s===ee?e.TypeReferenceSerializationKind.Unknown:1&s.flags?e.TypeReferenceSerializationKind.ObjectType:jd(s,30720)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:jd(s,136)?e.TypeReferenceSerializationKind.BooleanType:jd(s,84)?e.TypeReferenceSerializationKind.NumberLikeType:jd(s,524322)?e.TypeReferenceSerializationKind.StringLikeType:Zc(s)?e.TypeReferenceSerializationKind.ArrayLikeType:jd(s,1536)?e.TypeReferenceSerializationKind.ESSymbolType:function(e){return 65536&e.flags&&La(e,0).length>0}(s)?e.TypeReferenceSerializationKind.TypeWithCallSignature:Vc(s)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function mm(e,t,n,r){var i=ir(e),a=!i||133120&i.flags?ee:Qc(ci(i));1024&a.flags&&a.symbol===i&&(n|=1048576),131072&n&&(a=au(a)),Er(a,t,1024|n,r)}function gm(e,t,n,r){Er(no(Qa(e)),t,1024|n,r)}function ym(e,t,n,r){Er(pu(Hf(e)),t,1024|n,r)}function hm(t){return _t.has(e.escapeLeadingUnderscores(t))}function vm(t,n){var r=hn(t).resolvedSymbol;if(r)return r;var i=t;if(n){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=jr(a))}return kn(i,t.escapedText,70362047,void 0,void 0,!0)}function bm(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var n=vm(t);if(n)return or(n).valueDeclaration}}function xm(t){if(e.isConst(t)){var n=ci(ir(t));return!!(96&n.flags&&8388608&n.flags)}return!1}function km(t,n){var r=ci(ir(t));n.writeStringLiteral(function(t){return 32&t.flags?'"'+e.escapeString(t.value)+'"':""+t.value}(r))}function Sm(t){var n=e.getExternalModuleName(t),r=qn(n,n,void 0);if(r)return e.getDeclarationOfKind(r,272)}function Dm(t,n){if((f&n)!==n&&C.importHelpers){var r=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(r,C)&&!(2097152&t.flags)){var i=(m||(m=Wn(r,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,t)||X),m);if(i!==X)for(var a=n&~f,o=1;o<=65536;o<<=1)if(a&o){var s=Cm(o);bn(i.exports,e.escapeLeadingUnderscores(s),67216319)||cn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1,e.externalHelpersModuleNameText,s)}f|=n}}}function Cm(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";case 65536:return"__makeTemplateObject";default:e.Debug.fail("Unrecognized helper")}}function Tm(t){return function(t){if(!t.decorators)return!1;if(!e.nodeCanBeDecorated(t,t.parent,t.parent.parent))return 153!==t.kind||e.nodeIsPresent(t.body)?qm(t,e.Diagnostics.Decorators_are_not_valid_here):qm(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(155===t.kind||156===t.kind){var n=e.getAllAccessorDeclarations(t.parent.members,t);if(n.firstAccessor.decorators&&t===n.secondAccessor)return qm(t,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}(t)||function(t){var n,r,i,a,o=function(t){return!!t.modifiers&&(function(t){switch(t.kind){case 155:case 156:case 154:case 151:case 150:case 153:case 152:case 159:case 237:case 242:case 241:case 248:case 247:case 190:case 191:case 148:return!1;default:if(238===t.parent.kind||272===t.parent.kind)return!1;switch(t.kind){case 232:return Em(t,120);case 233:return Em(t,117);case 234:case 212:case 235:return!0;case 236:return Em(t,76);default:return e.Debug.fail(),!1}}}(t)?qm(t,e.Diagnostics.Modifiers_cannot_appear_here):void 0)}(t);if(void 0!==o)return o;for(var s=0,c=0,u=t.modifiers;c<u.length;c++){var l=u[c];if(132!==l.kind){if(150===t.kind||152===t.kind)return Hm(l,e.Diagnostics._0_modifier_cannot_appear_on_a_type_member,e.tokenToString(l.kind));if(159===t.kind)return Hm(l,e.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,e.tokenToString(l.kind))}switch(l.kind){case 76:if(236!==t.kind&&233===t.parent.kind)return Hm(t,e.Diagnostics.A_class_member_cannot_have_the_0_keyword,e.tokenToString(76));break;case 114:case 113:case 112:var _=Pr(e.modifierToFlag(l.kind));if(28&s)return Hm(l,e.Diagnostics.Accessibility_modifier_already_seen);if(32&s)return Hm(l,e.Diagnostics._0_modifier_must_precede_1_modifier,_,"static");if(64&s)return Hm(l,e.Diagnostics._0_modifier_must_precede_1_modifier,_,"readonly");if(256&s)return Hm(l,e.Diagnostics._0_modifier_must_precede_1_modifier,_,"async");if(238===t.parent.kind||272===t.parent.kind)return Hm(l,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,_);if(128&s)return Hm(l,112===l.kind?e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier:e.Diagnostics._0_modifier_must_precede_1_modifier,_,"abstract");s|=e.modifierToFlag(l.kind);break;case 115:if(32&s)return Hm(l,e.Diagnostics._0_modifier_already_seen,"static");if(64&s)return Hm(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(256&s)return Hm(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(238===t.parent.kind||272===t.parent.kind)return Hm(l,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(148===t.kind)return Hm(l,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(128&s)return Hm(l,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");s|=32,n=l;break;case 132:if(64&s)return Hm(l,e.Diagnostics._0_modifier_already_seen,"readonly");if(151!==t.kind&&150!==t.kind&&159!==t.kind&&148!==t.kind)return Hm(l,e.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);s|=64,a=l;break;case 84:if(1&s)return Hm(l,e.Diagnostics._0_modifier_already_seen,"export");if(2&s)return Hm(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(128&s)return Hm(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(256&s)return Hm(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(233===t.parent.kind)return Hm(l,e.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"export");if(148===t.kind)return Hm(l,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");s|=1;break;case 79:var d=272===t.parent.kind?t.parent:t.parent.parent;if(237===d.kind&&!e.isAmbientModule(d))return Hm(l,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);s|=512;break;case 124:if(2&s)return Hm(l,e.Diagnostics._0_modifier_already_seen,"declare");if(256&s)return Hm(l,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(233===t.parent.kind)return Hm(l,e.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"declare");if(148===t.kind)return Hm(l,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(2097152&t.parent.flags&&238===t.parent.kind)return Hm(l,e.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);s|=2,r=l;break;case 117:if(128&s)return Hm(l,e.Diagnostics._0_modifier_already_seen,"abstract");if(233!==t.kind){if(153!==t.kind&&151!==t.kind&&155!==t.kind&&156!==t.kind)return Hm(l,e.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(233!==t.parent.kind||!e.hasModifier(t.parent,128))return Hm(l,e.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(32&s)return Hm(l,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(8&s)return Hm(l,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract")}s|=128;break;case 120:if(256&s)return Hm(l,e.Diagnostics._0_modifier_already_seen,"async");if(2&s||2097152&t.parent.flags)return Hm(l,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(148===t.kind)return Hm(l,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");s|=256,i=l}}return 154===t.kind?32&s?Hm(n,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):128&s?Hm(n,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"abstract"):256&s?Hm(i,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):64&s?Hm(a,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"readonly"):void 0:(242===t.kind||241===t.kind)&&2&s?Hm(r,e.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):148===t.kind&&92&s&&e.isBindingPattern(t.name)?Hm(t,e.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern):148===t.kind&&92&s&&t.dotDotDotToken?Hm(t,e.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter):256&s?function(t,n){switch(t.kind){case 153:case 232:case 190:case 191:return!1}return Hm(n,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}(t,i):void 0}(t)}function Em(e,t){return e.modifiers.length>1||e.modifiers[0].kind!==t}function Nm(t){if(t&&t.hasTrailingComma){var n=t.end-",".length;return Wm(t[0],n,t.end-n,e.Diagnostics.Trailing_comma_not_allowed)}}function Am(t,n){if(t&&0===t.length){var r=t.pos-"<".length;return Wm(n,r,e.skipTrivia(n.text,t.end)+">".length-r,e.Diagnostics.Type_parameter_list_cannot_be_empty)}}function Pm(t){var n=e.getSourceFileOfNode(t);return Tm(t)||Am(t.typeParameters,n)||function(t){for(var n=!1,r=t.length,i=0;i<r;i++){var a=t[i];if(a.dotDotDotToken){if(i!==r-1)return Hm(a.dotDotDotToken,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(e.isBindingPattern(a.name))return Hm(a.name,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern);if(a.questionToken)return Hm(a.questionToken,e.Diagnostics.A_rest_parameter_cannot_be_optional);if(a.initializer)return Hm(a.name,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(a.questionToken){if(n=!0,a.initializer)return Hm(a.name,e.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(n&&!a.initializer)return Hm(a.name,e.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter)}}(t.parameters)||function(t,n){if(!e.isArrowFunction(t))return!1;var r=t.equalsGreaterThanToken;return e.getLineAndCharacterOfPosition(n,r.pos).line!==e.getLineAndCharacterOfPosition(n,r.end).line&&Hm(r,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}(t,n)}function wm(t,n){return Nm(n)||function(t,n){if(n&&0===n.length){var r=e.getSourceFileOfNode(t),i=n.pos-"<".length;return Wm(r,i,e.skipTrivia(r.text,n.end)+">".length-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}}(t,n)}function Fm(t){return function(t){if(t)for(var n=0,r=t;n<r.length;n++){var i=r[n];if(204===i.kind)return Wm(i,i.pos,0,e.Diagnostics.Argument_expression_expected)}}(t)}function Im(t){var n=t.types;if(Nm(n))return!0;if(n&&0===n.length){var r=e.tokenToString(t.token);return Wm(t,n.pos,0,e.Diagnostics._0_list_cannot_be_empty,r)}return e.forEach(n,Om)}function Om(e){return wm(e,e.typeArguments)}function Mm(t){return 146===t.kind&&(198===t.expression.kind&&26===t.expression.operatorToken.kind?Hm(t.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name):void 0)}function Lm(t){if(t.asteriskToken){if(e.Debug.assert(232===t.kind||190===t.kind||153===t.kind),2097152&t.flags)return Hm(t.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!t.body)return Hm(t.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function Rm(e,t){if(e)return Hm(e,t)}function Bm(t){if(Gm(t))return!0;if(220===t.kind&&t.awaitModifier&&0==(16384&t.flags))return Hm(t.awaitModifier,e.Diagnostics.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator);if(231===t.initializer.kind){var n=t.initializer;if(!Um(n)){var r=n.declarations;if(!r.length)return!1;if(r.length>1)return qm(n.declarations[1],219===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);var i=r[0];if(i.initializer)return Hm(i.name,219===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);if(i.type)return Hm(i,219===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!1}function zm(t){if(t.parameters.length===(155===t.kind?1:2))return e.getThisParameter(t)}function jm(t,n){if(function(t){return e.isDynamicName(t)&&!Ji(t)}(t))return Hm(t,n)}function Jm(t){if(Pm(t))return!0;if(153===t.kind){if(182===t.parent.kind){if(t.modifiers&&(1!==t.modifiers.length||120!==e.first(t.modifiers).kind))return qm(t,e.Diagnostics.Modifiers_cannot_appear_here);if(Rm(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(void 0===t.body)return Wm(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(Lm(t))return!0}if(e.isClassLike(t.parent)){if(2097152&t.flags)return jm(t.name,e.Diagnostics.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(153===t.kind&&!t.body)return jm(t.name,e.Diagnostics.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(234===t.parent.kind)return jm(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(165===t.parent.kind)return jm(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function Km(e){return 9===e.kind||8===e.kind||196===e.kind&&38===e.operator&&8===e.operand.kind}function Um(t){var n=t.declarations;return!!Nm(t.declarations)||(t.declarations.length?void 0:Wm(t,n.pos,n.end-n.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty))}function Vm(e){return e.parseDiagnostics.length>0}function qm(t,n,r,i,a){var o=e.getSourceFileOfNode(t);if(!Vm(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return Lt.add(e.createFileDiagnostic(o,s.start,s.length,n,r,i,a)),!0}}function Wm(t,n,r,i,a,o,s){var c=e.getSourceFileOfNode(t);if(!Vm(c))return Lt.add(e.createFileDiagnostic(c,n,r,i,a,o,s)),!0}function Hm(t,n,r,i,a){if(!Vm(e.getSourceFileOfNode(t)))return Lt.add(e.createDiagnosticForNode(t,n,r,i,a)),!0}function Gm(t){if(2097152&t.flags){if(e.isAccessor(t.parent))return hn(t).hasReportedStatementInAmbientContext=!0;if(!hn(t).hasReportedStatementInAmbientContext&&e.isFunctionLike(t.parent))return hn(t).hasReportedStatementInAmbientContext=qm(t,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(211===t.parent.kind||238===t.parent.kind||272===t.parent.kind){var n=hn(t.parent);if(!n.hasReportedStatementInAmbientContext)return n.hasReportedStatementInAmbientContext=qm(t,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}}function Xm(t){if(32&t.numericLiteralFlags){var n=void 0;if(T>=1?n=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,177)?n=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,271)&&(n=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),n){var r=e.isPrefixUnaryExpression(t.parent)&&38===t.parent.operator;return Hm(r?t.parent:t,n,(r?"-":"")+"0o"+t.text)}}}},function(e){e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes"}(t||(t={}))}(l||(l={})),function(e){function t(t){var n=e.createNode(t,-1,-1);return n.flags|=8,n}function n(t,n){return t!==n&&(Lt(t,n),Pt(t,n),e.aggregateTransformFlags(t)),t}function r(t,n){if(t){if(e.isNodeArray(t))return t}else t=[];var r=t;return r.pos=-1,r.end=-1,r.hasTrailingComma=n,r}function i(e){if(void 0!==e){var n=t(e.kind);for(var r in n.flags|=e.flags,Lt(n,e),e)!n.hasOwnProperty(r)&&e.hasOwnProperty(r)&&(n[r]=e[r]);return n}}function a(t){return"number"==typeof t?o(t+""):"boolean"==typeof t?t?d():p():e.isString(t)?s(t):((r=s(e.getTextOfIdentifierOrLiteral(n=t))).textSourceNode=n,r);var n,r}function o(e){var n=t(8);return n.text=e,n.numericLiteralFlags=0,n}function s(e){var n=t(9);return n.text=e,n}function c(n,i){var a=t(71);return a.escapedText=e.escapeLeadingUnderscores(n),a.originalKeywordKind=n?e.stringToToken(n):0,a.autoGenerateFlags=0,a.autoGenerateId=0,i&&(a.typeArguments=r(i)),a}e.updateNode=n,e.createNodeArray=r,e.getSynthesizedClone=i,e.createLiteral=a,e.createNumericLiteral=o,e.createIdentifier=c,e.updateIdentifier=function(t,r){return t.typeArguments!==r?n(c(e.idText(t),r),t):t};var u,l=0;function _(e){return t(e)}function d(){return t(101)}function p(){return t(86)}function f(e,n){var r=t(145);return r.left=e,r.right=Et(n),r}function m(n){var r=t(146);return r.expression=function(t){return e.isBinaryExpression(t)&&26===t.operatorToken.kind||296===t.kind?te(t):t}(n),r}function g(e,n,r){var i=t(147);return i.name=Et(e),i.constraint=n,i.default=r,i}function y(n,r,i,a,o,s,c){var u=t(148);return u.decorators=Nt(n),u.modifiers=Nt(r),u.dotDotDotToken=i,u.name=Et(a),u.questionToken=o,u.type=s,u.initializer=c?e.parenthesizeExpressionForList(c):void 0,u}function h(n){var r=t(149);return r.expression=e.parenthesizeForAccess(n),r}function v(e,n,r,i,a){var o=t(150);return o.modifiers=Nt(e),o.name=Et(n),o.questionToken=r,o.type=i,o.initializer=a,o}function b(e,n,r,i,a,o){var s=t(151);return s.decorators=Nt(e),s.modifiers=Nt(n),s.name=Et(r),s.questionToken=void 0!==i&&55===i.kind?i:void 0,s.exclamationToken=void 0!==i&&51===i.kind?i:void 0,s.type=a,s.initializer=o,s}function x(e,t,n,r,i){var a=E(152,e,t,n);return a.name=Et(r),a.questionToken=i,a}function k(e,n,i,a,o,s,c,u,l){var _=t(153);return _.decorators=Nt(e),_.modifiers=Nt(n),_.asteriskToken=i,_.name=Et(a),_.questionToken=o,_.typeParameters=Nt(s),_.parameters=r(c),_.type=u,_.body=l,_}function S(e,n,i,a){var o=t(154);return o.decorators=Nt(e),o.modifiers=Nt(n),o.typeParameters=void 0,o.parameters=r(i),o.type=void 0,o.body=a,o}function D(e,n,i,a,o,s){var c=t(155);return c.decorators=Nt(e),c.modifiers=Nt(n),c.name=Et(i),c.typeParameters=void 0,c.parameters=r(a),c.type=o,c.body=s,c}function C(e,n,i,a,o){var s=t(156);return s.decorators=Nt(e),s.modifiers=Nt(n),s.name=Et(i),s.typeParameters=void 0,s.parameters=r(a),s.body=o,s}function T(e,n,i,a){var o=t(159);return o.decorators=Nt(e),o.modifiers=Nt(n),o.parameters=r(i),o.type=a,o}function E(e,n,r,i,a){var o=t(e);return o.typeParameters=Nt(n),o.parameters=Nt(r),o.type=i,o.typeArguments=Nt(a),o}function N(e,t,r,i){return e.typeParameters!==t||e.parameters!==r||e.type!==i?n(E(e.kind,t,r,i),e):e}function A(e,n){var r=t(160);return r.parameterName=Et(e),r.type=n,r}function P(n,r){var i=t(161);return i.typeName=Et(n),i.typeArguments=r&&e.parenthesizeTypeParameters(r),i}function w(e){var n=t(164);return n.exprName=e,n}function F(e){var n=t(165);return n.members=r(e),n}function I(n){var r=t(166);return r.elementType=e.parenthesizeArrayTypeMember(n),r}function O(e){var n=t(167);return n.elementTypes=r(e),n}function M(n,r){var i=t(n);return i.types=e.parenthesizeElementTypeMembers(r),i}function L(e,t){return e.types!==t?n(M(e.kind,t),e):e}function R(n,r,i,a){var o=t(170);return o.checkType=e.parenthesizeConditionalTypeMember(n),o.extendsType=e.parenthesizeConditionalTypeMember(r),o.trueType=i,o.falseType=a,o}function B(e){var n=t(171);return n.typeParameter=e,n}function z(e){var n=t(172);return n.type=e,n}function j(n,r){var i=t(174);return i.operator="number"==typeof n?n:128,i.type=e.parenthesizeElementTypeMember("number"==typeof n?r:n),i}function J(n,r){var i=t(175);return i.objectType=e.parenthesizeElementTypeMember(n),i.indexType=r,i}function K(e,n,r,i){var a=t(176);return a.readonlyToken=e,a.typeParameter=n,a.questionToken=r,a.type=i,a}function U(e){var n=t(177);return n.literal=e,n}function V(e){var n=t(178);return n.elements=r(e),n}function q(e){var n=t(179);return n.elements=r(e),n}function W(e,n,r,i){var a=t(180);return a.dotDotDotToken=e,a.propertyName=Et(n),a.name=Et(r),a.initializer=i,a}function H(n,i){var a=t(181);return a.elements=e.parenthesizeListElements(r(n)),i&&(a.multiLine=!0),a}function G(e,n){var i=t(182);return i.properties=r(e),n&&(i.multiLine=!0),i}function X(n,r){var i=t(183);return i.expression=e.parenthesizeForAccess(n),i.name=Et(r),wt(i,131072),i}function Q(n,r){var i,o=t(184);return o.expression=e.parenthesizeForAccess(n),o.argumentExpression=e.isString(i=r)||"number"==typeof i?a(i):i,o}function Y(n,i,a){var o=t(185);return o.expression=e.parenthesizeForAccess(n),o.typeArguments=Nt(i),o.arguments=e.parenthesizeListElements(r(a)),o}function $(n,i,a){var o=t(186);return o.expression=e.parenthesizeForNew(n),o.typeArguments=Nt(i),o.arguments=a?e.parenthesizeListElements(r(a)):void 0,o}function Z(n,r){var i=t(187);return i.tag=e.parenthesizeForAccess(n),i.template=r,i}function ee(n,r){var i=t(188);return i.type=n,i.expression=e.parenthesizePrefixOperand(r),i}function te(e){var n=t(189);return n.expression=e,n}function ne(e,n,i,a,o,s,c){var u=t(190);return u.modifiers=Nt(e),u.asteriskToken=n,u.name=Et(i),u.typeParameters=Nt(a),u.parameters=r(o),u.type=s,u.body=c,u}function re(n,i,a,o,s,c){var u=t(191);return u.modifiers=Nt(n),u.typeParameters=Nt(i),u.parameters=r(a),u.type=o,u.equalsGreaterThanToken=s||_(36),u.body=e.parenthesizeConciseBody(c),u}function ie(n){var r=t(192);return r.expression=e.parenthesizePrefixOperand(n),r}function ae(n){var r=t(193);return r.expression=e.parenthesizePrefixOperand(n),r}function oe(n){var r=t(194);return r.expression=e.parenthesizePrefixOperand(n),r}function se(n){var r=t(195);return r.expression=e.parenthesizePrefixOperand(n),r}function ce(n,r){var i=t(196);return i.operator=n,i.operand=e.parenthesizePrefixOperand(r),i}function ue(n,r){var i=t(197);return i.operand=e.parenthesizePostfixOperand(n),i.operator=r,i}function le(n,r,i){var a,o=t(198),s="number"==typeof(a=r)?_(a):a,c=s.kind;return o.left=e.parenthesizeBinaryOperand(c,n,!0,void 0),o.operatorToken=s,o.right=e.parenthesizeBinaryOperand(c,i,!1,o.left),o}function _e(n,r,i,a,o){var s=t(199);return s.condition=e.parenthesizeForConditionalHead(n),s.questionToken=o?r:_(55),s.whenTrue=e.parenthesizeSubexpressionOfConditionalExpression(o?i:r),s.colonToken=o?a:_(56),s.whenFalse=e.parenthesizeSubexpressionOfConditionalExpression(o||i),s}function de(e,n){var i=t(200);return i.head=e,i.templateSpans=r(n),i}function pe(e,n){var r=t(201);return r.asteriskToken=e&&39===e.kind?e:void 0,r.expression=e&&39!==e.kind?e:n,r}function fe(n){var r=t(202);return r.expression=e.parenthesizeExpressionForList(n),r}function me(e,n,i,a,o){var s=t(203);return s.decorators=void 0,s.modifiers=Nt(e),s.name=Et(n),s.typeParameters=Nt(i),s.heritageClauses=Nt(a),s.members=r(o),s}function ge(n,r){var i=t(205);return i.expression=e.parenthesizeForAccess(r),i.typeArguments=Nt(n),i}function ye(e,n){var r=t(206);return r.expression=e,r.type=n,r}function he(n){var r=t(207);return r.expression=e.parenthesizeForAccess(n),r}function ve(e,n){var r=t(208);return r.keywordToken=e,r.name=n,r}function be(e,n){var r=t(209);return r.expression=e,r.literal=n,r}function xe(e,n){var i=t(211);return i.statements=r(e),n&&(i.multiLine=n),i}function ke(n,r){var i=t(212);return i.decorators=void 0,i.modifiers=Nt(n),i.declarationList=e.isArray(r)?ze(r):r,i}function Se(n){var r=t(214);return r.expression=e.parenthesizeExpressionForExpressionStatement(n),r}function De(e,n,r){var i=t(215);return i.expression=e,i.thenStatement=n,i.elseStatement=r,i}function Ce(e,n){var r=t(216);return r.statement=e,r.expression=n,r}function Te(e,n){var r=t(217);return r.expression=e,r.statement=n,r}function Ee(e,n,r,i){var a=t(218);return a.initializer=e,a.condition=n,a.incrementor=r,a.statement=i,a}function Ne(e,n,r){var i=t(219);return i.initializer=e,i.expression=n,i.statement=r,i}function Ae(e,n,r,i){var a=t(220);return a.awaitModifier=e,a.initializer=n,a.expression=r,a.statement=i,a}function Pe(e){var n=t(221);return n.label=Et(e),n}function we(e){var n=t(222);return n.label=Et(e),n}function Fe(e){var n=t(223);return n.expression=e,n}function Ie(e,n){var r=t(224);return r.expression=e,r.statement=n,r}function Oe(n,r){var i=t(225);return i.expression=e.parenthesizeExpressionForList(n),i.caseBlock=r,i}function Me(e,n){var r=t(226);return r.label=Et(e),r.statement=n,r}function Le(e){var n=t(227);return n.expression=e,n}function Re(e,n,r){var i=t(228);return i.tryBlock=e,i.catchClause=n,i.finallyBlock=r,i}function Be(n,r,i){var a=t(230);return a.name=Et(n),a.type=r,a.initializer=void 0!==i?e.parenthesizeExpressionForList(i):void 0,a}function ze(e,n){var i=t(231);return i.flags|=3&n,i.declarations=r(e),i}function je(e,n,i,a,o,s,c,u){var l=t(232);return l.decorators=Nt(e),l.modifiers=Nt(n),l.asteriskToken=i,l.name=Et(a),l.typeParameters=Nt(o),l.parameters=r(s),l.type=c,l.body=u,l}function Je(e,n,i,a,o,s){var c=t(233);return c.decorators=Nt(e),c.modifiers=Nt(n),c.name=Et(i),c.typeParameters=Nt(a),c.heritageClauses=Nt(o),c.members=r(s),c}function Ke(e,n,i,a,o,s){var c=t(234);return c.decorators=Nt(e),c.modifiers=Nt(n),c.name=Et(i),c.typeParameters=Nt(a),c.heritageClauses=Nt(o),c.members=r(s),c}function Ue(e,n,r,i,a){var o=t(235);return o.decorators=Nt(e),o.modifiers=Nt(n),o.name=Et(r),o.typeParameters=Nt(i),o.type=a,o}function Ve(e,n,i,a){var o=t(236);return o.decorators=Nt(e),o.modifiers=Nt(n),o.name=Et(i),o.members=r(a),o}function qe(e,n,r,i,a){var o=t(237);return o.flags|=532&a,o.decorators=Nt(e),o.modifiers=Nt(n),o.name=r,o.body=i,o}function We(e){var n=t(238);return n.statements=r(e),n}function He(e){var n=t(239);return n.clauses=r(e),n}function Ge(e){var n=t(240);return n.name=Et(e),n}function Xe(e,n,r,i){var a=t(241);return a.decorators=Nt(e),a.modifiers=Nt(n),a.name=Et(r),a.moduleReference=i,a}function Qe(e,n,r,i){var a=t(242);return a.decorators=Nt(e),a.modifiers=Nt(n),a.importClause=r,a.moduleSpecifier=i,a}function Ye(e,n){var r=t(243);return r.name=e,r.namedBindings=n,r}function $e(e){var n=t(244);return n.name=e,n}function Ze(e){var n=t(245);return n.elements=r(e),n}function et(e,n){var r=t(246);return r.propertyName=e,r.name=n,r}function tt(n,r,i,a){var o=t(247);return o.decorators=Nt(n),o.modifiers=Nt(r),o.isExportEquals=i,o.expression=i?e.parenthesizeBinaryOperand(58,a,!1,void 0):e.parenthesizeDefaultExpression(a),o}function nt(e,n,r,i){var a=t(248);return a.decorators=Nt(e),a.modifiers=Nt(n),a.exportClause=r,a.moduleSpecifier=i,a}function rt(e){var n=t(249);return n.elements=r(e),n}function it(e,n){var r=t(250);return r.propertyName=Et(e),r.name=Et(n),r}function at(e){var n=t(252);return n.expression=e,n}function ot(e,n,i){var a=t(253);return a.openingElement=e,a.children=r(n),a.closingElement=i,a}function st(e,n){var r=t(254);return r.tagName=e,r.attributes=n,r}function ct(e,n){var r=t(255);return r.tagName=e,r.attributes=n,r}function ut(e){var n=t(256);return n.tagName=e,n}function lt(e,n,i){var a=t(257);return a.openingFragment=e,a.children=r(n),a.closingFragment=i,a}function _t(e,n){var r=t(260);return r.name=e,r.initializer=n,r}function dt(e){var n=t(261);return n.properties=r(e),n}function pt(e){var n=t(262);return n.expression=e,n}function ft(e,n){var r=t(263);return r.dotDotDotToken=e,r.expression=n,r}function mt(n,i){var a=t(264);return a.expression=e.parenthesizeExpressionForList(n),a.statements=r(i),a}function gt(e){var n=t(265);return n.statements=r(e),n}function yt(e,n){var i=t(266);return i.token=e,i.types=r(n),i}function ht(n,r){var i=t(267);return i.variableDeclaration=e.isString(n)?Be(n):n,i.block=r,i}function vt(n,r){var i=t(268);return i.name=Et(n),i.questionToken=void 0,i.initializer=e.parenthesizeExpressionForList(r),i}function bt(n,r){var i=t(269);return i.name=Et(n),i.objectAssignmentInitializer=void 0!==r?e.parenthesizeExpressionForList(r):void 0,i}function xt(n){var r=t(270);return r.expression=void 0!==n?e.parenthesizeExpressionForList(n):void 0,r}function kt(n,r){var i=t(271);return i.name=Et(n),i.initializer=r&&e.parenthesizeExpressionForList(r),i}function St(e,n){var r=t(295);return r.expression=e,r.original=n,Pt(r,n),r}function Dt(t){if(e.nodeIsSynthesized(t)&&!e.isParseTreeNode(t)&&!t.original&&!t.emitNode&&!t.id){if(296===t.kind)return t.elements;if(e.isBinaryExpression(t)&&26===t.operatorToken.kind)return[t.left,t.right]}return t}function Ct(n){var i=t(296);return i.elements=r(e.sameFlatMap(n,Dt)),i}function Tt(t){var n=e.createNode(273);return n.sourceFiles=t,n}function Et(t){return e.isString(t)?c(t):t}function Nt(e){return e?r(e):void 0}function At(t){if(!t.emitNode){if(e.isParseTreeNode(t)){if(272===t.kind)return t.emitNode={annotatedNodes:[t]};At(e.getSourceFileOfNode(t)).annotatedNodes.push(t)}t.emitNode={}}return t.emitNode}function Pt(e,t){return t&&(e.pos=t.pos,e.end=t.end),e}function wt(e,t){return At(e).flags=t,e}function Ft(e){var t=e.emitNode;return t&&t.leadingComments}function It(e,t){return At(e).leadingComments=t,e}function Ot(e){var t=e.emitNode;return t&&t.trailingComments}function Mt(e,t){return At(e).trailingComments=t,e}function Lt(t,n){if(t.original=n,n){var r=n.emitNode;r&&(t.emitNode=(a=r.flags,o=r.leadingComments,s=r.trailingComments,c=r.commentRange,u=r.sourceMapRange,l=r.tokenSourceMapRanges,_=r.constantValue,d=r.helpers,p=r.startsOnNewLine,(i=t.emitNode)||(i={}),o&&(i.leadingComments=e.addRange(o.slice(),i.leadingComments)),s&&(i.trailingComments=e.addRange(s.slice(),i.trailingComments)),a&&(i.flags=a),c&&(i.commentRange=c),u&&(i.sourceMapRange=u),l&&(i.tokenSourceMapRanges=function(e,t){for(var n in t||(t=[]),e)t[n]=e[n];return t}(l,i.tokenSourceMapRanges)),void 0!==_&&(i.constantValue=_),d&&(i.helpers=e.addRange(i.helpers,d)),void 0!==p&&(i.startsOnNewLine=p),i))}var i,a,o,s,c,u,l,_,d,p;return t}e.createTempVariable=function(e,t){var n=c("");return n.autoGenerateFlags=1,n.autoGenerateId=l,l++,e&&e(n),t&&(n.autoGenerateFlags|=16),n},e.createLoopVariable=function(){var e=c("");return e.autoGenerateFlags=2,e.autoGenerateId=l,l++,e},e.createUniqueName=function(e){var t=c(e);return t.autoGenerateFlags=3,t.autoGenerateId=l,l++,t},e.getGeneratedNameForNode=function(e,t){var n=c("");return n.autoGenerateFlags=4,n.autoGenerateId=l,n.original=e,t&&(n.autoGenerateFlags|=8),l++,n},e.createToken=_,e.createSuper=function(){return t(97)},e.createThis=function(){return t(99)},e.createNull=function(){return t(95)},e.createTrue=d,e.createFalse=p,e.createQualifiedName=f,e.updateQualifiedName=function(e,t,r){return e.left!==t||e.right!==r?n(f(t,r),e):e},e.createComputedPropertyName=m,e.updateComputedPropertyName=function(e,t){return e.expression!==t?n(m(t),e):e},e.createTypeParameterDeclaration=g,e.updateTypeParameterDeclaration=function(e,t,r,i){return e.name!==t||e.constraint!==r||e.default!==i?n(g(t,r,i),e):e},e.createParameter=y,e.updateParameter=function(e,t,r,i,a,o,s,c){return e.decorators!==t||e.modifiers!==r||e.dotDotDotToken!==i||e.name!==a||e.questionToken!==o||e.type!==s||e.initializer!==c?n(y(t,r,i,a,o,s,c),e):e},e.createDecorator=h,e.updateDecorator=function(e,t){return e.expression!==t?n(h(t),e):e},e.createPropertySignature=v,e.updatePropertySignature=function(e,t,r,i,a,o){return e.modifiers!==t||e.name!==r||e.questionToken!==i||e.type!==a||e.initializer!==o?n(v(t,r,i,a,o),e):e},e.createProperty=b,e.updateProperty=function(e,t,r,i,a,o,s){return e.decorators!==t||e.modifiers!==r||e.name!==i||e.questionToken!==(void 0!==a&&55===a.kind?a:void 0)||e.exclamationToken!==(void 0!==a&&51===a.kind?a:void 0)||e.type!==o||e.initializer!==s?n(b(t,r,i,a,o,s),e):e},e.createMethodSignature=x,e.updateMethodSignature=function(e,t,r,i,a,o){return e.typeParameters!==t||e.parameters!==r||e.type!==i||e.name!==a||e.questionToken!==o?n(x(t,r,i,a,o),e):e},e.createMethod=k,e.updateMethod=function(e,t,r,i,a,o,s,c,u,l){return e.decorators!==t||e.modifiers!==r||e.asteriskToken!==i||e.name!==a||e.questionToken!==o||e.typeParameters!==s||e.parameters!==c||e.type!==u||e.body!==l?n(k(t,r,i,a,o,s,c,u,l),e):e},e.createConstructor=S,e.updateConstructor=function(e,t,r,i,a){return e.decorators!==t||e.modifiers!==r||e.parameters!==i||e.body!==a?n(S(t,r,i,a),e):e},e.createGetAccessor=D,e.updateGetAccessor=function(e,t,r,i,a,o,s){return e.decorators!==t||e.modifiers!==r||e.name!==i||e.parameters!==a||e.type!==o||e.body!==s?n(D(t,r,i,a,o,s),e):e},e.createSetAccessor=C,e.updateSetAccessor=function(e,t,r,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==i||e.parameters!==a||e.body!==o?n(C(t,r,i,a,o),e):e},e.createCallSignature=function(e,t,n){return E(157,e,t,n)},e.updateCallSignature=function(e,t,n,r){return N(e,t,n,r)},e.createConstructSignature=function(e,t,n){return E(158,e,t,n)},e.updateConstructSignature=function(e,t,n,r){return N(e,t,n,r)},e.createIndexSignature=T,e.updateIndexSignature=function(e,t,r,i,a){return e.parameters!==i||e.type!==a||e.decorators!==t||e.modifiers!==r?n(T(t,r,i,a),e):e},e.createSignatureDeclaration=E,e.createKeywordTypeNode=function(e){return t(e)},e.createTypePredicateNode=A,e.updateTypePredicateNode=function(e,t,r){return e.parameterName!==t||e.type!==r?n(A(t,r),e):e},e.createTypeReferenceNode=P,e.updateTypeReferenceNode=function(e,t,r){return e.typeName!==t||e.typeArguments!==r?n(P(t,r),e):e},e.createFunctionTypeNode=function(e,t,n){return E(162,e,t,n)},e.updateFunctionTypeNode=function(e,t,n,r){return N(e,t,n,r)},e.createConstructorTypeNode=function(e,t,n){return E(163,e,t,n)},e.updateConstructorTypeNode=function(e,t,n,r){return N(e,t,n,r)},e.createTypeQueryNode=w,e.updateTypeQueryNode=function(e,t){return e.exprName!==t?n(w(t),e):e},e.createTypeLiteralNode=F,e.updateTypeLiteralNode=function(e,t){return e.members!==t?n(F(t),e):e},e.createArrayTypeNode=I,e.updateArrayTypeNode=function(e,t){return e.elementType!==t?n(I(t),e):e},e.createTupleTypeNode=O,e.updateTypleTypeNode=function(e,t){return e.elementTypes!==t?n(O(t),e):e},e.createUnionTypeNode=function(e){return M(168,e)},e.updateUnionTypeNode=function(e,t){return L(e,t)},e.createIntersectionTypeNode=function(e){return M(169,e)},e.updateIntersectionTypeNode=function(e,t){return L(e,t)},e.createUnionOrIntersectionTypeNode=M,e.createConditionalTypeNode=R,e.updateConditionalTypeNode=function(e,t,r,i,a){return e.checkType!==t||e.extendsType!==r||e.trueType!==i||e.falseType!==a?n(R(t,r,i,a),e):e},e.createInferTypeNode=B,e.updateInferTypeNode=function(e,t){return e.typeParameter!==t?n(B(t),e):e},e.createParenthesizedType=z,e.updateParenthesizedType=function(e,t){return e.type!==t?n(z(t),e):e},e.createThisTypeNode=function(){return t(173)},e.createTypeOperatorNode=j,e.updateTypeOperatorNode=function(e,t){return e.type!==t?n(j(e.operator,t),e):e},e.createIndexedAccessTypeNode=J,e.updateIndexedAccessTypeNode=function(e,t,r){return e.objectType!==t||e.indexType!==r?n(J(t,r),e):e},e.createMappedTypeNode=K,e.updateMappedTypeNode=function(e,t,r,i,a){return e.readonlyToken!==t||e.typeParameter!==r||e.questionToken!==i||e.type!==a?n(K(t,r,i,a),e):e},e.createLiteralTypeNode=U,e.updateLiteralTypeNode=function(e,t){return e.literal!==t?n(U(t),e):e},e.createObjectBindingPattern=V,e.updateObjectBindingPattern=function(e,t){return e.elements!==t?n(V(t),e):e},e.createArrayBindingPattern=q,e.updateArrayBindingPattern=function(e,t){return e.elements!==t?n(q(t),e):e},e.createBindingElement=W,e.updateBindingElement=function(e,t,r,i,a){return e.propertyName!==r||e.dotDotDotToken!==t||e.name!==i||e.initializer!==a?n(W(t,r,i,a),e):e},e.createArrayLiteral=H,e.updateArrayLiteral=function(e,t){return e.elements!==t?n(H(t,e.multiLine),e):e},e.createObjectLiteral=G,e.updateObjectLiteral=function(e,t){return e.properties!==t?n(G(t,e.multiLine),e):e},e.createPropertyAccess=X,e.updatePropertyAccess=function(t,r,i){return t.expression!==r||t.name!==i?n(wt(X(r,i),e.getEmitFlags(t)),t):t},e.createElementAccess=Q,e.updateElementAccess=function(e,t,r){return e.expression!==t||e.argumentExpression!==r?n(Q(t,r),e):e},e.createCall=Y,e.updateCall=function(e,t,r,i){return e.expression!==t||e.typeArguments!==r||e.arguments!==i?n(Y(t,r,i),e):e},e.createNew=$,e.updateNew=function(e,t,r,i){return e.expression!==t||e.typeArguments!==r||e.arguments!==i?n($(t,r,i),e):e},e.createTaggedTemplate=Z,e.updateTaggedTemplate=function(e,t,r){return e.tag!==t||e.template!==r?n(Z(t,r),e):e},e.createTypeAssertion=ee,e.updateTypeAssertion=function(e,t,r){return e.type!==t||e.expression!==r?n(ee(t,r),e):e},e.createParen=te,e.updateParen=function(e,t){return e.expression!==t?n(te(t),e):e},e.createFunctionExpression=ne,e.updateFunctionExpression=function(e,t,r,i,a,o,s,c){return e.name!==i||e.modifiers!==t||e.asteriskToken!==r||e.typeParameters!==a||e.parameters!==o||e.type!==s||e.body!==c?n(ne(t,r,i,a,o,s,c),e):e},e.createArrowFunction=re,e.updateArrowFunction=function(t,r,i,a,o,s,c){var u,l;return void 0===c?(u=t.equalsGreaterThanToken,l=e.cast(s,e.isConciseBody)):(u=e.cast(s,function(e){return 36===e.kind}),l=c),t.modifiers!==r||t.typeParameters!==i||t.parameters!==a||t.type!==o||t.equalsGreaterThanToken!==u||t.body!==l?n(re(r,i,a,o,u,l),t):t},e.createDelete=ie,e.updateDelete=function(e,t){return e.expression!==t?n(ie(t),e):e},e.createTypeOf=ae,e.updateTypeOf=function(e,t){return e.expression!==t?n(ae(t),e):e},e.createVoid=oe,e.updateVoid=function(e,t){return e.expression!==t?n(oe(t),e):e},e.createAwait=se,e.updateAwait=function(e,t){return e.expression!==t?n(se(t),e):e},e.createPrefix=ce,e.updatePrefix=function(e,t){return e.operand!==t?n(ce(e.operator,t),e):e},e.createPostfix=ue,e.updatePostfix=function(e,t){return e.operand!==t?n(ue(t,e.operator),e):e},e.createBinary=le,e.updateBinary=function(e,t,r,i){return e.left!==t||e.right!==r?n(le(t,i||e.operatorToken,r),e):e},e.createConditional=_e,e.updateConditional=function t(r,i){for(var a=[],o=2;o<arguments.length;o++)a[o-2]=arguments[o];if(2===a.length)return t(r,i,r.questionToken,a[0],r.colonToken,a[1]);e.Debug.assert(4===a.length);var s=a[0],c=a[1],u=a[2],l=a[3];return r.condition!==i||r.questionToken!==s||r.whenTrue!==c||r.colonToken!==u||r.whenFalse!==l?n(_e(i,s,c,u,l),r):r},e.createTemplateExpression=de,e.updateTemplateExpression=function(e,t,r){return e.head!==t||e.templateSpans!==r?n(de(t,r),e):e},e.createTemplateHead=function(e){var n=t(14);return n.text=e,n},e.createTemplateMiddle=function(e){var n=t(15);return n.text=e,n},e.createTemplateTail=function(e){var n=t(16);return n.text=e,n},e.createNoSubstitutionTemplateLiteral=function(e){var n=t(13);return n.text=e,n},e.createYield=pe,e.updateYield=function(e,t,r){return e.expression!==r||e.asteriskToken!==t?n(pe(t,r),e):e},e.createSpread=fe,e.updateSpread=function(e,t){return e.expression!==t?n(fe(t),e):e},e.createClassExpression=me,e.updateClassExpression=function(e,t,r,i,a,o){return e.modifiers!==t||e.name!==r||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?n(me(t,r,i,a,o),e):e},e.createOmittedExpression=function(){return t(204)},e.createExpressionWithTypeArguments=ge,e.updateExpressionWithTypeArguments=function(e,t,r){return e.typeArguments!==t||e.expression!==r?n(ge(t,r),e):e},e.createAsExpression=ye,e.updateAsExpression=function(e,t,r){return e.expression!==t||e.type!==r?n(ye(t,r),e):e},e.createNonNullExpression=he,e.updateNonNullExpression=function(e,t){return e.expression!==t?n(he(t),e):e},e.createMetaProperty=ve,e.updateMetaProperty=function(e,t){return e.name!==t?n(ve(e.keywordToken,t),e):e},e.createTemplateSpan=be,e.updateTemplateSpan=function(e,t,r){return e.expression!==t||e.literal!==r?n(be(t,r),e):e},e.createSemicolonClassElement=function(){return t(210)},e.createBlock=xe,e.updateBlock=function(e,t){return e.statements!==t?n(xe(t,e.multiLine),e):e},e.createVariableStatement=ke,e.updateVariableStatement=function(e,t,r){return e.modifiers!==t||e.declarationList!==r?n(ke(t,r),e):e},e.createEmptyStatement=function(){return t(213)},e.createStatement=Se,e.updateStatement=function(e,t){return e.expression!==t?n(Se(t),e):e},e.createIf=De,e.updateIf=function(e,t,r,i){return e.expression!==t||e.thenStatement!==r||e.elseStatement!==i?n(De(t,r,i),e):e},e.createDo=Ce,e.updateDo=function(e,t,r){return e.statement!==t||e.expression!==r?n(Ce(t,r),e):e},e.createWhile=Te,e.updateWhile=function(e,t,r){return e.expression!==t||e.statement!==r?n(Te(t,r),e):e},e.createFor=Ee,e.updateFor=function(e,t,r,i,a){return e.initializer!==t||e.condition!==r||e.incrementor!==i||e.statement!==a?n(Ee(t,r,i,a),e):e},e.createForIn=Ne,e.updateForIn=function(e,t,r,i){return e.initializer!==t||e.expression!==r||e.statement!==i?n(Ne(t,r,i),e):e},e.createForOf=Ae,e.updateForOf=function(e,t,r,i,a){return e.awaitModifier!==t||e.initializer!==r||e.expression!==i||e.statement!==a?n(Ae(t,r,i,a),e):e},e.createContinue=Pe,e.updateContinue=function(e,t){return e.label!==t?n(Pe(t),e):e},e.createBreak=we,e.updateBreak=function(e,t){return e.label!==t?n(we(t),e):e},e.createReturn=Fe,e.updateReturn=function(e,t){return e.expression!==t?n(Fe(t),e):e},e.createWith=Ie,e.updateWith=function(e,t,r){return e.expression!==t||e.statement!==r?n(Ie(t,r),e):e},e.createSwitch=Oe,e.updateSwitch=function(e,t,r){return e.expression!==t||e.caseBlock!==r?n(Oe(t,r),e):e},e.createLabel=Me,e.updateLabel=function(e,t,r){return e.label!==t||e.statement!==r?n(Me(t,r),e):e},e.createThrow=Le,e.updateThrow=function(e,t){return e.expression!==t?n(Le(t),e):e},e.createTry=Re,e.updateTry=function(e,t,r,i){return e.tryBlock!==t||e.catchClause!==r||e.finallyBlock!==i?n(Re(t,r,i),e):e},e.createDebuggerStatement=function(){return t(229)},e.createVariableDeclaration=Be,e.updateVariableDeclaration=function(e,t,r,i){return e.name!==t||e.type!==r||e.initializer!==i?n(Be(t,r,i),e):e},e.createVariableDeclarationList=ze,e.updateVariableDeclarationList=function(e,t){return e.declarations!==t?n(ze(t,e.flags),e):e},e.createFunctionDeclaration=je,e.updateFunctionDeclaration=function(e,t,r,i,a,o,s,c,u){return e.decorators!==t||e.modifiers!==r||e.asteriskToken!==i||e.name!==a||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==u?n(je(t,r,i,a,o,s,c,u),e):e},e.createClassDeclaration=Je,e.updateClassDeclaration=function(e,t,r,i,a,o,s){return e.decorators!==t||e.modifiers!==r||e.name!==i||e.typeParameters!==a||e.heritageClauses!==o||e.members!==s?n(Je(t,r,i,a,o,s),e):e},e.createInterfaceDeclaration=Ke,e.updateInterfaceDeclaration=function(e,t,r,i,a,o,s){return e.decorators!==t||e.modifiers!==r||e.name!==i||e.typeParameters!==a||e.heritageClauses!==o||e.members!==s?n(Ke(t,r,i,a,o,s),e):e},e.createTypeAliasDeclaration=Ue,e.updateTypeAliasDeclaration=function(e,t,r,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==i||e.typeParameters!==a||e.type!==o?n(Ue(t,r,i,a,o),e):e},e.createEnumDeclaration=Ve,e.updateEnumDeclaration=function(e,t,r,i,a){return e.decorators!==t||e.modifiers!==r||e.name!==i||e.members!==a?n(Ve(t,r,i,a),e):e},e.createModuleDeclaration=qe,e.updateModuleDeclaration=function(e,t,r,i,a){return e.decorators!==t||e.modifiers!==r||e.name!==i||e.body!==a?n(qe(t,r,i,a,e.flags),e):e},e.createModuleBlock=We,e.updateModuleBlock=function(e,t){return e.statements!==t?n(We(t),e):e},e.createCaseBlock=He,e.updateCaseBlock=function(e,t){return e.clauses!==t?n(He(t),e):e},e.createNamespaceExportDeclaration=Ge,e.updateNamespaceExportDeclaration=function(e,t){return e.name!==t?n(Ge(t),e):e},e.createImportEqualsDeclaration=Xe,e.updateImportEqualsDeclaration=function(e,t,r,i,a){return e.decorators!==t||e.modifiers!==r||e.name!==i||e.moduleReference!==a?n(Xe(t,r,i,a),e):e},e.createImportDeclaration=Qe,e.updateImportDeclaration=function(e,t,r,i,a){return e.decorators!==t||e.modifiers!==r||e.importClause!==i||e.moduleSpecifier!==a?n(Qe(t,r,i,a),e):e},e.createImportClause=Ye,e.updateImportClause=function(e,t,r){return e.name!==t||e.namedBindings!==r?n(Ye(t,r),e):e},e.createNamespaceImport=$e,e.updateNamespaceImport=function(e,t){return e.name!==t?n($e(t),e):e},e.createNamedImports=Ze,e.updateNamedImports=function(e,t){return e.elements!==t?n(Ze(t),e):e},e.createImportSpecifier=et,e.updateImportSpecifier=function(e,t,r){return e.propertyName!==t||e.name!==r?n(et(t,r),e):e},e.createExportAssignment=tt,e.updateExportAssignment=function(e,t,r,i){return e.decorators!==t||e.modifiers!==r||e.expression!==i?n(tt(t,r,e.isExportEquals,i),e):e},e.createExportDeclaration=nt,e.updateExportDeclaration=function(e,t,r,i,a){return e.decorators!==t||e.modifiers!==r||e.exportClause!==i||e.moduleSpecifier!==a?n(nt(t,r,i,a),e):e},e.createNamedExports=rt,e.updateNamedExports=function(e,t){return e.elements!==t?n(rt(t),e):e},e.createExportSpecifier=it,e.updateExportSpecifier=function(e,t,r){return e.propertyName!==t||e.name!==r?n(it(t,r),e):e},e.createExternalModuleReference=at,e.updateExternalModuleReference=function(e,t){return e.expression!==t?n(at(t),e):e},e.createJsxElement=ot,e.updateJsxElement=function(e,t,r,i){return e.openingElement!==t||e.children!==r||e.closingElement!==i?n(ot(t,r,i),e):e},e.createJsxSelfClosingElement=st,e.updateJsxSelfClosingElement=function(e,t,r){return e.tagName!==t||e.attributes!==r?n(st(t,r),e):e},e.createJsxOpeningElement=ct,e.updateJsxOpeningElement=function(e,t,r){return e.tagName!==t||e.attributes!==r?n(ct(t,r),e):e},e.createJsxClosingElement=ut,e.updateJsxClosingElement=function(e,t){return e.tagName!==t?n(ut(t),e):e},e.createJsxFragment=lt,e.updateJsxFragment=function(e,t,r,i){return e.openingFragment!==t||e.children!==r||e.closingFragment!==i?n(lt(t,r,i),e):e},e.createJsxAttribute=_t,e.updateJsxAttribute=function(e,t,r){return e.name!==t||e.initializer!==r?n(_t(t,r),e):e},e.createJsxAttributes=dt,e.updateJsxAttributes=function(e,t){return e.properties!==t?n(dt(t),e):e},e.createJsxSpreadAttribute=pt,e.updateJsxSpreadAttribute=function(e,t){return e.expression!==t?n(pt(t),e):e},e.createJsxExpression=ft,e.updateJsxExpression=function(e,t){return e.expression!==t?n(ft(e.dotDotDotToken,t),e):e},e.createCaseClause=mt,e.updateCaseClause=function(e,t,r){return e.expression!==t||e.statements!==r?n(mt(t,r),e):e},e.createDefaultClause=gt,e.updateDefaultClause=function(e,t){return e.statements!==t?n(gt(t),e):e},e.createHeritageClause=yt,e.updateHeritageClause=function(e,t){return e.types!==t?n(yt(e.token,t),e):e},e.createCatchClause=ht,e.updateCatchClause=function(e,t,r){return e.variableDeclaration!==t||e.block!==r?n(ht(t,r),e):e},e.createPropertyAssignment=vt,e.updatePropertyAssignment=function(e,t,r){return e.name!==t||e.initializer!==r?n(vt(t,r),e):e},e.createShorthandPropertyAssignment=bt,e.updateShorthandPropertyAssignment=function(e,t,r){return e.name!==t||e.objectAssignmentInitializer!==r?n(bt(t,r),e):e},e.createSpreadAssignment=xt,e.updateSpreadAssignment=function(e,t){return e.expression!==t?n(xt(t),e):e},e.createEnumMember=kt,e.updateEnumMember=function(e,t,r){return e.name!==t||e.initializer!==r?n(kt(t,r),e):e},e.updateSourceFileNode=function(e,i){if(e.statements!==i){var a=t(272);return a.flags|=e.flags,a.statements=r(i),a.endOfFileToken=e.endOfFileToken,a.fileName=e.fileName,a.path=e.path,a.text=e.text,void 0!==e.amdDependencies&&(a.amdDependencies=e.amdDependencies),void 0!==e.moduleName&&(a.moduleName=e.moduleName),void 0!==e.referencedFiles&&(a.referencedFiles=e.referencedFiles),void 0!==e.typeReferenceDirectives&&(a.typeReferenceDirectives=e.typeReferenceDirectives),void 0!==e.languageVariant&&(a.languageVariant=e.languageVariant),void 0!==e.isDeclarationFile&&(a.isDeclarationFile=e.isDeclarationFile),void 0!==e.renamedDependencies&&(a.renamedDependencies=e.renamedDependencies),void 0!==e.hasNoDefaultLib&&(a.hasNoDefaultLib=e.hasNoDefaultLib),void 0!==e.languageVersion&&(a.languageVersion=e.languageVersion),void 0!==e.scriptKind&&(a.scriptKind=e.scriptKind),void 0!==e.externalModuleIndicator&&(a.externalModuleIndicator=e.externalModuleIndicator),void 0!==e.commonJsModuleIndicator&&(a.commonJsModuleIndicator=e.commonJsModuleIndicator),void 0!==e.identifiers&&(a.identifiers=e.identifiers),void 0!==e.nodeCount&&(a.nodeCount=e.nodeCount),void 0!==e.identifierCount&&(a.identifierCount=e.identifierCount),void 0!==e.symbolCount&&(a.symbolCount=e.symbolCount),void 0!==e.parseDiagnostics&&(a.parseDiagnostics=e.parseDiagnostics),void 0!==e.bindDiagnostics&&(a.bindDiagnostics=e.bindDiagnostics),void 0!==e.lineMap&&(a.lineMap=e.lineMap),void 0!==e.classifiableNames&&(a.classifiableNames=e.classifiableNames),void 0!==e.resolvedModules&&(a.resolvedModules=e.resolvedModules),void 0!==e.resolvedTypeReferenceDirectiveNames&&(a.resolvedTypeReferenceDirectiveNames=e.resolvedTypeReferenceDirectiveNames),void 0!==e.imports&&(a.imports=e.imports),void 0!==e.moduleAugmentations&&(a.moduleAugmentations=e.moduleAugmentations),void 0!==e.pragmas&&(a.pragmas=e.pragmas),void 0!==e.localJsxFactory&&(a.localJsxFactory=e.localJsxFactory),void 0!==e.localJsxNamespace&&(a.localJsxNamespace=e.localJsxNamespace),n(a,e)}return e},e.getMutableClone=function(e){var t=i(e);return t.pos=e.pos,t.end=e.end,t.parent=e.parent,t},e.createNotEmittedStatement=function(e){var n=t(294);return n.original=e,Pt(n,e),n},e.createEndOfDeclarationMarker=function(e){var n=t(298);return n.emitNode={},n.original=e,n},e.createMergeDeclarationMarker=function(e){var n=t(297);return n.emitNode={},n.original=e,n},e.createPartiallyEmittedExpression=St,e.updatePartiallyEmittedExpression=function(e,t){return e.expression!==t?n(St(t,e.original),e):e},e.createCommaList=Ct,e.updateCommaList=function(e,t){return e.elements!==t?n(Ct(t),e):e},e.createBundle=Tt,e.updateBundle=function(e,t){return e.sourceFiles!==t?Tt(t):e},e.createImmediatelyInvokedFunctionExpression=function(e,t,n){return Y(ne(void 0,void 0,void 0,void 0,t?[t]:[],void 0,xe(e,!0)),void 0,n?[n]:[])},e.createImmediatelyInvokedArrowFunction=function(e,t,n){return Y(re(void 0,void 0,t?[t]:[],void 0,void 0,xe(e,!0)),void 0,n?[n]:[])},e.createComma=function(e,t){return le(e,26,t)},e.createLessThan=function(e,t){return le(e,27,t)},e.createAssignment=function(e,t){return le(e,58,t)},e.createStrictEquality=function(e,t){return le(e,34,t)},e.createStrictInequality=function(e,t){return le(e,35,t)},e.createAdd=function(e,t){return le(e,37,t)},e.createSubtract=function(e,t){return le(e,38,t)},e.createPostfixIncrement=function(e){return ue(e,43)},e.createLogicalAnd=function(e,t){return le(e,53,t)},e.createLogicalOr=function(e,t){return le(e,54,t)},e.createLogicalNot=function(e){return ce(51,e)},e.createVoidZero=function(){return oe(a(0))},e.createExportDefault=function(e){return tt(void 0,void 0,!1,e)},e.createExternalModuleExport=function(e){return nt(void 0,void 0,rt([it(void 0,e)]))},e.disposeEmitNodes=function(t){var n=(t=e.getSourceFileOfNode(e.getParseTreeNode(t)))&&t.emitNode,r=n&&n.annotatedNodes;if(r)for(var i=0,a=r;i<a.length;i++)a[i].emitNode=void 0},e.getOrCreateEmitNode=At,e.setTextRange=Pt,e.setEmitFlags=wt,e.addEmitFlags=function(e,t){var n=At(e);return n.flags=n.flags|t,e},e.getSourceMapRange=function(e){var t=e.emitNode;return t&&t.sourceMapRange||e},e.setSourceMapRange=function(e,t){return At(e).sourceMapRange=t,e},e.createSourceMapSource=function(t,n,r){return new(u||(u=e.objectAllocator.getSourceMapSourceConstructor()))(t,n,r)},e.getTokenSourceMapRange=function(e,t){var n=e.emitNode,r=n&&n.tokenSourceMapRanges;return r&&r[t]},e.setTokenSourceMapRange=function(e,t,n){var r=At(e);return(r.tokenSourceMapRanges||(r.tokenSourceMapRanges=[]))[t]=n,e},e.getStartsOnNewLine=function(e){var t=e.emitNode;return t&&t.startsOnNewLine},e.setStartsOnNewLine=function(e,t){return At(e).startsOnNewLine=t,e},e.getCommentRange=function(e){var t=e.emitNode;return t&&t.commentRange||e},e.setCommentRange=function(e,t){return At(e).commentRange=t,e},e.getSyntheticLeadingComments=Ft,e.setSyntheticLeadingComments=It,e.addSyntheticLeadingComment=function(t,n,r,i){return It(t,e.append(Ft(t),{kind:n,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))},e.getSyntheticTrailingComments=Ot,e.setSyntheticTrailingComments=Mt,e.addSyntheticTrailingComment=function(t,n,r,i){return Mt(t,e.append(Ot(t),{kind:n,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))},e.getConstantValue=function(e){var t=e.emitNode;return t&&t.constantValue},e.setConstantValue=function(e,t){return At(e).constantValue=t,e},e.addEmitHelper=function(t,n){var r=At(t);return r.helpers=e.append(r.helpers,n),t},e.addEmitHelpers=function(t,n){if(e.some(n))for(var r=At(t),i=0,a=n;i<a.length;i++)r.helpers=e.appendIfUnique(r.helpers,a[i]);return t},e.removeEmitHelper=function(t,n){var r=t.emitNode;if(r){var i=r.helpers;if(i)return e.orderedRemoveItem(i,n)}return!1},e.getEmitHelpers=function(e){var t=e.emitNode;return t&&t.helpers},e.moveEmitHelpers=function(t,n,r){var i=t.emitNode,a=i&&i.helpers;if(e.some(a)){for(var o=At(n),s=0,c=0;c<a.length;c++){var u=a[c];r(u)?(s++,o.helpers=e.appendIfUnique(o.helpers,u)):s>0&&(a[c-s]=u)}s>0&&(a.length-=s)}},e.compareEmitHelpers=function(t,n){return t===n?0:t.priority===n.priority?0:void 0===t.priority?1:void 0===n.priority?-1:e.compareValues(t.priority,n.priority)},e.setOriginalNode=Lt}(l||(l={})),function(e){function t(t,n,r){if(e.isComputedPropertyName(n))return e.setTextRange(e.createElementAccess(t,n.expression),r);var i=e.setTextRange(e.isIdentifier(n)?e.createPropertyAccess(t,n):e.createElementAccess(t,n),n);return e.getOrCreateEmitNode(i).flags|=64,i}function n(t,n){var r=e.createIdentifier(t||"React");return r.flags&=-9,r.parent=e.getParseTreeNode(n),r}function r(t,r,i){return t?function t(r,i){if(e.isQualifiedName(r)){var a=t(r.left,i),o=e.createIdentifier(e.idText(r.right));return o.escapedText=r.right.escapedText,e.createPropertyAccess(a,o)}return n(e.idText(r),i)}(t,i):e.createPropertyAccess(n(r,i),"createElement")}function i(t){return e.setEmitFlags(e.createIdentifier(t),4098)}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=function(t,n){return"undefined"===n?e.createStrictEquality(t,e.createVoidZero()):e.createStrictEquality(e.createTypeOf(t),e.createLiteral(n))},e.createMemberAccessForPropertyName=t,e.createFunctionCall=function(t,n,r,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"call"),void 0,[n].concat(r)),i)},e.createFunctionApply=function(t,n,r,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"apply"),void 0,[n,r]),i)},e.createArraySlice=function(t,n){var r=[];return void 0!==n&&r.push("number"==typeof n?e.createLiteral(n):n),e.createCall(e.createPropertyAccess(t,"slice"),void 0,r)},e.createArrayConcat=function(t,n){return e.createCall(e.createPropertyAccess(t,"concat"),void 0,n)},e.createMathPow=function(t,n,r){return e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Math"),"pow"),void 0,[t,n]),r)},e.createExpressionForJsxElement=function(t,n,i,a,o,s,c){var u=[i];if(a&&u.push(a),o&&o.length>0)if(a||u.push(e.createNull()),o.length>1)for(var l=0,_=o;l<_.length;l++){var d=_[l];T(d),u.push(d)}else u.push(o[0]);return e.setTextRange(e.createCall(r(t,n,s),void 0,u),c)},e.createExpressionForJsxFragment=function(t,i,a,o,s){var c=[e.createPropertyAccess(n(i,o),"Fragment")];if(c.push(e.createNull()),a&&a.length>0)if(a.length>1)for(var u=0,l=a;u<l.length;u++){var _=l[u];T(_),c.push(_)}else c.push(a[0]);return e.setTextRange(e.createCall(r(t,i,o),void 0,c),s)},e.getHelperName=i;var a={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=function(t,n,r){return t.requestEmitHelper(a),e.setTextRange(e.createCall(i("__values"),void 0,[n]),r)};var o={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=function(t,n,r,a){return t.requestEmitHelper(o),e.setTextRange(e.createCall(i("__read"),void 0,void 0!==r?[n,e.createLiteral(r)]:[n]),a)};var s={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 };"};function c(t,n){var r=e.skipParentheses(t);switch(r.kind){case 71:return n;case 99:case 8:case 9:return!1;case 181:return 0!==r.elements.length;case 182:return r.properties.length>0;default:return!0}}function u(t){return e.isIdentifier(t)?e.createLiteral(t):e.isComputedPropertyName(t)?e.getMutableClone(t.expression):e.getMutableClone(t)}function l(e,t,n){return _(e,t,n,8192)}function _(t,n,r,i){var a=e.getNameOfDeclaration(t);if(a&&e.isIdentifier(a)&&!e.isGeneratedIdentifier(a)){var o=e.getMutableClone(a);return i|=e.getEmitFlags(a),r||(i|=48),n||(i|=1536),i&&e.setEmitFlags(o,i),o}return e.getGeneratedNameForNode(t)}function d(t,n,r,i){var a,o=e.createPropertyAccess(t,e.nodeIsSynthesized(n)?n:e.getSynthesizedClone(n));return e.setTextRange(o,n),i||(a|=48),r||(a|=1536),a&&e.setEmitFlags(o,a),o}function p(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function f(t,n,r){e.Debug.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");for(var i=!1,a=0,o=n.length;a<o;){var s=n[a];if(!e.isPrologueDirective(s))break;p(s)&&(i=!0),t.push(s),a++}return r&&!i&&t.push(T(e.createStatement(e.createLiteral("use strict")))),a}function m(t,n,r,i){for(var a=n.length;r<a;){var o=n[r];if(!(1048576&e.getEmitFlags(o)))break;e.append(t,i?e.visitNode(o,i,e.isStatement):o),r++}return r}function g(t){if(t=e.skipPartiallyEmittedExpressions(t),e.isLiteralKind(t.kind))return t.kind;if(198===t.kind&&37===t.operatorToken.kind){if(void 0!==t.cachedLiteralKind)return t.cachedLiteralKind;var n=g(t.left),r=e.isLiteralKind(n)&&n===g(t.right)?n:0;return t.cachedLiteralKind=r,r}return 0}function y(t){var n=e.skipPartiallyEmittedExpressions(t);return e.isLeftHandSideExpression(n)&&(186!==n.kind||n.arguments)?t:e.setTextRange(e.createParen(t),t)}function h(t){var n=e.skipPartiallyEmittedExpressions(t);return e.getExpressionPrecedence(n)>e.getOperatorPrecedence(198,26)?t:e.setTextRange(e.createParen(t),t)}function v(t){return 170===t.kind?e.createParenthesizedType(t):t}function b(t){switch(t.kind){case 168:case 169:case 162:case 163:return e.createParenthesizedType(t)}return v(t)}function x(e,t){for(;;){switch(e.kind){case 197:e=e.operand;continue;case 198:e=e.left;continue;case 199:e=e.condition;continue;case 185:if(t)return e;case 184:case 183:case 295:e=e.expression;continue}return e}}function k(e,t){switch(void 0===t&&(t=7),e.kind){case 189:return 0!=(1&t);case 188:case 206:case 207:return 0!=(2&t);case 295:return 0!=(4&t)}return!1}function S(t,n){var r;void 0===n&&(n=7);do{r=t,1&n&&(t=e.skipParentheses(t)),2&n&&(t=D(t)),4&n&&(t=e.skipPartiallyEmittedExpressions(t))}while(r!==t);return t}function D(t){for(;e.isAssertionExpression(t)||207===t.kind;)t=t.expression;return t}function C(t,n,r){return void 0===r&&(r=7),!t||!k(t,r)||189===(i=t).kind&&e.nodeIsSynthesized(i)&&e.nodeIsSynthesized(e.getSourceMapRange(i))&&e.nodeIsSynthesized(e.getCommentRange(i))&&!e.some(e.getSyntheticLeadingComments(i))&&!e.some(e.getSyntheticTrailingComments(i))?n:function(t,n){switch(t.kind){case 189:return e.updateParen(t,n);case 188:return e.updateTypeAssertion(t,t.type,n);case 206:return e.updateAsExpression(t,n,t.type);case 207:return e.updateNonNullExpression(t,n);case 295:return e.updatePartiallyEmittedExpression(t,n)}}(t,C(t.expression,n));var i}function T(t){return e.setStartsOnNewLine(t,!0)}function E(t){var n=e.getOriginalNode(t,e.isSourceFile),r=n&&n.emitNode;return r&&r.externalHelpersModuleName}function N(t,n,r){if(t)return t.moduleName?e.createLiteral(t.moduleName):t.isDeclarationFile||!r.out&&!r.outFile?void 0:e.createLiteral(e.getExternalModuleNameFromPath(n,t.fileName))}function A(t){if(e.isDeclarationBindingElement(t))return t.name;if(!e.isObjectLiteralElementLike(t))return e.isAssignmentExpression(t,!0)?A(t.left):e.isSpreadElement(t)?A(t.expression):t;switch(t.kind){case 268:return A(t.initializer);case 269:return t.name;case 270:return A(t.expression)}}function P(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 n=M(t.name);return t.initializer?e.setOriginalNode(e.setTextRange(e.createAssignment(n,t.initializer),t),t):n}return e.Debug.assertNode(t,e.isExpression),t}function w(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 n=M(t.name);return e.setOriginalNode(e.setTextRange(e.createPropertyAssignment(t.propertyName,t.initializer?e.createAssignment(n,t.initializer):n),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 F(e){switch(e.kind){case 179:case 181:return O(e);case 178:case 182:return I(e)}}function I(t){return e.isObjectBindingPattern(t)?e.setOriginalNode(e.setTextRange(e.createObjectLiteral(e.map(t.elements,w)),t),t):(e.Debug.assertNode(t,e.isObjectLiteralExpression),t)}function O(t){return e.isArrayBindingPattern(t)?e.setOriginalNode(e.setTextRange(e.createArrayLiteral(e.map(t.elements,P)),t),t):(e.Debug.assertNode(t,e.isArrayLiteralExpression),t)}function M(t){return e.isBindingPattern(t)?F(t):(e.Debug.assertNode(t,e.isExpression),t)}e.createSpreadHelper=function(t,n,r){return t.requestEmitHelper(o),t.requestEmitHelper(s),e.setTextRange(e.createCall(i("__spread"),void 0,n),r)},e.createForOfBindingStatement=function(t,n){if(e.isVariableDeclarationList(t)){var r=e.firstOrUndefined(t.declarations),i=e.updateVariableDeclaration(r,r.name,void 0,n);return e.setTextRange(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[i])),t)}var a=e.setTextRange(e.createAssignment(t,n),t);return e.setTextRange(e.createStatement(a),t)},e.insertLeadingStatement=function(t,n){return e.isBlock(t)?e.updateBlock(t,e.setTextRange(e.createNodeArray([n].concat(t.statements)),t.statements)):e.createBlock(e.createNodeArray([t,n]),!0)},e.restoreEnclosingLabel=function t(n,r,i){if(!r)return n;var a=e.updateLabel(r,r.label,226===r.statement.kind?t(n,r.statement):n);return i&&i(r),a},e.createCallBinding=function(t,n,r,i){var a,o,s=S(t,7);if(e.isSuperProperty(s))a=e.createThis(),o=s;else if(97===s.kind)a=e.createThis(),o=r<2?e.setTextRange(e.createIdentifier("_super"),s):s;else if(4096&e.getEmitFlags(s))a=e.createVoidZero(),o=y(s);else switch(s.kind){case 183:c(s.expression,i)?(a=e.createTempVariable(n),o=e.createPropertyAccess(e.setTextRange(e.createAssignment(a,s.expression),s.expression),s.name),e.setTextRange(o,s)):(a=s.expression,o=s);break;case 184:c(s.expression,i)?(a=e.createTempVariable(n),o=e.createElementAccess(e.setTextRange(e.createAssignment(a,s.expression),s.expression),s.argumentExpression),e.setTextRange(o,s)):(a=s.expression,o=s);break;default:a=e.createVoidZero(),o=y(t)}return{target:o,thisArg:a}},e.inlineExpressions=function(t){return t.length>10?e.createCommaList(t):e.reduceLeft(t,e.createComma)},e.createExpressionFromEntityName=function t(n){if(e.isQualifiedName(n)){var r=t(n.left),i=e.getMutableClone(n.right);return e.setTextRange(e.createPropertyAccess(r,i),n)}return e.getMutableClone(n)},e.createExpressionForPropertyName=u,e.createExpressionForObjectLiteralElementLike=function(n,r,i){switch(r.kind){case 155:case 156:return function(t,r,i,a){var o=e.getAllAccessorDeclarations(n.properties,r),s=o.firstAccessor,c=o.getAccessor,l=o.setAccessor;if(r===s){var _=[];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("get",d);_.push(p)}if(l){var f=e.createFunctionExpression(l.modifiers,void 0,void 0,void 0,l.parameters,void 0,l.body);e.setTextRange(f,l),e.setOriginalNode(f,l);var m=e.createPropertyAssignment("set",f);_.push(m)}_.push(e.createPropertyAssignment("enumerable",e.createTrue())),_.push(e.createPropertyAssignment("configurable",e.createTrue()));var g=e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[i,u(r.name),e.createObjectLiteral(_,a)]),s);return e.aggregateTransformFlags(g)}}(0,r,i,n.multiLine);case 268:return function(n,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(t(r,n.name,n.name),n.initializer),n),n))}(r,i);case 269:return function(n,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(t(r,n.name,n.name),e.getSynthesizedClone(n.name)),n),n))}(r,i);case 153:return function(n,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(t(r,n.name,n.name),e.setOriginalNode(e.setTextRange(e.createFunctionExpression(n.modifiers,n.asteriskToken,void 0,void 0,n.parameters,void 0,n.body),n),n)),n),n))}(r,i)}},e.getInternalName=function(e,t,n){return _(e,t,n,49152)},e.isInternalName=function(t){return 0!=(32768&e.getEmitFlags(t))},e.getLocalName=function(e,t,n){return _(e,t,n,16384)},e.isLocalName=function(t){return 0!=(16384&e.getEmitFlags(t))},e.getExportName=l,e.isExportName=function(t){return 0!=(8192&e.getEmitFlags(t))},e.getDeclarationName=function(e,t,n){return _(e,t,n)},e.getExternalModuleOrNamespaceExportName=function(t,n,r,i){return t&&e.hasModifier(n,1)?d(t,_(n),r,i):l(n,r,i)},e.getNamespaceMemberName=d,e.convertToFunctionBody=function(t,n){return e.isBlock(t)?t:e.setTextRange(e.createBlock([e.setTextRange(e.createReturn(t),t)],n),t)},e.convertFunctionDeclarationToExpression=function(t){e.Debug.assert(!!t.body);var n=e.createFunctionExpression(t.modifiers,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);return e.setOriginalNode(n,t),e.setTextRange(n,t),e.getStartsOnNewLine(t)&&e.setStartsOnNewLine(n,!0),e.aggregateTransformFlags(n),n},e.addPrologue=function(e,t,n,r){return m(e,t,f(e,t,n),r)},e.addStandardPrologue=f,e.addCustomPrologue=m,e.startsWithUseStrict=function(t){var n=e.firstOrUndefined(t);return void 0!==n&&e.isPrologueDirective(n)&&p(n)},e.ensureUseStrict=function(t){for(var n=!1,r=0,i=t;r<i.length;r++){var a=i[r];if(!e.isPrologueDirective(a))break;if(p(a)){n=!0;break}}return n?t:e.setTextRange(e.createNodeArray([T(e.createStatement(e.createLiteral("use strict")))].concat(t)),t)},e.parenthesizeBinaryOperand=function(t,n,r,i){return 189===e.skipPartiallyEmittedExpressions(n).kind?n:function(t,n,r,i){var a=e.getOperatorPrecedence(198,t),o=e.getOperatorAssociativity(198,t),s=e.skipPartiallyEmittedExpressions(n),c=e.getExpressionPrecedence(s);switch(e.compareValues(c,a)){case-1:return!(!r&&1===o&&201===n.kind);case 1:return!1;case 0:if(r)return 1===o;if(e.isBinaryExpression(s)&&s.operatorToken.kind===t){if(function(e){return 39===e||49===e||48===e||50===e}(t))return!1;if(37===t){var u=i?g(i):0;if(e.isLiteralKind(u)&&u===g(s))return!1}}return 0===e.getExpressionAssociativity(s)}}(t,n,r,i)?e.createParen(n):n},e.parenthesizeForConditionalHead=function(t){var n=e.getOperatorPrecedence(199,55),r=e.skipPartiallyEmittedExpressions(t),i=e.getExpressionPrecedence(r);return-1===e.compareValues(i,n)?e.createParen(t):t},e.parenthesizeSubexpressionOfConditionalExpression=function(t){var n=e.skipPartiallyEmittedExpressions(t);return 198===n.kind&&26===n.operatorToken.kind||296===n.kind?e.createParen(t):t},e.parenthesizeDefaultExpression=function(t){var n=e.skipPartiallyEmittedExpressions(t);return 203===n.kind||190===n.kind||296===n.kind||e.isBinaryExpression(n)&&26===n.operatorToken.kind?e.createParen(t):t},e.parenthesizeForNew=function(t){var n=x(t,!0);switch(n.kind){case 185:return e.createParen(t);case 186:return n.arguments?t:e.createParen(t)}return y(t)},e.parenthesizeForAccess=y,e.parenthesizePostfixOperand=function(t){return e.isLeftHandSideExpression(t)?t:e.setTextRange(e.createParen(t),t)},e.parenthesizePrefixOperand=function(t){return e.isUnaryExpression(t)?t:e.setTextRange(e.createParen(t),t)},e.parenthesizeListElements=function(t){for(var n,r=0;r<t.length;r++){var i=h(t[r]);void 0===n&&i===t[r]||(void 0===n&&(n=t.slice(0,r)),n.push(i))}return void 0!==n?e.setTextRange(e.createNodeArray(n,t.hasTrailingComma),t):t},e.parenthesizeExpressionForList=h,e.parenthesizeExpressionForExpressionStatement=function(t){var n=e.skipPartiallyEmittedExpressions(t);if(e.isCallExpression(n)){var r=n.expression,i=e.skipPartiallyEmittedExpressions(r).kind;if(190===i||191===i){var a=e.getMutableClone(n);return a.expression=e.setTextRange(e.createParen(r),r),C(t,a,4)}}var o=x(n,!1).kind;return 182===o||190===o?e.setTextRange(e.createParen(t),t):t},e.parenthesizeConditionalTypeMember=v,e.parenthesizeElementTypeMember=b,e.parenthesizeArrayTypeMember=function(t){switch(t.kind){case 164:case 174:return e.createParenthesizedType(t)}return b(t)},e.parenthesizeElementTypeMembers=function(t){return e.createNodeArray(e.sameMap(t,b))},e.parenthesizeTypeParameters=function(t){if(e.some(t)){for(var n=[],r=0;r<t.length;++r){var i=t[r];n.push(0===r&&e.isFunctionOrConstructorTypeNode(i)&&i.typeParameters?e.createParenthesizedType(i):i)}return e.createNodeArray(n)}},e.parenthesizeConciseBody=function(t){return e.isBlock(t)||182!==x(t,!1).kind?t:e.setTextRange(e.createParen(t),t)},function(e){e[e.Parentheses=1]="Parentheses",e[e.Assertions=2]="Assertions",e[e.PartiallyEmittedExpressions=4]="PartiallyEmittedExpressions",e[e.All=7]="All"}(e.OuterExpressionKinds||(e.OuterExpressionKinds={})),e.isOuterExpression=k,e.skipOuterExpressions=S,e.skipAssertions=D,e.recreateOuterExpressions=C,e.startOnNewLine=T,e.getExternalHelpersModuleName=E,e.getOrCreateExternalHelpersModuleNameIfNeeded=function(t,n,r,i){if(n.importHelpers&&e.isEffectiveExternalModule(t,n)){var a=E(t);if(a)return a;var o=e.getEmitModuleKind(n),s=(r||n.esModuleInterop&&i)&&o!==e.ModuleKind.System&&o!==e.ModuleKind.ES2015&&o!==e.ModuleKind.ESNext;if(!s){var c=e.getEmitHelpers(t);if(c)for(var u=0,l=c;u<l.length;u++)if(!l[u].scoped){s=!0;break}}if(s){var _=e.getOriginalNode(t,e.isSourceFile),d=e.getOrCreateEmitNode(_);return d.externalHelpersModuleName||(d.externalHelpersModuleName=e.createUniqueName(e.externalHelpersModuleNameText))}}},e.getLocalNameForExternalImport=function(t,n){var r=e.getNamespaceDeclarationNode(t);if(r&&!e.isDefaultImport(t)){var i=r.name;return e.isGeneratedIdentifier(i)?i:e.createIdentifier(e.getSourceTextOfNodeFromSourceFile(n,i)||e.idText(i))}return 242===t.kind&&t.importClause?e.getGeneratedNameForNode(t):248===t.kind&&t.moduleSpecifier?e.getGeneratedNameForNode(t):void 0},e.getExternalModuleNameLiteral=function(t,n,r,i,a){var o=e.getExternalModuleName(t);if(9===o.kind)return function(e,n,r,i){return N(r.getExternalModuleFileFromDeclaration(t),n,i)}(0,r,i,a)||function(t,n){var r=n.renamedDependencies&&n.renamedDependencies.get(t.text);return r&&e.createLiteral(r)}(o,n)||e.getSynthesizedClone(o)},e.tryGetModuleNameFromFile=N,e.getInitializerOfBindingOrAssignmentElement=function t(n){return e.isDeclarationBindingElement(n)?n.initializer:e.isPropertyAssignment(n)?e.isAssignmentExpression(n.initializer,!0)?n.initializer.right:void 0:e.isShorthandPropertyAssignment(n)?n.objectAssignmentInitializer:e.isAssignmentExpression(n,!0)?n.right:e.isSpreadElement(n)?t(n.expression):void 0},e.getTargetOfBindingOrAssignmentElement=A,e.getRestIndicatorOfBindingOrAssignmentElement=function(e){switch(e.kind){case 148:case 180:return e.dotDotDotToken;case 202:case 270:return e}},e.getPropertyNameOfBindingOrAssignmentElement=function(t){switch(t.kind){case 180:if(t.propertyName)return e.isComputedPropertyName(n=t.propertyName)&&e.isStringOrNumericLiteral(n.expression)?n.expression:n;break;case 268:var n;if(t.name)return e.isComputedPropertyName(n=t.name)&&e.isStringOrNumericLiteral(n.expression)?n.expression:n;break;case 270:return t.name}var r=A(t);if(r&&e.isPropertyName(r))return e.isComputedPropertyName(r)&&e.isStringOrNumericLiteral(r.expression)?r.expression:r;e.Debug.fail("Invalid property name for binding element.")},e.getElementsOfBindingOrAssignmentPattern=function(e){switch(e.kind){case 178:case 179:case 181:return e.elements;case 182:return e.properties}},e.convertToArrayAssignmentElement=P,e.convertToObjectAssignmentElement=w,e.convertToAssignmentPattern=F,e.convertToObjectAssignmentPattern=I,e.convertToArrayAssignmentPattern=O,e.convertToAssignmentElementTarget=M}(l||(l={})),function(e){var t=e.or(e.isTypeNode,e.isTypeParameterDeclaration);function n(t,n,r,i){if(void 0===t||void 0===n)return t;e.aggregateTransformFlags(t);var a,o=n(t);return o===t?t:void 0!==o?(a=e.isArray(o)?(i||function(t){return e.Debug.assert(t.length<=1,"Too many nodes written to output."),e.singleOrUndefined(t)})(o):o,e.Debug.assertNode(a,r),e.aggregateTransformFlags(a),a):void 0}function r(t,n,r,i,a){if(void 0===t||void 0===n)return t;var o,s=t.length;(void 0===i||i<0)&&(i=0),(void 0===a||a>s-i)&&(a=s-i),(i>0||a<s)&&(o=e.createNodeArray([],t.hasTrailingComma&&i+a===s));for(var c=0;c<a;c++){var u=t[c+i];e.aggregateTransformFlags(u);var l=void 0!==u?n(u):void 0;if((void 0!==o||void 0===l||l!==u)&&(void 0===o&&(o=e.createNodeArray(t.slice(0,c),t.hasTrailingComma),e.setTextRange(o,t)),l))if(e.isArray(l))for(var _=0,d=l;_<d.length;_++){var p=d[_];e.Debug.assertNode(p,r),e.aggregateTransformFlags(p),o.push(p)}else e.Debug.assertNode(l,r),e.aggregateTransformFlags(l),o.push(l)}return o||t}function i(t,n,i,a,o){i.startLexicalEnvironment(),t=r(t,n,e.isStatement,a),o&&!e.startsWithUseStrict(t)&&(t=e.setTextRange(e.createNodeArray([e.createStatement(e.createLiteral("use strict"))].concat(t)),t));var s=i.endLexicalEnvironment();return e.setTextRange(e.createNodeArray(e.concatenate(t,s)),t)}function a(t,n,i,a){void 0===a&&(a=r),i.startLexicalEnvironment();var o=a(t,n,e.isParameterDeclaration);return i.suspendLexicalEnvironment(),o}function o(t,r,i){i.resumeLexicalEnvironment();var a=n(t,r,e.isConciseBody),o=i.endLexicalEnvironment();if(e.some(o)){var s=e.convertToFunctionBody(a),c=e.mergeLexicalEnvironment(s.statements,o);return e.updateBlock(s,c)}return a}e.visitNode=n,e.visitNodes=r,e.visitLexicalEnvironment=i,e.visitParameterList=a,e.visitFunctionBody=o,e.visitEachChild=function(s,c,u,l,_){if(void 0===l&&(l=r),void 0!==s){var d=s.kind;if(d>0&&d<=144||173===d)return s;switch(d){case 71:return e.updateIdentifier(s,l(s.typeArguments,c,t));case 145:return e.updateQualifiedName(s,n(s.left,c,e.isEntityName),n(s.right,c,e.isIdentifier));case 146:return e.updateComputedPropertyName(s,n(s.expression,c,e.isExpression));case 147:return e.updateTypeParameterDeclaration(s,n(s.name,c,e.isIdentifier),n(s.constraint,c,e.isTypeNode),n(s.default,c,e.isTypeNode));case 148:return e.updateParameter(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),n(s.dotDotDotToken,_,e.isToken),n(s.name,c,e.isBindingName),n(s.questionToken,_,e.isToken),n(s.type,c,e.isTypeNode),n(s.initializer,c,e.isExpression));case 149:return e.updateDecorator(s,n(s.expression,c,e.isExpression));case 150:return e.updatePropertySignature(s,l(s.modifiers,c,e.isToken),n(s.name,c,e.isPropertyName),n(s.questionToken,_,e.isToken),n(s.type,c,e.isTypeNode),n(s.initializer,c,e.isExpression));case 151:return e.updateProperty(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),n(s.name,c,e.isPropertyName),n(s.questionToken,_,e.isToken),n(s.type,c,e.isTypeNode),n(s.initializer,c,e.isExpression));case 152:return e.updateMethodSignature(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),n(s.type,c,e.isTypeNode),n(s.name,c,e.isPropertyName),n(s.questionToken,_,e.isToken));case 153:return e.updateMethod(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),n(s.asteriskToken,_,e.isToken),n(s.name,c,e.isPropertyName),n(s.questionToken,_,e.isToken),l(s.typeParameters,c,e.isTypeParameterDeclaration),a(s.parameters,c,u,l),n(s.type,c,e.isTypeNode),o(s.body,c,u));case 154:return e.updateConstructor(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),a(s.parameters,c,u,l),o(s.body,c,u));case 155:return e.updateGetAccessor(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),n(s.name,c,e.isPropertyName),a(s.parameters,c,u,l),n(s.type,c,e.isTypeNode),o(s.body,c,u));case 156:return e.updateSetAccessor(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),n(s.name,c,e.isPropertyName),a(s.parameters,c,u,l),o(s.body,c,u));case 157:return e.updateCallSignature(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),n(s.type,c,e.isTypeNode));case 158:return e.updateConstructSignature(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),n(s.type,c,e.isTypeNode));case 159:return e.updateIndexSignature(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),l(s.parameters,c,e.isParameterDeclaration),n(s.type,c,e.isTypeNode));case 160:return e.updateTypePredicateNode(s,n(s.parameterName,c),n(s.type,c,e.isTypeNode));case 161:return e.updateTypeReferenceNode(s,n(s.typeName,c,e.isEntityName),l(s.typeArguments,c,e.isTypeNode));case 162:return e.updateFunctionTypeNode(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),n(s.type,c,e.isTypeNode));case 163:return e.updateConstructorTypeNode(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),n(s.type,c,e.isTypeNode));case 164:return e.updateTypeQueryNode(s,n(s.exprName,c,e.isEntityName));case 165:return e.updateTypeLiteralNode(s,l(s.members,c,e.isTypeElement));case 166:return e.updateArrayTypeNode(s,n(s.elementType,c,e.isTypeNode));case 167:return e.updateTypleTypeNode(s,l(s.elementTypes,c,e.isTypeNode));case 168:return e.updateUnionTypeNode(s,l(s.types,c,e.isTypeNode));case 169:return e.updateIntersectionTypeNode(s,l(s.types,c,e.isTypeNode));case 170:return e.updateConditionalTypeNode(s,n(s.checkType,c,e.isTypeNode),n(s.extendsType,c,e.isTypeNode),n(s.trueType,c,e.isTypeNode),n(s.falseType,c,e.isTypeNode));case 171:return e.updateInferTypeNode(s,n(s.typeParameter,c,e.isTypeParameterDeclaration));case 172:return e.updateParenthesizedType(s,n(s.type,c,e.isTypeNode));case 174:return e.updateTypeOperatorNode(s,n(s.type,c,e.isTypeNode));case 175:return e.updateIndexedAccessTypeNode(s,n(s.objectType,c,e.isTypeNode),n(s.indexType,c,e.isTypeNode));case 176:return e.updateMappedTypeNode(s,n(s.readonlyToken,_,e.isToken),n(s.typeParameter,c,e.isTypeParameterDeclaration),n(s.questionToken,_,e.isToken),n(s.type,c,e.isTypeNode));case 177:return e.updateLiteralTypeNode(s,n(s.literal,c,e.isExpression));case 178:return e.updateObjectBindingPattern(s,l(s.elements,c,e.isBindingElement));case 179:return e.updateArrayBindingPattern(s,l(s.elements,c,e.isArrayBindingElement));case 180:return e.updateBindingElement(s,n(s.dotDotDotToken,_,e.isToken),n(s.propertyName,c,e.isPropertyName),n(s.name,c,e.isBindingName),n(s.initializer,c,e.isExpression));case 181:return e.updateArrayLiteral(s,l(s.elements,c,e.isExpression));case 182:return e.updateObjectLiteral(s,l(s.properties,c,e.isObjectLiteralElementLike));case 183:return e.updatePropertyAccess(s,n(s.expression,c,e.isExpression),n(s.name,c,e.isIdentifier));case 184:return e.updateElementAccess(s,n(s.expression,c,e.isExpression),n(s.argumentExpression,c,e.isExpression));case 185:return e.updateCall(s,n(s.expression,c,e.isExpression),l(s.typeArguments,c,e.isTypeNode),l(s.arguments,c,e.isExpression));case 186:return e.updateNew(s,n(s.expression,c,e.isExpression),l(s.typeArguments,c,e.isTypeNode),l(s.arguments,c,e.isExpression));case 187:return e.updateTaggedTemplate(s,n(s.tag,c,e.isExpression),n(s.template,c,e.isTemplateLiteral));case 188:return e.updateTypeAssertion(s,n(s.type,c,e.isTypeNode),n(s.expression,c,e.isExpression));case 189:return e.updateParen(s,n(s.expression,c,e.isExpression));case 190:return e.updateFunctionExpression(s,l(s.modifiers,c,e.isModifier),n(s.asteriskToken,_,e.isToken),n(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),a(s.parameters,c,u,l),n(s.type,c,e.isTypeNode),o(s.body,c,u));case 191:return e.updateArrowFunction(s,l(s.modifiers,c,e.isModifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),a(s.parameters,c,u,l),n(s.type,c,e.isTypeNode),n(s.equalsGreaterThanToken,c,e.isToken),o(s.body,c,u));case 192:return e.updateDelete(s,n(s.expression,c,e.isExpression));case 193:return e.updateTypeOf(s,n(s.expression,c,e.isExpression));case 194:return e.updateVoid(s,n(s.expression,c,e.isExpression));case 195:return e.updateAwait(s,n(s.expression,c,e.isExpression));case 196:return e.updatePrefix(s,n(s.operand,c,e.isExpression));case 197:return e.updatePostfix(s,n(s.operand,c,e.isExpression));case 198:return e.updateBinary(s,n(s.left,c,e.isExpression),n(s.right,c,e.isExpression),n(s.operatorToken,c,e.isToken));case 199:return e.updateConditional(s,n(s.condition,c,e.isExpression),n(s.questionToken,c,e.isToken),n(s.whenTrue,c,e.isExpression),n(s.colonToken,c,e.isToken),n(s.whenFalse,c,e.isExpression));case 200:return e.updateTemplateExpression(s,n(s.head,c,e.isTemplateHead),l(s.templateSpans,c,e.isTemplateSpan));case 201:return e.updateYield(s,n(s.asteriskToken,_,e.isToken),n(s.expression,c,e.isExpression));case 202:return e.updateSpread(s,n(s.expression,c,e.isExpression));case 203:return e.updateClassExpression(s,l(s.modifiers,c,e.isModifier),n(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.heritageClauses,c,e.isHeritageClause),l(s.members,c,e.isClassElement));case 205:return e.updateExpressionWithTypeArguments(s,l(s.typeArguments,c,e.isTypeNode),n(s.expression,c,e.isExpression));case 206:return e.updateAsExpression(s,n(s.expression,c,e.isExpression),n(s.type,c,e.isTypeNode));case 207:return e.updateNonNullExpression(s,n(s.expression,c,e.isExpression));case 208:return e.updateMetaProperty(s,n(s.name,c,e.isIdentifier));case 209:return e.updateTemplateSpan(s,n(s.expression,c,e.isExpression),n(s.literal,c,e.isTemplateMiddleOrTemplateTail));case 211:return e.updateBlock(s,l(s.statements,c,e.isStatement));case 212:return e.updateVariableStatement(s,l(s.modifiers,c,e.isModifier),n(s.declarationList,c,e.isVariableDeclarationList));case 214:return e.updateStatement(s,n(s.expression,c,e.isExpression));case 215:return e.updateIf(s,n(s.expression,c,e.isExpression),n(s.thenStatement,c,e.isStatement,e.liftToBlock),n(s.elseStatement,c,e.isStatement,e.liftToBlock));case 216:return e.updateDo(s,n(s.statement,c,e.isStatement,e.liftToBlock),n(s.expression,c,e.isExpression));case 217:return e.updateWhile(s,n(s.expression,c,e.isExpression),n(s.statement,c,e.isStatement,e.liftToBlock));case 218:return e.updateFor(s,n(s.initializer,c,e.isForInitializer),n(s.condition,c,e.isExpression),n(s.incrementor,c,e.isExpression),n(s.statement,c,e.isStatement,e.liftToBlock));case 219:return e.updateForIn(s,n(s.initializer,c,e.isForInitializer),n(s.expression,c,e.isExpression),n(s.statement,c,e.isStatement,e.liftToBlock));case 220:return e.updateForOf(s,n(s.awaitModifier,c,e.isToken),n(s.initializer,c,e.isForInitializer),n(s.expression,c,e.isExpression),n(s.statement,c,e.isStatement,e.liftToBlock));case 221:return e.updateContinue(s,n(s.label,c,e.isIdentifier));case 222:return e.updateBreak(s,n(s.label,c,e.isIdentifier));case 223:return e.updateReturn(s,n(s.expression,c,e.isExpression));case 224:return e.updateWith(s,n(s.expression,c,e.isExpression),n(s.statement,c,e.isStatement,e.liftToBlock));case 225:return e.updateSwitch(s,n(s.expression,c,e.isExpression),n(s.caseBlock,c,e.isCaseBlock));case 226:return e.updateLabel(s,n(s.label,c,e.isIdentifier),n(s.statement,c,e.isStatement,e.liftToBlock));case 227:return e.updateThrow(s,n(s.expression,c,e.isExpression));case 228:return e.updateTry(s,n(s.tryBlock,c,e.isBlock),n(s.catchClause,c,e.isCatchClause),n(s.finallyBlock,c,e.isBlock));case 230:return e.updateVariableDeclaration(s,n(s.name,c,e.isBindingName),n(s.type,c,e.isTypeNode),n(s.initializer,c,e.isExpression));case 231:return e.updateVariableDeclarationList(s,l(s.declarations,c,e.isVariableDeclaration));case 232:return e.updateFunctionDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),n(s.asteriskToken,_,e.isToken),n(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),a(s.parameters,c,u,l),n(s.type,c,e.isTypeNode),o(s.body,c,u));case 233:return e.updateClassDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),n(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.heritageClauses,c,e.isHeritageClause),l(s.members,c,e.isClassElement));case 234:return e.updateInterfaceDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),n(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.heritageClauses,c,e.isHeritageClause),l(s.members,c,e.isTypeElement));case 235:return e.updateTypeAliasDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),n(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),n(s.type,c,e.isTypeNode));case 236:return e.updateEnumDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),n(s.name,c,e.isIdentifier),l(s.members,c,e.isEnumMember));case 237:return e.updateModuleDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),n(s.name,c,e.isIdentifier),n(s.body,c,e.isModuleBody));case 238:return e.updateModuleBlock(s,l(s.statements,c,e.isStatement));case 239:return e.updateCaseBlock(s,l(s.clauses,c,e.isCaseOrDefaultClause));case 240:return e.updateNamespaceExportDeclaration(s,n(s.name,c,e.isIdentifier));case 241:return e.updateImportEqualsDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),n(s.name,c,e.isIdentifier),n(s.moduleReference,c,e.isModuleReference));case 242:return e.updateImportDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),n(s.importClause,c,e.isImportClause),n(s.moduleSpecifier,c,e.isExpression));case 243:return e.updateImportClause(s,n(s.name,c,e.isIdentifier),n(s.namedBindings,c,e.isNamedImportBindings));case 244:return e.updateNamespaceImport(s,n(s.name,c,e.isIdentifier));case 245:return e.updateNamedImports(s,l(s.elements,c,e.isImportSpecifier));case 246:return e.updateImportSpecifier(s,n(s.propertyName,c,e.isIdentifier),n(s.name,c,e.isIdentifier));case 247:return e.updateExportAssignment(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),n(s.expression,c,e.isExpression));case 248:return e.updateExportDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),n(s.exportClause,c,e.isNamedExports),n(s.moduleSpecifier,c,e.isExpression));case 249:return e.updateNamedExports(s,l(s.elements,c,e.isExportSpecifier));case 250:return e.updateExportSpecifier(s,n(s.propertyName,c,e.isIdentifier),n(s.name,c,e.isIdentifier));case 252:return e.updateExternalModuleReference(s,n(s.expression,c,e.isExpression));case 253:return e.updateJsxElement(s,n(s.openingElement,c,e.isJsxOpeningElement),l(s.children,c,e.isJsxChild),n(s.closingElement,c,e.isJsxClosingElement));case 254:return e.updateJsxSelfClosingElement(s,n(s.tagName,c,e.isJsxTagNameExpression),n(s.attributes,c,e.isJsxAttributes));case 255:return e.updateJsxOpeningElement(s,n(s.tagName,c,e.isJsxTagNameExpression),n(s.attributes,c,e.isJsxAttributes));case 256:return e.updateJsxClosingElement(s,n(s.tagName,c,e.isJsxTagNameExpression));case 257:return e.updateJsxFragment(s,n(s.openingFragment,c,e.isJsxOpeningFragment),l(s.children,c,e.isJsxChild),n(s.closingFragment,c,e.isJsxClosingFragment));case 260:return e.updateJsxAttribute(s,n(s.name,c,e.isIdentifier),n(s.initializer,c,e.isStringLiteralOrJsxExpression));case 261:return e.updateJsxAttributes(s,l(s.properties,c,e.isJsxAttributeLike));case 262:return e.updateJsxSpreadAttribute(s,n(s.expression,c,e.isExpression));case 263:return e.updateJsxExpression(s,n(s.expression,c,e.isExpression));case 264:return e.updateCaseClause(s,n(s.expression,c,e.isExpression),l(s.statements,c,e.isStatement));case 265:return e.updateDefaultClause(s,l(s.statements,c,e.isStatement));case 266:return e.updateHeritageClause(s,l(s.types,c,e.isExpressionWithTypeArguments));case 267:return e.updateCatchClause(s,n(s.variableDeclaration,c,e.isVariableDeclaration),n(s.block,c,e.isBlock));case 268:return e.updatePropertyAssignment(s,n(s.name,c,e.isPropertyName),n(s.initializer,c,e.isExpression));case 269:return e.updateShorthandPropertyAssignment(s,n(s.name,c,e.isIdentifier),n(s.objectAssignmentInitializer,c,e.isExpression));case 270:return e.updateSpreadAssignment(s,n(s.expression,c,e.isExpression));case 271:return e.updateEnumMember(s,n(s.name,c,e.isPropertyName),n(s.initializer,c,e.isExpression));case 272:return e.updateSourceFileNode(s,i(s.statements,c,u));case 295:return e.updatePartiallyEmittedExpression(s,n(s.expression,c,e.isExpression));case 296:return e.updateCommaList(s,l(s.elements,c,e.isExpression));default:return s}}}}(l||(l={})),function(e){function t(e,t,n){return e?t(n,e):n}function n(e,t,n){return e?t(n,e):n}function r(r,i,a,o){if(void 0===r)return i;var s=o?n:e.reduceLeft,c=o||a,u=r.kind;if(u>0&&u<=144)return i;if(u>=160&&u<=177)return i;var l=i;switch(r.kind){case 210:case 213:case 204:case 229:case 294:break;case 145:l=t(r.left,a,l),l=t(r.right,a,l);break;case 146:l=t(r.expression,a,l);break;case 148:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 149:l=t(r.expression,a,l);break;case 150:l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.questionToken,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 151:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 153:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 154:l=s(r.modifiers,c,l),l=s(r.parameters,c,l),l=t(r.body,a,l);break;case 155:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 156:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.parameters,c,l),l=t(r.body,a,l);break;case 178:case 179:l=s(r.elements,c,l);break;case 180:l=t(r.propertyName,a,l),l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 181:l=s(r.elements,c,l);break;case 182:l=s(r.properties,c,l);break;case 183:l=t(r.expression,a,l),l=t(r.name,a,l);break;case 184:l=t(r.expression,a,l),l=t(r.argumentExpression,a,l);break;case 185:case 186:l=t(r.expression,a,l),l=s(r.typeArguments,c,l),l=s(r.arguments,c,l);break;case 187:l=t(r.tag,a,l),l=t(r.template,a,l);break;case 188:l=t(r.type,a,l),l=t(r.expression,a,l);break;case 190:l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 191:l=s(r.modifiers,c,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 189:case 192:case 193:case 194:case 195:case 201:case 202:case 207:l=t(r.expression,a,l);break;case 196:case 197:l=t(r.operand,a,l);break;case 198:l=t(r.left,a,l),l=t(r.right,a,l);break;case 199:l=t(r.condition,a,l),l=t(r.whenTrue,a,l),l=t(r.whenFalse,a,l);break;case 200:l=t(r.head,a,l),l=s(r.templateSpans,c,l);break;case 203:l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.heritageClauses,c,l),l=s(r.members,c,l);break;case 205:l=t(r.expression,a,l),l=s(r.typeArguments,c,l);break;case 206:l=t(r.expression,a,l),l=t(r.type,a,l);break;case 209:l=t(r.expression,a,l),l=t(r.literal,a,l);break;case 211:l=s(r.statements,c,l);break;case 212:l=s(r.modifiers,c,l),l=t(r.declarationList,a,l);break;case 214:l=t(r.expression,a,l);break;case 215:l=t(r.expression,a,l),l=t(r.thenStatement,a,l),l=t(r.elseStatement,a,l);break;case 216:l=t(r.statement,a,l),l=t(r.expression,a,l);break;case 217:case 224:l=t(r.expression,a,l),l=t(r.statement,a,l);break;case 218:l=t(r.initializer,a,l),l=t(r.condition,a,l),l=t(r.incrementor,a,l),l=t(r.statement,a,l);break;case 219:case 220:l=t(r.initializer,a,l),l=t(r.expression,a,l),l=t(r.statement,a,l);break;case 223:case 227:l=t(r.expression,a,l);break;case 225:l=t(r.expression,a,l),l=t(r.caseBlock,a,l);break;case 226:l=t(r.label,a,l),l=t(r.statement,a,l);break;case 228:l=t(r.tryBlock,a,l),l=t(r.catchClause,a,l),l=t(r.finallyBlock,a,l);break;case 230:l=t(r.name,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 231:l=s(r.declarations,c,l);break;case 232:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 233:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.heritageClauses,c,l),l=s(r.members,c,l);break;case 236:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.members,c,l);break;case 237:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.body,a,l);break;case 238:l=s(r.statements,c,l);break;case 239:l=s(r.clauses,c,l);break;case 241:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.moduleReference,a,l);break;case 242:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.importClause,a,l),l=t(r.moduleSpecifier,a,l);break;case 243:l=t(r.name,a,l),l=t(r.namedBindings,a,l);break;case 244:l=t(r.name,a,l);break;case 245:case 249:l=s(r.elements,c,l);break;case 246:case 250:l=t(r.propertyName,a,l),l=t(r.name,a,l);break;case 247:l=e.reduceLeft(r.decorators,a,l),l=e.reduceLeft(r.modifiers,a,l),l=t(r.expression,a,l);break;case 248:l=e.reduceLeft(r.decorators,a,l),l=e.reduceLeft(r.modifiers,a,l),l=t(r.exportClause,a,l),l=t(r.moduleSpecifier,a,l);break;case 252:l=t(r.expression,a,l);break;case 253:l=t(r.openingElement,a,l),l=e.reduceLeft(r.children,a,l),l=t(r.closingElement,a,l);break;case 257:l=t(r.openingFragment,a,l),l=e.reduceLeft(r.children,a,l),l=t(r.closingFragment,a,l);break;case 254:case 255:l=t(r.tagName,a,l),l=t(r.attributes,a,l);break;case 261:l=s(r.properties,c,l);break;case 256:l=t(r.tagName,a,l);break;case 260:l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 262:case 263:l=t(r.expression,a,l);break;case 264:l=t(r.expression,a,l);case 265:l=s(r.statements,c,l);break;case 266:l=s(r.types,c,l);break;case 267:l=t(r.variableDeclaration,a,l),l=t(r.block,a,l);break;case 268:l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 269:l=t(r.name,a,l),l=t(r.objectAssignmentInitializer,a,l);break;case 270:l=t(r.expression,a,l);break;case 271:l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 272:l=s(r.statements,c,l);break;case 295:l=t(r.expression,a,l);break;case 296:l=s(r.elements,c,l)}return l}function i(t){if(void 0===t)return 0;if(536870912&t.transformFlags)return t.transformFlags&~e.getTransformFlagsSubtreeExclusions(t.kind);var n=function(t){return e.hasModifier(t,2)||e.isTypeNode(t)&&205!==t.kind?0:r(t,0,a,o)}(t);return e.computeTransformFlagsForNode(t,n)}function a(e,t){return e|i(t)}function o(e,t){return e|function(e){if(void 0===e)return 0;for(var t=0,n=0,r=0,a=e;r<a.length;r++){var o=a[r];t|=i(o),n|=-536870913&o.transformFlags}return e.transformFlags=536870912|n,t}(t)}var s;e.reduceEachChild=r,e.mergeLexicalEnvironment=function(t,n){return e.some(n)?e.isNodeArray(t)?e.setTextRange(e.createNodeArray(e.concatenate(t,n)),t):e.addRange(t,n):t},e.liftToBlock=function(t){return s.assert(e.every(t,e.isStatement),"Cannot lift nodes to a Block."),e.singleOrUndefined(t)||e.createBlock(t)},e.aggregateTransformFlags=function(e){return i(e),e},function(t){var n=!1;t.failBadSyntaxKind=t.shouldAssert(1)?function(n,r){return t.fail((r||"Unexpected node.")+"\r\nNode "+e.formatSyntaxKind(n.kind)+" was unexpected.",t.failBadSyntaxKind)}:e.noop,t.assertEachNode=t.shouldAssert(1)?function(n,r,i){return t.assert(void 0===r||e.every(n,r),i||"Unexpected node.",function(){return"Node array did not pass test '"+t.getFunctionName(r)+"'."},t.assertEachNode)}:e.noop,t.assertNode=t.shouldAssert(1)?function(n,r,i){return t.assert(void 0===r||r(n),i||"Unexpected node.",function(){return"Node "+e.formatSyntaxKind(n.kind)+" did not pass test '"+t.getFunctionName(r)+"'."},t.assertNode)}:e.noop,t.assertOptionalNode=t.shouldAssert(1)?function(n,r,i){return t.assert(void 0===r||void 0===n||r(n),i||"Unexpected node.",function(){return"Node "+e.formatSyntaxKind(n.kind)+" did not pass test '"+t.getFunctionName(r)+"'."},t.assertOptionalNode)}:e.noop,t.assertOptionalToken=t.shouldAssert(1)?function(n,r,i){return t.assert(void 0===r||void 0===n||n.kind===r,i||"Unexpected node.",function(){return"Node "+e.formatSyntaxKind(n.kind)+" was not a '"+e.formatSyntaxKind(r)+"' token."},t.assertOptionalToken)}:e.noop,t.assertMissingNode=t.shouldAssert(1)?function(n,r){return t.assert(void 0===n,r||"Unexpected node.",function(){return"Node "+e.formatSyntaxKind(n.kind)+" was unexpected'."},t.assertMissingNode)}:e.noop,t.enableDebugInfo=function(){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 65536&this.flags?e.formatObjectFlags(this.objectFlags):""}},__debugTypeToString:{value:function(){return this.checker.typeToString(this)}}});for(var t=0,r=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()];t<r.length;t++){var i=r[t];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 n=e.getParseTreeNode(this),r=n&&e.getSourceFileOfNode(n);return r?e.getSourceTextOfNodeFromSourceFile(r,n,t):""}}})}n=!0}}}(s=e.Debug||(e.Debug={}))}(l||(l={})),function(e){function t(t){return(t=e.getOriginalNode(t))?e.getNodeId(t):0}function n(t){if(!t.importClause||!t.importClause.namedBindings)return 0;var n=t.importClause.namedBindings;return n&&e.isNamedImports(n)?n.elements.length:0}function r(t){return!!t&&!!e.isNamedImports(t)&&e.some(t.elements,i)}function i(e){return e.propertyName&&"default"===e.propertyName.escapedText}function a(t){return!!e.getNamespaceDeclarationNode(t)||n(t)>1&&r(t.importClause.namedBindings)}function o(t){return e.isDefaultImport(t)||1===n(t)&&r(t.importClause.namedBindings)}function s(t,n,r){if(e.isBindingPattern(t.name))for(var i=0,a=t.name.elements;i<a.length;i++){var o=a[i];e.isOmittedExpression(o)||(r=s(o,n,r))}else if(!e.isGeneratedIdentifier(t.name)){var c=e.idText(t.name);n.get(c)||(n.set(c,!0),r=e.append(r,t.name))}return r}function c(e,t,n){var r=e[t];return r?r.push(n):e[t]=r=[n],r}e.getOriginalNodeId=t,e.getImportNeedsImportStarHelper=a,e.getImportNeedsImportDefaultHelper=o,e.collectExternalModuleInfo=function(n,r,i){for(var u,l,_=[],d=e.createMultiMap(),p=[],f=e.createMap(),m=!1,g=!1,y=!1,h=0,v=n.statements;h<v.length;h++){var b=v[h];switch(b.kind){case 242:_.push(b),y=a(b)||o(b);break;case 241:252===b.moduleReference.kind&&_.push(b);break;case 248:if(b.moduleSpecifier)b.exportClause?_.push(b):(_.push(b),g=!0);else for(var x=0,k=b.exportClause.elements;x<k.length;x++){var S=k[x];f.get(e.idText(S.name))||(d.add(e.idText(E=S.propertyName||S.name),S),(T=r.getReferencedImportDeclaration(E)||r.getReferencedValueDeclaration(E))&&c(p,t(T),S.name),f.set(e.idText(S.name),!0),u=e.append(u,S.name))}break;case 247:b.isExportEquals&&!l&&(l=b);break;case 212:if(e.hasModifier(b,1))for(var D=0,C=b.declarationList.declarations;D<C.length;D++){var T;u=s(T=C[D],f,u)}break;case 232:e.hasModifier(b,1)&&(e.hasModifier(b,512)?m||(c(p,t(b),e.getDeclarationName(b)),m=!0):f.get(e.idText(E=b.name))||(c(p,t(b),E),f.set(e.idText(E),!0),u=e.append(u,E)));break;case 233:var E;e.hasModifier(b,1)&&(e.hasModifier(b,512)?m||(c(p,t(b),e.getDeclarationName(b)),m=!0):(E=b.name)&&!f.get(e.idText(E))&&(c(p,t(b),E),f.set(e.idText(E),!0),u=e.append(u,E)))}}var N=e.getOrCreateExternalHelpersModuleNameIfNeeded(n,i,g,y),A=N&&e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,e.createNamespaceImport(N)),e.createLiteral(e.externalHelpersModuleNameText));return A&&(e.addEmitFlags(A,67108864),_.unshift(A)),{externalImports:_,exportSpecifiers:d,exportEquals:l,hasExportStarsToExportValues:g,exportedBindings:p,exportedNames:u,externalHelpersImportDeclaration:A}},e.isSimpleCopiableExpression=function(t){return e.isStringLiteralLike(t)||8===t.kind||e.isKeyword(t.kind)||e.isIdentifier(t)}}(l||(l={})),function(e){function t(n,r){var i=e.getTargetOfBindingOrAssignmentElement(n);return e.isBindingOrAssignmentPattern(i)?function(n,r){for(var a=0,o=e.getElementsOfBindingOrAssignmentPattern(i);a<o.length;a++)if(t(o[a],r))return!0;return!1}(0,r):!!e.isIdentifier(i)&&i.escapedText===r}function n(t,a,o,s,c){if(!c){var u=e.visitNode(e.getInitializerOfBindingOrAssignmentElement(a),t.visitor,e.isExpression);u?o=o?function(t,n,r,a){return n=i(t,n,!0,a),e.createConditional(e.createTypeCheck(n,"undefined"),r,n)}(t,o,u,s):u:o||(o=e.createVoidZero())}var l=e.getTargetOfBindingOrAssignmentElement(a);e.isObjectBindingOrAssignmentPattern(l)?function(t,a,o,s,c){var u,l,_=e.getElementsOfBindingOrAssignmentPattern(o),p=_.length;1!==p&&(s=i(t,s,!e.isDeclarationBindingElement(a)||0!==p,c));for(var f=0;f<p;f++){var m=_[f];if(e.getRestIndicatorOfBindingOrAssignmentElement(m))f===p-1&&(u&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,o),u=void 0),n(t,m,y=d(t.context,s,_,l,o),m));else{var g=e.getPropertyNameOfBindingOrAssignmentElement(m);if(!(t.level>=1)||1572864&m.transformFlags||1572864&e.getTargetOfBindingOrAssignmentElement(m).transformFlags||e.isComputedPropertyName(g)){u&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,o),u=void 0);var y=r(t,s,g);e.isComputedPropertyName(g)&&(l=e.append(l,y.argumentExpression)),n(t,m,y,m)}else u=e.append(u,m)}}u&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,o)}(t,a,l,o,s):e.isArrayBindingOrAssignmentPattern(l)?function(t,r,a,o,s){var c,u,l=e.getElementsOfBindingOrAssignmentPattern(a),_=l.length;t.level<1&&t.downlevelIteration?o=i(t,e.createReadHelper(t.context,o,_>0&&e.getRestIndicatorOfBindingOrAssignmentElement(l[_-1])?void 0:_,s),!1,s):(1!==_&&(t.level<1||0===_)||e.every(l,e.isOmittedExpression))&&(o=i(t,o,!e.isDeclarationBindingElement(r)||0!==_,s));for(var d=0;d<_;d++){var p=l[d];if(t.level>=1)if(1048576&p.transformFlags){var f=e.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(f),u=e.append(u,[f,p]),c=e.append(c,t.createArrayBindingOrAssignmentElement(f))}else c=e.append(c,p);else{if(e.isOmittedExpression(p))continue;e.getRestIndicatorOfBindingOrAssignmentElement(p)?d===_-1&&n(t,p,e.createArraySlice(o,d),p):n(t,p,e.createElementAccess(o,d),p)}}if(c&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(c),o,s,a),u)for(var m=0,g=u;m<g.length;m++){var y=g[m];n(t,p=y[1],y[0],p)}}(t,a,l,o,s):t.emitBindingOrAssignment(l,o,s,a)}function r(t,n,r){if(e.isComputedPropertyName(r)){var a=i(t,e.visitNode(r.expression,t.visitor),!1,r);return e.createElementAccess(n,a)}if(e.isStringOrNumericLiteral(r))return(a=e.getSynthesizedClone(r)).text=a.text,e.createElementAccess(n,a);var o=e.createIdentifier(e.idText(r));return e.createPropertyAccess(n,o)}function i(t,n,r,i){if(e.isIdentifier(n)&&r)return n;var a=e.createTempVariable(void 0);return t.hoistTempVariables?(t.context.hoistVariableDeclaration(a),t.emitExpression(e.setTextRange(e.createAssignment(a,n),i))):t.emitBindingOrAssignment(a,n,i,void 0),a}function a(t){return e.Debug.assertEachNode(t,e.isArrayBindingElement),e.createArrayBindingPattern(t)}function o(t){return e.createArrayLiteral(e.map(t,e.convertToArrayAssignmentElement))}function s(t){return e.Debug.assertEachNode(t,e.isBindingElement),e.createObjectBindingPattern(t)}function c(t){return e.createObjectLiteral(e.map(t,e.convertToObjectAssignmentElement))}function u(t){return e.createBindingElement(void 0,void 0,t)}function l(e){return e}!function(e){e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest"}(e.FlattenLevel||(e.FlattenLevel={})),e.flattenDestructuringAssignment=function(r,a,s,u,_,d){var p,f,m=r;if(e.isDestructuringAssignment(r))for(p=r.right;e.isEmptyArrayLiteral(r.left)||e.isEmptyObjectLiteral(r.left);){if(!e.isDestructuringAssignment(p))return p;m=r=p,p=r.right}var g={context:s,level:u,downlevelIteration:s.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:y,emitBindingOrAssignment:function(t,n,r,i){e.Debug.assertNode(t,d?e.isIdentifier:e.isExpression);var o=d?d(t,n,r):e.setTextRange(e.createAssignment(e.visitNode(t,a,e.isExpression),n),r);o.original=i,y(o)},createArrayBindingOrAssignmentPattern:o,createObjectBindingOrAssignmentPattern:c,createArrayBindingOrAssignmentElement:l,visitor:a};if(p&&(p=e.visitNode(p,a,e.isExpression),e.isIdentifier(p)&&t(r,p.escapedText)?p=i(g,p,!1,m):_?p=i(g,p,!0,m):e.nodeIsSynthesized(r)&&(m=p)),n(g,r,p,m,e.isDestructuringAssignment(r)),p&&_){if(!e.some(f))return p;f.push(p)}return e.aggregateTransformFlags(e.inlineExpressions(f))||e.createOmittedExpression();function y(t){e.setEmitFlags(t,64),e.aggregateTransformFlags(t),f=e.append(f,t)}},e.flattenDestructuringBinding=function(r,o,c,l,_,d,p){var f,m=[],g=[],y={context:c,level:l,downlevelIteration:c.getCompilerOptions().downlevelIteration,hoistTempVariables:d,emitExpression:function(t){f=e.append(f,t)},emitBindingOrAssignment:P,createArrayBindingOrAssignmentPattern:a,createObjectBindingOrAssignmentPattern:s,createArrayBindingOrAssignmentElement:u,visitor:o};if(e.isVariableDeclaration(r)){var h=e.getInitializerOfBindingOrAssignmentElement(r);h&&e.isIdentifier(h)&&t(r,h.escapedText)&&(h=i(y,h,!1,h),r=e.updateVariableDeclaration(r,r.name,r.type,h))}if(n(y,r,_,r,p),f){var v=e.createTempVariable(void 0);if(d){var b=e.inlineExpressions(f);f=void 0,P(v,b,void 0,void 0)}else{c.hoistVariableDeclaration(v);var x=e.lastOrUndefined(m);x.pendingExpressions=e.append(x.pendingExpressions,e.createAssignment(v,x.value)),e.addRange(x.pendingExpressions,f),x.value=v}}for(var k=0,S=m;k<S.length;k++){var D=S[k],C=D.pendingExpressions,T=D.name,E=(b=D.value,D.location),N=D.original,A=e.createVariableDeclaration(T,void 0,C?e.inlineExpressions(e.append(C,b)):b);A.original=N,e.setTextRange(A,E),e.isIdentifier(T)&&e.setEmitFlags(A,64),e.aggregateTransformFlags(A),g.push(A)}return g;function P(t,n,r,i){e.Debug.assertNode(t,e.isBindingName),f&&(n=e.inlineExpressions(e.append(f,n)),f=void 0),m.push({pendingExpressions:f,name:t,value:n,location:r,original:i})}};var _={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 };'};function d(t,n,r,i,a){t.requestEmitHelper(_);for(var o=[],s=0,c=0;c<r.length-1;c++){var u=e.getPropertyNameOfBindingOrAssignmentElement(r[c]);if(u)if(e.isComputedPropertyName(u)){var l=i[s];s++,o.push(e.createConditional(e.createTypeCheck(l,"symbol"),l,e.createAdd(l,e.createLiteral(""))))}else o.push(e.createLiteral(u))}return e.createCall(e.getHelperName("__rest"),void 0,[n,e.setTextRange(e.createArrayLiteral(o),a)])}}(l||(l={})),function(e){var t,n,r=!1;function i(t,n,r,i,o,s){var c=[];return c.push(e.createArrayLiteral(n,!0)),c.push(r),i&&(c.push(i),o&&c.push(o)),t.requestEmitHelper(a),e.setTextRange(e.createCall(e.getHelperName("__decorate"),void 0,c),s)}!function(e){e[e.ClassAliases=1]="ClassAliases",e[e.NamespaceExports=2]="NamespaceExports",e[e.NonQualifiedEnumMembers=8]="NonQualifiedEnumMembers"}(t||(t={})),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.IsDerivedClass=64]="IsDerivedClass",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"}(n||(n={})),e.transformTypeScript=function(t){var n,a,s,u,l,_,d,p,f,m=t.startLexicalEnvironment,g=t.resumeLexicalEnvironment,y=t.endLexicalEnvironment,h=t.hoistVariableDeclaration,v=t.getEmitResolver(),b=t.getCompilerOptions(),x=e.getStrictOptionValue(b,"strictNullChecks"),k=e.getEmitScriptTarget(b),S=e.getEmitModuleKind(b),D=t.onEmitNode,C=t.onSubstituteNode;return t.onEmitNode=function(t,r,i){var a=p,o=n;e.isSourceFile(r)&&(n=r),2&_&&function(t){return 237===e.getOriginalNode(t).kind}(r)&&(p|=2),8&_&&function(t){return 236===e.getOriginalNode(t).kind}(r)&&(p|=8),D(t,r,i),p=a,n=o},t.onSubstituteNode=function(t,n){return n=C(t,n),1===t?function(t){switch(t.kind){case 71:return function(t){return function(t){if(1&_&&16777216&v.getNodeCheckFlags(t)){var n=v.getReferencedValueDeclaration(t);if(n){var r=d[n.id];if(r){var i=e.getSynthesizedClone(r);return e.setSourceMapRange(i,t),e.setCommentRange(i,t),i}}}}(t)||Be(t)||t}(t);case 183:case 184:return function(t){return function(t){var n=function(t){if(!b.isolatedModules)return e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)?v.getConstantValue(t):void 0}(t);if(void 0!==n){e.setConstantValue(t,n);var r=e.createLiteral(n);if(!b.removeComments){var i=e.isPropertyAccessExpression(t)?e.declarationNameToString(t.name):e.getTextOfNode(t.argumentExpression);e.addSyntheticTrailingComment(r,3," "+i+" ")}return r}return t}(t)}(t)}return t}(n):e.isShorthandPropertyAssignment(n)?function(t){if(2&_){var n=t.name,r=Be(n);if(r){if(t.objectAssignmentInitializer){var i=e.createAssignment(r,t.objectAssignmentInitializer);return e.setTextRange(e.createPropertyAssignment(n,i),t)}return e.setTextRange(e.createPropertyAssignment(n,r),t)}}return t}(n):n},t.enableSubstitution(183),t.enableSubstitution(184),function(r){if(r.isDeclarationFile)return r;n=r;var i=T(r,R);return e.addEmitHelpers(i,t.readEmitHelpers()),n=void 0,i};function T(t,n){var r=u,i=l;!function(t){switch(t.kind){case 272:case 239:case 238:case 211:u=t,l=void 0;break;case 233:case 232:if(e.hasModifier(t,2))break;t.name?ve(t):e.Debug.assert(233===t.kind||e.hasModifier(t,512))}}(t);var a=n(t);return u!==r&&(l=i),u=r,a}function E(e){return T(e,N)}function N(n){return 1&n.transformFlags?L(n):2&n.transformFlags?e.visitEachChild(n,E,t):n}function A(e){return T(e,P)}function P(n){switch(n.kind){case 242:case 241:case 247:case 248:return function(n){if(e.getParseTreeNode(n)!==n)return 2&n.transformFlags?e.visitEachChild(n,E,t):n;switch(n.kind){case 242:return function(t){if(!t.importClause)return t;var n=e.visitNode(t.importClause,ke,e.isImportClause);return n?e.updateImportDeclaration(t,void 0,void 0,n,t.moduleSpecifier):void 0}(n);case 241:return Ee(n);case 247:return function(n){return v.isValueAliasDeclaration(n)?e.visitEachChild(n,E,t):void 0}(n);case 248:return function(t){if(!t.exportClause)return b.isolatedModules||v.moduleExportsSomeValue(t.moduleSpecifier)?t:void 0;if(v.isValueAliasDeclaration(t)){var n=e.visitNode(t.exportClause,Ce,e.isNamedExports);return n?e.updateExportDeclaration(t,void 0,void 0,n,t.moduleSpecifier):void 0}}(n);default:e.Debug.fail("Unhandled ellided statement")}}(n);default:return N(n)}}function w(e){return T(e,F)}function F(n){if(248!==n.kind&&242!==n.kind&&243!==n.kind&&(241!==n.kind||252!==n.moduleReference.kind))return 1&n.transformFlags||e.hasModifier(n,1)?L(n):2&n.transformFlags?e.visitEachChild(n,E,t):n}function I(e){return T(e,O)}function O(t){switch(t.kind){case 154:return;case 151:case 159:case 155:case 156:case 153:return N(t);case 210:return t;default:return void e.Debug.failBadSyntaxKind(t)}}function M(t){if(!(2270&e.modifierToFlag(t.kind)||a&&84===t.kind))return t}function L(r){if(e.hasModifier(r,2)&&e.isStatement(r))return e.createNotEmittedStatement(r);switch(r.kind){case 84:case 79:return a?void 0:r;case 114:case 112:case 113:case 117:case 76:case 124:case 132:case 166:case 167:case 165:case 160:case 147:case 119:case 122:case 137:case 134:case 131:case 105:case 138:case 163:case 162:case 164:case 161:case 168:case 169:case 170:case 172:case 173:case 174:case 175:case 176:case 177:case 159:case 149:case 235:return;case 151:return function(t){var n=de(t.name,e.some(t.decorators)||!!t.initializer,!0);n&&!le(n)&&(f||(f=[])).push(n)}(r);case 240:return;case 154:return function(n){if(fe(n))return e.updateConstructor(n,e.visitNodes(n.decorators,E,e.isDecorator),e.visitNodes(n.modifiers,E,e.isModifier),e.visitParameterList(n.parameters,E,t),e.visitFunctionBody(n.body,E,t))}(r);case 234:return e.createNotEmittedStatement(r);case 233:return function(r){var a=f;f=void 0;var o=K(r,!0),s=function(t,n){var r=0;e.some(n)&&(r|=1);var i=e.getClassExtendsHeritageClauseElement(t);return i&&95!==e.skipOuterExpressions(i.expression).kind&&(r|=64),function(t){if(t.decorators&&t.decorators.length>0)return!0;var n=e.getFirstConstructorWithBody(t);return!!n&&e.forEach(n.parameters,B)}(t)&&(r|=2),e.childIsDecorated(t)&&(r|=4),Ne(t)?r|=8:function(t){return Ae(t)&&e.hasModifier(t,512)}(t)?r|=32:Pe(t)&&(r|=16),k<=1&&7&r&&(r|=128),r}(r,o);128&s&&t.startLexicalEnvironment();var c=r.name||(5&s?e.getGeneratedNameForNode(r):void 0),u=2&s?function(t,n,r){var i=e.moveRangePastDecorators(t),a=function(t){if(8388608&v.getNodeCheckFlags(t)){Re();var n=e.createUniqueName(t.name&&!e.isGeneratedIdentifier(t.name)?e.idText(t.name):"default");return d[e.getOriginalNodeId(t)]=n,h(n),n}}(t),o=e.getLocalName(t,!1,!0),s=e.visitNodes(t.heritageClauses,E,e.isHeritageClause),c=z(t,0!=(64&r)),u=e.createClassExpression(void 0,n,void 0,s,c);e.setOriginalNode(u,t),e.setTextRange(u,i);var l=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(o,void 0,a?e.createAssignment(a,u):u)],1));return e.setOriginalNode(l,t),e.setTextRange(l,i),e.setCommentRange(l,t),l}(r,c,s):function(t,n,r){var i=128&r?void 0:e.visitNodes(t.modifiers,M,e.isModifier),a=e.createClassDeclaration(void 0,i,n,void 0,e.visitNodes(t.heritageClauses,E,e.isHeritageClause),z(t,0!=(64&r))),o=e.getEmitFlags(t);return 1&r&&(o|=32),e.setTextRange(a,t),e.setOriginalNode(a,t),e.setEmitFlags(a,o),a}(r,c,s),l=[u];if(e.some(f)&&l.push(e.createStatement(e.inlineExpressions(f))),f=a,1&s&&W(l,o,128&s?e.getInternalName(r):e.getLocalName(r)),Y(l,r,!1),Y(l,r,!0),function(n,r){var a=function(n){var r=Q(n,n,function(t){var n=t.decorators,r=X(e.getFirstConstructorWithBody(t));if(n||r)return{decorators:n,parameters:r}}(n));if(r){var a=d&&d[e.getOriginalNodeId(n)],o=e.getLocalName(n,!1,!0),s=i(t,r,o),c=e.createAssignment(o,a?e.createAssignment(a,s):s);return e.setEmitFlags(c,1536),e.setSourceMapRange(c,e.moveRangePastDecorators(n)),c}}(r);a&&n.push(e.setOriginalNode(e.createStatement(a),r))}(l,r),128&s){var _=e.createTokenRange(e.skipTrivia(n.text,r.members.end),18),p=e.getInternalName(r),m=e.createPartiallyEmittedExpression(p);m.end=_.end,e.setEmitFlags(m,1536);var g=e.createReturn(m);g.pos=_.pos,e.setEmitFlags(g,1920),l.push(g),e.addRange(l,t.endLexicalEnvironment());var y=e.createImmediatelyInvokedArrowFunction(l);e.setEmitFlags(y,33554432);var b=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(r,!1,!1),void 0,y)]));e.setOriginalNode(b,r),e.setCommentRange(b,r),e.setSourceMapRange(b,e.moveRangePastDecorators(r)),e.startOnNewLine(b),l=[b]}return 8&s?Fe(l,r):(128&s||2&s)&&(32&s?l.push(e.createExportDefault(e.getLocalName(r,!1,!0))):16&s&&l.push(e.createExternalModuleExport(e.getLocalName(r,!1,!0)))),l.length>1&&(l.push(e.createEndOfDeclarationMarker(r)),e.setEmitFlags(u,4194304|e.getEmitFlags(u))),e.singleOrMany(l)}(r);case 203:return function(t){var n=f;f=void 0;var r=K(t,!0),i=e.visitNodes(t.heritageClauses,E,e.isHeritageClause),a=z(t,e.some(i,function(e){return 85===e.token})),o=e.createClassExpression(void 0,t.name,void 0,i,a);if(e.setOriginalNode(o,t),e.setTextRange(o,t),e.some(r)||e.some(f)){var s=[],c=8388608&v.getNodeCheckFlags(t),u=e.createTempVariable(h,!!c);if(c){Re();var l=e.getSynthesizedClone(u);l.autoGenerateFlags&=-17,d[e.getOriginalNodeId(t)]=l}return e.setEmitFlags(o,65536|e.getEmitFlags(o)),s.push(e.startOnNewLine(e.createAssignment(u,o))),e.addRange(s,e.map(f,e.startOnNewLine)),f=n,e.addRange(s,function(t,n){for(var i=[],a=0,o=r;a<o.length;a++){var s=o[a],c=H(s,n);e.startOnNewLine(c),e.setSourceMapRange(c,e.moveRangePastModifiers(s)),e.setCommentRange(c,s),i.push(c)}return i}(0,u)),s.push(e.startOnNewLine(u)),e.inlineExpressions(s)}return f=n,o}(r);case 266:return function(t){if(85===t.token){var n=e.visitNodes(t.types,E,e.isExpressionWithTypeArguments,0,1);return e.setTextRange(e.createHeritageClause(85,n),t)}}(r);case 205:return function(t){return e.updateExpressionWithTypeArguments(t,void 0,e.visitNode(t.expression,E,e.isLeftHandSideExpression))}(r);case 153:return function(n){if(fe(n)){var r=e.updateMethod(n,void 0,e.visitNodes(n.modifiers,M,e.isModifier),n.asteriskToken,pe(n),void 0,void 0,e.visitParameterList(n.parameters,E,t),void 0,e.visitFunctionBody(n.body,E,t));return r!==n&&(e.setCommentRange(r,n),e.setSourceMapRange(r,e.moveRangePastDecorators(n))),r}}(r);case 155:return function(n){if(me(n)){var r=e.updateGetAccessor(n,void 0,e.visitNodes(n.modifiers,M,e.isModifier),pe(n),e.visitParameterList(n.parameters,E,t),void 0,e.visitFunctionBody(n.body,E,t)||e.createBlock([]));return r!==n&&(e.setCommentRange(r,n),e.setSourceMapRange(r,e.moveRangePastDecorators(n))),r}}(r);case 156:return function(n){if(me(n)){var r=e.updateSetAccessor(n,void 0,e.visitNodes(n.modifiers,M,e.isModifier),pe(n),e.visitParameterList(n.parameters,E,t),e.visitFunctionBody(n.body,E,t)||e.createBlock([]));return r!==n&&(e.setCommentRange(r,n),e.setSourceMapRange(r,e.moveRangePastDecorators(n))),r}}(r);case 232:return function(n){if(!fe(n))return e.createNotEmittedStatement(n);var r=e.updateFunctionDeclaration(n,void 0,e.visitNodes(n.modifiers,M,e.isModifier),n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,E,t),void 0,e.visitFunctionBody(n.body,E,t)||e.createBlock([]));if(Ne(n)){var i=[r];return Fe(i,n),i}return r}(r);case 190:return function(n){return fe(n)?e.updateFunctionExpression(n,e.visitNodes(n.modifiers,M,e.isModifier),n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,E,t),void 0,e.visitFunctionBody(n.body,E,t)||e.createBlock([])):e.createOmittedExpression()}(r);case 191:return function(n){return e.updateArrowFunction(n,e.visitNodes(n.modifiers,M,e.isModifier),void 0,e.visitParameterList(n.parameters,E,t),void 0,n.equalsGreaterThanToken,e.visitFunctionBody(n.body,E,t))}(r);case 148:return function(t){if(!e.parameterIsThisKeyword(t)){var n=e.createParameter(void 0,void 0,t.dotDotDotToken,e.visitNode(t.name,E,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,E,e.isExpression));return e.setOriginalNode(n,t),e.setTextRange(n,e.moveRangePastModifiers(t)),e.setCommentRange(n,t),e.setSourceMapRange(n,e.moveRangePastModifiers(t)),e.setEmitFlags(n.name,32),n}}(r);case 189:return function(n){var r=e.skipOuterExpressions(n.expression,-3);if(e.isAssertionExpression(r)){var i=e.visitNode(n.expression,E,e.isExpression);return e.createPartiallyEmittedExpression(i,n)}return e.visitEachChild(n,E,t)}(r);case 188:case 206:return function(t){var n=e.visitNode(t.expression,E,e.isExpression);return e.createPartiallyEmittedExpression(n,t)}(r);case 185:return function(t){return e.updateCall(t,e.visitNode(t.expression,E,e.isExpression),void 0,e.visitNodes(t.arguments,E,e.isExpression))}(r);case 186:return function(t){return e.updateNew(t,e.visitNode(t.expression,E,e.isExpression),void 0,e.visitNodes(t.arguments,E,e.isExpression))}(r);case 207:return function(t){var n=e.visitNode(t.expression,E,e.isLeftHandSideExpression);return e.createPartiallyEmittedExpression(n,t)}(r);case 236:return function(t){if(function(t){return!e.isConst(t)||b.preserveConstEnums||b.isolatedModules}(t)){var r=[],i=2;xe(r,t)&&(S===e.ModuleKind.System&&u===n||(i|=512));var a=Me(t),o=Le(t),c=e.hasModifier(t,1)?e.getExternalModuleOrNamespaceExportName(s,t,!1,!0):e.getLocalName(t,!1,!0),l=e.createLogicalOr(c,e.createAssignment(c,e.createObjectLiteral()));if(he(t)){var _=e.getLocalName(t,!1,!0);l=e.createAssignment(_,l)}var d=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,function(t,n){var r=s;s=o;var i=[];return m(),e.addRange(i,e.map(t.members,ye)),e.addRange(i,y()),s=r,e.createBlock(e.setTextRange(e.createNodeArray(i),t.members),!0)}(t)),void 0,[l]));return e.setOriginalNode(d,t),e.setTextRange(d,t),e.setEmitFlags(d,i),r.push(d),r.push(e.createEndOfDeclarationMarker(t)),r}}(r);case 212:return function(n){if(Ne(n)){var r=e.getInitializedVariables(n.declarationList);if(0===r.length)return;return e.setTextRange(e.createStatement(e.inlineExpressions(e.map(r,ge))),n)}return e.visitEachChild(n,E,t)}(r);case 230:return function(t){return e.updateVariableDeclaration(t,e.visitNode(t.name,E,e.isBindingName),void 0,e.visitNode(t.initializer,E,e.isExpression))}(r);case 237:return function r(i){if(!function(t){return e.isInstantiatedModule(t,b.preserveConstEnums||b.isolatedModules)}(i))return e.createNotEmittedStatement(i);e.Debug.assertNode(i.name,e.isIdentifier,"A TypeScript namespace should have an Identifier name."),0==(2&_)&&(_|=2,t.enableSubstitution(71),t.enableSubstitution(269),t.enableEmitNotification(237));var o=[],c=2;xe(o,i)&&(S===e.ModuleKind.System&&u===n||(c|=512));var d=Me(i),p=Le(i),f=e.hasModifier(i,1)?e.getExternalModuleOrNamespaceExportName(s,i,!1,!0):e.getLocalName(i,!1,!0),g=e.createLogicalOr(f,e.createAssignment(f,e.createObjectLiteral()));if(he(i)){var h=e.getLocalName(i,!1,!0);g=e.createAssignment(h,g)}var v=e.createStatement(e.createCall(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,d)],void 0,function(t,n){var i=s,o=a,c=l;s=p,a=t,l=void 0;var u,_,d=[];m();var f=t.body;if(238===f.kind)T(f,function(t){return e.addRange(d,e.visitNodes(t.statements,w,e.isStatement))}),u=f.statements,_=f;else{var g=r(f);g&&(e.isArray(g)?e.addRange(d,g):d.push(g));var h=function e(t){if(237===t.body.kind)return e(t.body)||t.body}(t).body;u=e.moveRangePos(h.statements,-1)}e.addRange(d,y()),s=i,a=o,l=c;var v=e.createBlock(e.setTextRange(e.createNodeArray(d),u),!0);return e.setTextRange(v,_),238!==f.kind&&e.setEmitFlags(v,1536|e.getEmitFlags(v)),v}(i)),void 0,[g]));return e.setOriginalNode(v,i),e.setTextRange(v,i),e.setEmitFlags(v,c),o.push(v),o.push(e.createEndOfDeclarationMarker(i)),o}(r);case 241:return Ee(r);default:return e.Debug.failBadSyntaxKind(r),e.visitEachChild(r,E,t)}}function R(n){var r=e.getStrictOptionValue(b,"alwaysStrict")&&!(e.isExternalModule(n)&&S>=e.ModuleKind.ES2015);return e.updateSourceFileNode(n,e.visitLexicalEnvironment(n.statements,A,t,0,r))}function B(e){return void 0!==e.decorators&&e.decorators.length>0}function z(n,r){var i=[],a=function(n,r){var i=e.forEach(n.members,V),a=262144&n.transformFlags,o=e.getFirstConstructorWithBody(n);if(!i&&!a)return e.visitEachChild(o,E,t);var s=function(n){return e.visitParameterList(n&&n.parameters,E,t)||[]}(o),c=function(t,n,r){var i=[],a=0;if(g(),n){a=function(t,r){if(n.body){var i=n.body.statements,a=e.addPrologue(r,i,!1,E);if(a===i.length)return a;var o=i[a];return 214===o.kind&&e.isSuperCall(o.expression)?(r.push(e.visitNode(o,E,e.isStatement)),a+1):a}return 0}(0,i);var o=e.filter(n.parameters,j);e.addRange(i,e.map(o,J))}else r&&i.push(e.createStatement(e.createCall(e.createSuper(),void 0,[e.createSpread(e.createIdentifier("arguments"))])));return W(i,K(t,!1),e.createThis()),n&&e.addRange(i,e.visitNodes(n.body.statements,E,e.isStatement,a)),i=e.mergeLexicalEnvironment(i,y()),e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(i),n?n.body.statements:t.members),!0),n?n.body:void 0)}(n,o,r);return e.startOnNewLine(e.setOriginalNode(e.setTextRange(e.createConstructor(void 0,void 0,s,c),o||n),o))}(n,r);return a&&i.push(a),e.addRange(i,e.visitNodes(n.members,I,e.isClassElement)),e.setTextRange(e.createNodeArray(i),n.members)}function j(t){return e.hasModifier(t,92)&&e.isIdentifier(t.name)}function J(t){e.Debug.assert(e.isIdentifier(t.name));var n=t.name,r=e.getMutableClone(n);e.setEmitFlags(r,1584);var i=e.getMutableClone(n);return e.setEmitFlags(i,1536),e.startOnNewLine(e.setEmitFlags(e.setTextRange(e.createStatement(e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createThis(),r),t.name),i)),e.moveRangePos(t,-1)),1536))}function K(t,n){return e.filter(t.members,n?U:V)}function U(e){return q(e,!0)}function V(e){return q(e,!1)}function q(t,n){return 151===t.kind&&n===e.hasModifier(t,32)&&void 0!==t.initializer}function W(t,n,r){for(var i=0,a=n;i<a.length;i++){var o=a[i],s=e.createStatement(H(o,r));e.setSourceMapRange(s,e.moveRangePastModifiers(o)),e.setCommentRange(s,o),t.push(s)}}function H(t,n){var r=e.isComputedPropertyName(t.name)&&!le(t.name.expression)?e.updateComputedPropertyName(t.name,e.getGeneratedNameForNode(t.name,!e.hasModifier(t,32))):t.name,i=e.visitNode(t.initializer,E,e.isExpression),a=e.createMemberAccessForPropertyName(n,r,r);return e.createAssignment(a,i)}function G(t,n,r){return e.nodeOrChildIsDecorated(t,r)&&n===e.hasModifier(t,32)}function X(e){var t;if(e)for(var n=e.parameters,r=0;r<n.length;r++){var i=n[r];(t||i.decorators)&&(t||(t=new Array(n.length)),t[r]=i.decorators)}return t}function Q(n,i,a){if(a){var s=[];return e.addRange(s,e.map(a.decorators,Z)),e.addRange(s,e.flatMap(a.parameters,ee)),function(n,i,a){r?function(n,r,i){if(b.emitDecoratorMetadata){var a=void 0;te(n)&&(a||(a=[])).push(e.createPropertyAssignment("type",e.createArrowFunction(void 0,void 0,[],void 0,e.createToken(36),ie(n)))),re(n)&&(a||(a=[])).push(e.createPropertyAssignment("paramTypes",e.createArrowFunction(void 0,void 0,[],void 0,e.createToken(36),ae(n,r)))),ne(n)&&(a||(a=[])).push(e.createPropertyAssignment("returnType",e.createArrowFunction(void 0,void 0,[],void 0,e.createToken(36),oe(n)))),a&&i.push(o(t,"design:typeinfo",e.createObjectLiteral(a,!0)))}}(n,i,a):function(e,n,r){b.emitDecoratorMetadata&&(te(e)&&r.push(o(t,"design:type",ie(e))),re(e)&&r.push(o(t,"design:paramtypes",ae(e,n))),ne(e)&&r.push(o(t,"design:returntype",oe(e))))}(n,i,a)}(n,i,s),s}}function Y(t,n,r){e.addRange(t,e.map(function(t,n){for(var r,i=0,a=function(t,n){return e.filter(t.members,n?function(e){return G(e,!0,t)}:function(e){return G(e,!1,t)})}(t,n);i<a.length;i++){var o=$(t,a[i]);o&&(r?r.push(o):r=[o])}return r}(n,r),we))}function $(n,r){var a=Q(r,n,function(t,n){switch(n.kind){case 155:case 156:return function(t,n){if(n.body){var r=e.getAllAccessorDeclarations(t.members,n),i=r.firstAccessor,a=r.secondAccessor,o=i.decorators?i:a&&a.decorators?a:void 0;if(o&&n===o){var s=o.decorators,c=X(r.setAccessor);if(s||c)return{decorators:s,parameters:c}}}}(t,n);case 153:return function(e){if(n.body){var t=n.decorators,r=X(n);if(t||r)return{decorators:t,parameters:r}}}();case 151:return function(e){var t=n.decorators;if(t)return{decorators:t}}();default:return}}(n,r));if(a){var o=function(t,n){return e.hasModifier(n,32)?e.getDeclarationName(t):function(t){return e.createPropertyAccess(e.getDeclarationName(t),"prototype")}(t)}(n,r),s=_e(r,!0),c=k>0?151===r.kind?e.createVoidZero():e.createNull():void 0,u=i(t,a,o,s,c,e.moveRangePastDecorators(r));return e.setEmitFlags(u,1536),u}}function Z(t){return e.visitNode(t.expression,E,e.isExpression)}function ee(n,r){var i;if(n){i=[];for(var a=0,o=n;a<o.length;a++){var s=o[a],u=c(t,Z(s),r,s.expression);e.setEmitFlags(u,1536),i.push(u)}}return i}function te(e){var t=e.kind;return 153===t||155===t||156===t||151===t}function ne(e){return 153===e.kind}function re(t){switch(t.kind){case 233:case 203:return void 0!==e.getFirstConstructorWithBody(t);case 153:case 155:case 156:return!0}return!1}function ie(t){switch(t.kind){case 151:case 148:case 155:return se(t.type);case 156:return se(e.getSetAccessorTypeAnnotationNode(t));case 233:case 203:case 153:return e.createIdentifier("Function");default:return e.createVoidZero()}}function ae(t,n){var r=e.isClassLike(t)?e.getFirstConstructorWithBody(t):e.isFunctionLike(t)&&e.nodeIsPresent(t.body)?t:void 0,i=[];if(r)for(var a=function(t,n){if(n&&155===t.kind){var r=e.getAllAccessorDeclarations(n.members,t).setAccessor;if(r)return r.parameters}return t.parameters}(r,n),o=a.length,s=0;s<o;s++){var c=a[s];0===s&&e.isIdentifier(c.name)&&"this"===c.name.escapedText||i.push(c.dotDotDotToken?se(e.getRestParameterElementType(c.type)):ie(c))}return e.createArrayLiteral(i)}function oe(t){return e.isFunctionLike(t)&&t.type?se(t.type):e.isAsyncFunction(t)?e.createIdentifier("Promise"):e.createVoidZero()}function se(t){if(void 0===t)return e.createIdentifier("Object");switch(t.kind){case 105:case 140:case 95:case 131:return e.createVoidZero();case 172:return se(t.type);case 162:case 163:return e.createIdentifier("Function");case 166:case 167:return e.createIdentifier("Array");case 160:case 122:return e.createIdentifier("Boolean");case 137:return e.createIdentifier("String");case 135:return e.createIdentifier("Object");case 177: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 134:return e.createIdentifier("Number");case 138:return k<2?ue():e.createIdentifier("Symbol");case 161:return function(t){switch(v.getTypeReferenceSerializationKind(t.typeName,u)){case e.TypeReferenceSerializationKind.Unknown:var n=ce(t.typeName,!0),r=e.createTempVariable(h);return e.createLogicalOr(e.createLogicalAnd(e.createTypeCheck(e.createAssignment(r,n),"function"),r),e.createIdentifier("Object"));case e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return ce(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 k<2?ue():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")}}(t);case 169:case 168:return function(t){for(var n,r=0,i=t.types;r<i.length;r++){for(var a=i[r];172===a.kind;)a=a.type;if(131!==a.kind&&(x||95!==a.kind&&140!==a.kind)){var o=se(a);if(e.isIdentifier(o)&&"Object"===o.escapedText)return o;if(n){if(!e.isIdentifier(n)||!e.isIdentifier(o)||n.escapedText!==o.escapedText)return e.createIdentifier("Object")}else n=o}}return n||e.createVoidZero()}(t);case 164:case 174:case 175:case 176:case 165:case 119:case 173:break;default:e.Debug.failBadSyntaxKind(t)}return e.createIdentifier("Object")}function ce(t,n){switch(t.kind){case 71:var r=e.getMutableClone(t);return r.flags&=-9,r.original=void 0,r.parent=e.getParseTreeNode(u),n?e.createLogicalAnd(e.createStrictInequality(e.createTypeOf(r),e.createLiteral("undefined")),r):r;case 145:return function(t,n){var r;if(71===t.left.kind)r=ce(t.left,n);else if(n){var i=e.createTempVariable(h);r=e.createLogicalAnd(e.createAssignment(i,ce(t.left,!0)),i)}else r=ce(t.left,!1);return e.createPropertyAccess(r,t.right)}(t,n)}}function ue(){return e.createConditional(e.createTypeCheck(e.createIdentifier("Symbol"),"function"),e.createIdentifier("Symbol"),e.createIdentifier("Object"))}function le(t){return!e.isIdentifier(t)&&e.isSimpleCopiableExpression(t)||e.isWellKnownSymbolSyntactically(t)}function _e(t,n){var r=t.name;return e.isComputedPropertyName(r)?n&&!le(r.expression)?e.getGeneratedNameForNode(r):r.expression:e.isIdentifier(r)?e.createLiteral(e.idText(r)):e.getSynthesizedClone(r)}function de(t,n,r){if(e.isComputedPropertyName(t)){var i=e.visitNode(t.expression,E,e.isExpression),a=e.skipPartiallyEmittedExpressions(i),o=le(a);if(!o&&n){var s=e.getGeneratedNameForNode(t);return h(s),e.createAssignment(s,i)}return r&&(o||e.isIdentifier(a))?void 0:i}}function pe(t){var n=t.name,r=de(n,e.some(t.decorators),!1);return r?(e.some(f)&&(r=e.inlineExpressions(f.concat([r])),f.length=0),e.updateComputedPropertyName(n,r)):n}function fe(t){return!e.nodeIsMissing(t.body)}function me(t){return!(e.nodeIsMissing(t.body)&&e.hasModifier(t,128))}function ge(n){var r=n.name;return e.isBindingPattern(r)?e.flattenDestructuringAssignment(n,E,t,0,!1,Ie):e.setTextRange(e.createAssignment(Oe(r),e.visitNode(n.initializer,E,e.isExpression)),n)}function ye(n){var r=_e(n,!1),i=function(n){var r=v.getConstantValue(n);return void 0!==r?e.createLiteral(r):(0==(8&_)&&(_|=8,t.enableSubstitution(71)),n.initializer?e.visitNode(n.initializer,E,e.isExpression):e.createVoidZero())}(n),a=e.createAssignment(e.createElementAccess(s,r),i),o=9===i.kind?a:e.createAssignment(e.createElementAccess(s,a),r);return e.setTextRange(e.createStatement(e.setTextRange(o,n)),n)}function he(t){return Ne(t)||Ae(t)&&S!==e.ModuleKind.ES2015&&S!==e.ModuleKind.ESNext&&S!==e.ModuleKind.System}function ve(t){l||(l=e.createUnderscoreEscapedMap());var n=be(t);l.has(n)||l.set(n,t)}function be(t){return e.Debug.assertNode(t.name,e.isIdentifier),t.name.escapedText}function xe(t,n){var r=e.createVariableStatement(e.visitNodes(n.modifiers,M,e.isModifier),e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(n,!1,!0))],272===u.kind?0:1));if(e.setOriginalNode(r,n),ve(n),function(e){if(l){var t=be(e);return l.get(t)===e}return!0}(n))return e.setSourceMapRange(236===n.kind?r.declarationList:r,n),e.setCommentRange(r,n),e.setEmitFlags(r,4195328),t.push(r),!0;var i=e.createMergeDeclarationMarker(r);return e.setEmitFlags(i,4195840),t.push(i),!1}function ke(t){var n=v.isReferencedAliasDeclaration(t)?t.name:void 0,r=e.visitNode(t.namedBindings,Se,e.isNamedImportBindings);return n||r?e.updateImportClause(t,n,r):void 0}function Se(t){if(244===t.kind)return v.isReferencedAliasDeclaration(t)?t:void 0;var n=e.visitNodes(t.elements,De,e.isImportSpecifier);return e.some(n)?e.updateNamedImports(t,n):void 0}function De(e){return v.isReferencedAliasDeclaration(e)?e:void 0}function Ce(t){var n=e.visitNodes(t.elements,Te,e.isExportSpecifier);return e.some(n)?e.updateNamedExports(t,n):void 0}function Te(e){return v.isValueAliasDeclaration(e)?e:void 0}function Ee(r){if(e.isExternalModuleImportEqualsDeclaration(r))return v.isReferencedAliasDeclaration(r)?e.visitEachChild(r,E,t):void 0;if(function(t){return v.isReferencedAliasDeclaration(t)||!e.isExternalModule(n)&&v.isTopLevelValueImportEqualsWithEntityName(t)}(r)){var i,a,o=e.createExpressionFromEntityName(r.moduleReference);return e.setEmitFlags(o,3584),Pe(r)||!Ne(r)?e.setOriginalNode(e.setTextRange(e.createVariableStatement(e.visitNodes(r.modifiers,M,e.isModifier),e.createVariableDeclarationList([e.setOriginalNode(e.createVariableDeclaration(r.name,void 0,o),r)])),r),r):e.setOriginalNode((i=o,a=r,e.setTextRange(e.createStatement(e.createAssignment(e.getNamespaceMemberName(s,r.name,!1,!0),i)),a)),r)}}function Ne(t){return void 0!==a&&e.hasModifier(t,1)}function Ae(t){return void 0===a&&e.hasModifier(t,1)}function Pe(t){return Ae(t)&&!e.hasModifier(t,512)}function we(t){return e.createStatement(t)}function Fe(t,n){var r=e.createAssignment(e.getExternalModuleOrNamespaceExportName(s,n,!1,!0),e.getLocalName(n));e.setSourceMapRange(r,e.createRange(n.name?n.name.pos:n.pos,n.end));var i=e.createStatement(r);e.setSourceMapRange(i,e.createRange(-1,n.end)),t.push(i)}function Ie(t,n,r){return e.setTextRange(e.createAssignment(Oe(t),n),r)}function Oe(t){return e.getNamespaceMemberName(s,t,!1,!0)}function Me(t){var n=e.getGeneratedNameForNode(t);return e.setSourceMapRange(n,t.name),n}function Le(t){return e.getGeneratedNameForNode(t)}function Re(){0==(1&_)&&(_|=1,t.enableSubstitution(71),d=[])}function Be(t){if(_&p&&!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var n=v.getReferencedExportContainer(t,!1);if(n&&272!==n.kind&&(2&p&&237===n.kind||8&p&&236===n.kind))return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(n),t),t)}}};var a={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 };'};function o(t,n,r){return t.requestEmitHelper(s),e.createCall(e.getHelperName("__metadata"),void 0,[e.createLiteral(n),r])}var s={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 };'};function c(t,n,r,i){return t.requestEmitHelper(u),e.setTextRange(e.createCall(e.getHelperName("__param"),void 0,[e.createLiteral(r),n]),i)}var u={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 };"}}(l||(l={})),function(e){var t;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(t||(t={})),e.transformES2017=function(t){var n,i,a=t.resumeLexicalEnvironment,o=t.endLexicalEnvironment,s=t.hoistVariableDeclaration,c=t.getEmitResolver(),u=t.getCompilerOptions(),l=e.getEmitScriptTarget(u),_=0,d=t.onEmitNode,p=t.onSubstituteNode;return t.onEmitNode=function(e,t,r){if(1&n&&function(e){var t=e.kind;return 233===t||154===t||153===t||155===t||156===t}(t)){var i=6144&c.getNodeCheckFlags(t);if(i!==_){var a=_;return _=i,d(e,t,r),void(_=a)}}d(e,t,r)},t.onSubstituteNode=function(t,n){return n=p(t,n),1===t&&_?function(t){switch(t.kind){case 183:return C(t);case 184:return T(t);case 185:return function(t){var n=t.expression;if(e.isSuperProperty(n)){var r=e.isPropertyAccessExpression(n)?C(n):T(n);return e.createCall(e.createPropertyAccess(r,"call"),void 0,[e.createThis()].concat(t.arguments))}return t}(t)}return t}(n):n},function(n){if(n.isDeclarationFile)return n;var r=e.visitEachChild(n,f,t);return e.addEmitHelpers(r,t.readEmitHelpers()),r};function f(n){if(0==(16&n.transformFlags))return n;switch(n.kind){case 120:return;case 195:return function(t){return e.setOriginalNode(e.setTextRange(e.createYield(void 0,e.visitNode(t.expression,f,e.isExpression)),t),t)}(n);case 153:return function(n){return e.updateMethod(n,void 0,e.visitNodes(n.modifiers,f,e.isModifier),n.asteriskToken,n.name,void 0,void 0,e.visitParameterList(n.parameters,f,t),void 0,2&e.getFunctionFlags(n)?k(n):e.visitFunctionBody(n.body,f,t))}(n);case 232:return function(n){return e.updateFunctionDeclaration(n,void 0,e.visitNodes(n.modifiers,f,e.isModifier),n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,f,t),void 0,2&e.getFunctionFlags(n)?k(n):e.visitFunctionBody(n.body,f,t))}(n);case 190:return function(n){return e.updateFunctionExpression(n,e.visitNodes(n.modifiers,f,e.isModifier),n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,f,t),void 0,2&e.getFunctionFlags(n)?k(n):e.visitFunctionBody(n.body,f,t))}(n);case 191:return function(n){return e.updateArrowFunction(n,e.visitNodes(n.modifiers,f,e.isModifier),void 0,e.visitParameterList(n.parameters,f,t),void 0,n.equalsGreaterThanToken,2&e.getFunctionFlags(n)?k(n):e.visitFunctionBody(n.body,f,t))}(n);default:return e.visitEachChild(n,f,t)}}function m(n){if(e.isNodeWithPossibleHoistedDeclaration(n))switch(n.kind){case 212:return function(n){if(y(n.declarationList)){var r=h(n.declarationList,!1);return r?e.createStatement(r):void 0}return e.visitEachChild(n,f,t)}(n);case 218:return function(t){return e.updateFor(t,y(t.initializer)?h(t.initializer,!1):e.visitNode(t.initializer,f,e.isForInitializer),e.visitNode(t.condition,f,e.isExpression),e.visitNode(t.incrementor,f,e.isExpression),e.visitNode(t.statement,m,e.isStatement,e.liftToBlock))}(n);case 219:return function(t){return e.updateForIn(t,y(t.initializer)?h(t.initializer,!0):e.visitNode(t.initializer,f,e.isForInitializer),e.visitNode(t.expression,f,e.isExpression),e.visitNode(t.statement,m,e.isStatement,e.liftToBlock))}(n);case 220:return function(t){return e.updateForOf(t,e.visitNode(t.awaitModifier,f,e.isToken),y(t.initializer)?h(t.initializer,!0):e.visitNode(t.initializer,f,e.isForInitializer),e.visitNode(t.expression,f,e.isExpression),e.visitNode(t.statement,m,e.isStatement,e.liftToBlock))}(n);case 267:return function(n){var r,a=e.createUnderscoreEscapedMap();if(g(n.variableDeclaration,a),a.forEach(function(t,n){i.has(n)&&(r||(r=e.cloneMap(i)),r.delete(n))}),r){var o=i;i=r;var s=e.visitEachChild(n,m,t);return i=o,s}return e.visitEachChild(n,m,t)}(n);case 211:case 225:case 239:case 264:case 265:case 228:case 216:case 217:case 215:case 224:case 226:return e.visitEachChild(n,m,t);default:return e.Debug.assertNever(n,"Unhandled node.")}return f(n)}function g(t,n){var r=t.name;if(e.isIdentifier(r))n.set(r.escapedText,!0);else for(var i=0,a=r.elements;i<a.length;i++){var o=a[i];e.isOmittedExpression(o)||g(o,n)}}function y(t){return t&&e.isVariableDeclarationList(t)&&!(3&t.flags)&&e.forEach(t.declarations,x)}function h(t,n){!function(t){e.forEach(t.declarations,v)}(t);var r=e.getInitializedVariables(t);return 0===r.length?n?e.visitNode(e.convertToAssignmentElementTarget(t.declarations[0].name),f,e.isExpression):void 0:e.inlineExpressions(e.map(r,b))}function v(t){var n=t.name;if(e.isIdentifier(n))s(n);else for(var r=0,i=n.elements;r<i.length;r++){var a=i[r];e.isOmittedExpression(a)||v(a)}}function b(t){var n=e.setSourceMapRange(e.createAssignment(e.convertToAssignmentElementTarget(t.name),t.initializer),t);return e.visitNode(n,f,e.isExpression)}function x(t){var n=t.name;if(e.isIdentifier(n))return i.has(n.escapedText);for(var r=0,a=n.elements;r<a.length;r++){var o=a[r];if(!e.isOmittedExpression(o)&&x(o))return!0}return!1}function k(n){a();var s,u=e.getOriginalNode(n,e.isFunctionLike),_=l<2?function(t){var n=t&&e.getEntityNameFromTypeNode(t);if(n&&e.isEntityName(n)){var r=c.getTypeReferenceSerializationKind(n);if(r===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||r===e.TypeReferenceSerializationKind.Unknown)return n}}(u.type):void 0,d=191===n.kind,p=0!=(8192&c.getNodeCheckFlags(n)),m=i;i=e.createUnderscoreEscapedMap();for(var y=0,h=n.parameters;y<h.length;y++)g(h[y],i);if(d){var v=r(t,p,_,S(n.body)),b=o();e.some(b)?(C=e.convertToFunctionBody(v),s=e.updateBlock(C,e.setTextRange(e.createNodeArray(e.concatenate(C.statements,b)),C.statements))):s=v}else{var x=[],k=e.addPrologue(x,n.body.statements,!1,f);x.push(e.createReturn(r(t,p,_,S(n.body,k)))),e.addRange(x,o());var C=e.createBlock(x,!0);e.setTextRange(C,n.body),l>=2&&(4096&c.getNodeCheckFlags(n)?(D(),e.addEmitHelper(C,e.advancedAsyncSuperHelper)):2048&c.getNodeCheckFlags(n)&&(D(),e.addEmitHelper(C,e.asyncSuperHelper))),s=C}return i=m,s}function S(t,n){return e.isBlock(t)?e.updateBlock(t,e.visitNodes(t.statements,m,e.isStatement,n)):e.convertToFunctionBody(e.visitNode(t,m,e.isConciseBody))}function D(){0==(1&n)&&(n|=1,t.enableSubstitution(185),t.enableSubstitution(183),t.enableSubstitution(184),t.enableEmitNotification(233),t.enableEmitNotification(153),t.enableEmitNotification(155),t.enableEmitNotification(156),t.enableEmitNotification(154))}function C(t){return 97===t.expression.kind?E(e.createLiteral(e.idText(t.name)),t):t}function T(e){return 97===e.expression.kind?E(e.argumentExpression,e):e}function E(t,n){return e.setTextRange(4096&_?e.createPropertyAccess(e.createCall(e.createIdentifier("_super"),void 0,[t]),"value"):e.createCall(e.createIdentifier("_super"),void 0,[t]),n)}};var n={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 };'};function r(t,r,i,a){t.requestEmitHelper(n);var o=e.createFunctionExpression(void 0,e.createToken(39),void 0,void 0,[],void 0,a);return(o.emitNode||(o.emitNode={})).flags|=786432,e.createCall(e.getHelperName("__awaiter"),void 0,[e.createThis(),r?e.createIdentifier("arguments"):e.createVoidZero(),i?e.createExpressionFromEntityName(i):e.createVoidZero(),o])}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 "}}(l||(l={})),function(e){var t;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(t||(t={})),e.transformESNext=function(t){var n=t.resumeLexicalEnvironment,c=t.endLexicalEnvironment,l=t.hoistVariableDeclaration,_=t.getEmitResolver(),d=t.getCompilerOptions(),p=e.getEmitScriptTarget(d),f=t.onEmitNode;t.onEmitNode=function(e,t,n){if(1&m&&function(e){var t=e.kind;return 233===t||154===t||153===t||155===t||156===t}(t)){var r=6144&_.getNodeCheckFlags(t);if(r!==h){var i=h;return h=r,f(e,t,n),void(h=i)}}f(e,t,n)};var m,g,y=t.onSubstituteNode;t.onSubstituteNode=function(t,n){return n=y(t,n),1===t&&h?function(t){switch(t.kind){case 183:return A(t);case 184:return P(t);case 185:return function(t){var n=t.expression;if(e.isSuperProperty(n)){var r=e.isPropertyAccessExpression(n)?A(n):P(n);return e.createCall(e.createPropertyAccess(r,"call"),void 0,[e.createThis()].concat(t.arguments))}return t}(t)}return t}(n):n};var h=0;return function(n){if(n.isDeclarationFile)return n;var r=e.visitEachChild(n,v,t);return e.addEmitHelpers(r,t.readEmitHelpers()),r};function v(e){return k(e,!1)}function b(e){return k(e,!0)}function x(e){if(120!==e.kind)return e}function k(n,o){if(0==(8&n.transformFlags))return n;switch(n.kind){case 195:return function(n){return 2&g&&1&g?e.setOriginalNode(e.setTextRange(e.createYield(a(t,e.visitNode(n.expression,v,e.isExpression))),n),n):e.visitEachChild(n,v,t)}(n);case 201:return function(n){if(2&g&&1&g&&n.asteriskToken){var r=e.visitNode(n.expression,v,e.isExpression);return e.setOriginalNode(e.setTextRange(e.createYield(a(t,e.updateYield(n,n.asteriskToken,function(t,n,r){return t.requestEmitHelper(i),t.requestEmitHelper(s),e.setTextRange(e.createCall(e.getHelperName("__asyncDelegator"),void 0,[n]),r)}(t,u(t,r,r),r)))),n),n)}return e.visitEachChild(n,v,t)}(n);case 226:return function(n){if(2&g){var r=e.unwrapInnermostStatementOfLabel(n);return 220===r.kind&&r.awaitModifier?S(r,n):e.restoreEnclosingLabel(e.visitEachChild(r,v,t),n)}return e.visitEachChild(n,v,t)}(n);case 182:return function(n){if(1048576&n.transformFlags){var i=function(t){for(var r,i=[],a=0,o=n.properties;a<o.length;a++){var s=o[a];270===s.kind?(r&&(i.push(e.createObjectLiteral(r)),r=void 0),i.push(e.visitNode(s.expression,v,e.isExpression))):r=e.append(r,268===s.kind?e.createPropertyAssignment(s.name,e.visitNode(s.initializer,v,e.isExpression)):e.visitNode(s,v,e.isObjectLiteralElementLike))}return r&&i.push(e.createObjectLiteral(r)),i}();return i.length&&182!==i[0].kind&&i.unshift(e.createObjectLiteral()),r(t,i)}return e.visitEachChild(n,v,t)}(n);case 198:return function(n,r){return e.isDestructuringAssignment(n)&&1048576&n.left.transformFlags?e.flattenDestructuringAssignment(n,v,t,1,!r):26===n.operatorToken.kind?e.updateBinary(n,e.visitNode(n.left,b,e.isExpression),e.visitNode(n.right,r?b:v,e.isExpression)):e.visitEachChild(n,v,t)}(n,o);case 230:return function(n){return e.isBindingPattern(n.name)&&1048576&n.name.transformFlags?e.flattenDestructuringBinding(n,v,t,1):e.visitEachChild(n,v,t)}(n);case 220:return S(n,void 0);case 218:return function(t){return e.updateFor(t,e.visitNode(t.initializer,b,e.isForInitializer),e.visitNode(t.condition,v,e.isExpression),e.visitNode(t.incrementor,v,e.isExpression),e.visitNode(t.statement,v,e.isStatement))}(n);case 194:return function(n){return e.visitEachChild(n,b,t)}(n);case 154:return function(n){var r=g;g=0;var i=e.updateConstructor(n,void 0,n.modifiers,e.visitParameterList(n.parameters,v,t),T(n));return g=r,i}(n);case 153:return function(n){var r=g;g=e.getFunctionFlags(n);var i=e.updateMethod(n,void 0,1&g?e.visitNodes(n.modifiers,x,e.isModifier):n.modifiers,2&g?void 0:n.asteriskToken,e.visitNode(n.name,v,e.isPropertyName),e.visitNode(void 0,v,e.isToken),void 0,e.visitParameterList(n.parameters,v,t),void 0,2&g&&1&g?C(n):T(n));return g=r,i}(n);case 155:return function(n){var r=g;g=0;var i=e.updateGetAccessor(n,void 0,n.modifiers,e.visitNode(n.name,v,e.isPropertyName),e.visitParameterList(n.parameters,v,t),void 0,T(n));return g=r,i}(n);case 156:return function(n){var r=g;g=0;var i=e.updateSetAccessor(n,void 0,n.modifiers,e.visitNode(n.name,v,e.isPropertyName),e.visitParameterList(n.parameters,v,t),T(n));return g=r,i}(n);case 232:return function(n){var r=g;g=e.getFunctionFlags(n);var i=e.updateFunctionDeclaration(n,void 0,1&g?e.visitNodes(n.modifiers,x,e.isModifier):n.modifiers,2&g?void 0:n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,v,t),void 0,2&g&&1&g?C(n):T(n));return g=r,i}(n);case 190:return function(n){var r=g;g=e.getFunctionFlags(n);var i=e.updateFunctionExpression(n,1&g?e.visitNodes(n.modifiers,x,e.isModifier):n.modifiers,2&g?void 0:n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,v,t),void 0,2&g&&1&g?C(n):T(n));return g=r,i}(n);case 191:return function(n){var r=g;g=e.getFunctionFlags(n);var i=e.updateArrowFunction(n,n.modifiers,void 0,e.visitParameterList(n.parameters,v,t),void 0,n.equalsGreaterThanToken,T(n));return g=r,i}(n);case 148:return function(n){return 1048576&n.transformFlags?e.updateParameter(n,void 0,void 0,n.dotDotDotToken,e.getGeneratedNameForNode(n),void 0,void 0,e.visitNode(n.initializer,v,e.isExpression)):e.visitEachChild(n,v,t)}(n);case 214:return function(n){return e.visitEachChild(n,b,t)}(n);case 189:return function(n,r){return e.visitEachChild(n,r?b:v,t)}(n,o);case 267:return function(n){return n.variableDeclaration?e.visitEachChild(n,v,t):e.updateCatchClause(n,e.createVariableDeclaration(e.createTempVariable(void 0)),e.visitNode(n.block,v,e.isBlock))}(n);default:return e.visitEachChild(n,v,t)}}function S(n,r){return 1048576&n.initializer.transformFlags&&(n=function(t){var n=e.skipParentheses(t.initializer);if(e.isVariableDeclarationList(n)||e.isAssignmentPattern(n)){var r=void 0,i=void 0,a=e.createTempVariable(void 0),o=[e.createForOfBindingStatement(n,a)];return e.isBlock(t.statement)&&(e.addRange(o,t.statement.statements),r=t.statement,i=t.statement.statements),e.updateForOf(t,t.awaitModifier,e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(a),t.initializer)],1),t.initializer),t.expression,e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(o),i),!0),r))}return t}(n)),n.awaitModifier?function(n,r){var i=e.visitNode(n.expression,v,e.isExpression),a=e.isIdentifier(i)?e.getGeneratedNameForNode(i):e.createTempVariable(void 0),o=e.isIdentifier(i)?e.getGeneratedNameForNode(a):e.createTempVariable(void 0),s=e.createUniqueName("e"),c=e.getGeneratedNameForNode(s),_=e.createTempVariable(void 0),d=u(t,i,n.expression),p=e.createCall(e.createPropertyAccess(a,"next"),void 0,[]),f=e.createPropertyAccess(o,"done"),m=e.createPropertyAccess(o,"value"),g=e.createFunctionCall(_,a,[]);l(s),l(_);var y=e.setEmitFlags(e.setTextRange(e.createFor(e.setEmitFlags(e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(a,void 0,d),n.expression),e.createVariableDeclaration(o)]),n.expression),2097152),e.createComma(e.createAssignment(o,D(p)),e.createLogicalNot(f)),void 0,function(t,n){var r,i,a=e.createForOfBindingStatement(t.initializer,n),o=[e.visitNode(a,v,e.isStatement)],s=e.visitNode(t.statement,v,e.isStatement);return e.isBlock(s)?(e.addRange(o,s.statements),r=s,i=s.statements):o.push(s),e.setEmitFlags(e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(o),i),!0),r),432)}(n,D(m))),n),256);return e.createTry(e.createBlock([e.restoreEnclosingLabel(y,r)]),e.createCatchClause(e.createVariableDeclaration(c),e.setEmitFlags(e.createBlock([e.createStatement(e.createAssignment(s,e.createObjectLiteral([e.createPropertyAssignment("error",c)])))]),1)),e.createBlock([e.createTry(e.createBlock([e.setEmitFlags(e.createIf(e.createLogicalAnd(e.createLogicalAnd(o,e.createLogicalNot(f)),e.createAssignment(_,e.createPropertyAccess(a,"return"))),e.createStatement(D(g))),1)]),void 0,e.setEmitFlags(e.createBlock([e.setEmitFlags(e.createIf(s,e.createThrow(e.createPropertyAccess(s,"error"))),1)]),1))]))}(n,r):e.restoreEnclosingLabel(e.visitEachChild(n,v,t),r)}function D(n){return 1&g?e.createYield(void 0,a(t,n)):e.createAwait(n)}function C(r){n();var a=[],s=e.addPrologue(a,r.body.statements,!1,v);E(a,r),a.push(e.createReturn(function(t,n){return t.requestEmitHelper(i),t.requestEmitHelper(o),(n.emitNode||(n.emitNode={})).flags|=262144,e.createCall(e.getHelperName("__asyncGenerator"),void 0,[e.createThis(),e.createIdentifier("arguments"),n])}(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,v,t,s)))))),e.addRange(a,c());var u=e.updateBlock(r.body,a);return p>=2&&(4096&_.getNodeCheckFlags(r)?(N(),e.addEmitHelper(u,e.advancedAsyncSuperHelper)):2048&_.getNodeCheckFlags(r)&&(N(),e.addEmitHelper(u,e.asyncSuperHelper))),u}function T(t){n();var r=0,i=[],a=e.visitNode(t.body,v,e.isConciseBody);e.isBlock(a)&&(r=e.addPrologue(i,a.statements,!1,v)),e.addRange(i,E(void 0,t));var o=c();if(r>0||e.some(i)||e.some(o)){var s=e.convertToFunctionBody(a,!0);return e.addRange(i,s.statements.slice(r)),e.addRange(i,o),e.updateBlock(s,e.setTextRange(e.createNodeArray(i),s.statements))}return a}function E(n,r){for(var i=0,a=r.parameters;i<a.length;i++){var o=a[i];if(1048576&o.transformFlags){var s=e.getGeneratedNameForNode(o),c=e.flattenDestructuringBinding(o,v,t,1,s,!1,!0);if(e.some(c)){var u=e.createVariableStatement(void 0,e.createVariableDeclarationList(c));e.setEmitFlags(u,1048576),n=e.append(n,u)}}}return n}function N(){0==(1&m)&&(m|=1,t.enableSubstitution(185),t.enableSubstitution(183),t.enableSubstitution(184),t.enableEmitNotification(233),t.enableEmitNotification(153),t.enableEmitNotification(155),t.enableEmitNotification(156),t.enableEmitNotification(154))}function A(t){return 97===t.expression.kind?w(e.createLiteral(e.idText(t.name)),t):t}function P(e){return 97===e.expression.kind?w(e.argumentExpression,e):e}function w(t,n){return e.setTextRange(4096&h?e.createPropertyAccess(e.createCall(e.createIdentifier("_super"),void 0,[t]),"value"):e.createCall(e.createIdentifier("_super"),void 0,[t]),n)}};var n={name:"typescript:assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };"};function r(t,r){return t.getCompilerOptions().target>=2?e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"assign"),void 0,r):(t.requestEmitHelper(n),e.createCall(e.getHelperName("__assign"),void 0,r))}e.createAssignHelper=r;var i={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 "};function a(t,n){return t.requestEmitHelper(i),e.createCall(e.getHelperName("__await"),void 0,[n])}var o={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 '},s={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 '},c={name:"typescript:asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || 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 '};function u(t,n,r){return t.requestEmitHelper(c),e.setTextRange(e.createCall(e.getHelperName("__asyncValues"),void 0,[n]),r)}}(l||(l={})),function(e){e.transformJsx=function(n){var r,i=n.getCompilerOptions();return function(t){if(t.isDeclarationFile)return t;r=t;var i=e.visitEachChild(t,a,n);return e.addEmitHelpers(i,n.readEmitHelpers()),i};function a(t){return 4&t.transformFlags?function(t){switch(t.kind){case 253:return s(t,!1);case 254:return c(t,!1);case 257:return u(t,!1);case 263:return m(t);default:return e.visitEachChild(t,a,n)}}(t):t}function o(t){switch(t.kind){case 10:return function(t){var n=function(t){for(var n,r=0,i=-1,a=0;a<t.length;a++){var o=t.charCodeAt(a);e.isLineBreak(o)?(-1!==r&&-1!==i&&(n=p(n,t.substr(r,i-r+1))),r=-1):e.isWhiteSpaceSingleLine(o)||(i=a,-1===r&&(r=a))}return-1!==r?p(n,t.substr(r)):n}(e.getTextOfNode(t,!0));return void 0===n?void 0:e.createLiteral(n)}(t);case 263:return m(t);case 253:return s(t,!0);case 254:return c(t,!0);case 257:return u(t,!0);default:return void e.Debug.failBadSyntaxKind(t)}}function s(e,t){return l(e.openingElement,e.children,t,e)}function c(e,t){return l(e,void 0,t,e)}function u(t,a){return function(t,a,s,c){var u=e.createExpressionForJsxFragment(n.getEmitResolver().getJsxFactoryEntity(r),i.reactNamespace,e.mapDefined(a,o),t,c);return s&&e.startOnNewLine(u),u}(t.openingFragment,t.children,a,t)}function l(t,a,s,c){var u,l=function t(n){if(253===n.kind)return t(n.openingElement);var r=n.tagName;return e.isIdentifier(r)&&e.isIntrinsicJsxName(r.escapedText)?e.createLiteral(e.idText(r)):e.createExpressionFromEntityName(r)}(t),p=t.attributes.properties;if(0===p.length)u=e.createNull();else{var f=e.flatten(e.spanMap(p,e.isJsxSpreadAttribute,function(t,n){return n?e.map(t,_):e.createObjectLiteral(e.map(t,d))}));e.isJsxSpreadAttribute(p[0])&&f.unshift(e.createObjectLiteral()),(u=e.singleOrUndefined(f))||(u=e.createAssignHelper(n,f))}var m=e.createExpressionForJsxElement(n.getEmitResolver().getJsxFactoryEntity(r),i.reactNamespace,l,u,e.mapDefined(a,o),t,c);return s&&e.startOnNewLine(m),m}function _(t){return e.visitNode(t.expression,a,e.isExpression)}function d(t){var n=function(t){var n=t.name,r=e.idText(n);return/^[A-Za-z_]\w*$/.test(r)?n:e.createLiteral(r)}(t),i=function(t){if(void 0===t)return e.createTrue();if(9===t.kind){var n=e.createLiteral(((a=f(i=t.text))===i?void 0:a)||t.text);return n.singleQuote=void 0!==t.singleQuote?t.singleQuote:!e.isStringDoubleQuoted(t,r),e.setTextRange(n,t)}if(263===t.kind)return void 0===t.expression?e.createTrue():m(t);var i,a;e.Debug.failBadSyntaxKind(t)}(t.initializer);return e.createPropertyAssignment(n,i)}function p(e,t){var n=f(t);return void 0===e?n:e+" "+n}function f(e){return e.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,function(e,n,r,i,a,o,s){if(a)return String.fromCharCode(parseInt(a,10));if(o)return String.fromCharCode(parseInt(o,16));var c=t.get(s);return c?String.fromCharCode(c):e})}function m(t){return e.visitNode(t.expression,a,e.isExpression)}};var t=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})}(l||(l={})),function(e){e.transformES2016=function(t){var n=t.hoistVariableDeclaration;return function(n){return n.isDeclarationFile?n:e.visitEachChild(n,r,t)};function r(i){if(0==(32&i.transformFlags))return i;switch(i.kind){case 198:return function(i){switch(i.operatorToken.kind){case 62:return function(t){var i,a,o=e.visitNode(t.left,r,e.isExpression),s=e.visitNode(t.right,r,e.isExpression);if(e.isElementAccessExpression(o)){var c=e.createTempVariable(n),u=e.createTempVariable(n);i=e.setTextRange(e.createElementAccess(e.setTextRange(e.createAssignment(c,o.expression),o.expression),e.setTextRange(e.createAssignment(u,o.argumentExpression),o.argumentExpression)),o),a=e.setTextRange(e.createElementAccess(c,u),o)}else e.isPropertyAccessExpression(o)?(c=e.createTempVariable(n),i=e.setTextRange(e.createPropertyAccess(e.setTextRange(e.createAssignment(c,o.expression),o.expression),o.name),o),a=e.setTextRange(e.createPropertyAccess(c,o.name),o)):(i=o,a=o);return e.setTextRange(e.createAssignment(i,e.createMathPow(a,s,t)),t)}(i);case 40:return function(t){var n=e.visitNode(t.left,r,e.isExpression),i=e.visitNode(t.right,r,e.isExpression);return e.createMathPow(n,i,t)}(i);default:return e.visitEachChild(i,r,t)}}(i);default:return e.visitEachChild(i,r,t)}}}}(l||(l={})),function(e){var t,n,r,i,a;!function(e){e[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings"}(t||(t={})),function(e){e[e.ToOriginal=0]="ToOriginal",e[e.ToOutParameter=1]="ToOutParameter"}(n||(n={})),function(e){e[e.Break=2]="Break",e[e.Continue=4]="Continue",e[e.Return=8]="Return"}(r||(r={})),function(e){e[e.NoReplacement=0]="NoReplacement",e[e.ReplaceSuperCapture=1]="ReplaceSuperCapture",e[e.ReplaceWithReturn=2]="ReplaceWithReturn"}(i||(i={})),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"}(a||(a={})),e.transformES2015=function(t){var n,r,i,a,c,u,l=t.startLexicalEnvironment,_=t.resumeLexicalEnvironment,d=t.endLexicalEnvironment,p=t.hoistVariableDeclaration,f=t.getCompilerOptions(),m=t.getEmitResolver(),g=t.onSubstituteNode,y=t.onEmitNode;return t.onEmitNode=function(t,n,r){if(1&u&&e.isFunctionLike(n)){var i=h(16286,8&e.getEmitFlags(n)?81:65);return y(t,n,r),void v(i,0,0)}y(t,n,r)},t.onSubstituteNode=function(t,n){return n=g(t,n),1===t?function(t){switch(t.kind){case 71:return function(t){if(2&u&&!e.isInternalName(t)){var n=m.getReferencedDeclarationWithCollidingName(t);if(n&&(!e.isClassLike(n)||!function(t,n){var r=e.getParseTreeNode(n);if(!r||r===t||r.end<=t.pos||r.pos>=t.end)return!1;for(var i=e.getEnclosingBlockScopeContainer(t);r;){if(r===i||r===t)return!1;if(e.isClassElement(r)&&r.parent===t)return!0;r=r.parent}return!1}(n,t)))return e.setTextRange(e.getGeneratedNameForNode(e.getNameOfDeclaration(n)),t)}return t}(t);case 99:return function(t){return 1&u&&16&i?e.setTextRange(e.createIdentifier("_this"),t):t}(t)}return t}(n):e.isIdentifier(n)?function(t){if(2&u&&!e.isInternalName(t)){var n=e.getParseTreeNode(t,e.isIdentifier);if(n&&function(e){var t=e.parent;switch(t.kind){case 180:case 233:case 236:case 230:return t.name===e&&m.isDeclarationWithCollidingName(t)}return!1}(n))return e.setTextRange(e.getGeneratedNameForNode(n),t)}return t}(n):n},function(o){if(o.isDeclarationFile)return o;n=o,r=o.text;var s=function(t){var n=h(3968,64),r=[];l();var i=e.addStandardPrologue(r,t.statements,!1);return I(r,t),i=e.addCustomPrologue(r,t.statements,i,k),e.addRange(r,e.visitNodes(t.statements,k,e.isStatement,i)),a&&r.push(e.createVariableStatement(void 0,e.createVariableDeclarationList(a))),e.addRange(r,d()),v(n,0,0),e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray(r),t.statements))}(o);return e.addEmitHelpers(s,t.readEmitHelpers()),n=void 0,r=void 0,a=void 0,i=0,s};function h(e,t){var n=i;return i=16383&(i&~e|t),n}function v(e,t,n){i=-16384&(i&~t|n)|e}function b(e){return 4096&i&&223===e.kind&&!e.expression}function x(t){return 0!=(128&t.transformFlags)||void 0!==c||4096&i&&(e.isStatement(t)||211===t.kind)||e.isIterationStatement(t,!1)&&ie(t)||0!=(33554432&e.getEmitFlags(t))}function k(r){return x(r)?function(r){switch(r.kind){case 115:return;case 233:return function(t){var n=e.createVariableDeclaration(e.getLocalName(t,!0),void 0,T(t));e.setOriginalNode(n,t);var r=[],i=e.createVariableStatement(void 0,e.createVariableDeclarationList([n]));if(e.setOriginalNode(i,t),e.setTextRange(i,t),e.startOnNewLine(i),r.push(i),e.hasModifier(t,1)){var a=e.hasModifier(t,512)?e.createExportDefault(e.getLocalName(t)):e.createExternalModuleExport(e.getLocalName(t));e.setOriginalNode(a,i),r.push(a)}var o=e.getEmitFlags(t);return 0==(4194304&o)&&(r.push(e.createEndOfDeclarationMarker(t)),e.setEmitFlags(i,4194304|o)),e.singleOrMany(r)}(r);case 203:return function(e){return T(e)}(r);case 148:return function(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}(r);case 232:return function(n){var r=c;c=void 0;var a=h(16286,65),o=e.visitParameterList(n.parameters,k,t),s=64&n.transformFlags?J(n):K(n),u=16384&i?e.getLocalName(n):n.name;return v(a,49152,0),c=r,e.updateFunctionDeclaration(n,void 0,e.visitNodes(n.modifiers,k,e.isModifier),n.asteriskToken,u,void 0,o,void 0,s)}(r);case 191:return function(n){16384&n.transformFlags&&Se();var r=c;c=void 0;var i=h(16256,66),a=e.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(n.parameters,k,t),void 0,J(n));return e.setTextRange(a,n),e.setOriginalNode(a,n),e.setEmitFlags(a,8),v(i,0,0),c=r,a}(r);case 190:return function(n){var r=262144&e.getEmitFlags(n)?h(16278,69):h(16286,65),a=c;c=void 0;var o=e.visitParameterList(n.parameters,k,t),s=64&n.transformFlags?J(n):K(n),u=16384&i?e.getLocalName(n):n.name;return v(r,49152,0),c=a,e.updateFunctionExpression(n,void 0,n.asteriskToken,u,void 0,o,void 0,s)}(r);case 230:return H(r);case 71:return function(t){return c?e.isGeneratedIdentifier(t)?t:"arguments"===t.escapedText&&m.isArgumentsLocalBinding(t)?c.argumentsName||(c.argumentsName=e.createUniqueName("arguments")):t:t}(r);case 231:return function(n){if(64&n.transformFlags){3&n.flags&&ke();var r=e.flatMap(n.declarations,1&n.flags?W:H),i=e.createVariableDeclarationList(r);if(e.setOriginalNode(i,n),e.setTextRange(i,n),e.setCommentRange(i,n),8388608&n.transformFlags&&(e.isBindingPattern(n.declarations[0].name)||e.isBindingPattern(e.lastOrUndefined(n.declarations).name))){var a=e.firstOrUndefined(r);if(a){var o=e.lastOrUndefined(r);e.setSourceMapRange(i,e.createRange(a.pos,o.end))}}return i}return e.visitEachChild(n,k,t)}(r);case 225:return function(n){if(void 0!==c){var r=c.allowedNonLabeledJumps;c.allowedNonLabeledJumps|=2;var i=e.visitEachChild(n,k,t);return c.allowedNonLabeledJumps=r,i}return e.visitEachChild(n,k,t)}(r);case 239:return function(n){var r=h(4032,0),i=e.visitEachChild(n,k,t);return v(r,0,0),i}(r);case 211:return U(r,!1);case 222:case 221:return function(n){if(c){var r=222===n.kind?2:4;if(!(n.label&&c.labels&&c.labels.get(e.idText(n.label))||!n.label&&c.allowedNonLabeledJumps&r)){var i=void 0;n.label?222===n.kind?(i="break-"+n.label.escapedText,ce(c,!0,e.idText(n.label),i)):(i="continue-"+n.label.escapedText,ce(c,!1,e.idText(n.label),i)):222===n.kind?(c.nonLocalJumps|=2,i="break"):(c.nonLocalJumps|=4,i="continue");var a=e.createLiteral(i);if(c.loopOutParameters.length){for(var o=c.loopOutParameters,s=void 0,u=0;u<o.length;u++){var l=oe(o[u],1);s=0===u?l:e.createBinary(s,26,l)}a=e.createBinary(s,26,a)}return e.createReturn(a)}}return e.visitEachChild(n,k,t)}(r);case 226:return function(t){c&&!c.labels&&(c.labels=e.createMap());var n=e.unwrapInnermostStatementOfLabel(t,c&&G);return e.isIterationStatement(n,!1)?function(e,t){switch(e.kind){case 216:case 217:return Y(e,t);case 218:return $(e,t);case 219:return Z(e,t);case 220:return ee(e,t)}}(n,t):e.restoreEnclosingLabel(e.visitNode(n,k,e.isStatement),t,c&&X)}(r);case 216:case 217:return Y(r,void 0);case 218:return $(r,void 0);case 219:return Z(r,void 0);case 220:return ee(r,void 0);case 214:return function(n){switch(n.expression.kind){case 189:return e.updateStatement(n,V(n.expression,!1));case 198:return e.updateStatement(n,q(n.expression,!1))}return e.visitEachChild(n,k,t)}(r);case 182:return function(n){for(var r=n.properties,a=r.length,o=a,s=a,c=0;c<a;c++){var u=r[c];if(16777216&u.transformFlags&&4&i&&c<s&&(s=c),146===u.name.kind){o=c;break}}if(o!==a){s<o&&(o=s);var l=e.createTempVariable(p),_=[],d=e.createAssignment(l,e.setEmitFlags(e.createObjectLiteral(e.visitNodes(r,k,e.isObjectLiteralElementLike,0,o),n.multiLine),65536));return n.multiLine&&e.startOnNewLine(d),_.push(d),function(t,n,r,i){for(var a=n.properties,s=a.length,c=o;c<s;c++){var u=a[c];switch(u.kind){case 155:case 156:var l=e.getAllAccessorDeclarations(n.properties,u);u===l.firstAccessor&&t.push(z(r,l,n,n.multiLine));break;case 153:t.push(pe(u,r,n,n.multiLine));break;case 268:t.push(_e(u,r,n.multiLine));break;case 269:t.push(de(u,r,n.multiLine));break;default:e.Debug.failBadSyntaxKind(n)}}}(_,n,l),_.push(n.multiLine?e.startOnNewLine(e.getMutableClone(l)):l),e.inlineExpressions(_)}return e.visitEachChild(n,k,t)}(r);case 267:return function(n){var r,i,a,o,s=h(4032,0);if(e.Debug.assert(!!n.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),e.isBindingPattern(n.variableDeclaration.name)){var c=e.createTempVariable(void 0),u=e.createVariableDeclaration(c);e.setTextRange(u,n.variableDeclaration);var l=e.flattenDestructuringBinding(n.variableDeclaration,k,t,0,c),_=e.createVariableDeclarationList(l);e.setTextRange(_,n.variableDeclaration);var d=e.createVariableStatement(void 0,_);r=e.updateCatchClause(n,u,(a=d,o=e.visitNodes((i=n.block).statements,k,e.isStatement),e.updateBlock(i,[a].concat(o))))}else r=e.visitEachChild(n,k,t);return v(s,0,0),r}(r);case 269:return function(t){return e.setTextRange(e.createPropertyAssignment(t.name,e.getSynthesizedClone(t.name)),t)}(r);case 146:return function(n){var r=h(0,8192),a=e.visitEachChild(n,k,t);return v(r,49152,49152&i?32768:0),a}(r);case 181:return function(n){return 64&n.transformFlags?me(n.elements,!0,n.multiLine,n.elements.hasTrailingComma):e.visitEachChild(n,k,t)}(r);case 185:return function(t){return 33554432&e.getEmitFlags(t)?function(t){var n=e.cast(e.cast(e.skipOuterExpressions(t.expression),e.isArrowFunction).body,e.isBlock),r=e.visitNodes(n.statements,k,e.isStatement,0,1),i=e.visitNodes(n.statements,k,e.isStatement,1,n.statements.length-1),a=e.cast(e.firstOrUndefined(r),e.isVariableStatement).declarationList.declarations[0],o=e.skipOuterExpressions(a.initializer),s=e.tryCast(o,e.isAssignmentExpression),c=e.cast(s?e.skipOuterExpressions(s.right):o,e.isCallExpression),u=e.cast(e.skipOuterExpressions(c.expression),e.isFunctionExpression),l=u.body.statements,_=0,d=-1,p=[];if(s){var f=e.tryCast(l[_],e.isExpressionStatement);f&&(p.push(f),_++),p.push(l[_]),_++,p.push(e.createStatement(e.createAssignment(s.left,e.cast(a.name,e.isIdentifier))))}for(;!e.isReturnStatement(e.elementAt(l,d));)d--;return e.addRange(p,l,_,d),d<-1&&e.addRange(p,l,d+1),e.addRange(p,i),e.addRange(p,r,1),e.recreateOuterExpressions(t.expression,e.recreateOuterExpressions(a.initializer,e.recreateOuterExpressions(s&&s.right,e.updateCall(c,e.recreateOuterExpressions(c.expression,e.updateFunctionExpression(u,void 0,void 0,void 0,void 0,u.parameters,void 0,e.updateBlock(u.body,p))),void 0,c.arguments))))}(t):64&t.transformFlags?fe(t,!0):e.updateCall(t,e.visitNode(t.expression,D,e.isExpression),void 0,e.visitNodes(t.arguments,k,e.isExpression))}(r);case 186:return function(n){if(524288&n.transformFlags){var r=e.createCallBinding(e.createPropertyAccess(n.expression,"bind"),p),i=r.thisArg;return e.createNew(e.createFunctionApply(e.visitNode(r.target,k,e.isExpression),i,me(e.createNodeArray([e.createVoidZero()].concat(n.arguments)),!1,!1,!1)),void 0,[])}return e.visitEachChild(n,k,t)}(r);case 189:return V(r,!0);case 198:return q(r,!0);case 13:case 14:case 15:case 16:return function(t){return e.setTextRange(e.createLiteral(t.text),t)}(r);case 9:return function(t){return t.hasExtendedUnicodeEscape?e.setTextRange(e.createLiteral(t.text),t):t}(r);case 8:return function(t){return 384&t.numericLiteralFlags?e.setTextRange(e.createNumericLiteral(t.text),t):t}(r);case 187:return function(r){var i=e.visitNode(r.tag,k,e.isExpression),o=[void 0],c=[],u=[],l=r.template;if(e.isNoSubstitutionTemplateLiteral(l))c.push(e.createLiteral(l.text)),u.push(be(l));else{c.push(e.createLiteral(l.head.text)),u.push(be(l.head));for(var _=0,d=l.templateSpans;_<d.length;_++){var p=d[_];c.push(e.createLiteral(p.literal.text)),u.push(be(p.literal)),o.push(e.visitNode(p.expression,k,e.isExpression))}}var f=function(t,n,r){return t.requestEmitHelper(s),e.createCall(e.getHelperName("__makeTemplateObject"),void 0,[n,r])}(t,e.createArrayLiteral(c),e.createArrayLiteral(u));if(e.isExternalModule(n)){var m=e.createUniqueName("templateObject");a=e.append(a,e.createVariableDeclaration(m)),o[0]=e.createLogicalOr(m,e.createAssignment(m,f))}else o[0]=f;return e.createCall(i,void 0,o)}(r);case 200:return function(t){var n=[];(function(t,n){(function(t){return e.Debug.assert(0!==t.templateSpans.length),0!==t.head.text.length||0===t.templateSpans[0].literal.text.length})(n)&&t.push(e.createLiteral(n.head.text))})(n,t),function(t,n){for(var r=0,i=n.templateSpans;r<i.length;r++){var a=i[r];t.push(e.visitNode(a.expression,k,e.isExpression)),0!==a.literal.text.length&&t.push(e.createLiteral(a.literal.text))}}(n,t);var r=e.reduceLeft(n,e.createAdd);return e.nodeIsSynthesized(r)&&(r.pos=t.pos,r.end=t.end),r}(r);case 201:return function(n){return e.visitEachChild(n,k,t)}(r);case 202:return function(t){return e.visitNode(t.expression,k,e.isExpression)}(r);case 97:return xe(!1);case 99:return function(t){return c?2&i?(c.containsLexicalThis=!0,t):c.thisName||(c.thisName=e.createUniqueName("this")):t}(r);case 208:return function(t){return 94===t.keywordToken&&"target"===t.name.escapedText?(i|=8192&i?32768:16384,e.createIdentifier("_newTarget")):t}(r);case 153:return function(t){e.Debug.assert(!e.isComputedPropertyName(t.name));var n=j(t,e.moveRangePos(t,-1),void 0,void 0);return e.setEmitFlags(n,512|e.getEmitFlags(n)),e.setTextRange(e.createPropertyAssignment(t.name,n),t)}(r);case 155:case 156:return function(n){e.Debug.assert(!e.isComputedPropertyName(n.name));var r=c;c=void 0;var i,a=h(16286,65);if(32768&n.transformFlags){var o=e.visitParameterList(n.parameters,k,t),s=J(n);i=155===n.kind?e.updateGetAccessor(n,n.decorators,n.modifiers,n.name,o,n.type,s):e.updateSetAccessor(n,n.decorators,n.modifiers,n.name,o,s)}else i=e.visitEachChild(n,k,t);return v(a,49152,0),c=r,i}(r);case 212:return function(n){var r,i=h(0,e.hasModifier(n,1)?32:0);if(c&&0==(3&n.declarationList.flags)){for(var a=void 0,o=0,s=n.declarationList.declarations;o<s.length;o++){var u=s[o];if(ae(c,u),u.initializer){var l=void 0;e.isBindingPattern(u.name)?l=e.flattenDestructuringAssignment(u,k,t,0):(l=e.createBinary(u.name,58,e.visitNode(u.initializer,k,e.isExpression)),e.setTextRange(l,u)),a=e.append(a,l)}}r=a?e.setTextRange(e.createStatement(e.inlineExpressions(a)),n):void 0}else r=e.visitEachChild(n,k,t);return v(i,0,0),r}(r);case 223:return function(n){return c?(c.nonLocalJumps|=8,b(n)&&(n=C(n)),e.createReturn(e.createObjectLiteral([e.createPropertyAssignment(e.createIdentifier("value"),n.expression?e.visitNode(n.expression,k,e.isExpression):e.createVoidZero())]))):b(n)?C(n):e.visitEachChild(n,k,t)}(r);default:return e.visitEachChild(r,k,t)}}(r):r}function S(e){return x(e)?U(e,!0):e}function D(e){return 97===e.kind?xe(!0):k(e)}function C(t){return e.setOriginalNode(e.createReturn(e.createIdentifier("_this")),t)}function T(n){n.name&&ke();var a=e.getClassExtendsHeritageClauseElement(n),s=e.createFunctionExpression(void 0,void 0,void 0,void 0,a?[e.createParameter(void 0,void 0,void 0,"_super")]:[],void 0,function(n,a){var s=[];l(),function(n,r,i){i&&n.push(e.setTextRange(e.createStatement(function(t,n){return t.requestEmitHelper(o),e.createCall(e.getHelperName("__extends"),void 0,[n,e.createIdentifier("_super")])}(t,e.getInternalName(r))),i))}(s,n,a),function(n,r,a){var o=c;c=void 0;var s=h(16278,73),u=e.getFirstConstructorWithBody(r),l=function(t,n){if(!t||void 0===a)return!1;if(e.some(t.parameters))return!1;var r=e.firstOrUndefined(t.body.statements);if(!r||!e.nodeIsSynthesized(r)||214!==r.kind)return!1;var i=r.expression;if(!e.nodeIsSynthesized(i)||185!==i.kind)return!1;var o=i.expression;if(!e.nodeIsSynthesized(o)||97!==o.kind)return!1;var s=e.singleOrUndefined(i.arguments);if(!s||!e.nodeIsSynthesized(s)||202!==s.kind)return!1;var c=s.expression;return e.isIdentifier(c)&&"arguments"===c.escapedText}(u),p=e.createFunctionDeclaration(void 0,void 0,void 0,e.getInternalName(r),void 0,function(n,r){return e.visitParameterList(n&&!r&&n.parameters,k,t)||[]}(u,l),void 0,function(t,n,r,a){var o=[];_();var s=-1;a?s=0:t&&(s=e.addStandardPrologue(o,t.body.statements,!1)),t&&(A(o,t),F(o,t,a),a||(s=e.addCustomPrologue(o,t.body.statements,s,k)),e.Debug.assert(s>=0,"statementOffset not initialized correctly!"));var c=r&&95!==e.skipOuterExpressions(r.expression).kind,u=function(t,n,r,i,a){if(!r)return n&&I(t,n),0;if(!n)return t.push(e.createReturn(N())),2;if(i)return O(t,n,N()),Se(),1;var o,s,c=n.body.statements;if(a<c.length&&214===(o=c[a]).kind&&e.isSuperCall(o.expression)&&(s=fe(o.expression,!1)),s&&a===c.length-1&&!(49152&n.transformFlags)){var u=e.createReturn(s);return 198===s.kind&&185===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 O(t,n,s||E(),o),s?1:0}(o,t,c,a,s);1!==u&&2!==u||s++,t&&(1===u&&(i|=4096),e.addRange(o,e.visitNodes(t.body.statements,k,e.isStatement,s))),!c||2===u||t&&function t(n){if(223===n.kind)return!0;if(215===n.kind){var r=n;if(r.elseStatement)return t(r.thenStatement)&&t(r.elseStatement)}else if(211===n.kind){var i=e.lastOrUndefined(n.statements);if(i&&t(i))return!0}return!1}(t.body)||o.push(e.createReturn(e.createIdentifier("_this"))),e.addRange(o,d()),t&&M(o,t,!1);var l=e.createBlock(e.setTextRange(e.createNodeArray(o),t?t.body.statements:n.members),!0);return e.setTextRange(l,t?t.body:n),t||e.setEmitFlags(l,1536),l}(u,r,a,l));e.setTextRange(p,u||r),a&&e.setEmitFlags(p,8),n.push(p),v(s,49152,0),c=o}(s,n,a),function(t,n){for(var r=0,i=n.members;r<i.length;r++){var a=i[r];switch(a.kind){case 210:t.push(L(a));break;case 153:t.push(R(De(n,a),a,n));break;case 155:case 156:var o=e.getAllAccessorDeclarations(n.members,a);a===o.firstAccessor&&t.push(B(De(n,a),o,n));break;case 154:break;default:e.Debug.failBadSyntaxKind(n)}}}(s,n);var u=e.createTokenRange(e.skipTrivia(r,n.members.end),18),p=e.getInternalName(n),f=e.createPartiallyEmittedExpression(p);f.end=u.end,e.setEmitFlags(f,1536);var m=e.createReturn(f);m.pos=u.pos,e.setEmitFlags(m,1920),s.push(m),e.addRange(s,d());var g=e.createBlock(e.setTextRange(e.createNodeArray(s),n.members),!0);return e.setEmitFlags(g,1536),g}(n,a));e.setEmitFlags(s,65536&e.getEmitFlags(n)|524288);var u=e.createPartiallyEmittedExpression(s);u.end=n.end,e.setEmitFlags(u,1536);var p=e.createPartiallyEmittedExpression(u);p.end=e.skipTrivia(r,n.pos),e.setEmitFlags(p,1536);var f=e.createParen(e.createCall(p,void 0,a?[e.visitNode(a.expression,k,e.isExpression)]:[]));return e.addSyntheticLeadingComment(f,3,"* @class "),f}function E(){return e.setEmitFlags(e.createThis(),4)}function N(){return e.createLogicalOr(e.createLogicalAnd(e.createStrictInequality(e.createIdentifier("_super"),e.createNull()),e.createFunctionApply(e.createIdentifier("_super"),E(),e.createIdentifier("arguments"))),E())}function A(t,n){if(function(e){return 0!=(131072&e.transformFlags)}(n))for(var r=0,i=n.parameters;r<i.length;r++){var a=i[r],o=a.name,s=a.initializer;a.dotDotDotToken||(e.isBindingPattern(o)?P(t,a,o,s):s&&w(t,a,o,s))}}function P(n,r,i,a){var o=e.getGeneratedNameForNode(r);i.elements.length>0?n.push(e.setEmitFlags(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(r,k,t,0,o))),1048576)):a&&n.push(e.setEmitFlags(e.createStatement(e.createAssignment(o,e.visitNode(a,k,e.isExpression))),1048576))}function w(t,n,r,i){i=e.visitNode(i,k,e.isExpression);var a=e.createIf(e.createTypeCheck(e.getSynthesizedClone(r),"undefined"),e.setEmitFlags(e.setTextRange(e.createBlock([e.createStatement(e.setEmitFlags(e.setTextRange(e.createAssignment(e.setEmitFlags(e.getMutableClone(r),48),e.setEmitFlags(i,1584|e.getEmitFlags(i))),n),1536))]),n),1953));e.startOnNewLine(a),e.setTextRange(a,n),e.setEmitFlags(a,1050528),t.push(a)}function F(t,n,r){var i=e.lastOrUndefined(n.parameters);if(function(e,t){return i&&i.dotDotDotToken&&71===i.name.kind&&!t}(0,r)){var a=e.getMutableClone(i.name);e.setEmitFlags(a,48);var o=e.getSynthesizedClone(i.name),s=n.parameters.length-1,c=e.createLoopVariable();t.push(e.setEmitFlags(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(a,void 0,e.createArrayLiteral([]))])),i),1048576));var u=e.createFor(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(c,void 0,e.createLiteral(s))]),i),e.setTextRange(e.createLessThan(c,e.createPropertyAccess(e.createIdentifier("arguments"),"length")),i),e.setTextRange(e.createPostfixIncrement(c),i),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))),i))]));e.setEmitFlags(u,1048576),e.startOnNewLine(u),t.push(u)}}function I(t,n){32768&n.transformFlags&&191!==n.kind&&O(t,n,e.createThis())}function O(t,n,r,i){Se();var a=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("_this",void 0,r)]));e.setEmitFlags(a,1050112),e.setTextRange(a,i),e.setSourceMapRange(a,n),t.push(a)}function M(t,n,r){if(16384&i){var a=void 0;switch(n.kind){case 191:return t;case 153:case 155:case 156:a=e.createVoidZero();break;case 154:a=e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor");break;case 232:case 190:a=e.createConditional(e.createLogicalAnd(e.setEmitFlags(e.createThis(),4),e.createBinary(e.setEmitFlags(e.createThis(),4),93,e.getLocalName(n))),e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor"),e.createVoidZero());break;default:e.Debug.failBadSyntaxKind(n)}var o=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("_newTarget",void 0,a)]));if(r)return[o].concat(t);t.unshift(o)}return t}function L(t){return e.setTextRange(e.createEmptyStatement(),t)}function R(t,n,r){var a=h(0,0),o=e.getCommentRange(n),s=e.getSourceMapRange(n),c=e.createMemberAccessForPropertyName(t,e.visitNode(n.name,k,e.isPropertyName),n.name),u=j(n,n,void 0,r);e.setEmitFlags(u,1536),e.setSourceMapRange(u,s);var l=e.setTextRange(e.createStatement(e.createAssignment(c,u)),n);return e.setOriginalNode(l,n),e.setCommentRange(l,o),e.setEmitFlags(l,48),v(a,49152,49152&i?16384:0),l}function B(t,n,r){var i=e.createStatement(z(t,n,r,!1));return e.setEmitFlags(i,1536),e.setSourceMapRange(i,e.getSourceMapRange(n.firstAccessor)),i}function z(t,n,r,a){var o=n.firstAccessor,s=n.getAccessor,c=n.setAccessor,u=h(0,0),l=e.getMutableClone(t);e.setEmitFlags(l,1568),e.setSourceMapRange(l,o.name);var _=e.createExpressionForPropertyName(e.visitNode(o.name,k,e.isPropertyName));e.setEmitFlags(_,1552),e.setSourceMapRange(_,o.name);var d=[];if(s){var p=j(s,void 0,void 0,r);e.setSourceMapRange(p,e.getSourceMapRange(s)),e.setEmitFlags(p,512);var f=e.createPropertyAssignment("get",p);e.setCommentRange(f,e.getCommentRange(s)),d.push(f)}if(c){var m=j(c,void 0,void 0,r);e.setSourceMapRange(m,e.getSourceMapRange(c)),e.setEmitFlags(m,512);var g=e.createPropertyAssignment("set",m);e.setCommentRange(g,e.getCommentRange(c)),d.push(g)}d.push(e.createPropertyAssignment("enumerable",e.createTrue()),e.createPropertyAssignment("configurable",e.createTrue()));var y=e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[l,_,e.createObjectLiteral(d,!0)]);return a&&e.startOnNewLine(y),v(u,49152,49152&i?16384:0),y}function j(n,r,a,o){var s=c;c=void 0;var u=o&&e.isClassLike(o)&&!e.hasModifier(n,32)?h(16286,73):h(16286,65),l=e.visitParameterList(n.parameters,k,t),_=J(n);return 16384&i&&!a&&(232===n.kind||190===n.kind)&&(a=e.getGeneratedNameForNode(n)),v(u,49152,0),c=s,e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,n.asteriskToken,a,void 0,l,void 0,_),r),n)}function J(r){var i,a,o,s=!1,c=!1,u=[],l=r.body;if(_(),e.isBlock(l)&&(o=e.addStandardPrologue(u,l.statements,!1)),I(u,r),A(u,r),F(u,r,!1),!s&&u.length>0&&(s=!0),e.isBlock(l))o=e.addCustomPrologue(u,l.statements,o,k),i=l.statements,e.addRange(u,e.visitNodes(l.statements,k,e.isStatement,o)),!s&&l.multiLine&&(s=!0);else{e.Debug.assert(191===r.kind),i=e.moveRangeEnd(l,-1);var d=r.equalsGreaterThanToken;e.nodeIsSynthesized(d)||e.nodeIsSynthesized(l)||(e.rangeEndIsOnSameLineAsRangeStart(d,l,n)?c=!0:s=!0);var p=e.visitNode(l,k,e.isExpression),f=e.createReturn(p);e.setTextRange(f,l),e.setEmitFlags(f,1440),u.push(f),a=l}var m=t.endLexicalEnvironment();e.addRange(u,m),M(u,r,!1),!s&&m&&m.length&&(s=!0);var g=e.createBlock(e.setTextRange(e.createNodeArray(u),i),s);return e.setTextRange(g,r.body),!s&&c&&e.setEmitFlags(g,1),a&&e.setTokenSourceMapRange(g,18,a),e.setOriginalNode(g,r.body),g}function K(n){var r=e.visitFunctionBody(n.body,S,t);return e.updateBlock(r,e.setTextRange(e.createNodeArray(M(r.statements,n,!0)),r.statements))}function U(n,r){if(r)return e.visitEachChild(n,k,t);var a=256&i?h(4032,512):h(3904,128),o=e.visitEachChild(n,k,t);return v(a,0,0),o}function V(n,r){if(!r)switch(n.expression.kind){case 189:return e.updateParen(n,V(n.expression,!1));case 198:return e.updateParen(n,q(n.expression,!1))}return e.visitEachChild(n,k,t)}function q(n,r){return e.isDestructuringAssignment(n)?e.flattenDestructuringAssignment(n,k,t,0,r):e.visitEachChild(n,k,t)}function W(n){if(e.isBindingPattern(n.name))return H(n);if(!n.initializer&&function(e){var t=m.getNodeCheckFlags(e),n=131072&t,r=262144&t;return!(0!=(64&i)||n&&r&&0!=(512&i))&&0==(2048&i)&&(!m.isDeclarationWithCollidingName(e)||r&&!n&&0==(3072&i))}(n)){var r=e.getMutableClone(n);return r.initializer=e.createVoidZero(),r}return e.visitEachChild(n,k,t)}function H(n){var r,i=h(32,0);return r=e.isBindingPattern(n.name)?e.flattenDestructuringBinding(n,k,t,0,void 0,0!=(32&i)):e.visitEachChild(n,k,t),v(i,0,0),r}function G(t){c.labels.set(e.idText(t.label),!0)}function X(t){c.labels.set(e.idText(t.label),!1)}function Q(n,r,a,o,s){var u=h(n,r),_=function(n,r,a){if(!ie(n)){var o=void 0;c&&(o=c.allowedNonLabeledJumps,c.allowedNonLabeledJumps=6);var s=a?a(n,r,void 0):e.restoreEnclosingLabel(e.visitEachChild(n,k,t),r,c&&X);return c&&(c.allowedNonLabeledJumps=o),s}var u,_=e.createUniqueName("_loop");switch(n.kind){case 218:case 219:case 220:var p=n.initializer;p&&231===p.kind&&(u=p)}var f=[],m=[];if(u&&3&e.getCombinedNodeFlags(u))for(var g=0,y=u.declarations;g<y.length;g++)le(y[g],f,m);var h=c;c={loopOutParameters:m},h&&(h.argumentsName&&(c.argumentsName=h.argumentsName),h.thisName&&(c.thisName=h.thisName),h.hoistedLocalVariables&&(c.hoistedLocalVariables=h.hoistedLocalVariables)),l();var v=e.visitNode(n.statement,k,e.isStatement,e.liftToBlock),b=d(),x=c;if(c=h,m.length||b){var S=e.isBlock(v)?v.statements.slice():[v];m.length&&se(m,1,S),e.addRange(S,b),v=e.createBlock(S,!0)}e.isBlock(v)?v.multiLine=!0:v=e.createBlock([v],!0);var D=0!=(16777216&n.statement.transformFlags),C=0;x.containsLexicalThis&&(C|=8),D&&0!=(4&i)&&(C|=262144);var T,E=[e.createVariableStatement(void 0,e.setEmitFlags(e.createVariableDeclarationList([e.createVariableDeclaration(_,void 0,e.setEmitFlags(e.createFunctionExpression(void 0,D?e.createToken(39):void 0,void 0,void 0,f,void 0,v),C))]),2097152))];if(x.argumentsName&&(h?h.argumentsName=x.argumentsName:(T||(T=[])).push(e.createVariableDeclaration(x.argumentsName,void 0,e.createIdentifier("arguments")))),x.thisName&&(h?h.thisName=x.thisName:(T||(T=[])).push(e.createVariableDeclaration(x.thisName,void 0,e.createIdentifier("this")))),x.hoistedLocalVariables)if(h)h.hoistedLocalVariables=x.hoistedLocalVariables;else{T||(T=[]);for(var N=0,A=x.hoistedLocalVariables;N<A.length;N++)T.push(e.createVariableDeclaration(A[N]))}if(m.length){T||(T=[]);for(var P=0,w=m;P<w.length;P++)T.push(e.createVariableDeclaration(w[P].outParamName))}T&&E.push(e.createVariableStatement(void 0,e.createVariableDeclarationList(T)));var F,I=function(t,n,r,i){var a=c,o=[],s=!(-5&r.nonLocalJumps||r.labeledNonLocalBreaks||r.labeledNonLocalContinues),u=e.createCall(_,void 0,e.map(f,function(e){return e.name})),l=i?e.createYield(e.createToken(39),e.setEmitFlags(u,8388608)):u;if(s)o.push(e.createStatement(l)),se(r.loopOutParameters,0,o);else{var d=e.createUniqueName("state"),p=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(d,void 0,l)]));if(o.push(p),se(r.loopOutParameters,0,o),8&r.nonLocalJumps){var m=void 0;a?(a.nonLocalJumps|=8,m=e.createReturn(d)):m=e.createReturn(e.createPropertyAccess(d,"value")),o.push(e.createIf(e.createBinary(e.createTypeOf(d),34,e.createLiteral("object")),m))}if(2&r.nonLocalJumps&&o.push(e.createIf(e.createBinary(d,34,e.createLiteral("break")),e.createBreak())),r.labeledNonLocalBreaks||r.labeledNonLocalContinues){var g=[];ue(r.labeledNonLocalBreaks,!0,d,a,g),ue(r.labeledNonLocalContinues,!1,d,a,g),o.push(e.createSwitch(d,e.createCaseBlock(g)))}}return o}(0,0,x,D);if(a)F=a(n,r,I);else{var O=e.getMutableClone(n);O.statement=void 0,(O=e.visitEachChild(O,k,t)).statement=e.createBlock(I,!0),O.transformFlags=0,e.aggregateTransformFlags(O),F=e.restoreEnclosingLabel(O,r,c&&X)}return E.push(F),E}(a,o,s);return v(u,0,0),_}function Y(e,t){return Q(0,256,e,t)}function $(e,t){return Q(3008,1280,e,t)}function Z(e,t){return Q(1984,2304,e,t)}function ee(e,t){return Q(1984,2304,e,t,f.downlevelIteration?re:ne)}function te(n,r,i){var a,o,s=[];if(e.isVariableDeclarationList(n.initializer)){3&n.initializer.flags&&ke();var c=e.firstOrUndefined(n.initializer.declarations);if(c&&e.isBindingPattern(c.name)){var u=e.flattenDestructuringBinding(c,k,t,0,r),l=e.setTextRange(e.createVariableDeclarationList(u),n.initializer);e.setOriginalNode(l,n.initializer);var _=u[0],d=e.lastOrUndefined(u);e.setSourceMapRange(l,e.createRange(_.pos,d.end)),s.push(e.createVariableStatement(void 0,l))}else s.push(e.setTextRange(e.createVariableStatement(void 0,e.setOriginalNode(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(c?c.name:e.createTempVariable(void 0),void 0,r)]),e.moveRangePos(n.initializer,-1)),n.initializer)),e.moveRangeEnd(n.initializer,-1)))}else{var p=e.createAssignment(n.initializer,r);e.isDestructuringAssignment(p)?(e.aggregateTransformFlags(p),s.push(e.createStatement(q(p,!1)))):(p.end=n.initializer.end,s.push(e.setTextRange(e.createStatement(e.visitNode(p,k,e.isExpression)),e.moveRangeEnd(n.initializer,-1))))}if(i)e.addRange(s,i);else{var f=e.visitNode(n.statement,k,e.isStatement,e.liftToBlock);e.isBlock(f)?(e.addRange(s,f.statements),a=f,o=f.statements):s.push(f)}return e.setEmitFlags(e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(s),o),!0),a),432)}function ne(t,n,r){var i=e.visitNode(t.expression,k,e.isExpression),a=e.createLoopVariable(),o=e.isIdentifier(i)?e.getGeneratedNameForNode(i):e.createTempVariable(void 0);e.setEmitFlags(i,48|e.getEmitFlags(i));var s=e.setTextRange(e.createFor(e.setEmitFlags(e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(a,void 0,e.createLiteral(0)),e.moveRangePos(t.expression,-1)),e.setTextRange(e.createVariableDeclaration(o,void 0,i),t.expression)]),t.expression),2097152),e.setTextRange(e.createLessThan(a,e.createPropertyAccess(o,"length")),t.expression),e.setTextRange(e.createPostfixIncrement(a),t.expression),te(t,e.createElementAccess(o,a),r)),t);return e.setEmitFlags(s,256),e.setTextRange(s,t),e.restoreEnclosingLabel(s,n,c&&X)}function re(n,r,i){var a=e.visitNode(n.expression,k,e.isExpression),o=e.isIdentifier(a)?e.getGeneratedNameForNode(a):e.createTempVariable(void 0),s=e.isIdentifier(a)?e.getGeneratedNameForNode(o):e.createTempVariable(void 0),u=e.createUniqueName("e"),l=e.getGeneratedNameForNode(u),_=e.createTempVariable(void 0),d=e.createValuesHelper(t,a,n.expression),f=e.createCall(e.createPropertyAccess(o,"next"),void 0,[]);p(u),p(_);var m=e.setEmitFlags(e.setTextRange(e.createFor(e.setEmitFlags(e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(o,void 0,d),n.expression),e.createVariableDeclaration(s,void 0,f)]),n.expression),2097152),e.createLogicalNot(e.createPropertyAccess(s,"done")),e.createAssignment(s,f),te(n,e.createPropertyAccess(s,"value"),i)),n),256);return e.createTry(e.createBlock([e.restoreEnclosingLabel(m,r,c&&X)]),e.createCatchClause(e.createVariableDeclaration(l),e.setEmitFlags(e.createBlock([e.createStatement(e.createAssignment(u,e.createObjectLiteral([e.createPropertyAssignment("error",l)])))]),1)),e.createBlock([e.createTry(e.createBlock([e.setEmitFlags(e.createIf(e.createLogicalAnd(e.createLogicalAnd(s,e.createLogicalNot(e.createPropertyAccess(s,"done"))),e.createAssignment(_,e.createPropertyAccess(o,"return"))),e.createStatement(e.createFunctionCall(_,o,[]))),1)]),void 0,e.setEmitFlags(e.createBlock([e.setEmitFlags(e.createIf(u,e.createThrow(e.createPropertyAccess(u,"error"))),1)]),1))]))}function ie(e){return 0!=(65536&m.getNodeCheckFlags(e))}function ae(t,n){t.hoistedLocalVariables||(t.hoistedLocalVariables=[]),function n(r){if(71===r.kind)t.hoistedLocalVariables.push(r);else for(var i=0,a=r.elements;i<a.length;i++){var o=a[i];e.isOmittedExpression(o)||n(o.name)}}(n.name)}function oe(t,n){return e.createBinary(0===n?t.originalName:t.outParamName,58,0===n?t.outParamName:t.originalName)}function se(t,n,r){for(var i=0,a=t;i<a.length;i++)r.push(e.createStatement(oe(a[i],n)))}function ce(t,n,r,i){n?(t.labeledNonLocalBreaks||(t.labeledNonLocalBreaks=e.createMap()),t.labeledNonLocalBreaks.set(r,i)):(t.labeledNonLocalContinues||(t.labeledNonLocalContinues=e.createMap()),t.labeledNonLocalContinues.set(r,i))}function ue(t,n,r,i,a){t&&t.forEach(function(t,o){var s=[];if(!i||i.labels&&i.labels.get(o)){var c=e.createIdentifier(o);s.push(n?e.createBreak(c):e.createContinue(c))}else ce(i,n,o,t),s.push(e.createReturn(r));a.push(e.createCaseClause(e.createLiteral(t),s))})}function le(t,n,r){var i=t.name;if(e.isBindingPattern(i))for(var a=0,o=i.elements;a<o.length;a++){var s=o[a];e.isOmittedExpression(s)||le(s,n,r)}else if(n.push(e.createParameter(void 0,void 0,void 0,i)),2097152&m.getNodeCheckFlags(t)){var c=e.createUniqueName("out_"+e.idText(i));r.push({originalName:i,outParamName:c})}}function _e(t,n,r){var i=e.createAssignment(e.createMemberAccessForPropertyName(n,e.visitNode(t.name,k,e.isPropertyName)),e.visitNode(t.initializer,k,e.isExpression));return e.setTextRange(i,t),r&&e.startOnNewLine(i),i}function de(t,n,r){var i=e.createAssignment(e.createMemberAccessForPropertyName(n,e.visitNode(t.name,k,e.isPropertyName)),e.getSynthesizedClone(t.name));return e.setTextRange(i,t),r&&e.startOnNewLine(i),i}function pe(t,n,r,a){var o=h(0,0),s=e.createAssignment(e.createMemberAccessForPropertyName(n,e.visitNode(t.name,k,e.isPropertyName)),j(t,t,void 0,r));return e.setTextRange(s,t),a&&e.startOnNewLine(s),v(o,49152,49152&i?16384:0),s}function fe(n,r){if(524288&n.transformFlags||97===n.expression.kind||e.isSuperProperty(e.skipOuterExpressions(n.expression))){var i=e.createCallBinding(n.expression,p),a=i.target,o=i.thisArg;97===n.expression.kind&&e.setEmitFlags(o,4);var s=void 0;if(s=524288&n.transformFlags?e.createFunctionApply(e.visitNode(a,D,e.isExpression),e.visitNode(o,k,e.isExpression),me(n.arguments,!1,!1,!1)):e.createFunctionCall(e.visitNode(a,D,e.isExpression),e.visitNode(o,k,e.isExpression),e.visitNodes(n.arguments,k,e.isExpression),n),97===n.expression.kind){var c=e.createThis();e.setEmitFlags(c,4);var u=e.createLogicalOr(s,c);s=r?e.createAssignment(e.createIdentifier("_this"),u):u}return e.setOriginalNode(s,n)}return e.visitEachChild(n,k,t)}function me(n,r,i,a){var o=n.length,s=e.flatten(e.spanMap(n,ge,function(e,t,n,r){return t(e,i,a&&r===o)}));if(f.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.escapedText)return s[0]}return e.createSpreadHelper(t,s)}if(1===s.length){var u=n[0];return r&&e.isSpreadElement(u)&&181!==u.expression.kind?e.createArraySlice(s[0]):s[0]}return e.createArrayConcat(s.shift(),s)}function ge(t){return e.isSpreadElement(t)?ye:he}function ye(t){return e.map(t,ve)}function he(t,n,r){return e.createArrayLiteral(e.visitNodes(e.createNodeArray(t,r),k,e.isExpression),n)}function ve(t){return e.visitNode(t.expression,k,e.isExpression)}function be(t){var r=e.getSourceTextOfNodeFromSourceFile(n,t);return r=(r=r.substring(1,r.length-(13===t.kind||16===t.kind?1:2))).replace(/\r\n?/g,"\n"),e.setTextRange(e.createLiteral(r),t)}function xe(t){return 8&i&&!t?e.createPropertyAccess(e.createIdentifier("_super"),"prototype"):e.createIdentifier("_super")}function ke(){0==(2&u)&&(u|=2,t.enableSubstitution(71))}function Se(){0==(1&u)&&(u|=1,t.enableSubstitution(99),t.enableEmitNotification(154),t.enableEmitNotification(153),t.enableEmitNotification(155),t.enableEmitNotification(156),t.enableEmitNotification(191),t.enableEmitNotification(190),t.enableEmitNotification(232))}function De(t,n){return e.hasModifier(n,32)?e.getInternalName(t):e.createPropertyAccess(e.getInternalName(t),"prototype")}};var o={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 })();"},s={name:"typescript:makeTemplateObject",scoped:!1,priority:0,text:'\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n };'}}(l||(l={})),function(e){e.transformES5=function(t){var n,r,i=t.getCompilerOptions();1!==i.jsx&&3!==i.jsx||(n=t.onEmitNode,t.onEmitNode=function(t,i,a){switch(i.kind){case 255:case 256:case 254:r[e.getOriginalNodeId(i.tagName)]=!0}n(t,i,a)},t.enableEmitNotification(255),t.enableEmitNotification(256),t.enableEmitNotification(254),r=[]);var a=t.onSubstituteNode;return t.onSubstituteNode=function(t,n){return n.id&&r&&r[n.id]?a(t,n):(n=a(t,n),e.isPropertyAccessExpression(n)?function(t){var n=o(t.name);return n?e.setTextRange(e.createElementAccess(t.expression,n),t):t}(n):e.isPropertyAssignment(n)?function(t){var n=e.isIdentifier(t.name)&&o(t.name);return n?e.updatePropertyAssignment(t,n,t.initializer):t}(n):n)},t.enableSubstitution(183),t.enableSubstitution(268),function(e){return e};function o(t){var n=t.originalKeywordKind||(e.nodeIsSynthesized(t)?e.stringToToken(e.idText(t)):void 0);if(n>=72&&n<=107)return e.setTextRange(e.createLiteral(t),t)}}}(l||(l={})),function(e){var t,n,r,i,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"}(t||(t={})),function(e){e[e.Open=0]="Open",e[e.Close=1]="Close"}(n||(n={})),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"}(r||(r={})),function(e){e[e.Try=0]="Try",e[e.Catch=1]="Catch",e[e.Finally=2]="Finally",e[e.Done=3]="Done"}(i||(i={})),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"}(a||(a={})),e.transformGenerators=function(t){var n,r,i,a,s,c,u,l,_,d,p=t.resumeLexicalEnvironment,f=t.endLexicalEnvironment,m=t.hoistFunctionDeclaration,g=t.hoistVariableDeclaration,y=t.getCompilerOptions(),h=e.getEmitScriptTarget(y),v=t.getEmitResolver(),b=t.onSubstituteNode;t.onSubstituteNode=function(t,i){return i=b(t,i),1===t?function(t){return e.isIdentifier(t)?function(t){if(!e.isGeneratedIdentifier(t)&&n&&n.has(e.idText(t))){var i=e.getOriginalNode(t);if(e.isIdentifier(i)&&i.parent){var a=v.getReferencedValueDeclaration(i);if(a){var o=r[e.getOriginalNodeId(a)];if(o){var s=e.getMutableClone(o);return e.setSourceMapRange(s,t),e.setCommentRange(s,t),s}}}}return t}(t):t}(i):i};var x,k,S,D,C,T,E,N,A,P,w,F,I=1,O=0,M=0;return function(n){if(n.isDeclarationFile||0==(512&n.transformFlags))return n;var r=e.visitEachChild(n,L,t);return e.addEmitHelpers(r,t.readEmitHelpers()),r};function L(n){var r=n.transformFlags;return a?function(n){switch(n.kind){case 216:case 217:return function(n){return a?(re(),n=e.visitEachChild(n,L,t),ae(),n):e.visitEachChild(n,L,t)}(n);case 225:return function(n){return a&&Z({kind:2,isScript:!0,breakLabel:-1}),n=e.visitEachChild(n,L,t),a&&oe(),n}(n);case 226:return function(n){return a&&Z({kind:4,isScript:!0,labelText:e.idText(n.label),breakLabel:-1}),n=e.visitEachChild(n,L,t),a&&se(),n}(n);default:return R(n)}}(n):i?R(n):256&r?function(n){switch(n.kind){case 232:return B(n);case 190:return z(n);default:return e.Debug.failBadSyntaxKind(n),e.visitEachChild(n,L,t)}}(n):512&r?e.visitEachChild(n,L,t):n}function R(n){switch(n.kind){case 232:return B(n);case 190:return z(n);case 155:case 156:return function(n){var r=i,o=a;return i=!1,a=!1,n=e.visitEachChild(n,L,t),i=r,a=o,n}(n);case 212:return function(t){if(16777216&t.transformFlags)q(t.declarationList);else{if(1048576&e.getEmitFlags(t))return t;for(var n=0,r=t.declarationList.declarations;n<r.length;n++)g(r[n].name);var i=e.getInitializedVariables(t.declarationList);if(0!==i.length)return e.setSourceMapRange(e.createStatement(e.inlineExpressions(e.map(i,W))),t)}}(n);case 218:return function(n){a&&re();var r=n.initializer;if(r&&e.isVariableDeclarationList(r)){for(var i=0,o=r.declarations;i<o.length;i++)g(o[i].name);var s=e.getInitializedVariables(r);n=e.updateFor(n,s.length>0?e.inlineExpressions(e.map(s,W)):void 0,e.visitNode(n.condition,L,e.isExpression),e.visitNode(n.incrementor,L,e.isExpression),e.visitNode(n.statement,L,e.isStatement,e.liftToBlock))}else n=e.visitEachChild(n,L,t);return a&&ae(),n}(n);case 219:return function(n){a&&re();var r=n.initializer;if(e.isVariableDeclarationList(r)){for(var i=0,o=r.declarations;i<o.length;i++)g(o[i].name);n=e.updateForIn(n,r.declarations[0].name,e.visitNode(n.expression,L,e.isExpression),e.visitNode(n.statement,L,e.isStatement,e.liftToBlock))}else n=e.visitEachChild(n,L,t);return a&&ae(),n}(n);case 222:return function(n){if(a){var r=de(n.label&&e.idText(n.label));if(r>0)return ge(r,n)}return e.visitEachChild(n,L,t)}(n);case 221:return function(n){if(a){var r=pe(n.label&&e.idText(n.label));if(r>0)return ge(r,n)}return e.visitEachChild(n,L,t)}(n);case 223:return function(t){return n=e.visitNode(t.expression,L,e.isExpression),r=t,e.setTextRange(e.createReturn(e.createArrayLiteral(n?[me(2),n]:[me(2)])),r);var n,r}(n);default:return 16777216&n.transformFlags?function(n){switch(n.kind){case 198:return function(n){switch(e.getExpressionAssociativity(n)){case 0:return function(n){if(H(n.right)){if(e.isLogicalOperator(n.operatorToken.kind))return function(t){var n=Y(),r=Q();return ve(r,e.visitNode(t.left,L,e.isExpression),t.left),53===t.operatorToken.kind?ke(n,r,t.left):xe(n,r,t.left),ve(r,e.visitNode(t.right,L,e.isExpression),t.right),$(n),r}(n);if(26===n.operatorToken.kind)return function(t){var n=[];return r(t.left),r(t.right),e.inlineExpressions(n);function r(t){e.isBinaryExpression(t)&&26===t.operatorToken.kind?(r(t.left),r(t.right)):(H(t)&&n.length>0&&(Se(1,[e.createStatement(e.inlineExpressions(n))]),n=[]),n.push(e.visitNode(t,L,e.isExpression)))}}(n);var r=e.getMutableClone(n);return r.left=X(e.visitNode(n.left,L,e.isExpression)),r.right=e.visitNode(n.right,L,e.isExpression),r}return e.visitEachChild(n,L,t)}(n);case 1:return function(n){var r,i=n.left,a=n.right;if(H(a)){var o=void 0;switch(i.kind){case 183:o=e.updatePropertyAccess(i,X(e.visitNode(i.expression,L,e.isLeftHandSideExpression)),i.name);break;case 184:o=e.updateElementAccess(i,X(e.visitNode(i.expression,L,e.isLeftHandSideExpression)),X(e.visitNode(i.argumentExpression,L,e.isExpression)));break;default:o=e.visitNode(i,L,e.isExpression)}var s=n.operatorToken.kind;return(r=s)>=59&&r<=70?e.setTextRange(e.createAssignment(o,e.setTextRange(e.createBinary(X(o),function(e){switch(s){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}}(),e.visitNode(a,L,e.isExpression)),n)),n):e.updateBinary(n,o,e.visitNode(a,L,e.isExpression))}return e.visitEachChild(n,L,t)}(n);default:e.Debug.fail("Unknown associativity.")}}(n);case 199:return function(n){if(H(n.whenTrue)||H(n.whenFalse)){var r=Y(),i=Y(),a=Q();return ke(r,e.visitNode(n.condition,L,e.isExpression),n.condition),ve(a,e.visitNode(n.whenTrue,L,e.isExpression),n.whenTrue),be(i),$(r),ve(a,e.visitNode(n.whenFalse,L,e.isExpression),n.whenFalse),$(i),a}return e.visitEachChild(n,L,t)}(n);case 201:return function(n){var r,i=Y(),a=e.visitNode(n.expression,L,e.isExpression);return n.asteriskToken?Se(7,[0==(8388608&e.getEmitFlags(n.expression))?e.createValuesHelper(t,a,n):a],n):function(e,t){Se(6,[e],n)}(a),$(i),r=n,e.setTextRange(e.createCall(e.createPropertyAccess(D,"sent"),void 0,[]),r)}(n);case 181:return function(e){return J(e.elements,void 0,void 0,e.multiLine)}(n);case 182:return function(t){var n=t.properties,r=t.multiLine,i=G(n),a=Q();ve(a,e.createObjectLiteral(e.visitNodes(n,L,e.isObjectLiteralElementLike,0,i),r));var o=e.reduceLeft(n,function(n,i){H(i)&&n.length>0&&(he(e.createStatement(e.inlineExpressions(n))),n=[]);var o=e.createExpressionForObjectLiteralElementLike(t,i,a),s=e.visitNode(o,L,e.isExpression);return s&&(r&&e.startOnNewLine(s),n.push(s)),n},[],i);return o.push(r?e.startOnNewLine(e.getMutableClone(a)):a),e.inlineExpressions(o)}(n);case 184:return function(n){if(H(n.argumentExpression)){var r=e.getMutableClone(n);return r.expression=X(e.visitNode(n.expression,L,e.isLeftHandSideExpression)),r.argumentExpression=e.visitNode(n.argumentExpression,L,e.isExpression),r}return e.visitEachChild(n,L,t)}(n);case 185:return function(n){if(!e.isImportCall(n)&&e.forEach(n.arguments,H)){var r=e.createCallBinding(n.expression,g,h,!0),i=r.thisArg;return e.setOriginalNode(e.createFunctionApply(X(e.visitNode(r.target,L,e.isLeftHandSideExpression)),i,J(n.arguments),n),n)}return e.visitEachChild(n,L,t)}(n);case 186:return function(n){if(e.forEach(n.arguments,H)){var r=e.createCallBinding(e.createPropertyAccess(n.expression,"bind"),g),i=r.thisArg;return e.setOriginalNode(e.setTextRange(e.createNew(e.createFunctionApply(X(e.visitNode(r.target,L,e.isExpression)),i,J(n.arguments,e.createVoidZero())),void 0,[]),n),n)}return e.visitEachChild(n,L,t)}(n);default:return e.visitEachChild(n,L,t)}}(n):33554944&n.transformFlags?e.visitEachChild(n,L,t):n}}function B(n){if(n.asteriskToken)n=e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,n.modifiers,void 0,n.name,void 0,e.visitParameterList(n.parameters,L,t),void 0,j(n.body)),n),n);else{var r=i,o=a;i=!1,a=!1,n=e.visitEachChild(n,L,t),i=r,a=o}return i?void m(n):n}function z(n){if(n.asteriskToken)n=e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,void 0,n.name,void 0,e.visitParameterList(n.parameters,L,t),void 0,j(n.body)),n),n);else{var r=i,o=a;i=!1,a=!1,n=e.visitEachChild(n,L,t),i=r,a=o}return n}function j(t){var n=[],r=i,o=a,m=s,g=c,y=u,h=l,v=_,b=d,C=I,T=x,E=k,N=S,A=D;i=!0,a=!1,s=void 0,c=void 0,u=void 0,l=void 0,_=void 0,d=void 0,I=1,x=void 0,k=void 0,S=void 0,D=e.createTempVariable(void 0),p();var P=e.addPrologue(n,t.statements,!1,L);K(t.statements,P);var w=De();return e.addRange(n,f()),n.push(e.createReturn(w)),i=r,a=o,s=m,c=g,u=y,l=h,_=v,d=b,I=C,x=T,k=E,S=N,D=A,e.setTextRange(e.createBlock(n,t.multiLine),t)}function J(t,n,r,i){var a,o=G(t);if(o>0){a=Q();var s=e.visitNodes(t,L,e.isExpression,0,o);ve(a,e.createArrayLiteral(n?[n].concat(s):s)),n=void 0}var c=e.reduceLeft(t,function(t,r){if(H(r)&&t.length>0){var o=void 0!==a;a||(a=Q()),ve(a,o?e.createArrayConcat(a,[e.createArrayLiteral(t,i)]):e.createArrayLiteral(n?[n].concat(t):t,i)),n=void 0,t=[]}return t.push(e.visitNode(r,L,e.isExpression)),t},[],o);return a?e.createArrayConcat(a,[e.createArrayLiteral(c,i)]):e.setTextRange(e.createArrayLiteral(n?[n].concat(c):c,i),r)}function K(e,t){void 0===t&&(t=0);for(var n=e.length,r=t;r<n;r++)V(e[r])}function U(t){e.isBlock(t)?K(t.statements):V(t)}function V(i){var o=a;a||(a=H(i)),function(i){switch(i.kind){case 211:return function(t){H(t)?K(t.statements):he(e.visitNode(t,L,e.isStatement))}(i);case 214:return function(t){he(e.visitNode(t,L,e.isStatement))}(i);case 215:return function(t){if(H(t))if(H(t.thenStatement)||H(t.elseStatement)){var n=Y(),r=t.elseStatement?Y():void 0;ke(t.elseStatement?r:n,e.visitNode(t.expression,L,e.isExpression),t.expression),U(t.thenStatement),t.elseStatement&&(be(n),$(r),U(t.elseStatement)),$(n)}else he(e.visitNode(t,L,e.isStatement));else he(e.visitNode(t,L,e.isStatement))}(i);case 216:return function(t){if(H(t)){var n=Y(),r=Y();ie(n),$(r),U(t.statement),$(n),xe(r,e.visitNode(t.expression,L,e.isExpression)),ae()}else he(e.visitNode(t,L,e.isStatement))}(i);case 217:return function(t){if(H(t)){var n=Y(),r=ie(n);$(n),ke(r,e.visitNode(t.expression,L,e.isExpression)),U(t.statement),be(n),ae()}else he(e.visitNode(t,L,e.isStatement))}(i);case 218:return function(t){if(H(t)){var n=Y(),r=Y(),i=ie(r);if(t.initializer){var a=t.initializer;e.isVariableDeclarationList(a)?q(a):he(e.setTextRange(e.createStatement(e.visitNode(a,L,e.isExpression)),a))}$(n),t.condition&&ke(i,e.visitNode(t.condition,L,e.isExpression)),U(t.statement),$(r),t.incrementor&&he(e.setTextRange(e.createStatement(e.visitNode(t.incrementor,L,e.isExpression)),t.incrementor)),be(n),ae()}else he(e.visitNode(t,L,e.isStatement))}(i);case 219:return function(t){if(H(t)){var n=Q(),r=Q(),i=e.createLoopVariable(),a=t.initializer;g(i),ve(n,e.createArrayLiteral()),he(e.createForIn(r,e.visitNode(t.expression,L,e.isExpression),e.createStatement(e.createCall(e.createPropertyAccess(n,"push"),void 0,[r])))),ve(i,e.createLiteral(0));var o=Y(),s=Y(),c=ie(s);$(o),ke(c,e.createLessThan(i,e.createPropertyAccess(n,"length")));var u=void 0;if(e.isVariableDeclarationList(a)){for(var l=0,_=a.declarations;l<_.length;l++)g(_[l].name);u=e.getSynthesizedClone(a.declarations[0].name)}else u=e.visitNode(a,L,e.isExpression),e.Debug.assert(e.isLeftHandSideExpression(u));ve(u,e.createElementAccess(n,i)),U(t.statement),$(s),he(e.createStatement(e.createPostfixIncrement(i))),be(o),ae()}else he(e.visitNode(t,L,e.isStatement))}(i);case 221:return function(t){var n=pe(t.label?e.idText(t.label):void 0);n>0?be(n,t):he(t)}(i);case 222:return function(t){var n=de(t.label?e.idText(t.label):void 0);n>0?be(n,t):he(t)}(i);case 223:return function(t){Se(8,[e.visitNode(t.expression,L,e.isExpression)],t)}(i);case 224:return function(t){var n,r,i;H(t)?(n=X(e.visitNode(t.expression,L,e.isExpression)),r=Y(),i=Y(),$(r),Z({kind:1,expression:n,startLabel:r,endLabel:i}),U(t.statement),e.Debug.assert(1===ne()),$(ee().endLabel)):he(e.visitNode(t,L,e.isStatement))}(i);case 225:return function(t){if(H(t.caseBlock)){for(var n=t.caseBlock,r=n.clauses.length,i=(Z({kind:2,isScript:!1,breakLabel:p=Y()}),p),a=X(e.visitNode(t.expression,L,e.isExpression)),o=[],s=-1,c=0;c<r;c++){var u=n.clauses[c];o.push(Y()),265===u.kind&&-1===s&&(s=c)}for(var l=0,_=[];l<r;){var d=0;for(c=l;c<r;c++)if(264===(u=n.clauses[c]).kind){if(H(u.expression)&&_.length>0)break;_.push(e.createCaseClause(e.visitNode(u.expression,L,e.isExpression),[ge(o[c],u.expression)]))}else d++;_.length&&(he(e.createSwitch(a,e.createCaseBlock(_))),l+=_.length,_=[]),d>0&&(l+=d,d=0)}for(be(s>=0?o[s]:i),c=0;c<r;c++)$(o[c]),K(n.clauses[c].statements);oe()}else he(e.visitNode(t,L,e.isStatement));var p}(i);case 226:return function(t){H(t)?(Z({kind:4,isScript:!1,labelText:e.idText(t.label),breakLabel:Y()}),U(t.statement),se()):he(e.visitNode(t,L,e.isStatement))}(i);case 227:return function(t){Se(9,[e.visitNode(t.expression,L,e.isExpression)],t)}(i);case 228:return function(i){var a,o;H(i)?(a=Y(),o=Y(),$(a),Z({kind:0,state:0,startLabel:a,endLabel:o}),ye(),U(i.tryBlock),i.catchClause&&(function(i){var a;if(e.Debug.assert(0===ne()),e.isGeneratedIdentifier(i.name))a=i.name,g(i.name);else{var o=e.idText(i.name);a=Q(o),n||(n=e.createMap(),r=[],t.enableSubstitution(71)),n.set(o,!0),r[e.getOriginalNodeId(i)]=a}var s=te();e.Debug.assert(s.state<1),be(s.endLabel);var c=Y();$(c),s.state=1,s.catchVariable=a,s.catchLabel=c,ve(a,e.createCall(e.createPropertyAccess(D,"sent"),void 0,[])),ye()}(i.catchClause.variableDeclaration),U(i.catchClause.block)),i.finallyBlock&&(function(){e.Debug.assert(0===ne());var t=te();e.Debug.assert(t.state<2),be(t.endLabel);var n=Y();$(n),t.state=2,t.finallyLabel=n}(),U(i.finallyBlock)),function(){e.Debug.assert(0===ne());var t=ee();t.state<2?be(t.endLabel):Se(10),$(t.endLabel),ye(),t.state=3}()):he(e.visitEachChild(i,L,t))}(i);default:he(e.visitNode(i,L,e.isStatement))}}(i),a=o}function q(t){for(var n=0,r=t.declarations;n<r.length;n++){var i=e.getSynthesizedClone((l=r[n]).name);e.setCommentRange(i,l.name),g(i)}for(var a=e.getInitializedVariables(t),o=a.length,s=0,c=[];s<o;){for(var u=s;u<o;u++){var l;if(H((l=a[u]).initializer)&&c.length>0)break;c.push(W(l))}c.length&&(he(e.createStatement(e.inlineExpressions(c))),s+=c.length,c=[])}}function W(t){return e.setSourceMapRange(e.createAssignment(e.setSourceMapRange(e.getSynthesizedClone(t.name),t.name),e.visitNode(t.initializer,L,e.isExpression)),t)}function H(e){return e&&0!=(16777216&e.transformFlags)}function G(e){for(var t=e.length,n=0;n<t;n++)if(H(e[n]))return n;return-1}function X(t){var n;return e.isGeneratedIdentifier(t)||4096&e.getEmitFlags(t)?t:(ve(n=e.createTempVariable(g),t,t),n)}function Q(t){var n=t?e.createUniqueName(t):e.createTempVariable(void 0);return g(n),n}function Y(){_||(_=[]);var e=I;return I++,_[e]=-1,e}function $(t){e.Debug.assert(void 0!==_,"No labels were defined."),_[t]=x?x.length:0}function Z(e){s||(s=[],u=[],c=[],l=[]);var t=u.length;return u[t]=0,c[t]=x?x.length:0,s[t]=e,l.push(e),t}function ee(){var t=te();e.Debug.assert(void 0!==t,"beginBlock was never called.");var n=u.length;return u[n]=1,c[n]=x?x.length:0,s[n]=t,l.pop(),t}function te(){return e.lastOrUndefined(l)}function ne(){var e=te();return e&&e.kind}function re(){Z({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function ie(e){var t=Y();return Z({kind:3,isScript:!1,breakLabel:t,continueLabel:e}),t}function ae(){e.Debug.assert(3===ne());var t=ee();t.isScript||$(t.breakLabel)}function oe(){e.Debug.assert(2===ne());var t=ee();t.isScript||$(t.breakLabel)}function se(){e.Debug.assert(4===ne());var t=ee();t.isScript||$(t.breakLabel)}function ce(e){return 2===e.kind||3===e.kind}function ue(e){return 4===e.kind}function le(e){return 3===e.kind}function _e(e,t){for(var n=t;n>=0;n--){var r=l[n];if(!ue(r))break;if(r.labelText===e)return!0}return!1}function de(e){if(l)if(e)for(var t=l.length-1;t>=0;t--){if(ue(n=l[t])&&n.labelText===e)return n.breakLabel;if(ce(n)&&_e(e,t-1))return n.breakLabel}else for(t=l.length-1;t>=0;t--){var n;if(ce(n=l[t]))return n.breakLabel}return 0}function pe(e){if(l)if(e){for(var t=l.length-1;t>=0;t--)if(le(n=l[t])&&_e(e,t-1))return n.continueLabel}else for(t=l.length-1;t>=0;t--){var n;if(le(n=l[t]))return n.continueLabel}return 0}function fe(t){if(t>0){void 0===d&&(d=[]);var n=e.createLiteral(-1);return void 0===d[t]?d[t]=[n]:d[t].push(n),n}return e.createOmittedExpression()}function me(t){var n=e.createLiteral(t);return e.addSyntheticTrailingComment(n,3,function(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally"}}(t)),n}function ge(t,n){return e.Debug.assertLessThan(0,t,"Invalid label"),e.setTextRange(e.createReturn(e.createArrayLiteral([me(3),fe(t)])),n)}function ye(){Se(0)}function he(e){e?Se(1,[e]):ye()}function ve(e,t,n){Se(2,[e,t],n)}function be(e,t){Se(3,[e],t)}function xe(e,t,n){Se(4,[e,t],n)}function ke(e,t,n){Se(5,[e,t],n)}function Se(e,t,n){void 0===x&&(x=[],k=[],S=[]),void 0===_&&$(Y());var r=x.length;x[r]=e,k[r]=t,S[r]=n}function De(){O=0,M=0,C=void 0,T=!1,E=!1,N=void 0,A=void 0,P=void 0,w=void 0,F=void 0;var n=function(){if(x){for(var t=0;t<x.length;t++)Ne(t);Ce(x.length)}else Ce(0);if(N){var n=e.createPropertyAccess(D,"label"),r=e.createSwitch(n,e.createCaseBlock(N));return[e.startOnNewLine(r)]}return A||[]}();return function(t,n){return t.requestEmitHelper(o),e.createCall(e.getHelperName("__generator"),void 0,[e.createThis(),n])}(t,e.setEmitFlags(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,D)],void 0,e.createBlock(n,n.length>0)),524288))}function Ce(e){(function(e){if(!E)return!0;if(!_||!d)return!1;for(var t=0;t<_.length;t++)if(_[t]===e&&d[t])return!0;return!1})(e)&&(Ee(e),F=void 0,Pe(void 0,void 0)),A&&N&&Te(!1),function(){if(void 0!==d&&void 0!==C)for(var e=0;e<C.length;e++){var t=C[e];if(void 0!==t)for(var n=0,r=t;n<r.length;n++){var i=d[r[n]];if(void 0!==i)for(var a=0,o=i;a<o.length;a++)o[a].text=String(e)}}}()}function Te(t){if(N||(N=[]),A){if(F)for(var n=F.length-1;n>=0;n--)A=[e.createWith(F[n].expression,e.createBlock(A))];if(w){var r=w.startLabel,i=w.catchLabel,a=w.finallyLabel,o=w.endLabel;A.unshift(e.createStatement(e.createCall(e.createPropertyAccess(e.createPropertyAccess(D,"trys"),"push"),void 0,[e.createArrayLiteral([fe(r),fe(i),fe(a),fe(o)])]))),w=void 0}t&&A.push(e.createStatement(e.createAssignment(e.createPropertyAccess(D,"label"),e.createLiteral(M+1))))}N.push(e.createCaseClause(e.createLiteral(M),A||[])),A=void 0}function Ee(e){if(_)for(var t=0;t<_.length;t++)_[t]===e&&(A&&(Te(!T),T=!1,E=!1,M++),void 0===C&&(C=[]),void 0===C[M]?C[M]=[t]:C[M].push(t))}function Ne(t){if(Ee(t),function(e){if(s)for(;O<u.length&&c[O]<=e;O++){var t=s[O],n=u[O];switch(t.kind){case 0:0===n?(P||(P=[]),A||(A=[]),P.push(w),w=t):1===n&&(w=P.pop());break;case 1:0===n?(F||(F=[]),F.push(t)):1===n&&F.pop()}}}(t),!T){T=!1,E=!1;var n=x[t];if(0!==n){if(10===n)return T=!0,void Ae(e.createReturn(e.createArrayLiteral([me(7)])));var r=k[t];if(1===n)return Ae(r[0]);var i,a=S[t];switch(n){case 2:return i=a,void Ae(e.setTextRange(e.createStatement(e.createAssignment(r[0],r[1])),i));case 3:return function(t,n){T=!0,Ae(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([me(3),fe(t)])),n),384))}(r[0],a);case 4:return function(t,n,i){Ae(e.setEmitFlags(e.createIf(r[1],e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([me(3),fe(t)])),i),384)),1))}(r[0],0,a);case 5:return function(t,n,i){Ae(e.setEmitFlags(e.createIf(e.createLogicalNot(r[1]),e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([me(3),fe(t)])),i),384)),1))}(r[0],0,a);case 6:return function(t,n){T=!0,Ae(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral(t?[me(4),t]:[me(4)])),n),384))}(r[0],a);case 7:return function(t,n){T=!0,Ae(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([me(5),t])),n),384))}(r[0],a);case 8:return Pe(r[0],a);case 9:return function(t,n){T=!0,E=!0,Ae(e.setTextRange(e.createThrow(r[0]),n))}(0,a)}}}}function Ae(e){e&&(A?A.push(e):A=[e])}function Pe(t,n){T=!0,E=!0,Ae(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral(t?[me(2),t]:[me(2)])),n),384))}};var o={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 };'}}(l||(l={})),function(e){e.transformModule=function(a){var o=a.startLexicalEnvironment,s=a.endLexicalEnvironment,c=a.hoistVariableDeclaration,u=a.getCompilerOptions(),l=a.getEmitResolver(),_=a.getEmitHost(),d=e.getEmitScriptTarget(u),p=e.getEmitModuleKind(u),f=a.onSubstituteNode,m=a.onEmitNode;a.onSubstituteNode=function(t,n){return(n=f(t,n)).id&&h[n.id]?n:1===t?function(t){switch(t.kind){case 71:return G(t);case 198:return function(t){if(e.isAssignmentOperator(t.operatorToken.kind)&&e.isIdentifier(t.left)&&!e.isGeneratedIdentifier(t.left)&&!e.isLocalName(t.left)&&!e.isDeclarationNameOfEnumOrNamespace(t.left)){var n=X(t.left);if(n){for(var r=t,i=0,a=n;i<a.length;i++){var o=a[i];h[e.getNodeId(r)]=!0,r=W(o,r,t)}return r}}return t}(t);case 197:case 196:return function(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 n=X(t.operand);if(n){for(var r=197===t.kind?e.setTextRange(e.createBinary(t.operand,e.createToken(43===t.operator?59:60),e.createLiteral(1)),t):t,i=0,a=n;i<a.length;i++){var o=a[i];h[e.getNodeId(r)]=!0,r=W(o,r)}return r}}return t}(t)}return t}(n):e.isShorthandPropertyAssignment(n)?function(t){var n=t.name,r=G(n);if(r!==n){if(t.objectAssignmentInitializer){var i=e.createAssignment(r,t.objectAssignmentInitializer);return e.setTextRange(e.createPropertyAssignment(n,i),t)}return e.setTextRange(e.createPropertyAssignment(n,r),t)}return t}(n):n},a.onEmitNode=function(t,n,r){272===n.kind?(y=b[e.getOriginalNodeId(g=n)],h=[],m(t,n,r),g=void 0,y=void 0,h=void 0):m(t,n,r)},a.enableSubstitution(71),a.enableSubstitution(198),a.enableSubstitution(196),a.enableSubstitution(197),a.enableSubstitution(269),a.enableEmitNotification(272);var g,y,h,v,b=[],x=[];return function(t){if(t.isDeclarationFile||!(e.isEffectiveExternalModule(t,u)||67108864&t.transformFlags))return t;g=t,y=e.collectExternalModuleInfo(t,l,u),b[e.getOriginalNodeId(t)]=y;var n=function(t){switch(t){case e.ModuleKind.AMD:return D;case e.ModuleKind.UMD:return C;default:return S}}(p)(t);return g=void 0,y=void 0,v=!1,e.aggregateTransformFlags(n)};function k(){return!(y.exportEquals||!e.isExternalModule(g))}function S(n){o();var r=[],i=e.getStrictOptionValue(u,"alwaysStrict")||!u.noImplicitUseStrict&&e.isExternalModule(g),c=e.addPrologue(r,n.statements,i,P);k()&&e.append(r,q()),e.append(r,e.visitNode(y.externalHelpersImportDeclaration,P,e.isStatement)),e.addRange(r,e.visitNodes(n.statements,P,e.isStatement,c)),A(r,!1),e.addRange(r,s());var l=e.updateSourceFileNode(n,e.setTextRange(e.createNodeArray(r),n.statements));return y.hasExportStarsToExportValues&&!u.importHelpers&&e.addEmitHelper(l,t),e.addEmitHelpers(l,a.readEmitHelpers()),l}function D(t){var n=e.createIdentifier("define"),r=e.tryGetModuleNameFromFile(t,_,u),i=T(t,!0),o=i.aliasedModuleNames,s=i.unaliasedModuleNames,c=i.importAliasNames,l=e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createStatement(e.createCall(n,void 0,(r?[r]:[]).concat([e.createArrayLiteral([e.createLiteral("require"),e.createLiteral("exports")].concat(o,s)),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(c),void 0,N(t))])))]),t.statements));return e.addEmitHelpers(l,a.readEmitHelpers()),l}function C(t){var n=T(t,!1),r=n.aliasedModuleNames,i=n.unaliasedModuleNames,o=n.importAliasNames,s=e.tryGetModuleNameFromFile(t,_,u),c=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,(s?[s]:[]).concat([e.createArrayLiteral([e.createLiteral("require"),e.createLiteral("exports")].concat(r,i)),e.createIdentifier("factory")])))])))],!0),void 0)),l=e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createStatement(e.createCall(c,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(o),void 0,N(t))]))]),t.statements));return e.addEmitHelpers(l,a.readEmitHelpers()),l}function T(t,n){for(var r=[],i=[],a=[],o=0,s=t.amdDependencies;o<s.length;o++){var c=s[o];c.name?(r.push(e.createLiteral(c.path)),a.push(e.createParameter(void 0,void 0,void 0,c.name))):i.push(e.createLiteral(c.path))}for(var d=0,p=y.externalImports;d<p.length;d++){var f=p[d],m=e.getExternalModuleNameLiteral(f,g,_,l,u),h=e.getLocalNameForExternalImport(f,g);m&&(n&&h?(e.setEmitFlags(h,4),r.push(m),a.push(e.createParameter(void 0,void 0,void 0,h))):i.push(m))}return{aliasedModuleNames:r,unaliasedModuleNames:i,importAliasNames:a}}function E(t){if(!e.isImportEqualsDeclaration(t)&&!e.isExportDeclaration(t)&&e.getExternalModuleNameLiteral(t,g,_,l,u)){var n=e.getLocalNameForExternalImport(t,g),r=O(t,n);if(r!==n)return e.createStatement(e.createAssignment(n,r))}}function N(r){o();var i=[],a=e.addPrologue(i,r.statements,!u.noImplicitUseStrict,P);k()&&e.append(i,q()),e.append(i,e.visitNode(y.externalHelpersImportDeclaration,P,e.isStatement)),p===e.ModuleKind.AMD&&e.addRange(i,e.mapDefined(y.externalImports,E)),e.addRange(i,e.visitNodes(r.statements,P,e.isStatement,a)),A(i,!0),e.addRange(i,s());var c=e.createBlock(i,!0);return y.hasExportStarsToExportValues&&!u.importHelpers&&e.addEmitHelper(c,t),v&&e.addEmitHelper(c,n),c}function A(t,n){if(y.exportEquals){var r=e.visitNode(y.exportEquals.expression,w);if(r)if(n){var i=e.createReturn(r);e.setTextRange(i,y.exportEquals),e.setEmitFlags(i,1920),t.push(i)}else i=e.createStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier("module"),"exports"),r)),e.setTextRange(i,y.exportEquals),e.setEmitFlags(i,1536),t.push(i)}}function P(t){switch(t.kind){case 242:return function(t){var n,r=e.getNamespaceDeclarationNode(t);if(p!==e.ModuleKind.AMD){if(!t.importClause)return e.setTextRange(e.createStatement(M(t)),t);var i=[];r&&!e.isDefaultImport(t)?i.push(e.createVariableDeclaration(e.getSynthesizedClone(r.name),void 0,O(t,M(t)))):(i.push(e.createVariableDeclaration(e.getGeneratedNameForNode(t),void 0,O(t,M(t)))),r&&e.isDefaultImport(t)&&i.push(e.createVariableDeclaration(e.getSynthesizedClone(r.name),void 0,e.getGeneratedNameForNode(t)))),n=e.append(n,e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList(i,d>=2?2:0)),t))}else r&&e.isDefaultImport(t)&&(n=e.append(n,e.createVariableStatement(void 0,e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(e.getSynthesizedClone(r.name),void 0,e.getGeneratedNameForNode(t)),t)],d>=2?2:0))));if(R(t)){var a=e.getOriginalNodeId(t);x[a]=B(x[a],t)}else n=B(n,t);return e.singleOrMany(n)}(t);case 241:return function(t){var n;if(e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),p!==e.ModuleKind.AMD?n=e.hasModifier(t,1)?e.append(n,e.setTextRange(e.createStatement(W(t.name,M(t))),t)):e.append(n,e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedClone(t.name),void 0,M(t))],d>=2?2:0)),t)):e.hasModifier(t,1)&&(n=e.append(n,e.setTextRange(e.createStatement(W(e.getExportName(t),e.getLocalName(t))),t))),R(t)){var r=e.getOriginalNodeId(t);x[r]=z(x[r],t)}else n=z(n,t);return e.singleOrMany(n)}(t);case 248:return function(t){if(t.moduleSpecifier){var n=e.getGeneratedNameForNode(t);if(t.exportClause){var r=[];p!==e.ModuleKind.AMD&&r.push(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(n,void 0,M(t))])),t));for(var i=0,o=t.exportClause.elements;i<o.length;i++){var s=o[i],c=e.createPropertyAccess(n,s.propertyName||s.name);r.push(e.setTextRange(e.createStatement(W(e.getExportName(s),c)),s))}return e.singleOrMany(r)}return e.setTextRange(e.createStatement(function(t,n){return t.getCompilerOptions().importHelpers?e.createCall(e.getHelperName("__exportStar"),void 0,[n,e.createIdentifier("exports")]):e.createCall(e.createIdentifier("__export"),void 0,[n])}(a,p!==e.ModuleKind.AMD?M(t):n)),t)}}(t);case 247:return function(t){if(!t.isExportEquals){var n,r=t.original;if(r&&R(r)){var i=e.getOriginalNodeId(t);x[i]=V(x[i],e.createIdentifier("default"),e.visitNode(t.expression,w),t,!0)}else n=V(n,e.createIdentifier("default"),e.visitNode(t.expression,w),t,!0);return e.singleOrMany(n)}}(t);case 212:return function(t){var n,r,i;if(e.hasModifier(t,1)){for(var o=void 0,s=0,c=t.declarationList.declarations;s<c.length;s++){var u=c[s];e.isIdentifier(u.name)&&e.isLocalName(u.name)?(o||(o=e.visitNodes(t.modifiers,H,e.isModifier)),r=e.append(r,u)):u.initializer&&(i=e.append(i,L(u)))}r&&(n=e.append(n,e.updateVariableStatement(t,o,e.updateVariableDeclarationList(t.declarationList,r)))),i&&(n=e.append(n,e.setTextRange(e.createStatement(e.inlineExpressions(i)),t)))}else n=e.append(n,e.visitEachChild(t,w,a));if(R(t)){var l=e.getOriginalNodeId(t);x[l]=j(x[l],t)}else n=j(n,t);return e.singleOrMany(n)}(t);case 232:return function(t){var n;if(n=e.hasModifier(t,1)?e.append(n,e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,e.visitNodes(t.modifiers,H,e.isModifier),t.asteriskToken,e.getDeclarationName(t,!0,!0),void 0,e.visitNodes(t.parameters,w),void 0,e.visitEachChild(t.body,w,a)),t),t)):e.append(n,e.visitEachChild(t,w,a)),R(t)){var r=e.getOriginalNodeId(t);x[r]=K(x[r],t)}else n=K(n,t);return e.singleOrMany(n)}(t);case 233:return function(t){var n;if(n=e.hasModifier(t,1)?e.append(n,e.setOriginalNode(e.setTextRange(e.createClassDeclaration(void 0,e.visitNodes(t.modifiers,H,e.isModifier),e.getDeclarationName(t,!0,!0),void 0,e.visitNodes(t.heritageClauses,w),e.visitNodes(t.members,w)),t),t)):e.append(n,e.visitEachChild(t,w,a)),R(t)){var r=e.getOriginalNodeId(t);x[r]=K(x[r],t)}else n=K(n,t);return e.singleOrMany(n)}(t);case 297:return function(t){if(R(t)&&212===t.original.kind){var n=e.getOriginalNodeId(t);x[n]=j(x[n],t.original)}return t}(t);case 298:return function(t){var n=e.getOriginalNodeId(t),r=x[n];return r?(delete x[n],e.append(r,t)):t}(t);default:return e.visitEachChild(t,w,a)}}function w(t){return 67108864&t.transformFlags?e.isImportCall(t)?function(t){var n=e.visitNode(e.firstOrUndefined(t.arguments),w),r=!!(16384&t.transformFlags);switch(u.module){case e.ModuleKind.AMD:return F(n,r);case e.ModuleKind.UMD:return function(t,n){if(v=!0,e.isSimpleCopiableExpression(t)){var r=e.isGeneratedIdentifier(t)?t:e.isStringLiteral(t)?e.createLiteral(t):e.setEmitFlags(e.setTextRange(e.getSynthesizedClone(t),t),1536);return e.createConditional(e.createIdentifier("__syncRequire"),I(t,n),F(r,n))}var i=e.createTempVariable(c);return e.createComma(e.createAssignment(i,t),e.createConditional(e.createIdentifier("__syncRequire"),I(i,n),F(i,n)))}(n,r);case e.ModuleKind.CommonJS:default:return I(n,r)}}(t):e.visitEachChild(t,w,a):t}function F(t,n){var i,o=e.createUniqueName("resolve"),s=e.createUniqueName("reject"),c=[e.createParameter(void 0,void 0,void 0,o),e.createParameter(void 0,void 0,void 0,s)],l=e.createBlock([e.createStatement(e.createCall(e.createIdentifier("require"),void 0,[e.createArrayLiteral([t||e.createOmittedExpression()]),o,s]))]);d>=2?i=e.createArrowFunction(void 0,void 0,c,void 0,void 0,l):(i=e.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,l),n&&e.setEmitFlags(i,8));var _=e.createNew(e.createIdentifier("Promise"),void 0,[i]);return u.esModuleInterop?(a.requestEmitHelper(r),e.createCall(e.createPropertyAccess(_,e.createIdentifier("then")),void 0,[e.getHelperName("__importStar")])):_}function I(t,n){var i,o=e.createCall(e.createPropertyAccess(e.createIdentifier("Promise"),"resolve"),void 0,[]),s=e.createCall(e.createIdentifier("require"),void 0,t?[t]:[]);return u.esModuleInterop&&(a.requestEmitHelper(r),s=e.createCall(e.getHelperName("__importStar"),void 0,[s])),d>=2?i=e.createArrowFunction(void 0,void 0,[],void 0,void 0,s):(i=e.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,e.createBlock([e.createReturn(s)])),n&&e.setEmitFlags(i,8)),e.createCall(e.createPropertyAccess(o,"then"),void 0,[i])}function O(t,n){return!u.esModuleInterop||67108864&e.getEmitFlags(t)?n:e.getImportNeedsImportStarHelper(t)?(a.requestEmitHelper(r),e.createCall(e.getHelperName("__importStar"),void 0,[n])):e.getImportNeedsImportDefaultHelper(t)?(a.requestEmitHelper(i),e.createCall(e.getHelperName("__importDefault"),void 0,[n])):n}function M(t){var n=e.getExternalModuleNameLiteral(t,g,_,l,u),r=[];return n&&r.push(n),e.createCall(e.createIdentifier("require"),void 0,r)}function L(t){return e.isBindingPattern(t.name)?e.flattenDestructuringAssignment(e.visitNode(t,w),void 0,a,0,!1,W):e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createIdentifier("exports"),t.name),t.name),e.visitNode(t.initializer,w))}function R(t){return 0!=(4194304&e.getEmitFlags(t))}function B(e,t){if(y.exportEquals)return e;var n=t.importClause;if(!n)return e;n.name&&(e=U(e,n));var r=n.namedBindings;if(r)switch(r.kind){case 244:e=U(e,r);break;case 245:for(var i=0,a=r.elements;i<a.length;i++)e=U(e,a[i])}return e}function z(e,t){return y.exportEquals?e:U(e,t)}function j(e,t){if(y.exportEquals)return e;for(var n=0,r=t.declarationList.declarations;n<r.length;n++)e=J(e,r[n]);return e}function J(t,n){if(y.exportEquals)return t;if(e.isBindingPattern(n.name))for(var r=0,i=n.name.elements;r<i.length;r++){var a=i[r];e.isOmittedExpression(a)||(t=J(t,a))}else e.isGeneratedIdentifier(n.name)||(t=U(t,n));return t}function K(t,n){return y.exportEquals?t:(e.hasModifier(n,1)&&(t=V(t,e.hasModifier(n,512)?e.createIdentifier("default"):e.getDeclarationName(n),e.getLocalName(n),n)),n.name&&(t=U(t,n)),t)}function U(t,n){var r=e.getDeclarationName(n),i=y.exportSpecifiers.get(e.idText(r));if(i)for(var a=0,o=i;a<o.length;a++){var s=o[a];t=V(t,s.name,r,s.name)}return t}function V(t,n,r,i,a){return e.append(t,function(t,i,a,o){var s=e.setTextRange(e.createStatement(W(n,r)),a);return e.startOnNewLine(s),o||e.setEmitFlags(s,1536),s}(0,0,i,a))}function q(){var t;return t=e.createStatement(0===d?W(e.createIdentifier("__esModule"),e.createLiteral(!0)):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 W(t,n,r){return e.setTextRange(e.createAssignment(e.createPropertyAccess(e.createIdentifier("exports"),e.getSynthesizedClone(t)),n),r)}function H(e){switch(e.kind){case 84:case 79:return}return e}function G(t){if(4096&e.getEmitFlags(t)){var n=e.getExternalHelpersModuleName(g);return n?e.createPropertyAccess(n,t):t}if(!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var r=l.getReferencedExportContainer(t,e.isExportName(t));if(r&&272===r.kind)return e.setTextRange(e.createPropertyAccess(e.createIdentifier("exports"),e.getSynthesizedClone(t)),t);var i=l.getReferencedImportDeclaration(t);if(i){if(e.isImportClause(i))return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(i.parent),e.createIdentifier("default")),t);if(e.isImportSpecifier(i)){var a=i.propertyName||i.name;return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(i.parent.parent.parent),e.getSynthesizedClone(a)),t)}}}return t}function X(t){if(!e.isGeneratedIdentifier(t)){var n=l.getReferencedImportDeclaration(t)||l.getReferencedValueDeclaration(t);if(n)return y&&y.exportedBindings[e.getOriginalNodeId(n)]}}};var t={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 "},n={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n var __syncRequire = typeof module === "object" && typeof module.exports === "object";'},r={name:"typescript:commonjsimportstar",scoped:!1,text:'\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result["default"] = mod;\n return result;\n};'},i={name:"typescript:commonjsimportdefault",scoped:!1,text:'\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n};'}}(l||(l={})),function(e){e.transformSystemModule=function(t){var n=t.startLexicalEnvironment,r=t.endLexicalEnvironment,i=t.hoistVariableDeclaration,a=t.getCompilerOptions(),o=t.getEmitResolver(),s=t.getEmitHost(),c=t.onSubstituteNode,u=t.onEmitNode;t.onSubstituteNode=function(t,n){return function(e){return g&&e.id&&g[e.id]}(n=c(t,n))?n:1===t?function(t){switch(t.kind){case 71:return function(t){if(4096&e.getEmitFlags(t)){var n=e.getExternalHelpersModuleName(l);return n?e.createPropertyAccess(n,t):t}if(!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var r=o.getReferencedImportDeclaration(t);if(r){if(e.isImportClause(r))return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(r.parent),e.createIdentifier("default")),t);if(e.isImportSpecifier(r))return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(r.parent.parent.parent),e.getSynthesizedClone(r.propertyName||r.name)),t)}}return t}(t);case 198:return function(t){if(e.isAssignmentOperator(t.operatorToken.kind)&&e.isIdentifier(t.left)&&!e.isGeneratedIdentifier(t.left)&&!e.isLocalName(t.left)&&!e.isDeclarationNameOfEnumOrNamespace(t.left)){var n=V(t.left);if(n){for(var r=t,i=0,a=n;i<a.length;i++)r=B(a[i],q(r));return r}}return t}(t);case 196:case 197:return function(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 n=V(t.operand);if(n){for(var r=197===t.kind?e.setTextRange(e.createPrefix(t.operator,t.operand),t):t,i=0,a=n;i<a.length;i++)r=B(a[i],q(r));return 197===t.kind&&(r=43===t.operator?e.createSubtract(q(r),e.createLiteral(1)):e.createAdd(q(r),e.createLiteral(1))),r}}return t}(t)}return t}(n):4===t?function(t){switch(t.kind){case 269:return function(t){var n=t.name;if(!e.isGeneratedIdentifier(n)&&!e.isLocalName(n)){var r=o.getReferencedImportDeclaration(n);if(r){if(e.isImportClause(r))return e.setTextRange(e.createPropertyAssignment(e.getSynthesizedClone(n),e.createPropertyAccess(e.getGeneratedNameForNode(r.parent),e.createIdentifier("default"))),t);if(e.isImportSpecifier(r))return e.setTextRange(e.createPropertyAssignment(e.getSynthesizedClone(n),e.createPropertyAccess(e.getGeneratedNameForNode(r.parent.parent.parent),e.getSynthesizedClone(r.propertyName||r.name))),t)}}return t}(t)}return t}(n):n},t.onEmitNode=function(t,n,r){if(272===n.kind){var i=e.getOriginalNodeId(n);l=n,_=y[i],d=v[i],(g=b[i])&&delete b[i],u(t,n,r),l=void 0,_=void 0,d=void 0,g=void 0}else u(t,n,r)},t.enableSubstitution(71),t.enableSubstitution(269),t.enableSubstitution(198),t.enableSubstitution(196),t.enableSubstitution(197),t.enableEmitNotification(272);var l,_,d,p,f,m,g,y=[],h=[],v=[],b=[];return function(t){if(t.isDeclarationFile||!(e.isEffectiveExternalModule(t,a)||67108864&t.transformFlags))return t;var i=e.getOriginalNodeId(t);l=t,m=t,_=y[i]=e.collectExternalModuleInfo(t,o,a),d=e.createUniqueName("exports"),v[i]=d,p=e.createUniqueName("context");var c=function(t){for(var n=e.createMap(),r=[],i=0,c=t;i<c.length;i++){var u=c[i],_=e.getExternalModuleNameLiteral(u,l,s,o,a);if(_){var d=_.text,p=n.get(d);void 0!==p?r[p].externalImports.push(u):(n.set(d,r.length),r.push({name:_,externalImports:[u]}))}}return r}(_.externalImports),u=function(t,i){var o=[];n();var s=e.getStrictOptionValue(a,"alwaysStrict")||!a.noImplicitUseStrict&&e.isExternalModule(l),c=e.addPrologue(o,t.statements,s,k);o.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("__moduleName",void 0,e.createLogicalAnd(p,e.createPropertyAccess(p,"id")))]))),e.visitNode(_.externalHelpersImportDeclaration,k,e.isStatement);var u=e.visitNodes(t.statements,k,e.isStatement,c);e.addRange(o,f),e.addRange(o,r());var m=function(t){if(_.hasExportStarsToExportValues){if(!_.exportedNames&&0===_.exportSpecifiers.size){for(var n=!1,r=0,i=_.externalImports;r<i.length;r++)if(248===(p=i[r]).kind&&p.exportClause){n=!0;break}if(!n){var a=x(void 0);return t.push(a),a.name}}var o=[];if(_.exportedNames)for(var s=0,c=_.exportedNames;s<c.length;s++){var u=c[s];"default"!==u.escapedText&&o.push(e.createPropertyAssignment(e.createLiteral(u),e.createTrue()))}for(var l=0,d=_.externalImports;l<d.length;l++){var p;if(248===(p=d[l]).kind&&p.exportClause)for(var f=0,m=p.exportClause.elements;f<m.length;f++){var g=m[f];o.push(e.createPropertyAssignment(e.createLiteral(e.idText(g.name||g.propertyName)),e.createTrue()))}}var y=e.createUniqueName("exportedNames");t.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(y,void 0,e.createObjectLiteral(o,!0))])));var h=x(y);return t.push(h),h.name}}(o),g=e.createObjectLiteral([e.createPropertyAssignment("setters",function(t,n){for(var r=[],i=0,a=n;i<a.length;i++){for(var o=a[i],s=e.forEach(o.externalImports,function(t){return e.getLocalNameForExternalImport(t,l)}),c=s?e.getGeneratedNameForNode(s):e.createUniqueName(""),u=[],_=0,p=o.externalImports;_<p.length;_++){var f=p[_],m=e.getLocalNameForExternalImport(f,l);switch(f.kind){case 242:if(!f.importClause)break;case 241:e.Debug.assert(void 0!==m),u.push(e.createStatement(e.createAssignment(m,c)));break;case 248:if(e.Debug.assert(void 0!==m),f.exportClause){for(var g=[],y=0,h=f.exportClause.elements;y<h.length;y++){var v=h[y];g.push(e.createPropertyAssignment(e.createLiteral(e.idText(v.name)),e.createElementAccess(c,e.createLiteral(e.idText(v.propertyName||v.name)))))}u.push(e.createStatement(e.createCall(d,void 0,[e.createObjectLiteral(g,!0)])))}else u.push(e.createStatement(e.createCall(t,void 0,[c])))}}r.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(r,!0)}(m,i)),e.createPropertyAssignment("execute",e.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,e.createBlock(u,!0)))]);return g.multiLine=!0,o.push(e.createReturn(g)),e.createBlock(o,!0)}(t,c),h=e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,d),e.createParameter(void 0,void 0,void 0,p)],void 0,u),S=e.tryGetModuleNameFromFile(t,s,a),D=e.createArrayLiteral(e.map(c,function(e){return e.name})),C=e.setEmitFlags(e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createStatement(e.createCall(e.createPropertyAccess(e.createIdentifier("System"),"register"),void 0,S?[S,D,h]:[D,h]))]),t.statements)),1024);return a.outFile||a.out||e.moveEmitHelpers(C,u,function(e){return!e.scoped}),g&&(b[i]=g,g=void 0),l=void 0,_=void 0,d=void 0,p=void 0,f=void 0,m=void 0,e.aggregateTransformFlags(C)};function x(t){var n=e.createUniqueName("exportStar"),r=e.createIdentifier("m"),i=e.createIdentifier("n"),a=e.createIdentifier("exports"),o=e.createStrictInequality(i,e.createLiteral("default"));return t&&(o=e.createLogicalAnd(o,e.createLogicalNot(e.createCall(e.createPropertyAccess(t,"hasOwnProperty"),void 0,[i])))),e.createFunctionDeclaration(void 0,void 0,void 0,n,void 0,[e.createParameter(void 0,void 0,void 0,r)],void 0,e.createBlock([e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(a,void 0,e.createObjectLiteral([]))])),e.createForIn(e.createVariableDeclarationList([e.createVariableDeclaration(i,void 0)]),r,e.createBlock([e.setEmitFlags(e.createIf(o,e.createStatement(e.createAssignment(e.createElementAccess(a,i),e.createElementAccess(r,i)))),1)])),e.createStatement(e.createCall(d,void 0,[a]))],!0))}function k(t){switch(t.kind){case 242:return function(t){var n;if(t.importClause&&i(e.getLocalNameForExternalImport(t,l)),A(t)){var r=e.getOriginalNodeId(t);h[r]=P(h[r],t)}else n=P(n,t);return e.singleOrMany(n)}(t);case 241:return function(t){var n;if(e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),i(e.getLocalNameForExternalImport(t,l)),A(t)){var r=e.getOriginalNodeId(t);h[r]=w(h[r],t)}else n=w(n,t);return e.singleOrMany(n)}(t);case 248:return;case 247:return function(t){if(!t.isExportEquals){var n=e.visitNode(t.expression,J,e.isExpression),r=t.original;if(!r||!A(r))return R(e.createIdentifier("default"),n,!0);var i=e.getOriginalNodeId(t);h[i]=L(h[i],e.createIdentifier("default"),n,!0)}}(t);default:return z(t)}}function S(t){if(e.isBindingPattern(t.name))for(var n=0,r=t.name.elements;n<r.length;n++){var a=r[n];e.isOmittedExpression(a)||S(a)}else i(e.getSynthesizedClone(t.name))}function D(t){return 0==(2097152&e.getEmitFlags(t))&&(272===m.kind||0==(3&e.getOriginalNode(t).flags))}function C(n,r){var i=r?T:E;return e.isBindingPattern(n.name)?e.flattenDestructuringAssignment(n,J,t,0,!1,i):n.initializer?i(n.name,e.visitNode(n.initializer,J,e.isExpression)):n.name}function T(e,t,n){return N(e,t,n,!0)}function E(e,t,n){return N(e,t,n,!1)}function N(t,n,r,a){return i(e.getSynthesizedClone(t)),a?B(t,q(e.setTextRange(e.createAssignment(t,n),r))):q(e.setTextRange(e.createAssignment(t,n),r))}function A(t){return 0!=(4194304&e.getEmitFlags(t))}function P(e,t){if(_.exportEquals)return e;var n=t.importClause;if(!n)return e;n.name&&(e=M(e,n));var r=n.namedBindings;if(r)switch(r.kind){case 244:e=M(e,r);break;case 245:for(var i=0,a=r.elements;i<a.length;i++)e=M(e,a[i])}return e}function w(e,t){return _.exportEquals?e:M(e,t)}function F(e,t,n){if(_.exportEquals)return e;for(var r=0,i=t.declarationList.declarations;r<i.length;r++){var a=i[r];(a.initializer||n)&&(e=I(e,a,n))}return e}function I(t,n,r){if(_.exportEquals)return t;if(e.isBindingPattern(n.name))for(var i=0,a=n.name.elements;i<a.length;i++){var o=a[i];e.isOmittedExpression(o)||(t=I(t,o,r))}else if(!e.isGeneratedIdentifier(n.name)){var s=void 0;r&&(t=L(t,n.name,e.getLocalName(n)),s=e.idText(n.name)),t=M(t,n,s)}return t}function O(t,n){if(_.exportEquals)return t;var r;if(e.hasModifier(n,1)){var i=e.hasModifier(n,512)?e.createLiteral("default"):n.name;t=L(t,i,e.getLocalName(n)),r=e.getTextOfIdentifierOrLiteral(i)}return n.name&&(t=M(t,n,r)),t}function M(t,n,r){if(_.exportEquals)return t;var i=e.getDeclarationName(n),a=_.exportSpecifiers.get(e.idText(i));if(a)for(var o=0,s=a;o<s.length;o++){var c=s[o];c.name.escapedText!==r&&(t=L(t,c.name,i))}return t}function L(t,n,r,i){return e.append(t,R(n,r,i))}function R(t,n,r){var i=e.createStatement(B(t,n));return e.startOnNewLine(i),r||e.setEmitFlags(i,1536),i}function B(t,n){var r=e.isIdentifier(t)?e.createLiteral(t):t;return e.setEmitFlags(n,1536|e.getEmitFlags(n)),e.setCommentRange(e.createCall(d,void 0,[r,n]),n)}function z(n){switch(n.kind){case 212:return function(t){if(!D(t.declarationList))return e.visitNode(t,J,e.isStatement);for(var n,r,i=e.hasModifier(t,1),a=A(t),o=0,s=t.declarationList.declarations;o<s.length;o++){var c=s[o];c.initializer?n=e.append(n,C(c,i&&!a)):S(c)}if(n&&(r=e.append(r,e.setTextRange(e.createStatement(e.inlineExpressions(n)),t))),a){var u=e.getOriginalNodeId(t);h[u]=F(h[u],t,i)}else r=F(r,t,!1);return e.singleOrMany(r)}(n);case 232:return function(n){if(f=e.hasModifier(n,1)?e.append(f,e.updateFunctionDeclaration(n,n.decorators,e.visitNodes(n.modifiers,U,e.isModifier),n.asteriskToken,e.getDeclarationName(n,!0,!0),void 0,e.visitNodes(n.parameters,J,e.isParameterDeclaration),void 0,e.visitNode(n.body,J,e.isBlock))):e.append(f,e.visitEachChild(n,J,t)),A(n)){var r=e.getOriginalNodeId(n);h[r]=O(h[r],n)}else f=O(f,n)}(n);case 233:return function(t){var n,r=e.getLocalName(t);if(i(r),n=e.append(n,e.setTextRange(e.createStatement(e.createAssignment(r,e.setTextRange(e.createClassExpression(void 0,t.name,void 0,e.visitNodes(t.heritageClauses,J,e.isHeritageClause),e.visitNodes(t.members,J,e.isClassElement)),t))),t)),A(t)){var a=e.getOriginalNodeId(t);h[a]=O(h[a],t)}else n=O(n,t);return e.singleOrMany(n)}(n);case 218:return function(t){var n=m;return m=t,t=e.updateFor(t,j(t.initializer),e.visitNode(t.condition,J,e.isExpression),e.visitNode(t.incrementor,J,e.isExpression),e.visitNode(t.statement,z,e.isStatement)),m=n,t}(n);case 219:return function(t){var n=m;return m=t,t=e.updateForIn(t,j(t.initializer),e.visitNode(t.expression,J,e.isExpression),e.visitNode(t.statement,z,e.isStatement,e.liftToBlock)),m=n,t}(n);case 220:return function(t){var n=m;return m=t,t=e.updateForOf(t,t.awaitModifier,j(t.initializer),e.visitNode(t.expression,J,e.isExpression),e.visitNode(t.statement,z,e.isStatement,e.liftToBlock)),m=n,t}(n);case 216:return function(t){return e.updateDo(t,e.visitNode(t.statement,z,e.isStatement,e.liftToBlock),e.visitNode(t.expression,J,e.isExpression))}(n);case 217:return function(t){return e.updateWhile(t,e.visitNode(t.expression,J,e.isExpression),e.visitNode(t.statement,z,e.isStatement,e.liftToBlock))}(n);case 226:return function(t){return e.updateLabel(t,t.label,e.visitNode(t.statement,z,e.isStatement,e.liftToBlock))}(n);case 224:return function(t){return e.updateWith(t,e.visitNode(t.expression,J,e.isExpression),e.visitNode(t.statement,z,e.isStatement,e.liftToBlock))}(n);case 225:return function(t){return e.updateSwitch(t,e.visitNode(t.expression,J,e.isExpression),e.visitNode(t.caseBlock,z,e.isCaseBlock))}(n);case 239:return function(t){var n=m;return m=t,t=e.updateCaseBlock(t,e.visitNodes(t.clauses,z,e.isCaseOrDefaultClause)),m=n,t}(n);case 264:return function(t){return e.updateCaseClause(t,e.visitNode(t.expression,J,e.isExpression),e.visitNodes(t.statements,z,e.isStatement))}(n);case 265:case 228:return function(n){return e.visitEachChild(n,z,t)}(n);case 267:return function(t){var n=m;return m=t,t=e.updateCatchClause(t,t.variableDeclaration,e.visitNode(t.block,z,e.isBlock)),m=n,t}(n);case 211:return function(n){var r=m;return m=n,n=e.visitEachChild(n,z,t),m=r,n}(n);case 297:return function(t){if(A(t)&&212===t.original.kind){var n=e.getOriginalNodeId(t),r=e.hasModifier(t.original,1);h[n]=F(h[n],t.original,r)}return t}(n);case 298:return function(t){var n=e.getOriginalNodeId(t),r=h[n];return r?(delete h[n],e.append(r,t)):t}(n);default:return J(n)}}function j(n){if(!n)return n;if(function(t){return e.isVariableDeclarationList(t)&&D(t)}(n)){for(var r=void 0,i=0,a=n.declarations;i<a.length;i++){var o=a[i];r=e.append(r,C(o,!1)),o.initializer||S(o)}return r?e.inlineExpressions(r):e.createOmittedExpression()}return e.visitEachChild(n,z,t)}function J(n){return 1024&n.transformFlags&&198===n.kind?function(n){return K(n.left)?e.flattenDestructuringAssignment(n,J,t,0,!0):e.visitEachChild(n,J,t)}(n):e.isImportCall(n)?function(t){return e.createCall(e.createPropertyAccess(p,e.createIdentifier("import")),void 0,e.some(t.arguments)?[e.visitNode(t.arguments[0],J)]:[])}(n):2048&n.transformFlags||67108864&n.transformFlags?e.visitEachChild(n,J,t):n}function K(t){if(e.isAssignmentExpression(t,!0))return K(t.left);if(e.isSpreadElement(t))return K(t.expression);if(e.isObjectLiteralExpression(t))return e.some(t.properties,K);if(e.isArrayLiteralExpression(t))return e.some(t.elements,K);if(e.isShorthandPropertyAssignment(t))return K(t.name);if(e.isPropertyAssignment(t))return K(t.initializer);if(e.isIdentifier(t)){var n=o.getReferencedExportContainer(t);return void 0!==n&&272===n.kind}return!1}function U(e){switch(e.kind){case 84:case 79:return}return e}function V(t){var n;if(!e.isGeneratedIdentifier(t)){var r=o.getReferencedImportDeclaration(t)||o.getReferencedValueDeclaration(t);if(r){var i=o.getReferencedExportContainer(t,!1);i&&272===i.kind&&(n=e.append(n,e.getDeclarationName(r))),n=e.addRange(n,_&&_.exportedBindings[e.getOriginalNodeId(r)])}}return n}function q(t){return void 0===g&&(g=[]),g[e.getNodeId(t)]=!0,t}}}(l||(l={})),function(e){e.transformES2015Module=function(t){var n,r=t.getCompilerOptions(),i=t.onEmitNode,a=t.onSubstituteNode;return t.onEmitNode=function(t,r,a){e.isSourceFile(r)?(n=r,i(t,r,a),n=void 0):i(t,r,a)},t.onSubstituteNode=function(t,r){return r=a(t,r),e.isIdentifier(r)&&1===t?function(t){if(4096&e.getEmitFlags(t)){var r=e.getExternalHelpersModuleName(n);if(r)return e.createPropertyAccess(r,t)}return t}(r):r},t.enableEmitNotification(272),t.enableSubstitution(71),function(n){if(n.isDeclarationFile)return n;if(e.isExternalModule(n)||r.isolatedModules){var i=e.getOrCreateExternalHelpersModuleNameIfNeeded(n,r);if(i){var a=[],s=e.addPrologue(a,n.statements),c=e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,e.createNamespaceImport(i)),e.createLiteral(e.externalHelpersModuleNameText));return e.addEmitFlags(c,67108864),e.append(a,c),e.addRange(a,e.visitNodes(n.statements,o,e.isStatement,s)),e.updateSourceFileNode(n,e.setTextRange(e.createNodeArray(a),n.statements))}return e.visitEachChild(n,o,t)}return n};function o(e){switch(e.kind){case 241:return;case 247:return function(e){return e.isExportEquals?void 0:e}(e)}return e}}}(l||(l={})),function(e){var t,n;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Completed=2]="Completed",e[e.Disposed=3]="Disposed"}(t||(t={})),function(e){e[e.Substitution=1]="Substitution",e[e.EmitNotifications=2]="EmitNotifications"}(n||(n={})),e.getTransformers=function(t,n){var r=t.jsx,i=e.getEmitScriptTarget(t),a=e.getEmitModuleKind(t),o=[];return e.addRange(o,n&&n.before),o.push(e.transformTypeScript),2===r&&o.push(e.transformJsx),i<6&&o.push(e.transformESNext),i<4&&o.push(e.transformES2017),i<3&&o.push(e.transformES2016),i<2&&(o.push(e.transformES2015),o.push(e.transformGenerators)),o.push(function(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}}(a)),i<1&&o.push(e.transformES5),e.addRange(o,n&&n.after),o},e.transformNodes=function(t,n,r,i,a,o){for(var s,c,u,l=new Array(299),_=[],d=[],p=0,f=!1,m=function(e,t){return t},g=function(e,t,n){return n(e,t)},y=0,h={getCompilerOptions:function(){return r},getEmitResolver:function(){return t},getEmitHost:function(){return n},startLexicalEnvironment:function(){e.Debug.assert(y>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(y<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!f,"Lexical environment is suspended."),_[p]=s,d[p]=c,p++,s=void 0,c=void 0},suspendLexicalEnvironment:function(){e.Debug.assert(y>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(y<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!f,"Lexical environment is already suspended."),f=!0},resumeLexicalEnvironment:function(){e.Debug.assert(y>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(y<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(f,"Lexical environment is not suspended."),f=!1},endLexicalEnvironment:function(){var t;if(e.Debug.assert(y>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(y<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!f,"Lexical environment is suspended."),(s||c)&&(c&&(t=c.slice()),s)){var n=e.createVariableStatement(void 0,e.createVariableDeclarationList(s));t?t.push(n):t=[n]}return s=_[--p],c=d[p],0===p&&(_=[],d=[]),t},hoistVariableDeclaration:function(t){e.Debug.assert(y>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(y<2,"Cannot modify the lexical environment after transformation has completed.");var n=e.setEmitFlags(e.createVariableDeclaration(t),64);s?s.push(n):s=[n]},hoistFunctionDeclaration:function(t){e.Debug.assert(y>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(y<2,"Cannot modify the lexical environment after transformation has completed."),c?c.push(t):c=[t]},requestEmitHelper:function(t){e.Debug.assert(y>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(y<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!t.scoped,"Cannot request a scoped emit helper."),u=e.append(u,t)},readEmitHelpers:function(){e.Debug.assert(y>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(y<2,"Cannot modify the transformation context after transformation has completed.");var t=u;return u=void 0,t},enableSubstitution:function(t){e.Debug.assert(y<2,"Cannot modify the transformation context after transformation has completed."),l[t]|=1},enableEmitNotification:function(t){e.Debug.assert(y<2,"Cannot modify the transformation context after transformation has completed."),l[t]|=2},isSubstitutionEnabled:S,isEmitNotificationEnabled:D,get onSubstituteNode(){return m},set onSubstituteNode(t){e.Debug.assert(y<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),m=t},get onEmitNode(){return g},set onEmitNode(t){e.Debug.assert(y<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),g=t}},v=0,b=i;v<b.length;v++)e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(b[v])));e.performance.mark("beforeTransform");var x=e.chain.apply(void 0,a)(h);y=1;var k=e.map(i,o?x:function(t){return!t||e.isSourceFile(t)&&t.isDeclarationFile?t:x(t)});return y=2,e.performance.mark("afterTransform"),e.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:k,substituteNode:function(t,n){return e.Debug.assert(y<3,"Cannot substitute a node after the result is disposed."),n&&S(n)&&m(t,n)||n},emitNodeWithNotification:function(t,n,r){e.Debug.assert(y<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),n&&(D(n)?g(t,n,r):r(t,n))},dispose:function(){if(y<3){for(var t=0,n=i;t<n.length;t++)e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(n[t])));s=void 0,_=void 0,c=void 0,d=void 0,m=void 0,g=void 0,u=void 0,y=3}}};function S(t){return 0!=(1&l[t.kind])&&0==(4&e.getEmitFlags(t))}function D(t){return 0!=(2&l[t.kind])||0!=(2&e.getEmitFlags(t))}}}(l||(l={})),function(e){var t={emittedLine:1,emittedColumn:1,sourceLine:1,sourceColumn:1,sourceIndex:0};e.createSourceMapWriter=function(n,r){var a,o,s,c,u,l,_,d,p=n.getCompilerOptions(),f=p.extendedDiagnostics,m=!(p.sourceMap||p.inlineSourceMap);return{initialize:function(r,i,f){m||(d&&y(),a=void 0,o=void 0,c=-1,u=void 0,l=t,_=0,(d={sourceMapFilePath:i,jsSourceMappingURL:p.inlineSourceMap?void 0:e.getBaseFileName(e.normalizeSlashes(i)),sourceMapFile:e.getBaseFileName(e.normalizeSlashes(r)),sourceMapSourceRoot:p.sourceRoot||"",sourceMapSources:[],inputSourceFileNames:[],sourceMapNames:[],sourceMapMappings:"",sourceMapSourcesContent:p.inlineSources?[]:void 0,sourceMapDecodedMappings:[]}).sourceMapSourceRoot=e.normalizeSlashes(d.sourceMapSourceRoot),d.sourceMapSourceRoot.length&&47!==d.sourceMapSourceRoot.charCodeAt(d.sourceMapSourceRoot.length-1)&&(d.sourceMapSourceRoot+=e.directorySeparator),p.mapRoot?(s=e.normalizeSlashes(p.mapRoot),272===f.kind&&(s=e.getDirectoryPath(e.getSourceFilePathInNewDir(f,n,s))),e.isRootedDiskPath(s)||e.isUrl(s)?d.jsSourceMappingURL=e.combinePaths(s,d.jsSourceMappingURL):(s=e.combinePaths(n.getCommonSourceDirectory(),s),d.jsSourceMappingURL=e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizePath(r)),e.combinePaths(s,d.jsSourceMappingURL),n.getCurrentDirectory(),n.getCanonicalFileName,!0))):s=e.getDirectoryPath(e.normalizePath(r)))},reset:y,getSourceMapData:function(){return d},setSourceFile:b,emitPos:v,emitNodeWithSourceMap:function(e,t,n){if(m)return n(e,t);if(t){var r=t.emitNode,i=r&&r.flags,o=r&&r.sourceMapRange,s=o||t,c=s.pos,u=s.end,l=o&&o.source,_=a;l===_&&(l=void 0),l&&b(l),294!==t.kind&&0==(16&i)&&c>=0&&v(g(c)),l&&b(_),64&i?(m=!0,n(e,t),m=!1):n(e,t),l&&b(l),294!==t.kind&&0==(32&i)&&u>=0&&v(u),l&&b(_)}},emitTokenWithSourceMap:function(e,t,n,r,i){if(m)return i(t,n,r);var a=e&&e.emitNode,o=a&&a.flags,s=a&&a.tokenSourceMapRanges&&a.tokenSourceMapRanges[t];return r=g(s?s.pos:r),0==(128&o)&&r>=0&&v(r),r=i(t,n,r),s&&(r=s.end),0==(256&o)&&r>=0&&v(r),r},getText:x,getSourceMappingURL:function(){if(!m){if(p.inlineSourceMap){var t=e.convertToBase64(x());return d.jsSourceMappingURL="data:application/json;base64,"+t}return d.jsSourceMappingURL}}};function g(t){return a.skipTrivia?a.skipTrivia(t):e.skipTrivia(o,t)}function y(){m||(a=void 0,s=void 0,c=void 0,u=void 0,l=void 0,_=void 0,d=void 0)}function h(){if(u&&u!==l){var t=l.emittedColumn;if(l.emittedLine===u.emittedLine)d.sourceMapMappings&&(d.sourceMapMappings+=",");else{for(var n=l.emittedLine;n<u.emittedLine;n++)d.sourceMapMappings+=";";t=1}d.sourceMapMappings+=i(u.emittedColumn-t),d.sourceMapMappings+=i(u.sourceIndex-l.sourceIndex),d.sourceMapMappings+=i(u.sourceLine-l.sourceLine),d.sourceMapMappings+=i(u.sourceColumn-l.sourceColumn),u.nameIndex>=0&&(e.Debug.assert(!1,"We do not support name index right now, Make sure to update updateLastEncodedAndRecordedSpans when we start using this"),d.sourceMapMappings+=i(u.nameIndex-_),_=u.nameIndex),d.sourceMapDecodedMappings.push(l=u)}}function v(t){if(!m&&!e.positionIsSynthesized(t)){f&&e.performance.mark("beforeSourcemap");var n=e.getLineAndCharacterOfPosition(a,t);n.line++,n.character++;var i=r.getLine(),o=r.getColumn();!u||u.emittedLine!==i||u.emittedColumn!==o||u.sourceIndex===c&&(u.sourceLine>n.line||u.sourceLine===n.line&&u.sourceColumn>n.character)?(h(),u={emittedLine:i,emittedColumn:o,sourceLine:n.line,sourceColumn:n.character,sourceIndex:c}):(u.sourceLine=n.line,u.sourceColumn=n.character,u.sourceIndex=c),f&&(e.performance.mark("afterSourcemap"),e.performance.measure("Source Map","beforeSourcemap","afterSourcemap"))}}function b(t){if(!m){o=(a=t).text;var r=p.sourceRoot?n.getCommonSourceDirectory():s,i=e.getRelativePathToDirectoryOrUrl(r,a.fileName,n.getCurrentDirectory(),n.getCanonicalFileName,!0);-1===(c=d.sourceMapSources.indexOf(i))&&(c=d.sourceMapSources.length,d.sourceMapSources.push(i),d.inputSourceFileNames.push(a.fileName),p.inlineSources&&d.sourceMapSourcesContent.push(a.text))}}function x(){if(!m)return h(),JSON.stringify({version:3,file:d.sourceMapFile,sourceRoot:d.sourceMapSourceRoot,sources:d.sourceMapSources,names:d.sourceMapNames,mappings:d.sourceMapMappings,sourcesContent:d.sourceMapSourcesContent})}};var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function r(e){if(e<64)return n.charAt(e);throw TypeError(e+": not a 64 based value")}function i(e){e<0?e=1+(-e<<1):e<<=1;var t="";do{var n=31&e;(e>>=5)>0&&(n|=32),t+=r(n)}while(e>0);return t}}(l||(l={})),function(e){e.createCommentWriter=function(t,n){var r,i,a,o,s,c=t.extendedDiagnostics,u=e.getNewLineCharacter(t),l=-1,_=-1,d=-1,p=!1,f=t.removeComments;return{reset:function(){i=void 0,a=void 0,o=void 0,s=void 0},setWriter:function(e){r=e},setSourceFile:function(t){a=(i=t).text,o=e.getLineStarts(i),s=void 0},emitNodeWithComments:function(t,n,r){if(f)r(t,n);else if(n){p=!1;var i=n.emitNode,a=i&&i.flags,o=i&&i.commentRange||n,s=o.pos,u=o.end;if(s<0&&u<0||s===u)m(t,n,i,a,r);else{c&&e.performance.mark("preEmitNodeWithComment");var g=294!==n.kind,y=s<0||0!=(512&a)||10===n.kind,h=u<0||0!=(1024&a)||10===n.kind;y||v(s,g);var b=l,x=_,S=d;y||(l=s),h||(_=u,231===n.kind&&(d=u)),c&&e.performance.measure("commentTime","preEmitNodeWithComment"),m(t,n,i,a,r),c&&e.performance.mark("postEmitNodeWithComment"),l=b,_=x,d=S,!h&&g&&C(u,k),c&&e.performance.measure("commentTime","postEmitNodeWithComment")}}},emitBodyWithDetachedComments:function(t,n,i){c&&e.performance.mark("preEmitBodyWithDetachedComments");var l,_=n.pos,d=n.end,m=e.getEmitFlags(t),g=f||d<0||0!=(1024&m);_<0||0!=(512&m)||(l=e.emitDetachedComments(a,o,r,T,n,u,f))&&(s?s.push(l):s=[l]),c&&e.performance.measure("commentTime","preEmitBodyWithDetachedComments"),2048&m&&!f?(f=!0,i(t),f=!1):i(t),c&&e.performance.mark("beginEmitBodyWithDetachedCommetns"),g||(v(n.end,!0),p&&!r.isAtStartOfLine()&&r.writeLine()),c&&e.performance.measure("commentTime","beginEmitBodyWithDetachedCommetns")},emitTrailingCommentsOfPosition:function(t,n){f||(c&&e.performance.mark("beforeEmitTrailingCommentsOfPosition"),C(t,n?k:S),c&&e.performance.measure("commentTime","beforeEmitTrailingCommentsOfPosition"))},emitLeadingCommentsOfPosition:function(e){f||-1===e||v(e,!0)}};function m(t,n,r,i,a){var o=r&&r.leadingComments;e.some(o)&&(c&&e.performance.mark("preEmitNodeWithSynthesizedComments"),e.forEach(o,g),c&&e.performance.measure("commentTime","preEmitNodeWithSynthesizedComments")),function(e,t,n,r){2048&n?(f=!0,r(e,t),f=!1):r(e,t)}(t,n,i,a);var s=r&&r.trailingComments;e.some(s)&&(c&&e.performance.mark("postEmitNodeWithSynthesizedComments"),e.forEach(s,y),c&&e.performance.measure("commentTime","postEmitNodeWithSynthesizedComments"))}function g(e){2===e.kind&&r.writeLine(),h(e),e.hasTrailingNewLine||2===e.kind?r.writeLine():r.write(" ")}function y(e){r.isAtStartOfLine()||r.write(" "),h(e),e.hasTrailingNewLine&&r.writeLine()}function h(t){var n=function(e){return 3===e.kind?"/*"+e.text+"*/":"//"+e.text}(t),i=3===t.kind?e.computeLineStarts(n):void 0;e.writeCommentRange(n,i,r,0,n.length,u)}function v(e,t){p=!1,t?D(e,x):0===e&&D(e,b)}function b(t,n,r,i,o){(function(t,n){return e.isRecognizedTripleSlashComment(a,t,n)})(t,n)&&x(t,n,r,i,o)}function x(t,i,s,c,l){p||(e.emitNewLineBeforeLeadingCommentOfPosition(o,r,l,t),p=!0),n&&n(t),e.writeCommentRange(a,o,r,t,i,u),n&&n(i),c?r.writeLine():3===s&&r.write(" ")}function k(t,i,s,c){r.isAtStartOfLine()||r.write(" "),n&&n(t),e.writeCommentRange(a,o,r,t,i,u),n&&n(i),c&&r.writeLine()}function S(t,i,s,c){n&&n(t),e.writeCommentRange(a,o,r,t,i,u),n&&n(i),c?r.writeLine():r.write(" ")}function D(t,n){-1!==l&&t===l||(function(t){return void 0!==s&&e.lastOrUndefined(s).nodePos===t}(t)?function(t){var n=e.lastOrUndefined(s).detachedCommentEndPos;s.length-1?s.pop():s=void 0,e.forEachLeadingCommentRange(a,n,t,n)}(n):e.forEachLeadingCommentRange(a,t,n,t))}function C(t,n){(-1===_||t!==_&&t!==d)&&e.forEachTrailingCommentRange(a,t,n)}function T(t,r,i,a,o,s){n&&n(a),e.writeCommentRange(t,r,i,a,o,s),n&&n(o)}}}(l||(l={})),function(e){function t(t,n,r,i,a,o){var s,c,u,l,_,d,p,f,m,g,y,h,v=273===a.kind?a.sourceFiles:[a],b=273===a.kind,x=t.getNewLine(),k=t.getCompilerOptions();L();var S,D,C,T=!1,E=k.removeComments?e.noop:function(t){if(t){var n=e.getJSDocCommentRanges(t,m);e.emitNewLineBeforeLeadingComments(g,d,t,n),e.emitComments(m,g,d,n,!1,!0,x,e.writeCommentRange)}},N=k.stripInternal?function(t){if(t){var n=e.getLeadingCommentRanges(m,t.pos);if(e.forEach(n,M))return;be(t)}}:be,A=!0,P=[],w="",F=[],I=!1,O=[];return e.forEach(v,function(n){if(!e.isSourceFileJavaScript(n)){if(k.noResolve||e.forEach(n.referencedFiles,function(r){var a=e.tryResolveScriptReference(t,n,r);a&&!e.contains(F,a)&&(function(n,r,a){var o,s=!1;return n.isDeclarationFile?o=n.fileName:e.forEachEmittedFile(t,function(t,i){var a=273===i.kind;a&&!r||(e.Debug.assert(!!t.declarationFilePath||e.isSourceFileJavaScript(n),"Declaration file is not present only for javascript files"),o=t.declarationFilePath||t.jsFilePath,s=a)},n,a),o&&(o=e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizeSlashes(i)),o,t.getCurrentDirectory(),t.getCanonicalFileName,!1),w+='/// <reference path="'+o+'" />'+x),s}(a,!b&&!I,o)&&(I=!0),F.push(a))}),f=!1,b&&e.isExternalModule(n)?e.isExternalModule(n)&&(A=!1,s('declare module "'+e.getResolvedExternalModuleName(t,n)+'" {'),c(),u(),Y(n),l(),s("}"),c()):(A=!0,Y(n)),P.length){var r=d;e.forEach(P,function(t){if(t.isVisible&&!t.asynchronousOutput){e.Debug.assert(242===t.node.kind),L(),e.Debug.assert(0===t.indent||1===t.indent&&b);for(var n=0;n<t.indent;n++)u();for(ie(t.node),t.asynchronousOutput=d.getText(),n=0;n<t.indent;n++)l()}}),R(r),O=O.concat(P),P=[]}b||!e.isExternalModule(n)||f||(s("export {};"),c())}}),C&&e.forEachKey(C,function(e){w+='/// <reference types="'+e+'" />'+x}),{reportedDeclarationError:T,moduleElementDeclarationEmitInfo:O,synchronousDeclarationOutput:d.getText(),referencesOutput:w};function M(t){var n=m.substring(t.pos,t.end);return e.stringContains(n,"@internal")}function L(){var t=e.createTextWriter(x);t.trackSymbol=J,t.reportInaccessibleThisError=V,t.reportInaccessibleUniqueSymbolError=U,t.reportPrivateInBaseOfClassExpression=K,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,R(t)}function R(e){d=e,s=e.write,_=e.writeTextOfNode,c=e.writeLine,u=e.increaseIndent,l=e.decreaseIndent}function B(t){var n=d;e.forEach(t,function(t){var n;230===t.kind?n=t.parent.parent:245===t.kind||246===t.kind||243===t.kind?e.Debug.fail("We should be getting ImportDeclaration instead to write"):n=t;var r=e.forEach(P,function(e){return e.node===n?e:void 0});if(!r&&D&&(r=e.forEach(D,function(e){return e.node===n?e:void 0})),r)if(242===r.node.kind)r.isVisible=!0;else{L();for(var i=r.indent;i;i--)u();237===n.kind&&(e.Debug.assert(void 0===D),D=[]),ee(n),237===n.kind&&(r.subModuleElementDeclarationEmitInfo=D,D=void 0),r.asynchronousOutput=d.getText()}}),R(n)}function z(t){if(t){C||(C=e.createMap());for(var n=0,r=t;n<r.length;n++){var i=r[n];C.has(i)||C.set(i,i)}}}function j(t){if(0===t.accessibility)t&&t.aliasesToMakeVisible&&B(t.aliasesToMakeVisible);else{T=!0;var n=d.getSymbolAccessibilityDiagnostic(t);n&&r.add(n.typeName?e.createDiagnosticForNode(t.errorNode||n.errorNode,n.diagnosticMessage,e.getTextOfNodeFromSourceText(m,n.typeName),t.errorSymbolName,t.errorModuleName):e.createDiagnosticForNode(t.errorNode||n.errorNode,n.diagnosticMessage,t.errorSymbolName,t.errorModuleName))}}function J(e,t,r){j(n.isSymbolAccessible(e,t,r,!0)),z(n.getTypeReferenceDirectivesForSymbol(e,r))}function K(t){S&&(T=!0,r.add(e.createDiagnosticForNode(S,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,t)))}function U(){S&&(T=!0,r.add(e.createDiagnosticForNode(S,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(S),"unique symbol")))}function V(){S&&(T=!0,r.add(e.createDiagnosticForNode(S,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(S),"this")))}function q(e,t,r){d.getSymbolAccessibilityDiagnostic=r,s(": ");var i=148===e.kind&&(n.isRequiredInitializedParameter(e)||n.isOptionalUninitializedParameterProperty(e));t&&!i?Q(t):(S=e.name,n.writeTypeOfDeclaration(e,p,6152|(i?131072:0),d),S=void 0)}function W(e){for(var t=0,n=e;t<n.length;t++)N(n[t])}function H(e,t,n,r){for(var i=d.getTextPos(),a=0,o=e;a<o.length;a++){var c=o[a];r&&!r(c)||(i!==d.getTextPos()&&s(t),i=d.getTextPos(),n(c))}}function G(e,t,n){H(e,", ",t,n)}function X(e,t){d.getSymbolAccessibilityDiagnostic=t,Q(e)}function Q(t){switch(t.kind){case 119:case 137:case 134:case 122:case 135:case 138:case 105:case 140:case 95:case 131:case 173:case 177:return _(m,t);case 205:return void(e.isEntityNameExpression((r=t).expression)&&(e.Debug.assert(71===r.expression.kind||183===r.expression.kind),a(r.expression),r.typeArguments&&(s("<"),G(r.typeArguments,Q),s(">"))));case 161:return function(e){a(e.typeName),e.typeArguments&&(s("<"),G(e.typeArguments,Q),s(">"))}(t);case 164:return function(e){s("typeof "),a(e.exprName)}(t);case 166:return function(e){Q(e.elementType),s("[]")}(t);case 167:return function(e){s("["),G(e.elementTypes,Q),s("]")}(t);case 168:return function(e){H(e.types," | ",Q)}(t);case 169:return function(e){H(e.types," & ",Q)}(t);case 170:return function(e){Q(e.checkType),s(" extends "),Q(e.extendsType),s(" ? ");var t=p;p=e.trueType,Q(e.trueType),p=t,s(" : "),Q(e.falseType)}(t);case 171:return function(e){s("infer "),_(m,e.typeParameter.name)}(t);case 172:return function(e){s("("),Q(e.type),s(")")}(t);case 174:return function(t){s(e.tokenToString(t.operator)),s(" "),Q(t.type)}(t);case 175:return function(e){Q(e.objectType),s("["),Q(e.indexType),s("]")}(t);case 176:return function(e){var t=p;p=e,s("{"),c(),u(),e.readonlyToken&&s(37===e.readonlyToken.kind?"+readonly ":38===e.readonlyToken.kind?"-readonly ":"readonly "),s("["),i(e.typeParameter.name),s(" in "),Q(e.typeParameter.constraint),s("]"),e.questionToken&&s(37===e.questionToken.kind?"+?":38===e.questionToken.kind?"-?":"?"),s(": "),e.type?Q(e.type):s("any"),s(";"),c(),l(),s("}"),p=t}(t);case 162:case 163:return ye(t);case 165:return function(e){s("{"),e.members.length&&(c(),u(),W(e.members),l()),s("}")}(t);case 71:case 145:return a(t);case 160:return function(e){_(m,e.parameterName),s(" is "),Q(e.type)}(t)}var r;function i(e){if(71===e.kind)_(m,e);else{var t=145===e.kind?e.right:e.name;i(145===e.kind?e.left:e.expression),s("."),_(m,t)}}function a(e){j(n.isEntityNameVisible(e,241===e.parent.kind?e.parent:p)),z(n.getTypeReferenceDirectivesForEntityName(e)),i(e)}}function Y(t){m=t.text,g=e.getLineStarts(t),y=t.identifiers,h=e.isExternalModule(t),p=t,e.emitDetachedComments(m,g,d,e.writeCommentRange,t,x,!0),W(t.statements)}function $(e,t,r,i){var a=function(e){if(!y.has(e))return e;for(var t=0;;){var n=e+"_"+ ++t;if(!y.has(n))return n}}(t);return i&&s("declare "),s("const "),s(a),s(": "),d.getSymbolAccessibilityDiagnostic=function(){return r},n.writeTypeOfExpression(e,p,6152,d),s(";"),c(),a}function Z(e,t){if(t)ee(e);else if(241===e.kind||272===e.parent.kind&&h){var r=void 0;if(D&&272!==e.parent.kind)D.push({node:e,outputPos:d.getTextPos(),indent:d.getIndent(),isVisible:r});else{if(242===e.kind){var i=e;i.importClause&&(r=i.importClause.name&&n.isDeclarationVisible(i.importClause)||re(i.importClause.namedBindings))}P.push({node:e,outputPos:d.getTextPos(),indent:d.getIndent(),isVisible:r})}}}function ee(t){switch(t.kind){case 232:return me(t);case 212:return function(t){e.every(t.declarationList&&t.declarationList.declarations,function(t){return t.name&&e.isEmptyBindingPattern(t.name)})||(E(t),te(t),e.isLet(t.declarationList)?s("let "):e.isConst(t.declarationList)?s("const "):s("var "),G(t.declarationList.declarations,pe,de),s(";"),c())}(t);case 234:return function(t){E(t),te(t),s("interface "),_(m,t.name);var n=p;p=t,ue(t.typeParameters);var r=e.filter(e.getInterfaceBaseTypeNodes(t),function(t){return e.isEntityNameExpression(t.expression)});r&&r.length&&le(r,!1),s(" {"),c(),u(),W(t.members),l(),s("}"),c(),p=n}(t);case 233:return function(t){var n=p;p=t;var r,i,a=e.getClassExtendsHeritageClauseElement(t);a&&!e.isEntityNameExpression(a.expression)&&(r=95===a.expression.kind?"null":$(a.expression,t.name.escapedText+"_base",{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:a,typeName:t.name},!e.findAncestor(t,function(e){return 237===e.kind}))),E(t),te(t),e.hasModifier(t,128)&&s("abstract "),s("class "),_(m,t.name),ue(t.typeParameters),a&&(e.isEntityNameExpression(a.expression)?le([a],!1):(s(" extends "),s(r),a.typeArguments&&(s("<"),G(a.typeArguments,Q),s(">")))),le(e.getClassImplementsHeritageClauseElements(t),!0),s(" {"),c(),u(),(i=e.getFirstConstructorWithBody(t))&&e.forEach(i.parameters,function(t){e.hasModifier(t,92)&&_e(t)}),W(t.members),l(),s("}"),c(),p=n}(t);case 235:return function(t){var n=p;p=t,E(t),te(t),s("type "),_(m,t.name),ue(t.typeParameters),s(" = "),X(t.type,function(){return{diagnosticMessage:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:t.type,typeName:t.name}}),s(";"),c(),p=n}(t);case 236:return function(t){E(t),te(t),e.isConst(t)&&s("const "),s("enum "),_(m,t.name),s(" {"),c(),u(),W(t.members),l(),s("}"),c()}(t);case 237:return function(t){for(E(t),te(t),e.isGlobalScopeAugmentation(t)?s("global "):(s(16&t.flags?"namespace ":"module "),e.isExternalModuleAugmentation(t)?ae(t):_(m,t.name));t.body&&238!==t.body.kind;)t=t.body,s("."),_(m,t.name);var n=p;t.body?(p=t,s(" {"),c(),u(),W(t.body.statements),l(),s("}"),c(),p=n):s(";")}(t);case 241:return function(t){E(t),e.hasModifier(t,1)&&s("export "),s("import "),_(m,t.name),s(" = "),e.isInternalModuleImportEqualsDeclaration(t)?(X(t.moduleReference,function(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}),s(";")):(s("require("),ae(t),s(");")),d.writeLine()}(t);case 242:return ie(t);default:e.Debug.fail("Unknown symbol kind")}}function te(t){if(272===t.parent.kind){var n=e.getModifierFlags(t);1&n&&(f=!0,s("export ")),512&n?s("default "):234!==t.kind&&A&&s("declare ")}}function ne(e){8&e?s("private "):16&e&&s("protected "),32&e&&s("static "),64&e&&s("readonly "),128&e&&s("abstract ")}function re(e){if(e)return 244===e.kind?n.isDeclarationVisible(e):e.elements.some(function(e){return n.isDeclarationVisible(e)})}function ie(t){if(E(t),e.hasModifier(t,1)&&s("export "),s("import "),t.importClause){var r=d.getTextPos();t.importClause.name&&n.isDeclarationVisible(t.importClause)&&_(m,t.importClause.name),t.importClause.namedBindings&&re(t.importClause.namedBindings)&&(r!==d.getTextPos()&&s(", "),244===t.importClause.namedBindings.kind?(s("* as "),_(m,t.importClause.namedBindings.name)):(s("{ "),G(t.importClause.namedBindings.elements,oe,n.isDeclarationVisible),s(" }"))),s(" from ")}ae(t),s(";"),d.writeLine()}function ae(r){f=f||237!==r.kind;var i=241===r.kind?e.getExternalModuleImportEqualsDeclarationExpression(r):237===r.kind?r.name:r.moduleSpecifier;if(9===i.kind&&b&&(k.out||k.outFile)){var a=e.getExternalModuleNameFromDeclaration(t,n,r);if(a)return s('"'),s(a),void s('"')}_(m,i)}function oe(e){e.propertyName&&(_(m,e.propertyName),s(" as ")),_(m,e.name)}function se(e){oe(e),B(n.collectLinkedAliases(e.propertyName||e.name))}function ce(t){return 153===t.parent.kind&&e.hasModifier(t.parent,8)}function ue(t){t&&(s("<"),G(t,function(t){function n(){var n;switch(t.parent.kind){case 233:n=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 234:n=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 158:n=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 157:n=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 153:case 152:n=e.hasModifier(t.parent,32)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:233===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 232:n=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 235:n=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:n,errorNode:t,typeName:t.name}}u(),E(t),l(),_(m,t.name),t.constraint&&!ce(t)&&(s(" extends "),162===t.parent.kind||163===t.parent.kind||t.parent.parent&&165===t.parent.parent.kind?(e.Debug.assert(153===t.parent.kind||152===t.parent.kind||162===t.parent.kind||163===t.parent.kind||157===t.parent.kind||158===t.parent.kind),Q(t.constraint)):X(t.constraint,n)),t.default&&!ce(t)&&(s(" = "),162===t.parent.kind||163===t.parent.kind||t.parent.parent&&165===t.parent.parent.kind?(e.Debug.assert(153===t.parent.kind||152===t.parent.kind||162===t.parent.kind||163===t.parent.kind||157===t.parent.kind||158===t.parent.kind),Q(t.default)):X(t.default,n))}),s(">"))}function le(t,n){t&&(s(n?" implements ":" extends "),G(t,function(t){e.isEntityNameExpression(t.expression)?X(t,function(){return{diagnosticMessage:233===t.parent.parent.kind?n?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,errorNode:t,typeName:e.getNameOfDeclaration(t.parent.parent)}}):n||95!==t.expression.kind||s("null")}))}function _e(t){e.hasDynamicName(t)&&!n.isLateBound(t)||(E(t),ne(e.getModifierFlags(t)),pe(t),s(";"),c())}function de(t){return n.isDeclarationVisible(t)||function(t){return!!t&&e.isBindingPattern(t)&&e.some(t.elements,function(t){return!e.isOmittedExpression(t)&&de(t)})}(t.name)}function pe(t){function r(n){return 230===t.kind?n.errorModuleName?2===n.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:151===t.kind||150===t.kind||148===t.kind&&e.hasModifier(t.parent,8)?e.hasModifier(t,32)?n.errorModuleName?2===n.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:233===t.parent.kind||148===t.kind?n.errorModuleName?2===n.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:n.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 i(e){var n=r(e);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}function a(e){for(var t=[],n=0,r=e.elements;n<r.length;n++){var i=r[n];204!==i.kind&&de(i)&&t.push(i)}G(t,o)}function o(t){t.name&&(e.isBindingPattern(t.name)?a(t.name):(_(m,t.name),q(t,void 0,function(e){var n=r(e);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0})))}(230!==t.kind||de(t))&&(e.isBindingPattern(t.name)?a(t.name):(ge(t,i),(151===t.kind||150===t.kind||148===t.kind&&!e.isParameterPropertyDeclaration(t))&&e.hasQuestionToken(t)&&s("?"),151!==t.kind&&150!==t.kind||165!==t.parent.kind?n.isLiteralConstDeclaration(t)?(s(" = "),n.writeLiteralConstValue(t,d)):e.hasModifier(t,8)||q(t,t.type,i):fe(t)))}function fe(t){e.hasType(t)&&(s(": "),Q(t.type))}function me(t){e.hasDynamicName(t)&&!n.isLateBound(t)||n.isImplementationOfOverload(t)||(E(t),232===t.kind?te(t):153!==t.kind&&154!==t.kind||ne(e.getModifierFlags(t)),232===t.kind?(s("function "),_(m,t.name)):154===t.kind?s("constructor"):(ge(t,function(n){var r=function(n){return e.hasModifier(t,32)?n.errorModuleName?2===n.accessibility?e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:233===t.parent.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1:n.errorModuleName?e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1}(n);return void 0!==r?{diagnosticMessage:r,errorNode:t,typeName:t.name}:void 0}),e.hasQuestionToken(t)&&s("?")),he(t))}function ge(t,r){e.hasDynamicName(t)?(e.Debug.assert(n.isLateBound(t)),function(e,t){d.getSymbolAccessibilityDiagnostic=t;var r=e.name.expression;j(n.isEntityNameVisible(r,p)),z(n.getTypeReferenceDirectivesForEntityName(r)),_(m,e.name)}(t,r)):_(m,t.name)}function ye(e){E(e),he(e)}function he(t){var r=p;p=t;var i=!1;if(159===t.kind)ne(e.getModifierFlags(t)),s("[");else{if(154===t.kind&&e.hasModifier(t,8))return s("();"),void c();if(158===t.kind||163===t.kind)s("new ");else if(162===t.kind){var a=d.getText();t.typeParameters&&"<"===a.charAt(a.length-1)&&(i=!0,s("("))}ue(t.typeParameters),s("(")}G(t.parameters,ve),s(159===t.kind?"]":")");var o,u=162===t.kind||163===t.kind;u||165===t.parent.kind?t.type&&(s(u?" => ":": "),Q(t.type)):154===t.kind||e.hasModifier(t,8)||(o=t,d.getSymbolAccessibilityDiagnostic=function(n){var r;switch(t.kind){case 158:r=n.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 157:r=n.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 159:r=n.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 153:case 152:r=e.hasModifier(t,32)?n.errorModuleName?2===n.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:233===t.parent.kind?n.errorModuleName?2===n.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:n.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 232:r=n.errorModuleName?2===n.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:r,errorNode:t.name||t}},s(": "),o.type?Q(o.type):(S=o.name,n.writeReturnTypeOfSignatureDeclaration(o,p,6152,d),S=void 0)),p=r,u?i&&s(")"):(s(";"),c())}function ve(t){function r(e){if(178===e.kind)s("{"),G(e.elements,i),s("}");else if(179===e.kind){s("[");var t=e.elements;G(t,i),t&&t.hasTrailingComma&&s(", "),s("]")}}function i(t){204===t.kind?s(" "):180===t.kind&&(t.propertyName&&(_(m,t.propertyName),s(": ")),t.name&&(e.isBindingPattern(t.name)?r(t.name):(e.Debug.assert(71===t.name.kind),t.dotDotDotToken&&s("..."),_(m,t.name))))}u(),E(t),t.dotDotDotToken&&s("..."),e.isBindingPattern(t.name)?r(t.name):_(m,t.name),n.isOptionalParameter(t)&&s("?"),l(),162===t.parent.kind||163===t.parent.kind||165===t.parent.parent.kind?fe(t):e.hasModifier(t.parent,8)||q(t,t.type,function(n){var r=function(n){switch(t.parent.kind){case 154:return n.errorModuleName?2===n.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 158:return n.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 157:return n.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 159:return n.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 153:case 152:return e.hasModifier(t.parent,32)?n.errorModuleName?2===n.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:233===t.parent.parent.kind?n.errorModuleName?2===n.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:n.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 232:return n.errorModuleName?2===n.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)}}(n);return void 0!==r?{diagnosticMessage:r,errorNode:t,typeName:t.name}:void 0})}function be(t){switch(t.kind){case 232:case 237:case 241:case 234:case 233:case 235:case 236:return Z(t,function(e){return n.isDeclarationVisible(e)}(t));case 212:return Z(t,function(t){return e.forEach(t.declarationList.declarations,function(e){return de(e)})}(t));case 242:return Z(t,!t.importClause);case 248:return function(e){f=!0,E(e),s("export "),e.exportClause?(s("{ "),G(e.exportClause.elements,se),s(" }")):s("*"),e.moduleSpecifier&&(s(" from "),ae(e)),s(";"),d.writeLine()}(t);case 154:case 153:case 152:return me(t);case 158:case 157:case 159:return ye(t);case 155:case 156:return function(t){if(!e.hasDynamicName(t)||n.isLateBound(t)){var r,i=e.getAllAccessorDeclarations(t.parent.members,t);if(t===i.firstAccessor){if(E(i.getAccessor),E(i.setAccessor),ne(e.getModifierFlags(t)|(i.setAccessor?0:64)),ge(t,function(n){var r=function(n){return e.hasModifier(t,32)?n.errorModuleName?2===n.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:233===t.parent.kind?n.errorModuleName?2===n.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:n.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}(n);return void 0!==r?{diagnosticMessage:r,errorNode:t,typeName:t.name}:void 0}),!e.hasModifier(t,8)){r=t;var a=u(t);if(!a){var o=155===t.kind?i.setAccessor:i.getAccessor;(a=u(o))&&(r=o)}q(t,a,function(t){return{diagnosticMessage:156===r.kind?e.hasModifier(r,32)?t.errorModuleName?e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:e.hasModifier(r,32)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,errorNode:r.name,typeName:r.name}})}s(";"),c()}}function u(e){if(e)return 155===e.kind?e.type:e.parameters.length>0?e.parameters[0].type:void 0}}(t);case 151:case 150:return _e(t);case 271:return function(t){E(t),_(m,t.name);var r=n.getConstantValue(t);void 0!==r&&(s(" = "),s(e.getTextOfConstantValue(r))),s(","),c()}(t);case 247:return function(t){if(e.isSourceFile(t.parent)&&(f=!0),71===t.expression.kind)s(t.isExportEquals?"export = ":"export default "),_(m,t.expression);else{var r=$(t.expression,"_default",{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:t},A);s(t.isExportEquals?"export = ":"export default "),s(r)}s(";"),c(),71===t.expression.kind&&B(n.collectLinkedAliases(t.expression))}(t);case 272:return Y(t)}}}e.getDeclarationDiagnostics=function(n,r,i){var a=e.createDiagnosticCollection();return e.forEachEmittedFile(n,function(e,i){t(n,r,a,e.declarationFilePath,i,!1)},i),a.getDiagnostics(i?i.fileName:void 0)},e.writeDeclarationFile=function(n,r,i,a,o,s){var c=t(i,a,o,n,r,s),u=c.reportedDeclarationError||i.isEmitBlocked(n)||i.getCompilerOptions().noEmit;if(!u||s){var l=273===r.kind?r.sourceFiles:[r],_=c.referencesOutput+function t(n,r){var i=0,a="";return e.forEach(r,function(e){e.asynchronousOutput&&(a+=n.substring(i,e.outputPos),a+=t(e.asynchronousOutput,e.subModuleElementDeclarationEmitInfo),i=e.outputPos)}),a+=n.substring(i)}(c.synchronousDeclarationOutput,c.moduleElementDeclarationEmitInfo);e.writeFile(i,o,n,_,i.getCompilerOptions().emitBOM,l)}return u}}(l||(l={})),function(e){var t,n=function(){var e=[];return e[512]=["{","}"],e[1024]=["(",")"],e[2048]=["<",">"],e[4096]=["[","]"],e}();function r(t,n,r,o){var s=e.isArray(r)?r:e.getSourceFilesToEmit(t,r),c=t.getCompilerOptions();if(c.outFile||c.out){if(s.length&&(d=n({jsFilePath:_=c.outFile||c.out,sourceMapFilePath:i(_,c),declarationFilePath:c.declaration?e.removeFileExtension(_)+".d.ts":""},e.createBundle(s),o)))return d}else for(var u=0,l=s;u<l.length;u++){var _,d,p=l[u];if(d=n({jsFilePath:_=e.getOwnEmitOutputFilePath(p,t,a(p,c)),sourceMapFilePath:i(_,c),declarationFilePath:e.isSourceFileJavaScript(p)||!o&&!c.declaration?void 0:e.getDeclarationEmitOutputFilePath(p,t)},p,o))return d}}function i(e,t){return t.sourceMap?e+".map":void 0}function a(t,n){if(1===n.jsx)if(e.isSourceFileJavaScript(t)){if(e.fileExtensionIs(t.fileName,".jsx"))return".jsx"}else if(1===t.languageVariant)return".jsx";return".js"}function o(t,r){void 0===t&&(t={}),void 0===r&&(r={});var i,a,o,s,c,u,l,_,d,p,f=r.hasGlobalName,m=r.onEmitSourceMapOfNode,g=r.onEmitSourceMapOfToken,y=r.onEmitSourceMapOfPosition,h=r.onEmitNode,v=r.onEmitHelpers,b=r.onSetSourceFile,x=r.substituteNode,k=r.onBeforeEmitNodeArray,S=r.onAfterEmitNodeArray,D=r.onBeforeEmitToken,C=r.onAfterEmitToken,T=e.getNewLineCharacter(t),E=e.createCommentWriter(t,y),N=E.emitNodeWithComments,A=E.emitBodyWithDetachedComments,P=E.emitTrailingCommentsOfPosition,w=E.emitLeadingCommentsOfPosition,F=function(e){I(),d.write(e)},I=e.noop,O=We,M=!1;t.omitTrailingSemicolon&&(I=function(){M&&(We(),M=!1)},O=function(){M=!0});var L={pos:-1,end:-1};return G(),{printNode:function(t,n,r){switch(t){case 0:e.Debug.assert(e.isSourceFile(n),"Expected a SourceFile node.");break;case 2:e.Debug.assert(e.isIdentifier(n),"Expected an Identifier node.");break;case 1:e.Debug.assert(e.isExpression(n),"Expected an Expression node.")}switch(n.kind){case 272:return B(n);case 273:return R(n)}return z(t,n,r,U()),V()},printList:function(e,t,n){return j(e,t,n,U()),V()},printFile:B,printBundle:R,writeNode:z,writeList:j,writeFile:K,writeBundle:J};function R(e){return J(e,U()),V()}function B(e){return K(e,U()),V()}function z(e,t,n,r){var i=d;H(r),q(e,t,n),G(),d=i}function j(e,t,n,r){var i=d;H(r),n&&W(n),Je(L,t,e),G(),d=i}function J(e,t){var n=d;H(t),Ne(e),Ee(e),ae(e);for(var r=0,i=e.sourceFiles;r<i.length;r++){var a=i[r];q(0,a,a)}G(),d=n}function K(e,t){var n=d;H(t),Ne(e),Ee(e),q(0,e,e),G(),d=n}function U(){return p||(p=e.createTextWriter(T))}function V(){var e=p.getText();return p.clear(),e}function q(e,t,n){n&&W(n),Z(e,t)}function W(e){i=e,E.setSourceFile(e),b&&b(e)}function H(e){d=e,E.setWriter(e)}function G(){a=[],o=[],s=e.createMap(),c=[],u=0,l=[],E.reset(),H(void 0)}function X(e){e&&Q(e)}function Q(e){Z(4,e)}function Y(e){Z(2,e)}function $(e){Z(1,e)}function Z(e,t){h?h(e,t,ee):ee(e,t)}function ee(e,t){t=ie(e,t),N&&0!==e?N(e,t,te):te(e,t)}function te(e,t){m&&0!==e&&2!==e?m(e,t,ne):ne(e,t)}function ne(t,n){switch(t){case 0:return function(t){e.Debug.assertNode(t,e.isSourceFile),function(t){$e();var n=t.statements;!A||0!==n.length&&e.isPrologueDirective(n[0])&&!e.nodeIsSynthesized(n[0])?Ce(t):A(t,n,Ce)}(t)}(n);case 2:return function(t){e.Debug.assertNode(t,e.isIdentifier),se(t)}(n);case 1:return re(n);case 3:return function(e){Q(e.name),Qe(),He("in"),Qe(),Q(e.constraint)}(e.cast(n,e.isTypeParameterDeclaration));case 4:return function(t){var n=t.kind;if(e.isKeyword(n))nt(t,He);else{switch(n){case 14:case 15:case 16:return oe(t);case 71:return se(t);case 145:return function(e){(function(e){71===e.kind?$(e):Q(e)})(e.left),qe("."),Q(e.right)}(t);case 146:return function(e){qe("["),$(e.expression),qe("]")}(t);case 147:return function(e){Q(e.name),e.constraint&&(Qe(),He("extends"),Qe(),Q(e.constraint)),e.default&&(Qe(),Ge("="),Qe(),Q(e.default))}(t);case 148:return function(e){Le(e,e.decorators),Pe(e,e.modifiers),X(e.dotDotDotToken),e.name&&Ae(e.name,Xe),X(e.questionToken),e.parent&&280===e.parent.kind&&!e.name?Q(e.type):we(e.type),Fe(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name?e.name.end:e.modifiers?e.modifiers.end:e.decorators?e.decorators.end:e.pos,e)}(t);case 149:return r=t,qe("@"),void $(r.expression);case 150:return function(e){Le(e,e.decorators),Pe(e,e.modifiers),Ae(e.name,Ye),X(e.questionToken),we(e.type),O()}(t);case 151:return function(e){Le(e,e.decorators),Pe(e,e.modifiers),Q(e.name),X(e.questionToken),X(e.exclamationToken),we(e.type),Fe(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name.end,e),O()}(t);case 152:return function(e){Le(e,e.decorators),Pe(e,e.modifiers),Q(e.name),X(e.questionToken),Be(e,e.typeParameters),ze(e,e.parameters),we(e.type),O()}(t);case 153:return function(e){Le(e,e.decorators),Pe(e,e.modifiers),X(e.asteriskToken),Q(e.name),X(e.questionToken),me(e,ge)}(t);case 154:return function(e){Pe(e,e.modifiers),He("constructor"),me(e,ge)}(t);case 155:case 156:return function(e){Le(e,e.decorators),Pe(e,e.modifiers),He(155===e.kind?"get":"set"),Qe(),Q(e.name),me(e,ge)}(t);case 157:return function(e){Le(e,e.decorators),Pe(e,e.modifiers),Be(e,e.typeParameters),ze(e,e.parameters),we(e.type),O()}(t);case 158:return function(e){Le(e,e.decorators),Pe(e,e.modifiers),He("new"),Qe(),Be(e,e.typeParameters),ze(e,e.parameters),we(e.type),O()}(t);case 159:return function(e){Le(e,e.decorators),Pe(e,e.modifiers),Je(e,e.parameters,4432),we(e.type),O()}(t);case 160:return function(e){Q(e.parameterName),Qe(),He("is"),Qe(),Q(e.type)}(t);case 161:return function(e){Q(e.typeName),Re(e,e.typeArguments)}(t);case 162:return function(e){Be(e,e.typeParameters),je(e,e.parameters),Qe(),qe("=>"),Qe(),Q(e.type)}(t);case 280:return function(e){F("function"),ze(e,e.parameters),F(":"),Q(e.type)}(t);case 163:return function(e){He("new"),Qe(),Be(e,e.typeParameters),ze(e,e.parameters),Qe(),qe("=>"),Qe(),Q(e.type)}(t);case 164:return function(e){He("typeof"),Qe(),Q(e.exprName)}(t);case 165:return function(t){qe("{");var n=1&e.getEmitFlags(t)?448:65;Je(t,t.members,262144|n),qe("}")}(t);case 166:return function(e){Q(e.elementType),qe("["),qe("]")}(t);case 167:return function(e){qe("["),Je(e,e.elementTypes,336),qe("]")}(t);case 168:return function(e){Je(e,e.types,260)}(t);case 169:return function(e){Je(e,e.types,264)}(t);case 170:return function(e){Q(e.checkType),Qe(),He("extends"),Qe(),Q(e.extendsType),Qe(),qe("?"),Qe(),Q(e.trueType),Qe(),qe(":"),Qe(),Q(e.falseType)}(t);case 171:return function(e){He("infer"),Qe(),Q(e.typeParameter)}(t);case 172:return function(e){qe("("),Q(e.type),qe(")")}(t);case 205:return function(e){$(e.expression),Re(e,e.typeArguments)}(t);case 173:return void He("this");case 174:return function(e){rt(e.operator,He),Qe(),Q(e.type)}(t);case 175:return function(e){Q(e.objectType),qe("["),Q(e.indexType),qe("]")}(t);case 176:return function(t){var n=e.getEmitFlags(t);qe("{"),1&n?Qe():($e(),Ze()),t.readonlyToken&&(Q(t.readonlyToken),132!==t.readonlyToken.kind&&He("readonly"),Qe()),qe("["),Z(3,t.typeParameter),qe("]"),t.questionToken&&(Q(t.questionToken),55!==t.questionToken.kind&&qe("?")),qe(":"),Qe(),Q(t.type),O(),1&n?Qe():($e(),et()),qe("}")}(t);case 177:return function(e){$(e.literal)}(t);case 275:return void F("*");case 276:return void F("?");case 277:return function(e){F("?"),Q(e.type)}(t);case 278:return function(e){F("!"),Q(e.type)}(t);case 279:return function(e){Q(e.type),F("=")}(t);case 281:return function(e){F("..."),Q(e.type)}(t);case 178:return function(e){qe("{"),Je(e,e.elements,262576),qe("}")}(t);case 179:return function(e){qe("["),Je(e,e.elements,262448),qe("]")}(t);case 180:return function(e){X(e.dotDotDotToken),e.propertyName&&(Q(e.propertyName),qe(":"),Qe()),Q(e.name),Fe(e.initializer,e.name.end,e)}(t);case 209:return function(e){$(e.expression),Q(e.literal)}(t);case 210:return void O();case 211:return function(e){ue(e,!e.multiLine&&pt(e))}(t);case 212:return function(e){Pe(e,e.modifiers),Q(e.declarationList),O()}(t);case 213:return void O();case 214:return function(e){$(e.expression),O()}(t);case 215:return function(e){var t=de(90,e.pos,He,e);Qe(),de(19,t,qe,e),$(e.expression),de(20,e.expression.end,qe,e),Me(e,e.thenStatement),e.elseStatement&&(it(e),de(82,e.thenStatement.end,He,e),215===e.elseStatement.kind?(Qe(),Q(e.elseStatement)):Me(e,e.elseStatement))}(t);case 216:return function(t){de(81,t.pos,He,t),Me(t,t.statement),e.isBlock(t.statement)?Qe():it(t),le(t,t.statement.end),qe(";")}(t);case 217:return function(e){le(e,e.pos),Me(e,e.statement)}(t);case 218:return function(e){var t=de(88,e.pos,He,e);Qe();var n=de(19,t,qe,e);_e(e.initializer),n=de(25,e.initializer?e.initializer.end:n,O,e),Oe(e.condition),n=de(25,e.condition?e.condition.end:n,O,e),Oe(e.incrementor),de(20,e.incrementor?e.incrementor.end:n,qe,e),Me(e,e.statement)}(t);case 219:return function(e){var t=de(88,e.pos,He,e);Qe(),de(19,t,qe,e),_e(e.initializer),Qe(),de(92,e.initializer.end,He,e),Qe(),$(e.expression),de(20,e.expression.end,qe,e),Me(e,e.statement)}(t);case 220:return function(e){var t=de(88,e.pos,He,e);Qe(),function(e){e&&(Q(e),Qe())}(e.awaitModifier),de(19,t,qe,e),_e(e.initializer),Qe(),de(144,e.initializer.end,He,e),Qe(),$(e.expression),de(20,e.expression.end,qe,e),Me(e,e.statement)}(t);case 221:return function(e){de(77,e.pos,He,e),Ie(e.label),O()}(t);case 222:return function(e){de(72,e.pos,He,e),Ie(e.label),O()}(t);case 223:return function(e){de(96,e.pos,He,e),Oe(e.expression),O()}(t);case 224:return function(e){var t=de(107,e.pos,He,e);Qe(),de(19,t,qe,e),$(e.expression),de(20,e.expression.end,qe,e),Me(e,e.statement)}(t);case 225:return function(e){var t=de(98,e.pos,He,e);Qe(),de(19,t,qe,e),$(e.expression),de(20,e.expression.end,qe,e),Qe(),Q(e.caseBlock)}(t);case 226:return function(e){Q(e.label),de(56,e.label.end,qe,e),Qe(),Q(e.statement)}(t);case 227:return function(e){de(100,e.pos,He,e),Oe(e.expression),O()}(t);case 228:return function(e){de(102,e.pos,He,e),Qe(),Q(e.tryBlock),e.catchClause&&(it(e),Q(e.catchClause)),e.finallyBlock&&(it(e),de(87,(e.catchClause||e.tryBlock).end,He,e),Qe(),Q(e.finallyBlock))}(t);case 229:return function(e){tt(78,e.pos,He),O()}(t);case 230:return function(e){Q(e.name),we(e.type),Fe(e.initializer,e.type?e.type.end:e.name.end,e)}(t);case 231:return function(t){He(e.isLet(t)?"let":e.isConst(t)?"const":"var"),Qe(),Je(t,t.declarations,272)}(t);case 232:return function(e){pe(e)}(t);case 233:return function(e){be(e)}(t);case 234:return function(e){Le(e,e.decorators),Pe(e,e.modifiers),He("interface"),Qe(),Q(e.name),Be(e,e.typeParameters),Je(e,e.heritageClauses,256),Qe(),qe("{"),Je(e,e.members,65),qe("}")}(t);case 235:return function(e){Le(e,e.decorators),Pe(e,e.modifiers),He("type"),Qe(),Q(e.name),Be(e,e.typeParameters),Qe(),qe("="),Qe(),Q(e.type),O()}(t);case 236:return function(e){Pe(e,e.modifiers),He("enum"),Qe(),Q(e.name),Qe(),qe("{"),Je(e,e.members,81),qe("}")}(t);case 237:return function(e){Pe(e,e.modifiers),512&~e.flags&&(He(16&e.flags?"namespace":"module"),Qe()),Q(e.name);for(var t=e.body;237===t.kind;)qe("."),Q(t.name),t=t.body;Qe(),Q(t)}(t);case 238:return function(e){yt(e),ue(e,pt(e)),ht(e)}(t);case 239:return function(e){de(17,e.pos,qe,e),Je(e,e.clauses,65),de(18,e.clauses.end,qe,e,!0)}(t);case 240:return function(e){var t=de(84,e.pos,He,e);Qe(),t=de(118,t,He,e),Qe(),t=de(130,t,He,e),Qe(),Q(e.name),O()}(t);case 241:return function(e){Pe(e,e.modifiers),de(91,e.modifiers?e.modifiers.end:e.pos,He,e),Qe(),Q(e.name),Qe(),de(58,e.name.end,qe,e),Qe(),function(e){71===e.kind?$(e):Q(e)}(e.moduleReference),O()}(t);case 242:return function(e){Pe(e,e.modifiers),de(91,e.modifiers?e.modifiers.end:e.pos,He,e),Qe(),e.importClause&&(Q(e.importClause),Qe(),de(142,e.importClause.end,He,e),Qe()),$(e.moduleSpecifier),O()}(t);case 243:return function(e){Q(e.name),e.name&&e.namedBindings&&(de(26,e.name.end,qe,e),Qe()),Q(e.namedBindings)}(t);case 244:return function(e){var t=de(39,e.pos,qe,e);Qe(),de(118,t,He,e),Qe(),Q(e.name)}(t);case 245:return function(e){xe(e)}(t);case 246:return function(e){ke(e)}(t);case 247:return function(e){var t=de(84,e.pos,He,e);Qe(),e.isExportEquals?de(58,t,Ge,e):de(79,t,He,e),Qe(),$(e.expression),O()}(t);case 248:return function(e){var t=de(84,e.pos,He,e);Qe(),e.exportClause?Q(e.exportClause):t=de(39,t,qe,e),e.moduleSpecifier&&(Qe(),de(142,e.exportClause?e.exportClause.end:t,He,e),Qe(),$(e.moduleSpecifier)),O()}(t);case 249:return function(e){xe(e)}(t);case 250:return function(e){ke(e)}(t);case 251:return;case 252:return function(e){He("require"),qe("("),$(e.expression),qe(")")}(t);case 10:return function(e){I(),d.writeLiteral(mt(e,!0))}(t);case 255:case 258:return function(t){qe("<"),e.isJsxOpeningElement(t)&&(Se(t.tagName),t.attributes.properties&&t.attributes.properties.length>0&&(Qe(),Q(t.attributes))),qe(">")}(t);case 256:case 259:return function(t){qe("</"),e.isJsxClosingElement(t)&&Se(t.tagName),qe(">")}(t);case 260:return function(e){Q(e.name),function(e,t,n,r){n&&(qe("="),r(n))}(0,0,e.initializer,Q)}(t);case 261:return function(e){Je(e,e.properties,131328)}(t);case 262:return function(e){qe("{..."),$(e.expression),qe("}")}(t);case 263:return function(e){e.expression&&(qe("{"),X(e.dotDotDotToken),$(e.expression),qe("}"))}(t);case 264:return function(e){de(73,e.pos,He,e),Qe(),$(e.expression),De(e,e.statements,e.expression.end)}(t);case 265:return function(e){var t=de(79,e.pos,He,e);De(e,e.statements,t)}(t);case 266:return function(e){Qe(),rt(e.token,He),Qe(),Je(e,e.types,272)}(t);case 267:return function(e){var t=de(74,e.pos,He,e);Qe(),e.variableDeclaration&&(de(19,t,qe,e),Q(e.variableDeclaration),de(20,e.variableDeclaration.end,qe,e),Qe()),Q(e.block)}(t);case 268:return function(t){Q(t.name),qe(":"),Qe();var n=t.initializer;if(P&&0==(512&e.getEmitFlags(n))){var r=e.getCommentRange(n);P(r.pos)}$(n)}(t);case 269:return function(e){Q(e.name),e.objectAssignmentInitializer&&(Qe(),qe("="),Qe(),$(e.objectAssignmentInitializer))}(t);case 270:return function(e){e.expression&&(qe("..."),$(e.expression))}(t);case 271:return function(e){Q(e.name),Fe(e.initializer,e.name.end,e)}(t)}var r;if(e.isExpression(t))return re(ie(1,t));e.isToken(t)&&nt(t,qe)}}(n)}}function re(n){switch(n.kind){case 8:return function(e){oe(e)}(n);case 9:case 12:case 13:return oe(n);case 71:return se(n);case 86:case 95:case 97:case 101:case 99:case 91:return void nt(n,He);case 181:return function(e){Ke(e,e.elements,4466|(e.multiLine?32768:0))}(n);case 182:return function(t){var n=65536&e.getEmitFlags(t);n&&Ze(),Je(t,t.properties,263122|(i.languageVersion>=1?32:0)|(t.multiLine?32768:0)),n&&et()}(n);case 183:return function(n){var r=!1,a=!1;if(!(131072&e.getEmitFlags(n))){var o=n.expression.end,s=e.skipTrivia(i.text,n.expression.end)+1,c=e.createToken(23);c.pos=o,c.end=s,r=dt(n,n.expression,c),a=dt(n,c,n.name)}$(n.expression),ot(r),!r&&function(n){if(n=e.skipPartiallyEmittedExpressions(n),e.isNumericLiteral(n)){var r=gt(n);return!n.numericLiteralFlags&&!e.stringContains(r,e.tokenToString(23))}if(e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n)){var i=e.getConstantValue(n);return"number"==typeof i&&isFinite(i)&&Math.floor(i)===i&&t.removeComments}}(n.expression)&&qe("."),de(23,n.expression.end,qe,n),ot(a),Q(n.name),st(r,a)}(n);case 184:return function(e){$(e.expression);var t=de(21,e.expression.end,qe,e);$(e.argumentExpression),de(22,e.argumentExpression?e.argumentExpression.end:t,qe,e)}(n);case 185:return function(e){$(e.expression),Re(e,e.typeArguments),Ke(e,e.arguments,1296)}(n);case 186:return function(e){de(94,e.pos,He,e),Qe(),$(e.expression),Re(e,e.typeArguments),Ke(e,e.arguments,9488)}(n);case 187:return function(e){$(e.tag),Qe(),$(e.template)}(n);case 188:return function(e){qe("<"),Q(e.type),qe(">"),$(e.expression)}(n);case 189:return function(e){var t=de(19,e.pos,qe,e);$(e.expression),de(20,e.expression?e.expression.end:t,qe,e)}(n);case 190:return function(e){pe(e)}(n);case 191:return function(e){Le(e,e.decorators),Pe(e,e.modifiers),me(e,ce)}(n);case 192:return function(e){de(80,e.pos,He,e),Qe(),$(e.expression)}(n);case 193:return function(e){de(103,e.pos,He,e),Qe(),$(e.expression)}(n);case 194:return function(e){de(105,e.pos,He,e),Qe(),$(e.expression)}(n);case 195:return function(e){de(121,e.pos,He,e),Qe(),$(e.expression)}(n);case 196:return function(e){rt(e.operator,Ge),function(e){var t=e.operand;return 196===t.kind&&(37===e.operator&&(37===t.operator||43===t.operator)||38===e.operator&&(38===t.operator||44===t.operator))}(e)&&Qe(),$(e.operand)}(n);case 197:return function(e){$(e.operand),rt(e.operator,Ge)}(n);case 198:return function(e){var t=26!==e.operatorToken.kind,n=dt(e,e.left,e.operatorToken),r=dt(e,e.operatorToken,e.right);$(e.left),ot(n,t?" ":void 0),w(e.operatorToken.pos),nt(e.operatorToken,Ge),P(e.operatorToken.end,!0),ot(r," "),$(e.right),st(n,r)}(n);case 199:return function(e){var t=dt(e,e.condition,e.questionToken),n=dt(e,e.questionToken,e.whenTrue),r=dt(e,e.whenTrue,e.colonToken),i=dt(e,e.colonToken,e.whenFalse);$(e.condition),ot(t," "),Q(e.questionToken),ot(n," "),$(e.whenTrue),st(t,n),ot(r," "),Q(e.colonToken),ot(i," "),$(e.whenFalse),st(r,i)}(n);case 200:return function(e){Q(e.head),Je(e,e.templateSpans,131072)}(n);case 201:return function(e){de(116,e.pos,He,e),Q(e.asteriskToken),Oe(e.expression)}(n);case 202:return function(e){qe("..."),$(e.expression)}(n);case 203:return function(e){be(e)}(n);case 204:return;case 206:return function(e){$(e.expression),e.type&&(Qe(),He("as"),Qe(),Q(e.type))}(n);case 207:return function(e){$(e.expression),Ge("!")}(n);case 208:return function(e){tt(e.keywordToken,e.pos,qe),qe("."),Q(e.name)}(n);case 253:return function(e){Q(e.openingElement),Je(e,e.children,131072),Q(e.closingElement)}(n);case 254:return function(e){qe("<"),Se(e.tagName),Qe(),e.attributes.properties&&e.attributes.properties.length>0&&Q(e.attributes),qe("/>")}(n);case 257:return function(e){Q(e.openingFragment),Je(e,e.children,131072),Q(e.closingFragment)}(n);case 295:return function(e){$(e.expression)}(n);case 296:return function(e){Ke(e,e.elements,272)}(n)}}function ie(e,t){return t&&x&&x(e,t)||t}function ae(e){v&&v(e,at)}function oe(n){var r,i=gt(n);!t.sourceMap&&!t.inlineSourceMap||9!==n.kind&&!e.isTemplateLiteralKind(n.kind)?function(e){I(),d.writeStringLiteral(e)}(i):(r=i,I(),d.writeLiteral(r))}function se(e){(e.symbol?function(e,t){I(),d.writeSymbol(e,t)}:F)(mt(e,!1),e.symbol),Je(e,e.typeArguments,26896)}function ce(e){Be(e,e.typeParameters),je(e,e.parameters),we(e.type),Qe(),Q(e.equalsGreaterThanToken)}function ue(t,n){de(17,t.pos,qe,t);var r=n||1&e.getEmitFlags(t)?384:65;Je(t,t.statements,r),de(18,t.statements.end,qe,t,!!(1&r))}function le(e,t){var n=de(106,t,He,e);Qe(),de(19,n,qe,e),$(e.expression),de(20,e.expression.end,qe,e)}function _e(e){void 0!==e&&(231===e.kind?Q(e):$(e))}function de(t,n,r,a,o){var s=a&&e.getParseTreeNode(a),c=s&&s.kind===a.kind,u=n;if(c&&(n=e.skipTrivia(i.text,n)),w&&c){var l=o&&!e.positionsAreOnSameLine(u,n,i);l&&Ze(),w(u),l&&et()}return n=rt(t,r,n),P&&c&&P(n,!0),n}function pe(e){Le(e,e.decorators),Pe(e,e.modifiers),He("function"),X(e.asteriskToken),Qe(),Y(e.name),me(e,ge)}function fe(e,t){ye(t)}function me(t,n){var r=t.body;if(r)if(e.isBlock(r)){var i=65536&e.getEmitFlags(t);i&&Ze(),yt(t),n(t),h?h(4,r,fe):ye(r),ht(t),i&&et()}else n(t),Qe(),$(r);else n(t),O()}function ge(e){Be(e,e.typeParameters),ze(e,e.parameters),we(e.type)}function ye(t){Qe(),qe("{"),Ze();var n=function(t){if(1&e.getEmitFlags(t))return!0;if(t.multiLine)return!1;if(!e.nodeIsSynthesized(t)&&!e.rangeIsOnSingleLine(t,i))return!1;if(ct(t,t.statements,2)||lt(t,t.statements,2))return!1;for(var n,r=0,a=t.statements;r<a.length;r++){var o=a[r];if(ut(n,o,2))return!1;n=o}return!0}(t)?he:ve;A?A(t,t.statements,n):n(t),et(),tt(18,t.statements.end,qe,t)}function he(e){ve(e,!0)}function ve(e,t){var n=Te(e.statements,!0),r=d.getTextPos();ae(e),0===n&&r===d.getTextPos()&&t?(et(),Je(e,e.statements,384),Ze()):Je(e,e.statements,1,n)}function be(t){Le(t,t.decorators),Pe(t,t.modifiers),He("class"),t.name&&(Qe(),Y(t.name));var n=65536&e.getEmitFlags(t);n&&Ze(),Be(t,t.typeParameters),Je(t,t.heritageClauses,256),Qe(),qe("{"),Je(t,t.members,65),qe("}"),n&&et()}function xe(e){qe("{"),Je(e,e.elements,432),qe("}")}function ke(e){e.propertyName&&(Q(e.propertyName),Qe(),de(118,e.propertyName.end,He,e),Qe()),Q(e.name)}function Se(e){71===e.kind?$(e):Q(e)}function De(t,n,r){var a=81985;1===n.length&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(n[0])||e.rangeStartPositionsAreOnSameLine(t,n[0],i))?(tt(56,r,qe,t),Qe(),a&=-66):de(56,r,qe,t),Je(t,n,a)}function Ce(t){var n=t.statements;yt(t),ae(t);var r=e.findIndex(n,function(t){return!e.isPrologueDirective(t)});Je(t,n,1,-1===r?n.length:r),ht(t)}function Te(t,n,r){for(var i=0;i<t.length;i++){var a=t[i];if(!e.isPrologueDirective(a))return i;(!r||!r.has(a.expression.text))&&((n||i>0)&&$e(),Q(a),r&&r.set(a.expression.text,!0))}return t.length}function Ee(t){if(e.isSourceFile(t))W(t),Te(t.statements);else for(var n=e.createMap(),r=0,i=t.sourceFiles;r<i.length;r++){var a=i[r];W(a),Te(a.statements,!0,n)}}function Ne(t){if(e.isSourceFile(t)){var n=e.getShebang(t.text);if(n)return F(n),$e(),!0}else for(var r=0,i=t.sourceFiles;r<i.length&&!Ne(i[r]);r++);}function Ae(e,t){var n=F;F=t,Q(e),F=n}function Pe(e,t){t&&t.length&&(Je(e,t,131328),Qe())}function we(e){e&&(qe(":"),Qe(),Q(e))}function Fe(e,t,n){e&&(Qe(),de(58,t,Ge,n),Qe(),$(e))}function Ie(e){e&&(Qe(),Q(e))}function Oe(e){e&&(Qe(),$(e))}function Me(t,n){e.isBlock(n)||1&e.getEmitFlags(t)?(Qe(),Q(n)):($e(),Ze(),Q(n),et())}function Le(e,t){Je(e,t,24577)}function Re(e,t){Je(e,t,26896)}function Be(t,n){if(e.isFunctionLike(t)&&t.typeArguments)return Re(t,t.typeArguments);Je(t,n,26896)}function ze(e,t){Je(e,t,1296)}function je(t,n){!function(t,n){var r=e.singleOrUndefined(n);return r&&r.pos===t.pos&&!(e.isArrowFunction(t)&&t.type)&&!e.some(t.decorators)&&!e.some(t.modifiers)&&!e.some(t.typeParameters)&&!e.some(r.decorators)&&!e.some(r.modifiers)&&!r.dotDotDotToken&&!r.questionToken&&!r.type&&!r.initializer&&e.isIdentifier(r.name)}(t,n)?ze(t,n):Je(t,n,272)}function Je(e,t,n,r,i){Ve(Q,e,t,n,r,i)}function Ke(e,t,n,r,i){Ve($,e,t,n,r,i)}function Ue(e){switch(28&e){case 0:break;case 16:qe(",");break;case 4:Qe(),qe("|");break;case 8:Qe(),qe("&")}}function Ve(t,r,i,a,o,s){void 0===o&&(o=0),void 0===s&&(s=i?i.length-o:0);var c=void 0===i;if(!(c&&8192&a)){var u=c||o>=i.length||0===s;if(u&&16384&a)return k&&k(i),void(S&&S(i));if(7680&a&&(qe(function(e){return n[7680&e][0]}(a)),u&&P(i.pos,!0)),k&&k(i),u)1&a?$e():128&a&&!(262144&a)&&Qe();else{var l=0==(131072&a),_=l;ct(r,i,a)?($e(),_=!1):128&a&&Qe(),64&a&&Ze();for(var d=void 0,p=void 0,f=0;f<s;f++){var m=i[o+f];if(d&&(28&a&&d.end!==r.end&&w(d.end),Ue(a),ut(d,m,a)?(0==(67&a)&&(Ze(),p=!0),$e(),_=!1):d&&256&a&&Qe()),_){if(P){var g=e.getCommentRange(m);P(g.pos)}}else _=l;t(m),p&&(et(),p=!1),d=m}16&a&&32&a&&i.hasTrailingComma&&qe(","),d&&28&a&&d.end!==r.end&&!(1024&e.getEmitFlags(d))&&w(d.end),64&a&&et(),lt(r,i,a)?$e():128&a&&Qe()}S&&S(i),7680&a&&(u&&w(i.end),qe(function(e){return n[7680&e][1]}(a)))}}function qe(e){I(),d.writePunctuation(e)}function We(){d.writePunctuation(";")}function He(e){I(),d.writeKeyword(e)}function Ge(e){I(),d.writeOperator(e)}function Xe(e){I(),d.writeParameter(e)}function Qe(){I(),d.writeSpace(" ")}function Ye(e){I(),d.writeProperty(e)}function $e(){I(),d.writeLine()}function Ze(){I(),d.increaseIndent()}function et(){I(),d.decreaseIndent()}function tt(e,t,n,r){return g?g(r,e,n,t,rt):rt(e,n,t)}function nt(t,n){D&&D(t),n(e.tokenToString(t.kind)),C&&C(t)}function rt(t,n,r){var i=e.tokenToString(t);return n(i),r<0?r:r+i.length}function it(t){1&e.getEmitFlags(t)?Qe():$e()}function at(t){for(var n=t.split(/\r\n?|\n/g),r=function(t){for(var n,r=0,i=t;r<i.length;r++)for(var a=i[r],o=0;o<a.length&&(void 0===n||o<n);o++)if(!e.isWhiteSpaceLike(a.charCodeAt(o))&&(void 0===n||o<n)){n=o;break}return n}(n),i=0,a=n;i<a.length;i++){var o=a[i],s=r?o.slice(r):o;s.length&&($e(),F(s),$e())}}function ot(e,t){e?(Ze(),$e()):t&&F(t)}function st(e,t){e&&et(),t&&et()}function ct(t,n,r){if(1&r)return!0;if(2&r){if(32768&r)return!0;var a=n[0];return void 0===a?!e.rangeIsOnSingleLine(t,i):e.positionIsSynthesized(t.pos)||e.nodeIsSynthesized(a)?_t(a,r):!e.rangeStartPositionsAreOnSameLine(t,a,i)}return!1}function ut(t,n,r){return!!(1&r)||(2&r?void 0!==t&&void 0!==n&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(n)?_t(t,r)||_t(n,r):!e.rangeEndIsOnSameLineAsRangeStart(t,n,i)):e.getStartsOnNewLine(n))}function lt(t,n,r){if(1&r)return 0==(65536&r);if(2&r){if(32768&r)return!0;var a=e.lastOrUndefined(n);return void 0===a?!e.rangeIsOnSingleLine(t,i):e.positionIsSynthesized(t.pos)||e.nodeIsSynthesized(a)?_t(a,r):!e.rangeEndPositionsAreOnSameLine(t,a,i)}return!1}function _t(t,n){if(e.nodeIsSynthesized(t)){var r=e.getStartsOnNewLine(t);return void 0===r?0!=(32768&n):r}return 0!=(32768&n)}function dt(t,n,r){return t=ft(t),n=ft(n),r=ft(r),!!e.getStartsOnNewLine(r)||!(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(n)||e.nodeIsSynthesized(r)||e.rangeEndIsOnSameLineAsRangeStart(n,r,i))}function pt(t){return 0===t.statements.length&&e.rangeEndIsOnSameLineAsRangeStart(t,t,i)}function ft(t){for(;189===t.kind&&e.nodeIsSynthesized(t);)t=t.expression;return t}function mt(t,n){return e.isGeneratedIdentifier(t)?function(t){if(4==(7&t.autoGenerateFlags)){if(8&t.autoGenerateFlags){var n=u;ht(void 0);var r=bt(Dt(t));return yt(void 0),u=n,r}return bt(Dt(t))}var i=t.autoGenerateId;return o[i]||(o[i]=function(t){switch(7&t.autoGenerateFlags){case 1:return kt(0,!!(16&t.autoGenerateFlags));case 2:return kt(268435456,!!(16&t.autoGenerateFlags));case 3:return St(e.idText(t))}e.Debug.fail("Unsupported GeneratedIdentifierKind.")}(t))}(t):!e.isIdentifier(t)||!e.nodeIsSynthesized(t)&&t.parent?9===t.kind&&t.textSourceNode?mt(t.textSourceNode,n):!e.isLiteralExpression(t)||!e.nodeIsSynthesized(t)&&t.parent?e.getSourceTextOfNodeFromSourceFile(i,t,n):t.text:e.idText(t)}function gt(t){if(9===t.kind&&t.textSourceNode){var n=t.textSourceNode;return e.isIdentifier(n)?16777216&e.getEmitFlags(t)?'"'+e.escapeString(mt(n))+'"':'"'+e.escapeNonAsciiString(mt(n))+'"':gt(n)}return e.getLiteralText(t,i)}function yt(t){t&&524288&e.getEmitFlags(t)||(c.push(u),u=0,l.push(_))}function ht(t){t&&524288&e.getEmitFlags(t)||(u=c.pop(),_=l.pop())}function vt(t){_&&_!==e.lastOrUndefined(l)||(_=e.createMap()),_.set(t,!0)}function bt(t){var n=e.getNodeId(t);return a[n]||(a[n]=function(t){switch(t.kind){case 71:return St(mt(t));case 237:case 236:return function(t){var n=mt(t.name);return function(t,n){for(var r=n;e.isNodeDescendantOf(r,n);r=r.nextContainer)if(r.locals){var i=r.locals.get(e.escapeLeadingUnderscores(t));if(i&&70362047&i.flags)return!1}return!0}(n,t)?n:St(n)}(t);case 242:case 248:return function(t){var n=e.getExternalModuleName(t);return St(e.isStringLiteral(n)?e.makeIdentifierFromModuleName(n.text):"module")}(t);case 232:case 233:case 247:return St("default");case 203:return St("class");case 153:case 155:case 156:return function(t){return e.isIdentifier(t.name)?bt(t.name):kt(0)}(t);default:return kt(0)}}(t))}function xt(e){return!(f&&f(e)||i.identifiers.has(e)||s.has(e)||_&&_.has(e))}function kt(e,t){if(e&&!(u&e)&&xt(n=268435456===e?"_i":"_n"))return u|=e,t&&vt(n),n;for(;;){var n,r=268435455&u;if(u++,8!==r&&13!==r&&xt(n=r<26?"_"+String.fromCharCode(97+r):"_"+(r-26)))return t&&vt(n),n}}function St(e){95!==e.charCodeAt(e.length-1)&&(e+="_");for(var t=1;;){var n=e+t;if(xt(n))return s.set(n,!0),n;t++}}function Dt(t){for(var n=t.autoGenerateId,r=t,i=r.original;i&&(!e.isIdentifier(r=i)||4!==r.autoGenerateFlags||r.autoGenerateId===n);)i=r.original;return r}}e.forEachEmittedFile=r,e.emitFiles=function(t,n,i,a,s){var c,u,l,_=n.getCompilerOptions(),d=e.getEmitModuleKind(_),p=_.sourceMap||_.inlineSourceMap?[]:void 0,f=_.listEmittedFiles?[]:void 0,m=e.createDiagnosticCollection(),g=n.getNewLine(),y=e.createTextWriter(g),h=e.createSourceMapWriter(n,y),v=!1,b=e.getSourceFilesToEmit(n,i),x=e.transformNodes(t,n,_,b,s,!1),k=o(_,{hasGlobalName:t.hasGlobalName,onEmitNode:x.emitNodeWithNotification,substituteNode:x.substituteNode,onEmitSourceMapOfNode:h.emitNodeWithSourceMap,onEmitSourceMapOfToken:h.emitTokenWithSourceMap,onEmitSourceMapOfPosition:h.emitPos,onEmitHelpers:function(t,n){var r=!1,i=273===t.kind?t:void 0;if(!i||d!==e.ModuleKind.None){for(var a=i?i.sourceFiles.length:1,o=0;o<a;o++){var s=i?i.sourceFiles[o]:t,p=e.isSourceFile(s)?s:c,f=_.noEmitHelpers||void 0!==e.getExternalHelpersModuleName(p),m=e.isSourceFile(s)&&!l,g=e.getEmitHelpers(s);if(g)for(var y=0,h=e.stableSort(g,e.compareEmitHelpers);y<h.length;y++){var v=h[y];if(v.scoped){if(i)continue}else{if(f)continue;if(m){if(u.get(v.name))continue;u.set(v.name,!0)}}n(v.text),r=!0}}return r}},onSetSourceFile:function(e){c=e,h.setSourceFile(e)}});return e.performance.mark("beforePrint"),r(n,function(r,i){var o=r.jsFilePath,s=r.sourceMapFilePath,d=r.declarationFilePath;n.isEmitBlocked(o)||_.noEmit||_.emitDeclarationOnly?v=!0:a||function(t,r,i){var a=273===i.kind?i:void 0,o=272===i.kind?i:void 0,s=a?a.sourceFiles:[o];h.initialize(t,r,i),a?(u=e.createMap(),l=!1,k.writeBundle(a,y)):(l=!0,k.writeFile(o,y)),y.writeLine();var d=h.getSourceMappingURL();d&&y.write("//# sourceMappingURL="+d),_.sourceMap&&!_.inlineSourceMap&&e.writeFile(n,m,r,h.getText(),!1,s),p&&p.push(h.getSourceMapData()),e.writeFile(n,m,t,y.getText(),_.emitBOM,s),h.reset(),y.clear(),c=void 0,u=void 0,l=!1}(o,s,i),d&&(v=e.writeDeclarationFile(d,function(t){return 273===t.kind?e.updateBundle(t,e.sameMap(t.sourceFiles,e.getOriginalSourceFile)):e.getOriginalSourceFile(t)}(i),n,t,m,a)||v),!v&&f&&(a||f.push(o),s&&f.push(s),d&&f.push(d))},x.transformed,a),e.performance.measure("printTime","beforePrint"),x.dispose(),{emitSkipped:v,diagnostics:m.getDiagnostics(),emittedFiles:f,sourceMaps:p}},e.createPrinter=o,function(e){e[e.Auto=0]="Auto",e[e.CountMask=268435455]="CountMask",e[e._i=268435456]="_i"}(t||(t={}))}(l||(l={})),function(e){var t,n=/(^\s*$)|(^\s*\/\/\/?\s*(@ts-ignore)?)/;function r(t,n){var r=e.getDirectoryPath(n),i=e.isRootedDiskPath(t)?t:e.combinePaths(r,t);return e.normalizePath(i)}function i(t,n,r){var i;return e.forEach(t,function(t){var a=e.getNormalizedPathComponents(t,n);if(a.pop(),i){for(var o=Math.min(i.length,a.length),s=0;s<o;s++)if(r(i[s])!==r(a[s])){if(0===s)return!0;i.length=s;break}a.length<i.length&&(i.length=a.length)}else i=a})?"":i?e.getNormalizedPathFromPathComponents(i):n}function a(t,n){var r,i=e.createMap();function a(){return e.getDirectoryPath(e.normalizePath(e.sys.getExecutingFilePath()))}var o=e.getNewLineCharacter(t),s=e.sys.realpath&&function(t){return e.sys.realpath(t)};return{getSourceFile:function(r,i,a){var o;try{e.performance.mark("beforeIORead"),o=e.sys.readFile(r,t.charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){a&&a(e.message),o=""}return void 0!==o?e.createSourceFile(r,o,i,n):void 0},getDefaultLibLocation:a,getDefaultLibFileName:function(t){return e.combinePaths(a(),e.getDefaultLibFileName(t))},writeFile:function(n,a,o,s){try{e.performance.mark("beforeIOWrite"),function t(n){n.length>e.getRootLength(n)&&!function(t){return!!i.has(t)||!!e.sys.directoryExists(t)&&(i.set(t,!0),!0)}(n)&&(t(e.getDirectoryPath(n)),e.sys.createDirectory(n))}(e.getDirectoryPath(e.normalizePath(n))),e.isWatchSet(t)&&e.sys.createHash&&e.sys.getModifiedTime?function(t,n,i){r||(r=e.createMap());var a=e.sys.createHash(n),o=e.sys.getModifiedTime(t);if(o){var s=r.get(t);if(s&&s.byteOrderMark===i&&s.hash===a&&s.mtime.getTime()===o.getTime())return}e.sys.writeFile(t,n,i);var c=e.sys.getModifiedTime(t);r.set(t,{hash:a,byteOrderMark:i,mtime:c})}(n,a,o):e.sys.writeFile(n,a,o),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){s&&s(e.message)}},getCurrentDirectory:e.memoize(function(){return e.sys.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return e.sys.useCaseSensitiveFileNames},getCanonicalFileName:function(t){return e.sys.useCaseSensitiveFileNames?t:t.toLowerCase()},getNewLine:function(){return o},fileExists:function(t){return e.sys.fileExists(t)},readFile:function(t){return e.sys.readFile(t)},trace:function(t){return e.sys.write(t+o)},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:s}}function o(t,n){var r=e.diagnosticCategoryName(t)+" TS"+t.code+": "+_(t.messageText,n.getNewLine())+n.getNewLine();if(t.file){var i=e.getLineAndCharacterOfPosition(t.file,t.start),a=i.line,o=i.character;return e.convertToRelativePath(t.file.fileName,n.getCurrentDirectory(),function(e){return n.getCanonicalFileName(e)})+"("+(a+1)+","+(o+1)+"): "+r}return r}e.findConfigFile=function(t,n,r){return void 0===r&&(r="tsconfig.json"),e.forEachAncestorDirectory(t,function(t){var i=e.combinePaths(t,r);return n(i)?i:void 0})},e.resolveTripleslashReference=r,e.computeCommonSourceDirectoryOfFilenames=i,e.createCompilerHost=a,e.getPreEmitDiagnostics=function(t,n,r){var i=t.getOptionsDiagnostics(r).concat(t.getSyntacticDiagnostics(n,r),t.getGlobalDiagnostics(r),t.getSemanticDiagnostics(n,r));return t.getCompilerOptions().declaration&&e.addRange(i,t.getDeclarationDiagnostics(n,r)),e.sortAndDeduplicateDiagnostics(i)},e.formatDiagnostics=function(e,t){for(var n="",r=0,i=e;r<i.length;r++)n+=o(i[r],t);return n},e.formatDiagnostic=o,function(e){e.Grey="\x1b[90m",e.Red="\x1b[91m",e.Yellow="\x1b[93m",e.Blue="\x1b[94m",e.Cyan="\x1b[96m"}(t=e.ForegroundColorEscapeSequences||(e.ForegroundColorEscapeSequences={}));var s="\x1b[0m";function c(n){switch(n){case e.DiagnosticCategory.Error:return t.Red;case e.DiagnosticCategory.Warning:return t.Yellow;case e.DiagnosticCategory.Suggestion:return e.Debug.fail("Should never get an Info diagnostic on the command line.");case e.DiagnosticCategory.Message:return t.Blue}}function u(e,t){return t+e+s}function l(e,t){for(;e.length<t;)e=" "+e;return e}function _(t,n){if(e.isString(t))return t;for(var r=t,i="",a=0;r;){if(a){i+=n;for(var o=0;o<a;o++)i+=" "}i+=r.messageText,a++,r=r.next}return i}function d(t,n,r){if(0===t.length)return[];for(var i=[],a=e.createMap(),o=0,s=t;o<s.length;o++){var c=s[o],u=void 0;a.has(c)?u=a.get(c):a.set(c,u=r(c,n)),i.push(u)}return i}function p(t,n){switch(n.extension){case".ts":case".d.ts":return;case".tsx":return r();case".jsx":return r()||i();case".js":return i()}function r(){return t.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function i(){return t.allowJs||!e.getStrictOptionValue(t,"noImplicitAny")?void 0:e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function f(t){return e.Debug.assert(t.every(function(e){return void 0!==e}),"A name is undefined.",function(){return JSON.stringify(t)}),t}function m(e){for(var t=e.moduleAugmentations,n=e.imports.map(function(e){return e.text}),r=0,i=t;r<i.length;r++){var a=i[r];9===a.kind&&n.push(a.text)}return n}e.formatColorAndReset=u,e.formatDiagnosticsWithColorAndContext=function(n,r){for(var i="",a=0,o=n;a<o.length;a++){var d=o[a],p="";if(d.file){var f=d.start,m=d.length,g=d.file,y=e.getLineAndCharacterOfPosition(g,f),h=y.line,v=y.character,b=e.getLineAndCharacterOfPosition(g,f+m),x=b.line,k=b.character,S=e.getLineAndCharacterOfPosition(g,g.text.length).line,D=r?e.convertToRelativePath(g.fileName,r.getCurrentDirectory(),function(e){return r.getCanonicalFileName(e)}):g.fileName,C=x-h>=4,T=(x+1+"").length;C&&(T=Math.max("...".length,T));for(var E=h;E<=x;E++){p+=r.getNewLine(),C&&h+1<E&&E<x-1&&(p+=u(l("...",T),"\x1b[30;47m")+" "+r.getNewLine(),E=x-1);var N=e.getPositionOfLineAndCharacter(g,E,0),A=E<S?e.getPositionOfLineAndCharacter(g,E+1,0):g.text.length,P=g.text.slice(N,A);if(P=(P=P.replace(/\s+$/g,"")).replace("\t"," "),p+=u(l(E+1+"",T),"\x1b[30;47m")+" ",p+=P+r.getNewLine(),p+=u(l("",T),"\x1b[30;47m")+" ",p+=t.Red,E===h){var w=E===x?k:void 0;p+=P.slice(0,v).replace(/\S/g," "),p+=P.slice(v,w).replace(/./g,"~")}else p+=E===x?P.slice(0,k).replace(/./g,"~"):P.replace(/./g,"~");p+=s}i+=u(D,t.Cyan),i+=":",i+=u(""+(h+1),t.Yellow),i+=":",i+=u(""+(v+1),t.Yellow),i+=" - "}i+=u(e.diagnosticCategoryName(d),c(d.category)),i+=u(" TS"+d.code+": ",t.Grey),i+=_(d.messageText,r.getNewLine()),d.file&&(i+=r.getNewLine(),i+=p),i+=r.getNewLine()}return i+r.getNewLine()},e.flattenDiagnosticMessageText=_,e.isProgramUptoDate=function(t,n,r,i,a,o,s){if(!t||s)return!1;if(t.getRootFileNames().length!==n.length)return!1;if(t.getSourceFiles().some(function(e){return e.version!==i(e.path)||o(e.path)}))return!1;if(t.getMissingFilePaths().some(a))return!1;var c=t.getCompilerOptions();return!(!e.compareDataObjects(c,r)||c.configFile&&r.configFile&&c.configFile.text!==r.configFile.text)},e.createProgram=function(t,o,s,c){var u,l,_,g,y,h,v=[],b={},x={},k=e.createMap(),S=e.createDiagnosticCollection(),D="number"==typeof o.maxNodeModuleJsDepth?o.maxNodeModuleJsDepth:0,C=0,T=e.createMap(),E=e.createMap();e.performance.mark("beforeProgram"),s=s||a(o);var N,A,P,w,F=o.noLib,I=e.memoize(function(){return s.getDefaultLibFileName(o)}),O=s.getDefaultLibLocation?s.getDefaultLibLocation():e.getDirectoryPath(I()),M=e.createDiagnosticCollection(),L=s.getCurrentDirectory(),R=e.getSupportedExtensions(o),B=e.createMap(),z=s.hasInvalidatedResolution||e.returnFalse;if(s.resolveModuleNames)P=function(t,n,r){return s.resolveModuleNames(f(t),n,r).map(function(t){if(!t||void 0!==t.extension)return t;var n=e.clone(t);return n.extension=e.extensionFromPath(t.resolvedFileName),n})};else{A=e.createModuleResolutionCache(L,function(e){return s.getCanonicalFileName(e)});var j=function(t,n){return e.resolveModuleName(t,n,o,s,A).resolvedModule};P=function(e,t){return d(f(e),t,j)}}if(s.resolveTypeReferenceDirectives)w=function(e,t){return s.resolveTypeReferenceDirectives(f(e),t)};else{var J=function(t,n){return e.resolveTypeReferenceDirective(t,n,o,s).resolvedTypeReferenceDirective};w=function(e,t){return d(f(e),t,J)}}var K,U,V,q=e.createMap(),W=e.createMap(),H=e.createMap(),G=e.createMap(),X=s.useCaseSensitiveFileNames()?e.createMap():void 0,Q=(U=o,(V=c&&c.getCompilerOptions())&&(V.target!==U.target||V.module!==U.module||V.moduleResolution!==U.moduleResolution||V.noResolve!==U.noResolve||V.jsx!==U.jsx||V.allowJs!==U.allowJs||V.disableSizeLimit!==U.disableSizeLimit||V.baseUrl!==U.baseUrl||!e.equalOwnProperties(V.paths,U.paths))),Y=function(){if(!c)return 0;var n=c.getCompilerOptions();if(e.changesAffectModuleResolution(n,o))return c.structureIsReused=0;e.Debug.assert(!(3&c.structureIsReused));var r=c.getRootFileNames();if(!e.arrayIsEqualTo(r,t))return c.structureIsReused=0;if(!e.arrayIsEqualTo(o.types,n.types))return c.structureIsReused=0;var i=[],a=[],u=[];if(c.structureIsReused=2,c.getMissingFilePaths().some(function(e){return s.fileExists(e)}))return c.structureIsReused=0;var l,_=c.getSourceFiles();!function(e){e[e.Exists=0]="Exists",e[e.Modified=1]="Modified"}(l||(l={}));for(var d=e.createMap(),p=0,f=_;p<f.length;p++){var g=f[p];if(!(N=s.getSourceFileByPath?s.getSourceFileByPath(g.fileName,g.path,o.target,void 0,Q):s.getSourceFile(g.fileName,o.target,void 0,Q)))return c.structureIsReused=0;e.Debug.assert(!N.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");var y=void 0;if(g.redirectInfo){if(N!==g.redirectInfo.unredirected)return c.structureIsReused=0;y=!1,N=g}else if(c.redirectTargetsSet.has(g.path)){if(N!==g)return c.structureIsReused=0;y=!1}else y=N!==g;N.path=g.path,a.push(N.path);var b=c.sourceFileToPackageName.get(g.path);if(void 0!==b){var x=d.get(b),D=y?1:0;if(void 0!==x&&1===D||1===x)return c.structureIsReused=0;d.set(b,D)}y?(g.hasNoDefaultLib!==N.hasNoDefaultLib&&(c.structureIsReused=1),e.arrayIsEqualTo(g.referencedFiles,N.referencedFiles,Ee)||(c.structureIsReused=1),Ae(N),e.arrayIsEqualTo(g.imports,N.imports,Ne)||(c.structureIsReused=1),e.arrayIsEqualTo(g.moduleAugmentations,N.moduleAugmentations,Ne)||(c.structureIsReused=1),(524288&g.flags)!=(524288&N.flags)&&(c.structureIsReused=1),e.arrayIsEqualTo(g.typeReferenceDirectives,N.typeReferenceDirectives,Ee)||(c.structureIsReused=1),u.push({oldFile:g,newFile:N})):z(g.path)&&(c.structureIsReused=1,u.push({oldFile:g,newFile:N})),i.push(N)}if(2!==c.structureIsReused)return c.structureIsReused;h=u.map(function(e){return e.newFile.path});for(var C=0,T=u;C<T.length;C++){var N,A=T[C],F=(g=A.oldFile,e.getNormalizedAbsolutePath((N=A.newFile).fileName,L));if(P){var I=m(N),O=ce(I,F,N,{program:c,oldSourceFile:g,modifiedFilePaths:h});e.hasChangesInResolutions(I,O,g.resolvedModules,e.moduleResolutionIsEqualTo)?(c.structureIsReused=1,N.resolvedModules=e.zipToMap(I,O)):N.resolvedModules=g.resolvedModules}if(w){var M=e.map(N.typeReferenceDirectives,function(e){return e.fileName});O=w(M,F),e.hasChangesInResolutions(M,O,g.resolvedTypeReferenceDirectiveNames,e.typeDirectiveIsEqualTo)?(c.structureIsReused=1,N.resolvedTypeReferenceDirectiveNames=e.zipToMap(M,O)):N.resolvedTypeReferenceDirectiveNames=g.resolvedTypeReferenceDirectiveNames}}if(2!==c.structureIsReused)return c.structureIsReused;if(s.hasChangedAutomaticTypeDirectiveNames)return c.structureIsReused=1;K=c.getMissingFilePaths();for(var R=0;R<i.length;R++)G.set(a[R],i[R]),c.isSourceFileFromExternalLibrary(c.getSourceFileByPath(a[R]))&&E.set(a[R],!0);v=i,S=c.getFileProcessingDiagnostics();for(var B=0,j=u;B<j.length;B++)S.reattachFileDiagnostics(j[B].newFile);return k=c.getResolvedTypeReferenceDirectives(),W=c.sourceFileToPackageName,H=c.redirectTargetsSet,c.structureIsReused=2}();if(2!==Y){e.forEach(t,function(e){return Te(e,!1)});var $=e.getAutomaticTypeDirectiveNames(o,s);if($.length)for(var Z=o.configFilePath?e.getDirectoryPath(o.configFilePath):s.getCurrentDirectory(),ee=e.combinePaths(Z,"__inferred type names__.ts"),te=w($,ee),ne=0;ne<$.length;ne++)Le($[ne],te[ne]);F||(o.lib?e.forEach(o.lib,function(t){Te(e.combinePaths(O,t),!0)}):Te(I(),!0)),K=e.arrayFrom(G.keys(),function(e){return e}).filter(function(e){return!G.get(e)})}if(e.Debug.assert(!!K),A=void 0,c&&s.onReleaseOldSourceFile)for(var re=0,ie=c.getSourceFiles();re<ie.length;re++){var ae=ie[re];fe(ae.path)&&!Q||s.onReleaseOldSourceFile(ae,c.getCompilerOptions())}return c=void 0,u={getRootFileNames:function(){return t},getSourceFile:fe,getSourceFileByPath:me,getSourceFiles:function(){return v},getMissingFilePaths:function(){return K},getCompilerOptions:function(){return o},getSyntacticDiagnostics:function(e,t){return ge(e,ye,t)},getOptionsDiagnostics:function(){return e.sortAndDeduplicateDiagnostics(e.concatenate(S.getGlobalDiagnostics(),e.concatenate(M.getGlobalDiagnostics(),o.configFile?M.getDiagnostics(o.configFile.fileName):[])))},getGlobalDiagnostics:function(){return e.sortAndDeduplicateDiagnostics(_e().getGlobalDiagnostics().slice())},getSemanticDiagnostics:function(e,t){return ge(e,ve,t)},getDeclarationDiagnostics:function(e,t){var n=u.getCompilerOptions();return!e||n.out||n.outFile?ke(e,t):ge(e,Ce,t)},getTypeChecker:de,getClassifiableNames:function(){if(!y){de(),y=e.createUnderscoreEscapedMap();for(var t=0,n=v;t<n.length;t++)e.copyEntries(n[t].classifiableNames,y)}return y},getDiagnosticsProducingTypeChecker:_e,getCommonSourceDirectory:se,emit:function(t,n,r,i,a){return he(function(){return function(t,n,r,i,a,s){var c=[];if(!a){if(o.noEmit)return{diagnostics:c,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};if(o.noEmitOnError){var u=t.getOptionsDiagnostics(i).concat(t.getSyntacticDiagnostics(n,i),t.getGlobalDiagnostics(i),t.getSemanticDiagnostics(n,i));if(0===u.length&&t.getCompilerOptions().declaration&&(c=t.getDeclarationDiagnostics(void 0,i)),u.length>0||c.length>0)return{diagnostics:e.concatenate(u,c),sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}var l=_e().getEmitResolver(o.outFile||o.out?void 0:n,i);e.performance.mark("beforeEmit");var _=a?[]:e.getTransformers(o,s),d=e.emitFiles(l,ue(r),n,a,_);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),d}(u,t,n,r,i,a)})},getCurrentDirectory:function(){return L},getNodeCount:function(){return _e().getNodeCount()},getIdentifierCount:function(){return _e().getIdentifierCount()},getSymbolCount:function(){return _e().getSymbolCount()},getTypeCount:function(){return _e().getTypeCount()},getFileProcessingDiagnostics:function(){return S},getResolvedTypeReferenceDirectives:function(){return k},isSourceFileFromExternalLibrary:le,isSourceFileDefaultLibrary:function(t){if(t.hasNoDefaultLib)return!0;if(!o.noLib)return!1;var n=s.useCaseSensitiveFileNames()?e.equateStringsCaseSensitive:e.equateStringsCaseInsensitive;return o.lib?e.forEach(o.lib,function(r){return n(t.fileName,e.combinePaths(O,r))}):n(t.fileName,I())},dropDiagnosticsProducingTypeChecker:function(){_=void 0},getSourceFileFromReference:function(e,t){return Pe(r(t.fileName,e.fileName),function(e){return G.get(oe(e))})},sourceFileToPackageName:W,redirectTargetsSet:H,isEmittedFile:function(t){if(o.noEmit)return!1;var n=oe(t);if(me(n))return!1;var r=o.outFile||o.out;if(r)return Xe(n,r)||Xe(n,e.removeFileExtension(r)+".d.ts");if(o.outDir)return e.containsPath(o.outDir,n,L,!s.useCaseSensitiveFileNames());if(e.fileExtensionIsOneOf(n,e.supportedJavascriptExtensions)||e.fileExtensionIs(n,".d.ts")){var i=e.removeFileExtension(n);return!!me(e.combinePaths(i,".ts"))||!!me(e.combinePaths(i,".tsx"))}return!1}},function(){if(o.isolatedModules&&(o.declaration&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declaration","isolatedModules"),o.noEmitOnError&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noEmitOnError","isolatedModules"),o.out&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),o.outFile&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules")),o.inlineSourceMap&&(o.sourceMap&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),o.mapRoot&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),o.paths&&void 0===o.baseUrl&&Ue(e.Diagnostics.Option_paths_cannot_be_used_without_specifying_baseUrl_option,"paths"),o.paths)for(var t in o.paths)if(e.hasProperty(o.paths,t))if(e.hasZeroOrOneAsteriskCharacter(t)||Je(!0,t,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,t),e.isArray(o.paths[t])){var n=o.paths[t].length;0===n&&Je(!1,t,e.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,t);for(var r=0;r<n;r++){var i=o.paths[t][r],a=typeof i;"string"===a?e.hasZeroOrOneAsteriskCharacter(i)||je(t,r,e.Diagnostics.Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character,i,t):je(t,r,e.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,i,t,a)}}else Je(!1,t,e.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,t);o.sourceMap||o.inlineSourceMap||(o.inlineSources&&Ue(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),o.sourceRoot&&Ue(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),o.out&&o.outFile&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile"),o.mapRoot&&!o.sourceMap&&Ue(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"mapRoot","sourceMap"),o.declarationDir&&(o.declaration||Ue(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"declarationDir","declaration"),(o.out||o.outFile)&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",o.out?"out":"outFile")),o.lib&&o.noLib&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),o.noImplicitUseStrict&&e.getStrictOptionValue(o,"alwaysStrict")&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");var c=o.target||0,u=o.outFile||o.out,l=e.forEach(v,function(t){return e.isExternalModule(t)&&!t.isDeclarationFile?t:void 0});if(o.isolatedModules){o.module===e.ModuleKind.None&&c<2&&Ue(e.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target");var _=e.forEach(v,function(t){return e.isExternalModule(t)||t.isDeclarationFile?void 0:t});if(_){var d=e.getErrorSpanForNode(_,_);M.add(e.createFileDiagnostic(_,d.start,d.length,e.Diagnostics.Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided))}}else if(l&&c<2&&o.module===e.ModuleKind.None){var p=e.getErrorSpanForNode(l,l.externalModuleIndicator);M.add(e.createFileDiagnostic(l,p.start,p.length,e.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(u)if(o.module&&o.module!==e.ModuleKind.AMD&&o.module!==e.ModuleKind.System)Ue(e.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,o.out?"out":"outFile","module");else if(void 0===o.module&&l){var f=e.getErrorSpanForNode(l,l.externalModuleIndicator);M.add(e.createFileDiagnostic(l,f.start,f.length,e.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,o.out?"out":"outFile"))}if(o.outDir||o.sourceRoot||o.mapRoot){var m=se();o.outDir&&""===m&&e.forEach(v,function(t){return e.getRootLength(t.fileName)>1})&&Ue(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(!o.noEmit&&o.allowJs&&o.declaration&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"allowJs","declaration"),o.checkJs&&!o.allowJs&&M.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),o.emitDeclarationOnly&&(o.declaration||Ue(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDeclarationOnly","declaration"),o.noEmit&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),o.emitDecoratorMetadata&&!o.experimentalDecorators&&Ue(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),o.jsxFactory?(o.reactNamespace&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),e.parseIsolatedEntityName(o.jsxFactory,c)||Ve("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,o.jsxFactory)):o.reactNamespace&&!e.isIdentifierText(o.reactNamespace,c)&&Ve("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,o.reactNamespace),!o.noEmit&&!o.suppressOutputPathCheck){var g=ue(),y=e.createMap();e.forEachEmittedFile(g,function(e){o.emitDeclarationOnly||h(e.jsFilePath,y),h(e.declarationFilePath,y)})}function h(t,n){if(t){var r,i=oe(t);G.has(i)&&(o.configFilePath||(r=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)),r=e.chainDiagnosticMessages(r,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,t),Ge(t,e.createCompilerDiagnosticFromMessageChain(r)));var a=s.useCaseSensitiveFileNames()?i:i.toLocaleLowerCase();n.has(a)?Ge(t,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,t)):n.set(a,!0)}}}(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),u;function oe(t){return e.toPath(t,L,Be)}function se(){if(void 0===l){var t=e.filter(v,function(t){return e.sourceFileMayBeEmitted(t,o,le)});(l=o.rootDir&&function(t,n){var r=!0;if(t)for(var i=s.getCanonicalFileName(e.getNormalizedAbsolutePath(o.rootDir,L)),a=0,c=t;a<c.length;a++){var u=c[a];u.isDeclarationFile||0!==s.getCanonicalFileName(e.getNormalizedAbsolutePath(u.fileName,L)).indexOf(i)&&(M.add(e.createCompilerDiagnostic(e.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,u.fileName,o.rootDir)),r=!1)}return r}(t)?e.getNormalizedAbsolutePath(o.rootDir,L):function(e){for(var n=[],r=0,a=t;r<a.length;r++){var o=a[r];o.isDeclarationFile||n.push(o.fileName)}return i(n,L,Be)}())&&l[l.length-1]!==e.directorySeparator&&(l+=e.directorySeparator)}return l}function ce(t,n,r,i){if(0===Y&&!r.ambientModuleNames.length)return P(t,n);var a,c,u,l=i.program&&i.program.getSourceFile(n);if(l!==r&&r.resolvedModules){for(var _=[],d=0,p=t;d<p.length;d++){var f=r.resolvedModules.get(y=p[d]);_.push(f)}return _}for(var m={},g=0;g<t.length;g++){var y=t[g];if(r===l&&!z(l.path)){var h=l&&l.resolvedModules.get(y);if(h){e.isTraceEnabled(o,s)&&e.trace(s,e.Diagnostics.Reusing_resolution_of_module_0_to_file_1_from_old_program,y,n),(c||(c=new Array(t.length)))[g]=h,(u||(u=[])).push(y);continue}}var v=!1;e.contains(r.ambientModuleNames,y)?(v=!0,e.isTraceEnabled(o,s)&&e.trace(s,e.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,y,n)):v=k(y,i),v?(c||(c=new Array(t.length)))[g]=m:(a||(a=[])).push(y)}var b=a&&a.length?P(a,n,u):e.emptyArray;if(!c)return e.Debug.assert(b.length===t.length),b;var x=0;for(g=0;g<c.length;g++)c[g]?c[g]===m&&(c[g]=void 0):(c[g]=b[x],x++);return e.Debug.assert(x===b.length),c;function k(t,n){var r=e.getResolvedModule(n.oldSourceFile,t),i=r&&n.program&&n.program.getSourceFile(r.resolvedFileName);if(r&&i&&!i.externalModuleIndicator)return!1;var a=n.program&&n.program.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(t);if(!a||!a.declarations)return!1;var c=e.forEach(a.declarations,function(t){var r=e.getSourceFileOfNode(t);return!e.contains(n.modifiedFilePaths,r.path)&&r});return!!c&&(e.isTraceEnabled(o,s)&&e.trace(s,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,t,c.fileName),!0)}}function ue(e){return{getCanonicalFileName:Be,getCommonSourceDirectory:u.getCommonSourceDirectory,getCompilerOptions:u.getCompilerOptions,getCurrentDirectory:function(){return L},getNewLine:function(){return s.getNewLine()},getSourceFile:u.getSourceFile,getSourceFileByPath:u.getSourceFileByPath,getSourceFiles:u.getSourceFiles,isSourceFileFromExternalLibrary:le,writeFile:e||function(e,t,n,r,i){return s.writeFile(e,t,n,r,i)},isEmitBlocked:pe}}function le(e){return E.get(e.path)}function _e(){return _||(_=e.createTypeChecker(u,!0))}function de(){return g||(g=e.createTypeChecker(u,!1))}function pe(e){return B.has(oe(e))}function fe(e){return me(oe(e))}function me(e){return G.get(e)}function ge(t,n,r){return t?n(t,r):e.sortAndDeduplicateDiagnostics(e.flatMap(u.getSourceFiles(),function(e){return r&&r.throwIfCancellationRequested(),n(e,r)}))}function ye(t){return e.isSourceFileJavaScript(t)?(t.additionalSyntacticDiagnostics||(t.additionalSyntacticDiagnostics=function(t){return he(function(){var n=[],r=t;return i(t),n;function i(t){switch(r.kind){case 148:case 151:if(r.questionToken===t)return void n.push(c(t,e.Diagnostics._0_can_only_be_used_in_a_ts_file,"?"));case 153:case 152:case 154:case 155:case 156:case 190:case 232:case 191:case 230:if(r.type===t)return void n.push(c(t,e.Diagnostics.types_can_only_be_used_in_a_ts_file))}switch(t.kind){case 241:return void n.push(c(t,e.Diagnostics.import_can_only_be_used_in_a_ts_file));case 247:if(t.isExportEquals)return void n.push(c(t,e.Diagnostics.export_can_only_be_used_in_a_ts_file));break;case 266:if(108===t.token)return void n.push(c(t,e.Diagnostics.implements_clauses_can_only_be_used_in_a_ts_file));break;case 234:return void n.push(c(t,e.Diagnostics.interface_declarations_can_only_be_used_in_a_ts_file));case 237:return void n.push(c(t,e.Diagnostics.module_declarations_can_only_be_used_in_a_ts_file));case 235:return void n.push(c(t,e.Diagnostics.type_aliases_can_only_be_used_in_a_ts_file));case 236:return void n.push(c(t,e.Diagnostics.enum_declarations_can_only_be_used_in_a_ts_file));case 207:return void n.push(c(t,e.Diagnostics.non_null_assertions_can_only_be_used_in_a_ts_file));case 206:return void n.push(c(t.type,e.Diagnostics.type_assertion_expressions_can_only_be_used_in_a_ts_file));case 188:e.Debug.fail()}var o=r;r=t,e.forEachChild(t,i,a),r=o}function a(t){switch(r.decorators!==t||o.experimentalDecorators||n.push(c(r,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)),r.kind){case 233:case 153:case 152:case 154:case 155:case 156:case 190:case 232:case 191:if(t===r.typeParameters)return void n.push(s(t,e.Diagnostics.type_parameter_declarations_can_only_be_used_in_a_ts_file));case 212:if(t===r.modifiers)return function(r,i){for(var a=0,o=t;a<o.length;a++){var s=o[a];switch(s.kind){case 76:if(i)continue;case 114:case 112:case 113:case 132:case 124:case 117:n.push(c(s,e.Diagnostics._0_can_only_be_used_in_a_ts_file,e.tokenToString(s.kind)))}}}(0,212===r.kind);break;case 151:if(t===r.modifiers){for(var a=0,u=t;a<u.length;a++){var l=u[a];115!==l.kind&&n.push(c(l,e.Diagnostics._0_can_only_be_used_in_a_ts_file,e.tokenToString(l.kind)))}return}break;case 148:if(t===r.modifiers)return void n.push(s(t,e.Diagnostics.parameter_modifiers_can_only_be_used_in_a_ts_file));break;case 185:case 186:case 205:if(t===r.typeArguments)return void n.push(s(t,e.Diagnostics.type_arguments_can_only_be_used_in_a_ts_file))}for(var _=0,d=t;_<d.length;_++)i(d[_])}function s(n,r,i,a,o){var s=n.pos;return e.createFileDiagnostic(t,s,n.end-s,r,i,a,o)}function c(n,r,i,a,o){return e.createDiagnosticForNodeInSourceFile(t,n,r,i,a,o)}})}(t)),e.concatenate(t.additionalSyntacticDiagnostics,t.parseDiagnostics)):t.parseDiagnostics}function he(t){try{return t()}catch(t){throw t instanceof e.OperationCanceledException&&(g=void 0,_=void 0),t}}function ve(e,t){return De(e,t,b,be)}function be(t,n){return he(function(){if(o.skipLibCheck&&t.isDeclarationFile||o.skipDefaultLibCheck&&t.hasNoDefaultLib)return e.emptyArray;var r=_e();e.Debug.assert(!!t.bindDiagnostics);var i=e.isCheckJsEnabledForFile(t,o),a=3===t.scriptKind||4===t.scriptKind||5===t.scriptKind||i,s=a?t.bindDiagnostics:e.emptyArray,c=a?r.getDiagnostics(t,n):e.emptyArray,u=S.getDiagnostics(t.fileName),l=M.getDiagnostics(t.fileName),_=s.concat(c,u,l);return i&&(_=e.concatenate(_,t.jsDocDiagnostics)),e.filter(_,xe)})}function xe(t){var r=t.file,i=t.start;if(r)for(var a=e.getLineStarts(r),o=e.computeLineAndCharacterOfPosition(a,i).line;o>0;){var s=r.text.slice(a[o-1],a[o]),c=n.exec(s);if(!c)return!0;if(c[3])return!1;o--}return!0}function ke(e,t){return De(e,t,x,Se)}function Se(t,n){return he(function(){var r=_e().getEmitResolver(t,n);return e.getDeclarationDiagnostics(ue(e.noop),r,t)})}function De(t,n,r,i){var a=t?r.perFile&&r.perFile.get(t.path):r.allDiagnostics;if(a)return a;var o=i(t,n)||e.emptyArray;return t?(r.perFile||(r.perFile=e.createMap()),r.perFile.set(t.path,o)):r.allDiagnostics=o,o}function Ce(e,t){return e.isDeclarationFile?[]:ke(e,t)}function Te(t,n){we(e.normalizePath(t),n,void 0)}function Ee(e,t){return e.fileName===t.fileName}function Ne(e,t){return 9===e.kind?9===t.kind&&e.text===t.text:71===t.kind&&e.escapedText===t.escapedText}function Ae(t){if(!t.imports){var n,r,i,a=e.isSourceFileJavaScript(t),s=e.isExternalModule(t);if(o.importHelpers&&(o.isolatedModules||s)&&!t.isDeclarationFile){var c=e.createLiteral(e.externalHelpersModuleNameText),u=e.createImportDeclaration(void 0,void 0,void 0);e.addEmitFlags(u,67108864),c.parent=u,u.parent=t,n=[c]}for(var l=0,_=t.statements;l<_.length;l++){var d=_[l];p(d,!1),(524288&t.flags||a)&&f(d)}return t.imports=n||e.emptyArray,t.moduleAugmentations=r||e.emptyArray,void(t.ambientModuleNames=i||e.emptyArray)}function p(a,o){switch(a.kind){case 242:case 241:case 248:var c=e.getExternalModuleName(a);if(!c||!e.isStringLiteral(c))break;if(!c.text)break;o&&e.isExternalModuleNameRelative(c.text)||(n||(n=[])).push(c);break;case 237:if(e.isAmbientModule(a)&&(o||e.hasModifier(a,2)||t.isDeclarationFile)){var u=a.name,l=e.getTextOfIdentifierOrLiteral(u);if(s||o&&!e.isExternalModuleNameRelative(l))(r||(r=[])).push(u);else if(!o){t.isDeclarationFile&&(i||(i=[])).push(l);var _=a.body;if(_)for(var d=0,f=_.statements;d<f.length;d++)p(f[d],!0)}}}}function f(t){e.isRequireCall(t,!0)?(n||(n=[])).push(t.arguments[0]):e.isImportCall(t)&&1===t.arguments.length&&9===t.arguments[0].kind?(n||(n=[])).push(t.arguments[0]):e.forEachChild(t,f)}}function Pe(t,n,r,i){if(e.hasExtension(t)){if(!o.allowNonTsExtensions&&!e.forEach(R,function(n){return e.fileExtensionIs(s.getCanonicalFileName(t),n)}))return void(r&&r(e.Diagnostics.File_0_has_unsupported_extension_The_only_supported_extensions_are_1,t,"'"+R.join("', '")+"'"));var a=n(t);return r&&(a?i&&s.getCanonicalFileName(t)===s.getCanonicalFileName(i.fileName)&&r(e.Diagnostics.A_file_cannot_have_a_reference_to_itself):r(e.Diagnostics.File_0_not_found,t)),a}var c=o.allowNonTsExtensions&&n(t);if(c)return c;if(!r||!o.allowNonTsExtensions){var u=e.forEach(R,function(e){return n(t+e)});return r&&!u&&r(e.Diagnostics.File_0_not_found,t+".ts"),u}r(e.Diagnostics.File_0_not_found,t)}function we(t,n,r,i,a,o){Pe(t,function(e){return Ie(e,oe(e),n,i,a,o,r)},function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];S.add(void 0!==i&&void 0!==o&&void 0!==a?e.createFileDiagnostic.apply(void 0,[i,a,o-a,t].concat(n)):e.createCompilerDiagnostic.apply(void 0,[t].concat(n)))},i)}function Fe(t,n,r,i,a){S.add(void 0!==r&&void 0!==i&&void 0!==a?e.createFileDiagnostic(r,i,a-i,e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,t,n):e.createCompilerDiagnostic(e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,t,n))}function Ie(t,n,r,i,a,c,u){if(G.has(n)){var l=G.get(n);return l&&o.forceConsistentCasingInFileNames&&e.getNormalizedAbsolutePath(l.fileName,L)!==e.getNormalizedAbsolutePath(t,L)&&Fe(t,l.fileName,i,a,c),l&&E.get(l.path)&&0===C?(E.set(l.path,!1),o.noResolve||(Oe(l,r),Me(l)),T.set(l.path,!1),ze(l)):l&&T.get(l.path)&&C<D&&(T.set(l.path,!1),ze(l)),l}var _=s.getSourceFile(t,o.target,function(n){S.add(void 0!==i&&void 0!==a&&void 0!==c?e.createFileDiagnostic(i,a,c-a,e.Diagnostics.Cannot_read_file_0_Colon_1,t,n):e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,n))},Q);if(u){var d=e.packageIdToString(u),p=q.get(d);if(p){var f=function(e,t,n,r){var i=Object.create(e);return i.fileName=n,i.path=r,i.redirectInfo={redirectTarget:e,unredirected:t},Object.defineProperties(i,{id:{get:function(){return this.redirectInfo.redirectTarget.id},set:function(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get:function(){return this.redirectInfo.redirectTarget.symbol},set:function(e){this.redirectInfo.redirectTarget.symbol=e}}}),i}(p,_,t,n);return H.set(p.path,!0),G.set(n,f),W.set(n,u.name),v.push(f),f}_&&(q.set(d,_),W.set(n,u.name))}if(G.set(n,_),_){if(E.set(n,C>0),_.path=n,s.useCaseSensitiveFileNames()){var m=n.toLowerCase(),g=X.get(m);g?Fe(t,g.fileName,i,a,c):X.set(m,_)}F=F||_.hasNoDefaultLib,o.noResolve||(Oe(_,r),Me(_)),ze(_),r?v.unshift(_):v.push(_)}return _}function Oe(t,n){e.forEach(t.referencedFiles,function(e){we(r(e.fileName,t.fileName),n,void 0,t,e.pos,e.end)})}function Me(t){for(var n=e.map(t.typeReferenceDirectives,function(e){return e.fileName.toLocaleLowerCase()}),r=w(n,t.fileName),i=0;i<n.length;i++){var a=t.typeReferenceDirectives[i],o=r[i],s=a.fileName.toLocaleLowerCase();e.setResolvedTypeReferenceDirective(t,s,o),Le(s,o,t,a.pos,a.end)}}function Le(t,n,r,i,a){var o=k.get(t);if(!o||!o.primary){var c=!0;n?n.primary?we(n.resolvedFileName,!1,n.packageId,r,i,a):o?(n.resolvedFileName!==o.resolvedFileName&&s.readFile(n.resolvedFileName)!==fe(o.resolvedFileName).text&&S.add(Re(r,i,a,e.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,t,n.resolvedFileName,o.resolvedFileName)),c=!1):we(n.resolvedFileName,!1,n.packageId,r,i,a):S.add(Re(r,i,a,e.Diagnostics.Cannot_find_type_definition_file_for_0,t)),c&&k.set(t,n)}}function Re(t,n,r,i){for(var a=[],o=4;o<arguments.length;o++)a[o-4]=arguments[o];return void 0===t||void 0===n||void 0===r?e.createCompilerDiagnostic.apply(void 0,[i].concat(a)):e.createFileDiagnostic.apply(void 0,[t,n,r-n,i].concat(a))}function Be(e){return s.getCanonicalFileName(e)}function ze(t){if(Ae(t),t.imports.length||t.moduleAugmentations.length){var n=m(t),r={program:c,oldSourceFile:c&&c.getSourceFile(t.fileName),modifiedFilePaths:h},i=ce(n,e.getNormalizedAbsolutePath(t.fileName,L),t,r);e.Debug.assert(i.length===n.length);for(var a=0;a<n.length;a++){var s=i[a];if(e.setResolvedModule(t,n[a],s),s){var u=s.isExternalLibraryImport,l=!e.extensionIsTypeScript(s.extension),_=s.resolvedFileName;u&&C++;var d=u&&l&&C>D,f=_&&!p(o,s)&&!o.noResolve&&a<t.imports.length&&!d&&!(l&&!o.allowJs);d?T.set(t.path,!0):f&&Ie(_,oe(_),!1,t,e.skipTrivia(t.text,t.imports[a].pos),t.imports[a].end,s.packageId),u&&C--}}}else t.resolvedModules=void 0}function je(t,n,r,i,a,s){for(var c=!0,u=0,l=Ke();u<l.length;u++){var _=l[u];if(e.isObjectLiteralExpression(_.initializer))for(var d=0,p=e.getPropertyAssignment(_.initializer,t);d<p.length;d++){var f=p[d];e.isArrayLiteralExpression(f.initializer)&&f.initializer.elements.length>n&&(M.add(e.createDiagnosticForNodeInSourceFile(o.configFile,f.initializer.elements[n],r,i,a,s)),c=!1)}}c&&M.add(e.createCompilerDiagnostic(r,i,a,s))}function Je(t,n,r,i){for(var a=!0,o=0,s=Ke();o<s.length;o++){var c=s[o];e.isObjectLiteralExpression(c.initializer)&&He(c.initializer,t,n,void 0,r,i)&&(a=!1)}a&&M.add(e.createCompilerDiagnostic(r,i))}function Ke(){var t=We();return t?e.getPropertyAssignment(t,"paths"):e.emptyArray}function Ue(e,t,n){qe(!0,t,n,e,t,n)}function Ve(e,t,n){qe(!1,e,void 0,t,n)}function qe(t,n,r,i,a,o){var s=We();(!s||!He(s,t,n,r,i,a,o))&&M.add(e.createCompilerDiagnostic(i,a,o))}function We(){if(void 0===N&&(N=null,o.configFile&&o.configFile.jsonObject))for(var t=0,n=e.getPropertyAssignment(o.configFile.jsonObject,"compilerOptions");t<n.length;t++){var r=n[t];if(e.isObjectLiteralExpression(r.initializer)){N=r.initializer;break}}return N}function He(t,n,r,i,a,s,c){for(var u=e.getPropertyAssignment(t,r,i),l=0,_=u;l<_.length;l++){var d=_[l];M.add(e.createDiagnosticForNodeInSourceFile(o.configFile,n?d.name:d.initializer,a,s,c))}return!!u.length}function Ge(e,t){B.set(oe(e),!0),M.add(t)}function Xe(t,n){return 0===e.comparePaths(t,n,L,!s.useCaseSensitiveFileNames())}},e.getResolutionDiagnostic=p}(l||(l={})),function(e){e.getFileEmitOutput=function(e,t,n,r,i){var a=[],o=e.emit(t,function(e,t,n){a.push({name:e,writeByteOrderMark:n,text:t})},r,n,i);return{outputFiles:a,emitSkipped:o.emitSkipped}}}(l||(l={})),function(e){!function(t){function n(t,n,r){var i;if(n.imports&&n.imports.length>0)for(var a=t.getTypeChecker(),o=0,s=n.imports;o<s.length;o++){var c=a.getSymbolAtLocation(s[o]);if(c&&c.declarations&&c.declarations[0]){var u=e.getSourceFileOfNode(c.declarations[0]);u&&p(u.path)}}var l=e.getDirectoryPath(n.path);if(n.referencedFiles&&n.referencedFiles.length>0)for(var _=0,d=n.referencedFiles;_<d.length;_++)p(e.toPath(d[_].fileName,l,r));return n.resolvedTypeReferenceDirectiveNames&&n.resolvedTypeReferenceDirectiveNames.forEach(function(t){t&&p(e.toPath(t.resolvedFileName,l,r))}),i;function p(t){i||(i=e.createMap()),i.set(t,!0)}}function r(e,t){return t&&!t.referencedMap==!e}function i(e,t){t.forEach(function(t,n){e.fileInfos.get(n).signature=t,e.hasCalledUpdateShapeSignature.set(n,!0)})}function a(t,n,r,i,a,o){if(e.Debug.assert(!!r),t.hasCalledUpdateShapeSignature.has(r.path)||i.has(r.path))return!1;var s=t.fileInfos.get(r.path);e.Debug.assert(!!s);var c,u=s.signature;if(r.isDeclarationFile)c=r.version;else{var l=e.getFileEmitOutput(n,r,!0,a);c=l.outputFiles&&l.outputFiles.length>0?o(l.outputFiles[0].text):u}return i.set(r.path,c),!u||c!==u}function o(t,n){if(!t.allFileNames){var r=n.getSourceFiles();t.allFileNames=r===e.emptyArray?e.emptyArray:r.map(function(e){return e.fileName})}return t.allFileNames}function s(t,n){return e.arrayFrom(e.mapDefinedIterator(t.referencedMap.entries(),function(e){var t=e[0];return e[1].has(n)?t:void 0}))}function c(t){for(var n=0,r=t.statements;n<r.length;n++)if(!e.isModuleWithStringLiteralName(r[n]))return!1;return!0}function u(t,n,r){if(t.allFilesExcludingDefaultLibraryFile)return t.allFilesExcludingDefaultLibraryFile;var i;c(r);for(var a=0,o=n.getSourceFiles();a<o.length;a++){var s=o[a];s!==r&&c(s)}return t.allFilesExcludingDefaultLibraryFile=i||e.emptyArray,t.allFilesExcludingDefaultLibraryFile;function c(e){n.isSourceFileDefaultLibrary(e)||(i||(i=[])).push(e)}}t.canReuseOldState=r,t.create=function(t,i,a){for(var o=e.createMap(),s=t.getCompilerOptions().module!==e.ModuleKind.None?e.createMap():void 0,c=e.createMap(),u=r(s,a),l=0,_=t.getSourceFiles();l<_.length;l++){var d=_[l],p=d.version,f=u&&a.fileInfos.get(d.path);if(s){var m=n(t,d,i);m&&s.set(d.path,m)}o.set(d.path,{version:p,signature:f&&f.signature})}return{fileInfos:o,referencedMap:s,hasCalledUpdateShapeSignature:c,allFilesExcludingDefaultLibraryFile:void 0,allFileNames:void 0}},t.getFilesAffectedBy=function(t,n,r,o,l,_){var d=_||e.createMap(),p=n.getSourceFileByPath(r);if(!p)return e.emptyArray;if(!a(t,n,p,d,o,l))return[p];var f=(t.referencedMap?function(t,n,r,i,o,l){if(!e.isExternalModule(r)&&!c(r))return u(t,n,r);var _=n.getCompilerOptions();if(_&&(_.isolatedModules||_.out||_.outFile))return[r];var d=e.createMap();d.set(r.path,r);for(var p=s(t,r.path);p.length>0;){var f=p.pop();if(!d.has(f)){var m=n.getSourceFileByPath(f);d.set(f,m),m&&a(t,n,m,i,o,l)&&p.push.apply(p,s(t,f))}}return e.arrayFrom(e.mapDefinedIterator(d.values(),function(e){return e}))}:function(e,t,n){var r=t.getCompilerOptions();return r&&(r.out||r.outFile)?[n]:u(e,t,n)})(t,n,p,d,o,l);return _||i(t,d),f},t.updateSignaturesFromCache=i,t.getAllDependencies=function(t,n,r){var i=n.getCompilerOptions();if(i.outFile||i.out)return o(t,n);if(!t.referencedMap||!e.isExternalModule(r)&&!c(r))return o(t,n);for(var a,s=e.createMap(),u=[r.path];u.length;){var l=u.pop();if(!s.has(l)){s.set(l,!0);var _=t.referencedMap.get(l);if(_)for(var d=_.keys(),p=d.next(),f=p.value,m=p.done;!m;f=(a=d.next()).value,m=a.done,a)u.push(f)}}return e.arrayFrom(e.mapDefinedIterator(s.keys(),function(e){var t=n.getSourceFileByPath(e);return t?t.fileName:e}))}}(e.BuilderState||(e.BuilderState={}))}(l||(l={})),function(e){function t(t,n){e.Debug.assert(!n||!t.affectedFiles||t.affectedFiles[t.affectedFilesIndex-1]!==n||!t.semanticDiagnosticsPerFile.has(n.path))}function n(t,n,r){for(;;){var i=t.affectedFiles;if(i){for(var a=t.seenAffectedFiles,o=t.semanticDiagnosticsPerFile,s=t.affectedFilesIndex;s<i.length;){var c=i[s];if(!a.has(c.path))return t.affectedFilesIndex=s,o.delete(c.path),c;a.set(c.path,!0),s++}t.changedFilesSet.delete(t.currentChangedFilePath),t.currentChangedFilePath=void 0,e.BuilderState.updateSignaturesFromCache(t,t.currentAffectedFilesSignatures),t.currentAffectedFilesSignatures.clear(),t.affectedFiles=void 0}var u=t.changedFilesSet.keys().next();if(u.done)return;var l=t.program.getCompilerOptions();if(l.outFile||l.out)return e.Debug.assert(!t.semanticDiagnosticsPerFile),t.program;t.currentAffectedFilesSignatures=t.currentAffectedFilesSignatures||e.createMap(),t.affectedFiles=e.BuilderState.getFilesAffectedBy(t,t.program,u.value,n,r,t.currentAffectedFilesSignatures),t.currentChangedFilePath=u.value,t.semanticDiagnosticsPerFile.delete(u.value),t.affectedFilesIndex=0,t.seenAffectedFiles=t.seenAffectedFiles||e.createMap()}}function r(e,t){t===e.program?e.changedFilesSet.clear():(e.seenAffectedFiles.set(t.path,!0),e.affectedFilesIndex++)}function i(e,t,n){return r(e,n),{result:t,affected:n}}function a(e,t,n){var r=t.path,i=e.semanticDiagnosticsPerFile.get(r);if(i)return i;var a=e.program.getSemanticDiagnostics(t,n);return e.semanticDiagnosticsPerFile.set(r,a),a}var o;!function(e){e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram"}(o=e.BuilderProgramKind||(e.BuilderProgramKind={})),e.getBuilderCreationParameters=function(t,n,r,i){var a,o;return e.isArray(t)?(o=e.createProgram(t,n,r,i&&i.getProgram()),a=r):(o=t,a=n,i=r),{host:a,newProgram:o,oldProgram:i}},e.createBuilderProgram=function(s,c){var u=c.newProgram,l=c.host,_=c.oldProgram,d=_&&_.getState();if(d&&u===d.program)return u=void 0,d=void 0,_;var p=e.createGetCanonicalFileName(l.useCaseSensitiveFileNames()),f=l.createHash||e.identity,m=function(t,n,r){var i=e.BuilderState.create(t,n,r);i.program=t;var a=t.getCompilerOptions();a.outFile||a.out||(i.semanticDiagnosticsPerFile=e.createMap()),i.changedFilesSet=e.createMap();var o=e.BuilderState.canReuseOldState(i.referencedMap,r),s=o&&r.semanticDiagnosticsPerFile&&!!i.semanticDiagnosticsPerFile;o&&(r.currentChangedFilePath||e.Debug.assert(!(r.affectedFiles||r.currentAffectedFilesSignatures&&r.currentAffectedFilesSignatures.size),"Cannot reuse if only few affected files of currentChangedFile were iterated"),s&&e.Debug.assert(!e.forEachKey(r.changedFilesSet,function(e){return r.semanticDiagnosticsPerFile.has(e)}),"Semantic diagnostics shouldnt be available for changed files"),e.copyEntries(r.changedFilesSet,i.changedFilesSet));var c=i.referencedMap,u=o&&r.referencedMap;return i.fileInfos.forEach(function(t,n){var a,l,_,d;if(!(o&&(a=r.fileInfos.get(n))&&a.version===t.version&&(_=l=c&&c.get(n),d=u&&u.get(n),_===d||_&&d&&_.size===d.size&&!e.forEachKey(_,function(e){return!d.has(e)})))||l&&e.forEachKey(l,function(e){return!i.fileInfos.has(e)&&r.fileInfos.has(e)}))i.changedFilesSet.set(n,!0);else if(s){var p=r.semanticDiagnosticsPerFile.get(n);p&&i.semanticDiagnosticsPerFile.set(n,p)}}),i}(u,p,d);u=void 0,_=void 0,d=void 0;var g={getState:function(){return m},getProgram:function(){return m.program},getCompilerOptions:function(){return m.program.getCompilerOptions()},getSourceFile:function(e){return m.program.getSourceFile(e)},getSourceFiles:function(){return m.program.getSourceFiles()},getOptionsDiagnostics:function(e){return m.program.getOptionsDiagnostics(e)},getGlobalDiagnostics:function(e){return m.program.getGlobalDiagnostics(e)},getSyntacticDiagnostics:function(e,t){return m.program.getSyntacticDiagnostics(e,t)},getSemanticDiagnostics:function(i,c){t(m,i);var u,l=m.program.getCompilerOptions();if(l.outFile||l.out)return e.Debug.assert(!m.semanticDiagnosticsPerFile),m.program.getSemanticDiagnostics(i,c);if(i)return a(m,i,c);if(s===o.SemanticDiagnosticsBuilderProgram)for(var _=void 0;_=n(m,c,f);)r(m,_);for(var d=0,p=m.program.getSourceFiles();d<p.length;d++)u=e.addRange(u,a(m,p[d],c));return u||e.emptyArray},emit:function(n,r,i,a,c){if(s===o.EmitAndSemanticDiagnosticsBuilderProgram&&(t(m,n),!n)){for(var u=[],_=void 0,d=void 0,p=[],f=void 0;f=y(r,i,a,c);)_=_||f.result.emitSkipped,d=e.addRange(d,f.result.diagnostics),p=e.addRange(p,f.result.emittedFiles),u=e.addRange(u,f.result.sourceMaps);return{emitSkipped:_,diagnostics:d||e.emptyArray,emittedFiles:p,sourceMaps:u}}return m.program.emit(n,r||l.writeFile,i,a,c)},getAllDependencies:function(t){return e.BuilderState.getAllDependencies(m,m.program,t)},getCurrentDirectory:function(){return m.program.getCurrentDirectory()}};return s===o.SemanticDiagnosticsBuilderProgram?g.getSemanticDiagnosticsOfNextAffectedFile=function(e,t){for(;;){var o=n(m,e,f);if(!o)return;if(o===m.program)return i(m,m.program.getSemanticDiagnostics(void 0,e),o);if(!t||!t(o))return i(m,a(m,o,e),o);r(m,o)}}:s===o.EmitAndSemanticDiagnosticsBuilderProgram?g.emitNextAffectedFile=y:e.notImplemented(),g;function y(e,t,r,a){var o=n(m,t,f);if(o)return i(m,m.program.emit(o===m.program?void 0:o,e||l.writeFile,t,r,a),o)}}}(l||(l={})),function(e){e.createSemanticDiagnosticsBuilderProgram=function(t,n,r,i){return e.createBuilderProgram(e.BuilderProgramKind.SemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(t,n,r,i))},e.createEmitAndSemanticDiagnosticsBuilderProgram=function(t,n,r,i){return e.createBuilderProgram(e.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(t,n,r,i))},e.createAbstractBuilder=function(t,n,r,i){var a=e.getBuilderCreationParameters(t,n,r,i).newProgram;return{getProgram:function(){return a},getState:e.notImplemented,getCompilerOptions:e.notImplemented,getSourceFile:e.notImplemented,getSourceFiles:e.notImplemented,getOptionsDiagnostics:e.notImplemented,getGlobalDiagnostics:e.notImplemented,getSyntacticDiagnostics:e.notImplemented,getSemanticDiagnostics:e.notImplemented,emit:e.notImplemented,getAllDependencies:e.notImplemented,getCurrentDirectory:e.notImplemented}}}(l||(l={})),function(e){var t;function n(e,t,n,r){return e.watchFile(t,n,r)}function r(e,t,n,r){return e.watchDirectory(t,n,0!=(1&r))}function i(e,n){switch(e){case t.None:return n;case t.TriggerOnly:return o;case t.Verbose:return a}}function a(e,t,n,r,i,a,c,u,l,_,d){l(_+":: Added:: "+s(t,r,a,c,d));var p=o(e,t,n,r,i,a,c,u,l,_,d);return{close:function(){l(_+":: Close:: "+s(t,r,a,c,d)),p.close()}}}function o(t,n,r,i,a,o,c,u,l,_,d){return u(t,n,function(t,u){var p=_+":: Triggered with "+t+(void 0!==u?u:"")+":: "+s(n,i,o,c,d);l(p);var f=e.timestamp();r(t,u,a);var m=e.timestamp()-f;l("Elapsed:: "+m+"ms "+p)},i)}function s(e,t,n,r,i){return"WatchInfo: "+e+" "+t+" "+(i?i(n,r):"")}function c(e){e.watcher.close()}e.createCachedDirectoryStructureHost=function(t,n,r){if(t.getDirectories&&t.readDirectory){var i=e.createMap(),a=e.createGetCanonicalFileName(r);return{useCaseSensitiveFileNames:r,fileExists:function(e){var n=c(o(e));return n&&d(n.files,u(e))||t.fileExists(e)},readFile:function(e,n){return t.readFile(e,n)},directoryExists:t.directoryExists&&function(e){var n=o(e);return i.has(n)||t.directoryExists(e)},getDirectories:function(e){var n=l(e,o(e));return n?n.directories.slice():t.getDirectories(e)},readDirectory:function(i,a,s,c,u){var _=o(i),d=l(i,_);return d?e.matchFiles(i,a,s,c,r,n,u,function(t){var n=o(t);return n===_?d:l(t,n)||e.emptyFileSystemEntries}):t.readDirectory(i,a,s,c,u)},createDirectory:t.createDirectory&&function(e){var n=c(o(e)),r=u(e);n&&p(n.directories,r,!0),t.createDirectory(e)},writeFile:t.writeFile&&function(e,n,r){var i=c(o(e));return i&&f(i,u(e),!0),t.writeFile(e,n,r)},addOrDeleteFileOrDirectory:function(e,n){if(s(n))m();else{var r=c(n);if(r){if(t.directoryExists){var i=u(e),a={fileExists:t.fileExists(n),directoryExists:t.directoryExists(n)};return a.directoryExists||d(r.directories,i)?m():f(r,i,a.fileExists),a}m()}}},addOrDeleteFile:function(t,n,r){if(r!==e.FileWatcherEventKind.Changed){var i=c(n);i&&f(i,u(t),r===e.FileWatcherEventKind.Created)}},clearCache:m}}function o(t){return e.toPath(t,n,a)}function s(e){return i.get(e)}function c(t){return s(e.getDirectoryPath(t))}function u(t){return e.getBaseFileName(e.normalizePath(t))}function l(n,r){var a=s(r);if(a)return a;try{return function(n,r){var a={files:e.map(t.readDirectory(n,void 0,void 0,["*.*"]),u)||[],directories:t.getDirectories(n)||[]};return i.set(r,a),a}(n,r)}catch(t){return void e.Debug.assert(!i.has(r))}}function _(e,t){return a(e)===a(t)}function d(t,n){return e.some(t,function(e){return _(e,n)})}function p(t,n,r){if(d(t,n)){if(!r)return e.filterMutate(t,function(e){return!_(e,n)})}else if(r)return t.push(n)}function f(e,t,n){p(e.files,t,n)}function m(){i.clear()}},function(e){e[e.None=0]="None",e[e.Partial=1]="Partial",e[e.Full=2]="Full"}(e.ConfigFileProgramReloadLevel||(e.ConfigFileProgramReloadLevel={})),e.updateMissingFilePathsWatch=function(t,n,r){var i=t.getMissingFilePaths(),a=e.arrayToSet(i);e.mutateMap(n,a,{createNewValue:r,onDeleteValue:e.closeFileWatcher})},e.updateWatchingWildcardDirectories=function(t,n,r){function i(e,t){return{watcher:r(e,t),flags:t}}e.mutateMap(t,n,{createNewValue:i,onDeleteValue:c,onExistingValue:function(e,n,r){e.flags!==n&&(e.watcher.close(),t.set(r,i(r,n)))}})},e.isEmittedFileOfProgram=function(e,t){return!!e&&e.isEmittedFile(t)},function(e){e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose"}(t=e.WatchLogLevel||(e.WatchLogLevel={})),e.getWatchFactory=function(e,a,o){return function(e,n,r,a,o){var s=i(e,a),c=e===t.None?function(e,t,n,r,i){return a(e,t,function(e,t){return n(e,t,i)},r)}:s,u=i(e,o);return{watchFile:function(e,t,i,o,c,u){return s(e,t,i,o,void 0,c,u,a,n,"FileWatcher",r)},watchFilePath:function(e,t,i,o,s,u,l){return c(e,t,i,o,s,u,l,a,n,"FileWatcher",r)},watchDirectory:function(e,t,i,a,s,c){return u(e,t,i,a,void 0,s,c,o,n,"DirectoryWatcher",r)}}}(e,a,o,n,r)},e.closeFileWatcherOf=c}(l||(l={})),function(e){e.maxNumberOfFilesToIterateForInvalidation=256,e.createResolutionCache=function(t,n,r){var i,a,o=!1,s=e.memoize(function(){return t.getCurrentDirectory()}),c=t.getCachedDirectoryStructureHost(),u=e.createMap(),l=e.createMap(),_=e.createMap(),d=e.createModuleResolutionCacheWithMaps(l,_,s(),t.getCanonicalFileName),p=e.createMap(),f=e.createMap(),m=[".ts",".tsx",".js",".jsx",".json"],g=e.createMap(),y=e.createMap(),h=n&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(n,s())),v=h&&t.toPath(h),b=e.createMap();return{startRecordingFilesWithChangedResolutions:function(){i=[]},finishRecordingFilesWithChangedResolutions:function(){var e=i;return i=void 0,e},startCachingPerDirectoryResolution:D,finishCachingPerDirectoryResolution:function(){o=!1,y.forEach(function(e,t){0===e.refCount&&(y.delete(t),e.watcher.close())}),D()},resolveModuleNames:function(e,t,n){return T(e,t,u,l,C,x,n,r)},resolveTypeReferenceDirectives:function(t,n){return T(t,n,p,f,e.resolveTypeReferenceDirective,k,void 0,!1)},removeResolutionsOfFile:z,invalidateResolutionOfFile:function(e){z(e),J(function(n,r){var i=r(n);return i&&t.toPath(i.resolvedFileName)===e})},createHasInvalidatedResolution:function(t){if(o||t)return a=void 0,e.returnTrue;var n=a;return a=void 0,function(e){return n&&n.has(e)}},updateTypeRootsWatch:function(){var n=t.getCompilationSettings();if(n.types)U();else{var r=e.getEffectiveTypeRoots(n,{directoryExists:q,getCurrentDirectory:s});r?e.mutateMap(b,e.arrayToMap(r,function(e){return t.toPath(e)}),{createNewValue:V,onDeleteValue:e.closeFileWatcher}):U()}},closeTypeRootsWatch:U,clear:function(){e.clearMap(y,e.closeFileWatcherOf),g.clear(),U(),u.clear(),p.clear(),o=!1,D()}};function x(e){return e.resolvedModule}function k(e){return e.resolvedTypeReferenceDirective}function S(t,n){return!(void 0===t||n.length<=t.length)&&e.startsWith(n,t)&&n[t.length]===e.directorySeparator}function D(){l.clear(),_.clear(),f.clear()}function C(n,r,i,a){var o=e.resolveModuleName(n,r,i,a,d);if(!t.getGlobalCache)return o;var s=t.getGlobalCache();if(!(void 0===s||e.isExternalModuleNameRelative(n)||o.resolvedModule&&e.extensionIsTypeScript(o.resolvedModule.extension))){var c=e.loadModuleFromGlobalCache(n,t.projectName,i,a,s),u=c.resolvedModule;if(u)return{resolvedModule:u,failedLookupLocations:e.addRange(o.failedLookupLocations,c.failedLookupLocations)}}return o}function T(n,r,a,s,c,u,l,_){var d=t.toPath(r),p=a.get(d)||a.set(d,e.createMap()).get(d),f=e.getDirectoryPath(d),m=s.get(f);m||(m=e.createMap(),s.set(f,m));for(var g=[],y=t.getCompilationSettings(),h=e.createMap(),v=0,b=n;v<b.length;v++){var x=b[v],k=p.get(x);if(!h.has(x)&&o||!k||k.isInvalidated){var S=k,D=m.get(x);D?k=D:(k=c(x,r,y,t),m.set(x,k)),p.set(x,k),O(k),S&&L(S),_&&i&&!C(S,k)&&(i.push(d),_=!1)}e.Debug.assert(void 0!==k&&!k.isInvalidated),h.set(x,!0),g.push(u(k))}return p.forEach(function(t,n){h.has(n)||e.contains(l,n)||(L(t),p.delete(n))}),g;function C(e,t){if(e===t)return!0;if(!e||!t||e.isInvalidated)return!1;var n=u(e),r=u(t);return n===r||!(!n||!r)&&n.resolvedFileName===r.resolvedFileName}}function E(t){return e.endsWith(t,"/node_modules")}function N(t){return e.endsWith(t,"/node_modules/@types")}function A(t){return function(t,n){for(var r=e.getRootLength(t);n>0;n--)if(0===(r=t.indexOf(e.directorySeparator,r)+1))return!1;return!0}(t,47===t.charCodeAt(0)?3:1)}function P(e,t){return A(t)||(e.ignore=!0),e}function w(t,n){return S(v,n)?{dir:h,dirPath:v}:F(e.getDirectoryPath(e.getNormalizedAbsolutePath(t,s())),e.getDirectoryPath(n))}function F(t,n){for(;e.stringContains(n,"/node_modules/");)t=e.getDirectoryPath(t),n=e.getDirectoryPath(n);if(E(n))return P({dir:t,dirPath:n},e.getDirectoryPath(n));if(void 0!==v)for(;!S(n,v);){var r=e.getDirectoryPath(n);if(r===n)break;n=r,t=e.getDirectoryPath(t)}return P({dir:t,dirPath:n},n)}function I(t){return e.fileExtensionIsOneOf(t,m)}function O(e){if(e.failedLookupLocations&&e.failedLookupLocations.length)if(void 0===e.refCount){e.refCount=1;for(var n=!1,r=0,i=e.failedLookupLocations;r<i.length;r++){var a=i[r],o=t.toPath(a),s=w(a,o),c=s.dir,u=s.dirPath;if(!s.ignore){if(!I(o)){var l=g.get(o)||0;g.set(o,l+1)}u===v?n=!0:M(c,u)}}n&&M(h,v)}else e.refCount++}function M(n,r){var i=y.get(r);i?i.refCount++:y.set(r,{watcher:function(r,i){return t.watchDirectoryOfFailedLookupLocation(n,function(n){var r=t.toPath(n);c&&c.addOrDeleteFileOrDirectory(n,r),(!o&&i===v||E(i)||e.getDirectoryPath(r)===i)&&K(r,i===r)&&t.onInvalidatedResolution()},1)}(0,r),refCount:1})}function L(n){if(n.failedLookupLocations&&n.failedLookupLocations.length&&(n.refCount--,!n.refCount)){for(var r=!1,i=0,a=n.failedLookupLocations;i<a.length;i++){var o=a[i],s=t.toPath(o),c=w(o,s),u=c.dirPath;if(!c.ignore){var l=g.get(s);l&&(1===l?g.delete(s):(e.Debug.assert(l>1),g.set(s,l-1))),u===v?r=!0:R(u)}}r&&R(v)}}function R(e){y.get(e).refCount--}function B(e,t){var n=e.get(t);n&&(n.forEach(L),e.delete(t))}function z(e){B(u,e),B(p,e)}function j(t,n,r){var i=e.createMap();t.forEach(function(t,o){var s=e.getDirectoryPath(o),c=i.get(s);c||(c=e.createMap(),i.set(s,c)),t.forEach(function(t,i){c.has(i)||(c.set(i,!0),!t.isInvalidated&&n(t,r)&&(t.isInvalidated=!0,(a||(a=e.createMap())).set(o,!0)))})})}function J(n){var r;u.size>(r=t.maxNumberOfFilesToIterateForInvalidation||e.maxNumberOfFilesToIterateForInvalidation)||p.size>r?o=!0:(j(u,n,x),j(p,n,k))}function K(n,r){var i;if(r)i=function(e){return S(n,t.toPath(e))};else{var s=e.getDirectoryPath(n);if(N(n)||E(n)||N(s)||E(s))i=function(r){return t.toPath(r)===n||e.startsWith(t.toPath(r),n)};else{if(!I(n)&&!g.has(n))return!1;if(e.isEmittedFileOfProgram(t.getCurrentProgram(),n))return!1;i=function(e){return t.toPath(e)===n}}}var c=a&&a.size;return J(function(t){return e.some(t.failedLookupLocations,i)}),o||a&&a.size!==c}function U(){e.clearMap(b,e.closeFileWatcher)}function V(e,n){return t.watchTypeRootsDirectory(n,function(r){var i=t.toPath(r);c&&c.addOrDeleteFileOrDirectory(r,i),t.onChangedAutomaticTypeDirectiveNames();var a=function(e,t){if(!o){if(S(v,t))return v;var n=F(e,t),r=n.dirPath;return!n.ignore&&y.has(r)&&r}}(n,e);a&&K(i,a===i)&&t.onInvalidatedResolution()},1)}function q(n){var r=e.getDirectoryPath(e.getDirectoryPath(n)),i=t.toPath(r);return i===v||A(i)}}}(l||(l={})),function(e){var t=e.sys?{getCurrentDirectory:function(){return e.sys.getCurrentDirectory()},getNewLine:function(){return e.sys.newLine},getCanonicalFileName:e.createGetCanonicalFileName(e.sys.useCaseSensitiveFileNames)}:void 0;function n(n,r){var i=n===e.sys?t:{getCurrentDirectory:function(){return n.getCurrentDirectory()},getNewLine:function(){return n.newLine},getCanonicalFileName:e.createGetCanonicalFileName(n.useCaseSensitiveFileNames)};if(!r)return function(t){return n.write(e.formatDiagnostic(t,i))};var a=new Array(1);return function(t){a[0]=t,n.write(e.formatDiagnosticsWithColorAndContext(a,i)+i.getNewLine()),a[0]=void 0}}function r(t,n,r){!t.clearScreen||r.preserveWatchOutput||n.code===e.Diagnostics.Compilation_complete_Watching_for_file_changes.code||r.extendedDiagnostics||r.diagnostics||t.clearScreen()}function i(t,n){return n?function(n,i,a){r(t,n,a);var o="["+e.formatColorAndReset((new Date).toLocaleTimeString(),e.ForegroundColorEscapeSequences.Grey)+"] ";o+=""+e.flattenDiagnosticMessageText(n.messageText,t.newLine)+(i+i+i),t.write(o)}:function(n,i,a){r(t,n,a);var o=(new Date).toLocaleTimeString()+" - ";o+=""+e.flattenDiagnosticMessageText(n.messageText,t.newLine)+(i+i+i),t.write(o)}}function a(t,n,r){var i;try{i=r.readFile(t)}catch(n){var a=e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,n.message);return void r.onUnRecoverableConfigFileDiagnostic(a)}if(i){var o=e.parseJsonText(t,i);o.parseDiagnostics.forEach(function(e){return r.onConfigFileDiagnostic(e)});var s=r.getCurrentDirectory(),c=e.parseJsonSourceFileConfigFileContent(o,r,e.getNormalizedAbsolutePath(e.getDirectoryPath(t),s),n,e.getNormalizedAbsolutePath(t,s));return c.errors.forEach(function(e){return r.onConfigFileDiagnostic(e)}),c}a=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,t),r.onUnRecoverableConfigFileDiagnostic(a)}function o(t,n,r){var i=t.getSyntacticDiagnostics().slice(),a=!1;0===i.length&&(e.addRange(i,t.getOptionsDiagnostics()),e.addRange(i,t.getGlobalDiagnostics()),0===i.length&&(a=!0));var o=t.emit(),s=o.emittedFiles,c=o.emitSkipped;if(e.addRange(i,o.diagnostics),a&&e.addRange(i,t.getSemanticDiagnostics()),e.sortAndDeduplicateDiagnostics(i).forEach(n),r){var u=t.getCurrentDirectory();e.forEach(s,function(t){var n=e.getNormalizedAbsolutePath(t,u);r("TSFILE: "+n)}),t.getCompilerOptions().listFiles&&e.forEach(t.getSourceFiles(),function(e){r(e.fileName)})}return c&&i.length>0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:i.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}e.createDiagnosticReporter=n,e.createWatchStatusReporter=i,e.parseConfigFileWithSystem=function(t,n,r,i){var o=r;o.onConfigFileDiagnostic=i,o.onUnRecoverableConfigFileDiagnostic=function(t){return u(e.sys,i,t)};var s=a(t,n,o);return o.onConfigFileDiagnostic=void 0,o.onUnRecoverableConfigFileDiagnostic=void 0,s},e.getParsedCommandLineOfConfigFile=a,e.emitFilesAndReportErrors=o;var s={close:e.noop};function c(t,n,r,a){void 0===t&&(t=e.sys),n||(n=e.createEmitAndSemanticDiagnosticsBuilderProgram);var c=function(e){return t.write(e+t.newLine)};return{useCaseSensitiveFileNames:function(){return t.useCaseSensitiveFileNames},getNewLine:function(){return t.newLine},getCurrentDirectory:function(){return t.getCurrentDirectory()},getDefaultLibLocation:u,getDefaultLibFileName:function(t){return e.combinePaths(u(),e.getDefaultLibFileName(t))},fileExists:function(e){return t.fileExists(e)},readFile:function(e,n){return t.readFile(e,n)},directoryExists:function(e){return t.directoryExists(e)},getDirectories:function(e){return t.getDirectories(e)},readDirectory:function(e,n,r,i,a){return t.readDirectory(e,n,r,i,a)},realpath:t.realpath&&function(e){return t.realpath(e)},getEnvironmentVariable:t.getEnvironmentVariable&&function(e){return t.getEnvironmentVariable(e)},watchFile:t.watchFile?function(e,n,r){return t.watchFile(e,n,r)}:function(){return s},watchDirectory:t.watchDirectory?function(e,n,r){return t.watchDirectory(e,n,r)}:function(){return s},setTimeout:t.setTimeout?function(e,n){for(var r,i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];return(r=t.setTimeout).call.apply(r,[t,e,n].concat(i))}:e.noop,clearTimeout:t.clearTimeout?function(e){return t.clearTimeout(e)}:e.noop,trace:function(e){return t.write(e)},onWatchStatusChange:a||i(t),createDirectory:function(e){return t.createDirectory(e)},writeFile:function(e,n,r){return t.writeFile(e,n,r)},onCachedDirectoryStructureHostCreate:function(e){return e||t},createHash:t.createHash&&function(e){return t.createHash(e)},createProgram:n,afterProgramCreate:function(e){o(e,r,c)}};function u(){return e.getDirectoryPath(e.normalizePath(t.getExecutingFilePath()))}}function u(t,n,r){n(r),t.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}e.createWatchCompilerHostOfConfigFile=function(e,t,r,i,a,o){a=a||n(r);var s=c(r,i,a,o);return s.onConfigFileDiagnostic=a,s.onUnRecoverableConfigFileDiagnostic=function(e){return u(r,a,e)},s.configFileName=e,s.optionsToExtend=t,s},e.createWatchCompilerHostOfFilesAndCompilerOptions=function(e,t,r,i,a,o){var s=c(r,i,a||n(r),o);return s.rootFiles=e,s.options=t,s}}(l||(l={})),function(e){e.createWatchCompilerHost=function(t,n,r,i,a,o){return e.isArray(t)?e.createWatchCompilerHostOfFilesAndCompilerOptions(t,n,r,i,a,o):e.createWatchCompilerHostOfConfigFile(t,n,r,i,a,o)};var t=1;e.createWatchProgram=function(n){var r,i,a,o,s,c,u=e.createMap(),l=!1,_=!1,d=n.useCaseSensitiveFileNames(),p=n.getCurrentDirectory(),f=function(){return p},m=function(e,t){return n.readFile(e,t)},g=n.configFileName,y=n.optionsToExtend,h=void 0===y?{}:y,v=n.createProgram,b=n.rootFiles,x=n.options,k=n.configFileSpecs,S=n.configFileWildCardDirectories,D=g&&e.createCachedDirectoryStructureHost(n,p,d);D&&n.onCachedDirectoryStructureHostCreate&&n.onCachedDirectoryStructureHostCreate(D);var C=D||n,T={useCaseSensitiveFileNames:d,readDirectory:function(e,t,n,r,i){return C.readDirectory(e,t,n,r,i)},fileExists:function(e){return n.fileExists(e)},readFile:m,getCurrentDirectory:f,onConfigFileDiagnostic:n.onConfigFileDiagnostic,onUnRecoverableConfigFileDiagnostic:n.onUnRecoverableConfigFileDiagnostic};g&&!b&&Z();var E=n.trace&&function(e){n.trace(e+M)},N=E?x.extendedDiagnostics?e.WatchLogLevel.Verbose:x.diagnostis?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,A=N!==e.WatchLogLevel.None?E:e.noop,P=e.getWatchFactory(N,A),w=P.watchFile,F=P.watchFilePath,I=P.watchDirectory,O=e.createGetCanonicalFileName(d),M=K();A("Current directory: "+p+" CaseSensitiveFileNames: "+d),g&&w(n,g,function(){e.Debug.assert(!!g),i=e.ConfigFileProgramReloadLevel.Full,Y()},e.PollingInterval.High);var L={getSourceFile:function(e,t,n,r){return H(e,U(e),t,n,r)},getSourceFileByPath:H,getDefaultLibLocation:n.getDefaultLibLocation&&function(){return n.getDefaultLibLocation()},getDefaultLibFileName:function(e){return n.getDefaultLibFileName(e)},writeFile:function(t,r,i,a){try{e.performance.mark("beforeIOWrite"),function t(r){r.length>e.getRootLength(r)&&!n.directoryExists(r)&&(t(e.getDirectoryPath(r)),n.createDirectory(r))}(e.getDirectoryPath(e.normalizePath(t))),n.writeFile(t,r,i),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}},getCurrentDirectory:f,useCaseSensitiveFileNames:function(){return d},getCanonicalFileName:O,getNewLine:function(){return M},fileExists:W,readFile:m,trace:E,directoryExists:C.directoryExists&&function(e){return C.directoryExists(e)},getDirectories:C.getDirectories&&function(e){return C.getDirectories(e)},realpath:n.realpath&&function(e){return n.realpath(e)},getEnvironmentVariable:n.getEnvironmentVariable?function(e){return n.getEnvironmentVariable(e)}:function(){return""},onReleaseOldSourceFile:function(e,t){var n=u.get(e.path);n&&(V(n)?(c||(c=[])).push(e.path):n.sourceFile===e&&(n.fileWatcher&&n.fileWatcher.close(),u.delete(e.path),R.removeResolutionsOfFile(e.path)))},createHash:n.createHash&&function(e){return n.createHash(e)},toPath:U,getCompilationSettings:function(){return x},watchDirectoryOfFailedLookupLocation:ne,watchTypeRootsDirectory:ne,getCachedDirectoryStructureHost:function(){return D},onInvalidatedResolution:Y,onChangedAutomaticTypeDirectiveNames:function(){_=!0,Y()},maxNumberOfFilesToIterateForInvalidation:n.maxNumberOfFilesToIterateForInvalidation,getCurrentProgram:j,writeLog:A},R=e.createResolutionCache(L,g?e.getDirectoryPath(e.getNormalizedAbsolutePath(g,p)):p,!1);L.resolveModuleNames=n.resolveModuleNames?function(e,t,r){return n.resolveModuleNames(e,t,r)}:function(e,t,n){return R.resolveModuleNames(e,t,n)},L.resolveTypeReferenceDirectives=n.resolveTypeReferenceDirectives?function(e,t){return n.resolveTypeReferenceDirectives(e,t)}:function(e,t){return R.resolveTypeReferenceDirectives(e,t)};var B=!!n.resolveModuleNames||!!n.resolveTypeReferenceDirectives;return Q(e.Diagnostics.Starting_compilation_in_watch_mode),J(),ae(),g?{getCurrentProgram:z,getProgram:J}:{getCurrentProgram:z,getProgram:J,updateRootFileNames:function(t){e.Debug.assert(!g,"Cannot update root file names with config file watch mode"),b=t,Y()}};function z(){return r}function j(){return r&&r.getProgram()}function J(){A("Synchronizing program");var t=j();l&&(M=K(),t&&e.changesAffectModuleResolution(t.getCompilerOptions(),x)&&R.clear());var i=R.createHasInvalidatedResolution(B);if(e.isProgramUptoDate(j(),b,x,X,W,i,_))return r;N!==e.WatchLogLevel.None&&(A("CreatingProgramWith::"),A(" roots: "+JSON.stringify(b)),A(" options: "+JSON.stringify(x)));var o=l||!t;if(l=!1,R.startCachingPerDirectoryResolution(),L.hasInvalidatedResolution=i,L.hasChangedAutomaticTypeDirectiveNames=_,r=v(b,x,L,r),R.finishCachingPerDirectoryResolution(),e.updateMissingFilePathsWatch(r.getProgram(),a||(a=e.createMap()),re),o&&R.updateTypeRootsWatch(),c){for(var s=0,d=c;s<d.length;s++){var p=d[s];a.has(p)||u.delete(p)}c=void 0}return n.afterProgramCreate&&n.afterProgramCreate(r),Q(e.Diagnostics.Compilation_complete_Watching_for_file_changes),r}function K(){return e.getNewLineCharacter(x,function(){return n.getNewLine()})}function U(t){return e.toPath(t,p,O)}function V(e){return"number"==typeof e}function q(e){return!!e.sourceFile}function W(e){var t=U(e);return!!V(u.get(t))||C.fileExists(e)}function H(r,i,a,o,s){var c=u.get(i);if(!V(c)){if(!c||s||!q(c)||c.version.toString()!==c.sourceFile.version){var l=function(){var t;try{e.performance.mark("beforeIORead"),t=n.readFile(r,x.charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){o&&o(e.message)}return void 0!==t?e.createSourceFile(r,t,a):void 0}();if(c)s&&c.version++,l?(c.sourceFile=l,l.version=c.version.toString(),c.fileWatcher||(c.fileWatcher=F(n,r,ee,e.PollingInterval.Low,i))):(q(c)&&c.fileWatcher.close(),u.set(i,c.version));else if(l){l.version=t.toString();var _=F(n,r,ee,e.PollingInterval.Low,i);u.set(i,{sourceFile:l,version:t,fileWatcher:_})}else u.set(i,t);return l}return c.sourceFile}}function G(e){var t=u.get(e);void 0!==t&&(V(t)?u.set(e,{version:Number(t)+1}):t.version++)}function X(e){var t=u.get(e);return!t||V(t)?void 0:t.version.toString()}function Q(t){n.onWatchStatusChange&&n.onWatchStatusChange(e.createCompilerDiagnostic(t),M,x)}function Y(){n.setTimeout&&n.clearTimeout&&(s&&n.clearTimeout(s),s=n.setTimeout($,250))}function $(){switch(s=void 0,Q(e.Diagnostics.File_change_detected_Starting_incremental_compilation),i){case e.ConfigFileProgramReloadLevel.Partial:return t=e.getFileNamesFromConfigSpecs(k,e.getDirectoryPath(g),x,T),k.filesSpecs||0!==t.fileNames.length||n.onConfigFileDiagnostic(e.getErrorForNoInputFiles(k,g)),b=t.fileNames,void J();case e.ConfigFileProgramReloadLevel.Full:return A("Reloading config file: "+g),i=e.ConfigFileProgramReloadLevel.None,D&&D.clearCache(),Z(),l=!0,J(),void ae();default:return void J()}var t}function Z(){var t=e.getParsedCommandLineOfConfigFile(g,h,T);b=t.fileNames,x=t.options,k=t.configFileSpecs,S=t.wildcardDirectories}function ee(t,n,r){te(t,r,n),n===e.FileWatcherEventKind.Deleted&&u.get(r)&&R.invalidateResolutionOfFile(r),G(r),Y()}function te(e,t,n){D&&D.addOrDeleteFile(e,t,n)}function ne(e,t,r){return I(n,e,t,r)}function re(t){return F(n,t,ie,e.PollingInterval.Medium,t)}function ie(t,n,r){te(t,r,n),n===e.FileWatcherEventKind.Created&&a.has(r)&&(a.get(r).close(),a.delete(r),G(r),Y())}function ae(){S?e.updateWatchingWildcardDirectories(o||(o=e.createMap()),e.createMapFromTemplate(S),oe):o&&e.clearMap(o,e.closeFileWatcherOf)}function oe(t,n){return ne(t,function(n){e.Debug.assert(!!g);var r=U(n);D&&D.addOrDeleteFileOrDirectory(n,r),G(r),r===t||!e.hasExtension(r)||e.isSupportedSourceFileName(n,x)?i!==e.ConfigFileProgramReloadLevel.Full&&(i=e.ConfigFileProgramReloadLevel.Partial,Y()):A("Project: "+g+" Detected file add/remove of non supported extension: "+n)},n)}}}(l||(l={})),function(e){var t,n;function r(e){return e&&void 0!==e.enableAutoDiscovery&&void 0===e.enable?{enable:e.enableAutoDiscovery,include:e.include||[],exclude:e.exclude||[]}:e}function i(){if(t)return t;var n=e.createMap(),r=e.createMap();return e.forEach(e.optionDeclarations,function(e){n.set(e.name.toLowerCase(),e),e.shortName&&r.set(e.shortName,e.name)}),t={optionNameMap:n,shortOptionNames:r}}function a(t){return o(t,e.createCompilerDiagnostic)}function o(t,n){var r=e.arrayFrom(t.type.keys()).map(function(e){return"'"+e+"'"}).join(", ");return n(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--"+t.name,r)}function s(e,t,n){return F(e,I(t||""),n)}function c(t,n,r){if(void 0===n&&(n=""),n=I(n),!e.startsWith(n,"-")){if(""===n)return[];var i=n.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 s(t.element,e,r)}),function(e){return!!e})}}}function u(e,t){void 0===t&&(t=!1),e=e.toLowerCase();var n=i(),r=n.optionNameMap;if(t){var a=n.shortOptionNames.get(e);void 0!==a&&(e=a)}return r.get(e)}function l(t,n){var r=e.parseJsonText(t,n);return{config:f(r,r.parseDiagnostics),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function _(t,n){var r=d(t,n);return e.isString(r)?e.parseJsonText(t,r):{parseDiagnostics:[r]}}function d(t,n){var r;try{r=n(t)}catch(n){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,n.message)}return void 0===r?e.createCompilerDiagnostic(e.Diagnostics.The_specified_path_does_not_exist_Colon_0,t):r}function p(t){return e.arrayToMap(t,function(e){return e.name})}function f(e,t){return m(e,t,void 0,void 0)}function m(t,n,r,i){return t.jsonObject?a(t.jsonObject,r,void 0,void 0):{};function a(a,o,u,l){for(var _={},d=0,p=a.properties;d<p.length;d++){var f=p[d];if(268===f.kind){f.questionToken&&n.push(e.createDiagnosticForNodeInSourceFile(t,f.questionToken,e.Diagnostics._0_can_only_be_used_in_a_ts_file,"?")),c(f.name)||n.push(e.createDiagnosticForNodeInSourceFile(t,f.name,e.Diagnostics.String_literal_with_double_quotes_expected));var m=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(f.name)),g=o?o.get(m):void 0;u&&!g&&n.push(e.createDiagnosticForNodeInSourceFile(t,f.name,u,m));var h=s(f.initializer,g);if("undefined"!=typeof m&&(_[m]=h,i&&(l||o===r))){var v=y(g,h);l?v&&i.onSetValidOptionKeyValueInParent(l,g,h):o===r&&(v?i.onSetValidOptionKeyValueInRoot(m,f.name,h,f.initializer):g||i.onSetUnknownOptionKeyValueInRoot(m,f.name,h,f.initializer))}}else n.push(e.createDiagnosticForNodeInSourceFile(t,f,e.Diagnostics.Property_assignment_expected))}return _}function s(r,i){switch(r.kind){case 101:return p(i&&"boolean"!==i.type),!0;case 86:return p(i&&"boolean"!==i.type),!1;case 95:return p(i&&"extends"===i.name),null;case 9:c(r)||n.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.String_literal_with_double_quotes_expected)),p(i&&e.isString(i.type)&&"string"!==i.type);var u=r.text;if(i&&!e.isString(i.type)){var l=i;l.type.has(u.toLowerCase())||n.push(o(l,function(n,i,a){return e.createDiagnosticForNodeInSourceFile(t,r,n,i,a)}))}return u;case 8:return p(i&&"number"!==i.type),Number(r.text);case 196:if(38!==r.operator||8!==r.operand.kind)break;return p(i&&"number"!==i.type),-Number(r.operand.text);case 182:p(i&&"object"!==i.type);var _=r;return i?a(_,i.elementOptions,i.extraKeyDiagnosticMessage,i.name):a(_,void 0,void 0,void 0);case 181:return p(i&&"list"!==i.type),d=i&&i.element,r.elements.map(function(e){return s(e,d)})}var d;return void(i?p(!0):n.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal)));function p(a){a&&n.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,i.name,g(i)))}}function c(n){return e.isStringLiteral(n)&&e.isStringDoubleQuoted(n,t)}}function g(t){return"list"===t.type?"Array":e.isString(t.type)?t.type:"string"}function y(t,n){if(t)return!!v(n)||("list"===t.type?e.isArray(n):typeof n===(e.isString(t.type)?t.type:"string"))}function h(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function v(e){return void 0===e||null===e}function b(t,n){return e.getDirectoryPath(e.getNormalizedAbsolutePath(t,n))}function x(t,r,i,a,o,s,c,u){void 0===o&&(o={}),void 0===c&&(c=[]),void 0===u&&(u=[]),e.Debug.assert(void 0===t&&void 0!==r||void 0!==t&&void 0===r);var l=[],d=function t(r,i,a,o,s,c,u){o=e.normalizeSlashes(o);var l=e.getNormalizedAbsolutePath(s||"",o);if(c.indexOf(l)>=0)return u.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,c.concat([l]).join(" -> "))),{raw:r||f(i,u)};var d=r?function(t,n,r,i,a){e.hasProperty(t,"excludes")&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var o,s=T(t.compilerOptions,r,a,i),c=N(t.typeAcquisition||t.typingOptions,r,a,i);if(t.compileOnSave=function(t,n,r){if(e.hasProperty(t,e.compileOnSaveCommandLineOption.name)){var i=P(e.compileOnSaveCommandLineOption,t.compileOnSave,n,r);return!("boolean"!=typeof i||!i)&&i}}(t,r,a),t.extends)if(e.isString(t.extends)){var u=i?b(i,r):r;o=D(t.extends,n,u,a,e.createCompilerDiagnostic)}else a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));return{raw:t,options:s,typeAcquisition:c,extendedConfigPath:o}}(r,a,o,s,u):function(t,r,i,a,o){var s,c,u,l=C(a),_={onSetValidOptionKeyValueInParent:function(t,n,r){e.Debug.assert("compilerOptions"===t||"typeAcquisition"===t||"typingOptions"===t),("compilerOptions"===t?l:"typeAcquisition"===t?s||(s=E(a)):c||(c=E(a)))[n.name]=function t(n,r,i){if(!v(i)){if("list"===n.type){var a=n;return a.element.isFilePath||!e.isString(a.element.type)?e.filter(e.map(i,function(e){return t(a.element,r,e)}),function(e){return!!e}):i}return e.isString(n.type)?w(n,r,i):n.type.get(e.isString(i)?i.toLowerCase():i)}}(n,i,r)},onSetValidOptionKeyValueInRoot:function(n,s,c,l){switch(n){case"extends":var _=a?b(a,i):i;return void(u=D(c,r,_,o,function(n,r){return e.createDiagnosticForNodeInSourceFile(t,l,n,r)}));case"files":return void(0===c.length&&o.push(e.createDiagnosticForNodeInSourceFile(t,l,e.Diagnostics.The_files_list_in_config_file_0_is_empty,a||"tsconfig.json")))}},onSetUnknownOptionKeyValueInRoot:function(n,r,i,a){"excludes"===n&&o.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}},d=m(t,o,(void 0===n&&(n=p([{name:"compilerOptions",type:"object",elementOptions:p(e.optionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_compiler_option_0},{name:"typingOptions",type:"object",elementOptions:p(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"typeAcquisition",type:"object",elementOptions:p(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"extends",type:"string"},{name:"files",type:"list",element:{name:"files",type:"string"}},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},e.compileOnSaveCommandLineOption])),n),_);return s||(s=c?void 0!==c.enableAutoDiscovery?{enable:c.enableAutoDiscovery,include:c.include,exclude:c.exclude}:c:E(a)),{raw:d,options:l,typeAcquisition:s,extendedConfigPath:u}}(i,a,o,s,u);if(d.extendedConfigPath){c=c.concat([l]);var g=function(n,r,i,a,o,s){var c=_(r,function(e){return i.readFile(e)});if(n&&(n.extendedSourceFiles||(n.extendedSourceFiles=[])).push(c.fileName),!c.parseDiagnostics.length){var u,l=e.getDirectoryPath(r),d=t(void 0,c,i,l,e.getBaseFileName(r),o,s);if(n&&(u=n.extendedSourceFiles).push.apply(u,c.extendedSourceFiles),S(d)){var p=e.convertToRelativePath(l,a,e.identity),f=function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(p,t)},m=function(t){g[t]&&(g[t]=e.map(g[t],f))},g=d.raw;m("include"),m("exclude"),m("files")}return d}s.push.apply(s,c.parseDiagnostics)}(i,d.extendedConfigPath,a,o,c,u);if(g&&S(g)){var y=g.raw,h=d.raw,x=function(e){var t=h[e]||y[e];t&&(h[e]=t)};x("include"),x("exclude"),x("files"),void 0===h.compileOnSave&&(h.compileOnSave=y.compileOnSave),d.options=e.assign({},g.options,d.options)}}return d}(t,r,i,a,s,c,l),g=d.raw,y=e.extend(o,d.options||{});y.configFilePath=s,h(y,r);var x=function(){var t,n,o;if(e.hasProperty(g,"files")&&!v(g.files)&&(e.isArray(g.files)?0===(t=g.files).length&&I(e.Diagnostics.The_files_list_in_config_file_0_is_empty,s||"tsconfig.json"):I(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"files","Array")),e.hasProperty(g,"include")&&!v(g.include)&&(e.isArray(g.include)?n=g.include:I(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"include","Array")),e.hasProperty(g,"exclude")&&!v(g.exclude))e.isArray(g.exclude)?o=g.exclude:I(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"exclude","Array");else{var _=g.compilerOptions&&g.compilerOptions.outDir;_&&(o=[_])}void 0===t&&void 0===n&&(n=["**/*"]);var d=function(t,n,r,i,a,o,s,c,u){var l,_;return i=e.normalizePath(i),n&&(l=z(n,s,!1,u,"include")),r&&(_=z(r,s,!0,u,"exclude")),B({filesSpecs:t,includeSpecs:n,excludeSpecs:r,validatedIncludeSpecs:l,validatedExcludeSpecs:_,wildcardDirectories:function(t,n,r,i){var a=e.getRegularExpressionForWildcard(_,r,"exclude"),o=a&&new RegExp(a,i?"":"i"),s={};if(void 0!==t){for(var c=[],u=0,l=t;u<l.length;u++){var d=e.normalizePath(e.combinePaths(r,l[u]));if(!o||!o.test(d)){var p=j(d,i);if(p){var f=p.flags,m=s[g=p.key];(void 0===m||m<f)&&(s[g]=f,1===f&&c.push(g))}}}for(var g in s)if(e.hasProperty(s,g))for(var y=0,h=c;y<h.length;y++){var v=h[y];g!==v&&e.containsPath(v,g,r,!i)&&delete s[g]}}return s}(l,0,i,o.useCaseSensitiveFileNames)},i,a,o,c)}(t,n,o,s?b(s,a):a,y,i,l,u,r);return 0!==d.fileNames.length||e.hasProperty(g,"files")||0!==c.length||l.push(k(d.spec,s)),d}(),A=x.wildcardDirectories,F=x.spec;return{options:y,fileNames:x.fileNames,typeAcquisition:d.typeAcquisition||E(),raw:g,errors:l,wildcardDirectories:A,compileOnSave:!!g.compileOnSave,configFileSpecs:F};function I(t,n,i){r||l.push(e.createCompilerDiagnostic(t,n,i))}}function k(t,n){var r=t.excludeSpecs;return e.createCompilerDiagnostic(e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,n||"tsconfig.json",JSON.stringify(t.includeSpecs||[]),JSON.stringify(r||[]))}function S(e){return!!e.options}function D(t,n,r,i,a){if(t=e.normalizeSlashes(t),e.isRootedDiskPath(t)||e.startsWith(t,"./")||e.startsWith(t,"../")){var o=e.getNormalizedAbsolutePath(t,r);if(n.fileExists(o)||e.endsWith(o,".json")||n.fileExists(o+=".json"))return o;i.push(a(e.Diagnostics.File_0_does_not_exist,t))}else i.push(a(e.Diagnostics.A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not,t))}function C(t){return"jsconfig.json"===e.getBaseFileName(t)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function T(t,n,r,i){var a=C(i);return A(e.optionDeclarations,t,n,a,e.Diagnostics.Unknown_compiler_option_0,r),a}function E(t){return{enable:"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function N(t,n,i,a){var o=E(a),s=r(t);return A(e.typeAcquisitionDeclarations,s,n,o,e.Diagnostics.Unknown_type_acquisition_option_0,i),o}function A(t,n,r,i,a,o){if(n){var s=p(t);for(var c in n){var u=s.get(c);u?i[u.name]=P(u,n[c],r,o):o.push(e.createCompilerDiagnostic(a,c))}}}function P(t,n,r,i){if(y(t,n)){var a=t.type;return"list"===a&&e.isArray(n)?function(t,r,i,a){return e.filter(e.map(n,function(e){return P(t.element,e,i,a)}),function(e){return!!e})}(t,0,r,i):e.isString(a)?w(t,r,n):F(t,n,i)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,g(t)))}function w(t,n,r){return t.isFilePath&&""===(r=e.normalizePath(e.combinePaths(n,r)))&&(r="."),r}function F(e,t,n){if(!v(t)){var r=t.toLowerCase(),i=e.type.get(r);if(void 0!==i)return i;n.push(a(e))}}function I(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}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:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen},{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,es2018:5,esnext:6}),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_ES2018_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_none_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",es2018:"lib.es2018.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","es2017.typedarrays":"lib.es2017.typedarrays.d.ts","es2018.promise":"lib.es2018.promise.d.ts","es2018.regexp":"lib.es2018.regexp.d.ts","esnext.array":"lib.esnext.array.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},{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:"emitDeclarationOnly",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Only_emit_d_ts_declaration_files},{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:"strictFunctionTypes",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_function_types},{name:"strictPropertyInitialization",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_property_initialization_in_classes},{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:"esModuleInterop",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports},{name:"preserveSymlinks",type:"boolean",category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Do_not_resolve_the_real_path_of_symlinks},{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,esModuleInterop:!0},e.convertEnableAutoDiscoveryToEnable=r,e.createCompilerDiagnosticForInvalidCustomType=a,e.parseCustomTypeOption=s,e.parseListTypeOption=c,e.parseCommandLine=function(t,n){var r={},i=[],a=[];return o(t),{options:r,fileNames:i,errors:a};function o(t){for(var n=0;n<t.length;){var o=t[n];if(n++,64===o.charCodeAt(0))l(o.slice(1));else if(45===o.charCodeAt(0)){var _=u(o.slice(45===o.charCodeAt(1)?2:1),!0);if(_)if(_.isTSConfigOnly)a.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file,_.name));else switch(t[n]||"boolean"===_.type||a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_expects_an_argument,_.name)),_.type){case"number":r[_.name]=parseInt(t[n]),n++;break;case"boolean":var d=t[n];r[_.name]="false"!==d,"false"!==d&&"true"!==d||n++;break;case"string":r[_.name]=t[n]||"",n++;break;case"list":var p=c(_,t[n],a);r[_.name]=p||[],p&&n++;break;default:r[_.name]=s(_,t[n],a),n++}else a.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_compiler_option_0,o))}else i.push(o)}}function l(t){var r=n?n(t):e.sys.readFile(t);if(r){for(var i=[],s=0;;){for(;s<r.length&&r.charCodeAt(s)<=32;)s++;if(s>=r.length)break;var c=s;if(34===r.charCodeAt(c)){for(s++;s<r.length&&34!==r.charCodeAt(s);)s++;s<r.length?(i.push(r.substring(c+1,s)),s++):a.push(e.createCompilerDiagnostic(e.Diagnostics.Unterminated_quoted_string_in_response_file_0,t))}else{for(;r.charCodeAt(s)>32;)s++;i.push(r.substring(c,s))}}o(i)}else a.push(e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,t))}},e.readConfigFile=function(t,n){var r=d(t,n);return e.isString(r)?l(t,r):{config:{},error:r}},e.parseConfigFileTextToJson=l,e.readJsonConfigFile=_,e.convertToObject=f,e.generateTSConfig=function(t,n,r){var a=function(t){var n=e.createMap(),r=i().optionNameMap,a=function(i){if(e.hasProperty(t,i)){if(r.has(i)&&r.get(i).category===e.Diagnostics.Command_line_Options)return"continue";var a=t[i],s=r.get(i.toLowerCase());if(s){var c=function e(t){return"string"===t.type||"number"===t.type||"boolean"===t.type?void 0:"list"===t.type?e(t.element):t.type}(s);n.set(i,c?"list"===s.type?a.map(function(e){return o(e,c)}):o(a,c):a)}}};for(var s in t)a(s);return n}(e.extend(t,e.defaultInitCompilerOptions));return function(){for(var t=e.createMultiMap(),i=0,o=e.optionDeclarations;i<o.length;i++){var u=o[i],l=u.category;void 0!==l&&l!==e.Diagnostics.Command_line_Options&&l!==e.Diagnostics.Advanced_Options&&t.add(e.getLocaleSpecificMessage(l),u)}var _=0,d=0,p=[],f=[];t.forEach(function(t,n){0!==p.length&&(p.push(""),f.push("")),p.push("/* "+n+" */"),f.push("");for(var r=0,i=t;r<i.length;r++){var o,c=i[r];o=a.has(c.name)?'"'+c.name+'": '+JSON.stringify(a.get(c.name))+((d+=1)===a.size?"":","):'// "'+c.name+'": '+JSON.stringify(s(c))+",",p.push(o),f.push("/* "+(c.description&&e.getLocaleSpecificMessage(c.description)||c.name)+" */"),_=Math.max(o.length,_)}});var m=c(2),g=[];g.push("{"),g.push(m+'"compilerOptions": {');for(var y=0;y<p.length;y++){var h=p[y],v=f[y];g.push(h&&""+m+m+h+(v&&c(_-h.length+2)+v))}if(n.length){for(g.push(m+"},"),g.push(m+'"files": ['),y=0;y<n.length;y++)g.push(""+m+m+JSON.stringify(n[y])+(y===n.length-1?"":","));g.push(m+"]")}else g.push(m+"}");return g.push("}"),g.join(r)}();function o(t,n){return e.forEachEntry(n,function(e,n){if(e===t)return n})}function s(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":return e.isFilePath?"./":"";case"list":return[];case"object":return{};default:return e.type.keys().next().value}}function c(e){return Array(e+1).join(" ")}},e.parseJsonConfigFileContent=function(e,t,n,r,i,a,o){return x(e,void 0,t,n,r,i,a,o)},e.parseJsonSourceFileConfigFileContent=function(e,t,n,r,i,a,o){return x(void 0,e,t,n,r,i,a,o)},e.setConfigFileInOptions=h,e.isErrorNoInputFiles=function(t){return t.code===e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code},e.getErrorForNoInputFiles=k,e.convertCompilerOptionsFromJson=function(e,t,n){var r=[];return{options:T(e,t,r,n),errors:r}},e.convertTypeAcquisitionFromJson=function(e,t,n){var r=[];return{options:N(e,t,r,n),errors:r}};var O=/(^|\/)\*\*\/?$/,M=/(^|\/)\*\*\/(.*\/)?\.\.($|\/)/,L=/\/[^/]*?[*?][^/]*\//,R=/^[^*?]*(?=\/[^/]*[*?])/;function B(t,n,r,i,a){void 0===a&&(a=[]),n=e.normalizePath(n);var o=i.useCaseSensitiveFileNames?e.identity:e.toLowerCase,s=e.createMap(),c=e.createMap(),u=t.filesSpecs,l=t.validatedIncludeSpecs,_=t.validatedExcludeSpecs,d=t.wildcardDirectories,p=e.getSupportedExtensions(r,a);if(u)for(var f=0,m=u;f<m.length;f++){var g=e.getNormalizedAbsolutePath(m[f],n);s.set(o(g),g)}if(l&&l.length>0)for(var y=0,h=i.readDirectory(n,p,_,l,void 0);y<h.length;y++)if(!J(g=h[y],s,c,p,o)){K(g,c,p,o);var v=o(g);s.has(v)||c.has(v)||c.set(v,g)}var b=e.arrayFrom(s.values()),x=e.arrayFrom(c.values());return{fileNames:b.concat(x),wildcardDirectories:d,spec:t}}function z(t,n,r,i,a){return t.filter(function(t){var o=function(t,n){return!n&&O.test(t)?e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:M.test(t)?e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:void 0}(t,r);return void 0!==o&&n.push(function(t,n){if(i&&i.jsonObject)for(var r=0,o=e.getPropertyAssignment(i.jsonObject,a);r<o.length;r++){var s=o[r];if(e.isArrayLiteralExpression(s.initializer))for(var c=0,u=s.initializer.elements;c<u.length;c++){var l=u[c];if(e.isStringLiteral(l)&&l.text===n)return e.createDiagnosticForNodeInSourceFile(i,l,t,n)}}return e.createCompilerDiagnostic(t,n)}(o,t)),void 0===o})}function j(t,n){var r=R.exec(t);return r?{key:n?r[0]:r[0].toLowerCase(),flags:L.test(t)?1:0}:e.isImplicitGlob(t)?{key:t,flags:1}:void 0}function J(t,n,r,i,a){for(var o=e.getExtensionPriority(t,i),s=e.adjustExtensionPriority(o,i),c=0;c<s;c++){var u=a(e.changeExtension(t,i[c]));if(n.has(u)||r.has(u))return!0}return!1}function K(t,n,r,i){for(var a=e.getExtensionPriority(t,r),o=e.getNextLowestExtensionPriority(a,r);o<r.length;o++){var s=i(e.changeExtension(t,r[o]));n.delete(s)}}function U(t,n){switch(n.type){case"object":case"string":return"";case"number":return"number"==typeof t?t:"";case"boolean":return"boolean"==typeof t?t:"";case"list":var r=n.element;return e.isArray(t)?t.map(function(e){return U(e,r)}):"";default:return e.forEachEntry(n.type,function(e,n){if(e===t)return n})}}e.getFileNamesFromConfigSpecs=B,e.convertCompilerOptionsForTelemetry=function(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=u(n);void 0!==r&&(t[n]=U(e[n],r))}return t}}(l||(l={})),function(e){!function(e){var t=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=function(e){return new t(e)}}(e.ScriptSnapshot||(e.ScriptSnapshot={})),e.TextChange=function(){},function(e){e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference"}(e.HighlightSpanKind||(e.HighlightSpanKind={})),function(e){e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart"}(e.IndentStyle||(e.IndentStyle={})),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"}(e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={})),function(e){e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration"}(e.OutputFileType||(e.OutputFileType={})),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"}(e.EndOfLineState||(e.EndOfLineState={})),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"}(e.TokenClass||(e.TokenClass={})),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"}(e.ScriptElementKind||(e.ScriptElementKind={})),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.optionalModifier="optional"}(e.ScriptElementKindModifier||(e.ScriptElementKindModifier={})),function(e){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.ClassificationTypeNames||(e.ClassificationTypeNames={})),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"}(e.ClassificationType||(e.ClassificationType={}))}(l||(l={})),function(e){function t(t){switch(t.kind){case 148:case 230:case 180:case 151:case 150:case 268:case 269:case 153:case 152:case 154:case 155:case 156:case 232:case 190:case 191:case 267:case 260:return 1;case 147:case 234:case 235:case 165:return 2;case 291:return void 0===t.name?3:2;case 271:case 233:return 3;case 237:return e.isAmbientModule(t)?5:1===e.getModuleInstanceState(t)?5:4;case 236:case 245:case 246:case 241:case 242:case 247:case 248:return 7;case 272:return 5}return 7}function n(t){for(;145===t.parent.kind;)t=t.parent;return e.isInternalModuleImportEqualsDeclaration(t.parent)&&t.parent.moduleReference===t}function r(e,t){var n=i(e);return n&&n.parent&&n.parent.kind===t&&n.parent.expression===n}function i(e){return s(e)?e.parent:e}function a(t){return 71===t.kind&&e.isBreakOrContinueStatement(t.parent)&&t.parent.label===t}function o(t){return 71===t.kind&&e.isLabeledStatement(t.parent)&&t.parent.label===t}function s(e){return e&&e.parent&&183===e.parent.kind&&e.parent.name===e}e.scanner=e.createScanner(6,!0),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"}(e.SemanticMeaning||(e.SemanticMeaning={})),e.getMeaningFromDeclaration=t,e.getMeaningFromLocation=function(r){return 272===r.kind?1:247===r.parent.kind?7:n(r)?function(t){var n=145===t.kind?t:e.isQualifiedName(t.parent)&&t.parent.right===t?t.parent:void 0;return n&&241===n.parent.kind?7:4}(r):e.isDeclarationName(r)?t(r.parent):function(t){switch(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),t.kind){case 99:return!e.isExpressionNode(t);case 173:return!0}switch(t.parent.kind){case 161:return!0;case 205:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)}return!1}(r)?2:function(e){return function(e){var t=e,n=!0;if(145===t.parent.kind){for(;t.parent&&145===t.parent.kind;)t=t.parent;n=t.right===e}return 161===t.parent.kind&&!n}(e)||function(e){var t=e,n=!0;if(183===t.parent.kind){for(;t.parent&&183===t.parent.kind;)t=t.parent;n=t.name===e}if(!n&&205===t.parent.kind&&266===t.parent.parent.kind){var r=t.parent.parent.parent;return 233===r.kind&&108===t.parent.parent.token||234===r.kind&&85===t.parent.parent.token}return!1}(e)}(r)?4:e.isTypeParameterDeclaration(r.parent)?(e.Debug.assert(e.isJSDocTemplateTag(r.parent.parent)),2):1},e.isInRightSideOfInternalImportEqualsDeclaration=n,e.isCallExpressionTarget=function(e){return r(e,185)},e.isNewExpressionTarget=function(e){return r(e,186)},e.climbPastPropertyAccess=i,e.getTargetLabel=function(e,t){for(;e;){if(226===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}},e.isJumpStatementTarget=a,e.isLabelOfLabeledStatement=o,e.isLabelName=function(e){return o(e)||a(e)},e.isRightSideOfQualifiedName=function(e){return 145===e.parent.kind&&e.parent.right===e},e.isRightSideOfPropertyAccess=s,e.isNameOfModuleDeclaration=function(e){return 237===e.parent.kind&&e.parent.name===e},e.isNameOfFunctionDeclaration=function(t){return 71===t.kind&&e.isFunctionLike(t.parent)&&t.parent.name===t},e.isLiteralNameOfPropertyDeclarationOrIndexAccess=function(t){switch(t.parent.kind){case 151:case 150:case 268:case 271:case 153:case 152:case 155:case 156:case 237:return e.getNameOfDeclaration(t.parent)===t;case 184:return t.parent.argumentExpression===t;case 146:return!0;case 177:return 175===t.parent.parent.kind}},e.isExpressionOfExternalModuleImportEqualsDeclaration=function(t){return e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t},e.getContainerNode=function(e){for(291===e.kind&&(e=e.parent.parent);;){if(!(e=e.parent))return;switch(e.kind){case 272:case 153:case 152:case 232:case 190:case 155:case 156:case 233:case 234:case 236:case 237:return e}}},e.getNodeKind=function t(n){switch(n.kind){case 272:return e.isExternalModule(n)?"module":"script";case 237:return"module";case 233:case 203:return"class";case 234:return"interface";case 235:return"type";case 236:return"enum";case 230:return o(n);case 180:return o(e.getRootDeclaration(n));case 191:case 232:case 190:return"function";case 155:return"getter";case 156:return"setter";case 153:case 152:return"method";case 151:case 150:return"property";case 159:return"index";case 158:return"construct";case 157:return"call";case 154:return"constructor";case 147:return"type parameter";case 271:return"enum member";case 148:return e.hasModifier(n,92)?"property":"parameter";case 241:case 246:case 243:case 250:case 244:return"alias";case 291:return"type";case 198:var r=e.getSpecialPropertyAssignmentKind(n),i=n.right;switch(r){case 0:return"";case 1:case 2:var a=t(i);return""===a?"const":a;case 3:return e.isFunctionExpression(i)?"method":"property";case 4:return"property";case 5:return e.isFunctionExpression(i)?"method":"property";case 6:return"local class";default:return e.assertTypeIsNever(r),""}default:return""}function o(t){return e.isConst(t)?"const":e.isLet(t)?"let":"var"}},e.isThis=function(t){switch(t.kind){case 99:return!0;case 71:return e.identifierIsThisKeyword(t)&&148===t.parent.kind;default:return!1}};var c=/^\/\/\/\s*</;function u(e,t){return l(e.pos,e.end,t)}function l(e,t,n){return e<=n.pos&&t>=n.end}function _(e,t,n,r){return Math.max(e,n)<Math.min(t,r)}function d(t,n,r){var i=t.getChildren(r);if(i.length){var a=e.lastOrUndefined(i);if(a.kind===n)return!0;if(25===a.kind&&1!==i.length)return i[i.length-2].kind===n}return!1}function p(e,t,n){return!!f(e,t,n)}function f(t,n,r){return e.find(t.getChildren(r),function(e){return e.kind===n})}function m(t){var n=e.find(t.parent.getChildren(),function(n){return e.isSyntaxList(n)&&u(n,t)});return e.Debug.assert(!n||e.contains(n.getChildren(),t)),n}function g(e,t,n,r){return h(e,t,!1,r,!1,n)}function y(e,t,n,r){return h(e,t,!0,void 0,r,n)}function h(t,n,r,i,a,o){var s=t;e:for(;;){if(e.isToken(s))return s;for(var c=0,u=s.getChildren();c<u.length;c++){var l=u[c];if(o||!e.isJSDocNode(l)){if((r?l.getFullStart():l.getStart(t,o))>n)break;var _=l.getEnd();if(n<_||n===_&&(1===l.kind||a)){s=l;continue e}if(i&&_===n){var d=v(n,t,l);if(d&&i(d))return d}}}return s}}function v(t,n,r,i){var a=function a(o){if(b(o))return o;for(var s=o.getChildren(n),c=0;c<s.length;c++){var u,l=s[c];if(t<l.end)return l.getStart(n,i)>=t||!T(l)||S(l)?(u=k(s,c))&&x(u,n):a(l)}return e.Debug.assert(void 0!==r||272===o.kind||e.isJSDocCommentContainingNode(o)),s.length?(u=k(s,s.length))&&x(u,n):void 0}(r||n);return e.Debug.assert(!(a&&S(a))),a}function b(t){return e.isToken(t)&&!S(t)}function x(e,t){if(b(e))return e;var n=e.getChildren(t),r=k(n,n.length);return r&&x(r,t)}function k(t,n){for(var r=n-1;r>=0;r--)if(S(t[r]))e.Debug.assert(r>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(T(t[r]))return t[r]}function S(t){return e.isJsxText(t)&&t.containsOnlyWhiteSpaces}function D(e,t,n){for(var r=e.kind,i=0;;){if(!(e=v(e.getFullStart(),n)))return;if(e.kind===t){if(0===i)return e;i--}else e.kind===r&&i++}}function C(t,n,r,i){return!!e.formatting.getRangeOfEnclosingComment(t,n,!1,void 0,r,i)}function T(e){return 0!==e.getWidth()}function E(t){return 71===t||e.isKeyword(t)}function N(e,t){return{span:e,newText:t}}e.getLineStartPositionForPosition=function(t,n){return e.getLineStarts(n)[n.getLineAndCharacterOfPosition(t).line]},e.rangeContainsRange=u,e.startEndContainsRange=l,e.rangeContainsStartEnd=function(e,t,n){return e.pos<=t&&e.end>=n},e.rangeOverlapsWithStartEnd=function(e,t,n){return _(e.pos,e.end,t,n)},e.startEndOverlapsWithStartEnd=_,e.positionBelongsToNode=function(t,n,r){return e.Debug.assert(t.pos<=n),n<t.end||!function t(n,r){if(e.nodeIsMissing(n))return!1;switch(n.kind){case 233:case 234:case 236:case 182:case 178:case 165:case 211:case 238:case 239:case 245:case 249:return d(n,18,r);case 267:return t(n.block,r);case 186:if(!n.arguments)return!0;case 185:case 189:case 172:return d(n,20,r);case 162:case 163:return t(n.type,r);case 154:case 155:case 156:case 232:case 190:case 153:case 152:case 158:case 157:case 191:return n.body?t(n.body,r):n.type?t(n.type,r):p(n,20,r);case 237:return n.body&&t(n.body,r);case 215:return t(n.elseStatement?n.elseStatement:n.thenStatement,r);case 214:return t(n.expression,r)||p(n,25,r);case 181:case 179:case 184:case 146:case 167:return d(n,22,r);case 159:return n.type?t(n.type,r):p(n,22,r);case 264:case 265:return!1;case 218:case 219:case 220:case 217:return t(n.statement,r);case 216:return p(n,106,r)?d(n,20,r):t(n.statement,r);case 164:return t(n.exprName,r);case 193:case 192:case 194:case 201:case 202:return t(n.expression,r);case 187:return t(n.template,r);case 200:return t(e.lastOrUndefined(n.templateSpans),r);case 209:return e.nodeIsPresent(n.literal);case 248:case 242:return e.nodeIsPresent(n.moduleSpecifier);case 196:return t(n.operand,r);case 198:return t(n.right,r);case 199:return t(n.whenFalse,r);default:return!0}}(t,r)},e.findListItemInfo=function(t){var n=m(t);if(n){var r=n.getChildren();return{listItemIndex:e.indexOfNode(r,t),list:n}}},e.hasChildOfKind=p,e.findChildOfKind=f,e.findContainingList=m,e.getTouchingWord=function(e,t,n){return g(e,t,n,function(e){return E(e.kind)})},e.getTouchingPropertyName=function(e,t,n){return g(e,t,n,function(e){return 9===(t=e.kind)||8===t||E(t);var t})},e.getTouchingToken=g,e.getTokenAtPosition=y,e.findTokenOnLeftOfPosition=function(t,n){var r=y(t,n,!1);return e.isToken(r)&&n>r.getStart(t)&&n<r.getEnd()?r:v(n,t)},e.findNextToken=function(t,n){return function n(r){if(e.isToken(r)&&r.pos===t.end)return r;for(var i=0,a=r.getChildren();i<a.length;i++){var o=a[i];if((o.pos<=t.pos&&o.end>t.end||o.pos===t.end)&&T(o))return n(o)}}(n)},e.findPrecedingToken=v,e.isInString=function(t,n,r){if(void 0===r&&(r=v(n,t)),r&&e.isStringTextContainingNode(r)){var i=r.getStart(),a=r.getEnd();if(i<n&&n<a)return!0;if(n===a)return!!r.isUnterminated}return!1},e.isInsideJsxElementOrAttribute=function(e,t){var n=y(e,t,!1);return!!n&&(10===n.kind||27===n.kind&&10===n.parent.kind||27===n.kind&&263===n.parent.kind||!(!n||18!==n.kind||263!==n.parent.kind)||27===n.kind&&256===n.parent.kind)},e.isInTemplateString=function(t,n){var r=y(t,n,!1);return e.isTemplateLiteralKind(r.kind)&&n>r.getStart(t)},e.findPrecedingMatchingToken=D,e.isPossiblyTypeArgumentPosition=function(t,n){for(var r=0;t;){switch(t.kind){case 27:var i=(t=v(t.getFullStart(),n))&&e.isIdentifier(t);if(!r||!i)return i;r--;break;case 47:r=3;break;case 46:r=2;break;case 29:r++;break;case 18:if(!(t=D(t,17,n)))return!1;break;case 20:if(!(t=D(t,19,n)))return!1;break;case 22:if(!(t=D(t,21,n)))return!1;break;case 26:case 36:case 71:case 9:case 8:case 101:case 86:case 103:case 85:case 128:case 23:case 49:case 55:case 56:break;default:if(e.isTypeNode(t))break;return!1}t=v(t.getFullStart(),n)}return!1},e.isInComment=C,e.hasDocComment=function(t,n){var r=y(t,n,!1),i=e.getLeadingCommentRanges(t.text,r.pos);return e.forEach(i,function(e){var n=t.text;return n.length>=e.pos+3&&"/"===n[e.pos]&&"*"===n[e.pos+1]&&"*"===n[e.pos+2]})},e.getNodeModifiers=function(t){var n=e.getCombinedModifierFlags(t),r=[];return 8&n&&r.push("private"),16&n&&r.push("protected"),4&n&&r.push("public"),32&n&&r.push("static"),128&n&&r.push("abstract"),1&n&&r.push("export"),2097152&t.flags&&r.push("declare"),r.length>0?r.join(","):""},e.getTypeArgumentOrTypeParameterList=function(t){return 161===t.kind||185===t.kind?t.typeArguments:e.isFunctionLike(t)||233===t.kind||234===t.kind?t.typeParameters:void 0},e.isWord=E,e.isComment=function(e){return 2===e||3===e},e.isStringOrRegularExpressionOrTemplateLiteral=function(t){return!(9!==t&&12!==t&&!e.isTemplateLiteralKind(t))},e.isPunctuation=function(e){return 17<=e&&e<=70},e.isInsideTemplateLiteral=function(t,n){return e.isTemplateLiteralKind(t.kind)&&t.getStart()<n&&n<t.getEnd()||!!t.isUnterminated&&n===t.getEnd()},e.isAccessibilityModifier=function(e){switch(e){case 114:case 112:case 113:return!0}return!1},e.cloneCompilerOptions=function(t){var n=e.clone(t);return e.setConfigFileInOptions(n,t&&t.configFile),n},e.isArrayLiteralOrObjectLiteralDestructuringPattern=function e(t){if(181===t.kind||182===t.kind){if(198===t.parent.kind&&t.parent.left===t&&58===t.parent.operatorToken.kind)return!0;if(220===t.parent.kind&&t.parent.initializer===t)return!0;if(e(268===t.parent.kind?t.parent.parent:t.parent))return!0}return!1},e.hasTrailingDirectorySeparator=function(e){var t=e.charAt(e.length-1);return"/"===t||"\\"===t},e.isInReferenceComment=function(e,t){return C(e,t,void 0,function(t){var n=e.text.substring(t.pos,t.end);return c.test(n)})},e.isInNonReferenceComment=function(e,t){return C(e,t,void 0,function(t){var n=e.text.substring(t.pos,t.end);return!c.test(n)})},e.createTextSpanFromNode=function(t,n){return e.createTextSpanFromBounds(t.getStart(n),t.getEnd())},e.createTextSpanFromRange=function(t){return e.createTextSpanFromBounds(t.pos,t.end)},e.createTextChangeFromStartLength=function(t,n,r){return N(e.createTextSpan(t,n),r)},e.createTextChange=N,e.typeKeywords=[119,122,128,131,95,134,135,137,138,105,140,141],e.isTypeKeyword=function(t){return e.contains(e.typeKeywords,t)},e.isExternalModuleSymbol=function(t){return e.Debug.assert(!!(1536&t.flags)),34===t.name.charCodeAt(0)},e.nodeSeenTracker=function(){var t=[];return function(n){var r=e.getNodeId(n);return!t[r]&&(t[r]=!0)}},e.addToSeen=function(e,t){return t=String(t),!e.has(t)&&(e.set(t,!0),!0)},e.getSnapshotText=function(e){return e.getText(0,e.getLength())},e.repeatString=function(e,t){for(var n="",r=0;r<t;r++)n+=e;return n}}(l||(l={})),function(e){function t(e){return e.declarations&&e.declarations.length>0&&148===e.declarations[0].kind}e.isFirstDeclarationOfSymbolParameter=t;var n=function(){var t,n,a;l();var o=function(t){return u(t,e.SymbolDisplayPartKind.text)};return{displayParts:function(){return t},writeKeyword:function(t){return u(t,e.SymbolDisplayPartKind.keyword)},writeOperator:function(t){return u(t,e.SymbolDisplayPartKind.operator)},writePunctuation:function(t){return u(t,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(t){return u(t,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(t){return u(t,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(t){return u(t,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(t){return u(t,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(t){return u(t,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:function(e,n){c(),t.push(r(e,n))},writeLine:function(){t.push(s()),n=!0},write:o,writeTextOfNode:o,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},rawWrite:e.notImplemented,getIndent:function(){return a},increaseIndent:function(){a++},decreaseIndent:function(){a--},clear:l,trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function c(){if(n){var r=e.getIndentString(a);r&&t.push(i(r,e.SymbolDisplayPartKind.space)),n=!1}}function u(e,n){c(),t.push(i(e,n))}function l(){t=[],n=!0,a=0}}();function r(n,r){return i(n,function(n){var r=n.flags;return 3&r?t(n)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:4&r?e.SymbolDisplayPartKind.propertyName:32768&r?e.SymbolDisplayPartKind.propertyName:65536&r?e.SymbolDisplayPartKind.propertyName:8&r?e.SymbolDisplayPartKind.enumMemberName:16&r?e.SymbolDisplayPartKind.functionName:32&r?e.SymbolDisplayPartKind.className:64&r?e.SymbolDisplayPartKind.interfaceName:384&r?e.SymbolDisplayPartKind.enumName:1536&r?e.SymbolDisplayPartKind.moduleName:8192&r?e.SymbolDisplayPartKind.methodName:262144&r?e.SymbolDisplayPartKind.typeParameterName:524288&r?e.SymbolDisplayPartKind.aliasName:2097152&r?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}(r))}function i(t,n){return{text:t,kind:e.SymbolDisplayPartKind[n]}}function a(t){return i(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function o(t){return i(t,e.SymbolDisplayPartKind.text)}function s(){return i("\n",e.SymbolDisplayPartKind.lineBreak)}function c(e){try{return e(n),n.displayParts()}finally{n.clear()}}function u(t){return e.isSingleOrDoubleQuote(t.charCodeAt(0))}function l(t,n){return e.ensureScriptKind(t,n&&n.getScriptKind&&n.getScriptKind(t))}function _(t){if(void 0!==t){var n=e.visitEachChild(t,_,e.nullTransformationContext);if(n===t){var r=e.getSynthesizedClone(t);return e.isStringLiteral(r)?r.textSourceNode=t:e.isNumericLiteral(r)&&(r.numericLiteralFlags=t.numericLiteralFlags),r.pos=t.pos,r.end=t.end,r}return n.parent=void 0,n}}function d(e){return e.forEachChild(function(e){return e})}function p(t){var n;return t.forEachChild(function(e){n=e},function(t){t.length&&(n=e.last(t))}),n}e.symbolPart=r,e.displayPart=i,e.spacePart=function(){return i(" ",e.SymbolDisplayPartKind.space)},e.keywordPart=a,e.punctuationPart=function(t){return i(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation)},e.operatorPart=function(t){return i(e.tokenToString(t),e.SymbolDisplayPartKind.operator)},e.textOrKeywordPart=function(t){var n=e.stringToToken(t);return void 0===n?o(t):a(n)},e.textPart=o,e.getNewLineOrDefaultFromHost=function(e,t){return t&&t.newLineCharacter||e.getNewLine&&e.getNewLine()||"\r\n"},e.lineBreakPart=s,e.mapToDisplayParts=c,e.typeToDisplayParts=function(e,t,n,r){return c(function(i){e.writeType(t,n,1024|r,i)})},e.symbolToDisplayParts=function(e,t,n,r,i){return c(function(a){e.writeSymbol(t,n,r,8|i,a)})},e.signatureToDisplayParts=function(e,t,n,r){return r|=25632,c(function(i){e.writeSignature(t,n,r,void 0,i)})},e.isImportOrExportSpecifierName=function(e){return e.parent&&(246===e.parent.kind||250===e.parent.kind)&&e.parent.propertyName===e},e.stripQuotes=function(e){var t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&u(e)?e.substring(1,t-1):e},e.startsWithQuote=u,e.scriptKindIs=function(t,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var a=l(t,n);return e.forEach(r,function(e){return e===a})},e.getScriptKind=l,e.getUniqueSymbolId=function(t,n){return e.getSymbolId(e.skipAlias(t,n))},e.getFirstNonSpaceCharacterPosition=function(t,n){for(;e.isWhiteSpaceLike(t.charCodeAt(n));)n+=1;return n},e.getSynthesizedDeepClone=_,e.getSynthesizedDeepClones=function(t){return t&&e.createNodeArray(t.map(_),t.hasTrailingComma)},e.suppressLeadingAndTrailingTrivia=function(t){function n(t,r,i){e.addEmitFlags(t,r);var a=i(t);a&&n(a,r,i)}e.Debug.assertDefined(t),n(t,512,d),n(t,1024,p)}}(l||(l={})),function(e){e.createClassifier=function(){var o=e.createScanner(6,!1);function s(i,s,c){var u=0,l=0,_=[],d=function(t){switch(t){case 3:return{prefix:'"\\\n'};case 2:return{prefix:"'\\\n"};case 1:return{prefix:"/*\n"};case 4:return{prefix:"`\n"};case 5:return{prefix:"}\n",pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return e.Debug.assertNever(t)}}(s),p=d.prefix;i=p+i;var f=p.length;d.pushTemplate&&_.push(14),o.setText(i);var m=0,g=[],y=0;do{u=o.scan(),e.isTrivia(u)||(b(),l=u);var h=o.getTextPos();if(r(o.getTokenPos(),h,f,a(u),g),h>=i.length){var v=n(o,u,e.lastOrUndefined(_));void 0!==v&&(m=v)}}while(1!==u);function b(){switch(u){case 41:case 63:t[l]||12!==o.reScanSlashToken()||(u=12);break;case 27:71===l&&y++;break;case 29:y>0&&y--;break;case 119:case 137:case 134:case 122:case 138:y>0&&!c&&(u=71);break;case 14:_.push(u);break;case 17:_.length>0&&_.push(u);break;case 18:if(_.length>0){var n=e.lastOrUndefined(_);14===n?16===(u=o.reScanTemplateToken())?_.pop():e.Debug.assertEqual(u,15,"Should have been a template middle."):(e.Debug.assertEqual(n,17,"Should have been an open brace"),_.pop())}break;default:if(!e.isKeyword(u))break;23===l?u=71:e.isKeyword(l)&&e.isKeyword(u)&&!function(t,n){if(!e.isAccessibilityModifier(l))return!0;switch(n){case 125:case 136:case 123:case 115:return!0;default:return!1}}(0,u)&&(u=71)}}return{endOfLineState:m,spans:g}}return{getClassificationsForLine:function(t,n,r){return function(t,n){for(var r=[],a=t.spans,o=0,s=0;s<a.length;s+=3){var c=a[s],u=a[s+1],l=a[s+2];if(o>=0){var _=c-o;_>0&&r.push({length:_,classification:e.TokenClass.Whitespace})}r.push({length:u,classification:i(l)}),o=c+u}var d=n.length-o;return d>0&&r.push({length:d,classification:e.TokenClass.Whitespace}),{entries:r,finalLexState:t.endOfLineState}}(s(t,n,r),t)},getEncodedLexicalClassifications:s}};var t=e.arrayToNumericMap([71,9,8,12,99,43,44,20,22,18,101,86],function(e){return e},function(){return!0});function n(t,n,r){switch(n){case 9:if(!t.isUnterminated())return;for(var i=t.getTokenText(),a=i.length-1,o=0;92===i.charCodeAt(a-o);)o++;if(0==(1&o))return;return 34===i.charCodeAt(0)?3:2;case 3:return t.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(n)){if(!t.isUnterminated())return;switch(n){case 16:return 5;case 13:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+n)}}return 14===r?6:void 0}}function r(e,t,n,r,i){if(8!==r){0===e&&n>0&&(e+=n);var a=t-e;a>0&&i.push(e-n,a,r)}}function i(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:return e.TokenClass.Identifier}}function a(t){if(e.isKeyword(t))return 3;if(function(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}}(t)||function(e){switch(e){case 37:case 38:case 52:case 51:case 43:case 44:return!0;default:return!1}}(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}}function o(e,t){switch(t){case 237:case 233:case 234:case 232:e.throwIfCancellationRequested()}}function s(t,n,r,i,a){var s=[];return r.forEachChild(function c(u){if(u&&e.textSpanIntersectsWith(a,u.pos,u.getFullWidth())){if(o(n,u.kind),e.isIdentifier(u)&&!e.nodeIsMissing(u)&&i.has(u.escapedText)){var l=t.getSymbolAtLocation(u),_=l&&function t(n,r,i){var a=n.getFlags();return 0==(2885600&a)?void 0:32&a?11:384&a?12:524288&a?16:1536&a?4&r||1&r&&function(t){return e.some(t.declarations,function(t){return e.isModuleDeclaration(t)&&1===e.getModuleInstanceState(t)})}(n)?14:void 0:2097152&a?t(i.getAliasedSymbol(n),r,i):2&r?64&a?13:262144&a?15:void 0:void 0}(l,e.getMeaningFromLocation(u),t);_&&function(e,t,n){s.push(e),s.push(t-e),s.push(n)}(u.getStart(r),u.getEnd(),_)}u.forEachChild(c)}}),{spans:s,endOfLineState:0}}function c(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value"}}function u(t){e.Debug.assert(t.spans.length%3==0);for(var n=t.spans,r=[],i=0;i<n.length;i+=3)r.push({textSpan:e.createTextSpan(n[i],n[i+1]),classificationType:c(n[i+2])});return r}function l(t,n,r){var i=r.start,a=r.length,s=e.createScanner(6,!1,n.languageVariant,n.text),c=e.createScanner(6,!1,n.languageVariant,n.text),u=[];return h(n),{spans:u,endOfLineState:0};function l(e,t,n){u.push(e),u.push(t),u.push(n)}function _(t,r,i,a){if(3===r){var o=e.parseIsolatedJSDocComment(n.text,i,a);if(o&&o.jsDoc)return o.jsDoc.parent=t,void function(e){var t=e.pos;if(e.tags)for(var n=0,r=e.tags;n<r.length;n++){var i=r[n];switch(i.pos!==t&&d(t,i.pos-t),l(i.atToken.pos,i.atToken.end-i.atToken.pos,10),l(i.tagName.pos,i.tagName.end-i.tagName.pos,18),t=i.tagName.end,i.kind){case 287:a(i);break;case 290:p(i);break;case 289:case 288:h(i.typeExpression)}t=i.end}return void(t!==e.end&&d(t,e.end-t));function a(e){e.isNameFirst&&(d(t,e.name.pos-t),l(e.name.pos,e.name.end-e.name.pos,17),t=e.name.end),e.typeExpression&&(d(t,e.typeExpression.pos-t),h(e.typeExpression),t=e.typeExpression.end),e.isNameFirst||(d(t,e.name.pos-t),l(e.name.pos,e.name.end-e.name.pos,17),t=e.name.end)}}(o.jsDoc)}d(i,a)}function d(e,t){l(e,t,1)}function p(e){for(var t=0,n=e.getChildren();t<n.length;t++)h(n[t])}function f(t,n,r){var i;for(i=n;i<r&&!e.isLineBreak(t.charCodeAt(i));i++);for(l(n,i-n,1),c.setTextPos(i);c.getTextPos()<r;)m()}function m(){var e=c.getTextPos(),t=c.scan(),n=c.getTextPos(),r=y(t);r&&l(e,n-e,r)}function g(t){if(e.isJSDoc(t))return!0;if(e.nodeIsMissing(t))return!0;var r=function(e){switch(e.parent&&e.parent.kind){case 255:if(e.parent.tagName===e)return 19;break;case 256:if(e.parent.tagName===e)return 20;break;case 254:if(e.parent.tagName===e)return 21;break;case 260:if(e.parent.name===e)return 22}}(t);if(!e.isToken(t)&&10!==t.kind&&void 0===r)return!1;var i=10===t.kind?t.pos:function(t){for(s.setTextPos(t.pos);;){var r=s.getTextPos();if(!e.couldStartTrivia(n.text,r))return r;var i=s.scan(),a=s.getTextPos(),o=a-r;if(!e.isTrivia(i))return r;switch(i){case 4:case 5:continue;case 2:case 3:_(t,i,r,o),s.setTextPos(a);continue;case 7:var c=n.text,u=c.charCodeAt(r);if(60===u||62===u){l(r,o,1);continue}e.Debug.assert(124===u||61===u),f(c,r,a);break;case 6:break;default:e.Debug.assertNever(i)}}}(t),a=t.end-i;if(e.Debug.assert(a>=0),a>0){var o=r||y(t.kind,t);o&&l(i,a,o)}return!0}function y(t,n){if(e.isKeyword(t))return 3;if((27===t||29===t)&&n&&e.getTypeArgumentOrTypeParameterList(n.parent))return 10;if(e.isPunctuation(t)){if(n){if(58===t&&(230===n.parent.kind||151===n.parent.kind||148===n.parent.kind||260===n.parent.kind))return 5;if(198===n.parent.kind||196===n.parent.kind||197===n.parent.kind||199===n.parent.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 260===n.parent.kind?24:6;if(12===t)return 6;if(e.isTemplateLiteralKind(t))return 6;if(10===t)return 23;if(71===t){if(n)switch(n.parent.kind){case 233:return n.parent.name===n?11:void 0;case 147:return n.parent.name===n?15:void 0;case 234:return n.parent.name===n?13:void 0;case 236:return n.parent.name===n?12:void 0;case 237:return n.parent.name===n?14:void 0;case 148:return n.parent.name===n?e.isThisIdentifier(n)?3:17:void 0}return 2}}function h(r){if(r&&e.decodedTextSpanIntersectsWith(i,a,r.pos,r.getFullWidth())){o(t,r.kind);for(var s=0,c=r.getChildren(n);s<c.length;s++){var u=c[s];g(u)||h(u)}}}}e.getSemanticClassifications=function(e,t,n,r,i){return u(s(e,t,n,r,i))},e.getEncodedSemanticClassifications=s,e.getSyntacticClassifications=function(e,t,n){return u(l(e,t,n))},e.getEncodedSyntacticClassifications=l}(l||(l={})),function(e){!function(t){!function(t){function n(e,t,n){return{name:e,kind:t,span:n}}function r(t,r,i,a,o,s,u,l){void 0===l&&(l=[]),void 0===t&&(t=""),t=e.normalizeSlashes(t),""===(t=e.getDirectoryPath(t))&&(t="."+e.directorySeparator),t=e.ensureTrailingDirectorySeparator(t);var f=c(e.isRootedDiskPath(t)?t:e.combinePaths(r,t)),m=e.getDirectoryPath(f),g=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames());if(p(s,m)){var y=d(s,m,i,void 0,["./*"]);if(y){for(var h=e.createMap(),v=0,b=y;v<b.length;v++){var x=b[v];if(x=e.normalizePath(x),!u||0!==e.comparePaths(x,u,r,g)){var k=a?e.getBaseFileName(x):e.removeFileExtension(e.getBaseFileName(x));h.has(k)||h.set(k,!0)}}e.forEachKey(h,function(e){l.push(n(e,"script",o))})}var S=_(s,m);if(S)for(var D=0,C=S;D<C.length;D++){var T=e.getBaseFileName(e.normalizePath(C[D]));l.push(n(T,"directory",o))}}return l}function i(t,n,r,i,a,o){if(!e.endsWith(t,"*"))return!e.stringContains(t,"*")&&e.startsWith(t,r)?[{name:t,kind:"directory"}]:e.emptyArray;var s=t.slice(0,t.length-1);if(!e.startsWith(r,s))return[{name:s,kind:"directory"}];var u=r.slice(s.length);return e.flatMap(n,function(t){return function(t,n,r,i,a){if(a.readDirectory){var o=e.hasZeroOrOneAsteriskCharacter(r)?e.tryParsePattern(r):void 0;if(o){var s=c(o.prefix),u=e.getDirectoryPath(s),l=e.getBaseFileName(s),p=e.stringContains(t,e.directorySeparator),f=p?e.combinePaths(u,l+e.getDirectoryPath(t)):u,m=e.normalizePath(o.suffix),g=e.normalizePath(e.combinePaths(n,f)),y=p?g:e.ensureTrailingDirectorySeparator(g)+l,h=d(a,g,i,void 0,[m?"**/*":"./*"]).map(function(e){return{name:e,kind:"script"}}),v=_(a,g).map(function(t){return e.combinePaths(g,t)}).map(function(e){return{name:e,kind:"directory"}});return e.mapDefined(e.concatenate(h,v),function(t){var n,r,i,a,o=t.kind,s=e.normalizePath(t.name),c=(i=m,e.startsWith(n=s,r=y)&&e.endsWith(n,i)?n.slice(r.length,n.length-i.length):void 0);return void 0!==c?{name:(a=e.removeFileExtension(c),a[0]===e.directorySeparator?a.slice(1):a),kind:o}:void 0})}}}(u,i,t,a,o)})}function a(t,r,i,a,s){void 0===s&&(s=[]);var c=e.createMap();if(r.types)for(var u=0,l=r.types;u<l.length;u++)v(e.getUnmangledNameForScopedPackage(l[u]));else if(t.getDirectories){var d=void 0;try{d=e.getEffectiveTypeRoots(r,t)}catch(e){}if(d)for(var f=0,m=d;f<m.length;f++)h(m[f]);for(var g=0,y=o(i,t);g<y.length;g++)h(e.combinePaths(e.getDirectoryPath(y[g]),"node_modules/@types"))}return s;function h(n){if(e.Debug.assert(!!t.getDirectories),p(t,n)){var r=_(t,n);if(r)for(var i=0,a=r;i<a.length;i++){var o=a[i];o=e.normalizePath(o);var s=e.getBaseFileName(o);v(e.getUnmangledNameForScopedPackage(s))}}}function v(e){c.has(e)||(s.push(n(e,"external module name",a)),c.set(e,!0))}}function o(t,n){var r=[];return e.forEachAncestorDirectory(t,function(t){var i=e.findConfigFile(t,function(e){return function(t,n){return f(t,t.fileExists,e)}(n)},"package.json");if(!i)return!0;r.push(i)}),r}function s(t,n){var r=t.lastIndexOf(e.directorySeparator),i=-1!==r?r+1:0;return{start:n+i,length:t.length-i}}function c(t){if("./"===e.normalizeSlashes(t))return"";var n=e.normalizePath(t);return e.hasTrailingDirectorySeparator(t)?e.ensureTrailingDirectorySeparator(n):n}t.getStringLiteralCompletionsFromModuleNames=function(t,c,u,_,p){var m=e.normalizeSlashes(c.text),g=c.getSourceFile().path,y=e.getDirectoryPath(g),h=s(c.text,c.getStart(t)+1);if(function(e){if(e&&e.length>=2&&46===e.charCodeAt(0)){var t=e.length>=3&&46===e.charCodeAt(1)?2:1,n=e.charCodeAt(t);return 47===n||92===n}return!1}(m)||e.isRootedDiskPath(m)){var v=e.getSupportedExtensions(u);return u.rootDirs?function(t,n,i,a,o,s,c,u,l){for(var _=[],d=0,p=function(t,n,r,i){t=t.map(function(t){return e.normalizePath(e.isRootedDiskPath(t)?t:e.combinePaths(n,t))});var a=e.firstDefined(t,function(t){return e.containsPath(t,r,n,i)?r.substr(t.length):void 0});return e.deduplicate(t.map(function(t){return e.combinePaths(t,a)}),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}(t,c.project||u.getCurrentDirectory(),i,!(u.useCaseSensitiveFileNames&&u.useCaseSensitiveFileNames()));d<p.length;d++)r(n,p[d],a,!1,s,u,l,_);return _}(u.rootDirs,m,y,v,0,h,u,_,g):r(m,y,v,!1,h,_,g)}return function(t,s,c,u,_,p){var m=u.baseUrl,g=u.paths,y=[],h=e.getSupportedExtensions(u);if(m){var v=u.project||_.getCurrentDirectory(),b=e.isRootedDiskPath(m)?m:e.combinePaths(v,m);for(var x in r(t,e.normalizePath(b),h,!1,c,_,void 0,y),g){var k=g[x];if(g.hasOwnProperty(x)&&k)for(var S=function(e,t){y.some(function(t){return t.name===e})||y.push(n(e,t,c))},D=0,C=i(x,k,t,m,h,_);D<C.length;D++){var T=C[D];S(T.name,T.kind)}}}u.moduleResolution===e.ModuleResolutionKind.NodeJs&&e.forEachAncestorDirectory(s,function(n){var i=e.combinePaths(n,"node_modules");_.directoryExists(i)&&r(t,i,h,!1,c,_,void 0,y)}),a(_,u,s,c,y);for(var E=0,N=function(t,n,r,i,a){var s=e.stringContains(t,e.directorySeparator),c=s?t.substr(0,t.lastIndexOf(e.directorySeparator)):void 0,u=e.map(i.getAmbientModules(),function(t){return e.stripQuotes(t.name)}),_=e.filter(u,function(n){return e.startsWith(n,t)});if(s){var p=e.ensureTrailingDirectorySeparator(c);_=e.map(_,function(t){return e.removePrefix(t,p)})}if(!r.moduleResolution||r.moduleResolution===e.ModuleResolutionKind.NodeJs)for(var m=0,g=function(t,n){var r=[];if(t.readFile&&t.fileExists)for(var i=0,a=o(n,t);i<a.length;i++){var s=a[i],c=v(s);if(!c)return;for(var u=e.combinePaths(e.getDirectoryPath(s),"node_modules"),_=[],d=0,p=l;d<p.length;d++)b(c[p[d]],_);for(var m=0,g=_;m<g.length;m++){var y=g[m],h=e.combinePaths(u,y);r.push({moduleName:y,moduleDir:h})}}return r;function v(e){try{var n=function(t,n){return f(t,t.readFile,e)}(t);return n?JSON.parse(n):void 0}catch(e){return}}function b(t,n){if(t)for(var r in t)t.hasOwnProperty(r)&&!e.startsWith(r,"@types/")&&n.push(r)}}(a,n);m<g.length;m++){var y=g[m];if(s){if(e.startsWith(y.moduleName,c)){var h=d(a,y.moduleDir,e.supportedTypeScriptExtensions,void 0,["./*"]);if(h)for(var v=0,b=h;v<b.length;v++){var x=b[v];x=e.normalizePath(x);var k=e.removeFileExtension(e.getBaseFileName(x));_.push(k)}}}else _.push(y.moduleName)}return e.deduplicate(_,e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}(t,s,u,p,_);E<N.length;E++)y.push(n(N[E],"external module name",c));return y}(m,y,h,u,_,p)},t.getTripleSlashReferenceCompletion=function(t,n,i,o){var c=e.getTokenAtPosition(t,n,!1),l=e.getLeadingCommentRanges(t.text,c.pos),_=l&&e.find(l,function(e){return n>=e.pos&&n<=e.end});if(_){var d=t.text.slice(_.pos,n),p=u.exec(d);if(p){var f=p[1],m=p[2],g=p[3],y=e.getDirectoryPath(t.path);switch(m){case"path":var h=s(g,_.pos+f.length);return r(g,y,e.getSupportedExtensions(i),!0,h,o,t.path);case"types":return a(o,i,y,e.createTextSpan(_.pos+f.length,p[0].length-f.length));default:return}}}};var u=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,l=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function _(e,t){return f(e,e.getDirectories,t)||[]}function d(t,n,r,i,a){return f(t,t.readDirectory,n,r,i,a)||e.emptyArray}function p(t,n){try{return e.directoryProbablyExists(n,t)}catch(e){}}function f(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];try{return t&&t.apply(e,n)}catch(e){}}}(t.PathCompletions||(t.PathCompletions={}))}(e.Completions||(e.Completions={}))}(l||(l={})),function(e){!function(t){var n,r,i,a;function o(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(function(e){return{name:e.name,kind:e.kind,kindModifiers:"",sortText:"0",replacementSpan:e.span}})}}function s(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function c(t,n,r,i,a,o,s,c,d,p,f){var m=v(t,a,s,o);if(m){var g,y,h=m.name,b=m.needsConvertPropertyAccess;if(f){if(s&&"this-type"===s.type)g=b?"this["+u(h)+"]":"this."+h;else if(b){g="["+u(h)+"]";var x=e.findChildOfKind(d,23,r),k=e.startsWith(h,d.name.text)?d.name.end:x.end;y=e.createTextSpanFromBounds(x.getStart(r),k)}p&&(void 0===g&&(g=h),g="{"+g+"}","boolean"!=typeof p&&(y=e.createTextSpanFromNode(p,r)))}if(void 0===g||f)return{name:h,kind:e.SymbolDisplay.getSymbolKind(i,t,n),kindModifiers:e.SymbolDisplay.getSymbolModifiers(t),sortText:"0",source:_(s),hasAction:l(!!s&&"export"===s.type),isRecommended:l(function(e,n,r){return t===n||!!(1048576&t.flags)&&i.getExportSymbolOfSymbol(t)===n}(0,c)),insertText:g,replacementSpan:y}}}function u(e){return JSON.stringify(e)}function l(e){return!!e||void 0}function _(t){return t&&"export"===t.type?e.stripQuotes(t.moduleSymbol.name):void 0}function d(t,n,r,i,a,o,s,u,l,_,d,p,f){for(var m=e.timestamp(),g=e.createMap(),y=0,h=t;y<h.length;y++){var v=h[y],b=f?f[e.getSymbolId(v)]:void 0,x=c(v,r,i,a,o,u,b,p,_,d,l);if(x){var k=x.name;g.has(k)||(b||void 0===v.parent&&!e.some(v.declarations,function(e){return e.getSourceFile()===r.getSourceFile()})||g.set(k,!0),n.push(x))}}return s("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(e.timestamp()-m)),g}function p(t,n,r){return void 0===r&&(r=e.createMap()),t&&32768&t.flags&&(t=t.getConstraint()),t&&131072&t.flags?e.flatMap(t.types,function(e){return p(e,n,r)}):t&&32&t.flags&&!(256&t.flags)&&e.addToSeen(r,t.value)?[t]:e.emptyArray}function f(t,n,r,i,a,o,s){var c=o.name,u=o.source,l=h(t,n,i,a,s,{includeExternalModuleExports:!0,includeInsertTextCompletions:!0},r.target);if(!l)return{type:"none"};if(0!==l.kind)return{type:"request",request:l};var d=l.location,p=l.completionKind,f=l.symbolToOriginInfoMap,m=l.previousToken,g=l.isJsxInitializer;return e.firstDefined(l.symbols,function(t){var n=f[e.getSymbolId(t)],i=v(t,r.target,n,p);return i&&i.name===c&&_(n)===u?{type:"symbol",symbol:t,location:d,symbolToOriginInfoMap:f,previousToken:m,isJsxInitializer:g}:void 0})||{type:"none"}}function m(t,n,r){return n&&"export"===n.type&&n.isDefaultExport&&"default"===t.escapedName?e.firstDefined(t.declarations,function(t){return e.isExportAssignment(t)&&e.isIdentifier(t.expression)?t.expression.text:void 0})||e.codefix.moduleSymbolToValidIdentifier(n.moduleSymbol,r):t.name}function g(e,t){var n=e.parent;switch(n.kind){case 186:return t.getContextualType(n);case 198:var r=n.left,i=n.right;return C(n.operatorToken.kind)?t.getTypeAtLocation(e===i?r:i):t.getContextualType(e);case 264:return n.expression===e?y(n,t):void 0;default:return t.getContextualType(e)}}function y(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function h(t,n,r,i,a,o,s){var c=e.timestamp(),u=e.getTokenAtPosition(r,i,!1);n("getCompletionData: Get current token: "+(e.timestamp()-c)),c=e.timestamp();var l=e.isInComment(r,i,u);n("getCompletionData: Is inside comment: "+(e.timestamp()-c));var _=!1,d=!1;if(l){if(e.hasDocComment(r,i)){if(64===r.text.charCodeAt(i-1))return{kind:1};var p=e.getLineStartPositionForPosition(i,r);if(!r.text.substring(p,i).match(/[^\*|\s|(/\*\*)]/))return{kind:2}}var f=function(t,n){var r=function(t){if(!e.isToken(t))return t;switch(t.kind){case 104:case 110:case 76:return t.parent.parent;default:return t.parent}}(u).jsDoc;if(r)for(var i=0,a=r;i<a.length;i++){var o=a[i],s=o.tags;if(!(!s||n<o.pos||n>o.end))for(var c=s.length-1;c>=0;c--){var l=s[c];if(n>=l.pos)return l}}}(0,i);if(f){if(f.tagName.pos<=i&&i<=f.tagName.end)return{kind:1};if(function(e){switch(e.kind){case 287:case 292:case 288:case 289:case 291:return!0}}(f)&&f.typeExpression&&274===f.typeExpression.kind&&((u=e.getTokenAtPosition(r,i,!0))&&(e.isDeclarationName(u)||292===u.parent.kind&&u.parent.name===u)||(_=Y(f.typeExpression))),e.isJSDocParameterTag(f)&&(e.nodeIsMissing(f.name)||f.name.pos<=i&&i<=f.name.end))return{kind:3,tag:f}}if(!_)return void n("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}c=e.timestamp();var h=e.findPrecedingToken(i,r,void 0,_);n("getCompletionData: Get previous token 1: "+(e.timestamp()-c));var v=h;if(v&&i<=v.end&&e.isWord(v.kind)){var b=e.timestamp();v=e.findPrecedingToken(v.getFullStart(),r,void 0,_),n("getCompletionData: Get previous token 2: "+(e.timestamp()-b))}var x,E=u,N=!1,A=!1,P=!1,w=!1,F=e.getTouchingPropertyName(r,i,_);if(v){if(function(t){var r=e.timestamp(),a=function(t){if(9===t.kind||12===t.kind||e.isTemplateLiteralKind(t.kind)){var n=t.getStart(),r=t.getEnd();if(n<i&&i<r)return!0;if(i===r)return!!t.isUnterminated||12===t.kind}return!1}(t)||function(t){var n,r=t.parent.kind;switch(t.kind){case 26:return 230===r||231===r||212===r||236===r||Q(r)||234===r||179===r||235===r||e.isClassLike(t.parent)&&t.parent.typeParameters&&t.parent.typeParameters.end>=t.pos;case 23:return 179===r;case 56:return 180===r;case 21:return 179===r;case 19:return 267===r||Q(r);case 17:return 236===r||234===r||165===r;case 25:return 150===r&&t.parent&&t.parent.parent&&(234===t.parent.parent.kind||165===t.parent.parent.kind);case 27:return 233===r||203===r||234===r||235===r||e.isFunctionLikeKind(r);case 115:return 151===r&&!e.isClassLike(t.parent.parent);case 24:return 148===r||t.parent&&t.parent.parent&&179===t.parent.parent.kind;case 114:case 112:case 113:return 148===r&&!e.isConstructorDeclaration(t.parent.parent);case 118:return 246===r||250===r||244===r;case 125:case 136:if(G(t))return!1;case 75:case 83:case 109:case 89:case 104:case 91:case 110:case 76:case 116:case 139:return!0}if(S(t.getText())&&G(t))return!1;if(X(t)&&(!e.isIdentifier(t)||(n=t.getText(),D(e.stringToToken(n)))||Y(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 e.isDeclarationName(t)&&!e.isJsxAttribute(t.parent)&&!(e.isClassLike(t.parent)&&(t!==h||i>h.end))}(t)||function(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}(t)||function(e){if(10===e.kind)return!0;if(29===e.kind&&e.parent){if(255===e.parent.kind)return!0;if(256===e.parent.kind||254===e.parent.kind)return e.parent.parent&&253===e.parent.parent.kind}return!1}(t);return n("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-r)),a}(v))return void n("Returning an empty list because completion was requested in an invalid position.");var I=v.parent;if(23===v.kind)switch(N=!0,I.kind){case 183:E=(x=I).expression;break;case 145:E=I.left;break;default:return}else if(1===r.languageVariant){if(I&&183===I.kind&&(v=I,I=I.parent),u.parent===F)switch(u.kind){case 29:253!==u.parent.kind&&255!==u.parent.kind||(F=u);break;case 41:254===u.parent.kind&&(F=u)}switch(I.kind){case 256:41===v.kind&&(P=!0,F=v);break;case 198:if(!(32768&I.left.flags))break;case 254:case 253:case 255:27===v.kind&&(A=!0,F=v);break;case 260:switch(h.kind){case 58:w=!0;break;case 71:h!==I.name&&(w=h)}}}}var O=e.timestamp(),M=5,L=!1,R=0,B=[],z=[];if(N)!function(){M=2;var n=_||e.isPartOfTypeNode(E.parent),i=e.isInRightSideOfInternalImportEqualsDeclaration(E)||!n&&e.isPossiblyTypeArgumentPosition(v,r);if(e.isEntityName(E)){var a=t.getSymbolAtLocation(E);if(a&&1920&(a=e.skipAlias(a,t)).flags){for(var o=e.Debug.assertEachDefined(t.getExportsOfModule(a),"getExportsOfModule() should all be defined"),s=function(e){return t.isValidPropertyAccess(E.parent,e.name)},c=function(e){return W(e)},u=i?function(e){return c(e)||s(e)}:n?c:s,l=0,d=o;l<d.length;l++){var p=d[l];u(p)&&B.push(p)}return void(!n&&a.declarations.some(function(e){return 272!==e.kind&&237!==e.kind&&236!==e.kind})&&U(t.getTypeOfSymbolAtLocation(a,E)))}}n||U(t.getTypeAtLocation(E))}();else if(A){var j=e.Debug.assertEachDefined(t.getJsxIntrinsicTagNamesAt(F),"getJsxIntrinsicTagNames() should all be defined");B=V()?j.concat(B.filter(function(e){return!!(69313471&e.flags)})):j,M=3}else if(P){var J=t.getSymbolAtLocation(v.parent.parent.openingElement.tagName);J&&(B=[J]),M=3}else if(!V())return;n("getCompletionData: Semantic work: "+(e.timestamp()-O));var K=h&&function(t,n,r,i){var a=function(t,n,r,i){var a=t.parent;switch(t.kind){case 71:return g(t,i);case 58:switch(a.kind){case 230:return i.getContextualType(a.initializer);case 198:return i.getTypeAtLocation(a.left);case 260:return i.getContextualTypeForJsxAttribute(a);default:return}case 94:return i.getContextualType(a);case 73:return y(e.cast(a,e.isCaseClause),i);case 17:return e.isJsxExpression(a)&&253!==a.parent.kind?i.getContextualTypeForJsxAttribute(a.parent):void 0;default:var o=e.SignatureHelp.getImmediatelyContainingArgumentInfo(t,n,r);return o?i.getContextualTypeForArgumentAtIndex(o.invocation,o.argumentIndex+(26===t.kind?1:0)):C(t.kind)&&e.isBinaryExpression(a)&&C(a.operatorToken.kind)?i.getTypeAtLocation(a.left):i.getContextualType(t)}}(t,n,r,i),o=a&&a.symbol;return o&&(384&o.flags||32&o.flags&&!e.isAbstractConstructorSymbol(o))?function t(n,r,i){var a=i.getAccessibleSymbolChain(n,r,67108863,!1);return a?e.first(a):n.parent&&(function(e){return e.declarations.some(function(e){return 272===e.kind})}(n.parent)?n:t(n.parent,r,i))}(o,t,i):void 0}(h,i,r,t);return{kind:0,symbols:B,completionKind:M,isInSnippetScope:d,propertyAccessToConvert:x,isNewIdentifierLocation:L,location:F,keywordFilters:R,symbolToOriginInfoMap:z,recommendedCompletion:K,previousToken:h,isJsxInitializer:w};function U(n){if(e.isSourceFileJavaScript(r))B.push.apply(B,T(n,t,!0));else for(var i=0,a=n.getApparentProperties();i<a.length;i++){var o=a[i];t.isValidPropertyAccessForCompletions(E.parent,n,o)&&B.push(o)}}function V(){var n,c,u,l;if(n=function(t){if(t)switch(t.kind){case 17:case 26:var n=t.parent;if(e.isObjectLiteralExpression(n)||e.isObjectBindingPattern(n))return n}}(v))return function(n){var r,i;if(M=0,182===n.kind){if(L=!0,!(s=t.getContextualType(n)))return!1;r=T(s,t,!1),i=n.properties}else{e.Debug.assert(178===n.kind),L=!1;var a=e.getRootDeclaration(n.parent);if(!e.isVariableLike(a))return e.Debug.fail("Root declaration is not variable-like.");var o=e.hasInitializer(a)||e.hasType(a)||220===a.parent.parent.kind;if(o||148!==a.kind||(e.isExpression(a.parent)?o=!!t.getContextualType(a.parent):153!==a.parent.kind&&156!==a.parent.kind||(o=e.isExpression(a.parent.parent)&&!!t.getContextualType(a.parent.parent))),o){var s;if(!(s=t.getTypeAtLocation(n)))return!1;r=t.getPropertiesOfType(s).filter(function(t){return!(24&e.getDeclarationModifierFlagsFromSymbol(t))}),i=n.elements}}return r&&r.length>0&&(B=function(t,n){if(0===n.length)return t;for(var r=e.createUnderscoreEscapedMap(),i=0,a=n;i<a.length;i++){var o=a[i];if((268===o.kind||269===o.kind||180===o.kind||153===o.kind||155===o.kind||156===o.kind)&&!Y(o)){var s=void 0;if(180===o.kind&&o.propertyName)71===o.propertyName.kind&&(s=o.propertyName.escapedText);else{var c=e.getNameOfDeclaration(o);s=e.isPropertyNameLiteral(c)?e.getEscapedTextOfIdentifierOrLiteral(c):void 0}r.set(s,!0)}}return t.filter(function(e){return!r.get(e.escapedName)})}(r,e.Debug.assertDefined(i))),!0}(n);if(c=function(e){if(e)switch(e.kind){case 17:case 26:switch(e.parent.kind){case 245:case 249:return e.parent}}}(v))return function(n){var r=e.getAncestor(n,245===n.kind?242:248).moduleSpecifier;if(!r)return!1;M=3,L=!1;var i=t.getSymbolAtLocation(r);if(!i)return B=e.emptyArray,!0;var a=t.getExportsAndPropertiesOfModule(i);return B=function(t,n){for(var r=e.createUnderscoreEscapedMap(),i=0,a=n;i<a.length;i++){var o=a[i];Y(o)||r.set((o.propertyName||o.name).escapedText,!0)}return t.filter(function(e){return"default"!==e.escapedName&&!r.get(e.escapedName)})}(a,n.elements),!0}(c);if(function(t){if(t)switch(t.kind){case 19:case 26:return e.isConstructorDeclaration(t.parent)&&t.parent;default:if(X(t))return t.parent.parent}}(v))return M=5,L=!0,R=2,!0;if(u=function(t){if(t)switch(t.kind){case 17:case 26:if(e.isClassLike(t.parent))return t.parent;break;case 25:case 18:if(e.isClassLike(F))return F;if(G(F)&&F.parent.name===F)return F.parent.parent;break;default:if(G(t)&&(k(t.kind)||S(t.getText())))return t.parent.parent}if(F&&293===F.kind&&e.isClassLike(F.parent))return F.parent}(v))return function(n){M=3,L=!0,R=1;var r=e.getClassExtendsHeritageClauseElement(n),i=e.getClassImplementsHeritageClauseElements(n);if(r||i){var a=v.parent,o=e.isClassElement(a)&&e.getModifierFlags(a);if(71===v.kind&&!Y(v))switch(v.getText()){case"private":o|=8;break;case"static":o|=32}if(!(8&o)){var s=void 0;r&&(s=t.getTypeAtLocation(r),32&o&&(s=t.getTypeOfSymbolAtLocation(s.symbol,n)));var c=32&o?e.emptyArray:e.flatMap(i||e.emptyArray,function(e){return t.getPropertiesOfType(t.getTypeAtLocation(e))});B=function(t,n,r,i){for(var a=e.createUnderscoreEscapedMap(),o=0,s=r;o<s.length;o++){var c=s[o];if(!(151!==c.kind&&153!==c.kind&&155!==c.kind&&156!==c.kind||Y(c)||e.hasModifier(c,8))){var u=e.hasModifier(c,32),l=!!(32&i);if(!(u&&!l||!u&&l)){var _=e.getPropertyNameForPropertyNameNode(c.name);_&&a.set(_,!0)}}}var d=[];return p(t,8),p(n,24),d;function p(e,t){for(var n=0,r=e;n<r.length;n++){var i=r[n];f(i,t)&&d.push(i)}}function f(t,n){return!a.get(t.escapedName)&&t.getDeclarations()&&!(e.getDeclarationModifierFlagsFromSymbol(t)&n)}}(s?t.getPropertiesOfType(s):e.emptyArray,c,n.members,o)}}}(u),!0;if(l=function(e){if(e){var t=e.parent;switch(e.kind){case 28:case 41:case 71:case 183:case 261:case 260:case 262:if(t&&(254===t.kind||255===t.kind))return t;if(260===t.kind)return t.parent.parent;break;case 9:if(t&&(260===t.kind||262===t.kind))return t.parent.parent;break;case 18:if(t&&263===t.kind&&t.parent&&260===t.parent.kind)return t.parent.parent.parent;if(t&&262===t.kind)return t.parent.parent}}}(v)){var p=void 0;if((254===l.kind||255===l.kind)&&(p=t.getAllAttributesTypeFromJsxOpeningLikeElement(l)))return B=function(t,n){for(var r=e.createUnderscoreEscapedMap(),i=0,a=n;i<a.length;i++){var o=a[i];Y(o)||260===o.kind&&r.set(o.name.escapedText,!0)}return t.filter(function(e){return!r.get(e.escapedName)})}(t.getPropertiesOfType(p),l.attributes.properties),M=3,L=!1,!0}(function(t){if(t){var n,r=e.findAncestor(t.parent,function(t){return e.isClassLike(t)?"quit":!(!e.isFunctionLikeDeclaration(t)||n!==t.body)||void(n=t)});return r&&r}})(v)&&(R=3),M=1,L=function(e){if(e){var t=e.parent.kind;switch(e.kind){case 26:return 185===t||154===t||186===t||181===t||198===t||162===t;case 19:return 185===t||154===t||186===t||189===t||172===t;case 21:return 181===t||159===t||146===t;case 129:case 130:return!0;case 23:return 237===t;case 17:return 233===t;case 58:return 230===t||198===t;case 14:return 200===t;case 15:return 209===t;case 114:case 112:case 113:return 151===t}switch(e.getText()){case"public":case"protected":case"private":return!0}}return!1}(v),h!==v&&e.Debug.assert(!!h,"Expected 'contextToken' to be defined when different from 'previousToken'.");var f=function(t,n,r){for(var i=v;i&&!e.positionBelongsToNode(i,n,r);)i=i.parent;return i}(0,h!==v?h.getStart():i,r)||r;if(d=function(t){switch(t.kind){case 272:case 200:case 263:case 211:return!0;default:return e.isStatement(t)}}(f),B=e.Debug.assertEachDefined(t.getSymbolsInScope(f,70107135),"getSymbolsInScope() should all be defined"),o.includeInsertTextCompletions&&272!==f.kind){var g=t.tryGetThisTypeAt(f);if(g)for(var y=0,b=T(g,t,!0);y<b.length;y++){var x=b[y];z[e.getSymbolId(x)]={type:"this-type"},B.push(x)}}return o.includeExternalModuleExports&&function(n,i,o){var s=i.toLowerCase();e.codefix.forEachExternalModuleToImportFrom(t,r,a,function(r){for(var i=0,a=t.getExportsOfModule(r);i<a.length;i++){var c=a[i];if(t.getMergedSymbol(c.parent)===t.resolveExternalModuleSymbol(r)&&!e.some(c.declarations,function(t){return e.isExportSpecifier(t)&&!!t.parent.parent.moduleSpecifier})){var u="default"===c.name;u&&(c=e.getLocalSymbolForExportDefault(c)||c);var l={type:"export",moduleSymbol:r,isDefaultExport:u};H(m(c,l,o).toLowerCase(),s)&&(n.push(c),z[e.getSymbolId(c)]=l)}}})}(B,h&&e.isIdentifier(h)?h.text:"",s),function(n){var i=_||!q(v)&&(e.isPartOfTypeNode(F)||function(t){if(t){var n=t.parent.kind;switch(t.kind){case 56:return 151===n||150===n||148===n||230===n||e.isFunctionLikeKind(n);case 58:return 235===n;case 118:return 206===n}}return!1}(v)),a=i||!q(v)&&e.isPossiblyTypeArgumentPosition(v,r);i&&(R=4),e.filterMutate(n,function(n){if(!e.isSourceFile(F)){if(e.isExportAssignment(F.parent))return!0;if(n=e.skipAlias(n,t),e.isInRightSideOfInternalImportEqualsDeclaration(F))return!!(1920&n.flags);if(a){var r=W(n);if(r||i)return r}}return!!(67216319&e.getCombinedLocalAndExportSymbolFlags(n))})}(B),!0}function q(t){return t&&103===t.kind&&(164===t.parent.kind||e.isTypeOfExpression(t.parent))}function W(n){if(67901928&(n=e.skipAlias(n=n.exportSymbol||n,t)).flags)return!0;if(1536&n.flags){var r=t.getExportsOfModule(n);return e.forEach(r,W)}}function H(e,t){if(0===t.length)return!0;for(var n=0,r=0;r<e.length;r++)if(e.charCodeAt(r)===t.charCodeAt(n)&&++n===t.length)return!0;return!1}function G(t){return e.isClassElement(t.parent)&&e.isClassLike(t.parent.parent)}function X(t){return t.parent&&function(t){return e.isParameter(t)&&e.isConstructorDeclaration(t.parent)}(t.parent)&&(D(t.kind)||e.isDeclarationName(t))}function Q(t){return e.isFunctionLikeKind(t)&&154!==t}function Y(e){return e.getStart()<=i&&i<=e.getEnd()}}function v(t,n,r,i){var a=m(t,r,n);if(!(void 0===a||1536&t.flags&&e.startsWithQuote(a)||e.isKnownSymbol(t))){var o={name:a,needsConvertPropertyAccess:!1};if(e.isIdentifierText(a,n))return o;switch(i){case 3:return;case 0:return{name:JSON.stringify(a),needsConvertPropertyAccess:!1};case 2:case 1:return 32===a.charCodeAt(0)?void 0:{name:a,needsConvertPropertyAccess:!0};case 5:case 4:return o;default:e.Debug.assertNever(i)}}}!function(e){e[e.None=0]="None",e[e.ClassElementKeywords=1]="ClassElementKeywords",e[e.ConstructorParameterKeywords=2]="ConstructorParameterKeywords",e[e.FunctionLikeBodyKeywords=3]="FunctionLikeBodyKeywords",e[e.TypeKeywords=4]="TypeKeywords"}(n||(n={})),t.getCompletionsAtPosition=function(n,r,i,a,c,u,l,_){if(e.isInReferenceComment(c,u)){var f=t.PathCompletions.getTripleSlashReferenceCompletion(c,u,a,n);return f&&o(f)}var m=e.findPrecedingToken(u,c);if(e.isInString(c,u,m))return m&&e.isStringLiteralLike(m)?function(t,n,r,i){if(void 0!==t)switch(t.kind){case 0:return o(t.paths);case 1:return d(t.symbols,a=[],n,n,r,6,i,4),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!0,entries:a};case 2:var a;return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:a=t.types.map(function(e){return{name:e.value,kindModifiers:"",kind:"var",sortText:"0"}})};default:return e.Debug.assertNever(t)}}(function(n,r,i,a,o,s){switch(r.parent.kind){case 177:switch(r.parent.parent.kind){case 161:return{kind:2,types:p(a.getTypeArgumentConstraint(r.parent),a)};case 175:return{kind:1,symbols:a.getTypeFromTypeNode(r.parent.parent.objectType).getApparentProperties()};default:return}case 268:if(e.isObjectLiteralExpression(r.parent.parent)&&r.parent.name===r){var c=a.getContextualType(r.parent.parent);return{kind:1,symbols:c&&c.getApparentProperties()}}return f();case 184:var u=r.parent;return r===u.argumentExpression?{kind:1,symbols:a.getTypeAtLocation(u.expression).getApparentProperties()}:void 0;case 185:case 186:if(!e.isRequireCall(r.parent,!1)&&!e.isImportCall(r.parent)){var l=e.SignatureHelp.getImmediatelyContainingArgumentInfo(r,i,n);if(l){var _=[];a.getResolvedSignature(l.invocation,_,l.argumentCount);var d=e.createMap();return{kind:2,types:e.flatMap(_,function(e){return p(a.getParameterType(e,l.argumentIndex),a,d)})}}return f()}case 242:case 248:case 252:return{kind:0,paths:t.PathCompletions.getStringLiteralCompletionsFromModuleNames(n,r,o,s,a)};default:return f()}function f(){return{kind:2,types:p(g(r,a),a)}}}(c,m,u,r,a,n),c,r,i):void 0;if(m&&e.isBreakOrContinueStatement(m.parent)&&(72===m.kind||77===m.kind||71===m.kind))return function(t){var n=function(t){for(var n=[],r=e.createMap(),i=t;i&&!e.isFunctionLike(i);){if(e.isLabeledStatement(i)){var a=i.label.text;r.has(a)||(r.set(a,!0),n.push({name:a,kindModifiers:"",kind:"label",sortText:"0"}))}i=i.parent}return n}(m.parent);if(n.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:n}}();var y=h(r,i,c,u,l,_,a.target);if(y)switch(y.kind){case 0:return function(t,n,r,i,a,o){var s=a.symbols,c=a.completionKind,u=a.isInSnippetScope,l=a.isNewIdentifierLocation,_=a.location,p=a.propertyAccessToConvert,f=a.keywordFilters,m=a.symbolToOriginInfoMap,g=a.recommendedCompletion,y=a.isJsxInitializer;if(1===t.languageVariant&&_&&_.parent&&e.isJsxClosingElement(_.parent))return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,entries:[{name:_.parent.parent.openingElement.tagName.getFullText(),kind:"class",kindModifiers:void 0,sortText:"0"}]};var h=[];if(e.isSourceFileJavaScript(t)){var v=d(s,h,_,t,n,r.target,i,c,o,p,y,g,m);!function(t,n,r,i,a){e.getNameTable(t).forEach(function(t,o){if(t!==n){var s=e.unescapeLeadingUnderscores(o);e.addToSeen(r,s)&&e.isIdentifierText(s,i)&&!e.isStringANonContextualKeyword(s)&&a.push({name:s,kind:"warning",kindModifiers:"",sortText:"1"})}})}(t,_.pos,v,r.target,h)}else{if((!s||0===s.length)&&0===f)return;d(s,h,_,t,n,r.target,i,c,o,p,y,g,m)}var S,C=function(e){switch(c){case 0:case 3:case 2:return!0;default:return!1}}();return 0===f&&C||e.addRange(h,b[S=f]||(b[S]=x().filter(function(t){var n=e.stringToToken(t.name);switch(S){case 0:return 140!==n;case 1:return k(n);case 2:return D(n);case 3:return function(e){switch(e){case 114:case 112:case 113:case 132:case 123:case 115:case 117:case 125:case 136:case 140:return!1}return!0}(n);case 4:return e.isTypeKeyword(n);default:return e.Debug.assertNever(S)}}))),{isGlobalCompletion:u,isMemberCompletion:C,isNewIdentifierLocation:l,entries:h}}(c,r,a,i,y,_.includeInsertTextCompletions);case 1:return s(e.JsDoc.getJSDocTagNameCompletions());case 2:return s(e.JsDoc.getJSDocTagCompletions());case 3:return s(e.JsDoc.getJSDocParameterNameCompletions(y.tag));default:return e.Debug.assertNever(y)}},function(e){e[e.Paths=0]="Paths",e[e.Properties=1]="Properties",e[e.Types=2]="Types"}(r||(r={})),t.getCompletionEntryDetails=function(t,n,r,i,a,o,s,c,u,l){var _=t.getTypeChecker(),d=o.name,p=f(_,n,r,i,a,o,s);switch(p.type){case"request":var g=p.request;switch(g.kind){case 1:return e.JsDoc.getJSDocTagNameCompletionDetails(d);case 2:return e.JsDoc.getJSDocTagCompletionDetails(d);case 3:return e.JsDoc.getJSDocParameterNameCompletionDetails(d);default:return e.Debug.assertNever(g)}case"symbol":var y=p.symbol,h=p.location,v=function(t,n,r,i,a,o,s,c,u,l,_){var d=p.symbolToOriginInfoMap[e.getSymbolId(n)];return d&&"export"===d.type?function(t,n,r,i,a,o,s,c,u,l,_){var d=t.moduleSymbol,p=e.skipAlias(n.exportSymbol||n,i),f=e.codefix.getImportCompletionAction(p,d,s,m(n,t,o.target),a,r,i,o,_,u,l,c),g=f.codeAction;return{sourceDisplay:[e.textPart(f.moduleSpecifier)],codeActions:[g]}}(d,n,r,i,a,o,s,c,u,l,_):{codeActions:void 0,sourceDisplay:void 0}}(0,y,t,_,c,r,i,p.previousToken,u,l,s),b=v.codeActions,k=v.sourceDisplay,S=e.SymbolDisplay.getSymbolModifiers(y),D=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(_,y,i,h,h,7);return{name:d,kindModifiers:S,kind:D.symbolKind,displayParts:D.displayParts,documentation:D.documentation,tags:D.tags,codeActions:b,source:k};case"none":return x().some(function(e){return e.name===d})?{name:d,kind:"keyword",kindModifiers:"",displayParts:[e.displayPart(d,e.SymbolDisplayPartKind.keyword)],documentation:void 0,tags:void 0,codeActions:void 0,source:void 0}:void 0}},t.getCompletionEntrySymbol=function(e,t,n,r,i,a,o){var s=f(e,t,n,r,i,a,o);return"symbol"===s.type?s.symbol:void 0},function(e){e[e.Data=0]="Data",e[e.JsDocTagName=1]="JsDocTagName",e[e.JsDocTag=2]="JsDocTag",e[e.JsDocParameterName=3]="JsDocParameterName"}(i||(i={})),function(e){e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None"}(a||(a={}));var b=[],x=e.memoize(function(){for(var t=[],n=72;n<=144;n++)t.push({name:e.tokenToString(n),kind:"keyword",kindModifiers:"",sortText:"0"});return t});function k(e){switch(e){case 114:case 113:case 112:case 117:case 115:case 123:case 132:case 125:case 136:case 120:return!0}}function S(t){return k(e.stringToToken(t))}function D(e){switch(e){case 114:case 112:case 113:case 132:return!0}}function C(e){switch(e){case 34:case 32:case 35:case 33:return!0;default:return!1}}function T(t,n,r){if(!(131072&t.flags))return e.Debug.assertEachDefined(t.getApparentProperties(),"getApparentProperties() should all be defined");var i=t.types,a=r?i:i.filter(function(t){return!(16382&t.flags||n.isArrayLikeType(t)||e.typeHasCallOrConstructSignatures(t,n))});return e.Debug.assertEachDefined(n.getAllPossiblePropertiesOfTypes(a),"getAllPossiblePropertiesOfTypes() should all be defined")}}(e.Completions||(e.Completions={}))}(l||(l={})),function(e){!function(t){function n(t,n){return{fileName:n.fileName,textSpan:e.createTextSpanFromNode(t,n),kind:"none"}}function r(t){return e.isThrowStatement(t)?[t]:e.isTryStatement(t)?e.concatenate(t.catchClause?r(t.catchClause):t.tryBlock&&r(t.tryBlock),r(t.finallyBlock)):e.isFunctionLike(t)?void 0:a(t,r)}function i(t){return e.isBreakOrContinueStatement(t)?[t]:e.isFunctionLike(t)?void 0:a(t,i)}function a(t,n){var r=[];return t.forEachChild(function(t){var i=n(t);void 0!==i&&r.push.apply(r,e.toArray(i))}),r}function o(e,t){var n=s(t);return n&&n===e}function s(t){return e.findAncestor(t,function(n){switch(n.kind){case 225:if(221===t.kind)return!1;case 218:case 219:case 220:case 217:case 216:return!t.label||function(t,n){return!!e.findAncestor(t.parent,function(t){return e.isLabeledStatement(t)?t.label.escapedText===n:"quit"})}(n,t.label.escapedText);default:return e.isFunctionLike(n)&&"quit"}})}function c(t,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return!(!n||!e.contains(r,n.kind)||(t.push(n),0))}function u(t){var n=[];if(c(n,t.getFirstToken(),88,106,81)&&216===t.kind)for(var r=t.getChildren(),a=r.length-1;a>=0&&!c(n,r[a],106);a--);return e.forEach(i(t.statement),function(e){o(t,e)&&c(n,e.getFirstToken(),72,77)}),n}function l(e){var t=s(e);if(t)switch(t.kind){case 218:case 219:case 220:case 216:case 217:return u(t);case 225:return _(t)}}function _(t){var n=[];return c(n,t.getFirstToken(),98),e.forEach(t.caseBlock.clauses,function(r){c(n,r.getFirstToken(),73,79),e.forEach(i(r),function(e){o(t,e)&&c(n,e.getFirstToken(),72)})}),n}function d(t,n){var r=[];return c(r,t.getFirstToken(),102),t.catchClause&&c(r,t.catchClause.getFirstToken(),74),t.finallyBlock&&c(r,e.findChildOfKind(t,87,n),87),r}function p(t,n){var i=function(t){for(var n=t;n.parent;){var r=n.parent;if(e.isFunctionBlock(r)||272===r.kind)return r;if(e.isTryStatement(r)&&r.tryBlock===n&&r.catchClause)return n;n=r}}(t);if(i){var a=[];return e.forEach(r(i),function(t){a.push(e.findChildOfKind(t,100,n))}),e.isFunctionBlock(i)&&e.forEachReturnStatement(i,function(t){a.push(e.findChildOfKind(t,96,n))}),a}}function f(t,n){var i=e.getContainingFunction(t);if(i){var a=[];return e.forEachReturnStatement(e.cast(i.body,e.isBlock),function(t){a.push(e.findChildOfKind(t,96,n))}),e.forEach(r(i.body),function(t){a.push(e.findChildOfKind(t,100,n))}),a}}(e.DocumentHighlights||(e.DocumentHighlights={})).getDocumentHighlights=function(t,r,i,a,o){var s=e.getTouchingWord(i,a,!0);if(s.parent&&(e.isJsxOpeningElement(s.parent)&&s.parent.tagName===s||e.isJsxClosingElement(s.parent))){var m=s.parent.parent,g=[m.openingElement,m.closingElement].map(function(e){return n(e.tagName,i)});return[{fileName:i.fileName,highlightSpans:g}]}return function(t,n,r,i,a){var o=e.FindAllReferences.getReferenceEntriesForNode(t,n,r,a,i);if(o){var s=e.arrayToMultiMap(o.map(e.FindAllReferences.toHighlightSpan),function(e){return e.fileName},function(e){return e.span});return e.arrayFrom(s.entries(),function(e){return{fileName:e[0],highlightSpans:e[1]}})}}(a,s,t,r,o)||function(t,r){var i=function(t,r){switch(t.kind){case 90:case 82:return e.isIfStatement(t.parent)?function(r,i){for(var a=function(t,n){for(var r=[];e.isIfStatement(t.parent)&&t.parent.elseStatement===t;)t=t.parent;for(;;){var i=t.getChildren(n);c(r,i[0],90);for(var a=i.length-1;a>=0&&!c(r,i[a],82);a--);if(!t.elseStatement||!e.isIfStatement(t.elseStatement))break;t=t.elseStatement}return r}(t.parent,i),o=[],s=0;s<a.length;s++){if(82===a[s].kind&&s<a.length-1){for(var u=a[s],l=a[s+1],_=!0,d=l.getStart(i)-1;d>=u.end;d--)if(!e.isWhiteSpaceSingleLine(i.text.charCodeAt(d))){_=!1;break}if(_){o.push({fileName:i.fileName,textSpan:e.createTextSpanFromBounds(u.getStart(),l.end),kind:"reference"}),s++;continue}}o.push(n(a[s],i))}return o}(0,r):void 0;case 96:return m(t.parent,e.isReturnStatement,f);case 100:return m(t.parent,e.isThrowStatement,p);case 102:case 74:case 87:return m(74===t.kind?t.parent.parent:t.parent,e.isTryStatement,d);case 98:return m(t.parent,e.isSwitchStatement,_);case 73:case 79:return m(t.parent.parent.parent,e.isSwitchStatement,_);case 72:case 77:return m(t.parent,e.isBreakOrContinueStatement,l);case 88:case 106:case 81:return m(t.parent,function(t){return e.isIterationStatement(t,!0)},u);case 123:return s(e.isConstructorDeclaration,[123]);case 125:case 136:return s(e.isAccessor,[125,136]);default:return e.isModifierKind(t.kind)&&(e.isDeclaration(t.parent)||e.isVariableStatement(t.parent))?g((a=t.parent,o=e.modifierToFlag(i=t.kind),e.mapDefined(function(t,n){var r=t.parent;switch(r.kind){case 238:case 272:case 211:case 264:case 265:return 128&n&&e.isClassDeclaration(t)?t.members.concat([t]):r.statements;case 154:case 153:case 232:return r.parameters.concat(e.isClassLike(r.parent)?r.parent.members:[]);case 233:case 203:var i=r.members;if(28&n){var a=e.find(r.members,e.isConstructorDeclaration);if(a)return i.concat(a.parameters)}else if(128&n)return i.concat([r]);return i;default:e.Debug.assertNever(r,"Invalid container kind.")}}(a,o),function(t){if(e.getModifierFlags(t)&o){var n=e.find(t.modifiers,function(e){return e.kind===i});return e.Debug.assert(!!n),n}}))):void 0}var i,a,o;function s(n,i){return m(t.parent,n,function(t){return e.mapDefined(t.symbol.declarations,function(t){return n(t)?e.find(t.getChildren(r),function(t){return e.contains(i,t.kind)}):void 0})})}function m(e,t,n){return t(e)?g(n(e,r)):void 0}function g(e){return e&&e.map(function(e){return n(e,r)})}}(t,r);return i&&[{fileName:r.fileName,highlightSpans:i}]}(s,i)}}()}(l||(l={})),function(e){e.createDocumentRegistry=function(t,n){void 0===n&&(n="");var r=e.createMap(),i=e.createGetCanonicalFileName(!!t);function a(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 o(t,n){var i=r.get(t);return!i&&n&&r.set(t,i=e.createMap()),i}function s(e,t,n,r,i,a,o){return u(e,t,n,r,i,a,!0,o)}function c(e,t,n,r,i,a,o){return u(e,t,n,r,i,a,!1,o)}function u(t,n,r,i,a,s,c,u){var l=o(i,!0),_=l.get(n);if(_)_.sourceFile.version!==s&&(_.sourceFile=e.updateLanguageServiceSourceFile(_.sourceFile,a,s,a.getChangeRange(_.sourceFile.scriptSnapshot))),c&&_.languageServiceRefCount++;else{var d=e.createLanguageServiceSourceFile(t,a,r.target,s,!1,u);l.set(n,_={sourceFile:d,languageServiceRefCount:1,owners:[]})}return _.sourceFile}function l(t,n){var r=o(n,!1);e.Debug.assert(void 0!==r);var i=r.get(t);i.languageServiceRefCount--,e.Debug.assert(i.languageServiceRefCount>=0),0===i.languageServiceRefCount&&r.delete(t)}return{acquireDocument:function(t,r,o,c,u){return s(t,e.toPath(t,n,i),r,a(r),o,c,u)},acquireDocumentWithKey:s,updateDocument:function(t,r,o,s,u){return c(t,e.toPath(t,n,i),r,a(r),o,s,u)},updateDocumentWithKey:c,releaseDocument:function(t,r){return l(e.toPath(t,n,i),a(r))},releaseDocumentWithKey:l,reportStats:function(){var t=e.arrayFrom(r.keys()).filter(function(e){return e&&"_"===e.charAt(0)}).map(function(e){var t=[];return r.get(e).forEach(function(e,n){t.push({name:n,refCount:e.languageServiceRefCount,references:e.owners.slice(0)})}),t.sort(function(e,t){return t.refCount-e.refCount}),{bucket:e,sourceFiles:t}});return JSON.stringify(t,void 0,2)},getKeyForCompilationSettings:a}}}(l||(l={})),function(e){!function(t){function n(t,n){return e.forEach(272===t.kind?t.statements:t.body.statements,function(t){return n(t)||l(t)&&e.forEach(t.body&&t.body.statements,n)})}function r(e,t){if(e.externalModuleIndicator||void 0!==e.imports)for(var r=0,a=e.imports;r<a.length;r++){var o=a[r];t(i(o),o)}else n(e,function(e){switch(e.kind){case 248:case 242:(n=e).moduleSpecifier&&9===n.moduleSpecifier.kind&&t(n,n.moduleSpecifier);break;case 241:var n,r=(n=e).moduleReference;252===r.kind&&9===r.expression.kind&&t(n,r.expression)}})}function i(t){var n=t.parent;switch(n.kind){case 185:case 242:case 248:return n;case 252:return n.parent;default:e.Debug.fail("Unexpected module specifier parent: "+n.kind)}}function a(t,n,r){var i=t.parent;if(i){var a=r.getMergedSymbol(i);return e.isExternalModuleSymbol(a)?{exportingModuleSymbol:a,exportKind:n}:void 0}}function o(t){return"default"!==t.escapedName?t.escapedName:e.forEach(t.declarations,function(t){var n=e.getNameOfDeclaration(t);return n&&71===n.kind&&n.escapedText})}function s(e,t){return t.getMergedSymbol(u(e).symbol)}function u(t){if(185===t.kind)return t.getSourceFile();var n=t.parent;return 272===n.kind?n:(e.Debug.assert(238===n.kind),e.cast(n.parent,l))}function l(e){return 237===e.kind&&9===e.name.kind}function _(e){var t=e.moduleReference;return 252===t.kind&&9===t.expression.kind}t.createImportTracker=function(t,i,a){var l=function(t,n,i){for(var a=e.createMap(),o=0,s=t;o<s.length;o++){var c=s[o];i.throwIfCancellationRequested(),r(c,function(t,r){var i=n.getSymbolAtLocation(r);if(i){var o=e.getSymbolId(i).toString(),s=a.get(o);s||a.set(o,s=[]),s.push(t)}})}return a}(t,i,a);return function(r,d,p){var f=function(t,r,i,a,o){var c=d.exportingModuleSymbol,l=d.exportKind,_=e.nodeSeenTracker(),p=e.nodeSeenTracker(),f=[],m=!!c.globalExports,g=m?void 0:[];return function t(n){var r=v(n);if(r)for(var i=0,c=r;i<c.length;i++){var d=c[i];if(_(d))switch(o.throwIfCancellationRequested(),d.kind){case 185:if(!m){var p=d.parent;if(2===l&&230===p.kind){var g=p.name;if(71===g.kind){f.push(g);break}}h(d.getSourceFile())}break;case 241:y(d,d.name,e.hasModifier(d,1));break;case 242:var b=d.importClause&&d.importClause.namedBindings;if(b&&244===b.kind)y(d,b.name);else if(e.isDefaultImport(d)){var x=u(d);m||h(x),f.push(d)}else f.push(d);break;case 248:d.exportClause?f.push(d):t(s(d,a))}}}(c),{directImports:f,indirectUsers:function(){if(m)return t;for(var n=0,r=c.declarations;n<r.length;n++){var i=r[n];e.isExternalModuleAugmentation(i)&&h(i)}return g.map(e.getSourceFileOfNode)}()};function y(t,r,i){if(2===l)f.push(t);else if(!m){var o=u(t);e.Debug.assert(272===o.kind||237===o.kind),i||function(e,t,r){var i=r.getSymbolAtLocation(t);return n(e,function(e){if(248===e.kind){var t=e.exportClause;if(!e.moduleSpecifier&&t)for(var n=0,a=t.elements;n<a.length;n++)if(r.getExportSpecifierLocalTargetSymbol(a[n])===i)return!0}})}(o,r,a)?function t(n){if(h(n)){var r=a.getMergedSymbol(n.symbol);e.Debug.assert(!!(1536&r.flags));var i=v(r);if(i)for(var o=0,s=i;o<s.length;o++)t(u(s[o]))}}(o):h(o)}}function h(t){e.Debug.assert(!m);var n=p(t);return n&&g.push(t),n}function v(t){return r.get(e.getSymbolId(t).toString())}}(t,l,0,i,a);return c({indirectUsers:f.indirectUsers},function(e,t,n,r,i){var a=[],s=[];function c(e,t){a.push([e,t])}if(e)for(var u=0,l=e;u<l.length;u++)d(l[u]);return{importSearches:a,singleReferences:s};function d(e){if(241!==e.kind)if(71!==e.kind){if(9===e.moduleSpecifier.kind)if(248!==e.kind){var a=e.importClause;if(a){var s=a.namedBindings;if(s&&244===s.kind)p(s.name);else if(0===n)f(s);else{var u=a.name;!u||i&&u.escapedText!==o(t)||c(u,r.getSymbolAtLocation(u)),i||1!==n||f(s)}}}else f(e.exportClause)}else p(e);else _(e)&&p(e.name)}function p(e){2!==n||i&&!m(e.escapedText)||c(e,r.getSymbolAtLocation(e))}function f(e){if(e)for(var t=0,n=e.elements;t<n.length;t++){var a=n[t],o=a.name,u=a.propertyName;m((u||o).escapedText)&&(u?(s.push(u),i||c(o,r.getSymbolAtLocation(o))):c(o,250===a.kind&&a.propertyName?r.getExportSpecifierLocalTargetSymbol(a):r.getSymbolAtLocation(o)))}}function m(e){return e===t.escapedName||0!==n&&"default"===e}}(f.directImports,r,d.exportKind,i,p))}},function(e){e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals"}(t.ExportKind||(t.ExportKind={})),function(e){e[e.Import=0]="Import",e[e.Export=1]="Export"}(t.ImportExport||(t.ImportExport={})),t.findModuleReferences=function(e,t,n){for(var i=[],a=e.getTypeChecker(),o=0,s=t;o<s.length;o++){var c=s[o],u=n.valueDeclaration;if(272===u.kind){for(var l=0,_=c.referencedFiles;l<_.length;l++)e.getSourceFileFromReference(c,f=_[l])===u&&i.push({kind:"reference",referencingFile:c,ref:f});for(var d=0,p=c.typeReferenceDirectives;d<p.length;d++){var f=p[d],m=e.getResolvedTypeReferenceDirectives().get(f.fileName);void 0!==m&&m.resolvedFileName===u.fileName&&i.push({kind:"reference",referencingFile:c,ref:f})}}r(c,function(e,t){a.getSymbolAtLocation(t)===n&&i.push({kind:"import",literal:t})})}return i},t.getImportOrExportSymbol=function(t,n,r,i){return i?s():s()||function(){var i=function(t){var n=t.parent;switch(n.kind){case 241:return n.name===t&&_(n)?{isNamedImport:!1}:void 0;case 246:return n.propertyName?void 0:{isNamedImport:!0};case 243:case 244:return e.Debug.assert(n.name===t),{isNamedImport:!1};default:return}}(t);if(i){var a=r.getImmediateAliasedSymbol(n);if(a){"export="===(a=function(t,n){if(t.declarations)for(var r=0,i=t.declarations;r<i.length;r++){var a=i[r];if(e.isExportSpecifier(a)&&!a.propertyName&&!a.parent.parent.moduleSpecifier)return n.getExportSpecifierLocalTargetSymbol(a)}return t}(a,r)).escapedName&&(a=function(t,n){if(2097152&t.flags)return e.Debug.assertDefined(n.getImmediateAliasedSymbol(t));var r=t.valueDeclaration;return e.isExportAssignment(r)?e.Debug.assertDefined(r.expression.symbol):e.isBinaryExpression(r)?e.Debug.assertDefined(r.right.symbol):e.Debug.fail()}(a,r));var s=o(a);return void 0===s||"default"===s||s===n.escapedName?c({kind:0,symbol:a},i):void 0}}}();function s(){var a=t.parent;if(n.exportSymbol)return 183===a.kind?n.declarations.some(function(e){return e===a})&&e.isBinaryExpression(a.parent)?c(a.parent,!1):void 0:u(n.exportSymbol,l(a));var o=function(e,t){return 230===e.kind?e.name!==t?void 0:267===e.parent.kind?void 0:212===e.parent.parent.kind?e.parent.parent:void 0:e}(a,t);if(o&&e.hasModifier(o,1)){if(e.isImportEqualsDeclaration(o)&&o.moduleReference===t){if(i)return;return{kind:0,symbol:r.getSymbolAtLocation(o.name),isNamedImport:!1}}return u(n,l(o))}if(e.isExportAssignment(a))return s(a);if(e.isExportAssignment(a.parent))return s(a.parent);if(e.isBinaryExpression(a))return c(a,!0);if(e.isBinaryExpression(a.parent))return c(a.parent,!0);function s(t){var r=e.Debug.assertDefined(t.symbol.parent,"Expected export symbol to have a parent");return{kind:1,symbol:n,exportInfo:{exportingModuleSymbol:r,exportKind:t.isExportEquals?2:1}}}function c(t,i){var a;switch(e.getSpecialPropertyAssignmentKind(t)){case 1:a=0;break;case 2:a=2;break;default:return}var o=i?r.getSymbolAtLocation(e.cast(t.left,e.isPropertyAccessExpression).name):n;return!o||1536&r.getMergedSymbol(o.parent).flags||e.Debug.fail("Special property assignment kind does not have a module as its parent. Assignment is "+e.Debug.showSymbol(o)+", parent is "+e.Debug.showSymbol(o.parent)),o&&u(o,a)}}function u(e,t){var n=a(e,t,r);return n&&{kind:1,symbol:e,exportInfo:n}}function l(t){return e.hasModifier(t,512)?1:0}},t.getExportInfo=a}(e.FindAllReferences||(e.FindAllReferences={}))}(l||(l={})),function(e){!function(t){function n(e,t){return{type:"node",node:e,isInString:t}}function r(e,n,r,a,o,s){return void 0===s&&(s={}),i(t.Core.getReferencedSymbolsForNode(e,n,r,a,o,s))}function i(t){return t&&e.flatMap(t,function(e){return e.references})}function a(n,r,i){var a=t.Core.getIntersectingMeaningFromDeclarations(i,n),o=e.firstOrUndefined(n.declarations)||i,s=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(r,n,o.getSourceFile(),o,o,a);return{displayParts:s.displayParts,kind:s.symbolKind}}function o(t){if("span"===t.type)return{textSpan:t.textSpan,fileName:t.fileName,isWriteAccess:!1,isDefinition:!1};var n=t.node,r=t.isInString;return{fileName:n.getSourceFile().fileName,textSpan:s(n),isWriteAccess:u(n),isDefinition:79===n.kind||e.isAnyDeclarationName(n)||e.isLiteralComputedPropertyDeclarationName(n),isInString:r}}function s(t){var n=t.getStart(),r=t.getEnd();return 9===t.kind&&(n+=1,r-=1),e.createTextSpanFromBounds(n,r)}function u(t){return 79===t.kind||e.isAnyDeclarationName(t)||e.isWriteAccess(t)}t.nodeEntry=n,t.findReferencedSymbols=function(n,r,i,s,c){var u=e.getTouchingPropertyName(s,c,!0),l=t.Core.getReferencedSymbolsForNode(c,u,n,i,r,{}),_=n.getTypeChecker();return l&&l.length?e.mapDefined(l,function(t){var n=t.definition,r=t.references;return n&&{definition:function(t,n,r){var i=function(){switch(t.type){case"symbol":var i=a(d=t.symbol,n,r),o=i.displayParts,s=i.kind,c=o.map(function(e){return e.text}).join("");return{node:d.declarations?e.getNameOfDeclaration(e.first(d.declarations))||e.first(d.declarations):r,name:c,kind:s,displayParts:o};case"label":var u=t.node;return{node:u,name:u.text,kind:"label",displayParts:[e.displayPart(u.text,e.SymbolDisplayPartKind.text)]};case"keyword":var l=t.node,_=e.tokenToString(l.kind);return{node:l,name:_,kind:"keyword",displayParts:[{text:_,kind:"keyword"}]};case"this":var d,p=t.node;return{node:p,name:"this",kind:"var",displayParts:(d=n.getSymbolAtLocation(p))&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(n,d,p.getSourceFile(),e.getContainerNode(p),p).displayParts};case"string":var f=t.node;return{node:f,name:f.text,kind:"var",displayParts:[e.displayPart(e.getTextOfNode(f),e.SymbolDisplayPartKind.stringLiteral)]};default:return e.Debug.assertNever(t)}}(),o=i.node,s=i.name,c=i.kind,u=i.displayParts,l=o.getSourceFile();return{containerKind:"",containerName:"",fileName:l.fileName,kind:c,name:s,textSpan:e.createTextSpanFromNode(o,l),displayParts:u}}(n,_,u),references:r.map(o)}}):void 0},t.getImplementationsAtPosition=function(i,o,u,l,_){var d=function(i,a,o,s,c){if(272!==s.kind){var u=i.getTypeChecker();if(269===s.parent.kind){var l=[];return t.Core.getReferenceEntriesForShorthandPropertyAssignment(s,u,function(e){return l.push(n(e))}),l}if(97===s.kind||e.isSuperProperty(s.parent)){var _=u.getSymbolAtLocation(s);return _.valueDeclaration&&[n(_.valueDeclaration)]}return r(c,s,i,o,a,{implementations:!0})}}(i,o,u,e.getTouchingPropertyName(l,_,!1),_),p=i.getTypeChecker();return e.map(d,function(t){return function(t,n){if("node"===t.type){var r=t.node;return c({textSpan:s(r),fileName:r.getSourceFile().fileName},function(t,n){var r=n.getSymbolAtLocation(e.isDeclaration(t)&&t.name?t.name:t);return r?a(r,n,t):182===t.kind?{kind:"interface",displayParts:[e.punctuationPart(19),e.textPart("object literal"),e.punctuationPart(20)]}:203===t.kind?{kind:"local class",displayParts:[e.punctuationPart(19),e.textPart("anonymous local class"),e.punctuationPart(20)]}:{kind:e.getNodeKind(t),displayParts:[]}}(r,n))}return{textSpan:t.textSpan,fileName:t.fileName,kind:"",displayParts:[]}}(t,p)})},t.findReferencedEntries=function(n,r,a,s,c,u){var l=e.getTouchingPropertyName(s,c,!0);return e.map(i(t.Core.getReferencedSymbolsForNode(c,l,n,a,r,u)),o)},t.getReferenceEntriesForNode=r,t.toHighlightSpan=function(e){if("span"===e.type)return{fileName:e.fileName,span:{textSpan:e.textSpan,kind:"reference"}};var t=e.node,n=e.isInString,r=e.node.getSourceFile().fileName,i=u(t);return{fileName:r,span:{textSpan:s(t),kind:i?"writtenReference":"reference",isInString:n}}}}(e.FindAllReferences||(e.FindAllReferences={}))}(l||(l={})),function(e){!function(t){!function(n){function r(n,r,i){e.Debug.assert(!!r.valueDeclaration);for(var a=t.findModuleReferences(n,i,r).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=r.declarations;o<s.length;o++){var c=s[o];switch(c.kind){case 272:break;case 237:a.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:r},references:a}]}var i;n.getReferencedSymbolsForNode=function(n,i,s,f,g,v){if(void 0===v&&(v={}),e.isSourceFile(i)){var C=e.GoToDefinition.getReferenceAtPosition(i,n,s);return C&&r(s,s.getTypeChecker().getMergedSymbol(C.file.symbol),f)}if(!v.implementations){var T=function(n,r,i){if(e.isTypeKeyword(n.kind))return function(n,r,i){var a=e.flatMap(n,function(n){return i.throwIfCancellationRequested(),e.mapDefined(d(n,e.tokenToString(r),n),function(i){var a=e.getTouchingPropertyName(n,i,!0);return a.kind===r?t.nodeEntry(a):void 0})});return a.length?[{definition:{type:"keyword",node:a[0].node},references:a}]:void 0}(r,n.kind,i);if(e.isJumpStatementTarget(n)){var a=e.getTargetLabel(n.parent,n.text);return a&&p(a.parent,a)}return e.isLabelOfLabeledStatement(n)?p(n.parent,n):e.isThis(n)?function(t,n,r){var i=e.getThisContainer(t,!1),a=32;switch(i.kind){case 153:case 152:if(e.isObjectLiteralMethod(i))break;case 151:case 150:case 154:case 155:case 156:a&=e.getModifierFlags(i),i=i.parent;break;case 272:if(e.isExternalModule(i))return;case 232:case 190:break;default:return}for(var o=[],s=0,c=272===i.kind?n:[i.getSourceFile()];s<c.length;s++){var u=c[s];r.throwIfCancellationRequested();var l=d(u,"this",e.isSourceFile(i)?u:i);b(u,272===i.kind?u:i,l,a,o)}return[{definition:{type:"this",node:t},references:o}]}(n,r,i):97===n.kind?function(r){var i=e.getSuperContainer(n,!1);if(i){var a=32;switch(i.kind){case 151:case 150:case 153:case 152:case 154:case 155:case 156:a&=e.getModifierFlags(i),i=i.parent;break;default:return}var o=i.getSourceFile(),s=e.mapDefined(d(o,"super",i),function(n){var r=e.getTouchingWord(o,n,!1);if(r&&97===r.kind){var s=e.getSuperContainer(r,!1);return s&&(32&e.getModifierFlags(s))===a&&s.parent.symbol===i.symbol?t.nodeEntry(r):void 0}});return[{definition:{type:"symbol",symbol:i.symbol},references:s}]}}():void 0}(i,f,g);if(T)return T}var E=s.getTypeChecker(),N=E.getSymbolAtLocation(i);return N?1536&N.flags&&function(t){if(!e.isStringLiteralLike(t))return!1;switch(t.parent.kind){case 237:case 252:case 242:case 248:return!0;case 185:return e.isRequireCall(t.parent,!1)||e.isImportCall(t.parent);default:return!1}}(i)?r(s,N,f):function(t,n,r,i,s,d){var p=D(n,t=function(t,n,r){var i=n.parent;return e.isExportSpecifier(i)?y(n,t,i,r):e.isImportSpecifier(i)&&i.propertyName===n?r.getImmediateAliasedSymbol(t):e.firstDefined(t.declarations,function(i){return i.parent||(e.Debug.assert(272===i.kind),e.Debug.fail("Unexpected symbol at "+e.Debug.showSyntaxKind(n)+": "+e.Debug.showSymbol(t))),e.isTypeLiteralNode(i.parent)&&e.isUnionTypeNode(i.parent.parent)?r.getPropertyOfType(r.getTypeFromTypeNode(i.parent.parent),t.name):void 0})}(t,n,i)||t),f=[],g=new a(r,function(t){switch(t.kind){case 123:return 1;case 71:if(e.isClassLike(t.parent))return e.Debug.assert(t.parent.name===t),2;default:return 0}}(n),i,s,p,d,f);if(79===n.kind)h(n,t,g),o(n,t,{exportingModuleSymbol:e.Debug.assertDefined(t.parent,"Expected export symbol to have a parent"),exportKind:1},g);else{var v=g.createSearch(n,t,void 0,{allSearchSymbols:function(t,n,r,i){var a=[],o=e.getContainingObjectLiteralElement(n);if(o){if(269!==o.kind){var s=u(n,r);s&&a.push(s)}for(var c=0,l=S(o,r);c<l.length;c++)f(l[c]);var d=r.getShorthandAssignmentValueSymbol(n.parent);d&&a.push(d)}e.addRange(a,x(t,r));var p=_(t,r);return p&&(a.push(p),f(p)),f(t),a;function f(t){for(var n=0,o=r.getRootSymbols(t);n<o.length;n++){var s=o[n];a.push(s),!i&&s.parent&&96&s.parent.flags&&k(s.parent,s.name,a,e.createSymbolTable(),r)}}}(t,n,i,d.implementations)}),b=function(t){var n=t.declarations,r=t.flags,i=t.parent,a=t.valueDeclaration;if(a&&(190===a.kind||203===a.kind))return a;if(n){if(8196&r){var o=e.find(n,function(t){return e.hasModifier(t,8)});return o?e.getAncestor(o,233):void 0}if(!l(t)){var s,c=i&&!(262144&t.flags);if(!c||1536&i.flags&&e.isExternalModuleSymbol(i)&&!i.globalExports){for(var u=0,_=n;u<_.length;u++){var d=e.getContainerNode(_[u]);if(s&&s!==d)return;if(!d||272===d.kind&&!e.isExternalOrCommonJsModule(d))return;s=d}return c?s.getSourceFile():s}}}}(t);if(b)m(b,b.getSourceFile(),v,g);else for(var C=0,T=g.sourceFiles;C<T.length;C++){var E=T[C];g.cancellationToken.throwIfCancellationRequested(),c(E,v,g)}}return f}(N,i,f,E,g,v):!v.implementations&&e.isStringLiteral(i)?function(n,r,i){var a=e.flatMap(r,function(r){return i.throwIfCancellationRequested(),e.mapDefined(d(r,n.text),function(i){var a=e.tryCast(e.getTouchingWord(r,i,!1),e.isStringLiteral);return a&&a.text===n.text?t.nodeEntry(a,!0):void 0})});return[{definition:{type:"string",node:n},references:a}]}(i,f,g):void 0},function(e){e[e.None=0]="None",e[e.Constructor=1]="Constructor",e[e.Class=2]="Class"}(i||(i={}));var a=function(){function n(t,n,r,i,a,o,s){this.sourceFiles=t,this.specialSearchKind=n,this.checker=r,this.cancellationToken=i,this.searchMeaning=a,this.options=o,this.result=s,this.inheritsFromCache=e.createMap(),this.markSeenContainingTypeReference=e.nodeSeenTracker(),this.markSeenReExportRHS=e.nodeSeenTracker(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[],this.includedSourceFiles=e.arrayToSet(t,function(e){return e.fileName})}return n.prototype.includesSourceFile=function(e){return this.includedSourceFiles.has(e.fileName)},n.prototype.getImportSearches=function(e,n){return this.importTracker||(this.importTracker=t.createImportTracker(this.sourceFiles,this.checker,this.cancellationToken)),this.importTracker(e,n,this.options.isForRename)},n.prototype.createSearch=function(t,n,r,i){void 0===i&&(i={});var a=i.text,o=void 0===a?e.stripQuotes(e.unescapeLeadingUnderscores((e.getLocalSymbolForExportDefault(n)||n).escapedName)):a,s=i.allSearchSymbols,c=e.escapeLeadingUnderscores(o),u=this.options.implementations&&function(t,n,r){var i,a=e.isRightSideOfPropertyAccess(i=t)&&i.parent;if(a){var o=r.getTypeAtLocation(a.expression);if(o)return o.symbol&&96&o.symbol.flags&&o.symbol!==n.parent?[o.symbol]:393216&o.flags?function e(t,n){void 0===n&&(n=[]);for(var r=0,i=t.types;r<i.length;r++){var a=i[r];a.symbol&&96&a.symbol.getFlags()&&n.push(a.symbol),393216&a.getFlags()&&e(a,n)}return n}(o):void 0}}(t,n,this.checker);return{symbol:n,comingFrom:r,text:o,escapedText:c,parents:u,includes:function(t){return s?e.contains(s,t):t===n}}},n.prototype.referenceAdder=function(n){var r=e.getSymbolId(n),i=this.symbolIdToReferences[r];return i||(i=this.symbolIdToReferences[r]=[],this.result.push({definition:{type:"symbol",symbol:n},references:i})),function(e){return i.push(t.nodeEntry(e))}},n.prototype.addStringOrCommentReference=function(e,t){this.result.push({definition:void 0,references:[{type:"span",fileName:e,textSpan:t}]})},n.prototype.markSearchedSymbol=function(t,n){var r=e.getNodeId(t),i=e.getSymbolId(n),a=this.sourceFileToSeenSymbols[r]||(this.sourceFileToSeenSymbols[r]=[]);return!a[i]&&(a[i]=!0)},n}();function o(e,t,n,r){var i=r.getImportSearches(t,n),a=i.importSearches,o=i.singleReferences,s=i.indirectUsers;if(o.length)for(var u=r.referenceAdder(t),l=0,_=o;l<_.length;l++)u(_[l]);for(var d=0,p=a;d<p.length;d++){var m=p[d],g=m[0],y=m[1];f(g.getSourceFile(),r.createSearch(g,y,1),r)}if(s.length){var h=void 0;switch(n.exportKind){case 0:h=r.createSearch(e,t,1);break;case 1:h=r.options.isForRename?void 0:r.createSearch(e,t,1,{text:"default"})}if(h)for(var v=0,b=s;v<b.length;v++)c(b[v],h,r)}}function s(e,t){for(var n=0,r=e.declarations;n<r.length;n++){var i=r[n],a=i.getSourceFile();t.includesSourceFile(a)&&f(a,t.createSearch(i,e,0),t)}}function c(t,n,r){void 0!==e.getNameTable(t).get(n.escapedText)&&f(t,n,r)}function u(t,n){return e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent.parent)&&n.getPropertySymbolOfDestructuringAssignment(t)}function l(t){var n=e.getDeclarationOfKind(t,180);if(n&&178===n.parent.kind&&!n.propertyName)return n}function _(t,n){var r=l(t);if(r){var i=n.getTypeAtLocation(r.parent),a=i&&n.getPropertyOfType(i,r.name.text);return a&&98304&a.flags?(e.Debug.assert(!!(33554432&a.flags)),a.target):a}}function d(t,n,r){void 0===r&&(r=t);var i=[];if(!n||!n.length)return i;for(var a=t.text,o=a.length,s=n.length,c=a.indexOf(n,r.pos);c>=0&&!(c>r.end);){var u=c+s;0!==c&&e.isIdentifierPart(a.charCodeAt(c-1),6)||u!==o&&e.isIdentifierPart(a.charCodeAt(u),6)||i.push(c),c=a.indexOf(n,c+s+1)}return i}function p(n,r){var i=n.getSourceFile(),a=r.text,o=e.mapDefined(d(i,a,n),function(n){var o=e.getTouchingWord(i,n,!1);return o&&(o===r||e.isJumpStatementTarget(o)&&e.getTargetLabel(o,a)===r)?t.nodeEntry(o):void 0});return[{definition:{type:"label",node:r},references:o}]}function f(e,t,n){return n.cancellationToken.throwIfCancellationRequested(),m(e,e,t,n)}function m(e,t,n,r){if(r.markSearchedSymbol(t,n.symbol))for(var i=0,a=d(t,n.text,e);i<a.length;i++)g(t,a[i],n,r)}function g(n,r,i,a){var c=e.getTouchingPropertyName(n,r,!0);if(function(t,n){switch(t.kind){case 71:return t.text.length===n.length;case 9:return(e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t)||function(t){return 9===t.kind&&(e.isNameOfModuleDeclaration(t)||e.isExpressionOfExternalModuleImportEqualsDeclaration(t))}(t))&&t.text.length===n.length;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t)&&t.text.length===n.length;case 79:return"default".length===n.length;default:return!1}}(c,i.text)){if(e.getMeaningFromLocation(c)&a.searchMeaning){var l=a.checker.getSymbolAtLocation(c);if(l){var d=c.parent;if(!e.isImportSpecifier(d)||d.propertyName!==c){if(e.isExportSpecifier(d))return e.Debug.assert(71===c.kind),void function(n,r,i,a,c){var u=i.propertyName,l=i.name,_=i.parent.parent,d=y(n,r,i,c.checker);if(a.includes(d)){if(u?n===u?(_.moduleSpecifier||m(),!c.options.isForRename&&c.markSeenReExportRHS(l)&&h(l,r,c)):c.markSeenReExportRHS(n)&&m():m(),n!==u||!c.options.isForRename){var p=t.getExportInfo(r,79===n.originalKeywordKind?1:0,c.checker);e.Debug.assert(!!p),o(n,r,p,c)}if(1!==a.comingFrom&&_.moduleSpecifier&&!u){var f=c.checker.getExportSpecifierLocalTargetSymbol(i);f&&s(f,c)}}function m(){h(n,d,c)}}(c,l,d,i,a);var p=function t(n,r,i,a){var o=a.checker;if(n.includes(r))return r;if(1&r.flags){e.Debug.assert(!(4&r.flags));var s=x(r,o);if(s)return t(n,e.find(s,function(e){return!!(4&e.flags)}),i,a)}var c=e.getContainingObjectLiteralElement(i);if(c){var l=e.firstDefined(S(c,o),m);if(l)return l;var d=u(i,o);if(d&&n.includes(d))return d}var p=_(r,o);if(p){var f=m(p);if(f)return f}return m(r);function m(t){return e.firstDefined(o.getRootSymbols(t),function(t){if(n.includes(t))return t;if(t.parent&&96&t.parent.flags){if(n.parents&&!e.some(n.parents,function(n){return function(t,n,r,i){var a=64&n.getFlags();return o(t);function o(t){if(t===n)return!0;var i=e.getSymbolId(t)+","+e.getSymbolId(n),o=r.get(i);if(void 0!==o)return o;r.set(i,!1);var c=e.forEach(t.getDeclarations(),function(t){if(e.isClassLike(t)){if(a){var n=e.getClassImplementsHeritageClauseElements(t);if(n)for(var r=0,i=n;r<i.length;r++)if(s(i[r]))return!0}return s(e.getClassExtendsHeritageClauseElement(t))}return!(234!==t.kind||!a)&&e.forEach(e.getInterfaceBaseTypeNodes(t),s)});return r.set(i,c),c}function s(e){if(e){var t=i.getTypeAtLocation(e);if(t&&t.symbol)return o(t.symbol)}return!1}}(t.parent,n,a.inheritsFromCache,o)}))return;var r=[];return k(t.parent,t.name,r,e.createSymbolTable(),o),e.find(r,n.includes)}})}}(i,l,c,a);if(p){switch(a.specialSearchKind){case 0:h(c,p,a);break;case 1:!function(t,n,r,i){e.isNewExpressionTarget(t)&&h(t,r.symbol,i);var a=function(){return i.referenceAdder(r.symbol)};if(e.isClassLike(t.parent))e.Debug.assert(79===t.kind||t.parent.name===t),function(t,n,r){for(var i=0,a=t.members.get("__constructor").declarations;i<a.length;i++){var o=a[i],s=e.findChildOfKind(o,123,n);e.Debug.assert(154===o.kind&&!!s),r(s)}t.exports.forEach(function(t){var n=t.valueDeclaration;if(n&&153===n.kind){var i=n.body;i&&T(i,99,function(t){e.isNewExpressionTarget(t)&&r(t)})}})}(r.symbol,n,a());else{var o=e.tryGetClassExtendingExpressionWithTypeArguments(e.climbPastPropertyAccess(t).parent);o&&function(t,n){var r=t.symbol.members.get("__constructor");if(r)for(var i=0,a=r.declarations;i<a.length;i++){var o=a[i];e.Debug.assert(154===o.kind);var s=o.body;s&&T(s,97,function(t){e.isCallExpressionTarget(t)&&n(t)})}}(o,a())}}(c,n,i,a);break;case 2:!function(t,n,r){h(t,n.symbol,r),!r.options.isForRename&&e.isClassLike(t.parent)&&(e.Debug.assert(t.parent.name===t),function(t,n){for(var r=0,i=t.members;r<i.length;r++){var a=i[r];e.isMethodOrAccessor(a)&&e.hasModifier(a,32)&&a.body.forEachChild(function t(r){99===r.kind?n(r):e.isFunctionLike(r)||r.forEachChild(t)})}}(t.parent,r.referenceAdder(n.symbol)))}(c,i,a);break;default:e.Debug.assertNever(a.specialSearchKind)}!function(e,n,r,i){var a=t.getImportOrExportSymbol(e,n,i.checker,1===r.comingFrom);if(a){var c=a.symbol;0===a.kind?i.options.isForRename&&!a.isNamedImport||s(c,i):o(e,c,a.exportInfo,i)}}(c,l,i,a)}else!function(t,n,r){var i=l.flags,a=l.valueDeclaration,o=r.checker.getShorthandAssignmentValueSymbol(a);33554432&i||!n.includes(o)||h(e.getNameOfDeclaration(a),o,r)}(0,i,a)}}}}else!a.options.implementations&&(a.options.findInStrings&&e.isInString(n,r)||a.options.findInComments&&e.isInNonReferenceComment(n,r))&&a.addStringOrCommentReference(n.fileName,e.createTextSpan(r,i.text.length))}function y(t,n,r,i){return function(t,n){var r=n.parent,i=n.propertyName;return e.Debug.assert(i===t||n.name===t),i?i===t:!r.parent.moduleSpecifier}(t,r)&&i.getExportSpecifierLocalTargetSymbol(r)||n}function h(t,n,r){var i=r.referenceAdder(n);r.options.implementations?function(t,n,r){if(e.isDeclarationName(t)&&function(t){if(!t)return!1;if(e.isVariableLike(t)&&e.hasInitializer(t))return!0;if(230===t.kind){var n=function(t){if(t.parent&&t.parent.parent&&212===t.parent.parent.kind)return e.Debug.assert(231===t.parent.kind),t.parent.parent}(t);return n&&e.hasModifier(n,2)}if(e.isFunctionLike(t))return!!t.body||e.hasModifier(t,2);switch(t.kind){case 233:case 203:case 236:case 237:return!0}return!1}(t.parent))n(t.parent);else if(71===t.kind){269===t.parent.kind&&C(t,r.checker,n);var i=function t(n){if(n&&n.parent){if(205===n.kind&&266===n.parent.kind&&e.isClassLike(n.parent.parent))return n.parent.parent;if(71===n.kind||183===n.kind)return t(n.parent)}}(t);if(i)n(i);else{var a=function(t){for(var n;t;)e.isTypeNode(t)&&(n=t),t=t.parent;return n}(t);if(a&&r.markSeenContainingTypeReference(a)){var o=a.parent;if(e.hasType(o)&&o.type===a&&e.hasInitializer(o)&&v(o.initializer))n(o.initializer);else if(e.isFunctionLike(o)&&o.type===a&&o.body){var s=o.body;211===s.kind?e.forEachReturnStatement(s,function(e){e.expression&&v(e.expression)&&n(e.expression)}):v(s)&&n(s)}else e.isAssertionExpression(o)&&v(o.expression)&&n(o.expression)}}}}(t,i,r):i(t)}function v(e){switch(e.kind){case 189:return v(e.expression);case 191:case 190:case 182:case 203:case 181:return!0;default:return!1}}function b(n,r,i,a,o){e.forEach(i,function(i){var s=e.getTouchingWord(n,i,!1);if(s&&e.isThis(s)){var c=e.getThisContainer(s,!1);switch(r.kind){case 190:case 232:r.symbol===c.symbol&&o.push(t.nodeEntry(s));break;case 153:case 152:e.isObjectLiteralMethod(r)&&r.symbol===c.symbol&&o.push(t.nodeEntry(s));break;case 203:case 233:c.parent&&r.symbol===c.parent.symbol&&(32&e.getModifierFlags(c))===a&&o.push(t.nodeEntry(s));break;case 272:272!==c.kind||e.isExternalModule(c)||o.push(t.nodeEntry(s))}}})}function x(t,n){return t.valueDeclaration&&e.isParameter(t.valueDeclaration)&&e.isParameterPropertyDeclaration(t.valueDeclaration)?n.getSymbolsOfParameterPropertyDeclaration(t.valueDeclaration,t.name):void 0}function k(t,n,r,i,a){function o(e){if(e){var o=a.getTypeAtLocation(e);if(o){var s=a.getPropertyOfType(o,n);s&&r.push.apply(r,a.getRootSymbols(s)),i.set(t.escapedName,t),k(o.symbol,n,r,i,a)}}}!t||i.has(t.escapedName)||96&t.flags&&e.forEach(t.getDeclarations(),function(t){e.isClassLike(t)?(o(e.getClassExtendsHeritageClauseElement(t)),e.forEach(e.getClassImplementsHeritageClauseElements(t),o)):234===t.kind&&e.forEach(e.getInterfaceBaseTypeNodes(t),o)})}function S(t,n){var r=n.getContextualType(t.parent),i=function(t){if(146===t.name.kind){var n=t.name.expression;return e.isStringOrNumericLiteral(n)?n.text:void 0}return e.getTextOfIdentifierOrLiteral(t.name)}(t),a=r&&i&&r.getProperty(i);return a?[a]:r&&131072&r.flags?e.mapDefined(r.types,function(e){return e.getProperty(i)}):e.emptyArray}function D(t,n){var r=e.getMeaningFromLocation(t),i=n.declarations;if(i){var a=void 0;do{a=r;for(var o=0,s=i;o<s.length;o++){var c=e.getMeaningFromDeclaration(s[o]);c&r&&(r|=c)}}while(r!==a)}return r}function C(t,n,r){var i=n.getSymbolAtLocation(t),a=n.getShorthandAssignmentValueSymbol(i.valueDeclaration);if(a)for(var o=0,s=a.getDeclarations();o<s.length;o++){var c=s[o];1&e.getMeaningFromDeclaration(c)&&r(c)}}function T(t,n,r){e.forEachChild(t,function(e){e.kind===n&&r(e),T(e,n,r)})}n.isSymbolReferencedInFile=function(t,n,r){var i=n.getSymbolAtLocation(t);return!i||d(r,i.name).some(function(a){var o=e.tryCast(e.getTouchingPropertyName(r,a,!0),e.isIdentifier);return o&&o!==t&&o.escapedText===t.escapedText&&n.getSymbolAtLocation(o)===i})},n.getIntersectingMeaningFromDeclarations=D,n.getReferenceEntriesForShorthandPropertyAssignment=C}(t.Core||(t.Core={}))}(e.FindAllReferences||(e.FindAllReferences={}))}(l||(l={})),function(e){!function(t){function n(t,n,u){var l,_,d=r(n,u,t);if(d)return[(l=d.fileName,_=d.file.fileName,{fileName:_,textSpan:e.createTextSpanFromBounds(0,0),kind:"script",name:l,containerName:void 0,containerKind:void 0})];var p=e.getTouchingPropertyName(n,u,!0);if(p!==n){if(e.isJumpStatementTarget(p)){var f=e.getTargetLabel(p.parent,p.text);return f?[s(f,"label",p.text,void 0)]:void 0}var m=t.getTypeChecker(),g=function(t,n){var r=function(t){var n=function t(n){return e.isRightSideOfPropertyAccess(n)?t(n.parent):n}(t),r=n.parent;return r&&e.isCallLikeExpression(r)&&e.getInvokedExpression(r)===n&&r}(n),i=r&&t.getResolvedSignature(r);if(i){var o=i.declaration;if(o&&a(o))return o}}(m,p);if(g)return[function(e,t){var n=c(e,t.symbol,t);return o(t,n.symbolKind,n.symbolName,n.containerName)}(m,g)];var y=m.getSymbolAtLocation(p);if(y){if(2097152&y.flags&&function(e,t){if(71!==e.kind)return!1;if(e.parent===t)return!0;switch(t.kind){case 243:case 241:return!0;case 246:return 245===t.parent.kind;default:return!1}}(p,y.declarations[0])){var h=m.getAliasedSymbol(y);h.declarations&&(y=h)}if(269===p.parent.kind){var v=m.getShorthandAssignmentValueSymbol(y.valueDeclaration);if(!v)return[];var b=v.getDeclarations(),x=e.SymbolDisplay.getSymbolKind(m,v,p),k=m.symbolToString(v),S=m.symbolToString(y.parent,p);return e.map(b,function(e){return o(e,x,k,S)})}if(e.isPropertyName(p)&&e.isBindingElement(p.parent)&&e.isObjectBindingPattern(p.parent.parent)&&p===(p.parent.propertyName||p.parent.name)){var D=m.getTypeAtLocation(p.parent.parent);if(D){var C=e.getPropertySymbolsFromType(D,p);if(C)return e.flatMap(C,function(e){return i(m,e,p)})}}var T=e.getContainingObjectLiteralElement(p);return T&&m.getContextualType(T.parent)?e.flatMap(e.getPropertySymbolsFromContextualType(m,T),function(e){return i(m,e,p)}):i(m,y,p)}}}function r(t,n,r){var i=u(t.referencedFiles,n);if(i)return(o=e.tryResolveScriptReference(r,t,i))&&{fileName:i.fileName,file:o};var a=u(t.typeReferenceDirectives,n);if(a){var o,s=r.getResolvedTypeReferenceDirectives().get(a.fileName);return(o=s&&r.getSourceFile(s.resolvedFileName))&&{fileName:a.fileName,file:o}}}function i(t,n,r){var i=c(t,n,r),s=i.symbolName,u=i.symbolKind,l=i.containerName;return function(){if(32&n.flags&&(e.isNewExpressionTarget(r)||123===r.kind))return _((e.find(n.declarations,e.isClassLike)||e.Debug.fail("Expected declaration to have at least one class-like declaration")).members,!0)}()||(e.isCallExpressionTarget(r)||e.isNewExpressionTarget(r)||e.isNameOfFunctionDeclaration(r)?_(n.declarations,!1):void 0)||e.map(n.declarations,function(e){return o(e,u,s,l)});function _(t,n){if(t){var r=t.filter(n?e.isConstructorDeclaration:a);return r.length?[o(e.find(r,function(e){return!!e.body})||e.last(r),u,s,l)]:void 0}}}function a(e){switch(e.kind){case 154:case 158:case 232:case 153:case 152:return!0;default:return!1}}function o(t,n,r,i){return s(e.getNameOfDeclaration(t)||t,n,r,i)}function s(t,n,r,i){var a=t.getSourceFile();return{fileName:a.fileName,textSpan:e.createTextSpanFromNode(t,a),kind:n,name:r,containerKind:void 0,containerName:i}}function c(t,n,r){return{symbolName:t.symbolToString(n),symbolKind:e.SymbolDisplay.getSymbolKind(t,n,r),containerName:n.parent?t.symbolToString(n.parent,r):""}}function u(e,t){for(var n=0,r=e;n<r.length;n++){var i=r[n];if(i.pos<=t&&t<=i.end)return i}}t.getDefinitionAtPosition=n,t.getReferenceAtPosition=r,t.getTypeDefinitionAtPosition=function(t,n,r){var a=e.getTouchingPropertyName(n,r,!0);if(a!==n){var o=t.getSymbolAtLocation(a),s=o&&t.getTypeOfSymbolAtLocation(o,a);if(s)return 131072&s.flags&&!(16&s.flags)?e.flatMap(s.types,function(e){return e.symbol&&i(t,e.symbol,a)}):s.symbol&&i(t,s.symbol,a)}},t.getDefinitionAndBoundSpan=function(t,r,i){var a=n(t,r,i);if(a&&0!==a.length){var o=u(r.referencedFiles,i)||u(r.typeReferenceDirectives,i);if(o)return{definitions:a,textSpan:e.createTextSpanFromRange(o)};var s=e.getTouchingPropertyName(r,i,!0);return{definitions:a,textSpan:e.createTextSpan(s.getStart(),s.getWidth())}}},t.findReferenceInPosition=u}(e.GoToDefinition||(e.GoToDefinition={}))}(l||(l={})),function(e){!function(t){var n,r,i=["augments","author","argument","borrows","class","constant","constructor","constructs","default","deprecated","description","event","example","extends","field","fileOverview","function","ignore","inheritDoc","inner","lends","link","memberOf","method","name","namespace","param","private","prop","property","public","requires","returns","see","since","static","template","throws","type","typedef","version"];function a(e){var t=e.comment;switch(e.kind){case 285:return r(e.class);case 290:return i(e.typeParameters.map(function(e){return e.getText()}).join(", "));case 289:return r(e.typeExpression);case 291:case 292:case 287:var n=e.name;return n?r(n):t;default:return t}function r(e){return i(e.getText())}function i(e){return void 0===t?e:e+" "+t}}function o(e,t){if(e)for(var n=0;n<e.length;n++)if(e.indexOf(e[n])===n){var r=t(e[n],n);if(r)return r}}function s(t){return{name:t,kind:"",kindModifiers:"",displayParts:[e.textPart(t)],documentation:e.emptyArray,tags:e.emptyArray,codeActions:void 0}}function c(t){for(;189===t.kind;)t=t.expression;switch(t.kind){case 190:case 191:return t.parameters;case 203:for(var n=0,r=t.members;n<r.length;n++){var i=r[n];if(154===i.kind)return i.parameters}}return e.emptyArray}t.getJsDocCommentsFromDeclarations=function(t){var n=[];return o(t,function(t){for(var r=0,i=function(t){switch(t.kind){case 292:return[t];case 291:return[t.parent];default:return e.getJSDocCommentsAndTags(t)}}(t);r<i.length;r++){var a=i[r].comment;void 0!==a&&(n.length&&n.push(e.lineBreakPart()),n.push(e.textPart(a)))}}),n},t.getJsDocTagsFromDeclarations=function(t){var n=[];return o(t,function(t){for(var r=0,i=e.getJSDocTags(t);r<i.length;r++){var o=i[r];n.push({name:o.tagName.text,text:a(o)})}}),n},t.getJSDocTagNameCompletions=function(){return n||(n=e.map(i,function(e){return{name:e,kind:"keyword",kindModifiers:"",sortText:"0"}}))},t.getJSDocTagNameCompletionDetails=s,t.getJSDocTagCompletions=function(){return r||(r=e.map(i,function(e){return{name:"@"+e,kind:"keyword",kindModifiers:"",sortText:"0"}}))},t.getJSDocTagCompletionDetails=s,t.getJSDocParameterNameCompletions=function(t){if(!e.isIdentifier(t.name))return e.emptyArray;var n=t.name.text,r=t.parent,i=r.parent;return e.isFunctionLike(i)?e.mapDefined(i.parameters,function(i){if(e.isIdentifier(i.name)){var a=i.name.text;if(!r.tags.some(function(n){return n!==t&&e.isJSDocParameterTag(n)&&e.isIdentifier(n.name)&&n.name.escapedText===a})&&(void 0===n||e.startsWith(a,n)))return{name:a,kind:"parameter",kindModifiers:"",sortText:"0"}}}):[]},t.getJSDocParameterNameCompletionDetails=function(t){return{name:t,kind:"parameter",kindModifiers:"",displayParts:[e.textPart(t)],documentation:e.emptyArray,tags:e.emptyArray,codeActions:void 0}},t.getDocCommentTemplateAtPosition=function(t,n,r){if(!(e.isInString(n,r)||e.isInComment(n,r)||e.hasDocComment(n,r))){var i=e.getTokenAtPosition(n,r,!1),a=i.getStart();if(i&&!(a<r)){var o=function(t){for(var n=t;n;n=n.parent)switch(n.kind){case 232:case 153:case 154:case 152:return{commentOwner:n,parameters:n.parameters};case 233:case 234:case 150:case 236:case 271:case 235:return{commentOwner:n};case 212:var r=n.declarationList.declarations;return{commentOwner:n,parameters:1===r.length&&r[0].initializer?c(r[0].initializer):void 0};case 272:return;case 237:return 237===n.parent.kind?void 0:{commentOwner:n};case 198:var i=n;if(0===e.getSpecialPropertyAssignmentKind(i))return;return{commentOwner:n,parameters:e.isFunctionLike(i.right)?i.right.parameters:e.emptyArray}}}(i);if(o){var s=o.parameters;if(!(o.commentOwner.getStart()<r)){if(!s||0===s.length)return{newText:"/** */",caretOffset:3};for(var u=n.getLineAndCharacterOfPosition(r),l=n.getLineStarts()[u.line],_=n.text.substr(l,u.character).replace(/\S/i,function(){return" "}),d=e.hasJavaScriptFileExtension(n.fileName),p="",f=0;f<s.length;f++){var m=s[f].name,g=71===m.kind?m.escapedText:"param"+f;p+=d?_+" * @param {any} "+g+t:_+" * @param "+g+t}var y="/**"+t+_+" * ";return{newText:y+t+p+_+" */"+(a===r?t+_:""),caretOffset:y.length}}}}}}}(e.JsDoc||(e.JsDoc={}))}(l||(l={})),function(e){function t(e){var t=parseInt(e,10);if(isNaN(t))throw new Error("Error in parseInt("+JSON.stringify(e)+")");return t}var n=/^(.*)-next.\d+/,r=/^(\d+)\.(\d+)\.0-next.(\d+)$/,i=/^(\d+)\.(\d+)\.(\d+)$/,a=function(){function e(e,t,n,r){this.major=e,this.minor=t,this.patch=n,this.isPrerelease=r}return e.parse=function(t){var r=n.test(t),i=e.tryParse(t,r);if(!i)throw new Error("Unexpected semver: "+t+" (isPrerelease: "+r+")");return i},e.fromRaw=function(t){return new e(t.major,t.minor,t.patch,t.isPrerelease)},e.tryParse=function(n,a){var o=(a?r:i).exec(n);return o?new e(t(o[1]),t(o[2]),t(o[3]),a):void 0},Object.defineProperty(e.prototype,"versionString",{get:function(){return this.isPrerelease?this.major+"."+this.minor+".0-next."+this.patch:this.major+"."+this.minor+"."+this.patch},enumerable:!0,configurable:!0}),e.prototype.equals=function(e){return this.major===e.major&&this.minor===e.minor&&this.patch===e.patch&&this.isPrerelease===e.isPrerelease},e.prototype.greaterThan=function(e){return this.major>e.major||this.major===e.major&&(this.minor>e.minor||this.minor===e.minor&&(!this.isPrerelease&&e.isPrerelease||this.isPrerelease===e.isPrerelease&&this.patch>e.patch))},e}();e.Semver=a}(l||(l={})),function(e){!function(t){function n(t,n){return!e.Semver.parse(e.getProperty(n,"ts"+e.versionMajorMinor)||e.getProperty(n,"latest")).greaterThan(t.version)}t.isTypingUpToDate=n,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 r=e.arrayToSet(t.nodeCoreModuleList);t.loadSafeList=function(t,n){var r=e.readConfigFile(n,function(e){return t.readFile(e)});return e.createMapFromTemplate(r.config)},t.loadTypesMap=function(t,n){var r=e.readConfigFile(n,function(e){return t.readFile(e)});if(r.config)return e.createMapFromTemplate(r.config.simpleMap)},t.discoverTypings=function(t,i,a,o,s,c,u,l,_){if(!u||!u.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var d=e.createMap();a=e.mapDefined(a,function(t){var n=e.normalizePath(t);if(e.hasJavaScriptFileExtension(n))return n});var p=[];u.include&&S(u.include,"Explicitly included types");var f=u.exclude||[],m=e.arrayToSet(a,e.getDirectoryPath);m.set(o,!0),m.forEach(function(t,n){D(e.combinePaths(n,"package.json"),p),D(e.combinePaths(n,"bower.json"),p),C(e.combinePaths(n,"bower_components"),p),C(e.combinePaths(n,"node_modules"),p)}),function(t){var n=e.mapDefined(t,function(t){if(e.hasJavaScriptFileExtension(t)){var n=e.removeFileExtension(e.getBaseFileName(t.toLowerCase())),r=e.removeMinAndVersionNumbers(n);return s.get(r)}});n.length&&S(n,"Inferred typings from file names"),e.some(t,function(t){return e.fileExtensionIs(t,".jsx")})&&(i&&i("Inferred 'react' typings due to presence of '.jsx' extension"),k("react"))}(a),l&&S(e.deduplicate(l.map(function(e){return r.has(e)?"node":e}),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive),"Inferred typings from unresolved imports"),c.forEach(function(e,t){d.has(t)&&void 0===d.get(t)&&n(e,_.get(t))&&d.set(t,e.typingLocation)});for(var g=0,y=f;g<y.length;g++){var h=y[g];d.delete(h)&&i&&i("Typing for "+h+" is in exclude list, will be ignored.")}var v=[],b=[];d.forEach(function(e,t){void 0!==e?b.push(e):v.push(t)});var x={cachedTypingPaths:b,newTypingNames:v,filesToWatch:p};return i&&i("Result: "+JSON.stringify(x)),x;function k(e){d.has(e)||d.set(e,void 0)}function S(t,n){i&&i(n+": "+JSON.stringify(t)),e.forEach(t,k)}function D(n,r){if(t.fileExists(n)){r.push(n);var i=e.readConfigFile(n,function(e){return t.readFile(e)}).config;S(e.flatMap([i.dependencies,i.devDependencies,i.optionalDependencies,i.peerDependencies],e.getOwnKeys),"Typing names in '"+n+"' dependencies")}}function C(n,r){if(r.push(n),t.directoryExists(n)){var a=t.readDirectory(n,[".json"],void 0,void 0,2);i&&i("Searching for typing names in "+n+"; all files: "+JSON.stringify(a));for(var o=[],s=0,c=a;s<c.length;s++){var u=e.normalizePath(c[s]),l=e.getBaseFileName(u);if("package.json"===l||"bower.json"===l){var _=e.readConfigFile(u,function(e){return t.readFile(e)}).config;if(("package.json"!==l||!_._requiredBy||0!==e.filter(_._requiredBy,function(e){return"#"===e[0]||"/"===e}).length)&&_.name){var p=_.types||_.typings;if(p){var f=e.getNormalizedAbsolutePath(p,e.getDirectoryPath(u));i&&i(" Package '"+_.name+"' provides its own types."),d.set(_.name,f)}else o.push(_.name)}}}S(o," Found package names")}}},function(e){e[e.Ok=0]="Ok",e[e.ScopedPackagesNotSupported=1]="ScopedPackagesNotSupported",e[e.EmptyName=2]="EmptyName",e[e.NameTooLong=3]="NameTooLong",e[e.NameStartsWithDot=4]="NameStartsWithDot",e[e.NameStartsWithUnderscore=5]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=6]="NameContainsNonURISafeCharacters"}(t.PackageNameValidationResult||(t.PackageNameValidationResult={})),t.validatePackageName=function(e){return e?e.length>214?3:46===e.charCodeAt(0)?4:95===e.charCodeAt(0)?5:/^@[^/]+\/[^/]+$/.test(e)?1:encodeURIComponent(e)!==e?6:0:2},t.renderPackageNameValidationFailure=function(t,n){switch(t){case 2:return"Package name '"+n+"' cannot be empty";case 3:return"Package name '"+n+"' should be less than 214 characters";case 4:return"Package name '"+n+"' cannot start with '.'";case 5:return"Package name '"+n+"' cannot start with '_'";case 1:return"Package '"+n+"' is scoped and currently is not supported";case 6:return"Package name '"+n+"' contains non URI safe characters";case 0:return e.Debug.fail();default:e.Debug.assertNever(t)}}}(e.JsTyping||(e.JsTyping={}))}(l||(l={})),function(e){!function(t){function n(e,t){switch(e.kind){case 243:case 246:case 241:var n=t.getSymbolAtLocation(e.name),r=t.getAliasedSymbol(n);return n.escapedName!==r.escapedName;default:return!0}}function r(t){e.Debug.assert(t.length>0);for(var n=0,r=t;n<r.length;n++)if(!r[n].isCaseSensitive)return!1;return!0}function i(t,n){var r=e.getNameOfDeclaration(t);return r&&e.isPropertyNameLiteral(r)?(n.unshift(e.getTextOfIdentifierOrLiteral(r)),!0):!(!r||146!==r.kind)&&a(r.expression,n,!0)}function a(t,n,r){if(e.isPropertyNameLiteral(t)){var i=e.getTextOfIdentifierOrLiteral(t);return r&&n.unshift(i),!0}return!!e.isPropertyAccessExpression(t)&&(r&&n.unshift(t.name.text),a(t.expression,n,!0))}function o(t){var n=[],r=e.getNameOfDeclaration(t);if(146!==r.kind||a(r.expression,n,!1)){for(t=e.getContainerNode(t);t;){if(!i(t,n))return;t=e.getContainerNode(t)}return n}}function s(t){e.Debug.assert(t.length>0);for(var n=e.PatternMatchKind.camelCase,r=0,i=t;r<i.length;r++){var a=i[r].kind;a<n&&(n=a)}return n}function c(t,n){return e.compareValues(t.matchKind,n.matchKind)||e.compareStringsCaseSensitiveUI(t.name,n.name)}function u(t){var n=t.declaration,r=e.getContainerNode(n),i=r&&e.getNameOfDeclaration(r);return{name:t.name,kind:e.getNodeKind(n),kindModifiers:e.getNodeModifiers(n),matchKind:e.PatternMatchKind[t.matchKind],isCaseSensitive:t.isCaseSensitive,fileName:t.fileName,textSpan:e.createTextSpanFromNode(n),containerName:i?i.text:"",containerKind:i?e.getNodeKind(r):""}}(e.NavigateTo||(e.NavigateTo={})).getNavigateToItems=function(t,i,a,l,_,d){for(var p=e.createPatternMatcher(l),f=[],m=function(t){if(a.throwIfCancellationRequested(),d&&e.fileExtensionIs(t.fileName,".d.ts"))return"continue";e.forEachEntry(t.getNamedDeclarations(),function(e,a){!function(e,t,i,a,c,u){var l=e.getMatchesForLastSegmentOfPattern(t);if(l)for(var _=0,d=i;_<d.length;_++){var p=d[_];if(n(p,a)){var f=l;if(!e.patternContainsDots||(f=e.getMatches(o(p),t))){var m=s(f),g=r(f);u.push({name:t,fileName:c,matchKind:m,isCaseSensitive:g,declaration:p})}}}}(p,a,e,i,t.fileName,f)})},g=0,y=t;g<y.length;g++)m(y[g]);return f.sort(c),void 0!==_&&(f=f.slice(0,_)),f.map(u)}}()}(l||(l={})),function(e){!function(t){var n,r,i,a=/\s+/g,o=[],s=[];function c(){r=void 0,n=void 0,o=[],i=void 0,s=[]}function u(e){return e.getText(r)}function l(e){return e.node.kind}function _(e,t){e.children?e.children.push(t):e.children=[t]}function d(t){e.Debug.assert(!o.length);var n={node:t,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};i=n;for(var r=0,a=t.statements;r<a.length;r++)h(a[r]);return g(),e.Debug.assert(!i&&!o.length),n}function p(e){_(i,f(e))}function f(e){return{node:e,additionalNodes:void 0,parent:i,children:void 0,indent:i.indent+1}}function m(e){var t=f(e);_(i,t),o.push(i),i=t}function g(){i.children&&(v(i.children),x(i.children)),i=o.pop()}function y(e,t){m(e),h(t),g()}function h(t){if(n.throwIfCancellationRequested(),t&&!e.isToken(t))switch(t.kind){case 154:var r=t;y(r,r.body);for(var i=0,a=r.parameters;i<a.length;i++){var o=a[i];e.isParameterPropertyDeclaration(o)&&p(o)}break;case 153:case 155:case 156:case 152:e.hasDynamicName(t)||y(t,t.body);break;case 151:case 150:e.hasDynamicName(t)||p(t);break;case 243:var s=t;s.name&&p(s);var c=s.namedBindings;if(c)if(244===c.kind)p(c);else for(var u=0,l=c.elements;u<l.length;u++)p(l[u]);break;case 180:case 230:var _=t.name,d=t.initializer;e.isBindingPattern(_)?h(_):d&&function(e){switch(d.kind){case 191:case 190:case 203:return!0;default:return!1}}()?d.name?h(d):(m(t),e.forEachChild(d,h),g()):y(t,d);break;case 191:case 232:case 190:y(t,t.body);break;case 236:m(t);for(var f=0,v=t.members;f<v.length;f++)P(k=v[f])||p(k);g();break;case 233:case 203:case 234:m(t);for(var b=0,x=t.members;b<x.length;b++){var k;h(k=x[b])}g();break;case 237:y(t,function e(t){return 237===t.body.kind?e(t.body):t}(t).body);break;case 250:case 241:case 159:case 157:case 158:case 235:p(t);break;case 198:var S=e.getSpecialPropertyAssignmentKind(t);switch(S){case 1:case 2:case 3:case 6:y(t,t.right);break;case 4:case 5:case 0:break;default:e.Debug.assertNever(S)}default:e.hasJSDocNodes(t)&&e.forEach(t.jsDoc,function(t){e.forEach(t.tags,function(e){291===e.kind&&p(e)})}),e.forEachChild(t,h)}}function v(t){var n=e.createMap();e.filterMutate(t,function(t){var r=e.getNameOfDeclaration(t.node),i=r&&u(r);if(!i)return!0;var a=n.get(i);if(!a)return n.set(i,t),!0;if(a instanceof Array){for(var o=0,s=a;o<s.length;o++){var c;if(b(c=s[o],t))return!1}return a.push(t),!0}return!b(c=a,t)&&(n.set(i,[c,t]),!0)})}function b(t,n){return!!function(t,n){if(t.kind!==n.kind)return!1;switch(t.kind){case 151:case 153:case 155:case 156:return e.hasModifier(t,32)===e.hasModifier(n,32);case 237:return function e(t,n){return t.body.kind===n.body.kind&&(237!==t.body.kind||e(t.body,n.body))}(t,n);default:return!0}}(t.node,n.node)&&(i=n,(r=t).additionalNodes=r.additionalNodes||[],r.additionalNodes.push(i.node),i.additionalNodes&&(a=r.additionalNodes).push.apply(a,i.additionalNodes),r.children=e.concatenate(r.children,i.children),r.children&&(v(r.children),x(r.children)),!0);var r,i,a}function x(e){e.sort(k)}function k(t,n){return e.compareStringsCaseSensitiveUI(S(t.node),S(n.node))||e.compareValues(l(t),l(n))}function S(t){if(237===t.kind)return A(t);var n=e.getNameOfDeclaration(t);if(n)return e.unescapeLeadingUnderscores(e.getPropertyNameForPropertyNameNode(n));switch(t.kind){case 190:case 191:case 203:return I(t);case 291:return C(t);default:return}}function D(t){if(237===t.kind)return A(t);var n=e.getNameOfDeclaration(t);if(n){var r=u(n);if(r.length>0)return r}switch(t.kind){case 272:var i=t;return e.isExternalModule(i)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName))))+'"':"<global>";case 191:case 232:case 190:case 233:case 203:return 512&e.getModifierFlags(t)?"default":I(t);case 154:return"constructor";case 158:return"new()";case 157:return"()";case 159:return"[]";case 291:return C(t);default:return"<unknown>"}}function C(e){if(e.name)return e.name.text;var t=e.parent&&e.parent.parent;if(t&&212===t.kind&&t.declarationList.declarations.length>0){var n=t.declarationList.declarations[0].name;if(71===n.kind)return n.text}return"<typedef>"}function T(t){return{text:D(t.node),kind:e.getNodeKind(t.node),kindModifiers:F(t.node),spans:N(t),childItems:e.map(t.children,T)}}function E(t){return{text:D(t.node),kind:e.getNodeKind(t.node),kindModifiers:F(t.node),spans:N(t),childItems:e.map(t.children,function(t){return{text:D(t.node),kind:e.getNodeKind(t.node),kindModifiers:e.getNodeModifiers(t.node),spans:N(t),childItems:s,indent:0,bolded:!1,grayed:!1}})||s,indent:t.indent,bolded:!1,grayed:!1}}function N(e){var t=[w(e.node)];if(e.additionalNodes)for(var n=0,r=e.additionalNodes;n<r.length;n++)t.push(w(r[n]));return t}function A(t){if(e.isAmbientModule(t))return e.getTextOfNode(t.name);var n=[];for(n.push(e.getTextOfIdentifierOrLiteral(t.name));t.body&&237===t.body.kind;)n.push(e.getTextOfIdentifierOrLiteral((t=t.body).name));return n.join(".")}function P(e){return!e.name||146===e.name.kind}function w(t){return 272===t.kind?e.createTextSpanFromRange(t):e.createTextSpanFromNode(t,r)}function F(t){return t.parent&&230===t.parent.kind&&(t=t.parent),e.getNodeModifiers(t)}function I(t){return t.name&&e.getFullWidth(t.name)>0?e.declarationNameToString(t.name):230===t.parent.kind?e.declarationNameToString(t.parent.name):198===t.parent.kind&&58===t.parent.operatorToken.kind?u(t.parent.left).replace(a,""):268===t.parent.kind&&t.parent.name?u(t.parent.name):512&e.getModifierFlags(t)?"default":e.isClassLike(t)?"<class>":"<function>"}t.getNavigationBarItems=function(t,i){n=i,r=t;try{return e.map((a=d(t),o=[],function t(n){if(function(t){switch(l(t)){case 233:case 203:case 236:case 234:case 237:case 272:case 235:case 291:return!0;case 154:case 153:case 155:case 156:case 230:return n(t);case 191:case 232:case 190:return function(e){if(!e.node.body)return!1;switch(l(e.parent)){case 238:case 272:case 153:case 154:return!0;default:return n(e)}}(t);default:return!1}function n(t){return e.forEach(t.children,function(e){var t=l(e);return 230!==t&&180!==t})}}(n)&&(o.push(n),n.children))for(var r=0,i=n.children;r<i.length;r++)t(i[r])}(a),o),E)}finally{c()}var a,o},t.getNavigationTree=function(e,t){n=t,r=e;try{return T(d(e))}finally{c()}}}(e.NavigationBar||(e.NavigationBar={}))}(l||(l={})),function(e){!function(t){function n(t){var r=t.body;return r&&!e.isIdentifier(r)&&(e.isModuleBlock(r)?r:n(r))}function r(t){return e.isStringLiteral(t)||e.isNoSubstitutionTemplateLiteral(t)?t.text:void 0}function i(t){if(0===t.length)return t;var n=function(t){for(var n,r=[],i=[],a=[],o=0,s=t;o<s.length;o++){var c=s[o];if(void 0!==c.importClause){var u=c.importClause,l=u.namedBindings;u.name&&r.push(c),l&&(e.isNamespaceImport(l)?i.push(c):a.push(c))}else n=n||c}return{importWithoutClause:n,defaultImports:r,namespaceImports:i,namedImports:a}}(t),r=n.importWithoutClause,i=n.defaultImports,o=n.namespaceImports,s=n.namedImports,c=[];if(r&&c.push(r),1===i.length&&1===o.length&&0===s.length)return c.push(a(g=i[0],g.importClause.name,o[0].importClause.namedBindings)),c;for(var u,l=0,_=e.stableSort(o,function(e,t){return b(e.importClause.namedBindings.name,t.importClause.namedBindings.name)});l<_.length;l++){var d=_[l];c.push(a(d,void 0,d.importClause.namedBindings))}if(0===i.length&&0===s.length)return c;var p=[];if(1===i.length)u=i[0].importClause.name;else for(var f=0,m=i;f<m.length;f++){var g=m[f];p.push(e.createImportSpecifier(e.createIdentifier("default"),g.importClause.name))}p.push.apply(p,e.flatMap(s,function(e){return e.importClause.namedBindings.elements}));var y=e.stableSort(p,function(e,t){return b(e.propertyName||e.name,t.propertyName||t.name)||b(e.name,t.name)}),h=i.length>0?i[0]:s[0],v=0===y.length?void 0:0===s.length?e.createNamedImports(y):e.updateNamedImports(s[0].importClause.namedBindings,y);return c.push(a(h,u,v)),c;function b(t,n){return e.compareStringsCaseSensitive(t.text,n.text)}}function a(t,n,r){return e.updateImportDeclaration(t,t.decorators,t.modifiers,e.updateImportClause(t.importClause,n,r),t.moduleSpecifier)}function o(t,n){var i=r(t),a=r(n);return e.compareBooleans(void 0===i,void 0===a)||e.compareBooleans(e.isExternalModuleNameRelative(i),e.isExternalModuleNameRelative(a))||e.compareStringsCaseSensitive(i,a)}t.organizeImports=function(t,s,c,u){var l=e.textChanges.ChangeTracker.fromContext({host:c,formatContext:s});p(t.statements.filter(e.isImportDeclaration));for(var _=0,d=t.statements.filter(e.isAmbientModule);_<d.length;_++)p(n(d[_]).statements.filter(e.isImportDeclaration));return l.getChanges();function p(n){if(0!==e.length(n)){var _=e.group(n,function(e){return r(e.moduleSpecifier)}),d=e.stableSort(_,function(e,t){return o(e[0].moduleSpecifier,t[0].moduleSpecifier)}),p=e.flatMap(d,function(n){return r(n[0].moduleSpecifier)?i(function(t,n,r){for(var i=r.getTypeChecker(),o=i.getJsxNamespace(),s=1===n.languageVariant&&r.getCompilerOptions().jsx,c=[],u=0,l=t;u<l.length;u++){var _=l[u],d=_.importClause;if(d){var p=d.name,f=d.namedBindings;if(p&&!g(p)&&(p=void 0),f)if(e.isNamespaceImport(f))g(f.name)||(f=void 0);else{var m=f.elements.filter(function(e){return g(e.propertyName||e.name)});m.length<f.elements.length&&(f=m.length?e.updateNamedImports(f,m):void 0)}(p||f)&&c.push(a(_,p,f))}else c.push(_)}return c;function g(t){return s&&t.text===o||e.FindAllReferences.Core.isSymbolReferencedInFile(t,i,n)}}(n,t,u)):n});0===p.length?l.deleteNode(t,n[0]):l.replaceNodeWithNodes(t,n[0],p,{useNonAdjustedStartPosition:!1,useNonAdjustedEndPosition:!1,suffix:e.getNewLineOrDefaultFromHost(c,s.options)});for(var f=1;f<n.length;f++)l.deleteNode(t,n[f])}}},t.coalesceImports=i,t.compareModuleSpecifiers=o}(e.OrganizeImports||(e.OrganizeImports={}))}(l||(l={})),function(e){!function(t){function n(t,n){return r(e.createTextSpanFromBounds(t,n))}function r(e,t,n,r){return void 0===t&&(t=e),void 0===n&&(n=!1),void 0===r&&(r="..."),{textSpan:e,hintSpan:t,bannerText:r,autoCollapse:n}}(e.OutliningElementsCollector||(e.OutliningElementsCollector={})).collectElements=function(t,i){var a=[];return function(t,i,a){var o=40;t.forEachChild(function s(c){if(0!==o){i.throwIfCancellationRequested(),e.isDeclaration(c)&&function(t,r,i,a){var o=e.getLeadingCommentRangesOfNode(t,r);if(o){for(var s=-1,c=-1,u=0,l=0,_=o;l<_.length;l++){var d=_[l],p=d.kind,f=d.pos,m=d.end;switch(i.throwIfCancellationRequested(),p){case 2:0===u&&(s=f),c=m,u++;break;case 3:g(),a.push(n(f,m)),u=0;break;default:e.Debug.assertNever(p)}}g()}function g(){u>1&&a.push(n(s,c))}}(c,t,i,a);var u=function(t,n){switch(t.kind){case 211:if(e.isFunctionBlock(t))return o(t.parent,191!==t.parent.kind);switch(t.parent.kind){case 216:case 219:case 220:case 218:case 215:case 217:case 224:case 267:return o(t.parent);case 228:var i=t.parent;if(i.tryBlock===t)return o(t.parent);if(i.finallyBlock===t)return o(e.findChildOfKind(i,87,n));default:return r(e.createTextSpanFromNode(t,n))}case 238:return o(t.parent);case 233:case 234:case 236:case 239:return o(t);case 182:return a(t);case 181:return a(t,21)}function a(t,n){return void 0===n&&(n=17),o(t,!1,!e.isArrayLiteralExpression(t.parent),n)}function o(i,a,o,s){void 0===a&&(a=!1),void 0===o&&(o=!0),void 0===s&&(s=17);var c=e.findChildOfKind(t,s,n),u=e.findChildOfKind(t,17===s?18:22,n);if(c&&u)return r(e.createTextSpanFromBounds(o?c.getFullStart():c.getStart(n),u.getEnd()),e.createTextSpanFromNode(i,n),a)}}(c,t);u&&a.push(u),o--,c.forEachChild(s),o++}})}(t,i,a),function(t,n){for(var i=[],a=t.getLineStarts(),o=0;o<a.length;o++){var s=a[o],c=o+1===a.length?t.getEnd():a[o+1]-1,u=t.text.substring(s,c).match(/^\s*\/\/\s*#(end)?region(?:\s+(.*))?$/);if(u&&!e.isInComment(t,s))if(u[1]){var l=i.pop();l&&(l.textSpan.length=c-l.textSpan.start,l.hintSpan.length=c-l.textSpan.start,n.push(l))}else{var _=e.createTextSpanFromBounds(t.text.indexOf("//",s),c);i.push(r(_,_,!1,u[2]||"#region"))}}}(t,a),a.sort(function(e,t){return e.textSpan.start-t.textSpan.start})}}()}(l||(l={})),function(e){var t;function n(e,t,n,r){return{kind:e,punctuationStripped:t,isCaseSensitive:n,camelCaseWeight:r}}function r(e){return 0===e.subWordTextChunks.length}function i(t){if(t>=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,6))return!1;var n=String.fromCharCode(t);return n===n.toUpperCase()}function a(t){if(t>=97&&t<=122)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,6))return!1;var n=String.fromCharCode(t);return n===n.toLowerCase()}function o(e,t,n){for(var r=0;r<t.length;r++)if(s(e.charCodeAt(r+n))!==t.charCodeAt(r))return!1;return!0}function s(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function c(e){return e>=48&&e<=57}function u(e){return i(e)||a(e)||c(e)||95===e||36===e}function l(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:_(e)}}function _(e){return p(e,!1)}function d(e){return p(e,!0)}function p(t,n){for(var r=[],i=0,a=1;a<t.length;a++){var o=c(t.charCodeAt(a-1)),s=c(t.charCodeAt(a)),u=y(t,n,a),l=g(t,n,a,i);(f(t.charCodeAt(a-1))||f(t.charCodeAt(a))||o!==s||u||l)&&(m(t,i,a)||r.push(e.createTextSpan(i,a-i)),i=a)}return m(t,i,t.length)||r.push(e.createTextSpan(i,t.length-i)),r}function f(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 m(e,t,n){for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(!f(i)||95===i||36===i)return!1}return!0}function g(e,t,n,r){if(t&&n!==r&&n+1<e.length){var o=i(e.charCodeAt(n)),s=a(e.charCodeAt(n+1));if(o&&s){for(var c=r;c<n;c++)if(!i(e.charCodeAt(c)))return!1;return!0}}return!1}function y(e,t,n){var r=i(e.charCodeAt(n-1)),a=i(e.charCodeAt(n));return t?a&&!r:a}!function(e){e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase"}(t=e.PatternMatchKind||(e.PatternMatchKind={})),e.createPatternMatcher=function(a){var c=e.createMap(),_=(a=a.trim()).split(".").map(function(e){return{totalTextChunk:l(t=e.trim()),subWordTextChunks:function(e){for(var t=[],n=0,r=0,i=0;i<e.length;i++)u(e.charCodeAt(i))?(0===r&&(n=i),r++):r>0&&(t.push(l(e.substr(n,r))),r=0);return r>0&&t.push(l(e.substr(n,r))),t}(t)};var t}),p=0===_.length||e.forEach(_,r);return{getMatches:function(t,n){if(!f(n)){var r=y(n,e.lastOrUndefined(_));if(r&&!(_.length-1>(t=t||[]).length)){for(var i=r,a=_.length-2,o=t.length-1;a>=0;a-=1,o-=1){var s=y(t[o],_[a]);if(!s)return;e.addRange(i,s)}return i}}},getMatchesForLastSegmentOfPattern:function(t){if(!f(t))return y(t,e.lastOrUndefined(_))},patternContainsDots:_.length>1};function f(e){return p||!e}function m(e){var t=c.get(e);return t||c.set(e,t=d(e)),t}function g(r,a,s){var c=function(e,t){for(var n=e.length-t.length,r=0;r<=n;r++)if(o(e,t,r))return r;return-1}(r,a.textLowerCase);if(0===c)return a.text.length===r.length?n(t.exact,s,r===a.text):n(t.prefix,s,e.startsWith(r,a.text));var u=a.isLowerCase;if(u){if(c>0)for(var l=0,_=m(r);l<_.length;l++){var d=_[l];if(h(r,d,a.text,!0))return n(t.substring,s,h(r,d,a.text,!1))}}else if(r.indexOf(a.text)>0)return n(t.substring,s,!0);if(!u&&a.characterSpans.length>0){var p=m(r),f=v(r,p,a,!1);if(void 0!==f)return n(t.camelCase,s,!0,f);if(void 0!==(f=v(r,p,a,!0)))return n(t.camelCase,s,!1,f)}return u&&a.text.length<r.length&&c>0&&i(r.charCodeAt(c))?n(t.substring,s,!1):void 0}function y(e,t){if(!function(e){for(var t=0;t<e.length;t++){var n=e.charCodeAt(t);if(32===n||42===n)return!0}return!1}(t.totalTextChunk.text)){var n=g(e,t.totalTextChunk,!1);if(n)return[n]}for(var r,i=0,a=t.subWordTextChunks;i<a.length;i++){var o=g(e,a[i],!0);if(!o)return;(r=r||[]).push(o)}return r}function h(e,t,n,r,i){var a=i?i.start:0,o=i?i.length:n.length;if(o>t.length)return!1;if(r)for(var c=0;c<o;c++){var u=n.charCodeAt(a+c),l=e.charCodeAt(t.start+c);if(s(u)!==s(l))return!1}else for(c=0;c<o;c++)if((u=n.charCodeAt(a+c))!==(l=e.charCodeAt(t.start+c)))return!1;return!0}function v(t,n,r,a){for(var o,s,c=r.characterSpans,u=0,l=0;;){if(l===c.length){var _=0;return s&&(_+=1),0===o&&(_+=2),_}if(u===n.length)return;for(var d=n[u],p=!1;l<c.length;l++){var f=c[l];if(p&&(!i(r.text.charCodeAt(c[l-1].start))||!i(r.text.charCodeAt(c[l].start))))break;if(!h(t,d,r.text,a,f))break;p=!0,o=void 0===o?u:o,s=void 0===s||s,d=e.createTextSpan(d.start+f.length,d.length-f.length)}p||void 0===s||(s=!1),u++}}},e.breakIntoCharacterSpans=_,e.breakIntoWordSpans=d}(l||(l={})),function(e){e.preProcessFile=function(t,n,r){void 0===n&&(n=!0),void 0===r&&(r=!1);var i,a={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},o=[],s=0,c=!1;function u(){var t=e.scanner.scan();return 17===t?s++:18===t&&s--,t}function l(){var t=e.scanner.getTokenValue(),n=e.scanner.getTokenPos();return{fileName:t,pos:n,end:n+t.length}}function _(){o.push(l()),d()}function d(){0===s&&(c=!0)}function p(){var t=e.scanner.getToken();if(91===t){if(19===(t=u())){if(9===(t=u()))return _(),!0}else{if(9===t)return _(),!0;if(71===t||e.isKeyword(t))if(142===(t=u())){if(9===(t=u()))return _(),!0}else if(58===t){if(m(!0))return!0}else{if(26!==t)return!0;t=u()}if(17===t){for(t=u();18!==t&&1!==t;)t=u();18===t&&142===(t=u())&&9===(t=u())&&_()}else 39===t&&118===(t=u())&&(71===(t=u())||e.isKeyword(t))&&142===(t=u())&&9===(t=u())&&_()}return!0}return!1}function f(){var t=e.scanner.getToken();if(84===t){if(d(),17===(t=u())){for(t=u();18!==t&&1!==t;)t=u();18===t&&142===(t=u())&&9===(t=u())&&_()}else if(39===t)142===(t=u())&&9===(t=u())&&_();else if(91===t&&(71===(t=u())||e.isKeyword(t))&&58===(t=u())&&m(!0))return!0;return!0}return!1}function m(t){var n=t?u():e.scanner.getToken();return 133===n&&(19===(n=u())&&9===(n=u())&&_(),!0)}function g(){var t=e.scanner.getToken();if(71===t&&"define"===e.scanner.getTokenValue()){if(19!==(t=u()))return!0;if(9===(t=u())){if(26!==(t=u()))return!0;t=u()}if(21!==t)return!0;for(t=u();22!==t&&1!==t;)9===t&&_(),t=u();return!0}return!1}if(n&&function(){for(e.scanner.setText(t),u();1!==e.scanner.getToken();)124===e.scanner.getToken()&&(129===u()&&9===u()&&(i||(i=[]),i.push({ref:l(),depth:s})),1)||p()||f()||r&&(m(!1)||g())||u();e.scanner.setText(void 0)}(),e.processCommentPragmas(a,t),e.processPragmasIntoFields(a,e.noop),c){if(i)for(var y=0,h=i;y<h.length;y++)o.push((k=h[y]).ref);return{referencedFiles:a.referencedFiles,typeReferenceDirectives:a.typeReferenceDirectives,importedFiles:o,isLibFile:a.hasNoDefaultLib,ambientExternalModules:void 0}}var v=void 0;if(i)for(var b=0,x=i;b<x.length;b++){var k;0===(k=x[b]).depth?(v||(v=[]),v.push(k.ref.fileName)):o.push(k.ref)}return{referencedFiles:a.referencedFiles,typeReferenceDirectives:a.typeReferenceDirectives,importedFiles:o,isLibFile:a.hasNoDefaultLib,ambientExternalModules:v}}}(l||(l={})),function(e){!function(t){function n(t,n,r,i,a,o){return{canRename:!0,kind:r,displayName:t,localizedErrorMessage:void 0,fullDisplayName:n,kindModifiers:i,triggerSpan:function(t,n){var r=t.getStart(n),i=t.getWidth(n);return 9===t.kind&&(r+=1,i-=2),e.createTextSpan(r,i)}(a,o)}}function r(t){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(t),displayName:void 0,fullDisplayName:void 0,kind:void 0,kindModifiers:void 0,triggerSpan:void 0}}(e.Rename||(e.Rename={})).getRenameInfo=function(t,i,a,o,s){var c=e.memoize(function(){return a(e.normalizePath(i))}),u=e.getTouchingWord(o,s,!0);return(u&&function(t){switch(t.kind){case 71:case 9:case 99:return!0;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t);default:return!1}}(u)?function(t,i,a,o){var s=i.getSymbolAtLocation(t);if(s){var c=s.declarations;if(c&&c.length>0){if(c.some(o))return r(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(e.isIdentifier(t)&&79===t.originalKeywordKind&&1536&s.parent.flags)return;var u=e.SymbolDisplay.getSymbolKind(i,s,t),l=e.isImportOrExportSpecifierName(t)||e.isStringOrNumericLiteral(t)&&146===t.parent.kind?e.stripQuotes(e.getTextOfIdentifierOrLiteral(t)):void 0;return n(l||i.symbolToString(s),l||i.getFullyQualifiedName(s),u,e.SymbolDisplay.getSymbolModifiers(s),t,a)}}else if(e.isStringLiteral(t))return o(t)?r(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library):n(t.text,t.text,"var","",t,a)}(u,t,o,function(t){if(!i)return!1;var n=t.getSourceFile();return a(e.normalizePath(n.fileName))===c()}):void 0)||r(e.Diagnostics.You_cannot_rename_this_element)}}()}(l||(l={})),function(e){!function(t){function n(t,n,i){if(e.isCallOrNewExpression(t.parent)){var a=t.parent,o=void 0,s=void 0;if(27===t.kind||19===t.kind)o=function(t,n,r){var i=a.getChildren(r),o=i.indexOf(n);return e.Debug.assert(o>=0&&i.length>o+1),i[o+1]}(0,t,i),e.Debug.assert(void 0!==o),s=0;else{if(!(o=e.findContainingList(t)))return;s=function(e,t){for(var n=0,r=0,i=o.getChildren();r<i.length;r++){var a=i[r];if(a===t)break;26!==a.kind&&n++}return n}(0,t)}var c=a.typeArguments&&a.typeArguments.pos===o.pos?0:1,u=function(t){var n=o.getChildren(),r=e.countWhere(n,function(e){return 26!==e.kind});return n.length>0&&26===e.lastOrUndefined(n).kind&&r++,r}();return 0!==s&&e.Debug.assertLessThan(s,u),{kind:c,invocation:a,argumentsSpan:function(t,n){var r=t.getFullStart(),i=e.skipTrivia(n.text,t.getEnd(),!1);return e.createTextSpan(r,i-r)}(o,i),argumentIndex:s,argumentCount:u}}if(13===t.kind&&187===t.parent.kind){if(e.isInsideTemplateLiteral(t,n))return r(t.parent,0,i)}else{if(14===t.kind&&187===t.parent.parent.kind){var l=(_=t.parent).parent;return e.Debug.assert(200===_.kind),r(l,s=e.isInsideTemplateLiteral(t,n)?0:1,i)}if(209===t.parent.kind&&187===t.parent.parent.parent.kind){var _,d=t.parent;if(l=(_=d.parent).parent,e.Debug.assert(200===_.kind),16===t.kind&&!e.isInsideTemplateLiteral(t,n))return;return r(l,s=function(t,n,r){return e.Debug.assert(r>=n.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralKind(n.kind)?e.isInsideTemplateLiteral(n,r)?0:t+2:t+1}(_.templateSpans.indexOf(d),t,n),i)}if(t.parent&&e.isJsxOpeningLikeElement(t.parent)){var p=t.parent.attributes.getFullStart(),f=e.skipTrivia(i.text,t.parent.attributes.getEnd(),!1);return{kind:3,invocation:t.parent,argumentsSpan:e.createTextSpan(p,f-p),argumentIndex:0,argumentCount:1}}}}function r(t,n,r){var i=e.isNoSubstitutionTemplateLiteral(t.template)?1:t.template.templateSpans.length+1;return 0!==n&&e.Debug.assertLessThan(n,i),{kind:2,invocation:t,argumentsSpan:function(n,r){var i=t.template,a=i.getStart(),o=i.getEnd();return 200===i.kind&&0===e.lastOrUndefined(i.templateSpans).literal.getFullWidth()&&(o=e.skipTrivia(r.text,o,!1)),e.createTextSpan(a,o-a)}(0,r),argumentIndex:n,argumentCount:i}}function i(t,r,i){for(var a=t;272!==a.kind;a=a.parent){if(e.isFunctionBlock(a))return;(a.pos<a.parent.pos||a.end>a.parent.end)&&e.Debug.fail("Node of kind "+a.kind+" is not a subspan of its parent of kind "+a.parent.kind);var o=n(a,r,i);if(o)return o}}!function(e){e[e.TypeArguments=0]="TypeArguments",e[e.CallArguments=1]="CallArguments",e[e.TaggedTemplateArguments=2]="TaggedTemplateArguments",e[e.JSXAttributesArguments=3]="JSXAttributesArguments"}(t.ArgumentListKind||(t.ArgumentListKind={})),t.getSignatureHelpItems=function(t,n,r,a){var s=t.getTypeChecker(),c=e.findTokenOnLeftOfPosition(n,r);if(c){var u=i(c,r,n);if(u){a.throwIfCancellationRequested();var l=[],_=s.getResolvedSignature(u.invocation,l,u.argumentCount);return a.throwIfCancellationRequested(),l.length?o(l,_,u,s):e.isSourceFileJavaScript(n)?function(t,n){if(185===t.invocation.kind){var r=t.invocation.expression,i=e.isIdentifier(r)?r:e.isPropertyAccessExpression(r)?r.name:void 0;if(i&&i.escapedText)for(var a=n.getTypeChecker(),s=0,c=n.getSourceFiles();s<c.length;s++){var u=c[s].getNamedDeclarations().get(i.text);if(u)for(var l=0,_=u;l<_.length;l++){var d=_[l],p=d.symbol;if(p){var f=a.getTypeOfSymbolAtLocation(p,d);if(f){var m=f.getCallSignatures();if(m&&m.length)return o(m,m[0],t,a)}}}}}}(u,t):void 0}}},t.getImmediatelyContainingArgumentInfo=n,t.getContainingArgumentInfo=i;var a=3121152;function o(t,n,r,i){var o=r.argumentCount,s=r.argumentsSpan,c=r.invocation,u=r.argumentIndex,l=0===r.kind,_=e.getInvokedExpression(c),d=i.getSymbolAtLocation(_),p=d&&e.symbolToDisplayParts(i,d,void 0,void 0),f=e.createPrinter({removeComments:!0}),m=e.map(t,function(t){var n,r,o=[],s=[];if(p&&e.addRange(o,p),l){r=!1,o.push(e.punctuationPart(27));var u=(t.target||t).typeParameters;n=u&&u.length>0?e.map(u,h):e.emptyArray,s.push(e.punctuationPart(29));var _=e.mapToDisplayParts(function(n){var r=t.thisParameter?[i.symbolToParameterDeclaration(t.thisParameter,c,a)]:[],o=e.createNodeArray(r.concat(e.map(t.parameters,function(e){return i.symbolToParameterDeclaration(e,c,a)})));f.writeList(1296,o,e.getSourceFileOfNode(e.getParseTreeNode(c)),n)});e.addRange(s,_)}else{r=t.hasRestParameter;var d=e.mapToDisplayParts(function(n){if(t.typeParameters&&t.typeParameters.length){var r=e.createNodeArray(e.map(t.typeParameters,function(e){return i.typeParameterToDeclaration(e,c)}));f.writeList(26896,r,e.getSourceFileOfNode(e.getParseTreeNode(c)),n)}});e.addRange(o,d),o.push(e.punctuationPart(19)),n=e.map(t.parameters,y),s.push(e.punctuationPart(20))}var m=e.mapToDisplayParts(function(e){e.writePunctuation(":"),e.writeSpace(" ");var n=i.getTypePredicateOfSignature(t);n?i.writeTypePredicate(n,c,void 0,e):i.writeType(i.getReturnTypeOfSignature(t),c,void 0,e)});return e.addRange(s,m),{isVariadic:r,prefixDisplayParts:o,suffixDisplayParts:s,separatorDisplayParts:[e.punctuationPart(26),e.spacePart()],parameters:n,documentation:t.getDocumentationComment(i),tags:t.getJsDocTags()}});0!==u&&e.Debug.assertLessThan(u,o);var g=t.indexOf(n);return e.Debug.assert(-1!==g),{items:m,applicableSpan:s,selectedItemIndex:g,argumentIndex:u,argumentCount:o};function y(t){var n=e.mapToDisplayParts(function(n){var r=i.symbolToParameterDeclaration(t,c,a);f.writeNode(4,r,e.getSourceFileOfNode(e.getParseTreeNode(c)),n)});return{name:t.name,documentation:t.getDocumentationComment(i),displayParts:n,isOptional:i.isOptionalParameter(t.valueDeclaration)}}function h(t){var n=e.mapToDisplayParts(function(n){var r=i.typeParameterToDeclaration(t,c);f.writeNode(4,r,e.getSourceFileOfNode(e.getParseTreeNode(c)),n)});return{name:t.symbol.name,documentation:e.emptyArray,displayParts:n,isOptional:!1}}}}(e.SignatureHelp||(e.SignatureHelp={}))}(l||(l={})),function(e){function t(t){if(e.isExternalModuleReference(t))return t.parent.name;if(e.isImportDeclaration(t)){var n=t.importClause;return n&&!n.name&&244===n.namedBindings.kind&&e.isStringLiteral(t.moduleSpecifier)?n.namedBindings.name:void 0}}e.computeSuggestionDiagnostics=function(n,r){r.getSemanticDiagnostics(n);var i=r.getDiagnosticsProducingTypeChecker(),a=[];n.commonJsModuleIndicator&&a.push(e.createDiagnosticForNode(n.commonJsModuleIndicator,e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module));var o=e.isSourceFileJavaScript(n);if(function t(n){switch(n.kind){case 232:case 190:if(o){var r=n.symbol;r.members&&r.members.size>0&&a.push(e.createDiagnosticForNode(e.isVariableDeclaration(n.parent)?n.parent.name:n,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration))}}!o&&e.codefix.parameterShouldGetTypeFromJSDoc(n)&&a.push(e.createDiagnosticForNode(n.name||n,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types)),n.forEachChild(t)}(n),e.getAllowSyntheticDefaultImports(r.getCompilerOptions()))for(var s=0,c=n.imports;s<c.length;s++){var u=c[s],l=t(u.parent);if(l){var _=e.getResolvedModule(n,u.text),d=_&&r.getSourceFile(_.resolvedFileName);d&&d.externalModuleIndicator&&e.isExportAssignment(d.externalModuleIndicator)&&d.externalModuleIndicator.isExportEquals&&a.push(e.createDiagnosticForNode(l,e.Diagnostics.Import_may_be_converted_to_a_default_import))}}return a.concat(i.getSuggestionDiagnostics(n))}}(l||(l={})),function(e){!function(t){function n(t,n,i){var a=r(t,n,i);if(""!==a)return a;var o=e.getCombinedLocalAndExportSymbolFlags(n);return 32&o?e.getDeclarationOfKind(n,203)?"local class":"class":384&o?"enum":524288&o?"type":64&o?"interface":262144&o?"type parameter":262144&o?"type parameter":8&o?"enum member":2097152&o?"alias":1536&o?"module":a}function r(t,n,r){if(t.isUndefinedSymbol(n))return"var";if(t.isArgumentsSymbol(n))return"local var";if(99===r.kind&&e.isExpression(r))return"parameter";var a=e.getCombinedLocalAndExportSymbolFlags(n);if(3&a)return e.isFirstDeclarationOfSymbolParameter(n)?"parameter":n.valueDeclaration&&e.isConst(n.valueDeclaration)?"const":e.forEach(n.declarations,e.isLet)?"let":i(n)?"local var":"var";if(16&a)return i(n)?"local function":"function";if(32768&a)return"getter";if(65536&a)return"setter";if(8192&a)return"method";if(16384&a)return"constructor";if(4&a){if(33554432&a&&6&n.checkFlags)return e.forEach(t.getRootSymbols(n),function(t){var n=t.getFlags();if(98311&n)return"property";e.Debug.assert(!!(8208&n))})||(t.getTypeOfSymbolAtLocation(n,r).getCallSignatures().length?"method":"property");switch(r.parent&&r.parent.kind){case 255:case 253:case 254:return 71===r.kind?"property":"JSX attribute";case 260:return"JSX attribute";default:return"property"}}return""}function i(t){return!t.parent&&e.forEach(t.declarations,function(t){if(190===t.kind)return!0;if(230!==t.kind&&232!==t.kind)return!1;for(var n=t.parent;!e.isFunctionBlock(n);n=n.parent)if(272===n.kind||238===n.kind)return!1;return!0})}t.getSymbolKind=n,t.getSymbolModifiers=function(t){var n=t&&t.declarations&&t.declarations.length>0?e.getNodeModifiers(t.declarations[0]):"",r=t&&16777216&t.flags?"optional":"";return n&&r?n+","+r:n||r},t.getSymbolDisplayPartsDocumentationAndSymbolKind=function t(i,a,o,s,c,u,l){void 0===u&&(u=e.getMeaningFromLocation(c));var _,d,p,f,m,g,y=[],h=e.getCombinedLocalAndExportSymbolFlags(a),v=r(i,a,c),b=99===c.kind&&e.isExpression(c);if(""!==v||32&h||2097152&h){"getter"!==v&&"setter"!==v||(v="property");var x=void 0;if(f=b?i.getTypeAtLocation(c):i.getTypeOfSymbolAtLocation(a.exportSymbol||a,c),c.parent&&183===c.parent.kind){var k=c.parent.name;(k===c||k&&0===k.getFullWidth())&&(c=c.parent)}var S=void 0;if(e.isCallOrNewExpression(c)?S=c:e.isCallExpressionTarget(c)||e.isNewExpressionTarget(c)?S=c.parent:c.parent&&e.isJsxOpeningLikeElement(c.parent)&&e.isFunctionLike(a.valueDeclaration)&&(S=c.parent),S){x=i.getResolvedSignature(S,[]);var D=186===S.kind||e.isCallExpression(S)&&97===S.expression.kind,C=D?f.getConstructSignatures():f.getCallSignatures();if(e.contains(C,x.target)||e.contains(C,x)||(x=C.length?C[0]:void 0),x){switch(D&&32&h?q(f.symbol,v="constructor"):2097152&h?(W(v="alias"),y.push(e.spacePart()),D&&(y.push(e.keywordPart(94)),y.push(e.spacePart())),V(a)):q(a,v),v){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":y.push(e.punctuationPart(56)),y.push(e.spacePart()),65536&f.flags&&16&f.objectFlags||!f.symbol||(e.addRange(y,e.symbolToDisplayParts(i,f.symbol,s,void 0,5)),y.push(e.lineBreakPart())),D&&(y.push(e.keywordPart(94)),y.push(e.spacePart())),H(x,C,262144);break;default:H(x,C)}p=!0}}else if(e.isNameOfFunctionDeclaration(c)&&!(98304&h)||123===c.kind&&154===c.parent.kind){var T=c.parent;e.find(a.declarations,function(e){return e===(123===c.kind?T.parent:T)})&&(C=154===T.kind?f.getNonNullableType().getConstructSignatures():f.getNonNullableType().getCallSignatures(),x=i.isImplementationOfOverload(T)?C[0]:i.getSignatureFromDeclaration(T),154===T.kind?q(f.symbol,v="constructor"):q(157!==T.kind||2048&f.symbol.flags||4096&f.symbol.flags?a:f.symbol,v),H(x,C),p=!0)}}if(32&h&&!p&&!b&&(K(),e.getDeclarationOfKind(a,203)?W("local class"):y.push(e.keywordPart(75)),y.push(e.spacePart()),V(a),G(a,o)),64&h&&2&u&&(J(),y.push(e.keywordPart(109)),y.push(e.spacePart()),V(a),G(a,o)),524288&h&&(J(),y.push(e.keywordPart(139)),y.push(e.spacePart()),V(a),G(a,o),y.push(e.spacePart()),y.push(e.operatorPart(58)),y.push(e.spacePart()),e.addRange(y,e.typeToDisplayParts(i,i.getDeclaredTypeOfSymbol(a),s,8388608))),384&h&&(J(),e.forEach(a.declarations,e.isConstEnumDeclaration)&&(y.push(e.keywordPart(76)),y.push(e.spacePart())),y.push(e.keywordPart(83)),y.push(e.spacePart()),V(a)),1536&h){J();var E=e.getDeclarationOfKind(a,237);y.push(e.keywordPart(E&&E.name&&71===E.name.kind?130:129)),y.push(e.spacePart()),V(a)}if(262144&h&&2&u)if(J(),y.push(e.punctuationPart(19)),y.push(e.textPart("type parameter")),y.push(e.punctuationPart(20)),y.push(e.spacePart()),V(a),a.parent)U(),V(a.parent,s),G(a.parent,s);else{var N=e.getDeclarationOfKind(a,147);e.Debug.assert(void 0!==N),(E=N.parent)&&(e.isFunctionLikeKind(E.kind)?(U(),x=i.getSignatureFromDeclaration(E),158===E.kind?(y.push(e.keywordPart(94)),y.push(e.spacePart())):157!==E.kind&&E.name&&V(E.symbol),e.addRange(y,e.signatureToDisplayParts(i,x,o,32))):235===E.kind&&(U(),y.push(e.keywordPart(139)),y.push(e.spacePart()),V(E.symbol),G(E.symbol,o)))}if(8&h&&(v="enum member",q(a,"enum member"),271===(E=a.declarations[0]).kind)){var A=i.getConstantValue(E);void 0!==A&&(y.push(e.spacePart()),y.push(e.operatorPart(58)),y.push(e.spacePart()),y.push(e.displayPart(e.getTextOfConstantValue(A),"number"==typeof A?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}if(2097152&h){if(J(),!p){var P=i.getAliasedSymbol(a);if(P!==a&&P.declarations&&P.declarations.length>0){var w=P.declarations[0],F=e.getNameOfDeclaration(w);if(F){var I=e.isModuleWithStringLiteralName(w)&&e.hasModifier(w,2),O="default"!==a.name&&!I,M=t(i,P,e.getSourceFileOfNode(w),w,F,u,O?a:P);y.push.apply(y,M.displayParts),y.push(e.lineBreakPart()),g=M.documentation}}}switch(a.declarations[0].kind){case 240:y.push(e.keywordPart(84)),y.push(e.spacePart()),y.push(e.keywordPart(130));break;case 247:y.push(e.keywordPart(84)),y.push(e.spacePart()),y.push(e.keywordPart(a.declarations[0].isExportEquals?58:79));break;default:y.push(e.keywordPart(91))}y.push(e.spacePart()),V(a),e.forEach(a.declarations,function(t){if(241===t.kind){var n=t;if(e.isExternalModuleImportEqualsDeclaration(n))y.push(e.spacePart()),y.push(e.operatorPart(58)),y.push(e.spacePart()),y.push(e.keywordPart(133)),y.push(e.punctuationPart(19)),y.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(n)),e.SymbolDisplayPartKind.stringLiteral)),y.push(e.punctuationPart(20));else{var r=i.getSymbolAtLocation(n.moduleReference);r&&(y.push(e.spacePart()),y.push(e.operatorPart(58)),y.push(e.spacePart()),V(r,s))}return!0}})}if(!p)if(""!==v){if(f)if(b?(J(),y.push(e.keywordPart(99))):q(a,v),"property"===v||"JSX attribute"===v||3&h||"local var"===v||b)if(y.push(e.punctuationPart(56)),y.push(e.spacePart()),f.symbol&&262144&f.symbol.flags){var L=e.mapToDisplayParts(function(t){var n=i.typeParameterToDeclaration(f,s);j().writeNode(4,n,e.getSourceFileOfNode(e.getParseTreeNode(s)),t)});e.addRange(y,L)}else e.addRange(y,e.typeToDisplayParts(i,f,s));else(16&h||8192&h||16384&h||131072&h||98304&h||"method"===v)&&(C=f.getNonNullableType().getCallSignatures()).length&&H(C[0],C)}else v=n(i,a,c);if(!_&&(_=a.getDocumentationComment(i),d=a.getJsDocTags(),0===_.length&&4&h&&a.parent&&e.forEach(a.parent.declarations,function(e){return 272===e.kind})))for(var R=0,B=a.declarations;R<B.length;R++)if((E=B[R]).parent&&198===E.parent.kind){var z=i.getSymbolAtLocation(E.parent.right);if(z&&(_=z.getDocumentationComment(i),d=z.getJsDocTags(),_.length>0))break}return 0===_.length&&g&&(_=g),{displayParts:y,documentation:_,symbolKind:v,tags:d};function j(){return m||(m=e.createPrinter({removeComments:!0})),m}function J(){y.length&&y.push(e.lineBreakPart()),K()}function K(){l&&(W("alias"),y.push(e.spacePart()))}function U(){y.push(e.spacePart()),y.push(e.keywordPart(92)),y.push(e.spacePart())}function V(t,n){l&&t===a&&(t=l);var r=e.symbolToDisplayParts(i,t,n||o,void 0,7);e.addRange(y,r)}function q(t,n){J(),n&&(W(n),t&&!e.some(t.declarations,function(t){return e.isArrowFunction(t)||(e.isFunctionExpression(t)||e.isClassExpression(t))&&!t.name})&&(y.push(e.spacePart()),V(t)))}function W(t){switch(t){case"var":case"function":case"let":case"const":case"constructor":return void y.push(e.textOrKeywordPart(t));default:return y.push(e.punctuationPart(19)),y.push(e.textOrKeywordPart(t)),void y.push(e.punctuationPart(20))}}function H(t,n,r){e.addRange(y,e.signatureToDisplayParts(i,t,s,32|r)),n.length>1&&(y.push(e.spacePart()),y.push(e.punctuationPart(19)),y.push(e.operatorPart(37)),y.push(e.displayPart((n.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),y.push(e.spacePart()),y.push(e.textPart(2===n.length?"overload":"overloads")),y.push(e.punctuationPart(20))),_=t.getDocumentationComment(i),d=t.getJsDocTags()}function G(t,n){var r=e.mapToDisplayParts(function(r){var a=i.symbolToTypeParameterDeclarations(t,n);j().writeList(26896,a,e.getSourceFileOfNode(e.getParseTreeNode(n)),r)});e.addRange(y,r)}}}(e.SymbolDisplay||(e.SymbolDisplay={}))}(l||(l={})),function(e){function t(t,n){var i=[],a=n.compilerOptions?r(n.compilerOptions,i):e.getDefaultCompilerOptions();a.isolatedModules=!0,a.suppressOutputPathCheck=!0,a.allowNonTsExtensions=!0,a.noLib=!0,a.lib=void 0,a.types=void 0,a.noEmit=void 0,a.noEmitOnError=void 0,a.paths=void 0,a.rootDirs=void 0,a.declaration=void 0,a.declarationDir=void 0,a.out=void 0,a.outFile=void 0,a.noResolve=!0;var o=n.fileName||(a.jsx?"module.tsx":"module.ts"),s=e.createSourceFile(o,t,a.target);n.moduleName&&(s.moduleName=n.moduleName),n.renamedDependencies&&(s.renamedDependencies=e.createMapFromTemplate(n.renamedDependencies));var c,u,l=e.getNewLineCharacter(a),_=e.createProgram([o],a,{getSourceFile:function(t){return t===e.normalizePath(o)?s:void 0},writeFile:function(t,n){e.fileExtensionIs(t,".map")?(e.Debug.assertEqual(u,void 0,"Unexpected multiple source map outputs, file:",t),u=n):(e.Debug.assertEqual(c,void 0,"Unexpected multiple outputs, file:",t),c=n)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(e){return e},getCurrentDirectory:function(){return""},getNewLine:function(){return l},fileExists:function(e){return e===o},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}});return n.reportDiagnostics&&(e.addRange(i,_.getSyntacticDiagnostics(s)),e.addRange(i,_.getOptionsDiagnostics())),_.emit(void 0,void 0,void 0,void 0,n.transformers),e.Debug.assert(void 0!==c,"Output generation failed"),{outputText:c,diagnostics:i,sourceMapText:u}}var n;function r(t,r){n=n||e.filter(e.optionDeclarations,function(t){return"object"==typeof t.type&&!e.forEachEntry(t.type,function(e){return"number"!=typeof e})}),t=e.cloneCompilerOptions(t);for(var i=function(n){if(!e.hasProperty(t,n.name))return"continue";var i=t[n.name];e.isString(i)?t[n.name]=e.parseCustomTypeOption(n,i,r):e.forEachEntry(n.type,function(e){return e===i})||r.push(e.createCompilerDiagnosticForInvalidCustomType(n))},a=0,o=n;a<o.length;a++)i(o[a]);return t}e.transpileModule=t,e.transpile=function(n,r,i,a,o){var s=t(n,{compilerOptions:r,fileName:i,reportDiagnostics:!!a,moduleName:o});return e.addRange(a,s.diagnostics),s.outputText},e.fixupCompilerOptions=r}(l||(l={})),function(e){!function(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.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace"}(t.FormattingRequestKind||(t.FormattingRequestKind={}));var n=function(){function t(e,t,n){this.sourceFile=e,this.formattingRequestKind=t,this.options=n}return t.prototype.updateContext=function(t,n,r,i,a){e.Debug.assert(void 0!==t,"currentTokenSpan is null"),e.Debug.assert(void 0!==n,"currentTokenParent is null"),e.Debug.assert(void 0!==r,"nextTokenSpan is null"),e.Debug.assert(void 0!==i,"nextTokenParent is null"),e.Debug.assert(void 0!==a,"commonParent is null"),this.currentTokenSpan=t,this.currentTokenParent=n,this.nextTokenSpan=r,this.nextTokenParent=i,this.contextNode=a,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){return this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line===this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line},t.prototype.BlockIsOnOneLine=function(t){var n=e.findChildOfKind(t,17,this.sourceFile),r=e.findChildOfKind(t,18,this.sourceFile);return!(!n||!r)&&this.sourceFile.getLineAndCharacterOfPosition(n.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(r.getStart(this.sourceFile)).line},t}();t.FormattingContext=n}(e.formatting||(e.formatting={}))}(l||(l={})),function(e){var t,n,r,i;t=e.formatting||(e.formatting={}),r=e.createScanner(6,!1,0),i=e.createScanner(6,!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"}(n||(n={})),t.getFormattingScanner=function(t,n,a,o,s){var c=1===n?i:r;c.setText(t),c.setTextPos(a);var u,l,_,d,p,f=!0,m=s({advance:function(){p=void 0,c.getStartPos()!==a?f=l&&4===e.lastOrUndefined(l).kind:c.scan(),u=void 0,l=void 0;for(var t=c.getStartPos();t<o;){var n=c.getToken();if(!e.isTrivia(n))break;c.scan();var r={pos:t,end:c.getStartPos(),kind:n};t=c.getStartPos(),u=e.append(u,r)}_=c.getStartPos()},readTokenInfo:function(t){e.Debug.assert(g());var n=function(e){switch(t.kind){case 31:case 66:case 67:case 47:case 46:return!0}return!1}()?1:12===t.kind?2:15===t.kind||16===t.kind?3:function(t){if(t.parent)switch(t.parent.kind){case 260:case 255:case 256:case 254:return e.isKeyword(t.kind)||71===t.kind}return!1}(t)?4:10===t.kind?5:0;if(p&&n===d)return y(p,t);c.getStartPos()!==_&&(e.Debug.assert(void 0!==p),c.setTextPos(_),c.scan());var r=function(t,n){var r,i=c.getToken();switch(d=0,n){case 1:if(29===i){d=1;var a=c.reScanGreaterToken();return e.Debug.assert(t.kind===a),a}break;case 2:if(41===(r=i)||63===r)return d=2,a=c.reScanSlashToken(),e.Debug.assert(t.kind===a),a;break;case 3:if(18===i)return d=3,c.reScanTemplateToken();break;case 4:return d=4,c.scanJsxIdentifier();case 5:return d=5,c.reScanJsxToken();case 0:break;default:e.Debug.assertNever(n)}return i}(t,n),i={pos:c.getStartPos(),end:c.getTextPos(),kind:r};for(l&&(l=void 0);c.getStartPos()<o&&(r=c.scan(),e.isTrivia(r));){var a={pos:c.getStartPos(),end:c.getTextPos(),kind:r};if(l||(l=[]),l.push(a),4===r){c.scan();break}}return y(p={leadingTrivia:u,trailingTrivia:l,token:i},t)},isOnToken:g,getCurrentLeadingTrivia:function(){return u},lastTrailingTriviaWasNewLine:function(){return f},skipToEndOf:function(e){c.setTextPos(e.end),_=c.getStartPos(),d=void 0,p=void 0,f=!1,u=void 0,l=void 0}});return p=void 0,c.setText(void 0),m;function g(){var t=p?p.token.kind:c.getToken();return(p?p.token.pos:c.getStartPos())<o&&1!==t&&!e.isTrivia(t)}function y(t,n){return e.isToken(n)&&t.token.kind!==n.kind&&(t.token.kind=n.kind),t}}}(l||(l={})),function(e){!function(t){t.anyContext=e.emptyArray,function(e){e[e.Ignore=1]="Ignore",e[e.Space=2]="Space",e[e.NewLine=4]="NewLine",e[e.Delete=8]="Delete"}(t.RuleAction||(t.RuleAction={})),function(e){e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines"}(t.RuleFlags||(t.RuleFlags={}))}(e.formatting||(e.formatting={}))}(l||(l={})),function(e){!function(t){function n(e,t,n,r,a,o){return void 0===o&&(o=0),{leftTokenRange:i(t),rightTokenRange:i(n),rule:{debugName:e,context:r,action:a,flags:o}}}function r(e){return{tokens:e,isSpecific:!0}}function i(t){return"number"==typeof t?r([t]):e.isArray(t)?r(t):t}function a(t,n,i){void 0===i&&(i=[]);for(var a=[],o=t;o<=n;o++)e.contains(i,o)||a.push(o);return r(a)}function o(e){return function(t){return t.options&&t.options.hasOwnProperty(e)&&!!t.options[e]}}function s(e){return function(t){return t.options&&t.options.hasOwnProperty(e)&&!t.options[e]}}function c(e){return function(t){return!t.options||!t.options.hasOwnProperty(e)||!t.options[e]}}function u(e){return function(t){return!t.options||!t.options.hasOwnProperty(e)||!t.options[e]||t.TokensAreOnSameLine()}}function l(e){return function(t){return!t.options||!t.options.hasOwnProperty(e)||!!t.options[e]}}function _(e){return 218===e.contextNode.kind}function d(e){return!_(e)}function p(e){switch(e.contextNode.kind){case 198:case 199:case 170:case 206:case 250:case 246:case 160:case 168:case 169:return!0;case 180:case 235:case 241:case 230:case 148:case 271:case 151:case 150:return 58===e.currentTokenSpan.kind||58===e.nextTokenSpan.kind;case 219:case 147:return 92===e.currentTokenSpan.kind||92===e.nextTokenSpan.kind;case 220:return 144===e.currentTokenSpan.kind||144===e.nextTokenSpan.kind}return!1}function f(e){return!p(e)}function m(e){return!g(e)}function g(t){var n=t.contextNode.kind;return 151===n||150===n||148===n||230===n||e.isFunctionLikeKind(n)}function y(e){return 199===e.contextNode.kind||170===e.contextNode.kind}function h(e){return e.TokensAreOnSameLine()||S(e)}function v(e){return 178===e.contextNode.kind||176===e.contextNode.kind||function(e){return k(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}(e)}function b(e){return S(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function x(e){return k(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function k(e){return D(e.contextNode)}function S(e){return D(e.nextTokenParent)}function D(e){if(N(e))return!0;switch(e.kind){case 211:case 239:case 182:case 238:return!0}return!1}function C(e){switch(e.contextNode.kind){case 232:case 153:case 152:case 155:case 156:case 157:case 190:case 154:case 191:case 234:return!0}return!1}function T(e){return 232===e.contextNode.kind||190===e.contextNode.kind}function E(e){return N(e.contextNode)}function N(e){switch(e.kind){case 233:case 203:case 234:case 236:case 165:case 237:case 248:case 249:case 242:case 245:return!0}return!1}function A(e){switch(e.currentTokenParent.kind){case 233:case 237:case 236:case 267:case 238:case 225:return!0;case 211:var t=e.currentTokenParent.parent;if(!t||191!==t.kind&&190!==t.kind)return!0}return!1}function P(e){switch(e.contextNode.kind){case 215:case 225:case 218:case 219:case 220:case 217:case 228:case 216:case 224:case 267:return!0;default:return!1}}function w(e){return 182===e.contextNode.kind}function F(e){return function(e){return 185===e.contextNode.kind}(e)||function(e){return 186===e.contextNode.kind}(e)}function I(e){return 26!==e.currentTokenSpan.kind}function O(e){return 22!==e.nextTokenSpan.kind}function M(e){return 191===e.contextNode.kind}function L(e){return e.TokensAreOnSameLine()&&10!==e.contextNode.kind}function R(e){return 253!==e.contextNode.kind&&257!==e.contextNode.kind}function B(e){return 263===e.contextNode.kind||262===e.contextNode.kind}function z(e){return 260===e.nextTokenParent.kind}function j(e){return 260===e.contextNode.kind}function J(e){return 254===e.contextNode.kind}function K(e){return!C(e)&&!S(e)}function U(e){return e.TokensAreOnSameLine()&&e.contextNode.decorators&&V(e.currentTokenParent)&&!V(e.nextTokenParent)}function V(t){for(;e.isExpressionNode(t);)t=t.parent;return 149===t.kind}function q(e){return 231===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function W(e){return 2!==e.formattingRequestKind}function H(e){return 237===e.contextNode.kind}function G(e){return 165===e.contextNode.kind}function X(e){return 158===e.contextNode.kind}function Q(e,t){if(27!==e.kind&&29!==e.kind)return!1;switch(t.kind){case 161:case 188:case 235:case 233:case 203:case 234:case 232:case 190:case 191:case 153:case 152:case 157:case 158:case 185:case 186:case 205:return!0;default:return!1}}function Y(e){return Q(e.currentTokenSpan,e.currentTokenParent)||Q(e.nextTokenSpan,e.nextTokenParent)}function $(e){return 188===e.contextNode.kind}function Z(e){return 105===e.currentTokenSpan.kind&&194===e.currentTokenParent.kind}function ee(e){return 201===e.contextNode.kind&&void 0!==e.contextNode.expression}function te(e){return 207===e.contextNode.kind}t.getAllRules=function(){for(var i=[],k=0;k<=144;k++)i.push(k);function D(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{tokens:i.filter(function(t){return!e.some(function(e){return e===t})}),isSpecific:!1}}var N={tokens:i,isSpecific:!1},V=r(i.concat([3])),Q=a(72,144),ne=a(27,70),re=[92,93,144,118,127],ie=[71].concat(e.typeKeywords),ae=V,oe=r([71,3,75,84,91]),se=r([20,3,81,102,87,82]),ce=[n("IgnoreBeforeComment",N,[2,3],t.anyContext,1),n("IgnoreAfterLineComment",2,N,t.anyContext,1),n("NotSpaceBeforeColon",N,56,[L,f,m],8),n("SpaceAfterColon",56,N,[L,f],2),n("NoSpaceBeforeQuestionMark",N,55,[L,f],8),n("SpaceAfterQuestionMarkInConditionalOperator",55,N,[L,y],2),n("NoSpaceAfterQuestionMark",55,N,[L],8),n("NoSpaceBeforeDot",N,23,[L],8),n("NoSpaceAfterDot",23,N,[L],8),n("NoSpaceAfterUnaryPrefixOperator",[43,44,52,51],[8,71,19,21,17,99,94],[L,f],8),n("NoSpaceAfterUnaryPreincrementOperator",43,[71,19,99,94],[L],8),n("NoSpaceAfterUnaryPredecrementOperator",44,[71,19,99,94],[L],8),n("NoSpaceBeforeUnaryPostincrementOperator",[71,20,22,94],43,[L],8),n("NoSpaceBeforeUnaryPostdecrementOperator",[71,20,22,94],44,[L],8),n("SpaceAfterPostincrementWhenFollowedByAdd",43,37,[L,p],2),n("SpaceAfterAddWhenFollowedByUnaryPlus",37,37,[L,p],2),n("SpaceAfterAddWhenFollowedByPreincrement",37,43,[L,p],2),n("SpaceAfterPostdecrementWhenFollowedBySubtract",44,38,[L,p],2),n("SpaceAfterSubtractWhenFollowedByUnaryMinus",38,38,[L,p],2),n("SpaceAfterSubtractWhenFollowedByPredecrement",38,44,[L,p],2),n("NoSpaceAfterCloseBrace",18,[26,25],[L],8),n("NewLineBeforeCloseBraceInBlockContext",V,18,[x],4),n("SpaceAfterCloseBrace",18,D(20),[L,A],2),n("SpaceBetweenCloseBraceAndElse",18,82,[L],2),n("SpaceBetweenCloseBraceAndWhile",18,106,[L],2),n("NoSpaceBetweenEmptyBraceBrackets",17,18,[L,w],8),n("SpaceAfterConditionalClosingParen",20,21,[P],2),n("NoSpaceBetweenFunctionKeywordAndStar",89,39,[T],8),n("SpaceAfterStarInGeneratorDeclaration",39,[71,19],[T],2),n("SpaceAfterFunctionInFuncDecl",89,N,[C],2),n("NewLineAfterOpenBraceInBlockContext",17,N,[x],4),n("SpaceAfterGetSetInMember",[125,136],71,[C],2),n("NoSpaceBetweenYieldKeywordAndStar",116,39,[L,ee],8),n("SpaceBetweenYieldOrYieldStarAndOperand",[116,39],N,[L,ee],2),n("NoSpaceBetweenReturnAndSemicolon",96,25,[L],8),n("SpaceAfterCertainKeywords",[104,100,94,80,96,103,121],N,[L],2),n("SpaceAfterLetConstInVariableDeclaration",[110,76],N,[L,q],2),n("NoSpaceBeforeOpenParenInFuncCall",N,19,[L,F,I],8),n("SpaceBeforeBinaryKeywordOperator",N,re,[L,p],2),n("SpaceAfterBinaryKeywordOperator",re,N,[L,p],2),n("SpaceAfterVoidOperator",105,N,[L,Z],2),n("SpaceBetweenAsyncAndOpenParen",120,19,[M,L],2),n("SpaceBetweenAsyncAndFunctionKeyword",120,89,[L],2),n("NoSpaceBetweenTagAndTemplateString",71,[13,14],[L],8),n("SpaceBeforeJsxAttribute",N,71,[z,L],2),n("SpaceBeforeSlashInJsxOpeningElement",N,41,[J,L],2),n("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",41,29,[J,L],8),n("NoSpaceBeforeEqualInJsxAttribute",N,58,[j,L],8),n("NoSpaceAfterEqualInJsxAttribute",58,N,[j,L],8),n("NoSpaceAfterModuleImport",[129,133],19,[L],8),n("SpaceAfterCertainTypeScriptKeywords",[117,75,124,79,83,84,85,125,108,91,109,129,130,112,114,113,132,136,115,139,142,128,126],N,[L],2),n("SpaceBeforeCertainTypeScriptKeywords",N,[85,108,142],[L],2),n("SpaceAfterModuleName",9,17,[H],2),n("SpaceBeforeArrow",N,36,[L],2),n("SpaceAfterArrow",36,N,[L],2),n("NoSpaceAfterEllipsis",24,71,[L],8),n("NoSpaceAfterOptionalParameters",55,[20,26],[L,f],8),n("NoSpaceBetweenEmptyInterfaceBraceBrackets",17,18,[L,G],8),n("NoSpaceBeforeOpenAngularBracket",ie,27,[L,Y],8),n("NoSpaceBetweenCloseParenAndAngularBracket",20,27,[L,Y],8),n("NoSpaceAfterOpenAngularBracket",27,N,[L,Y],8),n("NoSpaceBeforeCloseAngularBracket",N,29,[L,Y],8),n("NoSpaceAfterCloseAngularBracket",29,[19,21,29,26],[L,Y],8),n("SpaceBeforeAt",[20,71],57,[L],2),n("NoSpaceAfterAt",57,N,[L],8),n("SpaceAfterDecorator",N,[117,71,84,79,75,115,114,112,113,125,136,21,39],[U],2),n("NoSpaceBeforeNonNullAssertionOperator",N,51,[L,te],8),n("NoSpaceAfterNewKeywordOnConstructorSignature",94,19,[L,X],8)],ue=[n("SpaceAfterConstructor",123,19,[o("insertSpaceAfterConstructor"),L],2),n("NoSpaceAfterConstructor",123,19,[c("insertSpaceAfterConstructor"),L],8),n("SpaceAfterComma",26,N,[o("insertSpaceAfterCommaDelimiter"),L,R,O],2),n("NoSpaceAfterComma",26,N,[c("insertSpaceAfterCommaDelimiter"),L,R],8),n("SpaceAfterAnonymousFunctionKeyword",89,19,[o("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),C],2),n("NoSpaceAfterAnonymousFunctionKeyword",89,19,[c("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),C],8),n("SpaceAfterKeywordInControl",Q,19,[o("insertSpaceAfterKeywordsInControlFlowStatements"),P],2),n("NoSpaceAfterKeywordInControl",Q,19,[c("insertSpaceAfterKeywordsInControlFlowStatements"),P],8),n("SpaceAfterOpenParen",19,N,[o("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),L],2),n("SpaceBeforeCloseParen",N,20,[o("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),L],2),n("SpaceBetweenOpenParens",19,19,[o("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),L],2),n("NoSpaceBetweenParens",19,20,[L],8),n("NoSpaceAfterOpenParen",19,N,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),L],8),n("NoSpaceBeforeCloseParen",N,20,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),L],8),n("SpaceAfterOpenBracket",21,N,[o("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),L],2),n("SpaceBeforeCloseBracket",N,22,[o("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),L],2),n("NoSpaceBetweenBrackets",21,22,[L],8),n("NoSpaceAfterOpenBracket",21,N,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),L],8),n("NoSpaceBeforeCloseBracket",N,22,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),L],8),n("SpaceAfterOpenBrace",17,N,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),v],2),n("SpaceBeforeCloseBrace",N,18,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),v],2),n("NoSpaceBetweenEmptyBraceBrackets",17,18,[L,w],8),n("NoSpaceAfterOpenBrace",17,N,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),L],8),n("NoSpaceBeforeCloseBrace",N,18,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),L],8),n("SpaceAfterTemplateHeadAndMiddle",[14,15],N,[o("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),L],2),n("SpaceBeforeTemplateMiddleAndTail",N,[15,16],[o("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),L],2),n("NoSpaceAfterTemplateHeadAndMiddle",[14,15],N,[c("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),L],8),n("NoSpaceBeforeTemplateMiddleAndTail",N,[15,16],[c("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),L],8),n("SpaceAfterOpenBraceInJsxExpression",17,N,[o("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),L,B],2),n("SpaceBeforeCloseBraceInJsxExpression",N,18,[o("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),L,B],2),n("NoSpaceAfterOpenBraceInJsxExpression",17,N,[c("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),L,B],8),n("NoSpaceBeforeCloseBraceInJsxExpression",N,18,[c("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),L,B],8),n("SpaceAfterSemicolonInFor",25,N,[o("insertSpaceAfterSemicolonInForStatements"),L,_],2),n("NoSpaceAfterSemicolonInFor",25,N,[c("insertSpaceAfterSemicolonInForStatements"),L,_],8),n("SpaceBeforeBinaryOperator",N,ne,[o("insertSpaceBeforeAndAfterBinaryOperators"),L,p],2),n("SpaceAfterBinaryOperator",ne,N,[o("insertSpaceBeforeAndAfterBinaryOperators"),L,p],2),n("NoSpaceBeforeBinaryOperator",N,ne,[c("insertSpaceBeforeAndAfterBinaryOperators"),L,p],8),n("NoSpaceAfterBinaryOperator",ne,N,[c("insertSpaceBeforeAndAfterBinaryOperators"),L,p],8),n("SpaceBeforeOpenParenInFuncDecl",N,19,[o("insertSpaceBeforeFunctionParenthesis"),L,C],2),n("NoSpaceBeforeOpenParenInFuncDecl",N,19,[c("insertSpaceBeforeFunctionParenthesis"),L,C],8),n("NewLineBeforeOpenBraceInControl",se,17,[o("placeOpenBraceOnNewLineForControlBlocks"),P,b],4,1),n("NewLineBeforeOpenBraceInFunction",ae,17,[o("placeOpenBraceOnNewLineForFunctions"),C,b],4,1),n("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",oe,17,[o("placeOpenBraceOnNewLineForFunctions"),E,b],4,1),n("SpaceAfterTypeAssertion",29,N,[o("insertSpaceAfterTypeAssertion"),L,$],2),n("NoSpaceAfterTypeAssertion",29,N,[c("insertSpaceAfterTypeAssertion"),L,$],8),n("SpaceBeforeTypeAnnotation",N,56,[o("insertSpaceBeforeTypeAnnotation"),L,g],2),n("NoSpaceBeforeTypeAnnotation",N,56,[c("insertSpaceBeforeTypeAnnotation"),L,g],8)],le=[n("NoSpaceBeforeSemicolon",N,25,[L],8),n("SpaceBeforeOpenBraceInControl",se,17,[u("placeOpenBraceOnNewLineForControlBlocks"),P,W,h],2,1),n("SpaceBeforeOpenBraceInFunction",ae,17,[u("placeOpenBraceOnNewLineForFunctions"),C,S,W,h],2,1),n("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",oe,17,[u("placeOpenBraceOnNewLineForFunctions"),E,W,h],2,1),n("NoSpaceBeforeComma",N,26,[L],8),n("NoSpaceBeforeOpenBracket",D(120,73),21,[L],8),n("NoSpaceAfterCloseBracket",22,N,[L,K],8),n("SpaceAfterSemicolon",25,N,[L],2),n("SpaceBetweenForAndAwaitKeyword",88,121,[L],2),n("SpaceBetweenStatements",[20,81,82,73],N,[L,R,d],2),n("SpaceAfterTryFinally",[102,87],17,[L],2)];return ce.concat(ue,le)}}(e.formatting||(e.formatting={}))}(l||(l={})),function(e){!function(t){var n;function r(t,n){return e.Debug.assert(t<=144&&n<=144,"Must compute formatting context from tokens"),t*s+n}t.getFormatContext=function(i){return{options:i,getRule:(void 0===n&&(a=t.getAllRules(),o=function(e){for(var t=new Array(s*s),n=new Array(t.length),i=0,a=e;i<a.length;i++)for(var o=a[i],u=o.leftTokenRange.isSpecific&&o.rightTokenRange.isSpecific,l=0,_=o.leftTokenRange.tokens;l<_.length;l++)for(var d=_[l],p=0,f=o.rightTokenRange.tokens;p<f.length;p++){var m=r(d,f[p]),g=t[m];void 0===g&&(g=t[m]=[]),c(g,o.rule,u,n,m)}return t}(a),n=function(t){var n=o[r(t.currentTokenSpan.kind,t.nextTokenSpan.kind)];return n&&e.find(n,function(n){return e.every(n.context,function(e){return e(t)})})}),n)};var a,o};var i,a=5,o=31,s=145;function c(n,r,s,c,u){var l,_,d,p=1===r.action?s?i.IgnoreRulesSpecific:i.IgnoreRulesAny:r.context!==t.anyContext?s?i.ContextRulesSpecific:i.ContextRulesAny:s?i.NoContextRulesSpecific:i.NoContextRulesAny,f=c[u]||0;n.splice(function(e,t){for(var n=0,r=0;r<=t;r+=a)n+=e&o,e>>=a;return n}(f,p),0,r),c[u]=(e.Debug.assert(((d=1+((l=f)>>(_=p)&o))&o)===d,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),l&~(o<<_)|d<<_)}!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"}(i||(i={}))}(e.formatting||(e.formatting={}))}(l||(l={})),function(e){!function(t){var n,r,i,a,o;function s(t,n,r){var i=e.findPrecedingToken(t,r);return i&&i.kind===n&&t===i.getEnd()?i:void 0}function c(e){for(var t=e;t&&t.parent&&t.parent.end===e.end&&!u(t.parent,t);)t=t.parent;return t}function u(t,n){switch(t.kind){case 233:case 234:return e.rangeContainsRange(t.members,n);case 237:var r=t.body;return r&&238===r.kind&&e.rangeContainsRange(r.statements,n);case 272:case 211:case 238:return e.rangeContainsRange(t.statements,n);case 267:return e.rangeContainsRange(t.block.statements,n)}return!1}function l(t,n,r,i){return t?_({pos:e.getLineStartPositionForPosition(t.getStart(n),n),end:t.end},n,r,i):[]}function _(n,r,i,a){var o=function(t,n){return function r(i){var a=e.forEachChild(i,function(r){return e.startEndContainsRange(r.getStart(n),r.end,t)&&r});if(a){var o=r(a);if(o)return o}return i}(n)}(n,r);return t.getFormattingScanner(r.text,r.languageVariant,function(t,n,r){var i=t.getStart(r);if(i===n.pos&&t.end===n.end)return i;var a=e.findPrecedingToken(n.pos,r);return a?a.end>=n.pos?t.pos:a.end:t.pos}(o,n,r),n.end,function(s){return d(n,o,t.SmartIndenter.getIndentationForNode(o,n,r,i.options),function(e,n,r){for(var i,a=-1;e;){var o=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(-1!==a&&o!==a)break;if(t.SmartIndenter.shouldIndentChildNode(e,i))return n.indentSize;a=o,i=e,e=e.parent}return 0}(o,i.options,r),s,i,a,function(t,n){if(!t.length)return a;var r=t.filter(function(t){return e.rangeOverlapsWithStartEnd(n,t.start,t.start+t.length)}).sort(function(e,t){return e.start-t.start});if(!r.length)return a;var i=0;return function(t){for(;;){if(i>=r.length)return!1;var n=r[i];if(t.end<=n.start)return!1;if(e.startEndOverlapsWithStartEnd(t.pos,t.end,n.start,n.start+n.length))return!0;i++}};function a(){return!1}}(r.parseDiagnostics,n),r)})}function d(n,r,i,a,o,s,c,u,l){var _,d,f,m,g,y=s.options,h=s.getRule,v=new t.FormattingContext(l,c,y),b=[];if(o.advance(),o.isOnToken()){var x=l.getLineAndCharacterOfPosition(r.getStart(l)).line,k=x;r.decorators&&(k=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(r,l)).line),function r(i,a,s,c,d,p){if(e.rangeOverlapsWithStartEnd(n,i.getStart(l),i.getEnd())){var f=C(i,s,d,p),h=a;for(e.forEachChild(i,function(e){b(e,-1,i,f,s,c,!1)},function(t){!function(t,n,r,a){e.Debug.assert(e.isNodeArray(t));var s=function(e,t){switch(e.kind){case 154:case 232:case 190:case 153:case 152:case 191:if(e.typeParameters===t)return 27;if(e.parameters===t)return 19;break;case 185:case 186:if(e.typeArguments===t)return 27;if(e.arguments===t)return 19;break;case 161:if(e.typeArguments===t)return 27}return 0}(n,t),c=function(e){switch(s){case 19:return 20;case 27:return 29}return 0}(),u=a,_=r;if(0!==s)for(;o.isOnToken();){var d;if((d=o.readTokenInfo(n)).token.end>t.pos)break;if(d.token.kind===s){_=l.getLineAndCharacterOfPosition(d.token.pos).line;var p=D(d.token,_,-1,n,a,r);x(d,n,u=C(n,r,p.indentation,p.delta),n)}else x(d,n,a,n)}for(var f=-1,m=0;m<t.length;m++)f=b(t[m],f,i,u,_,_,!0,0===m);0!==c&&o.isOnToken()&&(d=o.readTokenInfo(n)).token.kind===c&&e.rangeContainsRange(n,d.token)&&x(d,n,u,n)}(t,i,s,f)});o.isOnToken();){var v=o.readTokenInfo(i);if(v.token.end>i.end)break;x(v,i,f,i)}}function b(a,s,c,u,_,d,p,f){var m=a.getStart(l),g=l.getLineAndCharacterOfPosition(m).line,v=g;a.decorators&&(v=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(a,l)).line);var b=-1;if(p&&e.rangeContainsRange(n,c)&&-1!==(b=function(n,r,i,a,o){if(e.rangeOverlapsWithStartEnd(a,n,r)||e.rangeContainsStartEnd(a,n,r)){if(-1!==o)return o}else{var s=l.getLineAndCharacterOfPosition(n).line,c=e.getLineStartPositionForPosition(n,l),u=t.SmartIndenter.findFirstNonWhitespaceColumn(c,n,l,y);if(s!==i||n===u){var _=t.SmartIndenter.getBaseIndentation(y);return _>u?_:u}}return-1}(m,a.end,_,n,s))&&(s=b),!e.rangeOverlapsWithStartEnd(n,a.pos,a.end))return a.end<n.pos&&o.skipToEndOf(a),s;if(0===a.getFullWidth())return s;for(;o.isOnToken()&&!((k=o.readTokenInfo(i)).token.end>m);)x(k,i,u,i);if(!o.isOnToken())return s;if(e.isToken(a)&&10!==a.kind){var k=o.readTokenInfo(a);return e.Debug.assert(k.token.end===a.end,"Token end is child end"),x(k,i,u,a),s}var S=D(a,g,b,i,u,149===a.kind?g:d);return r(a,h,g,v,S.indentation,S.delta),10===a.kind&&A({pos:a.getStart(),end:a.getEnd()},S.indentation,!0,!1),h=i,f&&181===c.kind&&-1===s&&(s=S.indentation),s}function x(t,r,i,a){e.Debug.assert(e.rangeContainsRange(r,t.token));var s=o.lastTrailingTriviaWasNewLine(),c=!1;t.leadingTrivia&&T(t.leadingTrivia,r,h,i);var d=0,p=e.rangeContainsRange(n,t.token),f=l.getLineAndCharacterOfPosition(t.token.pos);if(p){var y=u(t.token),v=_;if(d=E(t.token,f,r,h,i),!y)if(0===d){var b=v&&l.getLineAndCharacterOfPosition(v.end).line;c=s&&f.line!==b}else c=1===d}if(t.trailingTrivia&&T(t.trailingTrivia,r,h,i),c){var x=p&&!u(t.token)?i.getIndentationForToken(f.line,t.token.kind,a):-1,k=!0;if(t.leadingTrivia)for(var S=i.getIndentationForComment(t.token.kind,x,a),D=0,C=t.leadingTrivia;D<C.length;D++){var P=C[D],w=e.rangeContainsRange(n,P);switch(P.kind){case 3:w&&A(P,S,!k),k=!1;break;case 2:k&&w&&N(P.pos,S,!1),k=!1;break;case 4:k=!0}}-1!==x&&k&&(N(t.token.pos,x,1===d),m=f.line,g=x)}o.advance(),h=r}}(r,r,x,k,i,a)}if(!o.isOnToken()){var S=o.getCurrentLeadingTrivia();S&&(T(S,r,r,void 0),P(l.getLineAndCharacterOfPosition(_?_.end:n.pos).line,l.getLineAndCharacterOfPosition(n.end).line+1,_))}return b;function D(e,n,r,i,a,o){var s=t.SmartIndenter.shouldIndentChildNode(e)?y.indentSize:0;return o===n?{indentation:n===m?g:a.getIndentation(),delta:Math.min(y.indentSize,a.getDelta(e)+s)}:-1===r?19===e.kind&&n===m?{indentation:g,delta:a.getDelta(e)}:t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,n,l)?{indentation:a.getIndentation(),delta:s}:{indentation:a.getIndentation()+a.getDelta(e),delta:s}:{indentation:r,delta:s}}function C(n,r,i,a){return{getIndentationForComment:function(e,t,n){switch(e){case 18:case 22:case 20:return i+o(n)}return-1!==t?t:i},getIndentationForToken:function(t,a,s){return function(t,i,a){switch(i){case 17:case 18:case 19:case 20:case 82:case 106:case 57:return!1;case 41:case 29:switch(a.kind){case 255:case 256:case 254:return!1}break;case 21:case 22:if(176!==a.kind)return!1}return r!==t&&!(n.decorators&&i===function(t){if(t.modifiers&&t.modifiers.length)return t.modifiers[0].kind;switch(t.kind){case 233:return 75;case 234:return 109;case 232:return 89;case 236:return 236;case 155:return 125;case 156:return 136;case 153:if(t.asteriskToken)return 39;case 151:case 148:return e.getNameOfDeclaration(t).kind}}(n))}(t,a,s)?i+o(s):i},getIndentation:function(){return i},getDelta:o,recomputeIndentation:function(e){n.parent&&t.SmartIndenter.shouldIndentChildNode(n.parent,n)&&(i+=e?y.indentSize:-y.indentSize,a=t.SmartIndenter.shouldIndentChildNode(n)?y.indentSize:0)}};function o(e){return t.SmartIndenter.nodeWillIndentChild(n,e,!0)?a:0}}function T(t,r,i,a){for(var o=0,s=t;o<s.length;o++){var c=s[o];e.isComment(c.kind)&&e.rangeContainsRange(n,c)&&E(c,l.getLineAndCharacterOfPosition(c.pos),r,i,a)}}function E(t,r,i,a,o){var s=0;return u(t)||(_?s=function(t,n,r,i,a,o,s,c){v.updateContext(i,o,t,r,s);var u,_=h(v),d=0;if(_){switch(d=function(e,t,n,r,i){var a=i!==n;switch(e.action){case 1:return 0;case 8:if(t.end!==r.pos)return F(t.end,r.pos-t.end),a?2:0;break;case 4:if(1!==e.flags&&n!==i)return 0;if(1!=i-n)return I(t.end,r.pos-t.end,y.newLineCharacter),a?0:1;break;case 2:if(1!==e.flags&&n!==i)return 0;if(1!=r.pos-t.end||32!==l.text.charCodeAt(t.end))return I(t.end,r.pos-t.end," "),a?2:0}return 0}(_,i,a,t,n)){case 2:r.getStart(l)===t.pos&&c.recomputeIndentation(!1);break;case 1:r.getStart(l)===t.pos&&c.recomputeIndentation(!0);break;default:e.Debug.assert(0===d)}u=!(8&_.action)&&1!==_.flags}else u=!0;return n!==a&&u&&P(a,n,i),d}(t,r.line,i,_,f,d,a,o):P(l.getLineAndCharacterOfPosition(n.pos).line,r.line)),_=t,d=i,f=r.line,s}function N(t,n,r){var i=p(n,y);if(r)I(t,0,i);else{var a=l.getLineAndCharacterOfPosition(t),o=e.getStartPositionOfLine(a.line,l);(n!==function(e,t){for(var n=0,r=0;r<t;r++)9===l.text.charCodeAt(e+r)?n+=y.tabSize-n%y.tabSize:n++;return n}(o,a.character)||function(e,t){return e!==l.text.substr(t,e.length)}(i,o))&&I(o,a.character,i)}}function A(n,r,i,a){void 0===a&&(a=!0);var o,s=l.getLineAndCharacterOfPosition(n.pos).line,c=l.getLineAndCharacterOfPosition(n.end).line;if(s!==c){o=[];for(var u=n.pos,_=s;_<c;_++){var d=e.getEndLinePosition(_,l);o.push({pos:u,end:d}),u=e.getStartPositionOfLine(_+1,l)}a&&o.push({pos:u,end:n.end});var f=e.getStartPositionOfLine(s,l),m=t.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(f,o[0].pos,l,y);if(r!==m.column){var g=0;i&&(g=1,s++);for(var h=r-m.column,v=g;v<o.length;v++,s++){var b=e.getStartPositionOfLine(s,l),x=0===v?m:t.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(o[v].pos,o[v].end,l,y),k=x.column+h;if(k>0){var S=p(k,y);I(b,x.character,S)}else F(b,x.character)}}}else i||N(n.pos,r,!1)}function P(t,n,r){for(var i=t;i<n;i++){var a=e.getStartPositionOfLine(i,l),o=e.getEndLinePosition(i,l);if(!(r&&(e.isComment(r.kind)||e.isStringOrRegularExpressionOrTemplateLiteral(r.kind))&&r.pos<=o&&r.end>o)){var s=w(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(l.text.charCodeAt(s-1))),F(s,o+1-s))}}}function w(t,n){for(var r=n;r>=t&&e.isWhiteSpaceSingleLine(l.text.charCodeAt(r));)r--;return r!==n?r+1:-1}function F(t,n){n&&b.push(e.createTextChangeFromStartLength(t,n,""))}function I(t,n,r){(n||r)&&b.push(e.createTextChangeFromStartLength(t,n,r))}}function p(t,n){if((!i||i.tabSize!==n.tabSize||i.indentSize!==n.indentSize)&&(i={tabSize:n.tabSize,indentSize:n.indentSize},a=o=void 0),n.convertTabsToSpaces){var r=void 0,s=Math.floor(t/n.indentSize),c=t%n.indentSize;return o||(o=[]),void 0===o[s]?(r=e.repeatString(" ",n.indentSize*s),o[s]=r):r=o[s],c?r+e.repeatString(" ",c):r}var u=Math.floor(t/n.tabSize),l=t-u*n.tabSize,_=void 0;return a||(a=[]),void 0===a[u]?a[u]=_=e.repeatString("\t",u):_=a[u],l?_+e.repeatString(" ",l):_}!function(e){e[e.Unknown=-1]="Unknown"}(n||(n={})),t.formatOnEnter=function(t,n,r){var i=n.getLineAndCharacterOfPosition(t).line;if(0===i)return[];for(var a=e.getEndLinePosition(i,n);e.isWhiteSpaceSingleLine(n.text.charCodeAt(a));)a--;return e.isLineBreak(n.text.charCodeAt(a))&&a--,_({pos:e.getStartPositionOfLine(i-1,n),end:a+1},n,r,2)},t.formatOnSemicolon=function(e,t,n){return l(c(s(e,25,t)),t,n,3)},t.formatOnOpeningCurly=function(t,n,r){var i=s(t,17,n);if(!i)return[];var a=c(i.parent);return _({pos:e.getLineStartPositionForPosition(a.getStart(n),n),end:t},n,r,4)},t.formatOnClosingCurly=function(e,t,n){return l(c(s(e,18,t)),t,n,5)},t.formatDocument=function(e,t){return _({pos:0,end:e.text.length},e,t,0)},t.formatSelection=function(t,n,r,i){return _({pos:e.getLineStartPositionForPosition(t,r),end:n},r,i,1)},t.formatNodeGivenIndentation=function(e,n,r,i,a,o){var s={pos:0,end:n.text.length};return t.getFormattingScanner(n.text,r,s.pos,s.end,function(t){return d(s,e,i,a,t,o,1,function(e){return!1},n)})},function(e){e[e.None=0]="None",e[e.LineAdded=1]="LineAdded",e[e.LineRemoved=2]="LineRemoved"}(r||(r={})),t.getRangeOfEnclosingComment=function(t,n,r,i,a,o){if(void 0===a&&(a=e.getTokenAtPosition(t,n,!1)),!(a.getStart(t)<=n&&n<a.getEnd())){void 0===i&&(i=e.findPrecedingToken(n,t));var s=i&&e.getTrailingCommentRanges(t.text,i.end),c=e.getLeadingCommentRangesOfNode(a,t),u=s&&c?s.concat(c):s||c;if(u)for(var l=0,_=u;l<_.length;l++){var d=_[l];if(d.pos<n&&n<d.end||n===d.end&&(2===d.kind||n===t.getFullWidth()))return 3!==d.kind&&r||o&&!o(d)?void 0:d}}},t.getIndentationString=p}(e.formatting||(e.formatting={}))}(l||(l={})),function(e){!function(t){!function(n){var r,i;function a(e){return e.baseIndentSize||0}function o(e,t,n,r,i,o,u){for(var l=e.parent;l;){var p=!0;if(n){var f=e.getStart(i);p=f<n.pos||f>n.end}if(p&&-1!==(v=m(e,i,u)))return v+r;var y=s(l,e,i),h=y.line===t.line||d(l,e,t.line,i);if(p){var v;if(-1!==(v=c(e,l,t,h,i,u)))return v+r;if(-1!==(v=g(e,i,u)))return v+r}k(l,e,o)&&!h&&(r+=u.indentSize);var b=_(l,e,t.line,i);l=(e=l).parent,t=b?i.getLineAndCharacterOfPosition(e.getStart(i)):y}return r+a(u)}function s(e,t,n){var r=f(t,n),i=r?r.pos:e.getStart(n);return n.getLineAndCharacterOfPosition(i)}function c(t,n,r,i,a,o){return!e.isDeclaration(t)&&!e.isStatementButNotDeclaration(t)||272!==n.kind&&i?-1:h(r,a,o)}function u(t,n,r,i){var a=e.findNextToken(t,n);return a?17===a.kind?1:18===a.kind&&r===l(a,i).line?2:0:0}function l(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function _(t,n,r,i){if(!e.isCallExpression(t)||!e.contains(t.arguments,n))return!1;var a=t.expression.getEnd();return e.getLineAndCharacterOfPosition(i,a).line===r}function d(t,n,r,i){if(215===t.kind&&t.elseStatement===n){var a=e.findChildOfKind(t,82,i);return e.Debug.assert(void 0!==a),l(a,i).line===r}return!1}function p(t,n,r){return t&&e.rangeContainsStartEnd(t,n,r)?t:void 0}function f(e,t){if(e.parent)switch(e.parent.kind){case 161:return p(e.parent.typeArguments,e.getStart(t),e.getEnd());case 182:return e.parent.properties;case 181:return e.parent.elements;case 232:case 190:case 191:case 153:case 152:case 157:case 154:case 163:case 158:var n=e.getStart(t);return p(e.parent.typeParameters,n,e.getEnd())||p(e.parent.parameters,n,e.getEnd());case 233:return p(e.parent.typeParameters,e.getStart(t),e.getEnd());case 186:case 185:return n=e.getStart(t),p(e.parent.typeArguments,n,e.getEnd())||p(e.parent.arguments,n,e.getEnd());case 231:return p(e.parent.declarations,e.getStart(t),e.getEnd());case 245:case 249:return p(e.parent.elements,e.getStart(t),e.getEnd())}}function m(e,t,n){var r=f(e,t);if(r){var i=r.indexOf(e);if(-1!==i)return y(r,i,t,n)}return-1}function g(t,n,r){if(20===t.kind)return-1;if(t.parent&&e.isCallOrNewExpression(t.parent)&&t.parent.expression!==t){var i=t.parent.expression,a=function(e){for(;;)switch(e.kind){case 185:case 186:case 183:case 184:e=e.expression;break;default:return e}}(i);if(i===a)return-1;var o=n.getLineAndCharacterOfPosition(i.end),s=n.getLineAndCharacterOfPosition(a.end);return o.line===s.line?-1:h(o,n,r)}return-1}function y(t,n,r,i){e.Debug.assert(n>=0&&n<t.length);for(var a=l(t[n],r),o=n-1;o>=0;o--)if(26!==t[o].kind){if(r.getLineAndCharacterOfPosition(t[o].end).line!==a.line)return h(a,r,i);a=l(t[o],r)}return-1}function h(e,t,n){var r=t.getPositionOfLineAndCharacter(e.line,0);return b(r,r+e.character,t,n)}function v(t,n,r,i){for(var a=0,o=0,s=t;s<n;s++){var c=r.text.charCodeAt(s);if(!e.isWhiteSpaceSingleLine(c))break;9===c?o+=i.tabSize+o%i.tabSize:o++,a++}return{column:o,character:a}}function b(e,t,n,r){return v(e,t,n,r).column}function x(e,t,n){var r=t?t.kind:0;switch(e.kind){case 216:case 217:case 219:case 220:case 218:case 215:case 232:case 190:case 153:case 191:case 154:case 155:case 156:return 211!==r;case 248:return 249!==r;case 242:return 243!==r||!!t.namedBindings&&245!==t.namedBindings.kind;case 253:return 256!==r;case 257:return 259!==r}return n}function k(e,t,n){return void 0===n&&(n=!1),(function(t){switch(e.kind){case 214:case 233:case 203:case 234:case 236:case 235:case 181:case 211:case 238:case 182:case 165:case 176:case 167:case 239:case 265:case 264:case 189:case 183:case 185:case 186:case 212:case 230:case 247:case 223:case 199:case 179:case 178:case 255:case 258:case 254:case 263:case 152:case 157:case 158:case 148:case 162:case 163:case 172:case 187:case 195:case 249:case 245:case 250:case 246:case 268:case 151:return!0}return!1}()||x(e,t,!1))&&!(n&&t&&function(e,n){switch(t.kind){case 223:case 227:if(211!==n.kind)return!0;var r=n.parent;return!(r&&190===r.kind||232===r.kind);case 221:case 222:return!0;default:return!1}}(0,e))}!function(e){e[e.Unknown=-1]="Unknown"}(r||(r={})),n.getIndentation=function(n,r,i,s){if(void 0===s&&(s=!1),n>r.text.length)return a(i);if(i.indentStyle===e.IndentStyle.None)return 0;var c=e.findPrecedingToken(n,r),_=t.getRangeOfEnclosingComment(r,n,!0,c||null);if(_)return function(t,n,r,i){var a=e.getLineAndCharacterOfPosition(t,n).line-1,o=e.getLineAndCharacterOfPosition(t,i.pos).line;if(e.Debug.assert(o>=0),a<=o)return b(e.getStartPositionOfLine(o,t),n,t,r);var s=e.getStartPositionOfLine(a,t),c=v(s,n,t,r),u=c.column;return 0===u?u:42===t.text.charCodeAt(s+c.character)?u-1:u}(r,n,i,_);if(!c)return a(i);if(e.isStringOrRegularExpressionOrTemplateLiteral(c.kind)&&c.getStart(r)<=n&&n<c.end)return 0;var d=r.getLineAndCharacterOfPosition(n).line;if(i.indentStyle===e.IndentStyle.Block)return function(t,n,r){for(var i=n;i>0;){var a=t.text.charCodeAt(i);if(!e.isWhiteSpaceLike(a))break;i--}return b(e.getLineStartPositionForPosition(i,t),i,t,r)}(r,n,i);if(26===c.kind&&198!==c.parent.kind){var p=function(t,n,r){var i=e.findListItemInfo(c);return i&&i.listItemIndex>0?y(i.list.getChildren(),i.listItemIndex-1,n,r):-1}(0,r,i);if(-1!==p)return p}return function(t,n,r,i,s,c){for(var _,d=r;d;){if(e.positionBelongsToNode(d,n,t)&&k(d,_,!0)){var p=l(d,t),f=u(r,d,i,t);return o(d,p,void 0,0!==f?s&&2===f?c.indentSize:0:i!==p.line?c.indentSize:0,t,!0,c)}var y=m(d,t,c);if(-1!==y)return y;if(-1!==(y=g(d,t,c)))return y+c.indentSize;_=d,d=d.parent}return a(c)}(r,n,c,d,s,i)},n.getIndentationForNode=function(e,t,n,r){return o(e,n.getLineAndCharacterOfPosition(e.getStart(n)),t,0,n,!1,r)},n.getBaseIndentation=a,function(e){e[e.Unknown=0]="Unknown",e[e.OpenBrace=1]="OpenBrace",e[e.CloseBrace=2]="CloseBrace"}(i||(i={})),n.isArgumentAndStartLineOverlapsExpressionBeingCalled=_,n.childStartsOnTheSameLineWithElseInIfStatement=d,n.getContainingList=f,n.findFirstNonWhitespaceCharacterAndColumn=v,n.findFirstNonWhitespaceColumn=b,n.nodeWillIndentChild=x,n.shouldIndentChildNode=k}(t.SmartIndenter||(t.SmartIndenter={}))}(e.formatting||(e.formatting={}))}(l||(l={})),function(e){!function(t){function n(t){var n=t.__pos;return e.Debug.assert("number"==typeof n),n}function r(t,n){e.Debug.assert("number"==typeof n),t.__pos=n}function i(t){var n=t.__end;return e.Debug.assert("number"==typeof n),n}function a(t,n){e.Debug.assert("number"==typeof n),t.__end=n}var o,s;function c(t,n){return e.skipTrivia(t,n,!1,!0)}function u(t,n,r,i){if(r.useNonAdjustedStartPosition)return n.getStart(t);var a=n.getFullStart(),s=n.getStart(t);if(a===s)return s;var u=e.getLineStartPositionForPosition(a,t);if(e.getLineStartPositionForPosition(s,t)===u)return i===o.Start?s:a;var l=a>0?1:0,_=e.getStartPositionOfLine(e.getLineOfLocalPosition(t,u)+l,t);return _=c(t.text,_),e.getStartPositionOfLine(e.getLineOfLocalPosition(t,_),t)}function l(t,n,r){if(r.useNonAdjustedEndPosition||e.isExpression(n))return n.getEnd();var i=n.getEnd(),a=e.skipTrivia(t.text,i,!0);return a!==i&&e.isLineBreak(t.text.charCodeAt(a-1))?a:i}function _(e,t){return t&&e.parent&&(26===t.kind||25===t.kind&&182===e.parent.kind)}!function(e){e[e.FullStart=0]="FullStart",e[e.Start=1]="Start"}(o=t.Position||(t.Position={})),t.useNonAdjustedPositions={useNonAdjustedStartPosition:!0,useNonAdjustedEndPosition:!0},function(e){e[e.Remove=0]="Remove",e[e.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",e[e.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes"}(s||(s={})),t.getSeparatorCharacter=function(t){return e.tokenToString(t.kind)},t.getAdjustedStartPosition=u,t.getAdjustedEndPosition=l;var d,p=function(){function n(t,n){this.newLineCharacter=t,this.formatContext=n,this.changes=[],this.deletedNodesInLists=[],this.nodesInsertedAtClassStarts=e.createMap()}return n.fromContext=function(t){return new n(e.getNewLineOrDefaultFromHost(t.host,t.formatContext.options),t.formatContext)},n.with=function(e,t){var r=n.fromContext(e);return t(r),r.getChanges()},n.prototype.deleteRange=function(e,t){return this.changes.push({kind:s.Remove,sourceFile:e,range:t}),this},n.prototype.deleteNode=function(e,t,n){void 0===n&&(n={});var r=u(e,t,n,o.FullStart),i=l(e,t,n);return this.deleteRange(e,{pos:r,end:i}),this},n.prototype.deleteNodeRange=function(e,t,n,r){void 0===r&&(r={});var i=u(e,t,r,o.FullStart),a=l(e,n,r);return this.deleteRange(e,{pos:i,end:a}),this},n.prototype.deleteNodeInList=function(t,n){var r=e.formatting.SmartIndenter.getContainingList(n,t);if(!r)return e.Debug.fail("node is not a list element"),this;var i=e.indexOfNode(r,n);if(i<0)return this;if(1===r.length)return this.deleteNode(t,n),this;var a=e.getNodeId(n);if(e.Debug.assert(!this.deletedNodesInLists[a],"Deleting a node twice"),this.deletedNodesInLists[a]=!0,i!==r.length-1){var s=e.getTokenAtPosition(t,n.end,!1);if(s&&_(n,s)){var c=e.skipTrivia(t.text,u(t,n,{},o.FullStart),!1,!0),d=e.skipTrivia(t.text,u(t,r[i+1],{},o.FullStart),!1,!0);this.deleteRange(t,{pos:c,end:d})}}else if(this.deletedNodesInLists[e.getNodeId(r[i-1])]){var p=e.skipTrivia(t.text,u(t,n,{},o.FullStart),!1,!0),f=l(t,n,{});this.deleteRange(t,{pos:p,end:f})}else{var m=e.getTokenAtPosition(t,r[i-1].end,!1);m&&_(n,m)&&this.deleteNodeRange(t,m,n)}return this},n.prototype.replaceRange=function(e,t,n,r){return void 0===r&&(r={}),this.changes.push({kind:s.ReplaceWithSingleNode,sourceFile:e,range:t,options:r,node:n}),this},n.prototype.replaceNode=function(e,t,n,r){void 0===r&&(r={});var i=u(e,t,r,o.Start),a=l(e,t,r);return this.replaceRange(e,{pos:i,end:a},n,r)},n.prototype.replaceNodeRange=function(e,t,n,r,i){void 0===i&&(i={});var a=u(e,t,i,o.Start),s=l(e,n,i);return this.replaceRange(e,{pos:a,end:s},r,i)},n.prototype.replaceRangeWithNodes=function(e,n,r,i){return void 0===i&&(i=t.useNonAdjustedPositions),this.changes.push({kind:s.ReplaceWithMultipleNodes,sourceFile:e,range:n,options:i,nodes:r}),this},n.prototype.replaceNodeWithNodes=function(e,n,r,i){void 0===i&&(i=t.useNonAdjustedPositions);var a=u(e,n,i,o.Start),s=l(e,n,i);return this.replaceRangeWithNodes(e,{pos:a,end:s},r,i)},n.prototype.replaceNodeRangeWithNodes=function(e,n,r,i,a){void 0===a&&(a=t.useNonAdjustedPositions);var s=u(e,n,a,o.Start),c=l(e,r,a);return this.replaceRangeWithNodes(e,{pos:s,end:c},i,a)},n.prototype.insertNodeAt=function(e,t,n,r){return void 0===r&&(r={}),this.changes.push({kind:s.ReplaceWithSingleNode,sourceFile:e,options:r,node:n,range:{pos:t,end:t}}),this},n.prototype.insertNodesAt=function(e,t,n,r){void 0===r&&(r={}),this.changes.push({kind:s.ReplaceWithMultipleNodes,sourceFile:e,options:r,nodes:n,range:{pos:t,end:t}})},n.prototype.insertNodeAtTopOfFile=function(t,n,r){var i=function(n){var r=t.text,i=e.getShebang(r),a=0;void 0!==i&&(a=i.length,l());var o=e.getLeadingCommentRanges(r,a);if(!o)return a;o.length&&3===o[0].kind&&e.isPinnedComment(r,o[0])&&(a=o[0].end,l(),o=o.slice(1));for(var s=0,c=o;s<c.length;s++){var u=c[s];if(2!==u.kind||!e.isRecognizedTripleSlashComment(r,u.pos,u.end))break;a=u.end,l()}return a;function l(){if(a<r.length){var t=r.charCodeAt(a);e.isLineBreak(t)&&++a<r.length&&13===t&&10===r.charCodeAt(a)&&a++}}}();this.insertNodeAt(t,i,n,{prefix:0===i?void 0:this.newLineCharacter,suffix:(e.isLineBreak(t.text.charCodeAt(i))?"":this.newLineCharacter)+(r?this.newLineCharacter:"")})},n.prototype.insertNodeBefore=function(e,t,n,r){void 0===r&&(r=!1);var i=u(e,t,{},o.Start);return this.replaceRange(e,{pos:i,end:i},n,this.getOptionsForInsertNodeBefore(t,r))},n.prototype.insertModifierBefore=function(t,n,r){var i=r.getStart(t);this.replaceRange(t,{pos:i,end:i},e.createToken(n),{suffix:" "})},n.prototype.insertTypeAnnotation=function(t,n,r){var i=(e.isFunctionLike(n)?e.findChildOfKind(n,20,t)||e.first(n.parameters):230!==n.kind&&n.questionToken?n.questionToken:n.name).end;this.insertNodeAt(t,i,r,{prefix:": "})},n.prototype.insertTypeParameters=function(t,n,r){var i=(e.findChildOfKind(n,19,t)||e.first(n.parameters)).getStart(t);this.insertNodesAt(t,i,r,{prefix:"<",suffix:">"})},n.prototype.getOptionsForInsertNodeBefore=function(t,n){return e.isStatement(t)||e.isClassElement(t)?{suffix:n?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(t)?{suffix:", "}:e.isParameter(t)?{}:e.Debug.failBadSyntaxKind(t)},n.prototype.insertNodeAtConstructorStart=function(t,n,r){var i=e.firstOrUndefined(n.body.statements);i&&n.body.multiLine?this.insertNodeBefore(t,i,r):this.replaceConstructorBody(t,n,[r].concat(n.body.statements))},n.prototype.insertNodeAtConstructorEnd=function(t,n,r){var i=e.lastOrUndefined(n.body.statements);i&&n.body.multiLine?this.insertNodeAfter(t,i,r):this.replaceConstructorBody(t,n,n.body.statements.concat([r]))},n.prototype.replaceConstructorBody=function(t,n,r){this.replaceNode(t,n.body,e.createBlock(r,!0),{useNonAdjustedEndPosition:!0})},n.prototype.insertNodeAtEndOfScope=function(t,n,r){var i=u(t,n.getLastToken(),{},o.Start);this.replaceRange(t,{pos:i,end:i},r,{prefix:e.isLineBreak(t.text.charCodeAt(n.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},n.prototype.insertNodeAtClassStart=function(t,n,r){var i=e.firstOrUndefined(n.members);if(i)this.insertNodeBefore(t,i,r);else{var a=e.getNodeId(n).toString(),o=this.nodesInsertedAtClassStarts.get(a);o?(e.Debug.assert(o.sourceFile===t&&o.cls===n),o.members.push(r)):this.nodesInsertedAtClassStarts.set(a,{sourceFile:t,cls:n,members:[r]})}},n.prototype.insertNodeAfter=function(t,n,r){(e.isStatementButNotDeclaration(n)||151===n.kind||150===n.kind||152===n.kind)&&59!==t.text.charCodeAt(n.end-1)&&this.changes.push({kind:s.ReplaceWithSingleNode,sourceFile:t,options:{},range:{pos:n.end,end:n.end},node:e.createToken(25)});var i=l(t,n,{});return this.replaceRange(t,{pos:i,end:i},r,this.getInsertNodeAfterOptions(n))},n.prototype.getInsertNodeAfterOptions=function(t){return e.isClassDeclaration(t)||e.isModuleDeclaration(t)?{prefix:this.newLineCharacter,suffix:this.newLineCharacter}:e.isStatement(t)||e.isClassElement(t)||e.isTypeElement(t)?{suffix:this.newLineCharacter}:e.isVariableDeclaration(t)?{prefix:", "}:e.isParameter(t)?{}:e.Debug.failBadSyntaxKind(t)},n.prototype.insertNodeInListAfter=function(t,n,r){var i=e.formatting.SmartIndenter.getContainingList(n,t);if(!i)return e.Debug.fail("node is not a list element"),this;var a=e.indexOfNode(i,n);if(a<0)return this;var o=n.getEnd();if(a!==i.length-1){var u=e.getTokenAtPosition(t,n.end,!1);if(u&&_(n,u)){var l=e.getLineAndCharacterOfPosition(t,c(t.text,i[a+1].getFullStart())),d=e.getLineAndCharacterOfPosition(t,u.end),p=void 0,f=void 0;d.line===l.line?(f=u.end,p=function(e){for(var t="",n=0;n<e;n++)t+=" ";return t}(l.character-d.character)):f=e.getStartPositionOfLine(l.line,t),this.changes.push({kind:s.ReplaceWithSingleNode,sourceFile:t,range:{pos:f,end:i[a+1].getStart(t)},node:r,options:{prefix:p,suffix:""+e.tokenToString(u.kind)+t.text.substring(u.end,i[a+1].getStart(t))}})}}else{var m=n.getStart(t),g=e.getLineStartPositionForPosition(m,t),y=void 0,h=!1;if(1===i.length)y=26;else{var v=e.findPrecedingToken(n.pos,t);y=_(n,v)?v.kind:26,h=e.getLineStartPositionForPosition(i[a-1].getStart(t),t)!==g}if(function(t,r){for(var i=n.end;i<t.length;){var a=t.charCodeAt(i);if(!e.isWhiteSpaceSingleLine(a))return 47===a;i++}return!1}(t.text)&&(h=!0),h){this.changes.push({kind:s.ReplaceWithSingleNode,sourceFile:t,range:{pos:o,end:o},node:e.createToken(y),options:{}});var b=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(g,m,t,this.formatContext.options),x=e.skipTrivia(t.text,o,!0,!1);x!==o&&e.isLineBreak(t.text.charCodeAt(x-1))&&x--,this.changes.push({kind:s.ReplaceWithSingleNode,sourceFile:t,range:{pos:x,end:x},node:r,options:{indentation:b,prefix:this.newLineCharacter}})}else this.changes.push({kind:s.ReplaceWithSingleNode,sourceFile:t,range:{pos:o,end:o},node:r,options:{prefix:e.tokenToString(y)+" "}})}return this},n.prototype.finishInsertNodeAtClassStart=function(){var t=this;this.nodesInsertedAtClassStarts.forEach(function(n){var r=n.sourceFile,i=n.cls,a=n.members,o=233===i.kind?e.updateClassDeclaration(i,i.decorators,i.modifiers,i.name,i.typeParameters,i.heritageClauses,a):e.updateClassExpression(i,i.modifiers,i.name,i.typeParameters,i.heritageClauses,a);t.replaceNode(r,i,o,{useNonAdjustedEndPosition:!0})})},n.prototype.getChanges=function(e){return this.finishInsertNodeAtClassStart(),d.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e)},n}();function f(t,n){for(var r=n.length-1;r>=0;r--){var i=n[r];t=""+t.substring(0,i.span.start)+i.newText+t.substring(e.textSpanEnd(i.span))}return t}function m(t){var r=e.visitEachChild(t,m,e.nullTransformationContext,g,m),a=e.nodeIsSynthesized(r)?r:Object.create(r);return a.pos=n(t),a.end=i(t),a}function g(t,r,a,o,s){var c=e.visitNodes(t,r,a,o,s);if(!c)return c;var u=c===t?e.createNodeArray(c.slice(0)):c;return u.pos=n(t),u.end=i(t),u}t.ChangeTracker=p,function(t){t.getTextChangesFromChanges=function(t,n,r,i){return e.group(t,function(e){return e.sourceFile.path}).map(function(t){for(var a=t[0].sourceFile,o=e.stableSort(t,function(e,t){return e.range.pos-t.range.pos}),c=function(t){e.Debug.assert(o[t].range.end<=o[t+1].range.pos,"Changes overlap",function(){return JSON.stringify(o[t].range)+" and "+JSON.stringify(o[t+1].range)})},u=0;u<o.length-2;u++)c(u);var l=o.map(function(t){return e.createTextChange(e.createTextSpanFromRange(t.range),function(t,n,r,i,a){if(t.kind===s.Remove)return"";var o=t.options,c=void 0===o?{}:o,u=t.range.pos,l=function(t){return function(t,n,r,i,a,o,s){var c=function(t,n,r){var i=new y(r);return e.createPrinter({newLine:"\n"===r?1:0},i).writeNode(4,t,n,i),{text:i.getText(),node:m(t)}}(t,n,a),u=c.node,l=c.text;s&&s(u,l);var _=o.options,d=void 0!==i.indentation?i.indentation:!1!==i.useIndentationFromFile?e.formatting.SmartIndenter.getIndentation(r,n,_,i.prefix===a||e.getLineStartPositionForPosition(r,n)===r):0,p=void 0!==i.delta?i.delta:e.formatting.SmartIndenter.shouldIndentChildNode(t)&&_.indentSize||0;return f(l,e.formatting.formatNodeGivenIndentation(u,{text:l,getLineAndCharacterOfPosition:function(t){return e.getLineAndCharacterOfPosition(this,t)}},n.languageVariant,d,p,o))}(t,n,u,c,r,i,a)},_=t.kind===s.ReplaceWithMultipleNodes?t.nodes.map(function(t){return e.removeSuffix(l(t),r)}).join(r):l(t.node),d=c.preserveLeadingWhitespace||void 0!==c.indentation||e.getLineStartPositionForPosition(u,n)===u?_:_.replace(/^\s+/,"");return(c.prefix||"")+d+(c.suffix||"")}(t,a,n,r,i))});return{fileName:a.fileName,textChanges:l}})}}(d||(d={})),t.applyChanges=f;var y=function(){function t(t){var n=this;this.lastNonTriviaPosition=0,this.writer=e.createTextWriter(t),this.onEmitNode=function(e,t,i){t&&r(t,n.lastNonTriviaPosition),i(e,t),t&&a(t,n.lastNonTriviaPosition)},this.onBeforeEmitNodeArray=function(e){e&&r(e,n.lastNonTriviaPosition)},this.onAfterEmitNodeArray=function(e){e&&a(e,n.lastNonTriviaPosition)},this.onBeforeEmitToken=function(e){e&&r(e,n.lastNonTriviaPosition)},this.onAfterEmitToken=function(e){e&&a(e,n.lastNonTriviaPosition)}}return t.prototype.setLastNonTriviaPosition=function(t,n){if(n||!function(t){return e.skipTrivia(t,0)===t.length}(t)){this.lastNonTriviaPosition=this.writer.getTextPos();for(var r=0;e.isWhiteSpaceLike(t.charCodeAt(t.length-r-1));)r++;this.lastNonTriviaPosition-=r}},t.prototype.write=function(e){this.writer.write(e),this.setLastNonTriviaPosition(e,!1)},t.prototype.writeKeyword=function(e){this.writer.writeKeyword(e),this.setLastNonTriviaPosition(e,!1)},t.prototype.writeOperator=function(e){this.writer.writeOperator(e),this.setLastNonTriviaPosition(e,!1)},t.prototype.writePunctuation=function(e){this.writer.writePunctuation(e),this.setLastNonTriviaPosition(e,!1)},t.prototype.writeParameter=function(e){this.writer.writeParameter(e),this.setLastNonTriviaPosition(e,!1)},t.prototype.writeProperty=function(e){this.writer.writeProperty(e),this.setLastNonTriviaPosition(e,!1)},t.prototype.writeSpace=function(e){this.writer.writeSpace(e),this.setLastNonTriviaPosition(e,!1)},t.prototype.writeStringLiteral=function(e){this.writer.writeStringLiteral(e),this.setLastNonTriviaPosition(e,!1)},t.prototype.writeSymbol=function(e,t){this.writer.writeSymbol(e,t),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.clear=function(){this.writer.clear(),this.lastNonTriviaPosition=0},t}()}(e.textChanges||(e.textChanges={}))}(l||(l={})),function(e){var t,n,r;t=e.codefix||(e.codefix={}),n=[],r=e.createMap(),t.registerCodeFix=function(t){for(var i=0,a=t.errorCodes;i<a.length;i++){var o=a[i],s=n[o];s||(n[o]=s=[]),s.push(t)}if(t.fixIds)for(var c=0,u=t.fixIds;c<u.length;c++){var l=u[c];e.Debug.assert(!r.has(l)),r.set(l,t)}},t.getSupportedErrorCodes=function(){return Object.keys(n)},t.getFixes=function(t){var r=[];return e.forEach(n[t.errorCode],function(e){var n=e.getCodeActions(t);if(n&&n.length>0)for(var i=0,a=n;i<a.length;i++){var o=a[i];void 0===o?t.host.log("Action for error code "+t.errorCode+" added an invalid action entry; please log a bug"):r.push(o)}}),r},t.getAllFixes=function(t){return r.get(e.cast(t.fixId,e.isString)).getAllCodeActions(t)},t.createFileTextChanges=function(e,t){return{fileName:e,textChanges:t}},t.codeFixAll=function(t,n,r){var i=[];return function(e,t){return{changes:e,commands:t}}(e.textChanges.ChangeTracker.with(t,function(a){return function(n,r,i){for(var a=t.program,o=t.sourceFile,s=0,c=a.getSemanticDiagnostics(o).concat(e.computeSuggestionDiagnostics(o,a));s<c.length;s++){var u=c[s];e.contains(r,u.code)&&i(u)}}(0,n,function(e){return r(a,e,i)})}),0===i.length?void 0:i)}}(l||(l={})),function(e){var t,n;t=e.refactor||(e.refactor={}),n=e.createMap(),t.registerRefactor=function(e,t){n.set(e,t)},t.getApplicableRefactors=function(t){return e.arrayFrom(e.flatMapIterator(n.values(),function(e){return t.cancellationToken&&t.cancellationToken.isCancellationRequested()?void 0:e.getAvailableActions(t)}))},t.getEditsForRefactor=function(e,t,r){var i=n.get(t);return i&&i.getEditsForAction(e,r)},e.getRefactorContextLength=function(e){return void 0===e.endPosition?0:e.endPosition-e.startPosition}}(l||(l={})),function(e){!function(t){var n="addMissingInvocationForDecorator",r=[e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];function i(t,n,r){var i=e.getTokenAtPosition(n,r,!1),a=e.findAncestor(i,e.isDecorator);e.Debug.assert(!!a,"Expected position to be owned by a decorator.");var o=e.createCall(a.expression,void 0,void 0);t.replaceNode(n,a.expression,o)}t.registerCodeFix({errorCodes:r,getCodeActions:function(t){var r=e.textChanges.ChangeTracker.with(t,function(e){return i(e,t.sourceFile,t.span.start)});return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Call_decorator_expression),changes:r,fixId:n}]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(e,t){return i(e,t.file,t.start)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n="annotateWithTypeFromJSDoc",r=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];function i(t,n){var r=e.getTokenAtPosition(t,n,!1);return e.tryCast(e.isParameter(r.parent)?r.parent.parent:r.parent,a)}function a(t){return function(t){return e.isFunctionLikeDeclaration(t)||230===t.kind||150===t.kind||151===t.kind}(t)&&o(t)}function o(t){return e.isFunctionLikeDeclaration(t)?t.parameters.some(o)||!t.type&&!!e.getJSDocReturnType(t):!t.type&&!!e.getJSDocType(t)}function s(t,n,r){if(e.isFunctionLikeDeclaration(r)&&(e.getJSDocReturnType(r)||r.parameters.some(function(t){return!!e.getJSDocType(t)}))){if(!r.typeParameters){var i=e.getJSDocTypeParameterDeclarations(r);i&&t.insertTypeParameters(n,r,i)}var a=e.isArrowFunction(r)&&!e.findChildOfKind(r,19,n);a&&t.insertNodeBefore(n,e.first(r.parameters),e.createToken(19));for(var o=0,s=r.parameters;o<s.length;o++){var u=s[o];if(!u.type){var l=e.getJSDocType(u);l&&t.insertTypeAnnotation(n,u,c(l))}}if(a&&t.insertNodeAfter(n,e.last(r.parameters),e.createToken(20)),!r.type){var _=e.getJSDocReturnType(r);_&&t.insertTypeAnnotation(n,r,c(_))}}else{var d=e.Debug.assertDefined(e.getJSDocType(r));e.Debug.assert(!r.type),t.insertTypeAnnotation(n,r,c(d))}}function c(t){switch(t.kind){case 275:case 276:return e.createTypeReferenceNode("any",e.emptyArray);case 279:return function(t){return e.createUnionTypeNode([e.visitNode(t.type,c),e.createTypeReferenceNode("undefined",e.emptyArray)])}(t);case 278:return c(t.type);case 277:return function(t){return e.createUnionTypeNode([e.visitNode(t.type,c),e.createTypeReferenceNode("null",e.emptyArray)])}(t);case 281:return function(t){return e.createArrayTypeNode(e.visitNode(t.type,c))}(t);case 280:return function(t){return e.createFunctionTypeNode(e.emptyArray,t.parameters.map(u),t.type)}(t);case 161:return function(t){var n=t.typeName,r=t.typeArguments;if(e.isIdentifier(t.typeName)){if(e.isJSDocIndexSignature(t))return function(t){var n=e.createParameter(void 0,void 0,void 0,134===t.typeArguments[0].kind?"n":"s",void 0,e.createTypeReferenceNode(134===t.typeArguments[0].kind?"number":"string",[]),void 0),r=e.createTypeLiteralNode([e.createIndexSignature(void 0,void 0,[n],t.typeArguments[1])]);return e.setEmitFlags(r,1),r}(t);var i=t.typeName.text;switch(t.typeName.text){case"String":case"Boolean":case"Object":case"Number":i=i.toLowerCase();break;case"array":case"date":case"promise":i=i[0].toUpperCase()+i.slice(1)}n=e.createIdentifier(i),r="Array"!==i&&"Promise"!==i||t.typeArguments?e.visitNodes(t.typeArguments,c):e.createNodeArray([e.createTypeReferenceNode("any",e.emptyArray)])}return e.createTypeReferenceNode(n,r)}(t);default:var n=e.visitEachChild(t,c,void 0);return e.setEmitFlags(n,1),n}}function u(t){var n=t.parent.parameters.indexOf(t),r=281===t.type.kind&&n===t.parent.parameters.length-1,i=t.name||(r?"rest":"arg"+n),a=r?e.createToken(24):t.dotDotDotToken;return e.createParameter(t.decorators,t.modifiers,a,i,t.questionToken,e.visitNode(t.type,c),t.initializer)}t.registerCodeFix({errorCodes:r,getCodeActions:function(t){var r=i(t.sourceFile,t.span.start);if(r)return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Annotate_with_type_from_JSDoc),changes:e.textChanges.ChangeTracker.with(t,function(e){return s(e,t.sourceFile,r)}),fixId:n}]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(e,t){var n=i(t.file,t.start);n&&s(e,t.file,n)})}}),t.parameterShouldGetTypeFromJSDoc=a}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n="convertFunctionToEs6Class",r=[e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code];function i(t,n,r,i){var s=[],c=[],u=i.getSymbolAtLocation(e.getTokenAtPosition(n,r,!1));if(u&&19&u.flags){var l,_,d=u.valueDeclaration;switch(d.kind){case 232:l=d,m(d),_=function(t){var n=g(u);t.body&&n.unshift(e.createConstructor(void 0,void 0,t.parameters,t.body));var r=o(t,84);return e.createClassDeclaration(void 0,r,t.name,void 0,void 0,n)}(d);break;case 230:l=d.parent.parent,1===d.parent.declarations.length?m(l):m(d,!0),_=function(t){var n=t.initializer;if(n&&190===n.kind&&71===t.name.kind){var r=g(n.symbol);n.body&&r.unshift(e.createConstructor(void 0,void 0,n.parameters,n.body));var i=o(l,84);return e.createClassDeclaration(void 0,i,t.name,void 0,void 0,r)}}(d)}if(_){a(d,_,n),t.insertNodeAfter(n,l,_);for(var p=0,f=c;p<f.length;p++)(0,f[p])()}}function m(r,i){void 0===i&&(i=!1),s.some(function(t){return e.isNodeDescendantOf(r,t)})||(s.push(r),c.push(i?function(){return t.deleteNodeInList(n,r)}:function(){return t.deleteNode(n,r)}))}function g(t){var r=[];return t.members&&t.members.forEach(function(e){var t=i(e,void 0);t&&r.push(t)}),t.exports&&t.exports.forEach(function(t){var n=i(t,[e.createToken(115)]);n&&r.push(n)}),r;function i(t,r){if(4&t.flags){var i=t.valueDeclaration,s=i.parent;if(e.isFunctionLike(s.right)){if(m(s.parent&&214===s.parent.kind?s.parent:s),!s.right)return e.createProperty([],r,t.name,void 0,void 0,void 0);switch(s.right.kind){case 190:var c=s.right,u=e.concatenate(r,o(c,120));return a(s,_=e.createMethod(void 0,u,void 0,i.name,void 0,void 0,c.parameters,void 0,c.body),n),_;case 191:var l,_,d=s.right,p=d.body;return l=211===p.kind?p:e.createBlock([e.createReturn(p)]),u=e.concatenate(r,o(d,120)),a(s,_=e.createMethod(void 0,u,void 0,i.name,void 0,void 0,d.parameters,void 0,l),n),_;default:if(e.isSourceFileJavaScript(n))return;var f=e.createProperty(void 0,r,i.name,void 0,void 0,s.right);return a(s.parent,f,n),f}}}}}}function a(t,n,r){e.forEachLeadingCommentRange(r.text,t.pos,function(t,i,a,o){3===a?(t+=2,i-=2):t+=2,e.addSyntheticLeadingComment(n,a,r.text.slice(t,i),o)})}function o(t,n){return e.filter(t.modifiers,function(e){return e.kind===n})}t.registerCodeFix({errorCodes:r,getCodeActions:function(t){var r=e.textChanges.ChangeTracker.with(t,function(e){return i(e,t.sourceFile,t.span.start,t.program.getTypeChecker())});return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_function_to_an_ES2015_class),changes:r,fixId:n}]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(t,n){return i(t,n.file,n.start,e.program.getTypeChecker())})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){function n(t,n,r){for(var i=0,a=t.imports;i<a.length;i++){var o=a[i],s=e.getResolvedModule(t,o.text);if(s&&s.resolvedFileName===n.fileName){var c=o.parent;switch(c.kind){case 252:var u=c.parent;r.replaceNode(t,u,d(u.name,void 0,o.text));break;case 185:var l=c;e.isRequireCall(l,!1)&&r.replaceNode(t,c,e.createPropertyAccess(e.getSynthesizedDeepClone(l),"default"))}}}}function r(t,n){t.forEachChild(function r(i){if(e.isPropertyAccessExpression(i)&&e.isExportsOrModuleExportsOrAlias(t,i.expression)){var a=i.parent;n(i,e.isBinaryExpression(a)&&a.left===i&&58===a.operatorToken.kind)}i.forEachChild(r)})}function i(n,r,i,p,y,h,v){switch(r.kind){case 212:return function(n,r,i,a,o,s){var u=r.declarationList,l=!1,p=e.flatMap(u.declarations,function(r){var p=r.name,g=r.initializer;return e.isExportsOrModuleExportsOrAlias(n,g)?(l=!0,[]):e.isRequireCall(g,!0)?(l=!0,function(n,r,i,a,o,s,u){switch(r.kind){case 178:var l=e.mapAllOrFail(r.elements,function(t){return t.dotDotDotToken||t.initializer||t.propertyName&&!e.isIdentifier(t.propertyName)||!e.isIdentifier(t.name)?void 0:f(t.propertyName&&t.propertyName.text,t.name.text)});if(l)return[d(void 0,l,i)];case 179:var _=c(t.moduleSpecifierToValidIdentifier(i,u),s);return[d(e.createIdentifier(_),void 0,i),m(void 0,e.getSynthesizedDeepClone(r),e.createIdentifier(_))];case 71:return function(t,n,r,i,a,o){for(var s=a.getSymbolAtLocation(n),u=e.createMap(),l=!1,_=0,p=o.original.get(n.text);_<p.length;_++){var f=p[_];if(a.getSymbolAtLocation(f)===s&&f!==n){var m=f.parent;if(e.isPropertyAccessExpression(m)){var g=m.name.text;e.Debug.assert(m.expression===f);var y=u.get(g);void 0===y&&(y=c(g,o),u.set(g,y)),i.replaceNode(t,m,e.createIdentifier(y))}else l=!0}}var h=0===u.size?void 0:e.arrayFrom(e.mapIterator(u.entries(),function(t){var n=t[0],r=t[1];return e.createImportSpecifier(n===r?void 0:e.createIdentifier(n),e.createIdentifier(r))}));return h||(l=!0),[d(l?e.getSynthesizedDeepClone(n):void 0,h,r)]}(n,r,i,a,o,s);default:e.Debug.assertNever(r)}}(n,p,g.arguments[0].text,i,a,o,s)):e.isPropertyAccessExpression(g)&&e.isRequireCall(g.expression,!0)?(l=!0,function(t,n,r,i){switch(t.kind){case 178:case 179:var a=c(n,i);return[_(a,n,r),m(void 0,t,e.createIdentifier(a))];case 71:return[_(t.text,n,r)];default:e.Debug.assertNever(t)}}(p,g.name.text,g.expression.arguments[0].text,o)):e.createVariableStatement(void 0,e.createVariableDeclarationList([r],u.flags))});l&&i.replaceNodeWithNodes(n,r,p)}(n,r,p,i,y,h),!1;case 214:var b=r.expression;switch(b.kind){case 185:return e.isRequireCall(b,!0)&&p.replaceNode(n,r,d(void 0,void 0,b.arguments[0].text)),!1;case 198:return 58===b.operatorToken.kind&&function(t,n,r,i,c,_,d){if(!e.isPropertyAccessExpression(i))return!1;if(e.isExportsOrModuleExportsOrAlias(t,i)){if(!e.isExportsOrModuleExportsOrAlias(t,c)){var p=e.isObjectLiteralExpression(c)?e.mapAllOrFail(c.properties,function(t){switch(t.kind){case 155:case 156:case 269:case 270:return;case 268:return e.isIdentifier(t.name)?s(t.name.text,t.initializer):void 0;case 153:return e.isIdentifier(t.name)?u(t.name.text,[e.createToken(84)],t):void 0;default:e.Debug.assertNever(t)}}):void 0,f=!1;return p||(p=(y=function(t,n){var r=[e.createToken(84),e.createToken(79)];switch(t.kind){case 190:case 191:return[[u(t.name&&t.name.text,r,t)],!0];case 203:return[[l(t.name&&t.name.text,r,t)],!0];case 185:if(e.isRequireCall(t,!0))return function(t,n){var r=t.text,i=n.getSymbolAtLocation(t),s=i?i.exports:e.emptyUnderscoreEscapedMap;return s.has("export=")?[[o(r)],!0]:s.has("default")?s.size>1?[[a(r),o(r)],!0]:[[o(r)],!0]:[[a(r)],!1]}(t.arguments[0],n);default:return[[e.createExportAssignment(void 0,void 0,!1,t)],!0]}}(c,n))[0],f=y[1]),_.replaceNodeWithNodes(t,r,p),f}_.deleteNode(t,r)}else e.isExportsOrModuleExportsOrAlias(t,i.expression)&&function(t,n,r,a,o,c){var u=i.name.text,l=c.get(u);if(void 0!==l){var _=[m(void 0,l,a),g([e.createExportSpecifier(l,u)])];o.replaceNodeWithNodes(t,n,_)}else o.replaceNode(t,n,s(u,a),{useNonAdjustedEndPosition:!0})}(t,r,0,c,_,d);return!1;var y}(n,i,r,b.left,b.right,p,v)}default:return!1}}function a(e){return g(void 0,e)}function o(t){return g([e.createExportSpecifier(void 0,"default")],t)}function s(t,n){var r=[e.createToken(84)];switch(n.kind){case 190:var i=n.name;if(i&&i.text!==t)return a();case 191:return u(t,r,n);case 203:return l(t,r,n);default:return a()}function a(){return m(r,e.createIdentifier(t),n)}}function c(e,t){for(;t.original.has(e)||t.additional.has(e);)e="_"+e;return t.additional.set(e,!0),e}function u(t,n,r){return e.createFunctionDeclaration(e.getSynthesizedDeepClones(r.decorators),e.concatenate(n,e.getSynthesizedDeepClones(r.modifiers)),e.getSynthesizedDeepClone(r.asteriskToken),t,e.getSynthesizedDeepClones(r.typeParameters),e.getSynthesizedDeepClones(r.parameters),e.getSynthesizedDeepClone(r.type),e.convertToFunctionBody(e.getSynthesizedDeepClone(r.body)))}function l(t,n,r){return e.createClassDeclaration(e.getSynthesizedDeepClones(r.decorators),e.concatenate(n,e.getSynthesizedDeepClones(r.modifiers)),t,e.getSynthesizedDeepClones(r.typeParameters),e.getSynthesizedDeepClones(r.heritageClauses),e.getSynthesizedDeepClones(r.members))}function _(t,n,r){return"default"===n?d(e.createIdentifier(t),void 0,r):d(void 0,[f(n,t)],r)}function d(t,n,r){return p(t,n,e.createLiteral(r))}function p(t,n,r){var i=(t||n)&&e.createImportClause(t,n&&e.createNamedImports(n));return e.createImportDeclaration(void 0,void 0,i,r)}function f(t,n){return e.createImportSpecifier(void 0!==t&&t!==n?e.createIdentifier(t):void 0,e.createIdentifier(n))}function m(t,n,r){return e.createVariableStatement(t,e.createVariableDeclarationList([e.createVariableDeclaration(n,void 0,r)],2))}function g(t,n){return e.createExportDeclaration(void 0,void 0,t&&e.createNamedExports(t),void 0===n?void 0:e.createLiteral(n))}t.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module.code],getCodeActions:function(t){var a=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_ES6_module),o=t.sourceFile,s=t.program;return[{description:a,changes:e.textChanges.ChangeTracker.with(t,function(t){if(function(t,n,a,o){var s,u,l={original:(s=t,u=e.createMultiMap(),s.forEachChild(function t(n){e.isIdentifier(n)&&function(e){var t=e.parent;switch(t.kind){case 183:return t.name!==e;case 180:return t.propertyName!==e;default:return!0}}(n)&&u.add(n.text,n),n.forEachChild(t)}),u),additional:e.createMap()},_=function(t,n,i){var a=e.createMap();return r(t,function(t){var r=t.name,o=r.text,s=r.originalKeywordKind;!a.has(o)&&(void 0!==s&&e.isNonContextualKeyword(s)||n.resolveName(t.name.text,t,67216319,!0))&&a.set(o,c("_"+o,i))}),a}(t,n,l);!function(t,n,i){r(t,function(r,a){if(!a){var o=r.name.text;i.replaceNode(t,r,e.createIdentifier(n.get(o)||o))}})}(t,_,a);for(var d=!1,p=0,f=t.statements;p<f.length;p++){var m=i(t,f[p],n,a,l,o,_);d=d||m}return d}(o,s.getTypeChecker(),t,s.getCompilerOptions().target))for(var a=0,u=s.getSourceFiles();a<u.length;a++)n(u[a],o,t)}),fixId:void 0}]}}),t.makeImportDeclaration=p}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n="correctQualifiedNameToIndexedAccessType",r=[e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code];function i(t,n){var r=e.findAncestor(e.getTokenAtPosition(t,n,!0),e.isQualifiedName);return e.Debug.assert(!!r,"Expected position to be owned by a qualified name."),e.isIdentifier(r.left)?r:void 0}function a(t,n,r){var i=r.right.text,a=e.createIndexedAccessTypeNode(e.createTypeReferenceNode(r.left,void 0),e.createLiteralTypeNode(e.createLiteral(i)));t.replaceNode(n,r,a)}t.registerCodeFix({errorCodes:r,getCodeActions:function(t){var r=i(t.sourceFile,t.span.start);if(r){var o=e.textChanges.ChangeTracker.with(t,function(e){return a(e,t.sourceFile,r)});return[{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Rewrite_as_the_indexed_access_type_0),[r.left.text+'["'+r.right.text+'"]']),changes:o,fixId:n}]}},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(e,t){var n=i(t.file,t.start);n&&a(e,t.file,n)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n=[e.Diagnostics.Class_0_incorrectly_implements_interface_1.code,e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],r="fixClassIncorrectlyImplementsInterface";function i(t,n){return e.Debug.assertDefined(e.getContainingClass(e.getTokenAtPosition(t,n,!1)))}function a(n,r,i,a,o){var s=n.getTypeAtLocation(r),c=n.getPropertiesOfType(s).filter(function(t){return!(8&e.getModifierFlags(t.valueDeclaration))}),u=n.getTypeAtLocation(a);function l(e,t){var r=n.getIndexInfoOfType(e,t);r&&o.insertNodeAtClassStart(i,a,n.indexInfoToIndexSignatureDeclaration(r,t,a))}n.getIndexTypeOfType(u,1)||l(s,1),n.getIndexTypeOfType(u,0)||l(s,0),t.createMissingMemberNodes(a,c,n,function(e){return o.insertNodeAtClassStart(i,a,e)})}t.registerCodeFix({errorCodes:n,getCodeActions:function(t){var n=t.program,o=t.sourceFile,s=i(o,t.span.start),c=n.getTypeChecker();return e.mapDefined(e.getClassImplementsHeritageClauseElements(s),function(n){var i=e.textChanges.ChangeTracker.with(t,function(e){return a(c,n,o,s,e)});if(0!==i.length)return{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Implement_interface_0),[n.getText()]),changes:i,fixId:r}})},fixIds:[r],getAllCodeActions:function(r){var o=e.createMap();return t.codeFixAll(r,n,function(t,n){var s=i(n.file,n.start);if(e.addToSeen(o,e.getNodeId(s)))for(var c=0,u=e.getClassImplementsHeritageClauseElements(s);c<u.length;c++){var l=u[c];a(r.program.getTypeChecker(),l,n.file,s,t)}})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n=[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],r="addMissingMember";function i(t,n,r){var i=e.getTokenAtPosition(t,n,!1);if(e.isIdentifier(i)){var a=function(t,n){var r=t.parent;if(e.isPropertyAccessExpression(r)){if(99===r.expression.kind){var i=e.getThisContainer(t,!1);if(!e.isClassElement(i))return;return e.isClassLike(a=i.parent)?{classDeclaration:a,makeStatic:e.hasModifier(i,32)}:void 0}var a,o=n.getTypeAtLocation(r.expression),s=o.symbol;if(s&&65536&o.flags&&32&s.flags)return{classDeclaration:a=e.cast(e.first(s.declarations),e.isClassLike),makeStatic:o!==n.getDeclaredTypeOfSymbol(s)}}}(i,r);if(a){var o=a.classDeclaration,s=a.makeStatic,c=o.getSourceFile();return{token:i,classDeclaration:o,makeStatic:s,classDeclarationSourceFile:c,inJs:e.isInJavaScriptFile(c),call:e.tryCast(i.parent.parent,e.isCallExpression)}}}}function a(t,n,r,i,a){if(a){if(203===r.kind)return;var s=r.name.getText(),c=o(e.createIdentifier(s),i);t.insertNodeAfter(n,r,c)}else{var u=e.getFirstConstructorWithBody(r);if(!u)return;var l=o(e.createThis(),i);t.insertNodeAtConstructorEnd(n,u,l)}}function o(t,n){return e.createStatement(e.createAssignment(e.createPropertyAccess(t,n),e.createIdentifier("undefined")))}function s(t,n,r){var i;if(198===r.parent.parent.kind){var a=r.parent.parent,o=t.getWidenedType(t.getBaseTypeOfLiteralType(t.getTypeAtLocation(r.parent===a.left?a.right:a.left)));i=t.typeToTypeNode(o,n)}return i||e.createKeywordTypeNode(119)}function c(t,n,r,i,a,o){var s=e.createProperty(void 0,o?[e.createToken(115)]:void 0,i,void 0,a,void 0);t.insertNodeAtClassStart(n,r,s)}function u(e,n,r,i,a,o,s){var c=t.createMethodFromCallExpression(a,i.text,s,o);e.insertNodeAtClassStart(n,r,c)}t.registerCodeFix({errorCodes:n,getCodeActions:function(t){var n=i(t.sourceFile,t.span.start,t.program.getTypeChecker());if(n){var o=n.classDeclaration,l=n.classDeclarationSourceFile,_=n.inJs,d=n.makeStatic,p=n.token,f=n.call,m=f&&function(t,n,i,a,o,s,c){return{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(s?e.Diagnostics.Declare_static_method_0:e.Diagnostics.Declare_method_0),[a.text]),changes:e.textChanges.ChangeTracker.with(t,function(e){return u(e,n,i,a,o,s,c)}),fixId:r}}(t,l,o,p,f,d,_),g=_?e.singleElementArray(function(t,n,i,o,s){var c=e.textChanges.ChangeTracker.with(t,function(e){return a(e,n,i,o,s)});return 0===c.length?void 0:{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(s?e.Diagnostics.Initialize_static_property_0:e.Diagnostics.Initialize_property_0_in_the_constructor),[o]),changes:c,fixId:r}}(t,l,o,p.text,d)):function(t,n,i,a,o){var u=s(t.program.getTypeChecker(),i,a),l=function(t,n,i,a,o,s){return{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(a?e.Diagnostics.Declare_static_property_0:e.Diagnostics.Declare_property_0),[o]),changes:e.textChanges.ChangeTracker.with(t,function(e){return c(e,n,i,o,s,a)}),fixId:r}}(t,n,i,o,a.text,u);return o?[l]:[l,function(t,n,r,i,a){var o=e.createKeywordTypeNode(137),s=e.createParameter(void 0,void 0,void 0,"x",void 0,o,void 0),c=e.createIndexSignature(void 0,void 0,[s],a),u=e.textChanges.ChangeTracker.with(t,function(e){return e.insertNodeAtClassStart(n,r,c)});return{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Add_index_signature_for_property_0),[i]),changes:u,fixId:void 0}}(t,n,i,a.text,u)]}(t,l,o,p,d);return e.concatenate(e.singleElementArray(m),g)}},fixIds:[r],getAllCodeActions:function(r){var o=e.createMap();return t.codeFixAll(r,n,function(t,n){var l=r.program,_=i(n.file,n.start,l.getTypeChecker());if(_){var d=_.classDeclaration,p=_.classDeclarationSourceFile,f=_.inJs,m=_.makeStatic,g=_.token,y=_.call;if(e.addToSeen(o,g.text))if(y)u(t,p,d,g,y,m,f);else if(f)a(t,p,d,g.text,m);else{var h=s(l.getTypeChecker(),d,g);c(t,p,d,g.text,h,m)}}})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n=[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];function r(t,n,r){var i,a=e.getTokenAtPosition(t,n,!1);if(e.isPropertyAccessExpression(a.parent)&&a.parent.name===a){e.Debug.assert(71===a.kind);var o=r.getTypeAtLocation(a.parent.expression);i=r.getSuggestionForNonexistentProperty(a,o)}else{var s=e.getMeaningFromLocation(a),c=e.getTextOfNode(a);e.Debug.assert(void 0!==c,"name should be defined"),i=r.getSuggestionForNonexistentSymbol(a,c,function(e){var t=0;return 4&e&&(t|=1920),2&e&&(t|=67901928),1&e&&(t|=67216319),t}(s))}return void 0===i?void 0:{node:a,suggestion:i}}function i(t,n,r,i){t.replaceNode(n,r,e.createIdentifier(i))}t.registerCodeFix({errorCodes:n,getCodeActions:function(t){var n=t.sourceFile,a=r(n,t.span.start,t.program.getTypeChecker());if(a){var o=a.node,s=a.suggestion,c=e.textChanges.ChangeTracker.with(t,function(e){return i(e,n,o,s)});return[{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Change_spelling_to_0),[s]),changes:c,fixId:"fixSpelling"}]}},fixIds:["fixSpelling"],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(t,n){var a=r(n.file,n.start,e.program.getTypeChecker());a&&i(t,e.sourceFile,a.node,a.suggestion)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n="fixCannotFindModule",r=[e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code];function i(t,n){return e.cast(e.getTokenAtPosition(t,n,!1),e.isStringLiteral).text}function a(e,t){return{type:"install package",file:e,packageName:t}}function o(t,n){var r=e.getPackageName(n).packageName;return t.isKnownTypesPackageName(r)?e.getTypesPackageName(r):void 0}t.registerCodeFix({errorCodes:r,getCodeActions:function(t){var r,s,u=(r=t.sourceFile.fileName,void 0===(s=o(t.host,i(t.sourceFile,t.span.start)))?void 0:{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Install_0),[s]),changes:[],commands:[a(r,s)]});return u&&[c({fixId:n},u)]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(t,n,r){var s=o(e.host,i(n.file,n.start));s&&r.push(a(n.file.fileName,s))})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n=[e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],r="fixClassDoesntImplementInheritedAbstractMember";function i(t,n){var r=e.getTokenAtPosition(t,n,!1);return e.cast(r.parent,e.isClassLike)}function a(n,r,i,a){var s=e.getClassExtendsHeritageClauseElement(n),c=i.getTypeAtLocation(s),u=i.getPropertiesOfType(c).filter(o);t.createMissingMemberNodes(n,u,i,function(e){return a.insertNodeAtClassStart(r,n,e)})}function o(t){var n=e.getModifierFlags(e.first(t.getDeclarations()));return!(8&n||!(128&n))}t.registerCodeFix({errorCodes:n,getCodeActions:function(t){var n=t.program,o=t.sourceFile,s=t.span,c=e.textChanges.ChangeTracker.with(t,function(e){return a(i(o,s.start),o,n.getTypeChecker(),e)});return 0===c.length?void 0:[{description:e.getLocaleSpecificMessage(e.Diagnostics.Implement_inherited_abstract_class),changes:c,fixId:r}]},fixIds:[r],getAllCodeActions:function(r){var o=e.createMap();return t.codeFixAll(r,n,function(t,n){var s=i(n.file,n.start);e.addToSeen(o,e.getNodeId(s))&&a(s,r.sourceFile,r.program.getTypeChecker(),t)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n="classSuperMustPrecedeThisAccess",r=[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];function i(e,t,n,r){e.insertNodeAtConstructorStart(t,n,r),e.deleteNode(t,r)}function a(t,n){var r=e.getTokenAtPosition(t,n,!1);if(99===r.kind){var i=e.getContainingFunction(r),a=o(i.body);return a&&!a.expression.arguments.some(function(t){return e.isPropertyAccessExpression(t)&&t.expression===r})?{constructor:i,superCall:a}:void 0}}function o(t){return e.isExpressionStatement(t)&&e.isSuperCall(t.expression)?t:e.isFunctionLike(t)?void 0:e.forEachChild(t,o)}t.registerCodeFix({errorCodes:r,getCodeActions:function(t){var r=t.sourceFile,o=a(r,t.span.start);if(o){var s=o.constructor,c=o.superCall,u=e.textChanges.ChangeTracker.with(t,function(e){return i(e,r,s,c)});return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Make_super_call_the_first_statement_in_the_constructor),changes:u,fixId:n}]}},fixIds:[n],getAllCodeActions:function(n){var o=n.sourceFile,s=e.createMap();return t.codeFixAll(n,r,function(t,n){var r=a(n.file,n.start);if(r){var c=r.constructor,u=r.superCall;e.addToSeen(s,e.getNodeId(c.parent))&&i(t,o,c,u)}})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n="constructorForDerivedNeedSuperCall",r=[e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code];function i(t,n){var r=e.getTokenAtPosition(t,n,!1);return e.Debug.assert(123===r.kind),r.parent}function a(t,n,r){var i=e.createStatement(e.createCall(e.createSuper(),void 0,e.emptyArray));t.insertNodeAtConstructorStart(n,r,i)}t.registerCodeFix({errorCodes:r,getCodeActions:function(t){var r=t.sourceFile,o=i(r,t.span.start),s=e.textChanges.ChangeTracker.with(t,function(e){return a(e,r,o)});return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Add_missing_super_call),changes:s,fixId:n}]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(t,n){return a(t,e.sourceFile,i(n.file,n.start))})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n="extendsInterfaceBecomesImplements",r=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function i(t,n){var r=e.getTokenAtPosition(t,n,!1),i=e.getContainingClass(r).heritageClauses,a=i[0].getFirstToken();return 85===a.kind?{extendsToken:a,heritageClauses:i}:void 0}function a(t,n,r,i){if(t.replaceNode(n,r,e.createToken(108),e.textChanges.useNonAdjustedPositions),2===i.length&&85===i[0].token&&108===i[1].token){var a=i[1].getFirstToken(),o=a.getFullStart();t.replaceRange(n,{pos:o,end:o},e.createToken(26));for(var s=n.text,c=a.end;c<s.length&&e.isWhiteSpaceSingleLine(s.charCodeAt(c));)c++;t.deleteRange(n,{pos:a.getStart(),end:c})}}t.registerCodeFix({errorCodes:r,getCodeActions:function(t){var r=t.sourceFile,o=i(r,t.span.start);if(o){var s=o.extendsToken,c=o.heritageClauses,u=e.textChanges.ChangeTracker.with(t,function(e){return a(e,r,s,c)});return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Change_extends_to_implements),changes:u,fixId:n}]}},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(e,t){var n=i(t.file,t.start);n&&a(e,t.file,n.extendsToken,n.heritageClauses)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n="forgottenThisPropertyAccess",r=[e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code];function i(t,n){var r=e.getTokenAtPosition(t,n,!1);return e.isIdentifier(r)?r:void 0}function a(t,n,r){r&&(e.suppressLeadingAndTrailingTrivia(r),t.replaceNode(n,r,e.createPropertyAccess(e.createThis(),r),e.textChanges.useNonAdjustedPositions))}t.registerCodeFix({errorCodes:r,getCodeActions:function(t){var r=t.sourceFile,o=i(r,t.span.start);if(o){var s=e.textChanges.ChangeTracker.with(t,function(e){return a(e,r,o)});return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Add_this_to_unresolved_variable),changes:s,fixId:n}]}},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(t,n){a(t,e.sourceFile,i(n.file,n.start))})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n="unusedIdentifier_prefix",r="unusedIdentifier_delete",i=[e.Diagnostics._0_is_declared_but_its_value_is_never_read.code,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code,e.Diagnostics.All_imports_in_import_declaration_are_unused.code];function a(t,n){var r=e.getTokenAtPosition(t,n,!1);return 91===r.kind?e.tryCast(r.parent,e.isImportDeclaration):void 0}function o(t,n,r,i){n!==e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&e.isIdentifier(i)&&s(i)&&t.replaceNode(r,i,e.createIdentifier("_"+i.text))}function s(e){switch(e.parent.kind){case 148:return!0;case 230:switch(e.parent.parent.parent.kind){case 220:case 219:return!0}}return!1}function c(t,n,r){switch(r.kind){case 71:!function(t,n,r){var i=r.parent;switch(i.kind){case 230:!function(t,n,r){switch(r.parent.parent.kind){case 218:var i=r.parent.parent.initializer;1===i.declarations.length?t.deleteNode(n,i):t.deleteNodeInList(n,r);break;case 220:var a=r.parent.parent;e.Debug.assert(231===a.initializer.kind),t.replaceNode(n,a.initializer.declarations[0],e.createObjectLiteral());break;case 219:case 228:break;default:var o=r.parent.parent;1===o.declarationList.declarations.length?t.deleteNode(n,o):t.deleteNodeInList(n,r)}}(t,n,i);break;case 147:var a=i.parent.typeParameters;if(1===a.length){var o=e.getTokenAtPosition(n,a.pos-1,!1),s=e.getTokenAtPosition(n,a.end,!1);e.Debug.assert(27===o.kind),e.Debug.assert(29===s.kind),t.deleteNodeRange(n,o,s)}else t.deleteNodeInList(n,i);break;case 148:var c=i.parent;if(e.isArrowFunction(c)&&1===c.parameters.length){var _=e.updateArrowFunction(c,c.modifiers,c.typeParameters,void 0,c.type,c.equalsGreaterThanToken,c.body);e.suppressLeadingAndTrailingTrivia(_),t.replaceNode(n,c,_,e.textChanges.useNonAdjustedPositions)}else t.deleteNodeInList(n,i);break;case 241:var d=e.getAncestor(r,241);t.deleteNode(n,d);break;case 246:var p=i.parent;1===p.elements.length?l(t,n,p):t.deleteNodeInList(n,i);break;case 243:var f=i;if(f.namedBindings){var m=f.name.getStart(n);if((s=e.getTokenAtPosition(n,f.name.end,!1))&&26===s.kind){var g=e.skipTrivia(n.text,s.end,!1,!0);t.deleteRange(n,{pos:m,end:g})}else t.deleteNode(n,f.name)}else t.deleteNode(n,e.getAncestor(f,242));break;case 244:l(t,n,i);break;default:u(t,n,r)}}(t,n,r);break;case 151:case 244:t.deleteNode(n,r.parent);break;default:u(t,n,r)}}function u(t,n,r){e.isDeclarationName(r)?t.deleteNode(n,r.parent):e.isLiteralComputedPropertyDeclarationName(r)&&t.deleteNode(n,r.parent.parent)}function l(t,n,r){if(r.parent.name){var i=e.getTokenAtPosition(n,r.pos-1,!1);i&&26===i.kind&&t.deleteRange(n,{pos:i.getStart(),end:r.end})}else{var a=e.getAncestor(r,242);t.deleteNode(n,a)}}t.registerCodeFix({errorCodes:i,getCodeActions:function(t){var i=t.errorCode,s=t.sourceFile,u=a(s,t.span.start);if(u)return[{description:p=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Remove_import_from_0),[e.showModuleSpecifier(u)]),changes:e.textChanges.ChangeTracker.with(t,function(e){return e.deleteNode(s,u)}),fixId:r}];var l=function(t,n){var r=e.findPrecedingToken(n,t);return 22===r.kind?e.findPrecedingToken(n-1,t):r}(s,e.textSpanEnd(t.span)),_=[],d=e.textChanges.ChangeTracker.with(t,function(e){return c(e,s,l)});if(d.length){var p=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Remove_declaration_for_Colon_0),[l.getText()]);_.push({description:p,changes:d,fixId:r})}var f=e.textChanges.ChangeTracker.with(t,function(e){return o(e,i,s,l)});return f.length&&(p=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Prefix_0_with_an_underscore),[l.getText()]),_.push({description:p,changes:f,fixId:n})),_},fixIds:[n,r],getAllCodeActions:function(u){return t.codeFixAll(u,i,function(t,i){var l=u.sourceFile,_=e.findPrecedingToken(e.textSpanEnd(i),i.file);switch(u.fixId){case n:e.isIdentifier(_)&&s(_)&&o(t,i.code,l,_);break;case r:var d=a(i.file,i.start);d?t.deleteNode(l,d):c(t,l,_);break;default:e.Debug.fail(JSON.stringify(u.fixId))}})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n=[e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code];function r(e,t,n,r,i){e.replaceNode(t,n,i.typeToTypeNode(r,n))}function i(t,n,r){var i=e.findAncestor(e.getTokenAtPosition(t,n,!1),a),o=i&&i.type;return o&&{typeNode:o,type:r.getTypeFromTypeNode(o)}}function a(e){switch(e.kind){case 206:case 157:case 158:case 232:case 155:case 159:case 176:case 153:case 152:case 148:case 151:case 150:case 156:case 235:case 188:case 230:return!0;default:return!1}}t.registerCodeFix({errorCodes:n,getCodeActions:function(t){var n=t.sourceFile,a=t.program.getTypeChecker(),o=i(n,t.span.start,a);if(o){var s=o.typeNode,c=o.type,u=s.getText(n),l=[_(c,"fixJSDocTypes_plain")];return 277===s.kind&&l.push(_(a.getNullableType(c,4096),"fixJSDocTypes_nullable")),l}function _(i,o){var c=a.typeToString(i);return{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Change_0_to_1),[u,c]),changes:e.textChanges.ChangeTracker.with(t,function(e){return r(e,n,s,i,a)}),fixId:o}}},fixIds:["fixJSDocTypes_plain","fixJSDocTypes_nullable"],getAllCodeActions:function(e){var a=e.fixId,o=e.sourceFile,s=e.program.getTypeChecker();return t.codeFixAll(e,n,function(e,t){var n=i(t.file,t.start,s);if(n){var c=n.typeNode,u=n.type,l=277===c.kind&&"fixJSDocTypes_nullable"===a?s.getNullableType(u,4096):u;r(e,o,c,l,s)}})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n="fixAwaitInSyncFunction",r=[e.Diagnostics.await_expression_is_only_allowed_within_an_async_function.code,e.Diagnostics.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator.code];function i(t,n){var r,i,a=e.getTokenAtPosition(t,n,!1),o=e.getContainingFunction(a);switch(o.kind){case 153:r=o.name;break;case 232:case 190:r=e.findChildOfKind(o,89,t);break;case 191:r=e.findChildOfKind(o,19,t)||e.first(o.parameters);break;default:return}return{insertBefore:r,returnType:(i=o,i.type?i.type:e.isVariableDeclaration(i.parent)&&i.parent.type&&e.isFunctionTypeNode(i.parent.type)?i.parent.type.type:void 0)}}function a(t,n,r){var i=r.insertBefore,a=r.returnType;if(a){var o=e.getEntityNameFromTypeNode(a);o&&71===o.kind&&"Promise"===o.text||t.replaceNode(n,a,e.createTypeReferenceNode("Promise",e.createNodeArray([a])))}t.insertModifierBefore(n,120,i)}t.registerCodeFix({errorCodes:r,getCodeActions:function(t){var r=t.sourceFile,o=i(r,t.span.start);if(o){var s=e.textChanges.ChangeTracker.with(t,function(e){return a(e,r,o)});return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Add_async_modifier_to_containing_function),changes:s,fixId:n}]}},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(t,n){var r=i(n.file,n.start);r&&a(t,e.sourceFile,r)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n,r=e.textChanges.ChangeTracker;function i(t,n,r){return{description:e.formatMessage.apply(void 0,[void 0,t].concat(n)),changes:r,fixId:void 0}}function a(t,n,r){var i=!!t.host.useCaseSensitiveFileNames&&t.host.useCaseSensitiveFileNames(),a=t.program,o=a.getTypeChecker();return{host:t.host,formatContext:t.formatContext,sourceFile:t.sourceFile,program:a,checker:o,compilerOptions:a.getCompilerOptions(),cachedImportDeclarations:[],getCanonicalFileName:e.createGetCanonicalFileName(i),symbolName:r,symbolToken:n}}function o(t,n){var a=e.flatMap(t,function(t){return function(r,i,a,o){var s=t.moduleSymbol,c=t.importKind,u=n.sourceFile.imports;void 0===o&&(o=[]);var l=e.getUniqueSymbolId(s,i),_=o[l];return _||(_=o[l]=e.mapDefined(u,function(t){var n=i.getSymbolAtLocation(t)===s?function(n){var r=t.parent;switch(r.kind){case 242:return r;case 252:return r.parent;case 248:case 185:return;default:e.Debug.fail()}}():void 0;return n&&{declaration:n,importKind:c}})),_}(0,n.checker,0,n.cachedImportDeclarations)});return(n.symbolToken&&e.isIdentifier(n.symbolToken)?e.mapDefined(a,function(t){var a=function(t){if(242===t.kind){var n=t.importClause&&e.isImportClause(t.importClause)&&t.importClause.namedBindings;return n&&244===n.kind?n.name:void 0}return t.name}(t.declaration);if(a){var o=n.checker.getAliasedSymbol(n.checker.getSymbolAtLocation(a));if(o&&o.exports.has(e.escapeLeadingUnderscores(n.symbolName)))return function(t,n,a){var o=n.symbolName,s=n.sourceFile,c=r.with(n,function(n){return n.replaceNode(s,a,e.createPropertyAccess(e.createIdentifier(t),a))});return i(e.Diagnostics.Change_0_to_1,[o,t+"."+o],c)}(a.text,n,n.symbolToken)}}):e.emptyArray).concat(function(t,n,a){var o=e.firstDefined(a,function(t){var a=t.declaration,o=t.importKind;if(242===a.kind&&a.importClause){var s=function(t,n,i){var a=t.symbolName,o=t.sourceFile,s=n.name,c=(241!==n.kind&&n).namedBindings;switch(i){case 1:return s?void 0:r.with(t,function(t){return t.replaceNode(o,n,e.createImportClause(e.createIdentifier(a),c))});case 0:var u=e.createImportSpecifier(void 0,e.createIdentifier(a));return c&&245===c.kind&&0!==c.elements.length?r.with(t,function(e){return e.insertNodeInListAfter(o,c.elements[c.elements.length-1],u)}):!c||245===c.kind&&0===c.elements.length?r.with(t,function(t){return t.replaceNode(o,n,e.createImportClause(s,e.createNamedImports([u])))}):void 0;case 2:return c?void 0:r.with(t,function(t){return t.replaceNode(o,n,e.createImportClause(s,e.createNamespaceImport(e.createIdentifier(a))))});case 3:return;default:e.Debug.assertNever(i)}}(n,e.isImportClause(a.importClause)&&a.importClause||void 0,o);if(s){var c=e.stripQuotes(a.moduleSpecifier.getText());return i(e.Diagnostics.Add_0_to_existing_import_declaration_from_1,[n.symbolName,c],s)}}});if(o)return[o];var c=e.firstDefined(a,f);return(c?[c]:s(n.program,n.sourceFile,t,n.compilerOptions,n.getCanonicalFileName,n.host)).map(function(t){return s=(o=t).moduleSpecifier,c=o.importKind,l=(a=n).symbolName,_=e.findLast((u=a.sourceFile).statements,e.isAnyImportSyntax),d=e.stripQuotes(s),p=function(t,n){var r=e.createLiteral(d),i=e.firstOrUndefined(t.imports);return r.singleQuote=!!i&&!e.isStringDoubleQuoted(i,t),r}(u),f=3!==c?e.createImportDeclaration(void 0,void 0,function(t,n){var r=e.createIdentifier(n);switch(t){case 1:return e.createImportClause(r,void 0);case 2:return e.createImportClause(void 0,e.createNamespaceImport(r));case 0:return e.createImportClause(void 0,e.createNamedImports([e.createImportSpecifier(void 0,r)]));default:e.Debug.assertNever(t)}}(c,l),p):e.createImportEqualsDeclaration(void 0,void 0,e.createIdentifier(l),e.createExternalModuleReference(p)),m=r.with(a,function(e){_?e.insertNodeAfter(u,_,f):e.insertNodeAtTopOfFile(u,f,!0)}),i(e.Diagnostics.Import_0_from_module_1,[l,d],m);var a,o,s,c,u,l,_,d,p,f,m})}(t,n,a))}function s(t,n,r,i,a,o){var s=i.baseUrl,f=i.paths,m=i.rootDirs,g=function(t){return e.firstDefined(t.imports,function(t){var n=t.text;return e.pathIsRelative(n)?e.fileExtensionIs(n,".js"):void 0})||!1}(n),y=e.flatMap(r,function(r){var y=r.moduleSymbol,h=r.importKind;return function(t,n){var r=y.valueDeclaration.getSourceFile().fileName,i=e.mapDefined(t.getSourceFiles(),function(t){return t.resolvedModules&&e.firstDefinedIterator(t.resolvedModules.values(),function(e){return e&&e.resolvedFileName===r?e.originalPath:void 0})});return 0===i.length?[r]:i}(t).map(function(t){var r=e.getDirectoryPath(n.fileName),h=function(t){var n=t.valueDeclaration;if(e.isModuleDeclaration(n)&&e.isStringLiteral(n.name))return n.name.text}(y)||function(t,n,r,i,a){var o=e.getEffectiveTypeRoots(t,n);return e.firstDefined(o,function(n){var o=e.toPath(n,void 0,r);if(e.startsWith(i,o))return l(i.substring(o.length+1),t,a)})}(i,o,a,t,g)||function(t,n,r,i,a){if(e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.NodeJs){var o=function(e){var t,n=0,r=0,i=0;!function(e){e[e.BeforeNodeModules=0]="BeforeNodeModules",e[e.NodeModules=1]="NodeModules",e[e.Scope=2]="Scope",e[e.PackageContent=3]="PackageContent"}(t||(t={}));for(var a=0,o=0,s=0;o>=0;)switch(o=e.indexOf("/",(a=o)+1),s){case 0:e.indexOf("/node_modules/",a)===a&&(n=a,r=o,s=1);break;case 1:case 2:1===s&&"@"===e.charAt(a+1)?s=2:(i=o,s=3);break;case 3:s=e.indexOf("/node_modules/",a)===a?1:3}return s>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:a}:void 0}(n);if(o){var s,c,u=function(t){var n=t.substring(0,o.packageRootIndex),a=e.combinePaths(n,"package.json");if(r.fileExists(a)){var s=JSON.parse(r.readFile(a));if(s){var c=s.typings||s.types||s.main;if(c&&e.toPath(c,n,i)===i(t))return n}}var u=e.removeFileExtension(t);return"/index"===i(u.substring(o.fileNameIndex))?u.substring(0,o.fileNameIndex):u}(n);return c=(s=u).substring(0,o.topLevelNodeModulesIndex),u=0===a.indexOf(c)?s.substring(o.topLevelPackageNameIndex+1):p(s,a,i),e.getPackageNameFromAtTypesDirectory(u)}}}(i,t,o,a,r)||m&&function(t,n,r,i){var a=u(n,t,i);if(void 0!==a){var o=u(r,t,i),s=void 0!==o?p(a,o,i):a;return e.removeFileExtension(s)}}(m,t,r,a);if(h)return[h];var v=l(p(t,r,a),i,g);if(!s)return[v];var b=_(t,s,a);if(!b)return[v];var x=l(b,i,g);if(f){var k=function(t,n,r){for(var i in r)for(var a=0,o=r[i];a<o.length;a++){var s=e.removeFileExtension(e.normalizePath(o[a])),c=s.indexOf("*");if(0!==c||1!==s.length)if(-1!==c){var u=s.substr(0,c),l=s.substr(c+1);if(n.length>=u.length+l.length&&e.startsWith(n,u)&&e.endsWith(n,l)){var _=n.substr(u.length,n.length-l.length);return i.replace("*",_)}}else if(s===n||s===t)return i}}(e.removeFileExtension(b),x,f);if(k)return[k]}if(d(b))return[v];var S=p(s,r,a);return c(v)<c(S)?[v,x]:[x,v]}).map(function(e){return e.map(function(e){return{moduleSpecifier:e,importKind:h}})})});return e.flatten(y.sort(function(t,n){return e.first(t).moduleSpecifier.length-e.first(n).moduleSpecifier.length}))}function c(e){for(var t=0,n=0;n+3<=e.length&&"../"===e.slice(n,n+3);n+=3)t++;return t}function u(t,n,r){return e.firstDefined(n,function(e){var n=_(t,e,r);return d(n)?void 0:n})}function l(t,n,r){var i=e.removeFileExtension(t);return r?i+".js":e.getEmitModuleResolutionKind(n)===e.ModuleResolutionKind.NodeJs?e.removeSuffix(i,"/index"):i}function _(t,n,r){var i=e.getRelativePathToDirectoryOrUrl(n,t,n,r,!1);return e.isRootedDiskPath(i)?void 0:i}function d(t){return e.startsWith(t,"..")}function p(t,n,r){var i=e.getRelativePathToDirectoryOrUrl(n,t,n,r,!1);return e.pathIsRelative(i)?i:"./"+i}function f(t){var n=t.declaration,r=t.importKind,i=242===n.kind?n.moduleSpecifier:252===n.moduleReference.kind?n.moduleReference.expression:void 0;return i&&e.isStringLiteral(i)?{moduleSpecifier:i.text,importKind:r}:void 0}function m(t,n){return e.some(t.declarations,function(t){return!!(e.getMeaningFromDeclaration(t)&n)})}function g(t,n,r,i){y(t,r,function(t,r){var a,o;(void 0===r||r!==n&&(a=n.fileName,void 0===(o=e.forEachAncestorDirectory(r.fileName,function(t){return"node_modules"===e.getBaseFileName(t)?t:void 0}))||e.startsWith(a,e.getDirectoryPath(o))))&&i(t)})}function y(t,n,r){for(var i=0,a=t.getAmbientModules();i<a.length;i++)r(a[i],void 0);for(var o=0,s=n;o<s.length;o++){var c=s[o];e.isExternalOrCommonJsModule(c)&&r(c.symbol,c)}}function h(t,n){return v(e.removeFileExtension(e.getBaseFileName(t.name)),n)}function v(t,n){var r="",i=!0,a=t.charCodeAt(0);e.isIdentifierStart(a,n)?r+=String.fromCharCode(a):i=!1;for(var o=1;o<t.length;o++){var s=t.charCodeAt(o),c=e.isIdentifierPart(s,n);if(c){var u=String.fromCharCode(s);i||(u=u.toUpperCase()),r+=u}i=c}return e.isStringANonContextualKeyword(r)?"_"+r:r||"_"}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:function(t){return t.errorCode===e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code?function(t){var n,r=e.getTokenAtPosition(t.sourceFile,t.span.start,!1),i=t.program.getTypeChecker();if(e.isIdentifier(r)&&(n=i.getSymbolAtLocation(r)),!e.isUMDExportSymbol(n)){var s=r.parent,c=e.isJsxOpeningLikeElement(s);(e.isJsxOpeningLikeElement&&s.tagName===r||258===s.kind)&&(n=i.resolveName(i.getJsxNamespace(s),c?s.tagName:s,67216319,!1))}if(e.isUMDExportSymbol(n)){var u=i.getAliasedSymbol(n);if(u)return o([{moduleSymbol:u,importKind:function(t){if(e.getAllowSyntheticDefaultImports(t))return 1;var n=e.getEmitModuleKind(t);switch(n){case e.ModuleKind.AMD:case e.ModuleKind.CommonJS:case e.ModuleKind.UMD:return 3;case e.ModuleKind.System:case e.ModuleKind.ES2015:case e.ModuleKind.ESNext:case e.ModuleKind.None:return 2;default:return e.Debug.assertNever(n)}}(t.program.getCompilerOptions())}],a(t,r,n.name))}}(t):function(t){var n=t.sourceFile,r=t.span,i=t.program,s=t.cancellationToken,c=i.getTypeChecker(),u=e.getTokenAtPosition(n,r.start,!1),l=e.isJsxOpeningLikeElement(u.parent)&&u.parent.tagName===u;if(l||e.isIdentifier(u)){var _=l?c.getJsxNamespace():u.text,d=i.getSourceFiles(),p=i.getCompilerOptions();e.Debug.assert("default"!==_);var f=e.getMeaningFromLocation(u),y=e.createMultiMap();return g(c,n,d,function(t){s.throwIfCancellationRequested();var n=c.tryGetMemberInModuleExports("default",t);if(n){var r=e.getLocalSymbolForExportDefault(n);(r&&r.escapedName===_||e.firstDefined(n.declarations,function(t){if(e.isExportAssignment(t)){if(e.isIdentifier(t.expression))return t.expression.escapedText}else if(e.isExportSpecifier(t)&&(e.Debug.assert("default"===t.name.escapedText),t.propertyName))return t.propertyName.escapedText})===_||h(t,p.target)===_)&&m(r||n,f)&&v(t,r||n,1)}var i=c.tryGetMemberInModuleExportsAndProperties(_,t);i&&m(i,f)&&v(t,i,0)}),e.arrayFrom(e.flatMapIterator(y.values(),function(e){return o(e,a(t,u,_))}))}function v(t,n,r){y.add(e.getUniqueSymbolId(n,c).toString(),{moduleSymbol:t,importKind:r})}}(t)},fixIds:[],getAllCodeActions:e.notImplemented}),function(e){e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.Equals=3]="Equals"}(n||(n={})),t.getImportCompletionAction=function(t,n,r,i,a,c,u,l,_,d,p,f){var m=function(t,n,r){var i=[];return y(n,r,function(r){for(var a=0,o=n.getExportsOfModule(r);a<o.length;a++){var s=o[a];if(e.skipAlias(s,n)===t){var c=n.tryGetMemberInModuleExports("default",r)===s;i.push({moduleSymbol:r,importKind:c?1:0})}}}),i}(t,u,_);return e.Debug.assert(m.some(function(e){return e.moduleSymbol===n})),{moduleSpecifier:e.first(s(c,r,m,l,p,a)).moduleSpecifier,codeAction:e.first(o(m,{host:a,program:c,checker:u,compilerOptions:l,sourceFile:r,formatContext:d,symbolName:i,getCanonicalFileName:p,symbolToken:f}))}},t.forEachExternalModuleToImportFrom=g,t.moduleSymbolToValidIdentifier=h,t.moduleSpecifierToValidIdentifier=v}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n="disableJsDiagnostics",r=e.mapDefined(Object.keys(e.Diagnostics),function(t){var n=e.Diagnostics[t];return n.category===e.DiagnosticCategory.Error?n.code:void 0});function i(t,n){return!e.isInComment(t,n)&&!e.isInString(t,n)&&!e.isInTemplateString(t,n)}function a(t,n,r,a){var o=e.getLineAndCharacterOfPosition(n,r).line;if(!a||e.addToSeen(a,o)){var s=e.getStartPositionOfLine(o,n),c=e.getFirstNonSpaceCharacterPosition(n.text,s),u=i(n,c),l=e.getTouchingToken(n,u?c:r,!1),_=e.setStartsOnNewLine(e.getSynthesizedDeepClone(l),!0);e.addSyntheticLeadingComment(_,2," @ts-ignore"),t.replaceNode(n,l,_,{preserveLeadingWhitespace:!0,prefix:u?void 0:t.newLineCharacter})}}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.program,c=r.span,u=r.host,l=r.formatContext;if(e.isInJavaScriptFile(o)&&e.isCheckJsEnabledForFile(o,s.getCompilerOptions())){var _=[{description:e.getLocaleSpecificMessage(e.Diagnostics.Disable_checking_for_this_file),changes:[t.createFileTextChanges(o.fileName,[e.createTextChange(o.checkJsDirective?e.createTextSpanFromBounds(o.checkJsDirective.pos,o.checkJsDirective.end):e.createTextSpan(0,0),"// @ts-nocheck"+e.getNewLineOrDefaultFromHost(u,l.options))])],fixId:void 0}];return i(o,c.start)&&_.unshift({description:e.getLocaleSpecificMessage(e.Diagnostics.Ignore_this_error_message),changes:e.textChanges.ChangeTracker.with(r,function(e){return a(e,o,c.start)}),fixId:n}),_}},fixIds:[n],getAllCodeActions:function(n){var o=e.createMap();return t.codeFixAll(n,r,function(e,t){i(t.file,t.start)&&a(e,t.file,t.start,o)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){function n(t,n,a,o){var s,c=t.getDeclarations();if(c&&c.length){var u,l=c[0],_=e.getSynthesizedDeepClone(e.getNameOfDeclaration(l)),d=4&(s=e.getModifierFlags(l))?e.createToken(114):16&s?e.createToken(113):void 0,p=d?e.createNodeArray([d]):void 0,f=a.getWidenedType(a.getTypeOfSymbolAtLocation(t,n)),m=!!(16777216&t.flags);switch(l.kind){case 155:case 156:case 150:case 151:var g=a.typeToTypeNode(f,n);o(e.createProperty(void 0,p,_,m?e.createToken(55):void 0,g,void 0));break;case 152:case 153:var y=a.getSignaturesOfType(f,0);if(!e.some(y))break;if(1===c.length){e.Debug.assert(1===y.length),b(y[0],p,_,i());break}for(var h=0,v=y;h<v.length;h++)b(v[h],(u=p)&&e.createNodeArray(u.map(e.getSynthesizedDeepClone)),e.getSynthesizedDeepClone(_));c.length>y.length?b(a.getSignatureFromDeclaration(c[c.length-1]),p,_,i()):(e.Debug.assert(c.length===y.length),o(function(t,n,a,o){for(var s=t[0],c=t[0].minArgumentCount,u=!1,l=0,_=t;l<_.length;l++){var d=_[l];c=Math.min(d.minArgumentCount,c),d.hasRestParameter&&(u=!0),d.parameters.length>=s.parameters.length&&(!d.hasRestParameter||s.hasRestParameter)&&(s=d)}var p=s.parameters.length-(s.hasRestParameter?1:0),f=s.parameters.map(function(e){return e.name}),m=r(p,f,c,!1);if(u){var g=e.createArrayTypeNode(e.createKeywordTypeNode(119)),y=e.createParameter(void 0,void 0,e.createToken(24),f[p]||"rest",p>=c?e.createToken(55):void 0,g,void 0);m.push(y)}return function(t,n,r,a,o,s){return e.createMethod(void 0,t,void 0,n,r?e.createToken(55):void 0,void 0,o,void 0,i())}(o,n,a,0,m)}(y,_,m,p)))}}function b(t,r,i,s){var c=function(t,n,r,i,a,o,s){var c=t.signatureToSignatureDeclaration(n,153,r,256);if(c)return c.decorators=void 0,c.modifiers=i,c.name=a,c.questionToken=o?e.createToken(55):void 0,c.body=s,c}(a,t,n,r,i,m,s);c&&o(c)}}function r(t,n,r,i){for(var a=[],o=0;o<t;o++){var s=e.createParameter(void 0,void 0,void 0,n&&n[o]||"arg"+o,void 0!==r&&o>=r?e.createToken(55):void 0,i?void 0:e.createKeywordTypeNode(119),void 0);a.push(s)}return a}function i(){return e.createBlock([e.createThrow(e.createNew(e.createIdentifier("Error"),void 0,[e.createLiteral("Method not implemented.")]))],!0)}t.createMissingMemberNodes=function(e,t,r,i){for(var a=e.symbol.members,o=0,s=t;o<s.length;o++){var c=s[o];a.has(c.escapedName)||n(c,e,r,i)}},t.createMethodFromCallExpression=function(t,n,a,o){var s=t.typeArguments,c=t.arguments;return e.createMethod(void 0,o?[e.createToken(115)]:void 0,void 0,n,void 0,a?void 0:e.map(s,function(t,n){return e.createTypeParameterDeclaration(84+s.length-1<=90?String.fromCharCode(84+n):"T"+n)}),r(c.length,void 0,void 0,a),a?void 0:e.createKeywordTypeNode(119),i())}}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n,r=[e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,e.Diagnostics.Member_0_implicitly_has_an_1_type.code];function i(t,r,i,l,_,d,p){if(function(e){switch(i.kind){case 71:case 24:case 114:case 112:case 113:case 132:return!0;default:return!1}}()){switch(l){case e.Diagnostics.Member_0_implicitly_has_an_1_type.code:case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:return a(t,r,i.parent,_,d),i.parent;case e.Diagnostics.Variable_0_implicitly_has_an_1_type.code:var f=_.getTypeChecker().getSymbolAtLocation(i);if(f&&f.valueDeclaration)return a(t,r,f.valueDeclaration,_,d),f.valueDeclaration}var m=e.getContainingFunction(i);if(void 0!==m)switch(l){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(e.isSetAccessor(m))return o(t,r,m,_,d),m;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:if(!p||e.addToSeen(p,e.getNodeId(m))){var g=e.cast(i.parent,e.isParameter);return function(t,r,i,a,o,l){if(e.isIdentifier(g.name)&&function(e){switch(e.kind){case 232:case 153:case 154:return!0;case 190:return!!e.name}return!1}(i)){var _=function(t,r,i,a){switch(t.kind){case 154:case 190:case 232:case 153:var o=154===t.kind?e.findChildOfKind(t,123,r):t.name;if(o)return n.inferTypeForParametersFromReferences(c(o,i,a),t,i.getTypeChecker(),a)}}(i,a,o,l)||i.parameters.map(function(t){return e.isIdentifier(t.name)?u(t.name,o,l):void 0});_&&i.parameters.length===_.length&&e.zipWith(i.parameters,_,function(e,n){e.type||e.initializer||s(t,a,e,n,o)})}}(t,0,m,r,_,d),g}return;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:return e.isGetAccessor(m)&&e.isIdentifier(m.name)?(s(t,r,m,u(m.name,_,d),_),m):void 0;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:return e.isSetAccessor(m)?(o(t,r,m,_,d),m):void 0;default:return e.Debug.fail(String(l))}}}function a(t,n,r,i,a){e.isIdentifier(r.name)&&s(t,n,r,u(r.name,i,a),i)}function o(t,n,r,i,a){var o=e.firstOrUndefined(r.parameters);o&&e.isIdentifier(r.name)&&e.isIdentifier(o.name)&&s(t,n,o,u(r.name,i,a)||u(o.name,i,a),i)}function s(e,t,n,r,i){var a=r&&function(e,t,n){var r=!0,i=function(){r=!1},a=n.typeToTypeNode(e,t,void 0,{trackSymbol:function(e,t,i){r=r&&0===n.isSymbolAccessible(e,t,i,!1).accessibility},reportInaccessibleThisError:i,reportPrivateInBaseOfClassExpression:i,reportInaccessibleUniqueSymbolError:i});return r?a:void 0}(r,n,i.getTypeChecker());a&&e.insertTypeAnnotation(t,n,a)}function c(t,n,r){return e.mapDefined(e.FindAllReferences.getReferenceEntriesForNode(-1,t,n,n.getSourceFiles(),r),function(t){return"node"===t.type?e.tryCast(t.node,e.isIdentifier):void 0})}function u(e,t,r){return n.inferTypeFromReferences(c(e,t,r),t.getTypeChecker(),r)}t.registerCodeFix({errorCodes:r,getCodeActions:function(t){var n=t.sourceFile,r=t.program,a=t.span.start,o=t.errorCode,s=t.cancellationToken;if(!e.isSourceFileJavaScript(n)){var c,u=e.getTokenAtPosition(n,a,!1),l=e.textChanges.ChangeTracker.with(t,function(e){c=i(e,n,u,o,r,s)});if(0!==l.length){var _=e.getNameOfDeclaration(c).getText();return[{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(function(t,n){switch(t){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:return e.isSetAccessor(e.getContainingFunction(n))?e.Diagnostics.Infer_type_of_0_from_usage:e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:return e.Diagnostics.Infer_parameter_types_from_usage;default:return e.Diagnostics.Infer_type_of_0_from_usage}}(o,u)),[_]),changes:l,fixId:"inferFromUsage"}]}}},fixIds:["inferFromUsage"],getAllCodeActions:function(n){var a=n.sourceFile,o=n.program,s=n.cancellationToken,c=e.createMap();return t.codeFixAll(n,r,function(t,n){i(t,a,e.getTokenAtPosition(n.file,n.start,!1),n.code,o,s,c)})}}),function(t){function n(t,i,a){for(;e.isRightSideOfQualifiedNameOrPropertyAccess(t);)t=t.parent;switch(t.parent.kind){case 197:a.isNumber=!0;break;case 196:!function(e,t){switch(e.operator){case 43:case 44:case 38:case 52:t.isNumber=!0;break;case 37:t.isNumberOrString=!0}}(t.parent,a);break;case 198:!function(t,n,r,i){switch(n.operatorToken.kind){case 40:case 39:case 41:case 42:case 45:case 46:case 47:case 48:case 49:case 50:case 60:case 62:case 61:case 63:case 64:case 68:case 69:case 70:case 65:case 67:case 66:case 38:case 27:case 30:case 29:case 31:var a=r.getTypeAtLocation(n.left===t?n.right:n.left);272&a.flags?s(i,a):i.isNumber=!0;break;case 59:case 37:var o=r.getTypeAtLocation(n.left===t?n.right:n.left);272&o.flags?s(i,o):84&o.flags?i.isNumber=!0:524322&o.flags?i.isString=!0:i.isNumberOrString=!0;break;case 58:case 32:case 34:case 35:case 33:s(i,r.getTypeAtLocation(n.left===t?n.right:n.left));break;case 92:t===n.left&&(i.isString=!0);break;case 54:t!==n.left||230!==t.parent.parent.kind&&!e.isAssignmentExpression(t.parent.parent,!0)||s(i,r.getTypeAtLocation(n.right))}}(t,t.parent,i,a);break;case 264:case 265:!function(e,n,r){s(r,n.getTypeAtLocation(t.parent.parent.parent.expression))}(0,i,a);break;case 185:case 186:t.parent.expression===t?function(e,t,r){var i={argumentTypes:[],returnType:{}};if(e.arguments)for(var a=0,o=e.arguments;a<o.length;a++)i.argumentTypes.push(t.getTypeAtLocation(o[a]));n(e,t,i.returnType),185===e.kind?(r.callContexts||(r.callContexts=[])).push(i):(r.constructContexts||(r.constructContexts=[])).push(i)}(t.parent,i,a):r(t,i,a);break;case 183:!function(t,r,i){var a=e.escapeLeadingUnderscores(t.name.text);i.properties||(i.properties=e.createUnderscoreEscapedMap());var o=i.properties.get(a)||{};n(t,r,o),i.properties.set(a,o)}(t.parent,i,a);break;case 184:!function(e,t,r,i){if(t!==e.argumentExpression){var a=r.getTypeAtLocation(e),o={};n(e,r,o),84&a.flags?i.numberIndexContext=o:i.stringIndexContext=o}else i.isNumberOrString=!0}(t.parent,t,i,a);break;default:return r(t,i,a)}}function r(t,n,r){e.isExpressionNode(t)&&s(r,n.getContextualType(t))}function i(t,n){if(t.isNumberOrString&&!t.isNumber&&!t.isString)return n.getUnionType([n.getNumberType(),n.getStringType()]);if(t.isNumber)return n.getNumberType();if(t.isString)return n.getStringType();if(t.candidateTypes)return n.getWidenedType(n.getUnionType(e.map(t.candidateTypes,function(e){return n.getBaseTypeOfLiteralType(e)}),2));if(t.properties&&c(t.properties.get("then"))){var r=a(0,t.properties.get("then").callContexts,!1,n).getCallSignatures().map(function(e){return e.getReturnType()});return n.createPromiseType(r.length?n.getUnionType(r,2):n.getAnyType())}if(t.properties&&c(t.properties.get("push")))return n.createArrayType(a(0,t.properties.get("push").callContexts,!1,n));if(t.properties||t.callContexts||t.constructContexts||t.numberIndexContext||t.stringIndexContext){var s=e.createUnderscoreEscapedMap(),u=[],l=[],_=void 0,d=void 0;if(t.properties&&t.properties.forEach(function(e,t){var r=n.createSymbol(4,t);r.type=i(e,n)||n.getAnyType(),s.set(t,r)}),t.callContexts)for(var p=0,f=t.callContexts;p<f.length;p++)u.push(o(f[p],n));if(t.constructContexts)for(var m=0,g=t.constructContexts;m<g.length;m++)l.push(o(g[m],n));return t.numberIndexContext&&(d=n.createIndexInfo(i(t.numberIndexContext,n),!1)),t.stringIndexContext&&(_=n.createIndexInfo(i(t.stringIndexContext,n),!1)),n.createAnonymousType(void 0,s,u,l,_,d)}}function a(t,n,r,i){var a=[];if(n)for(var o=0,s=n;o<s.length;o++){var c=s[o];c.argumentTypes.length>t&&(r?a=e.concatenate(a,e.map(c.argumentTypes.slice(t),function(e){return i.getBaseTypeOfLiteralType(e)})):a.push(i.getBaseTypeOfLiteralType(c.argumentTypes[t])))}if(a.length){var u=i.getWidenedType(i.getUnionType(a,2));return r?i.createArrayType(u):u}}function o(t,n){for(var r=[],a=0;a<t.argumentTypes.length;a++){var o=n.createSymbol(1,e.escapeLeadingUnderscores("arg"+a));o.type=n.getWidenedType(n.getBaseTypeOfLiteralType(t.argumentTypes[a])),r.push(o)}var s=i(t.returnType,n)||n.getVoidType();return n.createSignature(void 0,void 0,void 0,r,s,void 0,t.argumentTypes.length,!1,!1)}function s(e,t){!t||1&t.flags||16384&t.flags||(e.candidateTypes||(e.candidateTypes=[])).push(t)}function c(e){return e&&e.callContexts}t.inferTypeFromReferences=function(e,t,r){for(var a={},o=0,s=e;o<s.length;o++){var c=s[o];r.throwIfCancellationRequested(),n(c,t,a)}return i(a,t)},t.inferTypeForParametersFromReferences=function(t,r,i,a){if(0!==t.length&&r.parameters){for(var o={},s=0,c=t;s<c.length;s++){var u=c[s];a.throwIfCancellationRequested(),n(u,i,o)}var l=154===r.kind?o.constructContexts:o.callContexts;return l&&r.parameters.map(function(t,n){for(var r=[],a=e.isRestParameter(t),o=0,s=l;o<s.length;o++){var c=s[o];if(!(c.argumentTypes.length<=n))if(a)for(var u=n;u<c.argumentTypes.length;u++)r.push(i.getBaseTypeOfLiteralType(c.argumentTypes[u]));else r.push(i.getBaseTypeOfLiteralType(c.argumentTypes[n]))}if(r.length){var _=i.getWidenedType(i.getUnionType(r,2));return a?i.createArrayType(_):_}})}}}(n||(n={}))}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){function n(n,i){var a=e.getSourceFileOfNode(i),o=e.getNamespaceDeclarationNode(i),s=n.program.getCompilerOptions(),c=[];return c.push(r(n,a,i,t.makeImportDeclaration(o.name,void 0,i.moduleSpecifier))),e.getEmitModuleKind(s)===e.ModuleKind.CommonJS&&c.push(r(n,a,i,e.createImportEqualsDeclaration(void 0,void 0,o.name,e.createExternalModuleReference(i.moduleSpecifier)))),c}function r(t,n,r,i){var a=e.textChanges.ChangeTracker.with(t,function(e){return e.replaceRange(n,{pos:r.getStart(),end:r.end},i)});return{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Replace_import_with_0),[a[0].textChanges[0].newText]),changes:a}}t.registerCodeFix({errorCodes:[e.Diagnostics.A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime.code],getCodeActions:function(t){var r=e.getTokenAtPosition(t.sourceFile,t.span.start,!1).parent;return e.isImportDeclaration(r)?n(t,r):[]}}),t.registerCodeFix({errorCodes:[e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures.code,e.Diagnostics.Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature.code],getCodeActions:function(t){var r=t.sourceFile,i=e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures.code===t.errorCode?185:186,a=e.findAncestor(e.getTokenAtPosition(r,t.span.start,!1),function(e){return e.kind===i&&e.getStart()===t.span.start&&e.getEnd()===t.span.start+t.span.length});if(!a)return[];var o=a.expression,s=t.program.getTypeChecker().getTypeAtLocation(o);if(!s.symbol||!s.symbol.originatingImport)return[];var c=[],u=s.symbol.originatingImport;return e.isImportCall(u)||e.addRange(c,n(t,u)),c.push({description:e.getLocaleSpecificMessage(e.Diagnostics.Use_synthetic_default_member),changes:e.textChanges.ChangeTracker.with(t,function(t){return t.replaceNode(r,o,e.createPropertyAccess(o,"default"),{})})}),c}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n=[e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];function r(t,n){var r=e.getTokenAtPosition(t,n,!1);return e.isIdentifier(r)?e.cast(r.parent,e.isPropertyDeclaration):void 0}function i(t,n,r,i){var a=e.updateProperty(r,r.decorators,r.modifiers,r.name,e.createToken(51),r.type,r.initializer);t.replaceNode(n,r,a,{suffix:i})}function a(t,n,r){var i=e.createKeywordTypeNode(140),a=e.isUnionTypeNode(r.type)?r.type.types.concat(i):[r.type,i];t.replaceNode(n,r.type,e.createUnionTypeNode(a))}function o(t,n,r,i,a){var o=e.updateProperty(r,r.decorators,r.modifiers,r.name,r.questionToken,r.type,i);t.replaceNode(n,r,o,{suffix:a})}function s(t,n){return function t(n,r){if(2&r.flags)return e.createLiteral("");if(4&r.flags)return e.createNumericLiteral("0");if(8&r.flags)return e.createFalse();if(224&r.flags)return e.createLiteral(r.value);if(131072&r.flags)return e.firstDefined(r.types,function(e){return t(n,e)});if(1&e.getObjectFlags(r)){var i=e.getClassLikeDeclarationOfSymbol(r.symbol);if(!i||e.hasModifier(i,128))return;var a=e.find(i.members,function(t){return e.isConstructorDeclaration(t)&&!!t.body});if(a&&a.parameters.length)return;return e.createNew(e.createIdentifier(r.symbol.name),void 0,void 0)}}(t,t.getTypeFromTypeNode(n.type))}t.registerCodeFix({errorCodes:n,getCodeActions:function(t){var n=r(t.sourceFile,t.span.start);if(n){var c=e.getNewLineOrDefaultFromHost(t.host,t.formatContext.options),u=[function(t,n){return{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Add_undefined_type_to_property_0),[n.name.getText()]),changes:e.textChanges.ChangeTracker.with(t,function(e){return a(e,t.sourceFile,n)}),fixId:"addMissingPropertyUndefinedType"}}(t,n),function(t,n,r){return{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Add_definite_assignment_assertion_to_property_0),[n.getText()]),changes:e.textChanges.ChangeTracker.with(t,function(e){return i(e,t.sourceFile,n,r)}),fixId:"addMissingPropertyDefiniteAssignmentAssertions"}}(t,n,c)];return e.append(u,function(t,n,r){var i=s(t.program.getTypeChecker(),n);if(i)return{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Add_initializer_to_property_0),[n.name.getText()]),changes:e.textChanges.ChangeTracker.with(t,function(e){return o(e,t.sourceFile,n,i,r)}),fixId:"addMissingPropertyInitializer"}}(t,n,c)),u}},fixIds:["addMissingPropertyDefiniteAssignmentAssertions","addMissingPropertyUndefinedType","addMissingPropertyInitializer"],getAllCodeActions:function(c){var u=e.getNewLineOrDefaultFromHost(c.host,c.formatContext.options);return t.codeFixAll(c,n,function(t,n){var l=r(n.file,n.start);if(l)switch(c.fixId){case"addMissingPropertyDefiniteAssignmentAssertions":i(t,n.file,l,u);break;case"addMissingPropertyUndefinedType":a(t,n.file,l);break;case"addMissingPropertyInitializer":var _=s(c.program.getTypeChecker(),l);if(!_)return;o(t,n.file,l,_,u);break;default:e.Debug.fail(JSON.stringify(c.fixId))}})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){var n="useDefaultImport",r=[e.Diagnostics.Import_may_be_converted_to_a_default_import.code];function i(t,n){var r=e.getTokenAtPosition(t,n,!1);if(e.isIdentifier(r)){var i=r.parent;if(e.isImportEqualsDeclaration(i)&&e.isExternalModuleReference(i.moduleReference))return{importNode:i,name:r,moduleSpecifier:i.moduleReference.expression};if(e.isNamespaceImport(i)){var a=i.parent.parent;return{importNode:a,name:r,moduleSpecifier:a.moduleSpecifier}}}}function a(e,n,r){e.replaceNode(n,r.importNode,t.makeImportDeclaration(r.name,void 0,r.moduleSpecifier))}t.registerCodeFix({errorCodes:r,getCodeActions:function(t){var r=t.sourceFile,o=i(r,t.span.start);if(o)return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_default_import),changes:e.textChanges.ChangeTracker.with(t,function(e){return a(e,r,o)}),fixId:n}]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(e,t){var n=i(t.file,t.start);n&&a(e,t.file,n)})}})}(e.codefix||(e.codefix={}))}(l||(l={})),function(e){!function(t){!function(n){var r,i,a,o,s="Extract Symbol";function c(t){var n=l(t.file,{start:t.startPosition,length:e.getRefactorContextLength(t)}).targetRange;if(void 0!==n){var r=function(t,n){var r=d(t,n),i=r.readsAndWrites,a=i.functionErrorsPerScope,o=i.constantErrorsPerScope;return r.scopes.map(function(t,n){var r,i,s=function(t){return e.isFunctionLikeDeclaration(t)?"inner function":e.isClassLike(t)?"method":"function"}(t),c=function(t){return e.isClassLike(t)?"readonly field":"constant"}(t),u=e.isFunctionLikeDeclaration(t)?function(t){switch(t.kind){case 154:return"constructor";case 190:case 232:return t.name?"function '"+t.name.text+"'":"anonymous function";case 191:return"arrow function";case 153:return"method '"+t.name.getText();case 155:return"'get "+t.name.getText()+"'";case 156:return"'set "+t.name.getText()+"'";default:e.Debug.assertNever(t)}}(t):e.isClassLike(t)?function(e){return 233===e.kind?e.name?"class '"+e.name.text+"'":"anonymous class declaration":e.name?"class expression '"+e.name.text+"'":"anonymous class expression"}(t):function(e){return 238===e.kind?"namespace '"+e.parent.name.getText()+"'":e.externalModuleIndicator?0:1}(t);return 1===u?(r=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[s,"global"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"global"])):0===u?(r=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[s,"module"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"module"])):(r=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[s,u]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[c,u])),0!==n||e.isClassLike(t)||(i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[c])),{functionExtraction:{description:r,errors:a[n]},constantExtraction:{description:i,errors:o[n]}}})}(n,t);if(void 0!==r){for(var i=[],a=e.createMap(),o=[],c=e.createMap(),u=0,_=0,p=r;_<p.length;_++){var f,m=p[_],g=m.functionExtraction,y=m.constantExtraction;0===g.errors.length&&(a.has(f=g.description)||(a.set(f,!0),i.push({description:f,name:"function_scope_"+u}))),0===y.errors.length&&(c.has(f=y.description)||(c.set(f,!0),o.push({description:f,name:"constant_scope_"+u}))),u++}var h=[];return i.length&&h.push({name:s,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:i}),o.length&&h.push({name:s,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:o}),h.length?h:void 0}}}function u(t,n){var r=l(t.file,{start:t.startPosition,length:e.getRefactorContextLength(t)}).targetRange,a=/^function_scope_(\d+)$/.exec(n);if(a){var o=+a[1];return e.Debug.assert(isFinite(o),"Expected to parse a finite number from the function scope index"),function(t,n,r){var a=d(t,n),o=a.scopes,s=a.readsAndWrites,c=s.target,u=s.usagesPerScope,l=s.exposedVariableDeclarations;return e.Debug.assert(!s.functionErrorsPerScope[r].length,"The extraction went missing? How?"),n.cancellationToken.throwIfCancellationRequested(),function(t,n,r,a,o,s){var c,u,l=r.usages,_=r.typeParameterUsages,d=r.substitutions,h=s.program.getTypeChecker(),v=n.getSourceFile(),b=p(e.isClassLike(n)?"newMethod":"newFunction",v.text),x=e.isInJavaScriptFile(n),k=e.createIdentifier(b),S=[],D=[];l.forEach(function(t,r){var i;if(!x){var a=h.getTypeOfSymbolAtLocation(t.symbol,t.node);a=h.getBaseTypeOfLiteralType(a),i=h.typeToTypeNode(a,n,1)}var o=e.createParameter(void 0,void 0,void 0,r,void 0,i);S.push(o),2===t.usage&&(u||(u=[])).push(t),D.push(e.createIdentifier(r))});var C=e.arrayFrom(_.values()).map(function(e){return{type:e,declaration:function(e){var t,n=e.symbol;if(n&&n.declarations)for(var r=0,i=n.declarations;r<i.length;r++){var a=i[r];(void 0===t||a.pos<t.pos)&&(t=a)}return t}(e)}}).sort(m),T=0===C.length?void 0:C.map(function(e){return e.declaration}),E=void 0!==T?T.map(function(t){return e.createTypeReferenceNode(t.name,void 0)}):void 0;if(e.isExpression(t)&&!x){var N=h.getContextualType(t);c=h.typeToTypeNode(N,n,1)}var A,P=function(t,n,r,i,a){var o,s=void 0!==r||n.length>0;if(e.isBlock(t)&&!s&&0===i.size)return{body:e.createBlock(t.statements,!0),returnValueProperty:void 0};var c=!1,u=e.createNodeArray(e.isBlock(t)?t.statements.slice(0):[e.isStatement(t)?t:e.createReturn(t)]);if(s||i.size){var l=e.visitNodes(u,function t(a){if(!c&&223===a.kind&&s){var u=g(n,r);return a.expression&&(o||(o="__return"),u.unshift(e.createPropertyAssignment(o,e.visitNode(a.expression,t)))),e.createReturn(1===u.length?u[0].name:e.createObjectLiteral(u))}var l=c;c=c||e.isFunctionLikeDeclaration(a)||e.isClassLike(a);var _=i.get(e.getNodeId(a).toString()),d=_?e.getSynthesizedDeepClone(_):e.visitEachChild(a,t,e.nullTransformationContext);return c=l,d}).slice();if(s&&!a&&e.isStatement(t)){var _=g(n,r);l.push(e.createReturn(1===_.length?_[0].name:e.createObjectLiteral(_)))}return{body:e.createBlock(l,!0),returnValueProperty:o}}return{body:e.createBlock(u,!0),returnValueProperty:void 0}}(t,a,u,d,!!(o.facts&i.HasReturn)),w=P.body,F=P.returnValueProperty;if(e.suppressLeadingAndTrailingTrivia(w),e.isClassLike(n)){var I=x?[]:[e.createToken(112)];o.facts&i.InStaticRegion&&I.push(e.createToken(115)),o.facts&i.IsAsyncFunction&&I.push(e.createToken(120)),A=e.createMethod(void 0,I.length?I:void 0,o.facts&i.IsGenerator?e.createToken(39):void 0,k,void 0,T,S,c,w)}else A=e.createFunctionDeclaration(void 0,o.facts&i.IsAsyncFunction?[e.createToken(120)]:void 0,o.facts&i.IsGenerator?e.createToken(39):void 0,k,T,S,c,w);var O=e.textChanges.ChangeTracker.fromContext(s),M=function(t,n){return e.find(function(t){if(e.isFunctionLikeDeclaration(t)){var n=t.body;if(e.isBlock(n))return n.statements}else{if(e.isModuleBlock(t)||e.isSourceFile(t))return t.statements;if(e.isClassLike(t))return t.members;e.assertTypeIsNever(t)}return e.emptyArray}(n),function(n){return n.pos>=t&&e.isFunctionLikeDeclaration(n)&&!e.isConstructorDeclaration(n)})}((y(o.range)?e.last(o.range):o.range).end,n);M?O.insertNodeBefore(s.file,M,A,!0):O.insertNodeAtEndOfScope(s.file,n,A);var L=[],R=function(t,n,r){var a=e.createIdentifier(r);if(e.isClassLike(t)){var o=n.facts&i.InStaticRegion?e.createIdentifier(t.name.text):e.createThis();return e.createPropertyAccess(o,a)}return a}(n,o,b),B=e.createCall(R,E,D);if(o.facts&i.IsGenerator&&(B=e.createYield(e.createToken(39),B)),o.facts&i.IsAsyncFunction&&(B=e.createAwait(B)),a.length&&!u)if(e.Debug.assert(!F),e.Debug.assert(!(o.facts&i.HasReturn)),1===a.length)L.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedDeepClone((X=a[0]).name),e.getSynthesizedDeepClone(X.type),B)],X.parent.flags)));else{for(var z=[],j=[],J=a[0].parent.flags,K=!1,U=0,V=a;U<V.length;U++){z.push(e.createBindingElement(void 0,void 0,e.getSynthesizedDeepClone((X=V[U]).name)));var q=h.typeToTypeNode(h.getBaseTypeOfLiteralType(h.getTypeAtLocation(X)),n,1);j.push(e.createPropertySignature(void 0,X.symbol.name,void 0,q,void 0)),K=K||void 0!==X.type,J&=X.parent.flags}var W=K?e.createTypeLiteralNode(j):void 0;W&&e.setEmitFlags(W,1),L.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createObjectBindingPattern(z),W,B)],J)))}else if(a.length||u){if(a.length)for(var H=0,G=a;H<G.length;H++){var X,Q=(X=G[H]).parent.flags;2&Q&&(Q=-3&Q|1),L.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(X.symbol.name,ee(X.type))],Q)))}F&&L.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(F,ee(c))],1)));var Y=g(a,u);F&&Y.unshift(e.createShorthandPropertyAssignment(F)),1===Y.length?(e.Debug.assert(!F),L.push(e.createStatement(e.createAssignment(Y[0].name,B))),o.facts&i.HasReturn&&L.push(e.createReturn())):(L.push(e.createStatement(e.createAssignment(e.createObjectLiteral(Y),B))),F&&L.push(e.createReturn(e.createIdentifier(F))))}else o.facts&i.HasReturn?L.push(e.createReturn(B)):y(o.range)?L.push(e.createStatement(B)):L.push(B);y(o.range)?O.replaceNodeRangeWithNodes(s.file,e.first(o.range),e.last(o.range),L):O.replaceNodeWithNodes(s.file,o.range,L);var $=O.getChanges(),Z=(y(o.range)?e.first(o.range):o.range).getSourceFile().fileName;return{renameFilename:Z,renameLocation:f($,Z,b,!1),edits:$};function ee(t){if(void 0!==t){for(var n=e.getSynthesizedDeepClone(t),r=n;e.isParenthesizedTypeNode(r);)r=r.type;return e.isUnionTypeNode(r)&&e.find(r.types,function(e){return 140===e.kind})?n:e.createUnionTypeNode([n,e.createKeywordTypeNode(140)])}}}(c,o[r],u[r],l,t,n)}(r,t,o)}var s=/^constant_scope_(\d+)$/.exec(n);if(s)return o=+s[1],e.Debug.assert(isFinite(o),"Expected to parse a finite number from the constant scope index"),function(t,n,r){var a=d(t,n),o=a.scopes,s=a.readsAndWrites,c=s.target,u=s.usagesPerScope,l=s.exposedVariableDeclarations;return e.Debug.assert(!s.constantErrorsPerScope[r].length,"The extraction went missing? How?"),e.Debug.assert(0===l.length,"Extract constant accepted a range containing a variable declaration?"),n.cancellationToken.throwIfCancellationRequested(),function(t,n,a,o,s){var c=u[r].substitutions,l=s.program.getTypeChecker(),d=n.getSourceFile(),m=p(e.isClassLike(n)?"newProperty":"newLocal",d.text),g=e.isInJavaScriptFile(n),y=g||!l.isContextSensitive(t)?void 0:l.typeToTypeNode(l.getContextualType(t),n,1),h=function(t,n){return n.size?function t(r){var i=n.get(e.getNodeId(r).toString());return i?e.getSynthesizedDeepClone(i):e.visitEachChild(r,t,e.nullTransformationContext)}(t):t}(t,c);e.suppressLeadingAndTrailingTrivia(h);var v=e.textChanges.ChangeTracker.fromContext(s);if(e.isClassLike(n)){e.Debug.assert(!g);var x=[];x.push(e.createToken(112)),o&i.InStaticRegion&&x.push(e.createToken(115)),x.push(e.createToken(132));var k=e.createProperty(void 0,x,m,void 0,y,h),S=e.createPropertyAccess(o&i.InStaticRegion?e.createIdentifier(n.name.getText()):e.createThis(),e.createIdentifier(m)),D=function(t,n){var r,i=n.members;e.Debug.assert(i.length>0);for(var a=!0,o=0,s=i;o<s.length;o++){var c=s[o];if(c.pos>t)return r||i[0];if(a&&!e.isPropertyDeclaration(c)){if(void 0!==r)return c;a=!1}r=c}return e.Debug.assert(void 0!==r),r}(t.pos,n);v.insertNodeBefore(s.file,D,k,!0),v.replaceNode(s.file,t,S,e.textChanges.useNonAdjustedPositions)}else{var C=e.createVariableDeclaration(m,y,h),T=function(t,n){for(var r;void 0!==t&&t!==n;){if(e.isVariableDeclaration(t)&&t.initializer===r&&e.isVariableDeclarationList(t.parent)&&t.parent.declarations.length>1)return t;r=t,t=t.parent}}(t,n);if(T)v.insertNodeBefore(s.file,T,C),S=e.createIdentifier(m),v.replaceNode(s.file,t,S,e.textChanges.useNonAdjustedPositions);else if(214===t.parent.kind&&n===e.findAncestor(t,_)){var E=e.createVariableStatement(void 0,e.createVariableDeclarationList([C],2));v.replaceNode(s.file,t.parent,E,e.textChanges.useNonAdjustedPositions)}else E=e.createVariableStatement(void 0,e.createVariableDeclarationList([C],2)),0===(D=function(t,n){var r;e.Debug.assert(!e.isClassLike(n));for(var i=t;i!==n;i=i.parent)_(i)&&(r=i);for(i=(r||t).parent;;i=i.parent){if(b(i)){for(var a=void 0,o=0,s=i.statements;o<s.length;o++){var c=s[o];if(c.pos>t.pos)break;a=c}return!a&&e.isCaseClause(i)?(e.Debug.assert(e.isSwitchStatement(i.parent.parent)),i.parent.parent):(e.Debug.assert(void 0!==a),a)}if(i===n){e.Debug.fail("Didn't encounter a block-like before encountering scope");break}}}(t,n)).pos?v.insertNodeAtTopOfFile(s.file,E,!1):v.insertNodeBefore(s.file,D,E,!1),214===t.parent.kind?v.deleteNode(s.file,t.parent,e.textChanges.useNonAdjustedPositions):(S=e.createIdentifier(m),v.replaceNode(s.file,t,S,e.textChanges.useNonAdjustedPositions))}var N=v.getChanges(),A=t.getSourceFile().fileName;return{renameFilename:A,renameLocation:f(N,A,m,!0),edits:N}}(e.isExpression(c)?c:c.statements[0].expression,o[r],0,t.facts,n)}(r,t,o);e.Debug.fail("Unrecognized action name")}function l(t,n){var a=n.length;if(0===a)return{errors:[e.createFileDiagnostic(t,n.start,a,r.cannotExtractEmpty)]};var o=h(e.getTokenAtPosition(t,n.start,!1),t,n),s=h(e.findTokenOnLeftOfPosition(t,e.textSpanEnd(n)),t,n),c=[],u=i.None;if(!o||!s)return{errors:[e.createFileDiagnostic(t,n.start,a,r.cannotExtractRange)]};if(o.parent!==s.parent)return{errors:[e.createFileDiagnostic(t,n.start,a,r.cannotExtractRange)]};if(o!==s){if(!b(o.parent))return{errors:[e.createFileDiagnostic(t,n.start,a,r.cannotExtractRange)]};for(var l=[],_=0,d=o.parent.statements;_<d.length;_++){var p=d[_];if(p===o||l.length){var f=y(p);if(f)return{errors:f};l.push(p)}if(p===s)break}return l.length?{targetRange:{range:l,facts:u,declarations:c}}:{errors:[e.createFileDiagnostic(t,n.start,a,r.cannotExtractRange)]}}if(e.isReturnStatement(o)&&!o.expression)return{errors:[e.createFileDiagnostic(t,n.start,a,r.cannotExtractRange)]};var m=function(t){if(e.isReturnStatement(t)){if(t.expression)return t.expression}else if(e.isVariableStatement(t)){for(var n=0,r=void 0,i=0,a=t.declarationList.declarations;i<a.length;i++){var o=a[i];o.initializer&&(n++,r=o.initializer)}if(1===n)return r}else if(e.isVariableDeclaration(t)&&t.initializer)return t.initializer;return t}(o),g=function(t){if(e.isIdentifier(e.isExpressionStatement(t)?t.expression:t))return[e.createDiagnosticForNode(t,r.cannotExtractIdentifier)]}(m)||y(m);return g?{errors:g}:{targetRange:{range:function(t){return e.isStatement(t)?[t]:e.isExpressionNode(t)?e.isExpressionStatement(t.parent)?[t.parent]:t:void 0}(m),facts:u,declarations:c}};function y(t){var a;if(function(e){e[e.None=0]="None",e[e.Break=1]="Break",e[e.Continue=2]="Continue",e[e.Return=4]="Return"}(a||(a={})),e.Debug.assert(t.pos<=t.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(!e.positionIsSynthesized(t.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),!(e.isStatement(t)||e.isExpressionNode(t)&&function(e){switch(e.parent.kind){case 271:return!1}switch(e.kind){case 9:return 242!==e.parent.kind&&246!==e.parent.kind;case 202:case 178:case 180:return!1;case 71:return 180!==e.parent.kind&&246!==e.parent.kind&&250!==e.parent.kind}return!0}(t)))return[e.createDiagnosticForNode(t,r.statementOrExpressionExpected)];if(2097152&t.flags)return[e.createDiagnosticForNode(t,r.cannotExtractAmbientBlock)];var o,s=e.getContainingClass(t);s&&function(t,n){for(var r=t;r!==n;){if(151===r.kind){e.hasModifier(r,32)&&(u|=i.InStaticRegion);break}if(148===r.kind){154===e.getContainingFunction(r).kind&&(u|=i.InStaticRegion);break}153===r.kind&&e.hasModifier(r,32)&&(u|=i.InStaticRegion),r=r.parent}}(t,s);var l,_=4;return function t(a){if(o)return!0;if(e.isDeclaration(a)){if(e.hasModifier(230===a.kind?a.parent.parent:a,1))return(o||(o=[])).push(e.createDiagnosticForNode(a,r.cannotExtractExportedEntity)),!0;c.push(a.symbol)}switch(a.kind){case 242:return(o||(o=[])).push(e.createDiagnosticForNode(a,r.cannotExtractImport)),!0;case 97:if(185===a.parent.kind){var s=e.getContainingClass(a);if(s.pos<n.start||s.end>=n.start+n.length)return(o||(o=[])).push(e.createDiagnosticForNode(a,r.cannotExtractSuper)),!0}else u|=i.UsesThis}if(!a||e.isFunctionLikeDeclaration(a)||e.isClassLike(a)){switch(a.kind){case 232:case 233:e.isSourceFile(a.parent)&&void 0===a.parent.externalModuleIndicator&&(o||(o=[])).push(e.createDiagnosticForNode(a,r.functionWillNotBeVisibleInTheNewScope))}return!1}var d=_;switch(a.kind){case 215:case 228:_=0;break;case 211:a.parent&&228===a.parent.kind&&a.parent.finallyBlock===a&&(_=4);break;case 264:_|=1;break;default:e.isIterationStatement(a,!1)&&(_|=3)}switch(a.kind){case 173:case 99:u|=i.UsesThis;break;case 226:var p=a.label;(l||(l=[])).push(p.escapedText),e.forEachChild(a,t),l.pop();break;case 222:case 221:(p=a.label)?e.contains(l,p.escapedText)||(o||(o=[])).push(e.createDiagnosticForNode(a,r.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):_&(222===a.kind?1:2)||(o||(o=[])).push(e.createDiagnosticForNode(a,r.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 195:u|=i.IsAsyncFunction;break;case 201:u|=i.IsGenerator;break;case 223:4&_?u|=i.HasReturn:(o||(o=[])).push(e.createDiagnosticForNode(a,r.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(a,t)}_=d}(t),o}}function _(t){return e.isFunctionLikeDeclaration(t)||e.isSourceFile(t)||e.isModuleBlock(t)||e.isClassLike(t)}function d(t,n){var a=n.file,o=function(t){var n=y(t.range)?e.first(t.range):t.range;if(t.facts&i.UsesThis){var r=e.getContainingClass(n);if(r){var a=e.findAncestor(n,e.isFunctionLikeDeclaration);return a?[a,r]:[r]}}for(var o=[];;)if(148===(n=n.parent).kind&&(n=e.findAncestor(n,function(t){return e.isFunctionLikeDeclaration(t)}).parent),_(n)&&(o.push(n),272===n.kind))return o}(t);return{scopes:o,readsAndWrites:function(t,n,a,o,s,c){var u,l,_=e.createMap(),d=[],p=[],f=[],m=[],g=[],h=e.createMap(),v=[],b=y(t.range)?1===t.range.length&&e.isExpressionStatement(t.range[0])?t.range[0].expression:void 0:t.range;if(void 0===b){var x=t.range,k=e.first(x).getStart(),S=e.last(x).end;l=e.createFileDiagnostic(o,k,S-k,r.expressionExpected)}else 18432&s.getTypeAtLocation(b).flags&&(l=e.createDiagnosticForNode(b,r.uselessConstantType));for(var D=0,C=n;D<C.length;D++){var T=C[D];d.push({usages:e.createMap(),typeParameterUsages:e.createMap(),substitutions:e.createMap()}),p.push(e.createMap()),f.push(e.isFunctionLikeDeclaration(T)&&232!==T.kind?[e.createDiagnosticForNode(T,r.cannotExtractToOtherFunctionLike)]:[]);var E=[];l&&E.push(l),e.isClassLike(T)&&e.isInJavaScriptFile(T)&&E.push(e.createDiagnosticForNode(T,r.cannotExtractToJSClass)),e.isArrowFunction(T)&&!e.isBlock(T.body)&&E.push(e.createDiagnosticForNode(T,r.cannotExtractToExpressionArrowFunction)),m.push(E)}var N=e.createMap(),A=y(t.range)?e.createBlock(t.range):t.range,P=y(t.range)?e.first(t.range):t.range,w=function(e){for(;e;e=e.parent)if(J(e))return!0;return!1}(P);if(function c(u,l){if(void 0===l&&(l=1),w&&K(s.getTypeAtLocation(u)),e.isDeclaration(u)&&u.symbol&&g.push(u),e.isAssignmentExpression(u))c(u.left,2),c(u.right);else if(e.isUnaryExpressionWithWrite(u))c(u.operand,2);else if(e.isPropertyAccessExpression(u)||e.isElementAccessExpression(u))e.forEachChild(u,c);else if(e.isIdentifier(u)){if(!u.parent)return;if(e.isQualifiedName(u.parent)&&u!==u.parent.left)return;if(e.isPropertyAccessExpression(u.parent)&&u!==u.parent.expression)return;!function(c,_,g){var y=function(c,u,l){var _=U(c);if(_){var g=e.getSymbolId(_).toString(),y=N.get(g);if(y&&y>=u)return g;if(N.set(g,u),y){for(var h=0,v=d;h<v.length;h++){var b=v[h];b.usages.get(c.text)&&b.usages.set(c.text,{usage:u,symbol:_,node:c})}return g}var x=_.getDeclarations(),k=x&&e.find(x,function(e){return e.getSourceFile()===o});if(k&&!e.rangeContainsStartEnd(a,k.getStart(),k.end)){if(t.facts&i.IsGenerator&&2===u){for(var S=e.createDiagnosticForNode(c,r.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators),D=0,C=f;D<C.length;D++)C[D].push(S);for(var T=0,E=m;T<E.length;T++)E[T].push(S)}for(var A=0;A<n.length;A++){var P=n[A];if(s.resolveName(_.name,P,_.flags,!1)!==_&&!p[A].has(g)){var w=V(_.exportSymbol||_,P,l);w?p[A].set(g,w):l?262144&_.flags||(S=e.createDiagnosticForNode(c,r.typeWillNotBeVisibleInTheNewScope),f[A].push(S),m[A].push(S)):d[A].usages.set(c.text,{usage:u,symbol:_,node:c})}}return g}}}(c,l,e.isPartOfTypeNode(u));if(y)for(var h=0;h<n.length;h++){var v=p[h].get(y);v&&d[h].substitutions.set(e.getNodeId(c).toString(),v)}}(u)}else e.forEachChild(u,c)}(A),w&&!y(t.range)&&K(s.getContextualType(t.range)),_.size>0){for(var F=e.createMap(),I=0,O=P;void 0!==O&&I<n.length;O=O.parent)if(O===n[I]&&(F.forEach(function(e,t){d[I].typeParameterUsages.set(t,e)}),I++),e.isDeclarationWithTypeParameters(O)&&O.typeParameters)for(var M=0,L=O.typeParameters;M<L.length;M++){var R=s.getTypeAtLocation(L[M]);_.has(R.id.toString())&&F.set(R.id.toString(),R)}e.Debug.assert(I===n.length)}if(g.length){var B=e.isBlockScope(n[0],n[0].parent)?n[0]:e.getEnclosingBlockScopeContainer(n[0]);e.forEachChild(B,function n(r){if(!(r===t.range||y(t.range)&&t.range.indexOf(r)>=0)){var i=e.isIdentifier(r)?U(r):s.getSymbolAtLocation(r);if(i){var a=e.find(g,function(e){return e.symbol===i});if(a)if(e.isVariableDeclaration(a)){var o=a.symbol.id.toString();h.has(o)||(v.push(a),h.set(o,!0))}else u=u||a}e.forEachChild(r,n)}})}for(var z=function(n){var i=d[n];if(n>0&&(i.usages.size>0||i.typeParameterUsages.size>0)){var a=y(t.range)?t.range[0]:t.range;m[n].push(e.createDiagnosticForNode(a,r.cannotAccessVariablesFromNestedScopes))}var o,s=!1;if(d[n].usages.forEach(function(t){2===t.usage&&(s=!0,106500&t.symbol.flags&&t.symbol.valueDeclaration&&e.hasModifier(t.symbol.valueDeclaration,64)&&(o=t.symbol.valueDeclaration))}),e.Debug.assert(y(t.range)||0===v.length),s&&!y(t.range)){var c=e.createDiagnosticForNode(t.range,r.cannotWriteInExpression);f[n].push(c),m[n].push(c)}else o&&n>0?(c=e.createDiagnosticForNode(o,r.cannotExtractReadonlyPropertyInitializerOutsideConstructor),f[n].push(c),m[n].push(c)):u&&(c=e.createDiagnosticForNode(u,r.cannotExtractExportedEntity),f[n].push(c),m[n].push(c))},j=0;j<n.length;j++)z(j);return{target:A,usagesPerScope:d,functionErrorsPerScope:f,constantErrorsPerScope:m,exposedVariableDeclarations:v};function J(t){return e.isDeclarationWithTypeParameters(t)&&void 0!==t.typeParameters&&t.typeParameters.length>0}function K(e){for(var t=0,n=s.getSymbolWalker(function(){return c.throwIfCancellationRequested(),!0}).walkType(e).visitedTypes;t<n.length;t++){var r=n[t];32768&r.flags&&_.set(r.id.toString(),r)}}function U(t){return t.parent&&e.isShorthandPropertyAssignment(t.parent)&&t.parent.name===t?s.getShorthandAssignmentValueSymbol(t.parent):s.getSymbolAtLocation(t)}function V(t,n,r){if(t){var i=t.getDeclarations();if(i&&i.some(function(e){return e.parent===n}))return e.createIdentifier(t.name);var a=V(t.parent,n,r);if(void 0!==a)return r?e.createQualifiedName(a,e.createIdentifier(t.name)):e.createPropertyAccess(a,t.name)}}}(t,o,function(t,n){return y(t.range)?{pos:e.first(t.range).getStart(n),end:e.last(t.range).getEnd()}:t.range}(t,a),a,n.program.getTypeChecker(),n.cancellationToken)}}function p(t,n){for(var r=t,i=1;e.stringContains(n,r);i++)r=t+"_"+i;return r}function f(t,n,r,i){for(var a=0,o=-1,s=0,c=t;s<c.length;s++){var u=c[s],l=u.textChanges;e.Debug.assert(u.fileName===n);for(var _=0,d=l;_<d.length;_++){var p=d[_],f=p.span,m=p.newText,g=m.indexOf(r);if(-1!==g&&(o=f.start+a+g,!i))return o;a+=m.length-f.length}}return e.Debug.assert(i),e.Debug.assert(o>=0),o}function m(t,n){var r=t.type,i=n.type;return e.compareProperties(t.declaration,n.declaration,"pos",e.compareValues)||e.compareStringsCaseSensitive(r.symbol?r.symbol.getName():"",i.symbol?i.symbol.getName():"")||e.compareValues(r.id,i.id)}function g(t,n){var r=e.map(t,function(t){return e.createShorthandPropertyAssignment(t.symbol.name)}),i=e.map(n,function(t){return e.createShorthandPropertyAssignment(t.symbol.name)});return void 0===r?i:void 0===i?r:r.concat(i)}function y(t){return e.isArray(t)}function h(t,n,r){if(t)for(;t.parent;){if(e.isSourceFile(t.parent)||!v(r,t.parent,n))return t;t=t.parent}}function v(t,n,r){return e.textSpanContainsPosition(t,n.getStart(r))&&n.getEnd()<=e.textSpanEnd(t)}function b(e){switch(e.kind){case 211:case 272:case 238:case 264:return!0;default:return!1}}t.registerRefactor(s,{getAvailableActions:c,getEditsForAction:u}),n.getAvailableActions=c,n.getEditsForAction=u,function(t){function n(t){return{message:t,code:0,category:e.DiagnosticCategory.Message,key:t}}t.cannotExtractRange=n("Cannot extract range."),t.cannotExtractImport=n("Cannot extract import statement."),t.cannotExtractSuper=n("Cannot extract super call."),t.cannotExtractEmpty=n("Cannot extract empty range."),t.expressionExpected=n("expression expected."),t.uselessConstantType=n("No reason to extract constant of type."),t.statementOrExpressionExpected=n("Statement or expression expected."),t.cannotExtractRangeContainingConditionalBreakOrContinueStatements=n("Cannot extract range containing conditional break or continue statements."),t.cannotExtractRangeContainingConditionalReturnStatement=n("Cannot extract range containing conditional return statement."),t.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=n("Cannot extract range containing labeled break or continue with target outside of the range."),t.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=n("Cannot extract range containing writes to references located outside of the target range in generators."),t.typeWillNotBeVisibleInTheNewScope=n("Type will not visible in the new scope."),t.functionWillNotBeVisibleInTheNewScope=n("Function will not visible in the new scope."),t.cannotExtractIdentifier=n("Select more than a single identifier."),t.cannotExtractExportedEntity=n("Cannot extract exported declaration"),t.cannotWriteInExpression=n("Cannot write back side-effects when extracting an expression"),t.cannotExtractReadonlyPropertyInitializerOutsideConstructor=n("Cannot move initialization of read-only class property outside of the constructor"),t.cannotExtractAmbientBlock=n("Cannot extract code from ambient contexts"),t.cannotAccessVariablesFromNestedScopes=n("Cannot access variables from nested scopes"),t.cannotExtractToOtherFunctionLike=n("Cannot extract method to a function-like scope that is not a function"),t.cannotExtractToJSClass=n("Cannot extract constant to a class scope in JS"),t.cannotExtractToExpressionArrowFunction=n("Cannot extract constant to an arrow function without a block")}(r=n.Messages||(n.Messages={})),function(e){e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.InStaticRegion=16]="InStaticRegion"}(i||(i={})),n.getRangeToExtract=l,function(e){e[e.Module=0]="Module",e[e.Global=1]="Global"}(a||(a={})),function(e){e[e.Read=1]="Read",e[e.Write=2]="Write"}(o||(o={}))}(t.extractSymbol||(t.extractSymbol={}))}(e.refactor||(e.refactor={}))}(l||(l={})),function(e){function t(t,r,i,a){var c=e.isNodeKind(t)?new n(t,r,i):71===t?new s(71,r,i):new o(t,r,i);return c.parent=a,c.flags=6387712&a.flags,c}e.servicesVersion="0.7";var n=function(){function n(e,t,n){this.pos=t,this.end=n,this.flags=0,this.transformFlags=void 0,this.parent=void 0,this.kind=e}return n.prototype.assertHasRealPosition=function(t){e.Debug.assert(!e.positionIsSynthesized(this.pos)&&!e.positionIsSynthesized(this.end),t||"Node must have a real position for this operation")},n.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},n.prototype.getStart=function(t,n){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,t,n)},n.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},n.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},n.prototype.getWidth=function(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)},n.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},n.prototype.getLeadingTriviaWidth=function(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos},n.prototype.getFullText=function(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)},n.prototype.getText=function(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},n.prototype.addSyntheticNodes=function(n,r,i){for(e.scanner.setTextPos(r);r<i;){var a=e.scanner.scan(),o=e.scanner.getTextPos();if(o<=i&&(71===a&&e.Debug.fail("Did not expect "+e.Debug.showSyntaxKind(this)+" to have an Identifier in its trivia"),n.push(t(a,r,o,this))),r=o,1===a)break}return r},n.prototype.createSyntaxList=function(e){var n=t(293,e.pos,e.end,this);n._children=[];for(var r=e.pos,i=0,a=e;i<a.length;i++){var o=a[i];r<o.pos&&(r=this.addSyntheticNodes(n._children,r,o.pos)),n._children.push(o),r=o.end}return r<e.end&&this.addSyntheticNodes(n._children,r,e.end),n},n.prototype.createChildren=function(t){var n=this;if(e.isNodeKind(this.kind)){if(e.isJSDocCommentContainingNode(this)){var r=[];return this.forEachChild(function(e){r.push(e)}),void(this._children=r)}var i=[];e.scanner.setText((t||this.getSourceFile()).text);var a=this.pos,o=function(e){a=n.addSyntheticNodes(i,a,e.pos),i.push(e),a=e.end};if(this.jsDoc)for(var s=0,c=this.jsDoc;s<c.length;s++)o(c[s]);a=this.pos,e.forEachChild(this,o,function(e){a<e.pos&&(a=n.addSyntheticNodes(i,a,e.pos)),i.push(n.createSyntaxList(e)),a=e.end}),a<this.end&&this.addSyntheticNodes(i,a,this.end),e.scanner.setText(void 0),this._children=i}else this._children=e.emptyArray},n.prototype.getChildCount=function(e){return this.assertHasRealPosition(),this._children||this.createChildren(e),this._children.length},n.prototype.getChildAt=function(e,t){return this.assertHasRealPosition(),this._children||this.createChildren(t),this._children[e]},n.prototype.getChildren=function(e){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||this.createChildren(e),this._children},n.prototype.getFirstToken=function(t){this.assertHasRealPosition();var n=this.getChildren(t);if(n.length){var r=e.find(n,function(e){return e.kind<274||e.kind>292});return r.kind<145?r:r.getFirstToken(t)}},n.prototype.getLastToken=function(t){this.assertHasRealPosition();var n=this.getChildren(t),r=e.lastOrUndefined(n);if(r)return r.kind<145?r:r.getLastToken(t)},n.prototype.forEachChild=function(t,n){return e.forEachChild(this,t,n)},n}(),r=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,n){return e.getTokenPosOfNode(this,t,n)},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||(e=this.getSourceFile()),e.text.substring(this.getStart(e),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}(),i=function(){function t(e,t){this.flags=e,this.escapedName=t}return t.prototype.getFlags=function(){return this.flags},Object.defineProperty(t.prototype,"name",{get:function(){return e.symbolName(this)},enumerable:!0,configurable:!0}),t.prototype.getEscapedName=function(){return this.escapedName},t.prototype.getName=function(){return this.name},t.prototype.getDeclarations=function(){return this.declarations},t.prototype.getDocumentationComment=function(t){if(void 0===this.documentationComment)if(this.declarations){if(this.documentationComment=e.JsDoc.getJsDocCommentsFromDeclarations(this.declarations),(0===this.documentationComment.length||this.declarations.some(_))&&t)for(var n=0,r=this.declarations;n<r.length;n++){var i=d(r[n],this.getName(),t);if(i.length>0){this.documentationComment.length>0&&i.push(e.lineBreakPart()),this.documentationComment=e.concatenate(i,this.documentationComment);break}}}else this.documentationComment=[];return this.documentationComment},t.prototype.getJsDocTags=function(){return void 0===this.tags&&(this.tags=e.JsDoc.getJsDocTagsFromDeclarations(this.declarations)),this.tags},t}(),o=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.kind=t,i}return u(t,e),t}(r),s=function(t){function n(e,n,r){return t.call(this,n,r)||this}return u(n,t),Object.defineProperty(n.prototype,"text",{get:function(){return e.idText(this)},enumerable:!0,configurable:!0}),n}(r);s.prototype.kind=71;var c=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 65536&this.flags&&3&this.objectFlags?this.checker.getBaseTypes(this):void 0},e.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},e.prototype.getConstraint=function(){return this.checker.getBaseConstraintOfType(this)},e.prototype.getDefault=function(){return this.checker.getDefaultFromTypeParameter(this)},e}(),l=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(){if(void 0===this.documentationComment)if(this.declaration){if(this.documentationComment=e.JsDoc.getJsDocCommentsFromDeclarations([this.declaration]),0===this.documentationComment.length||_(this.declaration)){var t=d(this.declaration,this.declaration.symbol.getName(),this.checker);this.documentationComment.length>0&&t.push(e.lineBreakPart()),this.documentationComment=e.concatenate(t,this.documentationComment)}}else this.documentationComment=[];return this.documentationComment},t.prototype.getJsDocTags=function(){return void 0===this.jsDocTags&&(this.jsDocTags=this.declaration?e.JsDoc.getJsDocTagsFromDeclarations([this.declaration]):[]),this.jsDocTags},t}();function _(t){return e.getJSDocTags(t).some(function(e){return"inheritDoc"===e.tagName.text})}function d(t,n,r){var i=!1;return e.flatMap(function(t){var n=t.parent;if(!n||!e.isClassDeclaration(n)&&!e.isInterfaceDeclaration(n))return e.emptyArray;var r=e.getClassExtendsHeritageClauseElement(n),i=r?[r]:e.emptyArray;return e.isClassLike(n)?e.concatenate(i,e.getClassImplementsHeritageClauseElements(n)):i}(t),function(t){if(i)return e.emptyArray;var a=r.getTypeAtLocation(t);if(!a)return e.emptyArray;var o=r.getPropertyOfType(a,n);if(!o)return e.emptyArray;var s=o.getDocumentationComment(r);return i=s.length>0,s})}var p=function(t){function n(e,n,r){return t.call(this,e,n,r)||this}return u(n,t),n.prototype.update=function(t,n){return e.updateSourceFile(this,t,n)},n.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},n.prototype.getLineStarts=function(){return e.getLineStarts(this)},n.prototype.getPositionOfLineAndCharacter=function(t,n){return e.getPositionOfLineAndCharacter(this,t,n)},n.prototype.getLineEndOfPosition=function(e){var t,n=this.getLineAndCharacterOfPosition(e).line,r=this.getLineStarts();n+1>=r.length&&(t=this.getEnd()),t||(t=r[n+1]-1);var i=this.getFullText();return"\n"===i[t]&&"\r"===i[t-1]?t-1:t},n.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},n.prototype.computeNamedDeclarations=function(){var t=e.createMultiMap();return e.forEachChild(this,function i(a){switch(a.kind){case 232:case 190:case 153:case 152:var o=a,s=r(o);if(s){var c=function(e){var n=t.get(e);return n||t.set(e,n=[]),n}(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 233:case 203:case 234:case 235:case 236:case 237:case 241:case 250:case 246:case 243:case 244:case 155:case 156:case 165:n(a),e.forEachChild(a,i);break;case 148:if(!e.hasModifier(a,92))break;case 230:case 180:var l=a;if(e.isBindingPattern(l.name)){e.forEachChild(l.name,i);break}l.initializer&&i(l.initializer);case 271:case 151:case 150:n(a);break;case 248:a.exportClause&&e.forEach(a.exportClause.elements,i);break;case 242:var _=a.importClause;_&&(_.name&&n(_),_.namedBindings&&(244===_.namedBindings.kind?n(_.namedBindings):e.forEach(_.namedBindings.elements,i)));break;case 198:0!==e.getSpecialPropertyAssignmentKind(a)&&n(a);default:e.forEachChild(a,i)}}),t;function n(e){var n=r(e);n&&t.add(n,e)}function r(t){var n=e.getNameOfDeclaration(t);return n&&(e.isPropertyNameLiteral(n)?e.getTextOfIdentifierOrLiteral(n):146===n.kind&&e.isPropertyAccessExpression(n.expression)?n.expression.name.text:void 0)}},n}(n),f=function(){function t(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n}return t.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},t}();function m(t){var n=!0;for(var r in t)if(e.hasProperty(t,r)&&!g(r)){n=!1;break}if(n)return t;var i={};for(var r in t)e.hasProperty(t,r)&&(i[g(r)?r:r.charAt(0).toLowerCase()+r.substr(1)]=t[r]);return i}function g(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}e.toEditorSettings=m,e.displayPartsToString=function(t){return t?e.map(t,function(e){return e.text}).join(""):""},e.getDefaultCompilerOptions=function(){return{target:1,jsx:1}},e.getSupportedCodeFixes=function(){return e.codefix.getSupportedErrorCodes()};var y=function(){function t(t,n){this.host=t,this.currentDirectory=t.getCurrentDirectory(),this.fileNameToEntry=e.createMap();for(var r=0,i=t.getScriptFileNames();r<i.length;r++){var a=i[r];this.createEntry(a,e.toPath(a,this.currentDirectory,n))}this._compilationSettings=t.getCompilationSettings()||{target:1,jsx:1}}return t.prototype.compilationSettings=function(){return this._compilationSettings},t.prototype.createEntry=function(t,n){var r,i=this.host.getScriptSnapshot(t);return r=i?{hostFileName:t,version:this.host.getScriptVersion(t),scriptSnapshot:i,scriptKind:e.getScriptKind(t,this.host)}:t,this.fileNameToEntry.set(n,r),r},t.prototype.getEntryByPath=function(e){return this.fileNameToEntry.get(e)},t.prototype.getHostFileInformation=function(t){var n=this.fileNameToEntry.get(t);return e.isString(n)?void 0:n},t.prototype.getOrCreateEntryByPath=function(t,n){var r=this.getEntryByPath(n)||this.createEntry(t,n);return e.isString(r)?void 0:r},t.prototype.getRootFileNames=function(){return e.arrayFrom(this.fileNameToEntry.values(),function(t){return e.isString(t)?t:t.hostFileName})},t.prototype.getVersion=function(e){var t=this.getHostFileInformation(e);return t&&t.version},t.prototype.getScriptSnapshot=function(e){var t=this.getHostFileInformation(e);return t&&t.scriptSnapshot},t}(),h=function(){function t(e){this.host=e}return t.prototype.getCurrentSourceFile=function(t){var n=this.host.getScriptSnapshot(t);if(!n)throw new Error("Could not find file: '"+t+"'.");var r,i=e.getScriptKind(t,this.host),a=this.host.getScriptVersion(t);if(this.currentFileName!==t)r=b(t,n,6,a,!0,i);else if(this.currentFileVersion!==a){var o=n.getChangeRange(this.currentFileScriptSnapshot);r=x(this.currentSourceFile,n,a,o)}return r&&(this.currentFileVersion=a,this.currentFileName=t,this.currentFileScriptSnapshot=n,this.currentSourceFile=r),this.currentSourceFile},t}();function v(e,t,n){e.version=n,e.scriptSnapshot=t}function b(t,n,r,i,a,o){var s=e.createSourceFile(t,e.getSnapshotText(n),r,a,o);return v(s,n,i),s}function x(t,n,r,i,a){if(i&&r!==t.version&&!e.disableIncrementalParsing){var o=void 0,s=0!==i.span.start?t.text.substr(0,i.span.start):"",c=e.textSpanEnd(i.span)!==t.text.length?t.text.substr(e.textSpanEnd(i.span)):"";if(0===i.newLength)o=s&&c?s+c:s||c;else{var u=n.getText(i.span.start,i.span.start+i.newLength);o=s&&c?s+u+c:s?s+u:u+c}var l=e.updateSourceFile(t,o,i,a);return v(l,n,r),l.nameTable=void 0,t!==l&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),l}return b(t.fileName,n,t.languageVersion,r,!0,t.scriptKind)}e.createLanguageServiceSourceFile=b,e.disableIncrementalParsing=!1,e.updateLanguageServiceSourceFile=x;var k=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}(),S=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();return Math.abs(t-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},t}();function D(t,n){var r=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(n));if(r&&t){var i=[],a=t.getProperty(r);if(131072&t.flags)return e.forEach(t.types,function(e){var t=e.getProperty(r);t&&i.push(t)}),i;if(a)return i.push(a),i}}e.ThrottledCancellationToken=S,e.createLanguageService=function(t,n){void 0===n&&(n=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory()));var r,i,a=new h(t),o=0,s=t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),c=new k(t.getCancellationToken&&t.getCancellationToken()),u=t.getCurrentDirectory();function l(e){t.log&&t.log(e)}!e.localizedDiagnosticMessages&&t.getLocalizedDiagnosticMessages&&(e.localizedDiagnosticMessages=t.getLocalizedDiagnosticMessages());var _=e.createGetCanonicalFileName(s);function d(e){var t=r.getSourceFile(e);if(!t)throw new Error("Could not find file: '"+e+"'.");return t}function p(){if(t.getProjectVersion){var a=t.getProjectVersion();if(a){if(i===a&&!t.hasChangedAutomaticTypeDirectiveNames)return;i=a}}var d=t.getTypeRootsVersion?t.getTypeRootsVersion():0;o!==d&&(l("TypeRoots version has changed; provide new program"),r=void 0,o=d);var p=new y(t,_),f=p.getRootFileNames(),m=t.hasInvalidatedResolution||e.returnFalse;if(!e.isProgramUptoDate(r,f,p.compilationSettings(),function(e){return p.getVersion(e)},b,m,t.hasChangedAutomaticTypeDirectiveNames)){var g=p.compilationSettings(),h={getSourceFile:function(t,n,r,i){return x(t,e.toPath(t,u,_),0,0,i)},getSourceFileByPath:x,getCancellationToken:function(){return c},getCanonicalFileName:_,useCaseSensitiveFileNames:function(){return s},getNewLine:function(){return e.getNewLineCharacter(g,function(){return e.getNewLineOrDefaultFromHost(t)})},getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return u},fileExists:b,readFile:function(n){var r=e.toPath(n,u,_),i=p.getEntryByPath(r);return i?e.isString(i)?void 0:e.getSnapshotText(i.scriptSnapshot):t.readFile&&t.readFile(n)},realpath:t.realpath&&function(e){return t.realpath(e)},directoryExists:function(n){return e.directoryProbablyExists(n,t)},getDirectories:function(e){return t.getDirectories?t.getDirectories(e):[]},onReleaseOldSourceFile:function(e,t){var r=n.getKeyForCompilationSettings(t);n.releaseDocumentWithKey(e.path,r)},hasInvalidatedResolution:m,hasChangedAutomaticTypeDirectiveNames:t.hasChangedAutomaticTypeDirectiveNames};t.trace&&(h.trace=function(e){return t.trace(e)}),t.resolveModuleNames&&(h.resolveModuleNames=function(e,n,r){return t.resolveModuleNames(e,n,r)}),t.resolveTypeReferenceDirectives&&(h.resolveTypeReferenceDirectives=function(e,n){return t.resolveTypeReferenceDirectives(e,n)});var v=n.getKeyForCompilationSettings(g);return r=e.createProgram(f,g,h,r),p=void 0,void r.getTypeChecker()}function b(n){var r=e.toPath(n,u,_),i=p.getEntryByPath(r);return i?!e.isString(i):t.fileExists&&t.fileExists(n)}function x(t,i,a,o,s){e.Debug.assert(void 0!==p);var c=p.getOrCreateEntryByPath(t,i);if(c){if(!s){var u=r&&r.getSourceFileByPath(i);if(u)return e.Debug.assertEqual(c.scriptKind,u.scriptKind,"Registered script kind should match new script kind.",i),n.updateDocumentWithKey(t,i,g,v,c.scriptSnapshot,c.version,c.scriptKind)}return n.acquireDocumentWithKey(t,i,g,v,c.scriptSnapshot,c.version,c.scriptKind)}}}function f(){return p(),r}function g(t,n,i){p();var a=e.map(i,function(t){return e.Debug.assertDefined(r.getSourceFile(t))}),o=d(t);return e.DocumentHighlights.getDocumentHighlights(r,c,o,n,a)}function v(t,n,i){p();var a=[];if(i&&i.isForRename)for(var o=0,s=r.getSourceFiles();o<s.length;o++){var u=s[o];r.isSourceFileDefaultLibrary(u)||a.push(u)}else a=r.getSourceFiles().slice();return e.FindAllReferences.findReferencedEntries(r,c,a,d(t),n,i)}function b(e){return a.getCurrentSourceFile(e)}function x(n){var r=e.getScriptKind(n,t);return 3===r||4===r}var S,D=e.createMapFromTemplate(((S={})[17]=18,S[19]=20,S[21]=22,S[29]=27,S));function C(n){switch(n.type){case"install package":return t.installPackage?t.installPackage({fileName:e.toPath(n.file,u,_),packageName:n.packageName}):Promise.reject("Host does not implement `installPackage`");default:e.Debug.fail()}}function T(n,r,i){var a="number"==typeof r?[r,void 0]:[r.pos,r.end];return{file:n,startPosition:a[0],endPosition:a[1],program:f(),host:t,formatContext:e.formatting.getFormatContext(i),cancellationToken:c}}return D.forEach(function(e,t){return D.set(e.toString(),Number(t))}),{dispose:function(){r&&(e.forEach(r.getSourceFiles(),function(e){return n.releaseDocument(e.fileName,r.getCompilerOptions())}),r=void 0),t=void 0},cleanupSemanticCache:function(){r=void 0},getSyntacticDiagnostics:function(e){return p(),r.getSyntacticDiagnostics(d(e),c).slice()},getSemanticDiagnostics:function(e){p();var t=d(e),n=r.getSemanticDiagnostics(t,c);if(!r.getCompilerOptions().declaration)return n.slice();var i=r.getDeclarationDiagnostics(t,c);return n.concat(i)},getSuggestionDiagnostics:function(t){return p(),e.computeSuggestionDiagnostics(d(t),r)},getCompilerOptionsDiagnostics:function(){return p(),r.getOptionsDiagnostics(c).concat(r.getGlobalDiagnostics(c))},getSyntacticClassifications:function(t,n){return e.getSyntacticClassifications(c,a.getCurrentSourceFile(t),n)},getSemanticClassifications:function(t,n){return x(t)?(p(),e.getSemanticClassifications(r.getTypeChecker(),c,d(t),r.getClassifiableNames(),n)):[]},getEncodedSyntacticClassifications:function(t,n){return e.getEncodedSyntacticClassifications(c,a.getCurrentSourceFile(t),n)},getEncodedSemanticClassifications:function(t,n){return x(t)?(p(),e.getEncodedSemanticClassifications(r.getTypeChecker(),c,d(t),r.getClassifiableNames(),n)):{spans:[],endOfLineState:0}},getCompletionsAtPosition:function(n,i,a){return void 0===a&&(a={includeExternalModuleExports:!1,includeInsertTextCompletions:!1}),p(),e.Completions.getCompletionsAtPosition(t,r.getTypeChecker(),l,r.getCompilerOptions(),d(n),i,r.getSourceFiles(),a)},getCompletionEntryDetails:function(n,i,a,o,s){return p(),e.Completions.getCompletionEntryDetails(r,l,r.getCompilerOptions(),d(n),i,{name:a,source:s},r.getSourceFiles(),t,o&&e.formatting.getFormatContext(o),_)},getCompletionEntrySymbol:function(t,n,i,a){return p(),e.Completions.getCompletionEntrySymbol(r.getTypeChecker(),l,r.getCompilerOptions(),d(t),n,{name:i,source:a},r.getSourceFiles())},getSignatureHelpItems:function(t,n){p();var i=d(t);return e.SignatureHelp.getSignatureHelpItems(r,i,n,c)},getQuickInfoAtPosition:function(t,n){p();var i=d(t),a=e.getTouchingPropertyName(i,n,!0);if(a!==i){var o=r.getTypeChecker(),s=function(t,n){if((e.isIdentifier(t)||e.isStringLiteral(t))&&e.isPropertyAssignment(t.parent)&&t.parent.name===t){var r=n.getContextualType(t.parent.parent),i=r&&n.getPropertyOfType(r,e.getTextOfIdentifierOrLiteral(t));if(i)return i}return n.getSymbolAtLocation(t)}(a,o);if(s&&!o.isUnknownSymbol(s)){var c=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(o,s,i,e.getContainerNode(a),a),u=c.displayParts,l=c.documentation,_=c.tags;return{kind:c.symbolKind,kindModifiers:e.SymbolDisplay.getSymbolModifiers(s),textSpan:e.createTextSpanFromNode(a,i),displayParts:u,documentation:l,tags:_}}switch(a.kind){case 71:if(e.isLabelName(a))return;case 183:case 145:case 99:case 173:case 97:var f=o.getTypeAtLocation(a);return f&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(a,i),displayParts:e.typeToDisplayParts(o,f,e.getContainerNode(a)),documentation:f.symbol?f.symbol.getDocumentationComment(o):void 0,tags:f.symbol?f.symbol.getJsDocTags():void 0}}}},getDefinitionAtPosition:function(t,n){return p(),e.GoToDefinition.getDefinitionAtPosition(r,d(t),n)},getDefinitionAndBoundSpan:function(t,n){return p(),e.GoToDefinition.getDefinitionAndBoundSpan(r,d(t),n)},getImplementationAtPosition:function(t,n){return p(),e.FindAllReferences.getImplementationsAtPosition(r,c,r.getSourceFiles(),d(t),n)},getTypeDefinitionAtPosition:function(t,n){return p(),e.GoToDefinition.getTypeDefinitionAtPosition(r.getTypeChecker(),d(t),n)},getReferencesAtPosition:function(e,t){return v(e,t)},findReferences:function(t,n){return p(),e.FindAllReferences.findReferencedSymbols(r,c,r.getSourceFiles(),d(t),n)},getOccurrencesAtPosition:function(t,n){var r=_(e.normalizeSlashes(t));return e.flatMap(g(t,n,[t]),function(t){return t.highlightSpans.map(function(n){return e.Debug.assert(_(e.normalizeSlashes(t.fileName))===r),{fileName:t.fileName,textSpan:n.textSpan,isWriteAccess:"writtenReference"===n.kind,isDefinition:!1,isInString:n.isInString}})})},getDocumentHighlights:g,getNameOrDottedNameSpan:function(t,n,r){var i=a.getCurrentSourceFile(t),o=e.getTouchingPropertyName(i,n,!1);if(o!==i){switch(o.kind){case 183:case 145:case 9:case 86:case 101:case 95:case 97:case 99:case 173:case 71:break;default:return}for(var s=o;;)if(e.isRightSideOfPropertyAccess(s)||e.isRightSideOfQualifiedName(s))s=s.parent;else{if(!e.isNameOfModuleDeclaration(s))break;if(237!==s.parent.parent.kind||s.parent.parent.body!==s.parent)break;s=s.parent.parent.name}return e.createTextSpanFromBounds(s.getStart(),o.getEnd())}},getBreakpointStatementAtPosition:function(t,n){var r=a.getCurrentSourceFile(t);return e.BreakpointResolver.spanInSourceFileAtLocation(r,n)},getNavigateToItems:function(t,n,i,a){p();var o=i?[d(i)]:r.getSourceFiles();return e.NavigateTo.getNavigateToItems(o,r.getTypeChecker(),c,t,n,a)},getRenameInfo:function(n,i){p();var a=t.getDefaultLibFileName(t.getCompilationSettings());return e.Rename.getRenameInfo(r.getTypeChecker(),a,_,d(n),i)},findRenameLocations:function(e,t,n,r){return v(e,t,{findInStrings:n,findInComments:r,isForRename:!0})},getNavigationBarItems:function(t){return e.NavigationBar.getNavigationBarItems(a.getCurrentSourceFile(t),c)},getNavigationTree:function(t){return e.NavigationBar.getNavigationTree(a.getCurrentSourceFile(t),c)},getOutliningSpans:function(t){var n=a.getCurrentSourceFile(t);return e.OutliningElementsCollector.collectElements(n,c)},getTodoComments:function(t,n){p();var r=d(t);c.throwIfCancellationRequested();var i,a=r.text,o=[];if(n.length>0&&!e.stringContains(r.fileName,"/node_modules/"))for(var s=function(){var t="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",r="(?:"+e.map(n,function(e){return"("+e.text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")"}).join("|")+")";return new RegExp(t+"("+r+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")}(),u=void 0;u=s.exec(a);){c.throwIfCancellationRequested(),e.Debug.assert(u.length===n.length+3);var l=u.index+u[1].length;if(e.isInComment(r,l)){for(var _=void 0,f=0;f<n.length;f++)u[f+3]&&(_=n[f]);e.Debug.assert(void 0!==_),(i=a.charCodeAt(l+_.text.length))>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||o.push({descriptor:_,message:u[2],position:l})}}return o},getBraceMatchingAtPosition:function(t,n){var r=a.getCurrentSourceFile(t),i=e.getTouchingToken(r,n,!1),o=i.getStart(r)===n?D.get(i.kind.toString()):void 0,s=o&&e.findChildOfKind(i.parent,o,r);return s?[e.createTextSpanFromNode(i,r),e.createTextSpanFromNode(s,r)].sort(function(e,t){return e.start-t.start}):e.emptyArray},getIndentationAtPosition:function(t,n,r){var i=e.timestamp(),o=m(r),s=a.getCurrentSourceFile(t);l("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-i)),i=e.timestamp();var c=e.formatting.SmartIndenter.getIndentation(n,s,o);return l("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-i)),c},getFormattingEditsForRange:function(t,n,r,i){var o=a.getCurrentSourceFile(t);return e.formatting.formatSelection(n,r,o,e.formatting.getFormatContext(m(i)))},getFormattingEditsForDocument:function(t,n){return e.formatting.formatDocument(a.getCurrentSourceFile(t),e.formatting.getFormatContext(m(n)))},getFormattingEditsAfterKeystroke:function(t,n,r,i){var o=a.getCurrentSourceFile(t),s=e.formatting.getFormatContext(m(i));if(!e.isInComment(o,n))switch(r){case"{":return e.formatting.formatOnOpeningCurly(n,o,s);case"}":return e.formatting.formatOnClosingCurly(n,o,s);case";":return e.formatting.formatOnSemicolon(n,o,s);case"\n":return e.formatting.formatOnEnter(n,o,s)}return[]},getDocCommentTemplateAtPosition:function(n,r){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(t),a.getCurrentSourceFile(n),r)},isValidBraceCompletionAtPosition:function(t,n,r){if(60===r)return!1;var i=a.getCurrentSourceFile(t);if(e.isInString(i,n))return!1;if(e.isInsideJsxElementOrAttribute(i,n))return 123===r;if(e.isInTemplateString(i,n))return!1;switch(r){case 39:case 34:case 96:return!e.isInComment(i,n)}return!0},getSpanOfEnclosingComment:function(t,n,r){var i=a.getCurrentSourceFile(t),o=e.formatting.getRangeOfEnclosingComment(i,n,r);return o&&e.createTextSpanFromRange(o)},getCodeFixesAtPosition:function(n,i,a,o,s){p();var u=d(n),l=e.createTextSpanFromBounds(i,a),_=e.formatting.getFormatContext(s);return e.flatMap(e.deduplicate(o,e.equateValues,e.compareValues),function(n){return c.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:n,sourceFile:u,span:l,program:r,host:t,cancellationToken:c,formatContext:_})})},getCombinedCodeFix:function(n,i,a){p(),e.Debug.assert("file"===n.type);var o=d(n.fileName),s=e.formatting.getFormatContext(a);return e.codefix.getAllFixes({fixId:i,sourceFile:o,program:r,host:t,cancellationToken:c,formatContext:s})},applyCodeActionCommand:function(t,n){var r="string"==typeof t?n:t;return e.isArray(r)?Promise.all(r.map(C)):C(r)},organizeImports:function(n,i){p(),e.Debug.assert("file"===n.type);var a=d(n.fileName),o=e.formatting.getFormatContext(i);return e.OrganizeImports.organizeImports(a,o,t,r)},getEmitOutput:function(n,i){p();var a=d(n),o=t.getCustomTransformers&&t.getCustomTransformers();return e.getFileEmitOutput(r,a,i,c,o)},getNonBoundSourceFile:b,getSourceFile:function(e){return b(e)},getProgram:f,getApplicableRefactors:function(t,n){p();var r=d(t);return e.refactor.getApplicableRefactors(T(r,n))},getEditsForRefactor:function(t,n,r,i,a){p();var o=d(t);return e.refactor.getEditsForRefactor(T(o,r,n),i,a)}}},e.getNameTable=function(t){return t.nameTable||function(t){var n=t.nameTable=e.createUnderscoreEscapedMap();t.forEachChild(function t(r){if(e.isIdentifier(r)&&r.escapedText||e.isStringOrNumericLiteral(r)&&function(t){return e.isDeclarationName(t)||252===t.parent.kind||function(e){return e&&e.parent&&184===e.parent.kind&&e.parent.argumentExpression===e}(t)||e.isLiteralComputedPropertyDeclarationName(t)}(r)){var i=e.getEscapedTextOfIdentifierOrLiteral(r);n.set(i,void 0===n.get(i)?r.pos:-1)}if(e.forEachChild(r,t),e.hasJSDocNodes(r))for(var a=0,o=r.jsDoc;a<o.length;a++)e.forEachChild(o[a],t)})}(t),t.nameTable},e.getContainingObjectLiteralElement=function(t){switch(t.kind){case 9:case 8:if(146===t.parent.kind)return e.isObjectLiteralElement(t.parent.parent)?t.parent.parent:void 0;case 71:return!e.isObjectLiteralElement(t.parent)||182!==t.parent.parent.kind&&261!==t.parent.parent.kind||t.parent.name!==t?void 0:t.parent}},e.getPropertySymbolsFromContextualType=function(e,t){return D(e.getContextualType(t.parent),t.name)},e.getPropertySymbolsFromType=D,e.getDefaultLibFilePath=function(t){return a+e.directorySeparator+e.getDefaultLibFileName(t)},e.objectAllocator={getNodeConstructor:function(){return n},getTokenConstructor:function(){return o},getIdentifierConstructor:function(){return s},getSourceFileConstructor:function(){return p},getSymbolConstructor:function(){return i},getTypeConstructor:function(){return c},getSignatureConstructor:function(){return l},getSourceMapSourceConstructor:function(){return f}}}(l||(l={})),function(e){(e.BreakpointResolver||(e.BreakpointResolver={})).spanInSourceFileAtLocation=function(t,n){if(!t.isDeclarationFile){var r=e.getTokenAtPosition(t,n,!1),i=t.getLineAndCharacterOfPosition(n).line;if((!(t.getLineAndCharacterOfPosition(r.getStart(t)).line>i)||(r=e.findPrecedingToken(r.pos,t))&&t.getLineAndCharacterOfPosition(r.getEnd()).line===i)&&!(2097152&r.flags))return l(r)}function a(n,r){var i=n.decorators?e.skipTrivia(t.text,n.decorators.end):n.getStart(t);return e.createTextSpanFromBounds(i,(r||n).getEnd())}function o(t,n){return a(t,e.findNextToken(n,n.parent))}function s(e,n){return e&&i===t.getLineAndCharacterOfPosition(e.getStart(t)).line?l(e):l(n)}function c(n){return l(e.findPrecedingToken(n.pos,t))}function u(t){return l(e.findNextToken(t,t.parent))}function l(n){if(n)switch(n.kind){case 212:return y(n.declarationList.declarations[0]);case 230:case 151:case 150:return y(n);case 148:return function t(n){if(e.isBindingPattern(n.name))return x(n.name);if(function(t){return!!t.initializer||void 0!==t.dotDotDotToken||e.hasModifier(t,12)}(n))return a(n);var r=n.parent,i=r.parameters.indexOf(n);return e.Debug.assert(-1!==i),0!==i?t(r.parameters[i-1]):l(r.body)}(n);case 232:case 153:case 152:case 155:case 156:case 154:case 190:case 191:return function(e){if(e.body)return h(e)?a(e):l(e.body)}(n);case 211:if(e.isFunctionBlock(n))return f=(p=n).statements.length?p.statements[0]:p.getLastToken(),h(p.parent)?s(p.parent,f):l(f);case 238:return v(n);case 267:return v(n.block);case 214:return a(n.expression);case 223:return a(n.getChildAt(0),n.expression);case 217:return o(n,n.expression);case 216:return l(n.statement);case 229:return a(n.getChildAt(0));case 215:return o(n,n.expression);case 226:return l(n.statement);case 222:case 221:return a(n.getChildAt(0),n.label);case 218:return(d=n).initializer?b(d):d.condition?a(d.condition):d.incrementor?a(d.incrementor):void 0;case 219:return o(n,n.expression);case 220:return b(n);case 225:return o(n,n.expression);case 264:case 265:return l(n.statements[0]);case 228:return v(n.tryBlock);case 227:case 247:return a(n,n.expression);case 241:return a(n,n.moduleReference);case 242:case 248:return a(n,n.moduleSpecifier);case 237:if(1!==e.getModuleInstanceState(n))return;case 233:case 236:case 271:case 180:return a(n);case 224:return l(n.statement);case 149:return e.createTextSpanFromBounds(e.skipTrivia(t.text,(m=n.parent.decorators).pos),m.end);case 178:case 179:return x(n);case 234:case 235:return;case 25:case 1:return s(e.findPrecedingToken(n.pos,t));case 26:return c(n);case 17:return function(n){switch(n.parent.kind){case 236:var r=n.parent;return s(e.findPrecedingToken(n.pos,t,n.parent),r.members.length?r.members[0]:r.getLastToken(t));case 233:var i=n.parent;return s(e.findPrecedingToken(n.pos,t,n.parent),i.members.length?i.members[0]:i.getLastToken(t));case 239:return s(n.parent.parent,n.parent.clauses[0])}return l(n.parent)}(n);case 18:return function(t){switch(t.parent.kind){case 238:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 236:case 233:return a(t);case 211:if(e.isFunctionBlock(t.parent))return a(t);case 267:return l(e.lastOrUndefined(t.parent.statements));case 239:var n=e.lastOrUndefined(t.parent.clauses);return n?l(e.lastOrUndefined(n.statements)):void 0;case 178:var r=t.parent;return l(e.lastOrUndefined(r.elements)||r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var i=t.parent;return a(e.lastOrUndefined(i.properties)||i)}return l(t.parent)}}(n);case 22:return function(t){switch(t.parent.kind){case 179:var n=t.parent;return a(e.lastOrUndefined(n.elements)||n);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var r=t.parent;return a(e.lastOrUndefined(r.elements)||r)}return l(t.parent)}}(n);case 19:return function(e){return 216===e.parent.kind||185===e.parent.kind||186===e.parent.kind?c(e):189===e.parent.kind?u(e):l(e.parent)}(n);case 20:return function(e){switch(e.parent.kind){case 190:case 232:case 191:case 153:case 152:case 155:case 156:case 154:case 217:case 216:case 218:case 220:case 185:case 186:case 189:return c(e);default:return l(e.parent)}}(n);case 56:return function(t){return e.isFunctionLike(t.parent)||268===t.parent.kind||148===t.parent.kind?c(t):l(t.parent)}(n);case 29:case 27:return function(e){return 188===e.parent.kind?u(e):l(e.parent)}(n);case 106:return function(e){return 216===e.parent.kind?o(e,e.parent.expression):l(e.parent)}(n);case 82:case 74:case 87:return u(n);case 144:return function(e){return 220===e.parent.kind?u(e):l(e.parent)}(n);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(n))return k(n);if((71===n.kind||202===n.kind||268===n.kind||269===n.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent))return a(n);if(198===n.kind){var r=n.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(_=n.left))return k(_);if(58===r.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent))return a(n);if(26===r.kind)return l(_)}if(e.isExpressionNode(n))switch(n.parent.kind){case 216:return c(n);case 149:return l(n.parent);case 218:case 220:return a(n);case 198:if(26===n.parent.operatorToken.kind)return a(n);break;case 191:if(n.parent.body===n)return a(n)}switch(n.parent.kind){case 268:if(n.parent.name===n&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent.parent))return l(n.parent.initializer);break;case 188:if(n.parent.type===n)return u(n.parent.type);break;case 230:case 148:var i=n.parent;if(i.initializer===n||i.type===n||e.isAssignmentOperator(n.kind))return c(n);break;case 198:var _;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(_=n.parent.left)&&n!==_)return c(n);break;default:if(e.isFunctionLike(n.parent)&&n.parent.type===n)return c(n)}return l(n.parent)}var d,p,f,m;function g(n){return e.isVariableDeclarationList(n.parent)&&n.parent.declarations[0]===n?a(e.findPrecedingToken(n.pos,t,n.parent),n):a(n)}function y(n){return 219===n.parent.parent.kind?l(n.parent.parent):e.isBindingPattern(n.name)?x(n.name):n.initializer||e.hasModifier(n,1)||220===n.parent.parent.kind?g(n):e.isVariableDeclarationList(n.parent)&&n.parent.declarations[0]!==n?l(e.findPrecedingToken(n.pos,t,n.parent)):void 0}function h(t){return e.hasModifier(t,1)||233===t.parent.kind&&154!==t.kind}function v(n){switch(n.parent.kind){case 237:if(1!==e.getModuleInstanceState(n.parent))return;case 217:case 215:case 219:return s(n.parent,n.statements[0]);case 218:case 220:return s(e.findPrecedingToken(n.pos,t,n.parent),n.statements[0])}return l(n.statements[0])}function b(e){if(231!==e.initializer.kind)return l(e.initializer);var t=e.initializer;return t.declarations.length>0?l(t.declarations[0]):void 0}function x(t){var n=e.forEach(t.elements,function(e){return 204!==e.kind?e:void 0});return n?l(n):180===t.parent.kind?a(t.parent):g(t.parent)}function k(t){e.Debug.assert(179!==t.kind&&178!==t.kind);var n=e.forEach(181===t.kind?t.elements:t.properties,function(e){return 204!==e.kind?e:void 0});return n?l(n):a(198===t.parent.kind?t.parent:t)}}}}(l||(l={})),function(e){e.transform=function(t,n,r){var i=[];r=e.fixupCompilerOptions(r,i);var a=e.isArray(t)?t:[t],o=e.transformNodes(void 0,void 0,r,a,n,!0);return o.diagnostics=e.concatenate(o.diagnostics,i),o}}(l||(l={}));var l,_,d=function(){return this}();!function(e){function t(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}var n=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 n=this.scriptSnapshotShim.getChangeRange(t.scriptSnapshotShim);if(null===n)return null;var r=JSON.parse(n);return e.createTextChangeRange(e.createTextSpan(r.span.start,r.span.length),r.newLength)},t.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},t}(),r=function(){function t(t){var n=this;this.shimHost=t,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(t,r){var i=JSON.parse(n.shimHost.getModuleResolutionsForFile(r));return e.map(t,function(t){var n=e.getProperty(i,t);return n?{resolvedFileName:n,extension:e.extensionFromPath(n),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return n.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(t,r){var i=JSON.parse(n.shimHost.getTypeReferenceDirectiveResolutionsForFile(r));return e.map(t,function(t){return e.getProperty(i,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 n(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(e){return this.log(e.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,n,r,i,a){var o=e.getFileMatcherPatterns(t,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(n),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},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=r;var i=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,n,r,i,a){var o=e.getFileMatcherPatterns(t,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(n),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t.prototype.readFile=function(e){return this.shimHost.readFile(e)},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t}();function a(e,t,n,r){return s(e,t,!0,n,r)}function s(n,r,i,a,o){try{var s=function(t,n,r,i){var a;i&&(t.log(n),a=e.timestamp());var o=r();if(i){var s=e.timestamp();if(t.log(n+" completed in "+(s-a)+" msec"),e.isString(o)){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),t.log(" result.length="+c.length+", result='"+JSON.stringify(c)+"'")}}return o}(n,r,a,o);return i?JSON.stringify({result:s}):s}catch(i){return i instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(t(n,i),i.description=r,JSON.stringify({error:i}))}}e.CoreServicesShimHostAdapter=i;var c=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function l(t,n){return t.map(function(t){return function(t,n){return{message:e.flattenDiagnosticMessageText(t.messageText,n),start:t.start,length:t.length,category:e.diagnosticCategoryName(t),code:t.code}}(t,n)})}e.realizeDiagnostics=l;var _=function(t){function n(e,n,r){var i=t.call(this,e)||this;return i.host=n,i.languageService=r,i.logPerformance=!1,i.logger=i.host,i}return u(n,t),n.prototype.forwardJSONCall=function(e,t){return a(this.logger,e,t,this.logPerformance)},n.prototype.dispose=function(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,d&&d.CollectGarbage&&(d.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,t.prototype.dispose.call(this,e)},n.prototype.refresh=function(e){this.forwardJSONCall("refresh("+e+")",function(){return null})},n.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return e.languageService.cleanupSemanticCache(),null})},n.prototype.realizeDiagnostics=function(t){return l(t,e.getNewLineOrDefaultFromHost(this.host))},n.prototype.getSyntacticClassifications=function(t,n,r){var i=this;return this.forwardJSONCall("getSyntacticClassifications('"+t+"', "+n+", "+r+")",function(){return i.languageService.getSyntacticClassifications(t,e.createTextSpan(n,r))})},n.prototype.getSemanticClassifications=function(t,n,r){var i=this;return this.forwardJSONCall("getSemanticClassifications('"+t+"', "+n+", "+r+")",function(){return i.languageService.getSemanticClassifications(t,e.createTextSpan(n,r))})},n.prototype.getEncodedSyntacticClassifications=function(t,n,r){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+t+"', "+n+", "+r+")",function(){return p(i.languageService.getEncodedSyntacticClassifications(t,e.createTextSpan(n,r)))})},n.prototype.getEncodedSemanticClassifications=function(t,n,r){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+t+"', "+n+", "+r+")",function(){return p(i.languageService.getEncodedSemanticClassifications(t,e.createTextSpan(n,r)))})},n.prototype.getSyntacticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+e+"')",function(){var n=t.languageService.getSyntacticDiagnostics(e);return t.realizeDiagnostics(n)})},n.prototype.getSemanticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('"+e+"')",function(){var n=t.languageService.getSemanticDiagnostics(e);return t.realizeDiagnostics(n)})},n.prototype.getSuggestionDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSuggestionDiagnostics('"+e+"')",function(){return t.realizeDiagnostics(t.languageService.getSuggestionDiagnostics(e))})},n.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var t=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(t)})},n.prototype.getQuickInfoAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+e+"', "+t+")",function(){return n.languageService.getQuickInfoAtPosition(e,t)})},n.prototype.getNameOrDottedNameSpan=function(e,t,n){var r=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+t+", "+n+")",function(){return r.languageService.getNameOrDottedNameSpan(e,t,n)})},n.prototype.getBreakpointStatementAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+t+")",function(){return n.languageService.getBreakpointStatementAtPosition(e,t)})},n.prototype.getSignatureHelpItems=function(e,t){var n=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+t+")",function(){return n.languageService.getSignatureHelpItems(e,t)})},n.prototype.getDefinitionAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+t+")",function(){return n.languageService.getDefinitionAtPosition(e,t)})},n.prototype.getDefinitionAndBoundSpan=function(e,t){var n=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('"+e+"', "+t+")",function(){return n.languageService.getDefinitionAndBoundSpan(e,t)})},n.prototype.getTypeDefinitionAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+t+")",function(){return n.languageService.getTypeDefinitionAtPosition(e,t)})},n.prototype.getImplementationAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+t+")",function(){return n.languageService.getImplementationAtPosition(e,t)})},n.prototype.getRenameInfo=function(e,t){var n=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+t+")",function(){return n.languageService.getRenameInfo(e,t)})},n.prototype.findRenameLocations=function(e,t,n,r){var i=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+t+", "+n+", "+r+")",function(){return i.languageService.findRenameLocations(e,t,n,r)})},n.prototype.getBraceMatchingAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+t+")",function(){return n.languageService.getBraceMatchingAtPosition(e,t)})},n.prototype.isValidBraceCompletionAtPosition=function(e,t,n){var r=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+t+", "+n+")",function(){return r.languageService.isValidBraceCompletionAtPosition(e,t,n)})},n.prototype.getSpanOfEnclosingComment=function(e,t,n){var r=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+e+"', "+t+")",function(){return r.languageService.getSpanOfEnclosingComment(e,t,n)})},n.prototype.getIndentationAtPosition=function(e,t,n){var r=this;return this.forwardJSONCall("getIndentationAtPosition('"+e+"', "+t+")",function(){var i=JSON.parse(n);return r.languageService.getIndentationAtPosition(e,t,i)})},n.prototype.getReferencesAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getReferencesAtPosition('"+e+"', "+t+")",function(){return n.languageService.getReferencesAtPosition(e,t)})},n.prototype.findReferences=function(e,t){var n=this;return this.forwardJSONCall("findReferences('"+e+"', "+t+")",function(){return n.languageService.findReferences(e,t)})},n.prototype.getOccurrencesAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+t+")",function(){return n.languageService.getOccurrencesAtPosition(e,t)})},n.prototype.getDocumentHighlights=function(t,n,r){var i=this;return this.forwardJSONCall("getDocumentHighlights('"+t+"', "+n+")",function(){var a=i.languageService.getDocumentHighlights(t,n,JSON.parse(r)),o=e.normalizeSlashes(t).toLowerCase();return e.filter(a,function(t){return e.normalizeSlashes(t.fileName).toLowerCase()===o})})},n.prototype.getCompletionsAtPosition=function(e,t,n){var r=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+t+", "+n+")",function(){return r.languageService.getCompletionsAtPosition(e,t,n)})},n.prototype.getCompletionEntryDetails=function(e,t,n,r,i){var a=this;return this.forwardJSONCall("getCompletionEntryDetails('"+e+"', "+t+", '"+n+"')",function(){var o=void 0===r?void 0:JSON.parse(r);return a.languageService.getCompletionEntryDetails(e,t,n,o,i)})},n.prototype.getFormattingEditsForRange=function(e,t,n,r){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('"+e+"', "+t+", "+n+")",function(){var a=JSON.parse(r);return i.languageService.getFormattingEditsForRange(e,t,n,a)})},n.prototype.getFormattingEditsForDocument=function(e,t){var n=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+e+"')",function(){var r=JSON.parse(t);return n.languageService.getFormattingEditsForDocument(e,r)})},n.prototype.getFormattingEditsAfterKeystroke=function(e,t,n,r){var i=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+e+"', "+t+", '"+n+"')",function(){var a=JSON.parse(r);return i.languageService.getFormattingEditsAfterKeystroke(e,t,n,a)})},n.prototype.getDocCommentTemplateAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+t+")",function(){return n.languageService.getDocCommentTemplateAtPosition(e,t)})},n.prototype.getNavigateToItems=function(e,t,n){var r=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+t+", "+n+")",function(){return r.languageService.getNavigateToItems(e,t,n)})},n.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('"+e+"')",function(){return t.languageService.getNavigationBarItems(e)})},n.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('"+e+"')",function(){return t.languageService.getNavigationTree(e)})},n.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('"+e+"')",function(){return t.languageService.getOutliningSpans(e)})},n.prototype.getTodoComments=function(e,t){var n=this;return this.forwardJSONCall("getTodoComments('"+e+"')",function(){return n.languageService.getTodoComments(e,JSON.parse(t))})},n.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('"+e+"')",function(){return t.languageService.getEmitOutput(e)})},n.prototype.getEmitOutputObject=function(e){var t=this;return s(this.logger,"getEmitOutput('"+e+"')",!1,function(){return t.languageService.getEmitOutput(e)},this.logPerformance)},n}(c);function p(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var f=function(t){function n(n,r){var i=t.call(this,n)||this;return i.logger=r,i.logPerformance=!1,i.classifier=e.createClassifier(),i}return u(n,t),n.prototype.getEncodedLexicalClassifications=function(e,t,n){var r=this;return a(this.logger,"getEncodedLexicalClassifications",function(){return p(r.classifier.getEncodedLexicalClassifications(e,t,n))},this.logPerformance)},n.prototype.getClassificationsForLine=function(e,t,n){for(var r=this.classifier.getClassificationsForLine(e,t,n),i="",a=0,o=r.entries;a<o.length;a++){var s=o[a];i+=s.length+"\n",i+=s.classification+"\n"}return i+r.finalLexState},n}(c),m=function(t){function n(e,n,r){var i=t.call(this,e)||this;return i.logger=n,i.host=r,i.logPerformance=!1,i}return u(n,t),n.prototype.forwardJSONCall=function(e,t){return a(this.logger,e,t,this.logPerformance)},n.prototype.resolveModuleName=function(t,n,r){var i=this;return this.forwardJSONCall("resolveModuleName('"+t+"')",function(){var a=JSON.parse(r),o=e.resolveModuleName(n,e.normalizeSlashes(t),a,i.host),s=o.resolvedModule?o.resolvedModule.resolvedFileName:void 0;return o.resolvedModule&&".ts"!==o.resolvedModule.extension&&".tsx"!==o.resolvedModule.extension&&".d.ts"!==o.resolvedModule.extension&&(s=void 0),{resolvedFileName:s,failedLookupLocations:o.failedLookupLocations}})},n.prototype.resolveTypeReferenceDirective=function(t,n,r){var i=this;return this.forwardJSONCall("resolveTypeReferenceDirective("+t+")",function(){var a=JSON.parse(r),o=e.resolveTypeReferenceDirective(n,e.normalizeSlashes(t),a,i.host);return{resolvedFileName:o.resolvedTypeReferenceDirective?o.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:!o.resolvedTypeReferenceDirective||o.resolvedTypeReferenceDirective.primary,failedLookupLocations:o.failedLookupLocations}})},n.prototype.getPreProcessedFileInfo=function(t,n){var r=this;return this.forwardJSONCall("getPreProcessedFileInfo('"+t+"')",function(){var t=e.preProcessFile(e.getSnapshotText(n),!0,!0);return{referencedFiles:r.convertFileReferences(t.referencedFiles),importedFiles:r.convertFileReferences(t.importedFiles),ambientExternalModules:t.ambientExternalModules,isLibFile:t.isLibFile,typeReferenceDirectives:r.convertFileReferences(t.typeReferenceDirectives)}})},n.prototype.getAutomaticTypeDirectiveNames=function(t){var n=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('"+t+"')",function(){var r=JSON.parse(t);return e.getAutomaticTypeDirectiveNames(r,n.host)})},n.prototype.convertFileReferences=function(t){if(t){for(var n=[],r=0,i=t;r<i.length;r++){var a=i[r];n.push({path:e.normalizeSlashes(a.fileName),position:a.pos,length:a.end-a.pos})}return n}},n.prototype.getTSConfigFileInfo=function(t,n){var r=this;return this.forwardJSONCall("getTSConfigFileInfo('"+t+"')",function(){var i=e.parseJsonText(t,e.getSnapshotText(n)),a=e.normalizeSlashes(t),o=e.parseJsonSourceFileConfigFileContent(i,r.host,e.getDirectoryPath(a),{},a);return{options:o.options,typeAcquisition:o.typeAcquisition,files:o.fileNames,raw:o.raw,errors:l(i.parseDiagnostics.concat(o.errors),"\r\n")}})},n.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",function(){return e.getDefaultCompilerOptions()})},n.prototype.discoverTypings=function(t){var n=this,r=e.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",function(){var i=JSON.parse(t);return void 0===n.safeList&&(n.safeList=e.JsTyping.loadSafeList(n.host,e.toPath(i.safeListPath,i.safeListPath,r))),e.JsTyping.discoverTypings(n.host,function(e){return n.logger.log(e)},i.fileNames,e.toPath(i.projectRootPath,i.projectRootPath,r),n.safeList,i.packageNameToTypingLocation,i.typeAcquisition,i.unresolvedImports,i.typesRegistry)})},n}(c),g=function(){function n(){this._shims=[]}return n.prototype.getServicesVersion=function(){return e.servicesVersion},n.prototype.createLanguageServiceShim=function(n){try{void 0===this.documentRegistry&&(this.documentRegistry=e.createDocumentRegistry(n.useCaseSensitiveFileNames&&n.useCaseSensitiveFileNames(),n.getCurrentDirectory()));var i=new r(n),a=e.createLanguageService(i,this.documentRegistry);return new _(this,n,a)}catch(e){throw t(n,e),e}},n.prototype.createClassifierShim=function(e){try{return new f(this,e)}catch(n){throw t(e,n),n}},n.prototype.createCoreServicesShim=function(e){try{var n=new i(e);return new m(this,e,n)}catch(n){throw t(e,n),n}},n.prototype.close=function(){e.clear(this._shims),this.documentRegistry=void 0},n.prototype.registerShim=function(e){this._shims.push(e)},n.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")},n}();e.TypeScriptServicesFactory=g,"undefined"!=typeof o&&o.exports&&(o.exports=e)}(l||(l={})),function(e){(e.Services||(e.Services={})).TypeScriptServicesFactory=l.TypeScriptServicesFactory}(_||(_={})),t.d=l.createClassifier,t.e=l.displayPartsToString,t.a=l.EndOfLineState,t.f=l.flattenDiagnosticMessageText,t.b=l.IndentStyle,t.c=l.TokenClass}).call(t,n("W2nU"),"/index.js",n("DuR2"),"/",n("f1Eh")(e))},"E+dE":function(e,t,n){var r=n("O8K4").SourceMapGenerator,i=n("l5q4"),a=/(\r?\n)/,o="$$$isSourceNode$$$";function s(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==i?null:i,this[o]=!0,null!=r&&this.add(r)}s.fromStringWithSourceMap=function(e,t,n){var r=new s,o=e.split(a),c=0,u=function(){return e()+(e()||"");function e(){return c<o.length?o[c++]:void 0}},l=1,_=0,d=null;return t.eachMapping(function(e){if(null!==d){if(!(l<e.generatedLine)){var t=(n=o[c]).substr(0,e.generatedColumn-_);return o[c]=n.substr(e.generatedColumn-_),_=e.generatedColumn,p(d,t),void(d=e)}p(d,u()),l++,_=0}for(;l<e.generatedLine;)r.add(u()),l++;var n;_<e.generatedColumn&&(r.add((n=o[c]).substr(0,e.generatedColumn)),o[c]=n.substr(e.generatedColumn),_=e.generatedColumn),d=e},this),c<o.length&&(d&&p(d,u()),r.add(o.splice(c).join(""))),t.sources.forEach(function(e){var a=t.sourceContentFor(e);null!=a&&(null!=n&&(e=i.join(n,e)),r.setSourceContent(e,a))}),r;function p(e,t){if(null===e||void 0===e.source)r.add(t);else{var a=n?i.join(n,e.source):e.source;r.add(new s(e.originalLine,e.originalColumn,a,t,e.name))}}},s.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else{if(!e[o]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},s.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[o]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},s.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)(t=this.children[n])[o]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},s.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},s.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[o]?n.replaceRight(e,t):"string"==typeof n?this.children[this.children.length-1]=n.replace(e,t):this.children.push("".replace(e,t)),this},s.prototype.setSourceContent=function(e,t){this.sourceContents[i.toSetString(e)]=t},s.prototype.walkSourceContents=function(e){for(var t=0,n=this.children.length;t<n;t++)this.children[t][o]&&this.children[t].walkSourceContents(e);var r=Object.keys(this.sourceContents);for(t=0,n=r.length;t<n;t++)e(i.fromSetString(r[t]),this.sourceContents[r[t]])},s.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e},s.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},n=new r(e),i=!1,a=null,o=null,s=null,c=null;return this.walk(function(e,r){t.code+=e,null!==r.source&&null!==r.line&&null!==r.column?(a===r.source&&o===r.line&&s===r.column&&c===r.name||n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name}),a=r.source,o=r.line,s=r.column,c=r.name,i=!0):i&&(n.addMapping({generated:{line:t.line,column:t.column}}),a=null,i=!1);for(var u=0,l=e.length;u<l;u++)10===e.charCodeAt(u)?(t.line++,t.column=0,u+1===l?(a=null,i=!1):i&&n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name})):t.column++}),this.walkSourceContents(function(e,t){n.setSourceContent(e,t)}),{code:t.code,map:n}},t.SourceNode=s},EKta:function(e,t,n){"use strict";t.byteLength=function(e){var t=u(e),n=t[1];return 3*(t[0]+n)/4-n},t.toByteArray=function(e){for(var t,n=u(e),r=n[0],o=n[1],s=new a(function(e,t,n){return 3*(t+n)/4-n}(0,r,o)),c=0,l=o>0?r-4:r,_=0;_<l;_+=4)t=i[e.charCodeAt(_)]<<18|i[e.charCodeAt(_+1)]<<12|i[e.charCodeAt(_+2)]<<6|i[e.charCodeAt(_+3)],s[c++]=t>>16&255,s[c++]=t>>8&255,s[c++]=255&t;return 2===o&&(t=i[e.charCodeAt(_)]<<2|i[e.charCodeAt(_+1)]>>4,s[c++]=255&t),1===o&&(t=i[e.charCodeAt(_)]<<10|i[e.charCodeAt(_+1)]<<4|i[e.charCodeAt(_+2)]>>2,s[c++]=t>>8&255,s[c++]=255&t),s},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],o=0,s=n-i;o<s;o+=16383)a.push(l(e,o,o+16383>s?s:o+16383));return 1===i?a.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&a.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),a.join("")};for(var r=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=o.length;s<c;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,a=[],o=t;o<n;o+=3)a.push(r[(i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]))>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},EuP9:function(e,t,n){"use strict";(function(e){var r=n("EKta"),i=n("ujcs"),a=n("sOR5");function o(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return _(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=d(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|f(t,n),i=(e=s(e,r)).write(t,n);return i!==r&&(e=e.slice(0,i)),e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|p(t.length);return 0===(e=s(e,n)).length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):d(e,t);if("Buffer"===t.type&&a(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function _(e,t){if(l(t),e=s(e,t<0?0:0|p(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|p(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return j(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var a,o=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var l=-1;for(a=n;a<s;a++)if(u(e,a)===u(t,-1===l?0:a-l)){if(-1===l&&(l=a),a-l+1===c)return l*o}else-1!==l&&(a-=a-l),l=-1}else for(n+c>s&&(n=s-c),a=n;a>=0;a--){for(var _=!0,d=0;d<c;d++)if(u(e,a+d)!==u(t,d)){_=!1;break}if(_)return a}return-1}function h(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[n+o]=s}return o}function v(e,t,n,r){return J(z(t,e.length-n),e,n,r)}function b(e,t,n,r){return J(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function x(e,t,n,r){return b(e,t,n,r)}function k(e,t,n,r){return J(j(t),e,n,r)}function S(e,t,n,r){return J(function(e,t){for(var n,r,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i.push(n%256),i.push(r);return i}(t,e.length-n),e,n,r)}function D(e,t,n){return r.fromByteArray(0===t&&n===e.length?e:e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,c,u=e[i],l=null,_=u>239?4:u>223?3:u>191?2:1;if(i+_<=n)switch(_){case 1:u<128&&(l=u);break;case 2:128==(192&(a=e[i+1]))&&(c=(31&u)<<6|63&a)>127&&(l=c);break;case 3:o=e[i+2],128==(192&(a=e[i+1]))&&128==(192&o)&&(c=(15&u)<<12|(63&a)<<6|63&o)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=e[i+2],s=e[i+3],128==(192&(a=e[i+1]))&&128==(192&o)&&128==(192&s)&&(c=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,_=1):l>65535&&(r.push((l-=65536)>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=_}return function(e){var t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=T));return n}(r)}t.Buffer=c,t.SlowBuffer=function(e){return+e!=e&&(e=0),c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=o(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return u(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?s(null,t):void 0!==n?"string"==typeof r?s(null,t).fill(n,r):s(null,t).fill(n):s(null,t)}(0,e,t,n)},c.allocUnsafe=function(e){return _(null,e)},c.allocUnsafeSlow=function(e){return _(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!c.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?C(this,0,e):(function(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return E(this,t,n);case"latin1":case"binary":return N(this,t,n);case"base64":return D(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}).apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,s=Math.min(a,o),u=this.slice(r,i),l=e.slice(t,n),_=0;_<s;++_)if(u[_]!==l[_]){a=u[_],o=l[_];break}return a<o?-1:o<a?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return h(this,e,t,n);case"utf8":case"utf-8":return v(this,e,t,n);case"ascii":return b(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function E(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function N(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function A(e,t,n){var r,i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var a="",o=t;o<n;++o)a+=(r=e[o])<16?"0"+r.toString(16):r.toString(16);return a}function P(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function w(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function F(e,t,n,r,i,a){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function I(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i<a;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function O(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i<a;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function M(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(e,t,n,r,a){return a||M(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function R(e,t,n,r,a){return a||M(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var i=t-e;n=new c(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||w(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||w(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||w(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||w(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||w(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||w(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||w(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||w(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},c.prototype.readInt8=function(e,t){return t||w(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||w(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||w(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||w(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||w(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||w(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||w(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||F(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||F(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):O(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);F(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);F(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):O(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,a=r-n;if(this===e&&n<t&&t<r)for(i=a-1;i>=0;--i)e[i+t]=this[i+n];else if(a<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=c.isBuffer(e)?e:z(new c(e,r).toString()),s=o.length;for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function z(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function j(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function J(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(t,n("DuR2"))},G4xT:function(e,t,n){var r=n("l5q4"),i=n("31j4"),a=n("601G").ArraySet,o=n("Ohcp"),s=n("mDF7").quickSort;function c(e){var t=e;return"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,""))),null!=t.sections?new _(t):new u(t)}function u(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var n=r.getArg(t,"version"),i=r.getArg(t,"sources"),o=r.getArg(t,"names",[]),s=r.getArg(t,"sourceRoot",null),c=r.getArg(t,"sourcesContent",null),u=r.getArg(t,"mappings"),l=r.getArg(t,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);i=i.map(String).map(r.normalize).map(function(e){return s&&r.isAbsolute(s)&&r.isAbsolute(e)?r.relative(s,e):e}),this._names=a.fromArray(o.map(String),!0),this._sources=a.fromArray(i,!0),this.sourceRoot=s,this.sourcesContent=c,this._mappings=u,this.file=l}function l(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function _(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var n=r.getArg(t,"version"),i=r.getArg(t,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new a,this._names=new a;var o={line:-1,column:0};this._sections=i.map(function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var t=r.getArg(e,"offset"),n=r.getArg(t,"line"),i=r.getArg(t,"column");if(n<o.line||n===o.line&&i<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");return o=t,{generatedOffset:{generatedLine:n+1,generatedColumn:i+1},consumer:new c(r.getArg(e,"map"))}})}c.fromSourceMap=function(e){return u.fromSourceMap(e)},c.prototype._version=3,c.prototype.__generatedMappings=null,Object.defineProperty(c.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),c.prototype.__originalMappings=null,Object.defineProperty(c.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),c.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},c.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},c.GENERATED_ORDER=1,c.ORIGINAL_ORDER=2,c.GREATEST_LOWER_BOUND=1,c.LEAST_UPPER_BOUND=2,c.prototype.eachMapping=function(e,t,n){var i,a=t||null;switch(n||c.GENERATED_ORDER){case c.GENERATED_ORDER:i=this._generatedMappings;break;case c.ORIGINAL_ORDER:i=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var o=this.sourceRoot;i.map(function(e){var t=null===e.source?null:this._sources.at(e.source);return null!=t&&null!=o&&(t=r.join(o,t)),{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}},this).forEach(e,a)},c.prototype.allGeneratedPositionsFor=function(e){var t=r.getArg(e,"line"),n={source:r.getArg(e,"source"),originalLine:t,originalColumn:r.getArg(e,"column",0)};if(null!=this.sourceRoot&&(n.source=r.relative(this.sourceRoot,n.source)),!this._sources.has(n.source))return[];n.source=this._sources.indexOf(n.source);var a=[],o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,i.LEAST_UPPER_BOUND);if(o>=0){var s=this._originalMappings[o];if(void 0===e.column)for(var c=s.originalLine;s&&s.originalLine===c;)a.push({line:r.getArg(s,"generatedLine",null),column:r.getArg(s,"generatedColumn",null),lastColumn:r.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o];else for(var u=s.originalColumn;s&&s.originalLine===t&&s.originalColumn==u;)a.push({line:r.getArg(s,"generatedLine",null),column:r.getArg(s,"generatedColumn",null),lastColumn:r.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o]}return a},t.SourceMapConsumer=c,(u.prototype=Object.create(c.prototype)).consumer=c,u.fromSourceMap=function(e){var t=Object.create(u.prototype),n=t._names=a.fromArray(e._names.toArray(),!0),i=t._sources=a.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var o=e._mappings.toArray().slice(),c=t.__generatedMappings=[],_=t.__originalMappings=[],d=0,p=o.length;d<p;d++){var f=o[d],m=new l;m.generatedLine=f.generatedLine,m.generatedColumn=f.generatedColumn,f.source&&(m.source=i.indexOf(f.source),m.originalLine=f.originalLine,m.originalColumn=f.originalColumn,f.name&&(m.name=n.indexOf(f.name)),_.push(m)),c.push(m)}return s(t.__originalMappings,r.compareByOriginalPositions),t},u.prototype._version=3,Object.defineProperty(u.prototype,"sources",{get:function(){return this._sources.toArray().map(function(e){return null!=this.sourceRoot?r.join(this.sourceRoot,e):e},this)}}),u.prototype._parseMappings=function(e,t){for(var n,i,a,c,u=1,_=0,d=0,p=0,f=0,m=0,g=e.length,y=0,h={},v={},b=[],x=[];y<g;)if(";"===e.charAt(y))u++,y++,_=0;else if(","===e.charAt(y))y++;else{for((n=new l).generatedLine=u,c=y;c<g&&!this._charIsMappingSeparator(e,c);c++);if(a=h[i=e.slice(y,c)])y+=i.length;else{for(a=[];y<c;)o.decode(e,y,v),y=v.rest,a.push(v.value);if(2===a.length)throw new Error("Found a source, but no line and column");if(3===a.length)throw new Error("Found a source and line, but no column");h[i]=a}n.generatedColumn=_+a[0],_=n.generatedColumn,a.length>1&&(n.source=f+a[1],f+=a[1],n.originalLine=d+a[2],d=n.originalLine,n.originalLine+=1,n.originalColumn=p+a[3],p=n.originalColumn,a.length>4&&(n.name=m+a[4],m+=a[4])),x.push(n),"number"==typeof n.originalLine&&b.push(n)}s(x,r.compareByGeneratedPositionsDeflated),this.__generatedMappings=x,s(b,r.compareByOriginalPositions),this.__originalMappings=b},u.prototype._findMapping=function(e,t,n,r,a,o){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return i.search(e,t,a,o)},u.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},u.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},n=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",r.compareByGeneratedPositionsDeflated,r.getArg(e,"bias",c.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===t.generatedLine){var a=r.getArg(i,"source",null);null!==a&&(a=this._sources.at(a),null!=this.sourceRoot&&(a=r.join(this.sourceRoot,a)));var o=r.getArg(i,"name",null);return null!==o&&(o=this._names.at(o)),{source:a,line:r.getArg(i,"originalLine",null),column:r.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}},u.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e})},u.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=r.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var n;if(null!=this.sourceRoot&&(n=r.urlParse(this.sourceRoot))){var i=e.replace(/^file:\/\//,"");if("file"==n.scheme&&this._sources.has(i))return this.sourcesContent[this._sources.indexOf(i)];if((!n.path||"/"==n.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},u.prototype.generatedPositionFor=function(e){var t=r.getArg(e,"source");if(null!=this.sourceRoot&&(t=r.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};var n={source:t=this._sources.indexOf(t),originalLine:r.getArg(e,"line"),originalColumn:r.getArg(e,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,r.getArg(e,"bias",c.GREATEST_LOWER_BOUND));if(i>=0){var a=this._originalMappings[i];if(a.source===n.source)return{line:r.getArg(a,"generatedLine",null),column:r.getArg(a,"generatedColumn",null),lastColumn:r.getArg(a,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=u,(_.prototype=Object.create(c.prototype)).constructor=c,_.prototype._version=3,Object.defineProperty(_.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),_.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},n=i.search(t,this._sections,function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn}),a=this._sections[n];return a?a.consumer.originalPositionFor({line:t.generatedLine-(a.generatedOffset.generatedLine-1),column:t.generatedColumn-(a.generatedOffset.generatedLine===t.generatedLine?a.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},_.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},_.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},_.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(-1!==n.consumer.sources.indexOf(r.getArg(e,"source"))){var i=n.consumer.generatedPositionFor(e);if(i)return{line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},_.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],a=i.consumer._generatedMappings,o=0;o<a.length;o++){var c=a[o],u=i.consumer._sources.at(c.source);null!==i.consumer.sourceRoot&&(u=r.join(i.consumer.sourceRoot,u)),this._sources.add(u),u=this._sources.indexOf(u);var l=i.consumer._names.at(c.name);this._names.add(l),l=this._names.indexOf(l);var _={source:u,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:l};this.__generatedMappings.push(_),"number"==typeof _.originalLine&&this.__originalMappings.push(_)}s(this.__generatedMappings,r.compareByGeneratedPositionsDeflated),s(this.__originalMappings,r.compareByOriginalPositions)},t.IndexedSourceMapConsumer=_},O8K4:function(e,t,n){var r=n("Ohcp"),i=n("l5q4"),a=n("601G").ArraySet,o=n("8Grq").MappingList;function s(e){e||(e={}),this._file=i.getArg(e,"file",null),this._sourceRoot=i.getArg(e,"sourceRoot",null),this._skipValidation=i.getArg(e,"skipValidation",!1),this._sources=new a,this._names=new a,this._mappings=new o,this._sourcesContents=null}s.prototype._version=3,s.fromSourceMap=function(e){var t=e.sourceRoot,n=new s({file:e.file,sourceRoot:t});return e.eachMapping(function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=i.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),n.addMapping(r)}),e.sources.forEach(function(t){var r=e.sourceContentFor(t);null!=r&&n.setSourceContent(t,r)}),n},s.prototype.addMapping=function(e){var t=i.getArg(e,"generated"),n=i.getArg(e,"original",null),r=i.getArg(e,"source",null),a=i.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,r,a),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=a&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:a})},s.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=i.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[i.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[i.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(e,t,n){var r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}var o=this._sourceRoot;null!=o&&(r=i.relative(o,r));var s=new a,c=new a;this._mappings.unsortedForEach(function(t){if(t.source===r&&null!=t.originalLine){var a=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=a.source&&(t.source=a.source,null!=n&&(t.source=i.join(n,t.source)),null!=o&&(t.source=i.relative(o,t.source)),t.originalLine=a.line,t.originalColumn=a.column,null!=a.name&&(t.name=a.name))}var u=t.source;null==u||s.has(u)||s.add(u);var l=t.name;null==l||c.has(l)||c.add(l)},this),this._sources=s,this._names=c,e.sources.forEach(function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=i.join(n,t)),null!=o&&(t=i.relative(o,t)),this.setSourceContent(t,r))},this)},s.prototype._validateMapping=function(e,t,n,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},s.prototype._serializeMappings=function(){for(var e,t,n,a,o=0,s=1,c=0,u=0,l=0,_=0,d="",p=this._mappings.toArray(),f=0,m=p.length;f<m;f++){if(e="",(t=p[f]).generatedLine!==s)for(o=0;t.generatedLine!==s;)e+=";",s++;else if(f>0){if(!i.compareByGeneratedPositionsInflated(t,p[f-1]))continue;e+=","}e+=r.encode(t.generatedColumn-o),o=t.generatedColumn,null!=t.source&&(a=this._sources.indexOf(t.source),e+=r.encode(a-_),_=a,e+=r.encode(t.originalLine-1-u),u=t.originalLine-1,e+=r.encode(t.originalColumn-c),c=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=r.encode(n-l),l=n)),d+=e}return d},s.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=i.relative(t,e));var n=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},s.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=s},Ohcp:function(e,t,n){var r=n("TPEU");t.encode=function(e){var t,n="",i=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&i,(i>>>=5)>0&&(t|=32),n+=r.encode(t)}while(i>0);return n},t.decode=function(e,t,n){var i,a,o,s,c=e.length,u=0,l=0;do{if(t>=c)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(a=r.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));i=!!(32&a),u+=(a&=31)<<l,l+=5}while(i);n.value=(s=(o=u)>>1,1==(1&o)?-s:s),n.rest=t}},TPEU:function(e,t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<n.length)return n[e];throw new TypeError("Must be between 0 and 63: "+e)},t.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},Ya8g:function(e,t){},f1Eh:function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},ffKE:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("9jCM"),i=function(e){return e[e.TypeScript=0]="TypeScript",e[e.EcmaScript5=1]="EcmaScript5",e}({}),a=function(){function e(e,t,n){this.language=e,this.eolState=t,this.inJsDocComment=n}return e.prototype.clone=function(){return new e(this.language,this.eolState,this.inJsDocComment)},e.prototype.equals=function(t){return t===this||!!(t&&t instanceof e)&&this.eolState===t.eolState&&this.inJsDocComment===t.inJsDocComment},e}(),o=Object.create(null);o["(".charCodeAt(0)]="delimiter.parenthesis.ts",o[")".charCodeAt(0)]="delimiter.parenthesis.ts",o["{".charCodeAt(0)]="delimiter.bracket.ts",o["}".charCodeAt(0)]="delimiter.bracket.ts",o["[".charCodeAt(0)]="delimiter.array.ts",o["]".charCodeAt(0)]="delimiter.array.ts";var s=Object.create(null);s[r.c.Identifier]="identifier.ts",s[r.c.Keyword]="keyword.ts",s[r.c.Operator]="delimiter.ts",s[r.c.Punctuation]="delimiter.ts",s[r.c.NumberLiteral]="number.ts",s[r.c.RegExpLiteral]="regexp.ts",s[r.c.StringLiteral]="string.ts";var c=Object.create(null);c["(".charCodeAt(0)]="delimiter.parenthesis.js",c[")".charCodeAt(0)]="delimiter.parenthesis.js",c["{".charCodeAt(0)]="delimiter.bracket.js",c["}".charCodeAt(0)]="delimiter.bracket.js",c["[".charCodeAt(0)]="delimiter.array.js",c["]".charCodeAt(0)]="delimiter.array.js";var u=Object.create(null);u[r.c.Identifier]="identifier.js",u[r.c.Keyword]="keyword.js",u[r.c.Operator]="delimiter.js",u[r.c.Punctuation]="delimiter.js",u[r.c.NumberLiteral]="number.js",u[r.c.RegExpLiteral]="regexp.js",u[r.c.StringLiteral]="string.js";var l=monaco.Promise,_=function(){function e(e,t){var n=this;this._modeId=e,this._defaults=t,this._worker=null,this._idleCheckInterval=setInterval(function(){return n._checkIfIdle()},3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(function(){return n._stopWorker()})}return e.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},e.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},e.prototype._checkIfIdle=function(){if(this._worker){var e=this._defaults.getWorkerMaxIdleTime(),t=Date.now()-this._lastUsedTime;e>0&&t>e&&this._stopWorker()}},e.prototype._getClient=function(){var e=this;if(this._lastUsedTime=Date.now(),!this._client){this._worker=monaco.editor.createWebWorker({moduleId:"vs/language/typescript/tsWorker",label:this._modeId,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs()}});var t=this._worker.getProxy();this._defaults.getEagerModelSync()&&(t=t.then(function(t){return e._worker.withSyncedResources(monaco.editor.getModels().filter(function(t){return t.getModeId()===e._modeId}).map(function(e){return e.uri}))})),this._client=t}return this._client},e.prototype.getLanguageServiceWorker=function(){for(var e,t,n,r,i,a=this,o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return t=this._getClient().then(function(t){e=t}).then(function(e){return a._worker.withSyncedResources(o)}).then(function(t){return e}),i=new l(function(e,t){n=e,r=t},function(){}),t.then(n,r),i},e}(),d=n("TToO"),p=monaco.Uri,f=monaco.Promise,m=function(){function e(e){this._worker=e}return e.prototype._positionToOffset=function(e,t){return monaco.editor.getModel(e).getOffsetAt(t)},e.prototype._offsetToPosition=function(e,t){return monaco.editor.getModel(e).getPositionAt(t)},e.prototype._textSpanToRange=function(e,t){var n=this._offsetToPosition(e,t.start),r=this._offsetToPosition(e,t.start+t.length);return{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:r.lineNumber,endColumn:r.column}},e}(),g=function(e){function t(t,n,r){var i=e.call(this,r)||this;i._defaults=t,i._selector=n,i._disposables=[],i._listener=Object.create(null);var a=function(e){if(e.getModeId()===n){var t,r=e.onDidChangeContent(function(){clearTimeout(t),t=setTimeout(function(){return i._doValidate(e.uri)},500)});i._listener[e.uri.toString()]={dispose:function(){r.dispose(),clearTimeout(t)}},i._doValidate(e.uri)}},o=function(e){monaco.editor.setModelMarkers(e,i._selector,[]);var t=e.uri.toString();i._listener[t]&&(i._listener[t].dispose(),delete i._listener[t])};return i._disposables.push(monaco.editor.onDidCreateModel(a)),i._disposables.push(monaco.editor.onWillDisposeModel(o)),i._disposables.push(monaco.editor.onDidChangeModelLanguage(function(e){o(e.model),a(e.model)})),i._disposables.push({dispose:function(){for(var e=0,t=monaco.editor.getModels();e<t.length;e++)o(t[e])}}),i._disposables.push(i._defaults.onDidChange(function(){for(var e=0,t=monaco.editor.getModels();e<t.length;e++){var n=t[e];o(n),a(n)}})),monaco.editor.getModels().forEach(a),i}return Object(d.c)(t,e),t.prototype.dispose=function(){this._disposables.forEach(function(e){return e&&e.dispose()}),this._disposables=[]},t.prototype._doValidate=function(e){var t=this;this._worker(e).then(function(n){if(!monaco.editor.getModel(e))return null;var r=[],i=t._defaults.getDiagnosticsOptions(),a=i.noSemanticValidation;return i.noSyntaxValidation||r.push(n.getSyntacticDiagnostics(e.toString())),a||r.push(n.getSemanticDiagnostics(e.toString())),f.join(r)}).then(function(n){if(!n||!monaco.editor.getModel(e))return null;var r=n.reduce(function(e,t){return t.concat(e)},[]).map(function(n){return t._convertDiagnostics(e,n)});monaco.editor.setModelMarkers(monaco.editor.getModel(e),t._selector,r)}).done(void 0,function(e){console.error(e)})},t.prototype._convertDiagnostics=function(e,t){var n=this._offsetToPosition(e,t.start),i=n.lineNumber,a=n.column,o=this._offsetToPosition(e,t.start+t.length);return{severity:monaco.MarkerSeverity.Error,startLineNumber:i,startColumn:a,endLineNumber:o.lineNumber,endColumn:o.column,message:r.f(t.messageText,"\n")}},t}(m),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(d.c)(t,e),Object.defineProperty(t.prototype,"triggerCharacters",{get:function(){return["."]},enumerable:!0,configurable:!0}),t.prototype.provideCompletionItems=function(e,n,r){e.getWordUntilPosition(n);var i=e.uri,a=this._positionToOffset(i,n);return w(r,this._worker(i).then(function(e){return e.getCompletionsAtPosition(i.toString(),a)}).then(function(e){if(e)return e.entries.map(function(e){return{uri:i,position:n,label:e.name,sortText:e.sortText,kind:t.convertKind(e.kind)}})}))},t.prototype.resolveCompletionItem=function(e,n){var i=this,a=e,o=a.uri,s=a.position;return w(n,this._worker(o).then(function(e){return e.getCompletionEntryDetails(o.toString(),i._positionToOffset(o,s),a.label)}).then(function(e){return e?{uri:o,position:s,label:e.name,kind:t.convertKind(e.kind),detail:r.e(e.displayParts),documentation:r.e(e.documentation)}:a}))},t.convertKind=function(e){switch(e){case D.primitiveType:case D.keyword:return monaco.languages.CompletionItemKind.Keyword;case D.variable:case D.localVariable:return monaco.languages.CompletionItemKind.Variable;case D.memberVariable:case D.memberGetAccessor:case D.memberSetAccessor:return monaco.languages.CompletionItemKind.Field;case D.function:case D.memberFunction:case D.constructSignature:case D.callSignature:case D.indexSignature:return monaco.languages.CompletionItemKind.Function;case D.enum:return monaco.languages.CompletionItemKind.Enum;case D.module:return monaco.languages.CompletionItemKind.Module;case D.class:return monaco.languages.CompletionItemKind.Class;case D.interface:return monaco.languages.CompletionItemKind.Interface;case D.warning:return monaco.languages.CompletionItemKind.File}return monaco.languages.CompletionItemKind.Property},t}(m),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.signatureHelpTriggerCharacters=["(",","],t}return Object(d.c)(t,e),t.prototype.provideSignatureHelp=function(e,t,n){var i=this,a=e.uri;return w(n,this._worker(a).then(function(e){return e.getSignatureHelpItems(a.toString(),i._positionToOffset(a,t))}).then(function(e){if(e){var t={activeSignature:e.selectedItemIndex,activeParameter:e.argumentIndex,signatures:[]};return e.items.forEach(function(e){var n={label:"",documentation:null,parameters:[]};n.label+=r.e(e.prefixDisplayParts),e.parameters.forEach(function(t,i,a){var o=r.e(t.displayParts),s={label:o,documentation:r.e(t.documentation)};n.label+=o,n.parameters.push(s),i<a.length-1&&(n.label+=r.e(e.separatorDisplayParts))}),n.label+=r.e(e.suffixDisplayParts),t.signatures.push(n)}),t}}))},t}(m),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(d.c)(t,e),t.prototype.provideHover=function(e,t,n){var i=this,a=e.uri;return w(n,this._worker(a).then(function(e){return e.getQuickInfoAtPosition(a.toString(),i._positionToOffset(a,t))}).then(function(e){if(e){var t=r.e(e.documentation),n=e.tags?e.tags.map(function(e){var t="*@"+e.name+"*";return e.text?t+(e.text.match(/\r\n|\n/g)?" \n"+e.text:" - "+e.text):t}).join(" \n\n"):"",o=r.e(e.displayParts);return{range:i._textSpanToRange(a,e.textSpan),contents:[{value:o},{value:t+(n?"\n\n"+n:"")}]}}}))},t}(m),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(d.c)(t,e),t.prototype.provideDocumentHighlights=function(e,t,n){var r=this,i=e.uri;return w(n,this._worker(i).then(function(e){return e.getOccurrencesAtPosition(i.toString(),r._positionToOffset(i,t))}).then(function(e){if(e)return e.map(function(e){return{range:r._textSpanToRange(i,e.textSpan),kind:e.isWriteAccess?monaco.languages.DocumentHighlightKind.Write:monaco.languages.DocumentHighlightKind.Text}})}))},t}(m),x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(d.c)(t,e),t.prototype.provideDefinition=function(e,t,n){var r=this,i=e.uri;return w(n,this._worker(i).then(function(e){return e.getDefinitionAtPosition(i.toString(),r._positionToOffset(i,t))}).then(function(e){if(e){for(var t=[],n=0,i=e;n<i.length;n++){var a=i[n],o=p.parse(a.fileName);monaco.editor.getModel(o)&&t.push({uri:o,range:r._textSpanToRange(o,a.textSpan)})}return t}}))},t}(m),k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(d.c)(t,e),t.prototype.provideReferences=function(e,t,n,r){var i=this,a=e.uri;return w(r,this._worker(a).then(function(e){return e.getReferencesAtPosition(a.toString(),i._positionToOffset(a,t))}).then(function(e){if(e){for(var t=[],n=0,r=e;n<r.length;n++){var a=r[n],o=p.parse(a.fileName);monaco.editor.getModel(o)&&t.push({uri:o,range:i._textSpanToRange(o,a.textSpan)})}return t}}))},t}(m),S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(d.c)(t,e),t.prototype.provideDocumentSymbols=function(e,t){var n=this,r=e.uri;return w(t,this._worker(r).then(function(e){return e.getNavigationBarItems(r.toString())}).then(function(e){if(e){var t=function(e,i,a){var o={name:i.text,kind:C[i.kind]||monaco.languages.SymbolKind.Variable,location:{uri:r,range:n._textSpanToRange(r,i.spans[0])},containerName:a};if(i.childItems&&i.childItems.length>0)for(var s=0,c=i.childItems;s<c.length;s++)t(e,c[s],o.name);e.push(o)},i=[];return e.forEach(function(e){return t(i,e)}),i}}))},t}(m),D=function(){function e(){}return e.unknown="",e.keyword="keyword",e.script="script",e.module="module",e.class="class",e.interface="interface",e.type="type",e.enum="enum",e.variable="var",e.localVariable="local var",e.function="function",e.localFunction="local function",e.memberFunction="method",e.memberGetAccessor="getter",e.memberSetAccessor="setter",e.memberVariable="property",e.constructorImplementation="constructor",e.callSignature="call",e.indexSignature="index",e.constructSignature="construct",e.parameter="parameter",e.typeParameter="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.const="const",e.let="let",e.warning="warning",e}(),C=Object.create(null);C[D.module]=monaco.languages.SymbolKind.Module,C[D.class]=monaco.languages.SymbolKind.Class,C[D.enum]=monaco.languages.SymbolKind.Enum,C[D.interface]=monaco.languages.SymbolKind.Interface,C[D.memberFunction]=monaco.languages.SymbolKind.Method,C[D.memberVariable]=monaco.languages.SymbolKind.Property,C[D.memberGetAccessor]=monaco.languages.SymbolKind.Property,C[D.memberSetAccessor]=monaco.languages.SymbolKind.Property,C[D.variable]=monaco.languages.SymbolKind.Variable,C[D.const]=monaco.languages.SymbolKind.Variable,C[D.localVariable]=monaco.languages.SymbolKind.Variable,C[D.variable]=monaco.languages.SymbolKind.Variable,C[D.function]=monaco.languages.SymbolKind.Function,C[D.localFunction]=monaco.languages.SymbolKind.Function;var T,E,N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(d.c)(t,e),t._convertOptions=function(e){return{ConvertTabsToSpaces:e.insertSpaces,TabSize:e.tabSize,IndentSize:e.tabSize,IndentStyle:r.b.Smart,NewLineCharacter:"\n",InsertSpaceAfterCommaDelimiter:!0,InsertSpaceAfterSemicolonInForStatements:!0,InsertSpaceBeforeAndAfterBinaryOperators:!0,InsertSpaceAfterKeywordsInControlFlowStatements:!0,InsertSpaceAfterFunctionKeywordForAnonymousFunctions:!0,InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,PlaceOpenBraceOnNewLineForControlBlocks:!1,PlaceOpenBraceOnNewLineForFunctions:!1}},t.prototype._convertTextChanges=function(e,t){return{text:t.newText,range:this._textSpanToRange(e,t.span)}},t}(m),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(d.c)(t,e),t.prototype.provideDocumentRangeFormattingEdits=function(e,t,n,r){var i=this,a=e.uri;return w(r,this._worker(a).then(function(e){return e.getFormattingEditsForRange(a.toString(),i._positionToOffset(a,{lineNumber:t.startLineNumber,column:t.startColumn}),i._positionToOffset(a,{lineNumber:t.endLineNumber,column:t.endColumn}),N._convertOptions(n))}).then(function(e){if(e)return e.map(function(e){return i._convertTextChanges(a,e)})}))},t}(N),P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(d.c)(t,e),Object.defineProperty(t.prototype,"autoFormatTriggerCharacters",{get:function(){return[";","}","\n"]},enumerable:!0,configurable:!0}),t.prototype.provideOnTypeFormattingEdits=function(e,t,n,r,i){var a=this,o=e.uri;return w(i,this._worker(o).then(function(e){return e.getFormattingEditsAfterKeystroke(o.toString(),a._positionToOffset(o,t),n,N._convertOptions(r))}).then(function(e){if(e)return e.map(function(e){return a._convertTextChanges(o,e)})}))},t}(N);function w(e,t){return e.onCancellationRequested(function(){return t.cancel()}),t}function F(e,t,n){var l=new _(t,e),d=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return l.getLanguageServiceWorker.apply(l,[e].concat(t))};return monaco.languages.registerCompletionItemProvider(t,new y(d)),monaco.languages.registerSignatureHelpProvider(t,new h(d)),monaco.languages.registerHoverProvider(t,new v(d)),monaco.languages.registerDocumentHighlightProvider(t,new b(d)),monaco.languages.registerDefinitionProvider(t,new x(d)),monaco.languages.registerReferenceProvider(t,new k(d)),monaco.languages.registerDocumentSymbolProvider(t,new S(d)),monaco.languages.registerDocumentRangeFormattingEditProvider(t,new A(d)),monaco.languages.registerOnTypeFormattingEditProvider(t,new P(d)),new g(e,t,d),monaco.languages.setLanguageConfiguration(t,I),monaco.languages.setTokensProvider(t,function(e){var t=r.d(),n=e===i.TypeScript?o:c,l=e===i.TypeScript?s:u;return{getInitialState:function(){return new a(e,r.a.None,!1)},tokenize:function(e,o){return function(e,t,n,o,s){var c={tokens:[],endState:new a(o.language,r.a.None,!1)};function u(e,t){0!==c.tokens.length&&c.tokens[c.tokens.length-1].scopes===t||c.tokens.push({startIndex:e,scopes:t})}var l=o.language===i.TypeScript;if(!l&&function(e,t,n){if(0===s.indexOf("#!"))return n(0,"comment.shebang"),!0}(0,0,u))return c;var _=n.getClassificationsForLine(s,o.eolState,!0),d=0;c.endState.eolState=_.finalLexState,c.endState.inJsDocComment=_.finalLexState===r.a.InMultiLineCommentTrivia&&(o.inJsDocComment||/\/\*\*.*$/.test(s));for(var p=0,f=_.entries;p<f.length;p++){var m=f[p];m.classification===r.c.Punctuation?u(d,e[s.charCodeAt(d)]||t[m.classification]):m.classification===r.c.Comment?c.endState.inJsDocComment||/\/\*\*.*\*\//.test(s.substr(d,m.length))?u(d,l?"comment.doc.ts":"comment.doc.js"):u(d,l?"comment.ts":"comment.js"):u(d,t[m.classification]||""),d+=m.length}return c}(n,l,t,o,e)}}}(n)),d}t.setupTypeScript=function(e){E=F(e,"typescript",i.TypeScript)},t.setupJavaScript=function(e){T=F(e,"javascript",i.EcmaScript5)},t.getJavaScriptWorker=function(){return new monaco.Promise(function(e,t){if(!T)return t("JavaScript not registered!");e(T)})},t.getTypeScriptWorker=function(){return new monaco.Promise(function(e,t){if(!E)return t("TypeScript not registered!");e(E)})};var I={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:monaco.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:monaco.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:monaco.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:monaco.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}}},gAs1:function(e,t){t.endianness=function(){return"LE"},t.hostname=function(){return"undefined"!=typeof location?location.hostname:""},t.loadavg=function(){return[]},t.uptime=function(){return 0},t.freemem=function(){return Number.MAX_VALUE},t.totalmem=function(){return Number.MAX_VALUE},t.cpus=function(){return[]},t.type=function(){return"Browser"},t.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},t.networkInterfaces=t.getNetworkInterfaces=function(){return{}},t.arch=function(){return"javascript"},t.platform=function(){return"browser"},t.tmpdir=t.tmpDir=function(){return"/tmp"},t.EOL="\n",t.homedir=function(){return"/"}},l5q4:function(e,t){t.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,r=/^data:.+\,.+$/;function i(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function a(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function o(e){var n=e,r=i(e);if(r){if(!r.path)return e;n=r.path}for(var o,s=t.isAbsolute(n),c=n.split(/\/+/),u=0,l=c.length-1;l>=0;l--)"."===(o=c[l])?c.splice(l,1):".."===o?u++:u>0&&(""===o?(c.splice(l+1,u),u=0):(c.splice(l,2),u--));return""===(n=c.join("/"))&&(n=s?"/":"."),r?(r.path=n,a(r)):n}t.urlParse=i,t.urlGenerate=a,t.normalize=o,t.join=function(e,t){""===e&&(e="."),""===t&&(t=".");var n=i(t),s=i(e);if(s&&(e=s.path||"/"),n&&!n.scheme)return s&&(n.scheme=s.scheme),a(n);if(n||t.match(r))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var c="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=c,a(s)):c},t.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(n)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var s=!("__proto__"in Object.create(null));function c(e){return e}function u(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function l(e,t){return e===t?0:e>t?1:-1}t.toSetString=s?c:function(e){return u(e)?"$"+e:e},t.fromSetString=s?c:function(e){return u(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,n){var r=e.source-t.source;return 0!==r?r:0!=(r=e.originalLine-t.originalLine)?r:0!=(r=e.originalColumn-t.originalColumn)||n?r:0!=(r=e.generatedColumn-t.generatedColumn)?r:0!=(r=e.generatedLine-t.generatedLine)?r:e.name-t.name},t.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r?r:0!=(r=e.generatedColumn-t.generatedColumn)||n?r:0!=(r=e.source-t.source)?r:0!=(r=e.originalLine-t.originalLine)?r:0!=(r=e.originalColumn-t.originalColumn)?r:e.name-t.name},t.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!=(n=e.generatedColumn-t.generatedColumn)?n:0!==(n=l(e.source,t.source))?n:0!=(n=e.originalLine-t.originalLine)?n:0!=(n=e.originalColumn-t.originalColumn)?n:l(e.name,t.name)}},mDF7:function(e,t){function n(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}t.quickSort=function(e,t){!function e(t,r,i,a){if(i<a){var o=i-1;n(t,(l=i,_=a,Math.round(l+Math.random()*(_-l))),a);for(var s=t[a],c=i;c<a;c++)r(t[c],s)<=0&&n(t,o+=1,c);n(t,o+1,c);var u=o+1;e(t,r,i,u-1),e(t,r,u+1,a)}var l,_}(e,t,0,e.length-1)}},mtjK:function(e,t,n){(function(e,r){var i,a=n("+r0j").SourceMapConsumer,o=n("o/zv");try{(i=n("Ya8g")).existsSync&&i.readFileSync||(i=null)}catch(e){}var s=!1,c=!1,u=!1,l="auto",_={},d={},p=/^data:application\/json[^,]+base64,/,f=[],m=[];function g(){return"browser"===l||"node"!==l&&"undefined"!=typeof window&&"function"==typeof XMLHttpRequest&&!(window.require&&window.module&&window.process&&"renderer"===window.process.type)}function y(e){return function(t){for(var n=0;n<e.length;n++){var r=e[n](t);if(r)return r}return null}}var h=y(f);function v(e,t){if(!e)return t;var n=o.dirname(e),r=/^\w+:\/\/[^\/]*/.exec(n),i=r?r[0]:"";return i+o.resolve(n.slice(i.length),t)}f.push(function(e){if((e=e.trim())in _)return _[e];var t=null;if(i){if(i.existsSync(e))try{t=i.readFileSync(e,"utf8")}catch(e){t=""}}else{var n=new XMLHttpRequest;n.open("GET",e,!1),n.send(null),t=null,4===n.readyState&&200===n.status&&(t=n.responseText)}return _[e]=t});var b=y(m);function x(e){var t=d[e.source];if(!t){var n=b(e.source);n?(t=d[e.source]={url:n.url,map:new a(n.map)}).map.sourcesContent&&t.map.sources.forEach(function(e,n){var r=t.map.sourcesContent[n];if(r){var i=v(t.url,e);_[i]=r}}):t=d[e.source]={url:null,map:null}}if(t&&t.map){var r=t.map.originalPositionFor(e);if(null!==r.source)return r.source=v(t.url,r.source),r}return e}function k(){var e,t="";if(this.isNative())t="native";else{!(e=this.getScriptNameOrSourceURL())&&this.isEval()&&(t=this.getEvalOrigin(),t+=", "),t+=e||"<anonymous>";var n=this.getLineNumber();if(null!=n){t+=":"+n;var r=this.getColumnNumber();r&&(t+=":"+r)}}var i="",a=this.getFunctionName(),o=!0,s=this.isConstructor();if(this.isToplevel()||s)s?i+="new "+(a||"<anonymous>"):a?i+=a:(i+=t,o=!1);else{var c=this.getTypeName();"[object Object]"===c&&(c="null");var u=this.getMethodName();a?(c&&0!=a.indexOf(c)&&(i+=c+"."),i+=a,u&&a.indexOf("."+u)!=a.length-u.length-1&&(i+=" [as "+u+"]")):i+=c+"."+(u||"<anonymous>")}return o&&(i+=" ("+t+")"),i}function S(e){var t={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(function(n){t[n]=/^(?:is|get)/.test(n)?function(){return e[n].call(e)}:e[n]}),t.toString=k,t}function D(e){if(e.isNative())return e;var t=e.getFileName()||e.getScriptNameOrSourceURL();if(t){var n=e.getLineNumber(),r=e.getColumnNumber()-1;1===n&&r>62&&!g()&&!e.isEval()&&(r-=62);var i=x({source:t,line:n,column:r});return(e=S(e)).getFileName=function(){return i.source},e.getLineNumber=function(){return i.line},e.getColumnNumber=function(){return i.column+1},e.getScriptNameOrSourceURL=function(){return i.source},e}var a=e.isEval()&&e.getEvalOrigin();return a?(a=function e(t){var n=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(t);if(n){var r=x({source:n[2],line:+n[3],column:n[4]-1});return"eval at "+n[1]+" ("+r.source+":"+r.line+":"+(r.column+1)+")"}return(n=/^eval at ([^(]+) \((.+)\)$/.exec(t))?"eval at "+n[1]+" ("+e(n[2])+")":t}(a),(e=S(e)).getEvalOrigin=function(){return a},e):e}function C(e,t){return u&&(_={},d={}),e+t.map(function(e){return"\n at "+D(e)}).join("")}function T(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var n=t[1],r=+t[2],a=+t[3],o=_[n];if(!o&&i&&i.existsSync(n))try{o=i.readFileSync(n,"utf8")}catch(e){o=""}if(o){var s=o.split(/(?:\r\n|\r|\n)/)[r-1];if(s)return n+":"+r+"\n"+s+"\n"+new Array(a).join(" ")+"^"}}return null}m.push(function(e){var t,n=function(e){var t;if(g())try{var n=new XMLHttpRequest;n.open("GET",e,!1),n.send(null),t=4===n.readyState?n.responseText:null;var r=n.getResponseHeader("SourceMap")||n.getResponseHeader("X-SourceMap");if(r)return r}catch(e){}t=h(e);for(var i,a,o=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/)[ \t]*$)/gm;a=o.exec(t);)i=a;return i?i[1]:null}(e);if(!n)return null;if(p.test(n)){var i=n.slice(n.indexOf(",")+1);t=new r(i,"base64").toString(),n=e}else n=v(e,n),t=h(n);return t?{url:n,map:t}:null}),t.wrapCallSite=D,t.getErrorSource=T,t.mapSourcePosition=x,t.retrieveSourceMap=b,t.install=function(t){if((t=t||{}).environment&&-1===["node","browser","auto"].indexOf(l=t.environment))throw new Error("environment "+l+" was unknown. Available options are {auto, browser, node}");if(t.retrieveFile&&(t.overrideRetrieveFile&&(f.length=0),f.unshift(t.retrieveFile)),t.retrieveSourceMap&&(t.overrideRetrieveSourceMap&&(m.length=0),m.unshift(t.retrieveSourceMap)),t.hookRequire&&!g()){var r;try{r=n(!function(){var e=new Error('Cannot find module "module"');throw e.code="MODULE_NOT_FOUND",e}())}catch(e){}var i=r.prototype._compile;i.__sourceMapSupport||(r.prototype._compile=function(e,t){return _[t]=e,d[t]=void 0,i.call(this,e,t)},r.prototype._compile.__sourceMapSupport=!0)}var a;u||(u="emptyCacheBetweenOperations"in t&&t.emptyCacheBetweenOperations),s||(s=!0,Error.prepareStackTrace=C),c||(!("handleUncaughtExceptions"in t)||t.handleUncaughtExceptions)&&"object"==typeof e&&null!==e&&"function"==typeof e.on&&(c=!0,a=e.emit,e.emit=function(t){if("uncaughtException"===t){var n=arguments[1]&&arguments[1].stack,r=this.listeners(t).length>0;if(n&&!r)return(o=T(i=arguments[1]))&&(console.error(),console.error(o)),console.error(i.stack),void e.exit(1)}var i,o;return a.apply(this,arguments)})}}).call(t,n("W2nU"),n("EuP9").Buffer)},"o/zv":function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,i=function(e){return r.exec(e).slice(1)};function a(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",r=!1,i=arguments.length-1;i>=-1&&!r;i--){var o=i>=0?arguments[i]:e.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,r="/"===o.charAt(0))}return t=n(a(t.split("/"),function(e){return!!e}),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),i="/"===o(e,-1);return(e=n(a(e.split("/"),function(e){return!!e}),!r).join("/"))||r||(e="."),e&&i&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(a(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),a=r(n.split("/")),o=Math.min(i.length,a.length),s=o,c=0;c<o;c++)if(i[c]!==a[c]){s=c;break}var u=[];for(c=s;c<i.length;c++)u.push("..");return(u=u.concat(a.slice(s))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){var t=i(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},t.basename=function(e,t){var n=i(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){return i(e)[3]};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(t,n("W2nU"))},sOR5:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},ujcs:function(e,t){t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,c=(1<<s)-1,u=c>>1,l=-7,_=n?i-1:0,d=n?-1:1,p=e[t+_];for(_+=d,a=p&(1<<-l)-1,p>>=-l,l+=s;l>0;a=256*a+e[t+_],_+=d,l-=8);for(o=a&(1<<-l)-1,a>>=-l,l+=r;l>0;o=256*o+e[t+_],_+=d,l-=8);if(0===a)a=1-u;else{if(a===c)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),a-=u}return(p?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,c,u=8*a-i-1,l=(1<<u)-1,_=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:a-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+_>=1?d/c:d*Math.pow(2,1-_))*c>=2&&(o++,c/=2),o+_>=l?(s=0,o=l):o+_>=1?(s=(t*c-1)*Math.pow(2,i),o+=_):(s=t*Math.pow(2,_-1)*Math.pow(2,i),o=0));i>=8;e[n+p]=255&s,p+=f,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;e[n+p]=255&o,p+=f,o/=256,u-=8);e[n+p-f]|=128*m}}}); |